@feedmepos/mf-settings 0.0.35 → 0.0.36

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,8 @@
1
- import { ref as tn, defineComponent as nn, computed as mr, watchEffect as _r, resolveComponent as vr, openBlock as rn, createBlock as sn, onMounted as br, unref as Ir } from "vue";
2
- import { useCoreStore as on, FeedMeAuth as yr } from "@feedmepos/mf-common";
3
- import { useRouter as wr, RouterView as Er } from "vue-router";
4
- import { FmApp as Tr, routers as Rr } from "@feedmepos/mf-e-invoice";
5
- import { FmApp as Ar, routers as kr } from "@feedmepos/mf-mdm";
1
+ import { ref as tn, defineComponent as nn, computed as mr, watchEffect as gr, resolveComponent as _r, openBlock as rn, createBlock as sn, onMounted as vr, unref as br } from "vue";
2
+ import { useI18n as yr, useCoreStore as Ir, FeedMeAuth as wr } from "@feedmepos/mf-common";
3
+ import { useRouter as Er, RouterView as Tr } from "vue-router";
4
+ import { FmApp as Rr, routers as Ar } from "@feedmepos/mf-e-invoice";
5
+ import { FmApp as kr, routers as Sr } from "@feedmepos/mf-mdm";
6
6
  class de {
7
7
  constructor(e = null, n = {}) {
8
8
  if (this.apiKey = e, this.options = n, typeof window > "u")
@@ -37,20 +37,20 @@ class de {
37
37
  }
38
38
  }
39
39
  de.CALLBACK_NAME = "_dk_google_maps_loader_cb";
40
- const et = tn(null), Sr = () => et.value;
41
- function Cr(t) {
40
+ const et = tn(null), Cr = () => et.value;
41
+ function Or(t) {
42
42
  et.value || (et.value = t);
43
43
  }
44
- const Lc = Object.freeze({
44
+ const $c = Object.freeze({
45
45
  jb: {
46
46
  lat: 1.492659,
47
47
  lng: 103.7413591
48
48
  }
49
49
  });
50
- function Mc(t) {
50
+ function Hc(t) {
51
51
  return [t.lng, t.lat];
52
52
  }
53
- function xc(t) {
53
+ function jc(t) {
54
54
  if (t.length !== 2)
55
55
  throw Error("Invalid coordinate array");
56
56
  return {
@@ -90,7 +90,7 @@ function xc(t) {
90
90
  * See the License for the specific language governing permissions and
91
91
  * limitations under the License.
92
92
  */
93
- const an = function(t) {
93
+ const on = function(t) {
94
94
  const e = [];
95
95
  let n = 0;
96
96
  for (let r = 0; r < t.length; r++) {
@@ -98,7 +98,7 @@ const an = function(t) {
98
98
  i < 128 ? e[n++] = i : i < 2048 ? (e[n++] = i >> 6 | 192, e[n++] = i & 63 | 128) : (i & 64512) === 55296 && r + 1 < t.length && (t.charCodeAt(r + 1) & 64512) === 56320 ? (i = 65536 + ((i & 1023) << 10) + (t.charCodeAt(++r) & 1023), e[n++] = i >> 18 | 240, e[n++] = i >> 12 & 63 | 128, e[n++] = i >> 6 & 63 | 128, e[n++] = i & 63 | 128) : (e[n++] = i >> 12 | 224, e[n++] = i >> 6 & 63 | 128, e[n++] = i & 63 | 128);
99
99
  }
100
100
  return e;
101
- }, Or = function(t) {
101
+ }, Nr = function(t) {
102
102
  const e = [];
103
103
  let n = 0, r = 0;
104
104
  for (; n < t.length; ) {
@@ -117,7 +117,7 @@ const an = function(t) {
117
117
  }
118
118
  }
119
119
  return e.join("");
120
- }, cn = {
120
+ }, an = {
121
121
  /**
122
122
  * Maps bytes to characters.
123
123
  */
@@ -191,7 +191,7 @@ const an = function(t) {
191
191
  * @return The base64 encoded string.
192
192
  */
193
193
  encodeString(t, e) {
194
- return this.HAS_NATIVE_SUPPORT && !e ? btoa(t) : this.encodeByteArray(an(t), e);
194
+ return this.HAS_NATIVE_SUPPORT && !e ? btoa(t) : this.encodeByteArray(on(t), e);
195
195
  },
196
196
  /**
197
197
  * Base64-decode a string.
@@ -202,7 +202,7 @@ const an = function(t) {
202
202
  * @return string representing the decoded value.
203
203
  */
204
204
  decodeString(t, e) {
205
- return this.HAS_NATIVE_SUPPORT && !e ? atob(t) : Or(this.decodeStringToByteArray(t, e));
205
+ return this.HAS_NATIVE_SUPPORT && !e ? atob(t) : Nr(this.decodeStringToByteArray(t, e));
206
206
  },
207
207
  /**
208
208
  * Base64-decode a string.
@@ -259,14 +259,14 @@ class Pr extends Error {
259
259
  super(...arguments), this.name = "DecodeBase64StringError";
260
260
  }
261
261
  }
262
- const Nr = function(t) {
263
- const e = an(t);
264
- return cn.encodeByteArray(e, !0);
265
- }, Ne = function(t) {
266
- return Nr(t).replace(/\./g, "");
267
- }, ln = function(t) {
262
+ const Dr = function(t) {
263
+ const e = on(t);
264
+ return an.encodeByteArray(e, !0);
265
+ }, Pe = function(t) {
266
+ return Dr(t).replace(/\./g, "");
267
+ }, cn = function(t) {
268
268
  try {
269
- return cn.decodeString(t, !0);
269
+ return an.decodeString(t, !0);
270
270
  } catch (e) {
271
271
  console.error("base64Decode failed: ", e);
272
272
  }
@@ -288,7 +288,7 @@ const Nr = function(t) {
288
288
  * See the License for the specific language governing permissions and
289
289
  * limitations under the License.
290
290
  */
291
- function Dr() {
291
+ function Ur() {
292
292
  if (typeof self < "u")
293
293
  return self;
294
294
  if (typeof window < "u")
@@ -313,13 +313,13 @@ function Dr() {
313
313
  * See the License for the specific language governing permissions and
314
314
  * limitations under the License.
315
315
  */
316
- const Ur = () => Dr().__FIREBASE_DEFAULTS__, Lr = () => {
316
+ const Lr = () => Ur().__FIREBASE_DEFAULTS__, Mr = () => {
317
317
  if (typeof process > "u" || typeof process.env > "u")
318
318
  return;
319
319
  const t = process.env.__FIREBASE_DEFAULTS__;
320
320
  if (t)
321
321
  return JSON.parse(t);
322
- }, Mr = () => {
322
+ }, xr = () => {
323
323
  if (typeof document > "u")
324
324
  return;
325
325
  let t;
@@ -328,20 +328,20 @@ const Ur = () => Dr().__FIREBASE_DEFAULTS__, Lr = () => {
328
328
  } catch {
329
329
  return;
330
330
  }
331
- const e = t && ln(t[1]);
331
+ const e = t && cn(t[1]);
332
332
  return e && JSON.parse(e);
333
333
  }, Fe = () => {
334
334
  try {
335
- return Ur() || Lr() || Mr();
335
+ return Lr() || Mr() || xr();
336
336
  } catch (t) {
337
337
  console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${t}`);
338
338
  return;
339
339
  }
340
- }, un = (t) => {
340
+ }, ln = (t) => {
341
341
  var e, n;
342
342
  return (n = (e = Fe()) === null || e === void 0 ? void 0 : e.emulatorHosts) === null || n === void 0 ? void 0 : n[t];
343
- }, xr = (t) => {
344
- const e = un(t);
343
+ }, Br = (t) => {
344
+ const e = ln(t);
345
345
  if (!e)
346
346
  return;
347
347
  const n = e.lastIndexOf(":");
@@ -349,10 +349,10 @@ const Ur = () => Dr().__FIREBASE_DEFAULTS__, Lr = () => {
349
349
  throw new Error(`Invalid host ${e} with no separate hostname and port!`);
350
350
  const r = parseInt(e.substring(n + 1), 10);
351
351
  return e[0] === "[" ? [e.substring(1, n - 1), r] : [e.substring(0, n), r];
352
- }, dn = () => {
352
+ }, un = () => {
353
353
  var t;
354
354
  return (t = Fe()) === null || t === void 0 ? void 0 : t.config;
355
- }, hn = (t) => {
355
+ }, dn = (t) => {
356
356
  var e;
357
357
  return (e = Fe()) === null || e === void 0 ? void 0 : e[`_${t}`];
358
358
  };
@@ -372,7 +372,7 @@ const Ur = () => Dr().__FIREBASE_DEFAULTS__, Lr = () => {
372
372
  * See the License for the specific language governing permissions and
373
373
  * limitations under the License.
374
374
  */
375
- class Br {
375
+ class Fr {
376
376
  constructor() {
377
377
  this.reject = () => {
378
378
  }, this.resolve = () => {
@@ -408,7 +408,7 @@ class Br {
408
408
  * See the License for the specific language governing permissions and
409
409
  * limitations under the License.
410
410
  */
411
- function Fr(t, e) {
411
+ function $r(t, e) {
412
412
  if (t.uid)
413
413
  throw new Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');
414
414
  const n = {
@@ -432,8 +432,8 @@ function Fr(t, e) {
432
432
  }
433
433
  }, t), a = "";
434
434
  return [
435
- Ne(JSON.stringify(n)),
436
- Ne(JSON.stringify(o)),
435
+ Pe(JSON.stringify(n)),
436
+ Pe(JSON.stringify(o)),
437
437
  a
438
438
  ].join(".");
439
439
  }
@@ -453,15 +453,15 @@ function Fr(t, e) {
453
453
  * See the License for the specific language governing permissions and
454
454
  * limitations under the License.
455
455
  */
456
- function y() {
456
+ function I() {
457
457
  return typeof navigator < "u" && typeof navigator.userAgent == "string" ? navigator.userAgent : "";
458
458
  }
459
- function $r() {
459
+ function Hr() {
460
460
  return typeof window < "u" && // @ts-ignore Setting up an broadly applicable index signature for Window
461
461
  // just to deal with this case would probably be a bad idea.
462
- !!(window.cordova || window.phonegap || window.PhoneGap) && /ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(y());
462
+ !!(window.cordova || window.phonegap || window.PhoneGap) && /ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(I());
463
463
  }
464
- function Hr() {
464
+ function jr() {
465
465
  var t;
466
466
  const e = (t = Fe()) === null || t === void 0 ? void 0 : t.forceEnvironment;
467
467
  if (e === "node")
@@ -474,25 +474,25 @@ function Hr() {
474
474
  return !1;
475
475
  }
476
476
  }
477
- function jr() {
477
+ function Vr() {
478
478
  const t = typeof chrome == "object" ? chrome.runtime : typeof browser == "object" ? browser.runtime : void 0;
479
479
  return typeof t == "object" && t.id !== void 0;
480
480
  }
481
- function Vr() {
481
+ function Wr() {
482
482
  return typeof navigator == "object" && navigator.product === "ReactNative";
483
483
  }
484
- function Wr() {
485
- const t = y();
484
+ function zr() {
485
+ const t = I();
486
486
  return t.indexOf("MSIE ") >= 0 || t.indexOf("Trident/") >= 0;
487
487
  }
488
- function zr() {
488
+ function qr() {
489
489
  try {
490
490
  return typeof indexedDB == "object";
491
491
  } catch {
492
492
  return !1;
493
493
  }
494
494
  }
495
- function Gr() {
495
+ function Kr() {
496
496
  return new Promise((t, e) => {
497
497
  try {
498
498
  let n = !0;
@@ -526,29 +526,29 @@ function Gr() {
526
526
  * See the License for the specific language governing permissions and
527
527
  * limitations under the License.
528
528
  */
529
- const qr = "FirebaseError";
529
+ const Gr = "FirebaseError";
530
530
  class M extends Error {
531
531
  constructor(e, n, r) {
532
- super(n), this.code = e, this.customData = r, this.name = qr, Object.setPrototypeOf(this, M.prototype), Error.captureStackTrace && Error.captureStackTrace(this, me.prototype.create);
532
+ super(n), this.code = e, this.customData = r, this.name = Gr, Object.setPrototypeOf(this, M.prototype), Error.captureStackTrace && Error.captureStackTrace(this, ge.prototype.create);
533
533
  }
534
534
  }
535
- class me {
535
+ class ge {
536
536
  constructor(e, n, r) {
537
537
  this.service = e, this.serviceName = n, this.errors = r;
538
538
  }
539
539
  create(e, ...n) {
540
- const r = n[0] || {}, i = `${this.service}/${e}`, s = this.errors[e], o = s ? Kr(s, r) : "Error", a = `${this.serviceName}: ${o} (${i}).`;
540
+ const r = n[0] || {}, i = `${this.service}/${e}`, s = this.errors[e], o = s ? Jr(s, r) : "Error", a = `${this.serviceName}: ${o} (${i}).`;
541
541
  return new M(i, a, r);
542
542
  }
543
543
  }
544
- function Kr(t, e) {
545
- return t.replace(Jr, (n, r) => {
544
+ function Jr(t, e) {
545
+ return t.replace(Xr, (n, r) => {
546
546
  const i = e[r];
547
547
  return i != null ? String(i) : `<${r}?>`;
548
548
  });
549
549
  }
550
- const Jr = /\{\$([^}]+)}/g;
551
- function Xr(t) {
550
+ const Xr = /\{\$([^}]+)}/g;
551
+ function Yr(t) {
552
552
  for (const e in t)
553
553
  if (Object.prototype.hasOwnProperty.call(t, e))
554
554
  return !1;
@@ -600,7 +600,7 @@ function _e(t) {
600
600
  }) : e.push(encodeURIComponent(n) + "=" + encodeURIComponent(r));
601
601
  return e.length ? "&" + e.join("&") : "";
602
602
  }
603
- function Yr(t, e) {
603
+ function Qr(t, e) {
604
604
  const n = new Zr(t, e);
605
605
  return n.subscribe.bind(n);
606
606
  }
@@ -642,7 +642,7 @@ class Zr {
642
642
  let i;
643
643
  if (e === void 0 && n === void 0 && r === void 0)
644
644
  throw new Error("Missing Observer.");
645
- Qr(e, [
645
+ ei(e, [
646
646
  "next",
647
647
  "error",
648
648
  "complete"
@@ -688,7 +688,7 @@ class Zr {
688
688
  }));
689
689
  }
690
690
  }
691
- function Qr(t, e) {
691
+ function ei(t, e) {
692
692
  if (typeof t != "object" || t === null)
693
693
  return !1;
694
694
  for (const n of e)
@@ -756,7 +756,7 @@ class Y {
756
756
  * See the License for the specific language governing permissions and
757
757
  * limitations under the License.
758
758
  */
759
- const K = "[DEFAULT]";
759
+ const G = "[DEFAULT]";
760
760
  /**
761
761
  * @license
762
762
  * Copyright 2019 Google LLC
@@ -773,7 +773,7 @@ const K = "[DEFAULT]";
773
773
  * See the License for the specific language governing permissions and
774
774
  * limitations under the License.
775
775
  */
776
- class ei {
776
+ class ti {
777
777
  constructor(e, n) {
778
778
  this.name = e, this.container = n, this.component = null, this.instances = /* @__PURE__ */ new Map(), this.instancesDeferred = /* @__PURE__ */ new Map(), this.instancesOptions = /* @__PURE__ */ new Map(), this.onInitCallbacks = /* @__PURE__ */ new Map();
779
779
  }
@@ -784,7 +784,7 @@ class ei {
784
784
  get(e) {
785
785
  const n = this.normalizeInstanceIdentifier(e);
786
786
  if (!this.instancesDeferred.has(n)) {
787
- const r = new Br();
787
+ const r = new Fr();
788
788
  if (this.instancesDeferred.set(n, r), this.isInitialized(n) || this.shouldAutoInitialize())
789
789
  try {
790
790
  const i = this.getOrInitializeService({
@@ -824,9 +824,9 @@ class ei {
824
824
  if (this.component)
825
825
  throw Error(`Component for ${this.name} has already been provided`);
826
826
  if (this.component = e, !!this.shouldAutoInitialize()) {
827
- if (ni(e))
827
+ if (ri(e))
828
828
  try {
829
- this.getOrInitializeService({ instanceIdentifier: K });
829
+ this.getOrInitializeService({ instanceIdentifier: G });
830
830
  } catch {
831
831
  }
832
832
  for (const [n, r] of this.instancesDeferred.entries()) {
@@ -841,7 +841,7 @@ class ei {
841
841
  }
842
842
  }
843
843
  }
844
- clearInstance(e = K) {
844
+ clearInstance(e = G) {
845
845
  this.instancesDeferred.delete(e), this.instancesOptions.delete(e), this.instances.delete(e);
846
846
  }
847
847
  // app.delete() will call this method on every provider to delete the services
@@ -856,10 +856,10 @@ class ei {
856
856
  isComponentSet() {
857
857
  return this.component != null;
858
858
  }
859
- isInitialized(e = K) {
859
+ isInitialized(e = G) {
860
860
  return this.instances.has(e);
861
861
  }
862
- getOptions(e = K) {
862
+ getOptions(e = G) {
863
863
  return this.instancesOptions.get(e) || {};
864
864
  }
865
865
  initialize(e = {}) {
@@ -911,7 +911,7 @@ class ei {
911
911
  getOrInitializeService({ instanceIdentifier: e, options: n = {} }) {
912
912
  let r = this.instances.get(e);
913
913
  if (!r && this.component && (r = this.component.instanceFactory(this.container, {
914
- instanceIdentifier: ti(e),
914
+ instanceIdentifier: ni(e),
915
915
  options: n
916
916
  }), this.instances.set(e, r), this.instancesOptions.set(e, n), this.invokeOnInitCallbacks(r, e), this.component.onInstanceCreated))
917
917
  try {
@@ -920,17 +920,17 @@ class ei {
920
920
  }
921
921
  return r || null;
922
922
  }
923
- normalizeInstanceIdentifier(e = K) {
924
- return this.component ? this.component.multipleInstances ? e : K : e;
923
+ normalizeInstanceIdentifier(e = G) {
924
+ return this.component ? this.component.multipleInstances ? e : G : e;
925
925
  }
926
926
  shouldAutoInitialize() {
927
927
  return !!this.component && this.component.instantiationMode !== "EXPLICIT";
928
928
  }
929
929
  }
930
- function ti(t) {
931
- return t === K ? void 0 : t;
932
- }
933
930
  function ni(t) {
931
+ return t === G ? void 0 : t;
932
+ }
933
+ function ri(t) {
934
934
  return t.instantiationMode === "EAGER";
935
935
  }
936
936
  /**
@@ -949,7 +949,7 @@ function ni(t) {
949
949
  * See the License for the specific language governing permissions and
950
950
  * limitations under the License.
951
951
  */
952
- class ri {
952
+ class ii {
953
953
  constructor(e) {
954
954
  this.name = e, this.providers = /* @__PURE__ */ new Map();
955
955
  }
@@ -981,7 +981,7 @@ class ri {
981
981
  getProvider(e) {
982
982
  if (this.providers.has(e))
983
983
  return this.providers.get(e);
984
- const n = new ei(e, this);
984
+ const n = new ti(e, this);
985
985
  return this.providers.set(e, n), n;
986
986
  }
987
987
  getProviders() {
@@ -1008,29 +1008,29 @@ var p;
1008
1008
  (function(t) {
1009
1009
  t[t.DEBUG = 0] = "DEBUG", t[t.VERBOSE = 1] = "VERBOSE", t[t.INFO = 2] = "INFO", t[t.WARN = 3] = "WARN", t[t.ERROR = 4] = "ERROR", t[t.SILENT = 5] = "SILENT";
1010
1010
  })(p || (p = {}));
1011
- const ii = {
1011
+ const si = {
1012
1012
  debug: p.DEBUG,
1013
1013
  verbose: p.VERBOSE,
1014
1014
  info: p.INFO,
1015
1015
  warn: p.WARN,
1016
1016
  error: p.ERROR,
1017
1017
  silent: p.SILENT
1018
- }, si = p.INFO, oi = {
1018
+ }, oi = p.INFO, ai = {
1019
1019
  [p.DEBUG]: "log",
1020
1020
  [p.VERBOSE]: "log",
1021
1021
  [p.INFO]: "info",
1022
1022
  [p.WARN]: "warn",
1023
1023
  [p.ERROR]: "error"
1024
- }, ai = (t, e, ...n) => {
1024
+ }, ci = (t, e, ...n) => {
1025
1025
  if (e < t.logLevel)
1026
1026
  return;
1027
- const r = (/* @__PURE__ */ new Date()).toISOString(), i = oi[e];
1027
+ const r = (/* @__PURE__ */ new Date()).toISOString(), i = ai[e];
1028
1028
  if (i)
1029
1029
  console[i](`[${r}] ${t.name}:`, ...n);
1030
1030
  else
1031
1031
  throw new Error(`Attempted to log a message with an invalid logType (value: ${e})`);
1032
1032
  };
1033
- class fn {
1033
+ class hn {
1034
1034
  /**
1035
1035
  * Gives you an instance of a Logger to capture messages according to
1036
1036
  * Firebase's logging scheme.
@@ -1038,7 +1038,7 @@ class fn {
1038
1038
  * @param name The name that the logs will be associated with
1039
1039
  */
1040
1040
  constructor(e) {
1041
- this.name = e, this._logLevel = si, this._logHandler = ai, this._userLogHandler = null;
1041
+ this.name = e, this._logLevel = oi, this._logHandler = ci, this._userLogHandler = null;
1042
1042
  }
1043
1043
  get logLevel() {
1044
1044
  return this._logLevel;
@@ -1050,7 +1050,7 @@ class fn {
1050
1050
  }
1051
1051
  // Workaround for setter/getter having to be the same type.
1052
1052
  setLogLevel(e) {
1053
- this._logLevel = typeof e == "string" ? ii[e] : e;
1053
+ this._logLevel = typeof e == "string" ? si[e] : e;
1054
1054
  }
1055
1055
  get logHandler() {
1056
1056
  return this._logHandler;
@@ -1085,9 +1085,9 @@ class fn {
1085
1085
  this._userLogHandler && this._userLogHandler(this, p.ERROR, ...e), this._logHandler(this, p.ERROR, ...e);
1086
1086
  }
1087
1087
  }
1088
- const ci = (t, e) => e.some((n) => t instanceof n);
1088
+ const li = (t, e) => e.some((n) => t instanceof n);
1089
1089
  let At, kt;
1090
- function li() {
1090
+ function ui() {
1091
1091
  return At || (At = [
1092
1092
  IDBDatabase,
1093
1093
  IDBObjectStore,
@@ -1096,15 +1096,15 @@ function li() {
1096
1096
  IDBTransaction
1097
1097
  ]);
1098
1098
  }
1099
- function ui() {
1099
+ function di() {
1100
1100
  return kt || (kt = [
1101
1101
  IDBCursor.prototype.advance,
1102
1102
  IDBCursor.prototype.continue,
1103
1103
  IDBCursor.prototype.continuePrimaryKey
1104
1104
  ]);
1105
1105
  }
1106
- const pn = /* @__PURE__ */ new WeakMap(), tt = /* @__PURE__ */ new WeakMap(), gn = /* @__PURE__ */ new WeakMap(), Ge = /* @__PURE__ */ new WeakMap(), lt = /* @__PURE__ */ new WeakMap();
1107
- function di(t) {
1106
+ const fn = /* @__PURE__ */ new WeakMap(), tt = /* @__PURE__ */ new WeakMap(), pn = /* @__PURE__ */ new WeakMap(), qe = /* @__PURE__ */ new WeakMap(), lt = /* @__PURE__ */ new WeakMap();
1107
+ function hi(t) {
1108
1108
  const e = new Promise((n, r) => {
1109
1109
  const i = () => {
1110
1110
  t.removeEventListener("success", s), t.removeEventListener("error", o);
@@ -1116,11 +1116,11 @@ function di(t) {
1116
1116
  t.addEventListener("success", s), t.addEventListener("error", o);
1117
1117
  });
1118
1118
  return e.then((n) => {
1119
- n instanceof IDBCursor && pn.set(n, t);
1119
+ n instanceof IDBCursor && fn.set(n, t);
1120
1120
  }).catch(() => {
1121
1121
  }), lt.set(e, t), e;
1122
1122
  }
1123
- function hi(t) {
1123
+ function fi(t) {
1124
1124
  if (tt.has(t))
1125
1125
  return;
1126
1126
  const e = new Promise((n, r) => {
@@ -1141,7 +1141,7 @@ let nt = {
1141
1141
  if (e === "done")
1142
1142
  return tt.get(t);
1143
1143
  if (e === "objectStoreNames")
1144
- return t.objectStoreNames || gn.get(t);
1144
+ return t.objectStoreNames || pn.get(t);
1145
1145
  if (e === "store")
1146
1146
  return n.objectStoreNames[1] ? void 0 : n.objectStore(n.objectStoreNames[0]);
1147
1147
  }
@@ -1154,32 +1154,32 @@ let nt = {
1154
1154
  return t instanceof IDBTransaction && (e === "done" || e === "store") ? !0 : e in t;
1155
1155
  }
1156
1156
  };
1157
- function fi(t) {
1157
+ function pi(t) {
1158
1158
  nt = t(nt);
1159
1159
  }
1160
- function pi(t) {
1160
+ function mi(t) {
1161
1161
  return t === IDBDatabase.prototype.transaction && !("objectStoreNames" in IDBTransaction.prototype) ? function(e, ...n) {
1162
- const r = t.call(qe(this), e, ...n);
1163
- return gn.set(r, e.sort ? e.sort() : [e]), V(r);
1164
- } : ui().includes(t) ? function(...e) {
1165
- return t.apply(qe(this), e), V(pn.get(this));
1162
+ const r = t.call(Ke(this), e, ...n);
1163
+ return pn.set(r, e.sort ? e.sort() : [e]), V(r);
1164
+ } : di().includes(t) ? function(...e) {
1165
+ return t.apply(Ke(this), e), V(fn.get(this));
1166
1166
  } : function(...e) {
1167
- return V(t.apply(qe(this), e));
1167
+ return V(t.apply(Ke(this), e));
1168
1168
  };
1169
1169
  }
1170
1170
  function gi(t) {
1171
- return typeof t == "function" ? pi(t) : (t instanceof IDBTransaction && hi(t), ci(t, li()) ? new Proxy(t, nt) : t);
1171
+ return typeof t == "function" ? mi(t) : (t instanceof IDBTransaction && fi(t), li(t, ui()) ? new Proxy(t, nt) : t);
1172
1172
  }
1173
1173
  function V(t) {
1174
1174
  if (t instanceof IDBRequest)
1175
- return di(t);
1176
- if (Ge.has(t))
1177
- return Ge.get(t);
1175
+ return hi(t);
1176
+ if (qe.has(t))
1177
+ return qe.get(t);
1178
1178
  const e = gi(t);
1179
- return e !== t && (Ge.set(t, e), lt.set(e, t)), e;
1179
+ return e !== t && (qe.set(t, e), lt.set(e, t)), e;
1180
1180
  }
1181
- const qe = (t) => lt.get(t);
1182
- function mi(t, e, { blocked: n, upgrade: r, blocking: i, terminated: s } = {}) {
1181
+ const Ke = (t) => lt.get(t);
1182
+ function _i(t, e, { blocked: n, upgrade: r, blocking: i, terminated: s } = {}) {
1183
1183
  const o = indexedDB.open(t, e), a = V(o);
1184
1184
  return r && o.addEventListener("upgradeneeded", (c) => {
1185
1185
  r(V(o.result), c.oldVersion, c.newVersion, V(o.transaction), c);
@@ -1193,16 +1193,16 @@ function mi(t, e, { blocked: n, upgrade: r, blocking: i, terminated: s } = {}) {
1193
1193
  }).catch(() => {
1194
1194
  }), a;
1195
1195
  }
1196
- const _i = ["get", "getKey", "getAll", "getAllKeys", "count"], vi = ["put", "add", "delete", "clear"], Ke = /* @__PURE__ */ new Map();
1196
+ const vi = ["get", "getKey", "getAll", "getAllKeys", "count"], bi = ["put", "add", "delete", "clear"], Ge = /* @__PURE__ */ new Map();
1197
1197
  function St(t, e) {
1198
1198
  if (!(t instanceof IDBDatabase && !(e in t) && typeof e == "string"))
1199
1199
  return;
1200
- if (Ke.get(e))
1201
- return Ke.get(e);
1202
- const n = e.replace(/FromIndex$/, ""), r = e !== n, i = vi.includes(n);
1200
+ if (Ge.get(e))
1201
+ return Ge.get(e);
1202
+ const n = e.replace(/FromIndex$/, ""), r = e !== n, i = bi.includes(n);
1203
1203
  if (
1204
1204
  // Bail if the target doesn't exist on the target. Eg, getAll isn't in Edge.
1205
- !(n in (r ? IDBIndex : IDBObjectStore).prototype) || !(i || _i.includes(n))
1205
+ !(n in (r ? IDBIndex : IDBObjectStore).prototype) || !(i || vi.includes(n))
1206
1206
  )
1207
1207
  return;
1208
1208
  const s = async function(o, ...a) {
@@ -1213,9 +1213,9 @@ function St(t, e) {
1213
1213
  i && c.done
1214
1214
  ]))[0];
1215
1215
  };
1216
- return Ke.set(e, s), s;
1216
+ return Ge.set(e, s), s;
1217
1217
  }
1218
- fi((t) => ({
1218
+ pi((t) => ({
1219
1219
  ...t,
1220
1220
  get: (e, n, r) => St(e, n) || t.get(e, n, r),
1221
1221
  has: (e, n) => !!St(e, n) || t.has(e, n)
@@ -1236,7 +1236,7 @@ fi((t) => ({
1236
1236
  * See the License for the specific language governing permissions and
1237
1237
  * limitations under the License.
1238
1238
  */
1239
- class bi {
1239
+ class yi {
1240
1240
  constructor(e) {
1241
1241
  this.container = e;
1242
1242
  }
@@ -1273,7 +1273,7 @@ const rt = "@firebase/app", Ct = "0.9.13";
1273
1273
  * See the License for the specific language governing permissions and
1274
1274
  * limitations under the License.
1275
1275
  */
1276
- const Z = new fn("@firebase/app"), yi = "@firebase/app-compat", wi = "@firebase/analytics-compat", Ei = "@firebase/analytics", Ti = "@firebase/app-check-compat", Ri = "@firebase/app-check", Ai = "@firebase/auth", ki = "@firebase/auth-compat", Si = "@firebase/database", Ci = "@firebase/database-compat", Oi = "@firebase/functions", Pi = "@firebase/functions-compat", Ni = "@firebase/installations", Di = "@firebase/installations-compat", Ui = "@firebase/messaging", Li = "@firebase/messaging-compat", Mi = "@firebase/performance", xi = "@firebase/performance-compat", Bi = "@firebase/remote-config", Fi = "@firebase/remote-config-compat", $i = "@firebase/storage", Hi = "@firebase/storage-compat", ji = "@firebase/firestore", Vi = "@firebase/firestore-compat", Wi = "firebase", zi = "9.23.0";
1276
+ const Q = new hn("@firebase/app"), wi = "@firebase/app-compat", Ei = "@firebase/analytics-compat", Ti = "@firebase/analytics", Ri = "@firebase/app-check-compat", Ai = "@firebase/app-check", ki = "@firebase/auth", Si = "@firebase/auth-compat", Ci = "@firebase/database", Oi = "@firebase/database-compat", Ni = "@firebase/functions", Pi = "@firebase/functions-compat", Di = "@firebase/installations", Ui = "@firebase/installations-compat", Li = "@firebase/messaging", Mi = "@firebase/messaging-compat", xi = "@firebase/performance", Bi = "@firebase/performance-compat", Fi = "@firebase/remote-config", $i = "@firebase/remote-config-compat", Hi = "@firebase/storage", ji = "@firebase/storage-compat", Vi = "@firebase/firestore", Wi = "@firebase/firestore-compat", zi = "firebase", qi = "9.23.0";
1277
1277
  /**
1278
1278
  * @license
1279
1279
  * Copyright 2019 Google LLC
@@ -1290,33 +1290,33 @@ const Z = new fn("@firebase/app"), yi = "@firebase/app-compat", wi = "@firebase/
1290
1290
  * See the License for the specific language governing permissions and
1291
1291
  * limitations under the License.
1292
1292
  */
1293
- const it = "[DEFAULT]", Gi = {
1293
+ const it = "[DEFAULT]", Ki = {
1294
1294
  [rt]: "fire-core",
1295
- [yi]: "fire-core-compat",
1296
- [Ei]: "fire-analytics",
1297
- [wi]: "fire-analytics-compat",
1298
- [Ri]: "fire-app-check",
1299
- [Ti]: "fire-app-check-compat",
1300
- [Ai]: "fire-auth",
1301
- [ki]: "fire-auth-compat",
1302
- [Si]: "fire-rtdb",
1303
- [Ci]: "fire-rtdb-compat",
1304
- [Oi]: "fire-fn",
1295
+ [wi]: "fire-core-compat",
1296
+ [Ti]: "fire-analytics",
1297
+ [Ei]: "fire-analytics-compat",
1298
+ [Ai]: "fire-app-check",
1299
+ [Ri]: "fire-app-check-compat",
1300
+ [ki]: "fire-auth",
1301
+ [Si]: "fire-auth-compat",
1302
+ [Ci]: "fire-rtdb",
1303
+ [Oi]: "fire-rtdb-compat",
1304
+ [Ni]: "fire-fn",
1305
1305
  [Pi]: "fire-fn-compat",
1306
- [Ni]: "fire-iid",
1307
- [Di]: "fire-iid-compat",
1308
- [Ui]: "fire-fcm",
1309
- [Li]: "fire-fcm-compat",
1310
- [Mi]: "fire-perf",
1311
- [xi]: "fire-perf-compat",
1312
- [Bi]: "fire-rc",
1313
- [Fi]: "fire-rc-compat",
1314
- [$i]: "fire-gcs",
1315
- [Hi]: "fire-gcs-compat",
1316
- [ji]: "fire-fst",
1317
- [Vi]: "fire-fst-compat",
1306
+ [Di]: "fire-iid",
1307
+ [Ui]: "fire-iid-compat",
1308
+ [Li]: "fire-fcm",
1309
+ [Mi]: "fire-fcm-compat",
1310
+ [xi]: "fire-perf",
1311
+ [Bi]: "fire-perf-compat",
1312
+ [Fi]: "fire-rc",
1313
+ [$i]: "fire-rc-compat",
1314
+ [Hi]: "fire-gcs",
1315
+ [ji]: "fire-gcs-compat",
1316
+ [Vi]: "fire-fst",
1317
+ [Wi]: "fire-fst-compat",
1318
1318
  "fire-js": "fire-js",
1319
- [Wi]: "fire-js-all"
1319
+ [zi]: "fire-js-all"
1320
1320
  };
1321
1321
  /**
1322
1322
  * @license
@@ -1335,20 +1335,20 @@ const it = "[DEFAULT]", Gi = {
1335
1335
  * limitations under the License.
1336
1336
  */
1337
1337
  const he = /* @__PURE__ */ new Map(), st = /* @__PURE__ */ new Map();
1338
- function qi(t, e) {
1338
+ function Gi(t, e) {
1339
1339
  try {
1340
1340
  t.container.addComponent(e);
1341
1341
  } catch (n) {
1342
- Z.debug(`Component ${e.name} failed to register with FirebaseApp ${t.name}`, n);
1342
+ Q.debug(`Component ${e.name} failed to register with FirebaseApp ${t.name}`, n);
1343
1343
  }
1344
1344
  }
1345
1345
  function se(t) {
1346
1346
  const e = t.name;
1347
1347
  if (st.has(e))
1348
- return Z.debug(`There were multiple attempts to register component ${e}.`), !1;
1348
+ return Q.debug(`There were multiple attempts to register component ${e}.`), !1;
1349
1349
  st.set(e, t);
1350
1350
  for (const n of he.values())
1351
- qi(n, t);
1351
+ Gi(n, t);
1352
1352
  return !0;
1353
1353
  }
1354
1354
  function ut(t, e) {
@@ -1371,7 +1371,7 @@ function ut(t, e) {
1371
1371
  * See the License for the specific language governing permissions and
1372
1372
  * limitations under the License.
1373
1373
  */
1374
- const Ki = {
1374
+ const Ji = {
1375
1375
  "no-app": "No Firebase App '{$appName}' has been created - call initializeApp() first",
1376
1376
  "bad-app-name": "Illegal App name: '{$appName}",
1377
1377
  "duplicate-app": "Firebase App named '{$appName}' already exists with different options or config",
@@ -1383,7 +1383,7 @@ const Ki = {
1383
1383
  "idb-get": "Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.",
1384
1384
  "idb-set": "Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.",
1385
1385
  "idb-delete": "Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}."
1386
- }, W = new me("app", "Firebase", Ki);
1386
+ }, W = new ge("app", "Firebase", Ji);
1387
1387
  /**
1388
1388
  * @license
1389
1389
  * Copyright 2019 Google LLC
@@ -1400,7 +1400,7 @@ const Ki = {
1400
1400
  * See the License for the specific language governing permissions and
1401
1401
  * limitations under the License.
1402
1402
  */
1403
- class Ji {
1403
+ class Xi {
1404
1404
  constructor(e, n, r) {
1405
1405
  this._isDeleted = !1, this._options = Object.assign({}, e), this._config = Object.assign({}, n), this._name = n.name, this._automaticDataCollectionEnabled = n.automaticDataCollectionEnabled, this._container = r, this.container.addComponent(new Y(
1406
1406
  "app",
@@ -1458,7 +1458,7 @@ class Ji {
1458
1458
  * See the License for the specific language governing permissions and
1459
1459
  * limitations under the License.
1460
1460
  */
1461
- const oe = zi;
1461
+ const oe = qi;
1462
1462
  function mn(t, e = {}) {
1463
1463
  let n = t;
1464
1464
  typeof e != "object" && (e = { name: e });
@@ -1467,7 +1467,7 @@ function mn(t, e = {}) {
1467
1467
  throw W.create("bad-app-name", {
1468
1468
  appName: String(i)
1469
1469
  });
1470
- if (n || (n = dn()), !n)
1470
+ if (n || (n = un()), !n)
1471
1471
  throw W.create(
1472
1472
  "no-options"
1473
1473
  /* AppError.NO_OPTIONS */
@@ -1478,33 +1478,33 @@ function mn(t, e = {}) {
1478
1478
  return s;
1479
1479
  throw W.create("duplicate-app", { appName: i });
1480
1480
  }
1481
- const o = new ri(i);
1481
+ const o = new ii(i);
1482
1482
  for (const c of st.values())
1483
1483
  o.addComponent(c);
1484
- const a = new Ji(n, r, o);
1484
+ const a = new Xi(n, r, o);
1485
1485
  return he.set(i, a), a;
1486
1486
  }
1487
- function _n(t = it) {
1487
+ function gn(t = it) {
1488
1488
  const e = he.get(t);
1489
- if (!e && t === it && dn())
1489
+ if (!e && t === it && un())
1490
1490
  return mn();
1491
1491
  if (!e)
1492
1492
  throw W.create("no-app", { appName: t });
1493
1493
  return e;
1494
1494
  }
1495
- function Xi() {
1495
+ function Yi() {
1496
1496
  return Array.from(he.values());
1497
1497
  }
1498
1498
  function z(t, e, n) {
1499
1499
  var r;
1500
- let i = (r = Gi[t]) !== null && r !== void 0 ? r : t;
1500
+ let i = (r = Ki[t]) !== null && r !== void 0 ? r : t;
1501
1501
  n && (i += `-${n}`);
1502
1502
  const s = i.match(/\s|\//), o = e.match(/\s|\//);
1503
1503
  if (s || o) {
1504
1504
  const a = [
1505
1505
  `Unable to register library "${i}" with version "${e}":`
1506
1506
  ];
1507
- s && a.push(`library name "${i}" contains illegal characters (whitespace or "/")`), s && o && a.push("and"), o && a.push(`version name "${e}" contains illegal characters (whitespace or "/")`), Z.warn(a.join(" "));
1507
+ s && a.push(`library name "${i}" contains illegal characters (whitespace or "/")`), s && o && a.push("and"), o && a.push(`version name "${e}" contains illegal characters (whitespace or "/")`), Q.warn(a.join(" "));
1508
1508
  return;
1509
1509
  }
1510
1510
  se(new Y(
@@ -1530,10 +1530,10 @@ function z(t, e, n) {
1530
1530
  * See the License for the specific language governing permissions and
1531
1531
  * limitations under the License.
1532
1532
  */
1533
- const Yi = "firebase-heartbeat-database", Zi = 1, fe = "firebase-heartbeat-store";
1533
+ const Qi = "firebase-heartbeat-database", Zi = 1, fe = "firebase-heartbeat-store";
1534
1534
  let Je = null;
1535
- function vn() {
1536
- return Je || (Je = mi(Yi, Zi, {
1535
+ function _n() {
1536
+ return Je || (Je = _i(Qi, Zi, {
1537
1537
  upgrade: (t, e) => {
1538
1538
  switch (e) {
1539
1539
  case 0:
@@ -1546,36 +1546,36 @@ function vn() {
1546
1546
  });
1547
1547
  })), Je;
1548
1548
  }
1549
- async function Qi(t) {
1549
+ async function es(t) {
1550
1550
  try {
1551
- return await (await vn()).transaction(fe).objectStore(fe).get(bn(t));
1551
+ return await (await _n()).transaction(fe).objectStore(fe).get(vn(t));
1552
1552
  } catch (e) {
1553
1553
  if (e instanceof M)
1554
- Z.warn(e.message);
1554
+ Q.warn(e.message);
1555
1555
  else {
1556
1556
  const n = W.create("idb-get", {
1557
1557
  originalErrorMessage: e == null ? void 0 : e.message
1558
1558
  });
1559
- Z.warn(n.message);
1559
+ Q.warn(n.message);
1560
1560
  }
1561
1561
  }
1562
1562
  }
1563
1563
  async function Ot(t, e) {
1564
1564
  try {
1565
- const r = (await vn()).transaction(fe, "readwrite");
1566
- await r.objectStore(fe).put(e, bn(t)), await r.done;
1565
+ const r = (await _n()).transaction(fe, "readwrite");
1566
+ await r.objectStore(fe).put(e, vn(t)), await r.done;
1567
1567
  } catch (n) {
1568
1568
  if (n instanceof M)
1569
- Z.warn(n.message);
1569
+ Q.warn(n.message);
1570
1570
  else {
1571
1571
  const r = W.create("idb-set", {
1572
1572
  originalErrorMessage: n == null ? void 0 : n.message
1573
1573
  });
1574
- Z.warn(r.message);
1574
+ Q.warn(r.message);
1575
1575
  }
1576
1576
  }
1577
1577
  }
1578
- function bn(t) {
1578
+ function vn(t) {
1579
1579
  return `${t.name}!${t.options.appId}`;
1580
1580
  }
1581
1581
  /**
@@ -1594,12 +1594,12 @@ function bn(t) {
1594
1594
  * See the License for the specific language governing permissions and
1595
1595
  * limitations under the License.
1596
1596
  */
1597
- const es = 1024, ts = 30 * 24 * 60 * 60 * 1e3;
1598
- class ns {
1597
+ const ts = 1024, ns = 30 * 24 * 60 * 60 * 1e3;
1598
+ class rs {
1599
1599
  constructor(e) {
1600
1600
  this.container = e, this._heartbeatsCache = null;
1601
1601
  const n = this.container.getProvider("app").getImmediate();
1602
- this._storage = new is(n), this._heartbeatsCachePromise = this._storage.read().then((r) => (this._heartbeatsCache = r, r));
1602
+ this._storage = new ss(n), this._heartbeatsCachePromise = this._storage.read().then((r) => (this._heartbeatsCache = r, r));
1603
1603
  }
1604
1604
  /**
1605
1605
  * Called to report a heartbeat. The function will generate
@@ -1609,11 +1609,11 @@ class ns {
1609
1609
  * already logged, subsequent calls to this function in the same day will be ignored.
1610
1610
  */
1611
1611
  async triggerHeartbeat() {
1612
- const n = this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(), r = Pt();
1612
+ const n = this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(), r = Nt();
1613
1613
  if (this._heartbeatsCache === null && (this._heartbeatsCache = await this._heartbeatsCachePromise), !(this._heartbeatsCache.lastSentHeartbeatDate === r || this._heartbeatsCache.heartbeats.some((i) => i.date === r)))
1614
1614
  return this._heartbeatsCache.heartbeats.push({ date: r, agent: n }), this._heartbeatsCache.heartbeats = this._heartbeatsCache.heartbeats.filter((i) => {
1615
1615
  const s = new Date(i.date).valueOf();
1616
- return Date.now() - s <= ts;
1616
+ return Date.now() - s <= ns;
1617
1617
  }), this._storage.overwrite(this._heartbeatsCache);
1618
1618
  }
1619
1619
  /**
@@ -1626,27 +1626,27 @@ class ns {
1626
1626
  async getHeartbeatsHeader() {
1627
1627
  if (this._heartbeatsCache === null && await this._heartbeatsCachePromise, this._heartbeatsCache === null || this._heartbeatsCache.heartbeats.length === 0)
1628
1628
  return "";
1629
- const e = Pt(), { heartbeatsToSend: n, unsentEntries: r } = rs(this._heartbeatsCache.heartbeats), i = Ne(JSON.stringify({ version: 2, heartbeats: n }));
1629
+ const e = Nt(), { heartbeatsToSend: n, unsentEntries: r } = is(this._heartbeatsCache.heartbeats), i = Pe(JSON.stringify({ version: 2, heartbeats: n }));
1630
1630
  return this._heartbeatsCache.lastSentHeartbeatDate = e, r.length > 0 ? (this._heartbeatsCache.heartbeats = r, await this._storage.overwrite(this._heartbeatsCache)) : (this._heartbeatsCache.heartbeats = [], this._storage.overwrite(this._heartbeatsCache)), i;
1631
1631
  }
1632
1632
  }
1633
- function Pt() {
1633
+ function Nt() {
1634
1634
  return (/* @__PURE__ */ new Date()).toISOString().substring(0, 10);
1635
1635
  }
1636
- function rs(t, e = es) {
1636
+ function is(t, e = ts) {
1637
1637
  const n = [];
1638
1638
  let r = t.slice();
1639
1639
  for (const i of t) {
1640
1640
  const s = n.find((o) => o.agent === i.agent);
1641
1641
  if (s) {
1642
- if (s.dates.push(i.date), Nt(n) > e) {
1642
+ if (s.dates.push(i.date), Pt(n) > e) {
1643
1643
  s.dates.pop();
1644
1644
  break;
1645
1645
  }
1646
1646
  } else if (n.push({
1647
1647
  agent: i.agent,
1648
1648
  dates: [i.date]
1649
- }), Nt(n) > e) {
1649
+ }), Pt(n) > e) {
1650
1650
  n.pop();
1651
1651
  break;
1652
1652
  }
@@ -1657,18 +1657,18 @@ function rs(t, e = es) {
1657
1657
  unsentEntries: r
1658
1658
  };
1659
1659
  }
1660
- class is {
1660
+ class ss {
1661
1661
  constructor(e) {
1662
1662
  this.app = e, this._canUseIndexedDBPromise = this.runIndexedDBEnvironmentCheck();
1663
1663
  }
1664
1664
  async runIndexedDBEnvironmentCheck() {
1665
- return zr() ? Gr().then(() => !0).catch(() => !1) : !1;
1665
+ return qr() ? Kr().then(() => !0).catch(() => !1) : !1;
1666
1666
  }
1667
1667
  /**
1668
1668
  * Read all heartbeats.
1669
1669
  */
1670
1670
  async read() {
1671
- return await this._canUseIndexedDBPromise ? await Qi(this.app) || { heartbeats: [] } : { heartbeats: [] };
1671
+ return await this._canUseIndexedDBPromise ? await es(this.app) || { heartbeats: [] } : { heartbeats: [] };
1672
1672
  }
1673
1673
  // overwrite the storage with the provided heartbeats
1674
1674
  async overwrite(e) {
@@ -1698,8 +1698,8 @@ class is {
1698
1698
  return;
1699
1699
  }
1700
1700
  }
1701
- function Nt(t) {
1702
- return Ne(
1701
+ function Pt(t) {
1702
+ return Pe(
1703
1703
  // heartbeatsCache wrapper properties
1704
1704
  JSON.stringify({ version: 2, heartbeats: t })
1705
1705
  ).length;
@@ -1720,21 +1720,21 @@ function Nt(t) {
1720
1720
  * See the License for the specific language governing permissions and
1721
1721
  * limitations under the License.
1722
1722
  */
1723
- function ss(t) {
1723
+ function os(t) {
1724
1724
  se(new Y(
1725
1725
  "platform-logger",
1726
- (e) => new bi(e),
1726
+ (e) => new yi(e),
1727
1727
  "PRIVATE"
1728
1728
  /* ComponentType.PRIVATE */
1729
1729
  )), se(new Y(
1730
1730
  "heartbeat",
1731
- (e) => new ns(e),
1731
+ (e) => new rs(e),
1732
1732
  "PRIVATE"
1733
1733
  /* ComponentType.PRIVATE */
1734
1734
  )), z(rt, Ct, t), z(rt, Ct, "esm2017"), z("fire-js", "");
1735
1735
  }
1736
- ss("");
1737
- var os = "firebase", as = "9.23.0";
1736
+ os("");
1737
+ var as = "firebase", cs = "9.23.0";
1738
1738
  /**
1739
1739
  * @license
1740
1740
  * Copyright 2020 Google LLC
@@ -1751,7 +1751,7 @@ var os = "firebase", as = "9.23.0";
1751
1751
  * See the License for the specific language governing permissions and
1752
1752
  * limitations under the License.
1753
1753
  */
1754
- z(os, as, "app");
1754
+ z(as, cs, "app");
1755
1755
  function dt(t, e) {
1756
1756
  var n = {};
1757
1757
  for (var r in t)
@@ -1761,12 +1761,12 @@ function dt(t, e) {
1761
1761
  e.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[i]) && (n[r[i]] = t[r[i]]);
1762
1762
  return n;
1763
1763
  }
1764
- function In() {
1764
+ function bn() {
1765
1765
  return {
1766
1766
  "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."
1767
1767
  };
1768
1768
  }
1769
- const cs = In, yn = new me("auth", "Firebase", In());
1769
+ const ls = bn, yn = new ge("auth", "Firebase", bn());
1770
1770
  /**
1771
1771
  * @license
1772
1772
  * Copyright 2020 Google LLC
@@ -1783,8 +1783,8 @@ const cs = In, yn = new me("auth", "Firebase", In());
1783
1783
  * See the License for the specific language governing permissions and
1784
1784
  * limitations under the License.
1785
1785
  */
1786
- const Ue = new fn("@firebase/auth");
1787
- function ls(t, ...e) {
1786
+ const Ue = new hn("@firebase/auth");
1787
+ function us(t, ...e) {
1788
1788
  Ue.logLevel <= p.WARN && Ue.warn(`Auth (${oe}): ${t}`, ...e);
1789
1789
  }
1790
1790
  function Se(t, ...e) {
@@ -1812,9 +1812,9 @@ function U(t, ...e) {
1812
1812
  function S(t, ...e) {
1813
1813
  return ht(t, ...e);
1814
1814
  }
1815
- function us(t, e, n) {
1816
- const r = Object.assign(Object.assign({}, cs()), { [e]: n });
1817
- return new me("auth", "Firebase", r).create(e, {
1815
+ function ds(t, e, n) {
1816
+ const r = Object.assign(Object.assign({}, ls()), { [e]: n });
1817
+ return new ge("auth", "Firebase", r).create(e, {
1818
1818
  appName: t.name
1819
1819
  });
1820
1820
  }
@@ -1829,12 +1829,12 @@ function d(t, e, ...n) {
1829
1829
  if (!t)
1830
1830
  throw ht(e, ...n);
1831
1831
  }
1832
- function N(t) {
1832
+ function P(t) {
1833
1833
  const e = "INTERNAL ASSERTION FAILED: " + t;
1834
1834
  throw Se(e), new Error(e);
1835
1835
  }
1836
1836
  function L(t, e) {
1837
- t || N(e);
1837
+ t || P(e);
1838
1838
  }
1839
1839
  /**
1840
1840
  * @license
@@ -1856,7 +1856,7 @@ function ot() {
1856
1856
  var t;
1857
1857
  return typeof self < "u" && ((t = self.location) === null || t === void 0 ? void 0 : t.href) || "";
1858
1858
  }
1859
- function ds() {
1859
+ function hs() {
1860
1860
  return Dt() === "http:" || Dt() === "https:";
1861
1861
  }
1862
1862
  function Dt() {
@@ -1879,15 +1879,15 @@ function Dt() {
1879
1879
  * See the License for the specific language governing permissions and
1880
1880
  * limitations under the License.
1881
1881
  */
1882
- function hs() {
1882
+ function fs() {
1883
1883
  return typeof navigator < "u" && navigator && "onLine" in navigator && typeof navigator.onLine == "boolean" && // Apply only for traditional web apps and Chrome extensions.
1884
1884
  // This is especially true for Cordova apps which have unreliable
1885
1885
  // navigator.onLine behavior unless cordova-plugin-network-information is
1886
1886
  // installed which overwrites the native navigator.onLine value and
1887
1887
  // defines navigator.connection.
1888
- (ds() || jr() || "connection" in navigator) ? navigator.onLine : !0;
1888
+ (hs() || Vr() || "connection" in navigator) ? navigator.onLine : !0;
1889
1889
  }
1890
- function fs() {
1890
+ function ps() {
1891
1891
  if (typeof navigator > "u")
1892
1892
  return null;
1893
1893
  const t = navigator;
@@ -1917,10 +1917,10 @@ function fs() {
1917
1917
  */
1918
1918
  class ve {
1919
1919
  constructor(e, n) {
1920
- this.shortDelay = e, this.longDelay = n, L(n > e, "Short delay should be less than long delay!"), this.isMobile = $r() || Vr();
1920
+ this.shortDelay = e, this.longDelay = n, L(n > e, "Short delay should be less than long delay!"), this.isMobile = Hr() || Wr();
1921
1921
  }
1922
1922
  get() {
1923
- return hs() ? this.isMobile ? this.longDelay : this.shortDelay : Math.min(5e3, this.shortDelay);
1923
+ return fs() ? this.isMobile ? this.longDelay : this.shortDelay : Math.min(5e3, this.shortDelay);
1924
1924
  }
1925
1925
  }
1926
1926
  /**
@@ -1960,7 +1960,7 @@ function ft(t, e) {
1960
1960
  * See the License for the specific language governing permissions and
1961
1961
  * limitations under the License.
1962
1962
  */
1963
- class wn {
1963
+ class In {
1964
1964
  static initialize(e, n, r) {
1965
1965
  this.fetchImpl = e, n && (this.headersImpl = n), r && (this.responseImpl = r);
1966
1966
  }
@@ -1969,21 +1969,21 @@ class wn {
1969
1969
  return this.fetchImpl;
1970
1970
  if (typeof self < "u" && "fetch" in self)
1971
1971
  return self.fetch;
1972
- N("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill");
1972
+ P("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill");
1973
1973
  }
1974
1974
  static headers() {
1975
1975
  if (this.headersImpl)
1976
1976
  return this.headersImpl;
1977
1977
  if (typeof self < "u" && "Headers" in self)
1978
1978
  return self.Headers;
1979
- N("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill");
1979
+ P("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill");
1980
1980
  }
1981
1981
  static response() {
1982
1982
  if (this.responseImpl)
1983
1983
  return this.responseImpl;
1984
1984
  if (typeof self < "u" && "Response" in self)
1985
1985
  return self.Response;
1986
- N("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill");
1986
+ P("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill");
1987
1987
  }
1988
1988
  }
1989
1989
  /**
@@ -2002,7 +2002,7 @@ class wn {
2002
2002
  * See the License for the specific language governing permissions and
2003
2003
  * limitations under the License.
2004
2004
  */
2005
- const ps = {
2005
+ const ms = {
2006
2006
  // Custom token errors.
2007
2007
  CREDENTIAL_MISMATCH: "custom-token-mismatch",
2008
2008
  // This can only happen if the SDK sends a bad request.
@@ -2094,7 +2094,7 @@ function pt(t, e) {
2094
2094
  return t.tenantId && !e.tenantId ? Object.assign(Object.assign({}, e), { tenantId: t.tenantId }) : e;
2095
2095
  }
2096
2096
  async function be(t, e, n, r, i = {}) {
2097
- return En(t, i, async () => {
2097
+ return wn(t, i, async () => {
2098
2098
  let s = {}, o = {};
2099
2099
  r && (e === "GET" ? o = r : s = {
2100
2100
  body: JSON.stringify(r)
@@ -2106,18 +2106,18 @@ async function be(t, e, n, r, i = {}) {
2106
2106
  ] = "application/json", t.languageCode && (c[
2107
2107
  "X-Firebase-Locale"
2108
2108
  /* HttpHeader.X_FIREBASE_LOCALE */
2109
- ] = t.languageCode), wn.fetch()(Rn(t, t.config.apiHost, n, a), Object.assign({
2109
+ ] = t.languageCode), In.fetch()(Tn(t, t.config.apiHost, n, a), Object.assign({
2110
2110
  method: e,
2111
2111
  headers: c,
2112
2112
  referrerPolicy: "no-referrer"
2113
2113
  }, s));
2114
2114
  });
2115
2115
  }
2116
- async function En(t, e, n) {
2116
+ async function wn(t, e, n) {
2117
2117
  t._canInitEmulator = !1;
2118
- const r = Object.assign(Object.assign({}, ps), e);
2118
+ const r = Object.assign(Object.assign({}, ms), e);
2119
2119
  try {
2120
- const i = new ms(t), s = await Promise.race([
2120
+ const i = new _s(t), s = await Promise.race([
2121
2121
  n(),
2122
2122
  i.promise
2123
2123
  ]);
@@ -2137,7 +2137,7 @@ async function En(t, e, n) {
2137
2137
  throw Re(t, "user-disabled", o);
2138
2138
  const u = r[c] || c.toLowerCase().replace(/[_\s]+/g, "-");
2139
2139
  if (l)
2140
- throw us(t, u, l);
2140
+ throw ds(t, u, l);
2141
2141
  U(t, u);
2142
2142
  }
2143
2143
  } catch (i) {
@@ -2146,17 +2146,17 @@ async function En(t, e, n) {
2146
2146
  U(t, "network-request-failed", { message: String(i) });
2147
2147
  }
2148
2148
  }
2149
- async function Tn(t, e, n, r, i = {}) {
2149
+ async function En(t, e, n, r, i = {}) {
2150
2150
  const s = await be(t, e, n, r, i);
2151
2151
  return "mfaPendingCredential" in s && U(t, "multi-factor-auth-required", {
2152
2152
  _serverResponse: s
2153
2153
  }), s;
2154
2154
  }
2155
- function Rn(t, e, n, r) {
2155
+ function Tn(t, e, n, r) {
2156
2156
  const i = `${e}${n}?${r}`;
2157
2157
  return t.config.emulator ? ft(t.config, i) : `${t.config.apiScheme}://${i}`;
2158
2158
  }
2159
- class ms {
2159
+ class _s {
2160
2160
  constructor(e) {
2161
2161
  this.auth = e, this.timer = null, this.promise = new Promise((n, r) => {
2162
2162
  this.timer = setTimeout(() => r(S(
@@ -2194,10 +2194,10 @@ function Re(t, e, n) {
2194
2194
  * See the License for the specific language governing permissions and
2195
2195
  * limitations under the License.
2196
2196
  */
2197
- async function _s(t, e) {
2197
+ async function vs(t, e) {
2198
2198
  return be(t, "POST", "/v1/accounts:delete", e);
2199
2199
  }
2200
- async function vs(t, e) {
2200
+ async function bs(t, e) {
2201
2201
  return be(t, "POST", "/v1/accounts:lookup", e);
2202
2202
  }
2203
2203
  /**
@@ -2225,8 +2225,8 @@ function le(t) {
2225
2225
  } catch {
2226
2226
  }
2227
2227
  }
2228
- async function bs(t, e = !1) {
2229
- const n = R(t), r = await n.getIdToken(e), i = gt(r);
2228
+ async function ys(t, e = !1) {
2229
+ const n = R(t), r = await n.getIdToken(e), i = mt(r);
2230
2230
  d(
2231
2231
  i && i.exp && i.auth_time && i.iat,
2232
2232
  n.auth,
@@ -2247,19 +2247,19 @@ async function bs(t, e = !1) {
2247
2247
  function Xe(t) {
2248
2248
  return Number(t) * 1e3;
2249
2249
  }
2250
- function gt(t) {
2250
+ function mt(t) {
2251
2251
  const [e, n, r] = t.split(".");
2252
2252
  if (e === void 0 || n === void 0 || r === void 0)
2253
2253
  return Se("JWT malformed, contained fewer than 3 sections"), null;
2254
2254
  try {
2255
- const i = ln(n);
2255
+ const i = cn(n);
2256
2256
  return i ? JSON.parse(i) : (Se("Failed to decode base64 JWT payload"), null);
2257
2257
  } catch (i) {
2258
2258
  return Se("Caught error parsing JWT payload as JSON", i == null ? void 0 : i.toString()), null;
2259
2259
  }
2260
2260
  }
2261
2261
  function Is(t) {
2262
- const e = gt(t);
2262
+ const e = mt(t);
2263
2263
  return d(
2264
2264
  e,
2265
2265
  "internal-error"
@@ -2296,10 +2296,10 @@ async function pe(t, e, n = !1) {
2296
2296
  try {
2297
2297
  return await e;
2298
2298
  } catch (r) {
2299
- throw r instanceof M && ys(r) && t.auth.currentUser === t && await t.auth.signOut(), r;
2299
+ throw r instanceof M && ws(r) && t.auth.currentUser === t && await t.auth.signOut(), r;
2300
2300
  }
2301
2301
  }
2302
- function ys({ code: t }) {
2302
+ function ws({ code: t }) {
2303
2303
  return t === "auth/user-disabled" || t === "auth/user-token-expired";
2304
2304
  }
2305
2305
  /**
@@ -2318,7 +2318,7 @@ function ys({ code: t }) {
2318
2318
  * See the License for the specific language governing permissions and
2319
2319
  * limitations under the License.
2320
2320
  */
2321
- class ws {
2321
+ class Es {
2322
2322
  constructor(e) {
2323
2323
  this.user = e, this.isRunning = !1, this.timerId = null, this.errorBackoff = 3e4;
2324
2324
  }
@@ -2380,7 +2380,7 @@ class ws {
2380
2380
  * See the License for the specific language governing permissions and
2381
2381
  * limitations under the License.
2382
2382
  */
2383
- class An {
2383
+ class Rn {
2384
2384
  constructor(e, n) {
2385
2385
  this.createdAt = e, this.lastLoginAt = n, this._initializeTime();
2386
2386
  }
@@ -2415,7 +2415,7 @@ class An {
2415
2415
  */
2416
2416
  async function Le(t) {
2417
2417
  var e;
2418
- const n = t.auth, r = await t.getIdToken(), i = await pe(t, vs(n, { idToken: r }));
2418
+ const n = t.auth, r = await t.getIdToken(), i = await pe(t, bs(n, { idToken: r }));
2419
2419
  d(
2420
2420
  i == null ? void 0 : i.users.length,
2421
2421
  n,
@@ -2424,7 +2424,7 @@ async function Le(t) {
2424
2424
  );
2425
2425
  const s = i.users[0];
2426
2426
  t._notifyReloadListener(s);
2427
- const o = !((e = s.providerUserInfo) === null || e === void 0) && e.length ? Rs(s.providerUserInfo) : [], a = Ts(t.providerData, o), c = t.isAnonymous, l = !(t.email && s.passwordHash) && !(a != null && a.length), u = c ? l : !1, h = {
2427
+ const o = !((e = s.providerUserInfo) === null || e === void 0) && e.length ? As(s.providerUserInfo) : [], a = Rs(t.providerData, o), c = t.isAnonymous, l = !(t.email && s.passwordHash) && !(a != null && a.length), u = c ? l : !1, h = {
2428
2428
  uid: s.localId,
2429
2429
  displayName: s.displayName || null,
2430
2430
  photoURL: s.photoUrl || null,
@@ -2433,19 +2433,19 @@ async function Le(t) {
2433
2433
  phoneNumber: s.phoneNumber || null,
2434
2434
  tenantId: s.tenantId || null,
2435
2435
  providerData: a,
2436
- metadata: new An(s.createdAt, s.lastLoginAt),
2436
+ metadata: new Rn(s.createdAt, s.lastLoginAt),
2437
2437
  isAnonymous: u
2438
2438
  };
2439
2439
  Object.assign(t, h);
2440
2440
  }
2441
- async function Es(t) {
2441
+ async function Ts(t) {
2442
2442
  const e = R(t);
2443
2443
  await Le(e), await e.auth._persistUserIfCurrent(e), e.auth._notifyListenersIfCurrent(e);
2444
2444
  }
2445
- function Ts(t, e) {
2445
+ function Rs(t, e) {
2446
2446
  return [...t.filter((r) => !e.some((i) => i.providerId === r.providerId)), ...e];
2447
2447
  }
2448
- function Rs(t) {
2448
+ function As(t) {
2449
2449
  return t.map((e) => {
2450
2450
  var { providerId: n } = e, r = dt(e, ["providerId"]);
2451
2451
  return {
@@ -2474,16 +2474,16 @@ function Rs(t) {
2474
2474
  * See the License for the specific language governing permissions and
2475
2475
  * limitations under the License.
2476
2476
  */
2477
- async function As(t, e) {
2478
- const n = await En(t, {}, async () => {
2477
+ async function ks(t, e) {
2478
+ const n = await wn(t, {}, async () => {
2479
2479
  const r = _e({
2480
2480
  grant_type: "refresh_token",
2481
2481
  refresh_token: e
2482
- }).slice(1), { tokenApiHost: i, apiKey: s } = t.config, o = Rn(t, i, "/v1/token", `key=${s}`), a = await t._getAdditionalHeaders();
2482
+ }).slice(1), { tokenApiHost: i, apiKey: s } = t.config, o = Tn(t, i, "/v1/token", `key=${s}`), a = await t._getAdditionalHeaders();
2483
2483
  return a[
2484
2484
  "Content-Type"
2485
2485
  /* HttpHeader.CONTENT_TYPE */
2486
- ] = "application/x-www-form-urlencoded", wn.fetch()(o, {
2486
+ ] = "application/x-www-form-urlencoded", In.fetch()(o, {
2487
2487
  method: "POST",
2488
2488
  headers: a,
2489
2489
  body: r
@@ -2511,7 +2511,7 @@ async function As(t, e) {
2511
2511
  * See the License for the specific language governing permissions and
2512
2512
  * limitations under the License.
2513
2513
  */
2514
- class ge {
2514
+ class me {
2515
2515
  constructor() {
2516
2516
  this.refreshToken = null, this.accessToken = null, this.expirationTime = null;
2517
2517
  }
@@ -2547,14 +2547,14 @@ class ge {
2547
2547
  this.refreshToken = null;
2548
2548
  }
2549
2549
  async refresh(e, n) {
2550
- const { accessToken: r, refreshToken: i, expiresIn: s } = await As(e, n);
2550
+ const { accessToken: r, refreshToken: i, expiresIn: s } = await ks(e, n);
2551
2551
  this.updateTokensAndExpiration(r, i, Number(s));
2552
2552
  }
2553
2553
  updateTokensAndExpiration(e, n, r) {
2554
2554
  this.refreshToken = n || null, this.accessToken = e || null, this.expirationTime = Date.now() + r * 1e3;
2555
2555
  }
2556
2556
  static fromJSON(e, n) {
2557
- const { refreshToken: r, accessToken: i, expirationTime: s } = n, o = new ge();
2557
+ const { refreshToken: r, accessToken: i, expirationTime: s } = n, o = new me();
2558
2558
  return r && (d(typeof r == "string", "internal-error", {
2559
2559
  appName: e
2560
2560
  }), o.refreshToken = r), i && (d(typeof i == "string", "internal-error", {
@@ -2574,10 +2574,10 @@ class ge {
2574
2574
  this.accessToken = e.accessToken, this.refreshToken = e.refreshToken, this.expirationTime = e.expirationTime;
2575
2575
  }
2576
2576
  _clone() {
2577
- return Object.assign(new ge(), this.toJSON());
2577
+ return Object.assign(new me(), this.toJSON());
2578
2578
  }
2579
2579
  _performRefresh() {
2580
- return N("not implemented");
2580
+ return P("not implemented");
2581
2581
  }
2582
2582
  }
2583
2583
  /**
@@ -2602,7 +2602,7 @@ function x(t, e) {
2602
2602
  class J {
2603
2603
  constructor(e) {
2604
2604
  var { uid: n, auth: r, stsTokenManager: i } = e, s = dt(e, ["uid", "auth", "stsTokenManager"]);
2605
- this.providerId = "firebase", this.proactiveRefresh = new ws(this), this.reloadUserInfo = null, this.reloadListener = null, this.uid = n, 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 An(s.createdAt || void 0, s.lastLoginAt || void 0);
2605
+ this.providerId = "firebase", this.proactiveRefresh = new Es(this), this.reloadUserInfo = null, this.reloadListener = null, this.uid = n, 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 Rn(s.createdAt || void 0, s.lastLoginAt || void 0);
2606
2606
  }
2607
2607
  async getIdToken(e) {
2608
2608
  const n = await pe(this, this.stsTokenManager.getToken(this.auth, e));
@@ -2614,10 +2614,10 @@ class J {
2614
2614
  ), this.accessToken !== n && (this.accessToken = n, await this.auth._persistUserIfCurrent(this), this.auth._notifyListenersIfCurrent(this)), n;
2615
2615
  }
2616
2616
  getIdTokenResult(e) {
2617
- return bs(this, e);
2617
+ return ys(this, e);
2618
2618
  }
2619
2619
  reload() {
2620
- return Es(this);
2620
+ return Ts(this);
2621
2621
  }
2622
2622
  _assign(e) {
2623
2623
  this !== e && (d(
@@ -2654,7 +2654,7 @@ class J {
2654
2654
  }
2655
2655
  async delete() {
2656
2656
  const e = await this.getIdToken();
2657
- return await pe(this, _s(this.auth, { idToken: e })), this.stsTokenManager.clearRefreshToken(), this.auth.signOut();
2657
+ return await pe(this, vs(this.auth, { idToken: e })), this.stsTokenManager.clearRefreshToken(), this.auth.signOut();
2658
2658
  }
2659
2659
  toJSON() {
2660
2660
  return Object.assign(Object.assign({
@@ -2682,45 +2682,45 @@ class J {
2682
2682
  }
2683
2683
  static _fromJSON(e, n) {
2684
2684
  var r, i, s, o, a, c, l, u;
2685
- const h = (r = n.displayName) !== null && r !== void 0 ? r : void 0, f = (i = n.email) !== null && i !== void 0 ? i : void 0, _ = (s = n.phoneNumber) !== null && s !== void 0 ? s : void 0, b = (o = n.photoURL) !== null && o !== void 0 ? o : void 0, O = (a = n.tenantId) !== null && a !== void 0 ? a : void 0, v = (c = n._redirectEventId) !== null && c !== void 0 ? c : void 0, P = (l = n.createdAt) !== null && l !== void 0 ? l : void 0, A = (u = n.lastLoginAt) !== null && u !== void 0 ? u : void 0, { uid: E, emailVerified: I, isAnonymous: G, providerData: q, stsTokenManager: Te } = n;
2685
+ const h = (r = n.displayName) !== null && r !== void 0 ? r : void 0, f = (i = n.email) !== null && i !== void 0 ? i : void 0, _ = (s = n.phoneNumber) !== null && s !== void 0 ? s : void 0, b = (o = n.photoURL) !== null && o !== void 0 ? o : void 0, O = (a = n.tenantId) !== null && a !== void 0 ? a : void 0, v = (c = n._redirectEventId) !== null && c !== void 0 ? c : void 0, N = (l = n.createdAt) !== null && l !== void 0 ? l : void 0, A = (u = n.lastLoginAt) !== null && u !== void 0 ? u : void 0, { uid: E, emailVerified: y, isAnonymous: q, providerData: K, stsTokenManager: Te } = n;
2686
2686
  d(
2687
2687
  E && Te,
2688
2688
  e,
2689
2689
  "internal-error"
2690
2690
  /* AuthErrorCode.INTERNAL_ERROR */
2691
2691
  );
2692
- const ae = ge.fromJSON(this.name, Te);
2692
+ const ae = me.fromJSON(this.name, Te);
2693
2693
  d(
2694
2694
  typeof E == "string",
2695
2695
  e,
2696
2696
  "internal-error"
2697
2697
  /* AuthErrorCode.INTERNAL_ERROR */
2698
2698
  ), x(h, e.name), x(f, e.name), d(
2699
- typeof I == "boolean",
2699
+ typeof y == "boolean",
2700
2700
  e,
2701
2701
  "internal-error"
2702
2702
  /* AuthErrorCode.INTERNAL_ERROR */
2703
2703
  ), d(
2704
- typeof G == "boolean",
2704
+ typeof q == "boolean",
2705
2705
  e,
2706
2706
  "internal-error"
2707
2707
  /* AuthErrorCode.INTERNAL_ERROR */
2708
- ), x(_, e.name), x(b, e.name), x(O, e.name), x(v, e.name), x(P, e.name), x(A, e.name);
2708
+ ), x(_, e.name), x(b, e.name), x(O, e.name), x(v, e.name), x(N, e.name), x(A, e.name);
2709
2709
  const We = new J({
2710
2710
  uid: E,
2711
2711
  auth: e,
2712
2712
  email: f,
2713
- emailVerified: I,
2713
+ emailVerified: y,
2714
2714
  displayName: h,
2715
- isAnonymous: G,
2715
+ isAnonymous: q,
2716
2716
  photoURL: b,
2717
2717
  phoneNumber: _,
2718
2718
  tenantId: O,
2719
2719
  stsTokenManager: ae,
2720
- createdAt: P,
2720
+ createdAt: N,
2721
2721
  lastLoginAt: A
2722
2722
  });
2723
- return q && Array.isArray(q) && (We.providerData = q.map((gr) => Object.assign({}, gr))), v && (We._redirectEventId = v), We;
2723
+ return K && Array.isArray(K) && (We.providerData = K.map((pr) => Object.assign({}, pr))), v && (We._redirectEventId = v), We;
2724
2724
  }
2725
2725
  /**
2726
2726
  * Initialize a User from an idToken server response
@@ -2728,7 +2728,7 @@ class J {
2728
2728
  * @param idTokenResponse
2729
2729
  */
2730
2730
  static async _fromIdTokenResponse(e, n, r = !1) {
2731
- const i = new ge();
2731
+ const i = new me();
2732
2732
  i.updateFromServerResponse(n);
2733
2733
  const s = new J({
2734
2734
  uid: n.localId,
@@ -2777,7 +2777,7 @@ function D(t) {
2777
2777
  * See the License for the specific language governing permissions and
2778
2778
  * limitations under the License.
2779
2779
  */
2780
- class kn {
2780
+ class An {
2781
2781
  constructor() {
2782
2782
  this.type = "NONE", this.storage = {};
2783
2783
  }
@@ -2799,8 +2799,8 @@ class kn {
2799
2799
  _removeListener(e, n) {
2800
2800
  }
2801
2801
  }
2802
- kn.type = "NONE";
2803
- const Lt = kn;
2802
+ An.type = "NONE";
2803
+ const Lt = An;
2804
2804
  /**
2805
2805
  * @license
2806
2806
  * Copyright 2019 Google LLC
@@ -2899,25 +2899,25 @@ function Mt(t) {
2899
2899
  const e = t.toLowerCase();
2900
2900
  if (e.includes("opera/") || e.includes("opr/") || e.includes("opios/"))
2901
2901
  return "Opera";
2902
- if (On(e))
2902
+ if (Cn(e))
2903
2903
  return "IEMobile";
2904
2904
  if (e.includes("msie") || e.includes("trident/"))
2905
2905
  return "IE";
2906
2906
  if (e.includes("edge/"))
2907
2907
  return "Edge";
2908
- if (Sn(e))
2908
+ if (kn(e))
2909
2909
  return "Firefox";
2910
2910
  if (e.includes("silk/"))
2911
2911
  return "Silk";
2912
2912
  if (Nn(e))
2913
2913
  return "Blackberry";
2914
- if (Dn(e))
2914
+ if (Pn(e))
2915
2915
  return "Webos";
2916
- if (mt(e))
2916
+ if (gt(e))
2917
2917
  return "Safari";
2918
- if ((e.includes("chrome/") || Cn(e)) && !e.includes("edge/"))
2918
+ if ((e.includes("chrome/") || Sn(e)) && !e.includes("edge/"))
2919
2919
  return "Chrome";
2920
- if (Pn(e))
2920
+ if (On(e))
2921
2921
  return "Android";
2922
2922
  {
2923
2923
  const n = /([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/, r = t.match(n);
@@ -2926,42 +2926,42 @@ function Mt(t) {
2926
2926
  }
2927
2927
  return "Other";
2928
2928
  }
2929
- function Sn(t = y()) {
2929
+ function kn(t = I()) {
2930
2930
  return /firefox\//i.test(t);
2931
2931
  }
2932
- function mt(t = y()) {
2932
+ function gt(t = I()) {
2933
2933
  const e = t.toLowerCase();
2934
2934
  return e.includes("safari/") && !e.includes("chrome/") && !e.includes("crios/") && !e.includes("android");
2935
2935
  }
2936
- function Cn(t = y()) {
2936
+ function Sn(t = I()) {
2937
2937
  return /crios\//i.test(t);
2938
2938
  }
2939
- function On(t = y()) {
2939
+ function Cn(t = I()) {
2940
2940
  return /iemobile/i.test(t);
2941
2941
  }
2942
- function Pn(t = y()) {
2942
+ function On(t = I()) {
2943
2943
  return /android/i.test(t);
2944
2944
  }
2945
- function Nn(t = y()) {
2945
+ function Nn(t = I()) {
2946
2946
  return /blackberry/i.test(t);
2947
2947
  }
2948
- function Dn(t = y()) {
2948
+ function Pn(t = I()) {
2949
2949
  return /webos/i.test(t);
2950
2950
  }
2951
- function $e(t = y()) {
2951
+ function $e(t = I()) {
2952
2952
  return /iphone|ipad|ipod/i.test(t) || /macintosh/i.test(t) && /mobile/i.test(t);
2953
2953
  }
2954
- function ks(t = y()) {
2954
+ function Ss(t = I()) {
2955
2955
  var e;
2956
2956
  return $e(t) && !!(!((e = window.navigator) === null || e === void 0) && e.standalone);
2957
2957
  }
2958
- function Ss() {
2959
- return Wr() && document.documentMode === 10;
2958
+ function Cs() {
2959
+ return zr() && document.documentMode === 10;
2960
2960
  }
2961
- function Un(t = y()) {
2962
- return $e(t) || Pn(t) || Dn(t) || Nn(t) || /windows phone/i.test(t) || On(t);
2961
+ function Dn(t = I()) {
2962
+ return $e(t) || On(t) || Pn(t) || Nn(t) || /windows phone/i.test(t) || Cn(t);
2963
2963
  }
2964
- function Cs() {
2964
+ function Os() {
2965
2965
  try {
2966
2966
  return !!(window && window !== window.top);
2967
2967
  } catch {
@@ -2984,14 +2984,14 @@ function Cs() {
2984
2984
  * See the License for the specific language governing permissions and
2985
2985
  * limitations under the License.
2986
2986
  */
2987
- function Ln(t, e = []) {
2987
+ function Un(t, e = []) {
2988
2988
  let n;
2989
2989
  switch (t) {
2990
2990
  case "Browser":
2991
- n = Mt(y());
2991
+ n = Mt(I());
2992
2992
  break;
2993
2993
  case "Worker":
2994
- n = `${Mt(y())}-${t}`;
2994
+ n = `${Mt(I())}-${t}`;
2995
2995
  break;
2996
2996
  default:
2997
2997
  n = t;
@@ -2999,13 +2999,13 @@ function Ln(t, e = []) {
2999
2999
  const r = e.length ? e.join(",") : "FirebaseCore-web";
3000
3000
  return `${n}/JsCore/${oe}/${r}`;
3001
3001
  }
3002
- async function Mn(t, e) {
3002
+ async function Ln(t, e) {
3003
3003
  return be(t, "GET", "/v2/recaptchaConfig", pt(t, e));
3004
3004
  }
3005
3005
  function xt(t) {
3006
3006
  return t !== void 0 && t.enterprise !== void 0;
3007
3007
  }
3008
- class xn {
3008
+ class Mn {
3009
3009
  constructor(e) {
3010
3010
  if (this.siteKey = "", this.emailPasswordEnabled = !1, e.recaptchaKey === void 0)
3011
3011
  throw new Error("recaptchaKey undefined");
@@ -3028,11 +3028,11 @@ class xn {
3028
3028
  * See the License for the specific language governing permissions and
3029
3029
  * limitations under the License.
3030
3030
  */
3031
- function Os() {
3031
+ function Ns() {
3032
3032
  var t, e;
3033
3033
  return (e = (t = document.getElementsByTagName("head")) === null || t === void 0 ? void 0 : t[0]) !== null && e !== void 0 ? e : document;
3034
3034
  }
3035
- function Bn(t) {
3035
+ function xn(t) {
3036
3036
  return new Promise((e, n) => {
3037
3037
  const r = document.createElement("script");
3038
3038
  r.setAttribute("src", t), r.onload = e, r.onerror = (i) => {
@@ -3041,21 +3041,21 @@ function Bn(t) {
3041
3041
  /* AuthErrorCode.INTERNAL_ERROR */
3042
3042
  );
3043
3043
  s.customData = i, n(s);
3044
- }, r.type = "text/javascript", r.charset = "UTF-8", Os().appendChild(r);
3044
+ }, r.type = "text/javascript", r.charset = "UTF-8", Ns().appendChild(r);
3045
3045
  });
3046
3046
  }
3047
3047
  function Ps(t) {
3048
3048
  return `__${t}${Math.floor(Math.random() * 1e6)}`;
3049
3049
  }
3050
- const Ns = "https://www.google.com/recaptcha/enterprise.js?render=", Ds = "recaptcha-enterprise", Us = "NO_RECAPTCHA";
3051
- class Ls {
3050
+ const Ds = "https://www.google.com/recaptcha/enterprise.js?render=", Us = "recaptcha-enterprise", Ls = "NO_RECAPTCHA";
3051
+ class Ms {
3052
3052
  /**
3053
3053
  *
3054
3054
  * @param authExtern - The corresponding Firebase {@link Auth} instance.
3055
3055
  *
3056
3056
  */
3057
3057
  constructor(e) {
3058
- this.type = Ds, this.auth = Ie(e);
3058
+ this.type = Us, this.auth = ye(e);
3059
3059
  }
3060
3060
  /**
3061
3061
  * Executes the verification process.
@@ -3071,7 +3071,7 @@ class Ls {
3071
3071
  return s._tenantRecaptchaConfigs[s.tenantId].siteKey;
3072
3072
  }
3073
3073
  return new Promise(async (o, a) => {
3074
- Mn(s, {
3074
+ Ln(s, {
3075
3075
  clientType: "CLIENT_TYPE_WEB",
3076
3076
  version: "RECAPTCHA_ENTERPRISE"
3077
3077
  /* RecaptchaVersion.ENTERPRISE */
@@ -3079,7 +3079,7 @@ class Ls {
3079
3079
  if (c.recaptchaKey === void 0)
3080
3080
  a(new Error("recaptcha Enterprise site key undefined"));
3081
3081
  else {
3082
- const l = new xn(c);
3082
+ const l = new Mn(c);
3083
3083
  return s.tenantId == null ? s._agentRecaptchaConfig = l : s._tenantRecaptchaConfigs[s.tenantId] = l, o(l.siteKey);
3084
3084
  }
3085
3085
  }).catch((c) => {
@@ -3093,7 +3093,7 @@ class Ls {
3093
3093
  c.enterprise.execute(s, { action: e }).then((l) => {
3094
3094
  o(l);
3095
3095
  }).catch(() => {
3096
- o(Us);
3096
+ o(Ls);
3097
3097
  });
3098
3098
  }) : a(Error("No reCAPTCHA enterprise script loaded."));
3099
3099
  }
@@ -3106,7 +3106,7 @@ class Ls {
3106
3106
  o(new Error("RecaptchaVerifier is only supported in browser"));
3107
3107
  return;
3108
3108
  }
3109
- Bn(Ns + a).then(() => {
3109
+ xn(Ds + a).then(() => {
3110
3110
  i(a, s, o);
3111
3111
  }).catch((c) => {
3112
3112
  o(c);
@@ -3134,7 +3134,7 @@ class Ls {
3134
3134
  * See the License for the specific language governing permissions and
3135
3135
  * limitations under the License.
3136
3136
  */
3137
- class Ms {
3137
+ class xs {
3138
3138
  constructor(e) {
3139
3139
  this.auth = e, this.queue = [];
3140
3140
  }
@@ -3189,9 +3189,9 @@ class Ms {
3189
3189
  * See the License for the specific language governing permissions and
3190
3190
  * limitations under the License.
3191
3191
  */
3192
- class xs {
3192
+ class Bs {
3193
3193
  constructor(e, n, r, i) {
3194
- this.app = e, this.heartbeatServiceProvider = n, this.appCheckServiceProvider = r, this.config = i, this.currentUser = null, this.emulatorConfig = null, this.operations = Promise.resolve(), this.authStateSubscription = new Bt(this), this.idTokenSubscription = new Bt(this), this.beforeStateQueue = new Ms(this), this.redirectUser = null, this.isProactiveRefreshEnabled = !1, this._canInitEmulator = !0, this._isInitialized = !1, this._deleted = !1, this._initializationPromise = null, this._popupRedirectResolver = null, this._errorFactory = yn, this._agentRecaptchaConfig = null, this._tenantRecaptchaConfigs = {}, this.lastNotifiedUid = void 0, this.languageCode = null, this.tenantId = null, this.settings = { appVerificationDisabledForTesting: !1 }, this.frameworks = [], this.name = e.name, this.clientVersion = i.sdkClientVersion;
3194
+ this.app = e, this.heartbeatServiceProvider = n, this.appCheckServiceProvider = r, this.config = i, this.currentUser = null, this.emulatorConfig = null, this.operations = Promise.resolve(), this.authStateSubscription = new Bt(this), this.idTokenSubscription = new Bt(this), this.beforeStateQueue = new xs(this), this.redirectUser = null, this.isProactiveRefreshEnabled = !1, this._canInitEmulator = !0, this._isInitialized = !1, this._deleted = !1, this._initializationPromise = null, this._popupRedirectResolver = null, this._errorFactory = yn, this._agentRecaptchaConfig = null, this._tenantRecaptchaConfigs = {}, this.lastNotifiedUid = void 0, this.languageCode = null, this.tenantId = null, this.settings = { appVerificationDisabledForTesting: !1 }, this.frameworks = [], this.name = e.name, this.clientVersion = i.sdkClientVersion;
3195
3195
  }
3196
3196
  _initializeWithPersistence(e, n) {
3197
3197
  return n && (this._popupRedirectResolver = D(n)), this._initializationPromise = this.queue(async () => {
@@ -3271,7 +3271,7 @@ class xs {
3271
3271
  return this.directlySetCurrentUser(e);
3272
3272
  }
3273
3273
  useDeviceLanguage() {
3274
- this.languageCode = fs();
3274
+ this.languageCode = ps();
3275
3275
  }
3276
3276
  async _delete() {
3277
3277
  this._deleted = !0;
@@ -3309,12 +3309,12 @@ class xs {
3309
3309
  });
3310
3310
  }
3311
3311
  async initializeRecaptchaConfig() {
3312
- const e = await Mn(this, {
3312
+ const e = await Ln(this, {
3313
3313
  clientType: "CLIENT_TYPE_WEB",
3314
3314
  version: "RECAPTCHA_ENTERPRISE"
3315
3315
  /* RecaptchaVersion.ENTERPRISE */
3316
- }), n = new xn(e);
3317
- this.tenantId == null ? this._agentRecaptchaConfig = n : this._tenantRecaptchaConfigs[this.tenantId] = n, n.emailPasswordEnabled && new Ls(this).verify();
3316
+ }), n = new Mn(e);
3317
+ this.tenantId == null ? this._agentRecaptchaConfig = n : this._tenantRecaptchaConfigs[this.tenantId] = n, n.emailPasswordEnabled && new Ms(this).verify();
3318
3318
  }
3319
3319
  _getRecaptchaConfig() {
3320
3320
  return this.tenantId == null ? this._agentRecaptchaConfig : this._tenantRecaptchaConfigs[this.tenantId];
@@ -3323,7 +3323,7 @@ class xs {
3323
3323
  return this.assertedPersistence.persistence.type;
3324
3324
  }
3325
3325
  _updateErrorMap(e) {
3326
- this._errorFactory = new me("auth", "Firebase", e());
3326
+ this._errorFactory = new ge("auth", "Firebase", e());
3327
3327
  }
3328
3328
  onAuthStateChanged(e, n, r) {
3329
3329
  return this.registerStateListener(this.authStateSubscription, e, n, r);
@@ -3430,7 +3430,7 @@ class xs {
3430
3430
  ), this.persistenceManager;
3431
3431
  }
3432
3432
  _logFramework(e) {
3433
- !e || this.frameworks.includes(e) || (this.frameworks.push(e), this.frameworks.sort(), this.clientVersion = Ln(this.config.clientPlatform, this._getFrameworks()));
3433
+ !e || this.frameworks.includes(e) || (this.frameworks.push(e), this.frameworks.sort(), this.clientVersion = Un(this.config.clientPlatform, this._getFrameworks()));
3434
3434
  }
3435
3435
  _getFrameworks() {
3436
3436
  return this.frameworks;
@@ -3460,15 +3460,15 @@ class xs {
3460
3460
  async _getAppCheckToken() {
3461
3461
  var e;
3462
3462
  const n = await ((e = this.appCheckServiceProvider.getImmediate({ optional: !0 })) === null || e === void 0 ? void 0 : e.getToken());
3463
- return n != null && n.error && ls(`Error while retrieving App Check token: ${n.error}`), n == null ? void 0 : n.token;
3463
+ return n != null && n.error && us(`Error while retrieving App Check token: ${n.error}`), n == null ? void 0 : n.token;
3464
3464
  }
3465
3465
  }
3466
- function Ie(t) {
3466
+ function ye(t) {
3467
3467
  return R(t);
3468
3468
  }
3469
3469
  class Bt {
3470
3470
  constructor(e) {
3471
- this.auth = e, this.observer = null, this.addObserver = Yr((n) => this.observer = n);
3471
+ this.auth = e, this.observer = null, this.addObserver = Qr((n) => this.observer = n);
3472
3472
  }
3473
3473
  get next() {
3474
3474
  return d(
@@ -3495,7 +3495,7 @@ class Bt {
3495
3495
  * See the License for the specific language governing permissions and
3496
3496
  * limitations under the License.
3497
3497
  */
3498
- function Bs(t, e) {
3498
+ function Fs(t, e) {
3499
3499
  const n = ut(t, "auth");
3500
3500
  if (n.isInitialized()) {
3501
3501
  const i = n.getImmediate(), s = n.getOptions();
@@ -3509,12 +3509,12 @@ function Bs(t, e) {
3509
3509
  }
3510
3510
  return n.initialize({ options: e });
3511
3511
  }
3512
- function Fs(t, e) {
3512
+ function $s(t, e) {
3513
3513
  const n = (e == null ? void 0 : e.persistence) || [], r = (Array.isArray(n) ? n : [n]).map(D);
3514
3514
  e != null && e.errorMap && t._updateErrorMap(e.errorMap), t._initializeWithPersistence(r, e == null ? void 0 : e.popupRedirectResolver);
3515
3515
  }
3516
- function $s(t, e, n) {
3517
- const r = Ie(t);
3516
+ function Hs(t, e, n) {
3517
+ const r = ye(t);
3518
3518
  d(
3519
3519
  r._canInitEmulator,
3520
3520
  r,
@@ -3526,20 +3526,20 @@ function $s(t, e, n) {
3526
3526
  "invalid-emulator-scheme"
3527
3527
  /* AuthErrorCode.INVALID_EMULATOR_SCHEME */
3528
3528
  );
3529
- const i = !!(n != null && n.disableWarnings), s = Fn(e), { host: o, port: a } = Hs(e), c = a === null ? "" : `:${a}`;
3529
+ const i = !!(n != null && n.disableWarnings), s = Bn(e), { host: o, port: a } = js(e), c = a === null ? "" : `:${a}`;
3530
3530
  r.config.emulator = { url: `${s}//${o}${c}/` }, r.settings.appVerificationDisabledForTesting = !0, r.emulatorConfig = Object.freeze({
3531
3531
  host: o,
3532
3532
  port: a,
3533
3533
  protocol: s.replace(":", ""),
3534
3534
  options: Object.freeze({ disableWarnings: i })
3535
- }), i || js();
3535
+ }), i || Vs();
3536
3536
  }
3537
- function Fn(t) {
3537
+ function Bn(t) {
3538
3538
  const e = t.indexOf(":");
3539
3539
  return e < 0 ? "" : t.substr(0, e + 1);
3540
3540
  }
3541
- function Hs(t) {
3542
- const e = Fn(t), n = /(\/\/)?([^?#/]+)/.exec(t.substr(e.length));
3541
+ function js(t) {
3542
+ const e = Bn(t), n = /(\/\/)?([^?#/]+)/.exec(t.substr(e.length));
3543
3543
  if (!n)
3544
3544
  return { host: "", port: null };
3545
3545
  const r = n[2].split("@").pop() || "", i = /^(\[[^\]]+\])(:|$)/.exec(r);
@@ -3557,7 +3557,7 @@ function Ft(t) {
3557
3557
  const e = Number(t);
3558
3558
  return isNaN(e) ? null : e;
3559
3559
  }
3560
- function js() {
3560
+ function Vs() {
3561
3561
  function t() {
3562
3562
  const e = document.createElement("p"), n = e.style;
3563
3563
  e.innerText = "Running in emulator mode. Do not use with production credentials.", n.position = "fixed", n.width = "100%", n.backgroundColor = "#ffffff", n.border = ".1em solid #000000", n.color = "#b50000", n.bottom = "0px", n.left = "0px", n.margin = "0px", n.zIndex = "10000", n.textAlign = "center", e.classList.add("firebase-emulator-warning"), document.body.appendChild(e);
@@ -3580,7 +3580,7 @@ function js() {
3580
3580
  * See the License for the specific language governing permissions and
3581
3581
  * limitations under the License.
3582
3582
  */
3583
- class $n {
3583
+ class Fn {
3584
3584
  /** @internal */
3585
3585
  constructor(e, n) {
3586
3586
  this.providerId = e, this.signInMethod = n;
@@ -3591,19 +3591,19 @@ class $n {
3591
3591
  * @returns a JSON-serializable representation of this object.
3592
3592
  */
3593
3593
  toJSON() {
3594
- return N("not implemented");
3594
+ return P("not implemented");
3595
3595
  }
3596
3596
  /** @internal */
3597
3597
  _getIdTokenResponse(e) {
3598
- return N("not implemented");
3598
+ return P("not implemented");
3599
3599
  }
3600
3600
  /** @internal */
3601
3601
  _linkToIdToken(e, n) {
3602
- return N("not implemented");
3602
+ return P("not implemented");
3603
3603
  }
3604
3604
  /** @internal */
3605
3605
  _getReauthenticationResolver(e) {
3606
- return N("not implemented");
3606
+ return P("not implemented");
3607
3607
  }
3608
3608
  }
3609
3609
  /**
@@ -3623,7 +3623,7 @@ class $n {
3623
3623
  * limitations under the License.
3624
3624
  */
3625
3625
  async function ie(t, e) {
3626
- return Tn(t, "POST", "/v1/accounts:signInWithIdp", pt(t, e));
3626
+ return En(t, "POST", "/v1/accounts:signInWithIdp", pt(t, e));
3627
3627
  }
3628
3628
  /**
3629
3629
  * @license
@@ -3641,14 +3641,14 @@ async function ie(t, e) {
3641
3641
  * See the License for the specific language governing permissions and
3642
3642
  * limitations under the License.
3643
3643
  */
3644
- const Vs = "http://localhost";
3645
- class Q extends $n {
3644
+ const Ws = "http://localhost";
3645
+ class Z extends Fn {
3646
3646
  constructor() {
3647
3647
  super(...arguments), this.pendingToken = null;
3648
3648
  }
3649
3649
  /** @internal */
3650
3650
  static _fromParams(e) {
3651
- const n = new Q(e.providerId, e.signInMethod);
3651
+ const n = new Z(e.providerId, e.signInMethod);
3652
3652
  return e.idToken || e.accessToken ? (e.idToken && (n.idToken = e.idToken), e.accessToken && (n.accessToken = e.accessToken), e.nonce && !e.pendingToken && (n.nonce = e.nonce), e.pendingToken && (n.pendingToken = e.pendingToken)) : e.oauthToken && e.oauthTokenSecret ? (n.accessToken = e.oauthToken, n.secret = e.oauthTokenSecret) : U(
3653
3653
  "argument-error"
3654
3654
  /* AuthErrorCode.ARGUMENT_ERROR */
@@ -3679,7 +3679,7 @@ class Q extends $n {
3679
3679
  const n = typeof e == "string" ? JSON.parse(e) : e, { providerId: r, signInMethod: i } = n, s = dt(n, ["providerId", "signInMethod"]);
3680
3680
  if (!r || !i)
3681
3681
  return null;
3682
- const o = new Q(r, i);
3682
+ const o = new Z(r, i);
3683
3683
  return o.idToken = s.idToken || void 0, o.accessToken = s.accessToken || void 0, o.secret = s.secret, o.nonce = s.nonce, o.pendingToken = s.pendingToken || null, o;
3684
3684
  }
3685
3685
  /** @internal */
@@ -3699,7 +3699,7 @@ class Q extends $n {
3699
3699
  }
3700
3700
  buildRequest() {
3701
3701
  const e = {
3702
- requestUri: Vs,
3702
+ requestUri: Ws,
3703
3703
  returnSecureToken: !0
3704
3704
  };
3705
3705
  if (this.pendingToken)
@@ -3727,7 +3727,7 @@ class Q extends $n {
3727
3727
  * See the License for the specific language governing permissions and
3728
3728
  * limitations under the License.
3729
3729
  */
3730
- class Hn {
3730
+ class $n {
3731
3731
  /**
3732
3732
  * Constructor for generic OAuth providers.
3733
3733
  *
@@ -3780,7 +3780,7 @@ class Hn {
3780
3780
  * See the License for the specific language governing permissions and
3781
3781
  * limitations under the License.
3782
3782
  */
3783
- class ye extends Hn {
3783
+ class Ie extends $n {
3784
3784
  constructor() {
3785
3785
  super(...arguments), this.scopes = [];
3786
3786
  }
@@ -3815,7 +3815,7 @@ class ye extends Hn {
3815
3815
  * See the License for the specific language governing permissions and
3816
3816
  * limitations under the License.
3817
3817
  */
3818
- class B extends ye {
3818
+ class B extends Ie {
3819
3819
  constructor() {
3820
3820
  super(
3821
3821
  "facebook.com"
@@ -3835,7 +3835,7 @@ class B extends ye {
3835
3835
  * @param accessToken - Facebook access token.
3836
3836
  */
3837
3837
  static credential(e) {
3838
- return Q._fromParams({
3838
+ return Z._fromParams({
3839
3839
  providerId: B.PROVIDER_ID,
3840
3840
  signInMethod: B.FACEBOOK_SIGN_IN_METHOD,
3841
3841
  accessToken: e
@@ -3886,7 +3886,7 @@ B.PROVIDER_ID = "facebook.com";
3886
3886
  * See the License for the specific language governing permissions and
3887
3887
  * limitations under the License.
3888
3888
  */
3889
- class F extends ye {
3889
+ class F extends Ie {
3890
3890
  constructor() {
3891
3891
  super(
3892
3892
  "google.com"
@@ -3907,7 +3907,7 @@ class F extends ye {
3907
3907
  * @param accessToken - Google access token.
3908
3908
  */
3909
3909
  static credential(e, n) {
3910
- return Q._fromParams({
3910
+ return Z._fromParams({
3911
3911
  providerId: F.PROVIDER_ID,
3912
3912
  signInMethod: F.GOOGLE_SIGN_IN_METHOD,
3913
3913
  idToken: e,
@@ -3962,7 +3962,7 @@ F.PROVIDER_ID = "google.com";
3962
3962
  * See the License for the specific language governing permissions and
3963
3963
  * limitations under the License.
3964
3964
  */
3965
- class $ extends ye {
3965
+ class $ extends Ie {
3966
3966
  constructor() {
3967
3967
  super(
3968
3968
  "github.com"
@@ -3975,7 +3975,7 @@ class $ extends ye {
3975
3975
  * @param accessToken - Github access token.
3976
3976
  */
3977
3977
  static credential(e) {
3978
- return Q._fromParams({
3978
+ return Z._fromParams({
3979
3979
  providerId: $.PROVIDER_ID,
3980
3980
  signInMethod: $.GITHUB_SIGN_IN_METHOD,
3981
3981
  accessToken: e
@@ -4026,7 +4026,7 @@ $.PROVIDER_ID = "github.com";
4026
4026
  * See the License for the specific language governing permissions and
4027
4027
  * limitations under the License.
4028
4028
  */
4029
- class H extends ye {
4029
+ class H extends Ie {
4030
4030
  constructor() {
4031
4031
  super(
4032
4032
  "twitter.com"
@@ -4040,7 +4040,7 @@ class H extends ye {
4040
4040
  * @param secret - Twitter secret.
4041
4041
  */
4042
4042
  static credential(e, n) {
4043
- return Q._fromParams({
4043
+ return Z._fromParams({
4044
4044
  providerId: H.PROVIDER_ID,
4045
4045
  signInMethod: H.TWITTER_SIGN_IN_METHOD,
4046
4046
  oauthToken: e,
@@ -4156,12 +4156,12 @@ class Me extends M {
4156
4156
  return new Me(e, n, r, i);
4157
4157
  }
4158
4158
  }
4159
- function jn(t, e, n, r) {
4159
+ function Hn(t, e, n, r) {
4160
4160
  return (e === "reauthenticate" ? n._getReauthenticationResolver(t) : n._getIdTokenResponse(t)).catch((s) => {
4161
4161
  throw s.code === "auth/multi-factor-auth-required" ? Me._fromErrorAndOperation(t, s, e, r) : s;
4162
4162
  });
4163
4163
  }
4164
- async function Ws(t, e, n = !1) {
4164
+ async function zs(t, e, n = !1) {
4165
4165
  const r = await pe(t, e._linkToIdToken(t.auth, await t.getIdToken()), n);
4166
4166
  return ee._forOperation(t, "link", r);
4167
4167
  }
@@ -4181,17 +4181,17 @@ async function Ws(t, e, n = !1) {
4181
4181
  * See the License for the specific language governing permissions and
4182
4182
  * limitations under the License.
4183
4183
  */
4184
- async function zs(t, e, n = !1) {
4184
+ async function qs(t, e, n = !1) {
4185
4185
  const { auth: r } = t, i = "reauthenticate";
4186
4186
  try {
4187
- const s = await pe(t, jn(r, i, e, t), n);
4187
+ const s = await pe(t, Hn(r, i, e, t), n);
4188
4188
  d(
4189
4189
  s.idToken,
4190
4190
  r,
4191
4191
  "internal-error"
4192
4192
  /* AuthErrorCode.INTERNAL_ERROR */
4193
4193
  );
4194
- const o = gt(s.idToken);
4194
+ const o = mt(s.idToken);
4195
4195
  d(
4196
4196
  o,
4197
4197
  r,
@@ -4229,8 +4229,8 @@ async function zs(t, e, n = !1) {
4229
4229
  * See the License for the specific language governing permissions and
4230
4230
  * limitations under the License.
4231
4231
  */
4232
- async function Gs(t, e, n = !1) {
4233
- const r = "signIn", i = await jn(t, r, e), s = await ee._fromIdTokenResponse(t, r, i);
4232
+ async function Ks(t, e, n = !1) {
4233
+ const r = "signIn", i = await Hn(t, r, e), s = await ee._fromIdTokenResponse(t, r, i);
4234
4234
  return n || await t._updateCurrentUser(s.user), s;
4235
4235
  }
4236
4236
  /**
@@ -4249,8 +4249,8 @@ async function Gs(t, e, n = !1) {
4249
4249
  * See the License for the specific language governing permissions and
4250
4250
  * limitations under the License.
4251
4251
  */
4252
- async function qs(t, e) {
4253
- return Tn(t, "POST", "/v1/accounts:signInWithCustomToken", pt(t, e));
4252
+ async function Gs(t, e) {
4253
+ return En(t, "POST", "/v1/accounts:signInWithCustomToken", pt(t, e));
4254
4254
  }
4255
4255
  /**
4256
4256
  * @license
@@ -4268,17 +4268,17 @@ async function qs(t, e) {
4268
4268
  * See the License for the specific language governing permissions and
4269
4269
  * limitations under the License.
4270
4270
  */
4271
- async function Ks(t, e) {
4272
- const n = Ie(t), r = await qs(n, {
4271
+ async function Js(t, e) {
4272
+ const n = ye(t), r = await Gs(n, {
4273
4273
  token: e,
4274
4274
  returnSecureToken: !0
4275
4275
  }), i = await ee._fromIdTokenResponse(n, "signIn", r);
4276
4276
  return await n._updateCurrentUser(i.user), i;
4277
4277
  }
4278
- function Js(t, e, n, r) {
4278
+ function Xs(t, e, n, r) {
4279
4279
  return R(t).onIdTokenChanged(e, n, r);
4280
4280
  }
4281
- function Xs(t, e, n) {
4281
+ function Ys(t, e, n) {
4282
4282
  return R(t).beforeAuthStateChanged(e, n);
4283
4283
  }
4284
4284
  const xe = "__sak";
@@ -4298,7 +4298,7 @@ const xe = "__sak";
4298
4298
  * See the License for the specific language governing permissions and
4299
4299
  * limitations under the License.
4300
4300
  */
4301
- class Vn {
4301
+ class jn {
4302
4302
  constructor(e, n) {
4303
4303
  this.storageRetriever = e, this.type = n;
4304
4304
  }
@@ -4339,18 +4339,18 @@ class Vn {
4339
4339
  * See the License for the specific language governing permissions and
4340
4340
  * limitations under the License.
4341
4341
  */
4342
- function Ys() {
4343
- const t = y();
4344
- return mt(t) || $e(t);
4342
+ function Qs() {
4343
+ const t = I();
4344
+ return gt(t) || $e(t);
4345
4345
  }
4346
- const Zs = 1e3, Qs = 10;
4347
- class Wn extends Vn {
4346
+ const Zs = 1e3, eo = 10;
4347
+ class Vn extends jn {
4348
4348
  constructor() {
4349
4349
  super(
4350
4350
  () => window.localStorage,
4351
4351
  "LOCAL"
4352
4352
  /* PersistenceType.LOCAL */
4353
- ), this.boundEventHandler = (e, n) => this.onStorageEvent(e, n), this.listeners = {}, this.localCache = {}, this.pollTimer = null, this.safariLocalStorageNotSynced = Ys() && Cs(), this.fallbackToPolling = Un(), this._shouldAllowMigration = !0;
4353
+ ), this.boundEventHandler = (e, n) => this.onStorageEvent(e, n), this.listeners = {}, this.localCache = {}, this.pollTimer = null, this.safariLocalStorageNotSynced = Qs() && Os(), this.fallbackToPolling = Dn(), this._shouldAllowMigration = !0;
4354
4354
  }
4355
4355
  forAllChangedKeys(e) {
4356
4356
  for (const n of Object.keys(this.listeners)) {
@@ -4377,7 +4377,7 @@ class Wn extends Vn {
4377
4377
  const o = this.storage.getItem(r);
4378
4378
  !n && this.localCache[r] === o || this.notifyListeners(r, o);
4379
4379
  }, s = this.storage.getItem(r);
4380
- Ss() && s !== e.newValue && e.newValue !== e.oldValue ? setTimeout(i, Qs) : i();
4380
+ Cs() && s !== e.newValue && e.newValue !== e.oldValue ? setTimeout(i, eo) : i();
4381
4381
  }
4382
4382
  notifyListeners(e, n) {
4383
4383
  this.localCache[e] = n;
@@ -4428,8 +4428,8 @@ class Wn extends Vn {
4428
4428
  await super._remove(e), delete this.localCache[e];
4429
4429
  }
4430
4430
  }
4431
- Wn.type = "LOCAL";
4432
- const eo = Wn;
4431
+ Vn.type = "LOCAL";
4432
+ const to = Vn;
4433
4433
  /**
4434
4434
  * @license
4435
4435
  * Copyright 2020 Google LLC
@@ -4446,7 +4446,7 @@ const eo = Wn;
4446
4446
  * See the License for the specific language governing permissions and
4447
4447
  * limitations under the License.
4448
4448
  */
4449
- class zn extends Vn {
4449
+ class Wn extends jn {
4450
4450
  constructor() {
4451
4451
  super(
4452
4452
  () => window.sessionStorage,
@@ -4459,8 +4459,8 @@ class zn extends Vn {
4459
4459
  _removeListener(e, n) {
4460
4460
  }
4461
4461
  }
4462
- zn.type = "SESSION";
4463
- const Gn = zn;
4462
+ Wn.type = "SESSION";
4463
+ const zn = Wn;
4464
4464
  /**
4465
4465
  * @license
4466
4466
  * Copyright 2019 Google LLC
@@ -4477,7 +4477,7 @@ const Gn = zn;
4477
4477
  * See the License for the specific language governing permissions and
4478
4478
  * limitations under the License.
4479
4479
  */
4480
- function to(t) {
4480
+ function no(t) {
4481
4481
  return Promise.all(t.map(async (e) => {
4482
4482
  try {
4483
4483
  return {
@@ -4547,7 +4547,7 @@ class He {
4547
4547
  eventId: r,
4548
4548
  eventType: i
4549
4549
  });
4550
- const a = Array.from(o).map(async (l) => l(n.origin, s)), c = await to(a);
4550
+ const a = Array.from(o).map(async (l) => l(n.origin, s)), c = await no(a);
4551
4551
  n.ports[0].postMessage({
4552
4552
  status: "done",
4553
4553
  eventId: r,
@@ -4615,7 +4615,7 @@ function _t(t = "", e = 10) {
4615
4615
  * See the License for the specific language governing permissions and
4616
4616
  * limitations under the License.
4617
4617
  */
4618
- class no {
4618
+ class ro {
4619
4619
  constructor(e) {
4620
4620
  this.target = e, this.handlers = /* @__PURE__ */ new Set();
4621
4621
  }
@@ -4715,7 +4715,7 @@ class no {
4715
4715
  function C() {
4716
4716
  return window;
4717
4717
  }
4718
- function ro(t) {
4718
+ function io(t) {
4719
4719
  C().location.href = t;
4720
4720
  }
4721
4721
  /**
@@ -4737,7 +4737,7 @@ function ro(t) {
4737
4737
  function qn() {
4738
4738
  return typeof C().WorkerGlobalScope < "u" && typeof C().importScripts == "function";
4739
4739
  }
4740
- async function io() {
4740
+ async function so() {
4741
4741
  if (!(navigator != null && navigator.serviceWorker))
4742
4742
  return null;
4743
4743
  try {
@@ -4746,11 +4746,11 @@ async function io() {
4746
4746
  return null;
4747
4747
  }
4748
4748
  }
4749
- function so() {
4749
+ function oo() {
4750
4750
  var t;
4751
4751
  return ((t = navigator == null ? void 0 : navigator.serviceWorker) === null || t === void 0 ? void 0 : t.controller) || null;
4752
4752
  }
4753
- function oo() {
4753
+ function ao() {
4754
4754
  return qn() ? self : null;
4755
4755
  }
4756
4756
  /**
@@ -4769,7 +4769,7 @@ function oo() {
4769
4769
  * See the License for the specific language governing permissions and
4770
4770
  * limitations under the License.
4771
4771
  */
4772
- const Kn = "firebaseLocalStorageDb", ao = 1, Be = "firebaseLocalStorage", Jn = "fbase_key";
4772
+ const Kn = "firebaseLocalStorageDb", co = 1, Be = "firebaseLocalStorage", Gn = "fbase_key";
4773
4773
  class we {
4774
4774
  constructor(e) {
4775
4775
  this.request = e;
@@ -4787,36 +4787,36 @@ class we {
4787
4787
  function je(t, e) {
4788
4788
  return t.transaction([Be], e ? "readwrite" : "readonly").objectStore(Be);
4789
4789
  }
4790
- function co() {
4790
+ function lo() {
4791
4791
  const t = indexedDB.deleteDatabase(Kn);
4792
4792
  return new we(t).toPromise();
4793
4793
  }
4794
4794
  function at() {
4795
- const t = indexedDB.open(Kn, ao);
4795
+ const t = indexedDB.open(Kn, co);
4796
4796
  return new Promise((e, n) => {
4797
4797
  t.addEventListener("error", () => {
4798
4798
  n(t.error);
4799
4799
  }), t.addEventListener("upgradeneeded", () => {
4800
4800
  const r = t.result;
4801
4801
  try {
4802
- r.createObjectStore(Be, { keyPath: Jn });
4802
+ r.createObjectStore(Be, { keyPath: Gn });
4803
4803
  } catch (i) {
4804
4804
  n(i);
4805
4805
  }
4806
4806
  }), t.addEventListener("success", async () => {
4807
4807
  const r = t.result;
4808
- r.objectStoreNames.contains(Be) ? e(r) : (r.close(), await co(), e(await at()));
4808
+ r.objectStoreNames.contains(Be) ? e(r) : (r.close(), await lo(), e(await at()));
4809
4809
  });
4810
4810
  });
4811
4811
  }
4812
4812
  async function Ht(t, e, n) {
4813
4813
  const r = je(t, !0).put({
4814
- [Jn]: e,
4814
+ [Gn]: e,
4815
4815
  value: n
4816
4816
  });
4817
4817
  return new we(r).toPromise();
4818
4818
  }
4819
- async function lo(t, e) {
4819
+ async function uo(t, e) {
4820
4820
  const n = je(t, !1).get(e), r = await new we(n).toPromise();
4821
4821
  return r === void 0 ? null : r.value;
4822
4822
  }
@@ -4824,8 +4824,8 @@ function jt(t, e) {
4824
4824
  const n = je(t, !0).delete(e);
4825
4825
  return new we(n).toPromise();
4826
4826
  }
4827
- const uo = 800, ho = 3;
4828
- class Xn {
4827
+ const ho = 800, fo = 3;
4828
+ class Jn {
4829
4829
  constructor() {
4830
4830
  this.type = "LOCAL", this._shouldAllowMigration = !0, this.listeners = {}, this.localCache = {}, this.pollTimer = null, this.pendingWrites = 0, this.receiver = null, this.sender = null, this.serviceWorkerReceiverAvailable = !1, this.activeServiceWorker = null, this._workerInitializationPromise = this.initializeServiceWorkerMessaging().then(() => {
4831
4831
  }, () => {
@@ -4841,7 +4841,7 @@ class Xn {
4841
4841
  const r = await this._openDb();
4842
4842
  return await e(r);
4843
4843
  } catch (r) {
4844
- if (n++ > ho)
4844
+ if (n++ > fo)
4845
4845
  throw r;
4846
4846
  this.db && (this.db.close(), this.db = void 0);
4847
4847
  }
@@ -4857,7 +4857,7 @@ class Xn {
4857
4857
  * As the worker we should listen to events from the main window.
4858
4858
  */
4859
4859
  async initializeReceiver() {
4860
- this.receiver = He._getInstance(oo()), this.receiver._subscribe("keyChanged", async (e, n) => ({
4860
+ this.receiver = He._getInstance(ao()), this.receiver._subscribe("keyChanged", async (e, n) => ({
4861
4861
  keyProcessed: (await this._poll()).includes(n.key)
4862
4862
  })), this.receiver._subscribe("ping", async (e, n) => [
4863
4863
  "keyChanged"
@@ -4873,9 +4873,9 @@ class Xn {
4873
4873
  */
4874
4874
  async initializeSender() {
4875
4875
  var e, n;
4876
- if (this.activeServiceWorker = await io(), !this.activeServiceWorker)
4876
+ if (this.activeServiceWorker = await so(), !this.activeServiceWorker)
4877
4877
  return;
4878
- this.sender = new no(this.activeServiceWorker);
4878
+ this.sender = new ro(this.activeServiceWorker);
4879
4879
  const r = await this.sender._send(
4880
4880
  "ping",
4881
4881
  {},
@@ -4897,7 +4897,7 @@ class Xn {
4897
4897
  * @param key - Storage key which changed.
4898
4898
  */
4899
4899
  async notifyServiceWorker(e) {
4900
- if (!(!this.sender || !this.activeServiceWorker || so() !== this.activeServiceWorker))
4900
+ if (!(!this.sender || !this.activeServiceWorker || oo() !== this.activeServiceWorker))
4901
4901
  try {
4902
4902
  await this.sender._send(
4903
4903
  "keyChanged",
@@ -4931,7 +4931,7 @@ class Xn {
4931
4931
  return this._withPendingWrite(async () => (await this._withRetries((r) => Ht(r, e, n)), this.localCache[e] = n, this.notifyServiceWorker(e)));
4932
4932
  }
4933
4933
  async _get(e) {
4934
- const n = await this._withRetries((r) => lo(r, e));
4934
+ const n = await this._withRetries((r) => uo(r, e));
4935
4935
  return this.localCache[e] = n, n;
4936
4936
  }
4937
4937
  async _remove(e) {
@@ -4961,7 +4961,7 @@ class Xn {
4961
4961
  i(n);
4962
4962
  }
4963
4963
  startPolling() {
4964
- this.stopPolling(), this.pollTimer = setInterval(async () => this._poll(), uo);
4964
+ this.stopPolling(), this.pollTimer = setInterval(async () => this._poll(), ho);
4965
4965
  }
4966
4966
  stopPolling() {
4967
4967
  this.pollTimer && (clearInterval(this.pollTimer), this.pollTimer = null);
@@ -4973,8 +4973,8 @@ class Xn {
4973
4973
  this.listeners[e] && (this.listeners[e].delete(n), this.listeners[e].size === 0 && delete this.listeners[e]), Object.keys(this.listeners).length === 0 && this.stopPolling();
4974
4974
  }
4975
4975
  }
4976
- Xn.type = "LOCAL";
4977
- const fo = Xn;
4976
+ Jn.type = "LOCAL";
4977
+ const po = Jn;
4978
4978
  new ve(3e4, 6e4);
4979
4979
  /**
4980
4980
  * @license
@@ -4992,7 +4992,7 @@ new ve(3e4, 6e4);
4992
4992
  * See the License for the specific language governing permissions and
4993
4993
  * limitations under the License.
4994
4994
  */
4995
- function po(t, e) {
4995
+ function mo(t, e) {
4996
4996
  return e ? D(e) : (d(
4997
4997
  t._popupRedirectResolver,
4998
4998
  t,
@@ -5016,7 +5016,7 @@ function po(t, e) {
5016
5016
  * See the License for the specific language governing permissions and
5017
5017
  * limitations under the License.
5018
5018
  */
5019
- class vt extends $n {
5019
+ class vt extends Fn {
5020
5020
  constructor(e) {
5021
5021
  super(
5022
5022
  "custom",
@@ -5047,25 +5047,25 @@ class vt extends $n {
5047
5047
  }
5048
5048
  }
5049
5049
  function go(t) {
5050
- return Gs(t.auth, new vt(t), t.bypassAuthState);
5050
+ return Ks(t.auth, new vt(t), t.bypassAuthState);
5051
5051
  }
5052
- function mo(t) {
5052
+ function _o(t) {
5053
5053
  const { auth: e, user: n } = t;
5054
5054
  return d(
5055
5055
  n,
5056
5056
  e,
5057
5057
  "internal-error"
5058
5058
  /* AuthErrorCode.INTERNAL_ERROR */
5059
- ), zs(n, new vt(t), t.bypassAuthState);
5059
+ ), qs(n, new vt(t), t.bypassAuthState);
5060
5060
  }
5061
- async function _o(t) {
5061
+ async function vo(t) {
5062
5062
  const { auth: e, user: n } = t;
5063
5063
  return d(
5064
5064
  n,
5065
5065
  e,
5066
5066
  "internal-error"
5067
5067
  /* AuthErrorCode.INTERNAL_ERROR */
5068
- ), Ws(n, new vt(t), t.bypassAuthState);
5068
+ ), zs(n, new vt(t), t.bypassAuthState);
5069
5069
  }
5070
5070
  /**
5071
5071
  * @license
@@ -5083,7 +5083,7 @@ async function _o(t) {
5083
5083
  * See the License for the specific language governing permissions and
5084
5084
  * limitations under the License.
5085
5085
  */
5086
- class Yn {
5086
+ class Xn {
5087
5087
  constructor(e, n, r, i, s = !1) {
5088
5088
  this.auth = e, this.resolver = r, this.user = i, this.bypassAuthState = s, this.pendingPromise = null, this.eventManager = null, this.filter = Array.isArray(n) ? n : [n];
5089
5089
  }
@@ -5128,10 +5128,10 @@ class Yn {
5128
5128
  return go;
5129
5129
  case "linkViaPopup":
5130
5130
  case "linkViaRedirect":
5131
- return _o;
5131
+ return vo;
5132
5132
  case "reauthViaPopup":
5133
5133
  case "reauthViaRedirect":
5134
- return mo;
5134
+ return _o;
5135
5135
  default:
5136
5136
  U(
5137
5137
  this.auth,
@@ -5166,8 +5166,8 @@ class Yn {
5166
5166
  * See the License for the specific language governing permissions and
5167
5167
  * limitations under the License.
5168
5168
  */
5169
- const vo = new ve(2e3, 1e4);
5170
- class ne extends Yn {
5169
+ const bo = new ve(2e3, 1e4);
5170
+ class ne extends Xn {
5171
5171
  constructor(e, n, r, i, s) {
5172
5172
  super(e, n, i, s), this.provider = r, this.authWindow = null, this.pollId = null, ne.currentPopupAction && ne.currentPopupAction.cancel(), ne.currentPopupAction = this;
5173
5173
  }
@@ -5230,7 +5230,7 @@ class ne extends Yn {
5230
5230
  );
5231
5231
  return;
5232
5232
  }
5233
- this.pollId = window.setTimeout(e, vo.get());
5233
+ this.pollId = window.setTimeout(e, bo.get());
5234
5234
  };
5235
5235
  e();
5236
5236
  }
@@ -5252,8 +5252,8 @@ ne.currentPopupAction = null;
5252
5252
  * See the License for the specific language governing permissions and
5253
5253
  * limitations under the License.
5254
5254
  */
5255
- const bo = "pendingRedirect", Oe = /* @__PURE__ */ new Map();
5256
- class Io extends Yn {
5255
+ const yo = "pendingRedirect", Oe = /* @__PURE__ */ new Map();
5256
+ class Io extends Xn {
5257
5257
  constructor(e, n, r = !1) {
5258
5258
  super(e, [
5259
5259
  "signInViaRedirect",
@@ -5271,7 +5271,7 @@ class Io extends Yn {
5271
5271
  let e = Oe.get(this.auth._key());
5272
5272
  if (!e) {
5273
5273
  try {
5274
- const r = await yo(this.resolver, this.auth) ? await super.execute() : null;
5274
+ const r = await wo(this.resolver, this.auth) ? await super.execute() : null;
5275
5275
  e = () => Promise.resolve(r);
5276
5276
  } catch (n) {
5277
5277
  e = () => Promise.reject(n);
@@ -5299,24 +5299,24 @@ class Io extends Yn {
5299
5299
  cleanUp() {
5300
5300
  }
5301
5301
  }
5302
- async function yo(t, e) {
5303
- const n = To(e), r = Eo(t);
5302
+ async function wo(t, e) {
5303
+ const n = Ro(e), r = To(t);
5304
5304
  if (!await r._isAvailable())
5305
5305
  return !1;
5306
5306
  const i = await r._get(n) === "true";
5307
5307
  return await r._remove(n), i;
5308
5308
  }
5309
- function wo(t, e) {
5309
+ function Eo(t, e) {
5310
5310
  Oe.set(t._key(), e);
5311
5311
  }
5312
- function Eo(t) {
5312
+ function To(t) {
5313
5313
  return D(t._redirectPersistence);
5314
5314
  }
5315
- function To(t) {
5316
- return Ce(bo, t.config.apiKey, t.name);
5315
+ function Ro(t) {
5316
+ return Ce(yo, t.config.apiKey, t.name);
5317
5317
  }
5318
- async function Ro(t, e, n = !1) {
5319
- const r = Ie(t), i = po(r, e), o = await new Io(r, i, n).execute();
5318
+ async function Ao(t, e, n = !1) {
5319
+ const r = ye(t), i = mo(r, e), o = await new Io(r, i, n).execute();
5320
5320
  return o && !n && (delete o.user._redirectEventId, await r._persistUserIfCurrent(o.user), await r._setRedirectUser(null, e)), o;
5321
5321
  }
5322
5322
  /**
@@ -5335,8 +5335,8 @@ async function Ro(t, e, n = !1) {
5335
5335
  * See the License for the specific language governing permissions and
5336
5336
  * limitations under the License.
5337
5337
  */
5338
- const Ao = 10 * 60 * 1e3;
5339
- class ko {
5338
+ const ko = 10 * 60 * 1e3;
5339
+ class So {
5340
5340
  constructor(e) {
5341
5341
  this.auth = e, this.cachedEventUids = /* @__PURE__ */ new Set(), this.consumers = /* @__PURE__ */ new Set(), this.queuedRedirectEvent = null, this.hasHandledPotentialRedirect = !1, this.lastProcessedEventTime = Date.now();
5342
5342
  }
@@ -5352,11 +5352,11 @@ class ko {
5352
5352
  let n = !1;
5353
5353
  return this.consumers.forEach((r) => {
5354
5354
  this.isEventForConsumer(e, r) && (n = !0, this.sendToConsumer(e, r), this.saveEventToCache(e));
5355
- }), this.hasHandledPotentialRedirect || !So(e) || (this.hasHandledPotentialRedirect = !0, n || (this.queuedRedirectEvent = e, n = !0)), n;
5355
+ }), this.hasHandledPotentialRedirect || !Co(e) || (this.hasHandledPotentialRedirect = !0, n || (this.queuedRedirectEvent = e, n = !0)), n;
5356
5356
  }
5357
5357
  sendToConsumer(e, n) {
5358
5358
  var r;
5359
- if (e.error && !Zn(e)) {
5359
+ if (e.error && !Yn(e)) {
5360
5360
  const i = ((r = e.error.code) === null || r === void 0 ? void 0 : r.split("auth/")[1]) || "internal-error";
5361
5361
  n.onError(S(this.auth, i));
5362
5362
  } else
@@ -5367,7 +5367,7 @@ class ko {
5367
5367
  return n.filter.includes(e.type) && r;
5368
5368
  }
5369
5369
  hasEventBeenHandled(e) {
5370
- return Date.now() - this.lastProcessedEventTime >= Ao && this.cachedEventUids.clear(), this.cachedEventUids.has(Vt(e));
5370
+ return Date.now() - this.lastProcessedEventTime >= ko && this.cachedEventUids.clear(), this.cachedEventUids.has(Vt(e));
5371
5371
  }
5372
5372
  saveEventToCache(e) {
5373
5373
  this.cachedEventUids.add(Vt(e)), this.lastProcessedEventTime = Date.now();
@@ -5376,17 +5376,17 @@ class ko {
5376
5376
  function Vt(t) {
5377
5377
  return [t.type, t.eventId, t.sessionId, t.tenantId].filter((e) => e).join("-");
5378
5378
  }
5379
- function Zn({ type: t, error: e }) {
5379
+ function Yn({ type: t, error: e }) {
5380
5380
  return t === "unknown" && (e == null ? void 0 : e.code) === "auth/no-auth-event";
5381
5381
  }
5382
- function So(t) {
5382
+ function Co(t) {
5383
5383
  switch (t.type) {
5384
5384
  case "signInViaRedirect":
5385
5385
  case "linkViaRedirect":
5386
5386
  case "reauthViaRedirect":
5387
5387
  return !0;
5388
5388
  case "unknown":
5389
- return Zn(t);
5389
+ return Yn(t);
5390
5390
  default:
5391
5391
  return !1;
5392
5392
  }
@@ -5407,7 +5407,7 @@ function So(t) {
5407
5407
  * See the License for the specific language governing permissions and
5408
5408
  * limitations under the License.
5409
5409
  */
5410
- async function Co(t, e = {}) {
5410
+ async function Oo(t, e = {}) {
5411
5411
  return be(t, "GET", "/v1/projects", e);
5412
5412
  }
5413
5413
  /**
@@ -5426,14 +5426,14 @@ async function Co(t, e = {}) {
5426
5426
  * See the License for the specific language governing permissions and
5427
5427
  * limitations under the License.
5428
5428
  */
5429
- const Oo = /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/, Po = /^https?/;
5430
- async function No(t) {
5429
+ const No = /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/, Po = /^https?/;
5430
+ async function Do(t) {
5431
5431
  if (t.config.emulator)
5432
5432
  return;
5433
- const { authorizedDomains: e } = await Co(t);
5433
+ const { authorizedDomains: e } = await Oo(t);
5434
5434
  for (const n of e)
5435
5435
  try {
5436
- if (Do(n))
5436
+ if (Uo(n))
5437
5437
  return;
5438
5438
  } catch {
5439
5439
  }
@@ -5443,7 +5443,7 @@ async function No(t) {
5443
5443
  /* AuthErrorCode.INVALID_ORIGIN */
5444
5444
  );
5445
5445
  }
5446
- function Do(t) {
5446
+ function Uo(t) {
5447
5447
  const e = ot(), { protocol: n, hostname: r } = new URL(e);
5448
5448
  if (t.startsWith("chrome-extension://")) {
5449
5449
  const o = new URL(t);
@@ -5451,7 +5451,7 @@ function Do(t) {
5451
5451
  }
5452
5452
  if (!Po.test(n))
5453
5453
  return !1;
5454
- if (Oo.test(t))
5454
+ if (No.test(t))
5455
5455
  return r === t;
5456
5456
  const i = t.replace(/\./g, "\\.");
5457
5457
  return new RegExp("^(.+\\." + i + "|" + i + ")$", "i").test(r);
@@ -5472,7 +5472,7 @@ function Do(t) {
5472
5472
  * See the License for the specific language governing permissions and
5473
5473
  * limitations under the License.
5474
5474
  */
5475
- const Uo = new ve(3e4, 6e4);
5475
+ const Lo = new ve(3e4, 6e4);
5476
5476
  function Wt() {
5477
5477
  const t = C().___jsl;
5478
5478
  if (t != null && t.H) {
@@ -5482,7 +5482,7 @@ function Wt() {
5482
5482
  t.CP[n] = null;
5483
5483
  }
5484
5484
  }
5485
- function Lo(t) {
5485
+ function Mo(t) {
5486
5486
  return new Promise((e, n) => {
5487
5487
  var r, i, s;
5488
5488
  function o() {
@@ -5497,7 +5497,7 @@ function Lo(t) {
5497
5497
  /* AuthErrorCode.NETWORK_REQUEST_FAILED */
5498
5498
  ));
5499
5499
  },
5500
- timeout: Uo.get()
5500
+ timeout: Lo.get()
5501
5501
  });
5502
5502
  }
5503
5503
  if (!((i = (r = C().gapi) === null || r === void 0 ? void 0 : r.iframes) === null || i === void 0) && i.Iframe)
@@ -5512,15 +5512,15 @@ function Lo(t) {
5512
5512
  "network-request-failed"
5513
5513
  /* AuthErrorCode.NETWORK_REQUEST_FAILED */
5514
5514
  ));
5515
- }, Bn(`https://apis.google.com/js/api.js?onload=${a}`).catch((c) => n(c));
5515
+ }, xn(`https://apis.google.com/js/api.js?onload=${a}`).catch((c) => n(c));
5516
5516
  }
5517
5517
  }).catch((e) => {
5518
- throw Pe = null, e;
5518
+ throw Ne = null, e;
5519
5519
  });
5520
5520
  }
5521
- let Pe = null;
5522
- function Mo(t) {
5523
- return Pe = Pe || Lo(t), Pe;
5521
+ let Ne = null;
5522
+ function xo(t) {
5523
+ return Ne = Ne || Mo(t), Ne;
5524
5524
  }
5525
5525
  /**
5526
5526
  * @license
@@ -5538,7 +5538,7 @@ function Mo(t) {
5538
5538
  * See the License for the specific language governing permissions and
5539
5539
  * limitations under the License.
5540
5540
  */
5541
- const xo = new ve(5e3, 15e3), Bo = "__/auth/iframe", Fo = "emulator/auth/iframe", $o = {
5541
+ const Bo = new ve(5e3, 15e3), Fo = "__/auth/iframe", $o = "emulator/auth/iframe", Ho = {
5542
5542
  style: {
5543
5543
  position: "absolute",
5544
5544
  top: "-100px",
@@ -5547,13 +5547,13 @@ const xo = new ve(5e3, 15e3), Bo = "__/auth/iframe", Fo = "emulator/auth/iframe"
5547
5547
  },
5548
5548
  "aria-hidden": "true",
5549
5549
  tabindex: "-1"
5550
- }, Ho = /* @__PURE__ */ new Map([
5550
+ }, jo = /* @__PURE__ */ new Map([
5551
5551
  ["identitytoolkit.googleapis.com", "p"],
5552
5552
  ["staging-identitytoolkit.sandbox.googleapis.com", "s"],
5553
5553
  ["test-identitytoolkit.sandbox.googleapis.com", "t"]
5554
5554
  // test
5555
5555
  ]);
5556
- function jo(t) {
5556
+ function Vo(t) {
5557
5557
  const e = t.config;
5558
5558
  d(
5559
5559
  e.authDomain,
@@ -5561,17 +5561,17 @@ function jo(t) {
5561
5561
  "auth-domain-config-required"
5562
5562
  /* AuthErrorCode.MISSING_AUTH_DOMAIN */
5563
5563
  );
5564
- const n = e.emulator ? ft(e, Fo) : `https://${t.config.authDomain}/${Bo}`, r = {
5564
+ const n = e.emulator ? ft(e, $o) : `https://${t.config.authDomain}/${Fo}`, r = {
5565
5565
  apiKey: e.apiKey,
5566
5566
  appName: t.name,
5567
5567
  v: oe
5568
- }, i = Ho.get(t.config.apiHost);
5568
+ }, i = jo.get(t.config.apiHost);
5569
5569
  i && (r.eid = i);
5570
5570
  const s = t._getFrameworks();
5571
5571
  return s.length && (r.fw = s.join(",")), `${n}?${_e(r).slice(1)}`;
5572
5572
  }
5573
- async function Vo(t) {
5574
- const e = await Mo(t), n = C().gapi;
5573
+ async function Wo(t) {
5574
+ const e = await xo(t), n = C().gapi;
5575
5575
  return d(
5576
5576
  n,
5577
5577
  t,
@@ -5579,9 +5579,9 @@ async function Vo(t) {
5579
5579
  /* AuthErrorCode.INTERNAL_ERROR */
5580
5580
  ), e.open({
5581
5581
  where: document.body,
5582
- url: jo(t),
5582
+ url: Vo(t),
5583
5583
  messageHandlersFilter: n.iframes.CROSS_ORIGIN_IFRAMES_FILTER,
5584
- attributes: $o,
5584
+ attributes: Ho,
5585
5585
  dontclear: !0
5586
5586
  }, (r) => new Promise(async (i, s) => {
5587
5587
  await r.restyle({
@@ -5594,7 +5594,7 @@ async function Vo(t) {
5594
5594
  /* AuthErrorCode.NETWORK_REQUEST_FAILED */
5595
5595
  ), a = C().setTimeout(() => {
5596
5596
  s(o);
5597
- }, xo.get());
5597
+ }, Bo.get());
5598
5598
  function c() {
5599
5599
  C().clearTimeout(a), i(r);
5600
5600
  }
@@ -5619,12 +5619,12 @@ async function Vo(t) {
5619
5619
  * See the License for the specific language governing permissions and
5620
5620
  * limitations under the License.
5621
5621
  */
5622
- const Wo = {
5622
+ const zo = {
5623
5623
  location: "yes",
5624
5624
  resizable: "yes",
5625
5625
  statusbar: "yes",
5626
5626
  toolbar: "no"
5627
- }, zo = 500, Go = 600, qo = "_blank", Ko = "http://localhost";
5627
+ }, qo = 500, Ko = 600, Go = "_blank", Jo = "http://localhost";
5628
5628
  class zt {
5629
5629
  constructor(e) {
5630
5630
  this.window = e, this.associatedEvent = null;
@@ -5637,19 +5637,19 @@ class zt {
5637
5637
  }
5638
5638
  }
5639
5639
  }
5640
- function Jo(t, e, n, r = zo, i = Go) {
5640
+ function Xo(t, e, n, r = qo, i = Ko) {
5641
5641
  const s = Math.max((window.screen.availHeight - i) / 2, 0).toString(), o = Math.max((window.screen.availWidth - r) / 2, 0).toString();
5642
5642
  let a = "";
5643
- const c = Object.assign(Object.assign({}, Wo), {
5643
+ const c = Object.assign(Object.assign({}, zo), {
5644
5644
  width: r.toString(),
5645
5645
  height: i.toString(),
5646
5646
  top: s,
5647
5647
  left: o
5648
- }), l = y().toLowerCase();
5649
- n && (a = Cn(l) ? qo : n), Sn(l) && (e = e || Ko, c.scrollbars = "yes");
5648
+ }), l = I().toLowerCase();
5649
+ n && (a = Sn(l) ? Go : n), kn(l) && (e = e || Jo, c.scrollbars = "yes");
5650
5650
  const u = Object.entries(c).reduce((f, [_, b]) => `${f}${_}=${b},`, "");
5651
- if (ks(l) && a !== "_self")
5652
- return Xo(e || "", a), new zt(null);
5651
+ if (Ss(l) && a !== "_self")
5652
+ return Yo(e || "", a), new zt(null);
5653
5653
  const h = window.open(e || "", a, u);
5654
5654
  d(
5655
5655
  h,
@@ -5663,7 +5663,7 @@ function Jo(t, e, n, r = zo, i = Go) {
5663
5663
  }
5664
5664
  return new zt(h);
5665
5665
  }
5666
- function Xo(t, e) {
5666
+ function Yo(t, e) {
5667
5667
  const n = document.createElement("a");
5668
5668
  n.href = t, n.target = e;
5669
5669
  const r = document.createEvent("MouseEvent");
@@ -5685,8 +5685,8 @@ function Xo(t, e) {
5685
5685
  * See the License for the specific language governing permissions and
5686
5686
  * limitations under the License.
5687
5687
  */
5688
- const Yo = "__/auth/handler", Zo = "emulator/auth/handler", Qo = encodeURIComponent("fac");
5689
- async function Gt(t, e, n, r, i, s) {
5688
+ const Qo = "__/auth/handler", Zo = "emulator/auth/handler", ea = encodeURIComponent("fac");
5689
+ async function qt(t, e, n, r, i, s) {
5690
5690
  d(
5691
5691
  t.config.authDomain,
5692
5692
  t,
@@ -5706,12 +5706,12 @@ async function Gt(t, e, n, r, i, s) {
5706
5706
  v: oe,
5707
5707
  eventId: i
5708
5708
  };
5709
- if (e instanceof Hn) {
5710
- e.setDefaultLanguage(t.languageCode), o.providerId = e.providerId || "", Xr(e.getCustomParameters()) || (o.customParameters = JSON.stringify(e.getCustomParameters()));
5709
+ if (e instanceof $n) {
5710
+ e.setDefaultLanguage(t.languageCode), o.providerId = e.providerId || "", Yr(e.getCustomParameters()) || (o.customParameters = JSON.stringify(e.getCustomParameters()));
5711
5711
  for (const [u, h] of Object.entries(s || {}))
5712
5712
  o[u] = h;
5713
5713
  }
5714
- if (e instanceof ye) {
5714
+ if (e instanceof Ie) {
5715
5715
  const u = e.getScopes().filter((h) => h !== "");
5716
5716
  u.length > 0 && (o.scopes = u.join(","));
5717
5717
  }
@@ -5719,11 +5719,11 @@ async function Gt(t, e, n, r, i, s) {
5719
5719
  const a = o;
5720
5720
  for (const u of Object.keys(a))
5721
5721
  a[u] === void 0 && delete a[u];
5722
- const c = await t._getAppCheckToken(), l = c ? `#${Qo}=${encodeURIComponent(c)}` : "";
5723
- return `${ea(t)}?${_e(a).slice(1)}${l}`;
5722
+ const c = await t._getAppCheckToken(), l = c ? `#${ea}=${encodeURIComponent(c)}` : "";
5723
+ return `${ta(t)}?${_e(a).slice(1)}${l}`;
5724
5724
  }
5725
- function ea({ config: t }) {
5726
- return t.emulator ? ft(t, Zo) : `https://${t.authDomain}/${Yo}`;
5725
+ function ta({ config: t }) {
5726
+ return t.emulator ? ft(t, Zo) : `https://${t.authDomain}/${Qo}`;
5727
5727
  }
5728
5728
  /**
5729
5729
  * @license
@@ -5742,22 +5742,22 @@ function ea({ config: t }) {
5742
5742
  * limitations under the License.
5743
5743
  */
5744
5744
  const Ye = "webStorageSupport";
5745
- class ta {
5745
+ class na {
5746
5746
  constructor() {
5747
- this.eventManagers = {}, this.iframes = {}, this.originValidationPromises = {}, this._redirectPersistence = Gn, this._completeRedirectFn = Ro, this._overrideRedirectResult = wo;
5747
+ this.eventManagers = {}, this.iframes = {}, this.originValidationPromises = {}, this._redirectPersistence = zn, this._completeRedirectFn = Ao, this._overrideRedirectResult = Eo;
5748
5748
  }
5749
5749
  // Wrapping in async even though we don't await anywhere in order
5750
5750
  // to make sure errors are raised as promise rejections
5751
5751
  async _openPopup(e, n, r, i) {
5752
5752
  var s;
5753
5753
  L((s = this.eventManagers[e._key()]) === null || s === void 0 ? void 0 : s.manager, "_initialize() not called before _openPopup()");
5754
- const o = await Gt(e, n, r, ot(), i);
5755
- return Jo(e, o, _t());
5754
+ const o = await qt(e, n, r, ot(), i);
5755
+ return Xo(e, o, _t());
5756
5756
  }
5757
5757
  async _openRedirect(e, n, r, i) {
5758
5758
  await this._originValidation(e);
5759
- const s = await Gt(e, n, r, ot(), i);
5760
- return ro(s), new Promise(() => {
5759
+ const s = await qt(e, n, r, ot(), i);
5760
+ return io(s), new Promise(() => {
5761
5761
  });
5762
5762
  }
5763
5763
  _initialize(e) {
@@ -5772,7 +5772,7 @@ class ta {
5772
5772
  }), r;
5773
5773
  }
5774
5774
  async initAndGetManager(e) {
5775
- const n = await Vo(e), r = new ko(e);
5775
+ const n = await Wo(e), r = new So(e);
5776
5776
  return n.register("authEvent", (i) => (d(
5777
5777
  i == null ? void 0 : i.authEvent,
5778
5778
  e,
@@ -5796,14 +5796,14 @@ class ta {
5796
5796
  }
5797
5797
  _originValidation(e) {
5798
5798
  const n = e._key();
5799
- return this.originValidationPromises[n] || (this.originValidationPromises[n] = No(e)), this.originValidationPromises[n];
5799
+ return this.originValidationPromises[n] || (this.originValidationPromises[n] = Do(e)), this.originValidationPromises[n];
5800
5800
  }
5801
5801
  get _shouldInitProactively() {
5802
- return Un() || mt() || $e();
5802
+ return Dn() || gt() || $e();
5803
5803
  }
5804
5804
  }
5805
- const na = ta;
5806
- var qt = "@firebase/auth", Kt = "0.23.2";
5805
+ const ra = na;
5806
+ var Kt = "@firebase/auth", Gt = "0.23.2";
5807
5807
  /**
5808
5808
  * @license
5809
5809
  * Copyright 2020 Google LLC
@@ -5820,7 +5820,7 @@ var qt = "@firebase/auth", Kt = "0.23.2";
5820
5820
  * See the License for the specific language governing permissions and
5821
5821
  * limitations under the License.
5822
5822
  */
5823
- class ra {
5823
+ class ia {
5824
5824
  constructor(e) {
5825
5825
  this.auth = e, this.internalListeners = /* @__PURE__ */ new Map();
5826
5826
  }
@@ -5871,7 +5871,7 @@ class ra {
5871
5871
  * See the License for the specific language governing permissions and
5872
5872
  * limitations under the License.
5873
5873
  */
5874
- function ia(t) {
5874
+ function sa(t) {
5875
5875
  switch (t) {
5876
5876
  case "Node":
5877
5877
  return "node";
@@ -5885,7 +5885,7 @@ function ia(t) {
5885
5885
  return;
5886
5886
  }
5887
5887
  }
5888
- function sa(t) {
5888
+ function oa(t) {
5889
5889
  se(new Y(
5890
5890
  "auth",
5891
5891
  (e, { options: n }) => {
@@ -5898,9 +5898,9 @@ function sa(t) {
5898
5898
  apiHost: "identitytoolkit.googleapis.com",
5899
5899
  tokenApiHost: "securetoken.googleapis.com",
5900
5900
  apiScheme: "https",
5901
- sdkClientVersion: Ln(t)
5902
- }, l = new xs(r, i, s, c);
5903
- return Fs(l, n), l;
5901
+ sdkClientVersion: Un(t)
5902
+ }, l = new Bs(r, i, s, c);
5903
+ return $s(l, n), l;
5904
5904
  },
5905
5905
  "PUBLIC"
5906
5906
  /* ComponentType.PUBLIC */
@@ -5915,18 +5915,18 @@ function sa(t) {
5915
5915
  })), se(new Y(
5916
5916
  "auth-internal",
5917
5917
  (e) => {
5918
- const n = Ie(e.getProvider(
5918
+ const n = ye(e.getProvider(
5919
5919
  "auth"
5920
5920
  /* _ComponentName.AUTH */
5921
5921
  ).getImmediate());
5922
- return ((r) => new ra(r))(n);
5922
+ return ((r) => new ia(r))(n);
5923
5923
  },
5924
5924
  "PRIVATE"
5925
5925
  /* ComponentType.PRIVATE */
5926
5926
  ).setInstantiationMode(
5927
5927
  "EXPLICIT"
5928
5928
  /* InstantiationMode.EXPLICIT */
5929
- )), z(qt, Kt, ia(t)), z(qt, Kt, "esm2017");
5929
+ )), z(Kt, Gt, sa(t)), z(Kt, Gt, "esm2017");
5930
5930
  }
5931
5931
  /**
5932
5932
  * @license
@@ -5944,11 +5944,11 @@ function sa(t) {
5944
5944
  * See the License for the specific language governing permissions and
5945
5945
  * limitations under the License.
5946
5946
  */
5947
- const oa = 5 * 60, aa = hn("authIdTokenMaxAge") || oa;
5947
+ const aa = 5 * 60, ca = dn("authIdTokenMaxAge") || aa;
5948
5948
  let Jt = null;
5949
- const ca = (t) => async (e) => {
5949
+ const la = (t) => async (e) => {
5950
5950
  const n = e && await e.getIdTokenResult(), r = n && ((/* @__PURE__ */ new Date()).getTime() - Date.parse(n.issuedAtTime)) / 1e3;
5951
- if (r && r > aa)
5951
+ if (r && r > ca)
5952
5952
  return;
5953
5953
  const i = n == null ? void 0 : n.token;
5954
5954
  Jt !== i && (Jt = i, await fetch(t, {
@@ -5958,26 +5958,26 @@ const ca = (t) => async (e) => {
5958
5958
  } : {}
5959
5959
  }));
5960
5960
  };
5961
- function la(t = _n()) {
5961
+ function ua(t = gn()) {
5962
5962
  const e = ut(t, "auth");
5963
5963
  if (e.isInitialized())
5964
5964
  return e.getImmediate();
5965
- const n = Bs(t, {
5966
- popupRedirectResolver: na,
5965
+ const n = Fs(t, {
5966
+ popupRedirectResolver: ra,
5967
5967
  persistence: [
5968
- fo,
5969
- eo,
5970
- Gn
5968
+ po,
5969
+ to,
5970
+ zn
5971
5971
  ]
5972
- }), r = hn("authTokenSyncURL");
5972
+ }), r = dn("authTokenSyncURL");
5973
5973
  if (r) {
5974
- const s = ca(r);
5975
- Xs(n, s, () => s(n.currentUser)), Js(n, (o) => s(o));
5974
+ const s = la(r);
5975
+ Ys(n, s, () => s(n.currentUser)), Xs(n, (o) => s(o));
5976
5976
  }
5977
- const i = un("auth");
5978
- return i && $s(n, `http://${i}`), n;
5977
+ const i = ln("auth");
5978
+ return i && Hs(n, `http://${i}`), n;
5979
5979
  }
5980
- sa(
5980
+ oa(
5981
5981
  "Browser"
5982
5982
  /* ClientPlatform.BROWSER */
5983
5983
  );
@@ -5997,7 +5997,7 @@ sa(
5997
5997
  * See the License for the specific language governing permissions and
5998
5998
  * limitations under the License.
5999
5999
  */
6000
- const Qn = "firebasestorage.googleapis.com", er = "storageBucket", ua = 2 * 60 * 1e3, da = 10 * 60 * 1e3;
6000
+ const Qn = "firebasestorage.googleapis.com", Zn = "storageBucket", da = 2 * 60 * 1e3, ha = 10 * 60 * 1e3;
6001
6001
  /**
6002
6002
  * @license
6003
6003
  * Copyright 2017 Google LLC
@@ -6014,7 +6014,7 @@ const Qn = "firebasestorage.googleapis.com", er = "storageBucket", ua = 2 * 60 *
6014
6014
  * See the License for the specific language governing permissions and
6015
6015
  * limitations under the License.
6016
6016
  */
6017
- class m extends M {
6017
+ class g extends M {
6018
6018
  /**
6019
6019
  * @param code - A `StorageErrorCode` string to be prefixed with 'storage/' and
6020
6020
  * added to the end of the message.
@@ -6022,7 +6022,7 @@ class m extends M {
6022
6022
  * @param status_ - Corresponding HTTP Status Code
6023
6023
  */
6024
6024
  constructor(e, n, r = 0) {
6025
- super(Ze(e), `Firebase Storage: ${n} (${Ze(e)})`), this.status_ = r, this.customData = { serverResponse: null }, this._baseMessage = this.message, Object.setPrototypeOf(this, m.prototype);
6025
+ super(Qe(e), `Firebase Storage: ${n} (${Qe(e)})`), this.status_ = r, this.customData = { serverResponse: null }, this._baseMessage = this.message, Object.setPrototypeOf(this, g.prototype);
6026
6026
  }
6027
6027
  get status() {
6028
6028
  return this.status_;
@@ -6034,7 +6034,7 @@ class m extends M {
6034
6034
  * Compares a `StorageErrorCode` against this error's code, filtering out the prefix.
6035
6035
  */
6036
6036
  _codeEquals(e) {
6037
- return Ze(e) === this.code;
6037
+ return Qe(e) === this.code;
6038
6038
  }
6039
6039
  /**
6040
6040
  * Optional response message that was added by the server.
@@ -6047,71 +6047,71 @@ class m extends M {
6047
6047
  ${this.customData.serverResponse}` : this.message = this._baseMessage;
6048
6048
  }
6049
6049
  }
6050
- var g;
6050
+ var m;
6051
6051
  (function(t) {
6052
6052
  t.UNKNOWN = "unknown", t.OBJECT_NOT_FOUND = "object-not-found", t.BUCKET_NOT_FOUND = "bucket-not-found", t.PROJECT_NOT_FOUND = "project-not-found", t.QUOTA_EXCEEDED = "quota-exceeded", t.UNAUTHENTICATED = "unauthenticated", t.UNAUTHORIZED = "unauthorized", t.UNAUTHORIZED_APP = "unauthorized-app", t.RETRY_LIMIT_EXCEEDED = "retry-limit-exceeded", t.INVALID_CHECKSUM = "invalid-checksum", t.CANCELED = "canceled", t.INVALID_EVENT_NAME = "invalid-event-name", t.INVALID_URL = "invalid-url", t.INVALID_DEFAULT_BUCKET = "invalid-default-bucket", t.NO_DEFAULT_BUCKET = "no-default-bucket", t.CANNOT_SLICE_BLOB = "cannot-slice-blob", t.SERVER_FILE_WRONG_SIZE = "server-file-wrong-size", t.NO_DOWNLOAD_URL = "no-download-url", t.INVALID_ARGUMENT = "invalid-argument", t.INVALID_ARGUMENT_COUNT = "invalid-argument-count", t.APP_DELETED = "app-deleted", t.INVALID_ROOT_OPERATION = "invalid-root-operation", t.INVALID_FORMAT = "invalid-format", t.INTERNAL_ERROR = "internal-error", t.UNSUPPORTED_ENVIRONMENT = "unsupported-environment";
6053
- })(g || (g = {}));
6054
- function Ze(t) {
6053
+ })(m || (m = {}));
6054
+ function Qe(t) {
6055
6055
  return "storage/" + t;
6056
6056
  }
6057
6057
  function bt() {
6058
6058
  const t = "An unknown error occurred, please check the error payload for server response.";
6059
- return new m(g.UNKNOWN, t);
6060
- }
6061
- function ha(t) {
6062
- return new m(g.OBJECT_NOT_FOUND, "Object '" + t + "' does not exist.");
6059
+ return new g(m.UNKNOWN, t);
6063
6060
  }
6064
6061
  function fa(t) {
6065
- return new m(g.QUOTA_EXCEEDED, "Quota for bucket '" + t + "' exceeded, please view quota on https://firebase.google.com/pricing/.");
6062
+ return new g(m.OBJECT_NOT_FOUND, "Object '" + t + "' does not exist.");
6063
+ }
6064
+ function pa(t) {
6065
+ return new g(m.QUOTA_EXCEEDED, "Quota for bucket '" + t + "' exceeded, please view quota on https://firebase.google.com/pricing/.");
6066
6066
  }
6067
- function pa() {
6067
+ function ma() {
6068
6068
  const t = "User is not authenticated, please authenticate using Firebase Authentication and try again.";
6069
- return new m(g.UNAUTHENTICATED, t);
6069
+ return new g(m.UNAUTHENTICATED, t);
6070
6070
  }
6071
6071
  function ga() {
6072
- return new m(g.UNAUTHORIZED_APP, "This app does not have permission to access Firebase Storage on this project.");
6072
+ return new g(m.UNAUTHORIZED_APP, "This app does not have permission to access Firebase Storage on this project.");
6073
6073
  }
6074
- function ma(t) {
6075
- return new m(g.UNAUTHORIZED, "User does not have permission to access '" + t + "'.");
6076
- }
6077
- function _a() {
6078
- return new m(g.RETRY_LIMIT_EXCEEDED, "Max retry time for operation exceeded, please try again.");
6074
+ function _a(t) {
6075
+ return new g(m.UNAUTHORIZED, "User does not have permission to access '" + t + "'.");
6079
6076
  }
6080
6077
  function va() {
6081
- return new m(g.CANCELED, "User canceled the upload/download.");
6078
+ return new g(m.RETRY_LIMIT_EXCEEDED, "Max retry time for operation exceeded, please try again.");
6082
6079
  }
6083
- function ba(t) {
6084
- return new m(g.INVALID_URL, "Invalid URL '" + t + "'.");
6080
+ function ba() {
6081
+ return new g(m.CANCELED, "User canceled the upload/download.");
6085
6082
  }
6086
- function Ia(t) {
6087
- return new m(g.INVALID_DEFAULT_BUCKET, "Invalid default bucket '" + t + "'.");
6083
+ function ya(t) {
6084
+ return new g(m.INVALID_URL, "Invalid URL '" + t + "'.");
6088
6085
  }
6089
- function ya() {
6090
- return new m(g.NO_DEFAULT_BUCKET, "No default bucket found. Did you set the '" + er + "' property when initializing the app?");
6086
+ function Ia(t) {
6087
+ return new g(m.INVALID_DEFAULT_BUCKET, "Invalid default bucket '" + t + "'.");
6091
6088
  }
6092
6089
  function wa() {
6093
- return new m(g.CANNOT_SLICE_BLOB, "Cannot slice blob for upload. Please retry the upload.");
6090
+ return new g(m.NO_DEFAULT_BUCKET, "No default bucket found. Did you set the '" + Zn + "' property when initializing the app?");
6094
6091
  }
6095
6092
  function Ea() {
6096
- return new m(g.NO_DOWNLOAD_URL, "The given file does not have any download URLs.");
6093
+ return new g(m.CANNOT_SLICE_BLOB, "Cannot slice blob for upload. Please retry the upload.");
6097
6094
  }
6098
- function Ta(t) {
6099
- return new m(g.UNSUPPORTED_ENVIRONMENT, `${t} is missing. Make sure to install the required polyfills. See https://firebase.google.com/docs/web/environments-js-sdk#polyfills for more information.`);
6095
+ function Ta() {
6096
+ return new g(m.NO_DOWNLOAD_URL, "The given file does not have any download URLs.");
6097
+ }
6098
+ function Ra(t) {
6099
+ return new g(m.UNSUPPORTED_ENVIRONMENT, `${t} is missing. Make sure to install the required polyfills. See https://firebase.google.com/docs/web/environments-js-sdk#polyfills for more information.`);
6100
6100
  }
6101
6101
  function ct(t) {
6102
- return new m(g.INVALID_ARGUMENT, t);
6102
+ return new g(m.INVALID_ARGUMENT, t);
6103
6103
  }
6104
- function tr() {
6105
- return new m(g.APP_DELETED, "The Firebase app was deleted.");
6104
+ function er() {
6105
+ return new g(m.APP_DELETED, "The Firebase app was deleted.");
6106
6106
  }
6107
- function Ra(t) {
6108
- return new m(g.INVALID_ROOT_OPERATION, "The operation '" + t + "' cannot be performed on a root reference, create a non-root reference using child, such as .child('file.png').");
6107
+ function Aa(t) {
6108
+ return new g(m.INVALID_ROOT_OPERATION, "The operation '" + t + "' cannot be performed on a root reference, create a non-root reference using child, such as .child('file.png').");
6109
6109
  }
6110
6110
  function ue(t, e) {
6111
- return new m(g.INVALID_FORMAT, "String does not match format '" + t + "': " + e);
6111
+ return new g(m.INVALID_FORMAT, "String does not match format '" + t + "': " + e);
6112
6112
  }
6113
6113
  function ce(t) {
6114
- throw new m(g.INTERNAL_ERROR, "Internal error: " + t);
6114
+ throw new g(m.INTERNAL_ERROR, "Internal error: " + t);
6115
6115
  }
6116
6116
  /**
6117
6117
  * @license
@@ -6160,14 +6160,14 @@ class T {
6160
6160
  static makeFromUrl(e, n) {
6161
6161
  let r = null;
6162
6162
  const i = "([A-Za-z0-9.\\-_]+)";
6163
- function s(I) {
6164
- I.path.charAt(I.path.length - 1) === "/" && (I.path_ = I.path_.slice(0, -1));
6163
+ function s(y) {
6164
+ y.path.charAt(y.path.length - 1) === "/" && (y.path_ = y.path_.slice(0, -1));
6165
6165
  }
6166
6166
  const o = "(/(.*))?$", a = new RegExp("^gs://" + i + o, "i"), c = { bucket: 1, path: 3 };
6167
- function l(I) {
6168
- I.path_ = decodeURIComponent(I.path);
6167
+ function l(y) {
6168
+ y.path_ = decodeURIComponent(y.path);
6169
6169
  }
6170
- const u = "v[A-Za-z0-9_]+", h = n.replace(/[.]/g, "\\."), f = "(/([^?#]*).*)?$", _ = new RegExp(`^https?://${h}/${u}/b/${i}/o${f}`, "i"), b = { bucket: 1, path: 3 }, O = n === Qn ? "(?:storage.googleapis.com|storage.cloud.google.com)" : n, v = "([^?#]*)", P = new RegExp(`^https?://${O}/${i}/${v}`, "i"), E = [
6170
+ const u = "v[A-Za-z0-9_]+", h = n.replace(/[.]/g, "\\."), f = "(/([^?#]*).*)?$", _ = new RegExp(`^https?://${h}/${u}/b/${i}/o${f}`, "i"), b = { bucket: 1, path: 3 }, O = n === Qn ? "(?:storage.googleapis.com|storage.cloud.google.com)" : n, v = "([^?#]*)", N = new RegExp(`^https?://${O}/${i}/${v}`, "i"), E = [
6171
6171
  { regex: a, indices: c, postModify: s },
6172
6172
  {
6173
6173
  regex: _,
@@ -6175,26 +6175,26 @@ class T {
6175
6175
  postModify: l
6176
6176
  },
6177
6177
  {
6178
- regex: P,
6178
+ regex: N,
6179
6179
  indices: { bucket: 1, path: 2 },
6180
6180
  postModify: l
6181
6181
  }
6182
6182
  ];
6183
- for (let I = 0; I < E.length; I++) {
6184
- const G = E[I], q = G.regex.exec(e);
6185
- if (q) {
6186
- const Te = q[G.indices.bucket];
6187
- let ae = q[G.indices.path];
6188
- ae || (ae = ""), r = new T(Te, ae), G.postModify(r);
6183
+ for (let y = 0; y < E.length; y++) {
6184
+ const q = E[y], K = q.regex.exec(e);
6185
+ if (K) {
6186
+ const Te = K[q.indices.bucket];
6187
+ let ae = K[q.indices.path];
6188
+ ae || (ae = ""), r = new T(Te, ae), q.postModify(r);
6189
6189
  break;
6190
6190
  }
6191
6191
  }
6192
6192
  if (r == null)
6193
- throw ba(e);
6193
+ throw ya(e);
6194
6194
  return r;
6195
6195
  }
6196
6196
  }
6197
- class Aa {
6197
+ class ka {
6198
6198
  constructor(e) {
6199
6199
  this.promise_ = Promise.reject(e);
6200
6200
  }
@@ -6222,7 +6222,7 @@ class Aa {
6222
6222
  * See the License for the specific language governing permissions and
6223
6223
  * limitations under the License.
6224
6224
  */
6225
- function ka(t, e, n) {
6225
+ function Sa(t, e, n) {
6226
6226
  let r = 1, i = null, s = null, o = !1, a = 0;
6227
6227
  function c() {
6228
6228
  return a === 2;
@@ -6239,17 +6239,17 @@ function ka(t, e, n) {
6239
6239
  function f() {
6240
6240
  s && clearTimeout(s);
6241
6241
  }
6242
- function _(v, ...P) {
6242
+ function _(v, ...N) {
6243
6243
  if (l) {
6244
6244
  f();
6245
6245
  return;
6246
6246
  }
6247
6247
  if (v) {
6248
- f(), u.call(null, v, ...P);
6248
+ f(), u.call(null, v, ...N);
6249
6249
  return;
6250
6250
  }
6251
6251
  if (c() || o) {
6252
- f(), u.call(null, v, ...P);
6252
+ f(), u.call(null, v, ...N);
6253
6253
  return;
6254
6254
  }
6255
6255
  r < 64 && (r *= 2);
@@ -6264,7 +6264,7 @@ function ka(t, e, n) {
6264
6264
  o = !0, O(!0);
6265
6265
  }, n), O;
6266
6266
  }
6267
- function Sa(t) {
6267
+ function Ca(t) {
6268
6268
  t(!1);
6269
6269
  }
6270
6270
  /**
@@ -6283,20 +6283,20 @@ function Sa(t) {
6283
6283
  * See the License for the specific language governing permissions and
6284
6284
  * limitations under the License.
6285
6285
  */
6286
- function Ca(t) {
6286
+ function Oa(t) {
6287
6287
  return t !== void 0;
6288
6288
  }
6289
- function Oa(t) {
6289
+ function Na(t) {
6290
6290
  return typeof t == "object" && !Array.isArray(t);
6291
6291
  }
6292
- function It(t) {
6292
+ function yt(t) {
6293
6293
  return typeof t == "string" || t instanceof String;
6294
6294
  }
6295
6295
  function Xt(t) {
6296
- return yt() && t instanceof Blob;
6296
+ return It() && t instanceof Blob;
6297
6297
  }
6298
- function yt() {
6299
- return typeof Blob < "u" && !Hr();
6298
+ function It() {
6299
+ return typeof Blob < "u" && !jr();
6300
6300
  }
6301
6301
  function Yt(t, e, n, r) {
6302
6302
  if (r < e)
@@ -6324,7 +6324,7 @@ function Ee(t, e, n) {
6324
6324
  let r = e;
6325
6325
  return n == null && (r = `https://${e}`), `${n}://${r}/v0${t}`;
6326
6326
  }
6327
- function nr(t) {
6327
+ function tr(t) {
6328
6328
  const e = encodeURIComponent;
6329
6329
  let n = "?";
6330
6330
  for (const r in t)
@@ -6395,7 +6395,7 @@ function Pa(t, e) {
6395
6395
  * See the License for the specific language governing permissions and
6396
6396
  * limitations under the License.
6397
6397
  */
6398
- class Na {
6398
+ class Da {
6399
6399
  constructor(e, n, r, i, s, o, a, c, l, u, h, f = !0) {
6400
6400
  this.url_ = e, this.method_ = n, this.headers_ = r, this.body_ = i, this.successCodes_ = s, this.additionalRetryCodes_ = o, this.callback_ = a, this.errorCallback_ = c, this.timeout_ = l, this.progressCallback_ = u, this.connectionFactory_ = h, this.retry = f, this.pendingConnection_ = null, this.backoffId_ = null, this.canceled_ = !1, this.appDelete_ = !1, this.promise_ = new Promise((_, b) => {
6401
6401
  this.resolve_ = _, this.reject_ = b, this.start_();
@@ -6432,7 +6432,7 @@ class Na {
6432
6432
  if (i.wasSuccessCode)
6433
6433
  try {
6434
6434
  const c = this.callback_(a, a.getResponse());
6435
- Ca(c) ? s(c) : s();
6435
+ Oa(c) ? s(c) : s();
6436
6436
  } catch (c) {
6437
6437
  o(c);
6438
6438
  }
@@ -6440,14 +6440,14 @@ class Na {
6440
6440
  const c = bt();
6441
6441
  c.serverResponse = a.getErrorText(), this.errorCallback_ ? o(this.errorCallback_(a, c)) : o(c);
6442
6442
  } else if (i.canceled) {
6443
- const c = this.appDelete_ ? tr() : va();
6443
+ const c = this.appDelete_ ? er() : ba();
6444
6444
  o(c);
6445
6445
  } else {
6446
- const c = _a();
6446
+ const c = va();
6447
6447
  o(c);
6448
6448
  }
6449
6449
  };
6450
- this.canceled_ ? n(!1, new Ae(!1, null, !0)) : this.backoffId_ = ka(e, n, this.timeout_);
6450
+ this.canceled_ ? n(!1, new Ae(!1, null, !0)) : this.backoffId_ = Sa(e, n, this.timeout_);
6451
6451
  }
6452
6452
  /** @inheritDoc */
6453
6453
  getPromise() {
@@ -6455,7 +6455,7 @@ class Na {
6455
6455
  }
6456
6456
  /** @inheritDoc */
6457
6457
  cancel(e) {
6458
- this.canceled_ = !0, this.appDelete_ = e || !1, this.backoffId_ !== null && Sa(this.backoffId_), this.pendingConnection_ !== null && this.pendingConnection_.abort();
6458
+ this.canceled_ = !0, this.appDelete_ = e || !1, this.backoffId_ !== null && Ca(this.backoffId_), this.pendingConnection_ !== null && this.pendingConnection_.abort();
6459
6459
  }
6460
6460
  }
6461
6461
  class Ae {
@@ -6463,21 +6463,21 @@ class Ae {
6463
6463
  this.wasSuccessCode = e, this.connection = n, this.canceled = !!r;
6464
6464
  }
6465
6465
  }
6466
- function Da(t, e) {
6466
+ function Ua(t, e) {
6467
6467
  e !== null && e.length > 0 && (t.Authorization = "Firebase " + e);
6468
6468
  }
6469
- function Ua(t, e) {
6469
+ function La(t, e) {
6470
6470
  t["X-Firebase-Storage-Version"] = "webjs/" + (e ?? "AppManager");
6471
6471
  }
6472
- function La(t, e) {
6472
+ function Ma(t, e) {
6473
6473
  e && (t["X-Firebase-GMPID"] = e);
6474
6474
  }
6475
- function Ma(t, e) {
6475
+ function xa(t, e) {
6476
6476
  e !== null && (t["X-Firebase-AppCheck"] = e);
6477
6477
  }
6478
- function xa(t, e, n, r, i, s, o = !0) {
6479
- const a = nr(t.urlParams), c = t.url + a, l = Object.assign({}, t.headers);
6480
- return La(l, e), Da(l, n), Ua(l, s), Ma(l, r), new Na(c, t.method, l, t.body, t.successCodes, t.additionalRetryCodes, t.handler, t.errorHandler, t.timeout, t.progressCallback, i, o);
6478
+ function Ba(t, e, n, r, i, s, o = !0) {
6479
+ const a = tr(t.urlParams), c = t.url + a, l = Object.assign({}, t.headers);
6480
+ return Ma(l, e), Ua(l, n), La(l, s), xa(l, r), new Da(c, t.method, l, t.body, t.successCodes, t.additionalRetryCodes, t.handler, t.errorHandler, t.timeout, t.progressCallback, i, o);
6481
6481
  }
6482
6482
  /**
6483
6483
  * @license
@@ -6495,23 +6495,23 @@ function xa(t, e, n, r, i, s, o = !0) {
6495
6495
  * See the License for the specific language governing permissions and
6496
6496
  * limitations under the License.
6497
6497
  */
6498
- function Ba() {
6498
+ function Fa() {
6499
6499
  return typeof BlobBuilder < "u" ? BlobBuilder : typeof WebKitBlobBuilder < "u" ? WebKitBlobBuilder : void 0;
6500
6500
  }
6501
- function Fa(...t) {
6502
- const e = Ba();
6501
+ function $a(...t) {
6502
+ const e = Fa();
6503
6503
  if (e !== void 0) {
6504
6504
  const n = new e();
6505
6505
  for (let r = 0; r < t.length; r++)
6506
6506
  n.append(t[r]);
6507
6507
  return n.getBlob();
6508
6508
  } else {
6509
- if (yt())
6509
+ if (It())
6510
6510
  return new Blob(t);
6511
- throw new m(g.UNSUPPORTED_ENVIRONMENT, "This browser doesn't seem to support creating Blobs");
6511
+ throw new g(m.UNSUPPORTED_ENVIRONMENT, "This browser doesn't seem to support creating Blobs");
6512
6512
  }
6513
6513
  }
6514
- function $a(t, e, n) {
6514
+ function Ha(t, e, n) {
6515
6515
  return t.webkitSlice ? t.webkitSlice(e, n) : t.mozSlice ? t.mozSlice(e, n) : t.slice ? t.slice(e, n) : null;
6516
6516
  }
6517
6517
  /**
@@ -6530,9 +6530,9 @@ function $a(t, e, n) {
6530
6530
  * See the License for the specific language governing permissions and
6531
6531
  * limitations under the License.
6532
6532
  */
6533
- function Ha(t) {
6533
+ function ja(t) {
6534
6534
  if (typeof atob > "u")
6535
- throw Ta("base-64");
6535
+ throw Ra("base-64");
6536
6536
  return atob(t);
6537
6537
  }
6538
6538
  /**
@@ -6585,24 +6585,24 @@ const k = {
6585
6585
  */
6586
6586
  DATA_URL: "data_url"
6587
6587
  };
6588
- class Qe {
6588
+ class Ze {
6589
6589
  constructor(e, n) {
6590
6590
  this.data = e, this.contentType = n || null;
6591
6591
  }
6592
6592
  }
6593
- function ja(t, e) {
6593
+ function Va(t, e) {
6594
6594
  switch (t) {
6595
6595
  case k.RAW:
6596
- return new Qe(rr(e));
6596
+ return new Ze(nr(e));
6597
6597
  case k.BASE64:
6598
6598
  case k.BASE64URL:
6599
- return new Qe(ir(t, e));
6599
+ return new Ze(rr(t, e));
6600
6600
  case k.DATA_URL:
6601
- return new Qe(Wa(e), za(e));
6601
+ return new Ze(za(e), qa(e));
6602
6602
  }
6603
6603
  throw bt();
6604
6604
  }
6605
- function rr(t) {
6605
+ function nr(t) {
6606
6606
  const e = [];
6607
6607
  for (let n = 0; n < t.length; n++) {
6608
6608
  let r = t.charCodeAt(n);
@@ -6622,16 +6622,16 @@ function rr(t) {
6622
6622
  }
6623
6623
  return new Uint8Array(e);
6624
6624
  }
6625
- function Va(t) {
6625
+ function Wa(t) {
6626
6626
  let e;
6627
6627
  try {
6628
6628
  e = decodeURIComponent(t);
6629
6629
  } catch {
6630
6630
  throw ue(k.DATA_URL, "Malformed data URL.");
6631
6631
  }
6632
- return rr(e);
6632
+ return nr(e);
6633
6633
  }
6634
- function ir(t, e) {
6634
+ function rr(t, e) {
6635
6635
  switch (t) {
6636
6636
  case k.BASE64: {
6637
6637
  const i = e.indexOf("-") !== -1, s = e.indexOf("_") !== -1;
@@ -6649,7 +6649,7 @@ function ir(t, e) {
6649
6649
  }
6650
6650
  let n;
6651
6651
  try {
6652
- n = Ha(e);
6652
+ n = ja(e);
6653
6653
  } catch (i) {
6654
6654
  throw i.message.includes("polyfill") ? i : ue(t, "Invalid character found");
6655
6655
  }
@@ -6658,24 +6658,24 @@ function ir(t, e) {
6658
6658
  r[i] = n.charCodeAt(i);
6659
6659
  return r;
6660
6660
  }
6661
- class sr {
6661
+ class ir {
6662
6662
  constructor(e) {
6663
6663
  this.base64 = !1, this.contentType = null;
6664
6664
  const n = e.match(/^data:([^,]+)?,/);
6665
6665
  if (n === null)
6666
6666
  throw ue(k.DATA_URL, "Must be formatted 'data:[<mediatype>][;base64],<data>");
6667
6667
  const r = n[1] || null;
6668
- r != null && (this.base64 = Ga(r, ";base64"), this.contentType = this.base64 ? r.substring(0, r.length - 7) : r), this.rest = e.substring(e.indexOf(",") + 1);
6668
+ r != null && (this.base64 = Ka(r, ";base64"), this.contentType = this.base64 ? r.substring(0, r.length - 7) : r), this.rest = e.substring(e.indexOf(",") + 1);
6669
6669
  }
6670
6670
  }
6671
- function Wa(t) {
6672
- const e = new sr(t);
6673
- return e.base64 ? ir(k.BASE64, e.rest) : Va(e.rest);
6674
- }
6675
6671
  function za(t) {
6676
- return new sr(t).contentType;
6672
+ const e = new ir(t);
6673
+ return e.base64 ? rr(k.BASE64, e.rest) : Wa(e.rest);
6677
6674
  }
6678
- function Ga(t, e) {
6675
+ function qa(t) {
6676
+ return new ir(t).contentType;
6677
+ }
6678
+ function Ka(t, e) {
6679
6679
  return t.length >= e.length ? t.substring(t.length - e.length) === e : !1;
6680
6680
  }
6681
6681
  /**
@@ -6707,7 +6707,7 @@ class j {
6707
6707
  }
6708
6708
  slice(e, n) {
6709
6709
  if (Xt(this.data_)) {
6710
- const r = this.data_, i = $a(r, e, n);
6710
+ const r = this.data_, i = Ha(r, e, n);
6711
6711
  return i === null ? null : new j(i);
6712
6712
  } else {
6713
6713
  const r = new Uint8Array(this.data_.buffer, e, n - e);
@@ -6715,11 +6715,11 @@ class j {
6715
6715
  }
6716
6716
  }
6717
6717
  static getBlob(...e) {
6718
- if (yt()) {
6718
+ if (It()) {
6719
6719
  const n = e.map((r) => r instanceof j ? r.data_ : r);
6720
- return new j(Fa.apply(null, n));
6720
+ return new j($a.apply(null, n));
6721
6721
  } else {
6722
- const n = e.map((o) => It(o) ? ja(k.RAW, o).data : o.data_);
6722
+ const n = e.map((o) => yt(o) ? Va(k.RAW, o).data : o.data_);
6723
6723
  let r = 0;
6724
6724
  n.forEach((o) => {
6725
6725
  r += o.byteLength;
@@ -6752,14 +6752,14 @@ class j {
6752
6752
  * See the License for the specific language governing permissions and
6753
6753
  * limitations under the License.
6754
6754
  */
6755
- function or(t) {
6755
+ function sr(t) {
6756
6756
  let e;
6757
6757
  try {
6758
6758
  e = JSON.parse(t);
6759
6759
  } catch {
6760
6760
  return null;
6761
6761
  }
6762
- return Oa(e) ? e : null;
6762
+ return Na(e) ? e : null;
6763
6763
  }
6764
6764
  /**
6765
6765
  * @license
@@ -6777,17 +6777,17 @@ function or(t) {
6777
6777
  * See the License for the specific language governing permissions and
6778
6778
  * limitations under the License.
6779
6779
  */
6780
- function qa(t) {
6780
+ function Ga(t) {
6781
6781
  if (t.length === 0)
6782
6782
  return null;
6783
6783
  const e = t.lastIndexOf("/");
6784
6784
  return e === -1 ? "" : t.slice(0, e);
6785
6785
  }
6786
- function Ka(t, e) {
6786
+ function Ja(t, e) {
6787
6787
  const n = e.split("/").filter((r) => r.length > 0).join("/");
6788
6788
  return t.length === 0 ? n : t + "/" + n;
6789
6789
  }
6790
- function ar(t) {
6790
+ function or(t) {
6791
6791
  const e = t.lastIndexOf("/", t.length - 2);
6792
6792
  return e === -1 ? t : t.slice(e + 1);
6793
6793
  }
@@ -6807,25 +6807,25 @@ function ar(t) {
6807
6807
  * See the License for the specific language governing permissions and
6808
6808
  * limitations under the License.
6809
6809
  */
6810
- function Ja(t, e) {
6810
+ function Xa(t, e) {
6811
6811
  return e;
6812
6812
  }
6813
6813
  class w {
6814
6814
  constructor(e, n, r, i) {
6815
- this.server = e, this.local = n || e, this.writable = !!r, this.xform = i || Ja;
6815
+ this.server = e, this.local = n || e, this.writable = !!r, this.xform = i || Xa;
6816
6816
  }
6817
6817
  }
6818
6818
  let ke = null;
6819
- function Xa(t) {
6820
- return !It(t) || t.length < 2 ? t : ar(t);
6819
+ function Ya(t) {
6820
+ return !yt(t) || t.length < 2 ? t : or(t);
6821
6821
  }
6822
- function cr() {
6822
+ function ar() {
6823
6823
  if (ke)
6824
6824
  return ke;
6825
6825
  const t = [];
6826
6826
  t.push(new w("bucket")), t.push(new w("generation")), t.push(new w("metageneration")), t.push(new w("name", "fullPath", !0));
6827
6827
  function e(s, o) {
6828
- return Xa(o);
6828
+ return Ya(o);
6829
6829
  }
6830
6830
  const n = new w("name");
6831
6831
  n.xform = e, t.push(n);
@@ -6835,7 +6835,7 @@ function cr() {
6835
6835
  const i = new w("size");
6836
6836
  return i.xform = r, t.push(i), t.push(new w("timeCreated")), t.push(new w("updated")), t.push(new w("md5Hash", null, !0)), t.push(new w("cacheControl", null, !0)), t.push(new w("contentDisposition", null, !0)), t.push(new w("contentEncoding", null, !0)), t.push(new w("contentLanguage", null, !0)), t.push(new w("contentType", null, !0)), t.push(new w("metadata", "customMetadata", !0)), ke = t, ke;
6837
6837
  }
6838
- function Ya(t, e) {
6838
+ function Qa(t, e) {
6839
6839
  function n() {
6840
6840
  const r = t.bucket, i = t.fullPath, s = new T(r, i);
6841
6841
  return e._makeStorageReference(s);
@@ -6850,29 +6850,29 @@ function Za(t, e, n) {
6850
6850
  const o = n[s];
6851
6851
  r[o.local] = o.xform(r, e[o.server]);
6852
6852
  }
6853
- return Ya(r, t), r;
6853
+ return Qa(r, t), r;
6854
6854
  }
6855
- function lr(t, e, n) {
6856
- const r = or(e);
6855
+ function cr(t, e, n) {
6856
+ const r = sr(e);
6857
6857
  return r === null ? null : Za(t, r, n);
6858
6858
  }
6859
- function Qa(t, e, n, r) {
6860
- const i = or(e);
6861
- if (i === null || !It(i.downloadTokens))
6859
+ function ec(t, e, n, r) {
6860
+ const i = sr(e);
6861
+ if (i === null || !yt(i.downloadTokens))
6862
6862
  return null;
6863
6863
  const s = i.downloadTokens;
6864
6864
  if (s.length === 0)
6865
6865
  return null;
6866
6866
  const o = encodeURIComponent;
6867
6867
  return s.split(",").map((l) => {
6868
- const u = t.bucket, h = t.fullPath, f = "/b/" + o(u) + "/o/" + o(h), _ = Ee(f, n, r), b = nr({
6868
+ const u = t.bucket, h = t.fullPath, f = "/b/" + o(u) + "/o/" + o(h), _ = Ee(f, n, r), b = tr({
6869
6869
  alt: "media",
6870
6870
  token: l
6871
6871
  });
6872
6872
  return _ + b;
6873
6873
  })[0];
6874
6874
  }
6875
- function ec(t, e) {
6875
+ function tc(t, e) {
6876
6876
  const n = {}, r = e.length;
6877
6877
  for (let i = 0; i < r; i++) {
6878
6878
  const s = e[i];
@@ -6901,40 +6901,40 @@ class Ve {
6901
6901
  * See the License for the specific language governing permissions and
6902
6902
  * limitations under the License.
6903
6903
  */
6904
- function ur(t) {
6904
+ function lr(t) {
6905
6905
  if (!t)
6906
6906
  throw bt();
6907
6907
  }
6908
- function tc(t, e) {
6908
+ function nc(t, e) {
6909
6909
  function n(r, i) {
6910
- const s = lr(t, i, e);
6911
- return ur(s !== null), s;
6910
+ const s = cr(t, i, e);
6911
+ return lr(s !== null), s;
6912
6912
  }
6913
6913
  return n;
6914
6914
  }
6915
- function nc(t, e) {
6915
+ function rc(t, e) {
6916
6916
  function n(r, i) {
6917
- const s = lr(t, i, e);
6918
- return ur(s !== null), Qa(s, i, t.host, t._protocol);
6917
+ const s = cr(t, i, e);
6918
+ return lr(s !== null), ec(s, i, t.host, t._protocol);
6919
6919
  }
6920
6920
  return n;
6921
6921
  }
6922
- function dr(t) {
6922
+ function ur(t) {
6923
6923
  function e(n, r) {
6924
6924
  let i;
6925
- return n.getStatus() === 401 ? /* This exact message string is the only consistent part of the */ /* server's error response that identifies it as an App Check error. */ n.getErrorText().includes("Firebase App Check token is invalid") ? i = ga() : i = pa() : n.getStatus() === 402 ? i = fa(t.bucket) : n.getStatus() === 403 ? i = ma(t.path) : i = r, i.status = n.getStatus(), i.serverResponse = r.serverResponse, i;
6925
+ return n.getStatus() === 401 ? /* This exact message string is the only consistent part of the */ /* server's error response that identifies it as an App Check error. */ n.getErrorText().includes("Firebase App Check token is invalid") ? i = ga() : i = ma() : n.getStatus() === 402 ? i = pa(t.bucket) : n.getStatus() === 403 ? i = _a(t.path) : i = r, i.status = n.getStatus(), i.serverResponse = r.serverResponse, i;
6926
6926
  }
6927
6927
  return e;
6928
6928
  }
6929
6929
  function wt(t) {
6930
- const e = dr(t);
6930
+ const e = ur(t);
6931
6931
  function n(r, i) {
6932
6932
  let s = e(r, i);
6933
- return r.getStatus() === 404 && (s = ha(t.path)), s.serverResponse = i.serverResponse, s;
6933
+ return r.getStatus() === 404 && (s = fa(t.path)), s.serverResponse = i.serverResponse, s;
6934
6934
  }
6935
6935
  return n;
6936
6936
  }
6937
- function rc(t, e, n) {
6937
+ function ic(t, e, n) {
6938
6938
  const r = e.fullServerUrl(), i = Ee(r, t.host, t._protocol) + "?alt=media", s = "GET", o = t.maxOperationRetryTime, a = new Ve(i, s, (c, l) => l, o);
6939
6939
  return a.errorHandler = wt(e), n !== void 0 && (a.headers.Range = `bytes=0-${n}`, a.successCodes = [
6940
6940
  200,
@@ -6942,37 +6942,37 @@ function rc(t, e, n) {
6942
6942
  /* Partial Content */
6943
6943
  ]), a;
6944
6944
  }
6945
- function ic(t, e, n) {
6946
- const r = e.fullServerUrl(), i = Ee(r, t.host, t._protocol), s = "GET", o = t.maxOperationRetryTime, a = new Ve(i, s, nc(t, n), o);
6945
+ function sc(t, e, n) {
6946
+ const r = e.fullServerUrl(), i = Ee(r, t.host, t._protocol), s = "GET", o = t.maxOperationRetryTime, a = new Ve(i, s, rc(t, n), o);
6947
6947
  return a.errorHandler = wt(e), a;
6948
6948
  }
6949
- function sc(t, e) {
6949
+ function oc(t, e) {
6950
6950
  const n = e.fullServerUrl(), r = Ee(n, t.host, t._protocol), i = "DELETE", s = t.maxOperationRetryTime;
6951
6951
  function o(c, l) {
6952
6952
  }
6953
6953
  const a = new Ve(r, i, o, s);
6954
6954
  return a.successCodes = [200, 204], a.errorHandler = wt(e), a;
6955
6955
  }
6956
- function oc(t, e) {
6956
+ function ac(t, e) {
6957
6957
  return t && t.contentType || e && e.type() || "application/octet-stream";
6958
6958
  }
6959
- function ac(t, e, n) {
6959
+ function cc(t, e, n) {
6960
6960
  const r = Object.assign({}, n);
6961
- return r.fullPath = t.path, r.size = e.size(), r.contentType || (r.contentType = oc(null, e)), r;
6961
+ return r.fullPath = t.path, r.size = e.size(), r.contentType || (r.contentType = ac(null, e)), r;
6962
6962
  }
6963
- function cc(t, e, n, r, i) {
6963
+ function lc(t, e, n, r, i) {
6964
6964
  const s = e.bucketOnlyServerUrl(), o = {
6965
6965
  "X-Goog-Upload-Protocol": "multipart"
6966
6966
  };
6967
6967
  function a() {
6968
6968
  let E = "";
6969
- for (let I = 0; I < 2; I++)
6969
+ for (let y = 0; y < 2; y++)
6970
6970
  E = E + Math.random().toString().slice(2);
6971
6971
  return E;
6972
6972
  }
6973
6973
  const c = a();
6974
6974
  o["Content-Type"] = "multipart/related; boundary=" + c;
6975
- const l = ac(e, r, i), u = ec(l, n), h = "--" + c + `\r
6975
+ const l = cc(e, r, i), u = tc(l, n), h = "--" + c + `\r
6976
6976
  Content-Type: application/json; charset=utf-8\r
6977
6977
  \r
6978
6978
  ` + u + `\r
@@ -6982,11 +6982,11 @@ Content-Type: ` + l.contentType + `\r
6982
6982
  `, f = `\r
6983
6983
  --` + c + "--", _ = j.getBlob(h, r, f);
6984
6984
  if (_ === null)
6985
- throw wa();
6986
- const b = { name: l.fullPath }, O = Ee(s, t.host, t._protocol), v = "POST", P = t.maxUploadRetryTime, A = new Ve(O, v, tc(t, n), P);
6987
- return A.urlParams = b, A.headers = o, A.body = _.uploadData(), A.errorHandler = dr(e), A;
6985
+ throw Ea();
6986
+ const b = { name: l.fullPath }, O = Ee(s, t.host, t._protocol), v = "POST", N = t.maxUploadRetryTime, A = new Ve(O, v, nc(t, n), N);
6987
+ return A.urlParams = b, A.headers = o, A.body = _.uploadData(), A.errorHandler = ur(e), A;
6988
6988
  }
6989
- class hr {
6989
+ class dr {
6990
6990
  constructor() {
6991
6991
  this.sent_ = !1, this.xhr_ = new XMLHttpRequest(), this.initXhr(), this.errorCode_ = X.NO_ERROR, this.sendPromise_ = new Promise((e) => {
6992
6992
  this.xhr_.addEventListener("abort", () => {
@@ -7044,21 +7044,21 @@ class hr {
7044
7044
  this.xhr_.upload != null && this.xhr_.upload.removeEventListener("progress", e);
7045
7045
  }
7046
7046
  }
7047
- class lc extends hr {
7047
+ class uc extends dr {
7048
7048
  initXhr() {
7049
7049
  this.xhr_.responseType = "text";
7050
7050
  }
7051
7051
  }
7052
7052
  function Et() {
7053
- return new lc();
7053
+ return new uc();
7054
7054
  }
7055
- class uc extends hr {
7055
+ class dc extends dr {
7056
7056
  initXhr() {
7057
7057
  this.xhr_.responseType = "blob";
7058
7058
  }
7059
7059
  }
7060
- function dc() {
7061
- return new uc();
7060
+ function hc() {
7061
+ return new dc();
7062
7062
  }
7063
7063
  /**
7064
7064
  * @license
@@ -7115,7 +7115,7 @@ class te {
7115
7115
  * For example, if fullPath is 'full/path/image.png', name is 'image.png'.
7116
7116
  */
7117
7117
  get name() {
7118
- return ar(this._location.path);
7118
+ return or(this._location.path);
7119
7119
  }
7120
7120
  /**
7121
7121
  * The `StorageService` instance this `StorageReference` is associated with.
@@ -7128,7 +7128,7 @@ class te {
7128
7128
  * this reference is the root.
7129
7129
  */
7130
7130
  get parent() {
7131
- const e = qa(this._location.path);
7131
+ const e = Ga(this._location.path);
7132
7132
  if (e === null)
7133
7133
  return null;
7134
7134
  const n = new T(this._location.bucket, e);
@@ -7139,41 +7139,41 @@ class te {
7139
7139
  */
7140
7140
  _throwIfRoot(e) {
7141
7141
  if (this._location.path === "")
7142
- throw Ra(e);
7142
+ throw Aa(e);
7143
7143
  }
7144
7144
  }
7145
- function hc(t, e) {
7145
+ function fc(t, e) {
7146
7146
  t._throwIfRoot("getBlob");
7147
- const n = rc(t.storage, t._location, e);
7148
- return t.storage.makeRequestWithTokens(n, dc).then((r) => e !== void 0 ? (
7147
+ const n = ic(t.storage, t._location, e);
7148
+ return t.storage.makeRequestWithTokens(n, hc).then((r) => e !== void 0 ? (
7149
7149
  // GCS may not honor the Range header for small files
7150
7150
  r.slice(0, e)
7151
7151
  ) : r);
7152
7152
  }
7153
- function fc(t, e, n) {
7153
+ function pc(t, e, n) {
7154
7154
  t._throwIfRoot("uploadBytes");
7155
- const r = cc(t.storage, t._location, cr(), new j(e, !0), n);
7155
+ const r = lc(t.storage, t._location, ar(), new j(e, !0), n);
7156
7156
  return t.storage.makeRequestWithTokens(r, Et).then((i) => ({
7157
7157
  metadata: i,
7158
7158
  ref: t
7159
7159
  }));
7160
7160
  }
7161
- function pc(t) {
7161
+ function mc(t) {
7162
7162
  t._throwIfRoot("getDownloadURL");
7163
- const e = ic(t.storage, t._location, cr());
7163
+ const e = sc(t.storage, t._location, ar());
7164
7164
  return t.storage.makeRequestWithTokens(e, Et).then((n) => {
7165
7165
  if (n === null)
7166
- throw Ea();
7166
+ throw Ta();
7167
7167
  return n;
7168
7168
  });
7169
7169
  }
7170
7170
  function gc(t) {
7171
7171
  t._throwIfRoot("deleteObject");
7172
- const e = sc(t.storage, t._location);
7172
+ const e = oc(t.storage, t._location);
7173
7173
  return t.storage.makeRequestWithTokens(e, Et);
7174
7174
  }
7175
- function mc(t, e) {
7176
- const n = Ka(t._location.path, e), r = new T(t._location.bucket, n);
7175
+ function _c(t, e) {
7176
+ const n = Ja(t._location.path, e), r = new T(t._location.bucket, n);
7177
7177
  return new te(t.storage, r);
7178
7178
  }
7179
7179
  /**
@@ -7192,42 +7192,42 @@ function mc(t, e) {
7192
7192
  * See the License for the specific language governing permissions and
7193
7193
  * limitations under the License.
7194
7194
  */
7195
- function _c(t) {
7195
+ function vc(t) {
7196
7196
  return /^[A-Za-z]+:\/\//.test(t);
7197
7197
  }
7198
- function vc(t, e) {
7198
+ function bc(t, e) {
7199
7199
  return new te(t, e);
7200
7200
  }
7201
- function fr(t, e) {
7201
+ function hr(t, e) {
7202
7202
  if (t instanceof Tt) {
7203
7203
  const n = t;
7204
7204
  if (n._bucket == null)
7205
- throw ya();
7205
+ throw wa();
7206
7206
  const r = new te(n, n._bucket);
7207
- return e != null ? fr(r, e) : r;
7207
+ return e != null ? hr(r, e) : r;
7208
7208
  } else
7209
- return e !== void 0 ? mc(t, e) : t;
7209
+ return e !== void 0 ? _c(t, e) : t;
7210
7210
  }
7211
- function bc(t, e) {
7212
- if (e && _c(e)) {
7211
+ function yc(t, e) {
7212
+ if (e && vc(e)) {
7213
7213
  if (t instanceof Tt)
7214
- return vc(t, e);
7214
+ return bc(t, e);
7215
7215
  throw ct("To use ref(service, url), the first argument must be a Storage instance.");
7216
7216
  } else
7217
- return fr(t, e);
7217
+ return hr(t, e);
7218
7218
  }
7219
- function Zt(t, e) {
7220
- const n = e == null ? void 0 : e[er];
7219
+ function Qt(t, e) {
7220
+ const n = e == null ? void 0 : e[Zn];
7221
7221
  return n == null ? null : T.makeFromBucketSpec(n, t);
7222
7222
  }
7223
7223
  function Ic(t, e, n, r = {}) {
7224
7224
  t.host = `${e}:${n}`, t._protocol = "http";
7225
7225
  const { mockUserToken: i } = r;
7226
- i && (t._overrideAuthToken = typeof i == "string" ? i : Fr(i, t.app.options.projectId));
7226
+ i && (t._overrideAuthToken = typeof i == "string" ? i : $r(i, t.app.options.projectId));
7227
7227
  }
7228
7228
  class Tt {
7229
7229
  constructor(e, n, r, i, s) {
7230
- this.app = e, this._authProvider = n, this._appCheckProvider = r, this._url = i, this._firebaseVersion = s, this._bucket = null, this._host = Qn, this._protocol = "https", this._appId = null, this._deleted = !1, this._maxOperationRetryTime = ua, this._maxUploadRetryTime = da, this._requests = /* @__PURE__ */ new Set(), i != null ? this._bucket = T.makeFromBucketSpec(i, this._host) : this._bucket = Zt(this._host, this.app.options);
7230
+ this.app = e, this._authProvider = n, this._appCheckProvider = r, this._url = i, this._firebaseVersion = s, this._bucket = null, this._host = Qn, this._protocol = "https", this._appId = null, this._deleted = !1, this._maxOperationRetryTime = da, this._maxUploadRetryTime = ha, this._requests = /* @__PURE__ */ new Set(), i != null ? this._bucket = T.makeFromBucketSpec(i, this._host) : this._bucket = Qt(this._host, this.app.options);
7231
7231
  }
7232
7232
  /**
7233
7233
  * The host string for this service, in the form of `host` or
@@ -7237,7 +7237,7 @@ class Tt {
7237
7237
  return this._host;
7238
7238
  }
7239
7239
  set host(e) {
7240
- this._host = e, this._url != null ? this._bucket = T.makeFromBucketSpec(this._url, e) : this._bucket = Zt(e, this.app.options);
7240
+ this._host = e, this._url != null ? this._bucket = T.makeFromBucketSpec(this._url, e) : this._bucket = Qt(e, this.app.options);
7241
7241
  }
7242
7242
  /**
7243
7243
  * The maximum time to retry uploads in milliseconds.
@@ -7306,9 +7306,9 @@ class Tt {
7306
7306
  */
7307
7307
  _makeRequest(e, n, r, i, s = !0) {
7308
7308
  if (this._deleted)
7309
- return new Aa(tr());
7309
+ return new ka(er());
7310
7310
  {
7311
- const o = xa(e, this._appId, r, i, n, this._firebaseVersion, s);
7311
+ const o = Ba(e, this._appId, r, i, n, this._firebaseVersion, s);
7312
7312
  return this._requests.add(o), o.getPromise().then(() => this._requests.delete(o), () => this._requests.delete(o)), o;
7313
7313
  }
7314
7314
  }
@@ -7320,7 +7320,7 @@ class Tt {
7320
7320
  return this._makeRequest(e, n, r, i).getPromise();
7321
7321
  }
7322
7322
  }
7323
- const Qt = "@firebase/storage", en = "0.11.2";
7323
+ const Zt = "@firebase/storage", en = "0.11.2";
7324
7324
  /**
7325
7325
  * @license
7326
7326
  * Copyright 2020 Google LLC
@@ -7337,27 +7337,27 @@ const Qt = "@firebase/storage", en = "0.11.2";
7337
7337
  * See the License for the specific language governing permissions and
7338
7338
  * limitations under the License.
7339
7339
  */
7340
- const pr = "storage";
7341
- function Bc(t, e, n) {
7342
- return t = R(t), fc(t, e, n);
7340
+ const fr = "storage";
7341
+ function Vc(t, e, n) {
7342
+ return t = R(t), pc(t, e, n);
7343
7343
  }
7344
- function Fc(t) {
7345
- return t = R(t), pc(t);
7344
+ function Wc(t) {
7345
+ return t = R(t), mc(t);
7346
7346
  }
7347
- function $c(t) {
7347
+ function zc(t) {
7348
7348
  return t = R(t), gc(t);
7349
7349
  }
7350
- function Hc(t, e) {
7351
- return t = R(t), bc(t, e);
7350
+ function qc(t, e) {
7351
+ return t = R(t), yc(t, e);
7352
7352
  }
7353
- function yc(t = _n(), e) {
7353
+ function wc(t = gn(), e) {
7354
7354
  t = R(t);
7355
- const r = ut(t, pr).getImmediate({
7355
+ const r = ut(t, fr).getImmediate({
7356
7356
  identifier: e
7357
- }), i = xr("storage");
7358
- return i && wc(r, ...i), r;
7357
+ }), i = Br("storage");
7358
+ return i && Ec(r, ...i), r;
7359
7359
  }
7360
- function wc(t, e, n, r = {}) {
7360
+ function Ec(t, e, n, r = {}) {
7361
7361
  Ic(t, e, n, r);
7362
7362
  }
7363
7363
  /**
@@ -7376,23 +7376,579 @@ function wc(t, e, n, r = {}) {
7376
7376
  * See the License for the specific language governing permissions and
7377
7377
  * limitations under the License.
7378
7378
  */
7379
- function jc(t, e) {
7380
- return t = R(t), hc(t, e);
7379
+ function Kc(t, e) {
7380
+ return t = R(t), fc(t, e);
7381
7381
  }
7382
- function Ec(t, { instanceIdentifier: e }) {
7382
+ function Tc(t, { instanceIdentifier: e }) {
7383
7383
  const n = t.getProvider("app").getImmediate(), r = t.getProvider("auth-internal"), i = t.getProvider("app-check-internal");
7384
7384
  return new Tt(n, r, i, e, oe);
7385
7385
  }
7386
- function Tc() {
7386
+ function Rc() {
7387
7387
  se(new Y(
7388
- pr,
7389
- Ec,
7388
+ fr,
7389
+ Tc,
7390
7390
  "PUBLIC"
7391
7391
  /* ComponentType.PUBLIC */
7392
- ).setMultipleInstances(!0)), z(Qt, en, ""), z(Qt, en, "esm2017");
7392
+ ).setMultipleInstances(!0)), z(Zt, en, ""), z(Zt, en, "esm2017");
7393
7393
  }
7394
- Tc();
7395
- const Rc = [
7394
+ Rc();
7395
+ const Ac = {
7396
+ title: "Settings",
7397
+ eInvoice: {
7398
+ title: "E-invoice"
7399
+ },
7400
+ licenseOrder: {
7401
+ title: "License order"
7402
+ },
7403
+ device: {
7404
+ title: "Device"
7405
+ },
7406
+ business: {
7407
+ title: "My business",
7408
+ url: "Business URL",
7409
+ add_restaurant: "Add restaurant",
7410
+ search_restaurants: "Search restaurants",
7411
+ quota: {
7412
+ limit_title: "Quota limit reached",
7413
+ limit_message: "You have reach the quota limit allocated to your account. Contact your sales to perform quota update."
7414
+ },
7415
+ restaurant: {
7416
+ title: "Restaurant",
7417
+ address: "Address",
7418
+ contact: "Contact",
7419
+ email: "Email",
7420
+ tax: {
7421
+ title: "Tax No",
7422
+ not_set: "Not set"
7423
+ },
7424
+ actions: {
7425
+ discard: "Discard"
7426
+ },
7427
+ form: {
7428
+ title: {
7429
+ update: "Update restaurant",
7430
+ add: "Add restaurant"
7431
+ },
7432
+ message: {
7433
+ updated: "Restaurant updated",
7434
+ created: "Restaurant created"
7435
+ },
7436
+ summary: {
7437
+ title: "Restaurant summary",
7438
+ name: "Restaurant name",
7439
+ legal_name: "Legal name",
7440
+ contact: "Contact no.",
7441
+ address: "Address"
7442
+ },
7443
+ sections: {
7444
+ basic_info: {
7445
+ title: "Basic info",
7446
+ code: {
7447
+ label: "Code",
7448
+ optional: "optional",
7449
+ helper: "Code can only set once"
7450
+ },
7451
+ name: {
7452
+ label: "Restaurant name",
7453
+ required: "required"
7454
+ },
7455
+ legal_name: {
7456
+ label: "Legal name",
7457
+ required: "required"
7458
+ },
7459
+ reg_no: {
7460
+ label: "Registration no.",
7461
+ required: "required"
7462
+ },
7463
+ tax_no: {
7464
+ label: "Tax No",
7465
+ optional: "optional"
7466
+ },
7467
+ contact: {
7468
+ label: "Contact no.",
7469
+ optional: "optional"
7470
+ },
7471
+ email: {
7472
+ label: "Email",
7473
+ optional: "optional"
7474
+ },
7475
+ image: {
7476
+ label: "Restaurant image",
7477
+ optional: "(optional)"
7478
+ }
7479
+ },
7480
+ address: {
7481
+ title: "Address"
7482
+ },
7483
+ operation_hours: {
7484
+ title: "Operation hours",
7485
+ copy_with: "Copy with",
7486
+ invalid: "Invalid operating hour"
7487
+ },
7488
+ branding: {
7489
+ title: "Branding",
7490
+ description: "Restaurant descriptions",
7491
+ url: {
7492
+ label: "Restaurant URL",
7493
+ errors: {
7494
+ disabled: "Short URL temporary disabled for make sure unique URL for each restaurant",
7495
+ invalid: "Invalid URL, should be more than 6 characters",
7496
+ reserved: "Reserved URL"
7497
+ }
7498
+ },
7499
+ cover_photo: {
7500
+ label: "Cover photo"
7501
+ },
7502
+ carousel_photos: {
7503
+ label: "Carousel photos"
7504
+ }
7505
+ }
7506
+ }
7507
+ }
7508
+ },
7509
+ form: {
7510
+ title: "Update business",
7511
+ cover_photo: {
7512
+ label: "Cover photo",
7513
+ optional: "(optional)"
7514
+ },
7515
+ name: "Name",
7516
+ url: {
7517
+ label: "URL",
7518
+ errors: {
7519
+ disabled: "Short URL temporary disabled for make sure unique URL for each restaurant",
7520
+ format: "Min 6 characters, alphanumeric only",
7521
+ reserved: "Business URL is reserved"
7522
+ }
7523
+ }
7524
+ }
7525
+ },
7526
+ create_business: {
7527
+ welcome: "Welcome {name}",
7528
+ subtitle: "before we start, let's tell us about your business.",
7529
+ business_name: {
7530
+ label: "What is your business name?",
7531
+ required: "required"
7532
+ },
7533
+ agent: {
7534
+ label: "Agent code",
7535
+ invalid: "Invalid agent code"
7536
+ },
7537
+ country: {
7538
+ title: "Select country",
7539
+ exists: {
7540
+ title: "Business already exists",
7541
+ message: "A business: {name} has already been created in the selected country. Please choose a different country or update the existing business information."
7542
+ }
7543
+ },
7544
+ submit: "Let's get start",
7545
+ logout: "Logout"
7546
+ },
7547
+ coordinate_dialog: {
7548
+ address: "Address",
7549
+ latitude: "Latitude",
7550
+ longitude: "Longitude"
7551
+ },
7552
+ coordinate_input: {
7553
+ title: "Coordinate",
7554
+ not_set: "Not set",
7555
+ dialog: {
7556
+ title: "Coordinate",
7557
+ confirm: "Confirm",
7558
+ delete: "Delete"
7559
+ }
7560
+ },
7561
+ address: {
7562
+ line1: "Line 1",
7563
+ line2: "Line 2",
7564
+ city: "City",
7565
+ postal_code: "Postal code",
7566
+ state: "State",
7567
+ country: "Country"
7568
+ },
7569
+ operation_hours: {
7570
+ mon: "Monday",
7571
+ tue: "Tuesday",
7572
+ wed: "Wednesday",
7573
+ thu: "Thursday",
7574
+ fri: "Friday",
7575
+ sat: "Saturday",
7576
+ sun: "Sunday",
7577
+ to: "to",
7578
+ close: "Close",
7579
+ cannot_remove_last: "Cannot remove last timeslot"
7580
+ },
7581
+ food_court: {
7582
+ labels: {
7583
+ owner: "Owner: {items}",
7584
+ members: "{count} members",
7585
+ status: "Status"
7586
+ },
7587
+ create: {
7588
+ title: "Add food court",
7589
+ name: {
7590
+ label: "Food court name",
7591
+ placeholder: "Enter name"
7592
+ },
7593
+ owner: "Food court owner",
7594
+ success: "Food court created"
7595
+ },
7596
+ update: {
7597
+ title: "Update food court",
7598
+ name: {
7599
+ label: "Food court name",
7600
+ placeholder: "Enter name"
7601
+ }
7602
+ },
7603
+ edit: {
7604
+ member_updated: "Food court member updated",
7605
+ member_deleted: "Food court member deleted",
7606
+ member_removed: "Food court member removed",
7607
+ invite_success: "Invite restaurant successful",
7608
+ no_restaurant: "No restaurant invited"
7609
+ },
7610
+ members: {
7611
+ title: "Members",
7612
+ name: "Name",
7613
+ description: "Description",
7614
+ status: "Status"
7615
+ },
7616
+ status: {
7617
+ active: "Active",
7618
+ inactive: "Inactive",
7619
+ pending: "Pending accept",
7620
+ declined: "Rejected"
7621
+ },
7622
+ actions: {
7623
+ invite: "Invite",
7624
+ deactivate: "Deactive",
7625
+ reactivate: "Reactivate",
7626
+ activate: "Activate",
7627
+ leave: "Leave",
7628
+ cancel_invitation: "Cancel invitation",
7629
+ reject: "Reject",
7630
+ revoke_invitation: "Revoke invitation",
7631
+ remove_member: "Remove Member",
7632
+ invite_member: "Invite member",
7633
+ rename: "Rename"
7634
+ },
7635
+ invite_dialog: {
7636
+ link_copied: "Invite link copied to clipboard",
7637
+ search: {
7638
+ placeholder: "Restaurant Id / Restaurant Name",
7639
+ success: "Search done",
7640
+ error: "Search failed with error"
7641
+ },
7642
+ to_invite: "To Invite ({count} selected)",
7643
+ restaurant: {
7644
+ name: "Restaurant name",
7645
+ id: "Restaurant ID",
7646
+ invited: "(Invited)"
7647
+ }
7648
+ },
7649
+ list: {
7650
+ title: "Food Courts",
7651
+ search: {
7652
+ placeholder: "Search food courts"
7653
+ },
7654
+ columns: {
7655
+ name: "Name",
7656
+ owner: "Owner",
7657
+ members: "{count} members",
7658
+ status: "Status"
7659
+ }
7660
+ },
7661
+ messages: {
7662
+ delete_confirm: {
7663
+ title: "Delete food court",
7664
+ message: "Are you sure you want to delete this food court?"
7665
+ },
7666
+ deleted: "Food court deleted",
7667
+ updated: "Food court updated",
7668
+ update_success: "Food court updated"
7669
+ }
7670
+ }
7671
+ }, kc = {
7672
+ settings: Ac
7673
+ }, Sc = {
7674
+ title: "设置",
7675
+ eInvoice: {
7676
+ title: "电子发票"
7677
+ },
7678
+ licenseOrder: {
7679
+ title: "许可证订单"
7680
+ },
7681
+ device: {
7682
+ title: "设备"
7683
+ },
7684
+ business: {
7685
+ title: "我的商户",
7686
+ url: "商户 url",
7687
+ add_restaurant: "添加餐厅",
7688
+ search_restaurants: "搜索餐厅",
7689
+ quota: {
7690
+ limit_title: "配额限制",
7691
+ limit_message: "您已达到配额限制。请联系您的销售代表进行配额更新。"
7692
+ },
7693
+ restaurant: {
7694
+ title: "餐厅",
7695
+ address: "地址",
7696
+ contact: "联系",
7697
+ email: "电子邮件",
7698
+ tax: {
7699
+ title: "税号",
7700
+ not_set: "未设置"
7701
+ },
7702
+ actions: {
7703
+ discard: "丢弃"
7704
+ },
7705
+ form: {
7706
+ title: {
7707
+ update: "更新餐厅",
7708
+ add: "添加餐厅"
7709
+ },
7710
+ message: {
7711
+ updated: "餐厅已更新",
7712
+ created: "餐厅已创建"
7713
+ },
7714
+ summary: {
7715
+ title: "餐厅摘要",
7716
+ name: "餐厅名称",
7717
+ legal_name: "法人名称",
7718
+ contact: "联系号码",
7719
+ address: "地址"
7720
+ },
7721
+ sections: {
7722
+ basic_info: {
7723
+ title: "基本信息",
7724
+ code: {
7725
+ label: "代码",
7726
+ optional: "可选",
7727
+ helper: "代码只能设置一次"
7728
+ },
7729
+ name: {
7730
+ label: "餐厅名称",
7731
+ required: "必填"
7732
+ },
7733
+ legal_name: {
7734
+ label: "法人名称",
7735
+ required: "必填"
7736
+ },
7737
+ reg_no: {
7738
+ label: "注册号码",
7739
+ required: "必填"
7740
+ },
7741
+ tax_no: {
7742
+ label: "税号",
7743
+ optional: "可选"
7744
+ },
7745
+ contact: {
7746
+ label: "联系电话",
7747
+ optional: "可选"
7748
+ },
7749
+ email: {
7750
+ label: "电子邮件",
7751
+ optional: "可选"
7752
+ },
7753
+ image: {
7754
+ label: "餐厅图片",
7755
+ optional: "(可选)"
7756
+ }
7757
+ },
7758
+ address: {
7759
+ title: "地址"
7760
+ },
7761
+ operation_hours: {
7762
+ title: "营业时间",
7763
+ copy_with: "复制",
7764
+ invalid: "无效的营业时间"
7765
+ },
7766
+ branding: {
7767
+ title: "品牌",
7768
+ description: "餐厅描述",
7769
+ url: {
7770
+ label: "餐厅 URL",
7771
+ errors: {
7772
+ disabled: "短 URL 临时禁用,确保每个餐厅的唯一 URL",
7773
+ invalid: "无效的 URL,应超过 6 个字符",
7774
+ reserved: "保留的 URL"
7775
+ }
7776
+ },
7777
+ cover_photo: {
7778
+ label: "封面图片"
7779
+ },
7780
+ carousel_photos: {
7781
+ label: "轮播图片"
7782
+ }
7783
+ }
7784
+ }
7785
+ }
7786
+ },
7787
+ form: {
7788
+ title: "更新商户",
7789
+ cover_photo: {
7790
+ label: "封面图片",
7791
+ optional: "(可选)"
7792
+ },
7793
+ name: "名称",
7794
+ url: {
7795
+ label: "URL",
7796
+ errors: {
7797
+ disabled: "短 URL 临时禁用,确保每个餐厅的 URL 唯一",
7798
+ format: "至少 6 个字符,仅限字母数字",
7799
+ reserved: "商户 URL 已保留"
7800
+ }
7801
+ }
7802
+ }
7803
+ },
7804
+ create_business: {
7805
+ welcome: "欢迎 {name}",
7806
+ subtitle: "在我们开始之前,让我们了解您的业务。",
7807
+ business_name: {
7808
+ label: "您的业务名称是什么?",
7809
+ required: "必填"
7810
+ },
7811
+ agent: {
7812
+ label: "Agent 代码",
7813
+ invalid: "无效的 Agent 代码"
7814
+ },
7815
+ country: {
7816
+ title: "选择国家",
7817
+ exists: {
7818
+ title: "商户已存在",
7819
+ message: "商户:{name} 已在所选国家创建。请选择其他国家或更新现有商户信息。"
7820
+ }
7821
+ },
7822
+ submit: "让我们开始",
7823
+ logout: "登出"
7824
+ },
7825
+ coordinate_dialog: {
7826
+ address: "地址",
7827
+ latitude: "纬度",
7828
+ longitude: "经度"
7829
+ },
7830
+ coordinate_input: {
7831
+ title: "坐标",
7832
+ not_set: "未设置",
7833
+ dialog: {
7834
+ title: "坐标",
7835
+ confirm: "确认",
7836
+ delete: "删除"
7837
+ }
7838
+ },
7839
+ address: {
7840
+ line1: "行 1",
7841
+ line2: "行 2",
7842
+ city: "城市",
7843
+ postal_code: "邮政编码",
7844
+ state: "州",
7845
+ country: "国家"
7846
+ },
7847
+ operation_hours: {
7848
+ mon: "周一",
7849
+ tue: "周二",
7850
+ wed: "周三",
7851
+ thu: "周四",
7852
+ fri: "周五",
7853
+ sat: "周六",
7854
+ sun: "周日",
7855
+ to: "至",
7856
+ close: "关闭",
7857
+ cannot_remove_last: "无法删除最后一个时间槽"
7858
+ },
7859
+ food_court: {
7860
+ labels: {
7861
+ owner: "所有者: {items}",
7862
+ members: "{count} 成员",
7863
+ status: "状态"
7864
+ },
7865
+ create: {
7866
+ title: "添加美食中心",
7867
+ name: {
7868
+ label: "美食中心名称",
7869
+ placeholder: "输入名称"
7870
+ },
7871
+ owner: "美食中心所有者",
7872
+ success: "美食中心已创建"
7873
+ },
7874
+ update: {
7875
+ title: "更新美食中心",
7876
+ name: {
7877
+ label: "美食中心名称",
7878
+ placeholder: "输入名称"
7879
+ }
7880
+ },
7881
+ edit: {
7882
+ member_updated: "美食中心成员已更新",
7883
+ member_deleted: "美食中心成员已删除",
7884
+ member_removed: "美食中心成员已移除",
7885
+ invite_success: "邀请餐厅成功",
7886
+ no_restaurant: "没有邀请餐厅"
7887
+ },
7888
+ members: {
7889
+ title: "成员",
7890
+ name: "姓名",
7891
+ description: "描述",
7892
+ status: "状态"
7893
+ },
7894
+ status: {
7895
+ active: "活跃",
7896
+ inactive: "不活跃",
7897
+ pending: "待接受",
7898
+ declined: "已拒绝"
7899
+ },
7900
+ actions: {
7901
+ invite: "邀请",
7902
+ deactivate: "停用",
7903
+ reactivate: "重新激活",
7904
+ activate: "激活",
7905
+ leave: "离开",
7906
+ cancel_invitation: "取消邀请",
7907
+ reject: "拒绝",
7908
+ revoke_invitation: "撤销邀请",
7909
+ remove_member: "移除成员",
7910
+ invite_member: "邀请成员",
7911
+ rename: "重命名"
7912
+ },
7913
+ invite_dialog: {
7914
+ link_copied: "邀请链接已复制到剪贴板",
7915
+ search: {
7916
+ placeholder: "餐厅 ID / 餐厅名称",
7917
+ success: "搜索完成",
7918
+ error: "搜索失败"
7919
+ },
7920
+ to_invite: "邀请 ({count} 个)",
7921
+ restaurant: {
7922
+ name: "餐厅名称",
7923
+ id: "餐厅 ID",
7924
+ invited: "(已邀请)"
7925
+ }
7926
+ },
7927
+ list: {
7928
+ title: "美食中心",
7929
+ search: {
7930
+ placeholder: "搜索美食中心"
7931
+ },
7932
+ columns: {
7933
+ name: "名称",
7934
+ owner: "所有者",
7935
+ members: "{count} 成员",
7936
+ status: "状态"
7937
+ }
7938
+ },
7939
+ messages: {
7940
+ delete_confirm: {
7941
+ title: "删除美食中心",
7942
+ message: "确定要删除这个美食中心吗?"
7943
+ },
7944
+ deleted: "美食中心已删除",
7945
+ updated: "美食中心已更新",
7946
+ update_success: "美食中心已更新"
7947
+ }
7948
+ }
7949
+ }, Cc = {
7950
+ settings: Sc
7951
+ }, Oc = [
7396
7952
  {
7397
7953
  path: "/",
7398
7954
  redirect: "$settings-my-business"
@@ -7400,12 +7956,15 @@ const Rc = [
7400
7956
  {
7401
7957
  path: "/business",
7402
7958
  name: "$settings-my-business",
7403
- component: () => import("./Business-840c1d5e.js")
7959
+ component: () => import("./Business-9706bfba.js"),
7960
+ meta: {
7961
+ i18nKey: "settings.business.title"
7962
+ }
7404
7963
  },
7405
7964
  {
7406
7965
  path: "/create-business",
7407
7966
  name: "$settings-create-business",
7408
- component: () => import("./CreateBusiness-ae9bee79.js"),
7967
+ component: () => import("./CreateBusiness-ee9dfb37.js"),
7409
7968
  meta: {
7410
7969
  hideNavigation: !0
7411
7970
  }
@@ -7413,96 +7972,111 @@ const Rc = [
7413
7972
  {
7414
7973
  path: "/foodcourt",
7415
7974
  name: "$settings-food-court",
7416
- component: () => import("./FoodCourt-c236c0a2.js")
7975
+ component: () => import("./FoodCourt-2c67838f.js"),
7976
+ meta: {
7977
+ i18nKey: "settings.food_court.list.title"
7978
+ }
7417
7979
  },
7418
7980
  {
7419
7981
  path: "/devices",
7420
7982
  name: "$settings-device",
7421
- component: Ar,
7422
- children: kr.map((t) => ({ ...t, path: `/device${t.path}` }))
7983
+ component: kr,
7984
+ children: Sr.map((t) => ({ ...t, path: `/device${t.path}` })),
7985
+ meta: {
7986
+ i18nKey: "settings.device.title"
7987
+ }
7423
7988
  },
7424
7989
  {
7425
7990
  path: "/license-order",
7426
7991
  name: "$settings-license-order",
7427
- component: () => import("./LicenseOrder-86aa7996.js")
7992
+ component: () => import("./LicenseOrder-86aa7996.js"),
7993
+ meta: {
7994
+ i18nKey: "settings.licenseOrder.title"
7995
+ }
7428
7996
  },
7429
7997
  {
7430
7998
  path: "/e-invoice",
7431
7999
  name: "$settings-e-invoice",
7432
- component: Tr,
7433
- children: Rr.map((t) => ({ ...t, path: `/e-invoice${t.path}` }))
8000
+ component: Rr,
8001
+ children: Ar.map((t) => ({ ...t, path: `/e-invoice${t.path}` })),
8002
+ meta: {
8003
+ i18nKey: "settings.eInvoice.title"
8004
+ }
7434
8005
  }
7435
- ], Ac = /* @__PURE__ */ nn({
8006
+ ], Nc = /* @__PURE__ */ nn({
7436
8007
  __name: "NavigationTab",
7437
8008
  emits: ["close-navigation"],
7438
8009
  setup(t, { emit: e }) {
7439
- const n = e, r = wr();
7440
- on();
7441
- const i = (c) => (c.charAt(0).toUpperCase() + c.slice(1)).replace("-", " "), s = (c) => c.replace(/^\$.+?-/, ""), o = mr(() => Rc.filter((l) => {
7442
- var u;
7443
- return !l.redirect && !((u = l.meta) != null && u.hideNavigation);
7444
- }).map((l) => {
7445
- const u = s(l.name || "");
8010
+ const n = e, { t: r } = yr(), i = Er(), s = mr(() => Oc.filter((c) => {
8011
+ var l;
8012
+ return !c.redirect && !((l = c.meta) != null && l.hideNavigation);
8013
+ }).map((c) => {
8014
+ var l;
7446
8015
  return {
7447
- label: i(u),
7448
- value: l.name,
8016
+ label: r((l = c.meta) == null ? void 0 : l.i18nKey),
8017
+ value: c.name,
7449
8018
  action: () => {
7450
- l.name === "$settings-e-invoice" ? r.push({ name: "SUBMISSION" }) : l.name === "$settings-device" ? r.push({ name: "$devices" }) : r.push({ name: l.name }), n("close-navigation");
8019
+ c.name === "$settings-e-invoice" ? i.push({ name: "SUBMISSION" }) : c.name === "$settings-device" ? i.push({ name: "$devices" }) : i.push({ name: c.name }), n("close-navigation");
7451
8020
  }
7452
8021
  };
7453
- })), a = tn();
7454
- return _r(() => {
7455
- var l;
7456
- const c = (l = r.currentRoute.value) == null ? void 0 : l.name;
7457
- c === "SUBMISSION" ? a.value = "$settings-e-invoice" : c === "$devices" ? a.value = "$settings-device" : a.value = c;
7458
- }), (c, l) => {
7459
- const u = vr("fm-collapsible-tabs");
7460
- return rn(), sn(u, {
7461
- modelValue: a.value,
7462
- "onUpdate:modelValue": l[0] || (l[0] = (h) => a.value = h),
7463
- items: o.value,
8022
+ })), o = tn();
8023
+ return gr(() => {
8024
+ var c;
8025
+ const a = (c = i.currentRoute.value) == null ? void 0 : c.name;
8026
+ a === "SUBMISSION" ? o.value = "$settings-e-invoice" : a === "$devices" ? o.value = "$settings-device" : o.value = a;
8027
+ }), (a, c) => {
8028
+ const l = _r("fm-collapsible-tabs");
8029
+ return rn(), sn(l, {
8030
+ modelValue: o.value,
8031
+ "onUpdate:modelValue": c[0] || (c[0] = (u) => o.value = u),
8032
+ items: s.value,
7464
8033
  class: "py-16 px-8"
7465
8034
  }, null, 8, ["modelValue", "items"]);
7466
8035
  };
7467
8036
  }
7468
- }), Vc = /* @__PURE__ */ nn({
8037
+ }), Gc = /* @__PURE__ */ nn({
7469
8038
  __name: "App",
7470
8039
  setup(t) {
7471
- const e = on();
7472
- return br(() => {
7473
- e.registerSidebarComponent(Ac), Cc();
7474
- }), (n, r) => (rn(), sn(Ir(Er)));
8040
+ const e = Ir();
8041
+ return vr(() => {
8042
+ e.registerSidebarComponent(Nc), Uc();
8043
+ }), (n, r) => (rn(), sn(br(Tr)));
7475
8044
  }
7476
8045
  });
7477
- async function kc() {
7478
- if (Xi().length)
8046
+ async function Pc() {
8047
+ if (Yi().length)
7479
8048
  return;
7480
- const t = mn({ 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" }), e = await yr.getCustomToken(), n = la();
7481
- await Ks(n, e), yc(t);
8049
+ const t = mn({ 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" }), e = await wr.getCustomToken(), n = ua();
8050
+ await Js(n, e), wc(t);
7482
8051
  }
7483
- async function Sc() {
7484
- if (Sr())
8052
+ async function Dc() {
8053
+ if (Cr())
7485
8054
  return;
7486
8055
  const e = await new de("AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4", {
7487
8056
  libraries: ["places"]
7488
8057
  }).load();
7489
- Cr(e);
8058
+ Or(e);
7490
8059
  }
7491
- async function Cc() {
7492
- await kc(), await Sc();
8060
+ async function Uc() {
8061
+ await Pc(), await Dc();
7493
8062
  }
8063
+ const Jc = {
8064
+ "en-US": kc,
8065
+ "zh-CN": Cc
8066
+ };
7494
8067
  export {
7495
- Vc as _,
7496
- xc as a,
7497
- Mc as b,
7498
- Lc as c,
7499
- yc as d,
7500
- jc as e,
7501
- Fc as f,
7502
- Sr as g,
7503
- $c as h,
7504
- Cc as i,
7505
- Rc as j,
7506
- Hc as r,
7507
- Bc as u
8068
+ Gc as _,
8069
+ jc as a,
8070
+ Hc as b,
8071
+ $c as c,
8072
+ wc as d,
8073
+ Kc as e,
8074
+ Wc as f,
8075
+ Cr as g,
8076
+ zc as h,
8077
+ Uc as i,
8078
+ Jc as j,
8079
+ Oc as k,
8080
+ qc as r,
8081
+ Vc as u
7508
8082
  };