!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="24f23648-4ce3-4239-b5e7-f86894b99db8",e._sentryDebugIdIdentifier="sentry-dbid-24f23648-4ce3-4239-b5e7-f86894b99db8")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5881],{5881:function(e,t,r){let n,i,o;r.d(t,{J8:function(){return tD},vz:function(){return tP},FT:function(){return tO}});var s,a,u,c,l=r(2265);r(44752);var h=r(92529);r(738);var f=r(5978),d=r(21362),p=r(40230),g=r(78965);class v{constructor(e,t,r){this.auth=null,this.messaging=null,this.appCheck=null,this.auth=e.getImmediate({optional:!0}),this.messaging=t.getImmediate({optional:!0}),this.auth||e.get().then(e=>this.auth=e,()=>{}),this.messaging||t.get().then(e=>this.messaging=e,()=>{}),this.appCheck||r.get().then(e=>this.appCheck=e,()=>{})}async getAuthToken(){if(this.auth)try{let e=await this.auth.getToken();return null==e?void 0:e.accessToken}catch(e){return}}async getMessagingToken(){if(this.messaging&&"Notification"in self&&"granted"===Notification.permission)try{return await this.messaging.getToken()}catch(e){return}}async getAppCheckToken(e){if(this.appCheck){let t=e?await this.appCheck.getLimitedUseToken():await this.appCheck.getToken();return t.error?null:t.token}return null}async getContext(e){return{authToken:await this.getAuthToken(),messagingToken:await this.getMessagingToken(),appCheckToken:await this.getAppCheckToken(e)}}}let b="us-central1";class m{constructor(e,t,r,n,i=b,o){this.app=e,this.fetchImpl=o,this.emulatorOrigin=null,this.contextProvider=new v(t,r,n),this.cancelAllRequests=new Promise(e=>{this.deleteService=()=>Promise.resolve(e())});try{let e=new URL(i);this.customDomain=e.origin,this.region=b}catch(e){this.customDomain=null,this.region=i}}_delete(){return this.deleteService()}_url(e){let t=this.app.options.projectId;if(null!==this.emulatorOrigin){let r=this.emulatorOrigin;return`${r}/${t}/${this.region}/${e}`}return null!==this.customDomain?`${this.customDomain}/${e}`:`https://${this.region}-${t}.cloudfunctions.net/${e}`}}let y="@firebase/functions",w="0.11.6";s=fetch.bind(self),(0,d.Xd)(new g.wA("functions",(e,{instanceIdentifier:t})=>{let r=e.getProvider("app").getImmediate();return new m(r,e.getProvider("auth-internal"),e.getProvider("messaging-internal"),e.getProvider("app-check-internal"),t,s)},"PUBLIC").setMultipleInstances(!0)),(0,d.KN)(y,w,void 0),(0,d.KN)(y,w,"esm2017"),r(60062);var _=r(18667);let S=(e,t)=>t.some(t=>e instanceof t),T=new WeakMap,C=new WeakMap,I=new WeakMap,E=new WeakMap,x=new WeakMap,k={get(e,t,r){if(e instanceof IDBTransaction){if("done"===t)return C.get(e);if("objectStoreNames"===t)return e.objectStoreNames||I.get(e);if("store"===t)return r.objectStoreNames[1]?void 0:r.objectStore(r.objectStoreNames[0])}return F(e[t])},set:(e,t,r)=>(e[t]=r,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function F(e){var t;if(e instanceof IDBRequest)return function(e){let t=new Promise((t,r)=>{let n=()=>{e.removeEventListener("success",i),e.removeEventListener("error",o)},i=()=>{t(F(e.result)),n()},o=()=>{r(e.error),n()};e.addEventListener("success",i),e.addEventListener("error",o)});return t.then(t=>{t instanceof IDBCursor&&T.set(t,e)}).catch(()=>{}),x.set(t,e),t}(e);if(E.has(e))return E.get(e);let r="function"==typeof(t=e)?t!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(i||(i=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(t)?function(...e){return t.apply(P(this),e),F(T.get(this))}:function(...e){return F(t.apply(P(this),e))}:function(e,...r){let n=t.call(P(this),e,...r);return I.set(n,e.sort?e.sort():[e]),F(n)}:(t instanceof IDBTransaction&&function(e){if(C.has(e))return;let t=new Promise((t,r)=>{let n=()=>{e.removeEventListener("complete",i),e.removeEventListener("error",o),e.removeEventListener("abort",o)},i=()=>{t(),n()},o=()=>{r(e.error||new DOMException("AbortError","AbortError")),n()};e.addEventListener("complete",i),e.addEventListener("error",o),e.addEventListener("abort",o)});C.set(e,t)}(t),S(t,n||(n=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])))?new Proxy(t,k):t;return r!==e&&(E.set(e,r),x.set(r,e)),r}let P=e=>x.get(e),O=["get","getKey","getAll","getAllKeys","count"],D=["put","add","delete","clear"],M=new Map;function j(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&"string"==typeof t))return;if(M.get(t))return M.get(t);let r=t.replace(/FromIndex$/,""),n=t!==r,i=D.includes(r);if(!(r in(n?IDBIndex:IDBObjectStore).prototype)||!(i||O.includes(r)))return;let o=async function(e,...t){let o=this.transaction(e,i?"readwrite":"readonly"),s=o.store;return n&&(s=s.index(t.shift())),(await Promise.all([s[r](...t),i&&o.done]))[0]};return M.set(t,o),o}k={...o=k,get:(e,t,r)=>j(e,t)||o.get(e,t,r),has:(e,t)=>!!j(e,t)||o.has(e,t)};let A="@firebase/installations",L="0.6.8",$=`w:${L}`,N="FIS_v2",B=new p.LL("installations","Installations",{"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."});function z(e){return e instanceof p.ZR&&e.code.includes("request-failed")}function V({projectId:e}){return`https://firebaseinstallations.googleapis.com/v1/projects/${e}/installations`}function q(e){return{token:e.token,requestStatus:2,expiresIn:Number(e.expiresIn.replace("s","000")),creationTime:Date.now()}}async function R(e,t){let r=(await t.json()).error;return B.create("request-failed",{requestName:e,serverCode:r.code,serverMessage:r.message,serverStatus:r.status})}function K({apiKey:e}){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":e})}async function U(e){let t=await e();return t.status>=500&&t.status<600?e():t}async function W({appConfig:e,heartbeatServiceProvider:t},{fid:r}){let n=V(e),i=K(e),o=t.getImmediate({optional:!0});if(o){let e=await o.getHeartbeatsHeader();e&&i.append("x-firebase-client",e)}let s={method:"POST",headers:i,body:JSON.stringify({fid:r,authVersion:N,appId:e.appId,sdkVersion:$})},a=await U(()=>fetch(n,s));if(a.ok){let e=await a.json();return{fid:e.fid||r,registrationStatus:2,refreshToken:e.refreshToken,authToken:q(e.authToken)}}throw await R("Create Installation",a)}function H(e){return new Promise(t=>{setTimeout(t,e)})}let Q=/^[cdef][\w-]{21}$/;function J(e){return`${e.appName}!${e.appId}`}let X=new Map;function Y(e,t){let r=J(e);G(r,t),function(e,t){let r=(!Z&&"BroadcastChannel"in self&&((Z=new BroadcastChannel("[Firebase] FID Change")).onmessage=e=>{G(e.data.key,e.data.fid)}),Z);r&&r.postMessage({key:e,fid:t}),0===X.size&&Z&&(Z.close(),Z=null)}(r,t)}function G(e,t){let r=X.get(e);if(r)for(let e of r)e(t)}let Z=null,ee="firebase-installations-store",et=null;function er(){return et||(et=function(e,t,{blocked:r,upgrade:n,blocking:i,terminated:o}={}){let s=indexedDB.open(e,1),a=F(s);return n&&s.addEventListener("upgradeneeded",e=>{n(F(s.result),e.oldVersion,e.newVersion,F(s.transaction),e)}),r&&s.addEventListener("blocked",e=>r(e.oldVersion,e.newVersion,e)),a.then(e=>{o&&e.addEventListener("close",()=>o()),i&&e.addEventListener("versionchange",e=>i(e.oldVersion,e.newVersion,e))}).catch(()=>{}),a}("firebase-installations-database",0,{upgrade:(e,t)=>{0===t&&e.createObjectStore(ee)}})),et}async function en(e,t){let r=J(e),n=(await er()).transaction(ee,"readwrite"),i=n.objectStore(ee),o=await i.get(r);return await i.put(t,r),await n.done,o&&o.fid===t.fid||Y(e,t.fid),t}async function ei(e){let t=J(e),r=(await er()).transaction(ee,"readwrite");await r.objectStore(ee).delete(t),await r.done}async function eo(e,t){let r=J(e),n=(await er()).transaction(ee,"readwrite"),i=n.objectStore(ee),o=await i.get(r),s=t(o);return void 0===s?await i.delete(r):await i.put(s,r),await n.done,s&&(!o||o.fid!==s.fid)&&Y(e,s.fid),s}async function es(e){let t;let r=await eo(e.appConfig,r=>{let n=function(e,t){if(0===t.registrationStatus){if(!navigator.onLine)return{installationEntry:t,registrationPromise:Promise.reject(B.create("app-offline"))};let r={fid:t.fid,registrationStatus:1,registrationTime:Date.now()},n=ea(e,r);return{installationEntry:r,registrationPromise:n}}return 1===t.registrationStatus?{installationEntry:t,registrationPromise:eu(e)}:{installationEntry:t}}(e,el(r||{fid:function(){try{let e=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(e),e[0]=112+e[0]%16;let t=btoa(String.fromCharCode(...e)).replace(/\+/g,"-").replace(/\//g,"_").substr(0,22);return Q.test(t)?t:""}catch(e){return""}}(),registrationStatus:0}));return t=n.registrationPromise,n.installationEntry});return""===r.fid?{installationEntry:await t}:{installationEntry:r,registrationPromise:t}}async function ea(e,t){try{let r=await W(e,t);return en(e.appConfig,r)}catch(r){throw z(r)&&409===r.customData.serverCode?await ei(e.appConfig):await en(e.appConfig,{fid:t.fid,registrationStatus:0}),r}}async function eu(e){let t=await ec(e.appConfig);for(;1===t.registrationStatus;)await H(100),t=await ec(e.appConfig);if(0===t.registrationStatus){let{installationEntry:t,registrationPromise:r}=await es(e);return r||t}return t}function ec(e){return eo(e,e=>{if(!e)throw B.create("installation-not-found");return el(e)})}function el(e){return 1===e.registrationStatus&&e.registrationTime+1e4<Date.now()?{fid:e.fid,registrationStatus:0}:e}async function eh({appConfig:e,heartbeatServiceProvider:t},r){let n=function(e,{fid:t}){return`${V(e)}/${t}/authTokens:generate`}(e,r),i=function(e,{refreshToken:t}){let r=K(e);return r.append("Authorization",`${N} ${t}`),r}(e,r),o=t.getImmediate({optional:!0});if(o){let e=await o.getHeartbeatsHeader();e&&i.append("x-firebase-client",e)}let s={method:"POST",headers:i,body:JSON.stringify({installation:{sdkVersion:$,appId:e.appId}})},a=await U(()=>fetch(n,s));if(a.ok)return q(await a.json());throw await R("Generate Auth Token",a)}async function ef(e,t=!1){let r;let n=await eo(e.appConfig,n=>{var i;if(!ev(n))throw B.create("not-registered");let o=n.authToken;if(!t&&2===(i=o).requestStatus&&!function(e){let t=Date.now();return t<e.creationTime||e.creationTime+e.expiresIn<t+36e5}(i))return n;if(1===o.requestStatus)return r=ed(e,t),n;{if(!navigator.onLine)throw B.create("app-offline");let t=function(e){let t={requestStatus:1,requestTime:Date.now()};return Object.assign(Object.assign({},e),{authToken:t})}(n);return r=eg(e,t),t}});return r?await r:n.authToken}async function ed(e,t){let r=await ep(e.appConfig);for(;1===r.authToken.requestStatus;)await H(100),r=await ep(e.appConfig);let n=r.authToken;return 0===n.requestStatus?ef(e,t):n}function ep(e){return eo(e,e=>{var t;if(!ev(e))throw B.create("not-registered");return 1===(t=e.authToken).requestStatus&&t.requestTime+1e4<Date.now()?Object.assign(Object.assign({},e),{authToken:{requestStatus:0}}):e})}async function eg(e,t){try{let r=await eh(e,t),n=Object.assign(Object.assign({},t),{authToken:r});return await en(e.appConfig,n),r}catch(r){if(z(r)&&(401===r.customData.serverCode||404===r.customData.serverCode))await ei(e.appConfig);else{let r=Object.assign(Object.assign({},t),{authToken:{requestStatus:0}});await en(e.appConfig,r)}throw r}}function ev(e){return void 0!==e&&2===e.registrationStatus}async function eb(e){let{installationEntry:t,registrationPromise:r}=await es(e);return r?r.catch(console.error):ef(e).catch(console.error),t.fid}async function em(e,t=!1){return await ey(e),(await ef(e,t)).token}async function ey(e){let{registrationPromise:t}=await es(e);t&&await t}function ew(e){return B.create("missing-app-config-values",{valueName:e})}let e_="installations";(0,d.Xd)(new g.wA(e_,e=>{let t=e.getProvider("app").getImmediate(),r=function(e){if(!e||!e.options)throw ew("App Configuration");if(!e.name)throw ew("App Name");for(let t of["projectId","apiKey","appId"])if(!e.options[t])throw ew(t);return{appName:e.name,projectId:e.options.projectId,apiKey:e.options.apiKey,appId:e.options.appId}}(t),n=(0,d.qX)(t,"heartbeat");return{app:t,appConfig:r,heartbeatServiceProvider:n,_delete:()=>Promise.resolve()}},"PUBLIC")),(0,d.Xd)(new g.wA("installations-internal",e=>{let t=e.getProvider("app").getImmediate(),r=(0,d.qX)(t,e_).getImmediate();return{getId:()=>eb(r),getToken:e=>em(r,e)}},"PRIVATE")),(0,d.KN)(A,L),(0,d.KN)(A,L,"esm2017");let eS="@firebase/remote-config",eT="0.4.8",eC=new p.LL("remoteconfig","Remote Config",{"registration-window":"Undefined window object. This SDK only supports usage in a browser environment.","registration-project-id":"Undefined project identifier. Check Firebase app initialization.","registration-api-key":"Undefined API key. Check Firebase app initialization.","registration-app-id":"Undefined app identifier. Check Firebase app initialization.","storage-open":"Error thrown when opening storage. Original error: {$originalErrorMessage}.","storage-get":"Error thrown when reading from storage. Original error: {$originalErrorMessage}.","storage-set":"Error thrown when writing to storage. Original error: {$originalErrorMessage}.","storage-delete":"Error thrown when deleting from storage. Original error: {$originalErrorMessage}.","fetch-client-network":"Fetch client failed to connect to a network. Check Internet connection. Original error: {$originalErrorMessage}.","fetch-timeout":'The config fetch request timed out.  Configure timeout using "fetchTimeoutMillis" SDK setting.',"fetch-throttle":'The config fetch request timed out while in an exponential backoff state. Configure timeout using "fetchTimeoutMillis" SDK setting. Unix timestamp in milliseconds when fetch request throttling ends: {$throttleEndTimeMillis}.',"fetch-client-parse":"Fetch client could not parse response. Original error: {$originalErrorMessage}.","fetch-status":"Fetch server returned an HTTP error status. HTTP status: {$httpStatus}.","indexed-db-unavailable":"Indexed DB is not supported by current browser"});class eI{constructor(e,t,r,n){this.client=e,this.storage=t,this.storageCache=r,this.logger=n}isCachedDataFresh(e,t){if(!t)return this.logger.debug("Config fetch cache check. Cache unpopulated."),!1;let r=Date.now()-t,n=r<=e;return this.logger.debug(`Config fetch cache check. Cache age millis: ${r}. Cache max age millis (minimumFetchIntervalMillis setting): ${e}. Is cache hit: ${n}.`),n}async fetch(e){let[t,r]=await Promise.all([this.storage.getLastSuccessfulFetchTimestampMillis(),this.storage.getLastSuccessfulFetchResponse()]);if(r&&this.isCachedDataFresh(e.cacheMaxAgeMillis,t))return r;e.eTag=r&&r.eTag;let n=await this.client.fetch(e),i=[this.storageCache.setLastSuccessfulFetchTimestampMillis(Date.now())];return 200===n.status&&i.push(this.storage.setLastSuccessfulFetchResponse(n)),await Promise.all(i),n}}class eE{constructor(e,t,r,n,i,o){this.firebaseInstallations=e,this.sdkVersion=t,this.namespace=r,this.projectId=n,this.apiKey=i,this.appId=o}async fetch(e){let t,r,n;let[i,o]=await Promise.all([this.firebaseInstallations.getId(),this.firebaseInstallations.getToken()]),s=window.FIREBASE_REMOTE_CONFIG_URL_BASE||"https://firebaseremoteconfig.googleapis.com",a=fetch(`${s}/v1/projects/${this.projectId}/namespaces/${this.namespace}:fetch?key=${this.apiKey}`,{method:"POST",headers:{"Content-Type":"application/json","Content-Encoding":"gzip","If-None-Match":e.eTag||"*"},body:JSON.stringify({sdk_version:this.sdkVersion,app_instance_id:i,app_instance_id_token:o,app_id:this.appId,language_code:function(e=navigator){return e.languages&&e.languages[0]||e.language}()})}),u=new Promise((t,r)=>{e.signal.addEventListener(()=>{let e=Error("The operation was aborted.");e.name="AbortError",r(e)})});try{await Promise.race([a,u]),t=await a}catch(t){let e="fetch-client-network";throw(null==t?void 0:t.name)==="AbortError"&&(e="fetch-timeout"),eC.create(e,{originalErrorMessage:null==t?void 0:t.message})}let c=t.status,l=t.headers.get("ETag")||void 0;if(200===t.status){let e;try{e=await t.json()}catch(e){throw eC.create("fetch-client-parse",{originalErrorMessage:null==e?void 0:e.message})}r=e.entries,n=e.state}if("INSTANCE_STATE_UNSPECIFIED"===n?c=500:"NO_CHANGE"===n?c=304:("NO_TEMPLATE"===n||"EMPTY_CONFIG"===n)&&(r={}),304!==c&&200!==c)throw eC.create("fetch-status",{httpStatus:c});return{status:c,eTag:l,config:r}}}class ex{constructor(e,t){this.client=e,this.storage=t}async fetch(e){let t=await this.storage.getThrottleMetadata()||{backoffCount:0,throttleEndTimeMillis:Date.now()};return this.attemptFetch(e,t)}async attemptFetch(e,{throttleEndTimeMillis:t,backoffCount:r}){var n;await (n=e.signal,new Promise((e,r)=>{let i=setTimeout(e,Math.max(t-Date.now(),0));n.addEventListener(()=>{clearTimeout(i),r(eC.create("fetch-throttle",{throttleEndTimeMillis:t}))})}));try{let t=await this.client.fetch(e);return await this.storage.deleteThrottleMetadata(),t}catch(n){if(!function(e){if(!(e instanceof p.ZR)||!e.customData)return!1;let t=Number(e.customData.httpStatus);return 429===t||500===t||503===t||504===t}(n))throw n;let t={throttleEndTimeMillis:Date.now()+(0,p.$s)(r),backoffCount:r+1};return await this.storage.setThrottleMetadata(t),this.attemptFetch(e,t)}}}class ek{constructor(e,t,r,n,i){this.app=e,this._client=t,this._storageCache=r,this._storage=n,this._logger=i,this._isInitializationComplete=!1,this.settings={fetchTimeoutMillis:6e4,minimumFetchIntervalMillis:432e5},this.defaultConfig={}}get fetchTimeMillis(){return this._storageCache.getLastSuccessfulFetchTimestampMillis()||-1}get lastFetchStatus(){return this._storageCache.getLastFetchStatus()||"no-fetch-yet"}}function eF(e,t){let r=e.target.error||void 0;return eC.create(t,{originalErrorMessage:r&&(null==r?void 0:r.message)})}let eP="app_namespace_store";class eO{constructor(e,t,r,n=new Promise((e,t)=>{try{let r=indexedDB.open("firebase_remote_config",1);r.onerror=e=>{t(eF(e,"storage-open"))},r.onsuccess=t=>{e(t.target.result)},r.onupgradeneeded=e=>{let t=e.target.result;0===e.oldVersion&&t.createObjectStore(eP,{keyPath:"compositeKey"})}}catch(e){t(eC.create("storage-open",{originalErrorMessage:null==e?void 0:e.message}))}})){this.appId=e,this.appName=t,this.namespace=r,this.openDbPromise=n}getLastFetchStatus(){return this.get("last_fetch_status")}setLastFetchStatus(e){return this.set("last_fetch_status",e)}getLastSuccessfulFetchTimestampMillis(){return this.get("last_successful_fetch_timestamp_millis")}setLastSuccessfulFetchTimestampMillis(e){return this.set("last_successful_fetch_timestamp_millis",e)}getLastSuccessfulFetchResponse(){return this.get("last_successful_fetch_response")}setLastSuccessfulFetchResponse(e){return this.set("last_successful_fetch_response",e)}getActiveConfig(){return this.get("active_config")}setActiveConfig(e){return this.set("active_config",e)}getActiveConfigEtag(){return this.get("active_config_etag")}setActiveConfigEtag(e){return this.set("active_config_etag",e)}getThrottleMetadata(){return this.get("throttle_metadata")}setThrottleMetadata(e){return this.set("throttle_metadata",e)}deleteThrottleMetadata(){return this.delete("throttle_metadata")}async get(e){let t=await this.openDbPromise;return new Promise((r,n)=>{let i=t.transaction([eP],"readonly").objectStore(eP),o=this.createCompositeKey(e);try{let e=i.get(o);e.onerror=e=>{n(eF(e,"storage-get"))},e.onsuccess=e=>{let t=e.target.result;t?r(t.value):r(void 0)}}catch(e){n(eC.create("storage-get",{originalErrorMessage:null==e?void 0:e.message}))}})}async set(e,t){let r=await this.openDbPromise;return new Promise((n,i)=>{let o=r.transaction([eP],"readwrite").objectStore(eP),s=this.createCompositeKey(e);try{let e=o.put({compositeKey:s,value:t});e.onerror=e=>{i(eF(e,"storage-set"))},e.onsuccess=()=>{n()}}catch(e){i(eC.create("storage-set",{originalErrorMessage:null==e?void 0:e.message}))}})}async delete(e){let t=await this.openDbPromise;return new Promise((r,n)=>{let i=t.transaction([eP],"readwrite").objectStore(eP),o=this.createCompositeKey(e);try{let e=i.delete(o);e.onerror=e=>{n(eF(e,"storage-delete"))},e.onsuccess=()=>{r()}}catch(e){n(eC.create("storage-delete",{originalErrorMessage:null==e?void 0:e.message}))}})}createCompositeKey(e){return[this.appId,this.appName,this.namespace,e].join()}}class eD{constructor(e){this.storage=e}getLastFetchStatus(){return this.lastFetchStatus}getLastSuccessfulFetchTimestampMillis(){return this.lastSuccessfulFetchTimestampMillis}getActiveConfig(){return this.activeConfig}async loadFromStorage(){let e=this.storage.getLastFetchStatus(),t=this.storage.getLastSuccessfulFetchTimestampMillis(),r=this.storage.getActiveConfig(),n=await e;n&&(this.lastFetchStatus=n);let i=await t;i&&(this.lastSuccessfulFetchTimestampMillis=i);let o=await r;o&&(this.activeConfig=o)}setLastFetchStatus(e){return this.lastFetchStatus=e,this.storage.setLastFetchStatus(e)}setLastSuccessfulFetchTimestampMillis(e){return this.lastSuccessfulFetchTimestampMillis=e,this.storage.setLastSuccessfulFetchTimestampMillis(e)}setActiveConfig(e){return this.activeConfig=e,this.storage.setActiveConfig(e)}}(0,d.Xd)(new g.wA("remote-config",function(e,{instanceIdentifier:t}){let r=e.getProvider("app").getImmediate(),n=e.getProvider("installations-internal").getImmediate();if("undefined"==typeof window)throw eC.create("registration-window");if(!(0,p.hl)())throw eC.create("indexed-db-unavailable");let{projectId:i,apiKey:o,appId:s}=r.options;if(!i)throw eC.create("registration-project-id");if(!o)throw eC.create("registration-api-key");if(!s)throw eC.create("registration-app-id");t=t||"firebase";let a=new eO(s,r.name,t),u=new eD(a),c=new _.Yd(eS);c.logLevel=_.in.ERROR;let l=new ek(r,new eI(new ex(new eE(n,d.Jn,t,i,o,s),a),a,u,c),u,a,c);return function(e){let t=(0,p.m9)(e);t._initializePromise||(t._initializePromise=t._storageCache.loadFromStorage().then(()=>{t._isInitializationComplete=!0})),t._initializePromise}(l),l},"PUBLIC").setMultipleInstances(!0)),(0,d.KN)(eS,eT),(0,d.KN)(eS,eT,"esm2017");var eM=function(e,t){return(eM=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function ej(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}eM(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function eA(e,t){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(r)throw TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}}function eL(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function e$(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s}function eN(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}function eB(e){return this instanceof eB?(this.v=e,this):new eB(e)}function ez(e){return"function"==typeof e}function eV(e){var t=e(function(e){Error.call(e),e.stack=Error().stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var eq=eV(function(e){return function(t){e(this),this.message=t?t.length+` errors occurred during unsubscription:
`+t.map(function(e,t){return t+1+") "+e.toString()}).join(`
  `):"",this.name="UnsubscriptionError",this.errors=t}});function eR(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var eK=function(){var e;function t(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){var e,t,r,n,i;if(!this.closed){this.closed=!0;var o=this._parentage;if(o){if(this._parentage=null,Array.isArray(o))try{for(var s=eL(o),a=s.next();!a.done;a=s.next())a.value.remove(this)}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}else o.remove(this)}var u=this.initialTeardown;if(ez(u))try{u()}catch(e){i=e instanceof eq?e.errors:[e]}var c=this._finalizers;if(c){this._finalizers=null;try{for(var l=eL(c),h=l.next();!h.done;h=l.next()){var f=h.value;try{eH(f)}catch(e){i=null!=i?i:[],e instanceof eq?i=eN(eN([],e$(i)),e$(e.errors)):i.push(e)}}}catch(e){r={error:e}}finally{try{h&&!h.done&&(n=l.return)&&n.call(l)}finally{if(r)throw r.error}}}if(i)throw new eq(i)}},t.prototype.add=function(e){var r;if(e&&e!==this){if(this.closed)eH(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!==(r=this._finalizers)&&void 0!==r?r:[]).push(e)}}},t.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},t.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},t.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&eR(t,e)},t.prototype.remove=function(e){var r=this._finalizers;r&&eR(r,e),e instanceof t&&e._removeParent(this)},t.EMPTY=((e=new t).closed=!0,e),t}(),eU=eK.EMPTY;function eW(e){return e instanceof eK||e&&"closed"in e&&ez(e.remove)&&ez(e.add)&&ez(e.unsubscribe)}function eH(e){ez(e)?e():e.unsubscribe()}var eQ={Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},eJ={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=eJ.delegate;return null!=i&&i.setTimeout?i.setTimeout.apply(i,eN([e,t],e$(r))):setTimeout.apply(void 0,eN([e,t],e$(r)))},clearTimeout:function(e){var t=eJ.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function eX(e){eJ.setTimeout(function(){throw e})}function eY(){}var eG=null;function eZ(e){if(eQ.useDeprecatedSynchronousErrorHandling){var t=!eG;if(t&&(eG={errorThrown:!1,error:null}),e(),t){var r=eG,n=r.errorThrown,i=r.error;if(eG=null,n)throw i}}else e()}var e0=function(e){function t(t){var r=e.call(this)||this;return r.isStopped=!1,t?(r.destination=t,eW(t)&&t.add(r)):r.destination=e6,r}return ej(t,e),t.create=function(e,t,r){return new e3(e,t,r)},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(eK),e1=Function.prototype.bind;function e2(e,t){return e1.call(e,t)}var e4=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){eX(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){eX(e)}else eX(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){eX(e)}},e}(),e3=function(e){function t(t,r,n){var i,o,s=e.call(this)||this;return ez(t)||!t?o={next:null!=t?t:void 0,error:null!=r?r:void 0,complete:null!=n?n:void 0}:s&&eQ.useDeprecatedNextContext?((i=Object.create(t)).unsubscribe=function(){return s.unsubscribe()},o={next:t.next&&e2(t.next,i),error:t.error&&e2(t.error,i),complete:t.complete&&e2(t.complete,i)}):o=t,s.destination=new e4(o),s}return ej(t,e),t}(e0),e6={closed:!0,next:eY,error:function(e){throw e},complete:eY},e8="function"==typeof Symbol&&Symbol.observable||"@@observable";function e5(e){return e}var e9=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(e,t,r){var n,i=this,o=(n=e)&&n instanceof e0||n&&ez(n.next)&&ez(n.error)&&ez(n.complete)&&eW(n)?e:new e3(e,t,r);return eZ(function(){var e=i.operator,t=i.source;o.add(e?e.call(o,t):t?i._subscribe(o):i._trySubscribe(o))}),o},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var r=this;return new(t=e7(t))(function(t,n){var i=new e3({next:function(t){try{e(t)}catch(e){n(e),i.unsubscribe()}},error:n,complete:t});r.subscribe(i)})},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[e8]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0===e.length?e5:1===e.length?e[0]:function(t){return e.reduce(function(e,t){return t(e)},t)})(this)},e.prototype.toPromise=function(e){var t=this;return new(e=e7(e))(function(e,r){var n;t.subscribe(function(e){return n=e},function(e){return r(e)},function(){return e(n)})})},e.create=function(t){return new e(t)},e}();function e7(e){var t;return null!==(t=null!=e?e:eQ.Promise)&&void 0!==t?t:Promise}function te(e){return function(t){if(ez(null==t?void 0:t.lift))return t.lift(function(t){try{return e(t,this)}catch(e){this.error(e)}});throw TypeError("Unable to lift unknown Observable type")}}function tt(e,t,r,n,i){return new tr(e,t,r,n,i)}var tr=function(e){function t(t,r,n,i,o,s){var a=e.call(this,t)||this;return a.onFinalize=o,a.shouldUnsubscribe=s,a._next=r?function(e){try{r(e)}catch(e){t.error(e)}}:e.prototype._next,a._error=i?function(e){try{i(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._error,a._complete=n?function(){try{n()}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._complete,a}return ej(t,e),t.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;e.prototype.unsubscribe.call(this),r||null===(t=this.onFinalize)||void 0===t||t.call(this)}},t}(e0),tn=eV(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),ti=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return ej(t,e),t.prototype.lift=function(e){var t=new to(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new tn},t.prototype.next=function(e){var t=this;eZ(function(){var r,n;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var i=eL(t.currentObservers),o=i.next();!o.done;o=i.next())o.value.next(e)}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}}})},t.prototype.error=function(e){var t=this;eZ(function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var r=t.observers;r.length;)r.shift().error(e)}})},t.prototype.complete=function(){var e=this;eZ(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,r=this.hasError,n=this.isStopped,i=this.observers;return r||n?eU:(this.currentObservers=null,i.push(e),new eK(function(){t.currentObservers=null,eR(i,e)}))},t.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,r=this.thrownError,n=this.isStopped;t?e.error(r):n&&e.complete()},t.prototype.asObservable=function(){var e=new e9;return e.source=this,e},t.create=function(e,t){return new to(e,t)},t}(e9),to=function(e){function t(t,r){var n=e.call(this)||this;return n.destination=t,n.source=r,n}return ej(t,e),t.prototype.next=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,e)},t.prototype.error=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,r;return null!==(r=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==r?r:eU},t}(ti),ts={now:function(){return(ts.delegate||Date).now()},delegate:void 0},ta=function(e){function t(t,r,n){void 0===t&&(t=1/0),void 0===r&&(r=1/0),void 0===n&&(n=ts);var i=e.call(this)||this;return i._bufferSize=t,i._windowTime=r,i._timestampProvider=n,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=r===1/0,i._bufferSize=Math.max(1,t),i._windowTime=Math.max(1,r),i}return ej(t,e),t.prototype.next=function(t){var r=this.isStopped,n=this._buffer,i=this._infiniteTimeWindow,o=this._timestampProvider,s=this._windowTime;r||(n.push(t),i||n.push(o.now()+s)),this._trimBuffer(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),r=this._infiniteTimeWindow,n=this._buffer,i=n.slice(),o=0;o<i.length&&!e.closed;o+=r?1:2)e.next(i[o]);return this._checkFinalizedStatuses(e),t},t.prototype._trimBuffer=function(){var e=this._bufferSize,t=this._timestampProvider,r=this._buffer,n=this._infiniteTimeWindow,i=(n?1:2)*e;if(e<1/0&&i<r.length&&r.splice(0,r.length-i),!n){for(var o=t.now(),s=0,a=1;a<r.length&&r[a]<=o;a+=2)s=a;s&&r.splice(0,s+1)}},t}(ti),tu=function(e){function t(t,r){return e.call(this)||this}return ej(t,e),t.prototype.schedule=function(e,t){return this},t}(eK),tc={setInterval:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=tc.delegate;return null!=i&&i.setInterval?i.setInterval.apply(i,eN([e,t],e$(r))):setInterval.apply(void 0,eN([e,t],e$(r)))},clearInterval:function(e){var t=tc.delegate;return((null==t?void 0:t.clearInterval)||clearInterval)(e)},delegate:void 0},tl=function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.scheduler=t,n.work=r,n.pending=!1,n}return ej(t,e),t.prototype.schedule=function(e,t){if(void 0===t&&(t=0),this.closed)return this;this.state=e;var r=this.id,n=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(n,r,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(n,this.id,t),this},t.prototype.requestAsyncId=function(e,t,r){return void 0===r&&(r=0),tc.setInterval(e.flush.bind(e,this),r)},t.prototype.recycleAsyncId=function(e,t,r){if(void 0===r&&(r=0),null!=r&&this.delay===r&&!1===this.pending)return t;tc.clearInterval(t)},t.prototype.execute=function(e,t){if(this.closed)return Error("executing a cancelled action");this.pending=!1;var r=this._execute(e,t);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var r,n=!1;try{this.work(e)}catch(e){n=!0,r=e||Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),r},t.prototype.unsubscribe=function(){if(!this.closed){var t=this.id,r=this.scheduler,n=r.actions;this.work=this.state=this.scheduler=null,this.pending=!1,eR(n,this),null!=t&&(this.id=this.recycleAsyncId(r,t,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(tu),th=function(){function e(t,r){void 0===r&&(r=e.now),this.schedulerActionCtor=t,this.now=r}return e.prototype.schedule=function(e,t,r){return void 0===t&&(t=0),new this.schedulerActionCtor(this,e).schedule(r,t)},e.now=ts.now,e}(),tf=(new(function(e){function t(t,r){void 0===r&&(r=th.now);var n=e.call(this,t,r)||this;return n.actions=[],n._active=!1,n._scheduled=void 0,n}return ej(t,e),t.prototype.flush=function(e){var t,r=this.actions;if(this._active){r.push(e);return}this._active=!0;do if(t=e.execute(e.state,e.delay))break;while(e=r.shift());if(this._active=!1,t){for(;e=r.shift();)e.unsubscribe();throw t}},t}(th))(tl),new e9(function(e){return e.complete()})),td="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";function tp(e){if(e instanceof e9)return e;if(null!=e){if(ez(e[e8]))return new e9(function(t){var r=e[e8]();if(ez(r.subscribe))return r.subscribe(t);throw TypeError("Provided object does not correctly implement Symbol.observable")});if(e&&"number"==typeof e.length&&"function"!=typeof e)return new e9(function(t){for(var r=0;r<e.length&&!t.closed;r++)t.next(e[r]);t.complete()});if(ez(null==e?void 0:e.then))return new e9(function(t){e.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,eX)});if(Symbol.asyncIterator&&ez(null==e?void 0:e[Symbol.asyncIterator]))return tg(e);if(ez(null==e?void 0:e[td]))return new e9(function(t){var r,n;try{for(var i=eL(e),o=i.next();!o.done;o=i.next()){var s=o.value;if(t.next(s),t.closed)return}}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}t.complete()});if(ez(null==e?void 0:e.getReader))return tg(function(e){return function(e,t,r){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var n,i=r.apply(e,t||[]),o=[];return n={},s("next"),s("throw"),s("return"),n[Symbol.asyncIterator]=function(){return this},n;function s(e){i[e]&&(n[e]=function(t){return new Promise(function(r,n){o.push([e,t,r,n])>1||a(e,t)})})}function a(e,t){try{var r;(r=i[e](t)).value instanceof eB?Promise.resolve(r.value.v).then(u,c):l(o[0][2],r)}catch(e){l(o[0][3],e)}}function u(e){a("next",e)}function c(e){a("throw",e)}function l(e,t){e(t),o.shift(),o.length&&a(o[0][0],o[0][1])}}(this,arguments,function(){var t,r,n;return eA(this,function(i){switch(i.label){case 0:t=e.getReader(),i.label=1;case 1:i.trys.push([1,,9,10]),i.label=2;case 2:return[4,eB(t.read())];case 3:return n=(r=i.sent()).value,r.done?[4,eB(void 0)]:[3,5];case 4:return[2,i.sent()];case 5:return[4,eB(n)];case 6:return[4,i.sent()];case 7:return i.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})}(e))}throw TypeError("You provided "+(null!==e&&"object"==typeof e?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function tg(e){return new e9(function(t){(function(e,t){var r,n,i,o,s,a,u,c;return s=this,a=void 0,u=void 0,c=function(){var s;return eA(this,function(a){switch(a.label){case 0:a.trys.push([0,5,6,11]),r=function(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=eL(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise(function(n,i){(function(e,t,r,n){Promise.resolve(n).then(function(t){e({value:t,done:r})},t)})(n,i,(t=e[r](t)).done,t.value)})}}}(e),a.label=1;case 1:return[4,r.next()];case 2:if((n=a.sent()).done)return[3,4];if(s=n.value,t.next(s),t.closed)return[2];a.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return i={error:a.sent()},[3,11];case 6:return a.trys.push([6,,9,10]),n&&!n.done&&(o=r.return)?[4,o.call(r)]:[3,8];case 7:a.sent(),a.label=8;case 8:return[3,10];case 9:if(i)throw i.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})},new(u||(u=Promise))(function(e,t){function r(e){try{i(c.next(e))}catch(e){t(e)}}function n(e){try{i(c.throw(e))}catch(e){t(e)}}function i(t){var i;t.done?e(t.value):((i=t.value)instanceof u?i:new u(function(e){e(i)})).then(r,n)}i((c=c.apply(s,a||[])).next())})})(e,t).catch(function(e){return t.error(e)})})}var tv=eV(function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}});function tb(e,t){return te(function(r,n){var i=0;r.subscribe(tt(n,function(r){n.next(e.call(t,r,i++))}))})}function tm(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];if(!0===t){e();return}if(!1!==t){var i=new e3({next:function(){i.unsubscribe(),e()}});return t.apply(void 0,eN([],e$(r))).subscribe(i)}}let ty=l.createContext(void 0),tw=l.createContext(!1);(a=c||(c={})).added="child_added",a.removed="child_removed",a.changed="child_changed",a.moved="child_moved",a.value="value",Object.freeze(((u={})[c.added]=h.yv,u[c.removed]=h.MQ,u[c.changed]=h.Jr,u[c.moved]=h.Vt,u[c.value]=h.jM,u));let t_=globalThis._reactFireDatabaseCachedQueries||[];globalThis._reactFireDatabaseCachedQueries||(globalThis._reactFireDatabaseCachedQueries=t_);var tS={includeMetadataChanges:!1};function tT(e,t){return void 0===t&&(t=tS),new e9(function(r){return{unsubscribe:(0,f.cf)(e,t,{next:r.next.bind(r),error:r.error.bind(r),complete:r.complete.bind(r)})}})}function tC(e,t){return void 0===t&&(t={}),tT(e,{includeMetadataChanges:!0}).pipe(tb(function(e){return tI(e,t)}))}function tI(e,t){void 0===t&&(t={});var r=e.data();return!e.exists()||"object"!=typeof r||null===r||t.idField&&(r[t.idField]=e.id),r}class tE extends ti{constructor(e,t){var r,n,i,o,s,a,u,c,l,h,f,d,p,g,v;super(),this._timeoutWindow=t,this._hasValue=!1,this._error=void 0,this._firstEmission=new Promise(e=>this._resolveFirstEmission=e),this._innerObservable=e.pipe((o=ez(r={next:e=>{this._next(e)},error:e=>{this._error=e,this._resolveFirstEmission()}})?{next:r,error:n,complete:i}:r)?te(function(e,t){null===(r=o.subscribe)||void 0===r||r.call(o);var r,n=!0;e.subscribe(tt(t,function(e){var r;null===(r=o.next)||void 0===r||r.call(o,e),t.next(e)},function(){var e;n=!1,null===(e=o.complete)||void 0===e||e.call(o),t.complete()},function(e){var r;n=!1,null===(r=o.error)||void 0===r||r.call(o,e),t.error(e)},function(){var e,t;n&&(null===(e=o.unsubscribe)||void 0===e||e.call(o)),null===(t=o.finalize)||void 0===t||t.call(o)}))}):e5,function e(t){return te(function(r,n){var i,o=null,s=!1;o=r.subscribe(tt(n,void 0,void 0,function(a){i=tp(t(a,e(t)(r))),o?(o.unsubscribe(),o=null,i.subscribe(n)):s=!0})),s&&(o.unsubscribe(),o=null,i.subscribe(n))})}(()=>tf),(l=void 0===(c=(u={connector:function(){return new ta(1,s,a)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:!1}).connector)?function(){return new ti}:c,f=void 0===(h=u.resetOnError)||h,p=void 0===(d=u.resetOnComplete)||d,v=void 0===(g=u.resetOnRefCountZero)||g,function(e){var t,r,n,i=0,o=!1,s=!1,a=function(){null==r||r.unsubscribe(),r=void 0},u=function(){a(),t=n=void 0,o=s=!1},c=function(){var e=t;u(),null==e||e.unsubscribe()};return te(function(e,h){i++,s||o||a();var d=n=null!=n?n:l();h.add(function(){0!=--i||s||o||(r=tm(c,v))}),d.subscribe(h),!t&&i>0&&(t=new e3({next:function(e){return d.next(e)},error:function(e){s=!0,a(),r=tm(u,f,e),d.error(e)},complete:function(){o=!0,a(),r=tm(u,p),d.complete()}}),tp(e).subscribe(t))})(e)})),this._warmupSubscription=this._innerObservable.subscribe(),this._timeoutHandler=setTimeout(this._reset.bind(this),this._timeoutWindow)}get hasValue(){return this._hasValue||!!this._error}get value(){if(this._error)throw this._error;if(!this.hasValue)throw Error("Can only get value if SuspenseSubject has a value");return this._value}get firstEmission(){return this._firstEmission}_next(e){this._hasValue=!0,this._value=e,this._resolveFirstEmission()}_reset(){this._warmupSubscription&&this._warmupSubscription.unsubscribe(),this._hasValue=!1,this._value=void 0,this._error=void 0,this._firstEmission=new Promise(e=>this._resolveFirstEmission=e)}_subscribe(e){return this._timeoutHandler&&clearTimeout(this._timeoutHandler),this._innerSubscriber=this._innerObservable.subscribe(e),this._innerSubscriber}get ourError(){return this._error}}let tx=globalThis._reactFirePreloadedObservables||new Map;function tk(e,t,r={}){var n,i;let o;if(!e)throw Error("cannot call useObservable without an observableId");let s=function(e,t){if(tx.has(t))return tx.get(t);{let r=new tE(e,3e4);return tx.set(t,r),r}}(t,e),a=r.hasOwnProperty("initialData")||r.hasOwnProperty("startWithValue"),u=s.hasValue||a;if(!0===(i=r.suspense,o=l.useContext(tw),void 0!==i?i:o)&&!u)throw s.firstEmission;let c={status:u?"success":"loading",hasEmitted:u,isComplete:!1,data:s.hasValue?s.value:null!==(n=null==r?void 0:r.initialData)&&void 0!==n?n:null==r?void 0:r.startWithValue,error:s.ourError,firstValuePromise:s.firstEmission},[h,f]=l.useReducer(function(e,t){let r=Object.assign(Object.assign({},e),{hasEmitted:e.hasEmitted||s.hasValue,error:s.ourError,firstValuePromise:s.firstEmission});switch(s.hasValue&&(r.data=s.value),t){case"value":return r.status="success",r;case"error":return r.status="error",r;case"complete":return r.isComplete=!0,r;default:throw Error(`invalid action "${t}"`)}},c);return l.useEffect(()=>{let e=s.subscribe({next:()=>{f("value")},error:e=>{throw f("error"),e},complete:()=>{f("complete")}});return()=>e.unsubscribe()},[s]),h}globalThis._reactFirePreloadedObservables||(globalThis._reactFirePreloadedObservables=tx);let tF=globalThis._reactFireFirestoreQueryCache||[];function tP(e,t){let r=t?tR(t):"NO_ID_FIELD";return tk(`firestore:docData:${e.firestore.app.name}:${e.path}:idField=${r}`,tC(e,{idField:r}),t)}function tO(e,t){let r=t?tR(t):"NO_ID_FIELD";return tk(`firestore:docDataOnce:${e.firestore.app.name}:${e.path}:idField=${r}`,tC(e,{idField:r}).pipe(function(e,t){var r=arguments.length>=2;return function(n){var i,o;return n.pipe(e?(i=function(t,r){return e(t,r,n)},te(function(e,t){var r=0;e.subscribe(tt(t,function(e){return i.call(void 0,e,r++)&&t.next(e)}))})):e5,te(function(e,t){var r=0;e.subscribe(tt(t,function(e){++r<=1&&(t.next(e),1<=r&&t.complete())}))}),r?te(function(e,r){var n=!1;e.subscribe(tt(r,function(e){n=!0,r.next(e)},function(){n||r.next(t),r.complete()}))}):(o=function(){return new tv},te(function(e,t){var r=!1;e.subscribe(tt(t,function(e){r=!0,t.next(e)},function(){return r?t.complete():t.error(o())}))})))}}()),t)}function tD(e,t){var r;let n=t?tR(t):"NO_ID_FIELD";return tk(`firestore:collectionData:${function(e){let t=tF.findIndex(t=>(0,f.iE)(t,e));return t>-1?t:tF.push(e)-1}(e)}:idField=${n}`,(r={idField:n},tT(e,{includeMetadataChanges:!0}).pipe(tb(function(e){return e.docs})).pipe(tb(function(e){return e.map(function(e){return tI(e,r)})}))),t)}globalThis._reactFireFirestoreQueryCache||(globalThis._reactFireFirestoreQueryCache=tF);let tM=l.createContext(void 0),tj=l.createContext(void 0),tA=l.createContext(void 0),tL=l.createContext(void 0),t$=l.createContext(void 0),tN=l.createContext(void 0),tB=l.createContext(void 0),tz=l.createContext(void 0),tV=l.createContext(void 0);function tq(e){return function(t){var r,n;if(!t.sdk)throw Error("no sdk provided");let i=function(){let e=l.useContext(ty);if(!e)throw Error("Cannot call useFirebaseApp unless your component is within a FirebaseAppProvider");return e}().name;if((null===(n=null===(r=null==t?void 0:t.sdk)||void 0===r?void 0:r.app)||void 0===n?void 0:n.name)!==i)throw Error("sdk was initialized with a different firebase app");return l.createElement(e.Provider,Object.assign({value:t.sdk},t))}}function tR(e){return function(e,t){if("idField"===t||"initialData"===t||"suspense"===t)return e?e[t]:void 0;throw Error(`Field "${t}" is not a valid key in ReactFireOptions`)}(e,"idField")}tq(tM),tq(tj),tq(tA),tq(tL),tq(t$),tq(tN),tq(tz),tq(tB),tq(tV)}}]);
//# sourceMappingURL=5881-fcab59257ddc8274.js.map