@feedmepos/mf-payment 1.0.4-beta.2 → 1.0.5-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{PayoutAccount-CUcmLnpF.js → PayoutAccount-DoPGyjcC.js} +5 -5
- package/dist/{PayoutAccount-K-clfaW8.js → PayoutAccount-xeea4ogM.js} +3 -3
- package/dist/PayoutAccountSelector.vue_vue_type_script_setup_true_lang-CP-SP877.js +110 -0
- package/dist/{PayoutAccountSetting-B1uLo7gi.js → PayoutAccountSetting-CUCmcJak.js} +4 -4
- package/dist/{Restaurant-D5L8pG25.js → Restaurant-BnWy9O5t.js} +3 -3
- package/dist/{RestaurantSetting-Dx0fPDEn.js → RestaurantSetting-CVGwsyzO.js} +4 -4
- package/dist/{Settlement-BGueDfpI.js → Settlement-6voGKEDr.js} +3 -3
- package/dist/{Settlement-D0nuXQMV.js → Settlement-DPmYq05c.js} +3 -3
- package/dist/{SettlementTransactions-DW8-tVPe.js → SettlementTransactions-Duig1e4U.js} +4 -4
- package/dist/{SettlementTransactions-Dsnpidi1.js → SettlementTransactions-JYas_1C-.js} +4 -4
- package/dist/{Terminal-BkhqmKjN.js → Terminal-BH0OOd3v.js} +4 -4
- package/dist/{TerminalSetting-CrpB7DIV.js → TerminalSetting-ChCIqCIe.js} +3 -3
- package/dist/{TerminalTransaction-BGy4ABmm.js → TerminalTransaction-Bjs3Es1x.js} +5 -5
- package/dist/{TerminalTransaction-2E_8keFp.js → TerminalTransaction-DyTN8zj5.js} +83 -78
- package/dist/Transaction-Ce33Gg4W.js +145 -0
- package/dist/{Transaction-izWqPmdQ.js → Transaction-D8WYnO8-.js} +5 -5
- package/dist/TransactionOld-CEvlp4U4.js +99 -0
- package/dist/TransactionTable.vue_vue_type_script_setup_true_lang-_MmkKHxE.js +151 -0
- package/dist/api/terminal-transaction/index.d.ts +2 -1
- package/dist/api/transaction/index.d.ts +8 -1
- package/dist/{app-DPCnmmmg.js → app-Bcuom8z3.js} +471 -458
- package/dist/app.js +1 -1
- package/dist/{assets-NM2zCyV8.js → assets-Cppbnt4C.js} +1 -1
- package/dist/components/PayoutAccountSelector.vue.d.ts +23 -0
- package/dist/{index-BWpuTiNy.js → index-BIH2Edx9.js} +1 -1
- package/dist/{index-CZv4Ucw7.js → index-BKXt3n4_.js} +1 -1
- package/dist/{index-Bl77l-UI.js → index-BqZakjyK.js} +1 -1
- package/dist/{index-BpclEVci.js → index-BwVE-Z1U.js} +10 -10
- package/dist/{index-DffVv67M.js → index-CmhokViT.js} +1 -1
- package/dist/{index-DfC2cb6i.js → index-FEQKf928.js} +1 -1
- package/dist/{index-B5pmhl4r.js → index-GoHzCxeA.js} +1 -1
- package/dist/{index-BbPdddp2.js → index-Rhk_nXeB.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-Bm7Wybo3.js → index.vue_vue_type_script_setup_true_lang-BE90OAD9.js} +1 -1
- package/dist/package.json +2 -2
- package/dist/{payout-account-DpAKpX1a.js → payout-account-DFHGVtXO.js} +2 -2
- package/dist/router/index.d.ts +1 -0
- package/dist/{transaction-13xSmWg9.js → transaction-BPkT1OxL.js} +39 -26
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/views/transaction/TransactionOld.vue.d.ts +2 -0
- package/package.json +2 -2
- package/dist/Transaction-DFqANzFa.js +0 -242
@@ -1,15 +1,16 @@
|
|
1
1
|
import { createRouter as Ln, createWebHistory as Un, useRouter as Bn } from "vue-router";
|
2
|
-
import { computed as Lt, watch as $, defineComponent as Ut, ref as Fn, resolveComponent as Bt, openBlock as Ft, createBlock as
|
3
|
-
import { useCoreStore as
|
2
|
+
import { computed as Lt, watch as $, defineComponent as Ut, ref as Fn, resolveComponent as Bt, openBlock as Ft, createBlock as Wt, h as Wn, onMounted as Hn, onBeforeMount as xn } from "vue";
|
3
|
+
import { useCoreStore as je } from "@feedmepos/mf-common";
|
4
4
|
import { defineStore as jn } from "pinia";
|
5
|
-
|
5
|
+
import { components as Vn } from "@feedmepos/ui-library";
|
6
|
+
const Ve = [
|
6
7
|
{
|
7
8
|
path: "/admin/restaurants",
|
8
9
|
name: "mf-payment-admin.restaurant",
|
9
10
|
meta: {
|
10
11
|
sidebarDisplay: "Restaurants"
|
11
12
|
},
|
12
|
-
component: () => import("./Restaurant-
|
13
|
+
component: () => import("./Restaurant-BnWy9O5t.js")
|
13
14
|
},
|
14
15
|
{
|
15
16
|
path: "/admin/restaurants/:restaurantId",
|
@@ -18,7 +19,7 @@ const Ge = [
|
|
18
19
|
meta: {
|
19
20
|
parent: "mf-payment-admin.restaurant"
|
20
21
|
},
|
21
|
-
component: () => import("./RestaurantSetting-
|
22
|
+
component: () => import("./RestaurantSetting-CVGwsyzO.js")
|
22
23
|
},
|
23
24
|
{
|
24
25
|
path: "/admin/payout-accounts",
|
@@ -26,7 +27,7 @@ const Ge = [
|
|
26
27
|
meta: {
|
27
28
|
sidebarDisplay: "Payout Accounts"
|
28
29
|
},
|
29
|
-
component: () => import("./PayoutAccount-
|
30
|
+
component: () => import("./PayoutAccount-DoPGyjcC.js")
|
30
31
|
},
|
31
32
|
{
|
32
33
|
path: "/admin/payout-accounts/:accountId",
|
@@ -35,7 +36,7 @@ const Ge = [
|
|
35
36
|
meta: {
|
36
37
|
parent: "mf-payment-admin.payout-account"
|
37
38
|
},
|
38
|
-
component: () => import("./PayoutAccountSetting-
|
39
|
+
component: () => import("./PayoutAccountSetting-CUCmcJak.js")
|
39
40
|
},
|
40
41
|
{
|
41
42
|
path: "/admin/terminal",
|
@@ -43,7 +44,7 @@ const Ge = [
|
|
43
44
|
meta: {
|
44
45
|
sidebarDisplay: "Terminals"
|
45
46
|
},
|
46
|
-
component: () => import("./Terminal-
|
47
|
+
component: () => import("./Terminal-BH0OOd3v.js")
|
47
48
|
},
|
48
49
|
{
|
49
50
|
path: "/admin/terminal/:terminalId",
|
@@ -52,7 +53,7 @@ const Ge = [
|
|
52
53
|
meta: {
|
53
54
|
parent: "mf-payment-admin.terminal"
|
54
55
|
},
|
55
|
-
component: () => import("./TerminalSetting-
|
56
|
+
component: () => import("./TerminalSetting-ChCIqCIe.js")
|
56
57
|
},
|
57
58
|
{
|
58
59
|
path: "/admin/terminal-transaction",
|
@@ -60,7 +61,7 @@ const Ge = [
|
|
60
61
|
meta: {
|
61
62
|
sidebarDisplay: "Terminal Transactions"
|
62
63
|
},
|
63
|
-
component: () => import("./TerminalTransaction-
|
64
|
+
component: () => import("./TerminalTransaction-Bjs3Es1x.js")
|
64
65
|
},
|
65
66
|
{
|
66
67
|
path: "/admin/transaction",
|
@@ -68,7 +69,7 @@ const Ge = [
|
|
68
69
|
meta: {
|
69
70
|
sidebarDisplay: "Online Transactions"
|
70
71
|
},
|
71
|
-
component: () => import("./Transaction-
|
72
|
+
component: () => import("./Transaction-D8WYnO8-.js")
|
72
73
|
},
|
73
74
|
{
|
74
75
|
path: "/admin/settlement",
|
@@ -76,7 +77,7 @@ const Ge = [
|
|
76
77
|
meta: {
|
77
78
|
sidebarDisplay: "Settlements"
|
78
79
|
},
|
79
|
-
component: () => import("./Settlement-
|
80
|
+
component: () => import("./Settlement-DPmYq05c.js")
|
80
81
|
},
|
81
82
|
{
|
82
83
|
path: "/admin/settlement/:settlementId",
|
@@ -85,9 +86,9 @@ const Ge = [
|
|
85
86
|
meta: {
|
86
87
|
parent: "mf-payment-admin.settlement"
|
87
88
|
},
|
88
|
-
component: () => import("./SettlementTransactions-
|
89
|
+
component: () => import("./SettlementTransactions-JYas_1C-.js")
|
89
90
|
}
|
90
|
-
],
|
91
|
+
], Ge = [
|
91
92
|
{
|
92
93
|
path: "",
|
93
94
|
redirect: { name: "mf-payment-payout-account" }
|
@@ -95,31 +96,41 @@ const Ge = [
|
|
95
96
|
{
|
96
97
|
path: "/payout-account",
|
97
98
|
name: "mf-payment-payout-account",
|
98
|
-
component: () => import("./PayoutAccount-
|
99
|
+
component: () => import("./PayoutAccount-xeea4ogM.js"),
|
99
100
|
meta: {
|
100
101
|
sidebarDisplay: "Payout Accounts"
|
101
102
|
}
|
102
103
|
},
|
104
|
+
{
|
105
|
+
path: "/transaction-old",
|
106
|
+
name: "mf-payment-old-transaction",
|
107
|
+
component: () => import("./TransactionOld-CEvlp4U4.js"),
|
108
|
+
meta: {
|
109
|
+
sidebarDisplay: "Transactions"
|
110
|
+
}
|
111
|
+
},
|
103
112
|
{
|
104
113
|
path: "/terminal-tranasction",
|
105
114
|
name: "mf-payment-terminal-transaction",
|
106
115
|
meta: {
|
107
|
-
sidebarDisplay: "Terminal Transactions"
|
116
|
+
sidebarDisplay: "Terminal Transactions",
|
117
|
+
sidebarNew: !0
|
108
118
|
},
|
109
|
-
component: () => import("./TerminalTransaction-
|
119
|
+
component: () => import("./TerminalTransaction-DyTN8zj5.js")
|
110
120
|
},
|
111
121
|
{
|
112
122
|
path: "/transaction",
|
113
123
|
name: "mf-payment-transaction",
|
114
|
-
component: () => import("./Transaction-
|
124
|
+
component: () => import("./Transaction-Ce33Gg4W.js"),
|
115
125
|
meta: {
|
116
|
-
sidebarDisplay: "Online Transactions"
|
126
|
+
sidebarDisplay: "Online Transactions",
|
127
|
+
sidebarNew: !0
|
117
128
|
}
|
118
129
|
},
|
119
130
|
{
|
120
131
|
path: "/settlement",
|
121
132
|
name: "mf-payment-settlement",
|
122
|
-
component: () => import("./Settlement-
|
133
|
+
component: () => import("./Settlement-6voGKEDr.js"),
|
123
134
|
meta: {
|
124
135
|
sidebarDisplay: "Settlements"
|
125
136
|
}
|
@@ -128,12 +139,12 @@ const Ge = [
|
|
128
139
|
path: "/settlement/:settlementId",
|
129
140
|
name: "mf-payment-settlement-transaction",
|
130
141
|
props: !0,
|
131
|
-
component: () => import("./SettlementTransactions-
|
142
|
+
component: () => import("./SettlementTransactions-Duig1e4U.js"),
|
132
143
|
meta: {
|
133
144
|
parent: "mf-payment-settlement"
|
134
145
|
}
|
135
146
|
}
|
136
|
-
],
|
147
|
+
], Gn = jn("mf-payment-iframe", () => {
|
137
148
|
const n = {
|
138
149
|
isIframe: !1
|
139
150
|
}, e = Lt(() => n);
|
@@ -145,7 +156,7 @@ const Ge = [
|
|
145
156
|
init: t
|
146
157
|
};
|
147
158
|
});
|
148
|
-
var at = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_015da715-dcb4-4846-807f-cd5fa3344d72", npm_package_devDependencies_ts_node: "^10.9.1", npm_package_dependencies_zod: "^3.23.8", npm_package_dependencies_dinero_js: "^1.9.1", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", npm_package_dependencies_pinia: "^2.1.7", USER: "runner", npm_package_devDependencies_jest: "^29.6.3", npm_package_dependencies_vue_pdf_embed: "^2.1.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.22 npm/? node/v22.12.0 linux x64", npm_config_always_auth: "", CI: "true", npm_package_dependencies_vue: "^3.2.25", npm_config_bin_links: "true", npm_config_wrap_output: "", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_015da715-dcb4-4846-807f-cd5fa3344d72", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/22.12.0/x64/bin/node", npm_package_devDependencies_vite: "^5.2.11", npm_package_devDependencies__tsconfig_node20: "^20.1.4", npm_config_init_version: "1.0.0", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "ghs_uffp60IRVsNrJlVHNvoNCQZrXbS8eZ0z6bCf", SHLVL: "1", npm_package_files_0: "dist", HOME: "/home/runner", npm_package_devDependencies_sass: "1.32.12", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_dependencies_jspdf: "^2.5.1", npm_package_scripts_build_mf_dev: "vite build --mode fmmf:dev", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "feedmepos", npm_package_dependencies_change_case: "^4.1.2", npm_package_scripts_build_mf_prod: "vite build --mode fmmf:prod", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-8.11.1", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/27.2.12479018", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", YARN_WRAP_OUTPUT: "false", npm_package_dependencies__feedmepos_mf_common: "^1.8.21", npm_config_version_tag_prefix: "v", GITHUB_REPOSITORY_OWNER_ID: "54831515", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu24", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_devDependencies__types_file_saver: "^2.0.5", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", SYSTEMD_EXEC_PID: "718", npm_package_dependencies_moment: "^2.29.4", npm_package_dependencies_dotenv: "^16.0.3", npm_package_dependencies__feedmepos_ui_library: "^1.2.61", npm_package_scripts_postinstall: "yarn --cwd .. && yarn --cwd ../package/common && yarn --cwd ../package/entity", npm_config_feedmepos_registry: "https://npm.pkg.github.com/", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: 'Development always based on production and add "-beta.version" in behind. Every deployment from development to production will increment based on semantic versioninig.', npm_package_devDependencies_typescript: "~5.4.0", npm_package_devDependencies_tailwindcss: "^3.4.14", npm_package_dependencies_i18next: "^21.8.8", npm_package_dependencies__casl_ability: "^3.2.0", npm_package_scripts_build_only_dev: "yarn build:mf:dev && yarn build:dts && yarn build-types && cp package.json ./dist", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_devDependencies_vue_tsc: "^2.0.11", npm_package_devDependencies__babel_preset_env: "^7.22.10", npm_package_dependencies_xlsx: "^0.18.5", npm_package_dependencies_google_maps: "^4.3.3", npm_package_scripts_build_only_prod: "yarn build:mf:prod && yarn build:dts && yarn build-types && cp package.json ./dist", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.13/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20241215.1.0", npm_package_dependencies_i18next_vue: "^2.0.0-beta.0", npm_package_scripts_dev: "vite --mode dev", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.10/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", npm_package_scripts_prod: "vite --mode prod", npm_package_type: "module", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", GOROOT_1_23_X64: "/opt/hostedtoolcache/go/1.23.4/x64", JOURNAL_STREAM: "8:5833", GITHUB_WORKFLOW: "payment-mf-portal-dev", _: "/usr/local/bin/yarn", npm_package_devDependencies_ts_jest: "^29.1.1", npm_package_devDependencies_autoprefixer: "^10.4.20", npm_package_devDependencies__types_jest: "^29.5.4", npm_package_dependencies_i18next_browser_languagedetector: "^6.1.4", npm_package_module: "./dist/app.js", MEMORY_PRESSURE_WATCH: "/sys/fs/cgroup/system.slice/runner-provisioner.service/memory.pressure", npm_package_devDependencies__types_uuid: "^8.3.4", npm_package_scripts_lint: "eslint --ext .ts,vue --ignore-path .gitignore . --fix", npm_config_registry: "https://registry.yarnpkg.com", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", STATS_D: "false", GITHUB_RUN_ID: "12477547568", STATS_VMFE: "true", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "8f2b2c796b7043f22693adec44bb415ad1640dd5", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", npm_package_devDependencies__vitejs_plugin_vue: "^5.0.4", npm_package_exports___import: "./dist/app.js", npm_config_ignore_scripts: "", GITHUB_WORKFLOW_REF: "feedmepos/payment-service/.github/workflows/payment-mf-portal-dev.yaml@refs/heads/dev", ACTIONS_ID_TOKEN_REQUEST_TOKEN: "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6Ikh5cTROQVRBanNucUM3bWRydEFoaHJDUjJfUSJ9.eyJuYW1laWQiOiJkZGRkZGRkZC1kZGRkLWRkZGQtZGRkZC1kZGRkZGRkZGRkZGQiLCJzY3AiOiJBY3Rpb25zLkdlbmVyaWNSZWFkOjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMCBBY3Rpb25zLlJlc3VsdHM6OTNiZTdlMzctYzg5Yi00M2Q3LTgyODMtYmU5MDAwMmUwNzY3OmUwNzc0MmJkLTE4OWEtNTA3OS05MThiLTQzZjhiMmY5NGI4OSBBY3Rpb25zLlVwbG9hZEFydGlmYWN0czowMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAvMTpCdWlsZC9CdWlsZC8xMDA3IERpc3RyaWJ1dGVkVGFzay5HZW5lcmF0ZUlkVG9rZW46OTNiZTdlMzctYzg5Yi00M2Q3LTgyODMtYmU5MDAwMmUwNzY3OmUwNzc0MmJkLTE4OWEtNTA3OS05MThiLTQzZjhiMmY5NGI4OSBMb2NhdGlvblNlcnZpY2UuQ29ubmVjdCBSZWFkQW5kVXBkYXRlQnVpbGRCeVVyaTowMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAvMTpCdWlsZC9CdWlsZC8xMDA3IiwiSWRlbnRpdHlUeXBlQ2xhaW0iOiJTeXN0ZW06U2VydmljZUlkZW50aXR5IiwiaHR0cDovL3NjaGVtYXMueG1sc29hcC5vcmcvd3MvMjAwNS8wNS9pZGVudGl0eS9jbGFpbXMvc2lkIjoiREREREREREQtRERERC1ERERELUREREQtREREREREREREREREIiwiaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS93cy8yMDA4LzA2L2lkZW50aXR5L2NsYWltcy9wcmltYXJ5c2lkIjoiZGRkZGRkZGQtZGRkZC1kZGRkLWRkZGQtZGRkZGRkZGRkZGRkIiwiYXVpIjoiNzQ2N2Q1YzktZGRlMC00OGVjLWFjNGItOTY2NzIyNmI5N2FhIiwic2lkIjoiMjU2MjdjYTgtMGI2YS00ZjJmLWExYTUtMzYxODE5ODYwZTNiIiwiYWMiOiJbe1wiU2NvcGVcIjpcInJlZnMvaGVhZHMvZGV2XCIsXCJQZXJtaXNzaW9uXCI6M30se1wiU2NvcGVcIjpcInJlZnMvaGVhZHMvbWFpblwiLFwiUGVybWlzc2lvblwiOjF9XSIsImFjc2wiOiIxMCIsIm9pZGNfZXh0cmEiOiJ7XCJyZWZcIjpcInJlZnMvaGVhZHMvZGV2XCIsXCJzaGFcIjpcIjhmMmIyYzc5NmI3MDQzZjIyNjkzYWRlYzQ0YmI0MTVhZDE2NDBkZDVcIixcInJlcG9zaXRvcnlcIjpcImZlZWRtZXBvcy9wYXltZW50LXNlcnZpY2VcIixcInJlcG9zaXRvcnlfb3duZXJcIjpcImZlZWRtZXBvc1wiLFwicmVwb3NpdG9yeV9vd25lcl9pZFwiOlwiNTQ4MzE1MTVcIixcInJ1bl9pZFwiOlwiMTI0Nzc1NDc1NjhcIixcInJ1bl9udW1iZXJcIjpcIjEwMVwiLFwicnVuX2F0dGVtcHRcIjpcIjFcIixcInJlcG9zaXRvcnlfdmlzaWJpbGl0eVwiOlwicHJpdmF0ZVwiLFwicmVwb3NpdG9yeV9pZFwiOlwiNjkwOTc5MjYwXCIsXCJhY3Rvcl9pZFwiOlwiMTU2NzQxMDdcIixcImFjdG9yXCI6XCJPc2thbmcwOVwiLFwid29ya2Zsb3dcIjpcInBheW1lbnQtbWYtcG9ydGFsLWRldlwiLFwiaGVhZF9yZWZcIjpcIlwiLFwiYmFzZV9yZWZcIjpcIlwiLFwiZXZlbnRfbmFtZVwiOlwicHVzaFwiLFwicmVmX3Byb3RlY3RlZFwiOlwiZmFsc2VcIixcInJlZl90eXBlXCI6XCJicmFuY2hcIixcIndvcmtmbG93X3JlZlwiOlwiZmVlZG1lcG9zL3BheW1lbnQtc2VydmljZS8uZ2l0aHViL3dvcmtmbG93cy9wYXltZW50LW1mLXBvcnRhbC1kZXYueWFtbEByZWZzL2hlYWRzL2RldlwiLFwid29ya2Zsb3dfc2hhXCI6XCI4ZjJiMmM3OTZiNzA0M2YyMjY5M2FkZWM0NGJiNDE1YWQxNjQwZGQ1XCIsXCJqb2Jfd29ya2Zsb3dfcmVmXCI6XCJmZWVkbWVwb3MvcGF5bWVudC1zZXJ2aWNlLy5naXRodWIvd29ya2Zsb3dzL3BheW1lbnQtbWYtcG9ydGFsLWRldi55YW1sQHJlZnMvaGVhZHMvZGV2XCIsXCJqb2Jfd29ya2Zsb3dfc2hhXCI6XCI4ZjJiMmM3OTZiNzA0M2YyMjY5M2FkZWM0NGJiNDE1YWQxNjQwZGQ1XCIsXCJydW5uZXJfZW52aXJvbm1lbnRcIjpcImdpdGh1Yi1ob3N0ZWRcIn0iLCJvaWRjX3N1YiI6InJlcG86ZmVlZG1lcG9zL3BheW1lbnQtc2VydmljZTpyZWY6cmVmcy9oZWFkcy9kZXYiLCJvcmNoaWQiOiI5M2JlN2UzNy1jODliLTQzZDctODI4My1iZTkwMDAyZTA3NjcuZGVwbG95Ll9fZGVmYXVsdCIsImlzcyI6InZzdG9rZW4uYWN0aW9ucy5naXRodWJ1c2VyY29udGVudC5jb20iLCJhdWQiOiJ2c3Rva2VuLmFjdGlvbnMuZ2l0aHVidXNlcmNvbnRlbnQuY29tfHZzbzo3ZTY0NTJjNS1mYzJlLTRhZDUtYjY3My0yOWU5MGNmNzNkZDgiLCJuYmYiOjE3MzUwMTgxNDksImV4cCI6MTczNTA0MDk0OX0.fQdu6AQH5Usb9EuMHeeXPEVZNMAJa7j5rxbERWheKuD0VCwrHzCcAkJQi6AsH0Yuv5QLqZdInHHheIaS3pMqXxpDywBadjrQvCf0jmQHAnx3e5Zdwm9bD1TeZynPsQXWK6weNuhf-3ql6O-QqNsVRDp0pAeniDvcyX8Muxa77n7iMZOqPFm0PK7C08cLW8e4a2LxrtHgf2Ft-mjMkvZGIzdzl5zXIVZQLcbjqlKZV4QwyOKkw9n9yVCto58XGXJp5UanwHTe_kjc_oI7sVL6g8GTeKOYrw414bwHAenKHcalIaFR2KGUsX2ulG6Z1W4GJBnUwF4Usp7OMLDgoVmflw", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_dependencies_axios: "^0.27.2", PATH: "/tmp/yarn--1735018801302-0.43695143152001825:/home/runner/work/payment-service/payment-service/mf-portal/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.12.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.12.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1735018801144-0.05323779477770074:/home/runner/work/payment-service/payment-service/mf-portal/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.12.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.12.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1735018800978-0.9788205550084954:/home/runner/work/payment-service/payment-service/mf-portal/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.12.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.12.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", NODE: "/opt/hostedtoolcache/node/22.12.0/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_da8d30df-b5a4-4abd-a825-a56dedad7fd6", INVOCATION_ID: "1bf42e46211b4ba9992b5209b6e44f41", NPM_CONFIG_USERCONFIG: "/home/runner/work/_temp/.npmrc", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", npm_package_devDependencies__types_qrcode: "^1.5.0", npm_package_devDependencies__types_jsurl: "^0.1.2", npm_package_dependencies_file_saver: "^2.0.5", npm_package_scripts_deploy_dev: "yarn build-only:dev && npm publish --@feedmepos:registry=https://registry.npmjs.org/ --access public --tag beta --no-git-checks .", npm_package_name: "@feedmepos/mf-payment", GITHUB_ACTION: "__run", GITHUB_RUN_NUMBER: "101", GITHUB_TRIGGERING_ACTOR: "Oskang09", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_dependencies_vue_country_flag_next: "^2.3.2", npm_package_scripts_deploy_prod: "yarn build-only:prod && npm publish --@feedmepos:registry=https://registry.npmjs.org/ --access public --tag beta --no-git-checks .", npm_package_dependencies_vue_advanced_cropper: "^2.8.6", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_devDependencies_eslint: "^8.17.0", npm_package_devDependencies__vue_test_utils: "^2.4.1", npm_package_devDependencies__vue_eslint_config_typescript: "^10.0.0", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 88", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "dev", GITHUB_REPOSITORY: "feedmepos/payment-service", STATS_D_D: "false", npm_lifecycle_script: "vite build --mode fmmf:dev", npm_package_dependencies__feedmepos_core: "^2.6.0", npm_package_scripts_build_types: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir dist --composite false", npm_package_scripts_build_dts: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir ./dist && mv ./dist/src/* dist", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.2.12479018", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_dependencies_vue3_lottie: "^2.2.3", npm_package_scripts_test: "jest", npm_config_version_git_message: "v%s", GITHUB_REPOSITORY_ID: "690979260", GITHUB_ACTIONS: "true", STATS_PIP: "false", npm_lifecycle_event: "build:mf:dev", npm_package_devDependencies_jest_transform_stub: "^2.0.0", npm_package_devDependencies_jest_environment_jsdom: "^29.4.1", npm_package_devDependencies__rushstack_eslint_patch: "^1.1.3", npm_package_dependencies_vuedraggable: "^4.1.0", npm_package_version: "1.0.4-beta.2", GITHUB_REF_PROTECTED: "false", npm_config_argv: '{"remain":[],"cooked":["run","deploy:dev"],"original":["deploy:dev"]}', npm_package_devDependencies__types_dinero_js: "^1.9.0", npm_package_dependencies_uuid: "^9.0.0", npm_package_dependencies_buffer: "^6.0.3", npm_config__feedmepos_registry: "https://npm.pkg.github.com/", GITHUB_WORKSPACE: "/home/runner/work/payment-service/payment-service", ACCEPT_EULA: "Y", GITHUB_JOB: "deploy", RUNNER_PERFLOG: "/home/runner/perflog", GITHUB_SHA: "8f2b2c796b7043f22693adec44bb415ad1640dd5", GITHUB_RUN_ATTEMPT: "1", STATS_D_TC: "true", npm_package_dependencies_vue_router: "^4.2.5", npm_package_exports___style: "./dist/style.css", npm_config_version_git_tag: "true", npm_config_version_git_sign: "", GITHUB_REF: "refs/heads/dev", GITHUB_ACTOR: "Oskang09", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_config_strict_ssl: "true", npm_package_devDependencies_path: "^0.12.7", npm_package_dependencies_qrcode: "^1.5.1", npm_package_dependencies_jszip: "^3.10.1", npm_package_dependencies_jsurl: "^0.1.5", npm_package_dependencies_firebase: "^10.14.0", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_015da715-dcb4-4846-807f-cd5fa3344d72", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/payment-service/payment-service/mf-portal", GITHUB_ACTOR_ID: "15674107", RUNNER_WORKSPACE: "/home/runner/work/payment-service", npm_execpath: "/usr/local/lib/node_modules/yarn/bin/yarn.js", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", STATS_TIS: "mining", GITHUB_EVENT_NAME: "push", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", ACTIONS_ID_TOKEN_REQUEST_URL: "https://pipelinesghubeus11.actions.githubusercontent.com/uhMzCspeMtZD05BczWutTDpLRkQb1I4q0fwG0tss4R7H4Wpw9s/00000000-0000-0000-0000-000000000000/_apis/distributedtask/hubs/Actions/plans/93be7e37-c89b-43d7-8283-be90002e0767/jobs/e07742bd-189a-5079-918b-43f8b2f94b89/idtoken?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_015da715-dcb4-4846-807f-cd5fa3344d72", npm_package_exports___types: "./dist/app.d.ts", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", npm_package_devDependencies_postcss: "^8.4.47", npm_package_devDependencies_eslint_plugin_vue: "^9.1.0", npm_package_devDependencies__vue_vue3_jest: "^29.2.5", npm_package_devDependencies__pinia_testing: "^0.1.3", npm_config_save_prefix: "^", npm_config_ignore_optional: "", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.2.12479018", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_devDependencies_cd: "^0.3.3", npm_package_dependencies_rasterizehtml: "^1.3.1", npm_package_dependencies_i18next_http_backend: "^1.4.1", npm_package_scripts_preview: "vite preview", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", MEMORY_PRESSURE_WRITE: "c29tZSAyMDAwMDAgMjAwMDAwMAA=", STATS_EXTP: "https://provjobdprod.z13.web.core.windows.net/settings/provjobdsettings-latest/provjobd.data", INIT_CWD: "/home/runner/work/payment-service/payment-service/mf-portal", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.2.12479018", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_015da715-dcb4-4846-807f-cd5fa3344d72", npm_package_dependencies_libphonenumber_js: "^1.10.6", npm_package_dependencies__feedmepos_payment_entity: "^0.0.13", NODE_ENV: "production", ENVIRONMENT: "development", FIREBASE_API_KEY: "AIzaSyAj8JdCHtP0Vc5vZobCfgoLzWxPIn0WUG4", FIREBASE_AUTH_DOMAIN: "feedme-dev-4c3ef.firebaseapp.com", FIREBASE_DATABASE_URL: "https://feedme-dev-4c3ef.firebaseio.com", FIREBASE_PROJECT_ID: "feedme-dev-4c3ef", FIREBASE_STORAGE_BUCKET: "feedme-dev-4c3ef.appspot.com", FIREBASE_MESSAGING_SENDER_ID: "458797803788", FIREBASE_APP_ID: "1:458797803788:web:37f2af2926a84288f0c129", FIREBASE_MEASUREMENT_ID: "G-J2QG09D2Q7", ASSET_STORAGE_BUCKET: "feedme-dev-4c3ef.appspot.com", GOOGLE_MAP_API_KEY: "AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4", AUTH_CLIENT_ID: "1a362d621873497b277ea55258cc82594ba148d235257f7bd44ea2acc132d8a4" };
|
159
|
+
var at = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_faf453b5-9683-4780-a667-52e90c84c356", npm_package_devDependencies_ts_node: "^10.9.1", npm_package_dependencies_zod: "^3.23.8", npm_package_dependencies_dinero_js: "^1.9.1", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", npm_package_dependencies_pinia: "^2.1.7", USER: "runner", npm_package_devDependencies_jest: "^29.6.3", npm_package_dependencies_vue_pdf_embed: "^2.1.0", npm_config_version_commit_hooks: "true", npm_config_user_agent: "yarn/1.22.22 npm/? node/v22.12.0 linux x64", npm_config_always_auth: "", CI: "true", npm_package_dependencies_vue: "^3.2.25", npm_config_bin_links: "true", npm_config_wrap_output: "", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_faf453b5-9683-4780-a667-52e90c84c356", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/22.12.0/x64/bin/node", npm_package_devDependencies_vite: "^5.2.11", npm_package_devDependencies__tsconfig_node20: "^20.1.4", npm_config_init_version: "1.0.0", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", NODE_AUTH_TOKEN: "ghs_hlMjpKcarfVXNwzl93ifgFXEQ9TZ3q0X3EBS", SHLVL: "1", npm_package_files_0: "dist", HOME: "/home/runner", npm_package_devDependencies_sass: "1.32.12", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_dependencies_jspdf: "^2.5.1", npm_package_scripts_build_mf_dev: "vite build --mode fmmf:dev", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "feedmepos", npm_package_dependencies_change_case: "^4.1.2", npm_package_scripts_build_mf_prod: "vite build --mode fmmf:prod", npm_config_init_license: "MIT", GRADLE_HOME: "/usr/share/gradle-8.11.1", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/27.2.12479018", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", YARN_WRAP_OUTPUT: "false", npm_package_dependencies__feedmepos_mf_common: "^1.8.21", npm_config_version_tag_prefix: "v", GITHUB_REPOSITORY_OWNER_ID: "54831515", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu24", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_devDependencies__types_file_saver: "^2.0.5", npm_config_userconfig: "/home/runner/work/_temp/.npmrc", SYSTEMD_EXEC_PID: "709", npm_package_dependencies_moment: "^2.29.4", npm_package_dependencies_dotenv: "^16.0.3", npm_package_dependencies__feedmepos_ui_library: "^1.3.5", npm_package_scripts_postinstall: "yarn --cwd .. && yarn --cwd ../package/common && yarn --cwd ../package/entity", npm_config_feedmepos_registry: "https://npm.pkg.github.com/", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_description: 'Development always based on production and add "-beta.version" in behind. Every deployment from development to production will increment based on semantic versioninig.', npm_package_devDependencies_typescript: "~5.4.0", npm_package_devDependencies_tailwindcss: "^3.4.14", npm_package_dependencies_i18next: "^21.8.8", npm_package_dependencies__casl_ability: "^3.2.0", npm_package_scripts_build_only_dev: "yarn build:mf:dev && yarn build:dts && yarn build-types && cp package.json ./dist", NVM_DIR: "/home/runner/.nvm", npm_package_readmeFilename: "README.md", npm_package_devDependencies_vue_tsc: "^2.0.11", npm_package_devDependencies__babel_preset_env: "^7.22.10", npm_package_dependencies_xlsx: "^0.18.5", npm_package_dependencies_google_maps: "^4.3.3", npm_package_scripts_build_only_prod: "yarn build:mf:prod && yarn build:dts && yarn build-types && cp package.json ./dist", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.13/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20241215.1.0", npm_package_dependencies_i18next_vue: "^2.0.0-beta.0", npm_package_scripts_dev: "vite --mode dev", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.10/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", npm_package_scripts_prod: "vite --mode prod", npm_package_type: "module", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", GOROOT_1_23_X64: "/opt/hostedtoolcache/go/1.23.4/x64", JOURNAL_STREAM: "8:6014", GITHUB_WORKFLOW: "payment-mf-portal-dev", _: "/usr/local/bin/yarn", npm_package_devDependencies_ts_jest: "^29.1.1", npm_package_devDependencies_autoprefixer: "^10.4.20", npm_package_devDependencies__types_jest: "^29.5.4", npm_package_dependencies_i18next_browser_languagedetector: "^6.1.4", npm_package_module: "./dist/app.js", MEMORY_PRESSURE_WATCH: "/sys/fs/cgroup/system.slice/runner-provisioner.service/memory.pressure", npm_package_devDependencies__types_uuid: "^8.3.4", npm_package_scripts_lint: "eslint --ext .ts,vue --ignore-path .gitignore . --fix", npm_config_registry: "https://registry.yarnpkg.com", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", STATS_D: "false", GITHUB_RUN_ID: "12594551574", STATS_VMFE: "true", GITHUB_REF_TYPE: "branch", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "a3f31ef994cc00ae5df3a3d1d96528890e1d2ee2", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", npm_package_devDependencies__vitejs_plugin_vue: "^5.0.4", npm_package_exports___import: "./dist/app.js", npm_config_ignore_scripts: "", GITHUB_WORKFLOW_REF: "feedmepos/payment-service/.github/workflows/payment-mf-portal-dev.yaml@refs/heads/dev", ACTIONS_ID_TOKEN_REQUEST_TOKEN: "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6Ikh5cTROQVRBanNucUM3bWRydEFoaHJDUjJfUSJ9.eyJuYW1laWQiOiJkZGRkZGRkZC1kZGRkLWRkZGQtZGRkZC1kZGRkZGRkZGRkZGQiLCJzY3AiOiJBY3Rpb25zLkdlbmVyaWNSZWFkOjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMCBBY3Rpb25zLlJlc3VsdHM6OWJlZWI3YzUtZTA0Zi00MTI0LWJjZWEtZTQyNWViZmIwNTA0OmUwNzc0MmJkLTE4OWEtNTA3OS05MThiLTQzZjhiMmY5NGI4OSBBY3Rpb25zLlVwbG9hZEFydGlmYWN0czowMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAvMTpCdWlsZC9CdWlsZC8xMDI4IERpc3RyaWJ1dGVkVGFzay5HZW5lcmF0ZUlkVG9rZW46OWJlZWI3YzUtZTA0Zi00MTI0LWJjZWEtZTQyNWViZmIwNTA0OmUwNzc0MmJkLTE4OWEtNTA3OS05MThiLTQzZjhiMmY5NGI4OSBMb2NhdGlvblNlcnZpY2UuQ29ubmVjdCBSZWFkQW5kVXBkYXRlQnVpbGRCeVVyaTowMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAvMTpCdWlsZC9CdWlsZC8xMDI4IiwiSWRlbnRpdHlUeXBlQ2xhaW0iOiJTeXN0ZW06U2VydmljZUlkZW50aXR5IiwiaHR0cDovL3NjaGVtYXMueG1sc29hcC5vcmcvd3MvMjAwNS8wNS9pZGVudGl0eS9jbGFpbXMvc2lkIjoiREREREREREQtRERERC1ERERELUREREQtREREREREREREREREIiwiaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS93cy8yMDA4LzA2L2lkZW50aXR5L2NsYWltcy9wcmltYXJ5c2lkIjoiZGRkZGRkZGQtZGRkZC1kZGRkLWRkZGQtZGRkZGRkZGRkZGRkIiwiYXVpIjoiYjNlMjZjZTktMmQ3Yi00NTIzLTgzNTEtMTA2NTZiNzY0NDdlIiwic2lkIjoiOWU1OWIyZWItZjA5OS00Yzg4LThlNGMtM2RkM2VlYjBjNWZkIiwiYWMiOiJbe1wiU2NvcGVcIjpcInJlZnMvaGVhZHMvZGV2XCIsXCJQZXJtaXNzaW9uXCI6M30se1wiU2NvcGVcIjpcInJlZnMvaGVhZHMvbWFpblwiLFwiUGVybWlzc2lvblwiOjF9XSIsImFjc2wiOiIxMCIsIm9pZGNfZXh0cmEiOiJ7XCJyZWZcIjpcInJlZnMvaGVhZHMvZGV2XCIsXCJzaGFcIjpcImEzZjMxZWY5OTRjYzAwYWU1ZGYzYTNkMWQ5NjUyODg5MGUxZDJlZTJcIixcInJlcG9zaXRvcnlcIjpcImZlZWRtZXBvcy9wYXltZW50LXNlcnZpY2VcIixcInJlcG9zaXRvcnlfb3duZXJcIjpcImZlZWRtZXBvc1wiLFwicmVwb3NpdG9yeV9vd25lcl9pZFwiOlwiNTQ4MzE1MTVcIixcInJ1bl9pZFwiOlwiMTI1OTQ1NTE1NzRcIixcInJ1bl9udW1iZXJcIjpcIjEwNFwiLFwicnVuX2F0dGVtcHRcIjpcIjFcIixcInJlcG9zaXRvcnlfdmlzaWJpbGl0eVwiOlwicHJpdmF0ZVwiLFwicmVwb3NpdG9yeV9pZFwiOlwiNjkwOTc5MjYwXCIsXCJhY3Rvcl9pZFwiOlwiMTU2NzQxMDdcIixcImFjdG9yXCI6XCJPc2thbmcwOVwiLFwid29ya2Zsb3dcIjpcInBheW1lbnQtbWYtcG9ydGFsLWRldlwiLFwiaGVhZF9yZWZcIjpcIlwiLFwiYmFzZV9yZWZcIjpcIlwiLFwiZXZlbnRfbmFtZVwiOlwicHVzaFwiLFwicmVmX3Byb3RlY3RlZFwiOlwiZmFsc2VcIixcInJlZl90eXBlXCI6XCJicmFuY2hcIixcIndvcmtmbG93X3JlZlwiOlwiZmVlZG1lcG9zL3BheW1lbnQtc2VydmljZS8uZ2l0aHViL3dvcmtmbG93cy9wYXltZW50LW1mLXBvcnRhbC1kZXYueWFtbEByZWZzL2hlYWRzL2RldlwiLFwid29ya2Zsb3dfc2hhXCI6XCJhM2YzMWVmOTk0Y2MwMGFlNWRmM2EzZDFkOTY1Mjg4OTBlMWQyZWUyXCIsXCJqb2Jfd29ya2Zsb3dfcmVmXCI6XCJmZWVkbWVwb3MvcGF5bWVudC1zZXJ2aWNlLy5naXRodWIvd29ya2Zsb3dzL3BheW1lbnQtbWYtcG9ydGFsLWRldi55YW1sQHJlZnMvaGVhZHMvZGV2XCIsXCJqb2Jfd29ya2Zsb3dfc2hhXCI6XCJhM2YzMWVmOTk0Y2MwMGFlNWRmM2EzZDFkOTY1Mjg4OTBlMWQyZWUyXCIsXCJydW5uZXJfZW52aXJvbm1lbnRcIjpcImdpdGh1Yi1ob3N0ZWRcIn0iLCJvaWRjX3N1YiI6InJlcG86ZmVlZG1lcG9zL3BheW1lbnQtc2VydmljZTpyZWY6cmVmcy9oZWFkcy9kZXYiLCJvcmNoaWQiOiI5YmVlYjdjNS1lMDRmLTQxMjQtYmNlYS1lNDI1ZWJmYjA1MDQuZGVwbG95Ll9fZGVmYXVsdCIsImlzcyI6InZzdG9rZW4uYWN0aW9ucy5naXRodWJ1c2VyY29udGVudC5jb20iLCJhdWQiOiJ2c3Rva2VuLmFjdGlvbnMuZ2l0aHVidXNlcmNvbnRlbnQuY29tfHZzbzo3ZTY0NTJjNS1mYzJlLTRhZDUtYjY3My0yOWU5MGNmNzNkZDgiLCJuYmYiOjE3MzU4OTAyMDUsImV4cCI6MTczNTkxMzAwNX0.DrRs_itbZI1TgElK9p67p_CPJnoxI8cswrM59MmTC_yJHx_CdjlFKaKvrk0KQQoJhKfg107OAMfj9mkWtAsLic4-ec9IVYrrsUKDHIfIXZ9G57F7f_jlqB7MFQbSiShU5kxOxvmkE7lqFHK7xjySMJn4oVMZXA63m6zCSHwHsLiAShmZL0MUllLJ5exDp-trJcNvvwKmev296SQif6ihXe3lW6NdD77utSXmnejQROnYFcneAaxMsO4ab0k7ibnsPIiv5kWVDEun4VUOXLP2vzeLNk7qoqvumH_IisL5EfIAH5Pw0_s5id4MWne8nzBjZlUl_BacdIPmrZiWgi_Qvg", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_package_dependencies_axios: "^0.27.2", PATH: "/tmp/yarn--1735890861096-0.3231220209905028:/home/runner/work/payment-service/payment-service/mf-portal/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.12.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.12.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1735890860941-0.8041768496874158:/home/runner/work/payment-service/payment-service/mf-portal/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.12.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.12.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/tmp/yarn--1735890860782-0.04840884562033043:/home/runner/work/payment-service/payment-service/mf-portal/node_modules/.bin:/home/runner/.config/yarn/link/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/libexec/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.12.0/x64/lib/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.12.0/x64/bin/node_modules/npm/bin/node-gyp-bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", NODE: "/opt/hostedtoolcache/node/22.12.0/x64/bin/node", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_fe7fc2a8-514c-440a-985a-42a684b45410", INVOCATION_ID: "b11bfeb1d1c445e4ad5da538d5fd1e79", NPM_CONFIG_USERCONFIG: "/home/runner/work/_temp/.npmrc", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", npm_package_devDependencies__types_qrcode: "^1.5.0", npm_package_devDependencies__types_jsurl: "^0.1.2", npm_package_dependencies_file_saver: "^2.0.5", npm_package_scripts_deploy_dev: "yarn build-only:dev && npm publish --@feedmepos:registry=https://registry.npmjs.org/ --access public --tag beta --no-git-checks .", npm_package_name: "@feedmepos/mf-payment", GITHUB_ACTION: "__run", GITHUB_RUN_NUMBER: "104", GITHUB_TRIGGERING_ACTOR: "Oskang09", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_dependencies_vue_country_flag_next: "^2.3.2", npm_package_scripts_deploy_prod: "yarn build-only:prod && npm publish --@feedmepos:registry=https://registry.npmjs.org/ --access public --tag beta --no-git-checks .", npm_package_dependencies_vue_advanced_cropper: "^2.8.6", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_devDependencies_eslint: "^8.17.0", npm_package_devDependencies__vue_test_utils: "^2.4.1", npm_package_devDependencies__vue_eslint_config_typescript: "^10.0.0", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 48", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "dev", GITHUB_REPOSITORY: "feedmepos/payment-service", STATS_D_D: "false", npm_lifecycle_script: "vite build --mode fmmf:dev", npm_package_dependencies__feedmepos_core: "^2.6.0", npm_package_scripts_build_types: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir dist --composite false", npm_package_scripts_build_dts: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.app.json --outDir ./dist && mv ./dist/src/* dist", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.2.12479018", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_dependencies_vue3_lottie: "^2.2.3", npm_package_scripts_test: "jest", npm_config_version_git_message: "v%s", GITHUB_REPOSITORY_ID: "690979260", GITHUB_ACTIONS: "true", STATS_PIP: "false", npm_lifecycle_event: "build:mf:dev", npm_package_devDependencies_jest_transform_stub: "^2.0.0", npm_package_devDependencies_jest_environment_jsdom: "^29.4.1", npm_package_devDependencies__rushstack_eslint_patch: "^1.1.3", npm_package_dependencies_vuedraggable: "^4.1.0", npm_package_version: "1.0.5-beta.2", GITHUB_REF_PROTECTED: "false", npm_config_argv: '{"remain":[],"cooked":["run","deploy:dev"],"original":["deploy:dev"]}', npm_package_devDependencies__types_dinero_js: "^1.9.0", npm_package_dependencies_uuid: "^9.0.0", npm_package_dependencies_buffer: "^6.0.3", npm_config__feedmepos_registry: "https://npm.pkg.github.com/", GITHUB_WORKSPACE: "/home/runner/work/payment-service/payment-service", ACCEPT_EULA: "Y", GITHUB_JOB: "deploy", RUNNER_PERFLOG: "/home/runner/perflog", GITHUB_SHA: "a3f31ef994cc00ae5df3a3d1d96528890e1d2ee2", GITHUB_RUN_ATTEMPT: "1", STATS_D_TC: "true", npm_package_dependencies_vue_router: "^4.2.5", npm_package_exports___style: "./dist/style.css", npm_config_version_git_tag: "true", npm_config_version_git_sign: "", GITHUB_REF: "refs/heads/dev", GITHUB_ACTOR: "Oskang09", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_config_strict_ssl: "true", npm_package_devDependencies_path: "^0.12.7", npm_package_dependencies_qrcode: "^1.5.1", npm_package_dependencies_jszip: "^3.10.1", npm_package_dependencies_jsurl: "^0.1.5", npm_package_dependencies_firebase: "^10.14.0", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_faf453b5-9683-4780-a667-52e90c84c356", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/payment-service/payment-service/mf-portal", GITHUB_ACTOR_ID: "15674107", RUNNER_WORKSPACE: "/home/runner/work/payment-service", npm_execpath: "/usr/local/lib/node_modules/yarn/bin/yarn.js", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", STATS_TIS: "mining", GITHUB_EVENT_NAME: "push", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", ACTIONS_ID_TOKEN_REQUEST_URL: "https://pipelinesghubeus11.actions.githubusercontent.com/uhMzCspeMtZD05BczWutTDpLRkQb1I4q0fwG0tss4R7H4Wpw9s/00000000-0000-0000-0000-000000000000/_apis/distributedtask/hubs/Actions/plans/9beeb7c5-e04f-4124-bcea-e425ebfb0504/jobs/e07742bd-189a-5079-918b-43f8b2f94b89/idtoken?api-version=2.0", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_faf453b5-9683-4780-a667-52e90c84c356", npm_package_exports___types: "./dist/app.d.ts", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", npm_package_devDependencies_postcss: "^8.4.47", npm_package_devDependencies_eslint_plugin_vue: "^9.1.0", npm_package_devDependencies__vue_vue3_jest: "^29.2.5", npm_package_devDependencies__pinia_testing: "^0.1.3", npm_config_save_prefix: "^", npm_config_ignore_optional: "", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.2.12479018", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_devDependencies_cd: "^0.3.3", npm_package_dependencies_rasterizehtml: "^1.3.1", npm_package_dependencies_i18next_http_backend: "^1.4.1", npm_package_scripts_preview: "vite preview", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", MEMORY_PRESSURE_WRITE: "c29tZSAyMDAwMDAgMjAwMDAwMAA=", STATS_EXTP: "https://provjobdprod.z13.web.core.windows.net/settings/provjobdsettings-latest/provjobd.data", INIT_CWD: "/home/runner/work/payment-service/payment-service/mf-portal", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.2.12479018", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_faf453b5-9683-4780-a667-52e90c84c356", npm_package_dependencies_libphonenumber_js: "^1.10.6", npm_package_dependencies__feedmepos_payment_entity: "^0.0.13", NODE_ENV: "production", ENVIRONMENT: "development", FIREBASE_API_KEY: "AIzaSyAj8JdCHtP0Vc5vZobCfgoLzWxPIn0WUG4", FIREBASE_AUTH_DOMAIN: "feedme-dev-4c3ef.firebaseapp.com", FIREBASE_DATABASE_URL: "https://feedme-dev-4c3ef.firebaseio.com", FIREBASE_PROJECT_ID: "feedme-dev-4c3ef", FIREBASE_STORAGE_BUCKET: "feedme-dev-4c3ef.appspot.com", FIREBASE_MESSAGING_SENDER_ID: "458797803788", FIREBASE_APP_ID: "1:458797803788:web:37f2af2926a84288f0c129", FIREBASE_MEASUREMENT_ID: "G-J2QG09D2Q7", ASSET_STORAGE_BUCKET: "feedme-dev-4c3ef.appspot.com", GOOGLE_MAP_API_KEY: "AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4", AUTH_CLIENT_ID: "1a362d621873497b277ea55258cc82594ba148d235257f7bd44ea2acc132d8a4" };
|
149
160
|
/**
|
150
161
|
* @license
|
151
162
|
* Copyright 2017 Google LLC
|
@@ -162,7 +173,7 @@ var at = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_sta
|
|
162
173
|
* See the License for the specific language governing permissions and
|
163
174
|
* limitations under the License.
|
164
175
|
*/
|
165
|
-
const
|
176
|
+
const Ht = function(n) {
|
166
177
|
const e = [];
|
167
178
|
let t = 0;
|
168
179
|
for (let r = 0; r < n.length; r++) {
|
@@ -170,7 +181,7 @@ const Vt = function(n) {
|
|
170
181
|
i < 128 ? e[t++] = i : i < 2048 ? (e[t++] = i >> 6 | 192, e[t++] = i & 63 | 128) : (i & 64512) === 55296 && r + 1 < n.length && (n.charCodeAt(r + 1) & 64512) === 56320 ? (i = 65536 + ((i & 1023) << 10) + (n.charCodeAt(++r) & 1023), e[t++] = i >> 18 | 240, e[t++] = i >> 12 & 63 | 128, e[t++] = i >> 6 & 63 | 128, e[t++] = i & 63 | 128) : (e[t++] = i >> 12 | 224, e[t++] = i >> 6 & 63 | 128, e[t++] = i & 63 | 128);
|
171
182
|
}
|
172
183
|
return e;
|
173
|
-
},
|
184
|
+
}, zn = function(n) {
|
174
185
|
const e = [];
|
175
186
|
let t = 0, r = 0;
|
176
187
|
for (; t < n.length; ) {
|
@@ -189,7 +200,7 @@ const Vt = function(n) {
|
|
189
200
|
}
|
190
201
|
}
|
191
202
|
return e.join("");
|
192
|
-
},
|
203
|
+
}, xt = {
|
193
204
|
/**
|
194
205
|
* Maps bytes to characters.
|
195
206
|
*/
|
@@ -263,7 +274,7 @@ const Vt = function(n) {
|
|
263
274
|
* @return The base64 encoded string.
|
264
275
|
*/
|
265
276
|
encodeString(n, e) {
|
266
|
-
return this.HAS_NATIVE_SUPPORT && !e ? btoa(n) : this.encodeByteArray(
|
277
|
+
return this.HAS_NATIVE_SUPPORT && !e ? btoa(n) : this.encodeByteArray(Ht(n), e);
|
267
278
|
},
|
268
279
|
/**
|
269
280
|
* Base64-decode a string.
|
@@ -274,7 +285,7 @@ const Vt = function(n) {
|
|
274
285
|
* @return string representing the decoded value.
|
275
286
|
*/
|
276
287
|
decodeString(n, e) {
|
277
|
-
return this.HAS_NATIVE_SUPPORT && !e ? atob(n) :
|
288
|
+
return this.HAS_NATIVE_SUPPORT && !e ? atob(n) : zn(this.decodeStringToByteArray(n, e));
|
278
289
|
},
|
279
290
|
/**
|
280
291
|
* Base64-decode a string.
|
@@ -301,7 +312,7 @@ const Vt = function(n) {
|
|
301
312
|
++i;
|
302
313
|
const p = i < n.length ? t[n.charAt(i)] : 64;
|
303
314
|
if (++i, s == null || a == null || l == null || p == null)
|
304
|
-
throw new
|
315
|
+
throw new Zn();
|
305
316
|
const m = s << 2 | a >> 4;
|
306
317
|
if (r.push(m), l !== 64) {
|
307
318
|
const v = a << 4 & 240 | l >> 2;
|
@@ -326,19 +337,19 @@ const Vt = function(n) {
|
|
326
337
|
}
|
327
338
|
}
|
328
339
|
};
|
329
|
-
class
|
340
|
+
class Zn extends Error {
|
330
341
|
constructor() {
|
331
342
|
super(...arguments), this.name = "DecodeBase64StringError";
|
332
343
|
}
|
333
344
|
}
|
334
|
-
const
|
335
|
-
const e =
|
336
|
-
return
|
345
|
+
const $n = function(n) {
|
346
|
+
const e = Ht(n);
|
347
|
+
return xt.encodeByteArray(e, !0);
|
337
348
|
}, le = function(n) {
|
338
|
-
return
|
339
|
-
},
|
349
|
+
return $n(n).replace(/\./g, "");
|
350
|
+
}, jt = function(n) {
|
340
351
|
try {
|
341
|
-
return
|
352
|
+
return xt.decodeString(n, !0);
|
342
353
|
} catch (e) {
|
343
354
|
console.error("base64Decode failed: ", e);
|
344
355
|
}
|
@@ -360,7 +371,7 @@ const zn = function(n) {
|
|
360
371
|
* See the License for the specific language governing permissions and
|
361
372
|
* limitations under the License.
|
362
373
|
*/
|
363
|
-
function
|
374
|
+
function Jn() {
|
364
375
|
if (typeof self < "u")
|
365
376
|
return self;
|
366
377
|
if (typeof window < "u")
|
@@ -385,13 +396,13 @@ function Zn() {
|
|
385
396
|
* See the License for the specific language governing permissions and
|
386
397
|
* limitations under the License.
|
387
398
|
*/
|
388
|
-
const
|
399
|
+
const Xn = () => Jn().__FIREBASE_DEFAULTS__, Yn = () => {
|
389
400
|
if (typeof process > "u" || typeof at > "u")
|
390
401
|
return;
|
391
402
|
const n = at.__FIREBASE_DEFAULTS__;
|
392
403
|
if (n)
|
393
404
|
return JSON.parse(n);
|
394
|
-
},
|
405
|
+
}, Kn = () => {
|
395
406
|
if (typeof document > "u")
|
396
407
|
return;
|
397
408
|
let n;
|
@@ -400,20 +411,20 @@ const $n = () => Zn().__FIREBASE_DEFAULTS__, Jn = () => {
|
|
400
411
|
} catch {
|
401
412
|
return;
|
402
413
|
}
|
403
|
-
const e = n &&
|
414
|
+
const e = n && jt(n[1]);
|
404
415
|
return e && JSON.parse(e);
|
405
416
|
}, ze = () => {
|
406
417
|
try {
|
407
|
-
return
|
418
|
+
return Xn() || Yn() || Kn();
|
408
419
|
} catch (n) {
|
409
420
|
console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${n}`);
|
410
421
|
return;
|
411
422
|
}
|
412
|
-
},
|
423
|
+
}, Vt = (n) => {
|
413
424
|
var e, t;
|
414
425
|
return (t = (e = ze()) === null || e === void 0 ? void 0 : e.emulatorHosts) === null || t === void 0 ? void 0 : t[n];
|
415
|
-
},
|
416
|
-
const e =
|
426
|
+
}, Co = (n) => {
|
427
|
+
const e = Vt(n);
|
417
428
|
if (!e)
|
418
429
|
return;
|
419
430
|
const t = e.lastIndexOf(":");
|
@@ -421,7 +432,7 @@ const $n = () => Zn().__FIREBASE_DEFAULTS__, Jn = () => {
|
|
421
432
|
throw new Error(`Invalid host ${e} with no separate hostname and port!`);
|
422
433
|
const r = parseInt(e.substring(t + 1), 10);
|
423
434
|
return e[0] === "[" ? [e.substring(1, t - 1), r] : [e.substring(0, t), r];
|
424
|
-
},
|
435
|
+
}, Gt = () => {
|
425
436
|
var n;
|
426
437
|
return (n = ze()) === null || n === void 0 ? void 0 : n.config;
|
427
438
|
}, zt = (n) => {
|
@@ -444,7 +455,7 @@ const $n = () => Zn().__FIREBASE_DEFAULTS__, Jn = () => {
|
|
444
455
|
* See the License for the specific language governing permissions and
|
445
456
|
* limitations under the License.
|
446
457
|
*/
|
447
|
-
class
|
458
|
+
class qn {
|
448
459
|
constructor() {
|
449
460
|
this.reject = () => {
|
450
461
|
}, this.resolve = () => {
|
@@ -480,7 +491,7 @@ class Yn {
|
|
480
491
|
* See the License for the specific language governing permissions and
|
481
492
|
* limitations under the License.
|
482
493
|
*/
|
483
|
-
function
|
494
|
+
function No(n, e) {
|
484
495
|
if (n.uid)
|
485
496
|
throw new Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');
|
486
497
|
const t = {
|
@@ -528,33 +539,33 @@ function So(n, e) {
|
|
528
539
|
function f() {
|
529
540
|
return typeof navigator < "u" && typeof navigator.userAgent == "string" ? navigator.userAgent : "";
|
530
541
|
}
|
531
|
-
function
|
542
|
+
function Qn() {
|
532
543
|
return typeof window < "u" && // @ts-ignore Setting up an broadly applicable index signature for Window
|
533
544
|
// just to deal with this case would probably be a bad idea.
|
534
545
|
!!(window.cordova || window.phonegap || window.PhoneGap) && /ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(f());
|
535
546
|
}
|
536
|
-
function
|
547
|
+
function er() {
|
537
548
|
return typeof navigator < "u" && navigator.userAgent === "Cloudflare-Workers";
|
538
549
|
}
|
539
|
-
function
|
550
|
+
function tr() {
|
540
551
|
const n = typeof chrome == "object" ? chrome.runtime : typeof browser == "object" ? browser.runtime : void 0;
|
541
552
|
return typeof n == "object" && n.id !== void 0;
|
542
553
|
}
|
543
|
-
function
|
554
|
+
function nr() {
|
544
555
|
return typeof navigator == "object" && navigator.product === "ReactNative";
|
545
556
|
}
|
546
|
-
function
|
557
|
+
function rr() {
|
547
558
|
const n = f();
|
548
559
|
return n.indexOf("MSIE ") >= 0 || n.indexOf("Trident/") >= 0;
|
549
560
|
}
|
550
|
-
function
|
561
|
+
function ir() {
|
551
562
|
try {
|
552
563
|
return typeof indexedDB == "object";
|
553
564
|
} catch {
|
554
565
|
return !1;
|
555
566
|
}
|
556
567
|
}
|
557
|
-
function
|
568
|
+
function sr() {
|
558
569
|
return new Promise((n, e) => {
|
559
570
|
try {
|
560
571
|
let t = !0;
|
@@ -588,10 +599,10 @@ function rr() {
|
|
588
599
|
* See the License for the specific language governing permissions and
|
589
600
|
* limitations under the License.
|
590
601
|
*/
|
591
|
-
const
|
602
|
+
const or = "FirebaseError";
|
592
603
|
class M extends Error {
|
593
604
|
constructor(e, t, r) {
|
594
|
-
super(t), this.code = e, this.customData = r, this.name =
|
605
|
+
super(t), this.code = e, this.customData = r, this.name = or, Object.setPrototypeOf(this, M.prototype), Error.captureStackTrace && Error.captureStackTrace(this, q.prototype.create);
|
595
606
|
}
|
596
607
|
}
|
597
608
|
class q {
|
@@ -599,18 +610,18 @@ class q {
|
|
599
610
|
this.service = e, this.serviceName = t, this.errors = r;
|
600
611
|
}
|
601
612
|
create(e, ...t) {
|
602
|
-
const r = t[0] || {}, i = `${this.service}/${e}`, s = this.errors[e], o = s ?
|
613
|
+
const r = t[0] || {}, i = `${this.service}/${e}`, s = this.errors[e], o = s ? ar(s, r) : "Error", a = `${this.serviceName}: ${o} (${i}).`;
|
603
614
|
return new M(i, a, r);
|
604
615
|
}
|
605
616
|
}
|
606
|
-
function
|
607
|
-
return n.replace(
|
617
|
+
function ar(n, e) {
|
618
|
+
return n.replace(cr, (t, r) => {
|
608
619
|
const i = e[r];
|
609
620
|
return i != null ? String(i) : `<${r}?>`;
|
610
621
|
});
|
611
622
|
}
|
612
|
-
const
|
613
|
-
function
|
623
|
+
const cr = /\{\$([^}]+)}/g;
|
624
|
+
function lr(n) {
|
614
625
|
for (const e in n)
|
615
626
|
if (Object.prototype.hasOwnProperty.call(n, e))
|
616
627
|
return !1;
|
@@ -662,11 +673,11 @@ function Q(n) {
|
|
662
673
|
}) : e.push(encodeURIComponent(t) + "=" + encodeURIComponent(r));
|
663
674
|
return e.length ? "&" + e.join("&") : "";
|
664
675
|
}
|
665
|
-
function
|
666
|
-
const t = new
|
676
|
+
function dr(n, e) {
|
677
|
+
const t = new ur(n, e);
|
667
678
|
return t.subscribe.bind(t);
|
668
679
|
}
|
669
|
-
class
|
680
|
+
class ur {
|
670
681
|
/**
|
671
682
|
* @param executor Function which can make calls to a single Observer
|
672
683
|
* as a proxy.
|
@@ -704,7 +715,7 @@ class lr {
|
|
704
715
|
let i;
|
705
716
|
if (e === void 0 && t === void 0 && r === void 0)
|
706
717
|
throw new Error("Missing Observer.");
|
707
|
-
|
718
|
+
hr(e, [
|
708
719
|
"next",
|
709
720
|
"error",
|
710
721
|
"complete"
|
@@ -750,7 +761,7 @@ class lr {
|
|
750
761
|
}));
|
751
762
|
}
|
752
763
|
}
|
753
|
-
function
|
764
|
+
function hr(n, e) {
|
754
765
|
if (typeof n != "object" || n === null)
|
755
766
|
return !1;
|
756
767
|
for (const t of e)
|
@@ -779,7 +790,7 @@ function Re() {
|
|
779
790
|
function z(n) {
|
780
791
|
return n && n._delegate ? n._delegate : n;
|
781
792
|
}
|
782
|
-
class
|
793
|
+
class G {
|
783
794
|
/**
|
784
795
|
*
|
785
796
|
* @param name The public service name, e.g. app, auth, firestore, database
|
@@ -835,7 +846,7 @@ const L = "[DEFAULT]";
|
|
835
846
|
* See the License for the specific language governing permissions and
|
836
847
|
* limitations under the License.
|
837
848
|
*/
|
838
|
-
class
|
849
|
+
class pr {
|
839
850
|
constructor(e, t) {
|
840
851
|
this.name = e, this.container = t, this.component = null, this.instances = /* @__PURE__ */ new Map(), this.instancesDeferred = /* @__PURE__ */ new Map(), this.instancesOptions = /* @__PURE__ */ new Map(), this.onInitCallbacks = /* @__PURE__ */ new Map();
|
841
852
|
}
|
@@ -846,7 +857,7 @@ class ur {
|
|
846
857
|
get(e) {
|
847
858
|
const t = this.normalizeInstanceIdentifier(e);
|
848
859
|
if (!this.instancesDeferred.has(t)) {
|
849
|
-
const r = new
|
860
|
+
const r = new qn();
|
850
861
|
if (this.instancesDeferred.set(t, r), this.isInitialized(t) || this.shouldAutoInitialize())
|
851
862
|
try {
|
852
863
|
const i = this.getOrInitializeService({
|
@@ -886,7 +897,7 @@ class ur {
|
|
886
897
|
if (this.component)
|
887
898
|
throw Error(`Component for ${this.name} has already been provided`);
|
888
899
|
if (this.component = e, !!this.shouldAutoInitialize()) {
|
889
|
-
if (
|
900
|
+
if (mr(e))
|
890
901
|
try {
|
891
902
|
this.getOrInitializeService({ instanceIdentifier: L });
|
892
903
|
} catch {
|
@@ -973,7 +984,7 @@ class ur {
|
|
973
984
|
getOrInitializeService({ instanceIdentifier: e, options: t = {} }) {
|
974
985
|
let r = this.instances.get(e);
|
975
986
|
if (!r && this.component && (r = this.component.instanceFactory(this.container, {
|
976
|
-
instanceIdentifier:
|
987
|
+
instanceIdentifier: fr(e),
|
977
988
|
options: t
|
978
989
|
}), this.instances.set(e, r), this.instancesOptions.set(e, t), this.invokeOnInitCallbacks(r, e), this.component.onInstanceCreated))
|
979
990
|
try {
|
@@ -989,10 +1000,10 @@ class ur {
|
|
989
1000
|
return !!this.component && this.component.instantiationMode !== "EXPLICIT";
|
990
1001
|
}
|
991
1002
|
}
|
992
|
-
function
|
1003
|
+
function fr(n) {
|
993
1004
|
return n === L ? void 0 : n;
|
994
1005
|
}
|
995
|
-
function
|
1006
|
+
function mr(n) {
|
996
1007
|
return n.instantiationMode === "EAGER";
|
997
1008
|
}
|
998
1009
|
/**
|
@@ -1011,7 +1022,7 @@ function pr(n) {
|
|
1011
1022
|
* See the License for the specific language governing permissions and
|
1012
1023
|
* limitations under the License.
|
1013
1024
|
*/
|
1014
|
-
class
|
1025
|
+
class _r {
|
1015
1026
|
constructor(e) {
|
1016
1027
|
this.name = e, this.providers = /* @__PURE__ */ new Map();
|
1017
1028
|
}
|
@@ -1043,7 +1054,7 @@ class fr {
|
|
1043
1054
|
getProvider(e) {
|
1044
1055
|
if (this.providers.has(e))
|
1045
1056
|
return this.providers.get(e);
|
1046
|
-
const t = new
|
1057
|
+
const t = new pr(e, this);
|
1047
1058
|
return this.providers.set(e, t), t;
|
1048
1059
|
}
|
1049
1060
|
getProviders() {
|
@@ -1070,23 +1081,23 @@ var h;
|
|
1070
1081
|
(function(n) {
|
1071
1082
|
n[n.DEBUG = 0] = "DEBUG", n[n.VERBOSE = 1] = "VERBOSE", n[n.INFO = 2] = "INFO", n[n.WARN = 3] = "WARN", n[n.ERROR = 4] = "ERROR", n[n.SILENT = 5] = "SILENT";
|
1072
1083
|
})(h || (h = {}));
|
1073
|
-
const
|
1084
|
+
const gr = {
|
1074
1085
|
debug: h.DEBUG,
|
1075
1086
|
verbose: h.VERBOSE,
|
1076
1087
|
info: h.INFO,
|
1077
1088
|
warn: h.WARN,
|
1078
1089
|
error: h.ERROR,
|
1079
1090
|
silent: h.SILENT
|
1080
|
-
},
|
1091
|
+
}, vr = h.INFO, Ir = {
|
1081
1092
|
[h.DEBUG]: "log",
|
1082
1093
|
[h.VERBOSE]: "log",
|
1083
1094
|
[h.INFO]: "info",
|
1084
1095
|
[h.WARN]: "warn",
|
1085
1096
|
[h.ERROR]: "error"
|
1086
|
-
},
|
1097
|
+
}, br = (n, e, ...t) => {
|
1087
1098
|
if (e < n.logLevel)
|
1088
1099
|
return;
|
1089
|
-
const r = (/* @__PURE__ */ new Date()).toISOString(), i =
|
1100
|
+
const r = (/* @__PURE__ */ new Date()).toISOString(), i = Ir[e];
|
1090
1101
|
if (i)
|
1091
1102
|
console[i](`[${r}] ${n.name}:`, ...t);
|
1092
1103
|
else
|
@@ -1100,7 +1111,7 @@ class Zt {
|
|
1100
1111
|
* @param name The name that the logs will be associated with
|
1101
1112
|
*/
|
1102
1113
|
constructor(e) {
|
1103
|
-
this.name = e, this._logLevel =
|
1114
|
+
this.name = e, this._logLevel = vr, this._logHandler = br, this._userLogHandler = null;
|
1104
1115
|
}
|
1105
1116
|
get logLevel() {
|
1106
1117
|
return this._logLevel;
|
@@ -1112,7 +1123,7 @@ class Zt {
|
|
1112
1123
|
}
|
1113
1124
|
// Workaround for setter/getter having to be the same type.
|
1114
1125
|
setLogLevel(e) {
|
1115
|
-
this._logLevel = typeof e == "string" ?
|
1126
|
+
this._logLevel = typeof e == "string" ? gr[e] : e;
|
1116
1127
|
}
|
1117
1128
|
get logHandler() {
|
1118
1129
|
return this._logHandler;
|
@@ -1147,9 +1158,9 @@ class Zt {
|
|
1147
1158
|
this._userLogHandler && this._userLogHandler(this, h.ERROR, ...e), this._logHandler(this, h.ERROR, ...e);
|
1148
1159
|
}
|
1149
1160
|
}
|
1150
|
-
const
|
1161
|
+
const yr = (n, e) => e.some((t) => n instanceof t);
|
1151
1162
|
let lt, dt;
|
1152
|
-
function
|
1163
|
+
function Er() {
|
1153
1164
|
return lt || (lt = [
|
1154
1165
|
IDBDatabase,
|
1155
1166
|
IDBObjectStore,
|
@@ -1158,15 +1169,15 @@ function br() {
|
|
1158
1169
|
IDBTransaction
|
1159
1170
|
]);
|
1160
1171
|
}
|
1161
|
-
function
|
1172
|
+
function Tr() {
|
1162
1173
|
return dt || (dt = [
|
1163
1174
|
IDBCursor.prototype.advance,
|
1164
1175
|
IDBCursor.prototype.continue,
|
1165
1176
|
IDBCursor.prototype.continuePrimaryKey
|
1166
1177
|
]);
|
1167
1178
|
}
|
1168
|
-
const $t = /* @__PURE__ */ new WeakMap(), Me = /* @__PURE__ */ new WeakMap(), Jt = /* @__PURE__ */ new WeakMap(),
|
1169
|
-
function
|
1179
|
+
const $t = /* @__PURE__ */ new WeakMap(), Me = /* @__PURE__ */ new WeakMap(), Jt = /* @__PURE__ */ new WeakMap(), ke = /* @__PURE__ */ new WeakMap(), Ze = /* @__PURE__ */ new WeakMap();
|
1180
|
+
function wr(n) {
|
1170
1181
|
const e = new Promise((t, r) => {
|
1171
1182
|
const i = () => {
|
1172
1183
|
n.removeEventListener("success", s), n.removeEventListener("error", o);
|
@@ -1182,7 +1193,7 @@ function Er(n) {
|
|
1182
1193
|
}).catch(() => {
|
1183
1194
|
}), Ze.set(e, n), e;
|
1184
1195
|
}
|
1185
|
-
function
|
1196
|
+
function Rr(n) {
|
1186
1197
|
if (Me.has(n))
|
1187
1198
|
return;
|
1188
1199
|
const e = new Promise((t, r) => {
|
@@ -1216,32 +1227,32 @@ let Le = {
|
|
1216
1227
|
return n instanceof IDBTransaction && (e === "done" || e === "store") ? !0 : e in n;
|
1217
1228
|
}
|
1218
1229
|
};
|
1219
|
-
function
|
1230
|
+
function kr(n) {
|
1220
1231
|
Le = n(Le);
|
1221
1232
|
}
|
1222
|
-
function
|
1233
|
+
function Ar(n) {
|
1223
1234
|
return n === IDBDatabase.prototype.transaction && !("objectStoreNames" in IDBTransaction.prototype) ? function(e, ...t) {
|
1224
|
-
const r = n.call(
|
1235
|
+
const r = n.call(Ae(this), e, ...t);
|
1225
1236
|
return Jt.set(r, e.sort ? e.sort() : [e]), N(r);
|
1226
|
-
} :
|
1227
|
-
return n.apply(
|
1237
|
+
} : Tr().includes(n) ? function(...e) {
|
1238
|
+
return n.apply(Ae(this), e), N($t.get(this));
|
1228
1239
|
} : function(...e) {
|
1229
|
-
return N(n.apply(
|
1240
|
+
return N(n.apply(Ae(this), e));
|
1230
1241
|
};
|
1231
1242
|
}
|
1232
|
-
function
|
1233
|
-
return typeof n == "function" ?
|
1243
|
+
function Sr(n) {
|
1244
|
+
return typeof n == "function" ? Ar(n) : (n instanceof IDBTransaction && Rr(n), yr(n, Er()) ? new Proxy(n, Le) : n);
|
1234
1245
|
}
|
1235
1246
|
function N(n) {
|
1236
1247
|
if (n instanceof IDBRequest)
|
1237
|
-
return
|
1238
|
-
if (
|
1239
|
-
return
|
1240
|
-
const e =
|
1241
|
-
return e !== n && (
|
1242
|
-
}
|
1243
|
-
const
|
1244
|
-
function
|
1248
|
+
return wr(n);
|
1249
|
+
if (ke.has(n))
|
1250
|
+
return ke.get(n);
|
1251
|
+
const e = Sr(n);
|
1252
|
+
return e !== n && (ke.set(n, e), Ze.set(e, n)), e;
|
1253
|
+
}
|
1254
|
+
const Ae = (n) => Ze.get(n);
|
1255
|
+
function Or(n, e, { blocked: t, upgrade: r, blocking: i, terminated: s } = {}) {
|
1245
1256
|
const o = indexedDB.open(n, e), a = N(o);
|
1246
1257
|
return r && o.addEventListener("upgradeneeded", (c) => {
|
1247
1258
|
r(N(o.result), c.oldVersion, c.newVersion, N(o.transaction), c);
|
@@ -1255,16 +1266,16 @@ function kr(n, e, { blocked: t, upgrade: r, blocking: i, terminated: s } = {}) {
|
|
1255
1266
|
}).catch(() => {
|
1256
1267
|
}), a;
|
1257
1268
|
}
|
1258
|
-
const
|
1269
|
+
const Cr = ["get", "getKey", "getAll", "getAllKeys", "count"], Nr = ["put", "add", "delete", "clear"], Se = /* @__PURE__ */ new Map();
|
1259
1270
|
function ut(n, e) {
|
1260
1271
|
if (!(n instanceof IDBDatabase && !(e in n) && typeof e == "string"))
|
1261
1272
|
return;
|
1262
1273
|
if (Se.get(e))
|
1263
1274
|
return Se.get(e);
|
1264
|
-
const t = e.replace(/FromIndex$/, ""), r = e !== t, i =
|
1275
|
+
const t = e.replace(/FromIndex$/, ""), r = e !== t, i = Nr.includes(t);
|
1265
1276
|
if (
|
1266
1277
|
// Bail if the target doesn't exist on the target. Eg, getAll isn't in Edge.
|
1267
|
-
!(t in (r ? IDBIndex : IDBObjectStore).prototype) || !(i ||
|
1278
|
+
!(t in (r ? IDBIndex : IDBObjectStore).prototype) || !(i || Cr.includes(t))
|
1268
1279
|
)
|
1269
1280
|
return;
|
1270
1281
|
const s = async function(o, ...a) {
|
@@ -1277,7 +1288,7 @@ function ut(n, e) {
|
|
1277
1288
|
};
|
1278
1289
|
return Se.set(e, s), s;
|
1279
1290
|
}
|
1280
|
-
|
1291
|
+
kr((n) => ({
|
1281
1292
|
...n,
|
1282
1293
|
get: (e, t, r) => ut(e, t) || n.get(e, t, r),
|
1283
1294
|
has: (e, t) => !!ut(e, t) || n.has(e, t)
|
@@ -1298,7 +1309,7 @@ wr((n) => ({
|
|
1298
1309
|
* See the License for the specific language governing permissions and
|
1299
1310
|
* limitations under the License.
|
1300
1311
|
*/
|
1301
|
-
class
|
1312
|
+
class Dr {
|
1302
1313
|
constructor(e) {
|
1303
1314
|
this.container = e;
|
1304
1315
|
}
|
@@ -1306,7 +1317,7 @@ class Cr {
|
|
1306
1317
|
// auth token refresh, and installations will send this string.
|
1307
1318
|
getPlatformInfoString() {
|
1308
1319
|
return this.container.getProviders().map((t) => {
|
1309
|
-
if (
|
1320
|
+
if (Pr(t)) {
|
1310
1321
|
const r = t.getImmediate();
|
1311
1322
|
return `${r.library}/${r.version}`;
|
1312
1323
|
} else
|
@@ -1314,7 +1325,7 @@ class Cr {
|
|
1314
1325
|
}).filter((t) => t).join(" ");
|
1315
1326
|
}
|
1316
1327
|
}
|
1317
|
-
function
|
1328
|
+
function Pr(n) {
|
1318
1329
|
const e = n.getComponent();
|
1319
1330
|
return (e == null ? void 0 : e.type) === "VERSION";
|
1320
1331
|
}
|
@@ -1335,7 +1346,7 @@ const Ue = "@firebase/app", ht = "0.10.13";
|
|
1335
1346
|
* See the License for the specific language governing permissions and
|
1336
1347
|
* limitations under the License.
|
1337
1348
|
*/
|
1338
|
-
const T = new Zt("@firebase/app"),
|
1349
|
+
const T = new Zt("@firebase/app"), Mr = "@firebase/app-compat", Lr = "@firebase/analytics-compat", Ur = "@firebase/analytics", Br = "@firebase/app-check-compat", Fr = "@firebase/app-check", Wr = "@firebase/auth", Hr = "@firebase/auth-compat", xr = "@firebase/database", jr = "@firebase/data-connect", Vr = "@firebase/database-compat", Gr = "@firebase/functions", zr = "@firebase/functions-compat", Zr = "@firebase/installations", $r = "@firebase/installations-compat", Jr = "@firebase/messaging", Xr = "@firebase/messaging-compat", Yr = "@firebase/performance", Kr = "@firebase/performance-compat", qr = "@firebase/remote-config", Qr = "@firebase/remote-config-compat", ei = "@firebase/storage", ti = "@firebase/storage-compat", ni = "@firebase/firestore", ri = "@firebase/vertexai-preview", ii = "@firebase/firestore-compat", si = "firebase", oi = "10.14.1";
|
1339
1350
|
/**
|
1340
1351
|
* @license
|
1341
1352
|
* Copyright 2019 Google LLC
|
@@ -1352,35 +1363,35 @@ const T = new Zt("@firebase/app"), Dr = "@firebase/app-compat", Pr = "@firebase/
|
|
1352
1363
|
* See the License for the specific language governing permissions and
|
1353
1364
|
* limitations under the License.
|
1354
1365
|
*/
|
1355
|
-
const Be = "[DEFAULT]",
|
1366
|
+
const Be = "[DEFAULT]", ai = {
|
1356
1367
|
[Ue]: "fire-core",
|
1357
|
-
[
|
1358
|
-
[
|
1359
|
-
[
|
1360
|
-
[
|
1361
|
-
[
|
1362
|
-
[
|
1363
|
-
[
|
1364
|
-
[
|
1365
|
-
[
|
1366
|
-
[
|
1367
|
-
[
|
1368
|
-
[
|
1369
|
-
[
|
1370
|
-
[
|
1371
|
-
[
|
1372
|
-
[
|
1373
|
-
[
|
1374
|
-
[
|
1375
|
-
[
|
1376
|
-
[
|
1377
|
-
[
|
1378
|
-
[
|
1379
|
-
[
|
1380
|
-
[
|
1381
|
-
[
|
1368
|
+
[Mr]: "fire-core-compat",
|
1369
|
+
[Ur]: "fire-analytics",
|
1370
|
+
[Lr]: "fire-analytics-compat",
|
1371
|
+
[Fr]: "fire-app-check",
|
1372
|
+
[Br]: "fire-app-check-compat",
|
1373
|
+
[Wr]: "fire-auth",
|
1374
|
+
[Hr]: "fire-auth-compat",
|
1375
|
+
[xr]: "fire-rtdb",
|
1376
|
+
[jr]: "fire-data-connect",
|
1377
|
+
[Vr]: "fire-rtdb-compat",
|
1378
|
+
[Gr]: "fire-fn",
|
1379
|
+
[zr]: "fire-fn-compat",
|
1380
|
+
[Zr]: "fire-iid",
|
1381
|
+
[$r]: "fire-iid-compat",
|
1382
|
+
[Jr]: "fire-fcm",
|
1383
|
+
[Xr]: "fire-fcm-compat",
|
1384
|
+
[Yr]: "fire-perf",
|
1385
|
+
[Kr]: "fire-perf-compat",
|
1386
|
+
[qr]: "fire-rc",
|
1387
|
+
[Qr]: "fire-rc-compat",
|
1388
|
+
[ei]: "fire-gcs",
|
1389
|
+
[ti]: "fire-gcs-compat",
|
1390
|
+
[ni]: "fire-fst",
|
1391
|
+
[ii]: "fire-fst-compat",
|
1392
|
+
[ri]: "fire-vertex",
|
1382
1393
|
"fire-js": "fire-js",
|
1383
|
-
[
|
1394
|
+
[si]: "fire-js-all"
|
1384
1395
|
};
|
1385
1396
|
/**
|
1386
1397
|
* @license
|
@@ -1398,7 +1409,7 @@ const Be = "[DEFAULT]", si = {
|
|
1398
1409
|
* See the License for the specific language governing permissions and
|
1399
1410
|
* limitations under the License.
|
1400
1411
|
*/
|
1401
|
-
const ue = /* @__PURE__ */ new Map(),
|
1412
|
+
const ue = /* @__PURE__ */ new Map(), ci = /* @__PURE__ */ new Map(), Fe = /* @__PURE__ */ new Map();
|
1402
1413
|
function pt(n, e) {
|
1403
1414
|
try {
|
1404
1415
|
n.container.addComponent(e);
|
@@ -1413,7 +1424,7 @@ function X(n) {
|
|
1413
1424
|
Fe.set(e, n);
|
1414
1425
|
for (const t of ue.values())
|
1415
1426
|
pt(t, n);
|
1416
|
-
for (const t of
|
1427
|
+
for (const t of ci.values())
|
1417
1428
|
pt(t, n);
|
1418
1429
|
return !0;
|
1419
1430
|
}
|
@@ -1440,7 +1451,7 @@ function I(n) {
|
|
1440
1451
|
* See the License for the specific language governing permissions and
|
1441
1452
|
* limitations under the License.
|
1442
1453
|
*/
|
1443
|
-
const
|
1454
|
+
const li = {
|
1444
1455
|
"no-app": "No Firebase App '{$appName}' has been created - call initializeApp() first",
|
1445
1456
|
"bad-app-name": "Illegal App name: '{$appName}'",
|
1446
1457
|
"duplicate-app": "Firebase App named '{$appName}' already exists with different options or config",
|
@@ -1455,7 +1466,7 @@ const ai = {
|
|
1455
1466
|
"idb-delete": "Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.",
|
1456
1467
|
"finalization-registry-not-supported": "FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.",
|
1457
1468
|
"invalid-server-app-environment": "FirebaseServerApp is not for use in browser environments."
|
1458
|
-
}, D = new q("app", "Firebase",
|
1469
|
+
}, D = new q("app", "Firebase", li);
|
1459
1470
|
/**
|
1460
1471
|
* @license
|
1461
1472
|
* Copyright 2019 Google LLC
|
@@ -1472,9 +1483,9 @@ const ai = {
|
|
1472
1483
|
* See the License for the specific language governing permissions and
|
1473
1484
|
* limitations under the License.
|
1474
1485
|
*/
|
1475
|
-
class
|
1486
|
+
class di {
|
1476
1487
|
constructor(e, t, r) {
|
1477
|
-
this._isDeleted = !1, this._options = Object.assign({}, e), this._config = Object.assign({}, t), this._name = t.name, this._automaticDataCollectionEnabled = t.automaticDataCollectionEnabled, this._container = r, this.container.addComponent(new
|
1488
|
+
this._isDeleted = !1, this._options = Object.assign({}, e), this._config = Object.assign({}, t), this._name = t.name, this._automaticDataCollectionEnabled = t.automaticDataCollectionEnabled, this._container = r, this.container.addComponent(new G(
|
1478
1489
|
"app",
|
1479
1490
|
() => this,
|
1480
1491
|
"PUBLIC"
|
@@ -1530,7 +1541,7 @@ class ci {
|
|
1530
1541
|
* See the License for the specific language governing permissions and
|
1531
1542
|
* limitations under the License.
|
1532
1543
|
*/
|
1533
|
-
const ee =
|
1544
|
+
const ee = oi;
|
1534
1545
|
function Yt(n, e = {}) {
|
1535
1546
|
let t = n;
|
1536
1547
|
typeof e != "object" && (e = { name: e });
|
@@ -1539,7 +1550,7 @@ function Yt(n, e = {}) {
|
|
1539
1550
|
throw D.create("bad-app-name", {
|
1540
1551
|
appName: String(i)
|
1541
1552
|
});
|
1542
|
-
if (t || (t =
|
1553
|
+
if (t || (t = Gt()), !t)
|
1543
1554
|
throw D.create(
|
1544
1555
|
"no-options"
|
1545
1556
|
/* AppError.NO_OPTIONS */
|
@@ -1550,23 +1561,23 @@ function Yt(n, e = {}) {
|
|
1550
1561
|
return s;
|
1551
1562
|
throw D.create("duplicate-app", { appName: i });
|
1552
1563
|
}
|
1553
|
-
const o = new
|
1564
|
+
const o = new _r(i);
|
1554
1565
|
for (const c of Fe.values())
|
1555
1566
|
o.addComponent(c);
|
1556
|
-
const a = new
|
1567
|
+
const a = new di(t, r, o);
|
1557
1568
|
return ue.set(i, a), a;
|
1558
1569
|
}
|
1559
|
-
function
|
1570
|
+
function ui(n = Be) {
|
1560
1571
|
const e = ue.get(n);
|
1561
|
-
if (!e && n === Be &&
|
1572
|
+
if (!e && n === Be && Gt())
|
1562
1573
|
return Yt();
|
1563
1574
|
if (!e)
|
1564
1575
|
throw D.create("no-app", { appName: n });
|
1565
1576
|
return e;
|
1566
1577
|
}
|
1567
|
-
function
|
1578
|
+
function H(n, e, t) {
|
1568
1579
|
var r;
|
1569
|
-
let i = (r =
|
1580
|
+
let i = (r = ai[n]) !== null && r !== void 0 ? r : n;
|
1570
1581
|
t && (i += `-${t}`);
|
1571
1582
|
const s = i.match(/\s|\//), o = e.match(/\s|\//);
|
1572
1583
|
if (s || o) {
|
@@ -1576,7 +1587,7 @@ function V(n, e, t) {
|
|
1576
1587
|
s && a.push(`library name "${i}" contains illegal characters (whitespace or "/")`), s && o && a.push("and"), o && a.push(`version name "${e}" contains illegal characters (whitespace or "/")`), T.warn(a.join(" "));
|
1577
1588
|
return;
|
1578
1589
|
}
|
1579
|
-
X(new
|
1590
|
+
X(new G(
|
1580
1591
|
`${i}-version`,
|
1581
1592
|
() => ({ library: i, version: e }),
|
1582
1593
|
"VERSION"
|
@@ -1599,10 +1610,10 @@ function V(n, e, t) {
|
|
1599
1610
|
* See the License for the specific language governing permissions and
|
1600
1611
|
* limitations under the License.
|
1601
1612
|
*/
|
1602
|
-
const
|
1613
|
+
const hi = "firebase-heartbeat-database", pi = 1, Y = "firebase-heartbeat-store";
|
1603
1614
|
let Oe = null;
|
1604
1615
|
function Kt() {
|
1605
|
-
return Oe || (Oe =
|
1616
|
+
return Oe || (Oe = Or(hi, pi, {
|
1606
1617
|
upgrade: (n, e) => {
|
1607
1618
|
switch (e) {
|
1608
1619
|
case 0:
|
@@ -1619,7 +1630,7 @@ function Kt() {
|
|
1619
1630
|
});
|
1620
1631
|
})), Oe;
|
1621
1632
|
}
|
1622
|
-
async function
|
1633
|
+
async function fi(n) {
|
1623
1634
|
try {
|
1624
1635
|
const t = (await Kt()).transaction(Y), r = await t.objectStore(Y).get(qt(n));
|
1625
1636
|
return await t.done, r;
|
@@ -1668,12 +1679,12 @@ function qt(n) {
|
|
1668
1679
|
* See the License for the specific language governing permissions and
|
1669
1680
|
* limitations under the License.
|
1670
1681
|
*/
|
1671
|
-
const
|
1672
|
-
class
|
1682
|
+
const mi = 1024, _i = 30 * 24 * 60 * 60 * 1e3;
|
1683
|
+
class gi {
|
1673
1684
|
constructor(e) {
|
1674
1685
|
this.container = e, this._heartbeatsCache = null;
|
1675
1686
|
const t = this.container.getProvider("app").getImmediate();
|
1676
|
-
this._storage = new
|
1687
|
+
this._storage = new Ii(t), this._heartbeatsCachePromise = this._storage.read().then((r) => (this._heartbeatsCache = r, r));
|
1677
1688
|
}
|
1678
1689
|
/**
|
1679
1690
|
* Called to report a heartbeat. The function will generate
|
@@ -1688,7 +1699,7 @@ class mi {
|
|
1688
1699
|
const i = this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(), s = mt();
|
1689
1700
|
return ((e = this._heartbeatsCache) === null || e === void 0 ? void 0 : e.heartbeats) == null && (this._heartbeatsCache = await this._heartbeatsCachePromise, ((t = this._heartbeatsCache) === null || t === void 0 ? void 0 : t.heartbeats) == null) || this._heartbeatsCache.lastSentHeartbeatDate === s || this._heartbeatsCache.heartbeats.some((o) => o.date === s) ? void 0 : (this._heartbeatsCache.heartbeats.push({ date: s, agent: i }), this._heartbeatsCache.heartbeats = this._heartbeatsCache.heartbeats.filter((o) => {
|
1690
1701
|
const a = new Date(o.date).valueOf();
|
1691
|
-
return Date.now() - a <=
|
1702
|
+
return Date.now() - a <= _i;
|
1692
1703
|
}), this._storage.overwrite(this._heartbeatsCache));
|
1693
1704
|
} catch (r) {
|
1694
1705
|
T.warn(r);
|
@@ -1706,7 +1717,7 @@ class mi {
|
|
1706
1717
|
try {
|
1707
1718
|
if (this._heartbeatsCache === null && await this._heartbeatsCachePromise, ((e = this._heartbeatsCache) === null || e === void 0 ? void 0 : e.heartbeats) == null || this._heartbeatsCache.heartbeats.length === 0)
|
1708
1719
|
return "";
|
1709
|
-
const t = mt(), { heartbeatsToSend: r, unsentEntries: i } =
|
1720
|
+
const t = mt(), { heartbeatsToSend: r, unsentEntries: i } = vi(this._heartbeatsCache.heartbeats), s = le(JSON.stringify({ version: 2, heartbeats: r }));
|
1710
1721
|
return this._heartbeatsCache.lastSentHeartbeatDate = t, i.length > 0 ? (this._heartbeatsCache.heartbeats = i, await this._storage.overwrite(this._heartbeatsCache)) : (this._heartbeatsCache.heartbeats = [], this._storage.overwrite(this._heartbeatsCache)), s;
|
1711
1722
|
} catch (t) {
|
1712
1723
|
return T.warn(t), "";
|
@@ -1716,7 +1727,7 @@ class mi {
|
|
1716
1727
|
function mt() {
|
1717
1728
|
return (/* @__PURE__ */ new Date()).toISOString().substring(0, 10);
|
1718
1729
|
}
|
1719
|
-
function
|
1730
|
+
function vi(n, e = mi) {
|
1720
1731
|
const t = [];
|
1721
1732
|
let r = n.slice();
|
1722
1733
|
for (const i of n) {
|
@@ -1740,19 +1751,19 @@ function _i(n, e = pi) {
|
|
1740
1751
|
unsentEntries: r
|
1741
1752
|
};
|
1742
1753
|
}
|
1743
|
-
class
|
1754
|
+
class Ii {
|
1744
1755
|
constructor(e) {
|
1745
1756
|
this.app = e, this._canUseIndexedDBPromise = this.runIndexedDBEnvironmentCheck();
|
1746
1757
|
}
|
1747
1758
|
async runIndexedDBEnvironmentCheck() {
|
1748
|
-
return
|
1759
|
+
return ir() ? sr().then(() => !0).catch(() => !1) : !1;
|
1749
1760
|
}
|
1750
1761
|
/**
|
1751
1762
|
* Read all heartbeats.
|
1752
1763
|
*/
|
1753
1764
|
async read() {
|
1754
1765
|
if (await this._canUseIndexedDBPromise) {
|
1755
|
-
const t = await
|
1766
|
+
const t = await fi(this.app);
|
1756
1767
|
return t != null && t.heartbeats ? t : { heartbeats: [] };
|
1757
1768
|
} else
|
1758
1769
|
return { heartbeats: [] };
|
@@ -1807,21 +1818,21 @@ function _t(n) {
|
|
1807
1818
|
* See the License for the specific language governing permissions and
|
1808
1819
|
* limitations under the License.
|
1809
1820
|
*/
|
1810
|
-
function
|
1811
|
-
X(new
|
1821
|
+
function bi(n) {
|
1822
|
+
X(new G(
|
1812
1823
|
"platform-logger",
|
1813
|
-
(e) => new
|
1824
|
+
(e) => new Dr(e),
|
1814
1825
|
"PRIVATE"
|
1815
1826
|
/* ComponentType.PRIVATE */
|
1816
|
-
)), X(new
|
1827
|
+
)), X(new G(
|
1817
1828
|
"heartbeat",
|
1818
|
-
(e) => new
|
1829
|
+
(e) => new gi(e),
|
1819
1830
|
"PRIVATE"
|
1820
1831
|
/* ComponentType.PRIVATE */
|
1821
|
-
)),
|
1832
|
+
)), H(Ue, ht, n), H(Ue, ht, "esm2017"), H("fire-js", "");
|
1822
1833
|
}
|
1823
|
-
|
1824
|
-
var
|
1834
|
+
bi("");
|
1835
|
+
var yi = "firebase", Ei = "10.14.1";
|
1825
1836
|
/**
|
1826
1837
|
* @license
|
1827
1838
|
* Copyright 2020 Google LLC
|
@@ -1838,7 +1849,7 @@ var Ii = "firebase", bi = "10.14.1";
|
|
1838
1849
|
* See the License for the specific language governing permissions and
|
1839
1850
|
* limitations under the License.
|
1840
1851
|
*/
|
1841
|
-
|
1852
|
+
H(yi, Ei, "app");
|
1842
1853
|
var gt = function() {
|
1843
1854
|
return gt = Object.assign || function(e) {
|
1844
1855
|
for (var t, r = 1, i = arguments.length; r < i; r++) {
|
@@ -1861,7 +1872,7 @@ function Qt() {
|
|
1861
1872
|
"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."
|
1862
1873
|
};
|
1863
1874
|
}
|
1864
|
-
const
|
1875
|
+
const Ti = Qt, en = new q("auth", "Firebase", Qt());
|
1865
1876
|
/**
|
1866
1877
|
* @license
|
1867
1878
|
* Copyright 2020 Google LLC
|
@@ -1879,7 +1890,7 @@ const yi = Qt, en = new q("auth", "Firebase", Qt());
|
|
1879
1890
|
* limitations under the License.
|
1880
1891
|
*/
|
1881
1892
|
const he = new Zt("@firebase/auth");
|
1882
|
-
function
|
1893
|
+
function wi(n, ...e) {
|
1883
1894
|
he.logLevel <= h.WARN && he.warn(`Auth (${ee}): ${n}`, ...e);
|
1884
1895
|
}
|
1885
1896
|
function se(n, ...e) {
|
@@ -1908,7 +1919,7 @@ function _(n, ...e) {
|
|
1908
1919
|
return Je(n, ...e);
|
1909
1920
|
}
|
1910
1921
|
function tn(n, e, t) {
|
1911
|
-
const r = Object.assign(Object.assign({},
|
1922
|
+
const r = Object.assign(Object.assign({}, Ti()), { [e]: t });
|
1912
1923
|
return new q("auth", "Firebase", r).create(e, {
|
1913
1924
|
appName: n.name
|
1914
1925
|
});
|
@@ -1950,11 +1961,11 @@ function R(n, e) {
|
|
1950
1961
|
* See the License for the specific language governing permissions and
|
1951
1962
|
* limitations under the License.
|
1952
1963
|
*/
|
1953
|
-
function
|
1964
|
+
function We() {
|
1954
1965
|
var n;
|
1955
1966
|
return typeof self < "u" && ((n = self.location) === null || n === void 0 ? void 0 : n.href) || "";
|
1956
1967
|
}
|
1957
|
-
function
|
1968
|
+
function Ri() {
|
1958
1969
|
return vt() === "http:" || vt() === "https:";
|
1959
1970
|
}
|
1960
1971
|
function vt() {
|
@@ -1977,15 +1988,15 @@ function vt() {
|
|
1977
1988
|
* See the License for the specific language governing permissions and
|
1978
1989
|
* limitations under the License.
|
1979
1990
|
*/
|
1980
|
-
function
|
1991
|
+
function ki() {
|
1981
1992
|
return typeof navigator < "u" && navigator && "onLine" in navigator && typeof navigator.onLine == "boolean" && // Apply only for traditional web apps and Chrome extensions.
|
1982
1993
|
// This is especially true for Cordova apps which have unreliable
|
1983
1994
|
// navigator.onLine behavior unless cordova-plugin-network-information is
|
1984
1995
|
// installed which overwrites the native navigator.onLine value and
|
1985
1996
|
// defines navigator.connection.
|
1986
|
-
(
|
1997
|
+
(Ri() || tr() || "connection" in navigator) ? navigator.onLine : !0;
|
1987
1998
|
}
|
1988
|
-
function
|
1999
|
+
function Ai() {
|
1989
2000
|
if (typeof navigator > "u")
|
1990
2001
|
return null;
|
1991
2002
|
const n = navigator;
|
@@ -2015,10 +2026,10 @@ function Ri() {
|
|
2015
2026
|
*/
|
2016
2027
|
class te {
|
2017
2028
|
constructor(e, t) {
|
2018
|
-
this.shortDelay = e, this.longDelay = t, R(t > e, "Short delay should be less than long delay!"), this.isMobile =
|
2029
|
+
this.shortDelay = e, this.longDelay = t, R(t > e, "Short delay should be less than long delay!"), this.isMobile = Qn() || nr();
|
2019
2030
|
}
|
2020
2031
|
get() {
|
2021
|
-
return
|
2032
|
+
return ki() ? this.isMobile ? this.longDelay : this.shortDelay : Math.min(5e3, this.shortDelay);
|
2022
2033
|
}
|
2023
2034
|
}
|
2024
2035
|
/**
|
@@ -2112,7 +2123,7 @@ class nn {
|
|
2112
2123
|
* See the License for the specific language governing permissions and
|
2113
2124
|
* limitations under the License.
|
2114
2125
|
*/
|
2115
|
-
const
|
2126
|
+
const Si = {
|
2116
2127
|
// Custom token errors.
|
2117
2128
|
CREDENTIAL_MISMATCH: "custom-token-mismatch",
|
2118
2129
|
// This can only happen if the SDK sends a bad request.
|
@@ -2203,7 +2214,7 @@ const Ai = {
|
|
2203
2214
|
* See the License for the specific language governing permissions and
|
2204
2215
|
* limitations under the License.
|
2205
2216
|
*/
|
2206
|
-
const
|
2217
|
+
const Oi = new te(3e4, 6e4);
|
2207
2218
|
function ge(n, e) {
|
2208
2219
|
return n.tenantId && !e.tenantId ? Object.assign(Object.assign({}, e), { tenantId: n.tenantId }) : e;
|
2209
2220
|
}
|
@@ -2225,14 +2236,14 @@ async function Z(n, e, t, r, i = {}) {
|
|
2225
2236
|
method: e,
|
2226
2237
|
headers: c
|
2227
2238
|
}, s);
|
2228
|
-
return
|
2239
|
+
return er() || (l.referrerPolicy = "no-referrer"), nn.fetch()(on(n, n.config.apiHost, t, a), l);
|
2229
2240
|
});
|
2230
2241
|
}
|
2231
2242
|
async function rn(n, e, t) {
|
2232
2243
|
n._canInitEmulator = !1;
|
2233
|
-
const r = Object.assign(Object.assign({},
|
2244
|
+
const r = Object.assign(Object.assign({}, Si), e);
|
2234
2245
|
try {
|
2235
|
-
const i = new
|
2246
|
+
const i = new Ci(n), s = await Promise.race([
|
2236
2247
|
t(),
|
2237
2248
|
i.promise
|
2238
2249
|
]);
|
@@ -2271,14 +2282,14 @@ function on(n, e, t, r) {
|
|
2271
2282
|
const i = `${e}${t}?${r}`;
|
2272
2283
|
return n.config.emulator ? Xe(n.config, i) : `${n.config.apiScheme}://${i}`;
|
2273
2284
|
}
|
2274
|
-
class
|
2285
|
+
class Ci {
|
2275
2286
|
constructor(e) {
|
2276
2287
|
this.auth = e, this.timer = null, this.promise = new Promise((t, r) => {
|
2277
2288
|
this.timer = setTimeout(() => r(_(
|
2278
2289
|
this.auth,
|
2279
2290
|
"network-request-failed"
|
2280
2291
|
/* AuthErrorCode.NETWORK_REQUEST_FAILED */
|
2281
|
-
)),
|
2292
|
+
)), Oi.get());
|
2282
2293
|
});
|
2283
2294
|
}
|
2284
2295
|
clearNetworkTimeout() {
|
@@ -2309,7 +2320,7 @@ function ie(n, e, t) {
|
|
2309
2320
|
* See the License for the specific language governing permissions and
|
2310
2321
|
* limitations under the License.
|
2311
2322
|
*/
|
2312
|
-
async function
|
2323
|
+
async function Ni(n, e) {
|
2313
2324
|
return Z(n, "POST", "/v1/accounts:delete", e);
|
2314
2325
|
}
|
2315
2326
|
async function an(n, e) {
|
@@ -2340,7 +2351,7 @@ function J(n) {
|
|
2340
2351
|
} catch {
|
2341
2352
|
}
|
2342
2353
|
}
|
2343
|
-
async function
|
2354
|
+
async function Di(n, e = !1) {
|
2344
2355
|
const t = z(n), r = await t.getIdToken(e), i = Ye(r);
|
2345
2356
|
d(
|
2346
2357
|
i && i.exp && i.auth_time && i.iat,
|
@@ -2367,7 +2378,7 @@ function Ye(n) {
|
|
2367
2378
|
if (e === void 0 || t === void 0 || r === void 0)
|
2368
2379
|
return se("JWT malformed, contained fewer than 3 sections"), null;
|
2369
2380
|
try {
|
2370
|
-
const i =
|
2381
|
+
const i = jt(t);
|
2371
2382
|
return i ? JSON.parse(i) : (se("Failed to decode base64 JWT payload"), null);
|
2372
2383
|
} catch (i) {
|
2373
2384
|
return se("Caught error parsing JWT payload as JSON", i == null ? void 0 : i.toString()), null;
|
@@ -2411,10 +2422,10 @@ async function K(n, e, t = !1) {
|
|
2411
2422
|
try {
|
2412
2423
|
return await e;
|
2413
2424
|
} catch (r) {
|
2414
|
-
throw r instanceof M &&
|
2425
|
+
throw r instanceof M && Pi(r) && n.auth.currentUser === n && await n.auth.signOut(), r;
|
2415
2426
|
}
|
2416
2427
|
}
|
2417
|
-
function
|
2428
|
+
function Pi({ code: n }) {
|
2418
2429
|
return n === "auth/user-disabled" || n === "auth/user-token-expired";
|
2419
2430
|
}
|
2420
2431
|
/**
|
@@ -2433,7 +2444,7 @@ function Ni({ code: n }) {
|
|
2433
2444
|
* See the License for the specific language governing permissions and
|
2434
2445
|
* limitations under the License.
|
2435
2446
|
*/
|
2436
|
-
class
|
2447
|
+
class Mi {
|
2437
2448
|
constructor(e) {
|
2438
2449
|
this.user = e, this.isRunning = !1, this.timerId = null, this.errorBackoff = 3e4;
|
2439
2450
|
}
|
@@ -2495,7 +2506,7 @@ class Di {
|
|
2495
2506
|
* See the License for the specific language governing permissions and
|
2496
2507
|
* limitations under the License.
|
2497
2508
|
*/
|
2498
|
-
class
|
2509
|
+
class He {
|
2499
2510
|
constructor(e, t) {
|
2500
2511
|
this.createdAt = e, this.lastLoginAt = t, this._initializeTime();
|
2501
2512
|
}
|
@@ -2539,7 +2550,7 @@ async function pe(n) {
|
|
2539
2550
|
);
|
2540
2551
|
const s = i.users[0];
|
2541
2552
|
n._notifyReloadListener(s);
|
2542
|
-
const o = !((e = s.providerUserInfo) === null || e === void 0) && e.length ? cn(s.providerUserInfo) : [], a =
|
2553
|
+
const o = !((e = s.providerUserInfo) === null || e === void 0) && e.length ? cn(s.providerUserInfo) : [], a = Ui(n.providerData, o), c = n.isAnonymous, l = !(n.email && s.passwordHash) && !(a != null && a.length), u = c ? l : !1, p = {
|
2543
2554
|
uid: s.localId,
|
2544
2555
|
displayName: s.displayName || null,
|
2545
2556
|
photoURL: s.photoUrl || null,
|
@@ -2548,16 +2559,16 @@ async function pe(n) {
|
|
2548
2559
|
phoneNumber: s.phoneNumber || null,
|
2549
2560
|
tenantId: s.tenantId || null,
|
2550
2561
|
providerData: a,
|
2551
|
-
metadata: new
|
2562
|
+
metadata: new He(s.createdAt, s.lastLoginAt),
|
2552
2563
|
isAnonymous: u
|
2553
2564
|
};
|
2554
2565
|
Object.assign(n, p);
|
2555
2566
|
}
|
2556
|
-
async function
|
2567
|
+
async function Li(n) {
|
2557
2568
|
const e = z(n);
|
2558
2569
|
await pe(e), await e.auth._persistUserIfCurrent(e), e.auth._notifyListenersIfCurrent(e);
|
2559
2570
|
}
|
2560
|
-
function
|
2571
|
+
function Ui(n, e) {
|
2561
2572
|
return [...n.filter((r) => !e.some((i) => i.providerId === r.providerId)), ...e];
|
2562
2573
|
}
|
2563
2574
|
function cn(n) {
|
@@ -2589,7 +2600,7 @@ function cn(n) {
|
|
2589
2600
|
* See the License for the specific language governing permissions and
|
2590
2601
|
* limitations under the License.
|
2591
2602
|
*/
|
2592
|
-
async function
|
2603
|
+
async function Bi(n, e) {
|
2593
2604
|
const t = await rn(n, {}, async () => {
|
2594
2605
|
const r = Q({
|
2595
2606
|
grant_type: "refresh_token",
|
@@ -2610,7 +2621,7 @@ async function Li(n, e) {
|
|
2610
2621
|
refreshToken: t.refresh_token
|
2611
2622
|
};
|
2612
2623
|
}
|
2613
|
-
async function
|
2624
|
+
async function Fi(n, e) {
|
2614
2625
|
return Z(n, "POST", "/v2/accounts:revokeToken", ge(n, e));
|
2615
2626
|
}
|
2616
2627
|
/**
|
@@ -2629,7 +2640,7 @@ async function Ui(n, e) {
|
|
2629
2640
|
* See the License for the specific language governing permissions and
|
2630
2641
|
* limitations under the License.
|
2631
2642
|
*/
|
2632
|
-
class
|
2643
|
+
class x {
|
2633
2644
|
constructor() {
|
2634
2645
|
this.refreshToken = null, this.accessToken = null, this.expirationTime = null;
|
2635
2646
|
}
|
@@ -2674,14 +2685,14 @@ class j {
|
|
2674
2685
|
this.refreshToken = null;
|
2675
2686
|
}
|
2676
2687
|
async refresh(e, t) {
|
2677
|
-
const { accessToken: r, refreshToken: i, expiresIn: s } = await
|
2688
|
+
const { accessToken: r, refreshToken: i, expiresIn: s } = await Bi(e, t);
|
2678
2689
|
this.updateTokensAndExpiration(r, i, Number(s));
|
2679
2690
|
}
|
2680
2691
|
updateTokensAndExpiration(e, t, r) {
|
2681
2692
|
this.refreshToken = t || null, this.accessToken = e || null, this.expirationTime = Date.now() + r * 1e3;
|
2682
2693
|
}
|
2683
2694
|
static fromJSON(e, t) {
|
2684
|
-
const { refreshToken: r, accessToken: i, expirationTime: s } = t, o = new
|
2695
|
+
const { refreshToken: r, accessToken: i, expirationTime: s } = t, o = new x();
|
2685
2696
|
return r && (d(typeof r == "string", "internal-error", {
|
2686
2697
|
appName: e
|
2687
2698
|
}), o.refreshToken = r), i && (d(typeof i == "string", "internal-error", {
|
@@ -2701,7 +2712,7 @@ class j {
|
|
2701
2712
|
this.accessToken = e.accessToken, this.refreshToken = e.refreshToken, this.expirationTime = e.expirationTime;
|
2702
2713
|
}
|
2703
2714
|
_clone() {
|
2704
|
-
return Object.assign(new
|
2715
|
+
return Object.assign(new x(), this.toJSON());
|
2705
2716
|
}
|
2706
2717
|
_performRefresh() {
|
2707
2718
|
return b("not implemented");
|
@@ -2723,13 +2734,13 @@ class j {
|
|
2723
2734
|
* See the License for the specific language governing permissions and
|
2724
2735
|
* limitations under the License.
|
2725
2736
|
*/
|
2726
|
-
function
|
2737
|
+
function k(n, e) {
|
2727
2738
|
d(typeof n == "string" || typeof n > "u", "internal-error", { appName: e });
|
2728
2739
|
}
|
2729
2740
|
class y {
|
2730
2741
|
constructor(e) {
|
2731
2742
|
var { uid: t, auth: r, stsTokenManager: i } = e, s = $e(e, ["uid", "auth", "stsTokenManager"]);
|
2732
|
-
this.providerId = "firebase", this.proactiveRefresh = new
|
2743
|
+
this.providerId = "firebase", this.proactiveRefresh = new Mi(this), this.reloadUserInfo = null, this.reloadListener = null, this.uid = t, this.auth = r, this.stsTokenManager = i, this.accessToken = i.accessToken, this.displayName = s.displayName || null, this.email = s.email || null, this.emailVerified = s.emailVerified || !1, this.phoneNumber = s.phoneNumber || null, this.photoURL = s.photoURL || null, this.isAnonymous = s.isAnonymous || !1, this.tenantId = s.tenantId || null, this.providerData = s.providerData ? [...s.providerData] : [], this.metadata = new He(s.createdAt || void 0, s.lastLoginAt || void 0);
|
2733
2744
|
}
|
2734
2745
|
async getIdToken(e) {
|
2735
2746
|
const t = await K(this, this.stsTokenManager.getToken(this.auth, e));
|
@@ -2741,10 +2752,10 @@ class y {
|
|
2741
2752
|
), this.accessToken !== t && (this.accessToken = t, await this.auth._persistUserIfCurrent(this), this.auth._notifyListenersIfCurrent(this)), t;
|
2742
2753
|
}
|
2743
2754
|
getIdTokenResult(e) {
|
2744
|
-
return
|
2755
|
+
return Di(this, e);
|
2745
2756
|
}
|
2746
2757
|
reload() {
|
2747
|
-
return
|
2758
|
+
return Li(this);
|
2748
2759
|
}
|
2749
2760
|
_assign(e) {
|
2750
2761
|
this !== e && (d(
|
@@ -2783,7 +2794,7 @@ class y {
|
|
2783
2794
|
if (I(this.auth.app))
|
2784
2795
|
return Promise.reject(P(this.auth));
|
2785
2796
|
const e = await this.getIdToken();
|
2786
|
-
return await K(this,
|
2797
|
+
return await K(this, Ni(this.auth, { idToken: e })), this.stsTokenManager.clearRefreshToken(), this.auth.signOut();
|
2787
2798
|
}
|
2788
2799
|
toJSON() {
|
2789
2800
|
return Object.assign(Object.assign({
|
@@ -2818,13 +2829,13 @@ class y {
|
|
2818
2829
|
"internal-error"
|
2819
2830
|
/* AuthErrorCode.INTERNAL_ERROR */
|
2820
2831
|
);
|
2821
|
-
const Pn =
|
2832
|
+
const Pn = x.fromJSON(this.name, ot);
|
2822
2833
|
d(
|
2823
2834
|
typeof Ee == "string",
|
2824
2835
|
e,
|
2825
2836
|
"internal-error"
|
2826
2837
|
/* AuthErrorCode.INTERNAL_ERROR */
|
2827
|
-
),
|
2838
|
+
), k(p, e.name), k(m, e.name), d(
|
2828
2839
|
typeof it == "boolean",
|
2829
2840
|
e,
|
2830
2841
|
"internal-error"
|
@@ -2834,7 +2845,7 @@ class y {
|
|
2834
2845
|
e,
|
2835
2846
|
"internal-error"
|
2836
2847
|
/* AuthErrorCode.INTERNAL_ERROR */
|
2837
|
-
),
|
2848
|
+
), k(v, e.name), k(F, e.name), k(tt, e.name), k(ye, e.name), k(nt, e.name), k(rt, e.name);
|
2838
2849
|
const we = new y({
|
2839
2850
|
uid: Ee,
|
2840
2851
|
auth: e,
|
@@ -2857,7 +2868,7 @@ class y {
|
|
2857
2868
|
* @param idTokenResponse
|
2858
2869
|
*/
|
2859
2870
|
static async _fromIdTokenResponse(e, t, r = !1) {
|
2860
|
-
const i = new
|
2871
|
+
const i = new x();
|
2861
2872
|
i.updateFromServerResponse(t);
|
2862
2873
|
const s = new y({
|
2863
2874
|
uid: t.localId,
|
@@ -2879,7 +2890,7 @@ class y {
|
|
2879
2890
|
"internal-error"
|
2880
2891
|
/* AuthErrorCode.INTERNAL_ERROR */
|
2881
2892
|
);
|
2882
|
-
const s = i.providerUserInfo !== void 0 ? cn(i.providerUserInfo) : [], o = !(i.email && i.passwordHash) && !(s != null && s.length), a = new
|
2893
|
+
const s = i.providerUserInfo !== void 0 ? cn(i.providerUserInfo) : [], o = !(i.email && i.passwordHash) && !(s != null && s.length), a = new x();
|
2883
2894
|
a.updateFromIdToken(r);
|
2884
2895
|
const c = new y({
|
2885
2896
|
uid: i.localId,
|
@@ -2895,7 +2906,7 @@ class y {
|
|
2895
2906
|
phoneNumber: i.phoneNumber || null,
|
2896
2907
|
tenantId: i.tenantId || null,
|
2897
2908
|
providerData: s,
|
2898
|
-
metadata: new
|
2909
|
+
metadata: new He(i.createdAt, i.lastLoginAt),
|
2899
2910
|
isAnonymous: !(i.email && i.passwordHash) && !(s != null && s.length)
|
2900
2911
|
};
|
2901
2912
|
return Object.assign(c, l), c;
|
@@ -2982,7 +2993,7 @@ const yt = ln;
|
|
2982
2993
|
function oe(n, e, t) {
|
2983
2994
|
return `firebase:${n}:${e}:${t}`;
|
2984
2995
|
}
|
2985
|
-
class
|
2996
|
+
class j {
|
2986
2997
|
constructor(e, t, r) {
|
2987
2998
|
this.persistence = e, this.auth = t, this.userKey = r;
|
2988
2999
|
const { config: i, name: s } = this.auth;
|
@@ -3013,7 +3024,7 @@ class x {
|
|
3013
3024
|
}
|
3014
3025
|
static async create(e, t, r = "authUser") {
|
3015
3026
|
if (!t.length)
|
3016
|
-
return new
|
3027
|
+
return new j(E(yt), e, r);
|
3017
3028
|
const i = (await Promise.all(t.map(async (l) => {
|
3018
3029
|
if (await l._isAvailable())
|
3019
3030
|
return l;
|
@@ -3032,13 +3043,13 @@ class x {
|
|
3032
3043
|
} catch {
|
3033
3044
|
}
|
3034
3045
|
const c = i.filter((l) => l._shouldAllowMigration);
|
3035
|
-
return !s._shouldAllowMigration || !c.length ? new
|
3046
|
+
return !s._shouldAllowMigration || !c.length ? new j(s, e, r) : (s = c[0], a && await s._set(o, a.toJSON()), await Promise.all(t.map(async (l) => {
|
3036
3047
|
if (l !== s)
|
3037
3048
|
try {
|
3038
3049
|
await l._remove(o);
|
3039
3050
|
} catch {
|
3040
3051
|
}
|
3041
|
-
})), new
|
3052
|
+
})), new j(s, e, r));
|
3042
3053
|
}
|
3043
3054
|
}
|
3044
3055
|
/**
|
@@ -3113,12 +3124,12 @@ function _n(n = f()) {
|
|
3113
3124
|
function Ke(n = f()) {
|
3114
3125
|
return /iphone|ipad|ipod/i.test(n) || /macintosh/i.test(n) && /mobile/i.test(n);
|
3115
3126
|
}
|
3116
|
-
function
|
3127
|
+
function Wi(n = f()) {
|
3117
3128
|
var e;
|
3118
3129
|
return Ke(n) && !!(!((e = window.navigator) === null || e === void 0) && e.standalone);
|
3119
3130
|
}
|
3120
|
-
function
|
3121
|
-
return
|
3131
|
+
function Hi() {
|
3132
|
+
return rr() && document.documentMode === 10;
|
3122
3133
|
}
|
3123
3134
|
function gn(n = f()) {
|
3124
3135
|
return Ke(n) || fn(n) || _n(n) || mn(n) || /windows phone/i.test(n) || pn(n);
|
@@ -3170,7 +3181,7 @@ function vn(n, e = []) {
|
|
3170
3181
|
* See the License for the specific language governing permissions and
|
3171
3182
|
* limitations under the License.
|
3172
3183
|
*/
|
3173
|
-
class
|
3184
|
+
class xi {
|
3174
3185
|
constructor(e) {
|
3175
3186
|
this.auth = e, this.queue = [];
|
3176
3187
|
}
|
@@ -3225,7 +3236,7 @@ class Hi {
|
|
3225
3236
|
* See the License for the specific language governing permissions and
|
3226
3237
|
* limitations under the License.
|
3227
3238
|
*/
|
3228
|
-
async function
|
3239
|
+
async function ji(n, e = {}) {
|
3229
3240
|
return Z(n, "GET", "/v2/passwordPolicy", ge(n, e));
|
3230
3241
|
}
|
3231
3242
|
/**
|
@@ -3244,12 +3255,12 @@ async function Vi(n, e = {}) {
|
|
3244
3255
|
* See the License for the specific language governing permissions and
|
3245
3256
|
* limitations under the License.
|
3246
3257
|
*/
|
3247
|
-
const
|
3248
|
-
class
|
3258
|
+
const Vi = 6;
|
3259
|
+
class Gi {
|
3249
3260
|
constructor(e) {
|
3250
3261
|
var t, r, i, s;
|
3251
3262
|
const o = e.customStrengthOptions;
|
3252
|
-
this.customStrengthOptions = {}, this.customStrengthOptions.minPasswordLength = (t = o.minPasswordLength) !== null && t !== void 0 ? t :
|
3263
|
+
this.customStrengthOptions = {}, this.customStrengthOptions.minPasswordLength = (t = o.minPasswordLength) !== null && t !== void 0 ? t : Vi, 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 = (i = (r = e.allowedNonAlphanumericCharacters) === null || r === void 0 ? void 0 : r.join("")) !== null && i !== void 0 ? i : "", this.forceUpgradeOnSignin = (s = e.forceUpgradeOnSignin) !== null && s !== void 0 ? s : !1, this.schemaVersion = e.schemaVersion;
|
3253
3264
|
}
|
3254
3265
|
validatePassword(e) {
|
3255
3266
|
var t, r, i, s, o, a;
|
@@ -3332,14 +3343,14 @@ class xi {
|
|
3332
3343
|
* See the License for the specific language governing permissions and
|
3333
3344
|
* limitations under the License.
|
3334
3345
|
*/
|
3335
|
-
class
|
3346
|
+
class zi {
|
3336
3347
|
constructor(e, t, r, i) {
|
3337
|
-
this.app = e, this.heartbeatServiceProvider = t, this.appCheckServiceProvider = r, this.config = i, this.currentUser = null, this.emulatorConfig = null, this.operations = Promise.resolve(), this.authStateSubscription = new Tt(this), this.idTokenSubscription = new Tt(this), this.beforeStateQueue = new
|
3348
|
+
this.app = e, this.heartbeatServiceProvider = t, this.appCheckServiceProvider = r, this.config = i, this.currentUser = null, this.emulatorConfig = null, this.operations = Promise.resolve(), this.authStateSubscription = new Tt(this), this.idTokenSubscription = new Tt(this), this.beforeStateQueue = new xi(this), this.redirectUser = null, this.isProactiveRefreshEnabled = !1, this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION = 1, this._canInitEmulator = !0, this._isInitialized = !1, this._deleted = !1, this._initializationPromise = null, this._popupRedirectResolver = null, this._errorFactory = en, this._agentRecaptchaConfig = null, this._tenantRecaptchaConfigs = {}, this._projectPasswordPolicy = null, this._tenantPasswordPolicies = {}, this.lastNotifiedUid = void 0, this.languageCode = null, this.tenantId = null, this.settings = { appVerificationDisabledForTesting: !1 }, this.frameworks = [], this.name = e.name, this.clientVersion = i.sdkClientVersion;
|
3338
3349
|
}
|
3339
3350
|
_initializeWithPersistence(e, t) {
|
3340
3351
|
return t && (this._popupRedirectResolver = E(t)), this._initializationPromise = this.queue(async () => {
|
3341
3352
|
var r, i;
|
3342
|
-
if (!this._deleted && (this.persistenceManager = await
|
3353
|
+
if (!this._deleted && (this.persistenceManager = await j.create(this, e), !this._deleted)) {
|
3343
3354
|
if (!((r = this._popupRedirectResolver) === null || r === void 0) && r._shouldInitProactively)
|
3344
3355
|
try {
|
3345
3356
|
await this._popupRedirectResolver._initialize(this);
|
@@ -3428,7 +3439,7 @@ class Gi {
|
|
3428
3439
|
return this.directlySetCurrentUser(e);
|
3429
3440
|
}
|
3430
3441
|
useDeviceLanguage() {
|
3431
|
-
this.languageCode =
|
3442
|
+
this.languageCode = Ai();
|
3432
3443
|
}
|
3433
3444
|
async _delete() {
|
3434
3445
|
this._deleted = !0;
|
@@ -3479,7 +3490,7 @@ class Gi {
|
|
3479
3490
|
return this.tenantId === null ? this._projectPasswordPolicy : this._tenantPasswordPolicies[this.tenantId];
|
3480
3491
|
}
|
3481
3492
|
async _updatePasswordPolicy() {
|
3482
|
-
const e = await
|
3493
|
+
const e = await ji(this), t = new Gi(e);
|
3483
3494
|
this.tenantId === null ? this._projectPasswordPolicy = t : this._tenantPasswordPolicies[this.tenantId] = t;
|
3484
3495
|
}
|
3485
3496
|
_getPersistence() {
|
@@ -3519,7 +3530,7 @@ class Gi {
|
|
3519
3530
|
token: e,
|
3520
3531
|
idToken: t
|
3521
3532
|
};
|
3522
|
-
this.tenantId != null && (r.tenantId = this.tenantId), await
|
3533
|
+
this.tenantId != null && (r.tenantId = this.tenantId), await Fi(this, r);
|
3523
3534
|
}
|
3524
3535
|
}
|
3525
3536
|
toJSON() {
|
@@ -3543,7 +3554,7 @@ class Gi {
|
|
3543
3554
|
this,
|
3544
3555
|
"argument-error"
|
3545
3556
|
/* AuthErrorCode.ARGUMENT_ERROR */
|
3546
|
-
), this.redirectPersistenceManager = await
|
3557
|
+
), this.redirectPersistenceManager = await j.create(
|
3547
3558
|
this,
|
3548
3559
|
[E(t._redirectPersistence)],
|
3549
3560
|
"redirectUser"
|
@@ -3662,7 +3673,7 @@ class Gi {
|
|
3662
3673
|
async _getAppCheckToken() {
|
3663
3674
|
var e;
|
3664
3675
|
const t = await ((e = this.appCheckServiceProvider.getImmediate({ optional: !0 })) === null || e === void 0 ? void 0 : e.getToken());
|
3665
|
-
return t != null && t.error &&
|
3676
|
+
return t != null && t.error && wi(`Error while retrieving App Check token: ${t.error}`), t == null ? void 0 : t.token;
|
3666
3677
|
}
|
3667
3678
|
}
|
3668
3679
|
function ve(n) {
|
@@ -3670,7 +3681,7 @@ function ve(n) {
|
|
3670
3681
|
}
|
3671
3682
|
class Tt {
|
3672
3683
|
constructor(e) {
|
3673
|
-
this.auth = e, this.observer = null, this.addObserver =
|
3684
|
+
this.auth = e, this.observer = null, this.addObserver = dr((t) => this.observer = t);
|
3674
3685
|
}
|
3675
3686
|
get next() {
|
3676
3687
|
return d(
|
@@ -3705,16 +3716,16 @@ let qe = {
|
|
3705
3716
|
recaptchaEnterpriseScript: "",
|
3706
3717
|
gapiScript: ""
|
3707
3718
|
};
|
3708
|
-
function
|
3719
|
+
function Zi(n) {
|
3709
3720
|
qe = n;
|
3710
3721
|
}
|
3711
|
-
function
|
3722
|
+
function $i(n) {
|
3712
3723
|
return qe.loadJS(n);
|
3713
3724
|
}
|
3714
|
-
function
|
3725
|
+
function Ji() {
|
3715
3726
|
return qe.gapiScript;
|
3716
3727
|
}
|
3717
|
-
function
|
3728
|
+
function Xi(n) {
|
3718
3729
|
return `__${n}${Math.floor(Math.random() * 1e6)}`;
|
3719
3730
|
}
|
3720
3731
|
/**
|
@@ -3733,7 +3744,7 @@ function $i(n) {
|
|
3733
3744
|
* See the License for the specific language governing permissions and
|
3734
3745
|
* limitations under the License.
|
3735
3746
|
*/
|
3736
|
-
function
|
3747
|
+
function Yi(n, e) {
|
3737
3748
|
const t = Xt(n, "auth");
|
3738
3749
|
if (t.isInitialized()) {
|
3739
3750
|
const i = t.getImmediate(), s = t.getOptions();
|
@@ -3747,11 +3758,11 @@ function Ji(n, e) {
|
|
3747
3758
|
}
|
3748
3759
|
return t.initialize({ options: e });
|
3749
3760
|
}
|
3750
|
-
function
|
3761
|
+
function Ki(n, e) {
|
3751
3762
|
const t = (e == null ? void 0 : e.persistence) || [], r = (Array.isArray(t) ? t : [t]).map(E);
|
3752
3763
|
e != null && e.errorMap && n._updateErrorMap(e.errorMap), n._initializeWithPersistence(r, e == null ? void 0 : e.popupRedirectResolver);
|
3753
3764
|
}
|
3754
|
-
function
|
3765
|
+
function qi(n, e, t) {
|
3755
3766
|
const r = ve(n);
|
3756
3767
|
d(
|
3757
3768
|
r._canInitEmulator,
|
@@ -3764,19 +3775,19 @@ function Yi(n, e, t) {
|
|
3764
3775
|
"invalid-emulator-scheme"
|
3765
3776
|
/* AuthErrorCode.INVALID_EMULATOR_SCHEME */
|
3766
3777
|
);
|
3767
|
-
const i = !1, s = In(e), { host: o, port: a } =
|
3778
|
+
const i = !1, s = In(e), { host: o, port: a } = Qi(e), c = a === null ? "" : `:${a}`;
|
3768
3779
|
r.config.emulator = { url: `${s}//${o}${c}/` }, r.settings.appVerificationDisabledForTesting = !0, r.emulatorConfig = Object.freeze({
|
3769
3780
|
host: o,
|
3770
3781
|
port: a,
|
3771
3782
|
protocol: s.replace(":", ""),
|
3772
3783
|
options: Object.freeze({ disableWarnings: i })
|
3773
|
-
}),
|
3784
|
+
}), es();
|
3774
3785
|
}
|
3775
3786
|
function In(n) {
|
3776
3787
|
const e = n.indexOf(":");
|
3777
3788
|
return e < 0 ? "" : n.substr(0, e + 1);
|
3778
3789
|
}
|
3779
|
-
function
|
3790
|
+
function Qi(n) {
|
3780
3791
|
const e = In(n), t = /(\/\/)?([^?#/]+)/.exec(n.substr(e.length));
|
3781
3792
|
if (!t)
|
3782
3793
|
return { host: "", port: null };
|
@@ -3795,7 +3806,7 @@ function wt(n) {
|
|
3795
3806
|
const e = Number(n);
|
3796
3807
|
return isNaN(e) ? null : e;
|
3797
3808
|
}
|
3798
|
-
function
|
3809
|
+
function es() {
|
3799
3810
|
function n() {
|
3800
3811
|
const e = document.createElement("p"), t = e.style;
|
3801
3812
|
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);
|
@@ -3860,7 +3871,7 @@ class bn {
|
|
3860
3871
|
* See the License for the specific language governing permissions and
|
3861
3872
|
* limitations under the License.
|
3862
3873
|
*/
|
3863
|
-
async function
|
3874
|
+
async function V(n, e) {
|
3864
3875
|
return sn(n, "POST", "/v1/accounts:signInWithIdp", ge(n, e));
|
3865
3876
|
}
|
3866
3877
|
/**
|
@@ -3879,7 +3890,7 @@ async function G(n, e) {
|
|
3879
3890
|
* See the License for the specific language governing permissions and
|
3880
3891
|
* limitations under the License.
|
3881
3892
|
*/
|
3882
|
-
const
|
3893
|
+
const ts = "http://localhost";
|
3883
3894
|
class U extends bn {
|
3884
3895
|
constructor() {
|
3885
3896
|
super(...arguments), this.pendingToken = null;
|
@@ -3923,21 +3934,21 @@ class U extends bn {
|
|
3923
3934
|
/** @internal */
|
3924
3935
|
_getIdTokenResponse(e) {
|
3925
3936
|
const t = this.buildRequest();
|
3926
|
-
return
|
3937
|
+
return V(e, t);
|
3927
3938
|
}
|
3928
3939
|
/** @internal */
|
3929
3940
|
_linkToIdToken(e, t) {
|
3930
3941
|
const r = this.buildRequest();
|
3931
|
-
return r.idToken = t,
|
3942
|
+
return r.idToken = t, V(e, r);
|
3932
3943
|
}
|
3933
3944
|
/** @internal */
|
3934
3945
|
_getReauthenticationResolver(e) {
|
3935
3946
|
const t = this.buildRequest();
|
3936
|
-
return t.autoCreate = !1,
|
3947
|
+
return t.autoCreate = !1, V(e, t);
|
3937
3948
|
}
|
3938
3949
|
buildRequest() {
|
3939
3950
|
const e = {
|
3940
|
-
requestUri:
|
3951
|
+
requestUri: ts,
|
3941
3952
|
returnSecureToken: !0
|
3942
3953
|
};
|
3943
3954
|
if (this.pendingToken)
|
@@ -4053,7 +4064,7 @@ class ne extends yn {
|
|
4053
4064
|
* See the License for the specific language governing permissions and
|
4054
4065
|
* limitations under the License.
|
4055
4066
|
*/
|
4056
|
-
class
|
4067
|
+
class A extends ne {
|
4057
4068
|
constructor() {
|
4058
4069
|
super(
|
4059
4070
|
"facebook.com"
|
@@ -4074,8 +4085,8 @@ class k extends ne {
|
|
4074
4085
|
*/
|
4075
4086
|
static credential(e) {
|
4076
4087
|
return U._fromParams({
|
4077
|
-
providerId:
|
4078
|
-
signInMethod:
|
4088
|
+
providerId: A.PROVIDER_ID,
|
4089
|
+
signInMethod: A.FACEBOOK_SIGN_IN_METHOD,
|
4079
4090
|
accessToken: e
|
4080
4091
|
});
|
4081
4092
|
}
|
@@ -4085,7 +4096,7 @@ class k extends ne {
|
|
4085
4096
|
* @param userCredential - The user credential.
|
4086
4097
|
*/
|
4087
4098
|
static credentialFromResult(e) {
|
4088
|
-
return
|
4099
|
+
return A.credentialFromTaggedObject(e);
|
4089
4100
|
}
|
4090
4101
|
/**
|
4091
4102
|
* Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was
|
@@ -4094,20 +4105,20 @@ class k extends ne {
|
|
4094
4105
|
* @param userCredential - The user credential.
|
4095
4106
|
*/
|
4096
4107
|
static credentialFromError(e) {
|
4097
|
-
return
|
4108
|
+
return A.credentialFromTaggedObject(e.customData || {});
|
4098
4109
|
}
|
4099
4110
|
static credentialFromTaggedObject({ _tokenResponse: e }) {
|
4100
4111
|
if (!e || !("oauthAccessToken" in e) || !e.oauthAccessToken)
|
4101
4112
|
return null;
|
4102
4113
|
try {
|
4103
|
-
return
|
4114
|
+
return A.credential(e.oauthAccessToken);
|
4104
4115
|
} catch {
|
4105
4116
|
return null;
|
4106
4117
|
}
|
4107
4118
|
}
|
4108
4119
|
}
|
4109
|
-
|
4110
|
-
|
4120
|
+
A.FACEBOOK_SIGN_IN_METHOD = "facebook.com";
|
4121
|
+
A.PROVIDER_ID = "facebook.com";
|
4111
4122
|
/**
|
4112
4123
|
* @license
|
4113
4124
|
* Copyright 2020 Google LLC
|
@@ -4399,7 +4410,7 @@ function En(n, e, t, r) {
|
|
4399
4410
|
throw s.code === "auth/multi-factor-auth-required" ? fe._fromErrorAndOperation(n, s, e, r) : s;
|
4400
4411
|
});
|
4401
4412
|
}
|
4402
|
-
async function
|
4413
|
+
async function ns(n, e, t = !1) {
|
4403
4414
|
const r = await K(n, e._linkToIdToken(n.auth, await n.getIdToken()), t);
|
4404
4415
|
return B._forOperation(n, "link", r);
|
4405
4416
|
}
|
@@ -4419,7 +4430,7 @@ async function es(n, e, t = !1) {
|
|
4419
4430
|
* See the License for the specific language governing permissions and
|
4420
4431
|
* limitations under the License.
|
4421
4432
|
*/
|
4422
|
-
async function
|
4433
|
+
async function rs(n, e, t = !1) {
|
4423
4434
|
const { auth: r } = n;
|
4424
4435
|
if (I(r.app))
|
4425
4436
|
return Promise.reject(P(r));
|
@@ -4470,7 +4481,7 @@ async function ts(n, e, t = !1) {
|
|
4470
4481
|
* See the License for the specific language governing permissions and
|
4471
4482
|
* limitations under the License.
|
4472
4483
|
*/
|
4473
|
-
async function
|
4484
|
+
async function is(n, e, t = !1) {
|
4474
4485
|
if (I(n.app))
|
4475
4486
|
return Promise.reject(P(n));
|
4476
4487
|
const r = "signIn", i = await En(n, r, e), s = await B._fromIdTokenResponse(n, r, i);
|
@@ -4492,7 +4503,7 @@ async function ns(n, e, t = !1) {
|
|
4492
4503
|
* See the License for the specific language governing permissions and
|
4493
4504
|
* limitations under the License.
|
4494
4505
|
*/
|
4495
|
-
async function
|
4506
|
+
async function ss(n, e) {
|
4496
4507
|
return sn(n, "POST", "/v1/accounts:signInWithCustomToken", ge(n, e));
|
4497
4508
|
}
|
4498
4509
|
/**
|
@@ -4511,19 +4522,19 @@ async function rs(n, e) {
|
|
4511
4522
|
* See the License for the specific language governing permissions and
|
4512
4523
|
* limitations under the License.
|
4513
4524
|
*/
|
4514
|
-
async function
|
4525
|
+
async function os(n, e) {
|
4515
4526
|
if (I(n.app))
|
4516
4527
|
return Promise.reject(P(n));
|
4517
|
-
const t = ve(n), r = await
|
4528
|
+
const t = ve(n), r = await ss(t, {
|
4518
4529
|
token: e,
|
4519
4530
|
returnSecureToken: !0
|
4520
4531
|
}), i = await B._fromIdTokenResponse(t, "signIn", r);
|
4521
4532
|
return await t._updateCurrentUser(i.user), i;
|
4522
4533
|
}
|
4523
|
-
function
|
4534
|
+
function as(n, e, t, r) {
|
4524
4535
|
return z(n).onIdTokenChanged(e, t, r);
|
4525
4536
|
}
|
4526
|
-
function
|
4537
|
+
function cs(n, e, t) {
|
4527
4538
|
return z(n).beforeAuthStateChanged(e, t);
|
4528
4539
|
}
|
4529
4540
|
const me = "__sak";
|
@@ -4584,7 +4595,7 @@ class Tn {
|
|
4584
4595
|
* See the License for the specific language governing permissions and
|
4585
4596
|
* limitations under the License.
|
4586
4597
|
*/
|
4587
|
-
const
|
4598
|
+
const ls = 1e3, ds = 10;
|
4588
4599
|
class wn extends Tn {
|
4589
4600
|
constructor() {
|
4590
4601
|
super(
|
@@ -4612,7 +4623,7 @@ class wn extends Tn {
|
|
4612
4623
|
const o = this.storage.getItem(r);
|
4613
4624
|
!t && this.localCache[r] === o || this.notifyListeners(r, o);
|
4614
4625
|
}, s = this.storage.getItem(r);
|
4615
|
-
|
4626
|
+
Hi() && s !== e.newValue && e.newValue !== e.oldValue ? setTimeout(i, ds) : i();
|
4616
4627
|
}
|
4617
4628
|
notifyListeners(e, t) {
|
4618
4629
|
this.localCache[e] = t;
|
@@ -4634,7 +4645,7 @@ class wn extends Tn {
|
|
4634
4645
|
!0
|
4635
4646
|
);
|
4636
4647
|
});
|
4637
|
-
},
|
4648
|
+
}, ls);
|
4638
4649
|
}
|
4639
4650
|
stopPolling() {
|
4640
4651
|
this.pollTimer && (clearInterval(this.pollTimer), this.pollTimer = null);
|
@@ -4664,7 +4675,7 @@ class wn extends Tn {
|
|
4664
4675
|
}
|
4665
4676
|
}
|
4666
4677
|
wn.type = "LOCAL";
|
4667
|
-
const
|
4678
|
+
const us = wn;
|
4668
4679
|
/**
|
4669
4680
|
* @license
|
4670
4681
|
* Copyright 2020 Google LLC
|
@@ -4695,7 +4706,7 @@ class Rn extends Tn {
|
|
4695
4706
|
}
|
4696
4707
|
}
|
4697
4708
|
Rn.type = "SESSION";
|
4698
|
-
const
|
4709
|
+
const kn = Rn;
|
4699
4710
|
/**
|
4700
4711
|
* @license
|
4701
4712
|
* Copyright 2019 Google LLC
|
@@ -4712,7 +4723,7 @@ const An = Rn;
|
|
4712
4723
|
* See the License for the specific language governing permissions and
|
4713
4724
|
* limitations under the License.
|
4714
4725
|
*/
|
4715
|
-
function
|
4726
|
+
function hs(n) {
|
4716
4727
|
return Promise.all(n.map(async (e) => {
|
4717
4728
|
try {
|
4718
4729
|
return {
|
@@ -4782,7 +4793,7 @@ class Ie {
|
|
4782
4793
|
eventId: r,
|
4783
4794
|
eventType: i
|
4784
4795
|
});
|
4785
|
-
const a = Array.from(o).map(async (l) => l(t.origin, s)), c = await
|
4796
|
+
const a = Array.from(o).map(async (l) => l(t.origin, s)), c = await hs(a);
|
4786
4797
|
t.ports[0].postMessage({
|
4787
4798
|
status: "done",
|
4788
4799
|
eventId: r,
|
@@ -4850,7 +4861,7 @@ function Qe(n = "", e = 10) {
|
|
4850
4861
|
* See the License for the specific language governing permissions and
|
4851
4862
|
* limitations under the License.
|
4852
4863
|
*/
|
4853
|
-
class
|
4864
|
+
class ps {
|
4854
4865
|
constructor(e) {
|
4855
4866
|
this.target = e, this.handlers = /* @__PURE__ */ new Set();
|
4856
4867
|
}
|
@@ -4950,7 +4961,7 @@ class us {
|
|
4950
4961
|
function g() {
|
4951
4962
|
return window;
|
4952
4963
|
}
|
4953
|
-
function
|
4964
|
+
function fs(n) {
|
4954
4965
|
g().location.href = n;
|
4955
4966
|
}
|
4956
4967
|
/**
|
@@ -4969,10 +4980,10 @@ function hs(n) {
|
|
4969
4980
|
* See the License for the specific language governing permissions and
|
4970
4981
|
* limitations under the License.
|
4971
4982
|
*/
|
4972
|
-
function
|
4983
|
+
function An() {
|
4973
4984
|
return typeof g().WorkerGlobalScope < "u" && typeof g().importScripts == "function";
|
4974
4985
|
}
|
4975
|
-
async function
|
4986
|
+
async function ms() {
|
4976
4987
|
if (!(navigator != null && navigator.serviceWorker))
|
4977
4988
|
return null;
|
4978
4989
|
try {
|
@@ -4981,12 +4992,12 @@ async function ps() {
|
|
4981
4992
|
return null;
|
4982
4993
|
}
|
4983
4994
|
}
|
4984
|
-
function
|
4995
|
+
function _s() {
|
4985
4996
|
var n;
|
4986
4997
|
return ((n = navigator == null ? void 0 : navigator.serviceWorker) === null || n === void 0 ? void 0 : n.controller) || null;
|
4987
4998
|
}
|
4988
|
-
function
|
4989
|
-
return
|
4999
|
+
function gs() {
|
5000
|
+
return An() ? self : null;
|
4990
5001
|
}
|
4991
5002
|
/**
|
4992
5003
|
* @license
|
@@ -5004,7 +5015,7 @@ function ms() {
|
|
5004
5015
|
* See the License for the specific language governing permissions and
|
5005
5016
|
* limitations under the License.
|
5006
5017
|
*/
|
5007
|
-
const Sn = "firebaseLocalStorageDb",
|
5018
|
+
const Sn = "firebaseLocalStorageDb", vs = 1, _e = "firebaseLocalStorage", On = "fbase_key";
|
5008
5019
|
class re {
|
5009
5020
|
constructor(e) {
|
5010
5021
|
this.request = e;
|
@@ -5022,12 +5033,12 @@ class re {
|
|
5022
5033
|
function be(n, e) {
|
5023
5034
|
return n.transaction([_e], e ? "readwrite" : "readonly").objectStore(_e);
|
5024
5035
|
}
|
5025
|
-
function
|
5036
|
+
function Is() {
|
5026
5037
|
const n = indexedDB.deleteDatabase(Sn);
|
5027
5038
|
return new re(n).toPromise();
|
5028
5039
|
}
|
5029
|
-
function
|
5030
|
-
const n = indexedDB.open(Sn,
|
5040
|
+
function xe() {
|
5041
|
+
const n = indexedDB.open(Sn, vs);
|
5031
5042
|
return new Promise((e, t) => {
|
5032
5043
|
n.addEventListener("error", () => {
|
5033
5044
|
t(n.error);
|
@@ -5040,26 +5051,26 @@ function je() {
|
|
5040
5051
|
}
|
5041
5052
|
}), n.addEventListener("success", async () => {
|
5042
5053
|
const r = n.result;
|
5043
|
-
r.objectStoreNames.contains(_e) ? e(r) : (r.close(), await
|
5054
|
+
r.objectStoreNames.contains(_e) ? e(r) : (r.close(), await Is(), e(await xe()));
|
5044
5055
|
});
|
5045
5056
|
});
|
5046
5057
|
}
|
5047
|
-
async function
|
5058
|
+
async function kt(n, e, t) {
|
5048
5059
|
const r = be(n, !0).put({
|
5049
5060
|
[On]: e,
|
5050
5061
|
value: t
|
5051
5062
|
});
|
5052
5063
|
return new re(r).toPromise();
|
5053
5064
|
}
|
5054
|
-
async function
|
5065
|
+
async function bs(n, e) {
|
5055
5066
|
const t = be(n, !1).get(e), r = await new re(t).toPromise();
|
5056
5067
|
return r === void 0 ? null : r.value;
|
5057
5068
|
}
|
5058
|
-
function
|
5069
|
+
function At(n, e) {
|
5059
5070
|
const t = be(n, !0).delete(e);
|
5060
5071
|
return new re(t).toPromise();
|
5061
5072
|
}
|
5062
|
-
const
|
5073
|
+
const ys = 800, Es = 3;
|
5063
5074
|
class Cn {
|
5064
5075
|
constructor() {
|
5065
5076
|
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(() => {
|
@@ -5067,7 +5078,7 @@ class Cn {
|
|
5067
5078
|
});
|
5068
5079
|
}
|
5069
5080
|
async _openDb() {
|
5070
|
-
return this.db ? this.db : (this.db = await
|
5081
|
+
return this.db ? this.db : (this.db = await xe(), this.db);
|
5071
5082
|
}
|
5072
5083
|
async _withRetries(e) {
|
5073
5084
|
let t = 0;
|
@@ -5076,7 +5087,7 @@ class Cn {
|
|
5076
5087
|
const r = await this._openDb();
|
5077
5088
|
return await e(r);
|
5078
5089
|
} catch (r) {
|
5079
|
-
if (t++ >
|
5090
|
+
if (t++ > Es)
|
5080
5091
|
throw r;
|
5081
5092
|
this.db && (this.db.close(), this.db = void 0);
|
5082
5093
|
}
|
@@ -5086,13 +5097,13 @@ class Cn {
|
|
5086
5097
|
* postMessage interface to send these events to the worker ourselves.
|
5087
5098
|
*/
|
5088
5099
|
async initializeServiceWorkerMessaging() {
|
5089
|
-
return
|
5100
|
+
return An() ? this.initializeReceiver() : this.initializeSender();
|
5090
5101
|
}
|
5091
5102
|
/**
|
5092
5103
|
* As the worker we should listen to events from the main window.
|
5093
5104
|
*/
|
5094
5105
|
async initializeReceiver() {
|
5095
|
-
this.receiver = Ie._getInstance(
|
5106
|
+
this.receiver = Ie._getInstance(gs()), this.receiver._subscribe("keyChanged", async (e, t) => ({
|
5096
5107
|
keyProcessed: (await this._poll()).includes(t.key)
|
5097
5108
|
})), this.receiver._subscribe("ping", async (e, t) => [
|
5098
5109
|
"keyChanged"
|
@@ -5108,9 +5119,9 @@ class Cn {
|
|
5108
5119
|
*/
|
5109
5120
|
async initializeSender() {
|
5110
5121
|
var e, t;
|
5111
|
-
if (this.activeServiceWorker = await
|
5122
|
+
if (this.activeServiceWorker = await ms(), !this.activeServiceWorker)
|
5112
5123
|
return;
|
5113
|
-
this.sender = new
|
5124
|
+
this.sender = new ps(this.activeServiceWorker);
|
5114
5125
|
const r = await this.sender._send(
|
5115
5126
|
"ping",
|
5116
5127
|
{},
|
@@ -5132,7 +5143,7 @@ class Cn {
|
|
5132
5143
|
* @param key - Storage key which changed.
|
5133
5144
|
*/
|
5134
5145
|
async notifyServiceWorker(e) {
|
5135
|
-
if (!(!this.sender || !this.activeServiceWorker ||
|
5146
|
+
if (!(!this.sender || !this.activeServiceWorker || _s() !== this.activeServiceWorker))
|
5136
5147
|
try {
|
5137
5148
|
await this.sender._send(
|
5138
5149
|
"keyChanged",
|
@@ -5148,8 +5159,8 @@ class Cn {
|
|
5148
5159
|
try {
|
5149
5160
|
if (!indexedDB)
|
5150
5161
|
return !1;
|
5151
|
-
const e = await
|
5152
|
-
return await
|
5162
|
+
const e = await xe();
|
5163
|
+
return await kt(e, me, "1"), await At(e, me), !0;
|
5153
5164
|
} catch {
|
5154
5165
|
}
|
5155
5166
|
return !1;
|
@@ -5163,14 +5174,14 @@ class Cn {
|
|
5163
5174
|
}
|
5164
5175
|
}
|
5165
5176
|
async _set(e, t) {
|
5166
|
-
return this._withPendingWrite(async () => (await this._withRetries((r) =>
|
5177
|
+
return this._withPendingWrite(async () => (await this._withRetries((r) => kt(r, e, t)), this.localCache[e] = t, this.notifyServiceWorker(e)));
|
5167
5178
|
}
|
5168
5179
|
async _get(e) {
|
5169
|
-
const t = await this._withRetries((r) =>
|
5180
|
+
const t = await this._withRetries((r) => bs(r, e));
|
5170
5181
|
return this.localCache[e] = t, t;
|
5171
5182
|
}
|
5172
5183
|
async _remove(e) {
|
5173
|
-
return this._withPendingWrite(async () => (await this._withRetries((t) =>
|
5184
|
+
return this._withPendingWrite(async () => (await this._withRetries((t) => At(t, e)), delete this.localCache[e], this.notifyServiceWorker(e)));
|
5174
5185
|
}
|
5175
5186
|
async _poll() {
|
5176
5187
|
const e = await this._withRetries((i) => {
|
@@ -5197,7 +5208,7 @@ class Cn {
|
|
5197
5208
|
i(t);
|
5198
5209
|
}
|
5199
5210
|
startPolling() {
|
5200
|
-
this.stopPolling(), this.pollTimer = setInterval(async () => this._poll(),
|
5211
|
+
this.stopPolling(), this.pollTimer = setInterval(async () => this._poll(), ys);
|
5201
5212
|
}
|
5202
5213
|
stopPolling() {
|
5203
5214
|
this.pollTimer && (clearInterval(this.pollTimer), this.pollTimer = null);
|
@@ -5210,7 +5221,7 @@ class Cn {
|
|
5210
5221
|
}
|
5211
5222
|
}
|
5212
5223
|
Cn.type = "LOCAL";
|
5213
|
-
const
|
5224
|
+
const Ts = Cn;
|
5214
5225
|
new te(3e4, 6e4);
|
5215
5226
|
/**
|
5216
5227
|
* @license
|
@@ -5228,7 +5239,7 @@ new te(3e4, 6e4);
|
|
5228
5239
|
* See the License for the specific language governing permissions and
|
5229
5240
|
* limitations under the License.
|
5230
5241
|
*/
|
5231
|
-
function
|
5242
|
+
function ws(n, e) {
|
5232
5243
|
return e ? E(e) : (d(
|
5233
5244
|
n._popupRedirectResolver,
|
5234
5245
|
n,
|
@@ -5261,13 +5272,13 @@ class et extends bn {
|
|
5261
5272
|
), this.params = e;
|
5262
5273
|
}
|
5263
5274
|
_getIdTokenResponse(e) {
|
5264
|
-
return
|
5275
|
+
return V(e, this._buildIdpRequest());
|
5265
5276
|
}
|
5266
5277
|
_linkToIdToken(e, t) {
|
5267
|
-
return
|
5278
|
+
return V(e, this._buildIdpRequest(t));
|
5268
5279
|
}
|
5269
5280
|
_getReauthenticationResolver(e) {
|
5270
|
-
return
|
5281
|
+
return V(e, this._buildIdpRequest());
|
5271
5282
|
}
|
5272
5283
|
_buildIdpRequest(e) {
|
5273
5284
|
const t = {
|
@@ -5282,26 +5293,26 @@ class et extends bn {
|
|
5282
5293
|
return e && (t.idToken = e), t;
|
5283
5294
|
}
|
5284
5295
|
}
|
5285
|
-
function
|
5286
|
-
return
|
5296
|
+
function Rs(n) {
|
5297
|
+
return is(n.auth, new et(n), n.bypassAuthState);
|
5287
5298
|
}
|
5288
|
-
function
|
5299
|
+
function ks(n) {
|
5289
5300
|
const { auth: e, user: t } = n;
|
5290
5301
|
return d(
|
5291
5302
|
t,
|
5292
5303
|
e,
|
5293
5304
|
"internal-error"
|
5294
5305
|
/* AuthErrorCode.INTERNAL_ERROR */
|
5295
|
-
),
|
5306
|
+
), rs(t, new et(n), n.bypassAuthState);
|
5296
5307
|
}
|
5297
|
-
async function
|
5308
|
+
async function As(n) {
|
5298
5309
|
const { auth: e, user: t } = n;
|
5299
5310
|
return d(
|
5300
5311
|
t,
|
5301
5312
|
e,
|
5302
5313
|
"internal-error"
|
5303
5314
|
/* AuthErrorCode.INTERNAL_ERROR */
|
5304
|
-
),
|
5315
|
+
), ns(t, new et(n), n.bypassAuthState);
|
5305
5316
|
}
|
5306
5317
|
/**
|
5307
5318
|
* @license
|
@@ -5361,13 +5372,13 @@ class Nn {
|
|
5361
5372
|
switch (e) {
|
5362
5373
|
case "signInViaPopup":
|
5363
5374
|
case "signInViaRedirect":
|
5364
|
-
return
|
5375
|
+
return Rs;
|
5365
5376
|
case "linkViaPopup":
|
5366
5377
|
case "linkViaRedirect":
|
5367
|
-
return
|
5378
|
+
return As;
|
5368
5379
|
case "reauthViaPopup":
|
5369
5380
|
case "reauthViaRedirect":
|
5370
|
-
return
|
5381
|
+
return ks;
|
5371
5382
|
default:
|
5372
5383
|
w(
|
5373
5384
|
this.auth,
|
@@ -5402,10 +5413,10 @@ class Nn {
|
|
5402
5413
|
* See the License for the specific language governing permissions and
|
5403
5414
|
* limitations under the License.
|
5404
5415
|
*/
|
5405
|
-
const
|
5406
|
-
class
|
5416
|
+
const Ss = new te(2e3, 1e4);
|
5417
|
+
class W extends Nn {
|
5407
5418
|
constructor(e, t, r, i, s) {
|
5408
|
-
super(e, t, i, s), this.provider = r, this.authWindow = null, this.pollId = null,
|
5419
|
+
super(e, t, i, s), this.provider = r, this.authWindow = null, this.pollId = null, W.currentPopupAction && W.currentPopupAction.cancel(), W.currentPopupAction = this;
|
5409
5420
|
}
|
5410
5421
|
async executeNotNull() {
|
5411
5422
|
const e = await this.execute();
|
@@ -5447,7 +5458,7 @@ class H extends Nn {
|
|
5447
5458
|
));
|
5448
5459
|
}
|
5449
5460
|
cleanUp() {
|
5450
|
-
this.authWindow && this.authWindow.close(), this.pollId && window.clearTimeout(this.pollId), this.authWindow = null, this.pollId = null,
|
5461
|
+
this.authWindow && this.authWindow.close(), this.pollId && window.clearTimeout(this.pollId), this.authWindow = null, this.pollId = null, W.currentPopupAction = null;
|
5451
5462
|
}
|
5452
5463
|
pollUserCancellation() {
|
5453
5464
|
const e = () => {
|
@@ -5466,12 +5477,12 @@ class H extends Nn {
|
|
5466
5477
|
);
|
5467
5478
|
return;
|
5468
5479
|
}
|
5469
|
-
this.pollId = window.setTimeout(e,
|
5480
|
+
this.pollId = window.setTimeout(e, Ss.get());
|
5470
5481
|
};
|
5471
5482
|
e();
|
5472
5483
|
}
|
5473
5484
|
}
|
5474
|
-
|
5485
|
+
W.currentPopupAction = null;
|
5475
5486
|
/**
|
5476
5487
|
* @license
|
5477
5488
|
* Copyright 2020 Google LLC
|
@@ -5488,8 +5499,8 @@ H.currentPopupAction = null;
|
|
5488
5499
|
* See the License for the specific language governing permissions and
|
5489
5500
|
* limitations under the License.
|
5490
5501
|
*/
|
5491
|
-
const
|
5492
|
-
class
|
5502
|
+
const Os = "pendingRedirect", ae = /* @__PURE__ */ new Map();
|
5503
|
+
class Cs extends Nn {
|
5493
5504
|
constructor(e, t, r = !1) {
|
5494
5505
|
super(e, [
|
5495
5506
|
"signInViaRedirect",
|
@@ -5507,7 +5518,7 @@ class Ss extends Nn {
|
|
5507
5518
|
let e = ae.get(this.auth._key());
|
5508
5519
|
if (!e) {
|
5509
5520
|
try {
|
5510
|
-
const r = await
|
5521
|
+
const r = await Ns(this.resolver, this.auth) ? await super.execute() : null;
|
5511
5522
|
e = () => Promise.resolve(r);
|
5512
5523
|
} catch (t) {
|
5513
5524
|
e = () => Promise.reject(t);
|
@@ -5535,26 +5546,26 @@ class Ss extends Nn {
|
|
5535
5546
|
cleanUp() {
|
5536
5547
|
}
|
5537
5548
|
}
|
5538
|
-
async function
|
5539
|
-
const t =
|
5549
|
+
async function Ns(n, e) {
|
5550
|
+
const t = Ms(e), r = Ps(n);
|
5540
5551
|
if (!await r._isAvailable())
|
5541
5552
|
return !1;
|
5542
5553
|
const i = await r._get(t) === "true";
|
5543
5554
|
return await r._remove(t), i;
|
5544
5555
|
}
|
5545
|
-
function
|
5556
|
+
function Ds(n, e) {
|
5546
5557
|
ae.set(n._key(), e);
|
5547
5558
|
}
|
5548
|
-
function
|
5559
|
+
function Ps(n) {
|
5549
5560
|
return E(n._redirectPersistence);
|
5550
5561
|
}
|
5551
|
-
function
|
5552
|
-
return oe(
|
5562
|
+
function Ms(n) {
|
5563
|
+
return oe(Os, n.config.apiKey, n.name);
|
5553
5564
|
}
|
5554
|
-
async function
|
5565
|
+
async function Ls(n, e, t = !1) {
|
5555
5566
|
if (I(n.app))
|
5556
5567
|
return Promise.reject(P(n));
|
5557
|
-
const r = ve(n), i =
|
5568
|
+
const r = ve(n), i = ws(r, e), o = await new Cs(r, i, t).execute();
|
5558
5569
|
return o && !t && (delete o.user._redirectEventId, await r._persistUserIfCurrent(o.user), await r._setRedirectUser(null, e)), o;
|
5559
5570
|
}
|
5560
5571
|
/**
|
@@ -5573,8 +5584,8 @@ async function Ps(n, e, t = !1) {
|
|
5573
5584
|
* See the License for the specific language governing permissions and
|
5574
5585
|
* limitations under the License.
|
5575
5586
|
*/
|
5576
|
-
const
|
5577
|
-
class
|
5587
|
+
const Us = 10 * 60 * 1e3;
|
5588
|
+
class Bs {
|
5578
5589
|
constructor(e) {
|
5579
5590
|
this.auth = e, this.cachedEventUids = /* @__PURE__ */ new Set(), this.consumers = /* @__PURE__ */ new Set(), this.queuedRedirectEvent = null, this.hasHandledPotentialRedirect = !1, this.lastProcessedEventTime = Date.now();
|
5580
5591
|
}
|
@@ -5590,7 +5601,7 @@ class Ls {
|
|
5590
5601
|
let t = !1;
|
5591
5602
|
return this.consumers.forEach((r) => {
|
5592
5603
|
this.isEventForConsumer(e, r) && (t = !0, this.sendToConsumer(e, r), this.saveEventToCache(e));
|
5593
|
-
}), this.hasHandledPotentialRedirect || !
|
5604
|
+
}), this.hasHandledPotentialRedirect || !Fs(e) || (this.hasHandledPotentialRedirect = !0, t || (this.queuedRedirectEvent = e, t = !0)), t;
|
5594
5605
|
}
|
5595
5606
|
sendToConsumer(e, t) {
|
5596
5607
|
var r;
|
@@ -5605,7 +5616,7 @@ class Ls {
|
|
5605
5616
|
return t.filter.includes(e.type) && r;
|
5606
5617
|
}
|
5607
5618
|
hasEventBeenHandled(e) {
|
5608
|
-
return Date.now() - this.lastProcessedEventTime >=
|
5619
|
+
return Date.now() - this.lastProcessedEventTime >= Us && this.cachedEventUids.clear(), this.cachedEventUids.has(St(e));
|
5609
5620
|
}
|
5610
5621
|
saveEventToCache(e) {
|
5611
5622
|
this.cachedEventUids.add(St(e)), this.lastProcessedEventTime = Date.now();
|
@@ -5617,7 +5628,7 @@ function St(n) {
|
|
5617
5628
|
function Dn({ type: n, error: e }) {
|
5618
5629
|
return n === "unknown" && (e == null ? void 0 : e.code) === "auth/no-auth-event";
|
5619
5630
|
}
|
5620
|
-
function
|
5631
|
+
function Fs(n) {
|
5621
5632
|
switch (n.type) {
|
5622
5633
|
case "signInViaRedirect":
|
5623
5634
|
case "linkViaRedirect":
|
@@ -5645,7 +5656,7 @@ function Us(n) {
|
|
5645
5656
|
* See the License for the specific language governing permissions and
|
5646
5657
|
* limitations under the License.
|
5647
5658
|
*/
|
5648
|
-
async function
|
5659
|
+
async function Ws(n, e = {}) {
|
5649
5660
|
return Z(n, "GET", "/v1/projects", e);
|
5650
5661
|
}
|
5651
5662
|
/**
|
@@ -5664,14 +5675,14 @@ async function Bs(n, e = {}) {
|
|
5664
5675
|
* See the License for the specific language governing permissions and
|
5665
5676
|
* limitations under the License.
|
5666
5677
|
*/
|
5667
|
-
const
|
5668
|
-
async function
|
5678
|
+
const Hs = /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/, xs = /^https?/;
|
5679
|
+
async function js(n) {
|
5669
5680
|
if (n.config.emulator)
|
5670
5681
|
return;
|
5671
|
-
const { authorizedDomains: e } = await
|
5682
|
+
const { authorizedDomains: e } = await Ws(n);
|
5672
5683
|
for (const t of e)
|
5673
5684
|
try {
|
5674
|
-
if (
|
5685
|
+
if (Vs(t))
|
5675
5686
|
return;
|
5676
5687
|
} catch {
|
5677
5688
|
}
|
@@ -5681,15 +5692,15 @@ async function Vs(n) {
|
|
5681
5692
|
/* AuthErrorCode.INVALID_ORIGIN */
|
5682
5693
|
);
|
5683
5694
|
}
|
5684
|
-
function
|
5685
|
-
const e =
|
5695
|
+
function Vs(n) {
|
5696
|
+
const e = We(), { protocol: t, hostname: r } = new URL(e);
|
5686
5697
|
if (n.startsWith("chrome-extension://")) {
|
5687
5698
|
const o = new URL(n);
|
5688
5699
|
return o.hostname === "" && r === "" ? t === "chrome-extension:" && n.replace("chrome-extension://", "") === e.replace("chrome-extension://", "") : t === "chrome-extension:" && o.hostname === r;
|
5689
5700
|
}
|
5690
|
-
if (!
|
5701
|
+
if (!xs.test(t))
|
5691
5702
|
return !1;
|
5692
|
-
if (
|
5703
|
+
if (Hs.test(n))
|
5693
5704
|
return r === n;
|
5694
5705
|
const i = n.replace(/\./g, "\\.");
|
5695
5706
|
return new RegExp("^(.+\\." + i + "|" + i + ")$", "i").test(r);
|
@@ -5710,7 +5721,7 @@ function js(n) {
|
|
5710
5721
|
* See the License for the specific language governing permissions and
|
5711
5722
|
* limitations under the License.
|
5712
5723
|
*/
|
5713
|
-
const
|
5724
|
+
const Gs = new te(3e4, 6e4);
|
5714
5725
|
function Ot() {
|
5715
5726
|
const n = g().___jsl;
|
5716
5727
|
if (n != null && n.H) {
|
@@ -5720,7 +5731,7 @@ function Ot() {
|
|
5720
5731
|
n.CP[t] = null;
|
5721
5732
|
}
|
5722
5733
|
}
|
5723
|
-
function
|
5734
|
+
function zs(n) {
|
5724
5735
|
return new Promise((e, t) => {
|
5725
5736
|
var r, i, s;
|
5726
5737
|
function o() {
|
@@ -5735,7 +5746,7 @@ function Gs(n) {
|
|
5735
5746
|
/* AuthErrorCode.NETWORK_REQUEST_FAILED */
|
5736
5747
|
));
|
5737
5748
|
},
|
5738
|
-
timeout:
|
5749
|
+
timeout: Gs.get()
|
5739
5750
|
});
|
5740
5751
|
}
|
5741
5752
|
if (!((i = (r = g().gapi) === null || r === void 0 ? void 0 : r.iframes) === null || i === void 0) && i.Iframe)
|
@@ -5743,22 +5754,22 @@ function Gs(n) {
|
|
5743
5754
|
else if (!((s = g().gapi) === null || s === void 0) && s.load)
|
5744
5755
|
o();
|
5745
5756
|
else {
|
5746
|
-
const a =
|
5757
|
+
const a = Xi("iframefcb");
|
5747
5758
|
return g()[a] = () => {
|
5748
5759
|
gapi.load ? o() : t(_(
|
5749
5760
|
n,
|
5750
5761
|
"network-request-failed"
|
5751
5762
|
/* AuthErrorCode.NETWORK_REQUEST_FAILED */
|
5752
5763
|
));
|
5753
|
-
},
|
5764
|
+
}, $i(`${Ji()}?onload=${a}`).catch((c) => t(c));
|
5754
5765
|
}
|
5755
5766
|
}).catch((e) => {
|
5756
5767
|
throw ce = null, e;
|
5757
5768
|
});
|
5758
5769
|
}
|
5759
5770
|
let ce = null;
|
5760
|
-
function
|
5761
|
-
return ce = ce ||
|
5771
|
+
function Zs(n) {
|
5772
|
+
return ce = ce || zs(n), ce;
|
5762
5773
|
}
|
5763
5774
|
/**
|
5764
5775
|
* @license
|
@@ -5776,7 +5787,7 @@ function Ws(n) {
|
|
5776
5787
|
* See the License for the specific language governing permissions and
|
5777
5788
|
* limitations under the License.
|
5778
5789
|
*/
|
5779
|
-
const
|
5790
|
+
const $s = new te(5e3, 15e3), Js = "__/auth/iframe", Xs = "emulator/auth/iframe", Ys = {
|
5780
5791
|
style: {
|
5781
5792
|
position: "absolute",
|
5782
5793
|
top: "-100px",
|
@@ -5785,13 +5796,13 @@ const zs = new te(5e3, 15e3), Zs = "__/auth/iframe", $s = "emulator/auth/iframe"
|
|
5785
5796
|
},
|
5786
5797
|
"aria-hidden": "true",
|
5787
5798
|
tabindex: "-1"
|
5788
|
-
},
|
5799
|
+
}, Ks = /* @__PURE__ */ new Map([
|
5789
5800
|
["identitytoolkit.googleapis.com", "p"],
|
5790
5801
|
["staging-identitytoolkit.sandbox.googleapis.com", "s"],
|
5791
5802
|
["test-identitytoolkit.sandbox.googleapis.com", "t"]
|
5792
5803
|
// test
|
5793
5804
|
]);
|
5794
|
-
function
|
5805
|
+
function qs(n) {
|
5795
5806
|
const e = n.config;
|
5796
5807
|
d(
|
5797
5808
|
e.authDomain,
|
@@ -5799,17 +5810,17 @@ function Ys(n) {
|
|
5799
5810
|
"auth-domain-config-required"
|
5800
5811
|
/* AuthErrorCode.MISSING_AUTH_DOMAIN */
|
5801
5812
|
);
|
5802
|
-
const t = e.emulator ? Xe(e,
|
5813
|
+
const t = e.emulator ? Xe(e, Xs) : `https://${n.config.authDomain}/${Js}`, r = {
|
5803
5814
|
apiKey: e.apiKey,
|
5804
5815
|
appName: n.name,
|
5805
5816
|
v: ee
|
5806
|
-
}, i =
|
5817
|
+
}, i = Ks.get(n.config.apiHost);
|
5807
5818
|
i && (r.eid = i);
|
5808
5819
|
const s = n._getFrameworks();
|
5809
5820
|
return s.length && (r.fw = s.join(",")), `${t}?${Q(r).slice(1)}`;
|
5810
5821
|
}
|
5811
|
-
async function
|
5812
|
-
const e = await
|
5822
|
+
async function Qs(n) {
|
5823
|
+
const e = await Zs(n), t = g().gapi;
|
5813
5824
|
return d(
|
5814
5825
|
t,
|
5815
5826
|
n,
|
@@ -5817,9 +5828,9 @@ async function Ks(n) {
|
|
5817
5828
|
/* AuthErrorCode.INTERNAL_ERROR */
|
5818
5829
|
), e.open({
|
5819
5830
|
where: document.body,
|
5820
|
-
url:
|
5831
|
+
url: qs(n),
|
5821
5832
|
messageHandlersFilter: t.iframes.CROSS_ORIGIN_IFRAMES_FILTER,
|
5822
|
-
attributes:
|
5833
|
+
attributes: Ys,
|
5823
5834
|
dontclear: !0
|
5824
5835
|
}, (r) => new Promise(async (i, s) => {
|
5825
5836
|
await r.restyle({
|
@@ -5832,7 +5843,7 @@ async function Ks(n) {
|
|
5832
5843
|
/* AuthErrorCode.NETWORK_REQUEST_FAILED */
|
5833
5844
|
), a = g().setTimeout(() => {
|
5834
5845
|
s(o);
|
5835
|
-
},
|
5846
|
+
}, $s.get());
|
5836
5847
|
function c() {
|
5837
5848
|
g().clearTimeout(a), i(r);
|
5838
5849
|
}
|
@@ -5857,12 +5868,12 @@ async function Ks(n) {
|
|
5857
5868
|
* See the License for the specific language governing permissions and
|
5858
5869
|
* limitations under the License.
|
5859
5870
|
*/
|
5860
|
-
const
|
5871
|
+
const eo = {
|
5861
5872
|
location: "yes",
|
5862
5873
|
resizable: "yes",
|
5863
5874
|
statusbar: "yes",
|
5864
5875
|
toolbar: "no"
|
5865
|
-
},
|
5876
|
+
}, to = 500, no = 600, ro = "_blank", io = "http://localhost";
|
5866
5877
|
class Ct {
|
5867
5878
|
constructor(e) {
|
5868
5879
|
this.window = e, this.associatedEvent = null;
|
@@ -5875,19 +5886,19 @@ class Ct {
|
|
5875
5886
|
}
|
5876
5887
|
}
|
5877
5888
|
}
|
5878
|
-
function
|
5889
|
+
function so(n, e, t, r = to, i = no) {
|
5879
5890
|
const s = Math.max((window.screen.availHeight - i) / 2, 0).toString(), o = Math.max((window.screen.availWidth - r) / 2, 0).toString();
|
5880
5891
|
let a = "";
|
5881
|
-
const c = Object.assign(Object.assign({},
|
5892
|
+
const c = Object.assign(Object.assign({}, eo), {
|
5882
5893
|
width: r.toString(),
|
5883
5894
|
height: i.toString(),
|
5884
5895
|
top: s,
|
5885
5896
|
left: o
|
5886
5897
|
}), l = f().toLowerCase();
|
5887
|
-
t && (a = hn(l) ?
|
5898
|
+
t && (a = hn(l) ? ro : t), dn(l) && (e = e || io, c.scrollbars = "yes");
|
5888
5899
|
const u = Object.entries(c).reduce((m, [v, F]) => `${m}${v}=${F},`, "");
|
5889
|
-
if (
|
5890
|
-
return
|
5900
|
+
if (Wi(l) && a !== "_self")
|
5901
|
+
return oo(e || "", a), new Ct(null);
|
5891
5902
|
const p = window.open(e || "", a, u);
|
5892
5903
|
d(
|
5893
5904
|
p,
|
@@ -5901,7 +5912,7 @@ function ro(n, e, t, r = Qs, i = eo) {
|
|
5901
5912
|
}
|
5902
5913
|
return new Ct(p);
|
5903
5914
|
}
|
5904
|
-
function
|
5915
|
+
function oo(n, e) {
|
5905
5916
|
const t = document.createElement("a");
|
5906
5917
|
t.href = n, t.target = e;
|
5907
5918
|
const r = document.createEvent("MouseEvent");
|
@@ -5923,7 +5934,7 @@ function io(n, e) {
|
|
5923
5934
|
* See the License for the specific language governing permissions and
|
5924
5935
|
* limitations under the License.
|
5925
5936
|
*/
|
5926
|
-
const
|
5937
|
+
const ao = "__/auth/handler", co = "emulator/auth/handler", lo = encodeURIComponent("fac");
|
5927
5938
|
async function Nt(n, e, t, r, i, s) {
|
5928
5939
|
d(
|
5929
5940
|
n.config.authDomain,
|
@@ -5945,7 +5956,7 @@ async function Nt(n, e, t, r, i, s) {
|
|
5945
5956
|
eventId: i
|
5946
5957
|
};
|
5947
5958
|
if (e instanceof yn) {
|
5948
|
-
e.setDefaultLanguage(n.languageCode), o.providerId = e.providerId || "",
|
5959
|
+
e.setDefaultLanguage(n.languageCode), o.providerId = e.providerId || "", lr(e.getCustomParameters()) || (o.customParameters = JSON.stringify(e.getCustomParameters()));
|
5949
5960
|
for (const [u, p] of Object.entries({}))
|
5950
5961
|
o[u] = p;
|
5951
5962
|
}
|
@@ -5957,11 +5968,11 @@ async function Nt(n, e, t, r, i, s) {
|
|
5957
5968
|
const a = o;
|
5958
5969
|
for (const u of Object.keys(a))
|
5959
5970
|
a[u] === void 0 && delete a[u];
|
5960
|
-
const c = await n._getAppCheckToken(), l = c ? `#${
|
5961
|
-
return `${
|
5971
|
+
const c = await n._getAppCheckToken(), l = c ? `#${lo}=${encodeURIComponent(c)}` : "";
|
5972
|
+
return `${uo(n)}?${Q(a).slice(1)}${l}`;
|
5962
5973
|
}
|
5963
|
-
function
|
5964
|
-
return n.emulator ? Xe(n,
|
5974
|
+
function uo({ config: n }) {
|
5975
|
+
return n.emulator ? Xe(n, co) : `https://${n.authDomain}/${ao}`;
|
5965
5976
|
}
|
5966
5977
|
/**
|
5967
5978
|
* @license
|
@@ -5980,22 +5991,22 @@ function co({ config: n }) {
|
|
5980
5991
|
* limitations under the License.
|
5981
5992
|
*/
|
5982
5993
|
const Ne = "webStorageSupport";
|
5983
|
-
class
|
5994
|
+
class ho {
|
5984
5995
|
constructor() {
|
5985
|
-
this.eventManagers = {}, this.iframes = {}, this.originValidationPromises = {}, this._redirectPersistence =
|
5996
|
+
this.eventManagers = {}, this.iframes = {}, this.originValidationPromises = {}, this._redirectPersistence = kn, this._completeRedirectFn = Ls, this._overrideRedirectResult = Ds;
|
5986
5997
|
}
|
5987
5998
|
// Wrapping in async even though we don't await anywhere in order
|
5988
5999
|
// to make sure errors are raised as promise rejections
|
5989
6000
|
async _openPopup(e, t, r, i) {
|
5990
6001
|
var s;
|
5991
6002
|
R((s = this.eventManagers[e._key()]) === null || s === void 0 ? void 0 : s.manager, "_initialize() not called before _openPopup()");
|
5992
|
-
const o = await Nt(e, t, r,
|
5993
|
-
return
|
6003
|
+
const o = await Nt(e, t, r, We(), i);
|
6004
|
+
return so(e, o, Qe());
|
5994
6005
|
}
|
5995
6006
|
async _openRedirect(e, t, r, i) {
|
5996
6007
|
await this._originValidation(e);
|
5997
|
-
const s = await Nt(e, t, r,
|
5998
|
-
return
|
6008
|
+
const s = await Nt(e, t, r, We(), i);
|
6009
|
+
return fs(s), new Promise(() => {
|
5999
6010
|
});
|
6000
6011
|
}
|
6001
6012
|
_initialize(e) {
|
@@ -6010,7 +6021,7 @@ class lo {
|
|
6010
6021
|
}), r;
|
6011
6022
|
}
|
6012
6023
|
async initAndGetManager(e) {
|
6013
|
-
const t = await
|
6024
|
+
const t = await Qs(e), r = new Bs(e);
|
6014
6025
|
return t.register("authEvent", (i) => (d(
|
6015
6026
|
i == null ? void 0 : i.authEvent,
|
6016
6027
|
e,
|
@@ -6034,13 +6045,13 @@ class lo {
|
|
6034
6045
|
}
|
6035
6046
|
_originValidation(e) {
|
6036
6047
|
const t = e._key();
|
6037
|
-
return this.originValidationPromises[t] || (this.originValidationPromises[t] =
|
6048
|
+
return this.originValidationPromises[t] || (this.originValidationPromises[t] = js(e)), this.originValidationPromises[t];
|
6038
6049
|
}
|
6039
6050
|
get _shouldInitProactively() {
|
6040
6051
|
return gn() || un() || Ke();
|
6041
6052
|
}
|
6042
6053
|
}
|
6043
|
-
const
|
6054
|
+
const po = ho;
|
6044
6055
|
var Dt = "@firebase/auth", Pt = "1.7.9";
|
6045
6056
|
/**
|
6046
6057
|
* @license
|
@@ -6058,7 +6069,7 @@ var Dt = "@firebase/auth", Pt = "1.7.9";
|
|
6058
6069
|
* See the License for the specific language governing permissions and
|
6059
6070
|
* limitations under the License.
|
6060
6071
|
*/
|
6061
|
-
class
|
6072
|
+
class fo {
|
6062
6073
|
constructor(e) {
|
6063
6074
|
this.auth = e, this.internalListeners = /* @__PURE__ */ new Map();
|
6064
6075
|
}
|
@@ -6109,7 +6120,7 @@ class ho {
|
|
6109
6120
|
* See the License for the specific language governing permissions and
|
6110
6121
|
* limitations under the License.
|
6111
6122
|
*/
|
6112
|
-
function
|
6123
|
+
function mo(n) {
|
6113
6124
|
switch (n) {
|
6114
6125
|
case "Node":
|
6115
6126
|
return "node";
|
@@ -6125,8 +6136,8 @@ function po(n) {
|
|
6125
6136
|
return;
|
6126
6137
|
}
|
6127
6138
|
}
|
6128
|
-
function
|
6129
|
-
X(new
|
6139
|
+
function _o(n) {
|
6140
|
+
X(new G(
|
6130
6141
|
"auth",
|
6131
6142
|
(e, { options: t }) => {
|
6132
6143
|
const r = e.getProvider("app").getImmediate(), i = e.getProvider("heartbeat"), s = e.getProvider("app-check-internal"), { apiKey: o, authDomain: a } = r.options;
|
@@ -6139,8 +6150,8 @@ function fo(n) {
|
|
6139
6150
|
tokenApiHost: "securetoken.googleapis.com",
|
6140
6151
|
apiScheme: "https",
|
6141
6152
|
sdkClientVersion: vn(n)
|
6142
|
-
}, l = new
|
6143
|
-
return
|
6153
|
+
}, l = new zi(r, i, s, c);
|
6154
|
+
return Ki(l, t), l;
|
6144
6155
|
},
|
6145
6156
|
"PUBLIC"
|
6146
6157
|
/* ComponentType.PUBLIC */
|
@@ -6152,21 +6163,21 @@ function fo(n) {
|
|
6152
6163
|
"auth-internal"
|
6153
6164
|
/* _ComponentName.AUTH_INTERNAL */
|
6154
6165
|
).initialize();
|
6155
|
-
})), X(new
|
6166
|
+
})), X(new G(
|
6156
6167
|
"auth-internal",
|
6157
6168
|
(e) => {
|
6158
6169
|
const t = ve(e.getProvider(
|
6159
6170
|
"auth"
|
6160
6171
|
/* _ComponentName.AUTH */
|
6161
6172
|
).getImmediate());
|
6162
|
-
return ((r) => new
|
6173
|
+
return ((r) => new fo(r))(t);
|
6163
6174
|
},
|
6164
6175
|
"PRIVATE"
|
6165
6176
|
/* ComponentType.PRIVATE */
|
6166
6177
|
).setInstantiationMode(
|
6167
6178
|
"EXPLICIT"
|
6168
6179
|
/* InstantiationMode.EXPLICIT */
|
6169
|
-
)),
|
6180
|
+
)), H(Dt, Pt, mo(n)), H(Dt, Pt, "esm2017");
|
6170
6181
|
}
|
6171
6182
|
/**
|
6172
6183
|
* @license
|
@@ -6184,11 +6195,11 @@ function fo(n) {
|
|
6184
6195
|
* See the License for the specific language governing permissions and
|
6185
6196
|
* limitations under the License.
|
6186
6197
|
*/
|
6187
|
-
const
|
6198
|
+
const go = 5 * 60, vo = zt("authIdTokenMaxAge") || go;
|
6188
6199
|
let Mt = null;
|
6189
|
-
const
|
6200
|
+
const Io = (n) => async (e) => {
|
6190
6201
|
const t = e && await e.getIdTokenResult(), r = t && ((/* @__PURE__ */ new Date()).getTime() - Date.parse(t.issuedAtTime)) / 1e3;
|
6191
|
-
if (r && r >
|
6202
|
+
if (r && r > vo)
|
6192
6203
|
return;
|
6193
6204
|
const i = t == null ? void 0 : t.token;
|
6194
6205
|
Mt !== i && (Mt = i, await fetch(n, {
|
@@ -6198,33 +6209,33 @@ const go = (n) => async (e) => {
|
|
6198
6209
|
} : {}
|
6199
6210
|
}));
|
6200
6211
|
};
|
6201
|
-
function
|
6212
|
+
function bo(n = ui()) {
|
6202
6213
|
const e = Xt(n, "auth");
|
6203
6214
|
if (e.isInitialized())
|
6204
6215
|
return e.getImmediate();
|
6205
|
-
const t =
|
6206
|
-
popupRedirectResolver:
|
6216
|
+
const t = Yi(n, {
|
6217
|
+
popupRedirectResolver: po,
|
6207
6218
|
persistence: [
|
6208
|
-
|
6209
|
-
|
6210
|
-
|
6219
|
+
Ts,
|
6220
|
+
us,
|
6221
|
+
kn
|
6211
6222
|
]
|
6212
6223
|
}), r = zt("authTokenSyncURL");
|
6213
6224
|
if (r && typeof isSecureContext == "boolean" && isSecureContext) {
|
6214
6225
|
const s = new URL(r, location.origin);
|
6215
6226
|
if (location.origin === s.origin) {
|
6216
|
-
const o =
|
6217
|
-
|
6227
|
+
const o = Io(s.toString());
|
6228
|
+
cs(t, o, () => o(t.currentUser)), as(t, (a) => o(a));
|
6218
6229
|
}
|
6219
6230
|
}
|
6220
|
-
const i =
|
6221
|
-
return i &&
|
6231
|
+
const i = Vt("auth");
|
6232
|
+
return i && qi(t, `http://${i}`), t;
|
6222
6233
|
}
|
6223
|
-
function
|
6234
|
+
function yo() {
|
6224
6235
|
var n, e;
|
6225
6236
|
return (e = (n = document.getElementsByTagName("head")) === null || n === void 0 ? void 0 : n[0]) !== null && e !== void 0 ? e : document;
|
6226
6237
|
}
|
6227
|
-
|
6238
|
+
Zi({
|
6228
6239
|
loadJS(n) {
|
6229
6240
|
return new Promise((e, t) => {
|
6230
6241
|
const r = document.createElement("script");
|
@@ -6234,30 +6245,30 @@ Wi({
|
|
6234
6245
|
/* AuthErrorCode.INTERNAL_ERROR */
|
6235
6246
|
);
|
6236
6247
|
s.customData = i, t(s);
|
6237
|
-
}, r.type = "text/javascript", r.charset = "UTF-8",
|
6248
|
+
}, r.type = "text/javascript", r.charset = "UTF-8", yo().appendChild(r);
|
6238
6249
|
});
|
6239
6250
|
},
|
6240
6251
|
gapiScript: "https://apis.google.com/js/api.js",
|
6241
6252
|
recaptchaV2Script: "https://www.google.com/recaptcha/api.js",
|
6242
6253
|
recaptchaEnterpriseScript: "https://www.google.com/recaptcha/enterprise.js?render="
|
6243
6254
|
});
|
6244
|
-
|
6255
|
+
_o(
|
6245
6256
|
"Browser"
|
6246
6257
|
/* ClientPlatform.BROWSER */
|
6247
6258
|
);
|
6248
|
-
const
|
6259
|
+
const Eo = Ln({
|
6249
6260
|
history: Un(),
|
6250
|
-
routes: [...
|
6261
|
+
routes: [...Ge, ...Ve]
|
6251
6262
|
});
|
6252
6263
|
let De, Pe;
|
6253
|
-
|
6264
|
+
Eo.beforeEach(async (n) => {
|
6254
6265
|
const {
|
6255
6266
|
sessionUser: e,
|
6256
6267
|
currentRestaurant: t,
|
6257
6268
|
currentBusiness: r,
|
6258
6269
|
readRestaurants: i,
|
6259
6270
|
changeRestaurant: s
|
6260
|
-
} =
|
6271
|
+
} = je();
|
6261
6272
|
return n.name.startsWith("mf-payment-admin") ? e.value ? !0 : (De || (De = new Promise((o) => {
|
6262
6273
|
const a = $(e, (c) => {
|
6263
6274
|
var l;
|
@@ -6277,26 +6288,28 @@ bo.beforeEach(async (n) => {
|
|
6277
6288
|
})
|
6278
6289
|
]).then((o) => !0)), Pe) : !0;
|
6279
6290
|
});
|
6280
|
-
const
|
6291
|
+
const To = /* @__PURE__ */ Ut({
|
6281
6292
|
__name: "AppSidebar",
|
6282
6293
|
setup(n) {
|
6283
|
-
const e =
|
6294
|
+
const e = je(), t = Bn(), r = Fn(t.currentRoute.value.name);
|
6284
6295
|
$(t.currentRoute, () => {
|
6285
6296
|
let a = t.currentRoute.value.name;
|
6286
6297
|
t.currentRoute.value.meta.parent && (a = t.currentRoute.value.meta.parent), r.value = a;
|
6287
6298
|
});
|
6288
|
-
const i =
|
6289
|
-
var
|
6290
|
-
if ((
|
6291
|
-
return
|
6292
|
-
|
6293
|
-
|
6294
|
-
|
6295
|
-
|
6296
|
-
|
6297
|
-
|
6298
|
-
}
|
6299
|
-
|
6299
|
+
const i = Ge.map((a) => {
|
6300
|
+
var l;
|
6301
|
+
if (!((l = a.meta) != null && l.sidebarDisplay))
|
6302
|
+
return;
|
6303
|
+
const c = {
|
6304
|
+
label: a.meta.sidebarDisplay,
|
6305
|
+
value: a.name,
|
6306
|
+
action: () => {
|
6307
|
+
if (t.currentRoute.value.name !== a.name)
|
6308
|
+
return t.push({ name: a.name });
|
6309
|
+
}
|
6310
|
+
};
|
6311
|
+
return a.meta.sidebarNew && (c.badge = () => Wn(Vn.FmPill, { label: "New" })), c;
|
6312
|
+
}).filter((a) => !!a), s = Ve.map((a) => {
|
6300
6313
|
var c;
|
6301
6314
|
if ((c = a.meta) != null && c.sidebarDisplay)
|
6302
6315
|
return {
|
@@ -6323,51 +6336,51 @@ const yo = /* @__PURE__ */ Ut({
|
|
6323
6336
|
});
|
6324
6337
|
return (a, c) => {
|
6325
6338
|
const l = Bt("FmCollapsibleTabs");
|
6326
|
-
return Ft(),
|
6339
|
+
return Ft(), Wt(l, {
|
6327
6340
|
modelValue: r.value,
|
6328
6341
|
"onUpdate:modelValue": c[0] || (c[0] = (u) => r.value = u),
|
6329
6342
|
items: o.value,
|
6330
|
-
class: "py-16 px-8"
|
6343
|
+
class: "py-16 px-8 w-[240px]"
|
6331
6344
|
}, null, 8, ["modelValue", "items"]);
|
6332
6345
|
};
|
6333
6346
|
}
|
6334
6347
|
});
|
6335
|
-
var
|
6336
|
-
const
|
6348
|
+
var wo = { authClientId: "1a362d621873497b277ea55258cc82594ba148d235257f7bd44ea2acc132d8a4", googleMap: "AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4", 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" };
|
6349
|
+
const Do = /* @__PURE__ */ Ut({
|
6337
6350
|
__name: "App",
|
6338
6351
|
setup(n) {
|
6339
|
-
const { state: e } =
|
6352
|
+
const { state: e } = Gn(), t = je(), r = Yt(wo.firebase);
|
6340
6353
|
async function i() {
|
6341
6354
|
const s = t.sessionUser.value;
|
6342
6355
|
if (!s || !s.token) return;
|
6343
|
-
const o = await s.getCustomToken(), a =
|
6344
|
-
await
|
6356
|
+
const o = await s.getCustomToken(), a = bo(r);
|
6357
|
+
await os(a, o);
|
6345
6358
|
}
|
6346
6359
|
return i(), $(t.sessionUser, i), Hn(() => {
|
6347
6360
|
e.isIframe && parent.postMessage({ event: "ready" }, "*");
|
6348
|
-
}),
|
6349
|
-
t.registerSidebarComponent(
|
6361
|
+
}), xn(() => {
|
6362
|
+
t.registerSidebarComponent(To);
|
6350
6363
|
}), (s, o) => {
|
6351
6364
|
const a = Bt("RouterView");
|
6352
|
-
return Ft(),
|
6365
|
+
return Ft(), Wt(a);
|
6353
6366
|
};
|
6354
6367
|
}
|
6355
|
-
}),
|
6356
|
-
...
|
6357
|
-
...
|
6368
|
+
}), Po = [
|
6369
|
+
...Ve,
|
6370
|
+
...Ge
|
6358
6371
|
];
|
6359
6372
|
export {
|
6360
|
-
|
6373
|
+
G as C,
|
6361
6374
|
M as F,
|
6362
6375
|
ee as S,
|
6363
6376
|
X as _,
|
6364
6377
|
Xt as a,
|
6365
|
-
|
6366
|
-
|
6367
|
-
|
6378
|
+
Co as b,
|
6379
|
+
ui as c,
|
6380
|
+
No as d,
|
6368
6381
|
gt as e,
|
6369
|
-
|
6382
|
+
Po as f,
|
6370
6383
|
z as g,
|
6371
|
-
|
6372
|
-
|
6384
|
+
Do as h,
|
6385
|
+
H as r
|
6373
6386
|
};
|