@feedmepos/mf-connect 0.1.120-dev → 0.1.120-prod

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (147) hide show
  1. package/dist/{App-Dw3rnEq4.js → App-DBQZLwTQ.js} +493 -502
  2. package/dist/{Bin-CUr1xsO9.js → Bin-C8ug-z3E.js} +8 -8
  3. package/dist/{Broadcast-_XJq6IJN.js → Broadcast-BLyl7ua-.js} +21 -22
  4. package/dist/{CampaignAnalytic-DqaUuRKr.js → CampaignAnalytic-DIWpaLY0.js} +7 -7
  5. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-VIKZyXYe.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CSB5W-XC.js} +9 -8
  6. package/dist/{Card-D-jdr-yk.js → Card-CFozO34o.js} +22 -22
  7. package/dist/{Collections-BkD4tNm-.js → Collections-C2KJLABL.js} +185 -197
  8. package/dist/{Credit-BetxSEVi.js → Credit-Cdv1Oomb.js} +20 -21
  9. package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-B38KWvjh.js → DateRangeChip.vue_vue_type_script_setup_true_lang-Czq59A9J.js} +1 -1
  10. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-IiOjBexw.js +3493 -0
  11. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-ZUyAIXG8.js → EffectSheet.vue_vue_type_style_index_0_lang-DbJVoEfI.js} +16 -16
  12. package/dist/{Experience-BFA5Z-vR.js → Experience-Bh9hVvjF.js} +31 -32
  13. package/dist/{FileSaver.min-8JbG2mJ3.js → FileSaver.min-DJN13WN5.js} +1 -1
  14. package/dist/{Game-U5KLh4hO.js → Game-i_54Y96a.js} +18 -19
  15. package/dist/{GiftCardSetup-Co-IZAGp.js → GiftCardSetup-ChX81wf5.js} +31 -31
  16. package/dist/{GoalPickerPanel.vue_vue_type_script_setup_true_lang-BEpn_v0p.js → GoalPickerPanel.vue_vue_type_script_setup_true_lang-BtobC6W0.js} +7 -7
  17. package/dist/{Goals-BjfIo1eJ.js → Goals-Bp0iuvWb.js} +4 -4
  18. package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-BS_4suKR.js → ImageInput.vue_vue_type_script_setup_true_lang-BJ35Sv1u.js} +1 -1
  19. package/dist/{Index-B6vsJrc1.js → Index-BEZ86XpR.js} +10 -10
  20. package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-BnKkTFya.js → LocationPicker.vue_vue_type_script_setup_true_lang-Esi4t61b.js} +1 -1
  21. package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-BekFDJxs.js → LottieAnimation.vue_vue_type_script_setup_true_lang-DHoRYfKp.js} +1 -1
  22. package/dist/{LoyaltyDashboard-0jJUfdtM.js → LoyaltyDashboard-BJqiX1zB.js} +15 -15
  23. package/dist/{MainLayout-DCJfGVVF.js → MainLayout-f3eUXes5.js} +1 -1
  24. package/dist/{MainLayout.vue_vue_type_script_setup_true_lang-CRkbPnQq.js → MainLayout.vue_vue_type_script_setup_true_lang-CXwyNeyN.js} +16 -16
  25. package/dist/{Marketing-DsZoY2Ef.js → Marketing-CbD1V11I.js} +4 -4
  26. package/dist/{MarketingMaterialEdit-BMJ2yjL0.js → MarketingMaterialEdit-NxEqzSCR.js} +211 -214
  27. package/dist/{Member-Bi7EuVUS.js → Member-CpmRtxRJ.js} +7 -7
  28. package/dist/{MemberDetailSheet.vue_vue_type_script_setup_true_lang-CXXKlmiR.js → MemberDetailSheet.vue_vue_type_script_setup_true_lang-DxfSWKF2.js} +47 -39
  29. package/dist/{MemberImportHistory-CXnIaEaw.js → MemberImportHistory-D5j5iW2F.js} +7 -7
  30. package/dist/{MemberList-C1CdR6m8.js → MemberList-CkGQedUC.js} +105 -103
  31. package/dist/{MemberTransactions-BhSWE28t.js → MemberTransactions-B8I6cpDJ.js} +1 -1
  32. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-DqkkAHPc.js → MessageInput.vue_vue_type_script_setup_true_lang-BHjD2h_e.js} +12 -12
  33. package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-D6h_DlFU.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-BlsXyucO.js} +1 -1
  34. package/dist/{Mission-DZgMAkA4.js → Mission-B3GPwNME.js} +21 -22
  35. package/dist/{Overview-o0WZa6xE.js → Overview-Dn_2Bqvu.js} +20 -20
  36. package/dist/{Overview-BtV1gIgD.js → Overview-HutQPlD3.js} +144 -145
  37. package/dist/{Point-BdeI3vOp.js → Point-gimlv9IU.js} +21 -22
  38. package/dist/{Promotion-eYwTP1qU.js → Promotion-C_nq6mWA.js} +131 -137
  39. package/dist/{Queue-C72lnZ0G.js → Queue-DSfCWiWX.js} +45 -45
  40. package/dist/{Record-D1lHOQjk.js → Record-C_BCs5rW.js} +9 -9
  41. package/dist/{Review-CbXC2Up5.js → Review-BA0RXTAG.js} +2 -2
  42. package/dist/ReviewFacebookCallback-BoTFdwzG.js +238 -0
  43. package/dist/{ReviewGoogleCallback-CdBzIoTM.js → ReviewGoogleCallback-CBKtyOA1.js} +5 -5
  44. package/dist/{Reward-hov1NEKT.js → Reward-CLEB9wcA.js} +16 -16
  45. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-C65e4Bjf.js → RewardGroup.vue_vue_type_script_setup_true_lang-DYMrYduc.js} +13 -13
  46. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-1PAfUilQ.js +1884 -0
  47. package/dist/{Segment-CLl-iQEV.js → Segment-D9vzet_7.js} +306 -303
  48. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-cNl8HWu7.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-DNMNxwxH.js} +14 -14
  49. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-DW40ulZz.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-MS7jsy3-.js} +4 -4
  50. package/dist/{Setting-DUQnhLNq.js → Setting-CYVYlW3X.js} +148 -159
  51. package/dist/{SettingAdvertisements-BSn0-F2x.js → SettingAdvertisements-V-RMxN0l.js} +12 -12
  52. package/dist/Settings-B6RE8Grl.js +179 -0
  53. package/dist/{Store-CDYO-NC0.js → Store-BL_aHl-T.js} +28 -28
  54. package/dist/{StoreRewards-DJh59Fob.js → StoreRewards-Cy0V00uq.js} +15 -15
  55. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-B2F6Jdoz.js +1265 -0
  56. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-Dtur9ZLl.js +142 -0
  57. package/dist/{Tier-BW6W3yBu.js → Tier-BYOa0elV.js} +687 -2575
  58. package/dist/{Title-B2eCIHuR.js → Title-Mv8zK56z.js} +94 -95
  59. package/dist/{Transaction-DPoCHqkz.js → Transaction-C-hY5_sZ.js} +2 -2
  60. package/dist/Upselling-i7NQ3_vb.js +200 -0
  61. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-B5aLnMyK.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-BEJiKtkq.js} +26 -26
  62. package/dist/{Voucher-B6nQmBiS.js → Voucher-CuQGUgg6.js} +19 -19
  63. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-BdPZ41yo.js → VoucherEditor.vue_vue_type_script_setup_true_lang-CYeZiv40.js} +12 -12
  64. package/dist/{WhatsappAccount-Ciq2u7nb.js → WhatsappAccount-DAqV64xJ.js} +6 -6
  65. package/dist/{WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-tkb0lN-h.js → WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-7-v71uA0.js} +1 -1
  66. package/dist/{WhatsappBot-BYpVe09e.js → WhatsappBot-DtS5lWL8.js} +6 -6
  67. package/dist/{WhatsappBotLogs-CgHw2yge.js → WhatsappBotLogs-rl1q5Com.js} +6 -6
  68. package/dist/{WhatsappBotSettings-BwpFbl7Z.js → WhatsappBotSettings-DdAnmkGz.js} +4 -4
  69. package/dist/{WhatsappLayout-CwpwPh6N.js → WhatsappLayout-C52eyo8O.js} +3 -3
  70. package/dist/{WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-DO9SPgkB.js → WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-DSTy1_mf.js} +3 -3
  71. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-C2jWAGpk.js → ZodTextField.vue_vue_type_script_setup_true_lang-FjEnzRs3.js} +2 -2
  72. package/dist/{app-vKvoaMkb.js → app-CMT8marC.js} +15027 -14896
  73. package/dist/app.js +3 -4
  74. package/dist/{base.export-ohC--hGH.js → base.export-Cgl_9TxX.js} +2 -2
  75. package/dist/{business-28bym_1L.js → business-BJU9uFPa.js} +1 -1
  76. package/dist/{campaign-DgPBKJb-.js → campaign-B3KsGmmr.js} +28 -34
  77. package/dist/{campaign-DMboDbth.js → campaign-CVdswQPo.js} +94 -121
  78. package/dist/{campaign.enum-Dx-Zo68Q.js → campaign.enum-BqekIiiN.js} +1 -2
  79. package/dist/campaign.fn-C400ik1p.js +776 -0
  80. package/dist/{collection.fn-D1_zLTmc.js → collection.fn-7ybRczFg.js} +2 -2
  81. package/dist/{currency-DMOuxF-S.js → currency-BImoFfSS.js} +1 -1
  82. package/dist/{effect-B5u1fe_H.js → effect-Dxft7tt1.js} +1 -1
  83. package/dist/{email-addresses-DlCCiXKC.js → email-addresses-WadDwyy9.js} +25 -25
  84. package/dist/{feature-flag-CjzcqKbW.js → feature-flag-CEjA6txQ.js} +70 -70
  85. package/dist/google-C3S8u0mT.js +4 -0
  86. package/dist/{helper-B6jcRgk4.js → helper-i7dspqHv.js} +1 -1
  87. package/dist/{index-DCKK1jWV.js → index--rOHRSPf.js} +2 -2
  88. package/dist/{index-DYkwpfhH.js → index-BHtWZTaZ.js} +197 -197
  89. package/dist/{index-CuqYl8B1.js → index-BOTveS0V.js} +6 -19
  90. package/dist/{index-CQJRkES4.js → index-BUEY9Vst.js} +4 -4
  91. package/dist/{index-DLxrYNl3.js → index-BVNAEKsI.js} +10 -10
  92. package/dist/{index-CYyJd65t.js → index-BvssGe0a.js} +1 -1
  93. package/dist/{index-CxKq67I1.js → index-CFRTRXNe.js} +251 -608
  94. package/dist/{index-hbfWGXN8.js → index-CLz7-IQC.js} +2613 -2699
  95. package/dist/{index-EJ2519DL.js → index-CpmyzzYE.js} +1 -1
  96. package/dist/{index-BoxhFA0T.js → index-CqzEJtk8.js} +1 -1
  97. package/dist/{index-D2ZgTMnz.js → index-DOZJA_Ft.js} +3 -3
  98. package/dist/{index-BuuNZzmf.js → index-DObwgxo8.js} +232 -389
  99. package/dist/{index-B2wPJtZQ.js → index-DUmMwRCq.js} +581 -682
  100. package/dist/{index-wOCVa2Eh.js → index-D_3FBcG0.js} +1 -1
  101. package/dist/{index-DAJ0XegF.js → index-Dg2MUnEL.js} +1 -1
  102. package/dist/{index-CNc35JQ-.js → index-DtOEbDWz.js} +15 -29
  103. package/dist/{index-DPwp9uUi.js → index-J8asdytc.js} +10 -10
  104. package/dist/{index-Bf8aQe9s.js → index-Tk2T-Htu.js} +1 -1
  105. package/dist/{index-DEixqEZl.js → index-evCaDo3a.js} +2 -2
  106. package/dist/{index-DfRs6Yvh.js → index-twf1psHJ.js} +2 -2
  107. package/dist/{index.esm2017-C3o6d_kv.js → index.esm2017-DUf9koW-.js} +104 -104
  108. package/dist/{loading-Dbol8f8F.js → loading-DNI2of1-.js} +1 -1
  109. package/dist/{lodash-FYmuGFr2.js → lodash-DwcUzWks.js} +1 -1
  110. package/dist/{member-import-FmqKKCXM.js → member-import-DX9n0oRI.js} +1 -1
  111. package/dist/{membership-CMsYIvf9.js → membership-BLjqUMSC.js} +2 -2
  112. package/dist/{money-DMsQ8s71.js → money-CCeb7GjC.js} +1 -1
  113. package/dist/{number-D_xzX-4k.js → number-vmIaciZy.js} +1 -1
  114. package/dist/objectid-BaI3A952.js +145 -0
  115. package/dist/{onboarding-k2Qm1tTl.js → onboarding-DJVHySNw.js} +36 -36
  116. package/dist/{onboardingSetup-DJeJJn0h.js → onboardingSetup-qKNvLCN8.js} +2 -2
  117. package/dist/{plugins-lVdrZkVB.js → plugins-BPBtNB-X.js} +3 -3
  118. package/dist/{reward-BoH6x-Iu.js → reward-B-u6A47a.js} +1 -1
  119. package/dist/{rule-4QLYlkQ-.js → rule-22mfpY97.js} +492 -572
  120. package/dist/rule-builder-Bg3OydGJ.js +102 -0
  121. package/dist/style.css +1 -1
  122. package/dist/template-GnwTAeMg.js +236 -0
  123. package/dist/{timezone-BV11O4o0.js → timezone-BD7sKhu-.js} +1 -1
  124. package/dist/{transaction.fn-5ws2MHHG.js → transaction.fn-CffTt-m0.js} +2 -2
  125. package/dist/{trigger-DHq8ksaN.js → trigger-p1qe5j1P.js} +9 -9
  126. package/dist/{useMarketingMaterialActions-DhBVUMSG.js → useMarketingMaterialActions-D2DL2Snn.js} +4 -4
  127. package/dist/{usePagination-t6nU2p5V.js → usePagination-C4nIvY9d.js} +1 -1
  128. package/dist/{user-KJLOr9ee.js → user-DAHq0Ejn.js} +1 -1
  129. package/dist/vue-i18n-V_5_FW5c.js +2365 -0
  130. package/dist/{xlsx-BkxKl6H8.js → xlsx-D7YXRI5m.js} +166 -166
  131. package/dist/{zod-CLLw9flE.js → zod-B-SxImHf.js} +1 -1
  132. package/package.json +3 -7
  133. package/dist/AuditLogs-DhXCWAPt.js +0 -2016
  134. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-DjrUbq3p.js +0 -4439
  135. package/dist/Grab-BqMAyeT4.js +0 -301
  136. package/dist/ReviewFacebookCallback-BckFN6Dh.js +0 -225
  137. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-04yLkHZC.js +0 -1923
  138. package/dist/Settings-D_YrG-1N.js +0 -286
  139. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-DZGywP7T.js +0 -1319
  140. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-YIWh91VO.js +0 -7007
  141. package/dist/Upselling-Bc8sJPTF.js +0 -1013
  142. package/dist/campaign.fn-CFGvGCnh.js +0 -776
  143. package/dist/duplicateCampaign-DUktLBHE.js +0 -51
  144. package/dist/google-BQK68wbe.js +0 -5
  145. package/dist/objectid-Wc5m2Orq.js +0 -145
  146. package/dist/template-DLUzJbvo.js +0 -224
  147. package/dist/vue-i18n-DCq2tYAx.js +0 -2365
@@ -1,144 +1,133 @@
1
- import { defineComponent as xe, ref as te, h as U, Comment as cn, computed as Y, watch as ie, resolveComponent as ee, openBlock as j, createElementBlock as me, createVNode as S, unref as _, createElementVNode as I, toDisplayString as R, createBlock as Oe, withCtx as Z, Fragment as It, renderList as ln, onMounted as un, createCommentVNode as Pe, nextTick as dn } from "vue";
1
+ import { defineComponent as xe, ref as te, h as U, Comment as cn, computed as B, watch as ie, resolveComponent as ee, openBlock as W, createElementBlock as me, createVNode as R, unref as g, createElementVNode as I, toDisplayString as P, createBlock as Oe, withCtx as Z, Fragment as It, renderList as ln, onMounted as un, createCommentVNode as Ae, nextTick as dn } from "vue";
2
2
  import { useRouter as yt, useRoute as wt, RouterView as hn } from "vue-router";
3
3
  import { useCoreStore as ge, FeedMeAuth as fn } from "@feedmepos/mf-common";
4
4
  import { u as pn } from "./app-wDQR6dpb.js";
5
- import { u as mn } from "./business-28bym_1L.js";
6
- import { u as gn, l as _n } from "./feature-flag-CjzcqKbW.js";
7
- import "./index-EJ2519DL.js";
8
- import { components as W, useSnackbar as vn, useDialog as In } from "@feedmepos/ui-library";
9
- import { u as Tt } from "./vue-i18n-DCq2tYAx.js";
10
- import { m as yn } from "./index-wOCVa2Eh.js";
11
- import { C as Xe } from "./timezone-BV11O4o0.js";
12
- import { u as wn } from "./onboarding-k2Qm1tTl.js";
13
- import { R as f, A as Tn, a as Qe } from "./app-vKvoaMkb.js";
14
- import { J as kn } from "./JsonViewer-v8_C7l5N.js";
15
- import { r as Le, L as bn, g as kt, i as En, a as Sn, _ as Ze, C as et, b as Rn, S as se, c as A, d as X, E as Fe, e as An, f as bt, h as Pn, j as Cn, k as Et, l as w, m as Nn, F as Ve, n as On, q as oe, o as Ln, p as Mn, s as Un, t as Dn, u as xn } from "./index.esm2017-C3o6d_kv.js";
5
+ import { u as mn } from "./business-BJU9uFPa.js";
6
+ import { u as gn, l as _n } from "./feature-flag-CEjA6txQ.js";
7
+ import "./index-CpmyzzYE.js";
8
+ import { components as j, useSnackbar as vn, useDialog as In } from "@feedmepos/ui-library";
9
+ import { u as Tt } from "./vue-i18n-V_5_FW5c.js";
10
+ import { m as yn } from "./index-D_3FBcG0.js";
11
+ import { C as Xe } from "./timezone-BD7sKhu-.js";
12
+ import { u as wn } from "./onboarding-DJVHySNw.js";
13
+ import { R as p, g as Tn, A as kn, a as Qe } from "./app-CMT8marC.js";
14
+ import { J as bn } from "./JsonViewer-v8_C7l5N.js";
15
+ import { r as Le, L as En, g as kt, i as Sn, a as Rn, _ as Ze, C as et, b as Pn, S as se, c as A, d as X, E as Fe, e as An, f as bt, h as Cn, j as Nn, k as Et, l as k, m as On, F as Ve, n as Ln, q as oe, o as Mn, p as Un, s as Dn, t as xn, u as Fn } from "./index.esm2017-DUf9koW-.js";
16
16
  import { _ as $e } from "./tslib.es6-BCqqvLQ_.js";
17
- import { S as tt, c as Fn } from "./index-DLxrYNl3.js";
18
- const Vn = { class: "flex flex-col h-full justify-between py-16" }, $n = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary text-center" }, Hn = /* @__PURE__ */ xe({
17
+ import { S as tt, c as Vn } from "./index-BVNAEKsI.js";
18
+ const $n = { class: "flex flex-col h-full justify-between py-16" }, Hn = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary text-center" }, jn = /* @__PURE__ */ xe({
19
19
  __name: "NavigationTab",
20
20
  setup(n) {
21
21
  const { t: e, locale: t } = Tt(), i = wn(), r = gn(), s = te(), o = [
22
22
  {
23
23
  label: e("connect.navigation.analytic"),
24
- value: f["$connect-ANALYTIC"]
25
- },
26
- {
27
- label: e("connect.navigation.upselling"),
28
- value: f["$connect-UPSELLING"]
24
+ value: p["$connect-ANALYTIC"]
29
25
  },
26
+ { label: "Upselling", value: p["$connect-UPSELLING"] },
30
27
  {
31
28
  label: e("connect.navigation.campaign"),
32
- value: f["$connect-CAMPAIGN"],
29
+ value: p["$connect-CAMPAIGN"],
33
30
  children: [
34
31
  {
35
32
  label: e("connect.navigation.promotion"),
36
- value: f["$connect-CAMPAIGN_PROMOTION"]
33
+ value: p["$connect-CAMPAIGN_PROMOTION"]
37
34
  },
38
35
  {
39
36
  label: e("connect.navigation.voucher"),
40
- value: f["$connect-CAMPAIGN_VOUCHER"]
37
+ value: p["$connect-CAMPAIGN_VOUCHER"]
41
38
  },
42
39
  {
43
40
  label: e("connect.navigation.broadcast"),
44
- value: f["$connect-CAMPAIGN_BROADCAST"]
45
- },
46
- {
47
- label: e("connect.navigation.grab"),
48
- value: f["$connect-CAMPAIGN_GRAB"]
41
+ value: p["$connect-CAMPAIGN_BROADCAST"]
49
42
  }
50
43
  ]
51
44
  },
52
45
  {
53
46
  label: e("connect.navigation.program"),
54
- value: f["$connect-PROGRAM"],
47
+ value: p["$connect-PROGRAM"],
55
48
  children: [
56
49
  {
57
50
  label: e("connect.navigation.tier"),
58
- value: f["$connect-PROGRAM_TIER"]
51
+ value: p["$connect-PROGRAM_TIER"]
59
52
  },
60
53
  {
61
54
  label: e("connect.navigation.title"),
62
- value: f["$connect-PROGRAM_TITLE"]
55
+ value: p["$connect-PROGRAM_TITLE"]
63
56
  },
64
57
  {
65
58
  label: e("connect.navigation.experience"),
66
- value: f["$connect-PROGRAM_EXPERIENCE"]
59
+ value: p["$connect-PROGRAM_EXPERIENCE"]
67
60
  },
68
61
  {
69
62
  label: e("connect.navigation.point"),
70
- value: f["$connect-PROGRAM_POINT"],
71
- badge: () => U(W.FmPill, { variant: "premium" })
63
+ value: p["$connect-PROGRAM_POINT"],
64
+ badge: () => U(j.FmPill, { variant: "premium" })
72
65
  },
73
66
  {
74
67
  label: e("connect.navigation.credit"),
75
- value: f["$connect-PROGRAM_CREDIT"]
68
+ value: p["$connect-PROGRAM_CREDIT"]
76
69
  },
77
70
  {
78
71
  label: e("connect.navigation.game"),
79
- value: f["$connect-PROGRAM_GAME"],
80
- badge: () => U(W.FmPill, { variant: "premium" })
72
+ value: p["$connect-PROGRAM_GAME"],
73
+ badge: () => U(j.FmPill, { variant: "premium" })
81
74
  },
82
75
  {
83
76
  label: "Mission",
84
- value: f["$connect-PROGRAM_MISSION"]
77
+ value: p["$connect-PROGRAM_MISSION"]
85
78
  }
86
79
  ]
87
80
  },
88
81
  {
89
82
  label: e("connect.navigation.loyalty"),
90
- value: f["$connect-LOYALTY"],
83
+ value: p["$connect-LOYALTY"],
91
84
  children: [
92
85
  {
93
86
  label: e("connect.navigation.member"),
94
- value: f["$connect-LOYALTY_MEMBER_LIST"]
87
+ value: p["$connect-LOYALTY_MEMBER_LIST"]
95
88
  },
96
89
  {
97
90
  label: e("connect.navigation.segments"),
98
- value: f["$connect-LOYALTY_SEGMENT"],
99
- badge: () => U(W.FmPill, { variant: "premium" })
91
+ value: p["$connect-LOYALTY_SEGMENT"],
92
+ badge: () => U(j.FmPill, { variant: "premium" })
100
93
  },
101
94
  {
102
95
  label: e("connect.navigation.card"),
103
- value: f["$connect-LOYALTY_CARD"],
104
- badge: () => U(W.FmPill, { variant: "premium" })
96
+ value: p["$connect-LOYALTY_CARD"],
97
+ badge: () => U(j.FmPill, { variant: "premium" })
105
98
  }
106
99
  ]
107
100
  },
108
101
  {
109
102
  label: e("connect.navigation.whatsappBot"),
110
- value: f["$connect-WHATSAPP"],
111
- badge: () => U(W.FmPill, { variant: "beta" })
103
+ value: p["$connect-WHATSAPP"],
104
+ badge: () => U(j.FmPill, { variant: "beta" })
112
105
  },
113
106
  {
114
107
  label: e("connect.navigation.referral"),
115
- value: f["$connect-REFERRAL"],
116
- badge: () => U(W.FmPill, { variant: "premium" })
108
+ value: p["$connect-REFERRAL"],
109
+ badge: () => U(j.FmPill, { variant: "premium" })
117
110
  },
118
111
  {
119
112
  label: e("connect.navigation.store"),
120
- value: f["$connect-STORE"]
113
+ value: p["$connect-STORE"]
121
114
  },
122
115
  {
123
116
  label: e("connect.navigation.transaction"),
124
- value: f["$connect-TRANSACTION"]
117
+ value: p["$connect-TRANSACTION"]
125
118
  },
126
119
  {
127
120
  label: e("connect.navigation.marketingMaterials"),
128
- value: f["$connect-MARKETING"]
129
- },
130
- {
131
- label: e("connect.navigation.auditLogs"),
132
- value: f["$connect-AUDIT_LOGS"]
121
+ value: p["$connect-MARKETING"]
133
122
  },
134
123
  {
135
124
  label: e("connect.navigation.review"),
136
- value: f["$connect-REVIEW"]
125
+ value: p["$connect-REVIEW"]
137
126
  },
138
127
  {
139
128
  label: e("connect.navigation.goals"),
140
- value: f["$connect-GOALS"],
141
- badge: () => i.goalsRemaining > 0 ? U(W.FmBadge, {
129
+ value: p["$connect-GOALS"],
130
+ badge: () => i.goalsRemaining > 0 ? U(j.FmBadge, {
142
131
  variant: "numeric",
143
132
  inline: !0,
144
133
  value: i.goalsRemaining
@@ -146,56 +135,56 @@ const Vn = { class: "flex flex-col h-full justify-between py-16" }, $n = { class
146
135
  },
147
136
  {
148
137
  label: e("connect.navigation.setting"),
149
- value: f["$connect-SETTING"]
138
+ value: p["$connect-SETTING"]
150
139
  },
151
140
  {
152
141
  label: e("connect.navigation.bin"),
153
- value: f["$connect-BIN"]
142
+ value: p["$connect-BIN"]
154
143
  }
155
- ], c = Y(
144
+ ], c = B(
156
145
  () => o.filter(
157
- (h) => (h.value !== f["$connect-WHATSAPP"] || r() === "on") && (h.value !== f["$connect-UPSELLING"] || m.namespace.value === "dev" && m.currentCountry.value === "MY")
146
+ (f) => (f.value !== p["$connect-WHATSAPP"] || r() === "on") && (f.value !== p["$connect-UPSELLING"] || Tn() !== void 0)
158
147
  )
159
- ), a = yt(), l = wt(), d = o.reduce((h, p) => [...(p.children ?? []).map((g) => g.value), ...h, p.value], []), m = ge(), y = Y(() => {
160
- const h = m.currentCountry.value || "MY";
161
- return console.log(`[MF] Timezone set to: ${Xe[h]}`), Xe[h];
148
+ ), a = yt(), l = wt(), d = o.reduce((f, w) => [...(w.children ?? []).map((h) => h.value), ...f, w.value], []), m = ge(), v = B(() => {
149
+ const f = m.currentCountry.value || "MY";
150
+ return console.log(`[MF] Timezone set to: ${Xe[f]}`), Xe[f];
162
151
  });
163
152
  ie(
164
153
  // Watch `route.matched`, not `route`: `useRoute()` returns a reactive object
165
154
  // whose identity never changes, so watching it directly fired once via
166
155
  // `immediate` and the highlight then stayed on whatever page loaded first.
167
156
  () => l.matched,
168
- (h) => {
169
- const g = h.map((v) => v.name).reverse().find((v) => d.includes(v));
170
- g && (s.value = g);
157
+ (f) => {
158
+ const h = f.map((_) => _.name).reverse().find((_) => d.includes(_));
159
+ h && (s.value = h);
171
160
  },
172
161
  { immediate: !0 }
173
162
  ), ie(
174
163
  [() => {
175
- var h;
176
- return (h = m.currentBusiness.value) == null ? void 0 : h._id;
164
+ var f;
165
+ return (f = m.currentBusiness.value) == null ? void 0 : f._id;
177
166
  }, () => l.name, t],
178
- ([h]) => {
179
- h && i.read(t.value, h);
167
+ ([f]) => {
168
+ f && i.read(t.value, f);
180
169
  },
181
170
  { immediate: !0 }
182
171
  );
183
- async function T(h) {
184
- await a.push({ name: h });
172
+ async function y(f) {
173
+ await a.push({ name: f });
185
174
  }
186
- return (h, p) => {
187
- var v;
188
- const g = ee("FmCollapsibleTabs");
189
- return j(), me("div", Vn, [
190
- S(g, {
175
+ return (f, w) => {
176
+ var _;
177
+ const h = ee("FmCollapsibleTabs");
178
+ return W(), me("div", $n, [
179
+ R(h, {
191
180
  class: "border-fm-color-neutral-gray-100 border-r px-4",
192
- "model-value": (v = _(s)) == null ? void 0 : v.toString(),
193
- items: _(c),
194
- "onUpdate:modelValue": T
181
+ "model-value": (_ = g(s)) == null ? void 0 : _.toString(),
182
+ items: g(c),
183
+ "onUpdate:modelValue": y
195
184
  }, null, 8, ["model-value", "items"]),
196
- I("div", $n, [
197
- I("div", null, "Timezone: " + R(_(y).split("/")[1].replace("_", " ")), 1),
198
- I("div", null, "(UTC" + R(_(yn).tz(_(y)).format("Z")) + ")", 1)
185
+ I("div", Hn, [
186
+ I("div", null, "Timezone: " + P(g(v).split("/")[1].replace("_", " ")), 1),
187
+ I("div", null, "(UTC" + P(g(yn).tz(g(v)).format("Z")) + ")", 1)
199
188
  ])
200
189
  ]);
201
190
  };
@@ -208,13 +197,13 @@ function Wn() {
208
197
  return !1;
209
198
  }
210
199
  }
211
- function jn() {
200
+ function Bn() {
212
201
  try {
213
202
  localStorage.setItem(St, (/* @__PURE__ */ new Date()).toISOString());
214
203
  } catch {
215
204
  }
216
205
  }
217
- const Gn = { class: "flex flex-col gap-12" }, Bn = { class: "fm-corner-radius-xxl bg-fm-color-primary-oats flex items-start gap-4 self-start px-12 py-4" }, zn = { class: "fm-typo-en-body-sm-600 text-fm-color-primary" }, qn = { class: "fm-typo-en-title-sm-800 max-w-[560px] leading-[42px]" }, Kn = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary max-w-[600px]" }, Jn = { class: "flex flex-col gap-24 pb-8" }, Yn = { class: "grid grid-cols-1 gap-16 sm:grid-cols-3 md:grid-cols-3 lg:grid-cols-3" }, Xn = { class: "fm-corner-radius-sm bg-fm-color-primary-oats flex h-40 w-40 shrink-0 items-center justify-center" }, Qn = { class: "fm-typo-en-body-lg-600" }, Zn = { class: "fm-typo-en-body-md-400 text-fm-color-typo-tertiary" }, ei = { class: "shrink-0" }, ti = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ni = { class: "flex w-full flex-col gap-12 px-[16px]" }, ii = { class: "flex flex-wrap items-center gap-12" }, ri = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-tertiary" }, si = /* @__PURE__ */ xe({
206
+ const Gn = { class: "flex flex-col gap-12" }, zn = { class: "fm-corner-radius-xxl bg-fm-color-primary-oats flex items-start gap-4 self-start px-12 py-4" }, qn = { class: "fm-typo-en-body-sm-600 text-fm-color-primary" }, Kn = { class: "fm-typo-en-title-sm-800 max-w-[560px] leading-[42px]" }, Jn = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary max-w-[600px]" }, Yn = { class: "flex flex-col gap-24 pb-8" }, Xn = { class: "grid grid-cols-1 gap-16 sm:grid-cols-3 md:grid-cols-3 lg:grid-cols-3" }, Qn = { class: "fm-corner-radius-sm bg-fm-color-primary-oats flex h-40 w-40 shrink-0 items-center justify-center" }, Zn = { class: "fm-typo-en-body-lg-600" }, ei = { class: "fm-typo-en-body-md-400 text-fm-color-typo-tertiary" }, ti = { class: "shrink-0" }, ni = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ii = { class: "flex w-full flex-col gap-12 px-[16px]" }, ri = { class: "flex flex-wrap items-center gap-12" }, si = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-tertiary" }, oi = /* @__PURE__ */ xe({
218
207
  __name: "AiMarketingPromoDialog",
219
208
  setup(n) {
220
209
  let e = !1;
@@ -222,40 +211,40 @@ const Gn = { class: "flex flex-col gap-12" }, Bn = { class: "fm-corner-radius-xx
222
211
  { key: "completeContent", icon: "layers" },
223
212
  { key: "realContext", icon: "storefront" },
224
213
  { key: "socialFormat", icon: "aspect_ratio" }
225
- ], a = Y(() => {
226
- var h;
227
- const T = ((h = r.value) == null ? void 0 : h.permissions) ?? [];
228
- return Tn(
214
+ ], a = B(() => {
215
+ var f;
216
+ const y = ((f = r.value) == null ? void 0 : f.permissions) ?? [];
217
+ return kn(
229
218
  [
230
219
  {
231
220
  action: Qe.Action.manage,
232
221
  subject: Qe.Subject.Business.crm_marketingMaterial
233
222
  }
234
223
  ],
235
- T
224
+ y
236
225
  ).granted;
237
- }), l = Y(
226
+ }), l = B(
238
227
  () => s.value === "MY" && a.value
239
228
  );
240
229
  let d = !1;
241
230
  ie(
242
231
  l,
243
- (T) => {
244
- d || !T || (d = !0, !(Wn() || e) && (e = !0, o.value = !0));
232
+ (y) => {
233
+ d || !y || (d = !0, !(Wn() || e) && (e = !0, o.value = !0));
245
234
  },
246
235
  { immediate: !0 }
247
236
  );
248
237
  async function m() {
249
- o.value = !1, await i.push({ name: f["$connect-MARKETING"] });
238
+ o.value = !1, await i.push({ name: p["$connect-MARKETING"] });
250
239
  }
251
- function y() {
252
- jn(), o.value = !1;
240
+ function v() {
241
+ Bn(), o.value = !1;
253
242
  }
254
- return (T, h) => {
255
- const p = ee("FmIcon"), g = ee("FmCard"), v = ee("FmButton"), M = ee("FmDialog");
256
- return j(), Oe(M, {
243
+ return (y, f) => {
244
+ const w = ee("FmIcon"), h = ee("FmCard"), _ = ee("FmButton"), b = ee("FmDialog");
245
+ return W(), Oe(b, {
257
246
  modelValue: o.value,
258
- "onUpdate:modelValue": h[0] || (h[0] = (k) => o.value = k),
247
+ "onUpdate:modelValue": f[0] || (f[0] = (T) => o.value = T),
259
248
  "min-width": "min(500px, calc(100% - 48px))",
260
249
  "max-width": "min(860px, calc(100% - 48px))",
261
250
  "max-height": "90vh",
@@ -263,75 +252,75 @@ const Gn = { class: "flex flex-col gap-12" }, Bn = { class: "fm-corner-radius-xx
263
252
  }, {
264
253
  "dialog-header": Z(() => [
265
254
  I("div", Gn, [
266
- I("div", Bn, [
267
- S(p, {
255
+ I("div", zn, [
256
+ R(w, {
268
257
  name: "auto_awesome",
269
258
  size: "sm",
270
259
  color: "primary"
271
260
  }),
272
- I("span", zn, R(_(t)("connect.marketing.whatsNew.badge")), 1)
261
+ I("span", qn, P(g(t)("connect.marketing.whatsNew.badge")), 1)
273
262
  ]),
274
- I("h1", qn, R(_(t)("connect.marketing.whatsNew.title")), 1),
275
- I("p", Kn, R(_(t)("connect.marketing.whatsNew.subtitle")), 1)
263
+ I("h1", Kn, P(g(t)("connect.marketing.whatsNew.title")), 1),
264
+ I("p", Jn, P(g(t)("connect.marketing.whatsNew.subtitle")), 1)
276
265
  ])
277
266
  ]),
278
267
  "dialog-footer": Z(() => [
279
- I("div", ni, [
280
- I("div", ii, [
281
- S(v, {
268
+ I("div", ii, [
269
+ I("div", ri, [
270
+ R(_, {
282
271
  variant: "primary",
283
272
  size: "lg",
284
- label: _(t)("connect.marketing.whatsNew.cta"),
273
+ label: g(t)("connect.marketing.whatsNew.cta"),
285
274
  "append-icon": "arrow_forward",
286
275
  onClick: m
287
276
  }, null, 8, ["label"]),
288
- S(v, {
277
+ R(_, {
289
278
  variant: "tertiary",
290
279
  size: "lg",
291
- label: _(t)("connect.marketing.whatsNew.dismiss"),
292
- onClick: y
280
+ label: g(t)("connect.marketing.whatsNew.dismiss"),
281
+ onClick: v
293
282
  }, null, 8, ["label"])
294
283
  ]),
295
- I("div", ri, R(_(t)("connect.marketing.whatsNew.footnote")), 1)
284
+ I("div", si, P(g(t)("connect.marketing.whatsNew.footnote")), 1)
296
285
  ])
297
286
  ]),
298
287
  default: Z(() => [
299
- I("div", Jn, [
300
- I("div", Yn, [
301
- (j(), me(It, null, ln(c, (k) => S(g, {
302
- key: k.key,
288
+ I("div", Yn, [
289
+ I("div", Xn, [
290
+ (W(), me(It, null, ln(c, (T) => R(h, {
291
+ key: T.key,
303
292
  variant: "outlined",
304
293
  class: "!h-full flex flex-col gap-8 p-16"
305
294
  }, {
306
295
  default: Z(() => [
307
- I("div", Xn, [
308
- S(p, {
309
- name: k.icon,
296
+ I("div", Qn, [
297
+ R(w, {
298
+ name: T.icon,
310
299
  size: "md",
311
300
  color: "primary"
312
301
  }, null, 8, ["name"])
313
302
  ]),
314
- I("div", Qn, R(_(t)(`connect.marketing.whatsNew.benefits.${k.key}.title`)), 1),
315
- I("div", Zn, R(_(t)(
316
- `connect.marketing.whatsNew.benefits.${k.key}.description`
303
+ I("div", Zn, P(g(t)(`connect.marketing.whatsNew.benefits.${T.key}.title`)), 1),
304
+ I("div", ei, P(g(t)(
305
+ `connect.marketing.whatsNew.benefits.${T.key}.description`
317
306
  )), 1)
318
307
  ]),
319
308
  _: 2
320
309
  }, 1024)), 64))
321
310
  ]),
322
- S(g, {
311
+ R(h, {
323
312
  variant: "outlined",
324
313
  class: "flex items-start gap-12 p-16"
325
314
  }, {
326
315
  default: Z(() => [
327
- I("div", ei, [
328
- S(p, {
316
+ I("div", ti, [
317
+ R(w, {
329
318
  name: "lightbulb",
330
319
  size: "md",
331
320
  color: "primary"
332
321
  })
333
322
  ]),
334
- I("p", ti, R(_(t)("connect.marketing.whatsNew.callout")), 1)
323
+ I("p", ni, P(g(t)("connect.marketing.whatsNew.callout")), 1)
335
324
  ]),
336
325
  _: 1
337
326
  })
@@ -342,7 +331,7 @@ const Gn = { class: "flex flex-col gap-12" }, Bn = { class: "fm-corner-radius-xx
342
331
  };
343
332
  }
344
333
  });
345
- var oi = "firebase", ai = "10.12.4";
334
+ var ai = "firebase", ci = "10.12.4";
346
335
  /**
347
336
  * @license
348
337
  * Copyright 2020 Google LLC
@@ -359,13 +348,13 @@ var oi = "firebase", ai = "10.12.4";
359
348
  * See the License for the specific language governing permissions and
360
349
  * limitations under the License.
361
350
  */
362
- Le(oi, ai, "app");
351
+ Le(ai, ci, "app");
363
352
  function Rt() {
364
353
  return {
365
354
  "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."
366
355
  };
367
356
  }
368
- const ci = Rt, At = new Fe("auth", "Firebase", Rt());
357
+ const li = Rt, Pt = new Fe("auth", "Firebase", Rt());
369
358
  /**
370
359
  * @license
371
360
  * Copyright 2020 Google LLC
@@ -382,8 +371,8 @@ const ci = Rt, At = new Fe("auth", "Firebase", Rt());
382
371
  * See the License for the specific language governing permissions and
383
372
  * limitations under the License.
384
373
  */
385
- const _e = new bn("@firebase/auth");
386
- function li(n, ...e) {
374
+ const _e = new En("@firebase/auth");
375
+ function ui(n, ...e) {
387
376
  _e.logLevel <= Et.WARN && _e.warn(`Auth (${se}): ${n}`, ...e);
388
377
  }
389
378
  function de(n, ...e) {
@@ -405,38 +394,38 @@ function de(n, ...e) {
405
394
  * See the License for the specific language governing permissions and
406
395
  * limitations under the License.
407
396
  */
408
- function O(n, ...e) {
397
+ function L(n, ...e) {
409
398
  throw He(n, ...e);
410
399
  }
411
- function b(n, ...e) {
400
+ function E(n, ...e) {
412
401
  return He(n, ...e);
413
402
  }
414
- function Pt(n, e, t) {
415
- const i = Object.assign(Object.assign({}, ci()), { [e]: t });
403
+ function At(n, e, t) {
404
+ const i = Object.assign(Object.assign({}, li()), { [e]: t });
416
405
  return new Fe("auth", "Firebase", i).create(e, {
417
406
  appName: n.name
418
407
  });
419
408
  }
420
409
  function H(n) {
421
- return Pt(n, "operation-not-supported-in-this-environment", "Operations that alter the current user are not supported in conjunction with FirebaseServerApp");
410
+ return At(n, "operation-not-supported-in-this-environment", "Operations that alter the current user are not supported in conjunction with FirebaseServerApp");
422
411
  }
423
412
  function He(n, ...e) {
424
413
  if (typeof n != "string") {
425
414
  const t = e[0], i = [...e.slice(1)];
426
415
  return i[0] && (i[0].appName = n.name), n._errorFactory.create(t, ...i);
427
416
  }
428
- return At.create(n, ...e);
417
+ return Pt.create(n, ...e);
429
418
  }
430
419
  function u(n, e, ...t) {
431
420
  if (!n)
432
421
  throw He(e, ...t);
433
422
  }
434
- function P(n) {
423
+ function C(n) {
435
424
  const e = "INTERNAL ASSERTION FAILED: " + n;
436
425
  throw de(e), new Error(e);
437
426
  }
438
- function L(n, e) {
439
- n || P(e);
427
+ function M(n, e) {
428
+ n || C(e);
440
429
  }
441
430
  /**
442
431
  * @license
@@ -458,7 +447,7 @@ function Me() {
458
447
  var n;
459
448
  return typeof self < "u" && ((n = self.location) === null || n === void 0 ? void 0 : n.href) || "";
460
449
  }
461
- function ui() {
450
+ function di() {
462
451
  return nt() === "http:" || nt() === "https:";
463
452
  }
464
453
  function nt() {
@@ -481,15 +470,15 @@ function nt() {
481
470
  * See the License for the specific language governing permissions and
482
471
  * limitations under the License.
483
472
  */
484
- function di() {
473
+ function hi() {
485
474
  return typeof navigator < "u" && navigator && "onLine" in navigator && typeof navigator.onLine == "boolean" && // Apply only for traditional web apps and Chrome extensions.
486
475
  // This is especially true for Cordova apps which have unreliable
487
476
  // navigator.onLine behavior unless cordova-plugin-network-information is
488
477
  // installed which overwrites the native navigator.onLine value and
489
478
  // defines navigator.connection.
490
- (ui() || Rn() || "connection" in navigator) ? navigator.onLine : !0;
479
+ (di() || Pn() || "connection" in navigator) ? navigator.onLine : !0;
491
480
  }
492
- function hi() {
481
+ function fi() {
493
482
  if (typeof navigator > "u")
494
483
  return null;
495
484
  const n = navigator;
@@ -519,10 +508,10 @@ function hi() {
519
508
  */
520
509
  class ae {
521
510
  constructor(e, t) {
522
- this.shortDelay = e, this.longDelay = t, L(t > e, "Short delay should be less than long delay!"), this.isMobile = En() || Sn();
511
+ this.shortDelay = e, this.longDelay = t, M(t > e, "Short delay should be less than long delay!"), this.isMobile = Sn() || Rn();
523
512
  }
524
513
  get() {
525
- return di() ? this.isMobile ? this.longDelay : this.shortDelay : Math.min(5e3, this.shortDelay);
514
+ return hi() ? this.isMobile ? this.longDelay : this.shortDelay : Math.min(5e3, this.shortDelay);
526
515
  }
527
516
  }
528
517
  /**
@@ -541,8 +530,8 @@ class ae {
541
530
  * See the License for the specific language governing permissions and
542
531
  * limitations under the License.
543
532
  */
544
- function We(n, e) {
545
- L(n.emulator, "Emulator should always be set here");
533
+ function je(n, e) {
534
+ M(n.emulator, "Emulator should always be set here");
546
535
  const { url: t } = n.emulator;
547
536
  return e ? `${t}${e.startsWith("/") ? e.slice(1) : e}` : t;
548
537
  }
@@ -575,7 +564,7 @@ class Ct {
575
564
  return globalThis.fetch;
576
565
  if (typeof fetch < "u")
577
566
  return fetch;
578
- P("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill");
567
+ C("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill");
579
568
  }
580
569
  static headers() {
581
570
  if (this.headersImpl)
@@ -586,7 +575,7 @@ class Ct {
586
575
  return globalThis.Headers;
587
576
  if (typeof Headers < "u")
588
577
  return Headers;
589
- P("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill");
578
+ C("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill");
590
579
  }
591
580
  static response() {
592
581
  if (this.responseImpl)
@@ -597,7 +586,7 @@ class Ct {
597
586
  return globalThis.Response;
598
587
  if (typeof Response < "u")
599
588
  return Response;
600
- P("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill");
589
+ C("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill");
601
590
  }
602
591
  }
603
592
  /**
@@ -616,7 +605,7 @@ class Ct {
616
605
  * See the License for the specific language governing permissions and
617
606
  * limitations under the License.
618
607
  */
619
- const fi = {
608
+ const pi = {
620
609
  // Custom token errors.
621
610
  CREDENTIAL_MISMATCH: "custom-token-mismatch",
622
611
  // This can only happen if the SDK sends a bad request.
@@ -707,7 +696,7 @@ const fi = {
707
696
  * See the License for the specific language governing permissions and
708
697
  * limitations under the License.
709
698
  */
710
- const pi = new ae(3e4, 6e4);
699
+ const mi = new ae(3e4, 6e4);
711
700
  function Te(n, e) {
712
701
  return n.tenantId && !e.tenantId ? Object.assign(Object.assign({}, e), { tenantId: n.tenantId }) : e;
713
702
  }
@@ -733,9 +722,9 @@ async function Q(n, e, t, i, r = {}) {
733
722
  }
734
723
  async function Nt(n, e, t) {
735
724
  n._canInitEmulator = !1;
736
- const i = Object.assign(Object.assign({}, fi), e);
725
+ const i = Object.assign(Object.assign({}, pi), e);
737
726
  try {
738
- const r = new mi(n), s = await Promise.race([
727
+ const r = new gi(n), s = await Promise.race([
739
728
  t(),
740
729
  r.promise
741
730
  ]);
@@ -755,33 +744,33 @@ async function Nt(n, e, t) {
755
744
  throw ue(n, "user-disabled", o);
756
745
  const d = i[a] || a.toLowerCase().replace(/[_\s]+/g, "-");
757
746
  if (l)
758
- throw Pt(n, d, l);
759
- O(n, d);
747
+ throw At(n, d, l);
748
+ L(n, d);
760
749
  }
761
750
  } catch (r) {
762
751
  if (r instanceof Ve)
763
752
  throw r;
764
- O(n, "network-request-failed", { message: String(r) });
753
+ L(n, "network-request-failed", { message: String(r) });
765
754
  }
766
755
  }
767
756
  async function Ot(n, e, t, i, r = {}) {
768
757
  const s = await Q(n, e, t, i, r);
769
- return "mfaPendingCredential" in s && O(n, "multi-factor-auth-required", {
758
+ return "mfaPendingCredential" in s && L(n, "multi-factor-auth-required", {
770
759
  _serverResponse: s
771
760
  }), s;
772
761
  }
773
762
  function Lt(n, e, t, i) {
774
763
  const r = `${e}${t}?${i}`;
775
- return n.config.emulator ? We(n.config, r) : `${n.config.apiScheme}://${r}`;
764
+ return n.config.emulator ? je(n.config, r) : `${n.config.apiScheme}://${r}`;
776
765
  }
777
- class mi {
766
+ class gi {
778
767
  constructor(e) {
779
768
  this.auth = e, this.timer = null, this.promise = new Promise((t, i) => {
780
- this.timer = setTimeout(() => i(b(
769
+ this.timer = setTimeout(() => i(E(
781
770
  this.auth,
782
771
  "network-request-failed"
783
772
  /* AuthErrorCode.NETWORK_REQUEST_FAILED */
784
- )), pi.get());
773
+ )), mi.get());
785
774
  });
786
775
  }
787
776
  clearNetworkTimeout() {
@@ -793,7 +782,7 @@ function ue(n, e, t) {
793
782
  appName: n.name
794
783
  };
795
784
  t.email && (i.email = t.email), t.phoneNumber && (i.phoneNumber = t.phoneNumber);
796
- const r = b(n, e, i);
785
+ const r = E(n, e, i);
797
786
  return r.customData._tokenResponse = t, r;
798
787
  }
799
788
  /**
@@ -812,7 +801,7 @@ function ue(n, e, t) {
812
801
  * See the License for the specific language governing permissions and
813
802
  * limitations under the License.
814
803
  */
815
- async function gi(n, e) {
804
+ async function _i(n, e) {
816
805
  return Q(n, "POST", "/v1/accounts:delete", e);
817
806
  }
818
807
  async function Mt(n, e) {
@@ -843,8 +832,8 @@ function ne(n) {
843
832
  } catch {
844
833
  }
845
834
  }
846
- async function _i(n, e = !1) {
847
- const t = X(n), i = await t.getIdToken(e), r = je(i);
835
+ async function vi(n, e = !1) {
836
+ const t = X(n), i = await t.getIdToken(e), r = We(i);
848
837
  u(
849
838
  r && r.exp && r.auth_time && r.iat,
850
839
  t.auth,
@@ -865,19 +854,19 @@ async function _i(n, e = !1) {
865
854
  function Ce(n) {
866
855
  return Number(n) * 1e3;
867
856
  }
868
- function je(n) {
857
+ function We(n) {
869
858
  const [e, t, i] = n.split(".");
870
859
  if (e === void 0 || t === void 0 || i === void 0)
871
860
  return de("JWT malformed, contained fewer than 3 sections"), null;
872
861
  try {
873
- const r = On(t);
862
+ const r = Ln(t);
874
863
  return r ? JSON.parse(r) : (de("Failed to decode base64 JWT payload"), null);
875
864
  } catch (r) {
876
865
  return de("Caught error parsing JWT payload as JSON", r == null ? void 0 : r.toString()), null;
877
866
  }
878
867
  }
879
868
  function it(n) {
880
- const e = je(n);
869
+ const e = We(n);
881
870
  return u(
882
871
  e,
883
872
  "internal-error"
@@ -914,10 +903,10 @@ async function re(n, e, t = !1) {
914
903
  try {
915
904
  return await e;
916
905
  } catch (i) {
917
- throw i instanceof Ve && vi(i) && n.auth.currentUser === n && await n.auth.signOut(), i;
906
+ throw i instanceof Ve && Ii(i) && n.auth.currentUser === n && await n.auth.signOut(), i;
918
907
  }
919
908
  }
920
- function vi({ code: n }) {
909
+ function Ii({ code: n }) {
921
910
  return n === "auth/user-disabled" || n === "auth/user-token-expired";
922
911
  }
923
912
  /**
@@ -936,7 +925,7 @@ function vi({ code: n }) {
936
925
  * See the License for the specific language governing permissions and
937
926
  * limitations under the License.
938
927
  */
939
- class Ii {
928
+ class yi {
940
929
  constructor(e) {
941
930
  this.user = e, this.isRunning = !1, this.timerId = null, this.errorBackoff = 3e4;
942
931
  }
@@ -1042,7 +1031,7 @@ async function ve(n) {
1042
1031
  );
1043
1032
  const s = r.users[0];
1044
1033
  n._notifyReloadListener(s);
1045
- const o = !((e = s.providerUserInfo) === null || e === void 0) && e.length ? Ut(s.providerUserInfo) : [], c = wi(n.providerData, o), a = n.isAnonymous, l = !(n.email && s.passwordHash) && !(c != null && c.length), d = a ? l : !1, m = {
1034
+ const o = !((e = s.providerUserInfo) === null || e === void 0) && e.length ? Ut(s.providerUserInfo) : [], c = Ti(n.providerData, o), a = n.isAnonymous, l = !(n.email && s.passwordHash) && !(c != null && c.length), d = a ? l : !1, m = {
1046
1035
  uid: s.localId,
1047
1036
  displayName: s.displayName || null,
1048
1037
  photoURL: s.photoUrl || null,
@@ -1056,11 +1045,11 @@ async function ve(n) {
1056
1045
  };
1057
1046
  Object.assign(n, m);
1058
1047
  }
1059
- async function yi(n) {
1048
+ async function wi(n) {
1060
1049
  const e = X(n);
1061
1050
  await ve(e), await e.auth._persistUserIfCurrent(e), e.auth._notifyListenersIfCurrent(e);
1062
1051
  }
1063
- function wi(n, e) {
1052
+ function Ti(n, e) {
1064
1053
  return [...n.filter((i) => !e.some((r) => r.providerId === i.providerId)), ...e];
1065
1054
  }
1066
1055
  function Ut(n) {
@@ -1092,7 +1081,7 @@ function Ut(n) {
1092
1081
  * See the License for the specific language governing permissions and
1093
1082
  * limitations under the License.
1094
1083
  */
1095
- async function Ti(n, e) {
1084
+ async function ki(n, e) {
1096
1085
  const t = await Nt(n, {}, async () => {
1097
1086
  const i = oe({
1098
1087
  grant_type: "refresh_token",
@@ -1113,7 +1102,7 @@ async function Ti(n, e) {
1113
1102
  refreshToken: t.refresh_token
1114
1103
  };
1115
1104
  }
1116
- async function ki(n, e) {
1105
+ async function bi(n, e) {
1117
1106
  return Q(n, "POST", "/v2/accounts:revokeToken", Te(n, e));
1118
1107
  }
1119
1108
  /**
@@ -1132,7 +1121,7 @@ async function ki(n, e) {
1132
1121
  * See the License for the specific language governing permissions and
1133
1122
  * limitations under the License.
1134
1123
  */
1135
- class q {
1124
+ class K {
1136
1125
  constructor() {
1137
1126
  this.refreshToken = null, this.accessToken = null, this.expirationTime = null;
1138
1127
  }
@@ -1177,14 +1166,14 @@ class q {
1177
1166
  this.refreshToken = null;
1178
1167
  }
1179
1168
  async refresh(e, t) {
1180
- const { accessToken: i, refreshToken: r, expiresIn: s } = await Ti(e, t);
1169
+ const { accessToken: i, refreshToken: r, expiresIn: s } = await ki(e, t);
1181
1170
  this.updateTokensAndExpiration(i, r, Number(s));
1182
1171
  }
1183
1172
  updateTokensAndExpiration(e, t, i) {
1184
1173
  this.refreshToken = t || null, this.accessToken = e || null, this.expirationTime = Date.now() + i * 1e3;
1185
1174
  }
1186
1175
  static fromJSON(e, t) {
1187
- const { refreshToken: i, accessToken: r, expirationTime: s } = t, o = new q();
1176
+ const { refreshToken: i, accessToken: r, expirationTime: s } = t, o = new K();
1188
1177
  return i && (u(typeof i == "string", "internal-error", {
1189
1178
  appName: e
1190
1179
  }), o.refreshToken = i), r && (u(typeof r == "string", "internal-error", {
@@ -1204,10 +1193,10 @@ class q {
1204
1193
  this.accessToken = e.accessToken, this.refreshToken = e.refreshToken, this.expirationTime = e.expirationTime;
1205
1194
  }
1206
1195
  _clone() {
1207
- return Object.assign(new q(), this.toJSON());
1196
+ return Object.assign(new K(), this.toJSON());
1208
1197
  }
1209
1198
  _performRefresh() {
1210
- return P("not implemented");
1199
+ return C("not implemented");
1211
1200
  }
1212
1201
  }
1213
1202
  /**
@@ -1229,10 +1218,10 @@ class q {
1229
1218
  function D(n, e) {
1230
1219
  u(typeof n == "string" || typeof n > "u", "internal-error", { appName: e });
1231
1220
  }
1232
- class C {
1221
+ class N {
1233
1222
  constructor(e) {
1234
1223
  var { uid: t, auth: i, stsTokenManager: r } = e, s = $e(e, ["uid", "auth", "stsTokenManager"]);
1235
- this.providerId = "firebase", this.proactiveRefresh = new Ii(this), this.reloadUserInfo = null, this.reloadListener = null, this.uid = t, this.auth = i, this.stsTokenManager = r, this.accessToken = r.accessToken, this.displayName = s.displayName || null, this.email = s.email || null, this.emailVerified = s.emailVerified || !1, this.phoneNumber = s.phoneNumber || null, this.photoURL = s.photoURL || null, this.isAnonymous = s.isAnonymous || !1, this.tenantId = s.tenantId || null, this.providerData = s.providerData ? [...s.providerData] : [], this.metadata = new Ue(s.createdAt || void 0, s.lastLoginAt || void 0);
1224
+ this.providerId = "firebase", this.proactiveRefresh = new yi(this), this.reloadUserInfo = null, this.reloadListener = null, this.uid = t, this.auth = i, this.stsTokenManager = r, this.accessToken = r.accessToken, this.displayName = s.displayName || null, this.email = s.email || null, this.emailVerified = s.emailVerified || !1, this.phoneNumber = s.phoneNumber || null, this.photoURL = s.photoURL || null, this.isAnonymous = s.isAnonymous || !1, this.tenantId = s.tenantId || null, this.providerData = s.providerData ? [...s.providerData] : [], this.metadata = new Ue(s.createdAt || void 0, s.lastLoginAt || void 0);
1236
1225
  }
1237
1226
  async getIdToken(e) {
1238
1227
  const t = await re(this, this.stsTokenManager.getToken(this.auth, e));
@@ -1244,10 +1233,10 @@ class C {
1244
1233
  ), this.accessToken !== t && (this.accessToken = t, await this.auth._persistUserIfCurrent(this), this.auth._notifyListenersIfCurrent(this)), t;
1245
1234
  }
1246
1235
  getIdTokenResult(e) {
1247
- return _i(this, e);
1236
+ return vi(this, e);
1248
1237
  }
1249
1238
  reload() {
1250
- return yi(this);
1239
+ return wi(this);
1251
1240
  }
1252
1241
  _assign(e) {
1253
1242
  this !== e && (u(
@@ -1258,7 +1247,7 @@ class C {
1258
1247
  ), this.displayName = e.displayName, this.photoURL = e.photoURL, this.email = e.email, this.emailVerified = e.emailVerified, this.phoneNumber = e.phoneNumber, this.isAnonymous = e.isAnonymous, this.tenantId = e.tenantId, this.providerData = e.providerData.map((t) => Object.assign({}, t)), this.metadata._copy(e.metadata), this.stsTokenManager._assign(e.stsTokenManager));
1259
1248
  }
1260
1249
  _clone(e) {
1261
- const t = new C(Object.assign(Object.assign({}, this), { auth: e, stsTokenManager: this.stsTokenManager._clone() }));
1250
+ const t = new N(Object.assign(Object.assign({}, this), { auth: e, stsTokenManager: this.stsTokenManager._clone() }));
1262
1251
  return t.metadata._copy(this.metadata), t;
1263
1252
  }
1264
1253
  _onReload(e) {
@@ -1286,7 +1275,7 @@ class C {
1286
1275
  if (A(this.auth.app))
1287
1276
  return Promise.reject(H(this.auth));
1288
1277
  const e = await this.getIdToken();
1289
- return await re(this, gi(this.auth, { idToken: e })), this.stsTokenManager.clearRefreshToken(), this.auth.signOut();
1278
+ return await re(this, _i(this.auth, { idToken: e })), this.stsTokenManager.clearRefreshToken(), this.auth.signOut();
1290
1279
  }
1291
1280
  toJSON() {
1292
1281
  return Object.assign(Object.assign({
@@ -1314,20 +1303,20 @@ class C {
1314
1303
  }
1315
1304
  static _fromJSON(e, t) {
1316
1305
  var i, r, s, o, c, a, l, d;
1317
- const m = (i = t.displayName) !== null && i !== void 0 ? i : void 0, y = (r = t.email) !== null && r !== void 0 ? r : void 0, T = (s = t.phoneNumber) !== null && s !== void 0 ? s : void 0, h = (o = t.photoURL) !== null && o !== void 0 ? o : void 0, p = (c = t.tenantId) !== null && c !== void 0 ? c : void 0, g = (a = t._redirectEventId) !== null && a !== void 0 ? a : void 0, v = (l = t.createdAt) !== null && l !== void 0 ? l : void 0, M = (d = t.lastLoginAt) !== null && d !== void 0 ? d : void 0, { uid: k, emailVerified: Ke, isAnonymous: Je, providerData: Re, stsTokenManager: Ye } = t;
1306
+ const m = (i = t.displayName) !== null && i !== void 0 ? i : void 0, v = (r = t.email) !== null && r !== void 0 ? r : void 0, y = (s = t.phoneNumber) !== null && s !== void 0 ? s : void 0, f = (o = t.photoURL) !== null && o !== void 0 ? o : void 0, w = (c = t.tenantId) !== null && c !== void 0 ? c : void 0, h = (a = t._redirectEventId) !== null && a !== void 0 ? a : void 0, _ = (l = t.createdAt) !== null && l !== void 0 ? l : void 0, b = (d = t.lastLoginAt) !== null && d !== void 0 ? d : void 0, { uid: T, emailVerified: Ke, isAnonymous: Je, providerData: Re, stsTokenManager: Ye } = t;
1318
1307
  u(
1319
- k && Ye,
1308
+ T && Ye,
1320
1309
  e,
1321
1310
  "internal-error"
1322
1311
  /* AuthErrorCode.INTERNAL_ERROR */
1323
1312
  );
1324
- const on = q.fromJSON(this.name, Ye);
1313
+ const on = K.fromJSON(this.name, Ye);
1325
1314
  u(
1326
- typeof k == "string",
1315
+ typeof T == "string",
1327
1316
  e,
1328
1317
  "internal-error"
1329
1318
  /* AuthErrorCode.INTERNAL_ERROR */
1330
- ), D(m, e.name), D(y, e.name), u(
1319
+ ), D(m, e.name), D(v, e.name), u(
1331
1320
  typeof Ke == "boolean",
1332
1321
  e,
1333
1322
  "internal-error"
@@ -1337,22 +1326,22 @@ class C {
1337
1326
  e,
1338
1327
  "internal-error"
1339
1328
  /* AuthErrorCode.INTERNAL_ERROR */
1340
- ), D(T, e.name), D(h, e.name), D(p, e.name), D(g, e.name), D(v, e.name), D(M, e.name);
1341
- const Ae = new C({
1342
- uid: k,
1329
+ ), D(y, e.name), D(f, e.name), D(w, e.name), D(h, e.name), D(_, e.name), D(b, e.name);
1330
+ const Pe = new N({
1331
+ uid: T,
1343
1332
  auth: e,
1344
- email: y,
1333
+ email: v,
1345
1334
  emailVerified: Ke,
1346
1335
  displayName: m,
1347
1336
  isAnonymous: Je,
1348
- photoURL: h,
1349
- phoneNumber: T,
1350
- tenantId: p,
1337
+ photoURL: f,
1338
+ phoneNumber: y,
1339
+ tenantId: w,
1351
1340
  stsTokenManager: on,
1352
- createdAt: v,
1353
- lastLoginAt: M
1341
+ createdAt: _,
1342
+ lastLoginAt: b
1354
1343
  });
1355
- return Re && Array.isArray(Re) && (Ae.providerData = Re.map((an) => Object.assign({}, an))), g && (Ae._redirectEventId = g), Ae;
1344
+ return Re && Array.isArray(Re) && (Pe.providerData = Re.map((an) => Object.assign({}, an))), h && (Pe._redirectEventId = h), Pe;
1356
1345
  }
1357
1346
  /**
1358
1347
  * Initialize a User from an idToken server response
@@ -1360,9 +1349,9 @@ class C {
1360
1349
  * @param idTokenResponse
1361
1350
  */
1362
1351
  static async _fromIdTokenResponse(e, t, i = !1) {
1363
- const r = new q();
1352
+ const r = new K();
1364
1353
  r.updateFromServerResponse(t);
1365
- const s = new C({
1354
+ const s = new N({
1366
1355
  uid: t.localId,
1367
1356
  auth: e,
1368
1357
  stsTokenManager: r,
@@ -1382,9 +1371,9 @@ class C {
1382
1371
  "internal-error"
1383
1372
  /* AuthErrorCode.INTERNAL_ERROR */
1384
1373
  );
1385
- const s = r.providerUserInfo !== void 0 ? Ut(r.providerUserInfo) : [], o = !(r.email && r.passwordHash) && !(s != null && s.length), c = new q();
1374
+ const s = r.providerUserInfo !== void 0 ? Ut(r.providerUserInfo) : [], o = !(r.email && r.passwordHash) && !(s != null && s.length), c = new K();
1386
1375
  c.updateFromIdToken(i);
1387
- const a = new C({
1376
+ const a = new N({
1388
1377
  uid: r.localId,
1389
1378
  auth: e,
1390
1379
  stsTokenManager: c,
@@ -1421,10 +1410,10 @@ class C {
1421
1410
  * limitations under the License.
1422
1411
  */
1423
1412
  const rt = /* @__PURE__ */ new Map();
1424
- function N(n) {
1425
- L(n instanceof Function, "Expected a class definition");
1413
+ function O(n) {
1414
+ M(n instanceof Function, "Expected a class definition");
1426
1415
  let e = rt.get(n);
1427
- return e ? (L(e instanceof n, "Instance stored in cache mismatched with class"), e) : (e = new n(), rt.set(n, e), e);
1416
+ return e ? (M(e instanceof n, "Instance stored in cache mismatched with class"), e) : (e = new n(), rt.set(n, e), e);
1428
1417
  }
1429
1418
  /**
1430
1419
  * @license
@@ -1485,7 +1474,7 @@ const st = Dt;
1485
1474
  function he(n, e, t) {
1486
1475
  return `firebase:${n}:${e}:${t}`;
1487
1476
  }
1488
- class K {
1477
+ class J {
1489
1478
  constructor(e, t, i) {
1490
1479
  this.persistence = e, this.auth = t, this.userKey = i;
1491
1480
  const { config: r, name: s } = this.auth;
@@ -1496,7 +1485,7 @@ class K {
1496
1485
  }
1497
1486
  async getCurrentUser() {
1498
1487
  const e = await this.persistence._get(this.fullUserKey);
1499
- return e ? C._fromJSON(this.auth, e) : null;
1488
+ return e ? N._fromJSON(this.auth, e) : null;
1500
1489
  }
1501
1490
  removeCurrentUser() {
1502
1491
  return this.persistence._remove(this.fullUserKey);
@@ -1516,32 +1505,32 @@ class K {
1516
1505
  }
1517
1506
  static async create(e, t, i = "authUser") {
1518
1507
  if (!t.length)
1519
- return new K(N(st), e, i);
1508
+ return new J(O(st), e, i);
1520
1509
  const r = (await Promise.all(t.map(async (l) => {
1521
1510
  if (await l._isAvailable())
1522
1511
  return l;
1523
1512
  }))).filter((l) => l);
1524
- let s = r[0] || N(st);
1513
+ let s = r[0] || O(st);
1525
1514
  const o = he(i, e.config.apiKey, e.name);
1526
1515
  let c = null;
1527
1516
  for (const l of t)
1528
1517
  try {
1529
1518
  const d = await l._get(o);
1530
1519
  if (d) {
1531
- const m = C._fromJSON(e, d);
1520
+ const m = N._fromJSON(e, d);
1532
1521
  l !== s && (c = m), s = l;
1533
1522
  break;
1534
1523
  }
1535
1524
  } catch {
1536
1525
  }
1537
1526
  const a = r.filter((l) => l._shouldAllowMigration);
1538
- return !s._shouldAllowMigration || !a.length ? new K(s, e, i) : (s = a[0], c && await s._set(o, c.toJSON()), await Promise.all(t.map(async (l) => {
1527
+ return !s._shouldAllowMigration || !a.length ? new J(s, e, i) : (s = a[0], c && await s._set(o, c.toJSON()), await Promise.all(t.map(async (l) => {
1539
1528
  if (l !== s)
1540
1529
  try {
1541
1530
  await l._remove(o);
1542
1531
  } catch {
1543
1532
  }
1544
- })), new K(s, e, i));
1533
+ })), new J(s, e, i));
1545
1534
  }
1546
1535
  }
1547
1536
  /**
@@ -1576,9 +1565,9 @@ function ot(n) {
1576
1565
  return "Silk";
1577
1566
  if (Ht(e))
1578
1567
  return "Blackberry";
1579
- if (Wt(e))
1568
+ if (jt(e))
1580
1569
  return "Webos";
1581
- if (Ge(e))
1570
+ if (Be(e))
1582
1571
  return "Safari";
1583
1572
  if ((e.includes("chrome/") || Ft(e)) && !e.includes("edge/"))
1584
1573
  return "Chrome";
@@ -1591,42 +1580,42 @@ function ot(n) {
1591
1580
  }
1592
1581
  return "Other";
1593
1582
  }
1594
- function xt(n = w()) {
1583
+ function xt(n = k()) {
1595
1584
  return /firefox\//i.test(n);
1596
1585
  }
1597
- function Ge(n = w()) {
1586
+ function Be(n = k()) {
1598
1587
  const e = n.toLowerCase();
1599
1588
  return e.includes("safari/") && !e.includes("chrome/") && !e.includes("crios/") && !e.includes("android");
1600
1589
  }
1601
- function Ft(n = w()) {
1590
+ function Ft(n = k()) {
1602
1591
  return /crios\//i.test(n);
1603
1592
  }
1604
- function Vt(n = w()) {
1593
+ function Vt(n = k()) {
1605
1594
  return /iemobile/i.test(n);
1606
1595
  }
1607
- function $t(n = w()) {
1596
+ function $t(n = k()) {
1608
1597
  return /android/i.test(n);
1609
1598
  }
1610
- function Ht(n = w()) {
1599
+ function Ht(n = k()) {
1611
1600
  return /blackberry/i.test(n);
1612
1601
  }
1613
- function Wt(n = w()) {
1602
+ function jt(n = k()) {
1614
1603
  return /webos/i.test(n);
1615
1604
  }
1616
- function ke(n = w()) {
1605
+ function ke(n = k()) {
1617
1606
  return /iphone|ipad|ipod/i.test(n) || /macintosh/i.test(n) && /mobile/i.test(n);
1618
1607
  }
1619
- function bi(n = w()) {
1608
+ function Ei(n = k()) {
1620
1609
  var e;
1621
1610
  return ke(n) && !!(!((e = window.navigator) === null || e === void 0) && e.standalone);
1622
1611
  }
1623
- function Ei() {
1624
- return Ln() && document.documentMode === 10;
1612
+ function Si() {
1613
+ return Mn() && document.documentMode === 10;
1625
1614
  }
1626
- function jt(n = w()) {
1627
- return ke(n) || $t(n) || Wt(n) || Ht(n) || /windows phone/i.test(n) || Vt(n);
1615
+ function Wt(n = k()) {
1616
+ return ke(n) || $t(n) || jt(n) || Ht(n) || /windows phone/i.test(n) || Vt(n);
1628
1617
  }
1629
- function Si() {
1618
+ function Ri() {
1630
1619
  try {
1631
1620
  return !!(window && window !== window.top);
1632
1621
  } catch {
@@ -1649,14 +1638,14 @@ function Si() {
1649
1638
  * See the License for the specific language governing permissions and
1650
1639
  * limitations under the License.
1651
1640
  */
1652
- function Gt(n, e = []) {
1641
+ function Bt(n, e = []) {
1653
1642
  let t;
1654
1643
  switch (n) {
1655
1644
  case "Browser":
1656
- t = ot(w());
1645
+ t = ot(k());
1657
1646
  break;
1658
1647
  case "Worker":
1659
- t = `${ot(w())}-${n}`;
1648
+ t = `${ot(k())}-${n}`;
1660
1649
  break;
1661
1650
  default:
1662
1651
  t = n;
@@ -1680,7 +1669,7 @@ function Gt(n, e = []) {
1680
1669
  * See the License for the specific language governing permissions and
1681
1670
  * limitations under the License.
1682
1671
  */
1683
- class Ri {
1672
+ class Pi {
1684
1673
  constructor(e) {
1685
1674
  this.auth = e, this.queue = [];
1686
1675
  }
@@ -1754,12 +1743,12 @@ async function Ai(n, e = {}) {
1754
1743
  * See the License for the specific language governing permissions and
1755
1744
  * limitations under the License.
1756
1745
  */
1757
- const Pi = 6;
1758
- class Ci {
1746
+ const Ci = 6;
1747
+ class Ni {
1759
1748
  constructor(e) {
1760
1749
  var t, i, r, s;
1761
1750
  const o = e.customStrengthOptions;
1762
- this.customStrengthOptions = {}, this.customStrengthOptions.minPasswordLength = (t = o.minPasswordLength) !== null && t !== void 0 ? t : Pi, o.maxPasswordLength && (this.customStrengthOptions.maxPasswordLength = o.maxPasswordLength), o.containsLowercaseCharacter !== void 0 && (this.customStrengthOptions.containsLowercaseLetter = o.containsLowercaseCharacter), o.containsUppercaseCharacter !== void 0 && (this.customStrengthOptions.containsUppercaseLetter = o.containsUppercaseCharacter), o.containsNumericCharacter !== void 0 && (this.customStrengthOptions.containsNumericCharacter = o.containsNumericCharacter), o.containsNonAlphanumericCharacter !== void 0 && (this.customStrengthOptions.containsNonAlphanumericCharacter = o.containsNonAlphanumericCharacter), this.enforcementState = e.enforcementState, this.enforcementState === "ENFORCEMENT_STATE_UNSPECIFIED" && (this.enforcementState = "OFF"), this.allowedNonAlphanumericCharacters = (r = (i = e.allowedNonAlphanumericCharacters) === null || i === void 0 ? void 0 : i.join("")) !== null && r !== void 0 ? r : "", this.forceUpgradeOnSignin = (s = e.forceUpgradeOnSignin) !== null && s !== void 0 ? s : !1, this.schemaVersion = e.schemaVersion;
1751
+ this.customStrengthOptions = {}, this.customStrengthOptions.minPasswordLength = (t = o.minPasswordLength) !== null && t !== void 0 ? t : Ci, o.maxPasswordLength && (this.customStrengthOptions.maxPasswordLength = o.maxPasswordLength), o.containsLowercaseCharacter !== void 0 && (this.customStrengthOptions.containsLowercaseLetter = o.containsLowercaseCharacter), o.containsUppercaseCharacter !== void 0 && (this.customStrengthOptions.containsUppercaseLetter = o.containsUppercaseCharacter), o.containsNumericCharacter !== void 0 && (this.customStrengthOptions.containsNumericCharacter = o.containsNumericCharacter), o.containsNonAlphanumericCharacter !== void 0 && (this.customStrengthOptions.containsNonAlphanumericCharacter = o.containsNonAlphanumericCharacter), this.enforcementState = e.enforcementState, this.enforcementState === "ENFORCEMENT_STATE_UNSPECIFIED" && (this.enforcementState = "OFF"), this.allowedNonAlphanumericCharacters = (r = (i = e.allowedNonAlphanumericCharacters) === null || i === void 0 ? void 0 : i.join("")) !== null && r !== void 0 ? r : "", this.forceUpgradeOnSignin = (s = e.forceUpgradeOnSignin) !== null && s !== void 0 ? s : !1, this.schemaVersion = e.schemaVersion;
1763
1752
  }
1764
1753
  validatePassword(e) {
1765
1754
  var t, i, r, s, o, c;
@@ -1842,14 +1831,14 @@ class Ci {
1842
1831
  * See the License for the specific language governing permissions and
1843
1832
  * limitations under the License.
1844
1833
  */
1845
- class Ni {
1834
+ class Oi {
1846
1835
  constructor(e, t, i, r) {
1847
- this.app = e, this.heartbeatServiceProvider = t, this.appCheckServiceProvider = i, this.config = r, this.currentUser = null, this.emulatorConfig = null, this.operations = Promise.resolve(), this.authStateSubscription = new at(this), this.idTokenSubscription = new at(this), this.beforeStateQueue = new Ri(this), this.redirectUser = null, this.isProactiveRefreshEnabled = !1, this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION = 1, this._canInitEmulator = !0, this._isInitialized = !1, this._deleted = !1, this._initializationPromise = null, this._popupRedirectResolver = null, this._errorFactory = At, this._agentRecaptchaConfig = null, this._tenantRecaptchaConfigs = {}, this._projectPasswordPolicy = null, this._tenantPasswordPolicies = {}, this.lastNotifiedUid = void 0, this.languageCode = null, this.tenantId = null, this.settings = { appVerificationDisabledForTesting: !1 }, this.frameworks = [], this.name = e.name, this.clientVersion = r.sdkClientVersion;
1836
+ this.app = e, this.heartbeatServiceProvider = t, this.appCheckServiceProvider = i, this.config = r, this.currentUser = null, this.emulatorConfig = null, this.operations = Promise.resolve(), this.authStateSubscription = new at(this), this.idTokenSubscription = new at(this), this.beforeStateQueue = new Pi(this), this.redirectUser = null, this.isProactiveRefreshEnabled = !1, this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION = 1, this._canInitEmulator = !0, this._isInitialized = !1, this._deleted = !1, this._initializationPromise = null, this._popupRedirectResolver = null, this._errorFactory = Pt, this._agentRecaptchaConfig = null, this._tenantRecaptchaConfigs = {}, this._projectPasswordPolicy = null, this._tenantPasswordPolicies = {}, this.lastNotifiedUid = void 0, this.languageCode = null, this.tenantId = null, this.settings = { appVerificationDisabledForTesting: !1 }, this.frameworks = [], this.name = e.name, this.clientVersion = r.sdkClientVersion;
1848
1837
  }
1849
1838
  _initializeWithPersistence(e, t) {
1850
- return t && (this._popupRedirectResolver = N(t)), this._initializationPromise = this.queue(async () => {
1839
+ return t && (this._popupRedirectResolver = O(t)), this._initializationPromise = this.queue(async () => {
1851
1840
  var i, r;
1852
- if (!this._deleted && (this.persistenceManager = await K.create(this, e), !this._deleted)) {
1841
+ if (!this._deleted && (this.persistenceManager = await J.create(this, e), !this._deleted)) {
1853
1842
  if (!((i = this._popupRedirectResolver) === null || i === void 0) && i._shouldInitProactively)
1854
1843
  try {
1855
1844
  await this._popupRedirectResolver._initialize(this);
@@ -1880,7 +1869,7 @@ class Ni {
1880
1869
  }
1881
1870
  async initializeCurrentUserFromIdToken(e) {
1882
1871
  try {
1883
- const t = await Mt(this, { idToken: e }), i = await C._fromGetAccountInfoResponse(this, t, e);
1872
+ const t = await Mt(this, { idToken: e }), i = await N._fromGetAccountInfoResponse(this, t, e);
1884
1873
  await this.directlySetCurrentUser(i);
1885
1874
  } catch (t) {
1886
1875
  console.warn("FirebaseServerApp could not login user with provided authIdToken: ", t), await this.directlySetCurrentUser(null);
@@ -1938,7 +1927,7 @@ class Ni {
1938
1927
  return this.directlySetCurrentUser(e);
1939
1928
  }
1940
1929
  useDeviceLanguage() {
1941
- this.languageCode = hi();
1930
+ this.languageCode = fi();
1942
1931
  }
1943
1932
  async _delete() {
1944
1933
  this._deleted = !0;
@@ -1974,7 +1963,7 @@ class Ni {
1974
1963
  }
1975
1964
  setPersistence(e) {
1976
1965
  return A(this.app) ? Promise.reject(H(this)) : this.queue(async () => {
1977
- await this.assertedPersistence.setPersistence(N(e));
1966
+ await this.assertedPersistence.setPersistence(O(e));
1978
1967
  });
1979
1968
  }
1980
1969
  _getRecaptchaConfig() {
@@ -1989,7 +1978,7 @@ class Ni {
1989
1978
  return this.tenantId === null ? this._projectPasswordPolicy : this._tenantPasswordPolicies[this.tenantId];
1990
1979
  }
1991
1980
  async _updatePasswordPolicy() {
1992
- const e = await Ai(this), t = new Ci(e);
1981
+ const e = await Ai(this), t = new Ni(e);
1993
1982
  this.tenantId === null ? this._projectPasswordPolicy = t : this._tenantPasswordPolicies[this.tenantId] = t;
1994
1983
  }
1995
1984
  _getPersistence() {
@@ -2029,7 +2018,7 @@ class Ni {
2029
2018
  token: e,
2030
2019
  idToken: t
2031
2020
  };
2032
- this.tenantId != null && (i.tenantId = this.tenantId), await ki(this, i);
2021
+ this.tenantId != null && (i.tenantId = this.tenantId), await bi(this, i);
2033
2022
  }
2034
2023
  }
2035
2024
  toJSON() {
@@ -2047,15 +2036,15 @@ class Ni {
2047
2036
  }
2048
2037
  async getOrInitRedirectPersistenceManager(e) {
2049
2038
  if (!this.redirectPersistenceManager) {
2050
- const t = e && N(e) || this._popupRedirectResolver;
2039
+ const t = e && O(e) || this._popupRedirectResolver;
2051
2040
  u(
2052
2041
  t,
2053
2042
  this,
2054
2043
  "argument-error"
2055
2044
  /* AuthErrorCode.ARGUMENT_ERROR */
2056
- ), this.redirectPersistenceManager = await K.create(
2045
+ ), this.redirectPersistenceManager = await J.create(
2057
2046
  this,
2058
- [N(t._redirectPersistence)],
2047
+ [O(t._redirectPersistence)],
2059
2048
  "redirectUser"
2060
2049
  /* KeyName.REDIRECT_USER */
2061
2050
  ), this.redirectUser = await this.redirectPersistenceManager.getCurrentUser();
@@ -2142,7 +2131,7 @@ class Ni {
2142
2131
  ), this.persistenceManager;
2143
2132
  }
2144
2133
  _logFramework(e) {
2145
- !e || this.frameworks.includes(e) || (this.frameworks.push(e), this.frameworks.sort(), this.clientVersion = Gt(this.config.clientPlatform, this._getFrameworks()));
2134
+ !e || this.frameworks.includes(e) || (this.frameworks.push(e), this.frameworks.sort(), this.clientVersion = Bt(this.config.clientPlatform, this._getFrameworks()));
2146
2135
  }
2147
2136
  _getFrameworks() {
2148
2137
  return this.frameworks;
@@ -2172,7 +2161,7 @@ class Ni {
2172
2161
  async _getAppCheckToken() {
2173
2162
  var e;
2174
2163
  const t = await ((e = this.appCheckServiceProvider.getImmediate({ optional: !0 })) === null || e === void 0 ? void 0 : e.getToken());
2175
- return t != null && t.error && li(`Error while retrieving App Check token: ${t.error}`), t == null ? void 0 : t.token;
2164
+ return t != null && t.error && ui(`Error while retrieving App Check token: ${t.error}`), t == null ? void 0 : t.token;
2176
2165
  }
2177
2166
  }
2178
2167
  function be(n) {
@@ -2207,7 +2196,7 @@ class at {
2207
2196
  * See the License for the specific language governing permissions and
2208
2197
  * limitations under the License.
2209
2198
  */
2210
- let Be = {
2199
+ let Ge = {
2211
2200
  async loadJS() {
2212
2201
  throw new Error("Unable to load external scripts");
2213
2202
  },
@@ -2215,16 +2204,16 @@ let Be = {
2215
2204
  recaptchaEnterpriseScript: "",
2216
2205
  gapiScript: ""
2217
2206
  };
2218
- function Oi(n) {
2219
- Be = n;
2220
- }
2221
2207
  function Li(n) {
2222
- return Be.loadJS(n);
2208
+ Ge = n;
2223
2209
  }
2224
- function Mi() {
2225
- return Be.gapiScript;
2210
+ function Mi(n) {
2211
+ return Ge.loadJS(n);
2226
2212
  }
2227
- function Ui(n) {
2213
+ function Ui() {
2214
+ return Ge.gapiScript;
2215
+ }
2216
+ function Di(n) {
2228
2217
  return `__${n}${Math.floor(Math.random() * 1e6)}`;
2229
2218
  }
2230
2219
  /**
@@ -2243,13 +2232,13 @@ function Ui(n) {
2243
2232
  * See the License for the specific language governing permissions and
2244
2233
  * limitations under the License.
2245
2234
  */
2246
- function Di(n, e) {
2235
+ function xi(n, e) {
2247
2236
  const t = bt(n, "auth");
2248
2237
  if (t.isInitialized()) {
2249
2238
  const r = t.getImmediate(), s = t.getOptions();
2250
- if (Nn(s, e ?? {}))
2239
+ if (On(s, e ?? {}))
2251
2240
  return r;
2252
- O(
2241
+ L(
2253
2242
  r,
2254
2243
  "already-initialized"
2255
2244
  /* AuthErrorCode.ALREADY_INITIALIZED */
@@ -2257,11 +2246,11 @@ function Di(n, e) {
2257
2246
  }
2258
2247
  return t.initialize({ options: e });
2259
2248
  }
2260
- function xi(n, e) {
2261
- const t = (e == null ? void 0 : e.persistence) || [], i = (Array.isArray(t) ? t : [t]).map(N);
2249
+ function Fi(n, e) {
2250
+ const t = (e == null ? void 0 : e.persistence) || [], i = (Array.isArray(t) ? t : [t]).map(O);
2262
2251
  e != null && e.errorMap && n._updateErrorMap(e.errorMap), n._initializeWithPersistence(i, e == null ? void 0 : e.popupRedirectResolver);
2263
2252
  }
2264
- function Fi(n, e, t) {
2253
+ function Vi(n, e, t) {
2265
2254
  const i = be(n);
2266
2255
  u(
2267
2256
  i._canInitEmulator,
@@ -2274,20 +2263,20 @@ function Fi(n, e, t) {
2274
2263
  "invalid-emulator-scheme"
2275
2264
  /* AuthErrorCode.INVALID_EMULATOR_SCHEME */
2276
2265
  );
2277
- const r = !1, s = Bt(e), { host: o, port: c } = Vi(e), a = c === null ? "" : `:${c}`;
2266
+ const r = !1, s = Gt(e), { host: o, port: c } = $i(e), a = c === null ? "" : `:${c}`;
2278
2267
  i.config.emulator = { url: `${s}//${o}${a}/` }, i.settings.appVerificationDisabledForTesting = !0, i.emulatorConfig = Object.freeze({
2279
2268
  host: o,
2280
2269
  port: c,
2281
2270
  protocol: s.replace(":", ""),
2282
2271
  options: Object.freeze({ disableWarnings: r })
2283
- }), $i();
2272
+ }), Hi();
2284
2273
  }
2285
- function Bt(n) {
2274
+ function Gt(n) {
2286
2275
  const e = n.indexOf(":");
2287
2276
  return e < 0 ? "" : n.substr(0, e + 1);
2288
2277
  }
2289
- function Vi(n) {
2290
- const e = Bt(n), t = /(\/\/)?([^?#/]+)/.exec(n.substr(e.length));
2278
+ function $i(n) {
2279
+ const e = Gt(n), t = /(\/\/)?([^?#/]+)/.exec(n.substr(e.length));
2291
2280
  if (!t)
2292
2281
  return { host: "", port: null };
2293
2282
  const i = t[2].split("@").pop() || "", r = /^(\[[^\]]+\])(:|$)/.exec(i);
@@ -2305,7 +2294,7 @@ function ct(n) {
2305
2294
  const e = Number(n);
2306
2295
  return isNaN(e) ? null : e;
2307
2296
  }
2308
- function $i() {
2297
+ function Hi() {
2309
2298
  function n() {
2310
2299
  const e = document.createElement("p"), t = e.style;
2311
2300
  e.innerText = "Running in emulator mode. Do not use with production credentials.", t.position = "fixed", t.width = "100%", t.backgroundColor = "#ffffff", t.border = ".1em solid #000000", t.color = "#b50000", t.bottom = "0px", t.left = "0px", t.margin = "0px", t.zIndex = "10000", t.textAlign = "center", e.classList.add("firebase-emulator-warning"), document.body.appendChild(e);
@@ -2339,19 +2328,19 @@ class zt {
2339
2328
  * @returns a JSON-serializable representation of this object.
2340
2329
  */
2341
2330
  toJSON() {
2342
- return P("not implemented");
2331
+ return C("not implemented");
2343
2332
  }
2344
2333
  /** @internal */
2345
2334
  _getIdTokenResponse(e) {
2346
- return P("not implemented");
2335
+ return C("not implemented");
2347
2336
  }
2348
2337
  /** @internal */
2349
2338
  _linkToIdToken(e, t) {
2350
- return P("not implemented");
2339
+ return C("not implemented");
2351
2340
  }
2352
2341
  /** @internal */
2353
2342
  _getReauthenticationResolver(e) {
2354
- return P("not implemented");
2343
+ return C("not implemented");
2355
2344
  }
2356
2345
  }
2357
2346
  /**
@@ -2370,7 +2359,7 @@ class zt {
2370
2359
  * See the License for the specific language governing permissions and
2371
2360
  * limitations under the License.
2372
2361
  */
2373
- async function J(n, e) {
2362
+ async function Y(n, e) {
2374
2363
  return Ot(n, "POST", "/v1/accounts:signInWithIdp", Te(n, e));
2375
2364
  }
2376
2365
  /**
@@ -2389,7 +2378,7 @@ async function J(n, e) {
2389
2378
  * See the License for the specific language governing permissions and
2390
2379
  * limitations under the License.
2391
2380
  */
2392
- const Hi = "http://localhost";
2381
+ const ji = "http://localhost";
2393
2382
  class G extends zt {
2394
2383
  constructor() {
2395
2384
  super(...arguments), this.pendingToken = null;
@@ -2397,7 +2386,7 @@ class G extends zt {
2397
2386
  /** @internal */
2398
2387
  static _fromParams(e) {
2399
2388
  const t = new G(e.providerId, e.signInMethod);
2400
- return e.idToken || e.accessToken ? (e.idToken && (t.idToken = e.idToken), e.accessToken && (t.accessToken = e.accessToken), e.nonce && !e.pendingToken && (t.nonce = e.nonce), e.pendingToken && (t.pendingToken = e.pendingToken)) : e.oauthToken && e.oauthTokenSecret ? (t.accessToken = e.oauthToken, t.secret = e.oauthTokenSecret) : O(
2389
+ return e.idToken || e.accessToken ? (e.idToken && (t.idToken = e.idToken), e.accessToken && (t.accessToken = e.accessToken), e.nonce && !e.pendingToken && (t.nonce = e.nonce), e.pendingToken && (t.pendingToken = e.pendingToken)) : e.oauthToken && e.oauthTokenSecret ? (t.accessToken = e.oauthToken, t.secret = e.oauthTokenSecret) : L(
2401
2390
  "argument-error"
2402
2391
  /* AuthErrorCode.ARGUMENT_ERROR */
2403
2392
  ), t;
@@ -2433,21 +2422,21 @@ class G extends zt {
2433
2422
  /** @internal */
2434
2423
  _getIdTokenResponse(e) {
2435
2424
  const t = this.buildRequest();
2436
- return J(e, t);
2425
+ return Y(e, t);
2437
2426
  }
2438
2427
  /** @internal */
2439
2428
  _linkToIdToken(e, t) {
2440
2429
  const i = this.buildRequest();
2441
- return i.idToken = t, J(e, i);
2430
+ return i.idToken = t, Y(e, i);
2442
2431
  }
2443
2432
  /** @internal */
2444
2433
  _getReauthenticationResolver(e) {
2445
2434
  const t = this.buildRequest();
2446
- return t.autoCreate = !1, J(e, t);
2435
+ return t.autoCreate = !1, Y(e, t);
2447
2436
  }
2448
2437
  buildRequest() {
2449
2438
  const e = {
2450
- requestUri: Hi,
2439
+ requestUri: ji,
2451
2440
  returnSecureToken: !0
2452
2441
  };
2453
2442
  if (this.pendingToken)
@@ -2843,13 +2832,13 @@ $.PROVIDER_ID = "twitter.com";
2843
2832
  * See the License for the specific language governing permissions and
2844
2833
  * limitations under the License.
2845
2834
  */
2846
- class B {
2835
+ class z {
2847
2836
  constructor(e) {
2848
2837
  this.user = e.user, this.providerId = e.providerId, this._tokenResponse = e._tokenResponse, this.operationType = e.operationType;
2849
2838
  }
2850
2839
  static async _fromIdTokenResponse(e, t, i, r = !1) {
2851
- const s = await C._fromIdTokenResponse(e, i, r), o = lt(i);
2852
- return new B({
2840
+ const s = await N._fromIdTokenResponse(e, i, r), o = lt(i);
2841
+ return new z({
2853
2842
  user: s,
2854
2843
  providerId: o,
2855
2844
  _tokenResponse: i,
@@ -2863,7 +2852,7 @@ class B {
2863
2852
  !0
2864
2853
  );
2865
2854
  const r = lt(i);
2866
- return new B({
2855
+ return new z({
2867
2856
  user: e,
2868
2857
  providerId: r,
2869
2858
  _tokenResponse: i,
@@ -2911,7 +2900,7 @@ function Kt(n, e, t, i) {
2911
2900
  }
2912
2901
  async function Wi(n, e, t = !1) {
2913
2902
  const i = await re(n, e._linkToIdToken(n.auth, await n.getIdToken()), t);
2914
- return B._forOperation(n, "link", i);
2903
+ return z._forOperation(n, "link", i);
2915
2904
  }
2916
2905
  /**
2917
2906
  * @license
@@ -2929,7 +2918,7 @@ async function Wi(n, e, t = !1) {
2929
2918
  * See the License for the specific language governing permissions and
2930
2919
  * limitations under the License.
2931
2920
  */
2932
- async function ji(n, e, t = !1) {
2921
+ async function Bi(n, e, t = !1) {
2933
2922
  const { auth: i } = n;
2934
2923
  if (A(i.app))
2935
2924
  return Promise.reject(H(i));
@@ -2942,7 +2931,7 @@ async function ji(n, e, t = !1) {
2942
2931
  "internal-error"
2943
2932
  /* AuthErrorCode.INTERNAL_ERROR */
2944
2933
  );
2945
- const o = je(s.idToken);
2934
+ const o = We(s.idToken);
2946
2935
  u(
2947
2936
  o,
2948
2937
  i,
@@ -2955,9 +2944,9 @@ async function ji(n, e, t = !1) {
2955
2944
  i,
2956
2945
  "user-mismatch"
2957
2946
  /* AuthErrorCode.USER_MISMATCH */
2958
- ), B._forOperation(n, r, s);
2947
+ ), z._forOperation(n, r, s);
2959
2948
  } catch (s) {
2960
- throw (s == null ? void 0 : s.code) === "auth/user-not-found" && O(
2949
+ throw (s == null ? void 0 : s.code) === "auth/user-not-found" && L(
2961
2950
  i,
2962
2951
  "user-mismatch"
2963
2952
  /* AuthErrorCode.USER_MISMATCH */
@@ -2983,7 +2972,7 @@ async function ji(n, e, t = !1) {
2983
2972
  async function Gi(n, e, t = !1) {
2984
2973
  if (A(n.app))
2985
2974
  return Promise.reject(H(n));
2986
- const i = "signIn", r = await Kt(n, i, e), s = await B._fromIdTokenResponse(n, i, r);
2975
+ const i = "signIn", r = await Kt(n, i, e), s = await z._fromIdTokenResponse(n, i, r);
2987
2976
  return t || await n._updateCurrentUser(s.user), s;
2988
2977
  }
2989
2978
  /**
@@ -3002,7 +2991,7 @@ async function Gi(n, e, t = !1) {
3002
2991
  * See the License for the specific language governing permissions and
3003
2992
  * limitations under the License.
3004
2993
  */
3005
- async function Bi(n, e) {
2994
+ async function zi(n, e) {
3006
2995
  return Ot(n, "POST", "/v1/accounts:signInWithCustomToken", Te(n, e));
3007
2996
  }
3008
2997
  /**
@@ -3021,19 +3010,19 @@ async function Bi(n, e) {
3021
3010
  * See the License for the specific language governing permissions and
3022
3011
  * limitations under the License.
3023
3012
  */
3024
- async function zi(n, e) {
3013
+ async function qi(n, e) {
3025
3014
  if (A(n.app))
3026
3015
  return Promise.reject(H(n));
3027
- const t = be(n), i = await Bi(t, {
3016
+ const t = be(n), i = await zi(t, {
3028
3017
  token: e,
3029
3018
  returnSecureToken: !0
3030
- }), r = await B._fromIdTokenResponse(t, "signIn", i);
3019
+ }), r = await z._fromIdTokenResponse(t, "signIn", i);
3031
3020
  return await t._updateCurrentUser(r.user), r;
3032
3021
  }
3033
- function qi(n, e, t, i) {
3022
+ function Ki(n, e, t, i) {
3034
3023
  return X(n).onIdTokenChanged(e, t, i);
3035
3024
  }
3036
- function Ki(n, e, t) {
3025
+ function Ji(n, e, t) {
3037
3026
  return X(n).beforeAuthStateChanged(e, t);
3038
3027
  }
3039
3028
  const ye = "__sak";
@@ -3094,18 +3083,18 @@ class Jt {
3094
3083
  * See the License for the specific language governing permissions and
3095
3084
  * limitations under the License.
3096
3085
  */
3097
- function Ji() {
3098
- const n = w();
3099
- return Ge(n) || ke(n);
3086
+ function Yi() {
3087
+ const n = k();
3088
+ return Be(n) || ke(n);
3100
3089
  }
3101
- const Yi = 1e3, Xi = 10;
3090
+ const Xi = 1e3, Qi = 10;
3102
3091
  class Yt extends Jt {
3103
3092
  constructor() {
3104
3093
  super(
3105
3094
  () => window.localStorage,
3106
3095
  "LOCAL"
3107
3096
  /* PersistenceType.LOCAL */
3108
- ), this.boundEventHandler = (e, t) => this.onStorageEvent(e, t), this.listeners = {}, this.localCache = {}, this.pollTimer = null, this.safariLocalStorageNotSynced = Ji() && Si(), this.fallbackToPolling = jt(), this._shouldAllowMigration = !0;
3097
+ ), this.boundEventHandler = (e, t) => this.onStorageEvent(e, t), this.listeners = {}, this.localCache = {}, this.pollTimer = null, this.safariLocalStorageNotSynced = Yi() && Ri(), this.fallbackToPolling = Wt(), this._shouldAllowMigration = !0;
3109
3098
  }
3110
3099
  forAllChangedKeys(e) {
3111
3100
  for (const t of Object.keys(this.listeners)) {
@@ -3132,7 +3121,7 @@ class Yt extends Jt {
3132
3121
  const o = this.storage.getItem(i);
3133
3122
  !t && this.localCache[i] === o || this.notifyListeners(i, o);
3134
3123
  }, s = this.storage.getItem(i);
3135
- Ei() && s !== e.newValue && e.newValue !== e.oldValue ? setTimeout(r, Xi) : r();
3124
+ Si() && s !== e.newValue && e.newValue !== e.oldValue ? setTimeout(r, Qi) : r();
3136
3125
  }
3137
3126
  notifyListeners(e, t) {
3138
3127
  this.localCache[e] = t;
@@ -3154,7 +3143,7 @@ class Yt extends Jt {
3154
3143
  !0
3155
3144
  );
3156
3145
  });
3157
- }, Yi);
3146
+ }, Xi);
3158
3147
  }
3159
3148
  stopPolling() {
3160
3149
  this.pollTimer && (clearInterval(this.pollTimer), this.pollTimer = null);
@@ -3184,7 +3173,7 @@ class Yt extends Jt {
3184
3173
  }
3185
3174
  }
3186
3175
  Yt.type = "LOCAL";
3187
- const Qi = Yt;
3176
+ const Zi = Yt;
3188
3177
  /**
3189
3178
  * @license
3190
3179
  * Copyright 2020 Google LLC
@@ -3232,7 +3221,7 @@ const Qt = Xt;
3232
3221
  * See the License for the specific language governing permissions and
3233
3222
  * limitations under the License.
3234
3223
  */
3235
- function Zi(n) {
3224
+ function er(n) {
3236
3225
  return Promise.all(n.map(async (e) => {
3237
3226
  try {
3238
3227
  return {
@@ -3302,7 +3291,7 @@ class Ee {
3302
3291
  eventId: i,
3303
3292
  eventType: r
3304
3293
  });
3305
- const c = Array.from(o).map(async (l) => l(t.origin, s)), a = await Zi(c);
3294
+ const c = Array.from(o).map(async (l) => l(t.origin, s)), a = await er(c);
3306
3295
  t.ports[0].postMessage({
3307
3296
  status: "done",
3308
3297
  eventId: i,
@@ -3370,7 +3359,7 @@ function ze(n = "", e = 10) {
3370
3359
  * See the License for the specific language governing permissions and
3371
3360
  * limitations under the License.
3372
3361
  */
3373
- class er {
3362
+ class tr {
3374
3363
  constructor(e) {
3375
3364
  this.target = e, this.handlers = /* @__PURE__ */ new Set();
3376
3365
  }
@@ -3415,9 +3404,9 @@ class er {
3415
3404
  o = {
3416
3405
  messageChannel: r,
3417
3406
  onMessage(m) {
3418
- const y = m;
3419
- if (y.data.eventId === l)
3420
- switch (y.data.status) {
3407
+ const v = m;
3408
+ if (v.data.eventId === l)
3409
+ switch (v.data.status) {
3421
3410
  case "ack":
3422
3411
  clearTimeout(d), s = setTimeout(
3423
3412
  () => {
@@ -3431,7 +3420,7 @@ class er {
3431
3420
  );
3432
3421
  break;
3433
3422
  case "done":
3434
- clearTimeout(s), c(y.data.response);
3423
+ clearTimeout(s), c(v.data.response);
3435
3424
  break;
3436
3425
  default:
3437
3426
  clearTimeout(d), clearTimeout(s), a(new Error(
@@ -3467,11 +3456,11 @@ class er {
3467
3456
  * See the License for the specific language governing permissions and
3468
3457
  * limitations under the License.
3469
3458
  */
3470
- function E() {
3459
+ function S() {
3471
3460
  return window;
3472
3461
  }
3473
- function tr(n) {
3474
- E().location.href = n;
3462
+ function nr(n) {
3463
+ S().location.href = n;
3475
3464
  }
3476
3465
  /**
3477
3466
  * @license
@@ -3490,9 +3479,9 @@ function tr(n) {
3490
3479
  * limitations under the License.
3491
3480
  */
3492
3481
  function Zt() {
3493
- return typeof E().WorkerGlobalScope < "u" && typeof E().importScripts == "function";
3482
+ return typeof S().WorkerGlobalScope < "u" && typeof S().importScripts == "function";
3494
3483
  }
3495
- async function nr() {
3484
+ async function ir() {
3496
3485
  if (!(navigator != null && navigator.serviceWorker))
3497
3486
  return null;
3498
3487
  try {
@@ -3501,11 +3490,11 @@ async function nr() {
3501
3490
  return null;
3502
3491
  }
3503
3492
  }
3504
- function ir() {
3493
+ function rr() {
3505
3494
  var n;
3506
3495
  return ((n = navigator == null ? void 0 : navigator.serviceWorker) === null || n === void 0 ? void 0 : n.controller) || null;
3507
3496
  }
3508
- function rr() {
3497
+ function sr() {
3509
3498
  return Zt() ? self : null;
3510
3499
  }
3511
3500
  /**
@@ -3524,7 +3513,7 @@ function rr() {
3524
3513
  * See the License for the specific language governing permissions and
3525
3514
  * limitations under the License.
3526
3515
  */
3527
- const en = "firebaseLocalStorageDb", sr = 1, we = "firebaseLocalStorage", tn = "fbase_key";
3516
+ const en = "firebaseLocalStorageDb", or = 1, we = "firebaseLocalStorage", tn = "fbase_key";
3528
3517
  class le {
3529
3518
  constructor(e) {
3530
3519
  this.request = e;
@@ -3542,12 +3531,12 @@ class le {
3542
3531
  function Se(n, e) {
3543
3532
  return n.transaction([we], e ? "readwrite" : "readonly").objectStore(we);
3544
3533
  }
3545
- function or() {
3534
+ function ar() {
3546
3535
  const n = indexedDB.deleteDatabase(en);
3547
3536
  return new le(n).toPromise();
3548
3537
  }
3549
3538
  function De() {
3550
- const n = indexedDB.open(en, sr);
3539
+ const n = indexedDB.open(en, or);
3551
3540
  return new Promise((e, t) => {
3552
3541
  n.addEventListener("error", () => {
3553
3542
  t(n.error);
@@ -3560,7 +3549,7 @@ function De() {
3560
3549
  }
3561
3550
  }), n.addEventListener("success", async () => {
3562
3551
  const i = n.result;
3563
- i.objectStoreNames.contains(we) ? e(i) : (i.close(), await or(), e(await De()));
3552
+ i.objectStoreNames.contains(we) ? e(i) : (i.close(), await ar(), e(await De()));
3564
3553
  });
3565
3554
  });
3566
3555
  }
@@ -3571,7 +3560,7 @@ async function ut(n, e, t) {
3571
3560
  });
3572
3561
  return new le(i).toPromise();
3573
3562
  }
3574
- async function ar(n, e) {
3563
+ async function cr(n, e) {
3575
3564
  const t = Se(n, !1).get(e), i = await new le(t).toPromise();
3576
3565
  return i === void 0 ? null : i.value;
3577
3566
  }
@@ -3579,7 +3568,7 @@ function dt(n, e) {
3579
3568
  const t = Se(n, !0).delete(e);
3580
3569
  return new le(t).toPromise();
3581
3570
  }
3582
- const cr = 800, lr = 3;
3571
+ const lr = 800, ur = 3;
3583
3572
  class nn {
3584
3573
  constructor() {
3585
3574
  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(() => {
@@ -3596,7 +3585,7 @@ class nn {
3596
3585
  const i = await this._openDb();
3597
3586
  return await e(i);
3598
3587
  } catch (i) {
3599
- if (t++ > lr)
3588
+ if (t++ > ur)
3600
3589
  throw i;
3601
3590
  this.db && (this.db.close(), this.db = void 0);
3602
3591
  }
@@ -3612,7 +3601,7 @@ class nn {
3612
3601
  * As the worker we should listen to events from the main window.
3613
3602
  */
3614
3603
  async initializeReceiver() {
3615
- this.receiver = Ee._getInstance(rr()), this.receiver._subscribe("keyChanged", async (e, t) => ({
3604
+ this.receiver = Ee._getInstance(sr()), this.receiver._subscribe("keyChanged", async (e, t) => ({
3616
3605
  keyProcessed: (await this._poll()).includes(t.key)
3617
3606
  })), this.receiver._subscribe("ping", async (e, t) => [
3618
3607
  "keyChanged"
@@ -3628,9 +3617,9 @@ class nn {
3628
3617
  */
3629
3618
  async initializeSender() {
3630
3619
  var e, t;
3631
- if (this.activeServiceWorker = await nr(), !this.activeServiceWorker)
3620
+ if (this.activeServiceWorker = await ir(), !this.activeServiceWorker)
3632
3621
  return;
3633
- this.sender = new er(this.activeServiceWorker);
3622
+ this.sender = new tr(this.activeServiceWorker);
3634
3623
  const i = await this.sender._send(
3635
3624
  "ping",
3636
3625
  {},
@@ -3652,7 +3641,7 @@ class nn {
3652
3641
  * @param key - Storage key which changed.
3653
3642
  */
3654
3643
  async notifyServiceWorker(e) {
3655
- if (!(!this.sender || !this.activeServiceWorker || ir() !== this.activeServiceWorker))
3644
+ if (!(!this.sender || !this.activeServiceWorker || rr() !== this.activeServiceWorker))
3656
3645
  try {
3657
3646
  await this.sender._send(
3658
3647
  "keyChanged",
@@ -3686,7 +3675,7 @@ class nn {
3686
3675
  return this._withPendingWrite(async () => (await this._withRetries((i) => ut(i, e, t)), this.localCache[e] = t, this.notifyServiceWorker(e)));
3687
3676
  }
3688
3677
  async _get(e) {
3689
- const t = await this._withRetries((i) => ar(i, e));
3678
+ const t = await this._withRetries((i) => cr(i, e));
3690
3679
  return this.localCache[e] = t, t;
3691
3680
  }
3692
3681
  async _remove(e) {
@@ -3717,7 +3706,7 @@ class nn {
3717
3706
  r(t);
3718
3707
  }
3719
3708
  startPolling() {
3720
- this.stopPolling(), this.pollTimer = setInterval(async () => this._poll(), cr);
3709
+ this.stopPolling(), this.pollTimer = setInterval(async () => this._poll(), lr);
3721
3710
  }
3722
3711
  stopPolling() {
3723
3712
  this.pollTimer && (clearInterval(this.pollTimer), this.pollTimer = null);
@@ -3730,7 +3719,7 @@ class nn {
3730
3719
  }
3731
3720
  }
3732
3721
  nn.type = "LOCAL";
3733
- const ur = nn;
3722
+ const dr = nn;
3734
3723
  new ae(3e4, 6e4);
3735
3724
  /**
3736
3725
  * @license
@@ -3748,8 +3737,8 @@ new ae(3e4, 6e4);
3748
3737
  * See the License for the specific language governing permissions and
3749
3738
  * limitations under the License.
3750
3739
  */
3751
- function dr(n, e) {
3752
- return e ? N(e) : (u(
3740
+ function hr(n, e) {
3741
+ return e ? O(e) : (u(
3753
3742
  n._popupRedirectResolver,
3754
3743
  n,
3755
3744
  "argument-error"
@@ -3781,13 +3770,13 @@ class qe extends zt {
3781
3770
  ), this.params = e;
3782
3771
  }
3783
3772
  _getIdTokenResponse(e) {
3784
- return J(e, this._buildIdpRequest());
3773
+ return Y(e, this._buildIdpRequest());
3785
3774
  }
3786
3775
  _linkToIdToken(e, t) {
3787
- return J(e, this._buildIdpRequest(t));
3776
+ return Y(e, this._buildIdpRequest(t));
3788
3777
  }
3789
3778
  _getReauthenticationResolver(e) {
3790
- return J(e, this._buildIdpRequest());
3779
+ return Y(e, this._buildIdpRequest());
3791
3780
  }
3792
3781
  _buildIdpRequest(e) {
3793
3782
  const t = {
@@ -3802,19 +3791,19 @@ class qe extends zt {
3802
3791
  return e && (t.idToken = e), t;
3803
3792
  }
3804
3793
  }
3805
- function hr(n) {
3794
+ function fr(n) {
3806
3795
  return Gi(n.auth, new qe(n), n.bypassAuthState);
3807
3796
  }
3808
- function fr(n) {
3797
+ function pr(n) {
3809
3798
  const { auth: e, user: t } = n;
3810
3799
  return u(
3811
3800
  t,
3812
3801
  e,
3813
3802
  "internal-error"
3814
3803
  /* AuthErrorCode.INTERNAL_ERROR */
3815
- ), ji(t, new qe(n), n.bypassAuthState);
3804
+ ), Bi(t, new qe(n), n.bypassAuthState);
3816
3805
  }
3817
- async function pr(n) {
3806
+ async function mr(n) {
3818
3807
  const { auth: e, user: t } = n;
3819
3808
  return u(
3820
3809
  t,
@@ -3881,15 +3870,15 @@ class rn {
3881
3870
  switch (e) {
3882
3871
  case "signInViaPopup":
3883
3872
  case "signInViaRedirect":
3884
- return hr;
3873
+ return fr;
3885
3874
  case "linkViaPopup":
3886
3875
  case "linkViaRedirect":
3887
- return pr;
3876
+ return mr;
3888
3877
  case "reauthViaPopup":
3889
3878
  case "reauthViaRedirect":
3890
- return fr;
3879
+ return pr;
3891
3880
  default:
3892
- O(
3881
+ L(
3893
3882
  this.auth,
3894
3883
  "internal-error"
3895
3884
  /* AuthErrorCode.INTERNAL_ERROR */
@@ -3897,10 +3886,10 @@ class rn {
3897
3886
  }
3898
3887
  }
3899
3888
  resolve(e) {
3900
- L(this.pendingPromise, "Pending promise was never set"), this.pendingPromise.resolve(e), this.unregisterAndCleanUp();
3889
+ M(this.pendingPromise, "Pending promise was never set"), this.pendingPromise.resolve(e), this.unregisterAndCleanUp();
3901
3890
  }
3902
3891
  reject(e) {
3903
- L(this.pendingPromise, "Pending promise was never set"), this.pendingPromise.reject(e), this.unregisterAndCleanUp();
3892
+ M(this.pendingPromise, "Pending promise was never set"), this.pendingPromise.reject(e), this.unregisterAndCleanUp();
3904
3893
  }
3905
3894
  unregisterAndCleanUp() {
3906
3895
  this.eventManager && this.eventManager.unregisterConsumer(this), this.pendingPromise = null, this.cleanUp();
@@ -3922,10 +3911,10 @@ class rn {
3922
3911
  * See the License for the specific language governing permissions and
3923
3912
  * limitations under the License.
3924
3913
  */
3925
- const mr = new ae(2e3, 1e4);
3926
- class z extends rn {
3914
+ const gr = new ae(2e3, 1e4);
3915
+ class q extends rn {
3927
3916
  constructor(e, t, i, r, s) {
3928
- super(e, t, r, s), this.provider = i, this.authWindow = null, this.pollId = null, z.currentPopupAction && z.currentPopupAction.cancel(), z.currentPopupAction = this;
3917
+ super(e, t, r, s), this.provider = i, this.authWindow = null, this.pollId = null, q.currentPopupAction && q.currentPopupAction.cancel(), q.currentPopupAction = this;
3929
3918
  }
3930
3919
  async executeNotNull() {
3931
3920
  const e = await this.execute();
@@ -3937,7 +3926,7 @@ class z extends rn {
3937
3926
  ), e;
3938
3927
  }
3939
3928
  async onExecution() {
3940
- L(this.filter.length === 1, "Popup operations only handle one event");
3929
+ M(this.filter.length === 1, "Popup operations only handle one event");
3941
3930
  const e = ze();
3942
3931
  this.authWindow = await this.resolver._openPopup(
3943
3932
  this.auth,
@@ -3948,7 +3937,7 @@ class z extends rn {
3948
3937
  ), this.authWindow.associatedEvent = e, this.resolver._originValidation(this.auth).catch((t) => {
3949
3938
  this.reject(t);
3950
3939
  }), this.resolver._isIframeWebStorageSupported(this.auth, (t) => {
3951
- t || this.reject(b(
3940
+ t || this.reject(E(
3952
3941
  this.auth,
3953
3942
  "web-storage-unsupported"
3954
3943
  /* AuthErrorCode.WEB_STORAGE_UNSUPPORTED */
@@ -3960,14 +3949,14 @@ class z extends rn {
3960
3949
  return ((e = this.authWindow) === null || e === void 0 ? void 0 : e.associatedEvent) || null;
3961
3950
  }
3962
3951
  cancel() {
3963
- this.reject(b(
3952
+ this.reject(E(
3964
3953
  this.auth,
3965
3954
  "cancelled-popup-request"
3966
3955
  /* AuthErrorCode.EXPIRED_POPUP_REQUEST */
3967
3956
  ));
3968
3957
  }
3969
3958
  cleanUp() {
3970
- this.authWindow && this.authWindow.close(), this.pollId && window.clearTimeout(this.pollId), this.authWindow = null, this.pollId = null, z.currentPopupAction = null;
3959
+ this.authWindow && this.authWindow.close(), this.pollId && window.clearTimeout(this.pollId), this.authWindow = null, this.pollId = null, q.currentPopupAction = null;
3971
3960
  }
3972
3961
  pollUserCancellation() {
3973
3962
  const e = () => {
@@ -3975,7 +3964,7 @@ class z extends rn {
3975
3964
  if (!((i = (t = this.authWindow) === null || t === void 0 ? void 0 : t.window) === null || i === void 0) && i.closed) {
3976
3965
  this.pollId = window.setTimeout(
3977
3966
  () => {
3978
- this.pollId = null, this.reject(b(
3967
+ this.pollId = null, this.reject(E(
3979
3968
  this.auth,
3980
3969
  "popup-closed-by-user"
3981
3970
  /* AuthErrorCode.POPUP_CLOSED_BY_USER */
@@ -3986,12 +3975,12 @@ class z extends rn {
3986
3975
  );
3987
3976
  return;
3988
3977
  }
3989
- this.pollId = window.setTimeout(e, mr.get());
3978
+ this.pollId = window.setTimeout(e, gr.get());
3990
3979
  };
3991
3980
  e();
3992
3981
  }
3993
3982
  }
3994
- z.currentPopupAction = null;
3983
+ q.currentPopupAction = null;
3995
3984
  /**
3996
3985
  * @license
3997
3986
  * Copyright 2020 Google LLC
@@ -4008,8 +3997,8 @@ z.currentPopupAction = null;
4008
3997
  * See the License for the specific language governing permissions and
4009
3998
  * limitations under the License.
4010
3999
  */
4011
- const gr = "pendingRedirect", fe = /* @__PURE__ */ new Map();
4012
- class _r extends rn {
4000
+ const _r = "pendingRedirect", fe = /* @__PURE__ */ new Map();
4001
+ class vr extends rn {
4013
4002
  constructor(e, t, i = !1) {
4014
4003
  super(e, [
4015
4004
  "signInViaRedirect",
@@ -4027,7 +4016,7 @@ class _r extends rn {
4027
4016
  let e = fe.get(this.auth._key());
4028
4017
  if (!e) {
4029
4018
  try {
4030
- const i = await vr(this.resolver, this.auth) ? await super.execute() : null;
4019
+ const i = await Ir(this.resolver, this.auth) ? await super.execute() : null;
4031
4020
  e = () => Promise.resolve(i);
4032
4021
  } catch (t) {
4033
4022
  e = () => Promise.reject(t);
@@ -4055,26 +4044,26 @@ class _r extends rn {
4055
4044
  cleanUp() {
4056
4045
  }
4057
4046
  }
4058
- async function vr(n, e) {
4059
- const t = wr(e), i = yr(n);
4047
+ async function Ir(n, e) {
4048
+ const t = Tr(e), i = wr(n);
4060
4049
  if (!await i._isAvailable())
4061
4050
  return !1;
4062
4051
  const r = await i._get(t) === "true";
4063
4052
  return await i._remove(t), r;
4064
4053
  }
4065
- function Ir(n, e) {
4054
+ function yr(n, e) {
4066
4055
  fe.set(n._key(), e);
4067
4056
  }
4068
- function yr(n) {
4069
- return N(n._redirectPersistence);
4070
- }
4071
4057
  function wr(n) {
4072
- return he(gr, n.config.apiKey, n.name);
4058
+ return O(n._redirectPersistence);
4073
4059
  }
4074
- async function Tr(n, e, t = !1) {
4060
+ function Tr(n) {
4061
+ return he(_r, n.config.apiKey, n.name);
4062
+ }
4063
+ async function kr(n, e, t = !1) {
4075
4064
  if (A(n.app))
4076
4065
  return Promise.reject(H(n));
4077
- const i = be(n), r = dr(i, e), o = await new _r(i, r, t).execute();
4066
+ const i = be(n), r = hr(i, e), o = await new vr(i, r, t).execute();
4078
4067
  return o && !t && (delete o.user._redirectEventId, await i._persistUserIfCurrent(o.user), await i._setRedirectUser(null, e)), o;
4079
4068
  }
4080
4069
  /**
@@ -4093,8 +4082,8 @@ async function Tr(n, e, t = !1) {
4093
4082
  * See the License for the specific language governing permissions and
4094
4083
  * limitations under the License.
4095
4084
  */
4096
- const kr = 10 * 60 * 1e3;
4097
- class br {
4085
+ const br = 10 * 60 * 1e3;
4086
+ class Er {
4098
4087
  constructor(e) {
4099
4088
  this.auth = e, this.cachedEventUids = /* @__PURE__ */ new Set(), this.consumers = /* @__PURE__ */ new Set(), this.queuedRedirectEvent = null, this.hasHandledPotentialRedirect = !1, this.lastProcessedEventTime = Date.now();
4100
4089
  }
@@ -4110,13 +4099,13 @@ class br {
4110
4099
  let t = !1;
4111
4100
  return this.consumers.forEach((i) => {
4112
4101
  this.isEventForConsumer(e, i) && (t = !0, this.sendToConsumer(e, i), this.saveEventToCache(e));
4113
- }), this.hasHandledPotentialRedirect || !Er(e) || (this.hasHandledPotentialRedirect = !0, t || (this.queuedRedirectEvent = e, t = !0)), t;
4102
+ }), this.hasHandledPotentialRedirect || !Sr(e) || (this.hasHandledPotentialRedirect = !0, t || (this.queuedRedirectEvent = e, t = !0)), t;
4114
4103
  }
4115
4104
  sendToConsumer(e, t) {
4116
4105
  var i;
4117
4106
  if (e.error && !sn(e)) {
4118
4107
  const r = ((i = e.error.code) === null || i === void 0 ? void 0 : i.split("auth/")[1]) || "internal-error";
4119
- t.onError(b(this.auth, r));
4108
+ t.onError(E(this.auth, r));
4120
4109
  } else
4121
4110
  t.onAuthEvent(e);
4122
4111
  }
@@ -4125,7 +4114,7 @@ class br {
4125
4114
  return t.filter.includes(e.type) && i;
4126
4115
  }
4127
4116
  hasEventBeenHandled(e) {
4128
- return Date.now() - this.lastProcessedEventTime >= kr && this.cachedEventUids.clear(), this.cachedEventUids.has(ht(e));
4117
+ return Date.now() - this.lastProcessedEventTime >= br && this.cachedEventUids.clear(), this.cachedEventUids.has(ht(e));
4129
4118
  }
4130
4119
  saveEventToCache(e) {
4131
4120
  this.cachedEventUids.add(ht(e)), this.lastProcessedEventTime = Date.now();
@@ -4137,7 +4126,7 @@ function ht(n) {
4137
4126
  function sn({ type: n, error: e }) {
4138
4127
  return n === "unknown" && (e == null ? void 0 : e.code) === "auth/no-auth-event";
4139
4128
  }
4140
- function Er(n) {
4129
+ function Sr(n) {
4141
4130
  switch (n.type) {
4142
4131
  case "signInViaRedirect":
4143
4132
  case "linkViaRedirect":
@@ -4165,7 +4154,7 @@ function Er(n) {
4165
4154
  * See the License for the specific language governing permissions and
4166
4155
  * limitations under the License.
4167
4156
  */
4168
- async function Sr(n, e = {}) {
4157
+ async function Rr(n, e = {}) {
4169
4158
  return Q(n, "GET", "/v1/projects", e);
4170
4159
  }
4171
4160
  /**
@@ -4184,24 +4173,24 @@ async function Sr(n, e = {}) {
4184
4173
  * See the License for the specific language governing permissions and
4185
4174
  * limitations under the License.
4186
4175
  */
4187
- const Rr = /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/, Ar = /^https?/;
4188
- async function Pr(n) {
4176
+ const Pr = /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/, Ar = /^https?/;
4177
+ async function Cr(n) {
4189
4178
  if (n.config.emulator)
4190
4179
  return;
4191
- const { authorizedDomains: e } = await Sr(n);
4180
+ const { authorizedDomains: e } = await Rr(n);
4192
4181
  for (const t of e)
4193
4182
  try {
4194
- if (Cr(t))
4183
+ if (Nr(t))
4195
4184
  return;
4196
4185
  } catch {
4197
4186
  }
4198
- O(
4187
+ L(
4199
4188
  n,
4200
4189
  "unauthorized-domain"
4201
4190
  /* AuthErrorCode.INVALID_ORIGIN */
4202
4191
  );
4203
4192
  }
4204
- function Cr(n) {
4193
+ function Nr(n) {
4205
4194
  const e = Me(), { protocol: t, hostname: i } = new URL(e);
4206
4195
  if (n.startsWith("chrome-extension://")) {
4207
4196
  const o = new URL(n);
@@ -4209,7 +4198,7 @@ function Cr(n) {
4209
4198
  }
4210
4199
  if (!Ar.test(t))
4211
4200
  return !1;
4212
- if (Rr.test(n))
4201
+ if (Pr.test(n))
4213
4202
  return i === n;
4214
4203
  const r = n.replace(/\./g, "\\.");
4215
4204
  return new RegExp("^(.+\\." + r + "|" + r + ")$", "i").test(i);
@@ -4230,9 +4219,9 @@ function Cr(n) {
4230
4219
  * See the License for the specific language governing permissions and
4231
4220
  * limitations under the License.
4232
4221
  */
4233
- const Nr = new ae(3e4, 6e4);
4222
+ const Or = new ae(3e4, 6e4);
4234
4223
  function ft() {
4235
- const n = E().___jsl;
4224
+ const n = S().___jsl;
4236
4225
  if (n != null && n.H) {
4237
4226
  for (const e of Object.keys(n.H))
4238
4227
  if (n.H[e].r = n.H[e].r || [], n.H[e].L = n.H[e].L || [], n.H[e].r = [...n.H[e].L], n.CP)
@@ -4240,7 +4229,7 @@ function ft() {
4240
4229
  n.CP[t] = null;
4241
4230
  }
4242
4231
  }
4243
- function Or(n) {
4232
+ function Lr(n) {
4244
4233
  return new Promise((e, t) => {
4245
4234
  var i, r, s;
4246
4235
  function o() {
@@ -4249,36 +4238,36 @@ function Or(n) {
4249
4238
  e(gapi.iframes.getContext());
4250
4239
  },
4251
4240
  ontimeout: () => {
4252
- ft(), t(b(
4241
+ ft(), t(E(
4253
4242
  n,
4254
4243
  "network-request-failed"
4255
4244
  /* AuthErrorCode.NETWORK_REQUEST_FAILED */
4256
4245
  ));
4257
4246
  },
4258
- timeout: Nr.get()
4247
+ timeout: Or.get()
4259
4248
  });
4260
4249
  }
4261
- if (!((r = (i = E().gapi) === null || i === void 0 ? void 0 : i.iframes) === null || r === void 0) && r.Iframe)
4250
+ if (!((r = (i = S().gapi) === null || i === void 0 ? void 0 : i.iframes) === null || r === void 0) && r.Iframe)
4262
4251
  e(gapi.iframes.getContext());
4263
- else if (!((s = E().gapi) === null || s === void 0) && s.load)
4252
+ else if (!((s = S().gapi) === null || s === void 0) && s.load)
4264
4253
  o();
4265
4254
  else {
4266
- const c = Ui("iframefcb");
4267
- return E()[c] = () => {
4268
- gapi.load ? o() : t(b(
4255
+ const c = Di("iframefcb");
4256
+ return S()[c] = () => {
4257
+ gapi.load ? o() : t(E(
4269
4258
  n,
4270
4259
  "network-request-failed"
4271
4260
  /* AuthErrorCode.NETWORK_REQUEST_FAILED */
4272
4261
  ));
4273
- }, Li(`${Mi()}?onload=${c}`).catch((a) => t(a));
4262
+ }, Mi(`${Ui()}?onload=${c}`).catch((a) => t(a));
4274
4263
  }
4275
4264
  }).catch((e) => {
4276
4265
  throw pe = null, e;
4277
4266
  });
4278
4267
  }
4279
4268
  let pe = null;
4280
- function Lr(n) {
4281
- return pe = pe || Or(n), pe;
4269
+ function Mr(n) {
4270
+ return pe = pe || Lr(n), pe;
4282
4271
  }
4283
4272
  /**
4284
4273
  * @license
@@ -4296,7 +4285,7 @@ function Lr(n) {
4296
4285
  * See the License for the specific language governing permissions and
4297
4286
  * limitations under the License.
4298
4287
  */
4299
- const Mr = new ae(5e3, 15e3), Ur = "__/auth/iframe", Dr = "emulator/auth/iframe", xr = {
4288
+ const Ur = new ae(5e3, 15e3), Dr = "__/auth/iframe", xr = "emulator/auth/iframe", Fr = {
4300
4289
  style: {
4301
4290
  position: "absolute",
4302
4291
  top: "-100px",
@@ -4305,13 +4294,13 @@ const Mr = new ae(5e3, 15e3), Ur = "__/auth/iframe", Dr = "emulator/auth/iframe"
4305
4294
  },
4306
4295
  "aria-hidden": "true",
4307
4296
  tabindex: "-1"
4308
- }, Fr = /* @__PURE__ */ new Map([
4297
+ }, Vr = /* @__PURE__ */ new Map([
4309
4298
  ["identitytoolkit.googleapis.com", "p"],
4310
4299
  ["staging-identitytoolkit.sandbox.googleapis.com", "s"],
4311
4300
  ["test-identitytoolkit.sandbox.googleapis.com", "t"]
4312
4301
  // test
4313
4302
  ]);
4314
- function Vr(n) {
4303
+ function $r(n) {
4315
4304
  const e = n.config;
4316
4305
  u(
4317
4306
  e.authDomain,
@@ -4319,17 +4308,17 @@ function Vr(n) {
4319
4308
  "auth-domain-config-required"
4320
4309
  /* AuthErrorCode.MISSING_AUTH_DOMAIN */
4321
4310
  );
4322
- const t = e.emulator ? We(e, Dr) : `https://${n.config.authDomain}/${Ur}`, i = {
4311
+ const t = e.emulator ? je(e, xr) : `https://${n.config.authDomain}/${Dr}`, i = {
4323
4312
  apiKey: e.apiKey,
4324
4313
  appName: n.name,
4325
4314
  v: se
4326
- }, r = Fr.get(n.config.apiHost);
4315
+ }, r = Vr.get(n.config.apiHost);
4327
4316
  r && (i.eid = r);
4328
4317
  const s = n._getFrameworks();
4329
4318
  return s.length && (i.fw = s.join(",")), `${t}?${oe(i).slice(1)}`;
4330
4319
  }
4331
- async function $r(n) {
4332
- const e = await Lr(n), t = E().gapi;
4320
+ async function Hr(n) {
4321
+ const e = await Mr(n), t = S().gapi;
4333
4322
  return u(
4334
4323
  t,
4335
4324
  n,
@@ -4337,24 +4326,24 @@ async function $r(n) {
4337
4326
  /* AuthErrorCode.INTERNAL_ERROR */
4338
4327
  ), e.open({
4339
4328
  where: document.body,
4340
- url: Vr(n),
4329
+ url: $r(n),
4341
4330
  messageHandlersFilter: t.iframes.CROSS_ORIGIN_IFRAMES_FILTER,
4342
- attributes: xr,
4331
+ attributes: Fr,
4343
4332
  dontclear: !0
4344
4333
  }, (i) => new Promise(async (r, s) => {
4345
4334
  await i.restyle({
4346
4335
  // Prevent iframe from closing on mouse out.
4347
4336
  setHideOnLeave: !1
4348
4337
  });
4349
- const o = b(
4338
+ const o = E(
4350
4339
  n,
4351
4340
  "network-request-failed"
4352
4341
  /* AuthErrorCode.NETWORK_REQUEST_FAILED */
4353
- ), c = E().setTimeout(() => {
4342
+ ), c = S().setTimeout(() => {
4354
4343
  s(o);
4355
- }, Mr.get());
4344
+ }, Ur.get());
4356
4345
  function a() {
4357
- E().clearTimeout(c), r(i);
4346
+ S().clearTimeout(c), r(i);
4358
4347
  }
4359
4348
  i.ping(a).then(a, () => {
4360
4349
  s(o);
@@ -4377,12 +4366,12 @@ async function $r(n) {
4377
4366
  * See the License for the specific language governing permissions and
4378
4367
  * limitations under the License.
4379
4368
  */
4380
- const Hr = {
4369
+ const jr = {
4381
4370
  location: "yes",
4382
4371
  resizable: "yes",
4383
4372
  statusbar: "yes",
4384
4373
  toolbar: "no"
4385
- }, Wr = 500, jr = 600, Gr = "_blank", Br = "http://localhost";
4374
+ }, Wr = 500, Br = 600, Gr = "_blank", zr = "http://localhost";
4386
4375
  class pt {
4387
4376
  constructor(e) {
4388
4377
  this.window = e, this.associatedEvent = null;
@@ -4395,19 +4384,19 @@ class pt {
4395
4384
  }
4396
4385
  }
4397
4386
  }
4398
- function zr(n, e, t, i = Wr, r = jr) {
4387
+ function qr(n, e, t, i = Wr, r = Br) {
4399
4388
  const s = Math.max((window.screen.availHeight - r) / 2, 0).toString(), o = Math.max((window.screen.availWidth - i) / 2, 0).toString();
4400
4389
  let c = "";
4401
- const a = Object.assign(Object.assign({}, Hr), {
4390
+ const a = Object.assign(Object.assign({}, jr), {
4402
4391
  width: i.toString(),
4403
4392
  height: r.toString(),
4404
4393
  top: s,
4405
4394
  left: o
4406
- }), l = w().toLowerCase();
4407
- t && (c = Ft(l) ? Gr : t), xt(l) && (e = e || Br, a.scrollbars = "yes");
4408
- const d = Object.entries(a).reduce((y, [T, h]) => `${y}${T}=${h},`, "");
4409
- if (bi(l) && c !== "_self")
4410
- return qr(e || "", c), new pt(null);
4395
+ }), l = k().toLowerCase();
4396
+ t && (c = Ft(l) ? Gr : t), xt(l) && (e = e || zr, a.scrollbars = "yes");
4397
+ const d = Object.entries(a).reduce((v, [y, f]) => `${v}${y}=${f},`, "");
4398
+ if (Ei(l) && c !== "_self")
4399
+ return Kr(e || "", c), new pt(null);
4411
4400
  const m = window.open(e || "", c, d);
4412
4401
  u(
4413
4402
  m,
@@ -4421,7 +4410,7 @@ function zr(n, e, t, i = Wr, r = jr) {
4421
4410
  }
4422
4411
  return new pt(m);
4423
4412
  }
4424
- function qr(n, e) {
4413
+ function Kr(n, e) {
4425
4414
  const t = document.createElement("a");
4426
4415
  t.href = n, t.target = e;
4427
4416
  const i = document.createEvent("MouseEvent");
@@ -4443,7 +4432,7 @@ function qr(n, e) {
4443
4432
  * See the License for the specific language governing permissions and
4444
4433
  * limitations under the License.
4445
4434
  */
4446
- const Kr = "__/auth/handler", Jr = "emulator/auth/handler", Yr = encodeURIComponent("fac");
4435
+ const Jr = "__/auth/handler", Yr = "emulator/auth/handler", Xr = encodeURIComponent("fac");
4447
4436
  async function mt(n, e, t, i, r, s) {
4448
4437
  u(
4449
4438
  n.config.authDomain,
@@ -4465,7 +4454,7 @@ async function mt(n, e, t, i, r, s) {
4465
4454
  eventId: r
4466
4455
  };
4467
4456
  if (e instanceof qt) {
4468
- e.setDefaultLanguage(n.languageCode), o.providerId = e.providerId || "", Mn(e.getCustomParameters()) || (o.customParameters = JSON.stringify(e.getCustomParameters()));
4457
+ e.setDefaultLanguage(n.languageCode), o.providerId = e.providerId || "", Un(e.getCustomParameters()) || (o.customParameters = JSON.stringify(e.getCustomParameters()));
4469
4458
  for (const [d, m] of Object.entries({}))
4470
4459
  o[d] = m;
4471
4460
  }
@@ -4477,11 +4466,11 @@ async function mt(n, e, t, i, r, s) {
4477
4466
  const c = o;
4478
4467
  for (const d of Object.keys(c))
4479
4468
  c[d] === void 0 && delete c[d];
4480
- const a = await n._getAppCheckToken(), l = a ? `#${Yr}=${encodeURIComponent(a)}` : "";
4481
- return `${Xr(n)}?${oe(c).slice(1)}${l}`;
4469
+ const a = await n._getAppCheckToken(), l = a ? `#${Xr}=${encodeURIComponent(a)}` : "";
4470
+ return `${Qr(n)}?${oe(c).slice(1)}${l}`;
4482
4471
  }
4483
- function Xr({ config: n }) {
4484
- return n.emulator ? We(n, Jr) : `https://${n.authDomain}/${Kr}`;
4472
+ function Qr({ config: n }) {
4473
+ return n.emulator ? je(n, Yr) : `https://${n.authDomain}/${Jr}`;
4485
4474
  }
4486
4475
  /**
4487
4476
  * @license
@@ -4500,29 +4489,29 @@ function Xr({ config: n }) {
4500
4489
  * limitations under the License.
4501
4490
  */
4502
4491
  const Ne = "webStorageSupport";
4503
- class Qr {
4492
+ class Zr {
4504
4493
  constructor() {
4505
- this.eventManagers = {}, this.iframes = {}, this.originValidationPromises = {}, this._redirectPersistence = Qt, this._completeRedirectFn = Tr, this._overrideRedirectResult = Ir;
4494
+ this.eventManagers = {}, this.iframes = {}, this.originValidationPromises = {}, this._redirectPersistence = Qt, this._completeRedirectFn = kr, this._overrideRedirectResult = yr;
4506
4495
  }
4507
4496
  // Wrapping in async even though we don't await anywhere in order
4508
4497
  // to make sure errors are raised as promise rejections
4509
4498
  async _openPopup(e, t, i, r) {
4510
4499
  var s;
4511
- L((s = this.eventManagers[e._key()]) === null || s === void 0 ? void 0 : s.manager, "_initialize() not called before _openPopup()");
4500
+ M((s = this.eventManagers[e._key()]) === null || s === void 0 ? void 0 : s.manager, "_initialize() not called before _openPopup()");
4512
4501
  const o = await mt(e, t, i, Me(), r);
4513
- return zr(e, o, ze());
4502
+ return qr(e, o, ze());
4514
4503
  }
4515
4504
  async _openRedirect(e, t, i, r) {
4516
4505
  await this._originValidation(e);
4517
4506
  const s = await mt(e, t, i, Me(), r);
4518
- return tr(s), new Promise(() => {
4507
+ return nr(s), new Promise(() => {
4519
4508
  });
4520
4509
  }
4521
4510
  _initialize(e) {
4522
4511
  const t = e._key();
4523
4512
  if (this.eventManagers[t]) {
4524
4513
  const { manager: r, promise: s } = this.eventManagers[t];
4525
- return r ? Promise.resolve(r) : (L(s, "If manager is not set, promise should be"), s);
4514
+ return r ? Promise.resolve(r) : (M(s, "If manager is not set, promise should be"), s);
4526
4515
  }
4527
4516
  const i = this.initAndGetManager(e);
4528
4517
  return this.eventManagers[t] = { promise: i }, i.catch(() => {
@@ -4530,7 +4519,7 @@ class Qr {
4530
4519
  }), i;
4531
4520
  }
4532
4521
  async initAndGetManager(e) {
4533
- const t = await $r(e), i = new br(e);
4522
+ const t = await Hr(e), i = new Er(e);
4534
4523
  return t.register("authEvent", (r) => (u(
4535
4524
  r == null ? void 0 : r.authEvent,
4536
4525
  e,
@@ -4545,7 +4534,7 @@ class Qr {
4545
4534
  this.iframes[e._key()].send(Ne, { type: Ne }, (r) => {
4546
4535
  var s;
4547
4536
  const o = (s = r == null ? void 0 : r[0]) === null || s === void 0 ? void 0 : s[Ne];
4548
- o !== void 0 && t(!!o), O(
4537
+ o !== void 0 && t(!!o), L(
4549
4538
  e,
4550
4539
  "internal-error"
4551
4540
  /* AuthErrorCode.INTERNAL_ERROR */
@@ -4554,13 +4543,13 @@ class Qr {
4554
4543
  }
4555
4544
  _originValidation(e) {
4556
4545
  const t = e._key();
4557
- return this.originValidationPromises[t] || (this.originValidationPromises[t] = Pr(e)), this.originValidationPromises[t];
4546
+ return this.originValidationPromises[t] || (this.originValidationPromises[t] = Cr(e)), this.originValidationPromises[t];
4558
4547
  }
4559
4548
  get _shouldInitProactively() {
4560
- return jt() || Ge() || ke();
4549
+ return Wt() || Be() || ke();
4561
4550
  }
4562
4551
  }
4563
- const Zr = Qr;
4552
+ const es = Zr;
4564
4553
  var gt = "@firebase/auth", _t = "1.7.5";
4565
4554
  /**
4566
4555
  * @license
@@ -4578,7 +4567,7 @@ var gt = "@firebase/auth", _t = "1.7.5";
4578
4567
  * See the License for the specific language governing permissions and
4579
4568
  * limitations under the License.
4580
4569
  */
4581
- class es {
4570
+ class ts {
4582
4571
  constructor(e) {
4583
4572
  this.auth = e, this.internalListeners = /* @__PURE__ */ new Map();
4584
4573
  }
@@ -4629,7 +4618,7 @@ class es {
4629
4618
  * See the License for the specific language governing permissions and
4630
4619
  * limitations under the License.
4631
4620
  */
4632
- function ts(n) {
4621
+ function ns(n) {
4633
4622
  switch (n) {
4634
4623
  case "Node":
4635
4624
  return "node";
@@ -4645,7 +4634,7 @@ function ts(n) {
4645
4634
  return;
4646
4635
  }
4647
4636
  }
4648
- function ns(n) {
4637
+ function is(n) {
4649
4638
  Ze(new et(
4650
4639
  "auth",
4651
4640
  (e, { options: t }) => {
@@ -4658,9 +4647,9 @@ function ns(n) {
4658
4647
  apiHost: "identitytoolkit.googleapis.com",
4659
4648
  tokenApiHost: "securetoken.googleapis.com",
4660
4649
  apiScheme: "https",
4661
- sdkClientVersion: Gt(n)
4662
- }, l = new Ni(i, r, s, a);
4663
- return xi(l, t), l;
4650
+ sdkClientVersion: Bt(n)
4651
+ }, l = new Oi(i, r, s, a);
4652
+ return Fi(l, t), l;
4664
4653
  },
4665
4654
  "PUBLIC"
4666
4655
  /* ComponentType.PUBLIC */
@@ -4679,14 +4668,14 @@ function ns(n) {
4679
4668
  "auth"
4680
4669
  /* _ComponentName.AUTH */
4681
4670
  ).getImmediate());
4682
- return ((i) => new es(i))(t);
4671
+ return ((i) => new ts(i))(t);
4683
4672
  },
4684
4673
  "PRIVATE"
4685
4674
  /* ComponentType.PRIVATE */
4686
4675
  ).setInstantiationMode(
4687
4676
  "EXPLICIT"
4688
4677
  /* InstantiationMode.EXPLICIT */
4689
- )), Le(gt, _t, ts(n)), Le(gt, _t, "esm2017");
4678
+ )), Le(gt, _t, ns(n)), Le(gt, _t, "esm2017");
4690
4679
  }
4691
4680
  /**
4692
4681
  * @license
@@ -4704,11 +4693,11 @@ function ns(n) {
4704
4693
  * See the License for the specific language governing permissions and
4705
4694
  * limitations under the License.
4706
4695
  */
4707
- const is = 5 * 60, rs = kt("authIdTokenMaxAge") || is;
4696
+ const rs = 5 * 60, ss = kt("authIdTokenMaxAge") || rs;
4708
4697
  let vt = null;
4709
- const ss = (n) => async (e) => {
4698
+ const os = (n) => async (e) => {
4710
4699
  const t = e && await e.getIdTokenResult(), i = t && ((/* @__PURE__ */ new Date()).getTime() - Date.parse(t.issuedAtTime)) / 1e3;
4711
- if (i && i > rs)
4700
+ if (i && i > ss)
4712
4701
  return;
4713
4702
  const r = t == null ? void 0 : t.token;
4714
4703
  vt !== r && (vt = r, await fetch(n, {
@@ -4718,115 +4707,117 @@ const ss = (n) => async (e) => {
4718
4707
  } : {}
4719
4708
  }));
4720
4709
  };
4721
- function os(n = Cn()) {
4710
+ function as(n = Nn()) {
4722
4711
  const e = bt(n, "auth");
4723
4712
  if (e.isInitialized())
4724
4713
  return e.getImmediate();
4725
- const t = Di(n, {
4726
- popupRedirectResolver: Zr,
4714
+ const t = xi(n, {
4715
+ popupRedirectResolver: es,
4727
4716
  persistence: [
4728
- ur,
4729
- Qi,
4717
+ dr,
4718
+ Zi,
4730
4719
  Qt
4731
4720
  ]
4732
4721
  }), i = kt("authTokenSyncURL");
4733
4722
  if (i && typeof isSecureContext == "boolean" && isSecureContext) {
4734
4723
  const s = new URL(i, location.origin);
4735
4724
  if (location.origin === s.origin) {
4736
- const o = ss(s.toString());
4737
- Ki(t, o, () => o(t.currentUser)), qi(t, (c) => o(c));
4725
+ const o = os(s.toString());
4726
+ Ji(t, o, () => o(t.currentUser)), Ki(t, (c) => o(c));
4738
4727
  }
4739
4728
  }
4740
- const r = Pn("auth");
4741
- return r && Fi(t, `http://${r}`), t;
4729
+ const r = Cn("auth");
4730
+ return r && Vi(t, `http://${r}`), t;
4742
4731
  }
4743
- function as() {
4732
+ function cs() {
4744
4733
  var n, e;
4745
4734
  return (e = (n = document.getElementsByTagName("head")) === null || n === void 0 ? void 0 : n[0]) !== null && e !== void 0 ? e : document;
4746
4735
  }
4747
- Oi({
4736
+ Li({
4748
4737
  loadJS(n) {
4749
4738
  return new Promise((e, t) => {
4750
4739
  const i = document.createElement("script");
4751
4740
  i.setAttribute("src", n), i.onload = e, i.onerror = (r) => {
4752
- const s = b(
4741
+ const s = E(
4753
4742
  "internal-error"
4754
4743
  /* AuthErrorCode.INTERNAL_ERROR */
4755
4744
  );
4756
4745
  s.customData = r, t(s);
4757
- }, i.type = "text/javascript", i.charset = "UTF-8", as().appendChild(i);
4746
+ }, i.type = "text/javascript", i.charset = "UTF-8", cs().appendChild(i);
4758
4747
  });
4759
4748
  },
4760
4749
  gapiScript: "https://apis.google.com/js/api.js",
4761
4750
  recaptchaV2Script: "https://www.google.com/recaptcha/api.js",
4762
4751
  recaptchaEnterpriseScript: "https://www.google.com/recaptcha/enterprise.js?render="
4763
4752
  });
4764
- ns(
4753
+ is(
4765
4754
  "Browser"
4766
4755
  /* ClientPlatform.BROWSER */
4767
4756
  );
4768
- var cs = { firebase: { apiKey: "AIzaSyAj8JdCHtP0Vc5vZobCfgoLzWxPIn0WUG4", authDomain: "feedme-dev-4c3ef.firebaseapp.com", databaseURL: "https://feedme-dev-4c3ef.firebaseio.com", projectId: "feedme-dev-4c3ef", storageBucket: "feedme-dev-4c3ef.appspot.com", messagingSenderId: "458797803788", appId: "1:458797803788:web:37f2af2926a84288f0c129", measurementId: "G-J2QG09D2Q7" }, assetBucketUrl: "feedme-dev-4c3ef.appspot.com", importFilesBucketUrl: "feedme-dev-4c3ef.appspot.com", clientId: "1a362d621873497b277ea55258cc82594ba148d235257f7bd44ea2acc132d8a4", featureFlagApiKey: "MaGoXrEWuEJNpWgKTqseee" }, ls = { authUrl: "https://portal-v2-dev.feedmeapi.com/", slackWebhookUrl: "https://hooks.slack.com/services/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", appUrl: "feedmedev.vip", crmUrl: "crm.feedmedev.cc", paymentPortalUrl: "https://portal.feedmedev.cc/payment/payout-account", licensePortalUrl: "https://license.feedmedev.cc/", marketingV1Portal: "https://marketing-v1.feedmedev.cc", voucherAppUrl: "https://voucher.feedmedev.cc/" };
4769
- const us = {
4757
+ var ls = { firebase: { apiKey: "AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4", authDomain: "feedme-253402.firebaseapp.com", databaseURL: "https://feedme-253402.firebaseio.com", projectId: "feedme-253402", storageBucket: "image.feedme.cc", messagingSenderId: "128512026847", appId: "1:128512026847:web:7c5c8ab7e8b90502dc616a", measurementId: "G-LTKS7N2HQS" }, assetBucketUrl: "static.feedme.cc", importFilesBucketUrl: "feedme-253402.appspot.com", clientId: "d5f8840d63dbb758b6c4ee2a5e8b013d15dd25e242c457481326062b83962476", featureFlagApiKey: "6GhcttsJ9Rj9cTevcdrpin" }, us = { authUrl: "https://portal-v2.feedmeapi.com/", slackWebhookUrl: "https://hooks.slack.com/services/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", appUrl: "member.feedme.cc", crmUrl: "crm.feedme.cc", paymentPortalUrl: "https://portal.feedme.cc/payment/payout-account", licensePortalUrl: "https://license.feedme.cc/", marketingV1Portal: "https://marketing-v1.feedme.cc", voucherAppUrl: "https://voucher.feedme.cc/" };
4758
+ const ds = {
4770
4759
  key: 2,
4771
4760
  class: "h-full w-full"
4772
- }, ds = ["src"], Ps = /* @__PURE__ */ xe({
4761
+ }, hs = ["src"], Cs = /* @__PURE__ */ xe({
4773
4762
  __name: "App",
4774
4763
  setup(n) {
4775
- const e = ge(), t = pn(), i = mn(), r = vn(), s = In(), o = wt(), c = te(o.query.showHeader !== "false"), a = te(!1), { currentBusiness: l } = ge();
4764
+ const e = ge(), t = pn(), i = mn(), r = vn(), s = In(), o = wt(), c = B(
4765
+ () => o.name === p["$connect-UPSELLING"]
4766
+ ), a = te(o.query.showHeader !== "false"), l = te(!1), { currentBusiness: d } = ge();
4776
4767
  ie(
4777
4768
  () => {
4778
- var p;
4779
- return (p = l.value) == null ? void 0 : p._id;
4769
+ var h;
4770
+ return (h = d.value) == null ? void 0 : h._id;
4780
4771
  },
4781
- (p) => {
4782
- p && _n(p);
4772
+ (h) => {
4773
+ h && _n(h);
4783
4774
  },
4784
4775
  { immediate: !0 }
4785
4776
  );
4786
- const d = te(!1), m = Y(() => i.version), y = Y(() => {
4787
- const p = e.currentCountry.value || "MY", g = tt.getIdToken(), v = l.value._id;
4788
- return `${ls.marketingV1Portal}/b/${v}/marketing/overview?showHeader=false&country=${p}&token=${g}`;
4777
+ const m = te(!1), v = B(() => i.version), y = B(() => {
4778
+ const h = e.currentCountry.value || "MY", _ = tt.getIdToken(), b = d.value._id;
4779
+ return `${us.marketingV1Portal}/b/${b}/marketing/overview?showHeader=false&country=${h}&token=${_}`;
4789
4780
  });
4790
- async function T() {
4791
- if (Un().length) {
4781
+ async function f() {
4782
+ if (Dn().length) {
4792
4783
  console.warn("CONNECT: initFirebase: Firebase already initialized");
4793
4784
  return;
4794
4785
  }
4795
- const p = Dn(cs.firebase), g = await fn.getCustomToken(), v = os();
4796
- await zi(v, g), xn(p), console.log("initFirebase", p);
4786
+ const h = xn(ls.firebase), _ = await fn.getCustomToken(), b = as();
4787
+ await qi(b, _), Fn(h), console.log("initFirebase", h);
4797
4788
  }
4798
- const h = async () => {
4799
- d.value = !1, await dn(), console.log("forceRerender"), tt.setBusinessId(l.value._id), await i.readPremium(), !a.value && m.value === "v2" ? e.registerSidebarComponent(Hn) : e.hideSidebarToggle(!0), await T(), a.value = !0, d.value = !0;
4789
+ const w = async () => {
4790
+ m.value = !1, await dn(), console.log("forceRerender"), tt.setBusinessId(d.value._id), await i.readPremium(), !l.value && v.value === "v2" ? e.registerSidebarComponent(jn) : e.hideSidebarToggle(!0), await f(), l.value = !0, m.value = !0;
4800
4791
  };
4801
4792
  return un(() => {
4802
- if (Fn.Config.setCountry(e.currentCountry.value || "MY"), t.initProvider(r, s), !c.value) {
4803
- const p = document.getElementsByClassName("app-header")[0], g = document.getElementsByClassName("app-sidebar")[0], v = document.getElementsByClassName("app-container")[0], M = document.getElementsByTagName("main")[0];
4804
- p == null || p.classList.add("!hidden"), g == null || g.classList.add("!pt-0"), v == null || v.classList.add("!pt-0"), M == null || M.classList.add("!pt-0"), e.hideSidebarToggle(!0);
4793
+ if (Vn.Config.setCountry(e.currentCountry.value || "MY"), t.initProvider(r, s), !a.value) {
4794
+ const h = document.getElementsByClassName("app-header")[0], _ = document.getElementsByClassName("app-sidebar")[0], b = document.getElementsByClassName("app-container")[0], T = document.getElementsByTagName("main")[0];
4795
+ h == null || h.classList.add("!hidden"), _ == null || _.classList.add("!pt-0"), b == null || b.classList.add("!pt-0"), T == null || T.classList.add("!pt-0"), e.hideSidebarToggle(!0);
4805
4796
  }
4806
- l.value != null && (console.log("App mounted, forceRerender"), h());
4797
+ d.value != null && (console.log("App mounted, forceRerender"), w());
4807
4798
  }), ie(
4808
4799
  () => e.currentBusiness.value,
4809
- async (p, g) => {
4810
- console.log("Current business changed"), p != null && p._id != g._id && (console.log("forceRerender when business changes", p, g), h());
4800
+ async (h, _) => {
4801
+ console.log("Current business changed"), h != null && h._id != _._id && (console.log("forceRerender when business changes", h, _), w());
4811
4802
  }
4812
- ), (p, g) => (j(), me(It, null, [
4813
- _(d) && _(m) === "v2" ? (j(), Oe(_(hn), { key: 0 })) : Pe("", !0),
4814
- _(d) && _(m) === "v2" && _(c) ? (j(), Oe(si, { key: 1 })) : Pe("", !0),
4815
- _(d) && _(m) !== "v2" ? (j(), me("div", us, [
4816
- S(kn, {
4817
- json: { url: _(y) }
4803
+ ), (h, _) => (W(), me(It, null, [
4804
+ g(m) && (g(v) === "v2" || g(c)) ? (W(), Oe(g(hn), { key: 0 })) : Ae("", !0),
4805
+ g(m) && g(v) === "v2" && g(a) ? (W(), Oe(oi, { key: 1 })) : Ae("", !0),
4806
+ g(m) && g(v) !== "v2" && !g(c) ? (W(), me("div", ds, [
4807
+ R(bn, {
4808
+ json: { url: g(y) }
4818
4809
  }, null, 8, ["json"]),
4819
4810
  I("iframe", {
4820
4811
  allow: "clipboard-read; clipboard-write",
4821
4812
  frameBorder: "0",
4822
4813
  height: "100%",
4823
4814
  width: "100%",
4824
- src: _(y)
4825
- }, null, 8, ds)
4826
- ])) : Pe("", !0)
4815
+ src: g(y)
4816
+ }, null, 8, hs)
4817
+ ])) : Ae("", !0)
4827
4818
  ], 64));
4828
4819
  }
4829
4820
  });
4830
4821
  export {
4831
- Ps as default
4822
+ Cs as default
4832
4823
  };