PageSourceSearch

https://bepay.money/_next/static/chunks/1834-857bbd4840873abc.js

js bepay.money collected 2026-10-05 00:58:16 UTC 107,845 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1834],{1834:(e,t,n)=>{n.r(t),n.d(t,{AbstractUserDataWriter:()=>s.A,AggregateField:()=>u,AggregateQuerySnapshot:()=>c,Bytes:()=>s.B,CACHE_SIZE_UNLIMITED:()=>s.au,CollectionReference:()=>s.av,DocumentReference:()=>s.D,DocumentSnapshot:()=>eh,FieldPath:()=>s.Y,FieldValue:()=>s.aw,Firestore:()=>s.F,FirestoreError:()=>s.d,GeoPoint:()=>s.ax,LoadBundleTask:()=>s.ay,PersistentCacheIndexManager:()=>eF,Query:()=>s.Q,QueryCompositeFilterConstraint:()=>_,QueryConstraint:()=>y,QueryDocumentSnapshot:()=>eu,QueryEndAtConstraint:()=>N,QueryFieldFilterConstraint:()=>b,QueryLimitConstraint:()=>A,QueryOrderByConstraint:()=>S,QuerySnapshot:()=>ec,QueryStartAtConstraint:()=>T,SnapshotMetadata:()=>ea,Timestamp:()=>s.az,Transaction:()=>eb,VectorValue:()=>s.aA,WriteBatch:()=>eg,_AutoId:()=>s.N,_ByteString:()=>s.aB,_DatabaseId:()=>s.aC,_DocumentKey:()=>s.v,_EmptyAppCheckTokenProvider:()=>s.aD,_EmptyAuthCredentialsProvider:()=>s.aE,_FieldPath:()=>s.aF,_TestingHooks:()=>ez,_cast:()=>s.y,_debugAssert:()=>s.aG,_internalAggregationQueryToProtoRunAggregationQueryRequest:()=>s.aH,_internalQueryToProtoQueryTarget:()=>s.aI,_isBase64Available:()=>s.aJ,_logWarn:()=>s.ad,_validateIsNotUsedTogether:()=>s.aK,addDoc:()=>ex,aggregateFieldEqual:()=>W,aggregateQuerySnapshotEqual:()=>z,and:()=>I,arrayRemove:()=>s.aL,arrayUnion:()=>s.aM,average:()=>H,clearIndexedDbPersistence:()=>s.aN,collection:()=>s.aO,collectionGroup:()=>s.aP,connectFirestoreEmulator:()=>s.aQ,count:()=>V,deleteAllPersistentCacheIndexes:()=>eH,deleteDoc:()=>eT,deleteField:()=>s.aR,disableNetwork:()=>s.aS,disablePersistentCacheIndexAutoCreation:()=>eq,doc:()=>s.a6,documentId:()=>s.aT,documentSnapshotFromJSON:()=>el,enableIndexedDbPersistence:()=>s.aU,enableMultiTabIndexedDbPersistence:()=>s.aV,enableNetwork:()=>s.aW,enablePersistentCacheIndexAutoCreation:()=>eU,endAt:()=>M,endBefore:()=>k,ensureFirestoreConfigured:()=>s.z,executeWrite:()=>eM,getAggregateFromServer:()=>G,getCountFromServer:()=>$,getDoc:()=>e_,getDocFromCache:()=>ew,getDocFromServer:()=>eI,getDocs:()=>eS,getDocsFromCache:()=>eE,getDocsFromServer:()=>eA,getFirestore:()=>s.aX,getPersistentCacheIndexManager:()=>eB,increment:()=>s.aY,initializeFirestore:()=>s.aZ,limit:()=>C,limitToLast:()=>D,loadBundle:()=>s.a9,memoryEagerGarbageCollector:()=>Y,memoryLocalCache:()=>ee,memoryLruGarbageCollector:()=>Z,namedQuery:()=>s.aa,onSnapshot:()=>eO,onSnapshotResume:()=>eN,onSnapshotsInSync:()=>ek,or:()=>w,orderBy:()=>E,persistentLocalCache:()=>et,persistentMultipleTabManager:()=>es,persistentSingleTabManager:()=>ei,query:()=>m,queryEqual:()=>s.x,querySnapshotFromJSON:()=>ef,refEqual:()=>s.a_,runTransaction:()=>ev,serverTimestamp:()=>s.a$,setDoc:()=>eC,setIndexConfiguration:()=>ej,setLogLevel:()=>s.b0,snapshotEqual:()=>ed,startAfter:()=>O,startAt:()=>x,sum:()=>q,terminate:()=>s.b1,updateDoc:()=>eD,vector:()=>s.b2,waitForPendingWrites:()=>s.b3,where:()=>v,writeBatch:()=>eP});var r=n(81055),i=n(32881),s=n(33241),o=n(21280);n(2107),n(26702),n(80927);let a="@firebase/firestore",h="4.13.0";function l(e){if("object"!=typeof e||null===e)return!1;for(let t of["next","error","complete"])if(t in e&&"function"==typeof e[t])return!0;return!1}class u{constructor(e="count",t){this._internalFieldPath=t,this.type="AggregateField",this.aggregateType=e}}class c{constructor(e,t,n){this._userDataWriter=t,this._data=n,this.type="AggregateQuerySnapshot",this.query=e}data(){return this._userDataWriter.convertObjectMap(this._data)}_fieldsProto(){return new s.O({mapValue:{fields:this._data}}).clone().value.mapValue.fields}}class f{constructor(e,t,n,r,i){this._firestore=e,this._userDataWriter=t,this._key=n,this._document=r,this._converter=i}get id(){return this._key.path.lastSegment()}get ref(){return new s.D(this._firestore,this._converter,this._key)}exists(){return null!==this._document}data(){if(this._document){if(this._converter){let e=new d(this._firestore,this._userDataWriter,this._key,this._document,null);return this._converter.fromFirestore(e)}return this._userDataWriter.convertValue(this._document.data.value)}}_fieldsProto(){return this._document?.data.clone().value.mapValue.fields??void 0}get(e){if(this._document){let t=this._document.data.field((0,s.j)("DocumentSnapshot.get",e));if(null!==t)return this._userDataWriter.convertValue(t)}}}class d extends f{data(){return super.data()}}function p(e){if("L"===e.limitType&&0===e.explicitOrderBy.length)throw new s.d(s.e.UNIMPLEMENT
1ED,"limitToLast() queries require specifying at least one orderBy() clause")}class g{}class y extends g{}function m(e,t,...n){let r=[];for(let i of(t instanceof g&&r.push(t),function(e){let t=e.filter(e=>e instanceof _).length,n=e.filter(e=>e instanceof b).length;if(t>1||t>0&&n>0)throw new s.d(s.e.INVALID_ARGUMENT,"InvalidQuery. When using composite filters, you cannot use more than one filter at the top level. Consider nesting the multiple filters within an `and(...)` statement. For example: change `query(query, where(...), or(...))` to `query(query, and(where(...), or(...)))`.")}(r=r.concat(n)),r))e=i._apply(e);return e}class b extends y{constructor(e,t,n){super(),this._field=e,this._op=t,this._value=n,this.type="where"}static _create(e,t,n){return new b(e,t,n)}_apply(e){let t=this._parse(e);return L(e._query,t),new s.Q(e.firestore,e.converter,(0,s.f)(e._query,t))}_parse(e){let t=(0,s.g)(e.firestore);return function(e,t,n,r,i,o,a){let h;if(i.isKeyField()){if("array-contains"===o||"array-contains-any"===o)throw new s.d(s.e.INVALID_ARGUMENT,`Invalid Query. You can't perform '${o}' queries on documentId().`);if("in"===o||"not-in"===o){j(a,o);let t=[];for(let n of a)t.push(P(r,e,n));h={arrayValue:{values:t}}}else h=P(r,e,a)}else"in"!==o&&"not-in"!==o&&"array-contains-any"!==o||j(a,o),h=(0,s.h)(n,t,a,"in"===o||"not-in"===o);return s.i.create(i,o,h)}(e._query,"where",t,e.firestore._databaseId,this._field,this._op,this._value)}}function v(e,t,n){let r=(0,s.j)("where",e);return b._create(r,t,n)}class _ extends g{constructor(e,t){super(),this.type=e,this._queryConstraints=t}static _create(e,t){return new _(e,t)}_parse(e){let t=this._queryConstraints.map(t=>t._parse(e)).filter(e=>e.getFilters().length>0);return 1===t.length?t[0]:s.C.create(t,this._getOperator())}_apply(e){let t=this._parse(e);return 0===t.getFilters().length?e:(function(e,t){let n=e;for(let e of t.getFlattenedFilters())L(n,e),n=(0,s.f)(n,e)}(e._query,t),new s.Q(e.firestore,e.converter,(0,s.f)(e._query,t)))}_getQueryConstraints(){return this._queryConstraints}_getOperator(){return"and"===this.type?"and":"or"}}function w(...e){return e.forEach(e=>F("or",e)),_._create("or",e)}function I(...e){return e.forEach(e=>F("and",e)),_._create("and",e)}class S extends y{constructor(e,t){super(),this._field=e,this._direction=t,this.type="orderBy"}static _create(e,t){return new S(e,t)}_apply(e){let t=function(e,t,n){if(null!==e.startAt)throw new s.d(s.e.INVALID_ARGUMENT,"Invalid query. You must not call startAt() or startAfter() before calling orderBy().");if(null!==e.endAt)throw new s.d(s.e.INVALID_ARGUMENT,"Invalid query. You must not call endAt() or endBefore() before calling orderBy().");return new s.an(t,n)}(e._query,this._field,this._direction);return new s.Q(e.firestore,e.converter,(0,s.k)(e._query,t))}}function E(e,t="asc"){let n=(0,s.j)("orderBy",e);return S._create(n,t)}class A extends y{constructor(e,t,n){super(),this.type=e,this._limit=t,this._limitType=n}static _create(e,t,n){return new A(e,t,n)}_apply(e){return new s.Q(e.firestore,e.converter,(0,s.l)(e._query,this._limit,this._limitType))}}function C(e){return(0,s.m)("limit",e),A._create("limit",e,"F")}function D(e){return(0,s.m)("limitToLast",e),A._create("limitToLast",e,"L")}class T extends y{constructor(e,t,n){super(),this.type=e,this._docOrFields=t,this._inclusive=n}static _create(e,t,n){return new T(e,t,n)}_apply(e){let t=R(e,this.type,this._docOrFields,this._inclusive);return new s.Q(e.firestore,e.converter,(0,s.n)(e._query,t))}}function x(...e){return T._create("startAt",e,!0)}function O(...e){return T._create("startAfter",e,!1)}class N extends y{constructor(e,t,n){super(),this.type=e,this._docOrFields=t,this._inclusive=n}static _create(e,t,n){return new N(e,t,n)}_apply(e){let t=R(e,this.type,this._docOrFields,this._inclusive);return new s.Q(e.firestore,e.converter,(0,s.o)(e._query,t))}}function k(...e){return N._create("endBefore",e,!1)}function M(...e){return N._create("endAt",e,!0)}function R(e,t,n,r){if(n[0]=(0,o.Ku)(n[0]),n[0]instanceof f)return function(e,t,n,r,i){if(!r)throw new s.d(s.e.NOT_FOUND,`Can't use a DocumentSnapshot that doesn't exist for ${n}().`);let o=[];for(let n of(0,s.q)(e))if(n.field.isKeyField())o.push((0,s.r)(t,r.key));else{let e=r.data.field(n.field);if((0,s.s)(e))throw new s.d(s.e.INVALID_ARGUMENT,'Invalid query. You are trying to start or end a query using a document for which the field "'+n.field+'" is an uncommitted server timestamp. (Since the value of this field is unknown, you cannot start/end a query with it.)');if(null===e){let e=n.field.canonicalString();throw new s.d(s.e.INVALID_ARGUMENT,`Invalid query. You are trying to start or end a query using a document for which the field '${e}' (used as the orderBy) does not exist.`)}o.push(e)}return new s.t(o,i)}(e._query,e.firestore._databaseId,t,n[0]._document,r);{let i=(0,s.g)(e.firestore);return function(e,t,n,r,i,o){let a=e.explicitOrderBy;if(i.length>a.length)throw new s.d(s.e.INVALID_ARGUMENT,`Too many arguments provided to ${r}(). The number of arguments must be less than or equal to the number of orderBy() clauses`);let h=[];for(let o=0;o<i.length;o++){let l=i[o];
1if(a[o].field.isKeyField()){if("string"!=typeof l)throw new s.d(s.e.INVALID_ARGUMENT,`Invalid query. Expected a string for document ID in ${r}(), but got a ${typeof l}`);if(!(0,s.u)(e)&&-1!==l.indexOf("/"))throw new s.d(s.e.INVALID_ARGUMENT,`Invalid query. When querying a collection and ordering by documentId(), the value passed to ${r}() must be a plain document ID, but '${l}' contains a slash.`);let n=e.path.child(s.R.fromString(l));if(!s.v.isDocumentKey(n))throw new s.d(s.e.INVALID_ARGUMENT,`Invalid query. When querying a collection group and ordering by documentId(), the value passed to ${r}() must result in a valid document path, but '${n}' is not because it contains an odd number of segments.`);let i=new s.v(n);h.push((0,s.r)(t,i))}else{let e=(0,s.h)(n,r,l);h.push(e)}}return new s.t(h,o)}(e._query,e.firestore._databaseId,i,t,n,r)}}function P(e,t,n){if("string"==typeof(n=(0,o.Ku)(n))){if(""===n)throw new s.d(s.e.INVALID_ARGUMENT,"Invalid query. When querying with documentId(), you must provide a valid document ID, but it was an empty string.");if(!(0,s.u)(t)&&-1!==n.indexOf("/"))throw new s.d(s.e.INVALID_ARGUMENT,`Invalid query. When querying a collection by documentId(), you must provide a plain document ID, but '${n}' contains a '/' character.`);let r=t.path.child(s.R.fromString(n));if(!s.v.isDocumentKey(r))throw new s.d(s.e.INVALID_ARGUMENT,`Invalid query. When querying a collection group by documentId(), the value provided must result in a valid document path, but '${r}' is not because it has an odd number of segments (${r.length}).`);return(0,s.r)(e,new s.v(r))}if(n instanceof s.D)return(0,s.r)(e,n._key);throw new s.d(s.e.INVALID_ARGUMENT,`Invalid query. When querying with documentId(), you must provide a valid string or a DocumentReference, but it was: ${(0,s.w)(n)}.`)}function j(e,t){if(!Array.isArray(e)||0===e.length)throw new s.d(s.e.INVALID_ARGUMENT,`Invalid Query. A non-empty array is required for '${t.toString()}' filters.`)}function L(e,t){let n=function(e,t){for(let n of e)for(let e of n.getFlattenedFilters())if(t.indexOf(e.op)>=0)return e.op;return null}(e.filters,function(e){switch(e){case"!=":return["!=","not-in"];case"array-contains-any":case"in":return["not-in"];case"not-in":return["array-contains-any","in","not-in","!="];default:return[]}}(t.op));if(null!==n)throw n===t.op?new s.d(s.e.INVALID_ARGUMENT,`Invalid query. You cannot use more than one '${t.op.toString()}' filter.`):new s.d(s.e.INVALID_ARGUMENT,`Invalid query. You cannot use '${t.op.toString()}' filters with '${n.toString()}' filters.`)}function F(e,t){if(!(t instanceof b||t instanceof _))throw new s.d(s.e.INVALID_ARGUMENT,`Function ${e}() requires AppliableConstraints created with a call to 'where(...)', 'or(...)', or 'and(...)'.`)}function B(e,t,n){return e?n&&(n.merge||n.mergeFields)?e.toFirestore(t,n):e.toFirestore(t):t}class U extends s.A{constructor(e){super(),this.firestore=e}convertBytes(e){return new s.B(e)}convertReference(e){let t=this.convertDocumentKey(e,this.firestore._databaseId);return new s.D(this.firestore,null,t)}}function q(e){return new u("sum",(0,s.j)("sum",e))}function H(e){return new u("avg",(0,s.j)("average",e))}function V(){return new u("count")}function W(e,t){return e instanceof u&&t instanceof u&&e.aggregateType===t.aggregateType&&e._internalFieldPath?.canonicalString()===t._internalFieldPath?.canonicalString()}function z(e,t){return(0,s.x)(e.query,t.query)&&(0,o.bD)(e.data(),t.data())}function $(e){return G(e,{count:V()})}function G(e,t){let n=(0,s.y)(e.firestore,s.F),r=(0,s.z)(n),i=(0,s.E)(t,(e,t)=>new s.ao(t,e.aggregateType,e._internalFieldPath));return(0,s.G)(r,e._query,i).then(t=>new c(e,new s.H(n),t))}class J{constructor(e){this.kind="memory",this._onlineComponentProvider=s.ap.provider,this._offlineComponentProvider=e?.garbageCollector?e.garbageCollector._offlineComponentProvider:{build:()=>new s.aq(void 0)}}toJSON(){return{kind:this.kind}}}class K{constructor(e){let t;this.kind="persistent",e?.tabManager?(e.tabManager._initialize(e),t=e.tabManager):(t=ei(void 0))._initialize(e),this._onlineComponentProvider=t._onlineComponentProvider,this._offlineComponentProvider=t._offlineComponentProvider}toJSON(){return{kind:this.kind}}}class X{constructor(){this.kind="memoryEager",this._offlineComponentProvider=s.ar.provider}toJSON(){return{kind:this.kind}}}class Q{constructor(e){this.kind="memoryLru",this._offlineComponentProvider={build:()=>new s.aq(e)}}toJSON(){return{kind:this.kind}}}function Y(){return new X}function Z(e){return new Q(e?.cacheSizeBytes)}
1function ee(e){return new J(e)}function et(e){return new K(e)}class en{constructor(e){this.forceOwnership=e,this.kind="persistentSingleTab"}toJSON(){return{kind:this.kind}}_initialize(e){this._onlineComponentProvider=s.ap.provider,this._offlineComponentProvider={build:t=>new s.as(t,e?.cacheSizeBytes,this.forceOwnership)}}}class er{constructor(){this.kind="PersistentMultipleTab"}toJSON(){return{kind:this.kind}}_initialize(e){this._onlineComponentProvider=s.ap.provider,this._offlineComponentProvider={build:t=>new s.at(t,e?.cacheSizeBytes)}}}function ei(e){return new en(e?.forceOwnership)}function es(){return new er}let eo="NOT SUPPORTED";class ea{constructor(e,t){this.hasPendingWrites=e,this.fromCache=t}isEqual(e){return this.hasPendingWrites===e.hasPendingWrites&&this.fromCache===e.fromCache}}class eh extends f{constructor(e,t,n,r,i,s){super(e,t,n,r,s),this._firestore=e,this._firestoreImpl=e,this.metadata=i}exists(){return super.exists()}data(e={}){if(this._document){if(this._converter){let t=new eu(this._firestore,this._userDataWriter,this._key,this._document,this.metadata,null);return this._converter.fromFirestore(t,e)}return this._userDataWriter.convertValue(this._document.data.value,e.serverTimestamps)}}get(e,t={}){if(this._document){let n=this._document.data.field((0,s.j)("DocumentSnapshot.get",e));if(null!==n)return this._userDataWriter.convertValue(n,t.serverTimestamps)}}toJSON(){if(this.metadata.hasPendingWrites)throw new s.d(s.e.FAILED_PRECONDITION,"DocumentSnapshot.toJSON() attempted to serialize a document with pending writes. Await waitForPendingWrites() before invoking toJSON().");let e=this._document,t={};return t.type=eh._jsonSchemaVersion,t.bundle="",t.bundleSource="DocumentSnapshot",t.bundleName=this._key.toString(),e&&e.isValidDocument()&&e.isFoundDocument()&&(this._userDataWriter.convertObjectMap(e.data.value.mapValue.fields,"previous"),this._firestore,this.ref.path,t.bundle="NOT SUPPORTED"),t}}function el(e,t,n){if((0,s.I)(t,eh._jsonSchema)){if(t.bundle===eo)throw new s.d(s.e.INVALID_ARGUMENT,"The provided JSON object was created in a client environment, which is not supported.");let r=(0,s.J)(e._databaseId),i=(0,s.K)(t.bundle,r),o=i.Qu(),a=new s.L(i.getMetadata(),r);for(let e of o)a.Ga(e);let h=a.documents;if(1!==h.length)throw new s.d(s.e.INVALID_ARGUMENT,`Expected bundle data to contain 1 document, but it contains ${h.length} documents.`);let l=(0,s.M)(r,h[0].document),u=new s.v(s.R.fromString(t.bundleName));return new eh(e,new U(e),u,l,new ea(!1,!1),n||null)}}eh._jsonSchemaVersion="firestore/documentSnapshot/1.0",eh._jsonSchema={type:(0,s.p)("string",eh._jsonSchemaVersion),bundleSource:(0,s.p)("string","DocumentSnapshot"),bundleName:(0,s.p)("string"),bundle:(0,s.p)("string")};class eu extends eh{data(e={}){return super.data(e)}}class ec{constructor(e,t,n,r){this._firestore=e,this._userDataWriter=t,this._snapshot=r,this.metadata=new ea(r.hasPendingWrites,r.fromCache),this.query=n}get docs(){let e=[];return this.forEach(t=>e.push(t)),e}get size(){return this._snapshot.docs.size}get empty(){return 0===this.size}forEach(e,t){this._snapshot.docs.forEach(n=>{e.call(t,new eu(this._firestore,this._userDataWriter,n.key,n,new ea(this._snapshot.mutatedKeys.has(n.key),this._snapshot.fromCache),this.query.converter))})}docChanges(e={}){let t=!!e.includeMetadataChanges;if(t&&this._snapshot.excludesMetadataChanges)throw new s.d(s.e.INVALID_ARGUMENT,"To include metadata changes with your document changes, you must also pass { includeMetadataChanges:true } to onSnapshot().");return this._cachedChanges&&this._cachedChangesIncludeMetadataChanges===t||(this._cachedChanges=function(e,t){if(e._snapshot.oldDocs.isEmpty()){let t=0;return e._snapshot.docChanges.map(n=>{let r=new eu(e._firestore,e._userDataWriter,n.doc.key,n.doc,new ea(e._snapshot.mutatedKeys.has(n.doc.key),e._snapshot.fromCache),e.query.converter);return n.doc,{type:"added",doc:r,oldIndex:-1,newIndex:t++}})}{let n=e._snapshot.oldDocs;return e._snapshot.docChanges.filter(e=>t||3!==e.type).map(t=>{let r=new eu(e._firestore,e._userDataWriter,t.doc.key,t.doc,new ea(e._snapshot.mutatedKeys.has(t.doc.key),e._snapshot.fromCache),e.query.converter),i=-1,o=-1;return 0!==t.type&&(i=n.indexOf(t.doc.key),n=n.delete(t.doc.key)),1!==t.type&&(o=(n=n.add(t.doc)).indexOf(t.doc.key)),{type:function(e){switch(e){case 0:return"added";case 2:case 3:return"modified";case 1:return"removed";default:return(0,s.U)(61501,{type:e})}}(t.type),doc:r,oldIndex:i,newIndex:o}})}}(this,t),this._cachedChangesIncludeMetadataChanges=t),this._cachedChanges}toJSON(){if(this.metadata.hasPendingWrites)throw new s.d(s.e.FAILED_PRECONDITION,"QuerySnapsh
1ot.toJSON() attempted to serialize a document with pending writes. Await waitForPendingWrites() before invoking toJSON().");let e={};e.type=ec._jsonSchemaVersion,e.bundleSource="QuerySnapshot",e.bundleName=s.N.newId(),this._firestore._databaseId.database,this._firestore._databaseId.projectId;let t=[],n=[],r=[];return this.docs.forEach(e=>{null!==e._document&&(t.push(e._document),n.push(this._userDataWriter.convertObjectMap(e._document.data.value.mapValue.fields,"previous")),r.push(e.ref.path))}),this._firestore,this.query._query,e.bundleName,e.bundle="NOT SUPPORTED",e}}function ef(e,t,n){if((0,s.I)(t,ec._jsonSchema)){if(t.bundle===eo)throw new s.d(s.e.INVALID_ARGUMENT,"The provided JSON object was created in a client environment, which is not supported.");let r=(0,s.J)(e._databaseId),i=(0,s.K)(t.bundle,r),o=i.Qu(),a=new s.L(i.getMetadata(),r);for(let e of o)a.Ga(e);if(1!==a.queries.length)throw new s.d(s.e.INVALID_ARGUMENT,`Snapshot data expected 1 query but found ${a.queries.length} queries.`);let h=(0,s.P)(a.queries[0].bundledQuery),l=a.documents,u=new s.S;l.map(e=>{let t=(0,s.M)(r,e.document);u=u.add(t)});let c=s.V.fromInitialDocuments(h,u,(0,s.T)(),!1,!1),f=new s.Q(e,n||null,h);return new ec(e,new U(e),f,c)}}function ed(e,t){return e instanceof eh&&t instanceof eh?e._firestore===t._firestore&&e._key.isEqual(t._key)&&(null===e._document?null===t._document:e._document.isEqual(t._document))&&e._converter===t._converter:e instanceof ec&&t instanceof ec&&e._firestore===t._firestore&&(0,s.x)(e.query,t.query)&&e.metadata.isEqual(t.metadata)&&e._snapshot.isEqual(t._snapshot)}ec._jsonSchemaVersion="firestore/querySnapshot/1.0",ec._jsonSchema={type:(0,s.p)("string",ec._jsonSchemaVersion),bundleSource:(0,s.p)("string","QuerySnapshot"),bundleName:(0,s.p)("string"),bundle:(0,s.p)("string")};let ep={maxAttempts:5};class eg{constructor(e,t){this._firestore=e,this._commitHandler=t,this._mutations=[],this._committed=!1,this._dataReader=(0,s.g)(e)}set(e,t,n){this._verifyNotCommitted();let r=ey(e,this._firestore),i=B(r.converter,t,n),o=(0,s.W)(this._dataReader,"WriteBatch.set",r._key,i,null!==r.converter,n);return this._mutations.push(o.toMutation(r._key,s.X.none())),this}update(e,t,n,...r){let i;this._verifyNotCommitted();let a=ey(e,this._firestore);return i="string"==typeof(t=(0,o.Ku)(t))||t instanceof s.Y?(0,s.Z)(this._dataReader,"WriteBatch.update",a._key,t,n,r):(0,s.$)(this._dataReader,"WriteBatch.update",a._key,t),this._mutations.push(i.toMutation(a._key,s.X.exists(!0))),this}delete(e){this._verifyNotCommitted();let t=ey(e,this._firestore);return this._mutations=this._mutations.concat(new s.a0(t._key,s.X.none())),this}commit(){return this._verifyNotCommitted(),this._committed=!0,this._mutations.length>0?this._commitHandler(this._mutations):Promise.resolve()}_verifyNotCommitted(){if(this._committed)throw new s.d(s.e.FAILED_PRECONDITION,"A write batch can no longer be used after commit() has been called.")}}function ey(e,t){if((e=(0,o.Ku)(e)).firestore!==t)throw new s.d(s.e.INVALID_ARGUMENT,"Provided document reference is from a different Firestore instance.");return e}class em{constructor(e,t){this._firestore=e,this._transaction=t,this._dataReader=(0,s.g)(e)}get(e){let t=ey(e,this._firestore),n=new U(this._firestore);return this._transaction.lookup([t._key]).then(e=>{if(!e||1!==e.length)return(0,s.U)(24041);let r=e[0];if(r.isFoundDocument())return new f(this._firestore,n,r.key,r,t.converter);if(r.isNoDocument())return new f(this._firestore,n,t._key,null,t.converter);throw(0,s.U)(18433,{doc:r})})}set(e,t,n){let r=ey(e,this._firestore),i=B(r.converter,t,n),o=(0,s.W)(this._dataReader,"Transaction.set",r._key,i,null!==r.converter,n);return this._transaction.set(r._key,o),this}update(e,t,n,...r){let i,a=ey(e,this._firestore);return i="string"==typeof(t=(0,o.Ku)(t))||t instanceof s.Y?(0,s.Z)(this._dataReader,"Transaction.update",a._key,t,n,r):(0,s.$)(this._dataReader,"Transaction.update",a._key,t),this._transaction.update(a._key,i),this}delete(e){let t=ey(e,this._firestore);return this._transaction.delete(t._key),this}}class eb extends em{constructor(e,t){super(e,t),this._firestore=e}get(e){let t=ey(e,this._firestore),n=new s.H(this._firestore);return super.get(e).then(e=>
1new eh(this._firestore,n,t._key,e._document,new ea(!1,!1),t.converter))}}function ev(e,t,n){e=(0,s.y)(e,s.F);let r={...ep,...n};if(r.maxAttempts<1)throw new s.d(s.e.INVALID_ARGUMENT,"Max attempts must be at least 1");let i=(0,s.z)(e);return(0,s.a1)(i,n=>t(new eb(e,n)),r)}function e_(e){e=(0,s.y)(e,s.D);let t=(0,s.y)(e.firestore,s.F),n=(0,s.z)(t);return(0,s.a2)(n,e._key).then(n=>eR(t,e,n))}function ew(e){e=(0,s.y)(e,s.D);let t=(0,s.y)(e.firestore,s.F),n=(0,s.z)(t),r=new s.H(t);return(0,s.a3)(n,e._key).then(n=>new eh(t,r,e._key,n,new ea(null!==n&&n.hasLocalMutations,!0),e.converter))}function eI(e){e=(0,s.y)(e,s.D);let t=(0,s.y)(e.firestore,s.F),n=(0,s.z)(t);return(0,s.a2)(n,e._key,{source:"server"}).then(n=>eR(t,e,n))}function eS(e){e=(0,s.y)(e,s.Q);let t=(0,s.y)(e.firestore,s.F),n=(0,s.z)(t),r=new s.H(t);return p(e._query),(0,s.a4)(n,e._query).then(n=>new ec(t,r,e,n))}function eE(e){e=(0,s.y)(e,s.Q);let t=(0,s.y)(e.firestore,s.F),n=(0,s.z)(t),r=new s.H(t);return(0,s.a5)(n,e._query).then(n=>new ec(t,r,e,n))}function eA(e){e=(0,s.y)(e,s.Q);let t=(0,s.y)(e.firestore,s.F),n=(0,s.z)(t),r=new s.H(t);return(0,s.a4)(n,e._query,{source:"server"}).then(n=>new ec(t,r,e,n))}function eC(e,t,n){e=(0,s.y)(e,s.D);let r=(0,s.y)(e.firestore,s.F),i=B(e.converter,t,n),o=(0,s.g)(r);return eM(r,[(0,s.W)(o,"setDoc",e._key,i,null!==e.converter,n).toMutation(e._key,s.X.none())])}function eD(e,t,n,...r){e=(0,s.y)(e,s.D);let i=(0,s.y)(e.firestore,s.F),a=(0,s.g)(i);return eM(i,[("string"==typeof(t=(0,o.Ku)(t))||t instanceof s.Y?(0,s.Z)(a,"updateDoc",e._key,t,n,r):(0,s.$)(a,"updateDoc",e._key,t)).toMutation(e._key,s.X.exists(!0))])}function eT(e){return eM((0,s.y)(e.firestore,s.F),[new s.a0(e._key,s.X.none())])}function ex(e,t){let n=(0,s.y)(e.firestore,s.F),r=(0,s.a6)(e),i=B(e.converter,t),o=(0,s.g)(e.firestore);return eM(n,[(0,s.W)(o,"addDoc",r._key,i,null!==e.converter,{}).toMutation(r._key,s.X.exists(!1))]).then(()=>r)}function eO(e,...t){let n,r,i;e=(0,o.Ku)(e);let a={includeMetadataChanges:!1,source:"default"},h=0;"object"!=typeof t[0]||l(t[h])||(a=t[h++]);let u={includeMetadataChanges:a.includeMetadataChanges,source:a.source};if(l(t[h])){let e=t[h];t[h]=e.next?.bind(e),t[h+1]=e.error?.bind(e),t[h+2]=e.complete?.bind(e)}if(e instanceof s.D)r=(0,s.y)(e.firestore,s.F),i=(0,s.a7)(e._key.path),n={next:n=>{t[h]&&t[h](eR(r,e,n))},error:t[h+1],complete:t[h+2]};else{let o=(0,s.y)(e,s.Q);r=(0,s.y)(o.firestore,s.F),i=o._query;let a=new s.H(r);n={next:e=>{t[h]&&t[h](new ec(r,a,o,e))},error:t[h+1],complete:t[h+2]},p(e._query)}let c=(0,s.z)(r);return(0,s.a8)(c,i,u,n)}function eN(e,t,...n){var r,i,a,h,u,c;let f=(0,o.Ku)(e),d=function(e){let t={bundle:"",bundleName:"",bundleSource:""};for(let n of["bundle","bundleName","bundleSource"]){if(!(n in e)){t.error=`snapshotJson missing required field: ${n}`;break}let r=e[n];if("string"!=typeof r){t.error=`snapshotJson field '${n}' must be a string.`;break}if(0===r.length){t.error=`snapshotJson field '${n}' cannot be an empty string.`;break}"bundle"===n?t.bundle=r:"bundleName"===n?t.bundleName=r:"bundleSource"===n&&(t.bundleSource=r)}return t}(t);if(d.error)throw new s.d(s.e.INVALID_ARGUMENT,d.error);let p,g=0;if("object"!=typeof n[0]||l(n[g])||(p=n[g++]),"QuerySnapshot"===d.bundleSource){let e,t,o=null;if("object"==typeof n[g]&&l(n[g])){let e=n[g++];o={next:e.next,error:e.error,complete:e.complete}}else o={next:n[g++],error:n[g++],complete:n[g++]};return r=p,i=o,a=n[g],t=!1,(0,s.a9)(f,d.bundle).then(()=>(0,s.aa)(f,d.bundleName)).then(n=>{n&&!t&&(a&&n.withConverter(a),e=eO(n,r||{},i))}).catch(e=>(i.error&&i.error(e),()=>{})),()=>{t||(t=!0,e&&e())}}if("DocumentSnapshot"===d.bundleSource){let e,t,r=null;if("object"==typeof n[g]&&l(n[g])){let e=n[g++];r={next:e.next,error:e.error,complete:e.complete}}else r={next:n[g++],error:n[g++],complete:n[g++]};return h=p,u=r,c=n[g],t=!1,(0,s.a9)(f,d.bundle).then(()=>{t||(e=eO(new s.D(f,c||null,s.v.fromPath(d.bundleName)),h||{},u))}).catch(e=>(u.error&&u.error(e),()=>{})),()=>{t||(t=!0,e&&e())}}throw new s.d(s.e.INVALID_ARGUMENT,`unsupported bundle source: ${d.bundleSource}`)}function ek(e,t){e=(0,s.y)(e,s.F);let n=(0,s.z)(e),r=l(t)?t:{next:t};return(0,s.ab)(n,r)}function eM(e,t){let n=(0,s.z)(e);return(0,s.ac)(n,t)}function eR(e,t,n){let r=n.docs.get(t._key),i=new s.H(e);return new eh(e,i,t._key,r,new ea(n.hasPendingWrites,n.fromCache),t.converter)}function eP(e){return e=(0,s.y)(e,s.F),(0,s.z)(e),new eg(e,t=>eM(e,t))}function ej(e,t){e=(0,s.y)(e,s.F);let n=(0,s.z)(e);if(!n._uninitializedComponentsProvider||"memory"===n._uninitializedComponentsProvider._offline.kind)return(0,s.ad)("Cannot enable indexes when persistence is disabled"),Promise.resolve();let r=function(e){let t="string"==typeof e?function(e){try{return JSON.parse(e)}catch(e){throw new s.d(s.e.INVALID_ARGUMENT,"Failed to parse JSON: "+e?.message)}}(e):e,n=[];if(Array.isArray(t.indexes))for(let e of t.indexes){let t=eL(e,"collectionGroup"),r=[];if(Array.isArray(e.fields))for(let t of e.fields){let e=eL(t,"fieldPath"),n=(0,s.ae)("setIndexConfiguration",e);"CONTAINS"===t.arrayConfig?r.push(new s.af(n,2)):"ASCENDING"===t.order?r.push(new s.af(n,0)):"DESCENDING"===t.order&&r.push(new s.af(n,1))}n.push(new s.ag(s.ag.UNKNOWN_ID,t,r,s.ah.empty()))}return n}(t);return(0,s.ai)(n,r)}function eL(e,t){if("string"!=typeof e[t])throw new s.d(s.e.INVALID_ARGUMENT,"Missing str
1ing value for: "+t);return e[t]}class eF{constructor(e){this._firestore=e,this.type="PersistentCacheIndexManager"}}function eB(e){e=(0,s.y)(e,s.F);let t=eW.get(e);if(t)return t;let n=(0,s.z)(e);if("persistent"!==n._uninitializedComponentsProvider?._offline.kind)return null;let r=new eF(e);return eW.set(e,r),r}function eU(e){eV(e,!0)}function eq(e){eV(e,!1)}function eH(e){let t=(0,s.z)(e._firestore);(0,s.aj)(t).then(e=>(0,s.ak)("deleting all persistent cache indexes succeeded")).catch(e=>(0,s.ad)("deleting all persistent cache indexes failed",e))}function eV(e,t){let n=(0,s.z)(e._firestore);(0,s.al)(n,t).then(e=>(0,s.ak)(`setting persistent cache index auto creation isEnabled=${t} succeeded`)).catch(e=>(0,s.ad)(`setting persistent cache index auto creation isEnabled=${t} failed`,e))}let eW=new WeakMap;class ez{constructor(){throw Error("instances of this class should not be created")}static onExistenceFilterMismatch(e){return e$.instance.onExistenceFilterMismatch(e)}}class e${constructor(){this.t=new Map}static get instance(){return eG||(eG=new e$,(0,s.am)(eG)),eG}o(e){this.t.forEach(t=>t(e))}onExistenceFilterMismatch(e){let t=Symbol(),n=this.t;return n.set(t,e),()=>n.delete(t)}}let eG=null;!function(e,t=!0){(0,s._)(r.MF),(0,r.om)(new i.uA("firestore",(e,{instanceIdentifier:n,options:r})=>{let i=e.getProvider("app").getImmediate(),o=new s.F(new s.a(e.getProvider("auth-internal")),new s.b(i,e.getProvider("app-check-internal")),(0,s.c)(i,n),i);return r={useFetchStreams:t,...r},o._setSettings(r),o},"PUBLIC").setMultipleInstances(!0)),(0,r.KO)(a,h,void 0),(0,r.KO)(a,h,"esm2020")}()},2107:(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:{},o={};(function(){function e(){this.blockSize=-1,this.blockSize=64,this.g=[,,,,],this.C=Array(this.blockSize),this.o=this.h=0,this.u()}var t=function(){this.blockSize=-1};function n(){}function s(e,t,n){n||(n=0);let r=Array(16);if("string"==typeof t)for(var i=0;i<16;++i)r[i]=t.charCodeAt(n++)|t.charCodeAt(n++)<<8|t.charCodeAt(n++)<<16|t.charCodeAt(n++)<<24;else for(i=0;i<16;++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];let s=e.g[3],o;o=t+(s^n&(i^s))+r[0]+0xd76aa478|0,o=s+(i^(t=n+(o<<7|o>>>25))&(n^i))+r[1]+0xe8c7b756|0,o=i+(n^(s=t+(o<<12|o>>>20))&(t^n))+r[2]+0x242070db|0,o=n+(t^(i=s+(o<<17|o>>>15))&(s^t))+r[3]+0xc1bdceee|0,o=t+(s^(n=i+(o<<22|o>>>10))&(i^s))+r[4]+0xf57c0faf|0,o=s+(i^(t=n+(o<<7|o>>>25))&(n^i))+r[5]+0x4787c62a|0,o=i+(n^(s=t+(o<<12|o>>>20))&(t^n))+r[6]+0xa8304613|0,o=n+(t^(i=s+(o<<17|o>>>15))&(s^t))+r[7]+0xfd469501|0,o=t+(s^(n=i+(o<<22|o>>>10))&(i^s))+r[8]+0x698098d8|0,o=s+(i^(t=n+(o<<7|o>>>25))&(n^i))+r[9]+0x8b44f7af|0,o=i+(n^(s=t+(o<<12|o>>>20))&(t^n))+r[10]+0xffff5bb1|0,o=n+(t^(i=s+(o<<17|o>>>15))&(s^t))+r[11]+0x895cd7be|0,o=t+(s^(n=i+(o<<22|o>>>10))&(i^s))+r[12]+0x6b901122|0,o=s+(i^(t=n+(o<<7|o>>>25))&(n^i))+r[13]+0xfd987193|0,o=i+(n^(s=t+(o<<12|o>>>20))&(t^n))+r[14]+0xa679438e|0,o=n+(t^(i=s+(o<<17|o>>>15))&(s^t))+r[15]+0x49b40821|0,n=i+(o<<22|o>>>10),o=t+(i^s&(n^i))+r[1]+0xf61e2562|0,t=n+(o<<5|o>>>27),o=s+(n^i&(t^n))+r[6]+0xc040b340|0,s=t+(o<<9|o>>>23),o=i+(t^n&(s^t))+r[11]+0x265e5a51|0,i=s+(o<<14|o>>>18),o=n+(s^t&(i^s))+r[0]+0xe9b6c7aa|0,n=i+(o<<20|o>>>12),o=t+(i^s&(n^i))+r[5]+0xd62f105d|0,t=n+(o<<5|o>>>27),o=s+(n^i&(t^n))+r[10]+0x2441453|0,s=t+(o<<9|o>>>23),o=i+(t^n&(s^t))+r[15]+0xd8a1e681|0,i=s+(o<<14|o>>>18),o=n+(s^t&(i^s))+r[4]+0xe7d3fbc8|0,n=i+(o<<20|o>>>12),o=t+(i^s&(n^i))+r[9]+0x21e1cde6|0,t=n+(o<<5|o>>>27),o=s+(n^i&(t^n))+r[14]+0xc33707d6|0,s=t+(o<<9|o>>>23),o=i+(t^n&(s^t))+r[3]+0xf4d50d87|0,i=s+(o<<14|o>>>18),o=n+(s^t&(i^s))+r[8]+0x455a14ed|0,n=i+(o<<20|o>>>12),o=t+(i^s&(n^i))+r[13]+0xa9e3e905|0,t=n+(o<<5|o>>>27),o=s+(n^i&(t^n))+r[2]+0xfcefa3f8|0,s=t+(o<<9|o>>>23),o=i+(t^n&(s^t))+r[7]+0x676f02d9|0,i=s+(o<<14|o>>>18),o=n+(s^t&(i^s))+r[12]+0x8d2a4c8a|0,o=t+((n=i+(o<<20|o>>>12))^i^s)+r[5]+0xfffa3942|0,o=s+((t=n+(o<<4|o>>>28))^n^i)+r[8]+0x8771f681|0,o=i+((s=t+(o<<11|o>>>21))^t^n)+r[11]+0x6d9d6122|0,o=n+((i=s+(o<<16|o>>>16))^s^t)+r[14]+0xfde5380c|0,o=t+((n=i+(o<<23|o>>>9))^i^s)+r[1]+0xa4beea44|0,o=s+((t=n+(o<<4|o>>>28))^n^i)+r[4]+0x4bdecfa9|0,o=i+((s=t+(o<<11|o>>>21))^t^n)+r[7]+0xf6bb4b60|0,o=n+((i=s+(o<<16|o>>>16))^s^t)+r[10]+0xbebfbc70|0,o=t+((n=i+(o<<23|o>>>9))^i^s)+r[13]+0x289b7ec6|0,o=s+((t=n+(o<<4|o>>>28))^n^i)+r[0]+0xeaa127fa|0,o=i+((s=t+(o<<11|o>>>21))^t^n)+r[3]+0xd4ef3085|0,o=n+((i=s+(o<<16|o>>>16))^s^t)+r[6]+0x4881d05|0,o=t+((n=i+(o<<23|o>>>9))^i^s)+r[9]+0xd9d4d039|0,o=s+((t=n+(o<<4|o>>>28))^n^i)+r[12]+0xe6db99e5|0,o=i+((s=t+(o<<11|o>>>21))^t^n)+r[15]+0x1fa27cf8|0,o=n+((i=s+(o<<16|o>>>16))^s^t)+r[2]+0xc4ac5665|0,n=i+(o<<23|o>>>9),o=t+(i^(n|~s))+r[0]+0xf4292244|0,t=n+(o<<6|o>>>26),o=s+(n^(t|~i))+r[7]+0x432aff97|0,s=t+(o<<10|o>>>22),o=i+(t^(s|~n))+r[14]+0xab9423a7|0,i=s+(o<<15|o>>>17),o=n+(s^(i|~t))+r[5]+0xfc93a039|0,n=i+(o<<21|o>>>11),o=t+(i^(n|~s))+r[12]+0x655b59c3|0,t=n+(o<<6|o>>>26),o=s+(n^(t|~i))+r[3]+0x8f0ccc92|0,s=t+(o<<10|o>>>22),o=i+(t^(s|~n))+r[10]+0xffeff47d|0,i=s+(o<<15|o>>>17),o=n+(s^(i|~t))+r[1]+0x85845dd1|0,n=i+(o<<21|o>>>11),o=t+(i^(n|~s))+r[8]+0x6fa87e4f|0,t=n+(o<<6|o>>>26),o=s+(n^(t|~i))+r[15]+0xfe2ce6e0|0,s=t+(o<<10|o>>>22),o=i+(t^(s|~n))+r[6]+0xa3014314|0,i=s+(o<<15|o>>>17),o=n+(s^(i|~t))+r[13]+0x4e0811a1|0,n=i+(o<<21|o>>>11),o=t+(i^(n|~s))+r[4]+0xf7537e82|0,t=n+(o<<6|o>>>
126),o=s+(n^(t|~i))+r[11]+0xbd3af235|0,s=t+(o<<10|o>>>22),o=i+(t^(s|~n))+r[2]+0x2ad7d2bb|0,i=s+(o<<15|o>>>17),o=n+(s^(i|~t))+r[9]+0xeb86d391|0,e.g[0]=e.g[0]+t|0,e.g[1]=e.g[1]+(i+(o<<21|o>>>11))|0,e.g[2]=e.g[2]+i|0,e.g[3]=e.g[3]+s|0}function a(e,t){this.h=t;let n=[],r=!0;for(let i=e.length-1;i>=0;i--){let s=0|e[i];r&&s==t||(n[i]=s,r=!1)}this.g=n}n.prototype=t.prototype,e.F=t.prototype,e.prototype=new n,e.prototype.constructor=e,e.D=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.u=function(){this.g[0]=0x67452301,this.g[1]=0xefcdab89,this.g[2]=0x98badcfe,this.g[3]=0x10325476,this.o=this.h=0},e.prototype.v=function(e,t){void 0===t&&(t=e.length);let n=t-this.blockSize,r=this.C,i=this.h,o=0;for(;o<t;){if(0==i)for(;o<=n;)s(this,e,o),o+=this.blockSize;if("string"==typeof e){for(;o<t;)if(r[i++]=e.charCodeAt(o++),i==this.blockSize){s(this,r),i=0;break}}else for(;o<t;)if(r[i++]=e[o++],i==this.blockSize){s(this,r),i=0;break}}this.h=i,this.o+=t},e.prototype.A=function(){var e=Array((this.h<56?this.blockSize:2*this.blockSize)-this.h);e[0]=128;for(var t=1;t<e.length-8;++t)e[t]=0;t=8*this.o;for(var n=e.length-8;n<e.length;++n)e[n]=255&t,t/=256;for(this.v(e),e=Array(16),t=0,n=0;n<4;++n)for(let r=0;r<32;r+=8)e[t++]=this.g[n]>>>r&255;return e};var h,l={};function u(e){var t;return -128<=e&&e<128?(t=function(e){return new a([0|e],e<0?-1:0)},Object.prototype.hasOwnProperty.call(l,e)?l[e]:l[e]=t(e)):new a([0|e],e<0?-1:0)}function c(e){if(isNaN(e)||!isFinite(e))return f;if(e<0)return m(c(-e));let t=[],n=1;for(let r=0;e>=n;r++)t[r]=e/n|0,n*=0x100000000;return new a(t,0)}var f=u(0),d=u(1),p=u(0x1000000);function g(e){if(0!=e.h)return!1;for(let t=0;t<e.g.length;t++)if(0!=e.g[t])return!1;return!0}function y(e){return -1==e.h}function m(e){let t=e.g.length,n=[];for(let r=0;r<t;r++)n[r]=~e.g[r];return new a(n,~e.h).add(d)}function b(e,t){return e.add(m(t))}function v(e,t){for(;(65535&e[t])!=e[t];)e[t+1]+=e[t]>>>16,e[t]&=65535,t++}function _(e,t){this.g=e,this.h=t}function w(e,t){if(g(t))throw Error("division by zero");if(g(e))return new _(f,f);if(y(e))return t=w(m(e),t),new _(m(t.g),m(t.h));if(y(t))return t=w(e,m(t)),new _(m(t.g),t.h);if(e.g.length>30){if(y(e)||y(t))throw Error("slowDivide_ only works with positive integers.");for(var n=d,r=t;0>=r.l(e);)n=I(n),r=I(r);var i=S(n,1),s=S(r,1);for(r=S(r,2),n=S(n,2);!g(r);){var o=s.add(r);0>=o.l(e)&&(i=i.add(n),s=o),r=S(r,1),n=S(n,1)}return t=b(e,i.j(t)),new _(i,t)}for(i=f;e.l(t)>=0;){for(r=(r=Math.ceil(Math.log(n=Math.max(1,Math.floor(e.m()/t.m())))/Math.LN2))<=48?1:Math.pow(2,r-48),o=(s=c(n)).j(t);y(o)||o.l(e)>0;)n-=r,o=(s=c(n)).j(t);g(s)&&(s=d),i=i.add(s),e=b(e,o)}return new _(i,e)}function I(e){let t=e.g.length+1,n=[];for(let r=0;r<t;r++)n[r]=e.i(r)<<1|e.i(r-1)>>>31;return new a(n,e.h)}function S(e,t){let n=t>>5;t%=32;let r=e.g.length-n,i=[];for(let s=0;s<r;s++)i[s]=t>0?e.i(s+n)>>>t|e.i(s+n+1)<<32-t:e.i(s+n);return new a(i,e.h)}(h=a.prototype).m=function(){if(y(this))return-m(this).m();let e=0,t=1;for(let n=0;n<this.g.length;n++){let r=this.i(n);e+=(r>=0?r:0x100000000+r)*t,t*=0x100000000}return e},h.toString=function(e){if((e=e||10)<2||36<e)throw Error("radix out of range: "+e);if(g(this))return"0";if(y(this))return"-"+m(this).toString(e);let t=c(Math.pow(e,6));var n=this;let r="";for(;;){let i=w(n,t).g,s=(((n=b(n,i.j(t))).g.length>0?n.g[0]:n.h)>>>0).toString(e);if(g(n=i))return s+r;for(;s.length<6;)s="0"+s;r=s+r}},h.i=function(e){return e<0?0:e<this.g.length?this.g[e]:this.h},h.l=function(e){return y(e=b(this,e))?-1:+!g(e)},h.abs=function(){return y(this)?m(this):this},h.add=function(e){let t=Math.max(this.g.length,e.g.length),n=[],r=0;for(let i=0;i<=t;i++){let t=r+(65535&this.i(i))+(65535&e.i(i)),s=(t>>>16)+(this.i(i)>>>16)+(e.i(i)>>>16);r=s>>>16,t&=65535,s&=65535,n[i]=s<<16|t}return new a(n,-0x80000000&n[n.length-1]?-1:0)},h.j=function(e){if(g(this)||g(e))return f;if(y(this))return y(e)?m(this).j(m(e)):m(m(this).j(e));if(y(e))return m(this.j(m(e)));if(0>this.l(p)&&0>e.l(p))return c(this.m()*e.m());let t=this.g.length+e.g.length,n=[];for(var r=0;r<2*t;r++)n[r]=0;for(r=0;r<this.g.length;r++)for(let t=0;t<e.g.length;t++){let i=this.i(r)>>>16,s=65535&this.i(r),o=e.i(t)>>>16,a=65535&e.i(t);n[2*r+2*t]+=s*a,v(n,2*r+2*t),n[2*r+2*t+1]+=i*a,v(n,2*r+2*t+1),n[2*r+2*t+1]+=s*o,v(n,2*r+2*t+1),n[2*r+2*t+2]+=i*o,v(n,2*r+2*t+2)}for(e=0;e<t;e++)n[e]=n[2*e+1]<<16|n[2*e];for(e=t;e<2*t;e++)n[e]=0;return new a(n,0)},h.B=function(e){return w(this,e).h},h.and=function(e){let t=Math.max(this.g.length,e.g.length),n=[];for(let r=0;r<t;r++)n[r]=this.i(r)&e.i(r);return new a(n,this.h&e.h)},h.or=function(e){let t=Math.max(this.g.length,e.g.length),n=[];for(let r=0;r<t;r++)n[r]=this.i(r)|e.i(r);return new a(n,this.h|e.h)},h.xor=function(e){let t=Math.max(this.g.length,e.g.length),n=[];for(let r=0;r<t;r++)n[r]=this.i(r)^e.i(r);return new a(n,this.h^e.h)},e.prototype.digest=e.prototype.A,e.prototype.reset=e.prototype.u,e.prototype.update=e.prototype.v,i=o.Md5=e,a.prototype.add=a.prototype.add,a.prototype.multiply=a.prototype.j,a.prototype.modulo=a.prototype.B,a.prototype.compare=a.prototype.l,a.prototype.toNumber=a.prototype.m,a.prototype.toString=a.prototype.toString,a.prototype.getBits=a.prototype.i,a.fromNumber=c,a.fromString=function e(t,n){if(0==t.length)throw Error("number format error: empty string");if((n=n||10)<2||36<n)throw Error("radix out of range: "+n);
1if("-"==t.charAt(0))return m(e(t.substring(1),n));if(t.indexOf("-")>=0)throw Error('number format error: interior "-" character');let r=c(Math.pow(n,8)),i=f;for(let e=0;e<t.length;e+=8){var s=Math.min(8,t.length-e);let o=parseInt(t.substring(e,e+s),n);s<8?(s=c(Math.pow(n,s)),i=i.j(s).add(c(o))):i=(i=i.j(r)).add(c(o))}return i},r=o.Integer=a}).apply(void 0!==s?s:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},21280:(e,t,n)=>{n.d(t,{cY:()=>w,FA:()=>P,g:()=>R,u:()=>c,Uj:()=>u,Fy:()=>I,tD:()=>H,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],o=n[s];if(F(r)&&F(o)){if(!e(r,o))return!1}else if(r!==o)return!1}for(let e of i)if(!r.includes(e))return!1;return!0},hp:()=>q,T9:()=>v,Tj:()=>m,yU:()=>b,XA:()=>_,mS:()=>f,Ku:()=>z,ZQ:()=>S,sr:()=>D,zJ:()=>$,c1:()=>C,Im:()=>L,lT:()=>x,zW:()=>k,jZ:()=>E,lV:()=>T,nr:()=>O,Ov:()=>N,gE:()=>G,Am:()=>B,I9:()=>U,eX:()=>M});let r=()=>void 0;var i=n(49509);let s=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},o=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++],o=((7&i)<<18|(63&s)<<12|(63&e[n++])<<6|63&e[n++])-65536;t[r++]=String.fromCharCode(55296+(o>>10)),t[r++]=String.fromCharCode(56320+(1023&o))}else{let s=e[n++],o=e[n++];t[r++]=String.fromCharCode((15&i)<<12|(63&s)<<6|63&o)}}return t.join("")},a={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,o=s?e[t+1]:0,a=t+2<e.length,h=a?e[t+2]:0,l=i>>2,u=(3&i)<<4|o>>4,c=(15&o)<<2|h>>6,f=63&h;!a&&(f=64,s||(c=64)),r.push(n[l],n[u],n[c],n[f])}return r.join("")},encodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(s(e),t)},decodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):o(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,o=++t<e.length?n[e.charAt(t)]:64,a=++t<e.length?n[e.charAt(t)]:64;if(++t,null==i||null==s||null==o||null==a)throw new h;let l=i<<2|s>>4;if(r.push(l),64!==o){let e=s<<4&240|o>>2;if(r.push(e),64!==a){let e=o<<6&192|a;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)}}};
1class h extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}let l=function(e){let t=s(e);return a.encodeByteArray(t,!0)},u=function(e){return l(e).replace(/\./g,"")},c=function(e){try{return a.decodeString(e,!0)}catch(e){console.error("base64Decode failed: ",e)}return null};function f(){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 d=()=>f().__FIREBASE_DEFAULTS__,p=()=>{if(void 0===i||void 0===i.env)return;let e=i.env.__FIREBASE_DEFAULTS__;if(e)return JSON.parse(e)},g=()=>{let e;if("undefined"==typeof document)return;try{e=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch(e){return}let t=e&&c(e[1]);return t&&JSON.parse(t)},y=()=>{try{return r()||d()||p()||g()}catch(e){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${e}`);return}},m=e=>y()?.emulatorHosts?.[e],b=e=>{let t=m(e);if(!t)return;let n=t.lastIndexOf(":");if(n<=0||n+1===t.length)throw Error(`Invalid host ${t} with no separate hostname and port!`);let r=parseInt(t.substring(n+1),10);return"["===t[0]?[t.substring(1,n-1),r]:[t.substring(0,n),r]},v=()=>y()?.config,_=e=>y()?.[`_${e}`];class w{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 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={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[u(JSON.stringify({alg:"none",type:"JWT"})),u(JSON.stringify(s)),""].join(".")}function S(){return"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent?navigator.userAgent:""}function E(){return"undefined"!=typeof window&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(S())}function A(){let e=y()?.forceEnvironment;if("node"===e)return!0;if("browser"===e)return!1;try{return"[object process]"===Object.prototype.toString.call(n.g.process)}catch(e){return!1}}function C(){return"undefined"!=typeof navigator&&"Cloudflare-Workers"===navigator.userAgent}function D(){let e="object"==typeof chrome?chrome.runtime:"object"==typeof browser?browser.runtime:void 0;return"object"==typeof e&&void 0!==e.id}function T(){return"object"==typeof navigator&&"ReactNative"===navigator.product}function x(){let e=S();return e.indexOf("MSIE ")>=0||e.indexOf("Trident/")>=0}function O(){return!A()&&!!navigator.userAgent&&navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")}function N(){return!A()&&!!navigator.userAgent&&(navigator.userAgent.includes("Safari")||navigator.userAgent.includes("WebKit"))&&!navigator.userAgent.includes("Chrome")}function k(){try{return"object"==typeof indexedDB}catch(e){return!1}}function M(){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=()=>{t(i.error?.message||"")}}catch(e){t(e)}})}class R extends Error{constructor(e,t,n){super(t),this.code=e,this.customData=n,this.name="FirebaseError",Object.setPrototypeOf(this,R.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,P.prototype.create)}}class P{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}`,o=this.errors[e],a=o?(n=o,r=i,n.replace(j,(e,t)=>{let n=r[t];return null!=n?String(n):`<${t}?>`})):"Error",h=`${this.serviceName}: ${a} (${s}).`;return new R(s,h,i)}}let j=/\{\$([^}]+)}/g;function L(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}function F(e){return null!==e&&"object"==typeof e}function B(e){let t=[];
1for(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 U(e){let t={};return e.replace(/^\?/,"").split("&").forEach(e=>{if(e){let[n,r]=e.split("=");t[decodeURIComponent(n)]=decodeURIComponent(r)}}),t}function q(e){let t=e.indexOf("?");if(!t)return"";let n=e.indexOf("#",t);return e.substring(t,n>0?n:void 0)}function H(e,t){let n=new V(e,t);return n.subscribe.bind(n)}class V{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=W),void 0===r.error&&(r.error=W),void 0===r.complete&&(r.complete=W);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 W(){}function z(e){return e&&e._delegate?e._delegate:e}function $(e){try{return(e.startsWith("http://")||e.startsWith("https://")?new URL(e).hostname:e).endsWith(".cloudworkstations.dev")}catch{return!1}}async function G(e){return(await fetch(e,{credentials:"include"})).ok}},26702:(e,t,n)=>{var r;n.d(t,{$b:()=>r,Vy:()=>l});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},o=r.INFO,a={[r.DEBUG]:"log",[r.VERBOSE]:"log",[r.INFO]:"info",[r.WARN]:"warn",[r.ERROR]:"error"},h=(e,t,...n)=>{if(t<e.logLevel)return;let r=new Date().toISOString(),i=a[t];if(i)console[i](`[${r}]  ${e.name}:`,...n);else throw Error(`Attempted to log a message with an invalid logType (value: ${t})`)};class l{constructor(e){this.name=e,this._logLevel=o,this._logHandler=h,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)}}},32881:(e,t,n)=>{n.d(t,{h1:()=>a,uA:()=>i});var r=n(21280);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 o{constructor(e,t){this.name=e,this.container=t,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(e){let t=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(t)){let e=new r.cY;if(this.instancesDeferred.set(t,e),this.isInitialized(t)||this.shouldAutoInitialize())try{let n=this.getOrInitializeService({instanceIdentifier:t});n&&e.resolve(n)}catch(e){}}return this.instancesDeferred.get(t).promise}getImmediate(e){let t=this.normalizeInstanceIdentifier(e?.identifier),n=e?.optional??!1;if(this.isInitialized(t)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:t})}catch(e){if(n)return null;throw e}if(n)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){let n=this.normalizeInstanceIdentifier(t),r=this.onInitCallbacks.get(n)??new Set;r.add(e),this.onInitCallbacks.set(n,r);let i=this.instances.get(n);return i&&e(i,n),()=>{r.delete(e)}}invokeOnInitCallbacks(e,t){let n=this.onInitCallbacks.get(t);if(n)for(let r of n)try{r(e,t)}catch{}}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{}return r||null}normalizeInstanceIdentifier(e=s){return this.component?this.component.multipleInstances?e:s:e}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}class a{constructor(e){this.name=e,this.providers=new Map}addComponent(e){let t=this.getProvider(e.name);if(t.isComponentSet())throw Error(`Component ${e.name} has already been registered with ${this.name}`);t.setComponent(e)}addOrOverwriteComponent(e){this.getProvider(e.name).isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)}getProvider(e){if(this.providers.has(e))return this.providers.get(e);let t=new o(e,this);return this.providers.set(e,t),t}getProviders(){return Array.from(this.providers.values())}}},80927:(e,t,n)=>{n.d(t,{Ao:()=>l,Bx:()=>s,Jh:()=>h,O4:()=>o,ZS:()=>r,fF:()=>u,iO:()=>i,ro:()=>a});var r,i,s,o,a,h,l,u,c="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},f={};(function(){var e,t,n=Object.defineProperty,d=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 p(e,t){if(t)e:{var r=d;e=e.split(".");for(var i=0;i<e.length-1;i++){var s=e[i];if(!(s in r))break e;r=r[s]}(t=t(i=r[e=e[e.length-1]]))!=i&&null!=t&&n(r,e,{configurable:!0,writable:!0,value:t})}}p("Symbol.dispose",function(e){return e||Symbol("Symbol.dispose")}),p("Array.prototype.values",function(e){return e||function(){return this[Symbol.iterator]()}}),p("Object.entries",function(e){return e||function(e){var t,n=[];for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.push([t,e[t]]);return n}});var g=g||{},y=this||self;function m(e){var t=typeof e;return"object"==t&&null!=e||"function"==t}function b(e,t,n){return e.call.apply(e.bind,arguments)}function v(e,t,n){return(v=b).apply(null,arguments)}
1function _(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 w(e,t){function n(){}n.prototype=t.prototype,e.Z=t.prototype,e.prototype=new n,e.prototype.constructor=e,e.Ob=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)}}var I="undefined"!=typeof AsyncContext&&"function"==typeof AsyncContext.Snapshot?e=>e&&AsyncContext.Snapshot.wrap(e):e=>e;function S(e){let t=e.length;if(t>0){let n=Array(t);for(let r=0;r<t;r++)n[r]=e[r];return n}return[]}function E(e,t){for(let t=1;t<arguments.length;t++){let r=arguments[t];var n=typeof r;if("array"==(n="object"!=n?n:r?Array.isArray(r)?"array":n:"null")||"object"==n&&"number"==typeof r.length){n=e.length||0;let t=r.length||0;e.length=n+t;for(let i=0;i<t;i++)e[n+i]=r[i]}else e.push(r)}}class A{constructor(e,t){this.i=e,this.j=t,this.h=0,this.g=null}get(){let e;return this.h>0?(this.h--,e=this.g,this.g=e.next,e.next=null):e=this.i(),e}}class C{constructor(){this.h=this.g=null}add(e,t){let n=D.get();n.set(e,t),this.h?this.h.next=n:this.g=n,this.h=n}}var D=new A(()=>new T,e=>e.reset());class T{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 x,O=!1,N=new C,k=()=>{let e=Promise.resolve(void 0);x=()=>{e.then(M)}};function M(){let e;for(var t;e=null,N.g&&(e=N.g,N.g=N.g.next,N.g||(N.h=null),e.next=null),t=e;){try{t.h.call(t.g)}catch(e){!function(e){y.setTimeout(()=>{throw e},0)}(e)}D.j(t),D.h<100&&(D.h++,t.next=D.g,D.g=t)}O=!1}function R(){this.u=this.u,this.C=this.C}function P(e,t){this.type=e,this.g=this.target=t,this.defaultPrevented=!1}R.prototype.u=!1,R.prototype.dispose=function(){this.u||(this.u=!0,this.N())},R.prototype[Symbol.dispose]=function(){this.dispose()},R.prototype.N=function(){if(this.C)for(;this.C.length;)this.C.shift()()},P.prototype.h=function(){this.defaultPrevented=!0};var j=function(){if(!y.addEventListener||!Object.defineProperty)return!1;var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}});try{let e=()=>{};y.addEventListener("test",e,t),y.removeEventListener("test",e,t)}catch(e){}return e}();function L(e){return/^[\s\xa0]*$/.test(e)}function F(e,t){P.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&&this.init(e,t)}w(F,P),F.prototype.init=function(e,t){let n=this.type=e.type,r=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:null;this.target=e.target||e.srcElement,this.g=t,(t=e.relatedTarget)||("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=e.pointerType,this.state=e.state,this.i=e,e.defaultPrevented&&F.Z.h.call(this)},F.prototype.h=function(){F.Z.h.call(this);let e=this.i;e.preventDefault?e.preventDefault():e.returnValue=!1};var B="closure_listenable_"+(1e6*Math.random()|0),U=0;function q(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=++U,this.da=this.fa=!1}function H(e){e.da=!0,e.listener=null,e.proxy=null,e.src=null,e.ha=null}function V(e,t,n){for(let r in e)t.call(n,e[r],r,e)}function W(e){let t={};for(let n in e)t[n]=e[n];return t}let z="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function $(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<z.length;
1t++)n=z[t],Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}}function G(e){this.src=e,this.g={},this.h=0}function J(e,t){let n=t.type;if(n in e.g){var r,i=e.g[n],s=Array.prototype.indexOf.call(i,t,void 0);(r=s>=0)&&Array.prototype.splice.call(i,s,1),r&&(H(t),0==e.g[n].length&&(delete e.g[n],e.h--))}}function K(e,t,n,r){for(let i=0;i<e.length;++i){let s=e[i];if(!s.da&&s.listener==t&&!!n==s.capture&&s.ha==r)return i}return -1}G.prototype.add=function(e,t,n,r,i){let s=e.toString();(e=this.g[s])||(e=this.g[s]=[],this.h++);let o=K(e,t,r,i);return o>-1?(t=e[o],n||(t.fa=!1)):((t=new q(t,this.src,s,!!r,i)).fa=n,e.push(t)),t};var X="closure_lm_"+(1e6*Math.random()|0),Q={};function Y(e,t,n,r,i,s){if(!t)throw Error("Invalid event type");let o=m(i)?!!i.capture:!!i,a=en(e);if(a||(e[X]=a=new G(e)),(n=a.add(t,n,r,o,s)).proxy)return n;if(r=function e(t){return et.call(e.src,e.listener,t)},n.proxy=r,r.src=e,r.listener=n,e.addEventListener)j||(i=o),void 0===i&&(i=!1),e.addEventListener(t.toString(),r,i);else if(e.attachEvent)e.attachEvent(ee(t.toString()),r);else if(e.addListener&&e.removeListener)e.addListener(r);else throw Error("addEventListener and attachEvent are unavailable.");return n}function Z(e){if("number"!=typeof e&&e&&!e.da){var t=e.src;if(t&&t[B])J(t.i,e);else{var n=e.type,r=e.proxy;t.removeEventListener?t.removeEventListener(n,r,e.capture):t.detachEvent?t.detachEvent(ee(n),r):t.addListener&&t.removeListener&&t.removeListener(r),(n=en(t))?(J(n,e),0==n.h&&(n.src=null,t[X]=null)):H(e)}}}function ee(e){return e in Q?Q[e]:Q[e]="on"+e}function et(e,t){if(e.da)e=!0;else{t=new F(t,this);let n=e.listener,r=e.ha||e.src;e.fa&&Z(e),e=n.call(r,t)}return e}function en(e){return(e=e[X])instanceof G?e:null}var er="__closure_events_fn_"+(1e9*Math.random()>>>0);function ei(e){return"function"==typeof e?e:(e[er]||(e[er]=function(t){return e.handleEvent(t)}),e[er])}function es(){R.call(this),this.i=new G(this),this.M=this,this.G=null}function eo(e,t){let n,r;var i,s=e.G;if(s)for(i=[];s;s=s.G)i.push(s);if(e=e.M,s=t.type||t,"string"==typeof t)t=new P(t,e);else if(t instanceof P)t.target=t.target||e;else{var o=t;$(t=new P(s,e),o)}if(o=!0,i)for(r=i.length-1;r>=0;r--)o=ea(n=t.g=i[r],s,!0,t)&&o;if(o=ea(n=t.g=e,s,!0,t)&&o,o=ea(n,s,!1,t)&&o,i)for(r=0;r<i.length;r++)o=ea(n=t.g=i[r],s,!1,t)&&o}function ea(e,t,n,r){if(!(t=e.i.g[String(t)]))return!0;t=t.concat();let i=!0;for(let s=0;s<t.length;++s){let o=t[s];if(o&&!o.da&&o.capture==n){let t=o.listener,n=o.ha||o.src;o.fa&&J(e.i,o),i=!1!==t.call(n,r)&&i}}return i&&!r.defaultPrevented}w(es,R),es.prototype[B]=!0,es.prototype.removeEventListener=function(e,t,n,r){!function e(t,n,r,i,s){if(Array.isArray(n))for(var o=0;o<n.length;o++)e(t,n[o],r,i,s);else(i=m(i)?!!i.capture:!!i,r=ei(r),t&&t[B])?(t=t.i,(o=String(n).toString())in t.g&&(r=K(n=t.g[o],r,i,s))>-1&&(H(n[r]),Array.prototype.splice.call(n,r,1),0==n.length&&(delete t.g[o],t.h--))):t&&(t=en(t))&&(n=t.g[n.toString()],t=-1,n&&(t=K(n,r,i,s)),(r=t>-1?n[t]:null)&&Z(r))}(this,e,t,n,r)},es.prototype.N=function(){if(es.Z.N.call(this),this.i){var e=this.i;for(let t in e.g){let n=e.g[t];for(let e=0;e<n.length;e++)H(n[e]);delete e.g[t],e.h--}}this.G=null},es.prototype.J=function(e,t,n,r){return this.i.add(String(e),t,!1,n,r)},es.prototype.K=function(e,t,n,r){return this.i.add(String(e),t,!0,n,r)};class eh extends R{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=function(e,t){if("function"!=typeof e)if(e&&"function"==typeof e.handleEvent)e=v(e.handleEvent,e);else throw Error("Invalid listener argument");return Number(t)>0x7fffffff?-1:y.setTimeout(e,t||0)}(()=>{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&&(y.clearTimeout(this.g),this.g=null,this.i=!1,this.h=null)}}function el(e){R.call(this),this.h=e,this.g={}}w(el,R);var eu=[];function ec(e){V(e.g,function(e,t){this.g.hasOwnProperty(t)&&Z(e)},e),e.g={}}el.prototype.N=function(){el.Z.N.call(this),ec(this)},el.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented")};var ef=y.JSON.stringify,ed=y.JSON.parse,ep=class{stringify(e){return y.JSON.stringify(e,void 0)}parse(e){return y.JSON.parse(e,void 0)}};function eg(){}function ey(){}var em={OPEN:"a",hb:"b",ERROR:"c",tb:"d"};function eb(){P.call(this,"d")}function ev(){P.call(this,"c")}w(eb,P),w(ev,P);var e_={},ew=null;function eI(){return ew=ew||new es}function eS(e){P.call(this,e_.Ia,e)}function eE(e){let t=eI();eo(t,new eS(t))}function eA(e,t){P.call(this,e_.STAT_EVENT,e),this.stat=t}function eC(e){let t=eI();eo(t,new eA(t,e))}function eD(e,t){P.call(this,e_.Ja,e),this.size=t}function eT(e,t){if("function"!=typeof e)throw Error("Fn must not be null and must be a function");return y.setTimeout(function(){e()},t)}function ex(){this.g=!0}function eO(e,t,n,r){e.info(function(){return"XMLHTTP TEXT ("+t+"): "+function(e,t){if(!e.g)return t;if(!t)return null;try{let s=JSON.parse(t);if(s){for(e=0;e<s.length;e++)if(Array.isArray(s[e])){var n=s[e];if(!(n.length<2)){var r=n[1];if(Array.isArray(r)&&!(r.length<1)){var i=r[0];if("noop"!=i&&"stop"!=i&&"close"!=i)for(let e=1;e<r.length;e++)r[e]=""}}}}return ef(s)}catch(e){return t}}(e,n)+(r?" "+r:"")})}e_.Ia="serverreachability",w(eS,P),e_.STAT_EVENT="statevent",w(eA,P),e_.Ja="timingevent",w(eD,P),ex.prototype.ua=function(){this.g=!1},ex.prototype.info=function(){};var eN={NO_ERROR:0,cb:1,qb:2,pb:3,kb:4,ob:5,rb:6,Ga:7,TIMEOUT:8,ub:9},ek={ib:"complete",Fb:"success",ERROR:"error",Ga:"abort",xb:"ready",yb:"readystatechange",TIMEOUT:"timeout",sb:"incrementaldata",wb:"progress",lb:"downloadprogress",Nb:"uploadprogress"};function eM(){}function eR(e){return encodeURIComponent(String(e))}function eP(e,t,n,r){this.j=e,this.i=t,this.l=n,this.S=r||1,this.V=new el(this),this.H=45e3,this.J=null,this.o=!1,this.u=this.B=this.A=this.M=this.F=this.T=this.D=null,this.G=[],this.g=null,this.C=0,this.m=this.v=null,this.X=-1,this.K=!1,this.P=0,this.O=null,this.W=this.L=this.U=this.R=!1,this.h=new ej}function ej(){this.i=null,this.g="",this.h=!1}w(eM,eg),eM.prototype.g=function(){return new XMLHttpRequest},e=new eM;var eL={},eF={};function eB(e,t,n){e.M=1,e.A=e9(e3(t)),e.u=n,e.R=!0,eU(e,null)}
1function eU(e,t){e.F=Date.now(),eH(e),e.B=e3(e.A);var n,r,i,s,o,a,h=e.B,l=e.S;Array.isArray(l)||(l=[String(l)]),td(h.i,"t",l),e.C=0,h=e.j.L,e.h=new ej,e.g=tZ(e.j,h?t:null,!e.u),e.P>0&&(e.O=new eh(v(e.Y,e,e.g),e.P)),t=e.V,h=e.g,l=e.ba;var u="readystatechange";Array.isArray(u)||(u&&(eu[0]=u.toString()),u=eu);for(let e=0;e<u.length;e++){let n=function e(t,n,r,i,s){if(i&&i.once)return function e(t,n,r,i,s){if(Array.isArray(n)){for(let o=0;o<n.length;o++)e(t,n[o],r,i,s);return null}return r=ei(r),t&&t[B]?t.K(n,r,m(i)?!!i.capture:!!i,s):Y(t,n,r,!0,i,s)}(t,n,r,i,s);if(Array.isArray(n)){for(let o=0;o<n.length;o++)e(t,n[o],r,i,s);return null}return r=ei(r),t&&t[B]?t.J(n,r,m(i)?!!i.capture:!!i,s):Y(t,n,r,!1,i,s)}(h,u[e],l||t.handleEvent,!1,t.h||t);if(!n)break;t.g[n.key]=n}t=e.J?W(e.J):{},e.u?(e.v||(e.v="POST"),t["Content-Type"]="application/x-www-form-urlencoded",e.g.ea(e.B,e.v,e.u,t)):(e.v="GET",e.g.ea(e.B,e.v,null,t)),eE(),n=e.i,r=e.v,i=e.B,s=e.l,o=e.S,a=e.u,n.info(function(){if(n.g)if(a){var e="",t=a.split("&");for(let n=0;n<t.length;n++){var h=t[n].split("=");if(h.length>1){let t=h[0];h=h[1];let n=t.split("_");e=n.length>=2&&"type"==n[1]?e+(t+"=")+h+"&":e+(t+"=redacted&")}}}else e=null;else e=a;return"XMLHTTP REQ ("+s+") [attempt "+o+"]: "+r+"\n"+i+"\n"+e})}function eq(e){return!!e.g&&"GET"==e.v&&2!=e.M&&e.j.Aa}function eH(e){e.T=Date.now()+e.H,eV(e,e.H)}function eV(e,t){if(null!=e.D)throw Error("WatchDog timer not null");e.D=eT(v(e.aa,e),t)}function eW(e){e.D&&(y.clearTimeout(e.D),e.D=null)}function ez(e){0==e.j.I||e.K||tJ(e.j,e)}function e$(e){eW(e);var t=e.O;t&&"function"==typeof t.dispose&&t.dispose(),e.O=null,ec(e.V),e.g&&(t=e.g,e.g=null,t.abort(),t.dispose())}function eG(e,t){try{var n=e.j;if(0!=n.I&&(n.g==e||eY(n.h,e))){if(!e.L&&eY(n.h,e)&&3==n.I){try{var r=n.Ba.g.parse(t)}catch(e){r=null}if(Array.isArray(r)&&3==r.length){var i=r;if(0==i[0]){e:if(!n.v){if(n.g)if(n.g.F+3e3<e.F)tG(n),tL(n);else break e;tW(n),eC(18)}}else n.xa=i[1],0<n.xa-n.K&&i[2]<37500&&n.F&&0==n.A&&!n.C&&(n.C=eT(v(n.Va,n),6e3));1>=eQ(n.h)&&n.ta&&(n.ta=void 0)}else tX(n,11)}else if((e.L||n.g==e)&&tG(n),!L(t))for(i=n.Ba.g.parse(t),t=0;t<i.length;t++){let a=i[t],h=a[0];if(!(h<=n.K))if(n.K=h,a=a[1],2==n.I)if("c"==a[0]){n.M=a[1],n.ba=a[2];let t=a[3];null!=t&&(n.ka=t,n.j.info("VER="+n.ka));let i=a[4];null!=i&&(n.za=i,n.j.info("SVER="+n.za));let h=a[5];null!=h&&"number"==typeof h&&h>0&&(n.O=r=1.5*h,n.j.info("backChannelRequestTimeoutMs_="+r)),r=n;let l=e.g;if(l){let e=l.g?l.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&&(eZ(s,s.h),s.h=null))}if(r.G){let e=l.g?l.g.getResponseHeader("X-HTTP-Session-Id"):null;e&&(r.wa=e,e7(r.J,r.G,e))}}if(n.I=3,n.l&&n.l.ra(),n.aa&&(n.T=Date.now()-e.F,n.j.info("Handshake RTT: "+n.T+"ms")),(r=n).na=tY(r,r.L?r.ba:null,r.W),e.L){e0(r.h,e);var o=r.O;o&&(e.H=o),e.D&&(eW(e),eH(e)),r.g=e}else tV(r);n.i.length>0&&tB(n)}else"stop"!=a[0]&&"close"!=a[0]||tX(n,7);else 3==n.I&&("stop"==a[0]||"close"==a[0]?"stop"==a[0]?tX(n,7):tj(n):"noop"!=a[0]&&n.l&&n.l.qa(a),n.A=0)}}eE(4)}catch(e){}}eP.prototype.ba=function(e){e=e.target;let t=this.O;t&&3==tk(e)?t.j():this.Y(e)},eP.prototype.Y=function(e){try{if(e==this.g)e:{let f=tk(this.g),d=this.g.ya(),p=this.g.ca();if(!(f<3)&&(3!=f||this.g&&(this.h.h||this.g.la()||tM(this.g)))){this.K||4!=f||7==d||(8==d||p<=0?eE(3):eE(2)),eW(this);var t=this.g.ca();this.X=t;var n=function(e){if(!eq(e))return e.g.la();let t=tM(e.g);if(""===t)return"";let n="",r=t.length,i=4==tk(e.g);if(!e.h.i){if("undefined"==typeof TextDecoder)return e$(e),ez(e),"";e.h.i=new y.TextDecoder}for(let s=0;s<r;s++)e.h.h=!0,n+=e.h.i.decode(t[s],{stream:!(i&&s==r-1)});return t.length=0,e.h.g+=n,e.C=0,e.h.g}(this);if(this.o=200==t,r=this.i,i=this.v,s=this.B,o=this.l,a=this.S,r.info(function(){return"XMLHTTP RESP ("+o+") [ attempt "+a+"]: "+i+"\n"+s+"\n"+f+" "+t}),this.o){if(this.U&&!this.L){t:{if(this.g){var r,i,s,o,a,h,l=this.g;if((h=l.g?l.g.getResponseHeader("X-HTTP-Initial-Response"):null)&&!L(h)){var u=h;break t}}u=null}if(e=u)eO(this.i,this.l,e,"Initial handshake response via X-HTTP-Initial-Response"),this.L=!0,eG(this,e);else{this.o=!1,this.m=3,eC(12),e$(this),ez(this);break e}}if(this.R){let t;for(e=!0;!this.K&&this.C<n.length;)if((t=function(e,t){var n=e.C,r=t.indexOf("\n",n);return -1==r?eF:isNaN(n=Number(t.substring(n,r)))?eL:(r+=1)+n>t.length?eF:(t=t.slice(r,r+n),e.C=r+n,t)}(this,n))==eF){4==f&&(this.m=4,eC(14),e=!1),eO(this.i,this.l,null,"[Incomplete Response]");break}else if(t==eL){this.m=4,eC(15),eO(this.i,this.l,n,"[Invalid Chunk]"),e=!1;break}else eO(this.i,this.l,t,null),eG(this,t);if(eq(this)&&0!=this.C&&(this.h.g=this.h.g.slice(this.C),this.C=0),4!=f||0!=n.length||this.h.h||(this.m=1,eC(16),e=!1),this.o=this.o&&e,e){if(n.length>0&&!this.W){this.W=!0;var c=this.j;c.g==this&&c.aa&&!c.P&&(c.j.info("Great, no buffering proxy detected. Bytes received: "+n.length),tz(c),c.P=!0,e
1C(11))}}else eO(this.i,this.l,n,"[Invalid Chunked Response]"),e$(this),ez(this)}else eO(this.i,this.l,n,null),eG(this,n);4==f&&e$(this),this.o&&!this.K&&(4==f?tJ(this.j,this):(this.o=!1,eH(this)))}else(function(e){let t={};e=(e.g&&tk(e)>=2&&e.g.getAllResponseHeaders()||"").split("\r\n");for(let r=0;r<e.length;r++){if(L(e[r]))continue;var n=function(e){var t=1;e=e.split(":");let n=[];for(;t>0&&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)}var r=function(e){return e.join(", ")};for(let e in t)r.call(void 0,t[e],e,t)})(this.g),400==t&&n.indexOf("Unknown SID")>0?(this.m=3,eC(12)):(this.m=0,eC(13)),e$(this),ez(this)}}}catch(e){}finally{}},eP.prototype.cancel=function(){this.K=!0,e$(this)},eP.prototype.aa=function(){var e,t;this.D=null;let n=Date.now();n-this.T>=0?(e=this.i,t=this.B,e.info(function(){return"TIMEOUT: "+t}),2!=this.M&&(eE(),eC(17)),e$(this),this.m=2,ez(this)):eV(this,this.T-n)};var eJ=class{constructor(e,t){this.g=e,this.map=t}};function eK(e){this.l=e||10,e=y.PerformanceNavigationTiming?(e=y.performance.getEntriesByType("navigation")).length>0&&("hq"==e[0].nextHopProtocol||"h2"==e[0].nextHopProtocol):!!(y.chrome&&y.chrome.loadTimes&&y.chrome.loadTimes()&&y.chrome.loadTimes().wasFetchedViaSpdy),this.j=e?this.l:1,this.g=null,this.j>1&&(this.g=new Set),this.h=null,this.i=[]}function eX(e){return!!e.h||!!e.g&&e.g.size>=e.j}function eQ(e){return e.h?1:e.g?e.g.size:0}function eY(e,t){return e.h?e.h==t:!!e.g&&e.g.has(t)}function eZ(e,t){e.g?e.g.add(t):e.h=t}function e0(e,t){e.h&&e.h==t?e.h=null:e.g&&e.g.has(t)&&e.g.delete(t)}function e1(e){if(null!=e.h)return e.i.concat(e.h.G);if(null!=e.g&&0!==e.g.size){let t=e.i;for(let n of e.g.values())t=t.concat(n.G);return t}return S(e.i)}eK.prototype.cancel=function(){if(this.i=e1(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 e2=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");function e6(e){let t;this.g=this.o=this.j="",this.u=null,this.m=this.h="",this.l=!1,e instanceof e6?(this.l=e.l,e5(this,e.j),this.o=e.o,this.g=e.g,e4(this,e.u),this.h=e.h,e8(this,tp(e.i)),this.m=e.m):e&&(t=String(e).match(e2))?(this.l=!1,e5(this,t[1]||"",!0),this.o=te(t[2]||""),this.g=te(t[3]||"",!0),e4(this,t[4]),this.h=te(t[5]||"",!0),e8(this,t[6]||"",!0),this.m=te(t[7]||"")):(this.l=!1,this.i=new th(null,this.l))}function e3(e){return new e6(e)}function e5(e,t,n){e.j=n?te(t,!0):t,e.j&&(e.j=e.j.replace(/:$/,""))}function e4(e,t){if(t){if(isNaN(t=Number(t))||t<0)throw Error("Bad port number "+t);e.u=t}else e.u=null}function e8(e,t,n){var r,i;t instanceof th?(e.i=t,r=e.i,(i=e.l)&&!r.j&&(tl(r),r.i=null,r.g.forEach(function(e,t){let n=t.toLowerCase();t!=n&&(tu(this,t),td(this,n,e))},r)),r.j=i):(n||(t=tt(t,to)),e.i=new th(t,e.l))}function e7(e,t,n){e.i.set(t,n)}function e9(e){return e7(e,"zx",Math.floor(0x80000000*Math.random()).toString(36)+Math.abs(Math.floor(0x80000000*Math.random())^Date.now()).toString(36)),e}function te(e,t){return e?t?decodeURI(e.replace(/%25/g,"%2525")):decodeURIComponent(e):""}function tt(e,t,n){return"string"==typeof e?(e=encodeURI(e).replace(t,tn),n&&(e=e.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),e):null}function tn(e){return"%"+((e=e.charCodeAt(0))>>4&15).toString(16)+(15&e).toString(16)}e6.prototype.toString=function(){let e=[];var t=this.j;t&&e.push(tt(t,tr,!0),":");var n=this.g;return(n||"file"==t)&&(e.push("//"),(t=this.o)&&e.push(tt(t,tr,!0),"@"),e.push(eR(n).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(n=this.u)&&e.push(":",String(n))),(n=this.h)&&(this.g&&"/"!=n.charAt(0)&&e.push("/"),e.push(tt(n,"/"==n.charAt(0)?ts:ti,!0))),(n=this.i.toString())&&e.push("?",n),(n=this.m)&&e.push("#",tt(n,ta)),e.join("")},e6.prototype.resolve=function(e){let t=e3(this),n=!!e.j;n?e5(t,e.j):n=!!e.o,n?t.o=e.o:n=!!e.g,n?t.g=e.g:n=null!=e.u;var r=e.h;if(n)e4(t,e.u);else if(n=!!e.h){if("/"!=r.charAt(0))if(this.g&&!this.h)r="/"+r;else{var i=t.h.lastIndexOf("/");-1!=i&&(r=t.h.slice(0,i+1)+r)}if(".."==(i=r)||"."==i)r="";else if(-1!=i.indexOf("./")||-1!=i.indexOf("/.")){r=0==i.lastIndexOf("/",0),i=i.split("/");let e=[];for(let t=0;t<i.length;){let n=i[t++];"."==n?r&&t==i.length&&e.push(""):".."==n?((e.length>1||1==e.length&&""!=e[0])&&e.pop(),r&&t==i.length&&e.push("")):(e.push(n),r=!0)}r=e.join("/")}else r=i}return n?t.h=r:n=""!==e.i.toString(),n?e8(t,tp(e.i)):n=!!e.m,n&&(t.m=e.m),t};var tr=/[#\/\?@]/g,ti=/[#\?:]/g,ts=/[#\?]/g,to=/[#\?@]/g,ta=/#/g;function th(e,t){this.h=this.g=null,this.i=e||null,this.j=!!t}function tl(e){e.g||(e.g=new Map,e.h=0,e.i&&function(e,t){if(e){e=e.split("&");for(let n=0;n<e.length;n++){let r=e[n].indexOf("="),i,s=null;r>=0?(i=e[n].substring(0,r),s=e[n].substring(r+1)):i=e[n],t(i,s?decodeURIComponent(s.replace(/\+/g," ")):"")}}}(e.i,function(t,n){e.add(decodeURIComponent(t.replace(/\+/g," ")),n)}))}function tu(e,t){tl(e),t=tg(e,t),e.g.has(t)&&(e.i=null,e.h-=e.g.get(t).length,e.g.delete(t))}function tc(e,t){return tl(e),t=tg(e,t),e.g.has(t)}function tf(e,t){tl(e);let n=[];if("string"==typeof t)tc(e,t)&&(n=n.concat(e.g.get(tg(e,t))));else for(e=Array.from(e.g.values()),t=0;t<e.length;t++)n=n.concat(e[t]);return n}function td(e,t,n){tu(e,t),n.length>0&&(e.i=null,e.g.set(tg(e,t),S(n)),e.h+=n.length)}function tp(e){let t=new th;return t.i=e.i,e.g&&(t.g=new Map(e.g),t.h=e.h),t}function tg(e,t){return t=String(t),e.j&&(t=t.toLowerCase()),t}function ty(e,t,n,r,i){try{i&&(i.onload=null,i.onerror=null,i.onabort=null,i.ontimeout=null),r(n)}catch(e){}}function tm(){this.g=new ep}function tb(e){this.i=e.Sb||null,this.h=e.ab||!1}function tv(e,t){es.call(this),this.H=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.A=new Headers,this.h=null,this.F="GET",this.D="",this.g=!1,this.B=this.j=this.l=null,this.v=new AbortController}function t_(e){e.j.read().then(e.Ma.bind(e)).catch(e.ga.bind(e))}function tw(e){e.readyState=4,e.l=null,e.j=null,e.B=null,tI(e)}function tI(e){e.onreadystatechange&&e.onreadystatechange.call(e)}function tS(e){let t="";return V(e,function(e,n){t+=n,t+=":",t+=e,t+="\r\n"}),t}function tE(e,t,n){e:{for(r in n){var r=!1;break e}r=!0}r||(n=tS(n),"string"==typeof e?null!=n&&eR(n):e7(e,t,n))}function tA(e){es.call(this),this.headers=new Map,this.L=e||null,this.h=!1,this.g=null,this.D="",this.o=0,this.l="",this.j=this.B=this.v=this.A=!1,this.m=null,this.F="",this.H=!1}(t=th.prototype).add=function(e,t){tl(this),this.i=null,e=tg(this,e);let n=this.g.get(e);return n||this.g.set(e,n=[]),n.push(t),this.h+=1,this},t.forEach=function(e,t){tl(this),this.g.forEach(function(n,r){n.forEac
1h(function(n){e.call(t,n,r,this)},this)},this)},t.set=function(e,t){return tl(this),this.i=null,tc(this,e=tg(this,e))&&(this.h-=this.g.get(e).length),this.g.set(e,[t]),this.h+=1,this},t.get=function(e,t){return e&&(e=tf(this,e)).length>0?String(e[0]):t},t.toString=function(){if(this.i)return this.i;if(!this.g)return"";let e=[],t=Array.from(this.g.keys());for(let r=0;r<t.length;r++){var n=t[r];let i=eR(n);n=tf(this,n);for(let t=0;t<n.length;t++){let r=i;""!==n[t]&&(r+="="+eR(n[t])),e.push(r)}}return this.i=e.join("&")},w(tb,eg),tb.prototype.g=function(){return new tv(this.i,this.h)},w(tv,es),(t=tv.prototype).open=function(e,t){if(0!=this.readyState)throw this.abort(),Error("Error reopening a connection");this.F=e,this.D=t,this.readyState=1,tI(this)},t.send=function(e){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");if(this.v.signal.aborted)throw this.abort(),Error("Request was aborted.");this.g=!0;let t={headers:this.A,method:this.F,credentials:this.m,cache:void 0,signal:this.v.signal};e&&(t.body=e),(this.H||y).fetch(new Request(this.D,t)).then(this.Pa.bind(this),this.ga.bind(this))},t.abort=function(){this.response=this.responseText="",this.A=new Headers,this.status=0,this.v.abort(),this.j&&this.j.cancel("Request was aborted.").catch(()=>{}),this.readyState>=1&&this.g&&4!=this.readyState&&(this.g=!1,tw(this)),this.readyState=0},t.Pa=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,tI(this)),this.g&&(this.readyState=3,tI(this),this.g)))if("arraybuffer"===this.responseType)e.arrayBuffer().then(this.Na.bind(this),this.ga.bind(this));else if(void 0!==y.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.B=new TextDecoder;t_(this)}else e.text().then(this.Oa.bind(this),this.ga.bind(this))},t.Ma=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.B.decode(t,{stream:!e.done}))&&(this.response=this.responseText+=t)}e.done?tw(this):tI(this),3==this.readyState&&t_(this)}},t.Oa=function(e){this.g&&(this.response=this.responseText=e,tw(this))},t.Na=function(e){this.g&&(this.response=e,tw(this))},t.ga=function(){this.g&&tw(this)},t.setRequestHeader=function(e,t){this.A.append(e,t)},t.getResponseHeader=function(e){return this.h&&this.h.get(e.toLowerCase())||""},t.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(tv.prototype,"withCredentials",{get:function(){return"include"===this.m},set:function(e){this.m=e?"include":"same-origin"}}),w(tA,es);var tC=/^https?$/i,tD=["POST","PUT"];function tT(e,t){e.h=!1,e.g&&(e.j=!0,e.g.abort(),e.j=!1),e.l=t,e.o=5,tx(e),tN(e)}function tx(e){e.A||(e.A=!0,eo(e,"complete"),eo(e,"error"))}function tO(e){if(e.h&&void 0!==g){if(e.v&&4==tk(e))setTimeout(e.Ca.bind(e),0);else if(eo(e,"readystatechange"),4==tk(e)){e.h=!1;try{let s=e.ca();switch(s){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===s){let t=String(e.D).match(e2)[1]||null;!t&&y.self&&y.self.location&&(t=y.self.location.protocol.slice(0,-1)),n=!tC.test(t?t.toLowerCase():"")}t=n}if(t)eo(e,"complete"),eo(e,"success");else{e.o=6;try{var i=tk(e)>2?e.g.statusText:""}catch(e){i=""}e.l=i+" ["+e.ca()+"]",tx(e)}}finally{tN(e)}}}}function tN(e,t){if(e.g){e.m&&(clearTimeout(e.m),e.m=null);let n=e.g;e.g=null,t||eo(e,"ready");try{n.onreadystatechange=null}catch(e){}}}function tk(e){return e.g?e.g.readyState:0}function tM(e){try{if(!e.g)return null;if("response"in e.g)return e.g.response;switch(e.F){case"":case"text":return e.g.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in e.g)return e.g.mozResponseArrayBuffer}return null}catch(e){return null}}
1function tR(e,t,n){return n&&n.internalChannelParams&&n.internalChannelParams[e]||t}function tP(e){this.za=0,this.i=[],this.j=new ex,this.ba=this.na=this.J=this.W=this.g=this.wa=this.G=this.H=this.u=this.U=this.o=null,this.Ya=this.V=0,this.Sa=tR("failFast",!1,e),this.F=this.C=this.v=this.m=this.l=null,this.X=!0,this.xa=this.K=-1,this.Y=this.A=this.D=0,this.Qa=tR("baseRetryDelayMs",5e3,e),this.Za=tR("retryDelaySeedMs",1e4,e),this.Ta=tR("forwardChannelMaxRetries",2,e),this.va=tR("forwardChannelRequestTimeoutMs",2e4,e),this.ma=e&&e.xmlHttpFactory||void 0,this.Ua=e&&e.Rb||void 0,this.Aa=e&&e.useFetchStreams||!1,this.O=void 0,this.L=e&&e.supportsCrossDomainXhr||!1,this.M="",this.h=new eK(e&&e.concurrentRequestLimit),this.Ba=new tm,this.S=e&&e.fastHandshake||!1,this.R=e&&e.encodeInitMessageHeaders||!1,this.S&&this.R&&(this.R=!1),this.Ra=e&&e.Pb||!1,e&&e.ua&&this.j.ua(),e&&e.forceLongPolling&&(this.X=!1),this.aa=!this.S&&this.X&&e&&e.detectBufferingProxy||!1,this.ia=void 0,e&&e.longPollingTimeout&&e.longPollingTimeout>0&&(this.ia=e.longPollingTimeout),this.ta=void 0,this.T=0,this.P=!1,this.ja=this.B=null}function tj(e){if(tF(e),3==e.I){var t=e.V++,n=e3(e.J);if(e7(n,"SID",e.M),e7(n,"RID",t),e7(n,"TYPE","terminate"),tq(e,n),(t=new eP(e,e.j,t)).M=2,t.A=e9(e3(n)),n=!1,y.navigator&&y.navigator.sendBeacon)try{n=y.navigator.sendBeacon(t.A.toString(),"")}catch(e){}!n&&y.Image&&((new Image).src=t.A,n=!0),n||(t.g=tZ(t.j,null),t.g.ea(t.A)),t.F=Date.now(),eH(t)}tQ(e)}function tL(e){e.g&&(tz(e),e.g.cancel(),e.g=null)}function tF(e){tL(e),e.v&&(y.clearTimeout(e.v),e.v=null),tG(e),e.h.cancel(),e.m&&("number"==typeof e.m&&y.clearTimeout(e.m),e.m=null)}function tB(e){if(!eX(e.h)&&!e.m){e.m=!0;var t=e.Ea;x||k(),O||(x(),O=!0),N.add(t,e),e.D=0}}function tU(e,t){var n;n=t?t.l:e.V++;let r=e3(e.J);e7(r,"SID",e.M),e7(r,"RID",n),e7(r,"AID",e.K),tq(e,r),e.u&&e.o&&tE(r,e.u,e.o),n=new eP(e,e.j,n,e.D+1),null===e.u&&(n.J=e.o),t&&(e.i=t.G.concat(e.i)),t=tH(e,n,1e3),n.H=Math.round(.5*e.va)+Math.round(.5*e.va*Math.random()),eZ(e.h,n),eB(n,r,t)}function tq(e,t){e.H&&V(e.H,function(e,n){e7(t,n,e)}),e.l&&V({},function(e,n){e7(t,n,e)})}function tH(e,t,n){n=Math.min(e.i.length,n);let r=e.l?v(e.l.Ka,e.l,e):null;e:{var i=e.i;let t=-1;for(;;){let e=["count="+n];-1==t?n>0?(t=i[0].g,e.push("ofs="+t)):t=0:e.push("ofs="+t);let a=!0;for(let h=0;h<n;h++){var s=i[h].g;let n=i[h].map;if((s-=t)<0)t=Math.max(0,i[h].g-100),a=!1;else try{s="req"+s+"_";try{var o=n instanceof Map?n:Object.entries(n);for(let[t,n]of o){let r=n;m(n)&&(r=ef(n)),e.push(s+t+"="+encodeURIComponent(r))}}catch(t){throw e.push(s+"type="+encodeURIComponent("_badmap")),t}}catch(e){r&&r(n)}}if(a){o=e.join("&");break e}}o=void 0}return t.G=e=e.i.splice(0,n),o}function tV(e){if(!e.g&&!e.v){e.Y=1;var t=e.Da;x||k(),O||(x(),O=!0),N.add(t,e),e.A=0}}function tW(e){return!e.g&&!e.v&&!(e.A>=3)&&(e.Y++,e.v=eT(v(e.Da,e),tK(e,e.A)),e.A++,!0)}function tz(e){null!=e.B&&(y.clearTimeout(e.B),e.B=null)}function t$(e){e.g=new eP(e,e.j,"rpc",e.Y),null===e.u&&(e.g.J=e.o),e.g.P=0;var t=e3(e.na);e7(t,"RID","rpc"),e7(t,"SID",e.M),e7(t,"AID",e.K),e7(t,"CI",e.F?"0":"1"),!e.F&&e.ia&&e7(t,"TO",e.ia),e7(t,"TYPE","xmlhttp"),tq(e,t),e.u&&e.o&&tE(t,e.u,e.o),e.O&&(e.g.H=e.O);var n=e.g;e=e.ba,n.M=1,n.A=e9(e3(t)),n.u=null,n.R=!0,eU(n,e)}function tG(e){null!=e.C&&(y.clearTimeout(e.C),e.C=null)}function tJ(e,t){var n,r=null;if(e.g==t){tG(e),tz(e),e.g=null;var i=2}else{if(!eY(e.h,t))return;r=t.G,e0(e.h,t),i=1}if(0!=e.I){if(t.o)if(1==i){r=t.u?t.u.length:0,t=Date.now()-t.F;var s=e.D;eo(i=eI(),new eD(i,r)),tB(e)}else tV(e);else if(3==(s=t.m)||0==s&&t.X>0||!(1==i&&(n=t,!(eQ(e.h)>=e.h.j-!!e.m)&&(e.m?(e.i=n.G.concat(e.i),!0):1!=e.I&&2!=e.I&&!(e.D>=(e.Sa?0:e.Ta))&&(e.m=eT(v(e.Ea,e,n),tK(e,e.D)),e.D++,!0)))||2==i&&tW(e)))switch(r&&r.length>0&&((t=e.h).i=t.i.concat(r)),s){case 1:tX(e,5);break;case 4:tX(e,10);break;case 3:tX(e,6);break;default:tX(e,2)}}}function tK(e,t){let n=e.Qa+Math.floor(Math.random()*e.Za);return e.isActive()||(n*=2),n*t}function tX(e,t){if(e.j.info("Error code "+t),2==t){var n=v(e.bb,e),r=e.Ua;let t=!r;r=new e6(r||"//www.google.com/images/cleardot.gif"),y.location&&"http"==y.location.protocol||e5(r,"https"),e9(r),t?function(e,t){let n=new ex;if(y.Image){let r=new Image;r.onload=_(ty,n,"TestLoadImage: loaded",!0,t,r),r.onerror=_(ty,n,"TestLoadImage: error",!1,t,r),r.onabort=_(ty,n,"TestLoadImage: abort",!1,t,r),r.ontimeout=_(ty,n,"TestLoadImage: timeout",!1,t,r),y.setTimeout(function(){r.ontimeout&&r.ontimeout()},1e4),r.src=e}else t(!1)}(r.toString(),n):function(e,t){let n=new ex,r=new AbortController,i=setTimeout(()=>{r.abort(),ty(n,"TestPingServer: timeout",!1,t)},1e4);fetch(e,{signal:r.signal}).then(e=>{clearTimeout(i),e.ok?ty(n,"TestPingServer: ok",!0,t):ty(n,"TestPingServer: server error",!1,t)}).catch(()=>{clearTimeout(i),ty(n,"TestPingServer: error",!1,t)})}(r.toString(),n)}else eC(2);e.I=0,e.l&&e.l.pa(t),tQ(e),tF(e)}function tQ(e){if(e.I=0,e.ja=[],e.l){let t=e1(e.h);(0!=t.length||0!=e.i.length)&&(E(e.ja,t),E(e.ja,e.i),e.h.i.length=0,S(e.i),e.i.length=0),e.l.oa()}}function tY(e,t,n){var r=n instanceof e6?e3(n):new e6(n);if(""!=r.g)t&&(r.g=t+"."+r.g),e4(r,r.u);else{var i=y.location;r=i.protocol,t=t?t+"."+i.hostname:i.hostname,i=+i.port;let e=new e6(null);r&&e5(e,r),t&&(e.g=t),i&&e4(e,i),n&&(e.h=n),r=e}return n=e.G,t=e.wa,n&&t&&e7(r,n,t),e7(r,"VER",e.ka),tq(e,r),r}function tZ(e,t,n){if(t&&!e.L)throw Error("Can't create secondary domain capable XhrIo object.");return(t=new tA(e.Aa&&!e.ma?new tb({ab:n}):e.ma)).Fa(e.L),t}function t0(){}function t1(){}function t2(e,t){es.call(this),this.g=new tP(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.sa&&(e?e["X-WebChannel-Client-Profile"]=t.sa:e={"X-WebChannel-Client-Profile":t.sa}),this.g.U=e,(e=t&&t.Qb)&&!L(e)&&(this.g.u=e),this.A=t&&t.supportsCrossDomainXhr||!1,this.v=t&&t.sendRawJson||!1,(t=t&&t.httpSessionIdParam)&&!L(t)&&(this.g.G=t,null!==(e=this.h)&&t in e&&t in(e=this.h)&&delete e[t]),this.j=new t5(this)}function t6(e){eb.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 t3(){ev.call(this),this.status=1}function t5(e){this.g=e}(t=tA.prototype).Fa=function(e){this.H=e},t.ea=function(t,n,r,i){if(this.g)throw Error("[goog.net.XhrIo] Object is active with another request="+this.D+"; newUri="+t);n=n?n.toUpperCase():"GET",this.D=t,this.l="",this.o=0,this.A=!1,this.h=!0,this.g=this.L?this.L.g():e.g(),this.g.onreadystatechange=I(v(this.Ca,this));try{this.B=!0,this.g.open(n,String(t),!0),this.B=!1}catch(e){tT(this,e);return}if(t=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));
1for(let[e,o]of(i=Array.from(r.keys()).find(e=>"content-type"==e.toLowerCase()),s=y.FormData&&t instanceof y.FormData,!(Array.prototype.indexOf.call(tD,n,void 0)>=0)||i||s||r.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8"),r))this.g.setRequestHeader(e,o);this.F&&(this.g.responseType=this.F),"withCredentials"in this.g&&this.g.withCredentials!==this.H&&(this.g.withCredentials=this.H);try{this.m&&(clearTimeout(this.m),this.m=null),this.v=!0,this.g.send(t),this.v=!1}catch(e){tT(this,e)}},t.abort=function(e){this.g&&this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1,this.o=e||7,eo(this,"complete"),eo(this,"abort"),tN(this))},t.N=function(){this.g&&(this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1),tN(this,!0)),tA.Z.N.call(this)},t.Ca=function(){this.u||(this.B||this.v||this.j?tO(this):this.Xa())},t.Xa=function(){tO(this)},t.isActive=function(){return!!this.g},t.ca=function(){try{return tk(this)>2?this.g.status:-1}catch(e){return -1}},t.la=function(){try{return this.g?this.g.responseText:""}catch(e){return""}},t.La=function(e){if(this.g){var t=this.g.responseText;return e&&0==t.indexOf(e)&&(t=t.substring(e.length)),ed(t)}},t.ya=function(){return this.o},t.Ha=function(){return"string"==typeof this.l?this.l:String(this.l)},(t=tP.prototype).ka=8,t.I=1,t.connect=function(e,t,n,r){eC(0),this.W=e,this.H=t||{},n&&void 0!==r&&(this.H.OSID=n,this.H.OAID=r),this.F=this.X,this.J=tY(this,null,this.W),tB(this)},t.Ea=function(e){if(this.m)if(this.m=null,1==this.I){if(!e){this.V=Math.floor(1e5*Math.random()),e=this.V++;let i=new eP(this,this.j,e),s=this.o;if(this.U&&(s?$(s=W(s),this.U):s=this.U),null!==this.u||this.R||(i.J=s,s=null),this.S)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((t+=r)>4096){t=n;break e}if(4096===t||n===this.i.length-1){t=n+1;break e}}t=1e3}else t=1e3;t=tH(this,i,t),e7(n=e3(this.J),"RID",e),e7(n,"CVER",22),this.G&&e7(n,"X-HTTP-Session-Id",this.G),tq(this,n),s&&(this.R?t="headers="+eR(tS(s))+"&"+t:this.u&&tE(n,this.u,s)),eZ(this.h,i),this.Ra&&e7(n,"TYPE","init"),this.S?(e7(n,"$req",t),e7(n,"SID","null"),i.U=!0,eB(i,n,null)):eB(i,n,t),this.I=2}}else 3==this.I&&(e?tU(this,e):0==this.i.length||eX(this.h)||tU(this))},t.Da=function(){if(this.v=null,t$(this),this.aa&&!(this.P||null==this.g||this.T<=0)){var e=4*this.T;this.j.info("BP detection timer enabled: "+e),this.B=eT(v(this.Wa,this),e)}},t.Wa=function(){this.B&&(this.B=null,this.j.info("BP detection timeout reached."),this.j.info("Buffering proxy detected and switch to long-polling!"),this.F=!1,this.P=!0,eC(10),tL(this),t$(this))},t.Va=function(){null!=this.C&&(this.C=null,tL(this),tW(this),eC(19))},t.bb=function(e){e?(this.j.info("Successfully pinged google.com"),eC(2)):(this.j.info("Failed to ping google.com"),eC(1))},t.isActive=function(){return!!this.l&&this.l.isActive(this)},(t=t0.prototype).ra=function(){},t.qa=function(){},t.pa=function(){},t.oa=function(){},t.isActive=function(){return!0},t.Ka=function(){},t1.prototype.g=function(e,t){return new t2(e,t)},w(t2,es),t2.prototype.m=function(){this.g.l=this.j,this.A&&(this.g.L=!0),this.g.connect(this.l,this.h||void 0)},t2.prototype.close=function(){tj(this.g)},t2.prototype.o=function(e){var t=this.g;if("string"==typeof e){var n={};n.__data__=e,e=n}else this.v&&((n={}).__data__=ef(e),e=n);t.i.push(new eJ(t.Ya++,e)),3==t.I&&tB(t)},t2.prototype.N=function(){this.g.l=null,delete this.j,tj(this.g),delete this.g,t2.Z.N.call(this)},w(t6,eb),w(t3,ev),w(t5,t0),t5.prototype.ra=function(){eo(this.g,"a")},t5.prototype.qa=function(e){eo(this.g,new t6(e))},t5.prototype.pa=function(e){eo(this.g,new t3)},t5.prototype.oa=function(){eo(this.g,"b")},t1.prototype.createWebChannel=t1.prototype.g,t2.prototype.send=t2.prototype.o,t2.prototype.open=t2.prototype.m,t2.prototype.close=t2.prototype.close,u=f.createWebChannelTransport=function(){return new t1},l=f.getStatEventTarget=function(){return eI()},h=f.Event=e_,a=f.Stat={jb:0,mb:1,nb:2,Hb:3,Mb:4,Jb:5,Kb:6,Ib:7,Gb:8,Lb:9,PROXY:10,NOPROXY:11,Eb:12,Ab:13,Bb:14,zb:15,Cb:16,Db:17,fb:18,eb:19,gb:20},eN.NO_ERROR=0,eN.TIMEOUT=8,eN.HTTP_ERROR=6,o=f.ErrorCode=eN,ek.COMPLETE="complete",s=f.EventType=ek,ey.EventType=em,em.OPEN="a",em.CLOSE="b",em.ERROR="c",em.MESSAGE="d",es.prototype.listen=es.prototype.J,i=f.WebChannel=ey,f.FetchXmlHttpFactory=tb,tA.prototype.listenOnce=tA.prototype.K,tA.prototype.getLastError=tA.prototype.Ha,tA.prototype.getLastErrorCode=tA.prototype.ya,tA.prototype.getStatus=tA.prototype.ca,tA.prototype.getResponseJson=tA.prototype.La,tA.prototype.getResponseText=tA.prototype.la,tA.prototype.send=tA.prototype.ea,tA.prototype.setWithCredentials=tA.prototype.Fa,r=f.XhrIo=tA}).apply(void 0!==c?c:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},81055:(e,t,n)=>{let r,i;n.d(t,{MF:()=>F,j6:()=>k,xZ:()=>R,om:()=>N,Us:()=>M,Sx:()=>U,Wp:()=>B,KO:()=>H});
1var s=n(32881),o=n(26702),a=n(21280);let h=(e,t)=>t.some(t=>e instanceof t),l=new WeakMap,u=new WeakMap,c=new WeakMap,f=new WeakMap,d=new WeakMap,p={get(e,t,n){if(e instanceof IDBTransaction){if("done"===t)return u.get(e);if("objectStoreNames"===t)return e.objectStoreNames||c.get(e);if("store"===t)return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return g(e[t])},set:(e,t,n)=>(e[t]=n,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function g(e){if(e instanceof IDBRequest){let t=new Promise((t,n)=>{let r=()=>{e.removeEventListener("success",i),e.removeEventListener("error",s)},i=()=>{t(g(e.result)),r()},s=()=>{n(e.error),r()};e.addEventListener("success",i),e.addEventListener("error",s)});return t.then(t=>{t instanceof IDBCursor&&l.set(t,e)}).catch(()=>{}),d.set(t,e),t}if(f.has(e))return f.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(y(this),t),g(l.get(this))}:function(...t){return g(e.apply(y(this),t))}:function(t,...n){let r=e.call(y(this),t,...n);return c.set(r,t.sort?t.sort():[t]),g(r)};return(e instanceof IDBTransaction&&function(e){if(u.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)});u.set(e,t)}(e),h(e,r||(r=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])))?new Proxy(e,p):e}(e);return t!==e&&(f.set(e,t),d.set(t,e)),t}let y=e=>d.get(e),m=["get","getKey","getAll","getAllKeys","count"],b=["put","add","delete","clear"],v=new Map;function _(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&"string"==typeof t))return;if(v.get(t))return v.get(t);let n=t.replace(/FromIndex$/,""),r=t!==n,i=b.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!(i||m.includes(n)))return;let s=async function(e,...t){let s=this.transaction(e,i?"readwrite":"readonly"),o=s.store;return r&&(o=o.index(t.shift())),(await Promise.all([o[n](...t),i&&s.done]))[0]};return v.set(t,s),s}p=(e=>({...e,get:(t,n,r)=>_(t,n)||e.get(t,n,r),has:(t,n)=>!!_(t,n)||e.has(t,n)}))(p);class w{constructor(e){this.container=e}getPlatformInfoString(){return this.container.getProviders().map(e=>{if(!function(e){let t=e.getComponent();return t?.type==="VERSION"}(e))return null;{let t=e.getImmediate();return`${t.library}/${t.version}`}}).filter(e=>e).join(" ")}}let I="@firebase/app",S="0.14.10",E=new o.Vy("@firebase/app"),A="[DEFAULT]",C={[I]:"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"},D=new Map,T=new Map,x=new Map;function O(e,t){try{e.container.addComponent(t)}catch(n){E.debug(`Component ${t.name} failed to register with FirebaseApp ${e.name}`,n)}}function N(e){let t=e.name;if(x.has(t))return E.debug(`There were multiple attempts to register component ${t}.`),!1;
1for(let n of(x.set(t,e),D.values()))O(n,e);for(let t of T.values())O(t,e);return!0}function k(e,t){let n=e.container.getProvider("heartbeat").getImmediate({optional:!0});return n&&n.triggerHeartbeat(),e.container.getProvider(t)}function M(e,t,n=A){k(e,t).clearInstance(n)}function R(e){return null!=e&&void 0!==e.settings}let P=new a.FA("app","Firebase",{"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}'","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","server-app-deleted":"Firebase Server App has been deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invalid-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.","finalization-registry-not-supported":"FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.","invalid-server-app-environment":"FirebaseServerApp is not for use in browser environments."});class j{constructor(e,t,n){this._isDeleted=!1,this._options={...e},this._config={...t},this._name=t.name,this._automaticDataCollectionEnabled=t.automaticDataCollectionEnabled,this._container=n,this.container.addComponent(new s.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 P.create("app-deleted",{appName:this._name})}}function L(e,t){let n=(0,a.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.`)}let F="12.11.0";function B(e,t={}){let n=e;"object"!=typeof t&&(t={name:t});let r={name:A,automaticDataCollectionEnabled:!0,...t},i=r.name;if("string"!=typeof i||!i)throw P.create("bad-app-name",{appName:String(i)});if(n||(n=(0,a.T9)()),!n)throw P.create("no-options");let o=D.get(i);if(o)if((0,a.bD)(n,o.options)&&(0,a.bD)(r,o.config))return o;else throw P.create("duplicate-app",{appName:i});let h=new s.h1(i);for(let e of x.values())h.addComponent(e);let l=new j(n,r,h);return D.set(i,l),l}function U(e=A){let t=D.get(e);if(!t&&e===A&&(0,a.T9)())return B();if(!t)throw P.create("no-app",{appName:e});return t}async function q(e){let t=!1,n=e.name;D.has(n)?(t=!0,D.delete(n)):T.has(n)&&0>=e.decRefCount()&&(T.delete(n),t=!0),t&&(await Promise.all(e.container.getProviders().map(e=>e.delete())),e.isDeleted=!0)}function H(e,t,n){let r=C[e]??e;n&&(r+=`-${n}`);let i=r.match(/\s|\//),o=t.match(/\s|\//);if(i||o){let e=[`Unable to register library "${r}" with version "${t}":`];i&&e.push(`library name "${r}" contains illegal characters (whitespace or "/")`),i&&o&&e.push("and"),o&&e.push(`version name "${t}" contains illegal characters (whitespace or "/")`),E.warn(e.join(" "));return}N(new s.uA(`${r}-version`,()=>({library:r,version:t}),"VERSION"))}let V="firebase-heartbeat-store",W=null;function z(){return W||(W=(function(e,t,{blocked:n,upgrade:r,blocking:i,terminated:s}={}){let o=indexedDB.open(e,1),a=g(o);return r&&o.addEventListener("upgradeneeded",e=>{r(g(o.result),e.oldVersion,e.newVersion,g(o.transaction),e)}),n&&o.addEventListener("blocked",e=>n(e.oldVersion,e.newVersion,e)),a.then(e=>{s&&e.addEventListener("close",()=>s()),i&&e.addEventListener("versionchange",e=>i(e.oldVersion,e.newVersion,e))}).catch(()=>{}),a})("firebase-heartbeat-database",0,{upgrade:(e,t)=>{if(0===t)try{e.createObjectStore(V)}catch(e){console.warn(e)}}}).catch(e=>{throw P.create("idb-open",{originalErrorMessage:e.message})})),W}async function $(e){try{let t=(await z()).transaction(V),n=await t.objectStore(V).get(J(e));return await t.done,n}catch(e){if(e instanceof a.g)E.warn(e.message);else{let t=P.create("idb-get",{originalErrorMessage:e?.message});E.warn(t.message)}}}async function G(e,t){try{let n=(await z()).transaction(V,"readwrite"),r=n.objectStore(V);await r.put(t,J(e)),await n.done}catch(e){if(e instanceof a.g)E.warn(e.message);else{let t=P.create("idb-set",{originalErrorMessage:e?.message});E.warn(t.message)}}}function J(e){return`${e.name}!${e.options.appId}`}class K{constructor(e){this.container=e,this._heartbeatsCache=null;let t=this.container.getProvider("app").getImmediate();this._storage=new Q(t),this._heartbeatsCachePromise=this._storage.read().then(e=>(this._heartbeatsCache=e,e))}async triggerHeartbeat(){try{let e=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),t=X();if(this._heartbeatsCache?.heartbeats==null&&(this._heartbeatsCache=await this._heartbeatsCachePromise,this._heartbeatsCache?.heartbeats==null)||this._heartbeatsCache.lastSentHeartbeatDate===t||this._heartbeatsCache.heartbeats.some(e=>e.date===t))return;if(this._heartbeatsCache.heartbeats.push({date:t,agent:e}),this._heartbeatsCache.heartbeats.length>30){let e=function(e){if(0===e.length)return -1;let t=0,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){E.warn(e)}}async getHeartbeatsHeader(){try{if(null===this._heartbeatsCache&&await this._heartbeatsCachePromise,this._heartbeatsCache?.heartbeats==null||0===this._heartbeatsCache.heartbeats.length)return"";let e=X(),{heartbeatsToSend:t,unsentEntries:n}=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),Y(n)>t){e.dates.pop();break}}else if(n.push({agent:i.agent,dates:[i.date]}),Y(n)>t){n.pop();break}r=r.slice(1)}return{heartbeatsToSend:n,unsentEntries:r}}(this._heartbeatsCache.heartbeats),r=(0,a.Uj)(JSON.stringify({version:2,heartbeats:t}));return this._heartbeatsCache.lastSentHeartbeatDate=e,n.length>0?(this._heartbeatsCache.heartbeats=n,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),r}catch(e){return E.warn(e),""}}}function X(){return new Date().toISOString().substring(0,10)}class Q{constructor(e){this.app=e,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return!!(0,a.zW)()&&(0,a.eX)().then(()=>!0).catch(()=>!1)}async read(){if(!await this._canUseIndexedDBPromise)return{heartbeats:[]};{let e=await $(this.app);return e?.heartbeats?e:{heartbeats:[]}}}async overwrite(e){if(await this._canUseIndexedDBPromise){let t=await this.read();return G(this.app,{lastSentHeartbeatDate:e.lastSentHeartbeatDate??t.lastSentHeartbeatDate,heartbeats:e.heartbeats})}}async add(e){if(await this._canUseIndexedDBPromise){let t=await this.read();return G(this.app,{lastSentHeartbeatDate:e.lastSentHeartbeatDate??t.lastSentHeartbeatDate,heartbeats:[...t.heartbeats,...e.heartbeats]})}}}function Y(e){return(0,a.Uj)(JSON.stringify({version:2,heartbeats:e})).length}N(new s.uA("platform-logger",e=>new w(e),"PRIVATE")),N(new s.uA("heartbeat",e=>new K(e),"PRIVATE")),H(I,S,""),H(I,S,"esm2020"),H("fire-js","")}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.