{"version":3,"file":"index.node.mjs","sources":["index.node.mjs"],"sourcesContent":["import { _getProvider, getApp, _removeServiceInstance, _registerComponent, registerVersion, SDK_VERSION as SDK_VERSION$1 } from '@firebase/app';\nimport { Component } from '@firebase/component';\nimport { Logger, LogLevel } from '@firebase/logger';\nimport { inspect } from 'util';\nimport { FirebaseError, getDefaultEmulatorHostnameAndPort, createMockUserToken, getModularInstance, deepEqual } from '@firebase/util';\nimport nodeFetch from 'node-fetch';\nimport { randomBytes as randomBytes$1 } from 'crypto';\n\nconst version$1 = \"3.8.1\";\n\n/**\r\n * @license\r\n * Copyright 2017 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/**\r\n * Simple wrapper around a nullable UID. Mostly exists to make code more\r\n * readable.\r\n */\r\nclass User {\r\n constructor(uid) {\r\n this.uid = uid;\r\n }\r\n isAuthenticated() {\r\n return this.uid != null;\r\n }\r\n /**\r\n * Returns a key representing this user, suitable for inclusion in a\r\n * dictionary.\r\n */\r\n toKey() {\r\n if (this.isAuthenticated()) {\r\n return 'uid:' + this.uid;\r\n }\r\n else {\r\n return 'anonymous-user';\r\n }\r\n }\r\n isEqual(otherUser) {\r\n return otherUser.uid === this.uid;\r\n }\r\n}\r\n/** A user with a null UID. */\r\nUser.UNAUTHENTICATED = new User(null);\r\n// TODO(mikelehen): Look into getting a proper uid-equivalent for\r\n// non-FirebaseAuth providers.\r\nUser.GOOGLE_CREDENTIALS = new User('google-credentials-uid');\r\nUser.FIRST_PARTY = new User('first-party-uid');\r\nUser.MOCK_USER = new User('mock-user');\n\nconst version = \"9.16.0\";\n\n/**\r\n * @license\r\n * Copyright 2017 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nlet SDK_VERSION = version;\r\nfunction setSDKVersion(version) {\r\n SDK_VERSION = version;\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/** Formats an object as a JSON string, suitable for logging. */\r\nfunction formatJSON(value) {\r\n // util.inspect() results in much more readable output than JSON.stringify()\r\n return inspect(value, { depth: 100 });\r\n}\n\n/**\r\n * @license\r\n * Copyright 2017 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nconst logClient = new Logger('@firebase/firestore');\r\n/**\r\n * Sets the verbosity of Cloud Firestore logs (debug, error, or silent).\r\n *\r\n * @param logLevel - The verbosity you set for activity and error logging. Can\r\n * be any of the following values:\r\n *\r\n * \r\n */\r\nfunction setLogLevel(logLevel) {\r\n logClient.setLogLevel(logLevel);\r\n}\r\nfunction logDebug(msg, ...obj) {\r\n if (logClient.logLevel <= LogLevel.DEBUG) {\r\n const args = obj.map(argToString);\r\n logClient.debug(`Firestore (${SDK_VERSION}): ${msg}`, ...args);\r\n }\r\n}\r\nfunction logError(msg, ...obj) {\r\n if (logClient.logLevel <= LogLevel.ERROR) {\r\n const args = obj.map(argToString);\r\n logClient.error(`Firestore (${SDK_VERSION}): ${msg}`, ...args);\r\n }\r\n}\r\n/**\r\n * @internal\r\n */\r\nfunction logWarn(msg, ...obj) {\r\n if (logClient.logLevel <= LogLevel.WARN) {\r\n const args = obj.map(argToString);\r\n logClient.warn(`Firestore (${SDK_VERSION}): ${msg}`, ...args);\r\n }\r\n}\r\n/**\r\n * Converts an additional log parameter to a string representation.\r\n */\r\nfunction argToString(obj) {\r\n if (typeof obj === 'string') {\r\n return obj;\r\n }\r\n else {\r\n try {\r\n return formatJSON(obj);\r\n }\r\n catch (e) {\r\n // Converting to JSON failed, just log the object directly\r\n return obj;\r\n }\r\n }\r\n}\n\n/**\r\n * @license\r\n * Copyright 2017 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/**\r\n * Unconditionally fails, throwing an Error with the given message.\r\n * Messages are stripped in production builds.\r\n *\r\n * Returns `never` and can be used in expressions:\r\n * @example\r\n * let futureVar = fail('not implemented yet');\r\n */\r\nfunction fail(failure = 'Unexpected state') {\r\n // Log the failure in addition to throw an exception, just in case the\r\n // exception is swallowed.\r\n const message = `FIRESTORE (${SDK_VERSION}) INTERNAL ASSERTION FAILED: ` + failure;\r\n logError(message);\r\n // NOTE: We don't use FirestoreError here because these are internal failures\r\n // that cannot be handled by the user. (Also it would create a circular\r\n // dependency between the error and assert modules which doesn't work.)\r\n throw new Error(message);\r\n}\r\n/**\r\n * Fails if the given assertion condition is false, throwing an Error with the\r\n * given message if it did.\r\n *\r\n * Messages are stripped in production builds.\r\n */\r\nfunction hardAssert(assertion, message) {\r\n if (!assertion) {\r\n fail();\r\n }\r\n}\r\n/**\r\n * Casts `obj` to `T`. In non-production builds, verifies that `obj` is an\r\n * instance of `T` before casting.\r\n */\r\nfunction debugCast(obj, \r\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\r\nconstructor) {\r\n return obj;\r\n}\n\n/**\r\n * @license\r\n * Copyright 2017 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nconst Code = {\r\n // Causes are copied from:\r\n // https://github.com/grpc/grpc/blob/bceec94ea4fc5f0085d81235d8e1c06798dc341a/include/grpc%2B%2B/impl/codegen/status_code_enum.h\r\n /** Not an error; returned on success. */\r\n OK: 'ok',\r\n /** The operation was cancelled (typically by the caller). */\r\n CANCELLED: 'cancelled',\r\n /** Unknown error or an error from a different error domain. */\r\n UNKNOWN: 'unknown',\r\n /**\r\n * Client specified an invalid argument. Note that this differs from\r\n * FAILED_PRECONDITION. INVALID_ARGUMENT indicates arguments that are\r\n * problematic regardless of the state of the system (e.g., a malformed file\r\n * name).\r\n */\r\n INVALID_ARGUMENT: 'invalid-argument',\r\n /**\r\n * Deadline expired before operation could complete. For operations that\r\n * change the state of the system, this error may be returned even if the\r\n * operation has completed successfully. For example, a successful response\r\n * from a server could have been delayed long enough for the deadline to\r\n * expire.\r\n */\r\n DEADLINE_EXCEEDED: 'deadline-exceeded',\r\n /** Some requested entity (e.g., file or directory) was not found. */\r\n NOT_FOUND: 'not-found',\r\n /**\r\n * Some entity that we attempted to create (e.g., file or directory) already\r\n * exists.\r\n */\r\n ALREADY_EXISTS: 'already-exists',\r\n /**\r\n * The caller does not have permission to execute the specified operation.\r\n * PERMISSION_DENIED must not be used for rejections caused by exhausting\r\n * some resource (use RESOURCE_EXHAUSTED instead for those errors).\r\n * PERMISSION_DENIED must not be used if the caller can not be identified\r\n * (use UNAUTHENTICATED instead for those errors).\r\n */\r\n PERMISSION_DENIED: 'permission-denied',\r\n /**\r\n * The request does not have valid authentication credentials for the\r\n * operation.\r\n */\r\n UNAUTHENTICATED: 'unauthenticated',\r\n /**\r\n * Some resource has been exhausted, perhaps a per-user quota, or perhaps the\r\n * entire file system is out of space.\r\n */\r\n RESOURCE_EXHAUSTED: 'resource-exhausted',\r\n /**\r\n * Operation was rejected because the system is not in a state required for\r\n * the operation's execution. For example, directory to be deleted may be\r\n * non-empty, an rmdir operation is applied to a non-directory, etc.\r\n *\r\n * A litmus test that may help a service implementor in deciding\r\n * between FAILED_PRECONDITION, ABORTED, and UNAVAILABLE:\r\n * (a) Use UNAVAILABLE if the client can retry just the failing call.\r\n * (b) Use ABORTED if the client should retry at a higher-level\r\n * (e.g., restarting a read-modify-write sequence).\r\n * (c) Use FAILED_PRECONDITION if the client should not retry until\r\n * the system state has been explicitly fixed. E.g., if an \"rmdir\"\r\n * fails because the directory is non-empty, FAILED_PRECONDITION\r\n * should be returned since the client should not retry unless\r\n * they have first fixed up the directory by deleting files from it.\r\n * (d) Use FAILED_PRECONDITION if the client performs conditional\r\n * REST Get/Update/Delete on a resource and the resource on the\r\n * server does not match the condition. E.g., conflicting\r\n * read-modify-write on the same resource.\r\n */\r\n FAILED_PRECONDITION: 'failed-precondition',\r\n /**\r\n * The operation was aborted, typically due to a concurrency issue like\r\n * sequencer check failures, transaction aborts, etc.\r\n *\r\n * See litmus test above for deciding between FAILED_PRECONDITION, ABORTED,\r\n * and UNAVAILABLE.\r\n */\r\n ABORTED: 'aborted',\r\n /**\r\n * Operation was attempted past the valid range. E.g., seeking or reading\r\n * past end of file.\r\n *\r\n * Unlike INVALID_ARGUMENT, this error indicates a problem that may be fixed\r\n * if the system state changes. For example, a 32-bit file system will\r\n * generate INVALID_ARGUMENT if asked to read at an offset that is not in the\r\n * range [0,2^32-1], but it will generate OUT_OF_RANGE if asked to read from\r\n * an offset past the current file size.\r\n *\r\n * There is a fair bit of overlap between FAILED_PRECONDITION and\r\n * OUT_OF_RANGE. We recommend using OUT_OF_RANGE (the more specific error)\r\n * when it applies so that callers who are iterating through a space can\r\n * easily look for an OUT_OF_RANGE error to detect when they are done.\r\n */\r\n OUT_OF_RANGE: 'out-of-range',\r\n /** Operation is not implemented or not supported/enabled in this service. */\r\n UNIMPLEMENTED: 'unimplemented',\r\n /**\r\n * Internal errors. Means some invariants expected by underlying System has\r\n * been broken. If you see one of these errors, Something is very broken.\r\n */\r\n INTERNAL: 'internal',\r\n /**\r\n * The service is currently unavailable. This is a most likely a transient\r\n * condition and may be corrected by retrying with a backoff.\r\n *\r\n * See litmus test above for deciding between FAILED_PRECONDITION, ABORTED,\r\n * and UNAVAILABLE.\r\n */\r\n UNAVAILABLE: 'unavailable',\r\n /** Unrecoverable data loss or corruption. */\r\n DATA_LOSS: 'data-loss'\r\n};\r\n/** An error returned by a Firestore operation. */\r\nclass FirestoreError extends FirebaseError {\r\n /** @hideconstructor */\r\n constructor(\r\n /**\r\n * The backend error code associated with this error.\r\n */\r\n code, \r\n /**\r\n * A custom error description.\r\n */\r\n message) {\r\n super(code, message);\r\n this.code = code;\r\n this.message = message;\r\n // HACK: We write a toString property directly because Error is not a real\r\n // class and so inheritance does not work correctly. We could alternatively\r\n // do the same \"back-door inheritance\" trick that FirebaseError does.\r\n this.toString = () => `${this.name}: [code=${this.code}]: ${this.message}`;\r\n }\r\n}\n\n/**\r\n * @license\r\n * Copyright 2017 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nclass Deferred {\r\n constructor() {\r\n this.promise = new Promise((resolve, reject) => {\r\n this.resolve = resolve;\r\n this.reject = reject;\r\n });\r\n }\r\n}\n\n/**\r\n * @license\r\n * Copyright 2017 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nclass OAuthToken {\r\n constructor(value, user) {\r\n this.user = user;\r\n this.type = 'OAuth';\r\n this.headers = new Map();\r\n this.headers.set('Authorization', `Bearer ${value}`);\r\n }\r\n}\r\n/**\r\n * A CredentialsProvider that always yields an empty token.\r\n * @internal\r\n */\r\nclass EmptyAuthCredentialsProvider {\r\n getToken() {\r\n return Promise.resolve(null);\r\n }\r\n invalidateToken() { }\r\n start(asyncQueue, changeListener) {\r\n // Fire with initial user.\r\n asyncQueue.enqueueRetryable(() => changeListener(User.UNAUTHENTICATED));\r\n }\r\n shutdown() { }\r\n}\r\n/**\r\n * A CredentialsProvider that always returns a constant token. Used for\r\n * emulator token mocking.\r\n */\r\nclass EmulatorAuthCredentialsProvider {\r\n constructor(token) {\r\n this.token = token;\r\n /**\r\n * Stores the listener registered with setChangeListener()\r\n * This isn't actually necessary since the UID never changes, but we use this\r\n * to verify the listen contract is adhered to in tests.\r\n */\r\n this.changeListener = null;\r\n }\r\n getToken() {\r\n return Promise.resolve(this.token);\r\n }\r\n invalidateToken() { }\r\n start(asyncQueue, changeListener) {\r\n this.changeListener = changeListener;\r\n // Fire with initial user.\r\n asyncQueue.enqueueRetryable(() => changeListener(this.token.user));\r\n }\r\n shutdown() {\r\n this.changeListener = null;\r\n }\r\n}\r\n/** Credential provider for the Lite SDK. */\r\nclass LiteAuthCredentialsProvider {\r\n constructor(authProvider) {\r\n this.auth = null;\r\n authProvider.onInit(auth => {\r\n this.auth = auth;\r\n });\r\n }\r\n getToken() {\r\n if (!this.auth) {\r\n return Promise.resolve(null);\r\n }\r\n return this.auth.getToken().then(tokenData => {\r\n if (tokenData) {\r\n hardAssert(typeof tokenData.accessToken === 'string');\r\n return new OAuthToken(tokenData.accessToken, new User(this.auth.getUid()));\r\n }\r\n else {\r\n return null;\r\n }\r\n });\r\n }\r\n invalidateToken() { }\r\n start(asyncQueue, changeListener) { }\r\n shutdown() { }\r\n}\r\n/*\r\n * FirstPartyToken provides a fresh token each time its value\r\n * is requested, because if the token is too old, requests will be rejected.\r\n * Technically this may no longer be necessary since the SDK should gracefully\r\n * recover from unauthenticated errors (see b/33147818 for context), but it's\r\n * safer to keep the implementation as-is.\r\n */\r\nclass FirstPartyToken {\r\n constructor(gapi, sessionIndex, iamToken, authTokenFactory) {\r\n this.gapi = gapi;\r\n this.sessionIndex = sessionIndex;\r\n this.iamToken = iamToken;\r\n this.authTokenFactory = authTokenFactory;\r\n this.type = 'FirstParty';\r\n this.user = User.FIRST_PARTY;\r\n this._headers = new Map();\r\n }\r\n /** Gets an authorization token, using a provided factory function, or falling back to First Party GAPI. */\r\n getAuthToken() {\r\n if (this.authTokenFactory) {\r\n return this.authTokenFactory();\r\n }\r\n else {\r\n // Make sure this really is a Gapi client.\r\n hardAssert(!!(typeof this.gapi === 'object' &&\r\n this.gapi !== null &&\r\n this.gapi['auth'] &&\r\n this.gapi['auth']['getAuthHeaderValueForFirstParty']));\r\n return this.gapi['auth']['getAuthHeaderValueForFirstParty']([]);\r\n }\r\n }\r\n get headers() {\r\n this._headers.set('X-Goog-AuthUser', this.sessionIndex);\r\n // Use array notation to prevent minification\r\n const authHeaderTokenValue = this.getAuthToken();\r\n if (authHeaderTokenValue) {\r\n this._headers.set('Authorization', authHeaderTokenValue);\r\n }\r\n if (this.iamToken) {\r\n this._headers.set('X-Goog-Iam-Authorization-Token', this.iamToken);\r\n }\r\n return this._headers;\r\n }\r\n}\r\n/*\r\n * Provides user credentials required for the Firestore JavaScript SDK\r\n * to authenticate the user, using technique that is only available\r\n * to applications hosted by Google.\r\n */\r\nclass FirstPartyAuthCredentialsProvider {\r\n constructor(gapi, sessionIndex, iamToken, authTokenFactory) {\r\n this.gapi = gapi;\r\n this.sessionIndex = sessionIndex;\r\n this.iamToken = iamToken;\r\n this.authTokenFactory = authTokenFactory;\r\n }\r\n getToken() {\r\n return Promise.resolve(new FirstPartyToken(this.gapi, this.sessionIndex, this.iamToken, this.authTokenFactory));\r\n }\r\n start(asyncQueue, changeListener) {\r\n // Fire with initial uid.\r\n asyncQueue.enqueueRetryable(() => changeListener(User.FIRST_PARTY));\r\n }\r\n shutdown() { }\r\n invalidateToken() { }\r\n}\r\nclass AppCheckToken {\r\n constructor(value) {\r\n this.value = value;\r\n this.type = 'AppCheck';\r\n this.headers = new Map();\r\n if (value && value.length > 0) {\r\n this.headers.set('x-firebase-appcheck', this.value);\r\n }\r\n }\r\n}\r\n/** AppCheck token provider for the Lite SDK. */\r\nclass LiteAppCheckTokenProvider {\r\n constructor(appCheckProvider) {\r\n this.appCheckProvider = appCheckProvider;\r\n this.appCheck = null;\r\n appCheckProvider.onInit(appCheck => {\r\n this.appCheck = appCheck;\r\n });\r\n }\r\n getToken() {\r\n if (!this.appCheck) {\r\n return Promise.resolve(null);\r\n }\r\n return this.appCheck.getToken().then(tokenResult => {\r\n if (tokenResult) {\r\n hardAssert(typeof tokenResult.token === 'string');\r\n return new AppCheckToken(tokenResult.token);\r\n }\r\n else {\r\n return null;\r\n }\r\n });\r\n }\r\n invalidateToken() { }\r\n start(asyncQueue, changeListener) { }\r\n shutdown() { }\r\n}\r\n/**\r\n * Builds a CredentialsProvider depending on the type of\r\n * the credentials passed in.\r\n */\r\nfunction makeAuthCredentialsProvider(credentials) {\r\n if (!credentials) {\r\n return new EmptyAuthCredentialsProvider();\r\n }\r\n switch (credentials['type']) {\r\n case 'gapi':\r\n const client = credentials['client'];\r\n return new FirstPartyAuthCredentialsProvider(client, credentials['sessionIndex'] || '0', credentials['iamToken'] || null, credentials['authTokenFactory'] || null);\r\n case 'provider':\r\n return credentials['client'];\r\n default:\r\n throw new FirestoreError(Code.INVALID_ARGUMENT, 'makeAuthCredentialsProvider failed due to invalid credential type');\r\n }\r\n}\n\n/**\r\n * @license\r\n * Copyright 2017 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nclass DatabaseInfo {\r\n /**\r\n * Constructs a DatabaseInfo using the provided host, databaseId and\r\n * persistenceKey.\r\n *\r\n * @param databaseId - The database to use.\r\n * @param appId - The Firebase App Id.\r\n * @param persistenceKey - A unique identifier for this Firestore's local\r\n * storage (used in conjunction with the databaseId).\r\n * @param host - The Firestore backend host to connect to.\r\n * @param ssl - Whether to use SSL when connecting.\r\n * @param forceLongPolling - Whether to use the forceLongPolling option\r\n * when using WebChannel as the network transport.\r\n * @param autoDetectLongPolling - Whether to use the detectBufferingProxy\r\n * option when using WebChannel as the network transport.\r\n * @param useFetchStreams Whether to use the Fetch API instead of\r\n * XMLHTTPRequest\r\n */\r\n constructor(databaseId, appId, persistenceKey, host, ssl, forceLongPolling, autoDetectLongPolling, useFetchStreams) {\r\n this.databaseId = databaseId;\r\n this.appId = appId;\r\n this.persistenceKey = persistenceKey;\r\n this.host = host;\r\n this.ssl = ssl;\r\n this.forceLongPolling = forceLongPolling;\r\n this.autoDetectLongPolling = autoDetectLongPolling;\r\n this.useFetchStreams = useFetchStreams;\r\n }\r\n}\r\n/** The default database name for a project. */\r\nconst DEFAULT_DATABASE_NAME = '(default)';\r\n/**\r\n * Represents the database ID a Firestore client is associated with.\r\n * @internal\r\n */\r\nclass DatabaseId {\r\n constructor(projectId, database) {\r\n this.projectId = projectId;\r\n this.database = database ? database : DEFAULT_DATABASE_NAME;\r\n }\r\n static empty() {\r\n return new DatabaseId('', '');\r\n }\r\n get isDefaultDatabase() {\r\n return this.database === DEFAULT_DATABASE_NAME;\r\n }\r\n isEqual(other) {\r\n return (other instanceof DatabaseId &&\r\n other.projectId === this.projectId &&\r\n other.database === this.database);\r\n }\r\n}\r\nfunction databaseIdFromApp(app, database) {\r\n if (!Object.prototype.hasOwnProperty.apply(app.options, ['projectId'])) {\r\n throw new FirestoreError(Code.INVALID_ARGUMENT, '\"projectId\" not provided in firebase.initializeApp.');\r\n }\r\n return new DatabaseId(app.options.projectId, database);\r\n}\n\n/**\r\n * @license\r\n * Copyright 2017 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nconst DOCUMENT_KEY_NAME = '__name__';\r\n/**\r\n * Path represents an ordered sequence of string segments.\r\n */\r\nclass BasePath {\r\n constructor(segments, offset, length) {\r\n if (offset === undefined) {\r\n offset = 0;\r\n }\r\n else if (offset > segments.length) {\r\n fail();\r\n }\r\n if (length === undefined) {\r\n length = segments.length - offset;\r\n }\r\n else if (length > segments.length - offset) {\r\n fail();\r\n }\r\n this.segments = segments;\r\n this.offset = offset;\r\n this.len = length;\r\n }\r\n get length() {\r\n return this.len;\r\n }\r\n isEqual(other) {\r\n return BasePath.comparator(this, other) === 0;\r\n }\r\n child(nameOrPath) {\r\n const segments = this.segments.slice(this.offset, this.limit());\r\n if (nameOrPath instanceof BasePath) {\r\n nameOrPath.forEach(segment => {\r\n segments.push(segment);\r\n });\r\n }\r\n else {\r\n segments.push(nameOrPath);\r\n }\r\n return this.construct(segments);\r\n }\r\n /** The index of one past the last segment of the path. */\r\n limit() {\r\n return this.offset + this.length;\r\n }\r\n popFirst(size) {\r\n size = size === undefined ? 1 : size;\r\n return this.construct(this.segments, this.offset + size, this.length - size);\r\n }\r\n popLast() {\r\n return this.construct(this.segments, this.offset, this.length - 1);\r\n }\r\n firstSegment() {\r\n return this.segments[this.offset];\r\n }\r\n lastSegment() {\r\n return this.get(this.length - 1);\r\n }\r\n get(index) {\r\n return this.segments[this.offset + index];\r\n }\r\n isEmpty() {\r\n return this.length === 0;\r\n }\r\n isPrefixOf(other) {\r\n if (other.length < this.length) {\r\n return false;\r\n }\r\n for (let i = 0; i < this.length; i++) {\r\n if (this.get(i) !== other.get(i)) {\r\n return false;\r\n }\r\n }\r\n return true;\r\n }\r\n isImmediateParentOf(potentialChild) {\r\n if (this.length + 1 !== potentialChild.length) {\r\n return false;\r\n }\r\n for (let i = 0; i < this.length; i++) {\r\n if (this.get(i) !== potentialChild.get(i)) {\r\n return false;\r\n }\r\n }\r\n return true;\r\n }\r\n forEach(fn) {\r\n for (let i = this.offset, end = this.limit(); i < end; i++) {\r\n fn(this.segments[i]);\r\n }\r\n }\r\n toArray() {\r\n return this.segments.slice(this.offset, this.limit());\r\n }\r\n static comparator(p1, p2) {\r\n const len = Math.min(p1.length, p2.length);\r\n for (let i = 0; i < len; i++) {\r\n const left = p1.get(i);\r\n const right = p2.get(i);\r\n if (left < right) {\r\n return -1;\r\n }\r\n if (left > right) {\r\n return 1;\r\n }\r\n }\r\n if (p1.length < p2.length) {\r\n return -1;\r\n }\r\n if (p1.length > p2.length) {\r\n return 1;\r\n }\r\n return 0;\r\n }\r\n}\r\n/**\r\n * A slash-separated path for navigating resources (documents and collections)\r\n * within Firestore.\r\n *\r\n * @internal\r\n */\r\nclass ResourcePath extends BasePath {\r\n construct(segments, offset, length) {\r\n return new ResourcePath(segments, offset, length);\r\n }\r\n canonicalString() {\r\n // NOTE: The client is ignorant of any path segments containing escape\r\n // sequences (e.g. __id123__) and just passes them through raw (they exist\r\n // for legacy reasons and should not be used frequently).\r\n return this.toArray().join('/');\r\n }\r\n toString() {\r\n return this.canonicalString();\r\n }\r\n /**\r\n * Creates a resource path from the given slash-delimited string. If multiple\r\n * arguments are provided, all components are combined. Leading and trailing\r\n * slashes from all components are ignored.\r\n */\r\n static fromString(...pathComponents) {\r\n // NOTE: The client is ignorant of any path segments containing escape\r\n // sequences (e.g. __id123__) and just passes them through raw (they exist\r\n // for legacy reasons and should not be used frequently).\r\n const segments = [];\r\n for (const path of pathComponents) {\r\n if (path.indexOf('//') >= 0) {\r\n throw new FirestoreError(Code.INVALID_ARGUMENT, `Invalid segment (${path}). Paths must not contain // in them.`);\r\n }\r\n // Strip leading and traling slashed.\r\n segments.push(...path.split('/').filter(segment => segment.length > 0));\r\n }\r\n return new ResourcePath(segments);\r\n }\r\n static emptyPath() {\r\n return new ResourcePath([]);\r\n }\r\n}\r\nconst identifierRegExp = /^[_a-zA-Z][_a-zA-Z0-9]*$/;\r\n/**\r\n * A dot-separated path for navigating sub-objects within a document.\r\n * @internal\r\n */\r\nclass FieldPath$1 extends BasePath {\r\n construct(segments, offset, length) {\r\n return new FieldPath$1(segments, offset, length);\r\n }\r\n /**\r\n * Returns true if the string could be used as a segment in a field path\r\n * without escaping.\r\n */\r\n static isValidIdentifier(segment) {\r\n return identifierRegExp.test(segment);\r\n }\r\n canonicalString() {\r\n return this.toArray()\r\n .map(str => {\r\n str = str.replace(/\\\\/g, '\\\\\\\\').replace(/`/g, '\\\\`');\r\n if (!FieldPath$1.isValidIdentifier(str)) {\r\n str = '`' + str + '`';\r\n }\r\n return str;\r\n })\r\n .join('.');\r\n }\r\n toString() {\r\n return this.canonicalString();\r\n }\r\n /**\r\n * Returns true if this field references the key of a document.\r\n */\r\n isKeyField() {\r\n return this.length === 1 && this.get(0) === DOCUMENT_KEY_NAME;\r\n }\r\n /**\r\n * The field designating the key of a document.\r\n */\r\n static keyField() {\r\n return new FieldPath$1([DOCUMENT_KEY_NAME]);\r\n }\r\n /**\r\n * Parses a field string from the given server-formatted string.\r\n *\r\n * - Splitting the empty string is not allowed (for now at least).\r\n * - Empty segments within the string (e.g. if there are two consecutive\r\n * separators) are not allowed.\r\n *\r\n * TODO(b/37244157): we should make this more strict. Right now, it allows\r\n * non-identifier path components, even if they aren't escaped.\r\n */\r\n static fromServerFormat(path) {\r\n const segments = [];\r\n let current = '';\r\n let i = 0;\r\n const addCurrentSegment = () => {\r\n if (current.length === 0) {\r\n throw new FirestoreError(Code.INVALID_ARGUMENT, `Invalid field path (${path}). Paths must not be empty, begin ` +\r\n `with '.', end with '.', or contain '..'`);\r\n }\r\n segments.push(current);\r\n current = '';\r\n };\r\n let inBackticks = false;\r\n while (i < path.length) {\r\n const c = path[i];\r\n if (c === '\\\\') {\r\n if (i + 1 === path.length) {\r\n throw new FirestoreError(Code.INVALID_ARGUMENT, 'Path has trailing escape character: ' + path);\r\n }\r\n const next = path[i + 1];\r\n if (!(next === '\\\\' || next === '.' || next === '`')) {\r\n throw new FirestoreError(Code.INVALID_ARGUMENT, 'Path has invalid escape sequence: ' + path);\r\n }\r\n current += next;\r\n i += 2;\r\n }\r\n else if (c === '`') {\r\n inBackticks = !inBackticks;\r\n i++;\r\n }\r\n else if (c === '.' && !inBackticks) {\r\n addCurrentSegment();\r\n i++;\r\n }\r\n else {\r\n current += c;\r\n i++;\r\n }\r\n }\r\n addCurrentSegment();\r\n if (inBackticks) {\r\n throw new FirestoreError(Code.INVALID_ARGUMENT, 'Unterminated ` in path: ' + path);\r\n }\r\n return new FieldPath$1(segments);\r\n }\r\n static emptyPath() {\r\n return new FieldPath$1([]);\r\n }\r\n}\n\n/**\r\n * @license\r\n * Copyright 2017 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/**\r\n * @internal\r\n */\r\nclass DocumentKey {\r\n constructor(path) {\r\n this.path = path;\r\n }\r\n static fromPath(path) {\r\n return new DocumentKey(ResourcePath.fromString(path));\r\n }\r\n static fromName(name) {\r\n return new DocumentKey(ResourcePath.fromString(name).popFirst(5));\r\n }\r\n static empty() {\r\n return new DocumentKey(ResourcePath.emptyPath());\r\n }\r\n get collectionGroup() {\r\n return this.path.popLast().lastSegment();\r\n }\r\n /** Returns true if the document is in the specified collectionId. */\r\n hasCollectionId(collectionId) {\r\n return (this.path.length >= 2 &&\r\n this.path.get(this.path.length - 2) === collectionId);\r\n }\r\n /** Returns the collection group (i.e. the name of the parent collection) for this key. */\r\n getCollectionGroup() {\r\n return this.path.get(this.path.length - 2);\r\n }\r\n /** Returns the fully qualified path to the parent collection. */\r\n getCollectionPath() {\r\n return this.path.popLast();\r\n }\r\n isEqual(other) {\r\n return (other !== null && ResourcePath.comparator(this.path, other.path) === 0);\r\n }\r\n toString() {\r\n return this.path.toString();\r\n }\r\n static comparator(k1, k2) {\r\n return ResourcePath.comparator(k1.path, k2.path);\r\n }\r\n static isDocumentKey(path) {\r\n return path.length % 2 === 0;\r\n }\r\n /**\r\n * Creates and returns a new document key with the given segments.\r\n *\r\n * @param segments - The segments of the path to the document\r\n * @returns A new instance of DocumentKey\r\n */\r\n static fromSegments(segments) {\r\n return new DocumentKey(new ResourcePath(segments.slice()));\r\n }\r\n}\n\n/**\r\n * @license\r\n * Copyright 2017 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nfunction validateNonEmptyArgument(functionName, argumentName, argument) {\r\n if (!argument) {\r\n throw new FirestoreError(Code.INVALID_ARGUMENT, `Function ${functionName}() cannot be called with an empty ${argumentName}.`);\r\n }\r\n}\r\n/**\r\n * Validates that two boolean options are not set at the same time.\r\n * @internal\r\n */\r\nfunction validateIsNotUsedTogether(optionName1, argument1, optionName2, argument2) {\r\n if (argument1 === true && argument2 === true) {\r\n throw new FirestoreError(Code.INVALID_ARGUMENT, `${optionName1} and ${optionName2} cannot be used together.`);\r\n }\r\n}\r\n/**\r\n * Validates that `path` refers to a document (indicated by the fact it contains\r\n * an even numbers of segments).\r\n */\r\nfunction validateDocumentPath(path) {\r\n if (!DocumentKey.isDocumentKey(path)) {\r\n throw new FirestoreError(Code.INVALID_ARGUMENT, `Invalid document reference. Document references must have an even number of segments, but ${path} has ${path.length}.`);\r\n }\r\n}\r\n/**\r\n * Validates that `path` refers to a collection (indicated by the fact it\r\n * contains an odd numbers of segments).\r\n */\r\nfunction validateCollectionPath(path) {\r\n if (DocumentKey.isDocumentKey(path)) {\r\n throw new FirestoreError(Code.INVALID_ARGUMENT, `Invalid collection reference. Collection references must have an odd number of segments, but ${path} has ${path.length}.`);\r\n }\r\n}\r\n/**\r\n * Returns true if it's a non-null object without a custom prototype\r\n * (i.e. excludes Array, Date, etc.).\r\n */\r\nfunction isPlainObject(input) {\r\n return (typeof input === 'object' &&\r\n input !== null &&\r\n (Object.getPrototypeOf(input) === Object.prototype ||\r\n Object.getPrototypeOf(input) === null));\r\n}\r\n/** Returns a string describing the type / value of the provided input. */\r\nfunction valueDescription(input) {\r\n if (input === undefined) {\r\n return 'undefined';\r\n }\r\n else if (input === null) {\r\n return 'null';\r\n }\r\n else if (typeof input === 'string') {\r\n if (input.length > 20) {\r\n input = `${input.substring(0, 20)}...`;\r\n }\r\n return JSON.stringify(input);\r\n }\r\n else if (typeof input === 'number' || typeof input === 'boolean') {\r\n return '' + input;\r\n }\r\n else if (typeof input === 'object') {\r\n if (input instanceof Array) {\r\n return 'an array';\r\n }\r\n else {\r\n const customObjectName = tryGetCustomObjectType(input);\r\n if (customObjectName) {\r\n return `a custom ${customObjectName} object`;\r\n }\r\n else {\r\n return 'an object';\r\n }\r\n }\r\n }\r\n else if (typeof input === 'function') {\r\n return 'a function';\r\n }\r\n else {\r\n return fail();\r\n }\r\n}\r\n/** try to get the constructor name for an object. */\r\nfunction tryGetCustomObjectType(input) {\r\n if (input.constructor) {\r\n return input.constructor.name;\r\n }\r\n return null;\r\n}\r\n/**\r\n * Casts `obj` to `T`, optionally unwrapping Compat types to expose the\r\n * underlying instance. Throws if `obj` is not an instance of `T`.\r\n *\r\n * This cast is used in the Lite and Full SDK to verify instance types for\r\n * arguments passed to the public API.\r\n * @internal\r\n */\r\nfunction cast(obj, \r\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\r\nconstructor) {\r\n if ('_delegate' in obj) {\r\n // Unwrap Compat types\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n obj = obj._delegate;\r\n }\r\n if (!(obj instanceof constructor)) {\r\n if (constructor.name === obj.constructor.name) {\r\n throw new FirestoreError(Code.INVALID_ARGUMENT, 'Type does not match the expected instance. Did you pass a ' +\r\n `reference from a different Firestore SDK?`);\r\n }\r\n else {\r\n const description = valueDescription(obj);\r\n throw new FirestoreError(Code.INVALID_ARGUMENT, `Expected type '${constructor.name}', but it was: ${description}`);\r\n }\r\n }\r\n return obj;\r\n}\r\nfunction validatePositiveNumber(functionName, n) {\r\n if (n <= 0) {\r\n throw new FirestoreError(Code.INVALID_ARGUMENT, `Function ${functionName}() requires a positive number, but it was: ${n}.`);\r\n }\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nconst LOG_TAG$3 = 'RestConnection';\r\n/**\r\n * Maps RPC names to the corresponding REST endpoint name.\r\n *\r\n * We use array notation to avoid mangling.\r\n */\r\nconst RPC_NAME_URL_MAPPING = {};\r\nRPC_NAME_URL_MAPPING['BatchGetDocuments'] = 'batchGet';\r\nRPC_NAME_URL_MAPPING['Commit'] = 'commit';\r\nRPC_NAME_URL_MAPPING['RunQuery'] = 'runQuery';\r\nRPC_NAME_URL_MAPPING['RunAggregationQuery'] = 'runAggregationQuery';\r\nconst RPC_URL_VERSION = 'v1';\r\n// SDK_VERSION is updated to different value at runtime depending on the entry point,\r\n// so we need to get its value when we need it in a function.\r\nfunction getGoogApiClientValue() {\r\n return 'gl-js/ fire/' + SDK_VERSION;\r\n}\r\n/**\r\n * Base class for all Rest-based connections to the backend (WebChannel and\r\n * HTTP).\r\n */\r\nclass RestConnection {\r\n constructor(databaseInfo) {\r\n this.databaseInfo = databaseInfo;\r\n this.databaseId = databaseInfo.databaseId;\r\n const proto = databaseInfo.ssl ? 'https' : 'http';\r\n this.baseUrl = proto + '://' + databaseInfo.host;\r\n this.databaseRoot =\r\n 'projects/' +\r\n this.databaseId.projectId +\r\n '/databases/' +\r\n this.databaseId.database +\r\n '/documents';\r\n }\r\n get shouldResourcePathBeIncludedInRequest() {\r\n // Both `invokeRPC()` and `invokeStreamingRPC()` use their `path` arguments to determine\r\n // where to run the query, and expect the `request` to NOT specify the \"path\".\r\n return false;\r\n }\r\n invokeRPC(rpcName, path, req, authToken, appCheckToken) {\r\n const url = this.makeUrl(rpcName, path);\r\n logDebug(LOG_TAG$3, 'Sending: ', url, req);\r\n const headers = {};\r\n this.modifyHeadersForRequest(headers, authToken, appCheckToken);\r\n return this.performRPCRequest(rpcName, url, headers, req).then(response => {\r\n logDebug(LOG_TAG$3, 'Received: ', response);\r\n return response;\r\n }, (err) => {\r\n logWarn(LOG_TAG$3, `${rpcName} failed with error: `, err, 'url: ', url, 'request:', req);\r\n throw err;\r\n });\r\n }\r\n invokeStreamingRPC(rpcName, path, request, authToken, appCheckToken, expectedResponseCount) {\r\n // The REST API automatically aggregates all of the streamed results, so we\r\n // can just use the normal invoke() method.\r\n return this.invokeRPC(rpcName, path, request, authToken, appCheckToken);\r\n }\r\n /**\r\n * Modifies the headers for a request, adding any authorization token if\r\n * present and any additional headers for the request.\r\n */\r\n modifyHeadersForRequest(headers, authToken, appCheckToken) {\r\n headers['X-Goog-Api-Client'] = getGoogApiClientValue();\r\n // Content-Type: text/plain will avoid preflight requests which might\r\n // mess with CORS and redirects by proxies. If we add custom headers\r\n // we will need to change this code to potentially use the $httpOverwrite\r\n // parameter supported by ESF to avoid triggering preflight requests.\r\n headers['Content-Type'] = 'text/plain';\r\n if (this.databaseInfo.appId) {\r\n headers['X-Firebase-GMPID'] = this.databaseInfo.appId;\r\n }\r\n if (authToken) {\r\n authToken.headers.forEach((value, key) => (headers[key] = value));\r\n }\r\n if (appCheckToken) {\r\n appCheckToken.headers.forEach((value, key) => (headers[key] = value));\r\n }\r\n }\r\n makeUrl(rpcName, path) {\r\n const urlRpcName = RPC_NAME_URL_MAPPING[rpcName];\r\n return `${this.baseUrl}/${RPC_URL_VERSION}/${path}:${urlRpcName}`;\r\n }\r\n}\n\n/**\r\n * @license\r\n * Copyright 2017 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/**\r\n * Error Codes describing the different ways GRPC can fail. These are copied\r\n * directly from GRPC's sources here:\r\n *\r\n * https://github.com/grpc/grpc/blob/bceec94ea4fc5f0085d81235d8e1c06798dc341a/include/grpc%2B%2B/impl/codegen/status_code_enum.h\r\n *\r\n * Important! The names of these identifiers matter because the string forms\r\n * are used for reverse lookups from the webchannel stream. Do NOT change the\r\n * names of these identifiers or change this into a const enum.\r\n */\r\nvar RpcCode;\r\n(function (RpcCode) {\r\n RpcCode[RpcCode[\"OK\"] = 0] = \"OK\";\r\n RpcCode[RpcCode[\"CANCELLED\"] = 1] = \"CANCELLED\";\r\n RpcCode[RpcCode[\"UNKNOWN\"] = 2] = \"UNKNOWN\";\r\n RpcCode[RpcCode[\"INVALID_ARGUMENT\"] = 3] = \"INVALID_ARGUMENT\";\r\n RpcCode[RpcCode[\"DEADLINE_EXCEEDED\"] = 4] = \"DEADLINE_EXCEEDED\";\r\n RpcCode[RpcCode[\"NOT_FOUND\"] = 5] = \"NOT_FOUND\";\r\n RpcCode[RpcCode[\"ALREADY_EXISTS\"] = 6] = \"ALREADY_EXISTS\";\r\n RpcCode[RpcCode[\"PERMISSION_DENIED\"] = 7] = \"PERMISSION_DENIED\";\r\n RpcCode[RpcCode[\"UNAUTHENTICATED\"] = 16] = \"UNAUTHENTICATED\";\r\n RpcCode[RpcCode[\"RESOURCE_EXHAUSTED\"] = 8] = \"RESOURCE_EXHAUSTED\";\r\n RpcCode[RpcCode[\"FAILED_PRECONDITION\"] = 9] = \"FAILED_PRECONDITION\";\r\n RpcCode[RpcCode[\"ABORTED\"] = 10] = \"ABORTED\";\r\n RpcCode[RpcCode[\"OUT_OF_RANGE\"] = 11] = \"OUT_OF_RANGE\";\r\n RpcCode[RpcCode[\"UNIMPLEMENTED\"] = 12] = \"UNIMPLEMENTED\";\r\n RpcCode[RpcCode[\"INTERNAL\"] = 13] = \"INTERNAL\";\r\n RpcCode[RpcCode[\"UNAVAILABLE\"] = 14] = \"UNAVAILABLE\";\r\n RpcCode[RpcCode[\"DATA_LOSS\"] = 15] = \"DATA_LOSS\";\r\n})(RpcCode || (RpcCode = {}));\r\n/**\r\n * Determines whether an error code represents a permanent error when received\r\n * in response to a non-write operation.\r\n *\r\n * See isPermanentWriteError for classifying write errors.\r\n */\r\nfunction isPermanentError(code) {\r\n switch (code) {\r\n case Code.OK:\r\n return fail();\r\n case Code.CANCELLED:\r\n case Code.UNKNOWN:\r\n case Code.DEADLINE_EXCEEDED:\r\n case Code.RESOURCE_EXHAUSTED:\r\n case Code.INTERNAL:\r\n case Code.UNAVAILABLE:\r\n // Unauthenticated means something went wrong with our token and we need\r\n // to retry with new credentials which will happen automatically.\r\n case Code.UNAUTHENTICATED:\r\n return false;\r\n case Code.INVALID_ARGUMENT:\r\n case Code.NOT_FOUND:\r\n case Code.ALREADY_EXISTS:\r\n case Code.PERMISSION_DENIED:\r\n case Code.FAILED_PRECONDITION:\r\n // Aborted might be retried in some scenarios, but that is dependant on\r\n // the context and should handled individually by the calling code.\r\n // See https://cloud.google.com/apis/design/errors.\r\n case Code.ABORTED:\r\n case Code.OUT_OF_RANGE:\r\n case Code.UNIMPLEMENTED:\r\n case Code.DATA_LOSS:\r\n return true;\r\n default:\r\n return fail();\r\n }\r\n}\r\n/**\r\n * Converts an HTTP Status Code to the equivalent error code.\r\n *\r\n * @param status - An HTTP Status Code, like 200, 404, 503, etc.\r\n * @returns The equivalent Code. Unknown status codes are mapped to\r\n * Code.UNKNOWN.\r\n */\r\nfunction mapCodeFromHttpStatus(status) {\r\n if (status === undefined) {\r\n logError('RPC_ERROR', 'HTTP error has no status');\r\n return Code.UNKNOWN;\r\n }\r\n // The canonical error codes for Google APIs [1] specify mapping onto HTTP\r\n // status codes but the mapping is not bijective. In each case of ambiguity\r\n // this function chooses a primary error.\r\n //\r\n // [1]\r\n // https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto\r\n switch (status) {\r\n case 200: // OK\r\n return Code.OK;\r\n case 400: // Bad Request\r\n return Code.FAILED_PRECONDITION;\r\n // Other possibilities based on the forward mapping\r\n // return Code.INVALID_ARGUMENT;\r\n // return Code.OUT_OF_RANGE;\r\n case 401: // Unauthorized\r\n return Code.UNAUTHENTICATED;\r\n case 403: // Forbidden\r\n return Code.PERMISSION_DENIED;\r\n case 404: // Not Found\r\n return Code.NOT_FOUND;\r\n case 409: // Conflict\r\n return Code.ABORTED;\r\n // Other possibilities:\r\n // return Code.ALREADY_EXISTS;\r\n case 416: // Range Not Satisfiable\r\n return Code.OUT_OF_RANGE;\r\n case 429: // Too Many Requests\r\n return Code.RESOURCE_EXHAUSTED;\r\n case 499: // Client Closed Request\r\n return Code.CANCELLED;\r\n case 500: // Internal Server Error\r\n return Code.UNKNOWN;\r\n // Other possibilities:\r\n // return Code.INTERNAL;\r\n // return Code.DATA_LOSS;\r\n case 501: // Unimplemented\r\n return Code.UNIMPLEMENTED;\r\n case 503: // Service Unavailable\r\n return Code.UNAVAILABLE;\r\n case 504: // Gateway Timeout\r\n return Code.DEADLINE_EXCEEDED;\r\n default:\r\n if (status >= 200 && status < 300) {\r\n return Code.OK;\r\n }\r\n if (status >= 400 && status < 500) {\r\n return Code.FAILED_PRECONDITION;\r\n }\r\n if (status >= 500 && status < 600) {\r\n return Code.INTERNAL;\r\n }\r\n return Code.UNKNOWN;\r\n }\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/**\r\n * A Rest-based connection that relies on the native HTTP stack\r\n * (e.g. `fetch` or a polyfill).\r\n */\r\nclass FetchConnection extends RestConnection {\r\n /**\r\n * @param databaseInfo - The connection info.\r\n * @param fetchImpl - `fetch` or a Polyfill that implements the fetch API.\r\n */\r\n constructor(databaseInfo, fetchImpl) {\r\n super(databaseInfo);\r\n this.fetchImpl = fetchImpl;\r\n }\r\n openStream(rpcName, token) {\r\n throw new Error('Not supported by FetchConnection');\r\n }\r\n async performRPCRequest(rpcName, url, headers, body) {\r\n var _a;\r\n const requestJson = JSON.stringify(body);\r\n let response;\r\n try {\r\n response = await this.fetchImpl(url, {\r\n method: 'POST',\r\n headers,\r\n body: requestJson\r\n });\r\n }\r\n catch (e) {\r\n const err = e;\r\n throw new FirestoreError(mapCodeFromHttpStatus(err.status), 'Request failed with error: ' + err.statusText);\r\n }\r\n if (!response.ok) {\r\n let errorResponse = await response.json();\r\n if (Array.isArray(errorResponse)) {\r\n errorResponse = errorResponse[0];\r\n }\r\n const errorMessage = (_a = errorResponse === null || errorResponse === void 0 ? void 0 : errorResponse.error) === null || _a === void 0 ? void 0 : _a.message;\r\n throw new FirestoreError(mapCodeFromHttpStatus(response.status), `Request failed with error: ${errorMessage !== null && errorMessage !== void 0 ? errorMessage : response.statusText}`);\r\n }\r\n return response.json();\r\n }\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/** Initializes the HTTP connection for the REST API. */\r\nfunction newConnection(databaseInfo) {\r\n // node-fetch is meant to be API compatible with `fetch`, but its type doesn't\r\n // match 100%.\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n return new FetchConnection(databaseInfo, nodeFetch);\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/**\r\n * Generates `nBytes` of random bytes.\r\n *\r\n * If `nBytes < 0` , an error will be thrown.\r\n */\r\nfunction randomBytes(nBytes) {\r\n return randomBytes$1(nBytes);\r\n}\n\n/**\r\n * @license\r\n * Copyright 2017 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nclass AutoId {\r\n static newId() {\r\n // Alphanumeric characters\r\n const chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';\r\n // The largest byte value that is a multiple of `char.length`.\r\n const maxMultiple = Math.floor(256 / chars.length) * chars.length;\r\n let autoId = '';\r\n const targetLength = 20;\r\n while (autoId.length < targetLength) {\r\n const bytes = randomBytes(40);\r\n for (let i = 0; i < bytes.length; ++i) {\r\n // Only accept values that are [0, maxMultiple), this ensures they can\r\n // be evenly mapped to indices of `chars` via a modulo operation.\r\n if (autoId.length < targetLength && bytes[i] < maxMultiple) {\r\n autoId += chars.charAt(bytes[i] % chars.length);\r\n }\r\n }\r\n }\r\n return autoId;\r\n }\r\n}\r\nfunction primitiveComparator(left, right) {\r\n if (left < right) {\r\n return -1;\r\n }\r\n if (left > right) {\r\n return 1;\r\n }\r\n return 0;\r\n}\r\n/** Helper to compare arrays using isEqual(). */\r\nfunction arrayEquals(left, right, comparator) {\r\n if (left.length !== right.length) {\r\n return false;\r\n }\r\n return left.every((value, index) => comparator(value, right[index]));\r\n}\n\n/**\r\n * @license\r\n * Copyright 2017 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nfunction objectSize(obj) {\r\n let count = 0;\r\n for (const key in obj) {\r\n if (Object.prototype.hasOwnProperty.call(obj, key)) {\r\n count++;\r\n }\r\n }\r\n return count;\r\n}\r\nfunction forEach(obj, fn) {\r\n for (const key in obj) {\r\n if (Object.prototype.hasOwnProperty.call(obj, key)) {\r\n fn(key, obj[key]);\r\n }\r\n }\r\n}\r\nfunction isEmpty(obj) {\r\n for (const key in obj) {\r\n if (Object.prototype.hasOwnProperty.call(obj, key)) {\r\n return false;\r\n }\r\n }\r\n return true;\r\n}\n\n/**\r\n * @license\r\n * Copyright 2017 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/**\r\n * Returns whether a variable is either undefined or null.\r\n */\r\nfunction isNullOrUndefined(value) {\r\n return value === null || value === undefined;\r\n}\r\n/** Returns whether the value represents -0. */\r\nfunction isNegativeZero(value) {\r\n // Detect if the value is -0.0. Based on polyfill from\r\n // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is\r\n return value === 0 && 1 / value === 1 / -0;\r\n}\r\n/**\r\n * Returns whether a value is an integer and in the safe integer range\r\n * @param value - The value to test for being an integer and in the safe range\r\n */\r\nfunction isSafeInteger(value) {\r\n return (typeof value === 'number' &&\r\n Number.isInteger(value) &&\r\n !isNegativeZero(value) &&\r\n value <= Number.MAX_SAFE_INTEGER &&\r\n value >= Number.MIN_SAFE_INTEGER);\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/** Converts a Base64 encoded string to a binary string. */\r\nfunction decodeBase64(encoded) {\r\n // Note: We used to validate the base64 string here via a regular expression.\r\n // This was removed to improve the performance of indexing.\r\n return Buffer.from(encoded, 'base64').toString('binary');\r\n}\r\n/** Converts a binary string to a Base64 encoded string. */\r\nfunction encodeBase64(raw) {\r\n return Buffer.from(raw, 'binary').toString('base64');\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/**\r\n * Immutable class that represents a \"proto\" byte string.\r\n *\r\n * Proto byte strings can either be Base64-encoded strings or Uint8Arrays when\r\n * sent on the wire. This class abstracts away this differentiation by holding\r\n * the proto byte string in a common class that must be converted into a string\r\n * before being sent as a proto.\r\n * @internal\r\n */\r\nclass ByteString {\r\n constructor(binaryString) {\r\n this.binaryString = binaryString;\r\n }\r\n static fromBase64String(base64) {\r\n const binaryString = decodeBase64(base64);\r\n return new ByteString(binaryString);\r\n }\r\n static fromUint8Array(array) {\r\n // TODO(indexing); Remove the copy of the byte string here as this method\r\n // is frequently called during indexing.\r\n const binaryString = binaryStringFromUint8Array(array);\r\n return new ByteString(binaryString);\r\n }\r\n [Symbol.iterator]() {\r\n let i = 0;\r\n return {\r\n next: () => {\r\n if (i < this.binaryString.length) {\r\n return { value: this.binaryString.charCodeAt(i++), done: false };\r\n }\r\n else {\r\n return { value: undefined, done: true };\r\n }\r\n }\r\n };\r\n }\r\n toBase64() {\r\n return encodeBase64(this.binaryString);\r\n }\r\n toUint8Array() {\r\n return uint8ArrayFromBinaryString(this.binaryString);\r\n }\r\n approximateByteSize() {\r\n return this.binaryString.length * 2;\r\n }\r\n compareTo(other) {\r\n return primitiveComparator(this.binaryString, other.binaryString);\r\n }\r\n isEqual(other) {\r\n return this.binaryString === other.binaryString;\r\n }\r\n}\r\nByteString.EMPTY_BYTE_STRING = new ByteString('');\r\n/**\r\n * Helper function to convert an Uint8array to a binary string.\r\n */\r\nfunction binaryStringFromUint8Array(array) {\r\n let binaryString = '';\r\n for (let i = 0; i < array.length; ++i) {\r\n binaryString += String.fromCharCode(array[i]);\r\n }\r\n return binaryString;\r\n}\r\n/**\r\n * Helper function to convert a binary string to an Uint8Array.\r\n */\r\nfunction uint8ArrayFromBinaryString(binaryString) {\r\n const buffer = new Uint8Array(binaryString.length);\r\n for (let i = 0; i < binaryString.length; i++) {\r\n buffer[i] = binaryString.charCodeAt(i);\r\n }\r\n return buffer;\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n// A RegExp matching ISO 8601 UTC timestamps with optional fraction.\r\nconst ISO_TIMESTAMP_REG_EXP = new RegExp(/^\\d{4}-\\d\\d-\\d\\dT\\d\\d:\\d\\d:\\d\\d(?:\\.(\\d+))?Z$/);\r\n/**\r\n * Converts the possible Proto values for a timestamp value into a \"seconds and\r\n * nanos\" representation.\r\n */\r\nfunction normalizeTimestamp(date) {\r\n hardAssert(!!date);\r\n // The json interface (for the browser) will return an iso timestamp string,\r\n // while the proto js library (for node) will return a\r\n // google.protobuf.Timestamp instance.\r\n if (typeof date === 'string') {\r\n // The date string can have higher precision (nanos) than the Date class\r\n // (millis), so we do some custom parsing here.\r\n // Parse the nanos right out of the string.\r\n let nanos = 0;\r\n const fraction = ISO_TIMESTAMP_REG_EXP.exec(date);\r\n hardAssert(!!fraction);\r\n if (fraction[1]) {\r\n // Pad the fraction out to 9 digits (nanos).\r\n let nanoStr = fraction[1];\r\n nanoStr = (nanoStr + '000000000').substr(0, 9);\r\n nanos = Number(nanoStr);\r\n }\r\n // Parse the date to get the seconds.\r\n const parsedDate = new Date(date);\r\n const seconds = Math.floor(parsedDate.getTime() / 1000);\r\n return { seconds, nanos };\r\n }\r\n else {\r\n // TODO(b/37282237): Use strings for Proto3 timestamps\r\n // assert(!this.options.useProto3Json,\r\n // 'The timestamp instance format requires Proto JS.');\r\n const seconds = normalizeNumber(date.seconds);\r\n const nanos = normalizeNumber(date.nanos);\r\n return { seconds, nanos };\r\n }\r\n}\r\n/**\r\n * Converts the possible Proto types for numbers into a JavaScript number.\r\n * Returns 0 if the value is not numeric.\r\n */\r\nfunction normalizeNumber(value) {\r\n // TODO(bjornick): Handle int64 greater than 53 bits.\r\n if (typeof value === 'number') {\r\n return value;\r\n }\r\n else if (typeof value === 'string') {\r\n return Number(value);\r\n }\r\n else {\r\n return 0;\r\n }\r\n}\r\n/** Converts the possible Proto types for Blobs into a ByteString. */\r\nfunction normalizeByteString(blob) {\r\n if (typeof blob === 'string') {\r\n return ByteString.fromBase64String(blob);\r\n }\r\n else {\r\n return ByteString.fromUint8Array(blob);\r\n }\r\n}\n\n/**\r\n * @license\r\n * Copyright 2017 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n// The earliest date supported by Firestore timestamps (0001-01-01T00:00:00Z).\r\nconst MIN_SECONDS = -62135596800;\r\n// Number of nanoseconds in a millisecond.\r\nconst MS_TO_NANOS = 1e6;\r\n/**\r\n * A `Timestamp` represents a point in time independent of any time zone or\r\n * calendar, represented as seconds and fractions of seconds at nanosecond\r\n * resolution in UTC Epoch time.\r\n *\r\n * It is encoded using the Proleptic Gregorian Calendar which extends the\r\n * Gregorian calendar backwards to year one. It is encoded assuming all minutes\r\n * are 60 seconds long, i.e. leap seconds are \"smeared\" so that no leap second\r\n * table is needed for interpretation. Range is from 0001-01-01T00:00:00Z to\r\n * 9999-12-31T23:59:59.999999999Z.\r\n *\r\n * For examples and further specifications, refer to the\r\n * {@link https://github.com/google/protobuf/blob/master/src/google/protobuf/timestamp.proto | Timestamp definition}.\r\n */\r\nclass Timestamp {\r\n /**\r\n * Creates a new timestamp.\r\n *\r\n * @param seconds - The number of seconds of UTC time since Unix epoch\r\n * 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to\r\n * 9999-12-31T23:59:59Z inclusive.\r\n * @param nanoseconds - The non-negative fractions of a second at nanosecond\r\n * resolution. Negative second values with fractions must still have\r\n * non-negative nanoseconds values that count forward in time. Must be\r\n * from 0 to 999,999,999 inclusive.\r\n */\r\n constructor(\r\n /**\r\n * The number of seconds of UTC time since Unix epoch 1970-01-01T00:00:00Z.\r\n */\r\n seconds, \r\n /**\r\n * The fractions of a second at nanosecond resolution.*\r\n */\r\n nanoseconds) {\r\n this.seconds = seconds;\r\n this.nanoseconds = nanoseconds;\r\n if (nanoseconds < 0) {\r\n throw new FirestoreError(Code.INVALID_ARGUMENT, 'Timestamp nanoseconds out of range: ' + nanoseconds);\r\n }\r\n if (nanoseconds >= 1e9) {\r\n throw new FirestoreError(Code.INVALID_ARGUMENT, 'Timestamp nanoseconds out of range: ' + nanoseconds);\r\n }\r\n if (seconds < MIN_SECONDS) {\r\n throw new FirestoreError(Code.INVALID_ARGUMENT, 'Timestamp seconds out of range: ' + seconds);\r\n }\r\n // This will break in the year 10,000.\r\n if (seconds >= 253402300800) {\r\n throw new FirestoreError(Code.INVALID_ARGUMENT, 'Timestamp seconds out of range: ' + seconds);\r\n }\r\n }\r\n /**\r\n * Creates a new timestamp with the current date, with millisecond precision.\r\n *\r\n * @returns a new timestamp representing the current date.\r\n */\r\n static now() {\r\n return Timestamp.fromMillis(Date.now());\r\n }\r\n /**\r\n * Creates a new timestamp from the given date.\r\n *\r\n * @param date - The date to initialize the `Timestamp` from.\r\n * @returns A new `Timestamp` representing the same point in time as the given\r\n * date.\r\n */\r\n static fromDate(date) {\r\n return Timestamp.fromMillis(date.getTime());\r\n }\r\n /**\r\n * Creates a new timestamp from the given number of milliseconds.\r\n *\r\n * @param milliseconds - Number of milliseconds since Unix epoch\r\n * 1970-01-01T00:00:00Z.\r\n * @returns A new `Timestamp` representing the same point in time as the given\r\n * number of milliseconds.\r\n */\r\n static fromMillis(milliseconds) {\r\n const seconds = Math.floor(milliseconds / 1000);\r\n const nanos = Math.floor((milliseconds - seconds * 1000) * MS_TO_NANOS);\r\n return new Timestamp(seconds, nanos);\r\n }\r\n /**\r\n * Converts a `Timestamp` to a JavaScript `Date` object. This conversion\r\n * causes a loss of precision since `Date` objects only support millisecond\r\n * precision.\r\n *\r\n * @returns JavaScript `Date` object representing the same point in time as\r\n * this `Timestamp`, with millisecond precision.\r\n */\r\n toDate() {\r\n return new Date(this.toMillis());\r\n }\r\n /**\r\n * Converts a `Timestamp` to a numeric timestamp (in milliseconds since\r\n * epoch). This operation causes a loss of precision.\r\n *\r\n * @returns The point in time corresponding to this timestamp, represented as\r\n * the number of milliseconds since Unix epoch 1970-01-01T00:00:00Z.\r\n */\r\n toMillis() {\r\n return this.seconds * 1000 + this.nanoseconds / MS_TO_NANOS;\r\n }\r\n _compareTo(other) {\r\n if (this.seconds === other.seconds) {\r\n return primitiveComparator(this.nanoseconds, other.nanoseconds);\r\n }\r\n return primitiveComparator(this.seconds, other.seconds);\r\n }\r\n /**\r\n * Returns true if this `Timestamp` is equal to the provided one.\r\n *\r\n * @param other - The `Timestamp` to compare against.\r\n * @returns true if this `Timestamp` is equal to the provided one.\r\n */\r\n isEqual(other) {\r\n return (other.seconds === this.seconds && other.nanoseconds === this.nanoseconds);\r\n }\r\n /** Returns a textual representation of this `Timestamp`. */\r\n toString() {\r\n return ('Timestamp(seconds=' +\r\n this.seconds +\r\n ', nanoseconds=' +\r\n this.nanoseconds +\r\n ')');\r\n }\r\n /** Returns a JSON-serializable representation of this `Timestamp`. */\r\n toJSON() {\r\n return { seconds: this.seconds, nanoseconds: this.nanoseconds };\r\n }\r\n /**\r\n * Converts this object to a primitive string, which allows `Timestamp` objects\r\n * to be compared using the `>`, `<=`, `>=` and `>` operators.\r\n */\r\n valueOf() {\r\n // This method returns a string of the form . where\r\n // is translated to have a non-negative value and both \r\n // and are left-padded with zeroes to be a consistent length.\r\n // Strings with this format then have a lexiographical ordering that matches\r\n // the expected ordering. The translation is done to avoid having\r\n // a leading negative sign (i.e. a leading '-' character) in its string\r\n // representation, which would affect its lexiographical ordering.\r\n const adjustedSeconds = this.seconds - MIN_SECONDS;\r\n // Note: Up to 12 decimal digits are required to represent all valid\r\n // 'seconds' values.\r\n const formattedSeconds = String(adjustedSeconds).padStart(12, '0');\r\n const formattedNanoseconds = String(this.nanoseconds).padStart(9, '0');\r\n return formattedSeconds + '.' + formattedNanoseconds;\r\n }\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/**\r\n * Represents a locally-applied ServerTimestamp.\r\n *\r\n * Server Timestamps are backed by MapValues that contain an internal field\r\n * `__type__` with a value of `server_timestamp`. The previous value and local\r\n * write time are stored in its `__previous_value__` and `__local_write_time__`\r\n * fields respectively.\r\n *\r\n * Notes:\r\n * - ServerTimestampValue instances are created as the result of applying a\r\n * transform. They can only exist in the local view of a document. Therefore\r\n * they do not need to be parsed or serialized.\r\n * - When evaluated locally (e.g. for snapshot.data()), they by default\r\n * evaluate to `null`. This behavior can be configured by passing custom\r\n * FieldValueOptions to value().\r\n * - With respect to other ServerTimestampValues, they sort by their\r\n * localWriteTime.\r\n */\r\nconst SERVER_TIMESTAMP_SENTINEL = 'server_timestamp';\r\nconst TYPE_KEY = '__type__';\r\nconst PREVIOUS_VALUE_KEY = '__previous_value__';\r\nconst LOCAL_WRITE_TIME_KEY = '__local_write_time__';\r\nfunction isServerTimestamp(value) {\r\n var _a, _b;\r\n const type = (_b = (((_a = value === null || value === void 0 ? void 0 : value.mapValue) === null || _a === void 0 ? void 0 : _a.fields) || {})[TYPE_KEY]) === null || _b === void 0 ? void 0 : _b.stringValue;\r\n return type === SERVER_TIMESTAMP_SENTINEL;\r\n}\r\n/**\r\n * Returns the value of the field before this ServerTimestamp was set.\r\n *\r\n * Preserving the previous values allows the user to display the last resoled\r\n * value until the backend responds with the timestamp.\r\n */\r\nfunction getPreviousValue(value) {\r\n const previousValue = value.mapValue.fields[PREVIOUS_VALUE_KEY];\r\n if (isServerTimestamp(previousValue)) {\r\n return getPreviousValue(previousValue);\r\n }\r\n return previousValue;\r\n}\r\n/**\r\n * Returns the local time at which this timestamp was first set.\r\n */\r\nfunction getLocalWriteTime(value) {\r\n const localWriteTime = normalizeTimestamp(value.mapValue.fields[LOCAL_WRITE_TIME_KEY].timestampValue);\r\n return new Timestamp(localWriteTime.seconds, localWriteTime.nanos);\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nconst MAX_VALUE_TYPE = '__max__';\r\nconst MAX_VALUE = {\r\n mapValue: {\r\n fields: {\r\n '__type__': { stringValue: MAX_VALUE_TYPE }\r\n }\r\n }\r\n};\r\n/** Extracts the backend's type order for the provided value. */\r\nfunction typeOrder(value) {\r\n if ('nullValue' in value) {\r\n return 0 /* TypeOrder.NullValue */;\r\n }\r\n else if ('booleanValue' in value) {\r\n return 1 /* TypeOrder.BooleanValue */;\r\n }\r\n else if ('integerValue' in value || 'doubleValue' in value) {\r\n return 2 /* TypeOrder.NumberValue */;\r\n }\r\n else if ('timestampValue' in value) {\r\n return 3 /* TypeOrder.TimestampValue */;\r\n }\r\n else if ('stringValue' in value) {\r\n return 5 /* TypeOrder.StringValue */;\r\n }\r\n else if ('bytesValue' in value) {\r\n return 6 /* TypeOrder.BlobValue */;\r\n }\r\n else if ('referenceValue' in value) {\r\n return 7 /* TypeOrder.RefValue */;\r\n }\r\n else if ('geoPointValue' in value) {\r\n return 8 /* TypeOrder.GeoPointValue */;\r\n }\r\n else if ('arrayValue' in value) {\r\n return 9 /* TypeOrder.ArrayValue */;\r\n }\r\n else if ('mapValue' in value) {\r\n if (isServerTimestamp(value)) {\r\n return 4 /* TypeOrder.ServerTimestampValue */;\r\n }\r\n else if (isMaxValue(value)) {\r\n return 9007199254740991 /* TypeOrder.MaxValue */;\r\n }\r\n return 10 /* TypeOrder.ObjectValue */;\r\n }\r\n else {\r\n return fail();\r\n }\r\n}\r\n/** Tests `left` and `right` for equality based on the backend semantics. */\r\nfunction valueEquals(left, right) {\r\n if (left === right) {\r\n return true;\r\n }\r\n const leftType = typeOrder(left);\r\n const rightType = typeOrder(right);\r\n if (leftType !== rightType) {\r\n return false;\r\n }\r\n switch (leftType) {\r\n case 0 /* TypeOrder.NullValue */:\r\n return true;\r\n case 1 /* TypeOrder.BooleanValue */:\r\n return left.booleanValue === right.booleanValue;\r\n case 4 /* TypeOrder.ServerTimestampValue */:\r\n return getLocalWriteTime(left).isEqual(getLocalWriteTime(right));\r\n case 3 /* TypeOrder.TimestampValue */:\r\n return timestampEquals(left, right);\r\n case 5 /* TypeOrder.StringValue */:\r\n return left.stringValue === right.stringValue;\r\n case 6 /* TypeOrder.BlobValue */:\r\n return blobEquals(left, right);\r\n case 7 /* TypeOrder.RefValue */:\r\n return left.referenceValue === right.referenceValue;\r\n case 8 /* TypeOrder.GeoPointValue */:\r\n return geoPointEquals(left, right);\r\n case 2 /* TypeOrder.NumberValue */:\r\n return numberEquals(left, right);\r\n case 9 /* TypeOrder.ArrayValue */:\r\n return arrayEquals(left.arrayValue.values || [], right.arrayValue.values || [], valueEquals);\r\n case 10 /* TypeOrder.ObjectValue */:\r\n return objectEquals(left, right);\r\n case 9007199254740991 /* TypeOrder.MaxValue */:\r\n return true;\r\n default:\r\n return fail();\r\n }\r\n}\r\nfunction timestampEquals(left, right) {\r\n if (typeof left.timestampValue === 'string' &&\r\n typeof right.timestampValue === 'string' &&\r\n left.timestampValue.length === right.timestampValue.length) {\r\n // Use string equality for ISO 8601 timestamps\r\n return left.timestampValue === right.timestampValue;\r\n }\r\n const leftTimestamp = normalizeTimestamp(left.timestampValue);\r\n const rightTimestamp = normalizeTimestamp(right.timestampValue);\r\n return (leftTimestamp.seconds === rightTimestamp.seconds &&\r\n leftTimestamp.nanos === rightTimestamp.nanos);\r\n}\r\nfunction geoPointEquals(left, right) {\r\n return (normalizeNumber(left.geoPointValue.latitude) ===\r\n normalizeNumber(right.geoPointValue.latitude) &&\r\n normalizeNumber(left.geoPointValue.longitude) ===\r\n normalizeNumber(right.geoPointValue.longitude));\r\n}\r\nfunction blobEquals(left, right) {\r\n return normalizeByteString(left.bytesValue).isEqual(normalizeByteString(right.bytesValue));\r\n}\r\nfunction numberEquals(left, right) {\r\n if ('integerValue' in left && 'integerValue' in right) {\r\n return (normalizeNumber(left.integerValue) === normalizeNumber(right.integerValue));\r\n }\r\n else if ('doubleValue' in left && 'doubleValue' in right) {\r\n const n1 = normalizeNumber(left.doubleValue);\r\n const n2 = normalizeNumber(right.doubleValue);\r\n if (n1 === n2) {\r\n return isNegativeZero(n1) === isNegativeZero(n2);\r\n }\r\n else {\r\n return isNaN(n1) && isNaN(n2);\r\n }\r\n }\r\n return false;\r\n}\r\nfunction objectEquals(left, right) {\r\n const leftMap = left.mapValue.fields || {};\r\n const rightMap = right.mapValue.fields || {};\r\n if (objectSize(leftMap) !== objectSize(rightMap)) {\r\n return false;\r\n }\r\n for (const key in leftMap) {\r\n if (leftMap.hasOwnProperty(key)) {\r\n if (rightMap[key] === undefined ||\r\n !valueEquals(leftMap[key], rightMap[key])) {\r\n return false;\r\n }\r\n }\r\n }\r\n return true;\r\n}\r\n/** Returns true if the ArrayValue contains the specified element. */\r\nfunction arrayValueContains(haystack, needle) {\r\n return ((haystack.values || []).find(v => valueEquals(v, needle)) !== undefined);\r\n}\r\nfunction valueCompare(left, right) {\r\n if (left === right) {\r\n return 0;\r\n }\r\n const leftType = typeOrder(left);\r\n const rightType = typeOrder(right);\r\n if (leftType !== rightType) {\r\n return primitiveComparator(leftType, rightType);\r\n }\r\n switch (leftType) {\r\n case 0 /* TypeOrder.NullValue */:\r\n case 9007199254740991 /* TypeOrder.MaxValue */:\r\n return 0;\r\n case 1 /* TypeOrder.BooleanValue */:\r\n return primitiveComparator(left.booleanValue, right.booleanValue);\r\n case 2 /* TypeOrder.NumberValue */:\r\n return compareNumbers(left, right);\r\n case 3 /* TypeOrder.TimestampValue */:\r\n return compareTimestamps(left.timestampValue, right.timestampValue);\r\n case 4 /* TypeOrder.ServerTimestampValue */:\r\n return compareTimestamps(getLocalWriteTime(left), getLocalWriteTime(right));\r\n case 5 /* TypeOrder.StringValue */:\r\n return primitiveComparator(left.stringValue, right.stringValue);\r\n case 6 /* TypeOrder.BlobValue */:\r\n return compareBlobs(left.bytesValue, right.bytesValue);\r\n case 7 /* TypeOrder.RefValue */:\r\n return compareReferences(left.referenceValue, right.referenceValue);\r\n case 8 /* TypeOrder.GeoPointValue */:\r\n return compareGeoPoints(left.geoPointValue, right.geoPointValue);\r\n case 9 /* TypeOrder.ArrayValue */:\r\n return compareArrays(left.arrayValue, right.arrayValue);\r\n case 10 /* TypeOrder.ObjectValue */:\r\n return compareMaps(left.mapValue, right.mapValue);\r\n default:\r\n throw fail();\r\n }\r\n}\r\nfunction compareNumbers(left, right) {\r\n const leftNumber = normalizeNumber(left.integerValue || left.doubleValue);\r\n const rightNumber = normalizeNumber(right.integerValue || right.doubleValue);\r\n if (leftNumber < rightNumber) {\r\n return -1;\r\n }\r\n else if (leftNumber > rightNumber) {\r\n return 1;\r\n }\r\n else if (leftNumber === rightNumber) {\r\n return 0;\r\n }\r\n else {\r\n // one or both are NaN.\r\n if (isNaN(leftNumber)) {\r\n return isNaN(rightNumber) ? 0 : -1;\r\n }\r\n else {\r\n return 1;\r\n }\r\n }\r\n}\r\nfunction compareTimestamps(left, right) {\r\n if (typeof left === 'string' &&\r\n typeof right === 'string' &&\r\n left.length === right.length) {\r\n return primitiveComparator(left, right);\r\n }\r\n const leftTimestamp = normalizeTimestamp(left);\r\n const rightTimestamp = normalizeTimestamp(right);\r\n const comparison = primitiveComparator(leftTimestamp.seconds, rightTimestamp.seconds);\r\n if (comparison !== 0) {\r\n return comparison;\r\n }\r\n return primitiveComparator(leftTimestamp.nanos, rightTimestamp.nanos);\r\n}\r\nfunction compareReferences(leftPath, rightPath) {\r\n const leftSegments = leftPath.split('/');\r\n const rightSegments = rightPath.split('/');\r\n for (let i = 0; i < leftSegments.length && i < rightSegments.length; i++) {\r\n const comparison = primitiveComparator(leftSegments[i], rightSegments[i]);\r\n if (comparison !== 0) {\r\n return comparison;\r\n }\r\n }\r\n return primitiveComparator(leftSegments.length, rightSegments.length);\r\n}\r\nfunction compareGeoPoints(left, right) {\r\n const comparison = primitiveComparator(normalizeNumber(left.latitude), normalizeNumber(right.latitude));\r\n if (comparison !== 0) {\r\n return comparison;\r\n }\r\n return primitiveComparator(normalizeNumber(left.longitude), normalizeNumber(right.longitude));\r\n}\r\nfunction compareBlobs(left, right) {\r\n const leftBytes = normalizeByteString(left);\r\n const rightBytes = normalizeByteString(right);\r\n return leftBytes.compareTo(rightBytes);\r\n}\r\nfunction compareArrays(left, right) {\r\n const leftArray = left.values || [];\r\n const rightArray = right.values || [];\r\n for (let i = 0; i < leftArray.length && i < rightArray.length; ++i) {\r\n const compare = valueCompare(leftArray[i], rightArray[i]);\r\n if (compare) {\r\n return compare;\r\n }\r\n }\r\n return primitiveComparator(leftArray.length, rightArray.length);\r\n}\r\nfunction compareMaps(left, right) {\r\n if (left === MAX_VALUE.mapValue && right === MAX_VALUE.mapValue) {\r\n return 0;\r\n }\r\n else if (left === MAX_VALUE.mapValue) {\r\n return 1;\r\n }\r\n else if (right === MAX_VALUE.mapValue) {\r\n return -1;\r\n }\r\n const leftMap = left.fields || {};\r\n const leftKeys = Object.keys(leftMap);\r\n const rightMap = right.fields || {};\r\n const rightKeys = Object.keys(rightMap);\r\n // Even though MapValues are likely sorted correctly based on their insertion\r\n // order (e.g. when received from the backend), local modifications can bring\r\n // elements out of order. We need to re-sort the elements to ensure that\r\n // canonical IDs are independent of insertion order.\r\n leftKeys.sort();\r\n rightKeys.sort();\r\n for (let i = 0; i < leftKeys.length && i < rightKeys.length; ++i) {\r\n const keyCompare = primitiveComparator(leftKeys[i], rightKeys[i]);\r\n if (keyCompare !== 0) {\r\n return keyCompare;\r\n }\r\n const compare = valueCompare(leftMap[leftKeys[i]], rightMap[rightKeys[i]]);\r\n if (compare !== 0) {\r\n return compare;\r\n }\r\n }\r\n return primitiveComparator(leftKeys.length, rightKeys.length);\r\n}\r\n/** Returns a reference value for the provided database and key. */\r\nfunction refValue(databaseId, key) {\r\n return {\r\n referenceValue: `projects/${databaseId.projectId}/databases/${databaseId.database}/documents/${key.path.canonicalString()}`\r\n };\r\n}\r\n/** Returns true if `value` is an ArrayValue. */\r\nfunction isArray(value) {\r\n return !!value && 'arrayValue' in value;\r\n}\r\n/** Returns true if `value` is a NullValue. */\r\nfunction isNullValue(value) {\r\n return !!value && 'nullValue' in value;\r\n}\r\n/** Returns true if `value` is NaN. */\r\nfunction isNanValue(value) {\r\n return !!value && 'doubleValue' in value && isNaN(Number(value.doubleValue));\r\n}\r\n/** Returns true if `value` is a MapValue. */\r\nfunction isMapValue(value) {\r\n return !!value && 'mapValue' in value;\r\n}\r\n/** Creates a deep copy of `source`. */\r\nfunction deepClone(source) {\r\n if (source.geoPointValue) {\r\n return { geoPointValue: Object.assign({}, source.geoPointValue) };\r\n }\r\n else if (source.timestampValue &&\r\n typeof source.timestampValue === 'object') {\r\n return { timestampValue: Object.assign({}, source.timestampValue) };\r\n }\r\n else if (source.mapValue) {\r\n const target = { mapValue: { fields: {} } };\r\n forEach(source.mapValue.fields, (key, val) => (target.mapValue.fields[key] = deepClone(val)));\r\n return target;\r\n }\r\n else if (source.arrayValue) {\r\n const target = { arrayValue: { values: [] } };\r\n for (let i = 0; i < (source.arrayValue.values || []).length; ++i) {\r\n target.arrayValue.values[i] = deepClone(source.arrayValue.values[i]);\r\n }\r\n return target;\r\n }\r\n else {\r\n return Object.assign({}, source);\r\n }\r\n}\r\n/** Returns true if the Value represents the canonical {@link #MAX_VALUE} . */\r\nfunction isMaxValue(value) {\r\n return ((((value.mapValue || {}).fields || {})['__type__'] || {}).stringValue ===\r\n MAX_VALUE_TYPE);\r\n}\n\n/**\r\n * @license\r\n * Copyright 2022 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/**\r\n * Represents a bound of a query.\r\n *\r\n * The bound is specified with the given components representing a position and\r\n * whether it's just before or just after the position (relative to whatever the\r\n * query order is).\r\n *\r\n * The position represents a logical index position for a query. It's a prefix\r\n * of values for the (potentially implicit) order by clauses of a query.\r\n *\r\n * Bound provides a function to determine whether a document comes before or\r\n * after a bound. This is influenced by whether the position is just before or\r\n * just after the provided values.\r\n */\r\nclass Bound {\r\n constructor(position, inclusive) {\r\n this.position = position;\r\n this.inclusive = inclusive;\r\n }\r\n}\r\nfunction boundEquals(left, right) {\r\n if (left === null) {\r\n return right === null;\r\n }\r\n else if (right === null) {\r\n return false;\r\n }\r\n if (left.inclusive !== right.inclusive ||\r\n left.position.length !== right.position.length) {\r\n return false;\r\n }\r\n for (let i = 0; i < left.position.length; i++) {\r\n const leftPosition = left.position[i];\r\n const rightPosition = right.position[i];\r\n if (!valueEquals(leftPosition, rightPosition)) {\r\n return false;\r\n }\r\n }\r\n return true;\r\n}\n\n/**\r\n * @license\r\n * Copyright 2022 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nclass Filter {\r\n}\r\nclass FieldFilter extends Filter {\r\n constructor(field, op, value) {\r\n super();\r\n this.field = field;\r\n this.op = op;\r\n this.value = value;\r\n }\r\n /**\r\n * Creates a filter based on the provided arguments.\r\n */\r\n static create(field, op, value) {\r\n if (field.isKeyField()) {\r\n if (op === \"in\" /* Operator.IN */ || op === \"not-in\" /* Operator.NOT_IN */) {\r\n return this.createKeyFieldInFilter(field, op, value);\r\n }\r\n else {\r\n return new KeyFieldFilter(field, op, value);\r\n }\r\n }\r\n else if (op === \"array-contains\" /* Operator.ARRAY_CONTAINS */) {\r\n return new ArrayContainsFilter(field, value);\r\n }\r\n else if (op === \"in\" /* Operator.IN */) {\r\n return new InFilter(field, value);\r\n }\r\n else if (op === \"not-in\" /* Operator.NOT_IN */) {\r\n return new NotInFilter(field, value);\r\n }\r\n else if (op === \"array-contains-any\" /* Operator.ARRAY_CONTAINS_ANY */) {\r\n return new ArrayContainsAnyFilter(field, value);\r\n }\r\n else {\r\n return new FieldFilter(field, op, value);\r\n }\r\n }\r\n static createKeyFieldInFilter(field, op, value) {\r\n return op === \"in\" /* Operator.IN */\r\n ? new KeyFieldInFilter(field, value)\r\n : new KeyFieldNotInFilter(field, value);\r\n }\r\n matches(doc) {\r\n const other = doc.data.field(this.field);\r\n // Types do not have to match in NOT_EQUAL filters.\r\n if (this.op === \"!=\" /* Operator.NOT_EQUAL */) {\r\n return (other !== null &&\r\n this.matchesComparison(valueCompare(other, this.value)));\r\n }\r\n // Only compare types with matching backend order (such as double and int).\r\n return (other !== null &&\r\n typeOrder(this.value) === typeOrder(other) &&\r\n this.matchesComparison(valueCompare(other, this.value)));\r\n }\r\n matchesComparison(comparison) {\r\n switch (this.op) {\r\n case \"<\" /* Operator.LESS_THAN */:\r\n return comparison < 0;\r\n case \"<=\" /* Operator.LESS_THAN_OR_EQUAL */:\r\n return comparison <= 0;\r\n case \"==\" /* Operator.EQUAL */:\r\n return comparison === 0;\r\n case \"!=\" /* Operator.NOT_EQUAL */:\r\n return comparison !== 0;\r\n case \">\" /* Operator.GREATER_THAN */:\r\n return comparison > 0;\r\n case \">=\" /* Operator.GREATER_THAN_OR_EQUAL */:\r\n return comparison >= 0;\r\n default:\r\n return fail();\r\n }\r\n }\r\n isInequality() {\r\n return ([\r\n \"<\" /* Operator.LESS_THAN */,\r\n \"<=\" /* Operator.LESS_THAN_OR_EQUAL */,\r\n \">\" /* Operator.GREATER_THAN */,\r\n \">=\" /* Operator.GREATER_THAN_OR_EQUAL */,\r\n \"!=\" /* Operator.NOT_EQUAL */,\r\n \"not-in\" /* Operator.NOT_IN */\r\n ].indexOf(this.op) >= 0);\r\n }\r\n getFlattenedFilters() {\r\n return [this];\r\n }\r\n getFilters() {\r\n return [this];\r\n }\r\n getFirstInequalityField() {\r\n if (this.isInequality()) {\r\n return this.field;\r\n }\r\n return null;\r\n }\r\n}\r\nclass CompositeFilter extends Filter {\r\n constructor(filters, op) {\r\n super();\r\n this.filters = filters;\r\n this.op = op;\r\n this.memoizedFlattenedFilters = null;\r\n }\r\n /**\r\n * Creates a filter based on the provided arguments.\r\n */\r\n static create(filters, op) {\r\n return new CompositeFilter(filters, op);\r\n }\r\n matches(doc) {\r\n if (compositeFilterIsConjunction(this)) {\r\n // For conjunctions, all filters must match, so return false if any filter doesn't match.\r\n return this.filters.find(filter => !filter.matches(doc)) === undefined;\r\n }\r\n else {\r\n // For disjunctions, at least one filter should match.\r\n return this.filters.find(filter => filter.matches(doc)) !== undefined;\r\n }\r\n }\r\n getFlattenedFilters() {\r\n if (this.memoizedFlattenedFilters !== null) {\r\n return this.memoizedFlattenedFilters;\r\n }\r\n this.memoizedFlattenedFilters = this.filters.reduce((result, subfilter) => {\r\n return result.concat(subfilter.getFlattenedFilters());\r\n }, []);\r\n return this.memoizedFlattenedFilters;\r\n }\r\n // Returns a mutable copy of `this.filters`\r\n getFilters() {\r\n return Object.assign([], this.filters);\r\n }\r\n getFirstInequalityField() {\r\n const found = this.findFirstMatchingFilter(filter => filter.isInequality());\r\n if (found !== null) {\r\n return found.field;\r\n }\r\n return null;\r\n }\r\n // Performs a depth-first search to find and return the first FieldFilter in the composite filter\r\n // that satisfies the predicate. Returns `null` if none of the FieldFilters satisfy the\r\n // predicate.\r\n findFirstMatchingFilter(predicate) {\r\n for (const fieldFilter of this.getFlattenedFilters()) {\r\n if (predicate(fieldFilter)) {\r\n return fieldFilter;\r\n }\r\n }\r\n return null;\r\n }\r\n}\r\nfunction compositeFilterIsConjunction(compositeFilter) {\r\n return compositeFilter.op === \"and\" /* CompositeOperator.AND */;\r\n}\r\nfunction filterEquals(f1, f2) {\r\n if (f1 instanceof FieldFilter) {\r\n return fieldFilterEquals(f1, f2);\r\n }\r\n else if (f1 instanceof CompositeFilter) {\r\n return compositeFilterEquals(f1, f2);\r\n }\r\n else {\r\n fail();\r\n }\r\n}\r\nfunction fieldFilterEquals(f1, f2) {\r\n return (f2 instanceof FieldFilter &&\r\n f1.op === f2.op &&\r\n f1.field.isEqual(f2.field) &&\r\n valueEquals(f1.value, f2.value));\r\n}\r\nfunction compositeFilterEquals(f1, f2) {\r\n if (f2 instanceof CompositeFilter &&\r\n f1.op === f2.op &&\r\n f1.filters.length === f2.filters.length) {\r\n const subFiltersMatch = f1.filters.reduce((result, f1Filter, index) => result && filterEquals(f1Filter, f2.filters[index]), true);\r\n return subFiltersMatch;\r\n }\r\n return false;\r\n}\r\n/** Filter that matches on key fields (i.e. '__name__'). */\r\nclass KeyFieldFilter extends FieldFilter {\r\n constructor(field, op, value) {\r\n super(field, op, value);\r\n this.key = DocumentKey.fromName(value.referenceValue);\r\n }\r\n matches(doc) {\r\n const comparison = DocumentKey.comparator(doc.key, this.key);\r\n return this.matchesComparison(comparison);\r\n }\r\n}\r\n/** Filter that matches on key fields within an array. */\r\nclass KeyFieldInFilter extends FieldFilter {\r\n constructor(field, value) {\r\n super(field, \"in\" /* Operator.IN */, value);\r\n this.keys = extractDocumentKeysFromArrayValue(\"in\" /* Operator.IN */, value);\r\n }\r\n matches(doc) {\r\n return this.keys.some(key => key.isEqual(doc.key));\r\n }\r\n}\r\n/** Filter that matches on key fields not present within an array. */\r\nclass KeyFieldNotInFilter extends FieldFilter {\r\n constructor(field, value) {\r\n super(field, \"not-in\" /* Operator.NOT_IN */, value);\r\n this.keys = extractDocumentKeysFromArrayValue(\"not-in\" /* Operator.NOT_IN */, value);\r\n }\r\n matches(doc) {\r\n return !this.keys.some(key => key.isEqual(doc.key));\r\n }\r\n}\r\nfunction extractDocumentKeysFromArrayValue(op, value) {\r\n var _a;\r\n return (((_a = value.arrayValue) === null || _a === void 0 ? void 0 : _a.values) || []).map(v => {\r\n return DocumentKey.fromName(v.referenceValue);\r\n });\r\n}\r\n/** A Filter that implements the array-contains operator. */\r\nclass ArrayContainsFilter extends FieldFilter {\r\n constructor(field, value) {\r\n super(field, \"array-contains\" /* Operator.ARRAY_CONTAINS */, value);\r\n }\r\n matches(doc) {\r\n const other = doc.data.field(this.field);\r\n return isArray(other) && arrayValueContains(other.arrayValue, this.value);\r\n }\r\n}\r\n/** A Filter that implements the IN operator. */\r\nclass InFilter extends FieldFilter {\r\n constructor(field, value) {\r\n super(field, \"in\" /* Operator.IN */, value);\r\n }\r\n matches(doc) {\r\n const other = doc.data.field(this.field);\r\n return other !== null && arrayValueContains(this.value.arrayValue, other);\r\n }\r\n}\r\n/** A Filter that implements the not-in operator. */\r\nclass NotInFilter extends FieldFilter {\r\n constructor(field, value) {\r\n super(field, \"not-in\" /* Operator.NOT_IN */, value);\r\n }\r\n matches(doc) {\r\n if (arrayValueContains(this.value.arrayValue, { nullValue: 'NULL_VALUE' })) {\r\n return false;\r\n }\r\n const other = doc.data.field(this.field);\r\n return other !== null && !arrayValueContains(this.value.arrayValue, other);\r\n }\r\n}\r\n/** A Filter that implements the array-contains-any operator. */\r\nclass ArrayContainsAnyFilter extends FieldFilter {\r\n constructor(field, value) {\r\n super(field, \"array-contains-any\" /* Operator.ARRAY_CONTAINS_ANY */, value);\r\n }\r\n matches(doc) {\r\n const other = doc.data.field(this.field);\r\n if (!isArray(other) || !other.arrayValue.values) {\r\n return false;\r\n }\r\n return other.arrayValue.values.some(val => arrayValueContains(this.value.arrayValue, val));\r\n }\r\n}\n\n/**\r\n * @license\r\n * Copyright 2022 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/**\r\n * An ordering on a field, in some Direction. Direction defaults to ASCENDING.\r\n */\r\nclass OrderBy {\r\n constructor(field, dir = \"asc\" /* Direction.ASCENDING */) {\r\n this.field = field;\r\n this.dir = dir;\r\n }\r\n}\r\nfunction orderByEquals(left, right) {\r\n return left.dir === right.dir && left.field.isEqual(right.field);\r\n}\n\n/**\r\n * @license\r\n * Copyright 2017 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/**\r\n * A version of a document in Firestore. This corresponds to the version\r\n * timestamp, such as update_time or read_time.\r\n */\r\nclass SnapshotVersion {\r\n constructor(timestamp) {\r\n this.timestamp = timestamp;\r\n }\r\n static fromTimestamp(value) {\r\n return new SnapshotVersion(value);\r\n }\r\n static min() {\r\n return new SnapshotVersion(new Timestamp(0, 0));\r\n }\r\n static max() {\r\n return new SnapshotVersion(new Timestamp(253402300799, 1e9 - 1));\r\n }\r\n compareTo(other) {\r\n return this.timestamp._compareTo(other.timestamp);\r\n }\r\n isEqual(other) {\r\n return this.timestamp.isEqual(other.timestamp);\r\n }\r\n /** Returns a number representation of the version for use in spec tests. */\r\n toMicroseconds() {\r\n // Convert to microseconds.\r\n return this.timestamp.seconds * 1e6 + this.timestamp.nanoseconds / 1000;\r\n }\r\n toString() {\r\n return 'SnapshotVersion(' + this.timestamp.toString() + ')';\r\n }\r\n toTimestamp() {\r\n return this.timestamp;\r\n }\r\n}\n\n/**\r\n * @license\r\n * Copyright 2017 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n// An immutable sorted map implementation, based on a Left-leaning Red-Black\r\n// tree.\r\nclass SortedMap {\r\n constructor(comparator, root) {\r\n this.comparator = comparator;\r\n this.root = root ? root : LLRBNode.EMPTY;\r\n }\r\n // Returns a copy of the map, with the specified key/value added or replaced.\r\n insert(key, value) {\r\n return new SortedMap(this.comparator, this.root\r\n .insert(key, value, this.comparator)\r\n .copy(null, null, LLRBNode.BLACK, null, null));\r\n }\r\n // Returns a copy of the map, with the specified key removed.\r\n remove(key) {\r\n return new SortedMap(this.comparator, this.root\r\n .remove(key, this.comparator)\r\n .copy(null, null, LLRBNode.BLACK, null, null));\r\n }\r\n // Returns the value of the node with the given key, or null.\r\n get(key) {\r\n let node = this.root;\r\n while (!node.isEmpty()) {\r\n const cmp = this.comparator(key, node.key);\r\n if (cmp === 0) {\r\n return node.value;\r\n }\r\n else if (cmp < 0) {\r\n node = node.left;\r\n }\r\n else if (cmp > 0) {\r\n node = node.right;\r\n }\r\n }\r\n return null;\r\n }\r\n // Returns the index of the element in this sorted map, or -1 if it doesn't\r\n // exist.\r\n indexOf(key) {\r\n // Number of nodes that were pruned when descending right\r\n let prunedNodes = 0;\r\n let node = this.root;\r\n while (!node.isEmpty()) {\r\n const cmp = this.comparator(key, node.key);\r\n if (cmp === 0) {\r\n return prunedNodes + node.left.size;\r\n }\r\n else if (cmp < 0) {\r\n node = node.left;\r\n }\r\n else {\r\n // Count all nodes left of the node plus the node itself\r\n prunedNodes += node.left.size + 1;\r\n node = node.right;\r\n }\r\n }\r\n // Node not found\r\n return -1;\r\n }\r\n isEmpty() {\r\n return this.root.isEmpty();\r\n }\r\n // Returns the total number of nodes in the map.\r\n get size() {\r\n return this.root.size;\r\n }\r\n // Returns the minimum key in the map.\r\n minKey() {\r\n return this.root.minKey();\r\n }\r\n // Returns the maximum key in the map.\r\n maxKey() {\r\n return this.root.maxKey();\r\n }\r\n // Traverses the map in key order and calls the specified action function\r\n // for each key/value pair. If action returns true, traversal is aborted.\r\n // Returns the first truthy value returned by action, or the last falsey\r\n // value returned by action.\r\n inorderTraversal(action) {\r\n return this.root.inorderTraversal(action);\r\n }\r\n forEach(fn) {\r\n this.inorderTraversal((k, v) => {\r\n fn(k, v);\r\n return false;\r\n });\r\n }\r\n toString() {\r\n const descriptions = [];\r\n this.inorderTraversal((k, v) => {\r\n descriptions.push(`${k}:${v}`);\r\n return false;\r\n });\r\n return `{${descriptions.join(', ')}}`;\r\n }\r\n // Traverses the map in reverse key order and calls the specified action\r\n // function for each key/value pair. If action returns true, traversal is\r\n // aborted.\r\n // Returns the first truthy value returned by action, or the last falsey\r\n // value returned by action.\r\n reverseTraversal(action) {\r\n return this.root.reverseTraversal(action);\r\n }\r\n // Returns an iterator over the SortedMap.\r\n getIterator() {\r\n return new SortedMapIterator(this.root, null, this.comparator, false);\r\n }\r\n getIteratorFrom(key) {\r\n return new SortedMapIterator(this.root, key, this.comparator, false);\r\n }\r\n getReverseIterator() {\r\n return new SortedMapIterator(this.root, null, this.comparator, true);\r\n }\r\n getReverseIteratorFrom(key) {\r\n return new SortedMapIterator(this.root, key, this.comparator, true);\r\n }\r\n} // end SortedMap\r\n// An iterator over an LLRBNode.\r\nclass SortedMapIterator {\r\n constructor(node, startKey, comparator, isReverse) {\r\n this.isReverse = isReverse;\r\n this.nodeStack = [];\r\n let cmp = 1;\r\n while (!node.isEmpty()) {\r\n cmp = startKey ? comparator(node.key, startKey) : 1;\r\n // flip the comparison if we're going in reverse\r\n if (startKey && isReverse) {\r\n cmp *= -1;\r\n }\r\n if (cmp < 0) {\r\n // This node is less than our start key. ignore it\r\n if (this.isReverse) {\r\n node = node.left;\r\n }\r\n else {\r\n node = node.right;\r\n }\r\n }\r\n else if (cmp === 0) {\r\n // This node is exactly equal to our start key. Push it on the stack,\r\n // but stop iterating;\r\n this.nodeStack.push(node);\r\n break;\r\n }\r\n else {\r\n // This node is greater than our start key, add it to the stack and move\r\n // to the next one\r\n this.nodeStack.push(node);\r\n if (this.isReverse) {\r\n node = node.right;\r\n }\r\n else {\r\n node = node.left;\r\n }\r\n }\r\n }\r\n }\r\n getNext() {\r\n let node = this.nodeStack.pop();\r\n const result = { key: node.key, value: node.value };\r\n if (this.isReverse) {\r\n node = node.left;\r\n while (!node.isEmpty()) {\r\n this.nodeStack.push(node);\r\n node = node.right;\r\n }\r\n }\r\n else {\r\n node = node.right;\r\n while (!node.isEmpty()) {\r\n this.nodeStack.push(node);\r\n node = node.left;\r\n }\r\n }\r\n return result;\r\n }\r\n hasNext() {\r\n return this.nodeStack.length > 0;\r\n }\r\n peek() {\r\n if (this.nodeStack.length === 0) {\r\n return null;\r\n }\r\n const node = this.nodeStack[this.nodeStack.length - 1];\r\n return { key: node.key, value: node.value };\r\n }\r\n} // end SortedMapIterator\r\n// Represents a node in a Left-leaning Red-Black tree.\r\nclass LLRBNode {\r\n constructor(key, value, color, left, right) {\r\n this.key = key;\r\n this.value = value;\r\n this.color = color != null ? color : LLRBNode.RED;\r\n this.left = left != null ? left : LLRBNode.EMPTY;\r\n this.right = right != null ? right : LLRBNode.EMPTY;\r\n this.size = this.left.size + 1 + this.right.size;\r\n }\r\n // Returns a copy of the current node, optionally replacing pieces of it.\r\n copy(key, value, color, left, right) {\r\n return new LLRBNode(key != null ? key : this.key, value != null ? value : this.value, color != null ? color : this.color, left != null ? left : this.left, right != null ? right : this.right);\r\n }\r\n isEmpty() {\r\n return false;\r\n }\r\n // Traverses the tree in key order and calls the specified action function\r\n // for each node. If action returns true, traversal is aborted.\r\n // Returns the first truthy value returned by action, or the last falsey\r\n // value returned by action.\r\n inorderTraversal(action) {\r\n return (this.left.inorderTraversal(action) ||\r\n action(this.key, this.value) ||\r\n this.right.inorderTraversal(action));\r\n }\r\n // Traverses the tree in reverse key order and calls the specified action\r\n // function for each node. If action returns true, traversal is aborted.\r\n // Returns the first truthy value returned by action, or the last falsey\r\n // value returned by action.\r\n reverseTraversal(action) {\r\n return (this.right.reverseTraversal(action) ||\r\n action(this.key, this.value) ||\r\n this.left.reverseTraversal(action));\r\n }\r\n // Returns the minimum node in the tree.\r\n min() {\r\n if (this.left.isEmpty()) {\r\n return this;\r\n }\r\n else {\r\n return this.left.min();\r\n }\r\n }\r\n // Returns the maximum key in the tree.\r\n minKey() {\r\n return this.min().key;\r\n }\r\n // Returns the maximum key in the tree.\r\n maxKey() {\r\n if (this.right.isEmpty()) {\r\n return this.key;\r\n }\r\n else {\r\n return this.right.maxKey();\r\n }\r\n }\r\n // Returns new tree, with the key/value added.\r\n insert(key, value, comparator) {\r\n let n = this;\r\n const cmp = comparator(key, n.key);\r\n if (cmp < 0) {\r\n n = n.copy(null, null, null, n.left.insert(key, value, comparator), null);\r\n }\r\n else if (cmp === 0) {\r\n n = n.copy(null, value, null, null, null);\r\n }\r\n else {\r\n n = n.copy(null, null, null, null, n.right.insert(key, value, comparator));\r\n }\r\n return n.fixUp();\r\n }\r\n removeMin() {\r\n if (this.left.isEmpty()) {\r\n return LLRBNode.EMPTY;\r\n }\r\n let n = this;\r\n if (!n.left.isRed() && !n.left.left.isRed()) {\r\n n = n.moveRedLeft();\r\n }\r\n n = n.copy(null, null, null, n.left.removeMin(), null);\r\n return n.fixUp();\r\n }\r\n // Returns new tree, with the specified item removed.\r\n remove(key, comparator) {\r\n let smallest;\r\n let n = this;\r\n if (comparator(key, n.key) < 0) {\r\n if (!n.left.isEmpty() && !n.left.isRed() && !n.left.left.isRed()) {\r\n n = n.moveRedLeft();\r\n }\r\n n = n.copy(null, null, null, n.left.remove(key, comparator), null);\r\n }\r\n else {\r\n if (n.left.isRed()) {\r\n n = n.rotateRight();\r\n }\r\n if (!n.right.isEmpty() && !n.right.isRed() && !n.right.left.isRed()) {\r\n n = n.moveRedRight();\r\n }\r\n if (comparator(key, n.key) === 0) {\r\n if (n.right.isEmpty()) {\r\n return LLRBNode.EMPTY;\r\n }\r\n else {\r\n smallest = n.right.min();\r\n n = n.copy(smallest.key, smallest.value, null, null, n.right.removeMin());\r\n }\r\n }\r\n n = n.copy(null, null, null, null, n.right.remove(key, comparator));\r\n }\r\n return n.fixUp();\r\n }\r\n isRed() {\r\n return this.color;\r\n }\r\n // Returns new tree after performing any needed rotations.\r\n fixUp() {\r\n let n = this;\r\n if (n.right.isRed() && !n.left.isRed()) {\r\n n = n.rotateLeft();\r\n }\r\n if (n.left.isRed() && n.left.left.isRed()) {\r\n n = n.rotateRight();\r\n }\r\n if (n.left.isRed() && n.right.isRed()) {\r\n n = n.colorFlip();\r\n }\r\n return n;\r\n }\r\n moveRedLeft() {\r\n let n = this.colorFlip();\r\n if (n.right.left.isRed()) {\r\n n = n.copy(null, null, null, null, n.right.rotateRight());\r\n n = n.rotateLeft();\r\n n = n.colorFlip();\r\n }\r\n return n;\r\n }\r\n moveRedRight() {\r\n let n = this.colorFlip();\r\n if (n.left.left.isRed()) {\r\n n = n.rotateRight();\r\n n = n.colorFlip();\r\n }\r\n return n;\r\n }\r\n rotateLeft() {\r\n const nl = this.copy(null, null, LLRBNode.RED, null, this.right.left);\r\n return this.right.copy(null, null, this.color, nl, null);\r\n }\r\n rotateRight() {\r\n const nr = this.copy(null, null, LLRBNode.RED, this.left.right, null);\r\n return this.left.copy(null, null, this.color, null, nr);\r\n }\r\n colorFlip() {\r\n const left = this.left.copy(null, null, !this.left.color, null, null);\r\n const right = this.right.copy(null, null, !this.right.color, null, null);\r\n return this.copy(null, null, !this.color, left, right);\r\n }\r\n // For testing.\r\n checkMaxDepth() {\r\n const blackDepth = this.check();\r\n if (Math.pow(2.0, blackDepth) <= this.size + 1) {\r\n return true;\r\n }\r\n else {\r\n return false;\r\n }\r\n }\r\n // In a balanced RB tree, the black-depth (number of black nodes) from root to\r\n // leaves is equal on both sides. This function verifies that or asserts.\r\n check() {\r\n if (this.isRed() && this.left.isRed()) {\r\n throw fail();\r\n }\r\n if (this.right.isRed()) {\r\n throw fail();\r\n }\r\n const blackDepth = this.left.check();\r\n if (blackDepth !== this.right.check()) {\r\n throw fail();\r\n }\r\n else {\r\n return blackDepth + (this.isRed() ? 0 : 1);\r\n }\r\n }\r\n} // end LLRBNode\r\n// Empty node is shared between all LLRB trees.\r\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\r\nLLRBNode.EMPTY = null;\r\nLLRBNode.RED = true;\r\nLLRBNode.BLACK = false;\r\n// Represents an empty node (a leaf node in the Red-Black Tree).\r\nclass LLRBEmptyNode {\r\n constructor() {\r\n this.size = 0;\r\n }\r\n get key() {\r\n throw fail();\r\n }\r\n get value() {\r\n throw fail();\r\n }\r\n get color() {\r\n throw fail();\r\n }\r\n get left() {\r\n throw fail();\r\n }\r\n get right() {\r\n throw fail();\r\n }\r\n // Returns a copy of the current node.\r\n copy(key, value, color, left, right) {\r\n return this;\r\n }\r\n // Returns a copy of the tree, with the specified key/value added.\r\n insert(key, value, comparator) {\r\n return new LLRBNode(key, value);\r\n }\r\n // Returns a copy of the tree, with the specified key removed.\r\n remove(key, comparator) {\r\n return this;\r\n }\r\n isEmpty() {\r\n return true;\r\n }\r\n inorderTraversal(action) {\r\n return false;\r\n }\r\n reverseTraversal(action) {\r\n return false;\r\n }\r\n minKey() {\r\n return null;\r\n }\r\n maxKey() {\r\n return null;\r\n }\r\n isRed() {\r\n return false;\r\n }\r\n // For testing.\r\n checkMaxDepth() {\r\n return true;\r\n }\r\n check() {\r\n return 0;\r\n }\r\n} // end LLRBEmptyNode\r\nLLRBNode.EMPTY = new LLRBEmptyNode();\n\n/**\r\n * @license\r\n * Copyright 2017 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/**\r\n * SortedSet is an immutable (copy-on-write) collection that holds elements\r\n * in order specified by the provided comparator.\r\n *\r\n * NOTE: if provided comparator returns 0 for two elements, we consider them to\r\n * be equal!\r\n */\r\nclass SortedSet {\r\n constructor(comparator) {\r\n this.comparator = comparator;\r\n this.data = new SortedMap(this.comparator);\r\n }\r\n has(elem) {\r\n return this.data.get(elem) !== null;\r\n }\r\n first() {\r\n return this.data.minKey();\r\n }\r\n last() {\r\n return this.data.maxKey();\r\n }\r\n get size() {\r\n return this.data.size;\r\n }\r\n indexOf(elem) {\r\n return this.data.indexOf(elem);\r\n }\r\n /** Iterates elements in order defined by \"comparator\" */\r\n forEach(cb) {\r\n this.data.inorderTraversal((k, v) => {\r\n cb(k);\r\n return false;\r\n });\r\n }\r\n /** Iterates over `elem`s such that: range[0] <= elem < range[1]. */\r\n forEachInRange(range, cb) {\r\n const iter = this.data.getIteratorFrom(range[0]);\r\n while (iter.hasNext()) {\r\n const elem = iter.getNext();\r\n if (this.comparator(elem.key, range[1]) >= 0) {\r\n return;\r\n }\r\n cb(elem.key);\r\n }\r\n }\r\n /**\r\n * Iterates over `elem`s such that: start <= elem until false is returned.\r\n */\r\n forEachWhile(cb, start) {\r\n let iter;\r\n if (start !== undefined) {\r\n iter = this.data.getIteratorFrom(start);\r\n }\r\n else {\r\n iter = this.data.getIterator();\r\n }\r\n while (iter.hasNext()) {\r\n const elem = iter.getNext();\r\n const result = cb(elem.key);\r\n if (!result) {\r\n return;\r\n }\r\n }\r\n }\r\n /** Finds the least element greater than or equal to `elem`. */\r\n firstAfterOrEqual(elem) {\r\n const iter = this.data.getIteratorFrom(elem);\r\n return iter.hasNext() ? iter.getNext().key : null;\r\n }\r\n getIterator() {\r\n return new SortedSetIterator(this.data.getIterator());\r\n }\r\n getIteratorFrom(key) {\r\n return new SortedSetIterator(this.data.getIteratorFrom(key));\r\n }\r\n /** Inserts or updates an element */\r\n add(elem) {\r\n return this.copy(this.data.remove(elem).insert(elem, true));\r\n }\r\n /** Deletes an element */\r\n delete(elem) {\r\n if (!this.has(elem)) {\r\n return this;\r\n }\r\n return this.copy(this.data.remove(elem));\r\n }\r\n isEmpty() {\r\n return this.data.isEmpty();\r\n }\r\n unionWith(other) {\r\n let result = this;\r\n // Make sure `result` always refers to the larger one of the two sets.\r\n if (result.size < other.size) {\r\n result = other;\r\n other = this;\r\n }\r\n other.forEach(elem => {\r\n result = result.add(elem);\r\n });\r\n return result;\r\n }\r\n isEqual(other) {\r\n if (!(other instanceof SortedSet)) {\r\n return false;\r\n }\r\n if (this.size !== other.size) {\r\n return false;\r\n }\r\n const thisIt = this.data.getIterator();\r\n const otherIt = other.data.getIterator();\r\n while (thisIt.hasNext()) {\r\n const thisElem = thisIt.getNext().key;\r\n const otherElem = otherIt.getNext().key;\r\n if (this.comparator(thisElem, otherElem) !== 0) {\r\n return false;\r\n }\r\n }\r\n return true;\r\n }\r\n toArray() {\r\n const res = [];\r\n this.forEach(targetId => {\r\n res.push(targetId);\r\n });\r\n return res;\r\n }\r\n toString() {\r\n const result = [];\r\n this.forEach(elem => result.push(elem));\r\n return 'SortedSet(' + result.toString() + ')';\r\n }\r\n copy(data) {\r\n const result = new SortedSet(this.comparator);\r\n result.data = data;\r\n return result;\r\n }\r\n}\r\nclass SortedSetIterator {\r\n constructor(iter) {\r\n this.iter = iter;\r\n }\r\n getNext() {\r\n return this.iter.getNext().key;\r\n }\r\n hasNext() {\r\n return this.iter.hasNext();\r\n }\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/**\r\n * Provides a set of fields that can be used to partially patch a document.\r\n * FieldMask is used in conjunction with ObjectValue.\r\n * Examples:\r\n * foo - Overwrites foo entirely with the provided value. If foo is not\r\n * present in the companion ObjectValue, the field is deleted.\r\n * foo.bar - Overwrites only the field bar of the object foo.\r\n * If foo is not an object, foo is replaced with an object\r\n * containing foo\r\n */\r\nclass FieldMask {\r\n constructor(fields) {\r\n this.fields = fields;\r\n // TODO(dimond): validation of FieldMask\r\n // Sort the field mask to support `FieldMask.isEqual()` and assert below.\r\n fields.sort(FieldPath$1.comparator);\r\n }\r\n static empty() {\r\n return new FieldMask([]);\r\n }\r\n /**\r\n * Returns a new FieldMask object that is the result of adding all the given\r\n * fields paths to this field mask.\r\n */\r\n unionWith(extraFields) {\r\n let mergedMaskSet = new SortedSet(FieldPath$1.comparator);\r\n for (const fieldPath of this.fields) {\r\n mergedMaskSet = mergedMaskSet.add(fieldPath);\r\n }\r\n for (const fieldPath of extraFields) {\r\n mergedMaskSet = mergedMaskSet.add(fieldPath);\r\n }\r\n return new FieldMask(mergedMaskSet.toArray());\r\n }\r\n /**\r\n * Verifies that `fieldPath` is included by at least one field in this field\r\n * mask.\r\n *\r\n * This is an O(n) operation, where `n` is the size of the field mask.\r\n */\r\n covers(fieldPath) {\r\n for (const fieldMaskPath of this.fields) {\r\n if (fieldMaskPath.isPrefixOf(fieldPath)) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n }\r\n isEqual(other) {\r\n return arrayEquals(this.fields, other.fields, (l, r) => l.isEqual(r));\r\n }\r\n}\n\n/**\r\n * @license\r\n * Copyright 2017 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/**\r\n * An ObjectValue represents a MapValue in the Firestore Proto and offers the\r\n * ability to add and remove fields (via the ObjectValueBuilder).\r\n */\r\nclass ObjectValue {\r\n constructor(value) {\r\n this.value = value;\r\n }\r\n static empty() {\r\n return new ObjectValue({ mapValue: {} });\r\n }\r\n /**\r\n * Returns the value at the given path or null.\r\n *\r\n * @param path - the path to search\r\n * @returns The value at the path or null if the path is not set.\r\n */\r\n field(path) {\r\n if (path.isEmpty()) {\r\n return this.value;\r\n }\r\n else {\r\n let currentLevel = this.value;\r\n for (let i = 0; i < path.length - 1; ++i) {\r\n currentLevel = (currentLevel.mapValue.fields || {})[path.get(i)];\r\n if (!isMapValue(currentLevel)) {\r\n return null;\r\n }\r\n }\r\n currentLevel = (currentLevel.mapValue.fields || {})[path.lastSegment()];\r\n return currentLevel || null;\r\n }\r\n }\r\n /**\r\n * Sets the field to the provided value.\r\n *\r\n * @param path - The field path to set.\r\n * @param value - The value to set.\r\n */\r\n set(path, value) {\r\n const fieldsMap = this.getFieldsMap(path.popLast());\r\n fieldsMap[path.lastSegment()] = deepClone(value);\r\n }\r\n /**\r\n * Sets the provided fields to the provided values.\r\n *\r\n * @param data - A map of fields to values (or null for deletes).\r\n */\r\n setAll(data) {\r\n let parent = FieldPath$1.emptyPath();\r\n let upserts = {};\r\n let deletes = [];\r\n data.forEach((value, path) => {\r\n if (!parent.isImmediateParentOf(path)) {\r\n // Insert the accumulated changes at this parent location\r\n const fieldsMap = this.getFieldsMap(parent);\r\n this.applyChanges(fieldsMap, upserts, deletes);\r\n upserts = {};\r\n deletes = [];\r\n parent = path.popLast();\r\n }\r\n if (value) {\r\n upserts[path.lastSegment()] = deepClone(value);\r\n }\r\n else {\r\n deletes.push(path.lastSegment());\r\n }\r\n });\r\n const fieldsMap = this.getFieldsMap(parent);\r\n this.applyChanges(fieldsMap, upserts, deletes);\r\n }\r\n /**\r\n * Removes the field at the specified path. If there is no field at the\r\n * specified path, nothing is changed.\r\n *\r\n * @param path - The field path to remove.\r\n */\r\n delete(path) {\r\n const nestedValue = this.field(path.popLast());\r\n if (isMapValue(nestedValue) && nestedValue.mapValue.fields) {\r\n delete nestedValue.mapValue.fields[path.lastSegment()];\r\n }\r\n }\r\n isEqual(other) {\r\n return valueEquals(this.value, other.value);\r\n }\r\n /**\r\n * Returns the map that contains the leaf element of `path`. If the parent\r\n * entry does not yet exist, or if it is not a map, a new map will be created.\r\n */\r\n getFieldsMap(path) {\r\n let current = this.value;\r\n if (!current.mapValue.fields) {\r\n current.mapValue = { fields: {} };\r\n }\r\n for (let i = 0; i < path.length; ++i) {\r\n let next = current.mapValue.fields[path.get(i)];\r\n if (!isMapValue(next) || !next.mapValue.fields) {\r\n next = { mapValue: { fields: {} } };\r\n current.mapValue.fields[path.get(i)] = next;\r\n }\r\n current = next;\r\n }\r\n return current.mapValue.fields;\r\n }\r\n /**\r\n * Modifies `fieldsMap` by adding, replacing or deleting the specified\r\n * entries.\r\n */\r\n applyChanges(fieldsMap, inserts, deletes) {\r\n forEach(inserts, (key, val) => (fieldsMap[key] = val));\r\n for (const field of deletes) {\r\n delete fieldsMap[field];\r\n }\r\n }\r\n clone() {\r\n return new ObjectValue(deepClone(this.value));\r\n }\r\n}\n\n/**\r\n * @license\r\n * Copyright 2017 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/**\r\n * Represents a document in Firestore with a key, version, data and whether it\r\n * has local mutations applied to it.\r\n *\r\n * Documents can transition between states via `convertToFoundDocument()`,\r\n * `convertToNoDocument()` and `convertToUnknownDocument()`. If a document does\r\n * not transition to one of these states even after all mutations have been\r\n * applied, `isValidDocument()` returns false and the document should be removed\r\n * from all views.\r\n */\r\nclass MutableDocument {\r\n constructor(key, documentType, version, readTime, createTime, data, documentState) {\r\n this.key = key;\r\n this.documentType = documentType;\r\n this.version = version;\r\n this.readTime = readTime;\r\n this.createTime = createTime;\r\n this.data = data;\r\n this.documentState = documentState;\r\n }\r\n /**\r\n * Creates a document with no known version or data, but which can serve as\r\n * base document for mutations.\r\n */\r\n static newInvalidDocument(documentKey) {\r\n return new MutableDocument(documentKey, 0 /* DocumentType.INVALID */, \r\n /* version */ SnapshotVersion.min(), \r\n /* readTime */ SnapshotVersion.min(), \r\n /* createTime */ SnapshotVersion.min(), ObjectValue.empty(), 0 /* DocumentState.SYNCED */);\r\n }\r\n /**\r\n * Creates a new document that is known to exist with the given data at the\r\n * given version.\r\n */\r\n static newFoundDocument(documentKey, version, createTime, value) {\r\n return new MutableDocument(documentKey, 1 /* DocumentType.FOUND_DOCUMENT */, \r\n /* version */ version, \r\n /* readTime */ SnapshotVersion.min(), \r\n /* createTime */ createTime, value, 0 /* DocumentState.SYNCED */);\r\n }\r\n /** Creates a new document that is known to not exist at the given version. */\r\n static newNoDocument(documentKey, version) {\r\n return new MutableDocument(documentKey, 2 /* DocumentType.NO_DOCUMENT */, \r\n /* version */ version, \r\n /* readTime */ SnapshotVersion.min(), \r\n /* createTime */ SnapshotVersion.min(), ObjectValue.empty(), 0 /* DocumentState.SYNCED */);\r\n }\r\n /**\r\n * Creates a new document that is known to exist at the given version but\r\n * whose data is not known (e.g. a document that was updated without a known\r\n * base document).\r\n */\r\n static newUnknownDocument(documentKey, version) {\r\n return new MutableDocument(documentKey, 3 /* DocumentType.UNKNOWN_DOCUMENT */, \r\n /* version */ version, \r\n /* readTime */ SnapshotVersion.min(), \r\n /* createTime */ SnapshotVersion.min(), ObjectValue.empty(), 2 /* DocumentState.HAS_COMMITTED_MUTATIONS */);\r\n }\r\n /**\r\n * Changes the document type to indicate that it exists and that its version\r\n * and data are known.\r\n */\r\n convertToFoundDocument(version, value) {\r\n // If a document is switching state from being an invalid or deleted\r\n // document to a valid (FOUND_DOCUMENT) document, either due to receiving an\r\n // update from Watch or due to applying a local set mutation on top\r\n // of a deleted document, our best guess about its createTime would be the\r\n // version at which the document transitioned to a FOUND_DOCUMENT.\r\n if (this.createTime.isEqual(SnapshotVersion.min()) &&\r\n (this.documentType === 2 /* DocumentType.NO_DOCUMENT */ ||\r\n this.documentType === 0 /* DocumentType.INVALID */)) {\r\n this.createTime = version;\r\n }\r\n this.version = version;\r\n this.documentType = 1 /* DocumentType.FOUND_DOCUMENT */;\r\n this.data = value;\r\n this.documentState = 0 /* DocumentState.SYNCED */;\r\n return this;\r\n }\r\n /**\r\n * Changes the document type to indicate that it doesn't exist at the given\r\n * version.\r\n */\r\n convertToNoDocument(version) {\r\n this.version = version;\r\n this.documentType = 2 /* DocumentType.NO_DOCUMENT */;\r\n this.data = ObjectValue.empty();\r\n this.documentState = 0 /* DocumentState.SYNCED */;\r\n return this;\r\n }\r\n /**\r\n * Changes the document type to indicate that it exists at a given version but\r\n * that its data is not known (e.g. a document that was updated without a known\r\n * base document).\r\n */\r\n convertToUnknownDocument(version) {\r\n this.version = version;\r\n this.documentType = 3 /* DocumentType.UNKNOWN_DOCUMENT */;\r\n this.data = ObjectValue.empty();\r\n this.documentState = 2 /* DocumentState.HAS_COMMITTED_MUTATIONS */;\r\n return this;\r\n }\r\n setHasCommittedMutations() {\r\n this.documentState = 2 /* DocumentState.HAS_COMMITTED_MUTATIONS */;\r\n return this;\r\n }\r\n setHasLocalMutations() {\r\n this.documentState = 1 /* DocumentState.HAS_LOCAL_MUTATIONS */;\r\n this.version = SnapshotVersion.min();\r\n return this;\r\n }\r\n setReadTime(readTime) {\r\n this.readTime = readTime;\r\n return this;\r\n }\r\n get hasLocalMutations() {\r\n return this.documentState === 1 /* DocumentState.HAS_LOCAL_MUTATIONS */;\r\n }\r\n get hasCommittedMutations() {\r\n return this.documentState === 2 /* DocumentState.HAS_COMMITTED_MUTATIONS */;\r\n }\r\n get hasPendingWrites() {\r\n return this.hasLocalMutations || this.hasCommittedMutations;\r\n }\r\n isValidDocument() {\r\n return this.documentType !== 0 /* DocumentType.INVALID */;\r\n }\r\n isFoundDocument() {\r\n return this.documentType === 1 /* DocumentType.FOUND_DOCUMENT */;\r\n }\r\n isNoDocument() {\r\n return this.documentType === 2 /* DocumentType.NO_DOCUMENT */;\r\n }\r\n isUnknownDocument() {\r\n return this.documentType === 3 /* DocumentType.UNKNOWN_DOCUMENT */;\r\n }\r\n isEqual(other) {\r\n return (other instanceof MutableDocument &&\r\n this.key.isEqual(other.key) &&\r\n this.version.isEqual(other.version) &&\r\n this.documentType === other.documentType &&\r\n this.documentState === other.documentState &&\r\n this.data.isEqual(other.data));\r\n }\r\n mutableCopy() {\r\n return new MutableDocument(this.key, this.documentType, this.version, this.readTime, this.createTime, this.data.clone(), this.documentState);\r\n }\r\n toString() {\r\n return (`Document(${this.key}, ${this.version}, ${JSON.stringify(this.data.value)}, ` +\r\n `{createTime: ${this.createTime}}), ` +\r\n `{documentType: ${this.documentType}}), ` +\r\n `{documentState: ${this.documentState}})`);\r\n }\r\n}\n\n/**\r\n * @license\r\n * Copyright 2019 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n// Visible for testing\r\nclass TargetImpl {\r\n constructor(path, collectionGroup = null, orderBy = [], filters = [], limit = null, startAt = null, endAt = null) {\r\n this.path = path;\r\n this.collectionGroup = collectionGroup;\r\n this.orderBy = orderBy;\r\n this.filters = filters;\r\n this.limit = limit;\r\n this.startAt = startAt;\r\n this.endAt = endAt;\r\n this.memoizedCanonicalId = null;\r\n }\r\n}\r\n/**\r\n * Initializes a Target with a path and optional additional query constraints.\r\n * Path must currently be empty if this is a collection group query.\r\n *\r\n * NOTE: you should always construct `Target` from `Query.toTarget` instead of\r\n * using this factory method, because `Query` provides an implicit `orderBy`\r\n * property.\r\n */\r\nfunction newTarget(path, collectionGroup = null, orderBy = [], filters = [], limit = null, startAt = null, endAt = null) {\r\n return new TargetImpl(path, collectionGroup, orderBy, filters, limit, startAt, endAt);\r\n}\r\nfunction targetEquals(left, right) {\r\n if (left.limit !== right.limit) {\r\n return false;\r\n }\r\n if (left.orderBy.length !== right.orderBy.length) {\r\n return false;\r\n }\r\n for (let i = 0; i < left.orderBy.length; i++) {\r\n if (!orderByEquals(left.orderBy[i], right.orderBy[i])) {\r\n return false;\r\n }\r\n }\r\n if (left.filters.length !== right.filters.length) {\r\n return false;\r\n }\r\n for (let i = 0; i < left.filters.length; i++) {\r\n if (!filterEquals(left.filters[i], right.filters[i])) {\r\n return false;\r\n }\r\n }\r\n if (left.collectionGroup !== right.collectionGroup) {\r\n return false;\r\n }\r\n if (!left.path.isEqual(right.path)) {\r\n return false;\r\n }\r\n if (!boundEquals(left.startAt, right.startAt)) {\r\n return false;\r\n }\r\n return boundEquals(left.endAt, right.endAt);\r\n}\n\n/**\r\n * @license\r\n * Copyright 2017 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/**\r\n * Query encapsulates all the query attributes we support in the SDK. It can\r\n * be run against the LocalStore, as well as be converted to a `Target` to\r\n * query the RemoteStore results.\r\n *\r\n * Visible for testing.\r\n */\r\nclass QueryImpl {\r\n /**\r\n * Initializes a Query with a path and optional additional query constraints.\r\n * Path must currently be empty if this is a collection group query.\r\n */\r\n constructor(path, collectionGroup = null, explicitOrderBy = [], filters = [], limit = null, limitType = \"F\" /* LimitType.First */, startAt = null, endAt = null) {\r\n this.path = path;\r\n this.collectionGroup = collectionGroup;\r\n this.explicitOrderBy = explicitOrderBy;\r\n this.filters = filters;\r\n this.limit = limit;\r\n this.limitType = limitType;\r\n this.startAt = startAt;\r\n this.endAt = endAt;\r\n this.memoizedOrderBy = null;\r\n // The corresponding `Target` of this `Query` instance.\r\n this.memoizedTarget = null;\r\n if (this.startAt) ;\r\n if (this.endAt) ;\r\n }\r\n}\r\n/** Creates a new Query for a query that matches all documents at `path` */\r\nfunction newQueryForPath(path) {\r\n return new QueryImpl(path);\r\n}\r\nfunction getFirstOrderByField(query) {\r\n return query.explicitOrderBy.length > 0\r\n ? query.explicitOrderBy[0].field\r\n : null;\r\n}\r\nfunction getInequalityFilterField(query) {\r\n for (const filter of query.filters) {\r\n const result = filter.getFirstInequalityField();\r\n if (result !== null) {\r\n return result;\r\n }\r\n }\r\n return null;\r\n}\r\n/**\r\n * Creates a new Query for a collection group query that matches all documents\r\n * within the provided collection group.\r\n */\r\nfunction newQueryForCollectionGroup(collectionId) {\r\n return new QueryImpl(ResourcePath.emptyPath(), collectionId);\r\n}\r\n/**\r\n * Returns whether the query matches a collection group rather than a specific\r\n * collection.\r\n */\r\nfunction isCollectionGroupQuery(query) {\r\n return query.collectionGroup !== null;\r\n}\r\n/**\r\n * Returns the implicit order by constraint that is used to execute the Query,\r\n * which can be different from the order by constraints the user provided (e.g.\r\n * the SDK and backend always orders by `__name__`).\r\n */\r\nfunction queryOrderBy(query) {\r\n const queryImpl = debugCast(query);\r\n if (queryImpl.memoizedOrderBy === null) {\r\n queryImpl.memoizedOrderBy = [];\r\n const inequalityField = getInequalityFilterField(queryImpl);\r\n const firstOrderByField = getFirstOrderByField(queryImpl);\r\n if (inequalityField !== null && firstOrderByField === null) {\r\n // In order to implicitly add key ordering, we must also add the\r\n // inequality filter field for it to be a valid query.\r\n // Note that the default inequality field and key ordering is ascending.\r\n if (!inequalityField.isKeyField()) {\r\n queryImpl.memoizedOrderBy.push(new OrderBy(inequalityField));\r\n }\r\n queryImpl.memoizedOrderBy.push(new OrderBy(FieldPath$1.keyField(), \"asc\" /* Direction.ASCENDING */));\r\n }\r\n else {\r\n let foundKeyOrdering = false;\r\n for (const orderBy of queryImpl.explicitOrderBy) {\r\n queryImpl.memoizedOrderBy.push(orderBy);\r\n if (orderBy.field.isKeyField()) {\r\n foundKeyOrdering = true;\r\n }\r\n }\r\n if (!foundKeyOrdering) {\r\n // The order of the implicit key ordering always matches the last\r\n // explicit order by\r\n const lastDirection = queryImpl.explicitOrderBy.length > 0\r\n ? queryImpl.explicitOrderBy[queryImpl.explicitOrderBy.length - 1]\r\n .dir\r\n : \"asc\" /* Direction.ASCENDING */;\r\n queryImpl.memoizedOrderBy.push(new OrderBy(FieldPath$1.keyField(), lastDirection));\r\n }\r\n }\r\n }\r\n return queryImpl.memoizedOrderBy;\r\n}\r\n/**\r\n * Converts this `Query` instance to it's corresponding `Target` representation.\r\n */\r\nfunction queryToTarget(query) {\r\n const queryImpl = debugCast(query);\r\n if (!queryImpl.memoizedTarget) {\r\n if (queryImpl.limitType === \"F\" /* LimitType.First */) {\r\n queryImpl.memoizedTarget = newTarget(queryImpl.path, queryImpl.collectionGroup, queryOrderBy(queryImpl), queryImpl.filters, queryImpl.limit, queryImpl.startAt, queryImpl.endAt);\r\n }\r\n else {\r\n // Flip the orderBy directions since we want the last results\r\n const orderBys = [];\r\n for (const orderBy of queryOrderBy(queryImpl)) {\r\n const dir = orderBy.dir === \"desc\" /* Direction.DESCENDING */\r\n ? \"asc\" /* Direction.ASCENDING */\r\n : \"desc\" /* Direction.DESCENDING */;\r\n orderBys.push(new OrderBy(orderBy.field, dir));\r\n }\r\n // We need to swap the cursors to match the now-flipped query ordering.\r\n const startAt = queryImpl.endAt\r\n ? new Bound(queryImpl.endAt.position, queryImpl.endAt.inclusive)\r\n : null;\r\n const endAt = queryImpl.startAt\r\n ? new Bound(queryImpl.startAt.position, queryImpl.startAt.inclusive)\r\n : null;\r\n // Now return as a LimitType.First query.\r\n queryImpl.memoizedTarget = newTarget(queryImpl.path, queryImpl.collectionGroup, orderBys, queryImpl.filters, queryImpl.limit, startAt, endAt);\r\n }\r\n }\r\n return queryImpl.memoizedTarget;\r\n}\r\nfunction queryWithAddedFilter(query, filter) {\r\n filter.getFirstInequalityField();\r\n getInequalityFilterField(query);\r\n const newFilters = query.filters.concat([filter]);\r\n return new QueryImpl(query.path, query.collectionGroup, query.explicitOrderBy.slice(), newFilters, query.limit, query.limitType, query.startAt, query.endAt);\r\n}\r\nfunction queryWithAddedOrderBy(query, orderBy) {\r\n // TODO(dimond): validate that orderBy does not list the same key twice.\r\n const newOrderBy = query.explicitOrderBy.concat([orderBy]);\r\n return new QueryImpl(query.path, query.collectionGroup, newOrderBy, query.filters.slice(), query.limit, query.limitType, query.startAt, query.endAt);\r\n}\r\nfunction queryWithLimit(query, limit, limitType) {\r\n return new QueryImpl(query.path, query.collectionGroup, query.explicitOrderBy.slice(), query.filters.slice(), limit, limitType, query.startAt, query.endAt);\r\n}\r\nfunction queryWithStartAt(query, bound) {\r\n return new QueryImpl(query.path, query.collectionGroup, query.explicitOrderBy.slice(), query.filters.slice(), query.limit, query.limitType, bound, query.endAt);\r\n}\r\nfunction queryWithEndAt(query, bound) {\r\n return new QueryImpl(query.path, query.collectionGroup, query.explicitOrderBy.slice(), query.filters.slice(), query.limit, query.limitType, query.startAt, bound);\r\n}\r\nfunction queryEquals(left, right) {\r\n return (targetEquals(queryToTarget(left), queryToTarget(right)) &&\r\n left.limitType === right.limitType);\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/**\r\n * Returns an DoubleValue for `value` that is encoded based the serializer's\r\n * `useProto3Json` setting.\r\n */\r\nfunction toDouble(serializer, value) {\r\n if (serializer.useProto3Json) {\r\n if (isNaN(value)) {\r\n return { doubleValue: 'NaN' };\r\n }\r\n else if (value === Infinity) {\r\n return { doubleValue: 'Infinity' };\r\n }\r\n else if (value === -Infinity) {\r\n return { doubleValue: '-Infinity' };\r\n }\r\n }\r\n return { doubleValue: isNegativeZero(value) ? '-0' : value };\r\n}\r\n/**\r\n * Returns an IntegerValue for `value`.\r\n */\r\nfunction toInteger(value) {\r\n return { integerValue: '' + value };\r\n}\r\n/**\r\n * Returns a value for a number that's appropriate to put into a proto.\r\n * The return value is an IntegerValue if it can safely represent the value,\r\n * otherwise a DoubleValue is returned.\r\n */\r\nfunction toNumber(serializer, value) {\r\n return isSafeInteger(value) ? toInteger(value) : toDouble(serializer, value);\r\n}\n\n/**\r\n * @license\r\n * Copyright 2018 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/** Used to represent a field transform on a mutation. */\r\nclass TransformOperation {\r\n constructor() {\r\n // Make sure that the structural type of `TransformOperation` is unique.\r\n // See https://github.com/microsoft/TypeScript/issues/5451\r\n this._ = undefined;\r\n }\r\n}\r\n/** Transforms a value into a server-generated timestamp. */\r\nclass ServerTimestampTransform extends TransformOperation {\r\n}\r\n/** Transforms an array value via a union operation. */\r\nclass ArrayUnionTransformOperation extends TransformOperation {\r\n constructor(elements) {\r\n super();\r\n this.elements = elements;\r\n }\r\n}\r\n/** Transforms an array value via a remove operation. */\r\nclass ArrayRemoveTransformOperation extends TransformOperation {\r\n constructor(elements) {\r\n super();\r\n this.elements = elements;\r\n }\r\n}\r\n/**\r\n * Implements the backend semantics for locally computed NUMERIC_ADD (increment)\r\n * transforms. Converts all field values to integers or doubles, but unlike the\r\n * backend does not cap integer values at 2^63. Instead, JavaScript number\r\n * arithmetic is used and precision loss can occur for values greater than 2^53.\r\n */\r\nclass NumericIncrementTransformOperation extends TransformOperation {\r\n constructor(serializer, operand) {\r\n super();\r\n this.serializer = serializer;\r\n this.operand = operand;\r\n }\r\n}\n\n/**\r\n * @license\r\n * Copyright 2017 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/** A field path and the TransformOperation to perform upon it. */\r\nclass FieldTransform {\r\n constructor(field, transform) {\r\n this.field = field;\r\n this.transform = transform;\r\n }\r\n}\r\n/**\r\n * Encodes a precondition for a mutation. This follows the model that the\r\n * backend accepts with the special case of an explicit \"empty\" precondition\r\n * (meaning no precondition).\r\n */\r\nclass Precondition {\r\n constructor(updateTime, exists) {\r\n this.updateTime = updateTime;\r\n this.exists = exists;\r\n }\r\n /** Creates a new empty Precondition. */\r\n static none() {\r\n return new Precondition();\r\n }\r\n /** Creates a new Precondition with an exists flag. */\r\n static exists(exists) {\r\n return new Precondition(undefined, exists);\r\n }\r\n /** Creates a new Precondition based on a version a document exists at. */\r\n static updateTime(version) {\r\n return new Precondition(version);\r\n }\r\n /** Returns whether this Precondition is empty. */\r\n get isNone() {\r\n return this.updateTime === undefined && this.exists === undefined;\r\n }\r\n isEqual(other) {\r\n return (this.exists === other.exists &&\r\n (this.updateTime\r\n ? !!other.updateTime && this.updateTime.isEqual(other.updateTime)\r\n : !other.updateTime));\r\n }\r\n}\r\n/**\r\n * A mutation describes a self-contained change to a document. Mutations can\r\n * create, replace, delete, and update subsets of documents.\r\n *\r\n * Mutations not only act on the value of the document but also its version.\r\n *\r\n * For local mutations (mutations that haven't been committed yet), we preserve\r\n * the existing version for Set and Patch mutations. For Delete mutations, we\r\n * reset the version to 0.\r\n *\r\n * Here's the expected transition table.\r\n *\r\n * MUTATION APPLIED TO RESULTS IN\r\n *\r\n * SetMutation Document(v3) Document(v3)\r\n * SetMutation NoDocument(v3) Document(v0)\r\n * SetMutation InvalidDocument(v0) Document(v0)\r\n * PatchMutation Document(v3) Document(v3)\r\n * PatchMutation NoDocument(v3) NoDocument(v3)\r\n * PatchMutation InvalidDocument(v0) UnknownDocument(v3)\r\n * DeleteMutation Document(v3) NoDocument(v0)\r\n * DeleteMutation NoDocument(v3) NoDocument(v0)\r\n * DeleteMutation InvalidDocument(v0) NoDocument(v0)\r\n *\r\n * For acknowledged mutations, we use the updateTime of the WriteResponse as\r\n * the resulting version for Set and Patch mutations. As deletes have no\r\n * explicit update time, we use the commitTime of the WriteResponse for\r\n * Delete mutations.\r\n *\r\n * If a mutation is acknowledged by the backend but fails the precondition check\r\n * locally, we transition to an `UnknownDocument` and rely on Watch to send us\r\n * the updated version.\r\n *\r\n * Field transforms are used only with Patch and Set Mutations. We use the\r\n * `updateTransforms` message to store transforms, rather than the `transforms`s\r\n * messages.\r\n *\r\n * ## Subclassing Notes\r\n *\r\n * Every type of mutation needs to implement its own applyToRemoteDocument() and\r\n * applyToLocalView() to implement the actual behavior of applying the mutation\r\n * to some source document (see `setMutationApplyToRemoteDocument()` for an\r\n * example).\r\n */\r\nclass Mutation {\r\n}\r\n/**\r\n * A mutation that creates or replaces the document at the given key with the\r\n * object value contents.\r\n */\r\nclass SetMutation extends Mutation {\r\n constructor(key, value, precondition, fieldTransforms = []) {\r\n super();\r\n this.key = key;\r\n this.value = value;\r\n this.precondition = precondition;\r\n this.fieldTransforms = fieldTransforms;\r\n this.type = 0 /* MutationType.Set */;\r\n }\r\n getFieldMask() {\r\n return null;\r\n }\r\n}\r\n/**\r\n * A mutation that modifies fields of the document at the given key with the\r\n * given values. The values are applied through a field mask:\r\n *\r\n * * When a field is in both the mask and the values, the corresponding field\r\n * is updated.\r\n * * When a field is in neither the mask nor the values, the corresponding\r\n * field is unmodified.\r\n * * When a field is in the mask but not in the values, the corresponding field\r\n * is deleted.\r\n * * When a field is not in the mask but is in the values, the values map is\r\n * ignored.\r\n */\r\nclass PatchMutation extends Mutation {\r\n constructor(key, data, fieldMask, precondition, fieldTransforms = []) {\r\n super();\r\n this.key = key;\r\n this.data = data;\r\n this.fieldMask = fieldMask;\r\n this.precondition = precondition;\r\n this.fieldTransforms = fieldTransforms;\r\n this.type = 1 /* MutationType.Patch */;\r\n }\r\n getFieldMask() {\r\n return this.fieldMask;\r\n }\r\n}\r\n/** A mutation that deletes the document at the given key. */\r\nclass DeleteMutation extends Mutation {\r\n constructor(key, precondition) {\r\n super();\r\n this.key = key;\r\n this.precondition = precondition;\r\n this.type = 2 /* MutationType.Delete */;\r\n this.fieldTransforms = [];\r\n }\r\n getFieldMask() {\r\n return null;\r\n }\r\n}\r\n/**\r\n * A mutation that verifies the existence of the document at the given key with\r\n * the provided precondition.\r\n *\r\n * The `verify` operation is only used in Transactions, and this class serves\r\n * primarily to facilitate serialization into protos.\r\n */\r\nclass VerifyMutation extends Mutation {\r\n constructor(key, precondition) {\r\n super();\r\n this.key = key;\r\n this.precondition = precondition;\r\n this.type = 3 /* MutationType.Verify */;\r\n this.fieldTransforms = [];\r\n }\r\n getFieldMask() {\r\n return null;\r\n }\r\n}\n\n/**\r\n * @license\r\n * Copyright 2017 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nconst DIRECTIONS = (() => {\r\n const dirs = {};\r\n dirs[\"asc\" /* Direction.ASCENDING */] = 'ASCENDING';\r\n dirs[\"desc\" /* Direction.DESCENDING */] = 'DESCENDING';\r\n return dirs;\r\n})();\r\nconst OPERATORS = (() => {\r\n const ops = {};\r\n ops[\"<\" /* Operator.LESS_THAN */] = 'LESS_THAN';\r\n ops[\"<=\" /* Operator.LESS_THAN_OR_EQUAL */] = 'LESS_THAN_OR_EQUAL';\r\n ops[\">\" /* Operator.GREATER_THAN */] = 'GREATER_THAN';\r\n ops[\">=\" /* Operator.GREATER_THAN_OR_EQUAL */] = 'GREATER_THAN_OR_EQUAL';\r\n ops[\"==\" /* Operator.EQUAL */] = 'EQUAL';\r\n ops[\"!=\" /* Operator.NOT_EQUAL */] = 'NOT_EQUAL';\r\n ops[\"array-contains\" /* Operator.ARRAY_CONTAINS */] = 'ARRAY_CONTAINS';\r\n ops[\"in\" /* Operator.IN */] = 'IN';\r\n ops[\"not-in\" /* Operator.NOT_IN */] = 'NOT_IN';\r\n ops[\"array-contains-any\" /* Operator.ARRAY_CONTAINS_ANY */] = 'ARRAY_CONTAINS_ANY';\r\n return ops;\r\n})();\r\nconst COMPOSITE_OPERATORS = (() => {\r\n const ops = {};\r\n ops[\"and\" /* CompositeOperator.AND */] = 'AND';\r\n ops[\"or\" /* CompositeOperator.OR */] = 'OR';\r\n return ops;\r\n})();\r\nfunction assertPresent(value, description) {\r\n}\r\n/**\r\n * This class generates JsonObject values for the Datastore API suitable for\r\n * sending to either GRPC stub methods or via the JSON/HTTP REST API.\r\n *\r\n * The serializer supports both Protobuf.js and Proto3 JSON formats. By\r\n * setting `useProto3Json` to true, the serializer will use the Proto3 JSON\r\n * format.\r\n *\r\n * For a description of the Proto3 JSON format check\r\n * https://developers.google.com/protocol-buffers/docs/proto3#json\r\n *\r\n * TODO(klimt): We can remove the databaseId argument if we keep the full\r\n * resource name in documents.\r\n */\r\nclass JsonProtoSerializer {\r\n constructor(databaseId, useProto3Json) {\r\n this.databaseId = databaseId;\r\n this.useProto3Json = useProto3Json;\r\n }\r\n}\r\n/**\r\n * Returns a value for a number (or null) that's appropriate to put into\r\n * a google.protobuf.Int32Value proto.\r\n * DO NOT USE THIS FOR ANYTHING ELSE.\r\n * This method cheats. It's typed as returning \"number\" because that's what\r\n * our generated proto interfaces say Int32Value must be. But GRPC actually\r\n * expects a { value: } struct.\r\n */\r\nfunction toInt32Proto(serializer, val) {\r\n if (serializer.useProto3Json || isNullOrUndefined(val)) {\r\n return val;\r\n }\r\n else {\r\n return { value: val };\r\n }\r\n}\r\n/**\r\n * Returns a value for a Date that's appropriate to put into a proto.\r\n */\r\nfunction toTimestamp(serializer, timestamp) {\r\n if (serializer.useProto3Json) {\r\n // Serialize to ISO-8601 date format, but with full nano resolution.\r\n // Since JS Date has only millis, let's only use it for the seconds and\r\n // then manually add the fractions to the end.\r\n const jsDateStr = new Date(timestamp.seconds * 1000).toISOString();\r\n // Remove .xxx frac part and Z in the end.\r\n const strUntilSeconds = jsDateStr.replace(/\\.\\d*/, '').replace('Z', '');\r\n // Pad the fraction out to 9 digits (nanos).\r\n const nanoStr = ('000000000' + timestamp.nanoseconds).slice(-9);\r\n return `${strUntilSeconds}.${nanoStr}Z`;\r\n }\r\n else {\r\n return {\r\n seconds: '' + timestamp.seconds,\r\n nanos: timestamp.nanoseconds\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n };\r\n }\r\n}\r\nfunction fromTimestamp(date) {\r\n const timestamp = normalizeTimestamp(date);\r\n return new Timestamp(timestamp.seconds, timestamp.nanos);\r\n}\r\n/**\r\n * Returns a value for bytes that's appropriate to put in a proto.\r\n *\r\n * Visible for testing.\r\n */\r\nfunction toBytes(serializer, bytes) {\r\n if (serializer.useProto3Json) {\r\n return bytes.toBase64();\r\n }\r\n else {\r\n return bytes.toUint8Array();\r\n }\r\n}\r\nfunction toVersion(serializer, version) {\r\n return toTimestamp(serializer, version.toTimestamp());\r\n}\r\nfunction fromVersion(version) {\r\n hardAssert(!!version);\r\n return SnapshotVersion.fromTimestamp(fromTimestamp(version));\r\n}\r\nfunction toResourceName(databaseId, path) {\r\n return fullyQualifiedPrefixPath(databaseId)\r\n .child('documents')\r\n .child(path)\r\n .canonicalString();\r\n}\r\nfunction fromResourceName(name) {\r\n const resource = ResourcePath.fromString(name);\r\n hardAssert(isValidResourceName(resource));\r\n return resource;\r\n}\r\nfunction toName(serializer, key) {\r\n return toResourceName(serializer.databaseId, key.path);\r\n}\r\nfunction fromName(serializer, name) {\r\n const resource = fromResourceName(name);\r\n if (resource.get(1) !== serializer.databaseId.projectId) {\r\n throw new FirestoreError(Code.INVALID_ARGUMENT, 'Tried to deserialize key from different project: ' +\r\n resource.get(1) +\r\n ' vs ' +\r\n serializer.databaseId.projectId);\r\n }\r\n if (resource.get(3) !== serializer.databaseId.database) {\r\n throw new FirestoreError(Code.INVALID_ARGUMENT, 'Tried to deserialize key from different database: ' +\r\n resource.get(3) +\r\n ' vs ' +\r\n serializer.databaseId.database);\r\n }\r\n return new DocumentKey(extractLocalPathFromResourceName(resource));\r\n}\r\nfunction toQueryPath(serializer, path) {\r\n return toResourceName(serializer.databaseId, path);\r\n}\r\nfunction getEncodedDatabaseId(serializer) {\r\n const path = new ResourcePath([\r\n 'projects',\r\n serializer.databaseId.projectId,\r\n 'databases',\r\n serializer.databaseId.database\r\n ]);\r\n return path.canonicalString();\r\n}\r\nfunction fullyQualifiedPrefixPath(databaseId) {\r\n return new ResourcePath([\r\n 'projects',\r\n databaseId.projectId,\r\n 'databases',\r\n databaseId.database\r\n ]);\r\n}\r\nfunction extractLocalPathFromResourceName(resourceName) {\r\n hardAssert(resourceName.length > 4 && resourceName.get(4) === 'documents');\r\n return resourceName.popFirst(5);\r\n}\r\n/** Creates a Document proto from key and fields (but no create/update time) */\r\nfunction toMutationDocument(serializer, key, fields) {\r\n return {\r\n name: toName(serializer, key),\r\n fields: fields.value.mapValue.fields\r\n };\r\n}\r\nfunction fromDocument(serializer, document, hasCommittedMutations) {\r\n const key = fromName(serializer, document.name);\r\n const version = fromVersion(document.updateTime);\r\n // If we read a document from persistence that is missing createTime, it's due\r\n // to older SDK versions not storing this information. In such cases, we'll\r\n // set the createTime to zero. This can be removed in the long term.\r\n const createTime = document.createTime\r\n ? fromVersion(document.createTime)\r\n : SnapshotVersion.min();\r\n const data = new ObjectValue({ mapValue: { fields: document.fields } });\r\n const result = MutableDocument.newFoundDocument(key, version, createTime, data);\r\n if (hasCommittedMutations) {\r\n result.setHasCommittedMutations();\r\n }\r\n return hasCommittedMutations ? result.setHasCommittedMutations() : result;\r\n}\r\nfunction fromFound(serializer, doc) {\r\n hardAssert(!!doc.found);\r\n assertPresent(doc.found.name);\r\n assertPresent(doc.found.updateTime);\r\n const key = fromName(serializer, doc.found.name);\r\n const version = fromVersion(doc.found.updateTime);\r\n const createTime = doc.found.createTime\r\n ? fromVersion(doc.found.createTime)\r\n : SnapshotVersion.min();\r\n const data = new ObjectValue({ mapValue: { fields: doc.found.fields } });\r\n return MutableDocument.newFoundDocument(key, version, createTime, data);\r\n}\r\nfunction fromMissing(serializer, result) {\r\n hardAssert(!!result.missing);\r\n hardAssert(!!result.readTime);\r\n const key = fromName(serializer, result.missing);\r\n const version = fromVersion(result.readTime);\r\n return MutableDocument.newNoDocument(key, version);\r\n}\r\nfunction fromBatchGetDocumentsResponse(serializer, result) {\r\n if ('found' in result) {\r\n return fromFound(serializer, result);\r\n }\r\n else if ('missing' in result) {\r\n return fromMissing(serializer, result);\r\n }\r\n return fail();\r\n}\r\nfunction toMutation(serializer, mutation) {\r\n let result;\r\n if (mutation instanceof SetMutation) {\r\n result = {\r\n update: toMutationDocument(serializer, mutation.key, mutation.value)\r\n };\r\n }\r\n else if (mutation instanceof DeleteMutation) {\r\n result = { delete: toName(serializer, mutation.key) };\r\n }\r\n else if (mutation instanceof PatchMutation) {\r\n result = {\r\n update: toMutationDocument(serializer, mutation.key, mutation.data),\r\n updateMask: toDocumentMask(mutation.fieldMask)\r\n };\r\n }\r\n else if (mutation instanceof VerifyMutation) {\r\n result = {\r\n verify: toName(serializer, mutation.key)\r\n };\r\n }\r\n else {\r\n return fail();\r\n }\r\n if (mutation.fieldTransforms.length > 0) {\r\n result.updateTransforms = mutation.fieldTransforms.map(transform => toFieldTransform(serializer, transform));\r\n }\r\n if (!mutation.precondition.isNone) {\r\n result.currentDocument = toPrecondition(serializer, mutation.precondition);\r\n }\r\n return result;\r\n}\r\nfunction toPrecondition(serializer, precondition) {\r\n if (precondition.updateTime !== undefined) {\r\n return {\r\n updateTime: toVersion(serializer, precondition.updateTime)\r\n };\r\n }\r\n else if (precondition.exists !== undefined) {\r\n return { exists: precondition.exists };\r\n }\r\n else {\r\n return fail();\r\n }\r\n}\r\nfunction toFieldTransform(serializer, fieldTransform) {\r\n const transform = fieldTransform.transform;\r\n if (transform instanceof ServerTimestampTransform) {\r\n return {\r\n fieldPath: fieldTransform.field.canonicalString(),\r\n setToServerValue: 'REQUEST_TIME'\r\n };\r\n }\r\n else if (transform instanceof ArrayUnionTransformOperation) {\r\n return {\r\n fieldPath: fieldTransform.field.canonicalString(),\r\n appendMissingElements: {\r\n values: transform.elements\r\n }\r\n };\r\n }\r\n else if (transform instanceof ArrayRemoveTransformOperation) {\r\n return {\r\n fieldPath: fieldTransform.field.canonicalString(),\r\n removeAllFromArray: {\r\n values: transform.elements\r\n }\r\n };\r\n }\r\n else if (transform instanceof NumericIncrementTransformOperation) {\r\n return {\r\n fieldPath: fieldTransform.field.canonicalString(),\r\n increment: transform.operand\r\n };\r\n }\r\n else {\r\n throw fail();\r\n }\r\n}\r\nfunction toQueryTarget(serializer, target) {\r\n // Dissect the path into parent, collectionId, and optional key filter.\r\n const result = { structuredQuery: {} };\r\n const path = target.path;\r\n if (target.collectionGroup !== null) {\r\n result.parent = toQueryPath(serializer, path);\r\n result.structuredQuery.from = [\r\n {\r\n collectionId: target.collectionGroup,\r\n allDescendants: true\r\n }\r\n ];\r\n }\r\n else {\r\n result.parent = toQueryPath(serializer, path.popLast());\r\n result.structuredQuery.from = [{ collectionId: path.lastSegment() }];\r\n }\r\n const where = toFilters(target.filters);\r\n if (where) {\r\n result.structuredQuery.where = where;\r\n }\r\n const orderBy = toOrder(target.orderBy);\r\n if (orderBy) {\r\n result.structuredQuery.orderBy = orderBy;\r\n }\r\n const limit = toInt32Proto(serializer, target.limit);\r\n if (limit !== null) {\r\n result.structuredQuery.limit = limit;\r\n }\r\n if (target.startAt) {\r\n result.structuredQuery.startAt = toStartAtCursor(target.startAt);\r\n }\r\n if (target.endAt) {\r\n result.structuredQuery.endAt = toEndAtCursor(target.endAt);\r\n }\r\n return result;\r\n}\r\nfunction toRunAggregationQueryRequest(serializer, target) {\r\n const queryTarget = toQueryTarget(serializer, target);\r\n return {\r\n structuredAggregationQuery: {\r\n aggregations: [\r\n {\r\n count: {},\r\n alias: 'count_alias'\r\n }\r\n ],\r\n structuredQuery: queryTarget.structuredQuery\r\n },\r\n parent: queryTarget.parent\r\n };\r\n}\r\nfunction toFilters(filters) {\r\n if (filters.length === 0) {\r\n return;\r\n }\r\n return toFilter(CompositeFilter.create(filters, \"and\" /* CompositeOperator.AND */));\r\n}\r\nfunction toOrder(orderBys) {\r\n if (orderBys.length === 0) {\r\n return;\r\n }\r\n return orderBys.map(order => toPropertyOrder(order));\r\n}\r\nfunction toStartAtCursor(cursor) {\r\n return {\r\n before: cursor.inclusive,\r\n values: cursor.position\r\n };\r\n}\r\nfunction toEndAtCursor(cursor) {\r\n return {\r\n before: !cursor.inclusive,\r\n values: cursor.position\r\n };\r\n}\r\n// visible for testing\r\nfunction toDirection(dir) {\r\n return DIRECTIONS[dir];\r\n}\r\n// visible for testing\r\nfunction toOperatorName(op) {\r\n return OPERATORS[op];\r\n}\r\nfunction toCompositeOperatorName(op) {\r\n return COMPOSITE_OPERATORS[op];\r\n}\r\nfunction toFieldPathReference(path) {\r\n return { fieldPath: path.canonicalString() };\r\n}\r\n// visible for testing\r\nfunction toPropertyOrder(orderBy) {\r\n return {\r\n field: toFieldPathReference(orderBy.field),\r\n direction: toDirection(orderBy.dir)\r\n };\r\n}\r\n// visible for testing\r\nfunction toFilter(filter) {\r\n if (filter instanceof FieldFilter) {\r\n return toUnaryOrFieldFilter(filter);\r\n }\r\n else if (filter instanceof CompositeFilter) {\r\n return toCompositeFilter(filter);\r\n }\r\n else {\r\n return fail();\r\n }\r\n}\r\nfunction toCompositeFilter(filter) {\r\n const protos = filter.getFilters().map(filter => toFilter(filter));\r\n if (protos.length === 1) {\r\n return protos[0];\r\n }\r\n return {\r\n compositeFilter: {\r\n op: toCompositeOperatorName(filter.op),\r\n filters: protos\r\n }\r\n };\r\n}\r\nfunction toUnaryOrFieldFilter(filter) {\r\n if (filter.op === \"==\" /* Operator.EQUAL */) {\r\n if (isNanValue(filter.value)) {\r\n return {\r\n unaryFilter: {\r\n field: toFieldPathReference(filter.field),\r\n op: 'IS_NAN'\r\n }\r\n };\r\n }\r\n else if (isNullValue(filter.value)) {\r\n return {\r\n unaryFilter: {\r\n field: toFieldPathReference(filter.field),\r\n op: 'IS_NULL'\r\n }\r\n };\r\n }\r\n }\r\n else if (filter.op === \"!=\" /* Operator.NOT_EQUAL */) {\r\n if (isNanValue(filter.value)) {\r\n return {\r\n unaryFilter: {\r\n field: toFieldPathReference(filter.field),\r\n op: 'IS_NOT_NAN'\r\n }\r\n };\r\n }\r\n else if (isNullValue(filter.value)) {\r\n return {\r\n unaryFilter: {\r\n field: toFieldPathReference(filter.field),\r\n op: 'IS_NOT_NULL'\r\n }\r\n };\r\n }\r\n }\r\n return {\r\n fieldFilter: {\r\n field: toFieldPathReference(filter.field),\r\n op: toOperatorName(filter.op),\r\n value: filter.value\r\n }\r\n };\r\n}\r\nfunction toDocumentMask(fieldMask) {\r\n const canonicalFields = [];\r\n fieldMask.fields.forEach(field => canonicalFields.push(field.canonicalString()));\r\n return {\r\n fieldPaths: canonicalFields\r\n };\r\n}\r\nfunction isValidResourceName(path) {\r\n // Resource names have at least 4 components (project ID, database ID)\r\n return (path.length >= 4 &&\r\n path.get(0) === 'projects' &&\r\n path.get(2) === 'databases');\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nfunction newSerializer(databaseId) {\r\n return new JsonProtoSerializer(databaseId, /* useProto3Json= */ true);\r\n}\n\n/**\r\n * @license\r\n * Copyright 2017 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nconst LOG_TAG$2 = 'ExponentialBackoff';\r\n/**\r\n * Initial backoff time in milliseconds after an error.\r\n * Set to 1s according to https://cloud.google.com/apis/design/errors.\r\n */\r\nconst DEFAULT_BACKOFF_INITIAL_DELAY_MS = 1000;\r\nconst DEFAULT_BACKOFF_FACTOR = 1.5;\r\n/** Maximum backoff time in milliseconds */\r\nconst DEFAULT_BACKOFF_MAX_DELAY_MS = 60 * 1000;\r\n/**\r\n * A helper for running delayed tasks following an exponential backoff curve\r\n * between attempts.\r\n *\r\n * Each delay is made up of a \"base\" delay which follows the exponential\r\n * backoff curve, and a +/- 50% \"jitter\" that is calculated and added to the\r\n * base delay. This prevents clients from accidentally synchronizing their\r\n * delays causing spikes of load to the backend.\r\n */\r\nclass ExponentialBackoff {\r\n constructor(\r\n /**\r\n * The AsyncQueue to run backoff operations on.\r\n */\r\n queue, \r\n /**\r\n * The ID to use when scheduling backoff operations on the AsyncQueue.\r\n */\r\n timerId, \r\n /**\r\n * The initial delay (used as the base delay on the first retry attempt).\r\n * Note that jitter will still be applied, so the actual delay could be as\r\n * little as 0.5*initialDelayMs.\r\n */\r\n initialDelayMs = DEFAULT_BACKOFF_INITIAL_DELAY_MS, \r\n /**\r\n * The multiplier to use to determine the extended base delay after each\r\n * attempt.\r\n */\r\n backoffFactor = DEFAULT_BACKOFF_FACTOR, \r\n /**\r\n * The maximum base delay after which no further backoff is performed.\r\n * Note that jitter will still be applied, so the actual delay could be as\r\n * much as 1.5*maxDelayMs.\r\n */\r\n maxDelayMs = DEFAULT_BACKOFF_MAX_DELAY_MS) {\r\n this.queue = queue;\r\n this.timerId = timerId;\r\n this.initialDelayMs = initialDelayMs;\r\n this.backoffFactor = backoffFactor;\r\n this.maxDelayMs = maxDelayMs;\r\n this.currentBaseMs = 0;\r\n this.timerPromise = null;\r\n /** The last backoff attempt, as epoch milliseconds. */\r\n this.lastAttemptTime = Date.now();\r\n this.reset();\r\n }\r\n /**\r\n * Resets the backoff delay.\r\n *\r\n * The very next backoffAndWait() will have no delay. If it is called again\r\n * (i.e. due to an error), initialDelayMs (plus jitter) will be used, and\r\n * subsequent ones will increase according to the backoffFactor.\r\n */\r\n reset() {\r\n this.currentBaseMs = 0;\r\n }\r\n /**\r\n * Resets the backoff delay to the maximum delay (e.g. for use after a\r\n * RESOURCE_EXHAUSTED error).\r\n */\r\n resetToMax() {\r\n this.currentBaseMs = this.maxDelayMs;\r\n }\r\n /**\r\n * Returns a promise that resolves after currentDelayMs, and increases the\r\n * delay for any subsequent attempts. If there was a pending backoff operation\r\n * already, it will be canceled.\r\n */\r\n backoffAndRun(op) {\r\n // Cancel any pending backoff operation.\r\n this.cancel();\r\n // First schedule using the current base (which may be 0 and should be\r\n // honored as such).\r\n const desiredDelayWithJitterMs = Math.floor(this.currentBaseMs + this.jitterDelayMs());\r\n // Guard against lastAttemptTime being in the future due to a clock change.\r\n const delaySoFarMs = Math.max(0, Date.now() - this.lastAttemptTime);\r\n // Guard against the backoff delay already being past.\r\n const remainingDelayMs = Math.max(0, desiredDelayWithJitterMs - delaySoFarMs);\r\n if (remainingDelayMs > 0) {\r\n logDebug(LOG_TAG$2, `Backing off for ${remainingDelayMs} ms ` +\r\n `(base delay: ${this.currentBaseMs} ms, ` +\r\n `delay with jitter: ${desiredDelayWithJitterMs} ms, ` +\r\n `last attempt: ${delaySoFarMs} ms ago)`);\r\n }\r\n this.timerPromise = this.queue.enqueueAfterDelay(this.timerId, remainingDelayMs, () => {\r\n this.lastAttemptTime = Date.now();\r\n return op();\r\n });\r\n // Apply backoff factor to determine next delay and ensure it is within\r\n // bounds.\r\n this.currentBaseMs *= this.backoffFactor;\r\n if (this.currentBaseMs < this.initialDelayMs) {\r\n this.currentBaseMs = this.initialDelayMs;\r\n }\r\n if (this.currentBaseMs > this.maxDelayMs) {\r\n this.currentBaseMs = this.maxDelayMs;\r\n }\r\n }\r\n skipBackoff() {\r\n if (this.timerPromise !== null) {\r\n this.timerPromise.skipDelay();\r\n this.timerPromise = null;\r\n }\r\n }\r\n cancel() {\r\n if (this.timerPromise !== null) {\r\n this.timerPromise.cancel();\r\n this.timerPromise = null;\r\n }\r\n }\r\n /** Returns a random value in the range [-currentBaseMs/2, currentBaseMs/2] */\r\n jitterDelayMs() {\r\n return (Math.random() - 0.5) * this.currentBaseMs;\r\n }\r\n}\n\n/**\r\n * @license\r\n * Copyright 2017 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/**\r\n * Datastore and its related methods are a wrapper around the external Google\r\n * Cloud Datastore grpc API, which provides an interface that is more convenient\r\n * for the rest of the client SDK architecture to consume.\r\n */\r\nclass Datastore {\r\n}\r\n/**\r\n * An implementation of Datastore that exposes additional state for internal\r\n * consumption.\r\n */\r\nclass DatastoreImpl extends Datastore {\r\n constructor(authCredentials, appCheckCredentials, connection, serializer) {\r\n super();\r\n this.authCredentials = authCredentials;\r\n this.appCheckCredentials = appCheckCredentials;\r\n this.connection = connection;\r\n this.serializer = serializer;\r\n this.terminated = false;\r\n }\r\n verifyInitialized() {\r\n if (this.terminated) {\r\n throw new FirestoreError(Code.FAILED_PRECONDITION, 'The client has already been terminated.');\r\n }\r\n }\r\n /** Invokes the provided RPC with auth and AppCheck tokens. */\r\n invokeRPC(rpcName, path, request) {\r\n this.verifyInitialized();\r\n return Promise.all([\r\n this.authCredentials.getToken(),\r\n this.appCheckCredentials.getToken()\r\n ])\r\n .then(([authToken, appCheckToken]) => {\r\n return this.connection.invokeRPC(rpcName, path, request, authToken, appCheckToken);\r\n })\r\n .catch((error) => {\r\n if (error.name === 'FirebaseError') {\r\n if (error.code === Code.UNAUTHENTICATED) {\r\n this.authCredentials.invalidateToken();\r\n this.appCheckCredentials.invalidateToken();\r\n }\r\n throw error;\r\n }\r\n else {\r\n throw new FirestoreError(Code.UNKNOWN, error.toString());\r\n }\r\n });\r\n }\r\n /** Invokes the provided RPC with streamed results with auth and AppCheck tokens. */\r\n invokeStreamingRPC(rpcName, path, request, expectedResponseCount) {\r\n this.verifyInitialized();\r\n return Promise.all([\r\n this.authCredentials.getToken(),\r\n this.appCheckCredentials.getToken()\r\n ])\r\n .then(([authToken, appCheckToken]) => {\r\n return this.connection.invokeStreamingRPC(rpcName, path, request, authToken, appCheckToken, expectedResponseCount);\r\n })\r\n .catch((error) => {\r\n if (error.name === 'FirebaseError') {\r\n if (error.code === Code.UNAUTHENTICATED) {\r\n this.authCredentials.invalidateToken();\r\n this.appCheckCredentials.invalidateToken();\r\n }\r\n throw error;\r\n }\r\n else {\r\n throw new FirestoreError(Code.UNKNOWN, error.toString());\r\n }\r\n });\r\n }\r\n terminate() {\r\n this.terminated = true;\r\n }\r\n}\r\n// TODO(firestorexp): Make sure there is only one Datastore instance per\r\n// firestore-exp client.\r\nfunction newDatastore(authCredentials, appCheckCredentials, connection, serializer) {\r\n return new DatastoreImpl(authCredentials, appCheckCredentials, connection, serializer);\r\n}\r\nasync function invokeCommitRpc(datastore, mutations) {\r\n const datastoreImpl = debugCast(datastore);\r\n const path = getEncodedDatabaseId(datastoreImpl.serializer) + '/documents';\r\n const request = {\r\n writes: mutations.map(m => toMutation(datastoreImpl.serializer, m))\r\n };\r\n await datastoreImpl.invokeRPC('Commit', path, request);\r\n}\r\nasync function invokeBatchGetDocumentsRpc(datastore, keys) {\r\n const datastoreImpl = debugCast(datastore);\r\n const path = getEncodedDatabaseId(datastoreImpl.serializer) + '/documents';\r\n const request = {\r\n documents: keys.map(k => toName(datastoreImpl.serializer, k))\r\n };\r\n const response = await datastoreImpl.invokeStreamingRPC('BatchGetDocuments', path, request, keys.length);\r\n const docs = new Map();\r\n response.forEach(proto => {\r\n const doc = fromBatchGetDocumentsResponse(datastoreImpl.serializer, proto);\r\n docs.set(doc.key.toString(), doc);\r\n });\r\n const result = [];\r\n keys.forEach(key => {\r\n const doc = docs.get(key.toString());\r\n hardAssert(!!doc);\r\n result.push(doc);\r\n });\r\n return result;\r\n}\r\nasync function invokeRunQueryRpc(datastore, query) {\r\n const datastoreImpl = debugCast(datastore);\r\n const request = toQueryTarget(datastoreImpl.serializer, queryToTarget(query));\r\n const response = await datastoreImpl.invokeStreamingRPC('RunQuery', request.parent, { structuredQuery: request.structuredQuery });\r\n return (response\r\n // Omit RunQueryResponses that only contain readTimes.\r\n .filter(proto => !!proto.document)\r\n .map(proto => fromDocument(datastoreImpl.serializer, proto.document, undefined)));\r\n}\r\nasync function invokeRunAggregationQueryRpc(datastore, query) {\r\n const datastoreImpl = debugCast(datastore);\r\n const request = toRunAggregationQueryRequest(datastoreImpl.serializer, queryToTarget(query));\r\n const parent = request.parent;\r\n if (!datastoreImpl.connection.shouldResourcePathBeIncludedInRequest) {\r\n delete request.parent;\r\n }\r\n const response = await datastoreImpl.invokeStreamingRPC('RunAggregationQuery', parent, request, /*expectedResponseCount=*/ 1);\r\n return (response\r\n // Omit RunAggregationQueryResponse that only contain readTimes.\r\n .filter(proto => !!proto.result)\r\n .map(proto => proto.result.aggregateFields));\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nconst LOG_TAG$1 = 'ComponentProvider';\r\n/**\r\n * An instance map that ensures only one Datastore exists per Firestore\r\n * instance.\r\n */\r\nconst datastoreInstances = new Map();\r\n/**\r\n * Returns an initialized and started Datastore for the given Firestore\r\n * instance. Callers must invoke removeComponents() when the Firestore\r\n * instance is terminated.\r\n */\r\nfunction getDatastore(firestore) {\r\n if (firestore._terminated) {\r\n throw new FirestoreError(Code.FAILED_PRECONDITION, 'The client has already been terminated.');\r\n }\r\n if (!datastoreInstances.has(firestore)) {\r\n logDebug(LOG_TAG$1, 'Initializing Datastore');\r\n const databaseInfo = makeDatabaseInfo(firestore._databaseId, firestore.app.options.appId || '', firestore._persistenceKey, firestore._freezeSettings());\r\n const connection = newConnection(databaseInfo);\r\n const serializer = newSerializer(firestore._databaseId);\r\n const datastore = newDatastore(firestore._authCredentials, firestore._appCheckCredentials, connection, serializer);\r\n datastoreInstances.set(firestore, datastore);\r\n }\r\n return datastoreInstances.get(firestore);\r\n}\r\n/**\r\n * Removes all components associated with the provided instance. Must be called\r\n * when the `Firestore` instance is terminated.\r\n */\r\nfunction removeComponents(firestore) {\r\n const datastore = datastoreInstances.get(firestore);\r\n if (datastore) {\r\n logDebug(LOG_TAG$1, 'Removing Datastore');\r\n datastoreInstances.delete(firestore);\r\n datastore.terminate();\r\n }\r\n}\r\nfunction makeDatabaseInfo(databaseId, appId, persistenceKey, settings) {\r\n return new DatabaseInfo(databaseId, appId, persistenceKey, settings.host, settings.ssl, settings.experimentalForceLongPolling, settings.experimentalAutoDetectLongPolling, settings.useFetchStreams);\r\n}\n\n/**\r\n * @license\r\n * Copyright 2018 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nconst LRU_COLLECTION_DISABLED = -1;\r\nconst LRU_DEFAULT_CACHE_SIZE_BYTES = 40 * 1024 * 1024;\n\n/**\r\n * @license\r\n * Copyright 2017 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/** Verifies whether `e` is an IndexedDbTransactionError. */\r\nfunction isIndexedDbTransactionError(e) {\r\n // Use name equality, as instanceof checks on errors don't work with errors\r\n // that wrap other errors.\r\n return e.name === 'IndexedDbTransactionError';\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nconst LRU_MINIMUM_CACHE_SIZE_BYTES = 1 * 1024 * 1024;\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n// settings() defaults:\r\nconst DEFAULT_HOST = 'firestore.googleapis.com';\r\nconst DEFAULT_SSL = true;\r\n/**\r\n * A concrete type describing all the values that can be applied via a\r\n * user-supplied `FirestoreSettings` object. This is a separate type so that\r\n * defaults can be supplied and the value can be checked for equality.\r\n */\r\nclass FirestoreSettingsImpl {\r\n constructor(settings) {\r\n var _a;\r\n if (settings.host === undefined) {\r\n if (settings.ssl !== undefined) {\r\n throw new FirestoreError(Code.INVALID_ARGUMENT, \"Can't provide ssl option if host option is not set\");\r\n }\r\n this.host = DEFAULT_HOST;\r\n this.ssl = DEFAULT_SSL;\r\n }\r\n else {\r\n this.host = settings.host;\r\n this.ssl = (_a = settings.ssl) !== null && _a !== void 0 ? _a : DEFAULT_SSL;\r\n }\r\n this.credentials = settings.credentials;\r\n this.ignoreUndefinedProperties = !!settings.ignoreUndefinedProperties;\r\n if (settings.cacheSizeBytes === undefined) {\r\n this.cacheSizeBytes = LRU_DEFAULT_CACHE_SIZE_BYTES;\r\n }\r\n else {\r\n if (settings.cacheSizeBytes !== LRU_COLLECTION_DISABLED &&\r\n settings.cacheSizeBytes < LRU_MINIMUM_CACHE_SIZE_BYTES) {\r\n throw new FirestoreError(Code.INVALID_ARGUMENT, `cacheSizeBytes must be at least ${LRU_MINIMUM_CACHE_SIZE_BYTES}`);\r\n }\r\n else {\r\n this.cacheSizeBytes = settings.cacheSizeBytes;\r\n }\r\n }\r\n this.experimentalForceLongPolling = !!settings.experimentalForceLongPolling;\r\n this.experimentalAutoDetectLongPolling =\r\n !!settings.experimentalAutoDetectLongPolling;\r\n this.useFetchStreams = !!settings.useFetchStreams;\r\n validateIsNotUsedTogether('experimentalForceLongPolling', settings.experimentalForceLongPolling, 'experimentalAutoDetectLongPolling', settings.experimentalAutoDetectLongPolling);\r\n }\r\n isEqual(other) {\r\n return (this.host === other.host &&\r\n this.ssl === other.ssl &&\r\n this.credentials === other.credentials &&\r\n this.cacheSizeBytes === other.cacheSizeBytes &&\r\n this.experimentalForceLongPolling ===\r\n other.experimentalForceLongPolling &&\r\n this.experimentalAutoDetectLongPolling ===\r\n other.experimentalAutoDetectLongPolling &&\r\n this.ignoreUndefinedProperties === other.ignoreUndefinedProperties &&\r\n this.useFetchStreams === other.useFetchStreams);\r\n }\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/**\r\n * The Cloud Firestore service interface.\r\n *\r\n * Do not call this constructor directly. Instead, use {@link (getFirestore:1)}.\r\n */\r\nclass Firestore {\r\n /** @hideconstructor */\r\n constructor(_authCredentials, _appCheckCredentials, _databaseId, _app) {\r\n this._authCredentials = _authCredentials;\r\n this._appCheckCredentials = _appCheckCredentials;\r\n this._databaseId = _databaseId;\r\n this._app = _app;\r\n /**\r\n * Whether it's a Firestore or Firestore Lite instance.\r\n */\r\n this.type = 'firestore-lite';\r\n this._persistenceKey = '(lite)';\r\n this._settings = new FirestoreSettingsImpl({});\r\n this._settingsFrozen = false;\r\n }\r\n /**\r\n * The {@link @firebase/app#FirebaseApp} associated with this `Firestore` service\r\n * instance.\r\n */\r\n get app() {\r\n if (!this._app) {\r\n throw new FirestoreError(Code.FAILED_PRECONDITION, \"Firestore was not initialized using the Firebase SDK. 'app' is \" +\r\n 'not available');\r\n }\r\n return this._app;\r\n }\r\n get _initialized() {\r\n return this._settingsFrozen;\r\n }\r\n get _terminated() {\r\n return this._terminateTask !== undefined;\r\n }\r\n _setSettings(settings) {\r\n if (this._settingsFrozen) {\r\n throw new FirestoreError(Code.FAILED_PRECONDITION, 'Firestore has already been started and its settings can no longer ' +\r\n 'be changed. You can only modify settings before calling any other ' +\r\n 'methods on a Firestore object.');\r\n }\r\n this._settings = new FirestoreSettingsImpl(settings);\r\n if (settings.credentials !== undefined) {\r\n this._authCredentials = makeAuthCredentialsProvider(settings.credentials);\r\n }\r\n }\r\n _getSettings() {\r\n return this._settings;\r\n }\r\n _freezeSettings() {\r\n this._settingsFrozen = true;\r\n return this._settings;\r\n }\r\n _delete() {\r\n if (!this._terminateTask) {\r\n this._terminateTask = this._terminate();\r\n }\r\n return this._terminateTask;\r\n }\r\n /** Returns a JSON-serializable representation of this `Firestore` instance. */\r\n toJSON() {\r\n return {\r\n app: this._app,\r\n databaseId: this._databaseId,\r\n settings: this._settings\r\n };\r\n }\r\n /**\r\n * Terminates all components used by this client. Subclasses can override\r\n * this method to clean up their own dependencies, but must also call this\r\n * method.\r\n *\r\n * Only ever called once.\r\n */\r\n _terminate() {\r\n removeComponents(this);\r\n return Promise.resolve();\r\n }\r\n}\r\nfunction initializeFirestore(app, settings, databaseId) {\r\n if (!databaseId) {\r\n databaseId = DEFAULT_DATABASE_NAME;\r\n }\r\n const provider = _getProvider(app, 'firestore/lite');\r\n if (provider.isInitialized(databaseId)) {\r\n throw new FirestoreError(Code.FAILED_PRECONDITION, 'Firestore can only be initialized once per app.');\r\n }\r\n return provider.initialize({\r\n options: settings,\r\n instanceIdentifier: databaseId\r\n });\r\n}\r\nfunction getFirestore(appOrDatabaseId, optionalDatabaseId) {\r\n const app = typeof appOrDatabaseId === 'object' ? appOrDatabaseId : getApp();\r\n const databaseId = typeof appOrDatabaseId === 'string'\r\n ? appOrDatabaseId\r\n : optionalDatabaseId || '(default)';\r\n const db = _getProvider(app, 'firestore/lite').getImmediate({\r\n identifier: databaseId\r\n });\r\n if (!db._initialized) {\r\n const emulator = getDefaultEmulatorHostnameAndPort('firestore');\r\n if (emulator) {\r\n connectFirestoreEmulator(db, ...emulator);\r\n }\r\n }\r\n return db;\r\n}\r\n/**\r\n * Modify this instance to communicate with the Cloud Firestore emulator.\r\n *\r\n * Note: This must be called before this instance has been used to do any\r\n * operations.\r\n *\r\n * @param firestore - The `Firestore` instance to configure to connect to the\r\n * emulator.\r\n * @param host - the emulator host (ex: localhost).\r\n * @param port - the emulator port (ex: 9000).\r\n * @param options.mockUserToken - the mock auth token to use for unit testing\r\n * Security Rules.\r\n */\r\nfunction connectFirestoreEmulator(firestore, host, port, options = {}) {\r\n var _a;\r\n firestore = cast(firestore, Firestore);\r\n const settings = firestore._getSettings();\r\n if (settings.host !== DEFAULT_HOST && settings.host !== host) {\r\n logWarn('Host has been set in both settings() and useEmulator(), emulator host ' +\r\n 'will be used');\r\n }\r\n firestore._setSettings(Object.assign(Object.assign({}, settings), { host: `${host}:${port}`, ssl: false }));\r\n if (options.mockUserToken) {\r\n let token;\r\n let user;\r\n if (typeof options.mockUserToken === 'string') {\r\n token = options.mockUserToken;\r\n user = User.MOCK_USER;\r\n }\r\n else {\r\n // Let createMockUserToken validate first (catches common mistakes like\r\n // invalid field \"uid\" and missing field \"sub\" / \"user_id\".)\r\n token = createMockUserToken(options.mockUserToken, (_a = firestore._app) === null || _a === void 0 ? void 0 : _a.options.projectId);\r\n const uid = options.mockUserToken.sub || options.mockUserToken.user_id;\r\n if (!uid) {\r\n throw new FirestoreError(Code.INVALID_ARGUMENT, \"mockUserToken must contain 'sub' or 'user_id' field!\");\r\n }\r\n user = new User(uid);\r\n }\r\n firestore._authCredentials = new EmulatorAuthCredentialsProvider(new OAuthToken(token, user));\r\n }\r\n}\r\n/**\r\n * Terminates the provided `Firestore` instance.\r\n *\r\n * After calling `terminate()` only the `clearIndexedDbPersistence()` functions\r\n * may be used. Any other function will throw a `FirestoreError`. Termination\r\n * does not cancel any pending writes, and any promises that are awaiting a\r\n * response from the server will not be resolved.\r\n *\r\n * To restart after termination, create a new instance of `Firestore` with\r\n * {@link (getFirestore:1)}.\r\n *\r\n * Note: Under normal circumstances, calling `terminate()` is not required. This\r\n * function is useful only when you want to force this instance to release all of\r\n * its resources or in combination with {@link clearIndexedDbPersistence} to\r\n * ensure that all local state is destroyed between test runs.\r\n *\r\n * @param firestore - The `Firestore` instance to terminate.\r\n * @returns A `Promise` that is resolved when the instance has been successfully\r\n * terminated.\r\n */\r\nfunction terminate(firestore) {\r\n firestore = cast(firestore, Firestore);\r\n _removeServiceInstance(firestore.app, 'firestore/lite');\r\n return firestore._delete();\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nfunction registerFirestore() {\r\n setSDKVersion(`${SDK_VERSION$1}_lite`);\r\n _registerComponent(new Component('firestore/lite', (container, { instanceIdentifier: databaseId, options: settings }) => {\r\n const app = container.getProvider('app').getImmediate();\r\n const firestoreInstance = new Firestore(new LiteAuthCredentialsProvider(container.getProvider('auth-internal')), new LiteAppCheckTokenProvider(container.getProvider('app-check-internal')), databaseIdFromApp(app, databaseId), app);\r\n if (settings) {\r\n firestoreInstance._setSettings(settings);\r\n }\r\n return firestoreInstance;\r\n }, 'PUBLIC').setMultipleInstances(true));\r\n // RUNTIME_ENV and BUILD_TARGET are replaced by real values during the compilation\r\n registerVersion('firestore-lite', version$1, 'node');\r\n registerVersion('firestore-lite', version$1, '__BUILD_TARGET__');\r\n}\n\n/**\r\n * @license\r\n * Copyright 2022 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/**\r\n * Represents an aggregation that can be performed by Firestore.\r\n */\r\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\r\nclass AggregateField {\r\n constructor() {\r\n /** A type string to uniquely identify instances of this class. */\r\n this.type = 'AggregateField';\r\n }\r\n}\r\n/**\r\n * The results of executing an aggregation query.\r\n */\r\nclass AggregateQuerySnapshot {\r\n /** @hideconstructor */\r\n constructor(query, _data) {\r\n this._data = _data;\r\n /** A type string to uniquely identify instances of this class. */\r\n this.type = 'AggregateQuerySnapshot';\r\n this.query = query;\r\n }\r\n /**\r\n * Returns the results of the aggregations performed over the underlying\r\n * query.\r\n *\r\n * The keys of the returned object will be the same as those of the\r\n * `AggregateSpec` object specified to the aggregation method, and the values\r\n * will be the corresponding aggregation result.\r\n *\r\n * @returns The results of the aggregations performed over the underlying\r\n * query.\r\n */\r\n data() {\r\n return this._data;\r\n }\r\n}\n\n/**\r\n * @license\r\n * Copyright 2022 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/**\r\n * CountQueryRunner encapsulates the logic needed to run the count aggregation\r\n * queries.\r\n */\r\nclass CountQueryRunner {\r\n constructor(query, datastore, userDataWriter) {\r\n this.query = query;\r\n this.datastore = datastore;\r\n this.userDataWriter = userDataWriter;\r\n }\r\n run() {\r\n return invokeRunAggregationQueryRpc(this.datastore, this.query._query).then(result => {\r\n hardAssert(result[0] !== undefined);\r\n const counts = Object.entries(result[0])\r\n .filter(([key, value]) => key === 'count_alias')\r\n .map(([key, value]) => this.userDataWriter.convertValue(value));\r\n const countValue = counts[0];\r\n hardAssert(typeof countValue === 'number');\r\n return Promise.resolve(new AggregateQuerySnapshot(this.query, {\r\n count: countValue\r\n }));\r\n });\r\n }\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/**\r\n * A `DocumentReference` refers to a document location in a Firestore database\r\n * and can be used to write, read, or listen to the location. The document at\r\n * the referenced location may or may not exist.\r\n */\r\nclass DocumentReference {\r\n /** @hideconstructor */\r\n constructor(firestore, \r\n /**\r\n * If provided, the `FirestoreDataConverter` associated with this instance.\r\n */\r\n converter, _key) {\r\n this.converter = converter;\r\n this._key = _key;\r\n /** The type of this Firestore reference. */\r\n this.type = 'document';\r\n this.firestore = firestore;\r\n }\r\n get _path() {\r\n return this._key.path;\r\n }\r\n /**\r\n * The document's identifier within its collection.\r\n */\r\n get id() {\r\n return this._key.path.lastSegment();\r\n }\r\n /**\r\n * A string representing the path of the referenced document (relative\r\n * to the root of the database).\r\n */\r\n get path() {\r\n return this._key.path.canonicalString();\r\n }\r\n /**\r\n * The collection this `DocumentReference` belongs to.\r\n */\r\n get parent() {\r\n return new CollectionReference(this.firestore, this.converter, this._key.path.popLast());\r\n }\r\n withConverter(converter) {\r\n return new DocumentReference(this.firestore, converter, this._key);\r\n }\r\n}\r\n/**\r\n * A `Query` refers to a query which you can read or listen to. You can also\r\n * construct refined `Query` objects by adding filters and ordering.\r\n */\r\nclass Query {\r\n // This is the lite version of the Query class in the main SDK.\r\n /** @hideconstructor protected */\r\n constructor(firestore, \r\n /**\r\n * If provided, the `FirestoreDataConverter` associated with this instance.\r\n */\r\n converter, _query) {\r\n this.converter = converter;\r\n this._query = _query;\r\n /** The type of this Firestore reference. */\r\n this.type = 'query';\r\n this.firestore = firestore;\r\n }\r\n withConverter(converter) {\r\n return new Query(this.firestore, converter, this._query);\r\n }\r\n}\r\n/**\r\n * A `CollectionReference` object can be used for adding documents, getting\r\n * document references, and querying for documents (using {@link query}).\r\n */\r\nclass CollectionReference extends Query {\r\n /** @hideconstructor */\r\n constructor(firestore, converter, _path) {\r\n super(firestore, converter, newQueryForPath(_path));\r\n this._path = _path;\r\n /** The type of this Firestore reference. */\r\n this.type = 'collection';\r\n }\r\n /** The collection's identifier. */\r\n get id() {\r\n return this._query.path.lastSegment();\r\n }\r\n /**\r\n * A string representing the path of the referenced collection (relative\r\n * to the root of the database).\r\n */\r\n get path() {\r\n return this._query.path.canonicalString();\r\n }\r\n /**\r\n * A reference to the containing `DocumentReference` if this is a\r\n * subcollection. If this isn't a subcollection, the reference is null.\r\n */\r\n get parent() {\r\n const parentPath = this._path.popLast();\r\n if (parentPath.isEmpty()) {\r\n return null;\r\n }\r\n else {\r\n return new DocumentReference(this.firestore, \r\n /* converter= */ null, new DocumentKey(parentPath));\r\n }\r\n }\r\n withConverter(converter) {\r\n return new CollectionReference(this.firestore, converter, this._path);\r\n }\r\n}\r\nfunction collection(parent, path, ...pathSegments) {\r\n parent = getModularInstance(parent);\r\n validateNonEmptyArgument('collection', 'path', path);\r\n if (parent instanceof Firestore) {\r\n const absolutePath = ResourcePath.fromString(path, ...pathSegments);\r\n validateCollectionPath(absolutePath);\r\n return new CollectionReference(parent, /* converter= */ null, absolutePath);\r\n }\r\n else {\r\n if (!(parent instanceof DocumentReference) &&\r\n !(parent instanceof CollectionReference)) {\r\n throw new FirestoreError(Code.INVALID_ARGUMENT, 'Expected first argument to collection() to be a CollectionReference, ' +\r\n 'a DocumentReference or FirebaseFirestore');\r\n }\r\n const absolutePath = parent._path.child(ResourcePath.fromString(path, ...pathSegments));\r\n validateCollectionPath(absolutePath);\r\n return new CollectionReference(parent.firestore, \r\n /* converter= */ null, absolutePath);\r\n }\r\n}\r\n// TODO(firestorelite): Consider using ErrorFactory -\r\n// https://github.com/firebase/firebase-js-sdk/blob/0131e1f/packages/util/src/errors.ts#L106\r\n/**\r\n * Creates and returns a new `Query` instance that includes all documents in the\r\n * database that are contained in a collection or subcollection with the\r\n * given `collectionId`.\r\n *\r\n * @param firestore - A reference to the root `Firestore` instance.\r\n * @param collectionId - Identifies the collections to query over. Every\r\n * collection or subcollection with this ID as the last segment of its path\r\n * will be included. Cannot contain a slash.\r\n * @returns The created `Query`.\r\n */\r\nfunction collectionGroup(firestore, collectionId) {\r\n firestore = cast(firestore, Firestore);\r\n validateNonEmptyArgument('collectionGroup', 'collection id', collectionId);\r\n if (collectionId.indexOf('/') >= 0) {\r\n throw new FirestoreError(Code.INVALID_ARGUMENT, `Invalid collection ID '${collectionId}' passed to function ` +\r\n `collectionGroup(). Collection IDs must not contain '/'.`);\r\n }\r\n return new Query(firestore, \r\n /* converter= */ null, newQueryForCollectionGroup(collectionId));\r\n}\r\nfunction doc(parent, path, ...pathSegments) {\r\n parent = getModularInstance(parent);\r\n // We allow omission of 'pathString' but explicitly prohibit passing in both\r\n // 'undefined' and 'null'.\r\n if (arguments.length === 1) {\r\n path = AutoId.newId();\r\n }\r\n validateNonEmptyArgument('doc', 'path', path);\r\n if (parent instanceof Firestore) {\r\n const absolutePath = ResourcePath.fromString(path, ...pathSegments);\r\n validateDocumentPath(absolutePath);\r\n return new DocumentReference(parent, \r\n /* converter= */ null, new DocumentKey(absolutePath));\r\n }\r\n else {\r\n if (!(parent instanceof DocumentReference) &&\r\n !(parent instanceof CollectionReference)) {\r\n throw new FirestoreError(Code.INVALID_ARGUMENT, 'Expected first argument to collection() to be a CollectionReference, ' +\r\n 'a DocumentReference or FirebaseFirestore');\r\n }\r\n const absolutePath = parent._path.child(ResourcePath.fromString(path, ...pathSegments));\r\n validateDocumentPath(absolutePath);\r\n return new DocumentReference(parent.firestore, parent instanceof CollectionReference ? parent.converter : null, new DocumentKey(absolutePath));\r\n }\r\n}\r\n/**\r\n * Returns true if the provided references are equal.\r\n *\r\n * @param left - A reference to compare.\r\n * @param right - A reference to compare.\r\n * @returns true if the references point to the same location in the same\r\n * Firestore database.\r\n */\r\nfunction refEqual(left, right) {\r\n left = getModularInstance(left);\r\n right = getModularInstance(right);\r\n if ((left instanceof DocumentReference ||\r\n left instanceof CollectionReference) &&\r\n (right instanceof DocumentReference || right instanceof CollectionReference)) {\r\n return (left.firestore === right.firestore &&\r\n left.path === right.path &&\r\n left.converter === right.converter);\r\n }\r\n return false;\r\n}\r\n/**\r\n * Returns true if the provided queries point to the same collection and apply\r\n * the same constraints.\r\n *\r\n * @param left - A `Query` to compare.\r\n * @param right - A `Query` to compare.\r\n * @returns true if the references point to the same location in the same\r\n * Firestore database.\r\n */\r\nfunction queryEqual(left, right) {\r\n left = getModularInstance(left);\r\n right = getModularInstance(right);\r\n if (left instanceof Query && right instanceof Query) {\r\n return (left.firestore === right.firestore &&\r\n queryEquals(left._query, right._query) &&\r\n left.converter === right.converter);\r\n }\r\n return false;\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/**\r\n * An immutable object representing an array of bytes.\r\n */\r\nclass Bytes {\r\n /** @hideconstructor */\r\n constructor(byteString) {\r\n this._byteString = byteString;\r\n }\r\n /**\r\n * Creates a new `Bytes` object from the given Base64 string, converting it to\r\n * bytes.\r\n *\r\n * @param base64 - The Base64 string used to create the `Bytes` object.\r\n */\r\n static fromBase64String(base64) {\r\n try {\r\n return new Bytes(ByteString.fromBase64String(base64));\r\n }\r\n catch (e) {\r\n throw new FirestoreError(Code.INVALID_ARGUMENT, 'Failed to construct data from Base64 string: ' + e);\r\n }\r\n }\r\n /**\r\n * Creates a new `Bytes` object from the given Uint8Array.\r\n *\r\n * @param array - The Uint8Array used to create the `Bytes` object.\r\n */\r\n static fromUint8Array(array) {\r\n return new Bytes(ByteString.fromUint8Array(array));\r\n }\r\n /**\r\n * Returns the underlying bytes as a Base64-encoded string.\r\n *\r\n * @returns The Base64-encoded string created from the `Bytes` object.\r\n */\r\n toBase64() {\r\n return this._byteString.toBase64();\r\n }\r\n /**\r\n * Returns the underlying bytes in a new `Uint8Array`.\r\n *\r\n * @returns The Uint8Array created from the `Bytes` object.\r\n */\r\n toUint8Array() {\r\n return this._byteString.toUint8Array();\r\n }\r\n /**\r\n * Returns a string representation of the `Bytes` object.\r\n *\r\n * @returns A string representation of the `Bytes` object.\r\n */\r\n toString() {\r\n return 'Bytes(base64: ' + this.toBase64() + ')';\r\n }\r\n /**\r\n * Returns true if this `Bytes` object is equal to the provided one.\r\n *\r\n * @param other - The `Bytes` object to compare against.\r\n * @returns true if this `Bytes` object is equal to the provided one.\r\n */\r\n isEqual(other) {\r\n return this._byteString.isEqual(other._byteString);\r\n }\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/**\r\n * A `FieldPath` refers to a field in a document. The path may consist of a\r\n * single field name (referring to a top-level field in the document), or a\r\n * list of field names (referring to a nested field in the document).\r\n *\r\n * Create a `FieldPath` by providing field names. If more than one field\r\n * name is provided, the path will point to a nested field in a document.\r\n */\r\nclass FieldPath {\r\n /**\r\n * Creates a `FieldPath` from the provided field names. If more than one field\r\n * name is provided, the path will point to a nested field in a document.\r\n *\r\n * @param fieldNames - A list of field names.\r\n */\r\n constructor(...fieldNames) {\r\n for (let i = 0; i < fieldNames.length; ++i) {\r\n if (fieldNames[i].length === 0) {\r\n throw new FirestoreError(Code.INVALID_ARGUMENT, `Invalid field name at argument $(i + 1). ` +\r\n 'Field names must not be empty.');\r\n }\r\n }\r\n this._internalPath = new FieldPath$1(fieldNames);\r\n }\r\n /**\r\n * Returns true if this `FieldPath` is equal to the provided one.\r\n *\r\n * @param other - The `FieldPath` to compare against.\r\n * @returns true if this `FieldPath` is equal to the provided one.\r\n */\r\n isEqual(other) {\r\n return this._internalPath.isEqual(other._internalPath);\r\n }\r\n}\r\n/**\r\n * Returns a special sentinel `FieldPath` to refer to the ID of a document.\r\n * It can be used in queries to sort or filter by the document ID.\r\n */\r\nfunction documentId() {\r\n return new FieldPath(DOCUMENT_KEY_NAME);\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/**\r\n * Sentinel values that can be used when writing document fields with `set()`\r\n * or `update()`.\r\n */\r\nclass FieldValue {\r\n /**\r\n * @param _methodName - The public API endpoint that returns this class.\r\n * @hideconstructor\r\n */\r\n constructor(_methodName) {\r\n this._methodName = _methodName;\r\n }\r\n}\n\n/**\r\n * @license\r\n * Copyright 2017 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/**\r\n * An immutable object representing a geographic location in Firestore. The\r\n * location is represented as latitude/longitude pair.\r\n *\r\n * Latitude values are in the range of [-90, 90].\r\n * Longitude values are in the range of [-180, 180].\r\n */\r\nclass GeoPoint {\r\n /**\r\n * Creates a new immutable `GeoPoint` object with the provided latitude and\r\n * longitude values.\r\n * @param latitude - The latitude as number between -90 and 90.\r\n * @param longitude - The longitude as number between -180 and 180.\r\n */\r\n constructor(latitude, longitude) {\r\n if (!isFinite(latitude) || latitude < -90 || latitude > 90) {\r\n throw new FirestoreError(Code.INVALID_ARGUMENT, 'Latitude must be a number between -90 and 90, but was: ' + latitude);\r\n }\r\n if (!isFinite(longitude) || longitude < -180 || longitude > 180) {\r\n throw new FirestoreError(Code.INVALID_ARGUMENT, 'Longitude must be a number between -180 and 180, but was: ' + longitude);\r\n }\r\n this._lat = latitude;\r\n this._long = longitude;\r\n }\r\n /**\r\n * The latitude of this `GeoPoint` instance.\r\n */\r\n get latitude() {\r\n return this._lat;\r\n }\r\n /**\r\n * The longitude of this `GeoPoint` instance.\r\n */\r\n get longitude() {\r\n return this._long;\r\n }\r\n /**\r\n * Returns true if this `GeoPoint` is equal to the provided one.\r\n *\r\n * @param other - The `GeoPoint` to compare against.\r\n * @returns true if this `GeoPoint` is equal to the provided one.\r\n */\r\n isEqual(other) {\r\n return this._lat === other._lat && this._long === other._long;\r\n }\r\n /** Returns a JSON-serializable representation of this GeoPoint. */\r\n toJSON() {\r\n return { latitude: this._lat, longitude: this._long };\r\n }\r\n /**\r\n * Actually private to JS consumers of our API, so this function is prefixed\r\n * with an underscore.\r\n */\r\n _compareTo(other) {\r\n return (primitiveComparator(this._lat, other._lat) ||\r\n primitiveComparator(this._long, other._long));\r\n }\r\n}\n\n/**\r\n * @license\r\n * Copyright 2017 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nconst RESERVED_FIELD_REGEX = /^__.*__$/;\r\n/** The result of parsing document data (e.g. for a setData call). */\r\nclass ParsedSetData {\r\n constructor(data, fieldMask, fieldTransforms) {\r\n this.data = data;\r\n this.fieldMask = fieldMask;\r\n this.fieldTransforms = fieldTransforms;\r\n }\r\n toMutation(key, precondition) {\r\n if (this.fieldMask !== null) {\r\n return new PatchMutation(key, this.data, this.fieldMask, precondition, this.fieldTransforms);\r\n }\r\n else {\r\n return new SetMutation(key, this.data, precondition, this.fieldTransforms);\r\n }\r\n }\r\n}\r\n/** The result of parsing \"update\" data (i.e. for an updateData call). */\r\nclass ParsedUpdateData {\r\n constructor(data, \r\n // The fieldMask does not include document transforms.\r\n fieldMask, fieldTransforms) {\r\n this.data = data;\r\n this.fieldMask = fieldMask;\r\n this.fieldTransforms = fieldTransforms;\r\n }\r\n toMutation(key, precondition) {\r\n return new PatchMutation(key, this.data, this.fieldMask, precondition, this.fieldTransforms);\r\n }\r\n}\r\nfunction isWrite(dataSource) {\r\n switch (dataSource) {\r\n case 0 /* UserDataSource.Set */: // fall through\r\n case 2 /* UserDataSource.MergeSet */: // fall through\r\n case 1 /* UserDataSource.Update */:\r\n return true;\r\n case 3 /* UserDataSource.Argument */:\r\n case 4 /* UserDataSource.ArrayArgument */:\r\n return false;\r\n default:\r\n throw fail();\r\n }\r\n}\r\n/** A \"context\" object passed around while parsing user data. */\r\nclass ParseContextImpl {\r\n /**\r\n * Initializes a ParseContext with the given source and path.\r\n *\r\n * @param settings - The settings for the parser.\r\n * @param databaseId - The database ID of the Firestore instance.\r\n * @param serializer - The serializer to use to generate the Value proto.\r\n * @param ignoreUndefinedProperties - Whether to ignore undefined properties\r\n * rather than throw.\r\n * @param fieldTransforms - A mutable list of field transforms encountered\r\n * while parsing the data.\r\n * @param fieldMask - A mutable list of field paths encountered while parsing\r\n * the data.\r\n *\r\n * TODO(b/34871131): We don't support array paths right now, so path can be\r\n * null to indicate the context represents any location within an array (in\r\n * which case certain features will not work and errors will be somewhat\r\n * compromised).\r\n */\r\n constructor(settings, databaseId, serializer, ignoreUndefinedProperties, fieldTransforms, fieldMask) {\r\n this.settings = settings;\r\n this.databaseId = databaseId;\r\n this.serializer = serializer;\r\n this.ignoreUndefinedProperties = ignoreUndefinedProperties;\r\n // Minor hack: If fieldTransforms is undefined, we assume this is an\r\n // external call and we need to validate the entire path.\r\n if (fieldTransforms === undefined) {\r\n this.validatePath();\r\n }\r\n this.fieldTransforms = fieldTransforms || [];\r\n this.fieldMask = fieldMask || [];\r\n }\r\n get path() {\r\n return this.settings.path;\r\n }\r\n get dataSource() {\r\n return this.settings.dataSource;\r\n }\r\n /** Returns a new context with the specified settings overwritten. */\r\n contextWith(configuration) {\r\n return new ParseContextImpl(Object.assign(Object.assign({}, this.settings), configuration), this.databaseId, this.serializer, this.ignoreUndefinedProperties, this.fieldTransforms, this.fieldMask);\r\n }\r\n childContextForField(field) {\r\n var _a;\r\n const childPath = (_a = this.path) === null || _a === void 0 ? void 0 : _a.child(field);\r\n const context = this.contextWith({ path: childPath, arrayElement: false });\r\n context.validatePathSegment(field);\r\n return context;\r\n }\r\n childContextForFieldPath(field) {\r\n var _a;\r\n const childPath = (_a = this.path) === null || _a === void 0 ? void 0 : _a.child(field);\r\n const context = this.contextWith({ path: childPath, arrayElement: false });\r\n context.validatePath();\r\n return context;\r\n }\r\n childContextForArray(index) {\r\n // TODO(b/34871131): We don't support array paths right now; so make path\r\n // undefined.\r\n return this.contextWith({ path: undefined, arrayElement: true });\r\n }\r\n createError(reason) {\r\n return createError(reason, this.settings.methodName, this.settings.hasConverter || false, this.path, this.settings.targetDoc);\r\n }\r\n /** Returns 'true' if 'fieldPath' was traversed when creating this context. */\r\n contains(fieldPath) {\r\n return (this.fieldMask.find(field => fieldPath.isPrefixOf(field)) !== undefined ||\r\n this.fieldTransforms.find(transform => fieldPath.isPrefixOf(transform.field)) !== undefined);\r\n }\r\n validatePath() {\r\n // TODO(b/34871131): Remove null check once we have proper paths for fields\r\n // within arrays.\r\n if (!this.path) {\r\n return;\r\n }\r\n for (let i = 0; i < this.path.length; i++) {\r\n this.validatePathSegment(this.path.get(i));\r\n }\r\n }\r\n validatePathSegment(segment) {\r\n if (segment.length === 0) {\r\n throw this.createError('Document fields must not be empty');\r\n }\r\n if (isWrite(this.dataSource) && RESERVED_FIELD_REGEX.test(segment)) {\r\n throw this.createError('Document fields cannot begin and end with \"__\"');\r\n }\r\n }\r\n}\r\n/**\r\n * Helper for parsing raw user input (provided via the API) into internal model\r\n * classes.\r\n */\r\nclass UserDataReader {\r\n constructor(databaseId, ignoreUndefinedProperties, serializer) {\r\n this.databaseId = databaseId;\r\n this.ignoreUndefinedProperties = ignoreUndefinedProperties;\r\n this.serializer = serializer || newSerializer(databaseId);\r\n }\r\n /** Creates a new top-level parse context. */\r\n createContext(dataSource, methodName, targetDoc, hasConverter = false) {\r\n return new ParseContextImpl({\r\n dataSource,\r\n methodName,\r\n targetDoc,\r\n path: FieldPath$1.emptyPath(),\r\n arrayElement: false,\r\n hasConverter\r\n }, this.databaseId, this.serializer, this.ignoreUndefinedProperties);\r\n }\r\n}\r\nfunction newUserDataReader(firestore) {\r\n const settings = firestore._freezeSettings();\r\n const serializer = newSerializer(firestore._databaseId);\r\n return new UserDataReader(firestore._databaseId, !!settings.ignoreUndefinedProperties, serializer);\r\n}\r\n/** Parse document data from a set() call. */\r\nfunction parseSetData(userDataReader, methodName, targetDoc, input, hasConverter, options = {}) {\r\n const context = userDataReader.createContext(options.merge || options.mergeFields\r\n ? 2 /* UserDataSource.MergeSet */\r\n : 0 /* UserDataSource.Set */, methodName, targetDoc, hasConverter);\r\n validatePlainObject('Data must be an object, but it was:', context, input);\r\n const updateData = parseObject(input, context);\r\n let fieldMask;\r\n let fieldTransforms;\r\n if (options.merge) {\r\n fieldMask = new FieldMask(context.fieldMask);\r\n fieldTransforms = context.fieldTransforms;\r\n }\r\n else if (options.mergeFields) {\r\n const validatedFieldPaths = [];\r\n for (const stringOrFieldPath of options.mergeFields) {\r\n const fieldPath = fieldPathFromArgument$1(methodName, stringOrFieldPath, targetDoc);\r\n if (!context.contains(fieldPath)) {\r\n throw new FirestoreError(Code.INVALID_ARGUMENT, `Field '${fieldPath}' is specified in your field mask but missing from your input data.`);\r\n }\r\n if (!fieldMaskContains(validatedFieldPaths, fieldPath)) {\r\n validatedFieldPaths.push(fieldPath);\r\n }\r\n }\r\n fieldMask = new FieldMask(validatedFieldPaths);\r\n fieldTransforms = context.fieldTransforms.filter(transform => fieldMask.covers(transform.field));\r\n }\r\n else {\r\n fieldMask = null;\r\n fieldTransforms = context.fieldTransforms;\r\n }\r\n return new ParsedSetData(new ObjectValue(updateData), fieldMask, fieldTransforms);\r\n}\r\nclass DeleteFieldValueImpl extends FieldValue {\r\n _toFieldTransform(context) {\r\n if (context.dataSource === 2 /* UserDataSource.MergeSet */) {\r\n // No transform to add for a delete, but we need to add it to our\r\n // fieldMask so it gets deleted.\r\n context.fieldMask.push(context.path);\r\n }\r\n else if (context.dataSource === 1 /* UserDataSource.Update */) {\r\n throw context.createError(`${this._methodName}() can only appear at the top level ` +\r\n 'of your update data');\r\n }\r\n else {\r\n // We shouldn't encounter delete sentinels for queries or non-merge set() calls.\r\n throw context.createError(`${this._methodName}() cannot be used with set() unless you pass ` +\r\n '{merge:true}');\r\n }\r\n return null;\r\n }\r\n isEqual(other) {\r\n return other instanceof DeleteFieldValueImpl;\r\n }\r\n}\r\n/**\r\n * Creates a child context for parsing SerializableFieldValues.\r\n *\r\n * This is different than calling `ParseContext.contextWith` because it keeps\r\n * the fieldTransforms and fieldMask separate.\r\n *\r\n * The created context has its `dataSource` set to `UserDataSource.Argument`.\r\n * Although these values are used with writes, any elements in these FieldValues\r\n * are not considered writes since they cannot contain any FieldValue sentinels,\r\n * etc.\r\n *\r\n * @param fieldValue - The sentinel FieldValue for which to create a child\r\n * context.\r\n * @param context - The parent context.\r\n * @param arrayElement - Whether or not the FieldValue has an array.\r\n */\r\nfunction createSentinelChildContext(fieldValue, context, arrayElement) {\r\n return new ParseContextImpl({\r\n dataSource: 3 /* UserDataSource.Argument */,\r\n targetDoc: context.settings.targetDoc,\r\n methodName: fieldValue._methodName,\r\n arrayElement\r\n }, context.databaseId, context.serializer, context.ignoreUndefinedProperties);\r\n}\r\nclass ServerTimestampFieldValueImpl extends FieldValue {\r\n _toFieldTransform(context) {\r\n return new FieldTransform(context.path, new ServerTimestampTransform());\r\n }\r\n isEqual(other) {\r\n return other instanceof ServerTimestampFieldValueImpl;\r\n }\r\n}\r\nclass ArrayUnionFieldValueImpl extends FieldValue {\r\n constructor(methodName, _elements) {\r\n super(methodName);\r\n this._elements = _elements;\r\n }\r\n _toFieldTransform(context) {\r\n const parseContext = createSentinelChildContext(this, context, \r\n /*array=*/ true);\r\n const parsedElements = this._elements.map(element => parseData(element, parseContext));\r\n const arrayUnion = new ArrayUnionTransformOperation(parsedElements);\r\n return new FieldTransform(context.path, arrayUnion);\r\n }\r\n isEqual(other) {\r\n // TODO(mrschmidt): Implement isEquals\r\n return this === other;\r\n }\r\n}\r\nclass ArrayRemoveFieldValueImpl extends FieldValue {\r\n constructor(methodName, _elements) {\r\n super(methodName);\r\n this._elements = _elements;\r\n }\r\n _toFieldTransform(context) {\r\n const parseContext = createSentinelChildContext(this, context, \r\n /*array=*/ true);\r\n const parsedElements = this._elements.map(element => parseData(element, parseContext));\r\n const arrayUnion = new ArrayRemoveTransformOperation(parsedElements);\r\n return new FieldTransform(context.path, arrayUnion);\r\n }\r\n isEqual(other) {\r\n // TODO(mrschmidt): Implement isEquals\r\n return this === other;\r\n }\r\n}\r\nclass NumericIncrementFieldValueImpl extends FieldValue {\r\n constructor(methodName, _operand) {\r\n super(methodName);\r\n this._operand = _operand;\r\n }\r\n _toFieldTransform(context) {\r\n const numericIncrement = new NumericIncrementTransformOperation(context.serializer, toNumber(context.serializer, this._operand));\r\n return new FieldTransform(context.path, numericIncrement);\r\n }\r\n isEqual(other) {\r\n // TODO(mrschmidt): Implement isEquals\r\n return this === other;\r\n }\r\n}\r\n/** Parse update data from an update() call. */\r\nfunction parseUpdateData(userDataReader, methodName, targetDoc, input) {\r\n const context = userDataReader.createContext(1 /* UserDataSource.Update */, methodName, targetDoc);\r\n validatePlainObject('Data must be an object, but it was:', context, input);\r\n const fieldMaskPaths = [];\r\n const updateData = ObjectValue.empty();\r\n forEach(input, (key, value) => {\r\n const path = fieldPathFromDotSeparatedString(methodName, key, targetDoc);\r\n // For Compat types, we have to \"extract\" the underlying types before\r\n // performing validation.\r\n value = getModularInstance(value);\r\n const childContext = context.childContextForFieldPath(path);\r\n if (value instanceof DeleteFieldValueImpl) {\r\n // Add it to the field mask, but don't add anything to updateData.\r\n fieldMaskPaths.push(path);\r\n }\r\n else {\r\n const parsedValue = parseData(value, childContext);\r\n if (parsedValue != null) {\r\n fieldMaskPaths.push(path);\r\n updateData.set(path, parsedValue);\r\n }\r\n }\r\n });\r\n const mask = new FieldMask(fieldMaskPaths);\r\n return new ParsedUpdateData(updateData, mask, context.fieldTransforms);\r\n}\r\n/** Parse update data from a list of field/value arguments. */\r\nfunction parseUpdateVarargs(userDataReader, methodName, targetDoc, field, value, moreFieldsAndValues) {\r\n const context = userDataReader.createContext(1 /* UserDataSource.Update */, methodName, targetDoc);\r\n const keys = [fieldPathFromArgument$1(methodName, field, targetDoc)];\r\n const values = [value];\r\n if (moreFieldsAndValues.length % 2 !== 0) {\r\n throw new FirestoreError(Code.INVALID_ARGUMENT, `Function ${methodName}() needs to be called with an even number ` +\r\n 'of arguments that alternate between field names and values.');\r\n }\r\n for (let i = 0; i < moreFieldsAndValues.length; i += 2) {\r\n keys.push(fieldPathFromArgument$1(methodName, moreFieldsAndValues[i]));\r\n values.push(moreFieldsAndValues[i + 1]);\r\n }\r\n const fieldMaskPaths = [];\r\n const updateData = ObjectValue.empty();\r\n // We iterate in reverse order to pick the last value for a field if the\r\n // user specified the field multiple times.\r\n for (let i = keys.length - 1; i >= 0; --i) {\r\n if (!fieldMaskContains(fieldMaskPaths, keys[i])) {\r\n const path = keys[i];\r\n let value = values[i];\r\n // For Compat types, we have to \"extract\" the underlying types before\r\n // performing validation.\r\n value = getModularInstance(value);\r\n const childContext = context.childContextForFieldPath(path);\r\n if (value instanceof DeleteFieldValueImpl) {\r\n // Add it to the field mask, but don't add anything to updateData.\r\n fieldMaskPaths.push(path);\r\n }\r\n else {\r\n const parsedValue = parseData(value, childContext);\r\n if (parsedValue != null) {\r\n fieldMaskPaths.push(path);\r\n updateData.set(path, parsedValue);\r\n }\r\n }\r\n }\r\n }\r\n const mask = new FieldMask(fieldMaskPaths);\r\n return new ParsedUpdateData(updateData, mask, context.fieldTransforms);\r\n}\r\n/**\r\n * Parse a \"query value\" (e.g. value in a where filter or a value in a cursor\r\n * bound).\r\n *\r\n * @param allowArrays - Whether the query value is an array that may directly\r\n * contain additional arrays (e.g. the operand of an `in` query).\r\n */\r\nfunction parseQueryValue(userDataReader, methodName, input, allowArrays = false) {\r\n const context = userDataReader.createContext(allowArrays ? 4 /* UserDataSource.ArrayArgument */ : 3 /* UserDataSource.Argument */, methodName);\r\n const parsed = parseData(input, context);\r\n return parsed;\r\n}\r\n/**\r\n * Parses user data to Protobuf Values.\r\n *\r\n * @param input - Data to be parsed.\r\n * @param context - A context object representing the current path being parsed,\r\n * the source of the data being parsed, etc.\r\n * @returns The parsed value, or null if the value was a FieldValue sentinel\r\n * that should not be included in the resulting parsed data.\r\n */\r\nfunction parseData(input, context) {\r\n // Unwrap the API type from the Compat SDK. This will return the API type\r\n // from firestore-exp.\r\n input = getModularInstance(input);\r\n if (looksLikeJsonObject(input)) {\r\n validatePlainObject('Unsupported field value:', context, input);\r\n return parseObject(input, context);\r\n }\r\n else if (input instanceof FieldValue) {\r\n // FieldValues usually parse into transforms (except deleteField())\r\n // in which case we do not want to include this field in our parsed data\r\n // (as doing so will overwrite the field directly prior to the transform\r\n // trying to transform it). So we don't add this location to\r\n // context.fieldMask and we return null as our parsing result.\r\n parseSentinelFieldValue(input, context);\r\n return null;\r\n }\r\n else if (input === undefined && context.ignoreUndefinedProperties) {\r\n // If the input is undefined it can never participate in the fieldMask, so\r\n // don't handle this below. If `ignoreUndefinedProperties` is false,\r\n // `parseScalarValue` will reject an undefined value.\r\n return null;\r\n }\r\n else {\r\n // If context.path is null we are inside an array and we don't support\r\n // field mask paths more granular than the top-level array.\r\n if (context.path) {\r\n context.fieldMask.push(context.path);\r\n }\r\n if (input instanceof Array) {\r\n // TODO(b/34871131): Include the path containing the array in the error\r\n // message.\r\n // In the case of IN queries, the parsed data is an array (representing\r\n // the set of values to be included for the IN query) that may directly\r\n // contain additional arrays (each representing an individual field\r\n // value), so we disable this validation.\r\n if (context.settings.arrayElement &&\r\n context.dataSource !== 4 /* UserDataSource.ArrayArgument */) {\r\n throw context.createError('Nested arrays are not supported');\r\n }\r\n return parseArray(input, context);\r\n }\r\n else {\r\n return parseScalarValue(input, context);\r\n }\r\n }\r\n}\r\nfunction parseObject(obj, context) {\r\n const fields = {};\r\n if (isEmpty(obj)) {\r\n // If we encounter an empty object, we explicitly add it to the update\r\n // mask to ensure that the server creates a map entry.\r\n if (context.path && context.path.length > 0) {\r\n context.fieldMask.push(context.path);\r\n }\r\n }\r\n else {\r\n forEach(obj, (key, val) => {\r\n const parsedValue = parseData(val, context.childContextForField(key));\r\n if (parsedValue != null) {\r\n fields[key] = parsedValue;\r\n }\r\n });\r\n }\r\n return { mapValue: { fields } };\r\n}\r\nfunction parseArray(array, context) {\r\n const values = [];\r\n let entryIndex = 0;\r\n for (const entry of array) {\r\n let parsedEntry = parseData(entry, context.childContextForArray(entryIndex));\r\n if (parsedEntry == null) {\r\n // Just include nulls in the array for fields being replaced with a\r\n // sentinel.\r\n parsedEntry = { nullValue: 'NULL_VALUE' };\r\n }\r\n values.push(parsedEntry);\r\n entryIndex++;\r\n }\r\n return { arrayValue: { values } };\r\n}\r\n/**\r\n * \"Parses\" the provided FieldValueImpl, adding any necessary transforms to\r\n * context.fieldTransforms.\r\n */\r\nfunction parseSentinelFieldValue(value, context) {\r\n // Sentinels are only supported with writes, and not within arrays.\r\n if (!isWrite(context.dataSource)) {\r\n throw context.createError(`${value._methodName}() can only be used with update() and set()`);\r\n }\r\n if (!context.path) {\r\n throw context.createError(`${value._methodName}() is not currently supported inside arrays`);\r\n }\r\n const fieldTransform = value._toFieldTransform(context);\r\n if (fieldTransform) {\r\n context.fieldTransforms.push(fieldTransform);\r\n }\r\n}\r\n/**\r\n * Helper to parse a scalar value (i.e. not an Object, Array, or FieldValue)\r\n *\r\n * @returns The parsed value\r\n */\r\nfunction parseScalarValue(value, context) {\r\n value = getModularInstance(value);\r\n if (value === null) {\r\n return { nullValue: 'NULL_VALUE' };\r\n }\r\n else if (typeof value === 'number') {\r\n return toNumber(context.serializer, value);\r\n }\r\n else if (typeof value === 'boolean') {\r\n return { booleanValue: value };\r\n }\r\n else if (typeof value === 'string') {\r\n return { stringValue: value };\r\n }\r\n else if (value instanceof Date) {\r\n const timestamp = Timestamp.fromDate(value);\r\n return {\r\n timestampValue: toTimestamp(context.serializer, timestamp)\r\n };\r\n }\r\n else if (value instanceof Timestamp) {\r\n // Firestore backend truncates precision down to microseconds. To ensure\r\n // offline mode works the same with regards to truncation, perform the\r\n // truncation immediately without waiting for the backend to do that.\r\n const timestamp = new Timestamp(value.seconds, Math.floor(value.nanoseconds / 1000) * 1000);\r\n return {\r\n timestampValue: toTimestamp(context.serializer, timestamp)\r\n };\r\n }\r\n else if (value instanceof GeoPoint) {\r\n return {\r\n geoPointValue: {\r\n latitude: value.latitude,\r\n longitude: value.longitude\r\n }\r\n };\r\n }\r\n else if (value instanceof Bytes) {\r\n return { bytesValue: toBytes(context.serializer, value._byteString) };\r\n }\r\n else if (value instanceof DocumentReference) {\r\n const thisDb = context.databaseId;\r\n const otherDb = value.firestore._databaseId;\r\n if (!otherDb.isEqual(thisDb)) {\r\n throw context.createError('Document reference is for database ' +\r\n `${otherDb.projectId}/${otherDb.database} but should be ` +\r\n `for database ${thisDb.projectId}/${thisDb.database}`);\r\n }\r\n return {\r\n referenceValue: toResourceName(value.firestore._databaseId || context.databaseId, value._key.path)\r\n };\r\n }\r\n else {\r\n throw context.createError(`Unsupported field value: ${valueDescription(value)}`);\r\n }\r\n}\r\n/**\r\n * Checks whether an object looks like a JSON object that should be converted\r\n * into a struct. Normal class/prototype instances are considered to look like\r\n * JSON objects since they should be converted to a struct value. Arrays, Dates,\r\n * GeoPoints, etc. are not considered to look like JSON objects since they map\r\n * to specific FieldValue types other than ObjectValue.\r\n */\r\nfunction looksLikeJsonObject(input) {\r\n return (typeof input === 'object' &&\r\n input !== null &&\r\n !(input instanceof Array) &&\r\n !(input instanceof Date) &&\r\n !(input instanceof Timestamp) &&\r\n !(input instanceof GeoPoint) &&\r\n !(input instanceof Bytes) &&\r\n !(input instanceof DocumentReference) &&\r\n !(input instanceof FieldValue));\r\n}\r\nfunction validatePlainObject(message, context, input) {\r\n if (!looksLikeJsonObject(input) || !isPlainObject(input)) {\r\n const description = valueDescription(input);\r\n if (description === 'an object') {\r\n // Massage the error if it was an object.\r\n throw context.createError(message + ' a custom object');\r\n }\r\n else {\r\n throw context.createError(message + ' ' + description);\r\n }\r\n }\r\n}\r\n/**\r\n * Helper that calls fromDotSeparatedString() but wraps any error thrown.\r\n */\r\nfunction fieldPathFromArgument$1(methodName, path, targetDoc) {\r\n // If required, replace the FieldPath Compat class with with the firestore-exp\r\n // FieldPath.\r\n path = getModularInstance(path);\r\n if (path instanceof FieldPath) {\r\n return path._internalPath;\r\n }\r\n else if (typeof path === 'string') {\r\n return fieldPathFromDotSeparatedString(methodName, path);\r\n }\r\n else {\r\n const message = 'Field path arguments must be of type string or ';\r\n throw createError(message, methodName, \r\n /* hasConverter= */ false, \r\n /* path= */ undefined, targetDoc);\r\n }\r\n}\r\n/**\r\n * Matches any characters in a field path string that are reserved.\r\n */\r\nconst FIELD_PATH_RESERVED = new RegExp('[~\\\\*/\\\\[\\\\]]');\r\n/**\r\n * Wraps fromDotSeparatedString with an error message about the method that\r\n * was thrown.\r\n * @param methodName - The publicly visible method name\r\n * @param path - The dot-separated string form of a field path which will be\r\n * split on dots.\r\n * @param targetDoc - The document against which the field path will be\r\n * evaluated.\r\n */\r\nfunction fieldPathFromDotSeparatedString(methodName, path, targetDoc) {\r\n const found = path.search(FIELD_PATH_RESERVED);\r\n if (found >= 0) {\r\n throw createError(`Invalid field path (${path}). Paths must not contain ` +\r\n `'~', '*', '/', '[', or ']'`, methodName, \r\n /* hasConverter= */ false, \r\n /* path= */ undefined, targetDoc);\r\n }\r\n try {\r\n return new FieldPath(...path.split('.'))._internalPath;\r\n }\r\n catch (e) {\r\n throw createError(`Invalid field path (${path}). Paths must not be empty, ` +\r\n `begin with '.', end with '.', or contain '..'`, methodName, \r\n /* hasConverter= */ false, \r\n /* path= */ undefined, targetDoc);\r\n }\r\n}\r\nfunction createError(reason, methodName, hasConverter, path, targetDoc) {\r\n const hasPath = path && !path.isEmpty();\r\n const hasDocument = targetDoc !== undefined;\r\n let message = `Function ${methodName}() called with invalid data`;\r\n if (hasConverter) {\r\n message += ' (via `toFirestore()`)';\r\n }\r\n message += '. ';\r\n let description = '';\r\n if (hasPath || hasDocument) {\r\n description += ' (found';\r\n if (hasPath) {\r\n description += ` in field ${path}`;\r\n }\r\n if (hasDocument) {\r\n description += ` in document ${targetDoc}`;\r\n }\r\n description += ')';\r\n }\r\n return new FirestoreError(Code.INVALID_ARGUMENT, message + reason + description);\r\n}\r\n/** Checks `haystack` if FieldPath `needle` is present. Runs in O(n). */\r\nfunction fieldMaskContains(haystack, needle) {\r\n return haystack.some(v => v.isEqual(needle));\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/**\r\n * A `DocumentSnapshot` contains data read from a document in your Firestore\r\n * database. The data can be extracted with `.data()` or `.get()` to\r\n * get a specific field.\r\n *\r\n * For a `DocumentSnapshot` that points to a non-existing document, any data\r\n * access will return 'undefined'. You can use the `exists()` method to\r\n * explicitly verify a document's existence.\r\n */\r\nclass DocumentSnapshot {\r\n // Note: This class is stripped down version of the DocumentSnapshot in\r\n // the legacy SDK. The changes are:\r\n // - No support for SnapshotMetadata.\r\n // - No support for SnapshotOptions.\r\n /** @hideconstructor protected */\r\n constructor(_firestore, _userDataWriter, _key, _document, _converter) {\r\n this._firestore = _firestore;\r\n this._userDataWriter = _userDataWriter;\r\n this._key = _key;\r\n this._document = _document;\r\n this._converter = _converter;\r\n }\r\n /** Property of the `DocumentSnapshot` that provides the document's ID. */\r\n get id() {\r\n return this._key.path.lastSegment();\r\n }\r\n /**\r\n * The `DocumentReference` for the document included in the `DocumentSnapshot`.\r\n */\r\n get ref() {\r\n return new DocumentReference(this._firestore, this._converter, this._key);\r\n }\r\n /**\r\n * Signals whether or not the document at the snapshot's location exists.\r\n *\r\n * @returns true if the document exists.\r\n */\r\n exists() {\r\n return this._document !== null;\r\n }\r\n /**\r\n * Retrieves all fields in the document as an `Object`. Returns `undefined` if\r\n * the document doesn't exist.\r\n *\r\n * @returns An `Object` containing all fields in the document or `undefined`\r\n * if the document doesn't exist.\r\n */\r\n data() {\r\n if (!this._document) {\r\n return undefined;\r\n }\r\n else if (this._converter) {\r\n // We only want to use the converter and create a new DocumentSnapshot\r\n // if a converter has been provided.\r\n const snapshot = new QueryDocumentSnapshot(this._firestore, this._userDataWriter, this._key, this._document, \r\n /* converter= */ null);\r\n return this._converter.fromFirestore(snapshot);\r\n }\r\n else {\r\n return this._userDataWriter.convertValue(this._document.data.value);\r\n }\r\n }\r\n /**\r\n * Retrieves the field specified by `fieldPath`. Returns `undefined` if the\r\n * document or field doesn't exist.\r\n *\r\n * @param fieldPath - The path (for example 'foo' or 'foo.bar') to a specific\r\n * field.\r\n * @returns The data at the specified field location or undefined if no such\r\n * field exists in the document.\r\n */\r\n // We are using `any` here to avoid an explicit cast by our users.\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n get(fieldPath) {\r\n if (this._document) {\r\n const value = this._document.data.field(fieldPathFromArgument('DocumentSnapshot.get', fieldPath));\r\n if (value !== null) {\r\n return this._userDataWriter.convertValue(value);\r\n }\r\n }\r\n return undefined;\r\n }\r\n}\r\n/**\r\n * A `QueryDocumentSnapshot` contains data read from a document in your\r\n * Firestore database as part of a query. The document is guaranteed to exist\r\n * and its data can be extracted with `.data()` or `.get()` to get a\r\n * specific field.\r\n *\r\n * A `QueryDocumentSnapshot` offers the same API surface as a\r\n * `DocumentSnapshot`. Since query results contain only existing documents, the\r\n * `exists` property will always be true and `data()` will never return\r\n * 'undefined'.\r\n */\r\nclass QueryDocumentSnapshot extends DocumentSnapshot {\r\n /**\r\n * Retrieves all fields in the document as an `Object`.\r\n *\r\n * @override\r\n * @returns An `Object` containing all fields in the document.\r\n */\r\n data() {\r\n return super.data();\r\n }\r\n}\r\n/**\r\n * A `QuerySnapshot` contains zero or more `DocumentSnapshot` objects\r\n * representing the results of a query. The documents can be accessed as an\r\n * array via the `docs` property or enumerated using the `forEach` method. The\r\n * number of documents can be determined via the `empty` and `size`\r\n * properties.\r\n */\r\nclass QuerySnapshot {\r\n /** @hideconstructor */\r\n constructor(_query, _docs) {\r\n this._docs = _docs;\r\n this.query = _query;\r\n }\r\n /** An array of all the documents in the `QuerySnapshot`. */\r\n get docs() {\r\n return [...this._docs];\r\n }\r\n /** The number of documents in the `QuerySnapshot`. */\r\n get size() {\r\n return this.docs.length;\r\n }\r\n /** True if there are no documents in the `QuerySnapshot`. */\r\n get empty() {\r\n return this.docs.length === 0;\r\n }\r\n /**\r\n * Enumerates all of the documents in the `QuerySnapshot`.\r\n *\r\n * @param callback - A callback to be called with a `QueryDocumentSnapshot` for\r\n * each document in the snapshot.\r\n * @param thisArg - The `this` binding for the callback.\r\n */\r\n forEach(callback, thisArg) {\r\n this._docs.forEach(callback, thisArg);\r\n }\r\n}\r\n/**\r\n * Returns true if the provided snapshots are equal.\r\n *\r\n * @param left - A snapshot to compare.\r\n * @param right - A snapshot to compare.\r\n * @returns true if the snapshots are equal.\r\n */\r\nfunction snapshotEqual(left, right) {\r\n left = getModularInstance(left);\r\n right = getModularInstance(right);\r\n if (left instanceof DocumentSnapshot && right instanceof DocumentSnapshot) {\r\n return (left._firestore === right._firestore &&\r\n left._key.isEqual(right._key) &&\r\n (left._document === null\r\n ? right._document === null\r\n : left._document.isEqual(right._document)) &&\r\n left._converter === right._converter);\r\n }\r\n else if (left instanceof QuerySnapshot && right instanceof QuerySnapshot) {\r\n return (queryEqual(left.query, right.query) &&\r\n arrayEquals(left.docs, right.docs, snapshotEqual));\r\n }\r\n return false;\r\n}\r\n/**\r\n * Helper that calls `fromDotSeparatedString()` but wraps any error thrown.\r\n */\r\nfunction fieldPathFromArgument(methodName, arg) {\r\n if (typeof arg === 'string') {\r\n return fieldPathFromDotSeparatedString(methodName, arg);\r\n }\r\n else if (arg instanceof FieldPath) {\r\n return arg._internalPath;\r\n }\r\n else {\r\n return arg._delegate._internalPath;\r\n }\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nfunction validateHasExplicitOrderByForLimitToLast(query) {\r\n if (query.limitType === \"L\" /* LimitType.Last */ &&\r\n query.explicitOrderBy.length === 0) {\r\n throw new FirestoreError(Code.UNIMPLEMENTED, 'limitToLast() queries require specifying at least one orderBy() clause');\r\n }\r\n}\r\n/**\r\n * An `AppliableConstraint` is an abstraction of a constraint that can be applied\r\n * to a Firestore query.\r\n */\r\nclass AppliableConstraint {\r\n}\r\n/**\r\n * A `QueryConstraint` is used to narrow the set of documents returned by a\r\n * Firestore query. `QueryConstraint`s are created by invoking {@link where},\r\n * {@link orderBy}, {@link startAt}, {@link startAfter}, {@link\r\n * endBefore}, {@link endAt}, {@link limit}, {@link limitToLast} and\r\n * can then be passed to {@link query} to create a new query instance that\r\n * also contains this `QueryConstraint`.\r\n */\r\nclass QueryConstraint extends AppliableConstraint {\r\n}\r\nfunction query(query, queryConstraint, ...additionalQueryConstraints) {\r\n let queryConstraints = [];\r\n if (queryConstraint instanceof AppliableConstraint) {\r\n queryConstraints.push(queryConstraint);\r\n }\r\n queryConstraints = queryConstraints.concat(additionalQueryConstraints);\r\n validateQueryConstraintArray(queryConstraints);\r\n for (const constraint of queryConstraints) {\r\n query = constraint._apply(query);\r\n }\r\n return query;\r\n}\r\n/**\r\n * A `QueryFieldFilterConstraint` is used to narrow the set of documents returned by\r\n * a Firestore query by filtering on one or more document fields.\r\n * `QueryFieldFilterConstraint`s are created by invoking {@link where} and can then\r\n * be passed to {@link query} to create a new query instance that also contains\r\n * this `QueryFieldFilterConstraint`.\r\n */\r\nclass QueryFieldFilterConstraint extends QueryConstraint {\r\n /**\r\n * @internal\r\n */\r\n constructor(_field, _op, _value) {\r\n super();\r\n this._field = _field;\r\n this._op = _op;\r\n this._value = _value;\r\n /** The type of this query constraint */\r\n this.type = 'where';\r\n }\r\n static _create(_field, _op, _value) {\r\n return new QueryFieldFilterConstraint(_field, _op, _value);\r\n }\r\n _apply(query) {\r\n const filter = this._parse(query);\r\n validateNewFieldFilter(query._query, filter);\r\n return new Query(query.firestore, query.converter, queryWithAddedFilter(query._query, filter));\r\n }\r\n _parse(query) {\r\n const reader = newUserDataReader(query.firestore);\r\n const filter = newQueryFilter(query._query, 'where', reader, query.firestore._databaseId, this._field, this._op, this._value);\r\n return filter;\r\n }\r\n}\r\n/**\r\n * Creates a {@link QueryFieldFilterConstraint} that enforces that documents\r\n * must contain the specified field and that the value should satisfy the\r\n * relation constraint provided.\r\n *\r\n * @param fieldPath - The path to compare\r\n * @param opStr - The operation string (e.g \"<\", \"<=\", \"==\", \"<\",\r\n * \"<=\", \"!=\").\r\n * @param value - The value for comparison\r\n * @returns The created {@link QueryFieldFilterConstraint}.\r\n */\r\nfunction where(fieldPath, opStr, value) {\r\n const op = opStr;\r\n const field = fieldPathFromArgument('where', fieldPath);\r\n return QueryFieldFilterConstraint._create(field, op, value);\r\n}\r\n/**\r\n * A `QueryCompositeFilterConstraint` is used to narrow the set of documents\r\n * returned by a Firestore query by performing the logical OR or AND of multiple\r\n * {@link QueryFieldFilterConstraint}s or {@link QueryCompositeFilterConstraint}s.\r\n * `QueryCompositeFilterConstraint`s are created by invoking {@link or} or\r\n * {@link and} and can then be passed to {@link query} to create a new query\r\n * instance that also contains the `QueryCompositeFilterConstraint`.\r\n * @internal TODO remove this internal tag with OR Query support in the server\r\n */\r\nclass QueryCompositeFilterConstraint extends AppliableConstraint {\r\n /**\r\n * @internal\r\n */\r\n constructor(\r\n /** The type of this query constraint */\r\n type, _queryConstraints) {\r\n super();\r\n this.type = type;\r\n this._queryConstraints = _queryConstraints;\r\n }\r\n static _create(type, _queryConstraints) {\r\n return new QueryCompositeFilterConstraint(type, _queryConstraints);\r\n }\r\n _parse(query) {\r\n const parsedFilters = this._queryConstraints\r\n .map(queryConstraint => {\r\n return queryConstraint._parse(query);\r\n })\r\n .filter(parsedFilter => parsedFilter.getFilters().length > 0);\r\n if (parsedFilters.length === 1) {\r\n return parsedFilters[0];\r\n }\r\n return CompositeFilter.create(parsedFilters, this._getOperator());\r\n }\r\n _apply(query) {\r\n const parsedFilter = this._parse(query);\r\n if (parsedFilter.getFilters().length === 0) {\r\n // Return the existing query if not adding any more filters (e.g. an empty\r\n // composite filter).\r\n return query;\r\n }\r\n validateNewFilter(query._query, parsedFilter);\r\n return new Query(query.firestore, query.converter, queryWithAddedFilter(query._query, parsedFilter));\r\n }\r\n _getQueryConstraints() {\r\n return this._queryConstraints;\r\n }\r\n _getOperator() {\r\n return this.type === 'and' ? \"and\" /* CompositeOperator.AND */ : \"or\" /* CompositeOperator.OR */;\r\n }\r\n}\r\n/**\r\n * Creates a new {@link QueryCompositeFilterConstraint} that is a disjunction of\r\n * the given filter constraints. A disjunction filter includes a document if it\r\n * satisfies any of the given filters.\r\n *\r\n * @param queryConstraints - Optional. The list of\r\n * {@link QueryFilterConstraint}s to perform a disjunction for. These must be\r\n * created with calls to {@link where}, {@link or}, or {@link and}.\r\n * @returns The newly created {@link QueryCompositeFilterConstraint}.\r\n * @internal TODO remove this internal tag with OR Query support in the server\r\n */\r\nfunction or(...queryConstraints) {\r\n // Only support QueryFilterConstraints\r\n queryConstraints.forEach(queryConstraint => validateQueryFilterConstraint('or', queryConstraint));\r\n return QueryCompositeFilterConstraint._create(\"or\" /* CompositeOperator.OR */, queryConstraints);\r\n}\r\n/**\r\n * Creates a new {@link QueryCompositeFilterConstraint} that is a conjunction of\r\n * the given filter constraints. A conjunction filter includes a document if it\r\n * satisfies all of the given filters.\r\n *\r\n * @param queryConstraints - Optional. The list of\r\n * {@link QueryFilterConstraint}s to perform a conjunction for. These must be\r\n * created with calls to {@link where}, {@link or}, or {@link and}.\r\n * @returns The newly created {@link QueryCompositeFilterConstraint}.\r\n * @internal TODO remove this internal tag with OR Query support in the server\r\n */\r\nfunction and(...queryConstraints) {\r\n // Only support QueryFilterConstraints\r\n queryConstraints.forEach(queryConstraint => validateQueryFilterConstraint('and', queryConstraint));\r\n return QueryCompositeFilterConstraint._create(\"and\" /* CompositeOperator.AND */, queryConstraints);\r\n}\r\n/**\r\n * A `QueryOrderByConstraint` is used to sort the set of documents returned by a\r\n * Firestore query. `QueryOrderByConstraint`s are created by invoking\r\n * {@link orderBy} and can then be passed to {@link query} to create a new query\r\n * instance that also contains this `QueryOrderByConstraint`.\r\n *\r\n * Note: Documents that do not contain the orderBy field will not be present in\r\n * the query result.\r\n */\r\nclass QueryOrderByConstraint extends QueryConstraint {\r\n /**\r\n * @internal\r\n */\r\n constructor(_field, _direction) {\r\n super();\r\n this._field = _field;\r\n this._direction = _direction;\r\n /** The type of this query constraint */\r\n this.type = 'orderBy';\r\n }\r\n static _create(_field, _direction) {\r\n return new QueryOrderByConstraint(_field, _direction);\r\n }\r\n _apply(query) {\r\n const orderBy = newQueryOrderBy(query._query, this._field, this._direction);\r\n return new Query(query.firestore, query.converter, queryWithAddedOrderBy(query._query, orderBy));\r\n }\r\n}\r\n/**\r\n * Creates a {@link QueryOrderByConstraint} that sorts the query result by the\r\n * specified field, optionally in descending order instead of ascending.\r\n *\r\n * Note: Documents that do not contain the specified field will not be present\r\n * in the query result.\r\n *\r\n * @param fieldPath - The field to sort by.\r\n * @param directionStr - Optional direction to sort by ('asc' or 'desc'). If\r\n * not specified, order will be ascending.\r\n * @returns The created {@link QueryOrderByConstraint}.\r\n */\r\nfunction orderBy(fieldPath, directionStr = 'asc') {\r\n const direction = directionStr;\r\n const path = fieldPathFromArgument('orderBy', fieldPath);\r\n return QueryOrderByConstraint._create(path, direction);\r\n}\r\n/**\r\n * A `QueryLimitConstraint` is used to limit the number of documents returned by\r\n * a Firestore query.\r\n * `QueryLimitConstraint`s are created by invoking {@link limit} or\r\n * {@link limitToLast} and can then be passed to {@link query} to create a new\r\n * query instance that also contains this `QueryLimitConstraint`.\r\n */\r\nclass QueryLimitConstraint extends QueryConstraint {\r\n /**\r\n * @internal\r\n */\r\n constructor(\r\n /** The type of this query constraint */\r\n type, _limit, _limitType) {\r\n super();\r\n this.type = type;\r\n this._limit = _limit;\r\n this._limitType = _limitType;\r\n }\r\n static _create(type, _limit, _limitType) {\r\n return new QueryLimitConstraint(type, _limit, _limitType);\r\n }\r\n _apply(query) {\r\n return new Query(query.firestore, query.converter, queryWithLimit(query._query, this._limit, this._limitType));\r\n }\r\n}\r\n/**\r\n * Creates a {@link QueryLimitConstraint} that only returns the first matching\r\n * documents.\r\n *\r\n * @param limit - The maximum number of items to return.\r\n * @returns The created {@link QueryLimitConstraint}.\r\n */\r\nfunction limit(limit) {\r\n validatePositiveNumber('limit', limit);\r\n return QueryLimitConstraint._create('limit', limit, \"F\" /* LimitType.First */);\r\n}\r\n/**\r\n * Creates a {@link QueryLimitConstraint} that only returns the last matching\r\n * documents.\r\n *\r\n * You must specify at least one `orderBy` clause for `limitToLast` queries,\r\n * otherwise an exception will be thrown during execution.\r\n *\r\n * @param limit - The maximum number of items to return.\r\n * @returns The created {@link QueryLimitConstraint}.\r\n */\r\nfunction limitToLast(limit) {\r\n validatePositiveNumber('limitToLast', limit);\r\n return QueryLimitConstraint._create('limitToLast', limit, \"L\" /* LimitType.Last */);\r\n}\r\n/**\r\n * A `QueryStartAtConstraint` is used to exclude documents from the start of a\r\n * result set returned by a Firestore query.\r\n * `QueryStartAtConstraint`s are created by invoking {@link (startAt:1)} or\r\n * {@link (startAfter:1)} and can then be passed to {@link query} to create a\r\n * new query instance that also contains this `QueryStartAtConstraint`.\r\n */\r\nclass QueryStartAtConstraint extends QueryConstraint {\r\n /**\r\n * @internal\r\n */\r\n constructor(\r\n /** The type of this query constraint */\r\n type, _docOrFields, _inclusive) {\r\n super();\r\n this.type = type;\r\n this._docOrFields = _docOrFields;\r\n this._inclusive = _inclusive;\r\n }\r\n static _create(type, _docOrFields, _inclusive) {\r\n return new QueryStartAtConstraint(type, _docOrFields, _inclusive);\r\n }\r\n _apply(query) {\r\n const bound = newQueryBoundFromDocOrFields(query, this.type, this._docOrFields, this._inclusive);\r\n return new Query(query.firestore, query.converter, queryWithStartAt(query._query, bound));\r\n }\r\n}\r\nfunction startAt(...docOrFields) {\r\n return QueryStartAtConstraint._create('startAt', docOrFields, \r\n /*inclusive=*/ true);\r\n}\r\nfunction startAfter(...docOrFields) {\r\n return QueryStartAtConstraint._create('startAfter', docOrFields, \r\n /*inclusive=*/ false);\r\n}\r\n/**\r\n * A `QueryEndAtConstraint` is used to exclude documents from the end of a\r\n * result set returned by a Firestore query.\r\n * `QueryEndAtConstraint`s are created by invoking {@link (endAt:1)} or\r\n * {@link (endBefore:1)} and can then be passed to {@link query} to create a new\r\n * query instance that also contains this `QueryEndAtConstraint`.\r\n */\r\nclass QueryEndAtConstraint extends QueryConstraint {\r\n /**\r\n * @internal\r\n */\r\n constructor(\r\n /** The type of this query constraint */\r\n type, _docOrFields, _inclusive) {\r\n super();\r\n this.type = type;\r\n this._docOrFields = _docOrFields;\r\n this._inclusive = _inclusive;\r\n }\r\n static _create(type, _docOrFields, _inclusive) {\r\n return new QueryEndAtConstraint(type, _docOrFields, _inclusive);\r\n }\r\n _apply(query) {\r\n const bound = newQueryBoundFromDocOrFields(query, this.type, this._docOrFields, this._inclusive);\r\n return new Query(query.firestore, query.converter, queryWithEndAt(query._query, bound));\r\n }\r\n}\r\nfunction endBefore(...docOrFields) {\r\n return QueryEndAtConstraint._create('endBefore', docOrFields, \r\n /*inclusive=*/ false);\r\n}\r\nfunction endAt(...docOrFields) {\r\n return QueryEndAtConstraint._create('endAt', docOrFields, \r\n /*inclusive=*/ true);\r\n}\r\n/** Helper function to create a bound from a document or fields */\r\nfunction newQueryBoundFromDocOrFields(query, methodName, docOrFields, inclusive) {\r\n docOrFields[0] = getModularInstance(docOrFields[0]);\r\n if (docOrFields[0] instanceof DocumentSnapshot) {\r\n return newQueryBoundFromDocument(query._query, query.firestore._databaseId, methodName, docOrFields[0]._document, inclusive);\r\n }\r\n else {\r\n const reader = newUserDataReader(query.firestore);\r\n return newQueryBoundFromFields(query._query, query.firestore._databaseId, reader, methodName, docOrFields, inclusive);\r\n }\r\n}\r\nfunction newQueryFilter(query, methodName, dataReader, databaseId, fieldPath, op, value) {\r\n let fieldValue;\r\n if (fieldPath.isKeyField()) {\r\n if (op === \"array-contains\" /* Operator.ARRAY_CONTAINS */ || op === \"array-contains-any\" /* Operator.ARRAY_CONTAINS_ANY */) {\r\n throw new FirestoreError(Code.INVALID_ARGUMENT, `Invalid Query. You can't perform '${op}' queries on documentId().`);\r\n }\r\n else if (op === \"in\" /* Operator.IN */ || op === \"not-in\" /* Operator.NOT_IN */) {\r\n validateDisjunctiveFilterElements(value, op);\r\n const referenceList = [];\r\n for (const arrayValue of value) {\r\n referenceList.push(parseDocumentIdValue(databaseId, query, arrayValue));\r\n }\r\n fieldValue = { arrayValue: { values: referenceList } };\r\n }\r\n else {\r\n fieldValue = parseDocumentIdValue(databaseId, query, value);\r\n }\r\n }\r\n else {\r\n if (op === \"in\" /* Operator.IN */ ||\r\n op === \"not-in\" /* Operator.NOT_IN */ ||\r\n op === \"array-contains-any\" /* Operator.ARRAY_CONTAINS_ANY */) {\r\n validateDisjunctiveFilterElements(value, op);\r\n }\r\n fieldValue = parseQueryValue(dataReader, methodName, value, \r\n /* allowArrays= */ op === \"in\" /* Operator.IN */ || op === \"not-in\" /* Operator.NOT_IN */);\r\n }\r\n const filter = FieldFilter.create(fieldPath, op, fieldValue);\r\n return filter;\r\n}\r\nfunction newQueryOrderBy(query, fieldPath, direction) {\r\n if (query.startAt !== null) {\r\n throw new FirestoreError(Code.INVALID_ARGUMENT, 'Invalid query. You must not call startAt() or startAfter() before ' +\r\n 'calling orderBy().');\r\n }\r\n if (query.endAt !== null) {\r\n throw new FirestoreError(Code.INVALID_ARGUMENT, 'Invalid query. You must not call endAt() or endBefore() before ' +\r\n 'calling orderBy().');\r\n }\r\n const orderBy = new OrderBy(fieldPath, direction);\r\n validateNewOrderBy(query, orderBy);\r\n return orderBy;\r\n}\r\n/**\r\n * Create a `Bound` from a query and a document.\r\n *\r\n * Note that the `Bound` will always include the key of the document\r\n * and so only the provided document will compare equal to the returned\r\n * position.\r\n *\r\n * Will throw if the document does not contain all fields of the order by\r\n * of the query or if any of the fields in the order by are an uncommitted\r\n * server timestamp.\r\n */\r\nfunction newQueryBoundFromDocument(query, databaseId, methodName, doc, inclusive) {\r\n if (!doc) {\r\n throw new FirestoreError(Code.NOT_FOUND, `Can't use a DocumentSnapshot that doesn't exist for ` +\r\n `${methodName}().`);\r\n }\r\n const components = [];\r\n // Because people expect to continue/end a query at the exact document\r\n // provided, we need to use the implicit sort order rather than the explicit\r\n // sort order, because it's guaranteed to contain the document key. That way\r\n // the position becomes unambiguous and the query continues/ends exactly at\r\n // the provided document. Without the key (by using the explicit sort\r\n // orders), multiple documents could match the position, yielding duplicate\r\n // results.\r\n for (const orderBy of queryOrderBy(query)) {\r\n if (orderBy.field.isKeyField()) {\r\n components.push(refValue(databaseId, doc.key));\r\n }\r\n else {\r\n const value = doc.data.field(orderBy.field);\r\n if (isServerTimestamp(value)) {\r\n throw new FirestoreError(Code.INVALID_ARGUMENT, 'Invalid query. You are trying to start or end a query using a ' +\r\n 'document for which the field \"' +\r\n orderBy.field +\r\n '\" is an uncommitted server timestamp. (Since the value of ' +\r\n 'this field is unknown, you cannot start/end a query with it.)');\r\n }\r\n else if (value !== null) {\r\n components.push(value);\r\n }\r\n else {\r\n const field = orderBy.field.canonicalString();\r\n throw new FirestoreError(Code.INVALID_ARGUMENT, `Invalid query. You are trying to start or end a query using a ` +\r\n `document for which the field '${field}' (used as the ` +\r\n `orderBy) does not exist.`);\r\n }\r\n }\r\n }\r\n return new Bound(components, inclusive);\r\n}\r\n/**\r\n * Converts a list of field values to a `Bound` for the given query.\r\n */\r\nfunction newQueryBoundFromFields(query, databaseId, dataReader, methodName, values, inclusive) {\r\n // Use explicit order by's because it has to match the query the user made\r\n const orderBy = query.explicitOrderBy;\r\n if (values.length > orderBy.length) {\r\n throw new FirestoreError(Code.INVALID_ARGUMENT, `Too many arguments provided to ${methodName}(). ` +\r\n `The number of arguments must be less than or equal to the ` +\r\n `number of orderBy() clauses`);\r\n }\r\n const components = [];\r\n for (let i = 0; i < values.length; i++) {\r\n const rawValue = values[i];\r\n const orderByComponent = orderBy[i];\r\n if (orderByComponent.field.isKeyField()) {\r\n if (typeof rawValue !== 'string') {\r\n throw new FirestoreError(Code.INVALID_ARGUMENT, `Invalid query. Expected a string for document ID in ` +\r\n `${methodName}(), but got a ${typeof rawValue}`);\r\n }\r\n if (!isCollectionGroupQuery(query) && rawValue.indexOf('/') !== -1) {\r\n throw new FirestoreError(Code.INVALID_ARGUMENT, `Invalid query. When querying a collection and ordering by documentId(), ` +\r\n `the value passed to ${methodName}() must be a plain document ID, but ` +\r\n `'${rawValue}' contains a slash.`);\r\n }\r\n const path = query.path.child(ResourcePath.fromString(rawValue));\r\n if (!DocumentKey.isDocumentKey(path)) {\r\n throw new FirestoreError(Code.INVALID_ARGUMENT, `Invalid query. When querying a collection group and ordering by ` +\r\n `documentId(), the value passed to ${methodName}() must result in a ` +\r\n `valid document path, but '${path}' is not because it contains an odd number ` +\r\n `of segments.`);\r\n }\r\n const key = new DocumentKey(path);\r\n components.push(refValue(databaseId, key));\r\n }\r\n else {\r\n const wrapped = parseQueryValue(dataReader, methodName, rawValue);\r\n components.push(wrapped);\r\n }\r\n }\r\n return new Bound(components, inclusive);\r\n}\r\n/**\r\n * Parses the given `documentIdValue` into a `ReferenceValue`, throwing\r\n * appropriate errors if the value is anything other than a `DocumentReference`\r\n * or `string`, or if the string is malformed.\r\n */\r\nfunction parseDocumentIdValue(databaseId, query, documentIdValue) {\r\n documentIdValue = getModularInstance(documentIdValue);\r\n if (typeof documentIdValue === 'string') {\r\n if (documentIdValue === '') {\r\n throw new FirestoreError(Code.INVALID_ARGUMENT, 'Invalid query. When querying with documentId(), you ' +\r\n 'must provide a valid document ID, but it was an empty string.');\r\n }\r\n if (!isCollectionGroupQuery(query) && documentIdValue.indexOf('/') !== -1) {\r\n throw new FirestoreError(Code.INVALID_ARGUMENT, `Invalid query. When querying a collection by ` +\r\n `documentId(), you must provide a plain document ID, but ` +\r\n `'${documentIdValue}' contains a '/' character.`);\r\n }\r\n const path = query.path.child(ResourcePath.fromString(documentIdValue));\r\n if (!DocumentKey.isDocumentKey(path)) {\r\n throw new FirestoreError(Code.INVALID_ARGUMENT, `Invalid query. When querying a collection group by ` +\r\n `documentId(), the value provided must result in a valid document path, ` +\r\n `but '${path}' is not because it has an odd number of segments (${path.length}).`);\r\n }\r\n return refValue(databaseId, new DocumentKey(path));\r\n }\r\n else if (documentIdValue instanceof DocumentReference) {\r\n return refValue(databaseId, documentIdValue._key);\r\n }\r\n else {\r\n throw new FirestoreError(Code.INVALID_ARGUMENT, `Invalid query. When querying with documentId(), you must provide a valid ` +\r\n `string or a DocumentReference, but it was: ` +\r\n `${valueDescription(documentIdValue)}.`);\r\n }\r\n}\r\n/**\r\n * Validates that the value passed into a disjunctive filter satisfies all\r\n * array requirements.\r\n */\r\nfunction validateDisjunctiveFilterElements(value, operator) {\r\n if (!Array.isArray(value) || value.length === 0) {\r\n throw new FirestoreError(Code.INVALID_ARGUMENT, 'Invalid Query. A non-empty array is required for ' +\r\n `'${operator.toString()}' filters.`);\r\n }\r\n if (value.length > 10) {\r\n throw new FirestoreError(Code.INVALID_ARGUMENT, `Invalid Query. '${operator.toString()}' filters support a ` +\r\n 'maximum of 10 elements in the value array.');\r\n }\r\n}\r\n/**\r\n * Given an operator, returns the set of operators that cannot be used with it.\r\n *\r\n * Operators in a query must adhere to the following set of rules:\r\n * 1. Only one array operator is allowed.\r\n * 2. Only one disjunctive operator is allowed.\r\n * 3. `NOT_EQUAL` cannot be used with another `NOT_EQUAL` operator.\r\n * 4. `NOT_IN` cannot be used with array, disjunctive, or `NOT_EQUAL` operators.\r\n *\r\n * Array operators: `ARRAY_CONTAINS`, `ARRAY_CONTAINS_ANY`\r\n * Disjunctive operators: `IN`, `ARRAY_CONTAINS_ANY`, `NOT_IN`\r\n */\r\nfunction conflictingOps(op) {\r\n switch (op) {\r\n case \"!=\" /* Operator.NOT_EQUAL */:\r\n return [\"!=\" /* Operator.NOT_EQUAL */, \"not-in\" /* Operator.NOT_IN */];\r\n case \"array-contains\" /* Operator.ARRAY_CONTAINS */:\r\n return [\r\n \"array-contains\" /* Operator.ARRAY_CONTAINS */,\r\n \"array-contains-any\" /* Operator.ARRAY_CONTAINS_ANY */,\r\n \"not-in\" /* Operator.NOT_IN */\r\n ];\r\n case \"in\" /* Operator.IN */:\r\n return [\"array-contains-any\" /* Operator.ARRAY_CONTAINS_ANY */, \"in\" /* Operator.IN */, \"not-in\" /* Operator.NOT_IN */];\r\n case \"array-contains-any\" /* Operator.ARRAY_CONTAINS_ANY */:\r\n return [\r\n \"array-contains\" /* Operator.ARRAY_CONTAINS */,\r\n \"array-contains-any\" /* Operator.ARRAY_CONTAINS_ANY */,\r\n \"in\" /* Operator.IN */,\r\n \"not-in\" /* Operator.NOT_IN */\r\n ];\r\n case \"not-in\" /* Operator.NOT_IN */:\r\n return [\r\n \"array-contains\" /* Operator.ARRAY_CONTAINS */,\r\n \"array-contains-any\" /* Operator.ARRAY_CONTAINS_ANY */,\r\n \"in\" /* Operator.IN */,\r\n \"not-in\" /* Operator.NOT_IN */,\r\n \"!=\" /* Operator.NOT_EQUAL */\r\n ];\r\n default:\r\n return [];\r\n }\r\n}\r\nfunction validateNewFieldFilter(query, fieldFilter) {\r\n if (fieldFilter.isInequality()) {\r\n const existingInequality = getInequalityFilterField(query);\r\n const newInequality = fieldFilter.field;\r\n if (existingInequality !== null &&\r\n !existingInequality.isEqual(newInequality)) {\r\n throw new FirestoreError(Code.INVALID_ARGUMENT, 'Invalid query. All where filters with an inequality' +\r\n ' (<, <=, !=, not-in, >, or >=) must be on the same field. But you have' +\r\n ` inequality filters on '${existingInequality.toString()}'` +\r\n ` and '${newInequality.toString()}'`);\r\n }\r\n const firstOrderByField = getFirstOrderByField(query);\r\n if (firstOrderByField !== null) {\r\n validateOrderByAndInequalityMatch(query, newInequality, firstOrderByField);\r\n }\r\n }\r\n const conflictingOp = findOpInsideFilters(query.filters, conflictingOps(fieldFilter.op));\r\n if (conflictingOp !== null) {\r\n // Special case when it's a duplicate op to give a slightly clearer error message.\r\n if (conflictingOp === fieldFilter.op) {\r\n throw new FirestoreError(Code.INVALID_ARGUMENT, 'Invalid query. You cannot use more than one ' +\r\n `'${fieldFilter.op.toString()}' filter.`);\r\n }\r\n else {\r\n throw new FirestoreError(Code.INVALID_ARGUMENT, `Invalid query. You cannot use '${fieldFilter.op.toString()}' filters ` +\r\n `with '${conflictingOp.toString()}' filters.`);\r\n }\r\n }\r\n}\r\nfunction validateNewFilter(query, filter) {\r\n let testQuery = query;\r\n const subFilters = filter.getFlattenedFilters();\r\n for (const subFilter of subFilters) {\r\n validateNewFieldFilter(testQuery, subFilter);\r\n testQuery = queryWithAddedFilter(testQuery, subFilter);\r\n }\r\n}\r\n// Checks if any of the provided filter operators are included in the given list of filters and\r\n// returns the first one that is, or null if none are.\r\nfunction findOpInsideFilters(filters, operators) {\r\n for (const filter of filters) {\r\n for (const fieldFilter of filter.getFlattenedFilters()) {\r\n if (operators.indexOf(fieldFilter.op) >= 0) {\r\n return fieldFilter.op;\r\n }\r\n }\r\n }\r\n return null;\r\n}\r\nfunction validateNewOrderBy(query, orderBy) {\r\n if (getFirstOrderByField(query) === null) {\r\n // This is the first order by. It must match any inequality.\r\n const inequalityField = getInequalityFilterField(query);\r\n if (inequalityField !== null) {\r\n validateOrderByAndInequalityMatch(query, inequalityField, orderBy.field);\r\n }\r\n }\r\n}\r\nfunction validateOrderByAndInequalityMatch(baseQuery, inequality, orderBy) {\r\n if (!orderBy.isEqual(inequality)) {\r\n throw new FirestoreError(Code.INVALID_ARGUMENT, `Invalid query. You have a where filter with an inequality ` +\r\n `(<, <=, !=, not-in, >, or >=) on field '${inequality.toString()}' ` +\r\n `and so you must also use '${inequality.toString()}' ` +\r\n `as your first argument to orderBy(), but your first orderBy() ` +\r\n `is on field '${orderBy.toString()}' instead.`);\r\n }\r\n}\r\nfunction validateQueryFilterConstraint(functionName, queryConstraint) {\r\n if (!(queryConstraint instanceof QueryFieldFilterConstraint) &&\r\n !(queryConstraint instanceof QueryCompositeFilterConstraint)) {\r\n throw new FirestoreError(Code.INVALID_ARGUMENT, `Function ${functionName}() requires AppliableConstraints created with a call to 'where(...)', 'or(...)', or 'and(...)'.`);\r\n }\r\n}\r\nfunction validateQueryConstraintArray(queryConstraint) {\r\n const compositeFilterCount = queryConstraint.filter(filter => filter instanceof QueryCompositeFilterConstraint).length;\r\n const fieldFilterCount = queryConstraint.filter(filter => filter instanceof QueryFieldFilterConstraint).length;\r\n if (compositeFilterCount > 1 ||\r\n (compositeFilterCount > 0 && fieldFilterCount > 0)) {\r\n throw new FirestoreError(Code.INVALID_ARGUMENT, 'InvalidQuery. When using composite filters, you cannot use ' +\r\n 'more than one filter at the top level. Consider nesting the multiple ' +\r\n 'filters within an `and(...)` statement. For example: ' +\r\n 'change `query(query, where(...), or(...))` to ' +\r\n '`query(query, and(where(...), or(...)))`.');\r\n }\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/**\r\n * Converts Firestore's internal types to the JavaScript types that we expose\r\n * to the user.\r\n *\r\n * @internal\r\n */\r\nclass AbstractUserDataWriter {\r\n convertValue(value, serverTimestampBehavior = 'none') {\r\n switch (typeOrder(value)) {\r\n case 0 /* TypeOrder.NullValue */:\r\n return null;\r\n case 1 /* TypeOrder.BooleanValue */:\r\n return value.booleanValue;\r\n case 2 /* TypeOrder.NumberValue */:\r\n return normalizeNumber(value.integerValue || value.doubleValue);\r\n case 3 /* TypeOrder.TimestampValue */:\r\n return this.convertTimestamp(value.timestampValue);\r\n case 4 /* TypeOrder.ServerTimestampValue */:\r\n return this.convertServerTimestamp(value, serverTimestampBehavior);\r\n case 5 /* TypeOrder.StringValue */:\r\n return value.stringValue;\r\n case 6 /* TypeOrder.BlobValue */:\r\n return this.convertBytes(normalizeByteString(value.bytesValue));\r\n case 7 /* TypeOrder.RefValue */:\r\n return this.convertReference(value.referenceValue);\r\n case 8 /* TypeOrder.GeoPointValue */:\r\n return this.convertGeoPoint(value.geoPointValue);\r\n case 9 /* TypeOrder.ArrayValue */:\r\n return this.convertArray(value.arrayValue, serverTimestampBehavior);\r\n case 10 /* TypeOrder.ObjectValue */:\r\n return this.convertObject(value.mapValue, serverTimestampBehavior);\r\n default:\r\n throw fail();\r\n }\r\n }\r\n convertObject(mapValue, serverTimestampBehavior) {\r\n const result = {};\r\n forEach(mapValue.fields, (key, value) => {\r\n result[key] = this.convertValue(value, serverTimestampBehavior);\r\n });\r\n return result;\r\n }\r\n convertGeoPoint(value) {\r\n return new GeoPoint(normalizeNumber(value.latitude), normalizeNumber(value.longitude));\r\n }\r\n convertArray(arrayValue, serverTimestampBehavior) {\r\n return (arrayValue.values || []).map(value => this.convertValue(value, serverTimestampBehavior));\r\n }\r\n convertServerTimestamp(value, serverTimestampBehavior) {\r\n switch (serverTimestampBehavior) {\r\n case 'previous':\r\n const previousValue = getPreviousValue(value);\r\n if (previousValue == null) {\r\n return null;\r\n }\r\n return this.convertValue(previousValue, serverTimestampBehavior);\r\n case 'estimate':\r\n return this.convertTimestamp(getLocalWriteTime(value));\r\n default:\r\n return null;\r\n }\r\n }\r\n convertTimestamp(value) {\r\n const normalizedValue = normalizeTimestamp(value);\r\n return new Timestamp(normalizedValue.seconds, normalizedValue.nanos);\r\n }\r\n convertDocumentKey(name, expectedDatabaseId) {\r\n const resourcePath = ResourcePath.fromString(name);\r\n hardAssert(isValidResourceName(resourcePath));\r\n const databaseId = new DatabaseId(resourcePath.get(1), resourcePath.get(3));\r\n const key = new DocumentKey(resourcePath.popFirst(5));\r\n if (!databaseId.isEqual(expectedDatabaseId)) {\r\n // TODO(b/64130202): Somehow support foreign references.\r\n logError(`Document ${key} contains a document ` +\r\n `reference within a different database (` +\r\n `${databaseId.projectId}/${databaseId.database}) which is not ` +\r\n `supported. It will be treated as a reference in the current ` +\r\n `database (${expectedDatabaseId.projectId}/${expectedDatabaseId.database}) ` +\r\n `instead.`);\r\n }\r\n return key;\r\n }\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/**\r\n * Converts custom model object of type T into `DocumentData` by applying the\r\n * converter if it exists.\r\n *\r\n * This function is used when converting user objects to `DocumentData`\r\n * because we want to provide the user with a more specific error message if\r\n * their `set()` or fails due to invalid data originating from a `toFirestore()`\r\n * call.\r\n */\r\nfunction applyFirestoreDataConverter(converter, value, options) {\r\n let convertedValue;\r\n if (converter) {\r\n if (options && (options.merge || options.mergeFields)) {\r\n // Cast to `any` in order to satisfy the union type constraint on\r\n // toFirestore().\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n convertedValue = converter.toFirestore(value, options);\r\n }\r\n else {\r\n convertedValue = converter.toFirestore(value);\r\n }\r\n }\r\n else {\r\n convertedValue = value;\r\n }\r\n return convertedValue;\r\n}\r\nclass LiteUserDataWriter extends AbstractUserDataWriter {\r\n constructor(firestore) {\r\n super();\r\n this.firestore = firestore;\r\n }\r\n convertBytes(bytes) {\r\n return new Bytes(bytes);\r\n }\r\n convertReference(name) {\r\n const key = this.convertDocumentKey(name, this.firestore._databaseId);\r\n return new DocumentReference(this.firestore, /* converter= */ null, key);\r\n }\r\n}\r\n/**\r\n * Reads the document referred to by the specified document reference.\r\n *\r\n * All documents are directly fetched from the server, even if the document was\r\n * previously read or modified. Recent modifications are only reflected in the\r\n * retrieved `DocumentSnapshot` if they have already been applied by the\r\n * backend. If the client is offline, the read fails. If you like to use\r\n * caching or see local modifications, please use the full Firestore SDK.\r\n *\r\n * @param reference - The reference of the document to fetch.\r\n * @returns A Promise resolved with a `DocumentSnapshot` containing the current\r\n * document contents.\r\n */\r\nfunction getDoc(reference) {\r\n reference = cast(reference, DocumentReference);\r\n const datastore = getDatastore(reference.firestore);\r\n const userDataWriter = new LiteUserDataWriter(reference.firestore);\r\n return invokeBatchGetDocumentsRpc(datastore, [reference._key]).then(result => {\r\n hardAssert(result.length === 1);\r\n const document = result[0];\r\n return new DocumentSnapshot(reference.firestore, userDataWriter, reference._key, document.isFoundDocument() ? document : null, reference.converter);\r\n });\r\n}\r\n/**\r\n * Executes the query and returns the results as a {@link QuerySnapshot}.\r\n *\r\n * All queries are executed directly by the server, even if the the query was\r\n * previously executed. Recent modifications are only reflected in the retrieved\r\n * results if they have already been applied by the backend. If the client is\r\n * offline, the operation fails. To see previously cached result and local\r\n * modifications, use the full Firestore SDK.\r\n *\r\n * @param query - The `Query` to execute.\r\n * @returns A Promise that will be resolved with the results of the query.\r\n */\r\nfunction getDocs(query) {\r\n query = cast(query, Query);\r\n validateHasExplicitOrderByForLimitToLast(query._query);\r\n const datastore = getDatastore(query.firestore);\r\n const userDataWriter = new LiteUserDataWriter(query.firestore);\r\n return invokeRunQueryRpc(datastore, query._query).then(result => {\r\n const docs = result.map(doc => new QueryDocumentSnapshot(query.firestore, userDataWriter, doc.key, doc, query.converter));\r\n if (query._query.limitType === \"L\" /* LimitType.Last */) {\r\n // Limit to last queries reverse the orderBy constraint that was\r\n // specified by the user. As such, we need to reverse the order of the\r\n // results to return the documents in the expected order.\r\n docs.reverse();\r\n }\r\n return new QuerySnapshot(query, docs);\r\n });\r\n}\r\nfunction setDoc(reference, data, options) {\r\n reference = cast(reference, DocumentReference);\r\n const convertedValue = applyFirestoreDataConverter(reference.converter, data, options);\r\n const dataReader = newUserDataReader(reference.firestore);\r\n const parsed = parseSetData(dataReader, 'setDoc', reference._key, convertedValue, reference.converter !== null, options);\r\n const datastore = getDatastore(reference.firestore);\r\n return invokeCommitRpc(datastore, [\r\n parsed.toMutation(reference._key, Precondition.none())\r\n ]);\r\n}\r\nfunction updateDoc(reference, fieldOrUpdateData, value, ...moreFieldsAndValues) {\r\n reference = cast(reference, DocumentReference);\r\n const dataReader = newUserDataReader(reference.firestore);\r\n // For Compat types, we have to \"extract\" the underlying types before\r\n // performing validation.\r\n fieldOrUpdateData = getModularInstance(fieldOrUpdateData);\r\n let parsed;\r\n if (typeof fieldOrUpdateData === 'string' ||\r\n fieldOrUpdateData instanceof FieldPath) {\r\n parsed = parseUpdateVarargs(dataReader, 'updateDoc', reference._key, fieldOrUpdateData, value, moreFieldsAndValues);\r\n }\r\n else {\r\n parsed = parseUpdateData(dataReader, 'updateDoc', reference._key, fieldOrUpdateData);\r\n }\r\n const datastore = getDatastore(reference.firestore);\r\n return invokeCommitRpc(datastore, [\r\n parsed.toMutation(reference._key, Precondition.exists(true))\r\n ]);\r\n}\r\n/**\r\n * Deletes the document referred to by the specified `DocumentReference`.\r\n *\r\n * The deletion will only be reflected in document reads that occur after the\r\n * returned promise resolves. If the client is offline, the\r\n * delete fails. If you would like to see local modifications or buffer writes\r\n * until the client is online, use the full Firestore SDK.\r\n *\r\n * @param reference - A reference to the document to delete.\r\n * @returns A `Promise` resolved once the document has been successfully\r\n * deleted from the backend.\r\n */\r\nfunction deleteDoc(reference) {\r\n reference = cast(reference, DocumentReference);\r\n const datastore = getDatastore(reference.firestore);\r\n return invokeCommitRpc(datastore, [\r\n new DeleteMutation(reference._key, Precondition.none())\r\n ]);\r\n}\r\n/**\r\n * Add a new document to specified `CollectionReference` with the given data,\r\n * assigning it a document ID automatically.\r\n *\r\n * The result of this write will only be reflected in document reads that occur\r\n * after the returned promise resolves. If the client is offline, the\r\n * write fails. If you would like to see local modifications or buffer writes\r\n * until the client is online, use the full Firestore SDK.\r\n *\r\n * @param reference - A reference to the collection to add this document to.\r\n * @param data - An Object containing the data for the new document.\r\n * @throws Error - If the provided input is not a valid Firestore document.\r\n * @returns A `Promise` resolved with a `DocumentReference` pointing to the\r\n * newly created document after it has been written to the backend.\r\n */\r\nfunction addDoc(reference, data) {\r\n reference = cast(reference, CollectionReference);\r\n const docRef = doc(reference);\r\n const convertedValue = applyFirestoreDataConverter(reference.converter, data);\r\n const dataReader = newUserDataReader(reference.firestore);\r\n const parsed = parseSetData(dataReader, 'addDoc', docRef._key, convertedValue, docRef.converter !== null, {});\r\n const datastore = getDatastore(reference.firestore);\r\n return invokeCommitRpc(datastore, [\r\n parsed.toMutation(docRef._key, Precondition.exists(false))\r\n ]).then(() => docRef);\r\n}\n\n/**\r\n * @license\r\n * Copyright 2022 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/**\r\n * Calculates the number of documents in the result set of the given query,\r\n * without actually downloading the documents.\r\n *\r\n * Using this function to count the documents is efficient because only the\r\n * final count, not the documents' data, is downloaded. This function can even\r\n * count the documents if the result set would be prohibitively large to\r\n * download entirely (e.g. thousands of documents).\r\n *\r\n * @param query - The query whose result set size to calculate.\r\n * @returns A Promise that will be resolved with the count; the count can be\r\n * retrieved from `snapshot.data().count`, where `snapshot` is the\r\n * `AggregateQuerySnapshot` to which the returned Promise resolves.\r\n */\r\nfunction getCount(query) {\r\n const firestore = cast(query.firestore, Firestore);\r\n const datastore = getDatastore(firestore);\r\n const userDataWriter = new LiteUserDataWriter(firestore);\r\n return new CountQueryRunner(query, datastore, userDataWriter).run();\r\n}\r\n/**\r\n * Compares two `AggregateQuerySnapshot` instances for equality.\r\n *\r\n * Two `AggregateQuerySnapshot` instances are considered \"equal\" if they have\r\n * underlying queries that compare equal, and the same data.\r\n *\r\n * @param left - The first `AggregateQuerySnapshot` to compare.\r\n * @param right - The second `AggregateQuerySnapshot` to compare.\r\n *\r\n * @returns `true` if the objects are \"equal\", as defined above, or `false`\r\n * otherwise.\r\n */\r\nfunction aggregateQuerySnapshotEqual(left, right) {\r\n return (queryEqual(left.query, right.query) && deepEqual(left.data(), right.data()));\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/**\r\n * Returns a sentinel for use with {@link @firebase/firestore/lite#(updateDoc:1)} or\r\n * {@link @firebase/firestore/lite#(setDoc:1)} with `{merge: true}` to mark a field for deletion.\r\n */\r\nfunction deleteField() {\r\n return new DeleteFieldValueImpl('deleteField');\r\n}\r\n/**\r\n * Returns a sentinel used with {@link @firebase/firestore/lite#(setDoc:1)} or {@link @firebase/firestore/lite#(updateDoc:1)} to\r\n * include a server-generated timestamp in the written data.\r\n */\r\nfunction serverTimestamp() {\r\n return new ServerTimestampFieldValueImpl('serverTimestamp');\r\n}\r\n/**\r\n * Returns a special value that can be used with {@link @firebase/firestore/lite#(setDoc:1)} or {@link\r\n * @firebase/firestore/lite#(updateDoc:1)} that tells the server to union the given elements with any array\r\n * value that already exists on the server. Each specified element that doesn't\r\n * already exist in the array will be added to the end. If the field being\r\n * modified is not already an array it will be overwritten with an array\r\n * containing exactly the specified elements.\r\n *\r\n * @param elements - The elements to union into the array.\r\n * @returns The `FieldValue` sentinel for use in a call to `setDoc()` or\r\n * `updateDoc()`.\r\n */\r\nfunction arrayUnion(...elements) {\r\n // NOTE: We don't actually parse the data until it's used in set() or\r\n // update() since we'd need the Firestore instance to do this.\r\n return new ArrayUnionFieldValueImpl('arrayUnion', elements);\r\n}\r\n/**\r\n * Returns a special value that can be used with {@link (setDoc:1)} or {@link\r\n * updateDoc:1} that tells the server to remove the given elements from any\r\n * array value that already exists on the server. All instances of each element\r\n * specified will be removed from the array. If the field being modified is not\r\n * already an array it will be overwritten with an empty array.\r\n *\r\n * @param elements - The elements to remove from the array.\r\n * @returns The `FieldValue` sentinel for use in a call to `setDoc()` or\r\n * `updateDoc()`\r\n */\r\nfunction arrayRemove(...elements) {\r\n // NOTE: We don't actually parse the data until it's used in set() or\r\n // update() since we'd need the Firestore instance to do this.\r\n return new ArrayRemoveFieldValueImpl('arrayRemove', elements);\r\n}\r\n/**\r\n * Returns a special value that can be used with {@link @firebase/firestore/lite#(setDoc:1)} or {@link\r\n * @firebase/firestore/lite#(updateDoc:1)} that tells the server to increment the field's current value by\r\n * the given value.\r\n *\r\n * If either the operand or the current field value uses floating point\r\n * precision, all arithmetic follows IEEE 754 semantics. If both values are\r\n * integers, values outside of JavaScript's safe number range\r\n * (`Number.MIN_SAFE_INTEGER` to `Number.MAX_SAFE_INTEGER`) are also subject to\r\n * precision loss. Furthermore, once processed by the Firestore backend, all\r\n * integer operations are capped between -2^63 and 2^63-1.\r\n *\r\n * If the current field value is not of type `number`, or if the field does not\r\n * yet exist, the transformation sets the field to the given value.\r\n *\r\n * @param n - The value to increment by.\r\n * @returns The `FieldValue` sentinel for use in a call to `setDoc()` or\r\n * `updateDoc()`\r\n */\r\nfunction increment(n) {\r\n return new NumericIncrementFieldValueImpl('increment', n);\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/**\r\n * A write batch, used to perform multiple writes as a single atomic unit.\r\n *\r\n * A `WriteBatch` object can be acquired by calling {@link writeBatch}. It\r\n * provides methods for adding writes to the write batch. None of the writes\r\n * will be committed (or visible locally) until {@link WriteBatch.commit} is\r\n * called.\r\n */\r\nclass WriteBatch {\r\n /** @hideconstructor */\r\n constructor(_firestore, _commitHandler) {\r\n this._firestore = _firestore;\r\n this._commitHandler = _commitHandler;\r\n this._mutations = [];\r\n this._committed = false;\r\n this._dataReader = newUserDataReader(_firestore);\r\n }\r\n set(documentRef, data, options) {\r\n this._verifyNotCommitted();\r\n const ref = validateReference(documentRef, this._firestore);\r\n const convertedValue = applyFirestoreDataConverter(ref.converter, data, options);\r\n const parsed = parseSetData(this._dataReader, 'WriteBatch.set', ref._key, convertedValue, ref.converter !== null, options);\r\n this._mutations.push(parsed.toMutation(ref._key, Precondition.none()));\r\n return this;\r\n }\r\n update(documentRef, fieldOrUpdateData, value, ...moreFieldsAndValues) {\r\n this._verifyNotCommitted();\r\n const ref = validateReference(documentRef, this._firestore);\r\n // For Compat types, we have to \"extract\" the underlying types before\r\n // performing validation.\r\n fieldOrUpdateData = getModularInstance(fieldOrUpdateData);\r\n let parsed;\r\n if (typeof fieldOrUpdateData === 'string' ||\r\n fieldOrUpdateData instanceof FieldPath) {\r\n parsed = parseUpdateVarargs(this._dataReader, 'WriteBatch.update', ref._key, fieldOrUpdateData, value, moreFieldsAndValues);\r\n }\r\n else {\r\n parsed = parseUpdateData(this._dataReader, 'WriteBatch.update', ref._key, fieldOrUpdateData);\r\n }\r\n this._mutations.push(parsed.toMutation(ref._key, Precondition.exists(true)));\r\n return this;\r\n }\r\n /**\r\n * Deletes the document referred to by the provided {@link DocumentReference}.\r\n *\r\n * @param documentRef - A reference to the document to be deleted.\r\n * @returns This `WriteBatch` instance. Used for chaining method calls.\r\n */\r\n delete(documentRef) {\r\n this._verifyNotCommitted();\r\n const ref = validateReference(documentRef, this._firestore);\r\n this._mutations = this._mutations.concat(new DeleteMutation(ref._key, Precondition.none()));\r\n return this;\r\n }\r\n /**\r\n * Commits all of the writes in this write batch as a single atomic unit.\r\n *\r\n * The result of these writes will only be reflected in document reads that\r\n * occur after the returned promise resolves. If the client is offline, the\r\n * write fails. If you would like to see local modifications or buffer writes\r\n * until the client is online, use the full Firestore SDK.\r\n *\r\n * @returns A `Promise` resolved once all of the writes in the batch have been\r\n * successfully written to the backend as an atomic unit (note that it won't\r\n * resolve while you're offline).\r\n */\r\n commit() {\r\n this._verifyNotCommitted();\r\n this._committed = true;\r\n if (this._mutations.length > 0) {\r\n return this._commitHandler(this._mutations);\r\n }\r\n return Promise.resolve();\r\n }\r\n _verifyNotCommitted() {\r\n if (this._committed) {\r\n throw new FirestoreError(Code.FAILED_PRECONDITION, 'A write batch can no longer be used after commit() ' +\r\n 'has been called.');\r\n }\r\n }\r\n}\r\nfunction validateReference(documentRef, firestore) {\r\n documentRef = getModularInstance(documentRef);\r\n if (documentRef.firestore !== firestore) {\r\n throw new FirestoreError(Code.INVALID_ARGUMENT, 'Provided document reference is from a different Firestore instance.');\r\n }\r\n else {\r\n return documentRef;\r\n }\r\n}\r\n/**\r\n * Creates a write batch, used for performing multiple writes as a single\r\n * atomic operation. The maximum number of writes allowed in a single WriteBatch\r\n * is 500.\r\n *\r\n * The result of these writes will only be reflected in document reads that\r\n * occur after the returned promise resolves. If the client is offline, the\r\n * write fails. If you would like to see local modifications or buffer writes\r\n * until the client is online, use the full Firestore SDK.\r\n *\r\n * @returns A `WriteBatch` that can be used to atomically execute multiple\r\n * writes.\r\n */\r\nfunction writeBatch(firestore) {\r\n firestore = cast(firestore, Firestore);\r\n const datastore = getDatastore(firestore);\r\n return new WriteBatch(firestore, writes => invokeCommitRpc(datastore, writes));\r\n}\n\n/**\r\n * @license\r\n * Copyright 2022 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nconst DEFAULT_TRANSACTION_OPTIONS = {\r\n maxAttempts: 5\r\n};\r\nfunction validateTransactionOptions(options) {\r\n if (options.maxAttempts < 1) {\r\n throw new FirestoreError(Code.INVALID_ARGUMENT, 'Max attempts must be at least 1');\r\n }\r\n}\n\n/**\r\n * @license\r\n * Copyright 2017 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/**\r\n * Internal transaction object responsible for accumulating the mutations to\r\n * perform and the base versions for any documents read.\r\n */\r\nclass Transaction$1 {\r\n constructor(datastore) {\r\n this.datastore = datastore;\r\n // The version of each document that was read during this transaction.\r\n this.readVersions = new Map();\r\n this.mutations = [];\r\n this.committed = false;\r\n /**\r\n * A deferred usage error that occurred previously in this transaction that\r\n * will cause the transaction to fail once it actually commits.\r\n */\r\n this.lastWriteError = null;\r\n /**\r\n * Set of documents that have been written in the transaction.\r\n *\r\n * When there's more than one write to the same key in a transaction, any\r\n * writes after the first are handled differently.\r\n */\r\n this.writtenDocs = new Set();\r\n }\r\n async lookup(keys) {\r\n this.ensureCommitNotCalled();\r\n if (this.mutations.length > 0) {\r\n throw new FirestoreError(Code.INVALID_ARGUMENT, 'Firestore transactions require all reads to be executed before all writes.');\r\n }\r\n const docs = await invokeBatchGetDocumentsRpc(this.datastore, keys);\r\n docs.forEach(doc => this.recordVersion(doc));\r\n return docs;\r\n }\r\n set(key, data) {\r\n this.write(data.toMutation(key, this.precondition(key)));\r\n this.writtenDocs.add(key.toString());\r\n }\r\n update(key, data) {\r\n try {\r\n this.write(data.toMutation(key, this.preconditionForUpdate(key)));\r\n }\r\n catch (e) {\r\n this.lastWriteError = e;\r\n }\r\n this.writtenDocs.add(key.toString());\r\n }\r\n delete(key) {\r\n this.write(new DeleteMutation(key, this.precondition(key)));\r\n this.writtenDocs.add(key.toString());\r\n }\r\n async commit() {\r\n this.ensureCommitNotCalled();\r\n if (this.lastWriteError) {\r\n throw this.lastWriteError;\r\n }\r\n const unwritten = this.readVersions;\r\n // For each mutation, note that the doc was written.\r\n this.mutations.forEach(mutation => {\r\n unwritten.delete(mutation.key.toString());\r\n });\r\n // For each document that was read but not written to, we want to perform\r\n // a `verify` operation.\r\n unwritten.forEach((_, path) => {\r\n const key = DocumentKey.fromPath(path);\r\n this.mutations.push(new VerifyMutation(key, this.precondition(key)));\r\n });\r\n await invokeCommitRpc(this.datastore, this.mutations);\r\n this.committed = true;\r\n }\r\n recordVersion(doc) {\r\n let docVersion;\r\n if (doc.isFoundDocument()) {\r\n docVersion = doc.version;\r\n }\r\n else if (doc.isNoDocument()) {\r\n // Represent a deleted doc using SnapshotVersion.min().\r\n docVersion = SnapshotVersion.min();\r\n }\r\n else {\r\n throw fail();\r\n }\r\n const existingVersion = this.readVersions.get(doc.key.toString());\r\n if (existingVersion) {\r\n if (!docVersion.isEqual(existingVersion)) {\r\n // This transaction will fail no matter what.\r\n throw new FirestoreError(Code.ABORTED, 'Document version changed between two reads.');\r\n }\r\n }\r\n else {\r\n this.readVersions.set(doc.key.toString(), docVersion);\r\n }\r\n }\r\n /**\r\n * Returns the version of this document when it was read in this transaction,\r\n * as a precondition, or no precondition if it was not read.\r\n */\r\n precondition(key) {\r\n const version = this.readVersions.get(key.toString());\r\n if (!this.writtenDocs.has(key.toString()) && version) {\r\n if (version.isEqual(SnapshotVersion.min())) {\r\n return Precondition.exists(false);\r\n }\r\n else {\r\n return Precondition.updateTime(version);\r\n }\r\n }\r\n else {\r\n return Precondition.none();\r\n }\r\n }\r\n /**\r\n * Returns the precondition for a document if the operation is an update.\r\n */\r\n preconditionForUpdate(key) {\r\n const version = this.readVersions.get(key.toString());\r\n // The first time a document is written, we want to take into account the\r\n // read time and existence\r\n if (!this.writtenDocs.has(key.toString()) && version) {\r\n if (version.isEqual(SnapshotVersion.min())) {\r\n // The document doesn't exist, so fail the transaction.\r\n // This has to be validated locally because you can't send a\r\n // precondition that a document does not exist without changing the\r\n // semantics of the backend write to be an insert. This is the reverse\r\n // of what we want, since we want to assert that the document doesn't\r\n // exist but then send the update and have it fail. Since we can't\r\n // express that to the backend, we have to validate locally.\r\n // Note: this can change once we can send separate verify writes in the\r\n // transaction.\r\n throw new FirestoreError(Code.INVALID_ARGUMENT, \"Can't update a document that doesn't exist.\");\r\n }\r\n // Document exists, base precondition on document update time.\r\n return Precondition.updateTime(version);\r\n }\r\n else {\r\n // Document was not read, so we just use the preconditions for a blind\r\n // update.\r\n return Precondition.exists(true);\r\n }\r\n }\r\n write(mutation) {\r\n this.ensureCommitNotCalled();\r\n this.mutations.push(mutation);\r\n }\r\n ensureCommitNotCalled() {\r\n }\r\n}\n\n/**\r\n * @license\r\n * Copyright 2019 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/**\r\n * TransactionRunner encapsulates the logic needed to run and retry transactions\r\n * with backoff.\r\n */\r\nclass TransactionRunner {\r\n constructor(asyncQueue, datastore, options, updateFunction, deferred) {\r\n this.asyncQueue = asyncQueue;\r\n this.datastore = datastore;\r\n this.options = options;\r\n this.updateFunction = updateFunction;\r\n this.deferred = deferred;\r\n this.attemptsRemaining = options.maxAttempts;\r\n this.backoff = new ExponentialBackoff(this.asyncQueue, \"transaction_retry\" /* TimerId.TransactionRetry */);\r\n }\r\n /** Runs the transaction and sets the result on deferred. */\r\n run() {\r\n this.attemptsRemaining -= 1;\r\n this.runWithBackOff();\r\n }\r\n runWithBackOff() {\r\n this.backoff.backoffAndRun(async () => {\r\n const transaction = new Transaction$1(this.datastore);\r\n const userPromise = this.tryRunUpdateFunction(transaction);\r\n if (userPromise) {\r\n userPromise\r\n .then(result => {\r\n this.asyncQueue.enqueueAndForget(() => {\r\n return transaction\r\n .commit()\r\n .then(() => {\r\n this.deferred.resolve(result);\r\n })\r\n .catch(commitError => {\r\n this.handleTransactionError(commitError);\r\n });\r\n });\r\n })\r\n .catch(userPromiseError => {\r\n this.handleTransactionError(userPromiseError);\r\n });\r\n }\r\n });\r\n }\r\n tryRunUpdateFunction(transaction) {\r\n try {\r\n const userPromise = this.updateFunction(transaction);\r\n if (isNullOrUndefined(userPromise) ||\r\n !userPromise.catch ||\r\n !userPromise.then) {\r\n this.deferred.reject(Error('Transaction callback must return a Promise'));\r\n return null;\r\n }\r\n return userPromise;\r\n }\r\n catch (error) {\r\n // Do not retry errors thrown by user provided updateFunction.\r\n this.deferred.reject(error);\r\n return null;\r\n }\r\n }\r\n handleTransactionError(error) {\r\n if (this.attemptsRemaining > 0 && this.isRetryableTransactionError(error)) {\r\n this.attemptsRemaining -= 1;\r\n this.asyncQueue.enqueueAndForget(() => {\r\n this.runWithBackOff();\r\n return Promise.resolve();\r\n });\r\n }\r\n else {\r\n this.deferred.reject(error);\r\n }\r\n }\r\n isRetryableTransactionError(error) {\r\n if (error.name === 'FirebaseError') {\r\n // In transactions, the backend will fail outdated reads with FAILED_PRECONDITION and\r\n // non-matching document versions with ABORTED. These errors should be retried.\r\n const code = error.code;\r\n return (code === 'aborted' ||\r\n code === 'failed-precondition' ||\r\n code === 'already-exists' ||\r\n !isPermanentError(code));\r\n }\r\n return false;\r\n }\r\n}\n\n/**\r\n * @license\r\n * Copyright 2017 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/**\r\n * Represents an operation scheduled to be run in the future on an AsyncQueue.\r\n *\r\n * It is created via DelayedOperation.createAndSchedule().\r\n *\r\n * Supports cancellation (via cancel()) and early execution (via skipDelay()).\r\n *\r\n * Note: We implement `PromiseLike` instead of `Promise`, as the `Promise` type\r\n * in newer versions of TypeScript defines `finally`, which is not available in\r\n * IE.\r\n */\r\nclass DelayedOperation {\r\n constructor(asyncQueue, timerId, targetTimeMs, op, removalCallback) {\r\n this.asyncQueue = asyncQueue;\r\n this.timerId = timerId;\r\n this.targetTimeMs = targetTimeMs;\r\n this.op = op;\r\n this.removalCallback = removalCallback;\r\n this.deferred = new Deferred();\r\n this.then = this.deferred.promise.then.bind(this.deferred.promise);\r\n // It's normal for the deferred promise to be canceled (due to cancellation)\r\n // and so we attach a dummy catch callback to avoid\r\n // 'UnhandledPromiseRejectionWarning' log spam.\r\n this.deferred.promise.catch(err => { });\r\n }\r\n /**\r\n * Creates and returns a DelayedOperation that has been scheduled to be\r\n * executed on the provided asyncQueue after the provided delayMs.\r\n *\r\n * @param asyncQueue - The queue to schedule the operation on.\r\n * @param id - A Timer ID identifying the type of operation this is.\r\n * @param delayMs - The delay (ms) before the operation should be scheduled.\r\n * @param op - The operation to run.\r\n * @param removalCallback - A callback to be called synchronously once the\r\n * operation is executed or canceled, notifying the AsyncQueue to remove it\r\n * from its delayedOperations list.\r\n * PORTING NOTE: This exists to prevent making removeDelayedOperation() and\r\n * the DelayedOperation class public.\r\n */\r\n static createAndSchedule(asyncQueue, timerId, delayMs, op, removalCallback) {\r\n const targetTime = Date.now() + delayMs;\r\n const delayedOp = new DelayedOperation(asyncQueue, timerId, targetTime, op, removalCallback);\r\n delayedOp.start(delayMs);\r\n return delayedOp;\r\n }\r\n /**\r\n * Starts the timer. This is called immediately after construction by\r\n * createAndSchedule().\r\n */\r\n start(delayMs) {\r\n this.timerHandle = setTimeout(() => this.handleDelayElapsed(), delayMs);\r\n }\r\n /**\r\n * Queues the operation to run immediately (if it hasn't already been run or\r\n * canceled).\r\n */\r\n skipDelay() {\r\n return this.handleDelayElapsed();\r\n }\r\n /**\r\n * Cancels the operation if it hasn't already been executed or canceled. The\r\n * promise will be rejected.\r\n *\r\n * As long as the operation has not yet been run, calling cancel() provides a\r\n * guarantee that the operation will not be run.\r\n */\r\n cancel(reason) {\r\n if (this.timerHandle !== null) {\r\n this.clearTimeout();\r\n this.deferred.reject(new FirestoreError(Code.CANCELLED, 'Operation cancelled' + (reason ? ': ' + reason : '')));\r\n }\r\n }\r\n handleDelayElapsed() {\r\n this.asyncQueue.enqueueAndForget(() => {\r\n if (this.timerHandle !== null) {\r\n this.clearTimeout();\r\n return this.op().then(result => {\r\n return this.deferred.resolve(result);\r\n });\r\n }\r\n else {\r\n return Promise.resolve();\r\n }\r\n });\r\n }\r\n clearTimeout() {\r\n if (this.timerHandle !== null) {\r\n this.removalCallback(this);\r\n clearTimeout(this.timerHandle);\r\n this.timerHandle = null;\r\n }\r\n }\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nconst LOG_TAG = 'AsyncQueue';\r\nclass AsyncQueueImpl {\r\n constructor() {\r\n // The last promise in the queue.\r\n this.tail = Promise.resolve();\r\n // A list of retryable operations. Retryable operations are run in order and\r\n // retried with backoff.\r\n this.retryableOps = [];\r\n // Is this AsyncQueue being shut down? Once it is set to true, it will not\r\n // be changed again.\r\n this._isShuttingDown = false;\r\n // Operations scheduled to be queued in the future. Operations are\r\n // automatically removed after they are run or canceled.\r\n this.delayedOperations = [];\r\n // visible for testing\r\n this.failure = null;\r\n // Flag set while there's an outstanding AsyncQueue operation, used for\r\n // assertion sanity-checks.\r\n this.operationInProgress = false;\r\n // Enabled during shutdown on Safari to prevent future access to IndexedDB.\r\n this.skipNonRestrictedTasks = false;\r\n // List of TimerIds to fast-forward delays for.\r\n this.timerIdsToSkip = [];\r\n // Backoff timer used to schedule retries for retryable operations\r\n this.backoff = new ExponentialBackoff(this, \"async_queue_retry\" /* TimerId.AsyncQueueRetry */);\r\n // Visibility handler that triggers an immediate retry of all retryable\r\n // operations. Meant to speed up recovery when we regain file system access\r\n // after page comes into foreground.\r\n this.visibilityHandler = () => {\r\n this.backoff.skipBackoff();\r\n };\r\n }\r\n get isShuttingDown() {\r\n return this._isShuttingDown;\r\n }\r\n /**\r\n * Adds a new operation to the queue without waiting for it to complete (i.e.\r\n * we ignore the Promise result).\r\n */\r\n enqueueAndForget(op) {\r\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\r\n this.enqueue(op);\r\n }\r\n enqueueAndForgetEvenWhileRestricted(op) {\r\n this.verifyNotFailed();\r\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\r\n this.enqueueInternal(op);\r\n }\r\n enterRestrictedMode(purgeExistingTasks) {\r\n if (!this._isShuttingDown) {\r\n this._isShuttingDown = true;\r\n this.skipNonRestrictedTasks = purgeExistingTasks || false;\r\n }\r\n }\r\n enqueue(op) {\r\n this.verifyNotFailed();\r\n if (this._isShuttingDown) {\r\n // Return a Promise which never resolves.\r\n return new Promise(() => { });\r\n }\r\n // Create a deferred Promise that we can return to the callee. This\r\n // allows us to return a \"hanging Promise\" only to the callee and still\r\n // advance the queue even when the operation is not run.\r\n const task = new Deferred();\r\n return this.enqueueInternal(() => {\r\n if (this._isShuttingDown && this.skipNonRestrictedTasks) {\r\n // We do not resolve 'task'\r\n return Promise.resolve();\r\n }\r\n op().then(task.resolve, task.reject);\r\n return task.promise;\r\n }).then(() => task.promise);\r\n }\r\n enqueueRetryable(op) {\r\n this.enqueueAndForget(() => {\r\n this.retryableOps.push(op);\r\n return this.retryNextOp();\r\n });\r\n }\r\n /**\r\n * Runs the next operation from the retryable queue. If the operation fails,\r\n * reschedules with backoff.\r\n */\r\n async retryNextOp() {\r\n if (this.retryableOps.length === 0) {\r\n return;\r\n }\r\n try {\r\n await this.retryableOps[0]();\r\n this.retryableOps.shift();\r\n this.backoff.reset();\r\n }\r\n catch (e) {\r\n if (isIndexedDbTransactionError(e)) {\r\n logDebug(LOG_TAG, 'Operation failed with retryable error: ' + e);\r\n }\r\n else {\r\n throw e; // Failure will be handled by AsyncQueue\r\n }\r\n }\r\n if (this.retryableOps.length > 0) {\r\n // If there are additional operations, we re-schedule `retryNextOp()`.\r\n // This is necessary to run retryable operations that failed during\r\n // their initial attempt since we don't know whether they are already\r\n // enqueued. If, for example, `op1`, `op2`, `op3` are enqueued and `op1`\r\n // needs to be re-run, we will run `op1`, `op1`, `op2` using the\r\n // already enqueued calls to `retryNextOp()`. `op3()` will then run in the\r\n // call scheduled here.\r\n // Since `backoffAndRun()` cancels an existing backoff and schedules a\r\n // new backoff on every call, there is only ever a single additional\r\n // operation in the queue.\r\n this.backoff.backoffAndRun(() => this.retryNextOp());\r\n }\r\n }\r\n enqueueInternal(op) {\r\n const newTail = this.tail.then(() => {\r\n this.operationInProgress = true;\r\n return op()\r\n .catch((error) => {\r\n this.failure = error;\r\n this.operationInProgress = false;\r\n const message = getMessageOrStack(error);\r\n logError('INTERNAL UNHANDLED ERROR: ', message);\r\n // Re-throw the error so that this.tail becomes a rejected Promise and\r\n // all further attempts to chain (via .then) will just short-circuit\r\n // and return the rejected Promise.\r\n throw error;\r\n })\r\n .then(result => {\r\n this.operationInProgress = false;\r\n return result;\r\n });\r\n });\r\n this.tail = newTail;\r\n return newTail;\r\n }\r\n enqueueAfterDelay(timerId, delayMs, op) {\r\n this.verifyNotFailed();\r\n // Fast-forward delays for timerIds that have been overriden.\r\n if (this.timerIdsToSkip.indexOf(timerId) > -1) {\r\n delayMs = 0;\r\n }\r\n const delayedOp = DelayedOperation.createAndSchedule(this, timerId, delayMs, op, removedOp => this.removeDelayedOperation(removedOp));\r\n this.delayedOperations.push(delayedOp);\r\n return delayedOp;\r\n }\r\n verifyNotFailed() {\r\n if (this.failure) {\r\n fail();\r\n }\r\n }\r\n verifyOperationInProgress() {\r\n }\r\n /**\r\n * Waits until all currently queued tasks are finished executing. Delayed\r\n * operations are not run.\r\n */\r\n async drain() {\r\n // Operations in the queue prior to draining may have enqueued additional\r\n // operations. Keep draining the queue until the tail is no longer advanced,\r\n // which indicates that no more new operations were enqueued and that all\r\n // operations were executed.\r\n let currentTail;\r\n do {\r\n currentTail = this.tail;\r\n await currentTail;\r\n } while (currentTail !== this.tail);\r\n }\r\n /**\r\n * For Tests: Determine if a delayed operation with a particular TimerId\r\n * exists.\r\n */\r\n containsDelayedOperation(timerId) {\r\n for (const op of this.delayedOperations) {\r\n if (op.timerId === timerId) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n }\r\n /**\r\n * For Tests: Runs some or all delayed operations early.\r\n *\r\n * @param lastTimerId - Delayed operations up to and including this TimerId\r\n * will be drained. Pass TimerId.All to run all delayed operations.\r\n * @returns a Promise that resolves once all operations have been run.\r\n */\r\n runAllDelayedOperationsUntil(lastTimerId) {\r\n // Note that draining may generate more delayed ops, so we do that first.\r\n return this.drain().then(() => {\r\n // Run ops in the same order they'd run if they ran naturally.\r\n this.delayedOperations.sort((a, b) => a.targetTimeMs - b.targetTimeMs);\r\n for (const op of this.delayedOperations) {\r\n op.skipDelay();\r\n if (lastTimerId !== \"all\" /* TimerId.All */ && op.timerId === lastTimerId) {\r\n break;\r\n }\r\n }\r\n return this.drain();\r\n });\r\n }\r\n /**\r\n * For Tests: Skip all subsequent delays for a timer id.\r\n */\r\n skipDelaysForTimerId(timerId) {\r\n this.timerIdsToSkip.push(timerId);\r\n }\r\n /** Called once a DelayedOperation is run or canceled. */\r\n removeDelayedOperation(op) {\r\n // NOTE: indexOf / slice are O(n), but delayedOperations is expected to be small.\r\n const index = this.delayedOperations.indexOf(op);\r\n this.delayedOperations.splice(index, 1);\r\n }\r\n}\r\nfunction newAsyncQueue() {\r\n return new AsyncQueueImpl();\r\n}\r\n/**\r\n * Chrome includes Error.message in Error.stack. Other browsers do not.\r\n * This returns expected output of message + stack when available.\r\n * @param error - Error or FirestoreError\r\n */\r\nfunction getMessageOrStack(error) {\r\n let message = error.message || '';\r\n if (error.stack) {\r\n if (error.stack.includes(error.message)) {\r\n message = error.stack;\r\n }\r\n else {\r\n message = error.message + '\\n' + error.stack;\r\n }\r\n }\r\n return message;\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n// TODO(mrschmidt) Consider using `BaseTransaction` as the base class in the\r\n// legacy SDK.\r\n/**\r\n * A reference to a transaction.\r\n *\r\n * The `Transaction` object passed to a transaction's `updateFunction` provides\r\n * the methods to read and write data within the transaction context. See\r\n * {@link runTransaction}.\r\n */\r\nclass Transaction {\r\n /** @hideconstructor */\r\n constructor(_firestore, _transaction) {\r\n this._firestore = _firestore;\r\n this._transaction = _transaction;\r\n this._dataReader = newUserDataReader(_firestore);\r\n }\r\n /**\r\n * Reads the document referenced by the provided {@link DocumentReference}.\r\n *\r\n * @param documentRef - A reference to the document to be read.\r\n * @returns A `DocumentSnapshot` with the read data.\r\n */\r\n get(documentRef) {\r\n const ref = validateReference(documentRef, this._firestore);\r\n const userDataWriter = new LiteUserDataWriter(this._firestore);\r\n return this._transaction.lookup([ref._key]).then(docs => {\r\n if (!docs || docs.length !== 1) {\r\n return fail();\r\n }\r\n const doc = docs[0];\r\n if (doc.isFoundDocument()) {\r\n return new DocumentSnapshot(this._firestore, userDataWriter, doc.key, doc, ref.converter);\r\n }\r\n else if (doc.isNoDocument()) {\r\n return new DocumentSnapshot(this._firestore, userDataWriter, ref._key, null, ref.converter);\r\n }\r\n else {\r\n throw fail();\r\n }\r\n });\r\n }\r\n set(documentRef, value, options) {\r\n const ref = validateReference(documentRef, this._firestore);\r\n const convertedValue = applyFirestoreDataConverter(ref.converter, value, options);\r\n const parsed = parseSetData(this._dataReader, 'Transaction.set', ref._key, convertedValue, ref.converter !== null, options);\r\n this._transaction.set(ref._key, parsed);\r\n return this;\r\n }\r\n update(documentRef, fieldOrUpdateData, value, ...moreFieldsAndValues) {\r\n const ref = validateReference(documentRef, this._firestore);\r\n // For Compat types, we have to \"extract\" the underlying types before\r\n // performing validation.\r\n fieldOrUpdateData = getModularInstance(fieldOrUpdateData);\r\n let parsed;\r\n if (typeof fieldOrUpdateData === 'string' ||\r\n fieldOrUpdateData instanceof FieldPath) {\r\n parsed = parseUpdateVarargs(this._dataReader, 'Transaction.update', ref._key, fieldOrUpdateData, value, moreFieldsAndValues);\r\n }\r\n else {\r\n parsed = parseUpdateData(this._dataReader, 'Transaction.update', ref._key, fieldOrUpdateData);\r\n }\r\n this._transaction.update(ref._key, parsed);\r\n return this;\r\n }\r\n /**\r\n * Deletes the document referred to by the provided {@link DocumentReference}.\r\n *\r\n * @param documentRef - A reference to the document to be deleted.\r\n * @returns This `Transaction` instance. Used for chaining method calls.\r\n */\r\n delete(documentRef) {\r\n const ref = validateReference(documentRef, this._firestore);\r\n this._transaction.delete(ref._key);\r\n return this;\r\n }\r\n}\r\n/**\r\n * Executes the given `updateFunction` and then attempts to commit the changes\r\n * applied within the transaction. If any document read within the transaction\r\n * has changed, Cloud Firestore retries the `updateFunction`. If it fails to\r\n * commit after 5 attempts, the transaction fails.\r\n *\r\n * The maximum number of writes allowed in a single transaction is 500.\r\n *\r\n * @param firestore - A reference to the Firestore database to run this\r\n * transaction against.\r\n * @param updateFunction - The function to execute within the transaction\r\n * context.\r\n * @param options - An options object to configure maximum number of attempts to\r\n * commit.\r\n * @returns If the transaction completed successfully or was explicitly aborted\r\n * (the `updateFunction` returned a failed promise), the promise returned by the\r\n * `updateFunction `is returned here. Otherwise, if the transaction failed, a\r\n * rejected promise with the corresponding failure error is returned.\r\n */\r\nfunction runTransaction(firestore, updateFunction, options) {\r\n firestore = cast(firestore, Firestore);\r\n const datastore = getDatastore(firestore);\r\n const optionsWithDefaults = Object.assign(Object.assign({}, DEFAULT_TRANSACTION_OPTIONS), options);\r\n validateTransactionOptions(optionsWithDefaults);\r\n const deferred = new Deferred();\r\n new TransactionRunner(newAsyncQueue(), datastore, optionsWithDefaults, internalTransaction => updateFunction(new Transaction(firestore, internalTransaction)), deferred).run();\r\n return deferred.promise;\r\n}\n\n/**\r\n * Firestore Lite\r\n *\r\n * @remarks Firestore Lite is a small online-only SDK that allows read\r\n * and write access to your Firestore database. All operations connect\r\n * directly to the backend, and `onSnapshot()` APIs are not supported.\r\n * @packageDocumentation\r\n */\r\nregisterFirestore();\n\nexport { AggregateField, AggregateQuerySnapshot, Bytes, CollectionReference, DocumentReference, DocumentSnapshot, FieldPath, FieldValue, Firestore, FirestoreError, GeoPoint, Query, QueryCompositeFilterConstraint, QueryConstraint, QueryDocumentSnapshot, QueryEndAtConstraint, QueryFieldFilterConstraint, QueryLimitConstraint, QueryOrderByConstraint, QuerySnapshot, QueryStartAtConstraint, Timestamp, Transaction, WriteBatch, addDoc, aggregateQuerySnapshotEqual, and, arrayRemove, arrayUnion, collection, collectionGroup, connectFirestoreEmulator, deleteDoc, deleteField, doc, documentId, endAt, endBefore, getCount, getDoc, getDocs, getFirestore, increment, initializeFirestore, limit, limitToLast, or, orderBy, query, queryEqual, refEqual, runTransaction, serverTimestamp, setDoc, setLogLevel, snapshotEqual, startAfter, startAt, terminate, updateDoc, where, writeBatch };\n//# sourceMappingURL=index.node.mjs.map\n"],"names":[],"mappings":";;;;;;;;AAQA,MAA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ACf,KAAK;AACL,CAAC;AACD;AACA;AACA;AACA;AACA,SAAS,SAAS,CAAC,GAAG;AACtB;AACA,WAAW,EAAE;AACb,IAAI,OAAO,GAAG,CAAC;AACf,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM,IAAI,GAAG;AACb;AACA;AACA;AACA,IAAI,EAAE,EAAE,IAAI;AACZ;AACA,IAAI,SAAS,EAAE,WAAW;AAC1B;AACA,IAAI,OAAO,EAAE,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,gBAAgB,EAAE,kBAAkB;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,iBAAiB,EAAE,mBAAmB;AAC1C;AACA,IAAI,SAAS,EAAE,WAAW;AAC1B;AACA;AACA;AACA;AACA,IAAI,cAAc,EAAE,gBAAgB;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,iBAAiB,EAAE,mBAAmB;AAC1C;AACA;AACA;AACA;AACA,IAAI,eAAe,EAAE,iBAAiB;AACtC;AACA;AACA;AACA;AACA,IAAI,kBAAkB,EAAE,oBAAoB;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,mBAAmB,EAAE,qBAAqB;AAC9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,OAAO,EAAE,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,YAAY,EAAE,cAAc;AAChC;AACA,IAAI,aAAa,EAAE,eAAe;AAClC;AACA;AACA;AACA;AACA,IAAI,QAAQ,EAAE,UAAU;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,WAAW,EAAE,aAAa;AAC9B;AACA,IAAI,SAAS,EAAE,WAAW;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