@vansite/ts-sharetribe-flex-sdk 1.0.17 → 1.0.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"ts-sharetribe-flex-sdk.cjs","mappings":";qDAEA,MAAMA,EAAW,IAAIC,IAAI,CACxB,YACA,cAGA,4BACA,oBACA,mCACA,kCACA,qCACA,yBACA,wBACA,qBACA,mBACA,oBACA,kBACA,iCACA,gCACA,iCACA,iCACA,aACA,8BACA,4BACA,oCACA,kCACA,sBACA,eACA,aACA,uBACA,kBACA,iBACA,gBACA,sBAIDC,EAAOC,QAAUC,IAAUJ,EAASK,IAAID,GAASA,EAAME,6BChBvD,IAAIC,UAAW,EAAIC,KAAOA,MAAQ,CAAC,EAu8BnC,GAt8BAA,KAAKC,OAASC,MAAQC,KACtBH,KAAKI,YAAc,SAASC,EAAGC,EAAGC,EAAGC,GACnCH,EAAIA,EAAEI,MAAM,KACZD,EAAIA,GAAKR,KAAKC,OACdI,EAAE,KAAMG,QAAK,IAAsBA,EAAEE,YAAcF,EAAEE,WAAW,OAASL,EAAE,IAC3E,IAAK,IAAIM,EAAGN,EAAEO,SAAWD,EAAIN,EAAEQ,UAC7B,GAAIR,EAAEO,aAAU,IAAWN,EACzBE,EAAIA,EAAEG,IAAMH,EAAEG,KAAOG,OAAOC,UAAUJ,GAAKH,EAAEG,GAAKH,EAAEG,GAAK,CAAC,OAE1D,IAAKJ,GAAKP,KAAKgB,SAASV,IAAMN,KAAKgB,SAASR,EAAEG,IAC5C,IAAK,IAAIM,KAAKX,EACZA,EAAEY,eAAeD,KAAOT,EAAEG,GAAGM,GAAKX,EAAEW,SAGtCT,EAAEG,GAAKL,CAIf,EACAN,KAAKmB,OAAS,SAASd,EAAGC,GACxB,IAAKP,SAAU,CACb,IAAIQ,EAAIP,KAAKC,OAAOmB,2BAA4BZ,EAAIR,KAAKC,OAAOoB,gBAChEd,QAAK,IAAWA,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GAAO,iwCCmDvD,MAAM,aAAW,CAEtBme,WAAU,qDAEVG,OAAM,iDAENI,aAAY,uDAEZO,MAAK,gDAEL/V,KAAI,+CAEJ0W,SAAQ,sDAERC,QAAO,uDAcI,eAAa,CAExB+D,YAAW,2DAEXd,aAAY,2DAEZM,aAAY,6DAWD,YAAU,CACrBnkB,KAAI,gDACJvH,MAAK,iDASM,kBAAgB,qCAGhB,mBAAiB,gDAMjB,SAAO,CAElByuB,kBAAiB,8CAMb,kBAAgB,CAEpBtJ,cAAe,qCAEfgyB,yBAA0B,gDAE1BC,WAAU,eAEVC,SAAQ,aAERtyC,KAAI,SAEJD,QAAO,aAET","sources":["webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/is-retry-allowed/index.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/transit-js/transit.js","webpack://@vansite/ts-sharetribe-flex-sdk/./src/endpoints/assets/index.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/endpoints/auth/index.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/endpoints/integrationApi/AvailabilityExceptions.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/endpoints/integrationApi/Events.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/endpoints/integrationApi/Images.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/endpoints/integrationApi/Listings.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/endpoints/integrationApi/Marketplace.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/endpoints/integrationApi/Stock.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/endpoints/integrationApi/StockAdjustments.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/endpoints/integrationApi/StockReservation.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/endpoints/integrationApi/Transactions.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/endpoints/integrationApi/Users.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/endpoints/integrationApi/index.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/endpoints/marketplace/AvailabilityExceptions.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/endpoints/marketplace/Bookings.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/endpoints/marketplace/CurrentUser.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/endpoints/marketplace/Images.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/endpoints/marketplace/Listings.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/endpoints/marketplace/Marketplace.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/endpoints/marketplace/Messages.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/endpoints/marketplace/OwnListings.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/endpoints/marketplace/PasswordReset.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/endpoints/marketplace/ProcessTransitions.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/endpoints/marketplace/Reviews.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/endpoints/marketplace/Stock.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/endpoints/marketplace/StockAdjustments.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/endpoints/marketplace/StripeAccount.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/endpoints/marketplace/StripeAccountLinks.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/endpoints/marketplace/StripeCustomer.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/endpoints/marketplace/StripePersons.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/endpoints/marketplace/StripeSetupIntents.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/endpoints/marketplace/TimeSlots.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/endpoints/marketplace/Transactions.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/endpoints/marketplace/Users.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/endpoints/marketplace/index.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/integrationSdk.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/sdk.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/sdkTypes/BigDecimal.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/sdkTypes/LatLng.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/sdkTypes/LatLngBounds.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/sdkTypes/Money.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/sdkTypes/UUID.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/utils/apis.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/utils/config.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/utils/convert-types.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/utils/parameter-serializer.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/utils/prepare-axios-instance.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/utils/stores/BrowserStore.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/utils/stores/ExpressStore.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/utils/stores/MemoryStore.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/utils/stores/store.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/utils/transit.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/utils/util.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/uuid/dist/esm-browser/native.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/uuid/dist/esm-browser/rng.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/uuid/dist/esm-browser/stringify.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/uuid/dist/esm-browser/v4.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios-retry/dist/esm/index.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/adapters/adapters.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/adapters/fetch.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/adapters/xhr.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/axios.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/cancel/CancelToken.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/cancel/CanceledError.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/cancel/isCancel.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/core/Axios.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/core/AxiosError.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/core/AxiosHeaders.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/core/InterceptorManager.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/core/buildFullPath.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/core/dispatchRequest.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/core/mergeConfig.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/core/settle.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/core/transformData.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/defaults/index.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/defaults/transitional.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/env/data.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/helpers/AxiosURLSearchParams.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/helpers/HttpStatusCode.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/helpers/bind.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/helpers/buildURL.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/helpers/combineURLs.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/helpers/composeSignals.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/helpers/cookies.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/helpers/formDataToJSON.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/helpers/isAbsoluteURL.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/helpers/isAxiosError.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/helpers/isURLSameOrigin.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/helpers/null.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/helpers/parseHeaders.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/helpers/parseProtocol.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/helpers/progressEventReducer.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/helpers/resolveConfig.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/helpers/speedometer.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/helpers/spread.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/helpers/throttle.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/helpers/toFormData.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/helpers/toURLEncodedForm.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/helpers/trackStream.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/helpers/validator.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/platform/browser/classes/Blob.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/platform/browser/classes/FormData.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/platform/browser/classes/URLSearchParams.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/platform/browser/index.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/platform/common/utils.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/platform/index.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/utils.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/js-cookie/dist/js.cookie.mjs","webpack://@vansite/ts-sharetribe-flex-sdk/webpack/bootstrap","webpack://@vansite/ts-sharetribe-flex-sdk/webpack/runtime/compat get default export","webpack://@vansite/ts-sharetribe-flex-sdk/webpack/runtime/define property getters","webpack://@vansite/ts-sharetribe-flex-sdk/webpack/runtime/hasOwnProperty shorthand","webpack://@vansite/ts-sharetribe-flex-sdk/webpack/runtime/make namespace object","webpack://@vansite/ts-sharetribe-flex-sdk/./src/index.ts"],"sourcesContent":["'use strict';\n\nconst denyList = new Set([\n\t'ENOTFOUND',\n\t'ENETUNREACH',\n\n\t// SSL errors from https://github.com/nodejs/node/blob/fc8e3e2cdc521978351de257030db0076d79e0ab/src/crypto/crypto_common.cc#L301-L328\n\t'UNABLE_TO_GET_ISSUER_CERT',\n\t'UNABLE_TO_GET_CRL',\n\t'UNABLE_TO_DECRYPT_CERT_SIGNATURE',\n\t'UNABLE_TO_DECRYPT_CRL_SIGNATURE',\n\t'UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY',\n\t'CERT_SIGNATURE_FAILURE',\n\t'CRL_SIGNATURE_FAILURE',\n\t'CERT_NOT_YET_VALID',\n\t'CERT_HAS_EXPIRED',\n\t'CRL_NOT_YET_VALID',\n\t'CRL_HAS_EXPIRED',\n\t'ERROR_IN_CERT_NOT_BEFORE_FIELD',\n\t'ERROR_IN_CERT_NOT_AFTER_FIELD',\n\t'ERROR_IN_CRL_LAST_UPDATE_FIELD',\n\t'ERROR_IN_CRL_NEXT_UPDATE_FIELD',\n\t'OUT_OF_MEM',\n\t'DEPTH_ZERO_SELF_SIGNED_CERT',\n\t'SELF_SIGNED_CERT_IN_CHAIN',\n\t'UNABLE_TO_GET_ISSUER_CERT_LOCALLY',\n\t'UNABLE_TO_VERIFY_LEAF_SIGNATURE',\n\t'CERT_CHAIN_TOO_LONG',\n\t'CERT_REVOKED',\n\t'INVALID_CA',\n\t'PATH_LENGTH_EXCEEDED',\n\t'INVALID_PURPOSE',\n\t'CERT_UNTRUSTED',\n\t'CERT_REJECTED',\n\t'HOSTNAME_MISMATCH'\n]);\n\n// TODO: Use `error?.code` when targeting Node.js 14\nmodule.exports = error => !denyList.has(error && error.code);\n","// transit-js 0.8.877\n// http://transit-format.org\n// \n// Copyright 2014 Cognitect. All Rights Reserved.\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS-IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License..\n/*\n\n Copyright The Closure Library Authors.\n SPDX-License-Identifier: Apache-2.0\n*/\n'use strict';\nvar COMPILED = !0, goog = goog || {};\ngoog.global = this || self;\ngoog.exportPath_ = function(a, b, c, d) {\n a = a.split(\".\");\n d = d || goog.global;\n a[0] in d || \"undefined\" == typeof d.execScript || d.execScript(\"var \" + a[0]);\n for (var e; a.length && (e = a.shift());) {\n if (a.length || void 0 === b) {\n d = d[e] && d[e] !== Object.prototype[e] ? d[e] : d[e] = {};\n } else {\n if (!c && goog.isObject(b) && goog.isObject(d[e])) {\n for (var f in b) {\n b.hasOwnProperty(f) && (d[e][f] = b[f]);\n }\n } else {\n d[e] = b;\n }\n }\n }\n};\ngoog.define = function(a, b) {\n if (!COMPILED) {\n var c = goog.global.CLOSURE_UNCOMPILED_DEFINES, d = goog.global.CLOSURE_DEFINES;\n c && void 0 === c.nodeType && Object.prototype.hasOwnProperty.call(c, a) ? b = c[a] : d && void 0 === d.nodeType && Object.prototype.hasOwnProperty.call(d, a) && (b = d[a]);\n }\n return b;\n};\ngoog.FEATURESET_YEAR = 2012;\ngoog.DEBUG = !0;\ngoog.LOCALE = \"en\";\ngoog.TRUSTED_SITE = !0;\ngoog.DISALLOW_TEST_ONLY_CODE = COMPILED && !goog.DEBUG;\ngoog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING = !1;\ngoog.provide = function(a) {\n if (goog.isInModuleLoader_()) {\n throw Error(\"goog.provide cannot be used within a module.\");\n }\n if (!COMPILED && goog.isProvided_(a)) {\n throw Error('Namespace \"' + a + '\" already declared.');\n }\n goog.constructNamespace_(a);\n};\ngoog.constructNamespace_ = function(a, b, c) {\n if (!COMPILED) {\n delete goog.implicitNamespaces_[a];\n for (var d = a; (d = d.substring(0, d.lastIndexOf(\".\"))) && !goog.getObjectByName(d);) {\n goog.implicitNamespaces_[d] = !0;\n }\n }\n goog.exportPath_(a, b, c);\n};\ngoog.getScriptNonce = function(a) {\n if (a && a != goog.global) {\n return goog.getScriptNonce_(a.document);\n }\n null === goog.cspNonce_ && (goog.cspNonce_ = goog.getScriptNonce_(goog.global.document));\n return goog.cspNonce_;\n};\ngoog.NONCE_PATTERN_ = /^[\\w+/_-]+[=]{0,2}$/;\ngoog.cspNonce_ = null;\ngoog.getScriptNonce_ = function(a) {\n return (a = a.querySelector && a.querySelector(\"script[nonce]\")) && (a = a.nonce || a.getAttribute(\"nonce\")) && goog.NONCE_PATTERN_.test(a) ? a : \"\";\n};\ngoog.VALID_MODULE_RE_ = /^[a-zA-Z_$][a-zA-Z0-9._$]*$/;\ngoog.module = function(a) {\n if (\"string\" !== typeof a || !a || -1 == a.search(goog.VALID_MODULE_RE_)) {\n throw Error(\"Invalid module identifier\");\n }\n if (!goog.isInGoogModuleLoader_()) {\n throw Error(\"Module \" + a + \" has been loaded incorrectly. Note, modules cannot be loaded as normal scripts. They require some kind of pre-processing step. You're likely trying to load a module via a script tag or as a part of a concatenated bundle without rewriting the module. For more info see: https://github.com/google/closure-library/wiki/goog.module:-an-ES6-module-like-alternative-to-goog.provide.\");\n }\n if (goog.moduleLoaderState_.moduleName) {\n throw Error(\"goog.module may only be called once per module.\");\n }\n goog.moduleLoaderState_.moduleName = a;\n if (!COMPILED) {\n if (goog.isProvided_(a)) {\n throw Error('Namespace \"' + a + '\" already declared.');\n }\n delete goog.implicitNamespaces_[a];\n }\n};\ngoog.module.get = function(a) {\n return goog.module.getInternal_(a);\n};\ngoog.module.getInternal_ = function(a) {\n if (!COMPILED) {\n if (a in goog.loadedModules_) {\n return goog.loadedModules_[a].exports;\n }\n if (!goog.implicitNamespaces_[a]) {\n return a = goog.getObjectByName(a), null != a ? a : null;\n }\n }\n return null;\n};\ngoog.ModuleType = {ES6:\"es6\", GOOG:\"goog\"};\ngoog.moduleLoaderState_ = null;\ngoog.isInModuleLoader_ = function() {\n return goog.isInGoogModuleLoader_() || goog.isInEs6ModuleLoader_();\n};\ngoog.isInGoogModuleLoader_ = function() {\n return !!goog.moduleLoaderState_ && goog.moduleLoaderState_.type == goog.ModuleType.GOOG;\n};\ngoog.isInEs6ModuleLoader_ = function() {\n if (goog.moduleLoaderState_ && goog.moduleLoaderState_.type == goog.ModuleType.ES6) {\n return !0;\n }\n var a = goog.global.$jscomp;\n return a ? \"function\" != typeof a.getCurrentModulePath ? !1 : !!a.getCurrentModulePath() : !1;\n};\ngoog.module.declareLegacyNamespace = function() {\n if (!COMPILED && !goog.isInGoogModuleLoader_()) {\n throw Error(\"goog.module.declareLegacyNamespace must be called from within a goog.module\");\n }\n if (!COMPILED && !goog.moduleLoaderState_.moduleName) {\n throw Error(\"goog.module must be called prior to goog.module.declareLegacyNamespace.\");\n }\n goog.moduleLoaderState_.declareLegacyNamespace = !0;\n};\ngoog.declareModuleId = function(a) {\n if (!COMPILED) {\n if (!goog.isInEs6ModuleLoader_()) {\n throw Error(\"goog.declareModuleId may only be called from within an ES6 module\");\n }\n if (goog.moduleLoaderState_ && goog.moduleLoaderState_.moduleName) {\n throw Error(\"goog.declareModuleId may only be called once per module.\");\n }\n if (a in goog.loadedModules_) {\n throw Error('Module with namespace \"' + a + '\" already exists.');\n }\n }\n if (goog.moduleLoaderState_) {\n goog.moduleLoaderState_.moduleName = a;\n } else {\n var b = goog.global.$jscomp;\n if (!b || \"function\" != typeof b.getCurrentModulePath) {\n throw Error('Module with namespace \"' + a + '\" has been loaded incorrectly.');\n }\n b = b.require(b.getCurrentModulePath());\n goog.loadedModules_[a] = {exports:b, type:goog.ModuleType.ES6, moduleId:a};\n }\n};\ngoog.setTestOnly = function(a) {\n if (goog.DISALLOW_TEST_ONLY_CODE) {\n throw a = a || \"\", Error(\"Importing test-only code into non-debug environment\" + (a ? \": \" + a : \".\"));\n }\n};\ngoog.forwardDeclare = function(a) {\n};\nCOMPILED || (goog.isProvided_ = function(a) {\n return a in goog.loadedModules_ || !goog.implicitNamespaces_[a] && null != goog.getObjectByName(a);\n}, goog.implicitNamespaces_ = {\"goog.module\":!0});\ngoog.getObjectByName = function(a, b) {\n a = a.split(\".\");\n b = b || goog.global;\n for (var c = 0; c < a.length; c++) {\n if (b = b[a[c]], null == b) {\n return null;\n }\n }\n return b;\n};\ngoog.addDependency = function(a, b, c, d) {\n !COMPILED && goog.DEPENDENCIES_ENABLED && goog.debugLoader_.addDependency(a, b, c, d);\n};\ngoog.ENABLE_DEBUG_LOADER = !0;\ngoog.logToConsole_ = function(a) {\n goog.global.console && goog.global.console.error(a);\n};\ngoog.require = function(a) {\n if (!COMPILED) {\n goog.ENABLE_DEBUG_LOADER && goog.debugLoader_.requested(a);\n if (goog.isProvided_(a)) {\n if (goog.isInModuleLoader_()) {\n return goog.module.getInternal_(a);\n }\n } else {\n if (goog.ENABLE_DEBUG_LOADER) {\n var b = goog.moduleLoaderState_;\n goog.moduleLoaderState_ = null;\n try {\n goog.debugLoader_.load_(a);\n } finally {\n goog.moduleLoaderState_ = b;\n }\n }\n }\n return null;\n }\n};\ngoog.requireType = function(a) {\n return {};\n};\ngoog.basePath = \"\";\ngoog.nullFunction = function() {\n};\ngoog.abstractMethod = function() {\n throw Error(\"unimplemented abstract method\");\n};\ngoog.addSingletonGetter = function(a) {\n a.instance_ = void 0;\n a.getInstance = function() {\n if (a.instance_) {\n return a.instance_;\n }\n goog.DEBUG && (goog.instantiatedSingletons_[goog.instantiatedSingletons_.length] = a);\n return a.instance_ = new a;\n };\n};\ngoog.instantiatedSingletons_ = [];\ngoog.LOAD_MODULE_USING_EVAL = !0;\ngoog.SEAL_MODULE_EXPORTS = goog.DEBUG;\ngoog.loadedModules_ = {};\ngoog.DEPENDENCIES_ENABLED = !COMPILED && goog.ENABLE_DEBUG_LOADER;\ngoog.TRANSPILE = \"detect\";\ngoog.ASSUME_ES_MODULES_TRANSPILED = !1;\ngoog.TRANSPILE_TO_LANGUAGE = \"\";\ngoog.TRANSPILER = \"transpile.js\";\ngoog.TRUSTED_TYPES_POLICY_NAME = \"goog\";\ngoog.hasBadLetScoping = null;\ngoog.loadModule = function(a) {\n var b = goog.moduleLoaderState_;\n try {\n goog.moduleLoaderState_ = {moduleName:\"\", declareLegacyNamespace:!1, type:goog.ModuleType.GOOG};\n var c = {}, d = c;\n if (\"function\" === typeof a) {\n d = a.call(void 0, d);\n } else {\n if (\"string\" === typeof a) {\n d = goog.loadModuleFromSource_.call(void 0, d, a);\n } else {\n throw Error(\"Invalid module definition\");\n }\n }\n var e = goog.moduleLoaderState_.moduleName;\n if (\"string\" === typeof e && e) {\n goog.moduleLoaderState_.declareLegacyNamespace ? goog.constructNamespace_(e, d, c !== d) : goog.SEAL_MODULE_EXPORTS && Object.seal && \"object\" == typeof d && null != d && Object.seal(d), goog.loadedModules_[e] = {exports:d, type:goog.ModuleType.GOOG, moduleId:goog.moduleLoaderState_.moduleName};\n } else {\n throw Error('Invalid module name \"' + e + '\"');\n }\n } finally {\n goog.moduleLoaderState_ = b;\n }\n};\ngoog.loadModuleFromSource_ = function(a, b) {\n eval(goog.CLOSURE_EVAL_PREFILTER_.createScript(b));\n return a;\n};\ngoog.normalizePath_ = function(a) {\n a = a.split(\"/\");\n for (var b = 0; b < a.length;) {\n \".\" == a[b] ? a.splice(b, 1) : b && \"..\" == a[b] && a[b - 1] && \"..\" != a[b - 1] ? a.splice(--b, 2) : b++;\n }\n return a.join(\"/\");\n};\ngoog.loadFileSync_ = function(a) {\n if (goog.global.CLOSURE_LOAD_FILE_SYNC) {\n return goog.global.CLOSURE_LOAD_FILE_SYNC(a);\n }\n try {\n var b = new goog.global.XMLHttpRequest;\n b.open(\"get\", a, !1);\n b.send();\n return 0 == b.status || 200 == b.status ? b.responseText : null;\n } catch (c) {\n return null;\n }\n};\ngoog.transpile_ = function(a, b, c) {\n var d = goog.global.$jscomp;\n d || (goog.global.$jscomp = d = {});\n var e = d.transpile;\n if (!e) {\n var f = goog.basePath + goog.TRANSPILER, g = goog.loadFileSync_(f);\n if (g) {\n (function() {\n (0,eval)(g + \"\\n//# sourceURL=\" + f);\n }).call(goog.global);\n if (goog.global.$gwtExport && goog.global.$gwtExport.$jscomp && !goog.global.$gwtExport.$jscomp.transpile) {\n throw Error('The transpiler did not properly export the \"transpile\" method. $gwtExport: ' + JSON.stringify(goog.global.$gwtExport));\n }\n goog.global.$jscomp.transpile = goog.global.$gwtExport.$jscomp.transpile;\n d = goog.global.$jscomp;\n e = d.transpile;\n }\n }\n e || (e = d.transpile = function(h, k) {\n goog.logToConsole_(k + \" requires transpilation but no transpiler was found.\");\n return h;\n });\n return e(a, b, c);\n};\ngoog.typeOf = function(a) {\n var b = typeof a;\n return \"object\" != b ? b : a ? Array.isArray(a) ? \"array\" : b : \"null\";\n};\ngoog.isArrayLike = function(a) {\n var b = goog.typeOf(a);\n return \"array\" == b || \"object\" == b && \"number\" == typeof a.length;\n};\ngoog.isDateLike = function(a) {\n return goog.isObject(a) && \"function\" == typeof a.getFullYear;\n};\ngoog.isObject = function(a) {\n var b = typeof a;\n return \"object\" == b && null != a || \"function\" == b;\n};\ngoog.getUid = function(a) {\n return Object.prototype.hasOwnProperty.call(a, goog.UID_PROPERTY_) && a[goog.UID_PROPERTY_] || (a[goog.UID_PROPERTY_] = ++goog.uidCounter_);\n};\ngoog.hasUid = function(a) {\n return !!a[goog.UID_PROPERTY_];\n};\ngoog.removeUid = function(a) {\n null !== a && \"removeAttribute\" in a && a.removeAttribute(goog.UID_PROPERTY_);\n try {\n delete a[goog.UID_PROPERTY_];\n } catch (b) {\n }\n};\ngoog.UID_PROPERTY_ = \"closure_uid_\" + (1e9 * Math.random() >>> 0);\ngoog.uidCounter_ = 0;\ngoog.cloneObject = function(a) {\n var b = goog.typeOf(a);\n if (\"object\" == b || \"array\" == b) {\n if (\"function\" === typeof a.clone) {\n return a.clone();\n }\n b = \"array\" == b ? [] : {};\n for (var c in a) {\n b[c] = goog.cloneObject(a[c]);\n }\n return b;\n }\n return a;\n};\ngoog.bindNative_ = function(a, b, c) {\n return a.call.apply(a.bind, arguments);\n};\ngoog.bindJs_ = function(a, b, c) {\n if (!a) {\n throw Error();\n }\n if (2 < arguments.length) {\n var d = Array.prototype.slice.call(arguments, 2);\n return function() {\n var e = Array.prototype.slice.call(arguments);\n Array.prototype.unshift.apply(e, d);\n return a.apply(b, e);\n };\n }\n return function() {\n return a.apply(b, arguments);\n };\n};\ngoog.bind = function(a, b, c) {\n Function.prototype.bind && -1 != Function.prototype.bind.toString().indexOf(\"native code\") ? goog.bind = goog.bindNative_ : goog.bind = goog.bindJs_;\n return goog.bind.apply(null, arguments);\n};\ngoog.partial = function(a, b) {\n var c = Array.prototype.slice.call(arguments, 1);\n return function() {\n var d = c.slice();\n d.push.apply(d, arguments);\n return a.apply(this, d);\n };\n};\ngoog.mixin = function(a, b) {\n for (var c in b) {\n a[c] = b[c];\n }\n};\ngoog.now = function() {\n return Date.now();\n};\ngoog.globalEval = function(a) {\n (0,eval)(a);\n};\ngoog.getCssName = function(a, b) {\n if (\".\" == String(a).charAt(0)) {\n throw Error('className passed in goog.getCssName must not start with \".\". You passed: ' + a);\n }\n var c = function(e) {\n return goog.cssNameMapping_[e] || e;\n }, d = function(e) {\n e = e.split(\"-\");\n for (var f = [], g = 0; g < e.length; g++) {\n f.push(c(e[g]));\n }\n return f.join(\"-\");\n };\n d = goog.cssNameMapping_ ? \"BY_WHOLE\" == goog.cssNameMappingStyle_ ? c : d : function(e) {\n return e;\n };\n a = b ? a + \"-\" + d(b) : d(a);\n return goog.global.CLOSURE_CSS_NAME_MAP_FN ? goog.global.CLOSURE_CSS_NAME_MAP_FN(a) : a;\n};\ngoog.setCssNameMapping = function(a, b) {\n goog.cssNameMapping_ = a;\n goog.cssNameMappingStyle_ = b;\n};\n!COMPILED && goog.global.CLOSURE_CSS_NAME_MAPPING && (goog.cssNameMapping_ = goog.global.CLOSURE_CSS_NAME_MAPPING);\ngoog.getMsg = function(a, b, c) {\n c && c.html && (a = a.replace(/</g, \"&lt;\"));\n c && c.unescapeHtmlEntities && (a = a.replace(/&lt;/g, \"<\").replace(/&gt;/g, \">\").replace(/&apos;/g, \"'\").replace(/&quot;/g, '\"').replace(/&amp;/g, \"&\"));\n b && (a = a.replace(/\\{\\$([^}]+)}/g, function(d, e) {\n return null != b && e in b ? b[e] : d;\n }));\n return a;\n};\ngoog.getMsgWithFallback = function(a, b) {\n return a;\n};\ngoog.exportSymbol = function(a, b, c) {\n goog.exportPath_(a, b, !0, c);\n};\ngoog.exportProperty = function(a, b, c) {\n a[b] = c;\n};\ngoog.inherits = function(a, b) {\n function c() {\n }\n c.prototype = b.prototype;\n a.superClass_ = b.prototype;\n a.prototype = new c;\n a.prototype.constructor = a;\n a.base = function(d, e, f) {\n for (var g = Array(arguments.length - 2), h = 2; h < arguments.length; h++) {\n g[h - 2] = arguments[h];\n }\n return b.prototype[e].apply(d, g);\n };\n};\ngoog.scope = function(a) {\n if (goog.isInModuleLoader_()) {\n throw Error(\"goog.scope is not supported within a module.\");\n }\n a.call(goog.global);\n};\nCOMPILED || (goog.global.COMPILED = COMPILED);\ngoog.defineClass = function(a, b) {\n var c = b.constructor, d = b.statics;\n c && c != Object.prototype.constructor || (c = function() {\n throw Error(\"cannot instantiate an interface (no constructor defined).\");\n });\n c = goog.defineClass.createSealingConstructor_(c, a);\n a && goog.inherits(c, a);\n delete b.constructor;\n delete b.statics;\n goog.defineClass.applyProperties_(c.prototype, b);\n null != d && (d instanceof Function ? d(c) : goog.defineClass.applyProperties_(c, d));\n return c;\n};\ngoog.defineClass.SEAL_CLASS_INSTANCES = goog.DEBUG;\ngoog.defineClass.createSealingConstructor_ = function(a, b) {\n return goog.defineClass.SEAL_CLASS_INSTANCES ? function() {\n var c = a.apply(this, arguments) || this;\n c[goog.UID_PROPERTY_] = c[goog.UID_PROPERTY_];\n return c;\n } : a;\n};\ngoog.defineClass.OBJECT_PROTOTYPE_FIELDS_ = \"constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf\".split(\" \");\ngoog.defineClass.applyProperties_ = function(a, b) {\n for (var c in b) {\n Object.prototype.hasOwnProperty.call(b, c) && (a[c] = b[c]);\n }\n for (var d = 0; d < goog.defineClass.OBJECT_PROTOTYPE_FIELDS_.length; d++) {\n c = goog.defineClass.OBJECT_PROTOTYPE_FIELDS_[d], Object.prototype.hasOwnProperty.call(b, c) && (a[c] = b[c]);\n }\n};\ngoog.identity_ = function(a) {\n return a;\n};\ngoog.createTrustedTypesPolicy = function(a) {\n var b = null, c = goog.global.trustedTypes;\n if (!c || !c.createPolicy) {\n return b;\n }\n try {\n b = c.createPolicy(a, {createHTML:goog.identity_, createScript:goog.identity_, createScriptURL:goog.identity_});\n } catch (d) {\n goog.logToConsole_(d.message);\n }\n return b;\n};\n!COMPILED && goog.DEPENDENCIES_ENABLED && (goog.isEdge_ = function() {\n return !!(goog.global.navigator && goog.global.navigator.userAgent ? goog.global.navigator.userAgent : \"\").match(/Edge\\/(\\d+)(\\.\\d)*/i);\n}, goog.inHtmlDocument_ = function() {\n var a = goog.global.document;\n return null != a && \"write\" in a;\n}, goog.isDocumentLoading_ = function() {\n var a = goog.global.document;\n return a.attachEvent ? \"complete\" != a.readyState : \"loading\" == a.readyState;\n}, goog.findBasePath_ = function() {\n if (void 0 != goog.global.CLOSURE_BASE_PATH && \"string\" === typeof goog.global.CLOSURE_BASE_PATH) {\n goog.basePath = goog.global.CLOSURE_BASE_PATH;\n } else {\n if (goog.inHtmlDocument_()) {\n var a = goog.global.document, b = a.currentScript;\n a = b ? [b] : a.getElementsByTagName(\"SCRIPT\");\n for (b = a.length - 1; 0 <= b; --b) {\n var c = a[b].src, d = c.lastIndexOf(\"?\");\n d = -1 == d ? c.length : d;\n if (\"base.js\" == c.substr(d - 7, 7)) {\n goog.basePath = c.substr(0, d - 7);\n break;\n }\n }\n }\n }\n}, goog.findBasePath_(), goog.Transpiler = function() {\n this.requiresTranspilation_ = null;\n this.transpilationTarget_ = goog.TRANSPILE_TO_LANGUAGE;\n}, goog.Transpiler.prototype.createRequiresTranspilation_ = function() {\n function a(f, g) {\n e ? d[f] = !0 : g() ? (c = f, d[f] = !1) : e = d[f] = !0;\n }\n function b(f) {\n try {\n return !!eval(goog.CLOSURE_EVAL_PREFILTER_.createScript(f));\n } catch (g) {\n return !1;\n }\n }\n var c = \"es3\", d = {es3:!1}, e = !1;\n a(\"es5\", function() {\n return b(\"[1,].length==1\");\n });\n a(\"es6\", function() {\n return goog.isEdge_() ? !1 : b('(()=>{\"use strict\";class X{constructor(){if(new.target!=String)throw 1;this.x=42}}let q=Reflect.construct(X,[],String);if(q.x!=42||!(q instanceof String))throw 1;for(const a of[2,3]){if(a==2)continue;function f(z={a}){let a=0;return z.a}{function f(){return 0;}}return f()==3}})()');\n });\n a(\"es7\", function() {\n return b(\"2**3==8\");\n });\n a(\"es8\", function() {\n return b(\"async()=>1,1\");\n });\n a(\"es9\", function() {\n return b(\"({...rest}={}),1\");\n });\n a(\"es_2019\", function() {\n return b('let r;try{throw 0}catch{r=\"\\u2029\"};r');\n });\n a(\"es_2020\", function() {\n return b(\"null?.x??1\");\n });\n a(\"es_next\", function() {\n return !1;\n });\n return {target:c, map:d};\n}, goog.Transpiler.prototype.needsTranspile = function(a, b) {\n if (\"always\" == goog.TRANSPILE) {\n return !0;\n }\n if (\"never\" == goog.TRANSPILE) {\n return !1;\n }\n if (!this.requiresTranspilation_) {\n var c = this.createRequiresTranspilation_();\n this.requiresTranspilation_ = c.map;\n this.transpilationTarget_ = this.transpilationTarget_ || c.target;\n }\n if (a in this.requiresTranspilation_) {\n return this.requiresTranspilation_[a] ? !0 : !goog.inHtmlDocument_() || \"es6\" != b || \"noModule\" in goog.global.document.createElement(\"script\") ? !1 : !0;\n }\n throw Error(\"Unknown language mode: \" + a);\n}, goog.Transpiler.prototype.transpile = function(a, b) {\n return goog.transpile_(a, b, this.transpilationTarget_);\n}, goog.transpiler_ = new goog.Transpiler, goog.protectScriptTag_ = function(a) {\n return a.replace(/<\\/(SCRIPT)/ig, \"\\\\x3c/$1\");\n}, goog.DebugLoader_ = function() {\n this.dependencies_ = {};\n this.idToPath_ = {};\n this.written_ = {};\n this.loadingDeps_ = [];\n this.depsToLoad_ = [];\n this.paused_ = !1;\n this.factory_ = new goog.DependencyFactory(goog.transpiler_);\n this.deferredCallbacks_ = {};\n this.deferredQueue_ = [];\n}, goog.DebugLoader_.prototype.bootstrap = function(a, b) {\n function c() {\n d && (goog.global.setTimeout(d, 0), d = null);\n }\n var d = b;\n if (a.length) {\n b = [];\n for (var e = 0; e < a.length; e++) {\n var f = this.getPathFromDeps_(a[e]);\n if (!f) {\n throw Error(\"Unregonized namespace: \" + a[e]);\n }\n b.push(this.dependencies_[f]);\n }\n f = goog.require;\n var g = 0;\n for (e = 0; e < a.length; e++) {\n f(a[e]), b[e].onLoad(function() {\n ++g == a.length && c();\n });\n }\n } else {\n c();\n }\n}, goog.DebugLoader_.prototype.loadClosureDeps = function() {\n this.depsToLoad_.push(this.factory_.createDependency(goog.normalizePath_(goog.basePath + \"deps.js\"), \"deps.js\", [], [], {}, !1));\n this.loadDeps_();\n}, goog.DebugLoader_.prototype.requested = function(a, b) {\n (a = this.getPathFromDeps_(a)) && (b || this.areDepsLoaded_(this.dependencies_[a].requires)) && (b = this.deferredCallbacks_[a]) && (delete this.deferredCallbacks_[a], b());\n}, goog.DebugLoader_.prototype.setDependencyFactory = function(a) {\n this.factory_ = a;\n}, goog.DebugLoader_.prototype.load_ = function(a) {\n if (this.getPathFromDeps_(a)) {\n var b = this, c = [], d = function(e) {\n var f = b.getPathFromDeps_(e);\n if (!f) {\n throw Error(\"Bad dependency path or symbol: \" + e);\n }\n if (!b.written_[f]) {\n b.written_[f] = !0;\n e = b.dependencies_[f];\n for (f = 0; f < e.requires.length; f++) {\n goog.isProvided_(e.requires[f]) || d(e.requires[f]);\n }\n c.push(e);\n }\n };\n d(a);\n a = !!this.depsToLoad_.length;\n this.depsToLoad_ = this.depsToLoad_.concat(c);\n this.paused_ || a || this.loadDeps_();\n } else {\n goog.logToConsole_(\"goog.require could not find: \" + a);\n }\n}, goog.DebugLoader_.prototype.loadDeps_ = function() {\n for (var a = this, b = this.paused_; this.depsToLoad_.length && !b;) {\n (function() {\n var c = !1, d = a.depsToLoad_.shift(), e = !1;\n a.loading_(d);\n var f = {pause:function() {\n if (c) {\n throw Error(\"Cannot call pause after the call to load.\");\n }\n b = !0;\n }, resume:function() {\n c ? a.resume_() : b = !1;\n }, loaded:function() {\n if (e) {\n throw Error(\"Double call to loaded.\");\n }\n e = !0;\n a.loaded_(d);\n }, pending:function() {\n for (var g = [], h = 0; h < a.loadingDeps_.length; h++) {\n g.push(a.loadingDeps_[h]);\n }\n return g;\n }, setModuleState:function(g) {\n goog.moduleLoaderState_ = {type:g, moduleName:\"\", declareLegacyNamespace:!1};\n }, registerEs6ModuleExports:function(g, h, k) {\n k && (goog.loadedModules_[k] = {exports:h, type:goog.ModuleType.ES6, moduleId:k || \"\"});\n }, registerGoogModuleExports:function(g, h) {\n goog.loadedModules_[g] = {exports:h, type:goog.ModuleType.GOOG, moduleId:g};\n }, clearModuleState:function() {\n goog.moduleLoaderState_ = null;\n }, defer:function(g) {\n if (c) {\n throw Error(\"Cannot register with defer after the call to load.\");\n }\n a.defer_(d, g);\n }, areDepsLoaded:function() {\n return a.areDepsLoaded_(d.requires);\n }};\n try {\n d.load(f);\n } finally {\n c = !0;\n }\n })();\n }\n b && this.pause_();\n}, goog.DebugLoader_.prototype.pause_ = function() {\n this.paused_ = !0;\n}, goog.DebugLoader_.prototype.resume_ = function() {\n this.paused_ && (this.paused_ = !1, this.loadDeps_());\n}, goog.DebugLoader_.prototype.loading_ = function(a) {\n this.loadingDeps_.push(a);\n}, goog.DebugLoader_.prototype.loaded_ = function(a) {\n for (var b = 0; b < this.loadingDeps_.length; b++) {\n if (this.loadingDeps_[b] == a) {\n this.loadingDeps_.splice(b, 1);\n break;\n }\n }\n for (b = 0; b < this.deferredQueue_.length; b++) {\n if (this.deferredQueue_[b] == a.path) {\n this.deferredQueue_.splice(b, 1);\n break;\n }\n }\n if (this.loadingDeps_.length == this.deferredQueue_.length && !this.depsToLoad_.length) {\n for (; this.deferredQueue_.length;) {\n this.requested(this.deferredQueue_.shift(), !0);\n }\n }\n a.loaded();\n}, goog.DebugLoader_.prototype.areDepsLoaded_ = function(a) {\n for (var b = 0; b < a.length; b++) {\n var c = this.getPathFromDeps_(a[b]);\n if (!c || !(c in this.deferredCallbacks_ || goog.isProvided_(a[b]))) {\n return !1;\n }\n }\n return !0;\n}, goog.DebugLoader_.prototype.getPathFromDeps_ = function(a) {\n return a in this.idToPath_ ? this.idToPath_[a] : a in this.dependencies_ ? a : null;\n}, goog.DebugLoader_.prototype.defer_ = function(a, b) {\n this.deferredCallbacks_[a.path] = b;\n this.deferredQueue_.push(a.path);\n}, goog.LoadController = function() {\n}, goog.LoadController.prototype.pause = function() {\n}, goog.LoadController.prototype.resume = function() {\n}, goog.LoadController.prototype.loaded = function() {\n}, goog.LoadController.prototype.pending = function() {\n}, goog.LoadController.prototype.registerEs6ModuleExports = function(a, b, c) {\n}, goog.LoadController.prototype.setModuleState = function(a) {\n}, goog.LoadController.prototype.clearModuleState = function() {\n}, goog.LoadController.prototype.defer = function(a) {\n}, goog.LoadController.prototype.areDepsLoaded = function() {\n}, goog.Dependency = function(a, b, c, d, e) {\n this.path = a;\n this.relativePath = b;\n this.provides = c;\n this.requires = d;\n this.loadFlags = e;\n this.loaded_ = !1;\n this.loadCallbacks_ = [];\n}, goog.Dependency.prototype.getPathName = function() {\n var a = this.path, b = a.indexOf(\"://\");\n 0 <= b && (a = a.substring(b + 3), b = a.indexOf(\"/\"), 0 <= b && (a = a.substring(b + 1)));\n return a;\n}, goog.Dependency.prototype.onLoad = function(a) {\n this.loaded_ ? a() : this.loadCallbacks_.push(a);\n}, goog.Dependency.prototype.loaded = function() {\n this.loaded_ = !0;\n var a = this.loadCallbacks_;\n this.loadCallbacks_ = [];\n for (var b = 0; b < a.length; b++) {\n a[b]();\n }\n}, goog.Dependency.defer_ = !1, goog.Dependency.callbackMap_ = {}, goog.Dependency.registerCallback_ = function(a) {\n var b = Math.random().toString(32);\n goog.Dependency.callbackMap_[b] = a;\n return b;\n}, goog.Dependency.unregisterCallback_ = function(a) {\n delete goog.Dependency.callbackMap_[a];\n}, goog.Dependency.callback_ = function(a, b) {\n if (a in goog.Dependency.callbackMap_) {\n for (var c = goog.Dependency.callbackMap_[a], d = [], e = 1; e < arguments.length; e++) {\n d.push(arguments[e]);\n }\n c.apply(void 0, d);\n } else {\n throw Error(\"Callback key \" + a + \" does not exist (was base.js loaded more than once?).\");\n }\n}, goog.Dependency.prototype.load = function(a) {\n if (goog.global.CLOSURE_IMPORT_SCRIPT) {\n goog.global.CLOSURE_IMPORT_SCRIPT(this.path) ? a.loaded() : a.pause();\n } else {\n if (goog.inHtmlDocument_()) {\n var b = goog.global.document;\n if (\"complete\" == b.readyState && !goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING) {\n if (/\\bdeps.js$/.test(this.path)) {\n a.loaded();\n return;\n }\n throw Error('Cannot write \"' + this.path + '\" after document load');\n }\n var c = goog.getScriptNonce();\n if (!goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING && goog.isDocumentLoading_()) {\n var d = function(h) {\n h.readyState && \"complete\" != h.readyState ? h.onload = d : (goog.Dependency.unregisterCallback_(e), a.loaded());\n };\n var e = goog.Dependency.registerCallback_(d);\n c = c ? ' nonce=\"' + c + '\"' : \"\";\n var f = '<script src=\"' + this.path + '\"' + c + (goog.Dependency.defer_ ? \" defer\" : \"\") + ' id=\"script-' + e + '\">\\x3c/script>';\n f += \"<script\" + c + \">\";\n f = goog.Dependency.defer_ ? f + (\"document.getElementById('script-\" + e + \"').onload = function() {\\n goog.Dependency.callback_('\" + e + \"', this);\\n};\\n\") : f + (\"goog.Dependency.callback_('\" + e + \"', document.getElementById('script-\" + e + \"'));\");\n f += \"\\x3c/script>\";\n b.write(goog.TRUSTED_TYPES_POLICY_ ? goog.TRUSTED_TYPES_POLICY_.createHTML(f) : f);\n } else {\n var g = b.createElement(\"script\");\n g.defer = goog.Dependency.defer_;\n g.async = !1;\n c && (g.nonce = c);\n goog.DebugLoader_.IS_OLD_IE_ ? (a.pause(), g.onreadystatechange = function() {\n if (\"loaded\" == g.readyState || \"complete\" == g.readyState) {\n a.loaded(), a.resume();\n }\n }) : g.onload = function() {\n g.onload = null;\n a.loaded();\n };\n g.src = goog.TRUSTED_TYPES_POLICY_ ? goog.TRUSTED_TYPES_POLICY_.createScriptURL(this.path) : this.path;\n b.head.appendChild(g);\n }\n } else {\n goog.logToConsole_(\"Cannot use default debug loader outside of HTML documents.\"), \"deps.js\" == this.relativePath ? (goog.logToConsole_(\"Consider setting CLOSURE_IMPORT_SCRIPT before loading base.js, or setting CLOSURE_NO_DEPS to true.\"), a.loaded()) : a.pause();\n }\n }\n}, goog.Es6ModuleDependency = function(a, b, c, d, e) {\n goog.Dependency.call(this, a, b, c, d, e);\n}, goog.inherits(goog.Es6ModuleDependency, goog.Dependency), goog.Es6ModuleDependency.prototype.load = function(a) {\n function b(l, n) {\n var m = \"\", p = goog.getScriptNonce();\n p && (m = ' nonce=\"' + p + '\"');\n l = n ? '<script type=\"module\" crossorigin' + m + \">\" + n + \"\\x3c/script>\" : '<script type=\"module\" crossorigin src=\"' + l + '\"' + m + \">\\x3c/script>\";\n d.write(goog.TRUSTED_TYPES_POLICY_ ? goog.TRUSTED_TYPES_POLICY_.createHTML(l) : l);\n }\n function c(l, n) {\n var m = d.createElement(\"script\");\n m.defer = !0;\n m.async = !1;\n m.type = \"module\";\n m.setAttribute(\"crossorigin\", !0);\n var p = goog.getScriptNonce();\n p && (m.nonce = p);\n n ? m.text = goog.TRUSTED_TYPES_POLICY_ ? goog.TRUSTED_TYPES_POLICY_.createScript(n) : n : m.src = goog.TRUSTED_TYPES_POLICY_ ? goog.TRUSTED_TYPES_POLICY_.createScriptURL(l) : l;\n d.head.appendChild(m);\n }\n if (goog.global.CLOSURE_IMPORT_SCRIPT) {\n goog.global.CLOSURE_IMPORT_SCRIPT(this.path) ? a.loaded() : a.pause();\n } else {\n if (goog.inHtmlDocument_()) {\n var d = goog.global.document, e = this;\n if (goog.isDocumentLoading_()) {\n var f = b;\n goog.Dependency.defer_ = !0;\n } else {\n f = c;\n }\n var g = goog.Dependency.registerCallback_(function() {\n goog.Dependency.unregisterCallback_(g);\n a.setModuleState(goog.ModuleType.ES6);\n });\n f(void 0, 'goog.Dependency.callback_(\"' + g + '\")');\n f(this.path, void 0);\n var h = goog.Dependency.registerCallback_(function(l) {\n goog.Dependency.unregisterCallback_(h);\n a.registerEs6ModuleExports(e.path, l, goog.moduleLoaderState_.moduleName);\n });\n f(void 0, 'import * as m from \"' + this.path + '\"; goog.Dependency.callback_(\"' + h + '\", m)');\n var k = goog.Dependency.registerCallback_(function() {\n goog.Dependency.unregisterCallback_(k);\n a.clearModuleState();\n a.loaded();\n });\n f(void 0, 'goog.Dependency.callback_(\"' + k + '\")');\n } else {\n goog.logToConsole_(\"Cannot use default debug loader outside of HTML documents.\"), a.pause();\n }\n }\n}, goog.TransformedDependency = function(a, b, c, d, e) {\n goog.Dependency.call(this, a, b, c, d, e);\n this.contents_ = null;\n this.lazyFetch_ = !goog.inHtmlDocument_() || !(\"noModule\" in goog.global.document.createElement(\"script\"));\n}, goog.inherits(goog.TransformedDependency, goog.Dependency), goog.TransformedDependency.prototype.load = function(a) {\n function b() {\n e.contents_ = goog.loadFileSync_(e.path);\n e.contents_ && (e.contents_ = e.transform(e.contents_), e.contents_ && (e.contents_ += \"\\n//# sourceURL=\" + e.path));\n }\n function c() {\n e.lazyFetch_ && b();\n if (e.contents_) {\n f && a.setModuleState(goog.ModuleType.ES6);\n try {\n var n = e.contents_;\n e.contents_ = null;\n goog.globalEval(goog.CLOSURE_EVAL_PREFILTER_.createScript(n));\n if (f) {\n var m = goog.moduleLoaderState_.moduleName;\n }\n } finally {\n f && a.clearModuleState();\n }\n f && goog.global.$jscomp.require.ensure([e.getPathName()], function() {\n a.registerEs6ModuleExports(e.path, goog.global.$jscomp.require(e.getPathName()), m);\n });\n a.loaded();\n }\n }\n function d() {\n var n = goog.global.document, m = goog.Dependency.registerCallback_(function() {\n goog.Dependency.unregisterCallback_(m);\n c();\n }), p = goog.getScriptNonce();\n p = \"<script\" + (p ? ' nonce=\"' + p + '\"' : \"\") + \">\" + goog.protectScriptTag_('goog.Dependency.callback_(\"' + m + '\");') + \"\\x3c/script>\";\n n.write(goog.TRUSTED_TYPES_POLICY_ ? goog.TRUSTED_TYPES_POLICY_.createHTML(p) : p);\n }\n var e = this;\n if (goog.global.CLOSURE_IMPORT_SCRIPT) {\n b(), this.contents_ && goog.global.CLOSURE_IMPORT_SCRIPT(\"\", this.contents_) ? (this.contents_ = null, a.loaded()) : a.pause();\n } else {\n var f = this.loadFlags.module == goog.ModuleType.ES6;\n this.lazyFetch_ || b();\n var g = 1 < a.pending().length, h = g && goog.DebugLoader_.IS_OLD_IE_;\n g = goog.Dependency.defer_ && (g || goog.isDocumentLoading_());\n if (h || g) {\n a.defer(function() {\n c();\n });\n } else {\n var k = goog.global.document;\n h = goog.inHtmlDocument_() && (\"ActiveXObject\" in goog.global || goog.isEdge_());\n if (f && goog.inHtmlDocument_() && goog.isDocumentLoading_() && !h) {\n goog.Dependency.defer_ = !0;\n a.pause();\n var l = k.onreadystatechange;\n k.onreadystatechange = function() {\n \"interactive\" == k.readyState && (k.onreadystatechange = l, c(), a.resume());\n \"function\" === typeof l && l.apply(void 0, arguments);\n };\n } else {\n !goog.DebugLoader_.IS_OLD_IE_ && goog.inHtmlDocument_() && goog.isDocumentLoading_() ? d() : c();\n }\n }\n }\n}, goog.TransformedDependency.prototype.transform = function(a) {\n}, goog.TranspiledDependency = function(a, b, c, d, e, f) {\n goog.TransformedDependency.call(this, a, b, c, d, e);\n this.transpiler = f;\n}, goog.inherits(goog.TranspiledDependency, goog.TransformedDependency), goog.TranspiledDependency.prototype.transform = function(a) {\n return this.transpiler.transpile(a, this.getPathName());\n}, goog.PreTranspiledEs6ModuleDependency = function(a, b, c, d, e) {\n goog.TransformedDependency.call(this, a, b, c, d, e);\n}, goog.inherits(goog.PreTranspiledEs6ModuleDependency, goog.TransformedDependency), goog.PreTranspiledEs6ModuleDependency.prototype.transform = function(a) {\n return a;\n}, goog.GoogModuleDependency = function(a, b, c, d, e, f, g) {\n goog.TransformedDependency.call(this, a, b, c, d, e);\n this.needsTranspile_ = f;\n this.transpiler_ = g;\n}, goog.inherits(goog.GoogModuleDependency, goog.TransformedDependency), goog.GoogModuleDependency.prototype.transform = function(a) {\n this.needsTranspile_ && (a = this.transpiler_.transpile(a, this.getPathName()));\n return goog.LOAD_MODULE_USING_EVAL && void 0 !== goog.global.JSON ? \"goog.loadModule(\" + goog.global.JSON.stringify(a + \"\\n//# sourceURL=\" + this.path + \"\\n\") + \");\" : 'goog.loadModule(function(exports) {\"use strict\";' + a + \"\\n;return exports});\\n//# sourceURL=\" + this.path + \"\\n\";\n}, goog.DebugLoader_.IS_OLD_IE_ = !(goog.global.atob || !goog.global.document || !goog.global.document.all), goog.DebugLoader_.prototype.addDependency = function(a, b, c, d) {\n b = b || [];\n a = a.replace(/\\\\/g, \"/\");\n var e = goog.normalizePath_(goog.basePath + a);\n d && \"boolean\" !== typeof d || (d = d ? {module:goog.ModuleType.GOOG} : {});\n c = this.factory_.createDependency(e, a, b, c, d, goog.transpiler_.needsTranspile(d.lang || \"es3\", d.module));\n this.dependencies_[e] = c;\n for (c = 0; c < b.length; c++) {\n this.idToPath_[b[c]] = e;\n }\n this.idToPath_[a] = e;\n}, goog.DependencyFactory = function(a) {\n this.transpiler = a;\n}, goog.DependencyFactory.prototype.createDependency = function(a, b, c, d, e, f) {\n return e.module == goog.ModuleType.GOOG ? new goog.GoogModuleDependency(a, b, c, d, e, f, this.transpiler) : f ? new goog.TranspiledDependency(a, b, c, d, e, this.transpiler) : e.module == goog.ModuleType.ES6 ? \"never\" == goog.TRANSPILE && goog.ASSUME_ES_MODULES_TRANSPILED ? new goog.PreTranspiledEs6ModuleDependency(a, b, c, d, e) : new goog.Es6ModuleDependency(a, b, c, d, e) : new goog.Dependency(a, b, c, d, e);\n}, goog.debugLoader_ = new goog.DebugLoader_, goog.loadClosureDeps = function() {\n goog.debugLoader_.loadClosureDeps();\n}, goog.setDependencyFactory = function(a) {\n goog.debugLoader_.setDependencyFactory(a);\n}, goog.TRUSTED_TYPES_POLICY_ = goog.TRUSTED_TYPES_POLICY_NAME ? goog.createTrustedTypesPolicy(goog.TRUSTED_TYPES_POLICY_NAME + \"#base\") : null, goog.global.CLOSURE_NO_DEPS || goog.debugLoader_.loadClosureDeps(), goog.bootstrap = function(a, b) {\n goog.debugLoader_.bootstrap(a, b);\n});\nif (!COMPILED) {\n var isChrome87 = !1;\n try {\n isChrome87 = eval(goog.global.trustedTypes.emptyScript) !== goog.global.trustedTypes.emptyScript;\n } catch (a) {\n }\n goog.CLOSURE_EVAL_PREFILTER_ = goog.global.trustedTypes && isChrome87 && goog.createTrustedTypesPolicy(\"goog#base#devonly#eval\") || {createScript:goog.identity_};\n}\n;goog.object = {};\ngoog.object.forEach = function(a, b, c) {\n for (const d in a) {\n b.call(c, a[d], d, a);\n }\n};\ngoog.object.filter = function(a, b, c) {\n const d = {};\n for (const e in a) {\n b.call(c, a[e], e, a) && (d[e] = a[e]);\n }\n return d;\n};\ngoog.object.map = function(a, b, c) {\n const d = {};\n for (const e in a) {\n d[e] = b.call(c, a[e], e, a);\n }\n return d;\n};\ngoog.object.some = function(a, b, c) {\n for (const d in a) {\n if (b.call(c, a[d], d, a)) {\n return !0;\n }\n }\n return !1;\n};\ngoog.object.every = function(a, b, c) {\n for (const d in a) {\n if (!b.call(c, a[d], d, a)) {\n return !1;\n }\n }\n return !0;\n};\ngoog.object.getCount = function(a) {\n let b = 0;\n for (const c in a) {\n b++;\n }\n return b;\n};\ngoog.object.getAnyKey = function(a) {\n for (const b in a) {\n return b;\n }\n};\ngoog.object.getAnyValue = function(a) {\n for (const b in a) {\n return a[b];\n }\n};\ngoog.object.contains = function(a, b) {\n return goog.object.containsValue(a, b);\n};\ngoog.object.getValues = function(a) {\n const b = [];\n let c = 0;\n for (const d in a) {\n b[c++] = a[d];\n }\n return b;\n};\ngoog.object.getKeys = function(a) {\n const b = [];\n let c = 0;\n for (const d in a) {\n b[c++] = d;\n }\n return b;\n};\ngoog.object.getValueByKeys = function(a, b) {\n var c = goog.isArrayLike(b);\n const d = c ? b : arguments;\n for (c = c ? 0 : 1; c < d.length; c++) {\n if (null == a) {\n return;\n }\n a = a[d[c]];\n }\n return a;\n};\ngoog.object.containsKey = function(a, b) {\n return null !== a && b in a;\n};\ngoog.object.containsValue = function(a, b) {\n for (const c in a) {\n if (a[c] == b) {\n return !0;\n }\n }\n return !1;\n};\ngoog.object.findKey = function(a, b, c) {\n for (const d in a) {\n if (b.call(c, a[d], d, a)) {\n return d;\n }\n }\n};\ngoog.object.findValue = function(a, b, c) {\n return (b = goog.object.findKey(a, b, c)) && a[b];\n};\ngoog.object.isEmpty = function(a) {\n for (const b in a) {\n return !1;\n }\n return !0;\n};\ngoog.object.clear = function(a) {\n for (const b in a) {\n delete a[b];\n }\n};\ngoog.object.remove = function(a, b) {\n let c;\n (c = b in a) && delete a[b];\n return c;\n};\ngoog.object.add = function(a, b, c) {\n if (null !== a && b in a) {\n throw Error('The object already contains the key \"' + b + '\"');\n }\n goog.object.set(a, b, c);\n};\ngoog.object.get = function(a, b, c) {\n return null !== a && b in a ? a[b] : c;\n};\ngoog.object.set = function(a, b, c) {\n a[b] = c;\n};\ngoog.object.setIfUndefined = function(a, b, c) {\n return b in a ? a[b] : a[b] = c;\n};\ngoog.object.setWithReturnValueIfNotSet = function(a, b, c) {\n if (b in a) {\n return a[b];\n }\n c = c();\n return a[b] = c;\n};\ngoog.object.equals = function(a, b) {\n for (const c in a) {\n if (!(c in b) || a[c] !== b[c]) {\n return !1;\n }\n }\n for (const c in b) {\n if (!(c in a)) {\n return !1;\n }\n }\n return !0;\n};\ngoog.object.clone = function(a) {\n const b = {};\n for (const c in a) {\n b[c] = a[c];\n }\n return b;\n};\ngoog.object.unsafeClone = function(a) {\n if (!a || \"object\" !== typeof a) {\n return a;\n }\n if (\"function\" === typeof a.clone) {\n return a.clone();\n }\n const b = Array.isArray(a) ? [] : \"function\" !== typeof ArrayBuffer || \"function\" !== typeof ArrayBuffer.isView || !ArrayBuffer.isView(a) || a instanceof DataView ? {} : new a.constructor(a.length);\n for (const c in a) {\n b[c] = goog.object.unsafeClone(a[c]);\n }\n return b;\n};\ngoog.object.transpose = function(a) {\n const b = {};\n for (const c in a) {\n b[a[c]] = c;\n }\n return b;\n};\ngoog.object.PROTOTYPE_FIELDS_ = \"constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf\".split(\" \");\ngoog.object.extend = function(a, b) {\n let c, d;\n for (let e = 1; e < arguments.length; e++) {\n d = arguments[e];\n for (c in d) {\n a[c] = d[c];\n }\n for (let f = 0; f < goog.object.PROTOTYPE_FIELDS_.length; f++) {\n c = goog.object.PROTOTYPE_FIELDS_[f], Object.prototype.hasOwnProperty.call(d, c) && (a[c] = d[c]);\n }\n }\n};\ngoog.object.create = function(a) {\n const b = arguments.length;\n if (1 == b && Array.isArray(arguments[0])) {\n return goog.object.create.apply(null, arguments[0]);\n }\n if (b % 2) {\n throw Error(\"Uneven number of arguments\");\n }\n const c = {};\n for (let d = 0; d < b; d += 2) {\n c[arguments[d]] = arguments[d + 1];\n }\n return c;\n};\ngoog.object.createSet = function(a) {\n const b = arguments.length;\n if (1 == b && Array.isArray(arguments[0])) {\n return goog.object.createSet.apply(null, arguments[0]);\n }\n const c = {};\n for (let d = 0; d < b; d++) {\n c[arguments[d]] = !0;\n }\n return c;\n};\ngoog.object.createImmutableView = function(a) {\n let b = a;\n Object.isFrozen && !Object.isFrozen(a) && (b = Object.create(a), Object.freeze(b));\n return b;\n};\ngoog.object.isImmutableView = function(a) {\n return !!Object.isFrozen && Object.isFrozen(a);\n};\ngoog.object.getAllPropertyNames = function(a, b, c) {\n if (!a) {\n return [];\n }\n if (!Object.getOwnPropertyNames || !Object.getPrototypeOf) {\n return goog.object.getKeys(a);\n }\n const d = {};\n for (; a && (a !== Object.prototype || b) && (a !== Function.prototype || c);) {\n const e = Object.getOwnPropertyNames(a);\n for (let f = 0; f < e.length; f++) {\n d[e[f]] = !0;\n }\n a = Object.getPrototypeOf(a);\n }\n return goog.object.getKeys(d);\n};\ngoog.object.getSuperClass = function(a) {\n return (a = Object.getPrototypeOf(a.prototype)) && a.constructor;\n};\nvar com = {cognitect:{}};\ncom.cognitect.transit = {};\ncom.cognitect.transit.util = {};\ncom.cognitect.transit.util.objectKeys = \"undefined\" != typeof Object.keys ? function(a) {\n return Object.keys(a);\n} : function(a) {\n return goog.object.getKeys(a);\n};\ncom.cognitect.transit.util.isArray = \"undefined\" != typeof Array.isArray ? function(a) {\n return Array.isArray(a);\n} : function(a) {\n return \"array\" === goog.typeOf(a);\n};\ncom.cognitect.transit.util.chars = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\";\ncom.cognitect.transit.util.randInt = function(a) {\n return Math.round(Math.random() * a);\n};\ncom.cognitect.transit.util.randHex = function() {\n return com.cognitect.transit.util.randInt(15).toString(16);\n};\ncom.cognitect.transit.util.randomUUID = function() {\n var a = (8 | 3 & com.cognitect.transit.util.randInt(14)).toString(16);\n return com.cognitect.transit.util.randHex() + com.cognitect.transit.util.randHex() + com.cognitect.transit.util.randHex() + com.cognitect.transit.util.randHex() + com.cognitect.transit.util.randHex() + com.cognitect.transit.util.randHex() + com.cognitect.transit.util.randHex() + com.cognitect.transit.util.randHex() + \"-\" + com.cognitect.transit.util.randHex() + com.cognitect.transit.util.randHex() + com.cognitect.transit.util.randHex() + com.cognitect.transit.util.randHex() + \"-4\" + com.cognitect.transit.util.randHex() + \n com.cognitect.transit.util.randHex() + com.cognitect.transit.util.randHex() + \"-\" + a + com.cognitect.transit.util.randHex() + com.cognitect.transit.util.randHex() + com.cognitect.transit.util.randHex() + \"-\" + com.cognitect.transit.util.randHex() + com.cognitect.transit.util.randHex() + com.cognitect.transit.util.randHex() + com.cognitect.transit.util.randHex() + com.cognitect.transit.util.randHex() + com.cognitect.transit.util.randHex() + com.cognitect.transit.util.randHex() + com.cognitect.transit.util.randHex() + \n com.cognitect.transit.util.randHex() + com.cognitect.transit.util.randHex() + com.cognitect.transit.util.randHex() + com.cognitect.transit.util.randHex();\n};\ncom.cognitect.transit.util.btoa = function(a) {\n if (\"undefined\" != typeof btoa) {\n return btoa(a);\n }\n a = String(a);\n for (var b, c, d = 0, e = com.cognitect.transit.util.chars, f = \"\"; a.charAt(d | 0) || (e = \"=\", d % 1); f += e.charAt(63 & b >> 8 - d % 1 * 8)) {\n c = a.charCodeAt(d += .75);\n if (255 < c) {\n throw Error(\"'btoa' failed: The string to be encoded contains characters outside of the Latin1 range.\");\n }\n b = b << 8 | c;\n }\n return f;\n};\ncom.cognitect.transit.util.atob = function(a) {\n if (\"undefined\" != typeof atob) {\n return atob(a);\n }\n a = String(a).replace(/=+$/, \"\");\n if (1 == a.length % 4) {\n throw Error(\"'atob' failed: The string to be decoded is not correctly encoded.\");\n }\n for (var b = 0, c, d, e = 0, f = \"\"; d = a.charAt(e++); ~d && (c = b % 4 ? 64 * c + d : d, b++ % 4) ? f += String.fromCharCode(255 & c >> (-2 * b & 6)) : 0) {\n d = com.cognitect.transit.util.chars.indexOf(d);\n }\n return f;\n};\ncom.cognitect.transit.util.Uint8ToBase64 = function(a) {\n for (var b = 0, c = a.length, d = \"\", e; b < c;) {\n e = a.subarray(b, Math.min(b + 32768, c)), d += String.fromCharCode.apply(null, e), b += 32768;\n }\n return com.cognitect.transit.util.btoa(d);\n};\ncom.cognitect.transit.util.Base64ToUint8 = function(a) {\n a = com.cognitect.transit.util.atob(a);\n for (var b = a.length, c = new Uint8Array(b), d = 0; d < b; d++) {\n var e = a.charCodeAt(d);\n c[d] = e;\n }\n return c;\n};\ncom.cognitect.transit.delimiters = {};\ncom.cognitect.transit.delimiters.ESC = \"~\";\ncom.cognitect.transit.delimiters.TAG = \"#\";\ncom.cognitect.transit.delimiters.SUB = \"^\";\ncom.cognitect.transit.delimiters.RES = \"`\";\ncom.cognitect.transit.delimiters.ESC_TAG = \"~#\";\ncom.cognitect.transit.caching = {};\ncom.cognitect.transit.caching.MIN_SIZE_CACHEABLE = 3;\ncom.cognitect.transit.caching.BASE_CHAR_IDX = 48;\ncom.cognitect.transit.caching.CACHE_CODE_DIGITS = 44;\ncom.cognitect.transit.caching.MAX_CACHE_ENTRIES = com.cognitect.transit.caching.CACHE_CODE_DIGITS * com.cognitect.transit.caching.CACHE_CODE_DIGITS;\ncom.cognitect.transit.caching.MAX_CACHE_SIZE = 4096;\ncom.cognitect.transit.caching.isCacheable = function(a, b) {\n if (a.length > com.cognitect.transit.caching.MIN_SIZE_CACHEABLE) {\n if (b) {\n return !0;\n }\n b = a.charAt(0);\n a = a.charAt(1);\n return b === com.cognitect.transit.delimiters.ESC ? \":\" === a || \"$\" === a || \"#\" === a : !1;\n }\n return !1;\n};\ncom.cognitect.transit.caching.idxToCode = function(a) {\n var b = Math.floor(a / com.cognitect.transit.caching.CACHE_CODE_DIGITS);\n a = String.fromCharCode(a % com.cognitect.transit.caching.CACHE_CODE_DIGITS + com.cognitect.transit.caching.BASE_CHAR_IDX);\n return 0 === b ? com.cognitect.transit.delimiters.SUB + a : com.cognitect.transit.delimiters.SUB + String.fromCharCode(b + com.cognitect.transit.caching.BASE_CHAR_IDX) + a;\n};\ncom.cognitect.transit.caching.WriteCache = function() {\n this.cacheSize = this.gen = this.idx = 0;\n this.cache = {};\n};\ncom.cognitect.transit.caching.WriteCache.prototype.write = function(a, b) {\n return com.cognitect.transit.caching.isCacheable(a, b) ? (this.cacheSize === com.cognitect.transit.caching.MAX_CACHE_SIZE ? (this.clear(), this.gen = 0, this.cache = {}) : this.idx === com.cognitect.transit.caching.MAX_CACHE_ENTRIES && this.clear(), b = this.cache[a], null == b ? (this.cache[a] = [com.cognitect.transit.caching.idxToCode(this.idx), this.gen], this.idx++, a) : b[1] != this.gen ? (b[1] = this.gen, b[0] = com.cognitect.transit.caching.idxToCode(this.idx), this.idx++, a) : b[0]) : a;\n};\ncom.cognitect.transit.caching.WriteCache.prototype.clear = function() {\n this.idx = 0;\n this.gen++;\n};\ncom.cognitect.transit.caching.writeCache = function() {\n return new com.cognitect.transit.caching.WriteCache;\n};\ncom.cognitect.transit.caching.isCacheCode = function(a) {\n return a.charAt(0) === com.cognitect.transit.delimiters.SUB && \" \" !== a.charAt(1);\n};\ncom.cognitect.transit.caching.codeToIdx = function(a) {\n if (2 === a.length) {\n return a.charCodeAt(1) - com.cognitect.transit.caching.BASE_CHAR_IDX;\n }\n var b = (a.charCodeAt(1) - com.cognitect.transit.caching.BASE_CHAR_IDX) * com.cognitect.transit.caching.CACHE_CODE_DIGITS;\n a = a.charCodeAt(2) - com.cognitect.transit.caching.BASE_CHAR_IDX;\n return b + a;\n};\ncom.cognitect.transit.caching.ReadCache = function() {\n this.idx = 0;\n this.cache = [];\n};\ncom.cognitect.transit.caching.ReadCache.prototype.write = function(a, b) {\n this.idx == com.cognitect.transit.caching.MAX_CACHE_ENTRIES && (this.idx = 0);\n this.cache[this.idx] = a;\n this.idx++;\n return a;\n};\ncom.cognitect.transit.caching.ReadCache.prototype.read = function(a, b) {\n return this.cache[com.cognitect.transit.caching.codeToIdx(a)];\n};\ncom.cognitect.transit.caching.ReadCache.prototype.clear = function() {\n this.idx = 0;\n};\ncom.cognitect.transit.caching.readCache = function() {\n return new com.cognitect.transit.caching.ReadCache;\n};\ncom.cognitect.transit.eq = {};\ncom.cognitect.transit.eq.hashCodeProperty = \"transit$hashCode$\";\ncom.cognitect.transit.eq.hashCodeCounter = 1;\ncom.cognitect.transit.eq.equals = function(a, b) {\n if (null == a) {\n return null == b;\n }\n if (a === b) {\n return !0;\n }\n if (\"object\" === typeof a) {\n if (com.cognitect.transit.util.isArray(a)) {\n if (com.cognitect.transit.util.isArray(b) && a.length === b.length) {\n for (var c = 0; c < a.length; c++) {\n if (!com.cognitect.transit.eq.equals(a[c], b[c])) {\n return !1;\n }\n }\n return !0;\n }\n return !1;\n }\n if (a.com$cognitect$transit$equals) {\n return a.com$cognitect$transit$equals(b);\n }\n if (null != b && \"object\" === typeof b) {\n if (b.com$cognitect$transit$equals) {\n return b.com$cognitect$transit$equals(a);\n }\n c = 0;\n var d = com.cognitect.transit.util.objectKeys(b).length, e;\n for (e in a) {\n if (a.hasOwnProperty(e) && (c++, !b.hasOwnProperty(e) || !com.cognitect.transit.eq.equals(a[e], b[e]))) {\n return !1;\n }\n }\n return c === d;\n }\n }\n return !1;\n};\ncom.cognitect.transit.eq.hashCombine = function(a, b) {\n return a ^ b + 2654435769 + (a << 6) + (a >> 2);\n};\ncom.cognitect.transit.eq.stringCodeCache = {};\ncom.cognitect.transit.eq.stringCodeCacheSize = 0;\ncom.cognitect.transit.eq.STR_CACHE_MAX = 256;\ncom.cognitect.transit.eq.hashString = function(a) {\n var b = com.cognitect.transit.eq.stringCodeCache[a];\n if (null != b) {\n return b;\n }\n for (var c = b = 0; c < a.length; ++c) {\n b = 31 * b + a.charCodeAt(c), b %= 4294967296;\n }\n com.cognitect.transit.eq.stringCodeCacheSize++;\n com.cognitect.transit.eq.stringCodeCacheSize >= com.cognitect.transit.eq.STR_CACHE_MAX && (com.cognitect.transit.eq.stringCodeCache = {}, com.cognitect.transit.eq.stringCodeCacheSize = 1);\n return com.cognitect.transit.eq.stringCodeCache[a] = b;\n};\ncom.cognitect.transit.eq.hashMapLike = function(a) {\n var b = 0;\n if (null != a.forEach) {\n a.forEach(function(g, h, k) {\n b = (b + (com.cognitect.transit.eq.hashCode(h) ^ com.cognitect.transit.eq.hashCode(g))) % 4503599627370496;\n });\n } else {\n for (var c = com.cognitect.transit.util.objectKeys(a), d = 0; d < c.length; d++) {\n var e = c[d], f = a[e];\n b = (b + (com.cognitect.transit.eq.hashCode(e) ^ com.cognitect.transit.eq.hashCode(f))) % 4503599627370496;\n }\n }\n return b;\n};\ncom.cognitect.transit.eq.hashArrayLike = function(a) {\n var b = 0;\n if (com.cognitect.transit.util.isArray(a)) {\n for (var c = 0; c < a.length; c++) {\n b = com.cognitect.transit.eq.hashCombine(b, com.cognitect.transit.eq.hashCode(a[c]));\n }\n } else {\n a.forEach && a.forEach(function(d, e) {\n b = com.cognitect.transit.eq.hashCombine(b, com.cognitect.transit.eq.hashCode(d));\n });\n }\n return b;\n};\ncom.cognitect.transit.eq.hashCode = function(a) {\n if (null == a) {\n return 0;\n }\n switch(typeof a) {\n case \"number\":\n return a;\n case \"boolean\":\n return !0 === a ? 1 : 0;\n case \"string\":\n return com.cognitect.transit.eq.hashString(a);\n case \"function\":\n var b = a[com.cognitect.transit.eq.hashCodeProperty];\n b || (b = com.cognitect.transit.eq.hashCodeCounter, \"undefined\" != typeof Object.defineProperty ? Object.defineProperty(a, com.cognitect.transit.eq.hashCodeProperty, {value:b, enumerable:!1}) : a[com.cognitect.transit.eq.hashCodeProperty] = b, com.cognitect.transit.eq.hashCodeCounter++);\n return b;\n default:\n return a instanceof Date ? a.valueOf() : com.cognitect.transit.util.isArray(a) ? com.cognitect.transit.eq.hashArrayLike(a) : a.com$cognitect$transit$hashCode ? a.com$cognitect$transit$hashCode() : com.cognitect.transit.eq.hashMapLike(a);\n }\n};\ncom.cognitect.transit.eq.extendToEQ = function(a, b) {\n a.com$cognitect$transit$hashCode = b.hashCode;\n a.com$cognitect$transit$equals = b.equals;\n return a;\n};\ngoog.debug = {};\nfunction module$contents$goog$debug$Error_DebugError(a, b) {\n if (Error.captureStackTrace) {\n Error.captureStackTrace(this, module$contents$goog$debug$Error_DebugError);\n } else {\n const c = Error().stack;\n c && (this.stack = c);\n }\n a && (this.message = String(a));\n b && (this.cause = b);\n this.reportErrorToServer = !0;\n}\ngoog.inherits(module$contents$goog$debug$Error_DebugError, Error);\nmodule$contents$goog$debug$Error_DebugError.prototype.name = \"CustomError\";\ngoog.debug.Error = module$contents$goog$debug$Error_DebugError;\ngoog.dom = {};\ngoog.dom.NodeType = {ELEMENT:1, ATTRIBUTE:2, TEXT:3, CDATA_SECTION:4, ENTITY_REFERENCE:5, ENTITY:6, PROCESSING_INSTRUCTION:7, COMMENT:8, DOCUMENT:9, DOCUMENT_TYPE:10, DOCUMENT_FRAGMENT:11, NOTATION:12};\ngoog.asserts = {};\ngoog.asserts.ENABLE_ASSERTS = goog.DEBUG;\ngoog.asserts.AssertionError = function(a, b) {\n module$contents$goog$debug$Error_DebugError.call(this, goog.asserts.subs_(a, b));\n this.messagePattern = a;\n};\ngoog.inherits(goog.asserts.AssertionError, module$contents$goog$debug$Error_DebugError);\ngoog.asserts.AssertionError.prototype.name = \"AssertionError\";\ngoog.asserts.DEFAULT_ERROR_HANDLER = function(a) {\n throw a;\n};\ngoog.asserts.errorHandler_ = goog.asserts.DEFAULT_ERROR_HANDLER;\ngoog.asserts.subs_ = function(a, b) {\n a = a.split(\"%s\");\n for (var c = \"\", d = a.length - 1, e = 0; e < d; e++) {\n c += a[e] + (e < b.length ? b[e] : \"%s\");\n }\n return c + a[d];\n};\ngoog.asserts.doAssertFailure_ = function(a, b, c, d) {\n var e = \"Assertion failed\";\n if (c) {\n e += \": \" + c;\n var f = d;\n } else {\n a && (e += \": \" + a, f = b);\n }\n a = new goog.asserts.AssertionError(\"\" + e, f || []);\n goog.asserts.errorHandler_(a);\n};\ngoog.asserts.setErrorHandler = function(a) {\n goog.asserts.ENABLE_ASSERTS && (goog.asserts.errorHandler_ = a);\n};\ngoog.asserts.assert = function(a, b, c) {\n goog.asserts.ENABLE_ASSERTS && !a && goog.asserts.doAssertFailure_(\"\", null, b, Array.prototype.slice.call(arguments, 2));\n return a;\n};\ngoog.asserts.assertExists = function(a, b, c) {\n goog.asserts.ENABLE_ASSERTS && null == a && goog.asserts.doAssertFailure_(\"Expected to exist: %s.\", [a], b, Array.prototype.slice.call(arguments, 2));\n return a;\n};\ngoog.asserts.fail = function(a, b) {\n goog.asserts.ENABLE_ASSERTS && goog.asserts.errorHandler_(new goog.asserts.AssertionError(\"Failure\" + (a ? \": \" + a : \"\"), Array.prototype.slice.call(arguments, 1)));\n};\ngoog.asserts.assertNumber = function(a, b, c) {\n goog.asserts.ENABLE_ASSERTS && \"number\" !== typeof a && goog.asserts.doAssertFailure_(\"Expected number but got %s: %s.\", [goog.typeOf(a), a], b, Array.prototype.slice.call(arguments, 2));\n return a;\n};\ngoog.asserts.assertString = function(a, b, c) {\n goog.asserts.ENABLE_ASSERTS && \"string\" !== typeof a && goog.asserts.doAssertFailure_(\"Expected string but got %s: %s.\", [goog.typeOf(a), a], b, Array.prototype.slice.call(arguments, 2));\n return a;\n};\ngoog.asserts.assertFunction = function(a, b, c) {\n goog.asserts.ENABLE_ASSERTS && \"function\" !== typeof a && goog.asserts.doAssertFailure_(\"Expected function but got %s: %s.\", [goog.typeOf(a), a], b, Array.prototype.slice.call(arguments, 2));\n return a;\n};\ngoog.asserts.assertObject = function(a, b, c) {\n goog.asserts.ENABLE_ASSERTS && !goog.isObject(a) && goog.asserts.doAssertFailure_(\"Expected object but got %s: %s.\", [goog.typeOf(a), a], b, Array.prototype.slice.call(arguments, 2));\n return a;\n};\ngoog.asserts.assertArray = function(a, b, c) {\n goog.asserts.ENABLE_ASSERTS && !Array.isArray(a) && goog.asserts.doAssertFailure_(\"Expected array but got %s: %s.\", [goog.typeOf(a), a], b, Array.prototype.slice.call(arguments, 2));\n return a;\n};\ngoog.asserts.assertBoolean = function(a, b, c) {\n goog.asserts.ENABLE_ASSERTS && \"boolean\" !== typeof a && goog.asserts.doAssertFailure_(\"Expected boolean but got %s: %s.\", [goog.typeOf(a), a], b, Array.prototype.slice.call(arguments, 2));\n return a;\n};\ngoog.asserts.assertElement = function(a, b, c) {\n !goog.asserts.ENABLE_ASSERTS || goog.isObject(a) && a.nodeType == goog.dom.NodeType.ELEMENT || goog.asserts.doAssertFailure_(\"Expected Element but got %s: %s.\", [goog.typeOf(a), a], b, Array.prototype.slice.call(arguments, 2));\n return a;\n};\ngoog.asserts.assertInstanceof = function(a, b, c, d) {\n !goog.asserts.ENABLE_ASSERTS || a instanceof b || goog.asserts.doAssertFailure_(\"Expected instanceof %s but got %s.\", [goog.asserts.getType_(b), goog.asserts.getType_(a)], c, Array.prototype.slice.call(arguments, 3));\n return a;\n};\ngoog.asserts.assertFinite = function(a, b, c) {\n !goog.asserts.ENABLE_ASSERTS || \"number\" == typeof a && isFinite(a) || goog.asserts.doAssertFailure_(\"Expected %s to be a finite number but it is not.\", [a], b, Array.prototype.slice.call(arguments, 2));\n return a;\n};\ngoog.asserts.getType_ = function(a) {\n return a instanceof Function ? a.displayName || a.name || \"unknown type name\" : a instanceof Object ? a.constructor.displayName || a.constructor.name || Object.prototype.toString.call(a) : null === a ? \"null\" : typeof a;\n};\ngoog.reflect = {};\ngoog.reflect.object = function(a, b) {\n return b;\n};\ngoog.reflect.objectProperty = function(a, b) {\n return a;\n};\ngoog.reflect.sinkValue = function(a) {\n goog.reflect.sinkValue[\" \"](a);\n return a;\n};\ngoog.reflect.sinkValue[\" \"] = goog.nullFunction;\ngoog.reflect.canAccessProperty = function(a, b) {\n try {\n return goog.reflect.sinkValue(a[b]), !0;\n } catch (c) {\n }\n return !1;\n};\ngoog.reflect.cache = function(a, b, c, d) {\n d = d ? d(b) : b;\n return Object.prototype.hasOwnProperty.call(a, d) ? a[d] : a[d] = c(b);\n};\ngoog.math = {};\nclass module$contents$goog$math$Long_Long {\n constructor(a, b) {\n this.low_ = a | 0;\n this.high_ = b | 0;\n }\n toInt() {\n return this.low_;\n }\n toNumber() {\n return this.high_ * module$contents$goog$math$Long_TWO_PWR_32_DBL_ + this.getLowBitsUnsigned();\n }\n isSafeInteger() {\n var a = this.high_ >> 21;\n return 0 == a || -1 == a && !(0 == this.low_ && -2097152 == this.high_);\n }\n toString(a) {\n a = a || 10;\n if (2 > a || 36 < a) {\n throw Error(\"radix out of range: \" + a);\n }\n if (this.isSafeInteger()) {\n var b = this.toNumber();\n return 10 == a ? \"\" + b : b.toString(a);\n }\n b = 14 - (a >> 2);\n var c = Math.pow(a, b), d = module$contents$goog$math$Long_Long.fromBits(c, c / module$contents$goog$math$Long_TWO_PWR_32_DBL_);\n c = this.div(d);\n d = Math.abs(this.subtract(c.multiply(d)).toNumber());\n var e = 10 == a ? \"\" + d : d.toString(a);\n e.length < b && (e = \"0000000000000\".substr(e.length - b) + e);\n d = c.toNumber();\n return (10 == a ? d : d.toString(a)) + e;\n }\n getHighBits() {\n return this.high_;\n }\n getLowBits() {\n return this.low_;\n }\n getLowBitsUnsigned() {\n return this.low_ >>> 0;\n }\n getNumBitsAbs() {\n if (this.isNegative()) {\n return this.equals(module$contents$goog$math$Long_Long.getMinValue()) ? 64 : this.negate().getNumBitsAbs();\n }\n for (var a = 0 != this.high_ ? this.high_ : this.low_, b = 31; 0 < b && 0 == (a & 1 << b); b--) {\n }\n return 0 != this.high_ ? b + 33 : b + 1;\n }\n isZero() {\n return 0 == this.low_ && 0 == this.high_;\n }\n isNegative() {\n return 0 > this.high_;\n }\n isOdd() {\n return 1 == (this.low_ & 1);\n }\n equals(a) {\n return this.low_ == a.low_ && this.high_ == a.high_;\n }\n notEquals(a) {\n return !this.equals(a);\n }\n lessThan(a) {\n return 0 > this.compare(a);\n }\n lessThanOrEqual(a) {\n return 0 >= this.compare(a);\n }\n greaterThan(a) {\n return 0 < this.compare(a);\n }\n greaterThanOrEqual(a) {\n return 0 <= this.compare(a);\n }\n compare(a) {\n return this.high_ == a.high_ ? this.low_ == a.low_ ? 0 : this.getLowBitsUnsigned() > a.getLowBitsUnsigned() ? 1 : -1 : this.high_ > a.high_ ? 1 : -1;\n }\n negate() {\n var a = ~this.low_ + 1 | 0;\n return module$contents$goog$math$Long_Long.fromBits(a, ~this.high_ + !a | 0);\n }\n add(a) {\n var b = this.high_ >>> 16, c = this.high_ & 65535, d = this.low_ >>> 16, e = a.high_ >>> 16, f = a.high_ & 65535, g = a.low_ >>> 16;\n a = (this.low_ & 65535) + (a.low_ & 65535);\n g = (a >>> 16) + (d + g);\n d = g >>> 16;\n d += c + f;\n b = (d >>> 16) + (b + e) & 65535;\n return module$contents$goog$math$Long_Long.fromBits((g & 65535) << 16 | a & 65535, b << 16 | d & 65535);\n }\n subtract(a) {\n return this.add(a.negate());\n }\n multiply(a) {\n if (this.isZero()) {\n return this;\n }\n if (a.isZero()) {\n return a;\n }\n var b = this.high_ >>> 16, c = this.high_ & 65535, d = this.low_ >>> 16, e = this.low_ & 65535, f = a.high_ >>> 16, g = a.high_ & 65535, h = a.low_ >>> 16;\n a = a.low_ & 65535;\n var k = e * a;\n var l = (k >>> 16) + d * a;\n var n = l >>> 16;\n l = (l & 65535) + e * h;\n n += l >>> 16;\n n += c * a;\n var m = n >>> 16;\n n = (n & 65535) + d * h;\n m += n >>> 16;\n n = (n & 65535) + e * g;\n m = m + (n >>> 16) + (b * a + c * h + d * g + e * f) & 65535;\n return module$contents$goog$math$Long_Long.fromBits((l & 65535) << 16 | k & 65535, m << 16 | n & 65535);\n }\n div(a) {\n if (a.isZero()) {\n throw Error(\"division by zero\");\n }\n if (this.isNegative()) {\n if (this.equals(module$contents$goog$math$Long_Long.getMinValue())) {\n if (a.equals(module$contents$goog$math$Long_Long.getOne()) || a.equals(module$contents$goog$math$Long_Long.getNegOne())) {\n return module$contents$goog$math$Long_Long.getMinValue();\n }\n if (a.equals(module$contents$goog$math$Long_Long.getMinValue())) {\n return module$contents$goog$math$Long_Long.getOne();\n }\n var b = this.shiftRight(1).div(a).shiftLeft(1);\n if (b.equals(module$contents$goog$math$Long_Long.getZero())) {\n return a.isNegative() ? module$contents$goog$math$Long_Long.getOne() : module$contents$goog$math$Long_Long.getNegOne();\n }\n var c = this.subtract(a.multiply(b));\n return b.add(c.div(a));\n }\n return a.isNegative() ? this.negate().div(a.negate()) : this.negate().div(a).negate();\n }\n if (this.isZero()) {\n return module$contents$goog$math$Long_Long.getZero();\n }\n if (a.isNegative()) {\n return a.equals(module$contents$goog$math$Long_Long.getMinValue()) ? module$contents$goog$math$Long_Long.getZero() : this.div(a.negate()).negate();\n }\n var d = module$contents$goog$math$Long_Long.getZero();\n for (c = this; c.greaterThanOrEqual(a);) {\n b = Math.max(1, Math.floor(c.toNumber() / a.toNumber()));\n var e = Math.ceil(Math.log(b) / Math.LN2);\n e = 48 >= e ? 1 : Math.pow(2, e - 48);\n for (var f = module$contents$goog$math$Long_Long.fromNumber(b), g = f.multiply(a); g.isNegative() || g.greaterThan(c);) {\n b -= e, f = module$contents$goog$math$Long_Long.fromNumber(b), g = f.multiply(a);\n }\n f.isZero() && (f = module$contents$goog$math$Long_Long.getOne());\n d = d.add(f);\n c = c.subtract(g);\n }\n return d;\n }\n modulo(a) {\n return this.subtract(this.div(a).multiply(a));\n }\n not() {\n return module$contents$goog$math$Long_Long.fromBits(~this.low_, ~this.high_);\n }\n and(a) {\n return module$contents$goog$math$Long_Long.fromBits(this.low_ & a.low_, this.high_ & a.high_);\n }\n or(a) {\n return module$contents$goog$math$Long_Long.fromBits(this.low_ | a.low_, this.high_ | a.high_);\n }\n xor(a) {\n return module$contents$goog$math$Long_Long.fromBits(this.low_ ^ a.low_, this.high_ ^ a.high_);\n }\n shiftLeft(a) {\n a &= 63;\n if (0 == a) {\n return this;\n }\n var b = this.low_;\n return 32 > a ? module$contents$goog$math$Long_Long.fromBits(b << a, this.high_ << a | b >>> 32 - a) : module$contents$goog$math$Long_Long.fromBits(0, b << a - 32);\n }\n shiftRight(a) {\n a &= 63;\n if (0 == a) {\n return this;\n }\n var b = this.high_;\n return 32 > a ? module$contents$goog$math$Long_Long.fromBits(this.low_ >>> a | b << 32 - a, b >> a) : module$contents$goog$math$Long_Long.fromBits(b >> a - 32, 0 <= b ? 0 : -1);\n }\n shiftRightUnsigned(a) {\n a &= 63;\n if (0 == a) {\n return this;\n }\n var b = this.high_;\n return 32 > a ? module$contents$goog$math$Long_Long.fromBits(this.low_ >>> a | b << 32 - a, b >>> a) : 32 == a ? module$contents$goog$math$Long_Long.fromBits(b, 0) : module$contents$goog$math$Long_Long.fromBits(b >>> a - 32, 0);\n }\n static fromInt(a) {\n var b = a | 0;\n goog.asserts.assert(a === b, \"value should be a 32-bit integer\");\n return -128 <= b && 128 > b ? module$contents$goog$math$Long_getCachedIntValue_(b) : new module$contents$goog$math$Long_Long(b, 0 > b ? -1 : 0);\n }\n static fromNumber(a) {\n return 0 < a ? a >= module$contents$goog$math$Long_TWO_PWR_63_DBL_ ? module$contents$goog$math$Long_Long.getMaxValue() : new module$contents$goog$math$Long_Long(a, a / module$contents$goog$math$Long_TWO_PWR_32_DBL_) : 0 > a ? a <= -module$contents$goog$math$Long_TWO_PWR_63_DBL_ ? module$contents$goog$math$Long_Long.getMinValue() : (new module$contents$goog$math$Long_Long(-a, -a / module$contents$goog$math$Long_TWO_PWR_32_DBL_)).negate() : module$contents$goog$math$Long_Long.getZero();\n }\n static fromBits(a, b) {\n return new module$contents$goog$math$Long_Long(a, b);\n }\n static fromString(a, b) {\n if (\"-\" == a.charAt(0)) {\n return module$contents$goog$math$Long_Long.fromString(a.substring(1), b).negate();\n }\n var c = parseInt(a, b || 10);\n if (c <= module$contents$goog$math$Long_MAX_SAFE_INTEGER_) {\n return new module$contents$goog$math$Long_Long(c % module$contents$goog$math$Long_TWO_PWR_32_DBL_ | 0, c / module$contents$goog$math$Long_TWO_PWR_32_DBL_ | 0);\n }\n if (0 == a.length) {\n throw Error(\"number format error: empty string\");\n }\n if (0 <= a.indexOf(\"-\")) {\n throw Error('number format error: interior \"-\" character: ' + a);\n }\n b = b || 10;\n if (2 > b || 36 < b) {\n throw Error(\"radix out of range: \" + b);\n }\n c = module$contents$goog$math$Long_Long.fromNumber(Math.pow(b, 8));\n for (var d = module$contents$goog$math$Long_Long.getZero(), e = 0; e < a.length; e += 8) {\n var f = Math.min(8, a.length - e), g = parseInt(a.substring(e, e + f), b);\n 8 > f ? (f = module$contents$goog$math$Long_Long.fromNumber(Math.pow(b, f)), d = d.multiply(f).add(module$contents$goog$math$Long_Long.fromNumber(g))) : (d = d.multiply(c), d = d.add(module$contents$goog$math$Long_Long.fromNumber(g)));\n }\n return d;\n }\n static isStringInRange(a, b) {\n b = b || 10;\n if (2 > b || 36 < b) {\n throw Error(\"radix out of range: \" + b);\n }\n b = \"-\" == a.charAt(0) ? module$contents$goog$math$Long_MIN_VALUE_FOR_RADIX_[b] : module$contents$goog$math$Long_MAX_VALUE_FOR_RADIX_[b];\n return a.length < b.length ? !0 : a.length == b.length && a <= b ? !0 : !1;\n }\n static getZero() {\n return module$contents$goog$math$Long_ZERO_;\n }\n static getOne() {\n return module$contents$goog$math$Long_ONE_;\n }\n static getNegOne() {\n return module$contents$goog$math$Long_NEG_ONE_;\n }\n static getMaxValue() {\n return module$contents$goog$math$Long_MAX_VALUE_;\n }\n static getMinValue() {\n return module$contents$goog$math$Long_MIN_VALUE_;\n }\n static getTwoPwr24() {\n return module$contents$goog$math$Long_TWO_PWR_24_;\n }\n}\ngoog.math.Long = module$contents$goog$math$Long_Long;\nconst module$contents$goog$math$Long_IntCache_ = {};\nfunction module$contents$goog$math$Long_getCachedIntValue_(a) {\n return goog.reflect.cache(module$contents$goog$math$Long_IntCache_, a, function(b) {\n return new module$contents$goog$math$Long_Long(b, 0 > b ? -1 : 0);\n });\n}\nconst module$contents$goog$math$Long_MAX_VALUE_FOR_RADIX_ = \" 111111111111111111111111111111111111111111111111111111111111111 2021110011022210012102010021220101220221 13333333333333333333333333333333 1104332401304422434310311212 1540241003031030222122211 22341010611245052052300 777777777777777777777 67404283172107811827 9223372036854775807 1728002635214590697 41a792678515120367 10b269549075433c37 4340724c6c71dc7a7 160e2ad3246366807 7fffffffffffffff 33d3d8307b214008 16agh595df825fa7 ba643dci0ffeehh 5cbfjia3fh26ja7 2heiciiie82dh97 1adaibb21dckfa7 i6k448cf4192c2 acd772jnc9l0l7 64ie1focnn5g77 3igoecjbmca687 27c48l5b37oaop 1bk39f3ah3dmq7 q1se8f0m04isb hajppbc1fc207 bm03i95hia437 7vvvvvvvvvvvv 5hg4ck9jd4u37 3tdtk1v8j6tpp 2pijmikexrxp7 1y2p0ij32e8e7\".split(\" \"), \nmodule$contents$goog$math$Long_MIN_VALUE_FOR_RADIX_ = \" -1000000000000000000000000000000000000000000000000000000000000000 -2021110011022210012102010021220101220222 -20000000000000000000000000000000 -1104332401304422434310311213 -1540241003031030222122212 -22341010611245052052301 -1000000000000000000000 -67404283172107811828 -9223372036854775808 -1728002635214590698 -41a792678515120368 -10b269549075433c38 -4340724c6c71dc7a8 -160e2ad3246366808 -8000000000000000 -33d3d8307b214009 -16agh595df825fa8 -ba643dci0ffeehi -5cbfjia3fh26ja8 -2heiciiie82dh98 -1adaibb21dckfa8 -i6k448cf4192c3 -acd772jnc9l0l8 -64ie1focnn5g78 -3igoecjbmca688 -27c48l5b37oaoq -1bk39f3ah3dmq8 -q1se8f0m04isc -hajppbc1fc208 -bm03i95hia438 -8000000000000 -5hg4ck9jd4u38 -3tdtk1v8j6tpq -2pijmikexrxp8 -1y2p0ij32e8e8\".split(\" \"), \nmodule$contents$goog$math$Long_MAX_SAFE_INTEGER_ = 9007199254740991, module$contents$goog$math$Long_TWO_PWR_32_DBL_ = 4294967296, module$contents$goog$math$Long_TWO_PWR_63_DBL_ = 0x7fffffffffffffff, module$contents$goog$math$Long_ZERO_ = module$contents$goog$math$Long_Long.fromBits(0, 0), module$contents$goog$math$Long_ONE_ = module$contents$goog$math$Long_Long.fromBits(1, 0), module$contents$goog$math$Long_NEG_ONE_ = module$contents$goog$math$Long_Long.fromBits(-1, -1), module$contents$goog$math$Long_MAX_VALUE_ = \nmodule$contents$goog$math$Long_Long.fromBits(4294967295, 2147483647), module$contents$goog$math$Long_MIN_VALUE_ = module$contents$goog$math$Long_Long.fromBits(0, 2147483648), module$contents$goog$math$Long_TWO_PWR_24_ = module$contents$goog$math$Long_Long.fromBits(16777216, 0);\ncom.cognitect.transit.types = {};\ncom.cognitect.transit.types.ITERATOR = \"undefined\" != typeof Symbol ? Symbol.iterator : \"@@iterator\";\ncom.cognitect.transit.types.TaggedValue = function(a, b) {\n this.tag = a;\n this.rep = b;\n this.hashCode = -1;\n};\ncom.cognitect.transit.types.TaggedValue.prototype.toString = function() {\n return \"[TaggedValue: \" + this.tag + \", \" + this.rep + \"]\";\n};\ncom.cognitect.transit.types.TaggedValue.prototype.equiv = function(a) {\n return com.cognitect.transit.eq.equals(this, a);\n};\ncom.cognitect.transit.types.TaggedValue.prototype.equiv = com.cognitect.transit.types.TaggedValue.prototype.equiv;\ncom.cognitect.transit.types.TaggedValue.prototype.com$cognitect$transit$equals = function(a) {\n return a instanceof com.cognitect.transit.types.TaggedValue ? this.tag === a.tag && com.cognitect.transit.eq.equals(this.rep, a.rep) : !1;\n};\ncom.cognitect.transit.types.TaggedValue.prototype.com$cognitect$transit$hashCode = function() {\n -1 === this.hashCode && (this.hashCode = com.cognitect.transit.eq.hashCombine(com.cognitect.transit.eq.hashCode(this.tag), com.cognitect.transit.eq.hashCode(this.rep)));\n return this.hashCode;\n};\ncom.cognitect.transit.types.taggedValue = function(a, b) {\n return new com.cognitect.transit.types.TaggedValue(a, b);\n};\ncom.cognitect.transit.types.isTaggedValue = function(a) {\n return a instanceof com.cognitect.transit.types.TaggedValue;\n};\ncom.cognitect.transit.types.nullValue = function() {\n return null;\n};\ncom.cognitect.transit.types.boolValue = function(a) {\n return \"t\" === a;\n};\ncom.cognitect.transit.types.MAX_INT = module$contents$goog$math$Long_Long.fromString(\"9007199254740991\");\ncom.cognitect.transit.types.MIN_INT = module$contents$goog$math$Long_Long.fromString(\"-9007199254740991\");\ncom.cognitect.transit.types.intValue = function(a) {\n if (\"number\" === typeof a || a instanceof module$contents$goog$math$Long_Long) {\n return a;\n }\n a = module$contents$goog$math$Long_Long.fromString(a, 10);\n return a.greaterThan(com.cognitect.transit.types.MAX_INT) || a.lessThan(com.cognitect.transit.types.MIN_INT) ? a : a.toNumber();\n};\nmodule$contents$goog$math$Long_Long.prototype.equiv = function(a) {\n return com.cognitect.transit.eq.equals(this, a);\n};\nmodule$contents$goog$math$Long_Long.prototype.equiv = module$contents$goog$math$Long_Long.prototype.equiv;\nmodule$contents$goog$math$Long_Long.prototype.com$cognitect$transit$equals = function(a) {\n return a instanceof module$contents$goog$math$Long_Long && this.equals(a);\n};\nmodule$contents$goog$math$Long_Long.prototype.com$cognitect$transit$hashCode = function() {\n return this.toInt();\n};\ncom.cognitect.transit.types.isInteger = function(a) {\n return a instanceof module$contents$goog$math$Long_Long ? !0 : \"number\" === typeof a && !isNaN(a) && Infinity !== a && parseFloat(a) === parseInt(a, 10);\n};\ncom.cognitect.transit.types.floatValue = function(a) {\n return parseFloat(a);\n};\ncom.cognitect.transit.types.bigInteger = function(a) {\n return com.cognitect.transit.types.taggedValue(\"n\", a);\n};\ncom.cognitect.transit.types.isBigInteger = function(a) {\n return a instanceof com.cognitect.transit.types.TaggedValue && \"n\" === a.tag;\n};\ncom.cognitect.transit.types.bigDecimalValue = function(a) {\n return com.cognitect.transit.types.taggedValue(\"f\", a);\n};\ncom.cognitect.transit.types.isBigDecimal = function(a) {\n return a instanceof com.cognitect.transit.types.TaggedValue && \"f\" === a.tag;\n};\ncom.cognitect.transit.types.charValue = function(a) {\n return a;\n};\ncom.cognitect.transit.types.Keyword = function(a) {\n this._name = a;\n this.hashCode = -1;\n};\ncom.cognitect.transit.types.Keyword.prototype.toString = function() {\n return \":\" + this._name;\n};\ncom.cognitect.transit.types.Keyword.prototype.namespace = function() {\n var a = this._name.indexOf(\"/\");\n return -1 != a ? this._name.substring(0, a) : null;\n};\ncom.cognitect.transit.types.Keyword.prototype.name = function() {\n var a = this._name.indexOf(\"/\");\n return -1 != a ? this._name.substring(a + 1, this._name.length) : this._name;\n};\ncom.cognitect.transit.types.Keyword.prototype.equiv = function(a) {\n return com.cognitect.transit.eq.equals(this, a);\n};\ncom.cognitect.transit.types.Keyword.prototype.equiv = com.cognitect.transit.types.Keyword.prototype.equiv;\ncom.cognitect.transit.types.Keyword.prototype.com$cognitect$transit$equals = function(a) {\n return a instanceof com.cognitect.transit.types.Keyword && this._name == a._name;\n};\ncom.cognitect.transit.types.Keyword.prototype.com$cognitect$transit$hashCode = function() {\n -1 === this.hashCode && (this.hashCode = com.cognitect.transit.eq.hashCode(this._name));\n return this.hashCode;\n};\ncom.cognitect.transit.types.keyword = function(a) {\n return new com.cognitect.transit.types.Keyword(a);\n};\ncom.cognitect.transit.types.isKeyword = function(a) {\n return a instanceof com.cognitect.transit.types.Keyword;\n};\ncom.cognitect.transit.types.Symbol = function(a) {\n this._name = a;\n this.hashCode = -1;\n};\ncom.cognitect.transit.types.Symbol.prototype.namespace = function() {\n var a = this._name.indexOf(\"/\");\n return -1 != a ? this._name.substring(0, a) : null;\n};\ncom.cognitect.transit.types.Symbol.prototype.name = function() {\n var a = this._name.indexOf(\"/\");\n return -1 != a ? this._name.substring(a + 1, this._name.length) : this._name;\n};\ncom.cognitect.transit.types.Symbol.prototype.toString = function() {\n return this._name;\n};\ncom.cognitect.transit.types.Symbol.prototype.equiv = function(a) {\n return com.cognitect.transit.eq.equals(this, a);\n};\ncom.cognitect.transit.types.Symbol.prototype.equiv = com.cognitect.transit.types.Symbol.prototype.equiv;\ncom.cognitect.transit.types.Symbol.prototype.com$cognitect$transit$equals = function(a) {\n return a instanceof com.cognitect.transit.types.Symbol && this._name == a._name;\n};\ncom.cognitect.transit.types.Symbol.prototype.com$cognitect$transit$hashCode = function() {\n -1 === this.hashCode && (this.hashCode = com.cognitect.transit.eq.hashCode(this._name));\n return this.hashCode;\n};\ncom.cognitect.transit.types.symbol = function(a) {\n return new com.cognitect.transit.types.Symbol(a);\n};\ncom.cognitect.transit.types.isSymbol = function(a) {\n return a instanceof com.cognitect.transit.types.Symbol;\n};\ncom.cognitect.transit.types.hexFor = function(a, b, c) {\n var d = \"\";\n c = c || b + 1;\n for (var e = 8 * (7 - b), f = module$contents$goog$math$Long_Long.fromInt(255).shiftLeft(e); b < c; b++, e -= 8, f = f.shiftRightUnsigned(8)) {\n var g = a.and(f).shiftRightUnsigned(e).toString(16);\n 1 == g.length && (g = \"0\" + g);\n d += g;\n }\n return d;\n};\ncom.cognitect.transit.types.UUID = function(a, b) {\n this.high = a;\n this.low = b;\n this.hashCode = -1;\n};\ncom.cognitect.transit.types.UUID.prototype.getLeastSignificantBits = function() {\n return this.low;\n};\ncom.cognitect.transit.types.UUID.prototype.getMostSignificantBits = function() {\n return this.high;\n};\ncom.cognitect.transit.types.UUID.prototype.toString = function() {\n var a = this.high, b = this.low;\n var c = com.cognitect.transit.types.hexFor(a, 0, 4) + \"-\";\n c += com.cognitect.transit.types.hexFor(a, 4, 6) + \"-\";\n c += com.cognitect.transit.types.hexFor(a, 6, 8) + \"-\";\n c += com.cognitect.transit.types.hexFor(b, 0, 2) + \"-\";\n return c += com.cognitect.transit.types.hexFor(b, 2, 8);\n};\ncom.cognitect.transit.types.UUID.prototype.equiv = function(a) {\n return com.cognitect.transit.eq.equals(this, a);\n};\ncom.cognitect.transit.types.UUID.prototype.equiv = com.cognitect.transit.types.UUID.prototype.equiv;\ncom.cognitect.transit.types.UUID.prototype.com$cognitect$transit$equals = function(a) {\n return a instanceof com.cognitect.transit.types.UUID && this.high.equals(a.high) && this.low.equals(a.low);\n};\ncom.cognitect.transit.types.UUID.prototype.com$cognitect$transit$hashCode = function() {\n -1 === this.hashCode && (this.hashCode = com.cognitect.transit.eq.hashCode(this.toString()));\n return this.hashCode;\n};\ncom.cognitect.transit.types.UUIDfromString = function(a) {\n a = a.replace(/-/g, \"\");\n var b, c;\n var d = b = 0;\n for (c = 24; 8 > d; d += 2, c -= 8) {\n b |= parseInt(a.substring(d, d + 2), 16) << c;\n }\n var e = 0;\n d = 8;\n for (c = 24; 16 > d; d += 2, c -= 8) {\n e |= parseInt(a.substring(d, d + 2), 16) << c;\n }\n var f = module$contents$goog$math$Long_Long.fromBits(e, b);\n b = 0;\n d = 16;\n for (c = 24; 24 > d; d += 2, c -= 8) {\n b |= parseInt(a.substring(d, d + 2), 16) << c;\n }\n e = 0;\n for (c = d = 24; 32 > d; d += 2, c -= 8) {\n e |= parseInt(a.substring(d, d + 2), 16) << c;\n }\n a = module$contents$goog$math$Long_Long.fromBits(e, b);\n return new com.cognitect.transit.types.UUID(f, a);\n};\ncom.cognitect.transit.types.uuid = function(a) {\n return com.cognitect.transit.types.UUIDfromString(a);\n};\ncom.cognitect.transit.types.isUUID = function(a) {\n return a instanceof com.cognitect.transit.types.UUID;\n};\ncom.cognitect.transit.types.date = function(a) {\n a = \"number\" === typeof a ? a : parseInt(a, 10);\n return new Date(a);\n};\ncom.cognitect.transit.types.verboseDate = function(a) {\n return new Date(a);\n};\nDate.prototype.com$cognitect$transit$equals = function(a) {\n return a instanceof Date ? this.valueOf() === a.valueOf() : !1;\n};\nDate.prototype.com$cognitect$transit$hashCode = function() {\n return this.valueOf();\n};\ncom.cognitect.transit.types.binary = function(a, b) {\n return b && !1 === b.preferBuffers || \"undefined\" == typeof goog.global.Buffer ? \"undefined\" != typeof Uint8Array ? com.cognitect.transit.util.Base64ToUint8(a) : com.cognitect.transit.types.taggedValue(\"b\", a) : new goog.global.Buffer(a, \"base64\");\n};\ncom.cognitect.transit.types.isBinary = function(a) {\n return \"undefined\" != typeof goog.global.Buffer && a instanceof goog.global.Buffer ? !0 : \"undefined\" != typeof Uint8Array && a instanceof Uint8Array ? !0 : a instanceof com.cognitect.transit.types.TaggedValue && \"b\" === a.tag;\n};\ncom.cognitect.transit.types.uri = function(a) {\n return com.cognitect.transit.types.taggedValue(\"r\", a);\n};\ncom.cognitect.transit.types.isURI = function(a) {\n return a instanceof com.cognitect.transit.types.TaggedValue && \"r\" === a.tag;\n};\ncom.cognitect.transit.types.KEYS = 0;\ncom.cognitect.transit.types.VALUES = 1;\ncom.cognitect.transit.types.ENTRIES = 2;\ncom.cognitect.transit.types.TransitArrayMapIterator = function(a, b) {\n this.entries = a;\n this.type = b || com.cognitect.transit.types.KEYS;\n this.idx = 0;\n};\ncom.cognitect.transit.types.TransitArrayMapIterator.prototype.next = function() {\n if (this.idx < this.entries.length) {\n var a = {value:this.type === com.cognitect.transit.types.KEYS ? this.entries[this.idx] : this.type === com.cognitect.transit.types.VALUES ? this.entries[this.idx + 1] : [this.entries[this.idx], this.entries[this.idx + 1]], done:!1};\n this.idx += 2;\n return a;\n }\n return {value:null, done:!0};\n};\ncom.cognitect.transit.types.TransitArrayMapIterator.prototype.next = com.cognitect.transit.types.TransitArrayMapIterator.prototype.next;\ncom.cognitect.transit.types.TransitArrayMapIterator.prototype[com.cognitect.transit.types.ITERATOR] = function() {\n return this;\n};\ncom.cognitect.transit.types.TransitMapIterator = function(a, b) {\n this.map = a;\n this.type = b || com.cognitect.transit.types.KEYS;\n this.keys = this.map.getKeys();\n this.idx = 0;\n this.bucket = null;\n this.bucketIdx = 0;\n};\ncom.cognitect.transit.types.TransitMapIterator.prototype.next = function() {\n if (this.idx < this.map.size) {\n null != this.bucket && this.bucketIdx < this.bucket.length || (this.bucket = this.map.map[this.keys[this.idx]], this.bucketIdx = 0);\n var a = {value:this.type === com.cognitect.transit.types.KEYS ? this.bucket[this.bucketIdx] : this.type === com.cognitect.transit.types.VALUES ? this.bucket[this.bucketIdx + 1] : [this.bucket[this.bucketIdx], this.bucket[this.bucketIdx + 1]], done:!1};\n this.idx++;\n this.bucketIdx += 2;\n return a;\n }\n return {value:null, done:!0};\n};\ncom.cognitect.transit.types.TransitMapIterator.prototype.next = com.cognitect.transit.types.TransitMapIterator.prototype.next;\ncom.cognitect.transit.types.TransitMapIterator.prototype[com.cognitect.transit.types.ITERATOR] = function() {\n return this;\n};\ncom.cognitect.transit.types.mapEquals = function(a, b) {\n if (a instanceof com.cognitect.transit.types.TransitMap && com.cognitect.transit.types.isMap(b)) {\n if (a.size !== b.size) {\n return !1;\n }\n for (var c in a.map) {\n for (var d = a.map[c], e = 0; e < d.length; e += 2) {\n if (!com.cognitect.transit.eq.equals(d[e + 1], b.get(d[e]))) {\n return !1;\n }\n }\n }\n return !0;\n }\n if (a instanceof com.cognitect.transit.types.TransitArrayMap && com.cognitect.transit.types.isMap(b)) {\n if (a.size !== b.size) {\n return !1;\n }\n a = a._entries;\n for (e = 0; e < a.length; e += 2) {\n if (!com.cognitect.transit.eq.equals(a[e + 1], b.get(a[e]))) {\n return !1;\n }\n }\n return !0;\n }\n if (null != b && \"object\" === typeof b && (e = com.cognitect.transit.util.objectKeys(b), c = e.length, a.size === c)) {\n for (d = 0; d < c; d++) {\n var f = e[d];\n if (!a.has(f) || !com.cognitect.transit.eq.equals(b[f], a.get(f))) {\n return !1;\n }\n }\n return !0;\n }\n return !1;\n};\ncom.cognitect.transit.types.SMALL_ARRAY_MAP_THRESHOLD = 8;\ncom.cognitect.transit.types.ARRAY_MAP_THRESHOLD = 32;\ncom.cognitect.transit.types.ARRAY_MAP_ACCESS_THRESHOLD = 32;\ncom.cognitect.transit.types.print = function(a) {\n return null == a ? \"null\" : \"array\" === goog.typeOf(a) ? \"[\" + a.toString() + \"]\" : \"string\" === goog.typeOf(a) ? '\"' + a + '\"' : a.toString();\n};\ncom.cognitect.transit.types.printMap = function(a) {\n var b = 0, c = \"TransitMap {\";\n a.forEach(function(d, e) {\n c += com.cognitect.transit.types.print(e) + \" => \" + com.cognitect.transit.types.print(d);\n b < a.size - 1 && (c += \", \");\n b++;\n });\n return c + \"}\";\n};\ncom.cognitect.transit.types.printSet = function(a) {\n var b = 0, c = \"TransitSet {\";\n a.forEach(function(d) {\n c += com.cognitect.transit.types.print(d);\n b < a.size - 1 && (c += \", \");\n b++;\n });\n return c + \"}\";\n};\ncom.cognitect.transit.types.TransitArrayMap = function(a) {\n this._entries = a;\n this.backingMap = null;\n this.hashCode = -1;\n this.size = a.length / 2;\n this.accesses = 0;\n};\ncom.cognitect.transit.types.TransitArrayMap.prototype.toString = function() {\n return com.cognitect.transit.types.printMap(this);\n};\ncom.cognitect.transit.types.TransitArrayMap.prototype.inspect = function() {\n return this.toString();\n};\ncom.cognitect.transit.types.TransitArrayMap.prototype.convert = function() {\n if (this.backingMap) {\n throw Error(\"Invalid operation, already converted\");\n }\n if (this.size < com.cognitect.transit.types.SMALL_ARRAY_MAP_THRESHOLD) {\n return !1;\n }\n this.accesses++;\n return this.accesses > com.cognitect.transit.types.ARRAY_MAP_ACCESS_THRESHOLD ? (this.backingMap = com.cognitect.transit.types.map(this._entries, !1, !0), this._entries = [], !0) : !1;\n};\ncom.cognitect.transit.types.TransitArrayMap.prototype.clear = function() {\n this.hashCode = -1;\n this.backingMap ? this.backingMap.clear() : this._entries = [];\n this.size = 0;\n};\ncom.cognitect.transit.types.TransitArrayMap.prototype.clear = com.cognitect.transit.types.TransitArrayMap.prototype.clear;\ncom.cognitect.transit.types.TransitArrayMap.prototype.keys = function() {\n return this.backingMap ? this.backingMap.keys() : new com.cognitect.transit.types.TransitArrayMapIterator(this._entries, com.cognitect.transit.types.KEYS);\n};\ncom.cognitect.transit.types.TransitArrayMap.prototype.keys = com.cognitect.transit.types.TransitArrayMap.prototype.keys;\ncom.cognitect.transit.types.TransitArrayMap.prototype.keySet = function() {\n if (this.backingMap) {\n return this.backingMap.keySet();\n }\n for (var a = [], b = 0, c = 0; c < this._entries.length; b++, c += 2) {\n a[b] = this._entries[c];\n }\n return a;\n};\ncom.cognitect.transit.types.TransitArrayMap.prototype.keySet = com.cognitect.transit.types.TransitArrayMap.prototype.keySet;\ncom.cognitect.transit.types.TransitArrayMap.prototype.entries = function() {\n return this.backingMap ? this.backingMap.entries() : new com.cognitect.transit.types.TransitArrayMapIterator(this._entries, com.cognitect.transit.types.ENTRIES);\n};\ncom.cognitect.transit.types.TransitArrayMap.prototype.entries = com.cognitect.transit.types.TransitArrayMap.prototype.entries;\ncom.cognitect.transit.types.TransitArrayMap.prototype.values = function() {\n return this.backingMap ? this.backingMap.values() : new com.cognitect.transit.types.TransitArrayMapIterator(this._entries, com.cognitect.transit.types.VALUES);\n};\ncom.cognitect.transit.types.TransitArrayMap.prototype.values = com.cognitect.transit.types.TransitArrayMap.prototype.values;\ncom.cognitect.transit.types.TransitArrayMap.prototype.forEach = function(a) {\n if (this.backingMap) {\n this.backingMap.forEach(a);\n } else {\n for (var b = 0; b < this._entries.length; b += 2) {\n a(this._entries[b + 1], this._entries[b]);\n }\n }\n};\ncom.cognitect.transit.types.TransitArrayMap.prototype.forEach = com.cognitect.transit.types.TransitArrayMap.prototype.forEach;\ncom.cognitect.transit.types.TransitArrayMap.prototype.get = function(a, b) {\n if (this.backingMap) {\n return this.backingMap.get(a);\n }\n if (this.convert()) {\n return this.get(a);\n }\n for (var c = 0; c < this._entries.length; c += 2) {\n if (com.cognitect.transit.eq.equals(this._entries[c], a)) {\n return this._entries[c + 1];\n }\n }\n return b;\n};\ncom.cognitect.transit.types.TransitArrayMap.prototype.get = com.cognitect.transit.types.TransitArrayMap.prototype.get;\ncom.cognitect.transit.types.TransitArrayMap.prototype.has = function(a) {\n if (this.backingMap) {\n return this.backingMap.has(a);\n }\n if (this.convert()) {\n return this.has(a);\n }\n for (var b = 0; b < this._entries.length; b += 2) {\n if (com.cognitect.transit.eq.equals(this._entries[b], a)) {\n return !0;\n }\n }\n return !1;\n};\ncom.cognitect.transit.types.TransitArrayMap.prototype.has = com.cognitect.transit.types.TransitArrayMap.prototype.has;\ncom.cognitect.transit.types.TransitArrayMap.prototype.set = function(a, b) {\n this.hashCode = -1;\n if (this.backingMap) {\n this.backingMap.set(a, b), this.size = this.backingMap.size;\n } else {\n for (var c = 0; c < this._entries.length; c += 2) {\n if (com.cognitect.transit.eq.equals(this._entries[c], a)) {\n this._entries[c + 1] = b;\n return;\n }\n }\n this._entries.push(a);\n this._entries.push(b);\n this.size++;\n this.size > com.cognitect.transit.types.ARRAY_MAP_THRESHOLD && (this.backingMap = com.cognitect.transit.types.map(this._entries, !1, !0), this._entries = null);\n }\n};\ncom.cognitect.transit.types.TransitArrayMap.prototype.set = com.cognitect.transit.types.TransitArrayMap.prototype.set;\ncom.cognitect.transit.types.TransitArrayMap.prototype[\"delete\"] = function(a) {\n this.hashCode = -1;\n if (this.backingMap) {\n return a = this.backingMap.delete(a), this.size = this.backingMap.size, a;\n }\n for (var b = 0; b < this._entries.length; b += 2) {\n if (com.cognitect.transit.eq.equals(this._entries[b], a)) {\n return a = this._entries[b + 1], this._entries.splice(b, 2), this.size--, a;\n }\n }\n};\ncom.cognitect.transit.types.TransitArrayMap.prototype.clone = function() {\n var a = com.cognitect.transit.types.map();\n this.forEach(function(b, c) {\n a.set(c, b);\n });\n return a;\n};\ncom.cognitect.transit.types.TransitArrayMap.prototype.clone = com.cognitect.transit.types.TransitArrayMap.prototype.clone;\ncom.cognitect.transit.types.TransitArrayMap.prototype[com.cognitect.transit.types.ITERATOR] = function() {\n return this.entries();\n};\ncom.cognitect.transit.types.TransitArrayMap.prototype.com$cognitect$transit$hashCode = function() {\n if (this.backingMap) {\n return this.backingMap.com$cognitect$transit$hashCode();\n }\n -1 === this.hashCode && (this.hashCode = com.cognitect.transit.eq.hashMapLike(this));\n return this.hashCode;\n};\ncom.cognitect.transit.types.TransitArrayMap.prototype.com$cognitect$transit$equals = function(a) {\n return this.backingMap ? com.cognitect.transit.types.mapEquals(this.backingMap, a) : com.cognitect.transit.types.mapEquals(this, a);\n};\ncom.cognitect.transit.types.TransitMap = function(a, b, c) {\n this.map = b || {};\n this._keys = a || [];\n this.size = c || 0;\n this.hashCode = -1;\n};\ncom.cognitect.transit.types.TransitMap.prototype.toString = function() {\n return com.cognitect.transit.types.printMap(this);\n};\ncom.cognitect.transit.types.TransitMap.prototype.inspect = function() {\n return this.toString();\n};\ncom.cognitect.transit.types.TransitMap.prototype.clear = function() {\n this.hashCode = -1;\n this.map = {};\n this._keys = [];\n this.size = 0;\n};\ncom.cognitect.transit.types.TransitMap.prototype.clear = com.cognitect.transit.types.TransitMap.prototype.clear;\ncom.cognitect.transit.types.TransitMap.prototype.getKeys = function() {\n return null != this._keys ? this._keys : com.cognitect.transit.util.objectKeys(this.map);\n};\ncom.cognitect.transit.types.TransitMap.prototype[\"delete\"] = function(a) {\n this.hashCode = -1;\n this._keys = null;\n for (var b = com.cognitect.transit.eq.hashCode(a), c = this.map[b], d = 0; d < c.length; d += 2) {\n if (com.cognitect.transit.eq.equals(a, c[d])) {\n return a = c[d + 1], c.splice(d, 2), 0 === c.length && delete this.map[b], this.size--, a;\n }\n }\n};\ncom.cognitect.transit.types.TransitMap.prototype.entries = function() {\n return new com.cognitect.transit.types.TransitMapIterator(this, com.cognitect.transit.types.ENTRIES);\n};\ncom.cognitect.transit.types.TransitMap.prototype.entries = com.cognitect.transit.types.TransitMap.prototype.entries;\ncom.cognitect.transit.types.TransitMap.prototype.forEach = function(a) {\n for (var b = this.getKeys(), c = 0; c < b.length; c++) {\n for (var d = this.map[b[c]], e = 0; e < d.length; e += 2) {\n a(d[e + 1], d[e], this);\n }\n }\n};\ncom.cognitect.transit.types.TransitMap.prototype.forEach = com.cognitect.transit.types.TransitMap.prototype.forEach;\ncom.cognitect.transit.types.TransitMap.prototype.get = function(a, b) {\n var c = com.cognitect.transit.eq.hashCode(a);\n c = this.map[c];\n if (null != c) {\n for (b = 0; b < c.length; b += 2) {\n if (com.cognitect.transit.eq.equals(a, c[b])) {\n return c[b + 1];\n }\n }\n } else {\n return b;\n }\n};\ncom.cognitect.transit.types.TransitMap.prototype.get = com.cognitect.transit.types.TransitMap.prototype.get;\ncom.cognitect.transit.types.TransitMap.prototype.has = function(a) {\n var b = com.cognitect.transit.eq.hashCode(a);\n b = this.map[b];\n if (null != b) {\n for (var c = 0; c < b.length; c += 2) {\n if (com.cognitect.transit.eq.equals(a, b[c])) {\n return !0;\n }\n }\n }\n return !1;\n};\ncom.cognitect.transit.types.TransitMap.prototype.has = com.cognitect.transit.types.TransitMap.prototype.has;\ncom.cognitect.transit.types.TransitMap.prototype.keys = function() {\n return new com.cognitect.transit.types.TransitMapIterator(this, com.cognitect.transit.types.KEYS);\n};\ncom.cognitect.transit.types.TransitMap.prototype.keys = com.cognitect.transit.types.TransitMap.prototype.keys;\ncom.cognitect.transit.types.TransitMap.prototype.keySet = function() {\n for (var a = this.getKeys(), b = [], c = 0; c < a.length; c++) {\n for (var d = this.map[a[c]], e = 0; e < d.length; e += 2) {\n b.push(d[e]);\n }\n }\n return b;\n};\ncom.cognitect.transit.types.TransitMap.prototype.keySet = com.cognitect.transit.types.TransitMap.prototype.keySet;\ncom.cognitect.transit.types.TransitMap.prototype.set = function(a, b) {\n this.hashCode = -1;\n var c = com.cognitect.transit.eq.hashCode(a), d = this.map[c];\n if (null == d) {\n this._keys && this._keys.push(c), this.map[c] = [a, b], this.size++;\n } else {\n c = !0;\n for (var e = 0; e < d.length; e += 2) {\n if (com.cognitect.transit.eq.equals(b, d[e])) {\n c = !1;\n d[e] = b;\n break;\n }\n }\n c && (d.push(a), d.push(b), this.size++);\n }\n};\ncom.cognitect.transit.types.TransitMap.prototype.set = com.cognitect.transit.types.TransitMap.prototype.set;\ncom.cognitect.transit.types.TransitMap.prototype.values = function() {\n return new com.cognitect.transit.types.TransitMapIterator(this, com.cognitect.transit.types.VALUES);\n};\ncom.cognitect.transit.types.TransitMap.prototype.values = com.cognitect.transit.types.TransitMap.prototype.values;\ncom.cognitect.transit.types.TransitMap.prototype.clone = function() {\n var a = com.cognitect.transit.types.map();\n this.forEach(function(b, c) {\n a.set(c, b);\n });\n return a;\n};\ncom.cognitect.transit.types.TransitMap.prototype.clone = com.cognitect.transit.types.TransitMap.prototype.clone;\ncom.cognitect.transit.types.TransitMap.prototype[com.cognitect.transit.types.ITERATOR] = function() {\n return this.entries();\n};\ncom.cognitect.transit.types.TransitMap.prototype.com$cognitect$transit$hashCode = function() {\n -1 === this.hashCode && (this.hashCode = com.cognitect.transit.eq.hashMapLike(this));\n return this.hashCode;\n};\ncom.cognitect.transit.types.TransitMap.prototype.com$cognitect$transit$equals = function(a) {\n return com.cognitect.transit.types.mapEquals(this, a);\n};\ncom.cognitect.transit.types.map = function(a, b, c) {\n a = a || [];\n b = !1 === b ? b : !0;\n if ((!0 !== c || !c) && a.length <= 2 * com.cognitect.transit.types.ARRAY_MAP_THRESHOLD) {\n if (b) {\n var d = a;\n a = [];\n for (b = 0; b < d.length; b += 2) {\n var e = !1;\n for (c = 0; c < a.length; c += 2) {\n if (com.cognitect.transit.eq.equals(a[c], d[b])) {\n a[c + 1] = d[b + 1];\n e = !0;\n break;\n }\n }\n e || (a.push(d[b]), a.push(d[b + 1]));\n }\n }\n return new com.cognitect.transit.types.TransitArrayMap(a);\n }\n d = {};\n e = [];\n var f = 0;\n for (b = 0; b < a.length; b += 2) {\n c = com.cognitect.transit.eq.hashCode(a[b]);\n var g = d[c];\n if (null == g) {\n e.push(c), d[c] = [a[b], a[b + 1]], f++;\n } else {\n var h = !0;\n for (c = 0; c < g.length; c += 2) {\n if (com.cognitect.transit.eq.equals(g[c], a[b])) {\n g[c + 1] = a[b + 1];\n h = !1;\n break;\n }\n }\n h && (g.push(a[b]), g.push(a[b + 1]), f++);\n }\n }\n return new com.cognitect.transit.types.TransitMap(e, d, f);\n};\ncom.cognitect.transit.types.isArrayMap = function(a) {\n return a instanceof com.cognitect.transit.types.TransitArrayMap;\n};\ncom.cognitect.transit.types.isMap = function(a) {\n return a instanceof com.cognitect.transit.types.TransitArrayMap || a instanceof com.cognitect.transit.types.TransitMap;\n};\ncom.cognitect.transit.types.TransitSet = function(a) {\n this.map = a;\n this.size = a.size;\n};\ncom.cognitect.transit.types.TransitSet.prototype.toString = function() {\n return com.cognitect.transit.types.printSet(this);\n};\ncom.cognitect.transit.types.TransitSet.prototype.inspect = function() {\n return this.toString();\n};\ncom.cognitect.transit.types.TransitSet.prototype.add = function(a) {\n this.map.set(a, a);\n this.size = this.map.size;\n};\ncom.cognitect.transit.types.TransitSet.prototype.add = com.cognitect.transit.types.TransitSet.prototype.add;\ncom.cognitect.transit.types.TransitSet.prototype.clear = function() {\n this.map = new com.cognitect.transit.types.TransitMap;\n this.size = 0;\n};\ncom.cognitect.transit.types.TransitSet.prototype.clear = com.cognitect.transit.types.TransitSet.prototype.clear;\ncom.cognitect.transit.types.TransitSet.prototype[\"delete\"] = function(a) {\n a = this.map.delete(a);\n this.size = this.map.size;\n return a;\n};\ncom.cognitect.transit.types.TransitSet.prototype.entries = function() {\n return this.map.entries();\n};\ncom.cognitect.transit.types.TransitSet.prototype.entries = com.cognitect.transit.types.TransitSet.prototype.entries;\ncom.cognitect.transit.types.TransitSet.prototype.forEach = function(a, b) {\n var c = this;\n this.map.forEach(function(d, e, f) {\n a(e, c);\n });\n};\ncom.cognitect.transit.types.TransitSet.prototype.forEach = com.cognitect.transit.types.TransitSet.prototype.forEach;\ncom.cognitect.transit.types.TransitSet.prototype.has = function(a) {\n return this.map.has(a);\n};\ncom.cognitect.transit.types.TransitSet.prototype.has = com.cognitect.transit.types.TransitSet.prototype.has;\ncom.cognitect.transit.types.TransitSet.prototype.keys = function() {\n return this.map.keys();\n};\ncom.cognitect.transit.types.TransitSet.prototype.keys = com.cognitect.transit.types.TransitSet.prototype.keys;\ncom.cognitect.transit.types.TransitSet.prototype.keySet = function() {\n return this.map.keySet();\n};\ncom.cognitect.transit.types.TransitSet.prototype.keySet = com.cognitect.transit.types.TransitSet.prototype.keySet;\ncom.cognitect.transit.types.TransitSet.prototype.values = function() {\n return this.map.values();\n};\ncom.cognitect.transit.types.TransitSet.prototype.values = com.cognitect.transit.types.TransitSet.prototype.values;\ncom.cognitect.transit.types.TransitSet.prototype.clone = function() {\n var a = com.cognitect.transit.types.set();\n this.forEach(function(b) {\n a.add(b);\n });\n return a;\n};\ncom.cognitect.transit.types.TransitSet.prototype.clone = com.cognitect.transit.types.TransitSet.prototype.clone;\ncom.cognitect.transit.types.TransitSet.prototype[com.cognitect.transit.types.ITERATOR] = function() {\n return this.values();\n};\ncom.cognitect.transit.types.TransitSet.prototype.com$cognitect$transit$equals = function(a) {\n if (a instanceof com.cognitect.transit.types.TransitSet) {\n if (this.size === a.size) {\n return com.cognitect.transit.eq.equals(this.map, a.map);\n }\n } else {\n return !1;\n }\n};\ncom.cognitect.transit.types.TransitSet.prototype.com$cognitect$transit$hashCode = function(a) {\n return com.cognitect.transit.eq.hashCode(this.map);\n};\ncom.cognitect.transit.types.set = function(a) {\n a = a || [];\n for (var b = {}, c = [], d = 0, e = 0; e < a.length; e++) {\n var f = com.cognitect.transit.eq.hashCode(a[e]), g = b[f];\n if (null == g) {\n c.push(f), b[f] = [a[e], a[e]], d++;\n } else {\n f = !0;\n for (var h = 0; h < g.length; h += 2) {\n if (com.cognitect.transit.eq.equals(g[h], a[e])) {\n f = !1;\n break;\n }\n }\n f && (g.push(a[e]), g.push(a[e]), d++);\n }\n }\n return new com.cognitect.transit.types.TransitSet(new com.cognitect.transit.types.TransitMap(c, b, d));\n};\ncom.cognitect.transit.types.isSet = function(a) {\n return a instanceof com.cognitect.transit.types.TransitSet;\n};\ncom.cognitect.transit.types.quoted = function(a) {\n return com.cognitect.transit.types.taggedValue(\"'\", a);\n};\ncom.cognitect.transit.types.isQuoted = function(a) {\n return a instanceof com.cognitect.transit.types.TaggedValue && \"'\" === a.tag;\n};\ncom.cognitect.transit.types.list = function(a) {\n return com.cognitect.transit.types.taggedValue(\"list\", a);\n};\ncom.cognitect.transit.types.isList = function(a) {\n return a instanceof com.cognitect.transit.types.TaggedValue && \"list\" === a.tag;\n};\ncom.cognitect.transit.types.link = function(a) {\n return com.cognitect.transit.types.taggedValue(\"link\", a);\n};\ncom.cognitect.transit.types.isLink = function(a) {\n return a instanceof com.cognitect.transit.types.TaggedValue && \"link\" === a.tag;\n};\ncom.cognitect.transit.types.specialDouble = function(a) {\n switch(a) {\n case \"-INF\":\n return -Infinity;\n case \"INF\":\n return Infinity;\n case \"NaN\":\n return NaN;\n default:\n throw Error(\"Invalid special double value \" + a);\n }\n};\ncom.cognitect.transit.impl = {};\ncom.cognitect.transit.impl.decoder = {};\ncom.cognitect.transit.impl.decoder.Tag = function(a) {\n this.str = a;\n};\ncom.cognitect.transit.impl.decoder.tag = function(a) {\n return new com.cognitect.transit.impl.decoder.Tag(a);\n};\ncom.cognitect.transit.impl.decoder.isTag = function(a) {\n return a && a instanceof com.cognitect.transit.impl.decoder.Tag;\n};\ncom.cognitect.transit.impl.decoder.isGroundHandler = function(a) {\n switch(a) {\n case \"_\":\n case \"s\":\n case \"?\":\n case \"i\":\n case \"d\":\n case \"b\":\n case \"'\":\n case \"array\":\n case \"map\":\n return !0;\n }\n return !1;\n};\ncom.cognitect.transit.impl.decoder.Decoder = function(a) {\n this.options = a || {};\n this.handlers = {};\n for (var b in this.defaults.handlers) {\n this.handlers[b] = this.defaults.handlers[b];\n }\n for (b in this.options.handlers) {\n if (com.cognitect.transit.impl.decoder.isGroundHandler(b)) {\n throw Error('Cannot override handler for ground type \"' + b + '\"');\n }\n this.handlers[b] = this.options.handlers[b];\n }\n this.preferStrings = null != this.options.preferStrings ? this.options.preferStrings : this.defaults.preferStrings;\n this.preferBuffers = null != this.options.preferBuffers ? this.options.preferBuffers : this.defaults.preferBuffers;\n this.defaultHandler = this.options.defaultHandler || this.defaults.defaultHandler;\n this.mapBuilder = this.options.mapBuilder;\n this.arrayBuilder = this.options.arrayBuilder;\n};\ncom.cognitect.transit.impl.decoder.Decoder.prototype.defaults = {handlers:{_:function(a, b) {\n return com.cognitect.transit.types.nullValue();\n}, \"?\":function(a, b) {\n return com.cognitect.transit.types.boolValue(a);\n}, b:function(a, b) {\n return com.cognitect.transit.types.binary(a, b);\n}, i:function(a, b) {\n return com.cognitect.transit.types.intValue(a);\n}, n:function(a, b) {\n return com.cognitect.transit.types.bigInteger(a);\n}, d:function(a, b) {\n return com.cognitect.transit.types.floatValue(a);\n}, f:function(a, b) {\n return com.cognitect.transit.types.bigDecimalValue(a);\n}, c:function(a, b) {\n return com.cognitect.transit.types.charValue(a);\n}, \":\":function(a, b) {\n return com.cognitect.transit.types.keyword(a);\n}, $:function(a, b) {\n return com.cognitect.transit.types.symbol(a);\n}, r:function(a, b) {\n return com.cognitect.transit.types.uri(a);\n}, z:function(a, b) {\n return com.cognitect.transit.types.specialDouble(a);\n}, \"'\":function(a, b) {\n return a;\n}, m:function(a, b) {\n return com.cognitect.transit.types.date(a);\n}, t:function(a, b) {\n return com.cognitect.transit.types.verboseDate(a);\n}, u:function(a, b) {\n return com.cognitect.transit.types.uuid(a);\n}, set:function(a, b) {\n return com.cognitect.transit.types.set(a);\n}, list:function(a, b) {\n return com.cognitect.transit.types.list(a);\n}, link:function(a, b) {\n return com.cognitect.transit.types.link(a);\n}, cmap:function(a, b) {\n return com.cognitect.transit.types.map(a, !1);\n}}, defaultHandler:function(a, b) {\n return com.cognitect.transit.types.taggedValue(a, b);\n}, preferStrings:!0, preferBuffers:!0};\ncom.cognitect.transit.impl.decoder.Decoder.prototype.decode = function(a, b, c, d) {\n if (null == a) {\n return null;\n }\n switch(typeof a) {\n case \"string\":\n return this.decodeString(a, b, c, d);\n case \"object\":\n return com.cognitect.transit.util.isArray(a) ? \"^ \" === a[0] ? this.decodeArrayHash(a, b, c, d) : this.decodeArray(a, b, c, d) : this.decodeHash(a, b, c, d);\n }\n return a;\n};\ncom.cognitect.transit.impl.decoder.Decoder.prototype.decode = com.cognitect.transit.impl.decoder.Decoder.prototype.decode;\ncom.cognitect.transit.impl.decoder.Decoder.prototype.decodeString = function(a, b, c, d) {\n return com.cognitect.transit.caching.isCacheable(a, c) ? (a = this.parseString(a, b, !1), b && b.write(a, c), a) : com.cognitect.transit.caching.isCacheCode(a) ? b.read(a, c) : this.parseString(a, b, c);\n};\ncom.cognitect.transit.impl.decoder.Decoder.prototype.decodeHash = function(a, b, c, d) {\n c = com.cognitect.transit.util.objectKeys(a);\n var e = c[0];\n d = 1 == c.length ? this.decode(e, b, !1, !1) : null;\n if (com.cognitect.transit.impl.decoder.isTag(d)) {\n return a = a[e], c = this.handlers[d.str], null != c ? c(this.decode(a, b, !1, !0), this) : com.cognitect.transit.types.taggedValue(d.str, this.decode(a, b, !1, !1));\n }\n if (this.mapBuilder) {\n if (c.length < 2 * com.cognitect.transit.types.SMALL_ARRAY_MAP_THRESHOLD && this.mapBuilder.fromArray) {\n var f = [];\n for (d = 0; d < c.length; d++) {\n e = c[d], f.push(this.decode(e, b, !0, !1)), f.push(this.decode(a[e], b, !1, !1));\n }\n return this.mapBuilder.fromArray(f, a);\n }\n f = this.mapBuilder.init(a);\n for (d = 0; d < c.length; d++) {\n e = c[d], f = this.mapBuilder.add(f, this.decode(e, b, !0, !1), this.decode(a[e], b, !1, !1), a);\n }\n return this.mapBuilder.finalize(f, a);\n }\n f = [];\n for (d = 0; d < c.length; d++) {\n e = c[d], f.push(this.decode(e, b, !0, !1)), f.push(this.decode(a[e], b, !1, !1));\n }\n return com.cognitect.transit.types.map(f, !1);\n};\ncom.cognitect.transit.impl.decoder.Decoder.prototype.decodeArrayHash = function(a, b, c, d) {\n if (this.mapBuilder) {\n if (a.length < 2 * com.cognitect.transit.types.SMALL_ARRAY_MAP_THRESHOLD + 1 && this.mapBuilder.fromArray) {\n d = [];\n for (c = 1; c < a.length; c += 2) {\n d.push(this.decode(a[c], b, !0, !1)), d.push(this.decode(a[c + 1], b, !1, !1));\n }\n return this.mapBuilder.fromArray(d, a);\n }\n d = this.mapBuilder.init(a);\n for (c = 1; c < a.length; c += 2) {\n d = this.mapBuilder.add(d, this.decode(a[c], b, !0, !1), this.decode(a[c + 1], b, !1, !1), a);\n }\n return this.mapBuilder.finalize(d, a);\n }\n d = [];\n for (c = 1; c < a.length; c += 2) {\n d.push(this.decode(a[c], b, !0, !1)), d.push(this.decode(a[c + 1], b, !1, !1));\n }\n return com.cognitect.transit.types.map(d, !1);\n};\ncom.cognitect.transit.impl.decoder.Decoder.prototype.decodeArray = function(a, b, c, d) {\n if (d) {\n var e = [];\n for (d = 0; d < a.length; d++) {\n e.push(this.decode(a[d], b, c, !1));\n }\n return e;\n }\n e = b && b.idx;\n if (2 === a.length && \"string\" === typeof a[0] && (d = this.decode(a[0], b, !1, !1), com.cognitect.transit.impl.decoder.isTag(d))) {\n return a = a[1], e = this.handlers[d.str], null != e ? e = e(this.decode(a, b, c, !0), this) : com.cognitect.transit.types.taggedValue(d.str, this.decode(a, b, c, !1));\n }\n b && e != b.idx && (b.idx = e);\n if (this.arrayBuilder) {\n if (32 >= a.length && this.arrayBuilder.fromArray) {\n e = [];\n for (d = 0; d < a.length; d++) {\n e.push(this.decode(a[d], b, c, !1));\n }\n return this.arrayBuilder.fromArray(e, a);\n }\n e = this.arrayBuilder.init(a);\n for (d = 0; d < a.length; d++) {\n e = this.arrayBuilder.add(e, this.decode(a[d], b, c, !1), a);\n }\n return this.arrayBuilder.finalize(e, a);\n }\n e = [];\n for (d = 0; d < a.length; d++) {\n e.push(this.decode(a[d], b, c, !1));\n }\n return e;\n};\ncom.cognitect.transit.impl.decoder.Decoder.prototype.parseString = function(a, b, c) {\n if (a.charAt(0) === com.cognitect.transit.delimiters.ESC) {\n b = a.charAt(1);\n if (b === com.cognitect.transit.delimiters.ESC || b === com.cognitect.transit.delimiters.SUB || b === com.cognitect.transit.delimiters.RES) {\n return a.substring(1);\n }\n if (b === com.cognitect.transit.delimiters.TAG) {\n return com.cognitect.transit.impl.decoder.tag(a.substring(2));\n }\n c = this.handlers[b];\n return null == c ? this.defaultHandler(b, a.substring(2)) : c(a.substring(2), this);\n }\n return a;\n};\ncom.cognitect.transit.impl.decoder.decoder = function(a) {\n return new com.cognitect.transit.impl.decoder.Decoder(a);\n};\ncom.cognitect.transit.impl.reader = {};\ncom.cognitect.transit.impl.reader.JSONUnmarshaller = function(a) {\n this.decoder = new com.cognitect.transit.impl.decoder.Decoder(a);\n};\ncom.cognitect.transit.impl.reader.JSONUnmarshaller.prototype.unmarshal = function(a, b) {\n return this.decoder.decode(JSON.parse(a), b);\n};\ncom.cognitect.transit.impl.reader.Reader = function(a, b) {\n this.unmarshaller = a;\n this.options = b || {};\n this.cache = this.options.cache ? this.options.cache : new com.cognitect.transit.caching.ReadCache;\n};\ncom.cognitect.transit.impl.reader.Reader.prototype.read = function(a) {\n a = this.unmarshaller.unmarshal(a, this.cache);\n this.cache.clear();\n return a;\n};\ncom.cognitect.transit.impl.reader.Reader.prototype.read = com.cognitect.transit.impl.reader.Reader.prototype.read;\ncom.cognitect.transit.handlers = {};\ncom.cognitect.transit.handlers.ctorGuid = 0;\ncom.cognitect.transit.handlers.ctorGuidProperty = \"transit$guid$\" + com.cognitect.transit.util.randomUUID();\ncom.cognitect.transit.handlers.typeTag = function(a) {\n if (null == a) {\n return \"null\";\n }\n if (a === String) {\n return \"string\";\n }\n if (a === Boolean) {\n return \"boolean\";\n }\n if (a === Number) {\n return \"number\";\n }\n if (a === Array) {\n return \"array\";\n }\n if (a === Object) {\n return \"map\";\n }\n var b = a[com.cognitect.transit.handlers.ctorGuidProperty];\n null == b && (\"undefined\" != typeof Object.defineProperty ? (b = ++com.cognitect.transit.handlers.ctorGuid, Object.defineProperty(a, com.cognitect.transit.handlers.ctorGuidProperty, {value:b, enumerable:!1})) : a[com.cognitect.transit.handlers.ctorGuidProperty] = b = ++com.cognitect.transit.handlers.ctorGuid);\n return b;\n};\ncom.cognitect.transit.handlers.constructor = function(a) {\n return null == a ? null : a.constructor;\n};\ncom.cognitect.transit.handlers.padZeros = function(a, b) {\n a = a.toString();\n for (var c = a.length; c < b; c++) {\n a = \"0\" + a;\n }\n return a;\n};\ncom.cognitect.transit.handlers.stringableKeys = function(a) {\n a = com.cognitect.transit.util.objectKeys(a);\n for (var b = 0; b < a.length; b++) {\n }\n return !0;\n};\ncom.cognitect.transit.handlers.NilHandler = function() {\n};\ncom.cognitect.transit.handlers.NilHandler.prototype.tag = function(a) {\n return \"_\";\n};\ncom.cognitect.transit.handlers.NilHandler.prototype.rep = function(a) {\n return null;\n};\ncom.cognitect.transit.handlers.NilHandler.prototype.stringRep = function(a) {\n return \"null\";\n};\ncom.cognitect.transit.handlers.StringHandler = function() {\n};\ncom.cognitect.transit.handlers.StringHandler.prototype.tag = function(a) {\n return \"s\";\n};\ncom.cognitect.transit.handlers.StringHandler.prototype.rep = function(a) {\n return a;\n};\ncom.cognitect.transit.handlers.StringHandler.prototype.stringRep = function(a) {\n return a;\n};\ncom.cognitect.transit.handlers.NumberHandler = function() {\n};\ncom.cognitect.transit.handlers.NumberHandler.prototype.tag = function(a) {\n return \"i\";\n};\ncom.cognitect.transit.handlers.NumberHandler.prototype.rep = function(a) {\n return a;\n};\ncom.cognitect.transit.handlers.NumberHandler.prototype.stringRep = function(a) {\n return a.toString();\n};\ncom.cognitect.transit.handlers.IntegerHandler = function() {\n};\ncom.cognitect.transit.handlers.IntegerHandler.prototype.tag = function(a) {\n return \"i\";\n};\ncom.cognitect.transit.handlers.IntegerHandler.prototype.rep = function(a) {\n return a.toString();\n};\ncom.cognitect.transit.handlers.IntegerHandler.prototype.stringRep = function(a) {\n return a.toString();\n};\ncom.cognitect.transit.handlers.BooleanHandler = function() {\n};\ncom.cognitect.transit.handlers.BooleanHandler.prototype.tag = function(a) {\n return \"?\";\n};\ncom.cognitect.transit.handlers.BooleanHandler.prototype.rep = function(a) {\n return a;\n};\ncom.cognitect.transit.handlers.BooleanHandler.prototype.stringRep = function(a) {\n return a.toString();\n};\ncom.cognitect.transit.handlers.ArrayHandler = function() {\n};\ncom.cognitect.transit.handlers.ArrayHandler.prototype.tag = function(a) {\n return \"array\";\n};\ncom.cognitect.transit.handlers.ArrayHandler.prototype.rep = function(a) {\n return a;\n};\ncom.cognitect.transit.handlers.ArrayHandler.prototype.stringRep = function(a) {\n return null;\n};\ncom.cognitect.transit.handlers.MapHandler = function() {\n};\ncom.cognitect.transit.handlers.MapHandler.prototype.tag = function(a) {\n return \"map\";\n};\ncom.cognitect.transit.handlers.MapHandler.prototype.rep = function(a) {\n return a;\n};\ncom.cognitect.transit.handlers.MapHandler.prototype.stringRep = function(a) {\n return null;\n};\ncom.cognitect.transit.handlers.VerboseDateHandler = function() {\n};\ncom.cognitect.transit.handlers.VerboseDateHandler.prototype.tag = function(a) {\n return \"t\";\n};\ncom.cognitect.transit.handlers.VerboseDateHandler.prototype.rep = function(a) {\n return a.getUTCFullYear() + \"-\" + com.cognitect.transit.handlers.padZeros(a.getUTCMonth() + 1, 2) + \"-\" + com.cognitect.transit.handlers.padZeros(a.getUTCDate(), 2) + \"T\" + com.cognitect.transit.handlers.padZeros(a.getUTCHours(), 2) + \":\" + com.cognitect.transit.handlers.padZeros(a.getUTCMinutes(), 2) + \":\" + com.cognitect.transit.handlers.padZeros(a.getUTCSeconds(), 2) + \".\" + com.cognitect.transit.handlers.padZeros(a.getUTCMilliseconds(), 3) + \"Z\";\n};\ncom.cognitect.transit.handlers.VerboseDateHandler.prototype.stringRep = function(a, b) {\n return b.rep(a);\n};\ncom.cognitect.transit.handlers.DateHandler = function() {\n};\ncom.cognitect.transit.handlers.DateHandler.prototype.tag = function(a) {\n return \"m\";\n};\ncom.cognitect.transit.handlers.DateHandler.prototype.rep = function(a) {\n return a.valueOf();\n};\ncom.cognitect.transit.handlers.DateHandler.prototype.stringRep = function(a) {\n return a.valueOf().toString();\n};\ncom.cognitect.transit.handlers.DateHandler.prototype.getVerboseHandler = function(a) {\n return new com.cognitect.transit.handlers.VerboseDateHandler;\n};\ncom.cognitect.transit.handlers.UUIDHandler = function() {\n};\ncom.cognitect.transit.handlers.UUIDHandler.prototype.tag = function(a) {\n return \"u\";\n};\ncom.cognitect.transit.handlers.UUIDHandler.prototype.rep = function(a) {\n return a.toString();\n};\ncom.cognitect.transit.handlers.UUIDHandler.prototype.stringRep = function(a) {\n return a.toString();\n};\ncom.cognitect.transit.handlers.KeywordHandler = function() {\n};\ncom.cognitect.transit.handlers.KeywordHandler.prototype.tag = function(a) {\n return \":\";\n};\ncom.cognitect.transit.handlers.KeywordHandler.prototype.rep = function(a) {\n return a._name;\n};\ncom.cognitect.transit.handlers.KeywordHandler.prototype.stringRep = function(a, b) {\n return b.rep(a);\n};\ncom.cognitect.transit.handlers.SymbolHandler = function() {\n};\ncom.cognitect.transit.handlers.SymbolHandler.prototype.tag = function(a) {\n return \"$\";\n};\ncom.cognitect.transit.handlers.SymbolHandler.prototype.rep = function(a) {\n return a._name;\n};\ncom.cognitect.transit.handlers.SymbolHandler.prototype.stringRep = function(a, b) {\n return b.rep(a);\n};\ncom.cognitect.transit.handlers.TaggedHandler = function() {\n};\ncom.cognitect.transit.handlers.TaggedHandler.prototype.tag = function(a) {\n return a.tag;\n};\ncom.cognitect.transit.handlers.TaggedHandler.prototype.rep = function(a) {\n return a.rep;\n};\ncom.cognitect.transit.handlers.TaggedHandler.prototype.stringRep = function(a, b) {\n return null;\n};\ncom.cognitect.transit.handlers.TransitSetHandler = function() {\n};\ncom.cognitect.transit.handlers.TransitSetHandler.prototype.tag = function(a) {\n return \"set\";\n};\ncom.cognitect.transit.handlers.TransitSetHandler.prototype.rep = function(a) {\n var b = [];\n a.forEach(function(c, d) {\n b.push(c);\n });\n return com.cognitect.transit.types.taggedValue(\"array\", b);\n};\ncom.cognitect.transit.handlers.TransitSetHandler.prototype.stringRep = function(a, b) {\n return null;\n};\ncom.cognitect.transit.handlers.TransitArrayMapHandler = function() {\n};\ncom.cognitect.transit.handlers.TransitArrayMapHandler.prototype.tag = function(a) {\n return \"map\";\n};\ncom.cognitect.transit.handlers.TransitArrayMapHandler.prototype.rep = function(a) {\n return a;\n};\ncom.cognitect.transit.handlers.TransitArrayMapHandler.prototype.stringRep = function(a, b) {\n return null;\n};\ncom.cognitect.transit.handlers.TransitMapHandler = function() {\n};\ncom.cognitect.transit.handlers.TransitMapHandler.prototype.tag = function(a) {\n return \"map\";\n};\ncom.cognitect.transit.handlers.TransitMapHandler.prototype.rep = function(a) {\n return a;\n};\ncom.cognitect.transit.handlers.TransitMapHandler.prototype.stringRep = function(a, b) {\n return null;\n};\ncom.cognitect.transit.handlers.BufferHandler = function() {\n};\ncom.cognitect.transit.handlers.BufferHandler.prototype.tag = function(a) {\n return \"b\";\n};\ncom.cognitect.transit.handlers.BufferHandler.prototype.rep = function(a) {\n return a.toString(\"base64\");\n};\ncom.cognitect.transit.handlers.BufferHandler.prototype.stringRep = function(a, b) {\n return null;\n};\ncom.cognitect.transit.handlers.Uint8ArrayHandler = function() {\n};\ncom.cognitect.transit.handlers.Uint8ArrayHandler.prototype.tag = function(a) {\n return \"b\";\n};\ncom.cognitect.transit.handlers.Uint8ArrayHandler.prototype.rep = function(a) {\n return com.cognitect.transit.util.Uint8ToBase64(a);\n};\ncom.cognitect.transit.handlers.Uint8ArrayHandler.prototype.stringRep = function(a, b) {\n return null;\n};\ncom.cognitect.transit.handlers.defaultHandlers = function(a) {\n a.set(null, new com.cognitect.transit.handlers.NilHandler);\n a.set(String, new com.cognitect.transit.handlers.StringHandler);\n a.set(Number, new com.cognitect.transit.handlers.NumberHandler);\n a.set(module$contents$goog$math$Long_Long, new com.cognitect.transit.handlers.IntegerHandler);\n a.set(Boolean, new com.cognitect.transit.handlers.BooleanHandler);\n a.set(Array, new com.cognitect.transit.handlers.ArrayHandler);\n a.set(Object, new com.cognitect.transit.handlers.MapHandler);\n a.set(Date, new com.cognitect.transit.handlers.DateHandler);\n a.set(com.cognitect.transit.types.UUID, new com.cognitect.transit.handlers.UUIDHandler);\n a.set(com.cognitect.transit.types.Keyword, new com.cognitect.transit.handlers.KeywordHandler);\n a.set(com.cognitect.transit.types.Symbol, new com.cognitect.transit.handlers.SymbolHandler);\n a.set(com.cognitect.transit.types.TaggedValue, new com.cognitect.transit.handlers.TaggedHandler);\n a.set(com.cognitect.transit.types.TransitSet, new com.cognitect.transit.handlers.TransitSetHandler);\n a.set(com.cognitect.transit.types.TransitArrayMap, new com.cognitect.transit.handlers.TransitArrayMapHandler);\n a.set(com.cognitect.transit.types.TransitMap, new com.cognitect.transit.handlers.TransitMapHandler);\n \"undefined\" != typeof goog.global.Buffer && a.set(goog.global.Buffer, new com.cognitect.transit.handlers.BufferHandler);\n \"undefined\" != typeof Uint8Array && a.set(Uint8Array, new com.cognitect.transit.handlers.Uint8ArrayHandler);\n return a;\n};\ncom.cognitect.transit.handlers.Handlers = function() {\n this.handlers = {};\n com.cognitect.transit.handlers.defaultHandlers(this);\n};\ncom.cognitect.transit.handlers.Handlers.prototype.get = function(a) {\n a = \"string\" === typeof a ? this.handlers[a] : this.handlers[com.cognitect.transit.handlers.typeTag(a)];\n return null != a ? a : this.handlers[\"default\"];\n};\ncom.cognitect.transit.handlers.Handlers.prototype.get = com.cognitect.transit.handlers.Handlers.prototype.get;\ncom.cognitect.transit.handlers.validTag = function(a) {\n switch(a) {\n case \"null\":\n case \"string\":\n case \"boolean\":\n case \"number\":\n case \"array\":\n case \"map\":\n return !1;\n }\n return !0;\n};\ncom.cognitect.transit.handlers.Handlers.prototype.set = function(a, b) {\n \"string\" === typeof a && com.cognitect.transit.handlers.validTag(a) ? this.handlers[a] = b : this.handlers[com.cognitect.transit.handlers.typeTag(a)] = b;\n};\ncom.cognitect.transit.impl.writer = {};\ncom.cognitect.transit.impl.writer.escape = function(a) {\n if (0 < a.length) {\n var b = a.charAt(0);\n return b === com.cognitect.transit.delimiters.ESC || b === com.cognitect.transit.delimiters.SUB || b === com.cognitect.transit.delimiters.RES ? com.cognitect.transit.delimiters.ESC + a : a;\n }\n return a;\n};\ncom.cognitect.transit.impl.writer.JSONMarshaller = function(a) {\n this.opts = a || {};\n this.preferStrings = null != this.opts.preferStrings ? this.opts.preferStrings : !0;\n this.objectBuilder = this.opts.objectBuilder || null;\n this.transform = this.opts.transform || null;\n this.handlers = new com.cognitect.transit.handlers.Handlers;\n if (a = this.opts.handlers) {\n if (com.cognitect.transit.util.isArray(a) || !a.forEach) {\n throw Error('transit writer \"handlers\" option must be a map');\n }\n var b = this;\n a.forEach(function(c, d) {\n if (void 0 !== d) {\n b.handlers.set(d, c);\n } else {\n throw Error(\"Cannot create handler for JavaScript undefined\");\n }\n });\n }\n this.handlerForForeign = this.opts.handlerForForeign;\n this.unpack = this.opts.unpack || function(c) {\n return com.cognitect.transit.types.isArrayMap(c) && null === c.backingMap ? c._entries : !1;\n };\n this.verbose = this.opts && this.opts.verbose || !1;\n};\ncom.cognitect.transit.impl.writer.JSONMarshaller.prototype.handler = function(a) {\n var b = this.handlers.get(com.cognitect.transit.handlers.constructor(a));\n return null != b ? b : (a = a && a.transitTag) ? this.handlers.get(a) : null;\n};\ncom.cognitect.transit.impl.writer.JSONMarshaller.prototype.registerHandler = function(a, b) {\n this.handlers.set(a, b);\n};\ncom.cognitect.transit.impl.writer.JSONMarshaller.prototype.emitNil = function(a, b) {\n return a ? this.emitString(com.cognitect.transit.delimiters.ESC, \"_\", \"\", a, b) : null;\n};\ncom.cognitect.transit.impl.writer.JSONMarshaller.prototype.emitString = function(a, b, c, d, e) {\n a = a + b + c;\n return e ? e.write(a, d) : a;\n};\ncom.cognitect.transit.impl.writer.JSONMarshaller.prototype.emitBoolean = function(a, b, c) {\n return b ? this.emitString(com.cognitect.transit.delimiters.ESC, \"?\", a.toString()[0], b, c) : a;\n};\ncom.cognitect.transit.impl.writer.JSONMarshaller.prototype.emitInteger = function(a, b, c) {\n return Infinity === a ? this.emitString(com.cognitect.transit.delimiters.ESC, \"z\", \"INF\", b, c) : -Infinity === a ? this.emitString(com.cognitect.transit.delimiters.ESC, \"z\", \"-INF\", b, c) : isNaN(a) ? this.emitString(com.cognitect.transit.delimiters.ESC, \"z\", \"NaN\", b, c) : b || \"string\" === typeof a || a instanceof module$contents$goog$math$Long_Long ? this.emitString(com.cognitect.transit.delimiters.ESC, \"i\", a.toString(), b, c) : a;\n};\ncom.cognitect.transit.impl.writer.JSONMarshaller.prototype.emitDouble = function(a, b, c) {\n return b ? this.emitString(a.ESC, \"d\", a, b, c) : a;\n};\ncom.cognitect.transit.impl.writer.JSONMarshaller.prototype.emitBinary = function(a, b, c) {\n return this.emitString(com.cognitect.transit.delimiters.ESC, \"b\", a, b, c);\n};\ncom.cognitect.transit.impl.writer.JSONMarshaller.prototype.emitQuoted = function(a, b, c) {\n if (a.verbose) {\n a = {};\n var d = this.emitString(com.cognitect.transit.delimiters.ESC_TAG, \"'\", \"\", !0, c);\n a[d] = com.cognitect.transit.impl.writer.marshal(this, b, !1, c);\n return a;\n }\n return [this.emitString(com.cognitect.transit.delimiters.ESC_TAG, \"'\", \"\", !0, c), com.cognitect.transit.impl.writer.marshal(this, b, !1, c)];\n};\ncom.cognitect.transit.impl.writer.emitObjects = function(a, b, c) {\n var d = [];\n if (com.cognitect.transit.util.isArray(b)) {\n for (var e = 0; e < b.length; e++) {\n d.push(com.cognitect.transit.impl.writer.marshal(a, b[e], !1, c));\n }\n } else {\n b.forEach(function(f, g) {\n d.push(com.cognitect.transit.impl.writer.marshal(a, f, !1, c));\n });\n }\n return d;\n};\ncom.cognitect.transit.impl.writer.emitArray = function(a, b, c, d) {\n return com.cognitect.transit.impl.writer.emitObjects(a, b, d);\n};\ncom.cognitect.transit.impl.writer.isStringableKey = function(a, b) {\n return \"string\" !== typeof b ? (a = a.handler(b)) && 1 === a.tag(b).length : !0;\n};\ncom.cognitect.transit.impl.writer.stringableKeys = function(a, b) {\n var c = a.unpack(b), d = !0;\n if (c) {\n for (b = 0; b < c.length && (d = com.cognitect.transit.impl.writer.isStringableKey(a, c[b]), d); b += 2) {\n }\n return d;\n }\n if (b.keys) {\n c = b.keys();\n var e = null;\n if (c.next) {\n for (e = c.next(); !e.done;) {\n d = com.cognitect.transit.impl.writer.isStringableKey(a, e.value);\n if (!d) {\n break;\n }\n e = c.next();\n }\n return d;\n }\n }\n if (b.forEach) {\n return b.forEach(function(f, g) {\n d = d && com.cognitect.transit.impl.writer.isStringableKey(a, g);\n }), d;\n }\n throw Error(\"Cannot walk keys of object type \" + com.cognitect.transit.handlers.constructor(b).name);\n};\ncom.cognitect.transit.impl.writer.isForeignObject = function(a) {\n if (a.constructor.transit$isObject) {\n return !0;\n }\n var b = a.constructor.toString();\n b = b.substr(9);\n b = b.substr(0, b.indexOf(\"(\"));\n b = \"Object\" == b;\n \"undefined\" != typeof Object.defineProperty ? Object.defineProperty(a.constructor, \"transit$isObject\", {value:b, enumerable:!1}) : a.constructor.transit$isObject = b;\n return b;\n};\ncom.cognitect.transit.impl.writer.emitMap = function(a, b, c, d) {\n var e = null, f = null, g = null;\n e = null;\n c = 0;\n if (b.constructor === Object || null != b.forEach || a.handlerForForeign && com.cognitect.transit.impl.writer.isForeignObject(b)) {\n if (a.verbose) {\n if (null != b.forEach) {\n if (com.cognitect.transit.impl.writer.stringableKeys(a, b)) {\n var h = {};\n b.forEach(function(k, l) {\n h[com.cognitect.transit.impl.writer.marshal(a, l, !0, !1)] = com.cognitect.transit.impl.writer.marshal(a, k, !1, d);\n });\n } else {\n e = a.unpack(b);\n f = [];\n g = a.emitString(com.cognitect.transit.delimiters.ESC_TAG, \"cmap\", \"\", !0, d);\n if (e) {\n for (; c < e.length; c += 2) {\n f.push(com.cognitect.transit.impl.writer.marshal(a, e[c], !1, !1)), f.push(com.cognitect.transit.impl.writer.marshal(a, e[c + 1], !1, d));\n }\n } else {\n b.forEach(function(k, l) {\n f.push(com.cognitect.transit.impl.writer.marshal(a, l, !1, !1));\n f.push(com.cognitect.transit.impl.writer.marshal(a, k, !1, d));\n });\n }\n h = {};\n h[g] = f;\n }\n } else {\n for (e = com.cognitect.transit.util.objectKeys(b), h = {}; c < e.length; c++) {\n h[com.cognitect.transit.impl.writer.marshal(a, e[c], !0, !1)] = com.cognitect.transit.impl.writer.marshal(a, b[e[c]], !1, d);\n }\n }\n return h;\n }\n if (null != b.forEach) {\n if (com.cognitect.transit.impl.writer.stringableKeys(a, b)) {\n e = a.unpack(b);\n h = [\"^ \"];\n if (e) {\n for (; c < e.length; c += 2) {\n h.push(com.cognitect.transit.impl.writer.marshal(a, e[c], !0, d)), h.push(com.cognitect.transit.impl.writer.marshal(a, e[c + 1], !1, d));\n }\n } else {\n b.forEach(function(k, l) {\n h.push(com.cognitect.transit.impl.writer.marshal(a, l, !0, d));\n h.push(com.cognitect.transit.impl.writer.marshal(a, k, !1, d));\n });\n }\n return h;\n }\n e = a.unpack(b);\n f = [];\n g = a.emitString(com.cognitect.transit.delimiters.ESC_TAG, \"cmap\", \"\", !0, d);\n if (e) {\n for (; c < e.length; c += 2) {\n f.push(com.cognitect.transit.impl.writer.marshal(a, e[c], !1, d)), f.push(com.cognitect.transit.impl.writer.marshal(a, e[c + 1], !1, d));\n }\n } else {\n b.forEach(function(k, l) {\n f.push(com.cognitect.transit.impl.writer.marshal(a, l, !1, d));\n f.push(com.cognitect.transit.impl.writer.marshal(a, k, !1, d));\n });\n }\n return [g, f];\n }\n h = [\"^ \"];\n for (e = com.cognitect.transit.util.objectKeys(b); c < e.length; c++) {\n h.push(com.cognitect.transit.impl.writer.marshal(a, e[c], !0, d)), h.push(com.cognitect.transit.impl.writer.marshal(a, b[e[c]], !1, d));\n }\n return h;\n }\n if (null != a.objectBuilder) {\n return a.objectBuilder(b, function(k) {\n return com.cognitect.transit.impl.writer.marshal(a, k, !0, d);\n }, function(k) {\n return com.cognitect.transit.impl.writer.marshal(a, k, !1, d);\n });\n }\n c = com.cognitect.transit.handlers.constructor(b).name;\n e = Error(\"Cannot write \" + c);\n e.data = {obj:b, type:c};\n throw e;\n};\ncom.cognitect.transit.impl.writer.emitTaggedMap = function(a, b, c, d, e) {\n return a.verbose ? (d = {}, d[a.emitString(com.cognitect.transit.delimiters.ESC_TAG, b, \"\", !0, e)] = com.cognitect.transit.impl.writer.marshal(a, c, !1, e), d) : [a.emitString(com.cognitect.transit.delimiters.ESC_TAG, b, \"\", !0, e), com.cognitect.transit.impl.writer.marshal(a, c, !1, e)];\n};\ncom.cognitect.transit.impl.writer.emitEncoded = function(a, b, c, d, e, f, g) {\n if (1 === c.length) {\n if (\"string\" === typeof d) {\n return a.emitString(com.cognitect.transit.delimiters.ESC, c, d, f, g);\n }\n if (f || a.preferStrings) {\n (d = a.verbose && b.getVerboseHandler()) ? (c = d.tag(e), d = d.stringRep(e, d)) : d = b.stringRep(e, b);\n if (null !== d) {\n return a.emitString(com.cognitect.transit.delimiters.ESC, c, d, f, g);\n }\n a = Error('Tag \"' + c + '\" cannot be encoded as string');\n a.data = {tag:c, rep:d, obj:e};\n throw a;\n }\n }\n return com.cognitect.transit.impl.writer.emitTaggedMap(a, c, d, f, g);\n};\ncom.cognitect.transit.impl.writer.marshal = function(a, b, c, d) {\n null !== a.transform && (b = a.transform(b));\n var e = a.handler(b) || (a.handlerForForeign ? a.handlerForForeign(b, a.handlers) : null), f = e ? e.tag(b) : null, g = e ? e.rep(b) : null;\n if (null != e && null != f) {\n switch(f) {\n case \"_\":\n return a.emitNil(c, d);\n case \"s\":\n return a.emitString(\"\", \"\", com.cognitect.transit.impl.writer.escape(g), c, d);\n case \"?\":\n return a.emitBoolean(g, c, d);\n case \"i\":\n return a.emitInteger(g, c, d);\n case \"d\":\n return a.emitDouble(g, c, d);\n case \"b\":\n return a.emitBinary(g, c, d);\n case \"'\":\n return a.emitQuoted(a, g, d);\n case \"array\":\n return com.cognitect.transit.impl.writer.emitArray(a, g, c, d);\n case \"map\":\n return com.cognitect.transit.impl.writer.emitMap(a, g, c, d);\n default:\n return com.cognitect.transit.impl.writer.emitEncoded(a, e, f, g, b, c, d);\n }\n } else {\n throw a = com.cognitect.transit.handlers.constructor(b).name, c = Error(\"Cannot write \" + a), c.data = {obj:b, type:a}, c;\n }\n};\ncom.cognitect.transit.impl.writer.maybeQuoted = function(a, b) {\n a = a.handler(b) || (a.handlerForForeign ? a.handlerForForeign(b, a.handlers) : null);\n if (null != a) {\n return 1 === a.tag(b).length ? com.cognitect.transit.types.quoted(b) : b;\n }\n a = com.cognitect.transit.handlers.constructor(b).name;\n var c = Error(\"Cannot write \" + a);\n c.data = {obj:b, type:a};\n throw c;\n};\ncom.cognitect.transit.impl.writer.marshalTop = function(a, b, c, d) {\n return JSON.stringify(com.cognitect.transit.impl.writer.marshal(a, com.cognitect.transit.impl.writer.maybeQuoted(a, b), c, d));\n};\ncom.cognitect.transit.impl.writer.Writer = function(a, b) {\n this._marshaller = a;\n this.options = b || {};\n this.cache = !1 === this.options.cache ? null : this.options.cache ? this.options.cache : new com.cognitect.transit.caching.WriteCache;\n};\ncom.cognitect.transit.impl.writer.Writer.prototype.marshaller = function() {\n return this._marshaller;\n};\ncom.cognitect.transit.impl.writer.Writer.prototype.marshaller = com.cognitect.transit.impl.writer.Writer.prototype.marshaller;\ncom.cognitect.transit.impl.writer.Writer.prototype.write = function(a, b) {\n b = b || {};\n var c = b.asMapKey || !1, d = this._marshaller.verbose ? !1 : this.cache;\n a = !1 === b.marshalTop ? com.cognitect.transit.impl.writer.marshal(this._marshaller, a, c, d) : com.cognitect.transit.impl.writer.marshalTop(this._marshaller, a, c, d);\n null != this.cache && this.cache.clear();\n return a;\n};\ncom.cognitect.transit.impl.writer.Writer.prototype.write = com.cognitect.transit.impl.writer.Writer.prototype.write;\ncom.cognitect.transit.impl.writer.Writer.prototype.register = function(a, b) {\n this._marshaller.registerHandler(a, b);\n};\ncom.cognitect.transit.impl.writer.Writer.prototype.register = com.cognitect.transit.impl.writer.Writer.prototype.register;\nvar TRANSIT_DEV = !0, TRANSIT_NODE_TARGET = !0, TRANSIT_BROWSER_TARGET = !1, TRANSIT_BROWSER_AMD_TARGET = !1;\ncom.cognitect.transit.reader = function(a, b) {\n if (\"json\" === a || \"json-verbose\" === a || null == a) {\n return a = new com.cognitect.transit.impl.reader.JSONUnmarshaller(b), new com.cognitect.transit.impl.reader.Reader(a, b);\n }\n throw Error(\"Cannot create reader of type \" + a);\n};\ncom.cognitect.transit.writer = function(a, b) {\n if (\"json\" === a || \"json-verbose\" === a || null == a) {\n return \"json-verbose\" === a && (null == b && (b = {}), b.verbose = !0), a = new com.cognitect.transit.impl.writer.JSONMarshaller(b), new com.cognitect.transit.impl.writer.Writer(a, b);\n }\n b = Error('Type must be \"json\"');\n b.data = {type:a};\n throw b;\n};\ncom.cognitect.transit.makeWriteHandler = function(a) {\n var b = function() {\n };\n b.prototype.tag = a.tag;\n b.prototype.rep = a.rep;\n b.prototype.stringRep = a.stringRep;\n b.prototype.getVerboseHandler = a.getVerboseHandler;\n return new b;\n};\ncom.cognitect.transit.makeBuilder = function(a) {\n var b = function() {\n };\n b.prototype.init = a.init;\n b.prototype.add = a.add;\n b.prototype.finalize = a.finalize;\n b.prototype.fromArray = a.fromArray;\n return new b;\n};\ncom.cognitect.transit.date = com.cognitect.transit.types.date;\ncom.cognitect.transit.integer = com.cognitect.transit.types.intValue;\ncom.cognitect.transit.isInteger = com.cognitect.transit.types.isInteger;\ncom.cognitect.transit.uuid = com.cognitect.transit.types.uuid;\ncom.cognitect.transit.isUUID = com.cognitect.transit.types.isUUID;\ncom.cognitect.transit.bigInt = com.cognitect.transit.types.bigInteger;\ncom.cognitect.transit.isBigInt = com.cognitect.transit.types.isBigInteger;\ncom.cognitect.transit.bigDec = com.cognitect.transit.types.bigDecimalValue;\ncom.cognitect.transit.isBigDec = com.cognitect.transit.types.isBigDecimal;\ncom.cognitect.transit.keyword = com.cognitect.transit.types.keyword;\ncom.cognitect.transit.isKeyword = com.cognitect.transit.types.isKeyword;\ncom.cognitect.transit.symbol = com.cognitect.transit.types.symbol;\ncom.cognitect.transit.isSymbol = com.cognitect.transit.types.isSymbol;\ncom.cognitect.transit.binary = com.cognitect.transit.types.binary;\ncom.cognitect.transit.isBinary = com.cognitect.transit.types.isBinary;\ncom.cognitect.transit.uri = com.cognitect.transit.types.uri;\ncom.cognitect.transit.isURI = com.cognitect.transit.types.isURI;\ncom.cognitect.transit.map = com.cognitect.transit.types.map;\ncom.cognitect.transit.isMap = com.cognitect.transit.types.isMap;\ncom.cognitect.transit.set = com.cognitect.transit.types.set;\ncom.cognitect.transit.isSet = com.cognitect.transit.types.isSet;\ncom.cognitect.transit.list = com.cognitect.transit.types.list;\ncom.cognitect.transit.isList = com.cognitect.transit.types.isList;\ncom.cognitect.transit.quoted = com.cognitect.transit.types.quoted;\ncom.cognitect.transit.isQuoted = com.cognitect.transit.types.isQuoted;\ncom.cognitect.transit.tagged = com.cognitect.transit.types.taggedValue;\ncom.cognitect.transit.isTaggedValue = com.cognitect.transit.types.isTaggedValue;\ncom.cognitect.transit.link = com.cognitect.transit.types.link;\ncom.cognitect.transit.isLink = com.cognitect.transit.types.isLink;\ncom.cognitect.transit.hash = com.cognitect.transit.eq.hashCode;\ncom.cognitect.transit.hashMapLike = com.cognitect.transit.eq.hashMapLike;\ncom.cognitect.transit.hashArrayLike = com.cognitect.transit.eq.hashArrayLike;\ncom.cognitect.transit.equals = com.cognitect.transit.eq.equals;\ncom.cognitect.transit.extendToEQ = com.cognitect.transit.eq.extendToEQ;\ncom.cognitect.transit.mapToObject = function(a) {\n var b = {};\n a.forEach(function(c, d) {\n if (\"string\" !== typeof d) {\n throw Error(\"Cannot convert map with non-string keys\");\n }\n b[d] = c;\n });\n return b;\n};\ncom.cognitect.transit.objectToMap = function(a) {\n var b = com.cognitect.transit.map(), c;\n for (c in a) {\n a.hasOwnProperty(c) && b.set(c, a[c]);\n }\n return b;\n};\ncom.cognitect.transit.decoder = com.cognitect.transit.impl.decoder.decoder;\ncom.cognitect.transit.readCache = com.cognitect.transit.caching.readCache;\ncom.cognitect.transit.writeCache = com.cognitect.transit.caching.writeCache;\ncom.cognitect.transit.UUIDfromString = com.cognitect.transit.types.UUIDfromString;\ncom.cognitect.transit.randomUUID = com.cognitect.transit.util.randomUUID;\ncom.cognitect.transit.stringableKeys = com.cognitect.transit.impl.writer.stringableKeys;\nTRANSIT_BROWSER_TARGET && (goog.exportSymbol(\"transit.reader\", com.cognitect.transit.reader), goog.exportSymbol(\"transit.writer\", com.cognitect.transit.writer), goog.exportSymbol(\"transit.makeBuilder\", com.cognitect.transit.makeBuilder), goog.exportSymbol(\"transit.makeWriteHandler\", com.cognitect.transit.makeWriteHandler), goog.exportSymbol(\"transit.date\", com.cognitect.transit.types.date), goog.exportSymbol(\"transit.integer\", com.cognitect.transit.types.intValue), goog.exportSymbol(\"transit.isInteger\", \ncom.cognitect.transit.types.isInteger), goog.exportSymbol(\"transit.uuid\", com.cognitect.transit.types.uuid), goog.exportSymbol(\"transit.isUUID\", com.cognitect.transit.types.isUUID), goog.exportSymbol(\"transit.bigInt\", com.cognitect.transit.types.bigInteger), goog.exportSymbol(\"transit.isBigInt\", com.cognitect.transit.types.isBigInteger), goog.exportSymbol(\"transit.bigDec\", com.cognitect.transit.types.bigDecimalValue), goog.exportSymbol(\"transit.isBigDec\", com.cognitect.transit.types.isBigDecimal), \ngoog.exportSymbol(\"transit.keyword\", com.cognitect.transit.types.keyword), goog.exportSymbol(\"transit.isKeyword\", com.cognitect.transit.types.isKeyword), goog.exportSymbol(\"transit.symbol\", com.cognitect.transit.types.symbol), goog.exportSymbol(\"transit.isSymbol\", com.cognitect.transit.types.isSymbol), goog.exportSymbol(\"transit.binary\", com.cognitect.transit.types.binary), goog.exportSymbol(\"transit.isBinary\", com.cognitect.transit.types.isBinary), goog.exportSymbol(\"transit.uri\", com.cognitect.transit.types.uri), \ngoog.exportSymbol(\"transit.isURI\", com.cognitect.transit.types.isURI), goog.exportSymbol(\"transit.map\", com.cognitect.transit.types.map), goog.exportSymbol(\"transit.isMap\", com.cognitect.transit.types.isMap), goog.exportSymbol(\"transit.set\", com.cognitect.transit.types.set), goog.exportSymbol(\"transit.isSet\", com.cognitect.transit.types.isSet), goog.exportSymbol(\"transit.list\", com.cognitect.transit.types.list), goog.exportSymbol(\"transit.isList\", com.cognitect.transit.types.isList), goog.exportSymbol(\"transit.quoted\", \ncom.cognitect.transit.types.quoted), goog.exportSymbol(\"transit.isQuoted\", com.cognitect.transit.types.isQuoted), goog.exportSymbol(\"transit.tagged\", com.cognitect.transit.types.taggedValue), goog.exportSymbol(\"transit.isTaggedValue\", com.cognitect.transit.types.isTaggedValue), goog.exportSymbol(\"transit.link\", com.cognitect.transit.types.link), goog.exportSymbol(\"transit.isLink\", com.cognitect.transit.types.isLink), goog.exportSymbol(\"transit.hash\", com.cognitect.transit.eq.hashCode), goog.exportSymbol(\"transit.hashMapLike\", \ncom.cognitect.transit.eq.hashMapLike), goog.exportSymbol(\"transit.hashArrayLike\", com.cognitect.transit.eq.hashArrayLike), goog.exportSymbol(\"transit.equals\", com.cognitect.transit.eq.equals), goog.exportSymbol(\"transit.extendToEQ\", com.cognitect.transit.eq.extendToEQ), goog.exportSymbol(\"transit.mapToObject\", com.cognitect.transit.mapToObject), goog.exportSymbol(\"transit.objectToMap\", com.cognitect.transit.objectToMap), goog.exportSymbol(\"transit.decoder\", com.cognitect.transit.impl.decoder.decoder), \ngoog.exportSymbol(\"transit.UUIDfromString\", com.cognitect.transit.types.UUIDfromString), goog.exportSymbol(\"transit.randomUUID\", com.cognitect.transit.util.randomUUID), goog.exportSymbol(\"transit.stringableKeys\", com.cognitect.transit.impl.writer.stringableKeys), goog.exportSymbol(\"transit.readCache\", com.cognitect.transit.caching.readCache), goog.exportSymbol(\"transit.writeCache\", com.cognitect.transit.caching.writeCache));\nTRANSIT_NODE_TARGET && (module.exports = {reader:com.cognitect.transit.reader, writer:com.cognitect.transit.writer, makeBuilder:com.cognitect.transit.makeBuilder, makeWriteHandler:com.cognitect.transit.makeWriteHandler, date:com.cognitect.transit.types.date, integer:com.cognitect.transit.types.intValue, isInteger:com.cognitect.transit.types.isInteger, uuid:com.cognitect.transit.types.uuid, isUUID:com.cognitect.transit.types.isUUID, bigInt:com.cognitect.transit.types.bigInteger, isBigInt:com.cognitect.transit.types.isBigInteger, \nbigDec:com.cognitect.transit.types.bigDecimalValue, isBigDec:com.cognitect.transit.types.isBigDecimal, keyword:com.cognitect.transit.types.keyword, isKeyword:com.cognitect.transit.types.isKeyword, symbol:com.cognitect.transit.types.symbol, isSymbol:com.cognitect.transit.types.isSymbol, binary:com.cognitect.transit.types.binary, isBinary:com.cognitect.transit.types.isBinary, uri:com.cognitect.transit.types.uri, isURI:com.cognitect.transit.types.isURI, map:com.cognitect.transit.types.map, isMap:com.cognitect.transit.types.isMap, \nset:com.cognitect.transit.types.set, isSet:com.cognitect.transit.types.isSet, list:com.cognitect.transit.types.list, isList:com.cognitect.transit.types.isList, quoted:com.cognitect.transit.types.quoted, isQuoted:com.cognitect.transit.types.isQuoted, tagged:com.cognitect.transit.types.taggedValue, isTaggedValue:com.cognitect.transit.types.isTaggedValue, link:com.cognitect.transit.types.link, isLink:com.cognitect.transit.types.isLink, hash:com.cognitect.transit.eq.hashCode, hashArrayLike:com.cognitect.transit.eq.hashArrayLike, \nhashMapLike:com.cognitect.transit.eq.hashMapLike, equals:com.cognitect.transit.eq.equals, extendToEQ:com.cognitect.transit.eq.extendToEQ, mapToObject:com.cognitect.transit.mapToObject, objectToMap:com.cognitect.transit.objectToMap, decoder:com.cognitect.transit.impl.decoder.decoder, UUIDfromString:com.cognitect.transit.types.UUIDfromString, randomUUID:com.cognitect.transit.util.randomUUID, stringableKeys:com.cognitect.transit.impl.writer.stringableKeys, readCache:com.cognitect.transit.caching.readCache, \nwriteCache:com.cognitect.transit.caching.writeCache});\n\n","/**\n * @fileoverview Provides the AssetsApi class for interacting with the Sharetribe Asset Delivery API.\n * This class includes methods to retrieve assets by alias or version.\n *\n * For more information, refer to the Asset Delivery API reference:\n * https://www.sharetribe.com/api-reference/asset-delivery-api.html\n */\n\nimport SharetribeSdk from \"../../sdk\";\nimport { AxiosInstance, AxiosResponse } from \"axios\";\nimport {\n AssetByAliasParameter,\n AssetByVersionParameter,\n AssetResponse,\n AssetsByAliasParameter,\n AssetsByVersionParameter,\n} from \"../../types/assets\";\n\n/**\n * Extracts the common path and asset names from a list of paths.\n *\n * @param {string[]} paths - The list of asset paths.\n * @returns {{commonPath: string, assets: string[]}} - An object containing the common path and an array of asset names.\n * @throws {Error} If the paths do not share a common prefix.\n */\nconst extractCommonPathAndAssets = (paths: string[]) => {\n let commonPath: string = \"\";\n const assets: string[] = [];\n paths.forEach((path) => {\n const prefix = path.split(\"/\")[0];\n const asset = path.split(\"/\")[1];\n if (!commonPath) {\n commonPath = prefix;\n } else if (commonPath !== prefix) {\n throw new Error(\"All paths should have the same prefix\");\n }\n assets.push(asset);\n });\n return { commonPath, assets };\n};\n\n/**\n * Class representing the Assets API for interacting with the Sharetribe Asset Delivery API.\n */\nclass AssetsApi {\n axios: AxiosInstance;\n endpoint: string;\n headers: Record<string, string>;\n\n /**\n * Creates an instance of AssetsApi.\n *\n * @param {SharetribeSdk} sdk - The Sharetribe SDK instance for configuration and request handling.\n */\n constructor(sdk: SharetribeSdk) {\n const config = sdk.apisConfigs.assets(sdk.sdkConfig);\n this.endpoint = config.baseUrl + `/pub/${sdk.sdkConfig.clientId}`;\n this.headers = config.headers;\n this.axios = sdk.axios;\n }\n\n /**\n * Retrieves a single asset by alias.\n *\n * @template P\n * @param {P & AssetByAliasParameter} params - Parameters including alias and path for the asset.\n * @returns {Promise<AssetResponse<'assetByAlias', P>>} - A promise resolving to the asset response.\n * @throws {Error} If the path starts with a leading slash.\n */\n async assetByAlias<P extends AssetByAliasParameter>(\n params: P\n ): Promise<AxiosResponse<AssetResponse<\"assetByAlias\", P>>> {\n if (params.path.startsWith(\"/\")) {\n throw new Error(\"Path should not start with /\");\n }\n return await this.axios.get<AssetResponse<\"assetByAlias\", P>>(\n this.endpoint + `/a/${params.alias}/${params.path}`,\n {\n headers: this.headers,\n }\n );\n }\n\n /**\n * Retrieves multiple assets by alias.\n *\n * @template P\n * @param {P & AssetsByAliasParameter} params - Parameters including alias and paths for the assets.\n * @returns {Promise<AssetResponse<'assetsByAlias', P>>} - A promise resolving to the assets response.\n * @throws {Error} If any path starts with a leading slash or if paths are empty.\n */\n async assetsByAlias<P extends AssetsByAliasParameter>(\n params: P\n ): Promise<AxiosResponse<AssetResponse<\"assetsByAlias\", P>>> {\n if (params.paths.some((path) => path.startsWith(\"/\"))) {\n throw new Error(\"Path should not start with /\");\n }\n const { commonPath, assets } = extractCommonPathAndAssets(params.paths);\n if (!commonPath) {\n throw new Error(\"Paths should not be empty\");\n }\n return await this.axios.get<AssetResponse<\"assetsByAlias\", P>>(\n this.endpoint + `/a/${params.alias}/${commonPath}/`,\n {\n headers: this.headers,\n params: {\n assets: assets,\n },\n }\n );\n }\n\n /**\n * Retrieves a single asset by version.\n *\n * @template P\n * @param {P & AssetByVersionParameter} params - Parameters including version and path for the asset.\n * @returns {Promise<AssetResponse<'assetByVersion', P>>} - A promise resolving to the asset response.\n * @throws {Error} If the path starts with a leading slash.\n */\n async assetByVersion<P extends AssetByVersionParameter>(\n params: P\n ): Promise<AxiosResponse<AssetResponse<\"assetByVersion\", P>>> {\n if (params.path.startsWith(\"/\")) {\n throw new Error(\"Path should not start with /\");\n }\n return await this.axios.get<AssetResponse<\"assetByVersion\", P>>(\n this.endpoint + `/v/${params.version}/${params.path}`,\n {\n headers: this.headers,\n }\n );\n }\n\n /**\n * Retrieves multiple assets by version.\n *\n * @template P\n * @param {P & AssetsByVersionParameter} params - Parameters including version and paths for the assets.\n * @returns {Promise<AssetResponse<'assetsByVersion', P>>} - A promise resolving to the assets response.\n * @throws {Error} If any path starts with a leading slash.\n */\n async assetsByVersion<P extends AssetsByVersionParameter>(\n params: P\n ): Promise<AxiosResponse<AssetResponse<\"assetsByVersion\", P>>> {\n if (params.paths.some((path) => path.startsWith(\"/\"))) {\n throw new Error(\"Path should not start with /\");\n }\n const { commonPath, assets } = extractCommonPathAndAssets(params.paths);\n return await this.axios.get<AssetResponse<\"assetsByVersion\", P>>(\n this.endpoint + `/v/${params.version}/${commonPath}/`,\n {\n headers: this.headers,\n params: {\n paths: assets,\n },\n }\n );\n }\n}\n\nexport default AssetsApi;\n","/**\n * @fileoverview Provides the AuthenticationApi class for interacting with the Sharetribe Authentication API.\n * This class includes methods to obtain and manage access tokens for authenticating requests to the Marketplace API and Integration API.\n *\n * For more information, refer to the Authentication API reference:\n * https://www.sharetribe.com/api-reference/authentication.html\n */\n\nimport {\n AuthWithIdpParameter,\n Endpoint,\n RevokeResponse,\n ScopeType,\n TokenResponse,\n} from \"../../types/authentication\";\nimport { AxiosInstance, AxiosResponse } from \"axios\";\nimport SharetribeSdk from \"../../sdk\";\nimport IntegrationSdk from \"../../integrationSdk\";\n\n/**\n * Converts an object to URL-encoded form data string.\n * Properly handles nested objects, arrays, and special types.\n *\n * @param {Record<string, any> | void} obj - The object to convert\n * @returns {string} URL-encoded form data string\n */\nexport function urlEncodeFormData(\n obj: Record<string, any> | null | undefined | void\n): string {\n if (!obj) {\n return \"\";\n }\n\n return Object.keys(obj)\n .map((key) => {\n const value = obj[key];\n if (value === undefined || value === null) {\n return \"\";\n }\n\n const encodedKey = encodeURIComponent(key);\n let encodedValue: string;\n\n // Handle different value types\n if (typeof value === \"object\") {\n if (Array.isArray(value)) {\n // Handle arrays by joining with commas\n encodedValue = encodeURIComponent(value.join(\",\"));\n } else {\n // Handle objects by JSON stringifying\n encodedValue = encodeURIComponent(JSON.stringify(value));\n }\n } else {\n // Handle primitive values (string, number, boolean)\n encodedValue = encodeURIComponent(String(value));\n }\n\n return `${encodedKey}=${encodedValue}`;\n })\n .filter(Boolean) // Remove empty strings\n .join(\"&\");\n}\n\n/**\n * Class representing the Authentication API for obtaining and managing access tokens.\n *\n * The Authentication API follows the OAuth2 framework and supports various grant types to issue tokens for authenticating requests.\n *\n * @see https://www.sharetribe.com/api-reference/authentication.html\n */\nclass AuthenticationApi {\n private readonly endpoint: string;\n private readonly headers: Record<string, string>;\n private axios: AxiosInstance;\n\n /**\n * Creates an instance of AuthenticationApi.\n *\n * @param {SharetribeSdk | IntegrationSdk} sdk - The Sharetribe SDK or Integration SDK instance for configuration and request handling.\n */\n constructor(sdk: SharetribeSdk | IntegrationSdk) {\n const config = sdk.apisConfigs.auth(sdk.sdkConfig);\n this.endpoint = config.baseUrl;\n this.headers = config.headers;\n this.axios = sdk.axios;\n }\n\n /**\n * Obtains an access token using the specified grant type and parameters.\n *\n * @template S\n * @param {Endpoint<S>} params - Parameters including grant type and necessary credentials.\n * @returns {Promise<TokenResponse<S>>} - A promise resolving to the token response.\n */\n async token<S extends ScopeType>(\n params: Endpoint<S>\n ): Promise<AxiosResponse<TokenResponse<S>>> {\n return this.axios.post<TokenResponse<S>>(\n `${this.endpoint}/token`,\n urlEncodeFormData(params),\n { headers: this.headers }\n );\n }\n\n /**\n * Authenticates a user using an external identity provider (IdP) and obtains an access token.\n *\n * @param {AuthWithIdpParameter} params - Parameters including IdP token and provider details.\n * @returns {Promise<TokenResponse<'user'>>} - A promise resolving to the token response.\n */\n async authWithIdp<P extends AuthWithIdpParameter>(\n params: P\n ): Promise<AxiosResponse<TokenResponse<\"user\">>> {\n return this.axios.post<TokenResponse<\"user\">>(\n `${this.endpoint}/auth_with_idp`,\n urlEncodeFormData(params),\n { headers: this.headers }\n );\n }\n\n /**\n * Revokes a refresh token, effectively invalidating any associated access tokens.\n *\n * @param {string} token - The refresh token to be revoked.\n * @returns {Promise<RevokeResponse>} - A promise resolving to the revoke response.\n */\n async revoke(token: string): Promise<AxiosResponse<RevokeResponse>> {\n return this.axios.post<RevokeResponse>(\n `${this.endpoint}/revoke`,\n urlEncodeFormData({ token }),\n { headers: this.headers }\n );\n }\n\n /**\n * Retrieves details about the current access token.\n *\n * @returns {Promise<TokenResponse<'details'>>} - A promise resolving to the token details response.\n */\n async details(): Promise<AxiosResponse<TokenResponse<\"details\">>> {\n return this.axios.get<TokenResponse<\"details\">>(\n `${this.endpoint}/details`,\n { headers: this.headers }\n );\n }\n}\n\nexport default AuthenticationApi;\n","/**\n * @fileoverview Provides the AvailabilityExceptions class for managing availability exceptions in the Sharetribe Integration API.\n * This class allows querying, creating, and deleting availability exceptions for resources in a Sharetribe marketplace.\n *\n * For more details, refer to the Integration API documentation:\n * https://www.sharetribe.com/api-reference/integration.html#availability-exceptions\n */\n\nimport { AxiosInstance, AxiosResponse } from \"axios\";\nimport IntegrationApi from \"./index\";\nimport {\n AvailabilityExceptionsCreateParameter,\n AvailabilityExceptionsDeleteParameter,\n AvailabilityExceptionsQueryParameter,\n AvailabilityExceptionsResponse,\n} from \"../../types/marketplace/availabilityExceptions\";\nimport { ExtraParameter } from \"../../types/sharetribe\";\n\n/**\n * Class representing the Availability Exceptions API.\n *\n * Availability exceptions are used to override default availability rules for specific time ranges.\n * This class provides methods to query, create, and delete such exceptions.\n */\nclass AvailabilityExceptions {\n private readonly endpoint: string;\n private readonly axios: AxiosInstance;\n private readonly headers: Record<string, string>;\n public readonly authRequired = true;\n\n /**\n * Creates an instance of the AvailabilityExceptions class.\n *\n * @param {MarketplaceApi} api - The Marketplace API instance providing configuration and request handling.\n */\n constructor(api: IntegrationApi) {\n this.endpoint = api.endpoint + \"/availability_exceptions\";\n this.axios = api.axios;\n this.headers = api.headers;\n }\n\n /**\n * Queries availability exceptions for a resource.\n *\n * @template P\n * @param {P & AvailabilityExceptionsQueryParameter} params - Query parameters to filter availability exceptions.\n * @returns {Promise<AvailabilityExceptionsResponse<'query', P>>} - A promise resolving to the query response.\n *\n * @example\n * const response = await integrationSdk.availabilityExceptions.query({\n * listingId: 'listing-id',\n * start: '2024-12-01T00:00:00Z',\n * end: '2024-12-31T23:59:59Z'\n * });\n *\n * // Access the list of exceptions\n * const exceptions = response.data;\n */\n async query<P extends AvailabilityExceptionsQueryParameter>(\n params: P\n ): Promise<AxiosResponse<AvailabilityExceptionsResponse<\"query\", P>>> {\n return this.axios.get<AvailabilityExceptionsResponse<\"query\", P>>(\n `${this.endpoint}/query`,\n {\n headers: this.headers,\n params,\n }\n );\n }\n\n /**\n * Creates a new availability exception for a resource.\n *\n * @template P\n * @template EP\n * @param {P & AvailabilityExceptionsCreateParameter} params - Parameters to define the availability exception.\n * @param {EP | void} [extraParams] - Optional additional parameters.\n * @returns {Promise<AvailabilityExceptionsResponse<'create', P, EP>>} - A promise resolving to the create response.\n *\n * @example\n * const response = await integrationSdk.availabilityExceptions.create({\n * listingId: 'listing-id',\n * start: '2024-12-10T10:00:00Z',\n * end: '2024-12-10T12:00:00Z',\n * seats: 0\n * });\n *\n * // Access the created exception\n * const createdException = response.data;\n */\n async create<\n P extends AvailabilityExceptionsCreateParameter,\n EP extends ExtraParameter\n >(\n params: P,\n extraParams: EP | void = {} as EP\n ): Promise<AxiosResponse<AvailabilityExceptionsResponse<\"create\", P, EP>>> {\n return this.axios.post<AvailabilityExceptionsResponse<\"create\", P, EP>>(\n `${this.endpoint}/create`,\n { ...params, ...extraParams },\n { headers: this.headers }\n );\n }\n\n /**\n * Deletes an availability exception for a resource.\n *\n * @template P\n * @param {P & AvailabilityExceptionsDeleteParameter} params - Parameters to specify the exception to delete.\n * @returns {Promise<AvailabilityExceptionsResponse<'delete', P>>} - A promise resolving to the delete response.\n *\n * @example\n * const response = await integrationSdk.availabilityExceptions.delete({\n * id: 'exception-id'\n * });\n *\n * // Check the deletion result\n * const result = response.data;\n */\n async delete<P extends AvailabilityExceptionsDeleteParameter>(\n params: P\n ): Promise<AxiosResponse<AvailabilityExceptionsResponse<\"delete\", P>>> {\n return this.axios.post<AvailabilityExceptionsResponse<\"delete\", P>>(\n `${this.endpoint}/delete`,\n params,\n { headers: this.headers }\n );\n }\n}\n\nexport default AvailabilityExceptions;\n","/**\n * @fileoverview Provides the Events class for querying event data in the Sharetribe Integration API.\n * This class allows querying events related to bookings or other entities in a Sharetribe marketplace.\n *\n * For more details, refer to the Integration API documentation:\n * https://www.sharetribe.com/api-reference/integration.html#events\n */\n\nimport { AxiosInstance, AxiosResponse } from \"axios\";\nimport IntegrationApi from \"./index\";\nimport {\n EventQueryParameter,\n EventsResponse,\n} from \"../../types/integration/events\";\n\n/**\n * Class representing the Events API.\n *\n * The Events API provides access to event data, such as booking events, allowing integration with external systems.\n */\nclass Events {\n private readonly endpoint: string;\n private readonly axios: AxiosInstance;\n private readonly headers: Record<string, string>;\n\n /**\n * Creates an instance of the Events class.\n *\n * @param {MarketplaceApi} api - The Marketplace API instance providing configuration and request handling.\n */\n constructor(api: IntegrationApi) {\n this.endpoint = api.endpoint + \"/events\";\n this.axios = api.axios;\n this.headers = api.headers;\n }\n\n /**\n * Queries event data based on the specified parameters.\n *\n * @template P\n * @param {P & EventQueryParameter} params - Query parameters to filter events.\n * @returns {Promise<EventsResponse<'query'>>} - A promise resolving to the event query response.\n *\n * @example\n * const response = await integrationSdk.events.query({\n * startAfterSequenceId: 'event-sequence-id',\n * createdAtStart: '2021-01-01T00:00:00Z',\n * resourceId: 'resource-id',\n * relatedResourceId: 'related-resource-id',\n * eventTypes: ['eventType1', 'eventType2'],\n * });\n *\n * // Access the list of events\n * const eventsList = response.data;\n */\n async query<P extends EventQueryParameter>(\n params: P\n ): Promise<AxiosResponse<EventsResponse<\"query\">>> {\n return this.axios.get<EventsResponse<\"query\">>(`${this.endpoint}/query`, {\n headers: this.headers,\n params,\n });\n }\n}\n\nexport default Events;\n","/**\n * @fileoverview Provides the Images class for handling image uploads in the Sharetribe Integration API.\n * This class allows uploading images to be used as resources in a Sharetribe marketplace.\n *\n * For more details, refer to the Integration API documentation:\n * https://www.sharetribe.com/api-reference/integration.html#images\n */\n\nimport { AxiosInstance, AxiosResponse } from \"axios\";\nimport IntegrationApi from \"./index\";\nimport {\n ImagesResponse,\n ImagesUploadParameter,\n} from \"../../types/marketplace/images\";\nimport { ExtraParameter } from \"../../types/sharetribe\";\n\n/**\n * Class representing the Images API.\n *\n * The Images API allows uploading images to the marketplace for use in listings or other resources.\n */\nclass Images {\n private readonly endpoint: string;\n private readonly axios: AxiosInstance;\n private readonly headers: Record<string, string>;\n public readonly authRequired = true;\n\n /**\n * Creates an instance of the Images class.\n *\n * @param {MarketplaceApi} api - The Marketplace API instance providing configuration and request handling.\n */\n constructor(api: IntegrationApi) {\n this.endpoint = api.endpoint + \"/images\";\n this.axios = api.axios;\n this.headers = api.headers;\n }\n\n /**\n * Uploads an image to the marketplace.\n *\n * @template P\n * @template EP\n * @param {P & ImagesUploadParameter} params - The image upload parameters, including image data and related metadata.\n * @param {EP & ExtraParameter} extraParams - Optional additional parameters for the upload request.\n * @returns {Promise<ImagesResponse<'upload', EP>>} - A promise resolving to the upload response.\n *\n * @example\n * const response = await integrationSdk.images.upload({\n * image: fileData,\n * });\n *\n * // Access the uploaded image details\n * const imageDetails = response.data;\n */\n async upload<P extends ImagesUploadParameter, EP extends ExtraParameter>(\n params: P,\n extraParams: EP | void = {} as EP\n ): Promise<AxiosResponse<ImagesResponse<\"upload\", EP>>> {\n const formDataObj = Object.entries({ ...params, ...extraParams }).reduce(\n (fd, entry) => {\n const [key, val] = entry;\n fd.append(key, val);\n return fd;\n },\n new FormData()\n );\n\n return this.axios.post<ImagesResponse<\"upload\", EP>>(\n `${this.endpoint}/upload`,\n formDataObj,\n { headers: this.headers }\n );\n }\n}\n\nexport default Images;\n","/**\n * @fileoverview Provides the Listings class for managing listings in the Sharetribe Integration API.\n * This class allows creating, updating, querying, and performing other operations on marketplace listings.\n *\n * For more details, refer to the Integration API documentation:\n * https://www.sharetribe.com/api-reference/integration.html#listings\n */\n\nimport { AxiosInstance, AxiosResponse } from \"axios\";\nimport IntegrationApi from \"./index\";\nimport {\n ListingsApproveParameter,\n ListingsCloseParameter,\n ListingsCreateParameter,\n ListingsOpenParameter,\n ListingsQueryParameter,\n ListingsResponse,\n ListingsShowParameter,\n ListingsUpdateParameter,\n} from \"../../types/marketplace/listings\";\nimport { ExtraParameter } from \"../../types/sharetribe\";\n\n/**\n * Class representing the Listings API.\n *\n * The Listings API provides methods to manage marketplace listings, such as creating, updating, querying, and approving listings.\n */\nclass Listings {\n private readonly endpoint: string;\n private readonly axios: AxiosInstance;\n private readonly headers: Record<string, string>;\n\n /**\n * Creates an instance of the Listings class.\n *\n * @param {IntegrationApi} api - The Marketplace API instance providing configuration and request handling.\n */\n constructor(api: IntegrationApi) {\n this.endpoint = api.endpoint + \"/listings\";\n this.axios = api.axios;\n this.headers = api.headers;\n }\n\n /**\n * Retrieves details of a specific listing.\n *\n * @template P\n * @param {P & ListingsShowParameter} params - The parameters to identify the listing.\n * @returns {Promise<ListingsResponse<'show', P>>} - A promise resolving to the listing details.\n *\n * @example\n * const response = await integrationSdk.listings.show({\n * id: 'listing-id'\n * });\n *\n * const listing = response.data;\n */\n async show<P extends ListingsShowParameter>(\n params: P\n ): Promise<AxiosResponse<ListingsResponse<\"show\", P, undefined, true>>> {\n return this.axios.get<ListingsResponse<\"show\", P, undefined, true>>(\n `${this.endpoint}/show`,\n {\n headers: this.headers,\n params,\n }\n );\n }\n\n /**\n * Queries listings based on specified filters.\n *\n * @template P\n * @param {P & ListingsQueryParameter} params - Query parameters to filter listings.\n * @returns {Promise<ListingsResponse<'query', P>>} - A promise resolving to the query results.\n *\n * @example\n * const response = await integrationSdk.listings.query({\n * ids: ['listing-id-1', 'listing-id-2'],\n * per_page: 10,\n * page: 1\n * });\n *\n * const listings = response.data;\n */\n async query<P extends ListingsQueryParameter>(\n params: P\n ): Promise<AxiosResponse<ListingsResponse<\"query\", P, undefined, true>>> {\n return this.axios.get<ListingsResponse<\"query\", P, undefined, true>>(\n `${this.endpoint}/query`,\n {\n headers: this.headers,\n params,\n }\n );\n }\n\n /**\n * Creates a new listing.\n *\n * @template P\n * @template EP\n * @param {P & ListingsCreateParameter} params - Parameters for the new listing.\n * @param {EP | void} extraParams - Optional extra parameters for the request.\n * @returns {Promise<ListingsResponse<'create', P, EP, true>>} - A promise resolving to the created listing.\n *\n * @example\n * const response = await integrationSdk.listings.create({\n * title: 'New Listing',\n * description: 'Description of the listing',\n * authorId: 'user-id',\n * state: 'published'\n * });\n *\n * const newListing = response.data;\n */\n async create<P extends ListingsCreateParameter, EP extends ExtraParameter>(\n params: P,\n extraParams?: EP\n ): Promise<AxiosResponse<ListingsResponse<\"create\", P, EP, true>>> {\n return this.axios.post<ListingsResponse<\"create\", P, EP, true>>(\n `${this.endpoint}/create`,\n { ...params, ...extraParams },\n { headers: this.headers }\n );\n }\n\n /**\n * Updates an existing listing.\n *\n * @template P\n * @template EP\n * @param {P & ListingsUpdateParameter} params - Parameters for the listing update.\n * @param {EP | void} extraParams - Optional extra parameters for the request.\n * @returns {Promise<ListingsResponse<'update', P, EP>>} - A promise resolving to the updated listing.\n *\n * @example\n * const response = await integrationSdk.listings.update({\n * id: 'listing-id',\n * title: 'Updated Title'\n * });\n *\n * const updatedListing = response.data;\n */\n async update<P extends ListingsUpdateParameter, EP extends ExtraParameter>(\n params: P,\n extraParams?: EP\n ): Promise<AxiosResponse<ListingsResponse<\"update\", P, EP, true>>> {\n return this.axios.post<ListingsResponse<\"update\", P, EP, true>>(\n `${this.endpoint}/update`,\n { ...params, ...extraParams },\n { headers: this.headers }\n );\n }\n\n /**\n * Closes a listing.\n *\n * @template P\n * @template EP\n * @param {P & ListingsCloseParameter} params - Parameters to identify the listing to close.\n * @param {EP | void} extraParams - Optional extra parameters for the request.\n * @returns {Promise<ListingsResponse<'close', P, EP>>} - A promise resolving to the closed listing.\n *\n * @example\n * const response = await integrationSdk.listings.close({\n * id: 'listing-id'\n * });\n *\n * const closedListing = response.data;\n */\n async close<P extends ListingsCloseParameter, EP extends ExtraParameter>(\n params: P,\n extraParams?: EP\n ): Promise<AxiosResponse<ListingsResponse<\"close\", P, EP, true>>> {\n return this.axios.post<ListingsResponse<\"close\", P, EP, true>>(\n `${this.endpoint}/close`,\n { ...params, ...extraParams },\n { headers: this.headers }\n );\n }\n\n /**\n * Opens a listing.\n *\n * @template P\n * @template EP\n * @param {P & ListingsOpenParameter} params - Parameters to identify the listing to open.\n * @param {EP | void} extraParams - Optional extra parameters for the request.\n * @returns {Promise<ListingsResponse<'open', P, EP>>} - A promise resolving to the opened listing.\n *\n * @example\n * const response = await integrationSdk.listings.open({\n * id: 'listing-id'\n * });\n *\n * const openedListing = response.data;\n */\n async open<P extends ListingsOpenParameter, EP extends ExtraParameter>(\n params: P,\n extraParams?: EP\n ): Promise<AxiosResponse<ListingsResponse<\"open\", P, EP, true>>> {\n return this.axios.post<ListingsResponse<\"open\", P, EP, true>>(\n `${this.endpoint}/open`,\n { ...params, ...extraParams },\n { headers: this.headers }\n );\n }\n\n /**\n * Approves a listing.\n *\n * @template P\n * @template EP\n * @param {P & ListingsApproveParameter} params - Parameters to identify the listing to approve.\n * @param {EP | void} extraParams - Optional extra parameters for the request.\n * @returns {Promise<ListingsResponse<'approve', P, EP>>} - A promise resolving to the approved listing.\n *\n * @example\n * const response = await integrationSdk.listings.approve({\n * id: 'listing-id'\n * });\n *\n * const approvedListing = response.data;\n */\n async approve<P extends ListingsApproveParameter, EP extends ExtraParameter>(\n params: P,\n extraParams?: EP\n ): Promise<AxiosResponse<ListingsResponse<\"approve\", P, EP, true>>> {\n return this.axios.post<ListingsResponse<\"approve\", P, EP, true>>(\n `${this.endpoint}/approve`,\n { ...params, ...extraParams },\n { headers: this.headers }\n );\n }\n}\n\nexport default Listings;\n","/**\n * @fileoverview Provides the Marketplace class for interacting with the Sharetribe Integration API.\n * This class allows fetching details about the marketplace configuration.\n *\n * For more details, refer to the Integration API documentation:\n * https://www.sharetribe.com/api-reference/integration.html#marketplace\n */\n\nimport { AxiosInstance, AxiosResponse } from \"axios\";\nimport IntegrationApi from \"./index\";\nimport { MarketplaceResponse } from \"../../types/marketplace/marketplace\";\n\n/**\n * Class representing the Marketplace API.\n *\n * The Marketplace API provides methods to retrieve marketplace configuration details.\n */\nclass Marketplace {\n private readonly endpoint: string;\n private readonly axios: AxiosInstance;\n private readonly headers: Record<string, string>;\n\n /**\n * Creates an instance of the Marketplace class.\n *\n * @param {MarketplaceApi} api - The Marketplace API instance providing configuration and request handling.\n */\n constructor(api: IntegrationApi) {\n this.endpoint = api.endpoint + \"/marketplace\";\n this.axios = api.axios;\n this.headers = api.headers;\n }\n\n /**\n * Retrieves details about the marketplace configuration.\n *\n * @returns {Promise<AxiosResponse<MarketplaceResponse<'show'>>>} - A promise resolving to the marketplace details.\n *\n * @example\n * const response = await integrationSdk.marketplace.show();\n *\n * const marketplaceDetails = response.data;\n */\n async show(): Promise<AxiosResponse<MarketplaceResponse<\"show\">>> {\n return this.axios.get<MarketplaceResponse<\"show\">>(\n `${this.endpoint}/show`,\n { headers: this.headers }\n );\n }\n}\n\nexport default Marketplace;\n","/**\n * @fileoverview Provides the Stock class for managing stock levels in the Sharetribe Integration API.\n * This class allows performing operations on stock, such as compare-and-set updates.\n *\n * For more details, refer to the Integration API documentation:\n * https://www.sharetribe.com/api-reference/integration.html#stock\n */\n\nimport { AxiosInstance, AxiosResponse } from \"axios\";\nimport IntegrationApi from \"./index\";\nimport {\n StockCompareAndSetParameter,\n StockResponse,\n} from \"../../types/marketplace/stock\";\nimport { ExtraParameter } from \"../../types/sharetribe\";\n\n/**\n * Class representing the Stock API.\n *\n * The Stock API provides methods to manage stock levels for marketplace resources.\n */\nclass Stock {\n private readonly endpoint: string;\n private readonly axios: AxiosInstance;\n private readonly headers: Record<string, string>;\n public readonly authRequired = true;\n\n /**\n * Creates an instance of the Stock class.\n *\n * @param {MarketplaceApi} api - The Marketplace API instance providing configuration and request handling.\n */\n constructor(api: IntegrationApi) {\n this.endpoint = api.endpoint + \"/stock\";\n this.axios = api.axios;\n this.headers = api.headers;\n }\n\n /**\n * Updates stock levels using a compare-and-set operation.\n *\n * @template P\n * @template EP\n * @param {P & StockCompareAndSetParameter} params - Parameters specifying the stock to compare and set.\n * @param {EP & ExtraParameter} extraParams - Optional additional parameters for the request.\n * @returns {Promise<AxiosResponse<StockResponse<'compareAndSet', EP>>>} - A promise resolving to the stock update response.\n *\n * @example\n * const response = await integrationSdk.stock.compareAndSet({\n * listingId: 'listing-id',\n * oldTotal: 5,\n * newTotal: 10,\n * });\n *\n * const updatedStock = response.data;\n */\n async compareAndSet<\n P extends StockCompareAndSetParameter,\n EP extends ExtraParameter\n >(\n params: P,\n extraParams: EP | void = {} as EP\n ): Promise<AxiosResponse<StockResponse<\"compareAndSet\", EP>>> {\n return this.axios.post<StockResponse<\"compareAndSet\", EP>>(\n `${this.endpoint}/compare_and_set`,\n { ...params, ...extraParams },\n { headers: this.headers }\n );\n }\n}\n\nexport default Stock;\n","/**\n * @fileoverview Provides the StockAdjustments class for managing stock adjustments in the Sharetribe Integration API.\n * This class allows querying and creating stock adjustment records.\n *\n * For more details, refer to the Integration API documentation:\n * https://www.sharetribe.com/api-reference/integration.html#stock-adjustments\n */\n\nimport { AxiosInstance, AxiosResponse } from \"axios\";\nimport IntegrationApi from \"./index\";\nimport {\n StockAdjustmentsCreateParameter,\n StockAdjustmentsQueryParameter,\n StockAdjustmentsResponse,\n} from \"../../types/marketplace/stockAdjustment\";\nimport { ExtraParameter } from \"../../types/sharetribe\";\n\n/**\n * Class representing the Stock Adjustments API.\n *\n * The Stock Adjustments API provides methods to query and create stock adjustments for marketplace resources.\n */\nclass StockAdjustments {\n private readonly endpoint: string;\n private readonly axios: AxiosInstance;\n private readonly headers: Record<string, string>;\n public readonly authRequired = true;\n\n /**\n * Creates an instance of the StockAdjustments class.\n *\n * @param {IntegrationApi} api - The Integration API instance providing configuration and request handling.\n */\n constructor(api: IntegrationApi) {\n this.endpoint = api.endpoint + \"/stock_adjustments\";\n this.axios = api.axios;\n this.headers = api.headers;\n }\n\n /**\n * Queries stock adjustment records based on specified filters.\n *\n * @template P\n * @param {P & StockAdjustmentsQueryParameter} params - Query parameters to filter stock adjustment records.\n * @returns {Promise<AxiosResponse<StockAdjustmentsResponse<'query', P>>>} - A promise resolving to the query results.\n *\n * @example\n * const response = await integrationSdk.stockAdjustments.query({\n * listingId: 'resource-id',\n * start: '2024-12-01T00:00:00Z',\n * end: '2024-12-31T23:59:59Z',\n * });\n *\n * const adjustments = response.data;\n */\n async query<P extends StockAdjustmentsQueryParameter>(\n params: P\n ): Promise<AxiosResponse<StockAdjustmentsResponse<\"query\", P>>> {\n return this.axios.get<StockAdjustmentsResponse<\"query\", P>>(\n `${this.endpoint}/query`,\n {\n headers: this.headers,\n params,\n }\n );\n }\n\n /**\n * Creates a new stock adjustment record.\n *\n * @template P\n * @template EP\n * @param {P & StockAdjustmentsCreateParameter} params - Parameters for the new stock adjustment.\n * @param {EP | undefined} extraParams - Optional extra parameters for the request.\n * @returns {Promise<AxiosResponse<StockAdjustmentsResponse<'create', P, EP>>>} - A promise resolving to the created stock adjustment record.\n *\n * @example\n * const response = await integrationSdk.stockAdjustments.create({\n * listingId: 'listing-id',\n * quantity: 10,\n * });\n *\n * const newAdjustment = response.data;\n */\n async create<\n P extends StockAdjustmentsCreateParameter,\n EP extends ExtraParameter | undefined\n >(\n params: P,\n extraParams: EP | void = {} as EP\n ): Promise<AxiosResponse<StockAdjustmentsResponse<\"create\", P, EP>>> {\n return this.axios.post<StockAdjustmentsResponse<\"create\", P, EP>>(\n `${this.endpoint}/create`,\n { ...params, ...extraParams },\n { headers: this.headers }\n );\n }\n}\n\nexport default StockAdjustments;\n","/**\n * @fileoverview Provides the StockReservation class for managing stock reservations in the Sharetribe Integration API.\n * This class allows retrieving details about stock reservations.\n *\n * For more details, refer to the Integration API documentation:\n * https://www.sharetribe.com/api-reference/integration.html#stock-reservations\n */\n\nimport { AxiosInstance, AxiosResponse } from \"axios\";\nimport IntegrationApi from \"./index\";\nimport {\n StockReservationShowParameter,\n StockReservationsResponse,\n} from \"../../types/marketplace/stockReservations\";\n\n/**\n * Class representing the Stock Reservations API.\n *\n * The Stock Reservations API provides methods to manage stock reservations for marketplace resources.\n */\nclass StockReservation {\n private readonly endpoint: string;\n private readonly axios: AxiosInstance;\n private readonly headers: Record<string, string>;\n\n /**\n * Creates an instance of the StockReservation class.\n *\n * @param {IntegrationApi} api - The Integration API instance providing configuration and request handling.\n */\n constructor(api: IntegrationApi) {\n this.endpoint = api.endpoint + \"/stock_reservations\";\n this.axios = api.axios;\n this.headers = api.headers;\n }\n\n /**\n * Retrieves details about a specific stock reservation.\n *\n * @template P\n * @param {P & StockReservationShowParameter} params - The parameters to identify the stock reservation.\n * @returns {Promise<AxiosResponse<StockReservationsResponse<'show', P>>>} - A promise resolving to the stock reservation details.\n *\n * @example\n * const response = await integrationSdk.stockReservations.show({\n * id: 'reservation-id',\n * });\n *\n * const reservationDetails = response.data;\n */\n async show<P extends StockReservationShowParameter>(\n params: P\n ): Promise<AxiosResponse<StockReservationsResponse<\"show\", P>>> {\n return this.axios.get<StockReservationsResponse<\"show\", P>>(\n `${this.endpoint}/show`,\n { headers: this.headers, params }\n );\n }\n}\n\nexport default StockReservation;\n","/**\n * @fileoverview Provides the Transactions class for managing transactions in the Sharetribe Integration API.\n * This class allows querying, transitioning, and updating metadata for transactions.\n *\n * For more details, refer to the Integration API documentation:\n * https://www.sharetribe.com/api-reference/integration.html#transactions\n */\n\nimport { AxiosInstance, AxiosResponse } from \"axios\";\nimport IntegrationApi from \"./index\";\nimport {\n TransactionsQueryParameter,\n TransactionsResponse,\n TransactionsShowParameter,\n TransactionsTransitionParameter,\n TransactionsTransitionSpeculativeParameter,\n TransactionsUpdateMetadataParameter,\n} from \"../../types/marketplace/transactions\";\nimport { ExtraParameter } from \"../../types/sharetribe\";\n\n/**\n * Class representing the Transactions API.\n *\n * The Transactions API provides methods to query, transition, and manage metadata for marketplace transactions.\n */\nclass Transactions {\n private readonly endpoint: string;\n private readonly axios: AxiosInstance;\n private readonly headers: Record<string, string>;\n public readonly authRequired = true;\n\n /**\n * Creates an instance of the Transactions class.\n *\n * @param {IntegrationApi} api - The Integration API instance providing configuration and request handling.\n */\n constructor(api: IntegrationApi) {\n this.endpoint = api.endpoint + \"/transactions\";\n this.axios = api.axios;\n this.headers = api.headers;\n }\n\n /**\n * Retrieves details about a specific transaction.\n *\n * @template P\n * @param {P & TransactionsShowParameter} params - The parameters to identify the transaction.\n * @returns {Promise<AxiosResponse<TransactionsResponse<'show', P>>>} - A promise resolving to the transaction details.\n *\n * @example\n * const response = await integrationSdk.transactions.show({\n * id: 'transaction-id',\n * });\n *\n * const transactionDetails = response.data;\n */\n async show<P extends TransactionsShowParameter>(\n params: P\n ): Promise<AxiosResponse<TransactionsResponse<\"show\", P>>> {\n return this.axios.get<TransactionsResponse<\"show\", P>>(\n `${this.endpoint}/show`,\n {\n headers: this.headers,\n params,\n }\n );\n }\n\n /**\n * Queries transactions based on specified filters.\n *\n * @template P\n * @param {P & TransactionsQueryParameter<true>} params - Query parameters to filter transactions.\n * @returns {Promise<AxiosResponse<TransactionsResponse<'query', P>>>} - A promise resolving to the query results.\n *\n * @example\n * const response = await integrationSdk.transactions.query({\n * createdAtStart: '2021-01-01T00:00:00Z',\n * createdAtEnd: '2021-01-31T23:59:59Z',\n * userId: 'user-id',\n * customerId: 'customer-id',\n * providerId: 'provider-id',\n * listingId: 'listing-id',\n * });\n *\n * const transactions = response.data;\n */\n async query<P extends TransactionsQueryParameter<true>>(\n params: P\n ): Promise<AxiosResponse<TransactionsResponse<\"query\", P>>> {\n return this.axios.get<TransactionsResponse<\"query\", P>>(\n `${this.endpoint}/query`,\n {\n headers: this.headers,\n params,\n }\n );\n }\n\n /**\n * Transitions a transaction to a new state.\n *\n * @template P\n * @template EP\n * @param {P & TransactionsTransitionParameter} params - Parameters specifying the transaction and the transition.\n * @param {EP | void} extraParams - Optional extra parameters for the request.\n * @returns {Promise<AxiosResponse<TransactionsResponse<'transition', P, EP>>>} - A promise resolving to the transitioned transaction.\n *\n * @example\n * const response = await integrationSdk.transactions.transition({\n * id: 'transaction-id',\n * transition: 'accept',\n * params: { key: 'value' },\n * });\n *\n * const updatedTransaction = response.data;\n */\n async transition<\n P extends TransactionsTransitionParameter,\n EP extends ExtraParameter\n >(\n params: P,\n extraParams: EP | void = {} as EP\n ): Promise<AxiosResponse<TransactionsResponse<\"transition\", P, EP>>> {\n return this.axios.post<TransactionsResponse<\"transition\", P, EP>>(\n `${this.endpoint}/transition`,\n { ...params, ...extraParams },\n { headers: this.headers }\n );\n }\n\n /**\n * Transitions a transaction speculatively to a new state without persisting the transition.\n *\n * @template P\n * @template EP\n * @param {P & TransactionsTransitionSpeculativeParameter} params - Parameters specifying the speculative transition.\n * @param {EP | void} extraParams - Optional extra parameters for the request.\n * @returns {Promise<AxiosResponse<TransactionsResponse<'transitionSpeculative', P, EP>>>} - A promise resolving to the speculative transition result.\n *\n * @example\n * const response = await integrationSdk.transactions.transitionSpeculative({\n * id: 'transaction-id',\n * transition: 'accept',\n * params: { key: 'value' },\n * });\n *\n * const speculativeResult = response.data;\n */\n async transitionSpeculative<\n P extends TransactionsTransitionSpeculativeParameter,\n EP extends ExtraParameter\n >(\n params: P,\n extraParams: EP | void = {} as EP\n ): Promise<\n AxiosResponse<TransactionsResponse<\"transitionSpeculative\", P, EP>>\n > {\n return this.axios.post<\n TransactionsResponse<\"transitionSpeculative\", P, EP>\n >(\n `${this.endpoint}/transition_speculative`,\n { ...params, ...extraParams },\n { headers: this.headers }\n );\n }\n\n /**\n * Updates metadata for a transaction.\n *\n * @template P\n * @template EP\n * @param {P & TransactionsUpdateMetadataParameter} params - Parameters specifying the transaction metadata to update.\n * @param {EP | void} extraParams - Optional extra parameters for the request.\n * @returns {Promise<AxiosResponse<TransactionsResponse<'updateMetadata', P, EP>>>} - A promise resolving to the updated transaction metadata.\n *\n * @example\n * const response = await integrationSdk.transactions.updateMetadata({\n * id: 'transaction-id',\n * metadata: { key: 'value' },\n * });\n *\n * const updatedMetadata = response.data;\n */\n async updateMetadata<\n P extends TransactionsUpdateMetadataParameter,\n EP extends ExtraParameter\n >(\n params: P,\n extraParams: EP | void = {} as EP\n ): Promise<AxiosResponse<TransactionsResponse<\"updateMetadata\", P, EP>>> {\n return this.axios.post<TransactionsResponse<\"updateMetadata\", P, EP>>(\n `${this.endpoint}/update_metadata`,\n { ...params, ...extraParams },\n { headers: this.headers }\n );\n }\n}\n\nexport default Transactions;\n","/**\n * @fileoverview Provides the Users class for managing user data in the Sharetribe Integration API.\n * This class allows retrieving details about a specific user.\n *\n * For more details, refer to the Integration API documentation:\n * https://www.sharetribe.com/api-reference/integration.html#users\n */\n\nimport { AxiosInstance, AxiosResponse } from \"axios\";\nimport IntegrationApi from \"./index\";\nimport {\n UsersApproveParameter,\n UsersQueryParameter,\n UsersResponse,\n UsersShowParameter,\n UsersUpdatePermissionsParameter,\n UsersUpdateProfileParameter,\n} from \"../../types/marketplace/user\";\nimport { ExtraParameter } from \"../../types/sharetribe\";\n\n/**\n * Class representing the Users API.\n *\n * The Users API provides methods to retrieve user data for marketplace resources.\n */\nclass Users {\n private readonly endpoint: string;\n private readonly axios: AxiosInstance;\n private readonly headers: Record<string, string>;\n\n /**\n * Creates an instance of the Users class.\n *\n * @param {IntegrationApi} api - The Integration API instance providing configuration and request handling.\n */\n constructor(api: IntegrationApi) {\n this.endpoint = api.endpoint + \"/users\";\n this.axios = api.axios;\n this.headers = api.headers;\n }\n\n /**\n * Retrieves details about a specific user.\n *\n * @template P\n * @param {P & UsersShowParameter} params - The parameters to identify the user.\n * @returns {Promise<AxiosResponse<UsersResponse<'show', P, undefined, true>>>} - A promise resolving to the user details.\n *\n * @example\n * const response = await integrationSdk.users.show({\n * id: 'user-id',\n * });\n *\n * const userDetails = response.data;\n */\n async show<P extends UsersShowParameter<true>>(\n params: P\n ): Promise<AxiosResponse<UsersResponse<\"show\", P, undefined, true>>> {\n if (!params.id && !params.email) {\n throw new Error(\"Either 'id' or 'email' must be provided.\");\n }\n\n return this.axios.get<UsersResponse<\"show\", P, undefined, true>>(\n `${this.endpoint}/show`,\n {\n headers: this.headers,\n params,\n }\n );\n }\n\n /**\n * Queries users based on specified filters.\n *\n * @template P\n * @param {P & UsersQueryParameter} params - Query parameters for filtering users.\n * @returns {Promise<AxiosResponse<UsersResponse<'query', P, undefined, true>>>} - A promise resolving to the list of users.\n *\n * @example\n * const response = await integrationSdk.users.query({\n * createdAtStart: '2021-01-01T00:00:00Z'\n * });\n * const users = response.data;\n */\n async query<P extends UsersQueryParameter>(\n params: P\n ): Promise<AxiosResponse<UsersResponse<\"query\", P, undefined, true>>> {\n return this.axios.get<UsersResponse<\"query\", P, undefined, true>>(\n `${this.endpoint}/query`,\n {\n headers: this.headers,\n params,\n }\n );\n }\n\n /**\n * Updates a user's profile.\n *\n * @template P\n * @template EP\n * @param {P & UsersUpdateProfileParameter} params - Parameters to update the user's profile.\n * @param {EP | void} extraParams - Optional extra parameters for the request.\n * @returns {Promise<AxiosResponse<UsersResponse<'updateProfile', P, EP, true>>>} - A promise resolving to the updated profile details.\n *\n * @example\n * const response = await integrationSdk.users.updateProfile({\n * id: 'user-id',\n * firstName: 'John',\n * lastName: 'Doe',\n * displayName: 'John Doe',\n * });\n * const updatedProfile = response.data;\n */\n async updateProfile<\n P extends UsersUpdateProfileParameter,\n EP extends ExtraParameter\n >(\n params: P,\n extraParams?: EP\n ): Promise<AxiosResponse<UsersResponse<\"updateProfile\", P, EP, true>>> {\n return this.axios.post<UsersResponse<\"updateProfile\", P, EP, true>>(\n `${this.endpoint}/update_profile`,\n { ...params, ...extraParams },\n { headers: this.headers }\n );\n }\n\n /**\n * Approves a user.\n *\n * @template P\n * @template EP\n * @param {P & UsersApproveParameter} params - Parameters to approve the user.\n * @param {EP | void} extraParams - Optional extra parameters for the request.\n * @returns {Promise<AxiosResponse<UsersResponse<'approve', P, EP, true>>>} - A promise resolving to the approval confirmation.\n *\n * @example\n * const response = await integrationSdk.users.approve({ id: 'user-id' });\n * const approvalResult = response.data;\n */\n async approve<P extends UsersApproveParameter, EP extends ExtraParameter>(\n params: P,\n extraParams?: EP\n ): Promise<AxiosResponse<UsersResponse<\"approve\", P, EP, true>>> {\n return this.axios.post<UsersResponse<\"approve\", P, EP, true>>(\n `${this.endpoint}/approve`,\n { ...params, ...extraParams },\n {\n headers: this.headers,\n }\n );\n }\n\n /**\n * Updates a user's permissions.\n *\n * @template P\n * @template EP\n * @param {P & UsersUpdatePermissionsParameter} params - Parameters to update the user's permissions.\n * @param {EP | void} extraParams - Optional extra parameters for the request.\n * @returns {Promise<AxiosResponse<UsersResponse<'updatePermissions', P, EP, true>>>} - A promise resolving to the updated permissions details.\n *\n * @example\n * const response = await integrationSdk.users.updatePermissions(\n * { id: 'user-id', permissions: ['permission-1', 'permission-2'] },\n * { additionalParam: 'value' }\n * );\n * const updatedPermissions = response.data;\n */\n async updatePermissions<\n P extends UsersUpdatePermissionsParameter,\n EP extends ExtraParameter\n >(\n params: P,\n extraParams?: EP\n ): Promise<AxiosResponse<UsersResponse<\"updatePermissions\", P, EP, true>>> {\n return this.axios.post<UsersResponse<\"updatePermissions\", P, EP, true>>(\n `${this.endpoint}/update_permissions`,\n { ...params, ...extraParams },\n { headers: this.headers }\n );\n }\n}\n\nexport default Users;\n","/**\n * @fileoverview Provides the IntegrationApi class for accessing various endpoints of the Sharetribe Integration API.\n * This class acts as a gateway to multiple sub-APIs, including availability exceptions, events, images, listings, stock, transactions, and users.\n */\n\nimport { AxiosInstance } from \"axios\";\nimport IntegrationSdk from \"../../integrationSdk\";\nimport AvailabilityExceptions from \"./AvailabilityExceptions\";\nimport Events from \"./Events\";\nimport Images from \"./Images\";\nimport Listings from \"./Listings\";\nimport Marketplace from \"./Marketplace\";\nimport Stock from \"./Stock\";\nimport StockAdjustments from \"./StockAdjustments\";\nimport StockReservation from \"./StockReservation\";\nimport Transactions from \"./Transactions\";\nimport Users from \"./Users\";\n\n/**\n * Class representing the Sharetribe Integration API.\n *\n * This class provides access to various sub-APIs for managing marketplace resources such as availability exceptions,\n * events, images, listings, stock, transactions, and users.\n *\n * @example\n * const sdk = new IntegrationSdk(sdkConfig);\n * const integrationApi = new IntegrationApi(sdk);\n *\n * // Example: Query availability exceptions\n * const response = await integrationApi.availabilityExceptions.query({\n * resource_id: 'resource-id',\n * start: '2024-12-01T00:00:00Z',\n * end: '2024-12-31T23:59:59Z'\n * });\n *\n * const exceptions = response.data;\n */\nclass IntegrationApi {\n axios: AxiosInstance;\n endpoint: string;\n headers: Record<string, string>;\n authRequired: boolean;\n\n // API Endpoints\n availabilityExceptions: AvailabilityExceptions;\n events: Events;\n images: Images;\n listings: Listings;\n marketplace: Marketplace;\n stock: Stock;\n stockAdjustments: StockAdjustments;\n stockReservations: StockReservation;\n transactions: Transactions;\n users: Users;\n\n /**\n * Creates an instance of the IntegrationApi class.\n *\n * @param {IntegrationSdk} sdk - The Integration SDK instance providing configuration and request handling.\n */\n constructor(sdk: IntegrationSdk) {\n const config = sdk.apisConfigs.integrationApi(sdk.sdkConfig);\n this.endpoint = config.baseUrl;\n this.headers = config.headers;\n this.axios = sdk.axios;\n this.authRequired = false;\n\n this.availabilityExceptions = new AvailabilityExceptions(this);\n this.events = new Events(this);\n this.images = new Images(this);\n this.listings = new Listings(this);\n this.marketplace = new Marketplace(this);\n this.stock = new Stock(this);\n this.stockAdjustments = new StockAdjustments(this);\n this.stockReservations = new StockReservation(this);\n this.transactions = new Transactions(this);\n this.users = new Users(this);\n }\n}\n\nexport default IntegrationApi;\n","/**\n * @fileoverview Provides the AvailabilityExceptions class for managing availability exceptions in the Sharetribe Marketplace API.\n * This class allows querying, creating, and deleting availability exceptions for listings.\n *\n * For more details, refer to the Marketplace API documentation:\n * https://www.sharetribe.com/api-reference/marketplace.html#availability-exceptions\n */\n\nimport { AxiosInstance, AxiosResponse } from \"axios\";\nimport MarketplaceApi from \"./index\";\nimport {\n AvailabilityExceptionsCreateParameter,\n AvailabilityExceptionsDeleteParameter,\n AvailabilityExceptionsQueryParameter,\n AvailabilityExceptionsResponse,\n} from \"../../types/marketplace/availabilityExceptions\";\nimport { ExtraParameter } from \"../../types/sharetribe\";\n\n/**\n * Class representing the AvailabilityExceptions API.\n *\n * The AvailabilityExceptions API provides methods to manage availability exceptions for listings, such as querying existing exceptions, creating new ones, and deleting them.\n */\nclass AvailabilityExceptions {\n private readonly endpoint: string;\n private readonly axios: AxiosInstance;\n private readonly headers: Record<string, string>;\n public readonly authRequired = true;\n\n /**\n * Creates an instance of the AvailabilityExceptions class.\n *\n * @param {MarketplaceApi} api - The Marketplace API instance providing configuration and request handling.\n */\n constructor(api: MarketplaceApi) {\n this.endpoint = api.endpoint + \"/availability_exceptions\";\n this.axios = api.axios;\n this.headers = api.headers;\n }\n\n /**\n * Queries availability exceptions based on specified filters.\n *\n * @template P\n * @param {P & AvailabilityExceptionsQueryParameter} params - Query parameters to filter availability exceptions.\n * @returns {Promise<AxiosResponse<AvailabilityExceptionsResponse<'query', P>>>} - A promise resolving to the query results.\n *\n * @example\n * const response = await sdk.availabilityExceptions.query({\n * listingId: 'listing-id',\n * start: '2024-12-01T00:00:00Z',\n * end: '2024-12-31T23:59:59Z',\n * });\n *\n * const exceptions = response.data;\n */\n async query<P extends AvailabilityExceptionsQueryParameter>(\n params: P\n ): Promise<AxiosResponse<AvailabilityExceptionsResponse<\"query\", P>>> {\n return this.axios.get<AvailabilityExceptionsResponse<\"query\", P>>(\n `${this.endpoint}/query`,\n {\n headers: this.headers,\n params,\n }\n );\n }\n\n /**\n * Creates a new availability exception for a listing.\n *\n * @template P\n * @template EP\n * @param {P & AvailabilityExceptionsCreateParameter} params - Parameters for the new availability exception.\n * @param {EP | void} extraParams - Optional extra parameters for the request.\n * @returns {Promise<AxiosResponse<AvailabilityExceptionsResponse<'create', P, EP>>>} - A promise resolving to the created availability exception.\n *\n * @example\n * const response = await sdk.availabilityExceptions.create({\n * listingId: 'listing-id',\n * start: '2024-12-25T00:00:00Z',\n * end: '2024-12-25T23:59:59Z',\n * seats: 0,\n * });\n *\n * const newException = response.data;\n */\n async create<\n P extends AvailabilityExceptionsCreateParameter,\n EP extends ExtraParameter\n >(\n params: P,\n extraParams?: EP\n ): Promise<AxiosResponse<AvailabilityExceptionsResponse<\"create\", P, EP>>> {\n return this.axios.post<AvailabilityExceptionsResponse<\"create\", P, EP>>(\n `${this.endpoint}/create`,\n { ...params, ...extraParams },\n { headers: this.headers }\n );\n }\n\n /**\n * Deletes an existing availability exception.\n *\n * @template P\n * @template EP\n * @param {P & AvailabilityExceptionsDeleteParameter} params - Parameters to identify the availability exception to delete.\n * @param {EP | void} extraParams - Optional extra parameters for the request.\n * @returns {Promise<AxiosResponse<AvailabilityExceptionsResponse<'delete', P>>>} - A promise resolving to the deletion result.\n *\n * @example\n * const response = await sdk.availabilityExceptions.delete({\n * id: 'exception-id',\n * });\n *\n * const deletionResult = response.data;\n */\n async delete<\n P extends AvailabilityExceptionsDeleteParameter,\n EP extends ExtraParameter\n >(\n params: P,\n extraParams?: EP\n ): Promise<AxiosResponse<AvailabilityExceptionsResponse<\"delete\", P, EP>>> {\n return this.axios.post<AvailabilityExceptionsResponse<\"delete\", P, EP>>(\n `${this.endpoint}/delete`,\n { ...params, ...extraParams },\n { headers: this.headers }\n );\n }\n}\n\nexport default AvailabilityExceptions;\n","/**\n * @fileoverview Provides the Bookings class for managing bookings in the Sharetribe Marketplace API.\n * This class allows querying booking records.\n *\n * For more details, refer to the Marketplace API documentation:\n * https://www.sharetribe.com/api-reference/marketplace.html#bookings\n */\n\nimport { AxiosInstance, AxiosResponse } from \"axios\";\nimport MarketplaceApi from \"./index\";\nimport {\n BookingsQueryParameter,\n BookingsResponse,\n} from \"../../types/marketplace/bookings\";\n\n/**\n * Class representing the Bookings API.\n *\n * The Bookings API provides methods to query booking records for marketplace resources.\n */\nclass Bookings {\n private readonly endpoint: string;\n private readonly axios: AxiosInstance;\n private readonly headers: Record<string, string>;\n\n /**\n * Creates an instance of the Bookings class.\n *\n * @param {MarketplaceApi} api - The Marketplace API instance providing configuration and request handling.\n */\n constructor(api: MarketplaceApi) {\n this.endpoint = api.endpoint + \"/bookings\";\n this.axios = api.axios;\n this.headers = api.headers;\n }\n\n /**\n * Queries booking records based on specified filters.\n *\n * @template P\n * @param {P & BookingsQueryParameter} params - Query parameters to filter booking records.\n * @returns {Promise<AxiosResponse<BookingsResponse<'query', P>>>} - A promise resolving to the query results.\n *\n * @example\n * const response = await sdk.bookings.query({\n * listingId: 'listing-id',\n * start: '2024-12-01T00:00:00Z',\n * end: '2024-12-31T23:59:59Z',\n * });\n *\n * const bookings = response.data;\n */\n async query<P extends BookingsQueryParameter>(\n params: P\n ): Promise<AxiosResponse<BookingsResponse<\"query\", P>>> {\n return this.axios.get<BookingsResponse<\"query\", P>>(\n `${this.endpoint}/query`,\n {\n headers: this.headers,\n params,\n }\n );\n }\n}\n\nexport default Bookings;\n","/**\n * @fileoverview Provides the CurrentUser class for managing the current user's account in the Sharetribe Marketplace API.\n * This class includes methods for retrieving, creating, updating, and deleting the current authenticated user.\n *\n * For more details, refer to the Marketplace API documentation:\n * https://www.sharetribe.com/api-reference/marketplace.html#current-user\n */\n\nimport { AxiosInstance, AxiosResponse } from \"axios\";\nimport MarketplaceApi from \"./index\";\nimport {\n CurrentUserChangeEmailParameter,\n CurrentUserChangePasswordParameter,\n CurrentUserCreateParameter,\n CurrentUserCreateWithIdpParameter,\n CurrentUserDeleteParameter,\n CurrentUserResponse,\n CurrentUserShowParameter,\n CurrentUserUpdateProfileParameter,\n CurrentUserVerifyEmailParameter,\n} from \"../../types/marketplace/currentUser\";\nimport { ExtraParameter } from \"../../types/sharetribe\";\n\n/**\n * Class representing the Current User API.\n *\n * This class provides methods to manage the current authenticated user's account,\n * including viewing, creating, updating, and deleting the user profile.\n */\nclass CurrentUser {\n private readonly endpoint: string;\n private readonly axios: AxiosInstance;\n private readonly headers: Record<string, string>;\n public readonly authRequired = true;\n\n /**\n * Creates an instance of the CurrentUser class.\n *\n * @param {MarketplaceApi} api - The Marketplace API instance providing configuration and request handling.\n */\n constructor(api: MarketplaceApi) {\n this.endpoint = api.endpoint + \"/current_user\";\n this.axios = api.axios;\n this.headers = api.headers;\n }\n\n /**\n * Retrieves the current authenticated user's details.\n *\n * @template P\n * @param {P & CurrentUserShowParameter} params - Parameters for the request.\n * @returns {Promise<CurrentUserResponse<'show', P>>} - A promise resolving to the user's details.\n *\n * @example\n * const response = await sdk.currentUser.show({});\n * const user = response.data;\n */\n async show<P extends CurrentUserShowParameter>(\n params: P\n ): Promise<AxiosResponse<CurrentUserResponse<\"show\", P>>> {\n return this.axios.get<CurrentUserResponse<\"show\", P>>(\n `${this.endpoint}/show`,\n {\n headers: this.headers,\n params,\n }\n );\n }\n\n /**\n * Deletes the current authenticated user's account.\n *\n * @template P\n * @template EP\n * @param {P & CurrentUserDeleteParameter} params - Parameters for the request.\n * @param {EP} extraParams - Optional extra parameters for the request.\n * @returns {Promise<CurrentUserResponse<'delete', P>>} - A promise resolving to the deletion confirmation.\n *\n * @example\n * const response = await sdk.currentUser.delete();\n * const result = response.data;\n */\n async delete<P extends CurrentUserDeleteParameter, EP extends ExtraParameter>(\n params: P,\n extraParams: EP | void = {} as EP\n ): Promise<AxiosResponse<CurrentUserResponse<\"delete\", P>>> {\n return this.axios.post<CurrentUserResponse<\"delete\", P>>(\n `${this.endpoint}/delete`,\n { ...params, ...extraParams },\n { headers: this.headers }\n );\n }\n\n /**\n * Creates a new user account.\n *\n * @template P\n * @template EP\n * @param {P & CurrentUserCreateParameter} params - Parameters for the new user.\n * @param {EP} extraParams - Optional extra parameters for the request.\n * @returns {Promise<CurrentUserResponse<'create', P>>} - A promise resolving to the created user's details.\n *\n * @example\n * const response = await sdk.currentUser.create({\n * email: 'user@example.com',\n * password: 'secure-password',\n * firstName: 'First',\n * lastName: 'Last'\n * });\n * const newUser = response.data;\n */\n async create<P extends CurrentUserCreateParameter, EP extends ExtraParameter>(\n params: P,\n extraParams: EP | void = {} as EP\n ): Promise<AxiosResponse<CurrentUserResponse<\"create\", P>>> {\n return this.axios.post<CurrentUserResponse<\"create\", P>>(\n `${this.endpoint}/create`,\n { ...params, ...extraParams },\n { headers: this.headers }\n );\n }\n\n /**\n * Creates a new user account using an identity provider.\n *\n * @template P\n * @template EP\n * @param {P & CurrentUserCreateWithIdpParameter} params - Parameters for the new user with identity provider details.\n * @param {EP} extraParams - Optional extra parameters for the request.\n * @returns {Promise<CurrentUserResponse<'create_with_idp', P>>} - A promise resolving to the created user's details.\n *\n * @example\n * const response = await sdk.currentUser.createWithIdp({\n * idpId: 'provider-id',\n * idpClientId: 'provider-client-id',\n * idpToken: 'provider-token'\n * });\n * const newUser = response.data;\n */\n async createWithIdp<\n P extends CurrentUserCreateWithIdpParameter,\n EP extends ExtraParameter\n >(\n params: P,\n extraParams: EP | void = {} as EP\n ): Promise<AxiosResponse<CurrentUserResponse<\"create_with_idp\", P>>> {\n return this.axios.post<CurrentUserResponse<\"create_with_idp\", P>>(\n `${this.endpoint}/create_with_idp`,\n { ...params, ...extraParams },\n { headers: this.headers }\n );\n }\n\n /**\n * Updates the current authenticated user's profile.\n *\n * @template P\n * @template EP\n * @param {P & CurrentUserUpdateProfileParameter} params - Parameters for updating the profile.\n * @param {EP} extraParams - Optional extra parameters for the request.\n * @returns {Promise<CurrentUserResponse<'update_profile', P>>} - A promise resolving to the updated user's details.\n *\n * @example\n * const response = await sdk.currentUser.updateProfile({\n * firstName: 'UpdatedFirst',\n * lastName: 'UpdatedLast'\n * });\n * const updatedUser = response.data;\n */\n async updateProfile<\n P extends CurrentUserUpdateProfileParameter,\n EP extends ExtraParameter\n >(\n params: P,\n extraParams: EP | void = {} as EP\n ): Promise<AxiosResponse<CurrentUserResponse<\"update_profile\", P>>> {\n return this.axios.post<CurrentUserResponse<\"update_profile\", P>>(\n `${this.endpoint}/update_profile`,\n { ...params, ...extraParams },\n { headers: this.headers }\n );\n }\n\n /**\n * Changes the current authenticated user's password.\n *\n * @template P\n * @template EP\n * @param {P & CurrentUserChangePasswordParameter} params - Parameters for changing the password.\n * @param {EP} extraParams - Optional extra parameters for the request.\n * @returns {Promise<CurrentUserResponse<'change_password', P>>} - A promise resolving to the password change confirmation.\n *\n * @example\n * const response = await sdk.currentUser.changePassword({\n * currentPassword: 'old-password',\n * newPassword: 'new-secure-password'\n * });\n * const result = response.data;\n */\n async changePassword<\n P extends CurrentUserChangePasswordParameter,\n EP extends ExtraParameter\n >(\n params: P,\n extraParams: EP | void = {} as EP\n ): Promise<AxiosResponse<CurrentUserResponse<\"change_password\", P>>> {\n return this.axios.post<CurrentUserResponse<\"change_password\", P>>(\n `${this.endpoint}/change_password`,\n { ...params, ...extraParams },\n { headers: this.headers }\n );\n }\n\n /**\n * Changes the current authenticated user's email address.\n *\n * @template P\n * @template EP\n * @param {P & CurrentUserChangeEmailParameter} params - Parameters for changing the email address.\n * @param {EP} extraParams - Optional extra parameters for the request.\n * @returns {Promise<CurrentUserResponse<'change_email', P>>} - A promise resolving to the email change confirmation.\n *\n * @example\n * const response = await sdk.currentUser.changeEmail({\n * newEmail: 'new-email@example.com',\n * currentPassword: 'current-password'\n * });\n * const result = response.data;\n */\n async changeEmail<\n P extends CurrentUserChangeEmailParameter,\n EP extends ExtraParameter\n >(\n params: P,\n extraParams: EP | void = {} as EP\n ): Promise<AxiosResponse<CurrentUserResponse<\"change_email\", P>>> {\n return this.axios.post<CurrentUserResponse<\"change_email\", P>>(\n `${this.endpoint}/change_email`,\n { ...params, ...extraParams },\n { headers: this.headers }\n );\n }\n\n /**\n * Verifies the current authenticated user's email address.\n *\n * @template P\n * @template EP\n * @param {P & CurrentUserVerifyEmailParameter} params - Parameters for verifying the email address.\n * @param {EP} extraParams - Optional extra parameters for the request.\n * @returns {Promise<CurrentUserResponse<'verify_email', P>>} - A promise resolving to the email verification confirmation.\n *\n * @example\n * const response = await sdk.currentUser.verifyEmail({\n * verificationToken: 'verification-token'\n * });\n * const result = response.data;\n */\n async verifyEmail<\n P extends CurrentUserVerifyEmailParameter,\n EP extends ExtraParameter\n >(\n params: P,\n extraParams: EP | void = {} as EP\n ): Promise<AxiosResponse<CurrentUserResponse<\"verify_email\", P>>> {\n return this.axios.post<CurrentUserResponse<\"verify_email\", P>>(\n `${this.endpoint}/verify_email`,\n { ...params, ...extraParams },\n { headers: this.headers }\n );\n }\n\n /**\n * Sends a verification email to the current authenticated user.\n *\n * @template P\n * @returns {Promise<CurrentUserResponse<'send_verification_email', P>>} - A promise resolving to the email sending confirmation.\n *\n * @example\n * const response = await sdk.currentUser.sendVerificationEmail();\n * const result = response.data;\n */\n async sendVerificationEmail<P extends void>(): Promise<\n AxiosResponse<CurrentUserResponse<\"send_verification_email\", P>>\n > {\n return this.axios.post<CurrentUserResponse<\"send_verification_email\", P>>(\n `${this.endpoint}/send_verification_email`,\n null,\n { headers: this.headers }\n );\n }\n\n /**\n * @deprecated This API endpoint is DEPRECATED. Use /stripe_account/create instead!\n * Throws an error to indicate that this method should not be used.\n */\n async createStripeAccount() {\n throw new Error(\n \"This API endpoint is DEPRECATED. Use /stripe_account/create instead!\"\n );\n }\n\n /**\n * @deprecated This API endpoint is DEPRECATED. Use /stripe_account/update instead!\n * Throws an error to indicate that this method should not be used.\n */\n async updateStripeAccount() {\n throw new Error(\n \"This API endpoint is DEPRECATED. Use /stripe_account/update instead!\"\n );\n }\n}\n\nexport default CurrentUser;\n","/**\n * @fileoverview Provides the Images class for managing images in the Sharetribe Marketplace API.\n * This class allows uploading images for marketplace listings and resources.\n *\n * For more details, refer to the Marketplace API documentation:\n * https://www.sharetribe.com/api-reference/marketplace.html#images\n */\n\nimport { AxiosInstance, AxiosResponse } from \"axios\";\nimport MarketplaceApi from \"./index\";\nimport {\n ImagesResponse,\n ImagesUploadParameter,\n} from \"../../types/marketplace/images\";\nimport { ExtraParameter } from \"../../types/sharetribe\";\n\n/**\n * Class representing the Images API.\n *\n * The Images API provides methods to upload images for marketplace resources.\n */\nclass Images {\n private readonly endpoint: string;\n private readonly axios: AxiosInstance;\n private readonly headers: Record<string, string>;\n public readonly authRequired = true;\n\n /**\n * Creates an instance of the Images class.\n *\n * @param {MarketplaceApi} api - The Marketplace API instance providing configuration and request handling.\n */\n constructor(api: MarketplaceApi) {\n this.endpoint = api.endpoint + \"/images\";\n this.axios = api.axios;\n this.headers = api.headers;\n }\n\n /**\n * Uploads an image to the marketplace.\n *\n * @template P\n * @template EP\n * @param {P & ImagesUploadParameter} params - The image upload parameters, including the image file and metadata.\n * @param {EP & ExtraParameter} extraParams - Optional extra parameters for the request.\n * @returns {Promise<AxiosResponse<ImagesResponse<'upload', EP>>>} - A promise resolving to the uploaded image details.\n *\n * @example\n * const response = await sdk.images.upload({\n * image: file,\n * });\n *\n * const uploadedImage = response.data;\n */\n async upload<P extends ImagesUploadParameter, EP extends ExtraParameter>(\n params: P,\n extraParams: EP | void = {} as EP\n ): Promise<AxiosResponse<ImagesResponse<\"upload\", EP>>> {\n const formDataObj = Object.entries({ ...params, ...extraParams }).reduce(\n (fd, entry) => {\n const [key, val] = entry;\n fd.append(key, val);\n return fd;\n },\n new FormData()\n );\n\n return this.axios.post<ImagesResponse<\"upload\", EP>>(\n `${this.endpoint}/upload`,\n formDataObj,\n { headers: this.headers }\n );\n }\n}\n\nexport default Images;\n","/**\n * @fileoverview Provides the Listings class for managing listings in the Sharetribe Marketplace API.\n * This class allows querying and retrieving details of listings.\n *\n * For more details, refer to the Marketplace API documentation:\n * https://www.sharetribe.com/api-reference/marketplace.html#listings\n */\n\nimport { AxiosInstance, AxiosResponse } from \"axios\";\nimport MarketplaceApi from \"./index\";\nimport {\n ListingsShowParameter,\n ListingsResponse,\n ListingsQueryParameter,\n} from \"../../types/marketplace/listings\";\n\n/**\n * Class representing the Listings API.\n *\n * The Listings API provides methods to query and retrieve details of marketplace listings.\n */\nclass Listings {\n private readonly endpoint: string;\n private readonly axios: AxiosInstance;\n private readonly headers: Record<string, string>;\n\n /**\n * Creates an instance of the Listings class.\n *\n * @param {MarketplaceApi} api - The Marketplace API instance providing configuration and request handling.\n */\n constructor(api: MarketplaceApi) {\n this.endpoint = api.endpoint + \"/listings\";\n this.axios = api.axios;\n this.headers = api.headers;\n }\n\n /**\n * Retrieves details of a specific listing.\n *\n * @template P\n * @param {P & ListingsShowParameter} params - The parameters to identify the listing.\n * @returns {Promise<AxiosResponse<ListingsResponse<'show', P>>>} - A promise resolving to the listing details.\n *\n * @example\n * const response = await sdk.listings.show({ id: 'listing-id' });\n * const listing = response.data;\n */\n async show<P extends ListingsShowParameter>(\n params: P\n ): Promise<AxiosResponse<ListingsResponse<\"show\", P>>> {\n return this.axios.get<ListingsResponse<\"show\", P>>(\n `${this.endpoint}/show`,\n {\n headers: this.headers,\n params,\n }\n );\n }\n\n /**\n * Queries listings based on specified filters.\n *\n * @template P\n * @param {P & ListingsQueryParameter} params - Query parameters to filter listings.\n * @returns {Promise<AxiosResponse<ListingsResponse<'query', P>>>} - A promise resolving to the query results.\n *\n * @example\n * const response = await sdk.listings.query({ ids: ['listing-id-1', 'listing-id-2'] });\n * const listings = response.data;\n */\n async query<P extends ListingsQueryParameter>(\n params: P\n ): Promise<AxiosResponse<ListingsResponse<\"query\", P>>> {\n return this.axios.get<ListingsResponse<\"query\", P>>(\n `${this.endpoint}/query`,\n {\n headers: this.headers,\n params,\n }\n );\n }\n}\n\nexport default Listings;\n","/**\n * @fileoverview Provides the Marketplace class for retrieving marketplace details from the Sharetribe Marketplace API.\n * This class allows accessing configuration and metadata about the marketplace.\n *\n * For more details, refer to the Marketplace API documentation:\n * https://www.sharetribe.com/api-reference/marketplace.html#marketplace\n */\n\nimport { AxiosInstance, AxiosResponse } from \"axios\";\nimport MarketplaceApi from \"./index\";\nimport { MarketplaceResponse } from \"../../types/marketplace/marketplace\";\n\n/**\n * Class representing the Marketplace API.\n *\n * The Marketplace API provides methods to retrieve configuration and metadata about the marketplace.\n */\nclass Marketplace {\n private readonly endpoint: string;\n private readonly axios: AxiosInstance;\n private readonly headers: Record<string, string>;\n\n /**\n * Creates an instance of the Marketplace class.\n *\n * @param {MarketplaceApi} api - The Marketplace API instance providing configuration and request handling.\n */\n constructor(api: MarketplaceApi) {\n this.endpoint = api.endpoint + \"/marketplace\";\n this.axios = api.axios;\n this.headers = api.headers;\n }\n\n /**\n * Retrieves the configuration and metadata of the marketplace.\n *\n * @returns {Promise<AxiosResponse<MarketplaceResponse<'show'>>>} - A promise resolving to the marketplace details.\n *\n * @example\n * const response = await sdk.marketplace.show();\n * const marketplaceDetails = response.data;\n */\n async show(): Promise<AxiosResponse<MarketplaceResponse<\"show\">>> {\n return this.axios.get<MarketplaceResponse<\"show\">>(\n `${this.endpoint}/show`,\n {\n headers: this.headers,\n }\n );\n }\n}\n\nexport default Marketplace;\n","/**\n * @fileoverview Provides the Messages class for managing messages in the Sharetribe Marketplace API.\n * This class allows querying and sending messages.\n *\n * For more details, refer to the Marketplace API documentation:\n * https://www.sharetribe.com/api-reference/marketplace.html#messages\n */\n\nimport { AxiosInstance, AxiosResponse } from \"axios\";\nimport MarketplaceApi from \"./index\";\nimport { ExtraParameter } from \"../../types/sharetribe\";\nimport {\n MessagesQueryParameter,\n MessagesResponse,\n MessagesSendParameter,\n} from \"../../types/marketplace/messages\";\n\n/**\n * Class representing the Messages API.\n *\n * The Messages API provides methods to query and send messages in the marketplace.\n */\nclass Messages {\n private readonly endpoint: string;\n private readonly axios: AxiosInstance;\n private readonly headers: Record<string, string>;\n\n /**\n * Creates an instance of the Messages class.\n *\n * @param {MarketplaceApi} api - The Marketplace API instance providing configuration and request handling.\n */\n constructor(api: MarketplaceApi) {\n this.endpoint = api.endpoint + \"/messages\";\n this.axios = api.axios;\n this.headers = api.headers;\n }\n\n /**\n * Queries messages based on specified filters.\n *\n * @template P\n * @param {P & MessagesQueryParameter} params - Query parameters to filter messages.\n * @returns {Promise<AxiosResponse<MessagesResponse<'query', P>>>} - A promise resolving to the query results.\n *\n * @example\n * const response = await sdk.messages.query({ transactionId: 'transaction-id' });\n * const messages = response.data;\n */\n async query<P extends MessagesQueryParameter>(\n params: P\n ): Promise<AxiosResponse<MessagesResponse<\"query\", P>>> {\n return this.axios.get<MessagesResponse<\"query\", P>>(\n `${this.endpoint}/query`,\n {\n headers: this.headers,\n params,\n }\n );\n }\n\n /**\n * Sends a new message.\n *\n * @template P\n * @template EP\n * @param {P & MessagesSendParameter} params - Parameters specifying the message content and recipient.\n * @param {EP | void} extraParams - Optional extra parameters for the request.\n * @returns {Promise<AxiosResponse<MessagesResponse<'send', P, EP>>>} - A promise resolving to the sent message details.\n *\n * @example\n * const response = await sdk.messages.send({\n * transactionId: 'transaction-id', content: 'Hello!'\n * });\n * const sentMessage = response.data;\n */\n async send<P extends MessagesSendParameter, EP extends ExtraParameter>(\n params: P,\n extraParams: EP | void = {} as EP\n ): Promise<AxiosResponse<MessagesResponse<\"send\", P, EP>>> {\n return this.axios.post<MessagesResponse<\"send\", P, EP>>(\n `${this.endpoint}/create`,\n { ...params, ...extraParams },\n this.headers\n );\n }\n}\n\nexport default Messages;\n","/**\n * @fileoverview Provides the OwnListings class for managing the authenticated user's listings in the Sharetribe Marketplace API.\n * This class includes methods for creating, updating, publishing, and managing the lifecycle of listings.\n *\n * For more details, refer to the Marketplace API documentation:\n * https://www.sharetribe.com/api-reference/marketplace.html#own-listings\n */\n\nimport { AxiosInstance, AxiosResponse } from \"axios\";\nimport MarketplaceApi from \"./index\";\nimport {\n OwnListingsAddImageParameter,\n OwnListingsCloseParameter,\n OwnListingsCreateDraftParameter,\n OwnListingsCreateParameter,\n OwnListingsDiscardDraftParameter,\n OwnListingsOpenParameter,\n OwnListingsPublishDraftParameter,\n OwnListingsQueryParameter,\n OwnListingsResponse,\n OwnListingsShowParameter,\n OwnListingsUpdateParameter,\n} from \"../../types/marketplace/ownListings\";\nimport { ExtraParameter } from \"../../types/sharetribe\";\n\n/**\n * Class representing the Own Listings API.\n *\n * This class provides methods for the authenticated user to manage their listings, including creating, updating, publishing drafts, and adding images.\n */\nclass OwnListings {\n private readonly endpoint: string;\n private readonly axios: AxiosInstance;\n private readonly headers: Record<string, string>;\n public readonly authRequired = true;\n\n /**\n * Creates an instance of the OwnListings class.\n *\n * @param {MarketplaceApi} api - The Marketplace API instance providing configuration and request handling.\n */\n constructor(api: MarketplaceApi) {\n this.endpoint = api.endpoint + \"/own_listings\";\n this.axios = api.axios;\n this.headers = api.headers;\n }\n\n /**\n * Retrieves details of a specific listing.\n *\n * @template P\n * @param {OwnListingsShowParameter} params - Parameters identifying the listing.\n * @returns {Promise<AxiosResponse<OwnListingsResponse<'show', P>>>} - A promise resolving to the listing details.\n *\n * @example\n * const response = await sdk.ownListings.show({ id: 'listing-id' });\n * const listing = response.data;\n */\n async show<P extends OwnListingsShowParameter>(\n params: P\n ): Promise<AxiosResponse<OwnListingsResponse<\"show\", P>>> {\n return this.axios.get<OwnListingsResponse<\"show\", P>>(\n `${this.endpoint}/show`,\n {\n headers: this.headers,\n params,\n }\n );\n }\n\n /**\n * Queries the user's listings based on specified filters.\n *\n * @template P\n * @param {OwnListingsQueryParameter} params - Query parameters to filter listings.\n * @returns {Promise<AxiosResponse<OwnListingsResponse<'query', P>>>} - A promise resolving to the query results.\n *\n * @example\n * const response = await sdk.ownListings.query({});\n * const listings = response.data;\n */\n async query<P extends OwnListingsQueryParameter>(\n params: P\n ): Promise<AxiosResponse<OwnListingsResponse<\"query\", P>>> {\n return this.axios.get<OwnListingsResponse<\"query\", P>>(\n `${this.endpoint}/query`,\n {\n headers: this.headers,\n params,\n }\n );\n }\n\n /**\n * Creates a new listing.\n *\n * @template P\n * @template EP\n * @param {P & OwnListingsCreateParameter} params - Parameters for the new listing.\n * @param {EP | void} extraParams - Optional extra parameters for the request.\n * @returns {Promise<AxiosResponse<OwnListingsResponse<'create', P, EP>>>} - A promise resolving to the created listing details.\n *\n * @example\n * const response = await sdk.ownListings.create({\n * title: 'New Listing',\n * description: 'Description',\n * price: {\n * amount: 1000,\n * currency: 'USD'\n * }\n * });\n * const newListing = response.data;\n */\n async create<P extends OwnListingsCreateParameter, EP extends ExtraParameter>(\n params: P,\n extraParams?: EP\n ): Promise<AxiosResponse<OwnListingsResponse<\"create\", P, EP>>> {\n return this.axios.post<OwnListingsResponse<\"create\", P, EP>>(\n `${this.endpoint}/create`,\n { ...params, ...extraParams },\n { headers: this.headers }\n );\n }\n\n /**\n * Creates a draft listing.\n *\n * @template P\n * @template EP\n * @param {P & OwnListingsCreateDraftParameter} params - Parameters for the draft listing.\n * @param {EP | void} extraParams - Optional extra parameters for the request.\n * @returns {Promise<AxiosResponse<OwnListingsResponse<'createDraft', P, EP>>>} - A promise resolving to the created draft details.\n *\n * @example\n * const response = await sdk.ownListings.createDraft({\n * title: 'Draft Listing',\n * description: 'This is a draft',\n * });\n * const draft = response.data;\n */\n async createDraft<\n P extends OwnListingsCreateDraftParameter,\n EP extends ExtraParameter\n >(\n params: P,\n extraParams?: EP\n ): Promise<AxiosResponse<OwnListingsResponse<\"createDraft\", P, EP>>> {\n return this.axios.post<OwnListingsResponse<\"createDraft\", P, EP>>(\n `${this.endpoint}/create_draft`,\n { ...params, ...extraParams },\n { headers: this.headers }\n );\n }\n\n /**\n * Updates an existing listing.\n *\n * @template P\n * @template EP\n * @param {P & OwnListingsUpdateParameter} params - Parameters for updating the listing.\n * @param {EP | void} extraParams - Optional extra parameters for the request.\n * @returns {Promise<AxiosResponse<OwnListingsResponse<'update', P, EP>>>} - A promise resolving to the updated listing details.\n *\n * @example\n * const response = await sdk.ownListings.update({\n * id: 'listing-id',\n * title: 'Updated Listing Title',\n * });\n * const updatedListing = response.data;\n */\n async update<P extends OwnListingsUpdateParameter, EP extends ExtraParameter>(\n params: P,\n extraParams?: EP\n ): Promise<AxiosResponse<OwnListingsResponse<\"update\", P, EP>>> {\n return this.axios.post<OwnListingsResponse<\"update\", P, EP>>(\n `${this.endpoint}/update`,\n { ...params, ...extraParams },\n { headers: this.headers }\n );\n }\n\n /**\n * Publishes a draft listing.\n *\n * @template P\n * @template EP\n * @param {P & OwnListingsPublishDraftParameter} params - Parameters for publishing the draft listing.\n * @param {EP | void} extraParams - Optional extra parameters for the request.\n * @returns {Promise<AxiosResponse<OwnListingsResponse<'publishDraft', P, EP>>>} - A promise resolving to the published listing details.\n *\n * @example\n * const response = await sdk.ownListings.publishDraft({\n * id: 'draft-id',\n * });\n * const publishedListing = response.data;\n */\n async publishDraft<\n P extends OwnListingsPublishDraftParameter,\n EP extends ExtraParameter\n >(\n params: P,\n extraParams?: EP\n ): Promise<AxiosResponse<OwnListingsResponse<\"publishDraft\", P, EP>>> {\n return this.axios.post<OwnListingsResponse<\"publishDraft\", P, EP>>(\n `${this.endpoint}/publish_draft`,\n { ...params, ...extraParams },\n { headers: this.headers }\n );\n }\n\n /**\n * Discards a draft listing.\n *\n * @template P\n * @param {P & OwnListingsDiscardDraftParameter} params - Parameters for discarding the draft.\n * @returns {Promise<AxiosResponse<OwnListingsResponse<'discardDraft', P>>>} - A promise resolving to the discard confirmation.\n *\n * @example\n * const response = await sdk.ownListings.discardDraft({ id: 'draft-id' });\n * const result = response.data;\n */\n async discardDraft<P extends OwnListingsDiscardDraftParameter>(\n params: P\n ): Promise<AxiosResponse<OwnListingsResponse<\"discardDraft\", P>>> {\n return this.axios.post<OwnListingsResponse<\"discardDraft\", P>>(\n `${this.endpoint}/discard_draft`,\n params,\n { headers: this.headers }\n );\n }\n\n /**\n * Closes a listing.\n *\n * @template P\n * @template EP\n * @param {P & OwnListingsCloseParameter} params - Parameters for closing the listing.\n * @param {EP | void} extraParams - Optional extra parameters for the request.\n * @returns {Promise<AxiosResponse<OwnListingsResponse<'close', P>>>} - A promise resolving to the closed listing details.\n *\n * @example\n * const response = await sdk.ownListings.close({ id: 'listing-id' });\n * const closedListing = response.data;\n */\n async close<P extends OwnListingsCloseParameter, EP extends ExtraParameter>(\n params: P,\n extraParams?: EP\n ): Promise<AxiosResponse<OwnListingsResponse<\"close\", P>>> {\n return this.axios.post<OwnListingsResponse<\"close\", P>>(\n `${this.endpoint}/close`,\n { ...params, ...extraParams },\n { headers: this.headers }\n );\n }\n\n /**\n * Opens a listing.\n *\n * @template P\n * @template EP\n * @param {P & OwnListingsOpenParameter} params - Parameters for opening the listing.\n * @param {EP | void} extraParams - Optional extra parameters for the request.\n * @returns {Promise<AxiosResponse<OwnListingsResponse<'open', P>>>} - A promise resolving to the opened listing details.\n *\n * @example\n * const response = await sdk.ownListings.open({ id: 'listing-id' });\n * const openedListing = response.data;\n */\n async open<P extends OwnListingsOpenParameter, EP extends ExtraParameter>(\n params: P,\n extraParams?: EP\n ): Promise<AxiosResponse<OwnListingsResponse<\"open\", P>>> {\n return this.axios.post<OwnListingsResponse<\"open\", P>>(\n `${this.endpoint}/open`,\n { ...params, ...extraParams },\n { headers: this.headers }\n );\n }\n\n /**\n * Adds an image to a listing.\n *\n * @template P\n * @template EP\n * @param {P & OwnListingsAddImageParameter} params - Parameters specifying the image to add.\n * @param {EP | void} extraParams - Optional extra parameters for the request.\n * @returns {Promise<AxiosResponse<OwnListingsResponse<'addImage', P>>>} - A promise resolving to the updated listing details.\n *\n * @example\n * const response = await sdk.ownListings.addImage({\n * id: 'listing-id', imageId: 'image-id'\n * });\n * const updatedListing = response.data;\n */\n async addImage<\n P extends OwnListingsAddImageParameter,\n EP extends ExtraParameter\n >(\n params: P,\n extraParams?: EP\n ): Promise<AxiosResponse<OwnListingsResponse<\"addImage\", P>>> {\n return this.axios.post<OwnListingsResponse<\"addImage\", P>>(\n `${this.endpoint}/add_image`,\n { ...params, ...extraParams },\n { headers: this.headers }\n );\n }\n}\n\nexport default OwnListings;\n","/**\n * @fileoverview Provides the PasswordReset class for managing password reset requests and operations in the Sharetribe Marketplace API.\n * This class includes methods for requesting a password reset and resetting the password using a token.\n *\n * For more details, refer to the Marketplace API documentation:\n * https://www.sharetribe.com/api-reference/marketplace.html#password-reset\n */\n\nimport { AxiosInstance, AxiosResponse } from \"axios\";\nimport MarketplaceApi from \"./index\";\nimport {\n PasswordResetRequestParams,\n PasswordResetResetParams,\n PasswordResetResponse,\n} from \"../../types/marketplace/passwordReset\";\nimport { ExtraParameter } from \"../../types/sharetribe\";\n\n/**\n * Class representing the Password Reset API.\n *\n * The Password Reset API provides methods for requesting a password reset email and resetting the password.\n */\nclass PasswordReset {\n private readonly endpoint: string;\n private readonly axios: AxiosInstance;\n private readonly headers: Record<string, string>;\n\n /**\n * Creates an instance of the PasswordReset class.\n *\n * @param {MarketplaceApi} api - The Marketplace API instance providing configuration and request handling.\n */\n constructor(api: MarketplaceApi) {\n this.endpoint = api.endpoint + \"/password_reset\";\n this.axios = api.axios;\n this.headers = api.headers;\n }\n\n /**\n * Requests a password reset email.\n *\n * @template P\n * @template EP\n * @param {P & PasswordResetRequestParams} params - Parameters for the password reset request.\n * @param {EP | void} extraParams - Optional extra parameters for the request.\n * @returns {Promise<AxiosResponse<PasswordResetResponse<'request', EP>>>} - A promise resolving to the password reset request response.\n *\n * @example\n * const response = await sdk.passwordReset.request({\n * email: 'user@example.com',\n * });\n * const result = response.data;\n */\n async request<\n P extends PasswordResetRequestParams,\n EP extends ExtraParameter\n >(\n params: P,\n extraParams?: EP\n ): Promise<AxiosResponse<PasswordResetResponse<\"request\", EP>>> {\n return this.axios.post<PasswordResetResponse<\"request\", EP>>(\n `${this.endpoint}/request`,\n { ...params, ...extraParams },\n { headers: this.headers }\n );\n }\n\n /**\n * Resets the user's password using a token.\n *\n * @template P\n * @template EP\n * @param {P & PasswordResetResetParams} params - Parameters for resetting the password.\n * @param {EP | void} extraParams - Optional extra parameters for the request.\n * @returns {Promise<AxiosResponse<PasswordResetResponse<'reset', EP>>>} - A promise resolving to the password reset confirmation response.\n *\n * @example\n * const response = await sdk.passwordReset.reset({\n * email: 'user@example.com',\n * passwordResetToken: 'password-reset-token',\n * newPassword: 'new-password',\n * });\n * const result = response.data;\n */\n async reset<P extends PasswordResetResetParams, EP extends ExtraParameter>(\n params: P,\n extraParams?: EP\n ): Promise<AxiosResponse<PasswordResetResponse<\"reset\", EP>>> {\n return this.axios.post<PasswordResetResponse<\"reset\", EP>>(\n `${this.endpoint}/reset`,\n { ...params, ...extraParams },\n { headers: this.headers }\n );\n }\n}\n\nexport default PasswordReset;\n","/**\n * @fileoverview Provides the ProcessTransitions class for managing process transitions in the Sharetribe Marketplace API.\n * This class includes a method for querying process transitions.\n *\n * For more details, refer to the Marketplace API documentation:\n * https://www.sharetribe.com/api-reference/marketplace.html#process-transitions\n */\n\nimport { AxiosInstance, AxiosResponse } from \"axios\";\nimport MarketplaceApi from \"./index\";\nimport {\n ProcessTransitionsQueryParameter,\n ProcessTransitionsResponse,\n} from \"../../types/marketplace/processTransitions\";\n\n/**\n * Class representing the Process Transitions API.\n *\n * The Process Transitions API provides methods for querying transitions within processes.\n */\nclass ProcessTransitions {\n private readonly endpoint: string;\n private readonly axios: AxiosInstance;\n private readonly headers: Record<string, string>;\n public readonly authRequired = true;\n\n /**\n * Creates an instance of the ProcessTransitions class.\n *\n * @param {MarketplaceApi} api - The Marketplace API instance providing configuration and request handling.\n */\n constructor(api: MarketplaceApi) {\n this.endpoint = api.endpoint + \"/process_transitions\";\n this.axios = api.axios;\n this.headers = api.headers;\n }\n\n /**\n * Queries process transitions based on specified filters.\n *\n * @template P\n * @param {P & ProcessTransitionsQueryParameter} params - Query parameters for filtering transitions.\n * @returns {Promise<AxiosResponse<ProcessTransitionsResponse<'query'>>>} - A promise resolving to the query results.\n *\n * @example\n * const response = await sdk.processTransitions.query({\n * processAlias: 'booking-process',\n * });\n * const transitions = response.data;\n */\n async query<P extends ProcessTransitionsQueryParameter>(\n params: P\n ): Promise<AxiosResponse<ProcessTransitionsResponse<\"query\">>> {\n return this.axios.get<ProcessTransitionsResponse<\"query\">>(\n `${this.endpoint}/query`,\n {\n headers: this.headers,\n params,\n }\n );\n }\n}\n\nexport default ProcessTransitions;\n","/**\n * @fileoverview Provides the Reviews class for managing reviews in the Sharetribe Marketplace API.\n * This class includes methods for querying and retrieving details of reviews.\n *\n * For more details, refer to the Marketplace API documentation:\n * https://www.sharetribe.com/api-reference/marketplace.html#reviews\n */\n\nimport { AxiosInstance, AxiosResponse } from \"axios\";\nimport MarketplaceApi from \"./index\";\nimport {\n ReviewsQueryParameter,\n ReviewsResponse,\n ReviewsShowParameter,\n} from \"../../types/marketplace/reviews\";\n\n/**\n * Class representing the Reviews API.\n *\n * The Reviews API provides methods for querying and retrieving details of reviews within the marketplace.\n */\nclass Reviews {\n private readonly endpoint: string;\n private readonly axios: AxiosInstance;\n private readonly headers: Record<string, string>;\n\n /**\n * Creates an instance of the Reviews class.\n *\n * @param {MarketplaceApi} api - The Marketplace API instance providing configuration and request handling.\n */\n constructor(api: MarketplaceApi) {\n this.endpoint = api.endpoint + \"/reviews\";\n this.axios = api.axios;\n this.headers = api.headers;\n }\n\n /**\n * Retrieves details of a specific review.\n *\n * @template P\n * @param {P & ReviewsShowParameter} params - Parameters identifying the review.\n * @returns {Promise<AxiosResponse<ReviewsResponse<'show', P>>>} - A promise resolving to the review details.\n *\n * @example\n * const response = await sdk.reviews.show({ id: 'review-id' });\n * const review = response.data;\n */\n async show<P extends ReviewsShowParameter>(\n params: P\n ): Promise<AxiosResponse<ReviewsResponse<\"show\", P>>> {\n return this.axios.get<ReviewsResponse<\"show\", P>>(`${this.endpoint}/show`, {\n headers: this.headers,\n params,\n });\n }\n\n /**\n * Queries reviews based on specified filters.\n *\n * @template P\n * @param {P & ReviewsQueryParameter} params - Query parameters to filter reviews.\n * @returns {Promise<AxiosResponse<ReviewsResponse<'query', P>>>} - A promise resolving to the query results.\n *\n * @example\n * const response = await sdk.reviews.query({ listingId: 'listing-id', perPage: 10 });\n * const reviews = response.data;\n */\n async query<P extends ReviewsQueryParameter>(\n params: P\n ): Promise<AxiosResponse<ReviewsResponse<\"query\", P>>> {\n return this.axios.get<ReviewsResponse<\"query\", P>>(\n `${this.endpoint}/query`,\n {\n headers: this.headers,\n params,\n }\n );\n }\n}\n\nexport default Reviews;\n","/**\n * @fileoverview Provides the Stock class for managing stock levels in the Sharetribe Marketplace API.\n * This class includes methods for comparing and setting stock levels.\n *\n * For more details, refer to the Marketplace API documentation:\n * https://www.sharetribe.com/api-reference/marketplace.html#stock\n */\n\nimport { AxiosInstance, AxiosResponse } from \"axios\";\nimport MarketplaceApi from \"./index\";\nimport {\n StockCompareAndSetParameter,\n StockResponse,\n} from \"../../types/marketplace/stock\";\nimport { ExtraParameter } from \"../../types/sharetribe\";\n\n/**\n * Class representing the Stock API.\n *\n * The Stock API provides methods for comparing and setting stock levels for marketplace resources.\n */\nclass Stock {\n private readonly endpoint: string;\n private readonly axios: AxiosInstance;\n public readonly authRequired = true;\n\n /**\n * Creates an instance of the Stock class.\n *\n * @param {MarketplaceApi} api - The Marketplace API instance providing configuration and request handling.\n */\n constructor(api: MarketplaceApi) {\n this.endpoint = api.endpoint + \"/stock\";\n this.axios = api.axios;\n }\n\n /**\n * Compares and sets stock levels for a specific resource.\n *\n * @template P\n * @template EP\n * @param {P & StockCompareAndSetParameter} params - Parameters for comparing and setting stock levels.\n * @param {EP} extraParams - Optional extra parameters for the request.\n * @returns {Promise<AxiosResponse<StockResponse<'compareAndSet', EP>>>} - A promise resolving to the result of the stock comparison and update.\n *\n * @example\n * const response = await sdk.stock.compareAndSet({\n * listingId: 'listing-1',\n * oldTotal: 10,\n * newTotal: 100\n * });\n * const stockUpdateResult = response.data;\n */\n async compareAndSet<\n P extends StockCompareAndSetParameter,\n EP extends ExtraParameter\n >(\n params: P,\n extraParams: EP | void = {} as EP\n ): Promise<AxiosResponse<StockResponse<\"compareAndSet\", EP>>> {\n return this.axios.post<StockResponse<\"compareAndSet\", EP>>(\n `${this.endpoint}/compare_and_set`,\n { ...params, ...extraParams }\n );\n }\n}\n\nexport default Stock;\n","/**\n * @fileoverview Provides the StockAdjustments class for managing stock adjustments in the Sharetribe Marketplace API.\n * This class includes methods for querying and creating stock adjustments.\n *\n * For more details, refer to the Marketplace API documentation:\n * https://www.sharetribe.com/api-reference/marketplace.html#stock-adjustments\n */\n\nimport { AxiosInstance, AxiosResponse } from \"axios\";\nimport MarketplaceApi from \"./index\";\nimport {\n StockAdjustmentsCreateParameter,\n StockAdjustmentsQueryParameter,\n StockAdjustmentsResponse,\n} from \"../../types/marketplace/stockAdjustment\";\nimport { ExtraParameter } from \"../../types/sharetribe\";\n\n/**\n * Class representing the Stock Adjustments API.\n *\n * The Stock Adjustments API provides methods for querying and creating adjustments to stock levels.\n */\nclass StockAdjustments {\n private readonly endpoint: string;\n private readonly axios: AxiosInstance;\n private readonly headers: Record<string, string>;\n public readonly authRequired = true;\n\n /**\n * Creates an instance of the StockAdjustments class.\n *\n * @param {MarketplaceApi} api - The Marketplace API instance providing configuration and request handling.\n */\n constructor(api: MarketplaceApi) {\n this.endpoint = api.endpoint + \"/stock_adjustments\";\n this.axios = api.axios;\n this.headers = api.headers;\n }\n\n /**\n * Queries stock adjustments based on specified filters.\n *\n * @template P\n * @param {P & StockAdjustmentsQueryParameter} params - Query parameters to filter stock adjustments.\n * @returns {Promise<AxiosResponse<StockAdjustmentsResponse<'query', P>>>} - A promise resolving to the query results.\n *\n * @example\n * const response = await sdk.stockAdjustments.query({\n * listingId: 'listing-id',\n * start: new Date('2022-01-01'),\n * end: new Date('2022-01-31'),\n * });\n * const stockAdjustments = response.data;\n */\n async query<P extends StockAdjustmentsQueryParameter>(\n params: P\n ): Promise<AxiosResponse<StockAdjustmentsResponse<\"query\", P>>> {\n return this.axios.get<StockAdjustmentsResponse<\"query\", P>>(\n `${this.endpoint}/query`,\n {\n headers: this.headers,\n params,\n }\n );\n }\n\n /**\n * Creates a stock adjustment for a specific resource.\n *\n * @template P\n * @template EP\n * @param {P & StockAdjustmentsCreateParameter} params - Parameters for the stock adjustment.\n * @param {EP | void} extraParams - Optional extra parameters for the request.\n * @returns {Promise<AxiosResponse<StockAdjustmentsResponse<'create', P, EP>>>} - A promise resolving to the created stock adjustment details.\n *\n * @example\n * const response = await sdk.stockAdjustments.create({\n * listingId: 'listing-id',\n * quantity: 5,\n * });\n * const createdAdjustment = response.data;\n */\n async create<\n P extends StockAdjustmentsCreateParameter,\n EP extends ExtraParameter | undefined\n >(\n params: P,\n extraParams?: EP\n ): Promise<AxiosResponse<StockAdjustmentsResponse<\"create\", P, EP>>> {\n return this.axios.post<StockAdjustmentsResponse<\"create\", P, EP>>(\n `${this.endpoint}/create`,\n { ...params, ...extraParams },\n { headers: this.headers }\n );\n }\n}\n\nexport default StockAdjustments;\n","/**\n * @fileoverview Provides the StripeAccount class for managing Stripe accounts in the Sharetribe Marketplace API.\n * This class includes methods for fetching, creating, and updating Stripe accounts.\n *\n * For more details, refer to the Marketplace API documentation:\n * https://www.sharetribe.com/api-reference/marketplace.html#stripe-account\n */\n\nimport { AxiosInstance, AxiosResponse } from \"axios\";\nimport MarketplaceApi from \"./index\";\nimport {\n StripeAccountCreateParameter,\n StripeAccountResponse,\n StripeAccountUpdateParameter,\n} from \"../../types/marketplace/stripeAccount\";\nimport { ExtraParameter } from \"../../types/sharetribe\";\n\n/**\n * Class representing the Stripe Account API.\n *\n * The Stripe Account API provides methods for managing Stripe accounts associated with the marketplace.\n */\nclass StripeAccount {\n private readonly endpoint: string;\n private readonly axios: AxiosInstance;\n private readonly headers: Record<string, string>;\n public readonly authRequired = true;\n\n /**\n * Creates an instance of the StripeAccount class.\n *\n * @param {MarketplaceApi} api - The Marketplace API instance providing configuration and request handling.\n */\n constructor(api: MarketplaceApi) {\n this.endpoint = api.endpoint + \"/stripe_account\";\n this.axios = api.axios;\n this.headers = api.headers;\n }\n\n /**\n * Fetches the current Stripe account details.\n *\n * @returns {Promise<AxiosResponse<StripeAccountResponse<'fetch'>>>} - A promise resolving to the Stripe account details.\n *\n * @example\n * const response = await sdk.stripeAccount.fetch();\n * const stripeAccountDetails = response.data;\n */\n async fetch(): Promise<AxiosResponse<StripeAccountResponse<\"fetch\">>> {\n return this.axios.get<StripeAccountResponse<\"fetch\">>(\n `${this.endpoint}/fetch`,\n {\n headers: this.headers,\n }\n );\n }\n\n /**\n * Creates a new Stripe account.\n *\n * @template P\n * @template EP\n * @param {P & StripeAccountCreateParameter} params - Parameters for creating the Stripe account.\n * @param {EP | void} extraParams - Optional extra parameters for the request.\n * @returns {Promise<AxiosResponse<StripeAccountResponse<'create', EP>>>} - A promise resolving to the created Stripe account details.\n *\n * @example\n * const response = await sdk.stripeAccount.create({\n * country: 'US',\n * accountToken: 'account-token',\n * bankAccountToken: 'bank-account-token',\n * businessProfileMCC: '1234',\n * businessProfileURL: 'https://example.com',\n * businessProfileProductDescription: 'Product description',\n * requestedCapabilities: ['card_payments', 'transfers'],\n * });\n * const createdStripeAccount = response.data;\n */\n async create<\n P extends StripeAccountCreateParameter,\n EP extends ExtraParameter\n >(\n params: P,\n extraParams?: EP\n ): Promise<AxiosResponse<StripeAccountResponse<\"create\", EP>>> {\n return this.axios.post<StripeAccountResponse<\"create\", EP>>(\n `${this.endpoint}/create`,\n { ...params, ...extraParams },\n { headers: this.headers }\n );\n }\n\n /**\n * Updates an existing Stripe account.\n *\n * @template P\n * @template EP\n * @param {P & StripeAccountUpdateParameter} params - Parameters for updating the Stripe account.\n * @param {EP | void} extraParams - Optional extra parameters for the request.\n * @returns {Promise<AxiosResponse<StripeAccountResponse<'update', EP>>>} - A promise resolving to the updated Stripe account details.\n *\n * @example\n * const response = await sdk.stripeAccount.update({\n * accountToken: 'new-account-token',\n * });\n * const updatedStripeAccount = response.data;\n */\n async update<\n P extends StripeAccountUpdateParameter,\n EP extends ExtraParameter\n >(\n params: P,\n extraParams?: EP\n ): Promise<AxiosResponse<StripeAccountResponse<\"update\", EP>>> {\n return this.axios.post<StripeAccountResponse<\"update\", EP>>(\n `${this.endpoint}/update`,\n { ...params, ...extraParams },\n { headers: this.headers }\n );\n }\n}\n\nexport default StripeAccount;\n","/**\n * @fileoverview Provides the StripeAccountLinks class for managing Stripe account links in the Sharetribe Marketplace API.\n * This class includes methods for creating account links to manage Stripe accounts.\n *\n * For more details, refer to the Marketplace API documentation:\n * https://www.sharetribe.com/api-reference/marketplace.html#stripe-account-links\n */\n\nimport { AxiosInstance, AxiosResponse } from \"axios\";\nimport MarketplaceApi from \"./index\";\nimport {\n StripeAccountLinksCreateParameter,\n StripeAccountLinksResponse,\n} from \"../../types/marketplace/stripeAccountLinks\";\nimport { ExtraParameter } from \"../../types/sharetribe\";\n\n/**\n * Class representing the Stripe Account Links API.\n *\n * The Stripe Account Links API provides methods for creating links to manage Stripe accounts, such as onboarding links.\n */\nclass StripeAccountLinks {\n private readonly endpoint: string;\n private readonly axios: AxiosInstance;\n private readonly headers: Record<string, string>;\n public readonly authRequired = true;\n\n /**\n * Creates an instance of the StripeAccountLinks class.\n *\n * @param {MarketplaceApi} api - The Marketplace API instance providing configuration and request handling.\n */\n constructor(api: MarketplaceApi) {\n this.endpoint = api.endpoint + \"/stripe_account_links\";\n this.axios = api.axios;\n this.headers = api.headers;\n }\n\n /**\n * Creates a new Stripe account link.\n *\n * @template P\n * @template EP\n * @param {P & StripeAccountLinksCreateParameter} params - Parameters for creating the account link.\n * @param {EP | void} extraParams - Optional extra parameters for the request.\n * @returns {Promise<AxiosResponse<StripeAccountLinksResponse<'create', EP>>>} - A promise resolving to the created account link details.\n *\n * @example\n * const response = await sdk.stripeAccountLinks.create({\n * failureURL: 'https://example.com/failure',\n * successURL: 'https://example.com/success',\n * type: 'custom_account_verification',\n * collectionOptions: {\n * fields: ['currently_due', 'eventually_due'],\n * future_requirements: ['include', 'omit'],\n * },\n * });\n * const accountLink = response.data;\n */\n async create<\n P extends StripeAccountLinksCreateParameter,\n EP extends ExtraParameter\n >(\n params: P,\n extraParams?: EP\n ): Promise<AxiosResponse<StripeAccountLinksResponse<\"create\", EP>>> {\n return this.axios.post<StripeAccountLinksResponse<\"create\", EP>>(\n `${this.endpoint}/create`,\n { ...params, ...extraParams },\n { headers: this.headers }\n );\n }\n}\n\nexport default StripeAccountLinks;\n","/**\n * @fileoverview Provides the StripeCustomer class for managing Stripe customers in the Sharetribe Marketplace API.\n * This class includes methods for creating customers, adding payment methods, and deleting payment methods.\n *\n * For more details, refer to the Marketplace API documentation:\n * https://www.sharetribe.com/api-reference/marketplace.html#stripe-customer\n */\n\nimport { AxiosInstance, AxiosResponse } from \"axios\";\nimport MarketplaceApi from \"./index\";\nimport {\n StripeCustomerAddPaymentMethodParameter,\n StripeCustomerCreateParameter,\n StripeCustomerDeletePaymentMethodParameter,\n StripeCustomerResponse,\n} from \"../../types/marketplace/stripeCustomer\";\nimport { ExtraParameter } from \"../../types/sharetribe\";\n\n/**\n * Class representing the Stripe Customer API.\n *\n * The Stripe Customer API provides methods for managing Stripe customers, including creating customers and managing payment methods.\n */\nclass StripeCustomer {\n private readonly endpoint: string;\n private readonly axios: AxiosInstance;\n private readonly headers: Record<string, string>;\n public readonly authRequired = true;\n\n /**\n * Creates an instance of the StripeCustomer class.\n *\n * @param {MarketplaceApi} api - The Marketplace API instance providing configuration and request handling.\n */\n constructor(api: MarketplaceApi) {\n this.endpoint = api.endpoint + \"/stripe_customer\";\n this.axios = api.axios;\n this.headers = api.headers;\n }\n\n /**\n * Creates a new Stripe customer.\n *\n * @template P\n * @template EP\n * @param {P & StripeCustomerCreateParameter} params - Parameters for creating the Stripe customer.\n * @param {EP | void} extraParams - Optional extra parameters for the request.\n * @returns {Promise<AxiosResponse<StripeCustomerResponse<'create', P, EP>>>} - A promise resolving to the created customer details.\n *\n * @example\n * const response = await sdk.stripeCustomer.create({\n * stripePaymentMethodId: 'payment-method-id',\n * stripeCustomerEmail: 'user@example.com'\n * });\n * const customer = response.data;\n */\n async create<\n P extends StripeCustomerCreateParameter,\n EP extends ExtraParameter\n >(\n params: P,\n extraParams?: EP\n ): Promise<AxiosResponse<StripeCustomerResponse<\"create\", P, EP>>> {\n return this.axios.post<StripeCustomerResponse<\"create\", P, EP>>(\n `${this.endpoint}/create`,\n { ...params, ...extraParams },\n { headers: this.headers }\n );\n }\n\n /**\n * Adds a payment method to a Stripe customer.\n *\n * @template P\n * @template EP\n * @param {P & StripeCustomerAddPaymentMethodParameter} params - Parameters for adding a payment method.\n * @param {EP | void} extraParams - Optional extra parameters for the request.\n * @returns {Promise<AxiosResponse<StripeCustomerResponse<'addPaymentMethod', P, EP>>>} - A promise resolving to the updated customer details.\n *\n * @example\n * const response = await sdk.stripeCustomer.addPaymentMethod({\n * stripePaymentMethodId: 'payment-method-id'\n * });\n * const updatedCustomer = response.data;\n */\n async addPaymentMethod<\n P extends StripeCustomerAddPaymentMethodParameter,\n EP extends ExtraParameter\n >(\n params: P,\n extraParams?: EP\n ): Promise<AxiosResponse<StripeCustomerResponse<\"addPaymentMethod\", P, EP>>> {\n return this.axios.post<StripeCustomerResponse<\"addPaymentMethod\", P, EP>>(\n `${this.endpoint}/add_payment_method`,\n { ...params, ...extraParams },\n { headers: this.headers }\n );\n }\n\n /**\n * Deletes a payment method from a Stripe customer.\n *\n * @template P\n * @template EP\n * @param {P & StripeCustomerDeletePaymentMethodParameter} params - Parameters for deleting the payment method.\n * @param {EP | void} extraParams - Optional extra parameters for the request.\n * @returns {Promise<AxiosResponse<StripeCustomerResponse<'deletePaymentMethod', P>>>} - A promise resolving to the confirmation of deletion.\n *\n * @example\n * const response = await sdk.stripeCustomer.deletePaymentMethod({ customer_id: 'customer-id', payment_method_id: 'payment-method-id' });\n * const result = response.data;\n */\n async deletePaymentMethod<\n P extends StripeCustomerDeletePaymentMethodParameter,\n EP extends ExtraParameter\n >(\n params: P,\n extraParams?: EP\n ): Promise<\n AxiosResponse<StripeCustomerResponse<\"deletePaymentMethod\", P, EP>>\n > {\n return this.axios.post<\n StripeCustomerResponse<\"deletePaymentMethod\", P, EP>\n >(\n `${this.endpoint}/delete_payment_method`,\n { ...params, ...extraParams },\n { headers: this.headers }\n );\n }\n}\n\nexport default StripeCustomer;\n","/**\n * @fileoverview Provides the StripePersons class for managing Stripe persons in the Sharetribe Marketplace API.\n * This class includes methods for creating persons associated with Stripe accounts.\n *\n * For more details, refer to the Marketplace API documentation:\n * https://www.sharetribe.com/api-reference/marketplace.html#stripe-persons\n */\n\nimport { AxiosInstance, AxiosResponse } from \"axios\";\nimport MarketplaceApi from \"./index\";\nimport {\n StripePersonsCreateParameter,\n StripePersonsResponse,\n} from \"../../types/marketplace/stripePersons\";\nimport { ExtraParameter } from \"../../types/sharetribe\";\n\n/**\n * Class representing the Stripe Persons API.\n *\n * The Stripe Persons API provides methods for creating persons associated with Stripe accounts, used for compliance and verification purposes.\n */\nclass StripePersons {\n private readonly endpoint: string;\n private readonly axios: AxiosInstance;\n private readonly headers: Record<string, string>;\n public readonly authRequired = true;\n\n /**\n * Creates an instance of the StripePersons class.\n *\n * @param {MarketplaceApi} api - The Marketplace API instance providing configuration and request handling.\n */\n constructor(api: MarketplaceApi) {\n this.endpoint = api.endpoint + \"/stripe_persons\";\n this.axios = api.axios;\n this.headers = api.headers;\n }\n\n /**\n * Creates a new person for a Stripe account.\n *\n * @template P\n * @template EP\n * @param {P & StripePersonsCreateParameter} params - Parameters for creating the Stripe person.\n * @param {EP | void} extraParams - Optional extra parameters for the request.\n * @returns {Promise<AxiosResponse<StripePersonsResponse<'create'>>>} - A promise resolving to the created person details.\n *\n * @example\n * const response = await sdk.stripePersons.create({\n * personToken: 'person-token',\n * });\n * const personDetails = response.data;\n */\n async create<\n P extends StripePersonsCreateParameter,\n EP extends ExtraParameter\n >(\n params: P,\n extraParams?: EP\n ): Promise<AxiosResponse<StripePersonsResponse<\"create\">>> {\n return this.axios.post<StripePersonsResponse<\"create\">>(\n `${this.endpoint}/create`,\n { ...params, ...extraParams },\n { headers: this.headers }\n );\n }\n}\n\nexport default StripePersons;\n","/**\n * @fileoverview Provides the StripeSetupIntents class for managing Stripe Setup Intents in the Sharetribe Marketplace API.\n * This class includes methods for creating Stripe Setup Intents to set up payment methods for future use.\n *\n * For more details, refer to the Marketplace API documentation:\n * https://www.sharetribe.com/api-reference/marketplace.html#create-stripe-person\n */\n\nimport { AxiosInstance, AxiosResponse } from \"axios\";\nimport MarketplaceApi from \"./index\";\nimport {\n StripeSetupIntentsCreateParameter,\n StripeSetupIntentsResponse,\n} from \"../../types/marketplace/stripeSetupIntents\";\nimport { ExtraParameter } from \"../../types/sharetribe\";\n\n/**\n * Class representing the Stripe Setup Intents API.\n *\n * The Stripe Setup Intents API provides methods to securely create Setup Intents for Stripe payments.\n */\nclass StripeSetupIntents {\n private readonly endpoint: string;\n private readonly axios: AxiosInstance;\n public readonly authRequired = true;\n\n /**\n * Creates an instance of the StripeSetupIntents class.\n *\n * @param {MarketplaceApi} api - The Marketplace API instance providing configuration and request handling.\n */\n constructor(api: MarketplaceApi) {\n this.endpoint = api.endpoint + \"/stripe_setup_intents\";\n this.axios = api.axios;\n }\n\n /**\n * Creates a new Stripe Setup Intent.\n *\n * @template P\n * @template EP\n * @param {P & StripeSetupIntentsCreateParameter} params - Parameters required to create the Stripe Setup Intent.\n * @param {EP | void} extraParams - Optional extra parameters for the request.\n * @returns {Promise<AxiosResponse<StripeSetupIntentsResponse<'create'>>>} - A promise resolving to the created Setup Intent details.\n *\n * @example\n * const response = await sdk.stripeSetupIntents.create({});\n * const setupIntentDetails = response.data;\n */\n async create<\n P extends StripeSetupIntentsCreateParameter,\n EP extends ExtraParameter\n >(\n params: P,\n extraParams?: EP\n ): Promise<AxiosResponse<StripeSetupIntentsResponse<\"create\">>> {\n return this.axios.post<StripeSetupIntentsResponse<\"create\">>(\n `${this.endpoint}/create`,\n { ...params, ...extraParams }\n );\n }\n}\n\nexport default StripeSetupIntents;\n","/**\n * @fileoverview Provides the TimeSlots class for managing time slots in the Sharetribe Marketplace API.\n * This class includes methods for querying available time slots for marketplace resources.\n *\n * For more details, refer to the Marketplace API documentation:\n * https://www.sharetribe.com/api-reference/marketplace.html#time-slots\n */\n\nimport { AxiosInstance, AxiosResponse } from \"axios\";\nimport MarketplaceApi from \"./index\";\nimport {\n TimeSlotsQueryParameter,\n TimeSlotsResponse,\n} from \"../../types/marketplace/timeSlots\";\n\n/**\n * Class representing the Time Slots API.\n *\n * The Time Slots API provides methods for querying available time slots for bookings.\n */\nclass TimeSlots {\n private readonly endpoint: string;\n private readonly axios: AxiosInstance;\n private readonly headers: Record<string, string>;\n\n /**\n * Creates an instance of the TimeSlots class.\n *\n * @param {MarketplaceApi} api - The Marketplace API instance providing configuration and request handling.\n */\n constructor(api: MarketplaceApi) {\n this.endpoint = api.endpoint + \"/timeslots\";\n this.axios = api.axios;\n this.headers = api.headers;\n }\n\n /**\n * Queries available time slots based on specified filters.\n *\n * @template P\n * @param {P & TimeSlotsQueryParameter} params - Query parameters for filtering time slots.\n * @returns {Promise<AxiosResponse<TimeSlotsResponse<'query'>>>} - A promise resolving to the query results.\n *\n * @example\n * const response = await sdk.timeSlots.query({\n * listingId: 'listing-id',\n * start: '2024-01-01T00:00:00Z',\n * end: '2024-01-07T23:59:59Z',\n * });\n * const timeSlots = response.data;\n */\n async query<P extends TimeSlotsQueryParameter>(\n params: P\n ): Promise<AxiosResponse<TimeSlotsResponse<\"query\">>> {\n return this.axios.get<TimeSlotsResponse<\"query\">>(\n `${this.endpoint}/query`,\n {\n headers: this.headers,\n params,\n }\n );\n }\n}\n\nexport default TimeSlots;\n","/**\n * @fileoverview Provides the Transactions class for managing transactions in the Sharetribe Marketplace API.\n * This class includes methods for querying, initiating, transitioning, and managing transactions.\n *\n * For more details, refer to the Marketplace API documentation:\n * https://www.sharetribe.com/api-reference/marketplace.html#transactions\n */\n\nimport { AxiosInstance, AxiosResponse } from \"axios\";\nimport MarketplaceApi from \"./index\";\nimport {\n TransactionsInitiateParameter,\n TransactionsInitiateSpeculativeParameter,\n TransactionsQueryParameter,\n TransactionsResponse,\n TransactionsShowParameter,\n TransactionsTransitionParameter,\n TransactionsTransitionSpeculativeParameter,\n} from \"../../types/marketplace/transactions\";\nimport { ExtraParameter } from \"../../types/sharetribe\";\n\n/**\n * Class representing the Transactions API.\n *\n * The Transactions API provides methods for managing marketplace transactions, including querying, initiating, and transitioning them.\n */\nclass Transactions {\n private readonly endpoint: string;\n private readonly axios: AxiosInstance;\n private readonly headers: Record<string, string>;\n public readonly authRequired = true;\n\n /**\n * Creates an instance of the Transactions class.\n *\n * @param {MarketplaceApi} api - The Marketplace API instance providing configuration and request handling.\n */\n constructor(api: MarketplaceApi) {\n this.endpoint = api.endpoint + \"/transactions\";\n this.axios = api.axios;\n this.headers = api.headers;\n }\n\n /**\n * Retrieves details of a specific transaction.\n *\n * @template P\n * @param {P & TransactionsShowParameter} params - Parameters to identify the transaction.\n * @returns {Promise<AxiosResponse<TransactionsResponse<'show', P>>>} - A promise resolving to the transaction details.\n *\n * @example\n * const response = await sdk.transactions.show({ id: 'transaction-id' });\n * const transactionDetails = response.data;\n */\n async show<P extends TransactionsShowParameter>(\n params: P\n ): Promise<AxiosResponse<TransactionsResponse<\"show\", P>>> {\n return this.axios.get<TransactionsResponse<\"show\", P>>(\n `${this.endpoint}/show`,\n {\n headers: this.headers,\n params,\n }\n );\n }\n\n /**\n * Queries transactions based on specified filters.\n *\n * @template P\n * @param {P & TransactionsQueryParameter} params - Query parameters for filtering transactions.\n * @returns {Promise<AxiosResponse<TransactionsResponse<'query', P>>>} - A promise resolving to the query results.\n *\n * @example\n * const response = await sdk.transactions.query({ perPage: 10 });\n * const transactions = response.data;\n */\n async query<P extends TransactionsQueryParameter>(\n params: P\n ): Promise<AxiosResponse<TransactionsResponse<\"query\", P>>> {\n return this.axios.get<TransactionsResponse<\"query\", P>>(\n `${this.endpoint}/query`,\n {\n headers: this.headers,\n params,\n }\n );\n }\n\n /**\n * Initiates a new transaction.\n *\n * @template P\n * @template EP\n * @param {P & TransactionsInitiateParameter} params - Parameters for initiating the transaction.\n * @param {EP | void} extraParams - Optional extra parameters for the request.\n * @returns {Promise<AxiosResponse<TransactionsResponse<'initiate', P, EP>>>} - A promise resolving to the initiated transaction details.\n *\n * @example\n * const response = await sdk.transactions.initiate({\n * processAlias: 'order',\n * transition: 'start',\n * params: {}\n * });\n * const initiatedTransaction = response.data;\n */\n async initiate<\n P extends TransactionsInitiateParameter,\n EP extends ExtraParameter\n >(\n params: P,\n extraParams?: EP\n ): Promise<AxiosResponse<TransactionsResponse<\"initiate\", P, EP>>> {\n return this.axios.post<TransactionsResponse<\"initiate\", P, EP>>(\n `${this.endpoint}/initiate`,\n { ...params, ...extraParams },\n { headers: this.headers }\n );\n }\n\n /**\n * Initiates a speculative transaction.\n *\n * @template P\n * @template EP\n * @param {P & TransactionsInitiateSpeculativeParameter} params - Parameters for the speculative transaction initiation.\n * @param {EP | void} extraParams - Optional extra parameters for the request.\n * @returns {Promise<AxiosResponse<TransactionsResponse<'initiateSpeculative', P, EP>>>} - A promise resolving to the speculative transaction details.\n *\n * @example\n * const response = await sdk.transactions.initiateSpeculative({\n * processAlias: 'order',\n * transition: 'start',\n * params: {}\n * });\n * const speculativeTransaction = response.data;\n */\n async initiateSpeculative<\n P extends TransactionsInitiateSpeculativeParameter,\n EP extends ExtraParameter\n >(\n params: P,\n extraParams?: EP\n ): Promise<\n AxiosResponse<TransactionsResponse<\"initiateSpeculative\", P, EP>>\n > {\n return this.axios.post<TransactionsResponse<\"initiateSpeculative\", P, EP>>(\n `${this.endpoint}/initiate_speculative`,\n { ...params, ...extraParams },\n { headers: this.headers }\n );\n }\n\n /**\n * Transitions an existing transaction.\n *\n * @template P\n * @template EP\n * @param {P & TransactionsTransitionParameter} params - Parameters for transitioning the transaction.\n * @param {EP | void} extraParams - Optional extra parameters for the request.\n * @returns {Promise<AxiosResponse<TransactionsResponse<'transition', P, EP>>>} - A promise resolving to the transitioned transaction details.\n *\n * @example\n * const response = await sdk.transactions.transition({\n * id: 'transaction-id',\n * transition: 'complete',\n * params: { review: 5 }\n * });\n * const transitionedTransaction = response.data;\n */\n async transition<\n P extends TransactionsTransitionParameter,\n EP extends ExtraParameter\n >(\n params: P,\n extraParams?: EP\n ): Promise<AxiosResponse<TransactionsResponse<\"transition\", P, EP>>> {\n return this.axios.post<TransactionsResponse<\"transition\", P, EP>>(\n `${this.endpoint}/transition`,\n { ...params, ...extraParams },\n { headers: this.headers }\n );\n }\n\n /**\n * Transitions a speculative transaction.\n *\n * @template P\n * @template EP\n * @param {P & TransactionsTransitionSpeculativeParameter} params - Parameters for the speculative transaction transition.\n * @param {EP | void} extraParams - Optional extra parameters for the request.\n * @returns {Promise<AxiosResponse<TransactionsResponse<'transitionSpeculative', P, EP>>>} - A promise resolving to the speculative transitioned transaction details.\n *\n * @example\n * const response = await sdk.transactions.transitionSpeculative({\n * id: 'transaction-id',\n * transition: 'complete',\n * params: { review: 5 }\n * });\n * const speculativeTransitionedTransaction = response.data;\n */\n async transitionSpeculative<\n P extends TransactionsTransitionSpeculativeParameter,\n EP extends ExtraParameter\n >(\n params: P,\n extraParams?: EP\n ): Promise<\n AxiosResponse<TransactionsResponse<\"transitionSpeculative\", P, EP>>\n > {\n return this.axios.post<\n TransactionsResponse<\"transitionSpeculative\", P, EP>\n >(\n `${this.endpoint}/transition_speculative`,\n { ...params, ...extraParams },\n { headers: this.headers }\n );\n }\n}\n\nexport default Transactions;\n","/**\n * @fileoverview Provides the Users class for managing user data in the Sharetribe Marketplace API.\n * This class includes methods for retrieving details about a specific user.\n *\n * For more details, refer to the Marketplace API documentation:\n * https://www.sharetribe.com/api-reference/marketplace.html#show-user\n */\n\nimport { AxiosInstance, AxiosResponse } from \"axios\";\nimport MarketplaceApi from \"./index\";\nimport {\n UsersResponse,\n UsersShowParameter,\n} from \"../../types/marketplace/user\";\n\n/**\n * Class representing the Users API.\n *\n * The Users API provides methods for managing user data in the marketplace.\n */\nclass Users {\n private readonly endpoint: string;\n private readonly axios: AxiosInstance;\n private readonly headers: Record<string, string>;\n\n /**\n * Creates an instance of the Users class.\n *\n * @param {MarketplaceApi} api - The Marketplace API instance providing configuration and request handling.\n */\n constructor(api: MarketplaceApi) {\n this.endpoint = api.endpoint + \"/users\";\n this.axios = api.axios;\n this.headers = api.headers;\n }\n\n /**\n * Retrieves details of a specific user.\n *\n * @template P\n * @param {P & UsersShowParameter} params - Parameters to identify the user.\n * @returns {Promise<AxiosResponse<UsersResponse<'show', P>>>} - A promise resolving to the user details.\n *\n * @example\n * const response = await sdk.users.show({\n * id: 'user-id',\n * });\n * const userDetails = response.data;\n */\n async show<P extends UsersShowParameter>(\n params: P\n ): Promise<AxiosResponse<UsersResponse<\"show\", P>>> {\n return this.axios.get<UsersResponse<\"show\", P>>(`${this.endpoint}/show`, {\n headers: this.headers,\n params,\n });\n }\n}\n\nexport default Users;\n","/**\n * @fileoverview Provides the MarketplaceApi class for accessing all available endpoints in the Sharetribe Marketplace API.\n * This class serves as the entry point for interacting with various resources such as listings, bookings, users, and payments.\n *\n * For more details, refer to the Marketplace API documentation:\n * https://www.sharetribe.com/api-reference/marketplace.html\n */\n\nimport SharetribeSdk from \"../../sdk\";\nimport { AxiosInstance } from \"axios\";\nimport AvailabilityExceptions from \"./AvailabilityExceptions\";\nimport Listings from \"./Listings\";\nimport Bookings from \"./Bookings\";\nimport CurrentUser from \"./CurrentUser\";\nimport Images from \"./Images\";\nimport Marketplace from \"./Marketplace\";\nimport Messages from \"./Messages\";\nimport OwnListings from \"./OwnListings\";\nimport PasswordReset from \"./PasswordReset\";\nimport ProcessTransitions from \"./ProcessTransitions\";\nimport Reviews from \"./Reviews\";\nimport Stock from \"./Stock\";\nimport StockAdjustments from \"./StockAdjustments\";\nimport StripeAccount from \"./StripeAccount\";\nimport StripeAccountLinks from \"./StripeAccountLinks\";\nimport StripeCustomer from \"./StripeCustomer\";\nimport StripePersons from \"./StripePersons\";\nimport StripeSetupIntents from \"./StripeSetupIntents\";\nimport TimeSlots from \"./TimeSlots\";\nimport Transactions from \"./Transactions\";\nimport Users from \"./Users\";\n\n/**\n * Class representing the Sharetribe Marketplace API.\n *\n * This class provides access to all available endpoints in the Sharetribe Marketplace API, enabling operations such as managing listings,\n * handling transactions, updating user profiles, and integrating with Stripe.\n */\nclass MarketplaceApi {\n axios: AxiosInstance;\n endpoint: string;\n headers: Record<string, string>;\n authRequired: boolean;\n\n // API Endpoints\n availabilityExceptions: AvailabilityExceptions;\n bookings: Bookings;\n currentUser: CurrentUser;\n images: Images;\n listings: Listings;\n marketplace: Marketplace;\n messages: Messages;\n ownListings: OwnListings;\n passwordReset: PasswordReset;\n processTransitions: ProcessTransitions;\n reviews: Reviews;\n stock: Stock;\n stockAdjustments: StockAdjustments;\n stripeAccount: StripeAccount;\n stripeAccountLinks: StripeAccountLinks;\n stripeCustomer: StripeCustomer;\n stripePersons: StripePersons;\n stripeSetupIntents: StripeSetupIntents;\n timeslots: TimeSlots;\n transactions: Transactions;\n users: Users;\n\n /**\n * Creates an instance of the MarketplaceApi class.\n *\n * @param {SharetribeSdk} sdk - The Sharetribe SDK instance providing configuration and request handling.\n */\n constructor(sdk: SharetribeSdk) {\n const config = sdk.apisConfigs.api(sdk.sdkConfig);\n this.endpoint = config.baseUrl;\n this.headers = config.headers;\n this.axios = sdk.axios;\n this.authRequired = false;\n\n // Initialize all API endpoints\n this.availabilityExceptions = new AvailabilityExceptions(this);\n this.bookings = new Bookings(this);\n this.currentUser = new CurrentUser(this);\n this.images = new Images(this);\n this.listings = new Listings(this);\n this.marketplace = new Marketplace(this);\n this.messages = new Messages(this);\n this.ownListings = new OwnListings(this);\n this.passwordReset = new PasswordReset(this);\n this.processTransitions = new ProcessTransitions(this);\n this.reviews = new Reviews(this);\n this.stock = new Stock(this);\n this.stockAdjustments = new StockAdjustments(this);\n this.stripeAccount = new StripeAccount(this);\n this.stripeAccountLinks = new StripeAccountLinks(this);\n this.stripeCustomer = new StripeCustomer(this);\n this.stripePersons = new StripePersons(this);\n this.stripeSetupIntents = new StripeSetupIntents(this);\n this.timeslots = new TimeSlots(this);\n this.transactions = new Transactions(this);\n this.users = new Users(this);\n }\n}\n\nexport default MarketplaceApi;\n","import { SdkConfig } from \"./types/config\";\nimport axios, { AxiosInstance } from \"axios\";\nimport { ApiConfigs } from \"./types/apiConfigs\";\nimport IntegrationApi from \"./endpoints/integrationApi\";\nimport { createApisConfigs } from \"./utils/apis\";\nimport {\n prepareAxiosInstance,\n createAxiosConfig,\n} from \"./utils/prepare-axios-instance\";\nimport AuthenticationApi from \"./endpoints/auth\";\nimport AvailabilityExceptions from \"./endpoints/integrationApi/AvailabilityExceptions\";\nimport Events from \"./endpoints/integrationApi/Events\";\nimport Images from \"./endpoints/integrationApi/Images\";\nimport Listings from \"./endpoints/integrationApi/Listings\";\nimport Marketplace from \"./endpoints/integrationApi/Marketplace\";\nimport Stock from \"./endpoints/integrationApi/Stock\";\nimport StockAdjustments from \"./endpoints/integrationApi/StockAdjustments\";\nimport StockReservation from \"./endpoints/integrationApi/StockReservation\";\nimport Transactions from \"./endpoints/integrationApi/Transactions\";\nimport Users from \"./endpoints/integrationApi/Users\";\nimport { DefaultSdkConfig } from \"./utils/config\";\n\n/**\n * The main Sharetribe Integration SDK for interacting with the Sharetribe Integration API.\n *\n * @class\n */\nclass IntegrationSdk {\n /**\n * Configuration for the SDK.\n *\n * @type {SdkConfig}\n */\n sdkConfig: SdkConfig;\n\n /**\n * Configuration for the API endpoints.\n *\n * @type {ApiConfigs<true>}\n */\n apisConfigs: ApiConfigs<true>;\n\n /**\n * Axios instance used for making API requests.\n *\n * @type {AxiosInstance}\n */\n axios: AxiosInstance;\n\n // Endpoints\n /**\n * Endpoint for handling authentication.\n *\n * @type {AuthenticationApi}\n */\n auth: AuthenticationApi;\n\n /**\n * Main integration API.\n *\n * @type {IntegrationApi}\n */\n integration_api: IntegrationApi;\n\n // API Endpoints\n /**\n * Endpoint for managing availability exceptions.\n *\n * @type {AvailabilityExceptions}\n */\n availabilityExceptions: AvailabilityExceptions;\n\n /**\n * Endpoint for retrieving and managing events.\n *\n * @type {Events}\n */\n events: Events;\n\n /**\n * Endpoint for handling image-related operations.\n *\n * @type {Images}\n */\n images: Images;\n\n /**\n * Endpoint for managing listings.\n *\n * @type {Listings}\n */\n listings: Listings;\n\n /**\n * Endpoint for accessing marketplace details.\n *\n * @type {Marketplace}\n */\n marketplace: Marketplace;\n\n /**\n * Endpoint for managing stock.\n *\n * @type {Stock}\n */\n stock: Stock;\n\n /**\n * Endpoint for handling stock adjustments.\n *\n * @type {StockAdjustments}\n */\n stockAdjustments: StockAdjustments;\n\n /**\n * Endpoint for managing stock reservations.\n *\n * @type {StockReservation}\n */\n stockReservations: StockReservation;\n\n /**\n * Endpoint for managing transactions.\n *\n * @type {Transactions}\n */\n transactions: Transactions;\n\n /**\n * Endpoint for managing user data.\n *\n * @type {Users}\n */\n users: Users;\n\n /**\n * Initializes a new instance of the SharetribeIntegrationSdk class.\n *\n * @constructor\n * @param {SdkConfig} config - The configuration object for the SDK.\n */\n constructor(config: SdkConfig) {\n this.sdkConfig = {\n ...DefaultSdkConfig,\n ...config,\n };\n\n this.apisConfigs = createApisConfigs(true);\n this.axios = axios.create(\n createAxiosConfig(this, {\n baseURL: `${this.sdkConfig.baseUrl}/${this.sdkConfig.version}/`,\n httpAgent: this.sdkConfig.httpAgent,\n httpsAgent: this.sdkConfig.httpsAgent,\n })\n );\n prepareAxiosInstance(this);\n\n this.auth = new AuthenticationApi(this);\n this.integration_api = new IntegrationApi(this);\n\n // Api Endpoints\n this.availabilityExceptions = this.integration_api.availabilityExceptions;\n this.events = this.integration_api.events;\n this.images = this.integration_api.images;\n this.listings = this.integration_api.listings;\n this.marketplace = this.integration_api.marketplace;\n this.stock = this.integration_api.stock;\n this.stockAdjustments = this.integration_api.stockAdjustments;\n this.stockReservations = this.integration_api.stockReservations;\n this.transactions = this.integration_api.transactions;\n this.users = this.integration_api.users;\n }\n}\n\nexport default IntegrationSdk;\n","import { SdkConfig } from \"./types/config\";\nimport { createApisConfigs } from \"./utils/apis\";\nimport { ApiConfigs } from \"./types/apiConfigs\";\nimport axios, { AxiosInstance, AxiosResponse } from \"axios\";\nimport AuthenticationApi from \"./endpoints/auth\";\nimport MarketplaceApi from \"./endpoints/marketplace\";\nimport {\n prepareAxiosInstance,\n createAxiosConfig,\n} from \"./utils/prepare-axios-instance\";\nimport Listings from \"./endpoints/marketplace/Listings\";\nimport AvailabilityExceptions from \"./endpoints/marketplace/AvailabilityExceptions\";\nimport Bookings from \"./endpoints/marketplace/Bookings\";\nimport CurrentUser from \"./endpoints/marketplace/CurrentUser\";\nimport Images from \"./endpoints/marketplace/Images\";\nimport Marketplace from \"./endpoints/marketplace/Marketplace\";\nimport Messages from \"./endpoints/marketplace/Messages\";\nimport OwnListings from \"./endpoints/marketplace/OwnListings\";\nimport PasswordReset from \"./endpoints/marketplace/PasswordReset\";\nimport ProcessTransitions from \"./endpoints/marketplace/ProcessTransitions\";\nimport Reviews from \"./endpoints/marketplace/Reviews\";\nimport Stock from \"./endpoints/marketplace/Stock\";\nimport StockAdjustments from \"./endpoints/marketplace/StockAdjustments\";\nimport StripeAccount from \"./endpoints/marketplace/StripeAccount\";\nimport StripeAccountLinks from \"./endpoints/marketplace/StripeAccountLinks\";\nimport StripeCustomer from \"./endpoints/marketplace/StripeCustomer\";\nimport StripePersons from \"./endpoints/marketplace/StripePersons\";\nimport StripeSetupIntents from \"./endpoints/marketplace/StripeSetupIntents\";\nimport TimeSlots from \"./endpoints/marketplace/TimeSlots\";\nimport Transactions from \"./endpoints/marketplace/Transactions\";\nimport Users from \"./endpoints/marketplace/Users\";\nimport {\n AuthInfoResponse,\n LoginParameter,\n LoginParameterType,\n LoginWithIdpParameter,\n RevokeResponse,\n Scope,\n TokenResponse,\n} from \"./types/authentication\";\nimport AssetsApi from \"./endpoints/assets\";\nimport { DefaultSdkConfig } from \"./utils/config\";\n\nclass SharetribeSdk {\n /**\n * The SDK configuration object.\n * @type {SdkConfig}\n */\n sdkConfig: SdkConfig;\n\n /**\n * The API configuration object.\n * @type {ApiConfigs}\n */\n apisConfigs: ApiConfigs;\n\n /**\n * Axios instance for making HTTP requests.\n * @type {AxiosInstance}\n */\n axios: AxiosInstance;\n\n /**\n * Endpoint for handling authentication.\n * @type {AuthenticationApi}\n */\n auth: AuthenticationApi;\n\n /**\n * Main marketplace API instance.\n * @type {MarketplaceApi}\n */\n api: MarketplaceApi;\n\n /**\n * Assets API instance for managing assets.\n * @type {AssetsApi}\n */\n assetsApi: AssetsApi;\n\n // API Endpoints\n\n /**\n * Endpoint for managing listings.\n * @type {Listings}\n */\n listings: Listings;\n\n /**\n * Endpoint for managing availability exceptions.\n * @type {AvailabilityExceptions}\n */\n availabilityExceptions: AvailabilityExceptions;\n\n /**\n * Endpoint for managing bookings.\n * @type {Bookings}\n * */\n bookings: Bookings;\n\n /**\n * Endpoint for managing the current user.\n * @type {CurrentUser}\n */\n currentUser: CurrentUser;\n\n /**\n * Endpoint for handling images.\n * @type {Images}\n */\n images: Images;\n\n /**\n * Endpoint for accessing marketplace details.\n * @type {Marketplace}\n */\n marketplace: Marketplace;\n\n /**\n * Endpoint for managing messages.\n * @type {Messages}\n */\n messages: Messages;\n\n /**\n * Endpoint for managing own listings.\n * @type {OwnListings} */\n ownListings: OwnListings;\n\n /**\n * Endpoint for managing password resets.\n * @type {PasswordReset} */\n passwordReset: PasswordReset;\n\n /**\n * Endpoint for managing process transitions.\n * @type {ProcessTransitions} */\n processTransitions: ProcessTransitions;\n\n /**\n * Endpoint for managing reviews.\n * @type {Reviews} */\n reviews: Reviews;\n\n /**\n * Endpoint for managing stock.\n * @type {Stock} */\n stock: Stock;\n\n /**\n * Endpoint for managing stock adjustments.\n * @type {StockAdjustments} */\n stockAdjustments: StockAdjustments;\n\n /**\n * Endpoint for managing stripe accounts.\n * @type {StripeAccount} */\n stripeAccount: StripeAccount;\n\n /**\n * Endpoint for managing stripe account links.\n * @type {StripeAccountLinks} */\n stripeAccountLinks: StripeAccountLinks;\n\n /**\n * Endpoint for managing stripe customers.\n * @type {StripeCustomer} */\n stripeCustomer: StripeCustomer;\n\n /**\n * Endpoint for managing stripe persons.\n * @type {StripePersons} */\n stripePersons: StripePersons;\n\n /**\n * Endpoint for managing stripe setup intents.\n * @type {StripeSetupIntents} */\n stripeSetupIntents: StripeSetupIntents;\n\n /**\n * Endpoint for managing timeslots.\n * @type {TimeSlots} */\n timeslots: TimeSlots;\n\n /**\n * Endpoint for managing transactions.\n * @type {Transactions} */\n transactions: Transactions;\n\n /**\n * Endpoint for managing users.\n * @type {Users} */\n users: Users;\n\n // Asset Endpoints\n\n /** @type {AssetsApi['assetByAlias']} */\n assetByAlias: AssetsApi[\"assetByAlias\"];\n\n /** @type {AssetsApi['assetsByAlias']} */\n assetsByAlias: AssetsApi[\"assetsByAlias\"];\n\n /** @type {AssetsApi['assetByVersion']} */\n assetByVersion: AssetsApi[\"assetByVersion\"];\n\n /** @type {AssetsApi['assetsByVersion']} */\n assetsByVersion: AssetsApi[\"assetsByVersion\"];\n\n /**\n * Creates an instance of the Sharetribe SDK.\n *\n * @constructor\n * @param {SdkConfig} config - The configuration object for the SDK.\n */\n constructor(config: SdkConfig) {\n this.sdkConfig = {\n ...DefaultSdkConfig,\n ...config,\n };\n\n this.apisConfigs = createApisConfigs();\n this.axios = axios.create(\n createAxiosConfig(this, {\n baseURL: `${this.sdkConfig.baseUrl}/${this.sdkConfig.version}/`,\n httpAgent: this.sdkConfig.httpAgent,\n httpsAgent: this.sdkConfig.httpsAgent,\n })\n );\n prepareAxiosInstance(this);\n\n this.auth = new AuthenticationApi(this);\n this.api = new MarketplaceApi(this);\n this.assetsApi = new AssetsApi(this);\n\n // Api Endpoints\n this.availabilityExceptions = this.api.availabilityExceptions;\n this.bookings = this.api.bookings;\n this.currentUser = this.api.currentUser;\n this.images = this.api.images;\n this.listings = this.api.listings;\n this.marketplace = this.api.marketplace;\n this.messages = this.api.messages;\n this.ownListings = this.api.ownListings;\n this.passwordReset = this.api.passwordReset;\n this.processTransitions = this.api.processTransitions;\n this.reviews = this.api.reviews;\n this.stock = this.api.stock;\n this.stockAdjustments = this.api.stockAdjustments;\n this.stripeAccount = this.api.stripeAccount;\n this.stripeAccountLinks = this.api.stripeAccountLinks;\n this.stripeCustomer = this.api.stripeCustomer;\n this.stripePersons = this.api.stripePersons;\n this.stripeSetupIntents = this.api.stripeSetupIntents;\n this.timeslots = this.api.timeslots;\n this.transactions = this.api.transactions;\n this.users = this.api.users;\n\n // Asset Endpoints\n this.assetByAlias = this.assetsApi.assetByAlias;\n this.assetsByAlias = this.assetsApi.assetsByAlias;\n this.assetByVersion = this.assetsApi.assetByVersion;\n this.assetsByVersion = this.assetsApi.assetsByVersion;\n }\n\n /**\n * Logs in a user using their credentials.\n *\n * @async\n * @param {LoginParameter} params - The login parameters.\n * @returns {Promise<AuthToken>} - The authentication token.\n */\n async login<T extends LoginParameterType>(\n params: LoginParameter<T>\n ): Promise<AxiosResponse<TokenResponse<\"user\">>> {\n return this.auth.token<\"user\">({\n client_id: this.sdkConfig.clientId,\n scope: \"user\",\n grant_type: \"code\" in params ? \"authorization_code\" : \"password\",\n ...params,\n });\n }\n\n /**\n * Logs in the marketplace operator as the marketplace user and returns a Promise\n *\n * @async\n * @param {LoginAsParameter} params - The login parameters.\n * @returns {Promise<AuthToken>} - The authentication token.\n */\n async loginAs(\n params: LoginParameter<\"auth_code\">\n ): Promise<AxiosResponse<TokenResponse<\"user\">>> {\n return this.auth.token<\"user\">({\n client_id: this.sdkConfig.clientId,\n grant_type: \"authorization_code\",\n scope: \"user\",\n ...params,\n });\n }\n\n /**\n * Logs in a user using an identity provider (IDP).\n *\n * @async\n * @param {LoginWithIdpParameter} params - The IDP login parameters.\n * @returns {Promise<AuthToken>} - The authentication token.\n */\n async loginWithIdp(\n params: LoginWithIdpParameter\n ): Promise<AxiosResponse<TokenResponse<\"user\">>> {\n if (this.sdkConfig.clientSecret === undefined) {\n throw new Error(\"clientSecret is required to login with idp\");\n }\n return this.auth.authWithIdp({\n client_id: this.sdkConfig.clientId,\n client_secret: this.sdkConfig.clientSecret!,\n ...params,\n });\n }\n\n /**\n * Logs out the current user.\n *\n * @async\n * @returns {Promise<void>} - Resolves when the user is logged out.\n */\n async logout(): Promise<AxiosResponse<RevokeResponse>> {\n const { access_token } = (await this.sdkConfig.tokenStore!.getToken())!;\n return this.auth.revoke(access_token);\n }\n\n /**\n * Exchanges the current token for a trusted user token.\n *\n * @async\n * @returns {Promise<AuthToken>} - The exchanged token.\n */\n async exchangeToken(): Promise<AxiosResponse<TokenResponse<\"trusted:user\">>> {\n const { access_token } = (await this.sdkConfig.tokenStore!.getToken())!;\n if (this.sdkConfig.clientSecret === undefined) {\n throw new Error(\"clientSecret is required to exchange token\");\n }\n return this.auth.token<\"trusted:user\">({\n client_id: this.sdkConfig.clientId,\n client_secret: this.sdkConfig.clientSecret!,\n grant_type: \"token_exchange\",\n scope: \"trusted:user\",\n subject_token: access_token,\n });\n }\n\n /**\n * Retrieves authentication info for the current user.\n *\n * @async\n * @returns {Promise<AuthInfoResponse>} - The authentication info.\n */\n async authInfo(): Promise<AuthInfoResponse> {\n const storedToken = await this.sdkConfig.tokenStore!.getToken();\n if (storedToken && storedToken.scope) {\n const tokenScope = storedToken.scope;\n const scopes = tokenScope.split(\" \") as Scope[];\n const isAnonymous = tokenScope === \"public-read\";\n\n const grantType = isAnonymous ? \"client_credentials\" : \"refresh_token\";\n\n return { scopes, isAnonymous, grantType };\n }\n\n return {};\n }\n}\n\nexport default SharetribeSdk;\n","/**\n * Class representing a high-precision decimal number.\n *\n * The BigDecimal class ensures that large decimal numbers are stored as strings\n * to avoid precision loss during computations.\n */\n\nimport { SdkType } from \"../types/sdk-types\";\n\n// Define a static class name\nconst BIGDECIMAL_SDK_TYPE = \"BigDecimal\";\n\nclass BigDecimal implements SdkType {\n value: string;\n readonly _sdkType: typeof BIGDECIMAL_SDK_TYPE;\n\n /**\n * Creates an instance of the BigDecimal class.\n *\n * @param {any} value - The value to be stored as a BigDecimal. It must be convertible to a string.\n * @example\n * const bigDecimal = new BigDecimal('123456789.123456789');\n */\n constructor(value: any) {\n this._sdkType = BIGDECIMAL_SDK_TYPE;\n\n if (typeof value !== \"string\") {\n console.warn(\n \"BigDecimal must be initialized with a string to ensure precision.\"\n );\n }\n // Convert the value to a string to maintain compatibility and precision.\n this.value = String(value);\n }\n\n /**\n * Converts the BigDecimal instance to a string representation.\n *\n * @returns {string} - The string representation of the BigDecimal.\n * @example\n * const bigDecimal = new BigDecimal('123456789.123456789');\n * console.log(bigDecimal.toString()); // Outputs: '123456789.123456789'\n */\n toString(): string {\n return `${this.value}`;\n }\n}\n\n// Default export for backward compatibility\nexport default BigDecimal;\n","/**\n * @fileoverview Provides the LatLng class for representing geographical coordinates.\n * This class encapsulates a latitude and longitude pair, with validation for numeric input.\n */\n\nimport { SdkType } from \"../types/sdk-types\";\n\n// Define a static class name\nconst LATLNG_SDK_TYPE = \"LatLng\";\n\n/**\n * Class representing a geographical coordinate pair (latitude and longitude).\n */\nclass LatLng implements SdkType {\n lat: number | string;\n lng: number | string;\n readonly _sdkType: typeof LATLNG_SDK_TYPE;\n\n /**\n * Creates an instance of the LatLng class.\n *\n * @param {string | number} lat - The latitude value. Must be a number or a string that represents a number.\n * @param {string | number} lng - The longitude value. Must be a number or a string that represents a number.\n * @example\n * const coordinates = new LatLng(37.7749, -122.4194);\n * console.log(coordinates.toString()); // Outputs: '37.7749,-122.4194'\n */\n constructor(lat: string | number, lng: string | number) {\n this._sdkType = LATLNG_SDK_TYPE;\n\n // Helper function to validate if a value is a number or a number-like string.\n const isNumberOrNumberString = (val: any): boolean => {\n if (typeof val === \"number\") return true;\n return typeof val === \"string\" && /^\\d+(\\.\\d+)?$/.test(val);\n };\n\n // Validate latitude.\n if (!isNumberOrNumberString(lat)) {\n console.warn(\n \"Latitude must be a number or a string that represents a number\"\n );\n }\n\n // Validate longitude.\n if (!isNumberOrNumberString(lng)) {\n console.warn(\n \"Longitude must be a number or a string that represents a number\"\n );\n }\n\n // Assign values to instance properties.\n this.lat = lat;\n this.lng = lng;\n }\n\n /**\n * Converts the LatLng instance to a string representation.\n *\n * @returns {string} - A string in the format \"latitude,longitude\".\n * @example\n * const coordinates = new LatLng(37.7749, -122.4194);\n * console.log(coordinates.toString()); // Outputs: '37.7749,-122.4194'\n */\n toString(): string {\n return `${this.lat},${this.lng}`;\n }\n}\n\n// Default export for backward compatibility\nexport default LatLng;\n","/**\n * @fileoverview Provides the LatLngBounds class for representing geographical bounding boxes.\n * This class encapsulates a northeast (NE) and southwest (SW) pair of coordinates to define a rectangular area.\n */\n\nimport LatLng from \"./LatLng\";\nimport { SdkType } from \"../types/sdk-types\";\n// Define a static class name\nconst LATLNGBOUNDS_SDK_TYPE = \"LatLngBounds\";\n\n/**\n * Class representing a geographical bounding box with NE and SW coordinates.\n */\nclass LatLngBounds implements SdkType {\n ne: LatLng | { lat: number | string; lng: number | string };\n sw: LatLng | { lat: number | string; lng: number | string };\n readonly _sdkType: typeof LATLNGBOUNDS_SDK_TYPE;\n\n /**\n * Creates an instance of the LatLngBounds class.\n *\n * @param {LatLng | { lat: number; lng: number }} ne - The northeast coordinate.\n * @param {LatLng | { lat: number; lng: number }} sw - The southwest coordinate.\n * @example\n * const ne = new LatLng(40.7128, -74.0060);\n * const sw = new LatLng(34.0522, -118.2437);\n * const bounds = new LatLngBounds(ne, sw);\n * console.log(bounds.toString()); // Outputs: '40.7128,-74.0060,34.0522,-118.2437'\n */\n constructor(\n ne: LatLng | { lat: number; lng: number },\n sw: LatLng | { lat: number; lng: number }\n ) {\n this._sdkType = LATLNGBOUNDS_SDK_TYPE;\n\n let isValid = true;\n\n // Helper function to check if a value is an object with numeric lat/lng.\n const isLatLngObject = (val: any): boolean =>\n val &&\n typeof val === \"object\" &&\n typeof val.lat === \"number\" &&\n typeof val.lng === \"number\";\n\n // Validate the northeast (NE) coordinate.\n let neLatLng: LatLng;\n if (ne instanceof LatLng) {\n neLatLng = ne;\n } else if (isLatLngObject(ne)) {\n neLatLng = new LatLng(ne.lat, ne.lng);\n } else {\n console.warn(\n \"Invalid 'ne' value. Must be an instance of LatLng or an object with lat and lng numbers.\"\n );\n isValid = false;\n neLatLng = new LatLng(Number(ne.lat), Number(ne.lng));\n }\n\n // Validate the southwest (SW) coordinate.\n let swLatLng: LatLng;\n if (sw instanceof LatLng) {\n swLatLng = sw;\n } else if (isLatLngObject(sw)) {\n swLatLng = new LatLng(sw.lat, sw.lng);\n } else {\n console.warn(\n \"Invalid 'sw' value. Must be an instance of LatLng or an object with lat and lng numbers.\"\n );\n isValid = false;\n swLatLng = new LatLng(Number(sw.lat), Number(sw.lng));\n }\n\n this.ne = neLatLng;\n this.sw = swLatLng;\n\n if (!isValid) {\n console.warn(\n \"LatLngBounds must be an object with valid NE and SW values.\"\n );\n }\n }\n\n /**\n * Converts the LatLngBounds instance to a string representation.\n *\n * @returns {string} - A string in the format \"NE_lat,NE_lng,SW_lat,SW_lng\".\n * @example\n * const ne = new LatLng(40.7128, -74.0060);\n * const sw = new LatLng(34.0522, -118.2437);\n * const bounds = new LatLngBounds(ne, sw);\n * console.log(bounds.toString()); // Outputs: '40.7128,-74.0060,34.0522,-118.2437'\n */\n toString(): string {\n return `${this.ne.toString()},${this.sw.toString()}`;\n }\n}\n\n// Default export for backward compatibility\nexport default LatLngBounds;\n","/**\n * @fileoverview Provides the Money class for handling monetary values.\n * This class ensures proper structure and validation of monetary values with an amount and a currency.\n */\n\nimport { SdkType } from \"../types/sdk-types\";\n// Define a static class name\nconst MONEY_SDK_TYPE = \"Money\";\n\n/**\n * Class representing a monetary value.\n *\n * The Money class encapsulates an amount in the smallest unit of the currency (e.g., cents)\n * and a currency code (e.g., \"USD\").\n */\nclass Money implements SdkType {\n amount: number;\n currency: string;\n readonly _sdkType: typeof MONEY_SDK_TYPE;\n\n /**\n * Creates an instance of the Money class.\n *\n * @param {number} amount - The monetary amount, represented in the smallest unit of the currency (e.g., cents for USD).\n * @param {string} currency - The currency code, represented as a three-character string (e.g., \"USD\").\n * @example\n * const money = new Money(1000, 'USD');\n * console.log(money); // Outputs: Money { amount: 1000, currency: 'USD' }\n */\n constructor(amount: number, currency: string) {\n this._sdkType = MONEY_SDK_TYPE;\n\n let isValid = true;\n\n // Validate the amount.\n if (!Number.isInteger(amount)) {\n console.warn(\"Amount must be an integer.\");\n isValid = false;\n }\n\n // Validate the currency code.\n if (currency.length < 3) {\n console.warn(\"Currency must be at least 3 characters long.\");\n isValid = false;\n }\n\n this.amount = amount;\n this.currency = currency;\n\n if (!isValid) {\n console.warn(\"Invalid Money values provided.\");\n }\n }\n}\n\n// Default export for backward compatibility\nexport default Money;\n","/**\n * @fileoverview Provides the UUID class for handling universally unique identifiers (UUIDs).\n * This class allows for the creation and validation of UUIDs, using the `uuid` library.\n */\n\nimport { v4 as uuidv4 } from \"uuid\";\nimport { SdkType } from \"../types/sdk-types\";\n\n// Define a static class name\nconst UUID_SDK_TYPE = \"UUID\";\n\n/**\n * Class representing a UUID (Universally Unique Identifier).\n *\n * The UUID class ensures that a valid UUID is created or used, with the option to generate one if none is provided.\n */\nclass UUID implements SdkType {\n uuid: string;\n readonly _sdkType: typeof UUID_SDK_TYPE;\n\n /**\n * Creates an instance of the UUID class.\n *\n * @param {string} [uuid] - An optional UUID string. If not provided, a new UUID will be generated.\n * @example\n * const id = new UUID();\n * console.log(id.toString()); // Outputs a newly generated UUID.\n *\n * const predefinedId = new UUID('123e4567-e89b-12d3-a456-426614174000');\n * console.log(predefinedId.toString()); // Outputs: '123e4567-e89b-12d3-a456-426614174000'\n */\n constructor(uuid?: string) {\n this._sdkType = UUID_SDK_TYPE;\n\n if (uuid !== undefined && typeof uuid !== \"string\") {\n console.warn(\"uuid must be a string\");\n // If it's not a string, fallback to a generated UUID.\n this.uuid = uuidv4();\n } else {\n // Use the provided UUID or generate a new one.\n this.uuid = uuid || uuidv4();\n }\n }\n\n /**\n * Converts the UUID instance to its string representation.\n *\n * @returns {string} - The string representation of the UUID.\n * @example\n * const id = new UUID();\n * console.log(id.toString()); // Outputs the UUID as a string.\n */\n toString(): string {\n return this.uuid;\n }\n}\n\n// Default export for backward compatibility\nexport default UUID;\n\n// Export the instance type\nexport type UUIDInstance = InstanceType<typeof UUID>;\n","import { ApiConfigs } from \"../types/apiConfigs\";\n\n/**\n * Creates API configurations for the SDK.\n *\n * @param isIntegrationSdk - Determines whether the configuration is for the Integration SDK (default: false).\n * @returns An object containing API configurations for the standard SDK or Integration SDK.\n */\nexport const createApisConfigs = <I extends boolean = false>(\n isIntegrationSdk: I = false as I\n): ApiConfigs<I> => {\n if (isIntegrationSdk === false) {\n return {\n api: ({ baseUrl, version, transitVerbose }) => ({\n headers: {\n ...(transitVerbose ? { \"X-Transit-Verbose\": \"true\" } : {}),\n Accept: \"application/transit+json\",\n },\n baseUrl: `${baseUrl}/${version}/api`,\n }),\n auth: ({ baseUrl, version }) => ({\n headers: {\n \"Content-Type\": \"application/x-www-form-urlencoded\",\n Accept: \"application/json\",\n },\n baseUrl: `${baseUrl}/${version}/auth`,\n }),\n assets: ({ assetCdnBaseUrl, version }) => ({\n headers: {\n Accept: \"application/json\",\n },\n baseUrl: `${assetCdnBaseUrl}/${version}/assets`,\n }),\n } as ApiConfigs<I>;\n } else {\n return {\n auth: ({ baseUrl, version }) => ({\n headers: {\n \"Content-Type\": \"application/x-www-form-urlencoded\",\n Accept: \"application/json\",\n },\n baseUrl: `${baseUrl}/${version}/auth`,\n }),\n integrationApi: ({ baseUrl, version, transitVerbose }) => ({\n headers: {\n ...(transitVerbose ? { \"X-Transit-Verbose\": \"true\" } : {}),\n Accept: \"application/transit+json\",\n },\n baseUrl: `${baseUrl}/${version}/integration_api`,\n }),\n } as ApiConfigs<I>;\n }\n};\n","import MemoryStore from \"./stores/MemoryStore\";\nimport { TypeHandler } from \"../types/config\";\nimport BrowserStore from \"./stores/BrowserStore\";\n\ntype DefaultSdkConfigType = {\n baseUrl: string;\n assetCdnBaseUrl: string;\n version: string;\n transitVerbose: boolean;\n tokenStore: MemoryStore;\n typeHandlers: TypeHandler[];\n};\n\n/**\n * Default SDK configuration object for the Sharetribe Flex API.\n */\nexport const DefaultSdkConfig: DefaultSdkConfigType = {\n baseUrl: \"https://flex-api.sharetribe.com\", // Base URL for the API\n assetCdnBaseUrl: \"https://cdn.st-api.com\", // Base URL for assets\n version: \"v1\", // API version\n transitVerbose: false, // Toggle for verbose transit serialization\n tokenStore: new MemoryStore(), // Default token store (in-memory)\n typeHandlers: [], // Array to handle custom data types\n};\n","import Money from \"../sdkTypes/Money\";\nimport LatLng from \"../sdkTypes/LatLng\";\nimport LatLngBounds from \"../sdkTypes/LatLngBounds\";\nimport UUID from \"../sdkTypes/UUID\";\nimport BigDecimal from \"../sdkTypes/BigDecimal\";\n\n/**\n * Converts a value based on its `_sdkType` property to the appropriate SDK type.\n * @param {*} value - The value to convert.\n * @returns {*} The converted value or the original value if no conversion is needed.\n */\nexport function toSdkTypes(\n value: any\n): LatLng | LatLngBounds | UUID | Money | BigDecimal | any {\n const type = value && value._sdkType;\n\n switch (type) {\n case \"LatLng\":\n return new LatLng(value.lat, value.lng);\n case \"LatLngBounds\":\n return new LatLngBounds(value.ne, value.sw);\n case \"UUID\":\n return new UUID(value.uuid);\n case \"Money\":\n return new Money(value.amount, value.currency);\n case \"BigDecimal\":\n return new BigDecimal(value.value);\n default:\n return value;\n }\n}\n\n//\n// JSON replacer\n//\n// Deprecated\n//\n// The _sdkType field is added to the type object itself,\n// so the use of replacer is not needed. The function exists purely\n// for backwards compatibility. We don't want to remove it in case\n// applications are using it.\n//\nexport const replacer = (key: string, value: any) => value;\n\n//\n// JSON reviver\n//\nexport const reviver = (key: string, value: any) => toSdkTypes(value);\n","import UUID from \"../sdkTypes/UUID\";\nimport LatLng from \"../sdkTypes/LatLng\";\nimport LatLngBounds from \"../sdkTypes/LatLngBounds\";\n\nconst UNKNOWN_TYPE = \"unknown-type\";\n\n/**\n * Serializes a value into a string representation for URL query parameters.\n *\n * @param {*} value - The value to serialize. Supported types:\n * - `UUID` instance: serialized as its `uuid` string.\n * - `LatLng` instance: serialized as \"lat,lng\".\n * - `LatLngBounds` instance: serialized as \"ne.lat,ne.lng,sw.lat,sw.lng\".\n * - `Array`: serialized by recursively serializing each element.\n * - `Date`: serialized as an ISO string.\n * - Primitive types and `null`: returned as-is.\n * @throws {Error} Will throw an error if the value type is unsupported.\n * @returns {string|*} The serialized value.\n */\nexport const serializeValue = (value: any) => {\n let v: any;\n\n if (value instanceof UUID) {\n v = value.uuid;\n } else if (value instanceof LatLng) {\n v = `${value.lat},${value.lng}`;\n } else if (value instanceof LatLngBounds) {\n v = `${value.ne.lat},${value.ne.lng},${value.sw.lat},${value.sw.lng}`;\n } else if (Array.isArray(value)) {\n v = value.map(serializeValue);\n } else if (value instanceof Date) {\n v = value.toISOString();\n } else if (value === null) {\n v = value;\n } else if (typeof value !== \"object\") {\n v = value;\n } else {\n throw new Error(UNKNOWN_TYPE);\n }\n\n return v;\n};\n\n/**\n * Serializes a record of parameters into a query string.\n *\n * @param {Record<string, any>} params - The parameters to serialize. Each value is serialized\n * using the `serializeValue` function.\n * @returns {string} A URL-encoded query string.\n */\nfunction parameterSerializer(params: Record<string, any>): string {\n const serializedParams = new URLSearchParams();\n Object.entries(params).forEach(([key, value]) => {\n serializedParams.append(key, serializeValue(value));\n });\n return serializedParams.toString();\n}\n\nexport default parameterSerializer;\n","import {\n AxiosError,\n AxiosRequestConfig,\n AxiosResponse,\n InternalAxiosRequestConfig,\n} from \"axios\";\nimport { ExtendedInternalAxiosRequestConfig } from \"../types/axios\";\nimport SharetribeSdk from \"../sdk\";\nimport parameterSerializer from \"./parameter-serializer\";\nimport IntegrationSdk from \"../integrationSdk\";\nimport { createTransitConverters } from \"./transit\";\nimport axiosRetry, { IAxiosRetryConfig } from \"axios-retry\";\nexport const QUERY_PARAMETERS = [\n \"include\",\n \"page\",\n \"perPage\",\n \"expand\",\n \"fields\",\n \"limit\",\n];\n\nconst isTransit = (res: any) => {\n const headers = res.headers || {};\n const contentType = headers[\"content-type\"] || \"\";\n\n return contentType.startsWith(\"application/transit+json\");\n};\n\nconst isJson = (res: any) => {\n const headers = res.headers || {};\n const contentType = headers[\"content-type\"] || \"\";\n\n return contentType.startsWith(\"application/json\");\n};\n\n// Utility functions\nexport const isTokenUnauthorized = (status: number) => [401].includes(status);\nexport const isTokenExpired = (status: number) => [401, 403].includes(status);\nexport const routeNeedsTrustedUser = (\n requestConfig: InternalAxiosRequestConfig,\n sdk: SharetribeSdk | IntegrationSdk\n) => {\n const requestUrl = requestConfig.url!;\n const found = Object.entries(sdk).find(([_, value]) => {\n if (typeof value === \"object\") {\n return Object.entries(value).find(([key, endpoint]) => {\n if (key === \"endpoint\" && typeof endpoint === \"string\") {\n return (\n requestUrl.substring(0, requestUrl.lastIndexOf(\"/\")) === endpoint\n );\n }\n });\n }\n }) as [string, { authRequired: boolean }] | undefined;\n return found && found[1].authRequired;\n};\n\nexport const prepareAuthorizationHeader = (data: any) =>\n `${data.token_type} ${data.access_token}`;\n\n// Interceptor handlers\nexport function handleResponseSuccess(sdk: SharetribeSdk | IntegrationSdk) {\n return function onFulfilled(response: AxiosResponse): AxiosResponse {\n if (!sdk.sdkConfig.tokenStore) {\n throw new Error(\"Token store is not set\");\n }\n\n if (isTransit(response)) {\n const { reader } = createTransitConverters(sdk.sdkConfig.typeHandlers, {\n verbose: sdk.sdkConfig.transitVerbose,\n });\n response.data = reader.read(response.data);\n } else if (isJson(response)) {\n response.data = JSON.parse(response.data);\n }\n\n if (response?.data?.access_token) {\n sdk.sdkConfig.tokenStore.setToken(response.data);\n }\n\n if (response?.data?.revoked) {\n sdk.sdkConfig.tokenStore.removeToken();\n }\n\n return response;\n };\n}\n\nexport async function handleResponseFailure(\n sdk: SharetribeSdk | IntegrationSdk,\n error: AxiosError | any\n) {\n if (!sdk.sdkConfig.tokenStore) {\n throw new Error(\"Token store is not set\");\n }\n\n try {\n const originalRequest = error.config as ExtendedInternalAxiosRequestConfig;\n\n // Parse response data if needed\n if (error.response && isTransit(error.response)) {\n const { reader } = createTransitConverters(sdk.sdkConfig.typeHandlers, {\n verbose: sdk.sdkConfig.transitVerbose,\n });\n error.response.data = reader.read(error.response.data as string);\n } else if (error.response && isJson(error.response)) {\n error.response.data = JSON.parse(error.response.data as string);\n }\n\n // Handle token refresh on 401/403 errors\n if (error.response && isTokenExpired(error.response.status)) {\n const token = sdk.sdkConfig.tokenStore.getToken();\n if (token && token.refresh_token) {\n // Get a new token\n const response = await sdk.auth.token<\"refresh-token\">({\n client_id: sdk.sdkConfig.clientId,\n grant_type: \"refresh_token\",\n refresh_token: token.refresh_token,\n });\n\n // Update the request with the new token\n originalRequest.headers.Authorization = prepareAuthorizationHeader(\n response.data\n );\n\n // Store the new token\n sdk.sdkConfig.tokenStore.setToken(response.data);\n\n // Retry the request\n return sdk.axios(originalRequest);\n }\n }\n\n // Handle trusted user check\n if (\n error.response &&\n isTokenUnauthorized(error.response.status) &&\n routeNeedsTrustedUser(originalRequest, sdk)\n ) {\n const token = sdk.sdkConfig.tokenStore.getToken();\n if (token?.scope !== \"trusted:user\") {\n console.error(\"Token is not trusted:user\");\n return Promise.reject(error);\n }\n }\n\n return Promise.reject(error);\n } catch (e) {\n console.error(\"Error in handleResponseFailure:\", e);\n return Promise.reject(e);\n }\n}\n\nexport async function handleRequestSuccess(\n sdk: SharetribeSdk | IntegrationSdk,\n requestConfig: InternalAxiosRequestConfig\n): Promise<InternalAxiosRequestConfig> {\n if (!sdk.sdkConfig.tokenStore) {\n throw new Error(\"Token store is not set\");\n }\n\n if (\n requestConfig.headers[\"Content-Type\"] ===\n \"application/x-www-form-urlencoded\"\n ) {\n return requestConfig;\n }\n\n // Anonymous requests are allowed to use the public-read scope\n const isAnonymousRequest =\n requestConfig?.data?.grant_type === \"client_credentials\" &&\n requestConfig?.data?.scope === \"public-read\";\n if (isAnonymousRequest) {\n return requestConfig;\n }\n\n // when the request has no Authorization header, we need to add it\n if (!requestConfig.headers.Authorization) {\n const authToken = sdk.sdkConfig.tokenStore.getToken();\n if (authToken) {\n requestConfig.headers.Authorization =\n prepareAuthorizationHeader(authToken);\n } else {\n let response: AxiosResponse<any>;\n if (sdk instanceof SharetribeSdk) {\n response = await sdk.auth.token<\"public-read\">({\n client_id: sdk.sdkConfig.clientId,\n grant_type: \"client_credentials\",\n scope: \"public-read\",\n });\n } else if (sdk instanceof IntegrationSdk) {\n if (!sdk.sdkConfig.clientSecret) {\n throw new Error(\"clientSecret is required for integration SDK\");\n }\n\n response = await sdk.auth.token<\"integ\">({\n client_id: sdk.sdkConfig.clientId,\n client_secret: sdk.sdkConfig.clientSecret,\n grant_type: \"client_credentials\",\n scope: \"integ\",\n });\n } else {\n throw new Error(\"Invalid SDK instance\");\n }\n\n sdk.sdkConfig.tokenStore.setToken(response.data);\n\n requestConfig.headers.Authorization = prepareAuthorizationHeader(\n response.data\n );\n }\n }\n\n // Convert data parameter to query Parameters\n if (requestConfig.data) {\n Object.keys(requestConfig.data).forEach((key) => {\n const isQueryParameter = QUERY_PARAMETERS.find(\n (param) => key === param || key.startsWith(param)\n );\n if (isQueryParameter) {\n requestConfig.params = {\n ...requestConfig.params,\n [key]: Array.isArray(requestConfig.data[key])\n ? requestConfig.data[key].join(\",\")\n : requestConfig.data[key],\n };\n delete requestConfig.data[key];\n }\n });\n }\n\n // Turn sdkTypes into non sdkType objects\n if (requestConfig.method === \"post\") {\n if (requestConfig.url?.endsWith(\"/upload\")) {\n requestConfig.headers[\"Content-Type\"] = \"multipart/form-data\";\n } else {\n const { writer } = createTransitConverters(sdk.sdkConfig.typeHandlers, {\n verbose: sdk.sdkConfig.transitVerbose,\n });\n requestConfig.data = writer.write(requestConfig.data);\n requestConfig.headers[\"Content-Type\"] = \"application/transit+json\";\n }\n }\n\n return requestConfig;\n}\n\nexport function createAxiosConfig(\n sdk: SharetribeSdk | IntegrationSdk,\n config: AxiosRequestConfig\n) {\n config.headers = {\n ...config.headers,\n Accept: \"application/transit+json\",\n };\n config.transformRequest = (v) => v;\n config.transformResponse = (v) => v;\n if (sdk.sdkConfig.transitVerbose) {\n config.headers[\"X-Transit-Verbose\"] = true;\n }\n return config;\n}\n\n// Main setup function\nexport function prepareAxiosInstance(sdk: SharetribeSdk | IntegrationSdk) {\n try {\n const retryConfig: IAxiosRetryConfig = {\n retries: 3, // Number of retries\n retryDelay: axiosRetry.exponentialDelay,\n };\n\n // Use type assertion to bypass TypeScript error\n (axiosRetry as any)(sdk.axios, retryConfig);\n } catch (e) {\n console.warn(\"Failed to initialize axios-retry:\", e);\n }\n\n sdk.axios.interceptors.response.use(\n handleResponseSuccess(sdk),\n (error: AxiosError) => handleResponseFailure(sdk, error)\n );\n sdk.axios.interceptors.request.use((config: InternalAxiosRequestConfig) =>\n handleRequestSuccess(sdk, config)\n );\n sdk.axios.defaults.paramsSerializer = parameterSerializer;\n}\n","import Cookies from \"js-cookie\";\nimport { generateKey } from \"./store\";\nimport { TokenStore } from \"../../types/store\";\nimport { AuthToken } from \"../../types/authentication\";\n\n/**\n * Configuration options for the `BrowserStore`.\n */\nexport type BrowserStoreOptions = {\n clientId: string; // Unique identifier for the client\n secure?: boolean; // Whether to use secure cookies (HTTPS only)\n};\n\n/**\n * `BrowserStore` is an implementation of the `TokenStore` interface for storing authentication tokens in browser cookies.\n */\nclass BrowserStore implements TokenStore {\n expiration: number = 30; // Default cookie expiration in days\n private namespace: string = \"st\"; // Namespace for cookie keys\n private readonly key: string; // Generated key for the cookie\n private readonly secure: boolean | undefined; // Indicates if cookies should be marked as secure\n\n /**\n * Initializes the `BrowserStore` with client-specific options.\n * @param options - Configuration options for the store.\n */\n constructor({ clientId, secure }: BrowserStoreOptions) {\n this.secure = secure;\n this.key = generateKey(clientId, this.namespace);\n }\n\n /**\n * Retrieves the authentication token from browser cookies.\n * @returns A promise that resolves to the `AuthToken` or null if no token exists.\n */\n getToken(): AuthToken | null {\n const cookie = Cookies.get(this.key);\n return cookie ? (JSON.parse(cookie) as AuthToken) : null;\n }\n\n /**\n * Stores the authentication token in a browser cookie.\n * @param token - The authentication token to store.\n */\n setToken(token: AuthToken): void {\n const secureFlag = this.secure ? { secure: true } : {};\n Cookies.set(this.key, JSON.stringify(token), {\n expires: this.expiration,\n ...secureFlag,\n });\n }\n\n /**\n * Removes the authentication token from browser cookies.\n */\n removeToken(): void {\n Cookies.remove(this.key);\n }\n}\n\nexport default BrowserStore;\n","import { Request, Response } from \"express\";\nimport { generateKey } from \"./store\";\nimport { TokenStore } from \"../../types/store\";\nimport { AuthToken } from \"../../types/authentication\";\n\n/**\n * Configuration options for the `ExpressStore`.\n */\nexport type ExpressStoreOptions = {\n clientId: string; // Unique identifier for the client\n req: Request; // Express request object\n res: Response; // Express response object\n secure?: boolean; // Whether to use secure cookies (HTTPS only)\n};\n\n/**\n * `ExpressStore` is an implementation of the `TokenStore` interface for managing authentication tokens via cookies in an Express application.\n */\nclass ExpressStore implements TokenStore {\n expiration: number = 180; // Default cookie expiration in days\n private namespace: string = \"st\"; // Namespace for cookie keys\n private key: string; // Generated key for the cookie\n private secure: boolean | undefined; // Indicates if cookies should be marked as secure\n private req: Request; // Reference to the Express request object\n private res: Response; // Reference to the Express response object\n private currentToken: AuthToken | null = null; // Cached token\n\n /**\n * Initializes the `ExpressStore` with client-specific options.\n * @param options - Configuration options for the store.\n */\n constructor({ clientId, req, res, secure }: ExpressStoreOptions) {\n this.key = generateKey(clientId, this.namespace);\n this.secure = secure;\n this.req = req;\n this.res = res;\n }\n\n /**\n * Reads the authentication token from the request cookies.\n * @returns The `AuthToken` if present in cookies, otherwise null.\n */\n private readCookie(): AuthToken | null {\n const cookie = this.req.cookies[this.key];\n return cookie ? (JSON.parse(cookie) as AuthToken) : null;\n }\n\n /**\n * Retrieves the authentication token, either from cache or from the request cookies.\n * @returns A promise that resolves to the `AuthToken` or null if no token exists.\n */\n getToken(): AuthToken | null {\n this.currentToken = this.currentToken || this.readCookie();\n return this.currentToken;\n }\n\n /**\n * Stores the authentication token in a response cookie.\n * @param token - The authentication token to store.\n */\n setToken(token: AuthToken): void {\n this.currentToken = token;\n const secureFlag = this.secure ? { secure: true } : {};\n this.res.cookie(this.key, JSON.stringify(token), {\n maxAge: 1000 * 60 * 60 * 24 * this.expiration, // Convert expiration to milliseconds\n httpOnly: true, // Ensures cookie is only accessible via HTTP(S)\n ...secureFlag,\n });\n }\n\n /**\n * Removes the authentication token from the response cookies.\n */\n removeToken(): void {\n this.currentToken = null;\n this.res.clearCookie(this.key);\n }\n}\n\nexport default ExpressStore;\n","import { TokenStore } from \"../../types/store\";\nimport { AuthToken } from \"../../types/authentication\";\n\n/**\n * `MemoryStore` is an in-memory implementation of the `TokenStore` interface.\n * It is suitable for short-lived or testing purposes, where tokens do not need to persist beyond the application's lifecycle.\n */\nclass MemoryStore implements TokenStore {\n token: AuthToken | null = null; // Holds the token in memory\n\n /**\n * Retrieves the stored authentication token.\n * @returns A promise resolving to the `AuthToken` or `null` if no token is stored.\n */\n getToken(): AuthToken | null {\n return this.token;\n }\n\n /**\n * Removes the stored authentication token from memory.\n */\n removeToken(): void {\n this.token = null;\n }\n\n /**\n * Stores the provided authentication token in memory.\n * @param token - The authentication token to store.\n */\n setToken(token: AuthToken): void {\n this.token = token;\n }\n}\n\nexport default MemoryStore;\n","/**\n * Generates a unique key for storing tokens.\n *\n * @param clientId - The unique identifier for the client.\n * @param namespace - The namespace to organize and scope the key.\n * @returns A string combining the namespace, client ID, and a token suffix.\n */\nexport const generateKey = (clientId: string, namespace: string): string => {\n return `${namespace}-${clientId}-token`;\n};\n","/* eslint no-underscore-dangle: [\"error\", { \"allow\": [\"_sdkType\"] }] */\n\nimport {\n makeWriteHandler,\n reader as transitReader,\n keyword,\n map as transitMap,\n writer as transitWriter,\n} from \"transit-js\";\nimport LatLng from \"../sdkTypes/LatLng\";\nimport UUID from \"../sdkTypes/UUID\";\nimport Money from \"../sdkTypes/Money\";\nimport BigDecimal from \"../sdkTypes/BigDecimal\";\nimport { TypeHandler } from \"../types/config\";\nimport { toSdkTypes } from \"./convert-types\";\n\n// Type definitions for SDK types\ntype SdkTypeClass = any; // Using any to avoid complex type issues\n\n// Helper functions to replace lodash\nconst identity = <T>(value: T): T => value;\nconst find = <T>(array: T[], predicate: (item: T) => boolean): T | undefined =>\n array.find(predicate);\nconst fromPairs = <T>(pairs: [string, T][]): Record<string, T> =>\n Object.fromEntries(pairs) as Record<string, T>;\nconst map = <T, R>(array: T[], callback: (item: T, index: number) => R): R[] =>\n array.map(callback);\nconst flatten = <T>(array: T[][]): T[] => array.flat();\nconst isObject = (value: any): boolean =>\n value !== null && typeof value === \"object\";\nconst entries = (obj: Record<string, any>): [string, any][] => {\n if (obj == null) {\n return [];\n }\n return Object.entries(obj);\n};\n\n// Define interfaces for reader and writer objects\nexport interface TransitReader {\n sdkType: SdkTypeClass;\n reader: (value: any) => any;\n}\n\nexport interface TransitWriter {\n sdkType?: SdkTypeClass;\n appType?: any;\n canHandle?: (args: { key: string; value: any }) => boolean;\n writer: (value: any) => any;\n}\n\nconst composeReader = (\n sdkTypeReader: TransitReader,\n appTypeReader: TransitReader | undefined\n) => {\n const sdkTypeReaderFn = sdkTypeReader.reader;\n const appTypeReaderFn = appTypeReader ? appTypeReader.reader : identity;\n\n return (rep: any) => appTypeReaderFn(sdkTypeReaderFn(rep));\n};\n\n/**\n * Map from transit tags to SDK type classes.\n */\nconst typeMap: Record<string, SdkTypeClass> = {\n u: UUID,\n geo: LatLng,\n mn: Money,\n f: BigDecimal,\n};\n\n/**\n * Readers for SDK types.\n */\nconst sdkTypeReaders: TransitReader[] = [\n {\n sdkType: UUID,\n reader: (rep: string) => new UUID(rep),\n },\n {\n sdkType: LatLng,\n reader: ([lat, lng]: [number | string, number | string]) =>\n new LatLng(lat, lng),\n },\n {\n sdkType: Money,\n reader: ([amount, currency]: [number, string]) =>\n new Money(amount, currency),\n },\n {\n sdkType: BigDecimal,\n reader: (rep: string) => new BigDecimal(rep),\n },\n];\n\n/**\n * Writers for SDK types.\n */\nconst sdkTypeWriters: TransitWriter[] = [\n {\n sdkType: UUID,\n writer: (v: UUID) => v.uuid,\n },\n {\n sdkType: LatLng,\n writer: (v: LatLng) => [v.lat, v.lng],\n },\n {\n sdkType: Money,\n writer: (v: Money) => [v.amount, v.currency],\n },\n {\n sdkType: BigDecimal,\n writer: (v: BigDecimal) => v.value,\n },\n];\n\n/**\n * Construct read handlers for transit types. The handlers are constructed\n * from `appTypeReaders`, `sdkTypeReaders` and `typeMap`.\n */\nconst constructReadHandlers = (appTypeReaders: TransitReader[]) =>\n fromPairs(\n map(Object.entries(typeMap), ([tag, typeClass]) => {\n const sdkTypeReader = find(\n sdkTypeReaders,\n (r) => r.sdkType === typeClass\n );\n const appTypeReader = find(\n appTypeReaders,\n (r) => r.sdkType === typeClass\n );\n\n if (!sdkTypeReader) {\n throw new Error(`SDK type reader not found for tag: ${tag}`);\n }\n\n return [tag, composeReader(sdkTypeReader, appTypeReader)];\n })\n );\n\nconst writeHandlers = flatten(\n map(Object.entries(typeMap), ([tag, typeClass]) => {\n const sdkTypeWriter = find(sdkTypeWriters, (w) => w.sdkType === typeClass);\n\n if (!sdkTypeWriter) {\n throw new Error(`SDK type writer not found for tag: ${tag}`);\n }\n\n const handler = makeWriteHandler({\n tag: () => tag,\n rep: sdkTypeWriter.writer,\n stringRep: (v: any) => sdkTypeWriter.writer(v.toString()),\n });\n\n return [typeClass, handler];\n })\n);\n\nconst mapBuilder = {\n init: () => ({}),\n add: (ret: Record<string, any>, key: string, val: any) => {\n ret[key] = val;\n return ret;\n },\n finalize: identity,\n};\n\nexport const reader = (appTypeReaders: TransitReader[] = []) => {\n const handlers = constructReadHandlers(appTypeReaders);\n\n return transitReader(\"json\", {\n handlers: {\n ...handlers,\n\n // Convert keyword to a string\n // This is a simplification. The API uses keywords, but we\n // can coerse strings to keywords, so it's ok to send strings\n // to the API when keywords is expected.\n \":\": (rep: string) => rep,\n\n // Convert set to an array\n // The conversion loses the information that the\n // value was a set, but that's ok. The API uses sets, but we\n // can coerse arrays to sets, so it's ok to send arrays\n // to the API when set is expected.\n set: (rep: any[]) => rep,\n\n // Convert list to an array\n list: (rep: any[]) => rep,\n },\n mapBuilder,\n });\n};\n\n// Convert JS object to transit map\nconst MapHandlers = [\n Object,\n makeWriteHandler({\n tag: () => \"map\",\n rep: (v: any) =>\n entries(v).reduce((map: any, entry: [string, any]) => {\n const [key, val] = entry;\n map.set(keyword(key), val);\n return map;\n }, transitMap()),\n stringRep: (v: any) => JSON.stringify(v),\n }),\n];\n\nexport const writer = (\n appTypeWriters: TransitWriter[] = [],\n opts: TransitOptions = {}\n) => {\n const { verbose } = opts;\n const transitType = verbose ? \"json-verbose\" : \"json\";\n\n return transitWriter(transitType, {\n handlers: transitMap([...writeHandlers, ...MapHandlers]),\n\n // @ts-ignore - Adding custom properties to transit writer\n transform: (v: any) => {\n if (isObject(v)) {\n if (v._sdkType) {\n return toSdkTypes(v);\n }\n\n const appTypeWriter = find(\n appTypeWriters,\n (w) =>\n (w.appType && v instanceof w.appType) ||\n (w.canHandle && w.canHandle(v))\n );\n\n if (appTypeWriter && appTypeWriter.writer) {\n return appTypeWriter.writer(v);\n }\n }\n return v;\n },\n handlerForForeign: (x, handlers) => {\n if (Array.isArray(x)) {\n return handlers.get(\"array\");\n }\n if (typeof x === \"object\") {\n return handlers.get(\"map\");\n }\n\n return null;\n },\n });\n};\n\nexport type TransitOptions = {\n verbose?: boolean;\n typeHandlers?: TypeHandler[];\n};\n\nexport const createTransitConverters = (\n typeHandlers: TypeHandler[] = [],\n opts: TransitOptions = {}\n) => {\n const { readers, writers } = typeHandlers.reduce<{\n readers: TransitReader[];\n writers: TransitWriter[];\n }>(\n (memo, handler) => {\n const r: TransitReader = {\n sdkType: handler.sdkType,\n reader: handler.reader!,\n };\n const w: TransitWriter = {\n sdkType: handler.sdkType,\n appType: handler.appType,\n canHandle: handler.canHandle,\n writer: handler.writer!,\n };\n\n memo.readers.push(r);\n memo.writers.push(w);\n\n return memo;\n },\n { readers: [], writers: [] }\n );\n\n return {\n reader: reader(readers),\n writer: writer(writers, opts),\n };\n};\n\nexport const read = (str: string, opts: TransitOptions = {}) => {\n const { typeHandlers = [], verbose = false } = opts;\n const { reader: r } = createTransitConverters(typeHandlers, opts);\n return r.read(str);\n};\n\nexport const write = (data: any, opts: TransitOptions = {}) => {\n const { typeHandlers = [], verbose = false } = opts;\n const { writer: w } = createTransitConverters(typeHandlers, opts);\n return w.write(data);\n};\n","import { toSdkTypes } from \"./convert-types\";\n\ntype ObjectQueryStringParam = Record<string, any>;\n\n/**\n * Serializes an attribute into a string representation for query parameters.\n *\n * @param {*} attribute - The attribute to serialize. Supported types:\n * - `Array`: serialized as a comma-separated string of its elements.\n * - Other types: returned as-is.\n * @returns {string} The serialized attribute.\n */\nconst serializeAttribute = (attribute: any): string => {\n if (Array.isArray(attribute)) {\n return attribute.join(\",\");\n } else {\n return attribute;\n }\n};\n\n/**\n * Serializes an object into a custom query string format.\n *\n * @param {ObjectQueryStringParam} obj - The object to serialize. Each key-value pair\n * is serialized in the format `key:value`. Attributes are processed using\n * `serializeAttribute`.\n * @throws {Error} If the input is not an object or is null.\n * @returns {string} A semicolon-separated query string.\n */\nexport const objectQueryString = (obj: ObjectQueryStringParam): string => {\n // Ensure the input is a valid object\n if (obj === null || typeof obj !== \"object\" || Array.isArray(obj)) {\n console.warn(\"Params must be an object\");\n // You can throw an error instead of warning if strict validation is required:\n // throw new Error(\"Params must be an object\");\n return \"\";\n }\n\n return Object.entries(obj)\n .filter(([_, value]) => value !== undefined && value !== null) // Exclude undefined or null values\n .map(([key, value]) => `${key}:${serializeAttribute(value)}`) // Serialize each key-value pair\n .join(\";\"); // Join the serialized pairs with semicolons\n};\n","const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);\nexport default {\n randomUUID\n};","// Unique ID creation requires a high quality random # generator. In the browser we therefore\n// require the crypto API and do not support built-in fallback to lower quality random number\n// generators (like Math.random()).\nlet getRandomValues;\nconst rnds8 = new Uint8Array(16);\nexport default function rng() {\n // lazy load so that environments that need to polyfill have a chance to do so\n if (!getRandomValues) {\n // getRandomValues needs to be invoked in a context where \"this\" is a Crypto implementation.\n getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto);\n\n if (!getRandomValues) {\n throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');\n }\n }\n\n return getRandomValues(rnds8);\n}","import validate from './validate.js';\n/**\n * Convert array of 16 byte values to UUID string format of the form:\n * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\n */\n\nconst byteToHex = [];\n\nfor (let i = 0; i < 256; ++i) {\n byteToHex.push((i + 0x100).toString(16).slice(1));\n}\n\nexport function unsafeStringify(arr, offset = 0) {\n // Note: Be careful editing this code! It's been tuned for performance\n // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434\n return byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]];\n}\n\nfunction stringify(arr, offset = 0) {\n const uuid = unsafeStringify(arr, offset); // Consistency check for valid UUID. If this throws, it's likely due to one\n // of the following:\n // - One or more input array values don't map to a hex octet (leading to\n // \"undefined\" in the uuid)\n // - Invalid input values for the RFC `version` or `variant` fields\n\n if (!validate(uuid)) {\n throw TypeError('Stringified UUID is invalid');\n }\n\n return uuid;\n}\n\nexport default stringify;","import native from './native.js';\nimport rng from './rng.js';\nimport { unsafeStringify } from './stringify.js';\n\nfunction v4(options, buf, offset) {\n if (native.randomUUID && !buf && !options) {\n return native.randomUUID();\n }\n\n options = options || {};\n const rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`\n\n rnds[6] = rnds[6] & 0x0f | 0x40;\n rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided\n\n if (buf) {\n offset = offset || 0;\n\n for (let i = 0; i < 16; ++i) {\n buf[offset + i] = rnds[i];\n }\n\n return buf;\n }\n\n return unsafeStringify(rnds);\n}\n\nexport default v4;","import isRetryAllowed from 'is-retry-allowed';\nexport const namespace = 'axios-retry';\nexport function isNetworkError(error) {\n const CODE_EXCLUDE_LIST = ['ERR_CANCELED', 'ECONNABORTED'];\n if (error.response) {\n return false;\n }\n if (!error.code) {\n return false;\n }\n // Prevents retrying timed out & cancelled requests\n if (CODE_EXCLUDE_LIST.includes(error.code)) {\n return false;\n }\n // Prevents retrying unsafe errors\n return isRetryAllowed(error);\n}\nconst SAFE_HTTP_METHODS = ['get', 'head', 'options'];\nconst IDEMPOTENT_HTTP_METHODS = SAFE_HTTP_METHODS.concat(['put', 'delete']);\nexport function isRetryableError(error) {\n return (error.code !== 'ECONNABORTED' &&\n (!error.response ||\n error.response.status === 429 ||\n (error.response.status >= 500 && error.response.status <= 599)));\n}\nexport function isSafeRequestError(error) {\n if (!error.config?.method) {\n // Cannot determine if the request can be retried\n return false;\n }\n return isRetryableError(error) && SAFE_HTTP_METHODS.indexOf(error.config.method) !== -1;\n}\nexport function isIdempotentRequestError(error) {\n if (!error.config?.method) {\n // Cannot determine if the request can be retried\n return false;\n }\n return isRetryableError(error) && IDEMPOTENT_HTTP_METHODS.indexOf(error.config.method) !== -1;\n}\nexport function isNetworkOrIdempotentRequestError(error) {\n return isNetworkError(error) || isIdempotentRequestError(error);\n}\nexport function retryAfter(error = undefined) {\n const retryAfterHeader = error?.response?.headers['retry-after'];\n if (!retryAfterHeader) {\n return 0;\n }\n // if the retry after header is a number, convert it to milliseconds\n let retryAfterMs = (Number(retryAfterHeader) || 0) * 1000;\n // If the retry after header is a date, get the number of milliseconds until that date\n if (retryAfterMs === 0) {\n retryAfterMs = (new Date(retryAfterHeader).valueOf() || 0) - Date.now();\n }\n return Math.max(0, retryAfterMs);\n}\nfunction noDelay(_retryNumber = 0, error = undefined) {\n return Math.max(0, retryAfter(error));\n}\nexport function exponentialDelay(retryNumber = 0, error = undefined, delayFactor = 100) {\n const calculatedDelay = 2 ** retryNumber * delayFactor;\n const delay = Math.max(calculatedDelay, retryAfter(error));\n const randomSum = delay * 0.2 * Math.random(); // 0-20% of the delay\n return delay + randomSum;\n}\n/**\n * Linear delay\n * @param {number | undefined} delayFactor - delay factor in milliseconds (default: 100)\n * @returns {function} (retryNumber: number, error: AxiosError | undefined) => number\n */\nexport function linearDelay(delayFactor = 100) {\n return (retryNumber = 0, error = undefined) => {\n const delay = retryNumber * delayFactor;\n return Math.max(delay, retryAfter(error));\n };\n}\nexport const DEFAULT_OPTIONS = {\n retries: 3,\n retryCondition: isNetworkOrIdempotentRequestError,\n retryDelay: noDelay,\n shouldResetTimeout: false,\n onRetry: () => { },\n onMaxRetryTimesExceeded: () => { },\n validateResponse: null\n};\nfunction getRequestOptions(config, defaultOptions) {\n return { ...DEFAULT_OPTIONS, ...defaultOptions, ...config[namespace] };\n}\nfunction setCurrentState(config, defaultOptions, resetLastRequestTime = false) {\n const currentState = getRequestOptions(config, defaultOptions || {});\n currentState.retryCount = currentState.retryCount || 0;\n if (!currentState.lastRequestTime || resetLastRequestTime) {\n currentState.lastRequestTime = Date.now();\n }\n config[namespace] = currentState;\n return currentState;\n}\nfunction fixConfig(axiosInstance, config) {\n // @ts-ignore\n if (axiosInstance.defaults.agent === config.agent) {\n // @ts-ignore\n delete config.agent;\n }\n if (axiosInstance.defaults.httpAgent === config.httpAgent) {\n delete config.httpAgent;\n }\n if (axiosInstance.defaults.httpsAgent === config.httpsAgent) {\n delete config.httpsAgent;\n }\n}\nasync function shouldRetry(currentState, error) {\n const { retries, retryCondition } = currentState;\n const shouldRetryOrPromise = (currentState.retryCount || 0) < retries && retryCondition(error);\n // This could be a promise\n if (typeof shouldRetryOrPromise === 'object') {\n try {\n const shouldRetryPromiseResult = await shouldRetryOrPromise;\n // keep return true unless shouldRetryPromiseResult return false for compatibility\n return shouldRetryPromiseResult !== false;\n }\n catch (_err) {\n return false;\n }\n }\n return shouldRetryOrPromise;\n}\nasync function handleRetry(axiosInstance, currentState, error, config) {\n currentState.retryCount += 1;\n const { retryDelay, shouldResetTimeout, onRetry } = currentState;\n const delay = retryDelay(currentState.retryCount, error);\n // Axios fails merging this configuration to the default configuration because it has an issue\n // with circular structures: https://github.com/mzabriskie/axios/issues/370\n fixConfig(axiosInstance, config);\n if (!shouldResetTimeout && config.timeout && currentState.lastRequestTime) {\n const lastRequestDuration = Date.now() - currentState.lastRequestTime;\n const timeout = config.timeout - lastRequestDuration - delay;\n if (timeout <= 0) {\n return Promise.reject(error);\n }\n config.timeout = timeout;\n }\n config.transformRequest = [(data) => data];\n await onRetry(currentState.retryCount, error, config);\n if (config.signal?.aborted) {\n return Promise.resolve(axiosInstance(config));\n }\n return new Promise((resolve) => {\n const abortListener = () => {\n clearTimeout(timeout);\n resolve(axiosInstance(config));\n };\n const timeout = setTimeout(() => {\n resolve(axiosInstance(config));\n if (config.signal?.removeEventListener) {\n config.signal.removeEventListener('abort', abortListener);\n }\n }, delay);\n if (config.signal?.addEventListener) {\n config.signal.addEventListener('abort', abortListener, { once: true });\n }\n });\n}\nasync function handleMaxRetryTimesExceeded(currentState, error) {\n if (currentState.retryCount >= currentState.retries)\n await currentState.onMaxRetryTimesExceeded(error, currentState.retryCount);\n}\nconst axiosRetry = (axiosInstance, defaultOptions) => {\n const requestInterceptorId = axiosInstance.interceptors.request.use((config) => {\n setCurrentState(config, defaultOptions, true);\n if (config[namespace]?.validateResponse) {\n // by setting this, all HTTP responses will be go through the error interceptor first\n config.validateStatus = () => false;\n }\n return config;\n });\n const responseInterceptorId = axiosInstance.interceptors.response.use(null, async (error) => {\n const { config } = error;\n // If we have no information to retry the request\n if (!config) {\n return Promise.reject(error);\n }\n const currentState = setCurrentState(config, defaultOptions);\n if (error.response && currentState.validateResponse?.(error.response)) {\n // no issue with response\n return error.response;\n }\n if (await shouldRetry(currentState, error)) {\n return handleRetry(axiosInstance, currentState, error, config);\n }\n await handleMaxRetryTimesExceeded(currentState, error);\n return Promise.reject(error);\n });\n return { requestInterceptorId, responseInterceptorId };\n};\n// Compatibility with CommonJS\naxiosRetry.isNetworkError = isNetworkError;\naxiosRetry.isSafeRequestError = isSafeRequestError;\naxiosRetry.isIdempotentRequestError = isIdempotentRequestError;\naxiosRetry.isNetworkOrIdempotentRequestError = isNetworkOrIdempotentRequestError;\naxiosRetry.exponentialDelay = exponentialDelay;\naxiosRetry.linearDelay = linearDelay;\naxiosRetry.isRetryableError = isRetryableError;\nexport default axiosRetry;\n","import utils from '../utils.js';\nimport httpAdapter from './http.js';\nimport xhrAdapter from './xhr.js';\nimport fetchAdapter from './fetch.js';\nimport AxiosError from \"../core/AxiosError.js\";\n\nconst knownAdapters = {\n http: httpAdapter,\n xhr: xhrAdapter,\n fetch: fetchAdapter\n}\n\nutils.forEach(knownAdapters, (fn, value) => {\n if (fn) {\n try {\n Object.defineProperty(fn, 'name', {value});\n } catch (e) {\n // eslint-disable-next-line no-empty\n }\n Object.defineProperty(fn, 'adapterName', {value});\n }\n});\n\nconst renderReason = (reason) => `- ${reason}`;\n\nconst isResolvedHandle = (adapter) => utils.isFunction(adapter) || adapter === null || adapter === false;\n\nexport default {\n getAdapter: (adapters) => {\n adapters = utils.isArray(adapters) ? adapters : [adapters];\n\n const {length} = adapters;\n let nameOrAdapter;\n let adapter;\n\n const rejectedReasons = {};\n\n for (let i = 0; i < length; i++) {\n nameOrAdapter = adapters[i];\n let id;\n\n adapter = nameOrAdapter;\n\n if (!isResolvedHandle(nameOrAdapter)) {\n adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];\n\n if (adapter === undefined) {\n throw new AxiosError(`Unknown adapter '${id}'`);\n }\n }\n\n if (adapter) {\n break;\n }\n\n rejectedReasons[id || '#' + i] = adapter;\n }\n\n if (!adapter) {\n\n const reasons = Object.entries(rejectedReasons)\n .map(([id, state]) => `adapter ${id} ` +\n (state === false ? 'is not supported by the environment' : 'is not available in the build')\n );\n\n let s = length ?\n (reasons.length > 1 ? 'since :\\n' + reasons.map(renderReason).join('\\n') : ' ' + renderReason(reasons[0])) :\n 'as no adapter specified';\n\n throw new AxiosError(\n `There is no suitable adapter to dispatch the request ` + s,\n 'ERR_NOT_SUPPORT'\n );\n }\n\n return adapter;\n },\n adapters: knownAdapters\n}\n","import platform from \"../platform/index.js\";\nimport utils from \"../utils.js\";\nimport AxiosError from \"../core/AxiosError.js\";\nimport composeSignals from \"../helpers/composeSignals.js\";\nimport {trackStream} from \"../helpers/trackStream.js\";\nimport AxiosHeaders from \"../core/AxiosHeaders.js\";\nimport {progressEventReducer, progressEventDecorator, asyncDecorator} from \"../helpers/progressEventReducer.js\";\nimport resolveConfig from \"../helpers/resolveConfig.js\";\nimport settle from \"../core/settle.js\";\n\nconst isFetchSupported = typeof fetch === 'function' && typeof Request === 'function' && typeof Response === 'function';\nconst isReadableStreamSupported = isFetchSupported && typeof ReadableStream === 'function';\n\n// used only inside the fetch adapter\nconst encodeText = isFetchSupported && (typeof TextEncoder === 'function' ?\n ((encoder) => (str) => encoder.encode(str))(new TextEncoder()) :\n async (str) => new Uint8Array(await new Response(str).arrayBuffer())\n);\n\nconst test = (fn, ...args) => {\n try {\n return !!fn(...args);\n } catch (e) {\n return false\n }\n}\n\nconst supportsRequestStream = isReadableStreamSupported && test(() => {\n let duplexAccessed = false;\n\n const hasContentType = new Request(platform.origin, {\n body: new ReadableStream(),\n method: 'POST',\n get duplex() {\n duplexAccessed = true;\n return 'half';\n },\n }).headers.has('Content-Type');\n\n return duplexAccessed && !hasContentType;\n});\n\nconst DEFAULT_CHUNK_SIZE = 64 * 1024;\n\nconst supportsResponseStream = isReadableStreamSupported &&\n test(() => utils.isReadableStream(new Response('').body));\n\n\nconst resolvers = {\n stream: supportsResponseStream && ((res) => res.body)\n};\n\nisFetchSupported && (((res) => {\n ['text', 'arrayBuffer', 'blob', 'formData', 'stream'].forEach(type => {\n !resolvers[type] && (resolvers[type] = utils.isFunction(res[type]) ? (res) => res[type]() :\n (_, config) => {\n throw new AxiosError(`Response type '${type}' is not supported`, AxiosError.ERR_NOT_SUPPORT, config);\n })\n });\n})(new Response));\n\nconst getBodyLength = async (body) => {\n if (body == null) {\n return 0;\n }\n\n if(utils.isBlob(body)) {\n return body.size;\n }\n\n if(utils.isSpecCompliantForm(body)) {\n const _request = new Request(platform.origin, {\n method: 'POST',\n body,\n });\n return (await _request.arrayBuffer()).byteLength;\n }\n\n if(utils.isArrayBufferView(body) || utils.isArrayBuffer(body)) {\n return body.byteLength;\n }\n\n if(utils.isURLSearchParams(body)) {\n body = body + '';\n }\n\n if(utils.isString(body)) {\n return (await encodeText(body)).byteLength;\n }\n}\n\nconst resolveBodyLength = async (headers, body) => {\n const length = utils.toFiniteNumber(headers.getContentLength());\n\n return length == null ? getBodyLength(body) : length;\n}\n\nexport default isFetchSupported && (async (config) => {\n let {\n url,\n method,\n data,\n signal,\n cancelToken,\n timeout,\n onDownloadProgress,\n onUploadProgress,\n responseType,\n headers,\n withCredentials = 'same-origin',\n fetchOptions\n } = resolveConfig(config);\n\n responseType = responseType ? (responseType + '').toLowerCase() : 'text';\n\n let composedSignal = composeSignals([signal, cancelToken && cancelToken.toAbortSignal()], timeout);\n\n let request;\n\n const unsubscribe = composedSignal && composedSignal.unsubscribe && (() => {\n composedSignal.unsubscribe();\n });\n\n let requestContentLength;\n\n try {\n if (\n onUploadProgress && supportsRequestStream && method !== 'get' && method !== 'head' &&\n (requestContentLength = await resolveBodyLength(headers, data)) !== 0\n ) {\n let _request = new Request(url, {\n method: 'POST',\n body: data,\n duplex: \"half\"\n });\n\n let contentTypeHeader;\n\n if (utils.isFormData(data) && (contentTypeHeader = _request.headers.get('content-type'))) {\n headers.setContentType(contentTypeHeader)\n }\n\n if (_request.body) {\n const [onProgress, flush] = progressEventDecorator(\n requestContentLength,\n progressEventReducer(asyncDecorator(onUploadProgress))\n );\n\n data = trackStream(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush);\n }\n }\n\n if (!utils.isString(withCredentials)) {\n withCredentials = withCredentials ? 'include' : 'omit';\n }\n\n // Cloudflare Workers throws when credentials are defined\n // see https://github.com/cloudflare/workerd/issues/902\n const isCredentialsSupported = \"credentials\" in Request.prototype;\n request = new Request(url, {\n ...fetchOptions,\n signal: composedSignal,\n method: method.toUpperCase(),\n headers: headers.normalize().toJSON(),\n body: data,\n duplex: \"half\",\n credentials: isCredentialsSupported ? withCredentials : undefined\n });\n\n let response = await fetch(request);\n\n const isStreamResponse = supportsResponseStream && (responseType === 'stream' || responseType === 'response');\n\n if (supportsResponseStream && (onDownloadProgress || (isStreamResponse && unsubscribe))) {\n const options = {};\n\n ['status', 'statusText', 'headers'].forEach(prop => {\n options[prop] = response[prop];\n });\n\n const responseContentLength = utils.toFiniteNumber(response.headers.get('content-length'));\n\n const [onProgress, flush] = onDownloadProgress && progressEventDecorator(\n responseContentLength,\n progressEventReducer(asyncDecorator(onDownloadProgress), true)\n ) || [];\n\n response = new Response(\n trackStream(response.body, DEFAULT_CHUNK_SIZE, onProgress, () => {\n flush && flush();\n unsubscribe && unsubscribe();\n }),\n options\n );\n }\n\n responseType = responseType || 'text';\n\n let responseData = await resolvers[utils.findKey(resolvers, responseType) || 'text'](response, config);\n\n !isStreamResponse && unsubscribe && unsubscribe();\n\n return await new Promise((resolve, reject) => {\n settle(resolve, reject, {\n data: responseData,\n headers: AxiosHeaders.from(response.headers),\n status: response.status,\n statusText: response.statusText,\n config,\n request\n })\n })\n } catch (err) {\n unsubscribe && unsubscribe();\n\n if (err && err.name === 'TypeError' && /fetch/i.test(err.message)) {\n throw Object.assign(\n new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request),\n {\n cause: err.cause || err\n }\n )\n }\n\n throw AxiosError.from(err, err && err.code, config, request);\n }\n});\n\n\n","import utils from './../utils.js';\nimport settle from './../core/settle.js';\nimport transitionalDefaults from '../defaults/transitional.js';\nimport AxiosError from '../core/AxiosError.js';\nimport CanceledError from '../cancel/CanceledError.js';\nimport parseProtocol from '../helpers/parseProtocol.js';\nimport platform from '../platform/index.js';\nimport AxiosHeaders from '../core/AxiosHeaders.js';\nimport {progressEventReducer} from '../helpers/progressEventReducer.js';\nimport resolveConfig from \"../helpers/resolveConfig.js\";\n\nconst isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';\n\nexport default isXHRAdapterSupported && function (config) {\n return new Promise(function dispatchXhrRequest(resolve, reject) {\n const _config = resolveConfig(config);\n let requestData = _config.data;\n const requestHeaders = AxiosHeaders.from(_config.headers).normalize();\n let {responseType, onUploadProgress, onDownloadProgress} = _config;\n let onCanceled;\n let uploadThrottled, downloadThrottled;\n let flushUpload, flushDownload;\n\n function done() {\n flushUpload && flushUpload(); // flush events\n flushDownload && flushDownload(); // flush events\n\n _config.cancelToken && _config.cancelToken.unsubscribe(onCanceled);\n\n _config.signal && _config.signal.removeEventListener('abort', onCanceled);\n }\n\n let request = new XMLHttpRequest();\n\n request.open(_config.method.toUpperCase(), _config.url, true);\n\n // Set the request timeout in MS\n request.timeout = _config.timeout;\n\n function onloadend() {\n if (!request) {\n return;\n }\n // Prepare the response\n const responseHeaders = AxiosHeaders.from(\n 'getAllResponseHeaders' in request && request.getAllResponseHeaders()\n );\n const responseData = !responseType || responseType === 'text' || responseType === 'json' ?\n request.responseText : request.response;\n const response = {\n data: responseData,\n status: request.status,\n statusText: request.statusText,\n headers: responseHeaders,\n config,\n request\n };\n\n settle(function _resolve(value) {\n resolve(value);\n done();\n }, function _reject(err) {\n reject(err);\n done();\n }, response);\n\n // Clean up request\n request = null;\n }\n\n if ('onloadend' in request) {\n // Use onloadend if available\n request.onloadend = onloadend;\n } else {\n // Listen for ready state to emulate onloadend\n request.onreadystatechange = function handleLoad() {\n if (!request || request.readyState !== 4) {\n return;\n }\n\n // The request errored out and we didn't get a response, this will be\n // handled by onerror instead\n // With one exception: request that using file: protocol, most browsers\n // will return status as 0 even though it's a successful request\n if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {\n return;\n }\n // readystate handler is calling before onerror or ontimeout handlers,\n // so we should call onloadend on the next 'tick'\n setTimeout(onloadend);\n };\n }\n\n // Handle browser request cancellation (as opposed to a manual cancellation)\n request.onabort = function handleAbort() {\n if (!request) {\n return;\n }\n\n reject(new AxiosError('Request aborted', AxiosError.ECONNABORTED, config, request));\n\n // Clean up request\n request = null;\n };\n\n // Handle low level network errors\n request.onerror = function handleError() {\n // Real errors are hidden from us by the browser\n // onerror should only fire if it's a network error\n reject(new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request));\n\n // Clean up request\n request = null;\n };\n\n // Handle timeout\n request.ontimeout = function handleTimeout() {\n let timeoutErrorMessage = _config.timeout ? 'timeout of ' + _config.timeout + 'ms exceeded' : 'timeout exceeded';\n const transitional = _config.transitional || transitionalDefaults;\n if (_config.timeoutErrorMessage) {\n timeoutErrorMessage = _config.timeoutErrorMessage;\n }\n reject(new AxiosError(\n timeoutErrorMessage,\n transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED,\n config,\n request));\n\n // Clean up request\n request = null;\n };\n\n // Remove Content-Type if data is undefined\n requestData === undefined && requestHeaders.setContentType(null);\n\n // Add headers to the request\n if ('setRequestHeader' in request) {\n utils.forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) {\n request.setRequestHeader(key, val);\n });\n }\n\n // Add withCredentials to request if needed\n if (!utils.isUndefined(_config.withCredentials)) {\n request.withCredentials = !!_config.withCredentials;\n }\n\n // Add responseType to request if needed\n if (responseType && responseType !== 'json') {\n request.responseType = _config.responseType;\n }\n\n // Handle progress if needed\n if (onDownloadProgress) {\n ([downloadThrottled, flushDownload] = progressEventReducer(onDownloadProgress, true));\n request.addEventListener('progress', downloadThrottled);\n }\n\n // Not all browsers support upload events\n if (onUploadProgress && request.upload) {\n ([uploadThrottled, flushUpload] = progressEventReducer(onUploadProgress));\n\n request.upload.addEventListener('progress', uploadThrottled);\n\n request.upload.addEventListener('loadend', flushUpload);\n }\n\n if (_config.cancelToken || _config.signal) {\n // Handle cancellation\n // eslint-disable-next-line func-names\n onCanceled = cancel => {\n if (!request) {\n return;\n }\n reject(!cancel || cancel.type ? new CanceledError(null, config, request) : cancel);\n request.abort();\n request = null;\n };\n\n _config.cancelToken && _config.cancelToken.subscribe(onCanceled);\n if (_config.signal) {\n _config.signal.aborted ? onCanceled() : _config.signal.addEventListener('abort', onCanceled);\n }\n }\n\n const protocol = parseProtocol(_config.url);\n\n if (protocol && platform.protocols.indexOf(protocol) === -1) {\n reject(new AxiosError('Unsupported protocol ' + protocol + ':', AxiosError.ERR_BAD_REQUEST, config));\n return;\n }\n\n\n // Send the request\n request.send(requestData || null);\n });\n}\n","'use strict';\n\nimport utils from './utils.js';\nimport bind from './helpers/bind.js';\nimport Axios from './core/Axios.js';\nimport mergeConfig from './core/mergeConfig.js';\nimport defaults from './defaults/index.js';\nimport formDataToJSON from './helpers/formDataToJSON.js';\nimport CanceledError from './cancel/CanceledError.js';\nimport CancelToken from './cancel/CancelToken.js';\nimport isCancel from './cancel/isCancel.js';\nimport {VERSION} from './env/data.js';\nimport toFormData from './helpers/toFormData.js';\nimport AxiosError from './core/AxiosError.js';\nimport spread from './helpers/spread.js';\nimport isAxiosError from './helpers/isAxiosError.js';\nimport AxiosHeaders from \"./core/AxiosHeaders.js\";\nimport adapters from './adapters/adapters.js';\nimport HttpStatusCode from './helpers/HttpStatusCode.js';\n\n/**\n * Create an instance of Axios\n *\n * @param {Object} defaultConfig The default config for the instance\n *\n * @returns {Axios} A new instance of Axios\n */\nfunction createInstance(defaultConfig) {\n const context = new Axios(defaultConfig);\n const instance = bind(Axios.prototype.request, context);\n\n // Copy axios.prototype to instance\n utils.extend(instance, Axios.prototype, context, {allOwnKeys: true});\n\n // Copy context to instance\n utils.extend(instance, context, null, {allOwnKeys: true});\n\n // Factory for creating new instances\n instance.create = function create(instanceConfig) {\n return createInstance(mergeConfig(defaultConfig, instanceConfig));\n };\n\n return instance;\n}\n\n// Create the default instance to be exported\nconst axios = createInstance(defaults);\n\n// Expose Axios class to allow class inheritance\naxios.Axios = Axios;\n\n// Expose Cancel & CancelToken\naxios.CanceledError = CanceledError;\naxios.CancelToken = CancelToken;\naxios.isCancel = isCancel;\naxios.VERSION = VERSION;\naxios.toFormData = toFormData;\n\n// Expose AxiosError class\naxios.AxiosError = AxiosError;\n\n// alias for CanceledError for backward compatibility\naxios.Cancel = axios.CanceledError;\n\n// Expose all/spread\naxios.all = function all(promises) {\n return Promise.all(promises);\n};\n\naxios.spread = spread;\n\n// Expose isAxiosError\naxios.isAxiosError = isAxiosError;\n\n// Expose mergeConfig\naxios.mergeConfig = mergeConfig;\n\naxios.AxiosHeaders = AxiosHeaders;\n\naxios.formToJSON = thing => formDataToJSON(utils.isHTMLForm(thing) ? new FormData(thing) : thing);\n\naxios.getAdapter = adapters.getAdapter;\n\naxios.HttpStatusCode = HttpStatusCode;\n\naxios.default = axios;\n\n// this module should only have a default export\nexport default axios\n","'use strict';\n\nimport CanceledError from './CanceledError.js';\n\n/**\n * A `CancelToken` is an object that can be used to request cancellation of an operation.\n *\n * @param {Function} executor The executor function.\n *\n * @returns {CancelToken}\n */\nclass CancelToken {\n constructor(executor) {\n if (typeof executor !== 'function') {\n throw new TypeError('executor must be a function.');\n }\n\n let resolvePromise;\n\n this.promise = new Promise(function promiseExecutor(resolve) {\n resolvePromise = resolve;\n });\n\n const token = this;\n\n // eslint-disable-next-line func-names\n this.promise.then(cancel => {\n if (!token._listeners) return;\n\n let i = token._listeners.length;\n\n while (i-- > 0) {\n token._listeners[i](cancel);\n }\n token._listeners = null;\n });\n\n // eslint-disable-next-line func-names\n this.promise.then = onfulfilled => {\n let _resolve;\n // eslint-disable-next-line func-names\n const promise = new Promise(resolve => {\n token.subscribe(resolve);\n _resolve = resolve;\n }).then(onfulfilled);\n\n promise.cancel = function reject() {\n token.unsubscribe(_resolve);\n };\n\n return promise;\n };\n\n executor(function cancel(message, config, request) {\n if (token.reason) {\n // Cancellation has already been requested\n return;\n }\n\n token.reason = new CanceledError(message, config, request);\n resolvePromise(token.reason);\n });\n }\n\n /**\n * Throws a `CanceledError` if cancellation has been requested.\n */\n throwIfRequested() {\n if (this.reason) {\n throw this.reason;\n }\n }\n\n /**\n * Subscribe to the cancel signal\n */\n\n subscribe(listener) {\n if (this.reason) {\n listener(this.reason);\n return;\n }\n\n if (this._listeners) {\n this._listeners.push(listener);\n } else {\n this._listeners = [listener];\n }\n }\n\n /**\n * Unsubscribe from the cancel signal\n */\n\n unsubscribe(listener) {\n if (!this._listeners) {\n return;\n }\n const index = this._listeners.indexOf(listener);\n if (index !== -1) {\n this._listeners.splice(index, 1);\n }\n }\n\n toAbortSignal() {\n const controller = new AbortController();\n\n const abort = (err) => {\n controller.abort(err);\n };\n\n this.subscribe(abort);\n\n controller.signal.unsubscribe = () => this.unsubscribe(abort);\n\n return controller.signal;\n }\n\n /**\n * Returns an object that contains a new `CancelToken` and a function that, when called,\n * cancels the `CancelToken`.\n */\n static source() {\n let cancel;\n const token = new CancelToken(function executor(c) {\n cancel = c;\n });\n return {\n token,\n cancel\n };\n }\n}\n\nexport default CancelToken;\n","'use strict';\n\nimport AxiosError from '../core/AxiosError.js';\nimport utils from '../utils.js';\n\n/**\n * A `CanceledError` is an object that is thrown when an operation is canceled.\n *\n * @param {string=} message The message.\n * @param {Object=} config The config.\n * @param {Object=} request The request.\n *\n * @returns {CanceledError} The created error.\n */\nfunction CanceledError(message, config, request) {\n // eslint-disable-next-line no-eq-null,eqeqeq\n AxiosError.call(this, message == null ? 'canceled' : message, AxiosError.ERR_CANCELED, config, request);\n this.name = 'CanceledError';\n}\n\nutils.inherits(CanceledError, AxiosError, {\n __CANCEL__: true\n});\n\nexport default CanceledError;\n","'use strict';\n\nexport default function isCancel(value) {\n return !!(value && value.__CANCEL__);\n}\n","'use strict';\n\nimport utils from './../utils.js';\nimport buildURL from '../helpers/buildURL.js';\nimport InterceptorManager from './InterceptorManager.js';\nimport dispatchRequest from './dispatchRequest.js';\nimport mergeConfig from './mergeConfig.js';\nimport buildFullPath from './buildFullPath.js';\nimport validator from '../helpers/validator.js';\nimport AxiosHeaders from './AxiosHeaders.js';\n\nconst validators = validator.validators;\n\n/**\n * Create a new instance of Axios\n *\n * @param {Object} instanceConfig The default config for the instance\n *\n * @return {Axios} A new instance of Axios\n */\nclass Axios {\n constructor(instanceConfig) {\n this.defaults = instanceConfig;\n this.interceptors = {\n request: new InterceptorManager(),\n response: new InterceptorManager()\n };\n }\n\n /**\n * Dispatch a request\n *\n * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)\n * @param {?Object} config\n *\n * @returns {Promise} The Promise to be fulfilled\n */\n async request(configOrUrl, config) {\n try {\n return await this._request(configOrUrl, config);\n } catch (err) {\n if (err instanceof Error) {\n let dummy = {};\n\n Error.captureStackTrace ? Error.captureStackTrace(dummy) : (dummy = new Error());\n\n // slice off the Error: ... line\n const stack = dummy.stack ? dummy.stack.replace(/^.+\\n/, '') : '';\n try {\n if (!err.stack) {\n err.stack = stack;\n // match without the 2 top stack lines\n } else if (stack && !String(err.stack).endsWith(stack.replace(/^.+\\n.+\\n/, ''))) {\n err.stack += '\\n' + stack\n }\n } catch (e) {\n // ignore the case where \"stack\" is an un-writable property\n }\n }\n\n throw err;\n }\n }\n\n _request(configOrUrl, config) {\n /*eslint no-param-reassign:0*/\n // Allow for axios('example/url'[, config]) a la fetch API\n if (typeof configOrUrl === 'string') {\n config = config || {};\n config.url = configOrUrl;\n } else {\n config = configOrUrl || {};\n }\n\n config = mergeConfig(this.defaults, config);\n\n const {transitional, paramsSerializer, headers} = config;\n\n if (transitional !== undefined) {\n validator.assertOptions(transitional, {\n silentJSONParsing: validators.transitional(validators.boolean),\n forcedJSONParsing: validators.transitional(validators.boolean),\n clarifyTimeoutError: validators.transitional(validators.boolean)\n }, false);\n }\n\n if (paramsSerializer != null) {\n if (utils.isFunction(paramsSerializer)) {\n config.paramsSerializer = {\n serialize: paramsSerializer\n }\n } else {\n validator.assertOptions(paramsSerializer, {\n encode: validators.function,\n serialize: validators.function\n }, true);\n }\n }\n\n // Set config.allowAbsoluteUrls\n if (config.allowAbsoluteUrls !== undefined) {\n // do nothing\n } else if (this.defaults.allowAbsoluteUrls !== undefined) {\n config.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls;\n } else {\n config.allowAbsoluteUrls = true;\n }\n\n validator.assertOptions(config, {\n baseUrl: validators.spelling('baseURL'),\n withXsrfToken: validators.spelling('withXSRFToken')\n }, true);\n\n // Set config.method\n config.method = (config.method || this.defaults.method || 'get').toLowerCase();\n\n // Flatten headers\n let contextHeaders = headers && utils.merge(\n headers.common,\n headers[config.method]\n );\n\n headers && utils.forEach(\n ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],\n (method) => {\n delete headers[method];\n }\n );\n\n config.headers = AxiosHeaders.concat(contextHeaders, headers);\n\n // filter out skipped interceptors\n const requestInterceptorChain = [];\n let synchronousRequestInterceptors = true;\n this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {\n if (typeof interceptor.runWhen === 'function' && interceptor.runWhen(config) === false) {\n return;\n }\n\n synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;\n\n requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);\n });\n\n const responseInterceptorChain = [];\n this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {\n responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);\n });\n\n let promise;\n let i = 0;\n let len;\n\n if (!synchronousRequestInterceptors) {\n const chain = [dispatchRequest.bind(this), undefined];\n chain.unshift.apply(chain, requestInterceptorChain);\n chain.push.apply(chain, responseInterceptorChain);\n len = chain.length;\n\n promise = Promise.resolve(config);\n\n while (i < len) {\n promise = promise.then(chain[i++], chain[i++]);\n }\n\n return promise;\n }\n\n len = requestInterceptorChain.length;\n\n let newConfig = config;\n\n i = 0;\n\n while (i < len) {\n const onFulfilled = requestInterceptorChain[i++];\n const onRejected = requestInterceptorChain[i++];\n try {\n newConfig = onFulfilled(newConfig);\n } catch (error) {\n onRejected.call(this, error);\n break;\n }\n }\n\n try {\n promise = dispatchRequest.call(this, newConfig);\n } catch (error) {\n return Promise.reject(error);\n }\n\n i = 0;\n len = responseInterceptorChain.length;\n\n while (i < len) {\n promise = promise.then(responseInterceptorChain[i++], responseInterceptorChain[i++]);\n }\n\n return promise;\n }\n\n getUri(config) {\n config = mergeConfig(this.defaults, config);\n const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls);\n return buildURL(fullPath, config.params, config.paramsSerializer);\n }\n}\n\n// Provide aliases for supported request methods\nutils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {\n /*eslint func-names:0*/\n Axios.prototype[method] = function(url, config) {\n return this.request(mergeConfig(config || {}, {\n method,\n url,\n data: (config || {}).data\n }));\n };\n});\n\nutils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n /*eslint func-names:0*/\n\n function generateHTTPMethod(isForm) {\n return function httpMethod(url, data, config) {\n return this.request(mergeConfig(config || {}, {\n method,\n headers: isForm ? {\n 'Content-Type': 'multipart/form-data'\n } : {},\n url,\n data\n }));\n };\n }\n\n Axios.prototype[method] = generateHTTPMethod();\n\n Axios.prototype[method + 'Form'] = generateHTTPMethod(true);\n});\n\nexport default Axios;\n","'use strict';\n\nimport utils from '../utils.js';\n\n/**\n * Create an Error with the specified message, config, error code, request and response.\n *\n * @param {string} message The error message.\n * @param {string} [code] The error code (for example, 'ECONNABORTED').\n * @param {Object} [config] The config.\n * @param {Object} [request] The request.\n * @param {Object} [response] The response.\n *\n * @returns {Error} The created error.\n */\nfunction AxiosError(message, code, config, request, response) {\n Error.call(this);\n\n if (Error.captureStackTrace) {\n Error.captureStackTrace(this, this.constructor);\n } else {\n this.stack = (new Error()).stack;\n }\n\n this.message = message;\n this.name = 'AxiosError';\n code && (this.code = code);\n config && (this.config = config);\n request && (this.request = request);\n if (response) {\n this.response = response;\n this.status = response.status ? response.status : null;\n }\n}\n\nutils.inherits(AxiosError, Error, {\n toJSON: function toJSON() {\n return {\n // Standard\n message: this.message,\n name: this.name,\n // Microsoft\n description: this.description,\n number: this.number,\n // Mozilla\n fileName: this.fileName,\n lineNumber: this.lineNumber,\n columnNumber: this.columnNumber,\n stack: this.stack,\n // Axios\n config: utils.toJSONObject(this.config),\n code: this.code,\n status: this.status\n };\n }\n});\n\nconst prototype = AxiosError.prototype;\nconst descriptors = {};\n\n[\n 'ERR_BAD_OPTION_VALUE',\n 'ERR_BAD_OPTION',\n 'ECONNABORTED',\n 'ETIMEDOUT',\n 'ERR_NETWORK',\n 'ERR_FR_TOO_MANY_REDIRECTS',\n 'ERR_DEPRECATED',\n 'ERR_BAD_RESPONSE',\n 'ERR_BAD_REQUEST',\n 'ERR_CANCELED',\n 'ERR_NOT_SUPPORT',\n 'ERR_INVALID_URL'\n// eslint-disable-next-line func-names\n].forEach(code => {\n descriptors[code] = {value: code};\n});\n\nObject.defineProperties(AxiosError, descriptors);\nObject.defineProperty(prototype, 'isAxiosError', {value: true});\n\n// eslint-disable-next-line func-names\nAxiosError.from = (error, code, config, request, response, customProps) => {\n const axiosError = Object.create(prototype);\n\n utils.toFlatObject(error, axiosError, function filter(obj) {\n return obj !== Error.prototype;\n }, prop => {\n return prop !== 'isAxiosError';\n });\n\n AxiosError.call(axiosError, error.message, code, config, request, response);\n\n axiosError.cause = error;\n\n axiosError.name = error.name;\n\n customProps && Object.assign(axiosError, customProps);\n\n return axiosError;\n};\n\nexport default AxiosError;\n","'use strict';\n\nimport utils from '../utils.js';\nimport parseHeaders from '../helpers/parseHeaders.js';\n\nconst $internals = Symbol('internals');\n\nfunction normalizeHeader(header) {\n return header && String(header).trim().toLowerCase();\n}\n\nfunction normalizeValue(value) {\n if (value === false || value == null) {\n return value;\n }\n\n return utils.isArray(value) ? value.map(normalizeValue) : String(value);\n}\n\nfunction parseTokens(str) {\n const tokens = Object.create(null);\n const tokensRE = /([^\\s,;=]+)\\s*(?:=\\s*([^,;]+))?/g;\n let match;\n\n while ((match = tokensRE.exec(str))) {\n tokens[match[1]] = match[2];\n }\n\n return tokens;\n}\n\nconst isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());\n\nfunction matchHeaderValue(context, value, header, filter, isHeaderNameFilter) {\n if (utils.isFunction(filter)) {\n return filter.call(this, value, header);\n }\n\n if (isHeaderNameFilter) {\n value = header;\n }\n\n if (!utils.isString(value)) return;\n\n if (utils.isString(filter)) {\n return value.indexOf(filter) !== -1;\n }\n\n if (utils.isRegExp(filter)) {\n return filter.test(value);\n }\n}\n\nfunction formatHeader(header) {\n return header.trim()\n .toLowerCase().replace(/([a-z\\d])(\\w*)/g, (w, char, str) => {\n return char.toUpperCase() + str;\n });\n}\n\nfunction buildAccessors(obj, header) {\n const accessorName = utils.toCamelCase(' ' + header);\n\n ['get', 'set', 'has'].forEach(methodName => {\n Object.defineProperty(obj, methodName + accessorName, {\n value: function(arg1, arg2, arg3) {\n return this[methodName].call(this, header, arg1, arg2, arg3);\n },\n configurable: true\n });\n });\n}\n\nclass AxiosHeaders {\n constructor(headers) {\n headers && this.set(headers);\n }\n\n set(header, valueOrRewrite, rewrite) {\n const self = this;\n\n function setHeader(_value, _header, _rewrite) {\n const lHeader = normalizeHeader(_header);\n\n if (!lHeader) {\n throw new Error('header name must be a non-empty string');\n }\n\n const key = utils.findKey(self, lHeader);\n\n if(!key || self[key] === undefined || _rewrite === true || (_rewrite === undefined && self[key] !== false)) {\n self[key || _header] = normalizeValue(_value);\n }\n }\n\n const setHeaders = (headers, _rewrite) =>\n utils.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));\n\n if (utils.isPlainObject(header) || header instanceof this.constructor) {\n setHeaders(header, valueOrRewrite)\n } else if(utils.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {\n setHeaders(parseHeaders(header), valueOrRewrite);\n } else if (utils.isHeaders(header)) {\n for (const [key, value] of header.entries()) {\n setHeader(value, key, rewrite);\n }\n } else {\n header != null && setHeader(valueOrRewrite, header, rewrite);\n }\n\n return this;\n }\n\n get(header, parser) {\n header = normalizeHeader(header);\n\n if (header) {\n const key = utils.findKey(this, header);\n\n if (key) {\n const value = this[key];\n\n if (!parser) {\n return value;\n }\n\n if (parser === true) {\n return parseTokens(value);\n }\n\n if (utils.isFunction(parser)) {\n return parser.call(this, value, key);\n }\n\n if (utils.isRegExp(parser)) {\n return parser.exec(value);\n }\n\n throw new TypeError('parser must be boolean|regexp|function');\n }\n }\n }\n\n has(header, matcher) {\n header = normalizeHeader(header);\n\n if (header) {\n const key = utils.findKey(this, header);\n\n return !!(key && this[key] !== undefined && (!matcher || matchHeaderValue(this, this[key], key, matcher)));\n }\n\n return false;\n }\n\n delete(header, matcher) {\n const self = this;\n let deleted = false;\n\n function deleteHeader(_header) {\n _header = normalizeHeader(_header);\n\n if (_header) {\n const key = utils.findKey(self, _header);\n\n if (key && (!matcher || matchHeaderValue(self, self[key], key, matcher))) {\n delete self[key];\n\n deleted = true;\n }\n }\n }\n\n if (utils.isArray(header)) {\n header.forEach(deleteHeader);\n } else {\n deleteHeader(header);\n }\n\n return deleted;\n }\n\n clear(matcher) {\n const keys = Object.keys(this);\n let i = keys.length;\n let deleted = false;\n\n while (i--) {\n const key = keys[i];\n if(!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {\n delete this[key];\n deleted = true;\n }\n }\n\n return deleted;\n }\n\n normalize(format) {\n const self = this;\n const headers = {};\n\n utils.forEach(this, (value, header) => {\n const key = utils.findKey(headers, header);\n\n if (key) {\n self[key] = normalizeValue(value);\n delete self[header];\n return;\n }\n\n const normalized = format ? formatHeader(header) : String(header).trim();\n\n if (normalized !== header) {\n delete self[header];\n }\n\n self[normalized] = normalizeValue(value);\n\n headers[normalized] = true;\n });\n\n return this;\n }\n\n concat(...targets) {\n return this.constructor.concat(this, ...targets);\n }\n\n toJSON(asStrings) {\n const obj = Object.create(null);\n\n utils.forEach(this, (value, header) => {\n value != null && value !== false && (obj[header] = asStrings && utils.isArray(value) ? value.join(', ') : value);\n });\n\n return obj;\n }\n\n [Symbol.iterator]() {\n return Object.entries(this.toJSON())[Symbol.iterator]();\n }\n\n toString() {\n return Object.entries(this.toJSON()).map(([header, value]) => header + ': ' + value).join('\\n');\n }\n\n get [Symbol.toStringTag]() {\n return 'AxiosHeaders';\n }\n\n static from(thing) {\n return thing instanceof this ? thing : new this(thing);\n }\n\n static concat(first, ...targets) {\n const computed = new this(first);\n\n targets.forEach((target) => computed.set(target));\n\n return computed;\n }\n\n static accessor(header) {\n const internals = this[$internals] = (this[$internals] = {\n accessors: {}\n });\n\n const accessors = internals.accessors;\n const prototype = this.prototype;\n\n function defineAccessor(_header) {\n const lHeader = normalizeHeader(_header);\n\n if (!accessors[lHeader]) {\n buildAccessors(prototype, _header);\n accessors[lHeader] = true;\n }\n }\n\n utils.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);\n\n return this;\n }\n}\n\nAxiosHeaders.accessor(['Content-Type', 'Content-Length', 'Accept', 'Accept-Encoding', 'User-Agent', 'Authorization']);\n\n// reserved names hotfix\nutils.reduceDescriptors(AxiosHeaders.prototype, ({value}, key) => {\n let mapped = key[0].toUpperCase() + key.slice(1); // map `set` => `Set`\n return {\n get: () => value,\n set(headerValue) {\n this[mapped] = headerValue;\n }\n }\n});\n\nutils.freezeMethods(AxiosHeaders);\n\nexport default AxiosHeaders;\n","'use strict';\n\nimport utils from './../utils.js';\n\nclass InterceptorManager {\n constructor() {\n this.handlers = [];\n }\n\n /**\n * Add a new interceptor to the stack\n *\n * @param {Function} fulfilled The function to handle `then` for a `Promise`\n * @param {Function} rejected The function to handle `reject` for a `Promise`\n *\n * @return {Number} An ID used to remove interceptor later\n */\n use(fulfilled, rejected, options) {\n this.handlers.push({\n fulfilled,\n rejected,\n synchronous: options ? options.synchronous : false,\n runWhen: options ? options.runWhen : null\n });\n return this.handlers.length - 1;\n }\n\n /**\n * Remove an interceptor from the stack\n *\n * @param {Number} id The ID that was returned by `use`\n *\n * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise\n */\n eject(id) {\n if (this.handlers[id]) {\n this.handlers[id] = null;\n }\n }\n\n /**\n * Clear all interceptors from the stack\n *\n * @returns {void}\n */\n clear() {\n if (this.handlers) {\n this.handlers = [];\n }\n }\n\n /**\n * Iterate over all the registered interceptors\n *\n * This method is particularly useful for skipping over any\n * interceptors that may have become `null` calling `eject`.\n *\n * @param {Function} fn The function to call for each interceptor\n *\n * @returns {void}\n */\n forEach(fn) {\n utils.forEach(this.handlers, function forEachHandler(h) {\n if (h !== null) {\n fn(h);\n }\n });\n }\n}\n\nexport default InterceptorManager;\n","'use strict';\n\nimport isAbsoluteURL from '../helpers/isAbsoluteURL.js';\nimport combineURLs from '../helpers/combineURLs.js';\n\n/**\n * Creates a new URL by combining the baseURL with the requestedURL,\n * only when the requestedURL is not already an absolute URL.\n * If the requestURL is absolute, this function returns the requestedURL untouched.\n *\n * @param {string} baseURL The base URL\n * @param {string} requestedURL Absolute or relative URL to combine\n *\n * @returns {string} The combined full path\n */\nexport default function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {\n let isRelativeUrl = !isAbsoluteURL(requestedURL);\n if (baseURL && (isRelativeUrl || allowAbsoluteUrls == false)) {\n return combineURLs(baseURL, requestedURL);\n }\n return requestedURL;\n}\n","'use strict';\n\nimport transformData from './transformData.js';\nimport isCancel from '../cancel/isCancel.js';\nimport defaults from '../defaults/index.js';\nimport CanceledError from '../cancel/CanceledError.js';\nimport AxiosHeaders from '../core/AxiosHeaders.js';\nimport adapters from \"../adapters/adapters.js\";\n\n/**\n * Throws a `CanceledError` if cancellation has been requested.\n *\n * @param {Object} config The config that is to be used for the request\n *\n * @returns {void}\n */\nfunction throwIfCancellationRequested(config) {\n if (config.cancelToken) {\n config.cancelToken.throwIfRequested();\n }\n\n if (config.signal && config.signal.aborted) {\n throw new CanceledError(null, config);\n }\n}\n\n/**\n * Dispatch a request to the server using the configured adapter.\n *\n * @param {object} config The config that is to be used for the request\n *\n * @returns {Promise} The Promise to be fulfilled\n */\nexport default function dispatchRequest(config) {\n throwIfCancellationRequested(config);\n\n config.headers = AxiosHeaders.from(config.headers);\n\n // Transform request data\n config.data = transformData.call(\n config,\n config.transformRequest\n );\n\n if (['post', 'put', 'patch'].indexOf(config.method) !== -1) {\n config.headers.setContentType('application/x-www-form-urlencoded', false);\n }\n\n const adapter = adapters.getAdapter(config.adapter || defaults.adapter);\n\n return adapter(config).then(function onAdapterResolution(response) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n response.data = transformData.call(\n config,\n config.transformResponse,\n response\n );\n\n response.headers = AxiosHeaders.from(response.headers);\n\n return response;\n }, function onAdapterRejection(reason) {\n if (!isCancel(reason)) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n if (reason && reason.response) {\n reason.response.data = transformData.call(\n config,\n config.transformResponse,\n reason.response\n );\n reason.response.headers = AxiosHeaders.from(reason.response.headers);\n }\n }\n\n return Promise.reject(reason);\n });\n}\n","'use strict';\n\nimport utils from '../utils.js';\nimport AxiosHeaders from \"./AxiosHeaders.js\";\n\nconst headersToObject = (thing) => thing instanceof AxiosHeaders ? { ...thing } : thing;\n\n/**\n * Config-specific merge-function which creates a new config-object\n * by merging two configuration objects together.\n *\n * @param {Object} config1\n * @param {Object} config2\n *\n * @returns {Object} New object resulting from merging config2 to config1\n */\nexport default function mergeConfig(config1, config2) {\n // eslint-disable-next-line no-param-reassign\n config2 = config2 || {};\n const config = {};\n\n function getMergedValue(target, source, prop, caseless) {\n if (utils.isPlainObject(target) && utils.isPlainObject(source)) {\n return utils.merge.call({caseless}, target, source);\n } else if (utils.isPlainObject(source)) {\n return utils.merge({}, source);\n } else if (utils.isArray(source)) {\n return source.slice();\n }\n return source;\n }\n\n // eslint-disable-next-line consistent-return\n function mergeDeepProperties(a, b, prop , caseless) {\n if (!utils.isUndefined(b)) {\n return getMergedValue(a, b, prop , caseless);\n } else if (!utils.isUndefined(a)) {\n return getMergedValue(undefined, a, prop , caseless);\n }\n }\n\n // eslint-disable-next-line consistent-return\n function valueFromConfig2(a, b) {\n if (!utils.isUndefined(b)) {\n return getMergedValue(undefined, b);\n }\n }\n\n // eslint-disable-next-line consistent-return\n function defaultToConfig2(a, b) {\n if (!utils.isUndefined(b)) {\n return getMergedValue(undefined, b);\n } else if (!utils.isUndefined(a)) {\n return getMergedValue(undefined, a);\n }\n }\n\n // eslint-disable-next-line consistent-return\n function mergeDirectKeys(a, b, prop) {\n if (prop in config2) {\n return getMergedValue(a, b);\n } else if (prop in config1) {\n return getMergedValue(undefined, a);\n }\n }\n\n const mergeMap = {\n url: valueFromConfig2,\n method: valueFromConfig2,\n data: valueFromConfig2,\n baseURL: defaultToConfig2,\n transformRequest: defaultToConfig2,\n transformResponse: defaultToConfig2,\n paramsSerializer: defaultToConfig2,\n timeout: defaultToConfig2,\n timeoutMessage: defaultToConfig2,\n withCredentials: defaultToConfig2,\n withXSRFToken: defaultToConfig2,\n adapter: defaultToConfig2,\n responseType: defaultToConfig2,\n xsrfCookieName: defaultToConfig2,\n xsrfHeaderName: defaultToConfig2,\n onUploadProgress: defaultToConfig2,\n onDownloadProgress: defaultToConfig2,\n decompress: defaultToConfig2,\n maxContentLength: defaultToConfig2,\n maxBodyLength: defaultToConfig2,\n beforeRedirect: defaultToConfig2,\n transport: defaultToConfig2,\n httpAgent: defaultToConfig2,\n httpsAgent: defaultToConfig2,\n cancelToken: defaultToConfig2,\n socketPath: defaultToConfig2,\n responseEncoding: defaultToConfig2,\n validateStatus: mergeDirectKeys,\n headers: (a, b , prop) => mergeDeepProperties(headersToObject(a), headersToObject(b),prop, true)\n };\n\n utils.forEach(Object.keys(Object.assign({}, config1, config2)), function computeConfigValue(prop) {\n const merge = mergeMap[prop] || mergeDeepProperties;\n const configValue = merge(config1[prop], config2[prop], prop);\n (utils.isUndefined(configValue) && merge !== mergeDirectKeys) || (config[prop] = configValue);\n });\n\n return config;\n}\n","'use strict';\n\nimport AxiosError from './AxiosError.js';\n\n/**\n * Resolve or reject a Promise based on response status.\n *\n * @param {Function} resolve A function that resolves the promise.\n * @param {Function} reject A function that rejects the promise.\n * @param {object} response The response.\n *\n * @returns {object} The response.\n */\nexport default function settle(resolve, reject, response) {\n const validateStatus = response.config.validateStatus;\n if (!response.status || !validateStatus || validateStatus(response.status)) {\n resolve(response);\n } else {\n reject(new AxiosError(\n 'Request failed with status code ' + response.status,\n [AxiosError.ERR_BAD_REQUEST, AxiosError.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],\n response.config,\n response.request,\n response\n ));\n }\n}\n","'use strict';\n\nimport utils from './../utils.js';\nimport defaults from '../defaults/index.js';\nimport AxiosHeaders from '../core/AxiosHeaders.js';\n\n/**\n * Transform the data for a request or a response\n *\n * @param {Array|Function} fns A single function or Array of functions\n * @param {?Object} response The response object\n *\n * @returns {*} The resulting transformed data\n */\nexport default function transformData(fns, response) {\n const config = this || defaults;\n const context = response || config;\n const headers = AxiosHeaders.from(context.headers);\n let data = context.data;\n\n utils.forEach(fns, function transform(fn) {\n data = fn.call(config, data, headers.normalize(), response ? response.status : undefined);\n });\n\n headers.normalize();\n\n return data;\n}\n","'use strict';\n\nimport utils from '../utils.js';\nimport AxiosError from '../core/AxiosError.js';\nimport transitionalDefaults from './transitional.js';\nimport toFormData from '../helpers/toFormData.js';\nimport toURLEncodedForm from '../helpers/toURLEncodedForm.js';\nimport platform from '../platform/index.js';\nimport formDataToJSON from '../helpers/formDataToJSON.js';\n\n/**\n * It takes a string, tries to parse it, and if it fails, it returns the stringified version\n * of the input\n *\n * @param {any} rawValue - The value to be stringified.\n * @param {Function} parser - A function that parses a string into a JavaScript object.\n * @param {Function} encoder - A function that takes a value and returns a string.\n *\n * @returns {string} A stringified version of the rawValue.\n */\nfunction stringifySafely(rawValue, parser, encoder) {\n if (utils.isString(rawValue)) {\n try {\n (parser || JSON.parse)(rawValue);\n return utils.trim(rawValue);\n } catch (e) {\n if (e.name !== 'SyntaxError') {\n throw e;\n }\n }\n }\n\n return (encoder || JSON.stringify)(rawValue);\n}\n\nconst defaults = {\n\n transitional: transitionalDefaults,\n\n adapter: ['xhr', 'http', 'fetch'],\n\n transformRequest: [function transformRequest(data, headers) {\n const contentType = headers.getContentType() || '';\n const hasJSONContentType = contentType.indexOf('application/json') > -1;\n const isObjectPayload = utils.isObject(data);\n\n if (isObjectPayload && utils.isHTMLForm(data)) {\n data = new FormData(data);\n }\n\n const isFormData = utils.isFormData(data);\n\n if (isFormData) {\n return hasJSONContentType ? JSON.stringify(formDataToJSON(data)) : data;\n }\n\n if (utils.isArrayBuffer(data) ||\n utils.isBuffer(data) ||\n utils.isStream(data) ||\n utils.isFile(data) ||\n utils.isBlob(data) ||\n utils.isReadableStream(data)\n ) {\n return data;\n }\n if (utils.isArrayBufferView(data)) {\n return data.buffer;\n }\n if (utils.isURLSearchParams(data)) {\n headers.setContentType('application/x-www-form-urlencoded;charset=utf-8', false);\n return data.toString();\n }\n\n let isFileList;\n\n if (isObjectPayload) {\n if (contentType.indexOf('application/x-www-form-urlencoded') > -1) {\n return toURLEncodedForm(data, this.formSerializer).toString();\n }\n\n if ((isFileList = utils.isFileList(data)) || contentType.indexOf('multipart/form-data') > -1) {\n const _FormData = this.env && this.env.FormData;\n\n return toFormData(\n isFileList ? {'files[]': data} : data,\n _FormData && new _FormData(),\n this.formSerializer\n );\n }\n }\n\n if (isObjectPayload || hasJSONContentType ) {\n headers.setContentType('application/json', false);\n return stringifySafely(data);\n }\n\n return data;\n }],\n\n transformResponse: [function transformResponse(data) {\n const transitional = this.transitional || defaults.transitional;\n const forcedJSONParsing = transitional && transitional.forcedJSONParsing;\n const JSONRequested = this.responseType === 'json';\n\n if (utils.isResponse(data) || utils.isReadableStream(data)) {\n return data;\n }\n\n if (data && utils.isString(data) && ((forcedJSONParsing && !this.responseType) || JSONRequested)) {\n const silentJSONParsing = transitional && transitional.silentJSONParsing;\n const strictJSONParsing = !silentJSONParsing && JSONRequested;\n\n try {\n return JSON.parse(data);\n } catch (e) {\n if (strictJSONParsing) {\n if (e.name === 'SyntaxError') {\n throw AxiosError.from(e, AxiosError.ERR_BAD_RESPONSE, this, null, this.response);\n }\n throw e;\n }\n }\n }\n\n return data;\n }],\n\n /**\n * A timeout in milliseconds to abort a request. If set to 0 (default) a\n * timeout is not created.\n */\n timeout: 0,\n\n xsrfCookieName: 'XSRF-TOKEN',\n xsrfHeaderName: 'X-XSRF-TOKEN',\n\n maxContentLength: -1,\n maxBodyLength: -1,\n\n env: {\n FormData: platform.classes.FormData,\n Blob: platform.classes.Blob\n },\n\n validateStatus: function validateStatus(status) {\n return status >= 200 && status < 300;\n },\n\n headers: {\n common: {\n 'Accept': 'application/json, text/plain, */*',\n 'Content-Type': undefined\n }\n }\n};\n\nutils.forEach(['delete', 'get', 'head', 'post', 'put', 'patch'], (method) => {\n defaults.headers[method] = {};\n});\n\nexport default defaults;\n","'use strict';\n\nexport default {\n silentJSONParsing: true,\n forcedJSONParsing: true,\n clarifyTimeoutError: false\n};\n","export const VERSION = \"1.8.4\";","'use strict';\n\nimport toFormData from './toFormData.js';\n\n/**\n * It encodes a string by replacing all characters that are not in the unreserved set with\n * their percent-encoded equivalents\n *\n * @param {string} str - The string to encode.\n *\n * @returns {string} The encoded string.\n */\nfunction encode(str) {\n const charMap = {\n '!': '%21',\n \"'\": '%27',\n '(': '%28',\n ')': '%29',\n '~': '%7E',\n '%20': '+',\n '%00': '\\x00'\n };\n return encodeURIComponent(str).replace(/[!'()~]|%20|%00/g, function replacer(match) {\n return charMap[match];\n });\n}\n\n/**\n * It takes a params object and converts it to a FormData object\n *\n * @param {Object<string, any>} params - The parameters to be converted to a FormData object.\n * @param {Object<string, any>} options - The options object passed to the Axios constructor.\n *\n * @returns {void}\n */\nfunction AxiosURLSearchParams(params, options) {\n this._pairs = [];\n\n params && toFormData(params, this, options);\n}\n\nconst prototype = AxiosURLSearchParams.prototype;\n\nprototype.append = function append(name, value) {\n this._pairs.push([name, value]);\n};\n\nprototype.toString = function toString(encoder) {\n const _encode = encoder ? function(value) {\n return encoder.call(this, value, encode);\n } : encode;\n\n return this._pairs.map(function each(pair) {\n return _encode(pair[0]) + '=' + _encode(pair[1]);\n }, '').join('&');\n};\n\nexport default AxiosURLSearchParams;\n","const HttpStatusCode = {\n Continue: 100,\n SwitchingProtocols: 101,\n Processing: 102,\n EarlyHints: 103,\n Ok: 200,\n Created: 201,\n Accepted: 202,\n NonAuthoritativeInformation: 203,\n NoContent: 204,\n ResetContent: 205,\n PartialContent: 206,\n MultiStatus: 207,\n AlreadyReported: 208,\n ImUsed: 226,\n MultipleChoices: 300,\n MovedPermanently: 301,\n Found: 302,\n SeeOther: 303,\n NotModified: 304,\n UseProxy: 305,\n Unused: 306,\n TemporaryRedirect: 307,\n PermanentRedirect: 308,\n BadRequest: 400,\n Unauthorized: 401,\n PaymentRequired: 402,\n Forbidden: 403,\n NotFound: 404,\n MethodNotAllowed: 405,\n NotAcceptable: 406,\n ProxyAuthenticationRequired: 407,\n RequestTimeout: 408,\n Conflict: 409,\n Gone: 410,\n LengthRequired: 411,\n PreconditionFailed: 412,\n PayloadTooLarge: 413,\n UriTooLong: 414,\n UnsupportedMediaType: 415,\n RangeNotSatisfiable: 416,\n ExpectationFailed: 417,\n ImATeapot: 418,\n MisdirectedRequest: 421,\n UnprocessableEntity: 422,\n Locked: 423,\n FailedDependency: 424,\n TooEarly: 425,\n UpgradeRequired: 426,\n PreconditionRequired: 428,\n TooManyRequests: 429,\n RequestHeaderFieldsTooLarge: 431,\n UnavailableForLegalReasons: 451,\n InternalServerError: 500,\n NotImplemented: 501,\n BadGateway: 502,\n ServiceUnavailable: 503,\n GatewayTimeout: 504,\n HttpVersionNotSupported: 505,\n VariantAlsoNegotiates: 506,\n InsufficientStorage: 507,\n LoopDetected: 508,\n NotExtended: 510,\n NetworkAuthenticationRequired: 511,\n};\n\nObject.entries(HttpStatusCode).forEach(([key, value]) => {\n HttpStatusCode[value] = key;\n});\n\nexport default HttpStatusCode;\n","'use strict';\n\nexport default function bind(fn, thisArg) {\n return function wrap() {\n return fn.apply(thisArg, arguments);\n };\n}\n","'use strict';\n\nimport utils from '../utils.js';\nimport AxiosURLSearchParams from '../helpers/AxiosURLSearchParams.js';\n\n/**\n * It replaces all instances of the characters `:`, `$`, `,`, `+`, `[`, and `]` with their\n * URI encoded counterparts\n *\n * @param {string} val The value to be encoded.\n *\n * @returns {string} The encoded value.\n */\nfunction encode(val) {\n return encodeURIComponent(val).\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%20/g, '+').\n replace(/%5B/gi, '[').\n replace(/%5D/gi, ']');\n}\n\n/**\n * Build a URL by appending params to the end\n *\n * @param {string} url The base of the url (e.g., http://www.google.com)\n * @param {object} [params] The params to be appended\n * @param {?(object|Function)} options\n *\n * @returns {string} The formatted url\n */\nexport default function buildURL(url, params, options) {\n /*eslint no-param-reassign:0*/\n if (!params) {\n return url;\n }\n \n const _encode = options && options.encode || encode;\n\n if (utils.isFunction(options)) {\n options = {\n serialize: options\n };\n } \n\n const serializeFn = options && options.serialize;\n\n let serializedParams;\n\n if (serializeFn) {\n serializedParams = serializeFn(params, options);\n } else {\n serializedParams = utils.isURLSearchParams(params) ?\n params.toString() :\n new AxiosURLSearchParams(params, options).toString(_encode);\n }\n\n if (serializedParams) {\n const hashmarkIndex = url.indexOf(\"#\");\n\n if (hashmarkIndex !== -1) {\n url = url.slice(0, hashmarkIndex);\n }\n url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;\n }\n\n return url;\n}\n","'use strict';\n\n/**\n * Creates a new URL by combining the specified URLs\n *\n * @param {string} baseURL The base URL\n * @param {string} relativeURL The relative URL\n *\n * @returns {string} The combined URL\n */\nexport default function combineURLs(baseURL, relativeURL) {\n return relativeURL\n ? baseURL.replace(/\\/?\\/$/, '') + '/' + relativeURL.replace(/^\\/+/, '')\n : baseURL;\n}\n","import CanceledError from \"../cancel/CanceledError.js\";\nimport AxiosError from \"../core/AxiosError.js\";\nimport utils from '../utils.js';\n\nconst composeSignals = (signals, timeout) => {\n const {length} = (signals = signals ? signals.filter(Boolean) : []);\n\n if (timeout || length) {\n let controller = new AbortController();\n\n let aborted;\n\n const onabort = function (reason) {\n if (!aborted) {\n aborted = true;\n unsubscribe();\n const err = reason instanceof Error ? reason : this.reason;\n controller.abort(err instanceof AxiosError ? err : new CanceledError(err instanceof Error ? err.message : err));\n }\n }\n\n let timer = timeout && setTimeout(() => {\n timer = null;\n onabort(new AxiosError(`timeout ${timeout} of ms exceeded`, AxiosError.ETIMEDOUT))\n }, timeout)\n\n const unsubscribe = () => {\n if (signals) {\n timer && clearTimeout(timer);\n timer = null;\n signals.forEach(signal => {\n signal.unsubscribe ? signal.unsubscribe(onabort) : signal.removeEventListener('abort', onabort);\n });\n signals = null;\n }\n }\n\n signals.forEach((signal) => signal.addEventListener('abort', onabort));\n\n const {signal} = controller;\n\n signal.unsubscribe = () => utils.asap(unsubscribe);\n\n return signal;\n }\n}\n\nexport default composeSignals;\n","import utils from './../utils.js';\nimport platform from '../platform/index.js';\n\nexport default platform.hasStandardBrowserEnv ?\n\n // Standard browser envs support document.cookie\n {\n write(name, value, expires, path, domain, secure) {\n const cookie = [name + '=' + encodeURIComponent(value)];\n\n utils.isNumber(expires) && cookie.push('expires=' + new Date(expires).toGMTString());\n\n utils.isString(path) && cookie.push('path=' + path);\n\n utils.isString(domain) && cookie.push('domain=' + domain);\n\n secure === true && cookie.push('secure');\n\n document.cookie = cookie.join('; ');\n },\n\n read(name) {\n const match = document.cookie.match(new RegExp('(^|;\\\\s*)(' + name + ')=([^;]*)'));\n return (match ? decodeURIComponent(match[3]) : null);\n },\n\n remove(name) {\n this.write(name, '', Date.now() - 86400000);\n }\n }\n\n :\n\n // Non-standard browser env (web workers, react-native) lack needed support.\n {\n write() {},\n read() {\n return null;\n },\n remove() {}\n };\n\n","'use strict';\n\nimport utils from '../utils.js';\n\n/**\n * It takes a string like `foo[x][y][z]` and returns an array like `['foo', 'x', 'y', 'z']\n *\n * @param {string} name - The name of the property to get.\n *\n * @returns An array of strings.\n */\nfunction parsePropPath(name) {\n // foo[x][y][z]\n // foo.x.y.z\n // foo-x-y-z\n // foo x y z\n return utils.matchAll(/\\w+|\\[(\\w*)]/g, name).map(match => {\n return match[0] === '[]' ? '' : match[1] || match[0];\n });\n}\n\n/**\n * Convert an array to an object.\n *\n * @param {Array<any>} arr - The array to convert to an object.\n *\n * @returns An object with the same keys and values as the array.\n */\nfunction arrayToObject(arr) {\n const obj = {};\n const keys = Object.keys(arr);\n let i;\n const len = keys.length;\n let key;\n for (i = 0; i < len; i++) {\n key = keys[i];\n obj[key] = arr[key];\n }\n return obj;\n}\n\n/**\n * It takes a FormData object and returns a JavaScript object\n *\n * @param {string} formData The FormData object to convert to JSON.\n *\n * @returns {Object<string, any> | null} The converted object.\n */\nfunction formDataToJSON(formData) {\n function buildPath(path, value, target, index) {\n let name = path[index++];\n\n if (name === '__proto__') return true;\n\n const isNumericKey = Number.isFinite(+name);\n const isLast = index >= path.length;\n name = !name && utils.isArray(target) ? target.length : name;\n\n if (isLast) {\n if (utils.hasOwnProp(target, name)) {\n target[name] = [target[name], value];\n } else {\n target[name] = value;\n }\n\n return !isNumericKey;\n }\n\n if (!target[name] || !utils.isObject(target[name])) {\n target[name] = [];\n }\n\n const result = buildPath(path, value, target[name], index);\n\n if (result && utils.isArray(target[name])) {\n target[name] = arrayToObject(target[name]);\n }\n\n return !isNumericKey;\n }\n\n if (utils.isFormData(formData) && utils.isFunction(formData.entries)) {\n const obj = {};\n\n utils.forEachEntry(formData, (name, value) => {\n buildPath(parsePropPath(name), value, obj, 0);\n });\n\n return obj;\n }\n\n return null;\n}\n\nexport default formDataToJSON;\n","'use strict';\n\n/**\n * Determines whether the specified URL is absolute\n *\n * @param {string} url The URL to test\n *\n * @returns {boolean} True if the specified URL is absolute, otherwise false\n */\nexport default function isAbsoluteURL(url) {\n // A URL is considered absolute if it begins with \"<scheme>://\" or \"//\" (protocol-relative URL).\n // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed\n // by any combination of letters, digits, plus, period, or hyphen.\n return /^([a-z][a-z\\d+\\-.]*:)?\\/\\//i.test(url);\n}\n","'use strict';\n\nimport utils from './../utils.js';\n\n/**\n * Determines whether the payload is an error thrown by Axios\n *\n * @param {*} payload The value to test\n *\n * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false\n */\nexport default function isAxiosError(payload) {\n return utils.isObject(payload) && (payload.isAxiosError === true);\n}\n","import platform from '../platform/index.js';\n\nexport default platform.hasStandardBrowserEnv ? ((origin, isMSIE) => (url) => {\n url = new URL(url, platform.origin);\n\n return (\n origin.protocol === url.protocol &&\n origin.host === url.host &&\n (isMSIE || origin.port === url.port)\n );\n})(\n new URL(platform.origin),\n platform.navigator && /(msie|trident)/i.test(platform.navigator.userAgent)\n) : () => true;\n","// eslint-disable-next-line strict\nexport default null;\n","'use strict';\n\nimport utils from './../utils.js';\n\n// RawAxiosHeaders whose duplicates are ignored by node\n// c.f. https://nodejs.org/api/http.html#http_message_headers\nconst ignoreDuplicateOf = utils.toObjectSet([\n 'age', 'authorization', 'content-length', 'content-type', 'etag',\n 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since',\n 'last-modified', 'location', 'max-forwards', 'proxy-authorization',\n 'referer', 'retry-after', 'user-agent'\n]);\n\n/**\n * Parse headers into an object\n *\n * ```\n * Date: Wed, 27 Aug 2014 08:58:49 GMT\n * Content-Type: application/json\n * Connection: keep-alive\n * Transfer-Encoding: chunked\n * ```\n *\n * @param {String} rawHeaders Headers needing to be parsed\n *\n * @returns {Object} Headers parsed into an object\n */\nexport default rawHeaders => {\n const parsed = {};\n let key;\n let val;\n let i;\n\n rawHeaders && rawHeaders.split('\\n').forEach(function parser(line) {\n i = line.indexOf(':');\n key = line.substring(0, i).trim().toLowerCase();\n val = line.substring(i + 1).trim();\n\n if (!key || (parsed[key] && ignoreDuplicateOf[key])) {\n return;\n }\n\n if (key === 'set-cookie') {\n if (parsed[key]) {\n parsed[key].push(val);\n } else {\n parsed[key] = [val];\n }\n } else {\n parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;\n }\n });\n\n return parsed;\n};\n","'use strict';\n\nexport default function parseProtocol(url) {\n const match = /^([-+\\w]{1,25})(:?\\/\\/|:)/.exec(url);\n return match && match[1] || '';\n}\n","import speedometer from \"./speedometer.js\";\nimport throttle from \"./throttle.js\";\nimport utils from \"../utils.js\";\n\nexport const progressEventReducer = (listener, isDownloadStream, freq = 3) => {\n let bytesNotified = 0;\n const _speedometer = speedometer(50, 250);\n\n return throttle(e => {\n const loaded = e.loaded;\n const total = e.lengthComputable ? e.total : undefined;\n const progressBytes = loaded - bytesNotified;\n const rate = _speedometer(progressBytes);\n const inRange = loaded <= total;\n\n bytesNotified = loaded;\n\n const data = {\n loaded,\n total,\n progress: total ? (loaded / total) : undefined,\n bytes: progressBytes,\n rate: rate ? rate : undefined,\n estimated: rate && total && inRange ? (total - loaded) / rate : undefined,\n event: e,\n lengthComputable: total != null,\n [isDownloadStream ? 'download' : 'upload']: true\n };\n\n listener(data);\n }, freq);\n}\n\nexport const progressEventDecorator = (total, throttled) => {\n const lengthComputable = total != null;\n\n return [(loaded) => throttled[0]({\n lengthComputable,\n total,\n loaded\n }), throttled[1]];\n}\n\nexport const asyncDecorator = (fn) => (...args) => utils.asap(() => fn(...args));\n","import platform from \"../platform/index.js\";\nimport utils from \"../utils.js\";\nimport isURLSameOrigin from \"./isURLSameOrigin.js\";\nimport cookies from \"./cookies.js\";\nimport buildFullPath from \"../core/buildFullPath.js\";\nimport mergeConfig from \"../core/mergeConfig.js\";\nimport AxiosHeaders from \"../core/AxiosHeaders.js\";\nimport buildURL from \"./buildURL.js\";\n\nexport default (config) => {\n const newConfig = mergeConfig({}, config);\n\n let {data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth} = newConfig;\n\n newConfig.headers = headers = AxiosHeaders.from(headers);\n\n newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url, newConfig.allowAbsoluteUrls), config.params, config.paramsSerializer);\n\n // HTTP basic authentication\n if (auth) {\n headers.set('Authorization', 'Basic ' +\n btoa((auth.username || '') + ':' + (auth.password ? unescape(encodeURIComponent(auth.password)) : ''))\n );\n }\n\n let contentType;\n\n if (utils.isFormData(data)) {\n if (platform.hasStandardBrowserEnv || platform.hasStandardBrowserWebWorkerEnv) {\n headers.setContentType(undefined); // Let the browser set it\n } else if ((contentType = headers.getContentType()) !== false) {\n // fix semicolon duplication issue for ReactNative FormData implementation\n const [type, ...tokens] = contentType ? contentType.split(';').map(token => token.trim()).filter(Boolean) : [];\n headers.setContentType([type || 'multipart/form-data', ...tokens].join('; '));\n }\n }\n\n // Add xsrf header\n // This is only done if running in a standard browser environment.\n // Specifically not if we're in a web worker, or react-native.\n\n if (platform.hasStandardBrowserEnv) {\n withXSRFToken && utils.isFunction(withXSRFToken) && (withXSRFToken = withXSRFToken(newConfig));\n\n if (withXSRFToken || (withXSRFToken !== false && isURLSameOrigin(newConfig.url))) {\n // Add xsrf header\n const xsrfValue = xsrfHeaderName && xsrfCookieName && cookies.read(xsrfCookieName);\n\n if (xsrfValue) {\n headers.set(xsrfHeaderName, xsrfValue);\n }\n }\n }\n\n return newConfig;\n}\n\n","'use strict';\n\n/**\n * Calculate data maxRate\n * @param {Number} [samplesCount= 10]\n * @param {Number} [min= 1000]\n * @returns {Function}\n */\nfunction speedometer(samplesCount, min) {\n samplesCount = samplesCount || 10;\n const bytes = new Array(samplesCount);\n const timestamps = new Array(samplesCount);\n let head = 0;\n let tail = 0;\n let firstSampleTS;\n\n min = min !== undefined ? min : 1000;\n\n return function push(chunkLength) {\n const now = Date.now();\n\n const startedAt = timestamps[tail];\n\n if (!firstSampleTS) {\n firstSampleTS = now;\n }\n\n bytes[head] = chunkLength;\n timestamps[head] = now;\n\n let i = tail;\n let bytesCount = 0;\n\n while (i !== head) {\n bytesCount += bytes[i++];\n i = i % samplesCount;\n }\n\n head = (head + 1) % samplesCount;\n\n if (head === tail) {\n tail = (tail + 1) % samplesCount;\n }\n\n if (now - firstSampleTS < min) {\n return;\n }\n\n const passed = startedAt && now - startedAt;\n\n return passed ? Math.round(bytesCount * 1000 / passed) : undefined;\n };\n}\n\nexport default speedometer;\n","'use strict';\n\n/**\n * Syntactic sugar for invoking a function and expanding an array for arguments.\n *\n * Common use case would be to use `Function.prototype.apply`.\n *\n * ```js\n * function f(x, y, z) {}\n * var args = [1, 2, 3];\n * f.apply(null, args);\n * ```\n *\n * With `spread` this example can be re-written.\n *\n * ```js\n * spread(function(x, y, z) {})([1, 2, 3]);\n * ```\n *\n * @param {Function} callback\n *\n * @returns {Function}\n */\nexport default function spread(callback) {\n return function wrap(arr) {\n return callback.apply(null, arr);\n };\n}\n","/**\n * Throttle decorator\n * @param {Function} fn\n * @param {Number} freq\n * @return {Function}\n */\nfunction throttle(fn, freq) {\n let timestamp = 0;\n let threshold = 1000 / freq;\n let lastArgs;\n let timer;\n\n const invoke = (args, now = Date.now()) => {\n timestamp = now;\n lastArgs = null;\n if (timer) {\n clearTimeout(timer);\n timer = null;\n }\n fn.apply(null, args);\n }\n\n const throttled = (...args) => {\n const now = Date.now();\n const passed = now - timestamp;\n if ( passed >= threshold) {\n invoke(args, now);\n } else {\n lastArgs = args;\n if (!timer) {\n timer = setTimeout(() => {\n timer = null;\n invoke(lastArgs)\n }, threshold - passed);\n }\n }\n }\n\n const flush = () => lastArgs && invoke(lastArgs);\n\n return [throttled, flush];\n}\n\nexport default throttle;\n","'use strict';\n\nimport utils from '../utils.js';\nimport AxiosError from '../core/AxiosError.js';\n// temporary hotfix to avoid circular references until AxiosURLSearchParams is refactored\nimport PlatformFormData from '../platform/node/classes/FormData.js';\n\n/**\n * Determines if the given thing is a array or js object.\n *\n * @param {string} thing - The object or array to be visited.\n *\n * @returns {boolean}\n */\nfunction isVisitable(thing) {\n return utils.isPlainObject(thing) || utils.isArray(thing);\n}\n\n/**\n * It removes the brackets from the end of a string\n *\n * @param {string} key - The key of the parameter.\n *\n * @returns {string} the key without the brackets.\n */\nfunction removeBrackets(key) {\n return utils.endsWith(key, '[]') ? key.slice(0, -2) : key;\n}\n\n/**\n * It takes a path, a key, and a boolean, and returns a string\n *\n * @param {string} path - The path to the current key.\n * @param {string} key - The key of the current object being iterated over.\n * @param {string} dots - If true, the key will be rendered with dots instead of brackets.\n *\n * @returns {string} The path to the current key.\n */\nfunction renderKey(path, key, dots) {\n if (!path) return key;\n return path.concat(key).map(function each(token, i) {\n // eslint-disable-next-line no-param-reassign\n token = removeBrackets(token);\n return !dots && i ? '[' + token + ']' : token;\n }).join(dots ? '.' : '');\n}\n\n/**\n * If the array is an array and none of its elements are visitable, then it's a flat array.\n *\n * @param {Array<any>} arr - The array to check\n *\n * @returns {boolean}\n */\nfunction isFlatArray(arr) {\n return utils.isArray(arr) && !arr.some(isVisitable);\n}\n\nconst predicates = utils.toFlatObject(utils, {}, null, function filter(prop) {\n return /^is[A-Z]/.test(prop);\n});\n\n/**\n * Convert a data object to FormData\n *\n * @param {Object} obj\n * @param {?Object} [formData]\n * @param {?Object} [options]\n * @param {Function} [options.visitor]\n * @param {Boolean} [options.metaTokens = true]\n * @param {Boolean} [options.dots = false]\n * @param {?Boolean} [options.indexes = false]\n *\n * @returns {Object}\n **/\n\n/**\n * It converts an object into a FormData object\n *\n * @param {Object<any, any>} obj - The object to convert to form data.\n * @param {string} formData - The FormData object to append to.\n * @param {Object<string, any>} options\n *\n * @returns\n */\nfunction toFormData(obj, formData, options) {\n if (!utils.isObject(obj)) {\n throw new TypeError('target must be an object');\n }\n\n // eslint-disable-next-line no-param-reassign\n formData = formData || new (PlatformFormData || FormData)();\n\n // eslint-disable-next-line no-param-reassign\n options = utils.toFlatObject(options, {\n metaTokens: true,\n dots: false,\n indexes: false\n }, false, function defined(option, source) {\n // eslint-disable-next-line no-eq-null,eqeqeq\n return !utils.isUndefined(source[option]);\n });\n\n const metaTokens = options.metaTokens;\n // eslint-disable-next-line no-use-before-define\n const visitor = options.visitor || defaultVisitor;\n const dots = options.dots;\n const indexes = options.indexes;\n const _Blob = options.Blob || typeof Blob !== 'undefined' && Blob;\n const useBlob = _Blob && utils.isSpecCompliantForm(formData);\n\n if (!utils.isFunction(visitor)) {\n throw new TypeError('visitor must be a function');\n }\n\n function convertValue(value) {\n if (value === null) return '';\n\n if (utils.isDate(value)) {\n return value.toISOString();\n }\n\n if (!useBlob && utils.isBlob(value)) {\n throw new AxiosError('Blob is not supported. Use a Buffer instead.');\n }\n\n if (utils.isArrayBuffer(value) || utils.isTypedArray(value)) {\n return useBlob && typeof Blob === 'function' ? new Blob([value]) : Buffer.from(value);\n }\n\n return value;\n }\n\n /**\n * Default visitor.\n *\n * @param {*} value\n * @param {String|Number} key\n * @param {Array<String|Number>} path\n * @this {FormData}\n *\n * @returns {boolean} return true to visit the each prop of the value recursively\n */\n function defaultVisitor(value, key, path) {\n let arr = value;\n\n if (value && !path && typeof value === 'object') {\n if (utils.endsWith(key, '{}')) {\n // eslint-disable-next-line no-param-reassign\n key = metaTokens ? key : key.slice(0, -2);\n // eslint-disable-next-line no-param-reassign\n value = JSON.stringify(value);\n } else if (\n (utils.isArray(value) && isFlatArray(value)) ||\n ((utils.isFileList(value) || utils.endsWith(key, '[]')) && (arr = utils.toArray(value))\n )) {\n // eslint-disable-next-line no-param-reassign\n key = removeBrackets(key);\n\n arr.forEach(function each(el, index) {\n !(utils.isUndefined(el) || el === null) && formData.append(\n // eslint-disable-next-line no-nested-ternary\n indexes === true ? renderKey([key], index, dots) : (indexes === null ? key : key + '[]'),\n convertValue(el)\n );\n });\n return false;\n }\n }\n\n if (isVisitable(value)) {\n return true;\n }\n\n formData.append(renderKey(path, key, dots), convertValue(value));\n\n return false;\n }\n\n const stack = [];\n\n const exposedHelpers = Object.assign(predicates, {\n defaultVisitor,\n convertValue,\n isVisitable\n });\n\n function build(value, path) {\n if (utils.isUndefined(value)) return;\n\n if (stack.indexOf(value) !== -1) {\n throw Error('Circular reference detected in ' + path.join('.'));\n }\n\n stack.push(value);\n\n utils.forEach(value, function each(el, key) {\n const result = !(utils.isUndefined(el) || el === null) && visitor.call(\n formData, el, utils.isString(key) ? key.trim() : key, path, exposedHelpers\n );\n\n if (result === true) {\n build(el, path ? path.concat(key) : [key]);\n }\n });\n\n stack.pop();\n }\n\n if (!utils.isObject(obj)) {\n throw new TypeError('data must be an object');\n }\n\n build(obj);\n\n return formData;\n}\n\nexport default toFormData;\n","'use strict';\n\nimport utils from '../utils.js';\nimport toFormData from './toFormData.js';\nimport platform from '../platform/index.js';\n\nexport default function toURLEncodedForm(data, options) {\n return toFormData(data, new platform.classes.URLSearchParams(), Object.assign({\n visitor: function(value, key, path, helpers) {\n if (platform.isNode && utils.isBuffer(value)) {\n this.append(key, value.toString('base64'));\n return false;\n }\n\n return helpers.defaultVisitor.apply(this, arguments);\n }\n }, options));\n}\n","\nexport const streamChunk = function* (chunk, chunkSize) {\n let len = chunk.byteLength;\n\n if (!chunkSize || len < chunkSize) {\n yield chunk;\n return;\n }\n\n let pos = 0;\n let end;\n\n while (pos < len) {\n end = pos + chunkSize;\n yield chunk.slice(pos, end);\n pos = end;\n }\n}\n\nexport const readBytes = async function* (iterable, chunkSize) {\n for await (const chunk of readStream(iterable)) {\n yield* streamChunk(chunk, chunkSize);\n }\n}\n\nconst readStream = async function* (stream) {\n if (stream[Symbol.asyncIterator]) {\n yield* stream;\n return;\n }\n\n const reader = stream.getReader();\n try {\n for (;;) {\n const {done, value} = await reader.read();\n if (done) {\n break;\n }\n yield value;\n }\n } finally {\n await reader.cancel();\n }\n}\n\nexport const trackStream = (stream, chunkSize, onProgress, onFinish) => {\n const iterator = readBytes(stream, chunkSize);\n\n let bytes = 0;\n let done;\n let _onFinish = (e) => {\n if (!done) {\n done = true;\n onFinish && onFinish(e);\n }\n }\n\n return new ReadableStream({\n async pull(controller) {\n try {\n const {done, value} = await iterator.next();\n\n if (done) {\n _onFinish();\n controller.close();\n return;\n }\n\n let len = value.byteLength;\n if (onProgress) {\n let loadedBytes = bytes += len;\n onProgress(loadedBytes);\n }\n controller.enqueue(new Uint8Array(value));\n } catch (err) {\n _onFinish(err);\n throw err;\n }\n },\n cancel(reason) {\n _onFinish(reason);\n return iterator.return();\n }\n }, {\n highWaterMark: 2\n })\n}\n","'use strict';\n\nimport {VERSION} from '../env/data.js';\nimport AxiosError from '../core/AxiosError.js';\n\nconst validators = {};\n\n// eslint-disable-next-line func-names\n['object', 'boolean', 'number', 'function', 'string', 'symbol'].forEach((type, i) => {\n validators[type] = function validator(thing) {\n return typeof thing === type || 'a' + (i < 1 ? 'n ' : ' ') + type;\n };\n});\n\nconst deprecatedWarnings = {};\n\n/**\n * Transitional option validator\n *\n * @param {function|boolean?} validator - set to false if the transitional option has been removed\n * @param {string?} version - deprecated version / removed since version\n * @param {string?} message - some message with additional info\n *\n * @returns {function}\n */\nvalidators.transitional = function transitional(validator, version, message) {\n function formatMessage(opt, desc) {\n return '[Axios v' + VERSION + '] Transitional option \\'' + opt + '\\'' + desc + (message ? '. ' + message : '');\n }\n\n // eslint-disable-next-line func-names\n return (value, opt, opts) => {\n if (validator === false) {\n throw new AxiosError(\n formatMessage(opt, ' has been removed' + (version ? ' in ' + version : '')),\n AxiosError.ERR_DEPRECATED\n );\n }\n\n if (version && !deprecatedWarnings[opt]) {\n deprecatedWarnings[opt] = true;\n // eslint-disable-next-line no-console\n console.warn(\n formatMessage(\n opt,\n ' has been deprecated since v' + version + ' and will be removed in the near future'\n )\n );\n }\n\n return validator ? validator(value, opt, opts) : true;\n };\n};\n\nvalidators.spelling = function spelling(correctSpelling) {\n return (value, opt) => {\n // eslint-disable-next-line no-console\n console.warn(`${opt} is likely a misspelling of ${correctSpelling}`);\n return true;\n }\n};\n\n/**\n * Assert object's properties type\n *\n * @param {object} options\n * @param {object} schema\n * @param {boolean?} allowUnknown\n *\n * @returns {object}\n */\n\nfunction assertOptions(options, schema, allowUnknown) {\n if (typeof options !== 'object') {\n throw new AxiosError('options must be an object', AxiosError.ERR_BAD_OPTION_VALUE);\n }\n const keys = Object.keys(options);\n let i = keys.length;\n while (i-- > 0) {\n const opt = keys[i];\n const validator = schema[opt];\n if (validator) {\n const value = options[opt];\n const result = value === undefined || validator(value, opt, options);\n if (result !== true) {\n throw new AxiosError('option ' + opt + ' must be ' + result, AxiosError.ERR_BAD_OPTION_VALUE);\n }\n continue;\n }\n if (allowUnknown !== true) {\n throw new AxiosError('Unknown option ' + opt, AxiosError.ERR_BAD_OPTION);\n }\n }\n}\n\nexport default {\n assertOptions,\n validators\n};\n","'use strict'\n\nexport default typeof Blob !== 'undefined' ? Blob : null\n","'use strict';\n\nexport default typeof FormData !== 'undefined' ? FormData : null;\n","'use strict';\n\nimport AxiosURLSearchParams from '../../../helpers/AxiosURLSearchParams.js';\nexport default typeof URLSearchParams !== 'undefined' ? URLSearchParams : AxiosURLSearchParams;\n","import URLSearchParams from './classes/URLSearchParams.js'\nimport FormData from './classes/FormData.js'\nimport Blob from './classes/Blob.js'\n\nexport default {\n isBrowser: true,\n classes: {\n URLSearchParams,\n FormData,\n Blob\n },\n protocols: ['http', 'https', 'file', 'blob', 'url', 'data']\n};\n","const hasBrowserEnv = typeof window !== 'undefined' && typeof document !== 'undefined';\n\nconst _navigator = typeof navigator === 'object' && navigator || undefined;\n\n/**\n * Determine if we're running in a standard browser environment\n *\n * This allows axios to run in a web worker, and react-native.\n * Both environments support XMLHttpRequest, but not fully standard globals.\n *\n * web workers:\n * typeof window -> undefined\n * typeof document -> undefined\n *\n * react-native:\n * navigator.product -> 'ReactNative'\n * nativescript\n * navigator.product -> 'NativeScript' or 'NS'\n *\n * @returns {boolean}\n */\nconst hasStandardBrowserEnv = hasBrowserEnv &&\n (!_navigator || ['ReactNative', 'NativeScript', 'NS'].indexOf(_navigator.product) < 0);\n\n/**\n * Determine if we're running in a standard browser webWorker environment\n *\n * Although the `isStandardBrowserEnv` method indicates that\n * `allows axios to run in a web worker`, the WebWorker will still be\n * filtered out due to its judgment standard\n * `typeof window !== 'undefined' && typeof document !== 'undefined'`.\n * This leads to a problem when axios post `FormData` in webWorker\n */\nconst hasStandardBrowserWebWorkerEnv = (() => {\n return (\n typeof WorkerGlobalScope !== 'undefined' &&\n // eslint-disable-next-line no-undef\n self instanceof WorkerGlobalScope &&\n typeof self.importScripts === 'function'\n );\n})();\n\nconst origin = hasBrowserEnv && window.location.href || 'http://localhost';\n\nexport {\n hasBrowserEnv,\n hasStandardBrowserWebWorkerEnv,\n hasStandardBrowserEnv,\n _navigator as navigator,\n origin\n}\n","import platform from './node/index.js';\nimport * as utils from './common/utils.js';\n\nexport default {\n ...utils,\n ...platform\n}\n","'use strict';\n\nimport bind from './helpers/bind.js';\n\n// utils is a library of generic helper functions non-specific to axios\n\nconst {toString} = Object.prototype;\nconst {getPrototypeOf} = Object;\n\nconst kindOf = (cache => thing => {\n const str = toString.call(thing);\n return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());\n})(Object.create(null));\n\nconst kindOfTest = (type) => {\n type = type.toLowerCase();\n return (thing) => kindOf(thing) === type\n}\n\nconst typeOfTest = type => thing => typeof thing === type;\n\n/**\n * Determine if a value is an Array\n *\n * @param {Object} val The value to test\n *\n * @returns {boolean} True if value is an Array, otherwise false\n */\nconst {isArray} = Array;\n\n/**\n * Determine if a value is undefined\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if the value is undefined, otherwise false\n */\nconst isUndefined = typeOfTest('undefined');\n\n/**\n * Determine if a value is a Buffer\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Buffer, otherwise false\n */\nfunction isBuffer(val) {\n return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor)\n && isFunction(val.constructor.isBuffer) && val.constructor.isBuffer(val);\n}\n\n/**\n * Determine if a value is an ArrayBuffer\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is an ArrayBuffer, otherwise false\n */\nconst isArrayBuffer = kindOfTest('ArrayBuffer');\n\n\n/**\n * Determine if a value is a view on an ArrayBuffer\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false\n */\nfunction isArrayBufferView(val) {\n let result;\n if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {\n result = ArrayBuffer.isView(val);\n } else {\n result = (val) && (val.buffer) && (isArrayBuffer(val.buffer));\n }\n return result;\n}\n\n/**\n * Determine if a value is a String\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a String, otherwise false\n */\nconst isString = typeOfTest('string');\n\n/**\n * Determine if a value is a Function\n *\n * @param {*} val The value to test\n * @returns {boolean} True if value is a Function, otherwise false\n */\nconst isFunction = typeOfTest('function');\n\n/**\n * Determine if a value is a Number\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Number, otherwise false\n */\nconst isNumber = typeOfTest('number');\n\n/**\n * Determine if a value is an Object\n *\n * @param {*} thing The value to test\n *\n * @returns {boolean} True if value is an Object, otherwise false\n */\nconst isObject = (thing) => thing !== null && typeof thing === 'object';\n\n/**\n * Determine if a value is a Boolean\n *\n * @param {*} thing The value to test\n * @returns {boolean} True if value is a Boolean, otherwise false\n */\nconst isBoolean = thing => thing === true || thing === false;\n\n/**\n * Determine if a value is a plain Object\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a plain Object, otherwise false\n */\nconst isPlainObject = (val) => {\n if (kindOf(val) !== 'object') {\n return false;\n }\n\n const prototype = getPrototypeOf(val);\n return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in val) && !(Symbol.iterator in val);\n}\n\n/**\n * Determine if a value is a Date\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Date, otherwise false\n */\nconst isDate = kindOfTest('Date');\n\n/**\n * Determine if a value is a File\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a File, otherwise false\n */\nconst isFile = kindOfTest('File');\n\n/**\n * Determine if a value is a Blob\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Blob, otherwise false\n */\nconst isBlob = kindOfTest('Blob');\n\n/**\n * Determine if a value is a FileList\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a File, otherwise false\n */\nconst isFileList = kindOfTest('FileList');\n\n/**\n * Determine if a value is a Stream\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Stream, otherwise false\n */\nconst isStream = (val) => isObject(val) && isFunction(val.pipe);\n\n/**\n * Determine if a value is a FormData\n *\n * @param {*} thing The value to test\n *\n * @returns {boolean} True if value is an FormData, otherwise false\n */\nconst isFormData = (thing) => {\n let kind;\n return thing && (\n (typeof FormData === 'function' && thing instanceof FormData) || (\n isFunction(thing.append) && (\n (kind = kindOf(thing)) === 'formdata' ||\n // detect form-data instance\n (kind === 'object' && isFunction(thing.toString) && thing.toString() === '[object FormData]')\n )\n )\n )\n}\n\n/**\n * Determine if a value is a URLSearchParams object\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a URLSearchParams object, otherwise false\n */\nconst isURLSearchParams = kindOfTest('URLSearchParams');\n\nconst [isReadableStream, isRequest, isResponse, isHeaders] = ['ReadableStream', 'Request', 'Response', 'Headers'].map(kindOfTest);\n\n/**\n * Trim excess whitespace off the beginning and end of a string\n *\n * @param {String} str The String to trim\n *\n * @returns {String} The String freed of excess whitespace\n */\nconst trim = (str) => str.trim ?\n str.trim() : str.replace(/^[\\s\\uFEFF\\xA0]+|[\\s\\uFEFF\\xA0]+$/g, '');\n\n/**\n * Iterate over an Array or an Object invoking a function for each item.\n *\n * If `obj` is an Array callback will be called passing\n * the value, index, and complete array for each item.\n *\n * If 'obj' is an Object callback will be called passing\n * the value, key, and complete object for each property.\n *\n * @param {Object|Array} obj The object to iterate\n * @param {Function} fn The callback to invoke for each item\n *\n * @param {Boolean} [allOwnKeys = false]\n * @returns {any}\n */\nfunction forEach(obj, fn, {allOwnKeys = false} = {}) {\n // Don't bother if no value provided\n if (obj === null || typeof obj === 'undefined') {\n return;\n }\n\n let i;\n let l;\n\n // Force an array if not already something iterable\n if (typeof obj !== 'object') {\n /*eslint no-param-reassign:0*/\n obj = [obj];\n }\n\n if (isArray(obj)) {\n // Iterate over array values\n for (i = 0, l = obj.length; i < l; i++) {\n fn.call(null, obj[i], i, obj);\n }\n } else {\n // Iterate over object keys\n const keys = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj);\n const len = keys.length;\n let key;\n\n for (i = 0; i < len; i++) {\n key = keys[i];\n fn.call(null, obj[key], key, obj);\n }\n }\n}\n\nfunction findKey(obj, key) {\n key = key.toLowerCase();\n const keys = Object.keys(obj);\n let i = keys.length;\n let _key;\n while (i-- > 0) {\n _key = keys[i];\n if (key === _key.toLowerCase()) {\n return _key;\n }\n }\n return null;\n}\n\nconst _global = (() => {\n /*eslint no-undef:0*/\n if (typeof globalThis !== \"undefined\") return globalThis;\n return typeof self !== \"undefined\" ? self : (typeof window !== 'undefined' ? window : global)\n})();\n\nconst isContextDefined = (context) => !isUndefined(context) && context !== _global;\n\n/**\n * Accepts varargs expecting each argument to be an object, then\n * immutably merges the properties of each object and returns result.\n *\n * When multiple objects contain the same key the later object in\n * the arguments list will take precedence.\n *\n * Example:\n *\n * ```js\n * var result = merge({foo: 123}, {foo: 456});\n * console.log(result.foo); // outputs 456\n * ```\n *\n * @param {Object} obj1 Object to merge\n *\n * @returns {Object} Result of all merge properties\n */\nfunction merge(/* obj1, obj2, obj3, ... */) {\n const {caseless} = isContextDefined(this) && this || {};\n const result = {};\n const assignValue = (val, key) => {\n const targetKey = caseless && findKey(result, key) || key;\n if (isPlainObject(result[targetKey]) && isPlainObject(val)) {\n result[targetKey] = merge(result[targetKey], val);\n } else if (isPlainObject(val)) {\n result[targetKey] = merge({}, val);\n } else if (isArray(val)) {\n result[targetKey] = val.slice();\n } else {\n result[targetKey] = val;\n }\n }\n\n for (let i = 0, l = arguments.length; i < l; i++) {\n arguments[i] && forEach(arguments[i], assignValue);\n }\n return result;\n}\n\n/**\n * Extends object a by mutably adding to it the properties of object b.\n *\n * @param {Object} a The object to be extended\n * @param {Object} b The object to copy properties from\n * @param {Object} thisArg The object to bind function to\n *\n * @param {Boolean} [allOwnKeys]\n * @returns {Object} The resulting value of object a\n */\nconst extend = (a, b, thisArg, {allOwnKeys}= {}) => {\n forEach(b, (val, key) => {\n if (thisArg && isFunction(val)) {\n a[key] = bind(val, thisArg);\n } else {\n a[key] = val;\n }\n }, {allOwnKeys});\n return a;\n}\n\n/**\n * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)\n *\n * @param {string} content with BOM\n *\n * @returns {string} content value without BOM\n */\nconst stripBOM = (content) => {\n if (content.charCodeAt(0) === 0xFEFF) {\n content = content.slice(1);\n }\n return content;\n}\n\n/**\n * Inherit the prototype methods from one constructor into another\n * @param {function} constructor\n * @param {function} superConstructor\n * @param {object} [props]\n * @param {object} [descriptors]\n *\n * @returns {void}\n */\nconst inherits = (constructor, superConstructor, props, descriptors) => {\n constructor.prototype = Object.create(superConstructor.prototype, descriptors);\n constructor.prototype.constructor = constructor;\n Object.defineProperty(constructor, 'super', {\n value: superConstructor.prototype\n });\n props && Object.assign(constructor.prototype, props);\n}\n\n/**\n * Resolve object with deep prototype chain to a flat object\n * @param {Object} sourceObj source object\n * @param {Object} [destObj]\n * @param {Function|Boolean} [filter]\n * @param {Function} [propFilter]\n *\n * @returns {Object}\n */\nconst toFlatObject = (sourceObj, destObj, filter, propFilter) => {\n let props;\n let i;\n let prop;\n const merged = {};\n\n destObj = destObj || {};\n // eslint-disable-next-line no-eq-null,eqeqeq\n if (sourceObj == null) return destObj;\n\n do {\n props = Object.getOwnPropertyNames(sourceObj);\n i = props.length;\n while (i-- > 0) {\n prop = props[i];\n if ((!propFilter || propFilter(prop, sourceObj, destObj)) && !merged[prop]) {\n destObj[prop] = sourceObj[prop];\n merged[prop] = true;\n }\n }\n sourceObj = filter !== false && getPrototypeOf(sourceObj);\n } while (sourceObj && (!filter || filter(sourceObj, destObj)) && sourceObj !== Object.prototype);\n\n return destObj;\n}\n\n/**\n * Determines whether a string ends with the characters of a specified string\n *\n * @param {String} str\n * @param {String} searchString\n * @param {Number} [position= 0]\n *\n * @returns {boolean}\n */\nconst endsWith = (str, searchString, position) => {\n str = String(str);\n if (position === undefined || position > str.length) {\n position = str.length;\n }\n position -= searchString.length;\n const lastIndex = str.indexOf(searchString, position);\n return lastIndex !== -1 && lastIndex === position;\n}\n\n\n/**\n * Returns new array from array like object or null if failed\n *\n * @param {*} [thing]\n *\n * @returns {?Array}\n */\nconst toArray = (thing) => {\n if (!thing) return null;\n if (isArray(thing)) return thing;\n let i = thing.length;\n if (!isNumber(i)) return null;\n const arr = new Array(i);\n while (i-- > 0) {\n arr[i] = thing[i];\n }\n return arr;\n}\n\n/**\n * Checking if the Uint8Array exists and if it does, it returns a function that checks if the\n * thing passed in is an instance of Uint8Array\n *\n * @param {TypedArray}\n *\n * @returns {Array}\n */\n// eslint-disable-next-line func-names\nconst isTypedArray = (TypedArray => {\n // eslint-disable-next-line func-names\n return thing => {\n return TypedArray && thing instanceof TypedArray;\n };\n})(typeof Uint8Array !== 'undefined' && getPrototypeOf(Uint8Array));\n\n/**\n * For each entry in the object, call the function with the key and value.\n *\n * @param {Object<any, any>} obj - The object to iterate over.\n * @param {Function} fn - The function to call for each entry.\n *\n * @returns {void}\n */\nconst forEachEntry = (obj, fn) => {\n const generator = obj && obj[Symbol.iterator];\n\n const iterator = generator.call(obj);\n\n let result;\n\n while ((result = iterator.next()) && !result.done) {\n const pair = result.value;\n fn.call(obj, pair[0], pair[1]);\n }\n}\n\n/**\n * It takes a regular expression and a string, and returns an array of all the matches\n *\n * @param {string} regExp - The regular expression to match against.\n * @param {string} str - The string to search.\n *\n * @returns {Array<boolean>}\n */\nconst matchAll = (regExp, str) => {\n let matches;\n const arr = [];\n\n while ((matches = regExp.exec(str)) !== null) {\n arr.push(matches);\n }\n\n return arr;\n}\n\n/* Checking if the kindOfTest function returns true when passed an HTMLFormElement. */\nconst isHTMLForm = kindOfTest('HTMLFormElement');\n\nconst toCamelCase = str => {\n return str.toLowerCase().replace(/[-_\\s]([a-z\\d])(\\w*)/g,\n function replacer(m, p1, p2) {\n return p1.toUpperCase() + p2;\n }\n );\n};\n\n/* Creating a function that will check if an object has a property. */\nconst hasOwnProperty = (({hasOwnProperty}) => (obj, prop) => hasOwnProperty.call(obj, prop))(Object.prototype);\n\n/**\n * Determine if a value is a RegExp object\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a RegExp object, otherwise false\n */\nconst isRegExp = kindOfTest('RegExp');\n\nconst reduceDescriptors = (obj, reducer) => {\n const descriptors = Object.getOwnPropertyDescriptors(obj);\n const reducedDescriptors = {};\n\n forEach(descriptors, (descriptor, name) => {\n let ret;\n if ((ret = reducer(descriptor, name, obj)) !== false) {\n reducedDescriptors[name] = ret || descriptor;\n }\n });\n\n Object.defineProperties(obj, reducedDescriptors);\n}\n\n/**\n * Makes all methods read-only\n * @param {Object} obj\n */\n\nconst freezeMethods = (obj) => {\n reduceDescriptors(obj, (descriptor, name) => {\n // skip restricted props in strict mode\n if (isFunction(obj) && ['arguments', 'caller', 'callee'].indexOf(name) !== -1) {\n return false;\n }\n\n const value = obj[name];\n\n if (!isFunction(value)) return;\n\n descriptor.enumerable = false;\n\n if ('writable' in descriptor) {\n descriptor.writable = false;\n return;\n }\n\n if (!descriptor.set) {\n descriptor.set = () => {\n throw Error('Can not rewrite read-only method \\'' + name + '\\'');\n };\n }\n });\n}\n\nconst toObjectSet = (arrayOrString, delimiter) => {\n const obj = {};\n\n const define = (arr) => {\n arr.forEach(value => {\n obj[value] = true;\n });\n }\n\n isArray(arrayOrString) ? define(arrayOrString) : define(String(arrayOrString).split(delimiter));\n\n return obj;\n}\n\nconst noop = () => {}\n\nconst toFiniteNumber = (value, defaultValue) => {\n return value != null && Number.isFinite(value = +value) ? value : defaultValue;\n}\n\n/**\n * If the thing is a FormData object, return true, otherwise return false.\n *\n * @param {unknown} thing - The thing to check.\n *\n * @returns {boolean}\n */\nfunction isSpecCompliantForm(thing) {\n return !!(thing && isFunction(thing.append) && thing[Symbol.toStringTag] === 'FormData' && thing[Symbol.iterator]);\n}\n\nconst toJSONObject = (obj) => {\n const stack = new Array(10);\n\n const visit = (source, i) => {\n\n if (isObject(source)) {\n if (stack.indexOf(source) >= 0) {\n return;\n }\n\n if(!('toJSON' in source)) {\n stack[i] = source;\n const target = isArray(source) ? [] : {};\n\n forEach(source, (value, key) => {\n const reducedValue = visit(value, i + 1);\n !isUndefined(reducedValue) && (target[key] = reducedValue);\n });\n\n stack[i] = undefined;\n\n return target;\n }\n }\n\n return source;\n }\n\n return visit(obj, 0);\n}\n\nconst isAsyncFn = kindOfTest('AsyncFunction');\n\nconst isThenable = (thing) =>\n thing && (isObject(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing.catch);\n\n// original code\n// https://github.com/DigitalBrainJS/AxiosPromise/blob/16deab13710ec09779922131f3fa5954320f83ab/lib/utils.js#L11-L34\n\nconst _setImmediate = ((setImmediateSupported, postMessageSupported) => {\n if (setImmediateSupported) {\n return setImmediate;\n }\n\n return postMessageSupported ? ((token, callbacks) => {\n _global.addEventListener(\"message\", ({source, data}) => {\n if (source === _global && data === token) {\n callbacks.length && callbacks.shift()();\n }\n }, false);\n\n return (cb) => {\n callbacks.push(cb);\n _global.postMessage(token, \"*\");\n }\n })(`axios@${Math.random()}`, []) : (cb) => setTimeout(cb);\n})(\n typeof setImmediate === 'function',\n isFunction(_global.postMessage)\n);\n\nconst asap = typeof queueMicrotask !== 'undefined' ?\n queueMicrotask.bind(_global) : ( typeof process !== 'undefined' && process.nextTick || _setImmediate);\n\n// *********************\n\nexport default {\n isArray,\n isArrayBuffer,\n isBuffer,\n isFormData,\n isArrayBufferView,\n isString,\n isNumber,\n isBoolean,\n isObject,\n isPlainObject,\n isReadableStream,\n isRequest,\n isResponse,\n isHeaders,\n isUndefined,\n isDate,\n isFile,\n isBlob,\n isRegExp,\n isFunction,\n isStream,\n isURLSearchParams,\n isTypedArray,\n isFileList,\n forEach,\n merge,\n extend,\n trim,\n stripBOM,\n inherits,\n toFlatObject,\n kindOf,\n kindOfTest,\n endsWith,\n toArray,\n forEachEntry,\n matchAll,\n isHTMLForm,\n hasOwnProperty,\n hasOwnProp: hasOwnProperty, // an alias to avoid ESLint no-prototype-builtins detection\n reduceDescriptors,\n freezeMethods,\n toObjectSet,\n toCamelCase,\n noop,\n toFiniteNumber,\n findKey,\n global: _global,\n isContextDefined,\n isSpecCompliantForm,\n toJSONObject,\n isAsyncFn,\n isThenable,\n setImmediate: _setImmediate,\n asap\n};\n","/*! js-cookie v3.0.5 | MIT */\n/* eslint-disable no-var */\nfunction assign (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n for (var key in source) {\n target[key] = source[key];\n }\n }\n return target\n}\n/* eslint-enable no-var */\n\n/* eslint-disable no-var */\nvar defaultConverter = {\n read: function (value) {\n if (value[0] === '\"') {\n value = value.slice(1, -1);\n }\n return value.replace(/(%[\\dA-F]{2})+/gi, decodeURIComponent)\n },\n write: function (value) {\n return encodeURIComponent(value).replace(\n /%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,\n decodeURIComponent\n )\n }\n};\n/* eslint-enable no-var */\n\n/* eslint-disable no-var */\n\nfunction init (converter, defaultAttributes) {\n function set (name, value, attributes) {\n if (typeof document === 'undefined') {\n return\n }\n\n attributes = assign({}, defaultAttributes, attributes);\n\n if (typeof attributes.expires === 'number') {\n attributes.expires = new Date(Date.now() + attributes.expires * 864e5);\n }\n if (attributes.expires) {\n attributes.expires = attributes.expires.toUTCString();\n }\n\n name = encodeURIComponent(name)\n .replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent)\n .replace(/[()]/g, escape);\n\n var stringifiedAttributes = '';\n for (var attributeName in attributes) {\n if (!attributes[attributeName]) {\n continue\n }\n\n stringifiedAttributes += '; ' + attributeName;\n\n if (attributes[attributeName] === true) {\n continue\n }\n\n // Considers RFC 6265 section 5.2:\n // ...\n // 3. If the remaining unparsed-attributes contains a %x3B (\";\")\n // character:\n // Consume the characters of the unparsed-attributes up to,\n // not including, the first %x3B (\";\") character.\n // ...\n stringifiedAttributes += '=' + attributes[attributeName].split(';')[0];\n }\n\n return (document.cookie =\n name + '=' + converter.write(value, name) + stringifiedAttributes)\n }\n\n function get (name) {\n if (typeof document === 'undefined' || (arguments.length && !name)) {\n return\n }\n\n // To prevent the for loop in the first place assign an empty array\n // in case there are no cookies at all.\n var cookies = document.cookie ? document.cookie.split('; ') : [];\n var jar = {};\n for (var i = 0; i < cookies.length; i++) {\n var parts = cookies[i].split('=');\n var value = parts.slice(1).join('=');\n\n try {\n var found = decodeURIComponent(parts[0]);\n jar[found] = converter.read(value, found);\n\n if (name === found) {\n break\n }\n } catch (e) {}\n }\n\n return name ? jar[name] : jar\n }\n\n return Object.create(\n {\n set,\n get,\n remove: function (name, attributes) {\n set(\n name,\n '',\n assign({}, attributes, {\n expires: -1\n })\n );\n },\n withAttributes: function (attributes) {\n return init(this.converter, assign({}, this.attributes, attributes))\n },\n withConverter: function (converter) {\n return init(assign({}, this.converter, converter), this.attributes)\n }\n },\n {\n attributes: { value: Object.freeze(defaultAttributes) },\n converter: { value: Object.freeze(converter) }\n }\n )\n}\n\nvar api = init(defaultConverter, { path: '/' });\n/* eslint-enable no-var */\n\nexport { api as default };\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","/**\n * A collection of utilities, SDKs, and types provided by the Sharetribe SDK.\n *\n * @module SharetribeSdkExports\n */\n\nimport SharetribeSdkExport from \"./sdk\";\nimport IntegrationSdkExport from \"./integrationSdk\";\nimport BigDecimal from \"./sdkTypes/BigDecimal\";\nimport UUID from \"./sdkTypes/UUID\";\nimport LatLng from \"./sdkTypes/LatLng\";\nimport LatLngBounds from \"./sdkTypes/LatLngBounds\";\nimport Money from \"./sdkTypes/Money\";\nimport { replacer, reviver } from \"./utils/convert-types\";\nimport MemoryStore from \"./utils/stores/MemoryStore\";\nimport BrowserStore from \"./utils/stores/BrowserStore\";\nimport ExpressStore from \"./utils/stores/ExpressStore\";\nimport { objectQueryString } from \"./utils/util\";\nimport { read, write } from \"./utils/transit\";\n\n// Export marketplace types\nexport * from \"./types/assets\";\nexport * from \"./types/authentication\";\nexport * from \"./types/integration/events\";\nexport * from \"./types/marketplace/availabilityExceptions\";\nexport * from \"./types/marketplace/bookings\";\nexport * from \"./types/marketplace/currentUser\";\nexport * from \"./types/marketplace/images\";\nexport * from \"./types/marketplace/listings\";\nexport * from \"./types/marketplace/marketplace\";\nexport * from \"./types/marketplace/messages\";\nexport * from \"./types/marketplace/ownListings\";\nexport * from \"./types/marketplace/passwordReset\";\nexport * from \"./types/marketplace/processTransitions\";\nexport * from \"./types/marketplace/reviews\";\nexport * from \"./types/marketplace/stock\";\nexport * from \"./types/marketplace/stockAdjustment\";\nexport * from \"./types/marketplace/stockReservations\";\nexport * from \"./types/marketplace/stripeAccount\";\nexport * from \"./types/marketplace/stripeAccountLinks\";\nexport * from \"./types/marketplace/stripeCustomer\";\nexport * from \"./types/marketplace/stripePaymentMethod\";\nexport * from \"./types/marketplace/stripePersons\";\nexport * from \"./types/marketplace/stripeSetupIntents\";\nexport * from \"./types/marketplace/timeSlots\";\nexport * from \"./types/marketplace/transactions\";\nexport * from \"./types/marketplace/user\";\nexport * from \"./types/config\";\nexport * from \"./types/sharetribe\";\nexport * from \"./types/apiConfigs\";\nexport * from \"./types/config\";\nexport * from \"./types/store\";\n\n/**\n * SDK-specific types provided for advanced usage.\n */\nexport const sdkTypes = {\n /** A representation of a high-precision decimal number. */\n BigDecimal,\n /** A geographical point with latitude and longitude. */\n LatLng,\n /** A bounding box defined by northeast and southwest geographical points. */\n LatLngBounds,\n /** A monetary value with an amount and currency. */\n Money,\n /** A universally unique identifier (UUID). */\n UUID,\n /** Replacer function for JSON serialization. */\n replacer,\n /** Reviver function for JSON deserialization. */\n reviver,\n};\nexport type SdkTypes = {\n BigDecimal: typeof BigDecimal;\n LatLng: typeof LatLng;\n LatLngBounds: typeof LatLngBounds;\n Money: typeof Money;\n UUID: typeof UUID;\n replacer: typeof replacer;\n reviver: typeof reviver;\n};\n/**\n * Token store implementations for managing authentication tokens.\n */\nexport const TokenStore = {\n /** In-memory token store for temporary token management. */\n MemoryStore,\n /** Browser token store using cookies. */\n BrowserStore,\n /** Express.js-compatible token store using request and response cookies. */\n ExpressStore,\n};\nexport type TokenStore = {\n MemoryStore: typeof MemoryStore;\n BrowserStore: typeof BrowserStore;\n ExpressStore: typeof ExpressStore;\n};\n\n/**\n * Transit utilities for reading and writing transit data.\n */\nexport const transit = {\n read,\n write,\n};\nexport type Transit = {\n read: typeof read;\n write: typeof write;\n};\n/**\n * Export the Sharetribe SDK and Integration SDK.\n */\nexport const SharetribeSdk = SharetribeSdkExport;\nexport type SharetribeSdk = SharetribeSdkExport;\n\nexport const IntegrationSdk = IntegrationSdkExport;\nexport type IntegrationSdk = IntegrationSdkExport;\n\n/**\n * Utility functions for data manipulation.\n */\nexport const util = {\n /** Serializes an object into a custom query string format. */\n objectQueryString,\n};\nexport type Util = {\n objectQueryString: typeof objectQueryString;\n};\n\nconst defaultExport = {\n /** Export of the Sharetribe SDK. */\n SharetribeSdk: SharetribeSdkExport,\n /** Export of the Integration SDK. */\n SharetribeIntegrationSdk: IntegrationSdkExport,\n /** Export of available token stores. */\n TokenStore,\n /** Export of SDK-specific types. */\n sdkTypes,\n /** Export of utility functions. */\n util,\n /** Export of Transit utilities. */\n transit,\n};\nexport default defaultExport;\n\nexport type DefaultExport = {\n SharetribeSdk: SharetribeSdkExport;\n SharetribeIntegrationSdk: IntegrationSdkExport;\n TokenStore: typeof TokenStore;\n sdkTypes: typeof sdkTypes;\n util: typeof util;\n transit: typeof transit;\n};\n"],"names":["denyList","Set","module","exports","error","has","code","COMPILED","goog","global","this","self","exportPath_","a","b","c","d","split","execScript","e","length","shift","Object","prototype","isObject","f","hasOwnProperty","define","CLOSURE_UNCOMPILED_DEFINES","CLOSURE_DEFINES","nodeType","call","FEATURESET_YEAR","DEBUG","LOCALE","TRUSTED_SITE","DISALLOW_TEST_ONLY_CODE","ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING","provide","isInModuleLoader_","Error","isProvided_","constructNamespace_","implicitNamespaces_","substring","lastIndexOf","getObjectByName","getScriptNonce","getScriptNonce_","document","cspNonce_","NONCE_PATTERN_","querySelector","nonce","getAttribute","test","VALID_MODULE_RE_","search","isInGoogModuleLoader_","moduleLoaderState_","moduleName","get","getInternal_","loadedModules_","ModuleType","ES6","GOOG","isInEs6ModuleLoader_","type","$jscomp","getCurrentModulePath","declareLegacyNamespace","declareModuleId","require","moduleId","setTestOnly","forwardDeclare","addDependency","DEPENDENCIES_ENABLED","debugLoader_","ENABLE_DEBUG_LOADER","logToConsole_","console","requested","load_","requireType","basePath","nullFunction","abstractMethod","addSingletonGetter","instance_","getInstance","instantiatedSingletons_","LOAD_MODULE_USING_EVAL","SEAL_MODULE_EXPORTS","TRANSPILE","ASSUME_ES_MODULES_TRANSPILED","TRANSPILE_TO_LANGUAGE","TRANSPILER","TRUSTED_TYPES_POLICY_NAME","hasBadLetScoping","loadModule","loadModuleFromSource_","seal","eval","CLOSURE_EVAL_PREFILTER_","createScript","normalizePath_","splice","join","loadFileSync_","CLOSURE_LOAD_FILE_SYNC","XMLHttpRequest","open","send","status","responseText","transpile_","transpile","g","$gwtExport","JSON","stringify","h","k","typeOf","Array","isArray","isArrayLike","isDateLike","getFullYear","getUid","UID_PROPERTY_","uidCounter_","hasUid","removeUid","removeAttribute","Math","random","cloneObject","clone","bindNative_","apply","bind","arguments","bindJs_","slice","unshift","Function","toString","indexOf","partial","push","mixin","now","Date","globalEval","getCssName","String","charAt","cssNameMapping_","cssNameMappingStyle_","CLOSURE_CSS_NAME_MAP_FN","setCssNameMapping","CLOSURE_CSS_NAME_MAPPING","getMsg","html","replace","unescapeHtmlEntities","getMsgWithFallback","exportSymbol","exportProperty","inherits","superClass_","constructor","base","scope","defineClass","statics","createSealingConstructor_","applyProperties_","SEAL_CLASS_INSTANCES","OBJECT_PROTOTYPE_FIELDS_","identity_","createTrustedTypesPolicy","trustedTypes","createPolicy","createHTML","createScriptURL","message","isEdge_","navigator","userAgent","match","inHtmlDocument_","isDocumentLoading_","attachEvent","readyState","findBasePath_","CLOSURE_BASE_PATH","currentScript","getElementsByTagName","src","substr","Transpiler","requiresTranspilation_","transpilationTarget_","createRequiresTranspilation_","es3","target","map","needsTranspile","createElement","transpiler_","protectScriptTag_","DebugLoader_","dependencies_","idToPath_","written_","loadingDeps_","depsToLoad_","paused_","factory_","DependencyFactory","deferredCallbacks_","deferredQueue_","bootstrap","setTimeout","getPathFromDeps_","onLoad","loadClosureDeps","createDependency","loadDeps_","areDepsLoaded_","requires","setDependencyFactory","concat","loading_","pause","resume","resume_","loaded","loaded_","pending","setModuleState","registerEs6ModuleExports","registerGoogModuleExports","clearModuleState","defer","defer_","areDepsLoaded","load","pause_","path","LoadController","Dependency","relativePath","provides","loadFlags","loadCallbacks_","getPathName","callbackMap_","registerCallback_","unregisterCallback_","callback_","CLOSURE_IMPORT_SCRIPT","onload","write","TRUSTED_TYPES_POLICY_","async","IS_OLD_IE_","onreadystatechange","head","appendChild","Es6ModuleDependency","l","n","m","p","setAttribute","text","TransformedDependency","contents_","lazyFetch_","transform","ensure","TranspiledDependency","transpiler","PreTranspiledEs6ModuleDependency","GoogModuleDependency","needsTranspile_","atob","all","lang","CLOSURE_NO_DEPS","isChrome87","emptyScript","object","forEach","filter","some","every","getCount","getAnyKey","getAnyValue","contains","containsValue","getValues","getKeys","getValueByKeys","containsKey","findKey","findValue","isEmpty","clear","remove","add","set","setIfUndefined","setWithReturnValueIfNotSet","equals","unsafeClone","ArrayBuffer","isView","DataView","transpose","PROTOTYPE_FIELDS_","extend","create","createSet","createImmutableView","isFrozen","freeze","isImmutableView","getAllPropertyNames","getOwnPropertyNames","getPrototypeOf","getSuperClass","com","cognitect","module$contents$goog$debug$Error_DebugError","captureStackTrace","stack","cause","reportErrorToServer","transit","util","objectKeys","keys","chars","randInt","round","randHex","randomUUID","btoa","charCodeAt","fromCharCode","Uint8ToBase64","subarray","min","Base64ToUint8","Uint8Array","delimiters","ESC","TAG","SUB","RES","ESC_TAG","caching","MIN_SIZE_CACHEABLE","BASE_CHAR_IDX","CACHE_CODE_DIGITS","MAX_CACHE_ENTRIES","MAX_CACHE_SIZE","isCacheable","idxToCode","floor","WriteCache","cacheSize","gen","idx","cache","writeCache","isCacheCode","codeToIdx","ReadCache","read","readCache","eq","hashCodeProperty","hashCodeCounter","com$cognitect$transit$equals","hashCombine","stringCodeCache","stringCodeCacheSize","STR_CACHE_MAX","hashString","hashMapLike","hashCode","hashArrayLike","defineProperty","value","enumerable","valueOf","com$cognitect$transit$hashCode","extendToEQ","debug","name","dom","NodeType","ELEMENT","ATTRIBUTE","TEXT","CDATA_SECTION","ENTITY_REFERENCE","ENTITY","PROCESSING_INSTRUCTION","COMMENT","DOCUMENT","DOCUMENT_TYPE","DOCUMENT_FRAGMENT","NOTATION","asserts","ENABLE_ASSERTS","AssertionError","subs_","messagePattern","DEFAULT_ERROR_HANDLER","errorHandler_","doAssertFailure_","setErrorHandler","assert","assertExists","fail","assertNumber","assertString","assertFunction","assertObject","assertArray","assertBoolean","assertElement","assertInstanceof","getType_","assertFinite","isFinite","displayName","reflect","objectProperty","sinkValue","canAccessProperty","math","module$contents$goog$math$Long_Long","low_","high_","toInt","toNumber","module$contents$goog$math$Long_TWO_PWR_32_DBL_","getLowBitsUnsigned","isSafeInteger","pow","fromBits","div","abs","subtract","multiply","getHighBits","getLowBits","getNumBitsAbs","isNegative","getMinValue","negate","isZero","isOdd","notEquals","lessThan","compare","lessThanOrEqual","greaterThan","greaterThanOrEqual","getOne","getNegOne","shiftRight","shiftLeft","getZero","max","ceil","log","LN2","fromNumber","modulo","not","and","or","xor","shiftRightUnsigned","fromInt","module$contents$goog$math$Long_getCachedIntValue_","module$contents$goog$math$Long_TWO_PWR_63_DBL_","getMaxValue","fromString","parseInt","module$contents$goog$math$Long_MAX_SAFE_INTEGER_","isStringInRange","module$contents$goog$math$Long_MIN_VALUE_FOR_RADIX_","module$contents$goog$math$Long_MAX_VALUE_FOR_RADIX_","module$contents$goog$math$Long_ZERO_","module$contents$goog$math$Long_ONE_","module$contents$goog$math$Long_NEG_ONE_","module$contents$goog$math$Long_MAX_VALUE_","module$contents$goog$math$Long_MIN_VALUE_","getTwoPwr24","module$contents$goog$math$Long_TWO_PWR_24_","Long","module$contents$goog$math$Long_IntCache_","types","ITERATOR","Symbol","iterator","TaggedValue","tag","rep","equiv","taggedValue","isTaggedValue","nullValue","boolValue","MAX_INT","MIN_INT","intValue","isInteger","isNaN","Infinity","parseFloat","floatValue","bigInteger","isBigInteger","bigDecimalValue","isBigDecimal","charValue","Keyword","_name","namespace","keyword","isKeyword","symbol","isSymbol","hexFor","UUID","high","low","getLeastSignificantBits","getMostSignificantBits","UUIDfromString","uuid","isUUID","date","verboseDate","binary","preferBuffers","Buffer","isBinary","uri","isURI","KEYS","VALUES","ENTRIES","TransitArrayMapIterator","entries","next","done","TransitMapIterator","bucket","bucketIdx","size","mapEquals","TransitMap","isMap","TransitArrayMap","_entries","SMALL_ARRAY_MAP_THRESHOLD","ARRAY_MAP_THRESHOLD","ARRAY_MAP_ACCESS_THRESHOLD","print","printMap","printSet","backingMap","accesses","inspect","convert","keySet","values","delete","_keys","isArrayMap","TransitSet","isSet","quoted","isQuoted","list","isList","link","isLink","specialDouble","NaN","impl","decoder","Tag","str","isTag","isGroundHandler","Decoder","options","handlers","defaults","preferStrings","defaultHandler","mapBuilder","arrayBuilder","_","i","$","r","z","t","u","cmap","decode","decodeString","decodeArrayHash","decodeArray","decodeHash","parseString","fromArray","init","finalize","reader","JSONUnmarshaller","unmarshal","parse","Reader","unmarshaller","ctorGuid","ctorGuidProperty","typeTag","Boolean","Number","padZeros","stringableKeys","NilHandler","stringRep","StringHandler","NumberHandler","IntegerHandler","BooleanHandler","ArrayHandler","MapHandler","VerboseDateHandler","getUTCFullYear","getUTCMonth","getUTCDate","getUTCHours","getUTCMinutes","getUTCSeconds","getUTCMilliseconds","DateHandler","getVerboseHandler","UUIDHandler","KeywordHandler","SymbolHandler","TaggedHandler","TransitSetHandler","TransitArrayMapHandler","TransitMapHandler","BufferHandler","Uint8ArrayHandler","defaultHandlers","Handlers","validTag","writer","escape","JSONMarshaller","opts","objectBuilder","handlerForForeign","unpack","verbose","handler","transitTag","registerHandler","emitNil","emitString","emitBoolean","emitInteger","emitDouble","emitBinary","emitQuoted","marshal","emitObjects","emitArray","isStringableKey","isForeignObject","transit$isObject","emitMap","data","obj","emitTaggedMap","emitEncoded","maybeQuoted","marshalTop","Writer","_marshaller","marshaller","asMapKey","register","TRANSIT_DEV","TRANSIT_NODE_TARGET","TRANSIT_BROWSER_TARGET","TRANSIT_BROWSER_AMD_TARGET","makeWriteHandler","makeBuilder","integer","bigInt","isBigInt","bigDec","isBigDec","tagged","hash","mapToObject","objectToMap","extractCommonPathAndAssets","paths","commonPath","assets","prefix","asset","AssetsApi","axios","endpoint","headers","sdk","config","apisConfigs","sdkConfig","baseUrl","clientId","assetByAlias","params","startsWith","alias","assetsByAlias","assetByVersion","version","assetsByVersion","urlEncodeFormData","key","encodedKey","encodeURIComponent","encodedValue","AuthenticationApi","auth","token","post","authWithIdp","revoke","details","AvailabilityExceptions","authRequired","api","query","extraParams","Events","Images","upload","formDataObj","reduce","fd","entry","val","append","FormData","Listings","show","update","close","approve","Marketplace","Stock","compareAndSet","StockAdjustments","StockReservation","Transactions","transition","transitionSpeculative","updateMetadata","Users","id","email","updateProfile","updatePermissions","IntegrationApi","availabilityExceptions","events","images","listings","marketplace","stock","stockAdjustments","stockReservations","transactions","users","integrationApi","A","Bookings","CurrentUser","createWithIdp","changePassword","changeEmail","verifyEmail","sendVerificationEmail","createStripeAccount","updateStripeAccount","Messages","OwnListings","createDraft","publishDraft","discardDraft","addImage","PasswordReset","request","reset","ProcessTransitions","Reviews","StripeAccount","fetch","StripeAccountLinks","StripeCustomer","addPaymentMethod","deletePaymentMethod","StripePersons","StripeSetupIntents","TimeSlots","initiate","initiateSpeculative","MarketplaceApi","bookings","currentUser","messages","ownListings","passwordReset","processTransitions","reviews","stripeAccount","stripeAccountLinks","stripeCustomer","stripePersons","stripeSetupIntents","timeslots","IntegrationSdk","integration_api","baseURL","httpAgent","httpsAgent","SharetribeSdk","assetsApi","login","client_id","grant_type","loginAs","loginWithIdp","undefined","clientSecret","client_secret","logout","access_token","tokenStore","getToken","exchangeToken","subject_token","authInfo","storedToken","tokenScope","scopes","isAnonymous","grantType","BigDecimal","_sdkType","warn","LatLng","lat","lng","isNumberOrNumberString","LatLngBounds","ne","sw","isValid","isLatLngObject","neLatLng","swLatLng","Money","amount","currency","createApisConfigs","isIntegrationSdk","transitVerbose","Accept","assetCdnBaseUrl","DefaultSdkConfig","typeHandlers","toSdkTypes","replacer","reviver","serializeValue","v","toISOString","parameterSerializer","serializedParams","URLSearchParams","QUERY_PARAMETERS","isTransit","res","isJson","isTokenUnauthorized","includes","isTokenExpired","routeNeedsTrustedUser","requestConfig","requestUrl","url","found","find","prepareAuthorizationHeader","token_type","createAxiosConfig","transformRequest","transformResponse","prepareAxiosInstance","retryConfig","retries","retryDelay","interceptors","response","use","handleResponseSuccess","onFulfilled","setToken","revoked","removeToken","handleResponseFailure","originalRequest","refresh_token","Authorization","Promise","reject","handleRequestSuccess","authToken","param","method","endsWith","paramsSerializer","BrowserStore","expiration","secure","cookie","secureFlag","expires","ExpressStore","req","currentToken","readCookie","cookies","maxAge","httpOnly","clearCookie","MemoryStore","generateKey","identity","array","predicate","callback","composeReader","sdkTypeReader","appTypeReader","sdkTypeReaderFn","appTypeReaderFn","typeMap","geo","mn","sdkTypeReaders","sdkType","sdkTypeWriters","constructReadHandlers","appTypeReaders","fromPairs","pairs","typeClass","fromEntries","writeHandlers","sdkTypeWriter","w","flat","ret","MapHandlers","appTypeWriters","transitType","appTypeWriter","appType","canHandle","x","createTransitConverters","readers","writers","memo","objectQueryString","attribute","crypto","getRandomValues","rnds8","rng","byteToHex","unsafeStringify","arr","offset","v4","buf","rnds","isNetworkError","SAFE_HTTP_METHODS","IDEMPOTENT_HTTP_METHODS","isRetryableError","isIdempotentRequestError","isNetworkOrIdempotentRequestError","retryAfter","retryAfterHeader","retryAfterMs","DEFAULT_OPTIONS","retryCondition","noDelay","_retryNumber","shouldResetTimeout","onRetry","onMaxRetryTimesExceeded","validateResponse","setCurrentState","defaultOptions","resetLastRequestTime","currentState","getRequestOptions","retryCount","lastRequestTime","axiosRetry","axiosInstance","requestInterceptorId","validateStatus","responseInterceptorId","shouldRetry","shouldRetryOrPromise","_err","handleRetry","delay","fixConfig","agent","timeout","lastRequestDuration","signal","aborted","resolve","abortListener","clearTimeout","removeEventListener","addEventListener","once","handleMaxRetryTimesExceeded","isSafeRequestError","exponentialDelay","retryNumber","delayFactor","calculatedDelay","linearDelay","knownAdapters","http","xhr","fn","renderReason","reason","isResolvedHandle","adapter","isFunction","getAdapter","adapters","nameOrAdapter","rejectedReasons","toLowerCase","reasons","state","s","isFetchSupported","Request","Response","isReadableStreamSupported","ReadableStream","encodeText","TextEncoder","encoder","encode","arrayBuffer","args","supportsRequestStream","duplexAccessed","hasContentType","origin","body","duplex","supportsResponseStream","isReadableStream","resolvers","stream","ERR_NOT_SUPPORT","resolveBodyLength","toFiniteNumber","getContentLength","isBlob","isSpecCompliantForm","_request","byteLength","isArrayBufferView","isArrayBuffer","isURLSearchParams","isString","getBodyLength","cancelToken","onDownloadProgress","onUploadProgress","responseType","withCredentials","fetchOptions","composedSignal","toAbortSignal","unsubscribe","requestContentLength","contentTypeHeader","isFormData","setContentType","onProgress","flush","isCredentialsSupported","toUpperCase","normalize","toJSON","credentials","isStreamResponse","prop","responseContentLength","responseData","from","statusText","err","assign","ERR_NETWORK","dispatchXhrRequest","_config","requestData","requestHeaders","onCanceled","uploadThrottled","downloadThrottled","flushUpload","flushDownload","onloadend","responseHeaders","getAllResponseHeaders","_resolve","_reject","handleLoad","responseURL","onabort","handleAbort","ECONNABORTED","onerror","handleError","ontimeout","handleTimeout","timeoutErrorMessage","transitional","clarifyTimeoutError","ETIMEDOUT","setRequestHeader","isUndefined","cancel","abort","subscribe","protocol","protocols","ERR_BAD_REQUEST","createInstance","defaultConfig","context","instance","allOwnKeys","instanceConfig","Axios","CanceledError","CancelToken","isCancel","VERSION","toFormData","AxiosError","Cancel","promises","spread","isAxiosError","mergeConfig","AxiosHeaders","formToJSON","thing","isHTMLForm","HttpStatusCode","default","executor","TypeError","resolvePromise","promise","promiseExecutor","then","_listeners","onfulfilled","throwIfRequested","listener","index","controller","AbortController","source","ERR_CANCELED","__CANCEL__","validators","configOrUrl","dummy","assertOptions","silentJSONParsing","boolean","forcedJSONParsing","serialize","function","allowAbsoluteUrls","spelling","withXsrfToken","contextHeaders","merge","common","requestInterceptorChain","synchronousRequestInterceptors","unshiftRequestInterceptors","interceptor","runWhen","synchronous","fulfilled","rejected","responseInterceptorChain","pushResponseInterceptors","len","chain","newConfig","onRejected","getUri","fullPath","forEachMethodNoData","forEachMethodWithData","generateHTTPMethod","isForm","httpMethod","description","number","fileName","lineNumber","columnNumber","toJSONObject","descriptors","defineProperties","customProps","axiosError","toFlatObject","$internals","normalizeHeader","header","trim","normalizeValue","matchHeaderValue","isHeaderNameFilter","isRegExp","valueOrRewrite","rewrite","setHeader","_value","_header","_rewrite","lHeader","setHeaders","isPlainObject","isHeaders","parser","parseTokens","tokens","tokensRE","exec","matcher","deleted","deleteHeader","format","normalized","formatHeader","char","targets","asStrings","toStringTag","first","computed","accessor","accessors","defineAccessor","buildAccessors","accessorName","toCamelCase","methodName","arg1","arg2","arg3","configurable","reduceDescriptors","mapped","headerValue","freezeMethods","InterceptorManager","eject","forEachHandler","buildFullPath","requestedURL","isRelativeUrl","throwIfCancellationRequested","dispatchRequest","onAdapterResolution","onAdapterRejection","headersToObject","config1","config2","getMergedValue","caseless","mergeDeepProperties","valueFromConfig2","defaultToConfig2","mergeDirectKeys","mergeMap","timeoutMessage","withXSRFToken","xsrfCookieName","xsrfHeaderName","decompress","maxContentLength","maxBodyLength","beforeRedirect","transport","socketPath","responseEncoding","computeConfigValue","configValue","settle","ERR_BAD_RESPONSE","transformData","fns","contentType","getContentType","hasJSONContentType","isObjectPayload","isBuffer","isStream","isFile","buffer","isFileList","formSerializer","_FormData","env","stringifySafely","rawValue","JSONRequested","isResponse","strictJSONParsing","classes","Blob","charMap","AxiosURLSearchParams","_pairs","_encode","each","pair","Continue","SwitchingProtocols","Processing","EarlyHints","Ok","Created","Accepted","NonAuthoritativeInformation","NoContent","ResetContent","PartialContent","MultiStatus","AlreadyReported","ImUsed","MultipleChoices","MovedPermanently","Found","SeeOther","NotModified","UseProxy","Unused","TemporaryRedirect","PermanentRedirect","BadRequest","Unauthorized","PaymentRequired","Forbidden","NotFound","MethodNotAllowed","NotAcceptable","ProxyAuthenticationRequired","RequestTimeout","Conflict","Gone","LengthRequired","PreconditionFailed","PayloadTooLarge","UriTooLong","UnsupportedMediaType","RangeNotSatisfiable","ExpectationFailed","ImATeapot","MisdirectedRequest","UnprocessableEntity","Locked","FailedDependency","TooEarly","UpgradeRequired","PreconditionRequired","TooManyRequests","RequestHeaderFieldsTooLarge","UnavailableForLegalReasons","InternalServerError","NotImplemented","BadGateway","ServiceUnavailable","GatewayTimeout","HttpVersionNotSupported","VariantAlsoNegotiates","InsufficientStorage","LoopDetected","NotExtended","NetworkAuthenticationRequired","thisArg","wrap","buildURL","serializeFn","hashmarkIndex","combineURLs","relativeURL","signals","timer","asap","hasStandardBrowserEnv","domain","isNumber","toGMTString","RegExp","decodeURIComponent","formDataToJSON","formData","buildPath","isNumericKey","isLast","hasOwnProp","arrayToObject","forEachEntry","parsePropPath","matchAll","isAbsoluteURL","payload","URL","isMSIE","host","port","ignoreDuplicateOf","toObjectSet","rawHeaders","parsed","line","parseProtocol","progressEventReducer","isDownloadStream","freq","bytesNotified","_speedometer","total","lengthComputable","progressBytes","rate","progress","bytes","estimated","event","progressEventDecorator","throttled","asyncDecorator","username","password","unescape","hasStandardBrowserWebWorkerEnv","xsrfValue","speedometer","samplesCount","timestamps","firstSampleTS","tail","chunkLength","startedAt","bytesCount","passed","throttle","lastArgs","timestamp","threshold","invoke","isVisitable","removeBrackets","renderKey","dots","predicates","metaTokens","indexes","defined","option","visitor","defaultVisitor","useBlob","convertValue","isDate","isTypedArray","isFlatArray","toArray","el","exposedHelpers","build","pop","toURLEncodedForm","helpers","isNode","streamChunk","chunk","chunkSize","end","pos","readStream","asyncIterator","getReader","trackStream","onFinish","iterable","readBytes","_onFinish","pull","loadedBytes","enqueue","return","highWaterMark","validator","deprecatedWarnings","formatMessage","opt","desc","ERR_DEPRECATED","correctSpelling","schema","allowUnknown","ERR_BAD_OPTION_VALUE","result","ERR_BAD_OPTION","isBrowser","hasBrowserEnv","window","_navigator","product","WorkerGlobalScope","importScripts","location","href","kindOf","kindOfTest","typeOfTest","isRequest","_key","_global","globalThis","isContextDefined","TypedArray","reducer","getOwnPropertyDescriptors","reducedDescriptors","descriptor","isAsyncFn","_setImmediate","setImmediateSupported","setImmediate","postMessageSupported","postMessage","callbacks","cb","queueMicrotask","process","nextTick","kind","isBoolean","pipe","assignValue","targetKey","stripBOM","content","superConstructor","props","sourceObj","destObj","propFilter","merged","searchString","position","lastIndex","regExp","matches","writable","arrayOrString","delimiter","p1","p2","noop","defaultValue","visit","reducedValue","isThenable","catch","converter","defaultAttributes","attributes","toUTCString","stringifiedAttributes","attributeName","jar","parts","withAttributes","withConverter","__webpack_module_cache__","__webpack_require__","cachedModule","__webpack_modules__","getter","__esModule","definition","o","SharetribeIntegrationSdk","TokenStore","sdkTypes"],"sourceRoot":""}
1
+ {"version":3,"file":"ts-sharetribe-flex-sdk.cjs","mappings":";8CAAAA,EAAOC,QACP,CACEC,SAAgB,EAAQ,MACxBC,OAAgB,EAAQ,MACxBC,cAAgB,EAAQ,eCkB1B,SAASC,MAAMC,GAEgB,mBAAlBC,KAAKC,KAAKF,IAEnBC,KAAKC,KAAKF,IAEd,CA3BAN,EAAOC,QAOP,SAASQ,MAAMC,GAEbC,OAAOC,KAAKF,EAAMF,MAAMK,QAAQR,MAAMS,KAAKJ,IAG3CA,EAAMF,KAAO,CAAC,CAChB,kBCdA,IAAIO,EAAQ,EAAQ,KAGpBf,EAAOC,QASP,SAASe,MAAMC,GAEb,IAAIC,GAAU,EAKd,OAFAH,GAAM,WAAaG,GAAU,CAAM,IAE5B,SAASC,eAAeC,EAAKC,GAE9BH,EAEFD,EAASG,EAAKC,GAIdN,GAAM,SAASO,oBAEbL,EAASG,EAAKC,EAChB,GAEJ,CACF,WCjCArB,EAAOC,QAOP,SA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K3H,IACH,oBAAXgQ,QAA0BA,OAAOD,aAC1CrP,OAAOsK,eAAehL,EAASgQ,OAAOD,YAAa,CAAEjK,MAAO,WAE7DpF,OAAOsK,eAAehL,EAAS,aAAc,CAAE8F,OAAO,GAAO,wmBCmDvD,MAAM,EAAW,CAEtBuyC,WAAU,IAEVE,OAAM,IAENI,aAAY,IAEZO,MAAK,IAEL3T,KAAI,IAEJsU,SAAQ,KAERC,QAAO,MAcI,EAAa,CAExBuD,YAAW,IAEXb,aAAY,IAEZM,aAAY,KAWD,EAAU,CACrBrgB,KAAI,KACJ12B,MAAK,MASM,EAAgB,IAGhB,EAAiB,IAMjB,EAAO,CAElB25C,kBAAiB,KAoBnB,EAdsB,CAEpB1I,cAAe,IAEfg0B,yBAA0B,IAE1BC,WAAU,EAEVC,SAAQ,EAER9nE,KAAI,EAEJo3B,QAAO","sources":["webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/asynckit/index.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/asynckit/lib/abort.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/asynckit/lib/async.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/asynckit/lib/defer.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/asynckit/lib/iterate.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/asynckit/lib/state.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/asynckit/lib/terminator.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/asynckit/parallel.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/asynckit/serial.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/asynckit/serialOrdered.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/combined-stream/lib/combined_stream.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/debug/src/browser.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/debug/src/common.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/debug/src/index.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/debug/src/node.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/delayed-stream/lib/delayed_stream.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/es-define-property/index.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/es-errors/eval.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/es-errors/index.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/es-errors/range.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/es-errors/ref.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/es-errors/syntax.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/es-errors/type.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/es-errors/uri.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/es-object-atoms/index.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/es-set-tostringtag/index.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/es-set-tostringtag/node_modules/call-bind-apply-helpers/functionApply.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/es-set-tostringtag/node_modules/call-bind-apply-helpers/functionCall.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/es-set-tostringtag/node_modules/get-intrinsic/index.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/follow-redirects/debug.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/follow-redirects/index.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/form-data/lib/form_data.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/form-data/lib/populate.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/function-bind/implementation.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/function-bind/index.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/get-proto/Object.getPrototypeOf.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/get-proto/Reflect.getPrototypeOf.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/get-proto/index.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/get-proto/node_modules/call-bind-apply-helpers/actualApply.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/get-proto/node_modules/call-bind-apply-helpers/functionApply.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/get-proto/node_modules/call-bind-apply-helpers/functionCall.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/get-proto/node_modules/call-bind-apply-helpers/index.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/get-proto/node_modules/call-bind-apply-helpers/reflectApply.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/get-proto/node_modules/dunder-proto/get.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/gopd/gOPD.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/gopd/index.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/has-flag/index.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/has-symbols/index.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/has-symbols/shams.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/has-tostringtag/shams.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/hasown/index.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/is-retry-allowed/index.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/math-intrinsics/abs.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/math-intrinsics/floor.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/math-intrinsics/isNaN.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/math-intrinsics/max.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/math-intrinsics/min.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/math-intrinsics/pow.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/math-intrinsics/round.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/math-intrinsics/sign.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/mime-db/index.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/mime-types/index.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/ms/index.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/proxy-from-env/index.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/supports-color/index.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/transit-js/transit.js","webpack://@vansite/ts-sharetribe-flex-sdk/./src/endpoints/assets/index.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/endpoints/auth/index.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/endpoints/integrationApi/AvailabilityExceptions.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/endpoints/integrationApi/Events.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/endpoints/integrationApi/Images.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/endpoints/integrationApi/Listings.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/endpoints/integrationApi/Marketplace.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/endpoints/integrationApi/Stock.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/endpoints/integrationApi/StockAdjustments.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/endpoints/integrationApi/StockReservation.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/endpoints/integrationApi/Transactions.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/endpoints/integrationApi/Users.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/endpoints/integrationApi/index.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/endpoints/marketplace/AvailabilityExceptions.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/endpoints/marketplace/Bookings.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/endpoints/marketplace/CurrentUser.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/endpoints/marketplace/Images.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/endpoints/marketplace/Listings.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/endpoints/marketplace/Marketplace.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/endpoints/marketplace/Messages.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/endpoints/marketplace/OwnListings.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/endpoints/marketplace/PasswordReset.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/endpoints/marketplace/ProcessTransitions.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/endpoints/marketplace/Reviews.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/endpoints/marketplace/Stock.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/endpoints/marketplace/StockAdjustments.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/endpoints/marketplace/StripeAccount.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/endpoints/marketplace/StripeAccountLinks.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/endpoints/marketplace/StripeCustomer.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/endpoints/marketplace/StripePersons.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/endpoints/marketplace/StripeSetupIntents.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/endpoints/marketplace/TimeSlots.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/endpoints/marketplace/Transactions.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/endpoints/marketplace/Users.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/endpoints/marketplace/index.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/integrationSdk.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/sdk.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/sdkTypes/BigDecimal.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/sdkTypes/LatLng.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/sdkTypes/LatLngBounds.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/sdkTypes/Money.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/sdkTypes/UUID.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/utils/apis.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/utils/config.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/utils/convert-types.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/utils/parameter-serializer.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/utils/prepare-axios-instance.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/utils/stores/BrowserStore.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/utils/stores/ExpressStore.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/utils/stores/MemoryStore.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/utils/stores/store.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/utils/transit.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./src/utils/util.ts","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/uuid/dist/esm-node/native.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/uuid/dist/esm-node/rng.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/uuid/dist/esm-node/stringify.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/uuid/dist/esm-node/v4.js","webpack://@vansite/ts-sharetribe-flex-sdk/external node-commonjs \"assert\"","webpack://@vansite/ts-sharetribe-flex-sdk/external node-commonjs \"crypto\"","webpack://@vansite/ts-sharetribe-flex-sdk/external node-commonjs \"events\"","webpack://@vansite/ts-sharetribe-flex-sdk/external node-commonjs \"fs\"","webpack://@vansite/ts-sharetribe-flex-sdk/external node-commonjs \"http\"","webpack://@vansite/ts-sharetribe-flex-sdk/external node-commonjs \"https\"","webpack://@vansite/ts-sharetribe-flex-sdk/external node-commonjs \"os\"","webpack://@vansite/ts-sharetribe-flex-sdk/external node-commonjs \"path\"","webpack://@vansite/ts-sharetribe-flex-sdk/external node-commonjs \"stream\"","webpack://@vansite/ts-sharetribe-flex-sdk/external node-commonjs \"tty\"","webpack://@vansite/ts-sharetribe-flex-sdk/external node-commonjs \"url\"","webpack://@vansite/ts-sharetribe-flex-sdk/external node-commonjs \"util\"","webpack://@vansite/ts-sharetribe-flex-sdk/external node-commonjs \"zlib\"","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios-retry/dist/esm/index.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/adapters/adapters.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/adapters/fetch.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/adapters/http.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/adapters/xhr.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/axios.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/cancel/CancelToken.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/cancel/CanceledError.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/cancel/isCancel.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/core/Axios.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/core/AxiosError.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/core/AxiosHeaders.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/core/InterceptorManager.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/core/buildFullPath.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/core/dispatchRequest.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/core/mergeConfig.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/core/settle.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/core/transformData.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/defaults/index.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/defaults/transitional.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/env/data.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/helpers/AxiosTransformStream.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/helpers/AxiosURLSearchParams.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/helpers/HttpStatusCode.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/helpers/bind.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/helpers/buildURL.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/helpers/callbackify.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/helpers/combineURLs.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/helpers/composeSignals.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/helpers/cookies.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/helpers/formDataToJSON.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/helpers/formDataToStream.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/helpers/fromDataURI.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/helpers/isAbsoluteURL.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/helpers/isAxiosError.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/helpers/isURLSameOrigin.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/helpers/parseHeaders.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/helpers/parseProtocol.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/helpers/progressEventReducer.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/helpers/readBlob.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/helpers/resolveConfig.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/helpers/speedometer.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/helpers/spread.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/helpers/throttle.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/helpers/toFormData.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/helpers/toURLEncodedForm.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/helpers/trackStream.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/helpers/validator.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/platform/common/utils.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/platform/index.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/platform/node/classes/FormData.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/platform/node/classes/URLSearchParams.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/platform/node/index.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/axios/lib/utils.js","webpack://@vansite/ts-sharetribe-flex-sdk/./node_modules/js-cookie/dist/js.cookie.mjs","webpack://@vansite/ts-sharetribe-flex-sdk/webpack/bootstrap","webpack://@vansite/ts-sharetribe-flex-sdk/webpack/runtime/compat get default export","webpack://@vansite/ts-sharetribe-flex-sdk/webpack/runtime/define property getters","webpack://@vansite/ts-sharetribe-flex-sdk/webpack/runtime/hasOwnProperty shorthand","webpack://@vansite/ts-sharetribe-flex-sdk/webpack/runtime/make namespace object","webpack://@vansite/ts-sharetribe-flex-sdk/./src/index.ts"],"sourcesContent":["module.exports =\n{\n parallel : require('./parallel.js'),\n serial : require('./serial.js'),\n serialOrdered : require('./serialOrdered.js')\n};\n","// API\nmodule.exports = abort;\n\n/**\n * Aborts leftover active jobs\n *\n * @param {object} state - current state object\n */\nfunction abort(state)\n{\n Object.keys(state.jobs).forEach(clean.bind(state));\n\n // reset leftover jobs\n state.jobs = {};\n}\n\n/**\n * Cleans up leftover job by invoking abort function for the provided job id\n *\n * @this state\n * @param {string|number} key - job id to abort\n */\nfunction clean(key)\n{\n if (typeof this.jobs[key] == 'function')\n {\n this.jobs[key]();\n }\n}\n","var defer = require('./defer.js');\n\n// API\nmodule.exports = async;\n\n/**\n * Runs provided callback asynchronously\n * even if callback itself is not\n *\n * @param {function} callback - callback to invoke\n * @returns {function} - augmented callback\n */\nfunction async(callback)\n{\n var isAsync = false;\n\n // check if async happened\n defer(function() { isAsync = true; });\n\n return function async_callback(err, result)\n {\n if (isAsync)\n {\n callback(err, result);\n }\n else\n {\n defer(function nextTick_callback()\n {\n callback(err, result);\n });\n }\n };\n}\n","module.exports = defer;\n\n/**\n * Runs provided function on next iteration of the event loop\n *\n * @param {function} fn - function to run\n */\nfunction defer(fn)\n{\n var nextTick = typeof setImmediate == 'function'\n ? setImmediate\n : (\n typeof process == 'object' && typeof process.nextTick == 'function'\n ? process.nextTick\n : null\n );\n\n if (nextTick)\n {\n nextTick(fn);\n }\n else\n {\n setTimeout(fn, 0);\n }\n}\n","var async = require('./async.js')\n , abort = require('./abort.js')\n ;\n\n// API\nmodule.exports = iterate;\n\n/**\n * Iterates over each job object\n *\n * @param {array|object} list - array or object (named list) to iterate over\n * @param {function} iterator - iterator to run\n * @param {object} state - current job status\n * @param {function} callback - invoked when all elements processed\n */\nfunction iterate(list, iterator, state, callback)\n{\n // store current index\n var key = state['keyedList'] ? state['keyedList'][state.index] : state.index;\n\n state.jobs[key] = runJob(iterator, key, list[key], function(error, output)\n {\n // don't repeat yourself\n // skip secondary callbacks\n if (!(key in state.jobs))\n {\n return;\n }\n\n // clean up jobs\n delete state.jobs[key];\n\n if (error)\n {\n // don't process rest of the results\n // stop still active jobs\n // and reset the list\n abort(state);\n }\n else\n {\n state.results[key] = output;\n }\n\n // return salvaged results\n callback(error, state.results);\n });\n}\n\n/**\n * Runs iterator over provided job element\n *\n * @param {function} iterator - iterator to invoke\n * @param {string|number} key - key/index of the element in the list of jobs\n * @param {mixed} item - job description\n * @param {function} callback - invoked after iterator is done with the job\n * @returns {function|mixed} - job abort function or something else\n */\nfunction runJob(iterator, key, item, callback)\n{\n var aborter;\n\n // allow shortcut if iterator expects only two arguments\n if (iterator.length == 2)\n {\n aborter = iterator(item, async(callback));\n }\n // otherwise go with full three arguments\n else\n {\n aborter = iterator(item, key, async(callback));\n }\n\n return aborter;\n}\n","// API\nmodule.exports = state;\n\n/**\n * Creates initial state object\n * for iteration over list\n *\n * @param {array|object} list - list to iterate over\n * @param {function|null} sortMethod - function to use for keys sort,\n * or `null` to keep them as is\n * @returns {object} - initial state object\n */\nfunction state(list, sortMethod)\n{\n var isNamedList = !Array.isArray(list)\n , initState =\n {\n index : 0,\n keyedList: isNamedList || sortMethod ? Object.keys(list) : null,\n jobs : {},\n results : isNamedList ? {} : [],\n size : isNamedList ? Object.keys(list).length : list.length\n }\n ;\n\n if (sortMethod)\n {\n // sort array keys based on it's values\n // sort object's keys just on own merit\n initState.keyedList.sort(isNamedList ? sortMethod : function(a, b)\n {\n return sortMethod(list[a], list[b]);\n });\n }\n\n return initState;\n}\n","var abort = require('./abort.js')\n , async = require('./async.js')\n ;\n\n// API\nmodule.exports = terminator;\n\n/**\n * Terminates jobs in the attached state context\n *\n * @this AsyncKitState#\n * @param {function} callback - final callback to invoke after termination\n */\nfunction terminator(callback)\n{\n if (!Object.keys(this.jobs).length)\n {\n return;\n }\n\n // fast forward iteration index\n this.index = this.size;\n\n // abort jobs\n abort(this);\n\n // send back results we have so far\n async(callback)(null, this.results);\n}\n","var iterate = require('./lib/iterate.js')\n , initState = require('./lib/state.js')\n , terminator = require('./lib/terminator.js')\n ;\n\n// Public API\nmodule.exports = parallel;\n\n/**\n * Runs iterator over provided array elements in parallel\n *\n * @param {array|object} list - array or object (named list) to iterate over\n * @param {function} iterator - iterator to run\n * @param {function} callback - invoked when all elements processed\n * @returns {function} - jobs terminator\n */\nfunction parallel(list, iterator, callback)\n{\n var state = initState(list);\n\n while (state.index < (state['keyedList'] || list).length)\n {\n iterate(list, iterator, state, function(error, result)\n {\n if (error)\n {\n callback(error, result);\n return;\n }\n\n // looks like it's the last one\n if (Object.keys(state.jobs).length === 0)\n {\n callback(null, state.results);\n return;\n }\n });\n\n state.index++;\n }\n\n return terminator.bind(state, callback);\n}\n","var serialOrdered = require('./serialOrdered.js');\n\n// Public API\nmodule.exports = serial;\n\n/**\n * Runs iterator over provided array elements in series\n *\n * @param {array|object} list - array or object (named list) to iterate over\n * @param {function} iterator - iterator to run\n * @param {function} callback - invoked when all elements processed\n * @returns {function} - jobs terminator\n */\nfunction serial(list, iterator, callback)\n{\n return serialOrdered(list, iterator, null, callback);\n}\n","var iterate = require('./lib/iterate.js')\n , initState = require('./lib/state.js')\n , terminator = require('./lib/terminator.js')\n ;\n\n// Public API\nmodule.exports = serialOrdered;\n// sorting helpers\nmodule.exports.ascending = ascending;\nmodule.exports.descending = descending;\n\n/**\n * Runs iterator over provided sorted array elements in series\n *\n * @param {array|object} list - array or object (named list) to iterate over\n * @param {function} iterator - iterator to run\n * @param {function} sortMethod - custom sort function\n * @param {function} callback - invoked when all elements processed\n * @returns {function} - jobs terminator\n */\nfunction serialOrdered(list, iterator, sortMethod, callback)\n{\n var state = initState(list, sortMethod);\n\n iterate(list, iterator, state, function iteratorHandler(error, result)\n {\n if (error)\n {\n callback(error, result);\n return;\n }\n\n state.index++;\n\n // are we there yet?\n if (state.index < (state['keyedList'] || list).length)\n {\n iterate(list, iterator, state, iteratorHandler);\n return;\n }\n\n // done here\n callback(null, state.results);\n });\n\n return terminator.bind(state, callback);\n}\n\n/*\n * -- Sort methods\n */\n\n/**\n * sort helper to sort array elements in ascending order\n *\n * @param {mixed} a - an item to compare\n * @param {mixed} b - an item to compare\n * @returns {number} - comparison result\n */\nfunction ascending(a, b)\n{\n return a < b ? -1 : a > b ? 1 : 0;\n}\n\n/**\n * sort helper to sort array elements in descending order\n *\n * @param {mixed} a - an item to compare\n * @param {mixed} b - an item to compare\n * @returns {number} - comparison result\n */\nfunction descending(a, b)\n{\n return -1 * ascending(a, b);\n}\n","var util = require('util');\nvar Stream = require('stream').Stream;\nvar DelayedStream = require('delayed-stream');\n\nmodule.exports = CombinedStream;\nfunction CombinedStream() {\n this.writable = false;\n this.readable = true;\n this.dataSize = 0;\n this.maxDataSize = 2 * 1024 * 1024;\n this.pauseStreams = true;\n\n this._released = false;\n this._streams = [];\n this._currentStream = null;\n this._insideLoop = false;\n this._pendingNext = false;\n}\nutil.inherits(CombinedStream, Stream);\n\nCombinedStream.create = function(options) {\n var combinedStream = new this();\n\n options = options || {};\n for (var option in options) {\n combinedStream[option] = options[option];\n }\n\n return combinedStream;\n};\n\nCombinedStream.isStreamLike = function(stream) {\n return (typeof stream !== 'function')\n && (typeof stream !== 'string')\n && (typeof stream !== 'boolean')\n && (typeof stream !== 'number')\n && (!Buffer.isBuffer(stream));\n};\n\nCombinedStream.prototype.append = function(stream) {\n var isStreamLike = CombinedStream.isStreamLike(stream);\n\n if (isStreamLike) {\n if (!(stream instanceof DelayedStream)) {\n var newStream = DelayedStream.create(stream, {\n maxDataSize: Infinity,\n pauseStream: this.pauseStreams,\n });\n stream.on('data', this._checkDataSize.bind(this));\n stream = newStream;\n }\n\n this._handleErrors(stream);\n\n if (this.pauseStreams) {\n stream.pause();\n }\n }\n\n this._streams.push(stream);\n return this;\n};\n\nCombinedStream.prototype.pipe = function(dest, options) {\n Stream.prototype.pipe.call(this, dest, options);\n this.resume();\n return dest;\n};\n\nCombinedStream.prototype._getNext = function() {\n this._currentStream = null;\n\n if (this._insideLoop) {\n this._pendingNext = true;\n return; // defer call\n }\n\n this._insideLoop = true;\n try {\n do {\n this._pendingNext = false;\n this._realGetNext();\n } while (this._pendingNext);\n } finally {\n this._insideLoop = false;\n }\n};\n\nCombinedStream.prototype._realGetNext = function() {\n var stream = this._streams.shift();\n\n\n if (typeof stream == 'undefined') {\n this.end();\n return;\n }\n\n if (typeof stream !== 'function') {\n this._pipeNext(stream);\n return;\n }\n\n var getStream = stream;\n getStream(function(stream) {\n var isStreamLike = CombinedStream.isStreamLike(stream);\n if (isStreamLike) {\n stream.on('data', this._checkDataSize.bind(this));\n this._handleErrors(stream);\n }\n\n this._pipeNext(stream);\n }.bind(this));\n};\n\nCombinedStream.prototype._pipeNext = function(stream) {\n this._currentStream = stream;\n\n var isStreamLike = CombinedStream.isStreamLike(stream);\n if (isStreamLike) {\n stream.on('end', this._getNext.bind(this));\n stream.pipe(this, {end: false});\n return;\n }\n\n var value = stream;\n this.write(value);\n this._getNext();\n};\n\nCombinedStream.prototype._handleErrors = function(stream) {\n var self = this;\n stream.on('error', function(err) {\n self._emitError(err);\n });\n};\n\nCombinedStream.prototype.write = function(data) {\n this.emit('data', data);\n};\n\nCombinedStream.prototype.pause = function() {\n if (!this.pauseStreams) {\n return;\n }\n\n if(this.pauseStreams && this._currentStream && typeof(this._currentStream.pause) == 'function') this._currentStream.pause();\n this.emit('pause');\n};\n\nCombinedStream.prototype.resume = function() {\n if (!this._released) {\n this._released = true;\n this.writable = true;\n this._getNext();\n }\n\n if(this.pauseStreams && this._currentStream && typeof(this._currentStream.resume) == 'function') this._currentStream.resume();\n this.emit('resume');\n};\n\nCombinedStream.prototype.end = function() {\n this._reset();\n this.emit('end');\n};\n\nCombinedStream.prototype.destroy = function() {\n this._reset();\n this.emit('close');\n};\n\nCombinedStream.prototype._reset = function() {\n this.writable = false;\n this._streams = [];\n this._currentStream = null;\n};\n\nCombinedStream.prototype._checkDataSize = function() {\n this._updateDataSize();\n if (this.dataSize <= this.maxDataSize) {\n return;\n }\n\n var message =\n 'DelayedStream#maxDataSize of ' + this.maxDataSize + ' bytes exceeded.';\n this._emitError(new Error(message));\n};\n\nCombinedStream.prototype._updateDataSize = function() {\n this.dataSize = 0;\n\n var self = this;\n this._streams.forEach(function(stream) {\n if (!stream.dataSize) {\n return;\n }\n\n self.dataSize += stream.dataSize;\n });\n\n if (this._currentStream && this._currentStream.dataSize) {\n this.dataSize += this._currentStream.dataSize;\n }\n};\n\nCombinedStream.prototype._emitError = function(err) {\n this._reset();\n this.emit('error', err);\n};\n","/* eslint-env browser */\n\n/**\n * This is the web browser implementation of `debug()`.\n */\n\nexports.formatArgs = formatArgs;\nexports.save = save;\nexports.load = load;\nexports.useColors = useColors;\nexports.storage = localstorage();\nexports.destroy = (() => {\n\tlet warned = false;\n\n\treturn () => {\n\t\tif (!warned) {\n\t\t\twarned = true;\n\t\t\tconsole.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.');\n\t\t}\n\t};\n})();\n\n/**\n * Colors.\n */\n\nexports.colors = [\n\t'#0000CC',\n\t'#0000FF',\n\t'#0033CC',\n\t'#0033FF',\n\t'#0066CC',\n\t'#0066FF',\n\t'#0099CC',\n\t'#0099FF',\n\t'#00CC00',\n\t'#00CC33',\n\t'#00CC66',\n\t'#00CC99',\n\t'#00CCCC',\n\t'#00CCFF',\n\t'#3300CC',\n\t'#3300FF',\n\t'#3333CC',\n\t'#3333FF',\n\t'#3366CC',\n\t'#3366FF',\n\t'#3399CC',\n\t'#3399FF',\n\t'#33CC00',\n\t'#33CC33',\n\t'#33CC66',\n\t'#33CC99',\n\t'#33CCCC',\n\t'#33CCFF',\n\t'#6600CC',\n\t'#6600FF',\n\t'#6633CC',\n\t'#6633FF',\n\t'#66CC00',\n\t'#66CC33',\n\t'#9900CC',\n\t'#9900FF',\n\t'#9933CC',\n\t'#9933FF',\n\t'#99CC00',\n\t'#99CC33',\n\t'#CC0000',\n\t'#CC0033',\n\t'#CC0066',\n\t'#CC0099',\n\t'#CC00CC',\n\t'#CC00FF',\n\t'#CC3300',\n\t'#CC3333',\n\t'#CC3366',\n\t'#CC3399',\n\t'#CC33CC',\n\t'#CC33FF',\n\t'#CC6600',\n\t'#CC6633',\n\t'#CC9900',\n\t'#CC9933',\n\t'#CCCC00',\n\t'#CCCC33',\n\t'#FF0000',\n\t'#FF0033',\n\t'#FF0066',\n\t'#FF0099',\n\t'#FF00CC',\n\t'#FF00FF',\n\t'#FF3300',\n\t'#FF3333',\n\t'#FF3366',\n\t'#FF3399',\n\t'#FF33CC',\n\t'#FF33FF',\n\t'#FF6600',\n\t'#FF6633',\n\t'#FF9900',\n\t'#FF9933',\n\t'#FFCC00',\n\t'#FFCC33'\n];\n\n/**\n * Currently only WebKit-based Web Inspectors, Firefox >= v31,\n * and the Firebug extension (any Firefox version) are known\n * to support \"%c\" CSS customizations.\n *\n * TODO: add a `localStorage` variable to explicitly enable/disable colors\n */\n\n// eslint-disable-next-line complexity\nfunction useColors() {\n\t// NB: In an Electron preload script, document will be defined but not fully\n\t// initialized. Since we know we're in Chrome, we'll just detect this case\n\t// explicitly\n\tif (typeof window !== 'undefined' && window.process && (window.process.type === 'renderer' || window.process.__nwjs)) {\n\t\treturn true;\n\t}\n\n\t// Internet Explorer and Edge do not support colors.\n\tif (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\\/(\\d+)/)) {\n\t\treturn false;\n\t}\n\n\t// Is webkit? http://stackoverflow.com/a/16459606/376773\n\t// document is undefined in react-native: https://github.com/facebook/react-native/pull/1632\n\treturn (typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance) ||\n\t\t// Is firebug? http://stackoverflow.com/a/398120/376773\n\t\t(typeof window !== 'undefined' && window.console && (window.console.firebug || (window.console.exception && window.console.table))) ||\n\t\t// Is firefox >= v31?\n\t\t// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages\n\t\t(typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\\/(\\d+)/) && parseInt(RegExp.$1, 10) >= 31) ||\n\t\t// Double check webkit in userAgent just in case we are in a worker\n\t\t(typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\\/(\\d+)/));\n}\n\n/**\n * Colorize log arguments if enabled.\n *\n * @api public\n */\n\nfunction formatArgs(args) {\n\targs[0] = (this.useColors ? '%c' : '') +\n\t\tthis.namespace +\n\t\t(this.useColors ? ' %c' : ' ') +\n\t\targs[0] +\n\t\t(this.useColors ? '%c ' : ' ') +\n\t\t'+' + module.exports.humanize(this.diff);\n\n\tif (!this.useColors) {\n\t\treturn;\n\t}\n\n\tconst c = 'color: ' + this.color;\n\targs.splice(1, 0, c, 'color: inherit');\n\n\t// The final \"%c\" is somewhat tricky, because there could be other\n\t// arguments passed either before or after the %c, so we need to\n\t// figure out the correct index to insert the CSS into\n\tlet index = 0;\n\tlet lastC = 0;\n\targs[0].replace(/%[a-zA-Z%]/g, match => {\n\t\tif (match === '%%') {\n\t\t\treturn;\n\t\t}\n\t\tindex++;\n\t\tif (match === '%c') {\n\t\t\t// We only are interested in the *last* %c\n\t\t\t// (the user may have provided their own)\n\t\t\tlastC = index;\n\t\t}\n\t});\n\n\targs.splice(lastC, 0, c);\n}\n\n/**\n * Invokes `console.debug()` when available.\n * No-op when `console.debug` is not a \"function\".\n * If `console.debug` is not available, falls back\n * to `console.log`.\n *\n * @api public\n */\nexports.log = console.debug || console.log || (() => {});\n\n/**\n * Save `namespaces`.\n *\n * @param {String} namespaces\n * @api private\n */\nfunction save(namespaces) {\n\ttry {\n\t\tif (namespaces) {\n\t\t\texports.storage.setItem('debug', namespaces);\n\t\t} else {\n\t\t\texports.storage.removeItem('debug');\n\t\t}\n\t} catch (error) {\n\t\t// Swallow\n\t\t// XXX (@Qix-) should we be logging these?\n\t}\n}\n\n/**\n * Load `namespaces`.\n *\n * @return {String} returns the previously persisted debug modes\n * @api private\n */\nfunction load() {\n\tlet r;\n\ttry {\n\t\tr = exports.storage.getItem('debug');\n\t} catch (error) {\n\t\t// Swallow\n\t\t// XXX (@Qix-) should we be logging these?\n\t}\n\n\t// If debug isn't set in LS, and we're in Electron, try to load $DEBUG\n\tif (!r && typeof process !== 'undefined' && 'env' in process) {\n\t\tr = process.env.DEBUG;\n\t}\n\n\treturn r;\n}\n\n/**\n * Localstorage attempts to return the localstorage.\n *\n * This is necessary because safari throws\n * when a user disables cookies/localstorage\n * and you attempt to access it.\n *\n * @return {LocalStorage}\n * @api private\n */\n\nfunction localstorage() {\n\ttry {\n\t\t// TVMLKit (Apple TV JS Runtime) does not have a window object, just localStorage in the global context\n\t\t// The Browser also has localStorage in the global context.\n\t\treturn localStorage;\n\t} catch (error) {\n\t\t// Swallow\n\t\t// XXX (@Qix-) should we be logging these?\n\t}\n}\n\nmodule.exports = require('./common')(exports);\n\nconst {formatters} = module.exports;\n\n/**\n * Map %j to `JSON.stringify()`, since no Web Inspectors do that by default.\n */\n\nformatters.j = function (v) {\n\ttry {\n\t\treturn JSON.stringify(v);\n\t} catch (error) {\n\t\treturn '[UnexpectedJSONParseError]: ' + error.message;\n\t}\n};\n","\n/**\n * This is the common logic for both the Node.js and web browser\n * implementations of `debug()`.\n */\n\nfunction setup(env) {\n\tcreateDebug.debug = createDebug;\n\tcreateDebug.default = createDebug;\n\tcreateDebug.coerce = coerce;\n\tcreateDebug.disable = disable;\n\tcreateDebug.enable = enable;\n\tcreateDebug.enabled = enabled;\n\tcreateDebug.humanize = require('ms');\n\tcreateDebug.destroy = destroy;\n\n\tObject.keys(env).forEach(key => {\n\t\tcreateDebug[key] = env[key];\n\t});\n\n\t/**\n\t* The currently active debug mode names, and names to skip.\n\t*/\n\n\tcreateDebug.names = [];\n\tcreateDebug.skips = [];\n\n\t/**\n\t* Map of special \"%n\" handling functions, for the debug \"format\" argument.\n\t*\n\t* Valid key names are a single, lower or upper-case letter, i.e. \"n\" and \"N\".\n\t*/\n\tcreateDebug.formatters = {};\n\n\t/**\n\t* Selects a color for a debug namespace\n\t* @param {String} namespace The namespace string for the debug instance to be colored\n\t* @return {Number|String} An ANSI color code for the given namespace\n\t* @api private\n\t*/\n\tfunction selectColor(namespace) {\n\t\tlet hash = 0;\n\n\t\tfor (let i = 0; i < namespace.length; i++) {\n\t\t\thash = ((hash << 5) - hash) + namespace.charCodeAt(i);\n\t\t\thash |= 0; // Convert to 32bit integer\n\t\t}\n\n\t\treturn createDebug.colors[Math.abs(hash) % createDebug.colors.length];\n\t}\n\tcreateDebug.selectColor = selectColor;\n\n\t/**\n\t* Create a debugger with the given `namespace`.\n\t*\n\t* @param {String} namespace\n\t* @return {Function}\n\t* @api public\n\t*/\n\tfunction createDebug(namespace) {\n\t\tlet prevTime;\n\t\tlet enableOverride = null;\n\t\tlet namespacesCache;\n\t\tlet enabledCache;\n\n\t\tfunction debug(...args) {\n\t\t\t// Disabled?\n\t\t\tif (!debug.enabled) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tconst self = debug;\n\n\t\t\t// Set `diff` timestamp\n\t\t\tconst curr = Number(new Date());\n\t\t\tconst ms = curr - (prevTime || curr);\n\t\t\tself.diff = ms;\n\t\t\tself.prev = prevTime;\n\t\t\tself.curr = curr;\n\t\t\tprevTime = curr;\n\n\t\t\targs[0] = createDebug.coerce(args[0]);\n\n\t\t\tif (typeof args[0] !== 'string') {\n\t\t\t\t// Anything else let's inspect with %O\n\t\t\t\targs.unshift('%O');\n\t\t\t}\n\n\t\t\t// Apply any `formatters` transformations\n\t\t\tlet index = 0;\n\t\t\targs[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => {\n\t\t\t\t// If we encounter an escaped % then don't increase the array index\n\t\t\t\tif (match === '%%') {\n\t\t\t\t\treturn '%';\n\t\t\t\t}\n\t\t\t\tindex++;\n\t\t\t\tconst formatter = createDebug.formatters[format];\n\t\t\t\tif (typeof formatter === 'function') {\n\t\t\t\t\tconst val = args[index];\n\t\t\t\t\tmatch = formatter.call(self, val);\n\n\t\t\t\t\t// Now we need to remove `args[index]` since it's inlined in the `format`\n\t\t\t\t\targs.splice(index, 1);\n\t\t\t\t\tindex--;\n\t\t\t\t}\n\t\t\t\treturn match;\n\t\t\t});\n\n\t\t\t// Apply env-specific formatting (colors, etc.)\n\t\t\tcreateDebug.formatArgs.call(self, args);\n\n\t\t\tconst logFn = self.log || createDebug.log;\n\t\t\tlogFn.apply(self, args);\n\t\t}\n\n\t\tdebug.namespace = namespace;\n\t\tdebug.useColors = createDebug.useColors();\n\t\tdebug.color = createDebug.selectColor(namespace);\n\t\tdebug.extend = extend;\n\t\tdebug.destroy = createDebug.destroy; // XXX Temporary. Will be removed in the next major release.\n\n\t\tObject.defineProperty(debug, 'enabled', {\n\t\t\tenumerable: true,\n\t\t\tconfigurable: false,\n\t\t\tget: () => {\n\t\t\t\tif (enableOverride !== null) {\n\t\t\t\t\treturn enableOverride;\n\t\t\t\t}\n\t\t\t\tif (namespacesCache !== createDebug.namespaces) {\n\t\t\t\t\tnamespacesCache = createDebug.namespaces;\n\t\t\t\t\tenabledCache = createDebug.enabled(namespace);\n\t\t\t\t}\n\n\t\t\t\treturn enabledCache;\n\t\t\t},\n\t\t\tset: v => {\n\t\t\t\tenableOverride = v;\n\t\t\t}\n\t\t});\n\n\t\t// Env-specific initialization logic for debug instances\n\t\tif (typeof createDebug.init === 'function') {\n\t\t\tcreateDebug.init(debug);\n\t\t}\n\n\t\treturn debug;\n\t}\n\n\tfunction extend(namespace, delimiter) {\n\t\tconst newDebug = createDebug(this.namespace + (typeof delimiter === 'undefined' ? ':' : delimiter) + namespace);\n\t\tnewDebug.log = this.log;\n\t\treturn newDebug;\n\t}\n\n\t/**\n\t* Enables a debug mode by namespaces. This can include modes\n\t* separated by a colon and wildcards.\n\t*\n\t* @param {String} namespaces\n\t* @api public\n\t*/\n\tfunction enable(namespaces) {\n\t\tcreateDebug.save(namespaces);\n\t\tcreateDebug.namespaces = namespaces;\n\n\t\tcreateDebug.names = [];\n\t\tcreateDebug.skips = [];\n\n\t\tlet i;\n\t\tconst split = (typeof namespaces === 'string' ? namespaces : '').split(/[\\s,]+/);\n\t\tconst len = split.length;\n\n\t\tfor (i = 0; i < len; i++) {\n\t\t\tif (!split[i]) {\n\t\t\t\t// ignore empty strings\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tnamespaces = split[i].replace(/\\*/g, '.*?');\n\n\t\t\tif (namespaces[0] === '-') {\n\t\t\t\tcreateDebug.skips.push(new RegExp('^' + namespaces.slice(1) + '$'));\n\t\t\t} else {\n\t\t\t\tcreateDebug.names.push(new RegExp('^' + namespaces + '$'));\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t* Disable debug output.\n\t*\n\t* @return {String} namespaces\n\t* @api public\n\t*/\n\tfunction disable() {\n\t\tconst namespaces = [\n\t\t\t...createDebug.names.map(toNamespace),\n\t\t\t...createDebug.skips.map(toNamespace).map(namespace => '-' + namespace)\n\t\t].join(',');\n\t\tcreateDebug.enable('');\n\t\treturn namespaces;\n\t}\n\n\t/**\n\t* Returns true if the given mode name is enabled, false otherwise.\n\t*\n\t* @param {String} name\n\t* @return {Boolean}\n\t* @api public\n\t*/\n\tfunction enabled(name) {\n\t\tif (name[name.length - 1] === '*') {\n\t\t\treturn true;\n\t\t}\n\n\t\tlet i;\n\t\tlet len;\n\n\t\tfor (i = 0, len = createDebug.skips.length; i < len; i++) {\n\t\t\tif (createDebug.skips[i].test(name)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\tfor (i = 0, len = createDebug.names.length; i < len; i++) {\n\t\t\tif (createDebug.names[i].test(name)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}\n\n\t/**\n\t* Convert regexp to namespace\n\t*\n\t* @param {RegExp} regxep\n\t* @return {String} namespace\n\t* @api private\n\t*/\n\tfunction toNamespace(regexp) {\n\t\treturn regexp.toString()\n\t\t\t.substring(2, regexp.toString().length - 2)\n\t\t\t.replace(/\\.\\*\\?$/, '*');\n\t}\n\n\t/**\n\t* Coerce `val`.\n\t*\n\t* @param {Mixed} val\n\t* @return {Mixed}\n\t* @api private\n\t*/\n\tfunction coerce(val) {\n\t\tif (val instanceof Error) {\n\t\t\treturn val.stack || val.message;\n\t\t}\n\t\treturn val;\n\t}\n\n\t/**\n\t* XXX DO NOT USE. This is a temporary stub function.\n\t* XXX It WILL be removed in the next major release.\n\t*/\n\tfunction destroy() {\n\t\tconsole.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.');\n\t}\n\n\tcreateDebug.enable(createDebug.load());\n\n\treturn createDebug;\n}\n\nmodule.exports = setup;\n","/**\n * Detect Electron renderer / nwjs process, which is node, but we should\n * treat as a browser.\n */\n\nif (typeof process === 'undefined' || process.type === 'renderer' || process.browser === true || process.__nwjs) {\n\tmodule.exports = require('./browser.js');\n} else {\n\tmodule.exports = require('./node.js');\n}\n","/**\n * Module dependencies.\n */\n\nconst tty = require('tty');\nconst util = require('util');\n\n/**\n * This is the Node.js implementation of `debug()`.\n */\n\nexports.init = init;\nexports.log = log;\nexports.formatArgs = formatArgs;\nexports.save = save;\nexports.load = load;\nexports.useColors = useColors;\nexports.destroy = util.deprecate(\n\t() => {},\n\t'Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.'\n);\n\n/**\n * Colors.\n */\n\nexports.colors = [6, 2, 3, 4, 5, 1];\n\ntry {\n\t// Optional dependency (as in, doesn't need to be installed, NOT like optionalDependencies in package.json)\n\t// eslint-disable-next-line import/no-extraneous-dependencies\n\tconst supportsColor = require('supports-color');\n\n\tif (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {\n\t\texports.colors = [\n\t\t\t20,\n\t\t\t21,\n\t\t\t26,\n\t\t\t27,\n\t\t\t32,\n\t\t\t33,\n\t\t\t38,\n\t\t\t39,\n\t\t\t40,\n\t\t\t41,\n\t\t\t42,\n\t\t\t43,\n\t\t\t44,\n\t\t\t45,\n\t\t\t56,\n\t\t\t57,\n\t\t\t62,\n\t\t\t63,\n\t\t\t68,\n\t\t\t69,\n\t\t\t74,\n\t\t\t75,\n\t\t\t76,\n\t\t\t77,\n\t\t\t78,\n\t\t\t79,\n\t\t\t80,\n\t\t\t81,\n\t\t\t92,\n\t\t\t93,\n\t\t\t98,\n\t\t\t99,\n\t\t\t112,\n\t\t\t113,\n\t\t\t128,\n\t\t\t129,\n\t\t\t134,\n\t\t\t135,\n\t\t\t148,\n\t\t\t149,\n\t\t\t160,\n\t\t\t161,\n\t\t\t162,\n\t\t\t163,\n\t\t\t164,\n\t\t\t165,\n\t\t\t166,\n\t\t\t167,\n\t\t\t168,\n\t\t\t169,\n\t\t\t170,\n\t\t\t171,\n\t\t\t172,\n\t\t\t173,\n\t\t\t178,\n\t\t\t179,\n\t\t\t184,\n\t\t\t185,\n\t\t\t196,\n\t\t\t197,\n\t\t\t198,\n\t\t\t199,\n\t\t\t200,\n\t\t\t201,\n\t\t\t202,\n\t\t\t203,\n\t\t\t204,\n\t\t\t205,\n\t\t\t206,\n\t\t\t207,\n\t\t\t208,\n\t\t\t209,\n\t\t\t214,\n\t\t\t215,\n\t\t\t220,\n\t\t\t221\n\t\t];\n\t}\n} catch (error) {\n\t// Swallow - we only care if `supports-color` is available; it doesn't have to be.\n}\n\n/**\n * Build up the default `inspectOpts` object from the environment variables.\n *\n * $ DEBUG_COLORS=no DEBUG_DEPTH=10 DEBUG_SHOW_HIDDEN=enabled node script.js\n */\n\nexports.inspectOpts = Object.keys(process.env).filter(key => {\n\treturn /^debug_/i.test(key);\n}).reduce((obj, key) => {\n\t// Camel-case\n\tconst prop = key\n\t\t.substring(6)\n\t\t.toLowerCase()\n\t\t.replace(/_([a-z])/g, (_, k) => {\n\t\t\treturn k.toUpperCase();\n\t\t});\n\n\t// Coerce string value into JS value\n\tlet val = process.env[key];\n\tif (/^(yes|on|true|enabled)$/i.test(val)) {\n\t\tval = true;\n\t} else if (/^(no|off|false|disabled)$/i.test(val)) {\n\t\tval = false;\n\t} else if (val === 'null') {\n\t\tval = null;\n\t} else {\n\t\tval = Number(val);\n\t}\n\n\tobj[prop] = val;\n\treturn obj;\n}, {});\n\n/**\n * Is stdout a TTY? Colored output is enabled when `true`.\n */\n\nfunction useColors() {\n\treturn 'colors' in exports.inspectOpts ?\n\t\tBoolean(exports.inspectOpts.colors) :\n\t\ttty.isatty(process.stderr.fd);\n}\n\n/**\n * Adds ANSI color escape codes if enabled.\n *\n * @api public\n */\n\nfunction formatArgs(args) {\n\tconst {namespace: name, useColors} = this;\n\n\tif (useColors) {\n\t\tconst c = this.color;\n\t\tconst colorCode = '\\u001B[3' + (c < 8 ? c : '8;5;' + c);\n\t\tconst prefix = ` ${colorCode};1m${name} \\u001B[0m`;\n\n\t\targs[0] = prefix + args[0].split('\\n').join('\\n' + prefix);\n\t\targs.push(colorCode + 'm+' + module.exports.humanize(this.diff) + '\\u001B[0m');\n\t} else {\n\t\targs[0] = getDate() + name + ' ' + args[0];\n\t}\n}\n\nfunction getDate() {\n\tif (exports.inspectOpts.hideDate) {\n\t\treturn '';\n\t}\n\treturn new Date().toISOString() + ' ';\n}\n\n/**\n * Invokes `util.format()` with the specified arguments and writes to stderr.\n */\n\nfunction log(...args) {\n\treturn process.stderr.write(util.format(...args) + '\\n');\n}\n\n/**\n * Save `namespaces`.\n *\n * @param {String} namespaces\n * @api private\n */\nfunction save(namespaces) {\n\tif (namespaces) {\n\t\tprocess.env.DEBUG = namespaces;\n\t} else {\n\t\t// If you set a process.env field to null or undefined, it gets cast to the\n\t\t// string 'null' or 'undefined'. Just delete instead.\n\t\tdelete process.env.DEBUG;\n\t}\n}\n\n/**\n * Load `namespaces`.\n *\n * @return {String} returns the previously persisted debug modes\n * @api private\n */\n\nfunction load() {\n\treturn process.env.DEBUG;\n}\n\n/**\n * Init logic for `debug` instances.\n *\n * Create a new `inspectOpts` object in case `useColors` is set\n * differently for a particular `debug` instance.\n */\n\nfunction init(debug) {\n\tdebug.inspectOpts = {};\n\n\tconst keys = Object.keys(exports.inspectOpts);\n\tfor (let i = 0; i < keys.length; i++) {\n\t\tdebug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]];\n\t}\n}\n\nmodule.exports = require('./common')(exports);\n\nconst {formatters} = module.exports;\n\n/**\n * Map %o to `util.inspect()`, all on a single line.\n */\n\nformatters.o = function (v) {\n\tthis.inspectOpts.colors = this.useColors;\n\treturn util.inspect(v, this.inspectOpts)\n\t\t.split('\\n')\n\t\t.map(str => str.trim())\n\t\t.join(' ');\n};\n\n/**\n * Map %O to `util.inspect()`, allowing multiple lines if needed.\n */\n\nformatters.O = function (v) {\n\tthis.inspectOpts.colors = this.useColors;\n\treturn util.inspect(v, this.inspectOpts);\n};\n","var Stream = require('stream').Stream;\nvar util = require('util');\n\nmodule.exports = DelayedStream;\nfunction DelayedStream() {\n this.source = null;\n this.dataSize = 0;\n this.maxDataSize = 1024 * 1024;\n this.pauseStream = true;\n\n this._maxDataSizeExceeded = false;\n this._released = false;\n this._bufferedEvents = [];\n}\nutil.inherits(DelayedStream, Stream);\n\nDelayedStream.create = function(source, options) {\n var delayedStream = new this();\n\n options = options || {};\n for (var option in options) {\n delayedStream[option] = options[option];\n }\n\n delayedStream.source = source;\n\n var realEmit = source.emit;\n source.emit = function() {\n delayedStream._handleEmit(arguments);\n return realEmit.apply(source, arguments);\n };\n\n source.on('error', function() {});\n if (delayedStream.pauseStream) {\n source.pause();\n }\n\n return delayedStream;\n};\n\nObject.defineProperty(DelayedStream.prototype, 'readable', {\n configurable: true,\n enumerable: true,\n get: function() {\n return this.source.readable;\n }\n});\n\nDelayedStream.prototype.setEncoding = function() {\n return this.source.setEncoding.apply(this.source, arguments);\n};\n\nDelayedStream.prototype.resume = function() {\n if (!this._released) {\n this.release();\n }\n\n this.source.resume();\n};\n\nDelayedStream.prototype.pause = function() {\n this.source.pause();\n};\n\nDelayedStream.prototype.release = function() {\n this._released = true;\n\n this._bufferedEvents.forEach(function(args) {\n this.emit.apply(this, args);\n }.bind(this));\n this._bufferedEvents = [];\n};\n\nDelayedStream.prototype.pipe = function() {\n var r = Stream.prototype.pipe.apply(this, arguments);\n this.resume();\n return r;\n};\n\nDelayedStream.prototype._handleEmit = function(args) {\n if (this._released) {\n this.emit.apply(this, args);\n return;\n }\n\n if (args[0] === 'data') {\n this.dataSize += args[1].length;\n this._checkIfMaxDataSizeExceeded();\n }\n\n this._bufferedEvents.push(args);\n};\n\nDelayedStream.prototype._checkIfMaxDataSizeExceeded = function() {\n if (this._maxDataSizeExceeded) {\n return;\n }\n\n if (this.dataSize <= this.maxDataSize) {\n return;\n }\n\n this._maxDataSizeExceeded = true;\n var message =\n 'DelayedStream#maxDataSize of ' + this.maxDataSize + ' bytes exceeded.'\n this.emit('error', new Error(message));\n};\n","'use strict';\n\n/** @type {import('.')} */\nvar $defineProperty = Object.defineProperty || false;\nif ($defineProperty) {\n\ttry {\n\t\t$defineProperty({}, 'a', { value: 1 });\n\t} catch (e) {\n\t\t// IE 8 has a broken defineProperty\n\t\t$defineProperty = false;\n\t}\n}\n\nmodule.exports = $defineProperty;\n","'use strict';\n\n/** @type {import('./eval')} */\nmodule.exports = EvalError;\n","'use strict';\n\n/** @type {import('.')} */\nmodule.exports = Error;\n","'use strict';\n\n/** @type {import('./range')} */\nmodule.exports = RangeError;\n","'use strict';\n\n/** @type {import('./ref')} */\nmodule.exports = ReferenceError;\n","'use strict';\n\n/** @type {import('./syntax')} */\nmodule.exports = SyntaxError;\n","'use strict';\n\n/** @type {import('./type')} */\nmodule.exports = TypeError;\n","'use strict';\n\n/** @type {import('./uri')} */\nmodule.exports = URIError;\n","'use strict';\n\n/** @type {import('.')} */\nmodule.exports = Object;\n","'use strict';\n\nvar GetIntrinsic = require('get-intrinsic');\n\nvar $defineProperty = GetIntrinsic('%Object.defineProperty%', true);\n\nvar hasToStringTag = require('has-tostringtag/shams')();\nvar hasOwn = require('hasown');\nvar $TypeError = require('es-errors/type');\n\nvar toStringTag = hasToStringTag ? Symbol.toStringTag : null;\n\n/** @type {import('.')} */\nmodule.exports = function setToStringTag(object, value) {\n\tvar overrideIfSet = arguments.length > 2 && !!arguments[2] && arguments[2].force;\n\tvar nonConfigurable = arguments.length > 2 && !!arguments[2] && arguments[2].nonConfigurable;\n\tif (\n\t\t(typeof overrideIfSet !== 'undefined' && typeof overrideIfSet !== 'boolean')\n\t\t|| (typeof nonConfigurable !== 'undefined' && typeof nonConfigurable !== 'boolean')\n\t) {\n\t\tthrow new $TypeError('if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans');\n\t}\n\tif (toStringTag && (overrideIfSet || !hasOwn(object, toStringTag))) {\n\t\tif ($defineProperty) {\n\t\t\t$defineProperty(object, toStringTag, {\n\t\t\t\tconfigurable: !nonConfigurable,\n\t\t\t\tenumerable: false,\n\t\t\t\tvalue: value,\n\t\t\t\twritable: false\n\t\t\t});\n\t\t} else {\n\t\t\tobject[toStringTag] = value; // eslint-disable-line no-param-reassign\n\t\t}\n\t}\n};\n","'use strict';\n\n/** @type {import('./functionApply')} */\nmodule.exports = Function.prototype.apply;\n","'use strict';\n\n/** @type {import('./functionCall')} */\nmodule.exports = Function.prototype.call;\n","'use strict';\n\nvar undefined;\n\nvar $Object = require('es-object-atoms');\n\nvar $Error = require('es-errors');\nvar $EvalError = require('es-errors/eval');\nvar $RangeError = require('es-errors/range');\nvar $ReferenceError = require('es-errors/ref');\nvar $SyntaxError = require('es-errors/syntax');\nvar $TypeError = require('es-errors/type');\nvar $URIError = require('es-errors/uri');\n\nvar abs = require('math-intrinsics/abs');\nvar floor = require('math-intrinsics/floor');\nvar max = require('math-intrinsics/max');\nvar min = require('math-intrinsics/min');\nvar pow = require('math-intrinsics/pow');\nvar round = require('math-intrinsics/round');\nvar sign = require('math-intrinsics/sign');\n\nvar $Function = Function;\n\n// eslint-disable-next-line consistent-return\nvar getEvalledConstructor = function (expressionSyntax) {\n\ttry {\n\t\treturn $Function('\"use strict\"; return (' + expressionSyntax + ').constructor;')();\n\t} catch (e) {}\n};\n\nvar $gOPD = require('gopd');\nvar $defineProperty = require('es-define-property');\n\nvar throwTypeError = function () {\n\tthrow new $TypeError();\n};\nvar ThrowTypeError = $gOPD\n\t? (function () {\n\t\ttry {\n\t\t\t// eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties\n\t\t\targuments.callee; // IE 8 does not throw here\n\t\t\treturn throwTypeError;\n\t\t} catch (calleeThrows) {\n\t\t\ttry {\n\t\t\t\t// IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')\n\t\t\t\treturn $gOPD(arguments, 'callee').get;\n\t\t\t} catch (gOPDthrows) {\n\t\t\t\treturn throwTypeError;\n\t\t\t}\n\t\t}\n\t}())\n\t: throwTypeError;\n\nvar hasSymbols = require('has-symbols')();\n\nvar getProto = require('get-proto');\nvar $ObjectGPO = require('get-proto/Object.getPrototypeOf');\nvar $ReflectGPO = require('get-proto/Reflect.getPrototypeOf');\n\nvar $apply = require('call-bind-apply-helpers/functionApply');\nvar $call = require('call-bind-apply-helpers/functionCall');\n\nvar needsEval = {};\n\nvar TypedArray = typeof Uint8Array === 'undefined' || !getProto ? undefined : getProto(Uint8Array);\n\nvar INTRINSICS = {\n\t__proto__: null,\n\t'%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError,\n\t'%Array%': Array,\n\t'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer,\n\t'%ArrayIteratorPrototype%': hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined,\n\t'%AsyncFromSyncIteratorPrototype%': undefined,\n\t'%AsyncFunction%': needsEval,\n\t'%AsyncGenerator%': needsEval,\n\t'%AsyncGeneratorFunction%': needsEval,\n\t'%AsyncIteratorPrototype%': needsEval,\n\t'%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics,\n\t'%BigInt%': typeof BigInt === 'undefined' ? undefined : BigInt,\n\t'%BigInt64Array%': typeof BigInt64Array === 'undefined' ? undefined : BigInt64Array,\n\t'%BigUint64Array%': typeof BigUint64Array === 'undefined' ? undefined : BigUint64Array,\n\t'%Boolean%': Boolean,\n\t'%DataView%': typeof DataView === 'undefined' ? undefined : DataView,\n\t'%Date%': Date,\n\t'%decodeURI%': decodeURI,\n\t'%decodeURIComponent%': decodeURIComponent,\n\t'%encodeURI%': encodeURI,\n\t'%encodeURIComponent%': encodeURIComponent,\n\t'%Error%': $Error,\n\t'%eval%': eval, // eslint-disable-line no-eval\n\t'%EvalError%': $EvalError,\n\t'%Float16Array%': typeof Float16Array === 'undefined' ? undefined : Float16Array,\n\t'%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array,\n\t'%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,\n\t'%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry,\n\t'%Function%': $Function,\n\t'%GeneratorFunction%': needsEval,\n\t'%Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array,\n\t'%Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array,\n\t'%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array,\n\t'%isFinite%': isFinite,\n\t'%isNaN%': isNaN,\n\t'%IteratorPrototype%': hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined,\n\t'%JSON%': typeof JSON === 'object' ? JSON : undefined,\n\t'%Map%': typeof Map === 'undefined' ? undefined : Map,\n\t'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Map()[Symbol.iterator]()),\n\t'%Math%': Math,\n\t'%Number%': Number,\n\t'%Object%': $Object,\n\t'%Object.getOwnPropertyDescriptor%': $gOPD,\n\t'%parseFloat%': parseFloat,\n\t'%parseInt%': parseInt,\n\t'%Promise%': typeof Promise === 'undefined' ? undefined : Promise,\n\t'%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy,\n\t'%RangeError%': $RangeError,\n\t'%ReferenceError%': $ReferenceError,\n\t'%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect,\n\t'%RegExp%': RegExp,\n\t'%Set%': typeof Set === 'undefined' ? undefined : Set,\n\t'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Set()[Symbol.iterator]()),\n\t'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer,\n\t'%String%': String,\n\t'%StringIteratorPrototype%': hasSymbols && getProto ? getProto(''[Symbol.iterator]()) : undefined,\n\t'%Symbol%': hasSymbols ? Symbol : undefined,\n\t'%SyntaxError%': $SyntaxError,\n\t'%ThrowTypeError%': ThrowTypeError,\n\t'%TypedArray%': TypedArray,\n\t'%TypeError%': $TypeError,\n\t'%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array,\n\t'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray,\n\t'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array,\n\t'%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array,\n\t'%URIError%': $URIError,\n\t'%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap,\n\t'%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef,\n\t'%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet,\n\n\t'%Function.prototype.call%': $call,\n\t'%Function.prototype.apply%': $apply,\n\t'%Object.defineProperty%': $defineProperty,\n\t'%Object.getPrototypeOf%': $ObjectGPO,\n\t'%Math.abs%': abs,\n\t'%Math.floor%': floor,\n\t'%Math.max%': max,\n\t'%Math.min%': min,\n\t'%Math.pow%': pow,\n\t'%Math.round%': round,\n\t'%Math.sign%': sign,\n\t'%Reflect.getPrototypeOf%': $ReflectGPO\n};\n\nif (getProto) {\n\ttry {\n\t\tnull.error; // eslint-disable-line no-unused-expressions\n\t} catch (e) {\n\t\t// https://github.com/tc39/proposal-shadowrealm/pull/384#issuecomment-1364264229\n\t\tvar errorProto = getProto(getProto(e));\n\t\tINTRINSICS['%Error.prototype%'] = errorProto;\n\t}\n}\n\nvar doEval = function doEval(name) {\n\tvar value;\n\tif (name === '%AsyncFunction%') {\n\t\tvalue = getEvalledConstructor('async function () {}');\n\t} else if (name === '%GeneratorFunction%') {\n\t\tvalue = getEvalledConstructor('function* () {}');\n\t} else if (name === '%AsyncGeneratorFunction%') {\n\t\tvalue = getEvalledConstructor('async function* () {}');\n\t} else if (name === '%AsyncGenerator%') {\n\t\tvar fn = doEval('%AsyncGeneratorFunction%');\n\t\tif (fn) {\n\t\t\tvalue = fn.prototype;\n\t\t}\n\t} else if (name === '%AsyncIteratorPrototype%') {\n\t\tvar gen = doEval('%AsyncGenerator%');\n\t\tif (gen && getProto) {\n\t\t\tvalue = getProto(gen.prototype);\n\t\t}\n\t}\n\n\tINTRINSICS[name] = value;\n\n\treturn value;\n};\n\nvar LEGACY_ALIASES = {\n\t__proto__: null,\n\t'%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],\n\t'%ArrayPrototype%': ['Array', 'prototype'],\n\t'%ArrayProto_entries%': ['Array', 'prototype', 'entries'],\n\t'%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],\n\t'%ArrayProto_keys%': ['Array', 'prototype', 'keys'],\n\t'%ArrayProto_values%': ['Array', 'prototype', 'values'],\n\t'%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],\n\t'%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],\n\t'%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],\n\t'%BooleanPrototype%': ['Boolean', 'prototype'],\n\t'%DataViewPrototype%': ['DataView', 'prototype'],\n\t'%DatePrototype%': ['Date', 'prototype'],\n\t'%ErrorPrototype%': ['Error', 'prototype'],\n\t'%EvalErrorPrototype%': ['EvalError', 'prototype'],\n\t'%Float32ArrayPrototype%': ['Float32Array', 'prototype'],\n\t'%Float64ArrayPrototype%': ['Float64Array', 'prototype'],\n\t'%FunctionPrototype%': ['Function', 'prototype'],\n\t'%Generator%': ['GeneratorFunction', 'prototype'],\n\t'%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],\n\t'%Int8ArrayPrototype%': ['Int8Array', 'prototype'],\n\t'%Int16ArrayPrototype%': ['Int16Array', 'prototype'],\n\t'%Int32ArrayPrototype%': ['Int32Array', 'prototype'],\n\t'%JSONParse%': ['JSON', 'parse'],\n\t'%JSONStringify%': ['JSON', 'stringify'],\n\t'%MapPrototype%': ['Map', 'prototype'],\n\t'%NumberPrototype%': ['Number', 'prototype'],\n\t'%ObjectPrototype%': ['Object', 'prototype'],\n\t'%ObjProto_toString%': ['Object', 'prototype', 'toString'],\n\t'%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],\n\t'%PromisePrototype%': ['Promise', 'prototype'],\n\t'%PromiseProto_then%': ['Promise', 'prototype', 'then'],\n\t'%Promise_all%': ['Promise', 'all'],\n\t'%Promise_reject%': ['Promise', 'reject'],\n\t'%Promise_resolve%': ['Promise', 'resolve'],\n\t'%RangeErrorPrototype%': ['RangeError', 'prototype'],\n\t'%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],\n\t'%RegExpPrototype%': ['RegExp', 'prototype'],\n\t'%SetPrototype%': ['Set', 'prototype'],\n\t'%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],\n\t'%StringPrototype%': ['String', 'prototype'],\n\t'%SymbolPrototype%': ['Symbol', 'prototype'],\n\t'%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],\n\t'%TypedArrayPrototype%': ['TypedArray', 'prototype'],\n\t'%TypeErrorPrototype%': ['TypeError', 'prototype'],\n\t'%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],\n\t'%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],\n\t'%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],\n\t'%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],\n\t'%URIErrorPrototype%': ['URIError', 'prototype'],\n\t'%WeakMapPrototype%': ['WeakMap', 'prototype'],\n\t'%WeakSetPrototype%': ['WeakSet', 'prototype']\n};\n\nvar bind = require('function-bind');\nvar hasOwn = require('hasown');\nvar $concat = bind.call($call, Array.prototype.concat);\nvar $spliceApply = bind.call($apply, Array.prototype.splice);\nvar $replace = bind.call($call, String.prototype.replace);\nvar $strSlice = bind.call($call, String.prototype.slice);\nvar $exec = bind.call($call, RegExp.prototype.exec);\n\n/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */\nvar rePropName = /[^%.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|%$))/g;\nvar reEscapeChar = /\\\\(\\\\)?/g; /** Used to match backslashes in property paths. */\nvar stringToPath = function stringToPath(string) {\n\tvar first = $strSlice(string, 0, 1);\n\tvar last = $strSlice(string, -1);\n\tif (first === '%' && last !== '%') {\n\t\tthrow new $SyntaxError('invalid intrinsic syntax, expected closing `%`');\n\t} else if (last === '%' && first !== '%') {\n\t\tthrow new $SyntaxError('invalid intrinsic syntax, expected opening `%`');\n\t}\n\tvar result = [];\n\t$replace(string, rePropName, function (match, number, quote, subString) {\n\t\tresult[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;\n\t});\n\treturn result;\n};\n/* end adaptation */\n\nvar getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {\n\tvar intrinsicName = name;\n\tvar alias;\n\tif (hasOwn(LEGACY_ALIASES, intrinsicName)) {\n\t\talias = LEGACY_ALIASES[intrinsicName];\n\t\tintrinsicName = '%' + alias[0] + '%';\n\t}\n\n\tif (hasOwn(INTRINSICS, intrinsicName)) {\n\t\tvar value = INTRINSICS[intrinsicName];\n\t\tif (value === needsEval) {\n\t\t\tvalue = doEval(intrinsicName);\n\t\t}\n\t\tif (typeof value === 'undefined' && !allowMissing) {\n\t\t\tthrow new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');\n\t\t}\n\n\t\treturn {\n\t\t\talias: alias,\n\t\t\tname: intrinsicName,\n\t\t\tvalue: value\n\t\t};\n\t}\n\n\tthrow new $SyntaxError('intrinsic ' + name + ' does not exist!');\n};\n\nmodule.exports = function GetIntrinsic(name, allowMissing) {\n\tif (typeof name !== 'string' || name.length === 0) {\n\t\tthrow new $TypeError('intrinsic name must be a non-empty string');\n\t}\n\tif (arguments.length > 1 && typeof allowMissing !== 'boolean') {\n\t\tthrow new $TypeError('\"allowMissing\" argument must be a boolean');\n\t}\n\n\tif ($exec(/^%?[^%]*%?$/, name) === null) {\n\t\tthrow new $SyntaxError('`%` may not be present anywhere but at the beginning and end of the intrinsic name');\n\t}\n\tvar parts = stringToPath(name);\n\tvar intrinsicBaseName = parts.length > 0 ? parts[0] : '';\n\n\tvar intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);\n\tvar intrinsicRealName = intrinsic.name;\n\tvar value = intrinsic.value;\n\tvar skipFurtherCaching = false;\n\n\tvar alias = intrinsic.alias;\n\tif (alias) {\n\t\tintrinsicBaseName = alias[0];\n\t\t$spliceApply(parts, $concat([0, 1], alias));\n\t}\n\n\tfor (var i = 1, isOwn = true; i < parts.length; i += 1) {\n\t\tvar part = parts[i];\n\t\tvar first = $strSlice(part, 0, 1);\n\t\tvar last = $strSlice(part, -1);\n\t\tif (\n\t\t\t(\n\t\t\t\t(first === '\"' || first === \"'\" || first === '`')\n\t\t\t\t|| (last === '\"' || last === \"'\" || last === '`')\n\t\t\t)\n\t\t\t&& first !== last\n\t\t) {\n\t\t\tthrow new $SyntaxError('property names with quotes must have matching quotes');\n\t\t}\n\t\tif (part === 'constructor' || !isOwn) {\n\t\t\tskipFurtherCaching = true;\n\t\t}\n\n\t\tintrinsicBaseName += '.' + part;\n\t\tintrinsicRealName = '%' + intrinsicBaseName + '%';\n\n\t\tif (hasOwn(INTRINSICS, intrinsicRealName)) {\n\t\t\tvalue = INTRINSICS[intrinsicRealName];\n\t\t} else if (value != null) {\n\t\t\tif (!(part in value)) {\n\t\t\t\tif (!allowMissing) {\n\t\t\t\t\tthrow new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');\n\t\t\t\t}\n\t\t\t\treturn void undefined;\n\t\t\t}\n\t\t\tif ($gOPD && (i + 1) >= parts.length) {\n\t\t\t\tvar desc = $gOPD(value, part);\n\t\t\t\tisOwn = !!desc;\n\n\t\t\t\t// By convention, when a data property is converted to an accessor\n\t\t\t\t// property to emulate a data property that does not suffer from\n\t\t\t\t// the override mistake, that accessor's getter is marked with\n\t\t\t\t// an `originalValue` property. Here, when we detect this, we\n\t\t\t\t// uphold the illusion by pretending to see that original data\n\t\t\t\t// property, i.e., returning the value rather than the getter\n\t\t\t\t// itself.\n\t\t\t\tif (isOwn && 'get' in desc && !('originalValue' in desc.get)) {\n\t\t\t\t\tvalue = desc.get;\n\t\t\t\t} else {\n\t\t\t\t\tvalue = value[part];\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tisOwn = hasOwn(value, part);\n\t\t\t\tvalue = value[part];\n\t\t\t}\n\n\t\t\tif (isOwn && !skipFurtherCaching) {\n\t\t\t\tINTRINSICS[intrinsicRealName] = value;\n\t\t\t}\n\t\t}\n\t}\n\treturn value;\n};\n","var debug;\n\nmodule.exports = function () {\n if (!debug) {\n try {\n /* eslint global-require: off */\n debug = require(\"debug\")(\"follow-redirects\");\n }\n catch (error) { /* */ }\n if (typeof debug !== \"function\") {\n debug = function () { /* */ };\n }\n }\n debug.apply(null, arguments);\n};\n","var url = require(\"url\");\nvar URL = url.URL;\nvar http = require(\"http\");\nvar https = require(\"https\");\nvar Writable = require(\"stream\").Writable;\nvar assert = require(\"assert\");\nvar debug = require(\"./debug\");\n\n// Preventive platform detection\n// istanbul ignore next\n(function detectUnsupportedEnvironment() {\n var looksLikeNode = typeof process !== \"undefined\";\n var looksLikeBrowser = typeof window !== \"undefined\" && typeof document !== \"undefined\";\n var looksLikeV8 = isFunction(Error.captureStackTrace);\n if (!looksLikeNode && (looksLikeBrowser || !looksLikeV8)) {\n console.warn(\"The follow-redirects package should be excluded from browser builds.\");\n }\n}());\n\n// Whether to use the native URL object or the legacy url module\nvar useNativeURL = false;\ntry {\n assert(new URL(\"\"));\n}\ncatch (error) {\n useNativeURL = error.code === \"ERR_INVALID_URL\";\n}\n\n// URL fields to preserve in copy operations\nvar preservedUrlFields = [\n \"auth\",\n \"host\",\n \"hostname\",\n \"href\",\n \"path\",\n \"pathname\",\n \"port\",\n \"protocol\",\n \"query\",\n \"search\",\n \"hash\",\n];\n\n// Create handlers that pass events from native requests\nvar events = [\"abort\", \"aborted\", \"connect\", \"error\", \"socket\", \"timeout\"];\nvar eventHandlers = Object.create(null);\nevents.forEach(function (event) {\n eventHandlers[event] = function (arg1, arg2, arg3) {\n this._redirectable.emit(event, arg1, arg2, arg3);\n };\n});\n\n// Error types with codes\nvar InvalidUrlError = createErrorType(\n \"ERR_INVALID_URL\",\n \"Invalid URL\",\n TypeError\n);\nvar RedirectionError = createErrorType(\n \"ERR_FR_REDIRECTION_FAILURE\",\n \"Redirected request failed\"\n);\nvar TooManyRedirectsError = createErrorType(\n \"ERR_FR_TOO_MANY_REDIRECTS\",\n \"Maximum number of redirects exceeded\",\n RedirectionError\n);\nvar MaxBodyLengthExceededError = createErrorType(\n \"ERR_FR_MAX_BODY_LENGTH_EXCEEDED\",\n \"Request body larger than maxBodyLength limit\"\n);\nvar WriteAfterEndError = createErrorType(\n \"ERR_STREAM_WRITE_AFTER_END\",\n \"write after end\"\n);\n\n// istanbul ignore next\nvar destroy = Writable.prototype.destroy || noop;\n\n// An HTTP(S) request that can be redirected\nfunction RedirectableRequest(options, responseCallback) {\n // Initialize the request\n Writable.call(this);\n this._sanitizeOptions(options);\n this._options = options;\n this._ended = false;\n this._ending = false;\n this._redirectCount = 0;\n this._redirects = [];\n this._requestBodyLength = 0;\n this._requestBodyBuffers = [];\n\n // Attach a callback if passed\n if (responseCallback) {\n this.on(\"response\", responseCallback);\n }\n\n // React to responses of native requests\n var self = this;\n this._onNativeResponse = function (response) {\n try {\n self._processResponse(response);\n }\n catch (cause) {\n self.emit(\"error\", cause instanceof RedirectionError ?\n cause : new RedirectionError({ cause: cause }));\n }\n };\n\n // Perform the first request\n this._performRequest();\n}\nRedirectableRequest.prototype = Object.create(Writable.prototype);\n\nRedirectableRequest.prototype.abort = function () {\n destroyRequest(this._currentRequest);\n this._currentRequest.abort();\n this.emit(\"abort\");\n};\n\nRedirectableRequest.prototype.destroy = function (error) {\n destroyRequest(this._currentRequest, error);\n destroy.call(this, error);\n return this;\n};\n\n// Writes buffered data to the current native request\nRedirectableRequest.prototype.write = function (data, encoding, callback) {\n // Writing is not allowed if end has been called\n if (this._ending) {\n throw new WriteAfterEndError();\n }\n\n // Validate input and shift parameters if necessary\n if (!isString(data) && !isBuffer(data)) {\n throw new TypeError(\"data should be a string, Buffer or Uint8Array\");\n }\n if (isFunction(encoding)) {\n callback = encoding;\n encoding = null;\n }\n\n // Ignore empty buffers, since writing them doesn't invoke the callback\n // https://github.com/nodejs/node/issues/22066\n if (data.length === 0) {\n if (callback) {\n callback();\n }\n return;\n }\n // Only write when we don't exceed the maximum body length\n if (this._requestBodyLength + data.length <= this._options.maxBodyLength) {\n this._requestBodyLength += data.length;\n this._requestBodyBuffers.push({ data: data, encoding: encoding });\n this._currentRequest.write(data, encoding, callback);\n }\n // Error when we exceed the maximum body length\n else {\n this.emit(\"error\", new MaxBodyLengthExceededError());\n this.abort();\n }\n};\n\n// Ends the current native request\nRedirectableRequest.prototype.end = function (data, encoding, callback) {\n // Shift parameters if necessary\n if (isFunction(data)) {\n callback = data;\n data = encoding = null;\n }\n else if (isFunction(encoding)) {\n callback = encoding;\n encoding = null;\n }\n\n // Write data if needed and end\n if (!data) {\n this._ended = this._ending = true;\n this._currentRequest.end(null, null, callback);\n }\n else {\n var self = this;\n var currentRequest = this._currentRequest;\n this.write(data, encoding, function () {\n self._ended = true;\n currentRequest.end(null, null, callback);\n });\n this._ending = true;\n }\n};\n\n// Sets a header value on the current native request\nRedirectableRequest.prototype.setHeader = function (name, value) {\n this._options.headers[name] = value;\n this._currentRequest.setHeader(name, value);\n};\n\n// Clears a header value on the current native request\nRedirectableRequest.prototype.removeHeader = function (name) {\n delete this._options.headers[name];\n this._currentRequest.removeHeader(name);\n};\n\n// Global timeout for all underlying requests\nRedirectableRequest.prototype.setTimeout = function (msecs, callback) {\n var self = this;\n\n // Destroys the socket on timeout\n function destroyOnTimeout(socket) {\n socket.setTimeout(msecs);\n socket.removeListener(\"timeout\", socket.destroy);\n socket.addListener(\"timeout\", socket.destroy);\n }\n\n // Sets up a timer to trigger a timeout event\n function startTimer(socket) {\n if (self._timeout) {\n clearTimeout(self._timeout);\n }\n self._timeout = setTimeout(function () {\n self.emit(\"timeout\");\n clearTimer();\n }, msecs);\n destroyOnTimeout(socket);\n }\n\n // Stops a timeout from triggering\n function clearTimer() {\n // Clear the timeout\n if (self._timeout) {\n clearTimeout(self._timeout);\n self._timeout = null;\n }\n\n // Clean up all attached listeners\n self.removeListener(\"abort\", clearTimer);\n self.removeListener(\"error\", clearTimer);\n self.removeListener(\"response\", clearTimer);\n self.removeListener(\"close\", clearTimer);\n if (callback) {\n self.removeListener(\"timeout\", callback);\n }\n if (!self.socket) {\n self._currentRequest.removeListener(\"socket\", startTimer);\n }\n }\n\n // Attach callback if passed\n if (callback) {\n this.on(\"timeout\", callback);\n }\n\n // Start the timer if or when the socket is opened\n if (this.socket) {\n startTimer(this.socket);\n }\n else {\n this._currentRequest.once(\"socket\", startTimer);\n }\n\n // Clean up on events\n this.on(\"socket\", destroyOnTimeout);\n this.on(\"abort\", clearTimer);\n this.on(\"error\", clearTimer);\n this.on(\"response\", clearTimer);\n this.on(\"close\", clearTimer);\n\n return this;\n};\n\n// Proxy all other public ClientRequest methods\n[\n \"flushHeaders\", \"getHeader\",\n \"setNoDelay\", \"setSocketKeepAlive\",\n].forEach(function (method) {\n RedirectableRequest.prototype[method] = function (a, b) {\n return this._currentRequest[method](a, b);\n };\n});\n\n// Proxy all public ClientRequest properties\n[\"aborted\", \"connection\", \"socket\"].forEach(function (property) {\n Object.defineProperty(RedirectableRequest.prototype, property, {\n get: function () { return this._currentRequest[property]; },\n });\n});\n\nRedirectableRequest.prototype._sanitizeOptions = function (options) {\n // Ensure headers are always present\n if (!options.headers) {\n options.headers = {};\n }\n\n // Since http.request treats host as an alias of hostname,\n // but the url module interprets host as hostname plus port,\n // eliminate the host property to avoid confusion.\n if (options.host) {\n // Use hostname if set, because it has precedence\n if (!options.hostname) {\n options.hostname = options.host;\n }\n delete options.host;\n }\n\n // Complete the URL object when necessary\n if (!options.pathname && options.path) {\n var searchPos = options.path.indexOf(\"?\");\n if (searchPos < 0) {\n options.pathname = options.path;\n }\n else {\n options.pathname = options.path.substring(0, searchPos);\n options.search = options.path.substring(searchPos);\n }\n }\n};\n\n\n// Executes the next native request (initial or redirect)\nRedirectableRequest.prototype._performRequest = function () {\n // Load the native protocol\n var protocol = this._options.protocol;\n var nativeProtocol = this._options.nativeProtocols[protocol];\n if (!nativeProtocol) {\n throw new TypeError(\"Unsupported protocol \" + protocol);\n }\n\n // If specified, use the agent corresponding to the protocol\n // (HTTP and HTTPS use different types of agents)\n if (this._options.agents) {\n var scheme = protocol.slice(0, -1);\n this._options.agent = this._options.agents[scheme];\n }\n\n // Create the native request and set up its event handlers\n var request = this._currentRequest =\n nativeProtocol.request(this._options, this._onNativeResponse);\n request._redirectable = this;\n for (var event of events) {\n request.on(event, eventHandlers[event]);\n }\n\n // RFC7230§5.3.1: When making a request directly to an origin server, […]\n // a client MUST send only the absolute path […] as the request-target.\n this._currentUrl = /^\\//.test(this._options.path) ?\n url.format(this._options) :\n // When making a request to a proxy, […]\n // a client MUST send the target URI in absolute-form […].\n this._options.path;\n\n // End a redirected request\n // (The first request must be ended explicitly with RedirectableRequest#end)\n if (this._isRedirect) {\n // Write the request entity and end\n var i = 0;\n var self = this;\n var buffers = this._requestBodyBuffers;\n (function writeNext(error) {\n // Only write if this request has not been redirected yet\n // istanbul ignore else\n if (request === self._currentRequest) {\n // Report any write errors\n // istanbul ignore if\n if (error) {\n self.emit(\"error\", error);\n }\n // Write the next buffer if there are still left\n else if (i < buffers.length) {\n var buffer = buffers[i++];\n // istanbul ignore else\n if (!request.finished) {\n request.write(buffer.data, buffer.encoding, writeNext);\n }\n }\n // End the request if `end` has been called on us\n else if (self._ended) {\n request.end();\n }\n }\n }());\n }\n};\n\n// Processes a response from the current native request\nRedirectableRequest.prototype._processResponse = function (response) {\n // Store the redirected response\n var statusCode = response.statusCode;\n if (this._options.trackRedirects) {\n this._redirects.push({\n url: this._currentUrl,\n headers: response.headers,\n statusCode: statusCode,\n });\n }\n\n // RFC7231§6.4: The 3xx (Redirection) class of status code indicates\n // that further action needs to be taken by the user agent in order to\n // fulfill the request. If a Location header field is provided,\n // the user agent MAY automatically redirect its request to the URI\n // referenced by the Location field value,\n // even if the specific status code is not understood.\n\n // If the response is not a redirect; return it as-is\n var location = response.headers.location;\n if (!location || this._options.followRedirects === false ||\n statusCode < 300 || statusCode >= 400) {\n response.responseUrl = this._currentUrl;\n response.redirects = this._redirects;\n this.emit(\"response\", response);\n\n // Clean up\n this._requestBodyBuffers = [];\n return;\n }\n\n // The response is a redirect, so abort the current request\n destroyRequest(this._currentRequest);\n // Discard the remainder of the response to avoid waiting for data\n response.destroy();\n\n // RFC7231§6.4: A client SHOULD detect and intervene\n // in cyclical redirections (i.e., \"infinite\" redirection loops).\n if (++this._redirectCount > this._options.maxRedirects) {\n throw new TooManyRedirectsError();\n }\n\n // Store the request headers if applicable\n var requestHeaders;\n var beforeRedirect = this._options.beforeRedirect;\n if (beforeRedirect) {\n requestHeaders = Object.assign({\n // The Host header was set by nativeProtocol.request\n Host: response.req.getHeader(\"host\"),\n }, this._options.headers);\n }\n\n // RFC7231§6.4: Automatic redirection needs to done with\n // care for methods not known to be safe, […]\n // RFC7231§6.4.2–3: For historical reasons, a user agent MAY change\n // the request method from POST to GET for the subsequent request.\n var method = this._options.method;\n if ((statusCode === 301 || statusCode === 302) && this._options.method === \"POST\" ||\n // RFC7231§6.4.4: The 303 (See Other) status code indicates that\n // the server is redirecting the user agent to a different resource […]\n // A user agent can perform a retrieval request targeting that URI\n // (a GET or HEAD request if using HTTP) […]\n (statusCode === 303) && !/^(?:GET|HEAD)$/.test(this._options.method)) {\n this._options.method = \"GET\";\n // Drop a possible entity and headers related to it\n this._requestBodyBuffers = [];\n removeMatchingHeaders(/^content-/i, this._options.headers);\n }\n\n // Drop the Host header, as the redirect might lead to a different host\n var currentHostHeader = removeMatchingHeaders(/^host$/i, this._options.headers);\n\n // If the redirect is relative, carry over the host of the last request\n var currentUrlParts = parseUrl(this._currentUrl);\n var currentHost = currentHostHeader || currentUrlParts.host;\n var currentUrl = /^\\w+:/.test(location) ? this._currentUrl :\n url.format(Object.assign(currentUrlParts, { host: currentHost }));\n\n // Create the redirected request\n var redirectUrl = resolveUrl(location, currentUrl);\n debug(\"redirecting to\", redirectUrl.href);\n this._isRedirect = true;\n spreadUrlObject(redirectUrl, this._options);\n\n // Drop confidential headers when redirecting to a less secure protocol\n // or to a different domain that is not a superdomain\n if (redirectUrl.protocol !== currentUrlParts.protocol &&\n redirectUrl.protocol !== \"https:\" ||\n redirectUrl.host !== currentHost &&\n !isSubdomain(redirectUrl.host, currentHost)) {\n removeMatchingHeaders(/^(?:(?:proxy-)?authorization|cookie)$/i, this._options.headers);\n }\n\n // Evaluate the beforeRedirect callback\n if (isFunction(beforeRedirect)) {\n var responseDetails = {\n headers: response.headers,\n statusCode: statusCode,\n };\n var requestDetails = {\n url: currentUrl,\n method: method,\n headers: requestHeaders,\n };\n beforeRedirect(this._options, responseDetails, requestDetails);\n this._sanitizeOptions(this._options);\n }\n\n // Perform the redirected request\n this._performRequest();\n};\n\n// Wraps the key/value object of protocols with redirect functionality\nfunction wrap(protocols) {\n // Default settings\n var exports = {\n maxRedirects: 21,\n maxBodyLength: 10 * 1024 * 1024,\n };\n\n // Wrap each protocol\n var nativeProtocols = {};\n Object.keys(protocols).forEach(function (scheme) {\n var protocol = scheme + \":\";\n var nativeProtocol = nativeProtocols[protocol] = protocols[scheme];\n var wrappedProtocol = exports[scheme] = Object.create(nativeProtocol);\n\n // Executes a request, following redirects\n function request(input, options, callback) {\n // Parse parameters, ensuring that input is an object\n if (isURL(input)) {\n input = spreadUrlObject(input);\n }\n else if (isString(input)) {\n input = spreadUrlObject(parseUrl(input));\n }\n else {\n callback = options;\n options = validateUrl(input);\n input = { protocol: protocol };\n }\n if (isFunction(options)) {\n callback = options;\n options = null;\n }\n\n // Set defaults\n options = Object.assign({\n maxRedirects: exports.maxRedirects,\n maxBodyLength: exports.maxBodyLength,\n }, input, options);\n options.nativeProtocols = nativeProtocols;\n if (!isString(options.host) && !isString(options.hostname)) {\n options.hostname = \"::1\";\n }\n\n assert.equal(options.protocol, protocol, \"protocol mismatch\");\n debug(\"options\", options);\n return new RedirectableRequest(options, callback);\n }\n\n // Executes a GET request, following redirects\n function get(input, options, callback) {\n var wrappedRequest = wrappedProtocol.request(input, options, callback);\n wrappedRequest.end();\n return wrappedRequest;\n }\n\n // Expose the properties on the wrapped protocol\n Object.defineProperties(wrappedProtocol, {\n request: { value: request, configurable: true, enumerable: true, writable: true },\n get: { value: get, configurable: true, enumerable: true, writable: true },\n });\n });\n return exports;\n}\n\nfunction noop() { /* empty */ }\n\nfunction parseUrl(input) {\n var parsed;\n // istanbul ignore else\n if (useNativeURL) {\n parsed = new URL(input);\n }\n else {\n // Ensure the URL is valid and absolute\n parsed = validateUrl(url.parse(input));\n if (!isString(parsed.protocol)) {\n throw new InvalidUrlError({ input });\n }\n }\n return parsed;\n}\n\nfunction resolveUrl(relative, base) {\n // istanbul ignore next\n return useNativeURL ? new URL(relative, base) : parseUrl(url.resolve(base, relative));\n}\n\nfunction validateUrl(input) {\n if (/^\\[/.test(input.hostname) && !/^\\[[:0-9a-f]+\\]$/i.test(input.hostname)) {\n throw new InvalidUrlError({ input: input.href || input });\n }\n if (/^\\[/.test(input.host) && !/^\\[[:0-9a-f]+\\](:\\d+)?$/i.test(input.host)) {\n throw new InvalidUrlError({ input: input.href || input });\n }\n return input;\n}\n\nfunction spreadUrlObject(urlObject, target) {\n var spread = target || {};\n for (var key of preservedUrlFields) {\n spread[key] = urlObject[key];\n }\n\n // Fix IPv6 hostname\n if (spread.hostname.startsWith(\"[\")) {\n spread.hostname = spread.hostname.slice(1, -1);\n }\n // Ensure port is a number\n if (spread.port !== \"\") {\n spread.port = Number(spread.port);\n }\n // Concatenate path\n spread.path = spread.search ? spread.pathname + spread.search : spread.pathname;\n\n return spread;\n}\n\nfunction removeMatchingHeaders(regex, headers) {\n var lastValue;\n for (var header in headers) {\n if (regex.test(header)) {\n lastValue = headers[header];\n delete headers[header];\n }\n }\n return (lastValue === null || typeof lastValue === \"undefined\") ?\n undefined : String(lastValue).trim();\n}\n\nfunction createErrorType(code, message, baseClass) {\n // Create constructor\n function CustomError(properties) {\n // istanbul ignore else\n if (isFunction(Error.captureStackTrace)) {\n Error.captureStackTrace(this, this.constructor);\n }\n Object.assign(this, properties || {});\n this.code = code;\n this.message = this.cause ? message + \": \" + this.cause.message : message;\n }\n\n // Attach constructor and set default properties\n CustomError.prototype = new (baseClass || Error)();\n Object.defineProperties(CustomError.prototype, {\n constructor: {\n value: CustomError,\n enumerable: false,\n },\n name: {\n value: \"Error [\" + code + \"]\",\n enumerable: false,\n },\n });\n return CustomError;\n}\n\nfunction destroyRequest(request, error) {\n for (var event of events) {\n request.removeListener(event, eventHandlers[event]);\n }\n request.on(\"error\", noop);\n request.destroy(error);\n}\n\nfunction isSubdomain(subdomain, domain) {\n assert(isString(subdomain) && isString(domain));\n var dot = subdomain.length - domain.length - 1;\n return dot > 0 && subdomain[dot] === \".\" && subdomain.endsWith(domain);\n}\n\nfunction isString(value) {\n return typeof value === \"string\" || value instanceof String;\n}\n\nfunction isFunction(value) {\n return typeof value === \"function\";\n}\n\nfunction isBuffer(value) {\n return typeof value === \"object\" && (\"length\" in value);\n}\n\nfunction isURL(value) {\n return URL && value instanceof URL;\n}\n\n// Exports\nmodule.exports = wrap({ http: http, https: https });\nmodule.exports.wrap = wrap;\n","var CombinedStream = require('combined-stream');\nvar util = require('util');\nvar path = require('path');\nvar http = require('http');\nvar https = require('https');\nvar parseUrl = require('url').parse;\nvar fs = require('fs');\nvar Stream = require('stream').Stream;\nvar mime = require('mime-types');\nvar asynckit = require('asynckit');\nvar setToStringTag = require('es-set-tostringtag');\nvar populate = require('./populate.js');\n\n// Public API\nmodule.exports = FormData;\n\n// make it a Stream\nutil.inherits(FormData, CombinedStream);\n\n/**\n * Create readable \"multipart/form-data\" streams.\n * Can be used to submit forms\n * and file uploads to other web applications.\n *\n * @constructor\n * @param {Object} options - Properties to be added/overriden for FormData and CombinedStream\n */\nfunction FormData(options) {\n if (!(this instanceof FormData)) {\n return new FormData(options);\n }\n\n this._overheadLength = 0;\n this._valueLength = 0;\n this._valuesToMeasure = [];\n\n CombinedStream.call(this);\n\n options = options || {};\n for (var option in options) {\n this[option] = options[option];\n }\n}\n\nFormData.LINE_BREAK = '\\r\\n';\nFormData.DEFAULT_CONTENT_TYPE = 'application/octet-stream';\n\nFormData.prototype.append = function(field, value, options) {\n\n options = options || {};\n\n // allow filename as single option\n if (typeof options == 'string') {\n options = {filename: options};\n }\n\n var append = CombinedStream.prototype.append.bind(this);\n\n // all that streamy business can't handle numbers\n if (typeof value == 'number') {\n value = '' + value;\n }\n\n // https://github.com/felixge/node-form-data/issues/38\n if (Array.isArray(value)) {\n // Please convert your array into string\n // the way web server expects it\n this._error(new Error('Arrays are not supported.'));\n return;\n }\n\n var header = this._multiPartHeader(field, value, options);\n var footer = this._multiPartFooter();\n\n append(header);\n append(value);\n append(footer);\n\n // pass along options.knownLength\n this._trackLength(header, value, options);\n};\n\nFormData.prototype._trackLength = function(header, value, options) {\n var valueLength = 0;\n\n // used w/ getLengthSync(), when length is known.\n // e.g. for streaming directly from a remote server,\n // w/ a known file a size, and not wanting to wait for\n // incoming file to finish to get its size.\n if (options.knownLength != null) {\n valueLength += +options.knownLength;\n } else if (Buffer.isBuffer(value)) {\n valueLength = value.length;\n } else if (typeof value === 'string') {\n valueLength = Buffer.byteLength(value);\n }\n\n this._valueLength += valueLength;\n\n // @check why add CRLF? does this account for custom/multiple CRLFs?\n this._overheadLength +=\n Buffer.byteLength(header) +\n FormData.LINE_BREAK.length;\n\n // empty or either doesn't have path or not an http response or not a stream\n if (!value || ( !value.path && !(value.readable && Object.prototype.hasOwnProperty.call(value, 'httpVersion')) && !(value instanceof Stream))) {\n return;\n }\n\n // no need to bother with the length\n if (!options.knownLength) {\n this._valuesToMeasure.push(value);\n }\n};\n\nFormData.prototype._lengthRetriever = function(value, callback) {\n if (Object.prototype.hasOwnProperty.call(value, 'fd')) {\n\n // take read range into a account\n // `end` = Infinity –> read file till the end\n //\n // TODO: Looks like there is bug in Node fs.createReadStream\n // it doesn't respect `end` options without `start` options\n // Fix it when node fixes it.\n // https://github.com/joyent/node/issues/7819\n if (value.end != undefined && value.end != Infinity && value.start != undefined) {\n\n // when end specified\n // no need to calculate range\n // inclusive, starts with 0\n callback(null, value.end + 1 - (value.start ? value.start : 0));\n\n // not that fast snoopy\n } else {\n // still need to fetch file size from fs\n fs.stat(value.path, function(err, stat) {\n\n var fileSize;\n\n if (err) {\n callback(err);\n return;\n }\n\n // update final size based on the range options\n fileSize = stat.size - (value.start ? value.start : 0);\n callback(null, fileSize);\n });\n }\n\n // or http response\n } else if (Object.prototype.hasOwnProperty.call(value, 'httpVersion')) {\n callback(null, +value.headers['content-length']);\n\n // or request stream http://github.com/mikeal/request\n } else if (Object.prototype.hasOwnProperty.call(value, 'httpModule')) {\n // wait till response come back\n value.on('response', function(response) {\n value.pause();\n callback(null, +response.headers['content-length']);\n });\n value.resume();\n\n // something else\n } else {\n callback('Unknown stream');\n }\n};\n\nFormData.prototype._multiPartHeader = function(field, value, options) {\n // custom header specified (as string)?\n // it becomes responsible for boundary\n // (e.g. to handle extra CRLFs on .NET servers)\n if (typeof options.header == 'string') {\n return options.header;\n }\n\n var contentDisposition = this._getContentDisposition(value, options);\n var contentType = this._getContentType(value, options);\n\n var contents = '';\n var headers = {\n // add custom disposition as third element or keep it two elements if not\n 'Content-Disposition': ['form-data', 'name=\"' + field + '\"'].concat(contentDisposition || []),\n // if no content type. allow it to be empty array\n 'Content-Type': [].concat(contentType || [])\n };\n\n // allow custom headers.\n if (typeof options.header == 'object') {\n populate(headers, options.header);\n }\n\n var header;\n for (var prop in headers) {\n if (Object.prototype.hasOwnProperty.call(headers, prop)) {\n header = headers[prop];\n\n // skip nullish headers.\n if (header == null) {\n continue;\n }\n\n // convert all headers to arrays.\n if (!Array.isArray(header)) {\n header = [header];\n }\n\n // add non-empty headers.\n if (header.length) {\n contents += prop + ': ' + header.join('; ') + FormData.LINE_BREAK;\n }\n }\n }\n\n return '--' + this.getBoundary() + FormData.LINE_BREAK + contents + FormData.LINE_BREAK;\n};\n\nFormData.prototype._getContentDisposition = function(value, options) {\n\n var filename\n , contentDisposition\n ;\n\n if (typeof options.filepath === 'string') {\n // custom filepath for relative paths\n filename = path.normalize(options.filepath).replace(/\\\\/g, '/');\n } else if (options.filename || value.name || value.path) {\n // custom filename take precedence\n // formidable and the browser add a name property\n // fs- and request- streams have path property\n filename = path.basename(options.filename || value.name || value.path);\n } else if (value.readable && Object.prototype.hasOwnProperty.call(value, 'httpVersion')) {\n // or try http response\n filename = path.basename(value.client._httpMessage.path || '');\n }\n\n if (filename) {\n contentDisposition = 'filename=\"' + filename + '\"';\n }\n\n return contentDisposition;\n};\n\nFormData.prototype._getContentType = function(value, options) {\n\n // use custom content-type above all\n var contentType = options.contentType;\n\n // or try `name` from formidable, browser\n if (!contentType && value.name) {\n contentType = mime.lookup(value.name);\n }\n\n // or try `path` from fs-, request- streams\n if (!contentType && value.path) {\n contentType = mime.lookup(value.path);\n }\n\n // or if it's http-reponse\n if (!contentType && value.readable && Object.prototype.hasOwnProperty.call(value, 'httpVersion')) {\n contentType = value.headers['content-type'];\n }\n\n // or guess it from the filepath or filename\n if (!contentType && (options.filepath || options.filename)) {\n contentType = mime.lookup(options.filepath || options.filename);\n }\n\n // fallback to the default content type if `value` is not simple value\n if (!contentType && typeof value == 'object') {\n contentType = FormData.DEFAULT_CONTENT_TYPE;\n }\n\n return contentType;\n};\n\nFormData.prototype._multiPartFooter = function() {\n return function(next) {\n var footer = FormData.LINE_BREAK;\n\n var lastPart = (this._streams.length === 0);\n if (lastPart) {\n footer += this._lastBoundary();\n }\n\n next(footer);\n }.bind(this);\n};\n\nFormData.prototype._lastBoundary = function() {\n return '--' + this.getBoundary() + '--' + FormData.LINE_BREAK;\n};\n\nFormData.prototype.getHeaders = function(userHeaders) {\n var header;\n var formHeaders = {\n 'content-type': 'multipart/form-data; boundary=' + this.getBoundary()\n };\n\n for (header in userHeaders) {\n if (Object.prototype.hasOwnProperty.call(userHeaders, header)) {\n formHeaders[header.toLowerCase()] = userHeaders[header];\n }\n }\n\n return formHeaders;\n};\n\nFormData.prototype.setBoundary = function(boundary) {\n this._boundary = boundary;\n};\n\nFormData.prototype.getBoundary = function() {\n if (!this._boundary) {\n this._generateBoundary();\n }\n\n return this._boundary;\n};\n\nFormData.prototype.getBuffer = function() {\n var dataBuffer = new Buffer.alloc(0);\n var boundary = this.getBoundary();\n\n // Create the form content. Add Line breaks to the end of data.\n for (var i = 0, len = this._streams.length; i < len; i++) {\n if (typeof this._streams[i] !== 'function') {\n\n // Add content to the buffer.\n if(Buffer.isBuffer(this._streams[i])) {\n dataBuffer = Buffer.concat( [dataBuffer, this._streams[i]]);\n }else {\n dataBuffer = Buffer.concat( [dataBuffer, Buffer.from(this._streams[i])]);\n }\n\n // Add break after content.\n if (typeof this._streams[i] !== 'string' || this._streams[i].substring( 2, boundary.length + 2 ) !== boundary) {\n dataBuffer = Buffer.concat( [dataBuffer, Buffer.from(FormData.LINE_BREAK)] );\n }\n }\n }\n\n // Add the footer and return the Buffer object.\n return Buffer.concat( [dataBuffer, Buffer.from(this._lastBoundary())] );\n};\n\nFormData.prototype._generateBoundary = function() {\n // This generates a 50 character boundary similar to those used by Firefox.\n // They are optimized for boyer-moore parsing.\n var boundary = '--------------------------';\n for (var i = 0; i < 24; i++) {\n boundary += Math.floor(Math.random() * 10).toString(16);\n }\n\n this._boundary = boundary;\n};\n\n// Note: getLengthSync DOESN'T calculate streams length\n// As workaround one can calculate file size manually\n// and add it as knownLength option\nFormData.prototype.getLengthSync = function() {\n var knownLength = this._overheadLength + this._valueLength;\n\n // Don't get confused, there are 3 \"internal\" streams for each keyval pair\n // so it basically checks if there is any value added to the form\n if (this._streams.length) {\n knownLength += this._lastBoundary().length;\n }\n\n // https://github.com/form-data/form-data/issues/40\n if (!this.hasKnownLength()) {\n // Some async length retrievers are present\n // therefore synchronous length calculation is false.\n // Please use getLength(callback) to get proper length\n this._error(new Error('Cannot calculate proper length in synchronous way.'));\n }\n\n return knownLength;\n};\n\n// Public API to check if length of added values is known\n// https://github.com/form-data/form-data/issues/196\n// https://github.com/form-data/form-data/issues/262\nFormData.prototype.hasKnownLength = function() {\n var hasKnownLength = true;\n\n if (this._valuesToMeasure.length) {\n hasKnownLength = false;\n }\n\n return hasKnownLength;\n};\n\nFormData.prototype.getLength = function(cb) {\n var knownLength = this._overheadLength + this._valueLength;\n\n if (this._streams.length) {\n knownLength += this._lastBoundary().length;\n }\n\n if (!this._valuesToMeasure.length) {\n process.nextTick(cb.bind(this, null, knownLength));\n return;\n }\n\n asynckit.parallel(this._valuesToMeasure, this._lengthRetriever, function(err, values) {\n if (err) {\n cb(err);\n return;\n }\n\n values.forEach(function(length) {\n knownLength += length;\n });\n\n cb(null, knownLength);\n });\n};\n\nFormData.prototype.submit = function(params, cb) {\n var request\n , options\n , defaults = {method: 'post'}\n ;\n\n // parse provided url if it's string\n // or treat it as options object\n if (typeof params == 'string') {\n\n params = parseUrl(params);\n options = populate({\n port: params.port,\n path: params.pathname,\n host: params.hostname,\n protocol: params.protocol\n }, defaults);\n\n // use custom params\n } else {\n\n options = populate(params, defaults);\n // if no port provided use default one\n if (!options.port) {\n options.port = options.protocol == 'https:' ? 443 : 80;\n }\n }\n\n // put that good code in getHeaders to some use\n options.headers = this.getHeaders(params.headers);\n\n // https if specified, fallback to http in any other case\n if (options.protocol == 'https:') {\n request = https.request(options);\n } else {\n request = http.request(options);\n }\n\n // get content length and fire away\n this.getLength(function(err, length) {\n if (err && err !== 'Unknown stream') {\n this._error(err);\n return;\n }\n\n // add content length\n if (length) {\n request.setHeader('Content-Length', length);\n }\n\n this.pipe(request);\n if (cb) {\n var onResponse;\n\n var callback = function (error, responce) {\n request.removeListener('error', callback);\n request.removeListener('response', onResponse);\n\n return cb.call(this, error, responce);\n };\n\n onResponse = callback.bind(this, null);\n\n request.on('error', callback);\n request.on('response', onResponse);\n }\n }.bind(this));\n\n return request;\n};\n\nFormData.prototype._error = function(err) {\n if (!this.error) {\n this.error = err;\n this.pause();\n this.emit('error', err);\n }\n};\n\nFormData.prototype.toString = function () {\n return '[object FormData]';\n};\nsetToStringTag(FormData, 'FormData');\n","// populates missing values\nmodule.exports = function(dst, src) {\n\n Object.keys(src).forEach(function(prop)\n {\n dst[prop] = dst[prop] || src[prop];\n });\n\n return dst;\n};\n","'use strict';\n\n/* eslint no-invalid-this: 1 */\n\nvar ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';\nvar toStr = Object.prototype.toString;\nvar max = Math.max;\nvar funcType = '[object Function]';\n\nvar concatty = function concatty(a, b) {\n var arr = [];\n\n for (var i = 0; i < a.length; i += 1) {\n arr[i] = a[i];\n }\n for (var j = 0; j < b.length; j += 1) {\n arr[j + a.length] = b[j];\n }\n\n return arr;\n};\n\nvar slicy = function slicy(arrLike, offset) {\n var arr = [];\n for (var i = offset || 0, j = 0; i < arrLike.length; i += 1, j += 1) {\n arr[j] = arrLike[i];\n }\n return arr;\n};\n\nvar joiny = function (arr, joiner) {\n var str = '';\n for (var i = 0; i < arr.length; i += 1) {\n str += arr[i];\n if (i + 1 < arr.length) {\n str += joiner;\n }\n }\n return str;\n};\n\nmodule.exports = function bind(that) {\n var target = this;\n if (typeof target !== 'function' || toStr.apply(target) !== funcType) {\n throw new TypeError(ERROR_MESSAGE + target);\n }\n var args = slicy(arguments, 1);\n\n var bound;\n var binder = function () {\n if (this instanceof bound) {\n var result = target.apply(\n this,\n concatty(args, arguments)\n );\n if (Object(result) === result) {\n return result;\n }\n return this;\n }\n return target.apply(\n that,\n concatty(args, arguments)\n );\n\n };\n\n var boundLength = max(0, target.length - args.length);\n var boundArgs = [];\n for (var i = 0; i < boundLength; i++) {\n boundArgs[i] = '$' + i;\n }\n\n bound = Function('binder', 'return function (' + joiny(boundArgs, ',') + '){ return binder.apply(this,arguments); }')(binder);\n\n if (target.prototype) {\n var Empty = function Empty() {};\n Empty.prototype = target.prototype;\n bound.prototype = new Empty();\n Empty.prototype = null;\n }\n\n return bound;\n};\n","'use strict';\n\nvar implementation = require('./implementation');\n\nmodule.exports = Function.prototype.bind || implementation;\n","'use strict';\n\nvar $Object = require('es-object-atoms');\n\n/** @type {import('./Object.getPrototypeOf')} */\nmodule.exports = $Object.getPrototypeOf || null;\n","'use strict';\n\n/** @type {import('./Reflect.getPrototypeOf')} */\nmodule.exports = (typeof Reflect !== 'undefined' && Reflect.getPrototypeOf) || null;\n","'use strict';\n\nvar reflectGetProto = require('./Reflect.getPrototypeOf');\nvar originalGetProto = require('./Object.getPrototypeOf');\n\nvar getDunderProto = require('dunder-proto/get');\n\n/** @type {import('.')} */\nmodule.exports = reflectGetProto\n\t? function getProto(O) {\n\t\t// @ts-expect-error TS can't narrow inside a closure, for some reason\n\t\treturn reflectGetProto(O);\n\t}\n\t: originalGetProto\n\t\t? function getProto(O) {\n\t\t\tif (!O || (typeof O !== 'object' && typeof O !== 'function')) {\n\t\t\t\tthrow new TypeError('getProto: not an object');\n\t\t\t}\n\t\t\t// @ts-expect-error TS can't narrow inside a closure, for some reason\n\t\t\treturn originalGetProto(O);\n\t\t}\n\t\t: getDunderProto\n\t\t\t? function getProto(O) {\n\t\t\t\t// @ts-expect-error TS can't narrow inside a closure, for some reason\n\t\t\t\treturn getDunderProto(O);\n\t\t\t}\n\t\t\t: null;\n","'use strict';\n\nvar bind = require('function-bind');\n\nvar $apply = require('./functionApply');\nvar $call = require('./functionCall');\nvar $reflectApply = require('./reflectApply');\n\n/** @type {import('./actualApply')} */\nmodule.exports = $reflectApply || bind.call($call, $apply);\n","'use strict';\n\n/** @type {import('./functionApply')} */\nmodule.exports = Function.prototype.apply;\n","'use strict';\n\n/** @type {import('./functionCall')} */\nmodule.exports = Function.prototype.call;\n","'use strict';\n\nvar bind = require('function-bind');\nvar $TypeError = require('es-errors/type');\n\nvar $call = require('./functionCall');\nvar $actualApply = require('./actualApply');\n\n/** @type {(args: [Function, thisArg?: unknown, ...args: unknown[]]) => Function} TODO FIXME, find a way to use import('.') */\nmodule.exports = function callBindBasic(args) {\n\tif (args.length < 1 || typeof args[0] !== 'function') {\n\t\tthrow new $TypeError('a function is required');\n\t}\n\treturn $actualApply(bind, $call, args);\n};\n","'use strict';\n\n/** @type {import('./reflectApply')} */\nmodule.exports = typeof Reflect !== 'undefined' && Reflect && Reflect.apply;\n","'use strict';\n\nvar callBind = require('call-bind-apply-helpers');\nvar gOPD = require('gopd');\n\nvar hasProtoAccessor;\ntry {\n\t// eslint-disable-next-line no-extra-parens, no-proto\n\thasProtoAccessor = /** @type {{ __proto__?: typeof Array.prototype }} */ ([]).__proto__ === Array.prototype;\n} catch (e) {\n\tif (!e || typeof e !== 'object' || !('code' in e) || e.code !== 'ERR_PROTO_ACCESS') {\n\t\tthrow e;\n\t}\n}\n\n// eslint-disable-next-line no-extra-parens\nvar desc = !!hasProtoAccessor && gOPD && gOPD(Object.prototype, /** @type {keyof typeof Object.prototype} */ ('__proto__'));\n\nvar $Object = Object;\nvar $getPrototypeOf = $Object.getPrototypeOf;\n\n/** @type {import('./get')} */\nmodule.exports = desc && typeof desc.get === 'function'\n\t? callBind([desc.get])\n\t: typeof $getPrototypeOf === 'function'\n\t\t? /** @type {import('./get')} */ function getDunder(value) {\n\t\t\t// eslint-disable-next-line eqeqeq\n\t\t\treturn $getPrototypeOf(value == null ? value : $Object(value));\n\t\t}\n\t\t: false;\n","'use strict';\n\n/** @type {import('./gOPD')} */\nmodule.exports = Object.getOwnPropertyDescriptor;\n","'use strict';\n\n/** @type {import('.')} */\nvar $gOPD = require('./gOPD');\n\nif ($gOPD) {\n\ttry {\n\t\t$gOPD([], 'length');\n\t} catch (e) {\n\t\t// IE 8 has a broken gOPD\n\t\t$gOPD = null;\n\t}\n}\n\nmodule.exports = $gOPD;\n","'use strict';\n\nmodule.exports = (flag, argv = process.argv) => {\n\tconst prefix = flag.startsWith('-') ? '' : (flag.length === 1 ? '-' : '--');\n\tconst position = argv.indexOf(prefix + flag);\n\tconst terminatorPosition = argv.indexOf('--');\n\treturn position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);\n};\n","'use strict';\n\nvar origSymbol = typeof Symbol !== 'undefined' && Symbol;\nvar hasSymbolSham = require('./shams');\n\n/** @type {import('.')} */\nmodule.exports = function hasNativeSymbols() {\n\tif (typeof origSymbol !== 'function') { return false; }\n\tif (typeof Symbol !== 'function') { return false; }\n\tif (typeof origSymbol('foo') !== 'symbol') { return false; }\n\tif (typeof Symbol('bar') !== 'symbol') { return false; }\n\n\treturn hasSymbolSham();\n};\n","'use strict';\n\n/** @type {import('./shams')} */\n/* eslint complexity: [2, 18], max-statements: [2, 33] */\nmodule.exports = function hasSymbols() {\n\tif (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }\n\tif (typeof Symbol.iterator === 'symbol') { return true; }\n\n\t/** @type {{ [k in symbol]?: unknown }} */\n\tvar obj = {};\n\tvar sym = Symbol('test');\n\tvar symObj = Object(sym);\n\tif (typeof sym === 'string') { return false; }\n\n\tif (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }\n\tif (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }\n\n\t// temp disabled per https://github.com/ljharb/object.assign/issues/17\n\t// if (sym instanceof Symbol) { return false; }\n\t// temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4\n\t// if (!(symObj instanceof Symbol)) { return false; }\n\n\t// if (typeof Symbol.prototype.toString !== 'function') { return false; }\n\t// if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }\n\n\tvar symVal = 42;\n\tobj[sym] = symVal;\n\tfor (var _ in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop\n\tif (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }\n\n\tif (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }\n\n\tvar syms = Object.getOwnPropertySymbols(obj);\n\tif (syms.length !== 1 || syms[0] !== sym) { return false; }\n\n\tif (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }\n\n\tif (typeof Object.getOwnPropertyDescriptor === 'function') {\n\t\t// eslint-disable-next-line no-extra-parens\n\t\tvar descriptor = /** @type {PropertyDescriptor} */ (Object.getOwnPropertyDescriptor(obj, sym));\n\t\tif (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }\n\t}\n\n\treturn true;\n};\n","'use strict';\n\nvar hasSymbols = require('has-symbols/shams');\n\n/** @type {import('.')} */\nmodule.exports = function hasToStringTagShams() {\n\treturn hasSymbols() && !!Symbol.toStringTag;\n};\n","'use strict';\n\nvar call = Function.prototype.call;\nvar $hasOwn = Object.prototype.hasOwnProperty;\nvar bind = require('function-bind');\n\n/** @type {import('.')} */\nmodule.exports = bind.call(call, $hasOwn);\n","'use strict';\n\nconst denyList = new Set([\n\t'ENOTFOUND',\n\t'ENETUNREACH',\n\n\t// SSL errors from https://github.com/nodejs/node/blob/fc8e3e2cdc521978351de257030db0076d79e0ab/src/crypto/crypto_common.cc#L301-L328\n\t'UNABLE_TO_GET_ISSUER_CERT',\n\t'UNABLE_TO_GET_CRL',\n\t'UNABLE_TO_DECRYPT_CERT_SIGNATURE',\n\t'UNABLE_TO_DECRYPT_CRL_SIGNATURE',\n\t'UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY',\n\t'CERT_SIGNATURE_FAILURE',\n\t'CRL_SIGNATURE_FAILURE',\n\t'CERT_NOT_YET_VALID',\n\t'CERT_HAS_EXPIRED',\n\t'CRL_NOT_YET_VALID',\n\t'CRL_HAS_EXPIRED',\n\t'ERROR_IN_CERT_NOT_BEFORE_FIELD',\n\t'ERROR_IN_CERT_NOT_AFTER_FIELD',\n\t'ERROR_IN_CRL_LAST_UPDATE_FIELD',\n\t'ERROR_IN_CRL_NEXT_UPDATE_FIELD',\n\t'OUT_OF_MEM',\n\t'DEPTH_ZERO_SELF_SIGNED_CERT',\n\t'SELF_SIGNED_CERT_IN_CHAIN',\n\t'UNABLE_TO_GET_ISSUER_CERT_LOCALLY',\n\t'UNABLE_TO_VERIFY_LEAF_SIGNATURE',\n\t'CERT_CHAIN_TOO_LONG',\n\t'CERT_REVOKED',\n\t'INVALID_CA',\n\t'PATH_LENGTH_EXCEEDED',\n\t'INVALID_PURPOSE',\n\t'CERT_UNTRUSTED',\n\t'CERT_REJECTED',\n\t'HOSTNAME_MISMATCH'\n]);\n\n// TODO: Use `error?.code` when targeting Node.js 14\nmodule.exports = error => !denyList.has(error && error.code);\n","'use strict';\n\n/** @type {import('./abs')} */\nmodule.exports = Math.abs;\n","'use strict';\n\n/** @type {import('./floor')} */\nmodule.exports = Math.floor;\n","'use strict';\n\n/** @type {import('./isNaN')} */\nmodule.exports = Number.isNaN || function isNaN(a) {\n\treturn a !== a;\n};\n","'use strict';\n\n/** @type {import('./max')} */\nmodule.exports = Math.max;\n","'use strict';\n\n/** @type {import('./min')} */\nmodule.exports = Math.min;\n","'use strict';\n\n/** @type {import('./pow')} */\nmodule.exports = Math.pow;\n","'use strict';\n\n/** @type {import('./round')} */\nmodule.exports = Math.round;\n","'use strict';\n\nvar $isNaN = require('./isNaN');\n\n/** @type {import('./sign')} */\nmodule.exports = function sign(number) {\n\tif ($isNaN(number) || number === 0) {\n\t\treturn number;\n\t}\n\treturn number < 0 ? -1 : +1;\n};\n","/*!\n * mime-db\n * Copyright(c) 2014 Jonathan Ong\n * Copyright(c) 2015-2022 Douglas Christopher Wilson\n * MIT Licensed\n */\n\n/**\n * Module exports.\n */\n\nmodule.exports = require('./db.json')\n","/*!\n * mime-types\n * Copyright(c) 2014 Jonathan Ong\n * Copyright(c) 2015 Douglas Christopher Wilson\n * MIT Licensed\n */\n\n'use strict'\n\n/**\n * Module dependencies.\n * @private\n */\n\nvar db = require('mime-db')\nvar extname = require('path').extname\n\n/**\n * Module variables.\n * @private\n */\n\nvar EXTRACT_TYPE_REGEXP = /^\\s*([^;\\s]*)(?:;|\\s|$)/\nvar TEXT_TYPE_REGEXP = /^text\\//i\n\n/**\n * Module exports.\n * @public\n */\n\nexports.charset = charset\nexports.charsets = { lookup: charset }\nexports.contentType = contentType\nexports.extension = extension\nexports.extensions = Object.create(null)\nexports.lookup = lookup\nexports.types = Object.create(null)\n\n// Populate the extensions/types maps\npopulateMaps(exports.extensions, exports.types)\n\n/**\n * Get the default charset for a MIME type.\n *\n * @param {string} type\n * @return {boolean|string}\n */\n\nfunction charset (type) {\n if (!type || typeof type !== 'string') {\n return false\n }\n\n // TODO: use media-typer\n var match = EXTRACT_TYPE_REGEXP.exec(type)\n var mime = match && db[match[1].toLowerCase()]\n\n if (mime && mime.charset) {\n return mime.charset\n }\n\n // default text/* to utf-8\n if (match && TEXT_TYPE_REGEXP.test(match[1])) {\n return 'UTF-8'\n }\n\n return false\n}\n\n/**\n * Create a full Content-Type header given a MIME type or extension.\n *\n * @param {string} str\n * @return {boolean|string}\n */\n\nfunction contentType (str) {\n // TODO: should this even be in this module?\n if (!str || typeof str !== 'string') {\n return false\n }\n\n var mime = str.indexOf('/') === -1\n ? exports.lookup(str)\n : str\n\n if (!mime) {\n return false\n }\n\n // TODO: use content-type or other module\n if (mime.indexOf('charset') === -1) {\n var charset = exports.charset(mime)\n if (charset) mime += '; charset=' + charset.toLowerCase()\n }\n\n return mime\n}\n\n/**\n * Get the default extension for a MIME type.\n *\n * @param {string} type\n * @return {boolean|string}\n */\n\nfunction extension (type) {\n if (!type || typeof type !== 'string') {\n return false\n }\n\n // TODO: use media-typer\n var match = EXTRACT_TYPE_REGEXP.exec(type)\n\n // get extensions\n var exts = match && exports.extensions[match[1].toLowerCase()]\n\n if (!exts || !exts.length) {\n return false\n }\n\n return exts[0]\n}\n\n/**\n * Lookup the MIME type for a file path/extension.\n *\n * @param {string} path\n * @return {boolean|string}\n */\n\nfunction lookup (path) {\n if (!path || typeof path !== 'string') {\n return false\n }\n\n // get the extension (\"ext\" or \".ext\" or full path)\n var extension = extname('x.' + path)\n .toLowerCase()\n .substr(1)\n\n if (!extension) {\n return false\n }\n\n return exports.types[extension] || false\n}\n\n/**\n * Populate the extensions and types maps.\n * @private\n */\n\nfunction populateMaps (extensions, types) {\n // source preference (least -> most)\n var preference = ['nginx', 'apache', undefined, 'iana']\n\n Object.keys(db).forEach(function forEachMimeType (type) {\n var mime = db[type]\n var exts = mime.extensions\n\n if (!exts || !exts.length) {\n return\n }\n\n // mime -> extensions\n extensions[type] = exts\n\n // extension -> mime\n for (var i = 0; i < exts.length; i++) {\n var extension = exts[i]\n\n if (types[extension]) {\n var from = preference.indexOf(db[types[extension]].source)\n var to = preference.indexOf(mime.source)\n\n if (types[extension] !== 'application/octet-stream' &&\n (from > to || (from === to && types[extension].substr(0, 12) === 'application/'))) {\n // skip the remapping\n continue\n }\n }\n\n // set the extension -> mime\n types[extension] = type\n }\n })\n}\n","/**\n * Helpers.\n */\n\nvar s = 1000;\nvar m = s * 60;\nvar h = m * 60;\nvar d = h * 24;\nvar w = d * 7;\nvar y = d * 365.25;\n\n/**\n * Parse or format the given `val`.\n *\n * Options:\n *\n * - `long` verbose formatting [false]\n *\n * @param {String|Number} val\n * @param {Object} [options]\n * @throws {Error} throw an error if val is not a non-empty string or a number\n * @return {String|Number}\n * @api public\n */\n\nmodule.exports = function(val, options) {\n options = options || {};\n var type = typeof val;\n if (type === 'string' && val.length > 0) {\n return parse(val);\n } else if (type === 'number' && isFinite(val)) {\n return options.long ? fmtLong(val) : fmtShort(val);\n }\n throw new Error(\n 'val is not a non-empty string or a valid number. val=' +\n JSON.stringify(val)\n );\n};\n\n/**\n * Parse the given `str` and return milliseconds.\n *\n * @param {String} str\n * @return {Number}\n * @api private\n */\n\nfunction parse(str) {\n str = String(str);\n if (str.length > 100) {\n return;\n }\n var match = /^(-?(?:\\d+)?\\.?\\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(\n str\n );\n if (!match) {\n return;\n }\n var n = parseFloat(match[1]);\n var type = (match[2] || 'ms').toLowerCase();\n switch (type) {\n case 'years':\n case 'year':\n case 'yrs':\n case 'yr':\n case 'y':\n return n * y;\n case 'weeks':\n case 'week':\n case 'w':\n return n * w;\n case 'days':\n case 'day':\n case 'd':\n return n * d;\n case 'hours':\n case 'hour':\n case 'hrs':\n case 'hr':\n case 'h':\n return n * h;\n case 'minutes':\n case 'minute':\n case 'mins':\n case 'min':\n case 'm':\n return n * m;\n case 'seconds':\n case 'second':\n case 'secs':\n case 'sec':\n case 's':\n return n * s;\n case 'milliseconds':\n case 'millisecond':\n case 'msecs':\n case 'msec':\n case 'ms':\n return n;\n default:\n return undefined;\n }\n}\n\n/**\n * Short format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtShort(ms) {\n var msAbs = Math.abs(ms);\n if (msAbs >= d) {\n return Math.round(ms / d) + 'd';\n }\n if (msAbs >= h) {\n return Math.round(ms / h) + 'h';\n }\n if (msAbs >= m) {\n return Math.round(ms / m) + 'm';\n }\n if (msAbs >= s) {\n return Math.round(ms / s) + 's';\n }\n return ms + 'ms';\n}\n\n/**\n * Long format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtLong(ms) {\n var msAbs = Math.abs(ms);\n if (msAbs >= d) {\n return plural(ms, msAbs, d, 'day');\n }\n if (msAbs >= h) {\n return plural(ms, msAbs, h, 'hour');\n }\n if (msAbs >= m) {\n return plural(ms, msAbs, m, 'minute');\n }\n if (msAbs >= s) {\n return plural(ms, msAbs, s, 'second');\n }\n return ms + ' ms';\n}\n\n/**\n * Pluralization helper.\n */\n\nfunction plural(ms, msAbs, n, name) {\n var isPlural = msAbs >= n * 1.5;\n return Math.round(ms / n) + ' ' + name + (isPlural ? 's' : '');\n}\n","'use strict';\n\nvar parseUrl = require('url').parse;\n\nvar DEFAULT_PORTS = {\n ftp: 21,\n gopher: 70,\n http: 80,\n https: 443,\n ws: 80,\n wss: 443,\n};\n\nvar stringEndsWith = String.prototype.endsWith || function(s) {\n return s.length <= this.length &&\n this.indexOf(s, this.length - s.length) !== -1;\n};\n\n/**\n * @param {string|object} url - The URL, or the result from url.parse.\n * @return {string} The URL of the proxy that should handle the request to the\n * given URL. If no proxy is set, this will be an empty string.\n */\nfunction getProxyForUrl(url) {\n var parsedUrl = typeof url === 'string' ? parseUrl(url) : url || {};\n var proto = parsedUrl.protocol;\n var hostname = parsedUrl.host;\n var port = parsedUrl.port;\n if (typeof hostname !== 'string' || !hostname || typeof proto !== 'string') {\n return ''; // Don't proxy URLs without a valid scheme or host.\n }\n\n proto = proto.split(':', 1)[0];\n // Stripping ports in this way instead of using parsedUrl.hostname to make\n // sure that the brackets around IPv6 addresses are kept.\n hostname = hostname.replace(/:\\d*$/, '');\n port = parseInt(port) || DEFAULT_PORTS[proto] || 0;\n if (!shouldProxy(hostname, port)) {\n return ''; // Don't proxy URLs that match NO_PROXY.\n }\n\n var proxy =\n getEnv('npm_config_' + proto + '_proxy') ||\n getEnv(proto + '_proxy') ||\n getEnv('npm_config_proxy') ||\n getEnv('all_proxy');\n if (proxy && proxy.indexOf('://') === -1) {\n // Missing scheme in proxy, default to the requested URL's scheme.\n proxy = proto + '://' + proxy;\n }\n return proxy;\n}\n\n/**\n * Determines whether a given URL should be proxied.\n *\n * @param {string} hostname - The host name of the URL.\n * @param {number} port - The effective port of the URL.\n * @returns {boolean} Whether the given URL should be proxied.\n * @private\n */\nfunction shouldProxy(hostname, port) {\n var NO_PROXY =\n (getEnv('npm_config_no_proxy') || getEnv('no_proxy')).toLowerCase();\n if (!NO_PROXY) {\n return true; // Always proxy if NO_PROXY is not set.\n }\n if (NO_PROXY === '*') {\n return false; // Never proxy if wildcard is set.\n }\n\n return NO_PROXY.split(/[,\\s]/).every(function(proxy) {\n if (!proxy) {\n return true; // Skip zero-length hosts.\n }\n var parsedProxy = proxy.match(/^(.+):(\\d+)$/);\n var parsedProxyHostname = parsedProxy ? parsedProxy[1] : proxy;\n var parsedProxyPort = parsedProxy ? parseInt(parsedProxy[2]) : 0;\n if (parsedProxyPort && parsedProxyPort !== port) {\n return true; // Skip if ports don't match.\n }\n\n if (!/^[.*]/.test(parsedProxyHostname)) {\n // No wildcards, so stop proxying if there is an exact match.\n return hostname !== parsedProxyHostname;\n }\n\n if (parsedProxyHostname.charAt(0) === '*') {\n // Remove leading wildcard.\n parsedProxyHostname = parsedProxyHostname.slice(1);\n }\n // Stop proxying if the hostname ends with the no_proxy host.\n return !stringEndsWith.call(hostname, parsedProxyHostname);\n });\n}\n\n/**\n * Get the value for an environment variable.\n *\n * @param {string} key - The name of the environment variable.\n * @return {string} The value of the environment variable.\n * @private\n */\nfunction getEnv(key) {\n return process.env[key.toLowerCase()] || process.env[key.toUpperCase()] || '';\n}\n\nexports.getProxyForUrl = getProxyForUrl;\n","'use strict';\nconst os = require('os');\nconst tty = require('tty');\nconst hasFlag = require('has-flag');\n\nconst {env} = process;\n\nlet forceColor;\nif (hasFlag('no-color') ||\n\thasFlag('no-colors') ||\n\thasFlag('color=false') ||\n\thasFlag('color=never')) {\n\tforceColor = 0;\n} else if (hasFlag('color') ||\n\thasFlag('colors') ||\n\thasFlag('color=true') ||\n\thasFlag('color=always')) {\n\tforceColor = 1;\n}\n\nif ('FORCE_COLOR' in env) {\n\tif (env.FORCE_COLOR === 'true') {\n\t\tforceColor = 1;\n\t} else if (env.FORCE_COLOR === 'false') {\n\t\tforceColor = 0;\n\t} else {\n\t\tforceColor = env.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env.FORCE_COLOR, 10), 3);\n\t}\n}\n\nfunction translateLevel(level) {\n\tif (level === 0) {\n\t\treturn false;\n\t}\n\n\treturn {\n\t\tlevel,\n\t\thasBasic: true,\n\t\thas256: level >= 2,\n\t\thas16m: level >= 3\n\t};\n}\n\nfunction supportsColor(haveStream, streamIsTTY) {\n\tif (forceColor === 0) {\n\t\treturn 0;\n\t}\n\n\tif (hasFlag('color=16m') ||\n\t\thasFlag('color=full') ||\n\t\thasFlag('color=truecolor')) {\n\t\treturn 3;\n\t}\n\n\tif (hasFlag('color=256')) {\n\t\treturn 2;\n\t}\n\n\tif (haveStream && !streamIsTTY && forceColor === undefined) {\n\t\treturn 0;\n\t}\n\n\tconst min = forceColor || 0;\n\n\tif (env.TERM === 'dumb') {\n\t\treturn min;\n\t}\n\n\tif (process.platform === 'win32') {\n\t\t// Windows 10 build 10586 is the first Windows release that supports 256 colors.\n\t\t// Windows 10 build 14931 is the first release that supports 16m/TrueColor.\n\t\tconst osRelease = os.release().split('.');\n\t\tif (\n\t\t\tNumber(osRelease[0]) >= 10 &&\n\t\t\tNumber(osRelease[2]) >= 10586\n\t\t) {\n\t\t\treturn Number(osRelease[2]) >= 14931 ? 3 : 2;\n\t\t}\n\n\t\treturn 1;\n\t}\n\n\tif ('CI' in env) {\n\t\tif (['TRAVIS', 'CIRCLECI', 'APPVEYOR', 'GITLAB_CI', 'GITHUB_ACTIONS', 'BUILDKITE'].some(sign => sign in env) || env.CI_NAME === 'codeship') {\n\t\t\treturn 1;\n\t\t}\n\n\t\treturn min;\n\t}\n\n\tif ('TEAMCITY_VERSION' in env) {\n\t\treturn /^(9\\.(0*[1-9]\\d*)\\.|\\d{2,}\\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;\n\t}\n\n\tif (env.COLORTERM === 'truecolor') {\n\t\treturn 3;\n\t}\n\n\tif ('TERM_PROGRAM' in env) {\n\t\tconst version = parseInt((env.TERM_PROGRAM_VERSION || '').split('.')[0], 10);\n\n\t\tswitch (env.TERM_PROGRAM) {\n\t\t\tcase 'iTerm.app':\n\t\t\t\treturn version >= 3 ? 3 : 2;\n\t\t\tcase 'Apple_Terminal':\n\t\t\t\treturn 2;\n\t\t\t// No default\n\t\t}\n\t}\n\n\tif (/-256(color)?$/i.test(env.TERM)) {\n\t\treturn 2;\n\t}\n\n\tif (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {\n\t\treturn 1;\n\t}\n\n\tif ('COLORTERM' in env) {\n\t\treturn 1;\n\t}\n\n\treturn min;\n}\n\nfunction getSupportLevel(stream) {\n\tconst level = supportsColor(stream, stream && stream.isTTY);\n\treturn translateLevel(level);\n}\n\nmodule.exports = {\n\tsupportsColor: getSupportLevel,\n\tstdout: translateLevel(supportsColor(true, tty.isatty(1))),\n\tstderr: translateLevel(supportsColor(true, tty.isatty(2)))\n};\n","// transit-js 0.8.877\n// http://transit-format.org\n// \n// Copyright 2014 Cognitect. All Rights Reserved.\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS-IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License..\n/*\n\n Copyright The Closure Library Authors.\n SPDX-License-Identifier: Apache-2.0\n*/\n'use strict';\nvar COMPILED = !0, goog = goog || {};\ngoog.global = this || self;\ngoog.exportPath_ = function(a, b, c, d) {\n a = a.split(\".\");\n d = d || goog.global;\n a[0] in d || \"undefined\" == typeof d.execScript || d.execScript(\"var \" + a[0]);\n for (var e; a.length && (e = a.shift());) {\n if (a.length || void 0 === b) {\n d = d[e] && d[e] !== Object.prototype[e] ? d[e] : d[e] = {};\n } else {\n if (!c && goog.isObject(b) && goog.isObject(d[e])) {\n for (var f in b) {\n b.hasOwnProperty(f) && (d[e][f] = b[f]);\n }\n } else {\n d[e] = b;\n }\n }\n }\n};\ngoog.define = function(a, b) {\n if (!COMPILED) {\n var c = goog.global.CLOSURE_UNCOMPILED_DEFINES, d = goog.global.CLOSURE_DEFINES;\n c && void 0 === c.nodeType && Object.prototype.hasOwnProperty.call(c, a) ? b = c[a] : d && void 0 === d.nodeType && Object.prototype.hasOwnProperty.call(d, a) && (b = d[a]);\n }\n return b;\n};\ngoog.FEATURESET_YEAR = 2012;\ngoog.DEBUG = !0;\ngoog.LOCALE = \"en\";\ngoog.TRUSTED_SITE = !0;\ngoog.DISALLOW_TEST_ONLY_CODE = COMPILED && !goog.DEBUG;\ngoog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING = !1;\ngoog.provide = function(a) {\n if (goog.isInModuleLoader_()) {\n throw Error(\"goog.provide cannot be used within a module.\");\n }\n if (!COMPILED && goog.isProvided_(a)) {\n throw Error('Namespace \"' + a + '\" already declared.');\n }\n goog.constructNamespace_(a);\n};\ngoog.constructNamespace_ = function(a, b, c) {\n if (!COMPILED) {\n delete goog.implicitNamespaces_[a];\n for (var d = a; (d = d.substring(0, d.lastIndexOf(\".\"))) && !goog.getObjectByName(d);) {\n goog.implicitNamespaces_[d] = !0;\n }\n }\n goog.exportPath_(a, b, c);\n};\ngoog.getScriptNonce = function(a) {\n if (a && a != goog.global) {\n return goog.getScriptNonce_(a.document);\n }\n null === goog.cspNonce_ && (goog.cspNonce_ = goog.getScriptNonce_(goog.global.document));\n return goog.cspNonce_;\n};\ngoog.NONCE_PATTERN_ = /^[\\w+/_-]+[=]{0,2}$/;\ngoog.cspNonce_ = null;\ngoog.getScriptNonce_ = function(a) {\n return (a = a.querySelector && a.querySelector(\"script[nonce]\")) && (a = a.nonce || a.getAttribute(\"nonce\")) && goog.NONCE_PATTERN_.test(a) ? a : \"\";\n};\ngoog.VALID_MODULE_RE_ = /^[a-zA-Z_$][a-zA-Z0-9._$]*$/;\ngoog.module = function(a) {\n if (\"string\" !== typeof a || !a || -1 == a.search(goog.VALID_MODULE_RE_)) {\n throw Error(\"Invalid module identifier\");\n }\n if (!goog.isInGoogModuleLoader_()) {\n throw Error(\"Module \" + a + \" has been loaded incorrectly. Note, modules cannot be loaded as normal scripts. They require some kind of pre-processing step. You're likely trying to load a module via a script tag or as a part of a concatenated bundle without rewriting the module. For more info see: https://github.com/google/closure-library/wiki/goog.module:-an-ES6-module-like-alternative-to-goog.provide.\");\n }\n if (goog.moduleLoaderState_.moduleName) {\n throw Error(\"goog.module may only be called once per module.\");\n }\n goog.moduleLoaderState_.moduleName = a;\n if (!COMPILED) {\n if (goog.isProvided_(a)) {\n throw Error('Namespace \"' + a + '\" already declared.');\n }\n delete goog.implicitNamespaces_[a];\n }\n};\ngoog.module.get = function(a) {\n return goog.module.getInternal_(a);\n};\ngoog.module.getInternal_ = function(a) {\n if (!COMPILED) {\n if (a in goog.loadedModules_) {\n return goog.loadedModules_[a].exports;\n }\n if (!goog.implicitNamespaces_[a]) {\n return a = goog.getObjectByName(a), null != a ? a : null;\n }\n }\n return null;\n};\ngoog.ModuleType = {ES6:\"es6\", GOOG:\"goog\"};\ngoog.moduleLoaderState_ = null;\ngoog.isInModuleLoader_ = function() {\n return goog.isInGoogModuleLoader_() || goog.isInEs6ModuleLoader_();\n};\ngoog.isInGoogModuleLoader_ = function() {\n return !!goog.moduleLoaderState_ && goog.moduleLoaderState_.type == goog.ModuleType.GOOG;\n};\ngoog.isInEs6ModuleLoader_ = function() {\n if (goog.moduleLoaderState_ && goog.moduleLoaderState_.type == goog.ModuleType.ES6) {\n return !0;\n }\n var a = goog.global.$jscomp;\n return a ? \"function\" != typeof a.getCurrentModulePath ? !1 : !!a.getCurrentModulePath() : !1;\n};\ngoog.module.declareLegacyNamespace = function() {\n if (!COMPILED && !goog.isInGoogModuleLoader_()) {\n throw Error(\"goog.module.declareLegacyNamespace must be called from within a goog.module\");\n }\n if (!COMPILED && !goog.moduleLoaderState_.moduleName) {\n throw Error(\"goog.module must be called prior to goog.module.declareLegacyNamespace.\");\n }\n goog.moduleLoaderState_.declareLegacyNamespace = !0;\n};\ngoog.declareModuleId = function(a) {\n if (!COMPILED) {\n if (!goog.isInEs6ModuleLoader_()) {\n throw Error(\"goog.declareModuleId may only be called from within an ES6 module\");\n }\n if (goog.moduleLoaderState_ && goog.moduleLoaderState_.moduleName) {\n throw Error(\"goog.declareModuleId may only be called once per module.\");\n }\n if (a in goog.loadedModules_) {\n throw Error('Module with namespace \"' + a + '\" already exists.');\n }\n }\n if (goog.moduleLoaderState_) {\n goog.moduleLoaderState_.moduleName = a;\n } else {\n var b = goog.global.$jscomp;\n if (!b || \"function\" != typeof b.getCurrentModulePath) {\n throw Error('Module with namespace \"' + a + '\" has been loaded incorrectly.');\n }\n b = b.require(b.getCurrentModulePath());\n goog.loadedModules_[a] = {exports:b, type:goog.ModuleType.ES6, moduleId:a};\n }\n};\ngoog.setTestOnly = function(a) {\n if (goog.DISALLOW_TEST_ONLY_CODE) {\n throw a = a || \"\", Error(\"Importing test-only code into non-debug environment\" + (a ? \": \" + a : \".\"));\n }\n};\ngoog.forwardDeclare = function(a) {\n};\nCOMPILED || (goog.isProvided_ = function(a) {\n return a in goog.loadedModules_ || !goog.implicitNamespaces_[a] && null != goog.getObjectByName(a);\n}, goog.implicitNamespaces_ = {\"goog.module\":!0});\ngoog.getObjectByName = function(a, b) {\n a = a.split(\".\");\n b = b || goog.global;\n for (var c = 0; c < a.length; c++) {\n if (b = b[a[c]], null == b) {\n return null;\n }\n }\n return b;\n};\ngoog.addDependency = function(a, b, c, d) {\n !COMPILED && goog.DEPENDENCIES_ENABLED && goog.debugLoader_.addDependency(a, b, c, d);\n};\ngoog.ENABLE_DEBUG_LOADER = !0;\ngoog.logToConsole_ = function(a) {\n goog.global.console && goog.global.console.error(a);\n};\ngoog.require = function(a) {\n if (!COMPILED) {\n goog.ENABLE_DEBUG_LOADER && goog.debugLoader_.requested(a);\n if (goog.isProvided_(a)) {\n if (goog.isInModuleLoader_()) {\n return goog.module.getInternal_(a);\n }\n } else {\n if (goog.ENABLE_DEBUG_LOADER) {\n var b = goog.moduleLoaderState_;\n goog.moduleLoaderState_ = null;\n try {\n goog.debugLoader_.load_(a);\n } finally {\n goog.moduleLoaderState_ = b;\n }\n }\n }\n return null;\n }\n};\ngoog.requireType = function(a) {\n return {};\n};\ngoog.basePath = \"\";\ngoog.nullFunction = function() {\n};\ngoog.abstractMethod = function() {\n throw Error(\"unimplemented abstract method\");\n};\ngoog.addSingletonGetter = function(a) {\n a.instance_ = void 0;\n a.getInstance = function() {\n if (a.instance_) {\n return a.instance_;\n }\n goog.DEBUG && (goog.instantiatedSingletons_[goog.instantiatedSingletons_.length] = a);\n return a.instance_ = new a;\n };\n};\ngoog.instantiatedSingletons_ = [];\ngoog.LOAD_MODULE_USING_EVAL = !0;\ngoog.SEAL_MODULE_EXPORTS = goog.DEBUG;\ngoog.loadedModules_ = {};\ngoog.DEPENDENCIES_ENABLED = !COMPILED && goog.ENABLE_DEBUG_LOADER;\ngoog.TRANSPILE = \"detect\";\ngoog.ASSUME_ES_MODULES_TRANSPILED = !1;\ngoog.TRANSPILE_TO_LANGUAGE = \"\";\ngoog.TRANSPILER = \"transpile.js\";\ngoog.TRUSTED_TYPES_POLICY_NAME = \"goog\";\ngoog.hasBadLetScoping = null;\ngoog.loadModule = function(a) {\n var b = goog.moduleLoaderState_;\n try {\n goog.moduleLoaderState_ = {moduleName:\"\", declareLegacyNamespace:!1, type:goog.ModuleType.GOOG};\n var c = {}, d = c;\n if (\"function\" === typeof a) {\n d = a.call(void 0, d);\n } else {\n if (\"string\" === typeof a) {\n d = goog.loadModuleFromSource_.call(void 0, d, a);\n } else {\n throw Error(\"Invalid module definition\");\n }\n }\n var e = goog.moduleLoaderState_.moduleName;\n if (\"string\" === typeof e && e) {\n goog.moduleLoaderState_.declareLegacyNamespace ? goog.constructNamespace_(e, d, c !== d) : goog.SEAL_MODULE_EXPORTS && Object.seal && \"object\" == typeof d && null != d && Object.seal(d), goog.loadedModules_[e] = {exports:d, type:goog.ModuleType.GOOG, moduleId:goog.moduleLoaderState_.moduleName};\n } else {\n throw Error('Invalid module name \"' + e + '\"');\n }\n } finally {\n goog.moduleLoaderState_ = b;\n }\n};\ngoog.loadModuleFromSource_ = function(a, b) {\n eval(goog.CLOSURE_EVAL_PREFILTER_.createScript(b));\n return a;\n};\ngoog.normalizePath_ = function(a) {\n a = a.split(\"/\");\n for (var b = 0; b < a.length;) {\n \".\" == a[b] ? a.splice(b, 1) : b && \"..\" == a[b] && a[b - 1] && \"..\" != a[b - 1] ? a.splice(--b, 2) : b++;\n }\n return a.join(\"/\");\n};\ngoog.loadFileSync_ = function(a) {\n if (goog.global.CLOSURE_LOAD_FILE_SYNC) {\n return goog.global.CLOSURE_LOAD_FILE_SYNC(a);\n }\n try {\n var b = new goog.global.XMLHttpRequest;\n b.open(\"get\", a, !1);\n b.send();\n return 0 == b.status || 200 == b.status ? b.responseText : null;\n } catch (c) {\n return null;\n }\n};\ngoog.transpile_ = function(a, b, c) {\n var d = goog.global.$jscomp;\n d || (goog.global.$jscomp = d = {});\n var e = d.transpile;\n if (!e) {\n var f = goog.basePath + goog.TRANSPILER, g = goog.loadFileSync_(f);\n if (g) {\n (function() {\n (0,eval)(g + \"\\n//# sourceURL=\" + f);\n }).call(goog.global);\n if (goog.global.$gwtExport && goog.global.$gwtExport.$jscomp && !goog.global.$gwtExport.$jscomp.transpile) {\n throw Error('The transpiler did not properly export the \"transpile\" method. $gwtExport: ' + JSON.stringify(goog.global.$gwtExport));\n }\n goog.global.$jscomp.transpile = goog.global.$gwtExport.$jscomp.transpile;\n d = goog.global.$jscomp;\n e = d.transpile;\n }\n }\n e || (e = d.transpile = function(h, k) {\n goog.logToConsole_(k + \" requires transpilation but no transpiler was found.\");\n return h;\n });\n return e(a, b, c);\n};\ngoog.typeOf = function(a) {\n var b = typeof a;\n return \"object\" != b ? b : a ? Array.isArray(a) ? \"array\" : b : \"null\";\n};\ngoog.isArrayLike = function(a) {\n var b = goog.typeOf(a);\n return \"array\" == b || \"object\" == b && \"number\" == typeof a.length;\n};\ngoog.isDateLike = function(a) {\n return goog.isObject(a) && \"function\" == typeof a.getFullYear;\n};\ngoog.isObject = function(a) {\n var b = typeof a;\n return \"object\" == b && null != a || \"function\" == b;\n};\ngoog.getUid = function(a) {\n return Object.prototype.hasOwnProperty.call(a, goog.UID_PROPERTY_) && a[goog.UID_PROPERTY_] || (a[goog.UID_PROPERTY_] = ++goog.uidCounter_);\n};\ngoog.hasUid = function(a) {\n return !!a[goog.UID_PROPERTY_];\n};\ngoog.removeUid = function(a) {\n null !== a && \"removeAttribute\" in a && a.removeAttribute(goog.UID_PROPERTY_);\n try {\n delete a[goog.UID_PROPERTY_];\n } catch (b) {\n }\n};\ngoog.UID_PROPERTY_ = \"closure_uid_\" + (1e9 * Math.random() >>> 0);\ngoog.uidCounter_ = 0;\ngoog.cloneObject = function(a) {\n var b = goog.typeOf(a);\n if (\"object\" == b || \"array\" == b) {\n if (\"function\" === typeof a.clone) {\n return a.clone();\n }\n b = \"array\" == b ? [] : {};\n for (var c in a) {\n b[c] = goog.cloneObject(a[c]);\n }\n return b;\n }\n return a;\n};\ngoog.bindNative_ = function(a, b, c) {\n return a.call.apply(a.bind, arguments);\n};\ngoog.bindJs_ = function(a, b, c) {\n if (!a) {\n throw Error();\n }\n if (2 < arguments.length) {\n var d = Array.prototype.slice.call(arguments, 2);\n return function() {\n var e = Array.prototype.slice.call(arguments);\n Array.prototype.unshift.apply(e, d);\n return a.apply(b, e);\n };\n }\n return function() {\n return a.apply(b, arguments);\n };\n};\ngoog.bind = function(a, b, c) {\n Function.prototype.bind && -1 != Function.prototype.bind.toString().indexOf(\"native code\") ? goog.bind = goog.bindNative_ : goog.bind = goog.bindJs_;\n return goog.bind.apply(null, arguments);\n};\ngoog.partial = function(a, b) {\n var c = Array.prototype.slice.call(arguments, 1);\n return function() {\n var d = c.slice();\n d.push.apply(d, arguments);\n return a.apply(this, d);\n };\n};\ngoog.mixin = function(a, b) {\n for (var c in b) {\n a[c] = b[c];\n }\n};\ngoog.now = function() {\n return Date.now();\n};\ngoog.globalEval = function(a) {\n (0,eval)(a);\n};\ngoog.getCssName = function(a, b) {\n if (\".\" == String(a).charAt(0)) {\n throw Error('className passed in goog.getCssName must not start with \".\". You passed: ' + a);\n }\n var c = function(e) {\n return goog.cssNameMapping_[e] || e;\n }, d = function(e) {\n e = e.split(\"-\");\n for (var f = [], g = 0; g < e.length; g++) {\n f.push(c(e[g]));\n }\n return f.join(\"-\");\n };\n d = goog.cssNameMapping_ ? \"BY_WHOLE\" == goog.cssNameMappingStyle_ ? c : d : function(e) {\n return e;\n };\n a = b ? a + \"-\" + d(b) : d(a);\n return goog.global.CLOSURE_CSS_NAME_MAP_FN ? goog.global.CLOSURE_CSS_NAME_MAP_FN(a) : a;\n};\ngoog.setCssNameMapping = function(a, b) {\n goog.cssNameMapping_ = a;\n goog.cssNameMappingStyle_ = b;\n};\n!COMPILED && goog.global.CLOSURE_CSS_NAME_MAPPING && (goog.cssNameMapping_ = goog.global.CLOSURE_CSS_NAME_MAPPING);\ngoog.getMsg = function(a, b, c) {\n c && c.html && (a = a.replace(/</g, \"&lt;\"));\n c && c.unescapeHtmlEntities && (a = a.replace(/&lt;/g, \"<\").replace(/&gt;/g, \">\").replace(/&apos;/g, \"'\").replace(/&quot;/g, '\"').replace(/&amp;/g, \"&\"));\n b && (a = a.replace(/\\{\\$([^}]+)}/g, function(d, e) {\n return null != b && e in b ? b[e] : d;\n }));\n return a;\n};\ngoog.getMsgWithFallback = function(a, b) {\n return a;\n};\ngoog.exportSymbol = function(a, b, c) {\n goog.exportPath_(a, b, !0, c);\n};\ngoog.exportProperty = function(a, b, c) {\n a[b] = c;\n};\ngoog.inherits = function(a, b) {\n function c() {\n }\n c.prototype = b.prototype;\n a.superClass_ = b.prototype;\n a.prototype = new c;\n a.prototype.constructor = a;\n a.base = function(d, e, f) {\n for (var g = Array(arguments.length - 2), h = 2; h < arguments.length; h++) {\n g[h - 2] = arguments[h];\n }\n return b.prototype[e].apply(d, g);\n };\n};\ngoog.scope = function(a) {\n if (goog.isInModuleLoader_()) {\n throw Error(\"goog.scope is not supported within a module.\");\n }\n a.call(goog.global);\n};\nCOMPILED || (goog.global.COMPILED = COMPILED);\ngoog.defineClass = function(a, b) {\n var c = b.constructor, d = b.statics;\n c && c != Object.prototype.constructor || (c = function() {\n throw Error(\"cannot instantiate an interface (no constructor defined).\");\n });\n c = goog.defineClass.createSealingConstructor_(c, a);\n a && goog.inherits(c, a);\n delete b.constructor;\n delete b.statics;\n goog.defineClass.applyProperties_(c.prototype, b);\n null != d && (d instanceof Function ? d(c) : goog.defineClass.applyProperties_(c, d));\n return c;\n};\ngoog.defineClass.SEAL_CLASS_INSTANCES = goog.DEBUG;\ngoog.defineClass.createSealingConstructor_ = function(a, b) {\n return goog.defineClass.SEAL_CLASS_INSTANCES ? function() {\n var c = a.apply(this, arguments) || this;\n c[goog.UID_PROPERTY_] = c[goog.UID_PROPERTY_];\n return c;\n } : a;\n};\ngoog.defineClass.OBJECT_PROTOTYPE_FIELDS_ = \"constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf\".split(\" \");\ngoog.defineClass.applyProperties_ = function(a, b) {\n for (var c in b) {\n Object.prototype.hasOwnProperty.call(b, c) && (a[c] = b[c]);\n }\n for (var d = 0; d < goog.defineClass.OBJECT_PROTOTYPE_FIELDS_.length; d++) {\n c = goog.defineClass.OBJECT_PROTOTYPE_FIELDS_[d], Object.prototype.hasOwnProperty.call(b, c) && (a[c] = b[c]);\n }\n};\ngoog.identity_ = function(a) {\n return a;\n};\ngoog.createTrustedTypesPolicy = function(a) {\n var b = null, c = goog.global.trustedTypes;\n if (!c || !c.createPolicy) {\n return b;\n }\n try {\n b = c.createPolicy(a, {createHTML:goog.identity_, createScript:goog.identity_, createScriptURL:goog.identity_});\n } catch (d) {\n goog.logToConsole_(d.message);\n }\n return b;\n};\n!COMPILED && goog.DEPENDENCIES_ENABLED && (goog.isEdge_ = function() {\n return !!(goog.global.navigator && goog.global.navigator.userAgent ? goog.global.navigator.userAgent : \"\").match(/Edge\\/(\\d+)(\\.\\d)*/i);\n}, goog.inHtmlDocument_ = function() {\n var a = goog.global.document;\n return null != a && \"write\" in a;\n}, goog.isDocumentLoading_ = function() {\n var a = goog.global.document;\n return a.attachEvent ? \"complete\" != a.readyState : \"loading\" == a.readyState;\n}, goog.findBasePath_ = function() {\n if (void 0 != goog.global.CLOSURE_BASE_PATH && \"string\" === typeof goog.global.CLOSURE_BASE_PATH) {\n goog.basePath = goog.global.CLOSURE_BASE_PATH;\n } else {\n if (goog.inHtmlDocument_()) {\n var a = goog.global.document, b = a.currentScript;\n a = b ? [b] : a.getElementsByTagName(\"SCRIPT\");\n for (b = a.length - 1; 0 <= b; --b) {\n var c = a[b].src, d = c.lastIndexOf(\"?\");\n d = -1 == d ? c.length : d;\n if (\"base.js\" == c.substr(d - 7, 7)) {\n goog.basePath = c.substr(0, d - 7);\n break;\n }\n }\n }\n }\n}, goog.findBasePath_(), goog.Transpiler = function() {\n this.requiresTranspilation_ = null;\n this.transpilationTarget_ = goog.TRANSPILE_TO_LANGUAGE;\n}, goog.Transpiler.prototype.createRequiresTranspilation_ = function() {\n function a(f, g) {\n e ? d[f] = !0 : g() ? (c = f, d[f] = !1) : e = d[f] = !0;\n }\n function b(f) {\n try {\n return !!eval(goog.CLOSURE_EVAL_PREFILTER_.createScript(f));\n } catch (g) {\n return !1;\n }\n }\n var c = \"es3\", d = {es3:!1}, e = !1;\n a(\"es5\", function() {\n return b(\"[1,].length==1\");\n });\n a(\"es6\", function() {\n return goog.isEdge_() ? !1 : b('(()=>{\"use strict\";class X{constructor(){if(new.target!=String)throw 1;this.x=42}}let q=Reflect.construct(X,[],String);if(q.x!=42||!(q instanceof String))throw 1;for(const a of[2,3]){if(a==2)continue;function f(z={a}){let a=0;return z.a}{function f(){return 0;}}return f()==3}})()');\n });\n a(\"es7\", function() {\n return b(\"2**3==8\");\n });\n a(\"es8\", function() {\n return b(\"async()=>1,1\");\n });\n a(\"es9\", function() {\n return b(\"({...rest}={}),1\");\n });\n a(\"es_2019\", function() {\n return b('let r;try{throw 0}catch{r=\"\\u2029\"};r');\n });\n a(\"es_2020\", function() {\n return b(\"null?.x??1\");\n });\n a(\"es_next\", function() {\n return !1;\n });\n return {target:c, map:d};\n}, goog.Transpiler.prototype.needsTranspile = function(a, b) {\n if (\"always\" == goog.TRANSPILE) {\n return !0;\n }\n if (\"never\" == goog.TRANSPILE) {\n return !1;\n }\n if (!this.requiresTranspilation_) {\n var c = this.createRequiresTranspilation_();\n this.requiresTranspilation_ = c.map;\n this.transpilationTarget_ = this.transpilationTarget_ || c.target;\n }\n if (a in this.requiresTranspilation_) {\n return this.requiresTranspilation_[a] ? !0 : !goog.inHtmlDocument_() || \"es6\" != b || \"noModule\" in goog.global.document.createElement(\"script\") ? !1 : !0;\n }\n throw Error(\"Unknown language mode: \" + a);\n}, goog.Transpiler.prototype.transpile = function(a, b) {\n return goog.transpile_(a, b, this.transpilationTarget_);\n}, goog.transpiler_ = new goog.Transpiler, goog.protectScriptTag_ = function(a) {\n return a.replace(/<\\/(SCRIPT)/ig, \"\\\\x3c/$1\");\n}, goog.DebugLoader_ = function() {\n this.dependencies_ = {};\n this.idToPath_ = {};\n this.written_ = {};\n this.loadingDeps_ = [];\n this.depsToLoad_ = [];\n this.paused_ = !1;\n this.factory_ = new goog.DependencyFactory(goog.transpiler_);\n this.deferredCallbacks_ = {};\n this.deferredQueue_ = [];\n}, goog.DebugLoader_.prototype.bootstrap = function(a, b) {\n function c() {\n d && (goog.global.setTimeout(d, 0), d = null);\n }\n var d = b;\n if (a.length) {\n b = [];\n for (var e = 0; e < a.length; e++) {\n var f = this.getPathFromDeps_(a[e]);\n if (!f) {\n throw Error(\"Unregonized namespace: \" + a[e]);\n }\n b.push(this.dependencies_[f]);\n }\n f = goog.require;\n var g = 0;\n for (e = 0; e < a.length; e++) {\n f(a[e]), b[e].onLoad(function() {\n ++g == a.length && c();\n });\n }\n } else {\n c();\n }\n}, goog.DebugLoader_.prototype.loadClosureDeps = function() {\n this.depsToLoad_.push(this.factory_.createDependency(goog.normalizePath_(goog.basePath + \"deps.js\"), \"deps.js\", [], [], {}, !1));\n this.loadDeps_();\n}, goog.DebugLoader_.prototype.requested = function(a, b) {\n (a = this.getPathFromDeps_(a)) && (b || this.areDepsLoaded_(this.dependencies_[a].requires)) && (b = this.deferredCallbacks_[a]) && (delete this.deferredCallbacks_[a], b());\n}, goog.DebugLoader_.prototype.setDependencyFactory = function(a) {\n this.factory_ = a;\n}, goog.DebugLoader_.prototype.load_ = function(a) {\n if (this.getPathFromDeps_(a)) {\n var b = this, c = [], d = function(e) {\n var f = b.getPathFromDeps_(e);\n if (!f) {\n throw Error(\"Bad dependency path or symbol: \" + e);\n }\n if (!b.written_[f]) {\n b.written_[f] = !0;\n e = b.dependencies_[f];\n for (f = 0; f < e.requires.length; f++) {\n goog.isProvided_(e.requires[f]) || d(e.requires[f]);\n }\n c.push(e);\n }\n };\n d(a);\n a = !!this.depsToLoad_.length;\n this.depsToLoad_ = this.depsToLoad_.concat(c);\n this.paused_ || a || this.loadDeps_();\n } else {\n goog.logToConsole_(\"goog.require could not find: \" + a);\n }\n}, goog.DebugLoader_.prototype.loadDeps_ = function() {\n for (var a = this, b = this.paused_; this.depsToLoad_.length && !b;) {\n (function() {\n var c = !1, d = a.depsToLoad_.shift(), e = !1;\n a.loading_(d);\n var f = {pause:function() {\n if (c) {\n throw Error(\"Cannot call pause after the call to load.\");\n }\n b = !0;\n }, resume:function() {\n c ? a.resume_() : b = !1;\n }, loaded:function() {\n if (e) {\n throw Error(\"Double call to loaded.\");\n }\n e = !0;\n a.loaded_(d);\n }, pending:function() {\n for (var g = [], h = 0; h < a.loadingDeps_.length; h++) {\n g.push(a.loadingDeps_[h]);\n }\n return g;\n }, setModuleState:function(g) {\n goog.moduleLoaderState_ = {type:g, moduleName:\"\", declareLegacyNamespace:!1};\n }, registerEs6ModuleExports:function(g, h, k) {\n k && (goog.loadedModules_[k] = {exports:h, type:goog.ModuleType.ES6, moduleId:k || \"\"});\n }, registerGoogModuleExports:function(g, h) {\n goog.loadedModules_[g] = {exports:h, type:goog.ModuleType.GOOG, moduleId:g};\n }, clearModuleState:function() {\n goog.moduleLoaderState_ = null;\n }, defer:function(g) {\n if (c) {\n throw Error(\"Cannot register with defer after the call to load.\");\n }\n a.defer_(d, g);\n }, areDepsLoaded:function() {\n return a.areDepsLoaded_(d.requires);\n }};\n try {\n d.load(f);\n } finally {\n c = !0;\n }\n })();\n }\n b && this.pause_();\n}, goog.DebugLoader_.prototype.pause_ = function() {\n this.paused_ = !0;\n}, goog.DebugLoader_.prototype.resume_ = function() {\n this.paused_ && (this.paused_ = !1, this.loadDeps_());\n}, goog.DebugLoader_.prototype.loading_ = function(a) {\n this.loadingDeps_.push(a);\n}, goog.DebugLoader_.prototype.loaded_ = function(a) {\n for (var b = 0; b < this.loadingDeps_.length; b++) {\n if (this.loadingDeps_[b] == a) {\n this.loadingDeps_.splice(b, 1);\n break;\n }\n }\n for (b = 0; b < this.deferredQueue_.length; b++) {\n if (this.deferredQueue_[b] == a.path) {\n this.deferredQueue_.splice(b, 1);\n break;\n }\n }\n if (this.loadingDeps_.length == this.deferredQueue_.length && !this.depsToLoad_.length) {\n for (; this.deferredQueue_.length;) {\n this.requested(this.deferredQueue_.shift(), !0);\n }\n }\n a.loaded();\n}, goog.DebugLoader_.prototype.areDepsLoaded_ = function(a) {\n for (var b = 0; b < a.length; b++) {\n var c = this.getPathFromDeps_(a[b]);\n if (!c || !(c in this.deferredCallbacks_ || goog.isProvided_(a[b]))) {\n return !1;\n }\n }\n return !0;\n}, goog.DebugLoader_.prototype.getPathFromDeps_ = function(a) {\n return a in this.idToPath_ ? this.idToPath_[a] : a in this.dependencies_ ? a : null;\n}, goog.DebugLoader_.prototype.defer_ = function(a, b) {\n this.deferredCallbacks_[a.path] = b;\n this.deferredQueue_.push(a.path);\n}, goog.LoadController = function() {\n}, goog.LoadController.prototype.pause = function() {\n}, goog.LoadController.prototype.resume = function() {\n}, goog.LoadController.prototype.loaded = function() {\n}, goog.LoadController.prototype.pending = function() {\n}, goog.LoadController.prototype.registerEs6ModuleExports = function(a, b, c) {\n}, goog.LoadController.prototype.setModuleState = function(a) {\n}, goog.LoadController.prototype.clearModuleState = function() {\n}, goog.LoadController.prototype.defer = function(a) {\n}, goog.LoadController.prototype.areDepsLoaded = function() {\n}, goog.Dependency = function(a, b, c, d, e) {\n this.path = a;\n this.relativePath = b;\n this.provides = c;\n this.requires = d;\n this.loadFlags = e;\n this.loaded_ = !1;\n this.loadCallbacks_ = [];\n}, goog.Dependency.prototype.getPathName = function() {\n var a = this.path, b = a.indexOf(\"://\");\n 0 <= b && (a = a.substring(b + 3), b = a.indexOf(\"/\"), 0 <= b && (a = a.substring(b + 1)));\n return a;\n}, goog.Dependency.prototype.onLoad = function(a) {\n this.loaded_ ? a() : this.loadCallbacks_.push(a);\n}, goog.Dependency.prototype.loaded = function() {\n this.loaded_ = !0;\n var a = this.loadCallbacks_;\n this.loadCallbacks_ = [];\n for (var b = 0; b < a.length; b++) {\n a[b]();\n }\n}, goog.Dependency.defer_ = !1, goog.Dependency.callbackMap_ = {}, goog.Dependency.registerCallback_ = function(a) {\n var b = Math.random().toString(32);\n goog.Dependency.callbackMap_[b] = a;\n return b;\n}, goog.Dependency.unregisterCallback_ = function(a) {\n delete goog.Dependency.callbackMap_[a];\n}, goog.Dependency.callback_ = function(a, b) {\n if (a in goog.Dependency.callbackMap_) {\n for (var c = goog.Dependency.callbackMap_[a], d = [], e = 1; e < arguments.length; e++) {\n d.push(arguments[e]);\n }\n c.apply(void 0, d);\n } else {\n throw Error(\"Callback key \" + a + \" does not exist (was base.js loaded more than once?).\");\n }\n}, goog.Dependency.prototype.load = function(a) {\n if (goog.global.CLOSURE_IMPORT_SCRIPT) {\n goog.global.CLOSURE_IMPORT_SCRIPT(this.path) ? a.loaded() : a.pause();\n } else {\n if (goog.inHtmlDocument_()) {\n var b = goog.global.document;\n if (\"complete\" == b.readyState && !goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING) {\n if (/\\bdeps.js$/.test(this.path)) {\n a.loaded();\n return;\n }\n throw Error('Cannot write \"' + this.path + '\" after document load');\n }\n var c = goog.getScriptNonce();\n if (!goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING && goog.isDocumentLoading_()) {\n var d = function(h) {\n h.readyState && \"complete\" != h.readyState ? h.onload = d : (goog.Dependency.unregisterCallback_(e), a.loaded());\n };\n var e = goog.Dependency.registerCallback_(d);\n c = c ? ' nonce=\"' + c + '\"' : \"\";\n var f = '<script src=\"' + this.path + '\"' + c + (goog.Dependency.defer_ ? \" defer\" : \"\") + ' id=\"script-' + e + '\">\\x3c/script>';\n f += \"<script\" + c + \">\";\n f = goog.Dependency.defer_ ? f + (\"document.getElementById('script-\" + e + \"').onload = function() {\\n goog.Dependency.callback_('\" + e + \"', this);\\n};\\n\") : f + (\"goog.Dependency.callback_('\" + e + \"', document.getElementById('script-\" + e + \"'));\");\n f += \"\\x3c/script>\";\n b.write(goog.TRUSTED_TYPES_POLICY_ ? goog.TRUSTED_TYPES_POLICY_.createHTML(f) : f);\n } else {\n var g = b.createElement(\"script\");\n g.defer = goog.Dependency.defer_;\n g.async = !1;\n c && (g.nonce = c);\n goog.DebugLoader_.IS_OLD_IE_ ? (a.pause(), g.onreadystatechange = function() {\n if (\"loaded\" == g.readyState || \"complete\" == g.readyState) {\n a.loaded(), a.resume();\n }\n }) : g.onload = function() {\n g.onload = null;\n a.loaded();\n };\n g.src = goog.TRUSTED_TYPES_POLICY_ ? goog.TRUSTED_TYPES_POLICY_.createScriptURL(this.path) : this.path;\n b.head.appendChild(g);\n }\n } else {\n goog.logToConsole_(\"Cannot use default debug loader outside of HTML documents.\"), \"deps.js\" == this.relativePath ? (goog.logToConsole_(\"Consider setting CLOSURE_IMPORT_SCRIPT before loading base.js, or setting CLOSURE_NO_DEPS to true.\"), a.loaded()) : a.pause();\n }\n }\n}, goog.Es6ModuleDependency = function(a, b, c, d, e) {\n goog.Dependency.call(this, a, b, c, d, e);\n}, goog.inherits(goog.Es6ModuleDependency, goog.Dependency), goog.Es6ModuleDependency.prototype.load = function(a) {\n function b(l, n) {\n var m = \"\", p = goog.getScriptNonce();\n p && (m = ' nonce=\"' + p + '\"');\n l = n ? '<script type=\"module\" crossorigin' + m + \">\" + n + \"\\x3c/script>\" : '<script type=\"module\" crossorigin src=\"' + l + '\"' + m + \">\\x3c/script>\";\n d.write(goog.TRUSTED_TYPES_POLICY_ ? goog.TRUSTED_TYPES_POLICY_.createHTML(l) : l);\n }\n function c(l, n) {\n var m = d.createElement(\"script\");\n m.defer = !0;\n m.async = !1;\n m.type = \"module\";\n m.setAttribute(\"crossorigin\", !0);\n var p = goog.getScriptNonce();\n p && (m.nonce = p);\n n ? m.text = goog.TRUSTED_TYPES_POLICY_ ? goog.TRUSTED_TYPES_POLICY_.createScript(n) : n : m.src = goog.TRUSTED_TYPES_POLICY_ ? goog.TRUSTED_TYPES_POLICY_.createScriptURL(l) : l;\n d.head.appendChild(m);\n }\n if (goog.global.CLOSURE_IMPORT_SCRIPT) {\n goog.global.CLOSURE_IMPORT_SCRIPT(this.path) ? a.loaded() : a.pause();\n } else {\n if (goog.inHtmlDocument_()) {\n var d = goog.global.document, e = this;\n if (goog.isDocumentLoading_()) {\n var f = b;\n goog.Dependency.defer_ = !0;\n } else {\n f = c;\n }\n var g = goog.Dependency.registerCallback_(function() {\n goog.Dependency.unregisterCallback_(g);\n a.setModuleState(goog.ModuleType.ES6);\n });\n f(void 0, 'goog.Dependency.callback_(\"' + g + '\")');\n f(this.path, void 0);\n var h = goog.Dependency.registerCallback_(function(l) {\n goog.Dependency.unregisterCallback_(h);\n a.registerEs6ModuleExports(e.path, l, goog.moduleLoaderState_.moduleName);\n });\n f(void 0, 'import * as m from \"' + this.path + '\"; goog.Dependency.callback_(\"' + h + '\", m)');\n var k = goog.Dependency.registerCallback_(function() {\n goog.Dependency.unregisterCallback_(k);\n a.clearModuleState();\n a.loaded();\n });\n f(void 0, 'goog.Dependency.callback_(\"' + k + '\")');\n } else {\n goog.logToConsole_(\"Cannot use default debug loader outside of HTML documents.\"), a.pause();\n }\n }\n}, goog.TransformedDependency = function(a, b, c, d, e) {\n goog.Dependency.call(this, a, b, c, d, e);\n this.contents_ = null;\n this.lazyFetch_ = !goog.inHtmlDocument_() || !(\"noModule\" in goog.global.document.createElement(\"script\"));\n}, goog.inherits(goog.TransformedDependency, goog.Dependency), goog.TransformedDependency.prototype.load = function(a) {\n function b() {\n e.contents_ = goog.loadFileSync_(e.path);\n e.contents_ && (e.contents_ = e.transform(e.contents_), e.contents_ && (e.contents_ += \"\\n//# sourceURL=\" + e.path));\n }\n function c() {\n e.lazyFetch_ && b();\n if (e.contents_) {\n f && a.setModuleState(goog.ModuleType.ES6);\n try {\n var n = e.contents_;\n e.contents_ = null;\n goog.globalEval(goog.CLOSURE_EVAL_PREFILTER_.createScript(n));\n if (f) {\n var m = goog.moduleLoaderState_.moduleName;\n }\n } finally {\n f && a.clearModuleState();\n }\n f && goog.global.$jscomp.require.ensure([e.getPathName()], function() {\n a.registerEs6ModuleExports(e.path, goog.global.$jscomp.require(e.getPathName()), m);\n });\n a.loaded();\n }\n }\n function d() {\n var n = goog.global.document, m = goog.Dependency.registerCallback_(function() {\n goog.Dependency.unregisterCallback_(m);\n c();\n }), p = goog.getScriptNonce();\n p = \"<script\" + (p ? ' nonce=\"' + p + '\"' : \"\") + \">\" + goog.protectScriptTag_('goog.Dependency.callback_(\"' + m + '\");') + \"\\x3c/script>\";\n n.write(goog.TRUSTED_TYPES_POLICY_ ? goog.TRUSTED_TYPES_POLICY_.createHTML(p) : p);\n }\n var e = this;\n if (goog.global.CLOSURE_IMPORT_SCRIPT) {\n b(), this.contents_ && goog.global.CLOSURE_IMPORT_SCRIPT(\"\", this.contents_) ? (this.contents_ = null, a.loaded()) : a.pause();\n } else {\n var f = this.loadFlags.module == goog.ModuleType.ES6;\n this.lazyFetch_ || b();\n var g = 1 < a.pending().length, h = g && goog.DebugLoader_.IS_OLD_IE_;\n g = goog.Dependency.defer_ && (g || goog.isDocumentLoading_());\n if (h || g) {\n a.defer(function() {\n c();\n });\n } else {\n var k = goog.global.document;\n h = goog.inHtmlDocument_() && (\"ActiveXObject\" in goog.global || goog.isEdge_());\n if (f && goog.inHtmlDocument_() && goog.isDocumentLoading_() && !h) {\n goog.Dependency.defer_ = !0;\n a.pause();\n var l = k.onreadystatechange;\n k.onreadystatechange = function() {\n \"interactive\" == k.readyState && (k.onreadystatechange = l, c(), a.resume());\n \"function\" === typeof l && l.apply(void 0, arguments);\n };\n } else {\n !goog.DebugLoader_.IS_OLD_IE_ && goog.inHtmlDocument_() && goog.isDocumentLoading_() ? d() : c();\n }\n }\n }\n}, goog.TransformedDependency.prototype.transform = function(a) {\n}, goog.TranspiledDependency = function(a, b, c, d, e, f) {\n goog.TransformedDependency.call(this, a, b, c, d, e);\n this.transpiler = f;\n}, goog.inherits(goog.TranspiledDependency, goog.TransformedDependency), goog.TranspiledDependency.prototype.transform = function(a) {\n return this.transpiler.transpile(a, this.getPathName());\n}, goog.PreTranspiledEs6ModuleDependency = function(a, b, c, d, e) {\n goog.TransformedDependency.call(this, a, b, c, d, e);\n}, goog.inherits(goog.PreTranspiledEs6ModuleDependency, goog.TransformedDependency), goog.PreTranspiledEs6ModuleDependency.prototype.transform = function(a) {\n return a;\n}, goog.GoogModuleDependency = function(a, b, c, d, e, f, g) {\n goog.TransformedDependency.call(this, a, b, c, d, e);\n this.needsTranspile_ = f;\n this.transpiler_ = g;\n}, goog.inherits(goog.GoogModuleDependency, goog.TransformedDependency), goog.GoogModuleDependency.prototype.transform = function(a) {\n this.needsTranspile_ && (a = this.transpiler_.transpile(a, this.getPathName()));\n return goog.LOAD_MODULE_USING_EVAL && void 0 !== goog.global.JSON ? \"goog.loadModule(\" + goog.global.JSON.stringify(a + \"\\n//# sourceURL=\" + this.path + \"\\n\") + \");\" : 'goog.loadModule(function(exports) {\"use strict\";' + a + \"\\n;return exports});\\n//# sourceURL=\" + this.path + \"\\n\";\n}, goog.DebugLoader_.IS_OLD_IE_ = !(goog.global.atob || !goog.global.document || !goog.global.document.all), goog.DebugLoader_.prototype.addDependency = function(a, b, c, d) {\n b = b || [];\n a = a.replace(/\\\\/g, \"/\");\n var e = goog.normalizePath_(goog.basePath + a);\n d && \"boolean\" !== typeof d || (d = d ? {module:goog.ModuleType.GOOG} : {});\n c = this.factory_.createDependency(e, a, b, c, d, goog.transpiler_.needsTranspile(d.lang || \"es3\", d.module));\n this.dependencies_[e] = c;\n for (c = 0; c < b.length; c++) {\n this.idToPath_[b[c]] = e;\n }\n this.idToPath_[a] = e;\n}, goog.DependencyFactory = function(a) {\n this.transpiler = a;\n}, goog.DependencyFactory.prototype.createDependency = function(a, b, c, d, e, f) {\n return e.module == goog.ModuleType.GOOG ? new goog.GoogModuleDependency(a, b, c, d, e, f, this.transpiler) : f ? new goog.TranspiledDependency(a, b, c, d, e, this.transpiler) : e.module == goog.ModuleType.ES6 ? \"never\" == goog.TRANSPILE && goog.ASSUME_ES_MODULES_TRANSPILED ? new goog.PreTranspiledEs6ModuleDependency(a, b, c, d, e) : new goog.Es6ModuleDependency(a, b, c, d, e) : new goog.Dependency(a, b, c, d, e);\n}, goog.debugLoader_ = new goog.DebugLoader_, goog.loadClosureDeps = function() {\n goog.debugLoader_.loadClosureDeps();\n}, goog.setDependencyFactory = function(a) {\n goog.debugLoader_.setDependencyFactory(a);\n}, goog.TRUSTED_TYPES_POLICY_ = goog.TRUSTED_TYPES_POLICY_NAME ? goog.createTrustedTypesPolicy(goog.TRUSTED_TYPES_POLICY_NAME + \"#base\") : null, goog.global.CLOSURE_NO_DEPS || goog.debugLoader_.loadClosureDeps(), goog.bootstrap = function(a, b) {\n goog.debugLoader_.bootstrap(a, b);\n});\nif (!COMPILED) {\n var isChrome87 = !1;\n try {\n isChrome87 = eval(goog.global.trustedTypes.emptyScript) !== goog.global.trustedTypes.emptyScript;\n } catch (a) {\n }\n goog.CLOSURE_EVAL_PREFILTER_ = goog.global.trustedTypes && isChrome87 && goog.createTrustedTypesPolicy(\"goog#base#devonly#eval\") || {createScript:goog.identity_};\n}\n;goog.object = {};\ngoog.object.forEach = function(a, b, c) {\n for (const d in a) {\n b.call(c, a[d], d, a);\n }\n};\ngoog.object.filter = function(a, b, c) {\n const d = {};\n for (const e in a) {\n b.call(c, a[e], e, a) && (d[e] = a[e]);\n }\n return d;\n};\ngoog.object.map = function(a, b, c) {\n const d = {};\n for (const e in a) {\n d[e] = b.call(c, a[e], e, a);\n }\n return d;\n};\ngoog.object.some = function(a, b, c) {\n for (const d in a) {\n if (b.call(c, a[d], d, a)) {\n return !0;\n }\n }\n return !1;\n};\ngoog.object.every = function(a, b, c) {\n for (const d in a) {\n if (!b.call(c, a[d], d, a)) {\n return !1;\n }\n }\n return !0;\n};\ngoog.object.getCount = function(a) {\n let b = 0;\n for (const c in a) {\n b++;\n }\n return b;\n};\ngoog.object.getAnyKey = function(a) {\n for (const b in a) {\n return b;\n }\n};\ngoog.object.getAnyValue = function(a) {\n for (const b in a) {\n return a[b];\n }\n};\ngoog.object.contains = function(a, b) {\n return goog.object.containsValue(a, b);\n};\ngoog.object.getValues = function(a) {\n const b = [];\n let c = 0;\n for (const d in a) {\n b[c++] = a[d];\n }\n return b;\n};\ngoog.object.getKeys = function(a) {\n const b = [];\n let c = 0;\n for (const d in a) {\n b[c++] = d;\n }\n return b;\n};\ngoog.object.getValueByKeys = function(a, b) {\n var c = goog.isArrayLike(b);\n const d = c ? b : arguments;\n for (c = c ? 0 : 1; c < d.length; c++) {\n if (null == a) {\n return;\n }\n a = a[d[c]];\n }\n return a;\n};\ngoog.object.containsKey = function(a, b) {\n return null !== a && b in a;\n};\ngoog.object.containsValue = function(a, b) {\n for (const c in a) {\n if (a[c] == b) {\n return !0;\n }\n }\n return !1;\n};\ngoog.object.findKey = function(a, b, c) {\n for (const d in a) {\n if (b.call(c, a[d], d, a)) {\n return d;\n }\n }\n};\ngoog.object.findValue = function(a, b, c) {\n return (b = goog.object.findKey(a, b, c)) && a[b];\n};\ngoog.object.isEmpty = function(a) {\n for (const b in a) {\n return !1;\n }\n return !0;\n};\ngoog.object.clear = function(a) {\n for (const b in a) {\n delete a[b];\n }\n};\ngoog.object.remove = function(a, b) {\n let c;\n (c = b in a) && delete a[b];\n return c;\n};\ngoog.object.add = function(a, b, c) {\n if (null !== a && b in a) {\n throw Error('The object already contains the key \"' + b + '\"');\n }\n goog.object.set(a, b, c);\n};\ngoog.object.get = function(a, b, c) {\n return null !== a && b in a ? a[b] : c;\n};\ngoog.object.set = function(a, b, c) {\n a[b] = c;\n};\ngoog.object.setIfUndefined = function(a, b, c) {\n return b in a ? a[b] : a[b] = c;\n};\ngoog.object.setWithReturnValueIfNotSet = function(a, b, c) {\n if (b in a) {\n return a[b];\n }\n c = c();\n return a[b] = c;\n};\ngoog.object.equals = function(a, b) {\n for (const c in a) {\n if (!(c in b) || a[c] !== b[c]) {\n return !1;\n }\n }\n for (const c in b) {\n if (!(c in a)) {\n return !1;\n }\n }\n return !0;\n};\ngoog.object.clone = function(a) {\n const b = {};\n for (const c in a) {\n b[c] = a[c];\n }\n return b;\n};\ngoog.object.unsafeClone = function(a) {\n if (!a || \"object\" !== typeof a) {\n return a;\n }\n if (\"function\" === typeof a.clone) {\n return a.clone();\n }\n const b = Array.isArray(a) ? [] : \"function\" !== typeof ArrayBuffer || \"function\" !== typeof ArrayBuffer.isView || !ArrayBuffer.isView(a) || a instanceof DataView ? {} : new a.constructor(a.length);\n for (const c in a) {\n b[c] = goog.object.unsafeClone(a[c]);\n }\n return b;\n};\ngoog.object.transpose = function(a) {\n const b = {};\n for (const c in a) {\n b[a[c]] = c;\n }\n return b;\n};\ngoog.object.PROTOTYPE_FIELDS_ = \"constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf\".split(\" \");\ngoog.object.extend = function(a, b) {\n let c, d;\n for (let e = 1; e < arguments.length; e++) {\n d = arguments[e];\n for (c in d) {\n a[c] = d[c];\n }\n for (let f = 0; f < goog.object.PROTOTYPE_FIELDS_.length; f++) {\n c = goog.object.PROTOTYPE_FIELDS_[f], Object.prototype.hasOwnProperty.call(d, c) && (a[c] = d[c]);\n }\n }\n};\ngoog.object.create = function(a) {\n const b = arguments.length;\n if (1 == b && Array.isArray(arguments[0])) {\n return goog.object.create.apply(null, arguments[0]);\n }\n if (b % 2) {\n throw Error(\"Uneven number of arguments\");\n }\n const c = {};\n for (let d = 0; d < b; d += 2) {\n c[arguments[d]] = arguments[d + 1];\n }\n return c;\n};\ngoog.object.createSet = function(a) {\n const b = arguments.length;\n if (1 == b && Array.isArray(arguments[0])) {\n return goog.object.createSet.apply(null, arguments[0]);\n }\n const c = {};\n for (let d = 0; d < b; d++) {\n c[arguments[d]] = !0;\n }\n return c;\n};\ngoog.object.createImmutableView = function(a) {\n let b = a;\n Object.isFrozen && !Object.isFrozen(a) && (b = Object.create(a), Object.freeze(b));\n return b;\n};\ngoog.object.isImmutableView = function(a) {\n return !!Object.isFrozen && Object.isFrozen(a);\n};\ngoog.object.getAllPropertyNames = function(a, b, c) {\n if (!a) {\n return [];\n }\n if (!Object.getOwnPropertyNames || !Object.getPrototypeOf) {\n return goog.object.getKeys(a);\n }\n const d = {};\n for (; a && (a !== Object.prototype || b) && (a !== Function.prototype || c);) {\n const e = Object.getOwnPropertyNames(a);\n for (let f = 0; f < e.length; f++) {\n d[e[f]] = !0;\n }\n a = Object.getPrototypeOf(a);\n }\n return goog.object.getKeys(d);\n};\ngoog.object.getSuperClass = function(a) {\n return (a = Object.getPrototypeOf(a.prototype)) && a.constructor;\n};\nvar com = {cognitect:{}};\ncom.cognitect.transit = {};\ncom.cognitect.transit.util = {};\ncom.cognitect.transit.util.objectKeys = \"undefined\" != typeof Object.keys ? function(a) {\n return Object.keys(a);\n} : function(a) {\n return goog.object.getKeys(a);\n};\ncom.cognitect.transit.util.isArray = \"undefined\" != typeof Array.isArray ? function(a) {\n return Array.isArray(a);\n} : function(a) {\n return \"array\" === goog.typeOf(a);\n};\ncom.cognitect.transit.util.chars = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\";\ncom.cognitect.transit.util.randInt = function(a) {\n return Math.round(Math.random() * a);\n};\ncom.cognitect.transit.util.randHex = function() {\n return com.cognitect.transit.util.randInt(15).toString(16);\n};\ncom.cognitect.transit.util.randomUUID = function() {\n var a = (8 | 3 & com.cognitect.transit.util.randInt(14)).toString(16);\n return com.cognitect.transit.util.randHex() + com.cognitect.transit.util.randHex() + com.cognitect.transit.util.randHex() + com.cognitect.transit.util.randHex() + com.cognitect.transit.util.randHex() + com.cognitect.transit.util.randHex() + com.cognitect.transit.util.randHex() + com.cognitect.transit.util.randHex() + \"-\" + com.cognitect.transit.util.randHex() + com.cognitect.transit.util.randHex() + com.cognitect.transit.util.randHex() + com.cognitect.transit.util.randHex() + \"-4\" + com.cognitect.transit.util.randHex() + \n com.cognitect.transit.util.randHex() + com.cognitect.transit.util.randHex() + \"-\" + a + com.cognitect.transit.util.randHex() + com.cognitect.transit.util.randHex() + com.cognitect.transit.util.randHex() + \"-\" + com.cognitect.transit.util.randHex() + com.cognitect.transit.util.randHex() + com.cognitect.transit.util.randHex() + com.cognitect.transit.util.randHex() + com.cognitect.transit.util.randHex() + com.cognitect.transit.util.randHex() + com.cognitect.transit.util.randHex() + com.cognitect.transit.util.randHex() + \n com.cognitect.transit.util.randHex() + com.cognitect.transit.util.randHex() + com.cognitect.transit.util.randHex() + com.cognitect.transit.util.randHex();\n};\ncom.cognitect.transit.util.btoa = function(a) {\n if (\"undefined\" != typeof btoa) {\n return btoa(a);\n }\n a = String(a);\n for (var b, c, d = 0, e = com.cognitect.transit.util.chars, f = \"\"; a.charAt(d | 0) || (e = \"=\", d % 1); f += e.charAt(63 & b >> 8 - d % 1 * 8)) {\n c = a.charCodeAt(d += .75);\n if (255 < c) {\n throw Error(\"'btoa' failed: The string to be encoded contains characters outside of the Latin1 range.\");\n }\n b = b << 8 | c;\n }\n return f;\n};\ncom.cognitect.transit.util.atob = function(a) {\n if (\"undefined\" != typeof atob) {\n return atob(a);\n }\n a = String(a).replace(/=+$/, \"\");\n if (1 == a.length % 4) {\n throw Error(\"'atob' failed: The string to be decoded is not correctly encoded.\");\n }\n for (var b = 0, c, d, e = 0, f = \"\"; d = a.charAt(e++); ~d && (c = b % 4 ? 64 * c + d : d, b++ % 4) ? f += String.fromCharCode(255 & c >> (-2 * b & 6)) : 0) {\n d = com.cognitect.transit.util.chars.indexOf(d);\n }\n return f;\n};\ncom.cognitect.transit.util.Uint8ToBase64 = function(a) {\n for (var b = 0, c = a.length, d = \"\", e; b < c;) {\n e = a.subarray(b, Math.min(b + 32768, c)), d += String.fromCharCode.apply(null, e), b += 32768;\n }\n return com.cognitect.transit.util.btoa(d);\n};\ncom.cognitect.transit.util.Base64ToUint8 = function(a) {\n a = com.cognitect.transit.util.atob(a);\n for (var b = a.length, c = new Uint8Array(b), d = 0; d < b; d++) {\n var e = a.charCodeAt(d);\n c[d] = e;\n }\n return c;\n};\ncom.cognitect.transit.delimiters = {};\ncom.cognitect.transit.delimiters.ESC = \"~\";\ncom.cognitect.transit.delimiters.TAG = \"#\";\ncom.cognitect.transit.delimiters.SUB = \"^\";\ncom.cognitect.transit.delimiters.RES = \"`\";\ncom.cognitect.transit.delimiters.ESC_TAG = \"~#\";\ncom.cognitect.transit.caching = {};\ncom.cognitect.transit.caching.MIN_SIZE_CACHEABLE = 3;\ncom.cognitect.transit.caching.BASE_CHAR_IDX = 48;\ncom.cognitect.transit.caching.CACHE_CODE_DIGITS = 44;\ncom.cognitect.transit.caching.MAX_CACHE_ENTRIES = com.cognitect.transit.caching.CACHE_CODE_DIGITS * com.cognitect.transit.caching.CACHE_CODE_DIGITS;\ncom.cognitect.transit.caching.MAX_CACHE_SIZE = 4096;\ncom.cognitect.transit.caching.isCacheable = function(a, b) {\n if (a.length > com.cognitect.transit.caching.MIN_SIZE_CACHEABLE) {\n if (b) {\n return !0;\n }\n b = a.charAt(0);\n a = a.charAt(1);\n return b === com.cognitect.transit.delimiters.ESC ? \":\" === a || \"$\" === a || \"#\" === a : !1;\n }\n return !1;\n};\ncom.cognitect.transit.caching.idxToCode = function(a) {\n var b = Math.floor(a / com.cognitect.transit.caching.CACHE_CODE_DIGITS);\n a = String.fromCharCode(a % com.cognitect.transit.caching.CACHE_CODE_DIGITS + com.cognitect.transit.caching.BASE_CHAR_IDX);\n return 0 === b ? com.cognitect.transit.delimiters.SUB + a : com.cognitect.transit.delimiters.SUB + String.fromCharCode(b + com.cognitect.transit.caching.BASE_CHAR_IDX) + a;\n};\ncom.cognitect.transit.caching.WriteCache = function() {\n this.cacheSize = this.gen = this.idx = 0;\n this.cache = {};\n};\ncom.cognitect.transit.caching.WriteCache.prototype.write = function(a, b) {\n return com.cognitect.transit.caching.isCacheable(a, b) ? (this.cacheSize === com.cognitect.transit.caching.MAX_CACHE_SIZE ? (this.clear(), this.gen = 0, this.cache = {}) : this.idx === com.cognitect.transit.caching.MAX_CACHE_ENTRIES && this.clear(), b = this.cache[a], null == b ? (this.cache[a] = [com.cognitect.transit.caching.idxToCode(this.idx), this.gen], this.idx++, a) : b[1] != this.gen ? (b[1] = this.gen, b[0] = com.cognitect.transit.caching.idxToCode(this.idx), this.idx++, a) : b[0]) : a;\n};\ncom.cognitect.transit.caching.WriteCache.prototype.clear = function() {\n this.idx = 0;\n this.gen++;\n};\ncom.cognitect.transit.caching.writeCache = function() {\n return new com.cognitect.transit.caching.WriteCache;\n};\ncom.cognitect.transit.caching.isCacheCode = function(a) {\n return a.charAt(0) === com.cognitect.transit.delimiters.SUB && \" \" !== a.charAt(1);\n};\ncom.cognitect.transit.caching.codeToIdx = function(a) {\n if (2 === a.length) {\n return a.charCodeAt(1) - com.cognitect.transit.caching.BASE_CHAR_IDX;\n }\n var b = (a.charCodeAt(1) - com.cognitect.transit.caching.BASE_CHAR_IDX) * com.cognitect.transit.caching.CACHE_CODE_DIGITS;\n a = a.charCodeAt(2) - com.cognitect.transit.caching.BASE_CHAR_IDX;\n return b + a;\n};\ncom.cognitect.transit.caching.ReadCache = function() {\n this.idx = 0;\n this.cache = [];\n};\ncom.cognitect.transit.caching.ReadCache.prototype.write = function(a, b) {\n this.idx == com.cognitect.transit.caching.MAX_CACHE_ENTRIES && (this.idx = 0);\n this.cache[this.idx] = a;\n this.idx++;\n return a;\n};\ncom.cognitect.transit.caching.ReadCache.prototype.read = function(a, b) {\n return this.cache[com.cognitect.transit.caching.codeToIdx(a)];\n};\ncom.cognitect.transit.caching.ReadCache.prototype.clear = function() {\n this.idx = 0;\n};\ncom.cognitect.transit.caching.readCache = function() {\n return new com.cognitect.transit.caching.ReadCache;\n};\ncom.cognitect.transit.eq = {};\ncom.cognitect.transit.eq.hashCodeProperty = \"transit$hashCode$\";\ncom.cognitect.transit.eq.hashCodeCounter = 1;\ncom.cognitect.transit.eq.equals = function(a, b) {\n if (null == a) {\n return null == b;\n }\n if (a === b) {\n return !0;\n }\n if (\"object\" === typeof a) {\n if (com.cognitect.transit.util.isArray(a)) {\n if (com.cognitect.transit.util.isArray(b) && a.length === b.length) {\n for (var c = 0; c < a.length; c++) {\n if (!com.cognitect.transit.eq.equals(a[c], b[c])) {\n return !1;\n }\n }\n return !0;\n }\n return !1;\n }\n if (a.com$cognitect$transit$equals) {\n return a.com$cognitect$transit$equals(b);\n }\n if (null != b && \"object\" === typeof b) {\n if (b.com$cognitect$transit$equals) {\n return b.com$cognitect$transit$equals(a);\n }\n c = 0;\n var d = com.cognitect.transit.util.objectKeys(b).length, e;\n for (e in a) {\n if (a.hasOwnProperty(e) && (c++, !b.hasOwnProperty(e) || !com.cognitect.transit.eq.equals(a[e], b[e]))) {\n return !1;\n }\n }\n return c === d;\n }\n }\n return !1;\n};\ncom.cognitect.transit.eq.hashCombine = function(a, b) {\n return a ^ b + 2654435769 + (a << 6) + (a >> 2);\n};\ncom.cognitect.transit.eq.stringCodeCache = {};\ncom.cognitect.transit.eq.stringCodeCacheSize = 0;\ncom.cognitect.transit.eq.STR_CACHE_MAX = 256;\ncom.cognitect.transit.eq.hashString = function(a) {\n var b = com.cognitect.transit.eq.stringCodeCache[a];\n if (null != b) {\n return b;\n }\n for (var c = b = 0; c < a.length; ++c) {\n b = 31 * b + a.charCodeAt(c), b %= 4294967296;\n }\n com.cognitect.transit.eq.stringCodeCacheSize++;\n com.cognitect.transit.eq.stringCodeCacheSize >= com.cognitect.transit.eq.STR_CACHE_MAX && (com.cognitect.transit.eq.stringCodeCache = {}, com.cognitect.transit.eq.stringCodeCacheSize = 1);\n return com.cognitect.transit.eq.stringCodeCache[a] = b;\n};\ncom.cognitect.transit.eq.hashMapLike = function(a) {\n var b = 0;\n if (null != a.forEach) {\n a.forEach(function(g, h, k) {\n b = (b + (com.cognitect.transit.eq.hashCode(h) ^ com.cognitect.transit.eq.hashCode(g))) % 4503599627370496;\n });\n } else {\n for (var c = com.cognitect.transit.util.objectKeys(a), d = 0; d < c.length; d++) {\n var e = c[d], f = a[e];\n b = (b + (com.cognitect.transit.eq.hashCode(e) ^ com.cognitect.transit.eq.hashCode(f))) % 4503599627370496;\n }\n }\n return b;\n};\ncom.cognitect.transit.eq.hashArrayLike = function(a) {\n var b = 0;\n if (com.cognitect.transit.util.isArray(a)) {\n for (var c = 0; c < a.length; c++) {\n b = com.cognitect.transit.eq.hashCombine(b, com.cognitect.transit.eq.hashCode(a[c]));\n }\n } else {\n a.forEach && a.forEach(function(d, e) {\n b = com.cognitect.transit.eq.hashCombine(b, com.cognitect.transit.eq.hashCode(d));\n });\n }\n return b;\n};\ncom.cognitect.transit.eq.hashCode = function(a) {\n if (null == a) {\n return 0;\n }\n switch(typeof a) {\n case \"number\":\n return a;\n case \"boolean\":\n return !0 === a ? 1 : 0;\n case \"string\":\n return com.cognitect.transit.eq.hashString(a);\n case \"function\":\n var b = a[com.cognitect.transit.eq.hashCodeProperty];\n b || (b = com.cognitect.transit.eq.hashCodeCounter, \"undefined\" != typeof Object.defineProperty ? Object.defineProperty(a, com.cognitect.transit.eq.hashCodeProperty, {value:b, enumerable:!1}) : a[com.cognitect.transit.eq.hashCodeProperty] = b, com.cognitect.transit.eq.hashCodeCounter++);\n return b;\n default:\n return a instanceof Date ? a.valueOf() : com.cognitect.transit.util.isArray(a) ? com.cognitect.transit.eq.hashArrayLike(a) : a.com$cognitect$transit$hashCode ? a.com$cognitect$transit$hashCode() : com.cognitect.transit.eq.hashMapLike(a);\n }\n};\ncom.cognitect.transit.eq.extendToEQ = function(a, b) {\n a.com$cognitect$transit$hashCode = b.hashCode;\n a.com$cognitect$transit$equals = b.equals;\n return a;\n};\ngoog.debug = {};\nfunction module$contents$goog$debug$Error_DebugError(a, b) {\n if (Error.captureStackTrace) {\n Error.captureStackTrace(this, module$contents$goog$debug$Error_DebugError);\n } else {\n const c = Error().stack;\n c && (this.stack = c);\n }\n a && (this.message = String(a));\n b && (this.cause = b);\n this.reportErrorToServer = !0;\n}\ngoog.inherits(module$contents$goog$debug$Error_DebugError, Error);\nmodule$contents$goog$debug$Error_DebugError.prototype.name = \"CustomError\";\ngoog.debug.Error = module$contents$goog$debug$Error_DebugError;\ngoog.dom = {};\ngoog.dom.NodeType = {ELEMENT:1, ATTRIBUTE:2, TEXT:3, CDATA_SECTION:4, ENTITY_REFERENCE:5, ENTITY:6, PROCESSING_INSTRUCTION:7, COMMENT:8, DOCUMENT:9, DOCUMENT_TYPE:10, DOCUMENT_FRAGMENT:11, NOTATION:12};\ngoog.asserts = {};\ngoog.asserts.ENABLE_ASSERTS = goog.DEBUG;\ngoog.asserts.AssertionError = function(a, b) {\n module$contents$goog$debug$Error_DebugError.call(this, goog.asserts.subs_(a, b));\n this.messagePattern = a;\n};\ngoog.inherits(goog.asserts.AssertionError, module$contents$goog$debug$Error_DebugError);\ngoog.asserts.AssertionError.prototype.name = \"AssertionError\";\ngoog.asserts.DEFAULT_ERROR_HANDLER = function(a) {\n throw a;\n};\ngoog.asserts.errorHandler_ = goog.asserts.DEFAULT_ERROR_HANDLER;\ngoog.asserts.subs_ = function(a, b) {\n a = a.split(\"%s\");\n for (var c = \"\", d = a.length - 1, e = 0; e < d; e++) {\n c += a[e] + (e < b.length ? b[e] : \"%s\");\n }\n return c + a[d];\n};\ngoog.asserts.doAssertFailure_ = function(a, b, c, d) {\n var e = \"Assertion failed\";\n if (c) {\n e += \": \" + c;\n var f = d;\n } else {\n a && (e += \": \" + a, f = b);\n }\n a = new goog.asserts.AssertionError(\"\" + e, f || []);\n goog.asserts.errorHandler_(a);\n};\ngoog.asserts.setErrorHandler = function(a) {\n goog.asserts.ENABLE_ASSERTS && (goog.asserts.errorHandler_ = a);\n};\ngoog.asserts.assert = function(a, b, c) {\n goog.asserts.ENABLE_ASSERTS && !a && goog.asserts.doAssertFailure_(\"\", null, b, Array.prototype.slice.call(arguments, 2));\n return a;\n};\ngoog.asserts.assertExists = function(a, b, c) {\n goog.asserts.ENABLE_ASSERTS && null == a && goog.asserts.doAssertFailure_(\"Expected to exist: %s.\", [a], b, Array.prototype.slice.call(arguments, 2));\n return a;\n};\ngoog.asserts.fail = function(a, b) {\n goog.asserts.ENABLE_ASSERTS && goog.asserts.errorHandler_(new goog.asserts.AssertionError(\"Failure\" + (a ? \": \" + a : \"\"), Array.prototype.slice.call(arguments, 1)));\n};\ngoog.asserts.assertNumber = function(a, b, c) {\n goog.asserts.ENABLE_ASSERTS && \"number\" !== typeof a && goog.asserts.doAssertFailure_(\"Expected number but got %s: %s.\", [goog.typeOf(a), a], b, Array.prototype.slice.call(arguments, 2));\n return a;\n};\ngoog.asserts.assertString = function(a, b, c) {\n goog.asserts.ENABLE_ASSERTS && \"string\" !== typeof a && goog.asserts.doAssertFailure_(\"Expected string but got %s: %s.\", [goog.typeOf(a), a], b, Array.prototype.slice.call(arguments, 2));\n return a;\n};\ngoog.asserts.assertFunction = function(a, b, c) {\n goog.asserts.ENABLE_ASSERTS && \"function\" !== typeof a && goog.asserts.doAssertFailure_(\"Expected function but got %s: %s.\", [goog.typeOf(a), a], b, Array.prototype.slice.call(arguments, 2));\n return a;\n};\ngoog.asserts.assertObject = function(a, b, c) {\n goog.asserts.ENABLE_ASSERTS && !goog.isObject(a) && goog.asserts.doAssertFailure_(\"Expected object but got %s: %s.\", [goog.typeOf(a), a], b, Array.prototype.slice.call(arguments, 2));\n return a;\n};\ngoog.asserts.assertArray = function(a, b, c) {\n goog.asserts.ENABLE_ASSERTS && !Array.isArray(a) && goog.asserts.doAssertFailure_(\"Expected array but got %s: %s.\", [goog.typeOf(a), a], b, Array.prototype.slice.call(arguments, 2));\n return a;\n};\ngoog.asserts.assertBoolean = function(a, b, c) {\n goog.asserts.ENABLE_ASSERTS && \"boolean\" !== typeof a && goog.asserts.doAssertFailure_(\"Expected boolean but got %s: %s.\", [goog.typeOf(a), a], b, Array.prototype.slice.call(arguments, 2));\n return a;\n};\ngoog.asserts.assertElement = function(a, b, c) {\n !goog.asserts.ENABLE_ASSERTS || goog.isObject(a) && a.nodeType == goog.dom.NodeType.ELEMENT || goog.asserts.doAssertFailure_(\"Expected Element but got %s: %s.\", [goog.typeOf(a), a], b, Array.prototype.slice.call(arguments, 2));\n return a;\n};\ngoog.asserts.assertInstanceof = function(a, b, c, d) {\n !goog.asserts.ENABLE_ASSERTS || a instanceof b || goog.asserts.doAssertFailure_(\"Expected instanceof %s but got %s.\", [goog.asserts.getType_(b), goog.asserts.getType_(a)], c, Array.prototype.slice.call(arguments, 3));\n return a;\n};\ngoog.asserts.assertFinite = function(a, b, c) {\n !goog.asserts.ENABLE_ASSERTS || \"number\" == typeof a && isFinite(a) || goog.asserts.doAssertFailure_(\"Expected %s to be a finite number but it is not.\", [a], b, Array.prototype.slice.call(arguments, 2));\n return a;\n};\ngoog.asserts.getType_ = function(a) {\n return a instanceof Function ? a.displayName || a.name || \"unknown type name\" : a instanceof Object ? a.constructor.displayName || a.constructor.name || Object.prototype.toString.call(a) : null === a ? \"null\" : typeof a;\n};\ngoog.reflect = {};\ngoog.reflect.object = function(a, b) {\n return b;\n};\ngoog.reflect.objectProperty = function(a, b) {\n return a;\n};\ngoog.reflect.sinkValue = function(a) {\n goog.reflect.sinkValue[\" \"](a);\n return a;\n};\ngoog.reflect.sinkValue[\" \"] = goog.nullFunction;\ngoog.reflect.canAccessProperty = function(a, b) {\n try {\n return goog.reflect.sinkValue(a[b]), !0;\n } catch (c) {\n }\n return !1;\n};\ngoog.reflect.cache = function(a, b, c, d) {\n d = d ? d(b) : b;\n return Object.prototype.hasOwnProperty.call(a, d) ? a[d] : a[d] = c(b);\n};\ngoog.math = {};\nclass module$contents$goog$math$Long_Long {\n constructor(a, b) {\n this.low_ = a | 0;\n this.high_ = b | 0;\n }\n toInt() {\n return this.low_;\n }\n toNumber() {\n return this.high_ * module$contents$goog$math$Long_TWO_PWR_32_DBL_ + this.getLowBitsUnsigned();\n }\n isSafeInteger() {\n var a = this.high_ >> 21;\n return 0 == a || -1 == a && !(0 == this.low_ && -2097152 == this.high_);\n }\n toString(a) {\n a = a || 10;\n if (2 > a || 36 < a) {\n throw Error(\"radix out of range: \" + a);\n }\n if (this.isSafeInteger()) {\n var b = this.toNumber();\n return 10 == a ? \"\" + b : b.toString(a);\n }\n b = 14 - (a >> 2);\n var c = Math.pow(a, b), d = module$contents$goog$math$Long_Long.fromBits(c, c / module$contents$goog$math$Long_TWO_PWR_32_DBL_);\n c = this.div(d);\n d = Math.abs(this.subtract(c.multiply(d)).toNumber());\n var e = 10 == a ? \"\" + d : d.toString(a);\n e.length < b && (e = \"0000000000000\".substr(e.length - b) + e);\n d = c.toNumber();\n return (10 == a ? d : d.toString(a)) + e;\n }\n getHighBits() {\n return this.high_;\n }\n getLowBits() {\n return this.low_;\n }\n getLowBitsUnsigned() {\n return this.low_ >>> 0;\n }\n getNumBitsAbs() {\n if (this.isNegative()) {\n return this.equals(module$contents$goog$math$Long_Long.getMinValue()) ? 64 : this.negate().getNumBitsAbs();\n }\n for (var a = 0 != this.high_ ? this.high_ : this.low_, b = 31; 0 < b && 0 == (a & 1 << b); b--) {\n }\n return 0 != this.high_ ? b + 33 : b + 1;\n }\n isZero() {\n return 0 == this.low_ && 0 == this.high_;\n }\n isNegative() {\n return 0 > this.high_;\n }\n isOdd() {\n return 1 == (this.low_ & 1);\n }\n equals(a) {\n return this.low_ == a.low_ && this.high_ == a.high_;\n }\n notEquals(a) {\n return !this.equals(a);\n }\n lessThan(a) {\n return 0 > this.compare(a);\n }\n lessThanOrEqual(a) {\n return 0 >= this.compare(a);\n }\n greaterThan(a) {\n return 0 < this.compare(a);\n }\n greaterThanOrEqual(a) {\n return 0 <= this.compare(a);\n }\n compare(a) {\n return this.high_ == a.high_ ? this.low_ == a.low_ ? 0 : this.getLowBitsUnsigned() > a.getLowBitsUnsigned() ? 1 : -1 : this.high_ > a.high_ ? 1 : -1;\n }\n negate() {\n var a = ~this.low_ + 1 | 0;\n return module$contents$goog$math$Long_Long.fromBits(a, ~this.high_ + !a | 0);\n }\n add(a) {\n var b = this.high_ >>> 16, c = this.high_ & 65535, d = this.low_ >>> 16, e = a.high_ >>> 16, f = a.high_ & 65535, g = a.low_ >>> 16;\n a = (this.low_ & 65535) + (a.low_ & 65535);\n g = (a >>> 16) + (d + g);\n d = g >>> 16;\n d += c + f;\n b = (d >>> 16) + (b + e) & 65535;\n return module$contents$goog$math$Long_Long.fromBits((g & 65535) << 16 | a & 65535, b << 16 | d & 65535);\n }\n subtract(a) {\n return this.add(a.negate());\n }\n multiply(a) {\n if (this.isZero()) {\n return this;\n }\n if (a.isZero()) {\n return a;\n }\n var b = this.high_ >>> 16, c = this.high_ & 65535, d = this.low_ >>> 16, e = this.low_ & 65535, f = a.high_ >>> 16, g = a.high_ & 65535, h = a.low_ >>> 16;\n a = a.low_ & 65535;\n var k = e * a;\n var l = (k >>> 16) + d * a;\n var n = l >>> 16;\n l = (l & 65535) + e * h;\n n += l >>> 16;\n n += c * a;\n var m = n >>> 16;\n n = (n & 65535) + d * h;\n m += n >>> 16;\n n = (n & 65535) + e * g;\n m = m + (n >>> 16) + (b * a + c * h + d * g + e * f) & 65535;\n return module$contents$goog$math$Long_Long.fromBits((l & 65535) << 16 | k & 65535, m << 16 | n & 65535);\n }\n div(a) {\n if (a.isZero()) {\n throw Error(\"division by zero\");\n }\n if (this.isNegative()) {\n if (this.equals(module$contents$goog$math$Long_Long.getMinValue())) {\n if (a.equals(module$contents$goog$math$Long_Long.getOne()) || a.equals(module$contents$goog$math$Long_Long.getNegOne())) {\n return module$contents$goog$math$Long_Long.getMinValue();\n }\n if (a.equals(module$contents$goog$math$Long_Long.getMinValue())) {\n return module$contents$goog$math$Long_Long.getOne();\n }\n var b = this.shiftRight(1).div(a).shiftLeft(1);\n if (b.equals(module$contents$goog$math$Long_Long.getZero())) {\n return a.isNegative() ? module$contents$goog$math$Long_Long.getOne() : module$contents$goog$math$Long_Long.getNegOne();\n }\n var c = this.subtract(a.multiply(b));\n return b.add(c.div(a));\n }\n return a.isNegative() ? this.negate().div(a.negate()) : this.negate().div(a).negate();\n }\n if (this.isZero()) {\n return module$contents$goog$math$Long_Long.getZero();\n }\n if (a.isNegative()) {\n return a.equals(module$contents$goog$math$Long_Long.getMinValue()) ? module$contents$goog$math$Long_Long.getZero() : this.div(a.negate()).negate();\n }\n var d = module$contents$goog$math$Long_Long.getZero();\n for (c = this; c.greaterThanOrEqual(a);) {\n b = Math.max(1, Math.floor(c.toNumber() / a.toNumber()));\n var e = Math.ceil(Math.log(b) / Math.LN2);\n e = 48 >= e ? 1 : Math.pow(2, e - 48);\n for (var f = module$contents$goog$math$Long_Long.fromNumber(b), g = f.multiply(a); g.isNegative() || g.greaterThan(c);) {\n b -= e, f = module$contents$goog$math$Long_Long.fromNumber(b), g = f.multiply(a);\n }\n f.isZero() && (f = module$contents$goog$math$Long_Long.getOne());\n d = d.add(f);\n c = c.subtract(g);\n }\n return d;\n }\n modulo(a) {\n return this.subtract(this.div(a).multiply(a));\n }\n not() {\n return module$contents$goog$math$Long_Long.fromBits(~this.low_, ~this.high_);\n }\n and(a) {\n return module$contents$goog$math$Long_Long.fromBits(this.low_ & a.low_, this.high_ & a.high_);\n }\n or(a) {\n return module$contents$goog$math$Long_Long.fromBits(this.low_ | a.low_, this.high_ | a.high_);\n }\n xor(a) {\n return module$contents$goog$math$Long_Long.fromBits(this.low_ ^ a.low_, this.high_ ^ a.high_);\n }\n shiftLeft(a) {\n a &= 63;\n if (0 == a) {\n return this;\n }\n var b = this.low_;\n return 32 > a ? module$contents$goog$math$Long_Long.fromBits(b << a, this.high_ << a | b >>> 32 - a) : module$contents$goog$math$Long_Long.fromBits(0, b << a - 32);\n }\n shiftRight(a) {\n a &= 63;\n if (0 == a) {\n return this;\n }\n var b = this.high_;\n return 32 > a ? module$contents$goog$math$Long_Long.fromBits(this.low_ >>> a | b << 32 - a, b >> a) : module$contents$goog$math$Long_Long.fromBits(b >> a - 32, 0 <= b ? 0 : -1);\n }\n shiftRightUnsigned(a) {\n a &= 63;\n if (0 == a) {\n return this;\n }\n var b = this.high_;\n return 32 > a ? module$contents$goog$math$Long_Long.fromBits(this.low_ >>> a | b << 32 - a, b >>> a) : 32 == a ? module$contents$goog$math$Long_Long.fromBits(b, 0) : module$contents$goog$math$Long_Long.fromBits(b >>> a - 32, 0);\n }\n static fromInt(a) {\n var b = a | 0;\n goog.asserts.assert(a === b, \"value should be a 32-bit integer\");\n return -128 <= b && 128 > b ? module$contents$goog$math$Long_getCachedIntValue_(b) : new module$contents$goog$math$Long_Long(b, 0 > b ? -1 : 0);\n }\n static fromNumber(a) {\n return 0 < a ? a >= module$contents$goog$math$Long_TWO_PWR_63_DBL_ ? module$contents$goog$math$Long_Long.getMaxValue() : new module$contents$goog$math$Long_Long(a, a / module$contents$goog$math$Long_TWO_PWR_32_DBL_) : 0 > a ? a <= -module$contents$goog$math$Long_TWO_PWR_63_DBL_ ? module$contents$goog$math$Long_Long.getMinValue() : (new module$contents$goog$math$Long_Long(-a, -a / module$contents$goog$math$Long_TWO_PWR_32_DBL_)).negate() : module$contents$goog$math$Long_Long.getZero();\n }\n static fromBits(a, b) {\n return new module$contents$goog$math$Long_Long(a, b);\n }\n static fromString(a, b) {\n if (\"-\" == a.charAt(0)) {\n return module$contents$goog$math$Long_Long.fromString(a.substring(1), b).negate();\n }\n var c = parseInt(a, b || 10);\n if (c <= module$contents$goog$math$Long_MAX_SAFE_INTEGER_) {\n return new module$contents$goog$math$Long_Long(c % module$contents$goog$math$Long_TWO_PWR_32_DBL_ | 0, c / module$contents$goog$math$Long_TWO_PWR_32_DBL_ | 0);\n }\n if (0 == a.length) {\n throw Error(\"number format error: empty string\");\n }\n if (0 <= a.indexOf(\"-\")) {\n throw Error('number format error: interior \"-\" character: ' + a);\n }\n b = b || 10;\n if (2 > b || 36 < b) {\n throw Error(\"radix out of range: \" + b);\n }\n c = module$contents$goog$math$Long_Long.fromNumber(Math.pow(b, 8));\n for (var d = module$contents$goog$math$Long_Long.getZero(), e = 0; e < a.length; e += 8) {\n var f = Math.min(8, a.length - e), g = parseInt(a.substring(e, e + f), b);\n 8 > f ? (f = module$contents$goog$math$Long_Long.fromNumber(Math.pow(b, f)), d = d.multiply(f).add(module$contents$goog$math$Long_Long.fromNumber(g))) : (d = d.multiply(c), d = d.add(module$contents$goog$math$Long_Long.fromNumber(g)));\n }\n return d;\n }\n static isStringInRange(a, b) {\n b = b || 10;\n if (2 > b || 36 < b) {\n throw Error(\"radix out of range: \" + b);\n }\n b = \"-\" == a.charAt(0) ? module$contents$goog$math$Long_MIN_VALUE_FOR_RADIX_[b] : module$contents$goog$math$Long_MAX_VALUE_FOR_RADIX_[b];\n return a.length < b.length ? !0 : a.length == b.length && a <= b ? !0 : !1;\n }\n static getZero() {\n return module$contents$goog$math$Long_ZERO_;\n }\n static getOne() {\n return module$contents$goog$math$Long_ONE_;\n }\n static getNegOne() {\n return module$contents$goog$math$Long_NEG_ONE_;\n }\n static getMaxValue() {\n return module$contents$goog$math$Long_MAX_VALUE_;\n }\n static getMinValue() {\n return module$contents$goog$math$Long_MIN_VALUE_;\n }\n static getTwoPwr24() {\n return module$contents$goog$math$Long_TWO_PWR_24_;\n }\n}\ngoog.math.Long = module$contents$goog$math$Long_Long;\nconst module$contents$goog$math$Long_IntCache_ = {};\nfunction module$contents$goog$math$Long_getCachedIntValue_(a) {\n return goog.reflect.cache(module$contents$goog$math$Long_IntCache_, a, function(b) {\n return new module$contents$goog$math$Long_Long(b, 0 > b ? -1 : 0);\n });\n}\nconst module$contents$goog$math$Long_MAX_VALUE_FOR_RADIX_ = \" 111111111111111111111111111111111111111111111111111111111111111 2021110011022210012102010021220101220221 13333333333333333333333333333333 1104332401304422434310311212 1540241003031030222122211 22341010611245052052300 777777777777777777777 67404283172107811827 9223372036854775807 1728002635214590697 41a792678515120367 10b269549075433c37 4340724c6c71dc7a7 160e2ad3246366807 7fffffffffffffff 33d3d8307b214008 16agh595df825fa7 ba643dci0ffeehh 5cbfjia3fh26ja7 2heiciiie82dh97 1adaibb21dckfa7 i6k448cf4192c2 acd772jnc9l0l7 64ie1focnn5g77 3igoecjbmca687 27c48l5b37oaop 1bk39f3ah3dmq7 q1se8f0m04isb hajppbc1fc207 bm03i95hia437 7vvvvvvvvvvvv 5hg4ck9jd4u37 3tdtk1v8j6tpp 2pijmikexrxp7 1y2p0ij32e8e7\".split(\" \"), \nmodule$contents$goog$math$Long_MIN_VALUE_FOR_RADIX_ = \" -1000000000000000000000000000000000000000000000000000000000000000 -2021110011022210012102010021220101220222 -20000000000000000000000000000000 -1104332401304422434310311213 -1540241003031030222122212 -22341010611245052052301 -1000000000000000000000 -67404283172107811828 -9223372036854775808 -1728002635214590698 -41a792678515120368 -10b269549075433c38 -4340724c6c71dc7a8 -160e2ad3246366808 -8000000000000000 -33d3d8307b214009 -16agh595df825fa8 -ba643dci0ffeehi -5cbfjia3fh26ja8 -2heiciiie82dh98 -1adaibb21dckfa8 -i6k448cf4192c3 -acd772jnc9l0l8 -64ie1focnn5g78 -3igoecjbmca688 -27c48l5b37oaoq -1bk39f3ah3dmq8 -q1se8f0m04isc -hajppbc1fc208 -bm03i95hia438 -8000000000000 -5hg4ck9jd4u38 -3tdtk1v8j6tpq -2pijmikexrxp8 -1y2p0ij32e8e8\".split(\" \"), \nmodule$contents$goog$math$Long_MAX_SAFE_INTEGER_ = 9007199254740991, module$contents$goog$math$Long_TWO_PWR_32_DBL_ = 4294967296, module$contents$goog$math$Long_TWO_PWR_63_DBL_ = 0x7fffffffffffffff, module$contents$goog$math$Long_ZERO_ = module$contents$goog$math$Long_Long.fromBits(0, 0), module$contents$goog$math$Long_ONE_ = module$contents$goog$math$Long_Long.fromBits(1, 0), module$contents$goog$math$Long_NEG_ONE_ = module$contents$goog$math$Long_Long.fromBits(-1, -1), module$contents$goog$math$Long_MAX_VALUE_ = \nmodule$contents$goog$math$Long_Long.fromBits(4294967295, 2147483647), module$contents$goog$math$Long_MIN_VALUE_ = module$contents$goog$math$Long_Long.fromBits(0, 2147483648), module$contents$goog$math$Long_TWO_PWR_24_ = module$contents$goog$math$Long_Long.fromBits(16777216, 0);\ncom.cognitect.transit.types = {};\ncom.cognitect.transit.types.ITERATOR = \"undefined\" != typeof Symbol ? Symbol.iterator : \"@@iterator\";\ncom.cognitect.transit.types.TaggedValue = function(a, b) {\n this.tag = a;\n this.rep = b;\n this.hashCode = -1;\n};\ncom.cognitect.transit.types.TaggedValue.prototype.toString = function() {\n return \"[TaggedValue: \" + this.tag + \", \" + this.rep + \"]\";\n};\ncom.cognitect.transit.types.TaggedValue.prototype.equiv = function(a) {\n return com.cognitect.transit.eq.equals(this, a);\n};\ncom.cognitect.transit.types.TaggedValue.prototype.equiv = com.cognitect.transit.types.TaggedValue.prototype.equiv;\ncom.cognitect.transit.types.TaggedValue.prototype.com$cognitect$transit$equals = function(a) {\n return a instanceof com.cognitect.transit.types.TaggedValue ? this.tag === a.tag && com.cognitect.transit.eq.equals(this.rep, a.rep) : !1;\n};\ncom.cognitect.transit.types.TaggedValue.prototype.com$cognitect$transit$hashCode = function() {\n -1 === this.hashCode && (this.hashCode = com.cognitect.transit.eq.hashCombine(com.cognitect.transit.eq.hashCode(this.tag), com.cognitect.transit.eq.hashCode(this.rep)));\n return this.hashCode;\n};\ncom.cognitect.transit.types.taggedValue = function(a, b) {\n return new com.cognitect.transit.types.TaggedValue(a, b);\n};\ncom.cognitect.transit.types.isTaggedValue = function(a) {\n return a instanceof com.cognitect.transit.types.TaggedValue;\n};\ncom.cognitect.transit.types.nullValue = function() {\n return null;\n};\ncom.cognitect.transit.types.boolValue = function(a) {\n return \"t\" === a;\n};\ncom.cognitect.transit.types.MAX_INT = module$contents$goog$math$Long_Long.fromString(\"9007199254740991\");\ncom.cognitect.transit.types.MIN_INT = module$contents$goog$math$Long_Long.fromString(\"-9007199254740991\");\ncom.cognitect.transit.types.intValue = function(a) {\n if (\"number\" === typeof a || a instanceof module$contents$goog$math$Long_Long) {\n return a;\n }\n a = module$contents$goog$math$Long_Long.fromString(a, 10);\n return a.greaterThan(com.cognitect.transit.types.MAX_INT) || a.lessThan(com.cognitect.transit.types.MIN_INT) ? a : a.toNumber();\n};\nmodule$contents$goog$math$Long_Long.prototype.equiv = function(a) {\n return com.cognitect.transit.eq.equals(this, a);\n};\nmodule$contents$goog$math$Long_Long.prototype.equiv = module$contents$goog$math$Long_Long.prototype.equiv;\nmodule$contents$goog$math$Long_Long.prototype.com$cognitect$transit$equals = function(a) {\n return a instanceof module$contents$goog$math$Long_Long && this.equals(a);\n};\nmodule$contents$goog$math$Long_Long.prototype.com$cognitect$transit$hashCode = function() {\n return this.toInt();\n};\ncom.cognitect.transit.types.isInteger = function(a) {\n return a instanceof module$contents$goog$math$Long_Long ? !0 : \"number\" === typeof a && !isNaN(a) && Infinity !== a && parseFloat(a) === parseInt(a, 10);\n};\ncom.cognitect.transit.types.floatValue = function(a) {\n return parseFloat(a);\n};\ncom.cognitect.transit.types.bigInteger = function(a) {\n return com.cognitect.transit.types.taggedValue(\"n\", a);\n};\ncom.cognitect.transit.types.isBigInteger = function(a) {\n return a instanceof com.cognitect.transit.types.TaggedValue && \"n\" === a.tag;\n};\ncom.cognitect.transit.types.bigDecimalValue = function(a) {\n return com.cognitect.transit.types.taggedValue(\"f\", a);\n};\ncom.cognitect.transit.types.isBigDecimal = function(a) {\n return a instanceof com.cognitect.transit.types.TaggedValue && \"f\" === a.tag;\n};\ncom.cognitect.transit.types.charValue = function(a) {\n return a;\n};\ncom.cognitect.transit.types.Keyword = function(a) {\n this._name = a;\n this.hashCode = -1;\n};\ncom.cognitect.transit.types.Keyword.prototype.toString = function() {\n return \":\" + this._name;\n};\ncom.cognitect.transit.types.Keyword.prototype.namespace = function() {\n var a = this._name.indexOf(\"/\");\n return -1 != a ? this._name.substring(0, a) : null;\n};\ncom.cognitect.transit.types.Keyword.prototype.name = function() {\n var a = this._name.indexOf(\"/\");\n return -1 != a ? this._name.substring(a + 1, this._name.length) : this._name;\n};\ncom.cognitect.transit.types.Keyword.prototype.equiv = function(a) {\n return com.cognitect.transit.eq.equals(this, a);\n};\ncom.cognitect.transit.types.Keyword.prototype.equiv = com.cognitect.transit.types.Keyword.prototype.equiv;\ncom.cognitect.transit.types.Keyword.prototype.com$cognitect$transit$equals = function(a) {\n return a instanceof com.cognitect.transit.types.Keyword && this._name == a._name;\n};\ncom.cognitect.transit.types.Keyword.prototype.com$cognitect$transit$hashCode = function() {\n -1 === this.hashCode && (this.hashCode = com.cognitect.transit.eq.hashCode(this._name));\n return this.hashCode;\n};\ncom.cognitect.transit.types.keyword = function(a) {\n return new com.cognitect.transit.types.Keyword(a);\n};\ncom.cognitect.transit.types.isKeyword = function(a) {\n return a instanceof com.cognitect.transit.types.Keyword;\n};\ncom.cognitect.transit.types.Symbol = function(a) {\n this._name = a;\n this.hashCode = -1;\n};\ncom.cognitect.transit.types.Symbol.prototype.namespace = function() {\n var a = this._name.indexOf(\"/\");\n return -1 != a ? this._name.substring(0, a) : null;\n};\ncom.cognitect.transit.types.Symbol.prototype.name = function() {\n var a = this._name.indexOf(\"/\");\n return -1 != a ? this._name.substring(a + 1, this._name.length) : this._name;\n};\ncom.cognitect.transit.types.Symbol.prototype.toString = function() {\n return this._name;\n};\ncom.cognitect.transit.types.Symbol.prototype.equiv = function(a) {\n return com.cognitect.transit.eq.equals(this, a);\n};\ncom.cognitect.transit.types.Symbol.prototype.equiv = com.cognitect.transit.types.Symbol.prototype.equiv;\ncom.cognitect.transit.types.Symbol.prototype.com$cognitect$transit$equals = function(a) {\n return a instanceof com.cognitect.transit.types.Symbol && this._name == a._name;\n};\ncom.cognitect.transit.types.Symbol.prototype.com$cognitect$transit$hashCode = function() {\n -1 === this.hashCode && (this.hashCode = com.cognitect.transit.eq.hashCode(this._name));\n return this.hashCode;\n};\ncom.cognitect.transit.types.symbol = function(a) {\n return new com.cognitect.transit.types.Symbol(a);\n};\ncom.cognitect.transit.types.isSymbol = function(a) {\n return a instanceof com.cognitect.transit.types.Symbol;\n};\ncom.cognitect.transit.types.hexFor = function(a, b, c) {\n var d = \"\";\n c = c || b + 1;\n for (var e = 8 * (7 - b), f = module$contents$goog$math$Long_Long.fromInt(255).shiftLeft(e); b < c; b++, e -= 8, f = f.shiftRightUnsigned(8)) {\n var g = a.and(f).shiftRightUnsigned(e).toString(16);\n 1 == g.length && (g = \"0\" + g);\n d += g;\n }\n return d;\n};\ncom.cognitect.transit.types.UUID = function(a, b) {\n this.high = a;\n this.low = b;\n this.hashCode = -1;\n};\ncom.cognitect.transit.types.UUID.prototype.getLeastSignificantBits = function() {\n return this.low;\n};\ncom.cognitect.transit.types.UUID.prototype.getMostSignificantBits = function() {\n return this.high;\n};\ncom.cognitect.transit.types.UUID.prototype.toString = function() {\n var a = this.high, b = this.low;\n var c = com.cognitect.transit.types.hexFor(a, 0, 4) + \"-\";\n c += com.cognitect.transit.types.hexFor(a, 4, 6) + \"-\";\n c += com.cognitect.transit.types.hexFor(a, 6, 8) + \"-\";\n c += com.cognitect.transit.types.hexFor(b, 0, 2) + \"-\";\n return c += com.cognitect.transit.types.hexFor(b, 2, 8);\n};\ncom.cognitect.transit.types.UUID.prototype.equiv = function(a) {\n return com.cognitect.transit.eq.equals(this, a);\n};\ncom.cognitect.transit.types.UUID.prototype.equiv = com.cognitect.transit.types.UUID.prototype.equiv;\ncom.cognitect.transit.types.UUID.prototype.com$cognitect$transit$equals = function(a) {\n return a instanceof com.cognitect.transit.types.UUID && this.high.equals(a.high) && this.low.equals(a.low);\n};\ncom.cognitect.transit.types.UUID.prototype.com$cognitect$transit$hashCode = function() {\n -1 === this.hashCode && (this.hashCode = com.cognitect.transit.eq.hashCode(this.toString()));\n return this.hashCode;\n};\ncom.cognitect.transit.types.UUIDfromString = function(a) {\n a = a.replace(/-/g, \"\");\n var b, c;\n var d = b = 0;\n for (c = 24; 8 > d; d += 2, c -= 8) {\n b |= parseInt(a.substring(d, d + 2), 16) << c;\n }\n var e = 0;\n d = 8;\n for (c = 24; 16 > d; d += 2, c -= 8) {\n e |= parseInt(a.substring(d, d + 2), 16) << c;\n }\n var f = module$contents$goog$math$Long_Long.fromBits(e, b);\n b = 0;\n d = 16;\n for (c = 24; 24 > d; d += 2, c -= 8) {\n b |= parseInt(a.substring(d, d + 2), 16) << c;\n }\n e = 0;\n for (c = d = 24; 32 > d; d += 2, c -= 8) {\n e |= parseInt(a.substring(d, d + 2), 16) << c;\n }\n a = module$contents$goog$math$Long_Long.fromBits(e, b);\n return new com.cognitect.transit.types.UUID(f, a);\n};\ncom.cognitect.transit.types.uuid = function(a) {\n return com.cognitect.transit.types.UUIDfromString(a);\n};\ncom.cognitect.transit.types.isUUID = function(a) {\n return a instanceof com.cognitect.transit.types.UUID;\n};\ncom.cognitect.transit.types.date = function(a) {\n a = \"number\" === typeof a ? a : parseInt(a, 10);\n return new Date(a);\n};\ncom.cognitect.transit.types.verboseDate = function(a) {\n return new Date(a);\n};\nDate.prototype.com$cognitect$transit$equals = function(a) {\n return a instanceof Date ? this.valueOf() === a.valueOf() : !1;\n};\nDate.prototype.com$cognitect$transit$hashCode = function() {\n return this.valueOf();\n};\ncom.cognitect.transit.types.binary = function(a, b) {\n return b && !1 === b.preferBuffers || \"undefined\" == typeof goog.global.Buffer ? \"undefined\" != typeof Uint8Array ? com.cognitect.transit.util.Base64ToUint8(a) : com.cognitect.transit.types.taggedValue(\"b\", a) : new goog.global.Buffer(a, \"base64\");\n};\ncom.cognitect.transit.types.isBinary = function(a) {\n return \"undefined\" != typeof goog.global.Buffer && a instanceof goog.global.Buffer ? !0 : \"undefined\" != typeof Uint8Array && a instanceof Uint8Array ? !0 : a instanceof com.cognitect.transit.types.TaggedValue && \"b\" === a.tag;\n};\ncom.cognitect.transit.types.uri = function(a) {\n return com.cognitect.transit.types.taggedValue(\"r\", a);\n};\ncom.cognitect.transit.types.isURI = function(a) {\n return a instanceof com.cognitect.transit.types.TaggedValue && \"r\" === a.tag;\n};\ncom.cognitect.transit.types.KEYS = 0;\ncom.cognitect.transit.types.VALUES = 1;\ncom.cognitect.transit.types.ENTRIES = 2;\ncom.cognitect.transit.types.TransitArrayMapIterator = function(a, b) {\n this.entries = a;\n this.type = b || com.cognitect.transit.types.KEYS;\n this.idx = 0;\n};\ncom.cognitect.transit.types.TransitArrayMapIterator.prototype.next = function() {\n if (this.idx < this.entries.length) {\n var a = {value:this.type === com.cognitect.transit.types.KEYS ? this.entries[this.idx] : this.type === com.cognitect.transit.types.VALUES ? this.entries[this.idx + 1] : [this.entries[this.idx], this.entries[this.idx + 1]], done:!1};\n this.idx += 2;\n return a;\n }\n return {value:null, done:!0};\n};\ncom.cognitect.transit.types.TransitArrayMapIterator.prototype.next = com.cognitect.transit.types.TransitArrayMapIterator.prototype.next;\ncom.cognitect.transit.types.TransitArrayMapIterator.prototype[com.cognitect.transit.types.ITERATOR] = function() {\n return this;\n};\ncom.cognitect.transit.types.TransitMapIterator = function(a, b) {\n this.map = a;\n this.type = b || com.cognitect.transit.types.KEYS;\n this.keys = this.map.getKeys();\n this.idx = 0;\n this.bucket = null;\n this.bucketIdx = 0;\n};\ncom.cognitect.transit.types.TransitMapIterator.prototype.next = function() {\n if (this.idx < this.map.size) {\n null != this.bucket && this.bucketIdx < this.bucket.length || (this.bucket = this.map.map[this.keys[this.idx]], this.bucketIdx = 0);\n var a = {value:this.type === com.cognitect.transit.types.KEYS ? this.bucket[this.bucketIdx] : this.type === com.cognitect.transit.types.VALUES ? this.bucket[this.bucketIdx + 1] : [this.bucket[this.bucketIdx], this.bucket[this.bucketIdx + 1]], done:!1};\n this.idx++;\n this.bucketIdx += 2;\n return a;\n }\n return {value:null, done:!0};\n};\ncom.cognitect.transit.types.TransitMapIterator.prototype.next = com.cognitect.transit.types.TransitMapIterator.prototype.next;\ncom.cognitect.transit.types.TransitMapIterator.prototype[com.cognitect.transit.types.ITERATOR] = function() {\n return this;\n};\ncom.cognitect.transit.types.mapEquals = function(a, b) {\n if (a instanceof com.cognitect.transit.types.TransitMap && com.cognitect.transit.types.isMap(b)) {\n if (a.size !== b.size) {\n return !1;\n }\n for (var c in a.map) {\n for (var d = a.map[c], e = 0; e < d.length; e += 2) {\n if (!com.cognitect.transit.eq.equals(d[e + 1], b.get(d[e]))) {\n return !1;\n }\n }\n }\n return !0;\n }\n if (a instanceof com.cognitect.transit.types.TransitArrayMap && com.cognitect.transit.types.isMap(b)) {\n if (a.size !== b.size) {\n return !1;\n }\n a = a._entries;\n for (e = 0; e < a.length; e += 2) {\n if (!com.cognitect.transit.eq.equals(a[e + 1], b.get(a[e]))) {\n return !1;\n }\n }\n return !0;\n }\n if (null != b && \"object\" === typeof b && (e = com.cognitect.transit.util.objectKeys(b), c = e.length, a.size === c)) {\n for (d = 0; d < c; d++) {\n var f = e[d];\n if (!a.has(f) || !com.cognitect.transit.eq.equals(b[f], a.get(f))) {\n return !1;\n }\n }\n return !0;\n }\n return !1;\n};\ncom.cognitect.transit.types.SMALL_ARRAY_MAP_THRESHOLD = 8;\ncom.cognitect.transit.types.ARRAY_MAP_THRESHOLD = 32;\ncom.cognitect.transit.types.ARRAY_MAP_ACCESS_THRESHOLD = 32;\ncom.cognitect.transit.types.print = function(a) {\n return null == a ? \"null\" : \"array\" === goog.typeOf(a) ? \"[\" + a.toString() + \"]\" : \"string\" === goog.typeOf(a) ? '\"' + a + '\"' : a.toString();\n};\ncom.cognitect.transit.types.printMap = function(a) {\n var b = 0, c = \"TransitMap {\";\n a.forEach(function(d, e) {\n c += com.cognitect.transit.types.print(e) + \" => \" + com.cognitect.transit.types.print(d);\n b < a.size - 1 && (c += \", \");\n b++;\n });\n return c + \"}\";\n};\ncom.cognitect.transit.types.printSet = function(a) {\n var b = 0, c = \"TransitSet {\";\n a.forEach(function(d) {\n c += com.cognitect.transit.types.print(d);\n b < a.size - 1 && (c += \", \");\n b++;\n });\n return c + \"}\";\n};\ncom.cognitect.transit.types.TransitArrayMap = function(a) {\n this._entries = a;\n this.backingMap = null;\n this.hashCode = -1;\n this.size = a.length / 2;\n this.accesses = 0;\n};\ncom.cognitect.transit.types.TransitArrayMap.prototype.toString = function() {\n return com.cognitect.transit.types.printMap(this);\n};\ncom.cognitect.transit.types.TransitArrayMap.prototype.inspect = function() {\n return this.toString();\n};\ncom.cognitect.transit.types.TransitArrayMap.prototype.convert = function() {\n if (this.backingMap) {\n throw Error(\"Invalid operation, already converted\");\n }\n if (this.size < com.cognitect.transit.types.SMALL_ARRAY_MAP_THRESHOLD) {\n return !1;\n }\n this.accesses++;\n return this.accesses > com.cognitect.transit.types.ARRAY_MAP_ACCESS_THRESHOLD ? (this.backingMap = com.cognitect.transit.types.map(this._entries, !1, !0), this._entries = [], !0) : !1;\n};\ncom.cognitect.transit.types.TransitArrayMap.prototype.clear = function() {\n this.hashCode = -1;\n this.backingMap ? this.backingMap.clear() : this._entries = [];\n this.size = 0;\n};\ncom.cognitect.transit.types.TransitArrayMap.prototype.clear = com.cognitect.transit.types.TransitArrayMap.prototype.clear;\ncom.cognitect.transit.types.TransitArrayMap.prototype.keys = function() {\n return this.backingMap ? this.backingMap.keys() : new com.cognitect.transit.types.TransitArrayMapIterator(this._entries, com.cognitect.transit.types.KEYS);\n};\ncom.cognitect.transit.types.TransitArrayMap.prototype.keys = com.cognitect.transit.types.TransitArrayMap.prototype.keys;\ncom.cognitect.transit.types.TransitArrayMap.prototype.keySet = function() {\n if (this.backingMap) {\n return this.backingMap.keySet();\n }\n for (var a = [], b = 0, c = 0; c < this._entries.length; b++, c += 2) {\n a[b] = this._entries[c];\n }\n return a;\n};\ncom.cognitect.transit.types.TransitArrayMap.prototype.keySet = com.cognitect.transit.types.TransitArrayMap.prototype.keySet;\ncom.cognitect.transit.types.TransitArrayMap.prototype.entries = function() {\n return this.backingMap ? this.backingMap.entries() : new com.cognitect.transit.types.TransitArrayMapIterator(this._entries, com.cognitect.transit.types.ENTRIES);\n};\ncom.cognitect.transit.types.TransitArrayMap.prototype.entries = com.cognitect.transit.types.TransitArrayMap.prototype.entries;\ncom.cognitect.transit.types.TransitArrayMap.prototype.values = function() {\n return this.backingMap ? this.backingMap.values() : new com.cognitect.transit.types.TransitArrayMapIterator(this._entries, com.cognitect.transit.types.VALUES);\n};\ncom.cognitect.transit.types.TransitArrayMap.prototype.values = com.cognitect.transit.types.TransitArrayMap.prototype.values;\ncom.cognitect.transit.types.TransitArrayMap.prototype.forEach = function(a) {\n if (this.backingMap) {\n this.backingMap.forEach(a);\n } else {\n for (var b = 0; b < this._entries.length; b += 2) {\n a(this._entries[b + 1], this._entries[b]);\n }\n }\n};\ncom.cognitect.transit.types.TransitArrayMap.prototype.forEach = com.cognitect.transit.types.TransitArrayMap.prototype.forEach;\ncom.cognitect.transit.types.TransitArrayMap.prototype.get = function(a, b) {\n if (this.backingMap) {\n return this.backingMap.get(a);\n }\n if (this.convert()) {\n return this.get(a);\n }\n for (var c = 0; c < this._entries.length; c += 2) {\n if (com.cognitect.transit.eq.equals(this._entries[c], a)) {\n return this._entries[c + 1];\n }\n }\n return b;\n};\ncom.cognitect.transit.types.TransitArrayMap.prototype.get = com.cognitect.transit.types.TransitArrayMap.prototype.get;\ncom.cognitect.transit.types.TransitArrayMap.prototype.has = function(a) {\n if (this.backingMap) {\n return this.backingMap.has(a);\n }\n if (this.convert()) {\n return this.has(a);\n }\n for (var b = 0; b < this._entries.length; b += 2) {\n if (com.cognitect.transit.eq.equals(this._entries[b], a)) {\n return !0;\n }\n }\n return !1;\n};\ncom.cognitect.transit.types.TransitArrayMap.prototype.has = com.cognitect.transit.types.TransitArrayMap.prototype.has;\ncom.cognitect.transit.types.TransitArrayMap.prototype.set = function(a, b) {\n this.hashCode = -1;\n if (this.backingMap) {\n this.backingMap.set(a, b), this.size = this.backingMap.size;\n } else {\n for (var c = 0; c < this._entries.length; c += 2) {\n if (com.cognitect.transit.eq.equals(this._entries[c], a)) {\n this._entries[c + 1] = b;\n return;\n }\n }\n this._entries.push(a);\n this._entries.push(b);\n this.size++;\n this.size > com.cognitect.transit.types.ARRAY_MAP_THRESHOLD && (this.backingMap = com.cognitect.transit.types.map(this._entries, !1, !0), this._entries = null);\n }\n};\ncom.cognitect.transit.types.TransitArrayMap.prototype.set = com.cognitect.transit.types.TransitArrayMap.prototype.set;\ncom.cognitect.transit.types.TransitArrayMap.prototype[\"delete\"] = function(a) {\n this.hashCode = -1;\n if (this.backingMap) {\n return a = this.backingMap.delete(a), this.size = this.backingMap.size, a;\n }\n for (var b = 0; b < this._entries.length; b += 2) {\n if (com.cognitect.transit.eq.equals(this._entries[b], a)) {\n return a = this._entries[b + 1], this._entries.splice(b, 2), this.size--, a;\n }\n }\n};\ncom.cognitect.transit.types.TransitArrayMap.prototype.clone = function() {\n var a = com.cognitect.transit.types.map();\n this.forEach(function(b, c) {\n a.set(c, b);\n });\n return a;\n};\ncom.cognitect.transit.types.TransitArrayMap.prototype.clone = com.cognitect.transit.types.TransitArrayMap.prototype.clone;\ncom.cognitect.transit.types.TransitArrayMap.prototype[com.cognitect.transit.types.ITERATOR] = function() {\n return this.entries();\n};\ncom.cognitect.transit.types.TransitArrayMap.prototype.com$cognitect$transit$hashCode = function() {\n if (this.backingMap) {\n return this.backingMap.com$cognitect$transit$hashCode();\n }\n -1 === this.hashCode && (this.hashCode = com.cognitect.transit.eq.hashMapLike(this));\n return this.hashCode;\n};\ncom.cognitect.transit.types.TransitArrayMap.prototype.com$cognitect$transit$equals = function(a) {\n return this.backingMap ? com.cognitect.transit.types.mapEquals(this.backingMap, a) : com.cognitect.transit.types.mapEquals(this, a);\n};\ncom.cognitect.transit.types.TransitMap = function(a, b, c) {\n this.map = b || {};\n this._keys = a || [];\n this.size = c || 0;\n this.hashCode = -1;\n};\ncom.cognitect.transit.types.TransitMap.prototype.toString = function() {\n return com.cognitect.transit.types.printMap(this);\n};\ncom.cognitect.transit.types.TransitMap.prototype.inspect = function() {\n return this.toString();\n};\ncom.cognitect.transit.types.TransitMap.prototype.clear = function() {\n this.hashCode = -1;\n this.map = {};\n this._keys = [];\n this.size = 0;\n};\ncom.cognitect.transit.types.TransitMap.prototype.clear = com.cognitect.transit.types.TransitMap.prototype.clear;\ncom.cognitect.transit.types.TransitMap.prototype.getKeys = function() {\n return null != this._keys ? this._keys : com.cognitect.transit.util.objectKeys(this.map);\n};\ncom.cognitect.transit.types.TransitMap.prototype[\"delete\"] = function(a) {\n this.hashCode = -1;\n this._keys = null;\n for (var b = com.cognitect.transit.eq.hashCode(a), c = this.map[b], d = 0; d < c.length; d += 2) {\n if (com.cognitect.transit.eq.equals(a, c[d])) {\n return a = c[d + 1], c.splice(d, 2), 0 === c.length && delete this.map[b], this.size--, a;\n }\n }\n};\ncom.cognitect.transit.types.TransitMap.prototype.entries = function() {\n return new com.cognitect.transit.types.TransitMapIterator(this, com.cognitect.transit.types.ENTRIES);\n};\ncom.cognitect.transit.types.TransitMap.prototype.entries = com.cognitect.transit.types.TransitMap.prototype.entries;\ncom.cognitect.transit.types.TransitMap.prototype.forEach = function(a) {\n for (var b = this.getKeys(), c = 0; c < b.length; c++) {\n for (var d = this.map[b[c]], e = 0; e < d.length; e += 2) {\n a(d[e + 1], d[e], this);\n }\n }\n};\ncom.cognitect.transit.types.TransitMap.prototype.forEach = com.cognitect.transit.types.TransitMap.prototype.forEach;\ncom.cognitect.transit.types.TransitMap.prototype.get = function(a, b) {\n var c = com.cognitect.transit.eq.hashCode(a);\n c = this.map[c];\n if (null != c) {\n for (b = 0; b < c.length; b += 2) {\n if (com.cognitect.transit.eq.equals(a, c[b])) {\n return c[b + 1];\n }\n }\n } else {\n return b;\n }\n};\ncom.cognitect.transit.types.TransitMap.prototype.get = com.cognitect.transit.types.TransitMap.prototype.get;\ncom.cognitect.transit.types.TransitMap.prototype.has = function(a) {\n var b = com.cognitect.transit.eq.hashCode(a);\n b = this.map[b];\n if (null != b) {\n for (var c = 0; c < b.length; c += 2) {\n if (com.cognitect.transit.eq.equals(a, b[c])) {\n return !0;\n }\n }\n }\n return !1;\n};\ncom.cognitect.transit.types.TransitMap.prototype.has = com.cognitect.transit.types.TransitMap.prototype.has;\ncom.cognitect.transit.types.TransitMap.prototype.keys = function() {\n return new com.cognitect.transit.types.TransitMapIterator(this, com.cognitect.transit.types.KEYS);\n};\ncom.cognitect.transit.types.TransitMap.prototype.keys = com.cognitect.transit.types.TransitMap.prototype.keys;\ncom.cognitect.transit.types.TransitMap.prototype.keySet = function() {\n for (var a = this.getKeys(), b = [], c = 0; c < a.length; c++) {\n for (var d = this.map[a[c]], e = 0; e < d.length; e += 2) {\n b.push(d[e]);\n }\n }\n return b;\n};\ncom.cognitect.transit.types.TransitMap.prototype.keySet = com.cognitect.transit.types.TransitMap.prototype.keySet;\ncom.cognitect.transit.types.TransitMap.prototype.set = function(a, b) {\n this.hashCode = -1;\n var c = com.cognitect.transit.eq.hashCode(a), d = this.map[c];\n if (null == d) {\n this._keys && this._keys.push(c), this.map[c] = [a, b], this.size++;\n } else {\n c = !0;\n for (var e = 0; e < d.length; e += 2) {\n if (com.cognitect.transit.eq.equals(b, d[e])) {\n c = !1;\n d[e] = b;\n break;\n }\n }\n c && (d.push(a), d.push(b), this.size++);\n }\n};\ncom.cognitect.transit.types.TransitMap.prototype.set = com.cognitect.transit.types.TransitMap.prototype.set;\ncom.cognitect.transit.types.TransitMap.prototype.values = function() {\n return new com.cognitect.transit.types.TransitMapIterator(this, com.cognitect.transit.types.VALUES);\n};\ncom.cognitect.transit.types.TransitMap.prototype.values = com.cognitect.transit.types.TransitMap.prototype.values;\ncom.cognitect.transit.types.TransitMap.prototype.clone = function() {\n var a = com.cognitect.transit.types.map();\n this.forEach(function(b, c) {\n a.set(c, b);\n });\n return a;\n};\ncom.cognitect.transit.types.TransitMap.prototype.clone = com.cognitect.transit.types.TransitMap.prototype.clone;\ncom.cognitect.transit.types.TransitMap.prototype[com.cognitect.transit.types.ITERATOR] = function() {\n return this.entries();\n};\ncom.cognitect.transit.types.TransitMap.prototype.com$cognitect$transit$hashCode = function() {\n -1 === this.hashCode && (this.hashCode = com.cognitect.transit.eq.hashMapLike(this));\n return this.hashCode;\n};\ncom.cognitect.transit.types.TransitMap.prototype.com$cognitect$transit$equals = function(a) {\n return com.cognitect.transit.types.mapEquals(this, a);\n};\ncom.cognitect.transit.types.map = function(a, b, c) {\n a = a || [];\n b = !1 === b ? b : !0;\n if ((!0 !== c || !c) && a.length <= 2 * com.cognitect.transit.types.ARRAY_MAP_THRESHOLD) {\n if (b) {\n var d = a;\n a = [];\n for (b = 0; b < d.length; b += 2) {\n var e = !1;\n for (c = 0; c < a.length; c += 2) {\n if (com.cognitect.transit.eq.equals(a[c], d[b])) {\n a[c + 1] = d[b + 1];\n e = !0;\n break;\n }\n }\n e || (a.push(d[b]), a.push(d[b + 1]));\n }\n }\n return new com.cognitect.transit.types.TransitArrayMap(a);\n }\n d = {};\n e = [];\n var f = 0;\n for (b = 0; b < a.length; b += 2) {\n c = com.cognitect.transit.eq.hashCode(a[b]);\n var g = d[c];\n if (null == g) {\n e.push(c), d[c] = [a[b], a[b + 1]], f++;\n } else {\n var h = !0;\n for (c = 0; c < g.length; c += 2) {\n if (com.cognitect.transit.eq.equals(g[c], a[b])) {\n g[c + 1] = a[b + 1];\n h = !1;\n break;\n }\n }\n h && (g.push(a[b]), g.push(a[b + 1]), f++);\n }\n }\n return new com.cognitect.transit.types.TransitMap(e, d, f);\n};\ncom.cognitect.transit.types.isArrayMap = function(a) {\n return a instanceof com.cognitect.transit.types.TransitArrayMap;\n};\ncom.cognitect.transit.types.isMap = function(a) {\n return a instanceof com.cognitect.transit.types.TransitArrayMap || a instanceof com.cognitect.transit.types.TransitMap;\n};\ncom.cognitect.transit.types.TransitSet = function(a) {\n this.map = a;\n this.size = a.size;\n};\ncom.cognitect.transit.types.TransitSet.prototype.toString = function() {\n return com.cognitect.transit.types.printSet(this);\n};\ncom.cognitect.transit.types.TransitSet.prototype.inspect = function() {\n return this.toString();\n};\ncom.cognitect.transit.types.TransitSet.prototype.add = function(a) {\n this.map.set(a, a);\n this.size = this.map.size;\n};\ncom.cognitect.transit.types.TransitSet.prototype.add = com.cognitect.transit.types.TransitSet.prototype.add;\ncom.cognitect.transit.types.TransitSet.prototype.clear = function() {\n this.map = new com.cognitect.transit.types.TransitMap;\n this.size = 0;\n};\ncom.cognitect.transit.types.TransitSet.prototype.clear = com.cognitect.transit.types.TransitSet.prototype.clear;\ncom.cognitect.transit.types.TransitSet.prototype[\"delete\"] = function(a) {\n a = this.map.delete(a);\n this.size = this.map.size;\n return a;\n};\ncom.cognitect.transit.types.TransitSet.prototype.entries = function() {\n return this.map.entries();\n};\ncom.cognitect.transit.types.TransitSet.prototype.entries = com.cognitect.transit.types.TransitSet.prototype.entries;\ncom.cognitect.transit.types.TransitSet.prototype.forEach = function(a, b) {\n var c = this;\n this.map.forEach(function(d, e, f) {\n a(e, c);\n });\n};\ncom.cognitect.transit.types.TransitSet.prototype.forEach = com.cognitect.transit.types.TransitSet.prototype.forEach;\ncom.cognitect.transit.types.TransitSet.prototype.has = function(a) {\n return this.map.has(a);\n};\ncom.cognitect.transit.types.TransitSet.prototype.has = com.cognitect.transit.types.TransitSet.prototype.has;\ncom.cognitect.transit.types.TransitSet.prototype.keys = function() {\n return this.map.keys();\n};\ncom.cognitect.transit.types.TransitSet.prototype.keys = com.cognitect.transit.types.TransitSet.prototype.keys;\ncom.cognitect.transit.types.TransitSet.prototype.keySet = function() {\n return this.map.keySet();\n};\ncom.cognitect.transit.types.TransitSet.prototype.keySet = com.cognitect.transit.types.TransitSet.prototype.keySet;\ncom.cognitect.transit.types.TransitSet.prototype.values = function() {\n return this.map.values();\n};\ncom.cognitect.transit.types.TransitSet.prototype.values = com.cognitect.transit.types.TransitSet.prototype.values;\ncom.cognitect.transit.types.TransitSet.prototype.clone = function() {\n var a = com.cognitect.transit.types.set();\n this.forEach(function(b) {\n a.add(b);\n });\n return a;\n};\ncom.cognitect.transit.types.TransitSet.prototype.clone = com.cognitect.transit.types.TransitSet.prototype.clone;\ncom.cognitect.transit.types.TransitSet.prototype[com.cognitect.transit.types.ITERATOR] = function() {\n return this.values();\n};\ncom.cognitect.transit.types.TransitSet.prototype.com$cognitect$transit$equals = function(a) {\n if (a instanceof com.cognitect.transit.types.TransitSet) {\n if (this.size === a.size) {\n return com.cognitect.transit.eq.equals(this.map, a.map);\n }\n } else {\n return !1;\n }\n};\ncom.cognitect.transit.types.TransitSet.prototype.com$cognitect$transit$hashCode = function(a) {\n return com.cognitect.transit.eq.hashCode(this.map);\n};\ncom.cognitect.transit.types.set = function(a) {\n a = a || [];\n for (var b = {}, c = [], d = 0, e = 0; e < a.length; e++) {\n var f = com.cognitect.transit.eq.hashCode(a[e]), g = b[f];\n if (null == g) {\n c.push(f), b[f] = [a[e], a[e]], d++;\n } else {\n f = !0;\n for (var h = 0; h < g.length; h += 2) {\n if (com.cognitect.transit.eq.equals(g[h], a[e])) {\n f = !1;\n break;\n }\n }\n f && (g.push(a[e]), g.push(a[e]), d++);\n }\n }\n return new com.cognitect.transit.types.TransitSet(new com.cognitect.transit.types.TransitMap(c, b, d));\n};\ncom.cognitect.transit.types.isSet = function(a) {\n return a instanceof com.cognitect.transit.types.TransitSet;\n};\ncom.cognitect.transit.types.quoted = function(a) {\n return com.cognitect.transit.types.taggedValue(\"'\", a);\n};\ncom.cognitect.transit.types.isQuoted = function(a) {\n return a instanceof com.cognitect.transit.types.TaggedValue && \"'\" === a.tag;\n};\ncom.cognitect.transit.types.list = function(a) {\n return com.cognitect.transit.types.taggedValue(\"list\", a);\n};\ncom.cognitect.transit.types.isList = function(a) {\n return a instanceof com.cognitect.transit.types.TaggedValue && \"list\" === a.tag;\n};\ncom.cognitect.transit.types.link = function(a) {\n return com.cognitect.transit.types.taggedValue(\"link\", a);\n};\ncom.cognitect.transit.types.isLink = function(a) {\n return a instanceof com.cognitect.transit.types.TaggedValue && \"link\" === a.tag;\n};\ncom.cognitect.transit.types.specialDouble = function(a) {\n switch(a) {\n case \"-INF\":\n return -Infinity;\n case \"INF\":\n return Infinity;\n case \"NaN\":\n return NaN;\n default:\n throw Error(\"Invalid special double value \" + a);\n }\n};\ncom.cognitect.transit.impl = {};\ncom.cognitect.transit.impl.decoder = {};\ncom.cognitect.transit.impl.decoder.Tag = function(a) {\n this.str = a;\n};\ncom.cognitect.transit.impl.decoder.tag = function(a) {\n return new com.cognitect.transit.impl.decoder.Tag(a);\n};\ncom.cognitect.transit.impl.decoder.isTag = function(a) {\n return a && a instanceof com.cognitect.transit.impl.decoder.Tag;\n};\ncom.cognitect.transit.impl.decoder.isGroundHandler = function(a) {\n switch(a) {\n case \"_\":\n case \"s\":\n case \"?\":\n case \"i\":\n case \"d\":\n case \"b\":\n case \"'\":\n case \"array\":\n case \"map\":\n return !0;\n }\n return !1;\n};\ncom.cognitect.transit.impl.decoder.Decoder = function(a) {\n this.options = a || {};\n this.handlers = {};\n for (var b in this.defaults.handlers) {\n this.handlers[b] = this.defaults.handlers[b];\n }\n for (b in this.options.handlers) {\n if (com.cognitect.transit.impl.decoder.isGroundHandler(b)) {\n throw Error('Cannot override handler for ground type \"' + b + '\"');\n }\n this.handlers[b] = this.options.handlers[b];\n }\n this.preferStrings = null != this.options.preferStrings ? this.options.preferStrings : this.defaults.preferStrings;\n this.preferBuffers = null != this.options.preferBuffers ? this.options.preferBuffers : this.defaults.preferBuffers;\n this.defaultHandler = this.options.defaultHandler || this.defaults.defaultHandler;\n this.mapBuilder = this.options.mapBuilder;\n this.arrayBuilder = this.options.arrayBuilder;\n};\ncom.cognitect.transit.impl.decoder.Decoder.prototype.defaults = {handlers:{_:function(a, b) {\n return com.cognitect.transit.types.nullValue();\n}, \"?\":function(a, b) {\n return com.cognitect.transit.types.boolValue(a);\n}, b:function(a, b) {\n return com.cognitect.transit.types.binary(a, b);\n}, i:function(a, b) {\n return com.cognitect.transit.types.intValue(a);\n}, n:function(a, b) {\n return com.cognitect.transit.types.bigInteger(a);\n}, d:function(a, b) {\n return com.cognitect.transit.types.floatValue(a);\n}, f:function(a, b) {\n return com.cognitect.transit.types.bigDecimalValue(a);\n}, c:function(a, b) {\n return com.cognitect.transit.types.charValue(a);\n}, \":\":function(a, b) {\n return com.cognitect.transit.types.keyword(a);\n}, $:function(a, b) {\n return com.cognitect.transit.types.symbol(a);\n}, r:function(a, b) {\n return com.cognitect.transit.types.uri(a);\n}, z:function(a, b) {\n return com.cognitect.transit.types.specialDouble(a);\n}, \"'\":function(a, b) {\n return a;\n}, m:function(a, b) {\n return com.cognitect.transit.types.date(a);\n}, t:function(a, b) {\n return com.cognitect.transit.types.verboseDate(a);\n}, u:function(a, b) {\n return com.cognitect.transit.types.uuid(a);\n}, set:function(a, b) {\n return com.cognitect.transit.types.set(a);\n}, list:function(a, b) {\n return com.cognitect.transit.types.list(a);\n}, link:function(a, b) {\n return com.cognitect.transit.types.link(a);\n}, cmap:function(a, b) {\n return com.cognitect.transit.types.map(a, !1);\n}}, defaultHandler:function(a, b) {\n return com.cognitect.transit.types.taggedValue(a, b);\n}, preferStrings:!0, preferBuffers:!0};\ncom.cognitect.transit.impl.decoder.Decoder.prototype.decode = function(a, b, c, d) {\n if (null == a) {\n return null;\n }\n switch(typeof a) {\n case \"string\":\n return this.decodeString(a, b, c, d);\n case \"object\":\n return com.cognitect.transit.util.isArray(a) ? \"^ \" === a[0] ? this.decodeArrayHash(a, b, c, d) : this.decodeArray(a, b, c, d) : this.decodeHash(a, b, c, d);\n }\n return a;\n};\ncom.cognitect.transit.impl.decoder.Decoder.prototype.decode = com.cognitect.transit.impl.decoder.Decoder.prototype.decode;\ncom.cognitect.transit.impl.decoder.Decoder.prototype.decodeString = function(a, b, c, d) {\n return com.cognitect.transit.caching.isCacheable(a, c) ? (a = this.parseString(a, b, !1), b && b.write(a, c), a) : com.cognitect.transit.caching.isCacheCode(a) ? b.read(a, c) : this.parseString(a, b, c);\n};\ncom.cognitect.transit.impl.decoder.Decoder.prototype.decodeHash = function(a, b, c, d) {\n c = com.cognitect.transit.util.objectKeys(a);\n var e = c[0];\n d = 1 == c.length ? this.decode(e, b, !1, !1) : null;\n if (com.cognitect.transit.impl.decoder.isTag(d)) {\n return a = a[e], c = this.handlers[d.str], null != c ? c(this.decode(a, b, !1, !0), this) : com.cognitect.transit.types.taggedValue(d.str, this.decode(a, b, !1, !1));\n }\n if (this.mapBuilder) {\n if (c.length < 2 * com.cognitect.transit.types.SMALL_ARRAY_MAP_THRESHOLD && this.mapBuilder.fromArray) {\n var f = [];\n for (d = 0; d < c.length; d++) {\n e = c[d], f.push(this.decode(e, b, !0, !1)), f.push(this.decode(a[e], b, !1, !1));\n }\n return this.mapBuilder.fromArray(f, a);\n }\n f = this.mapBuilder.init(a);\n for (d = 0; d < c.length; d++) {\n e = c[d], f = this.mapBuilder.add(f, this.decode(e, b, !0, !1), this.decode(a[e], b, !1, !1), a);\n }\n return this.mapBuilder.finalize(f, a);\n }\n f = [];\n for (d = 0; d < c.length; d++) {\n e = c[d], f.push(this.decode(e, b, !0, !1)), f.push(this.decode(a[e], b, !1, !1));\n }\n return com.cognitect.transit.types.map(f, !1);\n};\ncom.cognitect.transit.impl.decoder.Decoder.prototype.decodeArrayHash = function(a, b, c, d) {\n if (this.mapBuilder) {\n if (a.length < 2 * com.cognitect.transit.types.SMALL_ARRAY_MAP_THRESHOLD + 1 && this.mapBuilder.fromArray) {\n d = [];\n for (c = 1; c < a.length; c += 2) {\n d.push(this.decode(a[c], b, !0, !1)), d.push(this.decode(a[c + 1], b, !1, !1));\n }\n return this.mapBuilder.fromArray(d, a);\n }\n d = this.mapBuilder.init(a);\n for (c = 1; c < a.length; c += 2) {\n d = this.mapBuilder.add(d, this.decode(a[c], b, !0, !1), this.decode(a[c + 1], b, !1, !1), a);\n }\n return this.mapBuilder.finalize(d, a);\n }\n d = [];\n for (c = 1; c < a.length; c += 2) {\n d.push(this.decode(a[c], b, !0, !1)), d.push(this.decode(a[c + 1], b, !1, !1));\n }\n return com.cognitect.transit.types.map(d, !1);\n};\ncom.cognitect.transit.impl.decoder.Decoder.prototype.decodeArray = function(a, b, c, d) {\n if (d) {\n var e = [];\n for (d = 0; d < a.length; d++) {\n e.push(this.decode(a[d], b, c, !1));\n }\n return e;\n }\n e = b && b.idx;\n if (2 === a.length && \"string\" === typeof a[0] && (d = this.decode(a[0], b, !1, !1), com.cognitect.transit.impl.decoder.isTag(d))) {\n return a = a[1], e = this.handlers[d.str], null != e ? e = e(this.decode(a, b, c, !0), this) : com.cognitect.transit.types.taggedValue(d.str, this.decode(a, b, c, !1));\n }\n b && e != b.idx && (b.idx = e);\n if (this.arrayBuilder) {\n if (32 >= a.length && this.arrayBuilder.fromArray) {\n e = [];\n for (d = 0; d < a.length; d++) {\n e.push(this.decode(a[d], b, c, !1));\n }\n return this.arrayBuilder.fromArray(e, a);\n }\n e = this.arrayBuilder.init(a);\n for (d = 0; d < a.length; d++) {\n e = this.arrayBuilder.add(e, this.decode(a[d], b, c, !1), a);\n }\n return this.arrayBuilder.finalize(e, a);\n }\n e = [];\n for (d = 0; d < a.length; d++) {\n e.push(this.decode(a[d], b, c, !1));\n }\n return e;\n};\ncom.cognitect.transit.impl.decoder.Decoder.prototype.parseString = function(a, b, c) {\n if (a.charAt(0) === com.cognitect.transit.delimiters.ESC) {\n b = a.charAt(1);\n if (b === com.cognitect.transit.delimiters.ESC || b === com.cognitect.transit.delimiters.SUB || b === com.cognitect.transit.delimiters.RES) {\n return a.substring(1);\n }\n if (b === com.cognitect.transit.delimiters.TAG) {\n return com.cognitect.transit.impl.decoder.tag(a.substring(2));\n }\n c = this.handlers[b];\n return null == c ? this.defaultHandler(b, a.substring(2)) : c(a.substring(2), this);\n }\n return a;\n};\ncom.cognitect.transit.impl.decoder.decoder = function(a) {\n return new com.cognitect.transit.impl.decoder.Decoder(a);\n};\ncom.cognitect.transit.impl.reader = {};\ncom.cognitect.transit.impl.reader.JSONUnmarshaller = function(a) {\n this.decoder = new com.cognitect.transit.impl.decoder.Decoder(a);\n};\ncom.cognitect.transit.impl.reader.JSONUnmarshaller.prototype.unmarshal = function(a, b) {\n return this.decoder.decode(JSON.parse(a), b);\n};\ncom.cognitect.transit.impl.reader.Reader = function(a, b) {\n this.unmarshaller = a;\n this.options = b || {};\n this.cache = this.options.cache ? this.options.cache : new com.cognitect.transit.caching.ReadCache;\n};\ncom.cognitect.transit.impl.reader.Reader.prototype.read = function(a) {\n a = this.unmarshaller.unmarshal(a, this.cache);\n this.cache.clear();\n return a;\n};\ncom.cognitect.transit.impl.reader.Reader.prototype.read = com.cognitect.transit.impl.reader.Reader.prototype.read;\ncom.cognitect.transit.handlers = {};\ncom.cognitect.transit.handlers.ctorGuid = 0;\ncom.cognitect.transit.handlers.ctorGuidProperty = \"transit$guid$\" + com.cognitect.transit.util.randomUUID();\ncom.cognitect.transit.handlers.typeTag = function(a) {\n if (null == a) {\n return \"null\";\n }\n if (a === String) {\n return \"string\";\n }\n if (a === Boolean) {\n return \"boolean\";\n }\n if (a === Number) {\n return \"number\";\n }\n if (a === Array) {\n return \"array\";\n }\n if (a === Object) {\n return \"map\";\n }\n var b = a[com.cognitect.transit.handlers.ctorGuidProperty];\n null == b && (\"undefined\" != typeof Object.defineProperty ? (b = ++com.cognitect.transit.handlers.ctorGuid, Object.defineProperty(a, com.cognitect.transit.handlers.ctorGuidProperty, {value:b, enumerable:!1})) : a[com.cognitect.transit.handlers.ctorGuidProperty] = b = ++com.cognitect.transit.handlers.ctorGuid);\n return b;\n};\ncom.cognitect.transit.handlers.constructor = function(a) {\n return null == a ? null : a.constructor;\n};\ncom.cognitect.transit.handlers.padZeros = function(a, b) {\n a = a.toString();\n for (var c = a.length; c < b; c++) {\n a = \"0\" + a;\n }\n return a;\n};\ncom.cognitect.transit.handlers.stringableKeys = function(a) {\n a = com.cognitect.transit.util.objectKeys(a);\n for (var b = 0; b < a.length; b++) {\n }\n return !0;\n};\ncom.cognitect.transit.handlers.NilHandler = function() {\n};\ncom.cognitect.transit.handlers.NilHandler.prototype.tag = function(a) {\n return \"_\";\n};\ncom.cognitect.transit.handlers.NilHandler.prototype.rep = function(a) {\n return null;\n};\ncom.cognitect.transit.handlers.NilHandler.prototype.stringRep = function(a) {\n return \"null\";\n};\ncom.cognitect.transit.handlers.StringHandler = function() {\n};\ncom.cognitect.transit.handlers.StringHandler.prototype.tag = function(a) {\n return \"s\";\n};\ncom.cognitect.transit.handlers.StringHandler.prototype.rep = function(a) {\n return a;\n};\ncom.cognitect.transit.handlers.StringHandler.prototype.stringRep = function(a) {\n return a;\n};\ncom.cognitect.transit.handlers.NumberHandler = function() {\n};\ncom.cognitect.transit.handlers.NumberHandler.prototype.tag = function(a) {\n return \"i\";\n};\ncom.cognitect.transit.handlers.NumberHandler.prototype.rep = function(a) {\n return a;\n};\ncom.cognitect.transit.handlers.NumberHandler.prototype.stringRep = function(a) {\n return a.toString();\n};\ncom.cognitect.transit.handlers.IntegerHandler = function() {\n};\ncom.cognitect.transit.handlers.IntegerHandler.prototype.tag = function(a) {\n return \"i\";\n};\ncom.cognitect.transit.handlers.IntegerHandler.prototype.rep = function(a) {\n return a.toString();\n};\ncom.cognitect.transit.handlers.IntegerHandler.prototype.stringRep = function(a) {\n return a.toString();\n};\ncom.cognitect.transit.handlers.BooleanHandler = function() {\n};\ncom.cognitect.transit.handlers.BooleanHandler.prototype.tag = function(a) {\n return \"?\";\n};\ncom.cognitect.transit.handlers.BooleanHandler.prototype.rep = function(a) {\n return a;\n};\ncom.cognitect.transit.handlers.BooleanHandler.prototype.stringRep = function(a) {\n return a.toString();\n};\ncom.cognitect.transit.handlers.ArrayHandler = function() {\n};\ncom.cognitect.transit.handlers.ArrayHandler.prototype.tag = function(a) {\n return \"array\";\n};\ncom.cognitect.transit.handlers.ArrayHandler.prototype.rep = function(a) {\n return a;\n};\ncom.cognitect.transit.handlers.ArrayHandler.prototype.stringRep = function(a) {\n return null;\n};\ncom.cognitect.transit.handlers.MapHandler = function() {\n};\ncom.cognitect.transit.handlers.MapHandler.prototype.tag = function(a) {\n return \"map\";\n};\ncom.cognitect.transit.handlers.MapHandler.prototype.rep = function(a) {\n return a;\n};\ncom.cognitect.transit.handlers.MapHandler.prototype.stringRep = function(a) {\n return null;\n};\ncom.cognitect.transit.handlers.VerboseDateHandler = function() {\n};\ncom.cognitect.transit.handlers.VerboseDateHandler.prototype.tag = function(a) {\n return \"t\";\n};\ncom.cognitect.transit.handlers.VerboseDateHandler.prototype.rep = function(a) {\n return a.getUTCFullYear() + \"-\" + com.cognitect.transit.handlers.padZeros(a.getUTCMonth() + 1, 2) + \"-\" + com.cognitect.transit.handlers.padZeros(a.getUTCDate(), 2) + \"T\" + com.cognitect.transit.handlers.padZeros(a.getUTCHours(), 2) + \":\" + com.cognitect.transit.handlers.padZeros(a.getUTCMinutes(), 2) + \":\" + com.cognitect.transit.handlers.padZeros(a.getUTCSeconds(), 2) + \".\" + com.cognitect.transit.handlers.padZeros(a.getUTCMilliseconds(), 3) + \"Z\";\n};\ncom.cognitect.transit.handlers.VerboseDateHandler.prototype.stringRep = function(a, b) {\n return b.rep(a);\n};\ncom.cognitect.transit.handlers.DateHandler = function() {\n};\ncom.cognitect.transit.handlers.DateHandler.prototype.tag = function(a) {\n return \"m\";\n};\ncom.cognitect.transit.handlers.DateHandler.prototype.rep = function(a) {\n return a.valueOf();\n};\ncom.cognitect.transit.handlers.DateHandler.prototype.stringRep = function(a) {\n return a.valueOf().toString();\n};\ncom.cognitect.transit.handlers.DateHandler.prototype.getVerboseHandler = function(a) {\n return new com.cognitect.transit.handlers.VerboseDateHandler;\n};\ncom.cognitect.transit.handlers.UUIDHandler = function() {\n};\ncom.cognitect.transit.handlers.UUIDHandler.prototype.tag = function(a) {\n return \"u\";\n};\ncom.cognitect.transit.handlers.UUIDHandler.prototype.rep = function(a) {\n return a.toString();\n};\ncom.cognitect.transit.handlers.UUIDHandler.prototype.stringRep = function(a) {\n return a.toString();\n};\ncom.cognitect.transit.handlers.KeywordHandler = function() {\n};\ncom.cognitect.transit.handlers.KeywordHandler.prototype.tag = function(a) {\n return \":\";\n};\ncom.cognitect.transit.handlers.KeywordHandler.prototype.rep = function(a) {\n return a._name;\n};\ncom.cognitect.transit.handlers.KeywordHandler.prototype.stringRep = function(a, b) {\n return b.rep(a);\n};\ncom.cognitect.transit.handlers.SymbolHandler = function() {\n};\ncom.cognitect.transit.handlers.SymbolHandler.prototype.tag = function(a) {\n return \"$\";\n};\ncom.cognitect.transit.handlers.SymbolHandler.prototype.rep = function(a) {\n return a._name;\n};\ncom.cognitect.transit.handlers.SymbolHandler.prototype.stringRep = function(a, b) {\n return b.rep(a);\n};\ncom.cognitect.transit.handlers.TaggedHandler = function() {\n};\ncom.cognitect.transit.handlers.TaggedHandler.prototype.tag = function(a) {\n return a.tag;\n};\ncom.cognitect.transit.handlers.TaggedHandler.prototype.rep = function(a) {\n return a.rep;\n};\ncom.cognitect.transit.handlers.TaggedHandler.prototype.stringRep = function(a, b) {\n return null;\n};\ncom.cognitect.transit.handlers.TransitSetHandler = function() {\n};\ncom.cognitect.transit.handlers.TransitSetHandler.prototype.tag = function(a) {\n return \"set\";\n};\ncom.cognitect.transit.handlers.TransitSetHandler.prototype.rep = function(a) {\n var b = [];\n a.forEach(function(c, d) {\n b.push(c);\n });\n return com.cognitect.transit.types.taggedValue(\"array\", b);\n};\ncom.cognitect.transit.handlers.TransitSetHandler.prototype.stringRep = function(a, b) {\n return null;\n};\ncom.cognitect.transit.handlers.TransitArrayMapHandler = function() {\n};\ncom.cognitect.transit.handlers.TransitArrayMapHandler.prototype.tag = function(a) {\n return \"map\";\n};\ncom.cognitect.transit.handlers.TransitArrayMapHandler.prototype.rep = function(a) {\n return a;\n};\ncom.cognitect.transit.handlers.TransitArrayMapHandler.prototype.stringRep = function(a, b) {\n return null;\n};\ncom.cognitect.transit.handlers.TransitMapHandler = function() {\n};\ncom.cognitect.transit.handlers.TransitMapHandler.prototype.tag = function(a) {\n return \"map\";\n};\ncom.cognitect.transit.handlers.TransitMapHandler.prototype.rep = function(a) {\n return a;\n};\ncom.cognitect.transit.handlers.TransitMapHandler.prototype.stringRep = function(a, b) {\n return null;\n};\ncom.cognitect.transit.handlers.BufferHandler = function() {\n};\ncom.cognitect.transit.handlers.BufferHandler.prototype.tag = function(a) {\n return \"b\";\n};\ncom.cognitect.transit.handlers.BufferHandler.prototype.rep = function(a) {\n return a.toString(\"base64\");\n};\ncom.cognitect.transit.handlers.BufferHandler.prototype.stringRep = function(a, b) {\n return null;\n};\ncom.cognitect.transit.handlers.Uint8ArrayHandler = function() {\n};\ncom.cognitect.transit.handlers.Uint8ArrayHandler.prototype.tag = function(a) {\n return \"b\";\n};\ncom.cognitect.transit.handlers.Uint8ArrayHandler.prototype.rep = function(a) {\n return com.cognitect.transit.util.Uint8ToBase64(a);\n};\ncom.cognitect.transit.handlers.Uint8ArrayHandler.prototype.stringRep = function(a, b) {\n return null;\n};\ncom.cognitect.transit.handlers.defaultHandlers = function(a) {\n a.set(null, new com.cognitect.transit.handlers.NilHandler);\n a.set(String, new com.cognitect.transit.handlers.StringHandler);\n a.set(Number, new com.cognitect.transit.handlers.NumberHandler);\n a.set(module$contents$goog$math$Long_Long, new com.cognitect.transit.handlers.IntegerHandler);\n a.set(Boolean, new com.cognitect.transit.handlers.BooleanHandler);\n a.set(Array, new com.cognitect.transit.handlers.ArrayHandler);\n a.set(Object, new com.cognitect.transit.handlers.MapHandler);\n a.set(Date, new com.cognitect.transit.handlers.DateHandler);\n a.set(com.cognitect.transit.types.UUID, new com.cognitect.transit.handlers.UUIDHandler);\n a.set(com.cognitect.transit.types.Keyword, new com.cognitect.transit.handlers.KeywordHandler);\n a.set(com.cognitect.transit.types.Symbol, new com.cognitect.transit.handlers.SymbolHandler);\n a.set(com.cognitect.transit.types.TaggedValue, new com.cognitect.transit.handlers.TaggedHandler);\n a.set(com.cognitect.transit.types.TransitSet, new com.cognitect.transit.handlers.TransitSetHandler);\n a.set(com.cognitect.transit.types.TransitArrayMap, new com.cognitect.transit.handlers.TransitArrayMapHandler);\n a.set(com.cognitect.transit.types.TransitMap, new com.cognitect.transit.handlers.TransitMapHandler);\n \"undefined\" != typeof goog.global.Buffer && a.set(goog.global.Buffer, new com.cognitect.transit.handlers.BufferHandler);\n \"undefined\" != typeof Uint8Array && a.set(Uint8Array, new com.cognitect.transit.handlers.Uint8ArrayHandler);\n return a;\n};\ncom.cognitect.transit.handlers.Handlers = function() {\n this.handlers = {};\n com.cognitect.transit.handlers.defaultHandlers(this);\n};\ncom.cognitect.transit.handlers.Handlers.prototype.get = function(a) {\n a = \"string\" === typeof a ? this.handlers[a] : this.handlers[com.cognitect.transit.handlers.typeTag(a)];\n return null != a ? a : this.handlers[\"default\"];\n};\ncom.cognitect.transit.handlers.Handlers.prototype.get = com.cognitect.transit.handlers.Handlers.prototype.get;\ncom.cognitect.transit.handlers.validTag = function(a) {\n switch(a) {\n case \"null\":\n case \"string\":\n case \"boolean\":\n case \"number\":\n case \"array\":\n case \"map\":\n return !1;\n }\n return !0;\n};\ncom.cognitect.transit.handlers.Handlers.prototype.set = function(a, b) {\n \"string\" === typeof a && com.cognitect.transit.handlers.validTag(a) ? this.handlers[a] = b : this.handlers[com.cognitect.transit.handlers.typeTag(a)] = b;\n};\ncom.cognitect.transit.impl.writer = {};\ncom.cognitect.transit.impl.writer.escape = function(a) {\n if (0 < a.length) {\n var b = a.charAt(0);\n return b === com.cognitect.transit.delimiters.ESC || b === com.cognitect.transit.delimiters.SUB || b === com.cognitect.transit.delimiters.RES ? com.cognitect.transit.delimiters.ESC + a : a;\n }\n return a;\n};\ncom.cognitect.transit.impl.writer.JSONMarshaller = function(a) {\n this.opts = a || {};\n this.preferStrings = null != this.opts.preferStrings ? this.opts.preferStrings : !0;\n this.objectBuilder = this.opts.objectBuilder || null;\n this.transform = this.opts.transform || null;\n this.handlers = new com.cognitect.transit.handlers.Handlers;\n if (a = this.opts.handlers) {\n if (com.cognitect.transit.util.isArray(a) || !a.forEach) {\n throw Error('transit writer \"handlers\" option must be a map');\n }\n var b = this;\n a.forEach(function(c, d) {\n if (void 0 !== d) {\n b.handlers.set(d, c);\n } else {\n throw Error(\"Cannot create handler for JavaScript undefined\");\n }\n });\n }\n this.handlerForForeign = this.opts.handlerForForeign;\n this.unpack = this.opts.unpack || function(c) {\n return com.cognitect.transit.types.isArrayMap(c) && null === c.backingMap ? c._entries : !1;\n };\n this.verbose = this.opts && this.opts.verbose || !1;\n};\ncom.cognitect.transit.impl.writer.JSONMarshaller.prototype.handler = function(a) {\n var b = this.handlers.get(com.cognitect.transit.handlers.constructor(a));\n return null != b ? b : (a = a && a.transitTag) ? this.handlers.get(a) : null;\n};\ncom.cognitect.transit.impl.writer.JSONMarshaller.prototype.registerHandler = function(a, b) {\n this.handlers.set(a, b);\n};\ncom.cognitect.transit.impl.writer.JSONMarshaller.prototype.emitNil = function(a, b) {\n return a ? this.emitString(com.cognitect.transit.delimiters.ESC, \"_\", \"\", a, b) : null;\n};\ncom.cognitect.transit.impl.writer.JSONMarshaller.prototype.emitString = function(a, b, c, d, e) {\n a = a + b + c;\n return e ? e.write(a, d) : a;\n};\ncom.cognitect.transit.impl.writer.JSONMarshaller.prototype.emitBoolean = function(a, b, c) {\n return b ? this.emitString(com.cognitect.transit.delimiters.ESC, \"?\", a.toString()[0], b, c) : a;\n};\ncom.cognitect.transit.impl.writer.JSONMarshaller.prototype.emitInteger = function(a, b, c) {\n return Infinity === a ? this.emitString(com.cognitect.transit.delimiters.ESC, \"z\", \"INF\", b, c) : -Infinity === a ? this.emitString(com.cognitect.transit.delimiters.ESC, \"z\", \"-INF\", b, c) : isNaN(a) ? this.emitString(com.cognitect.transit.delimiters.ESC, \"z\", \"NaN\", b, c) : b || \"string\" === typeof a || a instanceof module$contents$goog$math$Long_Long ? this.emitString(com.cognitect.transit.delimiters.ESC, \"i\", a.toString(), b, c) : a;\n};\ncom.cognitect.transit.impl.writer.JSONMarshaller.prototype.emitDouble = function(a, b, c) {\n return b ? this.emitString(a.ESC, \"d\", a, b, c) : a;\n};\ncom.cognitect.transit.impl.writer.JSONMarshaller.prototype.emitBinary = function(a, b, c) {\n return this.emitString(com.cognitect.transit.delimiters.ESC, \"b\", a, b, c);\n};\ncom.cognitect.transit.impl.writer.JSONMarshaller.prototype.emitQuoted = function(a, b, c) {\n if (a.verbose) {\n a = {};\n var d = this.emitString(com.cognitect.transit.delimiters.ESC_TAG, \"'\", \"\", !0, c);\n a[d] = com.cognitect.transit.impl.writer.marshal(this, b, !1, c);\n return a;\n }\n return [this.emitString(com.cognitect.transit.delimiters.ESC_TAG, \"'\", \"\", !0, c), com.cognitect.transit.impl.writer.marshal(this, b, !1, c)];\n};\ncom.cognitect.transit.impl.writer.emitObjects = function(a, b, c) {\n var d = [];\n if (com.cognitect.transit.util.isArray(b)) {\n for (var e = 0; e < b.length; e++) {\n d.push(com.cognitect.transit.impl.writer.marshal(a, b[e], !1, c));\n }\n } else {\n b.forEach(function(f, g) {\n d.push(com.cognitect.transit.impl.writer.marshal(a, f, !1, c));\n });\n }\n return d;\n};\ncom.cognitect.transit.impl.writer.emitArray = function(a, b, c, d) {\n return com.cognitect.transit.impl.writer.emitObjects(a, b, d);\n};\ncom.cognitect.transit.impl.writer.isStringableKey = function(a, b) {\n return \"string\" !== typeof b ? (a = a.handler(b)) && 1 === a.tag(b).length : !0;\n};\ncom.cognitect.transit.impl.writer.stringableKeys = function(a, b) {\n var c = a.unpack(b), d = !0;\n if (c) {\n for (b = 0; b < c.length && (d = com.cognitect.transit.impl.writer.isStringableKey(a, c[b]), d); b += 2) {\n }\n return d;\n }\n if (b.keys) {\n c = b.keys();\n var e = null;\n if (c.next) {\n for (e = c.next(); !e.done;) {\n d = com.cognitect.transit.impl.writer.isStringableKey(a, e.value);\n if (!d) {\n break;\n }\n e = c.next();\n }\n return d;\n }\n }\n if (b.forEach) {\n return b.forEach(function(f, g) {\n d = d && com.cognitect.transit.impl.writer.isStringableKey(a, g);\n }), d;\n }\n throw Error(\"Cannot walk keys of object type \" + com.cognitect.transit.handlers.constructor(b).name);\n};\ncom.cognitect.transit.impl.writer.isForeignObject = function(a) {\n if (a.constructor.transit$isObject) {\n return !0;\n }\n var b = a.constructor.toString();\n b = b.substr(9);\n b = b.substr(0, b.indexOf(\"(\"));\n b = \"Object\" == b;\n \"undefined\" != typeof Object.defineProperty ? Object.defineProperty(a.constructor, \"transit$isObject\", {value:b, enumerable:!1}) : a.constructor.transit$isObject = b;\n return b;\n};\ncom.cognitect.transit.impl.writer.emitMap = function(a, b, c, d) {\n var e = null, f = null, g = null;\n e = null;\n c = 0;\n if (b.constructor === Object || null != b.forEach || a.handlerForForeign && com.cognitect.transit.impl.writer.isForeignObject(b)) {\n if (a.verbose) {\n if (null != b.forEach) {\n if (com.cognitect.transit.impl.writer.stringableKeys(a, b)) {\n var h = {};\n b.forEach(function(k, l) {\n h[com.cognitect.transit.impl.writer.marshal(a, l, !0, !1)] = com.cognitect.transit.impl.writer.marshal(a, k, !1, d);\n });\n } else {\n e = a.unpack(b);\n f = [];\n g = a.emitString(com.cognitect.transit.delimiters.ESC_TAG, \"cmap\", \"\", !0, d);\n if (e) {\n for (; c < e.length; c += 2) {\n f.push(com.cognitect.transit.impl.writer.marshal(a, e[c], !1, !1)), f.push(com.cognitect.transit.impl.writer.marshal(a, e[c + 1], !1, d));\n }\n } else {\n b.forEach(function(k, l) {\n f.push(com.cognitect.transit.impl.writer.marshal(a, l, !1, !1));\n f.push(com.cognitect.transit.impl.writer.marshal(a, k, !1, d));\n });\n }\n h = {};\n h[g] = f;\n }\n } else {\n for (e = com.cognitect.transit.util.objectKeys(b), h = {}; c < e.length; c++) {\n h[com.cognitect.transit.impl.writer.marshal(a, e[c], !0, !1)] = com.cognitect.transit.impl.writer.marshal(a, b[e[c]], !1, d);\n }\n }\n return h;\n }\n if (null != b.forEach) {\n if (com.cognitect.transit.impl.writer.stringableKeys(a, b)) {\n e = a.unpack(b);\n h = [\"^ \"];\n if (e) {\n for (; c < e.length; c += 2) {\n h.push(com.cognitect.transit.impl.writer.marshal(a, e[c], !0, d)), h.push(com.cognitect.transit.impl.writer.marshal(a, e[c + 1], !1, d));\n }\n } else {\n b.forEach(function(k, l) {\n h.push(com.cognitect.transit.impl.writer.marshal(a, l, !0, d));\n h.push(com.cognitect.transit.impl.writer.marshal(a, k, !1, d));\n });\n }\n return h;\n }\n e = a.unpack(b);\n f = [];\n g = a.emitString(com.cognitect.transit.delimiters.ESC_TAG, \"cmap\", \"\", !0, d);\n if (e) {\n for (; c < e.length; c += 2) {\n f.push(com.cognitect.transit.impl.writer.marshal(a, e[c], !1, d)), f.push(com.cognitect.transit.impl.writer.marshal(a, e[c + 1], !1, d));\n }\n } else {\n b.forEach(function(k, l) {\n f.push(com.cognitect.transit.impl.writer.marshal(a, l, !1, d));\n f.push(com.cognitect.transit.impl.writer.marshal(a, k, !1, d));\n });\n }\n return [g, f];\n }\n h = [\"^ \"];\n for (e = com.cognitect.transit.util.objectKeys(b); c < e.length; c++) {\n h.push(com.cognitect.transit.impl.writer.marshal(a, e[c], !0, d)), h.push(com.cognitect.transit.impl.writer.marshal(a, b[e[c]], !1, d));\n }\n return h;\n }\n if (null != a.objectBuilder) {\n return a.objectBuilder(b, function(k) {\n return com.cognitect.transit.impl.writer.marshal(a, k, !0, d);\n }, function(k) {\n return com.cognitect.transit.impl.writer.marshal(a, k, !1, d);\n });\n }\n c = com.cognitect.transit.handlers.constructor(b).name;\n e = Error(\"Cannot write \" + c);\n e.data = {obj:b, type:c};\n throw e;\n};\ncom.cognitect.transit.impl.writer.emitTaggedMap = function(a, b, c, d, e) {\n return a.verbose ? (d = {}, d[a.emitString(com.cognitect.transit.delimiters.ESC_TAG, b, \"\", !0, e)] = com.cognitect.transit.impl.writer.marshal(a, c, !1, e), d) : [a.emitString(com.cognitect.transit.delimiters.ESC_TAG, b, \"\", !0, e), com.cognitect.transit.impl.writer.marshal(a, c, !1, e)];\n};\ncom.cognitect.transit.impl.writer.emitEncoded = function(a, b, c, d, e, f, g) {\n if (1 === c.length) {\n if (\"string\" === typeof d) {\n return a.emitString(com.cognitect.transit.delimiters.ESC, c, d, f, g);\n }\n if (f || a.preferStrings) {\n (d = a.verbose && b.getVerboseHandler()) ? (c = d.tag(e), d = d.stringRep(e, d)) : d = b.stringRep(e, b);\n if (null !== d) {\n return a.emitString(com.cognitect.transit.delimiters.ESC, c, d, f, g);\n }\n a = Error('Tag \"' + c + '\" cannot be encoded as string');\n a.data = {tag:c, rep:d, obj:e};\n throw a;\n }\n }\n return com.cognitect.transit.impl.writer.emitTaggedMap(a, c, d, f, g);\n};\ncom.cognitect.transit.impl.writer.marshal = function(a, b, c, d) {\n null !== a.transform && (b = a.transform(b));\n var e = a.handler(b) || (a.handlerForForeign ? a.handlerForForeign(b, a.handlers) : null), f = e ? e.tag(b) : null, g = e ? e.rep(b) : null;\n if (null != e && null != f) {\n switch(f) {\n case \"_\":\n return a.emitNil(c, d);\n case \"s\":\n return a.emitString(\"\", \"\", com.cognitect.transit.impl.writer.escape(g), c, d);\n case \"?\":\n return a.emitBoolean(g, c, d);\n case \"i\":\n return a.emitInteger(g, c, d);\n case \"d\":\n return a.emitDouble(g, c, d);\n case \"b\":\n return a.emitBinary(g, c, d);\n case \"'\":\n return a.emitQuoted(a, g, d);\n case \"array\":\n return com.cognitect.transit.impl.writer.emitArray(a, g, c, d);\n case \"map\":\n return com.cognitect.transit.impl.writer.emitMap(a, g, c, d);\n default:\n return com.cognitect.transit.impl.writer.emitEncoded(a, e, f, g, b, c, d);\n }\n } else {\n throw a = com.cognitect.transit.handlers.constructor(b).name, c = Error(\"Cannot write \" + a), c.data = {obj:b, type:a}, c;\n }\n};\ncom.cognitect.transit.impl.writer.maybeQuoted = function(a, b) {\n a = a.handler(b) || (a.handlerForForeign ? a.handlerForForeign(b, a.handlers) : null);\n if (null != a) {\n return 1 === a.tag(b).length ? com.cognitect.transit.types.quoted(b) : b;\n }\n a = com.cognitect.transit.handlers.constructor(b).name;\n var c = Error(\"Cannot write \" + a);\n c.data = {obj:b, type:a};\n throw c;\n};\ncom.cognitect.transit.impl.writer.marshalTop = function(a, b, c, d) {\n return JSON.stringify(com.cognitect.transit.impl.writer.marshal(a, com.cognitect.transit.impl.writer.maybeQuoted(a, b), c, d));\n};\ncom.cognitect.transit.impl.writer.Writer = function(a, b) {\n this._marshaller = a;\n this.options = b || {};\n this.cache = !1 === this.options.cache ? null : this.options.cache ? this.options.cache : new com.cognitect.transit.caching.WriteCache;\n};\ncom.cognitect.transit.impl.writer.Writer.prototype.marshaller = function() {\n return this._marshaller;\n};\ncom.cognitect.transit.impl.writer.Writer.prototype.marshaller = com.cognitect.transit.impl.writer.Writer.prototype.marshaller;\ncom.cognitect.transit.impl.writer.Writer.prototype.write = function(a, b) {\n b = b || {};\n var c = b.asMapKey || !1, d = this._marshaller.verbose ? !1 : this.cache;\n a = !1 === b.marshalTop ? com.cognitect.transit.impl.writer.marshal(this._marshaller, a, c, d) : com.cognitect.transit.impl.writer.marshalTop(this._marshaller, a, c, d);\n null != this.cache && this.cache.clear();\n return a;\n};\ncom.cognitect.transit.impl.writer.Writer.prototype.write = com.cognitect.transit.impl.writer.Writer.prototype.write;\ncom.cognitect.transit.impl.writer.Writer.prototype.register = function(a, b) {\n this._marshaller.registerHandler(a, b);\n};\ncom.cognitect.transit.impl.writer.Writer.prototype.register = com.cognitect.transit.impl.writer.Writer.prototype.register;\nvar TRANSIT_DEV = !0, TRANSIT_NODE_TARGET = !0, TRANSIT_BROWSER_TARGET = !1, TRANSIT_BROWSER_AMD_TARGET = !1;\ncom.cognitect.transit.reader = function(a, b) {\n if (\"json\" === a || \"json-verbose\" === a || null == a) {\n return a = new com.cognitect.transit.impl.reader.JSONUnmarshaller(b), new com.cognitect.transit.impl.reader.Reader(a, b);\n }\n throw Error(\"Cannot create reader of type \" + a);\n};\ncom.cognitect.transit.writer = function(a, b) {\n if (\"json\" === a || \"json-verbose\" === a || null == a) {\n return \"json-verbose\" === a && (null == b && (b = {}), b.verbose = !0), a = new com.cognitect.transit.impl.writer.JSONMarshaller(b), new com.cognitect.transit.impl.writer.Writer(a, b);\n }\n b = Error('Type must be \"json\"');\n b.data = {type:a};\n throw b;\n};\ncom.cognitect.transit.makeWriteHandler = function(a) {\n var b = function() {\n };\n b.prototype.tag = a.tag;\n b.prototype.rep = a.rep;\n b.prototype.stringRep = a.stringRep;\n b.prototype.getVerboseHandler = a.getVerboseHandler;\n return new b;\n};\ncom.cognitect.transit.makeBuilder = function(a) {\n var b = function() {\n };\n b.prototype.init = a.init;\n b.prototype.add = a.add;\n b.prototype.finalize = a.finalize;\n b.prototype.fromArray = a.fromArray;\n return new b;\n};\ncom.cognitect.transit.date = com.cognitect.transit.types.date;\ncom.cognitect.transit.integer = com.cognitect.transit.types.intValue;\ncom.cognitect.transit.isInteger = com.cognitect.transit.types.isInteger;\ncom.cognitect.transit.uuid = com.cognitect.transit.types.uuid;\ncom.cognitect.transit.isUUID = com.cognitect.transit.types.isUUID;\ncom.cognitect.transit.bigInt = com.cognitect.transit.types.bigInteger;\ncom.cognitect.transit.isBigInt = com.cognitect.transit.types.isBigInteger;\ncom.cognitect.transit.bigDec = com.cognitect.transit.types.bigDecimalValue;\ncom.cognitect.transit.isBigDec = com.cognitect.transit.types.isBigDecimal;\ncom.cognitect.transit.keyword = com.cognitect.transit.types.keyword;\ncom.cognitect.transit.isKeyword = com.cognitect.transit.types.isKeyword;\ncom.cognitect.transit.symbol = com.cognitect.transit.types.symbol;\ncom.cognitect.transit.isSymbol = com.cognitect.transit.types.isSymbol;\ncom.cognitect.transit.binary = com.cognitect.transit.types.binary;\ncom.cognitect.transit.isBinary = com.cognitect.transit.types.isBinary;\ncom.cognitect.transit.uri = com.cognitect.transit.types.uri;\ncom.cognitect.transit.isURI = com.cognitect.transit.types.isURI;\ncom.cognitect.transit.map = com.cognitect.transit.types.map;\ncom.cognitect.transit.isMap = com.cognitect.transit.types.isMap;\ncom.cognitect.transit.set = com.cognitect.transit.types.set;\ncom.cognitect.transit.isSet = com.cognitect.transit.types.isSet;\ncom.cognitect.transit.list = com.cognitect.transit.types.list;\ncom.cognitect.transit.isList = com.cognitect.transit.types.isList;\ncom.cognitect.transit.quoted = com.cognitect.transit.types.quoted;\ncom.cognitect.transit.isQuoted = com.cognitect.transit.types.isQuoted;\ncom.cognitect.transit.tagged = com.cognitect.transit.types.taggedValue;\ncom.cognitect.transit.isTaggedValue = com.cognitect.transit.types.isTaggedValue;\ncom.cognitect.transit.link = com.cognitect.transit.types.link;\ncom.cognitect.transit.isLink = com.cognitect.transit.types.isLink;\ncom.cognitect.transit.hash = com.cognitect.transit.eq.hashCode;\ncom.cognitect.transit.hashMapLike = com.cognitect.transit.eq.hashMapLike;\ncom.cognitect.transit.hashArrayLike = com.cognitect.transit.eq.hashArrayLike;\ncom.cognitect.transit.equals = com.cognitect.transit.eq.equals;\ncom.cognitect.transit.extendToEQ = com.cognitect.transit.eq.extendToEQ;\ncom.cognitect.transit.mapToObject = function(a) {\n var b = {};\n a.forEach(function(c, d) {\n if (\"string\" !== typeof d) {\n throw Error(\"Cannot convert map with non-string keys\");\n }\n b[d] = c;\n });\n return b;\n};\ncom.cognitect.transit.objectToMap = function(a) {\n var b = com.cognitect.transit.map(), c;\n for (c in a) {\n a.hasOwnProperty(c) && b.set(c, a[c]);\n }\n return b;\n};\ncom.cognitect.transit.decoder = com.cognitect.transit.impl.decoder.decoder;\ncom.cognitect.transit.readCache = com.cognitect.transit.caching.readCache;\ncom.cognitect.transit.writeCache = com.cognitect.transit.caching.writeCache;\ncom.cognitect.transit.UUIDfromString = com.cognitect.transit.types.UUIDfromString;\ncom.cognitect.transit.randomUUID = com.cognitect.transit.util.randomUUID;\ncom.cognitect.transit.stringableKeys = com.cognitect.transit.impl.writer.stringableKeys;\nTRANSIT_BROWSER_TARGET && (goog.exportSymbol(\"transit.reader\", com.cognitect.transit.reader), goog.exportSymbol(\"transit.writer\", com.cognitect.transit.writer), goog.exportSymbol(\"transit.makeBuilder\", com.cognitect.transit.makeBuilder), goog.exportSymbol(\"transit.makeWriteHandler\", com.cognitect.transit.makeWriteHandler), goog.exportSymbol(\"transit.date\", com.cognitect.transit.types.date), goog.exportSymbol(\"transit.integer\", com.cognitect.transit.types.intValue), goog.exportSymbol(\"transit.isInteger\", \ncom.cognitect.transit.types.isInteger), goog.exportSymbol(\"transit.uuid\", com.cognitect.transit.types.uuid), goog.exportSymbol(\"transit.isUUID\", com.cognitect.transit.types.isUUID), goog.exportSymbol(\"transit.bigInt\", com.cognitect.transit.types.bigInteger), goog.exportSymbol(\"transit.isBigInt\", com.cognitect.transit.types.isBigInteger), goog.exportSymbol(\"transit.bigDec\", com.cognitect.transit.types.bigDecimalValue), goog.exportSymbol(\"transit.isBigDec\", com.cognitect.transit.types.isBigDecimal), \ngoog.exportSymbol(\"transit.keyword\", com.cognitect.transit.types.keyword), goog.exportSymbol(\"transit.isKeyword\", com.cognitect.transit.types.isKeyword), goog.exportSymbol(\"transit.symbol\", com.cognitect.transit.types.symbol), goog.exportSymbol(\"transit.isSymbol\", com.cognitect.transit.types.isSymbol), goog.exportSymbol(\"transit.binary\", com.cognitect.transit.types.binary), goog.exportSymbol(\"transit.isBinary\", com.cognitect.transit.types.isBinary), goog.exportSymbol(\"transit.uri\", com.cognitect.transit.types.uri), \ngoog.exportSymbol(\"transit.isURI\", com.cognitect.transit.types.isURI), goog.exportSymbol(\"transit.map\", com.cognitect.transit.types.map), goog.exportSymbol(\"transit.isMap\", com.cognitect.transit.types.isMap), goog.exportSymbol(\"transit.set\", com.cognitect.transit.types.set), goog.exportSymbol(\"transit.isSet\", com.cognitect.transit.types.isSet), goog.exportSymbol(\"transit.list\", com.cognitect.transit.types.list), goog.exportSymbol(\"transit.isList\", com.cognitect.transit.types.isList), goog.exportSymbol(\"transit.quoted\", \ncom.cognitect.transit.types.quoted), goog.exportSymbol(\"transit.isQuoted\", com.cognitect.transit.types.isQuoted), goog.exportSymbol(\"transit.tagged\", com.cognitect.transit.types.taggedValue), goog.exportSymbol(\"transit.isTaggedValue\", com.cognitect.transit.types.isTaggedValue), goog.exportSymbol(\"transit.link\", com.cognitect.transit.types.link), goog.exportSymbol(\"transit.isLink\", com.cognitect.transit.types.isLink), goog.exportSymbol(\"transit.hash\", com.cognitect.transit.eq.hashCode), goog.exportSymbol(\"transit.hashMapLike\", \ncom.cognitect.transit.eq.hashMapLike), goog.exportSymbol(\"transit.hashArrayLike\", com.cognitect.transit.eq.hashArrayLike), goog.exportSymbol(\"transit.equals\", com.cognitect.transit.eq.equals), goog.exportSymbol(\"transit.extendToEQ\", com.cognitect.transit.eq.extendToEQ), goog.exportSymbol(\"transit.mapToObject\", com.cognitect.transit.mapToObject), goog.exportSymbol(\"transit.objectToMap\", com.cognitect.transit.objectToMap), goog.exportSymbol(\"transit.decoder\", com.cognitect.transit.impl.decoder.decoder), \ngoog.exportSymbol(\"transit.UUIDfromString\", com.cognitect.transit.types.UUIDfromString), goog.exportSymbol(\"transit.randomUUID\", com.cognitect.transit.util.randomUUID), goog.exportSymbol(\"transit.stringableKeys\", com.cognitect.transit.impl.writer.stringableKeys), goog.exportSymbol(\"transit.readCache\", com.cognitect.transit.caching.readCache), goog.exportSymbol(\"transit.writeCache\", com.cognitect.transit.caching.writeCache));\nTRANSIT_NODE_TARGET && (module.exports = {reader:com.cognitect.transit.reader, writer:com.cognitect.transit.writer, makeBuilder:com.cognitect.transit.makeBuilder, makeWriteHandler:com.cognitect.transit.makeWriteHandler, date:com.cognitect.transit.types.date, integer:com.cognitect.transit.types.intValue, isInteger:com.cognitect.transit.types.isInteger, uuid:com.cognitect.transit.types.uuid, isUUID:com.cognitect.transit.types.isUUID, bigInt:com.cognitect.transit.types.bigInteger, isBigInt:com.cognitect.transit.types.isBigInteger, \nbigDec:com.cognitect.transit.types.bigDecimalValue, isBigDec:com.cognitect.transit.types.isBigDecimal, keyword:com.cognitect.transit.types.keyword, isKeyword:com.cognitect.transit.types.isKeyword, symbol:com.cognitect.transit.types.symbol, isSymbol:com.cognitect.transit.types.isSymbol, binary:com.cognitect.transit.types.binary, isBinary:com.cognitect.transit.types.isBinary, uri:com.cognitect.transit.types.uri, isURI:com.cognitect.transit.types.isURI, map:com.cognitect.transit.types.map, isMap:com.cognitect.transit.types.isMap, \nset:com.cognitect.transit.types.set, isSet:com.cognitect.transit.types.isSet, list:com.cognitect.transit.types.list, isList:com.cognitect.transit.types.isList, quoted:com.cognitect.transit.types.quoted, isQuoted:com.cognitect.transit.types.isQuoted, tagged:com.cognitect.transit.types.taggedValue, isTaggedValue:com.cognitect.transit.types.isTaggedValue, link:com.cognitect.transit.types.link, isLink:com.cognitect.transit.types.isLink, hash:com.cognitect.transit.eq.hashCode, hashArrayLike:com.cognitect.transit.eq.hashArrayLike, \nhashMapLike:com.cognitect.transit.eq.hashMapLike, equals:com.cognitect.transit.eq.equals, extendToEQ:com.cognitect.transit.eq.extendToEQ, mapToObject:com.cognitect.transit.mapToObject, objectToMap:com.cognitect.transit.objectToMap, decoder:com.cognitect.transit.impl.decoder.decoder, UUIDfromString:com.cognitect.transit.types.UUIDfromString, randomUUID:com.cognitect.transit.util.randomUUID, stringableKeys:com.cognitect.transit.impl.writer.stringableKeys, readCache:com.cognitect.transit.caching.readCache, \nwriteCache:com.cognitect.transit.caching.writeCache});\n\n","/**\n * @fileoverview Provides the AssetsApi class for interacting with the Sharetribe Asset Delivery API.\n * This class includes methods to retrieve assets by alias or version.\n *\n * For more information, refer to the Asset Delivery API reference:\n * https://www.sharetribe.com/api-reference/asset-delivery-api.html\n */\n\nimport SharetribeSdk from \"../../sdk\";\nimport { AxiosInstance, AxiosResponse } from \"axios\";\nimport {\n AssetByAliasParameter,\n AssetByVersionParameter,\n AssetResponse,\n AssetsByAliasParameter,\n AssetsByVersionParameter,\n} from \"../../types/assets\";\n\n/**\n * Extracts the common path and asset names from a list of paths.\n *\n * @param {string[]} paths - The list of asset paths.\n * @returns {{commonPath: string, assets: string[]}} - An object containing the common path and an array of asset names.\n * @throws {Error} If the paths do not share a common prefix.\n */\nconst extractCommonPathAndAssets = (paths: string[]) => {\n let commonPath: string = \"\";\n const assets: string[] = [];\n paths.forEach((path) => {\n const prefix = path.split(\"/\")[0];\n const asset = path.split(\"/\")[1];\n if (!commonPath) {\n commonPath = prefix;\n } else if (commonPath !== prefix) {\n throw new Error(\"All paths should have the same prefix\");\n }\n assets.push(asset);\n });\n return { commonPath, assets };\n};\n\n/**\n * Class representing the Assets API for interacting with the Sharetribe Asset Delivery API.\n */\nclass AssetsApi {\n axios: AxiosInstance;\n endpoint: string;\n headers: Record<string, string>;\n\n /**\n * Creates an instance of AssetsApi.\n *\n * @param {SharetribeSdk} sdk - The Sharetribe SDK instance for configuration and request handling.\n */\n constructor(sdk: SharetribeSdk) {\n const config = sdk.apisConfigs.assets(sdk.sdkConfig);\n this.endpoint = config.baseUrl + `/pub/${sdk.sdkConfig.clientId}`;\n this.headers = config.headers;\n this.axios = sdk.axios;\n }\n\n /**\n * Retrieves a single asset by alias.\n *\n * @template P\n * @param {P & AssetByAliasParameter} params - Parameters including alias and path for the asset.\n * @returns {Promise<AssetResponse<'assetByAlias', P>>} - A promise resolving to the asset response.\n * @throws {Error} If the path starts with a leading slash.\n */\n async assetByAlias<P extends AssetByAliasParameter>(\n params: P\n ): Promise<AxiosResponse<AssetResponse<\"assetByAlias\", P>>> {\n if (params.path.startsWith(\"/\")) {\n throw new Error(\"Path should not start with /\");\n }\n return await this.axios.get<AssetResponse<\"assetByAlias\", P>>(\n this.endpoint + `/a/${params.alias}/${params.path}`,\n {\n headers: this.headers,\n }\n );\n }\n\n /**\n * Retrieves multiple assets by alias.\n *\n * @template P\n * @param {P & AssetsByAliasParameter} params - Parameters including alias and paths for the assets.\n * @returns {Promise<AssetResponse<'assetsByAlias', P>>} - A promise resolving to the assets response.\n * @throws {Error} If any path starts with a leading slash or if paths are empty.\n */\n async assetsByAlias<P extends AssetsByAliasParameter>(\n params: P\n ): Promise<AxiosResponse<AssetResponse<\"assetsByAlias\", P>>> {\n if (params.paths.some((path) => path.startsWith(\"/\"))) {\n throw new Error(\"Path should not start with /\");\n }\n const { commonPath, assets } = extractCommonPathAndAssets(params.paths);\n if (!commonPath) {\n throw new Error(\"Paths should not be empty\");\n }\n return await this.axios.get<AssetResponse<\"assetsByAlias\", P>>(\n this.endpoint + `/a/${params.alias}/${commonPath}/`,\n {\n headers: this.headers,\n params: {\n assets: assets,\n },\n }\n );\n }\n\n /**\n * Retrieves a single asset by version.\n *\n * @template P\n * @param {P & AssetByVersionParameter} params - Parameters including version and path for the asset.\n * @returns {Promise<AssetResponse<'assetByVersion', P>>} - A promise resolving to the asset response.\n * @throws {Error} If the path starts with a leading slash.\n */\n async assetByVersion<P extends AssetByVersionParameter>(\n params: P\n ): Promise<AxiosResponse<AssetResponse<\"assetByVersion\", P>>> {\n if (params.path.startsWith(\"/\")) {\n throw new Error(\"Path should not start with /\");\n }\n return await this.axios.get<AssetResponse<\"assetByVersion\", P>>(\n this.endpoint + `/v/${params.version}/${params.path}`,\n {\n headers: this.headers,\n }\n );\n }\n\n /**\n * Retrieves multiple assets by version.\n *\n * @template P\n * @param {P & AssetsByVersionParameter} params - Parameters including version and paths for the assets.\n * @returns {Promise<AssetResponse<'assetsByVersion', P>>} - A promise resolving to the assets response.\n * @throws {Error} If any path starts with a leading slash.\n */\n async assetsByVersion<P extends AssetsByVersionParameter>(\n params: P\n ): Promise<AxiosResponse<AssetResponse<\"assetsByVersion\", P>>> {\n if (params.paths.some((path) => path.startsWith(\"/\"))) {\n throw new Error(\"Path should not start with /\");\n }\n const { commonPath, assets } = extractCommonPathAndAssets(params.paths);\n return await this.axios.get<AssetResponse<\"assetsByVersion\", P>>(\n this.endpoint + `/v/${params.version}/${commonPath}/`,\n {\n headers: this.headers,\n params: {\n paths: assets,\n },\n }\n );\n }\n}\n\nexport default AssetsApi;\n","/**\n * @fileoverview Provides the AuthenticationApi class for interacting with the Sharetribe Authentication API.\n * This class includes methods to obtain and manage access tokens for authenticating requests to the Marketplace API and Integration API.\n *\n * For more information, refer to the Authentication API reference:\n * https://www.sharetribe.com/api-reference/authentication.html\n */\n\nimport {\n AuthWithIdpParameter,\n Endpoint,\n RevokeResponse,\n ScopeType,\n TokenResponse,\n} from \"../../types/authentication\";\nimport { AxiosInstance, AxiosResponse } from \"axios\";\nimport SharetribeSdk from \"../../sdk\";\nimport IntegrationSdk from \"../../integrationSdk\";\n\n/**\n * Converts an object to URL-encoded form data string.\n * Properly handles nested objects, arrays, and special types.\n *\n * @param {Record<string, any> | void} obj - The object to convert\n * @returns {string} URL-encoded form data string\n */\nexport function urlEncodeFormData(\n obj: Record<string, any> | null | undefined | void\n): string {\n if (!obj) {\n return \"\";\n }\n\n return Object.keys(obj)\n .map((key) => {\n const value = obj[key];\n if (value === undefined || value === null) {\n return \"\";\n }\n\n const encodedKey = encodeURIComponent(key);\n let encodedValue: string;\n\n // Handle different value types\n if (typeof value === \"object\") {\n if (Array.isArray(value)) {\n // Handle arrays by joining with commas\n encodedValue = encodeURIComponent(value.join(\",\"));\n } else {\n // Handle objects by JSON stringifying\n encodedValue = encodeURIComponent(JSON.stringify(value));\n }\n } else {\n // Handle primitive values (string, number, boolean)\n encodedValue = encodeURIComponent(String(value));\n }\n\n return `${encodedKey}=${encodedValue}`;\n })\n .filter(Boolean) // Remove empty strings\n .join(\"&\");\n}\n\n/**\n * Class representing the Authentication API for obtaining and managing access tokens.\n *\n * The Authentication API follows the OAuth2 framework and supports various grant types to issue tokens for authenticating requests.\n *\n * @see https://www.sharetribe.com/api-reference/authentication.html\n */\nclass AuthenticationApi {\n private readonly endpoint: string;\n private readonly headers: Record<string, string>;\n private axios: AxiosInstance;\n\n /**\n * Creates an instance of AuthenticationApi.\n *\n * @param {SharetribeSdk | IntegrationSdk} sdk - The Sharetribe SDK or Integration SDK instance for configuration and request handling.\n */\n constructor(sdk: SharetribeSdk | IntegrationSdk) {\n const config = sdk.apisConfigs.auth(sdk.sdkConfig);\n this.endpoint = config.baseUrl;\n this.headers = config.headers;\n this.axios = sdk.axios;\n }\n\n /**\n * Obtains an access token using the specified grant type and parameters.\n *\n * @template S\n * @param {Endpoint<S>} params - Parameters including grant type and necessary credentials.\n * @returns {Promise<TokenResponse<S>>} - A promise resolving to the token response.\n */\n async token<S extends ScopeType>(\n params: Endpoint<S>\n ): Promise<AxiosResponse<TokenResponse<S>>> {\n return this.axios.post<TokenResponse<S>>(\n `${this.endpoint}/token`,\n urlEncodeFormData(params),\n { headers: this.headers }\n );\n }\n\n /**\n * Authenticates a user using an external identity provider (IdP) and obtains an access token.\n *\n * @param {AuthWithIdpParameter} params - Parameters including IdP token and provider details.\n * @returns {Promise<TokenResponse<'user'>>} - A promise resolving to the token response.\n */\n async authWithIdp<P extends AuthWithIdpParameter>(\n params: P\n ): Promise<AxiosResponse<TokenResponse<\"user\">>> {\n return this.axios.post<TokenResponse<\"user\">>(\n `${this.endpoint}/auth_with_idp`,\n urlEncodeFormData(params),\n { headers: this.headers }\n );\n }\n\n /**\n * Revokes a refresh token, effectively invalidating any associated access tokens.\n *\n * @param {string} token - The refresh token to be revoked.\n * @returns {Promise<RevokeResponse>} - A promise resolving to the revoke response.\n */\n async revoke(token: string): Promise<AxiosResponse<RevokeResponse>> {\n return this.axios.post<RevokeResponse>(\n `${this.endpoint}/revoke`,\n urlEncodeFormData({ token }),\n { headers: this.headers }\n );\n }\n\n /**\n * Retrieves details about the current access token.\n *\n * @returns {Promise<TokenResponse<'details'>>} - A promise resolving to the token details response.\n */\n async details(): Promise<AxiosResponse<TokenResponse<\"details\">>> {\n return this.axios.get<TokenResponse<\"details\">>(\n `${this.endpoint}/details`,\n { headers: this.headers }\n );\n }\n}\n\nexport default AuthenticationApi;\n","/**\n * @fileoverview Provides the AvailabilityExceptions class for managing availability exceptions in the Sharetribe Integration API.\n * This class allows querying, creating, and deleting availability exceptions for resources in a Sharetribe marketplace.\n *\n * For more details, refer to the Integration API documentation:\n * https://www.sharetribe.com/api-reference/integration.html#availability-exceptions\n */\n\nimport { AxiosInstance, AxiosResponse } from \"axios\";\nimport IntegrationApi from \"./index\";\nimport {\n AvailabilityExceptionsCreateParameter,\n AvailabilityExceptionsDeleteParameter,\n AvailabilityExceptionsQueryParameter,\n AvailabilityExceptionsResponse,\n} from \"../../types/marketplace/availabilityExceptions\";\nimport { ExtraParameter } from \"../../types/sharetribe\";\n\n/**\n * Class representing the Availability Exceptions API.\n *\n * Availability exceptions are used to override default availability rules for specific time ranges.\n * This class provides methods to query, create, and delete such exceptions.\n */\nclass AvailabilityExceptions {\n private readonly endpoint: string;\n private readonly axios: AxiosInstance;\n private readonly headers: Record<string, string>;\n public readonly authRequired = true;\n\n /**\n * Creates an instance of the AvailabilityExceptions class.\n *\n * @param {MarketplaceApi} api - The Marketplace API instance providing configuration and request handling.\n */\n constructor(api: IntegrationApi) {\n this.endpoint = api.endpoint + \"/availability_exceptions\";\n this.axios = api.axios;\n this.headers = api.headers;\n }\n\n /**\n * Queries availability exceptions for a resource.\n *\n * @template P\n * @param {P & AvailabilityExceptionsQueryParameter} params - Query parameters to filter availability exceptions.\n * @returns {Promise<AvailabilityExceptionsResponse<'query', P>>} - A promise resolving to the query response.\n *\n * @example\n * const response = await integrationSdk.availabilityExceptions.query({\n * listingId: 'listing-id',\n * start: '2024-12-01T00:00:00Z',\n * end: '2024-12-31T23:59:59Z'\n * });\n *\n * // Access the list of exceptions\n * const exceptions = response.data;\n */\n async query<P extends AvailabilityExceptionsQueryParameter>(\n params: P\n ): Promise<AxiosResponse<AvailabilityExceptionsResponse<\"query\", P>>> {\n return this.axios.get<AvailabilityExceptionsResponse<\"query\", P>>(\n `${this.endpoint}/query`,\n {\n headers: this.headers,\n params,\n }\n );\n }\n\n /**\n * Creates a new availability exception for a resource.\n *\n * @template P\n * @template EP\n * @param {P & AvailabilityExceptionsCreateParameter} params - Parameters to define the availability exception.\n * @param {EP | void} [extraParams] - Optional additional parameters.\n * @returns {Promise<AvailabilityExceptionsResponse<'create', P, EP>>} - A promise resolving to the create response.\n *\n * @example\n * const response = await integrationSdk.availabilityExceptions.create({\n * listingId: 'listing-id',\n * start: '2024-12-10T10:00:00Z',\n * end: '2024-12-10T12:00:00Z',\n * seats: 0\n * });\n *\n * // Access the created exception\n * const createdException = response.data;\n */\n async create<\n P extends AvailabilityExceptionsCreateParameter,\n EP extends ExtraParameter\n >(\n params: P,\n extraParams: EP | void = {} as EP\n ): Promise<AxiosResponse<AvailabilityExceptionsResponse<\"create\", P, EP>>> {\n return this.axios.post<AvailabilityExceptionsResponse<\"create\", P, EP>>(\n `${this.endpoint}/create`,\n { ...params, ...extraParams },\n { headers: this.headers }\n );\n }\n\n /**\n * Deletes an availability exception for a resource.\n *\n * @template P\n * @param {P & AvailabilityExceptionsDeleteParameter} params - Parameters to specify the exception to delete.\n * @returns {Promise<AvailabilityExceptionsResponse<'delete', P>>} - A promise resolving to the delete response.\n *\n * @example\n * const response = await integrationSdk.availabilityExceptions.delete({\n * id: 'exception-id'\n * });\n *\n * // Check the deletion result\n * const result = response.data;\n */\n async delete<P extends AvailabilityExceptionsDeleteParameter>(\n params: P\n ): Promise<AxiosResponse<AvailabilityExceptionsResponse<\"delete\", P>>> {\n return this.axios.post<AvailabilityExceptionsResponse<\"delete\", P>>(\n `${this.endpoint}/delete`,\n params,\n { headers: this.headers }\n );\n }\n}\n\nexport default AvailabilityExceptions;\n","/**\n * @fileoverview Provides the Events class for querying event data in the Sharetribe Integration API.\n * This class allows querying events related to bookings or other entities in a Sharetribe marketplace.\n *\n * For more details, refer to the Integration API documentation:\n * https://www.sharetribe.com/api-reference/integration.html#events\n */\n\nimport { AxiosInstance, AxiosResponse } from \"axios\";\nimport IntegrationApi from \"./index\";\nimport {\n EventQueryParameter,\n EventsResponse,\n} from \"../../types/integration/events\";\n\n/**\n * Class representing the Events API.\n *\n * The Events API provides access to event data, such as booking events, allowing integration with external systems.\n */\nclass Events {\n private readonly endpoint: string;\n private readonly axios: AxiosInstance;\n private readonly headers: Record<string, string>;\n\n /**\n * Creates an instance of the Events class.\n *\n * @param {MarketplaceApi} api - The Marketplace API instance providing configuration and request handling.\n */\n constructor(api: IntegrationApi) {\n this.endpoint = api.endpoint + \"/events\";\n this.axios = api.axios;\n this.headers = api.headers;\n }\n\n /**\n * Queries event data based on the specified parameters.\n *\n * @template P\n * @param {P & EventQueryParameter} params - Query parameters to filter events.\n * @returns {Promise<EventsResponse<'query'>>} - A promise resolving to the event query response.\n *\n * @example\n * const response = await integrationSdk.events.query({\n * startAfterSequenceId: 'event-sequence-id',\n * createdAtStart: '2021-01-01T00:00:00Z',\n * resourceId: 'resource-id',\n * relatedResourceId: 'related-resource-id',\n * eventTypes: ['eventType1', 'eventType2'],\n * });\n *\n * // Access the list of events\n * const eventsList = response.data;\n */\n async query<P extends EventQueryParameter>(\n params: P\n ): Promise<AxiosResponse<EventsResponse<\"query\">>> {\n return this.axios.get<EventsResponse<\"query\">>(`${this.endpoint}/query`, {\n headers: this.headers,\n params,\n });\n }\n}\n\nexport default Events;\n","/**\n * @fileoverview Provides the Images class for handling image uploads in the Sharetribe Integration API.\n * This class allows uploading images to be used as resources in a Sharetribe marketplace.\n *\n * For more details, refer to the Integration API documentation:\n * https://www.sharetribe.com/api-reference/integration.html#images\n */\n\nimport { AxiosInstance, AxiosResponse } from \"axios\";\nimport IntegrationApi from \"./index\";\nimport {\n ImagesResponse,\n ImagesUploadParameter,\n} from \"../../types/marketplace/images\";\nimport { ExtraParameter } from \"../../types/sharetribe\";\n\n/**\n * Class representing the Images API.\n *\n * The Images API allows uploading images to the marketplace for use in listings or other resources.\n */\nclass Images {\n private readonly endpoint: string;\n private readonly axios: AxiosInstance;\n private readonly headers: Record<string, string>;\n public readonly authRequired = true;\n\n /**\n * Creates an instance of the Images class.\n *\n * @param {MarketplaceApi} api - The Marketplace API instance providing configuration and request handling.\n */\n constructor(api: IntegrationApi) {\n this.endpoint = api.endpoint + \"/images\";\n this.axios = api.axios;\n this.headers = api.headers;\n }\n\n /**\n * Uploads an image to the marketplace.\n *\n * @template P\n * @template EP\n * @param {P & ImagesUploadParameter} params - The image upload parameters, including image data and related metadata.\n * @param {EP & ExtraParameter} extraParams - Optional additional parameters for the upload request.\n * @returns {Promise<ImagesResponse<'upload', EP>>} - A promise resolving to the upload response.\n *\n * @example\n * const response = await integrationSdk.images.upload({\n * image: fileData,\n * });\n *\n * // Access the uploaded image details\n * const imageDetails = response.data;\n */\n async upload<P extends ImagesUploadParameter, EP extends ExtraParameter>(\n params: P,\n extraParams: EP | void = {} as EP\n ): Promise<AxiosResponse<ImagesResponse<\"upload\", EP>>> {\n const formDataObj = Object.entries({ ...params, ...extraParams }).reduce(\n (fd, entry) => {\n const [key, val] = entry;\n fd.append(key, val);\n return fd;\n },\n new FormData()\n );\n\n return this.axios.post<ImagesResponse<\"upload\", EP>>(\n `${this.endpoint}/upload`,\n formDataObj,\n { headers: this.headers }\n );\n }\n}\n\nexport default Images;\n","/**\n * @fileoverview Provides the Listings class for managing listings in the Sharetribe Integration API.\n * This class allows creating, updating, querying, and performing other operations on marketplace listings.\n *\n * For more details, refer to the Integration API documentation:\n * https://www.sharetribe.com/api-reference/integration.html#listings\n */\n\nimport { AxiosInstance, AxiosResponse } from \"axios\";\nimport IntegrationApi from \"./index\";\nimport {\n ListingsApproveParameter,\n ListingsCloseParameter,\n ListingsCreateParameter,\n ListingsOpenParameter,\n ListingsQueryParameter,\n ListingsResponse,\n ListingsShowParameter,\n ListingsUpdateParameter,\n} from \"../../types/marketplace/listings\";\nimport { ExtraParameter } from \"../../types/sharetribe\";\n\n/**\n * Class representing the Listings API.\n *\n * The Listings API provides methods to manage marketplace listings, such as creating, updating, querying, and approving listings.\n */\nclass Listings {\n private readonly endpoint: string;\n private readonly axios: AxiosInstance;\n private readonly headers: Record<string, string>;\n\n /**\n * Creates an instance of the Listings class.\n *\n * @param {IntegrationApi} api - The Marketplace API instance providing configuration and request handling.\n */\n constructor(api: IntegrationApi) {\n this.endpoint = api.endpoint + \"/listings\";\n this.axios = api.axios;\n this.headers = api.headers;\n }\n\n /**\n * Retrieves details of a specific listing.\n *\n * @template P\n * @param {P & ListingsShowParameter} params - The parameters to identify the listing.\n * @returns {Promise<ListingsResponse<'show', P>>} - A promise resolving to the listing details.\n *\n * @example\n * const response = await integrationSdk.listings.show({\n * id: 'listing-id'\n * });\n *\n * const listing = response.data;\n */\n async show<P extends ListingsShowParameter>(\n params: P\n ): Promise<AxiosResponse<ListingsResponse<\"show\", P, undefined, true>>> {\n return this.axios.get<ListingsResponse<\"show\", P, undefined, true>>(\n `${this.endpoint}/show`,\n {\n headers: this.headers,\n params,\n }\n );\n }\n\n /**\n * Queries listings based on specified filters.\n *\n * @template P\n * @param {P & ListingsQueryParameter} params - Query parameters to filter listings.\n * @returns {Promise<ListingsResponse<'query', P>>} - A promise resolving to the query results.\n *\n * @example\n * const response = await integrationSdk.listings.query({\n * ids: ['listing-id-1', 'listing-id-2'],\n * per_page: 10,\n * page: 1\n * });\n *\n * const listings = response.data;\n */\n async query<P extends ListingsQueryParameter>(\n params: P\n ): Promise<AxiosResponse<ListingsResponse<\"query\", P, undefined, true>>> {\n return this.axios.get<ListingsResponse<\"query\", P, undefined, true>>(\n `${this.endpoint}/query`,\n {\n headers: this.headers,\n params,\n }\n );\n }\n\n /**\n * Creates a new listing.\n *\n * @template P\n * @template EP\n * @param {P & ListingsCreateParameter} params - Parameters for the new listing.\n * @param {EP | void} extraParams - Optional extra parameters for the request.\n * @returns {Promise<ListingsResponse<'create', P, EP, true>>} - A promise resolving to the created listing.\n *\n * @example\n * const response = await integrationSdk.listings.create({\n * title: 'New Listing',\n * description: 'Description of the listing',\n * authorId: 'user-id',\n * state: 'published'\n * });\n *\n * const newListing = response.data;\n */\n async create<P extends ListingsCreateParameter, EP extends ExtraParameter>(\n params: P,\n extraParams?: EP\n ): Promise<AxiosResponse<ListingsResponse<\"create\", P, EP, true>>> {\n return this.axios.post<ListingsResponse<\"create\", P, EP, true>>(\n `${this.endpoint}/create`,\n { ...params, ...extraParams },\n { headers: this.headers }\n );\n }\n\n /**\n * Updates an existing listing.\n *\n * @template P\n * @template EP\n * @param {P & ListingsUpdateParameter} params - Parameters for the listing update.\n * @param {EP | void} extraParams - Optional extra parameters for the request.\n * @returns {Promise<ListingsResponse<'update', P, EP>>} - A promise resolving to the updated listing.\n *\n * @example\n * const response = await integrationSdk.listings.update({\n * id: 'listing-id',\n * title: 'Updated Title'\n * });\n *\n * const updatedListing = response.data;\n */\n async update<P extends ListingsUpdateParameter, EP extends ExtraParameter>(\n params: P,\n extraParams?: EP\n ): Promise<AxiosResponse<ListingsResponse<\"update\", P, EP, true>>> {\n return this.axios.post<ListingsResponse<\"update\", P, EP, true>>(\n `${this.endpoint}/update`,\n { ...params, ...extraParams },\n { headers: this.headers }\n );\n }\n\n /**\n * Closes a listing.\n *\n * @template P\n * @template EP\n * @param {P & ListingsCloseParameter} params - Parameters to identify the listing to close.\n * @param {EP | void} extraParams - Optional extra parameters for the request.\n * @returns {Promise<ListingsResponse<'close', P, EP>>} - A promise resolving to the closed listing.\n *\n * @example\n * const response = await integrationSdk.listings.close({\n * id: 'listing-id'\n * });\n *\n * const closedListing = response.data;\n */\n async close<P extends ListingsCloseParameter, EP extends ExtraParameter>(\n params: P,\n extraParams?: EP\n ): Promise<AxiosResponse<ListingsResponse<\"close\", P, EP, true>>> {\n return this.axios.post<ListingsResponse<\"close\", P, EP, true>>(\n `${this.endpoint}/close`,\n { ...params, ...extraParams },\n { headers: this.headers }\n );\n }\n\n /**\n * Opens a listing.\n *\n * @template P\n * @template EP\n * @param {P & ListingsOpenParameter} params - Parameters to identify the listing to open.\n * @param {EP | void} extraParams - Optional extra parameters for the request.\n * @returns {Promise<ListingsResponse<'open', P, EP>>} - A promise resolving to the opened listing.\n *\n * @example\n * const response = await integrationSdk.listings.open({\n * id: 'listing-id'\n * });\n *\n * const openedListing = response.data;\n */\n async open<P extends ListingsOpenParameter, EP extends ExtraParameter>(\n params: P,\n extraParams?: EP\n ): Promise<AxiosResponse<ListingsResponse<\"open\", P, EP, true>>> {\n return this.axios.post<ListingsResponse<\"open\", P, EP, true>>(\n `${this.endpoint}/open`,\n { ...params, ...extraParams },\n { headers: this.headers }\n );\n }\n\n /**\n * Approves a listing.\n *\n * @template P\n * @template EP\n * @param {P & ListingsApproveParameter} params - Parameters to identify the listing to approve.\n * @param {EP | void} extraParams - Optional extra parameters for the request.\n * @returns {Promise<ListingsResponse<'approve', P, EP>>} - A promise resolving to the approved listing.\n *\n * @example\n * const response = await integrationSdk.listings.approve({\n * id: 'listing-id'\n * });\n *\n * const approvedListing = response.data;\n */\n async approve<P extends ListingsApproveParameter, EP extends ExtraParameter>(\n params: P,\n extraParams?: EP\n ): Promise<AxiosResponse<ListingsResponse<\"approve\", P, EP, true>>> {\n return this.axios.post<ListingsResponse<\"approve\", P, EP, true>>(\n `${this.endpoint}/approve`,\n { ...params, ...extraParams },\n { headers: this.headers }\n );\n }\n}\n\nexport default Listings;\n","/**\n * @fileoverview Provides the Marketplace class for interacting with the Sharetribe Integration API.\n * This class allows fetching details about the marketplace configuration.\n *\n * For more details, refer to the Integration API documentation:\n * https://www.sharetribe.com/api-reference/integration.html#marketplace\n */\n\nimport { AxiosInstance, AxiosResponse } from \"axios\";\nimport IntegrationApi from \"./index\";\nimport { MarketplaceResponse } from \"../../types/marketplace/marketplace\";\n\n/**\n * Class representing the Marketplace API.\n *\n * The Marketplace API provides methods to retrieve marketplace configuration details.\n */\nclass Marketplace {\n private readonly endpoint: string;\n private readonly axios: AxiosInstance;\n private readonly headers: Record<string, string>;\n\n /**\n * Creates an instance of the Marketplace class.\n *\n * @param {MarketplaceApi} api - The Marketplace API instance providing configuration and request handling.\n */\n constructor(api: IntegrationApi) {\n this.endpoint = api.endpoint + \"/marketplace\";\n this.axios = api.axios;\n this.headers = api.headers;\n }\n\n /**\n * Retrieves details about the marketplace configuration.\n *\n * @returns {Promise<AxiosResponse<MarketplaceResponse<'show'>>>} - A promise resolving to the marketplace details.\n *\n * @example\n * const response = await integrationSdk.marketplace.show();\n *\n * const marketplaceDetails = response.data;\n */\n async show(): Promise<AxiosResponse<MarketplaceResponse<\"show\">>> {\n return this.axios.get<MarketplaceResponse<\"show\">>(\n `${this.endpoint}/show`,\n { headers: this.headers }\n );\n }\n}\n\nexport default Marketplace;\n","/**\n * @fileoverview Provides the Stock class for managing stock levels in the Sharetribe Integration API.\n * This class allows performing operations on stock, such as compare-and-set updates.\n *\n * For more details, refer to the Integration API documentation:\n * https://www.sharetribe.com/api-reference/integration.html#stock\n */\n\nimport { AxiosInstance, AxiosResponse } from \"axios\";\nimport IntegrationApi from \"./index\";\nimport {\n StockCompareAndSetParameter,\n StockResponse,\n} from \"../../types/marketplace/stock\";\nimport { ExtraParameter } from \"../../types/sharetribe\";\n\n/**\n * Class representing the Stock API.\n *\n * The Stock API provides methods to manage stock levels for marketplace resources.\n */\nclass Stock {\n private readonly endpoint: string;\n private readonly axios: AxiosInstance;\n private readonly headers: Record<string, string>;\n public readonly authRequired = true;\n\n /**\n * Creates an instance of the Stock class.\n *\n * @param {MarketplaceApi} api - The Marketplace API instance providing configuration and request handling.\n */\n constructor(api: IntegrationApi) {\n this.endpoint = api.endpoint + \"/stock\";\n this.axios = api.axios;\n this.headers = api.headers;\n }\n\n /**\n * Updates stock levels using a compare-and-set operation.\n *\n * @template P\n * @template EP\n * @param {P & StockCompareAndSetParameter} params - Parameters specifying the stock to compare and set.\n * @param {EP & ExtraParameter} extraParams - Optional additional parameters for the request.\n * @returns {Promise<AxiosResponse<StockResponse<'compareAndSet', EP>>>} - A promise resolving to the stock update response.\n *\n * @example\n * const response = await integrationSdk.stock.compareAndSet({\n * listingId: 'listing-id',\n * oldTotal: 5,\n * newTotal: 10,\n * });\n *\n * const updatedStock = response.data;\n */\n async compareAndSet<\n P extends StockCompareAndSetParameter,\n EP extends ExtraParameter\n >(\n params: P,\n extraParams: EP | void = {} as EP\n ): Promise<AxiosResponse<StockResponse<\"compareAndSet\", EP>>> {\n return this.axios.post<StockResponse<\"compareAndSet\", EP>>(\n `${this.endpoint}/compare_and_set`,\n { ...params, ...extraParams },\n { headers: this.headers }\n );\n }\n}\n\nexport default Stock;\n","/**\n * @fileoverview Provides the StockAdjustments class for managing stock adjustments in the Sharetribe Integration API.\n * This class allows querying and creating stock adjustment records.\n *\n * For more details, refer to the Integration API documentation:\n * https://www.sharetribe.com/api-reference/integration.html#stock-adjustments\n */\n\nimport { AxiosInstance, AxiosResponse } from \"axios\";\nimport IntegrationApi from \"./index\";\nimport {\n StockAdjustmentsCreateParameter,\n StockAdjustmentsQueryParameter,\n StockAdjustmentsResponse,\n} from \"../../types/marketplace/stockAdjustment\";\nimport { ExtraParameter } from \"../../types/sharetribe\";\n\n/**\n * Class representing the Stock Adjustments API.\n *\n * The Stock Adjustments API provides methods to query and create stock adjustments for marketplace resources.\n */\nclass StockAdjustments {\n private readonly endpoint: string;\n private readonly axios: AxiosInstance;\n private readonly headers: Record<string, string>;\n public readonly authRequired = true;\n\n /**\n * Creates an instance of the StockAdjustments class.\n *\n * @param {IntegrationApi} api - The Integration API instance providing configuration and request handling.\n */\n constructor(api: IntegrationApi) {\n this.endpoint = api.endpoint + \"/stock_adjustments\";\n this.axios = api.axios;\n this.headers = api.headers;\n }\n\n /**\n * Queries stock adjustment records based on specified filters.\n *\n * @template P\n * @param {P & StockAdjustmentsQueryParameter} params - Query parameters to filter stock adjustment records.\n * @returns {Promise<AxiosResponse<StockAdjustmentsResponse<'query', P>>>} - A promise resolving to the query results.\n *\n * @example\n * const response = await integrationSdk.stockAdjustments.query({\n * listingId: 'resource-id',\n * start: '2024-12-01T00:00:00Z',\n * end: '2024-12-31T23:59:59Z',\n * });\n *\n * const adjustments = response.data;\n */\n async query<P extends StockAdjustmentsQueryParameter>(\n params: P\n ): Promise<AxiosResponse<StockAdjustmentsResponse<\"query\", P>>> {\n return this.axios.get<StockAdjustmentsResponse<\"query\", P>>(\n `${this.endpoint}/query`,\n {\n headers: this.headers,\n params,\n }\n );\n }\n\n /**\n * Creates a new stock adjustment record.\n *\n * @template P\n * @template EP\n * @param {P & StockAdjustmentsCreateParameter} params - Parameters for the new stock adjustment.\n * @param {EP | undefined} extraParams - Optional extra parameters for the request.\n * @returns {Promise<AxiosResponse<StockAdjustmentsResponse<'create', P, EP>>>} - A promise resolving to the created stock adjustment record.\n *\n * @example\n * const response = await integrationSdk.stockAdjustments.create({\n * listingId: 'listing-id',\n * quantity: 10,\n * });\n *\n * const newAdjustment = response.data;\n */\n async create<\n P extends StockAdjustmentsCreateParameter,\n EP extends ExtraParameter | undefined\n >(\n params: P,\n extraParams: EP | void = {} as EP\n ): Promise<AxiosResponse<StockAdjustmentsResponse<\"create\", P, EP>>> {\n return this.axios.post<StockAdjustmentsResponse<\"create\", P, EP>>(\n `${this.endpoint}/create`,\n { ...params, ...extraParams },\n { headers: this.headers }\n );\n }\n}\n\nexport default StockAdjustments;\n","/**\n * @fileoverview Provides the StockReservation class for managing stock reservations in the Sharetribe Integration API.\n * This class allows retrieving details about stock reservations.\n *\n * For more details, refer to the Integration API documentation:\n * https://www.sharetribe.com/api-reference/integration.html#stock-reservations\n */\n\nimport { AxiosInstance, AxiosResponse } from \"axios\";\nimport IntegrationApi from \"./index\";\nimport {\n StockReservationShowParameter,\n StockReservationsResponse,\n} from \"../../types/marketplace/stockReservations\";\n\n/**\n * Class representing the Stock Reservations API.\n *\n * The Stock Reservations API provides methods to manage stock reservations for marketplace resources.\n */\nclass StockReservation {\n private readonly endpoint: string;\n private readonly axios: AxiosInstance;\n private readonly headers: Record<string, string>;\n\n /**\n * Creates an instance of the StockReservation class.\n *\n * @param {IntegrationApi} api - The Integration API instance providing configuration and request handling.\n */\n constructor(api: IntegrationApi) {\n this.endpoint = api.endpoint + \"/stock_reservations\";\n this.axios = api.axios;\n this.headers = api.headers;\n }\n\n /**\n * Retrieves details about a specific stock reservation.\n *\n * @template P\n * @param {P & StockReservationShowParameter} params - The parameters to identify the stock reservation.\n * @returns {Promise<AxiosResponse<StockReservationsResponse<'show', P>>>} - A promise resolving to the stock reservation details.\n *\n * @example\n * const response = await integrationSdk.stockReservations.show({\n * id: 'reservation-id',\n * });\n *\n * const reservationDetails = response.data;\n */\n async show<P extends StockReservationShowParameter>(\n params: P\n ): Promise<AxiosResponse<StockReservationsResponse<\"show\", P>>> {\n return this.axios.get<StockReservationsResponse<\"show\", P>>(\n `${this.endpoint}/show`,\n { headers: this.headers, params }\n );\n }\n}\n\nexport default StockReservation;\n","/**\n * @fileoverview Provides the Transactions class for managing transactions in the Sharetribe Integration API.\n * This class allows querying, transitioning, and updating metadata for transactions.\n *\n * For more details, refer to the Integration API documentation:\n * https://www.sharetribe.com/api-reference/integration.html#transactions\n */\n\nimport { AxiosInstance, AxiosResponse } from \"axios\";\nimport IntegrationApi from \"./index\";\nimport {\n TransactionsQueryParameter,\n TransactionsResponse,\n TransactionsShowParameter,\n TransactionsTransitionParameter,\n TransactionsTransitionSpeculativeParameter,\n TransactionsUpdateMetadataParameter,\n} from \"../../types/marketplace/transactions\";\nimport { ExtraParameter } from \"../../types/sharetribe\";\n\n/**\n * Class representing the Transactions API.\n *\n * The Transactions API provides methods to query, transition, and manage metadata for marketplace transactions.\n */\nclass Transactions {\n private readonly endpoint: string;\n private readonly axios: AxiosInstance;\n private readonly headers: Record<string, string>;\n public readonly authRequired = true;\n\n /**\n * Creates an instance of the Transactions class.\n *\n * @param {IntegrationApi} api - The Integration API instance providing configuration and request handling.\n */\n constructor(api: IntegrationApi) {\n this.endpoint = api.endpoint + \"/transactions\";\n this.axios = api.axios;\n this.headers = api.headers;\n }\n\n /**\n * Retrieves details about a specific transaction.\n *\n * @template P\n * @param {P & TransactionsShowParameter} params - The parameters to identify the transaction.\n * @returns {Promise<AxiosResponse<TransactionsResponse<'show', P>>>} - A promise resolving to the transaction details.\n *\n * @example\n * const response = await integrationSdk.transactions.show({\n * id: 'transaction-id',\n * });\n *\n * const transactionDetails = response.data;\n */\n async show<P extends TransactionsShowParameter>(\n params: P\n ): Promise<AxiosResponse<TransactionsResponse<\"show\", P>>> {\n return this.axios.get<TransactionsResponse<\"show\", P>>(\n `${this.endpoint}/show`,\n {\n headers: this.headers,\n params,\n }\n );\n }\n\n /**\n * Queries transactions based on specified filters.\n *\n * @template P\n * @param {P & TransactionsQueryParameter<true>} params - Query parameters to filter transactions.\n * @returns {Promise<AxiosResponse<TransactionsResponse<'query', P>>>} - A promise resolving to the query results.\n *\n * @example\n * const response = await integrationSdk.transactions.query({\n * createdAtStart: '2021-01-01T00:00:00Z',\n * createdAtEnd: '2021-01-31T23:59:59Z',\n * userId: 'user-id',\n * customerId: 'customer-id',\n * providerId: 'provider-id',\n * listingId: 'listing-id',\n * });\n *\n * const transactions = response.data;\n */\n async query<P extends TransactionsQueryParameter<true>>(\n params: P\n ): Promise<AxiosResponse<TransactionsResponse<\"query\", P>>> {\n return this.axios.get<TransactionsResponse<\"query\", P>>(\n `${this.endpoint}/query`,\n {\n headers: this.headers,\n params,\n }\n );\n }\n\n /**\n * Transitions a transaction to a new state.\n *\n * @template P\n * @template EP\n * @param {P & TransactionsTransitionParameter} params - Parameters specifying the transaction and the transition.\n * @param {EP | void} extraParams - Optional extra parameters for the request.\n * @returns {Promise<AxiosResponse<TransactionsResponse<'transition', P, EP>>>} - A promise resolving to the transitioned transaction.\n *\n * @example\n * const response = await integrationSdk.transactions.transition({\n * id: 'transaction-id',\n * transition: 'accept',\n * params: { key: 'value' },\n * });\n *\n * const updatedTransaction = response.data;\n */\n async transition<\n P extends TransactionsTransitionParameter,\n EP extends ExtraParameter\n >(\n params: P,\n extraParams: EP | void = {} as EP\n ): Promise<AxiosResponse<TransactionsResponse<\"transition\", P, EP>>> {\n return this.axios.post<TransactionsResponse<\"transition\", P, EP>>(\n `${this.endpoint}/transition`,\n { ...params, ...extraParams },\n { headers: this.headers }\n );\n }\n\n /**\n * Transitions a transaction speculatively to a new state without persisting the transition.\n *\n * @template P\n * @template EP\n * @param {P & TransactionsTransitionSpeculativeParameter} params - Parameters specifying the speculative transition.\n * @param {EP | void} extraParams - Optional extra parameters for the request.\n * @returns {Promise<AxiosResponse<TransactionsResponse<'transitionSpeculative', P, EP>>>} - A promise resolving to the speculative transition result.\n *\n * @example\n * const response = await integrationSdk.transactions.transitionSpeculative({\n * id: 'transaction-id',\n * transition: 'accept',\n * params: { key: 'value' },\n * });\n *\n * const speculativeResult = response.data;\n */\n async transitionSpeculative<\n P extends TransactionsTransitionSpeculativeParameter,\n EP extends ExtraParameter\n >(\n params: P,\n extraParams: EP | void = {} as EP\n ): Promise<\n AxiosResponse<TransactionsResponse<\"transitionSpeculative\", P, EP>>\n > {\n return this.axios.post<\n TransactionsResponse<\"transitionSpeculative\", P, EP>\n >(\n `${this.endpoint}/transition_speculative`,\n { ...params, ...extraParams },\n { headers: this.headers }\n );\n }\n\n /**\n * Updates metadata for a transaction.\n *\n * @template P\n * @template EP\n * @param {P & TransactionsUpdateMetadataParameter} params - Parameters specifying the transaction metadata to update.\n * @param {EP | void} extraParams - Optional extra parameters for the request.\n * @returns {Promise<AxiosResponse<TransactionsResponse<'updateMetadata', P, EP>>>} - A promise resolving to the updated transaction metadata.\n *\n * @example\n * const response = await integrationSdk.transactions.updateMetadata({\n * id: 'transaction-id',\n * metadata: { key: 'value' },\n * });\n *\n * const updatedMetadata = response.data;\n */\n async updateMetadata<\n P extends TransactionsUpdateMetadataParameter,\n EP extends ExtraParameter\n >(\n params: P,\n extraParams: EP | void = {} as EP\n ): Promise<AxiosResponse<TransactionsResponse<\"updateMetadata\", P, EP>>> {\n return this.axios.post<TransactionsResponse<\"updateMetadata\", P, EP>>(\n `${this.endpoint}/update_metadata`,\n { ...params, ...extraParams },\n { headers: this.headers }\n );\n }\n}\n\nexport default Transactions;\n","/**\n * @fileoverview Provides the Users class for managing user data in the Sharetribe Integration API.\n * This class allows retrieving details about a specific user.\n *\n * For more details, refer to the Integration API documentation:\n * https://www.sharetribe.com/api-reference/integration.html#users\n */\n\nimport { AxiosInstance, AxiosResponse } from \"axios\";\nimport IntegrationApi from \"./index\";\nimport {\n UsersApproveParameter,\n UsersQueryParameter,\n UsersResponse,\n UsersShowParameter,\n UsersUpdatePermissionsParameter,\n UsersUpdateProfileParameter,\n} from \"../../types/marketplace/user\";\nimport { ExtraParameter } from \"../../types/sharetribe\";\n\n/**\n * Class representing the Users API.\n *\n * The Users API provides methods to retrieve user data for marketplace resources.\n */\nclass Users {\n private readonly endpoint: string;\n private readonly axios: AxiosInstance;\n private readonly headers: Record<string, string>;\n\n /**\n * Creates an instance of the Users class.\n *\n * @param {IntegrationApi} api - The Integration API instance providing configuration and request handling.\n */\n constructor(api: IntegrationApi) {\n this.endpoint = api.endpoint + \"/users\";\n this.axios = api.axios;\n this.headers = api.headers;\n }\n\n /**\n * Retrieves details about a specific user.\n *\n * @template P\n * @param {P & UsersShowParameter} params - The parameters to identify the user.\n * @returns {Promise<AxiosResponse<UsersResponse<'show', P, undefined, true>>>} - A promise resolving to the user details.\n *\n * @example\n * const response = await integrationSdk.users.show({\n * id: 'user-id',\n * });\n *\n * const userDetails = response.data;\n */\n async show<P extends UsersShowParameter<true>>(\n params: P\n ): Promise<AxiosResponse<UsersResponse<\"show\", P, undefined, true>>> {\n if (!params.id && !params.email) {\n throw new Error(\"Either 'id' or 'email' must be provided.\");\n }\n\n return this.axios.get<UsersResponse<\"show\", P, undefined, true>>(\n `${this.endpoint}/show`,\n {\n headers: this.headers,\n params,\n }\n );\n }\n\n /**\n * Queries users based on specified filters.\n *\n * @template P\n * @param {P & UsersQueryParameter} params - Query parameters for filtering users.\n * @returns {Promise<AxiosResponse<UsersResponse<'query', P, undefined, true>>>} - A promise resolving to the list of users.\n *\n * @example\n * const response = await integrationSdk.users.query({\n * createdAtStart: '2021-01-01T00:00:00Z'\n * });\n * const users = response.data;\n */\n async query<P extends UsersQueryParameter>(\n params: P\n ): Promise<AxiosResponse<UsersResponse<\"query\", P, undefined, true>>> {\n return this.axios.get<UsersResponse<\"query\", P, undefined, true>>(\n `${this.endpoint}/query`,\n {\n headers: this.headers,\n params,\n }\n );\n }\n\n /**\n * Updates a user's profile.\n *\n * @template P\n * @template EP\n * @param {P & UsersUpdateProfileParameter} params - Parameters to update the user's profile.\n * @param {EP | void} extraParams - Optional extra parameters for the request.\n * @returns {Promise<AxiosResponse<UsersResponse<'updateProfile', P, EP, true>>>} - A promise resolving to the updated profile details.\n *\n * @example\n * const response = await integrationSdk.users.updateProfile({\n * id: 'user-id',\n * firstName: 'John',\n * lastName: 'Doe',\n * displayName: 'John Doe',\n * });\n * const updatedProfile = response.data;\n */\n async updateProfile<\n P extends UsersUpdateProfileParameter,\n EP extends ExtraParameter\n >(\n params: P,\n extraParams?: EP\n ): Promise<AxiosResponse<UsersResponse<\"updateProfile\", P, EP, true>>> {\n return this.axios.post<UsersResponse<\"updateProfile\", P, EP, true>>(\n `${this.endpoint}/update_profile`,\n { ...params, ...extraParams },\n { headers: this.headers }\n );\n }\n\n /**\n * Approves a user.\n *\n * @template P\n * @template EP\n * @param {P & UsersApproveParameter} params - Parameters to approve the user.\n * @param {EP | void} extraParams - Optional extra parameters for the request.\n * @returns {Promise<AxiosResponse<UsersResponse<'approve', P, EP, true>>>} - A promise resolving to the approval confirmation.\n *\n * @example\n * const response = await integrationSdk.users.approve({ id: 'user-id' });\n * const approvalResult = response.data;\n */\n async approve<P extends UsersApproveParameter, EP extends ExtraParameter>(\n params: P,\n extraParams?: EP\n ): Promise<AxiosResponse<UsersResponse<\"approve\", P, EP, true>>> {\n return this.axios.post<UsersResponse<\"approve\", P, EP, true>>(\n `${this.endpoint}/approve`,\n { ...params, ...extraParams },\n {\n headers: this.headers,\n }\n );\n }\n\n /**\n * Updates a user's permissions.\n *\n * @template P\n * @template EP\n * @param {P & UsersUpdatePermissionsParameter} params - Parameters to update the user's permissions.\n * @param {EP | void} extraParams - Optional extra parameters for the request.\n * @returns {Promise<AxiosResponse<UsersResponse<'updatePermissions', P, EP, true>>>} - A promise resolving to the updated permissions details.\n *\n * @example\n * const response = await integrationSdk.users.updatePermissions(\n * { id: 'user-id', permissions: ['permission-1', 'permission-2'] },\n * { additionalParam: 'value' }\n * );\n * const updatedPermissions = response.data;\n */\n async updatePermissions<\n P extends UsersUpdatePermissionsParameter,\n EP extends ExtraParameter\n >(\n params: P,\n extraParams?: EP\n ): Promise<AxiosResponse<UsersResponse<\"updatePermissions\", P, EP, true>>> {\n return this.axios.post<UsersResponse<\"updatePermissions\", P, EP, true>>(\n `${this.endpoint}/update_permissions`,\n { ...params, ...extraParams },\n { headers: this.headers }\n );\n }\n}\n\nexport default Users;\n","/**\n * @fileoverview Provides the IntegrationApi class for accessing various endpoints of the Sharetribe Integration API.\n * This class acts as a gateway to multiple sub-APIs, including availability exceptions, events, images, listings, stock, transactions, and users.\n */\n\nimport { AxiosInstance } from \"axios\";\nimport IntegrationSdk from \"../../integrationSdk\";\nimport AvailabilityExceptions from \"./AvailabilityExceptions\";\nimport Events from \"./Events\";\nimport Images from \"./Images\";\nimport Listings from \"./Listings\";\nimport Marketplace from \"./Marketplace\";\nimport Stock from \"./Stock\";\nimport StockAdjustments from \"./StockAdjustments\";\nimport StockReservation from \"./StockReservation\";\nimport Transactions from \"./Transactions\";\nimport Users from \"./Users\";\n\n/**\n * Class representing the Sharetribe Integration API.\n *\n * This class provides access to various sub-APIs for managing marketplace resources such as availability exceptions,\n * events, images, listings, stock, transactions, and users.\n *\n * @example\n * const sdk = new IntegrationSdk(sdkConfig);\n * const integrationApi = new IntegrationApi(sdk);\n *\n * // Example: Query availability exceptions\n * const response = await integrationApi.availabilityExceptions.query({\n * resource_id: 'resource-id',\n * start: '2024-12-01T00:00:00Z',\n * end: '2024-12-31T23:59:59Z'\n * });\n *\n * const exceptions = response.data;\n */\nclass IntegrationApi {\n axios: AxiosInstance;\n endpoint: string;\n headers: Record<string, string>;\n authRequired: boolean;\n\n // API Endpoints\n availabilityExceptions: AvailabilityExceptions;\n events: Events;\n images: Images;\n listings: Listings;\n marketplace: Marketplace;\n stock: Stock;\n stockAdjustments: StockAdjustments;\n stockReservations: StockReservation;\n transactions: Transactions;\n users: Users;\n\n /**\n * Creates an instance of the IntegrationApi class.\n *\n * @param {IntegrationSdk} sdk - The Integration SDK instance providing configuration and request handling.\n */\n constructor(sdk: IntegrationSdk) {\n const config = sdk.apisConfigs.integrationApi(sdk.sdkConfig);\n this.endpoint = config.baseUrl;\n this.headers = config.headers;\n this.axios = sdk.axios;\n this.authRequired = false;\n\n this.availabilityExceptions = new AvailabilityExceptions(this);\n this.events = new Events(this);\n this.images = new Images(this);\n this.listings = new Listings(this);\n this.marketplace = new Marketplace(this);\n this.stock = new Stock(this);\n this.stockAdjustments = new StockAdjustments(this);\n this.stockReservations = new StockReservation(this);\n this.transactions = new Transactions(this);\n this.users = new Users(this);\n }\n}\n\nexport default IntegrationApi;\n","/**\n * @fileoverview Provides the AvailabilityExceptions class for managing availability exceptions in the Sharetribe Marketplace API.\n * This class allows querying, creating, and deleting availability exceptions for listings.\n *\n * For more details, refer to the Marketplace API documentation:\n * https://www.sharetribe.com/api-reference/marketplace.html#availability-exceptions\n */\n\nimport { AxiosInstance, AxiosResponse } from \"axios\";\nimport MarketplaceApi from \"./index\";\nimport {\n AvailabilityExceptionsCreateParameter,\n AvailabilityExceptionsDeleteParameter,\n AvailabilityExceptionsQueryParameter,\n AvailabilityExceptionsResponse,\n} from \"../../types/marketplace/availabilityExceptions\";\nimport { ExtraParameter } from \"../../types/sharetribe\";\n\n/**\n * Class representing the AvailabilityExceptions API.\n *\n * The AvailabilityExceptions API provides methods to manage availability exceptions for listings, such as querying existing exceptions, creating new ones, and deleting them.\n */\nclass AvailabilityExceptions {\n private readonly endpoint: string;\n private readonly axios: AxiosInstance;\n private readonly headers: Record<string, string>;\n public readonly authRequired = true;\n\n /**\n * Creates an instance of the AvailabilityExceptions class.\n *\n * @param {MarketplaceApi} api - The Marketplace API instance providing configuration and request handling.\n */\n constructor(api: MarketplaceApi) {\n this.endpoint = api.endpoint + \"/availability_exceptions\";\n this.axios = api.axios;\n this.headers = api.headers;\n }\n\n /**\n * Queries availability exceptions based on specified filters.\n *\n * @template P\n * @param {P & AvailabilityExceptionsQueryParameter} params - Query parameters to filter availability exceptions.\n * @returns {Promise<AxiosResponse<AvailabilityExceptionsResponse<'query', P>>>} - A promise resolving to the query results.\n *\n * @example\n * const response = await sdk.availabilityExceptions.query({\n * listingId: 'listing-id',\n * start: '2024-12-01T00:00:00Z',\n * end: '2024-12-31T23:59:59Z',\n * });\n *\n * const exceptions = response.data;\n */\n async query<P extends AvailabilityExceptionsQueryParameter>(\n params: P\n ): Promise<AxiosResponse<AvailabilityExceptionsResponse<\"query\", P>>> {\n return this.axios.get<AvailabilityExceptionsResponse<\"query\", P>>(\n `${this.endpoint}/query`,\n {\n headers: this.headers,\n params,\n }\n );\n }\n\n /**\n * Creates a new availability exception for a listing.\n *\n * @template P\n * @template EP\n * @param {P & AvailabilityExceptionsCreateParameter} params - Parameters for the new availability exception.\n * @param {EP | void} extraParams - Optional extra parameters for the request.\n * @returns {Promise<AxiosResponse<AvailabilityExceptionsResponse<'create', P, EP>>>} - A promise resolving to the created availability exception.\n *\n * @example\n * const response = await sdk.availabilityExceptions.create({\n * listingId: 'listing-id',\n * start: '2024-12-25T00:00:00Z',\n * end: '2024-12-25T23:59:59Z',\n * seats: 0,\n * });\n *\n * const newException = response.data;\n */\n async create<\n P extends AvailabilityExceptionsCreateParameter,\n EP extends ExtraParameter\n >(\n params: P,\n extraParams?: EP\n ): Promise<AxiosResponse<AvailabilityExceptionsResponse<\"create\", P, EP>>> {\n return this.axios.post<AvailabilityExceptionsResponse<\"create\", P, EP>>(\n `${this.endpoint}/create`,\n { ...params, ...extraParams },\n { headers: this.headers }\n );\n }\n\n /**\n * Deletes an existing availability exception.\n *\n * @template P\n * @template EP\n * @param {P & AvailabilityExceptionsDeleteParameter} params - Parameters to identify the availability exception to delete.\n * @param {EP | void} extraParams - Optional extra parameters for the request.\n * @returns {Promise<AxiosResponse<AvailabilityExceptionsResponse<'delete', P>>>} - A promise resolving to the deletion result.\n *\n * @example\n * const response = await sdk.availabilityExceptions.delete({\n * id: 'exception-id',\n * });\n *\n * const deletionResult = response.data;\n */\n async delete<\n P extends AvailabilityExceptionsDeleteParameter,\n EP extends ExtraParameter\n >(\n params: P,\n extraParams?: EP\n ): Promise<AxiosResponse<AvailabilityExceptionsResponse<\"delete\", P, EP>>> {\n return this.axios.post<AvailabilityExceptionsResponse<\"delete\", P, EP>>(\n `${this.endpoint}/delete`,\n { ...params, ...extraParams },\n { headers: this.headers }\n );\n }\n}\n\nexport default AvailabilityExceptions;\n","/**\n * @fileoverview Provides the Bookings class for managing bookings in the Sharetribe Marketplace API.\n * This class allows querying booking records.\n *\n * For more details, refer to the Marketplace API documentation:\n * https://www.sharetribe.com/api-reference/marketplace.html#bookings\n */\n\nimport { AxiosInstance, AxiosResponse } from \"axios\";\nimport MarketplaceApi from \"./index\";\nimport {\n BookingsQueryParameter,\n BookingsResponse,\n} from \"../../types/marketplace/bookings\";\n\n/**\n * Class representing the Bookings API.\n *\n * The Bookings API provides methods to query booking records for marketplace resources.\n */\nclass Bookings {\n private readonly endpoint: string;\n private readonly axios: AxiosInstance;\n private readonly headers: Record<string, string>;\n\n /**\n * Creates an instance of the Bookings class.\n *\n * @param {MarketplaceApi} api - The Marketplace API instance providing configuration and request handling.\n */\n constructor(api: MarketplaceApi) {\n this.endpoint = api.endpoint + \"/bookings\";\n this.axios = api.axios;\n this.headers = api.headers;\n }\n\n /**\n * Queries booking records based on specified filters.\n *\n * @template P\n * @param {P & BookingsQueryParameter} params - Query parameters to filter booking records.\n * @returns {Promise<AxiosResponse<BookingsResponse<'query', P>>>} - A promise resolving to the query results.\n *\n * @example\n * const response = await sdk.bookings.query({\n * listingId: 'listing-id',\n * start: '2024-12-01T00:00:00Z',\n * end: '2024-12-31T23:59:59Z',\n * });\n *\n * const bookings = response.data;\n */\n async query<P extends BookingsQueryParameter>(\n params: P\n ): Promise<AxiosResponse<BookingsResponse<\"query\", P>>> {\n return this.axios.get<BookingsResponse<\"query\", P>>(\n `${this.endpoint}/query`,\n {\n headers: this.headers,\n params,\n }\n );\n }\n}\n\nexport default Bookings;\n","/**\n * @fileoverview Provides the CurrentUser class for managing the current user's account in the Sharetribe Marketplace API.\n * This class includes methods for retrieving, creating, updating, and deleting the current authenticated user.\n *\n * For more details, refer to the Marketplace API documentation:\n * https://www.sharetribe.com/api-reference/marketplace.html#current-user\n */\n\nimport { AxiosInstance, AxiosResponse } from \"axios\";\nimport MarketplaceApi from \"./index\";\nimport {\n CurrentUserChangeEmailParameter,\n CurrentUserChangePasswordParameter,\n CurrentUserCreateParameter,\n CurrentUserCreateWithIdpParameter,\n CurrentUserDeleteParameter,\n CurrentUserResponse,\n CurrentUserShowParameter,\n CurrentUserUpdateProfileParameter,\n CurrentUserVerifyEmailParameter,\n} from \"../../types/marketplace/currentUser\";\nimport { ExtraParameter } from \"../../types/sharetribe\";\n\n/**\n * Class representing the Current User API.\n *\n * This class provides methods to manage the current authenticated user's account,\n * including viewing, creating, updating, and deleting the user profile.\n */\nclass CurrentUser {\n private readonly endpoint: string;\n private readonly axios: AxiosInstance;\n private readonly headers: Record<string, string>;\n public readonly authRequired = true;\n\n /**\n * Creates an instance of the CurrentUser class.\n *\n * @param {MarketplaceApi} api - The Marketplace API instance providing configuration and request handling.\n */\n constructor(api: MarketplaceApi) {\n this.endpoint = api.endpoint + \"/current_user\";\n this.axios = api.axios;\n this.headers = api.headers;\n }\n\n /**\n * Retrieves the current authenticated user's details.\n *\n * @template P\n * @param {P & CurrentUserShowParameter} params - Parameters for the request.\n * @returns {Promise<CurrentUserResponse<'show', P>>} - A promise resolving to the user's details.\n *\n * @example\n * const response = await sdk.currentUser.show({});\n * const user = response.data;\n */\n async show<P extends CurrentUserShowParameter>(\n params: P\n ): Promise<AxiosResponse<CurrentUserResponse<\"show\", P>>> {\n return this.axios.get<CurrentUserResponse<\"show\", P>>(\n `${this.endpoint}/show`,\n {\n headers: this.headers,\n params,\n }\n );\n }\n\n /**\n * Deletes the current authenticated user's account.\n *\n * @template P\n * @template EP\n * @param {P & CurrentUserDeleteParameter} params - Parameters for the request.\n * @param {EP} extraParams - Optional extra parameters for the request.\n * @returns {Promise<CurrentUserResponse<'delete', P>>} - A promise resolving to the deletion confirmation.\n *\n * @example\n * const response = await sdk.currentUser.delete();\n * const result = response.data;\n */\n async delete<P extends CurrentUserDeleteParameter, EP extends ExtraParameter>(\n params: P,\n extraParams: EP | void = {} as EP\n ): Promise<AxiosResponse<CurrentUserResponse<\"delete\", P>>> {\n return this.axios.post<CurrentUserResponse<\"delete\", P>>(\n `${this.endpoint}/delete`,\n { ...params, ...extraParams },\n { headers: this.headers }\n );\n }\n\n /**\n * Creates a new user account.\n *\n * @template P\n * @template EP\n * @param {P & CurrentUserCreateParameter} params - Parameters for the new user.\n * @param {EP} extraParams - Optional extra parameters for the request.\n * @returns {Promise<CurrentUserResponse<'create', P>>} - A promise resolving to the created user's details.\n *\n * @example\n * const response = await sdk.currentUser.create({\n * email: 'user@example.com',\n * password: 'secure-password',\n * firstName: 'First',\n * lastName: 'Last'\n * });\n * const newUser = response.data;\n */\n async create<P extends CurrentUserCreateParameter, EP extends ExtraParameter>(\n params: P,\n extraParams: EP | void = {} as EP\n ): Promise<AxiosResponse<CurrentUserResponse<\"create\", P>>> {\n return this.axios.post<CurrentUserResponse<\"create\", P>>(\n `${this.endpoint}/create`,\n { ...params, ...extraParams },\n { headers: this.headers }\n );\n }\n\n /**\n * Creates a new user account using an identity provider.\n *\n * @template P\n * @template EP\n * @param {P & CurrentUserCreateWithIdpParameter} params - Parameters for the new user with identity provider details.\n * @param {EP} extraParams - Optional extra parameters for the request.\n * @returns {Promise<CurrentUserResponse<'create_with_idp', P>>} - A promise resolving to the created user's details.\n *\n * @example\n * const response = await sdk.currentUser.createWithIdp({\n * idpId: 'provider-id',\n * idpClientId: 'provider-client-id',\n * idpToken: 'provider-token'\n * });\n * const newUser = response.data;\n */\n async createWithIdp<\n P extends CurrentUserCreateWithIdpParameter,\n EP extends ExtraParameter\n >(\n params: P,\n extraParams: EP | void = {} as EP\n ): Promise<AxiosResponse<CurrentUserResponse<\"create_with_idp\", P>>> {\n return this.axios.post<CurrentUserResponse<\"create_with_idp\", P>>(\n `${this.endpoint}/create_with_idp`,\n { ...params, ...extraParams },\n { headers: this.headers }\n );\n }\n\n /**\n * Updates the current authenticated user's profile.\n *\n * @template P\n * @template EP\n * @param {P & CurrentUserUpdateProfileParameter} params - Parameters for updating the profile.\n * @param {EP} extraParams - Optional extra parameters for the request.\n * @returns {Promise<CurrentUserResponse<'update_profile', P>>} - A promise resolving to the updated user's details.\n *\n * @example\n * const response = await sdk.currentUser.updateProfile({\n * firstName: 'UpdatedFirst',\n * lastName: 'UpdatedLast'\n * });\n * const updatedUser = response.data;\n */\n async updateProfile<\n P extends CurrentUserUpdateProfileParameter,\n EP extends ExtraParameter\n >(\n params: P,\n extraParams: EP | void = {} as EP\n ): Promise<AxiosResponse<CurrentUserResponse<\"update_profile\", P>>> {\n return this.axios.post<CurrentUserResponse<\"update_profile\", P>>(\n `${this.endpoint}/update_profile`,\n { ...params, ...extraParams },\n { headers: this.headers }\n );\n }\n\n /**\n * Changes the current authenticated user's password.\n *\n * @template P\n * @template EP\n * @param {P & CurrentUserChangePasswordParameter} params - Parameters for changing the password.\n * @param {EP} extraParams - Optional extra parameters for the request.\n * @returns {Promise<CurrentUserResponse<'change_password', P>>} - A promise resolving to the password change confirmation.\n *\n * @example\n * const response = await sdk.currentUser.changePassword({\n * currentPassword: 'old-password',\n * newPassword: 'new-secure-password'\n * });\n * const result = response.data;\n */\n async changePassword<\n P extends CurrentUserChangePasswordParameter,\n EP extends ExtraParameter\n >(\n params: P,\n extraParams: EP | void = {} as EP\n ): Promise<AxiosResponse<CurrentUserResponse<\"change_password\", P>>> {\n return this.axios.post<CurrentUserResponse<\"change_password\", P>>(\n `${this.endpoint}/change_password`,\n { ...params, ...extraParams },\n { headers: this.headers }\n );\n }\n\n /**\n * Changes the current authenticated user's email address.\n *\n * @template P\n * @template EP\n * @param {P & CurrentUserChangeEmailParameter} params - Parameters for changing the email address.\n * @param {EP} extraParams - Optional extra parameters for the request.\n * @returns {Promise<CurrentUserResponse<'change_email', P>>} - A promise resolving to the email change confirmation.\n *\n * @example\n * const response = await sdk.currentUser.changeEmail({\n * newEmail: 'new-email@example.com',\n * currentPassword: 'current-password'\n * });\n * const result = response.data;\n */\n async changeEmail<\n P extends CurrentUserChangeEmailParameter,\n EP extends ExtraParameter\n >(\n params: P,\n extraParams: EP | void = {} as EP\n ): Promise<AxiosResponse<CurrentUserResponse<\"change_email\", P>>> {\n return this.axios.post<CurrentUserResponse<\"change_email\", P>>(\n `${this.endpoint}/change_email`,\n { ...params, ...extraParams },\n { headers: this.headers }\n );\n }\n\n /**\n * Verifies the current authenticated user's email address.\n *\n * @template P\n * @template EP\n * @param {P & CurrentUserVerifyEmailParameter} params - Parameters for verifying the email address.\n * @param {EP} extraParams - Optional extra parameters for the request.\n * @returns {Promise<CurrentUserResponse<'verify_email', P>>} - A promise resolving to the email verification confirmation.\n *\n * @example\n * const response = await sdk.currentUser.verifyEmail({\n * verificationToken: 'verification-token'\n * });\n * const result = response.data;\n */\n async verifyEmail<\n P extends CurrentUserVerifyEmailParameter,\n EP extends ExtraParameter\n >(\n params: P,\n extraParams: EP | void = {} as EP\n ): Promise<AxiosResponse<CurrentUserResponse<\"verify_email\", P>>> {\n return this.axios.post<CurrentUserResponse<\"verify_email\", P>>(\n `${this.endpoint}/verify_email`,\n { ...params, ...extraParams },\n { headers: this.headers }\n );\n }\n\n /**\n * Sends a verification email to the current authenticated user.\n *\n * @template P\n * @returns {Promise<CurrentUserResponse<'send_verification_email', P>>} - A promise resolving to the email sending confirmation.\n *\n * @example\n * const response = await sdk.currentUser.sendVerificationEmail();\n * const result = response.data;\n */\n async sendVerificationEmail<P extends void>(): Promise<\n AxiosResponse<CurrentUserResponse<\"send_verification_email\", P>>\n > {\n return this.axios.post<CurrentUserResponse<\"send_verification_email\", P>>(\n `${this.endpoint}/send_verification_email`,\n null,\n { headers: this.headers }\n );\n }\n\n /**\n * @deprecated This API endpoint is DEPRECATED. Use /stripe_account/create instead!\n * Throws an error to indicate that this method should not be used.\n */\n async createStripeAccount() {\n throw new Error(\n \"This API endpoint is DEPRECATED. Use /stripe_account/create instead!\"\n );\n }\n\n /**\n * @deprecated This API endpoint is DEPRECATED. Use /stripe_account/update instead!\n * Throws an error to indicate that this method should not be used.\n */\n async updateStripeAccount() {\n throw new Error(\n \"This API endpoint is DEPRECATED. Use /stripe_account/update instead!\"\n );\n }\n}\n\nexport default CurrentUser;\n","/**\n * @fileoverview Provides the Images class for managing images in the Sharetribe Marketplace API.\n * This class allows uploading images for marketplace listings and resources.\n *\n * For more details, refer to the Marketplace API documentation:\n * https://www.sharetribe.com/api-reference/marketplace.html#images\n */\n\nimport { AxiosInstance, AxiosResponse } from \"axios\";\nimport MarketplaceApi from \"./index\";\nimport {\n ImagesResponse,\n ImagesUploadParameter,\n} from \"../../types/marketplace/images\";\nimport { ExtraParameter } from \"../../types/sharetribe\";\n\n/**\n * Class representing the Images API.\n *\n * The Images API provides methods to upload images for marketplace resources.\n */\nclass Images {\n private readonly endpoint: string;\n private readonly axios: AxiosInstance;\n private readonly headers: Record<string, string>;\n public readonly authRequired = true;\n\n /**\n * Creates an instance of the Images class.\n *\n * @param {MarketplaceApi} api - The Marketplace API instance providing configuration and request handling.\n */\n constructor(api: MarketplaceApi) {\n this.endpoint = api.endpoint + \"/images\";\n this.axios = api.axios;\n this.headers = api.headers;\n }\n\n /**\n * Uploads an image to the marketplace.\n *\n * @template P\n * @template EP\n * @param {P & ImagesUploadParameter} params - The image upload parameters, including the image file and metadata.\n * @param {EP & ExtraParameter} extraParams - Optional extra parameters for the request.\n * @returns {Promise<AxiosResponse<ImagesResponse<'upload', EP>>>} - A promise resolving to the uploaded image details.\n *\n * @example\n * const response = await sdk.images.upload({\n * image: file,\n * });\n *\n * const uploadedImage = response.data;\n */\n async upload<P extends ImagesUploadParameter, EP extends ExtraParameter>(\n params: P,\n extraParams: EP | void = {} as EP\n ): Promise<AxiosResponse<ImagesResponse<\"upload\", EP>>> {\n const formDataObj = Object.entries({ ...params, ...extraParams }).reduce(\n (fd, entry) => {\n const [key, val] = entry;\n fd.append(key, val);\n return fd;\n },\n new FormData()\n );\n\n return this.axios.post<ImagesResponse<\"upload\", EP>>(\n `${this.endpoint}/upload`,\n formDataObj,\n { headers: this.headers }\n );\n }\n}\n\nexport default Images;\n","/**\n * @fileoverview Provides the Listings class for managing listings in the Sharetribe Marketplace API.\n * This class allows querying and retrieving details of listings.\n *\n * For more details, refer to the Marketplace API documentation:\n * https://www.sharetribe.com/api-reference/marketplace.html#listings\n */\n\nimport { AxiosInstance, AxiosResponse } from \"axios\";\nimport MarketplaceApi from \"./index\";\nimport {\n ListingsShowParameter,\n ListingsResponse,\n ListingsQueryParameter,\n} from \"../../types/marketplace/listings\";\n\n/**\n * Class representing the Listings API.\n *\n * The Listings API provides methods to query and retrieve details of marketplace listings.\n */\nclass Listings {\n private readonly endpoint: string;\n private readonly axios: AxiosInstance;\n private readonly headers: Record<string, string>;\n\n /**\n * Creates an instance of the Listings class.\n *\n * @param {MarketplaceApi} api - The Marketplace API instance providing configuration and request handling.\n */\n constructor(api: MarketplaceApi) {\n this.endpoint = api.endpoint + \"/listings\";\n this.axios = api.axios;\n this.headers = api.headers;\n }\n\n /**\n * Retrieves details of a specific listing.\n *\n * @template P\n * @param {P & ListingsShowParameter} params - The parameters to identify the listing.\n * @returns {Promise<AxiosResponse<ListingsResponse<'show', P>>>} - A promise resolving to the listing details.\n *\n * @example\n * const response = await sdk.listings.show({ id: 'listing-id' });\n * const listing = response.data;\n */\n async show<P extends ListingsShowParameter>(\n params: P\n ): Promise<AxiosResponse<ListingsResponse<\"show\", P>>> {\n return this.axios.get<ListingsResponse<\"show\", P>>(\n `${this.endpoint}/show`,\n {\n headers: this.headers,\n params,\n }\n );\n }\n\n /**\n * Queries listings based on specified filters.\n *\n * @template P\n * @param {P & ListingsQueryParameter} params - Query parameters to filter listings.\n * @returns {Promise<AxiosResponse<ListingsResponse<'query', P>>>} - A promise resolving to the query results.\n *\n * @example\n * const response = await sdk.listings.query({ ids: ['listing-id-1', 'listing-id-2'] });\n * const listings = response.data;\n */\n async query<P extends ListingsQueryParameter>(\n params: P\n ): Promise<AxiosResponse<ListingsResponse<\"query\", P>>> {\n return this.axios.get<ListingsResponse<\"query\", P>>(\n `${this.endpoint}/query`,\n {\n headers: this.headers,\n params,\n }\n );\n }\n}\n\nexport default Listings;\n","/**\n * @fileoverview Provides the Marketplace class for retrieving marketplace details from the Sharetribe Marketplace API.\n * This class allows accessing configuration and metadata about the marketplace.\n *\n * For more details, refer to the Marketplace API documentation:\n * https://www.sharetribe.com/api-reference/marketplace.html#marketplace\n */\n\nimport { AxiosInstance, AxiosResponse } from \"axios\";\nimport MarketplaceApi from \"./index\";\nimport { MarketplaceResponse } from \"../../types/marketplace/marketplace\";\n\n/**\n * Class representing the Marketplace API.\n *\n * The Marketplace API provides methods to retrieve configuration and metadata about the marketplace.\n */\nclass Marketplace {\n private readonly endpoint: string;\n private readonly axios: AxiosInstance;\n private readonly headers: Record<string, string>;\n\n /**\n * Creates an instance of the Marketplace class.\n *\n * @param {MarketplaceApi} api - The Marketplace API instance providing configuration and request handling.\n */\n constructor(api: MarketplaceApi) {\n this.endpoint = api.endpoint + \"/marketplace\";\n this.axios = api.axios;\n this.headers = api.headers;\n }\n\n /**\n * Retrieves the configuration and metadata of the marketplace.\n *\n * @returns {Promise<AxiosResponse<MarketplaceResponse<'show'>>>} - A promise resolving to the marketplace details.\n *\n * @example\n * const response = await sdk.marketplace.show();\n * const marketplaceDetails = response.data;\n */\n async show(): Promise<AxiosResponse<MarketplaceResponse<\"show\">>> {\n return this.axios.get<MarketplaceResponse<\"show\">>(\n `${this.endpoint}/show`,\n {\n headers: this.headers,\n }\n );\n }\n}\n\nexport default Marketplace;\n","/**\n * @fileoverview Provides the Messages class for managing messages in the Sharetribe Marketplace API.\n * This class allows querying and sending messages.\n *\n * For more details, refer to the Marketplace API documentation:\n * https://www.sharetribe.com/api-reference/marketplace.html#messages\n */\n\nimport { AxiosInstance, AxiosResponse } from \"axios\";\nimport MarketplaceApi from \"./index\";\nimport { ExtraParameter } from \"../../types/sharetribe\";\nimport {\n MessagesQueryParameter,\n MessagesResponse,\n MessagesSendParameter,\n} from \"../../types/marketplace/messages\";\n\n/**\n * Class representing the Messages API.\n *\n * The Messages API provides methods to query and send messages in the marketplace.\n */\nclass Messages {\n private readonly endpoint: string;\n private readonly axios: AxiosInstance;\n private readonly headers: Record<string, string>;\n\n /**\n * Creates an instance of the Messages class.\n *\n * @param {MarketplaceApi} api - The Marketplace API instance providing configuration and request handling.\n */\n constructor(api: MarketplaceApi) {\n this.endpoint = api.endpoint + \"/messages\";\n this.axios = api.axios;\n this.headers = api.headers;\n }\n\n /**\n * Queries messages based on specified filters.\n *\n * @template P\n * @param {P & MessagesQueryParameter} params - Query parameters to filter messages.\n * @returns {Promise<AxiosResponse<MessagesResponse<'query', P>>>} - A promise resolving to the query results.\n *\n * @example\n * const response = await sdk.messages.query({ transactionId: 'transaction-id' });\n * const messages = response.data;\n */\n async query<P extends MessagesQueryParameter>(\n params: P\n ): Promise<AxiosResponse<MessagesResponse<\"query\", P>>> {\n return this.axios.get<MessagesResponse<\"query\", P>>(\n `${this.endpoint}/query`,\n {\n headers: this.headers,\n params,\n }\n );\n }\n\n /**\n * Sends a new message.\n *\n * @template P\n * @template EP\n * @param {P & MessagesSendParameter} params - Parameters specifying the message content and recipient.\n * @param {EP | void} extraParams - Optional extra parameters for the request.\n * @returns {Promise<AxiosResponse<MessagesResponse<'send', P, EP>>>} - A promise resolving to the sent message details.\n *\n * @example\n * const response = await sdk.messages.send({\n * transactionId: 'transaction-id', content: 'Hello!'\n * });\n * const sentMessage = response.data;\n */\n async send<P extends MessagesSendParameter, EP extends ExtraParameter>(\n params: P,\n extraParams: EP | void = {} as EP\n ): Promise<AxiosResponse<MessagesResponse<\"send\", P, EP>>> {\n return this.axios.post<MessagesResponse<\"send\", P, EP>>(\n `${this.endpoint}/create`,\n { ...params, ...extraParams },\n this.headers\n );\n }\n}\n\nexport default Messages;\n","/**\n * @fileoverview Provides the OwnListings class for managing the authenticated user's listings in the Sharetribe Marketplace API.\n * This class includes methods for creating, updating, publishing, and managing the lifecycle of listings.\n *\n * For more details, refer to the Marketplace API documentation:\n * https://www.sharetribe.com/api-reference/marketplace.html#own-listings\n */\n\nimport { AxiosInstance, AxiosResponse } from \"axios\";\nimport MarketplaceApi from \"./index\";\nimport {\n OwnListingsAddImageParameter,\n OwnListingsCloseParameter,\n OwnListingsCreateDraftParameter,\n OwnListingsCreateParameter,\n OwnListingsDiscardDraftParameter,\n OwnListingsOpenParameter,\n OwnListingsPublishDraftParameter,\n OwnListingsQueryParameter,\n OwnListingsResponse,\n OwnListingsShowParameter,\n OwnListingsUpdateParameter,\n} from \"../../types/marketplace/ownListings\";\nimport { ExtraParameter } from \"../../types/sharetribe\";\n\n/**\n * Class representing the Own Listings API.\n *\n * This class provides methods for the authenticated user to manage their listings, including creating, updating, publishing drafts, and adding images.\n */\nclass OwnListings {\n private readonly endpoint: string;\n private readonly axios: AxiosInstance;\n private readonly headers: Record<string, string>;\n public readonly authRequired = true;\n\n /**\n * Creates an instance of the OwnListings class.\n *\n * @param {MarketplaceApi} api - The Marketplace API instance providing configuration and request handling.\n */\n constructor(api: MarketplaceApi) {\n this.endpoint = api.endpoint + \"/own_listings\";\n this.axios = api.axios;\n this.headers = api.headers;\n }\n\n /**\n * Retrieves details of a specific listing.\n *\n * @template P\n * @param {OwnListingsShowParameter} params - Parameters identifying the listing.\n * @returns {Promise<AxiosResponse<OwnListingsResponse<'show', P>>>} - A promise resolving to the listing details.\n *\n * @example\n * const response = await sdk.ownListings.show({ id: 'listing-id' });\n * const listing = response.data;\n */\n async show<P extends OwnListingsShowParameter>(\n params: P\n ): Promise<AxiosResponse<OwnListingsResponse<\"show\", P>>> {\n return this.axios.get<OwnListingsResponse<\"show\", P>>(\n `${this.endpoint}/show`,\n {\n headers: this.headers,\n params,\n }\n );\n }\n\n /**\n * Queries the user's listings based on specified filters.\n *\n * @template P\n * @param {OwnListingsQueryParameter} params - Query parameters to filter listings.\n * @returns {Promise<AxiosResponse<OwnListingsResponse<'query', P>>>} - A promise resolving to the query results.\n *\n * @example\n * const response = await sdk.ownListings.query({});\n * const listings = response.data;\n */\n async query<P extends OwnListingsQueryParameter>(\n params: P\n ): Promise<AxiosResponse<OwnListingsResponse<\"query\", P>>> {\n return this.axios.get<OwnListingsResponse<\"query\", P>>(\n `${this.endpoint}/query`,\n {\n headers: this.headers,\n params,\n }\n );\n }\n\n /**\n * Creates a new listing.\n *\n * @template P\n * @template EP\n * @param {P & OwnListingsCreateParameter} params - Parameters for the new listing.\n * @param {EP | void} extraParams - Optional extra parameters for the request.\n * @returns {Promise<AxiosResponse<OwnListingsResponse<'create', P, EP>>>} - A promise resolving to the created listing details.\n *\n * @example\n * const response = await sdk.ownListings.create({\n * title: 'New Listing',\n * description: 'Description',\n * price: {\n * amount: 1000,\n * currency: 'USD'\n * }\n * });\n * const newListing = response.data;\n */\n async create<P extends OwnListingsCreateParameter, EP extends ExtraParameter>(\n params: P,\n extraParams?: EP\n ): Promise<AxiosResponse<OwnListingsResponse<\"create\", P, EP>>> {\n return this.axios.post<OwnListingsResponse<\"create\", P, EP>>(\n `${this.endpoint}/create`,\n { ...params, ...extraParams },\n { headers: this.headers }\n );\n }\n\n /**\n * Creates a draft listing.\n *\n * @template P\n * @template EP\n * @param {P & OwnListingsCreateDraftParameter} params - Parameters for the draft listing.\n * @param {EP | void} extraParams - Optional extra parameters for the request.\n * @returns {Promise<AxiosResponse<OwnListingsResponse<'createDraft', P, EP>>>} - A promise resolving to the created draft details.\n *\n * @example\n * const response = await sdk.ownListings.createDraft({\n * title: 'Draft Listing',\n * description: 'This is a draft',\n * });\n * const draft = response.data;\n */\n async createDraft<\n P extends OwnListingsCreateDraftParameter,\n EP extends ExtraParameter\n >(\n params: P,\n extraParams?: EP\n ): Promise<AxiosResponse<OwnListingsResponse<\"createDraft\", P, EP>>> {\n return this.axios.post<OwnListingsResponse<\"createDraft\", P, EP>>(\n `${this.endpoint}/create_draft`,\n { ...params, ...extraParams },\n { headers: this.headers }\n );\n }\n\n /**\n * Updates an existing listing.\n *\n * @template P\n * @template EP\n * @param {P & OwnListingsUpdateParameter} params - Parameters for updating the listing.\n * @param {EP | void} extraParams - Optional extra parameters for the request.\n * @returns {Promise<AxiosResponse<OwnListingsResponse<'update', P, EP>>>} - A promise resolving to the updated listing details.\n *\n * @example\n * const response = await sdk.ownListings.update({\n * id: 'listing-id',\n * title: 'Updated Listing Title',\n * });\n * const updatedListing = response.data;\n */\n async update<P extends OwnListingsUpdateParameter, EP extends ExtraParameter>(\n params: P,\n extraParams?: EP\n ): Promise<AxiosResponse<OwnListingsResponse<\"update\", P, EP>>> {\n return this.axios.post<OwnListingsResponse<\"update\", P, EP>>(\n `${this.endpoint}/update`,\n { ...params, ...extraParams },\n { headers: this.headers }\n );\n }\n\n /**\n * Publishes a draft listing.\n *\n * @template P\n * @template EP\n * @param {P & OwnListingsPublishDraftParameter} params - Parameters for publishing the draft listing.\n * @param {EP | void} extraParams - Optional extra parameters for the request.\n * @returns {Promise<AxiosResponse<OwnListingsResponse<'publishDraft', P, EP>>>} - A promise resolving to the published listing details.\n *\n * @example\n * const response = await sdk.ownListings.publishDraft({\n * id: 'draft-id',\n * });\n * const publishedListing = response.data;\n */\n async publishDraft<\n P extends OwnListingsPublishDraftParameter,\n EP extends ExtraParameter\n >(\n params: P,\n extraParams?: EP\n ): Promise<AxiosResponse<OwnListingsResponse<\"publishDraft\", P, EP>>> {\n return this.axios.post<OwnListingsResponse<\"publishDraft\", P, EP>>(\n `${this.endpoint}/publish_draft`,\n { ...params, ...extraParams },\n { headers: this.headers }\n );\n }\n\n /**\n * Discards a draft listing.\n *\n * @template P\n * @param {P & OwnListingsDiscardDraftParameter} params - Parameters for discarding the draft.\n * @returns {Promise<AxiosResponse<OwnListingsResponse<'discardDraft', P>>>} - A promise resolving to the discard confirmation.\n *\n * @example\n * const response = await sdk.ownListings.discardDraft({ id: 'draft-id' });\n * const result = response.data;\n */\n async discardDraft<P extends OwnListingsDiscardDraftParameter>(\n params: P\n ): Promise<AxiosResponse<OwnListingsResponse<\"discardDraft\", P>>> {\n return this.axios.post<OwnListingsResponse<\"discardDraft\", P>>(\n `${this.endpoint}/discard_draft`,\n params,\n { headers: this.headers }\n );\n }\n\n /**\n * Closes a listing.\n *\n * @template P\n * @template EP\n * @param {P & OwnListingsCloseParameter} params - Parameters for closing the listing.\n * @param {EP | void} extraParams - Optional extra parameters for the request.\n * @returns {Promise<AxiosResponse<OwnListingsResponse<'close', P>>>} - A promise resolving to the closed listing details.\n *\n * @example\n * const response = await sdk.ownListings.close({ id: 'listing-id' });\n * const closedListing = response.data;\n */\n async close<P extends OwnListingsCloseParameter, EP extends ExtraParameter>(\n params: P,\n extraParams?: EP\n ): Promise<AxiosResponse<OwnListingsResponse<\"close\", P>>> {\n return this.axios.post<OwnListingsResponse<\"close\", P>>(\n `${this.endpoint}/close`,\n { ...params, ...extraParams },\n { headers: this.headers }\n );\n }\n\n /**\n * Opens a listing.\n *\n * @template P\n * @template EP\n * @param {P & OwnListingsOpenParameter} params - Parameters for opening the listing.\n * @param {EP | void} extraParams - Optional extra parameters for the request.\n * @returns {Promise<AxiosResponse<OwnListingsResponse<'open', P>>>} - A promise resolving to the opened listing details.\n *\n * @example\n * const response = await sdk.ownListings.open({ id: 'listing-id' });\n * const openedListing = response.data;\n */\n async open<P extends OwnListingsOpenParameter, EP extends ExtraParameter>(\n params: P,\n extraParams?: EP\n ): Promise<AxiosResponse<OwnListingsResponse<\"open\", P>>> {\n return this.axios.post<OwnListingsResponse<\"open\", P>>(\n `${this.endpoint}/open`,\n { ...params, ...extraParams },\n { headers: this.headers }\n );\n }\n\n /**\n * Adds an image to a listing.\n *\n * @template P\n * @template EP\n * @param {P & OwnListingsAddImageParameter} params - Parameters specifying the image to add.\n * @param {EP | void} extraParams - Optional extra parameters for the request.\n * @returns {Promise<AxiosResponse<OwnListingsResponse<'addImage', P>>>} - A promise resolving to the updated listing details.\n *\n * @example\n * const response = await sdk.ownListings.addImage({\n * id: 'listing-id', imageId: 'image-id'\n * });\n * const updatedListing = response.data;\n */\n async addImage<\n P extends OwnListingsAddImageParameter,\n EP extends ExtraParameter\n >(\n params: P,\n extraParams?: EP\n ): Promise<AxiosResponse<OwnListingsResponse<\"addImage\", P>>> {\n return this.axios.post<OwnListingsResponse<\"addImage\", P>>(\n `${this.endpoint}/add_image`,\n { ...params, ...extraParams },\n { headers: this.headers }\n );\n }\n}\n\nexport default OwnListings;\n","/**\n * @fileoverview Provides the PasswordReset class for managing password reset requests and operations in the Sharetribe Marketplace API.\n * This class includes methods for requesting a password reset and resetting the password using a token.\n *\n * For more details, refer to the Marketplace API documentation:\n * https://www.sharetribe.com/api-reference/marketplace.html#password-reset\n */\n\nimport { AxiosInstance, AxiosResponse } from \"axios\";\nimport MarketplaceApi from \"./index\";\nimport {\n PasswordResetRequestParams,\n PasswordResetResetParams,\n PasswordResetResponse,\n} from \"../../types/marketplace/passwordReset\";\nimport { ExtraParameter } from \"../../types/sharetribe\";\n\n/**\n * Class representing the Password Reset API.\n *\n * The Password Reset API provides methods for requesting a password reset email and resetting the password.\n */\nclass PasswordReset {\n private readonly endpoint: string;\n private readonly axios: AxiosInstance;\n private readonly headers: Record<string, string>;\n\n /**\n * Creates an instance of the PasswordReset class.\n *\n * @param {MarketplaceApi} api - The Marketplace API instance providing configuration and request handling.\n */\n constructor(api: MarketplaceApi) {\n this.endpoint = api.endpoint + \"/password_reset\";\n this.axios = api.axios;\n this.headers = api.headers;\n }\n\n /**\n * Requests a password reset email.\n *\n * @template P\n * @template EP\n * @param {P & PasswordResetRequestParams} params - Parameters for the password reset request.\n * @param {EP | void} extraParams - Optional extra parameters for the request.\n * @returns {Promise<AxiosResponse<PasswordResetResponse<'request', EP>>>} - A promise resolving to the password reset request response.\n *\n * @example\n * const response = await sdk.passwordReset.request({\n * email: 'user@example.com',\n * });\n * const result = response.data;\n */\n async request<\n P extends PasswordResetRequestParams,\n EP extends ExtraParameter\n >(\n params: P,\n extraParams?: EP\n ): Promise<AxiosResponse<PasswordResetResponse<\"request\", EP>>> {\n return this.axios.post<PasswordResetResponse<\"request\", EP>>(\n `${this.endpoint}/request`,\n { ...params, ...extraParams },\n { headers: this.headers }\n );\n }\n\n /**\n * Resets the user's password using a token.\n *\n * @template P\n * @template EP\n * @param {P & PasswordResetResetParams} params - Parameters for resetting the password.\n * @param {EP | void} extraParams - Optional extra parameters for the request.\n * @returns {Promise<AxiosResponse<PasswordResetResponse<'reset', EP>>>} - A promise resolving to the password reset confirmation response.\n *\n * @example\n * const response = await sdk.passwordReset.reset({\n * email: 'user@example.com',\n * passwordResetToken: 'password-reset-token',\n * newPassword: 'new-password',\n * });\n * const result = response.data;\n */\n async reset<P extends PasswordResetResetParams, EP extends ExtraParameter>(\n params: P,\n extraParams?: EP\n ): Promise<AxiosResponse<PasswordResetResponse<\"reset\", EP>>> {\n return this.axios.post<PasswordResetResponse<\"reset\", EP>>(\n `${this.endpoint}/reset`,\n { ...params, ...extraParams },\n { headers: this.headers }\n );\n }\n}\n\nexport default PasswordReset;\n","/**\n * @fileoverview Provides the ProcessTransitions class for managing process transitions in the Sharetribe Marketplace API.\n * This class includes a method for querying process transitions.\n *\n * For more details, refer to the Marketplace API documentation:\n * https://www.sharetribe.com/api-reference/marketplace.html#process-transitions\n */\n\nimport { AxiosInstance, AxiosResponse } from \"axios\";\nimport MarketplaceApi from \"./index\";\nimport {\n ProcessTransitionsQueryParameter,\n ProcessTransitionsResponse,\n} from \"../../types/marketplace/processTransitions\";\n\n/**\n * Class representing the Process Transitions API.\n *\n * The Process Transitions API provides methods for querying transitions within processes.\n */\nclass ProcessTransitions {\n private readonly endpoint: string;\n private readonly axios: AxiosInstance;\n private readonly headers: Record<string, string>;\n public readonly authRequired = true;\n\n /**\n * Creates an instance of the ProcessTransitions class.\n *\n * @param {MarketplaceApi} api - The Marketplace API instance providing configuration and request handling.\n */\n constructor(api: MarketplaceApi) {\n this.endpoint = api.endpoint + \"/process_transitions\";\n this.axios = api.axios;\n this.headers = api.headers;\n }\n\n /**\n * Queries process transitions based on specified filters.\n *\n * @template P\n * @param {P & ProcessTransitionsQueryParameter} params - Query parameters for filtering transitions.\n * @returns {Promise<AxiosResponse<ProcessTransitionsResponse<'query'>>>} - A promise resolving to the query results.\n *\n * @example\n * const response = await sdk.processTransitions.query({\n * processAlias: 'booking-process',\n * });\n * const transitions = response.data;\n */\n async query<P extends ProcessTransitionsQueryParameter>(\n params: P\n ): Promise<AxiosResponse<ProcessTransitionsResponse<\"query\">>> {\n return this.axios.get<ProcessTransitionsResponse<\"query\">>(\n `${this.endpoint}/query`,\n {\n headers: this.headers,\n params,\n }\n );\n }\n}\n\nexport default ProcessTransitions;\n","/**\n * @fileoverview Provides the Reviews class for managing reviews in the Sharetribe Marketplace API.\n * This class includes methods for querying and retrieving details of reviews.\n *\n * For more details, refer to the Marketplace API documentation:\n * https://www.sharetribe.com/api-reference/marketplace.html#reviews\n */\n\nimport { AxiosInstance, AxiosResponse } from \"axios\";\nimport MarketplaceApi from \"./index\";\nimport {\n ReviewsQueryParameter,\n ReviewsResponse,\n ReviewsShowParameter,\n} from \"../../types/marketplace/reviews\";\n\n/**\n * Class representing the Reviews API.\n *\n * The Reviews API provides methods for querying and retrieving details of reviews within the marketplace.\n */\nclass Reviews {\n private readonly endpoint: string;\n private readonly axios: AxiosInstance;\n private readonly headers: Record<string, string>;\n\n /**\n * Creates an instance of the Reviews class.\n *\n * @param {MarketplaceApi} api - The Marketplace API instance providing configuration and request handling.\n */\n constructor(api: MarketplaceApi) {\n this.endpoint = api.endpoint + \"/reviews\";\n this.axios = api.axios;\n this.headers = api.headers;\n }\n\n /**\n * Retrieves details of a specific review.\n *\n * @template P\n * @param {P & ReviewsShowParameter} params - Parameters identifying the review.\n * @returns {Promise<AxiosResponse<ReviewsResponse<'show', P>>>} - A promise resolving to the review details.\n *\n * @example\n * const response = await sdk.reviews.show({ id: 'review-id' });\n * const review = response.data;\n */\n async show<P extends ReviewsShowParameter>(\n params: P\n ): Promise<AxiosResponse<ReviewsResponse<\"show\", P>>> {\n return this.axios.get<ReviewsResponse<\"show\", P>>(`${this.endpoint}/show`, {\n headers: this.headers,\n params,\n });\n }\n\n /**\n * Queries reviews based on specified filters.\n *\n * @template P\n * @param {P & ReviewsQueryParameter} params - Query parameters to filter reviews.\n * @returns {Promise<AxiosResponse<ReviewsResponse<'query', P>>>} - A promise resolving to the query results.\n *\n * @example\n * const response = await sdk.reviews.query({ listingId: 'listing-id', perPage: 10 });\n * const reviews = response.data;\n */\n async query<P extends ReviewsQueryParameter>(\n params: P\n ): Promise<AxiosResponse<ReviewsResponse<\"query\", P>>> {\n return this.axios.get<ReviewsResponse<\"query\", P>>(\n `${this.endpoint}/query`,\n {\n headers: this.headers,\n params,\n }\n );\n }\n}\n\nexport default Reviews;\n","/**\n * @fileoverview Provides the Stock class for managing stock levels in the Sharetribe Marketplace API.\n * This class includes methods for comparing and setting stock levels.\n *\n * For more details, refer to the Marketplace API documentation:\n * https://www.sharetribe.com/api-reference/marketplace.html#stock\n */\n\nimport { AxiosInstance, AxiosResponse } from \"axios\";\nimport MarketplaceApi from \"./index\";\nimport {\n StockCompareAndSetParameter,\n StockResponse,\n} from \"../../types/marketplace/stock\";\nimport { ExtraParameter } from \"../../types/sharetribe\";\n\n/**\n * Class representing the Stock API.\n *\n * The Stock API provides methods for comparing and setting stock levels for marketplace resources.\n */\nclass Stock {\n private readonly endpoint: string;\n private readonly axios: AxiosInstance;\n public readonly authRequired = true;\n\n /**\n * Creates an instance of the Stock class.\n *\n * @param {MarketplaceApi} api - The Marketplace API instance providing configuration and request handling.\n */\n constructor(api: MarketplaceApi) {\n this.endpoint = api.endpoint + \"/stock\";\n this.axios = api.axios;\n }\n\n /**\n * Compares and sets stock levels for a specific resource.\n *\n * @template P\n * @template EP\n * @param {P & StockCompareAndSetParameter} params - Parameters for comparing and setting stock levels.\n * @param {EP} extraParams - Optional extra parameters for the request.\n * @returns {Promise<AxiosResponse<StockResponse<'compareAndSet', EP>>>} - A promise resolving to the result of the stock comparison and update.\n *\n * @example\n * const response = await sdk.stock.compareAndSet({\n * listingId: 'listing-1',\n * oldTotal: 10,\n * newTotal: 100\n * });\n * const stockUpdateResult = response.data;\n */\n async compareAndSet<\n P extends StockCompareAndSetParameter,\n EP extends ExtraParameter\n >(\n params: P,\n extraParams: EP | void = {} as EP\n ): Promise<AxiosResponse<StockResponse<\"compareAndSet\", EP>>> {\n return this.axios.post<StockResponse<\"compareAndSet\", EP>>(\n `${this.endpoint}/compare_and_set`,\n { ...params, ...extraParams }\n );\n }\n}\n\nexport default Stock;\n","/**\n * @fileoverview Provides the StockAdjustments class for managing stock adjustments in the Sharetribe Marketplace API.\n * This class includes methods for querying and creating stock adjustments.\n *\n * For more details, refer to the Marketplace API documentation:\n * https://www.sharetribe.com/api-reference/marketplace.html#stock-adjustments\n */\n\nimport { AxiosInstance, AxiosResponse } from \"axios\";\nimport MarketplaceApi from \"./index\";\nimport {\n StockAdjustmentsCreateParameter,\n StockAdjustmentsQueryParameter,\n StockAdjustmentsResponse,\n} from \"../../types/marketplace/stockAdjustment\";\nimport { ExtraParameter } from \"../../types/sharetribe\";\n\n/**\n * Class representing the Stock Adjustments API.\n *\n * The Stock Adjustments API provides methods for querying and creating adjustments to stock levels.\n */\nclass StockAdjustments {\n private readonly endpoint: string;\n private readonly axios: AxiosInstance;\n private readonly headers: Record<string, string>;\n public readonly authRequired = true;\n\n /**\n * Creates an instance of the StockAdjustments class.\n *\n * @param {MarketplaceApi} api - The Marketplace API instance providing configuration and request handling.\n */\n constructor(api: MarketplaceApi) {\n this.endpoint = api.endpoint + \"/stock_adjustments\";\n this.axios = api.axios;\n this.headers = api.headers;\n }\n\n /**\n * Queries stock adjustments based on specified filters.\n *\n * @template P\n * @param {P & StockAdjustmentsQueryParameter} params - Query parameters to filter stock adjustments.\n * @returns {Promise<AxiosResponse<StockAdjustmentsResponse<'query', P>>>} - A promise resolving to the query results.\n *\n * @example\n * const response = await sdk.stockAdjustments.query({\n * listingId: 'listing-id',\n * start: new Date('2022-01-01'),\n * end: new Date('2022-01-31'),\n * });\n * const stockAdjustments = response.data;\n */\n async query<P extends StockAdjustmentsQueryParameter>(\n params: P\n ): Promise<AxiosResponse<StockAdjustmentsResponse<\"query\", P>>> {\n return this.axios.get<StockAdjustmentsResponse<\"query\", P>>(\n `${this.endpoint}/query`,\n {\n headers: this.headers,\n params,\n }\n );\n }\n\n /**\n * Creates a stock adjustment for a specific resource.\n *\n * @template P\n * @template EP\n * @param {P & StockAdjustmentsCreateParameter} params - Parameters for the stock adjustment.\n * @param {EP | void} extraParams - Optional extra parameters for the request.\n * @returns {Promise<AxiosResponse<StockAdjustmentsResponse<'create', P, EP>>>} - A promise resolving to the created stock adjustment details.\n *\n * @example\n * const response = await sdk.stockAdjustments.create({\n * listingId: 'listing-id',\n * quantity: 5,\n * });\n * const createdAdjustment = response.data;\n */\n async create<\n P extends StockAdjustmentsCreateParameter,\n EP extends ExtraParameter | undefined\n >(\n params: P,\n extraParams?: EP\n ): Promise<AxiosResponse<StockAdjustmentsResponse<\"create\", P, EP>>> {\n return this.axios.post<StockAdjustmentsResponse<\"create\", P, EP>>(\n `${this.endpoint}/create`,\n { ...params, ...extraParams },\n { headers: this.headers }\n );\n }\n}\n\nexport default StockAdjustments;\n","/**\n * @fileoverview Provides the StripeAccount class for managing Stripe accounts in the Sharetribe Marketplace API.\n * This class includes methods for fetching, creating, and updating Stripe accounts.\n *\n * For more details, refer to the Marketplace API documentation:\n * https://www.sharetribe.com/api-reference/marketplace.html#stripe-account\n */\n\nimport { AxiosInstance, AxiosResponse } from \"axios\";\nimport MarketplaceApi from \"./index\";\nimport {\n StripeAccountCreateParameter,\n StripeAccountResponse,\n StripeAccountUpdateParameter,\n} from \"../../types/marketplace/stripeAccount\";\nimport { ExtraParameter } from \"../../types/sharetribe\";\n\n/**\n * Class representing the Stripe Account API.\n *\n * The Stripe Account API provides methods for managing Stripe accounts associated with the marketplace.\n */\nclass StripeAccount {\n private readonly endpoint: string;\n private readonly axios: AxiosInstance;\n private readonly headers: Record<string, string>;\n public readonly authRequired = true;\n\n /**\n * Creates an instance of the StripeAccount class.\n *\n * @param {MarketplaceApi} api - The Marketplace API instance providing configuration and request handling.\n */\n constructor(api: MarketplaceApi) {\n this.endpoint = api.endpoint + \"/stripe_account\";\n this.axios = api.axios;\n this.headers = api.headers;\n }\n\n /**\n * Fetches the current Stripe account details.\n *\n * @returns {Promise<AxiosResponse<StripeAccountResponse<'fetch'>>>} - A promise resolving to the Stripe account details.\n *\n * @example\n * const response = await sdk.stripeAccount.fetch();\n * const stripeAccountDetails = response.data;\n */\n async fetch(): Promise<AxiosResponse<StripeAccountResponse<\"fetch\">>> {\n return this.axios.get<StripeAccountResponse<\"fetch\">>(\n `${this.endpoint}/fetch`,\n {\n headers: this.headers,\n }\n );\n }\n\n /**\n * Creates a new Stripe account.\n *\n * @template P\n * @template EP\n * @param {P & StripeAccountCreateParameter} params - Parameters for creating the Stripe account.\n * @param {EP | void} extraParams - Optional extra parameters for the request.\n * @returns {Promise<AxiosResponse<StripeAccountResponse<'create', EP>>>} - A promise resolving to the created Stripe account details.\n *\n * @example\n * const response = await sdk.stripeAccount.create({\n * country: 'US',\n * accountToken: 'account-token',\n * bankAccountToken: 'bank-account-token',\n * businessProfileMCC: '1234',\n * businessProfileURL: 'https://example.com',\n * businessProfileProductDescription: 'Product description',\n * requestedCapabilities: ['card_payments', 'transfers'],\n * });\n * const createdStripeAccount = response.data;\n */\n async create<\n P extends StripeAccountCreateParameter,\n EP extends ExtraParameter\n >(\n params: P,\n extraParams?: EP\n ): Promise<AxiosResponse<StripeAccountResponse<\"create\", EP>>> {\n return this.axios.post<StripeAccountResponse<\"create\", EP>>(\n `${this.endpoint}/create`,\n { ...params, ...extraParams },\n { headers: this.headers }\n );\n }\n\n /**\n * Updates an existing Stripe account.\n *\n * @template P\n * @template EP\n * @param {P & StripeAccountUpdateParameter} params - Parameters for updating the Stripe account.\n * @param {EP | void} extraParams - Optional extra parameters for the request.\n * @returns {Promise<AxiosResponse<StripeAccountResponse<'update', EP>>>} - A promise resolving to the updated Stripe account details.\n *\n * @example\n * const response = await sdk.stripeAccount.update({\n * accountToken: 'new-account-token',\n * });\n * const updatedStripeAccount = response.data;\n */\n async update<\n P extends StripeAccountUpdateParameter,\n EP extends ExtraParameter\n >(\n params: P,\n extraParams?: EP\n ): Promise<AxiosResponse<StripeAccountResponse<\"update\", EP>>> {\n return this.axios.post<StripeAccountResponse<\"update\", EP>>(\n `${this.endpoint}/update`,\n { ...params, ...extraParams },\n { headers: this.headers }\n );\n }\n}\n\nexport default StripeAccount;\n","/**\n * @fileoverview Provides the StripeAccountLinks class for managing Stripe account links in the Sharetribe Marketplace API.\n * This class includes methods for creating account links to manage Stripe accounts.\n *\n * For more details, refer to the Marketplace API documentation:\n * https://www.sharetribe.com/api-reference/marketplace.html#stripe-account-links\n */\n\nimport { AxiosInstance, AxiosResponse } from \"axios\";\nimport MarketplaceApi from \"./index\";\nimport {\n StripeAccountLinksCreateParameter,\n StripeAccountLinksResponse,\n} from \"../../types/marketplace/stripeAccountLinks\";\nimport { ExtraParameter } from \"../../types/sharetribe\";\n\n/**\n * Class representing the Stripe Account Links API.\n *\n * The Stripe Account Links API provides methods for creating links to manage Stripe accounts, such as onboarding links.\n */\nclass StripeAccountLinks {\n private readonly endpoint: string;\n private readonly axios: AxiosInstance;\n private readonly headers: Record<string, string>;\n public readonly authRequired = true;\n\n /**\n * Creates an instance of the StripeAccountLinks class.\n *\n * @param {MarketplaceApi} api - The Marketplace API instance providing configuration and request handling.\n */\n constructor(api: MarketplaceApi) {\n this.endpoint = api.endpoint + \"/stripe_account_links\";\n this.axios = api.axios;\n this.headers = api.headers;\n }\n\n /**\n * Creates a new Stripe account link.\n *\n * @template P\n * @template EP\n * @param {P & StripeAccountLinksCreateParameter} params - Parameters for creating the account link.\n * @param {EP | void} extraParams - Optional extra parameters for the request.\n * @returns {Promise<AxiosResponse<StripeAccountLinksResponse<'create', EP>>>} - A promise resolving to the created account link details.\n *\n * @example\n * const response = await sdk.stripeAccountLinks.create({\n * failureURL: 'https://example.com/failure',\n * successURL: 'https://example.com/success',\n * type: 'custom_account_verification',\n * collectionOptions: {\n * fields: ['currently_due', 'eventually_due'],\n * future_requirements: ['include', 'omit'],\n * },\n * });\n * const accountLink = response.data;\n */\n async create<\n P extends StripeAccountLinksCreateParameter,\n EP extends ExtraParameter\n >(\n params: P,\n extraParams?: EP\n ): Promise<AxiosResponse<StripeAccountLinksResponse<\"create\", EP>>> {\n return this.axios.post<StripeAccountLinksResponse<\"create\", EP>>(\n `${this.endpoint}/create`,\n { ...params, ...extraParams },\n { headers: this.headers }\n );\n }\n}\n\nexport default StripeAccountLinks;\n","/**\n * @fileoverview Provides the StripeCustomer class for managing Stripe customers in the Sharetribe Marketplace API.\n * This class includes methods for creating customers, adding payment methods, and deleting payment methods.\n *\n * For more details, refer to the Marketplace API documentation:\n * https://www.sharetribe.com/api-reference/marketplace.html#stripe-customer\n */\n\nimport { AxiosInstance, AxiosResponse } from \"axios\";\nimport MarketplaceApi from \"./index\";\nimport {\n StripeCustomerAddPaymentMethodParameter,\n StripeCustomerCreateParameter,\n StripeCustomerDeletePaymentMethodParameter,\n StripeCustomerResponse,\n} from \"../../types/marketplace/stripeCustomer\";\nimport { ExtraParameter } from \"../../types/sharetribe\";\n\n/**\n * Class representing the Stripe Customer API.\n *\n * The Stripe Customer API provides methods for managing Stripe customers, including creating customers and managing payment methods.\n */\nclass StripeCustomer {\n private readonly endpoint: string;\n private readonly axios: AxiosInstance;\n private readonly headers: Record<string, string>;\n public readonly authRequired = true;\n\n /**\n * Creates an instance of the StripeCustomer class.\n *\n * @param {MarketplaceApi} api - The Marketplace API instance providing configuration and request handling.\n */\n constructor(api: MarketplaceApi) {\n this.endpoint = api.endpoint + \"/stripe_customer\";\n this.axios = api.axios;\n this.headers = api.headers;\n }\n\n /**\n * Creates a new Stripe customer.\n *\n * @template P\n * @template EP\n * @param {P & StripeCustomerCreateParameter} params - Parameters for creating the Stripe customer.\n * @param {EP | void} extraParams - Optional extra parameters for the request.\n * @returns {Promise<AxiosResponse<StripeCustomerResponse<'create', P, EP>>>} - A promise resolving to the created customer details.\n *\n * @example\n * const response = await sdk.stripeCustomer.create({\n * stripePaymentMethodId: 'payment-method-id',\n * stripeCustomerEmail: 'user@example.com'\n * });\n * const customer = response.data;\n */\n async create<\n P extends StripeCustomerCreateParameter,\n EP extends ExtraParameter\n >(\n params: P,\n extraParams?: EP\n ): Promise<AxiosResponse<StripeCustomerResponse<\"create\", P, EP>>> {\n return this.axios.post<StripeCustomerResponse<\"create\", P, EP>>(\n `${this.endpoint}/create`,\n { ...params, ...extraParams },\n { headers: this.headers }\n );\n }\n\n /**\n * Adds a payment method to a Stripe customer.\n *\n * @template P\n * @template EP\n * @param {P & StripeCustomerAddPaymentMethodParameter} params - Parameters for adding a payment method.\n * @param {EP | void} extraParams - Optional extra parameters for the request.\n * @returns {Promise<AxiosResponse<StripeCustomerResponse<'addPaymentMethod', P, EP>>>} - A promise resolving to the updated customer details.\n *\n * @example\n * const response = await sdk.stripeCustomer.addPaymentMethod({\n * stripePaymentMethodId: 'payment-method-id'\n * });\n * const updatedCustomer = response.data;\n */\n async addPaymentMethod<\n P extends StripeCustomerAddPaymentMethodParameter,\n EP extends ExtraParameter\n >(\n params: P,\n extraParams?: EP\n ): Promise<AxiosResponse<StripeCustomerResponse<\"addPaymentMethod\", P, EP>>> {\n return this.axios.post<StripeCustomerResponse<\"addPaymentMethod\", P, EP>>(\n `${this.endpoint}/add_payment_method`,\n { ...params, ...extraParams },\n { headers: this.headers }\n );\n }\n\n /**\n * Deletes a payment method from a Stripe customer.\n *\n * @template P\n * @template EP\n * @param {P & StripeCustomerDeletePaymentMethodParameter} params - Parameters for deleting the payment method.\n * @param {EP | void} extraParams - Optional extra parameters for the request.\n * @returns {Promise<AxiosResponse<StripeCustomerResponse<'deletePaymentMethod', P>>>} - A promise resolving to the confirmation of deletion.\n *\n * @example\n * const response = await sdk.stripeCustomer.deletePaymentMethod({ customer_id: 'customer-id', payment_method_id: 'payment-method-id' });\n * const result = response.data;\n */\n async deletePaymentMethod<\n P extends StripeCustomerDeletePaymentMethodParameter,\n EP extends ExtraParameter\n >(\n params: P,\n extraParams?: EP\n ): Promise<\n AxiosResponse<StripeCustomerResponse<\"deletePaymentMethod\", P, EP>>\n > {\n return this.axios.post<\n StripeCustomerResponse<\"deletePaymentMethod\", P, EP>\n >(\n `${this.endpoint}/delete_payment_method`,\n { ...params, ...extraParams },\n { headers: this.headers }\n );\n }\n}\n\nexport default StripeCustomer;\n","/**\n * @fileoverview Provides the StripePersons class for managing Stripe persons in the Sharetribe Marketplace API.\n * This class includes methods for creating persons associated with Stripe accounts.\n *\n * For more details, refer to the Marketplace API documentation:\n * https://www.sharetribe.com/api-reference/marketplace.html#stripe-persons\n */\n\nimport { AxiosInstance, AxiosResponse } from \"axios\";\nimport MarketplaceApi from \"./index\";\nimport {\n StripePersonsCreateParameter,\n StripePersonsResponse,\n} from \"../../types/marketplace/stripePersons\";\nimport { ExtraParameter } from \"../../types/sharetribe\";\n\n/**\n * Class representing the Stripe Persons API.\n *\n * The Stripe Persons API provides methods for creating persons associated with Stripe accounts, used for compliance and verification purposes.\n */\nclass StripePersons {\n private readonly endpoint: string;\n private readonly axios: AxiosInstance;\n private readonly headers: Record<string, string>;\n public readonly authRequired = true;\n\n /**\n * Creates an instance of the StripePersons class.\n *\n * @param {MarketplaceApi} api - The Marketplace API instance providing configuration and request handling.\n */\n constructor(api: MarketplaceApi) {\n this.endpoint = api.endpoint + \"/stripe_persons\";\n this.axios = api.axios;\n this.headers = api.headers;\n }\n\n /**\n * Creates a new person for a Stripe account.\n *\n * @template P\n * @template EP\n * @param {P & StripePersonsCreateParameter} params - Parameters for creating the Stripe person.\n * @param {EP | void} extraParams - Optional extra parameters for the request.\n * @returns {Promise<AxiosResponse<StripePersonsResponse<'create'>>>} - A promise resolving to the created person details.\n *\n * @example\n * const response = await sdk.stripePersons.create({\n * personToken: 'person-token',\n * });\n * const personDetails = response.data;\n */\n async create<\n P extends StripePersonsCreateParameter,\n EP extends ExtraParameter\n >(\n params: P,\n extraParams?: EP\n ): Promise<AxiosResponse<StripePersonsResponse<\"create\">>> {\n return this.axios.post<StripePersonsResponse<\"create\">>(\n `${this.endpoint}/create`,\n { ...params, ...extraParams },\n { headers: this.headers }\n );\n }\n}\n\nexport default StripePersons;\n","/**\n * @fileoverview Provides the StripeSetupIntents class for managing Stripe Setup Intents in the Sharetribe Marketplace API.\n * This class includes methods for creating Stripe Setup Intents to set up payment methods for future use.\n *\n * For more details, refer to the Marketplace API documentation:\n * https://www.sharetribe.com/api-reference/marketplace.html#create-stripe-person\n */\n\nimport { AxiosInstance, AxiosResponse } from \"axios\";\nimport MarketplaceApi from \"./index\";\nimport {\n StripeSetupIntentsCreateParameter,\n StripeSetupIntentsResponse,\n} from \"../../types/marketplace/stripeSetupIntents\";\nimport { ExtraParameter } from \"../../types/sharetribe\";\n\n/**\n * Class representing the Stripe Setup Intents API.\n *\n * The Stripe Setup Intents API provides methods to securely create Setup Intents for Stripe payments.\n */\nclass StripeSetupIntents {\n private readonly endpoint: string;\n private readonly axios: AxiosInstance;\n public readonly authRequired = true;\n\n /**\n * Creates an instance of the StripeSetupIntents class.\n *\n * @param {MarketplaceApi} api - The Marketplace API instance providing configuration and request handling.\n */\n constructor(api: MarketplaceApi) {\n this.endpoint = api.endpoint + \"/stripe_setup_intents\";\n this.axios = api.axios;\n }\n\n /**\n * Creates a new Stripe Setup Intent.\n *\n * @template P\n * @template EP\n * @param {P & StripeSetupIntentsCreateParameter} params - Parameters required to create the Stripe Setup Intent.\n * @param {EP | void} extraParams - Optional extra parameters for the request.\n * @returns {Promise<AxiosResponse<StripeSetupIntentsResponse<'create'>>>} - A promise resolving to the created Setup Intent details.\n *\n * @example\n * const response = await sdk.stripeSetupIntents.create({});\n * const setupIntentDetails = response.data;\n */\n async create<\n P extends StripeSetupIntentsCreateParameter,\n EP extends ExtraParameter\n >(\n params: P,\n extraParams?: EP\n ): Promise<AxiosResponse<StripeSetupIntentsResponse<\"create\">>> {\n return this.axios.post<StripeSetupIntentsResponse<\"create\">>(\n `${this.endpoint}/create`,\n { ...params, ...extraParams }\n );\n }\n}\n\nexport default StripeSetupIntents;\n","/**\n * @fileoverview Provides the TimeSlots class for managing time slots in the Sharetribe Marketplace API.\n * This class includes methods for querying available time slots for marketplace resources.\n *\n * For more details, refer to the Marketplace API documentation:\n * https://www.sharetribe.com/api-reference/marketplace.html#time-slots\n */\n\nimport { AxiosInstance, AxiosResponse } from \"axios\";\nimport MarketplaceApi from \"./index\";\nimport {\n TimeSlotsQueryParameter,\n TimeSlotsResponse,\n} from \"../../types/marketplace/timeSlots\";\n\n/**\n * Class representing the Time Slots API.\n *\n * The Time Slots API provides methods for querying available time slots for bookings.\n */\nclass TimeSlots {\n private readonly endpoint: string;\n private readonly axios: AxiosInstance;\n private readonly headers: Record<string, string>;\n\n /**\n * Creates an instance of the TimeSlots class.\n *\n * @param {MarketplaceApi} api - The Marketplace API instance providing configuration and request handling.\n */\n constructor(api: MarketplaceApi) {\n this.endpoint = api.endpoint + \"/timeslots\";\n this.axios = api.axios;\n this.headers = api.headers;\n }\n\n /**\n * Queries available time slots based on specified filters.\n *\n * @template P\n * @param {P & TimeSlotsQueryParameter} params - Query parameters for filtering time slots.\n * @returns {Promise<AxiosResponse<TimeSlotsResponse<'query'>>>} - A promise resolving to the query results.\n *\n * @example\n * const response = await sdk.timeSlots.query({\n * listingId: 'listing-id',\n * start: '2024-01-01T00:00:00Z',\n * end: '2024-01-07T23:59:59Z',\n * });\n * const timeSlots = response.data;\n */\n async query<P extends TimeSlotsQueryParameter>(\n params: P\n ): Promise<AxiosResponse<TimeSlotsResponse<\"query\">>> {\n return this.axios.get<TimeSlotsResponse<\"query\">>(\n `${this.endpoint}/query`,\n {\n headers: this.headers,\n params,\n }\n );\n }\n}\n\nexport default TimeSlots;\n","/**\n * @fileoverview Provides the Transactions class for managing transactions in the Sharetribe Marketplace API.\n * This class includes methods for querying, initiating, transitioning, and managing transactions.\n *\n * For more details, refer to the Marketplace API documentation:\n * https://www.sharetribe.com/api-reference/marketplace.html#transactions\n */\n\nimport { AxiosInstance, AxiosResponse } from \"axios\";\nimport MarketplaceApi from \"./index\";\nimport {\n TransactionsInitiateParameter,\n TransactionsInitiateSpeculativeParameter,\n TransactionsQueryParameter,\n TransactionsResponse,\n TransactionsShowParameter,\n TransactionsTransitionParameter,\n TransactionsTransitionSpeculativeParameter,\n} from \"../../types/marketplace/transactions\";\nimport { ExtraParameter } from \"../../types/sharetribe\";\n\n/**\n * Class representing the Transactions API.\n *\n * The Transactions API provides methods for managing marketplace transactions, including querying, initiating, and transitioning them.\n */\nclass Transactions {\n private readonly endpoint: string;\n private readonly axios: AxiosInstance;\n private readonly headers: Record<string, string>;\n public readonly authRequired = true;\n\n /**\n * Creates an instance of the Transactions class.\n *\n * @param {MarketplaceApi} api - The Marketplace API instance providing configuration and request handling.\n */\n constructor(api: MarketplaceApi) {\n this.endpoint = api.endpoint + \"/transactions\";\n this.axios = api.axios;\n this.headers = api.headers;\n }\n\n /**\n * Retrieves details of a specific transaction.\n *\n * @template P\n * @param {P & TransactionsShowParameter} params - Parameters to identify the transaction.\n * @returns {Promise<AxiosResponse<TransactionsResponse<'show', P>>>} - A promise resolving to the transaction details.\n *\n * @example\n * const response = await sdk.transactions.show({ id: 'transaction-id' });\n * const transactionDetails = response.data;\n */\n async show<P extends TransactionsShowParameter>(\n params: P\n ): Promise<AxiosResponse<TransactionsResponse<\"show\", P>>> {\n return this.axios.get<TransactionsResponse<\"show\", P>>(\n `${this.endpoint}/show`,\n {\n headers: this.headers,\n params,\n }\n );\n }\n\n /**\n * Queries transactions based on specified filters.\n *\n * @template P\n * @param {P & TransactionsQueryParameter} params - Query parameters for filtering transactions.\n * @returns {Promise<AxiosResponse<TransactionsResponse<'query', P>>>} - A promise resolving to the query results.\n *\n * @example\n * const response = await sdk.transactions.query({ perPage: 10 });\n * const transactions = response.data;\n */\n async query<P extends TransactionsQueryParameter>(\n params: P\n ): Promise<AxiosResponse<TransactionsResponse<\"query\", P>>> {\n return this.axios.get<TransactionsResponse<\"query\", P>>(\n `${this.endpoint}/query`,\n {\n headers: this.headers,\n params,\n }\n );\n }\n\n /**\n * Initiates a new transaction.\n *\n * @template P\n * @template EP\n * @param {P & TransactionsInitiateParameter} params - Parameters for initiating the transaction.\n * @param {EP | void} extraParams - Optional extra parameters for the request.\n * @returns {Promise<AxiosResponse<TransactionsResponse<'initiate', P, EP>>>} - A promise resolving to the initiated transaction details.\n *\n * @example\n * const response = await sdk.transactions.initiate({\n * processAlias: 'order',\n * transition: 'start',\n * params: {}\n * });\n * const initiatedTransaction = response.data;\n */\n async initiate<\n P extends TransactionsInitiateParameter,\n EP extends ExtraParameter\n >(\n params: P,\n extraParams?: EP\n ): Promise<AxiosResponse<TransactionsResponse<\"initiate\", P, EP>>> {\n return this.axios.post<TransactionsResponse<\"initiate\", P, EP>>(\n `${this.endpoint}/initiate`,\n { ...params, ...extraParams },\n { headers: this.headers }\n );\n }\n\n /**\n * Initiates a speculative transaction.\n *\n * @template P\n * @template EP\n * @param {P & TransactionsInitiateSpeculativeParameter} params - Parameters for the speculative transaction initiation.\n * @param {EP | void} extraParams - Optional extra parameters for the request.\n * @returns {Promise<AxiosResponse<TransactionsResponse<'initiateSpeculative', P, EP>>>} - A promise resolving to the speculative transaction details.\n *\n * @example\n * const response = await sdk.transactions.initiateSpeculative({\n * processAlias: 'order',\n * transition: 'start',\n * params: {}\n * });\n * const speculativeTransaction = response.data;\n */\n async initiateSpeculative<\n P extends TransactionsInitiateSpeculativeParameter,\n EP extends ExtraParameter\n >(\n params: P,\n extraParams?: EP\n ): Promise<\n AxiosResponse<TransactionsResponse<\"initiateSpeculative\", P, EP>>\n > {\n return this.axios.post<TransactionsResponse<\"initiateSpeculative\", P, EP>>(\n `${this.endpoint}/initiate_speculative`,\n { ...params, ...extraParams },\n { headers: this.headers }\n );\n }\n\n /**\n * Transitions an existing transaction.\n *\n * @template P\n * @template EP\n * @param {P & TransactionsTransitionParameter} params - Parameters for transitioning the transaction.\n * @param {EP | void} extraParams - Optional extra parameters for the request.\n * @returns {Promise<AxiosResponse<TransactionsResponse<'transition', P, EP>>>} - A promise resolving to the transitioned transaction details.\n *\n * @example\n * const response = await sdk.transactions.transition({\n * id: 'transaction-id',\n * transition: 'complete',\n * params: { review: 5 }\n * });\n * const transitionedTransaction = response.data;\n */\n async transition<\n P extends TransactionsTransitionParameter,\n EP extends ExtraParameter\n >(\n params: P,\n extraParams?: EP\n ): Promise<AxiosResponse<TransactionsResponse<\"transition\", P, EP>>> {\n return this.axios.post<TransactionsResponse<\"transition\", P, EP>>(\n `${this.endpoint}/transition`,\n { ...params, ...extraParams },\n { headers: this.headers }\n );\n }\n\n /**\n * Transitions a speculative transaction.\n *\n * @template P\n * @template EP\n * @param {P & TransactionsTransitionSpeculativeParameter} params - Parameters for the speculative transaction transition.\n * @param {EP | void} extraParams - Optional extra parameters for the request.\n * @returns {Promise<AxiosResponse<TransactionsResponse<'transitionSpeculative', P, EP>>>} - A promise resolving to the speculative transitioned transaction details.\n *\n * @example\n * const response = await sdk.transactions.transitionSpeculative({\n * id: 'transaction-id',\n * transition: 'complete',\n * params: { review: 5 }\n * });\n * const speculativeTransitionedTransaction = response.data;\n */\n async transitionSpeculative<\n P extends TransactionsTransitionSpeculativeParameter,\n EP extends ExtraParameter\n >(\n params: P,\n extraParams?: EP\n ): Promise<\n AxiosResponse<TransactionsResponse<\"transitionSpeculative\", P, EP>>\n > {\n return this.axios.post<\n TransactionsResponse<\"transitionSpeculative\", P, EP>\n >(\n `${this.endpoint}/transition_speculative`,\n { ...params, ...extraParams },\n { headers: this.headers }\n );\n }\n}\n\nexport default Transactions;\n","/**\n * @fileoverview Provides the Users class for managing user data in the Sharetribe Marketplace API.\n * This class includes methods for retrieving details about a specific user.\n *\n * For more details, refer to the Marketplace API documentation:\n * https://www.sharetribe.com/api-reference/marketplace.html#show-user\n */\n\nimport { AxiosInstance, AxiosResponse } from \"axios\";\nimport MarketplaceApi from \"./index\";\nimport {\n UsersResponse,\n UsersShowParameter,\n} from \"../../types/marketplace/user\";\n\n/**\n * Class representing the Users API.\n *\n * The Users API provides methods for managing user data in the marketplace.\n */\nclass Users {\n private readonly endpoint: string;\n private readonly axios: AxiosInstance;\n private readonly headers: Record<string, string>;\n\n /**\n * Creates an instance of the Users class.\n *\n * @param {MarketplaceApi} api - The Marketplace API instance providing configuration and request handling.\n */\n constructor(api: MarketplaceApi) {\n this.endpoint = api.endpoint + \"/users\";\n this.axios = api.axios;\n this.headers = api.headers;\n }\n\n /**\n * Retrieves details of a specific user.\n *\n * @template P\n * @param {P & UsersShowParameter} params - Parameters to identify the user.\n * @returns {Promise<AxiosResponse<UsersResponse<'show', P>>>} - A promise resolving to the user details.\n *\n * @example\n * const response = await sdk.users.show({\n * id: 'user-id',\n * });\n * const userDetails = response.data;\n */\n async show<P extends UsersShowParameter>(\n params: P\n ): Promise<AxiosResponse<UsersResponse<\"show\", P>>> {\n return this.axios.get<UsersResponse<\"show\", P>>(`${this.endpoint}/show`, {\n headers: this.headers,\n params,\n });\n }\n}\n\nexport default Users;\n","/**\n * @fileoverview Provides the MarketplaceApi class for accessing all available endpoints in the Sharetribe Marketplace API.\n * This class serves as the entry point for interacting with various resources such as listings, bookings, users, and payments.\n *\n * For more details, refer to the Marketplace API documentation:\n * https://www.sharetribe.com/api-reference/marketplace.html\n */\n\nimport SharetribeSdk from \"../../sdk\";\nimport { AxiosInstance } from \"axios\";\nimport AvailabilityExceptions from \"./AvailabilityExceptions\";\nimport Listings from \"./Listings\";\nimport Bookings from \"./Bookings\";\nimport CurrentUser from \"./CurrentUser\";\nimport Images from \"./Images\";\nimport Marketplace from \"./Marketplace\";\nimport Messages from \"./Messages\";\nimport OwnListings from \"./OwnListings\";\nimport PasswordReset from \"./PasswordReset\";\nimport ProcessTransitions from \"./ProcessTransitions\";\nimport Reviews from \"./Reviews\";\nimport Stock from \"./Stock\";\nimport StockAdjustments from \"./StockAdjustments\";\nimport StripeAccount from \"./StripeAccount\";\nimport StripeAccountLinks from \"./StripeAccountLinks\";\nimport StripeCustomer from \"./StripeCustomer\";\nimport StripePersons from \"./StripePersons\";\nimport StripeSetupIntents from \"./StripeSetupIntents\";\nimport TimeSlots from \"./TimeSlots\";\nimport Transactions from \"./Transactions\";\nimport Users from \"./Users\";\n\n/**\n * Class representing the Sharetribe Marketplace API.\n *\n * This class provides access to all available endpoints in the Sharetribe Marketplace API, enabling operations such as managing listings,\n * handling transactions, updating user profiles, and integrating with Stripe.\n */\nclass MarketplaceApi {\n axios: AxiosInstance;\n endpoint: string;\n headers: Record<string, string>;\n authRequired: boolean;\n\n // API Endpoints\n availabilityExceptions: AvailabilityExceptions;\n bookings: Bookings;\n currentUser: CurrentUser;\n images: Images;\n listings: Listings;\n marketplace: Marketplace;\n messages: Messages;\n ownListings: OwnListings;\n passwordReset: PasswordReset;\n processTransitions: ProcessTransitions;\n reviews: Reviews;\n stock: Stock;\n stockAdjustments: StockAdjustments;\n stripeAccount: StripeAccount;\n stripeAccountLinks: StripeAccountLinks;\n stripeCustomer: StripeCustomer;\n stripePersons: StripePersons;\n stripeSetupIntents: StripeSetupIntents;\n timeslots: TimeSlots;\n transactions: Transactions;\n users: Users;\n\n /**\n * Creates an instance of the MarketplaceApi class.\n *\n * @param {SharetribeSdk} sdk - The Sharetribe SDK instance providing configuration and request handling.\n */\n constructor(sdk: SharetribeSdk) {\n const config = sdk.apisConfigs.api(sdk.sdkConfig);\n this.endpoint = config.baseUrl;\n this.headers = config.headers;\n this.axios = sdk.axios;\n this.authRequired = false;\n\n // Initialize all API endpoints\n this.availabilityExceptions = new AvailabilityExceptions(this);\n this.bookings = new Bookings(this);\n this.currentUser = new CurrentUser(this);\n this.images = new Images(this);\n this.listings = new Listings(this);\n this.marketplace = new Marketplace(this);\n this.messages = new Messages(this);\n this.ownListings = new OwnListings(this);\n this.passwordReset = new PasswordReset(this);\n this.processTransitions = new ProcessTransitions(this);\n this.reviews = new Reviews(this);\n this.stock = new Stock(this);\n this.stockAdjustments = new StockAdjustments(this);\n this.stripeAccount = new StripeAccount(this);\n this.stripeAccountLinks = new StripeAccountLinks(this);\n this.stripeCustomer = new StripeCustomer(this);\n this.stripePersons = new StripePersons(this);\n this.stripeSetupIntents = new StripeSetupIntents(this);\n this.timeslots = new TimeSlots(this);\n this.transactions = new Transactions(this);\n this.users = new Users(this);\n }\n}\n\nexport default MarketplaceApi;\n","import { SdkConfig } from \"./types/config\";\nimport axios, { AxiosInstance } from \"axios\";\nimport { ApiConfigs } from \"./types/apiConfigs\";\nimport IntegrationApi from \"./endpoints/integrationApi\";\nimport { createApisConfigs } from \"./utils/apis\";\nimport {\n prepareAxiosInstance,\n createAxiosConfig,\n} from \"./utils/prepare-axios-instance\";\nimport AuthenticationApi from \"./endpoints/auth\";\nimport AvailabilityExceptions from \"./endpoints/integrationApi/AvailabilityExceptions\";\nimport Events from \"./endpoints/integrationApi/Events\";\nimport Images from \"./endpoints/integrationApi/Images\";\nimport Listings from \"./endpoints/integrationApi/Listings\";\nimport Marketplace from \"./endpoints/integrationApi/Marketplace\";\nimport Stock from \"./endpoints/integrationApi/Stock\";\nimport StockAdjustments from \"./endpoints/integrationApi/StockAdjustments\";\nimport StockReservation from \"./endpoints/integrationApi/StockReservation\";\nimport Transactions from \"./endpoints/integrationApi/Transactions\";\nimport Users from \"./endpoints/integrationApi/Users\";\nimport { DefaultSdkConfig } from \"./utils/config\";\n\n/**\n * The main Sharetribe Integration SDK for interacting with the Sharetribe Integration API.\n *\n * @class\n */\nclass IntegrationSdk {\n /**\n * Configuration for the SDK.\n *\n * @type {SdkConfig}\n */\n sdkConfig: SdkConfig;\n\n /**\n * Configuration for the API endpoints.\n *\n * @type {ApiConfigs<true>}\n */\n apisConfigs: ApiConfigs<true>;\n\n /**\n * Axios instance used for making API requests.\n *\n * @type {AxiosInstance}\n */\n axios: AxiosInstance;\n\n // Endpoints\n /**\n * Endpoint for handling authentication.\n *\n * @type {AuthenticationApi}\n */\n auth: AuthenticationApi;\n\n /**\n * Main integration API.\n *\n * @type {IntegrationApi}\n */\n integration_api: IntegrationApi;\n\n // API Endpoints\n /**\n * Endpoint for managing availability exceptions.\n *\n * @type {AvailabilityExceptions}\n */\n availabilityExceptions: AvailabilityExceptions;\n\n /**\n * Endpoint for retrieving and managing events.\n *\n * @type {Events}\n */\n events: Events;\n\n /**\n * Endpoint for handling image-related operations.\n *\n * @type {Images}\n */\n images: Images;\n\n /**\n * Endpoint for managing listings.\n *\n * @type {Listings}\n */\n listings: Listings;\n\n /**\n * Endpoint for accessing marketplace details.\n *\n * @type {Marketplace}\n */\n marketplace: Marketplace;\n\n /**\n * Endpoint for managing stock.\n *\n * @type {Stock}\n */\n stock: Stock;\n\n /**\n * Endpoint for handling stock adjustments.\n *\n * @type {StockAdjustments}\n */\n stockAdjustments: StockAdjustments;\n\n /**\n * Endpoint for managing stock reservations.\n *\n * @type {StockReservation}\n */\n stockReservations: StockReservation;\n\n /**\n * Endpoint for managing transactions.\n *\n * @type {Transactions}\n */\n transactions: Transactions;\n\n /**\n * Endpoint for managing user data.\n *\n * @type {Users}\n */\n users: Users;\n\n /**\n * Initializes a new instance of the SharetribeIntegrationSdk class.\n *\n * @constructor\n * @param {SdkConfig} config - The configuration object for the SDK.\n */\n constructor(config: SdkConfig) {\n this.sdkConfig = {\n ...DefaultSdkConfig,\n ...config,\n };\n\n this.apisConfigs = createApisConfigs(true);\n this.axios = axios.create(\n createAxiosConfig(this, {\n baseURL: `${this.sdkConfig.baseUrl}/${this.sdkConfig.version}/`,\n httpAgent: this.sdkConfig.httpAgent,\n httpsAgent: this.sdkConfig.httpsAgent,\n })\n );\n prepareAxiosInstance(this);\n\n this.auth = new AuthenticationApi(this);\n this.integration_api = new IntegrationApi(this);\n\n // Api Endpoints\n this.availabilityExceptions = this.integration_api.availabilityExceptions;\n this.events = this.integration_api.events;\n this.images = this.integration_api.images;\n this.listings = this.integration_api.listings;\n this.marketplace = this.integration_api.marketplace;\n this.stock = this.integration_api.stock;\n this.stockAdjustments = this.integration_api.stockAdjustments;\n this.stockReservations = this.integration_api.stockReservations;\n this.transactions = this.integration_api.transactions;\n this.users = this.integration_api.users;\n }\n}\n\nexport default IntegrationSdk;\n","import { SdkConfig } from \"./types/config\";\nimport { createApisConfigs } from \"./utils/apis\";\nimport { ApiConfigs } from \"./types/apiConfigs\";\nimport axios, { AxiosInstance, AxiosResponse } from \"axios\";\nimport AuthenticationApi from \"./endpoints/auth\";\nimport MarketplaceApi from \"./endpoints/marketplace\";\nimport {\n prepareAxiosInstance,\n createAxiosConfig,\n} from \"./utils/prepare-axios-instance\";\nimport Listings from \"./endpoints/marketplace/Listings\";\nimport AvailabilityExceptions from \"./endpoints/marketplace/AvailabilityExceptions\";\nimport Bookings from \"./endpoints/marketplace/Bookings\";\nimport CurrentUser from \"./endpoints/marketplace/CurrentUser\";\nimport Images from \"./endpoints/marketplace/Images\";\nimport Marketplace from \"./endpoints/marketplace/Marketplace\";\nimport Messages from \"./endpoints/marketplace/Messages\";\nimport OwnListings from \"./endpoints/marketplace/OwnListings\";\nimport PasswordReset from \"./endpoints/marketplace/PasswordReset\";\nimport ProcessTransitions from \"./endpoints/marketplace/ProcessTransitions\";\nimport Reviews from \"./endpoints/marketplace/Reviews\";\nimport Stock from \"./endpoints/marketplace/Stock\";\nimport StockAdjustments from \"./endpoints/marketplace/StockAdjustments\";\nimport StripeAccount from \"./endpoints/marketplace/StripeAccount\";\nimport StripeAccountLinks from \"./endpoints/marketplace/StripeAccountLinks\";\nimport StripeCustomer from \"./endpoints/marketplace/StripeCustomer\";\nimport StripePersons from \"./endpoints/marketplace/StripePersons\";\nimport StripeSetupIntents from \"./endpoints/marketplace/StripeSetupIntents\";\nimport TimeSlots from \"./endpoints/marketplace/TimeSlots\";\nimport Transactions from \"./endpoints/marketplace/Transactions\";\nimport Users from \"./endpoints/marketplace/Users\";\nimport {\n AuthInfoResponse,\n LoginParameter,\n LoginParameterType,\n LoginWithIdpParameter,\n RevokeResponse,\n Scope,\n TokenResponse,\n} from \"./types/authentication\";\nimport AssetsApi from \"./endpoints/assets\";\nimport { DefaultSdkConfig } from \"./utils/config\";\n\nclass SharetribeSdk {\n /**\n * The SDK configuration object.\n * @type {SdkConfig}\n */\n sdkConfig: SdkConfig;\n\n /**\n * The API configuration object.\n * @type {ApiConfigs}\n */\n apisConfigs: ApiConfigs;\n\n /**\n * Axios instance for making HTTP requests.\n * @type {AxiosInstance}\n */\n axios: AxiosInstance;\n\n /**\n * Endpoint for handling authentication.\n * @type {AuthenticationApi}\n */\n auth: AuthenticationApi;\n\n /**\n * Main marketplace API instance.\n * @type {MarketplaceApi}\n */\n api: MarketplaceApi;\n\n /**\n * Assets API instance for managing assets.\n * @type {AssetsApi}\n */\n assetsApi: AssetsApi;\n\n // API Endpoints\n\n /**\n * Endpoint for managing listings.\n * @type {Listings}\n */\n listings: Listings;\n\n /**\n * Endpoint for managing availability exceptions.\n * @type {AvailabilityExceptions}\n */\n availabilityExceptions: AvailabilityExceptions;\n\n /**\n * Endpoint for managing bookings.\n * @type {Bookings}\n * */\n bookings: Bookings;\n\n /**\n * Endpoint for managing the current user.\n * @type {CurrentUser}\n */\n currentUser: CurrentUser;\n\n /**\n * Endpoint for handling images.\n * @type {Images}\n */\n images: Images;\n\n /**\n * Endpoint for accessing marketplace details.\n * @type {Marketplace}\n */\n marketplace: Marketplace;\n\n /**\n * Endpoint for managing messages.\n * @type {Messages}\n */\n messages: Messages;\n\n /**\n * Endpoint for managing own listings.\n * @type {OwnListings} */\n ownListings: OwnListings;\n\n /**\n * Endpoint for managing password resets.\n * @type {PasswordReset} */\n passwordReset: PasswordReset;\n\n /**\n * Endpoint for managing process transitions.\n * @type {ProcessTransitions} */\n processTransitions: ProcessTransitions;\n\n /**\n * Endpoint for managing reviews.\n * @type {Reviews} */\n reviews: Reviews;\n\n /**\n * Endpoint for managing stock.\n * @type {Stock} */\n stock: Stock;\n\n /**\n * Endpoint for managing stock adjustments.\n * @type {StockAdjustments} */\n stockAdjustments: StockAdjustments;\n\n /**\n * Endpoint for managing stripe accounts.\n * @type {StripeAccount} */\n stripeAccount: StripeAccount;\n\n /**\n * Endpoint for managing stripe account links.\n * @type {StripeAccountLinks} */\n stripeAccountLinks: StripeAccountLinks;\n\n /**\n * Endpoint for managing stripe customers.\n * @type {StripeCustomer} */\n stripeCustomer: StripeCustomer;\n\n /**\n * Endpoint for managing stripe persons.\n * @type {StripePersons} */\n stripePersons: StripePersons;\n\n /**\n * Endpoint for managing stripe setup intents.\n * @type {StripeSetupIntents} */\n stripeSetupIntents: StripeSetupIntents;\n\n /**\n * Endpoint for managing timeslots.\n * @type {TimeSlots} */\n timeslots: TimeSlots;\n\n /**\n * Endpoint for managing transactions.\n * @type {Transactions} */\n transactions: Transactions;\n\n /**\n * Endpoint for managing users.\n * @type {Users} */\n users: Users;\n\n // Asset Endpoints\n\n /** @type {AssetsApi['assetByAlias']} */\n assetByAlias: AssetsApi[\"assetByAlias\"];\n\n /** @type {AssetsApi['assetsByAlias']} */\n assetsByAlias: AssetsApi[\"assetsByAlias\"];\n\n /** @type {AssetsApi['assetByVersion']} */\n assetByVersion: AssetsApi[\"assetByVersion\"];\n\n /** @type {AssetsApi['assetsByVersion']} */\n assetsByVersion: AssetsApi[\"assetsByVersion\"];\n\n /**\n * Creates an instance of the Sharetribe SDK.\n *\n * @constructor\n * @param {SdkConfig} config - The configuration object for the SDK.\n */\n constructor(config: SdkConfig) {\n this.sdkConfig = {\n ...DefaultSdkConfig,\n ...config,\n };\n\n this.apisConfigs = createApisConfigs();\n this.axios = axios.create(\n createAxiosConfig(this, {\n baseURL: `${this.sdkConfig.baseUrl}/${this.sdkConfig.version}/`,\n httpAgent: this.sdkConfig.httpAgent,\n httpsAgent: this.sdkConfig.httpsAgent,\n })\n );\n prepareAxiosInstance(this);\n\n this.auth = new AuthenticationApi(this);\n this.api = new MarketplaceApi(this);\n this.assetsApi = new AssetsApi(this);\n\n // Api Endpoints\n this.availabilityExceptions = this.api.availabilityExceptions;\n this.bookings = this.api.bookings;\n this.currentUser = this.api.currentUser;\n this.images = this.api.images;\n this.listings = this.api.listings;\n this.marketplace = this.api.marketplace;\n this.messages = this.api.messages;\n this.ownListings = this.api.ownListings;\n this.passwordReset = this.api.passwordReset;\n this.processTransitions = this.api.processTransitions;\n this.reviews = this.api.reviews;\n this.stock = this.api.stock;\n this.stockAdjustments = this.api.stockAdjustments;\n this.stripeAccount = this.api.stripeAccount;\n this.stripeAccountLinks = this.api.stripeAccountLinks;\n this.stripeCustomer = this.api.stripeCustomer;\n this.stripePersons = this.api.stripePersons;\n this.stripeSetupIntents = this.api.stripeSetupIntents;\n this.timeslots = this.api.timeslots;\n this.transactions = this.api.transactions;\n this.users = this.api.users;\n\n // Asset Endpoints\n this.assetByAlias = this.assetsApi.assetByAlias;\n this.assetsByAlias = this.assetsApi.assetsByAlias;\n this.assetByVersion = this.assetsApi.assetByVersion;\n this.assetsByVersion = this.assetsApi.assetsByVersion;\n }\n\n /**\n * Logs in a user using their credentials.\n *\n * @async\n * @param {LoginParameter} params - The login parameters.\n * @returns {Promise<AuthToken>} - The authentication token.\n */\n async login<T extends LoginParameterType>(\n params: LoginParameter<T>\n ): Promise<AxiosResponse<TokenResponse<\"user\">>> {\n return this.auth.token<\"user\">({\n client_id: this.sdkConfig.clientId,\n scope: \"user\",\n grant_type: \"code\" in params ? \"authorization_code\" : \"password\",\n ...params,\n });\n }\n\n /**\n * Logs in the marketplace operator as the marketplace user and returns a Promise\n *\n * @async\n * @param {LoginAsParameter} params - The login parameters.\n * @returns {Promise<AuthToken>} - The authentication token.\n */\n async loginAs(\n params: LoginParameter<\"auth_code\">\n ): Promise<AxiosResponse<TokenResponse<\"user\">>> {\n return this.auth.token<\"user\">({\n client_id: this.sdkConfig.clientId,\n grant_type: \"authorization_code\",\n scope: \"user\",\n ...params,\n });\n }\n\n /**\n * Logs in a user using an identity provider (IDP).\n *\n * @async\n * @param {LoginWithIdpParameter} params - The IDP login parameters.\n * @returns {Promise<AuthToken>} - The authentication token.\n */\n async loginWithIdp(\n params: LoginWithIdpParameter\n ): Promise<AxiosResponse<TokenResponse<\"user\">>> {\n if (this.sdkConfig.clientSecret === undefined) {\n throw new Error(\"clientSecret is required to login with idp\");\n }\n return this.auth.authWithIdp({\n client_id: this.sdkConfig.clientId,\n client_secret: this.sdkConfig.clientSecret!,\n ...params,\n });\n }\n\n /**\n * Logs out the current user.\n *\n * @async\n * @returns {Promise<void>} - Resolves when the user is logged out.\n */\n async logout(): Promise<AxiosResponse<RevokeResponse>> {\n const { access_token } = (await this.sdkConfig.tokenStore!.getToken())!;\n return this.auth.revoke(access_token);\n }\n\n /**\n * Exchanges the current token for a trusted user token.\n *\n * @async\n * @returns {Promise<AuthToken>} - The exchanged token.\n */\n async exchangeToken(): Promise<AxiosResponse<TokenResponse<\"trusted:user\">>> {\n const { access_token } = (await this.sdkConfig.tokenStore!.getToken())!;\n if (this.sdkConfig.clientSecret === undefined) {\n throw new Error(\"clientSecret is required to exchange token\");\n }\n return this.auth.token<\"trusted:user\">({\n client_id: this.sdkConfig.clientId,\n client_secret: this.sdkConfig.clientSecret!,\n grant_type: \"token_exchange\",\n scope: \"trusted:user\",\n subject_token: access_token,\n });\n }\n\n /**\n * Retrieves authentication info for the current user.\n *\n * @async\n * @returns {Promise<AuthInfoResponse>} - The authentication info.\n */\n async authInfo(): Promise<AuthInfoResponse> {\n const storedToken = await this.sdkConfig.tokenStore!.getToken();\n if (storedToken && storedToken.scope) {\n const tokenScope = storedToken.scope;\n const scopes = tokenScope.split(\" \") as Scope[];\n const isAnonymous = tokenScope === \"public-read\";\n\n const grantType = isAnonymous ? \"client_credentials\" : \"refresh_token\";\n\n return { scopes, isAnonymous, grantType };\n }\n\n return {};\n }\n}\n\nexport default SharetribeSdk;\n","/**\n * Class representing a high-precision decimal number.\n *\n * The BigDecimal class ensures that large decimal numbers are stored as strings\n * to avoid precision loss during computations.\n */\n\nimport { SdkType } from \"../types/sdk-types\";\n\n// Define a static class name\nconst BIGDECIMAL_SDK_TYPE = \"BigDecimal\";\n\nclass BigDecimal implements SdkType {\n value: string;\n readonly _sdkType: typeof BIGDECIMAL_SDK_TYPE;\n\n /**\n * Creates an instance of the BigDecimal class.\n *\n * @param {any} value - The value to be stored as a BigDecimal. It must be convertible to a string.\n * @example\n * const bigDecimal = new BigDecimal('123456789.123456789');\n */\n constructor(value: any) {\n this._sdkType = BIGDECIMAL_SDK_TYPE;\n\n if (typeof value !== \"string\") {\n console.warn(\n \"BigDecimal must be initialized with a string to ensure precision.\"\n );\n }\n // Convert the value to a string to maintain compatibility and precision.\n this.value = String(value);\n }\n\n /**\n * Converts the BigDecimal instance to a string representation.\n *\n * @returns {string} - The string representation of the BigDecimal.\n * @example\n * const bigDecimal = new BigDecimal('123456789.123456789');\n * console.log(bigDecimal.toString()); // Outputs: '123456789.123456789'\n */\n toString(): string {\n return `${this.value}`;\n }\n}\n\n// Default export for backward compatibility\nexport default BigDecimal;\n","/**\n * @fileoverview Provides the LatLng class for representing geographical coordinates.\n * This class encapsulates a latitude and longitude pair, with validation for numeric input.\n */\n\nimport { SdkType } from \"../types/sdk-types\";\n\n// Define a static class name\nconst LATLNG_SDK_TYPE = \"LatLng\";\n\n/**\n * Class representing a geographical coordinate pair (latitude and longitude).\n */\nclass LatLng implements SdkType {\n lat: number | string;\n lng: number | string;\n readonly _sdkType: typeof LATLNG_SDK_TYPE;\n\n /**\n * Creates an instance of the LatLng class.\n *\n * @param {string | number} lat - The latitude value. Must be a number or a string that represents a number.\n * @param {string | number} lng - The longitude value. Must be a number or a string that represents a number.\n * @example\n * const coordinates = new LatLng(37.7749, -122.4194);\n * console.log(coordinates.toString()); // Outputs: '37.7749,-122.4194'\n */\n constructor(lat: string | number, lng: string | number) {\n this._sdkType = LATLNG_SDK_TYPE;\n\n // Helper function to validate if a value is a number or a number-like string.\n const isNumberOrNumberString = (val: any): boolean => {\n if (typeof val === \"number\") return true;\n return typeof val === \"string\" && /^\\d+(\\.\\d+)?$/.test(val);\n };\n\n // Validate latitude.\n if (!isNumberOrNumberString(lat)) {\n console.warn(\n \"Latitude must be a number or a string that represents a number\"\n );\n }\n\n // Validate longitude.\n if (!isNumberOrNumberString(lng)) {\n console.warn(\n \"Longitude must be a number or a string that represents a number\"\n );\n }\n\n // Assign values to instance properties.\n this.lat = lat;\n this.lng = lng;\n }\n\n /**\n * Converts the LatLng instance to a string representation.\n *\n * @returns {string} - A string in the format \"latitude,longitude\".\n * @example\n * const coordinates = new LatLng(37.7749, -122.4194);\n * console.log(coordinates.toString()); // Outputs: '37.7749,-122.4194'\n */\n toString(): string {\n return `${this.lat},${this.lng}`;\n }\n}\n\n// Default export for backward compatibility\nexport default LatLng;\n","/**\n * @fileoverview Provides the LatLngBounds class for representing geographical bounding boxes.\n * This class encapsulates a northeast (NE) and southwest (SW) pair of coordinates to define a rectangular area.\n */\n\nimport LatLng from \"./LatLng\";\nimport { SdkType } from \"../types/sdk-types\";\n// Define a static class name\nconst LATLNGBOUNDS_SDK_TYPE = \"LatLngBounds\";\n\n/**\n * Class representing a geographical bounding box with NE and SW coordinates.\n */\nclass LatLngBounds implements SdkType {\n ne: LatLng | { lat: number | string; lng: number | string };\n sw: LatLng | { lat: number | string; lng: number | string };\n readonly _sdkType: typeof LATLNGBOUNDS_SDK_TYPE;\n\n /**\n * Creates an instance of the LatLngBounds class.\n *\n * @param {LatLng | { lat: number; lng: number }} ne - The northeast coordinate.\n * @param {LatLng | { lat: number; lng: number }} sw - The southwest coordinate.\n * @example\n * const ne = new LatLng(40.7128, -74.0060);\n * const sw = new LatLng(34.0522, -118.2437);\n * const bounds = new LatLngBounds(ne, sw);\n * console.log(bounds.toString()); // Outputs: '40.7128,-74.0060,34.0522,-118.2437'\n */\n constructor(\n ne: LatLng | { lat: number; lng: number },\n sw: LatLng | { lat: number; lng: number }\n ) {\n this._sdkType = LATLNGBOUNDS_SDK_TYPE;\n\n let isValid = true;\n\n // Helper function to check if a value is an object with numeric lat/lng.\n const isLatLngObject = (val: any): boolean =>\n val &&\n typeof val === \"object\" &&\n typeof val.lat === \"number\" &&\n typeof val.lng === \"number\";\n\n // Validate the northeast (NE) coordinate.\n let neLatLng: LatLng;\n if (ne instanceof LatLng) {\n neLatLng = ne;\n } else if (isLatLngObject(ne)) {\n neLatLng = new LatLng(ne.lat, ne.lng);\n } else {\n console.warn(\n \"Invalid 'ne' value. Must be an instance of LatLng or an object with lat and lng numbers.\"\n );\n isValid = false;\n neLatLng = new LatLng(Number(ne.lat), Number(ne.lng));\n }\n\n // Validate the southwest (SW) coordinate.\n let swLatLng: LatLng;\n if (sw instanceof LatLng) {\n swLatLng = sw;\n } else if (isLatLngObject(sw)) {\n swLatLng = new LatLng(sw.lat, sw.lng);\n } else {\n console.warn(\n \"Invalid 'sw' value. Must be an instance of LatLng or an object with lat and lng numbers.\"\n );\n isValid = false;\n swLatLng = new LatLng(Number(sw.lat), Number(sw.lng));\n }\n\n this.ne = neLatLng;\n this.sw = swLatLng;\n\n if (!isValid) {\n console.warn(\n \"LatLngBounds must be an object with valid NE and SW values.\"\n );\n }\n }\n\n /**\n * Converts the LatLngBounds instance to a string representation.\n *\n * @returns {string} - A string in the format \"NE_lat,NE_lng,SW_lat,SW_lng\".\n * @example\n * const ne = new LatLng(40.7128, -74.0060);\n * const sw = new LatLng(34.0522, -118.2437);\n * const bounds = new LatLngBounds(ne, sw);\n * console.log(bounds.toString()); // Outputs: '40.7128,-74.0060,34.0522,-118.2437'\n */\n toString(): string {\n return `${this.ne.toString()},${this.sw.toString()}`;\n }\n}\n\n// Default export for backward compatibility\nexport default LatLngBounds;\n","/**\n * @fileoverview Provides the Money class for handling monetary values.\n * This class ensures proper structure and validation of monetary values with an amount and a currency.\n */\n\nimport { SdkType } from \"../types/sdk-types\";\n// Define a static class name\nconst MONEY_SDK_TYPE = \"Money\";\n\n/**\n * Class representing a monetary value.\n *\n * The Money class encapsulates an amount in the smallest unit of the currency (e.g., cents)\n * and a currency code (e.g., \"USD\").\n */\nclass Money implements SdkType {\n amount: number;\n currency: string;\n readonly _sdkType: typeof MONEY_SDK_TYPE;\n\n /**\n * Creates an instance of the Money class.\n *\n * @param {number} amount - The monetary amount, represented in the smallest unit of the currency (e.g., cents for USD).\n * @param {string} currency - The currency code, represented as a three-character string (e.g., \"USD\").\n * @example\n * const money = new Money(1000, 'USD');\n * console.log(money); // Outputs: Money { amount: 1000, currency: 'USD' }\n */\n constructor(amount: number, currency: string) {\n this._sdkType = MONEY_SDK_TYPE;\n\n let isValid = true;\n\n // Validate the amount.\n if (!Number.isInteger(amount)) {\n console.warn(\"Amount must be an integer.\");\n isValid = false;\n }\n\n // Validate the currency code.\n if (currency.length < 3) {\n console.warn(\"Currency must be at least 3 characters long.\");\n isValid = false;\n }\n\n this.amount = amount;\n this.currency = currency;\n\n if (!isValid) {\n console.warn(\"Invalid Money values provided.\");\n }\n }\n}\n\n// Default export for backward compatibility\nexport default Money;\n","/**\n * @fileoverview Provides the UUID class for handling universally unique identifiers (UUIDs).\n * This class allows for the creation and validation of UUIDs, using the `uuid` library.\n */\n\nimport { v4 as uuidv4 } from \"uuid\";\nimport { SdkType } from \"../types/sdk-types\";\n\n// Define a static class name\nconst UUID_SDK_TYPE = \"UUID\";\n\n/**\n * Class representing a UUID (Universally Unique Identifier).\n *\n * The UUID class ensures that a valid UUID is created or used, with the option to generate one if none is provided.\n */\nclass UUID implements SdkType {\n uuid: string;\n readonly _sdkType: typeof UUID_SDK_TYPE;\n\n /**\n * Creates an instance of the UUID class.\n *\n * @param {string} [uuid] - An optional UUID string. If not provided, a new UUID will be generated.\n * @example\n * const id = new UUID();\n * console.log(id.toString()); // Outputs a newly generated UUID.\n *\n * const predefinedId = new UUID('123e4567-e89b-12d3-a456-426614174000');\n * console.log(predefinedId.toString()); // Outputs: '123e4567-e89b-12d3-a456-426614174000'\n */\n constructor(uuid?: string) {\n this._sdkType = UUID_SDK_TYPE;\n\n if (uuid !== undefined && typeof uuid !== \"string\") {\n console.warn(\"uuid must be a string\");\n // If it's not a string, fallback to a generated UUID.\n this.uuid = uuidv4();\n } else {\n // Use the provided UUID or generate a new one.\n this.uuid = uuid || uuidv4();\n }\n }\n\n /**\n * Converts the UUID instance to its string representation.\n *\n * @returns {string} - The string representation of the UUID.\n * @example\n * const id = new UUID();\n * console.log(id.toString()); // Outputs the UUID as a string.\n */\n toString(): string {\n return this.uuid;\n }\n}\n\n// Default export for backward compatibility\nexport default UUID;\n\n// Export the instance type\nexport type UUIDInstance = InstanceType<typeof UUID>;\n","import { ApiConfigs } from \"../types/apiConfigs\";\n\n/**\n * Creates API configurations for the SDK.\n *\n * @param isIntegrationSdk - Determines whether the configuration is for the Integration SDK (default: false).\n * @returns An object containing API configurations for the standard SDK or Integration SDK.\n */\nexport const createApisConfigs = <I extends boolean = false>(\n isIntegrationSdk: I = false as I\n): ApiConfigs<I> => {\n if (isIntegrationSdk === false) {\n return {\n api: ({ baseUrl, version, transitVerbose }) => ({\n headers: {\n ...(transitVerbose ? { \"X-Transit-Verbose\": \"true\" } : {}),\n Accept: \"application/transit+json\",\n },\n baseUrl: `${baseUrl}/${version}/api`,\n }),\n auth: ({ baseUrl, version }) => ({\n headers: {\n \"Content-Type\": \"application/x-www-form-urlencoded\",\n Accept: \"application/json\",\n },\n baseUrl: `${baseUrl}/${version}/auth`,\n }),\n assets: ({ assetCdnBaseUrl, version }) => ({\n headers: {\n Accept: \"application/json\",\n },\n baseUrl: `${assetCdnBaseUrl}/${version}/assets`,\n }),\n } as ApiConfigs<I>;\n } else {\n return {\n auth: ({ baseUrl, version }) => ({\n headers: {\n \"Content-Type\": \"application/x-www-form-urlencoded\",\n Accept: \"application/json\",\n },\n baseUrl: `${baseUrl}/${version}/auth`,\n }),\n integrationApi: ({ baseUrl, version, transitVerbose }) => ({\n headers: {\n ...(transitVerbose ? { \"X-Transit-Verbose\": \"true\" } : {}),\n Accept: \"application/transit+json\",\n },\n baseUrl: `${baseUrl}/${version}/integration_api`,\n }),\n } as ApiConfigs<I>;\n }\n};\n","import MemoryStore from \"./stores/MemoryStore\";\nimport { TypeHandler } from \"../types/config\";\nimport BrowserStore from \"./stores/BrowserStore\";\n\ntype DefaultSdkConfigType = {\n baseUrl: string;\n assetCdnBaseUrl: string;\n version: string;\n transitVerbose: boolean;\n tokenStore: MemoryStore;\n typeHandlers: TypeHandler[];\n};\n\n/**\n * Default SDK configuration object for the Sharetribe Flex API.\n */\nexport const DefaultSdkConfig: DefaultSdkConfigType = {\n baseUrl: \"https://flex-api.sharetribe.com\", // Base URL for the API\n assetCdnBaseUrl: \"https://cdn.st-api.com\", // Base URL for assets\n version: \"v1\", // API version\n transitVerbose: false, // Toggle for verbose transit serialization\n tokenStore: new MemoryStore(), // Default token store (in-memory)\n typeHandlers: [], // Array to handle custom data types\n};\n","import Money from \"../sdkTypes/Money\";\nimport LatLng from \"../sdkTypes/LatLng\";\nimport LatLngBounds from \"../sdkTypes/LatLngBounds\";\nimport UUID from \"../sdkTypes/UUID\";\nimport BigDecimal from \"../sdkTypes/BigDecimal\";\n\n/**\n * Converts a value based on its `_sdkType` property to the appropriate SDK type.\n * @param {*} value - The value to convert.\n * @returns {*} The converted value or the original value if no conversion is needed.\n */\nexport function toSdkTypes(\n value: any\n): LatLng | LatLngBounds | UUID | Money | BigDecimal | any {\n const type = value && value._sdkType;\n\n switch (type) {\n case \"LatLng\":\n return new LatLng(value.lat, value.lng);\n case \"LatLngBounds\":\n return new LatLngBounds(value.ne, value.sw);\n case \"UUID\":\n return new UUID(value.uuid);\n case \"Money\":\n return new Money(value.amount, value.currency);\n case \"BigDecimal\":\n return new BigDecimal(value.value);\n default:\n return value;\n }\n}\n\n//\n// JSON replacer\n//\n// Deprecated\n//\n// The _sdkType field is added to the type object itself,\n// so the use of replacer is not needed. The function exists purely\n// for backwards compatibility. We don't want to remove it in case\n// applications are using it.\n//\nexport const replacer = (key: string, value: any) => value;\n\n//\n// JSON reviver\n//\nexport const reviver = (key: string, value: any) => toSdkTypes(value);\n","import UUID from \"../sdkTypes/UUID\";\nimport LatLng from \"../sdkTypes/LatLng\";\nimport LatLngBounds from \"../sdkTypes/LatLngBounds\";\n\nconst UNKNOWN_TYPE = \"unknown-type\";\n\n/**\n * Serializes a value into a string representation for URL query parameters.\n *\n * @param {*} value - The value to serialize. Supported types:\n * - `UUID` instance: serialized as its `uuid` string.\n * - `LatLng` instance: serialized as \"lat,lng\".\n * - `LatLngBounds` instance: serialized as \"ne.lat,ne.lng,sw.lat,sw.lng\".\n * - `Array`: serialized by recursively serializing each element.\n * - `Date`: serialized as an ISO string.\n * - Primitive types and `null`: returned as-is.\n * @throws {Error} Will throw an error if the value type is unsupported.\n * @returns {string|*} The serialized value.\n */\nexport const serializeValue = (value: any) => {\n let v: any;\n\n if (value instanceof UUID) {\n v = value.uuid;\n } else if (value instanceof LatLng) {\n v = `${value.lat},${value.lng}`;\n } else if (value instanceof LatLngBounds) {\n v = `${value.ne.lat},${value.ne.lng},${value.sw.lat},${value.sw.lng}`;\n } else if (Array.isArray(value)) {\n v = value.map(serializeValue);\n } else if (value instanceof Date) {\n v = value.toISOString();\n } else if (value === null) {\n v = value;\n } else if (typeof value !== \"object\") {\n v = value;\n } else {\n throw new Error(UNKNOWN_TYPE);\n }\n\n return v;\n};\n\n/**\n * Serializes a record of parameters into a query string.\n *\n * @param {Record<string, any>} params - The parameters to serialize. Each value is serialized\n * using the `serializeValue` function.\n * @returns {string} A URL-encoded query string.\n */\nfunction parameterSerializer(params: Record<string, any>): string {\n const serializedParams = new URLSearchParams();\n Object.entries(params).forEach(([key, value]) => {\n serializedParams.append(key, serializeValue(value));\n });\n return serializedParams.toString();\n}\n\nexport default parameterSerializer;\n","import {\n AxiosError,\n AxiosRequestConfig,\n AxiosResponse,\n InternalAxiosRequestConfig,\n} from \"axios\";\nimport { ExtendedInternalAxiosRequestConfig } from \"../types/axios\";\nimport SharetribeSdk from \"../sdk\";\nimport parameterSerializer from \"./parameter-serializer\";\nimport IntegrationSdk from \"../integrationSdk\";\nimport { createTransitConverters } from \"./transit\";\nimport axiosRetry, { IAxiosRetryConfig } from \"axios-retry\";\nexport const QUERY_PARAMETERS = [\n \"include\",\n \"page\",\n \"perPage\",\n \"expand\",\n \"fields\",\n \"limit\",\n];\n\nconst isTransit = (res: any) => {\n const headers = res.headers || {};\n const contentType = headers[\"content-type\"] || \"\";\n\n return contentType.startsWith(\"application/transit+json\");\n};\n\nconst isJson = (res: any) => {\n const headers = res.headers || {};\n const contentType = headers[\"content-type\"] || \"\";\n\n return contentType.startsWith(\"application/json\");\n};\n\n// Utility functions\nexport const isTokenUnauthorized = (status: number) => [401].includes(status);\nexport const isTokenExpired = (status: number) => [401, 403].includes(status);\nexport const routeNeedsTrustedUser = (\n requestConfig: InternalAxiosRequestConfig,\n sdk: SharetribeSdk | IntegrationSdk\n) => {\n const requestUrl = requestConfig.url!;\n const found = Object.entries(sdk).find(([_, value]) => {\n if (typeof value === \"object\") {\n return Object.entries(value).find(([key, endpoint]) => {\n if (key === \"endpoint\" && typeof endpoint === \"string\") {\n return (\n requestUrl.substring(0, requestUrl.lastIndexOf(\"/\")) === endpoint\n );\n }\n });\n }\n }) as [string, { authRequired: boolean }] | undefined;\n return found && found[1].authRequired;\n};\n\nexport const prepareAuthorizationHeader = (data: any) =>\n `${data.token_type} ${data.access_token}`;\n\n// Interceptor handlers\nexport function handleResponseSuccess(sdk: SharetribeSdk | IntegrationSdk) {\n return function onFulfilled(response: AxiosResponse): AxiosResponse {\n if (!sdk.sdkConfig.tokenStore) {\n throw new Error(\"Token store is not set\");\n }\n\n if (isTransit(response)) {\n const { reader } = createTransitConverters(sdk.sdkConfig.typeHandlers, {\n verbose: sdk.sdkConfig.transitVerbose,\n });\n response.data = reader.read(response.data);\n } else if (isJson(response)) {\n response.data = JSON.parse(response.data);\n }\n\n if (response?.data?.access_token) {\n sdk.sdkConfig.tokenStore.setToken(response.data);\n }\n\n if (response?.data?.revoked) {\n sdk.sdkConfig.tokenStore.removeToken();\n }\n\n return response;\n };\n}\n\nexport async function handleResponseFailure(\n sdk: SharetribeSdk | IntegrationSdk,\n error: AxiosError | any\n) {\n if (!sdk.sdkConfig.tokenStore) {\n throw new Error(\"Token store is not set\");\n }\n\n try {\n const originalRequest = error.config as ExtendedInternalAxiosRequestConfig;\n\n // Parse response data if needed\n if (error.response && isTransit(error.response)) {\n const { reader } = createTransitConverters(sdk.sdkConfig.typeHandlers, {\n verbose: sdk.sdkConfig.transitVerbose,\n });\n error.response.data = reader.read(error.response.data as string);\n } else if (error.response && isJson(error.response)) {\n error.response.data = JSON.parse(error.response.data as string);\n }\n\n // Handle token refresh on 401/403 errors\n if (error.response && isTokenExpired(error.response.status)) {\n const token = sdk.sdkConfig.tokenStore.getToken();\n if (token && token.refresh_token) {\n // Get a new token\n const response = await sdk.auth.token<\"refresh-token\">({\n client_id: sdk.sdkConfig.clientId,\n grant_type: \"refresh_token\",\n refresh_token: token.refresh_token,\n });\n\n // Update the request with the new token\n originalRequest.headers.Authorization = prepareAuthorizationHeader(\n response.data\n );\n\n // Store the new token\n sdk.sdkConfig.tokenStore.setToken(response.data);\n\n // Retry the request\n return sdk.axios(originalRequest);\n }\n }\n\n // Handle trusted user check\n if (\n error.response &&\n isTokenUnauthorized(error.response.status) &&\n routeNeedsTrustedUser(originalRequest, sdk)\n ) {\n const token = sdk.sdkConfig.tokenStore.getToken();\n if (token?.scope !== \"trusted:user\") {\n console.error(\"Token is not trusted:user\");\n return Promise.reject(error);\n }\n }\n\n return Promise.reject(error);\n } catch (e) {\n console.error(\"Error in handleResponseFailure:\", e);\n return Promise.reject(e);\n }\n}\n\nexport async function handleRequestSuccess(\n sdk: SharetribeSdk | IntegrationSdk,\n requestConfig: InternalAxiosRequestConfig\n): Promise<InternalAxiosRequestConfig> {\n if (!sdk.sdkConfig.tokenStore) {\n throw new Error(\"Token store is not set\");\n }\n\n if (\n requestConfig.headers[\"Content-Type\"] ===\n \"application/x-www-form-urlencoded\"\n ) {\n return requestConfig;\n }\n\n // Anonymous requests are allowed to use the public-read scope\n const isAnonymousRequest =\n requestConfig?.data?.grant_type === \"client_credentials\" &&\n requestConfig?.data?.scope === \"public-read\";\n if (isAnonymousRequest) {\n return requestConfig;\n }\n\n // when the request has no Authorization header, we need to add it\n if (!requestConfig.headers.Authorization) {\n const authToken = sdk.sdkConfig.tokenStore.getToken();\n if (authToken) {\n requestConfig.headers.Authorization =\n prepareAuthorizationHeader(authToken);\n } else {\n let response: AxiosResponse<any>;\n if (sdk instanceof SharetribeSdk) {\n response = await sdk.auth.token<\"public-read\">({\n client_id: sdk.sdkConfig.clientId,\n grant_type: \"client_credentials\",\n scope: \"public-read\",\n });\n } else if (sdk instanceof IntegrationSdk) {\n if (!sdk.sdkConfig.clientSecret) {\n throw new Error(\"clientSecret is required for integration SDK\");\n }\n\n response = await sdk.auth.token<\"integ\">({\n client_id: sdk.sdkConfig.clientId,\n client_secret: sdk.sdkConfig.clientSecret,\n grant_type: \"client_credentials\",\n scope: \"integ\",\n });\n } else {\n throw new Error(\"Invalid SDK instance\");\n }\n\n sdk.sdkConfig.tokenStore.setToken(response.data);\n\n requestConfig.headers.Authorization = prepareAuthorizationHeader(\n response.data\n );\n }\n }\n\n // Convert data parameter to query Parameters\n if (requestConfig.data) {\n Object.keys(requestConfig.data).forEach((key) => {\n const isQueryParameter = QUERY_PARAMETERS.find(\n (param) => key === param || key.startsWith(param)\n );\n if (isQueryParameter) {\n requestConfig.params = {\n ...requestConfig.params,\n [key]: Array.isArray(requestConfig.data[key])\n ? requestConfig.data[key].join(\",\")\n : requestConfig.data[key],\n };\n delete requestConfig.data[key];\n }\n });\n }\n\n // Turn sdkTypes into non sdkType objects\n if (requestConfig.method === \"post\") {\n if (requestConfig.url?.endsWith(\"/upload\")) {\n requestConfig.headers[\"Content-Type\"] = \"multipart/form-data\";\n } else {\n const { writer } = createTransitConverters(sdk.sdkConfig.typeHandlers, {\n verbose: sdk.sdkConfig.transitVerbose,\n });\n requestConfig.data = writer.write(requestConfig.data);\n requestConfig.headers[\"Content-Type\"] = \"application/transit+json\";\n }\n }\n\n return requestConfig;\n}\n\nexport function createAxiosConfig(\n sdk: SharetribeSdk | IntegrationSdk,\n config: AxiosRequestConfig\n) {\n config.headers = {\n ...config.headers,\n Accept: \"application/transit+json\",\n };\n config.transformRequest = (v) => v;\n config.transformResponse = (v) => v;\n if (sdk.sdkConfig.transitVerbose) {\n config.headers[\"X-Transit-Verbose\"] = true;\n }\n return config;\n}\n\n// Main setup function\nexport function prepareAxiosInstance(sdk: SharetribeSdk | IntegrationSdk) {\n try {\n const retryConfig: IAxiosRetryConfig = {\n retries: 3, // Number of retries\n retryDelay: axiosRetry.exponentialDelay,\n };\n\n // Use type assertion to bypass TypeScript error\n (axiosRetry as any)(sdk.axios, retryConfig);\n } catch (e) {\n console.warn(\"Failed to initialize axios-retry:\", e);\n }\n\n sdk.axios.interceptors.response.use(\n handleResponseSuccess(sdk),\n (error: AxiosError) => handleResponseFailure(sdk, error)\n );\n sdk.axios.interceptors.request.use((config: InternalAxiosRequestConfig) =>\n handleRequestSuccess(sdk, config)\n );\n sdk.axios.defaults.paramsSerializer = parameterSerializer;\n}\n","import Cookies from \"js-cookie\";\nimport { generateKey } from \"./store\";\nimport { TokenStore } from \"../../types/store\";\nimport { AuthToken } from \"../../types/authentication\";\n\n/**\n * Configuration options for the `BrowserStore`.\n */\nexport type BrowserStoreOptions = {\n clientId: string; // Unique identifier for the client\n secure?: boolean; // Whether to use secure cookies (HTTPS only)\n};\n\n/**\n * `BrowserStore` is an implementation of the `TokenStore` interface for storing authentication tokens in browser cookies.\n */\nclass BrowserStore implements TokenStore {\n expiration: number = 30; // Default cookie expiration in days\n private namespace: string = \"st\"; // Namespace for cookie keys\n private readonly key: string; // Generated key for the cookie\n private readonly secure: boolean | undefined; // Indicates if cookies should be marked as secure\n\n /**\n * Initializes the `BrowserStore` with client-specific options.\n * @param options - Configuration options for the store.\n */\n constructor({ clientId, secure }: BrowserStoreOptions) {\n this.secure = secure;\n this.key = generateKey(clientId, this.namespace);\n }\n\n /**\n * Retrieves the authentication token from browser cookies.\n * @returns A promise that resolves to the `AuthToken` or null if no token exists.\n */\n getToken(): AuthToken | null {\n const cookie = Cookies.get(this.key);\n return cookie ? (JSON.parse(cookie) as AuthToken) : null;\n }\n\n /**\n * Stores the authentication token in a browser cookie.\n * @param token - The authentication token to store.\n */\n setToken(token: AuthToken): void {\n const secureFlag = this.secure ? { secure: true } : {};\n Cookies.set(this.key, JSON.stringify(token), {\n expires: this.expiration,\n ...secureFlag,\n });\n }\n\n /**\n * Removes the authentication token from browser cookies.\n */\n removeToken(): void {\n Cookies.remove(this.key);\n }\n}\n\nexport default BrowserStore;\n","import { Request, Response } from \"express\";\nimport { generateKey } from \"./store\";\nimport { TokenStore } from \"../../types/store\";\nimport { AuthToken } from \"../../types/authentication\";\n\n/**\n * Configuration options for the `ExpressStore`.\n */\nexport type ExpressStoreOptions = {\n clientId: string; // Unique identifier for the client\n req: Request; // Express request object\n res: Response; // Express response object\n secure?: boolean; // Whether to use secure cookies (HTTPS only)\n};\n\n/**\n * `ExpressStore` is an implementation of the `TokenStore` interface for managing authentication tokens via cookies in an Express application.\n */\nclass ExpressStore implements TokenStore {\n expiration: number = 180; // Default cookie expiration in days\n private namespace: string = \"st\"; // Namespace for cookie keys\n private key: string; // Generated key for the cookie\n private secure: boolean | undefined; // Indicates if cookies should be marked as secure\n private req: Request; // Reference to the Express request object\n private res: Response; // Reference to the Express response object\n private currentToken: AuthToken | null = null; // Cached token\n\n /**\n * Initializes the `ExpressStore` with client-specific options.\n * @param options - Configuration options for the store.\n */\n constructor({ clientId, req, res, secure }: ExpressStoreOptions) {\n this.key = generateKey(clientId, this.namespace);\n this.secure = secure;\n this.req = req;\n this.res = res;\n }\n\n /**\n * Reads the authentication token from the request cookies.\n * @returns The `AuthToken` if present in cookies, otherwise null.\n */\n private readCookie(): AuthToken | null {\n const cookie = this.req.cookies[this.key];\n return cookie ? (JSON.parse(cookie) as AuthToken) : null;\n }\n\n /**\n * Retrieves the authentication token, either from cache or from the request cookies.\n * @returns A promise that resolves to the `AuthToken` or null if no token exists.\n */\n getToken(): AuthToken | null {\n this.currentToken = this.currentToken || this.readCookie();\n return this.currentToken;\n }\n\n /**\n * Stores the authentication token in a response cookie.\n * @param token - The authentication token to store.\n */\n setToken(token: AuthToken): void {\n this.currentToken = token;\n const secureFlag = this.secure ? { secure: true } : {};\n this.res.cookie(this.key, JSON.stringify(token), {\n maxAge: 1000 * 60 * 60 * 24 * this.expiration, // Convert expiration to milliseconds\n httpOnly: true, // Ensures cookie is only accessible via HTTP(S)\n ...secureFlag,\n });\n }\n\n /**\n * Removes the authentication token from the response cookies.\n */\n removeToken(): void {\n this.currentToken = null;\n this.res.clearCookie(this.key);\n }\n}\n\nexport default ExpressStore;\n","import { TokenStore } from \"../../types/store\";\nimport { AuthToken } from \"../../types/authentication\";\n\n/**\n * `MemoryStore` is an in-memory implementation of the `TokenStore` interface.\n * It is suitable for short-lived or testing purposes, where tokens do not need to persist beyond the application's lifecycle.\n */\nclass MemoryStore implements TokenStore {\n token: AuthToken | null = null; // Holds the token in memory\n\n /**\n * Retrieves the stored authentication token.\n * @returns A promise resolving to the `AuthToken` or `null` if no token is stored.\n */\n getToken(): AuthToken | null {\n return this.token;\n }\n\n /**\n * Removes the stored authentication token from memory.\n */\n removeToken(): void {\n this.token = null;\n }\n\n /**\n * Stores the provided authentication token in memory.\n * @param token - The authentication token to store.\n */\n setToken(token: AuthToken): void {\n this.token = token;\n }\n}\n\nexport default MemoryStore;\n","/**\n * Generates a unique key for storing tokens.\n *\n * @param clientId - The unique identifier for the client.\n * @param namespace - The namespace to organize and scope the key.\n * @returns A string combining the namespace, client ID, and a token suffix.\n */\nexport const generateKey = (clientId: string, namespace: string): string => {\n return `${namespace}-${clientId}-token`;\n};\n","/* eslint no-underscore-dangle: [\"error\", { \"allow\": [\"_sdkType\"] }] */\n\nimport {\n makeWriteHandler,\n reader as transitReader,\n keyword,\n map as transitMap,\n writer as transitWriter,\n} from \"transit-js\";\nimport LatLng from \"../sdkTypes/LatLng\";\nimport UUID from \"../sdkTypes/UUID\";\nimport Money from \"../sdkTypes/Money\";\nimport BigDecimal from \"../sdkTypes/BigDecimal\";\nimport { TypeHandler } from \"../types/config\";\nimport { toSdkTypes } from \"./convert-types\";\n\n// Type definitions for SDK types\ntype SdkTypeClass = any; // Using any to avoid complex type issues\n\n// Helper functions to replace lodash\nconst identity = <T>(value: T): T => value;\nconst find = <T>(array: T[], predicate: (item: T) => boolean): T | undefined =>\n array.find(predicate);\nconst fromPairs = <T>(pairs: [string, T][]): Record<string, T> =>\n Object.fromEntries(pairs) as Record<string, T>;\nconst map = <T, R>(array: T[], callback: (item: T, index: number) => R): R[] =>\n array.map(callback);\nconst flatten = <T>(array: T[][]): T[] => array.flat();\nconst isObject = (value: any): boolean =>\n value !== null && typeof value === \"object\";\nconst entries = (obj: Record<string, any>): [string, any][] => {\n if (obj == null) {\n return [];\n }\n return Object.entries(obj);\n};\n\n// Define interfaces for reader and writer objects\nexport interface TransitReader {\n sdkType: SdkTypeClass;\n reader: (value: any) => any;\n}\n\nexport interface TransitWriter {\n sdkType?: SdkTypeClass;\n appType?: any;\n canHandle?: (args: { key: string; value: any }) => boolean;\n writer: (value: any) => any;\n}\n\nconst composeReader = (\n sdkTypeReader: TransitReader,\n appTypeReader: TransitReader | undefined\n) => {\n const sdkTypeReaderFn = sdkTypeReader.reader;\n const appTypeReaderFn = appTypeReader ? appTypeReader.reader : identity;\n\n return (rep: any) => appTypeReaderFn(sdkTypeReaderFn(rep));\n};\n\n/**\n * Map from transit tags to SDK type classes.\n */\nconst typeMap: Record<string, SdkTypeClass> = {\n u: UUID,\n geo: LatLng,\n mn: Money,\n f: BigDecimal,\n};\n\n/**\n * Readers for SDK types.\n */\nconst sdkTypeReaders: TransitReader[] = [\n {\n sdkType: UUID,\n reader: (rep: string) => new UUID(rep),\n },\n {\n sdkType: LatLng,\n reader: ([lat, lng]: [number | string, number | string]) =>\n new LatLng(lat, lng),\n },\n {\n sdkType: Money,\n reader: ([amount, currency]: [number, string]) =>\n new Money(amount, currency),\n },\n {\n sdkType: BigDecimal,\n reader: (rep: string) => new BigDecimal(rep),\n },\n];\n\n/**\n * Writers for SDK types.\n */\nconst sdkTypeWriters: TransitWriter[] = [\n {\n sdkType: UUID,\n writer: (v: UUID) => v.uuid,\n },\n {\n sdkType: LatLng,\n writer: (v: LatLng) => [v.lat, v.lng],\n },\n {\n sdkType: Money,\n writer: (v: Money) => [v.amount, v.currency],\n },\n {\n sdkType: BigDecimal,\n writer: (v: BigDecimal) => v.value,\n },\n];\n\n/**\n * Construct read handlers for transit types. The handlers are constructed\n * from `appTypeReaders`, `sdkTypeReaders` and `typeMap`.\n */\nconst constructReadHandlers = (appTypeReaders: TransitReader[]) =>\n fromPairs(\n map(Object.entries(typeMap), ([tag, typeClass]) => {\n const sdkTypeReader = find(\n sdkTypeReaders,\n (r) => r.sdkType === typeClass\n );\n const appTypeReader = find(\n appTypeReaders,\n (r) => r.sdkType === typeClass\n );\n\n if (!sdkTypeReader) {\n throw new Error(`SDK type reader not found for tag: ${tag}`);\n }\n\n return [tag, composeReader(sdkTypeReader, appTypeReader)];\n })\n );\n\nconst writeHandlers = flatten(\n map(Object.entries(typeMap), ([tag, typeClass]) => {\n const sdkTypeWriter = find(sdkTypeWriters, (w) => w.sdkType === typeClass);\n\n if (!sdkTypeWriter) {\n throw new Error(`SDK type writer not found for tag: ${tag}`);\n }\n\n const handler = makeWriteHandler({\n tag: () => tag,\n rep: sdkTypeWriter.writer,\n stringRep: (v: any) => sdkTypeWriter.writer(v.toString()),\n });\n\n return [typeClass, handler];\n })\n);\n\nconst mapBuilder = {\n init: () => ({}),\n add: (ret: Record<string, any>, key: string, val: any) => {\n ret[key] = val;\n return ret;\n },\n finalize: identity,\n};\n\nexport const reader = (appTypeReaders: TransitReader[] = []) => {\n const handlers = constructReadHandlers(appTypeReaders);\n\n return transitReader(\"json\", {\n handlers: {\n ...handlers,\n\n // Convert keyword to a string\n // This is a simplification. The API uses keywords, but we\n // can coerse strings to keywords, so it's ok to send strings\n // to the API when keywords is expected.\n \":\": (rep: string) => rep,\n\n // Convert set to an array\n // The conversion loses the information that the\n // value was a set, but that's ok. The API uses sets, but we\n // can coerse arrays to sets, so it's ok to send arrays\n // to the API when set is expected.\n set: (rep: any[]) => rep,\n\n // Convert list to an array\n list: (rep: any[]) => rep,\n },\n mapBuilder,\n });\n};\n\n// Convert JS object to transit map\nconst MapHandlers = [\n Object,\n makeWriteHandler({\n tag: () => \"map\",\n rep: (v: any) =>\n entries(v).reduce((map: any, entry: [string, any]) => {\n const [key, val] = entry;\n map.set(keyword(key), val);\n return map;\n }, transitMap()),\n stringRep: (v: any) => JSON.stringify(v),\n }),\n];\n\nexport const writer = (\n appTypeWriters: TransitWriter[] = [],\n opts: TransitOptions = {}\n) => {\n const { verbose } = opts;\n const transitType = verbose ? \"json-verbose\" : \"json\";\n\n return transitWriter(transitType, {\n handlers: transitMap([...writeHandlers, ...MapHandlers]),\n\n // @ts-ignore - Adding custom properties to transit writer\n transform: (v: any) => {\n if (isObject(v)) {\n if (v._sdkType) {\n return toSdkTypes(v);\n }\n\n const appTypeWriter = find(\n appTypeWriters,\n (w) =>\n (w.appType && v instanceof w.appType) ||\n (w.canHandle && w.canHandle(v))\n );\n\n if (appTypeWriter && appTypeWriter.writer) {\n return appTypeWriter.writer(v);\n }\n }\n return v;\n },\n handlerForForeign: (x, handlers) => {\n if (Array.isArray(x)) {\n return handlers.get(\"array\");\n }\n if (typeof x === \"object\") {\n return handlers.get(\"map\");\n }\n\n return null;\n },\n });\n};\n\nexport type TransitOptions = {\n verbose?: boolean;\n typeHandlers?: TypeHandler[];\n};\n\nexport const createTransitConverters = (\n typeHandlers: TypeHandler[] = [],\n opts: TransitOptions = {}\n) => {\n const { readers, writers } = typeHandlers.reduce<{\n readers: TransitReader[];\n writers: TransitWriter[];\n }>(\n (memo, handler) => {\n const r: TransitReader = {\n sdkType: handler.sdkType,\n reader: handler.reader!,\n };\n const w: TransitWriter = {\n sdkType: handler.sdkType,\n appType: handler.appType,\n canHandle: handler.canHandle,\n writer: handler.writer!,\n };\n\n memo.readers.push(r);\n memo.writers.push(w);\n\n return memo;\n },\n { readers: [], writers: [] }\n );\n\n return {\n reader: reader(readers),\n writer: writer(writers, opts),\n };\n};\n\nexport const read = (str: string, opts: TransitOptions = {}) => {\n const { typeHandlers = [], verbose = false } = opts;\n const { reader: r } = createTransitConverters(typeHandlers, opts);\n return r.read(str);\n};\n\nexport const write = (data: any, opts: TransitOptions = {}) => {\n const { typeHandlers = [], verbose = false } = opts;\n const { writer: w } = createTransitConverters(typeHandlers, opts);\n return w.write(data);\n};\n","import { toSdkTypes } from \"./convert-types\";\n\ntype ObjectQueryStringParam = Record<string, any>;\n\n/**\n * Serializes an attribute into a string representation for query parameters.\n *\n * @param {*} attribute - The attribute to serialize. Supported types:\n * - `Array`: serialized as a comma-separated string of its elements.\n * - Other types: returned as-is.\n * @returns {string} The serialized attribute.\n */\nconst serializeAttribute = (attribute: any): string => {\n if (Array.isArray(attribute)) {\n return attribute.join(\",\");\n } else {\n return attribute;\n }\n};\n\n/**\n * Serializes an object into a custom query string format.\n *\n * @param {ObjectQueryStringParam} obj - The object to serialize. Each key-value pair\n * is serialized in the format `key:value`. Attributes are processed using\n * `serializeAttribute`.\n * @throws {Error} If the input is not an object or is null.\n * @returns {string} A semicolon-separated query string.\n */\nexport const objectQueryString = (obj: ObjectQueryStringParam): string => {\n // Ensure the input is a valid object\n if (obj === null || typeof obj !== \"object\" || Array.isArray(obj)) {\n console.warn(\"Params must be an object\");\n // You can throw an error instead of warning if strict validation is required:\n // throw new Error(\"Params must be an object\");\n return \"\";\n }\n\n return Object.entries(obj)\n .filter(([_, value]) => value !== undefined && value !== null) // Exclude undefined or null values\n .map(([key, value]) => `${key}:${serializeAttribute(value)}`) // Serialize each key-value pair\n .join(\";\"); // Join the serialized pairs with semicolons\n};\n","import crypto from 'crypto';\nexport default {\n randomUUID: crypto.randomUUID\n};","import crypto from 'crypto';\nconst rnds8Pool = new Uint8Array(256); // # of random values to pre-allocate\n\nlet poolPtr = rnds8Pool.length;\nexport default function rng() {\n if (poolPtr > rnds8Pool.length - 16) {\n crypto.randomFillSync(rnds8Pool);\n poolPtr = 0;\n }\n\n return rnds8Pool.slice(poolPtr, poolPtr += 16);\n}","import validate from './validate.js';\n/**\n * Convert array of 16 byte values to UUID string format of the form:\n * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\n */\n\nconst byteToHex = [];\n\nfor (let i = 0; i < 256; ++i) {\n byteToHex.push((i + 0x100).toString(16).slice(1));\n}\n\nexport function unsafeStringify(arr, offset = 0) {\n // Note: Be careful editing this code! It's been tuned for performance\n // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434\n return byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]];\n}\n\nfunction stringify(arr, offset = 0) {\n const uuid = unsafeStringify(arr, offset); // Consistency check for valid UUID. If this throws, it's likely due to one\n // of the following:\n // - One or more input array values don't map to a hex octet (leading to\n // \"undefined\" in the uuid)\n // - Invalid input values for the RFC `version` or `variant` fields\n\n if (!validate(uuid)) {\n throw TypeError('Stringified UUID is invalid');\n }\n\n return uuid;\n}\n\nexport default stringify;","import native from './native.js';\nimport rng from './rng.js';\nimport { unsafeStringify } from './stringify.js';\n\nfunction v4(options, buf, offset) {\n if (native.randomUUID && !buf && !options) {\n return native.randomUUID();\n }\n\n options = options || {};\n const rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`\n\n rnds[6] = rnds[6] & 0x0f | 0x40;\n rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided\n\n if (buf) {\n offset = offset || 0;\n\n for (let i = 0; i < 16; ++i) {\n buf[offset + i] = rnds[i];\n }\n\n return buf;\n }\n\n return unsafeStringify(rnds);\n}\n\nexport default v4;","module.exports = require(\"assert\");","module.exports = require(\"crypto\");","module.exports = require(\"events\");","module.exports = require(\"fs\");","module.exports = require(\"http\");","module.exports = require(\"https\");","module.exports = require(\"os\");","module.exports = require(\"path\");","module.exports = require(\"stream\");","module.exports = require(\"tty\");","module.exports = require(\"url\");","module.exports = require(\"util\");","module.exports = require(\"zlib\");","import isRetryAllowed from 'is-retry-allowed';\nexport const namespace = 'axios-retry';\nexport function isNetworkError(error) {\n const CODE_EXCLUDE_LIST = ['ERR_CANCELED', 'ECONNABORTED'];\n if (error.response) {\n return false;\n }\n if (!error.code) {\n return false;\n }\n // Prevents retrying timed out & cancelled requests\n if (CODE_EXCLUDE_LIST.includes(error.code)) {\n return false;\n }\n // Prevents retrying unsafe errors\n return isRetryAllowed(error);\n}\nconst SAFE_HTTP_METHODS = ['get', 'head', 'options'];\nconst IDEMPOTENT_HTTP_METHODS = SAFE_HTTP_METHODS.concat(['put', 'delete']);\nexport function isRetryableError(error) {\n return (error.code !== 'ECONNABORTED' &&\n (!error.response ||\n error.response.status === 429 ||\n (error.response.status >= 500 && error.response.status <= 599)));\n}\nexport function isSafeRequestError(error) {\n if (!error.config?.method) {\n // Cannot determine if the request can be retried\n return false;\n }\n return isRetryableError(error) && SAFE_HTTP_METHODS.indexOf(error.config.method) !== -1;\n}\nexport function isIdempotentRequestError(error) {\n if (!error.config?.method) {\n // Cannot determine if the request can be retried\n return false;\n }\n return isRetryableError(error) && IDEMPOTENT_HTTP_METHODS.indexOf(error.config.method) !== -1;\n}\nexport function isNetworkOrIdempotentRequestError(error) {\n return isNetworkError(error) || isIdempotentRequestError(error);\n}\nexport function retryAfter(error = undefined) {\n const retryAfterHeader = error?.response?.headers['retry-after'];\n if (!retryAfterHeader) {\n return 0;\n }\n // if the retry after header is a number, convert it to milliseconds\n let retryAfterMs = (Number(retryAfterHeader) || 0) * 1000;\n // If the retry after header is a date, get the number of milliseconds until that date\n if (retryAfterMs === 0) {\n retryAfterMs = (new Date(retryAfterHeader).valueOf() || 0) - Date.now();\n }\n return Math.max(0, retryAfterMs);\n}\nfunction noDelay(_retryNumber = 0, error = undefined) {\n return Math.max(0, retryAfter(error));\n}\nexport function exponentialDelay(retryNumber = 0, error = undefined, delayFactor = 100) {\n const calculatedDelay = 2 ** retryNumber * delayFactor;\n const delay = Math.max(calculatedDelay, retryAfter(error));\n const randomSum = delay * 0.2 * Math.random(); // 0-20% of the delay\n return delay + randomSum;\n}\n/**\n * Linear delay\n * @param {number | undefined} delayFactor - delay factor in milliseconds (default: 100)\n * @returns {function} (retryNumber: number, error: AxiosError | undefined) => number\n */\nexport function linearDelay(delayFactor = 100) {\n return (retryNumber = 0, error = undefined) => {\n const delay = retryNumber * delayFactor;\n return Math.max(delay, retryAfter(error));\n };\n}\nexport const DEFAULT_OPTIONS = {\n retries: 3,\n retryCondition: isNetworkOrIdempotentRequestError,\n retryDelay: noDelay,\n shouldResetTimeout: false,\n onRetry: () => { },\n onMaxRetryTimesExceeded: () => { },\n validateResponse: null\n};\nfunction getRequestOptions(config, defaultOptions) {\n return { ...DEFAULT_OPTIONS, ...defaultOptions, ...config[namespace] };\n}\nfunction setCurrentState(config, defaultOptions, resetLastRequestTime = false) {\n const currentState = getRequestOptions(config, defaultOptions || {});\n currentState.retryCount = currentState.retryCount || 0;\n if (!currentState.lastRequestTime || resetLastRequestTime) {\n currentState.lastRequestTime = Date.now();\n }\n config[namespace] = currentState;\n return currentState;\n}\nfunction fixConfig(axiosInstance, config) {\n // @ts-ignore\n if (axiosInstance.defaults.agent === config.agent) {\n // @ts-ignore\n delete config.agent;\n }\n if (axiosInstance.defaults.httpAgent === config.httpAgent) {\n delete config.httpAgent;\n }\n if (axiosInstance.defaults.httpsAgent === config.httpsAgent) {\n delete config.httpsAgent;\n }\n}\nasync function shouldRetry(currentState, error) {\n const { retries, retryCondition } = currentState;\n const shouldRetryOrPromise = (currentState.retryCount || 0) < retries && retryCondition(error);\n // This could be a promise\n if (typeof shouldRetryOrPromise === 'object') {\n try {\n const shouldRetryPromiseResult = await shouldRetryOrPromise;\n // keep return true unless shouldRetryPromiseResult return false for compatibility\n return shouldRetryPromiseResult !== false;\n }\n catch (_err) {\n return false;\n }\n }\n return shouldRetryOrPromise;\n}\nasync function handleRetry(axiosInstance, currentState, error, config) {\n currentState.retryCount += 1;\n const { retryDelay, shouldResetTimeout, onRetry } = currentState;\n const delay = retryDelay(currentState.retryCount, error);\n // Axios fails merging this configuration to the default configuration because it has an issue\n // with circular structures: https://github.com/mzabriskie/axios/issues/370\n fixConfig(axiosInstance, config);\n if (!shouldResetTimeout && config.timeout && currentState.lastRequestTime) {\n const lastRequestDuration = Date.now() - currentState.lastRequestTime;\n const timeout = config.timeout - lastRequestDuration - delay;\n if (timeout <= 0) {\n return Promise.reject(error);\n }\n config.timeout = timeout;\n }\n config.transformRequest = [(data) => data];\n await onRetry(currentState.retryCount, error, config);\n if (config.signal?.aborted) {\n return Promise.resolve(axiosInstance(config));\n }\n return new Promise((resolve) => {\n const abortListener = () => {\n clearTimeout(timeout);\n resolve(axiosInstance(config));\n };\n const timeout = setTimeout(() => {\n resolve(axiosInstance(config));\n if (config.signal?.removeEventListener) {\n config.signal.removeEventListener('abort', abortListener);\n }\n }, delay);\n if (config.signal?.addEventListener) {\n config.signal.addEventListener('abort', abortListener, { once: true });\n }\n });\n}\nasync function handleMaxRetryTimesExceeded(currentState, error) {\n if (currentState.retryCount >= currentState.retries)\n await currentState.onMaxRetryTimesExceeded(error, currentState.retryCount);\n}\nconst axiosRetry = (axiosInstance, defaultOptions) => {\n const requestInterceptorId = axiosInstance.interceptors.request.use((config) => {\n setCurrentState(config, defaultOptions, true);\n if (config[namespace]?.validateResponse) {\n // by setting this, all HTTP responses will be go through the error interceptor first\n config.validateStatus = () => false;\n }\n return config;\n });\n const responseInterceptorId = axiosInstance.interceptors.response.use(null, async (error) => {\n const { config } = error;\n // If we have no information to retry the request\n if (!config) {\n return Promise.reject(error);\n }\n const currentState = setCurrentState(config, defaultOptions);\n if (error.response && currentState.validateResponse?.(error.response)) {\n // no issue with response\n return error.response;\n }\n if (await shouldRetry(currentState, error)) {\n return handleRetry(axiosInstance, currentState, error, config);\n }\n await handleMaxRetryTimesExceeded(currentState, error);\n return Promise.reject(error);\n });\n return { requestInterceptorId, responseInterceptorId };\n};\n// Compatibility with CommonJS\naxiosRetry.isNetworkError = isNetworkError;\naxiosRetry.isSafeRequestError = isSafeRequestError;\naxiosRetry.isIdempotentRequestError = isIdempotentRequestError;\naxiosRetry.isNetworkOrIdempotentRequestError = isNetworkOrIdempotentRequestError;\naxiosRetry.exponentialDelay = exponentialDelay;\naxiosRetry.linearDelay = linearDelay;\naxiosRetry.isRetryableError = isRetryableError;\nexport default axiosRetry;\n","import utils from '../utils.js';\nimport httpAdapter from './http.js';\nimport xhrAdapter from './xhr.js';\nimport fetchAdapter from './fetch.js';\nimport AxiosError from \"../core/AxiosError.js\";\n\nconst knownAdapters = {\n http: httpAdapter,\n xhr: xhrAdapter,\n fetch: fetchAdapter\n}\n\nutils.forEach(knownAdapters, (fn, value) => {\n if (fn) {\n try {\n Object.defineProperty(fn, 'name', {value});\n } catch (e) {\n // eslint-disable-next-line no-empty\n }\n Object.defineProperty(fn, 'adapterName', {value});\n }\n});\n\nconst renderReason = (reason) => `- ${reason}`;\n\nconst isResolvedHandle = (adapter) => utils.isFunction(adapter) || adapter === null || adapter === false;\n\nexport default {\n getAdapter: (adapters) => {\n adapters = utils.isArray(adapters) ? adapters : [adapters];\n\n const {length} = adapters;\n let nameOrAdapter;\n let adapter;\n\n const rejectedReasons = {};\n\n for (let i = 0; i < length; i++) {\n nameOrAdapter = adapters[i];\n let id;\n\n adapter = nameOrAdapter;\n\n if (!isResolvedHandle(nameOrAdapter)) {\n adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];\n\n if (adapter === undefined) {\n throw new AxiosError(`Unknown adapter '${id}'`);\n }\n }\n\n if (adapter) {\n break;\n }\n\n rejectedReasons[id || '#' + i] = adapter;\n }\n\n if (!adapter) {\n\n const reasons = Object.entries(rejectedReasons)\n .map(([id, state]) => `adapter ${id} ` +\n (state === false ? 'is not supported by the environment' : 'is not available in the build')\n );\n\n let s = length ?\n (reasons.length > 1 ? 'since :\\n' + reasons.map(renderReason).join('\\n') : ' ' + renderReason(reasons[0])) :\n 'as no adapter specified';\n\n throw new AxiosError(\n `There is no suitable adapter to dispatch the request ` + s,\n 'ERR_NOT_SUPPORT'\n );\n }\n\n return adapter;\n },\n adapters: knownAdapters\n}\n","import platform from \"../platform/index.js\";\nimport utils from \"../utils.js\";\nimport AxiosError from \"../core/AxiosError.js\";\nimport composeSignals from \"../helpers/composeSignals.js\";\nimport {trackStream} from \"../helpers/trackStream.js\";\nimport AxiosHeaders from \"../core/AxiosHeaders.js\";\nimport {progressEventReducer, progressEventDecorator, asyncDecorator} from \"../helpers/progressEventReducer.js\";\nimport resolveConfig from \"../helpers/resolveConfig.js\";\nimport settle from \"../core/settle.js\";\n\nconst isFetchSupported = typeof fetch === 'function' && typeof Request === 'function' && typeof Response === 'function';\nconst isReadableStreamSupported = isFetchSupported && typeof ReadableStream === 'function';\n\n// used only inside the fetch adapter\nconst encodeText = isFetchSupported && (typeof TextEncoder === 'function' ?\n ((encoder) => (str) => encoder.encode(str))(new TextEncoder()) :\n async (str) => new Uint8Array(await new Response(str).arrayBuffer())\n);\n\nconst test = (fn, ...args) => {\n try {\n return !!fn(...args);\n } catch (e) {\n return false\n }\n}\n\nconst supportsRequestStream = isReadableStreamSupported && test(() => {\n let duplexAccessed = false;\n\n const hasContentType = new Request(platform.origin, {\n body: new ReadableStream(),\n method: 'POST',\n get duplex() {\n duplexAccessed = true;\n return 'half';\n },\n }).headers.has('Content-Type');\n\n return duplexAccessed && !hasContentType;\n});\n\nconst DEFAULT_CHUNK_SIZE = 64 * 1024;\n\nconst supportsResponseStream = isReadableStreamSupported &&\n test(() => utils.isReadableStream(new Response('').body));\n\n\nconst resolvers = {\n stream: supportsResponseStream && ((res) => res.body)\n};\n\nisFetchSupported && (((res) => {\n ['text', 'arrayBuffer', 'blob', 'formData', 'stream'].forEach(type => {\n !resolvers[type] && (resolvers[type] = utils.isFunction(res[type]) ? (res) => res[type]() :\n (_, config) => {\n throw new AxiosError(`Response type '${type}' is not supported`, AxiosError.ERR_NOT_SUPPORT, config);\n })\n });\n})(new Response));\n\nconst getBodyLength = async (body) => {\n if (body == null) {\n return 0;\n }\n\n if(utils.isBlob(body)) {\n return body.size;\n }\n\n if(utils.isSpecCompliantForm(body)) {\n const _request = new Request(platform.origin, {\n method: 'POST',\n body,\n });\n return (await _request.arrayBuffer()).byteLength;\n }\n\n if(utils.isArrayBufferView(body) || utils.isArrayBuffer(body)) {\n return body.byteLength;\n }\n\n if(utils.isURLSearchParams(body)) {\n body = body + '';\n }\n\n if(utils.isString(body)) {\n return (await encodeText(body)).byteLength;\n }\n}\n\nconst resolveBodyLength = async (headers, body) => {\n const length = utils.toFiniteNumber(headers.getContentLength());\n\n return length == null ? getBodyLength(body) : length;\n}\n\nexport default isFetchSupported && (async (config) => {\n let {\n url,\n method,\n data,\n signal,\n cancelToken,\n timeout,\n onDownloadProgress,\n onUploadProgress,\n responseType,\n headers,\n withCredentials = 'same-origin',\n fetchOptions\n } = resolveConfig(config);\n\n responseType = responseType ? (responseType + '').toLowerCase() : 'text';\n\n let composedSignal = composeSignals([signal, cancelToken && cancelToken.toAbortSignal()], timeout);\n\n let request;\n\n const unsubscribe = composedSignal && composedSignal.unsubscribe && (() => {\n composedSignal.unsubscribe();\n });\n\n let requestContentLength;\n\n try {\n if (\n onUploadProgress && supportsRequestStream && method !== 'get' && method !== 'head' &&\n (requestContentLength = await resolveBodyLength(headers, data)) !== 0\n ) {\n let _request = new Request(url, {\n method: 'POST',\n body: data,\n duplex: \"half\"\n });\n\n let contentTypeHeader;\n\n if (utils.isFormData(data) && (contentTypeHeader = _request.headers.get('content-type'))) {\n headers.setContentType(contentTypeHeader)\n }\n\n if (_request.body) {\n const [onProgress, flush] = progressEventDecorator(\n requestContentLength,\n progressEventReducer(asyncDecorator(onUploadProgress))\n );\n\n data = trackStream(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush);\n }\n }\n\n if (!utils.isString(withCredentials)) {\n withCredentials = withCredentials ? 'include' : 'omit';\n }\n\n // Cloudflare Workers throws when credentials are defined\n // see https://github.com/cloudflare/workerd/issues/902\n const isCredentialsSupported = \"credentials\" in Request.prototype;\n request = new Request(url, {\n ...fetchOptions,\n signal: composedSignal,\n method: method.toUpperCase(),\n headers: headers.normalize().toJSON(),\n body: data,\n duplex: \"half\",\n credentials: isCredentialsSupported ? withCredentials : undefined\n });\n\n let response = await fetch(request);\n\n const isStreamResponse = supportsResponseStream && (responseType === 'stream' || responseType === 'response');\n\n if (supportsResponseStream && (onDownloadProgress || (isStreamResponse && unsubscribe))) {\n const options = {};\n\n ['status', 'statusText', 'headers'].forEach(prop => {\n options[prop] = response[prop];\n });\n\n const responseContentLength = utils.toFiniteNumber(response.headers.get('content-length'));\n\n const [onProgress, flush] = onDownloadProgress && progressEventDecorator(\n responseContentLength,\n progressEventReducer(asyncDecorator(onDownloadProgress), true)\n ) || [];\n\n response = new Response(\n trackStream(response.body, DEFAULT_CHUNK_SIZE, onProgress, () => {\n flush && flush();\n unsubscribe && unsubscribe();\n }),\n options\n );\n }\n\n responseType = responseType || 'text';\n\n let responseData = await resolvers[utils.findKey(resolvers, responseType) || 'text'](response, config);\n\n !isStreamResponse && unsubscribe && unsubscribe();\n\n return await new Promise((resolve, reject) => {\n settle(resolve, reject, {\n data: responseData,\n headers: AxiosHeaders.from(response.headers),\n status: response.status,\n statusText: response.statusText,\n config,\n request\n })\n })\n } catch (err) {\n unsubscribe && unsubscribe();\n\n if (err && err.name === 'TypeError' && /fetch/i.test(err.message)) {\n throw Object.assign(\n new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request),\n {\n cause: err.cause || err\n }\n )\n }\n\n throw AxiosError.from(err, err && err.code, config, request);\n }\n});\n\n\n","'use strict';\n\nimport utils from './../utils.js';\nimport settle from './../core/settle.js';\nimport buildFullPath from '../core/buildFullPath.js';\nimport buildURL from './../helpers/buildURL.js';\nimport proxyFromEnv from 'proxy-from-env';\nimport http from 'http';\nimport https from 'https';\nimport util from 'util';\nimport followRedirects from 'follow-redirects';\nimport zlib from 'zlib';\nimport {VERSION} from '../env/data.js';\nimport transitionalDefaults from '../defaults/transitional.js';\nimport AxiosError from '../core/AxiosError.js';\nimport CanceledError from '../cancel/CanceledError.js';\nimport platform from '../platform/index.js';\nimport fromDataURI from '../helpers/fromDataURI.js';\nimport stream from 'stream';\nimport AxiosHeaders from '../core/AxiosHeaders.js';\nimport AxiosTransformStream from '../helpers/AxiosTransformStream.js';\nimport {EventEmitter} from 'events';\nimport formDataToStream from \"../helpers/formDataToStream.js\";\nimport readBlob from \"../helpers/readBlob.js\";\nimport ZlibHeaderTransformStream from '../helpers/ZlibHeaderTransformStream.js';\nimport callbackify from \"../helpers/callbackify.js\";\nimport {progressEventReducer, progressEventDecorator, asyncDecorator} from \"../helpers/progressEventReducer.js\";\n\nconst zlibOptions = {\n flush: zlib.constants.Z_SYNC_FLUSH,\n finishFlush: zlib.constants.Z_SYNC_FLUSH\n};\n\nconst brotliOptions = {\n flush: zlib.constants.BROTLI_OPERATION_FLUSH,\n finishFlush: zlib.constants.BROTLI_OPERATION_FLUSH\n}\n\nconst isBrotliSupported = utils.isFunction(zlib.createBrotliDecompress);\n\nconst {http: httpFollow, https: httpsFollow} = followRedirects;\n\nconst isHttps = /https:?/;\n\nconst supportedProtocols = platform.protocols.map(protocol => {\n return protocol + ':';\n});\n\nconst flushOnFinish = (stream, [throttled, flush]) => {\n stream\n .on('end', flush)\n .on('error', flush);\n\n return throttled;\n}\n\n/**\n * If the proxy or config beforeRedirects functions are defined, call them with the options\n * object.\n *\n * @param {Object<string, any>} options - The options object that was passed to the request.\n *\n * @returns {Object<string, any>}\n */\nfunction dispatchBeforeRedirect(options, responseDetails) {\n if (options.beforeRedirects.proxy) {\n options.beforeRedirects.proxy(options);\n }\n if (options.beforeRedirects.config) {\n options.beforeRedirects.config(options, responseDetails);\n }\n}\n\n/**\n * If the proxy or config afterRedirects functions are defined, call them with the options\n *\n * @param {http.ClientRequestArgs} options\n * @param {AxiosProxyConfig} configProxy configuration from Axios options object\n * @param {string} location\n *\n * @returns {http.ClientRequestArgs}\n */\nfunction setProxy(options, configProxy, location) {\n let proxy = configProxy;\n if (!proxy && proxy !== false) {\n const proxyUrl = proxyFromEnv.getProxyForUrl(location);\n if (proxyUrl) {\n proxy = new URL(proxyUrl);\n }\n }\n if (proxy) {\n // Basic proxy authorization\n if (proxy.username) {\n proxy.auth = (proxy.username || '') + ':' + (proxy.password || '');\n }\n\n if (proxy.auth) {\n // Support proxy auth object form\n if (proxy.auth.username || proxy.auth.password) {\n proxy.auth = (proxy.auth.username || '') + ':' + (proxy.auth.password || '');\n }\n const base64 = Buffer\n .from(proxy.auth, 'utf8')\n .toString('base64');\n options.headers['Proxy-Authorization'] = 'Basic ' + base64;\n }\n\n options.headers.host = options.hostname + (options.port ? ':' + options.port : '');\n const proxyHost = proxy.hostname || proxy.host;\n options.hostname = proxyHost;\n // Replace 'host' since options is not a URL object\n options.host = proxyHost;\n options.port = proxy.port;\n options.path = location;\n if (proxy.protocol) {\n options.protocol = proxy.protocol.includes(':') ? proxy.protocol : `${proxy.protocol}:`;\n }\n }\n\n options.beforeRedirects.proxy = function beforeRedirect(redirectOptions) {\n // Configure proxy for redirected request, passing the original config proxy to apply\n // the exact same logic as if the redirected request was performed by axios directly.\n setProxy(redirectOptions, configProxy, redirectOptions.href);\n };\n}\n\nconst isHttpAdapterSupported = typeof process !== 'undefined' && utils.kindOf(process) === 'process';\n\n// temporary hotfix\n\nconst wrapAsync = (asyncExecutor) => {\n return new Promise((resolve, reject) => {\n let onDone;\n let isDone;\n\n const done = (value, isRejected) => {\n if (isDone) return;\n isDone = true;\n onDone && onDone(value, isRejected);\n }\n\n const _resolve = (value) => {\n done(value);\n resolve(value);\n };\n\n const _reject = (reason) => {\n done(reason, true);\n reject(reason);\n }\n\n asyncExecutor(_resolve, _reject, (onDoneHandler) => (onDone = onDoneHandler)).catch(_reject);\n })\n};\n\nconst resolveFamily = ({address, family}) => {\n if (!utils.isString(address)) {\n throw TypeError('address must be a string');\n }\n return ({\n address,\n family: family || (address.indexOf('.') < 0 ? 6 : 4)\n });\n}\n\nconst buildAddressEntry = (address, family) => resolveFamily(utils.isObject(address) ? address : {address, family});\n\n/*eslint consistent-return:0*/\nexport default isHttpAdapterSupported && function httpAdapter(config) {\n return wrapAsync(async function dispatchHttpRequest(resolve, reject, onDone) {\n let {data, lookup, family} = config;\n const {responseType, responseEncoding} = config;\n const method = config.method.toUpperCase();\n let isDone;\n let rejected = false;\n let req;\n\n if (lookup) {\n const _lookup = callbackify(lookup, (value) => utils.isArray(value) ? value : [value]);\n // hotfix to support opt.all option which is required for node 20.x\n lookup = (hostname, opt, cb) => {\n _lookup(hostname, opt, (err, arg0, arg1) => {\n if (err) {\n return cb(err);\n }\n\n const addresses = utils.isArray(arg0) ? arg0.map(addr => buildAddressEntry(addr)) : [buildAddressEntry(arg0, arg1)];\n\n opt.all ? cb(err, addresses) : cb(err, addresses[0].address, addresses[0].family);\n });\n }\n }\n\n // temporary internal emitter until the AxiosRequest class will be implemented\n const emitter = new EventEmitter();\n\n const onFinished = () => {\n if (config.cancelToken) {\n config.cancelToken.unsubscribe(abort);\n }\n\n if (config.signal) {\n config.signal.removeEventListener('abort', abort);\n }\n\n emitter.removeAllListeners();\n }\n\n onDone((value, isRejected) => {\n isDone = true;\n if (isRejected) {\n rejected = true;\n onFinished();\n }\n });\n\n function abort(reason) {\n emitter.emit('abort', !reason || reason.type ? new CanceledError(null, config, req) : reason);\n }\n\n emitter.once('abort', reject);\n\n if (config.cancelToken || config.signal) {\n config.cancelToken && config.cancelToken.subscribe(abort);\n if (config.signal) {\n config.signal.aborted ? abort() : config.signal.addEventListener('abort', abort);\n }\n }\n\n // Parse url\n const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls);\n const parsed = new URL(fullPath, platform.hasBrowserEnv ? platform.origin : undefined);\n const protocol = parsed.protocol || supportedProtocols[0];\n\n if (protocol === 'data:') {\n let convertedData;\n\n if (method !== 'GET') {\n return settle(resolve, reject, {\n status: 405,\n statusText: 'method not allowed',\n headers: {},\n config\n });\n }\n\n try {\n convertedData = fromDataURI(config.url, responseType === 'blob', {\n Blob: config.env && config.env.Blob\n });\n } catch (err) {\n throw AxiosError.from(err, AxiosError.ERR_BAD_REQUEST, config);\n }\n\n if (responseType === 'text') {\n convertedData = convertedData.toString(responseEncoding);\n\n if (!responseEncoding || responseEncoding === 'utf8') {\n convertedData = utils.stripBOM(convertedData);\n }\n } else if (responseType === 'stream') {\n convertedData = stream.Readable.from(convertedData);\n }\n\n return settle(resolve, reject, {\n data: convertedData,\n status: 200,\n statusText: 'OK',\n headers: new AxiosHeaders(),\n config\n });\n }\n\n if (supportedProtocols.indexOf(protocol) === -1) {\n return reject(new AxiosError(\n 'Unsupported protocol ' + protocol,\n AxiosError.ERR_BAD_REQUEST,\n config\n ));\n }\n\n const headers = AxiosHeaders.from(config.headers).normalize();\n\n // Set User-Agent (required by some servers)\n // See https://github.com/axios/axios/issues/69\n // User-Agent is specified; handle case where no UA header is desired\n // Only set header if it hasn't been set in config\n headers.set('User-Agent', 'axios/' + VERSION, false);\n\n const {onUploadProgress, onDownloadProgress} = config;\n const maxRate = config.maxRate;\n let maxUploadRate = undefined;\n let maxDownloadRate = undefined;\n\n // support for spec compliant FormData objects\n if (utils.isSpecCompliantForm(data)) {\n const userBoundary = headers.getContentType(/boundary=([-_\\w\\d]{10,70})/i);\n\n data = formDataToStream(data, (formHeaders) => {\n headers.set(formHeaders);\n }, {\n tag: `axios-${VERSION}-boundary`,\n boundary: userBoundary && userBoundary[1] || undefined\n });\n // support for https://www.npmjs.com/package/form-data api\n } else if (utils.isFormData(data) && utils.isFunction(data.getHeaders)) {\n headers.set(data.getHeaders());\n\n if (!headers.hasContentLength()) {\n try {\n const knownLength = await util.promisify(data.getLength).call(data);\n Number.isFinite(knownLength) && knownLength >= 0 && headers.setContentLength(knownLength);\n /*eslint no-empty:0*/\n } catch (e) {\n }\n }\n } else if (utils.isBlob(data) || utils.isFile(data)) {\n data.size && headers.setContentType(data.type || 'application/octet-stream');\n headers.setContentLength(data.size || 0);\n data = stream.Readable.from(readBlob(data));\n } else if (data && !utils.isStream(data)) {\n if (Buffer.isBuffer(data)) {\n // Nothing to do...\n } else if (utils.isArrayBuffer(data)) {\n data = Buffer.from(new Uint8Array(data));\n } else if (utils.isString(data)) {\n data = Buffer.from(data, 'utf-8');\n } else {\n return reject(new AxiosError(\n 'Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream',\n AxiosError.ERR_BAD_REQUEST,\n config\n ));\n }\n\n // Add Content-Length header if data exists\n headers.setContentLength(data.length, false);\n\n if (config.maxBodyLength > -1 && data.length > config.maxBodyLength) {\n return reject(new AxiosError(\n 'Request body larger than maxBodyLength limit',\n AxiosError.ERR_BAD_REQUEST,\n config\n ));\n }\n }\n\n const contentLength = utils.toFiniteNumber(headers.getContentLength());\n\n if (utils.isArray(maxRate)) {\n maxUploadRate = maxRate[0];\n maxDownloadRate = maxRate[1];\n } else {\n maxUploadRate = maxDownloadRate = maxRate;\n }\n\n if (data && (onUploadProgress || maxUploadRate)) {\n if (!utils.isStream(data)) {\n data = stream.Readable.from(data, {objectMode: false});\n }\n\n data = stream.pipeline([data, new AxiosTransformStream({\n maxRate: utils.toFiniteNumber(maxUploadRate)\n })], utils.noop);\n\n onUploadProgress && data.on('progress', flushOnFinish(\n data,\n progressEventDecorator(\n contentLength,\n progressEventReducer(asyncDecorator(onUploadProgress), false, 3)\n )\n ));\n }\n\n // HTTP basic authentication\n let auth = undefined;\n if (config.auth) {\n const username = config.auth.username || '';\n const password = config.auth.password || '';\n auth = username + ':' + password;\n }\n\n if (!auth && parsed.username) {\n const urlUsername = parsed.username;\n const urlPassword = parsed.password;\n auth = urlUsername + ':' + urlPassword;\n }\n\n auth && headers.delete('authorization');\n\n let path;\n\n try {\n path = buildURL(\n parsed.pathname + parsed.search,\n config.params,\n config.paramsSerializer\n ).replace(/^\\?/, '');\n } catch (err) {\n const customErr = new Error(err.message);\n customErr.config = config;\n customErr.url = config.url;\n customErr.exists = true;\n return reject(customErr);\n }\n\n headers.set(\n 'Accept-Encoding',\n 'gzip, compress, deflate' + (isBrotliSupported ? ', br' : ''), false\n );\n\n const options = {\n path,\n method: method,\n headers: headers.toJSON(),\n agents: { http: config.httpAgent, https: config.httpsAgent },\n auth,\n protocol,\n family,\n beforeRedirect: dispatchBeforeRedirect,\n beforeRedirects: {}\n };\n\n // cacheable-lookup integration hotfix\n !utils.isUndefined(lookup) && (options.lookup = lookup);\n\n if (config.socketPath) {\n options.socketPath = config.socketPath;\n } else {\n options.hostname = parsed.hostname.startsWith(\"[\") ? parsed.hostname.slice(1, -1) : parsed.hostname;\n options.port = parsed.port;\n setProxy(options, config.proxy, protocol + '//' + parsed.hostname + (parsed.port ? ':' + parsed.port : '') + options.path);\n }\n\n let transport;\n const isHttpsRequest = isHttps.test(options.protocol);\n options.agent = isHttpsRequest ? config.httpsAgent : config.httpAgent;\n if (config.transport) {\n transport = config.transport;\n } else if (config.maxRedirects === 0) {\n transport = isHttpsRequest ? https : http;\n } else {\n if (config.maxRedirects) {\n options.maxRedirects = config.maxRedirects;\n }\n if (config.beforeRedirect) {\n options.beforeRedirects.config = config.beforeRedirect;\n }\n transport = isHttpsRequest ? httpsFollow : httpFollow;\n }\n\n if (config.maxBodyLength > -1) {\n options.maxBodyLength = config.maxBodyLength;\n } else {\n // follow-redirects does not skip comparison, so it should always succeed for axios -1 unlimited\n options.maxBodyLength = Infinity;\n }\n\n if (config.insecureHTTPParser) {\n options.insecureHTTPParser = config.insecureHTTPParser;\n }\n\n // Create the request\n req = transport.request(options, function handleResponse(res) {\n if (req.destroyed) return;\n\n const streams = [res];\n\n const responseLength = +res.headers['content-length'];\n\n if (onDownloadProgress || maxDownloadRate) {\n const transformStream = new AxiosTransformStream({\n maxRate: utils.toFiniteNumber(maxDownloadRate)\n });\n\n onDownloadProgress && transformStream.on('progress', flushOnFinish(\n transformStream,\n progressEventDecorator(\n responseLength,\n progressEventReducer(asyncDecorator(onDownloadProgress), true, 3)\n )\n ));\n\n streams.push(transformStream);\n }\n\n // decompress the response body transparently if required\n let responseStream = res;\n\n // return the last request in case of redirects\n const lastRequest = res.req || req;\n\n // if decompress disabled we should not decompress\n if (config.decompress !== false && res.headers['content-encoding']) {\n // if no content, but headers still say that it is encoded,\n // remove the header not confuse downstream operations\n if (method === 'HEAD' || res.statusCode === 204) {\n delete res.headers['content-encoding'];\n }\n\n switch ((res.headers['content-encoding'] || '').toLowerCase()) {\n /*eslint default-case:0*/\n case 'gzip':\n case 'x-gzip':\n case 'compress':\n case 'x-compress':\n // add the unzipper to the body stream processing pipeline\n streams.push(zlib.createUnzip(zlibOptions));\n\n // remove the content-encoding in order to not confuse downstream operations\n delete res.headers['content-encoding'];\n break;\n case 'deflate':\n streams.push(new ZlibHeaderTransformStream());\n\n // add the unzipper to the body stream processing pipeline\n streams.push(zlib.createUnzip(zlibOptions));\n\n // remove the content-encoding in order to not confuse downstream operations\n delete res.headers['content-encoding'];\n break;\n case 'br':\n if (isBrotliSupported) {\n streams.push(zlib.createBrotliDecompress(brotliOptions));\n delete res.headers['content-encoding'];\n }\n }\n }\n\n responseStream = streams.length > 1 ? stream.pipeline(streams, utils.noop) : streams[0];\n\n const offListeners = stream.finished(responseStream, () => {\n offListeners();\n onFinished();\n });\n\n const response = {\n status: res.statusCode,\n statusText: res.statusMessage,\n headers: new AxiosHeaders(res.headers),\n config,\n request: lastRequest\n };\n\n if (responseType === 'stream') {\n response.data = responseStream;\n settle(resolve, reject, response);\n } else {\n const responseBuffer = [];\n let totalResponseBytes = 0;\n\n responseStream.on('data', function handleStreamData(chunk) {\n responseBuffer.push(chunk);\n totalResponseBytes += chunk.length;\n\n // make sure the content length is not over the maxContentLength if specified\n if (config.maxContentLength > -1 && totalResponseBytes > config.maxContentLength) {\n // stream.destroy() emit aborted event before calling reject() on Node.js v16\n rejected = true;\n responseStream.destroy();\n reject(new AxiosError('maxContentLength size of ' + config.maxContentLength + ' exceeded',\n AxiosError.ERR_BAD_RESPONSE, config, lastRequest));\n }\n });\n\n responseStream.on('aborted', function handlerStreamAborted() {\n if (rejected) {\n return;\n }\n\n const err = new AxiosError(\n 'stream has been aborted',\n AxiosError.ERR_BAD_RESPONSE,\n config,\n lastRequest\n );\n responseStream.destroy(err);\n reject(err);\n });\n\n responseStream.on('error', function handleStreamError(err) {\n if (req.destroyed) return;\n reject(AxiosError.from(err, null, config, lastRequest));\n });\n\n responseStream.on('end', function handleStreamEnd() {\n try {\n let responseData = responseBuffer.length === 1 ? responseBuffer[0] : Buffer.concat(responseBuffer);\n if (responseType !== 'arraybuffer') {\n responseData = responseData.toString(responseEncoding);\n if (!responseEncoding || responseEncoding === 'utf8') {\n responseData = utils.stripBOM(responseData);\n }\n }\n response.data = responseData;\n } catch (err) {\n return reject(AxiosError.from(err, null, config, response.request, response));\n }\n settle(resolve, reject, response);\n });\n }\n\n emitter.once('abort', err => {\n if (!responseStream.destroyed) {\n responseStream.emit('error', err);\n responseStream.destroy();\n }\n });\n });\n\n emitter.once('abort', err => {\n reject(err);\n req.destroy(err);\n });\n\n // Handle errors\n req.on('error', function handleRequestError(err) {\n // @todo remove\n // if (req.aborted && err.code !== AxiosError.ERR_FR_TOO_MANY_REDIRECTS) return;\n reject(AxiosError.from(err, null, config, req));\n });\n\n // set tcp keep alive to prevent drop connection by peer\n req.on('socket', function handleRequestSocket(socket) {\n // default interval of sending ack packet is 1 minute\n socket.setKeepAlive(true, 1000 * 60);\n });\n\n // Handle request timeout\n if (config.timeout) {\n // This is forcing a int timeout to avoid problems if the `req` interface doesn't handle other types.\n const timeout = parseInt(config.timeout, 10);\n\n if (Number.isNaN(timeout)) {\n reject(new AxiosError(\n 'error trying to parse `config.timeout` to int',\n AxiosError.ERR_BAD_OPTION_VALUE,\n config,\n req\n ));\n\n return;\n }\n\n // Sometime, the response will be very slow, and does not respond, the connect event will be block by event loop system.\n // And timer callback will be fired, and abort() will be invoked before connection, then get \"socket hang up\" and code ECONNRESET.\n // At this time, if we have a large number of request, nodejs will hang up some socket on background. and the number will up and up.\n // And then these socket which be hang up will devouring CPU little by little.\n // ClientRequest.setTimeout will be fired on the specify milliseconds, and can make sure that abort() will be fired after connect.\n req.setTimeout(timeout, function handleRequestTimeout() {\n if (isDone) return;\n let timeoutErrorMessage = config.timeout ? 'timeout of ' + config.timeout + 'ms exceeded' : 'timeout exceeded';\n const transitional = config.transitional || transitionalDefaults;\n if (config.timeoutErrorMessage) {\n timeoutErrorMessage = config.timeoutErrorMessage;\n }\n reject(new AxiosError(\n timeoutErrorMessage,\n transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED,\n config,\n req\n ));\n abort();\n });\n }\n\n\n // Send the request\n if (utils.isStream(data)) {\n let ended = false;\n let errored = false;\n\n data.on('end', () => {\n ended = true;\n });\n\n data.once('error', err => {\n errored = true;\n req.destroy(err);\n });\n\n data.on('close', () => {\n if (!ended && !errored) {\n abort(new CanceledError('Request stream has been aborted', config, req));\n }\n });\n\n data.pipe(req);\n } else {\n req.end(data);\n }\n });\n}\n\nexport const __setProxy = setProxy;\n","import utils from './../utils.js';\nimport settle from './../core/settle.js';\nimport transitionalDefaults from '../defaults/transitional.js';\nimport AxiosError from '../core/AxiosError.js';\nimport CanceledError from '../cancel/CanceledError.js';\nimport parseProtocol from '../helpers/parseProtocol.js';\nimport platform from '../platform/index.js';\nimport AxiosHeaders from '../core/AxiosHeaders.js';\nimport {progressEventReducer} from '../helpers/progressEventReducer.js';\nimport resolveConfig from \"../helpers/resolveConfig.js\";\n\nconst isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';\n\nexport default isXHRAdapterSupported && function (config) {\n return new Promise(function dispatchXhrRequest(resolve, reject) {\n const _config = resolveConfig(config);\n let requestData = _config.data;\n const requestHeaders = AxiosHeaders.from(_config.headers).normalize();\n let {responseType, onUploadProgress, onDownloadProgress} = _config;\n let onCanceled;\n let uploadThrottled, downloadThrottled;\n let flushUpload, flushDownload;\n\n function done() {\n flushUpload && flushUpload(); // flush events\n flushDownload && flushDownload(); // flush events\n\n _config.cancelToken && _config.cancelToken.unsubscribe(onCanceled);\n\n _config.signal && _config.signal.removeEventListener('abort', onCanceled);\n }\n\n let request = new XMLHttpRequest();\n\n request.open(_config.method.toUpperCase(), _config.url, true);\n\n // Set the request timeout in MS\n request.timeout = _config.timeout;\n\n function onloadend() {\n if (!request) {\n return;\n }\n // Prepare the response\n const responseHeaders = AxiosHeaders.from(\n 'getAllResponseHeaders' in request && request.getAllResponseHeaders()\n );\n const responseData = !responseType || responseType === 'text' || responseType === 'json' ?\n request.responseText : request.response;\n const response = {\n data: responseData,\n status: request.status,\n statusText: request.statusText,\n headers: responseHeaders,\n config,\n request\n };\n\n settle(function _resolve(value) {\n resolve(value);\n done();\n }, function _reject(err) {\n reject(err);\n done();\n }, response);\n\n // Clean up request\n request = null;\n }\n\n if ('onloadend' in request) {\n // Use onloadend if available\n request.onloadend = onloadend;\n } else {\n // Listen for ready state to emulate onloadend\n request.onreadystatechange = function handleLoad() {\n if (!request || request.readyState !== 4) {\n return;\n }\n\n // The request errored out and we didn't get a response, this will be\n // handled by onerror instead\n // With one exception: request that using file: protocol, most browsers\n // will return status as 0 even though it's a successful request\n if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {\n return;\n }\n // readystate handler is calling before onerror or ontimeout handlers,\n // so we should call onloadend on the next 'tick'\n setTimeout(onloadend);\n };\n }\n\n // Handle browser request cancellation (as opposed to a manual cancellation)\n request.onabort = function handleAbort() {\n if (!request) {\n return;\n }\n\n reject(new AxiosError('Request aborted', AxiosError.ECONNABORTED, config, request));\n\n // Clean up request\n request = null;\n };\n\n // Handle low level network errors\n request.onerror = function handleError() {\n // Real errors are hidden from us by the browser\n // onerror should only fire if it's a network error\n reject(new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request));\n\n // Clean up request\n request = null;\n };\n\n // Handle timeout\n request.ontimeout = function handleTimeout() {\n let timeoutErrorMessage = _config.timeout ? 'timeout of ' + _config.timeout + 'ms exceeded' : 'timeout exceeded';\n const transitional = _config.transitional || transitionalDefaults;\n if (_config.timeoutErrorMessage) {\n timeoutErrorMessage = _config.timeoutErrorMessage;\n }\n reject(new AxiosError(\n timeoutErrorMessage,\n transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED,\n config,\n request));\n\n // Clean up request\n request = null;\n };\n\n // Remove Content-Type if data is undefined\n requestData === undefined && requestHeaders.setContentType(null);\n\n // Add headers to the request\n if ('setRequestHeader' in request) {\n utils.forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) {\n request.setRequestHeader(key, val);\n });\n }\n\n // Add withCredentials to request if needed\n if (!utils.isUndefined(_config.withCredentials)) {\n request.withCredentials = !!_config.withCredentials;\n }\n\n // Add responseType to request if needed\n if (responseType && responseType !== 'json') {\n request.responseType = _config.responseType;\n }\n\n // Handle progress if needed\n if (onDownloadProgress) {\n ([downloadThrottled, flushDownload] = progressEventReducer(onDownloadProgress, true));\n request.addEventListener('progress', downloadThrottled);\n }\n\n // Not all browsers support upload events\n if (onUploadProgress && request.upload) {\n ([uploadThrottled, flushUpload] = progressEventReducer(onUploadProgress));\n\n request.upload.addEventListener('progress', uploadThrottled);\n\n request.upload.addEventListener('loadend', flushUpload);\n }\n\n if (_config.cancelToken || _config.signal) {\n // Handle cancellation\n // eslint-disable-next-line func-names\n onCanceled = cancel => {\n if (!request) {\n return;\n }\n reject(!cancel || cancel.type ? new CanceledError(null, config, request) : cancel);\n request.abort();\n request = null;\n };\n\n _config.cancelToken && _config.cancelToken.subscribe(onCanceled);\n if (_config.signal) {\n _config.signal.aborted ? onCanceled() : _config.signal.addEventListener('abort', onCanceled);\n }\n }\n\n const protocol = parseProtocol(_config.url);\n\n if (protocol && platform.protocols.indexOf(protocol) === -1) {\n reject(new AxiosError('Unsupported protocol ' + protocol + ':', AxiosError.ERR_BAD_REQUEST, config));\n return;\n }\n\n\n // Send the request\n request.send(requestData || null);\n });\n}\n","'use strict';\n\nimport utils from './utils.js';\nimport bind from './helpers/bind.js';\nimport Axios from './core/Axios.js';\nimport mergeConfig from './core/mergeConfig.js';\nimport defaults from './defaults/index.js';\nimport formDataToJSON from './helpers/formDataToJSON.js';\nimport CanceledError from './cancel/CanceledError.js';\nimport CancelToken from './cancel/CancelToken.js';\nimport isCancel from './cancel/isCancel.js';\nimport {VERSION} from './env/data.js';\nimport toFormData from './helpers/toFormData.js';\nimport AxiosError from './core/AxiosError.js';\nimport spread from './helpers/spread.js';\nimport isAxiosError from './helpers/isAxiosError.js';\nimport AxiosHeaders from \"./core/AxiosHeaders.js\";\nimport adapters from './adapters/adapters.js';\nimport HttpStatusCode from './helpers/HttpStatusCode.js';\n\n/**\n * Create an instance of Axios\n *\n * @param {Object} defaultConfig The default config for the instance\n *\n * @returns {Axios} A new instance of Axios\n */\nfunction createInstance(defaultConfig) {\n const context = new Axios(defaultConfig);\n const instance = bind(Axios.prototype.request, context);\n\n // Copy axios.prototype to instance\n utils.extend(instance, Axios.prototype, context, {allOwnKeys: true});\n\n // Copy context to instance\n utils.extend(instance, context, null, {allOwnKeys: true});\n\n // Factory for creating new instances\n instance.create = function create(instanceConfig) {\n return createInstance(mergeConfig(defaultConfig, instanceConfig));\n };\n\n return instance;\n}\n\n// Create the default instance to be exported\nconst axios = createInstance(defaults);\n\n// Expose Axios class to allow class inheritance\naxios.Axios = Axios;\n\n// Expose Cancel & CancelToken\naxios.CanceledError = CanceledError;\naxios.CancelToken = CancelToken;\naxios.isCancel = isCancel;\naxios.VERSION = VERSION;\naxios.toFormData = toFormData;\n\n// Expose AxiosError class\naxios.AxiosError = AxiosError;\n\n// alias for CanceledError for backward compatibility\naxios.Cancel = axios.CanceledError;\n\n// Expose all/spread\naxios.all = function all(promises) {\n return Promise.all(promises);\n};\n\naxios.spread = spread;\n\n// Expose isAxiosError\naxios.isAxiosError = isAxiosError;\n\n// Expose mergeConfig\naxios.mergeConfig = mergeConfig;\n\naxios.AxiosHeaders = AxiosHeaders;\n\naxios.formToJSON = thing => formDataToJSON(utils.isHTMLForm(thing) ? new FormData(thing) : thing);\n\naxios.getAdapter = adapters.getAdapter;\n\naxios.HttpStatusCode = HttpStatusCode;\n\naxios.default = axios;\n\n// this module should only have a default export\nexport default axios\n","'use strict';\n\nimport CanceledError from './CanceledError.js';\n\n/**\n * A `CancelToken` is an object that can be used to request cancellation of an operation.\n *\n * @param {Function} executor The executor function.\n *\n * @returns {CancelToken}\n */\nclass CancelToken {\n constructor(executor) {\n if (typeof executor !== 'function') {\n throw new TypeError('executor must be a function.');\n }\n\n let resolvePromise;\n\n this.promise = new Promise(function promiseExecutor(resolve) {\n resolvePromise = resolve;\n });\n\n const token = this;\n\n // eslint-disable-next-line func-names\n this.promise.then(cancel => {\n if (!token._listeners) return;\n\n let i = token._listeners.length;\n\n while (i-- > 0) {\n token._listeners[i](cancel);\n }\n token._listeners = null;\n });\n\n // eslint-disable-next-line func-names\n this.promise.then = onfulfilled => {\n let _resolve;\n // eslint-disable-next-line func-names\n const promise = new Promise(resolve => {\n token.subscribe(resolve);\n _resolve = resolve;\n }).then(onfulfilled);\n\n promise.cancel = function reject() {\n token.unsubscribe(_resolve);\n };\n\n return promise;\n };\n\n executor(function cancel(message, config, request) {\n if (token.reason) {\n // Cancellation has already been requested\n return;\n }\n\n token.reason = new CanceledError(message, config, request);\n resolvePromise(token.reason);\n });\n }\n\n /**\n * Throws a `CanceledError` if cancellation has been requested.\n */\n throwIfRequested() {\n if (this.reason) {\n throw this.reason;\n }\n }\n\n /**\n * Subscribe to the cancel signal\n */\n\n subscribe(listener) {\n if (this.reason) {\n listener(this.reason);\n return;\n }\n\n if (this._listeners) {\n this._listeners.push(listener);\n } else {\n this._listeners = [listener];\n }\n }\n\n /**\n * Unsubscribe from the cancel signal\n */\n\n unsubscribe(listener) {\n if (!this._listeners) {\n return;\n }\n const index = this._listeners.indexOf(listener);\n if (index !== -1) {\n this._listeners.splice(index, 1);\n }\n }\n\n toAbortSignal() {\n const controller = new AbortController();\n\n const abort = (err) => {\n controller.abort(err);\n };\n\n this.subscribe(abort);\n\n controller.signal.unsubscribe = () => this.unsubscribe(abort);\n\n return controller.signal;\n }\n\n /**\n * Returns an object that contains a new `CancelToken` and a function that, when called,\n * cancels the `CancelToken`.\n */\n static source() {\n let cancel;\n const token = new CancelToken(function executor(c) {\n cancel = c;\n });\n return {\n token,\n cancel\n };\n }\n}\n\nexport default CancelToken;\n","'use strict';\n\nimport AxiosError from '../core/AxiosError.js';\nimport utils from '../utils.js';\n\n/**\n * A `CanceledError` is an object that is thrown when an operation is canceled.\n *\n * @param {string=} message The message.\n * @param {Object=} config The config.\n * @param {Object=} request The request.\n *\n * @returns {CanceledError} The created error.\n */\nfunction CanceledError(message, config, request) {\n // eslint-disable-next-line no-eq-null,eqeqeq\n AxiosError.call(this, message == null ? 'canceled' : message, AxiosError.ERR_CANCELED, config, request);\n this.name = 'CanceledError';\n}\n\nutils.inherits(CanceledError, AxiosError, {\n __CANCEL__: true\n});\n\nexport default CanceledError;\n","'use strict';\n\nexport default function isCancel(value) {\n return !!(value && value.__CANCEL__);\n}\n","'use strict';\n\nimport utils from './../utils.js';\nimport buildURL from '../helpers/buildURL.js';\nimport InterceptorManager from './InterceptorManager.js';\nimport dispatchRequest from './dispatchRequest.js';\nimport mergeConfig from './mergeConfig.js';\nimport buildFullPath from './buildFullPath.js';\nimport validator from '../helpers/validator.js';\nimport AxiosHeaders from './AxiosHeaders.js';\n\nconst validators = validator.validators;\n\n/**\n * Create a new instance of Axios\n *\n * @param {Object} instanceConfig The default config for the instance\n *\n * @return {Axios} A new instance of Axios\n */\nclass Axios {\n constructor(instanceConfig) {\n this.defaults = instanceConfig;\n this.interceptors = {\n request: new InterceptorManager(),\n response: new InterceptorManager()\n };\n }\n\n /**\n * Dispatch a request\n *\n * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)\n * @param {?Object} config\n *\n * @returns {Promise} The Promise to be fulfilled\n */\n async request(configOrUrl, config) {\n try {\n return await this._request(configOrUrl, config);\n } catch (err) {\n if (err instanceof Error) {\n let dummy = {};\n\n Error.captureStackTrace ? Error.captureStackTrace(dummy) : (dummy = new Error());\n\n // slice off the Error: ... line\n const stack = dummy.stack ? dummy.stack.replace(/^.+\\n/, '') : '';\n try {\n if (!err.stack) {\n err.stack = stack;\n // match without the 2 top stack lines\n } else if (stack && !String(err.stack).endsWith(stack.replace(/^.+\\n.+\\n/, ''))) {\n err.stack += '\\n' + stack\n }\n } catch (e) {\n // ignore the case where \"stack\" is an un-writable property\n }\n }\n\n throw err;\n }\n }\n\n _request(configOrUrl, config) {\n /*eslint no-param-reassign:0*/\n // Allow for axios('example/url'[, config]) a la fetch API\n if (typeof configOrUrl === 'string') {\n config = config || {};\n config.url = configOrUrl;\n } else {\n config = configOrUrl || {};\n }\n\n config = mergeConfig(this.defaults, config);\n\n const {transitional, paramsSerializer, headers} = config;\n\n if (transitional !== undefined) {\n validator.assertOptions(transitional, {\n silentJSONParsing: validators.transitional(validators.boolean),\n forcedJSONParsing: validators.transitional(validators.boolean),\n clarifyTimeoutError: validators.transitional(validators.boolean)\n }, false);\n }\n\n if (paramsSerializer != null) {\n if (utils.isFunction(paramsSerializer)) {\n config.paramsSerializer = {\n serialize: paramsSerializer\n }\n } else {\n validator.assertOptions(paramsSerializer, {\n encode: validators.function,\n serialize: validators.function\n }, true);\n }\n }\n\n // Set config.allowAbsoluteUrls\n if (config.allowAbsoluteUrls !== undefined) {\n // do nothing\n } else if (this.defaults.allowAbsoluteUrls !== undefined) {\n config.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls;\n } else {\n config.allowAbsoluteUrls = true;\n }\n\n validator.assertOptions(config, {\n baseUrl: validators.spelling('baseURL'),\n withXsrfToken: validators.spelling('withXSRFToken')\n }, true);\n\n // Set config.method\n config.method = (config.method || this.defaults.method || 'get').toLowerCase();\n\n // Flatten headers\n let contextHeaders = headers && utils.merge(\n headers.common,\n headers[config.method]\n );\n\n headers && utils.forEach(\n ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],\n (method) => {\n delete headers[method];\n }\n );\n\n config.headers = AxiosHeaders.concat(contextHeaders, headers);\n\n // filter out skipped interceptors\n const requestInterceptorChain = [];\n let synchronousRequestInterceptors = true;\n this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {\n if (typeof interceptor.runWhen === 'function' && interceptor.runWhen(config) === false) {\n return;\n }\n\n synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;\n\n requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);\n });\n\n const responseInterceptorChain = [];\n this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {\n responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);\n });\n\n let promise;\n let i = 0;\n let len;\n\n if (!synchronousRequestInterceptors) {\n const chain = [dispatchRequest.bind(this), undefined];\n chain.unshift.apply(chain, requestInterceptorChain);\n chain.push.apply(chain, responseInterceptorChain);\n len = chain.length;\n\n promise = Promise.resolve(config);\n\n while (i < len) {\n promise = promise.then(chain[i++], chain[i++]);\n }\n\n return promise;\n }\n\n len = requestInterceptorChain.length;\n\n let newConfig = config;\n\n i = 0;\n\n while (i < len) {\n const onFulfilled = requestInterceptorChain[i++];\n const onRejected = requestInterceptorChain[i++];\n try {\n newConfig = onFulfilled(newConfig);\n } catch (error) {\n onRejected.call(this, error);\n break;\n }\n }\n\n try {\n promise = dispatchRequest.call(this, newConfig);\n } catch (error) {\n return Promise.reject(error);\n }\n\n i = 0;\n len = responseInterceptorChain.length;\n\n while (i < len) {\n promise = promise.then(responseInterceptorChain[i++], responseInterceptorChain[i++]);\n }\n\n return promise;\n }\n\n getUri(config) {\n config = mergeConfig(this.defaults, config);\n const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls);\n return buildURL(fullPath, config.params, config.paramsSerializer);\n }\n}\n\n// Provide aliases for supported request methods\nutils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {\n /*eslint func-names:0*/\n Axios.prototype[method] = function(url, config) {\n return this.request(mergeConfig(config || {}, {\n method,\n url,\n data: (config || {}).data\n }));\n };\n});\n\nutils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n /*eslint func-names:0*/\n\n function generateHTTPMethod(isForm) {\n return function httpMethod(url, data, config) {\n return this.request(mergeConfig(config || {}, {\n method,\n headers: isForm ? {\n 'Content-Type': 'multipart/form-data'\n } : {},\n url,\n data\n }));\n };\n }\n\n Axios.prototype[method] = generateHTTPMethod();\n\n Axios.prototype[method + 'Form'] = generateHTTPMethod(true);\n});\n\nexport default Axios;\n","'use strict';\n\nimport utils from '../utils.js';\n\n/**\n * Create an Error with the specified message, config, error code, request and response.\n *\n * @param {string} message The error message.\n * @param {string} [code] The error code (for example, 'ECONNABORTED').\n * @param {Object} [config] The config.\n * @param {Object} [request] The request.\n * @param {Object} [response] The response.\n *\n * @returns {Error} The created error.\n */\nfunction AxiosError(message, code, config, request, response) {\n Error.call(this);\n\n if (Error.captureStackTrace) {\n Error.captureStackTrace(this, this.constructor);\n } else {\n this.stack = (new Error()).stack;\n }\n\n this.message = message;\n this.name = 'AxiosError';\n code && (this.code = code);\n config && (this.config = config);\n request && (this.request = request);\n if (response) {\n this.response = response;\n this.status = response.status ? response.status : null;\n }\n}\n\nutils.inherits(AxiosError, Error, {\n toJSON: function toJSON() {\n return {\n // Standard\n message: this.message,\n name: this.name,\n // Microsoft\n description: this.description,\n number: this.number,\n // Mozilla\n fileName: this.fileName,\n lineNumber: this.lineNumber,\n columnNumber: this.columnNumber,\n stack: this.stack,\n // Axios\n config: utils.toJSONObject(this.config),\n code: this.code,\n status: this.status\n };\n }\n});\n\nconst prototype = AxiosError.prototype;\nconst descriptors = {};\n\n[\n 'ERR_BAD_OPTION_VALUE',\n 'ERR_BAD_OPTION',\n 'ECONNABORTED',\n 'ETIMEDOUT',\n 'ERR_NETWORK',\n 'ERR_FR_TOO_MANY_REDIRECTS',\n 'ERR_DEPRECATED',\n 'ERR_BAD_RESPONSE',\n 'ERR_BAD_REQUEST',\n 'ERR_CANCELED',\n 'ERR_NOT_SUPPORT',\n 'ERR_INVALID_URL'\n// eslint-disable-next-line func-names\n].forEach(code => {\n descriptors[code] = {value: code};\n});\n\nObject.defineProperties(AxiosError, descriptors);\nObject.defineProperty(prototype, 'isAxiosError', {value: true});\n\n// eslint-disable-next-line func-names\nAxiosError.from = (error, code, config, request, response, customProps) => {\n const axiosError = Object.create(prototype);\n\n utils.toFlatObject(error, axiosError, function filter(obj) {\n return obj !== Error.prototype;\n }, prop => {\n return prop !== 'isAxiosError';\n });\n\n AxiosError.call(axiosError, error.message, code, config, request, response);\n\n axiosError.cause = error;\n\n axiosError.name = error.name;\n\n customProps && Object.assign(axiosError, customProps);\n\n return axiosError;\n};\n\nexport default AxiosError;\n","'use strict';\n\nimport utils from '../utils.js';\nimport parseHeaders from '../helpers/parseHeaders.js';\n\nconst $internals = Symbol('internals');\n\nfunction normalizeHeader(header) {\n return header && String(header).trim().toLowerCase();\n}\n\nfunction normalizeValue(value) {\n if (value === false || value == null) {\n return value;\n }\n\n return utils.isArray(value) ? value.map(normalizeValue) : String(value);\n}\n\nfunction parseTokens(str) {\n const tokens = Object.create(null);\n const tokensRE = /([^\\s,;=]+)\\s*(?:=\\s*([^,;]+))?/g;\n let match;\n\n while ((match = tokensRE.exec(str))) {\n tokens[match[1]] = match[2];\n }\n\n return tokens;\n}\n\nconst isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());\n\nfunction matchHeaderValue(context, value, header, filter, isHeaderNameFilter) {\n if (utils.isFunction(filter)) {\n return filter.call(this, value, header);\n }\n\n if (isHeaderNameFilter) {\n value = header;\n }\n\n if (!utils.isString(value)) return;\n\n if (utils.isString(filter)) {\n return value.indexOf(filter) !== -1;\n }\n\n if (utils.isRegExp(filter)) {\n return filter.test(value);\n }\n}\n\nfunction formatHeader(header) {\n return header.trim()\n .toLowerCase().replace(/([a-z\\d])(\\w*)/g, (w, char, str) => {\n return char.toUpperCase() + str;\n });\n}\n\nfunction buildAccessors(obj, header) {\n const accessorName = utils.toCamelCase(' ' + header);\n\n ['get', 'set', 'has'].forEach(methodName => {\n Object.defineProperty(obj, methodName + accessorName, {\n value: function(arg1, arg2, arg3) {\n return this[methodName].call(this, header, arg1, arg2, arg3);\n },\n configurable: true\n });\n });\n}\n\nclass AxiosHeaders {\n constructor(headers) {\n headers && this.set(headers);\n }\n\n set(header, valueOrRewrite, rewrite) {\n const self = this;\n\n function setHeader(_value, _header, _rewrite) {\n const lHeader = normalizeHeader(_header);\n\n if (!lHeader) {\n throw new Error('header name must be a non-empty string');\n }\n\n const key = utils.findKey(self, lHeader);\n\n if(!key || self[key] === undefined || _rewrite === true || (_rewrite === undefined && self[key] !== false)) {\n self[key || _header] = normalizeValue(_value);\n }\n }\n\n const setHeaders = (headers, _rewrite) =>\n utils.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));\n\n if (utils.isPlainObject(header) || header instanceof this.constructor) {\n setHeaders(header, valueOrRewrite)\n } else if(utils.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {\n setHeaders(parseHeaders(header), valueOrRewrite);\n } else if (utils.isHeaders(header)) {\n for (const [key, value] of header.entries()) {\n setHeader(value, key, rewrite);\n }\n } else {\n header != null && setHeader(valueOrRewrite, header, rewrite);\n }\n\n return this;\n }\n\n get(header, parser) {\n header = normalizeHeader(header);\n\n if (header) {\n const key = utils.findKey(this, header);\n\n if (key) {\n const value = this[key];\n\n if (!parser) {\n return value;\n }\n\n if (parser === true) {\n return parseTokens(value);\n }\n\n if (utils.isFunction(parser)) {\n return parser.call(this, value, key);\n }\n\n if (utils.isRegExp(parser)) {\n return parser.exec(value);\n }\n\n throw new TypeError('parser must be boolean|regexp|function');\n }\n }\n }\n\n has(header, matcher) {\n header = normalizeHeader(header);\n\n if (header) {\n const key = utils.findKey(this, header);\n\n return !!(key && this[key] !== undefined && (!matcher || matchHeaderValue(this, this[key], key, matcher)));\n }\n\n return false;\n }\n\n delete(header, matcher) {\n const self = this;\n let deleted = false;\n\n function deleteHeader(_header) {\n _header = normalizeHeader(_header);\n\n if (_header) {\n const key = utils.findKey(self, _header);\n\n if (key && (!matcher || matchHeaderValue(self, self[key], key, matcher))) {\n delete self[key];\n\n deleted = true;\n }\n }\n }\n\n if (utils.isArray(header)) {\n header.forEach(deleteHeader);\n } else {\n deleteHeader(header);\n }\n\n return deleted;\n }\n\n clear(matcher) {\n const keys = Object.keys(this);\n let i = keys.length;\n let deleted = false;\n\n while (i--) {\n const key = keys[i];\n if(!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {\n delete this[key];\n deleted = true;\n }\n }\n\n return deleted;\n }\n\n normalize(format) {\n const self = this;\n const headers = {};\n\n utils.forEach(this, (value, header) => {\n const key = utils.findKey(headers, header);\n\n if (key) {\n self[key] = normalizeValue(value);\n delete self[header];\n return;\n }\n\n const normalized = format ? formatHeader(header) : String(header).trim();\n\n if (normalized !== header) {\n delete self[header];\n }\n\n self[normalized] = normalizeValue(value);\n\n headers[normalized] = true;\n });\n\n return this;\n }\n\n concat(...targets) {\n return this.constructor.concat(this, ...targets);\n }\n\n toJSON(asStrings) {\n const obj = Object.create(null);\n\n utils.forEach(this, (value, header) => {\n value != null && value !== false && (obj[header] = asStrings && utils.isArray(value) ? value.join(', ') : value);\n });\n\n return obj;\n }\n\n [Symbol.iterator]() {\n return Object.entries(this.toJSON())[Symbol.iterator]();\n }\n\n toString() {\n return Object.entries(this.toJSON()).map(([header, value]) => header + ': ' + value).join('\\n');\n }\n\n get [Symbol.toStringTag]() {\n return 'AxiosHeaders';\n }\n\n static from(thing) {\n return thing instanceof this ? thing : new this(thing);\n }\n\n static concat(first, ...targets) {\n const computed = new this(first);\n\n targets.forEach((target) => computed.set(target));\n\n return computed;\n }\n\n static accessor(header) {\n const internals = this[$internals] = (this[$internals] = {\n accessors: {}\n });\n\n const accessors = internals.accessors;\n const prototype = this.prototype;\n\n function defineAccessor(_header) {\n const lHeader = normalizeHeader(_header);\n\n if (!accessors[lHeader]) {\n buildAccessors(prototype, _header);\n accessors[lHeader] = true;\n }\n }\n\n utils.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);\n\n return this;\n }\n}\n\nAxiosHeaders.accessor(['Content-Type', 'Content-Length', 'Accept', 'Accept-Encoding', 'User-Agent', 'Authorization']);\n\n// reserved names hotfix\nutils.reduceDescriptors(AxiosHeaders.prototype, ({value}, key) => {\n let mapped = key[0].toUpperCase() + key.slice(1); // map `set` => `Set`\n return {\n get: () => value,\n set(headerValue) {\n this[mapped] = headerValue;\n }\n }\n});\n\nutils.freezeMethods(AxiosHeaders);\n\nexport default AxiosHeaders;\n","'use strict';\n\nimport utils from './../utils.js';\n\nclass InterceptorManager {\n constructor() {\n this.handlers = [];\n }\n\n /**\n * Add a new interceptor to the stack\n *\n * @param {Function} fulfilled The function to handle `then` for a `Promise`\n * @param {Function} rejected The function to handle `reject` for a `Promise`\n *\n * @return {Number} An ID used to remove interceptor later\n */\n use(fulfilled, rejected, options) {\n this.handlers.push({\n fulfilled,\n rejected,\n synchronous: options ? options.synchronous : false,\n runWhen: options ? options.runWhen : null\n });\n return this.handlers.length - 1;\n }\n\n /**\n * Remove an interceptor from the stack\n *\n * @param {Number} id The ID that was returned by `use`\n *\n * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise\n */\n eject(id) {\n if (this.handlers[id]) {\n this.handlers[id] = null;\n }\n }\n\n /**\n * Clear all interceptors from the stack\n *\n * @returns {void}\n */\n clear() {\n if (this.handlers) {\n this.handlers = [];\n }\n }\n\n /**\n * Iterate over all the registered interceptors\n *\n * This method is particularly useful for skipping over any\n * interceptors that may have become `null` calling `eject`.\n *\n * @param {Function} fn The function to call for each interceptor\n *\n * @returns {void}\n */\n forEach(fn) {\n utils.forEach(this.handlers, function forEachHandler(h) {\n if (h !== null) {\n fn(h);\n }\n });\n }\n}\n\nexport default InterceptorManager;\n","'use strict';\n\nimport isAbsoluteURL from '../helpers/isAbsoluteURL.js';\nimport combineURLs from '../helpers/combineURLs.js';\n\n/**\n * Creates a new URL by combining the baseURL with the requestedURL,\n * only when the requestedURL is not already an absolute URL.\n * If the requestURL is absolute, this function returns the requestedURL untouched.\n *\n * @param {string} baseURL The base URL\n * @param {string} requestedURL Absolute or relative URL to combine\n *\n * @returns {string} The combined full path\n */\nexport default function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {\n let isRelativeUrl = !isAbsoluteURL(requestedURL);\n if (baseURL && (isRelativeUrl || allowAbsoluteUrls == false)) {\n return combineURLs(baseURL, requestedURL);\n }\n return requestedURL;\n}\n","'use strict';\n\nimport transformData from './transformData.js';\nimport isCancel from '../cancel/isCancel.js';\nimport defaults from '../defaults/index.js';\nimport CanceledError from '../cancel/CanceledError.js';\nimport AxiosHeaders from '../core/AxiosHeaders.js';\nimport adapters from \"../adapters/adapters.js\";\n\n/**\n * Throws a `CanceledError` if cancellation has been requested.\n *\n * @param {Object} config The config that is to be used for the request\n *\n * @returns {void}\n */\nfunction throwIfCancellationRequested(config) {\n if (config.cancelToken) {\n config.cancelToken.throwIfRequested();\n }\n\n if (config.signal && config.signal.aborted) {\n throw new CanceledError(null, config);\n }\n}\n\n/**\n * Dispatch a request to the server using the configured adapter.\n *\n * @param {object} config The config that is to be used for the request\n *\n * @returns {Promise} The Promise to be fulfilled\n */\nexport default function dispatchRequest(config) {\n throwIfCancellationRequested(config);\n\n config.headers = AxiosHeaders.from(config.headers);\n\n // Transform request data\n config.data = transformData.call(\n config,\n config.transformRequest\n );\n\n if (['post', 'put', 'patch'].indexOf(config.method) !== -1) {\n config.headers.setContentType('application/x-www-form-urlencoded', false);\n }\n\n const adapter = adapters.getAdapter(config.adapter || defaults.adapter);\n\n return adapter(config).then(function onAdapterResolution(response) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n response.data = transformData.call(\n config,\n config.transformResponse,\n response\n );\n\n response.headers = AxiosHeaders.from(response.headers);\n\n return response;\n }, function onAdapterRejection(reason) {\n if (!isCancel(reason)) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n if (reason && reason.response) {\n reason.response.data = transformData.call(\n config,\n config.transformResponse,\n reason.response\n );\n reason.response.headers = AxiosHeaders.from(reason.response.headers);\n }\n }\n\n return Promise.reject(reason);\n });\n}\n","'use strict';\n\nimport utils from '../utils.js';\nimport AxiosHeaders from \"./AxiosHeaders.js\";\n\nconst headersToObject = (thing) => thing instanceof AxiosHeaders ? { ...thing } : thing;\n\n/**\n * Config-specific merge-function which creates a new config-object\n * by merging two configuration objects together.\n *\n * @param {Object} config1\n * @param {Object} config2\n *\n * @returns {Object} New object resulting from merging config2 to config1\n */\nexport default function mergeConfig(config1, config2) {\n // eslint-disable-next-line no-param-reassign\n config2 = config2 || {};\n const config = {};\n\n function getMergedValue(target, source, prop, caseless) {\n if (utils.isPlainObject(target) && utils.isPlainObject(source)) {\n return utils.merge.call({caseless}, target, source);\n } else if (utils.isPlainObject(source)) {\n return utils.merge({}, source);\n } else if (utils.isArray(source)) {\n return source.slice();\n }\n return source;\n }\n\n // eslint-disable-next-line consistent-return\n function mergeDeepProperties(a, b, prop , caseless) {\n if (!utils.isUndefined(b)) {\n return getMergedValue(a, b, prop , caseless);\n } else if (!utils.isUndefined(a)) {\n return getMergedValue(undefined, a, prop , caseless);\n }\n }\n\n // eslint-disable-next-line consistent-return\n function valueFromConfig2(a, b) {\n if (!utils.isUndefined(b)) {\n return getMergedValue(undefined, b);\n }\n }\n\n // eslint-disable-next-line consistent-return\n function defaultToConfig2(a, b) {\n if (!utils.isUndefined(b)) {\n return getMergedValue(undefined, b);\n } else if (!utils.isUndefined(a)) {\n return getMergedValue(undefined, a);\n }\n }\n\n // eslint-disable-next-line consistent-return\n function mergeDirectKeys(a, b, prop) {\n if (prop in config2) {\n return getMergedValue(a, b);\n } else if (prop in config1) {\n return getMergedValue(undefined, a);\n }\n }\n\n const mergeMap = {\n url: valueFromConfig2,\n method: valueFromConfig2,\n data: valueFromConfig2,\n baseURL: defaultToConfig2,\n transformRequest: defaultToConfig2,\n transformResponse: defaultToConfig2,\n paramsSerializer: defaultToConfig2,\n timeout: defaultToConfig2,\n timeoutMessage: defaultToConfig2,\n withCredentials: defaultToConfig2,\n withXSRFToken: defaultToConfig2,\n adapter: defaultToConfig2,\n responseType: defaultToConfig2,\n xsrfCookieName: defaultToConfig2,\n xsrfHeaderName: defaultToConfig2,\n onUploadProgress: defaultToConfig2,\n onDownloadProgress: defaultToConfig2,\n decompress: defaultToConfig2,\n maxContentLength: defaultToConfig2,\n maxBodyLength: defaultToConfig2,\n beforeRedirect: defaultToConfig2,\n transport: defaultToConfig2,\n httpAgent: defaultToConfig2,\n httpsAgent: defaultToConfig2,\n cancelToken: defaultToConfig2,\n socketPath: defaultToConfig2,\n responseEncoding: defaultToConfig2,\n validateStatus: mergeDirectKeys,\n headers: (a, b , prop) => mergeDeepProperties(headersToObject(a), headersToObject(b),prop, true)\n };\n\n utils.forEach(Object.keys(Object.assign({}, config1, config2)), function computeConfigValue(prop) {\n const merge = mergeMap[prop] || mergeDeepProperties;\n const configValue = merge(config1[prop], config2[prop], prop);\n (utils.isUndefined(configValue) && merge !== mergeDirectKeys) || (config[prop] = configValue);\n });\n\n return config;\n}\n","'use strict';\n\nimport AxiosError from './AxiosError.js';\n\n/**\n * Resolve or reject a Promise based on response status.\n *\n * @param {Function} resolve A function that resolves the promise.\n * @param {Function} reject A function that rejects the promise.\n * @param {object} response The response.\n *\n * @returns {object} The response.\n */\nexport default function settle(resolve, reject, response) {\n const validateStatus = response.config.validateStatus;\n if (!response.status || !validateStatus || validateStatus(response.status)) {\n resolve(response);\n } else {\n reject(new AxiosError(\n 'Request failed with status code ' + response.status,\n [AxiosError.ERR_BAD_REQUEST, AxiosError.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],\n response.config,\n response.request,\n response\n ));\n }\n}\n","'use strict';\n\nimport utils from './../utils.js';\nimport defaults from '../defaults/index.js';\nimport AxiosHeaders from '../core/AxiosHeaders.js';\n\n/**\n * Transform the data for a request or a response\n *\n * @param {Array|Function} fns A single function or Array of functions\n * @param {?Object} response The response object\n *\n * @returns {*} The resulting transformed data\n */\nexport default function transformData(fns, response) {\n const config = this || defaults;\n const context = response || config;\n const headers = AxiosHeaders.from(context.headers);\n let data = context.data;\n\n utils.forEach(fns, function transform(fn) {\n data = fn.call(config, data, headers.normalize(), response ? response.status : undefined);\n });\n\n headers.normalize();\n\n return data;\n}\n","'use strict';\n\nimport utils from '../utils.js';\nimport AxiosError from '../core/AxiosError.js';\nimport transitionalDefaults from './transitional.js';\nimport toFormData from '../helpers/toFormData.js';\nimport toURLEncodedForm from '../helpers/toURLEncodedForm.js';\nimport platform from '../platform/index.js';\nimport formDataToJSON from '../helpers/formDataToJSON.js';\n\n/**\n * It takes a string, tries to parse it, and if it fails, it returns the stringified version\n * of the input\n *\n * @param {any} rawValue - The value to be stringified.\n * @param {Function} parser - A function that parses a string into a JavaScript object.\n * @param {Function} encoder - A function that takes a value and returns a string.\n *\n * @returns {string} A stringified version of the rawValue.\n */\nfunction stringifySafely(rawValue, parser, encoder) {\n if (utils.isString(rawValue)) {\n try {\n (parser || JSON.parse)(rawValue);\n return utils.trim(rawValue);\n } catch (e) {\n if (e.name !== 'SyntaxError') {\n throw e;\n }\n }\n }\n\n return (encoder || JSON.stringify)(rawValue);\n}\n\nconst defaults = {\n\n transitional: transitionalDefaults,\n\n adapter: ['xhr', 'http', 'fetch'],\n\n transformRequest: [function transformRequest(data, headers) {\n const contentType = headers.getContentType() || '';\n const hasJSONContentType = contentType.indexOf('application/json') > -1;\n const isObjectPayload = utils.isObject(data);\n\n if (isObjectPayload && utils.isHTMLForm(data)) {\n data = new FormData(data);\n }\n\n const isFormData = utils.isFormData(data);\n\n if (isFormData) {\n return hasJSONContentType ? JSON.stringify(formDataToJSON(data)) : data;\n }\n\n if (utils.isArrayBuffer(data) ||\n utils.isBuffer(data) ||\n utils.isStream(data) ||\n utils.isFile(data) ||\n utils.isBlob(data) ||\n utils.isReadableStream(data)\n ) {\n return data;\n }\n if (utils.isArrayBufferView(data)) {\n return data.buffer;\n }\n if (utils.isURLSearchParams(data)) {\n headers.setContentType('application/x-www-form-urlencoded;charset=utf-8', false);\n return data.toString();\n }\n\n let isFileList;\n\n if (isObjectPayload) {\n if (contentType.indexOf('application/x-www-form-urlencoded') > -1) {\n return toURLEncodedForm(data, this.formSerializer).toString();\n }\n\n if ((isFileList = utils.isFileList(data)) || contentType.indexOf('multipart/form-data') > -1) {\n const _FormData = this.env && this.env.FormData;\n\n return toFormData(\n isFileList ? {'files[]': data} : data,\n _FormData && new _FormData(),\n this.formSerializer\n );\n }\n }\n\n if (isObjectPayload || hasJSONContentType ) {\n headers.setContentType('application/json', false);\n return stringifySafely(data);\n }\n\n return data;\n }],\n\n transformResponse: [function transformResponse(data) {\n const transitional = this.transitional || defaults.transitional;\n const forcedJSONParsing = transitional && transitional.forcedJSONParsing;\n const JSONRequested = this.responseType === 'json';\n\n if (utils.isResponse(data) || utils.isReadableStream(data)) {\n return data;\n }\n\n if (data && utils.isString(data) && ((forcedJSONParsing && !this.responseType) || JSONRequested)) {\n const silentJSONParsing = transitional && transitional.silentJSONParsing;\n const strictJSONParsing = !silentJSONParsing && JSONRequested;\n\n try {\n return JSON.parse(data);\n } catch (e) {\n if (strictJSONParsing) {\n if (e.name === 'SyntaxError') {\n throw AxiosError.from(e, AxiosError.ERR_BAD_RESPONSE, this, null, this.response);\n }\n throw e;\n }\n }\n }\n\n return data;\n }],\n\n /**\n * A timeout in milliseconds to abort a request. If set to 0 (default) a\n * timeout is not created.\n */\n timeout: 0,\n\n xsrfCookieName: 'XSRF-TOKEN',\n xsrfHeaderName: 'X-XSRF-TOKEN',\n\n maxContentLength: -1,\n maxBodyLength: -1,\n\n env: {\n FormData: platform.classes.FormData,\n Blob: platform.classes.Blob\n },\n\n validateStatus: function validateStatus(status) {\n return status >= 200 && status < 300;\n },\n\n headers: {\n common: {\n 'Accept': 'application/json, text/plain, */*',\n 'Content-Type': undefined\n }\n }\n};\n\nutils.forEach(['delete', 'get', 'head', 'post', 'put', 'patch'], (method) => {\n defaults.headers[method] = {};\n});\n\nexport default defaults;\n","'use strict';\n\nexport default {\n silentJSONParsing: true,\n forcedJSONParsing: true,\n clarifyTimeoutError: false\n};\n","export const VERSION = \"1.8.4\";","'use strict';\n\nimport stream from 'stream';\nimport utils from '../utils.js';\n\nconst kInternals = Symbol('internals');\n\nclass AxiosTransformStream extends stream.Transform{\n constructor(options) {\n options = utils.toFlatObject(options, {\n maxRate: 0,\n chunkSize: 64 * 1024,\n minChunkSize: 100,\n timeWindow: 500,\n ticksRate: 2,\n samplesCount: 15\n }, null, (prop, source) => {\n return !utils.isUndefined(source[prop]);\n });\n\n super({\n readableHighWaterMark: options.chunkSize\n });\n\n const internals = this[kInternals] = {\n timeWindow: options.timeWindow,\n chunkSize: options.chunkSize,\n maxRate: options.maxRate,\n minChunkSize: options.minChunkSize,\n bytesSeen: 0,\n isCaptured: false,\n notifiedBytesLoaded: 0,\n ts: Date.now(),\n bytes: 0,\n onReadCallback: null\n };\n\n this.on('newListener', event => {\n if (event === 'progress') {\n if (!internals.isCaptured) {\n internals.isCaptured = true;\n }\n }\n });\n }\n\n _read(size) {\n const internals = this[kInternals];\n\n if (internals.onReadCallback) {\n internals.onReadCallback();\n }\n\n return super._read(size);\n }\n\n _transform(chunk, encoding, callback) {\n const internals = this[kInternals];\n const maxRate = internals.maxRate;\n\n const readableHighWaterMark = this.readableHighWaterMark;\n\n const timeWindow = internals.timeWindow;\n\n const divider = 1000 / timeWindow;\n const bytesThreshold = (maxRate / divider);\n const minChunkSize = internals.minChunkSize !== false ? Math.max(internals.minChunkSize, bytesThreshold * 0.01) : 0;\n\n const pushChunk = (_chunk, _callback) => {\n const bytes = Buffer.byteLength(_chunk);\n internals.bytesSeen += bytes;\n internals.bytes += bytes;\n\n internals.isCaptured && this.emit('progress', internals.bytesSeen);\n\n if (this.push(_chunk)) {\n process.nextTick(_callback);\n } else {\n internals.onReadCallback = () => {\n internals.onReadCallback = null;\n process.nextTick(_callback);\n };\n }\n }\n\n const transformChunk = (_chunk, _callback) => {\n const chunkSize = Buffer.byteLength(_chunk);\n let chunkRemainder = null;\n let maxChunkSize = readableHighWaterMark;\n let bytesLeft;\n let passed = 0;\n\n if (maxRate) {\n const now = Date.now();\n\n if (!internals.ts || (passed = (now - internals.ts)) >= timeWindow) {\n internals.ts = now;\n bytesLeft = bytesThreshold - internals.bytes;\n internals.bytes = bytesLeft < 0 ? -bytesLeft : 0;\n passed = 0;\n }\n\n bytesLeft = bytesThreshold - internals.bytes;\n }\n\n if (maxRate) {\n if (bytesLeft <= 0) {\n // next time window\n return setTimeout(() => {\n _callback(null, _chunk);\n }, timeWindow - passed);\n }\n\n if (bytesLeft < maxChunkSize) {\n maxChunkSize = bytesLeft;\n }\n }\n\n if (maxChunkSize && chunkSize > maxChunkSize && (chunkSize - maxChunkSize) > minChunkSize) {\n chunkRemainder = _chunk.subarray(maxChunkSize);\n _chunk = _chunk.subarray(0, maxChunkSize);\n }\n\n pushChunk(_chunk, chunkRemainder ? () => {\n process.nextTick(_callback, null, chunkRemainder);\n } : _callback);\n };\n\n transformChunk(chunk, function transformNextChunk(err, _chunk) {\n if (err) {\n return callback(err);\n }\n\n if (_chunk) {\n transformChunk(_chunk, transformNextChunk);\n } else {\n callback(null);\n }\n });\n }\n}\n\nexport default AxiosTransformStream;\n","'use strict';\n\nimport toFormData from './toFormData.js';\n\n/**\n * It encodes a string by replacing all characters that are not in the unreserved set with\n * their percent-encoded equivalents\n *\n * @param {string} str - The string to encode.\n *\n * @returns {string} The encoded string.\n */\nfunction encode(str) {\n const charMap = {\n '!': '%21',\n \"'\": '%27',\n '(': '%28',\n ')': '%29',\n '~': '%7E',\n '%20': '+',\n '%00': '\\x00'\n };\n return encodeURIComponent(str).replace(/[!'()~]|%20|%00/g, function replacer(match) {\n return charMap[match];\n });\n}\n\n/**\n * It takes a params object and converts it to a FormData object\n *\n * @param {Object<string, any>} params - The parameters to be converted to a FormData object.\n * @param {Object<string, any>} options - The options object passed to the Axios constructor.\n *\n * @returns {void}\n */\nfunction AxiosURLSearchParams(params, options) {\n this._pairs = [];\n\n params && toFormData(params, this, options);\n}\n\nconst prototype = AxiosURLSearchParams.prototype;\n\nprototype.append = function append(name, value) {\n this._pairs.push([name, value]);\n};\n\nprototype.toString = function toString(encoder) {\n const _encode = encoder ? function(value) {\n return encoder.call(this, value, encode);\n } : encode;\n\n return this._pairs.map(function each(pair) {\n return _encode(pair[0]) + '=' + _encode(pair[1]);\n }, '').join('&');\n};\n\nexport default AxiosURLSearchParams;\n","const HttpStatusCode = {\n Continue: 100,\n SwitchingProtocols: 101,\n Processing: 102,\n EarlyHints: 103,\n Ok: 200,\n Created: 201,\n Accepted: 202,\n NonAuthoritativeInformation: 203,\n NoContent: 204,\n ResetContent: 205,\n PartialContent: 206,\n MultiStatus: 207,\n AlreadyReported: 208,\n ImUsed: 226,\n MultipleChoices: 300,\n MovedPermanently: 301,\n Found: 302,\n SeeOther: 303,\n NotModified: 304,\n UseProxy: 305,\n Unused: 306,\n TemporaryRedirect: 307,\n PermanentRedirect: 308,\n BadRequest: 400,\n Unauthorized: 401,\n PaymentRequired: 402,\n Forbidden: 403,\n NotFound: 404,\n MethodNotAllowed: 405,\n NotAcceptable: 406,\n ProxyAuthenticationRequired: 407,\n RequestTimeout: 408,\n Conflict: 409,\n Gone: 410,\n LengthRequired: 411,\n PreconditionFailed: 412,\n PayloadTooLarge: 413,\n UriTooLong: 414,\n UnsupportedMediaType: 415,\n RangeNotSatisfiable: 416,\n ExpectationFailed: 417,\n ImATeapot: 418,\n MisdirectedRequest: 421,\n UnprocessableEntity: 422,\n Locked: 423,\n FailedDependency: 424,\n TooEarly: 425,\n UpgradeRequired: 426,\n PreconditionRequired: 428,\n TooManyRequests: 429,\n RequestHeaderFieldsTooLarge: 431,\n UnavailableForLegalReasons: 451,\n InternalServerError: 500,\n NotImplemented: 501,\n BadGateway: 502,\n ServiceUnavailable: 503,\n GatewayTimeout: 504,\n HttpVersionNotSupported: 505,\n VariantAlsoNegotiates: 506,\n InsufficientStorage: 507,\n LoopDetected: 508,\n NotExtended: 510,\n NetworkAuthenticationRequired: 511,\n};\n\nObject.entries(HttpStatusCode).forEach(([key, value]) => {\n HttpStatusCode[value] = key;\n});\n\nexport default HttpStatusCode;\n","\"use strict\";\n\nimport stream from \"stream\";\n\nclass ZlibHeaderTransformStream extends stream.Transform {\n __transform(chunk, encoding, callback) {\n this.push(chunk);\n callback();\n }\n\n _transform(chunk, encoding, callback) {\n if (chunk.length !== 0) {\n this._transform = this.__transform;\n\n // Add Default Compression headers if no zlib headers are present\n if (chunk[0] !== 120) { // Hex: 78\n const header = Buffer.alloc(2);\n header[0] = 120; // Hex: 78\n header[1] = 156; // Hex: 9C \n this.push(header, encoding);\n }\n }\n\n this.__transform(chunk, encoding, callback);\n }\n}\n\nexport default ZlibHeaderTransformStream;\n","'use strict';\n\nexport default function bind(fn, thisArg) {\n return function wrap() {\n return fn.apply(thisArg, arguments);\n };\n}\n","'use strict';\n\nimport utils from '../utils.js';\nimport AxiosURLSearchParams from '../helpers/AxiosURLSearchParams.js';\n\n/**\n * It replaces all instances of the characters `:`, `$`, `,`, `+`, `[`, and `]` with their\n * URI encoded counterparts\n *\n * @param {string} val The value to be encoded.\n *\n * @returns {string} The encoded value.\n */\nfunction encode(val) {\n return encodeURIComponent(val).\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%20/g, '+').\n replace(/%5B/gi, '[').\n replace(/%5D/gi, ']');\n}\n\n/**\n * Build a URL by appending params to the end\n *\n * @param {string} url The base of the url (e.g., http://www.google.com)\n * @param {object} [params] The params to be appended\n * @param {?(object|Function)} options\n *\n * @returns {string} The formatted url\n */\nexport default function buildURL(url, params, options) {\n /*eslint no-param-reassign:0*/\n if (!params) {\n return url;\n }\n \n const _encode = options && options.encode || encode;\n\n if (utils.isFunction(options)) {\n options = {\n serialize: options\n };\n } \n\n const serializeFn = options && options.serialize;\n\n let serializedParams;\n\n if (serializeFn) {\n serializedParams = serializeFn(params, options);\n } else {\n serializedParams = utils.isURLSearchParams(params) ?\n params.toString() :\n new AxiosURLSearchParams(params, options).toString(_encode);\n }\n\n if (serializedParams) {\n const hashmarkIndex = url.indexOf(\"#\");\n\n if (hashmarkIndex !== -1) {\n url = url.slice(0, hashmarkIndex);\n }\n url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;\n }\n\n return url;\n}\n","import utils from \"../utils.js\";\n\nconst callbackify = (fn, reducer) => {\n return utils.isAsyncFn(fn) ? function (...args) {\n const cb = args.pop();\n fn.apply(this, args).then((value) => {\n try {\n reducer ? cb(null, ...reducer(value)) : cb(null, value);\n } catch (err) {\n cb(err);\n }\n }, cb);\n } : fn;\n}\n\nexport default callbackify;\n","'use strict';\n\n/**\n * Creates a new URL by combining the specified URLs\n *\n * @param {string} baseURL The base URL\n * @param {string} relativeURL The relative URL\n *\n * @returns {string} The combined URL\n */\nexport default function combineURLs(baseURL, relativeURL) {\n return relativeURL\n ? baseURL.replace(/\\/?\\/$/, '') + '/' + relativeURL.replace(/^\\/+/, '')\n : baseURL;\n}\n","import CanceledError from \"../cancel/CanceledError.js\";\nimport AxiosError from \"../core/AxiosError.js\";\nimport utils from '../utils.js';\n\nconst composeSignals = (signals, timeout) => {\n const {length} = (signals = signals ? signals.filter(Boolean) : []);\n\n if (timeout || length) {\n let controller = new AbortController();\n\n let aborted;\n\n const onabort = function (reason) {\n if (!aborted) {\n aborted = true;\n unsubscribe();\n const err = reason instanceof Error ? reason : this.reason;\n controller.abort(err instanceof AxiosError ? err : new CanceledError(err instanceof Error ? err.message : err));\n }\n }\n\n let timer = timeout && setTimeout(() => {\n timer = null;\n onabort(new AxiosError(`timeout ${timeout} of ms exceeded`, AxiosError.ETIMEDOUT))\n }, timeout)\n\n const unsubscribe = () => {\n if (signals) {\n timer && clearTimeout(timer);\n timer = null;\n signals.forEach(signal => {\n signal.unsubscribe ? signal.unsubscribe(onabort) : signal.removeEventListener('abort', onabort);\n });\n signals = null;\n }\n }\n\n signals.forEach((signal) => signal.addEventListener('abort', onabort));\n\n const {signal} = controller;\n\n signal.unsubscribe = () => utils.asap(unsubscribe);\n\n return signal;\n }\n}\n\nexport default composeSignals;\n","import utils from './../utils.js';\nimport platform from '../platform/index.js';\n\nexport default platform.hasStandardBrowserEnv ?\n\n // Standard browser envs support document.cookie\n {\n write(name, value, expires, path, domain, secure) {\n const cookie = [name + '=' + encodeURIComponent(value)];\n\n utils.isNumber(expires) && cookie.push('expires=' + new Date(expires).toGMTString());\n\n utils.isString(path) && cookie.push('path=' + path);\n\n utils.isString(domain) && cookie.push('domain=' + domain);\n\n secure === true && cookie.push('secure');\n\n document.cookie = cookie.join('; ');\n },\n\n read(name) {\n const match = document.cookie.match(new RegExp('(^|;\\\\s*)(' + name + ')=([^;]*)'));\n return (match ? decodeURIComponent(match[3]) : null);\n },\n\n remove(name) {\n this.write(name, '', Date.now() - 86400000);\n }\n }\n\n :\n\n // Non-standard browser env (web workers, react-native) lack needed support.\n {\n write() {},\n read() {\n return null;\n },\n remove() {}\n };\n\n","'use strict';\n\nimport utils from '../utils.js';\n\n/**\n * It takes a string like `foo[x][y][z]` and returns an array like `['foo', 'x', 'y', 'z']\n *\n * @param {string} name - The name of the property to get.\n *\n * @returns An array of strings.\n */\nfunction parsePropPath(name) {\n // foo[x][y][z]\n // foo.x.y.z\n // foo-x-y-z\n // foo x y z\n return utils.matchAll(/\\w+|\\[(\\w*)]/g, name).map(match => {\n return match[0] === '[]' ? '' : match[1] || match[0];\n });\n}\n\n/**\n * Convert an array to an object.\n *\n * @param {Array<any>} arr - The array to convert to an object.\n *\n * @returns An object with the same keys and values as the array.\n */\nfunction arrayToObject(arr) {\n const obj = {};\n const keys = Object.keys(arr);\n let i;\n const len = keys.length;\n let key;\n for (i = 0; i < len; i++) {\n key = keys[i];\n obj[key] = arr[key];\n }\n return obj;\n}\n\n/**\n * It takes a FormData object and returns a JavaScript object\n *\n * @param {string} formData The FormData object to convert to JSON.\n *\n * @returns {Object<string, any> | null} The converted object.\n */\nfunction formDataToJSON(formData) {\n function buildPath(path, value, target, index) {\n let name = path[index++];\n\n if (name === '__proto__') return true;\n\n const isNumericKey = Number.isFinite(+name);\n const isLast = index >= path.length;\n name = !name && utils.isArray(target) ? target.length : name;\n\n if (isLast) {\n if (utils.hasOwnProp(target, name)) {\n target[name] = [target[name], value];\n } else {\n target[name] = value;\n }\n\n return !isNumericKey;\n }\n\n if (!target[name] || !utils.isObject(target[name])) {\n target[name] = [];\n }\n\n const result = buildPath(path, value, target[name], index);\n\n if (result && utils.isArray(target[name])) {\n target[name] = arrayToObject(target[name]);\n }\n\n return !isNumericKey;\n }\n\n if (utils.isFormData(formData) && utils.isFunction(formData.entries)) {\n const obj = {};\n\n utils.forEachEntry(formData, (name, value) => {\n buildPath(parsePropPath(name), value, obj, 0);\n });\n\n return obj;\n }\n\n return null;\n}\n\nexport default formDataToJSON;\n","import util from 'util';\nimport {Readable} from 'stream';\nimport utils from \"../utils.js\";\nimport readBlob from \"./readBlob.js\";\nimport platform from \"../platform/index.js\";\n\nconst BOUNDARY_ALPHABET = platform.ALPHABET.ALPHA_DIGIT + '-_';\n\nconst textEncoder = typeof TextEncoder === 'function' ? new TextEncoder() : new util.TextEncoder();\n\nconst CRLF = '\\r\\n';\nconst CRLF_BYTES = textEncoder.encode(CRLF);\nconst CRLF_BYTES_COUNT = 2;\n\nclass FormDataPart {\n constructor(name, value) {\n const {escapeName} = this.constructor;\n const isStringValue = utils.isString(value);\n\n let headers = `Content-Disposition: form-data; name=\"${escapeName(name)}\"${\n !isStringValue && value.name ? `; filename=\"${escapeName(value.name)}\"` : ''\n }${CRLF}`;\n\n if (isStringValue) {\n value = textEncoder.encode(String(value).replace(/\\r?\\n|\\r\\n?/g, CRLF));\n } else {\n headers += `Content-Type: ${value.type || \"application/octet-stream\"}${CRLF}`\n }\n\n this.headers = textEncoder.encode(headers + CRLF);\n\n this.contentLength = isStringValue ? value.byteLength : value.size;\n\n this.size = this.headers.byteLength + this.contentLength + CRLF_BYTES_COUNT;\n\n this.name = name;\n this.value = value;\n }\n\n async *encode(){\n yield this.headers;\n\n const {value} = this;\n\n if(utils.isTypedArray(value)) {\n yield value;\n } else {\n yield* readBlob(value);\n }\n\n yield CRLF_BYTES;\n }\n\n static escapeName(name) {\n return String(name).replace(/[\\r\\n\"]/g, (match) => ({\n '\\r' : '%0D',\n '\\n' : '%0A',\n '\"' : '%22',\n }[match]));\n }\n}\n\nconst formDataToStream = (form, headersHandler, options) => {\n const {\n tag = 'form-data-boundary',\n size = 25,\n boundary = tag + '-' + platform.generateString(size, BOUNDARY_ALPHABET)\n } = options || {};\n\n if(!utils.isFormData(form)) {\n throw TypeError('FormData instance required');\n }\n\n if (boundary.length < 1 || boundary.length > 70) {\n throw Error('boundary must be 10-70 characters long')\n }\n\n const boundaryBytes = textEncoder.encode('--' + boundary + CRLF);\n const footerBytes = textEncoder.encode('--' + boundary + '--' + CRLF + CRLF);\n let contentLength = footerBytes.byteLength;\n\n const parts = Array.from(form.entries()).map(([name, value]) => {\n const part = new FormDataPart(name, value);\n contentLength += part.size;\n return part;\n });\n\n contentLength += boundaryBytes.byteLength * parts.length;\n\n contentLength = utils.toFiniteNumber(contentLength);\n\n const computedHeaders = {\n 'Content-Type': `multipart/form-data; boundary=${boundary}`\n }\n\n if (Number.isFinite(contentLength)) {\n computedHeaders['Content-Length'] = contentLength;\n }\n\n headersHandler && headersHandler(computedHeaders);\n\n return Readable.from((async function *() {\n for(const part of parts) {\n yield boundaryBytes;\n yield* part.encode();\n }\n\n yield footerBytes;\n })());\n};\n\nexport default formDataToStream;\n","'use strict';\n\nimport AxiosError from '../core/AxiosError.js';\nimport parseProtocol from './parseProtocol.js';\nimport platform from '../platform/index.js';\n\nconst DATA_URL_PATTERN = /^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\\s\\S]*)$/;\n\n/**\n * Parse data uri to a Buffer or Blob\n *\n * @param {String} uri\n * @param {?Boolean} asBlob\n * @param {?Object} options\n * @param {?Function} options.Blob\n *\n * @returns {Buffer|Blob}\n */\nexport default function fromDataURI(uri, asBlob, options) {\n const _Blob = options && options.Blob || platform.classes.Blob;\n const protocol = parseProtocol(uri);\n\n if (asBlob === undefined && _Blob) {\n asBlob = true;\n }\n\n if (protocol === 'data') {\n uri = protocol.length ? uri.slice(protocol.length + 1) : uri;\n\n const match = DATA_URL_PATTERN.exec(uri);\n\n if (!match) {\n throw new AxiosError('Invalid URL', AxiosError.ERR_INVALID_URL);\n }\n\n const mime = match[1];\n const isBase64 = match[2];\n const body = match[3];\n const buffer = Buffer.from(decodeURIComponent(body), isBase64 ? 'base64' : 'utf8');\n\n if (asBlob) {\n if (!_Blob) {\n throw new AxiosError('Blob is not supported', AxiosError.ERR_NOT_SUPPORT);\n }\n\n return new _Blob([buffer], {type: mime});\n }\n\n return buffer;\n }\n\n throw new AxiosError('Unsupported protocol ' + protocol, AxiosError.ERR_NOT_SUPPORT);\n}\n","'use strict';\n\n/**\n * Determines whether the specified URL is absolute\n *\n * @param {string} url The URL to test\n *\n * @returns {boolean} True if the specified URL is absolute, otherwise false\n */\nexport default function isAbsoluteURL(url) {\n // A URL is considered absolute if it begins with \"<scheme>://\" or \"//\" (protocol-relative URL).\n // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed\n // by any combination of letters, digits, plus, period, or hyphen.\n return /^([a-z][a-z\\d+\\-.]*:)?\\/\\//i.test(url);\n}\n","'use strict';\n\nimport utils from './../utils.js';\n\n/**\n * Determines whether the payload is an error thrown by Axios\n *\n * @param {*} payload The value to test\n *\n * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false\n */\nexport default function isAxiosError(payload) {\n return utils.isObject(payload) && (payload.isAxiosError === true);\n}\n","import platform from '../platform/index.js';\n\nexport default platform.hasStandardBrowserEnv ? ((origin, isMSIE) => (url) => {\n url = new URL(url, platform.origin);\n\n return (\n origin.protocol === url.protocol &&\n origin.host === url.host &&\n (isMSIE || origin.port === url.port)\n );\n})(\n new URL(platform.origin),\n platform.navigator && /(msie|trident)/i.test(platform.navigator.userAgent)\n) : () => true;\n","'use strict';\n\nimport utils from './../utils.js';\n\n// RawAxiosHeaders whose duplicates are ignored by node\n// c.f. https://nodejs.org/api/http.html#http_message_headers\nconst ignoreDuplicateOf = utils.toObjectSet([\n 'age', 'authorization', 'content-length', 'content-type', 'etag',\n 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since',\n 'last-modified', 'location', 'max-forwards', 'proxy-authorization',\n 'referer', 'retry-after', 'user-agent'\n]);\n\n/**\n * Parse headers into an object\n *\n * ```\n * Date: Wed, 27 Aug 2014 08:58:49 GMT\n * Content-Type: application/json\n * Connection: keep-alive\n * Transfer-Encoding: chunked\n * ```\n *\n * @param {String} rawHeaders Headers needing to be parsed\n *\n * @returns {Object} Headers parsed into an object\n */\nexport default rawHeaders => {\n const parsed = {};\n let key;\n let val;\n let i;\n\n rawHeaders && rawHeaders.split('\\n').forEach(function parser(line) {\n i = line.indexOf(':');\n key = line.substring(0, i).trim().toLowerCase();\n val = line.substring(i + 1).trim();\n\n if (!key || (parsed[key] && ignoreDuplicateOf[key])) {\n return;\n }\n\n if (key === 'set-cookie') {\n if (parsed[key]) {\n parsed[key].push(val);\n } else {\n parsed[key] = [val];\n }\n } else {\n parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;\n }\n });\n\n return parsed;\n};\n","'use strict';\n\nexport default function parseProtocol(url) {\n const match = /^([-+\\w]{1,25})(:?\\/\\/|:)/.exec(url);\n return match && match[1] || '';\n}\n","import speedometer from \"./speedometer.js\";\nimport throttle from \"./throttle.js\";\nimport utils from \"../utils.js\";\n\nexport const progressEventReducer = (listener, isDownloadStream, freq = 3) => {\n let bytesNotified = 0;\n const _speedometer = speedometer(50, 250);\n\n return throttle(e => {\n const loaded = e.loaded;\n const total = e.lengthComputable ? e.total : undefined;\n const progressBytes = loaded - bytesNotified;\n const rate = _speedometer(progressBytes);\n const inRange = loaded <= total;\n\n bytesNotified = loaded;\n\n const data = {\n loaded,\n total,\n progress: total ? (loaded / total) : undefined,\n bytes: progressBytes,\n rate: rate ? rate : undefined,\n estimated: rate && total && inRange ? (total - loaded) / rate : undefined,\n event: e,\n lengthComputable: total != null,\n [isDownloadStream ? 'download' : 'upload']: true\n };\n\n listener(data);\n }, freq);\n}\n\nexport const progressEventDecorator = (total, throttled) => {\n const lengthComputable = total != null;\n\n return [(loaded) => throttled[0]({\n lengthComputable,\n total,\n loaded\n }), throttled[1]];\n}\n\nexport const asyncDecorator = (fn) => (...args) => utils.asap(() => fn(...args));\n","const {asyncIterator} = Symbol;\n\nconst readBlob = async function* (blob) {\n if (blob.stream) {\n yield* blob.stream()\n } else if (blob.arrayBuffer) {\n yield await blob.arrayBuffer()\n } else if (blob[asyncIterator]) {\n yield* blob[asyncIterator]();\n } else {\n yield blob;\n }\n}\n\nexport default readBlob;\n","import platform from \"../platform/index.js\";\nimport utils from \"../utils.js\";\nimport isURLSameOrigin from \"./isURLSameOrigin.js\";\nimport cookies from \"./cookies.js\";\nimport buildFullPath from \"../core/buildFullPath.js\";\nimport mergeConfig from \"../core/mergeConfig.js\";\nimport AxiosHeaders from \"../core/AxiosHeaders.js\";\nimport buildURL from \"./buildURL.js\";\n\nexport default (config) => {\n const newConfig = mergeConfig({}, config);\n\n let {data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth} = newConfig;\n\n newConfig.headers = headers = AxiosHeaders.from(headers);\n\n newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url, newConfig.allowAbsoluteUrls), config.params, config.paramsSerializer);\n\n // HTTP basic authentication\n if (auth) {\n headers.set('Authorization', 'Basic ' +\n btoa((auth.username || '') + ':' + (auth.password ? unescape(encodeURIComponent(auth.password)) : ''))\n );\n }\n\n let contentType;\n\n if (utils.isFormData(data)) {\n if (platform.hasStandardBrowserEnv || platform.hasStandardBrowserWebWorkerEnv) {\n headers.setContentType(undefined); // Let the browser set it\n } else if ((contentType = headers.getContentType()) !== false) {\n // fix semicolon duplication issue for ReactNative FormData implementation\n const [type, ...tokens] = contentType ? contentType.split(';').map(token => token.trim()).filter(Boolean) : [];\n headers.setContentType([type || 'multipart/form-data', ...tokens].join('; '));\n }\n }\n\n // Add xsrf header\n // This is only done if running in a standard browser environment.\n // Specifically not if we're in a web worker, or react-native.\n\n if (platform.hasStandardBrowserEnv) {\n withXSRFToken && utils.isFunction(withXSRFToken) && (withXSRFToken = withXSRFToken(newConfig));\n\n if (withXSRFToken || (withXSRFToken !== false && isURLSameOrigin(newConfig.url))) {\n // Add xsrf header\n const xsrfValue = xsrfHeaderName && xsrfCookieName && cookies.read(xsrfCookieName);\n\n if (xsrfValue) {\n headers.set(xsrfHeaderName, xsrfValue);\n }\n }\n }\n\n return newConfig;\n}\n\n","'use strict';\n\n/**\n * Calculate data maxRate\n * @param {Number} [samplesCount= 10]\n * @param {Number} [min= 1000]\n * @returns {Function}\n */\nfunction speedometer(samplesCount, min) {\n samplesCount = samplesCount || 10;\n const bytes = new Array(samplesCount);\n const timestamps = new Array(samplesCount);\n let head = 0;\n let tail = 0;\n let firstSampleTS;\n\n min = min !== undefined ? min : 1000;\n\n return function push(chunkLength) {\n const now = Date.now();\n\n const startedAt = timestamps[tail];\n\n if (!firstSampleTS) {\n firstSampleTS = now;\n }\n\n bytes[head] = chunkLength;\n timestamps[head] = now;\n\n let i = tail;\n let bytesCount = 0;\n\n while (i !== head) {\n bytesCount += bytes[i++];\n i = i % samplesCount;\n }\n\n head = (head + 1) % samplesCount;\n\n if (head === tail) {\n tail = (tail + 1) % samplesCount;\n }\n\n if (now - firstSampleTS < min) {\n return;\n }\n\n const passed = startedAt && now - startedAt;\n\n return passed ? Math.round(bytesCount * 1000 / passed) : undefined;\n };\n}\n\nexport default speedometer;\n","'use strict';\n\n/**\n * Syntactic sugar for invoking a function and expanding an array for arguments.\n *\n * Common use case would be to use `Function.prototype.apply`.\n *\n * ```js\n * function f(x, y, z) {}\n * var args = [1, 2, 3];\n * f.apply(null, args);\n * ```\n *\n * With `spread` this example can be re-written.\n *\n * ```js\n * spread(function(x, y, z) {})([1, 2, 3]);\n * ```\n *\n * @param {Function} callback\n *\n * @returns {Function}\n */\nexport default function spread(callback) {\n return function wrap(arr) {\n return callback.apply(null, arr);\n };\n}\n","/**\n * Throttle decorator\n * @param {Function} fn\n * @param {Number} freq\n * @return {Function}\n */\nfunction throttle(fn, freq) {\n let timestamp = 0;\n let threshold = 1000 / freq;\n let lastArgs;\n let timer;\n\n const invoke = (args, now = Date.now()) => {\n timestamp = now;\n lastArgs = null;\n if (timer) {\n clearTimeout(timer);\n timer = null;\n }\n fn.apply(null, args);\n }\n\n const throttled = (...args) => {\n const now = Date.now();\n const passed = now - timestamp;\n if ( passed >= threshold) {\n invoke(args, now);\n } else {\n lastArgs = args;\n if (!timer) {\n timer = setTimeout(() => {\n timer = null;\n invoke(lastArgs)\n }, threshold - passed);\n }\n }\n }\n\n const flush = () => lastArgs && invoke(lastArgs);\n\n return [throttled, flush];\n}\n\nexport default throttle;\n","'use strict';\n\nimport utils from '../utils.js';\nimport AxiosError from '../core/AxiosError.js';\n// temporary hotfix to avoid circular references until AxiosURLSearchParams is refactored\nimport PlatformFormData from '../platform/node/classes/FormData.js';\n\n/**\n * Determines if the given thing is a array or js object.\n *\n * @param {string} thing - The object or array to be visited.\n *\n * @returns {boolean}\n */\nfunction isVisitable(thing) {\n return utils.isPlainObject(thing) || utils.isArray(thing);\n}\n\n/**\n * It removes the brackets from the end of a string\n *\n * @param {string} key - The key of the parameter.\n *\n * @returns {string} the key without the brackets.\n */\nfunction removeBrackets(key) {\n return utils.endsWith(key, '[]') ? key.slice(0, -2) : key;\n}\n\n/**\n * It takes a path, a key, and a boolean, and returns a string\n *\n * @param {string} path - The path to the current key.\n * @param {string} key - The key of the current object being iterated over.\n * @param {string} dots - If true, the key will be rendered with dots instead of brackets.\n *\n * @returns {string} The path to the current key.\n */\nfunction renderKey(path, key, dots) {\n if (!path) return key;\n return path.concat(key).map(function each(token, i) {\n // eslint-disable-next-line no-param-reassign\n token = removeBrackets(token);\n return !dots && i ? '[' + token + ']' : token;\n }).join(dots ? '.' : '');\n}\n\n/**\n * If the array is an array and none of its elements are visitable, then it's a flat array.\n *\n * @param {Array<any>} arr - The array to check\n *\n * @returns {boolean}\n */\nfunction isFlatArray(arr) {\n return utils.isArray(arr) && !arr.some(isVisitable);\n}\n\nconst predicates = utils.toFlatObject(utils, {}, null, function filter(prop) {\n return /^is[A-Z]/.test(prop);\n});\n\n/**\n * Convert a data object to FormData\n *\n * @param {Object} obj\n * @param {?Object} [formData]\n * @param {?Object} [options]\n * @param {Function} [options.visitor]\n * @param {Boolean} [options.metaTokens = true]\n * @param {Boolean} [options.dots = false]\n * @param {?Boolean} [options.indexes = false]\n *\n * @returns {Object}\n **/\n\n/**\n * It converts an object into a FormData object\n *\n * @param {Object<any, any>} obj - The object to convert to form data.\n * @param {string} formData - The FormData object to append to.\n * @param {Object<string, any>} options\n *\n * @returns\n */\nfunction toFormData(obj, formData, options) {\n if (!utils.isObject(obj)) {\n throw new TypeError('target must be an object');\n }\n\n // eslint-disable-next-line no-param-reassign\n formData = formData || new (PlatformFormData || FormData)();\n\n // eslint-disable-next-line no-param-reassign\n options = utils.toFlatObject(options, {\n metaTokens: true,\n dots: false,\n indexes: false\n }, false, function defined(option, source) {\n // eslint-disable-next-line no-eq-null,eqeqeq\n return !utils.isUndefined(source[option]);\n });\n\n const metaTokens = options.metaTokens;\n // eslint-disable-next-line no-use-before-define\n const visitor = options.visitor || defaultVisitor;\n const dots = options.dots;\n const indexes = options.indexes;\n const _Blob = options.Blob || typeof Blob !== 'undefined' && Blob;\n const useBlob = _Blob && utils.isSpecCompliantForm(formData);\n\n if (!utils.isFunction(visitor)) {\n throw new TypeError('visitor must be a function');\n }\n\n function convertValue(value) {\n if (value === null) return '';\n\n if (utils.isDate(value)) {\n return value.toISOString();\n }\n\n if (!useBlob && utils.isBlob(value)) {\n throw new AxiosError('Blob is not supported. Use a Buffer instead.');\n }\n\n if (utils.isArrayBuffer(value) || utils.isTypedArray(value)) {\n return useBlob && typeof Blob === 'function' ? new Blob([value]) : Buffer.from(value);\n }\n\n return value;\n }\n\n /**\n * Default visitor.\n *\n * @param {*} value\n * @param {String|Number} key\n * @param {Array<String|Number>} path\n * @this {FormData}\n *\n * @returns {boolean} return true to visit the each prop of the value recursively\n */\n function defaultVisitor(value, key, path) {\n let arr = value;\n\n if (value && !path && typeof value === 'object') {\n if (utils.endsWith(key, '{}')) {\n // eslint-disable-next-line no-param-reassign\n key = metaTokens ? key : key.slice(0, -2);\n // eslint-disable-next-line no-param-reassign\n value = JSON.stringify(value);\n } else if (\n (utils.isArray(value) && isFlatArray(value)) ||\n ((utils.isFileList(value) || utils.endsWith(key, '[]')) && (arr = utils.toArray(value))\n )) {\n // eslint-disable-next-line no-param-reassign\n key = removeBrackets(key);\n\n arr.forEach(function each(el, index) {\n !(utils.isUndefined(el) || el === null) && formData.append(\n // eslint-disable-next-line no-nested-ternary\n indexes === true ? renderKey([key], index, dots) : (indexes === null ? key : key + '[]'),\n convertValue(el)\n );\n });\n return false;\n }\n }\n\n if (isVisitable(value)) {\n return true;\n }\n\n formData.append(renderKey(path, key, dots), convertValue(value));\n\n return false;\n }\n\n const stack = [];\n\n const exposedHelpers = Object.assign(predicates, {\n defaultVisitor,\n convertValue,\n isVisitable\n });\n\n function build(value, path) {\n if (utils.isUndefined(value)) return;\n\n if (stack.indexOf(value) !== -1) {\n throw Error('Circular reference detected in ' + path.join('.'));\n }\n\n stack.push(value);\n\n utils.forEach(value, function each(el, key) {\n const result = !(utils.isUndefined(el) || el === null) && visitor.call(\n formData, el, utils.isString(key) ? key.trim() : key, path, exposedHelpers\n );\n\n if (result === true) {\n build(el, path ? path.concat(key) : [key]);\n }\n });\n\n stack.pop();\n }\n\n if (!utils.isObject(obj)) {\n throw new TypeError('data must be an object');\n }\n\n build(obj);\n\n return formData;\n}\n\nexport default toFormData;\n","'use strict';\n\nimport utils from '../utils.js';\nimport toFormData from './toFormData.js';\nimport platform from '../platform/index.js';\n\nexport default function toURLEncodedForm(data, options) {\n return toFormData(data, new platform.classes.URLSearchParams(), Object.assign({\n visitor: function(value, key, path, helpers) {\n if (platform.isNode && utils.isBuffer(value)) {\n this.append(key, value.toString('base64'));\n return false;\n }\n\n return helpers.defaultVisitor.apply(this, arguments);\n }\n }, options));\n}\n","\nexport const streamChunk = function* (chunk, chunkSize) {\n let len = chunk.byteLength;\n\n if (!chunkSize || len < chunkSize) {\n yield chunk;\n return;\n }\n\n let pos = 0;\n let end;\n\n while (pos < len) {\n end = pos + chunkSize;\n yield chunk.slice(pos, end);\n pos = end;\n }\n}\n\nexport const readBytes = async function* (iterable, chunkSize) {\n for await (const chunk of readStream(iterable)) {\n yield* streamChunk(chunk, chunkSize);\n }\n}\n\nconst readStream = async function* (stream) {\n if (stream[Symbol.asyncIterator]) {\n yield* stream;\n return;\n }\n\n const reader = stream.getReader();\n try {\n for (;;) {\n const {done, value} = await reader.read();\n if (done) {\n break;\n }\n yield value;\n }\n } finally {\n await reader.cancel();\n }\n}\n\nexport const trackStream = (stream, chunkSize, onProgress, onFinish) => {\n const iterator = readBytes(stream, chunkSize);\n\n let bytes = 0;\n let done;\n let _onFinish = (e) => {\n if (!done) {\n done = true;\n onFinish && onFinish(e);\n }\n }\n\n return new ReadableStream({\n async pull(controller) {\n try {\n const {done, value} = await iterator.next();\n\n if (done) {\n _onFinish();\n controller.close();\n return;\n }\n\n let len = value.byteLength;\n if (onProgress) {\n let loadedBytes = bytes += len;\n onProgress(loadedBytes);\n }\n controller.enqueue(new Uint8Array(value));\n } catch (err) {\n _onFinish(err);\n throw err;\n }\n },\n cancel(reason) {\n _onFinish(reason);\n return iterator.return();\n }\n }, {\n highWaterMark: 2\n })\n}\n","'use strict';\n\nimport {VERSION} from '../env/data.js';\nimport AxiosError from '../core/AxiosError.js';\n\nconst validators = {};\n\n// eslint-disable-next-line func-names\n['object', 'boolean', 'number', 'function', 'string', 'symbol'].forEach((type, i) => {\n validators[type] = function validator(thing) {\n return typeof thing === type || 'a' + (i < 1 ? 'n ' : ' ') + type;\n };\n});\n\nconst deprecatedWarnings = {};\n\n/**\n * Transitional option validator\n *\n * @param {function|boolean?} validator - set to false if the transitional option has been removed\n * @param {string?} version - deprecated version / removed since version\n * @param {string?} message - some message with additional info\n *\n * @returns {function}\n */\nvalidators.transitional = function transitional(validator, version, message) {\n function formatMessage(opt, desc) {\n return '[Axios v' + VERSION + '] Transitional option \\'' + opt + '\\'' + desc + (message ? '. ' + message : '');\n }\n\n // eslint-disable-next-line func-names\n return (value, opt, opts) => {\n if (validator === false) {\n throw new AxiosError(\n formatMessage(opt, ' has been removed' + (version ? ' in ' + version : '')),\n AxiosError.ERR_DEPRECATED\n );\n }\n\n if (version && !deprecatedWarnings[opt]) {\n deprecatedWarnings[opt] = true;\n // eslint-disable-next-line no-console\n console.warn(\n formatMessage(\n opt,\n ' has been deprecated since v' + version + ' and will be removed in the near future'\n )\n );\n }\n\n return validator ? validator(value, opt, opts) : true;\n };\n};\n\nvalidators.spelling = function spelling(correctSpelling) {\n return (value, opt) => {\n // eslint-disable-next-line no-console\n console.warn(`${opt} is likely a misspelling of ${correctSpelling}`);\n return true;\n }\n};\n\n/**\n * Assert object's properties type\n *\n * @param {object} options\n * @param {object} schema\n * @param {boolean?} allowUnknown\n *\n * @returns {object}\n */\n\nfunction assertOptions(options, schema, allowUnknown) {\n if (typeof options !== 'object') {\n throw new AxiosError('options must be an object', AxiosError.ERR_BAD_OPTION_VALUE);\n }\n const keys = Object.keys(options);\n let i = keys.length;\n while (i-- > 0) {\n const opt = keys[i];\n const validator = schema[opt];\n if (validator) {\n const value = options[opt];\n const result = value === undefined || validator(value, opt, options);\n if (result !== true) {\n throw new AxiosError('option ' + opt + ' must be ' + result, AxiosError.ERR_BAD_OPTION_VALUE);\n }\n continue;\n }\n if (allowUnknown !== true) {\n throw new AxiosError('Unknown option ' + opt, AxiosError.ERR_BAD_OPTION);\n }\n }\n}\n\nexport default {\n assertOptions,\n validators\n};\n","const hasBrowserEnv = typeof window !== 'undefined' && typeof document !== 'undefined';\n\nconst _navigator = typeof navigator === 'object' && navigator || undefined;\n\n/**\n * Determine if we're running in a standard browser environment\n *\n * This allows axios to run in a web worker, and react-native.\n * Both environments support XMLHttpRequest, but not fully standard globals.\n *\n * web workers:\n * typeof window -> undefined\n * typeof document -> undefined\n *\n * react-native:\n * navigator.product -> 'ReactNative'\n * nativescript\n * navigator.product -> 'NativeScript' or 'NS'\n *\n * @returns {boolean}\n */\nconst hasStandardBrowserEnv = hasBrowserEnv &&\n (!_navigator || ['ReactNative', 'NativeScript', 'NS'].indexOf(_navigator.product) < 0);\n\n/**\n * Determine if we're running in a standard browser webWorker environment\n *\n * Although the `isStandardBrowserEnv` method indicates that\n * `allows axios to run in a web worker`, the WebWorker will still be\n * filtered out due to its judgment standard\n * `typeof window !== 'undefined' && typeof document !== 'undefined'`.\n * This leads to a problem when axios post `FormData` in webWorker\n */\nconst hasStandardBrowserWebWorkerEnv = (() => {\n return (\n typeof WorkerGlobalScope !== 'undefined' &&\n // eslint-disable-next-line no-undef\n self instanceof WorkerGlobalScope &&\n typeof self.importScripts === 'function'\n );\n})();\n\nconst origin = hasBrowserEnv && window.location.href || 'http://localhost';\n\nexport {\n hasBrowserEnv,\n hasStandardBrowserWebWorkerEnv,\n hasStandardBrowserEnv,\n _navigator as navigator,\n origin\n}\n","import platform from './node/index.js';\nimport * as utils from './common/utils.js';\n\nexport default {\n ...utils,\n ...platform\n}\n","import FormData from 'form-data';\n\nexport default FormData;\n","'use strict';\n\nimport url from 'url';\nexport default url.URLSearchParams;\n","import crypto from 'crypto';\nimport URLSearchParams from './classes/URLSearchParams.js'\nimport FormData from './classes/FormData.js'\n\nconst ALPHA = 'abcdefghijklmnopqrstuvwxyz'\n\nconst DIGIT = '0123456789';\n\nconst ALPHABET = {\n DIGIT,\n ALPHA,\n ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT\n}\n\nconst generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {\n let str = '';\n const {length} = alphabet;\n const randomValues = new Uint32Array(size);\n crypto.randomFillSync(randomValues);\n for (let i = 0; i < size; i++) {\n str += alphabet[randomValues[i] % length];\n }\n\n return str;\n}\n\n\nexport default {\n isNode: true,\n classes: {\n URLSearchParams,\n FormData,\n Blob: typeof Blob !== 'undefined' && Blob || null\n },\n ALPHABET,\n generateString,\n protocols: [ 'http', 'https', 'file', 'data' ]\n};\n","'use strict';\n\nimport bind from './helpers/bind.js';\n\n// utils is a library of generic helper functions non-specific to axios\n\nconst {toString} = Object.prototype;\nconst {getPrototypeOf} = Object;\n\nconst kindOf = (cache => thing => {\n const str = toString.call(thing);\n return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());\n})(Object.create(null));\n\nconst kindOfTest = (type) => {\n type = type.toLowerCase();\n return (thing) => kindOf(thing) === type\n}\n\nconst typeOfTest = type => thing => typeof thing === type;\n\n/**\n * Determine if a value is an Array\n *\n * @param {Object} val The value to test\n *\n * @returns {boolean} True if value is an Array, otherwise false\n */\nconst {isArray} = Array;\n\n/**\n * Determine if a value is undefined\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if the value is undefined, otherwise false\n */\nconst isUndefined = typeOfTest('undefined');\n\n/**\n * Determine if a value is a Buffer\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Buffer, otherwise false\n */\nfunction isBuffer(val) {\n return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor)\n && isFunction(val.constructor.isBuffer) && val.constructor.isBuffer(val);\n}\n\n/**\n * Determine if a value is an ArrayBuffer\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is an ArrayBuffer, otherwise false\n */\nconst isArrayBuffer = kindOfTest('ArrayBuffer');\n\n\n/**\n * Determine if a value is a view on an ArrayBuffer\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false\n */\nfunction isArrayBufferView(val) {\n let result;\n if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {\n result = ArrayBuffer.isView(val);\n } else {\n result = (val) && (val.buffer) && (isArrayBuffer(val.buffer));\n }\n return result;\n}\n\n/**\n * Determine if a value is a String\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a String, otherwise false\n */\nconst isString = typeOfTest('string');\n\n/**\n * Determine if a value is a Function\n *\n * @param {*} val The value to test\n * @returns {boolean} True if value is a Function, otherwise false\n */\nconst isFunction = typeOfTest('function');\n\n/**\n * Determine if a value is a Number\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Number, otherwise false\n */\nconst isNumber = typeOfTest('number');\n\n/**\n * Determine if a value is an Object\n *\n * @param {*} thing The value to test\n *\n * @returns {boolean} True if value is an Object, otherwise false\n */\nconst isObject = (thing) => thing !== null && typeof thing === 'object';\n\n/**\n * Determine if a value is a Boolean\n *\n * @param {*} thing The value to test\n * @returns {boolean} True if value is a Boolean, otherwise false\n */\nconst isBoolean = thing => thing === true || thing === false;\n\n/**\n * Determine if a value is a plain Object\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a plain Object, otherwise false\n */\nconst isPlainObject = (val) => {\n if (kindOf(val) !== 'object') {\n return false;\n }\n\n const prototype = getPrototypeOf(val);\n return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in val) && !(Symbol.iterator in val);\n}\n\n/**\n * Determine if a value is a Date\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Date, otherwise false\n */\nconst isDate = kindOfTest('Date');\n\n/**\n * Determine if a value is a File\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a File, otherwise false\n */\nconst isFile = kindOfTest('File');\n\n/**\n * Determine if a value is a Blob\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Blob, otherwise false\n */\nconst isBlob = kindOfTest('Blob');\n\n/**\n * Determine if a value is a FileList\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a File, otherwise false\n */\nconst isFileList = kindOfTest('FileList');\n\n/**\n * Determine if a value is a Stream\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Stream, otherwise false\n */\nconst isStream = (val) => isObject(val) && isFunction(val.pipe);\n\n/**\n * Determine if a value is a FormData\n *\n * @param {*} thing The value to test\n *\n * @returns {boolean} True if value is an FormData, otherwise false\n */\nconst isFormData = (thing) => {\n let kind;\n return thing && (\n (typeof FormData === 'function' && thing instanceof FormData) || (\n isFunction(thing.append) && (\n (kind = kindOf(thing)) === 'formdata' ||\n // detect form-data instance\n (kind === 'object' && isFunction(thing.toString) && thing.toString() === '[object FormData]')\n )\n )\n )\n}\n\n/**\n * Determine if a value is a URLSearchParams object\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a URLSearchParams object, otherwise false\n */\nconst isURLSearchParams = kindOfTest('URLSearchParams');\n\nconst [isReadableStream, isRequest, isResponse, isHeaders] = ['ReadableStream', 'Request', 'Response', 'Headers'].map(kindOfTest);\n\n/**\n * Trim excess whitespace off the beginning and end of a string\n *\n * @param {String} str The String to trim\n *\n * @returns {String} The String freed of excess whitespace\n */\nconst trim = (str) => str.trim ?\n str.trim() : str.replace(/^[\\s\\uFEFF\\xA0]+|[\\s\\uFEFF\\xA0]+$/g, '');\n\n/**\n * Iterate over an Array or an Object invoking a function for each item.\n *\n * If `obj` is an Array callback will be called passing\n * the value, index, and complete array for each item.\n *\n * If 'obj' is an Object callback will be called passing\n * the value, key, and complete object for each property.\n *\n * @param {Object|Array} obj The object to iterate\n * @param {Function} fn The callback to invoke for each item\n *\n * @param {Boolean} [allOwnKeys = false]\n * @returns {any}\n */\nfunction forEach(obj, fn, {allOwnKeys = false} = {}) {\n // Don't bother if no value provided\n if (obj === null || typeof obj === 'undefined') {\n return;\n }\n\n let i;\n let l;\n\n // Force an array if not already something iterable\n if (typeof obj !== 'object') {\n /*eslint no-param-reassign:0*/\n obj = [obj];\n }\n\n if (isArray(obj)) {\n // Iterate over array values\n for (i = 0, l = obj.length; i < l; i++) {\n fn.call(null, obj[i], i, obj);\n }\n } else {\n // Iterate over object keys\n const keys = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj);\n const len = keys.length;\n let key;\n\n for (i = 0; i < len; i++) {\n key = keys[i];\n fn.call(null, obj[key], key, obj);\n }\n }\n}\n\nfunction findKey(obj, key) {\n key = key.toLowerCase();\n const keys = Object.keys(obj);\n let i = keys.length;\n let _key;\n while (i-- > 0) {\n _key = keys[i];\n if (key === _key.toLowerCase()) {\n return _key;\n }\n }\n return null;\n}\n\nconst _global = (() => {\n /*eslint no-undef:0*/\n if (typeof globalThis !== \"undefined\") return globalThis;\n return typeof self !== \"undefined\" ? self : (typeof window !== 'undefined' ? window : global)\n})();\n\nconst isContextDefined = (context) => !isUndefined(context) && context !== _global;\n\n/**\n * Accepts varargs expecting each argument to be an object, then\n * immutably merges the properties of each object and returns result.\n *\n * When multiple objects contain the same key the later object in\n * the arguments list will take precedence.\n *\n * Example:\n *\n * ```js\n * var result = merge({foo: 123}, {foo: 456});\n * console.log(result.foo); // outputs 456\n * ```\n *\n * @param {Object} obj1 Object to merge\n *\n * @returns {Object} Result of all merge properties\n */\nfunction merge(/* obj1, obj2, obj3, ... */) {\n const {caseless} = isContextDefined(this) && this || {};\n const result = {};\n const assignValue = (val, key) => {\n const targetKey = caseless && findKey(result, key) || key;\n if (isPlainObject(result[targetKey]) && isPlainObject(val)) {\n result[targetKey] = merge(result[targetKey], val);\n } else if (isPlainObject(val)) {\n result[targetKey] = merge({}, val);\n } else if (isArray(val)) {\n result[targetKey] = val.slice();\n } else {\n result[targetKey] = val;\n }\n }\n\n for (let i = 0, l = arguments.length; i < l; i++) {\n arguments[i] && forEach(arguments[i], assignValue);\n }\n return result;\n}\n\n/**\n * Extends object a by mutably adding to it the properties of object b.\n *\n * @param {Object} a The object to be extended\n * @param {Object} b The object to copy properties from\n * @param {Object} thisArg The object to bind function to\n *\n * @param {Boolean} [allOwnKeys]\n * @returns {Object} The resulting value of object a\n */\nconst extend = (a, b, thisArg, {allOwnKeys}= {}) => {\n forEach(b, (val, key) => {\n if (thisArg && isFunction(val)) {\n a[key] = bind(val, thisArg);\n } else {\n a[key] = val;\n }\n }, {allOwnKeys});\n return a;\n}\n\n/**\n * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)\n *\n * @param {string} content with BOM\n *\n * @returns {string} content value without BOM\n */\nconst stripBOM = (content) => {\n if (content.charCodeAt(0) === 0xFEFF) {\n content = content.slice(1);\n }\n return content;\n}\n\n/**\n * Inherit the prototype methods from one constructor into another\n * @param {function} constructor\n * @param {function} superConstructor\n * @param {object} [props]\n * @param {object} [descriptors]\n *\n * @returns {void}\n */\nconst inherits = (constructor, superConstructor, props, descriptors) => {\n constructor.prototype = Object.create(superConstructor.prototype, descriptors);\n constructor.prototype.constructor = constructor;\n Object.defineProperty(constructor, 'super', {\n value: superConstructor.prototype\n });\n props && Object.assign(constructor.prototype, props);\n}\n\n/**\n * Resolve object with deep prototype chain to a flat object\n * @param {Object} sourceObj source object\n * @param {Object} [destObj]\n * @param {Function|Boolean} [filter]\n * @param {Function} [propFilter]\n *\n * @returns {Object}\n */\nconst toFlatObject = (sourceObj, destObj, filter, propFilter) => {\n let props;\n let i;\n let prop;\n const merged = {};\n\n destObj = destObj || {};\n // eslint-disable-next-line no-eq-null,eqeqeq\n if (sourceObj == null) return destObj;\n\n do {\n props = Object.getOwnPropertyNames(sourceObj);\n i = props.length;\n while (i-- > 0) {\n prop = props[i];\n if ((!propFilter || propFilter(prop, sourceObj, destObj)) && !merged[prop]) {\n destObj[prop] = sourceObj[prop];\n merged[prop] = true;\n }\n }\n sourceObj = filter !== false && getPrototypeOf(sourceObj);\n } while (sourceObj && (!filter || filter(sourceObj, destObj)) && sourceObj !== Object.prototype);\n\n return destObj;\n}\n\n/**\n * Determines whether a string ends with the characters of a specified string\n *\n * @param {String} str\n * @param {String} searchString\n * @param {Number} [position= 0]\n *\n * @returns {boolean}\n */\nconst endsWith = (str, searchString, position) => {\n str = String(str);\n if (position === undefined || position > str.length) {\n position = str.length;\n }\n position -= searchString.length;\n const lastIndex = str.indexOf(searchString, position);\n return lastIndex !== -1 && lastIndex === position;\n}\n\n\n/**\n * Returns new array from array like object or null if failed\n *\n * @param {*} [thing]\n *\n * @returns {?Array}\n */\nconst toArray = (thing) => {\n if (!thing) return null;\n if (isArray(thing)) return thing;\n let i = thing.length;\n if (!isNumber(i)) return null;\n const arr = new Array(i);\n while (i-- > 0) {\n arr[i] = thing[i];\n }\n return arr;\n}\n\n/**\n * Checking if the Uint8Array exists and if it does, it returns a function that checks if the\n * thing passed in is an instance of Uint8Array\n *\n * @param {TypedArray}\n *\n * @returns {Array}\n */\n// eslint-disable-next-line func-names\nconst isTypedArray = (TypedArray => {\n // eslint-disable-next-line func-names\n return thing => {\n return TypedArray && thing instanceof TypedArray;\n };\n})(typeof Uint8Array !== 'undefined' && getPrototypeOf(Uint8Array));\n\n/**\n * For each entry in the object, call the function with the key and value.\n *\n * @param {Object<any, any>} obj - The object to iterate over.\n * @param {Function} fn - The function to call for each entry.\n *\n * @returns {void}\n */\nconst forEachEntry = (obj, fn) => {\n const generator = obj && obj[Symbol.iterator];\n\n const iterator = generator.call(obj);\n\n let result;\n\n while ((result = iterator.next()) && !result.done) {\n const pair = result.value;\n fn.call(obj, pair[0], pair[1]);\n }\n}\n\n/**\n * It takes a regular expression and a string, and returns an array of all the matches\n *\n * @param {string} regExp - The regular expression to match against.\n * @param {string} str - The string to search.\n *\n * @returns {Array<boolean>}\n */\nconst matchAll = (regExp, str) => {\n let matches;\n const arr = [];\n\n while ((matches = regExp.exec(str)) !== null) {\n arr.push(matches);\n }\n\n return arr;\n}\n\n/* Checking if the kindOfTest function returns true when passed an HTMLFormElement. */\nconst isHTMLForm = kindOfTest('HTMLFormElement');\n\nconst toCamelCase = str => {\n return str.toLowerCase().replace(/[-_\\s]([a-z\\d])(\\w*)/g,\n function replacer(m, p1, p2) {\n return p1.toUpperCase() + p2;\n }\n );\n};\n\n/* Creating a function that will check if an object has a property. */\nconst hasOwnProperty = (({hasOwnProperty}) => (obj, prop) => hasOwnProperty.call(obj, prop))(Object.prototype);\n\n/**\n * Determine if a value is a RegExp object\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a RegExp object, otherwise false\n */\nconst isRegExp = kindOfTest('RegExp');\n\nconst reduceDescriptors = (obj, reducer) => {\n const descriptors = Object.getOwnPropertyDescriptors(obj);\n const reducedDescriptors = {};\n\n forEach(descriptors, (descriptor, name) => {\n let ret;\n if ((ret = reducer(descriptor, name, obj)) !== false) {\n reducedDescriptors[name] = ret || descriptor;\n }\n });\n\n Object.defineProperties(obj, reducedDescriptors);\n}\n\n/**\n * Makes all methods read-only\n * @param {Object} obj\n */\n\nconst freezeMethods = (obj) => {\n reduceDescriptors(obj, (descriptor, name) => {\n // skip restricted props in strict mode\n if (isFunction(obj) && ['arguments', 'caller', 'callee'].indexOf(name) !== -1) {\n return false;\n }\n\n const value = obj[name];\n\n if (!isFunction(value)) return;\n\n descriptor.enumerable = false;\n\n if ('writable' in descriptor) {\n descriptor.writable = false;\n return;\n }\n\n if (!descriptor.set) {\n descriptor.set = () => {\n throw Error('Can not rewrite read-only method \\'' + name + '\\'');\n };\n }\n });\n}\n\nconst toObjectSet = (arrayOrString, delimiter) => {\n const obj = {};\n\n const define = (arr) => {\n arr.forEach(value => {\n obj[value] = true;\n });\n }\n\n isArray(arrayOrString) ? define(arrayOrString) : define(String(arrayOrString).split(delimiter));\n\n return obj;\n}\n\nconst noop = () => {}\n\nconst toFiniteNumber = (value, defaultValue) => {\n return value != null && Number.isFinite(value = +value) ? value : defaultValue;\n}\n\n/**\n * If the thing is a FormData object, return true, otherwise return false.\n *\n * @param {unknown} thing - The thing to check.\n *\n * @returns {boolean}\n */\nfunction isSpecCompliantForm(thing) {\n return !!(thing && isFunction(thing.append) && thing[Symbol.toStringTag] === 'FormData' && thing[Symbol.iterator]);\n}\n\nconst toJSONObject = (obj) => {\n const stack = new Array(10);\n\n const visit = (source, i) => {\n\n if (isObject(source)) {\n if (stack.indexOf(source) >= 0) {\n return;\n }\n\n if(!('toJSON' in source)) {\n stack[i] = source;\n const target = isArray(source) ? [] : {};\n\n forEach(source, (value, key) => {\n const reducedValue = visit(value, i + 1);\n !isUndefined(reducedValue) && (target[key] = reducedValue);\n });\n\n stack[i] = undefined;\n\n return target;\n }\n }\n\n return source;\n }\n\n return visit(obj, 0);\n}\n\nconst isAsyncFn = kindOfTest('AsyncFunction');\n\nconst isThenable = (thing) =>\n thing && (isObject(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing.catch);\n\n// original code\n// https://github.com/DigitalBrainJS/AxiosPromise/blob/16deab13710ec09779922131f3fa5954320f83ab/lib/utils.js#L11-L34\n\nconst _setImmediate = ((setImmediateSupported, postMessageSupported) => {\n if (setImmediateSupported) {\n return setImmediate;\n }\n\n return postMessageSupported ? ((token, callbacks) => {\n _global.addEventListener(\"message\", ({source, data}) => {\n if (source === _global && data === token) {\n callbacks.length && callbacks.shift()();\n }\n }, false);\n\n return (cb) => {\n callbacks.push(cb);\n _global.postMessage(token, \"*\");\n }\n })(`axios@${Math.random()}`, []) : (cb) => setTimeout(cb);\n})(\n typeof setImmediate === 'function',\n isFunction(_global.postMessage)\n);\n\nconst asap = typeof queueMicrotask !== 'undefined' ?\n queueMicrotask.bind(_global) : ( typeof process !== 'undefined' && process.nextTick || _setImmediate);\n\n// *********************\n\nexport default {\n isArray,\n isArrayBuffer,\n isBuffer,\n isFormData,\n isArrayBufferView,\n isString,\n isNumber,\n isBoolean,\n isObject,\n isPlainObject,\n isReadableStream,\n isRequest,\n isResponse,\n isHeaders,\n isUndefined,\n isDate,\n isFile,\n isBlob,\n isRegExp,\n isFunction,\n isStream,\n isURLSearchParams,\n isTypedArray,\n isFileList,\n forEach,\n merge,\n extend,\n trim,\n stripBOM,\n inherits,\n toFlatObject,\n kindOf,\n kindOfTest,\n endsWith,\n toArray,\n forEachEntry,\n matchAll,\n isHTMLForm,\n hasOwnProperty,\n hasOwnProp: hasOwnProperty, // an alias to avoid ESLint no-prototype-builtins detection\n reduceDescriptors,\n freezeMethods,\n toObjectSet,\n toCamelCase,\n noop,\n toFiniteNumber,\n findKey,\n global: _global,\n isContextDefined,\n isSpecCompliantForm,\n toJSONObject,\n isAsyncFn,\n isThenable,\n setImmediate: _setImmediate,\n asap\n};\n","/*! js-cookie v3.0.5 | MIT */\n/* eslint-disable no-var */\nfunction assign (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n for (var key in source) {\n target[key] = source[key];\n }\n }\n return target\n}\n/* eslint-enable no-var */\n\n/* eslint-disable no-var */\nvar defaultConverter = {\n read: function (value) {\n if (value[0] === '\"') {\n value = value.slice(1, -1);\n }\n return value.replace(/(%[\\dA-F]{2})+/gi, decodeURIComponent)\n },\n write: function (value) {\n return encodeURIComponent(value).replace(\n /%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,\n decodeURIComponent\n )\n }\n};\n/* eslint-enable no-var */\n\n/* eslint-disable no-var */\n\nfunction init (converter, defaultAttributes) {\n function set (name, value, attributes) {\n if (typeof document === 'undefined') {\n return\n }\n\n attributes = assign({}, defaultAttributes, attributes);\n\n if (typeof attributes.expires === 'number') {\n attributes.expires = new Date(Date.now() + attributes.expires * 864e5);\n }\n if (attributes.expires) {\n attributes.expires = attributes.expires.toUTCString();\n }\n\n name = encodeURIComponent(name)\n .replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent)\n .replace(/[()]/g, escape);\n\n var stringifiedAttributes = '';\n for (var attributeName in attributes) {\n if (!attributes[attributeName]) {\n continue\n }\n\n stringifiedAttributes += '; ' + attributeName;\n\n if (attributes[attributeName] === true) {\n continue\n }\n\n // Considers RFC 6265 section 5.2:\n // ...\n // 3. If the remaining unparsed-attributes contains a %x3B (\";\")\n // character:\n // Consume the characters of the unparsed-attributes up to,\n // not including, the first %x3B (\";\") character.\n // ...\n stringifiedAttributes += '=' + attributes[attributeName].split(';')[0];\n }\n\n return (document.cookie =\n name + '=' + converter.write(value, name) + stringifiedAttributes)\n }\n\n function get (name) {\n if (typeof document === 'undefined' || (arguments.length && !name)) {\n return\n }\n\n // To prevent the for loop in the first place assign an empty array\n // in case there are no cookies at all.\n var cookies = document.cookie ? document.cookie.split('; ') : [];\n var jar = {};\n for (var i = 0; i < cookies.length; i++) {\n var parts = cookies[i].split('=');\n var value = parts.slice(1).join('=');\n\n try {\n var found = decodeURIComponent(parts[0]);\n jar[found] = converter.read(value, found);\n\n if (name === found) {\n break\n }\n } catch (e) {}\n }\n\n return name ? jar[name] : jar\n }\n\n return Object.create(\n {\n set,\n get,\n remove: function (name, attributes) {\n set(\n name,\n '',\n assign({}, attributes, {\n expires: -1\n })\n );\n },\n withAttributes: function (attributes) {\n return init(this.converter, assign({}, this.attributes, attributes))\n },\n withConverter: function (converter) {\n return init(assign({}, this.converter, converter), this.attributes)\n }\n },\n {\n attributes: { value: Object.freeze(defaultAttributes) },\n converter: { value: Object.freeze(converter) }\n }\n )\n}\n\nvar api = init(defaultConverter, { path: '/' });\n/* eslint-enable no-var */\n\nexport { api as default };\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","/**\n * A collection of utilities, SDKs, and types provided by the Sharetribe SDK.\n *\n * @module SharetribeSdkExports\n */\n\nimport SharetribeSdkExport from \"./sdk\";\nimport IntegrationSdkExport from \"./integrationSdk\";\nimport BigDecimal from \"./sdkTypes/BigDecimal\";\nimport UUID from \"./sdkTypes/UUID\";\nimport LatLng from \"./sdkTypes/LatLng\";\nimport LatLngBounds from \"./sdkTypes/LatLngBounds\";\nimport Money from \"./sdkTypes/Money\";\nimport { replacer, reviver } from \"./utils/convert-types\";\nimport MemoryStore from \"./utils/stores/MemoryStore\";\nimport BrowserStore from \"./utils/stores/BrowserStore\";\nimport ExpressStore from \"./utils/stores/ExpressStore\";\nimport { objectQueryString } from \"./utils/util\";\nimport { read, write } from \"./utils/transit\";\n\n// Export marketplace types\nexport * from \"./types/assets\";\nexport * from \"./types/authentication\";\nexport * from \"./types/integration/events\";\nexport * from \"./types/marketplace/availabilityExceptions\";\nexport * from \"./types/marketplace/bookings\";\nexport * from \"./types/marketplace/currentUser\";\nexport * from \"./types/marketplace/images\";\nexport * from \"./types/marketplace/listings\";\nexport * from \"./types/marketplace/marketplace\";\nexport * from \"./types/marketplace/messages\";\nexport * from \"./types/marketplace/ownListings\";\nexport * from \"./types/marketplace/passwordReset\";\nexport * from \"./types/marketplace/processTransitions\";\nexport * from \"./types/marketplace/reviews\";\nexport * from \"./types/marketplace/stock\";\nexport * from \"./types/marketplace/stockAdjustment\";\nexport * from \"./types/marketplace/stockReservations\";\nexport * from \"./types/marketplace/stripeAccount\";\nexport * from \"./types/marketplace/stripeAccountLinks\";\nexport * from \"./types/marketplace/stripeCustomer\";\nexport * from \"./types/marketplace/stripePaymentMethod\";\nexport * from \"./types/marketplace/stripePersons\";\nexport * from \"./types/marketplace/stripeSetupIntents\";\nexport * from \"./types/marketplace/timeSlots\";\nexport * from \"./types/marketplace/transactions\";\nexport * from \"./types/marketplace/user\";\nexport * from \"./types/config\";\nexport * from \"./types/sharetribe\";\nexport * from \"./types/apiConfigs\";\nexport * from \"./types/config\";\nexport * from \"./types/store\";\n\n/**\n * SDK-specific types provided for advanced usage.\n */\nexport const sdkTypes = {\n /** A representation of a high-precision decimal number. */\n BigDecimal,\n /** A geographical point with latitude and longitude. */\n LatLng,\n /** A bounding box defined by northeast and southwest geographical points. */\n LatLngBounds,\n /** A monetary value with an amount and currency. */\n Money,\n /** A universally unique identifier (UUID). */\n UUID,\n /** Replacer function for JSON serialization. */\n replacer,\n /** Reviver function for JSON deserialization. */\n reviver,\n};\nexport type SdkTypes = {\n BigDecimal: typeof BigDecimal;\n LatLng: typeof LatLng;\n LatLngBounds: typeof LatLngBounds;\n Money: typeof Money;\n UUID: typeof UUID;\n replacer: typeof replacer;\n reviver: typeof reviver;\n};\n/**\n * Token store implementations for managing authentication tokens.\n */\nexport const TokenStore = {\n /** In-memory token store for temporary token management. */\n MemoryStore,\n /** Browser token store using cookies. */\n BrowserStore,\n /** Express.js-compatible token store using request and response cookies. */\n ExpressStore,\n};\nexport type TokenStore = {\n MemoryStore: typeof MemoryStore;\n BrowserStore: typeof BrowserStore;\n ExpressStore: typeof ExpressStore;\n};\n\n/**\n * Transit utilities for reading and writing transit data.\n */\nexport const transit = {\n read,\n write,\n};\nexport type Transit = {\n read: typeof read;\n write: typeof write;\n};\n/**\n * Export the Sharetribe SDK and Integration SDK.\n */\nexport const SharetribeSdk = SharetribeSdkExport;\nexport type SharetribeSdk = SharetribeSdkExport;\n\nexport const IntegrationSdk = IntegrationSdkExport;\nexport type IntegrationSdk = IntegrationSdkExport;\n\n/**\n * Utility functions for data manipulation.\n */\nexport const util = {\n /** Serializes an object into a custom query string format. */\n objectQueryString,\n};\nexport type Util = {\n objectQueryString: typeof objectQueryString;\n};\n\nconst defaultExport = {\n /** Export of the Sharetribe SDK. */\n SharetribeSdk: SharetribeSdkExport,\n /** Export of the Integration SDK. */\n SharetribeIntegrationSdk: IntegrationSdkExport,\n /** Export of available token stores. */\n TokenStore,\n /** Export of SDK-specific types. */\n sdkTypes,\n /** Export of utility functions. */\n util,\n /** Export of Transit utilities. */\n transit,\n};\nexport default defaultExport;\n\nexport type DefaultExport = {\n SharetribeSdk: SharetribeSdkExport;\n SharetribeIntegrationSdk: IntegrationSdkExport;\n TokenStore: typeof TokenStore;\n sdkTypes: typeof sdkTypes;\n util: typeof util;\n transit: typeof transit;\n};\n"],"names":["module","exports","parallel","serial","serialOrdered","clean","key","this","jobs","abort","state","Object","keys","forEach","bind","defer","async","callback","isAsync","async_callback","err","result","nextTick_callback","fn","nextTick","setImmediate","process","setTimeout","iterate","list","iterator","index","runJob","item","aborter","length","error","output","results","sortMethod","isNamedList","Array","isArray","initState","keyedList","size","sort","a","b","terminator","ascending","iteratorHandler","descending","util","Stream","DelayedStream","CombinedStream","writable","readable","dataSize","maxDataSize","pauseStreams","_released","_streams","_currentStream","_insideLoop","_pendingNext","inherits","create","options","combinedStream","option","isStreamLike","stream","Buffer","isBuffer","prototype","append","newStream","Infinity","pauseStream","on","_checkDataSize","_handleErrors","pause","push","pipe","dest","call","resume","_getNext","_realGetNext","shift","_pipeNext","end","value","write","self","_emitError","data","emit","_reset","destroy","_updateDataSize","message","Error","formatArgs","args","useColors","namespace","humanize","diff","c","color","splice","lastC","replace","match","save","namespaces","storage","setItem","removeItem","load","r","getItem","env","DEBUG","window","type","__nwjs","navigator","userAgent","toLowerCase","document","documentElement","style","WebkitAppearance","console","firebug","exception","table","parseInt","RegExp","$1","localstorage","localStorage","warned","warn","colors","log","debug","formatters","j","v","JSON","stringify","setup","createDebug","prevTime","namespacesCache","enabledCache","enableOverride","enabled","curr","Number","Date","ms","prev","coerce","unshift","format","formatter","val","apply","selectColor","extend","defineProperty","enumerable","configurable","get","set","init","delimiter","newDebug","toNamespace","regexp","toString","substring","default","stack","disable","names","map","skips","join","enable","i","split","len","slice","name","test","hash","charCodeAt","Math","abs","browser","tty","inspectOpts","stderr","colorCode","prefix","getDate","hideDate","toISOString","Boolean","isatty","fd","deprecate","supportsColor","level","filter","reduce","obj","prop","_","k","toUpperCase","o","inspect","str","trim","O","source","_maxDataSizeExceeded","_bufferedEvents","delayedStream","realEmit","_handleEmit","arguments","setEncoding","release","_checkIfMaxDataSizeExceeded","$defineProperty","e","EvalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError","GetIntrinsic","hasToStringTag","hasOwn","$TypeError","toStringTag","Symbol","setToStringTag","object","overrideIfSet","force","nonConfigurable","Function","undefined","$Object","$Error","$EvalError","$RangeError","$ReferenceError","$SyntaxError","$URIError","floor","max","min","pow","round","sign","$Function","getEvalledConstructor","expressionSyntax","$gOPD","throwTypeError","ThrowTypeError","calleeThrows","gOPDthrows","hasSymbols","getProto","$ObjectGPO","$ReflectGPO","$apply","$call","needsEval","TypedArray","Uint8Array","INTRINSICS","__proto__","AggregateError","ArrayBuffer","Atomics","BigInt","BigInt64Array","BigUint64Array","DataView","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","eval","Float16Array","Float32Array","Float64Array","FinalizationRegistry","Int8Array","Int16Array","Int32Array","isFinite","isNaN","Map","parseFloat","Promise","Proxy","Reflect","Set","SharedArrayBuffer","String","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","WeakRef","WeakSet","errorProto","doEval","gen","LEGACY_ALIASES","$concat","concat","$spliceApply","$replace","$strSlice","$exec","exec","rePropName","reEscapeChar","getBaseIntrinsic","allowMissing","alias","intrinsicName","parts","stringToPath","string","first","last","number","quote","subString","intrinsicBaseName","intrinsic","intrinsicRealName","skipFurtherCaching","isOwn","part","desc","url","URL","http","https","Writable","assert","detectUnsupportedEnvironment","looksLikeNode","looksLikeBrowser","looksLikeV8","isFunction","captureStackTrace","useNativeURL","code","preservedUrlFields","events","eventHandlers","event","arg1","arg2","arg3","_redirectable","InvalidUrlError","createErrorType","RedirectionError","TooManyRedirectsError","MaxBodyLengthExceededError","WriteAfterEndError","noop","RedirectableRequest","responseCallback","_sanitizeOptions","_options","_ended","_ending","_redirectCount","_redirects","_requestBodyLength","_requestBodyBuffers","_onNativeResponse","response","_processResponse","cause","_performRequest","wrap","protocols","maxRedirects","maxBodyLength","nativeProtocols","scheme","protocol","nativeProtocol","wrappedProtocol","defineProperties","request","input","isURL","isString","spreadUrlObject","parseUrl","validateUrl","assign","host","hostname","equal","wrappedRequest","parsed","parse","href","urlObject","target","spread","startsWith","port","path","search","pathname","removeMatchingHeaders","regex","headers","lastValue","header","baseClass","CustomError","properties","constructor","destroyRequest","removeListener","_currentRequest","encoding","currentRequest","setHeader","removeHeader","msecs","destroyOnTimeout","socket","addListener","startTimer","_timeout","clearTimeout","clearTimer","once","method","property","searchPos","indexOf","agents","agent","_currentUrl","_isRedirect","buffers","writeNext","buffer","finished","statusCode","trackRedirects","requestHeaders","location","followRedirects","responseUrl","redirects","beforeRedirect","Host","req","getHeader","currentHostHeader","currentUrlParts","currentHost","currentUrl","redirectUrl","resolveUrl","relative","base","resolve","isSubdomain","subdomain","domain","dot","endsWith","responseDetails","requestDetails","fs","mime","asynckit","populate","FormData","_overheadLength","_valueLength","_valuesToMeasure","LINE_BREAK","DEFAULT_CONTENT_TYPE","field","filename","_error","_multiPartHeader","footer","_multiPartFooter","_trackLength","valueLength","knownLength","byteLength","hasOwnProperty","_lengthRetriever","start","stat","fileSize","contentDisposition","_getContentDisposition","contentType","_getContentType","contents","getBoundary","filepath","normalize","basename","client","_httpMessage","lookup","next","_lastBoundary","getHeaders","userHeaders","formHeaders","setBoundary","boundary","_boundary","_generateBoundary","getBuffer","dataBuffer","alloc","from","random","getLengthSync","hasKnownLength","getLength","cb","values","submit","params","defaults","onResponse","responce","dst","src","toStr","concatty","arr","that","bound","slicy","arrLike","offset","boundLength","boundArgs","joiner","joiny","Empty","implementation","getPrototypeOf","reflectGetProto","originalGetProto","getDunderProto","$reflectApply","$actualApply","callBindBasic","hasProtoAccessor","callBind","gOPD","$getPrototypeOf","getDunder","getOwnPropertyDescriptor","flag","argv","position","terminatorPosition","origSymbol","hasSymbolSham","hasNativeSymbols","getOwnPropertySymbols","sym","symObj","getOwnPropertyNames","syms","propertyIsEnumerable","descriptor","hasToStringTagShams","$hasOwn","denyList","has","$isNaN","db","extname","EXTRACT_TYPE_REGEXP","TEXT_TYPE_REGEXP","charset","charsets","extension","exts","extensions","substr","types","populateMaps","preference","forEachMimeType","to","s","m","h","d","w","y","plural","msAbs","n","isPlural","long","fmtLong","fmtShort","DEFAULT_PORTS","ftp","gopher","ws","wss","stringEndsWith","getEnv","getProxyForUrl","parsedUrl","proto","shouldProxy","NO_PROXY","every","proxy","parsedProxy","parsedProxyHostname","parsedProxyPort","charAt","os","hasFlag","forceColor","translateLevel","hasBasic","has256","has16m","haveStream","streamIsTTY","TERM","platform","osRelease","some","CI_NAME","TEAMCITY_VERSION","COLORTERM","version","TERM_PROGRAM_VERSION","TERM_PROGRAM","FORCE_COLOR","getSupportLevel","isTTY","stdout","COMPILED","goog","global","exportPath_","execScript","isObject","f","define","CLOSURE_UNCOMPILED_DEFINES","CLOSURE_DEFINES","nodeType","FEATURESET_YEAR","LOCALE","TRUSTED_SITE","DISALLOW_TEST_ONLY_CODE","ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING","provide","isInModuleLoader_","isProvided_","constructNamespace_","implicitNamespaces_","lastIndexOf","getObjectByName","getScriptNonce","getScriptNonce_","cspNonce_","NONCE_PATTERN_","querySelector","nonce","getAttribute","VALID_MODULE_RE_","isInGoogModuleLoader_","moduleLoaderState_","moduleName","getInternal_","loadedModules_","ModuleType","ES6","GOOG","isInEs6ModuleLoader_","$jscomp","getCurrentModulePath","declareLegacyNamespace","declareModuleId","require","moduleId","setTestOnly","forwardDeclare","addDependency","DEPENDENCIES_ENABLED","debugLoader_","ENABLE_DEBUG_LOADER","logToConsole_","requested","load_","requireType","basePath","nullFunction","abstractMethod","addSingletonGetter","instance_","getInstance","instantiatedSingletons_","LOAD_MODULE_USING_EVAL","SEAL_MODULE_EXPORTS","TRANSPILE","ASSUME_ES_MODULES_TRANSPILED","TRANSPILE_TO_LANGUAGE","TRANSPILER","TRUSTED_TYPES_POLICY_NAME","hasBadLetScoping","loadModule","loadModuleFromSource_","seal","CLOSURE_EVAL_PREFILTER_","createScript","normalizePath_","loadFileSync_","CLOSURE_LOAD_FILE_SYNC","XMLHttpRequest","open","send","status","responseText","transpile_","transpile","g","$gwtExport","typeOf","isArrayLike","isDateLike","getFullYear","getUid","UID_PROPERTY_","uidCounter_","hasUid","removeUid","removeAttribute","cloneObject","clone","bindNative_","bindJs_","partial","mixin","now","globalEval","getCssName","cssNameMapping_","cssNameMappingStyle_","CLOSURE_CSS_NAME_MAP_FN","setCssNameMapping","CLOSURE_CSS_NAME_MAPPING","getMsg","html","unescapeHtmlEntities","getMsgWithFallback","exportSymbol","exportProperty","superClass_","scope","defineClass","statics","createSealingConstructor_","applyProperties_","SEAL_CLASS_INSTANCES","OBJECT_PROTOTYPE_FIELDS_","identity_","createTrustedTypesPolicy","trustedTypes","createPolicy","createHTML","createScriptURL","isEdge_","inHtmlDocument_","isDocumentLoading_","attachEvent","readyState","findBasePath_","CLOSURE_BASE_PATH","currentScript","getElementsByTagName","Transpiler","requiresTranspilation_","transpilationTarget_","createRequiresTranspilation_","es3","needsTranspile","createElement","transpiler_","protectScriptTag_","DebugLoader_","dependencies_","idToPath_","written_","loadingDeps_","depsToLoad_","paused_","factory_","DependencyFactory","deferredCallbacks_","deferredQueue_","bootstrap","getPathFromDeps_","onLoad","loadClosureDeps","createDependency","loadDeps_","areDepsLoaded_","requires","setDependencyFactory","loading_","resume_","loaded","loaded_","pending","setModuleState","registerEs6ModuleExports","registerGoogModuleExports","clearModuleState","defer_","areDepsLoaded","pause_","LoadController","Dependency","relativePath","provides","loadFlags","loadCallbacks_","getPathName","callbackMap_","registerCallback_","unregisterCallback_","callback_","CLOSURE_IMPORT_SCRIPT","onload","TRUSTED_TYPES_POLICY_","IS_OLD_IE_","onreadystatechange","head","appendChild","Es6ModuleDependency","l","p","setAttribute","text","TransformedDependency","contents_","lazyFetch_","transform","ensure","TranspiledDependency","transpiler","PreTranspiledEs6ModuleDependency","GoogModuleDependency","needsTranspile_","atob","all","lang","CLOSURE_NO_DEPS","isChrome87","emptyScript","getCount","getAnyKey","getAnyValue","contains","containsValue","getValues","getKeys","getValueByKeys","containsKey","findKey","findValue","isEmpty","clear","remove","add","setIfUndefined","setWithReturnValueIfNotSet","equals","unsafeClone","isView","transpose","PROTOTYPE_FIELDS_","createSet","createImmutableView","isFrozen","freeze","isImmutableView","getAllPropertyNames","getSuperClass","com","cognitect","module$contents$goog$debug$Error_DebugError","reportErrorToServer","transit","objectKeys","chars","randInt","randHex","randomUUID","btoa","fromCharCode","Uint8ToBase64","subarray","Base64ToUint8","delimiters","ESC","TAG","SUB","RES","ESC_TAG","caching","MIN_SIZE_CACHEABLE","BASE_CHAR_IDX","CACHE_CODE_DIGITS","MAX_CACHE_ENTRIES","MAX_CACHE_SIZE","isCacheable","idxToCode","WriteCache","cacheSize","idx","cache","writeCache","isCacheCode","codeToIdx","ReadCache","read","readCache","eq","hashCodeProperty","hashCodeCounter","com$cognitect$transit$equals","hashCombine","stringCodeCache","stringCodeCacheSize","STR_CACHE_MAX","hashString","hashMapLike","hashCode","hashArrayLike","valueOf","com$cognitect$transit$hashCode","extendToEQ","dom","NodeType","ELEMENT","ATTRIBUTE","TEXT","CDATA_SECTION","ENTITY_REFERENCE","ENTITY","PROCESSING_INSTRUCTION","COMMENT","DOCUMENT","DOCUMENT_TYPE","DOCUMENT_FRAGMENT","NOTATION","asserts","ENABLE_ASSERTS","AssertionError","subs_","messagePattern","DEFAULT_ERROR_HANDLER","errorHandler_","doAssertFailure_","setErrorHandler","assertExists","fail","assertNumber","assertString","assertFunction","assertObject","assertArray","assertBoolean","assertElement","assertInstanceof","getType_","assertFinite","displayName","reflect","objectProperty","sinkValue","canAccessProperty","math","module$contents$goog$math$Long_Long","low_","high_","toInt","toNumber","module$contents$goog$math$Long_TWO_PWR_32_DBL_","getLowBitsUnsigned","isSafeInteger","fromBits","div","subtract","multiply","getHighBits","getLowBits","getNumBitsAbs","isNegative","getMinValue","negate","isZero","isOdd","notEquals","lessThan","compare","lessThanOrEqual","greaterThan","greaterThanOrEqual","getOne","getNegOne","shiftRight","shiftLeft","getZero","ceil","LN2","fromNumber","modulo","not","and","or","xor","shiftRightUnsigned","fromInt","module$contents$goog$math$Long_getCachedIntValue_","module$contents$goog$math$Long_TWO_PWR_63_DBL_","getMaxValue","fromString","module$contents$goog$math$Long_MAX_SAFE_INTEGER_","isStringInRange","module$contents$goog$math$Long_MIN_VALUE_FOR_RADIX_","module$contents$goog$math$Long_MAX_VALUE_FOR_RADIX_","module$contents$goog$math$Long_ZERO_","module$contents$goog$math$Long_ONE_","module$contents$goog$math$Long_NEG_ONE_","module$contents$goog$math$Long_MAX_VALUE_","module$contents$goog$math$Long_MIN_VALUE_","getTwoPwr24","module$contents$goog$math$Long_TWO_PWR_24_","Long","module$contents$goog$math$Long_IntCache_","ITERATOR","TaggedValue","tag","rep","equiv","taggedValue","isTaggedValue","nullValue","boolValue","MAX_INT","MIN_INT","intValue","isInteger","floatValue","bigInteger","isBigInteger","bigDecimalValue","isBigDecimal","charValue","Keyword","_name","keyword","isKeyword","symbol","isSymbol","hexFor","UUID","high","low","getLeastSignificantBits","getMostSignificantBits","UUIDfromString","uuid","isUUID","date","verboseDate","binary","preferBuffers","isBinary","uri","isURI","KEYS","VALUES","ENTRIES","TransitArrayMapIterator","entries","done","TransitMapIterator","bucket","bucketIdx","mapEquals","TransitMap","isMap","TransitArrayMap","_entries","SMALL_ARRAY_MAP_THRESHOLD","ARRAY_MAP_THRESHOLD","ARRAY_MAP_ACCESS_THRESHOLD","print","printMap","printSet","backingMap","accesses","convert","keySet","delete","_keys","isArrayMap","TransitSet","isSet","quoted","isQuoted","isList","link","isLink","specialDouble","NaN","impl","decoder","Tag","isTag","isGroundHandler","Decoder","handlers","preferStrings","defaultHandler","mapBuilder","arrayBuilder","$","z","t","u","cmap","decode","decodeString","decodeArrayHash","decodeArray","decodeHash","parseString","fromArray","finalize","reader","JSONUnmarshaller","unmarshal","Reader","unmarshaller","ctorGuid","ctorGuidProperty","typeTag","padZeros","stringableKeys","NilHandler","stringRep","StringHandler","NumberHandler","IntegerHandler","BooleanHandler","ArrayHandler","MapHandler","VerboseDateHandler","getUTCFullYear","getUTCMonth","getUTCDate","getUTCHours","getUTCMinutes","getUTCSeconds","getUTCMilliseconds","DateHandler","getVerboseHandler","UUIDHandler","KeywordHandler","SymbolHandler","TaggedHandler","TransitSetHandler","TransitArrayMapHandler","TransitMapHandler","BufferHandler","Uint8ArrayHandler","defaultHandlers","Handlers","validTag","writer","escape","JSONMarshaller","opts","objectBuilder","handlerForForeign","unpack","verbose","handler","transitTag","registerHandler","emitNil","emitString","emitBoolean","emitInteger","emitDouble","emitBinary","emitQuoted","marshal","emitObjects","emitArray","isStringableKey","isForeignObject","transit$isObject","emitMap","emitTaggedMap","emitEncoded","maybeQuoted","marshalTop","Writer","_marshaller","marshaller","asMapKey","register","TRANSIT_DEV","TRANSIT_NODE_TARGET","TRANSIT_BROWSER_TARGET","TRANSIT_BROWSER_AMD_TARGET","makeWriteHandler","makeBuilder","integer","bigInt","isBigInt","bigDec","isBigDec","tagged","mapToObject","objectToMap","extractCommonPathAndAssets","paths","commonPath","assets","asset","AssetsApi","axios","endpoint","sdk","config","apisConfigs","sdkConfig","baseUrl","clientId","assetByAlias","assetsByAlias","assetByVersion","assetsByVersion","urlEncodeFormData","encodedKey","encodedValue","AuthenticationApi","auth","token","post","authWithIdp","revoke","details","AvailabilityExceptions","authRequired","api","query","extraParams","Events","Images","upload","formDataObj","entry","Listings","show","update","close","approve","Marketplace","Stock","compareAndSet","StockAdjustments","StockReservation","Transactions","transition","transitionSpeculative","updateMetadata","Users","id","email","updateProfile","updatePermissions","IntegrationApi","availabilityExceptions","images","listings","marketplace","stock","stockAdjustments","stockReservations","transactions","users","integrationApi","A","Bookings","CurrentUser","createWithIdp","changePassword","changeEmail","verifyEmail","sendVerificationEmail","createStripeAccount","updateStripeAccount","Messages","OwnListings","createDraft","publishDraft","discardDraft","addImage","PasswordReset","reset","ProcessTransitions","Reviews","StripeAccount","fetch","StripeAccountLinks","StripeCustomer","addPaymentMethod","deletePaymentMethod","StripePersons","StripeSetupIntents","TimeSlots","initiate","initiateSpeculative","MarketplaceApi","bookings","currentUser","messages","ownListings","passwordReset","processTransitions","reviews","stripeAccount","stripeAccountLinks","stripeCustomer","stripePersons","stripeSetupIntents","timeslots","IntegrationSdk","integration_api","baseURL","httpAgent","httpsAgent","SharetribeSdk","assetsApi","login","client_id","grant_type","loginAs","loginWithIdp","clientSecret","client_secret","logout","access_token","tokenStore","getToken","exchangeToken","subject_token","authInfo","storedToken","tokenScope","scopes","isAnonymous","grantType","BigDecimal","_sdkType","LatLng","lat","lng","isNumberOrNumberString","LatLngBounds","ne","sw","isValid","isLatLngObject","neLatLng","swLatLng","Money","amount","currency","createApisConfigs","isIntegrationSdk","transitVerbose","Accept","assetCdnBaseUrl","DefaultSdkConfig","typeHandlers","toSdkTypes","replacer","reviver","serializeValue","parameterSerializer","serializedParams","URLSearchParams","QUERY_PARAMETERS","isTransit","res","isJson","isTokenUnauthorized","includes","isTokenExpired","routeNeedsTrustedUser","requestConfig","requestUrl","found","find","prepareAuthorizationHeader","token_type","createAxiosConfig","transformRequest","transformResponse","prepareAxiosInstance","retryConfig","retries","retryDelay","interceptors","use","handleResponseSuccess","onFulfilled","setToken","revoked","removeToken","handleResponseFailure","originalRequest","refresh_token","Authorization","reject","handleRequestSuccess","authToken","param","paramsSerializer","BrowserStore","expiration","secure","cookie","secureFlag","expires","ExpressStore","currentToken","readCookie","cookies","maxAge","httpOnly","clearCookie","MemoryStore","generateKey","identity","array","predicate","composeReader","sdkTypeReader","appTypeReader","sdkTypeReaderFn","appTypeReaderFn","typeMap","geo","mn","sdkTypeReaders","sdkType","sdkTypeWriters","constructReadHandlers","appTypeReaders","fromPairs","pairs","typeClass","fromEntries","writeHandlers","sdkTypeWriter","flat","ret","MapHandlers","appTypeWriters","transitType","appTypeWriter","appType","canHandle","x","createTransitConverters","readers","writers","memo","objectQueryString","attribute","rnds8Pool","poolPtr","rng","byteToHex","unsafeStringify","v4","buf","rnds","isNetworkError","SAFE_HTTP_METHODS","IDEMPOTENT_HTTP_METHODS","isRetryableError","isIdempotentRequestError","isNetworkOrIdempotentRequestError","retryAfter","retryAfterHeader","retryAfterMs","DEFAULT_OPTIONS","retryCondition","noDelay","_retryNumber","shouldResetTimeout","onRetry","onMaxRetryTimesExceeded","validateResponse","setCurrentState","defaultOptions","resetLastRequestTime","currentState","getRequestOptions","retryCount","lastRequestTime","axiosRetry","axiosInstance","requestInterceptorId","validateStatus","responseInterceptorId","shouldRetry","shouldRetryOrPromise","_err","handleRetry","delay","fixConfig","timeout","lastRequestDuration","signal","aborted","abortListener","removeEventListener","addEventListener","handleMaxRetryTimesExceeded","isSafeRequestError","exponentialDelay","retryNumber","delayFactor","calculatedDelay","linearDelay","knownAdapters","xhr","renderReason","reason","isResolvedHandle","adapter","getAdapter","adapters","nameOrAdapter","rejectedReasons","reasons","isFetchSupported","Request","Response","isReadableStreamSupported","ReadableStream","encodeText","TextEncoder","encoder","encode","arrayBuffer","supportsRequestStream","duplexAccessed","hasContentType","origin","body","duplex","supportsResponseStream","isReadableStream","resolvers","ERR_NOT_SUPPORT","resolveBodyLength","toFiniteNumber","getContentLength","isBlob","isSpecCompliantForm","_request","isArrayBufferView","isArrayBuffer","isURLSearchParams","getBodyLength","cancelToken","onDownloadProgress","onUploadProgress","responseType","withCredentials","fetchOptions","composedSignal","toAbortSignal","unsubscribe","requestContentLength","contentTypeHeader","isFormData","setContentType","onProgress","flush","isCredentialsSupported","toJSON","credentials","isStreamResponse","responseContentLength","responseData","statusText","ERR_NETWORK","zlibOptions","Z_SYNC_FLUSH","finishFlush","brotliOptions","BROTLI_OPERATION_FLUSH","isBrotliSupported","httpFollow","httpsFollow","isHttps","supportedProtocols","flushOnFinish","throttled","dispatchBeforeRedirect","beforeRedirects","setProxy","configProxy","proxyUrl","username","password","base64","proxyHost","redirectOptions","isHttpAdapterSupported","kindOf","buildAddressEntry","address","family","resolveFamily","httpAdapter","asyncExecutor","dispatchHttpRequest","onDone","responseEncoding","isDone","rejected","_lookup","opt","arg0","addresses","addr","emitter","EventEmitter","onFinished","removeAllListeners","isRejected","subscribe","fullPath","allowAbsoluteUrls","hasBrowserEnv","convertedData","Blob","ERR_BAD_REQUEST","stripBOM","maxRate","maxUploadRate","maxDownloadRate","userBoundary","getContentType","hasContentLength","setContentLength","isFile","isStream","contentLength","objectMode","customErr","exists","transport","isUndefined","socketPath","isHttpsRequest","insecureHTTPParser","handleResponse","destroyed","streams","responseLength","transformStream","responseStream","lastRequest","decompress","offListeners","statusMessage","responseBuffer","totalResponseBytes","handleStreamData","chunk","maxContentLength","ERR_BAD_RESPONSE","handlerStreamAborted","handleStreamError","handleStreamEnd","handleRequestError","handleRequestSocket","setKeepAlive","ERR_BAD_OPTION_VALUE","handleRequestTimeout","timeoutErrorMessage","transitional","clarifyTimeoutError","ETIMEDOUT","ECONNABORTED","ended","errored","_reject","onDoneHandler","catch","dispatchXhrRequest","_config","requestData","onCanceled","uploadThrottled","downloadThrottled","flushUpload","flushDownload","onloadend","responseHeaders","getAllResponseHeaders","_resolve","handleLoad","responseURL","onabort","handleAbort","onerror","handleError","ontimeout","handleTimeout","setRequestHeader","cancel","createInstance","defaultConfig","context","instance","allOwnKeys","instanceConfig","Axios","CanceledError","CancelToken","isCancel","VERSION","toFormData","AxiosError","Cancel","promises","isAxiosError","mergeConfig","AxiosHeaders","formToJSON","thing","isHTMLForm","HttpStatusCode","executor","resolvePromise","promise","promiseExecutor","then","_listeners","onfulfilled","throwIfRequested","listener","controller","AbortController","ERR_CANCELED","__CANCEL__","validators","configOrUrl","dummy","assertOptions","silentJSONParsing","boolean","forcedJSONParsing","serialize","function","spelling","withXsrfToken","contextHeaders","merge","common","requestInterceptorChain","synchronousRequestInterceptors","unshiftRequestInterceptors","interceptor","runWhen","synchronous","fulfilled","responseInterceptorChain","pushResponseInterceptors","chain","newConfig","onRejected","getUri","forEachMethodNoData","forEachMethodWithData","generateHTTPMethod","isForm","httpMethod","description","fileName","lineNumber","columnNumber","toJSONObject","descriptors","customProps","axiosError","toFlatObject","$internals","normalizeHeader","normalizeValue","matchHeaderValue","isHeaderNameFilter","isRegExp","valueOrRewrite","rewrite","_value","_header","_rewrite","lHeader","setHeaders","isPlainObject","isHeaders","parser","parseTokens","tokens","tokensRE","matcher","deleted","deleteHeader","normalized","formatHeader","char","targets","asStrings","computed","accessor","accessors","defineAccessor","buildAccessors","accessorName","toCamelCase","methodName","reduceDescriptors","mapped","headerValue","freezeMethods","InterceptorManager","eject","forEachHandler","buildFullPath","requestedURL","isRelativeUrl","throwIfCancellationRequested","dispatchRequest","onAdapterResolution","onAdapterRejection","headersToObject","config1","config2","getMergedValue","caseless","mergeDeepProperties","valueFromConfig2","defaultToConfig2","mergeDirectKeys","mergeMap","timeoutMessage","withXSRFToken","xsrfCookieName","xsrfHeaderName","computeConfigValue","configValue","settle","transformData","fns","hasJSONContentType","isObjectPayload","isFileList","formSerializer","_FormData","stringifySafely","rawValue","JSONRequested","isResponse","strictJSONParsing","classes","kInternals","AxiosTransformStream","super","readableHighWaterMark","chunkSize","minChunkSize","timeWindow","ticksRate","samplesCount","internals","bytesSeen","isCaptured","notifiedBytesLoaded","ts","bytes","onReadCallback","_read","_transform","bytesThreshold","pushChunk","_chunk","_callback","transformChunk","bytesLeft","chunkRemainder","maxChunkSize","passed","transformNextChunk","charMap","AxiosURLSearchParams","_pairs","_encode","each","pair","Continue","SwitchingProtocols","Processing","EarlyHints","Ok","Created","Accepted","NonAuthoritativeInformation","NoContent","ResetContent","PartialContent","MultiStatus","AlreadyReported","ImUsed","MultipleChoices","MovedPermanently","Found","SeeOther","NotModified","UseProxy","Unused","TemporaryRedirect","PermanentRedirect","BadRequest","Unauthorized","PaymentRequired","Forbidden","NotFound","MethodNotAllowed","NotAcceptable","ProxyAuthenticationRequired","RequestTimeout","Conflict","Gone","LengthRequired","PreconditionFailed","PayloadTooLarge","UriTooLong","UnsupportedMediaType","RangeNotSatisfiable","ExpectationFailed","ImATeapot","MisdirectedRequest","UnprocessableEntity","Locked","FailedDependency","TooEarly","UpgradeRequired","PreconditionRequired","TooManyRequests","RequestHeaderFieldsTooLarge","UnavailableForLegalReasons","InternalServerError","NotImplemented","BadGateway","ServiceUnavailable","GatewayTimeout","HttpVersionNotSupported","VariantAlsoNegotiates","InsufficientStorage","LoopDetected","NotExtended","NetworkAuthenticationRequired","ZlibHeaderTransformStream","__transform","thisArg","buildURL","serializeFn","hashmarkIndex","reducer","isAsyncFn","pop","combineURLs","relativeURL","signals","timer","asap","hasStandardBrowserEnv","isNumber","toGMTString","formDataToJSON","formData","buildPath","isNumericKey","isLast","hasOwnProp","arrayToObject","forEachEntry","parsePropPath","matchAll","BOUNDARY_ALPHABET","ALPHABET","ALPHA_DIGIT","textEncoder","CRLF","CRLF_BYTES","FormDataPart","escapeName","isStringValue","isTypedArray","form","headersHandler","generateString","boundaryBytes","footerBytes","computedHeaders","Readable","DATA_URL_PATTERN","fromDataURI","asBlob","_Blob","ERR_INVALID_URL","isBase64","isAbsoluteURL","payload","isMSIE","ignoreDuplicateOf","toObjectSet","rawHeaders","line","parseProtocol","progressEventReducer","isDownloadStream","freq","bytesNotified","_speedometer","total","lengthComputable","progressBytes","rate","progress","estimated","progressEventDecorator","asyncDecorator","asyncIterator","blob","unescape","hasStandardBrowserWebWorkerEnv","xsrfValue","speedometer","timestamps","firstSampleTS","tail","chunkLength","startedAt","bytesCount","throttle","lastArgs","timestamp","threshold","invoke","isVisitable","removeBrackets","renderKey","dots","predicates","metaTokens","indexes","defined","visitor","defaultVisitor","useBlob","convertValue","isDate","isFlatArray","toArray","el","exposedHelpers","build","toURLEncodedForm","helpers","isNode","streamChunk","pos","readStream","getReader","trackStream","onFinish","iterable","readBytes","_onFinish","pull","loadedBytes","enqueue","return","highWaterMark","validator","deprecatedWarnings","formatMessage","ERR_DEPRECATED","correctSpelling","schema","allowUnknown","ERR_BAD_OPTION","_navigator","product","WorkerGlobalScope","importScripts","ALPHA","DIGIT","alphabet","randomValues","kindOfTest","typeOfTest","isRequest","_key","_global","globalThis","isContextDefined","getOwnPropertyDescriptors","reducedDescriptors","_setImmediate","setImmediateSupported","postMessageSupported","postMessage","callbacks","queueMicrotask","kind","isBoolean","assignValue","targetKey","content","superConstructor","props","sourceObj","destObj","propFilter","merged","searchString","lastIndex","regExp","matches","arrayOrString","p1","p2","defaultValue","visit","reducedValue","isThenable","converter","defaultAttributes","attributes","toUTCString","stringifiedAttributes","attributeName","jar","withAttributes","withConverter","__webpack_module_cache__","__webpack_require__","cachedModule","__webpack_modules__","getter","__esModule","definition","SharetribeIntegrationSdk","TokenStore","sdkTypes"],"sourceRoot":""}