try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="3d927b19-be46-4f2d-86bf-e37466bd00cd",e._sentryDebugIdIdentifier="sentry-dbid-3d927b19-be46-4f2d-86bf-e37466bd00cd")}catch(e){}{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[new e.Error().stack]=Object.assign({},e._sentryModuleMetadata[new e.Error().stack],{"_sentryBundlerPluginAppKey:anthropic-apps":!0})}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1550],{0x4e4c4fe:(e,t,n)=>{let r,a;n.d(t,{MR:()=>p,P2:()=>f});let i=new WeakMap,o=new WeakMap,s=new WeakMap,c=new WeakMap,l=new WeakMap,u={get(e,t,n){if(e instanceof IDBTransaction){if("done"===t)return o.get(e);if("objectStoreNames"===t)return e.objectStoreNames||s.get(e);if("store"===t)return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return d(e[t])},set:(e,t,n)=>(e[t]=n,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function d(e){if(e instanceof IDBRequest){let t=new Promise((t,n)=>{let r=()=>{e.removeEventListener("success",a),e.removeEventListener("error",i)},a=()=>{t(d(e.result)),r()},i=()=>{n(e.error),r()};e.addEventListener("success",a),e.addEventListener("error",i)});return t.then(t=>{t instanceof IDBCursor&&i.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?(a||(a=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(e)?function(...t){return e.apply(h(this),t),d(i.get(this))}:function(...t){return d(e.apply(h(this),t))}:function(t,...n){let r=e.call(h(this),t,...n);return s.set(r,t.sort?t.sort():[t]),d(r)};return e instanceof IDBTransaction&&function(e){if(o.has(e))return;let t=new Promise((t,n)=>{let r=()=>{e.removeEventListener("complete",a),e.removeEventListener("error",i),e.removeEventListener("abort",i)},a=()=>{t(),r()},i=()=>{n(e.error||new DOMException("AbortError","AbortError")),r()};e.addEventListener("complete",a),e.addEventListener("error",i),e.addEventListener("abort",i)});o.set(e,t)}(e),(r||(r=[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 h=e=>l.get(e);function f(e,t,{blocked:n,upgrade:r,blocking:a,terminated:i}={}){let o=indexedDB.open(e,t),s=d(o);return r&&o.addEventListener("upgradeneeded",e=>{r(d(o.result),e.oldVersion,e.newVersion,d(o.transaction),e)}),n&&o.addEventListener("blocked",e=>n(e.oldVersion,e.newVersion,e)),s.then(e=>{i&&e.addEventListener("close",()=>i()),a&&e.addEventListener("versionchange",e=>a(e.oldVersion,e.newVersion,e))}).catch(()=>{}),s}function p(e,{blocked:t}={}){let n=indexedDB.deleteDatabase(e);return t&&n.addEventListener("blocked",e=>t(e.oldVersion,e)),d(n).then(()=>void 0)}let g=["get","getKey","getAll","getAllKeys","count"],b=["put","add","delete","clear"],m=new Map;function w(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&"string"==typeof t))return;if(m.get(t))return m.get(t);let n=t.replace(/FromIndex$/,""),r=t!==n,a=b.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!(a||g.includes(n)))return;let i=async function(e,...t){let i=this.transaction(e,a?"readwrite":"readonly"),o=i.store;return r&&(o=o.index(t.shift())),(await Promise.all([o[n](...t),a&&i.done]))[0]};return m.set(t,i),i}u=(e=>({...e,get:(t,n,r)=>w(t,n)||e.get(t,n,r),has:(t,n)=>!!w(t,n)||e.has(t,n)}))(u)},0x994de5af:(e,t,n)=>{n.d(t,{dG:()=>eM,gf:()=>eN,TT:()=>eO,xD:()=>eB});var r,a,i=n(0x24396bd4f),o=n(0xf108ec61),s=n(0x13c3626e9),c=n(0x4e4c4fe);let l="@firebase/installations",u="0.6.13",d=`w:${u}`,h="FIS_v2",f=new s.FA("installations","Installations",{"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"not-registered":"Firebase Installation is not registered.","installation-not-found":"Firebase Installation not found.","request-failed":'{$requestName} request failed with error "{$serverCode} {$serverStatus}: {$serverMessage}"',"app-offline":"Could not process request. Application offline.","delete-pending-registration":"Can't delete installation while there is a pending registration request."});function p(e){return e instanceof s.g&&e.code.includes("request-failed")}function g({projectId:e}){return`https://firebaseinstallations.googleapis.com/v1/projects/${e}/installations`}function b(e){return{token:e.token,requestStatus:2,expiresIn:Number(e.expiresIn.replace("s","000")),creationTime:Date.now()}}async function m(e,t){let n=(await t.json()).error;return f.create("request-failed",{requestName:e,serverCode:n.code,serverMessage:n.message,serverStatus:n.status})}function w({apiKey:e}){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":e})}async function y(e){let t=await e();return t.status>=500&&t.status<600?e():t}async function v({appConfig:e,heartbeatServiceProvider:t},{fid:n}){let r=g(e),a=w(e),i=t.getImmediate({optional:!0});if(i){let e=await i.getHeartbeatsHeader();e&&a.append("x-firebase-client",e)}let o={method:"POST",headers:a,body:JSON.stringify({fid:n,authVersion:h,appId:e.appId,sdkVersion:d})},s=await y(()=>fetch(r,o));if(s.ok){let e=await s.json();return{fid:e.fid||n,registrationStatus:2,refreshToken:e.refreshToken,authToken:b(e.authToken)}}throw await m("Create Installation",s)}function I(e){return new Promise(t=>{setTimeout(t,e)})}let S=/^[cdef][\w-]{21}$/;function _(e){return`${e.appName}!${e.appId}`}let E=new Map;function C(e,t){let n=_(e);D(n,t),function(e,t){let n=(!k&&"BroadcastChannel"in self&&((k=new BroadcastChannel("[Firebase] FID Change")).onmessage=e=>{D(e.data.key,e.data.fid)}),k);n&&n.postMessage({key:e,fid:t}),0===E.size&&k&&(k.close(),k=null)}(n,t)}function D(e,t){let n=E.get(e);if(n)for(let e of n)e(t)}let k=null,A="firebase-installations-store",T=null;function O(){return T||(T=(0,c.P2)("firebase-installations-database",1,{upgrade:(e,t)=>{0===t&&e.createObjectStore(A)}})),T}async function M(e,t){let n=_(e),r=(await O()).transaction(A,"readwrite"),a=r.objectStore(A),i=await a.get(n);return await a.put(t,n),await r.done,i&&i.fid===t.fid||C(e,t.fid),t}async function N(e){let t=_(e),n=(await O()).transaction(A,"readwrite");await n.objectStore(A).delete(t),await n.done}async function B(e,t){let n=_(e),r=(await O()).transaction(A,"readwrite"),a=r.objectStore(A),i=await a.get(n),o=t(i);return void 0===o?await a.delete(n):await a.put(o,n),await r.done,o&&(!i||i.fid!==o.fid)&&C(e,o.fid),o}async function j(e){let t,n=await B(e.appConfig,n=>{let r=function(e,t){if(0===t.registrationStatus){if(!navigator.onLine)return{installationEntry:t,registrationPromise:Promise.reject(f.create("app-offline"))};let n={fid:t.fid,registrationStatus:1,registrationTime:Date.now()},r=L(e,n);return{installationEntry:n,registrationPromise:r}}return 1===t.registrationStatus?{installationEntry:t,registrationPromise:P(e)}:{installationEntry:t}}(e,x(n||{fid:function(){try{var e;let t=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(t),t[0]=112+t[0]%16;let n=(e=t,btoa(String.fromCharCode(...e)).replace(/\+/g,"-").replace(/\//g,"_").substr(0,22));return S.test(n)?n:""}catch(e){return""}}(),registrationStatus:0}));return t=r.registrationPromise,r.installationEntry});return""===n.fid?{installationEntry:await t}:{installationEntry:n,registrationPromise:t}}async function L(e,t){try{let n=await v(e,t);return M(e.appConfig,n)}catch(n){throw p(n)&&409===n.customData.serverCode?await N(e.appConfig):await M(e.appConfig,{fid:t.fid,registrationStatus:0}),n}}async function P(e){let t=await R(e.appConfig);for(;1===t.registrationStatus;)await I(100),t=await R(e.appConfig);if(0===t.registrationStatus){let{installationEntry:t,registrationPromise:n}=await j(e);return n||t}return t}function R(e){return B(e,e=>{if(!e)throw f.create("installation-not-found");return x(e)})}function x(e){var t;return 1===(t=e).registrationStatus&&t.registrationTime+1e4fetch(r,o));if(s.ok)return b(await s.json());throw await m("Generate Auth Token",s)}async function $(e,t=!1){let n,r=await B(e.appConfig,r=>{var a;if(!W(r))throw f.create("not-registered");let i=r.authToken;if(!t&&2===(a=i).requestStatus&&!function(e){let t=Date.now();return t{var t;if(!W(e))throw f.create("not-registered");return 1===(t=e.authToken).requestStatus&&t.requestTime+1e4{let t=e.getProvider("app").getImmediate(),n=function(e){if(!e||!e.options)throw G("App Configuration");if(!e.name)throw G("App Name");for(let t of["projectId","apiKey","appId"])if(!e.options[t])throw G(t);return{appName:e.name,projectId:e.options.projectId,apiKey:e.options.apiKey,appId:e.options.appId}}(t),r=(0,i.j6)(t,"heartbeat");return{app:t,appConfig:n,heartbeatServiceProvider:r,_delete:()=>Promise.resolve()}},"PUBLIC")),(0,i.om)(new o.uA("installations-internal",e=>{let t=e.getProvider("app").getImmediate(),n=(0,i.j6)(t,J).getImmediate();return{getId:()=>U(n),getToken:e=>z(n,e)}},"PRIVATE")),(0,i.KO)(l,u),(0,i.KO)(l,u,"esm2017");let Y="BDOU99-h67HcA6JeFXHbSNMu7e2yNNu3RzoMj8TM4W88jITfq7ZmPvIM1Iv-4_l2LxQcYwhqby2xGpWwzjfAnG4",Z="google.c.a.c_id";function X(e){return btoa(String.fromCharCode(...new Uint8Array(e))).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}!function(e){e[e.DATA_MESSAGE=1]="DATA_MESSAGE",e[e.DISPLAY_NOTIFICATION=3]="DISPLAY_NOTIFICATION"}(r||(r={})),function(e){e.PUSH_RECEIVED="push-received",e.NOTIFICATION_CLICKED="notification-clicked"}(a||(a={}));let Q="fcm_token_details_db",ee="fcm_token_object_Store";async function et(e){if("databases"in indexedDB&&!(await indexedDB.databases()).map(e=>e.name).includes(Q))return null;let t=null;return(await (0,c.P2)(Q,5,{upgrade:async(n,r,a,i)=>{var o;if(r<2||!n.objectStoreNames.contains(ee))return;let s=i.objectStore(ee),c=await s.index("fcmSenderId").get(e);if(await s.clear(),c)if(2===r){if(!c.auth||!c.p256dh||!c.endpoint)return;t={token:c.fcmToken,createTime:null!=(o=c.createTime)?o:Date.now(),subscriptionOptions:{auth:c.auth,p256dh:c.p256dh,endpoint:c.endpoint,swScope:c.swScope,vapidKey:"string"==typeof c.vapidKey?c.vapidKey:X(c.vapidKey)}}}else 3===r?t={token:c.fcmToken,createTime:c.createTime,subscriptionOptions:{auth:X(c.auth),p256dh:X(c.p256dh),endpoint:c.endpoint,swScope:c.swScope,vapidKey:X(c.vapidKey)}}:4===r&&(t={token:c.fcmToken,createTime:c.createTime,subscriptionOptions:{auth:X(c.auth),p256dh:X(c.p256dh),endpoint:c.endpoint,swScope:c.swScope,vapidKey:X(c.vapidKey)}})}})).close(),await (0,c.MR)(Q),await (0,c.MR)("fcm_vapid_details_db"),await (0,c.MR)("undefined"),!function(e){if(!e||!e.subscriptionOptions)return!1;let{subscriptionOptions:t}=e;return"number"==typeof e.createTime&&e.createTime>0&&"string"==typeof e.token&&e.token.length>0&&"string"==typeof t.auth&&t.auth.length>0&&"string"==typeof t.p256dh&&t.p256dh.length>0&&"string"==typeof t.endpoint&&t.endpoint.length>0&&"string"==typeof t.swScope&&t.swScope.length>0&&"string"==typeof t.vapidKey&&t.vapidKey.length>0}(t)?null:t}let en="firebase-messaging-store",er=null;function ea(){return er||(er=(0,c.P2)("firebase-messaging-database",1,{upgrade:(e,t)=>{0===t&&e.createObjectStore(en)}})),er}async function ei(e){let t=function({appConfig:e}){return e.appId}(e),n=await ea(),r=await n.transaction(en).objectStore(en).get(t);if(r)return r;{let t=await et(e.appConfig.senderId);if(t)return await eo(e,t),t}}async function eo(e,t){let n=function({appConfig:e}){return e.appId}(e),r=(await ea()).transaction(en,"readwrite");return await r.objectStore(en).put(t,n),await r.done,t}let es=new s.FA("messaging","Messaging",{"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."});async function ec(e,t){let n,r={method:"POST",headers:await eh(e),body:JSON.stringify(ef(t))};try{let t=await fetch(ed(e.appConfig),r);n=await t.json()}catch(e){throw es.create("token-subscribe-failed",{errorInfo:null==e?void 0:e.toString()})}if(n.error){let e=n.error.message;throw es.create("token-subscribe-failed",{errorInfo:e})}if(!n.token)throw es.create("token-subscribe-no-token");return n.token}async function el(e,t){let n,r={method:"PATCH",headers:await eh(e),body:JSON.stringify(ef(t.subscriptionOptions))};try{let a=await fetch(`${ed(e.appConfig)}/${t.token}`,r);n=await a.json()}catch(e){throw es.create("token-update-failed",{errorInfo:null==e?void 0:e.toString()})}if(n.error){let e=n.error.message;throw es.create("token-update-failed",{errorInfo:e})}if(!n.token)throw es.create("token-update-no-token");return n.token}async function eu(e,t){let n=await eh(e);try{let r=await fetch(`${ed(e.appConfig)}/${t}`,{method:"DELETE",headers:n}),a=await r.json();if(a.error){let e=a.error.message;throw es.create("token-unsubscribe-failed",{errorInfo:e})}}catch(e){throw es.create("token-unsubscribe-failed",{errorInfo:null==e?void 0:e.toString()})}}function ed({projectId:e}){return`https://fcmregistrations.googleapis.com/v1/projects/${e}/registrations`}async function eh({appConfig:e,installations:t}){let n=await t.getToken();return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":e.apiKey,"x-goog-firebase-installations-auth":`FIS ${n}`})}function ef({p256dh:e,auth:t,endpoint:n,vapidKey:r}){let a={web:{endpoint:n,auth:t,p256dh:e}};return r!==Y&&(a.web.applicationPubKey=r),a}async function ep(e){let t=await em(e.swRegistration,e.vapidKey),n={vapidKey:e.vapidKey,swScope:e.swRegistration.scope,endpoint:t.endpoint,auth:X(t.getKey("auth")),p256dh:X(t.getKey("p256dh"))},r=await ei(e.firebaseDependencies);if(!r)return eb(e.firebaseDependencies,n);if(function(e,t){let n=t.vapidKey===e.vapidKey,r=t.endpoint===e.endpoint,a=t.auth===e.auth,i=t.p256dh===e.p256dh;return n&&r&&a&&i}(r.subscriptionOptions,n))if(Date.now()>=r.createTime+6048e5)return eg(e,{token:r.token,createTime:Date.now(),subscriptionOptions:n});else return r.token;try{await eu(e.firebaseDependencies,r.token)}catch(e){console.warn(e)}return eb(e.firebaseDependencies,n)}async function eg(e,t){try{let n=await el(e.firebaseDependencies,t),r=Object.assign(Object.assign({},t),{token:n,createTime:Date.now()});return await eo(e.firebaseDependencies,r),n}catch(e){throw e}}async function eb(e,t){let n={token:await ec(e,t),createTime:Date.now(),subscriptionOptions:t};return await eo(e,n),n.token}async function em(e,t){let n=await e.pushManager.getSubscription();return n||e.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:function(e){let t="=".repeat((4-e.length%4)%4),n=atob((e+t).replace(/\-/g,"+").replace(/_/g,"/")),r=new Uint8Array(n.length);for(let e=0;e{}),await eS(e.swRegistration)}catch(e){throw es.create("failed-service-worker-registration",{browserErrorMessage:null==e?void 0:e.message})}}async function eS(e){return new Promise((t,n)=>{let r=setTimeout(()=>n(Error("Service worker not registered after 10000 ms")),1e4),a=e.installing||e.waiting;e.active?(clearTimeout(r),t()):a?a.onstatechange=e=>{var n;(null==(n=e.target)?void 0:n.state)==="activated"&&(a.onstatechange=null,clearTimeout(r),t())}:(clearTimeout(r),n(Error("No incoming service worker found.")))})}async function e_(e,t){if(t||e.swRegistration||await eI(e),t||!e.swRegistration){if(!(t instanceof ServiceWorkerRegistration))throw es.create("invalid-sw-registration");e.swRegistration=t}}async function eE(e,t){t?e.vapidKey=t:e.vapidKey||(e.vapidKey=Y)}async function eC(e,t){if(!navigator)throw es.create("only-available-in-window");if("default"===Notification.permission&&await Notification.requestPermission(),"granted"!==Notification.permission)throw es.create("permission-blocked");return await eE(e,null==t?void 0:t.vapidKey),await e_(e,null==t?void 0:t.serviceWorkerRegistration),ep(e)}async function eD(e,t,n){let r=function(e){switch(e){case a.NOTIFICATION_CLICKED:return"notification_open";case a.PUSH_RECEIVED:return"notification_foreground";default:throw Error()}}(t);(await e.firebaseDependencies.analyticsProvider.get()).logEvent(r,{message_id:n[Z],message_name:n["google.c.a.c_l"],message_time:n["google.c.a.ts"],message_device_time:Math.floor(Date.now()/1e3)})}async function ek(e,t){let n=t.data;if(!n.isFirebaseMessaging)return;e.onMessageHandler&&n.messageType===a.PUSH_RECEIVED&&("function"==typeof e.onMessageHandler?e.onMessageHandler(ew(n)):e.onMessageHandler.next(ew(n)));let r=n.data;"object"==typeof r&&r&&Z in r&&"1"===r["google.c.a.e"]&&await eD(e,n.messageType,r)}let eA="@firebase/messaging",eT="0.12.17";async function eO(){try{await (0,s.eX)()}catch(e){return!1}return"undefined"!=typeof window&&(0,s.zW)()&&(0,s.dM)()&&"serviceWorker"in navigator&&"PushManager"in window&&"Notification"in window&&"fetch"in window&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSubscription.prototype.hasOwnProperty("getKey")}function eM(e=(0,i.Sx)()){return eO().then(e=>{if(!e)throw es.create("unsupported-browser")},e=>{throw es.create("indexed-db-unsupported")}),(0,i.j6)((0,s.Ku)(e),"messaging").getImmediate()}async function eN(e,t){return eC(e=(0,s.Ku)(e),t)}function eB(e,t){var n=e=(0,s.Ku)(e);if(!navigator)throw es.create("only-available-in-window");return n.onMessageHandler=t,()=>{n.onMessageHandler=null}}(0,i.om)(new o.uA("messaging",e=>{let t=new ev(e.getProvider("app").getImmediate(),e.getProvider("installations-internal").getImmediate(),e.getProvider("analytics-internal"));return navigator.serviceWorker.addEventListener("message",e=>ek(t,e)),t},"PUBLIC")),(0,i.om)(new o.uA("messaging-internal",e=>{let t=e.getProvider("messaging").getImmediate();return{getToken:e=>eC(t,e)}},"PRIVATE")),(0,i.KO)(eA,eT),(0,i.KO)(eA,eT,"esm2017")},0xf108ec61:(e,t,n)=>{n.d(t,{h1:()=>s,uA:()=>a});var r=n(0x13c3626e9);class a{constructor(e,t,n){this.name=e,this.instanceFactory=t,this.type=n,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(e){return this.instantiationMode=e,this}setMultipleInstances(e){return this.multipleInstances=e,this}setServiceProps(e){return this.serviceProps=e,this}setInstanceCreatedCallback(e){return this.onInstanceCreated=e,this}}let i="[DEFAULT]";class o{constructor(e,t){this.name=e,this.container=t,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(e){let t=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(t)){let e=new r.cY;if(this.instancesDeferred.set(t,e),this.isInitialized(t)||this.shouldAutoInitialize())try{let n=this.getOrInitializeService({instanceIdentifier:t});n&&e.resolve(n)}catch(e){}}return this.instancesDeferred.get(t).promise}getImmediate(e){var t;let n=this.normalizeInstanceIdentifier(null==e?void 0:e.identifier),r=null!=(t=null==e?void 0:e.optional)&&t;if(this.isInitialized(n)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:n})}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:i})}catch(e){}for(let[e,t]of this.instancesDeferred.entries()){let n=this.normalizeInstanceIdentifier(e);try{let e=this.getOrInitializeService({instanceIdentifier:n});t.resolve(e)}catch(e){}}}}clearInstance(e=i){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=i){return this.instances.has(e)}getOptions(e=i){return this.instancesOptions.get(e)||{}}initialize(e={}){let{options:t={}}=e,n=this.normalizeInstanceIdentifier(e.instanceIdentifier);if(this.isInitialized(n))throw Error(`${this.name}(${n}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);let r=this.getOrInitializeService({instanceIdentifier:n,options:t});for(let[e,t]of this.instancesDeferred.entries())n===this.normalizeInstanceIdentifier(e)&&t.resolve(r);return r}onInit(e,t){var n;let r=this.normalizeInstanceIdentifier(t),a=null!=(n=this.onInitCallbacks.get(r))?n:new Set;a.add(e),this.onInitCallbacks.set(r,a);let i=this.instances.get(r);return i&&e(i,r),()=>{a.delete(e)}}invokeOnInitCallbacks(e,t){let n=this.onInitCallbacks.get(t);if(n)for(let r of n)try{r(e,t)}catch(e){}}getOrInitializeService({instanceIdentifier:e,options:t={}}){var n;let r=this.instances.get(e);if(!r&&this.component&&(r=this.component.instanceFactory(this.container,{instanceIdentifier:(n=e)===i?void 0:n,options:t}),this.instances.set(e,r),this.instancesOptions.set(e,t),this.invokeOnInitCallbacks(r,e),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,e,r)}catch(e){}return r||null}normalizeInstanceIdentifier(e=i){return this.component?this.component.multipleInstances?e:i:e}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}class s{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 o(e,this);return this.providers.set(e,t),t}getProviders(){return Array.from(this.providers.values())}}},0x1206ff42e:(e,t,n)=>{n.d(t,{t:()=>r});let r=(0,n(0x152020469).w)("Chtnb29nbGUvcHJvdG9idWYvZW1wdHkucHJvdG8SD2dvb2dsZS5wcm90b2J1ZiIHCgVFbXB0eUJ9ChNjb20uZ29vZ2xlLnByb3RvYnVmQgpFbXB0eVByb3RvUAFaLmdvb2dsZS5nb2xhbmcub3JnL3Byb3RvYnVmL3R5cGVzL2tub3duL2VtcHR5cGL4AQGiAgNHUEKqAh5Hb29nbGUuUHJvdG9idWYuV2VsbEtub3duVHlwZXNiBnByb3RvMw")},0x13c3626e9:(e,t,n)=>{n.d(t,{cY:()=>h,FA:()=>m,g:()=>b,dM:()=>g,u:()=>u,Uj:()=>l,bD:()=>function e(t,n){if(t===n)return!0;let r=Object.keys(t),a=Object.keys(n);for(let i of r){if(!a.includes(i))return!1;let r=t[i],o=n[i];if(y(r)&&y(o)){if(!e(r,o))return!1}else if(r!==o)return!1}for(let e of a)if(!r.includes(e))return!1;return!0},T9:()=>d,Ku:()=>v,zW:()=>f,eX:()=>p});var r=n(0xc6857cab);let a=function(e){let t=[],n=0;for(let r=0;r>6|192:((64512&a)==55296&&r+1>18|240,t[n++]=a>>12&63|128):t[n++]=a>>12|224,t[n++]=a>>6&63|128),t[n++]=63&a|128)}return t},i=function(e){let t=[],n=0,r=0;for(;n191&&a<224){let i=e[n++];t[r++]=String.fromCharCode((31&a)<<6|63&i)}else if(a>239&&a<365){let i=e[n++],o=((7&a)<<18|(63&i)<<12|(63&e[n++])<<6|63&e[n++])-65536;t[r++]=String.fromCharCode(55296+(o>>10)),t[r++]=String.fromCharCode(56320+(1023&o))}else{let i=e[n++],o=e[n++];t[r++]=String.fromCharCode((15&a)<<12|(63&i)<<6|63&o)}}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 n=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[];for(let t=0;t>2,u=(3&a)<<4|o>>4,d=(15&o)<<2|c>>6,h=63&c;!s&&(h=64,i||(d=64)),r.push(n[l],n[u],n[d],n[h])}return r.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):i(this.decodeStringToByteArray(e,t))},decodeStringToByteArray(e,t){this.init_();let n=t?this.charToByteMapWebSafe_:this.charToByteMap_,r=[];for(let t=0;t>4;if(r.push(l),64!==o){let e=i<<4&240|o>>2;if(r.push(e),64!==c){let e=o<<6&192|c;r.push(e)}}}return r},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let e=0;e=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}};class s 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},d=()=>{var e;return null==(e=(()=>{try{return function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw Error("Unable to locate global object.")}().__FIREBASE_DEFAULTS__||(()=>{if(void 0===r||void 0===r.env)return;let e=r.env.__FIREBASE_DEFAULTS__;if(e)return JSON.parse(e)})()||(()=>{let e;if("undefined"==typeof document)return;try{e=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch(e){return}let t=e&&u(e[1]);return t&&JSON.parse(t)})()}catch(e){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${e}`);return}})())?void 0:e.config};class h{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}wrapCallback(e){return(t,n)=>{t?this.reject(t):this.resolve(n),"function"==typeof e&&(this.promise.catch(()=>{}),1===e.length?e(t):e(t,n))}}}function f(){try{return"object"==typeof indexedDB}catch(e){return!1}}function p(){return new Promise((e,t)=>{try{let n=!0,r="validate-browser-context-for-indexeddb-analytics-module",a=self.indexedDB.open(r);a.onsuccess=()=>{a.result.close(),n||self.indexedDB.deleteDatabase(r),e(!0)},a.onupgradeneeded=()=>{n=!1},a.onerror=()=>{var e;t((null==(e=a.error)?void 0:e.message)||"")}}catch(e){t(e)}})}function g(){return"undefined"!=typeof navigator&&!!navigator.cookieEnabled}class b extends Error{constructor(e,t,n){super(t),this.code=e,this.customData=n,this.name="FirebaseError",Object.setPrototypeOf(this,b.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,m.prototype.create)}}class m{constructor(e,t,n){this.service=e,this.serviceName=t,this.errors=n}create(e,...t){var n,r;let a=t[0]||{},i=`${this.service}/${e}`,o=this.errors[e],s=o?(n=o,r=a,n.replace(w,(e,t)=>{let n=r[t];return null!=n?String(n):`<${t}?>`})):"Error",c=`${this.serviceName}: ${s} (${i}).`;return new b(i,c,a)}}let w=/\{\$([^}]+)}/g;function y(e){return null!==e&&"object"==typeof e}function v(e){return e&&e._delegate?e._delegate:e}},0x17e91b9fd:(e,t,n)=>{n.d(t,{Dk:()=>r.Dk,Sx:()=>r.Sx,Wp:()=>r.Wp});var r=n(0x24396bd4f);(0,r.KO)("firebase","11.4.0","app")},0x24396bd4f:(e,t,n)=>{n.d(t,{j6:()=>E,om:()=>_,Sx:()=>A,Dk:()=>T,Wp:()=>k,KO:()=>O});var r,a=n(0xf108ec61);let i=[];!function(e){e[e.DEBUG=0]="DEBUG",e[e.VERBOSE=1]="VERBOSE",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.ERROR=4]="ERROR",e[e.SILENT=5]="SILENT"}(r||(r={}));let o={debug:r.DEBUG,verbose:r.VERBOSE,info:r.INFO,warn:r.WARN,error:r.ERROR,silent:r.SILENT},s=r.INFO,c={[r.DEBUG]:"log",[r.VERBOSE]:"log",[r.INFO]:"info",[r.WARN]:"warn",[r.ERROR]:"error"},l=(e,t,...n)=>{if(t{if(!function(e){let t=e.getComponent();return(null==t?void 0:t.type)==="VERSION"}(e))return null;{let t=e.getImmediate();return`${t.library}/${t.version}`}}).filter(e=>e).join(" ")}}let p="@firebase/app",g="0.11.2",b=new u("@firebase/app"),m="[DEFAULT]",w={[p]:"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/vertexai":"fire-vertex","fire-js":"fire-js",firebase:"fire-js-all"},y=new Map,v=new Map,I=new Map;function S(e,t){try{e.container.addComponent(t)}catch(n){b.debug(`Component ${t.name} failed to register with FirebaseApp ${e.name}`,n)}}function _(e){let t=e.name;if(I.has(t))return b.debug(`There were multiple attempts to register component ${t}.`),!1;for(let n of(I.set(t,e),y.values()))S(n,e);for(let t of v.values())S(t,e);return!0}function E(e,t){let n=e.container.getProvider("heartbeat").getImmediate({optional:!0});return n&&n.triggerHeartbeat(),e.container.getProvider(t)}let C=new d.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 D{constructor(e,t,n){this._isDeleted=!1,this._options=Object.assign({},e),this._config=Object.assign({},t),this._name=t.name,this._automaticDataCollectionEnabled=t.automaticDataCollectionEnabled,this._container=n,this.container.addComponent(new a.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 C.create("app-deleted",{appName:this._name})}}function k(e,t={}){let n=e;"object"!=typeof t&&(t={name:t});let r=Object.assign({name:m,automaticDataCollectionEnabled:!1},t),i=r.name;if("string"!=typeof i||!i)throw C.create("bad-app-name",{appName:String(i)});if(n||(n=(0,d.T9)()),!n)throw C.create("no-options");let o=y.get(i);if(o)if((0,d.bD)(n,o.options)&&(0,d.bD)(r,o.config))return o;else throw C.create("duplicate-app",{appName:i});let s=new a.h1(i);for(let e of I.values())s.addComponent(e);let c=new D(n,r,s);return y.set(i,c),c}function A(e=m){let t=y.get(e);if(!t&&e===m&&(0,d.T9)())return k();if(!t)throw C.create("no-app",{appName:e});return t}function T(){return Array.from(y.values())}function O(e,t,n){var r;let i=null!=(r=w[e])?r:e;n&&(i+=`-${n}`);let o=i.match(/\s|\//),s=t.match(/\s|\//);if(o||s){let e=[`Unable to register library "${i}" with version "${t}":`];o&&e.push(`library name "${i}" contains illegal characters (whitespace or "/")`),o&&s&&e.push("and"),s&&e.push(`version name "${t}" contains illegal characters (whitespace or "/")`),b.warn(e.join(" "));return}_(new a.uA(`${i}-version`,()=>({library:i,version:t}),"VERSION"))}let M="firebase-heartbeat-store",N=null;function B(){return N||(N=(0,h.P2)("firebase-heartbeat-database",1,{upgrade:(e,t)=>{if(0===t)try{e.createObjectStore(M)}catch(e){console.warn(e)}}}).catch(e=>{throw C.create("idb-open",{originalErrorMessage:e.message})})),N}async function j(e){try{let t=(await B()).transaction(M),n=await t.objectStore(M).get(P(e));return await t.done,n}catch(e){if(e instanceof d.g)b.warn(e.message);else{let t=C.create("idb-get",{originalErrorMessage:null==e?void 0:e.message});b.warn(t.message)}}}async function L(e,t){try{let n=(await B()).transaction(M,"readwrite"),r=n.objectStore(M);await r.put(t,P(e)),await n.done}catch(e){if(e instanceof d.g)b.warn(e.message);else{let t=C.create("idb-set",{originalErrorMessage:null==e?void 0:e.message});b.warn(t.message)}}}function P(e){return`${e.name}!${e.options.appId}`}class R{constructor(e){this.container=e,this._heartbeatsCache=null;let t=this.container.getProvider("app").getImmediate();this._storage=new H(t),this._heartbeatsCachePromise=this._storage.read().then(e=>(this._heartbeatsCache=e,e))}async triggerHeartbeat(){var e,t;try{let n=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),r=x();if((null==(e=this._heartbeatsCache)?void 0:e.heartbeats)==null&&(this._heartbeatsCache=await this._heartbeatsCachePromise,(null==(t=this._heartbeatsCache)?void 0:t.heartbeats)==null)||this._heartbeatsCache.lastSentHeartbeatDate===r||this._heartbeatsCache.heartbeats.some(e=>e.date===r))return;if(this._heartbeatsCache.heartbeats.push({date:r,agent:n}),this._heartbeatsCache.heartbeats.length>30){let e=function(e){if(0===e.length)return -1;let t=0,n=e[0].date;for(let r=1;re.agent===a.agent);if(e){if(e.dates.push(a.date),$(n)>t){e.dates.pop();break}}else if(n.push({agent:a.agent,dates:[a.date]}),$(n)>t){n.pop();break}r=r.slice(1)}return{heartbeatsToSend:n,unsentEntries:r}}(this._heartbeatsCache.heartbeats),a=(0,d.Uj)(JSON.stringify({version:2,heartbeats:n}));return this._heartbeatsCache.lastSentHeartbeatDate=t,r.length>0?(this._heartbeatsCache.heartbeats=r,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),a}catch(e){return b.warn(e),""}}}function x(){return new Date().toISOString().substring(0,10)}class H{constructor(e){this.app=e,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return!!(0,d.zW)()&&(0,d.eX)().then(()=>!0).catch(()=>!1)}async read(){if(!await this._canUseIndexedDBPromise)return{heartbeats:[]};{let e=await j(this.app);return(null==e?void 0:e.heartbeats)?e:{heartbeats:[]}}}async overwrite(e){var t;if(await this._canUseIndexedDBPromise){let n=await this.read();return L(this.app,{lastSentHeartbeatDate:null!=(t=e.lastSentHeartbeatDate)?t:n.lastSentHeartbeatDate,heartbeats:e.heartbeats})}}async add(e){var t;if(await this._canUseIndexedDBPromise){let n=await this.read();return L(this.app,{lastSentHeartbeatDate:null!=(t=e.lastSentHeartbeatDate)?t:n.lastSentHeartbeatDate,heartbeats:[...n.heartbeats,...e.heartbeats]})}}}function $(e){return(0,d.Uj)(JSON.stringify({version:2,heartbeats:e})).length}_(new a.uA("platform-logger",e=>new f(e),"PRIVATE")),_(new a.uA("heartbeat",e=>new R(e),"PRIVATE")),O(p,g,""),O(p,g,"esm2017"),O("fire-js","")}}]);