1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[274],{9118:(e,t,r)=>{let i,n,a;r.r(t),r.d(t,{deleteDB:()=>g,openDB:()=>p,unwrap:()=>f,wrap:()=>d});let s=new WeakMap,o=new WeakMap,h=new WeakMap,c=new WeakMap,l=new WeakMap,u={get(e,t,r){if(e instanceof IDBTransaction){if("done"===t)return o.get(e);if("objectStoreNames"===t)return e.objectStoreNames||h.get(e);if("store"===t)return r.objectStoreNames[1]?void 0:r.objectStore(r.objectStoreNames[0])}return d(e[t])},set:(e,t,r)=>(e[t]=r,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function d(e){if(e instanceof IDBRequest){let t;return(t=new Promise((t,r)=>{let i=()=>{e.removeEventListener("success",n),e.removeEventListener("error",a)},n=()=>{t(d(e.result)),i()},a=()=>{r(e.error),i()};e.addEventListener("success",n),e.addEventListener("error",a)})).then(t=>{t instanceof IDBCursor&&s.set(t,e)}).catch(()=>{}),l.set(t,e),t}if(c.has(e))return c.get(e);let t=function(e){if("function"==typeof e)return e!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(n||(n=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(e)?function(...t){return e.apply(f(this),t),d(s.get(this))}:function(...t){return d(e.apply(f(this),t))}:function(t,...r){let i=e.call(f(this),t,...r);return h.set(i,t.sort?t.sort():[t]),d(i)};return e instanceof IDBTransaction&&function(e){if(o.has(e))return;let t=new Promise((t,r)=>{let i=()=>{e.removeEventListener("complete",n),e.removeEventListener("error",a),e.removeEventListener("abort",a)},n=()=>{t(),i()},a=()=>{r(e.error||new DOMException("AbortError","AbortError")),i()};e.addEventListener("complete",n),e.addEventListener("error",a),e.addEventListener("abort",a)});o.set(e,t)}(e),(i||(i=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])).some(t=>e instanceof t)?new Proxy(e,u):e}(e);return t!==e&&(c.set(e,t),l.set(t,e)),t}let f=e=>l.get(e);function p(e,t,{blocked:r,upgrade:i,blocking:n,terminated:a}={}){let s=indexedDB.open(e,t),o=d(s);return i&&s.addEventListener("upgradeneeded",e=>{i(d(s.result),e.oldVersion,e.newVersion,d(s.transaction),e)}),r&&s.addEventListener("blocked",e=>r(e.oldVersion,e.newVersion,e)),o.then(e=>{a&&e.addEventListener("close",()=>a()),n&&e.addEventListener("versionchange",e=>n(e.oldVersion,e.newVersion,e))}).catch(()=>{}),o}function g(e,{blocked:t}={}){let r=indexedDB.deleteDatabase(e);return t&&r.addEventListener("blocked",e=>t(e.oldVersion,e)),d(r).then(()=>void 0)}let b=["get","getKey","getAll","getAllKeys","count"],m=["put","add","delete","clear"],v=new Map;function _(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&"string"==typeof t))return;if(v.get(t))return v.get(t);let r=t.replace(/FromIndex$/,""),i=t!==r,n=m.includes(r);if(!(r in(i?IDBIndex:IDBObjectStore).prototype)||!(n||b.includes(r)))return;let a=async function(e,...t){let a=this.transaction(e,n?"readwrite":"readonly"),s=a.store;return i&&(s=s.index(t.shift())),(await Promise.all([s[r](...t),n&&a.done]))[0]};return v.set(t,a),a}u={...a=u,get:(e,t,r)=>_(e,t)||a.get(e,t,r),has:(e,t)=>!!_(e,t)||a.has(e,t)}},23650:(e,t,r)=>{var i,n;r.d(t,{$b:()=>i,He:()=>u,Vy:()=>l});let a=[];(n=i||(i={}))[n.DEBUG=0]="DEBUG",n[n.VERBOSE=1]="VERBOSE",n[n.INFO=2]="INFO",n[n.WARN=3]="WARN",n[n.ERROR=4]="ERROR",n[n.SILENT=5]="SILENT";let s={debug:i.DEBUG,verbose:i.VERBOSE,info:i.INFO,warn:i.WARN,error:i.ERROR,silent:i.SILENT},o=i.INFO,h={[i.DEBUG]:"log",[i.VERBOSE]:"log",[i.INFO]:"info",[i.WARN]:"warn",[i.ERROR]:"error"},c=(e,t,...r)=>{if(t<e.logLevel)return;let i=new Date().toISOString(),n=h[t];if(n)console[n](`[${i}] ${e.name}:`,...r);else throw Error(`Attempted to log a message with an invalid logType (value: ${t})`)};class l{constructor(e){this.name=e,this._logLevel=o,this._logHandler=c,this._userLogHandler=null,a.push(this)}get logLevel(){return this._logLevel}set logLevel(e){if(!(e in i))throw TypeError(`Invalid value "${e}" assigned to \`logLevel\``);this._logLevel=e}setLogLevel(e){this._logLevel="string"==typeof e?s[e]:e}get logHandler(){return this._logHandler}set logHandler(e){if("function"!=typeof e)throw TypeError("Value assigned to `logHandler` must be a function");this._logHandler=e}get userLogHandler(){return this._userLogHandler}set userLogHandler(e){this._userLogHandler=e}debug(...e){this._userLogHandler&&this._userLogHandler(this,i.DEBUG,...e),this._logHandler(this,i.DEBUG,...e)}log(...e){this._userLogHandler&&this._userLogHandler(this,i.VERBOSE,...e),this._logHandler(this,i.VERBOSE,...e)}info(...e){this._userLogHandler&&this._userLogHandler(this,i.INFO,...e),this._logHandler(this,i.INFO,...e)}warn(...e){this._userLogHandler&&this._userLogHandler(this,i.WARN,...e),this._logHandler(this,i.WARN,...e)}error(...e){this._userLogHandler&&this._userLogHandler(this,i.ERROR,...e),this._logHandler(this,i.ERROR,...e)}}function u(e){a.forEach(t=>{t.setLogLevel(e)}
1)}},30274:(e,t,r)=>{r.r(t),r.d(t,{ActionCodeOperation:()=>i.A,ActionCodeURL:()=>i.aj,AuthCredential:()=>i.M,AuthErrorCodes:()=>i.J,EmailAuthCredential:()=>i.N,EmailAuthProvider:()=>i.W,FacebookAuthProvider:()=>i.X,FactorId:()=>i.F,GithubAuthProvider:()=>i.Z,GoogleAuthProvider:()=>i.Y,OAuthCredential:()=>i.Q,OAuthProvider:()=>i._,OperationType:()=>i.O,PhoneAuthCredential:()=>i.U,PhoneAuthProvider:()=>i.P,PhoneMultiFactorGenerator:()=>i.n,ProviderId:()=>i.q,RecaptchaVerifier:()=>i.R,SAMLAuthProvider:()=>i.$,SignInMethod:()=>i.S,TotpMultiFactorGenerator:()=>i.T,TotpSecret:()=>i.o,TwitterAuthProvider:()=>i.a0,applyActionCode:()=>i.a8,beforeAuthStateChanged:()=>i.y,browserCookiePersistence:()=>i.a,browserLocalPersistence:()=>i.b,browserPopupRedirectResolver:()=>i.m,browserSessionPersistence:()=>i.c,checkActionCode:()=>i.a9,confirmPasswordReset:()=>i.a7,connectAuthEmulator:()=>i.L,createUserWithEmailAndPassword:()=>i.ab,debugErrorMap:()=>i.H,deleteUser:()=>i.G,fetchSignInMethodsForEmail:()=>i.ag,getAdditionalUserInfo:()=>i.ar,getAuth:()=>i.p,getIdToken:()=>i.ao,getIdTokenResult:()=>i.ap,getMultiFactorResolver:()=>i.at,getRedirectResult:()=>i.k,inMemoryPersistence:()=>i.V,indexedDBLocalPersistence:()=>i.i,initializeAuth:()=>i.K,initializeRecaptchaConfig:()=>i.v,isSignInWithEmailLink:()=>i.ae,linkWithCredential:()=>i.a3,linkWithPhoneNumber:()=>i.l,linkWithPopup:()=>i.e,linkWithRedirect:()=>i.h,multiFactor:()=>i.au,onAuthStateChanged:()=>i.z,onIdTokenChanged:()=>i.x,parseActionCodeURL:()=>i.ak,prodErrorMap:()=>i.I,reauthenticateWithCredential:()=>i.a4,reauthenticateWithPhoneNumber:()=>i.r,reauthenticateWithPopup:()=>i.f,reauthenticateWithRedirect:()=>i.j,reload:()=>i.as,revokeAccessToken:()=>i.E,sendEmailVerification:()=>i.ah,sendPasswordResetEmail:()=>i.a6,sendSignInLinkToEmail:()=>i.ad,setPersistence:()=>i.t,signInAnonymously:()=>i.a1,signInWithCredential:()=>i.a2,signInWithCustomToken:()=>i.a5,signInWithEmailAndPassword:()=>i.ac,signInWithEmailLink:()=>i.af,signInWithPhoneNumber:()=>i.s,signInWithPopup:()=>i.d,signInWithRedirect:()=>i.g,signOut:()=>i.D,unlink:()=>i.aq,updateCurrentUser:()=>i.C,updateEmail:()=>i.am,updatePassword:()=>i.an,updatePhoneNumber:()=>i.u,updateProfile:()=>i.al,useDeviceLanguage:()=>i.B,validatePassword:()=>i.w,verifyBeforeUpdateEmail:()=>i.ai,verifyPasswordResetCode:()=>i.aa});var i=r(52110);r(85384),r(75291),r(23650),r(53012)},53012:(e,t,r)=>{r.d(t,{h1:()=>o,uA:()=>n});var i=r(75291);class n{constructor(e,t,r){this.name=e,this.instanceFactory=t,this.type=r,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(e){return this.instantiationMode=e,this}setMultipleInstances(e){return this.multipleInstances=e,this}setServiceProps(e){return this.serviceProps=e,this}setInstanceCreatedCallback(e){return this.onInstanceCreated=e,this}}let a="[DEFAULT]";class s{constructor(e,t){this.name=e,this.container=t,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(e){let t=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(t)){let e=new i.cY;if(this.instancesDeferred.set(t,e),this.isInitialized(t)||this.shouldAutoInitialize())try{let r=this.getOrInitializeService({instanceIdentifier:t});r&&e.resolve(r)}catch(e){}}return this.instancesDeferred.get(t).promise}getImmediate(e){let t=this.normalizeInstanceIdentifier(e?.identifier),r=e?.optional??!1;if(this.isInitialized(t)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:t})}catch(e){if(r)return null;throw e}if(r)return null;throw Error(`Service ${this.name} is not available`)}getComponent(){return this.component}setComponent(e){if(e.name!==this.name)throw Error(`Mismatching Component ${e.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=e,this.shouldAutoInitialize()){if("EAGER"===e.instantiationMode)try{this.getOrInitializeService({instanceIdentifier:a})}catch(e){}for(let[e,t]of this.instancesDeferred.entries()){let r=this.normalizeInstanceIdentifier(e);try{let e=this.getOrInitializeService({instanceIdentifier:r});t.resolve(e)}catch(e){}}}}clearInstance(e=a){this.instancesDeferred.delete(e),this.instancesOptions.delete(e),this.instances.delete(e)}async delete(){let e=Array.from(this.instances.values());await Promise.all([...e.filter(e=>"INTERNAL"in e).map(e=>e.INTERNAL.delete()),...e.filter(e=>"_delete"in e).map(e=>e._delete())])}isComponentSet(){return null!=this.component}isInitialized(e=a){return this.instances.has(e)}getOptions(e=a){return this.instancesOptions.get(e)||{}}initialize(e={}){let{options:t={}}=e,r=this.normalizeInstanceIdentifier(e.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:t});for(let[e,t]of this.instancesDeferred.entries())r===this.normalizeInstanceIdentifier(e)&&t.resolve(i);return i}onInit(e,t){let r=this.normalizeInstanceIdentifier(t),i=this.onInitCallbacks.get(r)??new Set;i.add(e),this.onInitCallbacks.set(r,i);let n=this.instances.get(r);return n&&e(n,r),()=>{i.delete(e)}}invokeOnInitCallbacks(e,t){let r=this.onInitCallbacks.get(t);if(r)for(let i of r)try{i(e,t)}catch{}}getOrInitializeService({instanceIdentifier:e,options:t={}}){var r;let i=this.instances.get(e);if(!i&&this.component&&(i=this.component.instanceFactory(this.container,{instanceIdentifier:(r=e)===a?void 0:r,options:t}),this.instances.set(e,i),this.instancesOptions.set(e,t),this.invokeOnInitCallbacks(i,e),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,e,i)}catch{}return i||null}normalizeInstanceIdentifier(e=a){return this.component?this.component.multipleInstances?e:a:e}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}class o{constructor(e){this.name=e,this.providers=new Map}addComponent(e){let t=this.getProvider(e.name);if(t.isComponentSet())throw Error(`Component ${e.name} has already been registered with ${this.name}`);t.setComponent(e)}addOrOverwriteComponent(e){this.getProvider(e.name).isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)}getProvider(e){if(this.providers.has(e))return this.providers.get(e);let t=new s(e,this);return this.providers.set(e,t),t}getProviders(){return Array.from(this.providers.values())}}},75291:(e,t,r)=>{r.d(t,{cY:()=>_,FA:()=>R,g:()=>N,gz:()=>q,dM:()=>T,vA:()=>i,Hk:()=>n,K3:()=>o,u:()=>u,KA:()=>c,Uj:()=>l,p9:()=>ei,gR:()=>z,Fy:()=>y,tD:()=>X,A4:()=>d,bD:()=>function e(t,r){if(t===r)return!0;let i=Object.keys(t),n=Object.keys(r);for(let a of i){if(!n.includes(a))return!1;let i=t[a],s=r[a];if(G(i)&&G(s)){if(!e(i,s))return!1}else if(i!==s)return!1}for(let e of n)if(!i.includes(e))return!1;return!0},dI:()=>ee,hp:()=>Z,T9:()=>m,Tj:()=>g,yU:()=>b,XA:()=>v,mS:()=>f,Ku:()=>en,ZQ:()=>E,qc:()=>H,sr:()=>A,zJ:()=>ea,c1:()=>C,Im:()=>U,lT:()=>D,zW:()=>L,jZ:()=>w,$g:()=>O,lV:()=>S,nr:()=>k,Ov:()=>P,Cv:()=>$,$L:()=>j,kH:()=>V,gE:()=>es,Am:()=>J,I9:()=>K,yw:()=>F,OE:()=>er,kj:()=>et,As:()=>x,eX:()=>B}),r(32407);let i=function(e,t){if(!e)throw n(t)},n=function(e){return Error("Firebase Database (${JSCORE_VERSION}) INTERNAL ASSERT FAILED: "+e)},a=function(e){let t=[],r=0;for(let i=0;i<e.length;i++){let n=e.charCodeAt(i);n<128?t[r++]=n:(n<2048?t[r++]=n>>6|192:((64512&n)==55296&&i+1<e.length&&(64512&e.charCodeAt(i+1))==56320?(n=65536+((1023&n)<<10)+(1023&e.charCodeAt(++i)),t[r++]=n>>18|240,t[r++]=n>>12&63|128):t[r++]=n>>12|224,t[r++]=n>>6&63|128),t[r++]=63&n|128)}return t},s=function(e){let t=[],r=0,i=0;for(;r<e.length;){let n=e[r++];if(n<128)t[i++]=String.fromCharCode(n);else if(n>191&&n<224){let a=e[r++];t[i++]=String.fromCharCode((31&n)<<6|63&a)}else if(n>239&&n<365){let a=((7&n)<<18|(63&e[r++])<<12|(63&e[r++])<<6|63&e[r++])-65536;t[i++]=String.fromCharCode(55296+(a>>10)),t[i++]=String.fromCharCode(56320+(1023&a))}else{let a=e[r++],s=e[r++];
1t[i++]=String.fromCharCode((15&n)<<12|(63&a)<<6|63&s)}}return t.join("")},o={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:"function"==typeof atob,encodeByteArray(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();let r=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,i=[];for(let t=0;t<e.length;t+=3){let n=e[t],a=t+1<e.length,s=a?e[t+1]:0,o=t+2<e.length,h=o?e[t+2]:0,c=n>>2,l=(3&n)<<4|s>>4,u=(15&s)<<2|h>>6,d=63&h;!o&&(d=64,a||(u=64)),i.push(r[c],r[l],r[u],r[d])}return i.join("")},encodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(a(e),t)},decodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):s(this.decodeStringToByteArray(e,t))},decodeStringToByteArray(e,t){this.init_();let r=t?this.charToByteMapWebSafe_:this.charToByteMap_,i=[];for(let t=0;t<e.length;){let n=r[e.charAt(t++)],a=t<e.length?r[e.charAt(t)]:0,s=++t<e.length?r[e.charAt(t)]:64,o=++t<e.length?r[e.charAt(t)]:64;if(++t,null==n||null==a||null==s||null==o)throw new h;let c=n<<2|a>>4;if(i.push(c),64!==s){let e=a<<4&240|s>>2;if(i.push(e),64!==o){let e=s<<6&192|o;i.push(e)}}}return i},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)}}};
1class h extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}let c=function(e){let t=a(e);return o.encodeByteArray(t,!0)},l=function(e){return c(e).replace(/\./g,"")},u=function(e){try{return o.decodeString(e,!0)}catch(e){console.error("base64Decode failed: ",e)}return null};function d(e){return function e(t,r){if(!(r instanceof Object))return r;switch(r.constructor){case Date:return new Date(r.getTime());case Object:void 0===t&&(t={});break;case Array:t=[];break;default:return r}for(let i in r)r.hasOwnProperty(i)&&"__proto__"!==i&&(t[i]=e(t[i],r[i]));return t}(void 0,e)}function f(){if("u">typeof self)return self;if("u">typeof window)return window;if(void 0!==r.g)return r.g;throw Error("Unable to locate global object.")}let p=()=>{try{return{config:{apiKey:"AIzaSyB_r1_v5qmFmrnzJkpTZL3ryRWtSfDHD3E",appId:"1:307877483016:web:9287c046d1c533e254f7bd",authDomain:"finance-app-263bf.firebaseapp.com",databaseURL:"https://finance-app-263bf-default-rtdb.asia-southeast1.firebasedatabase.app",messagingSenderId:"307877483016",projectId:"finance-app-263bf",storageBucket:"finance-app-263bf.firebasestorage.app"},emulatorHosts:{}}}catch(e){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${e}`);return}},g=e=>p()?.emulatorHosts?.[e],b=e=>{let t=g(e);if(!t)return;let r=t.lastIndexOf(":");if(r<=0||r+1===t.length)throw Error(`Invalid host ${t} with no separate hostname and port!`);let i=parseInt(t.substring(r+1),10);return"["===t[0]?[t.substring(1,r-1),i]:[t.substring(0,r),i]},m=()=>p()?.config,v=e=>p()?.[`_${e}`];class _{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}wrapCallback(e){return(t,r)=>{t?this.reject(t):this.resolve(r),"function"==typeof e&&(this.promise.catch(()=>{}),1===e.length?e(t):e(t,r))}}}function y(e,t){if(e.uid)throw Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');let r=t||"demo-project",i=e.iat||0,n=e.sub||e.user_id;if(!n)throw Error("mockUserToken must contain 'sub' or 'user_id' field!");let a={iss:`https://securetoken.google.com/${r}`,aud:r,iat:i,exp:i+3600,auth_time:i,sub:n,user_id:n,firebase:{sign_in_provider:"custom",identities:{}},...e};return[l(JSON.stringify({alg:"none",type:"JWT"})),l(JSON.stringify(a)),""].join(".")}function E(){return"u">typeof navigator&&"string"==typeof navigator.userAgent?navigator.userAgent:""}function w(){return"u">typeof window&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(E())}function I(){let e=p()?.forceEnvironment;if("node"===e)return!0;if("browser"===e)return!1;try{return"[object process]"===Object.prototype.toString.call(r.g.process)}catch(e){return!1}}function C(){return"u">typeof navigator&&"Cloudflare-Workers"===navigator.userAgent}function A(){let e="object"==typeof chrome?chrome.runtime:"object"==typeof browser?browser.runtime:void 0;return"object"==typeof e&&void 0!==e.id}function S(){return"object"==typeof navigator&&"ReactNative"===navigator.product}function D(){let e=E();return e.indexOf("MSIE ")>=0||e.indexOf("Trident/")>=0}function O(){return false}function k(){return!I()&&!!navigator.userAgent&&navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")}function P(){return!I()&&!!navigator.userAgent&&(navigator.userAgent.includes("Safari")||navigator.userAgent.includes("WebKit"))&&!navigator.userAgent.includes("Chrome")}function L(){try{return"object"==typeof indexedDB}catch(e){return!1}}function B(){return new Promise((e,t)=>{try{let r=!0,i="validate-browser-context-for-indexeddb-analytics-module",n=self.indexedDB.open(i);n.onsuccess=()=>{n.result.close(),r||self.indexedDB.deleteDatabase(i),e(!0)},n.onupgradeneeded=()=>{r=!1},n.onerror=()=>{t(n.error?.message||"")}}catch(e){t(e)}})}function T(){return!("u"<typeof navigator)&&!!navigator.cookieEnabled}class N extends Error{constructor(e,t,r){super(t),this.code=e,this.customData=r,this.name="FirebaseError",Object.setPrototypeOf(this,N.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,R.prototype.create)}}class R{constructor(e,t,r){this.service=e,this.serviceName=t,this.errors=r}create(e,...t){var r,i;let n=t[0]||{},a=`${this.service}/${e}`,s=this.errors[e],o=s?(r=s,i=n,r.replace(M,(e,t)=>{let r=i[t];return null!=r?String(r):`<${t}?>`})):"Error",h=`${this.serviceName}: ${o} (${a}).`;return new N(a,h,n)}}let M=/\{\$([^}]+)}/g;function j(e){return JSON.parse(e)}function x(e){return JSON.stringify(e)}let W=function(e){let t={},r={},i={},n="";try{let a=e.split(".");t=j(u(a[0])||""),r=j(u(a[1])||""),n=a[2],i=r.d||{},delete r.d}catch(e){}return{header:t,claims:r,data:i,signature:n}},$=function(e){let t=W(e).claims;return!!t&&"object"==typeof t&&t.hasOwnProperty("iat")},H=function(e){let t=W(e).claims;return"object"==typeof t&&!0===t.admin};function z(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function F(e,t){return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0}function U(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}function V(e,t,r){let i={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(i[n]=t.call(r,e[n],n,e));return i}function G(e){return null!==e&&"object"==typeof e}function J(e){let t=[];
1for(let[r,i]of Object.entries(e))Array.isArray(i)?i.forEach(e=>{t.push(encodeURIComponent(r)+"="+encodeURIComponent(e))}):t.push(encodeURIComponent(r)+"="+encodeURIComponent(i));return t.length?"&"+t.join("&"):""}function K(e){let t={};return e.replace(/^\?/,"").split("&").forEach(e=>{if(e){let[r,i]=e.split("=");t[decodeURIComponent(r)]=decodeURIComponent(i)}}),t}function Z(e){let t=e.indexOf("?");if(!t)return"";let r=e.indexOf("#",t);return e.substring(t,r>0?r:void 0)}class q{constructor(){this.chain_=[],this.buf_=[],this.W_=[],this.pad_=[],this.inbuf_=0,this.total_=0,this.blockSize=64,this.pad_[0]=128;for(let e=1;e<this.blockSize;++e)this.pad_[e]=0;this.reset()}reset(){this.chain_[0]=0x67452301,this.chain_[1]=0xefcdab89,this.chain_[2]=0x98badcfe,this.chain_[3]=0x10325476,this.chain_[4]=0xc3d2e1f0,this.inbuf_=0,this.total_=0}compress_(e,t){let r,i;t||(t=0);let n=this.W_;if("string"==typeof e)for(let r=0;r<16;r++)n[r]=e.charCodeAt(t)<<24|e.charCodeAt(t+1)<<16|e.charCodeAt(t+2)<<8|e.charCodeAt(t+3),t+=4;else for(let r=0;r<16;r++)n[r]=e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3],t+=4;for(let e=16;e<80;e++){let t=n[e-3]^n[e-8]^n[e-14]^n[e-16];n[e]=(t<<1|t>>>31)&0xffffffff}let a=this.chain_[0],s=this.chain_[1],o=this.chain_[2],h=this.chain_[3],c=this.chain_[4];for(let e=0;e<80;e++){e<40?e<20?(r=h^s&(o^h),i=0x5a827999):(r=s^o^h,i=0x6ed9eba1):e<60?(r=s&o|h&(s|o),i=0x8f1bbcdc):(r=s^o^h,i=0xca62c1d6);let t=(a<<5|a>>>27)+r+c+i+n[e]|0;c=h,h=o,o=(s<<30|s>>>2)&0xffffffff,s=a,a=t}this.chain_[0]=this.chain_[0]+a|0,this.chain_[1]=this.chain_[1]+s|0,this.chain_[2]=this.chain_[2]+o|0,this.chain_[3]=this.chain_[3]+h|0,this.chain_[4]=this.chain_[4]+c|0}update(e,t){if(null==e)return;void 0===t&&(t=e.length);let r=t-this.blockSize,i=0,n=this.buf_,a=this.inbuf_;for(;i<t;){if(0===a)for(;i<=r;)this.compress_(e,i),i+=this.blockSize;if("string"==typeof e){for(;i<t;)if(n[a]=e.charCodeAt(i),++a,++i,a===this.blockSize){this.compress_(n),a=0;break}}else for(;i<t;)if(n[a]=e[i],++a,++i,a===this.blockSize){this.compress_(n),a=0;break}}this.inbuf_=a,this.total_+=t}digest(){let e=[],t=8*this.total_;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(let e=this.blockSize-1;e>=56;e--)this.buf_[e]=255&t,t/=256;this.compress_(this.buf_);let r=0;for(let t=0;t<5;t++)for(let i=24;i>=0;i-=8)e[r]=this.chain_[t]>>i&255,++r;return e}}function X(e,t){let r=new Y(e,t);return r.subscribe.bind(r)}class Y{constructor(e,t){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=t,this.task.then(()=>{e(this)}).catch(e=>{this.error(e)})}next(e){this.forEachObserver(t=>{t.next(e)})}error(e){this.forEachObserver(t=>{t.error(e)}),this.close(e)}complete(){this.forEachObserver(e=>{e.complete()}),this.close()}subscribe(e,t,r){let i;if(void 0===e&&void 0===t&&void 0===r)throw Error("Missing Observer.");void 0===(i=!function(e,t){if("object"!=typeof e||null===e)return!1;for(let r of t)if(r in e&&"function"==typeof e[r])return!0;return!1}(e,["next","error","complete"])?{next:e,error:t,complete:r}:e).next&&(i.next=Q),void 0===i.error&&(i.error=Q),void 0===i.complete&&(i.complete=Q);let n=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?i.error(this.finalError):i.complete()}catch(e){}}),this.observers.push(i),n}unsubscribeOne(e){void 0!==this.observers&&void 0!==this.observers[e]&&(delete this.observers[e],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))}forEachObserver(e){if(!this.finalized)for(let t=0;t<this.observers.length;t++)this.sendOne(t,e)}sendOne(e,t){this.task.then(()=>{if(void 0!==this.observers&&void 0!==this.observers[e])try{t(this.observers[e])}catch(e){"u">typeof console&&console.error&&console.error(e)}})}close(e){this.finalized||(this.finalized=!0,void 0!==e&&(this.finalError=e),this.task.then(()=>{this.observers=void 0,this.onNoObservers=void 0}))}}function Q(){}function ee(e,t){return`${e} failed: ${t} argument `}let et=function(e){let t=[],r=0;for(let n=0;n<e.length;n++){let a=e.charCodeAt(n);if(a>=55296&&a<=56319){let t=a-55296;i(++n<e.length,"Surrogate pair missing trail surrogate."),a=65536+(t<<10)+(e.charCodeAt(n)-56320)}a<128?t[r++]=a:(a<2048?t[r++]=a>>6|192:(a<65536?t[r++]=a>>12|224:(t[r++]=a>>18|240,t[r++]=a>>12&63|128),t[r++]=a>>6&63|128),t[r++]=63&a|128)}return t},er=function(e){let t=0;for(let r=0;r<e.length;r++){let i=e.charCodeAt(r);i<128?t++:i<2048?t+=2:i>=55296&&i<=56319?(t+=4,r++):t+=3}return t};function ei(e,t=1e3,r=2){let i=t*Math.pow(r,e),n=Math.round(.5*i*(Math.random()-.5)*2);return Math.min(144e5,i+n)}function en(e){return e&&e._delegate?e._delegate:e}function ea(e){try{return(e.startsWith("http://")||e.startsWith("https://")?new URL(e).hostname:e).endsWith(".cloudworkstations.dev")}catch{return!1}}async function es(e){return(await fetch(e,{credentials:"include"})).ok}},85384:(e,t,r)=>{r.d(t,{Dk:()=>A,He:()=>D,KO:()=>S,MF:()=>w,Sx:()=>C,Wp:()=>I,g:()=>a.g,j6:()=>v,om:()=>m,xZ:()=>_});var i=r(53012),n=r(23650),a=r(75291),s=r(9118);class o{constructor(e){this.container=e}getPlatformInfoString(){return this.container.getProviders().map(e=>{let t;if(t=e.getComponent(),t?.type!=="VERSION")return null;{let t=e.getImmediate();return`${t.library}/${t.version}`}}).filter(e=>e).join(" ")}}let h="@firebase/app",c="0.14.12",l=new n.Vy("@firebase/app"),u="[DEFAULT]",d={[h]:"fire-core","@firebase/app-compat":"fire-core-compat","@firebase/analytics":"fire-analytics","@firebase/analytics-compat":"fire-analytics-compat","@firebase/app-check":"fire-app-check","@firebase/app-check-compat":"fire-app-check-compat","@firebase/auth":"fire-auth","@firebase/auth-compat":"fire-auth-compat","@firebase/database":"fire-rtdb","@firebase/data-connect":"fire-data-connect","@firebase/database-compat":"fire-rtdb-compat","@firebase/functions":"fire-fn","@firebase/functions-compat":"fire-fn-compat","@firebase/installations":"fire-iid","@firebase/installations-compat":"fire-iid-compat","@firebase/messaging":"fire-fcm","@firebase/messaging-compat":"fire-fcm-compat","@firebase/performance":"fire-perf","@firebase/performance-compat":"fire-perf-compat","@firebase/remote-config":"fire-rc","@firebase/remote-config-compat":"fire-rc-compat","@firebase/storage":"fire-gcs","@firebase/storage-compat":"fire-gcs-compat","@firebase/firestore":"fire-fst","@firebase/firestore-compat":"fire-fst-compat","@firebase/ai":"fire-vertex","fire-js":"fire-js",firebase:"fire-js-all"},f=new Map,p=new Map,g=new Map;function b(e,t){try{e.container.addComponent(t)}catch(r){l.debug(`Component ${t.name} failed to register with FirebaseApp ${e.name}`,r)}}function m(e){let t=e.name;if(g.has(t))return l.debug(`There were multiple attempts to register component ${t}.`),!1;
1for(let r of(g.set(t,e),f.values()))b(r,e);for(let t of p.values())b(t,e);return!0}function v(e,t){let r=e.container.getProvider("heartbeat").getImmediate({optional:!0});return r&&r.triggerHeartbeat(),e.container.getProvider(t)}function _(e){return null!=e&&void 0!==e.settings}let y=new a.FA("app","Firebase",{"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}'","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","server-app-deleted":"Firebase Server App has been deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invalid-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.","finalization-registry-not-supported":"FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.","invalid-server-app-environment":"FirebaseServerApp is not for use in browser environments."});class E{constructor(e,t,r){this._isDeleted=!1,this._options={...e},this._config={...t},this._name=t.name,this._automaticDataCollectionEnabled=t.automaticDataCollectionEnabled,this._container=r,this.container.addComponent(new i.uA("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(e){this.checkDestroyed(),this._automaticDataCollectionEnabled=e}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(e){this._isDeleted=e}checkDestroyed(){if(this.isDeleted)throw y.create("app-deleted",{appName:this._name})}}let w="12.13.0";function I(e,t={}){let r=e;"object"!=typeof t&&(t={name:t});let n={name:u,automaticDataCollectionEnabled:!0,...t},s=n.name;if("string"!=typeof s||!s)throw y.create("bad-app-name",{appName:String(s)});if(r||(r=(0,a.T9)()),!r)throw y.create("no-options");let o=f.get(s);if(o)if((0,a.bD)(r,o.options)&&(0,a.bD)(n,o.config))return o;else throw y.create("duplicate-app",{appName:s});let h=new i.h1(s);for(let e of g.values())h.addComponent(e);let c=new E(r,n,h);return f.set(s,c),c}function C(e=u){let t=f.get(e);if(!t&&e===u&&(0,a.T9)())return I();if(!t)throw y.create("no-app",{appName:e});return t}function A(){return Array.from(f.values())}function S(e,t,r){let n=d[e]??e;r&&(n+=`-${r}`);let a=n.match(/\s|\//),s=t.match(/\s|\//);if(a||s){let e=[`Unable to register library "${n}" with version "${t}":`];a&&e.push(`library name "${n}" contains illegal characters (whitespace or "/")`),a&&s&&e.push("and"),s&&e.push(`version name "${t}" contains illegal characters (whitespace or "/")`),l.warn(e.join(" "));return}m(new i.uA(`${n}-version`,()=>({library:n,version:t}),"VERSION"))}function D(e){(0,n.He)(e)}let O="firebase-heartbeat-store",k=null;function P(){return k||(k=(0,s.openDB)("firebase-heartbeat-database",1,{upgrade:(e,t)=>{if(0===t)try{e.createObjectStore(O)}catch(e){console.warn(e)}}}).catch(e=>{throw y.create("idb-open",{originalErrorMessage:e.message})})),k}async function L(e){try{let t=(await P()).transaction(O),r=await t.objectStore(O).get(T(e));return await t.done,r}catch(e){if(e instanceof a.g)l.warn(e.message);else{let t=y.create("idb-get",{originalErrorMessage:e?.message});l.warn(t.message)}}}async function B(e,t){try{let r=(await P()).transaction(O,"readwrite"),i=r.objectStore(O);await i.put(t,T(e)),await r.done}catch(e){if(e instanceof a.g)l.warn(e.message);else{let t=y.create("idb-set",{originalErrorMessage:e?.message});l.warn(t.message)}}}function T(e){return`${e.name}!${e.options.appId}`}class N{constructor(e){this.container=e,this._heartbeatsCache=null;const t=this.container.getProvider("app").getImmediate();this._storage=new M(t),this._heartbeatsCachePromise=this._storage.read().then(e=>(this._heartbeatsCache=e,e))}async triggerHeartbeat(){try{let e=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),t=R();if(this._heartbeatsCache?.heartbeats==null&&(this._heartbeatsCache=await this._heartbeatsCachePromise,this._heartbeatsCache?.heartbeats==null)||this._heartbeatsCache.lastSentHeartbeatDate===t||this._heartbeatsCache.heartbeats.some(e=>e.date===t))return;if(this._heartbeatsCache.heartbeats.push({date:t,agent:e}),this._heartbeatsCache.heartbeats.length>30){let e=function(e){if(0===e.length)return -1;let t=0,r=e[0].date;for(let i=1;i<e.length;i++)e[i].date<r&&(r=e[i].date,t=i);return t}(this._heartbeatsCache.heartbeats);this._heartbeatsCache.heartbeats.splice(e,1)}return this._storage.overwrite(this._heartbeatsCache)}catch(e){l.warn(e)}}async getHeartbeatsHeader(){try{if(null===this._heartbeatsCache&&await this._heartbeatsCachePromise,this._heartbeatsCache?.heartbeats==null||0===this._heartbeatsCache.heartbeats.length)return"";let e=R(),{heartbeatsToSend:t,unsentEntries:r}=function(e,t=1024){let r=[],i=e.slice();for(let n of e){let e=r.find(e=>e.agent===n.agent);if(e){if(e.dates.push(n.date),j(r)>t){e.dates.pop();break}}else if(r.push({agent:n.agent,dates:[n.date]}),j(r)>t){r.pop();break}i=i.slice(1)}return{heartbeatsToSend:r,unsentEntries:i}}(this._heartbeatsCache.heartbeats),i=(0,a.Uj)(JSON.stringify({version:2,heartbeats:t}));return this._heartbeatsCache.lastSentHeartbeatDate=e,r.length>0?(this._heartbeatsCache.heartbeats=r,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),i}catch(e){return l.warn(e),""}}}function R(){return new Date().toISOString().substring(0,10)}class M{constructor(e){this.app=e,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return!!(0,a.zW)()&&(0,a.eX)().then(()=>!0).catch(()=>!1)}async read(){if(!await this._canUseIndexedDBPromise)return{heartbeats:[]};{let e=await L(this.app);return e?.heartbeats?e:{heartbeats:[]}}}async overwrite(e){if(await this._canUseIndexedDBPromise){let t=await this.read();return B(this.app,{lastSentHeartbeatDate:e.lastSentHeartbeatDate??t.lastSentHeartbeatDate,heartbeats:e.heartbeats})}}async add(e){if(await this._canUseIndexedDBPromise){let t=await this.read();return B(this.app,{lastSentHeartbeatDate:e.lastSentHeartbeatDate??t.lastSentHeartbeatDate,heartbeats:[...t.heartbeats,...e.heartbeats]})}}}function j(e){return(0,a.Uj)(JSON.stringify({version:2,heartbeats:e})).length}m(new i.uA("platform-logger",e=>new o(e),"PRIVATE")),m(new i.uA("heartbeat",e=>new N(e),"PRIVATE")),S(h,c,""),S(h,c,"esm2020"),S("fire-js","")}}]);
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.