vendor: 4,461 bytes, line 1
1import{c as ft}from"./chunk-STQDFAEN.js";import{$a as A,Aa as X,Cd as be,Ga as ut,Ia as B,Pa as F,Zc as me,b as pe,g as rt,h as it,ha as ot,ia as st,k as he,l as ge,ma as at,oa as J,qa as C,ra as Z,ua as ct,va as Y}from"./chunk-3B4MO5OE.js";import{a as tt,b as nt,h as a}from"./chunk-TYOECRQP.js";var lt=()=>{};var pt=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},_n=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 o=e[n++];t[r++]=String.fromCharCode((i&31)<<6|o&63)}else if(i>239&&i<365){let o=e[n++],s=e[n++],c=e[n++],u=((i&7)<<18|(o&63)<<12|(s&63)<<6|c&63)-65536;t[r++]=String.fromCharCode(55296+(u>>10)),t[r++]=String.fromCharCode(56320+(u&1023))}else{let o=e[n++],s=e[n++];t[r++]=String.fromCharCode((i&15)<<12|(o&63)<<6|s&63)}}return t.join("")},ht={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 o=e[i],s=i+1<e.length,c=s?e[i+1]:0,u=i+2<e.length,l=u?e[i+2]:0,f=o>>2,p=(o&3)<<4|c>>4,w=(c&15)<<2|l>>6,G=l&63;u||(G=64,s||(w=64)),r.push(n[f],n[p],n[w],n[G])}return r.join("")},encodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(pt(e),t)},decodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):_n(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 o=n[e.charAt(i++)],c=i<e.length?n[e.charAt(i)]:0;++i;let l=i<e.length?n[e.charAt(i)]:64;++i;let p=i<e.length?n[e.charAt(i)]:64;if(++i,o==null||c==null||l==null||p==null)throw new we;let w=o<<2|c>>4;if(r.push(w),l!==64){let G=c<<4&240|l>>2;if(r.push(G),p!==64){let vn=l<<6&192|p;r.push(vn)}}}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)}}},we=class extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}},En=function(e){let t=pt(e);return ht.encodeByteArray(t,!0)},ye=function(e){return En(e).replace(/\./g,"")},gt=function(e){try{return ht.decodeString(e,!0)}catch(t){console.error("base64Decode failed: ",t)}return null};function In(){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 An=()=>In().__FIREBASE_DEFAULTS__,Sn=()=>{if(typeof process>"u"||typeof process.env>"u")return;let e=process.env.__FIREBASE_DEFAULTS__;if(e)return JSON.parse(e)},Cn=()=>{if(typeof document>"u")return;let e;try{e=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}let t=e&>(e[1]);return t&&JSON.parse(t)},Tn=()=>{try{return lt()||An()||Sn()||Cn()}catch(e){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${e}`);return}};var ve=()=>{var e;return(e=Tn())===null||e===void 0?void 0:e.config};var Q=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 ee(){try{return typeof indexedDB=="object"}catch{return!1}}function te(){return new Promise((e,t)=>
vendor: 10,880 bytes, line 1
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 o;t(((o=i.error)===null||o===void 0?void 0:o.message)||"")}}catch(n){t(n)}})}function mt(){return!(typeof navigator>"u"||!navigator.cookieEnabled)}var Dn="FirebaseError",y=class e extends Error{constructor(t,n,r){super(n),this.code=t,this.customData=r,this.name=Dn,Object.setPrototypeOf(this,e.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,v.prototype.create)}},v=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}`,o=this.errors[t],s=o?On(o,r):"Error",c=`${this.serviceName}: ${s} (${i}).`;return new y(i,c,r)}};function On(e,t){return e.replace(kn,(n,r)=>{let i=t[r];return i!=null?String(i):`<${r}?>`})}var kn=/\{\$([^}]+)}/g;function ne(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 o=e[i],s=t[i];if(dt(o)&&dt(s)){if(!ne(o,s))return!1}else if(o!==s)return!1}for(let i of r)if(!n.includes(i))return!1;return!0}function dt(e){return e!==null&&typeof e=="object"}var bo=14400*1e3;function $(e){return e&&e._delegate?e._delegate:e}var m=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 _e=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 Q;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?.identifier),i=(n=t?.optional)!==null&&n!==void 0?n:!1;if(this.isInitialized(r)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:r})}catch(o){if(i)return null;throw o}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(Rn(t))try{this.getOrInitializeService({instanceIdentifier:T})}catch{}for(let[n,r]of this.instancesDeferred.entries()){let i=this.normalizeInstanceIdentifier(n);try{let o=this.getOrInitializeService({instanceIdentifier:i});r.resolve(o)}catch{}}}}clearInstance(t=T){this.instancesDeferred.delete(t),this.instancesOptions.delete(t),this.instances.delete(t)}delete(){return a(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[o,s]of this.instancesDeferred.entries()){let c=this.normalizeInstanceIdentifier(o);r===c&&s.resolve(i)}return i}onInit(t,n){var r;let i=this.normalizeInstanceIdentifier(n),o=(r=this.onInitCallbacks.get(i))!==null&&r!==void 0?r:new Set;o.add(t),this.onInitCallbacks.set(i,o);let s=this.instances.get(i);return s&&t(s,i),()=>{o.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 Rn(e){return e.instantiationMode==="EAGER"}var re=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 _e(t,this);return this.providers.set(t,n),n}getProviders(){return Array.from(this.providers.values())}};var Mn=[],d=(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.ERROR=4]="ERROR",e[e.SILENT=5]="SILENT",e})(d||{}),xn={debug:d.DEBUG,verbose:d.VERBOSE,info:d.INFO,warn:d.WARN,error:d.ERROR,silent:d.SILENT},Pn=d.INFO,Bn={[d.DEBUG]:"log",[d.VERBOSE]:"log",[d.INFO]:"info",[d.WARN]:"warn",[d.ERROR]:"error"},Ln=(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})`)},ie=class{constructor(t){this.name=t,this._logLevel=Pn,this._logHandler=Ln,this._userLogHandler=null,Mn.push(this)}get logLevel(){return this._logLevel}set logLevel(t){if(!(t in d))throw new TypeError(`Invalid value "${t}" assigned to \`logLevel\``);this._logLevel=t}setLogLevel(t){this._logLevel=typeof t=="string"?xn[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,d.DEBUG,...t),this._logHandler(this,d.DEBUG,...t)}log(...t){this._userLogHandler&&this._userLogHandler(this,d.VERBOSE,...t),this._logHandler(this,d.VERBOSE,...t)}info(...t){this._userLogHandler&&this._userLogHandler(this,d.INFO,...t),this._logHandler(this,d.INFO,...t)}warn(...t){this._userLogHandler&&this._userLogHandler(this,d.WARN,...t),this._logHandler(this,d.WARN,...t)}error(...t){this._userLogHandler&&this._userLogHandler(this,d.ERROR,...t),this._logHandler(this,d.ERROR,...t)}};var Fn=(e,t)=>t.some(n=>e instanceof n),bt,wt;function $n(){return bt||(bt=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function jn(){return wt||(wt=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}var yt=new WeakMap,Ie=new WeakMap,vt=new WeakMap,Ee=new WeakMap,Se=new WeakMap;function Vn(e){let t=new Promise((n,r)=>{let i=()=>{e.removeEventListener("success",o),e.removeEventListener("error",s)},o=()=>{n(b(e.result)),i()},s=()=>{r(e.error),i()};e.addEventListener("success",o),e.addEventListener("error",s)});return t.then(n=>{n instanceof IDBCursor&&yt.set(n,e)}).catch(()=>{}),Se.set(t,e),t}function Hn(e){if(Ie.has(e))return;let t=new Promise((n,r)=>{let i=()=>{e.removeEventListener("complete",o),e.removeEventListener("error",s),e.removeEventListener("abort",s)},o=()=>{n(),i()},s=()=>{r(e.error||new DOMException("AbortError","AbortError")),i()};e.addEventListener("complete",o),e.addEventListener("error",s),e.addEventListener("abort",s)});Ie.set(e,t)}var Ae={get(e,t,n){if(e instanceof IDBTransaction){if(t==="done")return Ie.get(e);if(t==="objectStoreNames")return e.objectStoreNames||vt.get(e);if(t==="store")return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return b(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 _t(e){Ae=e(Ae)}function Wn(e){return e===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(t,...n){let r=e.call(oe(this),t,...n);return vt.set(r,t.sort?t.sort():[t]),b(r)}:jn().includes(e)?function(...t){return e.apply(oe(this),t),b(yt.get(this))}:function(...t){return b(e.apply(oe(this),t))}}function zn(e){return typeof e=="function"?Wn(e):(e instanceof IDBTransaction&&Hn(e),Fn(e,$n())?new Proxy(e,Ae):e)}function b(e){if(e instanceof IDBRequest)return Vn(e);if(Ee.has(e))return Ee.get(e);let t=zn(e);return t!==e&&(Ee.set(e,t),Se.set(t,e)),t}var oe=e=>Se.get(e);function D(e,t,{blocked:n,upgrade:r,blocking:i,terminated:o}={}){let s=indexedDB.open(e,t),c=b(s);return r&&s.addEventListener("upgradeneeded",u=>{r(b(s.result),u.oldVersion,u.newVersion,b(s.transaction),u)}),n&&s.addEventListener("blocked",u=>n(u.oldVersion,u.newVersion,u)),c.then(u=>{o&&u.addEventListener("close",()=>o()),i&&u.addEventListener("versionchange",l=>i(l.oldVersion,l.newVersion,l))}).catch(()=>{}),c}function se(e,{blocked:t}={}){let n=indexedDB.deleteDatabase(e);return t&&n.addEventListener("blocked",r=>t(r.oldVersion,r)),b(n).then(()=>{})}var Un=["get","getKey","getAll","getAllKeys","count"],Kn=["put","add","delete","clear"],Ce=new Map;function Et(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&typeof t=="string"))return;if(Ce.get(t))return Ce.get(t);let n=t.replace(/FromIndex$/,""),r=t!==n,i=Kn.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!(i||Un.includes(n)))return;let o=function(s,...c){return a(this,null,function*(){let u=this.transaction(s,i?"readwrite":"readonly"),l=u.store;return r&&(l=l.index(c.shift())),(yield Promise.all([l[n](...c),i&&u.done]))[0]})};return Ce.set(t,o),o}_t(e=>nt(tt({},e),{get:(t,n,r)=>Et(t,n)||e.get(t,n,r),has:(t,n)=>!!Et(t,n)||e.has(t,n)}));var De=class{constructor(t){this.container=t}getPlatformInfoString(){return this.container.getProviders().map(n=>{if(qn(n)){let r=n.getImmediate();return`${r.library}/${r.version}`}else return null}).filter(n=>n).join(" ")}};function qn(e){let t=e.getComponent();return t?.type==="VERSION"}var Oe="@firebase/app",It="0.13.2";
1var _=new ie("@firebase/app"),Gn="@firebase/app-compat",Jn="@firebase/analytics-compat",Zn="@firebase/analytics",Yn="@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",or="@firebase/functions-compat",sr="@firebase/installations",ar="@firebase/installations-compat",cr="@firebase/messaging",ur="@firebase/messaging-compat",fr="@firebase/performance",lr="@firebase/performance-compat",dr="@firebase/remote-config",pr="@firebase/remote-config-compat",hr="@firebase/storage",gr="@firebase/storage-compat",mr="@firebase/firestore",br="@firebase/ai",wr="@firebase/firestore-compat",yr="firebase";var ke="[DEFAULT]",vr={[Oe]:"fire-core",[Gn]:"fire-core-compat",[Zn]:"fire-analytics",[Jn]:"fire-analytics-compat",[Xn]:"fire-app-check",[Yn]:"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",[or]:"fire-fn-compat",[sr]:"fire-iid",[ar]:"fire-iid-compat",[cr]:"fire-fcm",[ur]:"fire-fcm-compat",[fr]:"fire-perf",[lr]:"fire-perf-compat",[dr]:"fire-rc",[pr]:"fire-rc-compat",[hr]:"fire-g
1cs",[gr]:"fire-gcs-compat",[mr]:"fire-fst",[wr]:"fire-fst-compat",[br]:"fire-vertex","fire-js":"fire-js",[yr]:"fire-js-all"};var j=new Map,_r=new Map,Ne=new Map;function At(e,t){try{e.container.addComponent(t)}catch(n){_.debug(`Component ${t.name} failed to register with FirebaseApp ${e.name}`,n)}}function E(e){let t=e.name;if(Ne.has(t))return _.debug(`There were multiple attempts to register component ${t}.`),!1;Ne.set(t,e);for(let n of j.values())At(n,e);for(let n of _r.values())At(n,e);return!0}function H(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."},S=new v("app","Firebase",Er);var Re=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 m("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 S.create("app-deleted",{appName:this._name})}};function Pe(e,t={}){let n=e;typeof t!="object"&&(t={name:t});let r=Object.assign({name:ke,automaticDataCollectionEnabled:!0},t),i=r.name;if(typeof i!="string"||!i)throw S.create("bad-app-name",{appName:String(i)});if(n||(n=ve()),!n)throw S.create("no-options");let o=j.get(i);if(o){if(ne(n,o.options)&&ne(r,o.config))return o;throw S.create("duplicate-app",{appName:i})}let s=new re(i);for(let u of Ne.values())s.addComponent(u);let c=new Re(n,r,s);return j.set(i,c),c}function W(e=ke){let t=j.get(e);if(!t&&e===ke&&ve())return Pe();if(!t)throw S.create("no-app",{appName:e});return t}function ae(){return Array.from(j.values())}function h(e,t,n){var r;let i=(r=vr[e])!==null&&r!==void 0?r:e;n&&(i+=`-${n}`);let o=i.match(/\s|\//),s=t.match(/\s|\//);if(o||s){let c=[`Unable to register library "${i}" with version "${t}":`];o&&c.push(`library name "${i}" contains illegal characters (whitespace or "/")`),o&&s&&c.push("and"),s&&c.push(`version name "${t}" contains illegal characters (whitespace or "/")`),_.warn(c.join(" "));return}E(new m(`${i}-version`,()=>({library:i,version:t}),"VERSION"))}var Ir="firebase-heartbeat-database",Ar=1,V="firebase-heartbeat-store",Te=null;function Dt(){return Te||(Te=D(Ir,Ar,{upgrade:(e,t)=>{switch(t){case 0:try{e.createObjectStore(V)}catch(n){console.warn(n)}}}}).catch(e=>{throw S.create("idb-open",{originalErrorMessage:e.message})})),Te}function Sr(e){return a(this,null,function*(){try{let n=(yield Dt()).transaction(V),r=yield n.objectStore(V).get(Ot(e));return yield n.done,r}catch(t){if(t instanceof y)_.warn(t.message);else{let n=S.create("idb-get",{originalErrorMessage:t?.message});_.warn(n.message)}}})}function St(e,t){return a(this,null,function*(){try{let r=(yield Dt()).transaction(V,"readwrite");yield r.objectStore(V).put(t,Ot(e)),yield r.done}catch(n){if(n instanceof y)_.warn(n.message);else{let r=S.create("idb-set",{originalErrorMessage:n?.message});_.warn(r.message)}}})}function Ot(e){return`${e.name}!${e.options.appId}`}var Cr=1024,Tr=30,Me=class{constructor(t){this.container=t,this._heartbeatsCache=null;let n=this.container.getProvider("app").getImmediate();this._storage=new xe(n),this._heartbeatsCachePromise=this._storage.read().then(r=>(this._heartbeatsCache=r,r))}triggerHeartbeat(){return a(this,null,function*(){var t,n;try{let i=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),o=Ct();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===o||this._heartbeatsCache.heartbeats.some(s=>s.date===o))return;if(this._heartbeatsCache.heartbeats.push({date:o,agent:i}),this._heartbeatsCache.heartbeats.length>Tr){let s=Or(this._heartbeatsCache.heartbeats);this._heartbeatsCache.heartbeats.splice(s,1)}return this._storage.overwrite(this._heartbeatsCache)}catch(r){_.warn(r)}})}getHeartbeatsHeader(){return a(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=Ct(),{heartbeatsToSend:r,unsentEntries:i}=Dr(this._heartbeatsCache.heartbeats),o=ye(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)),o}catch(n){return _.warn(n),""}})}};function Ct(){return new Date().toISOString().substring(0,10)}
vendor: 5,364 bytes, line 1
1function Dr(e,t=Cr){let n=[],r=e.slice();for(let i of e){let o=n.find(s=>s.agent===i.agent);if(o){if(o.dates.push(i.date),Tt(n)>t){o.dates.pop();break}}else if(n.push({agent:i.agent,dates:[i.date]}),Tt(n)>t){n.pop();break}r=r.slice(1)}return{heartbeatsToSend:n,unsentEntries:r}}var xe=class{constructor(t){this.app=t,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}runIndexedDBEnvironmentCheck(){return a(this,null,function*(){return ee()?te().then(()=>!0).catch(()=>!1):!1})}read(){return a(this,null,function*(){if(yield this._canUseIndexedDBPromise){let n=yield Sr(this.app);return n?.heartbeats?n:{heartbeats:[]}}else return{heartbeats:[]}})}overwrite(t){return a(this,null,function*(){var n;if(yield this._canUseIndexedDBPromise){let i=yield this.read();return St(this.app,{lastSentHeartbeatDate:(n=t.lastSentHeartbeatDate)!==null&&n!==void 0?n:i.lastSentHeartbeatDate,heartbeats:t.heartbeats})}else return})}add(t){return a(this,null,function*(){var n;if(yield this._canUseIndexedDBPromise){let i=yield this.read();return St(this.app,{lastSentHeartbeatDate:(n=t.lastSentHeartbeatDate)!==null&&n!==void 0?n:i.lastSentHeartbeatDate,heartbeats:[...i.heartbeats,...t.heartbeats]})}else return})}};function Tt(e){return ye(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 kr(e){E(new m("platform-logger",t=>new De(t),"PRIVATE")),E(new m("heartbeat",t=>new Me(t),"PRIVATE")),h(Oe,It,e),h(Oe,It,"esm2017"),h("fire-js","")}kr("");var Nr="firebase",Rr="11.10.0";h(Nr,Rr,"app");var z=new ot("ANGULARFIRE2_VERSION");function Rt(e,t,n){if(t){if(t.length===1)return t[0];let o=t.filter(s=>s.app===n);if(o.length===1)return o[0]}return n.container.getProvider(e).getImmediate({optional:!0})}var Mt=(e,t)=>{let n=t?[t]:ae(),r=[];return n.forEach(i=>{i.container.getProvider(e).instances.forEach(s=>{r.includes(s)||r.push(s)})}),r},L=(function(e){return e[e.SILENT=0]="SILENT",e[e.WARN=1]="WARN",e[e.VERBOSE=2]="VERBOSE",e})(L||{}),kt=me()&&typeof Zone<"u"?L.WARN:L.SILENT;var ce=class{zone;delegate;constructor(t,n=it){this.zone=t,this.delegate=n}now(){return this.delegate.now()}schedule(t,n,r){let i=this.zone,o=function(s){i?i.runGuarded(()=>{t.apply(this,[s])}):t.apply(this,[s])};return this.delegate.schedule(o,n,r)}},U=(()=>{class e{outsideAngular;insideAngular;constructor(){let n=C(A);this.outsideAngular=n.runOutsideAngular(()=>new ce(typeof Zone>"u"?void 0:Zone.current)),this.insideAngular=n.run(()=>new ce(typeof Zone>"u"?void 0:Zone.current,rt))}static \u0275fac=function(r){return new(r||e)};static \u0275prov=at({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Nt=!1;function Mr(e,t){!Nt&&(kt>L.SILENT||me())&&(Nt=!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 xr(e){let t=C(A,{optional:!0});return t?t.runOutsideAngular(()=>e()):e()}function O(e){let t=C(A,{optional:!0});return t?t.run(()=>e()):e()}var Pr=(e,t,n)=>(...r)=>(t&&setTimeout(t,0),Y(n,()=>O(()=>e.apply(void 0,r)))),k=(e,t,n)=>(n||=t?L.WARN:L.VERBOSE,function(){let r,i=arguments,o,s,c;try{o=C(U),s=C(ut),c=C(ct)}catch{return Mr(e,n),e.apply(this,i)}for(let l=0;l<arguments.length;l++)typeof i[l]=="function"&&(t&&(r||=O(()=>s.add())),i[l]=Pr(i[l],r,c));let u=xr(()=>e.apply(this,i));return t?u instanceof pe?u.pipe(ge(o.outsideAngular),he(o.insideAngular),ft(c)):u instanceof Promise?O(()=>{let l=s.add();return new Promise((f,p)=>{u.then(w=>Y(c,()=>O(()=>f(w))),w=>Y(c,()=>O(()=>p(w)))).finally(l)})}):typeof u=="function"&&r?function(){return setTimeout(r,0),u.apply(this,arguments)}:O(()=>u):u instanceof pe?u.pipe(ge(o.outsideAngular),he(o.insideAngular)):O(()=>u)});var N=class{constructor(t){return t}},K=class{constructor(){return ae()}};function Br(e){return e&&e.length===1?e[0]:new N(W())}var Be=new J("angularfire2._apps"),Lr={provide:N,useFactory:Br,deps:[[new B,Be]]},Fr={provide:K,deps:[[new B,Be]]};function $r(e){return(t,n)=>{let r=n.get(F);h("angularfire",z.full,"core"),h("angularfire",z.full,"app"),h("angular",st.full,r.toString());let i=t.runOutsideAngular(()=>e(n));return new N(i)}}function ss(e,...t){return Z([Lr,Fr,{provide:Be,useFactory:$r(e),multi:!0,deps:[A,X,U,...t]}])}var as=k(Pe,!0);var Bt="@firebase/installations",je="0.6.18";var Lt=1e4,Ft=`w:${je}`,$t="FIS_v2",jr="https://firebaseinstallations.googleapis.com/v1",Vr=3600*1e3,Hr="installations",Wr="Installations";var zr={"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."},M=new v(Hr,Wr,zr);function jt(e){return e instanceof y&&e.code.includes("request-failed")}function Vt({projectId:e}){return`${jr}/projects/${e}/installations`}
1function Ht(e){return{token:e.token,requestStatus:2,expiresIn:Kr(e.expiresIn),creationTime:Date.now()}}function Wt(e,t){return a(this,null,function*(){let r=(yield t.json()).error;return M.create("request-failed",{requestName:e,serverCode:r.code,serverMessage:r.message,serverStatus:r.status})})}function zt({apiKey:e}){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":e})}function Ur(e,{refreshToken:t}){let n=zt(e);return n.append("Authorization",qr(t)),n}function Ut(e){return a(this,null,function*(){let t=yield e();return t.status>=500&&t.status<600?e():t})}function Kr(e){return Number(e.replace("s","000"))}function qr(e){return`${$t} ${e}`}function Gr(r,i){return a(this,arguments,function*({appConfig:e,heartbeatServiceProvider:t},{fid:n}){let o=Vt(e),s=zt(e),c=t.getImmediate({optional:!0});if(c){let p=yield c.getHeartbeatsHeader();p&&s.append("x-firebase-client",p)}let u={fid:n,authVersion:$t,appId:e.appId,sdkVersion:Ft},l={method:"POST",headers:s,body:JSON.stringify(u)},f=yield Ut(()=>fetch(o,l));if(f.ok){let p=yield f.json();return{fid:p.fid||n,registrationStatus:2,refreshToken:p.refreshToken,authToken:Ht(p.authToken)}}else throw yield Wt("Create Installation",f)})}function Kt(e){return new Promise(t=>{setTimeout(t,e)})}function Jr(e){return btoa(String.fromCharCode(...e)).replace(/\+/g,"-").replace(/\//g,"_")}var Zr=/^[cdef][\w-]{21}$/,$e="";function Yr(){try{let e=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(e),e[0]=112+e[0]%16;let n=Xr(e);return Zr.test(n)?n:$e}catch{return $e}}function Xr(e){return Jr(e).substr(0,22)}function fe(e){return`${e.appName}!${e.appId}`}var qt=new Map;function Gt(e,t){let n=fe(e);Jt(n,t),Qr(n,t)}function Jt(e,t){let n=qt.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 R=null;function ei(){return!R&&"BroadcastChannel"in self&&(R=new BroadcastChannel("[Firebase] FID Change"),R.onmessage=e=>{Jt(e.data.key,e.data.fid)}),R}function ti(){qt.size===0&&R&&(R.close(),R=null)}var ni="firebase-installations-database",ri=1,x="firebase-installations-store",Le=null;function Ve(){return Le||(Le=D(ni,ri,{upgrade:(e,t)=>{t===0&&e.createObjectStore(x)}})),Le}function ue(e,t){return a(this,null,function*(){let n=fe(e),i=(yield Ve()).transaction(x,"readwrite"),o=i.objectStore(x),s=yield o.get(n);return yield o.put(t,n),yield i.done,(!s||s.fid!==t.fid)&&Gt(e,t.fid),t})}function Zt(e){return a(this,null,function*(){let t=fe(e),r=(yield Ve()).transaction(x,"readwrite");yield r.objectStore(x).delete(t),yield r.done})}function le(e,t){return a(this,null,function*(){let n=fe(e),i=(yield Ve()).transaction(x,"readwrite"),o=i.objectStore(x),s=yield o.get(n),c=t(s);return c===void 0?yield o.delete(n):yield o.put(c,n),yield i.done,c&&(!s||s.fid!==c.fid)&&Gt(e,c.fid),c})}function He(e){return a(this,null,function*(){let t,n=yield le(e.appConfig,r=>{let i=ii(r),o=oi(e,i);return t=o.registrationPromise,o.installationEntry});return n.fid===$e?{installationEntry:yield t}:{installationEntry:n,registrationPromise:t}})}function ii(e){let t=e||{fid:Yr(),registrationStatus:0};return Yt(t)}function oi(e,t){if(t.registrationStatus===0){if(!navigator.onLine){let i=Promise.reject(M.create("app-offline"));return{installationEntry:t,registrationPromise:i}}let n={fid:t.fid,registrationStatus:1,registrationTime:Date.now()},r=si(e,n);return{installationEntry:n,registrationPromise:r}}else return t.registrationStatus===1?{installationEntry:t,registrationPromise:ai(e)}:{installationEntry:t}}function si(e,t){return a(this,null,function*(){try{let n=yield Gr(e,t);return ue(e.appConfig,n)}catch(n){throw jt(n)&&n.customData.serverCode===409?yield Zt(e.appConfig):yield ue(e.appConfig,{fid:t.fid,registrationStatus:0}),n}})}function ai(e){return a(this,null,function*(){let t=yield xt(e.appConfig);for(;t.registrationStatus===1;)yield Kt(100),t=yield xt(e.appConfig);if(t.registrationStatus===0){let{installationEntry:n,registrationPromise:r}=yield He(e);return r||n}return t})}function xt(e){return le(e,t=>{if(!t)throw M.create("installation-not-found");return Yt(t)})}function Yt(e){return ci(e)?{fid:e.fid,registrationStatus:0}:e}function ci(e){return e.registrationStatus===1&&e.registrationTime+Lt<Date.now()}function ui(r,i){return a(this,arguments,function*({appConfig:e,heartbeatServiceProvider:t}
1,n){let o=fi(e,n),s=Ur(e,n),c=t.getImmediate({optional:!0});if(c){let p=yield c.getHeartbeatsHeader();p&&s.append("x-firebase-client",p)}let u={installation:{sdkVersion:Ft,appId:e.appId}},l={method:"POST",headers:s,body:JSON.stringify(u)},f=yield Ut(()=>fetch(o,l));if(f.ok){let p=yield f.json();return Ht(p)}else throw yield Wt("Generate Auth Token",f)})}function fi(e,{fid:t}){return`${Vt(e)}/${t}/authTokens:generate`}function We(e,t=!1){return a(this,null,function*(){let n,r=yield le(e.appConfig,o=>{if(!Xt(o))throw M.create("not-registered");let s=o.authToken;if(!t&&pi(s))return o;if(s.requestStatus===1)return n=li(e,t),o;{if(!navigator.onLine)throw M.create("app-offline");let c=gi(o);return n=di(e,c),c}});return n?yield n:r.authToken})}function li(e,t){return a(this,null,function*(){let n=yield Pt(e.appConfig);for(;n.authToken.requestStatus===1;)yield Kt(100),n=yield Pt(e.appConfig);let r=n.authToken;return r.requestStatus===0?We(e,t):r})}function Pt(e){return le(e,t=>{if(!Xt(t))throw M.create("not-registered");let n=t.authToken;return mi(n)?Object.assign(Object.assign({},t),{authToken:{requestStatus:0}}):t})}function di(e,t){return a(this,null,function*(){try{let n=yield ui(e,t),r=Object.assign(Object.assign({},t),{authToken:n});return yield ue(e.appConfig,r),n}catch(n){if(jt(n)&&(n.customData.serverCode===401||n.customData.serverCode===404))yield Zt(e.appConfig);else{let r=Object.assign(Object.assign({},t),{authToken:{requestStatus:0}});yield ue(e.appConfig,r)}throw n}})}function Xt(e){return e!==void 0&&e.registrationStatus===2}function pi(e){return e.requestStatus===2&&!hi(e)}function hi(e){let t=Date.now();return t<e.creationTime||e.creationTime+e.expiresIn<t+Vr}function gi(e){let t={requestStatus:1,requestTime:Date.now()};return Object.assign(Object.assign({},e),{authToken:t})}function mi(e){return e.requestStatus===1&&e.requestTime+Lt<Date.now()}function bi(e){return a(this,null,function*(){let t=e,{installationEntry:n,registrationPromise:r}=yield He(t);return r?r.catch(console.error):We(t).catch(console.error),n.fid})}function wi(e,t=!1){return a(this,null,function*(){let n=e;return yield yi(n),(yield We(n,t)).token})}function yi(e){return a(this,null,function*(){let{registrationPromise:t}=yield He(e);t&&(yield t)})}function vi(e){if(!e||!e.options)throw Fe("App Configuration");if(!e.name)throw Fe("App Name");let t=["projectId","apiKey","appId"];for(let n of t)if(!e.options[n])throw Fe(n);return{appName:e.name,projectId:e.options.projectId,apiKey:e.options.apiKey,appId:e.options.appId}}function Fe(e){return M.create("missing-app-config-values",{valueName:e})}var Qt="installations",_i="installations-internal",Ei=e=>{let t=e.getProvider("app").getImmediate(),n=vi(t),r=H(t,"heartbeat");return{app:t,appConfig:n,heartbeatServiceProvider:r,_delete:()=>Promise.resolve()}},Ii=e=>{let t=e.getProvider("app").getImmediate(),n=H(t,Qt).getImmediate();return{getId:()=>bi(n),getToken:i=>wi(n,i)}};function Ai(){E(new m(Qt,Ei,"PUBLIC")),E(new m(_i,Ii,"PRIVATE"))}Ai();h(Bt,je);h(Bt,je,"esm2017");var Si="/firebase-messaging-sw.js",Ci="/firebase-cloud-messaging-push-scope",an="BDOU99-h67HcA6JeFXHbSNMu7e2yNNu3RzoMj8TM4W88jITfq7ZmPvIM1Iv-4_l2LxQcYwhqby2xGpWwzjfAnG4",Ti="https://fcmregistrations.googleapis.com/v1",cn="google.c.a.c_id",Di="google.c.a.c_l",Oi="google.c.a.ts",ki="google.c.a.e",en=1e4;var de=(function(e){return e.PUSH_RECEIVED="push-received",e.NOTIFICATION_CLICKED="notification-clicked",e})(de||{});function I(e){let t=new Uint8Array(e);return btoa(String.fromCharCode(...t)).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function Ni(e){let t="=".repeat((4-e.length%4)%4),n=(e+t).replace(/\-/g,"+").replace(/_/g,"/"),r=atob(n),i=new Uint8Array(r.length);for(let o=0;o<r.length;++o)i[o]=r.charCodeAt(o);return i}var ze="fcm_token_details_db",Ri=5,tn="fcm_token_object_Store";function Mi(e){return a(this,null,function*(){if("databases"in indexedDB&&!(yield indexedDB.databases()).map(o=>o.name).includes(ze))return null;let t=null;return(yield D(ze,Ri,{upgrade:(r,i,o,s)=>a(null,null,function*(){var c;if(i<2||!r.objectStoreNames.contains(tn))return;let u=s.objectStore(tn),l=yield u.index("fcmSenderId").get(e);if(yield u.clear(),!!l){if(i===2){let f=l;if(!f.auth||!f.p256dh||!f.endpoint)return;t={token:f.fcmToken,createTime:(c=f.createTime)!==null&&c!==void 0?c:Date.now(),subscriptionOptions:{auth:f.auth,p256dh:f.p256dh,endpoint:f.endpoint,swScope:f.swScope,vapidKey:typeof f.vapidKey=="string"?f.vapidKey:I(f.vapidKey)}}}else if(i===3){let f=l;t={token:f.fcmToken,createTime:f.createTime,subscriptionOptions:{auth:I(f.auth),p256dh:I(f.p256dh),endpoint:f.endpoint,swScope:f.swScope,vapidKey:I(f.vapidKey)}}}else if(i===4){let f=l;t={token:f.fcmToken,createTime:f.createTime,subscriptionOptions:{auth:I(f.auth),p256dh:I(f.p256dh),endpoint:f.endpoint,swScope:f.swScope,vapidKey:I(f.vapidKey)}}}}})})).close(),yield se(ze),yield se("fcm_vapid_details_db"),yield se("undefined"),xi(t)?t:null})}function xi(e){if(!e||!e.subscriptionOptions)return!1;let{subscriptionOptions:t}=e;return typeof e.createTime=="number"&&e.createTime>0&&typeof e.token=="string"&&e.token.length>
10&&typeof t.auth=="string"&&t.auth.length>0&&typeof t.p256dh=="string"&&t.p256dh.length>0&&typeof t.endpoint=="string"&&t.endpoint.length>0&&typeof t.swScope=="string"&&t.swScope.length>0&&typeof t.vapidKey=="string"&&t.vapidKey.length>0}var Pi="firebase-messaging-database",Bi=1,P="firebase-messaging-store",Ue=null;function Ge(){return Ue||(Ue=D(Pi,Bi,{upgrade:(e,t)=>{t===0&&e.createObjectStore(P)}})),Ue}function un(e){return a(this,null,function*(){let t=Ze(e),r=yield(yield Ge()).transaction(P).objectStore(P).get(t);if(r)return r;{let i=yield Mi(e.appConfig.senderId);if(i)return yield Je(e,i),i}})}function Je(e,t){return a(this,null,function*(){let n=Ze(e),i=(yield Ge()).transaction(P,"readwrite");return yield i.objectStore(P).put(t,n),yield i.done,t})}function Li(e){return a(this,null,function*(){let t=Ze(e),r=(yield Ge()).transaction(P,"readwrite");yield r.objectStore(P).delete(t),yield r.done})}function Ze({appConfig:e}){return e.appId}var Fi={"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"only-available-in-window":"This method is available in a Window context.","only-available-in-sw":"This method is available in a service worker context.","permission-default":"The notification permission was not granted and dismissed instead.","permission-blocked":"The notification permission was not granted and blocked instead.","unsupported-browser":"This browser doesn't support the API's required to use the Firebase SDK.","indexed-db-unsupported":"This browser doesn't support indexedDb.open() (ex. Safari iFrame, Firefox Private Browsing, etc)","failed-service-worker-registration":"We are unable to register the default service worker. {$browserErrorMessage}","token-subscribe-failed":"A problem occurred while subscribing the user to FCM: {$errorInfo}","token-subscribe-no-token":"FCM returned no token when subscribing the user to push.","token-unsubscribe-failed":"A problem occurred while unsubscribing the user from FCM: {$errorInfo}","token-update-failed":"A problem occurred while updating the user from FCM: {$errorInfo}","token-update-no-token":"FCM returned no token when updating the user to push.","use-sw-after-get-token":"The useServiceWorker() method may only be called once and must be called before calling getToken() to ensure your service worker is used.","invalid-sw-registration":"The input to useServiceWorker() must be a ServiceWorkerRegistration.","invalid-bg-handler":"The input to setBackgroundMessageHandler() must be a function.","invalid-vapid-key":"The public VAPID key must be a string.","use-vapid-key-after-get-token":"The usePublicVapidKey() method may only be called once and must be called before calling getToken() to ensure your VAPID key is used."},g=new v("messaging","Messaging",Fi);function $i(e,t){return a(this,null,function*(){let n=yield Xe(e),r=ln(t),i={method:"POST",headers:n,body:JSON.stringify(r)},o;try{o=yield(yield fetch(Ye(e.appConfig),i)).json()}catch(s){throw g.create("token-subscribe-failed",{errorInfo:s?.toString()})}if(o.error){let s=o.error.message;throw g.create("token-subscribe-failed",{errorInfo:s})}if(!o.token)throw g.create("token-subscribe-no-token");return o.token})}function ji(e,t){return a(this,null,function*(){let n=yield Xe(e),r=ln(t.subscriptionOptions),i={method:"PATCH",headers:n,body:JSON.stringify(r)},o;try{o=yield(yield fetch(`${Ye(e.appConfig)}/${t.token}`,i)).json()}catch(s){throw g.create("token-update-failed",{errorInfo:s?.toString()})}if(o.error){let s=o.error.message;throw g.create("token-update-failed",{errorInfo:s})}if(!o.token)throw g.create("token-update-no-token");return o.token})}function fn(e,t){return a(this,null,function*(){let r={method:"DELETE",headers:yield Xe(e)};try{let o=yield(yield fetch(`${Ye(e.appConfig)}/${t}`,r)).json();if(o.error){let s=o.error.message;throw g.create("token-unsubscribe-failed",{errorInfo:s})}}catch(i){throw g.create("token-unsubscribe-failed",{errorInfo:i?.toString()})}})}function Ye({projectId:e}){return`${Ti}/projects/${e}/registrations`}function Xe(n){return a(this,arguments,function*({appConfig:e,installations:t}){let r=yield t.getToken();return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":e.apiKey,"x-goog-firebase-installations-auth":`FIS ${r}`})})}function ln({p256dh:e,auth:t,endpoint:n,vapidKey:r}){let i={web:{endpoint:n,auth:t,p256dh:e}};return r!==an&&(i.web.applicationPubKey=r),i}var Vi=10080*60*1e3;function Hi(e){return a(this,null,function*(){let t=yield Ui(e.swRegistration,e.vapidKey),n={vapidKey:e.vapidKey,swScope:e.swRegistration.scope,endpoint:t.endpoint,auth:I(t.getKey("auth")),p256dh:I(t.getKey("p256dh"))},r=yield un(e.firebaseDependencies);if(r){if(Ki(r.subscriptionOptions,n))return Date.now()>=r.createTime+Vi?zi(e,{token:r.token,createTime:Date.now(),subscriptionOptions:n}):r.token;try{yield fn(e.firebaseDependencies,r.token)}catch(i){console.warn(i)}return nn(e.firebaseDependencies,n)}else return nn(e.firebaseDependencies,n)})}function Wi(e){return a(this,null,function*(){let t=yield un(e.firebaseDependencies);t&&(yield fn(e.firebaseDependencies,t.token),yield Li(e.firebaseDependencies));let n=yield e.swRegistration.pushManager.getSubscription();return n?n.unsubscribe():!0})}function zi(e,t){return a(this,null,function*(){try{let n=yield ji(e.firebaseDependencies,t),r=Object.assign(Object.assign({},t),{token:n,createTime:Date.now()});return yield Je(e.firebaseDependencies,r),n}catch(n){throw n}})}function nn(e,t){return a(this,null,function*(){let r={token:yield $i(e,t),createTime:Date.now(),subscriptionOptions:t};return yield Je(e,r),r.token})}function Ui(e,t){return a(this,null,function*(){let n=yield e.pushManager.getSubscription();return n||e.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:Ni(t)})})}function Ki(e,t){let n=t.vapidKey===e.vapidKey,r=t.endpoint===e.endpoint,i=t.auth===e.auth,o=t.p256dh===e.p256dh;return n&&r&&i&&o}function rn(e){let t={from:e.from,collapseKey:e.collapse_key,messageId:e.fcmMessageId};return qi(t,e),Gi(t,e),Ji(t,e),t}function qi(e,t){if(!t.notification)return;e.notification={};let n=t.notification.title;n&&(e.notification.title=n);let r=t.notification.body;r&&(e.notification.body=r);let i=t.notification.image;i&&(e.notification.image=i);let o=t.notification.icon;o&&(e.notification.icon=o)}function Gi(e,t){t.data&&(e.data=t.data)}function Ji(e,t){var n,r,i,o,s;if(!t.fcmOptions&&!(!((n=t.notification)===null||n===void 0)&&n.click_action))return;e.fcmOptions={};let c=(i=(r=t.fcmOptions)===null||r===void 0?void 0:r.link)!==null&&i!==void 0?i:(o=t.notification)===null||o===void 0?void 0:o.click_action;c&&(e.fcmOptions.link=c);let u=(s=t.fcmOptions)===null||s===void 0?void 0:s.analytics_label;u&&(e.fcmOptions.analyticsLabel=u)}function Zi(e){return typeof e=="object"&&!!e&&cn in e}Yi("AzSCbw63g1R0nCw85jG8","Iaya3yLKwmgvh7cF0q4");function Yi(e,t){let n=[];for(let r=0;r<e.length;r++)n.push(e.charAt(r)),r<t.length&&n.push(t.charAt(r));return n.join("")}function Xi(e){if(!e||!e.options)throw Ke("App Configuration Object");
1if(!e.name)throw Ke("App Name");let t=["projectId","apiKey","appId","messagingSenderId"],{options:n}=e;for(let r of t)if(!n[r])throw Ke(r);return{appName:e.name,projectId:n.projectId,apiKey:n.apiKey,appId:n.appId,senderId:n.messagingSenderId}}function Ke(e){return g.create("missing-app-config-values",{valueName:e})}var qe=class{constructor(t,n,r){this.deliveryMetricsExportedToBigQueryEnabled=!1,this.onBackgroundMessageHandler=null,this.onMessageHandler=null,this.logEvents=[],this.isLogServiceStarted=!1;let i=Xi(t);this.firebaseDependencies={app:t,appConfig:i,installations:n,analyticsProvider:r}}_delete(){return Promise.resolve()}};function dn(e){return a(this,null,function*(){try{e.swRegistration=yield navigator.serviceWorker.register(Si,{scope:Ci}),e.swRegistration.update().catch(()=>{}),yield Qi(e.swRegistration)}catch(t){throw g.create("failed-service-worker-registration",{browserErrorMessage:t?.message})}})}function Qi(e){return a(this,null,function*(){return new Promise((t,n)=>{let r=setTimeout(()=>n(new Error(`Service worker not registered after ${en} ms`)),en),i=e.installing||e.waiting;e.active?(clearTimeout(r),t()):i?i.onstatechange=o=>{var s;((s=o.target)===null||s===void 0?void 0:s.state)==="activated"&&(i.onstatechange=null,clearTimeout(r),t())}:(clearTimeout(r),n(new Error("No incoming service worker found.")))})})}function eo(e,t){return a(this,null,function*(){if(!t&&!e.swRegistration&&(yield dn(e)),!(!t&&e.swRegistration)){if(!(t instanceof ServiceWorkerRegistration))throw g.create("invalid-sw-registration");e.swRegistration=t}})}function to(e,t){return a(this,null,function*(){t?e.vapidKey=t:e.vapidKey||(e.vapidKey=an)})}function pn(e,t){return a(this,null,function*(){if(!navigator)throw g.create("only-available-in-window");if(Notification.permission==="default"&&(yield Notification.requestPermission()),Notification.permission!=="granted")throw g.create("permission-blocked");return yield to(e,t?.vapidKey),yield eo(e,t?.serviceWorkerRegistration),Hi(e)})}function no(e,t,n){return a(this,null,function*(){let r=ro(t);(yield e.firebaseDependencies.analyticsProvider.get()).logEvent(r,{message_id:n[cn],message_name:n[Di],message_time:n[Oi],message_device_time:Math.floor(Date.now()/1e3)})})}function ro(e){switch(e){case de.NOTIFICATION_CLICKED:return"notification_open";case de.PUSH_RECEIVED:return"notification_foreground";default:throw new Error}}function io(e,t){return a(this,null,function*(){let n=t.data;if(!n.isFirebaseMessaging)return;e.onMessageHandler&&n.messageType===de.PUSH_RECEIVED&&(typeof e.onMessageHandler=="function"?e.onMessageHandler(rn(n)):e.onMessageHandler.next(rn(n)));let r=n.data;Zi(r)&&r[ki]==="1"&&(yield no(e,n.messageType,r))})}var on="@firebase/messaging",sn="0.12.22";var oo=e=>{let t=new qe(e.getProvider("app").getImmediate(),e.getProvider("installations-internal").getImmediate(),e.getProvider("analytics-internal"));return navigator.serviceWorker.addEventListener("message",n=>io(t,n)),t},so=e=>{let t=e.getProvider("messaging").getImmediate();return{getToken:r=>pn(t,r)}};function ao(){E(new m("messaging",oo,"PUBLIC")),E(new m("messaging-internal",so,"PRIVATE")),h(on,sn),h(on,sn,"esm2017")}function hn(){return a(this,null,function*(){try{yield te()}catch{return!1}return typeof window<"u"&&ee()&&mt()&&"serviceWorker"in navigator&&"PushManager"in window&&"Notification"in window&&"fetch"in window&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSubscription.prototype.hasOwnProperty("getKey")})}function co(e){return a(this,null,function*(){if(!navigator)throw g.create("only-available-in-window");return e.swRegistration||(yield dn(e)),Wi(e)})}function uo(e,t){if(!navigator)throw g.create("only-available-in-window");return e.onMessageHandler=t,()=>{e.onMessageHandler=null}}function gn(e=W()){return hn().then(t=>{if(!t)throw g.create("unsupported-browser")},t=>{throw g.create("indexed-db-unsupported")}),H($(e),"messaging").getImmediate()}function mn(e,t){return a(this,null,function*(){return e=$(e),pn(e,t)})}function bn(e){return e=$(e),co(e)}function wn(e,t){return e=$(e),uo(e,t)}ao();var q=class{constructor(t){return t}},yn="messaging",Qe=class{constructor(){return Mt(yn)}};var et=new J("angularfire2.messaging-instances");function fo(e,t,n){if(be(n))return null;let r=Rt(yn,e,t);return r&&new q(r)}function lo(e){return(t,n,r)=>{if(be(r))return null;let i=t.runOutsideAngular(()=>e(n));return new q(i)}}var po={provide:Qe,deps:[[new B,et]]},ho={provide:q,useFactory:fo,deps:[[new B,et],N,F]};function Rs(e,...t){return h("angularfire",z.full,"fcm"),Z([ho,po,{provide:et,useFactory:lo(e),multi:!0,deps:[A,X,F,U,K,...t]}])}var Ms=k(bn,!0,2),xs=k(gn,!0),Ps=k(mn,!0);var Bs=k(wn,!1);export{ss as a,as as b,q as c,Rs as d,Ms as e,xs as f,Ps as g,Bs as h}; 2/**i18n:c9191bb552137045befce55c346e87cd69faeb14b883edf961062e8565dd596d*/
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.