PageSourceSearch

https://wishupon.app/_next/static/chunks/1426-a55b7c6a19ecb25f.js

js wishupon.app collected 2026-09-24 10:41:01 UTC 191,628 bytes, 22 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1426],{9113:(e,t,n)=>{var r=n(82576),i=n(42071),s=n(76977),a=n(25281);let o=new(n(89606)).Vy("@firebase/database-compat"),l=function(e){o.warn("FIREBASE WARNING: "+e)},h=function(e,t,n,r){if((!r||void 0!==n)&&"boolean"!=typeof n)throw Error((0,a.dI)(e,t)+"must be a boolean.")},u=function(e,t,n){if(!n||void 0!==t)switch(t){case"value":case"child_added":case"child_removed":case"child_changed":case"child_moved":break;default:throw Error((0,a.dI)(e,"eventType")+'must be a valid event type = "value", "child_added", "child_removed", "child_changed", or "child_moved".')}};class c{constructor(e){this._delegate=e}cancel(e){(0,a.od)("OnDisconnect.cancel",0,1,arguments.length),(0,a.oD)("OnDisconnect.cancel","onComplete",e,!0);let t=this._delegate.cancel();return e&&t.then(()=>e(null),t=>e(t)),t}remove(e){(0,a.od)("OnDisconnect.remove",0,1,arguments.length),(0,a.oD)("OnDisconnect.remove","onComplete",e,!0);let t=this._delegate.remove();return e&&t.then(()=>e(null),t=>e(t)),t}set(e,t){(0,a.od)("OnDisconnect.set",1,2,arguments.length),(0,a.oD)("OnDisconnect.set","onComplete",t,!0);let n=this._delegate.set(e);return t&&n.then(()=>t(null),e=>t(e)),n}setWithPriority(e,t,n){(0,a.od)("OnDisconnect.setWithPriority",2,3,arguments.length),(0,a.oD)("OnDisconnect.setWithPriority","onComplete",n,!0);let r=this._delegate.setWithPriority(e,t);return n&&r.then(()=>n(null),e=>n(e)),r}update(e,t){if((0,a.od)("OnDisconnect.update",1,2,arguments.length),Array.isArray(e)){let t={};for(let n=0;n<e.length;++n)t[""+n]=e[n];e=t,l("Passing an Array to firebase.database.onDisconnect().update() is deprecated. Use set() if you want to overwrite the existing data, or an Object with integer keys if you really do want to only update some of the children.")}(0,a.oD)("OnDisconnect.update","onComplete",t,!0);let n=this._delegate.update(e);return t&&n.then(()=>t(null),e=>t(e)),n}}class d{constructor(e,t){this.committed=e,this.snapshot=t}toJSON(){return(0,a.od)("TransactionResult.toJSON",0,1,arguments.length),{committed:this.committed,snapshot:this.snapshot.toJSON()}}}class f{constructor(e,t){this._database=e,this._delegate=t}val(){return(0,a.od)("DataSnapshot.val",0,0,arguments.length),this._delegate.val()}exportVal(){return(0,a.od)("DataSnapshot.exportVal",0,0,arguments.length),this._delegate.exportVal()}toJSON(){return(0,a.od)("DataSnapshot.toJSON",0,1,arguments.length),this._delegate.toJSON()}exists(){return(0,a.od)("DataSnapshot.exists",0,0,arguments.length),this._delegate.exists()}child(e){return(0,a.od)("DataSnapshot.child",0,1,arguments.length),e=String(e),(0,s.Kd)("DataSnapshot.child","path",e,!1),new f(this._database,this._delegate.child(e))}hasChild(e){return(0,a.od)("DataSnapshot.hasChild",1,1,arguments.length),(0,s.Kd)("DataSnapshot.hasChild","path",e,!1),this._delegate.hasChild(e)}getPriority(){return(0,a.od)("DataSnapshot.getPriority",0,0,arguments.length),this._delegate.priority}forEach(e){return(0,a.od)("DataSnapshot.forEach",1,1,arguments.length),(0,a.oD)("DataSnapshot.forEach","action",e,!1),this._delegate.forEach(t=>e(new f(this._database,t)))}hasChildren(){return(0,a.od)("DataSnapshot.hasChildren",0,0,arguments.length),this._delegate.hasChildren()}get key(){return this._delegate.key}numChildren(){return(0,a.od)("DataSnapshot.numChildren",0,0,arguments.length),this._delegate.size}getRef(){return(0,a.od)("DataSnapshot.ref",0,0,arguments.length),new g(this._database,this._delegate.ref)}get ref(){return this.getRef()}}class p{constructor(e,t){this.database=e,this._delegate=t}on(e,t,n,r){var i;(0,a.od)("Query.on",2,4,arguments.length),(0,a.oD)("Query.on","callback",t,!1);
1let o=p.getCancelAndContextArgs_("Query.on",n,r),l=(e,n)=>{t.call(o.context,new f(this.database,e),n)};l.userCallback=t,l.context=o.context;let h=null==(i=o.cancel)?void 0:i.bind(o.context);switch(e){case"value":return(0,s.Zy)(this._delegate,l,h),t;case"child_added":return(0,s._O)(this._delegate,l,h),t;case"child_removed":return(0,s.U0)(this._delegate,l,h),t;case"child_changed":return(0,s.M4)(this._delegate,l,h),t;case"child_moved":return(0,s.X1)(this._delegate,l,h),t;default:throw Error((0,a.dI)("Query.on","eventType")+'must be a valid event type = "value", "child_added", "child_removed", "child_changed", or "child_moved".')}}off(e,t,n){if((0,a.od)("Query.off",0,3,arguments.length),u("Query.off",e,!0),(0,a.oD)("Query.off","callback",t,!0),(0,a.HN)("Query.off","context",n,!0),t){let r=()=>{};r.userCallback=t,r.context=n,(0,s.AU)(this._delegate,e,r)}else(0,s.AU)(this._delegate,e)}get(){return(0,s.Jt)(this._delegate).then(e=>new f(this.database,e))}once(e,t,n,r){(0,a.od)("Query.once",1,4,arguments.length),(0,a.oD)("Query.once","callback",t,!0);let i=p.getCancelAndContextArgs_("Query.once",n,r),o=new a.cY,l=(e,n)=>{let r=new f(this.database,e);t&&t.call(i.context,r,n),o.resolve(r)};l.userCallback=t,l.context=i.context;let h=e=>{i.cancel&&i.cancel.call(i.context,e),o.reject(e)};switch(e){case"value":(0,s.Zy)(this._delegate,l,h,{onlyOnce:!0});break;case"child_added":(0,s._O)(this._delegate,l,h,{onlyOnce:!0});break;case"child_removed":(0,s.U0)(this._delegate,l,h,{onlyOnce:!0});break;case"child_changed":(0,s.M4)(this._delegate,l,h,{onlyOnce:!0});break;case"child_moved":(0,s.X1)(this._delegate,l,h,{onlyOnce:!0});break;default:throw Error((0,a.dI)("Query.once","eventType")+'must be a valid event type = "value", "child_added", "child_removed", "child_changed", or "child_moved".')}return o.promise}limitToFirst(e){return(0,a.od)("Query.limitToFirst",1,1,arguments.length),new p(this.database,(0,s.P)(this._delegate,(0,s.pk)(e)))}limitToLast(e){return(0,a.od)("Query.limitToLast",1,1,arguments.length),new p(this.database,(0,s.P)(this._delegate,(0,s.$1)(e)))}orderByChild(e){return(0,a.od)("Query.orderByChild",1,1,arguments.length),new p(this.database,(0,s.P)(this._delegate,(0,s.kT)(e)))}orderByKey(){return(0,a.od)("Query.orderByKey",0,0,arguments.length),new p(this.database,(0,s.P)(this._delegate,(0,s.JK)()))}orderByPriority(){return(0,a.od)("Query.orderByPriority",0,0,arguments.length),new p(this.database,(0,s.P)(this._delegate,(0,s.og)()))}orderByValue(){return(0,a.od)("Query.orderByValue",0,0,arguments.length),new p(this.database,(0,s.P)(this._delegate,(0,s.VR)()))}startAt(e=null,t){return(0,a.od)("Query.startAt",0,2,arguments.length),new p(this.database,(0,s.P)(this._delegate,(0,s.EO)(e,t)))}startAfter(e=null,t){return(0,a.od)("Query.startAfter",0,2,arguments.length),new p(this.database,(0,s.P)(this._delegate,(0,s.HM)(e,t)))}endAt(e=null,t){return(0,a.od)("Query.endAt",0,2,arguments.length),new p(this.database,(0,s.P)(this._delegate,(0,s.FD)(e,t)))}endBefore(e=null,t){return(0,a.od)("Query.endBefore",0,2,arguments.length),new p(this.database,(0,s.P)(this._delegate,(0,s.rf)(e,t)))}equalTo(e,t){return(0,a.od)("Query.equalTo",1,2,arguments.length),new p(this.database,(0,s.P)(this._delegate,(0,s.iz)(e,t)))}toString(){return(0,a.od)("Query.toString",0,0,arguments.length),this._delegate.toString()}toJSON(){return(0,a.od)("Query.toJSON",0,1,arguments.length),this._delegate.toJSON()}isEqual(e){if((0,a.od)("Query.isEqual",1,1,arguments.length),!(e instanceof p))throw Error("Query.isEqual failed: First argument must be an instance of firebase.database.Query.");return this._delegate.isEqual(e._delegate)}static getCancelAndContextArgs_(e,t,n){let r={cancel:void 0,context:void 0};if(t&&n)r.cancel=t,(0,a.oD)(e,"cancel",r.cancel,!0),r.context=n,(0,a.HN)(e,"context",r.context,!0);else if(t)if("object"==typeof t&&null!==t)r.context=t;else if("function"==typeof t)r.cancel=t;else throw Error((0,a.dI)(e,"cancelOrContext")+" must either be a cancel callback or a context object.");return r}get ref(){return new g(this.database,new s.t2(this._delegate._repo,this._delegate._path))}}class g extends p{constructor(e,t){super(e,new s.YL(t._repo,t._path,new s.EZ,!1)),this.database=e,this._delegate=t}getKey(){return(0,a.od)("Reference.key",0,0,arguments.length),this._delegate.key}child(e){return(0,a.od)("Reference.child",1,1,arguments.length),"number"==typeof e&&(e=String(e)),new g(this.database,(0,s.jf)(this._delegate,e))}getParent(){(0,a.od)("Reference.parent",0,0,arguments.length);let e=this._delegate.parent;return e?new g(this.database,e):null}getRoot(){return(0,a.od)("Reference.root",0,0,arguments.length),new g(this.database,this._delegate.root)}set(e,t){(0,a.od)("Reference.set",1,2,arguments.length),(0,a.oD)("Reference.set","onComplete",t,!0);let n=(0,s.hZ)(this._delegate,e);return t&&n.then(()=>t(null),e=>t(e)),n}update(e,t){if((0,a.od)("Reference.update",1,2,arguments.length),Array.isArray(e)){let t={};for(let n=0;n<e.length;++n)t[""+n]=e[n];
1e=t,l("Passing an Array to Firebase.update() is deprecated. Use set() if you want to overwrite the existing data, or an Object with integer keys if you really do want to only update some of the children.")}(0,s.j2)("Reference.update",this._delegate._path),(0,a.oD)("Reference.update","onComplete",t,!0);let n=(0,s.yo)(this._delegate,e);return t&&n.then(()=>t(null),e=>t(e)),n}setWithPriority(e,t,n){(0,a.od)("Reference.setWithPriority",2,3,arguments.length),(0,a.oD)("Reference.setWithPriority","onComplete",n,!0);let r=(0,s.$w)(this._delegate,e,t);return n&&r.then(()=>n(null),e=>n(e)),r}remove(e){(0,a.od)("Reference.remove",0,1,arguments.length),(0,a.oD)("Reference.remove","onComplete",e,!0);let t=(0,s.TF)(this._delegate);return e&&t.then(()=>e(null),t=>e(t)),t}transaction(e,t,n){(0,a.od)("Reference.transaction",1,3,arguments.length),(0,a.oD)("Reference.transaction","transactionUpdate",e,!1),(0,a.oD)("Reference.transaction","onComplete",t,!0),h("Reference.transaction","applyLocally",n,!0);let r=(0,s.c4)(this._delegate,e,{applyLocally:n}).then(e=>new d(e.committed,new f(this.database,e.snapshot)));return t&&r.then(e=>t(null,e.committed,e.snapshot),e=>t(e,!1,null)),r}setPriority(e,t){(0,a.od)("Reference.setPriority",1,2,arguments.length),(0,a.oD)("Reference.setPriority","onComplete",t,!0);let n=(0,s.zm)(this._delegate,e);return t&&n.then(()=>t(null),e=>t(e)),n}push(e,t){(0,a.od)("Reference.push",0,2,arguments.length),(0,a.oD)("Reference.push","onComplete",t,!0);let n=(0,s.VC)(this._delegate,e),r=n.then(e=>new g(this.database,e));t&&r.then(()=>t(null),e=>t(e));let i=new g(this.database,n);return i.then=r.then.bind(r),i.catch=r.catch.bind(r,void 0),i}onDisconnect(){return(0,s.j2)("Reference.onDisconnect",this._delegate._path),new c(new s.wu(this._delegate._repo,this._delegate._path))}get key(){return this.getKey()}get parent(){return this.getParent()}get root(){return this.getRoot()}}class _{constructor(e,t){this._delegate=e,this.app=t,this.INTERNAL={delete:()=>this._delegate._delete(),forceWebSockets:s.CA,forceLongPolling:s.V0}}useEmulator(e,t,n={}){(0,s.VJ)(this._delegate,e,t,n)}ref(e){return((0,a.od)("database.ref",0,1,arguments.length),e instanceof g)?new g(this,(0,s.D8)(this._delegate,e.toString())):new g(this,(0,s.KR)(this._delegate,e))}refFromURL(e){return(0,a.od)("database.refFromURL",1,1,arguments.length),new g(this,(0,s.D8)(this._delegate,e))}goOffline(){return(0,a.od)("database.goOffline",0,0,arguments.length),(0,s.Mq)(this._delegate)}goOnline(){return(0,a.od)("database.goOnline",0,0,arguments.length),(0,s.eO)(this._delegate)}}_.ServerValue={TIMESTAMP:(0,s.O5)(),increment:e=>(0,s.GV)(e)};var m=Object.freeze({__proto__:null,initStandalone:function({app:e,url:t,version:n,customAuthImpl:r,customAppCheckImpl:a,namespace:o,nodeAdmin:l=!1}){let h;(0,s.SF)(n);let u=new i.h1("database-standalone"),c=new i.Kq("auth-internal",u);return c.setComponent(new i.uA("auth-internal",()=>r,"PRIVATE")),a&&(h=new i.Kq("app-check-internal",u)).setComponent(new i.uA("app-check-internal",()=>a,"PRIVATE")),{instance:new _((0,s.Di)(e,c,h,t,l),e),namespace:o}}});let v=_.ServerValue;!function(e){e.INTERNAL.registerComponent(new i.uA("database-compat",(e,{instanceIdentifier:t})=>{let n=e.getProvider("app-compat").getImmediate();return new _(e.getProvider("database").getImmediate({identifier:t}),n)},"PUBLIC").setServiceProps({Reference:g,Query:p,Database:_,DataSnapshot:f,enableLogging:s.TS,INTERNAL:m,ServerValue:v}).setMultipleInstances(!0)),e.registerVersion("@firebase/database-compat","2.0.11")}(r.A)},25281:(e,t,n)=>{n.d(t,{cY:()=>b,FA:()=>z,g:()=>V,gz:()=>ei,dM:()=>H,vA:()=>s,Hk:()=>a,K3:()=>h,u:()=>f,KA:()=>c,Uj:()=>d,p9:()=>ep,gR:()=>J,Fy:()=>I,tD:()=>es,A4:()=>p,bD:()=>function e(t,n){if(t===n)return!0;let r=Object.keys(t),i=Object.keys(n);for(let s of r){if(!i.includes(s))return!1;let r=t[s],a=n[s];if(ee(r)&&ee(a)){if(!e(r,a))return!1}else if(r!==a)return!1}for(let e of i)if(!r.includes(e))return!1;return!0},zw:()=>g,dI:()=>eh,hp:()=>er,T9:()=>v,XA:()=>y,mS:()=>_,Ku:()=>eg,ZQ:()=>S,qc:()=>X,Bd:()=>k,sr:()=>P,zJ:()=>w,c1:()=>x,Im:()=>Q,lT:()=>L,zW:()=>F,jZ:()=>R,Ll:()=>O,$g:()=>U,lV:()=>N,nr:()=>M,Ov:()=>j,Cv:()=>G,p7:()=>D,$L:()=>$,kH:()=>Z,gE:()=>E,Am:()=>et,I9:()=>en,yw:()=>Y,OE:()=>ef,kj:()=>ed,As:()=>q,P1:()=>A,od:()=>el,oD:()=>eu,HN:()=>ec,eX:()=>B});var r=n(23727);let i={NODE_CLIENT:!1,NODE_ADMIN:!1,SDK_VERSION:"${JSCORE_VERSION}"},s=function(e,t){if(!e)throw a(t)},a=function(e){return Error("Firebase Database ("+i.SDK_VERSION+") INTERNAL ASSERT FAILED: "+e)},o=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:((64512&i)==55296&&r+1<e.length&&(64512&e.charCodeAt(r+1))==56320?(i=65536+((1023&i)<<10)+(1023&e.charCodeAt(++r)),t[n++]=i>>18|240,t[n++]=i>>12&63|128):t[n++]=i>>12|224,t[n++]=i>>6&63|128),t[n++]=63&i|128)}return t},l=function(e){let t=[],n=0,r=0;for(;n<e.length;){let i=e[n++];if(i<128)t[r++]=String.fromCharCode(i);else if(i>191&&i<224){let s=e[n++];t[r++]=String.fromCharCode((31&i)<<6|63&s)}else if(i>239&&i<365){let s=e[n++],a=((7&i)<<18|(63&s)<<12|(63&e[n++])<<6|63&e[n++])-65536;t[r++]=String.fromCharCode(55296+(a>>10)),t[r++]=String.fromCharCode(56320+(1023&a))}else{let s=e[n++],a=e[n++];
1t[r++]=String.fromCharCode((15&i)<<12|(63&s)<<6|63&a)}}return t.join("")},h={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<e.length;t+=3){let i=e[t],s=t+1<e.length,a=s?e[t+1]:0,o=t+2<e.length,l=o?e[t+2]:0,h=i>>2,u=(3&i)<<4|a>>4,c=(15&a)<<2|l>>6,d=63&l;!o&&(d=64,s||(c=64)),r.push(n[h],n[u],n[c],n[d])}return r.join("")},encodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(o(e),t)},decodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):l(this.decodeStringToByteArray(e,t))},decodeStringToByteArray(e,t){this.init_();let n=t?this.charToByteMapWebSafe_:this.charToByteMap_,r=[];for(let t=0;t<e.length;){let i=n[e.charAt(t++)],s=t<e.length?n[e.charAt(t)]:0,a=++t<e.length?n[e.charAt(t)]:64,o=++t<e.length?n[e.charAt(t)]:64;if(++t,null==i||null==s||null==a||null==o)throw new u;let l=i<<2|s>>4;if(r.push(l),64!==a){let e=s<<4&240|a>>2;if(r.push(e),64!==o){let e=a<<6&192|o;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.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)}}};class u extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}let c=function(e){let t=o(e);return h.encodeByteArray(t,!0)},d=function(e){return c(e).replace(/\./g,"")},f=function(e){try{return h.decodeString(e,!0)}catch(e){console.error("base64Decode failed: ",e)}return null};function p(e){return g(void 0,e)}function g(e,t){if(!(t instanceof Object))return t;switch(t.constructor){case Date:return new Date(t.getTime());case Object:void 0===e&&(e={});break;case Array:e=[];break;default:return t}for(let n in t)t.hasOwnProperty(n)&&"__proto__"!==n&&(e[n]=g(e[n],t[n]));return e}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.")}let m=()=>{try{return _().__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&&f(e[1]);return t&&JSON.parse(t)})()}catch(e){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${e}`);return}},v=()=>{var e;return null==(e=m())?void 0:e.config},y=e=>{var t;return null==(t=m())?void 0:t[`_${e}`]};class b{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 w(e){try{return(e.startsWith("http://")||e.startsWith("https://")?new URL(e).hostname:e).endsWith(".cloudworkstations.dev")}catch(e){return!1}}async function E(e){return(await fetch(e,{credentials:"include"})).ok}function I(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 n=t||"demo-project",r=e.iat||0,i=e.sub||e.user_id;if(!i)throw Error("mockUserToken must contain 'sub' or 'user_id' field!");let s=Object.assign({iss:`https://securetoken.google.com/${n}`,aud:n,iat:r,exp:r+3600,auth_time:r,sub:i,user_id:i,firebase:{sign_in_provider:"custom",identities:{}}},e);return[d(JSON.stringify({alg:"none",type:"JWT"})),d(JSON.stringify(s)),""].join(".")}let C={},T=!1;function A(e,t){if("undefined"==typeof window||"undefined"==typeof document||!w(window.location.host)||C[e]===t||C[e]||T)return;function n(e){return`__firebase__banner__${e}`}C[e]=t;let r="__firebase__banner",i=function(){let e={prod:[],emulator:[]};for(let t of Object.keys(C))C[t]?e.emulator.push(t):e.prod.push(t);return e}().prod.length>0;function s(){let e,t,s=(e=document.getElementById(r),t=!1,e||((e=document.createElement("div")).setAttribute("id",r),t=!0),{created:t,element:e}),a=n("text"),o=document.getElementById(a)||document.createElement("span"),l=n("learnmore"),h=document.getElementById(l)||document.createElement("a"),u=n("preprendIcon"),
1c=document.getElementById(u)||document.createElementNS("http://www.w3.org/2000/svg","svg");if(s.created){let e=s.element;e.style.display="flex",e.style.background="#7faaf0",e.style.position="fixed",e.style.bottom="5px",e.style.left="5px",e.style.padding=".5em",e.style.borderRadius="5px",e.style.alignItems="center",h.setAttribute("id",l),h.innerText="Learn more",h.href="https://firebase.google.com/docs/studio/preview-apps#preview-backend",h.setAttribute("target","__blank"),h.style.paddingLeft="5px",h.style.textDecoration="underline";let t=function(){let e=document.createElement("span");return e.style.cursor="pointer",e.style.marginLeft="16px",e.style.fontSize="24px",e.innerHTML=" &times;",e.onclick=()=>{T=!0;let e=document.getElementById(r);e&&e.remove()},e}();c.setAttribute("width","24"),c.setAttribute("id",u),c.setAttribute("height","24"),c.setAttribute("viewBox","0 0 24 24"),c.setAttribute("fill","none"),c.style.marginLeft="-6px",e.append(c,o,h,t),document.body.appendChild(e)}i?(o.innerText="Preview backend disconnected.",c.innerHTML=`<g clip-path="url(#clip0_6013_33858)">
2<path d="M4.8 17.6L12 5.6L19.2 17.6H4.8ZM6.91667 16.4H17.0833L12 7.93333L6.91667 16.4ZM12 15.6C12.1667 15.6 12.3056 15.5444 12.4167 15.4333C12.5389 15.3111 12.6 15.1667 12.6 15C12.6 14.8333 12.5389 14.6944 12.4167 14.5833C12.3056 14.4611 12.1667 14.4 12 14.4C11.8333 14.4 11.6889 14.4611 11.5667 14.5833C11.4556 14.6944 11.4 14.8333 11.4 15C11.4 15.1667 11.4556 15.3111 11.5667 15.4333C11.6889 15.5444 11.8333 15.6 12 15.6ZM11.4 13.6H12.6V10.4H11.4V13.6Z" fill="#212121"/>
3</g>
4<defs>
5<clipPath id="clip0_6013_33858">
6<rect width="24" height="24" fill="white"/>
7</clipPath>
8</defs>`):(c.innerHTML=`<g clip-path="url(#clip0_6083_34804)">
9<path d="M11.4 15.2H12.6V11.2H11.4V15.2ZM12 10C12.1667 10 12.3056 9.94444 12.4167 9.83333C12.5389 9.71111 12.6 9.56667 12.6 9.4C12.6 9.23333 12.5389 9.09444 12.4167 8.98333C12.3056 8.86111 12.1667 8.8 12 8.8C11.8333 8.8 11.6889 8.86111 11.5667 8.98333C11.4556 9.09444 11.4 9.23333 11.4 9.4C11.4 9.56667 11.4556 9.71111 11.5667 9.83333C11.6889 9.94444 11.8333 10 12 10ZM12 18.4C11.1222 18.4 10.2944 18.2333 9.51667 17.9C8.73889 17.5667 8.05556 17.1111 7.46667 16.5333C6.88889 15.9444 6.43333 15.2611 6.1 14.4833C5.76667 13.7056 5.6 12.8778 5.6 12C5.6 11.1111 5.76667 10.2833 6.1 9.51667C6.43333 8.73889 6.88889 8.06111 7.46667 7.48333C8.05556 6.89444 8.73889 6.43333 9.51667 6.1C10.2944 5.76667 11.1222 5.6 12 5.6C12.8889 5.6 13.7167 5.76667 14.4833 6.1C15.2611 6.43333 15.9389 6.89444 16.5167 7.48333C17.1056 8.06111 17.5667 8.73889 17.9 9.51667C18.2333 10.2833 18.4 11.1111 18.4 12C18.4 12.8778 18.2333 13.7056 17.9 14.4833C17.5667 15.2611 17.1056 15.9444 16.5167 16.5333C15.9389 17.1111 15.2611 17.5667 14.4833 17.9C13.7167 18.2333 12.8889 18.4 12 18.4ZM12 17.2C13.4444 17.2 14.6722 16.6944 15.6833 15.6833C16.6944 14.6722 17.2 13.4444 17.2 12C17.2 10.5556 16.6944 9.32778 15.6833 8.31667C14.6722 7.30555 13.4444 6.8 12 6.8C10.5556 6.8 9.32778 7.30555 8.31667 8.31667C7.30556 9.32778 6.8 10.5556 6.8 12C6.8 13.4444 7.30556 14.6722 8.31667 15.6833C9.32778 16.6944 10.5556 17.2 12 17.2Z" fill="#212121"/>
10</g>
11<defs>
12<clipPath id="clip0_6083_34804">
13<rect width="24" height="24" fill="white"/>
14</clipPath>
15</defs>`,o.innerText="Preview backend running in this workspace."),o.setAttribute("id",a)}"loading"===document.readyState?window.addEventListener("DOMContentLoaded",s):s()}function S(){return"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent?navigator.userAgent:""}function R(){return"undefined"!=typeof window&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(S())}function O(){var e;let t=null==(e=m())?void 0:e.forceEnvironment;if("node"===t)return!0;if("browser"===t)return!1;try{return"[object process]"===Object.prototype.toString.call(n.g.process)}catch(e){return!1}}function k(){return"undefined"!=typeof window||D()}function D(){return"undefined"!=typeof WorkerGlobalScope&&"undefined"!=typeof self&&self instanceof WorkerGlobalScope}function x(){return"undefined"!=typeof navigator&&"Cloudflare-Workers"===navigator.userAgent}function P(){let e="object"==typeof chrome?chrome.runtime:"object"==typeof browser?browser.runtime:void 0;return"object"==typeof e&&void 0!==e.id}function N(){return"object"==typeof navigator&&"ReactNative"===navigator.product}function L(){let e=S();return e.indexOf("MSIE ")>=0||e.indexOf("Trident/")>=0}function U(){return!0===i.NODE_CLIENT||!0===i.NODE_ADMIN}
15function M(){return!O()&&!!navigator.userAgent&&navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")}function j(){return!O()&&!!navigator.userAgent&&(navigator.userAgent.includes("Safari")||navigator.userAgent.includes("WebKit"))&&!navigator.userAgent.includes("Chrome")}function F(){try{return"object"==typeof indexedDB}catch(e){return!1}}function B(){return new Promise((e,t)=>{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 e;t((null==(e=i.error)?void 0:e.message)||"")}}catch(e){t(e)}})}function H(){return"undefined"!=typeof navigator&&!!navigator.cookieEnabled}class V extends Error{constructor(e,t,n){super(t),this.code=e,this.customData=n,this.name="FirebaseError",Object.setPrototypeOf(this,V.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,z.prototype.create)}}class z{constructor(e,t,n){this.service=e,this.serviceName=t,this.errors=n}create(e,...t){var n,r;let i=t[0]||{},s=`${this.service}/${e}`,a=this.errors[e],o=a?(n=a,r=i,n.replace(W,(e,t)=>{let n=r[t];return null!=n?String(n):`<${t}?>`})):"Error",l=`${this.serviceName}: ${o} (${s}).`;return new V(s,l,i)}}let W=/\{\$([^}]+)}/g;function $(e){return JSON.parse(e)}function q(e){return JSON.stringify(e)}let K=function(e){let t={},n={},r={},i="";try{let s=e.split(".");t=$(f(s[0])||""),n=$(f(s[1])||""),i=s[2],r=n.d||{},delete n.d}catch(e){}return{header:t,claims:n,data:r,signature:i}},G=function(e){let t=K(e).claims;return!!t&&"object"==typeof t&&t.hasOwnProperty("iat")},X=function(e){let t=K(e).claims;return"object"==typeof t&&!0===t.admin};function J(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Y(e,t){return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0}function Q(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}function Z(e,t,n){let r={};for(let i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=t.call(n,e[i],i,e));return r}function ee(e){return null!==e&&"object"==typeof e}function et(e){let t=[];for(let[n,r]of Object.entries(e))Array.isArray(r)?r.forEach(e=>{t.push(encodeURIComponent(n)+"="+encodeURIComponent(e))}):t.push(encodeURIComponent(n)+"="+encodeURIComponent(r));return t.length?"&"+t.join("&"):""}function en(e){let t={};return e.replace(/^\?/,"").split("&").forEach(e=>{if(e){let[n,r]=e.split("=");
15t[decodeURIComponent(n)]=decodeURIComponent(r)}}),t}function er(e){let t=e.indexOf("?");if(!t)return"";let n=e.indexOf("#",t);return e.substring(t,n>0?n:void 0)}class ei{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 n,r;t||(t=0);let i=this.W_;if("string"==typeof e)for(let n=0;n<16;n++)i[n]=e.charCodeAt(t)<<24|e.charCodeAt(t+1)<<16|e.charCodeAt(t+2)<<8|e.charCodeAt(t+3),t+=4;else for(let n=0;n<16;n++)i[n]=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=i[e-3]^i[e-8]^i[e-14]^i[e-16];i[e]=t<<1|t>>>31}let s=this.chain_[0],a=this.chain_[1],o=this.chain_[2],l=this.chain_[3],h=this.chain_[4];for(let e=0;e<80;e++){e<40?e<20?(n=l^a&(o^l),r=0x5a827999):(n=a^o^l,r=0x6ed9eba1):e<60?(n=a&o|l&(a|o),r=0x8f1bbcdc):(n=a^o^l,r=0xca62c1d6);let t=(s<<5|s>>>27)+n+h+r+i[e]|0;h=l,l=o,o=a<<30|a>>>2,a=s,s=t}this.chain_[0]=this.chain_[0]+s|0,this.chain_[1]=this.chain_[1]+a|0,this.chain_[2]=this.chain_[2]+o|0,this.chain_[3]=this.chain_[3]+l|0,this.chain_[4]=this.chain_[4]+h|0}update(e,t){if(null==e)return;void 0===t&&(t=e.length);let n=t-this.blockSize,r=0,i=this.buf_,s=this.inbuf_;for(;r<t;){if(0===s)for(;r<=n;)this.compress_(e,r),r+=this.blockSize;if("string"==typeof e){for(;r<t;)if(i[s]=e.charCodeAt(r),++s,++r,s===this.blockSize){this.compress_(i),s=0;break}}else for(;r<t;)if(i[s]=e[r],++s,++r,s===this.blockSize){this.compress_(i),s=0;break}}this.inbuf_=s,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 n=0;for(let t=0;t<5;t++)for(let r=24;r>=0;r-=8)e[n]=this.chain_[t]>>r&255,++n;return e}}function es(e,t){let n=new ea(e,t);return n.subscribe.bind(n)}class ea{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,n){let r;if(void 0===e&&void 0===t&&void 0===n)throw Error("Missing Observer.");void 0===(r=!function(e,t){if("object"!=typeof e||null===e)return!1;for(let n of t)if(n in e&&"function"==typeof e[n])return!0;return!1}(e,["next","error","complete"])?{next:e,error:t,complete:n}:e).next&&(r.next=eo),void 0===r.error&&(r.error=eo),void 0===r.complete&&(r.complete=eo);let i=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?r.error(this.finalError):r.complete()}catch(e){}}),this.observers.push(r),i}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){"undefined"!=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 eo(){}let el=function(e,t,n,r){let i;if(r<t?i="at least "+t:r>n&&(i=0===n?"none":"no more than "+n),i)throw Error(e+" failed: Was called with "+r+(1===r?" argument.":" arguments.")+" Expects "+i+".")};function eh(e,t){return`${e} failed: ${t} argument `}function eu(e,t,n,r){if((!r||n)&&"function"!=typeof n)throw Error(eh(e,t)+"must be a valid function.")}function ec(e,t,n,r){if((!r||n)&&("object"!=typeof n||null===n))throw Error(eh(e,t)+"must be a valid context object.")}let ed=function(e){let t=[],n=0;for(let r=0;r<e.length;r++){let i=e.charCodeAt(r);if(i>=55296&&i<=56319){let t=i-55296;s(++r<e.length,"Surrogate pair missing trail surrogate."),i=65536+(t<<10)+(e.charCodeAt(r)-56320)}i<128?t[n++]=i:(i<2048?t[n++]=i>>6|192:(i<65536?t[n++]=i>>12|224:(t[n++]=i>>18|240,t[n++]=i>>12&63|128),t[n++]=i>>6&63|128),t[n++]=63&i|128)}return t},ef=function(e){let t=0;for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);r<128?t++:r<2048?t+=2:r>=55296&&r<=56319?(t+=4,n++):t+=3}return t};function ep(e,t=1e3,n=2){let r=t*Math.pow(n,e),i=Math.round(.5*r*(Math.random()-.5)*2);return Math.min(144e5,r+i)}function eg(e){return e&&e._delegate?e._delegate:e}}
15,25833:(e,t,n)=>{let r,i;n.d(t,{P2:()=>f});let s=new WeakMap,a=new WeakMap,o=new WeakMap,l=new WeakMap,h=new WeakMap,u={get(e,t,n){if(e instanceof IDBTransaction){if("done"===t)return a.get(e);if("objectStoreNames"===t)return e.objectStoreNames||o.get(e);if("store"===t)return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return c(e[t])},set:(e,t,n)=>(e[t]=n,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function c(e){if(e instanceof IDBRequest){let t=new Promise((t,n)=>{let r=()=>{e.removeEventListener("success",i),e.removeEventListener("error",s)},i=()=>{t(c(e.result)),r()},s=()=>{n(e.error),r()};e.addEventListener("success",i),e.addEventListener("error",s)});return t.then(t=>{t instanceof IDBCursor&&s.set(t,e)}).catch(()=>{}),h.set(t,e),t}if(l.has(e))return l.get(e);let t=function(e){if("function"==typeof e)return e!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(i||(i=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(e)?function(...t){return e.apply(d(this),t),c(s.get(this))}:function(...t){return c(e.apply(d(this),t))}:function(t,...n){let r=e.call(d(this),t,...n);return o.set(r,t.sort?t.sort():[t]),c(r)};return e instanceof IDBTransaction&&function(e){if(a.has(e))return;let t=new Promise((t,n)=>{let r=()=>{e.removeEventListener("complete",i),e.removeEventListener("error",s),e.removeEventListener("abort",s)},i=()=>{t(),r()},s=()=>{n(e.error||new DOMException("AbortError","AbortError")),r()};e.addEventListener("complete",i),e.addEventListener("error",s),e.addEventListener("abort",s)});a.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&&(l.set(e,t),h.set(t,e)),t}let d=e=>h.get(e);function f(e,t,{blocked:n,upgrade:r,blocking:i,terminated:s}={}){let a=indexedDB.open(e,t),o=c(a);return r&&a.addEventListener("upgradeneeded",e=>{r(c(a.result),e.oldVersion,e.newVersion,c(a.transaction),e)}),n&&a.addEventListener("blocked",e=>n(e.oldVersion,e.newVersion,e)),o.then(e=>{s&&e.addEventListener("close",()=>s()),i&&e.addEventListener("versionchange",e=>i(e.oldVersion,e.newVersion,e))}).catch(()=>{}),o}let p=["get","getKey","getAll","getAllKeys","count"],g=["put","add","delete","clear"],_=new Map;function m(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&"string"==typeof t))return;if(_.get(t))return _.get(t);let n=t.replace(/FromIndex$/,""),r=t!==n,i=g.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!(i||p.includes(n)))return;let s=async function(e,...t){let s=this.transaction(e,i?"readwrite":"readonly"),a=s.store;return r&&(a=a.index(t.shift())),(await Promise.all([a[n](...t),i&&s.done]))[0]};return _.set(t,s),s}u=(e=>({...e,get:(t,n,r)=>m(t,n)||e.get(t,n,r),has:(t,n)=>!!m(t,n)||e.has(t,n)}))(u)},42071:(e,t,n)=>{n.d(t,{Kq:()=>a,h1:()=>o,uA:()=>i});var r=n(25281);class i{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 s="[DEFAULT]";class a{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:s})}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=s){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=s){return this.instances.has(e)}getOptions(e=s){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),i=null!=(n=this.onInitCallbacks.get(r))?n:new Set;i.add(e),this.onInitCallbacks.set(r,i);let s=this.instances.get(r);return s&&e(s,r),()=>{i.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)===s?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=s){return this.component?this.component.multipleInstances?e:s: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 a(e,this);return this.providers.set(e,t),t}getProviders(){return Array.from(this.providers.values())}}},47296:(e,t,n)=>{n.d(t,{A:()=>r.A});var r=n(82576);r.A.registerVersion("firebase","11.10.0","app-compat")},55582:(e,t,n)=>{n.r(t),n.d(t,{FirebaseError:()=>s.g,SDK_VERSION:()=>R,_DEFAULT_ENTRY_NAME:()=>c,_addComponent:()=>_,_addOrOverwriteComponent:()=>m,_apps:()=>f,_clearComponents:()=>I,_components:()=>g,_getProvider:()=>y,_isFirebaseApp:()=>w,_isFirebaseServerApp:()=>E,_registerComponent:()=>v,_removeServiceInstance:()=>b,_serverApps:()=>p,deleteApp:()=>P,getApp:()=>D,getApps:()=>x,initializeApp:()=>O,initializeServerApp:()=>k,onLog:()=>L,registerVersion:()=>N,setLogLevel:()=>U});var r=n(42071),i=n(89606),s=n(25281),a=n(25833);class o{constructor(e){this.container=e}getPlatformInfoString(){return this.container.getProviders().map(e=>{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 l="@firebase/app",h="0.13.2",u=new i.Vy("@firebase/app"),c="[DEFAULT]",d={[l]:"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 _(e,t){try{e.container.addComponent(t)}catch(n){u.debug(`Component ${t.name} failed to register with FirebaseApp ${e.name}`,n)}}function m(e,t){e.container.addOrOverwriteComponent(t)}function v(e){let t=e.name;if(g.has(t))return u.debug(`There were multiple attempts to register component ${t}.`),!1;
15for(let n of(g.set(t,e),f.values()))_(n,e);for(let t of p.values())_(t,e);return!0}function y(e,t){let n=e.container.getProvider("heartbeat").getImmediate({optional:!0});return n&&n.triggerHeartbeat(),e.container.getProvider(t)}function b(e,t,n=c){y(e,t).clearInstance(n)}function w(e){return void 0!==e.options}function E(e){return null!=e&&void 0!==e.settings}function I(){g.clear()}let C=new s.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 T{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 r.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 A(e,t){let n=(0,s.u)(e.split(".")[1]);if(null===n)return void console.error(`FirebaseServerApp ${t} is invalid: second part could not be parsed.`);if(void 0===JSON.parse(n).exp)return void console.error(`FirebaseServerApp ${t} is invalid: expiration claim could not be parsed`);let r=1e3*JSON.parse(n).exp;r-new Date().getTime()<=0&&console.error(`FirebaseServerApp ${t} is invalid: the token has expired.`)}class S extends T{constructor(e,t,n,r){let i=void 0===t.automaticDataCollectionEnabled||t.automaticDataCollectionEnabled,s={name:n,automaticDataCollectionEnabled:i};void 0!==e.apiKey?super(e,s,r):super(e.options,s,r),this._serverConfig=Object.assign({automaticDataCollectionEnabled:i},t),this._serverConfig.authIdToken&&A(this._serverConfig.authIdToken,"authIdToken"),this._serverConfig.appCheckToken&&A(this._serverConfig.appCheckToken,"appCheckToken"),this._finalizationRegistry=null,"undefined"!=typeof FinalizationRegistry&&(this._finalizationRegistry=new FinalizationRegistry(()=>{this.automaticCleanup()})),this._refCount=0,this.incRefCount(this._serverConfig.releaseOnDeref),this._serverConfig.releaseOnDeref=void 0,t.releaseOnDeref=void 0,N(l,h,"serverapp")}toJSON(){}get refCount(){return this._refCount}incRefCount(e){this.isDeleted||(this._refCount++,void 0!==e&&null!==this._finalizationRegistry&&this._finalizationRegistry.register(e,this))}decRefCount(){return this.isDeleted?0:--this._refCount}automaticCleanup(){P(this)}get settings(){return this.checkDestroyed(),this._serverConfig}checkDestroyed(){if(this.isDeleted)throw C.create("server-app-deleted")}}let R="11.10.0";function O(e,t={}){let n=e;"object"!=typeof t&&(t={name:t});let i=Object.assign({name:c,automaticDataCollectionEnabled:!0},t),a=i.name;if("string"!=typeof a||!a)throw C.create("bad-app-name",{appName:String(a)});if(n||(n=(0,s.T9)()),!n)throw C.create("no-options");let o=f.get(a);if(o)if((0,s.bD)(n,o.options)&&(0,s.bD)(i,o.config))return o;else throw C.create("duplicate-app",{appName:a});let l=new r.h1(a);for(let e of g.values())l.addComponent(e);let h=new T(n,i,l);return f.set(a,h),h}function k(e,t){let n;if((0,s.Bd)()&&!(0,s.p7)())throw C.create("invalid-server-app-environment");void 0===t.automaticDataCollectionEnabled&&(t.automaticDataCollectionEnabled=!0),n=w(e)?e.options:e;let i=Object.assign(Object.assign({},t),n);if(void 0!==i.releaseOnDeref&&delete i.releaseOnDeref,void 0!==t.releaseOnDeref&&"undefined"==typeof FinalizationRegistry)throw C.create("finalization-registry-not-supported",{});let a=""+[...JSON.stringify(i)].reduce((e,t)=>
15Math.imul(31,e)+t.charCodeAt(0)|0,0),o=p.get(a);if(o)return o.incRefCount(t.releaseOnDeref),o;let l=new r.h1(a);for(let e of g.values())l.addComponent(e);let h=new S(n,t,a,l);return p.set(a,h),h}function D(e=c){let t=f.get(e);if(!t&&e===c&&(0,s.T9)())return O();if(!t)throw C.create("no-app",{appName:e});return t}function x(){return Array.from(f.values())}async function P(e){let t=!1,n=e.name;f.has(n)?(t=!0,f.delete(n)):p.has(n)&&0>=e.decRefCount()&&(p.delete(n),t=!0),t&&(await Promise.all(e.container.getProviders().map(e=>e.delete())),e.isDeleted=!0)}function N(e,t,n){var i;let s=null!=(i=d[e])?i:e;n&&(s+=`-${n}`);let a=s.match(/\s|\//),o=t.match(/\s|\//);if(a||o){let e=[`Unable to register library "${s}" with version "${t}":`];a&&e.push(`library name "${s}" contains illegal characters (whitespace or "/")`),a&&o&&e.push("and"),o&&e.push(`version name "${t}" contains illegal characters (whitespace or "/")`),u.warn(e.join(" "));return}v(new r.uA(`${s}-version`,()=>({library:s,version:t}),"VERSION"))}function L(e,t){if(null!==e&&"function"!=typeof e)throw C.create("invalid-log-argument");(0,i.Ey)(e,t)}function U(e){(0,i.He)(e)}let M="firebase-heartbeat-store",j=null;function F(){return j||(j=(0,a.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})})),j}async function B(e){try{let t=(await F()).transaction(M),n=await t.objectStore(M).get(V(e));return await t.done,n}catch(e){if(e instanceof s.g)u.warn(e.message);else{let t=C.create("idb-get",{originalErrorMessage:null==e?void 0:e.message});u.warn(t.message)}}}async function H(e,t){try{let n=(await F()).transaction(M,"readwrite"),r=n.objectStore(M);await r.put(t,V(e)),await n.done}catch(e){if(e instanceof s.g)u.warn(e.message);else{let t=C.create("idb-set",{originalErrorMessage:null==e?void 0:e.message});u.warn(t.message)}}}function V(e){return`${e.name}!${e.options.appId}`}class z{constructor(e){this.container=e,this._heartbeatsCache=null;let t=this.container.getProvider("app").getImmediate();this._storage=new $(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=W();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;r<e.length;r++)e[r].date<n&&(n=e[r].date,t=r);return t}(this._heartbeatsCache.heartbeats);this._heartbeatsCache.heartbeats.splice(e,1)}return this._storage.overwrite(this._heartbeatsCache)}catch(e){u.warn(e)}}async getHeartbeatsHeader(){var e;try{if(null===this._heartbeatsCache&&await this._heartbeatsCachePromise,(null==(e=this._heartbeatsCache)?void 0:e.heartbeats)==null||0===this._heartbeatsCache.heartbeats.length)return"";let t=W(),{heartbeatsToSend:n,unsentEntries:r}=function(e,t=1024){let n=[],r=e.slice();for(let i of e){let e=n.find(e=>e.agent===i.agent);if(e){if(e.dates.push(i.date),q(n)>t){e.dates.pop();break}}else if(n.push({agent:i.agent,dates:[i.date]}),q(n)>t){n.pop();break}r=r.slice(1)}return{heartbeatsToSend:n,unsentEntries:r}}(this._heartbeatsCache.heartbeats),i=(0,s.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)),i}catch(e){return u.warn(e),""}}}function W(){return new Date().toISOString().substring(0,10)}class ${constructor(e){this.app=e,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return!!(0,s.zW)()&&(0,s.eX)().then(()=>!0).catch(()=>!1)}async read(){if(!await this._canUseIndexedDBPromise)return{heartbeats:[]};{let e=await B(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 H(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 H(this.app,{lastSentHeartbeatDate:null!=(t=e.lastSentHeartbeatDate)?t:n.lastSentHeartbeatDate,heartbeats:[...n.heartbeats,...e.heartbeats]})}}}function q(e){return(0,s.Uj)(JSON.stringify({version:2,heartbeats:e})).length}v(new r.uA("platform-logger",e=>new o(e),"PRIVATE")),v(new r.uA("heartbeat",e=>new z(e),"PRIVATE")),N(l,h,""),N(l,h,"esm2017"),N("fire-js","")}
15,61852:(e,t,n)=>{n.d(t,{VV:()=>i,jz:()=>r});var r,i,s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},a={};(function(){function e(){this.blockSize=-1,this.blockSize=64,this.g=[,,,,],this.B=Array(this.blockSize),this.o=this.h=0,this.s()}var t=function(){this.blockSize=-1};function n(){}function s(e,t,n){n||(n=0);var r=Array(16);if("string"==typeof t)for(var i=0;16>i;++i)r[i]=t.charCodeAt(n++)|t.charCodeAt(n++)<<8|t.charCodeAt(n++)<<16|t.charCodeAt(n++)<<24;else for(i=0;16>i;++i)r[i]=t[n++]|t[n++]<<8|t[n++]<<16|t[n++]<<24;t=e.g[0],n=e.g[1],i=e.g[2];var s=e.g[3],a=t+(s^n&(i^s))+r[0]+0xd76aa478|0;a=s+(i^(t=n+(a<<7|a>>>25))&(n^i))+r[1]+0xe8c7b756|0,a=i+(n^(s=t+(a<<12|a>>>20))&(t^n))+r[2]+0x242070db|0,a=n+(t^(i=s+(a<<17|a>>>15))&(s^t))+r[3]+0xc1bdceee|0,a=t+(s^(n=i+(a<<22|a>>>10))&(i^s))+r[4]+0xf57c0faf|0,a=s+(i^(t=n+(a<<7|a>>>25))&(n^i))+r[5]+0x4787c62a|0,a=i+(n^(s=t+(a<<12|a>>>20))&(t^n))+r[6]+0xa8304613|0,a=n+(t^(i=s+(a<<17|a>>>15))&(s^t))+r[7]+0xfd469501|0,a=t+(s^(n=i+(a<<22|a>>>10))&(i^s))+r[8]+0x698098d8|0,a=s+(i^(t=n+(a<<7|a>>>25))&(n^i))+r[9]+0x8b44f7af|0,a=i+(n^(s=t+(a<<12|a>>>20))&(t^n))+r[10]+0xffff5bb1|0,a=n+(t^(i=s+(a<<17|a>>>15))&(s^t))+r[11]+0x895cd7be|0,a=t+(s^(n=i+(a<<22|a>>>10))&(i^s))+r[12]+0x6b901122|0,a=s+(i^(t=n+(a<<7|a>>>25))&(n^i))+r[13]+0xfd987193|0,a=i+(n^(s=t+(a<<12|a>>>20))&(t^n))+r[14]+0xa679438e|0,a=n+(t^(i=s+(a<<17|a>>>15))&(s^t))+r[15]+0x49b40821|0,n=i+(a<<22|a>>>10),a=t+(i^s&(n^i))+r[1]+0xf61e2562|0,t=n+(a<<5|a>>>27),a=s+(n^i&(t^n))+r[6]+0xc040b340|0,s=t+(a<<9|a>>>23),a=i+(t^n&(s^t))+r[11]+0x265e5a51|0,i=s+(a<<14|a>>>18),a=n+(s^t&(i^s))+r[0]+0xe9b6c7aa|0,n=i+(a<<20|a>>>12),a=t+(i^s&(n^i))+r[5]+0xd62f105d|0,t=n+(a<<5|a>>>27),a=s+(n^i&(t^n))+r[10]+0x2441453|0,s=t+(a<<9|a>>>23),a=i+(t^n&(s^t))+r[15]+0xd8a1e681|0,i=s+(a<<14|a>>>18),a=n+(s^t&(i^s))+r[4]+0xe7d3fbc8|0,n=i+(a<<20|a>>>12),a=t+(i^s&(n^i))+r[9]+0x21e1cde6|0,t=n+(a<<5|a>>>27),a=s+(n^i&(t^n))+r[14]+0xc33707d6|0,s=t+(a<<9|a>>>23),a=i+(t^n&(s^t))+r[3]+0xf4d50d87|0,i=s+(a<<14|a>>>18),a=n+(s^t&(i^s))+r[8]+0x455a14ed|0,n=i+(a<<20|a>>>12),a=t+(i^s&(n^i))+r[13]+0xa9e3e905|0,t=n+(a<<5|a>>>27),a=s+(n^i&(t^n))+r[2]+0xfcefa3f8|0,s=t+(a<<9|a>>>23),a=i+(t^n&(s^t))+r[7]+0x676f02d9|0,i=s+(a<<14|a>>>18),a=n+(s^t&(i^s))+r[12]+0x8d2a4c8a|0,a=t+((n=i+(a<<20|a>>>12))^i^s)+r[5]+0xfffa3942|0,a=s+((t=n+(a<<4|a>>>28))^n^i)+r[8]+0x8771f681|0,a=i+((s=t+(a<<11|a>>>21))^t^n)+r[11]+0x6d9d6122|0,a=n+((i=s+(a<<16|a>>>16))^s^t)+r[14]+0xfde5380c|0,a=t+((n=i+(a<<23|a>>>9))^i^s)+r[1]+0xa4beea44|0,a=s+((t=n+(a<<4|a>>>28))^n^i)+r[4]+0x4bdecfa9|0,a=i+((s=t+(a<<11|a>>>21))^t^n)+r[7]+0xf6bb4b60|0,a=n+((i=s+(a<<16|a>>>16))^s^t)+r[10]+0xbebfbc70|0,a=t+((n=i+(a<<23|a>>>9))^i^s)+r[13]+0x289b7ec6|0,a=s+((t=n+(a<<4|a>>>28))^n^i)+r[0]+0xeaa127fa|0,a=i+((s=t+(a<<11|a>>>21))^t^n)+r[3]+0xd4ef3085|0,a=n+((i=s+(a<<16|a>>>16))^s^t)+r[6]+0x4881d05|0,a=t+((n=i+(a<<23|a>>>9))^i^s)+r[9]+0xd9d4d039|0,a=s+((t=n+(a<<4|a>>>28))^n^i)+r[12]+0xe6db99e5|0,a=i+((s=t+(a<<11|a>>>21))^t^n)+r[15]+0x1fa27cf8|0,a=n+((i=s+(a<<16|a>>>16))^s^t)+r[2]+0xc4ac5665|0,n=i+(a<<23|a>>>9),a=t+(i^(n|~s))+r[0]+0xf4292244|0,t=n+(a<<6|a>>>26),a=s+(n^(t|~i))+r[7]+0x432aff97|0,s=t+(a<<10|a>>>22),a=i+(t^(s|~n))+r[14]+0xab9423a7|0,i=s+(a<<15|a>>>17),a=n+(s^(i|~t))+r[5]+0xfc93a039|0,n=i+(a<<21|a>>>11),a=t+(i^(n|~s))+r[12]+0x655b59c3|0,t=n+(a<<6|a>>>26),a=s+(n^(t|~i))+r[3]+0x8f0ccc92|0,s=t+(a<<10|a>>>22),a=i+(t^(s|~n))+r[10]+0xffeff47d|0,i=s+(a<<15|a>>>17),a=n+(s^(i|~t))+r[1]+0x85845dd1|0,n=i+(a<<21|a>>>11),a=t+(i^(n|~s))+r[8]+0x6fa87e4f|0,t=n+(a<<6|a>>>26),a=s+(n^(t|~i))+r[15]+0xfe2ce6e0|0,s=t+(a<<10|a>>>22),a=i+(t^(s|~n))+r[6]+0xa3014314|0,i=s+(a<<15|a>>>17),a=n+(s^(i|~t))+r[13]+0x4e0811a1|0,n=i+(a<<21|a>>>11),a=t+(i^(n|~s))+r[4]+0xf7537e82|0,t=n+(a<<6|a>>>26),a=s+(n^(t|~i))+r[11]+0xbd3af235|0,s=t+(a<<10|a>>>22),a=i+(t^(s|~n))+r[2]+0x2ad7d2bb|0,i=s+(a<<15|a>>>17),a=n+(s^(i|~t))+r[9]+0xeb86d391|0,e.g[0]=e.g[0]+t|0,e.g[1]=e.g[1]+(i+(a<<21|a>>>11))|0,e.g[2]=e.g[2]+i|0,e.g[3]=e.g[3]+s|0}function o(e,t){this.h=t;for(var n=[],r=!0,i=e.length-1;0<=i;i--){var s=0|e[i];r&&s==t||(n[i]=s,r=!1)}this.g=n}n.prototype=t.prototype,e.D=t.prototype,e.prototype=new n,e.prototype.constructor=e,e.C=function(e,n,r){for(var i=Array(arguments.length-2),s=2;s<arguments.length;s++)i[s-2]=arguments[s];return t.prototype[n].apply(e,i)},e.prototype.s=function(){this.g[0]=0x67452301,this.g[1]=0xefcdab89,this.g[2]=0x98badcfe,this.g[3]=0x10325476,this.o=this.h=0},e.prototype.u=function(e,t){void 0===t&&(t=e.length);for(var n=t-this.blockSize,r=this.B,i=this.h,a=0;a<t;){if(0==i)for(;a<=n;)s(this,e,a),a+=this.blockSize;if("string"==typeof e){for(;a<t;)if(r[i++]=e.charCodeAt(a++),i==this.blockSize){s(this,r),i=0;break}}else for(;a<t;)if(r[i++]=e[a++],i==this.blockSize){s(this,r),i=0;break}}this.h=i,this.o+=t},e.prototype.v=function(){var e=Array((56>this.h?this.blockSize:2*this.blockSize)-this.h);e[0]=128;for(var t=1;t<e.length-8;++t)e[t]=0;var n=8*this.o;for(t=e.length-8;t<e.length;++t)e[t]=255&n,n/=256;for(this.u(e),e=Array(16),t=n=0;4>t;++t)for(var r=0;32>r;r+=8)e[n++]=this.g[t]>>>r&255;return e};var l,h={};function u(e){var t;return -128<=e&&128>e?(t=function(e){return new o([0|e],0>e?-1:0)},Object.prototype.hasOwnProperty.call(h,e)?h[e]:h[e]=t(e)):new o([0|e],0>e?-1:0)}function c(e){if(isNaN(e)||!isFinite(e))return d;if(0>e)return m(c(-e));for(var t=[],n=1,r=0;e>=n;r++)t[r]=e/n|0,n*=0x100000000;return new o(t,0)}var d=u(0),f=u(1),p=u(0x1000000);function g(e){if(0!=e.h)return!1;for(var t=0;t<e.g.length;t++)if(0!=e.g[t])return!1;return!0}function _(e){return -1==e.h}function m(e){for(var t=e.g.length,n=[],r=0;r<t;r++)n[r]=~e.g[r];return new o(n,~e.h).add(f)}function v(e,t){return e.add(m(t))}function y(e,t){for(;(65535&e[t])!=e[t];)e[t+1]+=e[t]>>>16,e[t]&=65535,t++}function b(e,t){this.g=e,this.h=t}function w(e,t){if(g(t))throw Error("division by zero");
15if(g(e))return new b(d,d);if(_(e))return t=w(m(e),t),new b(m(t.g),m(t.h));if(_(t))return t=w(e,m(t)),new b(m(t.g),t.h);if(30<e.g.length){if(_(e)||_(t))throw Error("slowDivide_ only works with positive integers.");for(var n=f,r=t;0>=r.l(e);)n=E(n),r=E(r);var i=I(n,1),s=I(r,1);for(r=I(r,2),n=I(n,2);!g(r);){var a=s.add(r);0>=a.l(e)&&(i=i.add(n),s=a),r=I(r,1),n=I(n,1)}return t=v(e,i.j(t)),new b(i,t)}for(i=d;0<=e.l(t);){for(r=48>=(r=Math.ceil(Math.log(n=Math.max(1,Math.floor(e.m()/t.m())))/Math.LN2))?1:Math.pow(2,r-48),a=(s=c(n)).j(t);_(a)||0<a.l(e);)n-=r,a=(s=c(n)).j(t);g(s)&&(s=f),i=i.add(s),e=v(e,a)}return new b(i,e)}function E(e){for(var t=e.g.length+1,n=[],r=0;r<t;r++)n[r]=e.i(r)<<1|e.i(r-1)>>>31;return new o(n,e.h)}function I(e,t){var n=t>>5;t%=32;for(var r=e.g.length-n,i=[],s=0;s<r;s++)i[s]=0<t?e.i(s+n)>>>t|e.i(s+n+1)<<32-t:e.i(s+n);return new o(i,e.h)}(l=o.prototype).m=function(){if(_(this))return-m(this).m();for(var e=0,t=1,n=0;n<this.g.length;n++){var r=this.i(n);e+=(0<=r?r:0x100000000+r)*t,t*=0x100000000}return e},l.toString=function(e){if(2>(e=e||10)||36<e)throw Error("radix out of range: "+e);if(g(this))return"0";if(_(this))return"-"+m(this).toString(e);for(var t=c(Math.pow(e,6)),n=this,r="";;){var i=w(n,t).g,s=((0<(n=v(n,i.j(t))).g.length?n.g[0]:n.h)>>>0).toString(e);if(g(n=i))return s+r;for(;6>s.length;)s="0"+s;r=s+r}},l.i=function(e){return 0>e?0:e<this.g.length?this.g[e]:this.h},l.l=function(e){return _(e=v(this,e))?-1:+!g(e)},l.abs=function(){return _(this)?m(this):this},l.add=function(e){for(var t=Math.max(this.g.length,e.g.length),n=[],r=0,i=0;i<=t;i++){var s=r+(65535&this.i(i))+(65535&e.i(i)),a=(s>>>16)+(this.i(i)>>>16)+(e.i(i)>>>16);r=a>>>16,s&=65535,a&=65535,n[i]=a<<16|s}return new o(n,-0x80000000&n[n.length-1]?-1:0)},l.j=function(e){if(g(this)||g(e))return d;if(_(this))return _(e)?m(this).j(m(e)):m(m(this).j(e));if(_(e))return m(this.j(m(e)));if(0>this.l(p)&&0>e.l(p))return c(this.m()*e.m());for(var t=this.g.length+e.g.length,n=[],r=0;r<2*t;r++)n[r]=0;for(r=0;r<this.g.length;r++)for(var i=0;i<e.g.length;i++){var s=this.i(r)>>>16,a=65535&this.i(r),l=e.i(i)>>>16,h=65535&e.i(i);n[2*r+2*i]+=a*h,y(n,2*r+2*i),n[2*r+2*i+1]+=s*h,y(n,2*r+2*i+1),n[2*r+2*i+1]+=a*l,y(n,2*r+2*i+1),n[2*r+2*i+2]+=s*l,y(n,2*r+2*i+2)}for(r=0;r<t;r++)n[r]=n[2*r+1]<<16|n[2*r];for(r=t;r<2*t;r++)n[r]=0;return new o(n,0)},l.A=function(e){return w(this,e).h},l.and=function(e){for(var t=Math.max(this.g.length,e.g.length),n=[],r=0;r<t;r++)n[r]=this.i(r)&e.i(r);return new o(n,this.h&e.h)},l.or=function(e){for(var t=Math.max(this.g.length,e.g.length),n=[],r=0;r<t;r++)n[r]=this.i(r)|e.i(r);return new o(n,this.h|e.h)},l.xor=function(e){for(var t=Math.max(this.g.length,e.g.length),n=[],r=0;r<t;r++)n[r]=this.i(r)^e.i(r);return new o(n,this.h^e.h)},e.prototype.digest=e.prototype.v,e.prototype.reset=e.prototype.s,e.prototype.update=e.prototype.u,i=a.Md5=e,o.prototype.add=o.prototype.add,o.prototype.multiply=o.prototype.j,o.prototype.modulo=o.prototype.A,o.prototype.compare=o.prototype.l,o.prototype.toNumber=o.prototype.m,o.prototype.toString=o.prototype.toString,o.prototype.getBits=o.prototype.i,o.fromNumber=c,o.fromString=function e(t,n){if(0==t.length)throw Error("number format error: empty string");if(2>(n=n||10)||36<n)throw Error("radix out of range: "+n);if("-"==t.charAt(0))return m(e(t.substring(1),n));if(0<=t.indexOf("-"))throw Error('number format error: interior "-" character');for(var r=c(Math.pow(n,8)),i=d,s=0;s<t.length;s+=8){var a=Math.min(8,t.length-s),o=parseInt(t.substring(s,s+a),n);8>a?(a=c(Math.pow(n,a)),i=i.j(a).add(c(o))):i=(i=i.j(r)).add(c(o))}return i},r=a.Integer=o}).apply(void 0!==s?s:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},62620:(e,t,n)=>{n.d(t,{Ao:()=>h,Bx:()=>s,Jh:()=>l,O4:()=>a,ZS:()=>r,fF:()=>u,iO:()=>i,ro:()=>o});var r,i,s,a,o,l,h,u,c="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},d={};(function(){var e,t,n,f="function"==typeof Object.defineProperties?Object.defineProperty:function(e,t,n){return e==Array.prototype||e==Object.prototype||(e[t]=n.value),e},p=function(e){e=["object"==typeof globalThis&&globalThis,e,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof c&&c];for(var t=0;t<e.length;++t){var n=e[t];if(n&&n.Math==Math)return n}throw Error("Cannot find global object")}(this);!function(e,t){if(t)e:{var n=p;e=e.split(".");for(var r=0;r<e.length-1;r++){var i=e[r];if(!(i in n))break e;n=n[i]}(t=t(r=n[e=e[e.length-1]]))!=r&&null!=t&&f(n,e,{configurable:!0,writable:!0,value:t})}}("Array.prototype.values",function(e){return e||function(){var e,t,n,r,i;return e=this,t=function(e,t){return t},e instanceof String&&(e+=""),n=0,r=!1,(i={next:function(){if(!r&&n<e.length){var i=n++;return{value:t(i,e[i]),done:!1}}return r=!0,{done:!0,value:void 0}}})[Symbol.iterator]=function(){return i},i}});var g=g||{},_=this||self;function m(e){var t=typeof e;return"array"==(t="object"!=t?t:e?Array.isArray(e)?"array":t:"null")||"object"==t&&"number"==typeof e.length}function v(e){var t=typeof e;return"object"==t&&null!=e||"function"==t}function y(e,t,n){return e.call.apply(e.bind,arguments)}function b(e,t,n){if(!e)throw Error();if(2<arguments.length){var r=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,r),e.apply(t,n)}}return function(){return e.apply(t,arguments)}}function w(e,t,n){return(w=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?y:b).apply(null,arguments)}
15function E(e,t){var n=Array.prototype.slice.call(arguments,1);return function(){var t=n.slice();return t.push.apply(t,arguments),e.apply(this,t)}}function I(e,t){function n(){}n.prototype=t.prototype,e.aa=t.prototype,e.prototype=new n,e.prototype.constructor=e,e.Qb=function(e,n,r){for(var i=Array(arguments.length-2),s=2;s<arguments.length;s++)i[s-2]=arguments[s];return t.prototype[n].apply(e,i)}}function C(e){let t=e.length;if(0<t){let n=Array(t);for(let r=0;r<t;r++)n[r]=e[r];return n}return[]}function T(e,t){for(let t=1;t<arguments.length;t++){let n=arguments[t];if(m(n)){let t=e.length||0,r=n.length||0;e.length=t+r;for(let i=0;i<r;i++)e[t+i]=n[i]}else e.push(n)}}class A{constructor(e,t){this.i=e,this.j=t,this.h=0,this.g=null}get(){let e;return 0<this.h?(this.h--,e=this.g,this.g=e.next,e.next=null):e=this.i(),e}}function S(e){return/^[\s\xa0]*$/.test(e)}function R(){var e=_.navigator;return e&&(e=e.userAgent)?e:""}function O(e){return O[" "](e),e}O[" "]=function(){};var k=-1!=R().indexOf("Gecko")&&(-1==R().toLowerCase().indexOf("webkit")||-1!=R().indexOf("Edge"))&&-1==R().indexOf("Trident")&&-1==R().indexOf("MSIE")&&-1==R().indexOf("Edge");function D(e,t,n){for(let r in e)t.call(n,e[r],r,e)}function x(e){let t={};for(let n in e)t[n]=e[n];return t}let P="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function N(e,t){let n,r;for(let t=1;t<arguments.length;t++){for(n in r=arguments[t])e[n]=r[n];for(let t=0;t<P.length;t++)n=P[t],Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}}class L{constructor(){this.h=this.g=null}add(e,t){let n=U.get();n.set(e,t),this.h?this.h.next=n:this.g=n,this.h=n}}var U=new A(()=>new M,e=>e.reset());class M{constructor(){this.next=this.g=this.h=null}set(e,t){this.h=e,this.g=t,this.next=null}reset(){this.next=this.g=this.h=null}}let j,F=!1,B=new L,H=()=>{let e=_.Promise.resolve(void 0);j=()=>{e.then(V)}};var V=()=>{let e;for(var t;e=null,B.g&&(e=B.g,B.g=B.g.next,B.g||(B.h=null),e.next=null),t=e;){try{t.h.call(t.g)}catch(e){!function(e){_.setTimeout(()=>{throw e},0)}(e)}U.j(t),100>U.h&&(U.h++,t.next=U.g,U.g=t)}F=!1};function z(){this.s=this.s,this.C=this.C}function W(e,t){this.type=e,this.g=this.target=t,this.defaultPrevented=!1}z.prototype.s=!1,z.prototype.ma=function(){this.s||(this.s=!0,this.N())},z.prototype.N=function(){if(this.C)for(;this.C.length;)this.C.shift()()},W.prototype.h=function(){this.defaultPrevented=!0};var $=function(){if(!_.addEventListener||!Object.defineProperty)return!1;var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}});try{let e=()=>{};_.addEventListener("test",e,t),_.removeEventListener("test",e,t)}catch(e){}return e}();function q(e,t){if(W.call(this,e?e.type:""),this.relatedTarget=this.g=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=0,this.key="",this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.state=null,this.pointerId=0,this.pointerType="",this.i=null,e){var n=this.type=e.type,r=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:null;if(this.target=e.target||e.srcElement,this.g=t,t=e.relatedTarget){if(k){e:{try{O(t.nodeName);var i=!0;break e}catch(e){}i=!1}i||(t=null)}}else"mouseover"==n?t=e.fromElement:"mouseout"==n&&(t=e.toElement);this.relatedTarget=t,r?(this.clientX=void 0!==r.clientX?r.clientX:r.pageX,this.clientY=void 0!==r.clientY?r.clientY:r.pageY,this.screenX=r.screenX||0,this.screenY=r.screenY||0):(this.clientX=void 0!==e.clientX?e.clientX:e.pageX,this.clientY=void 0!==e.clientY?e.clientY:e.pageY,this.screenX=e.screenX||0,this.screenY=e.screenY||0),this.button=e.button,this.key=e.key||"",this.ctrlKey=e.ctrlKey,this.altKey=e.altKey,this.shiftKey=e.shiftKey,this.metaKey=e.metaKey,this.pointerId=e.pointerId||0,this.pointerType="string"==typeof e.pointerType?e.pointerType:K[e.pointerType]||"",this.state=e.state,this.i=e,e.defaultPrevented&&q.aa.h.call(this)}}I(q,W);var K={2:"touch",3:"pen",4:"mouse"};q.prototype.h=function(){q.aa.h.call(this);var e=this.i;e.preventDefault?e.preventDefault():e.returnValue=!1};var G="closure_listenable_"+(1e6*Math.random()|0),X=0;function J(e,t,n,r,i){this.listener=e,this.proxy=null,this.src=t,this.type=n,this.capture=!!r,this.ha=i,this.key=++X,this.da=this.fa=!1}function Y(e){e.da=!0,e.listener=null,e.proxy=null,e.src=null,e.ha=null}function Q(e){this.src=e,this.g={},this.h=0}function Z(e,t){var n=t.type;if(n in e.g){var r,i=e.g[n],s=Array.prototype.indexOf.call(i,t,void 0);(r=0<=s)&&Array.prototype.splice.call(i,s,1),r&&(Y(t),0==e.g[n].length&&(delete e.g[n],e.h--))}}function ee(e,t,n,r){for(var i=0;i<e.length;++i){var s=e[i];if(!s.da&&s.listener==t&&!!n==s.capture&&s.ha==r)return i}return -1}Q.prototype.add=function(e,t,n,r,i){var s=e.toString();(e=this.g[s])||(e=this.g[s]=[],this.h++);
15var a=ee(e,t,r,i);return -1<a?(t=e[a],n||(t.fa=!1)):((t=new J(t,this.src,s,!!r,i)).fa=n,e.push(t)),t};var et="closure_lm_"+(1e6*Math.random()|0),en={};function er(e,t,n,r,i,s){if(!t)throw Error("Invalid event type");var a=v(i)?!!i.capture:!!i,o=eo(e);if(o||(e[et]=o=new Q(e)),(n=o.add(t,n,r,a,s)).proxy)return n;if(r=function e(t){return ea.call(e.src,e.listener,t)},n.proxy=r,r.src=e,r.listener=n,e.addEventListener)$||(i=a),void 0===i&&(i=!1),e.addEventListener(t.toString(),r,i);else if(e.attachEvent)e.attachEvent(es(t.toString()),r);else if(e.addListener&&e.removeListener)e.addListener(r);else throw Error("addEventListener and attachEvent are unavailable.");return n}function ei(e){if("number"!=typeof e&&e&&!e.da){var t=e.src;if(t&&t[G])Z(t.i,e);else{var n=e.type,r=e.proxy;t.removeEventListener?t.removeEventListener(n,r,e.capture):t.detachEvent?t.detachEvent(es(n),r):t.addListener&&t.removeListener&&t.removeListener(r),(n=eo(t))?(Z(n,e),0==n.h&&(n.src=null,t[et]=null)):Y(e)}}}function es(e){return e in en?en[e]:en[e]="on"+e}function ea(e,t){if(e.da)e=!0;else{t=new q(t,this);var n=e.listener,r=e.ha||e.src;e.fa&&ei(e),e=n.call(r,t)}return e}function eo(e){return(e=e[et])instanceof Q?e:null}var el="__closure_events_fn_"+(1e9*Math.random()>>>0);function eh(e){return"function"==typeof e?e:(e[el]||(e[el]=function(t){return e.handleEvent(t)}),e[el])}function eu(){z.call(this),this.i=new Q(this),this.M=this,this.F=null}function ec(e,t){var n,r=e.F;if(r)for(n=[];r;r=r.F)n.push(r);if(e=e.M,r=t.type||t,"string"==typeof t)t=new W(t,e);else if(t instanceof W)t.target=t.target||e;else{var i=t;N(t=new W(r,e),i)}if(i=!0,n)for(var s=n.length-1;0<=s;s--){var a=t.g=n[s];i=ed(a,r,!0,t)&&i}if(i=ed(a=t.g=e,r,!0,t)&&i,i=ed(a,r,!1,t)&&i,n)for(s=0;s<n.length;s++)i=ed(a=t.g=n[s],r,!1,t)&&i}function ed(e,t,n,r){if(!(t=e.i.g[String(t)]))return!0;t=t.concat();for(var i=!0,s=0;s<t.length;++s){var a=t[s];if(a&&!a.da&&a.capture==n){var o=a.listener,l=a.ha||a.src;a.fa&&Z(e.i,a),i=!1!==o.call(l,r)&&i}}return i&&!r.defaultPrevented}function ef(e,t,n){if("function"==typeof e)n&&(e=w(e,n));else if(e&&"function"==typeof e.handleEvent)e=w(e.handleEvent,e);else throw Error("Invalid listener argument");return 0x7fffffff<Number(t)?-1:_.setTimeout(e,t||0)}I(eu,z),eu.prototype[G]=!0,eu.prototype.removeEventListener=function(e,t,n,r){!function e(t,n,r,i,s){if(Array.isArray(n))for(var a=0;a<n.length;a++)e(t,n[a],r,i,s);else(i=v(i)?!!i.capture:!!i,r=eh(r),t&&t[G])?(t=t.i,(n=String(n).toString())in t.g&&-1<(r=ee(a=t.g[n],r,i,s))&&(Y(a[r]),Array.prototype.splice.call(a,r,1),0==a.length&&(delete t.g[n],t.h--))):t&&(t=eo(t))&&(n=t.g[n.toString()],t=-1,n&&(t=ee(n,r,i,s)),(r=-1<t?n[t]:null)&&ei(r))}(this,e,t,n,r)},eu.prototype.N=function(){if(eu.aa.N.call(this),this.i){var e,t=this.i;for(e in t.g){for(var n=t.g[e],r=0;r<n.length;r++)Y(n[r]);delete t.g[e],t.h--}}this.F=null},eu.prototype.K=function(e,t,n,r){return this.i.add(String(e),t,!1,n,r)},eu.prototype.L=function(e,t,n,r){return this.i.add(String(e),t,!0,n,r)};class ep extends z{constructor(e,t){super(),this.m=e,this.l=t,this.h=null,this.i=!1,this.g=null}j(e){this.h=arguments,this.g?this.i=!0:function e(t){t.g=ef(()=>{t.g=null,t.i&&(t.i=!1,e(t))},t.l);let n=t.h;t.h=null,t.m.apply(null,n)}(this)}N(){super.N(),this.g&&(_.clearTimeout(this.g),this.g=null,this.i=!1,this.h=null)}}function eg(e){z.call(this),this.h=e,this.g={}}I(eg,z);var e_=[];function em(e){D(e.g,function(e,t){this.g.hasOwnProperty(t)&&ei(e)},e),e.g={}}eg.prototype.N=function(){eg.aa.N.call(this),em(this)},eg.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented")};var ev=_.JSON.stringify,ey=_.JSON.parse,eb=class{stringify(e){return _.JSON.stringify(e,void 0)}parse(e){return _.JSON.parse(e,void 0)}};function ew(){}function eE(e){return e.h||(e.h=e.i())}function eI(){}ew.prototype.h=null;var eC={OPEN:"a",kb:"b",Ja:"c",wb:"d"};function eT(){W.call(this,"d")}function eA(){W.call(this,"c")}I(eT,W),I(eA,W);var eS={},eR=null;function eO(){return eR=eR||new eu}function ek(e){W.call(this,eS.La,e)}function eD(e){let t=eO();ec(t,new ek(t))}function ex(e,t){W.call(this,eS.STAT_EVENT,e),this.stat=t}function eP(e){let t=eO();ec(t,new ex(t,e))}function eN(e,t){W.call(this,eS.Ma,e),this.size=t}function eL(e,t){if("function"!=typeof e)throw Error("Fn must not be null and must be a function");return _.setTimeout(function(){e()},t)}function eU(){this.g=!0}function eM(e,t,n,r){e.info(function(){return"XMLHTTP TEXT ("+t+"): "+function(e,t){if(!e.g)return t;if(!t)return null;try{var n=JSON.parse(t);if(n){for(e=0;e<n.length;e++)if(Array.isArray(n[e])){var r=n[e];if(!(2>r.length)){var i=r[1];if(Array.isArray(i)&&!(1>i.length)){var s=i[0];if("noop"!=s&&"stop"!=s&&"close"!=s)for(var a=1;a<i.length;a++)i[a]=""}}}}return ev(n)}catch(e){return t}}(e,n)+(r?" "+r:"")})}eS.La="serverreachability",I(ek,W),eS.STAT_EVENT="statevent",I(ex,W),eS.Ma="timingevent",I(eN,W),eU.prototype.xa=function(){this.g=!1},eU.prototype.info=function(){};var ej={NO_ERROR:0,gb:1,tb:2,sb:3,nb:4,rb:5,ub:6,Ia:7,TIMEOUT:8,xb:9},eF={lb:"complete",Hb:"success",Ja:"error",Ia:"abort",zb:"ready",Ab:"readystatechange",TIMEOUT:"timeout",vb:"incrementaldata",yb:"progress",ob:"downloadprogress",Pb:"uploadprogress"};function eB(){}function eH(e,t,n,r){this.j=e,this.i=t,this.l=n,this.R=r||1,this.U=new eg(this),this.I=45e3,this.H=null,this.o=!1,this.m=this.A=this.v=this.L=this.F=this.S=this.B=null,this.D=[],this.g=null,this.C=0,this.s=this.u=null,this.X=-1,this.J=!1,this.O=0,this.M=null,this.W=this.K=this.T=this.P=!1,this.h=new eV}function eV(){this.i=null,this.g="",this.h=!1}I(eB,ew),eB.prototype.g=function(){return new XMLHttpRequest},eB.prototype.i=function(){return{}},t=new eB;var ez={},eW={};function e$(e,t,n){e.L=1,e.v=ta(tt(t)),e.m=n,e.P=!0,eq(e,null)}function eq(e,t){e.F=Date.now(),eG(e),e.A=tt(e.v);var n,r,i,s,a,o,l=e.A,h=e.R;Array.isArray(h)||(h=[String(h)]),ty(l.i,"t",h),e.C=0,l=e.j.J,e.h=new eV,e.g=t3(e.j,l?t:null,!e.m),
150<e.O&&(e.M=new ep(w(e.Y,e,e.g),e.O)),t=e.U,l=e.g,h=e.ca;var u="readystatechange";Array.isArray(u)||(u&&(e_[0]=u.toString()),u=e_);for(var c=0;c<u.length;c++){var d=function e(t,n,r,i,s){if(i&&i.once)return function e(t,n,r,i,s){if(Array.isArray(n)){for(var a=0;a<n.length;a++)e(t,n[a],r,i,s);return null}return r=eh(r),t&&t[G]?t.L(n,r,v(i)?!!i.capture:!!i,s):er(t,n,r,!0,i,s)}(t,n,r,i,s);if(Array.isArray(n)){for(var a=0;a<n.length;a++)e(t,n[a],r,i,s);return null}return r=eh(r),t&&t[G]?t.K(n,r,v(i)?!!i.capture:!!i,s):er(t,n,r,!1,i,s)}(l,u[c],h||t.handleEvent,!1,t.h||t);if(!d)break;t.g[d.key]=d}t=e.H?x(e.H):{},e.m?(e.u||(e.u="POST"),t["Content-Type"]="application/x-www-form-urlencoded",e.g.ea(e.A,e.u,e.m,t)):(e.u="GET",e.g.ea(e.A,e.u,null,t)),eD(),n=e.i,r=e.u,i=e.A,s=e.l,a=e.R,o=e.m,n.info(function(){if(n.g)if(o)for(var e="",t=o.split("&"),l=0;l<t.length;l++){var h=t[l].split("=");if(1<h.length){var u=h[0];h=h[1];var c=u.split("_");e=2<=c.length&&"type"==c[1]?e+(u+"=")+h+"&":e+(u+"=redacted&")}}else e=null;else e=o;return"XMLHTTP REQ ("+s+") [attempt "+a+"]: "+r+"\n"+i+"\n"+e})}function eK(e){return!!e.g&&"GET"==e.u&&2!=e.L&&e.j.Ca}function eG(e){e.S=Date.now()+e.I,eX(e,e.I)}function eX(e,t){if(null!=e.B)throw Error("WatchDog timer not null");e.B=eL(w(e.ba,e),t)}function eJ(e){e.B&&(_.clearTimeout(e.B),e.B=null)}function eY(e){0==e.j.G||e.J||t0(e.j,e)}function eQ(e){eJ(e);var t=e.M;t&&"function"==typeof t.ma&&t.ma(),e.M=null,em(e.U),e.g&&(t=e.g,e.g=null,t.abort(),t.ma())}function eZ(e,t){try{var n=e.j;if(0!=n.G&&(n.g==e||e4(n.h,e))){if(!e.K&&e4(n.h,e)&&3==n.G){try{var r=n.Da.g.parse(t)}catch(e){r=null}if(Array.isArray(r)&&3==r.length){var i=r;if(0==i[0]){e:if(!n.u){if(n.g)if(n.g.F+3e3<e.F)tZ(n),tz(n);else break e;tJ(n),eP(18)}}else n.za=i[1],0<n.za-n.T&&37500>i[2]&&n.F&&0==n.v&&!n.C&&(n.C=eL(w(n.Za,n),6e3));if(1>=e6(n.h)&&n.ca){try{n.ca()}catch(e){}n.ca=void 0}}else t2(n,11)}else if((e.K||n.g==e)&&tZ(n),!S(t))for(i=n.Da.g.parse(t),t=0;t<i.length;t++){let o=i[t];if(n.T=o[0],o=o[1],2==n.G)if("c"==o[0]){n.K=o[1],n.ia=o[2];let t=o[3];null!=t&&(n.la=t,n.j.info("VER="+n.la));let i=o[4];null!=i&&(n.Aa=i,n.j.info("SVER="+n.Aa));let l=o[5];null!=l&&"number"==typeof l&&0<l&&(n.L=r=1.5*l,n.j.info("backChannelRequestTimeoutMs_="+r)),r=n;let h=e.g;if(h){let e=h.g?h.g.getResponseHeader("X-Client-Wire-Protocol"):null;if(e){var s=r.h;s.g||-1==e.indexOf("spdy")&&-1==e.indexOf("quic")&&-1==e.indexOf("h2")||(s.j=s.l,s.g=new Set,s.h&&(e3(s,s.h),s.h=null))}if(r.D){let e=h.g?h.g.getResponseHeader("X-HTTP-Session-Id"):null;e&&(r.ya=e,ts(r.I,r.D,e))}}if(n.G=3,n.l&&n.l.ua(),n.ba&&(n.R=Date.now()-e.F,n.j.info("Handshake RTT: "+n.R+"ms")),(r=n).qa=t4(r,r.J?r.ia:null,r.W),e.K){e5(r.h,e);var a=r.L;a&&(e.I=a),e.B&&(eJ(e),eG(e)),r.g=e}else tX(r);0<n.i.length&&t$(n)}else"stop"!=o[0]&&"close"!=o[0]||t2(n,7);else 3==n.G&&("stop"==o[0]||"close"==o[0]?"stop"==o[0]?t2(n,7):tV(n):"noop"!=o[0]&&n.l&&n.l.ta(o),n.v=0)}}eD(4)}catch(e){}}eH.prototype.ca=function(e){e=e.target;let t=this.M;t&&3==tj(e)?t.j():this.Y(e)},eH.prototype.Y=function(e){try{if(e==this.g)e:{let v=tj(this.g);var t=this.g.Ba();let y=this.g.Z();if(!(3>v)&&(3!=v||this.g&&(this.h.h||this.g.oa()||tF(this.g)))){this.J||4!=v||7==t||(8==t||0>=y?eD(3):eD(2)),eJ(this);var n=this.g.Z();this.X=n;t:if(eK(this)){var r=tF(this.g);e="";var i=r.length,s=4==tj(this.g);if(!this.h.i){if("undefined"==typeof TextDecoder){eQ(this),eY(this);var a="";break t}this.h.i=new _.TextDecoder}for(t=0;t<i;t++)this.h.h=!0,e+=this.h.i.decode(r[t],{stream:!(s&&t==i-1)});r.length=0,this.h.g+=e,this.C=0,a=this.h.g}else a=this.g.oa();if(this.o=200==n,o=this.i,l=this.u,h=this.A,u=this.l,c=this.R,d=n,o.info(function(){return"XMLHTTP RESP ("+u+") [ attempt "+c+"]: "+l+"\n"+h+"\n"+v+" "+d}),this.o){if(this.T&&!this.K){t:{if(this.g){var o,l,h,u,c,d,f,p=this.g;if((f=p.g?p.g.getResponseHeader("X-HTTP-Initial-Response"):null)&&!S(f)){var g=f;break t}}g=null}if(n=g)eM(this.i,this.l,n,"Initial handshake response via X-HTTP-Initial-Response"),this.K=!0,eZ(this,n);else{this.o=!1,this.s=3,eP(12),eQ(this),eY(this);break e}}if(this.P){let e;for(n=!0;!this.J&&this.C<a.length;)if((e=function(e,t){var n=e.C,r=t.indexOf("\n",n);return -1==r?eW:isNaN(n=Number(t.substring(n,r)))?ez:(r+=1)+n>t.length?eW:(t=t.slice(r,r+n),e.C=r+n,t)}(this,a))==eW){4==v&&(this.s=4,eP(14),n=!1),eM(this.i,this.l,null,"[Incomplete Response]");break}else if(e==ez){this.s=4,eP(15),eM(this.i,this.l,a,"[Invalid Chunk]"),n=!1;break}else eM(this.i,this.l,e,null),eZ(this,e);if(eK(this)&&0!=this.C&&(this.h.g=this.h.g.slice(this.C),this.C=0),4!=v||0!=a.length||this.h.h||(this.s=1,eP(16),n=!1),this.o=this.o&&n,n){if(0<a.length&&!this.W){this.W=!0;var m=this.j;m.g==this&&m.ba&&!m.M&&(m.j.info("Great, no buffering proxy detected. Bytes received: "+a.length),tY(m),m.M=!0,eP(11))}}else eM(this.i,this.l,a,"[Invalid Chunked Response]"),eQ(this),eY(this)}else eM(this.i,this.l,a,null),eZ(this,a);4==v&&eQ(this),this.o&&!this.J&&(4==v?t0(this.j,this):(this.o=!1,eG(this)))}else(function(e){let t={};e=(e.g&&2<=tj(e)&&e.g.getAllResponseHeaders()||"").split("\r\n");for(let r=0;r<e.length;r++){if(S(e[r]))continue;var n=function(e){var t=1;e=e.split(":");let n=[];for(;0<t&&e.length;)n.push(e.shift()),t--;return e.length&&n.push(e.join(":")),n}(e[r]);let i=n[0];if("string"!=typeof(n=n[1]))continue;n=n.trim();let s=t[i]||[];t[i]=s,s.push(n)}
15var r=function(e){return e.join(", ")};for(let e in t)r.call(void 0,t[e],e,t)})(this.g),400==n&&0<a.indexOf("Unknown SID")?(this.s=3,eP(12)):(this.s=0,eP(13)),eQ(this),eY(this)}}}catch(e){}finally{}},eH.prototype.cancel=function(){this.J=!0,eQ(this)},eH.prototype.ba=function(){var e,t;this.B=null;let n=Date.now();0<=n-this.S?(e=this.i,t=this.A,e.info(function(){return"TIMEOUT: "+t}),2!=this.L&&(eD(),eP(17)),eQ(this),this.s=2,eY(this)):eX(this,this.S-n)};var e0=class{constructor(e,t){this.g=e,this.map=t}};function e1(e){this.l=e||10,e=_.PerformanceNavigationTiming?0<(e=_.performance.getEntriesByType("navigation")).length&&("hq"==e[0].nextHopProtocol||"h2"==e[0].nextHopProtocol):!!(_.chrome&&_.chrome.loadTimes&&_.chrome.loadTimes()&&_.chrome.loadTimes().wasFetchedViaSpdy),this.j=e?this.l:1,this.g=null,1<this.j&&(this.g=new Set),this.h=null,this.i=[]}function e2(e){return!!e.h||!!e.g&&e.g.size>=e.j}function e6(e){return e.h?1:e.g?e.g.size:0}function e4(e,t){return e.h?e.h==t:!!e.g&&e.g.has(t)}function e3(e,t){e.g?e.g.add(t):e.h=t}function e5(e,t){e.h&&e.h==t?e.h=null:e.g&&e.g.has(t)&&e.g.delete(t)}function e8(e){if(null!=e.h)return e.i.concat(e.h.D);if(null!=e.g&&0!==e.g.size){let t=e.i;for(let n of e.g.values())t=t.concat(n.D);return t}return C(e.i)}function e7(e,t){if(e.forEach&&"function"==typeof e.forEach)e.forEach(t,void 0);else if(m(e)||"string"==typeof e)Array.prototype.forEach.call(e,t,void 0);else for(var n=function(e){if(e.na&&"function"==typeof e.na)return e.na();if(!e.V||"function"!=typeof e.V){if("undefined"!=typeof Map&&e instanceof Map)return Array.from(e.keys());if(!("undefined"!=typeof Set&&e instanceof Set)){if(m(e)||"string"==typeof e){var t=[];e=e.length;for(var n=0;n<e;n++)t.push(n);return t}for(let r in t=[],n=0,e)t[n++]=r;return t}}}(e),r=function(e){if(e.V&&"function"==typeof e.V)return e.V();if("undefined"!=typeof Map&&e instanceof Map||"undefined"!=typeof Set&&e instanceof Set)return Array.from(e.values());if("string"==typeof e)return e.split("");if(m(e)){for(var t=[],n=e.length,r=0;r<n;r++)t.push(e[r]);return t}for(r in t=[],n=0,e)t[n++]=e[r];return t}(e),i=r.length,s=0;s<i;s++)t.call(void 0,r[s],n&&n[s],e)}e1.prototype.cancel=function(){if(this.i=e8(this),this.h)this.h.cancel(),this.h=null;else if(this.g&&0!==this.g.size){for(let e of this.g.values())e.cancel();this.g.clear()}};var e9=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");function te(e){if(this.g=this.o=this.j="",this.s=null,this.m=this.l="",this.h=!1,e instanceof te){this.h=e.h,tn(this,e.j),this.o=e.o,this.g=e.g,tr(this,e.s),this.l=e.l;var t=e.i,n=new tg;n.i=t.i,t.g&&(n.g=new Map(t.g),n.h=t.h),ti(this,n),this.m=e.m}else e&&(t=String(e).match(e9))?(this.h=!1,tn(this,t[1]||"",!0),this.o=to(t[2]||""),this.g=to(t[3]||"",!0),tr(this,t[4]),this.l=to(t[5]||"",!0),ti(this,t[6]||"",!0),this.m=to(t[7]||"")):(this.h=!1,this.i=new tg(null,this.h))}function tt(e){return new te(e)}function tn(e,t,n){e.j=n?to(t,!0):t,e.j&&(e.j=e.j.replace(/:$/,""))}function tr(e,t){if(t){if(isNaN(t=Number(t))||0>t)throw Error("Bad port number "+t);e.s=t}else e.s=null}function ti(e,t,n){var r,i;t instanceof tg?(e.i=t,r=e.i,(i=e.h)&&!r.j&&(t_(r),r.i=null,r.g.forEach(function(e,t){var n=t.toLowerCase();t!=n&&(tm(this,t),ty(this,n,e))},r)),r.j=i):(n||(t=tl(t,tf)),e.i=new tg(t,e.h))}function ts(e,t,n){e.i.set(t,n)}function ta(e){return ts(e,"zx",Math.floor(0x80000000*Math.random()).toString(36)+Math.abs(Math.floor(0x80000000*Math.random())^Date.now()).toString(36)),e}function to(e,t){return e?t?decodeURI(e.replace(/%25/g,"%2525")):decodeURIComponent(e):""}function tl(e,t,n){return"string"==typeof e?(e=encodeURI(e).replace(t,th),n&&(e=e.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),e):null}function th(e){return"%"+((e=e.charCodeAt(0))>>4&15).toString(16)+(15&e).toString(16)}te.prototype.toString=function(){var e=[],t=this.j;t&&e.push(tl(t,tu,!0),":");var n=this.g;return(n||"file"==t)&&(e.push("//"),(t=this.o)&&e.push(tl(t,tu,!0),"@"),e.push(encodeURIComponent(String(n)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(n=this.s)&&e.push(":",String(n))),(n=this.l)&&(this.g&&"/"!=n.charAt(0)&&e.push("/"),e.push(tl(n,"/"==n.charAt(0)?td:tc,!0))),(n=this.i.toString())&&e.push("?",n),(n=this.m)&&e.push("#",tl(n,tp)),e.join("")};var tu=/[#\/\?@]/g,tc=/[#\?:]/g,td=/[#\?]/g,tf=/[#\?@]/g,tp=/#/g;function tg(e,t){this.h=this.g=null,this.i=e||null,this.j=!!t}function t_(e){e.g||(e.g=new Map,e.h=0,e.i&&function(e,t){if(e){e=e.split("&");for(var n=0;n<e.length;n++){var r=e[n].indexOf("="),i=null;if(0<=r){var s=e[n].substring(0,r);i=e[n].substring(r+1)}else s=e[n];t(s,i?decodeURIComponent(i.replace(/\+/g," ")):"")}}}(e.i,function(t,n){e.add(decodeURIComponent(t.replace(/\+/g," ")),n)}))}function tm(e,t){t_(e),t=tb(e,t),e.g.has(t)&&(e.i=null,e.h-=e.g.get(t).length,e.g.delete(t))}function tv(e,t){return t_(e),t=tb(e,t),e.g.has(t)}function ty(e,t,n){tm(e,t),0<n.length&&(e.i=null,e.g.set(tb(e,t),C(n)),e.h+=n.length)}function tb(e,t){return t=String(t),e.j&&(t=t.toLowerCase()),t}function tw(e,t,n,r,i){try{i&&(i.onload=null,i.onerror=null,i.onabort=null,i.ontimeout=null),r(n)}catch(e){}}function tE(){this.g=new eb}function tI(e){this.l=e.Ub||null,this.j=e.eb||!1}function tC(e,t){eu.call(this),this.D=e,this.o=t,this.m=void 0,this.status=this.readyState=0,this.responseType=this.responseText=this.response=this.statusText="",this.onreadystatechange=null,this.u=new Headers,this.h=null,this.B="GET",this.A="",this.g=!1,this.v=this.j=this.l=null}function tT(e){e.j.read().then(e.Pa.bind(e)).catch(e.ga.bind(e))}function tA(e){e.readyState=4,e.l=null,e.j=null,e.v=null,tS(e)}function tS(e){e.onreadystatechange&&e.onreadystatechange.call(e)}function tR(e){let t="";return D(e,function(e,n){t+=n,t+=":",t+=e,t+="\r\n"}),t}function tO(e,t,n){e:{for(r in n){var r=!1;break e}r=!0}r||(n=tR(n),"string"==typeof e?null!=n&&encodeURIComponent(String(n)):ts(e,t,n
15))}function tk(e){eu.call(this),this.headers=new Map,this.o=e||null,this.h=!1,this.v=this.g=null,this.D="",this.m=0,this.l="",this.j=this.B=this.u=this.A=!1,this.I=null,this.H="",this.J=!1}(n=tg.prototype).add=function(e,t){t_(this),this.i=null,e=tb(this,e);var n=this.g.get(e);return n||this.g.set(e,n=[]),n.push(t),this.h+=1,this},n.forEach=function(e,t){t_(this),this.g.forEach(function(n,r){n.forEach(function(n){e.call(t,n,r,this)},this)},this)},n.na=function(){t_(this);let e=Array.from(this.g.values()),t=Array.from(this.g.keys()),n=[];for(let r=0;r<t.length;r++){let i=e[r];for(let e=0;e<i.length;e++)n.push(t[r])}return n},n.V=function(e){t_(this);let t=[];if("string"==typeof e)tv(this,e)&&(t=t.concat(this.g.get(tb(this,e))));else{e=Array.from(this.g.values());for(let n=0;n<e.length;n++)t=t.concat(e[n])}return t},n.set=function(e,t){return t_(this),this.i=null,tv(this,e=tb(this,e))&&(this.h-=this.g.get(e).length),this.g.set(e,[t]),this.h+=1,this},n.get=function(e,t){return e&&0<(e=this.V(e)).length?String(e[0]):t},n.toString=function(){if(this.i)return this.i;if(!this.g)return"";let e=[],t=Array.from(this.g.keys());for(var n=0;n<t.length;n++){var r=t[n];let s=encodeURIComponent(String(r)),a=this.V(r);for(r=0;r<a.length;r++){var i=s;""!==a[r]&&(i+="="+encodeURIComponent(String(a[r]))),e.push(i)}}return this.i=e.join("&")},I(tI,ew),tI.prototype.g=function(){return new tC(this.l,this.j)},tI.prototype.i=(e={},function(){return e}
15),I(tC,eu),(n=tC.prototype).open=function(e,t){if(0!=this.readyState)throw this.abort(),Error("Error reopening a connection");this.B=e,this.A=t,this.readyState=1,tS(this)},n.send=function(e){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");this.g=!0;let t={headers:this.u,method:this.B,credentials:this.m,cache:void 0};e&&(t.body=e),(this.D||_).fetch(new Request(this.A,t)).then(this.Sa.bind(this),this.ga.bind(this))},n.abort=function(){this.response=this.responseText="",this.u=new Headers,this.status=0,this.j&&this.j.cancel("Request was aborted.").catch(()=>{}),1<=this.readyState&&this.g&&4!=this.readyState&&(this.g=!1,tA(this)),this.readyState=0},n.Sa=function(e){if(this.g&&(this.l=e,this.h||(this.status=this.l.status,this.statusText=this.l.statusText,this.h=e.headers,this.readyState=2,tS(this)),this.g&&(this.readyState=3,tS(this),this.g)))if("arraybuffer"===this.responseType)e.arrayBuffer().then(this.Qa.bind(this),this.ga.bind(this));else if(void 0!==_.ReadableStream&&"body"in e){if(this.j=e.body.getReader(),this.o){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response=[]}else this.response=this.responseText="",this.v=new TextDecoder;tT(this)}else e.text().then(this.Ra.bind(this),this.ga.bind(this))},n.Pa=function(e){if(this.g){if(this.o&&e.value)this.response.push(e.value);else if(!this.o){var t=e.value?e.value:new Uint8Array(0);(t=this.v.decode(t,{stream:!e.done}))&&(this.response=this.responseText+=t)}e.done?tA(this):tS(this),3==this.readyState&&tT(this)}},n.Ra=function(e){this.g&&(this.response=this.responseText=e,tA(this))},n.Qa=function(e){this.g&&(this.response=e,tA(this))},n.ga=function(){this.g&&tA(this)},n.setRequestHeader=function(e,t){this.u.append(e,t)},n.getResponseHeader=function(e){return this.h&&this.h.get(e.toLowerCase())||""},n.getAllResponseHeaders=function(){if(!this.h)return"";let e=[],t=this.h.entries();for(var n=t.next();!n.done;)e.push((n=n.value)[0]+": "+n[1]),n=t.next();return e.join("\r\n")},Object.defineProperty(tC.prototype,"withCredentials",{get:function(){return"include"===this.m},set:function(e){this.m=e?"include":"same-origin"}}),I(tk,eu);var tD=/^https?$/i,tx=["POST","PUT"];function tP(e,t){e.h=!1,e.g&&(e.j=!0,e.g.abort(),e.j=!1),e.l=t,e.m=5,tN(e),tU(e)}function tN(e){e.A||(e.A=!0,ec(e,"complete"),ec(e,"error"))}function tL(e){if(e.h&&void 0!==g&&(!e.v[1]||4!=tj(e)||2!=e.Z())){if(e.u&&4==tj(e))ef(e.Ea,0,e);else if(ec(e,"readystatechange"),4==tj(e)){e.h=!1;try{let a=e.Z();switch(a){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var t,n,r=!0;break;default:r=!1}if(!(t=r)){if(n=0===a){var i=String(e.D).match(e9)[1]||null;!i&&_.self&&_.self.location&&(i=_.self.location.protocol.slice(0,-1)),n=!tD.test(i?i.toLowerCase():"")}t=n}if(t)ec(e,"complete"),ec(e,"success");else{e.m=6;try{var s=2<tj(e)?e.g.statusText:""}catch(e){s=""}e.l=s+" ["+e.Z()+"]",tN(e)}}finally{tU(e)}}}}function tU(e,t){if(e.g){tM(e);let n=e.g,r=e.v[0]?()=>{}:null;e.g=null,e.v=null,t||ec(e,"ready");try{n.onreadystatechange=r}catch(e){}}}function tM(e){e.I&&(_.clearTimeout(e.I),e.I=null)}function tj(e){return e.g?e.g.readyState:0}function tF(e){try{if(!e.g)return null;if("response"in e.g)return e.g.response;switch(e.H){case"":case"text":return e.g.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in e.g)return e.g.mozResponseArrayBuffer}return null}catch(e){return null}}function tB(e,t,n){return n&&n.internalChannelParams&&n.internalChannelParams[e]||t}function tH(e){this.Aa=0,this.i=[],this.j=new eU,this.ia=this.qa=this.I=this.W=this.g=this.ya=this.D=this.H=this.m=this.S=this.o=null,this.Ya=this.U=0,this.Va=tB("failFast",!1,e),this.F=this.C=this.u=this.s=this.l=null,this.X=!0,this.za=this.T=-1,this.Y=this.v=this.B=0,this.Ta=tB("baseRetryDelayMs",5e3,e),this.cb=tB("retryDelaySeedMs",1e4,e),this.Wa=tB("forwardChannelMaxRetries",2,e),this.wa=tB("forwardChannelRequestTimeoutMs",2e4,e),this.pa=e&&e.xmlHttpFactory||void 0,this.Xa=e&&e.Tb||void 0,this.Ca=e&&e.useFetchStreams||!1,this.L=void 0,this.J=e&&e.supportsCrossDomainXhr||!1,this.K="",this.h=new e1(e&&e.concurrentRequestLimit),this.Da=new tE,this.P=e&&e.fastHandshake||!1,this.O=e&&e.encodeInitMessageHeaders||!1,this.P&&this.O&&(this.O=!1),this.Ua=e&&e.Rb||!1,e&&e.xa&&this.j.xa(),e&&e.forceLongPolling&&(this.X=!1),this.ba=!this.P&&this.X&&e&&e.detectBufferingProxy||!1,this.ja=void 0,e&&e.longPollingTimeout&&0<e.longPollingTimeout&&(this.ja=e.longPollingTimeout),this.ca=void 0,this.R=0,this.M=!1,this.ka=this.A=null}function tV(e){if(tW(e),3==e.G){var t=e.U++,n=tt(e.I);if(ts(n,"SID",e.K),ts(n,"RID",t),ts(n,"TYPE","terminate"),tK(e,n),(t=new eH(e,e.j,t)).L=2,t.v=ta(tt(n)),n=!1,_.navigator&&_.navigator.sendBeacon)try{n=_.navigator.sendBeacon(t.v.toString(),"")}catch(e){}!n&&_.Image&&((new Image).src=t.v,n=!0),n||(t.g=t3(t.j,null),t.g.ea(t.v)),t.F=Date.now(),eG(t)}t6(e)}function tz(e){e.g&&(tY(e),e.g.cancel(),e.g=null)}function tW(e){tz(e),e.u&&(_.clearTimeout(e.u),e.u=null),tZ(e),e.h.cancel(),e.s&&("number"==typeof e.s&&_.clearTimeout(e.s),e.s=null)}function t$(e){if(!e2(e.h)&&!e.s){e.s=!0;var t=e.Ga;j||H(),F||(j(),F=!0),B.add(t,e),e.B=0}}function tq(e,t){var n;n=t?t.l:e.U++;let r=tt(e.I);ts(r,"SID",e.K),ts(r,"RID",n),ts(r,"AID",e.T),tK(e,r),e.m&&e.o&&tO(r,e.m,e.o),n=new eH(e,e.j,n,e.B+1),null===e.m&&(n.H=e.o),t&&(e.i=t.D.concat(e.i)),t=tG(e,n,1e3),n.I=Math.round(.5*e.wa)+Math.round(.5*e.wa*Math.random()),e3(e.h,n),e$(n,r,t)}function tK(e,t){e.H&&D(e.H,function(e,n){ts(t,n,e)}),e.l&&e7({},function(e,n){ts(t,n,e)})}function tG(e,t,n){n=Math.min(e.i.length,n);var r=e.l?w(e.l.Na,e.l,e):null;e:{var i=e.i;let t=-1;for(;;){let e=["count="+n];-1==t?0<n?(t=i[0].g,e.push("ofs="+t)):t=0:e.push("ofs="+t);let s=!0;for(let a=0;a<n;a++){let n=i[a].g,o=i[a].map;if(0>(n-=t))t=Math.max(0,i[a].g-100),s=!1;else try{!function(e,t,n){let r=n||"";try{e7(e,function(e,n){let i=e;v(e)&&(i=ev(e)),t.push(r+n+"="+encodeURIComponent(i))})}catch(e){throw t.push(r+"type="+encodeURIComponent("_badmap")),e}}(o,e,"req"+n+"_")}catch(e){r&&r(o)}}if(s){r=e.join("&");break e}}}return t.D=e=e.i.splice(0,n),r}function tX(e){if(!e.g&&!e.u){e.Y=1;var t=e.Fa;j||H(),F||(j(),F=!0),B.add(t,e),e.v=0}}function tJ(e){return!e.g&&!e.u&&!(3<=e.v)&&(e.Y++,e.u=eL(w(e.Fa,e),t1(e,e.v)),e.v++,!0)}function tY(e){null!=e.A&&(_.clearTimeout(e.A),e.A=null)}function tQ(e){e.g=new eH(e,e.j,"rpc",e.Y),null===e.m&&(e.g.H=e.o),e.g.O=0;var t=tt(e.qa);ts(t,"RID","rpc"),ts(t,"SID",e.K),ts(t,"AID",e.T),ts(t,"CI",e.F?"0":"1"),!e.F&&e.ja&&ts(t,"TO",e.ja),ts(t,"TYPE","xmlhttp"),tK(e,t),e.m&&e.o&&tO(t,e.m,e.o),e.L&&
15(e.g.I=e.L);var n=e.g;e=e.ia,n.L=1,n.v=ta(tt(t)),n.m=null,n.P=!0,eq(n,e)}function tZ(e){null!=e.C&&(_.clearTimeout(e.C),e.C=null)}function t0(e,t){var n,r=null;if(e.g==t){tZ(e),tY(e),e.g=null;var i=2}else{if(!e4(e.h,t))return;r=t.D,e5(e.h,t),i=1}if(0!=e.G){if(t.o)if(1==i){r=t.m?t.m.length:0,t=Date.now()-t.F;var s=e.B;ec(i=eO(),new eN(i,r)),t$(e)}else tX(e);else if(3==(s=t.s)||0==s&&0<t.X||!(1==i&&(n=t,!(e6(e.h)>=e.h.j-!!e.s)&&(e.s?(e.i=n.D.concat(e.i),!0):1!=e.G&&2!=e.G&&!(e.B>=(e.Va?0:e.Wa))&&(e.s=eL(w(e.Ga,e,n),t1(e,e.B)),e.B++,!0)))||2==i&&tJ(e)))switch(r&&0<r.length&&((t=e.h).i=t.i.concat(r)),s){case 1:t2(e,5);break;case 4:t2(e,10);break;case 3:t2(e,6);break;default:t2(e,2)}}}function t1(e,t){let n=e.Ta+Math.floor(Math.random()*e.cb);return e.isActive()||(n*=2),n*t}function t2(e,t){if(e.j.info("Error code "+t),2==t){var n=w(e.fb,e),r=e.Xa;let t=!r;r=new te(r||"//www.google.com/images/cleardot.gif"),_.location&&"http"==_.location.protocol||tn(r,"https"),ta(r),t?function(e,t){let n=new eU;if(_.Image){let r=new Image;r.onload=E(tw,n,"TestLoadImage: loaded",!0,t,r),r.onerror=E(tw,n,"TestLoadImage: error",!1,t,r),r.onabort=E(tw,n,"TestLoadImage: abort",!1,t,r),r.ontimeout=E(tw,n,"TestLoadImage: timeout",!1,t,r),_.setTimeout(function(){r.ontimeout&&r.ontimeout()},1e4),r.src=e}else t(!1)}(r.toString(),n):function(e,t){let n=new eU,r=new AbortController,i=setTimeout(()=>{r.abort(),tw(n,"TestPingServer: timeout",!1,t)},1e4);fetch(e,{signal:r.signal}).then(e=>{clearTimeout(i),e.ok?tw(n,"TestPingServer: ok",!0,t):tw(n,"TestPingServer: server error",!1,t)}).catch(()=>{clearTimeout(i),tw(n,"TestPingServer: error",!1,t)})}(r.toString(),n)}else eP(2);e.G=0,e.l&&e.l.sa(t),t6(e),tW(e)}function t6(e){if(e.G=0,e.ka=[],e.l){let t=e8(e.h);(0!=t.length||0!=e.i.length)&&(T(e.ka,t),T(e.ka,e.i),e.h.i.length=0,C(e.i),e.i.length=0),e.l.ra()}}function t4(e,t,n){var r=n instanceof te?tt(n):new te(n);if(""!=r.g)t&&(r.g=t+"."+r.g),tr(r,r.s);else{var i=_.location;r=i.protocol,t=t?t+"."+i.hostname:i.hostname,i=+i.port;var s=new te(null);r&&tn(s,r),t&&(s.g=t),i&&tr(s,i),n&&(s.l=n),r=s}return n=e.D,t=e.ya,n&&t&&ts(r,n,t),ts(r,"VER",e.la),tK(e,r),r}function t3(e,t,n){if(t&&!e.J)throw Error("Can't create secondary domain capable XhrIo object.");return(t=new tk(e.Ca&&!e.pa?new tI({eb:n}):e.pa)).Ha(e.J),t}function t5(){}function t8(){}function t7(e,t){eu.call(this),this.g=new tH(t),this.l=e,this.h=t&&t.messageUrlParams||null,e=t&&t.messageHeaders||null,t&&t.clientProtocolHeaderRequired&&(e?e["X-Client-Protocol"]="webchannel":e={"X-Client-Protocol":"webchannel"}),this.g.o=e,e=t&&t.initMessageHeaders||null,t&&t.messageContentType&&(e?e["X-WebChannel-Content-Type"]=t.messageContentType:e={"X-WebChannel-Content-Type":t.messageContentType}),t&&t.va&&(e?e["X-WebChannel-Client-Profile"]=t.va:e={"X-WebChannel-Client-Profile":t.va}),this.g.S=e,(e=t&&t.Sb)&&!S(e)&&(this.g.m=e),this.v=t&&t.supportsCrossDomainXhr||!1,this.u=t&&t.sendRawJson||!1,(t=t&&t.httpSessionIdParam)&&!S(t)&&(this.g.D=t,null!==(e=this.h)&&t in e&&t in(e=this.h)&&delete e[t]),this.j=new nt(this)}function t9(e){eT.call(this),e.__headers__&&(this.headers=e.__headers__,this.statusCode=e.__status__,delete e.__headers__,delete e.__status__);var t=e.__sm__;if(t){e:{for(let n in t){e=n;break e}e=void 0}(this.i=e)&&(e=this.i,t=null!==t&&e in t?t[e]:void 0),this.data=t}else this.data=e}function ne(){eA.call(this),this.status=1}function nt(e){this.g=e}(n=tk.prototype).Ha=function(e){this.J=e},n.ea=function(e,n,r,i){if(this.g)throw Error("[goog.net.XhrIo] Object is active with another request="+this.D+"; newUri="+e);n=n?n.toUpperCase():"GET",this.D=e,this.l="",this.m=0,this.A=!1,this.h=!0,this.g=this.o?this.o.g():t.g(),this.v=this.o?eE(this.o):eE(t),this.g.onreadystatechange=w(this.Ea,this);try{this.B=!0,this.g.open(n,String(e),!0),this.B=!1}catch(e){tP(this,e);return}if(e=r||"",r=new Map(this.headers),i)if(Object.getPrototypeOf(i)===Object.prototype)for(var s in i)r.set(s,i[s]);else if("function"==typeof i.keys&&"function"==typeof i.get)for(let e of i.keys())r.set(e,i.get(e));else throw Error("Unknown input type for opt_headers: "+String(i));for(let[t,a]of(i=Array.from(r.keys()).find(e=>"content-type"==e.toLowerCase()),s=_.FormData&&e instanceof _.FormData,!(0<=Array.prototype.indexOf.call(tx,n,void 0))||i||s||r.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8"),r))this.g.setRequestHeader(t,a);this.H&&(this.g.responseType=this.H),"withCredentials"in this.g&&this.g.withCredentials!==this.J&&(this.g.withCredentials=this.J);try{tM(this),this.u=!0,this.g.send(e),this.u=!1}catch(e){tP(this,e)}},n.abort=function(e){this.g&&this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1,this.m=e||7,ec(this,"complete"),ec(this,"abort"),tU(this))},n.N=function(){this.g&&(this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1),tU(this,!0)),tk.aa.N.call(this)},n.Ea=function(){this.s||(this.B||this.u||this.j?tL(this):this.bb())},n.bb=function(){tL(this)},n.isActive=function(){return!!this.g},n.Z=function(){try{return 2<tj(this)?this.g.status:-1}catch(e){return -1}},n.oa=function(){try{return this.g?this.g.responseText:""}catch(e){return""}},n.Oa=function(e){if(this.g){var t=this.g.responseText;
15return e&&0==t.indexOf(e)&&(t=t.substring(e.length)),ey(t)}},n.Ba=function(){return this.m},n.Ka=function(){return"string"==typeof this.l?this.l:String(this.l)},(n=tH.prototype).la=8,n.G=1,n.connect=function(e,t,n,r){eP(0),this.W=e,this.H=t||{},n&&void 0!==r&&(this.H.OSID=n,this.H.OAID=r),this.F=this.X,this.I=t4(this,null,this.W),t$(this)},n.Ga=function(e){if(this.s)if(this.s=null,1==this.G){if(!e){this.U=Math.floor(1e5*Math.random()),e=this.U++;let i=new eH(this,this.j,e),s=this.o;if(this.S&&(s?N(s=x(s),this.S):s=this.S),null!==this.m||this.O||(i.H=s,s=null),this.P)e:{for(var t=0,n=0;n<this.i.length;n++){t:{var r=this.i[n];if("__data__"in r.map&&"string"==typeof(r=r.map.__data__)){r=r.length;break t}r=void 0}if(void 0===r)break;if(4096<(t+=r)){t=n;break e}if(4096===t||n===this.i.length-1){t=n+1;break e}}t=1e3}else t=1e3;t=tG(this,i,t),ts(n=tt(this.I),"RID",e),ts(n,"CVER",22),this.D&&ts(n,"X-HTTP-Session-Id",this.D),tK(this,n),s&&(this.O?t="headers="+encodeURIComponent(String(tR(s)))+"&"+t:this.m&&tO(n,this.m,s)),e3(this.h,i),this.Ua&&ts(n,"TYPE","init"),this.P?(ts(n,"$req",t),ts(n,"SID","null"),i.T=!0,e$(i,n,null)):e$(i,n,t),this.G=2}}else 3==this.G&&(e?tq(this,e):0==this.i.length||e2(this.h)||tq(this))},n.Fa=function(){if(this.u=null,tQ(this),this.ba&&!(this.M||null==this.g||0>=this.R)){var e=2*this.R;this.j.info("BP detection timer enabled: "+e),this.A=eL(w(this.ab,this),e)}},n.ab=function(){this.A&&(this.A=null,this.j.info("BP detection timeout reached."),this.j.info("Buffering proxy detected and switch to long-polling!"),this.F=!1,this.M=!0,eP(10),tz(this),tQ(this))},n.Za=function(){null!=this.C&&(this.C=null,tz(this),tJ(this),eP(19))},n.fb=function(e){e?(this.j.info("Successfully pinged google.com"),eP(2)):(this.j.info("Failed to ping google.com"),eP(1))},n.isActive=function(){return!!this.l&&this.l.isActive(this)},(n=t5.prototype).ua=function(){},n.ta=function(){},n.sa=function(){},n.ra=function(){},n.isActive=function(){return!0},n.Na=function(){},t8.prototype.g=function(e,t){return new t7(e,t)},I(t7,eu),t7.prototype.m=function(){this.g.l=this.j,this.v&&(this.g.J=!0),this.g.connect(this.l,this.h||void 0)},t7.prototype.close=function(){tV(this.g)},t7.prototype.o=function(e){var t=this.g;if("string"==typeof e){var n={};n.__data__=e,e=n}else this.u&&((n={}).__data__=ev(e),e=n);t.i.push(new e0(t.Ya++,e)),3==t.G&&t$(t)},t7.prototype.N=function(){this.g.l=null,delete this.j,tV(this.g),delete this.g,t7.aa.N.call(this)},I(t9,eT),I(ne,eA),I(nt,t5),nt.prototype.ua=function(){ec(this.g,"a")},nt.prototype.ta=function(e){ec(this.g,new t9(e))},nt.prototype.sa=function(e){ec(this.g,new ne)},nt.prototype.ra=function(){ec(this.g,"b")},t8.prototype.createWebChannel=t8.prototype.g,t7.prototype.send=t7.prototype.o,t7.prototype.open=t7.prototype.m,t7.prototype.close=t7.prototype.close,u=d.createWebChannelTransport=function(){return new t8},h=d.getStatEventTarget=function(){return eO()},l=d.Event=eS,o=d.Stat={mb:0,pb:1,qb:2,Jb:3,Ob:4,Lb:5,Mb:6,Kb:7,Ib:8,Nb:9,PROXY:10,NOPROXY:11,Gb:12,Cb:13,Db:14,Bb:15,Eb:16,Fb:17,ib:18,hb:19,jb:20},ej.NO_ERROR=0,ej.TIMEOUT=8,ej.HTTP_ERROR=6,a=d.ErrorCode=ej,eF.COMPLETE="complete",s=d.EventType=eF,eI.EventType=eC,eC.OPEN="a",eC.CLOSE="b",eC.ERROR="c",eC.MESSAGE="d",eu.prototype.listen=eu.prototype.K,i=d.WebChannel=eI,d.FetchXmlHttpFactory=tI,tk.prototype.listenOnce=tk.prototype.L,tk.prototype.getLastError=tk.prototype.Ka,tk.prototype.getLastErrorCode=tk.prototype.Ba,tk.prototype.getStatus=tk.prototype.Z,tk.prototype.getResponseJson=tk.prototype.Oa,tk.prototype.getResponseText=tk.prototype.oa,tk.prototype.send=tk.prototype.ea,tk.prototype.setWithCredentials=tk.prototype.Ha,r=d.XhrIo=tk}).apply(void 0!==c?c:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},76492:(e,t,n)=>{var r=n(82576),i=n(68690),s=n(25281),a=n(42071);function o(e,t){if(void 0===t)return{merge:!1};if(void 0!==t.mergeFields&&void 0!==t.merge)throw new i.W6("invalid-argument",`Invalid options passed to function ${e}(): You cannot specify both "merge" and "mergeFields".`);return t}function l(){if("undefined"==typeof Uint8Array)throw new i.W6("unimplemented","Uint8Arrays are not available in this environment.")}function h(){if(!(0,i.qG)())throw new i.W6("unimplemented","Blobs are unavailable in Firestore in this environment.")}class u{constructor(e){this._delegate=e}static fromBase64String(e){return h(),new u(i.Ix.fromBase64String(e))}static fromUint8Array(e){return l(),new u(i.Ix.fromUint8Array(e))}toBase64(){return h(),this._delegate.toBase64()}toUint8Array(){return l(),this._delegate.toUint8Array()}isEqual(e){return this._delegate.isEqual(e._delegate)}toString(){return"Blob(base64: "+this.toBase64()+")"}}function c(e){var t=e,n=["next","error","complete"];if("object"!=typeof t||null===t)return!1;for(let e of n)if(e in t&&"function"==typeof t[e])return!0;return!1}class d{enableIndexedDbPersistence(e,t){return(0,i.ol)(e._delegate,{forceOwnership:t})}enableMultiTabIndexedDbPersistence(e){return(0,i.Q5)(e._delegate)}clearIndexedDbPersistence(e){return(0,i.me)(e._delegate)}}class f{constructor(e,t,n){this._delegate=t,this._persistenceProvider=n,this.INTERNAL={delete:()=>this.terminate()},e instanceof i.cm||(this._appCompat=e)}get _databaseId(){return this._delegate._databaseId}settings(e){let t=this._delegate._getSettings();e.merge||t.host===e.host||(0,i.qi)("You are overriding the original host. If you did not intend to override your settings, use {merge: true}."),e.merge&&(e=Object.assign(Object.assign({},t),e),delete e.merge),this._delegate._setSettings(e)}useEmulator(e,t,n={}){(0,i.vN)(this._delegate,e,t,n)}enableNetwork(){return(0,i.Os)(this._delegate)}disableNetwork(){return(0,i.LA)(this._delegate)}enablePersistence(e){let t=!1,n=!1;return e&&(t=!!e.synchronizeTabs,n=!!e.experimentalForceOwningTab,(0,i.c8)("synchronizeTabs",t,"experimentalForceOwningTab",n)),t?this._persistenceProvider.enableMultiTabIndexedDbPersistence(this):this._persistenceProvider.enableIndexedDbPersistence(this,n)}clearPersistence(){return this._persistenceProvider.clearIndexedDbPersistence(this)}terminate(){return this._appCompat&&(this._appCompat._removeServiceInstance("firestore-compat"),this._appCompat._removeServiceInstance("firestore")),this._delegate._delete()}waitForPendingWrites(){return(0,i.iB)(this._delegate)}onSnapshotsInSync(e){return(0,i.FC)(this._delegate,e)}get app(){if(!this._appCompat)throw new i.W6("failed-precondition","Firestore was not initialized using the Firebase SDK. 'app' is not available");return this._appCompat}collection(e){try{return new S(this,(0,i.rJ)(this._delegate,e))}catch(e){throw y(e,"collection()","Firestore.collection()")}}doc(e){try{return new v(this,(0,i.H9)(this._delegate,e))}catch(e){throw y(e,"doc()","Firestore.doc()")}}collectionGroup(e){try{return new C(this,(0,i.Cs)(this._delegate,e))}catch(e){throw y(e,"collectionGroup()","Firestore.collectionGroup()")}}runTransaction(e){return(0,i.c4)(this._delegate,t=>e(new g(this,t)))}batch(){return(0,i.Ws)(this._delegate),new _(new i.GA(this._delegate,e=>(0,i.z6)(this._delegate,e)))}loadBundle(e){return(0,i.po)(this._delegate,e)}namedQuery(e){return(0,i.St)(this._delegate,e).then(e=>e?new C(this,e):null)}}class p extends i.fS{constructor(e){super(),this.firestore=e}convertBytes(e){return new u(new i.Ix(e))}convertReference(e){let t=this.convertDocumentKey(e,this.firestore._databaseId);
15return v.forKey(t,this.firestore,null)}}class g{constructor(e,t){this._firestore=e,this._delegate=t,this._userDataWriter=new p(e)}get(e){let t=R(e);return this._delegate.get(t).then(e=>new E(this._firestore,new i.Wq(this._firestore._delegate,this._userDataWriter,e._key,e._document,e.metadata,t.converter)))}set(e,t,n){let r=R(e);return n?(o("Transaction.set",n),this._delegate.set(r,t,n)):this._delegate.set(r,t),this}update(e,t,n,...r){let i=R(e);return 2==arguments.length?this._delegate.update(i,t):this._delegate.update(i,t,n,...r),this}delete(e){let t=R(e);return this._delegate.delete(t),this}}class _{constructor(e){this._delegate=e}set(e,t,n){let r=R(e);return n?(o("WriteBatch.set",n),this._delegate.set(r,t,n)):this._delegate.set(r,t),this}update(e,t,n,...r){let i=R(e);return 2==arguments.length?this._delegate.update(i,t):this._delegate.update(i,t,n,...r),this}delete(e){let t=R(e);return this._delegate.delete(t),this}commit(){return this._delegate.commit()}}class m{constructor(e,t,n){this._firestore=e,this._userDataWriter=t,this._delegate=n}fromFirestore(e,t){let n=new i.YQ(this._firestore._delegate,this._userDataWriter,e._key,e._document,e.metadata,null);return this._delegate.fromFirestore(new I(this._firestore,n),null!=t?t:{})}toFirestore(e,t){return t?this._delegate.toFirestore(e,t):this._delegate.toFirestore(e)}static getInstance(e,t){let n=m.INSTANCES,r=n.get(e);r||(r=new WeakMap,n.set(e,r));let i=r.get(t);return i||(i=new m(e,new p(e),t),r.set(t,i)),i}}m.INSTANCES=new WeakMap;class v{constructor(e,t){this.firestore=e,this._delegate=t,this._userDataWriter=new p(e)}static forPath(e,t,n){if(e.length%2!=0)throw new i.W6("invalid-argument",`Invalid document reference. Document references must have an even number of segments, but ${e.canonicalString()} has ${e.length}`);return new v(t,new i.T1(t._delegate,n,new i.K$(e)))}static forKey(e,t,n){return new v(t,new i.T1(t._delegate,n,e))}get id(){return this._delegate.id}get parent(){return new S(this.firestore,this._delegate.parent)}get path(){return this._delegate.path}collection(e){try{return new S(this.firestore,(0,i.rJ)(this._delegate,e))}catch(e){throw y(e,"collection()","DocumentReference.collection()")}}isEqual(e){return(e=(0,s.Ku)(e))instanceof i.T1&&(0,i.yx)(this._delegate,e)}set(e,t){t=o("DocumentReference.set",t);try{if(t)return(0,i.BN)(this._delegate,e,t);return(0,i.BN)(this._delegate,e)}catch(e){throw y(e,"setDoc()","DocumentReference.set()")}}update(e,t,...n){try{if(1==arguments.length)return(0,i.mZ)(this._delegate,e);return(0,i.mZ)(this._delegate,e,t,...n)}catch(e){throw y(e,"updateDoc()","DocumentReference.update()")}}delete(){return(0,i.kd)(this._delegate)}onSnapshot(...e){let t=b(e),n=w(e,e=>new E(this.firestore,new i.Wq(this.firestore._delegate,this._userDataWriter,e._key,e._document,e.metadata,this._delegate.converter)));return(0,i.aQ)(this._delegate,t,n)}get(e){return((null==e?void 0:e.source)==="cache"?(0,i.nY)(this._delegate):(null==e?void 0:e.source)==="server"?(0,i._e)(this._delegate):(0,i.x7)(this._delegate)).then(e=>new E(this.firestore,new i.Wq(this.firestore._delegate,this._userDataWriter,e._key,e._document,e.metadata,this._delegate.converter)))}withConverter(e){return new v(this.firestore,e?this._delegate.withConverter(m.getInstance(this.firestore,e)):this._delegate.withConverter(null))}}function y(e,t,n){return e.message=e.message.replace(t,n),e}function b(e){for(let t of e)if("object"==typeof t&&!c(t))return t;return{}}function w(e,t){var n,r;let i;return{next:e=>{i.next&&i.next(t(e))},error:null==(n=(i=c(e[0])?e[0]:c(e[1])?e[1]:"function"==typeof e[0]?{next:e[0],error:e[1],complete:e[2]}:{next:e[1],error:e[2],complete:e[3]}).error)?void 0:n.bind(i),complete:null==(r=i.complete)?void 0:r.bind(i)}}class E{constructor(e,t){this._firestore=e,this._delegate=t}get ref(){return new v(this._firestore,this._delegate.ref)}get id(){return this._delegate.id}get metadata(){return this._delegate.metadata}get exists(){return this._delegate.exists()}data(e){return this._delegate.data(e)}get(e,t){return this._delegate.get(e,t)}isEqual(e){return(0,i.lN)(this._delegate,e._delegate)}}
15class I extends E{data(e){let t=this._delegate.data(e);return this._delegate._converter||(0,i.bI)(void 0!==t,"Document in a QueryDocumentSnapshot should exist"),t}}class C{constructor(e,t){this.firestore=e,this._delegate=t,this._userDataWriter=new p(e)}where(e,t,n){try{return new C(this.firestore,(0,i.P)(this._delegate,(0,i._M)(e,t,n)))}catch(e){throw y(e,/(orderBy|where)\(\)/,"Query.$1()")}}orderBy(e,t){try{return new C(this.firestore,(0,i.P)(this._delegate,(0,i.My)(e,t)))}catch(e){throw y(e,/(orderBy|where)\(\)/,"Query.$1()")}}limit(e){try{return new C(this.firestore,(0,i.P)(this._delegate,(0,i.AB)(e)))}catch(e){throw y(e,"limit()","Query.limit()")}}limitToLast(e){try{return new C(this.firestore,(0,i.P)(this._delegate,(0,i.$1)(e)))}catch(e){throw y(e,"limitToLast()","Query.limitToLast()")}}startAt(...e){try{return new C(this.firestore,(0,i.P)(this._delegate,(0,i.EO)(...e)))}catch(e){throw y(e,"startAt()","Query.startAt()")}}startAfter(...e){try{return new C(this.firestore,(0,i.P)(this._delegate,(0,i.HM)(...e)))}catch(e){throw y(e,"startAfter()","Query.startAfter()")}}endBefore(...e){try{return new C(this.firestore,(0,i.P)(this._delegate,(0,i.rf)(...e)))}catch(e){throw y(e,"endBefore()","Query.endBefore()")}}endAt(...e){try{return new C(this.firestore,(0,i.P)(this._delegate,(0,i.FD)(...e)))}catch(e){throw y(e,"endAt()","Query.endAt()")}}isEqual(e){return(0,i.B)(this._delegate,e._delegate)}get(e){return((null==e?void 0:e.source)==="cache"?(0,i.kU)(this._delegate):(null==e?void 0:e.source)==="server"?(0,i.Rr)(this._delegate):(0,i.GG)(this._delegate)).then(e=>new A(this.firestore,new i.NJ(this.firestore._delegate,this._userDataWriter,this._delegate,e._snapshot)))}onSnapshot(...e){let t=b(e),n=w(e,e=>new A(this.firestore,new i.NJ(this.firestore._delegate,this._userDataWriter,this._delegate,e._snapshot)));return(0,i.aQ)(this._delegate,t,n)}withConverter(e){return new C(this.firestore,e?this._delegate.withConverter(m.getInstance(this.firestore,e)):this._delegate.withConverter(null))}}class T{constructor(e,t){this._firestore=e,this._delegate=t}get type(){return this._delegate.type}get doc(){return new I(this._firestore,this._delegate.doc)}get oldIndex(){return this._delegate.oldIndex}get newIndex(){return this._delegate.newIndex}}class A{constructor(e,t){this._firestore=e,this._delegate=t}get query(){return new C(this._firestore,this._delegate.query)}get metadata(){return this._delegate.metadata}get size(){return this._delegate.size}get empty(){return this._delegate.empty}get docs(){return this._delegate.docs.map(e=>new I(this._firestore,e))}docChanges(e){return this._delegate.docChanges(e).map(e=>new T(this._firestore,e))}forEach(e,t){this._delegate.forEach(n=>{e.call(t,new I(this._firestore,n))})}isEqual(e){return(0,i.lN)(this._delegate,e._delegate)}}class S extends C{constructor(e,t){super(e,t),this.firestore=e,this._delegate=t}get id(){return this._delegate.id}get path(){return this._delegate.path}get parent(){let e=this._delegate.parent;return e?new v(this.firestore,e):null}doc(e){try{if(void 0===e)return new v(this.firestore,(0,i.H9)(this._delegate));return new v(this.firestore,(0,i.H9)(this._delegate,e))}catch(e){throw y(e,"doc()","CollectionReference.doc()")}}add(e){return(0,i.gS)(this._delegate,e).then(e=>new v(this.firestore,e))}isEqual(e){return(0,i.yx)(this._delegate,e._delegate)}withConverter(e){return new S(this.firestore,e?this._delegate.withConverter(m.getInstance(this.firestore,e)):this._delegate.withConverter(null))}}function R(e){return(0,i.lo)(e,i.T1)}class O{constructor(...e){this._delegate=new i.uY(...e)}static documentId(){return new O(i.FA.keyField().canonicalString())}isEqual(e){return(e=(0,s.Ku)(e))instanceof i.uY&&this._delegate._internalPath.isEqual(e._internalPath)}}class k{static serverTimestamp(){let e=(0,i.O5)();return e._methodName="FieldValue.serverTimestamp",new k(e)}static delete(){let e=(0,i.CL)();return e._methodName="FieldValue.delete",new k(e)}static arrayUnion(...e){let t=(0,i.hq)(...e);return t._methodName="FieldValue.arrayUnion",new k(t)}static arrayRemove(...e){let t=(0,i.C3)(...e);return t._methodName="FieldValue.arrayRemove",new k(t)}static increment(e){let t=(0,i.GV)(e);return t._methodName="FieldValue.increment",new k(t)}constructor(e){this._delegate=e}isEqual(e){return this._delegate.isEqual(e._delegate)}}let D={Firestore:f,GeoPoint:i.Ci,Timestamp:i.Dc,Blob:u,Transaction:g,WriteBatch:_,DocumentReference:v,DocumentSnapshot:E,Query:C,QueryDocumentSnapshot:I,QuerySnapsh
15ot:A,CollectionReference:S,FieldPath:O,FieldValue:k,setLogLevel:function(e){(0,i.He)(e)},CACHE_SIZE_UNLIMITED:i.H6};!function(e){e.INTERNAL.registerComponent(new a.uA("firestore-compat",e=>((e,t)=>new f(e,t,new d))(e.getProvider("app-compat").getImmediate(),e.getProvider("firestore").getImmediate()),"PUBLIC").setServiceProps(Object.assign({},D))),e.registerVersion("@firebase/firestore-compat","0.3.53")}(r.A)},78578:(e,t,n)=>{let r,i,s,a;var o,l=n(82576),h=n(55582),u=n(89606),c=n(25281),d=n(42071),f=n(25833);let p="@firebase/installations",g="0.6.18",_=`w:${g}`,m="FIS_v2",v=new c.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 y(e){return e instanceof c.g&&e.code.includes("request-failed")}function b({projectId:e}){return`https://firebaseinstallations.googleapis.com/v1/projects/${e}/installations`}function w(e){return{token:e.token,requestStatus:2,expiresIn:Number(e.expiresIn.replace("s","000")),creationTime:Date.now()}}async function E(e,t){let n=(await t.json()).error;return v.create("request-failed",{requestName:e,serverCode:n.code,serverMessage:n.message,serverStatus:n.status})}function I({apiKey:e}){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":e})}async function C(e){let t=await e();return t.status>=500&&t.status<600?e():t}async function T({appConfig:e,heartbeatServiceProvider:t},{fid:n}){let r=b(e),i=I(e),s=t.getImmediate({optional:!0});if(s){let e=await s.getHeartbeatsHeader();e&&i.append("x-firebase-client",e)}let a={method:"POST",headers:i,body:JSON.stringify({fid:n,authVersion:m,appId:e.appId,sdkVersion:_})},o=await C(()=>fetch(r,a));if(o.ok){let e=await o.json();return{fid:e.fid||n,registrationStatus:2,refreshToken:e.refreshToken,authToken:w(e.authToken)}}throw await E("Create Installation",o)}function A(e){return new Promise(t=>{setTimeout(t,e)})}let S=/^[cdef][\w-]{21}$/;function R(e){return`${e.appName}!${e.appId}`}let O=new Map;function k(e,t){let n=R(e);D(n,t),function(e,t){let n=(!x&&"BroadcastChannel"in self&&((x=new BroadcastChannel("[Firebase] FID Change")).onmessage=e=>{D(e.data.key,e.data.fid)}),x);n&&n.postMessage({key:e,fid:t}),0===O.size&&x&&(x.close(),x=null)}(n,t)}function D(e,t){let n=O.get(e);if(n)for(let e of n)e(t)}let x=null,P="firebase-installations-store",N=null;function L(){return N||(N=(0,f.P2)("firebase-installations-database",1,{upgrade:(e,t)=>{0===t&&e.createObjectStore(P)}})),N}async function U(e,t){let n=R(e),r=(await L()).transaction(P,"readwrite"),i=r.objectStore(P),s=await i.get(n);return await i.put(t,n),await r.done,s&&s.fid===t.fid||k(e,t.fid),t}async function M(e){let t=R(e),n=(await L()).transaction(P,"readwrite");await n.objectStore(P).delete(t),await n.done}async function j(e,t){let n=R(e),r=(await L()).transaction(P,"readwrite"),i=r.objectStore(P),s=await i.get(n),a=t(s);return void 0===a?await i.delete(n):await i.put(a,n),await r.done,a&&(!s||s.fid!==a.fid)&&k(e,a.fid),a}async function F(e){let t,n=await j(e.appConfig,n=>{let r=function(e,t){if(0===t.registrationStatus){if(!navigator.onLine)return{installationEntry:t,registrationPromise:Promise.reject(v.create("app-offline"))};let n={fid:t.fid,registrationStatus:1,registrationTime:Date.now()},r=B(e,n);return{installationEntry:n,registrationPromise:r}}return 1===t.registrationStatus?{installationEntry:t,registrationPromise:H(e)}:{installationEntry:t}}(e,z(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 B(e,t){try{let n=await T(e,t);return U(e.appConfig,n)}catch(n){throw y(n)&&409===n.customData.serverCode?await M(e.appConfig):await U(e.appConfig,{fid:t.fid,registrationStatus:0}),n}}async function H(e){let t=await V(e.appConfig);for(;1===t.registrationStatus;)await A(100),t=await V(e.appConfig);if(0===t.registrationStatus){let{installationEntry:t,registrationPromise:n}=await F(e);return n||t}return t}function V(e){return j(e,e=>{if(!e)throw v.create("installation-not-found");return z(e)})}function z(e){var t;return 1===(t=e).registrationStatus&&t.registrationTime+1e4<Date.now()?{fid:e.fid,registrationStatus:0}:e}async function W({appConfig:e,heartbeatServiceProvider:t},n){let r=function(e,{fid:t}){return`${b(e)}/${t}/authTokens:generate`}(e,n),i=function(e,{refreshToken:t}){var n;let r=I(e);return r.append("Authorization",(n=t,`${m} ${n}`)),r}(e,n),s=t.getImmediate({optional:!0});if(s){let e=await s.getHeartbeatsHeader();e&&i.append("x-firebase-client",e)}let a={method:"POST",headers:i,body:JSON.stringify({installation:{sdkVersion:_,appId:e.appId}})},o=await C(()=>fetch(r,a));if(o.ok)return w(await o.json());throw await E("Generate Auth Token",o)}async function $(e,t=!1){let n,r=await j(e.appConfig,r=>{var i;if(!X(r))throw v.create("not-registered");let s=r.authToken;if(!t&&2===(i=s).requestStatus&&!function(e){let t=Date.now();
15return t<e.creationTime||e.creationTime+e.expiresIn<t+36e5}(i))return r;if(1===s.requestStatus)return n=q(e,t),r;{if(!navigator.onLine)throw v.create("app-offline");let t=function(e){let t={requestStatus:1,requestTime:Date.now()};return Object.assign(Object.assign({},e),{authToken:t})}(r);return n=G(e,t),t}});return n?await n:r.authToken}async function q(e,t){let n=await K(e.appConfig);for(;1===n.authToken.requestStatus;)await A(100),n=await K(e.appConfig);let r=n.authToken;return 0===r.requestStatus?$(e,t):r}function K(e){return j(e,e=>{var t;if(!X(e))throw v.create("not-registered");return 1===(t=e.authToken).requestStatus&&t.requestTime+1e4<Date.now()?Object.assign(Object.assign({},e),{authToken:{requestStatus:0}}):e})}async function G(e,t){try{let n=await W(e,t),r=Object.assign(Object.assign({},t),{authToken:n});return await U(e.appConfig,r),n}catch(n){if(y(n)&&(401===n.customData.serverCode||404===n.customData.serverCode))await M(e.appConfig);else{let n=Object.assign(Object.assign({},t),{authToken:{requestStatus:0}});await U(e.appConfig,n)}throw n}}function X(e){return void 0!==e&&2===e.registrationStatus}async function J(e){let{installationEntry:t,registrationPromise:n}=await F(e);return n?n.catch(console.error):$(e).catch(console.error),t.fid}async function Y(e,t=!1){return await Q(e),(await $(e,t)).token}async function Q(e){let{registrationPromise:t}=await F(e);t&&await t}function Z(e){return v.create("missing-app-config-values",{valueName:e})}let ee="installations";(0,h._registerComponent)(new d.uA(ee,e=>{let t=e.getProvider("app").getImmediate(),n=function(e){if(!e||!e.options)throw Z("App Configuration");if(!e.name)throw Z("App Name");for(let t of["projectId","apiKey","appId"])if(!e.options[t])throw Z(t);return{appName:e.name,projectId:e.options.projectId,apiKey:e.options.apiKey,appId:e.options.appId}}(t),r=(0,h._getProvider)(t,"heartbeat");return{app:t,appConfig:n,heartbeatServiceProvider:r,_delete:()=>Promise.resolve()}},"PUBLIC")),(0,h._registerComponent)(new d.uA("installations-internal",e=>{let t=e.getProvider("app").getImmediate(),n=(0,h._getProvider)(t,ee).getImmediate();return{getId:()=>J(n),getToken:e=>Y(n,e)}},"PRIVATE")),(0,h.registerVersion)(p,g),(0,h.registerVersion)(p,g,"esm2017");let et="analytics",en="https://www.googletagmanager.com/gtag/js",er=new u.Vy("@firebase/analytics"),ei=new c.FA("analytics","Analytics",{"already-exists":"A Firebase Analytics instance with the appId {$id}  already exists. Only one Firebase Analytics instance can be created for each appId.","already-initialized":"initializeAnalytics() cannot be called again with different options than those it was initially called with. It can be called again with the same options to return the existing instance, or getAnalytics() can be used to get a reference to the already-initialized instance.","already-initialized-settings":"Firebase Analytics has already been initialized.settings() must be called before initializing any Analytics instanceor it will have no effect.","interop-component-reg-failed":"Firebase Analytics Interop Component failed to instantiate: {$reason}","invalid-analytics-context":"Firebase Analytics is not supported in this environment. Wrap initialization of analytics in analytics.isSupported() to prevent initialization in unsupported environments. Details: {$errorInfo}","indexeddb-unavailable":"IndexedDB unavailable or restricted in this environment. Wrap initialization of analytics in analytics.isSupported() to prevent initialization in unsupported environments. Details: {$errorInfo}","fetch-throttle":"The config fetch request timed out while in an exponential backoff state. Unix timestamp in milliseconds when fetch request throttling ends: {$throttleEndTimeMillis}.","config-fetch-failed":"Dynamic config fetch failed: [{$httpStatus}] {$responseMessage}","no-api-key":'The "apiKey" field is empty in the local Firebase config. Firebase Analytics requires this field tocontain a valid API key.',"no-app-id":'The "appId" field is empty in the local Firebase config. Firebase Analytics requires this field tocontain a valid app ID.',"no-client-id":'The "client_id" field is empty.',"invali
15d-gtag-resource":"Trusted Types detected an invalid gtag resource: {$gtagURL}."});function es(e){if(!e.startsWith(en)){let t=ei.create("invalid-gtag-resource",{gtagURL:e});return er.warn(t.message),""}return e}function ea(e){return Promise.all(e.map(e=>e.catch(e=>e)))}async function eo(e,t,n,r,i,s){let a=r[i];try{if(a)await t[a];else{let e=(await ea(n)).find(e=>e.measurementId===i);e&&await t[e.appId]}}catch(e){er.error(e)}e("config",i,s)}async function el(e,t,n,r,i){try{let s=[];if(i&&i.send_to){let e=i.send_to;Array.isArray(e)||(e=[e]);let r=await ea(n);for(let n of e){let e=r.find(e=>e.measurementId===n),i=e&&t[e.appId];if(i)s.push(i);else{s=[];break}}}0===s.length&&(s=Object.values(t)),await Promise.all(s),e("event",r,i||{})}catch(e){er.error(e)}}class eh{constructor(e={},t=1e3){this.throttleMetadata=e,this.intervalMillis=t}getThrottleMetadata(e){return this.throttleMetadata[e]}setThrottleMetadata(e,t){this.throttleMetadata[e]=t}deleteThrottleMetadata(e){delete this.throttleMetadata[e]}}let eu=new eh;async function ec(e){var t;let{appId:n,apiKey:r}=e,i={method:"GET",headers:new Headers({Accept:"application/json","x-goog-api-key":r})},s="https://firebase.googleapis.com/v1alpha/projects/-/apps/{app-id}/webConfig".replace("{app-id}",n),a=await fetch(s,i);if(200!==a.status&&304!==a.status){let e="";try{let n=await a.json();(null==(t=n.error)?void 0:t.message)&&(e=n.error.message)}catch(e){}throw ei.create("config-fetch-failed",{httpStatus:a.status,responseMessage:e})}return a.json()}async function ed(e,t=eu,n){let{appId:r,apiKey:i,measurementId:s}=e.options;if(!r)throw ei.create("no-app-id");if(!i){if(s)return{measurementId:s,appId:r};throw ei.create("no-api-key")}let a=t.getThrottleMetadata(r)||{backoffCount:0,throttleEndTimeMillis:Date.now()},o=new ep;return setTimeout(async()=>{o.abort()},void 0!==n?n:6e4),ef({appId:r,apiKey:i,measurementId:s},a,o,t)}async function ef(e,{throttleEndTimeMillis:t,backoffCount:n},r,i=eu){var s,a,o;let{appId:l,measurementId:h}=e;try{await (a=r,o=t,new Promise((e,t)=>{let n=setTimeout(e,Math.max(o-Date.now(),0));a.addEventListener(()=>{clearTimeout(n),t(ei.create("fetch-throttle",{throttleEndTimeMillis:o}))})}))}catch(e){if(h)return er.warn(`Timed out fetching this Firebase app's measurement ID from the server. Falling back to the measurement ID ${h} provided in the "measurementId" field in the local Firebase config. [${null==e?void 0:e.message}]`),{appId:l,measurementId:h};throw e}try{let t=await ec(e);return i.deleteThrottleMetadata(l),t}catch(o){if(!function(e){if(!(e instanceof c.g)||!e.customData)return!1;let t=Number(e.customData.httpStatus);return 429===t||500===t||503===t||504===t}(o)){if(i.deleteThrottleMetadata(l),h)return er.warn(`Failed to fetch this Firebase app's measurement ID from the server. Falling back to the measurement ID ${h} provided in the "measurementId" field in the local Firebase config. [${null==o?void 0:o.message}]`),{appId:l,measurementId:h};throw o}let t=503===Number(null==(s=null==o?void 0:o.customData)?void 0:s.httpStatus)?(0,c.p9)(n,i.intervalMillis,30):(0,c.p9)(n,i.intervalMillis),a={throttleEndTimeMillis:Date.now()+t,backoffCount:n+1};return i.setThrottleMetadata(l,a),er.debug(`Calling attemptFetch again in ${t} millis`),ef(e,a,r,i)}}class ep{constructor(){this.listeners=[]}addEventListener(e){this.listeners.push(e)}abort(){this.listeners.forEach(e=>e())}}async function eg(e,t,n,r,i){if(i&&i.global)return void e("event",n,r);{let i=await t;e("event",n,Object.assign(Object.assign({},r),{send_to:i}))}}async function e_(e,t,n,r){if(r&&r.global)return e("set",{screen_name:n}),Promise.resolve();e("config",await t,{update:!0,screen_name:n})}async function em(e,t,n,r){if(r&&r.global)return e("set",{user_id:n}),Promise.resolve();e("config",await t,{update:!0,user_id:n})}async function ev(e,t,n,r){if(r&&r.global){let t={};for(let e of Object.keys(n))t[`user_properties.${e}`]=n[e];return e("set",t),Promise.resolve()}e("config",await t,{update:!0,user_properties:n})}async function ey(e,t){let n=await e;window[`ga-disable-${n}`]=!t}
15async function eb(){if(!(0,c.zW)())return er.warn(ei.create("indexeddb-unavailable",{errorInfo:"IndexedDB is not available in this environment."}).message),!1;try{await (0,c.eX)()}catch(e){return er.warn(ei.create("indexeddb-unavailable",{errorInfo:null==e?void 0:e.toString()}).message),!1}return!0}async function ew(e,t,n,s,a,o,l){var h;let u=ed(e);u.then(t=>{n[t.measurementId]=t.appId,e.options.measurementId&&t.measurementId!==e.options.measurementId&&er.warn(`The measurement ID in the local Firebase config (${e.options.measurementId}) does not match the measurement ID fetched from the server (${t.measurementId}). To ensure analytics events are always sent to the correct Analytics property, update the measurement ID field in the local config or remove it from the local config.`)}).catch(e=>er.error(e)),t.push(u);let c=eb().then(e=>e?s.getId():void 0),[d,f]=await Promise.all([u,c]);!function(e){for(let t of Object.values(window.document.getElementsByTagName("script")))if(t.src&&t.src.includes(en)&&t.src.includes(e))return t;return null}(o)&&function(e,t){var n;let r,i=(n={createScriptURL:es},window.trustedTypes&&(r=window.trustedTypes.createPolicy("firebase-js-sdk-policy",n)),r),s=document.createElement("script"),a=`${en}?l=${e}
15&id=${t}`;s.src=i?null==i?void 0:i.createScriptURL(a):a,s.async=!0,document.head.appendChild(s)}(o,d.measurementId),i&&(a("consent","default",i),i=void 0),a("js",new Date);let p=null!=(h=null==l?void 0:l.config)?h:{};return p.origin="firebase",p.update=!0,null!=f&&(p.firebase_id=f),a("config",d.measurementId,p),r&&(a("set",r),r=void 0),d.measurementId}class eE{constructor(e){this.app=e}_delete(){return delete eI[this.app.options.appId],Promise.resolve()}}let eI={},eC=[],eT={},eA="dataLayer",eS="gtag",eR=!1;function eO(e){if(eR)throw ei.create("already-initialized");e.dataLayerName&&(eA=e.dataLayerName),e.gtagName&&(eS=e.gtagName)}async function ek(){if((0,c.sr)()||!(0,c.dM)()||!(0,c.zW)())return!1;try{return await (0,c.eX)()}catch(e){return!1}}function eD(e,t,n,r){e=(0,c.Ku)(e),eg(a,eI[e.app.options.appId],t,n,r).catch(e=>er.error(e))}let ex="@firebase/analytics",eP="0.10.17";(0,h._registerComponent)(new d.uA(et,(e,{options:t})=>(function(e,t,n){let r=[];if((0,c.sr)()&&r.push("This is a browser extension environment."),(0,c.dM)()||r.push("Cookies are not available."),r.length>0){let e=r.map((e,t)=>`(${t+1}) ${e}`).join(" "),t=ei.create("invalid-analytics-context",{errorInfo:e});er.warn(t.message)}let i=e.options.appId;if(!i)throw ei.create("no-app-id");if(!e.options.apiKey)if(e.options.measurementId)er.warn(`The "apiKey" field is empty in the local Firebase config. This is needed to fetch the latest measurement ID for this Firebase app. Falling back to the measurement ID ${e.options.measurementId} provided in the "measurementId" field in the local Firebase config.`);else throw ei.create("no-api-key");if(null!=eI[i])throw ei.create("already-exists",{id:i});if(!eR){var o,l,h,u;let e,t;o=eA,e=[],Array.isArray(window[o])?e=window[o]:window[o]=e;let{wrappedGtag:n,gtagCore:r}=(l=eA,h=eS,t=function(){window[l].push(arguments)},window[h]&&"function"==typeof window[h]&&(t=window[h]),window[h]=(u=t,async function(e,...t){try{if("event"===e){let[e,n]=t;await el(u,eI,eC,e,n)}else if("config"===e){let[e,n]=t;await eo(u,eI,eC,eT,e,n)}else if("consent"===e){let[e,n]=t;u("consent",e,n)}else if("get"===e){let[e,n,r]=t;u("get",e,n,r)}else if("set"===e){let[e]=t;u("set",e)}else u(e,...t)}catch(e){er.error(e)}}),{gtagCore:t,wrappedGtag:window[h]});a=n,s=r,eR=!0}return eI[i]=ew(e,eC,eT,t,s,eA,n),new eE(e)})(e.getProvider("app").getImmediate(),e.getProvider("installations-internal").getImmediate(),t),"PUBLIC")),(0,h._registerComponent)(new d.uA("analytics-internal",function(e){try{let t=e.getProvider(et).getImmediate();return{logEvent:(e,n,r)=>eD(t,e,n,r)}}catch(e){throw ei.create("interop-component-reg-failed",{reason:e})}},"PRIVATE")),(0,h.registerVersion)(ex,eP),(0,h.registerVersion)(ex,eP,"esm2017");class eN{constructor(e,t){this.app=e,this._delegate=t}logEvent(e,t,n){eD(this._delegate,e,t,n)}setCurrentScreen(e,t){var n;n=this._delegate,n=(0,c.Ku)(n),e_(a,eI[n.app.options.appId],e,t).catch(e=>er.error(e))}setUserId(e,t){var n;n=this._delegate,n=(0,c.Ku)(n),em(a,eI[n.app.options.appId],e,t).catch(e=>er.error(e))}setUserProperties(e,t){var n;n=this._delegate,n=(0,c.Ku)(n),ev(a,eI[n.app.options.appId],e,t).catch(e=>er.error(e))}setAnalyticsCollectionEnabled(e){var t;t=this._delegate,ey(eI[(t=(0,c.Ku)(t)).app.options.appId],e).catch(e=>er.error(e))}}!function(e){e.ADD_SHIPPING_INFO="add_shipping_info",e.ADD_PAYMENT_INFO="add_payment_info",e.ADD_TO_CART="add_to_cart",e.ADD_TO_WISHLIST="add_to_wishlist",e.BEGIN_CHECKOUT="begin_checkout",e.CHECKOUT_PROGRESS="checkout_progress",e.EXCEPTION="exception",e.GENERATE_LEAD="generate_lead",e.LOGIN="login",e.PAGE_VIEW="page_view",e.PURCHASE="purchase",e.REFUND="refund",e.REMOVE_FROM_CART="remove_from_cart",e.SCREEN_VIEW="screen_view",e.SEARCH="search",e.SELECT_CONTENT="select_content",e.SELECT_ITEM="select_item",e.SELECT_PROMOTION="select_promotion",e.SET_CHECKOUT_OPTION="set_checkout_option",e.SHARE="share",e.SIGN_UP="sign_up",e.TIMING_COMPLETE="timing_complete",e.VIEW_CART="view_cart",e.VIEW_ITEM="view_item",e.VIEW_ITEM_LIST="view_item_list",e.VIEW_PROMOTION="view_promotion",e.VIEW_SEARCH_RESULTS="view_search_results"}(o||(o={}));let eL=e=>new eN(e.getProvider("app-compat").getImmediate(),e.getProvider("analytics").getImmediate());!function(){let e={Analytics:eN,settings:eO,isSupported:ek,EventName:o};l.A.INTERNAL.registerComponent(new d.uA("analytics-compat",eL,"PUBLIC").setServiceProps(e).setMultipleInstances(!0))}(),l.A.registerVersion("@firebase/analytics-compat","0.2.23")},82576:(e,t,n)=>{n.d(t,{A:()=>c});var r=n(25281),i=n(42071),s=n(55582),a=n(89606);class o{constructor(e,t){this._delegate=e,this.firebase=t,(0,s._addComponent)(e,new i.uA("app-compat",()=>this,"PUBLIC")),this.container=e.container}get automaticDataCollectionEnabled(){return this._delegate.automaticDataCollectionEnabled}set automaticDataCollectionEnabled(e){this._delegate.automaticDataCollectionEnabled=e}get name(){return this._delegate.name}get options(){return this._delegate.options}delete(){return new Promise(e=>{this._delegate.checkDestroyed(),e()}).then(()=>(this.firebase.INTERNAL.removeApp(this.name),(0,s.deleteApp)(this._delegate)))}_getService(e,t=s._DEFAULT_ENTRY_NAME){var n;this._delegate.checkDestroyed();let r=this._delegate.container.getProvider(e);return r.isInitialized()||(null==(n=r.getComponent())?void 0:n.instantiationMode)!=="EXPLICIT"||r.initialize(),r.getImmediate({identifier:t})}_removeServiceInstance(e,t=s._DEFAULT_ENTRY_NAME){this._delegate.container.getProvider(e).
15clearInstance(t)}_addComponent(e){(0,s._addComponent)(this._delegate,e)}_addOrOverwriteComponent(e){(0,s._addOrOverwriteComponent)(this._delegate,e)}toJSON(){return{name:this.name,automaticDataCollectionEnabled:this.automaticDataCollectionEnabled,options:this.options}}}let l=new r.FA("app-compat","Firebase",{"no-app":"No Firebase App '{$appName}' has been created - call Firebase App.initializeApp()","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance."}),h=function e(){let t=function(e){let t={},n={__esModule:!0,initializeApp:function(i,a={}){let o=s.initializeApp(i,a);if((0,r.gR)(t,o.name))return t[o.name];let l=new e(o,n);return t[o.name]=l,l},app:i,registerVersion:s.registerVersion,setLogLevel:s.setLogLevel,onLog:s.onLog,apps:null,SDK_VERSION:s.SDK_VERSION,INTERNAL:{registerComponent:function(t){let a=t.name,o=a.replace("-compat","");if(s._registerComponent(t)&&"PUBLIC"===t.type){let s=(e=i())=>{if("function"!=typeof e[o])throw l.create("invalid-app-argument",{appName:a});return e[o]()};void 0!==t.serviceProps&&(0,r.zw)(s,t.serviceProps),n[o]=s,e.prototype[o]=function(...e){return this._getService.bind(this,a).apply(this,t.multipleInstances?e:[])}}return"PUBLIC"===t.type?n[o]:null},removeApp:function(e){delete t[e]},useAsService:function(e,t){return"serverAuth"===t?null:t},modularAPIs:s}};function i(e){if(e=e||s._DEFAULT_ENTRY_NAME,!(0,r.gR)(t,e))throw l.create("no-app",{appName:e});return t[e]}return n.default=n,Object.defineProperty(n,"apps",{get:function(){return Object.keys(t).map(e=>t[e])}}),i.App=e,n}(o);return t.INTERNAL=Object.assign(Object.assign({},t.INTERNAL),{createFirebaseNamespace:e,extendNamespace:function(e){(0,r.zw)(t,e)},createSubscribe:r.tD,ErrorFactory:r.FA,deepExtend:r.zw}),t}(),u=new a.Vy("@firebase/app-compat");try{let e=(0,r.mS)();if(void 0!==e.firebase){u.warn(`
16      Warning: Firebase is already defined in the global scope. Please make sure
17      Firebase library is only loaded once.
18    `);let t=e.firebase.SDK_VERSION;t&&t.indexOf("LITE")>=0&&u.warn(`
19        Warning: You are trying to load Firebase while using Firebase Performance standalone script.
20        You should load Firebase Performance with this instance of Firebase to avoid loading duplicate code.
21        `)}}catch(e){}let c=h;(0,s.registerVersion)("@firebase/app-compat","0.4.2",void 0)},89606:(e,t,n)=>{var r;n.d(t,{$b:()=>r,Ey:()=>c,He:()=>u,Vy:()=>h});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 s={debug:r.DEBUG,verbose:r.VERBOSE,info:r.INFO,warn:r.WARN,error:r.ERROR,silent:r.SILENT},a=r.INFO,o={[r.DEBUG]:"log",[r.VERBOSE]:"log",[r.INFO]:"info",[r.WARN]:"warn",[r.ERROR]:"error"},l=(e,t,...n)=>{if(t<e.logLevel)return;let r=new Date().toISOString(),i=o[t];if(i)console[i](`[${r}]  ${e.name}:`,...n);else throw Error(`Attempted to log a message with an invalid logType (value: ${t})`)};class h{constructor(e){this.name=e,this._logLevel=a,this._logHandler=l,this._userLogHandler=null,i.push(this)}get logLevel(){return this._logLevel}set logLevel(e){if(!(e in r))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,r.DEBUG,...e),this._logHandler(this,r.DEBUG,...e)}log(...e){this._userLogHandler&&this._userLogHandler(this,r.VERBOSE,...e),this._logHandler(this,r.VERBOSE,...e)}info(...e){this._userLogHandler&&this._userLogHandler(this,r.INFO,...e),this._logHandler(this,r.INFO,...e)}warn(...e){this._userLogHandler&&this._userLogHandler(this,r.WARN,...e),this._logHandler(this,r.WARN,...e)}error(...e){this._userLogHandler&&this._userLogHandler(this,r.ERROR,...e),this._logHandler(this,r.ERROR,...e)}}
21function u(e){i.forEach(t=>{t.setLogLevel(e)})}function c(e,t){for(let n of i){let i=null;t&&t.level&&(i=s[t.level]),null===e?n.userLogHandler=null:n.userLogHandler=(t,n,...s)=>{let a=s.map(e=>{if(null==e)return null;if("string"==typeof e)return e;if("number"==typeof e||"boolean"==typeof e)return e.toString();if(e instanceof Error)return e.message;try{return JSON.stringify(e)}catch(e){return null}}).filter(e=>e).join(" ");n>=(null!=i?i:t.logLevel)&&e({level:r[n].toLowerCase(),message:a,args:s,type:t.name})}}}},91792:(e,t,n)=>{var r=n(82576),i=n(44695),s=n(25281);n(55582),n(89606);var a=n(42071);function o(){return window}async function l(e,t,n){var r;let{BuildInfo:s}=o();(0,i.av)(t.sessionId,"AuthEvent did not contain a session ID");let a=await c(t.sessionId),l={};return(0,i.aw)()?l.ibi=s.packageName:(0,i.ax)()?l.apn=s.packageName:(0,i.ay)(e,"operation-not-supported-in-this-environment"),s.displayName&&(l.appDisplayName=s.displayName),l.sessionId=a,(0,i.az)(e,n,t.type,void 0,null!=(r=t.eventId)?r:void 0,l)}async function h(e){let{BuildInfo:t}=o(),n={};(0,i.aw)()?n.iosBundleId=t.packageName:(0,i.ax)()?n.androidPackageName=t.packageName:(0,i.ay)(e,"operation-not-supported-in-this-environment"),await (0,i.aA)(e,n)}async function u(e,t,n){let{cordova:r}=o(),s=()=>{};try{await new Promise((a,o)=>{let l=null;function h(){var e;a();let t=null==(e=r.plugins.browsertab)?void 0:e.close;"function"==typeof t&&t(),"function"==typeof(null==n?void 0:n.close)&&n.close()}function u(){l||(l=window.setTimeout(()=>{o((0,i.aC)(e,"redirect-cancelled-by-user"))},2e3))}function c(){(null==document?void 0:document.visibilityState)==="visible"&&u()}t.addPassiveListener(h),document.addEventListener("resume",u,!1),(0,i.ax)()&&document.addEventListener("visibilitychange",c,!1),s=()=>{t.removePassiveListener(h),document.removeEventListener("resume",u,!1),document.removeEventListener("visibilitychange",c,!1),l&&window.clearTimeout(l)}})}finally{s()}}async function c(e){let t=function(e){if((0,i.av)(/[0-9a-zA-Z]+/.test(e),"Can only convert alpha-numeric strings"),"undefined"!=typeof TextEncoder)return new TextEncoder().encode(e);let t=new Uint8Array(new ArrayBuffer(e.length));for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}(e);return Array.from(new Uint8Array(await crypto.subtle.digest("SHA-256",t))).map(e=>e.toString(16).padStart(2,"0")).join("")}class d extends i.aE{constructor(){super(...arguments),this.passiveListeners=new Set,this.initPromise=new Promise(e=>{this.resolveInitialized=e})}addPassiveListener(e){this.passiveListeners.add(e)}removePassiveListener(e){this.passiveListeners.delete(e)}resetRedirect(){this.queuedRedirectEvent=null,this.hasHandledPotentialRedirect=!1}onEvent(e){return this.resolveInitialized(),this.passiveListeners.forEach(t=>t(e)),super.onEvent(e)}async initialized(){await this.initPromise}}async function f(e){let t=await p()._get(g(e));return t&&await p()._remove(g(e)),t}function p(){return(0,i.aF)(i.b)}function g(e){return(0,i.aG)("authEvent",e.config.apiKey,e.name)}function _(e){if(!(null==e?void 0:e.includes("?")))return{};let[t,...n]=e.split("?");return(0,s.I9)(n.join("?"))}class m{constructor(){this._redirectPersistence=i.c,this._shouldInitProactively=!0,this.eventManagers=new Map,this.originValidationPromises={},this._completeRedirectFn=i.aH,this._overrideRedirectResult=i.aI}async _initialize(e){let t=e._key(),n=this.eventManagers.get(t);return n||(n=new d(e),this.eventManagers.set(t,n),this.attachCallbackListeners(e,n)),n}_openPopup(e){(0,i.ay)(e,"operation-not-supported-in-this-environment")}async _openRedirect(e,t,n,r){!function(e){var t,n,r,s,a,l,h,u,c,d;let f=o();(0,i.aD)("function"==typeof(null==(t=null==f?void 0:f.universalLinks)?void 0:t.subscribe),e,"invalid-cordova-configuration",{missingPlugin:"cordova-universal-links-plugin-fix"}),(0,i.aD)(void 0!==(null==(n=null==f?void 0:f.BuildInfo)?void 0:n.packageName),e,"invalid-cordova-configuration",{missingPlugin:"cordova-plugin-buildInfo"}),(0,i.aD)("function"==typeof(null==(a=null==(s=null==(r=null==f?void 0:f.cordova)?void 0:r.plugins)?void 0:s.browsertab)?void 0:a.openUrl),e,"invali
21d-cordova-configuration",{missingPlugin:"cordova-plugin-browsertab"}),(0,i.aD)("function"==typeof(null==(u=null==(h=null==(l=null==f?void 0:f.cordova)?void 0:l.plugins)?void 0:h.browsertab)?void 0:u.isAvailable),e,"invalid-cordova-configuration",{missingPlugin:"cordova-plugin-browsertab"}),(0,i.aD)("function"==typeof(null==(d=null==(c=null==f?void 0:f.cordova)?void 0:c.InAppBrowser)?void 0:d.open),e,"invalid-cordova-configuration",{missingPlugin:"cordova-plugin-inappbrowser"})}(e);let s=await this._initialize(e);await s.initialized(),s.resetRedirect(),(0,i.aJ)(),await this._originValidation(e);let a=function(e,t,n=null){return{type:t,eventId:n,urlResponse:null,sessionId:function(){let e=[],t="1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";for(let n=0;n<20;n++){let n=Math.floor(Math.random()*t.length);e.push(t.charAt(n))}return e.join("")}(),postBody:null,tenantId:e.tenantId,error:(0,i.aC)(e,"no-auth-event")}}(e,n,r);await p()._set(g(e),a);let h=await l(e,a,t);return u(e,s,await function(e){let{cordova:t}=o();return new Promise(n=>{t.plugins.browsertab.isAvailable(r=>{let s=null;r?t.plugins.browsertab.openUrl(e):s=t.InAppBrowser.open(e,(0,i.aB)()?"_blank":"_system","location=yes"),n(s)})})}(h))}_isIframeWebStorageSupported(e,t){throw Error("Method not implemented.")}_originValidation(e){let t=e._key();return this.originValidationPromises[t]||(this.originValidationPromises[t]=h(e)),this.originValidationPromises[t]}attachCallbackListeners(e,t){let{universalLinks:n,handleOpenURL:r,BuildInfo:s}=o(),a=setTimeout(async()=>{await f(e),t.onEvent(v())},500),l=async n=>{clearTimeout(a);let r=await f(e),s=null;r&&(null==n?void 0:n.url)&&(s=function(e,t){var n,r;let s=function(e){let t=_(e),n=t.link?decodeURIComponent(t.link):void 0,r=_(n).link,i=t.deep_link_id?decodeURIComponent(t.deep_link_id):void 0;return _(i).link||i||r||n||e}(t);if(s.includes("/__/auth/callback")){let t=_(s),a=t.firebaseError?function(e){try{return JSON.parse(e)}catch(e){return null}}(decodeURIComponent(t.firebaseError)):null,o=null==(r=null==(n=null==a?void 0:a.code)?void 0:n.split("auth/"))?void 0:r[1],l=o?(0,i.aC)(o):null;return l?{type:e.type,eventId:e.eventId,tenantId:e.tenantId,error:l,urlResponse:null,sessionId:null,postBody:null}:{type:e.type,eventId:e.eventId,tenantId:e.tenantId,sessionId:e.sessionId,urlResponse:s,postBody:null}}return null}(r,n.url)),t.onEvent(s||v())};void 0!==n&&"function"==typeof n.subscribe&&n.subscribe(null,l);let h=`${s.packageName.toLowerCase()}://`;o().handleOpenURL=async e=>{if(e.toLowerCase().startsWith(h)&&l({url:e}),"function"==typeof r)try{r(e)}catch(e){console.error(e)}}}}function v(){return{type:"unknown",eventId:null,sessionId:null,urlResponse:null,postBody:null,tenantId:null,error:(0,i.aC)("no-auth-event")}}function y(){var e;return(null==(e=null==self?void 0:self.location)?void 0:e.protocol)||null}function b(e=(0,s.ZQ)()){return!!(("file:"===y()||"ionic:"===y()||"capacitor:"===y())&&e.toLowerCase().match(/iphone|ipad|ipod|android/))}function w(){try{let e=self.localStorage,t=i.aO();if(e){if(e.setItem(t,"1"),e.removeItem(t),function(e=(0,s.ZQ)()){return(0,s.lT)()&&(null==document?void 0:document.documentMode)===11||function(e=(0,s.ZQ)()){return/Edge\/\d+/.test(e)}(e)}())return(0,s.zW)();return!0}}catch(e){return E()&&(0,s.zW)()}return!1}function E(){return void 0!==n.g&&"WorkerGlobalScope"in n.g&&"importScripts"in n.g}function I(){return("http:"===y()||"https:"===y()||(0,s.sr)()||b())&&!((0,s.lV)()||(0,s.Ll)())&&w()&&!E()}function C(){return b()&&"undefined"!=typeof document}async function T(){return!!C()&&new Promise(e=>{let t=setTimeout(()=>{e(!1)},1e3);document.addEventListener("deviceready",()=>{clearTimeout(t),e(!0)})})}let A={LOCAL:"local",NONE:"none",SESSION:"session"},S=i.aD,R="persistence";async function O(e){await e._initializationPromise;let t=k(),n=i.aG(R,e.config.apiKey,e.name);t&&t.setItem(n,e._getPersistenceType())}function k(){var e;try{return(null==(e="undefined"!=typeof window?window:null)?void 0:e.sessionStorage)||null}catch(e){return null}}let D=i.aD;class x{constructor(){this.browserResolver=i.aF(i.m),this.cordovaResolver=i.aF(m),this.underlyingResolver=null,this._redirectPersistence=i.c,this._completeRedirectFn=i.aH,this._overrideRedirectResult=i.aI}async _initialize(e){return await this.selectUnderlyingResolver(),this.assertedUnderlyingResolver._initialize(e)}async _openPopup(e,t,n,r){return await this.selectUnderlyingResolver(),this.assertedUnderlyingResolver._openPopup(e,t,n,r)}async _openRedirect(e,t,n,r){return await this.selectUnderlyingResolver(),this.assertedUnderlyingResolver._openRedirect(e,t,n,r)}_isIframeWebStorageSupported(e,t){this.assertedUnderlyingResolver._isIframeWebStorageSupported(e,t)}_originValidation(e){return this.assertedUnderlyingResolver._originValidation(e)}get _shouldInitProactively(){return C()||this.browserResolver._shouldInitProactively}get assertedUnderlyingResolver(){return D(this.underlyingResolver,"internal-error"),this.underlyingResolver}async selectUnderlyingResolver(){if(this.underlyingResolver)return;let e=await T();this.underlyingResolver=e?this.cordovaResolver:this.browserResolver}}function P(e){let t,{_tokenResponse:n}=e instanceof s.g?e.customData:e;if(!n)return null;if(!(e instanceof s.g)&&"temporaryProof"in n&&"phoneNumber"in n)return i.P.credentialFromResult(e);let r=n.providerId;if(!r||r===i.q.PASSWORD)return null;switch(r){case i.q.GOOGLE:t=i.Y;break;case i.q.FACEBOOK:t=i.X;break;case i.q.GITHUB:t=i.Z;break;case i.q.TWITTER:t=i.a0;break;default:let{oauthIdToken:a,oauthAccessToken:o,oauthTokenSecret:l,pendingToken:h,nonce:u}=n;if(!o&&!l&&!a&&!h)return null;if(h)if(r.startsWith("saml."))return i.aR._create(r,h);else return i.Q._fromParams({providerId:r,signInMethod:r,pendingToken:h,idToken:a,accessToken:o});return new i._(r).credential({idToken:a,accessToken:o,rawNonce:u})}return e instanceof s.g?t.credentialFromError(e):t.credentialFromResult(e)}function N(e,t){return t.catch(t=>{throw t instanceof s.g&&function(e,t){var n;let r=null==(n=t.customData)?void 0:n._tokenResponse;if((null==t?void 0:t.code)==="auth/multi-factor-auth-required")t.resolver=new 
21U(e,i.at(e,t));else if(r){let e=P(t);e&&(t.credential=e,t.tenantId=r.tenantId||void 0,t.email=r.email||void 0,t.phoneNumber=r.phoneNumber||void 0)}}(e,t),t}).then(e=>{let t=e.operationType,n=e.user;return{operationType:t,credential:P(e),additionalUserInfo:i.ar(e),user:M.getOrCreate(n)}})}async function L(e,t){let n=await t;return{verificationId:n.verificationId,confirm:t=>N(e,n.confirm(t))}}class U{constructor(e,t){this.resolver=t,this.auth=e.wrapped()}get session(){return this.resolver.session}get hints(){return this.resolver.hints}resolveSignIn(e){return N(this.auth.unwrap(),this.resolver.resolveSignIn(e))}}class M{constructor(e){this._delegate=e,this.multiFactor=i.au(e)}static getOrCreate(e){return M.USER_MAP.has(e)||M.USER_MAP.set(e,new M(e)),M.USER_MAP.get(e)}delete(){return this._delegate.delete()}reload(){return this._delegate.reload()}toJSON(){return this._delegate.toJSON()}getIdTokenResult(e){return this._delegate.getIdTokenResult(e)}getIdToken(e){return this._delegate.getIdToken(e)}linkAndRetrieveDataWithCredential(e){return this.linkWithCredential(e)}async linkWithCredential(e){return N(this.auth,i.a3(this._delegate,e))}async linkWithPhoneNumber(e,t){return L(this.auth,i.l(this._delegate,e,t))}async linkWithPopup(e){return N(this.auth,i.e(this._delegate,e,x))}async linkWithRedirect(e){return await O(i.aK(this.auth)),i.h(this._delegate,e,x)}reauthenticateAndRetrieveDataWithCredential(e){return this.reauthenticateWithCredential(e)}async reauthenticateWithCredential(e){return N(this.auth,i.a4(this._delegate,e))}reauthenticateWithPhoneNumber(e,t){return L(this.auth,i.r(this._delegate,e,t))}reauthenticateWithPopup(e){return N(this.auth,i.f(this._delegate,e,x))}async reauthenticateWithRedirect(e){return await O(i.aK(this.auth)),i.j(this._delegate,e,x)}sendEmailVerification(e){return i.ah(this._delegate,e)}async unlink(e){return await i.aq(this._delegate,e),this}updateEmail(e){return i.am(this._delegate,e)}updatePassword(e){return i.an(this._delegate,e)}updatePhoneNumber(e){return i.u(this._delegate,e)}updateProfile(e){return i.al(this._delegate,e)}verifyBeforeUpdateEmail(e,t){return i.ai(this._delegate,e,t)}get emailVerified(){return this._delegate.emailVerified}get isAnonymous(){return this._delegate.isAnonymous}get metadata(){return this._delegate.metadata}get phoneNumber(){return this._delegate.phoneNumber}get providerData(){return this._delegate.providerData}get refreshToken(){return this._delegate.refreshToken}get tenantId(){return this._delegate.tenantId}get displayName(){return this._delegate.displayName}get email(){return this._delegate.email}get photoURL(){return this._delegate.photoURL}get providerId(){return this._delegate.providerId}get uid(){return this._delegate.uid}get auth(){return this._delegate.auth}}M.USER_MAP=new WeakMap;let j=i.aD;class F{constructor(e,t){if(this.app=e,t.isInitialized()){this._delegate=t.getImmediate(),this.linkUnderlyingAuth();return}let{apiKey:n}=e.options;j(n,"invalid-api-key",{appName:e.name}),j(n,"invalid-api-key",{appName:e.name});let r="undefined"!=typeof window?x:void 0;this._delegate=t.initialize({options:{persistence:function(e,t){let n=function(e,t){let n=k();if(!n)return[];let r=i.aG(R,e,t);switch(n.getItem(r)){case A.NONE:return[i.V];case A.LOCAL:return[i.i,i.c];case A.SESSION:return[i.c];default:return[]}}(e,t);if("undefined"==typeof self||n.includes(i.i)||n.push(i.i),"undefined"!=typeof window)for(let e of[i.b,i.c])n.includes(e)||n.push(e);return n.includes(i.V)||n.push(i.V),n}(n,e.name),popupRedirectResolver:r}}),this._delegate._updateErrorMap(i.H),this.linkUnderlyingAuth()}get emulatorConfig(){return this._delegate.emulatorConfig}get currentUser(){return this._delegate.currentUser?M.getOrCreate(this._delegate.currentUser):null}get languageCode(){return this._delegate.languageCode}set languageCode(e){this._delegate.languageCode=e}get settings(){return this._delegate.settings}get tenantId(){return this._delegate.tenantId}set tenantId(e){this._delegate.tenantId=e}useDeviceLanguage(){this._delegate.useDeviceLanguage()}signOut(){return this._delegate.signOut()}useEmulator(e,t){i.L(this._delegate,e,t)}applyActionCode(e){return i.a8(this._delegate,e)}checkActionCode(e){return i.a9(this._delegate,e)}confirmPasswordReset(e,t){return i.a7(this._delegate,e,t)}async createUserWithEmailAndPassword(e,t){return N(this._delegate,i.ab(this._delegate,e,t))}
21fetchProvidersForEmail(e){return this.fetchSignInMethodsForEmail(e)}fetchSignInMethodsForEmail(e){return i.ag(this._delegate,e)}isSignInWithEmailLink(e){return i.ae(this._delegate,e)}async getRedirectResult(){j(I(),this._delegate,"operation-not-supported-in-this-environment");let e=await i.k(this._delegate,x);return e?N(this._delegate,Promise.resolve(e)):{credential:null,user:null}}addFrameworkForLogging(e){var t;t=this._delegate,(0,i.aK)(t)._logFramework(e)}onAuthStateChanged(e,t,n){let{next:r,error:i,complete:s}=B(e,t,n);return this._delegate.onAuthStateChanged(r,i,s)}onIdTokenChanged(e,t,n){let{next:r,error:i,complete:s}=B(e,t,n);return this._delegate.onIdTokenChanged(r,i,s)}sendSignInLinkToEmail(e,t){return i.ad(this._delegate,e,t)}sendPasswordResetEmail(e,t){return i.a6(this._delegate,e,t||void 0)}async setPersistence(e){var t;let n;switch(t=this._delegate,(S(Object.values(A).includes(e),t,"invalid-persistence-type"),(0,s.lV)())?S(e!==A.SESSION,t,"unsupported-persistence-type"):(0,s.Ll)()?S(e===A.NONE,t,"unsupported-persistence-type"):E()?S(e===A.NONE||e===A.LOCAL&&(0,s.zW)(),t,"unsupported-persistence-type"):S(e===A.NONE||w(),t,"unsupported-persistence-type"),e){case A.SESSION:n=i.c;break;case A.LOCAL:n=await i.aF(i.i)._isAvailable()?i.i:i.b;break;case A.NONE:n=i.V;break;default:return i.ay("argument-error",{appName:this._delegate.name})}return this._delegate.setPersistence(n)}signInAndRetrieveDataWithCredential(e){return this.signInWithCredential(e)}signInAnonymously(){return N(this._delegate,i.a1(this._delegate))}signInWithCredential(e){return N(this._delegate,i.a2(this._delegate,e))}signInWithCustomToken(e){return N(this._delegate,i.a5(this._delegate,e))}signInWithEmailAndPassword(e,t){return N(this._delegate,i.ac(this._delegate,e,t))}signInWithEmailLink(e,t){return N(this._delegate,i.af(this._delegate,e,t))}signInWithPhoneNumber(e,t){return L(this._delegate,i.s(this._delegate,e,t))}async signInWithPopup(e){return j(I(),this._delegate,"operation-not-supported-in-this-environment"),N(this._delegate,i.d(this._delegate,e,x))}async signInWithRedirect(e){return j(I(),this._delegate,"operation-not-supported-in-this-environment"),await O(this._delegate),i.g(this._delegate,e,x)}updateCurrentUser(e){return this._delegate.updateCurrentUser(e)}verifyPasswordResetCode(e){return i.aa(this._delegate,e)}unwrap(){return this._delegate}_delete(){return this._delegate._delete()}linkUnderlyingAuth(){this._delegate.wrapped=()=>this}}function B(e,t,n){let r=e;"function"!=typeof e&&({next:r,error:t,complete:n}=e);let i=r;return{next:e=>i(e&&M.getOrCreate(e)),error:t,complete:n}}F.Persistence=A;class H{static credential(e,t){return i.P.credential(e,t)}constructor(){this.providerId="phone",this._delegate=new i.P(r.A.auth().unwrap())}verifyPhoneNumber(e,t){return this._delegate.verifyPhoneNumber(e,t)}unwrap(){return this._delegate}}H.PHONE_SIGN_IN_METHOD=i.P.PHONE_SIGN_IN_METHOD,H.PROVIDER_ID=i.P.PROVIDER_ID;let V=i.aD;class z{constructor(e,t,n=r.A.app()){var s;V(null==(s=n.options)?void 0:s.apiKey,"invalid-api-key",{appName:n.name}),this._delegate=new i.R(n.auth(),e,t),this.type=this._delegate.type}clear(){this._delegate.clear()}render(){return this._delegate.render()}verify(){return this._delegate.verify()}}!function(e){e.INTERNAL.registerComponent(new a.uA("auth-compat",e=>new F(e.getProvider("app-compat").getImmediate(),e.getProvider("auth")),"PUBLIC").setServiceProps({ActionCodeInfo:{Operation:{EMAIL_SIGNIN:i.A.EMAIL_SIGNIN,PASSWORD_RESET:i.A.PASSWORD_RESET,RECOVER_EMAIL:i.A.RECOVER_EMAIL,REVERT_SECOND_FACTOR_ADDITION:i.A.REVERT_SECOND_FACTOR_ADDITION,VERIFY_AND_CHANGE_EMAIL:i.A.VERIFY_AND_CHANGE_EMAIL,VERIFY_EMAIL:i.A.VERIFY_EMAIL}},EmailAuthProvider:i.W,FacebookAuthProvider:i.X,GithubAuthProvider:i.Z,GoogleAuthProvider:i.Y,OAuthProvider:i._,SAMLAuthProvider:i.$,PhoneAuthProvider:H,PhoneMultiFactorGenerator:i.n,RecaptchaVerifier:z,TwitterAuthProvider:i.a0,Auth:F,AuthCredential:i.M,Error:s.g}).setInstantiationMode("LAZY").setMultipleInstances(!1)),e.registerVersion("@firebase/auth-compat","0.5.28")}(r.A)},96882:(e,t,n)=>{var r,i,s=n(82576),a=n(55582),o=n(25281),l=n(42071);let h="firebasestorage.googleapis.com",u="storageBucket";
21class c extends o.g{constructor(e,t,n=0){super(d(e),`Firebase Storage: ${t} (${d(e)})`),this.status_=n,this.customData={serverResponse:null},this._baseMessage=this.message,Object.setPrototypeOf(this,c.prototype)}get status(){return this.status_}set status(e){this.status_=e}_codeEquals(e){return d(e)===this.code}get serverResponse(){return this.customData.serverResponse}set serverResponse(e){this.customData.serverResponse=e,this.customData.serverResponse?this.message=`${this._baseMessage}
22${this.customData.serverResponse}`:this.message=this._baseMessage}}function d(e){return"storage/"+e}function f(){return new c(r.UNKNOWN,"An unknown error occurred, please check the error payload for server response.")}function p(){return new c(r.RETRY_LIMIT_EXCEEDED,"Max retry time for operation exceeded, please try again.")}function g(){return new c(r.CANCELED,"User canceled the upload/download.")}function _(){return new c(r.CANNOT_SLICE_BLOB,"Cannot slice blob for upload. Please retry the upload.")}function m(e){return new c(r.INVALID_ARGUMENT,e)}function v(){return new c(r.APP_DELETED,"The Firebase app was deleted.")}function y(e){return new c(r.INVALID_ROOT_OPERATION,"The operation '"+e+"' cannot be performed on a root reference, create a non-root reference using child, such as .child('file.png').")}function b(e,t){return new c(r.INVALID_FORMAT,"String does not match format '"+e+"': "+t)}function w(e){throw new c(r.INTERNAL_ERROR,"Internal error: "+e)}!function(e){e.UNKNOWN="unknown",e.OBJECT_NOT_FOUND="object-not-found",e.BUCKET_NOT_FOUND="bucket-not-found",e.PROJECT_NOT_FOUND="project-not-found",e.QUOTA_EXCEEDED="quota-exceeded",e.UNAUTHENTICATED="unauthenticated",e.UNAUTHORIZED="unauthorized",e.UNAUTHORIZED_APP="unauthorized-app",e.RETRY_LIMIT_EXCEEDED="retry-limit-exceeded",e.INVALID_CHECKSUM="invalid-checksum",e.CANCELED="canceled",e.INVALID_EVENT_NAME="invalid-event-name",e.INVALID_URL="invalid-url",e.INVALID_DEFAULT_BUCKET="invalid-default-bucket",e.NO_DEFAULT_BUCKET="no-default-bucket",e.CANNOT_SLICE_BLOB="cannot-slice-blob",e.SERVER_FILE_WRONG_SIZE="server-file-wrong-size",e.NO_DOWNLOAD_URL="no-download-url",e.INVALID_ARGUMENT="invalid-argument",e.INVALID_ARGUMENT_COUNT="invalid-argument-count",e.APP_DELETED="app-deleted",e.INVALID_ROOT_OPERATION="invalid-root-operation",e.INVALID_FORMAT="invalid-format",e.INTERNAL_ERROR="internal-error",e.UNSUPPORTED_ENVIRONMENT="unsupported-environment"}(r||(r={}));class E{constructor(e,t){this.bucket=e,this.path_=t}get path(){return this.path_}get isRoot(){return 0===this.path.length}fullServerUrl(){let e=encodeURIComponent;return"/b/"+e(this.bucket)+"/o/"+e(this.path)}bucketOnlyServerUrl(){return"/b/"+encodeURIComponent(this.bucket)+"/o"}static makeFromBucketSpec(e,t){let n;try{n=E.makeFromUrl(e,t)}catch(t){return new E(e,"")}if(""===n.path)return n;throw new c(r.INVALID_DEFAULT_BUCKET,"Invalid default bucket '"+e+"'.")}static makeFromUrl(e,t){let n=null,i="([A-Za-z0-9.\\-_]+)",s=RegExp("^gs://"+i+"(/(.*))?$","i");function a(e){e.path_=decodeURIComponent(e.path)}let o=t.replace(/[.]/g,"\\."),l=RegExp(`^https?://${o}/v[A-Za-z0-9_]+/b/${i}/o(/([^?#]*).*)?$`,"i"),u=t===h?"(?:storage.googleapis.com|storage.cloud.google.com)":t,d=[{regex:s,indices:{bucket:1,path:3},postModify:function(e){"/"===e.path.charAt(e.path.length-1)&&(e.path_=e.path_.slice(0,-1))}},{regex:l,indices:{bucket:1,path:3},postModify:a},{regex:RegExp(`^https?://${u}/${i}/([^?#]*)`,"i"),indices:{bucket:1,path:2},postModify:a}];for(let t=0;t<d.length;t++){let r=d[t],i=r.regex.exec(e);if(i){let e=i[r.indices.bucket],t=i[r.indices.path];t||(t=""),n=new E(e,t),r.postModify(n);break}}if(null==n)throw new c(r.INVALID_URL,"Invalid URL '"+e+"'.");return n}}class I{constructor(e){this.promise_=Promise.reject(e)}getPromise(){return this.promise_}cancel(e=!1){}}function C(e){return"string"==typeof e||e instanceof String}function T(e){return A()&&e instanceof Blob}function A(){return"undefined"!=typeof Blob}function S(e,t,n,r){if(r<t)throw m(`Invalid value for '${e}'. Expected ${t} or greater.`);if(r>n)throw m(`Invalid value for '${e}'. Expected ${n} or less.`)}function R(e,t,n){let r=t;return null==n&&(r=`https://${t}`),`${n}://${r}/v0${e}`}function O(e){let t=encodeURIComponent,n="?";for(let r in e)e.hasOwnProperty(r)&&(n=n+(t(r)+"=")+t(e[r])+"&");return n.slice(0,-1)}function k(e,t){let n=e>=500&&e<600,r=-1!==[408,429].indexOf(e),i=-1!==t.indexOf(e);return n||r||i}
22!function(e){e[e.NO_ERROR=0]="NO_ERROR",e[e.NETWORK_ERROR=1]="NETWORK_ERROR",e[e.ABORT=2]="ABORT"}(i||(i={}));class D{constructor(e,t,n,r,i,s,a,o,l,h,u,c=!0,d=!1){this.url_=e,this.method_=t,this.headers_=n,this.body_=r,this.successCodes_=i,this.additionalRetryCodes_=s,this.callback_=a,this.errorCallback_=o,this.timeout_=l,this.progressCallback_=h,this.connectionFactory_=u,this.retry=c,this.isUsingEmulator=d,this.pendingConnection_=null,this.backoffId_=null,this.canceled_=!1,this.appDelete_=!1,this.promise_=new Promise((e,t)=>{this.resolve_=e,this.reject_=t,this.start_()})}start_(){let e=(e,t)=>{if(t)return void e(!1,new x(!1,null,!0));let n=this.connectionFactory_();this.pendingConnection_=n;let r=e=>{let t=e.loaded,n=e.lengthComputable?e.total:-1;null!==this.progressCallback_&&this.progressCallback_(t,n)};null!==this.progressCallback_&&n.addUploadProgressListener(r),n.send(this.url_,this.method_,this.isUsingEmulator,this.body_,this.headers_).then(()=>{null!==this.progressCallback_&&n.removeUploadProgressListener(r),this.pendingConnection_=null;let t=n.getErrorCode()===i.NO_ERROR,s=n.getStatus();if(!t||k(s,this.additionalRetryCodes_)&&this.retry)return void e(!1,new x(!1,null,n.getErrorCode()===i.ABORT));e(!0,new x(-1!==this.successCodes_.indexOf(s),n))})},t=(e,t)=>{let n=this.resolve_,r=this.reject_,i=t.connection;if(t.wasSuccessCode)try{let e=this.callback_(i,i.getResponse());void 0!==e?n(e):n()}catch(e){r(e)}else if(null!==i){let e=f();e.serverResponse=i.getErrorText(),r(this.errorCallback_?this.errorCallback_(i,e):e)}else r(t.canceled?this.appDelete_?v():g():p())};this.canceled_?t(!1,new x(!1,null,!0)):this.backoffId_=function(e,t,n){let r=1,i=null,s=null,a=!1,o=0,l=!1;function h(...e){l||(l=!0,t.apply(null,e))}function u(t){i=setTimeout(()=>{i=null,e(d,2===o)},t)}function c(){s&&clearTimeout(s)}function d(e,...t){let n;if(l)return void c();if(e||2===o||a){c(),h.call(null,e,...t);return}r<64&&(r*=2),1===o?(o=2,n=0):n=(r+Math.random())*1e3,u(n)}let f=!1;function p(e){f||(f=!0,c(),!l&&(null!==i?(e||(o=2),clearTimeout(i),u(0)):e||(o=1)))}return u(0),s=setTimeout(()=>{a=!0,p(!0)},n),p}(e,t,this.timeout_)}getPromise(){return this.promise_}cancel(e){this.canceled_=!0,this.appDelete_=e||!1,null!==this.backoffId_&&(0,this.backoffId_)(!1),null!==this.pendingConnection_&&this.pendingConnection_.abort()}}class x{constructor(e,t,n){this.wasSuccessCode=e,this.connection=t,this.canceled=!!n}}function P(...e){let t="undefined"!=typeof BlobBuilder?BlobBuilder:"undefined"!=typeof WebKitBlobBuilder?WebKitBlobBuilder:void 0;if(void 0!==t){let n=new t;for(let t=0;t<e.length;t++)n.append(e[t]);return n.getBlob()}if(A())return new Blob(e);throw new c(r.UNSUPPORTED_ENVIRONMENT,"This browser doesn't seem to support creating Blobs")}let N={RAW:"raw",BASE64:"base64",BASE64URL:"base64url",DATA_URL:"data_url"};class L{constructor(e,t){this.data=e,this.contentType=t||null}}function U(e,t){switch(e){case N.RAW:return new L(M(t));case N.BASE64:case N.BASE64URL:return new L(j(e,t));case N.DATA_URL:return new L(function(e){let t,n=new F(e);if(n.base64)return j(N.BASE64,n.rest);var r=n.rest;try{t=decodeURIComponent(r)}catch(e){throw b(N.DATA_URL,"Malformed data URL.")}return M(t)}(t),new F(t).contentType)}throw f()}function M(e){let t=[];for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);r<=127?t.push(r):r<=2047?t.push(192|r>>6,128|63&r):(64512&r)==55296?n<e.length-1&&(64512&e.charCodeAt(n+1))==56320?(r=65536|(1023&r)<<10|1023&e.charCodeAt(++n),t.push(240|r>>18,128|r>>12&63,128|r>>6&63,128|63&r)):t.push(239,191,189):(64512&r)==56320?t.push(239,191,189):t.push(224|r>>12,128|r>>6&63,128|63&r)}return new Uint8Array(t)}function j(e,t){let n;switch(e){case N.BASE64:{let n=-1!==t.indexOf("-"),r=-1!==t.indexOf("_");if(n||r)throw b(e,"Invalid character '"+(n?"-":"_")+"' found: is it base64url encoded?");break}case N.BASE64URL:{let n=-1!==t.indexOf("+"),r=-1!==t.indexOf("/");if(n||r)throw b(e,"Invalid character '"+(n?"+":"/")+"' found: is it base64 encoded?");t=t.replace(/-/g,"+").replace(/_/g,"/")}}try{n=function(e){if("undefined"==typeof atob)throw new c(r.UNSUPPORTED_ENVIRONMENT,"base-64 is missing. Make sure to install the required polyfills. See https://firebase.google.com/docs/web/environments-js-sdk#polyfills for more information.");return atob(e)}(t)}
22catch(t){if(t.message.includes("polyfill"))throw t;throw b(e,"Invalid character found")}let i=new Uint8Array(n.length);for(let e=0;e<n.length;e++)i[e]=n.charCodeAt(e);return i}class F{constructor(e){this.base64=!1,this.contentType=null;let t=e.match(/^data:([^,]+)?,/);if(null===t)throw b(N.DATA_URL,"Must be formatted 'data:[<mediatype>][;base64],<data>");let n=t[1]||null;null!=n&&(this.base64=function(e,t){return e.length>=t.length&&e.substring(e.length-t.length)===t}(n,";base64"),this.contentType=this.base64?n.substring(0,n.length-7):n),this.rest=e.substring(e.indexOf(",")+1)}}class B{constructor(e,t){let n=0,r="";T(e)?(this.data_=e,n=e.size,r=e.type):e instanceof ArrayBuffer?(t?this.data_=new Uint8Array(e):(this.data_=new Uint8Array(e.byteLength),this.data_.set(new Uint8Array(e))),n=this.data_.length):e instanceof Uint8Array&&(t?this.data_=e:(this.data_=new Uint8Array(e.length),this.data_.set(e)),n=e.length),this.size_=n,this.type_=r}size(){return this.size_}type(){return this.type_}slice(e,t){if(!T(this.data_))return new B(new Uint8Array(this.data_.buffer,e,t-e),!0);{var n,r,i;let s=(n=this.data_,r=e,i=t,n.webkitSlice?n.webkitSlice(r,i):n.mozSlice?n.mozSlice(r,i):n.slice?n.slice(r,i):null);return null===s?null:new B(s)}}static getBlob(...e){if(A()){let t=e.map(e=>e instanceof B?e.data_:e);return new B(P.apply(null,t))}{let t=e.map(e=>C(e)?U(N.RAW,e).data:e.data_),n=0;t.forEach(e=>{n+=e.byteLength});let r=new Uint8Array(n),i=0;return t.forEach(e=>{for(let t=0;t<e.length;t++)r[i++]=e[t]}),new B(r,!0)}}uploadData(){return this.data_}}function H(e){var t;let n;try{n=JSON.parse(e)}catch(e){return null}return"object"!=typeof(t=n)||Array.isArray(t)?null:n}function V(e){let t=e.lastIndexOf("/",e.length-2);return -1===t?e:e.slice(t+1)}function z(e,t){return t}class W{constructor(e,t,n,r){this.server=e,this.local=t||e,this.writable=!!n,this.xform=r||z}}let $=null;function q(){if($)return $;let e=[];e.push(new W("bucket")),e.push(new W("generation")),e.push(new W("metageneration")),e.push(new W("name","fullPath",!0));let t=new W("name");t.xform=function(e,t){return!C(t)||t.length<2?t:V(t)},e.push(t);let n=new W("size");return n.xform=function(e,t){return void 0!==t?Number(t):t},e.push(n),e.push(new W("timeCreated")),e.push(new W("updated")),e.push(new W("md5Hash",null,!0)),e.push(new W("cacheControl",null,!0)),e.push(new W("contentDisposition",null,!0)),e.push(new W("contentEncoding",null,!0)),e.push(new W("contentLanguage",null,!0)),e.push(new W("contentType",null,!0)),e.push(new W("metadata","customMetadata",!0)),$=e}function K(e,t,n){let r=H(t);return null===r?null:function(e,t,n){let r={};r.type="file";let i=n.length;for(let e=0;e<i;e++){let i=n[e];r[i.local]=i.xform(r,t[i.server])}return Object.defineProperty(r,"ref",{get:function(){let t=new E(r.bucket,r.fullPath);return e._makeStorageReference(t)}}),r}(e,r,n)}function G(e,t){let n={},r=t.length;for(let i=0;i<r;i++){let r=t[i];r.writable&&(n[r.server]=e[r.local])}return JSON.stringify(n)}let X="prefixes",J="items";class Y{constructor(e,t,n,r){this.url=e,this.method=t,this.handler=n,this.timeout=r,this.urlParams={},this.headers={},this.body=null,this.errorHandler=null,this.progressCallback=null,this.successCodes=[200],this.additionalRetryCodes=[]}}function Q(e){if(!e)throw f()}function Z(e,t){return function(n,r){let i=K(e,r,t);return Q(null!==i),i}}function ee(e){return function(t,n){var i,s;let a;return 401===t.getStatus()?a=t.getErrorText().includes("Firebase App Check token is invalid")?new c(r.UNAUTHORIZED_APP,"This app does not have permission to access Firebase Storage on this project."):new c(r.UNAUTHENTICATED,"User is not authenticated, please authenticate using Firebase Authentication and try again."):402===t.getStatus()?(i=e.bucket,a=new c(r.QUOTA_EXCEEDED,"Quota for bucket '"+i+"' exceeded, please view quota on https://firebase.google.com/pricing/.")):403===t.getStatus()?(s=e.path,a=new c(r.UNAUTHORIZED,"User does not have permission to access '"+s+"'.")):a=n,a.status=t.getStatus(),a.serverResponse=n.serverResponse,a}}function et(e){let t=ee(e);return function(n,i){var s;let a=t(n,i);
22return 404===n.getStatus()&&(s=e.path,a=new c(r.OBJECT_NOT_FOUND,"Object '"+s+"' does not exist.")),a.serverResponse=i.serverResponse,a}}function en(e,t,n){let r=R(t.fullServerUrl(),e.host,e._protocol),i=e.maxOperationRetryTime,s=new Y(r,"GET",Z(e,n),i);return s.errorHandler=et(t),s}function er(e,t,n){let r=Object.assign({},n);return r.fullPath=e.path,r.size=t.size(),r.contentType||(r.contentType=t&&t.type()||"application/octet-stream"),r}class ei{constructor(e,t,n,r){this.current=e,this.total=t,this.finalized=!!n,this.metadata=r||null}}function es(e,t){let n=null;try{n=e.getResponseHeader("X-Goog-Upload-Status")}catch(e){Q(!1)}return Q(!!n&&-1!==(t||["active"]).indexOf(n)),n}let ea={STATE_CHANGED:"state_changed"},eo={RUNNING:"running",PAUSED:"paused",SUCCESS:"success",CANCELED:"canceled",ERROR:"error"};function el(e){switch(e){case"running":case"pausing":case"canceling":return eo.RUNNING;case"paused":return eo.PAUSED;case"success":return eo.SUCCESS;case"canceled":return eo.CANCELED;default:return eo.ERROR}}class eh{constructor(e,t,n){"function"==typeof e||null!=t||null!=n?(this.next=e,this.error=null!=t?t:void 0,this.complete=null!=n?n:void 0):(this.next=e.next,this.error=e.error,this.complete=e.complete)}}function eu(e){return(...t)=>{Promise.resolve().then(()=>e(...t))}}class ec{constructor(){this.sent_=!1,this.xhr_=new XMLHttpRequest,this.initXhr(),this.errorCode_=i.NO_ERROR,this.sendPromise_=new Promise(e=>{this.xhr_.addEventListener("abort",()=>{this.errorCode_=i.ABORT,e()}),this.xhr_.addEventListener("error",()=>{this.errorCode_=i.NETWORK_ERROR,e()}),this.xhr_.addEventListener("load",()=>{e()})})}send(e,t,n,r,i){if(this.sent_)throw w("cannot .send() more than once");if((0,o.zJ)(e)&&n&&(this.xhr_.withCredentials=!0),this.sent_=!0,this.xhr_.open(t,e,!0),void 0!==i)for(let e in i)i.hasOwnProperty(e)&&this.xhr_.setRequestHeader(e,i[e].toString());return void 0!==r?this.xhr_.send(r):this.xhr_.send(),this.sendPromise_}getErrorCode(){if(!this.sent_)throw w("cannot .getErrorCode() before sending");return this.errorCode_}getStatus(){if(!this.sent_)throw w("cannot .getStatus() before sending");try{return this.xhr_.status}catch(e){return -1}}getResponse(){if(!this.sent_)throw w("cannot .getResponse() before sending");return this.xhr_.response}getErrorText(){if(!this.sent_)throw w("cannot .getErrorText() before sending");return this.xhr_.statusText}abort(){this.xhr_.abort()}getResponseHeader(e){return this.xhr_.getResponseHeader(e)}addUploadProgressListener(e){null!=this.xhr_.upload&&this.xhr_.upload.addEventListener("progress",e)}removeUploadProgressListener(e){null!=this.xhr_.upload&&this.xhr_.upload.removeEventListener("progress",e)}}class ed extends ec{initXhr(){this.xhr_.responseType="text"}}function ef(){return new ed}class ep{isExponentialBackoffExpired(){return this.sleepTime>this.maxSleepTime}constructor(e,t,n=null){this._transferred=0,this._needToFetchStatus=!1,this._needToFetchMetadata=!1,this._observers=[],this._error=void 0,this._uploadUrl=void 0,this._request=void 0,this._chunkMultiplier=1,this._resolve=void 0,this._reject=void 0,this._ref=e,this._blob=t,this._metadata=n,this._mappings=q(),this._resumable=this._shouldDoResumable(this._blob),this._state="running",this._errorHandler=e=>{if(this._request=void 0,this._chunkMultiplier=1,e._codeEquals(r.CANCELED))this._needToFetchStatus=!0,this.completeTransitions_();else{let t=this.isExponentialBackoffExpired();if(k(e.status,[]))if(t)e=p();else{this.sleepTime=Math.max(2*this.sleepTime,1e3),this._needToFetchStatus=!0,this.completeTransitions_();return}this._error=e,this._transition("error")}},this._metadataErrorHandler=e=>{this._request=void 0,e._codeEquals(r.CANCELED)?this.completeTransitions_():(this._error=e,this._transition("error"))},this.sleepTime=0,this.maxSleepTime=this._ref.storage.maxUploadRetryTime,this._promise=new Promise((e,t)=>{this._resolve=e,this._reject=t,this._start()}),this._promise.then(null,()=>{})}_makeProgressCallback(){let e=this._transferred;return t=>this._updateProgress(e+t)}_shouldDoResumable(e){return e.size()>262144}_start(){"running"===this._state&&void 0===this._request&&(this._resumable?void 0===this._uploadUrl?this._createResumable():this._needToFetchStatus?this._fetchStatus():this._needToFetchMetadata?this._fetchMetadata():this.pendingTimeout=setTimeout(()=>{this.pendingTimeout=void 0,this._continueUpload()},this.sleepTime):this._oneShotUpload())}_resolveToken(e){Promise.all([this._ref.storage._getAuthToken(),this._ref.storage._getAppCheckToken()]).then(([t,n])=>{switch(this._state){case"running":e(t,n);break;case"canceling":this._transition("canceled");break;case"pausing":this._transition("paused")}})}_createResumable(){this._resolveToken((e,t)=>{let n=function(e,t,n,r,i){let s=t.bucketOnlyServerUrl(),a=er(t,r,i),o={name:a.fullPath},l=R(s,e.host,e._protocol),h={"X-Goog-Upload-Protocol":"resumable","X-Goog-Upload-Command":"start","X-Goog-Upload-Header-Content-Length":`${r.size()}`,"X-Goog-Upload-Header-Content-Type":a.contentType,"Content-Type":"application/json; charset=utf-8"},u=G(a,n),c=new Y(l,"POST",function(e){let t;es(e);try{t=e.getResponseHeader("X-Goog-Upload-URL")}catch(e){Q(!1)}return Q(C(t)),t},e.maxUploadRetryTime);
22return c.urlParams=o,c.headers=h,c.body=u,c.errorHandler=ee(t),c}(this._ref.storage,this._ref._location,this._mappings,this._blob,this._metadata),r=this._ref.storage._makeRequest(n,ef,e,t);this._request=r,r.getPromise().then(e=>{this._request=void 0,this._uploadUrl=e,this._needToFetchStatus=!1,this.completeTransitions_()},this._errorHandler)})}_fetchStatus(){let e=this._uploadUrl;this._resolveToken((t,n)=>{let r=function(e,t,n,r){let i=new Y(n,"POST",function(e){let t=es(e,["active","final"]),n=null;try{n=e.getResponseHeader("X-Goog-Upload-Size-Received")}catch(e){Q(!1)}n||Q(!1);let i=Number(n);return Q(!isNaN(i)),new ei(i,r.size(),"final"===t)},e.maxUploadRetryTime);return i.headers={"X-Goog-Upload-Command":"query"},i.errorHandler=ee(t),i}(this._ref.storage,this._ref._location,e,this._blob),i=this._ref.storage._makeRequest(r,ef,t,n);this._request=i,i.getPromise().then(e=>{this._request=void 0,this._updateProgress(e.current),this._needToFetchStatus=!1,e.finalized&&(this._needToFetchMetadata=!0),this.completeTransitions_()},this._errorHandler)})}_continueUpload(){let e=262144*this._chunkMultiplier,t=new ei(this._transferred,this._blob.size()),n=this._uploadUrl;this._resolveToken((i,s)=>{let a;try{a=function(e,t,n,i,s,a,o,l){let h=new ei(0,0);if(o?(h.current=o.current,h.total=o.total):(h.current=0,h.total=i.size()),i.size()!==h.total)throw new c(r.SERVER_FILE_WRONG_SIZE,"Server recorded incorrect upload file size, please retry the upload.");let u=h.total-h.current,d=u;s>0&&(d=Math.min(d,s));let f=h.current,p=f+d,g={"X-Goog-Upload-Command":0===d?"finalize":u===d?"upload, finalize":"upload","X-Goog-Upload-Offset":`${h.current}`},m=i.slice(f,p);if(null===m)throw _();let v=new Y(n,"POST",function(e,n){let r,s=es(e,["active","final"]),o=h.current+d,l=i.size();return r="final"===s?Z(t,a)(e,n):null,new ei(o,l,"final"===s,r)},t.maxUploadRetryTime);return v.headers=g,v.body=m.uploadData(),v.progressCallback=l||null,v.errorHandler=ee(e),v}(this._ref._location,this._ref.storage,n,this._blob,e,this._mappings,t,this._makeProgressCallback())}catch(e){this._error=e,this._transition("error");return}let o=this._ref.storage._makeRequest(a,ef,i,s,!1);this._request=o,o.getPromise().then(e=>{this._increaseMultiplier(),this._request=void 0,this._updateProgress(e.current),e.finalized?(this._metadata=e.metadata,this._transition("success")):this.completeTransitions_()},this._errorHandler)})}_increaseMultiplier(){2*(262144*this._chunkMultiplier)<0x2000000&&(this._chunkMultiplier*=2)}_fetchMetadata(){this._resolveToken((e,t)=>{let n=en(this._ref.storage,this._ref._location,this._mappings),r=this._ref.storage._makeRequest(n,ef,e,t);this._request=r,r.getPromise().then(e=>{this._request=void 0,this._metadata=e,this._transition("success")},this._metadataErrorHandler)})}_oneShotUpload(){this._resolveToken((e,t)=>{let n=function(e,t,n,r,i){let s=t.bucketOnlyServerUrl(),a={"X-Goog-Upload-Protocol":"multipart"},o=function(){let e="";for(let t=0;t<2;t++)e+=Math.random().toString().slice(2);return e}();a["Content-Type"]="multipart/related; boundary="+o;let l=er(t,r,i),h="--"+o+"\r\nContent-Type: application/json; charset=utf-8\r\n\r\n"+G(l,n)+"\r\n--"+o+"\r\nContent-Type: "+l.contentType+"\r\n\r\n",u=B.getBlob(h,r,"\r\n--"
22+o+"--");if(null===u)throw _();let c={name:l.fullPath},d=R(s,e.host,e._protocol),f=e.maxUploadRetryTime,p=new Y(d,"POST",Z(e,n),f);return p.urlParams=c,p.headers=a,p.body=u.uploadData(),p.errorHandler=ee(t),p}(this._ref.storage,this._ref._location,this._mappings,this._blob,this._metadata),r=this._ref.storage._makeRequest(n,ef,e,t);this._request=r,r.getPromise().then(e=>{this._request=void 0,this._metadata=e,this._updateProgress(this._blob.size()),this._transition("success")},this._errorHandler)})}_updateProgress(e){let t=this._transferred;this._transferred=e,this._transferred!==t&&this._notifyObservers()}_transition(e){if(this._state!==e)switch(e){case"canceling":case"pausing":this._state=e,void 0!==this._request?this._request.cancel():this.pendingTimeout&&(clearTimeout(this.pendingTimeout),this.pendingTimeout=void 0,this.completeTransitions_());break;case"running":let t="paused"===this._state;this._state=e,t&&(this._notifyObservers(),this._start());break;case"paused":case"error":case"success":this._state=e,this._notifyObservers();break;case"canceled":this._error=g(),this._state=e,this._notifyObservers()}}completeTransitions_(){switch(this._state){case"pausing":this._transition("paused");break;case"canceling":this._transition("canceled");break;case"running":this._start()}}get snapshot(){let e=el(this._state);return{bytesTransferred:this._transferred,totalBytes:this._blob.size(),state:e,metadata:this._metadata,task:this,ref:this._ref}}on(e,t,n,r){let i=new eh(t||void 0,n||void 0,r||void 0);return this._addObserver(i),()=>{this._removeObserver(i)}}then(e,t){return this._promise.then(e,t)}catch(e){return this.then(null,e)}_addObserver(e){this._observers.push(e),this._notifyObserver(e)}_removeObserver(e){let t=this._observers.indexOf(e);-1!==t&&this._observers.splice(t,1)}_notifyObservers(){this._finishPromise(),this._observers.slice().forEach(e=>{this._notifyObserver(e)})}_finishPromise(){if(void 0!==this._resolve){let e=!0;switch(el(this._state)){case eo.SUCCESS:eu(this._resolve.bind(null,this.snapshot))();break;case eo.CANCELED:case eo.ERROR:eu(this._reject.bind(null,this._error))();break;default:e=!1}e&&(this._resolve=void 0,this._reject=void 0)}}_notifyObserver(e){switch(el(this._state)){case eo.RUNNING:case eo.PAUSED:e.next&&eu(e.next.bind(e,this.snapshot))();break;case eo.SUCCESS:e.complete&&eu(e.complete.bind(e))();break;case eo.CANCELED:case eo.ERROR:default:e.error&&eu(e.error.bind(e,this._error))()}}resume(){let e="paused"===this._state||"pausing"===this._state;return e&&this._transition("running"),e}pause(){let e="running"===this._state;return e&&this._transition("pausing"),e}cancel(){let e="running"===this._state||"pausing"===this._state;return e&&this._transition("canceling"),e}}class eg{constructor(e,t){this._service=e,t instanceof E?this._location=t:this._location=E.makeFromUrl(t,e.host)}toString(){return"gs://"+this._location.bucket+"/"+this._location.path}_newRef(e,t){return new eg(e,t)}get root(){let e=new E(this._location.bucket,"");return this._newRef(this._service,e)}get bucket(){return this._location.bucket}get fullPath(){return this._location.path}get name(){return V(this._location.path)}get storage(){return this._service}get parent(){let e=function(e){if(0===e.length)return null;let t=e.lastIndexOf("/");return -1===t?"":e.slice(0,t)}(this._location.path);if(null===e)return null;let t=new E(this._location.bucket,e);return new eg(this._service,t)}_throwIfRoot(e){if(""===this._location.path)throw y(e)}}async function e_(e,t,n){let r=await em(e,{pageToken:n});t.prefixes.push(...r.prefixes),t.items.push(...r.items),null!=r.nextPageToken&&await e_(e,t,r.nextPageToken)}function em(e,t){null!=t&&"number"==typeof t.maxResults&&S("options.maxResults",1,1e3,t.maxResults);let n=t||{},r=function(e,t,n,r,i){var s;let a={};t.isRoot?a.prefix="":a.prefix=t.path+"/",a.delimiter=n,r&&(a.pageToken=r),i&&(a.maxResults=i);let o=R(t.bucketOnlyServerUrl(),e.host,e._protocol),l=e.maxOperationRetryTime,h=new Y(o,"GET",(s=t.bucket,function(t,n){let r=function(e,t,n){let r=H(n);if(null===r)return null;let i={prefixes:[],items:[],nextPageToken:r.nextPageToken};if(r[X])for(let n of r[X]){let r=n.replace(/\/$/,""),s=e._makeStorageReference(new E(t,r));i.prefixes.push(s)}if(r[J])for(let n of r[J]){let r=e._makeStorageReference(new E(t,n.name));i.items.push(r)}return i}(e,s,n);return Q(null!==r),r}),l);
22return h.urlParams=a,h.errorHandler=ee(t),h}(e.storage,e._location,"/",n.pageToken,n.maxResults);return e.storage.makeRequestWithTokens(r,ef)}function ev(e,t){let n=function(e,t){let n=t.split("/").filter(e=>e.length>0).join("/");return 0===e.length?n:e+"/"+n}(e._location.path,t),r=new E(e._location.bucket,n);return new eg(e.storage,r)}function ey(e,t){let n=null==t?void 0:t[u];return null==n?null:E.makeFromBucketSpec(n,e)}class eb{constructor(e,t,n,r,i,s=!1){this.app=e,this._authProvider=t,this._appCheckProvider=n,this._url=r,this._firebaseVersion=i,this._isUsingEmulator=s,this._bucket=null,this._host=h,this._protocol="https",this._appId=null,this._deleted=!1,this._maxOperationRetryTime=12e4,this._maxUploadRetryTime=6e5,this._requests=new Set,null!=r?this._bucket=E.makeFromBucketSpec(r,this._host):this._bucket=ey(this._host,this.app.options)}get host(){return this._host}set host(e){this._host=e,null!=this._url?this._bucket=E.makeFromBucketSpec(this._url,e):this._bucket=ey(e,this.app.options)}get maxUploadRetryTime(){return this._maxUploadRetryTime}set maxUploadRetryTime(e){S("time",0,1/0,e),this._maxUploadRetryTime=e}get maxOperationRetryTime(){return this._maxOperationRetryTime}set maxOperationRetryTime(e){S("time",0,1/0,e),this._maxOperationRetryTime=e}async _getAuthToken(){if(this._overrideAuthToken)return this._overrideAuthToken;let e=this._authProvider.getImmediate({optional:!0});if(e){let t=await e.getToken();if(null!==t)return t.accessToken}return null}async _getAppCheckToken(){if((0,a._isFirebaseServerApp)(this.app)&&this.app.settings.appCheckToken)return this.app.settings.appCheckToken;let e=this._appCheckProvider.getImmediate({optional:!0});return e?(await e.getToken()).token:null}_delete(){return this._deleted||(this._deleted=!0,this._requests.forEach(e=>e.cancel()),this._requests.clear()),Promise.resolve()}_makeStorageReference(e){return new eg(this,e)}_makeRequest(e,t,n,r,i=!0){if(this._deleted)return new I(v());{let s=function(e,t,n,r,i,s,a=!0,o=!1){let l=O(e.urlParams),h=e.url+l,u=Object.assign({},e.headers);return t&&(u["X-Firebase-GMPID"]=t),null!==n&&n.length>0&&(u.Authorization="Firebase "+n),u["X-Firebase-Storage-Version"]="webjs/"+(null!=s?s:"AppManager"),null!==r&&(u["X-Firebase-AppCheck"]=r),new D(h,e.method,u,e.body,e.successCodes,e.additionalRetryCodes,e.handler,e.errorHandler,e.timeout,e.progressCallback,i,a,o)}(e,this._appId,n,r,t,this._firebaseVersion,i,this._isUsingEmulator);return this._requests.add(s),s.getPromise().then(()=>this._requests.delete(s),()=>this._requests.delete(s)),s}}async makeRequestWithTokens(e,t){let[n,r]=await Promise.all([this._getAuthToken(),this._getAppCheckToken()]);return this._makeRequest(e,t,n,r).getPromise()}}let ew="@firebase/storage",eE="0.13.14";function eI(e,t){var n=e=(0,o.Ku)(e);if(!(t&&/^[A-Za-z]+:\/\//.test(t)))return function e(t,n){if(t instanceof eb){if(null==t._bucket)throw new c(r.NO_DEFAULT_BUCKET,"No default bucket found. Did you set the '"+u+"' property when initializing the app?");let i=new eg(t,t._bucket);return null!=n?e(i,n):i}return void 0!==n?ev(t,n):t}(n,t);if(n instanceof eb)return new eg(n,t);throw m("To use ref(service, url), the first argument must be a Storage instance.")}(0,a._registerComponent)(new l.uA("storage",function(e,{instanceIdentifier:t}){let n=e.getProvider("app").getImmediate();return new eb(n,e.getProvider("auth-internal"),e.getProvider("app-check-internal"),t,a.SDK_VERSION)},"PUBLIC").setMultipleInstances(!0)),(0,a.registerVersion)(ew,eE,""),(0,a.registerVersion)(ew,eE,"esm2017");class eC{constructor(e,t,n){this._delegate=e,this.task=t,this.ref=n}get bytesTransferred(){return this._delegate.bytesTransferred}get metadata(){return this._delegate.metadata}get state(){return this._delegate.state}get totalBytes(){return this._delegate.totalBytes}}class eT{constructor(e,t){this._delegate=e,this._ref=t,this.cancel=this._delegate.cancel.bind(this._delegate),this.catch=this._delegate.catch.bind(this._delegate),this.pause=this._delegate.pause.bind(this._delegate),this.resume=this._delegate.resume.bind(this._delegate)}get snapshot(){return new eC(this._delegate.snapshot,this,this._ref)}then(e,t){return this._delegate.then(t=>{if(e)return e(new eC(t,this,this._ref))},t)}on(e,t,n,r){let i;return t&&(i="function"==typeof t?e=>t(new eC(e,this,this._ref)):{next:t.next?e=>t.next(new eC(e,this,this._ref)):void 0,complete:t.complete||void 0,error:t.error||void 0}),this._delegate.on(e,i,n||void 0,r||void 0)}}class eA{constructor(e,t){this._delegate=e,this._service=t}get prefixes(){return this._delegate.prefixes.map(e=>new eS(e,this._service))}get items(){return this._delegate.items.map(e=>new eS(e,this._service))}get nextPageToken(){return this._delegate.nextPageToken||null}}class eS{constructor(e,t){this._delegate=e,this.storage=t}get name(){return this._delegate.name}get bucket(){return this._delegate.bucket}get fullPath(){return this._delegate.fullPath}toString(){return this._delegate.toString()}child(e){return new eS(ev(this._delegate,e),this.storage)}get root(){return new eS(this._delegate.root,this.storage)}get parent(){let e=this._delegate.parent;return null==e?null:new eS(e,this.storage)}put(e,t){var n,r;return this._throwIfRoot("put"),new eT((n=this._delegate,r=n=(0,o.Ku)(n),r._throwIfRoot("uploadBytesResumable"),new ep(r,new B(e),t)),this)}putString(e,t=N.RAW,n){this._throwIfRoot("putString");let r=U(t,e),i=Object.assign({},n);return null==i.contentType&&null!=r.contentType&&(i.contentType=r.contentType),new eT(new ep(this._delegate,new B(r.data,!0),i),this)}listAll(){return(function(e){var t=e=(0,o.Ku)(e);let n={prefixes:[],items:[]};return e_(t,n).then(()=>n)})(this._delegate).then(e=>new eA(e,this.storage))}list(e){var t,n;return(t=this._delegate,n=e||void 0,em(t=(0,o.Ku)(t),n)).then(e=>new eA(e,this.storage))}getMetadata(){var e=this._delegate,t=e=(0,o.Ku)(e);t._throwIfRoot("getMetadata");let n=en(t.storage,t._location,q());return t.storage.makeRequestWithTokens(n,ef)}updateMetadata(e){var t=this._delegate,n=e,r=t=(0,o.Ku)(t);r._throwIfRoot("updateMetadata");let i=function(e,t,n,r){let i=R(t.fullServerUrl(),e.host,e._protocol),s=G(n,r),a=e.maxOperationRetryTime,o=new Y(i,"PATCH",Z(e,r),a);return o.headers={"Content-Type":"application/json; charset=utf-8"},o.body=s,o.errorHandler=et(t),o}
22(r.storage,r._location,n,q());return r.storage.makeRequestWithTokens(i,ef)}getDownloadURL(){var e=this._delegate,t=e=(0,o.Ku)(e);t._throwIfRoot("getDownloadURL");let n=function(e,t,n){let r=R(t.fullServerUrl(),e.host,e._protocol),i=e.maxOperationRetryTime,s=new Y(r,"GET",function(t,r){let i=K(e,r,n);return Q(null!==i),function(e,t,n,r){let i=H(t);if(null===i||!C(i.downloadTokens))return null;let s=i.downloadTokens;if(0===s.length)return null;let a=encodeURIComponent;return s.split(",").map(t=>{let i=e.bucket,s=e.fullPath;return R("/b/"+a(i)+"/o/"+a(s),n,r)+O({alt:"media",token:t})})[0]}(i,r,e.host,e._protocol)},i);return s.errorHandler=et(t),s}(t.storage,t._location,q());return t.storage.makeRequestWithTokens(n,ef).then(e=>{if(null===e)throw new c(r.NO_DOWNLOAD_URL,"The given file does not have any download URLs.");return e})}delete(){this._throwIfRoot("delete");var e=this._delegate,t=e=(0,o.Ku)(e);t._throwIfRoot("deleteObject");let n=function(e,t){let n=R(t.fullServerUrl(),e.host,e._protocol),r=new Y(n,"DELETE",function(e,t){},e.maxOperationRetryTime);return r.successCodes=[200,204],r.errorHandler=et(t),r}(t.storage,t._location);return t.storage.makeRequestWithTokens(n,ef)}_throwIfRoot(e){if(""===this._delegate._location.path)throw y(e)}}class eR{constructor(e,t){this.app=e,this._delegate=t}get maxOperationRetryTime(){return this._delegate.maxOperationRetryTime}get maxUploadRetryTime(){return this._delegate.maxUploadRetryTime}ref(e){if(eO(e))throw m("ref() expected a child path but got a URL, use refFromURL instead.");return new eS(eI(this._delegate,e),this)}refFromURL(e){if(!eO(e))throw m("refFromURL() expected a full URL but got a child path, use ref() instead.");try{E.makeFromUrl(e,this._delegate.host)}catch(e){throw m("refFromUrl() expected a valid full URL but got an invalid one.")}return new eS(eI(this._delegate,e),this)}setMaxUploadRetryTime(e){this._delegate.maxUploadRetryTime=e}setMaxOperationRetryTime(e){this._delegate.maxOperationRetryTime=e}useEmulator(e,t,n={}){!function(e,t,n,r={}){!function(e,t,n,r={}){e.host=`${t}:${n}`;let i=(0,o.zJ)(t);i&&((0,o.gE)(`https://${e.host}/b`),(0,o.P1)("Storage",!0)),e._isUsingEmulator=!0,e._protocol=i?"https":"http";let{mockUserToken:s}=r;s&&(e._overrideAuthToken="string"==typeof s?s:(0,o.Fy)(s,e.app.options.projectId))}(e,t,n,r)}(this._delegate,e,t,n)}}function eO(e){return/^[A-Za-z]+:\/\//.test(e)}function ek(e,{instanceIdentifier:t}){return new eR(e.getProvider("app-compat").getImmediate(),e.getProvider("storage").getImmediate({identifier:t}))}!function(e){e.INTERNAL.registerComponent(new l.uA("storage-compat",ek,"PUBLIC").setServiceProps({TaskState:eo,TaskEvent:ea,StringFormat:N,Storage:eR,Reference:eS}).setMultipleInstances(!0)),e.registerVersion("@firebase/storage-compat","0.3.24")}(s.A)}}]);

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.