1"use strict";(self["webpackChunkPhone2Fork"]=self["webpackChunkPhone2Fork"]||[]).push([[3141],{44164:function(e,t,n){n.d(t,{qX:function(){return Z},Xd:function(){return G},Mq:function(){return te},ZF:function(){return ee},KN:function(){return ne}});var i=n(8463); 2/** 3 * @license 4 * Copyright 2017 Google LLC 5 * 6 * Licensed under the Apache License, Version 2.0 (the "License"); 7 * you may not use this file except in compliance with the License. 8 * You may obtain a copy of the License at 9 * 10 * http://www.apache.org/licenses/LICENSE-2.0 11 * 12 * Unless required by applicable law or agreed to in writing, software 13 * distributed under the License is distributed on an "AS IS" BASIS, 14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 * See the License for the specific language governing permissions and 16 * limitations under the License. 17 */ 18const a=[];var r;(function(e){e[e["DEBUG"]=0]="DEBUG",e[e["VERBOSE"]=1]="VERBOSE",e[e["INFO"]=2]="INFO",e[e["WARN"]=3]="WARN",e[e["ERROR"]=4]="ERROR",e[e["SILENT"]=5]="SILENT"})(r||(r={}));const o={debug:r.DEBUG,verbose:r.VERBOSE,info:r.INFO,warn:r.WARN,error:r.ERROR,silent:r.SILENT},s=r.INFO,c={[r.DEBUG]:"log",[r.VERBOSE]:"log",[r.INFO]:"info",[r.WARN]:"warn",[r.ERROR]:"error"},u=(e,t,...n)=>{if(t<e.logLevel)return;const i=(new Date).toISOString(),a=c[t];if(!a)throw new Error(`Attempted to log a message with an invalid logType (value: ${t})`);console[a](`[${i}] ${e.name}:`,...n)};class l{constructor(e){this.name=e,this._logLevel=s,this._logHandler=u,this._userLogHandler=null,a.push(this)}get logLevel(){return this._logLevel}set logLevel(e){if(!(e in r))throw new TypeError(`Invalid value "${e}" assigned to \`logLevel\``);this._logLevel=e}setLogLevel(e){this._logLevel="string"===typeof e?o[e]:e}get logHandler(){return this._logHandler}set logHandler(e){if("function"!==typeof e)throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=e}get userLogHandler(){return this._userLogHandler}set userLogHandler(e){this._userLogHandler=e}debug(...e){this._userLogHandler&&this._userLogHandler(this,r.DEBUG,...e),this._logHandler(this,r.DEBUG,...e)}log(...e){this._userLogHandler&&this._userLogHandler(this,r.VERBOSE,...e),this._logHandler(this,r.VERBOSE,...e)}info(...e){this._userLogHandler&&this._userLogHandler(this,r.INFO,...e),this._logHandler(this,r.INFO,...e)}warn(...e){this._userLogHandler&&this._userLogHandler(this,r.WARN,...e),this._logHandler(this,r.WARN,...e)}error(...e){this._userLogHandler&&this._userLogHandler(this,r.ERROR,...e),this._logHandler(this,r.ERROR,...e)}}var d=n(74444),p=n(26531); 19/** 20 * @license 21 * Copyright 2019 Google LLC 22 * 23 * Licensed under the Apache License, Version 2.0 (the "License"); 24 * you may not use this file except in compliance with the License. 25 * You may obtain a copy of the License at 26 * 27 * http://www.apache.org/licenses/LICENSE-2.0 28 * 29 * Unless required by applicable law or agreed to in writing, software 30 * distributed under the License is distributed on an "AS IS" BASIS, 31 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 32 * See the License for the specific language governing permissions and 33 * limitations under the License. 34 */ 35class f{constructor(e){this.container=e}getPlatformInfoString(){const e=this.container.getProviders();return e.map((e=>{if(h(e)){const t=e.getImmediate();return`${t.library}/${t.version}`}return null})).filter((e=>e)).join(" ")}}function h(e){const t=e.getComponent();return"VERSION"===(null===t||void 0===t?void 0:t.type)}const g="@firebase/app",m="0.10.6",w=new l("@firebase/app"),b="@firebase/app-compat",v="@firebase/analytics-compat",y="@firebase/analytics",I="@firebase/app-check-compat",k="@firebase/app-check",S="@firebase/auth",C="@firebase/auth-compat",_="@firebase/database",E="@firebase/database-compat",D="@firebase/functions",O="@firebase/functions-compat",T="@firebase/installations",A="@firebase/installations-compat",P="@firebase/messaging",N="@firebase/messaging-compat",j="@firebase/performance",H="@firebase/performance-compat",L="@firebase/remote-config",$="@firebase/remote-config-compat",M="@firebase/storage",R="@firebase/storage-compat",F="@firebase/firestore",K="@firebase/vertexai-preview",x="@firebase/firestore-compat",B="firebase",z="[DEFAULT]",q={[g]:"fire-core",[b]:"fire-core-compat",[y]:"fire-analytics",[v]:"fire-analytics-compat",[k]:"fire-app-check",[I]:"fire-app-check-compat",[S]:"fire-auth",[C]:"fire-auth-compat",[_]:"fire-rtdb",[E]:"fire-rtdb-compat",[D]:"fire-fn",[O]:"fire-fn-compat",[T]:"fire-iid",[A]:"fire-iid-compat",[P]:"fire-fcm",[N]:"fire-fcm-compat",[j]:"fire-perf",[H]:"fire-perf-compat",[L]:"fire-rc",[$]:"fire-rc-compat",[M]:"fire-g
35cs",[R]:"fire-gcs-compat",[F]:"fire-fst",[x]:"fire-fst-compat",[K]:"fire-vertex","fire-js":"fire-js",[B]:"fire-js-all"},V=new Map,U=new Map,W=new Map;function X(e,t){try{e.container.addComponent(t)}catch(n){w.debug(`Component ${t.name} failed to register with FirebaseApp ${e.name}`,n)}}function G(e){const t=e.name;if(W.has(t))return w.debug(`There were multiple attempts to register component ${t}.`),!1;W.set(t,e);for(const n of V.values())X(n,e);for(const n of U.values())X(n,e);return!0}function Z(e,t){const n=e.container.getProvider("heartbeat").getImmediate({optional:!0});return n&&n.triggerHeartbeat(),e.container.getProvider(t)} 36/** 37 * @license 38 * Copyright 2019 Google LLC 39 * 40 * Licensed under the Apache License, Version 2.0 (the "License"); 41 * you may not use this file except in compliance with the License. 42 * You may obtain a copy of the License at 43 * 44 * http://www.apache.org/licenses/LICENSE-2.0 45 * 46 * Unless required by applicable law or agreed to in writing, software 47 * distributed under the License is distributed on an "AS IS" BASIS, 48 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 49 * See the License for the specific language governing permissions and 50 * limitations under the License. 51 */ 52const J={["no-app"]:"No Firebase App '{$appName}' has been created - call initializeApp() first",["bad-app-name"]:"Illegal App name: '{$appName}'",["duplicate-app"]:"Firebase App named '{$appName}' already exists with different options or config",["app-deleted"]:"Firebase App named '{$appName}' already deleted",["server-app-deleted"]:"Firebase Server App has been deleted",["no-options"]:"Need to provide options, when not being deployed to hosting via source.",["invalid-app-argument"]:"firebase.{$appName}() takes either no argument or a Firebase App instance.",["invalid-log-argument"]:"First argument to `onLog` must be null or a function.",["idb-open"]:"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.",["idb-get"]:"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.",["idb-set"]:"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.",["idb-delete"]:"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.",["finalization-registry-not-supported"]:"FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.",["invalid-server-app-environment"]:"FirebaseServerApp is not for use in browser environments."},Y=new d.LL("app","Firebase",J); 53/** 54 * @license 55 * Copyright 2019 Google LLC 56 * 57 * Licensed under the Apache License, Version 2.0 (the "License"); 58 * you may not use this file except in compliance with the License. 59 * You may obtain a copy of the License at 60 * 61 * http://www.apache.org/licenses/LICENSE-2.0 62 * 63 * Unless required by applicable law or agreed to in writing, software 64 * distributed under the License is distributed on an "AS IS" BASIS, 65 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 66 * See the License for the specific language governing permissions and 67 * limitations under the License. 68 */ 69class Q{constructor(e,t,n){this._isDeleted=!1,this._options=Object.assign({},e),this._config=Object.assign({},t),this._name=t.name,this._automaticDataCollectionEnabled=t.automaticDataCollectionEnabled,this._container=n,this.container.addComponent(new i.wA("app",(()=>this),"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(e){this.checkDestroyed(),this._automaticDataCollectionEnabled=e}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(e){this._isDeleted=e}checkDestroyed(){if(this.isDeleted)throw Y.create("app-deleted",{appName:this._name})}} 70/** 71 * @license 72 * Copyright 2023 Google LLC 73 * 74 * Licensed under the Apache License, Version 2.0 (the "License");
75 * you may not use this file except in compliance with the License. 76 * You may obtain a copy of the License at 77 * 78 * http://www.apache.org/licenses/LICENSE-2.0 79 * 80 * Unless required by applicable law or agreed to in writing, software 81 * distributed under the License is distributed on an "AS IS" BASIS, 82 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 83 * See the License for the specific language governing permissions and 84 * limitations under the License. 85 */function ee(e,t={}){let n=e;if("object"!==typeof t){const e=t;t={name:e}}const a=Object.assign({name:z,automaticDataCollectionEnabled:!1},t),r=a.name;if("string"!==typeof r||!r)throw Y.create("bad-app-name",{appName:String(r)});if(n||(n=(0,d.aH)()),!n)throw Y.create("no-options");const o=V.get(r);if(o){if((0,d.vZ)(n,o.options)&&(0,d.vZ)(a,o.config))return o;throw Y.create("duplicate-app",{appName:r})}const s=new i.H0(r);for(const i of W.values())s.addComponent(i);const c=new Q(n,a,s);return V.set(r,c),c}function te(e=z){const t=V.get(e);if(!t&&e===z&&(0,d.aH)())return ee();if(!t)throw Y.create("no-app",{appName:e});return t}function ne(e,t,n){var a;let r=null!==(a=q[e])&&void 0!==a?a:e;n&&(r+=`-${n}`);const o=r.match(/\s|\//),s=t.match(/\s|\//);if(o||s){const e=[`Unable to register library "${r}" with version "${t}":`];return o&&e.push(`library name "${r}" contains illegal characters (whitespace or "/")`),o&&s&&e.push("and"),s&&e.push(`version name "${t}" contains illegal characters (whitespace or "/")`),void w.warn(e.join(" "))}G(new i.wA(`${r}-version`,(()=>({library:r,version:t})),"VERSION"))} 86/** 87 * @license 88 * Copyright 2021 Google LLC 89 * 90 * Licensed under the Apache License, Version 2.0 (the "License"); 91 * you may not use this file except in compliance with the License. 92 * You may obtain a copy of the License at 93 * 94 * http://www.apache.org/licenses/LICENSE-2.0 95 * 96 * Unless required by applicable law or agreed to in writing, software 97 * distributed under the License is distributed on an "AS IS" BASIS, 98 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 99 * See the License for the specific language governing permissions and 100 * limitations under the License. 101 */ 102const ie="firebase-heartbeat-database",ae=1,re="firebase-heartbeat-store";let oe=null;function se(){return oe||(oe=(0,p.X3)(ie,ae,{upgrade:(e,t)=>{switch(t){case 0:try{e.createObjectStore(re)}catch(n){console.warn(n)}}}}).catch((e=>{throw Y.create("idb-open",{originalErrorMessage:e.message})}))),oe}async function ce(e){try{const t=await se(),n=t.transaction(re),i=await n.objectStore(re).get(le(e));return await n.done,i}catch(t){if(t instanceof d.ZR)w.warn(t.message);else{const e=Y.create("idb-get",{originalErrorMessage:null===t||void 0===t?void 0:t.message});w.warn(e.message)}}}async function ue(e,t){try{const n=await se(),i=n.transaction(re,"readwrite"),a=i.objectStore(re);await a.put(t,le(e)),await i.done}catch(n){if(n instanceof d.ZR)w.warn(n.message);else{const e=Y.create("idb-set",{originalErrorMessage:null===n||void 0===n?void 0:n.message});w.warn(e.message)}}}function le(e){return`${e.name}!${e.options.appId}`} 103/** 104 * @license 105 * Copyright 2021 Google LLC 106 * 107 * Licensed under the Apache License, Version 2.0 (the "License"); 108 * you may not use this file except in compliance with the License. 109 * You may obtain a copy of the License at 110 * 111 * http://www.apache.org/licenses/LICENSE-2.0 112 * 113 * Unless required by applicable law or agreed to in writing, software 114 * distributed under the License is distributed on an "AS IS" BASIS, 115 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 116 * See the License for the specific language governing permissions and 117 * limitations under the License. 118 */const de=1024,pe=2592e6;class fe{constructor(e){this.container=e,this._heartbeatsCache=null;const t=this.container.getProvider("app").getImmediate();this._storage=new me(t),this._heartbeatsCachePromise=this._storage.read().then((e=>(this._heartbeatsCache=e,e)))}async triggerHeartbeat(){var e,t;const n=this.container.getProvider("platform-logger").getImmediate(),i=n.getPlatformInfoString(),a=he();if((null!=(null===(e=this._heartbeatsCache)||void 0===e?void 0:e.heartbeats)||(this._heartbeatsCache=await this._heartbeatsCachePromise,null!=(null===(t=this._heartbeatsCache)||void 0===t?void 0:t.heartbeats)))&&this._heartbeatsCache.lastSentHeartbeatDate!==a&&!this._heartbeatsCache.heartbeats.some((e=>e.date===a)))return this._heartbeatsCache.heartbeats.push({date:a,agent:i}),this._heartbeatsCache.heartbeats=this._heartbeatsCache.heartbeats.filter((e=>{const t=new Date(e.date).valueOf(),n=Date.now();return n-t<=pe})),this._storage.overwrite(this._heartbeatsCache)}async getHeartbeatsHeader(){var e;if(null===this._heartbeatsCache&&await this._heartbeatsCachePromise,null==(null===(e=this._heartbeatsCache)||void 0===e?void 0:e.heartbeats)||0===this._heartbeatsCache.heartbeats.length)return"";const t=he(),{heartbeatsToSend:n,unsentEntries:i}=ge(this._heartbeatsCache.heartbeats),a=(0,d.L)(JSON.stringify({version:2,heartbeats:n}));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)),a}}function he(){const e=new Date;return e.toISOString().substring(0,10)}
118function ge(e,t=de){const n=[];let i=e.slice();for(const a of e){const e=n.find((e=>e.agent===a.agent));if(e){if(e.dates.push(a.date),we(n)>t){e.dates.pop();break}}else if(n.push({agent:a.agent,dates:[a.date]}),we(n)>t){n.pop();break}i=i.slice(1)}return{heartbeatsToSend:n,unsentEntries:i}}class me{constructor(e){this.app=e,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return!!(0,d.hl)()&&(0,d.eu)().then((()=>!0)).catch((()=>!1))}async read(){const e=await this._canUseIndexedDBPromise;if(e){const e=await ce(this.app);return(null===e||void 0===e?void 0:e.heartbeats)?e:{heartbeats:[]}}return{heartbeats:[]}}async overwrite(e){var t;const n=await this._canUseIndexedDBPromise;if(n){const n=await this.read();return ue(this.app,{lastSentHeartbeatDate:null!==(t=e.lastSentHeartbeatDate)&&void 0!==t?t:n.lastSentHeartbeatDate,heartbeats:e.heartbeats})}}async add(e){var t;const n=await this._canUseIndexedDBPromise;if(n){const n=await this.read();return ue(this.app,{lastSentHeartbeatDate:null!==(t=e.lastSentHeartbeatDate)&&void 0!==t?t:n.lastSentHeartbeatDate,heartbeats:[...n.heartbeats,...e.heartbeats]})}}}function we(e){return(0,d.L)(JSON.stringify({version:2,heartbeats:e})).length} 119/** 120 * @license 121 * Copyright 2019 Google LLC 122 * 123 * Licensed under the Apache License, Version 2.0 (the "License"); 124 * you may not use this file except in compliance with the License. 125 * You may obtain a copy of the License at 126 * 127 * http://www.apache.org/licenses/LICENSE-2.0 128 * 129 * Unless required by applicable law or agreed to in writing, software 130 * distributed under the License is distributed on an "AS IS" BASIS, 131 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 132 * See the License for the specific language governing permissions and 133 * limitations under the License. 134 */function be(e){G(new i.wA("platform-logger",(e=>new f(e)),"PRIVATE")),G(new i.wA("heartbeat",(e=>new fe(e)),"PRIVATE")),ne(g,m,e),ne(g,m,"esm2017"),ne("fire-js","")}be("")},8463:function(e,t,n){n.d(t,{H0:function(){return u},wA:function(){return a}});var i=n(74444);class a{constructor(e,t,n){this.name=e,this.instanceFactory=t,this.type=n,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(e){return this.instantiationMode=e,this}setMultipleInstances(e){return this.multipleInstances=e,this}setServiceProps(e){return this.serviceProps=e,this}setInstanceCreatedCallback(e){return this.onInstanceCreated=e,this}} 135/** 136 * @license 137 * Copyright 2019 Google LLC 138 * 139 * Licensed under the Apache License, Version 2.0 (the "License"); 140 * you may not use this file except in compliance with the License. 141 * You may obtain a copy of the License at 142 * 143 * http://www.apache.org/licenses/LICENSE-2.0 144 * 145 * Unless required by applicable law or agreed to in writing, software 146 * distributed under the License is distributed on an "AS IS" BASIS, 147 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 148 * See the License for the specific language governing permissions and 149 * limitations under the License. 150 */const r="[DEFAULT]"; 151/** 152 * @license 153 * Copyright 2019 Google LLC 154 * 155 * Licensed under the Apache License, Version 2.0 (the "License"); 156 * you may not use this file except in compliance with the License. 157 * You may obtain a copy of the License at 158 * 159 * http://www.apache.org/licenses/LICENSE-2.0 160 * 161 * Unless required by applicable law or agreed to in writing, software 162 * distributed under the License is distributed on an "AS IS" BASIS, 163 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 164 * See the License for the specific language governing permissions and 165 * limitations under the License. 166 */class o{constructor(e,t){this.name=e,this.container=t,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(e){const t=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(t)){const e=new i.BH;if(this.instancesDeferred.set(t,e),this.isInitialized(t)||this.shouldAutoInitialize())try{const n=this.getOrInitializeService({instanceIdentifier:t});n&&e.resolve(n)}catch(n){}}return this.instancesDeferred.get(t).promise}getImmediate(e){var t;const n=this.normalizeInstanceIdentifier(null===e||void 0===e?void 0:e.identifier),i=null!==(t=null===e||void 0===e?void 0:e.optional)&&void 0!==t&&t;if(!this.isInitialized(n)&&!this.shouldAutoInitialize()){if(i)return null;throw Error(`Service ${this.name} is not available`)}try{return this.getOrInitializeService({instanceIdentifier:n})}catch(a){if(i)return null;throw a}}getComponent(){return this.component}setComponent(e){if(e.name!==this.name)throw Error(`Mismatching Component ${e.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=e,this.shouldAutoInitialize()){if(c(e))try{this.getOrInitializeService({instanceIdentifier:r})}catch(t){}for(const[e,n]of this.instancesDeferred.entries()){const i=this.normalizeInstanceIdentifier(e);try{const e=this.getOrInitializeService({instanceIdentifier:i});n.resolve(e)}catch(t){}}}}clearInstance(e=r){this.instancesDeferred.delete(e),this.instancesOptions.delete(e),this.instances.delete(e)}async delete(){const e=Array.from(this.instances.values());await Promise.all([...e.filter((e=>"INTERNAL"in e)).map((e=>e.INTERNAL.delete())),...e.filter((e=>"_delete"in e)).map((e=>e._delete()))])}isComponentSet(){return null!=this.component}isInitialized(e=r){return this.instances.has(e)}getOptions(e=r){return this.instancesOptions.get(e)||{}}initialize(e={}){const{options:t={}}=e,n=this.normalizeInstanceIdentifier(e.instanceIdentifier);if(this.isInitialized(n))throw Error(`${this.name}(${n}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const i=this.getOrInitializeService({instanceIdentifier:n,options:t});for(const[a,r]of this.instancesDeferred.entries()){const e=this.normalizeInstanceIdentifier(a);n===e&&r.resolve(i)}return i}onInit(e,t){var n;const i=this.normalizeInstanceIdentifier(t),a=null!==(n=this.onInitCallbacks.get(i))&&void 0!==n?n:new Set;a.add(e),this.onInitCallbacks.set(i,a);const r=this.instances.get(i);return r&&e(r,i),()=>{a.delete(e)}}invokeOnInitCallbacks(e,t){const n=this.onInitCallbacks.get(t);if(n)for(const a of n)try{a(e,t)}catch(i){}}getOrInitializeService({instanceIdentifier:e,options:t={}}){let n=this.instances.get(e);if(!n&&this.component&&(n=this.component.instanceFactory(this.container,{instanceIdentifier:s(e),options:t}),this.instances.set(e,n),this.instancesOptions.set(e,t),this.invokeOnInitCallbacks(n,e),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,e,n)}catch(i){}return n||null}normalizeInstanceIdentifier(e=r){return this.component?this.component.multipleInstances?e:r:e}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}function s(e){return e===r?void 0:e}function c(e){return"EAGER"===e.instantiationMode} 167/** 168 * @license 169 * Copyright 2019 Google LLC 170 * 171 * Licensed under the Apache License, Version 2.0 (the "License");
172 * you may not use this file except in compliance with the License. 173 * You may obtain a copy of the License at 174 * 175 * http://www.apache.org/licenses/LICENSE-2.0 176 * 177 * Unless required by applicable law or agreed to in writing, software 178 * distributed under the License is distributed on an "AS IS" BASIS, 179 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 180 * See the License for the specific language governing permissions and 181 * limitations under the License. 182 */class u{constructor(e){this.name=e,this.providers=new Map}addComponent(e){const t=this.getProvider(e.name);if(t.isComponentSet())throw new Error(`Component ${e.name} has already been registered with ${this.name}`);t.setComponent(e)}addOrOverwriteComponent(e){const t=this.getProvider(e.name);t.isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)}getProvider(e){if(this.providers.has(e))return this.providers.get(e);const t=new o(e,this);return this.providers.set(e,t),t}getProviders(){return Array.from(this.providers.values())}}},83977:function(e,t,n){n.d(t,{ZF:function(){return i.ZF}});var i=n(44164),a="firebase",r="10.12.3"; 183/** 184 * @license 185 * Copyright 2020 Google LLC 186 * 187 * Licensed under the Apache License, Version 2.0 (the "License"); 188 * you may not use this file except in compliance with the License. 189 * You may obtain a copy of the License at 190 * 191 * http://www.apache.org/licenses/LICENSE-2.0 192 * 193 * Unless required by applicable law or agreed to in writing, software 194 * distributed under the License is distributed on an "AS IS" BASIS, 195 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 196 * See the License for the specific language governing permissions and 197 * limitations under the License. 198 */ 199(0,i.KN)(a,r,"app")},20061:function(e,t,n){n.d(t,{KL:function(){return jt},LP:function(){return Ht},ps:function(){return Lt}});var i=n(44164),a=n(8463),r=n(74444),o=n(26531);const s="@firebase/installations",c="0.6.8",u=1e4,l=`w:${c}`,d="FIS_v2",p="https://firebaseinstallations.googleapis.com/v1",f=36e5,h="installations",g="Installations",m={["missing-app-config-values"]:'Missing App configuration value: "{$valueName}"',["not-registered"]:"Firebase Installation is not registered.",["installation-not-found"]:"Firebase Installation not found.",["request-failed"]:'{$requestName} request failed with error "{$serverCode} {$serverStatus}: {$serverMessage}"',["app-offline"]:"Could not process request. Application offline.",["delete-pending-registration"]:"Can't delete installation while there is a pending registration request."},w=new r.LL(h,g,m);function b(e){return e instanceof r.ZR&&e.code.includes("request-failed")} 200/** 201 * @license 202 * Copyright 2019 Google LLC 203 * 204 * Licensed under the Apache License, Version 2.0 (the "License"); 205 * you may not use this file except in compliance with the License. 206 * You may obtain a copy of the License at 207 * 208 * http://www.apache.org/licenses/LICENSE-2.0 209 * 210 * Unless required by applicable law or agreed to in writing, software 211 * distributed under the License is distributed on an "AS IS" BASIS, 212 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 213 * See the License for the specific language governing permissions and 214 * limitations under the License. 215 */function v({projectId:e}){return`${p}/projects/${e}/installations`}function y(e){return{token:e.token,requestStatus:2,expiresIn:_(e.expiresIn),creationTime:Date.now()}}async function I(e,t){const n=await t.json(),i=n.error;return w.create("request-failed",{requestName:e,serverCode:i.code,serverMessage:i.message,serverStatus:i.status})}function k({apiKey:e}){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":e})}function S(e,{refreshToken:t}){const n=k(e);return n.append("Authorization",E(t)),n}async function C(e){const t=await e();return t.status>=500&&t.status<600?e():t}function _(e){return Number(e.replace("s","000"))}function E(e){return`${d} ${e}`} 216/** 217 * @license 218 * Copyright 2019 Google LLC 219 * 220 * Licensed under the Apache License, Version 2.0 (the "License");
221 * you may not use this file except in compliance with the License. 222 * You may obtain a copy of the License at 223 * 224 * http://www.apache.org/licenses/LICENSE-2.0 225 * 226 * Unless required by applicable law or agreed to in writing, software 227 * distributed under the License is distributed on an "AS IS" BASIS, 228 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 229 * See the License for the specific language governing permissions and 230 * limitations under the License. 231 */async function D({appConfig:e,heartbeatServiceProvider:t},{fid:n}){const i=v(e),a=k(e),r=t.getImmediate({optional:!0});if(r){const e=await r.getHeartbeatsHeader();e&&a.append("x-firebase-client",e)}const o={fid:n,authVersion:d,appId:e.appId,sdkVersion:l},s={method:"POST",headers:a,body:JSON.stringify(o)},c=await C((()=>fetch(i,s)));if(c.ok){const e=await c.json(),t={fid:e.fid||n,registrationStatus:2,refreshToken:e.refreshToken,authToken:y(e.authToken)};return t}throw await I("Create Installation",c)} 232/** 233 * @license 234 * Copyright 2019 Google LLC 235 * 236 * Licensed under the Apache License, Version 2.0 (the "License"); 237 * you may not use this file except in compliance with the License. 238 * You may obtain a copy of the License at 239 * 240 * http://www.apache.org/licenses/LICENSE-2.0 241 * 242 * Unless required by applicable law or agreed to in writing, software 243 * distributed under the License is distributed on an "AS IS" BASIS, 244 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 245 * See the License for the specific language governing permissions and 246 * limitations under the License. 247 */function O(e){return new Promise((t=>{setTimeout(t,e)}))} 248/** 249 * @license 250 * Copyright 2019 Google LLC 251 * 252 * Licensed under the Apache License, Version 2.0 (the "License"); 253 * you may not use this file except in compliance with the License. 254 * You may obtain a copy of the License at 255 * 256 * http://www.apache.org/licenses/LICENSE-2.0 257 * 258 * Unless required by applicable law or agreed to in writing, software 259 * distributed under the License is distributed on an "AS IS" BASIS, 260 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 261 * See the License for the specific language governing permissions and 262 * limitations under the License. 263 */function T(e){const t=btoa(String.fromCharCode(...e));return t.replace(/\+/g,"-").replace(/\//g,"_")} 264/** 265 * @license 266 * Copyright 2019 Google LLC 267 * 268 * Licensed under the Apache License, Version 2.0 (the "License"); 269 * you may not use this file except in compliance with the License. 270 * You may obtain a copy of the License at 271 * 272 * http://www.apache.org/licenses/LICENSE-2.0 273 * 274 * Unless required by applicable law or agreed to in writing, software 275 * distributed under the License is distributed on an "AS IS" BASIS, 276 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 277 * See the License for the specific language governing permissions and 278 * limitations under the License. 279 */const A=/^[cdef][\w-]{21}$/,P="";function N(){try{const e=new Uint8Array(17),t=self.crypto||self.msCrypto;t.getRandomValues(e),e[0]=112+e[0]%16;const n=j(e);return A.test(n)?n:P}catch(e){return P}}function j(e){const t=T(e);return t.substr(0,22)} 280/** 281 * @license 282 * Copyright 2019 Google LLC 283 * 284 * Licensed under the Apache License, Version 2.0 (the "License"); 285 * you may not use this file except in compliance with the License. 286 * You may obtain a copy of the License at 287 * 288 * http://www.apache.org/licenses/LICENSE-2.0 289 * 290 * Unless required by applicable law or agreed to in writing, software 291 * distributed under the License is distributed on an "AS IS" BASIS, 292 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 293 * See the License for the specific language governing permissions and 294 * limitations under the License. 295 */function H(e){return`${e.appName}!${e.appId}`} 296/** 297 * @license 298 * Copyright 2019 Google LLC 299 * 300 * Licensed under the Apache License, Version 2.0 (the "License"); 301 * you may not use this file except in compliance with the License. 302 * You may obtain a copy of the License at 303 * 304 * http://www.apache.org/licenses/LICENSE-2.0 305 * 306 * Unless required by applicable law or agreed to in writing, softw
306are 307 * distributed under the License is distributed on an "AS IS" BASIS, 308 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 309 * See the License for the specific language governing permissions and 310 * limitations under the License. 311 */const L=new Map;function $(e,t){const n=H(e);M(n,t),R(n,t)}function M(e,t){const n=L.get(e);if(n)for(const i of n)i(t)}function R(e,t){const n=K();n&&n.postMessage({key:e,fid:t}),x()}let F=null;function K(){return!F&&"BroadcastChannel"in self&&(F=new BroadcastChannel("[Firebase] FID Change"),F.onmessage=e=>{M(e.data.key,e.data.fid)}),F}function x(){0===L.size&&F&&(F.close(),F=null)} 312/** 313 * @license 314 * Copyright 2019 Google LLC 315 * 316 * Licensed under the Apache License, Version 2.0 (the "License"); 317 * you may not use this file except in compliance with the License. 318 * You may obtain a copy of the License at 319 * 320 * http://www.apache.org/licenses/LICENSE-2.0 321 * 322 * Unless required by applicable law or agreed to in writing, software 323 * distributed under the License is distributed on an "AS IS" BASIS, 324 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 325 * See the License for the specific language governing permissions and 326 * limitations under the License. 327 */const B="firebase-installations-database",z=1,q="firebase-installations-store";let V=null;function U(){return V||(V=(0,o.X3)(B,z,{upgrade:(e,t)=>{switch(t){case 0:e.createObjectStore(q)}}})),V}async function W(e,t){const n=H(e),i=await U(),a=i.transaction(q,"readwrite"),r=a.objectStore(q),o=await r.get(n);return await r.put(t,n),await a.done,o&&o.fid===t.fid||$(e,t.fid),t}async function X(e){const t=H(e),n=await U(),i=n.transaction(q,"readwrite");await i.objectStore(q).delete(t),await i.done}async function G(e,t){const n=H(e),i=await U(),a=i.transaction(q,"readwrite"),r=a.objectStore(q),o=await r.get(n),s=t(o);return void 0===s?await r.delete(n):await r.put(s,n),await a.done,!s||o&&o.fid===s.fid||$(e,s.fid),s} 328/** 329 * @license 330 * Copyright 2019 Google LLC 331 * 332 * Licensed under the Apache License, Version 2.0 (the "License"); 333 * you may not use this file except in compliance with the License. 334 * You may obtain a copy of the License at 335 * 336 * http://www.apache.org/licenses/LICENSE-2.0 337 * 338 * Unless required by applicable law or agreed to in writing, software 339 * distributed under the License is distributed on an "AS IS" BASIS, 340 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 341 * See the License for the specific language governing permissions and 342 * limitations under the License. 343 */async function Z(e){let t;const n=await G(e.appConfig,(n=>{const i=J(n),a=Y(e,i);return t=a.registrationPromise,a.installationEntry}));return n.fid===P?{installationEntry:await t}:{installationEntry:n,registrationPromise:t}}function J(e){const t=e||{fid:N(),registrationStatus:0};return ne(t)}function Y(e,t){if(0===t.registrationStatus){if(!navigator.onLine){const e=Promise.reject(w.create("app-offline"));return{installationEntry:t,registrationPromise:e}}const n={fid:t.fid,registrationStatus:1,registrationTime:Date.now()},i=Q(e,n);return{installationEntry:n,registrationPromise:i}}return 1===t.registrationStatus?{installationEntry:t,registrationPromise:ee(e)}:{installationEntry:t}}async function Q(e,t){try{const n=await D(e,t);return W(e.appConfig,n)}catch(n){throw b(n)&&409===n.customData.serverCode?await X(e.appConfig):await W(e.appConfig,{fid:t.fid,registrationStatus:0}),n}}async function ee(e){let t=await te(e.appConfig);while(1===t.registrationStatus)await O(100),t=await te(e.appConfig);if(0===t.registrationStatus){const{installationEntry:t,registrationPromise:n}=await Z(e);return n||t}return t}function te(e){return G(e,(e=>{if(!e)throw w.create("installation-not-found");return ne(e)}))}function ne(e){return ie(e)?{fid:e.fid,registrationStatus:0}:e}function ie(e){return 1===e.registrationStatus&&e.registrationTime+u<Date.now()} 344/** 345 * @license 346 * Copyright 2019 Google LLC 347 * 348 * Licensed under the Apache License, Version 2.0 (the "License"); 349 * you may not use this file except in compliance with the License. 350 * You may obtain a copy of the License at 351 * 352 * http://www.apache.org/licenses/LICENSE-2.0 353 * 354 * Unless required by applicable law or agreed to in writing, softw
354are 355 * distributed under the License is distributed on an "AS IS" BASIS, 356 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 357 * See the License for the specific language governing permissions and 358 * limitations under the License. 359 */async function ae({appConfig:e,heartbeatServiceProvider:t},n){const i=re(e,n),a=S(e,n),r=t.getImmediate({optional:!0});if(r){const e=await r.getHeartbeatsHeader();e&&a.append("x-firebase-client",e)}const o={installation:{sdkVersion:l,appId:e.appId}},s={method:"POST",headers:a,body:JSON.stringify(o)},c=await C((()=>fetch(i,s)));if(c.ok){const e=await c.json(),t=y(e);return t}throw await I("Generate Auth Token",c)}function re(e,{fid:t}){return`${v(e)}/${t}/authTokens:generate`} 360/** 361 * @license 362 * Copyright 2019 Google LLC 363 * 364 * Licensed under the Apache License, Version 2.0 (the "License"); 365 * you may not use this file except in compliance with the License. 366 * You may obtain a copy of the License at 367 * 368 * http://www.apache.org/licenses/LICENSE-2.0 369 * 370 * Unless required by applicable law or agreed to in writing, software 371 * distributed under the License is distributed on an "AS IS" BASIS, 372 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 373 * See the License for the specific language governing permissions and 374 * limitations under the License. 375 */async function oe(e,t=!1){let n;const i=await G(e.appConfig,(i=>{if(!le(i))throw w.create("not-registered");const a=i.authToken;if(!t&&de(a))return i;if(1===a.requestStatus)return n=se(e,t),i;{if(!navigator.onLine)throw w.create("app-offline");const t=fe(i);return n=ue(e,t),t}})),a=n?await n:i.authToken;return a}async function se(e,t){let n=await ce(e.appConfig);while(1===n.authToken.requestStatus)await O(100),n=await ce(e.appConfig);const i=n.authToken;return 0===i.requestStatus?oe(e,t):i}function ce(e){return G(e,(e=>{if(!le(e))throw w.create("not-registered");const t=e.authToken;return he(t)?Object.assign(Object.assign({},e),{authToken:{requestStatus:0}}):e}))}async function ue(e,t){try{const n=await ae(e,t),i=Object.assign(Object.assign({},t),{authToken:n});return await W(e.appConfig,i),n}catch(n){if(!b(n)||401!==n.customData.serverCode&&404!==n.customData.serverCode){const n=Object.assign(Object.assign({},t),{authToken:{requestStatus:0}});await W(e.appConfig,n)}else await X(e.appConfig);throw n}}function le(e){return void 0!==e&&2===e.registrationStatus}function de(e){return 2===e.requestStatus&&!pe(e)}function pe(e){const t=Date.now();return t<e.creationTime||e.creationTime+e.expiresIn<t+f}function fe(e){const t={requestStatus:1,requestTime:Date.now()};return Object.assign(Object.assign({},e),{authToken:t})}function he(e){return 1===e.requestStatus&&e.requestTime+u<Date.now()} 376/** 377 * @license 378 * Copyright 2019 Google LLC 379 * 380 * Licensed under the Apache License, Version 2.0 (the "License"); 381 * you may not use this file except in compliance with the License. 382 * You may obtain a copy of the License at 383 * 384 * http://www.apache.org/licenses/LICENSE-2.0 385 * 386 * Unless required by applicable law or agreed to in writing, software 387 * distributed under the License is distributed on an "AS IS" BASIS, 388 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 389 * See the License for the specific language governing permissions and 390 * limitations under the License. 391 */async function ge(e){const t=e,{installationEntry:n,registrationPromise:i}=await Z(t);return i?i.catch(console.error):oe(t).catch(console.error),n.fid} 392/** 393 * @license 394 * Copyright 2019 Google LLC 395 * 396 * Licensed under the Apache License, Version 2.0 (the "License"); 397 * you may not use this file except in compliance with the License. 398 * You may obtain a copy of the License at 399 * 400 * http://www.apache.org/licenses/LICENSE-2.0 401 * 402 * Unless required by applicable law or agreed to in writing, software 403 * distributed under the License is distributed on an "AS IS" BASIS, 404 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 405 * See the License for the specific language governing permissions and 406 * limitations under the License. 407 */async function me(e,t=!1){const n=e;await we(n);const i=await oe(n,t);return i.token}async function we(e){const{registrationPromise:t}=await Z(e);t&&await t} 408/** 409 * @license 410 * Copyright 2019 Google LLC 411 * 412 * Licensed under the Apache License, Version 2.0 (the "License");
413 * you may not use this file except in compliance with the License. 414 * You may obtain a copy of the License at 415 * 416 * http://www.apache.org/licenses/LICENSE-2.0 417 * 418 * Unless required by applicable law or agreed to in writing, software 419 * distributed under the License is distributed on an "AS IS" BASIS, 420 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 421 * See the License for the specific language governing permissions and 422 * limitations under the License. 423 */ 424/** 425 * @license 426 * Copyright 2019 Google LLC 427 * 428 * Licensed under the Apache License, Version 2.0 (the "License"); 429 * you may not use this file except in compliance with the License. 430 * You may obtain a copy of the License at 431 * 432 * http://www.apache.org/licenses/LICENSE-2.0 433 * 434 * Unless required by applicable law or agreed to in writing, software 435 * distributed under the License is distributed on an "AS IS" BASIS, 436 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 437 * See the License for the specific language governing permissions and 438 * limitations under the License. 439 */ 440function be(e){if(!e||!e.options)throw ve("App Configuration");if(!e.name)throw ve("App Name");const t=["projectId","apiKey","appId"];for(const n of t)if(!e.options[n])throw ve(n);return{appName:e.name,projectId:e.options.projectId,apiKey:e.options.apiKey,appId:e.options.appId}}function ve(e){return w.create("missing-app-config-values",{valueName:e})} 441/** 442 * @license 443 * Copyright 2020 Google LLC 444 * 445 * Licensed under the Apache License, Version 2.0 (the "License"); 446 * you may not use this file except in compliance with the License. 447 * You may obtain a copy of the License at 448 * 449 * http://www.apache.org/licenses/LICENSE-2.0 450 * 451 * Unless required by applicable law or agreed to in writing, software 452 * distributed under the License is distributed on an "AS IS" BASIS, 453 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 454 * See the License for the specific language governing permissions and 455 * limitations under the License. 456 */const ye="installations",Ie="installations-internal",ke=e=>{const t=e.getProvider("app").getImmediate(),n=be(t),a=(0,i.qX)(t,"heartbeat"),r={app:t,appConfig:n,heartbeatServiceProvider:a,_delete:()=>Promise.resolve()};return r},Se=e=>{const t=e.getProvider("app").getImmediate(),n=(0,i.qX)(t,ye).getImmediate(),a={getId:()=>ge(n),getToken:e=>me(n,e)};return a};function Ce(){(0,i.Xd)(new a.wA(ye,ke,"PUBLIC")),(0,i.Xd)(new a.wA(Ie,Se,"PRIVATE"))}Ce(),(0,i.KN)(s,c),(0,i.KN)(s,c,"esm2017"); 457/** 458 * @license 459 * Copyright 2019 Google LLC 460 * 461 * Licensed under the Apache License, Version 2.0 (the "License"); 462 * you may not use this file except in compliance with the License. 463 * You may obtain a copy of the License at 464 * 465 * http://www.apache.org/licenses/LICENSE-2.0 466 * 467 * Unless required by applicable law or agreed to in writing, software 468 * distributed under the License is distributed on an "AS IS" BASIS, 469 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 470 * See the License for the specific language governing permissions and 471 * limitations under the License. 472 */ 473const _e="/firebase-messaging-sw.js",Ee="/firebase-cloud-messaging-push-scope",De="BDOU99-h67HcA6JeFXHbSNMu7e2yNNu3RzoMj8TM4W88jITfq7ZmPvIM1Iv-4_l2LxQcYwhqby2xGpWwzjfAnG4",Oe="https://fcmregistrations.googleapis.com/v1",Te="google.c.a.c_id",Ae="google.c.a.c_l",Pe="google.c.a.ts",Ne="google.c.a.e";var je,He; 474/** 475 * @license 476 * Copyright 2017 Google LLC 477 * 478 * Licensed under the Apache License, Version 2.0 (the "License"); 479 * you may not use this file except in compliance with the License. 480 * You may obtain a copy of the License at 481 * 482 * http://www.apache.org/licenses/LICENSE-2.0 483 * 484 * Unless required by applicable law or agreed to in writing, software 485 * distributed under the License is distributed on an "AS IS" BASIS, 486 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 487 * See the License for the specific language governing permissions and 488 * limitations under the License. 489 */ 490function Le(e){const t=new Uint8Array(e),n=btoa(String.fromCharCode(...t));return n.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function $e(e){const t="=".repeat((4-e.length%4)%4),n=(e+t).replace(/\-/g,"+").replace(/_/g,"/"),i=atob(n),a=new Uint8Array(i.length);for(let r=0;r<i.length;++r)a[r]=i.charCodeAt(r);return a} 491/** 492 * @license 493 * Copyright 2019 Google LLC 494 * 495 * Licensed under the Apache License, Version 2.0 (the "License");
496 * you may not use this file except in compliance with the License. 497 * You may obtain a copy of the License at 498 * 499 * http://www.apache.org/licenses/LICENSE-2.0 500 * 501 * Unless required by applicable law or agreed to in writing, software 502 * distributed under the License is distributed on an "AS IS" BASIS, 503 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 504 * See the License for the specific language governing permissions and 505 * limitations under the License. 506 */(function(e){e[e["DATA_MESSAGE"]=1]="DATA_MESSAGE",e[e["DISPLAY_NOTIFICATION"]=3]="DISPLAY_NOTIFICATION"})(je||(je={})),function(e){e["PUSH_RECEIVED"]="push-received",e["NOTIFICATION_CLICKED"]="notification-clicked"}(He||(He={}));const Me="fcm_token_details_db",Re=5,Fe="fcm_token_object_Store";async function Ke(e){if("databases"in indexedDB){const e=await indexedDB.databases(),t=e.map((e=>e.name));if(!t.includes(Me))return null}let t=null;const n=await(0,o.X3)(Me,Re,{upgrade:async(n,i,a,r)=>{var o;if(i<2)return;if(!n.objectStoreNames.contains(Fe))return;const s=r.objectStore(Fe),c=await s.index("fcmSenderId").get(e);if(await s.clear(),c)if(2===i){const e=c;if(!e.auth||!e.p256dh||!e.endpoint)return;t={token:e.fcmToken,createTime:null!==(o=e.createTime)&&void 0!==o?o:Date.now(),subscriptionOptions:{auth:e.auth,p256dh:e.p256dh,endpoint:e.endpoint,swScope:e.swScope,vapidKey:"string"===typeof e.vapidKey?e.vapidKey:Le(e.vapidKey)}}}else if(3===i){const e=c;t={token:e.fcmToken,createTime:e.createTime,subscriptionOptions:{auth:Le(e.auth),p256dh:Le(e.p256dh),endpoint:e.endpoint,swScope:e.swScope,vapidKey:Le(e.vapidKey)}}}else if(4===i){const e=c;t={token:e.fcmToken,createTime:e.createTime,subscriptionOptions:{auth:Le(e.auth),p256dh:Le(e.p256dh),endpoint:e.endpoint,swScope:e.swScope,vapidKey:Le(e.vapidKey)}}}}});return n.close(),await(0,o.Lj)(Me),await(0,o.Lj)("fcm_vapid_details_db"),await(0,o.Lj)("undefined"),xe(t)?t:null}function xe(e){if(!e||!e.subscriptionOptions)return!1;const{subscriptionOptions:t}=e;return"number"===typeof e.createTime&&e.createTime>0&&"string"===typeof e.token&&e.token.length>0&&"string"===typeof t.auth&&t.auth.length>0&&"string"===typeof t.p256dh&&t.p256dh.length>0&&"string"===typeof t.endpoint&&t.endpoint.length>0&&"string"===typeof t.swScope&&t.swScope.length>0&&"string"===typeof t.vapidKey&&t.vapidKey.length>0} 507/** 508 * @license 509 * Copyright 2019 Google LLC 510 * 511 * Licensed under the Apache License, Version 2.0 (the "License"); 512 * you may not use this file except in compliance with the License. 513 * You may obtain a copy of the License at 514 * 515 * http://www.apache.org/licenses/LICENSE-2.0 516 * 517 * Unless required by applicable law or agreed to in writing, software 518 * distributed under the License is distributed on an "AS IS" BASIS, 519 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 520 * See the License for the specific language governing permissions and 521 * limitations under the License. 522 */const Be="firebase-messaging-database",ze=1,qe="firebase-messaging-store";let Ve=null;function Ue(){return Ve||(Ve=(0,o.X3)(Be,ze,{upgrade:(e,t)=>{switch(t){case 0:e.createObjectStore(qe)}}})),Ve}async function We(e){const t=Ge(e),n=await Ue(),i=await n.transaction(qe).objectStore(qe).get(t);if(i)return i;{const t=await Ke(e.appConfig.senderId);if(t)return await Xe(e,t),t}}async function Xe(e,t){const n=Ge(e),i=await Ue(),a=i.transaction(qe,"readwrite");return await a.objectStore(qe).put(t,n),await a.done,t}function Ge({appConfig:e}){return e.appId} 523/** 524 * @license 525 * Copyright 2017 Google LLC 526 * 527 * Licensed under the Apache License, Version 2.0 (the "License"); 528 * you may not use this file except in compliance with the License. 529 * You may obtain a copy of the License at 530 * 531 * http://www.apache.org/licenses/LICENSE-2.0 532 * 533 * Unless required by applicable law or agreed to in writing, software 534 * distributed under the License is distributed on an "AS IS" BASIS, 535 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 536 * See the License for the specific language governing permissions and 537 * limitations under the License. 538 */const Ze={["missing-app-config-values"]:'Missing App configuration value: "{$valueName}"',["only-available-in-window"]:"This method is available in a Window context.",["only-available-in-sw"]:"This method is available in a service worker context.",["permission-default"]:"The notification permission was not granted and dismissed instead.",["permission-blocked"]:"The notification permission was not granted and blocked instead.",["unsupported-browser"]:"This browser doesn't support the API's required to use the Firebase SDK.",["indexed-db-unsupported"]:"This browser doesn't support indexedDb.open() (ex. Safari iFrame, Firefox Private Browsing, etc)",["failed-service-worker-registration"]:"We are unable to register the default service worker. {$browserErrorMessage}",["token-subscribe-failed"]:"A problem occurred while subscribing the user to FCM: {$errorInfo}",["token-subscribe-no-token"]:"FCM returned no token when subscribing the user to push.",["token-unsubscribe-failed"]:"A problem occurred while unsubscribing the user from FCM: {$errorInfo}",["token-update-failed"]:"A problem occurred while updating the user from FCM: {$errorInfo}",["token-update-no-token"]:"FCM returned no token when updating the user to push.",["use-sw-after-get-token"]:"The useServiceWorker() method may only be called once and must be called before calling getToken() to ensure your service worker is used.",["invali
538d-sw-registration"]:"The input to useServiceWorker() must be a ServiceWorkerRegistration.",["invalid-bg-handler"]:"The input to setBackgroundMessageHandler() must be a function.",["invalid-vapid-key"]:"The public VAPID key must be a string.",["use-vapid-key-after-get-token"]:"The usePublicVapidKey() method may only be called once and must be called before calling getToken() to ensure your VAPID key is used."},Je=new r.LL("messaging","Messaging",Ze); 539/** 540 * @license 541 * Copyright 2019 Google LLC 542 * 543 * Licensed under the Apache License, Version 2.0 (the "License"); 544 * you may not use this file except in compliance with the License. 545 * You may obtain a copy of the License at 546 * 547 * http://www.apache.org/licenses/LICENSE-2.0 548 * 549 * Unless required by applicable law or agreed to in writing, software 550 * distributed under the License is distributed on an "AS IS" BASIS, 551 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 552 * See the License for the specific language governing permissions and 553 * limitations under the License. 554 */ 555async function Ye(e,t){const n=await nt(e),i=it(t),a={method:"POST",headers:n,body:JSON.stringify(i)};let r;try{const t=await fetch(tt(e.appConfig),a);r=await t.json()}catch(o){throw Je.create("token-subscribe-failed",{errorInfo:null===o||void 0===o?void 0:o.toString()})}if(r.error){const e=r.error.message;throw Je.create("token-subscribe-failed",{errorInfo:e})}if(!r.token)throw Je.create("token-subscribe-no-token");return r.token}async function Qe(e,t){const n=await nt(e),i=it(t.subscriptionOptions),a={method:"PATCH",headers:n,body:JSON.stringify(i)};let r;try{const n=await fetch(`${tt(e.appConfig)}/${t.token}`,a);r=await n.json()}catch(o){throw Je.create("token-update-failed",{errorInfo:null===o||void 0===o?void 0:o.toString()})}if(r.error){const e=r.error.message;throw Je.create("token-update-failed",{errorInfo:e})}if(!r.token)throw Je.create("token-update-no-token");return r.token}async function et(e,t){const n=await nt(e),i={method:"DELETE",headers:n};try{const n=await fetch(`${tt(e.appConfig)}/${t}`,i),a=await n.json();if(a.error){const e=a.error.message;throw Je.create("token-unsubscribe-failed",{errorInfo:e})}}catch(a){throw Je.create("token-unsubscribe-failed",{errorInfo:null===a||void 0===a?void 0:a.toString()})}}function tt({projectId:e}){return`${Oe}/projects/${e}/registrations`}async function nt({appConfig:e,installations:t}){const n=await t.getToken();return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":e.apiKey,"x-goog-firebase-installations-auth":`FIS ${n}`})}function it({p256dh:e,auth:t,endpoint:n,vapidKey:i}){const a={web:{endpoint:n,auth:t,p256dh:e}};return i!==De&&(a.web.applicationPubKey=i),a} 556/** 557 * @license 558 * Copyright 2019 Google LLC 559 * 560 * Licensed under the Apache License, Version 2.0 (the "License"); 561 * you may not use this file except in compliance with the License. 562 * You may obtain a copy of the License at 563 * 564 * http://www.apache.org/licenses/LICENSE-2.0 565 * 566 * Unless required by applicable law or agreed to in writing, software 567 * distributed under the License is distributed on an "AS IS" BASIS, 568 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 569 * See the License for the specific language governing permissions and 570 * limitations under the License. 571 */const at=6048e5;async function rt(e){const t=await ct(e.swRegistration,e.vapidKey),n={vapidKey:e.vapidKey,swScope:e.swRegistration.scope,endpoint:t.endpoint,auth:Le(t.getKey("auth")),p256dh:Le(t.getKey("p256dh"))},i=await We(e.firebaseDependencies);if(i){if(ut(i.subscriptionOptions,n))return Date.now()>=i.createTime+at?ot(e,{token:i.token,createTime:Date.now(),subscriptionOptions:n}):i.token;try{await et(e.firebaseDependencies,i.token)}catch(a){console.warn(a)}return st(e.firebaseDependencies,n)}return st(e.firebaseDependencies,n)}async function ot(e,t){try{const n=await Qe(e.firebaseDependencies,t),i=Object.assign(Object.assign({},t),{token:n,createTime:Date.now()});return await Xe(e.firebaseDependencies,i),n}catch(n){throw n}}async function st(e,t){const n=await Ye(e,t),i={token:n,createTime:Date.now(),subscriptionOptions:t};return await Xe(e,i),i.token}async function ct(e,t){const n=await e.pushManager.getSubscription();return n||e.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:$e(t)})}function ut(e,t){const n=t.vapidKey===e.vapidKey,i=t.endpoint===e.endpoint,a=t.auth===e.auth,r=t.p256dh===e.p256dh;return n&&i&&a&&r} 572/** 573 * @license 574 * Copyright 2020 Google LLC 575 * 576 * Licensed under the Apache License, Version 2.0 (the "License");
577 * you may not use this file except in compliance with the License. 578 * You may obtain a copy of the License at 579 * 580 * http://www.apache.org/licenses/LICENSE-2.0 581 * 582 * Unless required by applicable law or agreed to in writing, software 583 * distributed under the License is distributed on an "AS IS" BASIS, 584 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 585 * See the License for the specific language governing permissions and 586 * limitations under the License. 587 */function lt(e){const t={from:e.from,collapseKey:e.collapse_key,messageId:e.fcmMessageId};return dt(t,e),pt(t,e),ft(t,e),t}function dt(e,t){if(!t.notification)return;e.notification={};const n=t.notification.title;n&&(e.notification.title=n);const i=t.notification.body;i&&(e.notification.body=i);const a=t.notification.image;a&&(e.notification.image=a);const r=t.notification.icon;r&&(e.notification.icon=r)}function pt(e,t){t.data&&(e.data=t.data)}function ft(e,t){var n,i,a,r,o;if(!t.fcmOptions&&!(null===(n=t.notification)||void 0===n?void 0:n.click_action))return;e.fcmOptions={};const s=null!==(a=null===(i=t.fcmOptions)||void 0===i?void 0:i.link)&&void 0!==a?a:null===(r=t.notification)||void 0===r?void 0:r.click_action;s&&(e.fcmOptions.link=s);const c=null===(o=t.fcmOptions)||void 0===o?void 0:o.analytics_label;c&&(e.fcmOptions.analyticsLabel=c)} 588/** 589 * @license 590 * Copyright 2019 Google LLC 591 * 592 * Licensed under the Apache License, Version 2.0 (the "License"); 593 * you may not use this file except in compliance with the License. 594 * You may obtain a copy of the License at 595 * 596 * http://www.apache.org/licenses/LICENSE-2.0 597 * 598 * Unless required by applicable law or agreed to in writing, software 599 * distributed under the License is distributed on an "AS IS" BASIS, 600 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 601 * See the License for the specific language governing permissions and 602 * limitations under the License. 603 */function ht(e){return"object"===typeof e&&!!e&&Te in e} 604/** 605 * @license 606 * Copyright 2019 Google LLC 607 * 608 * Licensed under the Apache License, Version 2.0 (the "License"); 609 * you may not use this file except in compliance with the License. 610 * You may obtain a copy of the License at 611 * 612 * http://www.apache.org/licenses/LICENSE-2.0 613 * 614 * Unless required by applicable law or agreed to in writing, software 615 * distributed under the License is distributed on an "AS IS" BASIS, 616 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 617 * See the License for the specific language governing permissions and 618 * limitations under the License. 619 */function gt(e,t){const n=[];for(let i=0;i<e.length;i++)n.push(e.charAt(i)),i<t.length&&n.push(t.charAt(i));return n.join("")} 620/** 621 * @license 622 * Copyright 2019 Google LLC 623 * 624 * Licensed under the Apache License, Version 2.0 (the "License"); 625 * you may not use this file except in compliance with the License. 626 * You may obtain a copy of the License at 627 * 628 * http://www.apache.org/licenses/LICENSE-2.0 629 * 630 * Unless required by applicable law or agreed to in writing, software 631 * distributed under the License is distributed on an "AS IS" BASIS, 632 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 633 * See the License for the specific language governing permissions and 634 * limitations under the License. 635 */function mt(e){if(!e||!e.options)throw wt("App Configuration Object");if(!e.name)throw wt("App Name");const t=["projectId","apiKey","appId","messagingSenderId"],{options:n}=e;for(const i of t)if(!n[i])throw wt(i);return{appName:e.name,projectId:n.projectId,apiKey:n.apiKey,appId:n.appId,senderId:n.messagingSenderId}}function wt(e){return Je.create("missing-app-config-values",{valueName:e})} 636/** 637 * @license 638 * Copyright 2020 Google LLC 639 * 640 * Licensed under the Apache License, Version 2.0 (the "License"); 641 * you may not use this file except in compliance with the License. 642 * You may obtain a copy of the License at 643 * 644 * http://www.apache.org/licenses/LICENSE-2.0 645 * 646 * Unless required by applicable law or agreed to in writing, software 647 * distributed under the License is distributed on an "AS IS" BASIS, 648 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 649 * See the License for the specific language governing permissions and 650 * limitations under the License. 651 */gt("hts/frbslgigp.ogepscmv/ieo/eaylg","tp:/ieaeogn-agolai.o/1frlglgc/o"),gt("AzSCbw63g1R0nCw85jG8","Iaya3yLKwmgvh7cF0q4");class bt{constructor(e,t,n){this.deliveryMetricsExportedToBigQueryEnabled=!1,this.onBackgroun
651dMessageHandler=null,this.onMessageHandler=null,this.logEvents=[],this.isLogServiceStarted=!1;const i=mt(e);this.firebaseDependencies={app:e,appConfig:i,installations:t,analyticsProvider:n}}_delete(){return Promise.resolve()}} 652/** 653 * @license 654 * Copyright 2020 Google LLC 655 * 656 * Licensed under the Apache License, Version 2.0 (the "License"); 657 * you may not use this file except in compliance with the License. 658 * You may obtain a copy of the License at 659 * 660 * http://www.apache.org/licenses/LICENSE-2.0 661 * 662 * Unless required by applicable law or agreed to in writing, software 663 * distributed under the License is distributed on an "AS IS" BASIS, 664 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 665 * See the License for the specific language governing permissions and 666 * limitations under the License. 667 */async function vt(e){try{e.swRegistration=await navigator.serviceWorker.register(_e,{scope:Ee}),e.swRegistration.update().catch((()=>{}))}catch(t){throw Je.create("failed-service-worker-registration",{browserErrorMessage:null===t||void 0===t?void 0:t.message})}} 668/** 669 * @license 670 * Copyright 2020 Google LLC 671 * 672 * Licensed under the Apache License, Version 2.0 (the "License"); 673 * you may not use this file except in compliance with the License. 674 * You may obtain a copy of the License at 675 * 676 * http://www.apache.org/licenses/LICENSE-2.0 677 * 678 * Unless required by applicable law or agreed to in writing, software 679 * distributed under the License is distributed on an "AS IS" BASIS, 680 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 681 * See the License for the specific language governing permissions and 682 * limitations under the License. 683 */async function yt(e,t){if(t||e.swRegistration||await vt(e),t||!e.swRegistration){if(!(t instanceof ServiceWorkerRegistration))throw Je.create("invalid-sw-registration");e.swRegistration=t}} 684/** 685 * @license 686 * Copyright 2020 Google LLC 687 * 688 * Licensed under the Apache License, Version 2.0 (the "License"); 689 * you may not use this file except in compliance with the License. 690 * You may obtain a copy of the License at 691 * 692 * http://www.apache.org/licenses/LICENSE-2.0 693 * 694 * Unless required by applicable law or agreed to in writing, software 695 * distributed under the License is distributed on an "AS IS" BASIS, 696 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 697 * See the License for the specific language governing permissions and 698 * limitations under the License. 699 */async function It(e,t){t?e.vapidKey=t:e.vapidKey||(e.vapidKey=De)} 700/** 701 * @license 702 * Copyright 2020 Google LLC 703 * 704 * Licensed under the Apache License, Version 2.0 (the "License"); 705 * you may not use this file except in compliance with the License. 706 * You may obtain a copy of the License at 707 * 708 * http://www.apache.org/licenses/LICENSE-2.0 709 * 710 * Unless required by applicable law or agreed to in writing, software 711 * distributed under the License is distributed on an "AS IS" BASIS, 712 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 713 * See the License for the specific language governing permissions and 714 * limitations under the License. 715 */async function kt(e,t){if(!navigator)throw Je.create("only-available-in-window");if("default"===Notification.permission&&await Notification.requestPermission(),"granted"!==Notification.permission)throw Je.create("permission-blocked");return await It(e,null===t||void 0===t?void 0:t.vapidKey),await yt(e,null===t||void 0===t?void 0:t.serviceWorkerRegistration),rt(e)} 716/** 717 * @license 718 * Copyright 2019 Google LLC 719 * 720 * Licensed under the Apache License, Version 2.0 (the "License"); 721 * you may not use this file except in compliance with the License. 722 * You may obtain a copy of the License at 723 * 724 * http://www.apache.org/licenses/LICENSE-2.0 725 * 726 * Unless required by applicable law or agreed to in writing, software 727 * distributed under the License is distributed on an "AS IS" BASIS, 728 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 729 * See the License for the specific language governing permissions and 730 * limitations under the License. 731 */async function St(e,t,n){const i=Ct(t),a=await e.firebaseDependencies.analyticsProvider.get();a.logEvent(i,{message_id:n[Te],message_name:n[Ae],message_time:n[Pe],message_device_time:Math.floor(Date.now()/1e3)})}function Ct(e){switch(e){case He.NOTIFICATION_CLICKED:return"notification_open";case He.PUSH_RECEIVED:return"notification_foreground";default:throw new Error}} 732/** 733 * @license 734 * Copyright 2017 Google LLC 735 * 736 * Licensed under the Apache License, Version 2.0 (the "License");
737 * you may not use this file except in compliance with the License. 738 * You may obtain a copy of the License at 739 * 740 * http://www.apache.org/licenses/LICENSE-2.0 741 * 742 * Unless required by applicable law or agreed to in writing, software 743 * distributed under the License is distributed on an "AS IS" BASIS, 744 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 745 * See the License for the specific language governing permissions and 746 * limitations under the License. 747 */async function _t(e,t){const n=t.data;if(!n.isFirebaseMessaging)return;e.onMessageHandler&&n.messageType===He.PUSH_RECEIVED&&("function"===typeof e.onMessageHandler?e.onMessageHandler(lt(n)):e.onMessageHandler.next(lt(n)));const i=n.data;ht(i)&&"1"===i[Ne]&&await St(e,n.messageType,i)}const Et="@firebase/messaging",Dt="0.12.10",Ot=e=>{const t=new bt(e.getProvider("app").getImmediate(),e.getProvider("installations-internal").getImmediate(),e.getProvider("analytics-internal"));return navigator.serviceWorker.addEventListener("message",(e=>_t(t,e))),t},Tt=e=>{const t=e.getProvider("messaging").getImmediate(),n={getToken:e=>kt(t,e)};return n};function At(){(0,i.Xd)(new a.wA("messaging",Ot,"PUBLIC")),(0,i.Xd)(new a.wA("messaging-internal",Tt,"PRIVATE")),(0,i.KN)(Et,Dt),(0,i.KN)(Et,Dt,"esm2017")} 748/** 749 * @license 750 * Copyright 2020 Google LLC 751 * 752 * Licensed under the Apache License, Version 2.0 (the "License"); 753 * you may not use this file except in compliance with the License. 754 * You may obtain a copy of the License at 755 * 756 * http://www.apache.org/licenses/LICENSE-2.0 757 * 758 * Unless required by applicable law or agreed to in writing, software 759 * distributed under the License is distributed on an "AS IS" BASIS, 760 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 761 * See the License for the specific language governing permissions and 762 * limitations under the License. 763 */async function Pt(){try{await(0,r.eu)()}catch(e){return!1}return"undefined"!==typeof window&&(0,r.hl)()&&(0,r.zI)()&&"serviceWorker"in navigator&&"PushManager"in window&&"Notification"in window&&"fetch"in window&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSubscription.prototype.hasOwnProperty("getKey")} 764/** 765 * @license 766 * Copyright 2020 Google LLC 767 * 768 * Licensed under the Apache License, Version 2.0 (the "License"); 769 * you may not use this file except in compliance with the License. 770 * You may obtain a copy of the License at 771 * 772 * http://www.apache.org/licenses/LICENSE-2.0 773 * 774 * Unless required by applicable law or agreed to in writing, software 775 * distributed under the License is distributed on an "AS IS" BASIS, 776 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 777 * See the License for the specific language governing permissions and 778 * limitations under the License. 779 */ 780/** 781 * @license 782 * Copyright 2020 Google LLC 783 * 784 * Licensed under the Apache License, Version 2.0 (the "License"); 785 * you may not use this file except in compliance with the License. 786 * You may obtain a copy of the License at 787 * 788 * http://www.apache.org/licenses/LICENSE-2.0 789 * 790 * Unless required by applicable law or agreed to in writing, software 791 * distributed under the License is distributed on an "AS IS" BASIS, 792 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 793 * See the License for the specific language governing permissions and 794 * limitations under the License. 795 */ 796function Nt(e,t){if(!navigator)throw Je.create("only-available-in-window");return e.onMessageHandler=t,()=>{e.onMessageHandler=null}} 797/** 798 * @license 799 * Copyright 2017 Google LLC 800 * 801 * Licensed under the Apache License, Version 2.0 (the "License"); 802 * you may not use this file except in compliance with the License. 803 * You may obtain a copy of the License at 804 * 805 * http://www.apache.org/licenses/LICENSE-2.0 806 * 807 * Unless required by applicable law or agreed to in writing, software 808 * distributed under the License is distributed on an "AS IS" BASIS, 809 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 810 * See the License for the specific language governing permissions and 811 * limitations under the License. 812 */function jt(e=(0,i.Mq)()){return Pt().then((e=>{if(!e)throw Je.create("unsupported-browser")}),(e=>{throw Je.create("indexed-db-unsupported")})),(0,i.qX)((0,r.m9)(e),"messaging").getImmediate()}async function Ht(e,t){return e=(0,r.m9)(e),kt(e,t)}function Lt(e,t){return e=(0,r.m9)(e),Nt(e,t)}At()}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.