vendor: 4,567 bytes, line 1
1import{A as M,B as ie,Ca as ft,D as C,Da as dt,Ea as we,F as z,Na as Ie,a as V,c as ot,d as at,h as be,i as ye,l as ct,m as te,o as E,p as P,q as ne,r as lt,s as re,t as ut}from"./chunk-LW6HKP4X.js";import{a as Q,b as ee,j,k as u}from"./chunk-AOMQVBFH.js";var ht=()=>{};var mt=function(e){let t=[],n=0;for(let r=0;r<e.length;r++){let i=e.charCodeAt(r);i<128?t[n++]=i:i<2048?(t[n++]=i>>6|192,t[n++]=i&63|128):(i&64512)===55296&&r+1<e.length&&(e.charCodeAt(r+1)&64512)===56320?(i=65536+((i&1023)<<10)+(e.charCodeAt(++r)&1023),t[n++]=i>>18|240,t[n++]=i>>12&63|128,t[n++]=i>>6&63|128,t[n++]=i&63|128):(t[n++]=i>>12|224,t[n++]=i>>6&63|128,t[n++]=i&63|128)}return t},bn=function(e){let t=[],n=0,r=0;for(;n<e.length;){let i=e[n++];if(i<128)t[r++]=String.fromCharCode(i);else if(i>191&&i<224){let s=e[n++];t[r++]=String.fromCharCode((i&31)<<6|s&63)}else if(i>239&&i<365){let s=e[n++],o=e[n++],a=e[n++],c=((i&7)<<18|(s&63)<<12|(o&63)<<6|a&63)-65536;t[r++]=String.fromCharCode(55296+(c>>10)),t[r++]=String.fromCharCode(56320+(c&1023))}else{let s=e[n++],o=e[n++];t[r++]=String.fromCharCode((i&15)<<12|(s&63)<<6|o&63)}}return t.join("")},gt={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:typeof atob=="function",encodeByteArray(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();let n=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[];for(let i=0;i<e.length;i+=3){let s=e[i],o=i+1<e.length,a=o?e[i+1]:0,c=i+2<e.length,l=c?e[i+2]:0,d=s>>2,f=(s&3)<<4|a>>4,p=(a&15)<<2|l>>6,g=l&63;c||(g=64,o||(p=64)),r.push(n[d],n[f],n[p],n[g])}return r.join("")},encodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(mt(e),t)},decodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):bn(this.decodeStringToByteArray(e,t))},decodeStringToByteArray(e,t){this.init_();let n=t?this.charToByteMapWebSafe_:this.charToByteMap_,r=[];for(let i=0;i<e.length;){let s=n[e.charAt(i++)],a=i<e.length?n[e.charAt(i)]:0;++i;let l=i<e.length?n[e.charAt(i)]:64;++i;let f=i<e.length?n[e.charAt(i)]:64;if(++i,s==null||a==null||l==null||f==null)throw new ve;let p=s<<2|a>>4;if(r.push(p),l!==64){let g=a<<4&240|l>>2;if(r.push(g),f!==64){let X=l<<6&192|f;r.push(X)}}}return r},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let e=0;e<this.ENCODED_VALS.length;e++)this.byteToCharMap_[e]=this.ENCODED_VALS.charAt(e),this.charToByteMap_[this.byteToCharMap_[e]]=e,this.byteToCharMapWebSafe_[e]=this.ENCODED_VALS_WEBSAFE.charAt(e),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[e]]=e,e>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}},ve=class extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}},yn=function(e){let t=mt(e);return gt.encodeByteArray(t,!0)},Ee=function(e){return yn(e).replace(/\./g,"")},bt=function(e){try{return gt.decodeString(e,!0)}catch(t){console.error("base64Decode failed: ",t)}return null};function wn(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("Unable to locate global object.")}var In=()=>wn().__FIREBASE_DEFAULTS__,vn=()=>{if(typeof process>"u"||typeof process.env>"u")return;let e=process.env.__FIREBASE_DEFAULTS__;if(e)return JSON.parse(e)},En=()=>{if(typeof document>"u")return;let e;try{e=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}let t=e&&bt(e[1]);return t&&JSON.parse(t)},_n=()=>{try{return ht()||In()||vn()||En()}catch(e){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${e}`);return}};var _e=()=>{var e;return(e=_n())===null||e===void 0?void 0:e.config};var se=class{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((t,n)=>{this.resolve=t,this.reject=n})}wrapCallback(t){return(n,r)=>{n?this.reject(n):this.resolve(r),typeof t=="function"&&(this.promise.catch(()=>{}),t.length===1?t(n):t(n,r))}}};function yt(){let e=typeof chrome=="object"?chrome.runtime:typeof browser=="object"?browser.runtime:void 0;return typeof e=="object"&&e.id!==void 0}function oe(){try{return typeof indexedDB=="object"}catch{return!1}}function ae(){return new Promise((e,t)=>
1{try{let n=!0,r="validate-browser-context-for-indexeddb-analytics-module",i=self.indexedDB.open(r);i.onsuccess=()=>{i.result.close(),n||self.indexedDB.deleteDatabase(r),e(!0)},i.onupgradeneeded=()=>{n=!1},i.onerror=()=>{var s;t(((s=i.error)===null||s===void 0?void 0:s.message)||"")}}catch(n){t(n)}})}function wt(){return!(typeof navigator>"u"||!navigator.cookieEnabled)}var An="FirebaseError",I=class e extends Error{constructor(t,n,r){super(n),this.code=t,this.customData=r,this.name=An,Object.setPrototypeOf(this,e.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,_.prototype.create)}},_=class{constructor(t,n,r){this.service=t,this.serviceName=n,this.errors=r}create(t,...n){let r=n[0]||{},i=`${this.service}/${t}`,s=this.errors[t],o=s?Sn(s,r):"Error",a=`${this.serviceName}: ${o} (${i}).`;return new I(i,a,r)}};function Sn(e,t){return e.replace(Cn,(n,r)=>{let i=t[r];return i!=null?String(i):`<${r}?>`})}var Cn=/\{\$([^}]+)}/g;function B(e,t){if(e===t)return!0;let n=Object.keys(e),r=Object.keys(t);for(let i of n){if(!r.includes(i))return!1;let s=e[i],o=t[i];if(pt(s)&&pt(o)){if(!B(s,o))return!1}else if(s!==o)return!1}for(let i of r)if(!n.includes(i))return!1;return!0}function pt(e){return e!==null&&typeof e=="object"}var Dn=1e3,Tn=2,On=4*60*60*1e3,Rn=.5;function Ae(e,t=Dn,n=Tn){let r=t*Math.pow(n,e),i=Math.round(Rn*r*(Math.random()-.5)*2);return Math.min(On,r+i)}function Se(e){return e&&e._delegate?e._delegate:e}var y=class{constructor(t,n,r){this.name=t,this.instanceFactory=n,this.type=r,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(t){return this.instantiationMode=t,this}setMultipleInstances(t){return this.multipleInstances=t,this}setServiceProps(t){return this.serviceProps=t,this}setInstanceCreatedCallback(t){return this.onInstanceCreated=t,this}};var T="[DEFAULT]";var Ce=class{constructor(t,n){this.name=t,this.container=n,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(t){let n=this.normalizeInstanceIdentifier(t);if(!this.instancesDeferred.has(n)){let r=new se;if(this.instancesDeferred.set(n,r),this.isInitialized(n)||this.shouldAutoInitialize())try{let i=this.getOrInitializeService({instanceIdentifier:n});i&&r.resolve(i)}catch{}}return this.instancesDeferred.get(n).promise}getImmediate(t){var n;let r=this.normalizeInstanceIdentifier(t==null?void 0:t.identifier),i=(n=t==null?void 0:t.optional)!==null&&n!==void 0?n:!1;if(this.isInitialized(r)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:r})}catch(s){if(i)return null;throw s}else{if(i)return null;throw Error(`Service ${this.name} is not available`)}}getComponent(){return this.component}setComponent(t){if(t.name!==this.name)throw Error(`Mismatching Component ${t.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=t,!!this.shouldAutoInitialize()){if(xn(t))try{this.getOrInitializeService({instanceIdentifier:T})}catch{}for(let[n,r]of this.instancesDeferred.entries()){let i=this.normalizeInstanceIdentifier(n);try{let s=this.getOrInitializeService({instanceIdentifier:i});r.resolve(s)}catch{}}}}clearInstance(t=T){this.instancesDeferred.delete(t),this.instancesOptions.delete(t),this.instances.delete(t)}delete(){return u(this,null,function*(){let t=Array.from(this.instances.values());yield Promise.all([...t.filter(n=>"INTERNAL"in n).map(n=>n.INTERNAL.delete()),...t.filter(n=>"_delete"in n).map(n=>n._delete())])})}isComponentSet(){return this.component!=null}isInitialized(t=T){return this.instances.has(t)}getOptions(t=T){return this.instancesOptions.get(t)||{}}initialize(t={}){let{options:n={}}=t,r=this.normalizeInstanceIdentifier(t.instanceIdentifier);if(this.isInitialized(r))throw Error(`${this.name}(${r}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);let i=this.getOrInitializeService({instanceIdentifier:r,options:n});for(let[s,o]of this.instancesDeferred.entries()){let a=this.normalizeInstanceIdentifier(s);r===a&&o.resolve(i)}return i}onInit(t,n){var r;let i=this.normalizeInstanceIdentifier(n),s=(r=this.onInitCallbacks.get(i))!==null&&r!==void 0?r:new Set;s.add(t),this.onInitCallbacks.set(i,s);let o=this.instances.get(i);return o&&t(o,i),()=>{s.delete(t)}}invokeOnInitCallbacks(t,n){let r=this.onInitCallbacks.get(n);if(r)for(let i of r)try{i(t,n)}catch{}}getOrInitializeService({instanceIdentifier:t,options:n={}}){let r=this.instances.get(t);if(!r&&this.component&&(r=this.component.instanceFactory(this.container,{instanceIdentifier:Nn(t),options:n}),this.instances.set(t,r),this.instancesOptions.set(t,n),this.invokeOnInitCallbacks(r,t),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,t,r)}catch{}return r||null}normalizeInstanceIdentifier(t=T){return this.component?this.component.multipleInstances?t:T:t}shouldAutoInitialize(){return!!this.component&&this.component.instantiationMode!=="EXPLICIT"}};function Nn(e){return e===T?void 0:e}function xn(e){return e.instantiationMode==="EAGER"}var ce=class{constructor(t){this.name=t,this.providers=new Map}addComponent(t){let n=this.getProvider(t.name);if(n.isComponentSet())throw new Error(`Component ${t.name} has already been registered with ${this.name}`);n.setComponent(t)}addOrOverwriteComponent(t){this.getProvider(t.name).isComponentSet()&&this.providers.delete(t.name),this.addComponent(t)}getProvider(t){if(this.providers.has(t))return this.providers.get(t);let n=new Ce(t,this);return this.providers.set(t,n),n}getProviders(){return Array.from(this.providers.values())}};var kn=[],h=function(e){return e[e.DEBUG=0]="DEBUG",e[e.VERBOSE=1]="VERBOSE",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.E
vendor: 3,280 bytes, line 1
1RROR=4]="ERROR",e[e.SILENT=5]="SILENT",e}(h||{}),Pn={debug:h.DEBUG,verbose:h.VERBOSE,info:h.INFO,warn:h.WARN,error:h.ERROR,silent:h.SILENT},Mn=h.INFO,Bn={[h.DEBUG]:"log",[h.VERBOSE]:"log",[h.INFO]:"info",[h.WARN]:"warn",[h.ERROR]:"error"},Fn=(e,t,...n)=>{if(t<e.logLevel)return;let r=new Date().toISOString(),i=Bn[t];if(i)console[i](`[${r}] ${e.name}:`,...n);else throw new Error(`Attempted to log a message with an invalid logType (value: ${t})`)},F=class{constructor(t){this.name=t,this._logLevel=Mn,this._logHandler=Fn,this._userLogHandler=null,kn.push(this)}get logLevel(){return this._logLevel}set logLevel(t){if(!(t in h))throw new TypeError(`Invalid value "${t}" assigned to \`logLevel\``);this._logLevel=t}setLogLevel(t){this._logLevel=typeof t=="string"?Pn[t]:t}get logHandler(){return this._logHandler}set logHandler(t){if(typeof t!="function")throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=t}get userLogHandler(){return this._userLogHandler}set userLogHandler(t){this._userLogHandler=t}debug(...t){this._userLogHandler&&this._userLogHandler(this,h.DEBUG,...t),this._logHandler(this,h.DEBUG,...t)}log(...t){this._userLogHandler&&this._userLogHandler(this,h.VERBOSE,...t),this._logHandler(this,h.VERBOSE,...t)}info(...t){this._userLogHandler&&this._userLogHandler(this,h.INFO,...t),this._logHandler(this,h.INFO,...t)}warn(...t){this._userLogHandler&&this._userLogHandler(this,h.WARN,...t),this._logHandler(this,h.WARN,...t)}error(...t){this._userLogHandler&&this._userLogHandler(this,h.ERROR,...t),this._logHandler(this,h.ERROR,...t)}};var Ln=(e,t)=>t.some(n=>e instanceof n),It,vt;function $n(){return It||(It=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function jn(){return vt||(vt=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}var Et=new WeakMap,Te=new WeakMap,_t=new WeakMap,De=new WeakMap,Re=new WeakMap;function Vn(e){let t=new Promise((n,r)=>{let i=()=>{e.removeEventListener("success",s),e.removeEventListener("error",o)},s=()=>{n(v(e.result)),i()},o=()=>{r(e.error),i()};e.addEventListener("success",s),e.addEventListener("error",o)});return t.then(n=>{n instanceof IDBCursor&&Et.set(n,e)}).catch(()=>{}),Re.set(t,e),t}function zn(e){if(Te.has(e))return;let t=new Promise((n,r)=>{let i=()=>{e.removeEventListener("complete",s),e.removeEventListener("error",o),e.removeEventListener("abort",o)},s=()=>{n(),i()},o=()=>{r(e.error||new DOMException("AbortError","AbortError")),i()};e.addEventListener("complete",s),e.addEventListener("error",o),e.addEventListener("abort",o)});Te.set(e,t)}var Oe={get(e,t,n){if(e instanceof IDBTransaction){if(t==="done")return Te.get(e);if(t==="objectStoreNames")return e.objectStoreNames||_t.get(e);if(t==="store")return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return v(e[t])},set(e,t,n){return e[t]=n,!0},has(e,t){return e instanceof IDBTransaction&&(t==="done"||t==="store")?!0:t in e}};function At(e){Oe=e(Oe)}function Un(e){return e===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(t,...n){let r=e.call(le(this),t,...n);return _t.set(r,t.sort?t.sort():[t]),v(r)}:jn().includes(e)?function(...t){return e.apply(le(this),t),v(Et.get(this))}
vendor: 2,960 bytes, line 1
1:function(...t){return v(e.apply(le(this),t))}}function Hn(e){return typeof e=="function"?Un(e):(e instanceof IDBTransaction&&zn(e),Ln(e,$n())?new Proxy(e,Oe):e)}function v(e){if(e instanceof IDBRequest)return Vn(e);if(De.has(e))return De.get(e);let t=Hn(e);return t!==e&&(De.set(e,t),Re.set(t,e)),t}var le=e=>Re.get(e);function ue(e,t,{blocked:n,upgrade:r,blocking:i,terminated:s}={}){let o=indexedDB.open(e,t),a=v(o);return r&&o.addEventListener("upgradeneeded",c=>{r(v(o.result),c.oldVersion,c.newVersion,v(o.transaction),c)}),n&&o.addEventListener("blocked",c=>n(c.oldVersion,c.newVersion,c)),a.then(c=>{s&&c.addEventListener("close",()=>s()),i&&c.addEventListener("versionchange",l=>i(l.oldVersion,l.newVersion,l))}).catch(()=>{}),a}var Wn=["get","getKey","getAll","getAllKeys","count"],qn=["put","add","delete","clear"],Ne=new Map;function St(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&typeof t=="string"))return;if(Ne.get(t))return Ne.get(t);let n=t.replace(/FromIndex$/,""),r=t!==n,i=qn.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!(i||Wn.includes(n)))return;let s=function(o,...a){return u(this,null,function*(){let c=this.transaction(o,i?"readwrite":"readonly"),l=c.store;return r&&(l=l.index(a.shift())),(yield Promise.all([l[n](...a),i&&c.done]))[0]})};return Ne.set(t,s),s}At(e=>ee(Q({},e),{get:(t,n,r)=>St(t,n)||e.get(t,n,r),has:(t,n)=>!!St(t,n)||e.has(t,n)}));var ke=class{constructor(t){this.container=t}getPlatformInfoString(){return this.container.getProviders().map(n=>{if(Gn(n)){let r=n.getImmediate();return`${r.library}/${r.version}`}else return null}).filter(n=>n).join(" ")}};function Gn(e){let t=e.getComponent();return(t==null?void 0:t.type)==="VERSION"}var Pe="@firebase/app",Ct="0.13.2";var A=new F("@firebase/app"),Kn="@firebase/app-compat",Yn="@firebase/analytics-compat",Jn="@firebase/analytics",Zn="@firebase/app-check-compat",Xn="@firebase/app-check",Qn="@firebase/auth",er="@firebase/auth-compat",tr="@firebase/database",nr="@firebase/data-connect",rr="@firebase/database-compat",ir="@firebase/functions",sr="@firebase/functions-compat",or="@firebase/installations",ar="@firebase/installations-compat",cr="@firebase/messaging",lr="@firebase/messaging-compat",ur="@firebase/performance",fr="@firebase/performance-compat",dr="@firebase/remote-config",hr="@firebase/remote-config-compat",pr="@firebase/storage",mr="@firebase/storage-compat",gr="@firebase/firestore",br="@firebase/ai",yr="@firebase/firestore-compat",wr="firebase";var Me="[DEFAULT]",Ir={[Pe]:"fire-core",[Kn]:"fire-core-compat",[Jn]:"fire-analytics",[Yn]:"fire-analytics-compat",[Xn]:"fire-app-check",[Zn]:"fire-app-check-compat",[Qn]:"fire-auth",[er]:"fire-auth-compat",[tr]:"fire-rtdb",[nr]:"fire-data-connect",[rr]:"fire-rtdb-compat",[ir]:"fire-fn",[sr]:"fire-fn-compat",[or]:"fire-iid",[ar]:"fire-iid-compat",[cr]:"fire-fcm",[lr]:"fire-fcm-compat",[ur]:"fire-perf",[fr]:"fire-perf-compat",[dr]:"fire-rc",[hr]:"fire-rc-compat",[pr]:"fire-g
1cs",[mr]:"fire-gcs-compat",[gr]:"fire-fst",[yr]:"fire-fst-compat",[br]:"fire-vertex","fire-js":"fire-js",[wr]:"fire-js-all"};var U=new Map,vr=new Map,Be=new Map;function Dt(e,t){try{e.container.addComponent(t)}catch(n){A.debug(`Component ${t.name} failed to register with FirebaseApp ${e.name}`,n)}}function S(e){let t=e.name;if(Be.has(t))return A.debug(`There were multiple attempts to register component ${t}.`),!1;Be.set(t,e);for(let n of U.values())Dt(n,e);for(let n of vr.values())Dt(n,e);return!0}function L(e,t){let n=e.container.getProvider("heartbeat").getImmediate({optional:!0});return n&&n.triggerHeartbeat(),e.container.getProvider(t)}var Er={"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.","invali
1d-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."},D=new _("app","Firebase",Er);var Fe=class{constructor(t,n,r){this._isDeleted=!1,this._options=Object.assign({},t),this._config=Object.assign({},n),this._name=n.name,this._automaticDataCollectionEnabled=n.automaticDataCollectionEnabled,this._container=r,this.container.addComponent(new y("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(t){this.checkDestroyed(),this._automaticDataCollectionEnabled=t}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(t){this._isDeleted=t}checkDestroyed(){if(this.isDeleted)throw D.create("app-deleted",{appName:this._name})}};function je(e,t={}){let n=e;typeof t!="object"&&(t={name:t});let r=Object.assign({name:Me,automaticDataCollectionEnabled:!0},t),i=r.name;if(typeof i!="string"||!i)throw D.create("bad-app-name",{appName:String(i)});if(n||(n=_e()),!n)throw D.create("no-options");let s=U.get(i);if(s){if(B(n,s.options)&&B(r,s.config))return s;throw D.create("duplicate-app",{appName:i})}let o=new ce(i);for(let c of Be.values())o.addComponent(c);let a=new Fe(n,r,o);return U.set(i,a),a}function W(e=Me){let t=U.get(e);if(!t&&e===Me&&_e())return je();if(!t)throw D.create("no-app",{appName:e});return t}function fe(){return Array.from(U.values())}function m(e,t,n){var r;let i=(r=Ir[e])!==null&&r!==void 0?r:e;n&&(i+=`-${n}`);let s=i.match(/\s|\//),o=t.match(/\s|\//);if(s||o){let a=[`Unable to register library "${i}" with version "${t}":`];s&&a.push(`library name "${i}" contains illegal characters (whitespace or "/")`),s&&o&&a.push("and"),o&&a.push(`version name "${t}" contains illegal characters (whitespace or "/")`),A.warn(a.join(" "));return}S(new y(`${i}-version`,()=>({library:i,version:t}),"VERSION"))}var _r="firebase-heartbeat-database",Ar=1,H="firebase-heartbeat-store",xe=null;function Nt(){return xe||(xe=ue(_r,Ar,{upgrade:(e,t)=>{switch(t){case 0:try{e.createObjectStore(H)}catch(n){console.warn(n)}}}}).catch(e=>{throw D.create("idb-open",{originalErrorMessage:e.message})})),xe}function Sr(e){return u(this,null,function*(){try{let n=(yield Nt()).transaction(H),r=yield n.objectStore(H).get(xt(e));return yield n.done,r}catch(t){if(t instanceof I)A.warn(t.message);else{let n=D.create("idb-get",{originalErrorMessage:t==null?void 0:t.message});A.warn(n.message)}}})}function Tt(e,t){return u(this,null,function*(){try{let r=(yield Nt()).transaction(H,"readwrite");yield r.objectStore(H).put(t,xt(e)),yield r.done}catch(n){if(n instanceof I)A.warn(n.message);else{let r=D.create("idb-set",{originalErrorMessage:n==null?void 0:n.message});A.warn(r.message)}}})}function xt(e){return`${e.name}!${e.options.appId}`}var Cr=1024,Dr=30,Le=class{constructor(t){this.container=t,this._heartbeatsCache=null;let n=this.container.getProvider("app").getImmediate();this._storage=new $e(n),this._heartbeatsCachePromise=this._storage.read().then(r=>(this._heartbeatsCache=r,r))}triggerHeartbeat(){return u(this,null,function*(){var t,n;try{let i=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),s=Ot();if(((t=this._heartbeatsCache)===null||t===void 0?void 0:t.heartbeats)==null&&(this._heartbeatsCache=yield this._heartbeatsCachePromise,((n=this._heartbeatsCache)===null||n===void 0?void 0:n.heartbeats)==null)||this._heartbeatsCache.lastSentHeartbeatDate===s||this._heartbeatsCache.heartbeats.some(o=>o.date===s))return;if(this._heartbeatsCache.heartbeats.push({date:s,agent:i}),this._heartbeatsCache.heartbeats.length>Dr){let o=Or(this._heartbeatsCache.heartbeats);this._heartbeatsCache.heartbeats.splice(o,1)}return this._storage.overwrite(this._heartbeatsCache)}catch(r){A.warn(r)}})}getHeartbeatsHeader(){return u(this,null,function*(){var t;try{if(this._heartbeatsCache===null&&(yield this._heartbeatsCachePromise),((t=this._heartbeatsCache)===null||t===void 0?void 0:t.heartbeats)==null||this._heartbeatsCache.heartbeats.length===0)return"";let n=Ot(),{heartbeatsToSend:r,unsentEntries:i}=Tr(this._heartbeatsCache.heartbeats),s=Ee(JSON.stringify({version:2,heartbeats:r}));return this._heartbeatsCache.lastSentHeartbeatDate=n,i.length>0?(this._heartbeatsCache.heartbeats=i,yield this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),s}catch(n){return A.warn(n),""}})}};function Ot(){return new Date().toISOString().substring(0,10)}function Tr(e,t=Cr){let n=[],r=e.slice();for(let i of e){let s=n.find(o=>o.agent===i.agent);if(s){if(s.dates.push(i.date),Rt(n)>t){s.dates.pop();break}}else if(n.push({agent:i.agent,dates:[i.date]}),Rt(n)>t){n.pop();break}r=r.slice(1)}return{heartbeatsToSend:n,unsentEntries:r}}var $e=class{constructor(t){this.app=t,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}runIndexedDBEnvironmentCheck(){return u(this,null,function*(){return oe()?ae().then(()=>!0).catch(()=>!1):!1})}read(){return u(this,null,function*(){if(yield this._canUseIndexedDBPromise){let n=yield Sr(this.app);return n!=null&&n.heartbeats?n:{heartbeats:[]}}else return{heartbeats:[]}})}overwrite(t){return u(this,null,function*(){var n;if(yield this._canUseIndexedDBPromise){let i=yield this.read();return Tt(this.app,{lastSentHeartbeatDate:(n=t.lastSentHeartbeatDate)!==null&&n!==void 0?n:i.lastSentHeartbeatDate,heartbeats:t.heartbeats})}else return})}add(t){return u(this,null,function*(){var n;if(yield this._canUseIndexedDBPromise){let i=yield this.read();return Tt(this.app,{lastSentHeartbeatDate:(n=t.lastSentHeartbeatDate)!==null&&n!==void 0?n:i.lastSentHeartbeatDate,heartbeats:[...i.heartbeats,...t.heartbeats]})}else return})}};function Rt(e){return Ee(JSON.stringify({version:2,heartbeats:e})).length}function Or(e){if(e.length===0)return-1;let t=0,n=e[0].date;for(let r=1;r<e.length;r++)e[r].date<n&&(n=e[r].date,t=r);return t}function Rr(e){S(new y("platform-logger",t=>new ke(t),"PRIVATE")),S(new y("heartbeat",t=>new Le(t),"PRIVATE")),m(Pe,Ct,e),m(Pe,Ct,"esm2017"),m("fire-js","")}Rr("");var Nr="firebase",xr="11.10.0";m(Nr,xr,"app");function Ve(e){e===void 0&&(ut(Ve),e=E(M));let t=e.get(ie);return n=>new V(r=>{let i=t.add(),s=!1;function o(){s||(i(),s=!0)}let a=n.subscribe({next:c=>{r.next(c),o()},complete:()=>{r.complete(),o()},error:c=>{r.error(c),o()}});return a.add(()=>{r.unsubscribe(),o()}),a})}var q=new ft("ANGULARFIRE2_VERSION");function Mt(e,t,n){if(t){if(t.length===1)return t[0];let s=t.filter(o=>o.app===n);if(s.length===1)return s[0]}return n.container.getProvider(e).getImmediate({optional:!0})}var Bt=(e,t)=>
1{let n=t?[t]:fe(),r=[];return n.forEach(i=>{i.container.getProvider(e).instances.forEach(o=>{r.includes(o)||r.push(o)})}),r},$=function(e){return e[e.SILENT=0]="SILENT",e[e.WARN=1]="WARN",e[e.VERBOSE=2]="VERBOSE",e}($||{}),kt=we()&&typeof Zone<"u"?$.WARN:$.SILENT;var de=class{zone;delegate;constructor(t,n=at){this.zone=t,this.delegate=n}now(){return this.delegate.now()}schedule(t,n,r){let i=this.zone,s=function(o){i?i.runGuarded(()=>{t.apply(this,[o])}):t.apply(this,[o])};return this.delegate.schedule(s,n,r)}},G=(()=>{let t=class t{outsideAngular;insideAngular;constructor(){let r=E(C);this.outsideAngular=r.runOutsideAngular(()=>new de(typeof Zone>"u"?void 0:Zone.current)),this.insideAngular=r.run(()=>new de(typeof Zone>"u"?void 0:Zone.current,ot))}};j(t,"\u0275fac",function(i){return new(i||t)}),j(t,"\u0275prov",ct({token:t,factory:t.\u0275fac,providedIn:"root"}));let e=t;return e})(),Pt=!1;function kr(e,t){!Pt&&(kt>$.SILENT||we())&&(Pt=!0,console.warn("Calling Firebase APIs outside of an Injection context may destabilize your application leading to subtle change-detection and hydration bugs. Find more at https://github.com/angular/angularfire/blob/main/docs/zones.md")),kt>=t&&console.warn(`Firebase API called outside injection context: ${e.name}`)}function Pr(e){let t=E(C,{optional:!0});return t?t.runOutsideAngular(()=>e()):e()}function O(e){let t=E(C,{optional:!0});return t?t.run(()=>e()):e()}var Mr=(e,t,n)=>(...r)=>(t&&setTimeout(t,0),re(n,()=>O(()=>e.apply(void 0,r)))),K=(e,t,n)=>(n||(n=t?$.WARN:$.VERBOSE),function(){let r,i=arguments,s,o,a;try{s=E(G),o=E(ie),a=E(lt)}catch{return kr(e,n),e.apply(this,i)}for(let l=0;l<arguments.length;l++)typeof i[l]=="function"&&(t&&(r||(r=O(()=>o.add()))),i[l]=Mr(i[l],r,a));let c=Pr(()=>e.apply(this,i));return t?c instanceof V?c.pipe(ye(s.outsideAngular),be(s.insideAngular),Ve(a)):c instanceof Promise?O(()=>new Promise((l,d)=>{o.run(()=>c).then(f=>re(a,()=>O(()=>l(f))),f=>re(a,()=>O(()=>d(f))))})):typeof c=="function"&&r?function(){return setTimeout(r,0),c.apply(this,arguments)}:O(()=>c):c instanceof V?c.pipe(ye(s.outsideAngular),be(s.insideAngular)):O(()=>c)});var R=class{constructor(t){return t}},Y=class{constructor(){return fe()}};function Br(e){return e&&e.length===1?e[0]:new R(W())}var ze=new te("angularfire2._apps"),Fr={provide:R,useFactory:Br,deps:[[new P,ze]]},Lr={provide:Y,deps:[[new P,ze]]};function $r(e){return(t,n)=>{let r=n.get(z);m("angularfire",q.full,"core"),m("angularfire",q.full,"app"),m("angular",dt.full,r.toString());let i=t.runOutsideAngular(()=>e(n));return new R(i)}}function fo(e,...t){return ne([Fr,Lr,{provide:ze,useFactory:$r(e),multi:!0,deps:[C,M,G,...t]}])}var ho=K(je,!0);var $t="@firebase/installations",qe="0.6.18";var jt=1e4,Vt=`w:${qe}`,zt="FIS_v2",jr="https://firebaseinstallations.googleapis.com/v1",Vr=60*60*1e3,zr="installations",Ur="Installations";var Hr={"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."},x=new _(zr,Ur,Hr);function Ut(e){return e instanceof I&&e.code.includes("request-failed")}function Ht({projectId:e}){return`${jr}/projects/${e}/installations`}function Wt(e){return{token:e.token,requestStatus:2,expiresIn:qr(e.expiresIn),creationTime:Date.now()}}function qt(e,t){return u(this,null,function*(){let r=(yield t.json()).error;return x.create("request-failed",{requestName:e,serverCode:r.code,serverMessage:r.message,serverStatus:r.status})})}function Gt({apiKey:e}){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":e})}function Wr(e,{refreshToken:t}){let n=Gt(e);return n.append("Authorization",Gr(t)),n}function Kt(e){return u(this,null,function*(){let t=yield e();return t.status>=500&&t.status<600?e():t})}function qr(e){return Number(e.replace("s","000"))}function Gr(e){return`${zt} ${e}`}function Kr(r,i){return u(this,arguments,function*({appConfig:e,heartbeatServiceProvider:t},{fid:n}){let s=Ht(e),o=Gt(e),a=t.getImmediate({optional:!0});if(a){let f=yield a.getHeartbeatsHeader();f&&o.append("x-firebase-client",f)}let c={fid:n,authVersion:zt,appId:e.appId,sdkVersion:Vt},l={method:"POST",headers:o,body:JSON.stringify(c)},d=yield Kt(()=>fetch(s,l));if(d.ok){let f=yield d.json();return{fid:f.fid||n,registrationStatus:2,refreshToken:f.refreshToken,authToken:Wt(f.authToken)}}else throw yield qt("Create Installation",d)})}function Yt(e){return new Promise(t=>{setTimeout(t,e)})}function Yr(e){return btoa(String.fromCharCode(...e)).replace(/\+/g,"-").replace(/\//g,"_")}var Jr=/^[cdef][\w-]{21}$/,We="";function Zr(){try{let e=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(e),e[0]=112+e[0]%16;let n=Xr(e);return Jr.test(n)?n:We}catch{return We}}function Xr(e){return Yr(e).substr(0,22)}function pe(e){return`${e.appName}!${e.appId}`}var Jt=new Map;function Zt(e,t){let n=pe(e);Xt(n,t),Qr(n,t)}function Xt(e,t){let n=Jt.get(e);if(n)for(let r of n)r(t)}function Qr(e,t){let n=ei();n&&n.postMessage({key:e,fid:t}),ti()}var N=null;function ei(){return!N&&"BroadcastChannel"in self&&(N=new BroadcastChannel("[Firebase] FID Change"),N.onmessage=e=>{Xt(e.data.key,e.data.fid)}),N}function ti(){Jt.size===0&&N&&(N.close(),N=null)}var ni="firebase-installations-database",ri=1,k="firebase-installations-store",Ue=null;function Ge(){return Ue||(Ue=ue(ni,ri,{upgrade:(e,t)=>{switch(t){case 0:e.createObjectStore(k)}}})),Ue}function he(e,t){return u(this,null,function*(){let n=pe(e),i=(yield Ge()).transaction(k,"readwrite"),s=i.objectStore(k),o=yield s.get(n);return yield s.put(t,n),yield i.done,(!o||o.fid!==t.fid)&&Zt(e,t.fid),t})}function Qt(e){return u(this,null,function*(){let t=pe(e),r=(yield Ge()).transaction(k,"readwrite");yield r.objectStore(k).delete(t),yield r.done})}function me(e,t){return u(this,null,function*(){let n=pe(e),i=(yield Ge()).transaction(k,"readwrite"),s=i.objectStore(k),o=yield s.get(n),a=t(o);return a===void 0?yield s.delete(n):yield s.put(a,n),yield i.done,a&&(!o||o.fid!==a.fid)&&Zt(e,a.fid),a})}function Ke(e){return u(this,null,function*(){let t,n=yield me(e.appConfig,r=>{let i=ii(r),s=si(e,i);return t=s.registrationPromise,s.installationEntry});return n.fid===We?{installationEntry:yield t}:{installationEntry:n,registrationPromise:t}})}function ii(e){let t=e||{fid:Zr(),registrationStatus:0};return en(t)}function si(e,t){if(t.registrationStatus===0){if(!navigator.onLine){let i=Promise.reject(x.create("app-offline"));return{installationEntry:t,registrationPromise:i}}let n={fid:t.fid,registrationStatus:1,registrationTime:Date.now()},r=oi(e,n);return{installationEntry:n,registrationPromise:r}}else return t.registrationStatus===1?{installationEntry:t,registrationPromise:ai(e)}:{installationEntry:t}}function oi(e,t){return u(this,null,function*(){try{let n=yield Kr(e,t);return he(e.appConfig,n)}catch(n){throw Ut(n)&&n.customData.serverCode===409?yield Qt(e.appConfig):yield he(e.appConfig,{fid:t.fid,registrationStatus:0}),n}})}function ai(e){return u(this,null,function*(){let t=yield Ft(e.appConfig);for(;t.registrationStatus===1;)yield Yt(100),t=yield Ft(e.appConfig);if(t.registrationStatus===0){let{installationEntry:n,registrationPromise:r}=yield Ke(e);return r||n}return t})}function Ft(e){return me(e,t=>{if(!t)throw x.create("installation-not-found");return en(t)})}function en(e){return ci(e)?{fid:e.fid,registrationStatus:0}:e}function ci(e){return e.registrationStatus===1&&e.registrationTime+jt<Date.now()}function li(r,i){return u(this,arguments,function*({appConfig:e,heartbeatServiceProvider:t},n){let s=ui(e,n),o=Wr(e,n),a=t.getImmediate({optional:!0});if(a){let f=yield a.getHeartbeatsHeader();f&&o.append("x-firebase-client",f)}let c={installation:{sdkVersion:Vt,appId:e.appId}},l={method:"POST",headers:o,body:JSON.stringify(c)},d=yield Kt(()=>fetch(s,l));if(d.ok){let f=yield d.json();return Wt(f)}
1else throw yield qt("Generate Auth Token",d)})}function ui(e,{fid:t}){return`${Ht(e)}/${t}/authTokens:generate`}function Ye(e,t=!1){return u(this,null,function*(){let n,r=yield me(e.appConfig,s=>{if(!tn(s))throw x.create("not-registered");let o=s.authToken;if(!t&&hi(o))return s;if(o.requestStatus===1)return n=fi(e,t),s;{if(!navigator.onLine)throw x.create("app-offline");let a=mi(s);return n=di(e,a),a}});return n?yield n:r.authToken})}function fi(e,t){return u(this,null,function*(){let n=yield Lt(e.appConfig);for(;n.authToken.requestStatus===1;)yield Yt(100),n=yield Lt(e.appConfig);let r=n.authToken;return r.requestStatus===0?Ye(e,t):r})}function Lt(e){return me(e,t=>{if(!tn(t))throw x.create("not-registered");let n=t.authToken;return gi(n)?Object.assign(Object.assign({},t),{authToken:{requestStatus:0}}):t})}function di(e,t){return u(this,null,function*(){try{let n=yield li(e,t),r=Object.assign(Object.assign({},t),{authToken:n});return yield he(e.appConfig,r),n}catch(n){if(Ut(n)&&(n.customData.serverCode===401||n.customData.serverCode===404))yield Qt(e.appConfig);else{let r=Object.assign(Object.assign({},t),{authToken:{requestStatus:0}});yield he(e.appConfig,r)}throw n}})}function tn(e){return e!==void 0&&e.registrationStatus===2}function hi(e){return e.requestStatus===2&&!pi(e)}function pi(e){let t=Date.now();return t<e.creationTime||e.creationTime+e.expiresIn<t+Vr}function mi(e){let t={requestStatus:1,requestTime:Date.now()};return Object.assign(Object.assign({},e),{authToken:t})}function gi(e){return e.requestStatus===1&&e.requestTime+jt<Date.now()}function bi(e){return u(this,null,function*(){let t=e,{installationEntry:n,registrationPromise:r}=yield Ke(t);return r?r.catch(console.error):Ye(t).catch(console.error),n.fid})}function yi(e,t=!1){return u(this,null,function*(){let n=e;return yield wi(n),(yield Ye(n,t)).token})}function wi(e){return u(this,null,function*(){let{registrationPromise:t}=yield Ke(e);t&&(yield t)})}function Ii(e){if(!e||!e.options)throw He("App Configuration");if(!e.name)throw He("App Name");let t=["projectId","apiKey","appId"];for(let n of t)if(!e.options[n])throw He(n);return{appName:e.name,projectId:e.options.projectId,apiKey:e.options.apiKey,appId:e.options.appId}}function He(e){return x.create("missing-app-config-values",{valueName:e})}var nn="installations",vi="installations-internal",Ei=e=>{let t=e.getProvider("app").getImmediate(),n=Ii(t),r=L(t,"heartbeat");return{app:t,appConfig:n,heartbeatServiceProvider:r,_delete:()=>Promise.resolve()}},_i=e=>{let t=e.getProvider("app").getImmediate(),n=L(t,nn).getImmediate();return{getId:()=>bi(n),getToken:i=>yi(n,i)}};function Ai(){S(new y(nn,Ei,"PUBLIC")),S(new y(vi,_i,"PRIVATE"))}Ai();m($t,qe);m($t,qe,"esm2017");var ge="analytics",Si="firebase_id",Ci="origin",Di=60*1e3,Ti="https://firebase.googleapis.com/v1alpha/projects/-/apps/{app-id}/webConfig",nt="https://www.googletagmanager.com/gtag/js";var b=new F("@firebase/analytics");var Oi={"already-exists":"A Firebase Analytics instance with the appId {$id} already exists. Only one Firebase Analytics instance can be created for each appId.","already-initialized":"initializeAnalytics() cannot be called again with different options than those it was initially called with. It can be called again with the same options to return the existing instance, or getAnalytics() can be used to get a reference to the already-initialized instance.","already-initialized-settings":"Firebase Analytics has already been initialized.settings() must be called before initializing any Analytics instanceor it will have no effect.","interop-component-reg-failed":"Firebase Analytics Interop Component failed to instantiate: {$reason}","invalid-analytics-context":"Firebase Analytics is not supported in this environment. Wrap initialization of analytics in analytics.isSupported() to prevent initialization in unsupported environments. Details: {$errorInfo}","indexeddb-unavailable":"IndexedDB unavailable or restricted in this environment. Wrap initialization of analytics in analytics.isSupported() to prevent initialization in unsupported environments. Details: {$errorInfo}","fetch-throttle":"The config fetch request timed out while in an exponential backoff state. Unix timestamp in milliseconds when fetch request throttling ends: {$throttleEndTimeMillis}.","config-fetch-failed":"Dynamic config fetch failed: [{$httpStatus}] {$responseMessage}","no-api-key":'The "apiKey" field is empty in the local Firebase config. Firebase Analytics requires this field tocontain a valid API key.',"no-app-id":'The "appId" field is empty in the local Firebase config. Firebase Analytics requires this field tocontain a valid app ID.',"no-client-id":'The "client_id" field is empty.',"invali
1d-gtag-resource":"Trusted Types detected an invalid gtag resource: {$gtagURL}."},w=new _("analytics","Analytics",Oi);function Ri(e){if(!e.startsWith(nt)){let t=w.create("invalid-gtag-resource",{gtagURL:e});return b.warn(t.message),""}return e}function un(e){return Promise.all(e.map(t=>t.catch(n=>n)))}function Ni(e,t){let n;return window.trustedTypes&&(n=window.trustedTypes.createPolicy(e,t)),n}function xi(e,t){let n=Ni("firebase-js-sdk-policy",{createScriptURL:Ri}),r=document.createElement("script"),i=`${nt}?l=${e}&id=${t}`;r.src=n?n==null?void 0:n.createScriptURL(i):i,r.async=!0,document.head.appendChild(r)}function ki(e){let t=[];return Array.isArray(window[e])?t=window[e]:window[e]=t,t}function Pi(e,t,n,r,i,s){return u(this,null,function*(){let o=r[i];try{if(o)yield t[o];else{let c=(yield un(n)).find(l=>l.measurementId===i);c&&(yield t[c.appId])}}catch(a){b.error(a)}e("config",i,s)})}function Mi(e,t,n,r,i){return u(this,null,function*(){try{let s=[];if(i&&i.send_to){let o=i.send_to;Array.isArray(o)||(o=[o]);let a=yield un(n);for(let c of o){let l=a.find(f=>f.measurementId===c),d=l&&t[l.appId];if(d)s.push(d);else{s=[];break}}}s.length===0&&(s=Object.values(t)),yield Promise.all(s),e("event",r,i||{})}catch(s){b.error(s)}})}function Bi(e,t,n,r){function i(s,...o){return u(this,null,function*(){try{if(s==="event"){let[a,c]=o;yield Mi(e,t,n,a,c)}else if(s==="config"){let[a,c]=o;yield Pi(e,t,n,r,a,c)}else if(s==="consent"){let[a,c]=o;e("consent",a,c)}else if(s==="get"){let[a,c,l]=o;e("get",a,c,l)}else if(s==="set"){let[a]=o;e("set",a)}else e(s,...o)}catch(a){b.error(a)}})}return i}function Fi(e,t,n,r,i){let s=function(...o){window[r].push(arguments)};return window[i]&&typeof window[i]=="function"&&(s=window[i]),window[i]=Bi(s,e,t,n),{gtagCore:s,wrappedGtag:window[i]}}function Li(e){let t=window.document.getElementsByTagName("script");for(let n of Object.values(t))if(n.src&&n.src.includes(nt)&&n.src.includes(e))return n;return null}var $i=30,ji=1e3,Ze=class{constructor(t={},n=ji){this.throttleMetadata=t,this.intervalMillis=n}getThrottleMetadata(t){return this.throttleMetadata[t]}setThrottleMetadata(t,n){this.throttleMetadata[t]=n}deleteThrottleMetadata(t){delete this.throttleMetadata[t]}},fn=new Ze;function Vi(e){return new Headers({Accept:"application/json","x-goog-api-key":e})}function zi(e){return u(this,null,function*(){var t;let{appId:n,apiKey:r}=e,i={method:"GET",headers:Vi(r)},s=Ti.replace("{app-id}",n),o=yield fetch(s,i);if(o.status!==200&&o.status!==304){let a="";try{let c=yield o.json();!((t=c.error)===null||t===void 0)&&t.message&&(a=c.error.message)}catch{}throw w.create("config-fetch-failed",{httpStatus:o.status,responseMessage:a})}return o.json()})}function Ui(r){return u(this,arguments,function*(e,t=fn,n){let{appId:i,apiKey:s,measurementId:o}=e.options;if(!i)throw w.create("no-app-id");if(!s){if(o)return{measurementId:o,appId:i};throw w.create("no-api-key")}let a=t.getThrottleMetadata(i)||{backoffCount:0,throttleEndTimeMillis:Date.now()},c=new Xe;return setTimeout(()=>u(null,null,function*(){c.abort()}),n!==void 0?n:Di),dn({appId:i,apiKey:s,measurementId:o},a,c,t)})}function dn(s,o,a){return u(this,arguments,function*(e,{throttleEndTimeMillis:t,backoffCount:n},r,i=fn){var c;let{appId:l,measurementId:d}=e;try{yield Hi(r,t)}catch(f){if(d)return b.warn(`Timed out fetching this Firebase app's measurement ID from the server. Falling back to the measurement ID ${d} provided in the "measurementId" field in the local Firebase config. [${f==null?void 0:f.message}]`),{appId:l,measurementId:d};throw f}try{let f=yield zi(e);return i.deleteThrottleMetadata(l),f}catch(f){let p=f;if(!Wi(p)){if(i.deleteThrottleMetadata(l),d)return b.warn(`Failed to fetch this Firebase app's measurement ID from the server. Falling back to the measurement ID ${d} provided in the "measurementId" field in the local Firebase config. [${p==null?void 0:p.message}]`),{appId:l,measurementId:d};throw f}let g=Number((c=p==null?void 0:p.customData)===null||c===void 0?void 0:c.httpStatus)===503?Ae(n,i.intervalMillis,$i):Ae(n,i.intervalMillis),X={throttleEndTimeMillis:Date.now()+g,backoffCount:n+1};return i.setThrottleMetadata(l,X),b.debug(`Calling attemptFetch again in ${g} millis`),dn(e,X,r,i)}})}function Hi(e,t){return new Promise((n,r)=>{let i=Math.max(t-Date.now(),0),s=setTimeout(n,i);e.addEventListener(()=>{clearTimeout(s),r(w.create("fetch-throttle",{throttleEndTimeMillis:t}))})})}function Wi(e){if(!(e instanceof I)||!e.customData)return!1;let t=Number(e.customData.httpStatus);return t===429||t===500||t===503||t===504}var Xe=class{constructor(){this.listeners=[]}addEventListener(t){this.listeners.push(t)}
1abort(){this.listeners.forEach(t=>t())}};var Qe;function qi(e,t,n,r,i){return u(this,null,function*(){if(i&&i.global){e("event",n,r);return}else{let s=yield t,o=Object.assign(Object.assign({},r),{send_to:s});e("event",n,o)}})}var et;function Gi(e){et=e}function Ki(e){Qe=e}function Yi(){return u(this,null,function*(){if(oe())try{yield ae()}catch(e){return b.warn(w.create("indexeddb-unavailable",{errorInfo:e==null?void 0:e.toString()}).message),!1}else return b.warn(w.create("indexeddb-unavailable",{errorInfo:"IndexedDB is not available in this environment."}).message),!1;return!0})}function Ji(e,t,n,r,i,s,o){return u(this,null,function*(){var a;let c=Ui(e);c.then(g=>{n[g.measurementId]=g.appId,e.options.measurementId&&g.measurementId!==e.options.measurementId&&b.warn(`The measurement ID in the local Firebase config (${e.options.measurementId}) does not match the measurement ID fetched from the server (${g.measurementId}). To ensure analytics events are always sent to the correct Analytics property, update the measurement ID field in the local config or remove it from the local config.`)}).catch(g=>b.error(g)),t.push(c);let l=Yi().then(g=>{if(g)return r.getId()}),[d,f]=yield Promise.all([c,l]);Li(s)||xi(s,d.measurementId),et&&(i("consent","default",et),Gi(void 0)),i("js",new Date);let p=(a=o==null?void 0:o.config)!==null&&a!==void 0?a:{};return p[Ci]="firebase",p.update=!0,f!=null&&(p[Si]=f),i("config",d.measurementId,p),Qe&&(i("set",Qe),Ki(void 0)),d.measurementId})}var tt=class{constructor(t){this.app=t}_delete(){return delete J[this.app.options.appId],Promise.resolve()}},J={},rn=[],sn={},Je="dataLayer",Zi="gtag",on,hn,an=!1;function Xi(){let e=[];
1if(yt()&&e.push("This is a browser extension environment."),wt()||e.push("Cookies are not available."),e.length>0){let t=e.map((r,i)=>`(${i+1}) ${r}`).join(" "),n=w.create("invalid-analytics-context",{errorInfo:t});b.warn(n.message)}}function Qi(e,t,n){Xi();let r=e.options.appId;if(!r)throw w.create("no-app-id");if(!e.options.apiKey)if(e.options.measurementId)b.warn(`The "apiKey" field is empty in the local Firebase config. This is needed to fetch the latest measurement ID for this Firebase app. Falling back to the measurement ID ${e.options.measurementId} provided in the "measurementId" field in the local Firebase config.`);else throw w.create("no-api-key");if(J[r]!=null)throw w.create("already-exists",{id:r});if(!an){ki(Je);let{wrappedGtag:s,gtagCore:o}=Fi(J,rn,sn,Je,Zi);hn=s,on=o,an=!0}return J[r]=Ji(e,rn,sn,t,on,Je,n),new tt(e)}function pn(e=W()){e=Se(e);let t=L(e,ge);return t.isInitialized()?t.getImmediate():mn(e)}function mn(e,t={}){let n=L(e,ge);if(n.isInitialized()){let i=n.getImmediate();if(B(t,n.getOptions()))return i;throw w.create("already-initialized")}return n.initialize({options:t})}function rt(e,t,n,r){e=Se(e),qi(hn,J[e.app.options.appId],t,n,r).catch(i=>b.error(i))}var cn="@firebase/analytics",ln="0.10.17";function es(){S(new y(ge,(t,{options:n})=>{let r=t.getProvider("app").getImmediate(),i=t.getProvider("installations-internal").getImmediate();return Qi(r,i,n)},"PUBLIC")),S(new y("analytics-internal",e,"PRIVATE")),m(cn,ln),m(cn,ln,"esm2017");function e(t){try{let n=t.getProvider(ge).getImmediate();return{logEvent:(r,i,s)=>rt(n,r,i,s)}}catch(n){throw w.create("interop-component-reg-failed",{reason:n})}}}es();var Z=class{constructor(t){return t}},gn="analytics",it=class{constructor(){return Bt(gn)}};var Yo=K(pn,!0);var Jo=K(rt,!1,2);var Zo=Math.floor(Math.random()*(2**32-1))-2**31;var st=new te("angularfire2.analytics-instances");function ts(e,t,n){if(!Ie(n))return null;let r=Mt(gn,e,t);return r&&new Z(r)}function ns(e){return(t,n,r)=>{if(!Ie(r))return null;let i=t.runOutsideAngular(()=>e(n));return new Z(i)}}var rs={provide:it,deps:[[new P,st]]},is={provide:Z,useFactory:ts,deps:[[new P,st],R,z]};function Xo(e,...t){return m("angularfire",q.full,"analytics"),ne([is,rs,{provide:st,useFactory:ns(e),multi:!0,deps:[C,M,z,G,Y,...t]}])}export{fo as a,ho as b,Z as c,Yo as d,Jo as e,Xo as f};
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.