@feedmepos/mf-connect 0.1.111-prod → 0.1.113-beta.3

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 (162) hide show
  1. package/README.md +66 -1
  2. package/dist/{App-D3pYl3WL.js → App-YfpYV7C0.js} +738 -689
  3. package/dist/AuditLogs-kD0_HO_p.js +2016 -0
  4. package/dist/{Bin-DOZqpbYH.js → Bin-Dr-Xp3pn.js} +8 -8
  5. package/dist/Broadcast-CEbHu2xA.js +306 -0
  6. package/dist/{CampaignAnalytic-cFKvCgxX.js → CampaignAnalytic-DDiGxPwp.js} +7 -7
  7. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-B0eVEubS.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-Cc_Yho9-.js} +49 -32
  8. package/dist/Card-BUnwg0eM.js +1086 -0
  9. package/dist/{Collections-9QK5hbLo.js → Collections-CKyBkKq2.js} +197 -185
  10. package/dist/{Credit-8Ouy4O9a.js → Credit-CJOXWLV1.js} +21 -20
  11. package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-CJA-yunY.js → DateRangeChip.vue_vue_type_script_setup_true_lang-DmEBLeNI.js} +1 -1
  12. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-Ce5R4Un6.js +4442 -0
  13. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-Dv0q3B8m.js → EffectSheet.vue_vue_type_style_index_0_lang-CMFmlqfF.js} +32 -32
  14. package/dist/{Experience-DMh4hR1S.js → Experience-C_Am5CTY.js} +32 -31
  15. package/dist/{FileSaver.min-Bx9mdUgJ.js → FileSaver.min-CueAGbjq.js} +1 -1
  16. package/dist/{Game-CL0TZvg1.js → Game-B6GO_LVU.js} +19 -18
  17. package/dist/GiftCardSetup-CVLDDpI2.js +748 -0
  18. package/dist/{GoalPickerPanel.vue_vue_type_script_setup_true_lang-Bz5kIfoM.js → GoalPickerPanel.vue_vue_type_script_setup_true_lang-isfGhKO1.js} +7 -7
  19. package/dist/{Goals-Dz5Vp-lj.js → Goals-BX-sMV2V.js} +4 -4
  20. package/dist/Grab-Bh335Srh.js +301 -0
  21. package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-CaPDI3vY.js → ImageInput.vue_vue_type_script_setup_true_lang-srSgUY3e.js} +1 -1
  22. package/dist/{Index-kH8aAegB.js → Index-CyXRbwcm.js} +10 -10
  23. package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-CFrgC3Ka.js → LocationPicker.vue_vue_type_script_setup_true_lang-S3GB2Ems.js} +1 -1
  24. package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-DPIFLdBc.js → LottieAnimation.vue_vue_type_script_setup_true_lang-ZlWHXwXZ.js} +1 -1
  25. package/dist/{LoyaltyDashboard-BBxEoWol.js → LoyaltyDashboard-DrTq8oiu.js} +15 -15
  26. package/dist/MainLayout-KbKkpX5n.js +4 -0
  27. package/dist/{MainLayout-2BLwDyHQ.js → MainLayout.vue_vue_type_script_setup_true_lang-2D5ate_s.js} +5 -4
  28. package/dist/{Marketing-C4OnSV-c.js → Marketing-DQT1MWQg.js} +4 -4
  29. package/dist/MarketingMaterialEdit-fSqr53-M.js +1037 -0
  30. package/dist/{Member-CT9WwxP0.js → Member-DwDUCzlv.js} +7 -7
  31. package/dist/{MemberDetailSheet.vue_vue_type_script_setup_true_lang-C7yznkUn.js → MemberDetailSheet.vue_vue_type_script_setup_true_lang-DaQ4Lw8f.js} +43 -49
  32. package/dist/{MemberImportHistory-B__BFID7.js → MemberImportHistory-D4ezvJGZ.js} +7 -7
  33. package/dist/{MemberList-DgLI4wty.js → MemberList-DFieV7Qk.js} +103 -105
  34. package/dist/{MemberTransactions-UFx_DZYe.js → MemberTransactions-BPOXyAuC.js} +1 -1
  35. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-BFjZA8Y6.js → MessageInput.vue_vue_type_script_setup_true_lang-DhfsgDd4.js} +4821 -4690
  36. package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-Df9bxbUl.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-CX8bk_IQ.js} +1 -1
  37. package/dist/{Mission-CawzGzDu.js → Mission-nErb05Es.js} +22 -21
  38. package/dist/{Overview-D19oSo24.js → Overview-7G31a7B-.js} +58 -56
  39. package/dist/{Overview-CAtTlEVa.js → Overview-DuJr_hAg.js} +145 -144
  40. package/dist/{Point-BPAGmKAj.js → Point-PWDLemD4.js} +22 -21
  41. package/dist/{Promotion-B0Uf9vjL.js → Promotion-N80Tj8M6.js} +137 -131
  42. package/dist/{Queue-CJEAFss_.js → Queue-M7ZpgiMT.js} +49 -47
  43. package/dist/{Record-s6hSQG2P.js → Record-NhxrdvWv.js} +9 -9
  44. package/dist/{Review-DhNCbAOm.js → Review-DiAaAzIG.js} +2 -2
  45. package/dist/ReviewFacebookCallback-JdyxFbNl.js +225 -0
  46. package/dist/{ReviewGoogleCallback-D8ENWii2.js → ReviewGoogleCallback-BXbI3Bsh.js} +5 -5
  47. package/dist/{Reward-BT00QsXL.js → Reward-yTaOqOT8.js} +29 -29
  48. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-DaZDGhbm.js → RewardGroup.vue_vue_type_script_setup_true_lang-BWPfjZ9K.js} +26 -24
  49. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-Cz2H9MKe.js +1923 -0
  50. package/dist/{Segment-BuGhX9zg.js → Segment-DE9Bcd6R.js} +287 -287
  51. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-DB718_4P.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-pmv0cb4J.js} +37 -35
  52. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-CkgXxy0C.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-BeWwkTix.js} +4 -4
  53. package/dist/Setting-C0JAxIRT.js +574 -0
  54. package/dist/{SettingAdvertisements-aqFErKAr.js → SettingAdvertisements-DxueyKU8.js} +12 -12
  55. package/dist/Settings-Cs46AcxZ.js +286 -0
  56. package/dist/Store-DqQae9nE.js +2629 -0
  57. package/dist/{StoreRewards-D2pTL2oA.js → StoreRewards-JxSUsOzJ.js} +15 -15
  58. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-qgrBtUNX.js +1319 -0
  59. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-D7ifzgsI.js +7007 -0
  60. package/dist/{Tier-OyE8oH2r.js → Tier-DWhgWush.js} +2576 -686
  61. package/dist/{Title-DAl7CKL_.js → Title-DUNeMdz8.js} +104 -101
  62. package/dist/Transaction-DAv-LVhC.js +45 -0
  63. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-C0yHxQVr.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-Cih-9IoW.js} +26 -26
  64. package/dist/{Voucher-D2QGWSxs.js → Voucher-uLTq9RSK.js} +19 -19
  65. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-Bt2YB745.js → VoucherEditor.vue_vue_type_script_setup_true_lang-BevVL_Kx.js} +16 -16
  66. package/dist/WhatsappAccount-BpXQ4q0P.js +158 -0
  67. package/dist/WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-EssnbsgT.js +39 -0
  68. package/dist/WhatsappBot-DB4NRZMd.js +589 -0
  69. package/dist/WhatsappBotLogs-DDN4H_bv.js +372 -0
  70. package/dist/WhatsappBotSettings-Bkv1VNwF.js +387 -0
  71. package/dist/WhatsappBotTickets-DAKgnE6T.js +162 -0
  72. package/dist/WhatsappLayout-DSnq84Uo.js +21 -0
  73. package/dist/WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-1BvxPD-k.js +195 -0
  74. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-BzCL64Jo.js → ZodTextField.vue_vue_type_script_setup_true_lang-CR-F0x1r.js} +2 -2
  75. package/dist/{app-QxosLNkH.js → app-Devzv4gO.js} +12854 -9732
  76. package/dist/app.js +4 -3
  77. package/dist/base.export-CCSMkvAm.js +75 -0
  78. package/dist/browser-BSAOEeIM.js +1478 -0
  79. package/dist/{business-CbqG6NXr.js → business-BjAmUqNA.js} +1 -1
  80. package/dist/campaign-C5c47GqT.js +400 -0
  81. package/dist/{campaign-Rj7oDBnN.js → campaign-CTe-T5Gd.js} +31 -25
  82. package/dist/{campaign.enum-B7vdNYKd.js → campaign.enum-Dx-Zo68Q.js} +3 -2
  83. package/dist/campaign.fn-DxAO8A5b.js +776 -0
  84. package/dist/{collectible.enum-BsQseg7-.js → collectible.enum-Liy2wH3s.js} +1 -1
  85. package/dist/{collection.fn-EbUIyB1X.js → collection.fn-C9l-OtNt.js} +2 -2
  86. package/dist/currency-mwm4AWXK.js +7 -0
  87. package/dist/duplicateCampaign-BbC4AwQ1.js +51 -0
  88. package/dist/{effect-B_91OlcX.js → effect-D8ba9z0K.js} +1 -1
  89. package/dist/{email-addresses-DXnYZG-e.js → email-addresses-BR5J6_Jz.js} +2 -2
  90. package/dist/feature-flag-C-5NdFW8.js +868 -0
  91. package/dist/feature-flag-CNcU4_3r.js +50 -0
  92. package/dist/google-BQK68wbe.js +5 -0
  93. package/dist/{helper-_uhiXya1.js → helper-D9cEaMIv.js} +1 -1
  94. package/dist/index-0H82-X0n.js +80 -0
  95. package/dist/{index-Cp7oHMm3.js → index-B1jP-_Z_.js} +691 -229
  96. package/dist/{index-BZ2b0Pk6.js → index-B7HH6vKF.js} +8 -7
  97. package/dist/{index-tbo0pMIu.js → index-BFaZp6Et.js} +29 -15
  98. package/dist/index-B_gzo75q.js +53 -0
  99. package/dist/{index-DlQJZNwD.js → index-BfoDdVQS.js} +22 -6
  100. package/dist/{index-CDm0BWa3.js → index-BvY2hQac.js} +1 -1
  101. package/dist/index-Byg4ztr-.js +902 -0
  102. package/dist/{index-BWgc2-Qz.js → index-CZfqqrVu.js} +4 -3
  103. package/dist/index-C_H8jFYf.js +2743 -0
  104. package/dist/{index-xuFTeVrb.js → index-CmzjBrHR.js} +11 -9
  105. package/dist/{index-BBihP1s2.js → index-Ct6YjTIW.js} +2 -2
  106. package/dist/{index-Df4l6y-S.js → index-D34iYRdc.js} +1900 -2121
  107. package/dist/{index-DuhRCI0L.js → index-D4k1G2oE.js} +4 -4
  108. package/dist/{index-uuNGb1nv.js → index-DnepoNWn.js} +8028 -10766
  109. package/dist/index-Drmh0FT-.js +14571 -0
  110. package/dist/{index-DlGnYR5y.js → index-DtcUCknS.js} +2700 -2613
  111. package/dist/{index-C_1iqF1Q.js → index-DwTBiVts.js} +1 -1
  112. package/dist/{index-CWUmrVo_.js → index-OvnHt5x5.js} +800 -793
  113. package/dist/index-RwNlbTO8.js +115 -0
  114. package/dist/{index-CzYxnDWP.js → index-VqAbYyHH.js} +11 -6
  115. package/dist/{index-DzBzClHP.js → index-yGSko6Eq.js} +1 -1
  116. package/dist/{index.esm2017-B72iWwk_.js → index.esm2017-DLb2VyCT.js} +156 -156
  117. package/dist/{loading-rIhCiB_S.js → loading-CUNk5u1d.js} +1 -1
  118. package/dist/{lodash-B6fOjfjd.js → lodash-BJXravls.js} +1 -1
  119. package/dist/{member-import-CbHn7zss.js → member-import-DjYoddBi.js} +6 -5
  120. package/dist/{membership-DkJN7jyQ.js → membership-ByJUFP8f.js} +3 -3
  121. package/dist/{money-ChbDx6Nq.js → money-Bf2IEMJJ.js} +1 -1
  122. package/dist/{number-9TEd27Ku.js → number-CRBHrRUL.js} +1 -1
  123. package/dist/objectid-58gyOvdR.js +145 -0
  124. package/dist/{onboarding-BN3MKVRs.js → onboarding-CQ3lw7eY.js} +25 -25
  125. package/dist/{onboardingSetup-D9xhdgS3.js → onboardingSetup-CsdZKGFk.js} +2 -2
  126. package/dist/{plugins-CCibSJZa.js → plugins-iTZLbJGy.js} +3 -3
  127. package/dist/{MarketingMaterialEdit-DFhpsI2-.js → remy-icon-BhUGu2NI.js} +2 -1031
  128. package/dist/{reward-DjasF-NL.js → reward-DTN6JpEd.js} +1 -1
  129. package/dist/{rule-DqeChj0e.js → rule-BYACNQOL.js} +572 -492
  130. package/dist/style.css +1 -1
  131. package/dist/template--Vr0PCjB.js +188 -0
  132. package/dist/{timezone-D0nC1LDx.js → timezone-DwzjOED-.js} +1 -1
  133. package/dist/{transaction.fn-BkF4Ad2z.js → transaction.fn-DapYe3n7.js} +2 -2
  134. package/dist/{trigger-CxpXoQJO.js → trigger-D8r76yb0.js} +18 -18
  135. package/dist/{useMarketingMaterialActions-p0-fyMkm.js → useMarketingMaterialActions-CdMmibPE.js} +3 -3
  136. package/dist/{usePagination-CrC-1v4L.js → usePagination-BRcQJkO1.js} +1 -1
  137. package/dist/useWhatsappAccount-BOJ8fz84.js +62 -0
  138. package/dist/{user-CrylHgF1.js → user-vBZFKqXQ.js} +1 -1
  139. package/dist/vue-i18n-Cw6fF11e.js +2365 -0
  140. package/dist/{xlsx-CJNYF7-l.js → xlsx-Muy_Rjhk.js} +440 -440
  141. package/dist/{zod-Dzn9S95S.js → zod-CCPTOeUz.js} +1 -1
  142. package/package.json +12 -3
  143. package/dist/Broadcast-DZ4SP99P.js +0 -271
  144. package/dist/Card-B5ni027Q.js +0 -911
  145. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-BYxswo-Z.js +0 -2430
  146. package/dist/ReviewFacebookCallback-DeZqcpJo.js +0 -238
  147. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-BvxbKSkB.js +0 -1882
  148. package/dist/Setting-BOWPp05N.js +0 -2036
  149. package/dist/Settings-DekXvE-R.js +0 -179
  150. package/dist/Store-DpVlMuau.js +0 -1998
  151. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-CNDv6eiZ.js +0 -1009
  152. package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-C-C3RSeW.js +0 -142
  153. package/dist/Transaction-mvKzTgLx.js +0 -39
  154. package/dist/campaign-Co4Lq-Wz.js +0 -228
  155. package/dist/campaign.fn-DolD3lYJ.js +0 -776
  156. package/dist/export-D0hWZSfH.js +0 -97
  157. package/dist/google-C3S8u0mT.js +0 -4
  158. package/dist/index-aCuOvuEC.js +0 -45
  159. package/dist/objectid-CGol1NeA.js +0 -145
  160. package/dist/rule-builder-DT854ycI.js +0 -102
  161. package/dist/template-BeCVA0-N.js +0 -236
  162. package/dist/vue-i18n-BjtkXdmG.js +0 -2365
@@ -1,206 +1,228 @@
1
- import { defineComponent as xe, ref as ee, h as H, Comment as cn, computed as ne, watch as pe, resolveComponent as Z, openBlock as j, createElementBlock as me, createVNode as S, unref as g, createElementVNode as v, toDisplayString as R, createBlock as Oe, withCtx as Q, Fragment as It, renderList as ln, onMounted as un, createCommentVNode as Pe, nextTick as dn } from "vue";
2
- import { useRouter as yt, useRoute as wt, RouterView as hn } from "vue-router";
3
- import { useCoreStore as ge, FeedMeAuth as fn } from "@feedmepos/mf-common";
4
- import { u as pn } from "./app-wDQR6dpb.js";
5
- import { u as mn } from "./business-CbqG6NXr.js";
6
- import "./index-CDm0BWa3.js";
7
- import { components as G, useSnackbar as gn, useDialog as _n } from "@feedmepos/ui-library";
8
- import { u as Tt } from "./vue-i18n-BjtkXdmG.js";
9
- import { m as vn } from "./index-DzBzClHP.js";
10
- import { C as Xe } from "./timezone-D0nC1LDx.js";
11
- import { u as In } from "./onboarding-BN3MKVRs.js";
12
- import { R as f, A as yn, a as Qe } from "./app-QxosLNkH.js";
13
- import { J as wn } from "./JsonViewer-v8_C7l5N.js";
14
- import { r as Le, L as Tn, g as kt, i as kn, a as bn, _ as Ze, C as et, b as En, S as re, c as A, d as Y, E as Fe, e as Sn, f as bt, h as Rn, j as An, k as Et, l as w, m as Pn, F as Ve, n as Cn, q as se, o as Nn, p as On, s as Ln, t as Mn, u as Un } from "./index.esm2017-B72iWwk_.js";
1
+ import { defineComponent as xe, ref as ne, h as U, Comment as ln, computed as X, watch as q, resolveComponent as te, openBlock as j, createElementBlock as me, createVNode as R, unref as _, createElementVNode as I, toDisplayString as A, createBlock as Oe, withCtx as ee, Fragment as It, renderList as un, onBeforeUnmount as dn, onMounted as hn, createCommentVNode as Pe, nextTick as fn } from "vue";
2
+ import { useRouter as yt, useRoute as wt, RouterView as pn } from "vue-router";
3
+ import { useCoreStore as ge, FeedMeAuth as mn } from "@feedmepos/mf-common";
4
+ import { u as gn } from "./app-wDQR6dpb.js";
5
+ import { u as _n } from "./business-BjAmUqNA.js";
6
+ import { u as Tt } from "./feature-flag-CNcU4_3r.js";
7
+ import { l as vn } from "./feature-flag-C-5NdFW8.js";
8
+ import "./index-BvY2hQac.js";
9
+ import { components as W, useSnackbar as In, useDialog as yn } from "@feedmepos/ui-library";
10
+ import { u as kt } from "./vue-i18n-Cw6fF11e.js";
11
+ import { m as wn } from "./index-yGSko6Eq.js";
12
+ import { C as Xe } from "./timezone-DwzjOED-.js";
13
+ import { u as Tn } from "./onboarding-CQ3lw7eY.js";
14
+ import { R as p, A as kn, a as Qe } from "./app-Devzv4gO.js";
15
+ import { J as bn } from "./JsonViewer-v8_C7l5N.js";
16
+ import { r as Le, L as En, g as bt, i as Sn, a as Rn, _ as Ze, C as et, b as An, S as se, c as P, d as Q, E as Fe, e as Pn, f as Et, h as Cn, j as Nn, k as St, 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-DLb2VyCT.js";
15
17
  import { _ as $e } from "./tslib.es6-BCqqvLQ_.js";
16
- import { S as tt, c as Dn } from "./index-CWUmrVo_.js";
17
- const xn = { class: "flex flex-col h-full justify-between py-16" }, Fn = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary text-center" }, Vn = /* @__PURE__ */ xe({
18
+ import { S as tt, c as Vn } from "./index-OvnHt5x5.js";
19
+ 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" }, Wn = /* @__PURE__ */ xe({
18
20
  __name: "NavigationTab",
19
21
  setup(n) {
20
- const { t: e, locale: t } = Tt(), i = In(), r = ee(), s = [
22
+ const { t: e, locale: t } = kt(), i = Tn(), r = Tt(), s = ne(), o = [
21
23
  {
22
24
  label: e("connect.navigation.analytic"),
23
- value: f["$connect-ANALYTIC"]
25
+ value: p["$connect-ANALYTIC"]
24
26
  },
25
27
  {
26
28
  label: e("connect.navigation.campaign"),
27
- value: f["$connect-CAMPAIGN"],
29
+ value: p["$connect-CAMPAIGN"],
28
30
  children: [
29
31
  {
30
32
  label: e("connect.navigation.promotion"),
31
- value: f["$connect-CAMPAIGN_PROMOTION"]
33
+ value: p["$connect-CAMPAIGN_PROMOTION"]
32
34
  },
33
35
  {
34
36
  label: e("connect.navigation.voucher"),
35
- value: f["$connect-CAMPAIGN_VOUCHER"]
37
+ value: p["$connect-CAMPAIGN_VOUCHER"]
36
38
  },
37
39
  {
38
40
  label: e("connect.navigation.broadcast"),
39
- value: f["$connect-CAMPAIGN_BROADCAST"]
41
+ value: p["$connect-CAMPAIGN_BROADCAST"]
42
+ },
43
+ {
44
+ label: e("connect.navigation.grab"),
45
+ value: p["$connect-CAMPAIGN_GRAB"]
40
46
  }
41
47
  ]
42
48
  },
43
49
  {
44
50
  label: e("connect.navigation.program"),
45
- value: f["$connect-PROGRAM"],
51
+ value: p["$connect-PROGRAM"],
46
52
  children: [
47
53
  {
48
54
  label: e("connect.navigation.tier"),
49
- value: f["$connect-PROGRAM_TIER"]
55
+ value: p["$connect-PROGRAM_TIER"]
50
56
  },
51
57
  {
52
58
  label: e("connect.navigation.title"),
53
- value: f["$connect-PROGRAM_TITLE"]
59
+ value: p["$connect-PROGRAM_TITLE"]
54
60
  },
55
61
  {
56
62
  label: e("connect.navigation.experience"),
57
- value: f["$connect-PROGRAM_EXPERIENCE"]
63
+ value: p["$connect-PROGRAM_EXPERIENCE"]
58
64
  },
59
65
  {
60
66
  label: e("connect.navigation.point"),
61
- value: f["$connect-PROGRAM_POINT"],
62
- badge: () => H(G.FmPill, { variant: "premium" })
67
+ value: p["$connect-PROGRAM_POINT"],
68
+ badge: () => U(W.FmPill, { variant: "premium" })
63
69
  },
64
70
  {
65
71
  label: e("connect.navigation.credit"),
66
- value: f["$connect-PROGRAM_CREDIT"]
72
+ value: p["$connect-PROGRAM_CREDIT"]
67
73
  },
68
74
  {
69
75
  label: e("connect.navigation.game"),
70
- value: f["$connect-PROGRAM_GAME"],
71
- badge: () => H(G.FmPill, { variant: "premium" })
76
+ value: p["$connect-PROGRAM_GAME"],
77
+ badge: () => U(W.FmPill, { variant: "premium" })
72
78
  },
73
79
  {
74
80
  label: "Mission",
75
- value: f["$connect-PROGRAM_MISSION"]
81
+ value: p["$connect-PROGRAM_MISSION"]
76
82
  }
77
83
  ]
78
84
  },
79
85
  {
80
86
  label: e("connect.navigation.loyalty"),
81
- value: f["$connect-LOYALTY"],
87
+ value: p["$connect-LOYALTY"],
82
88
  children: [
83
89
  {
84
90
  label: e("connect.navigation.member"),
85
- value: f["$connect-LOYALTY_MEMBER_LIST"]
91
+ value: p["$connect-LOYALTY_MEMBER_LIST"]
86
92
  },
87
93
  {
88
94
  label: e("connect.navigation.segments"),
89
- value: f["$connect-LOYALTY_SEGMENT"],
90
- badge: () => H(G.FmPill, { variant: "premium" })
95
+ value: p["$connect-LOYALTY_SEGMENT"],
96
+ badge: () => U(W.FmPill, { variant: "premium" })
91
97
  },
92
98
  {
93
99
  label: e("connect.navigation.card"),
94
- value: f["$connect-LOYALTY_CARD"],
95
- badge: () => H(G.FmPill, { variant: "premium" })
100
+ value: p["$connect-LOYALTY_CARD"],
101
+ badge: () => U(W.FmPill, { variant: "premium" })
96
102
  }
97
103
  ]
98
104
  },
105
+ {
106
+ label: e("connect.navigation.whatsappBot"),
107
+ value: p["$connect-WHATSAPP"],
108
+ badge: () => U(W.FmPill, { variant: "beta" })
109
+ },
99
110
  {
100
111
  label: e("connect.navigation.referral"),
101
- value: f["$connect-REFERRAL"],
102
- badge: () => H(G.FmPill, { variant: "premium" })
112
+ value: p["$connect-REFERRAL"],
113
+ badge: () => U(W.FmPill, { variant: "premium" })
103
114
  },
104
115
  {
105
116
  label: e("connect.navigation.store"),
106
- value: f["$connect-STORE"]
117
+ value: p["$connect-STORE"]
107
118
  },
108
119
  {
109
120
  label: e("connect.navigation.transaction"),
110
- value: f["$connect-TRANSACTION"]
121
+ value: p["$connect-TRANSACTION"]
111
122
  },
112
123
  {
113
124
  label: e("connect.navigation.marketingMaterials"),
114
- value: f["$connect-MARKETING"]
125
+ value: p["$connect-MARKETING"]
126
+ },
127
+ {
128
+ label: e("connect.navigation.auditLogs"),
129
+ value: p["$connect-AUDIT_LOGS"]
115
130
  },
116
131
  {
117
132
  label: e("connect.navigation.review"),
118
- value: f["$connect-REVIEW"]
133
+ value: p["$connect-REVIEW"]
119
134
  },
120
135
  {
121
136
  label: e("connect.navigation.goals"),
122
- value: f["$connect-GOALS"],
123
- badge: () => i.goalsRemaining > 0 ? H(G.FmBadge, {
137
+ value: p["$connect-GOALS"],
138
+ badge: () => i.goalsRemaining > 0 ? U(W.FmBadge, {
124
139
  variant: "numeric",
125
140
  inline: !0,
126
141
  value: i.goalsRemaining
127
- }) : H(cn)
142
+ }) : U(ln)
128
143
  },
129
144
  {
130
145
  label: e("connect.navigation.setting"),
131
- value: f["$connect-SETTING"]
146
+ value: p["$connect-SETTING"]
132
147
  },
133
148
  {
134
149
  label: e("connect.navigation.bin"),
135
- value: f["$connect-BIN"]
150
+ value: p["$connect-BIN"]
136
151
  }
137
- ], o = yt(), c = wt(), a = s.reduce((h, y) => [...(y.children ?? []).map((_) => _.value), ...h, y.value], []), l = ge(), d = ne(() => {
138
- const h = l.currentCountry.value || "MY";
139
- return console.log(`[MF] Timezone set to: ${Xe[h]}`), Xe[h];
152
+ ], c = X(
153
+ () => o.filter(
154
+ (f) => f.value !== p["$connect-WHATSAPP"] || r.whatsappBotEnabled
155
+ )
156
+ ), a = yt(), l = wt(), h = o.reduce((f, w) => [...(w.children ?? []).map((d) => d.value), ...f, w.value], []), m = ge(), v = X(() => {
157
+ const f = m.currentCountry.value || "MY";
158
+ return console.log(`[MF] Timezone set to: ${Xe[f]}`), Xe[f];
140
159
  });
141
- pe(
142
- () => c,
143
- (h) => {
144
- const y = h.matched.map((_) => _.name).reverse();
145
- r.value = y.find((_) => a.includes(_));
160
+ q(
161
+ // Watch `route.matched`, not `route`: `useRoute()` returns a reactive object
162
+ // whose identity never changes, so watching it directly fired once via
163
+ // `immediate` and the highlight then stayed on whatever page loaded first.
164
+ () => l.matched,
165
+ (f) => {
166
+ const d = f.map((g) => g.name).reverse().find((g) => h.includes(g));
167
+ d && (s.value = d);
146
168
  },
147
169
  { immediate: !0 }
148
- ), pe(
170
+ ), q(
149
171
  [() => {
150
- var h;
151
- return (h = l.currentBusiness.value) == null ? void 0 : h._id;
152
- }, () => c.name, t],
153
- ([h]) => {
154
- h && i.read(t.value, h);
172
+ var f;
173
+ return (f = m.currentBusiness.value) == null ? void 0 : f._id;
174
+ }, () => l.name, t],
175
+ ([f]) => {
176
+ f && i.read(t.value, f);
155
177
  },
156
178
  { immediate: !0 }
157
179
  );
158
- async function p(h) {
159
- await o.push({ name: h });
180
+ async function y(f) {
181
+ await a.push({ name: f });
160
182
  }
161
- return (h, y) => {
162
- var m;
163
- const _ = Z("FmCollapsibleTabs");
164
- return j(), me("div", xn, [
165
- S(_, {
183
+ return (f, w) => {
184
+ var g;
185
+ const d = te("FmCollapsibleTabs");
186
+ return j(), me("div", $n, [
187
+ R(d, {
166
188
  class: "border-fm-color-neutral-gray-100 border-r px-4",
167
- "model-value": (m = g(r)) == null ? void 0 : m.toString(),
168
- items: s,
169
- "onUpdate:modelValue": p
170
- }, null, 8, ["model-value"]),
171
- v("div", Fn, [
172
- v("div", null, "Timezone: " + R(g(d).split("/")[1].replace("_", " ")), 1),
173
- v("div", null, "(UTC" + R(g(vn).tz(g(d)).format("Z")) + ")", 1)
189
+ "model-value": (g = _(s)) == null ? void 0 : g.toString(),
190
+ items: _(c),
191
+ "onUpdate:modelValue": y
192
+ }, null, 8, ["model-value", "items"]),
193
+ I("div", Hn, [
194
+ I("div", null, "Timezone: " + A(_(v).split("/")[1].replace("_", " ")), 1),
195
+ I("div", null, "(UTC" + A(_(wn).tz(_(v)).format("Z")) + ")", 1)
174
196
  ])
175
197
  ]);
176
198
  };
177
199
  }
178
- }), St = "feedme_connect_marketing_promo_hidden";
179
- function $n() {
200
+ }), Rt = "feedme_connect_marketing_promo_hidden";
201
+ function jn() {
180
202
  try {
181
- return localStorage.getItem(St) !== null;
203
+ return localStorage.getItem(Rt) !== null;
182
204
  } catch {
183
205
  return !1;
184
206
  }
185
207
  }
186
- function Hn() {
208
+ function Bn() {
187
209
  try {
188
- localStorage.setItem(St, (/* @__PURE__ */ new Date()).toISOString());
210
+ localStorage.setItem(Rt, (/* @__PURE__ */ new Date()).toISOString());
189
211
  } catch {
190
212
  }
191
213
  }
192
- const jn = { class: "flex flex-col gap-12" }, Wn = { class: "fm-corner-radius-xxl bg-fm-color-primary-oats flex items-start gap-4 self-start px-12 py-4" }, Bn = { class: "fm-typo-en-body-sm-600 text-fm-color-primary" }, Gn = { class: "fm-typo-en-title-sm-800 max-w-[560px] leading-[42px]" }, zn = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary max-w-[600px]" }, qn = { class: "flex flex-col gap-24 pb-8" }, Kn = { class: "grid grid-cols-1 gap-16 sm:grid-cols-3 md:grid-cols-3 lg:grid-cols-3" }, Jn = { class: "fm-corner-radius-sm bg-fm-color-primary-oats flex h-40 w-40 shrink-0 items-center justify-center" }, Yn = { class: "fm-typo-en-body-lg-600" }, Xn = { class: "fm-typo-en-body-md-400 text-fm-color-typo-tertiary" }, Qn = { class: "shrink-0" }, Zn = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ei = { class: "flex w-full flex-col gap-12 px-[16px]" }, ti = { class: "flex flex-wrap items-center gap-12" }, ni = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-tertiary" }, ii = /* @__PURE__ */ xe({
214
+ 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({
193
215
  __name: "AiMarketingPromoDialog",
194
216
  setup(n) {
195
217
  let e = !1;
196
- const { t } = Tt(), i = yt(), { sessionUser: r, currentCountry: s } = ge(), o = ee(!1), c = [
218
+ const { t } = kt(), i = yt(), { sessionUser: r, currentCountry: s } = ge(), o = ne(!1), c = [
197
219
  { key: "completeContent", icon: "layers" },
198
220
  { key: "realContext", icon: "storefront" },
199
221
  { key: "socialFormat", icon: "aspect_ratio" }
200
- ], a = ne(() => {
201
- var _;
202
- const y = ((_ = r.value) == null ? void 0 : _.permissions) ?? [];
203
- return yn(
222
+ ], a = X(() => {
223
+ var f;
224
+ const y = ((f = r.value) == null ? void 0 : f.permissions) ?? [];
225
+ return kn(
204
226
  [
205
227
  {
206
228
  action: Qe.Action.manage,
@@ -209,104 +231,104 @@ const jn = { class: "flex flex-col gap-12" }, Wn = { class: "fm-corner-radius-xx
209
231
  ],
210
232
  y
211
233
  ).granted;
212
- }), l = ne(
234
+ }), l = X(
213
235
  () => s.value === "MY" && a.value
214
236
  );
215
- let d = !1;
216
- pe(
237
+ let h = !1;
238
+ q(
217
239
  l,
218
240
  (y) => {
219
- d || !y || (d = !0, !($n() || e) && (e = !0, o.value = !0));
241
+ h || !y || (h = !0, !(jn() || e) && (e = !0, o.value = !0));
220
242
  },
221
243
  { immediate: !0 }
222
244
  );
223
- async function p() {
224
- o.value = !1, await i.push({ name: f["$connect-MARKETING"] });
245
+ async function m() {
246
+ o.value = !1, await i.push({ name: p["$connect-MARKETING"] });
225
247
  }
226
- function h() {
227
- Hn(), o.value = !1;
248
+ function v() {
249
+ Bn(), o.value = !1;
228
250
  }
229
- return (y, _) => {
230
- const m = Z("FmIcon"), I = Z("FmCard"), T = Z("FmButton"), M = Z("FmDialog");
231
- return j(), Oe(M, {
251
+ return (y, f) => {
252
+ const w = te("FmIcon"), d = te("FmCard"), g = te("FmButton"), b = te("FmDialog");
253
+ return j(), Oe(b, {
232
254
  modelValue: o.value,
233
- "onUpdate:modelValue": _[0] || (_[0] = (k) => o.value = k),
255
+ "onUpdate:modelValue": f[0] || (f[0] = (T) => o.value = T),
234
256
  "min-width": "min(500px, calc(100% - 48px))",
235
257
  "max-width": "min(860px, calc(100% - 48px))",
236
258
  "max-height": "90vh",
237
259
  "dismiss-away": ""
238
260
  }, {
239
- "dialog-header": Q(() => [
240
- v("div", jn, [
241
- v("div", Wn, [
242
- S(m, {
261
+ "dialog-header": ee(() => [
262
+ I("div", Gn, [
263
+ I("div", zn, [
264
+ R(w, {
243
265
  name: "auto_awesome",
244
266
  size: "sm",
245
267
  color: "primary"
246
268
  }),
247
- v("span", Bn, R(g(t)("connect.marketing.whatsNew.badge")), 1)
269
+ I("span", qn, A(_(t)("connect.marketing.whatsNew.badge")), 1)
248
270
  ]),
249
- v("h1", Gn, R(g(t)("connect.marketing.whatsNew.title")), 1),
250
- v("p", zn, R(g(t)("connect.marketing.whatsNew.subtitle")), 1)
271
+ I("h1", Kn, A(_(t)("connect.marketing.whatsNew.title")), 1),
272
+ I("p", Jn, A(_(t)("connect.marketing.whatsNew.subtitle")), 1)
251
273
  ])
252
274
  ]),
253
- "dialog-footer": Q(() => [
254
- v("div", ei, [
255
- v("div", ti, [
256
- S(T, {
275
+ "dialog-footer": ee(() => [
276
+ I("div", ii, [
277
+ I("div", ri, [
278
+ R(g, {
257
279
  variant: "primary",
258
280
  size: "lg",
259
- label: g(t)("connect.marketing.whatsNew.cta"),
281
+ label: _(t)("connect.marketing.whatsNew.cta"),
260
282
  "append-icon": "arrow_forward",
261
- onClick: p
283
+ onClick: m
262
284
  }, null, 8, ["label"]),
263
- S(T, {
285
+ R(g, {
264
286
  variant: "tertiary",
265
287
  size: "lg",
266
- label: g(t)("connect.marketing.whatsNew.dismiss"),
267
- onClick: h
288
+ label: _(t)("connect.marketing.whatsNew.dismiss"),
289
+ onClick: v
268
290
  }, null, 8, ["label"])
269
291
  ]),
270
- v("div", ni, R(g(t)("connect.marketing.whatsNew.footnote")), 1)
292
+ I("div", si, A(_(t)("connect.marketing.whatsNew.footnote")), 1)
271
293
  ])
272
294
  ]),
273
- default: Q(() => [
274
- v("div", qn, [
275
- v("div", Kn, [
276
- (j(), me(It, null, ln(c, (k) => S(I, {
277
- key: k.key,
295
+ default: ee(() => [
296
+ I("div", Yn, [
297
+ I("div", Xn, [
298
+ (j(), me(It, null, un(c, (T) => R(d, {
299
+ key: T.key,
278
300
  variant: "outlined",
279
301
  class: "!h-full flex flex-col gap-8 p-16"
280
302
  }, {
281
- default: Q(() => [
282
- v("div", Jn, [
283
- S(m, {
284
- name: k.icon,
303
+ default: ee(() => [
304
+ I("div", Qn, [
305
+ R(w, {
306
+ name: T.icon,
285
307
  size: "md",
286
308
  color: "primary"
287
309
  }, null, 8, ["name"])
288
310
  ]),
289
- v("div", Yn, R(g(t)(`connect.marketing.whatsNew.benefits.${k.key}.title`)), 1),
290
- v("div", Xn, R(g(t)(
291
- `connect.marketing.whatsNew.benefits.${k.key}.description`
311
+ I("div", Zn, A(_(t)(`connect.marketing.whatsNew.benefits.${T.key}.title`)), 1),
312
+ I("div", ei, A(_(t)(
313
+ `connect.marketing.whatsNew.benefits.${T.key}.description`
292
314
  )), 1)
293
315
  ]),
294
316
  _: 2
295
317
  }, 1024)), 64))
296
318
  ]),
297
- S(I, {
319
+ R(d, {
298
320
  variant: "outlined",
299
321
  class: "flex items-start gap-12 p-16"
300
322
  }, {
301
- default: Q(() => [
302
- v("div", Qn, [
303
- S(m, {
323
+ default: ee(() => [
324
+ I("div", ti, [
325
+ R(w, {
304
326
  name: "lightbulb",
305
327
  size: "md",
306
328
  color: "primary"
307
329
  })
308
330
  ]),
309
- v("p", Zn, R(g(t)("connect.marketing.whatsNew.callout")), 1)
331
+ I("p", ni, A(_(t)("connect.marketing.whatsNew.callout")), 1)
310
332
  ]),
311
333
  _: 1
312
334
  })
@@ -317,7 +339,7 @@ const jn = { class: "flex flex-col gap-12" }, Wn = { class: "fm-corner-radius-xx
317
339
  };
318
340
  }
319
341
  });
320
- var ri = "firebase", si = "10.12.4";
342
+ var ai = "firebase", ci = "10.12.4";
321
343
  /**
322
344
  * @license
323
345
  * Copyright 2020 Google LLC
@@ -334,13 +356,13 @@ var ri = "firebase", si = "10.12.4";
334
356
  * See the License for the specific language governing permissions and
335
357
  * limitations under the License.
336
358
  */
337
- Le(ri, si, "app");
338
- function Rt() {
359
+ Le(ai, ci, "app");
360
+ function At() {
339
361
  return {
340
362
  "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."
341
363
  };
342
364
  }
343
- const oi = Rt, At = new Fe("auth", "Firebase", Rt());
365
+ const li = At, Pt = new Fe("auth", "Firebase", At());
344
366
  /**
345
367
  * @license
346
368
  * Copyright 2020 Google LLC
@@ -357,12 +379,12 @@ const oi = Rt, At = new Fe("auth", "Firebase", Rt());
357
379
  * See the License for the specific language governing permissions and
358
380
  * limitations under the License.
359
381
  */
360
- const _e = new Tn("@firebase/auth");
361
- function ai(n, ...e) {
362
- _e.logLevel <= Et.WARN && _e.warn(`Auth (${re}): ${n}`, ...e);
382
+ const _e = new En("@firebase/auth");
383
+ function ui(n, ...e) {
384
+ _e.logLevel <= St.WARN && _e.warn(`Auth (${se}): ${n}`, ...e);
363
385
  }
364
- function ue(n, ...e) {
365
- _e.logLevel <= Et.ERROR && _e.error(`Auth (${re}): ${n}`, ...e);
386
+ function de(n, ...e) {
387
+ _e.logLevel <= St.ERROR && _e.error(`Auth (${se}): ${n}`, ...e);
366
388
  }
367
389
  /**
368
390
  * @license
@@ -380,38 +402,38 @@ function ue(n, ...e) {
380
402
  * See the License for the specific language governing permissions and
381
403
  * limitations under the License.
382
404
  */
383
- function O(n, ...e) {
405
+ function L(n, ...e) {
384
406
  throw He(n, ...e);
385
407
  }
386
- function b(n, ...e) {
408
+ function E(n, ...e) {
387
409
  return He(n, ...e);
388
410
  }
389
- function Pt(n, e, t) {
390
- const i = Object.assign(Object.assign({}, oi()), { [e]: t });
411
+ function Ct(n, e, t) {
412
+ const i = Object.assign(Object.assign({}, li()), { [e]: t });
391
413
  return new Fe("auth", "Firebase", i).create(e, {
392
414
  appName: n.name
393
415
  });
394
416
  }
395
- function $(n) {
396
- return Pt(n, "operation-not-supported-in-this-environment", "Operations that alter the current user are not supported in conjunction with FirebaseServerApp");
417
+ function H(n) {
418
+ return Ct(n, "operation-not-supported-in-this-environment", "Operations that alter the current user are not supported in conjunction with FirebaseServerApp");
397
419
  }
398
420
  function He(n, ...e) {
399
421
  if (typeof n != "string") {
400
422
  const t = e[0], i = [...e.slice(1)];
401
423
  return i[0] && (i[0].appName = n.name), n._errorFactory.create(t, ...i);
402
424
  }
403
- return At.create(n, ...e);
425
+ return Pt.create(n, ...e);
404
426
  }
405
427
  function u(n, e, ...t) {
406
428
  if (!n)
407
429
  throw He(e, ...t);
408
430
  }
409
- function P(n) {
431
+ function C(n) {
410
432
  const e = "INTERNAL ASSERTION FAILED: " + n;
411
- throw ue(e), new Error(e);
433
+ throw de(e), new Error(e);
412
434
  }
413
- function L(n, e) {
414
- n || P(e);
435
+ function M(n, e) {
436
+ n || C(e);
415
437
  }
416
438
  /**
417
439
  * @license
@@ -433,7 +455,7 @@ function Me() {
433
455
  var n;
434
456
  return typeof self < "u" && ((n = self.location) === null || n === void 0 ? void 0 : n.href) || "";
435
457
  }
436
- function ci() {
458
+ function di() {
437
459
  return nt() === "http:" || nt() === "https:";
438
460
  }
439
461
  function nt() {
@@ -456,15 +478,15 @@ function nt() {
456
478
  * See the License for the specific language governing permissions and
457
479
  * limitations under the License.
458
480
  */
459
- function li() {
481
+ function hi() {
460
482
  return typeof navigator < "u" && navigator && "onLine" in navigator && typeof navigator.onLine == "boolean" && // Apply only for traditional web apps and Chrome extensions.
461
483
  // This is especially true for Cordova apps which have unreliable
462
484
  // navigator.onLine behavior unless cordova-plugin-network-information is
463
485
  // installed which overwrites the native navigator.onLine value and
464
486
  // defines navigator.connection.
465
- (ci() || En() || "connection" in navigator) ? navigator.onLine : !0;
487
+ (di() || An() || "connection" in navigator) ? navigator.onLine : !0;
466
488
  }
467
- function ui() {
489
+ function fi() {
468
490
  if (typeof navigator > "u")
469
491
  return null;
470
492
  const n = navigator;
@@ -492,12 +514,12 @@ function ui() {
492
514
  * See the License for the specific language governing permissions and
493
515
  * limitations under the License.
494
516
  */
495
- class oe {
517
+ class ae {
496
518
  constructor(e, t) {
497
- this.shortDelay = e, this.longDelay = t, L(t > e, "Short delay should be less than long delay!"), this.isMobile = kn() || bn();
519
+ this.shortDelay = e, this.longDelay = t, M(t > e, "Short delay should be less than long delay!"), this.isMobile = Sn() || Rn();
498
520
  }
499
521
  get() {
500
- return li() ? this.isMobile ? this.longDelay : this.shortDelay : Math.min(5e3, this.shortDelay);
522
+ return hi() ? this.isMobile ? this.longDelay : this.shortDelay : Math.min(5e3, this.shortDelay);
501
523
  }
502
524
  }
503
525
  /**
@@ -516,8 +538,8 @@ class oe {
516
538
  * See the License for the specific language governing permissions and
517
539
  * limitations under the License.
518
540
  */
519
- function je(n, e) {
520
- L(n.emulator, "Emulator should always be set here");
541
+ function We(n, e) {
542
+ M(n.emulator, "Emulator should always be set here");
521
543
  const { url: t } = n.emulator;
522
544
  return e ? `${t}${e.startsWith("/") ? e.slice(1) : e}` : t;
523
545
  }
@@ -537,7 +559,7 @@ function je(n, e) {
537
559
  * See the License for the specific language governing permissions and
538
560
  * limitations under the License.
539
561
  */
540
- class Ct {
562
+ class Nt {
541
563
  static initialize(e, t, i) {
542
564
  this.fetchImpl = e, t && (this.headersImpl = t), i && (this.responseImpl = i);
543
565
  }
@@ -550,7 +572,7 @@ class Ct {
550
572
  return globalThis.fetch;
551
573
  if (typeof fetch < "u")
552
574
  return fetch;
553
- P("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill");
575
+ C("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill");
554
576
  }
555
577
  static headers() {
556
578
  if (this.headersImpl)
@@ -561,7 +583,7 @@ class Ct {
561
583
  return globalThis.Headers;
562
584
  if (typeof Headers < "u")
563
585
  return Headers;
564
- P("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill");
586
+ C("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill");
565
587
  }
566
588
  static response() {
567
589
  if (this.responseImpl)
@@ -572,7 +594,7 @@ class Ct {
572
594
  return globalThis.Response;
573
595
  if (typeof Response < "u")
574
596
  return Response;
575
- P("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill");
597
+ C("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill");
576
598
  }
577
599
  }
578
600
  /**
@@ -591,7 +613,7 @@ class Ct {
591
613
  * See the License for the specific language governing permissions and
592
614
  * limitations under the License.
593
615
  */
594
- const di = {
616
+ const pi = {
595
617
  // Custom token errors.
596
618
  CREDENTIAL_MISMATCH: "custom-token-mismatch",
597
619
  // This can only happen if the SDK sends a bad request.
@@ -682,93 +704,93 @@ const di = {
682
704
  * See the License for the specific language governing permissions and
683
705
  * limitations under the License.
684
706
  */
685
- const hi = new oe(3e4, 6e4);
707
+ const mi = new ae(3e4, 6e4);
686
708
  function Te(n, e) {
687
709
  return n.tenantId && !e.tenantId ? Object.assign(Object.assign({}, e), { tenantId: n.tenantId }) : e;
688
710
  }
689
- async function X(n, e, t, i, r = {}) {
690
- return Nt(n, r, async () => {
711
+ async function Z(n, e, t, i, r = {}) {
712
+ return Ot(n, r, async () => {
691
713
  let s = {}, o = {};
692
714
  i && (e === "GET" ? o = i : s = {
693
715
  body: JSON.stringify(i)
694
716
  });
695
- const c = se(Object.assign({ key: n.config.apiKey }, o)).slice(1), a = await n._getAdditionalHeaders();
717
+ const c = oe(Object.assign({ key: n.config.apiKey }, o)).slice(1), a = await n._getAdditionalHeaders();
696
718
  return a[
697
719
  "Content-Type"
698
720
  /* HttpHeader.CONTENT_TYPE */
699
721
  ] = "application/json", n.languageCode && (a[
700
722
  "X-Firebase-Locale"
701
723
  /* HttpHeader.X_FIREBASE_LOCALE */
702
- ] = n.languageCode), Ct.fetch()(Lt(n, n.config.apiHost, t, c), Object.assign({
724
+ ] = n.languageCode), Nt.fetch()(Mt(n, n.config.apiHost, t, c), Object.assign({
703
725
  method: e,
704
726
  headers: a,
705
727
  referrerPolicy: "no-referrer"
706
728
  }, s));
707
729
  });
708
730
  }
709
- async function Nt(n, e, t) {
731
+ async function Ot(n, e, t) {
710
732
  n._canInitEmulator = !1;
711
- const i = Object.assign(Object.assign({}, di), e);
733
+ const i = Object.assign(Object.assign({}, pi), e);
712
734
  try {
713
- const r = new fi(n), s = await Promise.race([
735
+ const r = new gi(n), s = await Promise.race([
714
736
  t(),
715
737
  r.promise
716
738
  ]);
717
739
  r.clearNetworkTimeout();
718
740
  const o = await s.json();
719
741
  if ("needConfirmation" in o)
720
- throw le(n, "account-exists-with-different-credential", o);
742
+ throw ue(n, "account-exists-with-different-credential", o);
721
743
  if (s.ok && !("errorMessage" in o))
722
744
  return o;
723
745
  {
724
746
  const c = s.ok ? o.errorMessage : o.error.message, [a, l] = c.split(" : ");
725
747
  if (a === "FEDERATED_USER_ID_ALREADY_LINKED")
726
- throw le(n, "credential-already-in-use", o);
748
+ throw ue(n, "credential-already-in-use", o);
727
749
  if (a === "EMAIL_EXISTS")
728
- throw le(n, "email-already-in-use", o);
750
+ throw ue(n, "email-already-in-use", o);
729
751
  if (a === "USER_DISABLED")
730
- throw le(n, "user-disabled", o);
731
- const d = i[a] || a.toLowerCase().replace(/[_\s]+/g, "-");
752
+ throw ue(n, "user-disabled", o);
753
+ const h = i[a] || a.toLowerCase().replace(/[_\s]+/g, "-");
732
754
  if (l)
733
- throw Pt(n, d, l);
734
- O(n, d);
755
+ throw Ct(n, h, l);
756
+ L(n, h);
735
757
  }
736
758
  } catch (r) {
737
759
  if (r instanceof Ve)
738
760
  throw r;
739
- O(n, "network-request-failed", { message: String(r) });
761
+ L(n, "network-request-failed", { message: String(r) });
740
762
  }
741
763
  }
742
- async function Ot(n, e, t, i, r = {}) {
743
- const s = await X(n, e, t, i, r);
744
- return "mfaPendingCredential" in s && O(n, "multi-factor-auth-required", {
764
+ async function Lt(n, e, t, i, r = {}) {
765
+ const s = await Z(n, e, t, i, r);
766
+ return "mfaPendingCredential" in s && L(n, "multi-factor-auth-required", {
745
767
  _serverResponse: s
746
768
  }), s;
747
769
  }
748
- function Lt(n, e, t, i) {
770
+ function Mt(n, e, t, i) {
749
771
  const r = `${e}${t}?${i}`;
750
- return n.config.emulator ? je(n.config, r) : `${n.config.apiScheme}://${r}`;
772
+ return n.config.emulator ? We(n.config, r) : `${n.config.apiScheme}://${r}`;
751
773
  }
752
- class fi {
774
+ class gi {
753
775
  constructor(e) {
754
776
  this.auth = e, this.timer = null, this.promise = new Promise((t, i) => {
755
- this.timer = setTimeout(() => i(b(
777
+ this.timer = setTimeout(() => i(E(
756
778
  this.auth,
757
779
  "network-request-failed"
758
780
  /* AuthErrorCode.NETWORK_REQUEST_FAILED */
759
- )), hi.get());
781
+ )), mi.get());
760
782
  });
761
783
  }
762
784
  clearNetworkTimeout() {
763
785
  clearTimeout(this.timer);
764
786
  }
765
787
  }
766
- function le(n, e, t) {
788
+ function ue(n, e, t) {
767
789
  const i = {
768
790
  appName: n.name
769
791
  };
770
792
  t.email && (i.email = t.email), t.phoneNumber && (i.phoneNumber = t.phoneNumber);
771
- const r = b(n, e, i);
793
+ const r = E(n, e, i);
772
794
  return r.customData._tokenResponse = t, r;
773
795
  }
774
796
  /**
@@ -787,11 +809,11 @@ function le(n, e, t) {
787
809
  * See the License for the specific language governing permissions and
788
810
  * limitations under the License.
789
811
  */
790
- async function pi(n, e) {
791
- return X(n, "POST", "/v1/accounts:delete", e);
812
+ async function _i(n, e) {
813
+ return Z(n, "POST", "/v1/accounts:delete", e);
792
814
  }
793
- async function Mt(n, e) {
794
- return X(n, "POST", "/v1/accounts:lookup", e);
815
+ async function Ut(n, e) {
816
+ return Z(n, "POST", "/v1/accounts:lookup", e);
795
817
  }
796
818
  /**
797
819
  * @license
@@ -809,7 +831,7 @@ async function Mt(n, e) {
809
831
  * See the License for the specific language governing permissions and
810
832
  * limitations under the License.
811
833
  */
812
- function te(n) {
834
+ function ie(n) {
813
835
  if (n)
814
836
  try {
815
837
  const e = new Date(Number(n));
@@ -818,8 +840,8 @@ function te(n) {
818
840
  } catch {
819
841
  }
820
842
  }
821
- async function mi(n, e = !1) {
822
- const t = Y(n), i = await t.getIdToken(e), r = We(i);
843
+ async function vi(n, e = !1) {
844
+ const t = Q(n), i = await t.getIdToken(e), r = je(i);
823
845
  u(
824
846
  r && r.exp && r.auth_time && r.iat,
825
847
  t.auth,
@@ -830,9 +852,9 @@ async function mi(n, e = !1) {
830
852
  return {
831
853
  claims: r,
832
854
  token: i,
833
- authTime: te(Ce(r.auth_time)),
834
- issuedAtTime: te(Ce(r.iat)),
835
- expirationTime: te(Ce(r.exp)),
855
+ authTime: ie(Ce(r.auth_time)),
856
+ issuedAtTime: ie(Ce(r.iat)),
857
+ expirationTime: ie(Ce(r.exp)),
836
858
  signInProvider: o || null,
837
859
  signInSecondFactor: (s == null ? void 0 : s.sign_in_second_factor) || null
838
860
  };
@@ -840,19 +862,19 @@ async function mi(n, e = !1) {
840
862
  function Ce(n) {
841
863
  return Number(n) * 1e3;
842
864
  }
843
- function We(n) {
865
+ function je(n) {
844
866
  const [e, t, i] = n.split(".");
845
867
  if (e === void 0 || t === void 0 || i === void 0)
846
- return ue("JWT malformed, contained fewer than 3 sections"), null;
868
+ return de("JWT malformed, contained fewer than 3 sections"), null;
847
869
  try {
848
- const r = Cn(t);
849
- return r ? JSON.parse(r) : (ue("Failed to decode base64 JWT payload"), null);
870
+ const r = Ln(t);
871
+ return r ? JSON.parse(r) : (de("Failed to decode base64 JWT payload"), null);
850
872
  } catch (r) {
851
- return ue("Caught error parsing JWT payload as JSON", r == null ? void 0 : r.toString()), null;
873
+ return de("Caught error parsing JWT payload as JSON", r == null ? void 0 : r.toString()), null;
852
874
  }
853
875
  }
854
876
  function it(n) {
855
- const e = We(n);
877
+ const e = je(n);
856
878
  return u(
857
879
  e,
858
880
  "internal-error"
@@ -883,16 +905,16 @@ function it(n) {
883
905
  * See the License for the specific language governing permissions and
884
906
  * limitations under the License.
885
907
  */
886
- async function ie(n, e, t = !1) {
908
+ async function re(n, e, t = !1) {
887
909
  if (t)
888
910
  return e;
889
911
  try {
890
912
  return await e;
891
913
  } catch (i) {
892
- throw i instanceof Ve && gi(i) && n.auth.currentUser === n && await n.auth.signOut(), i;
914
+ throw i instanceof Ve && Ii(i) && n.auth.currentUser === n && await n.auth.signOut(), i;
893
915
  }
894
916
  }
895
- function gi({ code: n }) {
917
+ function Ii({ code: n }) {
896
918
  return n === "auth/user-disabled" || n === "auth/user-token-expired";
897
919
  }
898
920
  /**
@@ -911,7 +933,7 @@ function gi({ code: n }) {
911
933
  * See the License for the specific language governing permissions and
912
934
  * limitations under the License.
913
935
  */
914
- class _i {
936
+ class yi {
915
937
  constructor(e) {
916
938
  this.user = e, this.isRunning = !1, this.timerId = null, this.errorBackoff = 3e4;
917
939
  }
@@ -978,7 +1000,7 @@ class Ue {
978
1000
  this.createdAt = e, this.lastLoginAt = t, this._initializeTime();
979
1001
  }
980
1002
  _initializeTime() {
981
- this.lastSignInTime = te(this.lastLoginAt), this.creationTime = te(this.createdAt);
1003
+ this.lastSignInTime = ie(this.lastLoginAt), this.creationTime = ie(this.createdAt);
982
1004
  }
983
1005
  _copy(e) {
984
1006
  this.createdAt = e.createdAt, this.lastLoginAt = e.lastLoginAt, this._initializeTime();
@@ -1008,7 +1030,7 @@ class Ue {
1008
1030
  */
1009
1031
  async function ve(n) {
1010
1032
  var e;
1011
- const t = n.auth, i = await n.getIdToken(), r = await ie(n, Mt(t, { idToken: i }));
1033
+ const t = n.auth, i = await n.getIdToken(), r = await re(n, Ut(t, { idToken: i }));
1012
1034
  u(
1013
1035
  r == null ? void 0 : r.users.length,
1014
1036
  t,
@@ -1017,7 +1039,7 @@ async function ve(n) {
1017
1039
  );
1018
1040
  const s = r.users[0];
1019
1041
  n._notifyReloadListener(s);
1020
- const o = !((e = s.providerUserInfo) === null || e === void 0) && e.length ? Ut(s.providerUserInfo) : [], c = Ii(n.providerData, o), a = n.isAnonymous, l = !(n.email && s.passwordHash) && !(c != null && c.length), d = a ? l : !1, p = {
1042
+ const o = !((e = s.providerUserInfo) === null || e === void 0) && e.length ? Dt(s.providerUserInfo) : [], c = Ti(n.providerData, o), a = n.isAnonymous, l = !(n.email && s.passwordHash) && !(c != null && c.length), h = a ? l : !1, m = {
1021
1043
  uid: s.localId,
1022
1044
  displayName: s.displayName || null,
1023
1045
  photoURL: s.photoUrl || null,
@@ -1027,18 +1049,18 @@ async function ve(n) {
1027
1049
  tenantId: s.tenantId || null,
1028
1050
  providerData: c,
1029
1051
  metadata: new Ue(s.createdAt, s.lastLoginAt),
1030
- isAnonymous: d
1052
+ isAnonymous: h
1031
1053
  };
1032
- Object.assign(n, p);
1054
+ Object.assign(n, m);
1033
1055
  }
1034
- async function vi(n) {
1035
- const e = Y(n);
1056
+ async function wi(n) {
1057
+ const e = Q(n);
1036
1058
  await ve(e), await e.auth._persistUserIfCurrent(e), e.auth._notifyListenersIfCurrent(e);
1037
1059
  }
1038
- function Ii(n, e) {
1060
+ function Ti(n, e) {
1039
1061
  return [...n.filter((i) => !e.some((r) => r.providerId === i.providerId)), ...e];
1040
1062
  }
1041
- function Ut(n) {
1063
+ function Dt(n) {
1042
1064
  return n.map((e) => {
1043
1065
  var { providerId: t } = e, i = $e(e, ["providerId"]);
1044
1066
  return {
@@ -1067,16 +1089,16 @@ function Ut(n) {
1067
1089
  * See the License for the specific language governing permissions and
1068
1090
  * limitations under the License.
1069
1091
  */
1070
- async function yi(n, e) {
1071
- const t = await Nt(n, {}, async () => {
1072
- const i = se({
1092
+ async function ki(n, e) {
1093
+ const t = await Ot(n, {}, async () => {
1094
+ const i = oe({
1073
1095
  grant_type: "refresh_token",
1074
1096
  refresh_token: e
1075
- }).slice(1), { tokenApiHost: r, apiKey: s } = n.config, o = Lt(n, r, "/v1/token", `key=${s}`), c = await n._getAdditionalHeaders();
1097
+ }).slice(1), { tokenApiHost: r, apiKey: s } = n.config, o = Mt(n, r, "/v1/token", `key=${s}`), c = await n._getAdditionalHeaders();
1076
1098
  return c[
1077
1099
  "Content-Type"
1078
1100
  /* HttpHeader.CONTENT_TYPE */
1079
- ] = "application/x-www-form-urlencoded", Ct.fetch()(o, {
1101
+ ] = "application/x-www-form-urlencoded", Nt.fetch()(o, {
1080
1102
  method: "POST",
1081
1103
  headers: c,
1082
1104
  body: i
@@ -1088,8 +1110,8 @@ async function yi(n, e) {
1088
1110
  refreshToken: t.refresh_token
1089
1111
  };
1090
1112
  }
1091
- async function wi(n, e) {
1092
- return X(n, "POST", "/v2/accounts:revokeToken", Te(n, e));
1113
+ async function bi(n, e) {
1114
+ return Z(n, "POST", "/v2/accounts:revokeToken", Te(n, e));
1093
1115
  }
1094
1116
  /**
1095
1117
  * @license
@@ -1107,7 +1129,7 @@ async function wi(n, e) {
1107
1129
  * See the License for the specific language governing permissions and
1108
1130
  * limitations under the License.
1109
1131
  */
1110
- class q {
1132
+ class K {
1111
1133
  constructor() {
1112
1134
  this.refreshToken = null, this.accessToken = null, this.expirationTime = null;
1113
1135
  }
@@ -1152,14 +1174,14 @@ class q {
1152
1174
  this.refreshToken = null;
1153
1175
  }
1154
1176
  async refresh(e, t) {
1155
- const { accessToken: i, refreshToken: r, expiresIn: s } = await yi(e, t);
1177
+ const { accessToken: i, refreshToken: r, expiresIn: s } = await ki(e, t);
1156
1178
  this.updateTokensAndExpiration(i, r, Number(s));
1157
1179
  }
1158
1180
  updateTokensAndExpiration(e, t, i) {
1159
1181
  this.refreshToken = t || null, this.accessToken = e || null, this.expirationTime = Date.now() + i * 1e3;
1160
1182
  }
1161
1183
  static fromJSON(e, t) {
1162
- const { refreshToken: i, accessToken: r, expirationTime: s } = t, o = new q();
1184
+ const { refreshToken: i, accessToken: r, expirationTime: s } = t, o = new K();
1163
1185
  return i && (u(typeof i == "string", "internal-error", {
1164
1186
  appName: e
1165
1187
  }), o.refreshToken = i), r && (u(typeof r == "string", "internal-error", {
@@ -1179,10 +1201,10 @@ class q {
1179
1201
  this.accessToken = e.accessToken, this.refreshToken = e.refreshToken, this.expirationTime = e.expirationTime;
1180
1202
  }
1181
1203
  _clone() {
1182
- return Object.assign(new q(), this.toJSON());
1204
+ return Object.assign(new K(), this.toJSON());
1183
1205
  }
1184
1206
  _performRefresh() {
1185
- return P("not implemented");
1207
+ return C("not implemented");
1186
1208
  }
1187
1209
  }
1188
1210
  /**
@@ -1201,16 +1223,16 @@ class q {
1201
1223
  * See the License for the specific language governing permissions and
1202
1224
  * limitations under the License.
1203
1225
  */
1204
- function U(n, e) {
1226
+ function D(n, e) {
1205
1227
  u(typeof n == "string" || typeof n > "u", "internal-error", { appName: e });
1206
1228
  }
1207
- class C {
1229
+ class N {
1208
1230
  constructor(e) {
1209
1231
  var { uid: t, auth: i, stsTokenManager: r } = e, s = $e(e, ["uid", "auth", "stsTokenManager"]);
1210
- this.providerId = "firebase", this.proactiveRefresh = new _i(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);
1232
+ 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);
1211
1233
  }
1212
1234
  async getIdToken(e) {
1213
- const t = await ie(this, this.stsTokenManager.getToken(this.auth, e));
1235
+ const t = await re(this, this.stsTokenManager.getToken(this.auth, e));
1214
1236
  return u(
1215
1237
  t,
1216
1238
  this.auth,
@@ -1219,10 +1241,10 @@ class C {
1219
1241
  ), this.accessToken !== t && (this.accessToken = t, await this.auth._persistUserIfCurrent(this), this.auth._notifyListenersIfCurrent(this)), t;
1220
1242
  }
1221
1243
  getIdTokenResult(e) {
1222
- return mi(this, e);
1244
+ return vi(this, e);
1223
1245
  }
1224
1246
  reload() {
1225
- return vi(this);
1247
+ return wi(this);
1226
1248
  }
1227
1249
  _assign(e) {
1228
1250
  this !== e && (u(
@@ -1233,7 +1255,7 @@ class C {
1233
1255
  ), 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));
1234
1256
  }
1235
1257
  _clone(e) {
1236
- const t = new C(Object.assign(Object.assign({}, this), { auth: e, stsTokenManager: this.stsTokenManager._clone() }));
1258
+ const t = new N(Object.assign(Object.assign({}, this), { auth: e, stsTokenManager: this.stsTokenManager._clone() }));
1237
1259
  return t.metadata._copy(this.metadata), t;
1238
1260
  }
1239
1261
  _onReload(e) {
@@ -1258,10 +1280,10 @@ class C {
1258
1280
  e.idToken && e.idToken !== this.stsTokenManager.accessToken && (this.stsTokenManager.updateFromServerResponse(e), i = !0), t && await ve(this), await this.auth._persistUserIfCurrent(this), i && this.auth._notifyListenersIfCurrent(this);
1259
1281
  }
1260
1282
  async delete() {
1261
- if (A(this.auth.app))
1262
- return Promise.reject($(this.auth));
1283
+ if (P(this.auth.app))
1284
+ return Promise.reject(H(this.auth));
1263
1285
  const e = await this.getIdToken();
1264
- return await ie(this, pi(this.auth, { idToken: e })), this.stsTokenManager.clearRefreshToken(), this.auth.signOut();
1286
+ return await re(this, _i(this.auth, { idToken: e })), this.stsTokenManager.clearRefreshToken(), this.auth.signOut();
1265
1287
  }
1266
1288
  toJSON() {
1267
1289
  return Object.assign(Object.assign({
@@ -1288,21 +1310,21 @@ class C {
1288
1310
  return this.stsTokenManager.refreshToken || "";
1289
1311
  }
1290
1312
  static _fromJSON(e, t) {
1291
- var i, r, s, o, c, a, l, d;
1292
- const p = (i = t.displayName) !== null && i !== void 0 ? i : void 0, h = (r = t.email) !== null && r !== void 0 ? r : void 0, y = (s = t.phoneNumber) !== null && s !== void 0 ? s : void 0, _ = (o = t.photoURL) !== null && o !== void 0 ? o : void 0, m = (c = t.tenantId) !== null && c !== void 0 ? c : void 0, I = (a = t._redirectEventId) !== null && a !== void 0 ? a : void 0, T = (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;
1313
+ var i, r, s, o, c, a, l, h;
1314
+ 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, d = (a = t._redirectEventId) !== null && a !== void 0 ? a : void 0, g = (l = t.createdAt) !== null && l !== void 0 ? l : void 0, b = (h = t.lastLoginAt) !== null && h !== void 0 ? h : void 0, { uid: T, emailVerified: Ke, isAnonymous: Je, providerData: Re, stsTokenManager: Ye } = t;
1293
1315
  u(
1294
- k && Ye,
1316
+ T && Ye,
1295
1317
  e,
1296
1318
  "internal-error"
1297
1319
  /* AuthErrorCode.INTERNAL_ERROR */
1298
1320
  );
1299
- const on = q.fromJSON(this.name, Ye);
1321
+ const an = K.fromJSON(this.name, Ye);
1300
1322
  u(
1301
- typeof k == "string",
1323
+ typeof T == "string",
1302
1324
  e,
1303
1325
  "internal-error"
1304
1326
  /* AuthErrorCode.INTERNAL_ERROR */
1305
- ), U(p, e.name), U(h, e.name), u(
1327
+ ), D(m, e.name), D(v, e.name), u(
1306
1328
  typeof Ke == "boolean",
1307
1329
  e,
1308
1330
  "internal-error"
@@ -1312,22 +1334,22 @@ class C {
1312
1334
  e,
1313
1335
  "internal-error"
1314
1336
  /* AuthErrorCode.INTERNAL_ERROR */
1315
- ), U(y, e.name), U(_, e.name), U(m, e.name), U(I, e.name), U(T, e.name), U(M, e.name);
1316
- const Ae = new C({
1317
- uid: k,
1337
+ ), D(y, e.name), D(f, e.name), D(w, e.name), D(d, e.name), D(g, e.name), D(b, e.name);
1338
+ const Ae = new N({
1339
+ uid: T,
1318
1340
  auth: e,
1319
- email: h,
1341
+ email: v,
1320
1342
  emailVerified: Ke,
1321
- displayName: p,
1343
+ displayName: m,
1322
1344
  isAnonymous: Je,
1323
- photoURL: _,
1345
+ photoURL: f,
1324
1346
  phoneNumber: y,
1325
- tenantId: m,
1326
- stsTokenManager: on,
1327
- createdAt: T,
1328
- lastLoginAt: M
1347
+ tenantId: w,
1348
+ stsTokenManager: an,
1349
+ createdAt: g,
1350
+ lastLoginAt: b
1329
1351
  });
1330
- return Re && Array.isArray(Re) && (Ae.providerData = Re.map((an) => Object.assign({}, an))), I && (Ae._redirectEventId = I), Ae;
1352
+ return Re && Array.isArray(Re) && (Ae.providerData = Re.map((cn) => Object.assign({}, cn))), d && (Ae._redirectEventId = d), Ae;
1331
1353
  }
1332
1354
  /**
1333
1355
  * Initialize a User from an idToken server response
@@ -1335,9 +1357,9 @@ class C {
1335
1357
  * @param idTokenResponse
1336
1358
  */
1337
1359
  static async _fromIdTokenResponse(e, t, i = !1) {
1338
- const r = new q();
1360
+ const r = new K();
1339
1361
  r.updateFromServerResponse(t);
1340
- const s = new C({
1362
+ const s = new N({
1341
1363
  uid: t.localId,
1342
1364
  auth: e,
1343
1365
  stsTokenManager: r,
@@ -1357,9 +1379,9 @@ class C {
1357
1379
  "internal-error"
1358
1380
  /* AuthErrorCode.INTERNAL_ERROR */
1359
1381
  );
1360
- const s = r.providerUserInfo !== void 0 ? Ut(r.providerUserInfo) : [], o = !(r.email && r.passwordHash) && !(s != null && s.length), c = new q();
1382
+ const s = r.providerUserInfo !== void 0 ? Dt(r.providerUserInfo) : [], o = !(r.email && r.passwordHash) && !(s != null && s.length), c = new K();
1361
1383
  c.updateFromIdToken(i);
1362
- const a = new C({
1384
+ const a = new N({
1363
1385
  uid: r.localId,
1364
1386
  auth: e,
1365
1387
  stsTokenManager: c,
@@ -1396,10 +1418,10 @@ class C {
1396
1418
  * limitations under the License.
1397
1419
  */
1398
1420
  const rt = /* @__PURE__ */ new Map();
1399
- function N(n) {
1400
- L(n instanceof Function, "Expected a class definition");
1421
+ function O(n) {
1422
+ M(n instanceof Function, "Expected a class definition");
1401
1423
  let e = rt.get(n);
1402
- return e ? (L(e instanceof n, "Instance stored in cache mismatched with class"), e) : (e = new n(), rt.set(n, e), e);
1424
+ return e ? (M(e instanceof n, "Instance stored in cache mismatched with class"), e) : (e = new n(), rt.set(n, e), e);
1403
1425
  }
1404
1426
  /**
1405
1427
  * @license
@@ -1417,7 +1439,7 @@ function N(n) {
1417
1439
  * See the License for the specific language governing permissions and
1418
1440
  * limitations under the License.
1419
1441
  */
1420
- class Dt {
1442
+ class xt {
1421
1443
  constructor() {
1422
1444
  this.type = "NONE", this.storage = {};
1423
1445
  }
@@ -1439,8 +1461,8 @@ class Dt {
1439
1461
  _removeListener(e, t) {
1440
1462
  }
1441
1463
  }
1442
- Dt.type = "NONE";
1443
- const st = Dt;
1464
+ xt.type = "NONE";
1465
+ const st = xt;
1444
1466
  /**
1445
1467
  * @license
1446
1468
  * Copyright 2019 Google LLC
@@ -1457,21 +1479,21 @@ const st = Dt;
1457
1479
  * See the License for the specific language governing permissions and
1458
1480
  * limitations under the License.
1459
1481
  */
1460
- function de(n, e, t) {
1482
+ function he(n, e, t) {
1461
1483
  return `firebase:${n}:${e}:${t}`;
1462
1484
  }
1463
- class K {
1485
+ class J {
1464
1486
  constructor(e, t, i) {
1465
1487
  this.persistence = e, this.auth = t, this.userKey = i;
1466
1488
  const { config: r, name: s } = this.auth;
1467
- this.fullUserKey = de(this.userKey, r.apiKey, s), this.fullPersistenceKey = de("persistence", r.apiKey, s), this.boundEventHandler = t._onStorageEvent.bind(t), this.persistence._addListener(this.fullUserKey, this.boundEventHandler);
1489
+ this.fullUserKey = he(this.userKey, r.apiKey, s), this.fullPersistenceKey = he("persistence", r.apiKey, s), this.boundEventHandler = t._onStorageEvent.bind(t), this.persistence._addListener(this.fullUserKey, this.boundEventHandler);
1468
1490
  }
1469
1491
  setCurrentUser(e) {
1470
1492
  return this.persistence._set(this.fullUserKey, e.toJSON());
1471
1493
  }
1472
1494
  async getCurrentUser() {
1473
1495
  const e = await this.persistence._get(this.fullUserKey);
1474
- return e ? C._fromJSON(this.auth, e) : null;
1496
+ return e ? N._fromJSON(this.auth, e) : null;
1475
1497
  }
1476
1498
  removeCurrentUser() {
1477
1499
  return this.persistence._remove(this.fullUserKey);
@@ -1491,32 +1513,32 @@ class K {
1491
1513
  }
1492
1514
  static async create(e, t, i = "authUser") {
1493
1515
  if (!t.length)
1494
- return new K(N(st), e, i);
1516
+ return new J(O(st), e, i);
1495
1517
  const r = (await Promise.all(t.map(async (l) => {
1496
1518
  if (await l._isAvailable())
1497
1519
  return l;
1498
1520
  }))).filter((l) => l);
1499
- let s = r[0] || N(st);
1500
- const o = de(i, e.config.apiKey, e.name);
1521
+ let s = r[0] || O(st);
1522
+ const o = he(i, e.config.apiKey, e.name);
1501
1523
  let c = null;
1502
1524
  for (const l of t)
1503
1525
  try {
1504
- const d = await l._get(o);
1505
- if (d) {
1506
- const p = C._fromJSON(e, d);
1507
- l !== s && (c = p), s = l;
1526
+ const h = await l._get(o);
1527
+ if (h) {
1528
+ const m = N._fromJSON(e, h);
1529
+ l !== s && (c = m), s = l;
1508
1530
  break;
1509
1531
  }
1510
1532
  } catch {
1511
1533
  }
1512
1534
  const a = r.filter((l) => l._shouldAllowMigration);
1513
- 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) => {
1535
+ 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) => {
1514
1536
  if (l !== s)
1515
1537
  try {
1516
1538
  await l._remove(o);
1517
1539
  } catch {
1518
1540
  }
1519
- })), new K(s, e, i));
1541
+ })), new J(s, e, i));
1520
1542
  }
1521
1543
  }
1522
1544
  /**
@@ -1539,25 +1561,25 @@ function ot(n) {
1539
1561
  const e = n.toLowerCase();
1540
1562
  if (e.includes("opera/") || e.includes("opr/") || e.includes("opios/"))
1541
1563
  return "Opera";
1542
- if (Vt(e))
1564
+ if ($t(e))
1543
1565
  return "IEMobile";
1544
1566
  if (e.includes("msie") || e.includes("trident/"))
1545
1567
  return "IE";
1546
1568
  if (e.includes("edge/"))
1547
1569
  return "Edge";
1548
- if (xt(e))
1570
+ if (Ft(e))
1549
1571
  return "Firefox";
1550
1572
  if (e.includes("silk/"))
1551
1573
  return "Silk";
1552
- if (Ht(e))
1574
+ if (Wt(e))
1553
1575
  return "Blackberry";
1554
1576
  if (jt(e))
1555
1577
  return "Webos";
1556
1578
  if (Be(e))
1557
1579
  return "Safari";
1558
- if ((e.includes("chrome/") || Ft(e)) && !e.includes("edge/"))
1580
+ if ((e.includes("chrome/") || Vt(e)) && !e.includes("edge/"))
1559
1581
  return "Chrome";
1560
- if ($t(e))
1582
+ if (Ht(e))
1561
1583
  return "Android";
1562
1584
  {
1563
1585
  const t = /([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/, i = n.match(t);
@@ -1566,42 +1588,42 @@ function ot(n) {
1566
1588
  }
1567
1589
  return "Other";
1568
1590
  }
1569
- function xt(n = w()) {
1591
+ function Ft(n = k()) {
1570
1592
  return /firefox\//i.test(n);
1571
1593
  }
1572
- function Be(n = w()) {
1594
+ function Be(n = k()) {
1573
1595
  const e = n.toLowerCase();
1574
1596
  return e.includes("safari/") && !e.includes("chrome/") && !e.includes("crios/") && !e.includes("android");
1575
1597
  }
1576
- function Ft(n = w()) {
1598
+ function Vt(n = k()) {
1577
1599
  return /crios\//i.test(n);
1578
1600
  }
1579
- function Vt(n = w()) {
1601
+ function $t(n = k()) {
1580
1602
  return /iemobile/i.test(n);
1581
1603
  }
1582
- function $t(n = w()) {
1604
+ function Ht(n = k()) {
1583
1605
  return /android/i.test(n);
1584
1606
  }
1585
- function Ht(n = w()) {
1607
+ function Wt(n = k()) {
1586
1608
  return /blackberry/i.test(n);
1587
1609
  }
1588
- function jt(n = w()) {
1610
+ function jt(n = k()) {
1589
1611
  return /webos/i.test(n);
1590
1612
  }
1591
- function ke(n = w()) {
1613
+ function ke(n = k()) {
1592
1614
  return /iphone|ipad|ipod/i.test(n) || /macintosh/i.test(n) && /mobile/i.test(n);
1593
1615
  }
1594
- function Ti(n = w()) {
1616
+ function Ei(n = k()) {
1595
1617
  var e;
1596
1618
  return ke(n) && !!(!((e = window.navigator) === null || e === void 0) && e.standalone);
1597
1619
  }
1598
- function ki() {
1599
- return Nn() && document.documentMode === 10;
1620
+ function Si() {
1621
+ return Mn() && document.documentMode === 10;
1600
1622
  }
1601
- function Wt(n = w()) {
1602
- return ke(n) || $t(n) || jt(n) || Ht(n) || /windows phone/i.test(n) || Vt(n);
1623
+ function Bt(n = k()) {
1624
+ return ke(n) || Ht(n) || jt(n) || Wt(n) || /windows phone/i.test(n) || $t(n);
1603
1625
  }
1604
- function bi() {
1626
+ function Ri() {
1605
1627
  try {
1606
1628
  return !!(window && window !== window.top);
1607
1629
  } catch {
@@ -1624,20 +1646,20 @@ function bi() {
1624
1646
  * See the License for the specific language governing permissions and
1625
1647
  * limitations under the License.
1626
1648
  */
1627
- function Bt(n, e = []) {
1649
+ function Gt(n, e = []) {
1628
1650
  let t;
1629
1651
  switch (n) {
1630
1652
  case "Browser":
1631
- t = ot(w());
1653
+ t = ot(k());
1632
1654
  break;
1633
1655
  case "Worker":
1634
- t = `${ot(w())}-${n}`;
1656
+ t = `${ot(k())}-${n}`;
1635
1657
  break;
1636
1658
  default:
1637
1659
  t = n;
1638
1660
  }
1639
1661
  const i = e.length ? e.join(",") : "FirebaseCore-web";
1640
- return `${t}/JsCore/${re}/${i}`;
1662
+ return `${t}/JsCore/${se}/${i}`;
1641
1663
  }
1642
1664
  /**
1643
1665
  * @license
@@ -1655,7 +1677,7 @@ function Bt(n, e = []) {
1655
1677
  * See the License for the specific language governing permissions and
1656
1678
  * limitations under the License.
1657
1679
  */
1658
- class Ei {
1680
+ class Ai {
1659
1681
  constructor(e) {
1660
1682
  this.auth = e, this.queue = [];
1661
1683
  }
@@ -1710,8 +1732,8 @@ class Ei {
1710
1732
  * See the License for the specific language governing permissions and
1711
1733
  * limitations under the License.
1712
1734
  */
1713
- async function Si(n, e = {}) {
1714
- return X(n, "GET", "/v2/passwordPolicy", Te(n, e));
1735
+ async function Pi(n, e = {}) {
1736
+ return Z(n, "GET", "/v2/passwordPolicy", Te(n, e));
1715
1737
  }
1716
1738
  /**
1717
1739
  * @license
@@ -1729,12 +1751,12 @@ async function Si(n, e = {}) {
1729
1751
  * See the License for the specific language governing permissions and
1730
1752
  * limitations under the License.
1731
1753
  */
1732
- const Ri = 6;
1733
- class Ai {
1754
+ const Ci = 6;
1755
+ class Ni {
1734
1756
  constructor(e) {
1735
1757
  var t, i, r, s;
1736
1758
  const o = e.customStrengthOptions;
1737
- this.customStrengthOptions = {}, this.customStrengthOptions.minPasswordLength = (t = o.minPasswordLength) !== null && t !== void 0 ? t : Ri, 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;
1759
+ 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;
1738
1760
  }
1739
1761
  validatePassword(e) {
1740
1762
  var t, i, r, s, o, c;
@@ -1817,14 +1839,14 @@ class Ai {
1817
1839
  * See the License for the specific language governing permissions and
1818
1840
  * limitations under the License.
1819
1841
  */
1820
- class Pi {
1842
+ class Oi {
1821
1843
  constructor(e, t, i, r) {
1822
- 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 Ei(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;
1844
+ 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 Ai(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;
1823
1845
  }
1824
1846
  _initializeWithPersistence(e, t) {
1825
- return t && (this._popupRedirectResolver = N(t)), this._initializationPromise = this.queue(async () => {
1847
+ return t && (this._popupRedirectResolver = O(t)), this._initializationPromise = this.queue(async () => {
1826
1848
  var i, r;
1827
- if (!this._deleted && (this.persistenceManager = await K.create(this, e), !this._deleted)) {
1849
+ if (!this._deleted && (this.persistenceManager = await J.create(this, e), !this._deleted)) {
1828
1850
  if (!((i = this._popupRedirectResolver) === null || i === void 0) && i._shouldInitProactively)
1829
1851
  try {
1830
1852
  await this._popupRedirectResolver._initialize(this);
@@ -1855,7 +1877,7 @@ class Pi {
1855
1877
  }
1856
1878
  async initializeCurrentUserFromIdToken(e) {
1857
1879
  try {
1858
- const t = await Mt(this, { idToken: e }), i = await C._fromGetAccountInfoResponse(this, t, e);
1880
+ const t = await Ut(this, { idToken: e }), i = await N._fromGetAccountInfoResponse(this, t, e);
1859
1881
  await this.directlySetCurrentUser(i);
1860
1882
  } catch (t) {
1861
1883
  console.warn("FirebaseServerApp could not login user with provided authIdToken: ", t), await this.directlySetCurrentUser(null);
@@ -1863,7 +1885,7 @@ class Pi {
1863
1885
  }
1864
1886
  async initializeCurrentUser(e) {
1865
1887
  var t;
1866
- if (A(this.app)) {
1888
+ if (P(this.app)) {
1867
1889
  const o = this.app.settings.authIdToken;
1868
1890
  return o ? new Promise((c) => {
1869
1891
  setTimeout(() => this.initializeCurrentUserFromIdToken(o).then(c, c));
@@ -1913,15 +1935,15 @@ class Pi {
1913
1935
  return this.directlySetCurrentUser(e);
1914
1936
  }
1915
1937
  useDeviceLanguage() {
1916
- this.languageCode = ui();
1938
+ this.languageCode = fi();
1917
1939
  }
1918
1940
  async _delete() {
1919
1941
  this._deleted = !0;
1920
1942
  }
1921
1943
  async updateCurrentUser(e) {
1922
- if (A(this.app))
1923
- return Promise.reject($(this));
1924
- const t = e ? Y(e) : null;
1944
+ if (P(this.app))
1945
+ return Promise.reject(H(this));
1946
+ const t = e ? Q(e) : null;
1925
1947
  return t && u(
1926
1948
  t.auth.config.apiKey === this.config.apiKey,
1927
1949
  this,
@@ -1941,15 +1963,15 @@ class Pi {
1941
1963
  });
1942
1964
  }
1943
1965
  async signOut() {
1944
- return A(this.app) ? Promise.reject($(this)) : (await this.beforeStateQueue.runMiddleware(null), (this.redirectPersistenceManager || this._popupRedirectResolver) && await this._setRedirectUser(null), this._updateCurrentUser(
1966
+ return P(this.app) ? Promise.reject(H(this)) : (await this.beforeStateQueue.runMiddleware(null), (this.redirectPersistenceManager || this._popupRedirectResolver) && await this._setRedirectUser(null), this._updateCurrentUser(
1945
1967
  null,
1946
1968
  /* skipBeforeStateCallbacks */
1947
1969
  !0
1948
1970
  ));
1949
1971
  }
1950
1972
  setPersistence(e) {
1951
- return A(this.app) ? Promise.reject($(this)) : this.queue(async () => {
1952
- await this.assertedPersistence.setPersistence(N(e));
1973
+ return P(this.app) ? Promise.reject(H(this)) : this.queue(async () => {
1974
+ await this.assertedPersistence.setPersistence(O(e));
1953
1975
  });
1954
1976
  }
1955
1977
  _getRecaptchaConfig() {
@@ -1964,7 +1986,7 @@ class Pi {
1964
1986
  return this.tenantId === null ? this._projectPasswordPolicy : this._tenantPasswordPolicies[this.tenantId];
1965
1987
  }
1966
1988
  async _updatePasswordPolicy() {
1967
- const e = await Si(this), t = new Ai(e);
1989
+ const e = await Pi(this), t = new Ni(e);
1968
1990
  this.tenantId === null ? this._projectPasswordPolicy = t : this._tenantPasswordPolicies[this.tenantId] = t;
1969
1991
  }
1970
1992
  _getPersistence() {
@@ -2004,7 +2026,7 @@ class Pi {
2004
2026
  token: e,
2005
2027
  idToken: t
2006
2028
  };
2007
- this.tenantId != null && (i.tenantId = this.tenantId), await wi(this, i);
2029
+ this.tenantId != null && (i.tenantId = this.tenantId), await bi(this, i);
2008
2030
  }
2009
2031
  }
2010
2032
  toJSON() {
@@ -2022,15 +2044,15 @@ class Pi {
2022
2044
  }
2023
2045
  async getOrInitRedirectPersistenceManager(e) {
2024
2046
  if (!this.redirectPersistenceManager) {
2025
- const t = e && N(e) || this._popupRedirectResolver;
2047
+ const t = e && O(e) || this._popupRedirectResolver;
2026
2048
  u(
2027
2049
  t,
2028
2050
  this,
2029
2051
  "argument-error"
2030
2052
  /* AuthErrorCode.ARGUMENT_ERROR */
2031
- ), this.redirectPersistenceManager = await K.create(
2053
+ ), this.redirectPersistenceManager = await J.create(
2032
2054
  this,
2033
- [N(t._redirectPersistence)],
2055
+ [O(t._redirectPersistence)],
2034
2056
  "redirectUser"
2035
2057
  /* KeyName.REDIRECT_USER */
2036
2058
  ), this.redirectUser = await this.redirectPersistenceManager.getCurrentUser();
@@ -2117,7 +2139,7 @@ class Pi {
2117
2139
  ), this.persistenceManager;
2118
2140
  }
2119
2141
  _logFramework(e) {
2120
- !e || this.frameworks.includes(e) || (this.frameworks.push(e), this.frameworks.sort(), this.clientVersion = Bt(this.config.clientPlatform, this._getFrameworks()));
2142
+ !e || this.frameworks.includes(e) || (this.frameworks.push(e), this.frameworks.sort(), this.clientVersion = Gt(this.config.clientPlatform, this._getFrameworks()));
2121
2143
  }
2122
2144
  _getFrameworks() {
2123
2145
  return this.frameworks;
@@ -2147,15 +2169,15 @@ class Pi {
2147
2169
  async _getAppCheckToken() {
2148
2170
  var e;
2149
2171
  const t = await ((e = this.appCheckServiceProvider.getImmediate({ optional: !0 })) === null || e === void 0 ? void 0 : e.getToken());
2150
- return t != null && t.error && ai(`Error while retrieving App Check token: ${t.error}`), t == null ? void 0 : t.token;
2172
+ return t != null && t.error && ui(`Error while retrieving App Check token: ${t.error}`), t == null ? void 0 : t.token;
2151
2173
  }
2152
2174
  }
2153
2175
  function be(n) {
2154
- return Y(n);
2176
+ return Q(n);
2155
2177
  }
2156
2178
  class at {
2157
2179
  constructor(e) {
2158
- this.auth = e, this.observer = null, this.addObserver = Sn((t) => this.observer = t);
2180
+ this.auth = e, this.observer = null, this.addObserver = Pn((t) => this.observer = t);
2159
2181
  }
2160
2182
  get next() {
2161
2183
  return u(
@@ -2190,16 +2212,16 @@ let Ge = {
2190
2212
  recaptchaEnterpriseScript: "",
2191
2213
  gapiScript: ""
2192
2214
  };
2193
- function Ci(n) {
2215
+ function Li(n) {
2194
2216
  Ge = n;
2195
2217
  }
2196
- function Ni(n) {
2218
+ function Mi(n) {
2197
2219
  return Ge.loadJS(n);
2198
2220
  }
2199
- function Oi() {
2221
+ function Ui() {
2200
2222
  return Ge.gapiScript;
2201
2223
  }
2202
- function Li(n) {
2224
+ function Di(n) {
2203
2225
  return `__${n}${Math.floor(Math.random() * 1e6)}`;
2204
2226
  }
2205
2227
  /**
@@ -2218,13 +2240,13 @@ function Li(n) {
2218
2240
  * See the License for the specific language governing permissions and
2219
2241
  * limitations under the License.
2220
2242
  */
2221
- function Mi(n, e) {
2222
- const t = bt(n, "auth");
2243
+ function xi(n, e) {
2244
+ const t = Et(n, "auth");
2223
2245
  if (t.isInitialized()) {
2224
2246
  const r = t.getImmediate(), s = t.getOptions();
2225
- if (Pn(s, e ?? {}))
2247
+ if (On(s, e ?? {}))
2226
2248
  return r;
2227
- O(
2249
+ L(
2228
2250
  r,
2229
2251
  "already-initialized"
2230
2252
  /* AuthErrorCode.ALREADY_INITIALIZED */
@@ -2232,11 +2254,11 @@ function Mi(n, e) {
2232
2254
  }
2233
2255
  return t.initialize({ options: e });
2234
2256
  }
2235
- function Ui(n, e) {
2236
- const t = (e == null ? void 0 : e.persistence) || [], i = (Array.isArray(t) ? t : [t]).map(N);
2257
+ function Fi(n, e) {
2258
+ const t = (e == null ? void 0 : e.persistence) || [], i = (Array.isArray(t) ? t : [t]).map(O);
2237
2259
  e != null && e.errorMap && n._updateErrorMap(e.errorMap), n._initializeWithPersistence(i, e == null ? void 0 : e.popupRedirectResolver);
2238
2260
  }
2239
- function Di(n, e, t) {
2261
+ function Vi(n, e, t) {
2240
2262
  const i = be(n);
2241
2263
  u(
2242
2264
  i._canInitEmulator,
@@ -2249,20 +2271,20 @@ function Di(n, e, t) {
2249
2271
  "invalid-emulator-scheme"
2250
2272
  /* AuthErrorCode.INVALID_EMULATOR_SCHEME */
2251
2273
  );
2252
- const r = !1, s = Gt(e), { host: o, port: c } = xi(e), a = c === null ? "" : `:${c}`;
2274
+ const r = !1, s = zt(e), { host: o, port: c } = $i(e), a = c === null ? "" : `:${c}`;
2253
2275
  i.config.emulator = { url: `${s}//${o}${a}/` }, i.settings.appVerificationDisabledForTesting = !0, i.emulatorConfig = Object.freeze({
2254
2276
  host: o,
2255
2277
  port: c,
2256
2278
  protocol: s.replace(":", ""),
2257
2279
  options: Object.freeze({ disableWarnings: r })
2258
- }), Fi();
2280
+ }), Hi();
2259
2281
  }
2260
- function Gt(n) {
2282
+ function zt(n) {
2261
2283
  const e = n.indexOf(":");
2262
2284
  return e < 0 ? "" : n.substr(0, e + 1);
2263
2285
  }
2264
- function xi(n) {
2265
- const e = Gt(n), t = /(\/\/)?([^?#/]+)/.exec(n.substr(e.length));
2286
+ function $i(n) {
2287
+ const e = zt(n), t = /(\/\/)?([^?#/]+)/.exec(n.substr(e.length));
2266
2288
  if (!t)
2267
2289
  return { host: "", port: null };
2268
2290
  const i = t[2].split("@").pop() || "", r = /^(\[[^\]]+\])(:|$)/.exec(i);
@@ -2280,7 +2302,7 @@ function ct(n) {
2280
2302
  const e = Number(n);
2281
2303
  return isNaN(e) ? null : e;
2282
2304
  }
2283
- function Fi() {
2305
+ function Hi() {
2284
2306
  function n() {
2285
2307
  const e = document.createElement("p"), t = e.style;
2286
2308
  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);
@@ -2303,7 +2325,7 @@ function Fi() {
2303
2325
  * See the License for the specific language governing permissions and
2304
2326
  * limitations under the License.
2305
2327
  */
2306
- class zt {
2328
+ class qt {
2307
2329
  /** @internal */
2308
2330
  constructor(e, t) {
2309
2331
  this.providerId = e, this.signInMethod = t;
@@ -2314,19 +2336,19 @@ class zt {
2314
2336
  * @returns a JSON-serializable representation of this object.
2315
2337
  */
2316
2338
  toJSON() {
2317
- return P("not implemented");
2339
+ return C("not implemented");
2318
2340
  }
2319
2341
  /** @internal */
2320
2342
  _getIdTokenResponse(e) {
2321
- return P("not implemented");
2343
+ return C("not implemented");
2322
2344
  }
2323
2345
  /** @internal */
2324
2346
  _linkToIdToken(e, t) {
2325
- return P("not implemented");
2347
+ return C("not implemented");
2326
2348
  }
2327
2349
  /** @internal */
2328
2350
  _getReauthenticationResolver(e) {
2329
- return P("not implemented");
2351
+ return C("not implemented");
2330
2352
  }
2331
2353
  }
2332
2354
  /**
@@ -2345,8 +2367,8 @@ class zt {
2345
2367
  * See the License for the specific language governing permissions and
2346
2368
  * limitations under the License.
2347
2369
  */
2348
- async function J(n, e) {
2349
- return Ot(n, "POST", "/v1/accounts:signInWithIdp", Te(n, e));
2370
+ async function Y(n, e) {
2371
+ return Lt(n, "POST", "/v1/accounts:signInWithIdp", Te(n, e));
2350
2372
  }
2351
2373
  /**
2352
2374
  * @license
@@ -2364,15 +2386,15 @@ async function J(n, e) {
2364
2386
  * See the License for the specific language governing permissions and
2365
2387
  * limitations under the License.
2366
2388
  */
2367
- const Vi = "http://localhost";
2368
- class W extends zt {
2389
+ const Wi = "http://localhost";
2390
+ class B extends qt {
2369
2391
  constructor() {
2370
2392
  super(...arguments), this.pendingToken = null;
2371
2393
  }
2372
2394
  /** @internal */
2373
2395
  static _fromParams(e) {
2374
- const t = new W(e.providerId, e.signInMethod);
2375
- 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(
2396
+ const t = new B(e.providerId, e.signInMethod);
2397
+ 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(
2376
2398
  "argument-error"
2377
2399
  /* AuthErrorCode.ARGUMENT_ERROR */
2378
2400
  ), t;
@@ -2402,34 +2424,34 @@ class W extends zt {
2402
2424
  const t = typeof e == "string" ? JSON.parse(e) : e, { providerId: i, signInMethod: r } = t, s = $e(t, ["providerId", "signInMethod"]);
2403
2425
  if (!i || !r)
2404
2426
  return null;
2405
- const o = new W(i, r);
2427
+ const o = new B(i, r);
2406
2428
  return o.idToken = s.idToken || void 0, o.accessToken = s.accessToken || void 0, o.secret = s.secret, o.nonce = s.nonce, o.pendingToken = s.pendingToken || null, o;
2407
2429
  }
2408
2430
  /** @internal */
2409
2431
  _getIdTokenResponse(e) {
2410
2432
  const t = this.buildRequest();
2411
- return J(e, t);
2433
+ return Y(e, t);
2412
2434
  }
2413
2435
  /** @internal */
2414
2436
  _linkToIdToken(e, t) {
2415
2437
  const i = this.buildRequest();
2416
- return i.idToken = t, J(e, i);
2438
+ return i.idToken = t, Y(e, i);
2417
2439
  }
2418
2440
  /** @internal */
2419
2441
  _getReauthenticationResolver(e) {
2420
2442
  const t = this.buildRequest();
2421
- return t.autoCreate = !1, J(e, t);
2443
+ return t.autoCreate = !1, Y(e, t);
2422
2444
  }
2423
2445
  buildRequest() {
2424
2446
  const e = {
2425
- requestUri: Vi,
2447
+ requestUri: Wi,
2426
2448
  returnSecureToken: !0
2427
2449
  };
2428
2450
  if (this.pendingToken)
2429
2451
  e.pendingToken = this.pendingToken;
2430
2452
  else {
2431
2453
  const t = {};
2432
- this.idToken && (t.id_token = this.idToken), this.accessToken && (t.access_token = this.accessToken), this.secret && (t.oauth_token_secret = this.secret), t.providerId = this.providerId, this.nonce && !this.pendingToken && (t.nonce = this.nonce), e.postBody = se(t);
2454
+ this.idToken && (t.id_token = this.idToken), this.accessToken && (t.access_token = this.accessToken), this.secret && (t.oauth_token_secret = this.secret), t.providerId = this.providerId, this.nonce && !this.pendingToken && (t.nonce = this.nonce), e.postBody = oe(t);
2433
2455
  }
2434
2456
  return e;
2435
2457
  }
@@ -2450,7 +2472,7 @@ class W extends zt {
2450
2472
  * See the License for the specific language governing permissions and
2451
2473
  * limitations under the License.
2452
2474
  */
2453
- class qt {
2475
+ class Kt {
2454
2476
  /**
2455
2477
  * Constructor for generic OAuth providers.
2456
2478
  *
@@ -2503,7 +2525,7 @@ class qt {
2503
2525
  * See the License for the specific language governing permissions and
2504
2526
  * limitations under the License.
2505
2527
  */
2506
- class ae extends qt {
2528
+ class ce extends Kt {
2507
2529
  constructor() {
2508
2530
  super(...arguments), this.scopes = [];
2509
2531
  }
@@ -2538,7 +2560,7 @@ class ae extends qt {
2538
2560
  * See the License for the specific language governing permissions and
2539
2561
  * limitations under the License.
2540
2562
  */
2541
- class D extends ae {
2563
+ class x extends ce {
2542
2564
  constructor() {
2543
2565
  super(
2544
2566
  "facebook.com"
@@ -2558,9 +2580,9 @@ class D extends ae {
2558
2580
  * @param accessToken - Facebook access token.
2559
2581
  */
2560
2582
  static credential(e) {
2561
- return W._fromParams({
2562
- providerId: D.PROVIDER_ID,
2563
- signInMethod: D.FACEBOOK_SIGN_IN_METHOD,
2583
+ return B._fromParams({
2584
+ providerId: x.PROVIDER_ID,
2585
+ signInMethod: x.FACEBOOK_SIGN_IN_METHOD,
2564
2586
  accessToken: e
2565
2587
  });
2566
2588
  }
@@ -2570,7 +2592,7 @@ class D extends ae {
2570
2592
  * @param userCredential - The user credential.
2571
2593
  */
2572
2594
  static credentialFromResult(e) {
2573
- return D.credentialFromTaggedObject(e);
2595
+ return x.credentialFromTaggedObject(e);
2574
2596
  }
2575
2597
  /**
2576
2598
  * Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was
@@ -2579,20 +2601,20 @@ class D extends ae {
2579
2601
  * @param userCredential - The user credential.
2580
2602
  */
2581
2603
  static credentialFromError(e) {
2582
- return D.credentialFromTaggedObject(e.customData || {});
2604
+ return x.credentialFromTaggedObject(e.customData || {});
2583
2605
  }
2584
2606
  static credentialFromTaggedObject({ _tokenResponse: e }) {
2585
2607
  if (!e || !("oauthAccessToken" in e) || !e.oauthAccessToken)
2586
2608
  return null;
2587
2609
  try {
2588
- return D.credential(e.oauthAccessToken);
2610
+ return x.credential(e.oauthAccessToken);
2589
2611
  } catch {
2590
2612
  return null;
2591
2613
  }
2592
2614
  }
2593
2615
  }
2594
- D.FACEBOOK_SIGN_IN_METHOD = "facebook.com";
2595
- D.PROVIDER_ID = "facebook.com";
2616
+ x.FACEBOOK_SIGN_IN_METHOD = "facebook.com";
2617
+ x.PROVIDER_ID = "facebook.com";
2596
2618
  /**
2597
2619
  * @license
2598
2620
  * Copyright 2020 Google LLC
@@ -2609,7 +2631,7 @@ D.PROVIDER_ID = "facebook.com";
2609
2631
  * See the License for the specific language governing permissions and
2610
2632
  * limitations under the License.
2611
2633
  */
2612
- class x extends ae {
2634
+ class F extends ce {
2613
2635
  constructor() {
2614
2636
  super(
2615
2637
  "google.com"
@@ -2630,9 +2652,9 @@ class x extends ae {
2630
2652
  * @param accessToken - Google access token.
2631
2653
  */
2632
2654
  static credential(e, t) {
2633
- return W._fromParams({
2634
- providerId: x.PROVIDER_ID,
2635
- signInMethod: x.GOOGLE_SIGN_IN_METHOD,
2655
+ return B._fromParams({
2656
+ providerId: F.PROVIDER_ID,
2657
+ signInMethod: F.GOOGLE_SIGN_IN_METHOD,
2636
2658
  idToken: e,
2637
2659
  accessToken: t
2638
2660
  });
@@ -2643,7 +2665,7 @@ class x extends ae {
2643
2665
  * @param userCredential - The user credential.
2644
2666
  */
2645
2667
  static credentialFromResult(e) {
2646
- return x.credentialFromTaggedObject(e);
2668
+ return F.credentialFromTaggedObject(e);
2647
2669
  }
2648
2670
  /**
2649
2671
  * Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was
@@ -2652,7 +2674,7 @@ class x extends ae {
2652
2674
  * @param userCredential - The user credential.
2653
2675
  */
2654
2676
  static credentialFromError(e) {
2655
- return x.credentialFromTaggedObject(e.customData || {});
2677
+ return F.credentialFromTaggedObject(e.customData || {});
2656
2678
  }
2657
2679
  static credentialFromTaggedObject({ _tokenResponse: e }) {
2658
2680
  if (!e)
@@ -2661,14 +2683,14 @@ class x extends ae {
2661
2683
  if (!t && !i)
2662
2684
  return null;
2663
2685
  try {
2664
- return x.credential(t, i);
2686
+ return F.credential(t, i);
2665
2687
  } catch {
2666
2688
  return null;
2667
2689
  }
2668
2690
  }
2669
2691
  }
2670
- x.GOOGLE_SIGN_IN_METHOD = "google.com";
2671
- x.PROVIDER_ID = "google.com";
2692
+ F.GOOGLE_SIGN_IN_METHOD = "google.com";
2693
+ F.PROVIDER_ID = "google.com";
2672
2694
  /**
2673
2695
  * @license
2674
2696
  * Copyright 2020 Google LLC
@@ -2685,7 +2707,7 @@ x.PROVIDER_ID = "google.com";
2685
2707
  * See the License for the specific language governing permissions and
2686
2708
  * limitations under the License.
2687
2709
  */
2688
- class F extends ae {
2710
+ class V extends ce {
2689
2711
  constructor() {
2690
2712
  super(
2691
2713
  "github.com"
@@ -2698,9 +2720,9 @@ class F extends ae {
2698
2720
  * @param accessToken - Github access token.
2699
2721
  */
2700
2722
  static credential(e) {
2701
- return W._fromParams({
2702
- providerId: F.PROVIDER_ID,
2703
- signInMethod: F.GITHUB_SIGN_IN_METHOD,
2723
+ return B._fromParams({
2724
+ providerId: V.PROVIDER_ID,
2725
+ signInMethod: V.GITHUB_SIGN_IN_METHOD,
2704
2726
  accessToken: e
2705
2727
  });
2706
2728
  }
@@ -2710,7 +2732,7 @@ class F extends ae {
2710
2732
  * @param userCredential - The user credential.
2711
2733
  */
2712
2734
  static credentialFromResult(e) {
2713
- return F.credentialFromTaggedObject(e);
2735
+ return V.credentialFromTaggedObject(e);
2714
2736
  }
2715
2737
  /**
2716
2738
  * Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was
@@ -2719,20 +2741,20 @@ class F extends ae {
2719
2741
  * @param userCredential - The user credential.
2720
2742
  */
2721
2743
  static credentialFromError(e) {
2722
- return F.credentialFromTaggedObject(e.customData || {});
2744
+ return V.credentialFromTaggedObject(e.customData || {});
2723
2745
  }
2724
2746
  static credentialFromTaggedObject({ _tokenResponse: e }) {
2725
2747
  if (!e || !("oauthAccessToken" in e) || !e.oauthAccessToken)
2726
2748
  return null;
2727
2749
  try {
2728
- return F.credential(e.oauthAccessToken);
2750
+ return V.credential(e.oauthAccessToken);
2729
2751
  } catch {
2730
2752
  return null;
2731
2753
  }
2732
2754
  }
2733
2755
  }
2734
- F.GITHUB_SIGN_IN_METHOD = "github.com";
2735
- F.PROVIDER_ID = "github.com";
2756
+ V.GITHUB_SIGN_IN_METHOD = "github.com";
2757
+ V.PROVIDER_ID = "github.com";
2736
2758
  /**
2737
2759
  * @license
2738
2760
  * Copyright 2020 Google LLC
@@ -2749,7 +2771,7 @@ F.PROVIDER_ID = "github.com";
2749
2771
  * See the License for the specific language governing permissions and
2750
2772
  * limitations under the License.
2751
2773
  */
2752
- class V extends ae {
2774
+ class $ extends ce {
2753
2775
  constructor() {
2754
2776
  super(
2755
2777
  "twitter.com"
@@ -2763,9 +2785,9 @@ class V extends ae {
2763
2785
  * @param secret - Twitter secret.
2764
2786
  */
2765
2787
  static credential(e, t) {
2766
- return W._fromParams({
2767
- providerId: V.PROVIDER_ID,
2768
- signInMethod: V.TWITTER_SIGN_IN_METHOD,
2788
+ return B._fromParams({
2789
+ providerId: $.PROVIDER_ID,
2790
+ signInMethod: $.TWITTER_SIGN_IN_METHOD,
2769
2791
  oauthToken: e,
2770
2792
  oauthTokenSecret: t
2771
2793
  });
@@ -2776,7 +2798,7 @@ class V extends ae {
2776
2798
  * @param userCredential - The user credential.
2777
2799
  */
2778
2800
  static credentialFromResult(e) {
2779
- return V.credentialFromTaggedObject(e);
2801
+ return $.credentialFromTaggedObject(e);
2780
2802
  }
2781
2803
  /**
2782
2804
  * Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was
@@ -2785,7 +2807,7 @@ class V extends ae {
2785
2807
  * @param userCredential - The user credential.
2786
2808
  */
2787
2809
  static credentialFromError(e) {
2788
- return V.credentialFromTaggedObject(e.customData || {});
2810
+ return $.credentialFromTaggedObject(e.customData || {});
2789
2811
  }
2790
2812
  static credentialFromTaggedObject({ _tokenResponse: e }) {
2791
2813
  if (!e)
@@ -2794,14 +2816,14 @@ class V extends ae {
2794
2816
  if (!t || !i)
2795
2817
  return null;
2796
2818
  try {
2797
- return V.credential(t, i);
2819
+ return $.credential(t, i);
2798
2820
  } catch {
2799
2821
  return null;
2800
2822
  }
2801
2823
  }
2802
2824
  }
2803
- V.TWITTER_SIGN_IN_METHOD = "twitter.com";
2804
- V.PROVIDER_ID = "twitter.com";
2825
+ $.TWITTER_SIGN_IN_METHOD = "twitter.com";
2826
+ $.PROVIDER_ID = "twitter.com";
2805
2827
  /**
2806
2828
  * @license
2807
2829
  * Copyright 2020 Google LLC
@@ -2818,13 +2840,13 @@ V.PROVIDER_ID = "twitter.com";
2818
2840
  * See the License for the specific language governing permissions and
2819
2841
  * limitations under the License.
2820
2842
  */
2821
- class B {
2843
+ class G {
2822
2844
  constructor(e) {
2823
2845
  this.user = e.user, this.providerId = e.providerId, this._tokenResponse = e._tokenResponse, this.operationType = e.operationType;
2824
2846
  }
2825
2847
  static async _fromIdTokenResponse(e, t, i, r = !1) {
2826
- const s = await C._fromIdTokenResponse(e, i, r), o = lt(i);
2827
- return new B({
2848
+ const s = await N._fromIdTokenResponse(e, i, r), o = lt(i);
2849
+ return new G({
2828
2850
  user: s,
2829
2851
  providerId: o,
2830
2852
  _tokenResponse: i,
@@ -2838,7 +2860,7 @@ class B {
2838
2860
  !0
2839
2861
  );
2840
2862
  const r = lt(i);
2841
- return new B({
2863
+ return new G({
2842
2864
  user: e,
2843
2865
  providerId: r,
2844
2866
  _tokenResponse: i,
@@ -2879,14 +2901,14 @@ class Ie extends Ve {
2879
2901
  return new Ie(e, t, i, r);
2880
2902
  }
2881
2903
  }
2882
- function Kt(n, e, t, i) {
2904
+ function Jt(n, e, t, i) {
2883
2905
  return (e === "reauthenticate" ? t._getReauthenticationResolver(n) : t._getIdTokenResponse(n)).catch((s) => {
2884
2906
  throw s.code === "auth/multi-factor-auth-required" ? Ie._fromErrorAndOperation(n, s, e, i) : s;
2885
2907
  });
2886
2908
  }
2887
- async function $i(n, e, t = !1) {
2888
- const i = await ie(n, e._linkToIdToken(n.auth, await n.getIdToken()), t);
2889
- return B._forOperation(n, "link", i);
2909
+ async function ji(n, e, t = !1) {
2910
+ const i = await re(n, e._linkToIdToken(n.auth, await n.getIdToken()), t);
2911
+ return G._forOperation(n, "link", i);
2890
2912
  }
2891
2913
  /**
2892
2914
  * @license
@@ -2904,20 +2926,20 @@ async function $i(n, e, t = !1) {
2904
2926
  * See the License for the specific language governing permissions and
2905
2927
  * limitations under the License.
2906
2928
  */
2907
- async function Hi(n, e, t = !1) {
2929
+ async function Bi(n, e, t = !1) {
2908
2930
  const { auth: i } = n;
2909
- if (A(i.app))
2910
- return Promise.reject($(i));
2931
+ if (P(i.app))
2932
+ return Promise.reject(H(i));
2911
2933
  const r = "reauthenticate";
2912
2934
  try {
2913
- const s = await ie(n, Kt(i, r, e, n), t);
2935
+ const s = await re(n, Jt(i, r, e, n), t);
2914
2936
  u(
2915
2937
  s.idToken,
2916
2938
  i,
2917
2939
  "internal-error"
2918
2940
  /* AuthErrorCode.INTERNAL_ERROR */
2919
2941
  );
2920
- const o = We(s.idToken);
2942
+ const o = je(s.idToken);
2921
2943
  u(
2922
2944
  o,
2923
2945
  i,
@@ -2930,9 +2952,9 @@ async function Hi(n, e, t = !1) {
2930
2952
  i,
2931
2953
  "user-mismatch"
2932
2954
  /* AuthErrorCode.USER_MISMATCH */
2933
- ), B._forOperation(n, r, s);
2955
+ ), G._forOperation(n, r, s);
2934
2956
  } catch (s) {
2935
- throw (s == null ? void 0 : s.code) === "auth/user-not-found" && O(
2957
+ throw (s == null ? void 0 : s.code) === "auth/user-not-found" && L(
2936
2958
  i,
2937
2959
  "user-mismatch"
2938
2960
  /* AuthErrorCode.USER_MISMATCH */
@@ -2955,10 +2977,10 @@ async function Hi(n, e, t = !1) {
2955
2977
  * See the License for the specific language governing permissions and
2956
2978
  * limitations under the License.
2957
2979
  */
2958
- async function ji(n, e, t = !1) {
2959
- if (A(n.app))
2960
- return Promise.reject($(n));
2961
- const i = "signIn", r = await Kt(n, i, e), s = await B._fromIdTokenResponse(n, i, r);
2980
+ async function Gi(n, e, t = !1) {
2981
+ if (P(n.app))
2982
+ return Promise.reject(H(n));
2983
+ const i = "signIn", r = await Jt(n, i, e), s = await G._fromIdTokenResponse(n, i, r);
2962
2984
  return t || await n._updateCurrentUser(s.user), s;
2963
2985
  }
2964
2986
  /**
@@ -2977,8 +2999,8 @@ async function ji(n, e, t = !1) {
2977
2999
  * See the License for the specific language governing permissions and
2978
3000
  * limitations under the License.
2979
3001
  */
2980
- async function Wi(n, e) {
2981
- return Ot(n, "POST", "/v1/accounts:signInWithCustomToken", Te(n, e));
3002
+ async function zi(n, e) {
3003
+ return Lt(n, "POST", "/v1/accounts:signInWithCustomToken", Te(n, e));
2982
3004
  }
2983
3005
  /**
2984
3006
  * @license
@@ -2996,20 +3018,20 @@ async function Wi(n, e) {
2996
3018
  * See the License for the specific language governing permissions and
2997
3019
  * limitations under the License.
2998
3020
  */
2999
- async function Bi(n, e) {
3000
- if (A(n.app))
3001
- return Promise.reject($(n));
3002
- const t = be(n), i = await Wi(t, {
3021
+ async function qi(n, e) {
3022
+ if (P(n.app))
3023
+ return Promise.reject(H(n));
3024
+ const t = be(n), i = await zi(t, {
3003
3025
  token: e,
3004
3026
  returnSecureToken: !0
3005
- }), r = await B._fromIdTokenResponse(t, "signIn", i);
3027
+ }), r = await G._fromIdTokenResponse(t, "signIn", i);
3006
3028
  return await t._updateCurrentUser(r.user), r;
3007
3029
  }
3008
- function Gi(n, e, t, i) {
3009
- return Y(n).onIdTokenChanged(e, t, i);
3030
+ function Ki(n, e, t, i) {
3031
+ return Q(n).onIdTokenChanged(e, t, i);
3010
3032
  }
3011
- function zi(n, e, t) {
3012
- return Y(n).beforeAuthStateChanged(e, t);
3033
+ function Ji(n, e, t) {
3034
+ return Q(n).beforeAuthStateChanged(e, t);
3013
3035
  }
3014
3036
  const ye = "__sak";
3015
3037
  /**
@@ -3028,7 +3050,7 @@ const ye = "__sak";
3028
3050
  * See the License for the specific language governing permissions and
3029
3051
  * limitations under the License.
3030
3052
  */
3031
- class Jt {
3053
+ class Yt {
3032
3054
  constructor(e, t) {
3033
3055
  this.storageRetriever = e, this.type = t;
3034
3056
  }
@@ -3069,18 +3091,18 @@ class Jt {
3069
3091
  * See the License for the specific language governing permissions and
3070
3092
  * limitations under the License.
3071
3093
  */
3072
- function qi() {
3073
- const n = w();
3094
+ function Yi() {
3095
+ const n = k();
3074
3096
  return Be(n) || ke(n);
3075
3097
  }
3076
- const Ki = 1e3, Ji = 10;
3077
- class Yt extends Jt {
3098
+ const Xi = 1e3, Qi = 10;
3099
+ class Xt extends Yt {
3078
3100
  constructor() {
3079
3101
  super(
3080
3102
  () => window.localStorage,
3081
3103
  "LOCAL"
3082
3104
  /* PersistenceType.LOCAL */
3083
- ), this.boundEventHandler = (e, t) => this.onStorageEvent(e, t), this.listeners = {}, this.localCache = {}, this.pollTimer = null, this.safariLocalStorageNotSynced = qi() && bi(), this.fallbackToPolling = Wt(), this._shouldAllowMigration = !0;
3105
+ ), this.boundEventHandler = (e, t) => this.onStorageEvent(e, t), this.listeners = {}, this.localCache = {}, this.pollTimer = null, this.safariLocalStorageNotSynced = Yi() && Ri(), this.fallbackToPolling = Bt(), this._shouldAllowMigration = !0;
3084
3106
  }
3085
3107
  forAllChangedKeys(e) {
3086
3108
  for (const t of Object.keys(this.listeners)) {
@@ -3107,7 +3129,7 @@ class Yt extends Jt {
3107
3129
  const o = this.storage.getItem(i);
3108
3130
  !t && this.localCache[i] === o || this.notifyListeners(i, o);
3109
3131
  }, s = this.storage.getItem(i);
3110
- ki() && s !== e.newValue && e.newValue !== e.oldValue ? setTimeout(r, Ji) : r();
3132
+ Si() && s !== e.newValue && e.newValue !== e.oldValue ? setTimeout(r, Qi) : r();
3111
3133
  }
3112
3134
  notifyListeners(e, t) {
3113
3135
  this.localCache[e] = t;
@@ -3129,7 +3151,7 @@ class Yt extends Jt {
3129
3151
  !0
3130
3152
  );
3131
3153
  });
3132
- }, Ki);
3154
+ }, Xi);
3133
3155
  }
3134
3156
  stopPolling() {
3135
3157
  this.pollTimer && (clearInterval(this.pollTimer), this.pollTimer = null);
@@ -3158,8 +3180,8 @@ class Yt extends Jt {
3158
3180
  await super._remove(e), delete this.localCache[e];
3159
3181
  }
3160
3182
  }
3161
- Yt.type = "LOCAL";
3162
- const Yi = Yt;
3183
+ Xt.type = "LOCAL";
3184
+ const Zi = Xt;
3163
3185
  /**
3164
3186
  * @license
3165
3187
  * Copyright 2020 Google LLC
@@ -3176,7 +3198,7 @@ const Yi = Yt;
3176
3198
  * See the License for the specific language governing permissions and
3177
3199
  * limitations under the License.
3178
3200
  */
3179
- class Xt extends Jt {
3201
+ class Qt extends Yt {
3180
3202
  constructor() {
3181
3203
  super(
3182
3204
  () => window.sessionStorage,
@@ -3189,8 +3211,8 @@ class Xt extends Jt {
3189
3211
  _removeListener(e, t) {
3190
3212
  }
3191
3213
  }
3192
- Xt.type = "SESSION";
3193
- const Qt = Xt;
3214
+ Qt.type = "SESSION";
3215
+ const Zt = Qt;
3194
3216
  /**
3195
3217
  * @license
3196
3218
  * Copyright 2019 Google LLC
@@ -3207,7 +3229,7 @@ const Qt = Xt;
3207
3229
  * See the License for the specific language governing permissions and
3208
3230
  * limitations under the License.
3209
3231
  */
3210
- function Xi(n) {
3232
+ function er(n) {
3211
3233
  return Promise.all(n.map(async (e) => {
3212
3234
  try {
3213
3235
  return {
@@ -3277,7 +3299,7 @@ class Ee {
3277
3299
  eventId: i,
3278
3300
  eventType: r
3279
3301
  });
3280
- const c = Array.from(o).map(async (l) => l(t.origin, s)), a = await Xi(c);
3302
+ const c = Array.from(o).map(async (l) => l(t.origin, s)), a = await er(c);
3281
3303
  t.ports[0].postMessage({
3282
3304
  status: "done",
3283
3305
  eventId: i,
@@ -3345,7 +3367,7 @@ function ze(n = "", e = 10) {
3345
3367
  * See the License for the specific language governing permissions and
3346
3368
  * limitations under the License.
3347
3369
  */
3348
- class Qi {
3370
+ class tr {
3349
3371
  constructor(e) {
3350
3372
  this.target = e, this.handlers = /* @__PURE__ */ new Set();
3351
3373
  }
@@ -3381,7 +3403,7 @@ class Qi {
3381
3403
  return new Promise((c, a) => {
3382
3404
  const l = ze("", 20);
3383
3405
  r.port1.start();
3384
- const d = setTimeout(() => {
3406
+ const h = setTimeout(() => {
3385
3407
  a(new Error(
3386
3408
  "unsupported_event"
3387
3409
  /* _MessageError.UNSUPPORTED_EVENT */
@@ -3389,12 +3411,12 @@ class Qi {
3389
3411
  }, i);
3390
3412
  o = {
3391
3413
  messageChannel: r,
3392
- onMessage(p) {
3393
- const h = p;
3394
- if (h.data.eventId === l)
3395
- switch (h.data.status) {
3414
+ onMessage(m) {
3415
+ const v = m;
3416
+ if (v.data.eventId === l)
3417
+ switch (v.data.status) {
3396
3418
  case "ack":
3397
- clearTimeout(d), s = setTimeout(
3419
+ clearTimeout(h), s = setTimeout(
3398
3420
  () => {
3399
3421
  a(new Error(
3400
3422
  "timeout"
@@ -3406,10 +3428,10 @@ class Qi {
3406
3428
  );
3407
3429
  break;
3408
3430
  case "done":
3409
- clearTimeout(s), c(h.data.response);
3431
+ clearTimeout(s), c(v.data.response);
3410
3432
  break;
3411
3433
  default:
3412
- clearTimeout(d), clearTimeout(s), a(new Error(
3434
+ clearTimeout(h), clearTimeout(s), a(new Error(
3413
3435
  "invalid_response"
3414
3436
  /* _MessageError.INVALID_RESPONSE */
3415
3437
  ));
@@ -3442,11 +3464,11 @@ class Qi {
3442
3464
  * See the License for the specific language governing permissions and
3443
3465
  * limitations under the License.
3444
3466
  */
3445
- function E() {
3467
+ function S() {
3446
3468
  return window;
3447
3469
  }
3448
- function Zi(n) {
3449
- E().location.href = n;
3470
+ function nr(n) {
3471
+ S().location.href = n;
3450
3472
  }
3451
3473
  /**
3452
3474
  * @license
@@ -3464,10 +3486,10 @@ function Zi(n) {
3464
3486
  * See the License for the specific language governing permissions and
3465
3487
  * limitations under the License.
3466
3488
  */
3467
- function Zt() {
3468
- return typeof E().WorkerGlobalScope < "u" && typeof E().importScripts == "function";
3489
+ function en() {
3490
+ return typeof S().WorkerGlobalScope < "u" && typeof S().importScripts == "function";
3469
3491
  }
3470
- async function er() {
3492
+ async function ir() {
3471
3493
  if (!(navigator != null && navigator.serviceWorker))
3472
3494
  return null;
3473
3495
  try {
@@ -3476,12 +3498,12 @@ async function er() {
3476
3498
  return null;
3477
3499
  }
3478
3500
  }
3479
- function tr() {
3501
+ function rr() {
3480
3502
  var n;
3481
3503
  return ((n = navigator == null ? void 0 : navigator.serviceWorker) === null || n === void 0 ? void 0 : n.controller) || null;
3482
3504
  }
3483
- function nr() {
3484
- return Zt() ? self : null;
3505
+ function sr() {
3506
+ return en() ? self : null;
3485
3507
  }
3486
3508
  /**
3487
3509
  * @license
@@ -3499,8 +3521,8 @@ function nr() {
3499
3521
  * See the License for the specific language governing permissions and
3500
3522
  * limitations under the License.
3501
3523
  */
3502
- const en = "firebaseLocalStorageDb", ir = 1, we = "firebaseLocalStorage", tn = "fbase_key";
3503
- class ce {
3524
+ const tn = "firebaseLocalStorageDb", or = 1, we = "firebaseLocalStorage", nn = "fbase_key";
3525
+ class le {
3504
3526
  constructor(e) {
3505
3527
  this.request = e;
3506
3528
  }
@@ -3517,45 +3539,45 @@ class ce {
3517
3539
  function Se(n, e) {
3518
3540
  return n.transaction([we], e ? "readwrite" : "readonly").objectStore(we);
3519
3541
  }
3520
- function rr() {
3521
- const n = indexedDB.deleteDatabase(en);
3522
- return new ce(n).toPromise();
3542
+ function ar() {
3543
+ const n = indexedDB.deleteDatabase(tn);
3544
+ return new le(n).toPromise();
3523
3545
  }
3524
3546
  function De() {
3525
- const n = indexedDB.open(en, ir);
3547
+ const n = indexedDB.open(tn, or);
3526
3548
  return new Promise((e, t) => {
3527
3549
  n.addEventListener("error", () => {
3528
3550
  t(n.error);
3529
3551
  }), n.addEventListener("upgradeneeded", () => {
3530
3552
  const i = n.result;
3531
3553
  try {
3532
- i.createObjectStore(we, { keyPath: tn });
3554
+ i.createObjectStore(we, { keyPath: nn });
3533
3555
  } catch (r) {
3534
3556
  t(r);
3535
3557
  }
3536
3558
  }), n.addEventListener("success", async () => {
3537
3559
  const i = n.result;
3538
- i.objectStoreNames.contains(we) ? e(i) : (i.close(), await rr(), e(await De()));
3560
+ i.objectStoreNames.contains(we) ? e(i) : (i.close(), await ar(), e(await De()));
3539
3561
  });
3540
3562
  });
3541
3563
  }
3542
3564
  async function ut(n, e, t) {
3543
3565
  const i = Se(n, !0).put({
3544
- [tn]: e,
3566
+ [nn]: e,
3545
3567
  value: t
3546
3568
  });
3547
- return new ce(i).toPromise();
3569
+ return new le(i).toPromise();
3548
3570
  }
3549
- async function sr(n, e) {
3550
- const t = Se(n, !1).get(e), i = await new ce(t).toPromise();
3571
+ async function cr(n, e) {
3572
+ const t = Se(n, !1).get(e), i = await new le(t).toPromise();
3551
3573
  return i === void 0 ? null : i.value;
3552
3574
  }
3553
3575
  function dt(n, e) {
3554
3576
  const t = Se(n, !0).delete(e);
3555
- return new ce(t).toPromise();
3577
+ return new le(t).toPromise();
3556
3578
  }
3557
- const or = 800, ar = 3;
3558
- class nn {
3579
+ const lr = 800, ur = 3;
3580
+ class rn {
3559
3581
  constructor() {
3560
3582
  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(() => {
3561
3583
  }, () => {
@@ -3571,7 +3593,7 @@ class nn {
3571
3593
  const i = await this._openDb();
3572
3594
  return await e(i);
3573
3595
  } catch (i) {
3574
- if (t++ > ar)
3596
+ if (t++ > ur)
3575
3597
  throw i;
3576
3598
  this.db && (this.db.close(), this.db = void 0);
3577
3599
  }
@@ -3581,13 +3603,13 @@ class nn {
3581
3603
  * postMessage interface to send these events to the worker ourselves.
3582
3604
  */
3583
3605
  async initializeServiceWorkerMessaging() {
3584
- return Zt() ? this.initializeReceiver() : this.initializeSender();
3606
+ return en() ? this.initializeReceiver() : this.initializeSender();
3585
3607
  }
3586
3608
  /**
3587
3609
  * As the worker we should listen to events from the main window.
3588
3610
  */
3589
3611
  async initializeReceiver() {
3590
- this.receiver = Ee._getInstance(nr()), this.receiver._subscribe("keyChanged", async (e, t) => ({
3612
+ this.receiver = Ee._getInstance(sr()), this.receiver._subscribe("keyChanged", async (e, t) => ({
3591
3613
  keyProcessed: (await this._poll()).includes(t.key)
3592
3614
  })), this.receiver._subscribe("ping", async (e, t) => [
3593
3615
  "keyChanged"
@@ -3603,9 +3625,9 @@ class nn {
3603
3625
  */
3604
3626
  async initializeSender() {
3605
3627
  var e, t;
3606
- if (this.activeServiceWorker = await er(), !this.activeServiceWorker)
3628
+ if (this.activeServiceWorker = await ir(), !this.activeServiceWorker)
3607
3629
  return;
3608
- this.sender = new Qi(this.activeServiceWorker);
3630
+ this.sender = new tr(this.activeServiceWorker);
3609
3631
  const i = await this.sender._send(
3610
3632
  "ping",
3611
3633
  {},
@@ -3627,7 +3649,7 @@ class nn {
3627
3649
  * @param key - Storage key which changed.
3628
3650
  */
3629
3651
  async notifyServiceWorker(e) {
3630
- if (!(!this.sender || !this.activeServiceWorker || tr() !== this.activeServiceWorker))
3652
+ if (!(!this.sender || !this.activeServiceWorker || rr() !== this.activeServiceWorker))
3631
3653
  try {
3632
3654
  await this.sender._send(
3633
3655
  "keyChanged",
@@ -3661,7 +3683,7 @@ class nn {
3661
3683
  return this._withPendingWrite(async () => (await this._withRetries((i) => ut(i, e, t)), this.localCache[e] = t, this.notifyServiceWorker(e)));
3662
3684
  }
3663
3685
  async _get(e) {
3664
- const t = await this._withRetries((i) => sr(i, e));
3686
+ const t = await this._withRetries((i) => cr(i, e));
3665
3687
  return this.localCache[e] = t, t;
3666
3688
  }
3667
3689
  async _remove(e) {
@@ -3670,7 +3692,7 @@ class nn {
3670
3692
  async _poll() {
3671
3693
  const e = await this._withRetries((r) => {
3672
3694
  const s = Se(r, !1).getAll();
3673
- return new ce(s).toPromise();
3695
+ return new le(s).toPromise();
3674
3696
  });
3675
3697
  if (!e)
3676
3698
  return [];
@@ -3692,7 +3714,7 @@ class nn {
3692
3714
  r(t);
3693
3715
  }
3694
3716
  startPolling() {
3695
- this.stopPolling(), this.pollTimer = setInterval(async () => this._poll(), or);
3717
+ this.stopPolling(), this.pollTimer = setInterval(async () => this._poll(), lr);
3696
3718
  }
3697
3719
  stopPolling() {
3698
3720
  this.pollTimer && (clearInterval(this.pollTimer), this.pollTimer = null);
@@ -3704,9 +3726,9 @@ class nn {
3704
3726
  this.listeners[e] && (this.listeners[e].delete(t), this.listeners[e].size === 0 && delete this.listeners[e]), Object.keys(this.listeners).length === 0 && this.stopPolling();
3705
3727
  }
3706
3728
  }
3707
- nn.type = "LOCAL";
3708
- const cr = nn;
3709
- new oe(3e4, 6e4);
3729
+ rn.type = "LOCAL";
3730
+ const dr = rn;
3731
+ new ae(3e4, 6e4);
3710
3732
  /**
3711
3733
  * @license
3712
3734
  * Copyright 2021 Google LLC
@@ -3723,8 +3745,8 @@ new oe(3e4, 6e4);
3723
3745
  * See the License for the specific language governing permissions and
3724
3746
  * limitations under the License.
3725
3747
  */
3726
- function lr(n, e) {
3727
- return e ? N(e) : (u(
3748
+ function hr(n, e) {
3749
+ return e ? O(e) : (u(
3728
3750
  n._popupRedirectResolver,
3729
3751
  n,
3730
3752
  "argument-error"
@@ -3747,7 +3769,7 @@ function lr(n, e) {
3747
3769
  * See the License for the specific language governing permissions and
3748
3770
  * limitations under the License.
3749
3771
  */
3750
- class qe extends zt {
3772
+ class qe extends qt {
3751
3773
  constructor(e) {
3752
3774
  super(
3753
3775
  "custom",
@@ -3756,13 +3778,13 @@ class qe extends zt {
3756
3778
  ), this.params = e;
3757
3779
  }
3758
3780
  _getIdTokenResponse(e) {
3759
- return J(e, this._buildIdpRequest());
3781
+ return Y(e, this._buildIdpRequest());
3760
3782
  }
3761
3783
  _linkToIdToken(e, t) {
3762
- return J(e, this._buildIdpRequest(t));
3784
+ return Y(e, this._buildIdpRequest(t));
3763
3785
  }
3764
3786
  _getReauthenticationResolver(e) {
3765
- return J(e, this._buildIdpRequest());
3787
+ return Y(e, this._buildIdpRequest());
3766
3788
  }
3767
3789
  _buildIdpRequest(e) {
3768
3790
  const t = {
@@ -3777,26 +3799,26 @@ class qe extends zt {
3777
3799
  return e && (t.idToken = e), t;
3778
3800
  }
3779
3801
  }
3780
- function ur(n) {
3781
- return ji(n.auth, new qe(n), n.bypassAuthState);
3802
+ function fr(n) {
3803
+ return Gi(n.auth, new qe(n), n.bypassAuthState);
3782
3804
  }
3783
- function dr(n) {
3805
+ function pr(n) {
3784
3806
  const { auth: e, user: t } = n;
3785
3807
  return u(
3786
3808
  t,
3787
3809
  e,
3788
3810
  "internal-error"
3789
3811
  /* AuthErrorCode.INTERNAL_ERROR */
3790
- ), Hi(t, new qe(n), n.bypassAuthState);
3812
+ ), Bi(t, new qe(n), n.bypassAuthState);
3791
3813
  }
3792
- async function hr(n) {
3814
+ async function mr(n) {
3793
3815
  const { auth: e, user: t } = n;
3794
3816
  return u(
3795
3817
  t,
3796
3818
  e,
3797
3819
  "internal-error"
3798
3820
  /* AuthErrorCode.INTERNAL_ERROR */
3799
- ), $i(t, new qe(n), n.bypassAuthState);
3821
+ ), ji(t, new qe(n), n.bypassAuthState);
3800
3822
  }
3801
3823
  /**
3802
3824
  * @license
@@ -3814,7 +3836,7 @@ async function hr(n) {
3814
3836
  * See the License for the specific language governing permissions and
3815
3837
  * limitations under the License.
3816
3838
  */
3817
- class rn {
3839
+ class sn {
3818
3840
  constructor(e, t, i, r, s = !1) {
3819
3841
  this.auth = e, this.resolver = i, this.user = r, this.bypassAuthState = s, this.pendingPromise = null, this.eventManager = null, this.filter = Array.isArray(t) ? t : [t];
3820
3842
  }
@@ -3856,15 +3878,15 @@ class rn {
3856
3878
  switch (e) {
3857
3879
  case "signInViaPopup":
3858
3880
  case "signInViaRedirect":
3859
- return ur;
3881
+ return fr;
3860
3882
  case "linkViaPopup":
3861
3883
  case "linkViaRedirect":
3862
- return hr;
3884
+ return mr;
3863
3885
  case "reauthViaPopup":
3864
3886
  case "reauthViaRedirect":
3865
- return dr;
3887
+ return pr;
3866
3888
  default:
3867
- O(
3889
+ L(
3868
3890
  this.auth,
3869
3891
  "internal-error"
3870
3892
  /* AuthErrorCode.INTERNAL_ERROR */
@@ -3872,10 +3894,10 @@ class rn {
3872
3894
  }
3873
3895
  }
3874
3896
  resolve(e) {
3875
- L(this.pendingPromise, "Pending promise was never set"), this.pendingPromise.resolve(e), this.unregisterAndCleanUp();
3897
+ M(this.pendingPromise, "Pending promise was never set"), this.pendingPromise.resolve(e), this.unregisterAndCleanUp();
3876
3898
  }
3877
3899
  reject(e) {
3878
- L(this.pendingPromise, "Pending promise was never set"), this.pendingPromise.reject(e), this.unregisterAndCleanUp();
3900
+ M(this.pendingPromise, "Pending promise was never set"), this.pendingPromise.reject(e), this.unregisterAndCleanUp();
3879
3901
  }
3880
3902
  unregisterAndCleanUp() {
3881
3903
  this.eventManager && this.eventManager.unregisterConsumer(this), this.pendingPromise = null, this.cleanUp();
@@ -3897,8 +3919,8 @@ class rn {
3897
3919
  * See the License for the specific language governing permissions and
3898
3920
  * limitations under the License.
3899
3921
  */
3900
- const fr = new oe(2e3, 1e4);
3901
- class z extends rn {
3922
+ const gr = new ae(2e3, 1e4);
3923
+ class z extends sn {
3902
3924
  constructor(e, t, i, r, s) {
3903
3925
  super(e, t, r, s), this.provider = i, this.authWindow = null, this.pollId = null, z.currentPopupAction && z.currentPopupAction.cancel(), z.currentPopupAction = this;
3904
3926
  }
@@ -3912,7 +3934,7 @@ class z extends rn {
3912
3934
  ), e;
3913
3935
  }
3914
3936
  async onExecution() {
3915
- L(this.filter.length === 1, "Popup operations only handle one event");
3937
+ M(this.filter.length === 1, "Popup operations only handle one event");
3916
3938
  const e = ze();
3917
3939
  this.authWindow = await this.resolver._openPopup(
3918
3940
  this.auth,
@@ -3923,7 +3945,7 @@ class z extends rn {
3923
3945
  ), this.authWindow.associatedEvent = e, this.resolver._originValidation(this.auth).catch((t) => {
3924
3946
  this.reject(t);
3925
3947
  }), this.resolver._isIframeWebStorageSupported(this.auth, (t) => {
3926
- t || this.reject(b(
3948
+ t || this.reject(E(
3927
3949
  this.auth,
3928
3950
  "web-storage-unsupported"
3929
3951
  /* AuthErrorCode.WEB_STORAGE_UNSUPPORTED */
@@ -3935,7 +3957,7 @@ class z extends rn {
3935
3957
  return ((e = this.authWindow) === null || e === void 0 ? void 0 : e.associatedEvent) || null;
3936
3958
  }
3937
3959
  cancel() {
3938
- this.reject(b(
3960
+ this.reject(E(
3939
3961
  this.auth,
3940
3962
  "cancelled-popup-request"
3941
3963
  /* AuthErrorCode.EXPIRED_POPUP_REQUEST */
@@ -3950,7 +3972,7 @@ class z extends rn {
3950
3972
  if (!((i = (t = this.authWindow) === null || t === void 0 ? void 0 : t.window) === null || i === void 0) && i.closed) {
3951
3973
  this.pollId = window.setTimeout(
3952
3974
  () => {
3953
- this.pollId = null, this.reject(b(
3975
+ this.pollId = null, this.reject(E(
3954
3976
  this.auth,
3955
3977
  "popup-closed-by-user"
3956
3978
  /* AuthErrorCode.POPUP_CLOSED_BY_USER */
@@ -3961,7 +3983,7 @@ class z extends rn {
3961
3983
  );
3962
3984
  return;
3963
3985
  }
3964
- this.pollId = window.setTimeout(e, fr.get());
3986
+ this.pollId = window.setTimeout(e, gr.get());
3965
3987
  };
3966
3988
  e();
3967
3989
  }
@@ -3983,8 +4005,8 @@ z.currentPopupAction = null;
3983
4005
  * See the License for the specific language governing permissions and
3984
4006
  * limitations under the License.
3985
4007
  */
3986
- const pr = "pendingRedirect", he = /* @__PURE__ */ new Map();
3987
- class mr extends rn {
4008
+ const _r = "pendingRedirect", fe = /* @__PURE__ */ new Map();
4009
+ class vr extends sn {
3988
4010
  constructor(e, t, i = !1) {
3989
4011
  super(e, [
3990
4012
  "signInViaRedirect",
@@ -3999,17 +4021,17 @@ class mr extends rn {
3999
4021
  * just return it.
4000
4022
  */
4001
4023
  async execute() {
4002
- let e = he.get(this.auth._key());
4024
+ let e = fe.get(this.auth._key());
4003
4025
  if (!e) {
4004
4026
  try {
4005
- const i = await gr(this.resolver, this.auth) ? await super.execute() : null;
4027
+ const i = await Ir(this.resolver, this.auth) ? await super.execute() : null;
4006
4028
  e = () => Promise.resolve(i);
4007
4029
  } catch (t) {
4008
4030
  e = () => Promise.reject(t);
4009
4031
  }
4010
- he.set(this.auth._key(), e);
4032
+ fe.set(this.auth._key(), e);
4011
4033
  }
4012
- return this.bypassAuthState || he.set(this.auth._key(), () => Promise.resolve(null)), e();
4034
+ return this.bypassAuthState || fe.set(this.auth._key(), () => Promise.resolve(null)), e();
4013
4035
  }
4014
4036
  async onAuthEvent(e) {
4015
4037
  if (e.type === "signInViaRedirect")
@@ -4030,26 +4052,26 @@ class mr extends rn {
4030
4052
  cleanUp() {
4031
4053
  }
4032
4054
  }
4033
- async function gr(n, e) {
4034
- const t = Ir(e), i = vr(n);
4055
+ async function Ir(n, e) {
4056
+ const t = Tr(e), i = wr(n);
4035
4057
  if (!await i._isAvailable())
4036
4058
  return !1;
4037
4059
  const r = await i._get(t) === "true";
4038
4060
  return await i._remove(t), r;
4039
4061
  }
4040
- function _r(n, e) {
4041
- he.set(n._key(), e);
4062
+ function yr(n, e) {
4063
+ fe.set(n._key(), e);
4042
4064
  }
4043
- function vr(n) {
4044
- return N(n._redirectPersistence);
4065
+ function wr(n) {
4066
+ return O(n._redirectPersistence);
4045
4067
  }
4046
- function Ir(n) {
4047
- return de(pr, n.config.apiKey, n.name);
4068
+ function Tr(n) {
4069
+ return he(_r, n.config.apiKey, n.name);
4048
4070
  }
4049
- async function yr(n, e, t = !1) {
4050
- if (A(n.app))
4051
- return Promise.reject($(n));
4052
- const i = be(n), r = lr(i, e), o = await new mr(i, r, t).execute();
4071
+ async function kr(n, e, t = !1) {
4072
+ if (P(n.app))
4073
+ return Promise.reject(H(n));
4074
+ const i = be(n), r = hr(i, e), o = await new vr(i, r, t).execute();
4053
4075
  return o && !t && (delete o.user._redirectEventId, await i._persistUserIfCurrent(o.user), await i._setRedirectUser(null, e)), o;
4054
4076
  }
4055
4077
  /**
@@ -4068,8 +4090,8 @@ async function yr(n, e, t = !1) {
4068
4090
  * See the License for the specific language governing permissions and
4069
4091
  * limitations under the License.
4070
4092
  */
4071
- const wr = 10 * 60 * 1e3;
4072
- class Tr {
4093
+ const br = 10 * 60 * 1e3;
4094
+ class Er {
4073
4095
  constructor(e) {
4074
4096
  this.auth = e, this.cachedEventUids = /* @__PURE__ */ new Set(), this.consumers = /* @__PURE__ */ new Set(), this.queuedRedirectEvent = null, this.hasHandledPotentialRedirect = !1, this.lastProcessedEventTime = Date.now();
4075
4097
  }
@@ -4085,13 +4107,13 @@ class Tr {
4085
4107
  let t = !1;
4086
4108
  return this.consumers.forEach((i) => {
4087
4109
  this.isEventForConsumer(e, i) && (t = !0, this.sendToConsumer(e, i), this.saveEventToCache(e));
4088
- }), this.hasHandledPotentialRedirect || !kr(e) || (this.hasHandledPotentialRedirect = !0, t || (this.queuedRedirectEvent = e, t = !0)), t;
4110
+ }), this.hasHandledPotentialRedirect || !Sr(e) || (this.hasHandledPotentialRedirect = !0, t || (this.queuedRedirectEvent = e, t = !0)), t;
4089
4111
  }
4090
4112
  sendToConsumer(e, t) {
4091
4113
  var i;
4092
- if (e.error && !sn(e)) {
4114
+ if (e.error && !on(e)) {
4093
4115
  const r = ((i = e.error.code) === null || i === void 0 ? void 0 : i.split("auth/")[1]) || "internal-error";
4094
- t.onError(b(this.auth, r));
4116
+ t.onError(E(this.auth, r));
4095
4117
  } else
4096
4118
  t.onAuthEvent(e);
4097
4119
  }
@@ -4100,7 +4122,7 @@ class Tr {
4100
4122
  return t.filter.includes(e.type) && i;
4101
4123
  }
4102
4124
  hasEventBeenHandled(e) {
4103
- return Date.now() - this.lastProcessedEventTime >= wr && this.cachedEventUids.clear(), this.cachedEventUids.has(ht(e));
4125
+ return Date.now() - this.lastProcessedEventTime >= br && this.cachedEventUids.clear(), this.cachedEventUids.has(ht(e));
4104
4126
  }
4105
4127
  saveEventToCache(e) {
4106
4128
  this.cachedEventUids.add(ht(e)), this.lastProcessedEventTime = Date.now();
@@ -4109,17 +4131,17 @@ class Tr {
4109
4131
  function ht(n) {
4110
4132
  return [n.type, n.eventId, n.sessionId, n.tenantId].filter((e) => e).join("-");
4111
4133
  }
4112
- function sn({ type: n, error: e }) {
4134
+ function on({ type: n, error: e }) {
4113
4135
  return n === "unknown" && (e == null ? void 0 : e.code) === "auth/no-auth-event";
4114
4136
  }
4115
- function kr(n) {
4137
+ function Sr(n) {
4116
4138
  switch (n.type) {
4117
4139
  case "signInViaRedirect":
4118
4140
  case "linkViaRedirect":
4119
4141
  case "reauthViaRedirect":
4120
4142
  return !0;
4121
4143
  case "unknown":
4122
- return sn(n);
4144
+ return on(n);
4123
4145
  default:
4124
4146
  return !1;
4125
4147
  }
@@ -4140,8 +4162,8 @@ function kr(n) {
4140
4162
  * See the License for the specific language governing permissions and
4141
4163
  * limitations under the License.
4142
4164
  */
4143
- async function br(n, e = {}) {
4144
- return X(n, "GET", "/v1/projects", e);
4165
+ async function Rr(n, e = {}) {
4166
+ return Z(n, "GET", "/v1/projects", e);
4145
4167
  }
4146
4168
  /**
4147
4169
  * @license
@@ -4159,32 +4181,32 @@ async function br(n, e = {}) {
4159
4181
  * See the License for the specific language governing permissions and
4160
4182
  * limitations under the License.
4161
4183
  */
4162
- const Er = /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/, Sr = /^https?/;
4163
- async function Rr(n) {
4184
+ const Ar = /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/, Pr = /^https?/;
4185
+ async function Cr(n) {
4164
4186
  if (n.config.emulator)
4165
4187
  return;
4166
- const { authorizedDomains: e } = await br(n);
4188
+ const { authorizedDomains: e } = await Rr(n);
4167
4189
  for (const t of e)
4168
4190
  try {
4169
- if (Ar(t))
4191
+ if (Nr(t))
4170
4192
  return;
4171
4193
  } catch {
4172
4194
  }
4173
- O(
4195
+ L(
4174
4196
  n,
4175
4197
  "unauthorized-domain"
4176
4198
  /* AuthErrorCode.INVALID_ORIGIN */
4177
4199
  );
4178
4200
  }
4179
- function Ar(n) {
4201
+ function Nr(n) {
4180
4202
  const e = Me(), { protocol: t, hostname: i } = new URL(e);
4181
4203
  if (n.startsWith("chrome-extension://")) {
4182
4204
  const o = new URL(n);
4183
4205
  return o.hostname === "" && i === "" ? t === "chrome-extension:" && n.replace("chrome-extension://", "") === e.replace("chrome-extension://", "") : t === "chrome-extension:" && o.hostname === i;
4184
4206
  }
4185
- if (!Sr.test(t))
4207
+ if (!Pr.test(t))
4186
4208
  return !1;
4187
- if (Er.test(n))
4209
+ if (Ar.test(n))
4188
4210
  return i === n;
4189
4211
  const r = n.replace(/\./g, "\\.");
4190
4212
  return new RegExp("^(.+\\." + r + "|" + r + ")$", "i").test(i);
@@ -4205,9 +4227,9 @@ function Ar(n) {
4205
4227
  * See the License for the specific language governing permissions and
4206
4228
  * limitations under the License.
4207
4229
  */
4208
- const Pr = new oe(3e4, 6e4);
4230
+ const Or = new ae(3e4, 6e4);
4209
4231
  function ft() {
4210
- const n = E().___jsl;
4232
+ const n = S().___jsl;
4211
4233
  if (n != null && n.H) {
4212
4234
  for (const e of Object.keys(n.H))
4213
4235
  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)
@@ -4215,7 +4237,7 @@ function ft() {
4215
4237
  n.CP[t] = null;
4216
4238
  }
4217
4239
  }
4218
- function Cr(n) {
4240
+ function Lr(n) {
4219
4241
  return new Promise((e, t) => {
4220
4242
  var i, r, s;
4221
4243
  function o() {
@@ -4224,36 +4246,36 @@ function Cr(n) {
4224
4246
  e(gapi.iframes.getContext());
4225
4247
  },
4226
4248
  ontimeout: () => {
4227
- ft(), t(b(
4249
+ ft(), t(E(
4228
4250
  n,
4229
4251
  "network-request-failed"
4230
4252
  /* AuthErrorCode.NETWORK_REQUEST_FAILED */
4231
4253
  ));
4232
4254
  },
4233
- timeout: Pr.get()
4255
+ timeout: Or.get()
4234
4256
  });
4235
4257
  }
4236
- if (!((r = (i = E().gapi) === null || i === void 0 ? void 0 : i.iframes) === null || r === void 0) && r.Iframe)
4258
+ if (!((r = (i = S().gapi) === null || i === void 0 ? void 0 : i.iframes) === null || r === void 0) && r.Iframe)
4237
4259
  e(gapi.iframes.getContext());
4238
- else if (!((s = E().gapi) === null || s === void 0) && s.load)
4260
+ else if (!((s = S().gapi) === null || s === void 0) && s.load)
4239
4261
  o();
4240
4262
  else {
4241
- const c = Li("iframefcb");
4242
- return E()[c] = () => {
4243
- gapi.load ? o() : t(b(
4263
+ const c = Di("iframefcb");
4264
+ return S()[c] = () => {
4265
+ gapi.load ? o() : t(E(
4244
4266
  n,
4245
4267
  "network-request-failed"
4246
4268
  /* AuthErrorCode.NETWORK_REQUEST_FAILED */
4247
4269
  ));
4248
- }, Ni(`${Oi()}?onload=${c}`).catch((a) => t(a));
4270
+ }, Mi(`${Ui()}?onload=${c}`).catch((a) => t(a));
4249
4271
  }
4250
4272
  }).catch((e) => {
4251
- throw fe = null, e;
4273
+ throw pe = null, e;
4252
4274
  });
4253
4275
  }
4254
- let fe = null;
4255
- function Nr(n) {
4256
- return fe = fe || Cr(n), fe;
4276
+ let pe = null;
4277
+ function Mr(n) {
4278
+ return pe = pe || Lr(n), pe;
4257
4279
  }
4258
4280
  /**
4259
4281
  * @license
@@ -4271,7 +4293,7 @@ function Nr(n) {
4271
4293
  * See the License for the specific language governing permissions and
4272
4294
  * limitations under the License.
4273
4295
  */
4274
- const Or = new oe(5e3, 15e3), Lr = "__/auth/iframe", Mr = "emulator/auth/iframe", Ur = {
4296
+ const Ur = new ae(5e3, 15e3), Dr = "__/auth/iframe", xr = "emulator/auth/iframe", Fr = {
4275
4297
  style: {
4276
4298
  position: "absolute",
4277
4299
  top: "-100px",
@@ -4280,13 +4302,13 @@ const Or = new oe(5e3, 15e3), Lr = "__/auth/iframe", Mr = "emulator/auth/iframe"
4280
4302
  },
4281
4303
  "aria-hidden": "true",
4282
4304
  tabindex: "-1"
4283
- }, Dr = /* @__PURE__ */ new Map([
4305
+ }, Vr = /* @__PURE__ */ new Map([
4284
4306
  ["identitytoolkit.googleapis.com", "p"],
4285
4307
  ["staging-identitytoolkit.sandbox.googleapis.com", "s"],
4286
4308
  ["test-identitytoolkit.sandbox.googleapis.com", "t"]
4287
4309
  // test
4288
4310
  ]);
4289
- function xr(n) {
4311
+ function $r(n) {
4290
4312
  const e = n.config;
4291
4313
  u(
4292
4314
  e.authDomain,
@@ -4294,17 +4316,17 @@ function xr(n) {
4294
4316
  "auth-domain-config-required"
4295
4317
  /* AuthErrorCode.MISSING_AUTH_DOMAIN */
4296
4318
  );
4297
- const t = e.emulator ? je(e, Mr) : `https://${n.config.authDomain}/${Lr}`, i = {
4319
+ const t = e.emulator ? We(e, xr) : `https://${n.config.authDomain}/${Dr}`, i = {
4298
4320
  apiKey: e.apiKey,
4299
4321
  appName: n.name,
4300
- v: re
4301
- }, r = Dr.get(n.config.apiHost);
4322
+ v: se
4323
+ }, r = Vr.get(n.config.apiHost);
4302
4324
  r && (i.eid = r);
4303
4325
  const s = n._getFrameworks();
4304
- return s.length && (i.fw = s.join(",")), `${t}?${se(i).slice(1)}`;
4326
+ return s.length && (i.fw = s.join(",")), `${t}?${oe(i).slice(1)}`;
4305
4327
  }
4306
- async function Fr(n) {
4307
- const e = await Nr(n), t = E().gapi;
4328
+ async function Hr(n) {
4329
+ const e = await Mr(n), t = S().gapi;
4308
4330
  return u(
4309
4331
  t,
4310
4332
  n,
@@ -4312,24 +4334,24 @@ async function Fr(n) {
4312
4334
  /* AuthErrorCode.INTERNAL_ERROR */
4313
4335
  ), e.open({
4314
4336
  where: document.body,
4315
- url: xr(n),
4337
+ url: $r(n),
4316
4338
  messageHandlersFilter: t.iframes.CROSS_ORIGIN_IFRAMES_FILTER,
4317
- attributes: Ur,
4339
+ attributes: Fr,
4318
4340
  dontclear: !0
4319
4341
  }, (i) => new Promise(async (r, s) => {
4320
4342
  await i.restyle({
4321
4343
  // Prevent iframe from closing on mouse out.
4322
4344
  setHideOnLeave: !1
4323
4345
  });
4324
- const o = b(
4346
+ const o = E(
4325
4347
  n,
4326
4348
  "network-request-failed"
4327
4349
  /* AuthErrorCode.NETWORK_REQUEST_FAILED */
4328
- ), c = E().setTimeout(() => {
4350
+ ), c = S().setTimeout(() => {
4329
4351
  s(o);
4330
- }, Or.get());
4352
+ }, Ur.get());
4331
4353
  function a() {
4332
- E().clearTimeout(c), r(i);
4354
+ S().clearTimeout(c), r(i);
4333
4355
  }
4334
4356
  i.ping(a).then(a, () => {
4335
4357
  s(o);
@@ -4352,12 +4374,12 @@ async function Fr(n) {
4352
4374
  * See the License for the specific language governing permissions and
4353
4375
  * limitations under the License.
4354
4376
  */
4355
- const Vr = {
4377
+ const Wr = {
4356
4378
  location: "yes",
4357
4379
  resizable: "yes",
4358
4380
  statusbar: "yes",
4359
4381
  toolbar: "no"
4360
- }, $r = 500, Hr = 600, jr = "_blank", Wr = "http://localhost";
4382
+ }, jr = 500, Br = 600, Gr = "_blank", zr = "http://localhost";
4361
4383
  class pt {
4362
4384
  constructor(e) {
4363
4385
  this.window = e, this.associatedEvent = null;
@@ -4370,33 +4392,33 @@ class pt {
4370
4392
  }
4371
4393
  }
4372
4394
  }
4373
- function Br(n, e, t, i = $r, r = Hr) {
4395
+ function qr(n, e, t, i = jr, r = Br) {
4374
4396
  const s = Math.max((window.screen.availHeight - r) / 2, 0).toString(), o = Math.max((window.screen.availWidth - i) / 2, 0).toString();
4375
4397
  let c = "";
4376
- const a = Object.assign(Object.assign({}, Vr), {
4398
+ const a = Object.assign(Object.assign({}, Wr), {
4377
4399
  width: i.toString(),
4378
4400
  height: r.toString(),
4379
4401
  top: s,
4380
4402
  left: o
4381
- }), l = w().toLowerCase();
4382
- t && (c = Ft(l) ? jr : t), xt(l) && (e = e || Wr, a.scrollbars = "yes");
4383
- const d = Object.entries(a).reduce((h, [y, _]) => `${h}${y}=${_},`, "");
4384
- if (Ti(l) && c !== "_self")
4385
- return Gr(e || "", c), new pt(null);
4386
- const p = window.open(e || "", c, d);
4403
+ }), l = k().toLowerCase();
4404
+ t && (c = Vt(l) ? Gr : t), Ft(l) && (e = e || zr, a.scrollbars = "yes");
4405
+ const h = Object.entries(a).reduce((v, [y, f]) => `${v}${y}=${f},`, "");
4406
+ if (Ei(l) && c !== "_self")
4407
+ return Kr(e || "", c), new pt(null);
4408
+ const m = window.open(e || "", c, h);
4387
4409
  u(
4388
- p,
4410
+ m,
4389
4411
  n,
4390
4412
  "popup-blocked"
4391
4413
  /* AuthErrorCode.POPUP_BLOCKED */
4392
4414
  );
4393
4415
  try {
4394
- p.focus();
4416
+ m.focus();
4395
4417
  } catch {
4396
4418
  }
4397
- return new pt(p);
4419
+ return new pt(m);
4398
4420
  }
4399
- function Gr(n, e) {
4421
+ function Kr(n, e) {
4400
4422
  const t = document.createElement("a");
4401
4423
  t.href = n, t.target = e;
4402
4424
  const i = document.createEvent("MouseEvent");
@@ -4418,7 +4440,7 @@ function Gr(n, e) {
4418
4440
  * See the License for the specific language governing permissions and
4419
4441
  * limitations under the License.
4420
4442
  */
4421
- const zr = "__/auth/handler", qr = "emulator/auth/handler", Kr = encodeURIComponent("fac");
4443
+ const Jr = "__/auth/handler", Yr = "emulator/auth/handler", Xr = encodeURIComponent("fac");
4422
4444
  async function mt(n, e, t, i, r, s) {
4423
4445
  u(
4424
4446
  n.config.authDomain,
@@ -4436,27 +4458,27 @@ async function mt(n, e, t, i, r, s) {
4436
4458
  appName: n.name,
4437
4459
  authType: t,
4438
4460
  redirectUrl: i,
4439
- v: re,
4461
+ v: se,
4440
4462
  eventId: r
4441
4463
  };
4442
- if (e instanceof qt) {
4443
- e.setDefaultLanguage(n.languageCode), o.providerId = e.providerId || "", On(e.getCustomParameters()) || (o.customParameters = JSON.stringify(e.getCustomParameters()));
4444
- for (const [d, p] of Object.entries({}))
4445
- o[d] = p;
4464
+ if (e instanceof Kt) {
4465
+ e.setDefaultLanguage(n.languageCode), o.providerId = e.providerId || "", Un(e.getCustomParameters()) || (o.customParameters = JSON.stringify(e.getCustomParameters()));
4466
+ for (const [h, m] of Object.entries({}))
4467
+ o[h] = m;
4446
4468
  }
4447
- if (e instanceof ae) {
4448
- const d = e.getScopes().filter((p) => p !== "");
4449
- d.length > 0 && (o.scopes = d.join(","));
4469
+ if (e instanceof ce) {
4470
+ const h = e.getScopes().filter((m) => m !== "");
4471
+ h.length > 0 && (o.scopes = h.join(","));
4450
4472
  }
4451
4473
  n.tenantId && (o.tid = n.tenantId);
4452
4474
  const c = o;
4453
- for (const d of Object.keys(c))
4454
- c[d] === void 0 && delete c[d];
4455
- const a = await n._getAppCheckToken(), l = a ? `#${Kr}=${encodeURIComponent(a)}` : "";
4456
- return `${Jr(n)}?${se(c).slice(1)}${l}`;
4475
+ for (const h of Object.keys(c))
4476
+ c[h] === void 0 && delete c[h];
4477
+ const a = await n._getAppCheckToken(), l = a ? `#${Xr}=${encodeURIComponent(a)}` : "";
4478
+ return `${Qr(n)}?${oe(c).slice(1)}${l}`;
4457
4479
  }
4458
- function Jr({ config: n }) {
4459
- return n.emulator ? je(n, qr) : `https://${n.authDomain}/${zr}`;
4480
+ function Qr({ config: n }) {
4481
+ return n.emulator ? We(n, Yr) : `https://${n.authDomain}/${Jr}`;
4460
4482
  }
4461
4483
  /**
4462
4484
  * @license
@@ -4475,29 +4497,29 @@ function Jr({ config: n }) {
4475
4497
  * limitations under the License.
4476
4498
  */
4477
4499
  const Ne = "webStorageSupport";
4478
- class Yr {
4500
+ class Zr {
4479
4501
  constructor() {
4480
- this.eventManagers = {}, this.iframes = {}, this.originValidationPromises = {}, this._redirectPersistence = Qt, this._completeRedirectFn = yr, this._overrideRedirectResult = _r;
4502
+ this.eventManagers = {}, this.iframes = {}, this.originValidationPromises = {}, this._redirectPersistence = Zt, this._completeRedirectFn = kr, this._overrideRedirectResult = yr;
4481
4503
  }
4482
4504
  // Wrapping in async even though we don't await anywhere in order
4483
4505
  // to make sure errors are raised as promise rejections
4484
4506
  async _openPopup(e, t, i, r) {
4485
4507
  var s;
4486
- L((s = this.eventManagers[e._key()]) === null || s === void 0 ? void 0 : s.manager, "_initialize() not called before _openPopup()");
4508
+ M((s = this.eventManagers[e._key()]) === null || s === void 0 ? void 0 : s.manager, "_initialize() not called before _openPopup()");
4487
4509
  const o = await mt(e, t, i, Me(), r);
4488
- return Br(e, o, ze());
4510
+ return qr(e, o, ze());
4489
4511
  }
4490
4512
  async _openRedirect(e, t, i, r) {
4491
4513
  await this._originValidation(e);
4492
4514
  const s = await mt(e, t, i, Me(), r);
4493
- return Zi(s), new Promise(() => {
4515
+ return nr(s), new Promise(() => {
4494
4516
  });
4495
4517
  }
4496
4518
  _initialize(e) {
4497
4519
  const t = e._key();
4498
4520
  if (this.eventManagers[t]) {
4499
4521
  const { manager: r, promise: s } = this.eventManagers[t];
4500
- return r ? Promise.resolve(r) : (L(s, "If manager is not set, promise should be"), s);
4522
+ return r ? Promise.resolve(r) : (M(s, "If manager is not set, promise should be"), s);
4501
4523
  }
4502
4524
  const i = this.initAndGetManager(e);
4503
4525
  return this.eventManagers[t] = { promise: i }, i.catch(() => {
@@ -4505,7 +4527,7 @@ class Yr {
4505
4527
  }), i;
4506
4528
  }
4507
4529
  async initAndGetManager(e) {
4508
- const t = await Fr(e), i = new Tr(e);
4530
+ const t = await Hr(e), i = new Er(e);
4509
4531
  return t.register("authEvent", (r) => (u(
4510
4532
  r == null ? void 0 : r.authEvent,
4511
4533
  e,
@@ -4520,7 +4542,7 @@ class Yr {
4520
4542
  this.iframes[e._key()].send(Ne, { type: Ne }, (r) => {
4521
4543
  var s;
4522
4544
  const o = (s = r == null ? void 0 : r[0]) === null || s === void 0 ? void 0 : s[Ne];
4523
- o !== void 0 && t(!!o), O(
4545
+ o !== void 0 && t(!!o), L(
4524
4546
  e,
4525
4547
  "internal-error"
4526
4548
  /* AuthErrorCode.INTERNAL_ERROR */
@@ -4529,13 +4551,13 @@ class Yr {
4529
4551
  }
4530
4552
  _originValidation(e) {
4531
4553
  const t = e._key();
4532
- return this.originValidationPromises[t] || (this.originValidationPromises[t] = Rr(e)), this.originValidationPromises[t];
4554
+ return this.originValidationPromises[t] || (this.originValidationPromises[t] = Cr(e)), this.originValidationPromises[t];
4533
4555
  }
4534
4556
  get _shouldInitProactively() {
4535
- return Wt() || Be() || ke();
4557
+ return Bt() || Be() || ke();
4536
4558
  }
4537
4559
  }
4538
- const Xr = Yr;
4560
+ const es = Zr;
4539
4561
  var gt = "@firebase/auth", _t = "1.7.5";
4540
4562
  /**
4541
4563
  * @license
@@ -4553,7 +4575,7 @@ var gt = "@firebase/auth", _t = "1.7.5";
4553
4575
  * See the License for the specific language governing permissions and
4554
4576
  * limitations under the License.
4555
4577
  */
4556
- class Qr {
4578
+ class ts {
4557
4579
  constructor(e) {
4558
4580
  this.auth = e, this.internalListeners = /* @__PURE__ */ new Map();
4559
4581
  }
@@ -4604,7 +4626,7 @@ class Qr {
4604
4626
  * See the License for the specific language governing permissions and
4605
4627
  * limitations under the License.
4606
4628
  */
4607
- function Zr(n) {
4629
+ function ns(n) {
4608
4630
  switch (n) {
4609
4631
  case "Node":
4610
4632
  return "node";
@@ -4620,7 +4642,7 @@ function Zr(n) {
4620
4642
  return;
4621
4643
  }
4622
4644
  }
4623
- function es(n) {
4645
+ function is(n) {
4624
4646
  Ze(new et(
4625
4647
  "auth",
4626
4648
  (e, { options: t }) => {
@@ -4633,9 +4655,9 @@ function es(n) {
4633
4655
  apiHost: "identitytoolkit.googleapis.com",
4634
4656
  tokenApiHost: "securetoken.googleapis.com",
4635
4657
  apiScheme: "https",
4636
- sdkClientVersion: Bt(n)
4637
- }, l = new Pi(i, r, s, a);
4638
- return Ui(l, t), l;
4658
+ sdkClientVersion: Gt(n)
4659
+ }, l = new Oi(i, r, s, a);
4660
+ return Fi(l, t), l;
4639
4661
  },
4640
4662
  "PUBLIC"
4641
4663
  /* ComponentType.PUBLIC */
@@ -4654,14 +4676,14 @@ function es(n) {
4654
4676
  "auth"
4655
4677
  /* _ComponentName.AUTH */
4656
4678
  ).getImmediate());
4657
- return ((i) => new Qr(i))(t);
4679
+ return ((i) => new ts(i))(t);
4658
4680
  },
4659
4681
  "PRIVATE"
4660
4682
  /* ComponentType.PRIVATE */
4661
4683
  ).setInstantiationMode(
4662
4684
  "EXPLICIT"
4663
4685
  /* InstantiationMode.EXPLICIT */
4664
- )), Le(gt, _t, Zr(n)), Le(gt, _t, "esm2017");
4686
+ )), Le(gt, _t, ns(n)), Le(gt, _t, "esm2017");
4665
4687
  }
4666
4688
  /**
4667
4689
  * @license
@@ -4679,11 +4701,11 @@ function es(n) {
4679
4701
  * See the License for the specific language governing permissions and
4680
4702
  * limitations under the License.
4681
4703
  */
4682
- const ts = 5 * 60, ns = kt("authIdTokenMaxAge") || ts;
4704
+ const rs = 5 * 60, ss = bt("authIdTokenMaxAge") || rs;
4683
4705
  let vt = null;
4684
- const is = (n) => async (e) => {
4706
+ const os = (n) => async (e) => {
4685
4707
  const t = e && await e.getIdTokenResult(), i = t && ((/* @__PURE__ */ new Date()).getTime() - Date.parse(t.issuedAtTime)) / 1e3;
4686
- if (i && i > ns)
4708
+ if (i && i > ss)
4687
4709
  return;
4688
4710
  const r = t == null ? void 0 : t.token;
4689
4711
  vt !== r && (vt = r, await fetch(n, {
@@ -4693,104 +4715,131 @@ const is = (n) => async (e) => {
4693
4715
  } : {}
4694
4716
  }));
4695
4717
  };
4696
- function rs(n = An()) {
4697
- const e = bt(n, "auth");
4718
+ function as(n = Nn()) {
4719
+ const e = Et(n, "auth");
4698
4720
  if (e.isInitialized())
4699
4721
  return e.getImmediate();
4700
- const t = Mi(n, {
4701
- popupRedirectResolver: Xr,
4722
+ const t = xi(n, {
4723
+ popupRedirectResolver: es,
4702
4724
  persistence: [
4703
- cr,
4704
- Yi,
4705
- Qt
4725
+ dr,
4726
+ Zi,
4727
+ Zt
4706
4728
  ]
4707
- }), i = kt("authTokenSyncURL");
4729
+ }), i = bt("authTokenSyncURL");
4708
4730
  if (i && typeof isSecureContext == "boolean" && isSecureContext) {
4709
4731
  const s = new URL(i, location.origin);
4710
4732
  if (location.origin === s.origin) {
4711
- const o = is(s.toString());
4712
- zi(t, o, () => o(t.currentUser)), Gi(t, (c) => o(c));
4733
+ const o = os(s.toString());
4734
+ Ji(t, o, () => o(t.currentUser)), Ki(t, (c) => o(c));
4713
4735
  }
4714
4736
  }
4715
- const r = Rn("auth");
4716
- return r && Di(t, `http://${r}`), t;
4737
+ const r = Cn("auth");
4738
+ return r && Vi(t, `http://${r}`), t;
4717
4739
  }
4718
- function ss() {
4740
+ function cs() {
4719
4741
  var n, e;
4720
4742
  return (e = (n = document.getElementsByTagName("head")) === null || n === void 0 ? void 0 : n[0]) !== null && e !== void 0 ? e : document;
4721
4743
  }
4722
- Ci({
4744
+ Li({
4723
4745
  loadJS(n) {
4724
4746
  return new Promise((e, t) => {
4725
4747
  const i = document.createElement("script");
4726
4748
  i.setAttribute("src", n), i.onload = e, i.onerror = (r) => {
4727
- const s = b(
4749
+ const s = E(
4728
4750
  "internal-error"
4729
4751
  /* AuthErrorCode.INTERNAL_ERROR */
4730
4752
  );
4731
4753
  s.customData = r, t(s);
4732
- }, i.type = "text/javascript", i.charset = "UTF-8", ss().appendChild(i);
4754
+ }, i.type = "text/javascript", i.charset = "UTF-8", cs().appendChild(i);
4733
4755
  });
4734
4756
  },
4735
4757
  gapiScript: "https://apis.google.com/js/api.js",
4736
4758
  recaptchaV2Script: "https://www.google.com/recaptcha/api.js",
4737
4759
  recaptchaEnterpriseScript: "https://www.google.com/recaptcha/enterprise.js?render="
4738
4760
  });
4739
- es(
4761
+ is(
4740
4762
  "Browser"
4741
4763
  /* ClientPlatform.BROWSER */
4742
4764
  );
4743
- var os = { 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" }, as = { 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/" };
4744
- const cs = {
4765
+ var ls = { 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" }, us = { 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/" };
4766
+ const ds = {
4745
4767
  key: 2,
4746
4768
  class: "h-full w-full"
4747
- }, ls = ["src"], Ss = /* @__PURE__ */ xe({
4769
+ }, hs = ["src"], Ns = /* @__PURE__ */ xe({
4748
4770
  __name: "App",
4749
4771
  setup(n) {
4750
- const e = ge(), t = pn(), i = mn(), r = gn(), s = _n(), o = wt(), c = ee(o.query.showHeader !== "false"), a = ee(!1), { currentBusiness: l } = ge(), d = ee(!1), p = ne(() => i.version), h = ne(() => {
4751
- const m = e.currentCountry.value || "MY", I = tt.getIdToken(), T = l.value._id;
4752
- return `${as.marketingV1Portal}/b/${T}/marketing/overview?showHeader=false&country=${m}&token=${I}`;
4772
+ const e = ge(), t = gn(), i = _n(), r = Tt(), s = In(), o = yn(), c = wt(), a = ne(c.query.showHeader !== "false"), l = ne(!1), { currentBusiness: h } = ge();
4773
+ q(
4774
+ [
4775
+ () => {
4776
+ var d;
4777
+ return (d = h.value) == null ? void 0 : d._id;
4778
+ },
4779
+ () => e.currentCountry.value,
4780
+ () => {
4781
+ var d;
4782
+ return (d = e.sessionUser.value) == null ? void 0 : d.id;
4783
+ }
4784
+ ],
4785
+ ([d]) => {
4786
+ r.reset(), d && r.read(d);
4787
+ },
4788
+ { immediate: !0, flush: "sync" }
4789
+ ), dn(() => r.reset()), q(
4790
+ () => {
4791
+ var d;
4792
+ return (d = h.value) == null ? void 0 : d._id;
4793
+ },
4794
+ (d) => {
4795
+ d && vn(d);
4796
+ },
4797
+ { immediate: !0 }
4798
+ );
4799
+ const m = ne(!1), v = X(() => i.version), y = X(() => {
4800
+ const d = e.currentCountry.value || "MY", g = tt.getIdToken(), b = h.value._id;
4801
+ return `${us.marketingV1Portal}/b/${b}/marketing/overview?showHeader=false&country=${d}&token=${g}`;
4753
4802
  });
4754
- async function y() {
4755
- if (Ln().length) {
4803
+ async function f() {
4804
+ if (Dn().length) {
4756
4805
  console.warn("CONNECT: initFirebase: Firebase already initialized");
4757
4806
  return;
4758
4807
  }
4759
- const m = Mn(os.firebase), I = await fn.getCustomToken(), T = rs();
4760
- await Bi(T, I), Un(m), console.log("initFirebase", m);
4808
+ const d = xn(ls.firebase), g = await mn.getCustomToken(), b = as();
4809
+ await qi(b, g), Fn(d), console.log("initFirebase", d);
4761
4810
  }
4762
- const _ = async () => {
4763
- d.value = !1, await dn(), console.log("forceRerender"), tt.setBusinessId(l.value._id), await i.readPremium(), !a.value && p.value === "v2" ? e.registerSidebarComponent(Vn) : e.hideSidebarToggle(!0), await y(), a.value = !0, d.value = !0;
4811
+ const w = async () => {
4812
+ m.value = !1, await fn(), console.log("forceRerender"), tt.setBusinessId(h.value._id), await i.readPremium(), !l.value && v.value === "v2" ? e.registerSidebarComponent(Wn) : e.hideSidebarToggle(!0), await f(), l.value = !0, m.value = !0;
4764
4813
  };
4765
- return un(() => {
4766
- if (Dn.Config.setCountry(e.currentCountry.value || "MY"), t.initProvider(r, s), !c.value) {
4767
- const m = document.getElementsByClassName("app-header")[0], I = document.getElementsByClassName("app-sidebar")[0], T = document.getElementsByClassName("app-container")[0], M = document.getElementsByTagName("main")[0];
4768
- m == null || m.classList.add("!hidden"), I == null || I.classList.add("!pt-0"), T == null || T.classList.add("!pt-0"), M == null || M.classList.add("!pt-0"), e.hideSidebarToggle(!0);
4814
+ return hn(() => {
4815
+ if (Vn.Config.setCountry(e.currentCountry.value || "MY"), t.initProvider(s, o), !a.value) {
4816
+ const d = document.getElementsByClassName("app-header")[0], g = document.getElementsByClassName("app-sidebar")[0], b = document.getElementsByClassName("app-container")[0], T = document.getElementsByTagName("main")[0];
4817
+ d == null || d.classList.add("!hidden"), g == null || g.classList.add("!pt-0"), b == null || b.classList.add("!pt-0"), T == null || T.classList.add("!pt-0"), e.hideSidebarToggle(!0);
4769
4818
  }
4770
- l.value != null && (console.log("App mounted, forceRerender"), _());
4771
- }), pe(
4819
+ h.value != null && (console.log("App mounted, forceRerender"), w());
4820
+ }), q(
4772
4821
  () => e.currentBusiness.value,
4773
- async (m, I) => {
4774
- console.log("Current business changed"), m != null && m._id != I._id && (console.log("forceRerender when business changes", m, I), _());
4822
+ async (d, g) => {
4823
+ console.log("Current business changed"), d != null && d._id != g._id && (console.log("forceRerender when business changes", d, g), w());
4775
4824
  }
4776
- ), (m, I) => (j(), me(It, null, [
4777
- g(d) && g(p) === "v2" ? (j(), Oe(g(hn), { key: 0 })) : Pe("", !0),
4778
- g(d) && g(p) === "v2" && g(c) ? (j(), Oe(ii, { key: 1 })) : Pe("", !0),
4779
- g(d) && g(p) !== "v2" ? (j(), me("div", cs, [
4780
- S(wn, {
4781
- json: { url: g(h) }
4825
+ ), (d, g) => (j(), me(It, null, [
4826
+ _(m) && _(v) === "v2" ? (j(), Oe(_(pn), { key: 0 })) : Pe("", !0),
4827
+ _(m) && _(v) === "v2" && _(a) ? (j(), Oe(oi, { key: 1 })) : Pe("", !0),
4828
+ _(m) && _(v) !== "v2" ? (j(), me("div", ds, [
4829
+ R(bn, {
4830
+ json: { url: _(y) }
4782
4831
  }, null, 8, ["json"]),
4783
- v("iframe", {
4832
+ I("iframe", {
4784
4833
  allow: "clipboard-read; clipboard-write",
4785
4834
  frameBorder: "0",
4786
4835
  height: "100%",
4787
4836
  width: "100%",
4788
- src: g(h)
4789
- }, null, 8, ls)
4837
+ src: _(y)
4838
+ }, null, 8, hs)
4790
4839
  ])) : Pe("", !0)
4791
4840
  ], 64));
4792
4841
  }
4793
4842
  });
4794
4843
  export {
4795
- Ss as default
4844
+ Ns as default
4796
4845
  };