@wix/mcp 1.0.6 → 1.0.8

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.
Files changed (53) hide show
  1. package/build/api-call/index.d.ts +3 -0
  2. package/build/api-call/index.js +149 -0
  3. package/build/auth/index.d.ts +5 -0
  4. package/build/auth/index.js +1 -0
  5. package/build/bin-standalone.js +16370 -0
  6. package/build/bin-standalone.js.map +7 -0
  7. package/build/bin.d.ts +3 -3
  8. package/build/bin.js +82 -657
  9. package/build/cli-tools/cli.d.ts +4 -0
  10. package/build/cli-tools/cli.js +339 -0
  11. package/build/cli-tools/utils.d.ts +2 -0
  12. package/build/cli-tools/utils.js +25 -0
  13. package/build/docs/docs.d.ts +4 -0
  14. package/build/docs/docs.js +447 -0
  15. package/build/docs/long-content.d.ts +1 -0
  16. package/build/docs/long-content.js +1 -0
  17. package/build/docs/semanticSearch.d.ts +10 -0
  18. package/build/docs/semanticSearch.js +108 -0
  19. package/build/docs/semanticSearch.test.d.ts +1 -0
  20. package/build/docs/semanticSearch.test.js +459 -0
  21. package/build/index-standalone.js +18849 -0
  22. package/build/index-standalone.js.map +7 -0
  23. package/build/index.d.ts +7 -30
  24. package/build/index.js +6 -193
  25. package/build/infra/bi-logger.d.ts +2 -0
  26. package/build/infra/bi-logger.js +10 -0
  27. package/build/infra/environment.d.ts +9 -0
  28. package/build/infra/environment.js +27 -0
  29. package/build/infra/logger.d.ts +10 -0
  30. package/build/infra/logger.js +61 -0
  31. package/build/infra/panorama.d.ts +7 -0
  32. package/build/infra/panorama.js +35 -0
  33. package/build/infra/sentry.d.ts +1 -0
  34. package/build/infra/sentry.js +10 -0
  35. package/build/interactive-command-tools/eventually.d.ts +6 -0
  36. package/build/interactive-command-tools/eventually.js +15 -0
  37. package/build/interactive-command-tools/handleStdout.d.ts +13 -0
  38. package/build/interactive-command-tools/handleStdout.js +75 -0
  39. package/build/interactive-command-tools/interactive-command-utils.d.ts +7 -0
  40. package/build/interactive-command-tools/interactive-command-utils.js +75 -0
  41. package/build/resources/docs.d.ts +2 -0
  42. package/build/resources/docs.js +45 -0
  43. package/build/support/index.d.ts +2 -0
  44. package/build/support/index.js +32 -0
  45. package/build/tool-utils.d.ts +2 -0
  46. package/build/tool-utils.js +30 -0
  47. package/build/tool-utils.spec.d.ts +1 -0
  48. package/build/tool-utils.spec.js +99 -0
  49. package/build/wix-mcp-server.d.ts +27 -0
  50. package/build/wix-mcp-server.js +114 -0
  51. package/package.json +16 -11
  52. package/bin.js +0 -2
  53. package/build/chunk-YRLMZUQM.js +0 -1834
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../node_modules/@wix/bi-logger-api-infra-data/src/v2/index.ts", "../../../node_modules/@wix/panorama-common-shared/src/types/enum-types.ts", "../../../node_modules/@wix/panorama-common-shared/dist/cjs/types/data-types.js", "../../../node_modules/@wix/panorama-common-shared/dist/cjs/types/interface-types.js", "../../../node_modules/@wix/panorama-common-shared/src/types/index.ts", "../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js", "../../../node_modules/@babel/runtime/helpers/typeof.js", "../../../node_modules/@babel/runtime/helpers/toPrimitive.js", "../../../node_modules/@babel/runtime/helpers/toPropertyKey.js", "../../../node_modules/@babel/runtime/helpers/defineProperty.js", "../../../node_modules/@wix/panorama-common/src/duration-tracker/duration-tracker.ts", "../../../node_modules/@wix/panorama-common/src/duration-tracker/index.ts", "../../../node_modules/@wix/panorama-common/src/global-config/global-config.ts", "../../../node_modules/@wix/panorama-common/src/global-config/index.ts", "../../../node_modules/@wix/panorama-common/src/utils/class-utils.ts", "../../../node_modules/@wix/panorama-common/src/utils/index.ts", "../../../node_modules/@wix/panorama-client/src/utils/general-utils.ts", "../../../node_modules/@wix/panorama-client/src/panorama-error-monitor.ts", "../../../node_modules/@wix/panorama-client/src/panorama-logger.ts", "../../../node_modules/@wix/panorama-common-shared/src/utils/transaction-utils.ts", "../../../node_modules/@wix/panorama-common-shared/src/utils/platform-utils.ts", "../../../node_modules/@wix/panorama-common-shared/src/utils/guid.ts", "../../../node_modules/@wix/panorama-common-shared/src/utils/index.ts", "../../../node_modules/@wix/panorama-client/src/panorama-transaction.ts", "../../../node_modules/@wix/panorama-client/src/panorama-client-component.ts", "../../../node_modules/@wix/panorama-client/src/plugins/hooks-manager.ts", "../../../node_modules/@wix/panorama-client/src/panorama-phase.ts", "../../../node_modules/@wix/panorama-client/src/panorama-client.ts", "../../../node_modules/@wix/panorama-client/src/utils/error-utils.ts", "../../../node_modules/@wix/panorama-client/src/constants.ts", "../../../node_modules/@wix/panorama-client/src/lib/payload-sanitizer.ts", "../../../node_modules/@wix/panorama-client/src/lib/payload-builder.ts", "../../../node_modules/@wix/panorama-client/src/panorama-client-base.ts", "../../../node_modules/@wix/panorama-client/src/lib/scope.ts", "../../../node_modules/@wix/panorama-client/src/panorama-client-factory.ts", "../../../node_modules/@wix/panorama-client/src/types.ts", "../../../node_modules/@wix/panorama-client/src/index.ts", "../../../node_modules/@wix/panorama-client/src/plugins/sentry/sentry-plugin-types.ts", "../../../node_modules/@wix/panorama-client/src/plugins/plugin-types.ts", "../../../node_modules/lodash/isObject.js", "../../../node_modules/lodash/_freeGlobal.js", "../../../node_modules/lodash/_root.js", "../../../node_modules/lodash/now.js", "../../../node_modules/lodash/_trimmedEndIndex.js", "../../../node_modules/lodash/_baseTrim.js", "../../../node_modules/lodash/_Symbol.js", "../../../node_modules/lodash/_getRawTag.js", "../../../node_modules/lodash/_objectToString.js", "../../../node_modules/lodash/_baseGetTag.js", "../../../node_modules/lodash/isObjectLike.js", "../../../node_modules/lodash/isSymbol.js", "../../../node_modules/lodash/toNumber.js", "../../../node_modules/lodash/debounce.js", "../../../node_modules/lodash/throttle.js", "../../../node_modules/@wix/panorama-client/src/plugins/batch/batch-queue.ts", "../../../node_modules/@wix/panorama-client/src/plugins/batch/batch-constants.ts", "../../../node_modules/@wix/panorama-client/src/plugins/batch/batch-plugin.ts", "../../../node_modules/@wix/panorama-client/src/utils/artifact-utils.ts", "../../../node_modules/@wix/panorama-client/src/utils/url-utils.ts", "../../../node_modules/@wix/panorama-client/src/utils/cookie-utils.ts", "../../../node_modules/@wix/panorama-client/src/utils/environment-utils.ts", "../../../node_modules/@wix/panorama-client/src/plugins/sentry/sentry-plugin-constants.ts", "../../../node_modules/@wix/panorama-client/src/plugins/sentry/sentry-plugin-state.ts", "../../../node_modules/@wix/panorama-client/src/plugins/sentry/sentry-plugin-utils.ts", "../../../node_modules/@wix/panorama-client/src/plugins/sentry/sentry-plugin-breadcrumbs.ts", "../../../node_modules/@wix/panorama-client/src/plugins/sentry/sentry-plugin-enricher.ts", "../../../node_modules/@wix/panorama-client/src/plugins/sentry/sentry-plugin-router.ts", "../../../node_modules/@wix/panorama-client/src/plugins/sentry/sentry-plugin-stacktrace.ts", "../../../node_modules/@wix/panorama-client/src/plugins/sentry/sentry-plugin-hub-utils.ts", "../../../node_modules/@wix/panorama-client/src/plugins/sentry/sentry-plugin.ts", "../../../node_modules/@wix/panorama-client/src/plugins/top-level-props-extractor/top-level-props-extractor-plugin.ts", "../../../node_modules/@wix/panorama-client/src/plugins/page-params-enricher/page-params-enricher-plugin.ts", "../../../node_modules/@wix/panorama-client/src/utils/console-utils.ts", "../../../node_modules/@wix/panorama-client/src/plugins/environment/environment-plugin.ts", "../../../node_modules/@wix/panorama-client/src/plugins/index.ts", "../../../node_modules/@wix/panorama-common-shared/src/constants.ts", "../../../node_modules/tslib/tslib.es6.mjs", "../../../node_modules/@wix/panorama-client-node/node_modules/@wix/http-client/src/constants.ts", "../../../node_modules/@wix/panorama-client-node/node_modules/@wix/headers/src/globals.ts", "../../../node_modules/@wix/panorama-client-node/node_modules/@wix/headers/src/cookies.ts", "../../../node_modules/@wix/panorama-client-node/node_modules/@wix/headers/src/headers/csrf.ts", "../../../node_modules/@wix/panorama-client-node/node_modules/@wix/headers/src/headers/x-wix-brand.ts", "../../../node_modules/@wix/panorama-client-node/node_modules/@wix/headers/src/headers/consent-policy.ts", "../../../node_modules/@wix/panorama-client-node/node_modules/@wix/headers/src/headers/authorization.ts", "../../../node_modules/@wix/panorama-client-node/node_modules/@wix/headers/src/utils.ts", "../../../node_modules/@wix/panorama-client-node/node_modules/@wix/headers/src/headers/artifact-id.ts", "../../../node_modules/@wix/panorama-client-node/node_modules/@wix/headers/src/headers/common-config.ts", "../../../node_modules/base-64/base64.js", "../../../node_modules/@wix/panorama-client-node/node_modules/@wix/headers/src/headers/linguist.ts", "../../../node_modules/@wix/panorama-client-node/node_modules/@wix/headers/src/domain.ts", "../../../node_modules/@wix/panorama-client-node/node_modules/@wix/headers/src/errors.ts", "../../../node_modules/@wix/panorama-client-node/node_modules/@wix/headers/src/assert.ts", "../../../node_modules/@wix/panorama-client-node/node_modules/@wix/headers/src/index.ts", "../../../node_modules/@wix/panorama-client-node/node_modules/@wix/http-client/src/env-util.ts", "../../../node_modules/@wix/panorama-client-node/node_modules/@wix/http-client/src/utils.ts", "../../../node_modules/@wix/panorama-client-node/node_modules/@wix/http-client/dist/src/whitelist.json", "../../../node_modules/@wix/panorama-client-node/node_modules/@wix/http-client/src/headers.ts", "../../../node_modules/@wix/panorama-client-node/node_modules/@wix/http-client/src/error.ts", "../../../node_modules/@wix/panorama-client-node/node_modules/axios/lib/helpers/bind.js", "../../../node_modules/@wix/panorama-client-node/node_modules/axios/lib/utils.js", "../../../node_modules/@wix/panorama-client-node/node_modules/axios/lib/core/enhanceError.js", "../../../node_modules/@wix/panorama-client-node/node_modules/axios/lib/core/createError.js", "../../../node_modules/@wix/panorama-client-node/node_modules/axios/lib/core/settle.js", "../../../node_modules/@wix/panorama-client-node/node_modules/axios/lib/helpers/isAbsoluteURL.js", "../../../node_modules/@wix/panorama-client-node/node_modules/axios/lib/helpers/combineURLs.js", "../../../node_modules/@wix/panorama-client-node/node_modules/axios/lib/core/buildFullPath.js", "../../../node_modules/@wix/panorama-client-node/node_modules/axios/lib/helpers/buildURL.js", "../../../node_modules/ms/index.js", "../../../node_modules/debug/src/common.js", "../../../node_modules/debug/src/browser.js", "../../../node_modules/supports-color/node_modules/has-flag/index.js", "../../../node_modules/supports-color/index.js", "../../../node_modules/debug/src/node.js", "../../../node_modules/debug/src/index.js", "../../../node_modules/follow-redirects/debug.js", "../../../node_modules/follow-redirects/index.js", "../../../node_modules/@wix/panorama-client-node/node_modules/axios/package.json", "../../../node_modules/@wix/panorama-client-node/node_modules/axios/lib/adapters/http.js", "../../../node_modules/@wix/panorama-client-node/node_modules/axios/lib/core/InterceptorManager.js", "../../../node_modules/@wix/panorama-client-node/node_modules/axios/lib/helpers/normalizeHeaderName.js", "../../../node_modules/@wix/panorama-client-node/node_modules/axios/lib/helpers/cookies.js", "../../../node_modules/@wix/panorama-client-node/node_modules/axios/lib/helpers/parseHeaders.js", "../../../node_modules/@wix/panorama-client-node/node_modules/axios/lib/helpers/isURLSameOrigin.js", "../../../node_modules/@wix/panorama-client-node/node_modules/axios/lib/adapters/xhr.js", "../../../node_modules/@wix/panorama-client-node/node_modules/axios/lib/defaults.js", "../../../node_modules/@wix/panorama-client-node/node_modules/axios/lib/core/transformData.js", "../../../node_modules/@wix/panorama-client-node/node_modules/axios/lib/cancel/isCancel.js", "../../../node_modules/@wix/panorama-client-node/node_modules/axios/lib/core/dispatchRequest.js", "../../../node_modules/@wix/panorama-client-node/node_modules/axios/lib/core/mergeConfig.js", "../../../node_modules/@wix/panorama-client-node/node_modules/axios/lib/helpers/validator.js", "../../../node_modules/@wix/panorama-client-node/node_modules/axios/lib/core/Axios.js", "../../../node_modules/@wix/panorama-client-node/node_modules/axios/lib/cancel/Cancel.js", "../../../node_modules/@wix/panorama-client-node/node_modules/axios/lib/cancel/CancelToken.js", "../../../node_modules/@wix/panorama-client-node/node_modules/axios/lib/helpers/spread.js", "../../../node_modules/@wix/panorama-client-node/node_modules/axios/lib/helpers/isAxiosError.js", "../../../node_modules/@wix/panorama-client-node/node_modules/axios/lib/axios.js", "../../../node_modules/@wix/panorama-client-node/node_modules/axios/index.js", "../../../node_modules/@wix/panorama-client-node/node_modules/@wix/http-client/src/options.ts", "../../../node_modules/@wix/panorama-client-node/node_modules/@wix/http-client/src/http-client.ts", "../../../node_modules/@wix/panorama-client-node/node_modules/@wix/http-client/src/http-client-node.ts", "../../../node_modules/@wix/panorama-client-node/node_modules/@wix/http-client/dist/src/types.js", "../../../node_modules/@wix/panorama-client-node/node_modules/@wix/http-client/src/index-node.ts", "../../../node_modules/@wix/panorama-client-node/src/reporter.ts", "../../../node_modules/@wix/panorama-client-node/src/panorama-client-node.ts", "../../../node_modules/@wix/panorama-client-node/src/index.ts", "../../../node_modules/@wix/wix-bi-logger-client/lib/assert.js", "../../../node_modules/@wix/wix-bi-logger-client/lib/utils/collections.js", "../../../node_modules/@wix/wix-bi-logger-client/lib/utils/promise.js", "../../../node_modules/@wix/wix-bi-logger-client/lib/utils/log.js", "../../../node_modules/@wix/wix-bi-logger-client/lib/utils/debounce.js", "../../../node_modules/@wix/wix-bi-logger-client/lib/utils/throttle.js", "../../../node_modules/@wix/wix-bi-logger-client/lib/utils/batch-queue.js", "../../../node_modules/@wix/wix-bi-logger-client/lib/consent-policy.js", "../../../node_modules/@wix/wix-bi-logger-client/lib/bi-logger.js", "../../../node_modules/@wix/wix-bi-logger-client/lib/bi-logger-manager.js", "../../../node_modules/@wix/wix-bi-logger-client/lib/bi-logger-factory.js", "../../../node_modules/@wix/wix-bi-logger-client/lib/index.js", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/@wix/http-client/src/constants.ts", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/@wix/headers/src/globals.ts", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/@wix/headers/src/cookies.ts", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/@wix/headers/src/headers/csrf.ts", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/@wix/headers/src/headers/x-wix-brand.ts", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/@wix/headers/src/headers/consent-policy.ts", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/@wix/headers/src/headers/authorization.ts", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/@wix/headers/src/utils.ts", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/@wix/headers/src/headers/artifact-id.ts", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/@wix/headers/src/headers/common-config.ts", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/@wix/headers/src/headers/linguist.ts", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/@wix/headers/src/domain.ts", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/@wix/headers/src/errors.ts", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/@wix/headers/src/assert.ts", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/@wix/headers/src/index.ts", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/@wix/http-client/src/env-util.ts", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/@wix/http-client/src/utils.ts", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/@wix/http-client/dist/src/whitelist.json", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/@wix/http-client/src/headers.ts", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/@wix/http-client/src/error.ts", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/axios/lib/helpers/bind.js", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/axios/lib/utils.js", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/axios/lib/core/enhanceError.js", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/axios/lib/core/createError.js", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/axios/lib/core/settle.js", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/axios/lib/helpers/isAbsoluteURL.js", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/axios/lib/helpers/combineURLs.js", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/axios/lib/core/buildFullPath.js", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/axios/lib/helpers/buildURL.js", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/axios/package.json", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/axios/lib/adapters/http.js", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/axios/lib/core/InterceptorManager.js", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/axios/lib/helpers/normalizeHeaderName.js", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/axios/lib/helpers/cookies.js", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/axios/lib/helpers/parseHeaders.js", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/axios/lib/helpers/isURLSameOrigin.js", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/axios/lib/adapters/xhr.js", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/axios/lib/defaults.js", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/axios/lib/core/transformData.js", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/axios/lib/cancel/isCancel.js", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/axios/lib/core/dispatchRequest.js", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/axios/lib/core/mergeConfig.js", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/axios/lib/helpers/validator.js", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/axios/lib/core/Axios.js", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/axios/lib/cancel/Cancel.js", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/axios/lib/cancel/CancelToken.js", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/axios/lib/helpers/spread.js", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/axios/lib/helpers/isAxiosError.js", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/axios/lib/axios.js", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/axios/index.js", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/@wix/http-client/src/options.ts", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/@wix/http-client/src/http-client.ts", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/@wix/http-client/src/http-client-node.ts", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/@wix/http-client/dist/src/types.js", "../../../node_modules/@wix/standalone-node-bi-logger/node_modules/@wix/http-client/src/index-node.ts", "../../../node_modules/@wix/standalone-node-bi-logger/src/index.ts", "../../../node_modules/@wix/http-client/src/constants.ts", "../../../node_modules/@wix/headers/src/globals.ts", "../../../node_modules/@wix/headers/src/cookies.ts", "../../../node_modules/@wix/headers/src/headers/csrf.ts", "../../../node_modules/@wix/headers/src/headers/x-wix-brand.ts", "../../../node_modules/@wix/headers/src/headers/consent-policy.ts", "../../../node_modules/@wix/headers/src/headers/authorization.ts", "../../../node_modules/@wix/headers/src/utils.ts", "../../../node_modules/@wix/headers/src/headers/artifact-id.ts", "../../../node_modules/@wix/headers/src/headers/common-config.ts", "../../../node_modules/@wix/headers/src/headers/linguist.ts", "../../../node_modules/@wix/headers/src/domain.ts", "../../../node_modules/@wix/headers/src/errors.ts", "../../../node_modules/@wix/headers/src/assert.ts", "../../../node_modules/@wix/headers/src/index.ts", "../../../node_modules/@wix/http-client/src/env-util.ts", "../../../node_modules/@wix/http-client/src/utils.ts", "../../../node_modules/@wix/http-client/dist/src/whitelist.json", "../../../node_modules/@wix/http-client/src/headers.ts", "../../../node_modules/@wix/http-client/src/error.ts", "../../../node_modules/@wix/http-client/node_modules/axios/lib/helpers/bind.js", "../../../node_modules/@wix/http-client/node_modules/axios/lib/utils.js", "../../../node_modules/@wix/http-client/node_modules/axios/lib/core/enhanceError.js", "../../../node_modules/@wix/http-client/node_modules/axios/lib/core/createError.js", "../../../node_modules/@wix/http-client/node_modules/axios/lib/core/settle.js", "../../../node_modules/@wix/http-client/node_modules/axios/lib/helpers/isAbsoluteURL.js", "../../../node_modules/@wix/http-client/node_modules/axios/lib/helpers/combineURLs.js", "../../../node_modules/@wix/http-client/node_modules/axios/lib/core/buildFullPath.js", "../../../node_modules/@wix/http-client/node_modules/axios/lib/helpers/buildURL.js", "../../../node_modules/@wix/http-client/node_modules/axios/package.json", "../../../node_modules/@wix/http-client/node_modules/axios/lib/adapters/http.js", "../../../node_modules/agent-base/src/helpers.ts", "../../../node_modules/agent-base/src/index.ts", "../../../node_modules/http-proxy-agent/src/index.ts", "../../../node_modules/@wix/http-client/node_modules/https-proxy-agent/src/parse-proxy-response.ts", "../../../node_modules/@wix/http-client/node_modules/https-proxy-agent/src/index.ts", "../../../node_modules/@wix/http-client/node_modules/axios/lib/core/InterceptorManager.js", "../../../node_modules/@wix/http-client/node_modules/axios/lib/helpers/normalizeHeaderName.js", "../../../node_modules/@wix/http-client/node_modules/axios/lib/helpers/cookies.js", "../../../node_modules/@wix/http-client/node_modules/axios/lib/helpers/parseHeaders.js", "../../../node_modules/@wix/http-client/node_modules/axios/lib/helpers/isURLSameOrigin.js", "../../../node_modules/@wix/http-client/node_modules/axios/lib/adapters/xhr.js", "../../../node_modules/@wix/http-client/node_modules/axios/lib/defaults.js", "../../../node_modules/@wix/http-client/node_modules/axios/lib/core/transformData.js", "../../../node_modules/@wix/http-client/node_modules/axios/lib/cancel/isCancel.js", "../../../node_modules/@wix/http-client/node_modules/axios/lib/core/dispatchRequest.js", "../../../node_modules/@wix/http-client/node_modules/axios/lib/core/mergeConfig.js", "../../../node_modules/@wix/http-client/node_modules/axios/lib/helpers/validator.js", "../../../node_modules/@wix/http-client/node_modules/axios/lib/core/Axios.js", "../../../node_modules/@wix/http-client/node_modules/axios/lib/cancel/Cancel.js", "../../../node_modules/@wix/http-client/node_modules/axios/lib/cancel/CancelToken.js", "../../../node_modules/@wix/http-client/node_modules/axios/lib/helpers/spread.js", "../../../node_modules/@wix/http-client/node_modules/axios/lib/helpers/isAxiosError.js", "../../../node_modules/@wix/http-client/node_modules/axios/lib/axios.js", "../../../node_modules/@wix/http-client/node_modules/axios/index.js", "../../../node_modules/@wix/http-client/src/options.ts", "../../../node_modules/@wix/http-client/src/http-client.ts", "../../../node_modules/@wix/http-client/src/http-client-node.ts", "../../../node_modules/@wix/http-client/dist/src/types.js", "../../../node_modules/@wix/http-client/src/index-node.ts", "../src/infra/sentry.ts", "../src/bin.ts", "../src/docs/docs.ts", "../src/infra/logger.ts", "../src/docs/semanticSearch.ts", "../src/cli-tools/cli.ts", "../src/cli-tools/utils.ts", "../src/interactive-command-tools/handleStdout.ts", "../src/interactive-command-tools/eventually.ts", "../src/interactive-command-tools/interactive-command-utils.ts", "../src/tool-utils.ts", "../src/wix-mcp-server.ts", "../src/infra/panorama.ts", "../src/infra/bi-logger.ts", "../src/infra/environment.ts", "../src/resources/docs.ts"],
4
+ "sourcesContent": ["import { LogObject, apiBlockGaRuleParams, apiExampleGenerationCompletedByAiToolParams, apiKeysClickOnActionFromThe3DotsParams, apiKeysClickOnCopyAccountIdParams, apiKeysClickOnGenerateKeyEmptyStateParams, apiKeysClickOnGenerateKeyTopButtonParams, apiKeysClickOnOauthPageLinkParams, apiKeysClickOnSendCodeAgainParams, apiKeysClickOnSendCodeParams, apiKeysClickOnViewApiReferencesParams, apiKeysFinishDeleteKeyParams, apiKeysFinishDuplicateKeyParams, apiKeysFinishEditKeyParams, apiKeysFinishGenerateKeyParams, apiKeysFinishRotateKeyParams, apiKeysStartDeleteKeyParams, apiKeysStartDuplicateKeyParams, apiKeysStartEditKeyParams, apiKeysStartGenerateKeyParams, apiKeysStartRotateKeyParams, appsSettingsDeletionCandidateParams, autoVeloSiteCallForAMethodParams, copyOfHeadlessResumeSetUpDialogClickParams, devCenterWebhookSentTriggeredParams, docsAiAssistantAnswerSrc112Evid14Params, docsAiAssistantClickSrc112Evid13Params, docsAiAssistantCostSrc112Evid1436Params, docsAiAssistantOpenCloseSrc112Evid1435Params, docsRedirectFailureParams, gitToResourceUpdateSrc112Evid30Params, graphqlCallParams, headlessAddWixToYourProjectDialogClickParams, headlessAddWixToYourProjectDialogIsShownParams, headlessDeployThisTemplatePageClickParams, headlessDeployThisTemplatePageIsShownParams, headlessMigrationTourModalShownParams, headlessOAuthInstalledParams, headlessPlaygroundModalFinishedLoadingParams, headlessQuickStartModalShownParams, headlessResumeSetUpDialogIsShownParams, oauthAppClickAtTheCreateEditOauthAppPageParams, oauthAppClickAtTheDeleteOauthAppDialogParams, oauthAppClickAtTheGenerateClientSecretDialogParams, oauthAppClickAtTheOauthAppMainPageParams, oauthAppClickNextCloseAtTheCreateOauthAppDialogParams, oauthAppClickOnCloseFromCreateEditOauthAppPageParams, oauthAppClickOnOauthAppActionParams, oauthAppClickOnSaveFromCreateEditOauthAppPageParams, oauthAppOauthAppActionWasMadeParams, oauthAppOauthAppActionWasMadeServerParams, publicSdkCallParams, relativeLinksFailureParams, settingsAccessParams, spiExternalInvocationSrc96Evid199Params, testSrc184Evid9999Params, testTokenTokenGeneratedServerlessParams, triggerValueWasSelectedParams, webhooksDispatcherResponseChannelTopicSrc155Evid3Params, webhooksInDcCodeExampleWindowClicksParams, webhooksInDcCodeExampleWindowScrollParams, webhooksInDcCreateEventPageClicksParams, webhooksInDcMainPageClicksParams, webhooksInDcTriggeredTestModalClicksParams, wixDocs404PageLoadedParams, wixDocsChooseASearchResultParams, wixDocsClickInPageParams, wixDocsClickOnGiveFeedbackParams, wixDocsClickOnLinksParams, wixDocsClickOnSidebarItemParams, wixDocsClickedOnNavbarParams, wixDocsCloseSearchDialogParams, wixDocsContactOwnerLinkClickedParams, wixDocsCopyCodeParams, wixDocsDocsWasPublishedParams, wixDocsFeedbackSubmittedServerParams, wixDocsFinishLoadingPageParams, wixDocsGiveFeedbackClickParams, wixDocsHoverOnContentTermsParams, wixDocsHoverOverASearchResultItemParams, wixDocsHoverParams, wixDocsMainPageClickParams, wixDocsMainPageScrollParams, wixDocsMenuEditorContentFilterChangeParams, wixDocsMenuEditorEditModeStatusChangeParams, wixDocsMenuEditorInstructionsClicksParams, wixDocsMenuEditorReviewSaveModalClicksParams, wixDocsMenuEditorSideBarActionClickParams, wixDocsMenuEditorSideBarActionFinishedParams, wixDocsMenuEditorSideBarActionMoveToReviewParams, wixDocsMenuEditorSideBarPositionChangedParams, wixDocsMenuEditorVersionsSideBarClicksParams, wixDocsMenuEditorVersionsSideBarLoadedParams, wixDocsModalClickParams, wixDocsModalWasCloseParams, wixDocsModalWasOpenParams, wixDocsNavbarLoadedParams, wixDocsNavigationClickParams, wixDocsObjectShowMembersClickParams, wixDocsOpenCloseExamplesParams, wixDocsPlaygroundLinksDropdownClickParams, wixDocsRedirectByExternalIdSrc112Evid1601Params, wixDocsRelatedSiteClickParams, wixDocsScrollingInSearchResultViewParams, wixDocsSearchOpenedParams, wixDocsSearchResultsParams, wixDocsSendRequestClientParams, wixDocsSendRequestServerParams, wixDocsShareableLinkClickParams, wixDocsSidebarStateParams, wixDocsSiteVisitParams, wixDocsStartLoadingPageParams, wixDocsSubmitFeedbackParams, wixDocsToggleClickParams, wixDocsTryItOutClickParams, wixDocsTypeASearchTermParams, wixDocsViewLiveSiteClickParams, wixDocsViewSourceClickParams, wixDocsVisitLocalViewerParams, wixMcpRequestSrc39Evid1607Params, zapierCustomZapCreatedOrDeletedParams, zapierTestDataClickParams } from '../types';\n\n/**\n * A function to create a log object for the 'wixDocs404PageLoaded' event (evid: 10)\n *\n * Event description: 404 page was loaded\n *\n * @param {wixDocs404PageLoadedParams} params - The parameters for this event\n * @property {string} source - redirect (link) / social / referral (navigation inside the platform )/ organic search (google)\n * @property {string} referral_url - The url of the last page the users have seen, if he open the page by link it will send null\n * @property {string} portal - The current portal\n * @property {boolean} is_first_access - True if this is the first time that the user opened the Wix Docs platform for this session - external nav / internal\n * @property {string} page_url - The url of the current page\n * @property {string} view_mode - Logged in / Internal Mode / Edit Mode / logged out\n * @property {boolean} is_deprecation_mode - deprecation mode is on\n * @property {boolean} is_deprecation_error - 404 due to deprecated content without deprecation mode on \n * @return {LogObject<wixDocs404PageLoadedParams>} LogObject<wixDocs404PageLoadedParams>\n */\nexport function wixDocs404PageLoaded(params: wixDocs404PageLoadedParams): LogObject<wixDocs404PageLoadedParams> {\n return { evid: 10, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsSendRequestClient' event (evid: 11)\n *\n * Event description: Wix Docs - Send Request (Client)\n *\n * @param {wixDocsSendRequestClientParams} params - The parameters for this event\n * @property {string} body - body type\n * @property {string} customer_id - customer id\n * @property {string} category_name - category name\n * @property {Url} article_url - article_url\n * @property {Url} invoked_url - invoked_url\n * @property {string} http_method - http method type - GET/POST/DELETE/PATCH etc)\n * @property {string} article_name - article name\n * @property {boolean} is_test_token_used - is_test_token_used\n * @return {LogObject<wixDocsSendRequestClientParams>} LogObject<wixDocsSendRequestClientParams>\n */\nexport function wixDocsSendRequestClient(params: wixDocsSendRequestClientParams): LogObject<wixDocsSendRequestClientParams> {\n return { evid: 11, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsSendRequestServer' event (evid: 111)\n *\n * Event description: Wix Docs - Send Request (server)\n *\n * @param {wixDocsSendRequestServerParams} params - The parameters for this event\n * @property {Url} invoked_url - invoked_url\n * @property {string} http_method - http_method\n * @property {string} response - response\n * @property {boolean} is_success - is_success\n * @return {LogObject<wixDocsSendRequestServerParams>} LogObject<wixDocsSendRequestServerParams>\n */\nexport function wixDocsSendRequestServer(params: wixDocsSendRequestServerParams): LogObject<wixDocsSendRequestServerParams> {\n return { evid: 111, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsFeedbackSubmittedServer' event (evid: 112)\n *\n * Event description: Wix Docs - Feedback Submitted (Server)\n *\n * @param {wixDocsFeedbackSubmittedServerParams} params - The parameters for this event\n * @property {string} customer_id - customer id\n * @property {Url} article_url - article url\n * @property {string} article_name - article name\n * @property {GUID} app_id - app_id\n * @property {GUID} msid - msid\n * @property {boolean} email_filled - was email filled in by user\n * @return {LogObject<wixDocsFeedbackSubmittedServerParams>} LogObject<wixDocsFeedbackSubmittedServerParams>\n */\nexport function wixDocsFeedbackSubmittedServer(params: wixDocsFeedbackSubmittedServerParams): LogObject<wixDocsFeedbackSubmittedServerParams> {\n return { evid: 112, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsPlaygroundLinksDropdownClick' event (evid: 12)\n *\n * Event description: Click on Playground Links Dropdown\n *\n * @param {wixDocsPlaygroundLinksDropdownClickParams} params - The parameters for this event\n * @property {string} customer_id - customer_id\n * @property {string} article_url - article url\n * @property {string} article_name - article name\n * @property {boolean} is_main_url_broken - is main url broken\n * @property {string} urls_count - urls count\n * @property {string} selected_url - selected url\n * @return {LogObject<wixDocsPlaygroundLinksDropdownClickParams>} LogObject<wixDocsPlaygroundLinksDropdownClickParams>\n */\nexport function wixDocsPlaygroundLinksDropdownClick(params: wixDocsPlaygroundLinksDropdownClickParams): LogObject<wixDocsPlaygroundLinksDropdownClickParams> {\n return { evid: 12, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'testTokenTokenGeneratedServerless' event (evid: 1200)\n *\n * Event description: token generated to user's site\n *\n * @param {testTokenTokenGeneratedServerlessParams} params - The parameters for this event\n * @property {string} token - token\n * @property {GUID} selectedMsid - selected_msid\n * @return {LogObject<testTokenTokenGeneratedServerlessParams>} LogObject<testTokenTokenGeneratedServerlessParams>\n */\nexport function testTokenTokenGeneratedServerless(params: testTokenTokenGeneratedServerlessParams): LogObject<testTokenTokenGeneratedServerlessParams> {\n return { evid: 1200, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'docsAiAssistantClickSrc112Evid13' event (evid: 13)\n *\n * Event description: The event is sent when the Docs AI Assistant was clicked on any button related\n *\n * @param {docsAiAssistantClickSrc112Evid13Params} params - The parameters for this event\n * @property {string} cta - startover, click on the typing box, send-message, copy, feedback-open, feedback-close, feedback-submit, new-conversation, link (copy-code example, link from code not implemented for now)\n * @property {string} portal - The Docs portal\n * @property {string} page_url - The current page url\n * @property {string} session_id - Docs session id\n * @property {string} view_mode - Logged in / Internal Mode / Edit Mode / logged out\n * @property {boolean} is_deprecation_mode - deprecation mode is on\n * @property {string} ai_session_id - ai session id\n * @property {string} extra_values - for example - {feedback answer: yes, feedback content: XXX}\n * @return {LogObject<docsAiAssistantClickSrc112Evid13Params>} LogObject<docsAiAssistantClickSrc112Evid13Params>\n */\nexport function docsAiAssistantClickSrc112Evid13(params: docsAiAssistantClickSrc112Evid13Params): LogObject<docsAiAssistantClickSrc112Evid13Params> {\n return { evid: 13, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsViewLiveSiteClick' event (evid: 1300)\n *\n * Event description: User clicks on 'View Live Site'\n *\n * @param {wixDocsViewLiveSiteClickParams} params - The parameters for this event\n * @property {string} page - page\n * @return {LogObject<wixDocsViewLiveSiteClickParams>} LogObject<wixDocsViewLiveSiteClickParams>\n */\nexport function wixDocsViewLiveSiteClick(params: wixDocsViewLiveSiteClickParams): LogObject<wixDocsViewLiveSiteClickParams> {\n return { evid: 1300, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'docsAiAssistantAnswerSrc112Evid14' event (evid: 14)\n *\n * Event description: The event is sent when the Docs AI Assistant is answering the user\n *\n * @param {docsAiAssistantAnswerSrc112Evid14Params} params - The parameters for this event\n * @property {string} portal - The Docs portal\n * @property {string} page_url - The current page url\n * @property {number} response_time - The time it took to the AI to give answer in ms\n * @property {boolean} success - true if the AI gave any answer, if it failed - false\n * @property {string} answer - The AI answer\n * @property {string} question - The user question\n * @property {string} session_id - Docs session id\n * @property {string} view_mode - Logged in / Internal Mode / Edit Mode / logged out\n * @property {boolean} is_deprecation_mode - deprecation mode is on\n * @property {string} ai_session_id - ai session id\n * @return {LogObject<docsAiAssistantAnswerSrc112Evid14Params>} LogObject<docsAiAssistantAnswerSrc112Evid14Params>\n */\nexport function docsAiAssistantAnswerSrc112Evid14(params: docsAiAssistantAnswerSrc112Evid14Params): LogObject<docsAiAssistantAnswerSrc112Evid14Params> {\n return { evid: 14, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsStartLoadingPage' event (evid: 1400)\n *\n * Event description: Wix Docs page view\n *\n * @param {wixDocsStartLoadingPageParams} params - The parameters for this event\n * @property {string} method - The method of the article, can be empty\n * @property {string} source - redirect (link) / social / referral (navigation inside the platform )/ organic search (google)\n * @property {string} session_id - The current user`s session in the product\n * @property {string} referral_url - The url of the last page the users have seen, if he open the page by link it will send null\n * @property {string} category_name - The category of the current article\n * @property {string} portal - The current portal\n * @property {number} screen_width - Screen width for resolution\n * @property {string} object - The object of the article, can be empty\n * @property {boolean} has_edit_permission - True if the user has edit permission for the current article\n * @property {string} fqdn - The fqdn of the article, can be empty\n * @property {string} article_type - the article type - get \\ webhook \\ post \\ ..\n * @property {string} article_id - The ID of the current article\n * @property {number} screen_height - Screen height for resolution\n * @property {string} article_name - The name of the current article\n * @property {string} webhook - The webhook of the article, can be empty\n * @property {boolean} is_first_access - True if this is the first time that the user opened the Wix Docs platform for this session\n * @property {string} nav_type - search result click, side bar click, tab click, internal link navigation ,scroll\n * @property {string} page_url - The url of the current page\n * @property {string} view_mode - Logged in / Internal Mode / Edit Mode / logged out\n * @property {boolean} is_deprecation_mode - deprecation mode is on\n * @property {boolean} page_exists - True if the page exists - false if the user landed on resource that is not exists\n * @property {string} deprecation_status - deprecation status of the item/page\n * @return {LogObject<wixDocsStartLoadingPageParams>} LogObject<wixDocsStartLoadingPageParams>\n */\nexport function wixDocsStartLoadingPage(params: wixDocsStartLoadingPageParams): LogObject<wixDocsStartLoadingPageParams> {\n return { evid: 1400, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsFinishLoadingPage' event (evid: 1401)\n *\n * Event description: Loading time of the first page finished load in Wix Docs.\n *\n * @param {wixDocsFinishLoadingPageParams} params - The parameters for this event\n * @property {string} method - The method of the article, can be empty\n * @property {string} source - redirect (link) / social / referral (navigation inside the platform )/ organic search (google)\n * @property {string} session_id - The current user`s session in the product\n * @property {string} referral_url - The url of the last page the users have seen, if he open the page by link it will send null\n * @property {string} category_name - The category of the current article\n * @property {string} portal - The current portal\n * @property {number} screen_width - Screen width for resolution\n * @property {string} object - The object of the article, can be empty\n * @property {boolean} has_edit_permission - True if the user has edit permission for the current article\n * @property {string} fqdn - The fqdn of the article, can be empty\n * @property {string} article_type - the article type - get \\ webhook \\ post \\ ..\n * @property {string} article_id - The ID of the current article\n * @property {number} screen_height - Screen height for resolution\n * @property {string} article_name - The name of the current article\n * @property {string} webhook - The webhook of the article, can be empty\n * @property {boolean} is_first_access - True if this is the first time that the user opened the Wix Docs platform for this session\n * @property {string} page_url - The url of the current page\n * @property {number} loading_time - Loading time of page (from evid 112:1400 start loading page)\n * @property {string} view_mode - Logged in / Internal Mode / Edit Mode / logged out\n * @property {boolean} is_deprecation_mode - deprecation mode is on\n * @property {number} TTFB - the TTFB measure of web vitals\n * @property {number} FCP - the FCP measure of web vitals\n * @return {LogObject<wixDocsFinishLoadingPageParams>} LogObject<wixDocsFinishLoadingPageParams>\n */\nexport function wixDocsFinishLoadingPage(params: wixDocsFinishLoadingPageParams): LogObject<wixDocsFinishLoadingPageParams> {\n return { evid: 1401, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsSearchOpened' event (evid: 1403)\n *\n * Event description: Sends when the search dialog is open, and the user still didnt type a search term\n *\n * @param {wixDocsSearchOpenedParams} params - The parameters for this event\n * @property {boolean} no_connection - True if the search dialog is with a message of no connection\n * @property {string} session_id - The current user`s session in the product\n * @property {string} category_name - The category of the current article\n * @property {string} recently_viewed - A list of all recently viewed articles that appear in the search dialog, by it`s order\n * @property {string} portal - The current portal\n * @property {string} recent_searches - A list of all recent searches that appear in the search dialog, by it`s order\n * @property {string} article_id - The ID of the current article\n * @property {string} article_name - The name of the current article\n * @property {boolean} was_success - True if the dialog was open currectly\n * @property {string} page_url - The url of the current page\n * @property {string} action - The action that the user did to open the search dialog - press the search button \\ press \"/\" at the keyword\n * @return {LogObject<wixDocsSearchOpenedParams>} LogObject<wixDocsSearchOpenedParams>\n */\nexport function wixDocsSearchOpened(params: wixDocsSearchOpenedParams): LogObject<wixDocsSearchOpenedParams> {\n return { evid: 1403, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsTypeASearchTerm' event (evid: 1404)\n *\n * Event description: When a user is searching in search dialog send event at the end of the results\n *\n * @param {wixDocsTypeASearchTermParams} params - The parameters for this event\n * @property {boolean} no_connection - True if the search dialog is with a message of no connection\n * @property {number} recent_searches_index - The index of the recent\\suggested search that was choosen, can be empty\n * @property {string} session_id - The current user`s session in the product\n * @property {string} type_action - The way the user typed the search term - typing \\ choosing a recent search \\ choosing suggested searches\n * @property {string} category_name - The category of the current article\n * @property {string} portal - The current portal\n * @property {number} num_of_results - The number of total results who return on time\n * @property {string} search_term - The users's search term in the dialog\n * @property {string} article_id - The ID of the current article\n * @property {string} article_name - The name of the current article\n * @property {number} total_loading_time - The total time in ms for all results to return\n * @property {string} seen_results - Send only results who were seen in search -> category: article: type: time to load\n * @property {string} page_url - The url of the current page\n * @property {boolean} is_empty - True if the search results is empty from results after finish typing (there was no result found)\n * @property {string} search_results - Send all results who return on time by their order, in the following way -> category: article: type: time to load\n * @property {string} view_mode - Logged in / Internal Mode / Edit Mode / logged out\n * @property {boolean} is_deprecation_mode - deprecation mode is on\n * @property {string} filters - The search box filters - Json\n * @return {LogObject<wixDocsTypeASearchTermParams>} LogObject<wixDocsTypeASearchTermParams>\n */\nexport function wixDocsTypeASearchTerm(params: wixDocsTypeASearchTermParams): LogObject<wixDocsTypeASearchTermParams> {\n return { evid: 1404, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsScrollingInSearchResultView' event (evid: 1405)\n *\n * Event description: Sends an event when a user scrolls in the search's result\n *\n * @param {wixDocsScrollingInSearchResultViewParams} params - The parameters for this event\n * @property {string} session_id - The current user`s session in the product\n * @property {boolean} is_recently_viewed - True if the search term is empty and the user is hovering over the recently viewed items \\ 'what other are searching'\n * @property {string} category_name - The category of the current article\n * @property {string} portal - The current portal\n * @property {number} num_of_results - The number of total results who return on time\n * @property {string} search_term - The users's search term in the dialog, if it is null then the user still didnt wrote a search term but he can scroll in the recently viewed articles\n * @property {boolean} first_search_ever - True if it is the first search of the user ever, and the search dialog contains 'what other are searching' articles\n * @property {string} article_id - The ID of the current article\n * @property {string} article_name - The name of the current article\n * @property {string} page_url - The url of the current page\n * @property {string} search_results - Send all results who return on time by their order, in the following way -> category: article: type: time to load. example: (category: article: type: time to load)\n * [{\"category\":\"Answers\",\"article\":\"Ab\",\"type\":\"post\",\"time_to_load_ms\":512},{\"category\":\"Business Manager\",\"article\":\"Cd\",\"type\":\"get\",\"time_to_load_ms\":514]\n * @return {LogObject<wixDocsScrollingInSearchResultViewParams>} LogObject<wixDocsScrollingInSearchResultViewParams>\n */\nexport function wixDocsScrollingInSearchResultView(params: wixDocsScrollingInSearchResultViewParams): LogObject<wixDocsScrollingInSearchResultViewParams> {\n return { evid: 1405, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsHoverOverASearchResultItem' event (evid: 1406)\n *\n * Event description: When a user is focused on a result\n *\n * @param {wixDocsHoverOverASearchResultItemParams} params - The parameters for this event\n * @property {string} session_id - The current user`s session in the product\n * @property {string} result_article - The name of the result\n * @property {boolean} is_recently_viewed - True if the search term is empty and the user is hovering over the recently viewed items \\ 'what other are searching'\n * @property {string} category_name - The category of the current article\n * @property {string} portal - The current portal\n * @property {string} search_term - The users's search term in the dialog, if it is null then the user still didnt wrote a search term but he can scroll in the recently viewed articles\n * @property {boolean} first_search_ever - True if it is the first search of the user ever, and the search dialog contains 'what other are searching' articles\n * @property {string} result_category - The category of the result\n * @property {boolean} is_first_hover - True if it is the first item that was hovered\n * @property {string} article_id - The ID of the current article\n * @property {string} result_article_id - The ID of the result article\n * @property {string} article_name - The name of the current article\n * @property {string} page_url - The url of the current page\n * @property {number} item_index - item's index in all results\n * @property {string} search_results - Send all results who return on time by their order, in the following way -> category: article: type: time to load. example: (category: article: type: time to load) [{\"category\":\"Answers\",\"article\":\"Ab\",\"type\":\"post\",\"time_to_load_ms\":512},{\"category\":\"Business Manager\",\"article\":\"Cd\",\"type\":\"get\",\"time_to_load_ms\":514]\n * @return {LogObject<wixDocsHoverOverASearchResultItemParams>} LogObject<wixDocsHoverOverASearchResultItemParams>\n */\nexport function wixDocsHoverOverASearchResultItem(params: wixDocsHoverOverASearchResultItemParams): LogObject<wixDocsHoverOverASearchResultItemParams> {\n return { evid: 1406, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsChooseASearchResult' event (evid: 1407)\n *\n * Event description: Sends an event when a user chose a search result\n *\n * @param {wixDocsChooseASearchResultParams} params - The parameters for this event\n * @property {string} method - The method of the article, can be empty\n * @property {string} chosen_article_type - the chosen article type - get \\ webhook \\ post \\ ..\n * @property {string} session_id - The current user`s session in the product\n * @property {string} chosen_category - The category of the chosen result\n * @property {string} category_name - The category of the current article\n * @property {string} portal - The current portal\n * @property {string} chosen_article - The name of the chosen result\n * @property {string} choose_type - The way the user chose the result - from an active search \\ from the recently viewed options \\ from the 'what other are searching' options\n * @property {string} chosen_article_id - The ID of the chosen result article\n * @property {string} object - The object of the article, can be empty\n * @property {string} search_term - The users's search term in the dialog, if it is null then the user still didnt wrote a search term but he can scroll in the recently viewed articles\n * @property {string} fqdn - The fqdn of the article, can be empty\n * @property {string} article_id - The ID of the current article\n * @property {string} article_name - The name of the current article\n * @property {string} webhook - The webhook of the article, can be empty\n * @property {string} chosen_article_url - The url of the chosen result article\n * @property {string} page_url - The url of the current page\n * @property {number} item_index - item's index in all results of the chosen result\n * @property {string} search_results - Send all results who return on time by their order, in the following way -> category: article: type: time to load. example: (category: article: type: time to load) [{\"category\":\"Answers\",\"article\":\"Ab\",\"type\":\"post\",\"time_to_load_ms\":512},{\"category\":\"Business Manager\",\"article\":\"Cd\",\"type\":\"get\",\"time_to_load_ms\":514]\n * @property {string} view_mode - Logged in / Internal Mode / Edit Mode / logged out\n * @property {boolean} is_deprecation_mode - Deprecation mode is ON\n * @property {string} chosen_portal - The portal of the chosen article\n * @property {string} result_deprecation_status - clicked on deprecated/ about to be deprecated result\n * @return {LogObject<wixDocsChooseASearchResultParams>} LogObject<wixDocsChooseASearchResultParams>\n */\nexport function wixDocsChooseASearchResult(params: wixDocsChooseASearchResultParams): LogObject<wixDocsChooseASearchResultParams> {\n return { evid: 1407, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsCloseSearchDialog' event (evid: 1408)\n *\n * Event description: Sends an event when a user close the search dialog\n *\n * @param {wixDocsCloseSearchDialogParams} params - The parameters for this event\n * @property {string} session_id - The current user`s session in the product\n * @property {string} category_name - The category of the current article\n * @property {string} portal - The current portal\n * @property {string} is_search_term_empty - True if the user closed the search dialog while the search box was empty from any term\n * @property {string} search_term - The users's search term in the dialog, if it is null then the user still didnt wrote a search term but he can scroll in the recently viewed articles\n * @property {number} time_in_dialog - Show in ms the time spent in the dialog, from finish typing\n * @property {string} article_id - The ID of the current article\n * @property {string} article_name - The name of the current article\n * @property {string} page_url - The url of the current page\n * @property {string} action - The user`s click for closing the dialog - click on a result/ click somewhere else/ click on x to clear search \\ press esc\n * @property {boolean} is_empty - True if the search results is empty from results after finish typing (there was no result found)\n * @property {string} search_results - Send all results who return on time by their order, in the following way -> category: article: type: time to load. example: (category: article: type: time to load) [{\"category\":\"Answers\",\"article\":\"Ab\",\"type\":\"post\",\"time_to_load_ms\":512},{\"category\":\"Business Manager\",\"article\":\"Cd\",\"type\":\"get\",\"time_to_load_ms\":514]\n * @return {LogObject<wixDocsCloseSearchDialogParams>} LogObject<wixDocsCloseSearchDialogParams>\n */\nexport function wixDocsCloseSearchDialog(params: wixDocsCloseSearchDialogParams): LogObject<wixDocsCloseSearchDialogParams> {\n return { evid: 1408, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsSidebarState' event (evid: 1409)\n *\n * Event description: On each page, the event is sent when the side bar is loaded and it also sends the current state of the sidebar - Internal \\ Velo \\ REST\n *\n * @param {wixDocsSidebarStateParams} params - The parameters for this event\n * @property {string} session_id - The current user`s session in the product\n * @property {string} referral_url - The url of the last page the users have seen, if he open the page by link it will send null\n * @property {string} category_items_list - List of category items in the main sidebar menu\n * @property {string} category_name - The category of the current article\n * @property {string} portal - The current portal\n * @property {string} current_sidebar_state - The current state of sidebar - Internal \\ Velo \\ REST\n * @property {string} article_type - The current article type - get \\ webhook \\ post \\ ..\n * @property {string} article_id - The ID of the current article\n * @property {string} article_name - The name of the current article\n * @property {boolean} is_first_access - True if this is the first time that the user opened the Wix Docs platform for this session\n * @property {string} page_url - The url of the current page\n * @return {LogObject<wixDocsSidebarStateParams>} LogObject<wixDocsSidebarStateParams>\n */\nexport function wixDocsSidebarState(params: wixDocsSidebarStateParams): LogObject<wixDocsSidebarStateParams> {\n return { evid: 1409, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsClickOnSidebarItem' event (evid: 1410)\n *\n * Event description: When a user click on sidebar item (to expand drop down \\ open an article \\ move to other function\n *\n * @param {wixDocsClickOnSidebarItemParams} params - The parameters for this event\n * @property {string} clicked_sidebar_name - The sidebar item the user clicked on (category\\article\\function)\n * @property {string} clicked_sidebar_article - The sidebar item article the user clicked on, can be empty\n * @property {string} method - The method of the article, can be empty\n * @property {string} current_sidebar_name - The current item name appears in the sidebar - can be changed\n * @property {string} session_id - The current user`s session in the product\n * @property {string} referral_url - The url of the last page the users have seen, if he open the page by link it will send null\n * @property {string} clicked_sidebar_url - The url of the page that the user clicked on\n * @property {string} category_items_list - List of category items in the main sidebar menu\n * @property {string} category_name - The category of the current article\n * @property {string} portal - The current portal\n * @property {string} current_sidebar_state - The current state of sidebar - Internal \\ Velo \\ REST\n * @property {string} object - The object of the article, can be empty\n * @property {string} fqdn - The fqdn of the article, can be empty\n * @property {string} article_type - The current article type - get \\ webhook \\ post \\ ..\n * @property {string} article_id - The ID of the current article\n * @property {string} article_name - The name of the current article\n * @property {string} webhook - The webhook of the article, can be empty\n * @property {string} clicked_sidebar_category - The sidebar item category the user clicked on, can be empty\n * @property {string} page_url - The url of the current page\n * @property {string} action - The action the user did - expand drop down \\ open an article \\ clicked on category \\ move to other function \\ back to last sidebar state\n * @return {LogObject<wixDocsClickOnSidebarItemParams>} LogObject<wixDocsClickOnSidebarItemParams>\n */\nexport function wixDocsClickOnSidebarItem(params: wixDocsClickOnSidebarItemParams): LogObject<wixDocsClickOnSidebarItemParams> {\n return { evid: 1410, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsNavbarLoaded' event (evid: 1411)\n *\n * Event description: The event is sent when the navbar is finish loading\n *\n * @param {wixDocsNavbarLoadedParams} params - The parameters for this event\n * @property {string} session_id - The current user`s session in the product\n * @property {string} referral_url - The url of the last page the users have seen, if he open the page by link it will send null\n * @property {string} category_name - The category of the current article\n * @property {string} portal - The current portal\n * @property {string} article_type - The current article type - get \\ webhook \\ post \\ ..\n * @property {string} article_id - The ID of the current article\n * @property {string} article_name - The name of the current article\n * @property {string} current_navbar_state - The current state of sidebar - Velo \\ REST \\ APIs & SDKs \\ Wix Docs\n * @property {string} page_url - The url of the current page\n * @return {LogObject<wixDocsNavbarLoadedParams>} LogObject<wixDocsNavbarLoadedParams>\n */\nexport function wixDocsNavbarLoaded(params: wixDocsNavbarLoadedParams): LogObject<wixDocsNavbarLoadedParams> {\n return { evid: 1411, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsClickedOnNavbar' event (evid: 1412)\n *\n * Event description: The event is sent when the user make any action on the navbar\n *\n * @param {wixDocsClickedOnNavbarParams} params - The parameters for this event\n * @property {string} session_id - The current user`s session in the product\n * @property {string} referral_url - The url of the last page the users have seen, if he open the page by link it will send null\n * @property {string} category_name - The category of the current article\n * @property {string} portal - The current portal\n * @property {string} article_type - The current article type - get \\ webhook \\ post \\ ..\n * @property {string} navigate_to - The url that the click navigate to\n * @property {string} article_id - The ID of the current article\n * @property {string} article_name - The name of the current article\n * @property {string} current_navbar_state - The current state of sidebar - Velo \\ REST \\ APIs & SDKs \\ Wix Docs\n * @property {string} page_url - The url of the current page\n * @property {string} action - The action that the user clicked on - APIs & SDKs dropdown \\ Wix Docs \\ Build a Website\\ Build an App \\ Velo APIs \\ REST APIs \\ Client SDK \\ sign in \\ user dropdown \\ light brightness \\ dark brightness / log out / undo / review & save\n * @property {string} view_mode - Logged in / Internal Mode / Edit Mode / logged out\n * @property {boolean} is_deprecation_mode - deprecation mode is on\n * @return {LogObject<wixDocsClickedOnNavbarParams>} LogObject<wixDocsClickedOnNavbarParams>\n */\nexport function wixDocsClickedOnNavbar(params: wixDocsClickedOnNavbarParams): LogObject<wixDocsClickedOnNavbarParams> {\n return { evid: 1412, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsClickOnGiveFeedback' event (evid: 1413)\n *\n * Event description: Sends an event when a user click on a feedback button (yes \\ not)\n *\n * @param {wixDocsClickOnGiveFeedbackParams} params - The parameters for this event\n * @property {string} method - The method of the article, can be empty\n * @property {string} session_id - session_id\n * @property {string} category_name - The category of the current article\n * @property {string} portal - The current portal\n * @property {string} object - The object of the article, can be empty\n * @property {string} fqdn - The fqdn of the article, can be empty\n * @property {string} article_type - The current article type - get \\ webhook \\ post \\ ..\n * @property {string} article_id - The ID of the current article\n * @property {string} article_name - The name of the current article\n * @property {string} webhook - The webhook of the article, can be empty\n * @property {string} page_url - The url of the current page\n * @property {string} action - The user feedback - yes \\ not\n * @property {string} view_mode - Logged in / Internal Mode / Edit Mode / logged out\n * @property {boolean} is_deprecation_mode - deprecation mode is on\n * @return {LogObject<wixDocsClickOnGiveFeedbackParams>} LogObject<wixDocsClickOnGiveFeedbackParams>\n */\nexport function wixDocsClickOnGiveFeedback(params: wixDocsClickOnGiveFeedbackParams): LogObject<wixDocsClickOnGiveFeedbackParams> {\n return { evid: 1413, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsSubmitFeedback' event (evid: 1414)\n *\n * Event description: Sends an event when a user click on submit feedback\n *\n * @param {wixDocsSubmitFeedbackParams} params - The parameters for this event\n * @property {string} method - The method of the article, can be empty\n * @property {string} session_id - The current user`s session in the product\n * @property {string} email - The email that was filled in the feedback\n * @property {string} category_name - The category of the current article\n * @property {string} portal - The current portal\n * @property {string} object - The object of the article, can be empty\n * @property {string} fqdn - The fqdn of the article, can be empty\n * @property {string} article_type - The current article type - get \\ webhook \\ post \\ ..\n * @property {string} article_id - The ID of the current article\n * @property {string} content - The content of the feedback that the user wrote\n * @property {string} article_name - The name of the current article\n * @property {string} webhook - The webhook of the article, can be empty\n * @property {string} page_url - The url of the current page\n * @property {string} action - The user feedback - yes \\ not\n * @property {string} view_mode - Logged in / Internal Mode / Edit Mode / logged out\n * @property {boolean} is_deprecation_mode - deprecation mode is on\n * @property {string} feedback_tag - The tag that the user choose\n * @property {boolean} is_logged_in - True if the user was logged in to wix\n * @return {LogObject<wixDocsSubmitFeedbackParams>} LogObject<wixDocsSubmitFeedbackParams>\n */\nexport function wixDocsSubmitFeedback(params: wixDocsSubmitFeedbackParams): LogObject<wixDocsSubmitFeedbackParams> {\n return { evid: 1414, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsClickInPage' event (evid: 1415)\n *\n * Event description: Sends an event when a user click on any Button: copy link icon \\ copy code \\ open example \\ close example \\ in this article navigation click \\ view source \\ contact owner \\ try it out \\ syntax REST \\ syntax RPC\n *\n * @param {wixDocsClickInPageParams} params - The parameters for this event\n * @property {string} method - The method of the article, can be empty\n * @property {string} function_name - The name of the function that relate to the click, can be empty\n * @property {string} click_name - The name of the link, can be empty\n * @property {string} session_id - The current user`s session in the product\n * @property {string} category_name - The category of the current article\n * @property {string} portal - The current portal\n * @property {string} object - The object of the article, can be empty\n * @property {string} fqdn - The fqdn of the article, can be empty\n * @property {string} article_type - The current article type - get \\ webhook \\ post \\ ..\n * @property {string} article_id - The ID of the current article\n * @property {string} attribute_name - The name of the attribute that relate to the click, can be empty\n * @property {string} click_url - The url of the link, can be empty\n * @property {string} article_name - The name of the current article\n * @property {string} webhook - The webhook of the article, can be empty\n * @property {string} code_type - The code type that was copied - javascript \\ js..., can be empty\n * @property {string} page_url - The url of the current page\n * @property {string} action - Click on > in tables \\ links \\ copy link icon \\ copy code \\ open example \\ close example \\ in this article navigation click \\ view source \\ contact owner \\ try it out \\ syntax REST \\ syntax RPC \\ show members \\ hide members \\ tabs in tables \\ click on path navigation header\n * @property {string} view_mode - Logged in / Internal Mode / Edit Mode / logged out\n * @property {boolean} is_deprecation_mode - deprecation mode is on\n * @return {LogObject<wixDocsClickInPageParams>} LogObject<wixDocsClickInPageParams>\n */\nexport function wixDocsClickInPage(params: wixDocsClickInPageParams): LogObject<wixDocsClickInPageParams> {\n return { evid: 1415, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsMenuEditorSideBarActionClick' event (evid: 1416)\n *\n * Event description: The event is sent when a Side bar action click\n *\n * @param {wixDocsMenuEditorSideBarActionClickParams} params - The parameters for this event\n * @property {string} session_id - The current user`s session in the product\n * @property {string} category_name - The category of the current article\n * @property {string} portal - The current portal\n * @property {boolean} is_public - True if the item is already public\n * @property {string} sub_category_name - The sub category name\n * @property {string} item_location - Running number of the item location\n * @property {string} change_id - random number that will present all this action flow (finish, move to review)\n * @property {string} version - The article version, can be null\n * @property {string} article_id - The ID of the current article\n * @property {string} article_name - The name of the current article\n * @property {string} item_type - The item that was clicked from\n * @property {string} page_url - The url of the current page\n * @property {string} action - rename / delete / add category / add sub category / connect resource / unpublish / hide from public / unhide from public / manage resources\n * @return {LogObject<wixDocsMenuEditorSideBarActionClickParams>} LogObject<wixDocsMenuEditorSideBarActionClickParams>\n */\nexport function wixDocsMenuEditorSideBarActionClick(params: wixDocsMenuEditorSideBarActionClickParams): LogObject<wixDocsMenuEditorSideBarActionClickParams> {\n return { evid: 1416, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsMenuEditorSideBarActionFinished' event (evid: 1417)\n *\n * Event description: The event is sent when a Side bar action finished - approved in the review & save modal\n *\n * @param {wixDocsMenuEditorSideBarActionFinishedParams} params - The parameters for this event\n * @property {string} session_id - The current user`s session in the product\n * @property {string} category_name - The category of the current article\n * @property {string} portal - The current portal\n * @property {boolean} is_public - True if the item is already public\n * @property {string} sub_category_name - The sub category name\n * @property {string} item_location - Running number of the item location\n * @property {string} change_id - random number that will present all this action flow (finish, move to review)\n * @property {string} version - The article version, can be null\n * @property {string} article_id - The ID of the current article\n * @property {string} cta - remove / publish\n * @property {string} article_name - The name of the current article\n * @property {boolean} was_success - True if the action was completed well\n * @property {string} item_type - The item that was clicked from\n * @property {string} md - The md that was connected, will be null unless the action is connect\n * @property {string} page_url - The url of the current page\n * @property {string} action - rename / delete / add category / add sub category / connect resource / unpublish / hide from public / unhide from public / manage resources / item position changed\n * @return {LogObject<wixDocsMenuEditorSideBarActionFinishedParams>} LogObject<wixDocsMenuEditorSideBarActionFinishedParams>\n */\nexport function wixDocsMenuEditorSideBarActionFinished(params: wixDocsMenuEditorSideBarActionFinishedParams): LogObject<wixDocsMenuEditorSideBarActionFinishedParams> {\n return { evid: 1417, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsMenuEditorSideBarPositionChanged' event (evid: 1418)\n *\n * Event description: The event is sent when a Side bar position changed\n *\n * @param {wixDocsMenuEditorSideBarPositionChangedParams} params - The parameters for this event\n * @property {string} item_location_before - Running number of the item location, before it was moved\n * @property {string} session_id - The current user`s session in the product\n * @property {string} category_name - The category of the clicked item, after it was moved\n * @property {string} item_location_after - Running number of the item location, after it was moved\n * @property {string} portal - The current portal\n * @property {boolean} is_public - True if the item is already public\n * @property {string} sub_category_name - The sub category name, after it was moved\n * @property {string} change_id - random number that will present all this action flow (finish, move to review)\n * @property {string} version - The article version, can be null\n * @property {string} article_id - The ID of the current article, after it was moved\n * @property {string} article_name - The name of the current article that was clicked, after it was moved\n * @property {string} item_type - The item that was clicked from\n * @property {string} page_url - The url of the current page\n * @return {LogObject<wixDocsMenuEditorSideBarPositionChangedParams>} LogObject<wixDocsMenuEditorSideBarPositionChangedParams>\n */\nexport function wixDocsMenuEditorSideBarPositionChanged(params: wixDocsMenuEditorSideBarPositionChangedParams): LogObject<wixDocsMenuEditorSideBarPositionChangedParams> {\n return { evid: 1418, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsDocsWasPublished' event (evid: 1419)\n *\n * Event description: The event is sent when a tech writer is publishing the docs\n *\n * @param {wixDocsDocsWasPublishedParams} params - The parameters for this event\n * @property {string} failure_reason - The reason for the failure, can be empty\n * @property {string} portal - The published area - velo \\ rest \\ internal\n * @property {string} doc_url - The url of the published doc\n * @property {boolean} was_success - True if the docs were published successfully\n * @property {string} view_mode - Logged in / Internal Mode / Edit Mode / logged out\n * @property {boolean} is_deprecation_mode - deprecation mode is on\n * @property {string} publishedResourceId - The resource id that was published\n * @property {string} fqdn - The fqdn\n * @property {string} namespace - resource name\n * @property {string} publishedRevisionId - The published revision id\n * @return {LogObject<wixDocsDocsWasPublishedParams>} LogObject<wixDocsDocsWasPublishedParams>\n */\nexport function wixDocsDocsWasPublished(params: wixDocsDocsWasPublishedParams): LogObject<wixDocsDocsWasPublishedParams> {\n return { evid: 1419, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsMainPageClick' event (evid: 1420)\n *\n * Event description: The event is sent when the user clicks on any link at the main page of the wix docs\n *\n * @param {wixDocsMainPageClickParams} params - The parameters for this event\n * @property {string} click_name - The name of the link\n * @property {string} portal - portal\n * @property {string} click_url - The url of the clicked link\n * @property {string} view_mode - Logged in / Internal Mode / Edit Mode / logged out\n * @property {boolean} is_deprecation_mode - deprecation mode is on\n * @return {LogObject<wixDocsMainPageClickParams>} LogObject<wixDocsMainPageClickParams>\n */\nexport function wixDocsMainPageClick(params: wixDocsMainPageClickParams): LogObject<wixDocsMainPageClickParams> {\n return { evid: 1420, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsMainPageScroll' event (evid: 1421)\n *\n * Event description: The event is sent when the user scrolls the main page of the wix docs\n *\n * @param {wixDocsMainPageScrollParams} params - The parameters for this event\n * @property {string} page_part - what is the part in the page that was exposed\n * @property {string} portal - portal\n * @return {LogObject<wixDocsMainPageScrollParams>} LogObject<wixDocsMainPageScrollParams>\n */\nexport function wixDocsMainPageScroll(params: wixDocsMainPageScrollParams): LogObject<wixDocsMainPageScrollParams> {\n return { evid: 1421, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsModalWasOpen' event (evid: 1422)\n *\n * Event description: The event is sent when a docs modal was open\n *\n * @param {wixDocsModalWasOpenParams} params - The parameters for this event\n * @property {string} session_id - The current user`s session in the product\n * @property {string} category_name - The category of the current article\n * @property {string} portal - The current portal\n * @property {boolean} has_edit_permission - True if the user has edit permission for the current article\n * @property {string} modal_name - API playground\n * @property {string} article_type - the article type - get \\ webhook \\ post \\ ..\n * @property {string} article_id - The ID of the current article\n * @property {string} article_name - The name of the current article\n * @property {string} page_url - The url of the current page\n * @property {string} view_mode - Logged in / Internal Mode / Edit Mode / logged out\n * @property {boolean} is_deprecation_mode - deprecation mode is on\n * @return {LogObject<wixDocsModalWasOpenParams>} LogObject<wixDocsModalWasOpenParams>\n */\nexport function wixDocsModalWasOpen(params: wixDocsModalWasOpenParams): LogObject<wixDocsModalWasOpenParams> {\n return { evid: 1422, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsModalWasClose' event (evid: 1423)\n *\n * Event description: The event is sent when a docs modal was close\n *\n * @param {wixDocsModalWasCloseParams} params - The parameters for this event\n * @property {string} session_id - The current user`s session in the product\n * @property {string} category_name - The category of the current article\n * @property {string} portal - The current portal\n * @property {boolean} has_edit_permission - True if the user has edit permission for the current article\n * @property {string} modal_name - API playground\n * @property {string} article_type - the article type - get \\ webhook \\ post \\ ..\n * @property {string} article_id - The ID of the current article\n * @property {string} cta - X / click outside the modal\n * @property {string} article_name - The name of the current article\n * @property {string} page_url - The url of the current page\n * @property {string} view_mode - Logged in / Internal Mode / Edit Mode / logged out\n * @property {boolean} is_deprecation_mode - deprecation mode is on\n * @return {LogObject<wixDocsModalWasCloseParams>} LogObject<wixDocsModalWasCloseParams>\n */\nexport function wixDocsModalWasClose(params: wixDocsModalWasCloseParams): LogObject<wixDocsModalWasCloseParams> {\n return { evid: 1423, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsModalClick' event (evid: 1424)\n *\n * Event description: The event is sent when the user clicks on any cta at a docs modal\n *\n * @param {wixDocsModalClickParams} params - The parameters for this event\n * @property {string} session_id - The current user`s session in the product\n * @property {string} category_name - The category of the current article\n * @property {string} portal - The current portal\n * @property {string} token_type - Empty / Test Token / Access Token\n * @property {boolean} has_edit_permission - True if the user has edit permission for the current article\n * @property {string} modal_name - API playground\n * @property {string} article_type - the article type - get \\ webhook \\ post \\ ..\n * @property {string} article_id - The ID of the current article\n * @property {string} cta - Select Base Url click / Select Base Url change / \n * Choose a site / Access Token / Generated Test Token type / Access Token type / setting up OAuth link / send request / shareable link\n * @property {string} article_name - The name of the current article\n * @property {boolean} was_success - True if the action successed, relevant only for send request, generate token and generate new token clicks, can be null\n * @property {string} page_url - The url of the current page\n * @property {string} view_mode - Logged in / Internal Mode / Edit Mode / logged out\n * @property {boolean} is_deprecation_mode - deprecation mode is on\n * @return {LogObject<wixDocsModalClickParams>} LogObject<wixDocsModalClickParams>\n */\nexport function wixDocsModalClick(params: wixDocsModalClickParams): LogObject<wixDocsModalClickParams> {\n return { evid: 1424, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsMenuEditorEditModeStatusChange' event (evid: 1425)\n *\n * Event description: The event is sent when a Edit mode status change\n *\n * @param {wixDocsMenuEditorEditModeStatusChangeParams} params - The parameters for this event\n * @property {string} session_id - The current user`s session in the product\n * @property {string} referral_url - The url of the last page the users have seen, if he open the page by link it will send null\n * @property {string} portal - The current portal\n * @property {string} page_url - The url of the current page\n * @return {LogObject<wixDocsMenuEditorEditModeStatusChangeParams>} LogObject<wixDocsMenuEditorEditModeStatusChangeParams>\n */\nexport function wixDocsMenuEditorEditModeStatusChange(params: wixDocsMenuEditorEditModeStatusChangeParams): LogObject<wixDocsMenuEditorEditModeStatusChangeParams> {\n return { evid: 1425, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsMenuEditorSideBarActionMoveToReview' event (evid: 1426)\n *\n * Event description: The event is sent when a Side bar action moved to review\n *\n * @param {wixDocsMenuEditorSideBarActionMoveToReviewParams} params - The parameters for this event\n * @property {string} session_id - The current user`s session in the product\n * @property {string} category_name - The category of the current article\n * @property {string} portal - The current portal\n * @property {boolean} is_public - True if the item is already public\n * @property {string} sub_category_name - The sub category name\n * @property {string} item_location - Running number of the item location\n * @property {string} change_id - random number that will present all this action flow (finish, move to review)\n * @property {string} version - The article version, can be null\n * @property {string} article_id - The ID of the current article\n * @property {string} article_name - The name of the current article\n * @property {boolean} was_success - True if the action was completed well\n * @property {string} item_type - The item that was clicked from\n * @property {string} md - The md that was connected, will be null unless the action is connect\n * @property {string} page_url - The url of the current page\n * @property {string} action - rename / delete / add category / add sub category / connect resource / unpublish / hide from public / unhide from public / manage resources / item position changed\n * @return {LogObject<wixDocsMenuEditorSideBarActionMoveToReviewParams>} LogObject<wixDocsMenuEditorSideBarActionMoveToReviewParams>\n */\nexport function wixDocsMenuEditorSideBarActionMoveToReview(params: wixDocsMenuEditorSideBarActionMoveToReviewParams): LogObject<wixDocsMenuEditorSideBarActionMoveToReviewParams> {\n return { evid: 1426, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsMenuEditorVersionsSideBarLoaded' event (evid: 1427)\n *\n * Event description: The event is sent when the versions side bar finish loaded\n *\n * @param {wixDocsMenuEditorVersionsSideBarLoadedParams} params - The parameters for this event\n * @property {string} session_id - The current user`s session in the product\n * @property {string} category_name - The category of the current article\n * @property {string} portal - The current portal\n * @property {boolean} is_public - True if the item is already public\n * @property {string} sub_category_name - The sub category name\n * @property {string} item_location - Running number of the item location\n * @property {string} change_id - random number that will present all this action flow (finish, move to review)\n * @property {string} version - The article version, can be null\n * @property {string} article_id - The ID of the current article\n * @property {string} cta - the cta that opened the sidebar (manage version click / right icon to open)\n * @property {string} article_name - The name of the current article\n * @property {boolean} was_success - True if the action was completed well\n * @property {string} item_type - The item that was clicked from\n * @property {string} page_url - The url of the current page\n * @return {LogObject<wixDocsMenuEditorVersionsSideBarLoadedParams>} LogObject<wixDocsMenuEditorVersionsSideBarLoadedParams>\n */\nexport function wixDocsMenuEditorVersionsSideBarLoaded(params: wixDocsMenuEditorVersionsSideBarLoadedParams): LogObject<wixDocsMenuEditorVersionsSideBarLoadedParams> {\n return { evid: 1427, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsMenuEditorVersionsSideBarClicks' event (evid: 1428)\n *\n * Event description: The event is sent when the user click on the versions side bar\n *\n * @param {wixDocsMenuEditorVersionsSideBarClicksParams} params - The parameters for this event\n * @property {string} session_id - The current user`s session in the product\n * @property {string} category_name - The category of the current article\n * @property {string} portal - The current portal\n * @property {boolean} is_public - True if the item is already public\n * @property {string} sub_category_name - The sub category name\n * @property {string} item_location - Running number of the item location\n * @property {string} change_id - random number that will present all this action flow (finish, move to review)\n * @property {string} version - The article version, can be null\n * @property {string} article_id - The ID of the current article\n * @property {string} cta - X / add to publish list / remove from publish list / version\n * @property {string} article_name - The name of the current article\n * @property {boolean} was_success - True if the action was completed well\n * @property {string} item_type - The item that was clicked from\n * @property {string} page_url - The url of the current page\n * @property {string} new_version - The clicked version / the version that was chosen to add to publish list / null\n * @return {LogObject<wixDocsMenuEditorVersionsSideBarClicksParams>} LogObject<wixDocsMenuEditorVersionsSideBarClicksParams>\n */\nexport function wixDocsMenuEditorVersionsSideBarClicks(params: wixDocsMenuEditorVersionsSideBarClicksParams): LogObject<wixDocsMenuEditorVersionsSideBarClicksParams> {\n return { evid: 1428, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsMenuEditorContentFilterChange' event (evid: 1429)\n *\n * Event description: The event is sent when the user change any content filter\n *\n * @param {wixDocsMenuEditorContentFilterChangeParams} params - The parameters for this event\n * @property {string} session_id - The current user`s session in the product\n * @property {string} portal - The current portal\n * @property {string} cta - beta / ga / internal\n * @property {string} page_url - The url of the current page\n * @property {string} action - show / hide\n * @return {LogObject<wixDocsMenuEditorContentFilterChangeParams>} LogObject<wixDocsMenuEditorContentFilterChangeParams>\n */\nexport function wixDocsMenuEditorContentFilterChange(params: wixDocsMenuEditorContentFilterChangeParams): LogObject<wixDocsMenuEditorContentFilterChangeParams> {\n return { evid: 1429, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsMenuEditorInstructionsClicks' event (evid: 1430)\n *\n * Event description: The event is sent when the user clicks next at any instruction message\n *\n * @param {wixDocsMenuEditorInstructionsClicksParams} params - The parameters for this event\n * @property {string} session_id - The current user`s session in the product\n * @property {string} portal - The current portal\n * @property {number} instruction_num - num of instruction\n * @property {string} page_url - The url of the current page\n * @return {LogObject<wixDocsMenuEditorInstructionsClicksParams>} LogObject<wixDocsMenuEditorInstructionsClicksParams>\n */\nexport function wixDocsMenuEditorInstructionsClicks(params: wixDocsMenuEditorInstructionsClicksParams): LogObject<wixDocsMenuEditorInstructionsClicksParams> {\n return { evid: 1430, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsMenuEditorReviewSaveModalClicks' event (evid: 1431)\n *\n * Event description: The event is sent when the user clicks on any button at the review & save modal\n *\n * @param {wixDocsMenuEditorReviewSaveModalClicksParams} params - The parameters for this event\n * @property {string} session_id - The current user`s session in the product\n * @property {string} change_ids - a list of all cange_ids that the action was made on\n * @property {string} portal - The current portal\n * @property {string} cta - X / preview all / preview specific change / copy link / cancel / save / remove\n * @property {boolean} was_success - True if the action successed\n * @property {string} page_url - The url of the current page\n * @return {LogObject<wixDocsMenuEditorReviewSaveModalClicksParams>} LogObject<wixDocsMenuEditorReviewSaveModalClicksParams>\n */\nexport function wixDocsMenuEditorReviewSaveModalClicks(params: wixDocsMenuEditorReviewSaveModalClicksParams): LogObject<wixDocsMenuEditorReviewSaveModalClicksParams> {\n return { evid: 1431, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'relativeLinksFailure' event (evid: 1432)\n *\n * Event description: The event is sent when a relative link was broken\n *\n * @param {relativeLinksFailureParams} params - The parameters for this event\n * @property {string} pageUrl - The url of the current page\n * @property {string} sourceUrl - relative link\n * @property {string} destinationUrl - rendered link\n * @return {LogObject<relativeLinksFailureParams>} LogObject<relativeLinksFailureParams>\n */\nexport function relativeLinksFailure(params: relativeLinksFailureParams): LogObject<relativeLinksFailureParams> {\n return { evid: 1432, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsClickOnLinks' event (evid: 1433)\n *\n * Event description: Sends an event when a user click on any Link: in this article navigation click \\ view source \\ contact owner \\ try it out \\ syntax REST \\ syntax RPC\n *\n * @param {wixDocsClickOnLinksParams} params - The parameters for this event\n * @property {string} method - The method of the article, can be empty\n * @property {string} click_name - The name of the link, can be empty\n * @property {string} session_id - The current user`s session in the product\n * @property {string} category_name - The category of the current article\n * @property {string} portal - The current portal\n * @property {string} object - The object of the article, can be empty\n * @property {string} fqdn - The fqdn of the article, can be empty\n * @property {string} article_type - The current article type - api / md / object / get \\ webhook \\ post \\ ..\n * @property {string} article_id - The ID of the current article\n * @property {string} click_url - The url of the link, can be empty\n * @property {string} article_name - The name of the current article\n * @property {string} webhook - The webhook of the article, can be empty\n * @property {string} page_url - The url of the current page\n * @property {string} action - Click on > in tables \\ links \\ copy link icon \\ copy code \\ open example \\ close example \\ in this article navigation click \\ view source \\ contact owner \\ try it out \\ syntax REST \\ syntax RPC \\ show members \\ hide members \\ tabs in tables \\ click on path navigation header\n * @property {string} view_mode - Logged in / Internal Mode / Edit Mode / logged out\n * @property {boolean} is_deprecation_mode - deprecation mode is on\n * @return {LogObject<wixDocsClickOnLinksParams>} LogObject<wixDocsClickOnLinksParams>\n */\nexport function wixDocsClickOnLinks(params: wixDocsClickOnLinksParams): LogObject<wixDocsClickOnLinksParams> {\n return { evid: 1433, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'apiExampleGenerationCompletedByAiTool' event (evid: 1434)\n *\n * Event description: The event will be sent in any new revision in docs when the example generation is finished per method (successfully or not) and will send the example generation details.\n *\n * @param {apiExampleGenerationCompletedByAiToolParams} params - The parameters for this event\n * @property {string} method - The method name of the example being generated\n * @property {string} namespace - The method namespace\n * @property {string} fqdn - The method fqdn\n * @property {number} numRetries - The number of retries made until the example was generated or failed to generate (limitation of 3)\n * @property {boolean} wasSuccess - True if an example was generated\n * @property {string} portal - REST/ SDK / Velo - where the example was generate to\n * @property {string} failureReasons - A Json of the failure reasons. for example - {retry 1: \"reason\", retry 2: \"reason\",.....}\n * @property {string} view_mode - Logged in / Internal Mode / Edit Mode / logged out\n * @property {boolean} is_deprecation_mode - deprecation mode is on\n * @property {string} packageName - The method Package name\n * @property {string} publishedDocRevisionId - the publishedDocRevisionId\n * @return {LogObject<apiExampleGenerationCompletedByAiToolParams>} LogObject<apiExampleGenerationCompletedByAiToolParams>\n */\nexport function apiExampleGenerationCompletedByAiTool(params: apiExampleGenerationCompletedByAiToolParams): LogObject<apiExampleGenerationCompletedByAiToolParams> {\n return { evid: 1434, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'docsAiAssistantOpenCloseSrc112Evid1435' event (evid: 1435)\n *\n * Event description: The event is sent when the Docs AI Assistant is Opened / Closed\n *\n * @param {docsAiAssistantOpenCloseSrc112Evid1435Params} params - The parameters for this event\n * @property {string} action - open / close\n * @property {string} portal - The Docs portal\n * @property {string} page_url - The current page url\n * @property {number} interaction_time - when the action is close - the time the session took \n * @property {string} session_id - Docs session id\n * @property {string} view_mode - Logged in / Internal Mode / Edit Mode / logged out\n * @property {boolean} is_deprecation_mode - deprecation mode is on\n * @property {string} ai_session_id - The ai session id\n * @return {LogObject<docsAiAssistantOpenCloseSrc112Evid1435Params>} LogObject<docsAiAssistantOpenCloseSrc112Evid1435Params>\n */\nexport function docsAiAssistantOpenCloseSrc112Evid1435(params: docsAiAssistantOpenCloseSrc112Evid1435Params): LogObject<docsAiAssistantOpenCloseSrc112Evid1435Params> {\n return { evid: 1435, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'docsAiAssistantCostSrc112Evid1436' event (evid: 1436)\n *\n * Event description: The event is sent when the Docs AI Assistant is sending a response - with the cost it had\n *\n * @param {docsAiAssistantCostSrc112Evid1436Params} params - The parameters for this event\n * @property {string} type - call type\n * @property {number} cost - The cost in dollar\n * @property {number} response_time - in ms\n * @property {string} view_mode - Logged in / Internal Mode / Edit Mode / logged out\n * @property {boolean} is_deprecation_mode - deprecation mode is on\n * @return {LogObject<docsAiAssistantCostSrc112Evid1436Params>} LogObject<docsAiAssistantCostSrc112Evid1436Params>\n */\nexport function docsAiAssistantCostSrc112Evid1436(params: docsAiAssistantCostSrc112Evid1436Params): LogObject<docsAiAssistantCostSrc112Evid1436Params> {\n return { evid: 1436, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsHoverOnContentTerms' event (evid: 1437)\n *\n * Event description: Sends an event when a user hovers on wix docs content term, more that 3 sec.\n *\n * @param {wixDocsHoverOnContentTermsParams} params - The parameters for this event\n * @property {string} session_id - The current user`s session in the product\n * @property {string} portal - The current portal\n * @property {string} article_type - The current article type - api / md / object / get \\ webhook \\ post \\ ..\n * @property {string} page_url - The url of the current page\n * @property {string} view_mode - Logged in / Internal Mode / Edit Mode / logged out\n * @return {LogObject<wixDocsHoverOnContentTermsParams>} LogObject<wixDocsHoverOnContentTermsParams>\n */\nexport function wixDocsHoverOnContentTerms(params: wixDocsHoverOnContentTermsParams): LogObject<wixDocsHoverOnContentTermsParams> {\n return { evid: 1437, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsHover' event (evid: 1438)\n *\n * Event description: Sends an event when a user is hovering over content on Docs\n *\n * @param {wixDocsHoverParams} params - The parameters for this event\n * @property {string} method - The method of the article, can be empty\n * @property {string} hover_name - The name of the content\n * @property {string} session_id - The current user`s session in the product\n * @property {string} category_name - The category of the current article\n * @property {string} portal - The current portal\n * @property {string} object - The object of the article, can be empty\n * @property {string} fqdn - The fqdn of the article, can be empty\n * @property {string} article_type - The current article type - api / md / object / get \\ webhook \\ post \\ ..\n * @property {string} article_id - The ID of the current article\n * @property {string} article_name - The name of the current article\n * @property {string} webhook - The webhook of the article, can be empty\n * @property {string} page_url - The url of the current page\n * @property {string} view_mode - Logged in / Internal Mode / Edit Mode / logged out\n * @property {boolean} is_deprecation_mode - deprecation mode is on\n * @property {string} hover_content - The content of the hovered object\n * @return {LogObject<wixDocsHoverParams>} LogObject<wixDocsHoverParams>\n */\nexport function wixDocsHover(params: wixDocsHoverParams): LogObject<wixDocsHoverParams> {\n return { evid: 1438, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsVisitLocalViewer' event (evid: 15)\n *\n * Event description: User visit the local viewer\n *\n * @param {wixDocsVisitLocalViewerParams} params - The parameters for this event\n * @property {string} local_viewer_id - local_viewer_id\n * @property {string} customer_id - customer id\n * @return {LogObject<wixDocsVisitLocalViewerParams>} LogObject<wixDocsVisitLocalViewerParams>\n */\nexport function wixDocsVisitLocalViewer(params: wixDocsVisitLocalViewerParams): LogObject<wixDocsVisitLocalViewerParams> {\n return { evid: 15, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsOpenCloseExamples' event (evid: 16)\n *\n * Event description: User open/close examples in wix docs\n *\n * @param {wixDocsOpenCloseExamplesParams} params - The parameters for this event\n * @property {string} customer_id - customer id\n * @property {string} categoryName - category name\n * @property {string} articleUrl - url of article\n * @property {number} exampleId - number of example in the list\n * @property {string} articleName - article name\n * @property {string} action - 'open' or 'close'\n * @return {LogObject<wixDocsOpenCloseExamplesParams>} LogObject<wixDocsOpenCloseExamplesParams>\n */\nexport function wixDocsOpenCloseExamples(params: wixDocsOpenCloseExamplesParams): LogObject<wixDocsOpenCloseExamplesParams> {\n return { evid: 16, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'docsRedirectFailure' event (evid: 1600)\n *\n * Event description: The event will be sent when there is a docs redirect , and it will send the result\n *\n * @param {docsRedirectFailureParams} params - The parameters for this event\n * @property {string} url - The url\n * @property {boolean} isSuccess - True if the redirect works correct\n * @property {string} view_mode - Logged in / Internal Mode / Edit Mode / logged out\n * @property {boolean} is_deprecation_mode - deprecation mode is on\n * @return {LogObject<docsRedirectFailureParams>} LogObject<docsRedirectFailureParams>\n */\nexport function docsRedirectFailure(params: docsRedirectFailureParams): LogObject<docsRedirectFailureParams> {\n return { evid: 1600, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsRedirectByExternalIdSrc112Evid1601' event (evid: 1601)\n *\n * Event description: Wix Docs redirect by external id\n *\n * @param {wixDocsRedirectByExternalIdSrc112Evid1601Params} params - The parameters for this event\n * @property {boolean} is_success - a valid resource was found by the portal and external id data\n * @property {string} redirect_url - the url that was redirect\n * @property {string} external_id - Docs metadata on the resource\n * @property {string} platform - cli/dev center/blocks\n * @property {string} portal_slug - the docs portal\n * @property {boolean} is_deprecation_mode - deprecation mode is on\n * @return {LogObject<wixDocsRedirectByExternalIdSrc112Evid1601Params>} LogObject<wixDocsRedirectByExternalIdSrc112Evid1601Params>\n */\nexport function wixDocsRedirectByExternalIdSrc112Evid1601(params: wixDocsRedirectByExternalIdSrc112Evid1601Params): LogObject<wixDocsRedirectByExternalIdSrc112Evid1601Params> {\n return { evid: 1601, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsRelatedSiteClick' event (evid: 17)\n *\n * Event description: Wix Docs - Related Site Click\n *\n * @param {wixDocsRelatedSiteClickParams} params - The parameters for this event\n * @property {string} customer_id - customer_id\n * @property {string} selected_name - selected_name\n * @property {string} selected_url - selected_url\n * @return {LogObject<wixDocsRelatedSiteClickParams>} LogObject<wixDocsRelatedSiteClickParams>\n */\nexport function wixDocsRelatedSiteClick(params: wixDocsRelatedSiteClickParams): LogObject<wixDocsRelatedSiteClickParams> {\n return { evid: 17, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsViewSourceClick' event (evid: 18)\n *\n * Event description: Wix Docs - View Source Click\n *\n * @param {wixDocsViewSourceClickParams} params - The parameters for this event\n * @property {string} customer_id - customer id\n * @property {string} article_url - article url\n * @property {string} article_name - article name\n * @return {LogObject<wixDocsViewSourceClickParams>} LogObject<wixDocsViewSourceClickParams>\n */\nexport function wixDocsViewSourceClick(params: wixDocsViewSourceClickParams): LogObject<wixDocsViewSourceClickParams> {\n return { evid: 18, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsObjectShowMembersClick' event (evid: 19)\n *\n * Event description: Click on Show Members\n *\n * @param {wixDocsObjectShowMembersClickParams} params - The parameters for this event\n * @property {string} customer_id - customer_id\n * @property {string} category_name - category name\n * @property {string} article_url - article url\n * @property {string} article_name - article name\n * @property {string} action - action\n * @return {LogObject<wixDocsObjectShowMembersClickParams>} LogObject<wixDocsObjectShowMembersClickParams>\n */\nexport function wixDocsObjectShowMembersClick(params: wixDocsObjectShowMembersClickParams): LogObject<wixDocsObjectShowMembersClickParams> {\n return { evid: 19, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsSiteVisit' event (evid: 2)\n *\n * Event description: Visit to Wix Docs page\n *\n * @param {wixDocsSiteVisitParams} params - The parameters for this event\n * @property {string} customer_id - customer id of our business client (app_builder, dev center,\n * @property {Url} referral_url - referral_url\n * @property {string} category_name - category\n * @property {number} screen_width - screen_width\n * @property {number} screen_height - screen height\n * @property {string} article_name - article name\n * @property {Url} page_url - page url of customer\n * @return {LogObject<wixDocsSiteVisitParams>} LogObject<wixDocsSiteVisitParams>\n */\nexport function wixDocsSiteVisit(params: wixDocsSiteVisitParams): LogObject<wixDocsSiteVisitParams> {\n return { evid: 2, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsToggleClick' event (evid: 22)\n *\n * Event description: Click on a toggle to change View mode/Deprecation mode/Edit mode...\n *\n * @param {wixDocsToggleClickParams} params - The parameters for this event\n * @property {string} toggle_name - the name of the toggle that was clicked\n * @property {string} toggle_status - the current status of the toggle (before clicking)\n * @property {string} page_url - the url of the current page (when clicking on the toggle)\n * @property {string} article_name - the name of the current item\n * @property {boolean} is_deprecation_mode - deprecation mode is on\n * @return {LogObject<wixDocsToggleClickParams>} LogObject<wixDocsToggleClickParams>\n */\nexport function wixDocsToggleClick(params: wixDocsToggleClickParams): LogObject<wixDocsToggleClickParams> {\n return { evid: 22, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsGiveFeedbackClick' event (evid: 3)\n *\n * Event description: User clicks on \"yes\" or \"no\" feedback click for articles.\n *\n * @param {wixDocsGiveFeedbackClickParams} params - The parameters for this event\n * @property {string} customer_id - customer_id\n * @property {Url} article_url - article_url\n * @property {string} article_name - article_name\n * @property {boolean} positive_feedback - feedback given, Yes or No - for helpful\n * @return {LogObject<wixDocsGiveFeedbackClickParams>} LogObject<wixDocsGiveFeedbackClickParams>\n */\nexport function wixDocsGiveFeedbackClick(params: wixDocsGiveFeedbackClickParams): LogObject<wixDocsGiveFeedbackClickParams> {\n return { evid: 3, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'gitToResourceUpdateSrc112Evid30' event (evid: 30)\n *\n * Event description: Tracking git to resource update pipline\n *\n * @param {gitToResourceUpdateSrc112Evid30Params} params - The parameters for this event\n * @property {string} flow - the consumed/produced event topic\n * @property {string} step - the name of the step\n * @property {GUID} flow_id - guid of the current pipeline (consistent over the pipeline)\n * @property {string} revision_id_1 - revision id\n * @property {string} resource_id_1 - resource id\n * @property {string} entity_id - entity id (for open api resolver)\n * @property {string} repository_full_name - repository name (for md resolver and repo whitlist in autogen)\n * @property {string} package_name - package name (for public sdk and auto velo)\n * @property {string} module_name - module name (for legacy velo)\n * @return {LogObject<gitToResourceUpdateSrc112Evid30Params>} LogObject<gitToResourceUpdateSrc112Evid30Params>\n */\nexport function gitToResourceUpdateSrc112Evid30(params: gitToResourceUpdateSrc112Evid30Params): LogObject<gitToResourceUpdateSrc112Evid30Params> {\n return { evid: 30, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsSearchResults' event (evid: 4)\n *\n * Event description: Search results returned (search action performed)\n *\n * @param {wixDocsSearchResultsParams} params - The parameters for this event\n * @property {string} chosen_article_name - Chosen article name\n * @property {string} user_action - action taken by user = [exit_search, result_click, clear_button]\n * @property {string} customer_id - customer id of our business client (app_builder, dev center,\n * @property {Url} first_article_url - url of first url returned in search\n * @property {string} first_article_category - the category of the the first search result\n * @property {Url} chosen_article - the url of the article that the user clicked, if clicked\n * @property {string} first_article_name - the first name of the article\n * @property {number} num_of_results - how many articles were found for the search?\n * @property {string} search_term - search term used in search action\n * @property {string} chosen_category_name - name of chosen category\n * @property {Url} chosen_article_url - chosen article url\n * @return {LogObject<wixDocsSearchResultsParams>} LogObject<wixDocsSearchResultsParams>\n */\nexport function wixDocsSearchResults(params: wixDocsSearchResultsParams): LogObject<wixDocsSearchResultsParams> {\n return { evid: 4, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsNavigationClick' event (evid: 5)\n *\n * Event description: Menu navigation click\n *\n * @param {wixDocsNavigationClickParams} params - The parameters for this event\n * @property {string} customer_id - customer id of our business client (app_builder, dev center,\n * @property {string} category_name - name of category in menu\n * @property {Url} article_url - article url\n * @property {string} article_name - name of article inside of category\n * @property {string} nav_type - breadcrumb, category, article, scroll (after 5 secs)\n * @return {LogObject<wixDocsNavigationClickParams>} LogObject<wixDocsNavigationClickParams>\n */\nexport function wixDocsNavigationClick(params: wixDocsNavigationClickParams): LogObject<wixDocsNavigationClickParams> {\n return { evid: 5, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsContactOwnerLinkClicked' event (evid: 6)\n *\n * Event description: Link to contact owner clicked\n *\n * @param {wixDocsContactOwnerLinkClickedParams} params - The parameters for this event\n * @property {string} customer_id - customer id\n * @property {string} article_url - article url\n * @property {string} article_name - article name\n * @property {string} link_type - link type clicked\n * @return {LogObject<wixDocsContactOwnerLinkClickedParams>} LogObject<wixDocsContactOwnerLinkClickedParams>\n */\nexport function wixDocsContactOwnerLinkClicked(params: wixDocsContactOwnerLinkClickedParams): LogObject<wixDocsContactOwnerLinkClickedParams> {\n return { evid: 6, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsCopyCode' event (evid: 7)\n *\n * Event description: Copy the code given in the article example\n *\n * @param {wixDocsCopyCodeParams} params - The parameters for this event\n * @property {string} customer_id - customer id of our business client (app_builder, dev center,\n * @property {string} category_name - name of category\n * @property {Url} article_url - the url of the article that was copied\n * @property {string} id - id of copied data\n * @property {string} article_name - name of article\n * @return {LogObject<wixDocsCopyCodeParams>} LogObject<wixDocsCopyCodeParams>\n */\nexport function wixDocsCopyCode(params: wixDocsCopyCodeParams): LogObject<wixDocsCopyCodeParams> {\n return { evid: 7, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsTryItOutClick' event (evid: 8)\n *\n * Event description: Wix Docs - Try it Out - Click\n *\n * @param {wixDocsTryItOutClickParams} params - The parameters for this event\n * @property {string} customer_id - customer id\n * @property {string} category_name - category name\n * @property {Url} article_url - article_url\n * @property {string} article_name - article name\n * @return {LogObject<wixDocsTryItOutClickParams>} LogObject<wixDocsTryItOutClickParams>\n */\nexport function wixDocsTryItOutClick(params: wixDocsTryItOutClickParams): LogObject<wixDocsTryItOutClickParams> {\n return { evid: 8, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixDocsShareableLinkClick' event (evid: 9)\n *\n * Event description: Wix Docs - Shareable Link - Click\n *\n * @param {wixDocsShareableLinkClickParams} params - The parameters for this event\n * @property {string} customer_id - customer id\n * @property {string} category_name - category name\n * @property {Url} article_url - article_url\n * @property {string} article_name - article name\n * @return {LogObject<wixDocsShareableLinkClickParams>} LogObject<wixDocsShareableLinkClickParams>\n */\nexport function wixDocsShareableLinkClick(params: wixDocsShareableLinkClickParams): LogObject<wixDocsShareableLinkClickParams> {\n return { evid: 9, src: 112, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'publicSdkCall' event (evid: 1606)\n *\n * Event description: The event is sent when there is a call for an API\n *\n * @param {publicSdkCallParams} params - The parameters for this event\n * @property {string} http_code - status response : 200 / 401 / 403 / 404 / 500\n * @property {Url} url - The url of the destination of the call (URL/URI)\n * @property {number} latency - The API latency\n * @property {string} auth_type - API Keys / OAuth app / ..\n * @property {string} app_def_id - The app_def_id of the caller\n * @property {string} package_version - bi-package-version\n * @property {string} http_method - REST protocol (Post / delete / patch / put / delete)\n * @property {string} entity_name - The name of the entity that was called (fqdn)\n * @property {string} package_name - bi-package-name\n * @property {string} origin_url - The url that the call was from\n * @property {string} environment - js-sdk (sdk before we changed the field) / velo-frontend (auto velo) / velo-backend (auto velo) / vanilla (rest) / js-dashboard / js-api_key / js-velo-backend / js-velo-frontend / js-app (TPA using sdk - for example cli apps) / js-site / js-editor\n * @property {string} method_name - The name of the method that was called (fqn)\n * @property {string} msid - The ID of the site\n * @property {string} mcp_tool_execution_id - wix mcp server tool execution id\n * @property {string} entity_name_fw - entity_name_fw\n * @property {string} method_name_fw - method_name_fw\n * @property {GUID} instance_id - The instance id - msid+app_id\n * @property {string} integration_type - Wix / TPA (headless, api keys, blocks) / Velo\n * @return {LogObject<publicSdkCallParams>} LogObject<publicSdkCallParams>\n */\nexport function publicSdkCall(params: publicSdkCallParams): LogObject<publicSdkCallParams> {\n return { evid: 1606, src: 11, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'headlessQuickStartModalShown' event (evid: 11)\n *\n * Event description: The Headless quick-start modal shown - will be sent in any step of the modal\n *\n * @param {headlessQuickStartModalShownParams} params - The parameters for this event\n * @property {string} step - create an OAuth app / install SDK / call our API\n * @property {string} technology - javascript / react/ / others / null if it wasnt chosen yet\n * @property {string} appType - web / mobile / other / null if it wasn't chosen yet\n * @property {string} entryPoint - where the modal opened from - focus widget / create oauth from settings\n * @property {boolean} isNewFlow - True if new \n * @return {LogObject<headlessQuickStartModalShownParams>} LogObject<headlessQuickStartModalShownParams>\n */\nexport function headlessQuickStartModalShown(params: headlessQuickStartModalShownParams): LogObject<headlessQuickStartModalShownParams> {\n return { evid: 11, src: 151, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'headlessPlaygroundModalFinishedLoading' event (evid: 12)\n *\n * Event description: The event will be sent when the user clicks on any button of the modal\n *\n * @param {headlessPlaygroundModalFinishedLoadingParams} params - The parameters for this event\n * @property {string} step - create an OAuth app / install SDK / call our API\n * @property {string} cta - learn more, create&cont, tech, copy code, any wix api tool link, go to settings, close, app_type (the type will be sent in \"value\" field)\n * X, etc\n *\n * @property {string} value - name, app type, copy code type, etc (can be null)\n * @property {string} technology - javascript / react/ / others / null if it wasnt chosen yet\n *\n * @property {string} appType - web / mobile / other / null if it wasnt chosen yet\n *\n * @property {string} entryPoint - where the modal opened from - focus widget / create oauth from settings\n *\n * @return {LogObject<headlessPlaygroundModalFinishedLoadingParams>} LogObject<headlessPlaygroundModalFinishedLoadingParams>\n */\nexport function headlessPlaygroundModalFinishedLoading(params: headlessPlaygroundModalFinishedLoadingParams): LogObject<headlessPlaygroundModalFinishedLoadingParams> {\n return { evid: 12, src: 151, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'oauthAppClickOnOauthAppAction' event (evid: 100)\n *\n * Event description: The event is sent when the user click to create/delete/edit OAuth app\n *\n * @param {oauthAppClickOnOauthAppActionParams} params - The parameters for this event\n * @property {string} app_description - The app description, can be empty\n * @property {string} allowed_domains - The app allowed domains, can be empty\n * @property {string} account_id - The ID of the account that the site owned by\n * @property {string} app_name - The app name, can be empty\n * @property {number} num_apps - The number of Apps that already exists for this site\n * @property {string} login_urls - List of the login URLs, can be empty\n * @property {string} app_id - The id of the app, can be empty\n * @property {string} msid - The msid of the site\n * @property {string} action - create / create from empty state / edit / delete\n * @return {LogObject<oauthAppClickOnOauthAppActionParams>} LogObject<oauthAppClickOnOauthAppActionParams>\n */\nexport function oauthAppClickOnOauthAppAction(params: oauthAppClickOnOauthAppActionParams): LogObject<oauthAppClickOnOauthAppActionParams> {\n return { evid: 100, src: 154, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'oauthAppClickAtTheOauthAppMainPage' event (evid: 101)\n *\n * Event description: The event is sent when the user clicks on any action from the OAuth app main page, other than apps actions (copy account ID button, referral link)\n *\n * @param {oauthAppClickAtTheOauthAppMainPageParams} params - The parameters for this event\n * @property {string} url_clicked - The URL that the user opened by a click on the link, can be empty\n * @property {string} field_value - The redirect URL, can be null\n * @property {string} account_id - The ID of the account that the site owned by\n * @property {string} cta - copy account id button / referral link / edit domain\n * @property {number} num_apps - The number of Apps that already exists for this site\n * @property {string} msid - The msid of the site\n * @return {LogObject<oauthAppClickAtTheOauthAppMainPageParams>} LogObject<oauthAppClickAtTheOauthAppMainPageParams>\n */\nexport function oauthAppClickAtTheOauthAppMainPage(params: oauthAppClickAtTheOauthAppMainPageParams): LogObject<oauthAppClickAtTheOauthAppMainPageParams> {\n return { evid: 101, src: 154, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'oauthAppClickNextCloseAtTheCreateOauthAppDialog' event (evid: 102)\n *\n * Event description: The event is sent when the user click on next button at the Create a OAuth app dialog\n *\n * @param {oauthAppClickNextCloseAtTheCreateOauthAppDialogParams} params - The parameters for this event\n * @property {string} app_description - The app description, can be empty\n * @property {string} account_id - The ID of the account that the site owned by\n * @property {string} app_name - The app name\n * @property {number} num_apps - The number of Apps that already exists for this site\n * @property {string} app_id - The id of the app, can be empty\n * @property {string} msid - The msid of the site\n * @property {string} action - next / close\n * @return {LogObject<oauthAppClickNextCloseAtTheCreateOauthAppDialogParams>} LogObject<oauthAppClickNextCloseAtTheCreateOauthAppDialogParams>\n */\nexport function oauthAppClickNextCloseAtTheCreateOauthAppDialog(params: oauthAppClickNextCloseAtTheCreateOauthAppDialogParams): LogObject<oauthAppClickNextCloseAtTheCreateOauthAppDialogParams> {\n return { evid: 102, src: 154, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'oauthAppClickAtTheCreateEditOauthAppPage' event (evid: 103)\n *\n * Event description: The event is sent when the user click on any action from the edit / create OAuth app page, other then close / save (copy account ID button, refferal link, show client secret, hide client secret, rotate client secret, add redirect URL)\n *\n * @param {oauthAppClickAtTheCreateEditOauthAppPageParams} params - The parameters for this event\n * @property {string} url_clicked - The URL that the user opend by a click on the link, can be empty\n * @property {string} app_description - The app description, can be empty\n * @property {string} app_action - create / edit\n * @property {string} allowed_domains - The app allowed domains, can be empty\n * @property {string} account_id - The ID of the account that the site owned by\n * @property {string} cta - copy account ID button, refferal link, show client secret, hide client secret, rotate client secret, add redirect URL\n * @property {string} app_name - The app name\n * @property {number} num_apps - The number of Apps that already exists for this site\n * @property {string} login_urls - List of the login URLs, can be empty\n * @property {string} app_id - The id of the app, can be empty\n * @property {string} allowed_authorize_urls - The app allowed_authorize_urls, can be empty\n * @property {string} msid - The msid of the site\n * @return {LogObject<oauthAppClickAtTheCreateEditOauthAppPageParams>} LogObject<oauthAppClickAtTheCreateEditOauthAppPageParams>\n */\nexport function oauthAppClickAtTheCreateEditOauthAppPage(params: oauthAppClickAtTheCreateEditOauthAppPageParams): LogObject<oauthAppClickAtTheCreateEditOauthAppPageParams> {\n return { evid: 103, src: 154, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'oauthAppClickOnCloseFromCreateEditOauthAppPage' event (evid: 104)\n *\n * Event description: The event is sent when the user clicks on close from edit OAuth app page (didnt save changes \\ didnt create an app)\n *\n * @param {oauthAppClickOnCloseFromCreateEditOauthAppPageParams} params - The parameters for this event\n * @property {string} app_action - create / edit\n * @property {string} account_id - The ID of the account that the site owned by\n * @property {string} app_name - The app name\n * @property {number} num_apps - The number of Apps that already exists for this site\n * @property {string} app_id - The id of the app, can be empty\n * @property {string} msid - The msid of the site\n * @return {LogObject<oauthAppClickOnCloseFromCreateEditOauthAppPageParams>} LogObject<oauthAppClickOnCloseFromCreateEditOauthAppPageParams>\n */\nexport function oauthAppClickOnCloseFromCreateEditOauthAppPage(params: oauthAppClickOnCloseFromCreateEditOauthAppPageParams): LogObject<oauthAppClickOnCloseFromCreateEditOauthAppPageParams> {\n return { evid: 104, src: 154, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'oauthAppClickOnSaveFromCreateEditOauthAppPage' event (evid: 105)\n *\n * Event description: The event is sent when the user clicks on save from edit OAuth app page (create an app \\ save changes of an app)\n *\n * @param {oauthAppClickOnSaveFromCreateEditOauthAppPageParams} params - The parameters for this event\n * @property {string} old_login_urls - List of the old login URLs, can be empty if there were no changes\n * @property {string} app_description - The current app description\n * @property {string} app_action - create / edit\n * @property {string} old_allowed_domains - The old app allowed domains, can be empty if there were no changes\n * @property {string} old_app_name - The old app name, can be empty if there were no changes\n * @property {string} allowed_domains - The current app allowed domains\n * @property {string} account_id - The ID of the account that the site owned by\n * @property {string} app_name - The current app name\n * @property {number} num_apps - The number of Apps that already exists for this site\n * @property {string} login_urls - The current list of the login URLs\n * @property {string} app_id - The current id of the app\n * @property {string} allowed_authorize_urls - The app allowed_authorize_urls, can be empty\n * @property {string} old_app_description - The old app description, can be empty if there were no changes\n * @property {string} msid - The msid of the site\n * @return {LogObject<oauthAppClickOnSaveFromCreateEditOauthAppPageParams>} LogObject<oauthAppClickOnSaveFromCreateEditOauthAppPageParams>\n */\nexport function oauthAppClickOnSaveFromCreateEditOauthAppPage(params: oauthAppClickOnSaveFromCreateEditOauthAppPageParams): LogObject<oauthAppClickOnSaveFromCreateEditOauthAppPageParams> {\n return { evid: 105, src: 154, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'oauthAppClickAtTheDeleteOauthAppDialog' event (evid: 106)\n *\n * Event description: The event is sent when the user slick on some button at the delete app dialog - (delete \\ send code \\ send code again \\ verify and delete an app)\n *\n * @param {oauthAppClickAtTheDeleteOauthAppDialogParams} params - The parameters for this event\n * @property {string} app_description - The app description\n * @property {string} allowed_domains - The app allowed domains\n * @property {string} account_id - The ID of the account that the site owned by\n * @property {string} app_name - The app name\n * @property {number} num_apps - The number of Apps that already exists for this site\n * @property {string} login_urls - List of the login URLs\n * @property {string} app_id - The id of the app\n * @property {string} msid - The msid of the site\n * @property {string} action - delete / send code / send code again / verify and delete an app\n * @return {LogObject<oauthAppClickAtTheDeleteOauthAppDialogParams>} LogObject<oauthAppClickAtTheDeleteOauthAppDialogParams>\n */\nexport function oauthAppClickAtTheDeleteOauthAppDialog(params: oauthAppClickAtTheDeleteOauthAppDialogParams): LogObject<oauthAppClickAtTheDeleteOauthAppDialogParams> {\n return { evid: 106, src: 154, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'oauthAppOauthAppActionWasMade' event (evid: 107)\n *\n * Event description: The event is sent when an OAuth app was created / deleted / edited\n *\n * @param {oauthAppOauthAppActionWasMadeParams} params - The parameters for this event\n * @property {string} old_login_urls - List of the old login URLs, can be empty if there were no changes\n * @property {string} failure_reason - The failure reason, can be empty\n * @property {string} app_description - The current app description\n * @property {string} app_action - create / edit / delete\n * @property {string} old_allowed_domains - The old app allowed domains, can be empty if there were no changes\n * @property {string} old_app_name - The old app name, can be empty if there were no changes\n * @property {string} allowed_domains - The current app allowed domains\n * @property {string} old_allowed_authorize_urls - The old app allowed_authorize_urls, can be empty\n * @property {string} account_id - The ID of the account that the site owned by\n * @property {string} app_name - The current app name\n * @property {number} num_apps - The number of Apps that already exists for this site\n * @property {string} login_urls - The current list of the login URLs\n * @property {string} app_id - The current id of the app\n * @property {string} allowed_authorize_urls - The app allowed_authorize_urls, can be empty\n * @property {boolean} was_success - True if the action was finished successfully\n * @property {number} time_to_finish - The time it took to finish the action in ms\n * @property {string} old_app_description - The old app description, can be empty if there were no changes\n * @property {string} msid - The msid of the site\n * @property {boolean} is_new_flow - True is it was created by the new flow\n * @return {LogObject<oauthAppOauthAppActionWasMadeParams>} LogObject<oauthAppOauthAppActionWasMadeParams>\n */\nexport function oauthAppOauthAppActionWasMade(params: oauthAppOauthAppActionWasMadeParams): LogObject<oauthAppOauthAppActionWasMadeParams> {\n return { evid: 107, src: 154, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'oauthAppClickAtTheGenerateClientSecretDialog' event (evid: 108)\n *\n * Event description: The event is sent when the user click at the generate client secret dialog\n *\n * @param {oauthAppClickAtTheGenerateClientSecretDialogParams} params - The parameters for this event\n * @property {string} app_description - The app description\n * @property {string} account_id - The ID of the account that the site owned by\n * @property {string} app_name - The app name\n * @property {string} app_id - The id of the app\n * @property {string} msid - The msid of the site\n * @property {string} action - Copy & close / copy icon / learn more link\n * @return {LogObject<oauthAppClickAtTheGenerateClientSecretDialogParams>} LogObject<oauthAppClickAtTheGenerateClientSecretDialogParams>\n */\nexport function oauthAppClickAtTheGenerateClientSecretDialog(params: oauthAppClickAtTheGenerateClientSecretDialogParams): LogObject<oauthAppClickAtTheGenerateClientSecretDialogParams> {\n return { evid: 108, src: 154, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'oauthAppOauthAppActionWasMadeServer' event (evid: 151)\n *\n * Event description: The event is sent when an OAuth app was created / deleted / edited, server event\n *\n * @param {oauthAppOauthAppActionWasMadeServerParams} params - The parameters for this event\n * @property {string} old_login_urls - List of the old login URLs, can be empty if there were no changes\n * @property {string} failure_reason - The failure reason, can be empty\n * @property {string} app_description - The current app description\n * @property {string} app_action - create / edit / delete\n * @property {string} old_allowed_domains - The old app allowed domains, can be empty if there were no changes\n * @property {string} old_app_name - The old app name, can be empty if there were no changes\n * @property {string} allowed_domains - The current app allowed domains\n * @property {string} old_allowed_authorize_urls - The old app allowed_authorize_urls, can be empty\n * @property {string} account_id - The ID of the account that the site owned by\n * @property {string} app_name - The current app name\n * @property {number} num_apps - The number of Apps that already exists for this site\n * @property {string} login_urls - The current list of the login URLs\n * @property {string} app_id - The current id of the app\n * @property {string} allowed_authorize_urls - The app allowed_authorize_urls, can be empty\n * @property {boolean} was_success - True if the action was finished successfully\n * @property {number} time_to_finish - time_to_finish\n * @property {string} old_app_description - The old app description, can be empty if there were no changes\n * @property {string} msid - The msid of the site\n * @property {string} action_initiator - the initiator of the action (user/developer/picasso)\n * @return {LogObject<oauthAppOauthAppActionWasMadeServerParams>} LogObject<oauthAppOauthAppActionWasMadeServerParams>\n */\nexport function oauthAppOauthAppActionWasMadeServer(params: oauthAppOauthAppActionWasMadeServerParams): LogObject<oauthAppOauthAppActionWasMadeServerParams> {\n return { evid: 151, src: 154, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'apiKeysStartGenerateKey' event (evid: 202)\n *\n * Event description: The event is sent when the user click on verify & generate key, to start generate key\n *\n * @param {apiKeysStartGenerateKeyParams} params - The parameters for this event\n * @property {boolean} is_wix_employee - True if the user is wix employee\n * @property {number} num_of_keys - The number of keys in the account\n * @property {string} key_permissions - The chosen permissions for the key\n * @property {boolean} is_premium - True if the user has at least 1 premium package\n * @property {string} key_name - The current api name\n * @property {number} number_sites - The number of sites in the account\n * @return {LogObject<apiKeysStartGenerateKeyParams>} LogObject<apiKeysStartGenerateKeyParams>\n */\nexport function apiKeysStartGenerateKey(params: apiKeysStartGenerateKeyParams): LogObject<apiKeysStartGenerateKeyParams> {\n return { evid: 202, src: 154, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'apiKeysFinishGenerateKey' event (evid: 203)\n *\n * Event description: The event is sent when a key is finish the generating process, regardless it was a success or not\n *\n * @param {apiKeysFinishGenerateKeyParams} params - The parameters for this event\n * @property {string} failure_reason - The reason for the failure, can be empty\n * @property {string} app_def_id - the app_def_id of the key\n * @property {string} key_id - The current app ID\n * @property {boolean} is_wix_employee - True if the user is wix employee\n * @property {number} num_of_keys - The number of keys in the account\n * @property {string} key_permissions - The chosen permissions for the key\n * @property {number} time_to_generate - The time it took to generate the key in ms (from evid 202 start generate key)\n * @property {boolean} was_success - True if the key was generate successfully\n * @property {boolean} is_premium - True if the user has at least 1 premium package\n * @property {string} key_name - The current api name\n * @property {number} number_sites - The number of sites in the account\n * @return {LogObject<apiKeysFinishGenerateKeyParams>} LogObject<apiKeysFinishGenerateKeyParams>\n */\nexport function apiKeysFinishGenerateKey(params: apiKeysFinishGenerateKeyParams): LogObject<apiKeysFinishGenerateKeyParams> {\n return { evid: 203, src: 154, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'apiKeysClickOnActionFromThe3Dots' event (evid: 204)\n *\n * Event description: The event is sent when the user clicks on the top button 'generate api key'\n *\n * @param {apiKeysClickOnActionFromThe3DotsParams} params - The parameters for this event\n * @property {string} key_id - The current app ID\n * @property {boolean} is_wix_employee - True if the user is wix employee\n * @property {number} num_of_keys - The number of keys in the account\n * @property {boolean} is_premium - True if the user has at least 1 premium package\n * @property {string} key_name - The current api name\n * @property {string} action - The action the user press on - edit \\ duplicate \\ rotate \\ delete\n * @return {LogObject<apiKeysClickOnActionFromThe3DotsParams>} LogObject<apiKeysClickOnActionFromThe3DotsParams>\n */\nexport function apiKeysClickOnActionFromThe3Dots(params: apiKeysClickOnActionFromThe3DotsParams): LogObject<apiKeysClickOnActionFromThe3DotsParams> {\n return { evid: 204, src: 154, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'apiKeysClickOnGenerateKeyTopButton' event (evid: 205)\n *\n * Event description: The event is sent when the user clicks on the 'generate API key' top button on the main page\n *\n * @param {apiKeysClickOnGenerateKeyTopButtonParams} params - The parameters for this event\n * @property {boolean} is_wix_employee - True if the user is wix employee\n * @property {number} num_of_keys - The number of keys in the account\n * @property {boolean} is_premium - True if the user has at least 1 premium package\n * @property {number} number_sites - The number of sites in the account\n * @return {LogObject<apiKeysClickOnGenerateKeyTopButtonParams>} LogObject<apiKeysClickOnGenerateKeyTopButtonParams>\n */\nexport function apiKeysClickOnGenerateKeyTopButton(params: apiKeysClickOnGenerateKeyTopButtonParams): LogObject<apiKeysClickOnGenerateKeyTopButtonParams> {\n return { evid: 205, src: 154, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'apiKeysClickOnGenerateKeyEmptyState' event (evid: 206)\n *\n * Event description: The event is sent when the user clicks on the '+ generate key' when he has an empty state - while the user has 0 keys\n *\n * @param {apiKeysClickOnGenerateKeyEmptyStateParams} params - The parameters for this event\n * @property {boolean} is_wix_employee - True if the user is wix employee\n * @property {boolean} is_premium - True if the user has at least 1 premium package\n * @property {number} number_sites - The number of sites in the account\n * @return {LogObject<apiKeysClickOnGenerateKeyEmptyStateParams>} LogObject<apiKeysClickOnGenerateKeyEmptyStateParams>\n */\nexport function apiKeysClickOnGenerateKeyEmptyState(params: apiKeysClickOnGenerateKeyEmptyStateParams): LogObject<apiKeysClickOnGenerateKeyEmptyStateParams> {\n return { evid: 206, src: 154, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'apiKeysClickOnViewApiReferences' event (evid: 207)\n *\n * Event description: The event is sent when the user clicks one of the 'view preference options.\n * main page top button, main page API button, main page top learn how to link, key page permissions links, key page learn more, key page top learn how to link, learn more - generate key completed window, learn more - rotate key request window, learn more - rotate key completed window\n *\n * @param {apiKeysClickOnViewApiReferencesParams} params - The parameters for this event\n * @property {string} button_type - Click on one of the API references button - main page top button, main page API button, main page top learn how to link, key page permissions links, key page learn more, key page top learn how to link, learn more - generate key completed window, learn more - rotate key request window, learn more - rotate key completed window\n * @property {string} page_name - The current page name - main page \\ key page\n * @property {boolean} is_wix_employee - True if the user is wix employee\n * @property {number} num_of_keys - The number of keys in the account\n * @property {boolean} is_premium - True if the user has at least 1 premium package\n * @property {number} number_sites - The number of sites in the account\n * @return {LogObject<apiKeysClickOnViewApiReferencesParams>} LogObject<apiKeysClickOnViewApiReferencesParams>\n */\nexport function apiKeysClickOnViewApiReferences(params: apiKeysClickOnViewApiReferencesParams): LogObject<apiKeysClickOnViewApiReferencesParams> {\n return { evid: 207, src: 154, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'apiKeysClickOnCopyAccountId' event (evid: 208)\n *\n * Event description: The event is sent when the user clicks on the copy account ID button\n *\n * @param {apiKeysClickOnCopyAccountIdParams} params - The parameters for this event\n * @property {boolean} is_wix_employee - True if the user is wix employee\n * @property {number} num_of_keys - The number of keys in the account\n * @property {boolean} is_premium - True if the user has at least 1 premium package\n * @property {number} number_sites - The number of sites in the account\n * @return {LogObject<apiKeysClickOnCopyAccountIdParams>} LogObject<apiKeysClickOnCopyAccountIdParams>\n */\nexport function apiKeysClickOnCopyAccountId(params: apiKeysClickOnCopyAccountIdParams): LogObject<apiKeysClickOnCopyAccountIdParams> {\n return { evid: 208, src: 154, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'apiKeysStartEditKey' event (evid: 209)\n *\n * Event description: The event is sent when the user clicks on verify & save changes, to start editing a key\n *\n * @param {apiKeysStartEditKeyParams} params - The parameters for this event\n * @property {string} old_key_permissions - The old permissions for the key\n * @property {string} new_key_name - The new api key name\n * @property {string} change_taken - The type of change taken - name\\permisions\\null\n * @property {string} key_id - The current app ID\n * @property {string} old_key_name - The old api name\n * @property {boolean} is_wix_employee - True if the user is wix employee\n * @property {number} num_of_keys - The number of keys in the account\n * @property {string} new_key_permissions - The new permissions for the key\n * @property {boolean} is_premium - True if the user has at least 1 premium package\n * @property {number} number_sites - The number of sites in the account\n * @return {LogObject<apiKeysStartEditKeyParams>} LogObject<apiKeysStartEditKeyParams>\n */\nexport function apiKeysStartEditKey(params: apiKeysStartEditKeyParams): LogObject<apiKeysStartEditKeyParams> {\n return { evid: 209, src: 154, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'apiKeysFinishEditKey' event (evid: 210)\n *\n * Event description: The event is sent when a key is finished the editing process, regardless it was a success or not\n *\n * @param {apiKeysFinishEditKeyParams} params - The parameters for this event\n * @property {number} time_to_edit - The time it took to edit the key in ms (from evid 209 start edit key)\n * @property {string} failure_reason - The reason for the failure, can be empty\n * @property {string} old_key_permissions - The old permissions for the key\n * @property {string} new_key_name - The new api key name\n * @property {string} change_taken - The type of change taken - name\\permisions\\null\n * @property {string} key_id - The current app ID\n * @property {string} old_key_name - The old api name\n * @property {boolean} is_wix_employee - True if the user is wix employee\n * @property {number} num_of_keys - The number of keys in the account\n * @property {string} new_key_permissions - The new permissions for the key\n * @property {boolean} was_success - True if the key was edited successfully\n * @property {boolean} is_premium - True if the user has at least 1 premium package\n * @property {number} number_sites - The number of sites in the account\n * @return {LogObject<apiKeysFinishEditKeyParams>} LogObject<apiKeysFinishEditKeyParams>\n */\nexport function apiKeysFinishEditKey(params: apiKeysFinishEditKeyParams): LogObject<apiKeysFinishEditKeyParams> {\n return { evid: 210, src: 154, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'apiKeysStartDuplicateKey' event (evid: 211)\n *\n * Event description: The event is sent when the user clicks on verify & save changes, to start duplicating a key\n *\n * @param {apiKeysStartDuplicateKeyParams} params - The parameters for this event\n * @property {string} duplicated_key_permissions - The permissions of the key that was duplicated\n * @property {string} change_taken - The type of change taken - name\\permisions\\null\n * @property {string} duplicated_key_id - The id of the key that was duplicated\n * @property {boolean} is_wix_employee - True if the user is wix employee\n * @property {number} num_of_keys - The number of keys in the account\n * @property {string} duplicated_key_name - The name of the key that was duplicated\n * @property {string} key_permissions - The chosen permissions for the key\n * @property {boolean} is_premium - True if the user has at least 1 premium package\n * @property {string} key_name - The current api name\n * @property {number} number_sites - The number of sites in the account\n * @return {LogObject<apiKeysStartDuplicateKeyParams>} LogObject<apiKeysStartDuplicateKeyParams>\n */\nexport function apiKeysStartDuplicateKey(params: apiKeysStartDuplicateKeyParams): LogObject<apiKeysStartDuplicateKeyParams> {\n return { evid: 211, src: 154, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'apiKeysFinishDuplicateKey' event (evid: 212)\n *\n * Event description: The event is sent when a key is finished the duplicating process, regardless it was a success or not\n *\n * @param {apiKeysFinishDuplicateKeyParams} params - The parameters for this event\n * @property {string} failure_reason - The reason for the failure, can be empty\n * @property {string} app_def_id - the app_def_id of the key\n * @property {string} duplicated_key_permissions - The permissions of the key that was duplicated\n * @property {string} change_taken - The type of change taken - name\\permisions\\null\n * @property {string} duplicated_key_id - The id of the key that was duplicated\n * @property {number} time_to_duplicate - The time it took to duplicate the key in ms (from evid 2011 start duplicate key)\n * @property {string} key_id - The current api key ID\n * @property {boolean} is_wix_employee - True if the user is wix employee\n * @property {number} num_of_keys - The number of keys in the account\n * @property {string} duplicated_key_name - The name of the key that was duplicated\n * @property {string} key_permissions - The chosen permissions for the key\n * @property {boolean} was_success - True if the key was duplicated successfully\n * @property {boolean} is_premium - True if the user has at least 1 premium package\n * @property {string} key_name - The current api name\n * @property {number} number_sites - The number of sites in the account\n * @return {LogObject<apiKeysFinishDuplicateKeyParams>} LogObject<apiKeysFinishDuplicateKeyParams>\n */\nexport function apiKeysFinishDuplicateKey(params: apiKeysFinishDuplicateKeyParams): LogObject<apiKeysFinishDuplicateKeyParams> {\n return { evid: 212, src: 154, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'apiKeysStartRotateKey' event (evid: 213)\n *\n * Event description: The event is sent when the user clicks on validate & rotate key, to start rotate a key\n *\n * @param {apiKeysStartRotateKeyParams} params - The parameters for this event\n * @property {string} key_id - The current api ID\n * @property {boolean} is_wix_employee - True if the user is wix employee\n * @property {number} num_of_keys - The number of keys in the account\n * @property {string} key_permissions - The chosen permissions for the key\n * @property {boolean} is_premium - True if the user has at least 1 premium package\n * @property {string} key_name - The current api name\n * @property {number} number_sites - The number of sites in the account\n * @return {LogObject<apiKeysStartRotateKeyParams>} LogObject<apiKeysStartRotateKeyParams>\n */\nexport function apiKeysStartRotateKey(params: apiKeysStartRotateKeyParams): LogObject<apiKeysStartRotateKeyParams> {\n return { evid: 213, src: 154, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'apiKeysFinishRotateKey' event (evid: 214)\n *\n * Event description: The event is sent when a key is finished the rotate process, regardless it was a success or not\n *\n * @param {apiKeysFinishRotateKeyParams} params - The parameters for this event\n * @property {string} failure_reason - The reason for the failure, can be empty\n * @property {number} time_to_rotate - The time it took to rotate the key in ms (from evid 2013 start rotate key)\n * @property {string} key_id - The current api ID\n * @property {boolean} is_wix_employee - True if the user is wix employee\n * @property {number} num_of_keys - The number of keys in the account\n * @property {string} key_permissions - The chosen permissions for the key\n * @property {boolean} was_success - True if the key was rotated successfully\n * @property {boolean} is_premium - True if the user has at least 1 premium package\n * @property {string} key_name - The current api name\n * @property {number} number_sites - The number of sites in the account\n * @return {LogObject<apiKeysFinishRotateKeyParams>} LogObject<apiKeysFinishRotateKeyParams>\n */\nexport function apiKeysFinishRotateKey(params: apiKeysFinishRotateKeyParams): LogObject<apiKeysFinishRotateKeyParams> {\n return { evid: 214, src: 154, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'apiKeysStartDeleteKey' event (evid: 215)\n *\n * Event description: The event is sent when the user clicks on verify & delete key, to start delete a key\n *\n * @param {apiKeysStartDeleteKeyParams} params - The parameters for this event\n * @property {string} key_id - The current api ID\n * @property {boolean} is_wix_employee - True if the user is wix employee\n * @property {number} num_of_keys - The number of keys in the account\n * @property {string} key_permissions - The chosen permissions for the key\n * @property {boolean} is_premium - True if the user has at least 1 premium package\n * @property {string} key_name - The current api name\n * @property {number} number_sites - The number of sites in the account\n * @return {LogObject<apiKeysStartDeleteKeyParams>} LogObject<apiKeysStartDeleteKeyParams>\n */\nexport function apiKeysStartDeleteKey(params: apiKeysStartDeleteKeyParams): LogObject<apiKeysStartDeleteKeyParams> {\n return { evid: 215, src: 154, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'apiKeysFinishDeleteKey' event (evid: 216)\n *\n * Event description: The event is sent when a key is finished the delete process, regardless it was a success or not\n *\n * @param {apiKeysFinishDeleteKeyParams} params - The parameters for this event\n * @property {string} failure_reason - The reason for the failure, can be empty\n * @property {number} time_to_delete - The time it took to delete the key in ms (from evid 2015 start delete key)\n * @property {string} key_id - The current api ID\n * @property {boolean} is_wix_employee - True if the user is wix employee\n * @property {number} num_of_keys - The number of keys in the account\n * @property {string} key_permissions - The chosen permissions for the key\n * @property {boolean} was_success - True if the key was deleted successfully\n * @property {boolean} is_premium - True if the user has at least 1 premium package\n * @property {string} key_name - The current api name\n * @property {number} number_sites - The number of sites in the account\n * @return {LogObject<apiKeysFinishDeleteKeyParams>} LogObject<apiKeysFinishDeleteKeyParams>\n */\nexport function apiKeysFinishDeleteKey(params: apiKeysFinishDeleteKeyParams): LogObject<apiKeysFinishDeleteKeyParams> {\n return { evid: 216, src: 154, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'apiKeysClickOnSendCode' event (evid: 217)\n *\n * Event description: The event is sent when the user clicks on send code button, for the next actions - generate \\ edit \\ duplicate \\ rotate \\ delete\n *\n * @param {apiKeysClickOnSendCodeParams} params - The parameters for this event\n * @property {number} request_number - Running number of the send code request, for this api key\n * @property {string} key_id - The current api ID, will be null if it is duplicate \\ generate action\n * @property {boolean} is_wix_employee - True if the user is wix employee\n * @property {number} num_of_keys - The number of keys in the account\n * @property {string} key_permissions - The chosen permissions for the key\n * @property {string} request_id - The unique request id, same as the request id for identity and email marketing\n * @property {boolean} is_premium - True if the user has at least 1 premium package\n * @property {string} key_name - The current api name\n * @property {string} action - The action the user is doing - generate \\ edit \\ duplicate \\ rotate \\ delete\n * @property {number} number_sites - The number of sites in the account\n * @return {LogObject<apiKeysClickOnSendCodeParams>} LogObject<apiKeysClickOnSendCodeParams>\n */\nexport function apiKeysClickOnSendCode(params: apiKeysClickOnSendCodeParams): LogObject<apiKeysClickOnSendCodeParams> {\n return { evid: 217, src: 154, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'apiKeysClickOnSendCodeAgain' event (evid: 218)\n *\n * Event description: The event is sent when the user clicks on send code again button, for the next actions - generate \\ edit \\ duplicate \\ rotate \\ delete\n *\n * @param {apiKeysClickOnSendCodeAgainParams} params - The parameters for this event\n * @property {string} key_id - The current api ID, will be null if it is duplicate \\ generate action\n * @property {boolean} is_wix_employee - True if the user is wix employee\n * @property {number} num_of_keys - The number of keys in the account\n * @property {string} key_permissions - The chosen permissions for the key\n * @property {boolean} is_premium - True if the user has at least 1 premium package\n * @property {string} key_name - The current api name\n * @property {string} action - The action the user is doing - generate \\ edit \\ duplicate \\ rotate \\ delete\n * @property {number} number_sites - The number of sites in the account\n * @return {LogObject<apiKeysClickOnSendCodeAgainParams>} LogObject<apiKeysClickOnSendCodeAgainParams>\n */\nexport function apiKeysClickOnSendCodeAgain(params: apiKeysClickOnSendCodeAgainParams): LogObject<apiKeysClickOnSendCodeAgainParams> {\n return { evid: 218, src: 154, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'apiKeysClickOnOauthPageLink' event (evid: 227)\n *\n * Event description: The event is sent when the user clicks on OAuth page link\n *\n * @param {apiKeysClickOnOauthPageLinkParams} params - The parameters for this event\n * @property {number} num_of_keys - The number of keys in the account\n * @return {LogObject<apiKeysClickOnOauthPageLinkParams>} LogObject<apiKeysClickOnOauthPageLinkParams>\n */\nexport function apiKeysClickOnOauthPageLink(params: apiKeysClickOnOauthPageLinkParams): LogObject<apiKeysClickOnOauthPageLinkParams> {\n return { evid: 227, src: 154, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'triggerValueWasSelected' event (evid: 400)\n *\n * Event description: The event will be sent any time the user selects a trigger value in zapier creation flow\n *\n * @param {triggerValueWasSelectedParams} params - The parameters for this event\n * @property {string} triggerValues - A json of the trigger that was selected earlier\n * @property {boolean} isAppInstall - True if the app install at the site\n * @property {string} appName - The name of the app that was chosen (for example - booking)\n * @property {GUID} uuid - The uuid that made the action\n * @property {string} fieldLabel - The lable of the field that the user changed\n * @property {string} fieldValue - The value of the field that the user selected\n * @property {string} groupName - The name of the group that was chosen (for example - sub category of booking)\n * @property {string} appId - The guid of the app that was chosen (for example - booking guid)\n * @property {GUID} msid - The guid of the site\n * @return {LogObject<triggerValueWasSelectedParams>} LogObject<triggerValueWasSelectedParams>\n */\nexport function triggerValueWasSelected(params: triggerValueWasSelectedParams): LogObject<triggerValueWasSelectedParams> {\n return { evid: 400, src: 154, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'zapierTestDataClick' event (evid: 401)\n *\n * Event description: The event will be sent any time the user test a zap in zapier\n *\n * @param {zapierTestDataClickParams} params - The parameters for this event\n * @property {string} triggerValues - A json of the trigger that was selected earlier\n * @property {boolean} isAppInstall - True if the app install at the site\n * @property {string} appName - The name of the app that was chosen (for example - booking)\n * @property {GUID} uuid - The uuid that made the action\n * @property {string} groupName - The name of the group that was chosen (for example - sub category of booking)\n * @property {string} appId - The guid of the app that was chosen (for example - booking guid)\n * @property {GUID} msid - The guid of the site\n * @return {LogObject<zapierTestDataClickParams>} LogObject<zapierTestDataClickParams>\n */\nexport function zapierTestDataClick(params: zapierTestDataClickParams): LogObject<zapierTestDataClickParams> {\n return { evid: 401, src: 154, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'zapierCustomZapCreatedOrDeleted' event (evid: 402)\n *\n * Event description: the event will be sent when a custom zap was created or deleted from the zapier website.\n *\n * @param {zapierCustomZapCreatedOrDeletedParams} params - The parameters for this event\n * @property {string} ruleId - The rule id\n * @property {string} zapId - The zap id\n * @property {string} action - Detele / Cerate\n * @return {LogObject<zapierCustomZapCreatedOrDeletedParams>} LogObject<zapierCustomZapCreatedOrDeletedParams>\n */\nexport function zapierCustomZapCreatedOrDeleted(params: zapierCustomZapCreatedOrDeletedParams): LogObject<zapierCustomZapCreatedOrDeletedParams> {\n return { evid: 402, src: 154, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'headlessMigrationTourModalShown' event (evid: 8)\n *\n * Event description: The event will be sent each time the migration-tour-modal will be shown - so we will not show it twice per user (using active group)\n *\n * @param {headlessMigrationTourModalShownParams} params - The parameters for this event\n * @return {LogObject<headlessMigrationTourModalShownParams>} LogObject<headlessMigrationTourModalShownParams>\n */\nexport function headlessMigrationTourModalShown(params: headlessMigrationTourModalShownParams): LogObject<headlessMigrationTourModalShownParams> {\n return { evid: 8, src: 154, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'webhooksDispatcherResponseChannelTopicSrc155Evid3' event (evid: 3)\n *\n * Event description: Webhooks dispatcher response channel topic\n *\n * @param {webhooksDispatcherResponseChannelTopicSrc155Evid3Params} params - The parameters for this event\n * @property {string} topic - The webhook topic\n * @property {string} callbackUrl - The callback Url\n * @property {GUID} appDefId - the app def id made the call\n * @property {DateTime} kafkaTime - timestamp of the original kafka message\n * @property {number} retryNumber - retry attempt (the first one should be 0)\n * @property {string} statusCode - responded tatus code\n * @property {number} responseTime - time to response in ms\n * @property {DateTime} webhookTime - timestamp of firing the webhook\n * @property {string} originalTimestamp - The originalTimestamp\n * @property {string} retryAttempt - retryAttempt\n * @property {string} responseDuration - responseDuration\n * @return {LogObject<webhooksDispatcherResponseChannelTopicSrc155Evid3Params>} LogObject<webhooksDispatcherResponseChannelTopicSrc155Evid3Params>\n */\nexport function webhooksDispatcherResponseChannelTopicSrc155Evid3(params: webhooksDispatcherResponseChannelTopicSrc155Evid3Params): LogObject<webhooksDispatcherResponseChannelTopicSrc155Evid3Params> {\n return { evid: 3, src: 155, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'graphqlCall' event (evid: 400)\n *\n * Event description: The event will be sent when there is a GraphQL call\n *\n * @param {graphqlCallParams} params - The parameters for this event\n * @property {string} client_artifact_id - The artifact that was making the call\n * @property {string} operation_type - query / mutation\n * @property {GUID} metasiteId - msid of the site\n * @property {string} entity_call_breakdown - { \"fqdn1\": { \"method1\": [\"field_1\", \"field_2\"] \"method2\": [\"field_3\", \"field_4\"] ... }\n * @property {string} source_type - headless/ TPA/ Internal site / Internal App\n * @property {GUID} appDefId - the app guid\n * @property {string} schema_name - The schema name - Internal / external / demo\n * @property {string} origin_url - The source url\n * @property {number} time_to_resolve - The time it takes to the resolver to obtain answer, in ms\n * @property {boolean} is_success - True if the call succeeded\n * @return {LogObject<graphqlCallParams>} LogObject<graphqlCallParams>\n */\nexport function graphqlCall(params: graphqlCallParams): LogObject<graphqlCallParams> {\n return { evid: 400, src: 155, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'autoVeloSiteCallForAMethod' event (evid: 401)\n *\n * Event description: The event is sent when the server gets a call for a method, from a site\n *\n * @param {autoVeloSiteCallForAMethodParams} params - The parameters for this event\n * @property {string} http_code - The http code for this call - 200\\404\\..\n * @property {string} api_owner - The API owner (company)\n * @property {string} failure_reason - The reason for the failure, can be empty\n * @property {string} service_name - The name of the service of the method\n * @property {string} entity_name - The FQDN of the entity\n * @property {string} environment - The type of development - front-end \\ back-end\n * @property {string} module_name - The module name of the entity - edm name\n * @property {string} method_name - The name of the method that was in use\n * @property {string} msid - The msid of the site that made the call\n * @return {LogObject<autoVeloSiteCallForAMethodParams>} LogObject<autoVeloSiteCallForAMethodParams>\n */\nexport function autoVeloSiteCallForAMethod(params: autoVeloSiteCallForAMethodParams): LogObject<autoVeloSiteCallForAMethodParams> {\n return { evid: 401, src: 155, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'appsSettingsDeletionCandidate' event (evid: 700)\n *\n * Event description: Apps Settings - Deletion Candidate.\n *\n * @param {appsSettingsDeletionCandidateParams} params - The parameters for this event\n * @property {GUID} instance - .\n * @property {GUID} external_id - .\n * @property {GUID} app_id - .\n * @return {LogObject<appsSettingsDeletionCandidateParams>} LogObject<appsSettingsDeletionCandidateParams>\n */\nexport function appsSettingsDeletionCandidate(params: appsSettingsDeletionCandidateParams): LogObject<appsSettingsDeletionCandidateParams> {\n return { evid: 700, src: 155, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'settingsAccess' event (evid: 800)\n *\n * Event description: Settings Access.\n *\n * @param {settingsAccessParams} params - The parameters for this event\n * @property {GUID} instance - .\n * @property {GUID} external_id - .\n * @property {GUID} app_id - .\n * @return {LogObject<settingsAccessParams>} LogObject<settingsAccessParams>\n */\nexport function settingsAccess(params: settingsAccessParams): LogObject<settingsAccessParams> {\n return { evid: 800, src: 155, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'apiBlockGaRule' event (evid: 801)\n *\n * Event description: The event will be sent when an API is blocked GA rule/passed it - the API is blocked due to not following the rule condition\n *\n * @param {apiBlockGaRuleParams} params - The parameters for this event\n * @property {string} fqdn - The fqdn that was blocked\n * @property {boolean} isBlocked - True if the API was blocked\n * @property {string} method - The API method (function)\n * @property {string} namespace - The namespace of the method\n * @property {string} blockReason - If the API was blocked - the block reason\n * @property {string} serviceArtifactId - the service artifact id\n * @return {LogObject<apiBlockGaRuleParams>} LogObject<apiBlockGaRuleParams>\n */\nexport function apiBlockGaRule(params: apiBlockGaRuleParams): LogObject<apiBlockGaRuleParams> {\n return { evid: 801, src: 155, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'headlessAddWixToYourProjectDialogIsShown' event (evid: 13)\n *\n * Event description: reported when user clicks to open \u2018Add Wix to your Project\u2019 dialog from Vercel/Netlify\n *\n * @param {headlessAddWixToYourProjectDialogIsShownParams} params - The parameters for this event\n * @property {string} provider - Netlify/Vercel\n * @property {string} business_type - The Business type that was chosen, relevant only for Netlify\n * @property {string} template_id - The template ID that was chosen, relevant only for Netlify\n * @return {LogObject<headlessAddWixToYourProjectDialogIsShownParams>} LogObject<headlessAddWixToYourProjectDialogIsShownParams>\n */\nexport function headlessAddWixToYourProjectDialogIsShown(params: headlessAddWixToYourProjectDialogIsShownParams): LogObject<headlessAddWixToYourProjectDialogIsShownParams> {\n return { evid: 13, src: 160, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'headlessOAuthInstalled' event (evid: 15)\n *\n * Event description: reported when the user approve the app market dialog and an OAuth installed and redirect to Netlify/Vercel - the funnel was finished successfuly\n *\n * @param {headlessOAuthInstalledParams} params - The parameters for this event\n * @property {string} source - New to Wix / Existing Wix Business\n * @property {string} provider - Netlify/Vercel\n * @property {string} business_type - The Business type that was chosen, relevant only for Netlify\n * @property {string} template_id - The template ID that was chosen, relevant only for Netlify\n * @return {LogObject<headlessOAuthInstalledParams>} LogObject<headlessOAuthInstalledParams>\n */\nexport function headlessOAuthInstalled(params: headlessOAuthInstalledParams): LogObject<headlessOAuthInstalledParams> {\n return { evid: 15, src: 160, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'headlessAddWixToYourProjectDialogClick' event (evid: 16)\n *\n * Event description: reported when user clicks on any button at the \u2018Add Wix to your Project\u2019 dialog from Vercel/Netlify\n *\n * @param {headlessAddWixToYourProjectDialogClickParams} params - The parameters for this event\n * @property {string} provider - Netlify/Vercel\n * @property {GUID} uuid - The uuid of the user\n * @property {GUID} client_id - client_id\n * @property {string} cta - Sign Up / Login / watch video\n * @property {string} business_type - The Business type that was chosen, relevant only for Netlify\n * @property {string} template_id - The template ID that was chosen, relevant only for Netlify\n * @return {LogObject<headlessAddWixToYourProjectDialogClickParams>} LogObject<headlessAddWixToYourProjectDialogClickParams>\n */\nexport function headlessAddWixToYourProjectDialogClick(params: headlessAddWixToYourProjectDialogClickParams): LogObject<headlessAddWixToYourProjectDialogClickParams> {\n return { evid: 16, src: 160, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'headlessDeployThisTemplatePageIsShown' event (evid: 17)\n *\n * Event description: reported when the deploy this template page is shown\n *\n * @param {headlessDeployThisTemplatePageIsShownParams} params - The parameters for this event\n * @property {string} business_type - The Business type that was chosen, relevant only for Netlify\n * @property {string} template_id - The template ID that was chosen, relevant only for Netlify\n * @return {LogObject<headlessDeployThisTemplatePageIsShownParams>} LogObject<headlessDeployThisTemplatePageIsShownParams>\n */\nexport function headlessDeployThisTemplatePageIsShown(params: headlessDeployThisTemplatePageIsShownParams): LogObject<headlessDeployThisTemplatePageIsShownParams> {\n return { evid: 17, src: 160, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'headlessDeployThisTemplatePageClick' event (evid: 18)\n *\n * Event description: reported when the user clicks on any cta at the deploy this template page\n *\n * @param {headlessDeployThisTemplatePageClickParams} params - The parameters for this event\n * @property {string} provider - Netlify / Vercel, will be sent only when the cta is continue\n * @property {string} cta - Deploy to Netlify / Deploy to Vercel / Continue / View Template Repo\n * @property {string} business_type - The Business type that was chosen, relevant only for Netlify\n * @property {string} template_id - The template ID that was chosen, relevant only for Netlify\n * @return {LogObject<headlessDeployThisTemplatePageClickParams>} LogObject<headlessDeployThisTemplatePageClickParams>\n */\nexport function headlessDeployThisTemplatePageClick(params: headlessDeployThisTemplatePageClickParams): LogObject<headlessDeployThisTemplatePageClickParams> {\n return { evid: 18, src: 160, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'headlessResumeSetUpDialogIsShown' event (evid: 19)\n *\n * Event description: reported when user clicks to open \u2018Resume Set Up dialog from Vercel/Netlify\n *\n * @param {headlessResumeSetUpDialogIsShownParams} params - The parameters for this event\n * @property {string} provider - Netlify/Vercel\n * @property {string} business_type - The Business type that was chosen, relevant only for Netlify\n * @property {string} template_id - The template ID that was chosen, relevant only for Netlify\n * @return {LogObject<headlessResumeSetUpDialogIsShownParams>} LogObject<headlessResumeSetUpDialogIsShownParams>\n */\nexport function headlessResumeSetUpDialogIsShown(params: headlessResumeSetUpDialogIsShownParams): LogObject<headlessResumeSetUpDialogIsShownParams> {\n return { evid: 19, src: 160, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'copyOfHeadlessResumeSetUpDialogClick' event (evid: 20)\n *\n * Event description: reported when user clicks on any button at the \u2018Resume Set Up\u2019 dialog from Vercel/Netlify\n *\n * @param {copyOfHeadlessResumeSetUpDialogClickParams} params - The parameters for this event\n * @property {string} provider - Netlify/Vercel\n * @property {string} cta - Resume / Cancle\n * @property {string} business_type - The Business type that was chosen, relevant only for Netlify\n * @property {string} template_id - The template ID that was chosen, relevant only for Netlify\n * @return {LogObject<copyOfHeadlessResumeSetUpDialogClickParams>} LogObject<copyOfHeadlessResumeSetUpDialogClickParams>\n */\nexport function copyOfHeadlessResumeSetUpDialogClick(params: copyOfHeadlessResumeSetUpDialogClickParams): LogObject<copyOfHeadlessResumeSetUpDialogClickParams> {\n return { evid: 20, src: 160, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'testSrc184Evid9999' event (evid: 9999)\n *\n * Event description: test\n *\n * @param {testSrc184Evid9999Params} params - The parameters for this event\n * @return {LogObject<testSrc184Evid9999Params>} LogObject<testSrc184Evid9999Params>\n */\nexport function testSrc184Evid9999(params: testSrc184Evid9999Params): LogObject<testSrc184Evid9999Params> {\n return { evid: 9999, src: 184, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'wixMcpRequestSrc39Evid1607' event (evid: 1607)\n *\n * Event description: Fires when a user runs a query through the Wix MCP, capturing activity at the tool execution level.\n *\n *\n *\n * @param {wixMcpRequestSrc39Evid1607Params} params - The parameters for this event\n * @property {string} sessionId - the relevant session_id (multiple questions in a session)\n * @property {string} queryId - the request id (per user question - many to one with session)\n * @property {string} toolInvocationId - the tool execution id (per tool execution - many to one with user question)\n *\n * @property {string} query - the actual user query string being passed (prompt)\n * @property {string} toolName - The name of the MCP tool that was triggered\n * @property {string} params - the params sent in the tool invocation\n * @property {string} origin - relevant source/agent calling the MCP server (remote/local/picasso)\n * @property {number} duration - duration time per execution (ms)\n * @property {string} executionResult - Success/Error (defined by the tool)\n * @property {string} errorBody - for cases where the execution result was an error\n * @return {LogObject<wixMcpRequestSrc39Evid1607Params>} LogObject<wixMcpRequestSrc39Evid1607Params>\n */\nexport function wixMcpRequestSrc39Evid1607(params: wixMcpRequestSrc39Evid1607Params): LogObject<wixMcpRequestSrc39Evid1607Params> {\n return { evid: 1607, src: 39, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'webhooksInDcCodeExampleWindowClicks' event (evid: 11905)\n *\n * Event description: The event will be sent on any click at the code example window at the webhooks page in DC \n *\n * @param {webhooksInDcCodeExampleWindowClicksParams} params - The parameters for this event\n * @property {string} codeType - node.sj / etc... - what was chosen when the user clicked on the cta\n * @property {string} webhookApiCategory - The API category that the user is currently works on\n * @property {string} webhookEventType - The event type that the user is currently works on\n * @property {string} webhookSlug - The webhook_slug that the user is currently works on\n * @property {string} cta - The click name that the user clicked on (X, node.js, copy, etc))\n * @property {string} displayType - side bar / modal\n * @property {string} extra_values - Any extra value. for example - when the user chose a different lang, it will sent the lan that was choosen. can be null.\n * @return {LogObject<webhooksInDcCodeExampleWindowClicksParams>} LogObject<webhooksInDcCodeExampleWindowClicksParams>\n */\nexport function webhooksInDcCodeExampleWindowClicks(params: webhooksInDcCodeExampleWindowClicksParams): LogObject<webhooksInDcCodeExampleWindowClicksParams> {\n return { evid: 11905, src: 96, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'webhooksInDcTriggeredTestModalClicks' event (evid: 11906)\n *\n * Event description: The event will be sent on any click at the triggered test modal at the webhooks page in DC \n *\n * @param {webhooksInDcTriggeredTestModalClicksParams} params - The parameters for this event\n * @property {string} cta - The click name that the user clicked on (copy / close / X)\n * @property {string} webhookApiCategory - The API category that the user is currently works on\n * @property {string} webhookEventType - The event type that the user is currently works on\n * @property {string} webhookSlug - The webhook_slug that the user is currently works on\n * @return {LogObject<webhooksInDcTriggeredTestModalClicksParams>} LogObject<webhooksInDcTriggeredTestModalClicksParams>\n */\nexport function webhooksInDcTriggeredTestModalClicks(params: webhooksInDcTriggeredTestModalClicksParams): LogObject<webhooksInDcTriggeredTestModalClicksParams> {\n return { evid: 11906, src: 96, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'webhooksInDcCodeExampleWindowScroll' event (evid: 11907)\n *\n * Event description: The event will be sent a scroll at the code example window at the webhooks page in DC \n *\n * @param {webhooksInDcCodeExampleWindowScrollParams} params - The parameters for this event\n * @property {string} codeType - node.sj / etc... - what was chosen when the user clicked on the cta\n * @property {string} webhookApiCategory - The API category that the user is currently works on\n * @property {string} webhookEventType - The event type that the user is currently works on\n * @property {string} webhookSlug - The webhook_slug that the user is currently works on\n * @property {string} scrollType - vertical/horizontal\n * @property {string} displayType - side bar / modal\n * @return {LogObject<webhooksInDcCodeExampleWindowScrollParams>} LogObject<webhooksInDcCodeExampleWindowScrollParams>\n */\nexport function webhooksInDcCodeExampleWindowScroll(params: webhooksInDcCodeExampleWindowScrollParams): LogObject<webhooksInDcCodeExampleWindowScrollParams> {\n return { evid: 11907, src: 96, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'webhooksInDcCreateEventPageClicks' event (evid: 11908)\n *\n * Event description: The event will be sent on any click at the create event page at the webhooks page in DC \n *\n * @param {webhooksInDcCreateEventPageClicksParams} params - The parameters for this event\n * @property {string} webhookApiCategory - The API category that the user is currently works on\n * @property {string} webhookEventType - The event type that the user is currently works on\n * @property {string} webhookSlug - The webhook_slug that the user is currently works on\n * @property {string} cta - The click name that the user clicked on (code sample / trigger test / view guide / api reference)\n * @return {LogObject<webhooksInDcCreateEventPageClicksParams>} LogObject<webhooksInDcCreateEventPageClicksParams>\n */\nexport function webhooksInDcCreateEventPageClicks(params: webhooksInDcCreateEventPageClicksParams): LogObject<webhooksInDcCreateEventPageClicksParams> {\n return { evid: 11908, src: 96, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'webhooksInDcMainPageClicks' event (evid: 12301)\n *\n * Event description: The event will be sent on any click at the webhooks main page in DC \n *\n * @param {webhooksInDcMainPageClicksParams} params - The parameters for this event\n * @property {string} webhookApiCategory - The API category that the user is currently works on\n * @property {string} webhookEventType - The event type that the user is currently works on\n * @property {string} clickType - Navigation, action, expend, colapsed\n * @property {string} location - popover, top, bottom, table\n * @property {string} clickName - the name of the button that was clicked\n * @property {string} pageViewType - webhook list / webhook log\n * @return {LogObject<webhooksInDcMainPageClicksParams>} LogObject<webhooksInDcMainPageClicksParams>\n */\nexport function webhooksInDcMainPageClicks(params: webhooksInDcMainPageClicksParams): LogObject<webhooksInDcMainPageClicksParams> {\n return { evid: 12301, src: 96, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'devCenterWebhookSentTriggered' event (evid: 1300)\n *\n * Event description: Dev Center - Webhook - Sent / Triggered\n *\n * @param {devCenterWebhookSentTriggeredParams} params - The parameters for this event\n * @property {GUID} instanceId - guid\n * @property {GUID} webhookId - guid\n * @property {string} url - url\n * @property {string} httpMethod - http method\n * @property {string} webhookEventType - webhook_event_type\n * @property {string} responseStatus - response_status\n * @property {string} topic - topic\n * @property {GUID} appId - app id\n * @property {string} originalTimestamp - originalTimestamp\n * @property {string} retryAttempt - retryAttempt\n * @property {string} statusCode - statusCode\n * @property {string} responseDuration - responseDuration\n * @property {string} kafkaEventId - unique identifier for each kafka attempt\n * @property {string} KafkaWebhookId - unique id to each webhook call (if there are 2 attempts - 2 row with this id)\n * @property {string} startHandlingTimestamp - start_handling_timestamp. when the webhook dispatcher started to work on the message\n * @return {LogObject<devCenterWebhookSentTriggeredParams>} LogObject<devCenterWebhookSentTriggeredParams>\n */\nexport function devCenterWebhookSentTriggered(params: devCenterWebhookSentTriggeredParams): LogObject<devCenterWebhookSentTriggeredParams> {\n return { evid: 1300, src: 96, endpoint: '', params };\n}\n\n/**\n * A function to create a log object for the 'spiExternalInvocationSrc96Evid199' event (evid: 199)\n *\n * Event description: SPI external invocation - REST call only - TPAs.\n *\n * @param {spiExternalInvocationSrc96Evid199Params} params - The parameters for this event\n * @property {string} appId - The app id used the spi\n * @property {string} msid - The msid used the spi\n * @property {string} componentId - per unique app & component (there can be 2 same spis to the same app)\n * @property {string} componentType - spi identifier\n * @property {string} statusCode - the status_code of the invocation\n * @property {string} instanceId - The instance (msid+app_id) that trigger the spi\n * @property {string} responseDuration - in ms\n * @property {string} functionName - the action that the spi does\n * @property {string} appDefId - The app def id\n * @return {LogObject<spiExternalInvocationSrc96Evid199Params>} LogObject<spiExternalInvocationSrc96Evid199Params>\n */\nexport function spiExternalInvocationSrc96Evid199(params: spiExternalInvocationSrc96Evid199Params): LogObject<spiExternalInvocationSrc96Evid199Params> {\n return { evid: 199, src: 96, endpoint: '', params };\n}\n", "export enum AlertType {\n SuccessRate = 'SuccessRate',\n SuccessRateQuality = 'SuccessRateQuality',\n Duration = 'Duration',\n ErrorRate = 'ErrorRate',\n}\n\nexport enum AlertStatus { // lowercase, because that's how Grafana sends it\n Alerting = 'alerting',\n Ok = 'ok',\n}\n\nexport enum LogLevel {\n Info = 'INFO',\n Warn = 'WARN',\n Error = 'ERROR',\n Debug = 'DEBUG',\n}\n\nexport enum TransactionAction {\n Start = 'START',\n Finish = 'FINISH',\n}\n\nexport const InternalTransactions = {\n ComponentLoad: 'PANORAMA_COMPONENT_LOAD',\n ComponentPhase: 'PANORAMA_COMPONENT_PHASE',\n} as const;\n\nexport type PhaseName = string;\n\nexport enum Platform {\n Standalone = 'standalone',\n BusinessManager = 'business-manager',\n Viewer = 'viewer',\n Editor = 'editor',\n EditorSettings = 'editor:settings',\n Mobile = 'mobile',\n Standards = 'standards',\n}\n\n// This mirrors Sentry severity levels\nexport enum ErrorSeverity {\n Fatal = 'fatal',\n Error = 'error',\n Warning = 'warning',\n Log = 'log',\n Info = 'info',\n Debug = 'debug',\n Critical = 'critical',\n}\n", "\"use strict\";\n\nexports.__esModule = true;\n//# sourceMappingURL=data-types.js.map", "\"use strict\";\n\nexports.__esModule = true;\n//# sourceMappingURL=interface-types.js.map", "export * from './enum-types';\nexport * from './data-types';\nexport * from './interface-types';\n", "function _interopRequireDefault(e) {\n return e && e.__esModule ? e : {\n \"default\": e\n };\n}\nmodule.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;", "function _typeof(o) {\n \"@babel/helpers - typeof\";\n\n return module.exports = _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) {\n return typeof o;\n } : function (o) {\n return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o;\n }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports, _typeof(o);\n}\nmodule.exports = _typeof, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;", "var _typeof = require(\"./typeof.js\")[\"default\"];\nfunction toPrimitive(t, r) {\n if (\"object\" != _typeof(t) || !t) return t;\n var e = t[Symbol.toPrimitive];\n if (void 0 !== e) {\n var i = e.call(t, r || \"default\");\n if (\"object\" != _typeof(i)) return i;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (\"string\" === r ? String : Number)(t);\n}\nmodule.exports = toPrimitive, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;", "var _typeof = require(\"./typeof.js\")[\"default\"];\nvar toPrimitive = require(\"./toPrimitive.js\");\nfunction toPropertyKey(t) {\n var i = toPrimitive(t, \"string\");\n return \"symbol\" == _typeof(i) ? i : i + \"\";\n}\nmodule.exports = toPropertyKey, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;", "var toPropertyKey = require(\"./toPropertyKey.js\");\nfunction _defineProperty(e, r, t) {\n return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {\n value: t,\n enumerable: !0,\n configurable: !0,\n writable: !0\n }) : e[r] = t, e;\n}\nmodule.exports = _defineProperty, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;", "const DELIMITER = ' | ';\n\nexport interface DurationTracker {\n markTransactionStart(\n fullArtifactId: string,\n componentId: string,\n transactionName: string,\n transactionId?: number | string,\n ): void;\n\n markTransactionFinish(\n fullArtifactId: string,\n componentId: string,\n transactionName: string,\n transactionId?: number | string,\n ): number;\n\n markPhaseStart(\n fullArtifactId: string,\n componentId: string,\n phaseName: string,\n ): void;\n\n markPhaseFinish(\n fullArtifactId: string,\n componentId: string,\n phaseName: string,\n ): number;\n}\n\nclass DurationTrackerImpl implements DurationTracker {\n private transactionStartTimes: Record<string, number> = {};\n private phaseStartTimes: Record<string, number> = {};\n\n private createKey(...args: (number | string | undefined)[]) {\n return args.filter((x) => !!x).join(DELIMITER);\n }\n\n markTransactionStart(\n fullArtifactId: string,\n componentId: string,\n transactionName: string,\n transactionId?: number | string,\n ) {\n const key = this.createKey(\n fullArtifactId,\n componentId,\n transactionName,\n transactionId,\n );\n\n this.transactionStartTimes[key] = Date.now();\n }\n\n markTransactionFinish(\n fullArtifactId: string,\n componentId: string,\n transactionName: string,\n transactionId?: number | string,\n ) {\n const key = this.createKey(\n fullArtifactId,\n componentId,\n transactionName,\n transactionId,\n );\n const finishTime = Date.now();\n const startTime = this.transactionStartTimes[key] || finishTime;\n const duration = Math.round(finishTime - startTime);\n\n this.transactionStartTimes[key] = 0;\n\n return duration;\n }\n\n markPhaseStart(\n fullArtifactId: string,\n componentId: string,\n phaseName: string,\n ) {\n const key = this.createKey(fullArtifactId, componentId, phaseName);\n\n this.phaseStartTimes[key] = Date.now();\n }\n\n markPhaseFinish(\n fullArtifactId: string,\n componentId: string,\n phaseName: string,\n ) {\n const key = this.createKey(fullArtifactId, componentId, phaseName);\n const finishTime = Date.now();\n const startTime = this.phaseStartTimes[key] || finishTime;\n const duration = Math.round(finishTime - startTime);\n\n this.phaseStartTimes[key] = 0;\n\n return duration;\n }\n}\n\nexport const createDurationTracker = () => new DurationTrackerImpl();\n", "export {\n type DurationTracker,\n createDurationTracker,\n} from './duration-tracker';\n", "import { v4 } from 'uuid';\nimport type {\n EventPayload,\n BatchQueue,\n Reporter,\n} from '@wix/panorama-common-shared/types';\nimport {\n type DurationTracker,\n createDurationTracker,\n} from '../duration-tracker';\n\nexport interface GlobalConfig<\n Payload extends unknown = EventPayload,\n State extends Record<string, any> = {},\n> {\n getSessionId(): string;\n\n setSessionId(sessionId: string): void;\n\n getSessionTime(): number;\n\n getReporter(): Reporter<Payload> | null;\n\n setReporter(reporter: Reporter<Payload>): void;\n\n initBatchQueue(batchQueue: BatchQueue): void;\n\n getBatchQueue(): BatchQueue;\n\n getStateValue<K extends keyof State>(key: K): State[K];\n\n setStateValue<K extends keyof State>(key: K, value: State[K]): void;\n\n getDurationTracker(): DurationTracker;\n\n clearState(): void;\n}\n\nclass GlobalConfigImpl<\n Payload extends unknown = EventPayload,\n State extends Record<string, any> = {},\n> implements GlobalConfig<Payload, State>\n{\n private sessionId: string = '';\n private reporter: Reporter<Payload> | null = null;\n private batchQueue: BatchQueue | null = null;\n private durationTracker = createDurationTracker();\n private readonly state = new Map();\n private readonly sessionStart = Date.now();\n\n getSessionId() {\n this.sessionId = this.sessionId || v4();\n\n return this.sessionId;\n }\n\n setSessionId(sessionId: string) {\n this.sessionId = sessionId;\n }\n\n getSessionTime() {\n return Date.now() - this.sessionStart;\n }\n\n getReporter() {\n return this.reporter;\n }\n\n setReporter(reporter: Reporter<Payload>) {\n this.reporter = reporter;\n }\n\n initBatchQueue(batchQueue: BatchQueue) {\n this.batchQueue = this.batchQueue ?? batchQueue;\n }\n\n getBatchQueue(): BatchQueue {\n return this.batchQueue!;\n }\n\n getDurationTracker() {\n return this.durationTracker;\n }\n\n getStateValue<K extends keyof State>(key: K): State[K] {\n return this.state.get(key);\n }\n\n setStateValue<K extends keyof State>(key: K, value: State[K]) {\n this.state.set(key, value);\n }\n\n clearState() {\n this.state.clear();\n this.durationTracker = createDurationTracker();\n }\n}\n\nexport const createGlobalConfig = <\n Payload extends unknown = EventPayload,\n State extends Record<string, any> = {},\n>(): GlobalConfig<Payload, State> => new GlobalConfigImpl<Payload, State>();\n", "export { createGlobalConfig } from './global-config';\nexport type { GlobalConfig } from './global-config';\n", "export const bindPrototypeMethodsToSelf = (\n instance: any,\n classFn?: Function,\n) => {\n const prototype = classFn\n ? classFn.prototype\n : Object.getPrototypeOf(instance);\n\n const props = Object.getOwnPropertyNames(prototype);\n\n for (const prop of props) {\n if (prop === 'constructor' || typeof prototype[prop] !== 'function') {\n continue;\n }\n\n instance[prop] = prototype[prop].bind(instance);\n }\n};\n", "export * from './class-utils';\n", "export const last = (arr?: any[]) =>\n Array.isArray(arr) ? arr[arr.length - 1] : undefined;\n\nexport const union = <T>(...args: T[][]) => [...new Set(args.flat()).values()];\n\n/**\n * The reason spread operator is not used here is because of its behavior when passing an entry with undefined value explicitly:\n * const a = { hello: 'world' }\n * const b = {...a, hello: undefined }; // {hello: undefined}\n * We want to ignore the undefined value and use the defined value from the previous object instead.\n */\nexport const defaults = <T extends Record<string, any>>(\n ...args: (T | undefined)[]\n) =>\n args.reduce<T>(\n (res, obj) =>\n Object.entries(obj ?? {}).reduce((_res, [key, value]) => {\n if (typeof _res[key] === 'undefined' && typeof value !== 'undefined') {\n (_res as Record<string, any>)[key] = value;\n }\n\n return _res;\n }, res),\n {} as T,\n );\n\nexport const deepDefaults = <T extends Record<string, any>>(\n dest?: T,\n ...rest: (T | undefined)[]\n): T | undefined => {\n const keys = union<keyof T>(...rest.map((value) => Object.keys(value ?? {})));\n const all = [dest, ...rest];\n\n return keys.reduce<T | undefined>(\n (res, key) => {\n const values = all.map((value) => value?.[key]);\n const merged = defaults(...(values as [T[keyof T]]));\n\n const hasValues =\n Object.values(merged).filter((value) => typeof value !== 'undefined')\n .length > 0;\n\n if (hasValues) {\n res = res ?? ({} as T);\n res[key] = merged;\n } else {\n delete res?.[key];\n }\n\n return res;\n },\n dest ? { ...dest } : dest,\n );\n};\n", "import { bindPrototypeMethodsToSelf } from '@wix/panorama-common/utils';\nimport type { ErrorUserData } from '@wix/panorama-common-shared/types';\nimport type { Breadcrumb, ErrorMonitorOptions } from './types';\nimport { BasePanoramaClient } from './panorama-client-base';\n\nexport interface PanoramaErrorMonitor<T extends ErrorUserData> {\n reportError(error: Error, data?: T): void;\n\n addBreadcrumb(breadcrumb: Breadcrumb): void;\n}\n\nexport class PanoramaErrorMonitorImpl<T extends ErrorUserData> {\n constructor(\n private readonly baseClient: BasePanoramaClient,\n private readonly options?: ErrorMonitorOptions,\n ) {\n bindPrototypeMethodsToSelf(this);\n }\n\n reportError(error: Error, data?: T) {\n this.baseClient.reportError(error, data, this.options);\n }\n\n addBreadcrumb(breadcrumb: Breadcrumb) {\n this.baseClient.addBreadcrumb(breadcrumb);\n }\n}\n", "import { bindPrototypeMethodsToSelf } from '@wix/panorama-common/utils';\nimport { BasePanoramaClient } from './panorama-client-base';\nimport { LogLevel } from '@wix/panorama-common-shared/types';\n\nexport interface PanoramaLogger {\n info(message: string, data?: Record<string, any>): void;\n\n warn(message: string, data?: Record<string, any>): void;\n\n error(message: string, data?: Record<string, any>): void;\n\n debug(message: string, data?: Record<string, any>): void;\n}\n\nexport class PanoramaLoggerImpl implements PanoramaLogger {\n constructor(private readonly baseClient: BasePanoramaClient) {\n bindPrototypeMethodsToSelf(this);\n }\n\n public info(message: string, data?: Record<string, any>): void {\n this.baseClient.log(LogLevel.Info, message, data);\n }\n\n public warn(message: string, data?: Record<string, any>): void {\n this.baseClient.log(LogLevel.Warn, message, data);\n }\n\n public error(message: string, data?: Record<string, any>): void {\n this.baseClient.log(LogLevel.Error, message, data);\n }\n\n public debug(message: string, data?: Record<string, any>): void {\n this.baseClient.log(LogLevel.Debug, message, data);\n }\n}\n", "import { InternalTransactions } from '../types';\n\ntype InternalTransactionsName =\n (typeof InternalTransactions)[keyof typeof InternalTransactions];\n\nexport type CustomTransactionName<T extends string> =\n T extends InternalTransactionsName ? never : T;\n\nexport const isCustomTransactionName = (\n name: InternalTransactionsName | string,\n) =>\n !Object.values(InternalTransactions).includes(\n name as InternalTransactionsName,\n );\n", "import { Platform } from '../types';\n\nexport const isSsrEnabledInPlatform = (platform: Platform) =>\n platform === Platform.Viewer;\n", "export const generateGuidRegex = () =>\n /^[0-9a-fA-F]{8}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{12}$/;\n", "export * from './transaction-utils';\nexport * from './platform-utils';\nexport * from './guid';\n", "import { bindPrototypeMethodsToSelf } from '@wix/panorama-common/utils';\nimport type { TransactionUserData } from '@wix/panorama-common-shared/types';\nimport {\n type CustomTransactionName,\n isCustomTransactionName,\n} from '@wix/panorama-common-shared/utils';\nimport { type BasePanoramaClient } from './panorama-client-base';\nimport type { TransactionOptions } from './types';\nimport { defaults } from './utils/general-utils';\n\nexport interface PanoramaTransaction {\n start: (data?: TransactionUserData, options?: TransactionOptions) => void;\n finish: (data?: TransactionUserData, options?: TransactionOptions) => void;\n}\n\nexport class PanoramaTransactionImpl implements PanoramaTransaction {\n constructor(\n private readonly baseClient: BasePanoramaClient,\n private readonly name: CustomTransactionName<string>,\n private readonly options?: TransactionOptions,\n ) {\n if (!isCustomTransactionName(name)) {\n throw new Error(`\"${name}\" is an internal transaction and can't be used`);\n }\n\n this.baseClient = baseClient;\n\n bindPrototypeMethodsToSelf(this);\n }\n\n start(data?: TransactionUserData, options?: TransactionOptions) {\n return this.baseClient.reportTransactionStart(\n this.name,\n defaults(options, this.options),\n data,\n );\n }\n\n finish(data?: TransactionUserData, options?: TransactionOptions) {\n return this.baseClient.reportTransactionFinish(\n this.name,\n defaults(options, this.options),\n data,\n );\n }\n}\n", "import { bindPrototypeMethodsToSelf } from '@wix/panorama-common/utils';\nimport { type CustomTransactionName } from '@wix/panorama-common-shared/utils';\nimport { type BasePanoramaClient } from './panorama-client-base';\nimport {\n type PanoramaErrorMonitor,\n PanoramaErrorMonitorImpl,\n} from './panorama-error-monitor';\nimport { type PanoramaLogger, PanoramaLoggerImpl } from './panorama-logger';\nimport type {\n ErrorMonitorOptionsForComponent,\n ErrorMonitorUserData,\n TransactionOptions,\n} from './types';\nimport {\n type PanoramaTransaction,\n PanoramaTransactionImpl,\n} from './panorama-transaction';\n\ninterface Options {\n baseClient: BasePanoramaClient;\n}\n\nexport interface PanoramaClientForComponent {\n transaction<T extends string>(\n name: CustomTransactionName<T>,\n options?: TransactionOptions,\n ): PanoramaTransaction;\n\n errorMonitor(\n options?: ErrorMonitorOptionsForComponent,\n ): PanoramaErrorMonitor<ErrorMonitorUserData>;\n\n logger(): PanoramaLogger;\n}\n\nexport class PanoramaClientForComponentImpl\n implements PanoramaClientForComponent\n{\n private baseClient: BasePanoramaClient;\n\n constructor({ baseClient }: Options) {\n this.baseClient = baseClient;\n\n bindPrototypeMethodsToSelf(this);\n }\n\n transaction(\n name: CustomTransactionName<string>,\n options?: TransactionOptions,\n ) {\n return new PanoramaTransactionImpl(this.baseClient, name, options);\n }\n\n errorMonitor(\n options?: ErrorMonitorOptionsForComponent,\n ): PanoramaErrorMonitor<ErrorMonitorUserData> {\n return new PanoramaErrorMonitorImpl(this.baseClient, options);\n }\n\n logger(): PanoramaLogger {\n return new PanoramaLoggerImpl(this.baseClient);\n }\n}\n", "import type {\n EventPayload,\n ErrorUserData,\n TransactionUserData,\n PhaseUserData,\n} from '@wix/panorama-common-shared/types';\nimport { LogLevel } from '@wix/panorama-common-shared/types';\nimport type { PanoramaClientForComponent } from '../panorama-client-component';\nimport type { Breadcrumb, ErrorData, ErrorMonitorOptions } from '../types';\n\nexport enum Hook {\n afterCreateClientForComponent,\n beforeReport,\n beforeReportTransactionStart,\n afterReportTransactionStart,\n beforeReportTransactionFinish,\n afterReportTransactionFinish,\n beforeReportPhaseStart,\n afterReportPhaseStart,\n beforeReportPhaseFinish,\n afterReportPhaseFinish,\n beforeReportError,\n afterReportError,\n beforeAddBreadcrumb,\n afterAddBreadcrumb,\n beforeReportLog,\n afterReportLog,\n beforeUnhandledError,\n}\n\ntype Subscriber<T extends any[]> = (...args: T) => false | void;\n\ntype ArgsByHook = {\n [Hook.afterCreateClientForComponent]: [client: PanoramaClientForComponent];\n [Hook.beforeReport]: [eventPayload: EventPayload];\n [Hook.beforeReportTransactionStart]: [\n transactionName: string,\n data?: TransactionUserData,\n ];\n [Hook.beforeReportTransactionFinish]: [\n transactionName: string,\n data?: TransactionUserData,\n ];\n [Hook.afterReportTransactionStart]: [\n transactionName: string,\n eventPayload: EventPayload,\n ];\n [Hook.afterReportTransactionFinish]: [\n transactionName: string,\n eventPayload: EventPayload,\n ];\n [Hook.beforeReportPhaseStart]: [\n transactionName: string,\n data?: PhaseUserData,\n ];\n [Hook.beforeReportPhaseFinish]: [\n transactionName: string,\n data?: PhaseUserData,\n ];\n [Hook.afterReportPhaseStart]: [\n transactionName: string,\n eventPayload: EventPayload,\n ];\n [Hook.afterReportPhaseFinish]: [\n transactionName: string,\n eventPayload: EventPayload,\n ];\n [Hook.beforeReportError]: [\n error: Error,\n data?: ErrorData & ErrorUserData,\n errorMonitorOptions?: ErrorMonitorOptions,\n ];\n [Hook.afterReportError]: [\n error: Error,\n data?: ErrorData & ErrorUserData,\n errorMonitorOptions?: ErrorMonitorOptions,\n ];\n [Hook.beforeAddBreadcrumb]: [Breadcrumb];\n [Hook.afterAddBreadcrumb]: [Breadcrumb];\n [Hook.beforeReportLog]: [\n logLevel: LogLevel,\n message: string,\n data?: Record<string, any>,\n ];\n [Hook.afterReportLog]: [\n logLevel: LogLevel,\n message: string,\n data?: Record<string, any>,\n ];\n [Hook.beforeUnhandledError]: [error?: Error];\n};\n\ntype SubscribersByHook = {\n [P in Hook]?: Subscriber<ArgsByHook[P]>[];\n};\n\nexport type SubscriberByHook = {\n [P in Hook]: Subscriber<ArgsByHook[P]>;\n};\n\nexport class HooksManager {\n private readonly subscribers: SubscribersByHook = {};\n\n tap<T extends Hook>(hook: T, subscriber: Subscriber<ArgsByHook[T]>) {\n this.subscribers[hook] = this.subscribers[hook] || [];\n this.subscribers[hook]!.push(subscriber);\n }\n\n invoke<T extends Hook>(hook: T, ...args: ArgsByHook[T]): boolean {\n const subscribers = this.subscribers[hook];\n\n if (!subscribers) {\n return true;\n }\n\n for (const subscriber of subscribers) {\n if (subscriber(...args) === false) {\n return false;\n }\n }\n\n return true;\n }\n}\n", "import { bindPrototypeMethodsToSelf } from '@wix/panorama-common/utils';\nimport {\n PhaseName,\n type TransactionUserData,\n} from '@wix/panorama-common-shared/types';\nimport { type BasePanoramaClient } from './panorama-client-base';\n\nexport interface PanoramaPhase {\n start: (data?: TransactionUserData) => void;\n finish: (data?: TransactionUserData) => void;\n}\n\nexport class PanoramaPhaseImpl implements PanoramaPhase {\n constructor(\n private readonly name: PhaseName,\n private readonly baseClient: BasePanoramaClient,\n ) {\n this.baseClient = baseClient;\n\n bindPrototypeMethodsToSelf(this);\n }\n\n start(data?: TransactionUserData) {\n return this.baseClient.reportPhaseStart(this.name, data);\n }\n\n finish(data?: TransactionUserData) {\n return this.baseClient.reportPhaseFinish(this.name, data);\n }\n}\n", "import { bindPrototypeMethodsToSelf } from '@wix/panorama-common/utils';\nimport {\n InternalTransactions,\n type PhaseName,\n type TransactionUserData,\n} from '@wix/panorama-common-shared/types';\nimport { type CustomTransactionName } from '@wix/panorama-common-shared/utils';\nimport {\n type PanoramaClientForComponent,\n PanoramaClientForComponentImpl,\n} from './panorama-client-component';\nimport type { BasePanoramaClient } from './panorama-client-base';\nimport {\n Hook,\n type HooksManager,\n type SubscriberByHook,\n} from './plugins/hooks-manager';\nimport {\n type PanoramaErrorMonitor,\n PanoramaErrorMonitorImpl,\n} from './panorama-error-monitor';\nimport { PanoramaLogger, PanoramaLoggerImpl } from './panorama-logger';\nimport type {\n ErrorMonitorOptions,\n ErrorMonitorUserData,\n TransactionOptions,\n} from './types';\nimport {\n type PanoramaTransaction,\n PanoramaTransactionImpl,\n} from './panorama-transaction';\nimport { type PanoramaPhase, PanoramaPhaseImpl } from './panorama-phase';\n\ninterface Options {\n hooksManager: HooksManager;\n baseClient: BasePanoramaClient;\n}\n\nexport interface PanoramaClient {\n onUnhandledError(\n subscriber: SubscriberByHook[Hook.beforeUnhandledError],\n ): void;\n\n reportLoadStart(\n data?: TransactionUserData,\n options?: TransactionOptions,\n ): void;\n\n reportLoadFinish(\n data?: TransactionUserData,\n options?: TransactionOptions,\n ): void;\n\n phase(name: PhaseName): PanoramaPhase;\n\n transaction<T extends string>(\n name: CustomTransactionName<T>,\n options?: TransactionOptions,\n ): PanoramaTransaction;\n\n errorMonitor(\n options?: ErrorMonitorOptions,\n ): PanoramaErrorMonitor<ErrorMonitorUserData>;\n\n logger(): PanoramaLogger;\n\n createClientForComponent(): PanoramaClientForComponent;\n}\n\nexport class PanoramaClientImpl implements PanoramaClient {\n private baseClient: BasePanoramaClient;\n private hooksManager: HooksManager;\n\n constructor({ hooksManager, baseClient }: Options) {\n this.baseClient = baseClient;\n this.hooksManager = hooksManager;\n\n bindPrototypeMethodsToSelf(this);\n }\n\n onUnhandledError(subscriber: SubscriberByHook[Hook.beforeUnhandledError]) {\n this.hooksManager.tap(Hook.beforeUnhandledError, subscriber);\n }\n\n reportLoadStart(data?: TransactionUserData, options?: TransactionOptions) {\n const { ComponentLoad } = InternalTransactions;\n\n return this.baseClient.reportTransactionStart(ComponentLoad, options, data);\n }\n\n reportLoadFinish(data?: TransactionUserData, options?: TransactionOptions) {\n const { ComponentLoad } = InternalTransactions;\n\n return this.baseClient.reportTransactionFinish(\n ComponentLoad,\n options,\n data,\n );\n }\n\n phase(name: PhaseName) {\n return new PanoramaPhaseImpl(name, this.baseClient);\n }\n\n transaction(\n name: CustomTransactionName<string>,\n options?: TransactionOptions,\n ) {\n return new PanoramaTransactionImpl(this.baseClient, name, options);\n }\n\n errorMonitor(\n options?: ErrorMonitorOptions,\n ): PanoramaErrorMonitor<ErrorMonitorUserData> {\n return new PanoramaErrorMonitorImpl<ErrorMonitorUserData>(\n this.baseClient,\n options,\n );\n }\n\n logger(): PanoramaLogger {\n return new PanoramaLoggerImpl(this.baseClient);\n }\n\n createClientForComponent(): PanoramaClientForComponent {\n const client = new PanoramaClientForComponentImpl({\n baseClient: this.baseClient,\n });\n\n this.hooksManager.invoke(Hook.afterCreateClientForComponent, client);\n\n return client;\n }\n}\n", "import type { Event } from '@sentry/browser';\nimport type { IHttpError } from '@wix/http-client';\nimport { WixHttpErrorDetails } from '../types';\nimport { defaults } from './general-utils';\n\nconst extractWixHttpErrorDetailsRec = (\n error?: Error | IHttpError,\n): WixHttpErrorDetails => {\n if (!(error instanceof Error)) {\n return {};\n }\n\n const res = extractWixHttpErrorDetailsRec(error.cause as any);\n const httpClientError = error as IHttpError;\n\n return defaults<WixHttpErrorDetails>(res, {\n isWixHttpError: httpClientError.isWixHttpError,\n requestId:\n httpClientError.response?.headers?.['x-wix-request-id'] ??\n httpClientError.requestId,\n });\n};\n\nexport const extractWixHttpErrorDetails = (\n error?: Error | IHttpError,\n): WixHttpErrorDetails =>\n defaults<WixHttpErrorDetails>(extractWixHttpErrorDetailsRec(error), {\n isWixHttpError: false,\n requestId: '',\n });\n\nexport const normalizeError = (event: Event, error?: string | Error): Error => {\n if (!(error instanceof Error)) {\n const err = new Error(typeof error === 'string' ? error : event.message);\n\n delete err.stack;\n\n return err;\n }\n\n return error;\n};\n", "export const MAX_STACK_TRACE_SIZE_BYTES = 32 * 1024;\n", "import type { EventPayload } from '@wix/panorama-common-shared/types';\nimport { MAX_STACK_TRACE_SIZE_BYTES } from '../constants';\n\nexport const sanitizePayload = (payload: EventPayload) => {\n const { errorStack } = payload;\n\n if (errorStack && errorStack.length > MAX_STACK_TRACE_SIZE_BYTES) {\n const truncationMessage = `...[truncated by Panorama client to ${\n MAX_STACK_TRACE_SIZE_BYTES / 1024\n }kb]`;\n\n const truncatedErrorStack = errorStack.substring(\n 0,\n MAX_STACK_TRACE_SIZE_BYTES - truncationMessage.length,\n );\n\n payload = {\n ...payload,\n errorStack: `${truncatedErrorStack}${truncationMessage}`,\n };\n }\n\n return payload;\n};\n", "import {\n InternalTransactions,\n LogLevel,\n} from '@wix/panorama-common-shared/types';\nimport type {\n BaseParams,\n TransactionParams,\n InternalParams,\n ErrorUserData,\n TransactionUserData,\n EventPayload,\n TransactionEventPayload,\n ErrorEventPayload,\n LoggerParams,\n PhaseUserData,\n PhaseParams,\n PhaseEventPayload,\n} from '@wix/panorama-common-shared/types';\nimport type { GlobalConfig } from '@wix/panorama-common/global-config';\nimport { extractWixHttpErrorDetails } from '../utils/error-utils';\nimport { sanitizePayload } from './payload-sanitizer';\n\nconst getSessionParams = (\n globalConfig: GlobalConfig,\n): Pick<InternalParams, 'sessionId' | 'sessionTime'> => {\n const sessionId = globalConfig.getSessionId();\n const sessionTime = Math.round(globalConfig.getSessionTime());\n\n return { sessionId, sessionTime };\n};\n\nexport const buildTransactionPayload = (\n globalConfig: GlobalConfig,\n baseParams: BaseParams,\n transactionParams: TransactionParams,\n data?: TransactionUserData,\n): TransactionEventPayload => {\n const { transactionName, transactionAction } = transactionParams;\n\n const { sessionId, sessionTime } = getSessionParams(globalConfig);\n const logLevel = LogLevel.Info;\n const message = `Panorama ${transactionName} ${transactionAction}`;\n const requestId = '';\n\n return sanitizePayload({\n ...baseParams,\n ...transactionParams,\n sessionId,\n sessionTime,\n logLevel,\n requestId,\n message,\n data,\n });\n};\n\nexport const buildPhasePayload = (\n globalConfig: GlobalConfig,\n baseParams: BaseParams,\n phaseParams: PhaseParams,\n data?: PhaseUserData,\n): PhaseEventPayload => {\n const transactionName = InternalTransactions.ComponentPhase;\n const { phaseName, transactionAction } = phaseParams;\n\n const { sessionId, sessionTime } = getSessionParams(globalConfig);\n const logLevel = LogLevel.Info;\n const message = `Panorama ${phaseName} phase ${transactionAction}`;\n const requestId = '';\n\n return sanitizePayload({\n ...baseParams,\n ...phaseParams,\n transactionName,\n sessionId,\n sessionTime,\n logLevel,\n requestId,\n message,\n data,\n });\n};\n\nexport const buildErrorPayload = (\n globalConfig: GlobalConfig,\n baseParams: BaseParams,\n error: Error,\n data?: ErrorUserData,\n): ErrorEventPayload => {\n const { sessionId, sessionTime } = getSessionParams(globalConfig);\n const { constructor, message, stack = '' } = error;\n const logLevel = LogLevel.Error;\n const { requestId } = extractWixHttpErrorDetails(error);\n\n return sanitizePayload({\n ...baseParams,\n sessionId,\n sessionTime,\n logLevel,\n requestId,\n data,\n errorName: data?.errorName ?? constructor.name,\n errorStack: stack,\n message,\n });\n};\n\nexport const buildLoggerPayload = (\n globalConfig: GlobalConfig,\n baseParams: BaseParams,\n loggerParams: LoggerParams,\n): EventPayload => {\n const { sessionId, sessionTime } = getSessionParams(globalConfig);\n const requestId = '';\n\n return sanitizePayload({\n ...baseParams,\n ...loggerParams,\n sessionId,\n sessionTime,\n requestId,\n });\n};\n", "// import type { IHttpError } from '@wix/http-client';\nimport type {\n Reporter,\n BaseParams,\n LogLevel,\n ErrorUserData,\n TransactionUserData,\n EventPayload,\n UserParams,\n PhaseUserData,\n} from '@wix/panorama-common-shared/types';\nimport { TransactionAction } from '@wix/panorama-common-shared/types';\nimport type { GlobalConfig } from '@wix/panorama-common/global-config';\nimport {\n createDurationTracker,\n type DurationTracker,\n} from '@wix/panorama-common/duration-tracker';\nimport {\n buildErrorPayload,\n buildLoggerPayload,\n buildPhasePayload,\n buildTransactionPayload,\n} from './lib/payload-builder';\nimport { Hook, type HooksManager } from './plugins/hooks-manager';\nimport type {\n Breadcrumb,\n ErrorMonitorOptions,\n TransactionOptions,\n} from './types';\nimport type { Scope } from './lib/scope';\n\ninterface Options {\n baseParams: BaseParams;\n globalConfig: GlobalConfig;\n reporter: Reporter;\n hooksManager: HooksManager;\n data: Scope<NonNullable<UserParams['data']>>;\n isMuted: () => boolean;\n}\n\nexport class BasePanoramaClient {\n private durationTracker: DurationTracker;\n private readonly baseParams: BaseParams;\n private readonly globalConfig: GlobalConfig;\n private readonly reporter: Reporter;\n private readonly hooksManager: HooksManager;\n private readonly data: Scope<NonNullable<UserParams['data']>>;\n private readonly isMuted: () => boolean;\n\n constructor({\n baseParams,\n globalConfig,\n reporter,\n hooksManager,\n data,\n isMuted,\n }: Options) {\n this.baseParams = baseParams;\n this.globalConfig = globalConfig;\n this.reporter = reporter;\n this.hooksManager = hooksManager;\n this.data = data;\n this.isMuted = isMuted;\n\n // For backward compatibility in cases where GlobalConfig version is older than what we expect\n this.durationTracker =\n typeof globalConfig.getDurationTracker === 'function'\n ? globalConfig.getDurationTracker()\n : createDurationTracker();\n }\n\n private report(eventPayload: EventPayload) {\n if (this.isMuted()) {\n return;\n }\n\n const reporterOverride = this.globalConfig.getReporter();\n const beforeReportHookResult = this.hooksManager.invoke(\n Hook.beforeReport,\n eventPayload,\n );\n\n if (typeof reporterOverride === 'function') {\n reporterOverride(eventPayload);\n return;\n }\n\n if (!beforeReportHookResult) {\n return;\n }\n\n this.reporter(eventPayload);\n }\n\n getErrorMonitorDataWithDefaults = (\n ...args: (ErrorUserData | undefined)[]\n ) => {\n return this.data.addDataScope(args).getData();\n };\n\n reportTransactionStart(\n name: string,\n options: TransactionOptions = {},\n data?: TransactionUserData,\n ) {\n const { id } = options;\n const dataWithDefault = this.data.addDataScope(data).getData();\n\n if (\n !this.hooksManager.invoke(\n Hook.beforeReportTransactionStart,\n name,\n dataWithDefault,\n )\n ) {\n return;\n }\n\n const { fullArtifactId, componentId } = this.baseParams;\n\n this.durationTracker.markTransactionStart(\n fullArtifactId!,\n componentId!,\n name,\n id,\n );\n\n const payload = buildTransactionPayload(\n this.globalConfig,\n this.baseParams,\n {\n transactionName: name,\n transactionAction: TransactionAction.Start,\n },\n dataWithDefault,\n );\n\n this.report(payload);\n\n this.hooksManager.invoke(Hook.afterReportTransactionStart, name, payload);\n }\n\n reportTransactionFinish(\n name: string,\n options: TransactionOptions = {},\n data?: TransactionUserData,\n ) {\n const { id } = options;\n const dataWithDefault = this.data.addDataScope(data).getData();\n\n if (\n !this.hooksManager.invoke(\n Hook.beforeReportTransactionFinish,\n name,\n dataWithDefault,\n )\n ) {\n return;\n }\n\n const { fullArtifactId, componentId } = this.baseParams;\n\n const duration = this.durationTracker.markTransactionFinish(\n fullArtifactId!,\n componentId!,\n name,\n id,\n );\n\n const payload = buildTransactionPayload(\n this.globalConfig,\n this.baseParams,\n {\n transactionName: name,\n transactionAction: TransactionAction.Finish,\n transactionDuration: duration,\n },\n dataWithDefault,\n );\n\n this.report(payload);\n\n this.hooksManager.invoke(Hook.afterReportTransactionFinish, name, payload);\n }\n\n reportPhaseStart(name: string, data?: PhaseUserData) {\n const dataWithDefault = this.data.addDataScope(data).getData();\n\n if (\n !this.hooksManager.invoke(\n Hook.beforeReportPhaseStart,\n name,\n dataWithDefault,\n )\n ) {\n return;\n }\n\n const { fullArtifactId, componentId } = this.baseParams;\n\n this.durationTracker.markPhaseStart(fullArtifactId!, componentId!, name);\n\n const payload = buildPhasePayload(\n this.globalConfig,\n this.baseParams,\n {\n phaseName: name,\n transactionAction: TransactionAction.Start,\n },\n dataWithDefault,\n );\n\n this.report(payload);\n\n this.hooksManager.invoke(Hook.afterReportPhaseStart, name, payload);\n }\n\n reportPhaseFinish(name: string, data?: TransactionUserData) {\n const dataWithDefault = this.data.addDataScope(data).getData();\n\n if (\n !this.hooksManager.invoke(\n Hook.beforeReportPhaseFinish,\n name,\n dataWithDefault,\n )\n ) {\n return;\n }\n\n const { fullArtifactId, componentId } = this.baseParams;\n\n const duration = this.durationTracker.markPhaseFinish(\n fullArtifactId!,\n componentId!,\n name,\n );\n\n const payload = buildPhasePayload(\n this.globalConfig,\n this.baseParams,\n {\n phaseName: name,\n transactionAction: TransactionAction.Finish,\n transactionDuration: duration,\n },\n dataWithDefault,\n );\n\n this.report(payload);\n\n this.hooksManager.invoke(Hook.afterReportPhaseFinish, name, payload);\n }\n\n reportError(\n error: Error,\n data?: ErrorUserData,\n options?: ErrorMonitorOptions,\n ) {\n if (!(error instanceof Error)) {\n return;\n }\n\n data = this.data.addDataScope([data, options?.data]).getData();\n\n if (\n !this.hooksManager.invoke(Hook.beforeReportError, error, data, options)\n ) {\n return;\n }\n\n const payload = buildErrorPayload(\n this.globalConfig,\n this.baseParams,\n error,\n data,\n );\n\n this.report(payload);\n\n this.hooksManager.invoke(Hook.afterReportError, error, data, options);\n }\n\n addBreadcrumb(breadcrumb: Breadcrumb) {\n if (!this.hooksManager.invoke(Hook.beforeAddBreadcrumb, breadcrumb)) {\n return;\n }\n\n // Currently the default implementation does nothing, we only invoke hooks\n\n this.hooksManager.invoke(Hook.afterAddBreadcrumb, breadcrumb);\n }\n\n log(logLevel: LogLevel, message: string, data?: Record<string, any>) {\n if (!message) {\n return;\n }\n\n const dataWithDefault = this.data.addDataScope(data).getData();\n\n const loggerParams = {\n message,\n data: dataWithDefault,\n logLevel,\n };\n\n if (\n !this.hooksManager.invoke(\n Hook.beforeReportLog,\n logLevel,\n message,\n dataWithDefault,\n )\n ) {\n return;\n }\n\n const payload = buildLoggerPayload(\n this.globalConfig,\n this.baseParams,\n loggerParams,\n );\n this.report(payload);\n\n this.hooksManager.invoke(\n Hook.afterReportLog,\n logLevel,\n message,\n dataWithDefault,\n );\n }\n}\n", "import { defaults, deepDefaults } from '../utils/general-utils';\n\nexport class Scope<T extends Record<string, any>> {\n private readonly data: T | undefined;\n private static readonly KEYS_TO_DEEP_DEFAULTS = ['tags', 'context'];\n\n constructor(data: T | undefined) {\n this.data = data;\n }\n\n private getEntriesToDeepDefaults(data: T | undefined): T | undefined {\n if (!data) {\n return undefined;\n }\n return Object.fromEntries(\n Object.entries(data).filter(([key]) =>\n Scope.KEYS_TO_DEEP_DEFAULTS.includes(key),\n ),\n ) as unknown as T;\n }\n\n addDataScope(data: T | undefined | (T | undefined)[]): Scope<T> {\n const outerDataArray = Array.isArray(data) ? data : [data];\n const deepDefaultData = deepDefaults(\n ...outerDataArray.map((_data) => this.getEntriesToDeepDefaults(_data)),\n this.getEntriesToDeepDefaults(this.data),\n );\n return new Scope(defaults(deepDefaultData, ...outerDataArray, this.data));\n }\n\n getData() {\n return this.data;\n }\n}\n", "import { bindPrototypeMethodsToSelf } from '@wix/panorama-common/utils';\nimport type {\n Reporter,\n BaseParams,\n EventPayload,\n} from '@wix/panorama-common-shared/types';\nimport {\n createGlobalConfig,\n type GlobalConfig,\n} from '@wix/panorama-common/global-config';\nimport { defaults } from './utils/general-utils';\nimport { type PanoramaClient, PanoramaClientImpl } from './panorama-client';\nimport type { PluginArgs, PluginFunction } from './plugins';\nimport type { ClientOptions, FactoryOptions } from './types';\nimport { HooksManager } from './plugins/hooks-manager';\nimport { BasePanoramaClient } from './panorama-client-base';\nimport { Scope } from './lib/scope';\n\nexport interface PanoramaClientFactory<Payload extends unknown = EventPayload> {\n withGlobalConfig(\n globalConfig: GlobalConfig<Payload>,\n ): PanoramaClientFactory<Payload>;\n\n withReporter(reporter: Reporter<Payload>): PanoramaClientFactory<Payload>;\n\n setMuted(isMuted: boolean): PanoramaClientFactory<Payload>;\n\n use(\n plugin: (args: PluginArgs<Payload>) => void,\n ): PanoramaClientFactory<Payload>;\n\n client(options?: ClientOptions): PanoramaClient;\n}\n\nclass PanoramaClientFactoryImpl<Payload extends unknown = EventPayload>\n implements PanoramaClientFactory<Payload>\n{\n private globalConfig?: GlobalConfig<Payload>;\n private reporter: Reporter<Payload> = () => true;\n private plugins: PluginFunction<Payload>[] = [];\n private isMuted: boolean = false;\n\n constructor(private readonly options: FactoryOptions) {\n bindPrototypeMethodsToSelf(this);\n }\n\n withGlobalConfig(globalConfig: GlobalConfig<Payload>) {\n this.globalConfig = globalConfig;\n\n return this;\n }\n\n withReporter(reporter: Reporter<Payload>) {\n this.reporter = reporter;\n\n return this;\n }\n\n setMuted(isMuted: boolean) {\n this.isMuted = isMuted;\n\n return this;\n }\n\n use(plugin: (args: PluginArgs<Payload>) => void) {\n this.plugins.push(plugin);\n\n return this;\n }\n\n client(options: ClientOptions = {}) {\n const { pluginParams } = options;\n\n const globalConfig = this.globalConfig ?? createGlobalConfig();\n const reporter = this.reporter as any;\n const hooksManager = new HooksManager();\n const baseParams = defaults(\n options.baseParams,\n this.options.baseParams,\n ) as Required<BaseParams>;\n const data = new Scope(this.options.data).addDataScope(options.data);\n\n const pluginClientParams = pluginParams ?? {};\n\n const baseClient = new BasePanoramaClient({\n baseParams,\n globalConfig: globalConfig as unknown as GlobalConfig,\n isMuted: () => this.isMuted,\n reporter,\n hooksManager,\n data,\n });\n\n const client = new PanoramaClientImpl({\n baseClient,\n hooksManager,\n });\n\n this.plugins.forEach((plugin) =>\n plugin({\n hooksManager,\n globalConfig,\n reporter,\n baseClient,\n baseParams,\n pluginParams: pluginClientParams,\n }),\n );\n\n return client;\n }\n}\n\nexport const panoramaClient = <Payload extends unknown = EventPayload>(\n options: FactoryOptions = {},\n): PanoramaClientFactory<Payload> =>\n new PanoramaClientFactoryImpl<Payload>(options);\n", "import type {\n BaseParams,\n ErrorUserData,\n UserParams,\n} from '@wix/panorama-common-shared/types';\nimport { ErrorMonitorPluginParams, PluginParams } from './plugins';\n\nexport interface FactoryOptions {\n baseParams?: BaseParams;\n data?: UserParams['data'];\n}\n\nexport interface ClientOptions {\n baseParams?: BaseParams;\n pluginParams?: PluginParams;\n data?: UserParams['data'];\n}\n\nexport interface TransactionOptions {\n id?: number | string;\n}\n\nexport type ErrorMonitorUserData = ErrorUserData &\n Pick<ErrorData, 'exceptionType'>;\n\nexport type ErrorMonitorUserDataForComponent = ErrorUserData;\n\nexport interface ErrorMonitorOptions {\n pluginParams?: ErrorMonitorPluginParams;\n data?: ErrorUserData;\n}\n\nexport interface ErrorMonitorOptionsForComponent {\n data?: ErrorUserData;\n}\n\nexport interface Breadcrumb {\n message: string;\n}\n\nexport interface ErrorData {\n exceptionType?: ExceptionType;\n}\n\nexport enum ExceptionType {\n HANDLED = 'HANDLED',\n UNHANDLED = 'UNHANDLED',\n}\n\nexport enum StacktraceScriptType {\n WIX_SERVICE = 'WIX_SERVICE',\n WIX_APP = 'WIX_APP',\n WIX_CHAT = 'WIX_CHAT_WIDGET',\n BROWSER_EXTENSION = 'BROWSER_EXTENSION',\n}\n\nexport interface ArtifactData {\n artifactId: string;\n artifactVersion: string;\n scriptType: StacktraceScriptType;\n}\n\nexport interface WixHttpErrorDetails {\n isWixHttpError?: boolean;\n requestId?: string;\n}\n", "export { Platform, ErrorSeverity } from '@wix/panorama-common-shared/types';\n\nexport {\n type GlobalConfig,\n createGlobalConfig,\n} from '@wix/panorama-common/global-config';\n\nexport {\n panoramaClient,\n type PanoramaClientFactory,\n} from './panorama-client-factory';\n\nexport type { PanoramaClient } from './panorama-client';\nexport type { PanoramaClientForComponent } from './panorama-client-component';\nexport type { PluginParams } from './plugins';\nexport { ExceptionType } from './types';\nexport type { PanoramaLogger } from './panorama-logger';\n", "import type {\n Breadcrumb as SentryBreadcrumb,\n BrowserOptions,\n Hub,\n} from '@sentry/browser';\nimport type { ErrorUserData } from '@wix/panorama-common-shared/types';\nimport type { ErrorData as _ErrorData } from '../../types';\n\ndeclare module '../../types' {\n interface ErrorData {\n externalId?: string;\n exceptionType?: ExceptionType;\n stackTraceArtifacts?: Partial<ArtifactData>[];\n originalHandler?: ArtifactData;\n routingAction?: RoutingAction;\n routingActionReason?: RoutingActionReason;\n environment?: string;\n }\n\n interface Breadcrumb\n extends Pick<\n SentryBreadcrumb,\n 'type' | 'level' | 'category' | 'message' | 'data'\n > {}\n}\n\ndeclare module '../plugin-types' {\n interface PluginParams {\n sentry?: Sentry | LazySentry;\n sentryTransport?: BrowserOptions['transport'];\n sentryDsn?: string;\n sentryGetReleaseFromStacktrace?: boolean;\n sentryMain?: boolean;\n sentryEnvironment?: string;\n }\n\n interface PluginState {\n sentryHubs?: HubMap;\n sentryMainHub?: Hub;\n sentryGlobalHub?: Hub;\n sentryLazyLoaderTriggered?: boolean;\n sentryResolved?: Sentry;\n }\n\n interface ErrorMonitorPluginParams {\n sentryLookupDsn?: string;\n sentryEnvironment?: string;\n }\n}\n\nexport type Sentry = typeof import('@sentry/browser');\nexport type LazySentry = {\n forceLoad: () => void;\n onLoad: (fn: (sentry: Sentry) => void) => void;\n};\n\nexport enum RoutingAction {\n /** Reroute - report via the target Sentry Hub */\n REROUTE = 'REROUTE',\n /** Don't reroute - report via the current Sentry Hub */\n CONTINUE = 'CONTINUE',\n /** Don't report to Sentry */\n DROP = 'DROP',\n}\n\nexport enum RoutingActionReason {\n /** Handled errors are never rerouted */\n ERROR_IS_HANDLED = 'ERROR_IS_HANDLED',\n /** Error originated from the current artifact */\n HANDLER_MATCH = 'HANDLER_MATCH',\n /** No artifact data was found in the stack-trace */\n NO_ARTIFACTS_IN_STACKTRACE = 'NO_ARTIFACTS_IN_STACKTRACE',\n /** There is artifact data in the stack-trace, but none of the artifacts has a matching Hub */\n NO_REGISTERED_ARTIFACTS_IN_STACKTRACE = 'NO_REGISTERED_ARTIFACTS_IN_STACKTRACE',\n /** At least one of the scripts in the stack-trace is blacklisted */\n BLACKLISTED_SCRIPT_TYPE = 'BLACKLISTED_SCRIPT_TYPE',\n /** There is a matching Hub for the first artifact in the stack-trace */\n EXACT_REROUTE_MATCH = 'EXACT_REROUTE_MATCH',\n /** There is no matching Hub for the first artifact in the stack-trace, and the current artifact is the first one to have a matching Hub */\n HANDLER_REROUTE_MATCH = 'HANDLER_REROUTE_MATCH',\n /** There is no matching Hub for the first artifact in the stack-trace, but there is an artifact with a matching Hub down the stack-trace */\n FALLBACK_REROUTE_MATCH = 'FALLBACK_REROUTE_MATCH',\n}\n\nexport interface RereouteOkDecision {\n routingAction: RoutingAction.REROUTE;\n routingActionReason:\n | RoutingActionReason.EXACT_REROUTE_MATCH\n | RoutingActionReason.FALLBACK_REROUTE_MATCH;\n targetHub: Hub;\n}\n\nexport interface RerouteContinueDecision {\n routingAction: RoutingAction.CONTINUE;\n routingActionReason:\n | RoutingActionReason.ERROR_IS_HANDLED\n | RoutingActionReason.HANDLER_MATCH\n | RoutingActionReason.HANDLER_REROUTE_MATCH\n | RoutingActionReason.NO_ARTIFACTS_IN_STACKTRACE;\n targetHub?: never;\n}\n\nexport interface RerouteDropDecision {\n routingAction: RoutingAction.DROP;\n routingActionReason:\n | RoutingActionReason.BLACKLISTED_SCRIPT_TYPE\n | RoutingActionReason.NO_REGISTERED_ARTIFACTS_IN_STACKTRACE;\n targetHub?: never;\n}\n\nexport type SentryBeforeSend = (handler: BrowserOptions['beforeSend']) => void;\n\nexport interface SentryHubLazyResult {\n load: () => Promise<SentryHubResolvedResult>;\n wait: () => Promise<SentryHubResolvedResult>;\n sentryBeforeSend: SentryBeforeSend;\n}\n\nexport interface SentryHubResolvedResult {\n hub: Hub;\n sentry: Sentry;\n sentryBeforeSend: SentryBeforeSend;\n}\n\nexport interface SentryHubInvalidResult {\n hub: null;\n}\n\nexport type SentryPluginErrorData = _ErrorData & ErrorUserData;\n\nexport type HubMap = Map<string, Hub>;\n", "import type { GlobalConfig } from '@wix/panorama-common/global-config';\nimport type {\n BaseParams,\n EventPayload,\n Reporter,\n} from '@wix/panorama-common-shared/types';\nimport type { BasePanoramaClient } from '../panorama-client-base';\nimport type { HooksManager } from './hooks-manager';\n\nexport * from './sentry/sentry-plugin-types';\n\nexport interface PluginParams {}\nexport interface PluginState {}\nexport interface ErrorMonitorPluginParams {}\n\nexport type PluginArgs<Payload extends unknown = EventPayload> = {\n hooksManager: HooksManager;\n globalConfig: GlobalConfig<Payload, PluginState>;\n reporter: Reporter<Payload>;\n baseClient: BasePanoramaClient;\n baseParams: Required<BaseParams>;\n pluginParams: PluginParams;\n};\n\nexport type PluginFunction<Payload extends unknown = EventPayload> = (\n args: PluginArgs<Payload>,\n) => void;\n", "/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return value != null && (type == 'object' || type == 'function');\n}\n\nmodule.exports = isObject;\n", "/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\nmodule.exports = freeGlobal;\n", "var freeGlobal = require('./_freeGlobal');\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\nmodule.exports = root;\n", "var root = require('./_root');\n\n/**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\nvar now = function() {\n return root.Date.now();\n};\n\nmodule.exports = now;\n", "/** Used to match a single whitespace character. */\nvar reWhitespace = /\\s/;\n\n/**\n * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace\n * character of `string`.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {number} Returns the index of the last non-whitespace character.\n */\nfunction trimmedEndIndex(string) {\n var index = string.length;\n\n while (index-- && reWhitespace.test(string.charAt(index))) {}\n return index;\n}\n\nmodule.exports = trimmedEndIndex;\n", "var trimmedEndIndex = require('./_trimmedEndIndex');\n\n/** Used to match leading whitespace. */\nvar reTrimStart = /^\\s+/;\n\n/**\n * The base implementation of `_.trim`.\n *\n * @private\n * @param {string} string The string to trim.\n * @returns {string} Returns the trimmed string.\n */\nfunction baseTrim(string) {\n return string\n ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')\n : string;\n}\n\nmodule.exports = baseTrim;\n", "var root = require('./_root');\n\n/** Built-in value references. */\nvar Symbol = root.Symbol;\n\nmodule.exports = Symbol;\n", "var Symbol = require('./_Symbol');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\nfunction getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n}\n\nmodule.exports = getRawTag;\n", "/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\nfunction objectToString(value) {\n return nativeObjectToString.call(value);\n}\n\nmodule.exports = objectToString;\n", "var Symbol = require('./_Symbol'),\n getRawTag = require('./_getRawTag'),\n objectToString = require('./_objectToString');\n\n/** `Object#toString` result references. */\nvar nullTag = '[object Null]',\n undefinedTag = '[object Undefined]';\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nfunction baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? getRawTag(value)\n : objectToString(value);\n}\n\nmodule.exports = baseGetTag;\n", "/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return value != null && typeof value == 'object';\n}\n\nmodule.exports = isObjectLike;\n", "var baseGetTag = require('./_baseGetTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && baseGetTag(value) == symbolTag);\n}\n\nmodule.exports = isSymbol;\n", "var baseTrim = require('./_baseTrim'),\n isObject = require('./isObject'),\n isSymbol = require('./isSymbol');\n\n/** Used as references for various `Number` constants. */\nvar NAN = 0 / 0;\n\n/** Used to detect bad signed hexadecimal string values. */\nvar reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n/** Used to detect binary string values. */\nvar reIsBinary = /^0b[01]+$/i;\n\n/** Used to detect octal string values. */\nvar reIsOctal = /^0o[0-7]+$/i;\n\n/** Built-in method references without a dependency on `root`. */\nvar freeParseInt = parseInt;\n\n/**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\nfunction toNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n if (isObject(value)) {\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n value = isObject(other) ? (other + '') : other;\n }\n if (typeof value != 'string') {\n return value === 0 ? value : +value;\n }\n value = baseTrim(value);\n var isBinary = reIsBinary.test(value);\n return (isBinary || reIsOctal.test(value))\n ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n : (reIsBadHex.test(value) ? NAN : +value);\n}\n\nmodule.exports = toNumber;\n", "var isObject = require('./isObject'),\n now = require('./now'),\n toNumber = require('./toNumber');\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max,\n nativeMin = Math.min;\n\n/**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n * Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n * 'leading': true,\n * 'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */\nfunction debounce(func, wait, options) {\n var lastArgs,\n lastThis,\n maxWait,\n result,\n timerId,\n lastCallTime,\n lastInvokeTime = 0,\n leading = false,\n maxing = false,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n wait = toNumber(wait) || 0;\n if (isObject(options)) {\n leading = !!options.leading;\n maxing = 'maxWait' in options;\n maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n\n function invokeFunc(time) {\n var args = lastArgs,\n thisArg = lastThis;\n\n lastArgs = lastThis = undefined;\n lastInvokeTime = time;\n result = func.apply(thisArg, args);\n return result;\n }\n\n function leadingEdge(time) {\n // Reset any `maxWait` timer.\n lastInvokeTime = time;\n // Start the timer for the trailing edge.\n timerId = setTimeout(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(time) : result;\n }\n\n function remainingWait(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime,\n timeWaiting = wait - timeSinceLastCall;\n\n return maxing\n ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)\n : timeWaiting;\n }\n\n function shouldInvoke(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||\n (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));\n }\n\n function timerExpired() {\n var time = now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // Restart the timer.\n timerId = setTimeout(timerExpired, remainingWait(time));\n }\n\n function trailingEdge(time) {\n timerId = undefined;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs) {\n return invokeFunc(time);\n }\n lastArgs = lastThis = undefined;\n return result;\n }\n\n function cancel() {\n if (timerId !== undefined) {\n clearTimeout(timerId);\n }\n lastInvokeTime = 0;\n lastArgs = lastCallTime = lastThis = timerId = undefined;\n }\n\n function flush() {\n return timerId === undefined ? result : trailingEdge(now());\n }\n\n function debounced() {\n var time = now(),\n isInvoking = shouldInvoke(time);\n\n lastArgs = arguments;\n lastThis = this;\n lastCallTime = time;\n\n if (isInvoking) {\n if (timerId === undefined) {\n return leadingEdge(lastCallTime);\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n clearTimeout(timerId);\n timerId = setTimeout(timerExpired, wait);\n return invokeFunc(lastCallTime);\n }\n }\n if (timerId === undefined) {\n timerId = setTimeout(timerExpired, wait);\n }\n return result;\n }\n debounced.cancel = cancel;\n debounced.flush = flush;\n return debounced;\n}\n\nmodule.exports = debounce;\n", "var debounce = require('./debounce'),\n isObject = require('./isObject');\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/**\n * Creates a throttled function that only invokes `func` at most once per\n * every `wait` milliseconds. The throttled function comes with a `cancel`\n * method to cancel delayed `func` invocations and a `flush` method to\n * immediately invoke them. Provide `options` to indicate whether `func`\n * should be invoked on the leading and/or trailing edge of the `wait`\n * timeout. The `func` is invoked with the last arguments provided to the\n * throttled function. Subsequent calls to the throttled function return the\n * result of the last `func` invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the throttled function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.throttle` and `_.debounce`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to throttle.\n * @param {number} [wait=0] The number of milliseconds to throttle invocations to.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=true]\n * Specify invoking on the leading edge of the timeout.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new throttled function.\n * @example\n *\n * // Avoid excessively updating the position while scrolling.\n * jQuery(window).on('scroll', _.throttle(updatePosition, 100));\n *\n * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.\n * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });\n * jQuery(element).on('click', throttled);\n *\n * // Cancel the trailing throttled invocation.\n * jQuery(window).on('popstate', throttled.cancel);\n */\nfunction throttle(func, wait, options) {\n var leading = true,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n if (isObject(options)) {\n leading = 'leading' in options ? !!options.leading : leading;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n return debounce(func, wait, {\n 'leading': leading,\n 'maxWait': wait,\n 'trailing': trailing\n });\n}\n\nmodule.exports = throttle;\n", "import throttle from 'lodash/throttle';\nimport type { BatchQueue } from '@wix/panorama-common-shared/types';\n\ntype Options<T> = {\n throttleDuration: number;\n maxBatchSize: number;\n flushHandler: (payload: BatchPayload<T>) => void;\n};\n\nexport type BatchPayload<T> = T[];\n\nexport class BatchQueueImpl<T extends Record<string, any>>\n implements BatchQueue\n{\n private queue: BatchPayload<T> = [];\n private flushThrottled: ReturnType<typeof throttle>;\n\n constructor(private readonly options: Options<T>) {\n this.flushThrottled = throttle(\n () => this.flush(),\n options.throttleDuration,\n {\n leading: false,\n },\n );\n }\n\n private flush() {\n const events = this.queue.splice(0);\n\n this.options.flushHandler(events);\n }\n\n enqueue(payload: T) {\n this.queue.push(payload);\n\n if (this.queue.length === this.options.maxBatchSize) {\n this.flushThrottled.cancel();\n this.flush();\n } else {\n this.flushThrottled();\n }\n }\n}\n", "export const MAX_BATCH_SIZE = 100;\n", "import { type EventPayload } from '@wix/panorama-common-shared/types';\nimport { type BatchPayload, BatchQueueImpl } from './batch-queue';\nimport { Hook } from '../hooks-manager';\nimport { type PluginFunction } from '../plugin-types';\nimport { MAX_BATCH_SIZE } from './batch-constants';\n\ndeclare module '../plugin-types' {\n interface PluginParams {\n useBatch?: boolean;\n }\n}\n\ninterface AdditionalBatchOptions {\n maxBatchSize?: number;\n}\n\nexport const batchPlugin =\n (\n throttleDuration: number,\n options: AdditionalBatchOptions = {},\n ): PluginFunction<BatchPayload<EventPayload>> =>\n ({ hooksManager, globalConfig, reporter }) => {\n if (globalConfig.getReporter()) {\n return;\n }\n\n const { maxBatchSize = MAX_BATCH_SIZE } = options;\n\n globalConfig.initBatchQueue(\n new BatchQueueImpl<EventPayload>({\n throttleDuration,\n maxBatchSize,\n flushHandler: reporter,\n }),\n );\n\n hooksManager.tap(Hook.beforeReport, (eventPayload) => {\n globalConfig.getBatchQueue().enqueue(eventPayload);\n\n return false;\n });\n };\n", "import type { PluginArgs } from '../plugins';\nimport { type ArtifactData, StacktraceScriptType } from '../types';\nimport { last } from './general-utils';\n\ninterface ScriptRegex {\n scriptType: StacktraceScriptType;\n regex: () => RegExp;\n}\n\nconst scriptRegexs: ScriptRegex[] = [\n {\n scriptType: StacktraceScriptType.WIX_SERVICE,\n regex: () => /\\/services\\/([^/]+)\\/([^/]+)\\//,\n },\n {\n scriptType: StacktraceScriptType.WIX_APP,\n regex: () => /apps\\.wix\\.com\\/([^/]+)\\//,\n },\n {\n scriptType: StacktraceScriptType.WIX_CHAT,\n regex: () => /unpkg-semver\\/(wix-chatbot-widget)\\//,\n },\n {\n scriptType: StacktraceScriptType.BROWSER_EXTENSION,\n regex: () => /^chrome-extension:/,\n },\n];\n\nexport const extractArtifactDataFromScriptUrl = (\n url: string,\n): ArtifactData | null => {\n return scriptRegexs.reduce<ArtifactData | null>(\n (res, { scriptType, regex }) => {\n if (!res) {\n const match = regex().exec(url);\n\n if (match) {\n const [, artifactId, artifactVersion] = match;\n\n res = { artifactId, artifactVersion, scriptType };\n }\n }\n\n return res;\n },\n null,\n );\n};\n\nexport const fullArtifactIdToArtifactId = (\n fullArtifactId: string | undefined,\n) => {\n if (typeof fullArtifactId !== 'string') {\n return '';\n }\n\n return last(fullArtifactId.split('.')) || '';\n};\n\nexport const getArtifactDataFromBaseParams = (\n baseParams: PluginArgs['baseParams'],\n): ArtifactData => {\n const { fullArtifactId, artifactVersion } = baseParams;\n\n return {\n artifactId: fullArtifactIdToArtifactId(fullArtifactId),\n artifactVersion,\n scriptType: StacktraceScriptType.WIX_SERVICE,\n };\n};\n\nexport const isSameArtifact = (\n artifactData1: ArtifactData,\n artifactData2: ArtifactData,\n): boolean => artifactData1.artifactId === artifactData2.artifactId;\n\nexport const isArtifactMismatch = (\n currentArtifactData: ArtifactData,\n stackTraceArtifactsData: ArtifactData[],\n): boolean =>\n stackTraceArtifactsData.length > 0 &&\n currentArtifactData.artifactId !== stackTraceArtifactsData[0].artifactId;\n\nexport const getFirstMatchingArtifact = (\n artifactData: ArtifactData,\n stackTraceArtifactsData: ArtifactData[],\n): ArtifactData | null => {\n for (const artifact of stackTraceArtifactsData) {\n const { artifactId } = artifact;\n\n if (artifactId === artifactData.artifactId) {\n return artifact;\n }\n }\n\n return null;\n};\n", "export const getQueryParamValue = (key: string): string | null => {\n if (typeof window === 'undefined') {\n return null;\n }\n const queryParams = new URLSearchParams(window.location.search);\n return queryParams.get(key);\n};\n\nexport const hasQueryParam = (key: string) => {\n const queryParamValue = getQueryParamValue(key);\n return queryParamValue === 'true';\n};\n", "export const getCookieOverrideValue = (artifactId: string): string | null => {\n if (typeof document === 'undefined') {\n return null;\n }\n\n const wixStaticsVersionsCookie = document.cookie\n .split(';')\n .map((c) => c.trim())\n .find((c) => c.startsWith('wixStaticsVersions='));\n\n if (!wixStaticsVersionsCookie) {\n return null;\n }\n\n const cookieValue = wixStaticsVersionsCookie.split('=')[1].trim();\n const overrideArtifactEntry = cookieValue\n .split('|')\n .find((overrideEntry) => overrideEntry.startsWith(`${artifactId}#`));\n\n if (!overrideArtifactEntry) {\n return null;\n }\n\n return overrideArtifactEntry.split('#')[1];\n};\n", "import { fullArtifactIdToArtifactId } from './artifact-utils';\nimport { getQueryParamValue, hasQueryParam } from './url-utils';\nimport { getCookieOverrideValue } from './cookie-utils';\n\nexport enum RuntimeEnvironment {\n PRODUCTION = 'production',\n DEVELOPMENT = 'development',\n BOT = 'bot',\n INVALID_USER_AGENT = 'invalid_useragent',\n SLED = 'sled',\n SERVER = 'server',\n TEST = 'test',\n}\n\nconst FORCE_PANORAMA_REPORT_QUERY_PARAM = 'forcePanoramaReport';\nconst ENABLE_PANORAMA_LOGS_QUERY_PARAM = 'enablePanoramaLogs';\n\nexport const hasForcePanoramaReportQueryParam = (): boolean => {\n return hasQueryParam(FORCE_PANORAMA_REPORT_QUERY_PARAM);\n};\n\nexport const hasEnablePanoramaLogsQueryParam = (): boolean => {\n return hasQueryParam(ENABLE_PANORAMA_LOGS_QUERY_PARAM);\n};\n\nexport const checkIsLocalMode = (fullArtifactId: string): boolean => {\n const artifactId = fullArtifactIdToArtifactId(fullArtifactId);\n if (!artifactId) {\n return false;\n }\n\n const queryParamOverrideValue = getQueryParamValue(`${artifactId}-override`);\n const isLocalQueryParamOverride =\n queryParamOverrideValue && queryParamOverrideValue.includes('localhost');\n\n if (isLocalQueryParamOverride) {\n return true;\n }\n\n const wixStaticCookieValue = getCookieOverrideValue(artifactId);\n return !!wixStaticCookieValue && wixStaticCookieValue.includes('localhost');\n};\n\nexport function calculateEnvironment(): RuntimeEnvironment {\n if (\n typeof WorkerGlobalScope !== 'undefined' &&\n self instanceof WorkerGlobalScope\n ) {\n // it's not clear for now how to safely determine the env in a worker given its limited API access, so we return the safest value\n return RuntimeEnvironment.PRODUCTION;\n }\n\n if (typeof window === 'undefined') {\n try {\n return (\n (process.env.NODE_ENV as RuntimeEnvironment) ||\n RuntimeEnvironment.SERVER\n );\n } catch {\n return RuntimeEnvironment.SERVER;\n }\n }\n\n const { hostname } = window.location;\n const { userAgent } = window.navigator;\n const { cookie } = window.document;\n\n // https://github.com/wix-private/sled/blob/c07286aac964a5acc4a1cb1e8c213c3b1fc0bf5d/packages/sled-test-runner/src/jest-runtime/lib/sled-global.ts#L134\n const isSled = /(^|;)\\s*automation\\s*=\\s*sled:/.test(cookie);\n\n const isLocalhost =\n /localhost|127\\.0\\.0\\.1|::1|\\.local|local\\.wix\\.com|^$/i.test(hostname);\n\n const isBot =\n /Googlebot|AdsBot-Google-Mobile|bingbot|BingPreview|facebookexternalhit|Baiduspider|YandexBot/i.test(\n userAgent,\n );\n\n const isNotValidUserAgent =\n /BonEcho|NewsGator|SeaMonkey|iTunes|Epiphany|Konqueror|Sleipnir|IceWeasel/i.test(\n userAgent,\n );\n\n switch (true) {\n case isSled:\n return RuntimeEnvironment.SLED;\n case process.env.NODE_ENV === 'test':\n return RuntimeEnvironment.TEST;\n case process.env.NODE_ENV === 'development' || isLocalhost:\n return RuntimeEnvironment.DEVELOPMENT;\n case isBot:\n return RuntimeEnvironment.BOT;\n case isNotValidUserAgent:\n return RuntimeEnvironment.INVALID_USER_AGENT;\n default:\n return RuntimeEnvironment.PRODUCTION;\n }\n}\n", "import { StacktraceScriptType } from '../../types';\n\nexport const PANORAMA_DATA_KEY = '__panoramaData';\n\nexport const BlacklistedStacktraceScriptTypes = [\n StacktraceScriptType.BROWSER_EXTENSION,\n];\n", "import type { Hub } from '@sentry/browser';\nimport type { HubMap } from './sentry-plugin-types';\nimport type { PluginArgs } from '../plugin-types';\n\nconst SENTRY_HUBS_KEY = 'sentryHubs';\nconst SENTRY_MAIN_HUB_KEY = 'sentryMainHub';\nconst SENTRY_GLOBAL_HUB_KEY = 'sentryGlobalHub';\n\nconst getHubMap = (globalConfig: PluginArgs['globalConfig']): HubMap => {\n if (!globalConfig.getStateValue(SENTRY_HUBS_KEY)) {\n globalConfig.setStateValue(SENTRY_HUBS_KEY, new Map());\n }\n\n return globalConfig.getStateValue(SENTRY_HUBS_KEY)!;\n};\n\nexport const getMainHub = (\n globalConfig: PluginArgs['globalConfig'],\n): Hub | null => globalConfig.getStateValue(SENTRY_MAIN_HUB_KEY) ?? null;\n\nexport const setMainHub = (\n hub: Hub,\n globalConfig: PluginArgs['globalConfig'],\n) => globalConfig.setStateValue(SENTRY_MAIN_HUB_KEY, hub);\n\nexport const getGlobalHub = (\n globalConfig: PluginArgs['globalConfig'],\n): Hub | null => globalConfig.getStateValue(SENTRY_GLOBAL_HUB_KEY) ?? null;\n\nexport const setGlobalHub = (\n hub: Hub,\n globalConfig: PluginArgs['globalConfig'],\n) => globalConfig.setStateValue(SENTRY_GLOBAL_HUB_KEY, hub);\n\nexport const getHubForArtifact = (\n artifactId: string,\n globalConfig: PluginArgs['globalConfig'],\n): Hub | null => getHubMap(globalConfig).get(artifactId) ?? null;\n\nexport const setHubForArtifact = (\n hub: Hub,\n artifactId: string,\n globalConfig: PluginArgs['globalConfig'],\n) => getHubMap(globalConfig).set(artifactId, hub);\n\nexport const getHubForDsn = (\n dsn: string,\n globalConfig: PluginArgs['globalConfig'],\n): Hub | null => getHubMap(globalConfig).get(dsn) ?? null;\n\nexport const setHubForDsn = (\n hub: Hub,\n dsn: string,\n globalConfig: PluginArgs['globalConfig'],\n) => getHubMap(globalConfig).set(dsn, hub);\n", "import type { EventHint, Hub, Event } from '@sentry/browser';\nimport { LogLevel } from '@wix/panorama-common-shared/types';\nimport type { ArtifactData } from '../../types';\nimport type { PluginArgs } from '../plugin-types';\nimport type { SentryPluginErrorData } from './sentry-plugin-types';\nimport {\n BlacklistedStacktraceScriptTypes,\n PANORAMA_DATA_KEY,\n} from './sentry-plugin-constants';\nimport { getHubForArtifact } from './sentry-plugin-state';\nimport { getFirstMatchingArtifact } from '../../utils/artifact-utils';\n\n/**\n * Safe Panorama logger to be used within Sentry's \"beforeSend\" hook so we don't trigger report loops if the call fails\n */\nexport const createSafePanoramaLogger =\n (baseClient: PluginArgs['baseClient']) =>\n (logLevel: LogLevel, message: string, data?: Record<string, any>) => {\n try {\n baseClient.log(logLevel, message, data);\n } catch (e) {}\n };\n\n/**\n * Safe Panorama error reporter to be used within Sentry's \"beforeSend\" hook so we don't trigger report loops if the call fails\n */\nexport const createSafePanoramaErrorReporter =\n (baseClient: PluginArgs['baseClient']) =>\n (\n error: EventHint['originalException'],\n panoramaData: SentryPluginErrorData,\n ) => {\n if (!(error instanceof Error)) {\n return;\n }\n\n try {\n baseClient.reportError(error, panoramaData);\n } catch (e) {\n // Log to Panorama if the above call threw an exception\n createSafePanoramaLogger(baseClient)(\n LogLevel.Error,\n '[panorama-sentry-plugin] Failed to report error to Panorama',\n {\n ...panoramaData,\n error: e?.toString(),\n },\n );\n }\n };\n\nexport const isUnprocessedUnhandledError = (event: Event): boolean =>\n !event.contexts?.[PANORAMA_DATA_KEY];\n\nexport const isScriptTypeBlacklisted = (\n stackTraceArtifactsData: ArtifactData[],\n): boolean =>\n stackTraceArtifactsData.some(({ scriptType }) =>\n BlacklistedStacktraceScriptTypes.includes(scriptType),\n );\n\nexport const buildReleaseString = (artifactData: ArtifactData) => {\n const { artifactId, artifactVersion } = artifactData;\n\n return `${artifactId}@${artifactVersion}`;\n};\n\nexport const setReleaseFromStackTraceArtifactsData = (\n event: Event,\n currentArtifactData: ArtifactData,\n stackTraceArtifactsData: ArtifactData[],\n): Event => {\n const artifact = getFirstMatchingArtifact(\n currentArtifactData,\n stackTraceArtifactsData,\n );\n\n if (!artifact) {\n return event;\n }\n\n const release = buildReleaseString(artifact);\n\n return { ...event, release };\n};\n\nexport const getFirstMatchingHub = (\n stackTraceArtifactsData: ArtifactData[],\n globalConfig: PluginArgs['globalConfig'],\n): { hub: Hub; artifactData: ArtifactData } | null => {\n for (const stackTraceArtifactData of stackTraceArtifactsData) {\n const hub = getHubForArtifact(\n stackTraceArtifactData.artifactId,\n globalConfig,\n );\n\n if (hub) {\n return { hub, artifactData: stackTraceArtifactData };\n }\n }\n\n return null;\n};\n", "import type { Breadcrumb, BreadcrumbHint, Hub } from '@sentry/browser';\nimport type { PluginArgs } from '../plugin-types';\nimport { getGlobalHub, getMainHub } from './sentry-plugin-state';\n\nconst getBreadcrumbsFromHub = (hub: Hub | null): Breadcrumb[] => {\n if (!hub) {\n return [];\n }\n\n const values = Object.values(hub.getScope() ?? {}) as Breadcrumb[][];\n const breadcrumbKeys: (keyof Breadcrumb)[] = [\n 'category',\n 'data',\n 'level',\n 'message',\n 'event_id',\n 'type',\n ];\n\n try {\n for (const value of values) {\n if (\n Array.isArray(value) &&\n value[0]?.timestamp &&\n breadcrumbKeys.some((key) => !!value[0]?.[key])\n ) {\n return value;\n }\n }\n\n return [];\n } catch {\n return [];\n }\n};\n\nexport const getBreadcrumbs = (\n globalConfig: PluginArgs['globalConfig'],\n): Breadcrumb[] => {\n const breadcrumbs = [\n ...getBreadcrumbsFromHub(getGlobalHub(globalConfig)),\n ...getBreadcrumbsFromHub(getMainHub(globalConfig)),\n ].map((breadcrumb) => {\n let data: Record<string, string> | undefined;\n\n try {\n if (breadcrumb.data) {\n data = Object.entries(breadcrumb.data).reduce<Record<string, string>>(\n (res, [key, value]) => {\n res[key] = Array.isArray(value)\n ? value.map((val) => val?.toString())\n : value?.toString();\n return res;\n },\n {},\n );\n }\n } catch {}\n\n return { ...breadcrumb, ...(data ? { data } : {}) };\n });\n\n return breadcrumbs.slice(Math.max(0, breadcrumbs.length - 100));\n};\n\n/**\n * Enrich 'ui.click' and 'ui.input' breadcrumbs in a way that nearest data-hook will be shown in the Sentry UI\n */\nexport function enrichBreadcrumbsWithDataHooks(\n breadcrumb: Breadcrumb,\n hint?: BreadcrumbHint,\n) {\n const { category } = breadcrumb;\n\n const isUiInteractionBreadcrumb =\n category && (category === 'ui.click' || category === 'ui.input');\n const targetElement = hint && hint.event && hint.event.target;\n\n if (isUiInteractionBreadcrumb && targetElement) {\n const nodeWithDataHook = targetElement.closest('[data-hook]');\n\n if (nodeWithDataHook) {\n const dataHook = nodeWithDataHook.getAttribute('data-hook');\n\n if (targetElement === nodeWithDataHook) {\n breadcrumb.message = `${breadcrumb.message} [data-hook=\"${dataHook}\"]`;\n } else {\n breadcrumb.message = `${breadcrumb.message} parent:[data-hook=\"${dataHook}\"]`;\n }\n }\n }\n\n return breadcrumb;\n}\n", "import type { Scope, Event } from '@sentry/browser';\nimport type { Context, Severity } from '@sentry/types';\nimport type { SentryPluginErrorData } from './sentry-plugin-types';\nimport type { PluginArgs } from '../plugin-types';\nimport { type ArtifactData, ExceptionType } from '../../types';\nimport { extractWixHttpErrorDetails } from '../../utils/error-utils';\nimport { getBreadcrumbs } from './sentry-plugin-breadcrumbs';\nimport { PANORAMA_DATA_KEY } from './sentry-plugin-constants';\n\nexport const attachPanoramaDataToSentryScope = (\n scope: Scope,\n data?: SentryPluginErrorData,\n) => {\n scope.setContext(PANORAMA_DATA_KEY, {\n ...data,\n exceptionType: data?.exceptionType || ExceptionType.HANDLED,\n } as Context);\n\n if (data?.severity) {\n scope.setLevel(data.severity as unknown as Severity);\n }\n\n return scope;\n};\n\nexport const extractPanoramaDataFromSentryEvent = (\n event: Event,\n): SentryPluginErrorData => {\n let res: SentryPluginErrorData = {};\n\n if (event.contexts?.[PANORAMA_DATA_KEY]) {\n res = {\n ...res,\n ...event.contexts[PANORAMA_DATA_KEY],\n };\n\n // eslint-disable-next-line @typescript-eslint/no-dynamic-delete\n delete event.contexts[PANORAMA_DATA_KEY];\n }\n\n res.exceptionType = res.exceptionType || ExceptionType.UNHANDLED;\n\n return res;\n};\n\nexport const enrichPanoramaDataWithSentryEventData = (\n data: SentryPluginErrorData,\n event: Event,\n {\n stackTraceArtifactsData,\n }: {\n stackTraceArtifactsData: ArtifactData[];\n },\n): SentryPluginErrorData => ({\n ...data,\n externalId: event.event_id,\n environment: data.environment ?? event.environment,\n stackTraceArtifacts: stackTraceArtifactsData,\n});\n\nexport const enrichSentryEventWithPanoramaData = (\n event: Event,\n data: SentryPluginErrorData,\n baseClient: PluginArgs['baseClient'],\n): Event => {\n const dataWithDefaults = baseClient.getErrorMonitorDataWithDefaults(\n {\n tags: {\n exceptionType: data.exceptionType,\n },\n },\n {\n tags: data.tags,\n context: data.context,\n environment: data.environment,\n },\n {\n tags: event.tags as SentryPluginErrorData['tags'],\n context: event.contexts,\n environment: event.environment,\n },\n );\n\n event = {\n ...event,\n tags: dataWithDefaults?.tags,\n contexts: dataWithDefaults?.context,\n environment: dataWithDefaults?.environment,\n };\n\n return event;\n};\n\nexport const enrichSentryEventWithBreadcrumbs = (\n event: Event,\n globalConfig: PluginArgs['globalConfig'],\n): Event => {\n return {\n ...event,\n breadcrumbs: getBreadcrumbs(globalConfig),\n };\n};\n\nexport const enrichSentryEventWithWixHttpErrorData = (\n event: Event,\n error: Error,\n): Event => {\n const { requestId } = extractWixHttpErrorDetails(error);\n\n return {\n ...event,\n tags: {\n ...event.tags,\n ...(requestId ? { requestId } : {}),\n },\n };\n};\n", "import { type ArtifactData, ExceptionType } from '../../types';\nimport type { PluginArgs } from '../plugin-types';\nimport {\n type RereouteOkDecision,\n type RerouteContinueDecision,\n type RerouteDropDecision,\n type SentryPluginErrorData,\n RoutingAction,\n RoutingActionReason,\n} from './sentry-plugin-types';\nimport {\n getFirstMatchingHub,\n isScriptTypeBlacklisted,\n} from './sentry-plugin-utils';\nimport { isArtifactMismatch, isSameArtifact } from '../../utils/artifact-utils';\n\nexport const getRoutingDecision = (options: {\n artifactData: ArtifactData;\n stackTraceArtifactsData: ArtifactData[];\n panoramaData: SentryPluginErrorData;\n globalConfig: PluginArgs['globalConfig'];\n}): RereouteOkDecision | RerouteContinueDecision | RerouteDropDecision => {\n const { artifactData, stackTraceArtifactsData, panoramaData, globalConfig } =\n options;\n\n const { exceptionType } = panoramaData;\n\n if (exceptionType === ExceptionType.HANDLED) {\n return {\n routingAction: RoutingAction.CONTINUE,\n routingActionReason: RoutingActionReason.ERROR_IS_HANDLED,\n };\n }\n\n if (stackTraceArtifactsData.length === 0) {\n return {\n routingAction: RoutingAction.CONTINUE,\n routingActionReason: RoutingActionReason.NO_ARTIFACTS_IN_STACKTRACE,\n };\n }\n\n if (isScriptTypeBlacklisted(stackTraceArtifactsData)) {\n return {\n routingAction: RoutingAction.DROP,\n routingActionReason: RoutingActionReason.BLACKLISTED_SCRIPT_TYPE,\n };\n }\n\n if (!isArtifactMismatch(artifactData, stackTraceArtifactsData)) {\n return {\n routingAction: RoutingAction.CONTINUE,\n routingActionReason: RoutingActionReason.HANDLER_MATCH,\n };\n }\n\n const result = getFirstMatchingHub(stackTraceArtifactsData, globalConfig);\n\n if (!result) {\n return {\n routingAction: RoutingAction.DROP,\n routingActionReason:\n RoutingActionReason.NO_REGISTERED_ARTIFACTS_IN_STACKTRACE,\n };\n }\n\n const { hub, artifactData: matchedArtifactData } = result;\n\n if (isSameArtifact(artifactData, matchedArtifactData)) {\n return {\n routingAction: RoutingAction.CONTINUE,\n routingActionReason: RoutingActionReason.HANDLER_REROUTE_MATCH,\n };\n }\n\n const routingActionReason = isSameArtifact(\n matchedArtifactData,\n stackTraceArtifactsData[0],\n )\n ? RoutingActionReason.EXACT_REROUTE_MATCH\n : RoutingActionReason.FALLBACK_REROUTE_MATCH;\n\n return {\n routingAction: RoutingAction.REROUTE,\n routingActionReason,\n targetHub: hub,\n };\n};\n", "import type { Event, EventHint } from '@sentry/browser';\nimport type { ArtifactData } from '../../types';\nimport { extractArtifactDataFromScriptUrl } from '../../utils/artifact-utils';\n\ninterface StackFrame {\n filename?: string;\n raw?: string;\n}\n\nconst splitOriginalStacktraceIntoFrames = (\n originalException?: Error | string | null,\n): StackFrame[] => {\n if (!(originalException instanceof Error)) {\n return [];\n }\n\n const { stack } = originalException;\n\n return (\n stack\n ?.split('\\n')\n .map((raw) => {\n return { raw };\n })\n .reverse() || []\n );\n};\n\nexport const extractArtifactsDataFromSentryEvent = (\n event: Event,\n hint?: EventHint,\n): ArtifactData[] => {\n const artifacts: ArtifactData[] = [];\n const map = new Map();\n const frames: StackFrame[] =\n event.exception?.values?.[0]?.stacktrace?.frames ||\n splitOriginalStacktraceIntoFrames(hint?.originalException);\n\n for (let i = frames.length - 1; i >= 0; i--) {\n const { filename, raw } = frames[i];\n const element = filename ?? raw;\n\n if (!element) {\n continue;\n }\n\n const artifactData = extractArtifactDataFromScriptUrl(element);\n\n if (!artifactData) {\n continue;\n }\n\n const { artifactId, artifactVersion } = artifactData;\n const key = artifactId + artifactVersion;\n\n if (map.has(key)) {\n continue;\n }\n\n map.set(key, true);\n artifacts.push(artifactData);\n }\n\n return artifacts;\n};\n", "import type { Hub } from '@sentry/browser';\nimport type { PluginArgs } from '../plugin-types';\nimport type {\n SentryHubInvalidResult,\n SentryHubResolvedResult,\n SentryHubLazyResult,\n Sentry,\n SentryBeforeSend,\n LazySentry,\n} from './sentry-plugin-types';\n\nexport const createResolvedHubResult = (\n sentry: Sentry,\n createHub: (sentry: Sentry) => Hub,\n sentryBeforeSend: SentryBeforeSend,\n): SentryHubResolvedResult => ({\n hub: createHub(sentry),\n sentry,\n sentryBeforeSend,\n});\n\nexport const createLazyHubResult = (\n globalConfig: PluginArgs['globalConfig'],\n lazySentry: LazySentry,\n createHub: (sentry: Sentry) => Hub,\n sentryBeforeSend: SentryBeforeSend,\n): SentryHubLazyResult => {\n let resolveFn: (res: SentryHubResolvedResult) => void;\n const promise = new Promise<SentryHubResolvedResult>((resolve) => {\n resolveFn = resolve;\n });\n\n const hubResult = {\n // This method should be called when we need to trigger the Sentry lazy loader (for example after using reportError)\n load: () => {\n const sentryLazyLoaderTriggered = globalConfig.getStateValue(\n 'sentryLazyLoaderTriggered',\n );\n\n if (sentryLazyLoaderTriggered) {\n return promise;\n }\n\n globalConfig.setStateValue('sentryLazyLoaderTriggered', true);\n lazySentry.forceLoad();\n\n return promise;\n },\n // Call this method when we need to wait for Sentry to be resolved\n wait: () => promise,\n sentryBeforeSend,\n };\n\n // Listen to Sentry loader. The loader can run either because we triggered it or because it was triggered outside of Panorama.\n lazySentry.onLoad((sentry) => {\n globalConfig.setStateValue('sentryResolved', sentry);\n\n // Resolve any awaiting consumers with the original lazy object augmented with the resolved values\n resolveFn(\n Object.assign(\n hubResult,\n createResolvedHubResult(sentry, createHub, sentryBeforeSend),\n ),\n );\n });\n\n return hubResult;\n};\n\nexport const loadLazyHub = (\n hubResult: SentryHubLazyResult,\n): Promise<SentryHubResolvedResult> => hubResult.load();\n\nexport const waitForLazyHub = (\n hubResult: SentryHubLazyResult,\n): Promise<SentryHubResolvedResult> => hubResult.wait();\n\nexport const isLazySentry = (\n hubResult: Sentry | LazySentry,\n): hubResult is LazySentry => !(hubResult as Sentry).BrowserClient;\n\nexport const isHubInvalid = (\n hubResult:\n | SentryHubResolvedResult\n | SentryHubLazyResult\n | SentryHubInvalidResult,\n): hubResult is SentryHubInvalidResult =>\n (hubResult as SentryHubInvalidResult).hub === null;\n\nexport const isHubResolved = (\n hubResult: SentryHubResolvedResult | SentryHubLazyResult,\n): hubResult is SentryHubResolvedResult =>\n !!(hubResult as SentryHubResolvedResult).hub;\n", "import type { BrowserOptions } from '@sentry/browser';\nimport type { ArtifactData } from '../../types';\nimport type { PluginFunction, PluginArgs, PluginParams } from '../plugin-types';\nimport type {\n SentryHubInvalidResult,\n SentryHubResolvedResult,\n SentryHubLazyResult,\n Sentry,\n SentryBeforeSend,\n} from './sentry-plugin-types';\nimport { RoutingAction } from './sentry-plugin-types';\nimport { Hook } from '../hooks-manager';\nimport { defaults } from '../../utils/general-utils';\nimport { calculateEnvironment } from '../../utils/environment-utils';\nimport { getArtifactDataFromBaseParams } from '../../utils/artifact-utils';\nimport { normalizeError } from '../../utils/error-utils';\nimport {\n buildReleaseString,\n setReleaseFromStackTraceArtifactsData,\n createSafePanoramaErrorReporter,\n isUnprocessedUnhandledError,\n} from './sentry-plugin-utils';\nimport { enrichBreadcrumbsWithDataHooks } from './sentry-plugin-breadcrumbs';\n\nimport {\n getGlobalHub,\n getHubForDsn,\n getMainHub,\n setGlobalHub,\n setHubForArtifact,\n setHubForDsn,\n setMainHub,\n} from './sentry-plugin-state';\nimport {\n attachPanoramaDataToSentryScope,\n enrichPanoramaDataWithSentryEventData,\n enrichSentryEventWithBreadcrumbs,\n enrichSentryEventWithPanoramaData,\n enrichSentryEventWithWixHttpErrorData,\n extractPanoramaDataFromSentryEvent,\n} from './sentry-plugin-enricher';\nimport { getRoutingDecision } from './sentry-plugin-router';\nimport { extractArtifactsDataFromSentryEvent } from './sentry-plugin-stacktrace';\nimport {\n createLazyHubResult,\n createResolvedHubResult,\n isHubInvalid,\n isHubResolved,\n isLazySentry,\n loadLazyHub,\n waitForLazyHub,\n} from './sentry-plugin-hub-utils';\n\nconst createHub = (options: {\n artifactData: ArtifactData;\n pluginParams: PluginParams;\n globalConfig: PluginArgs['globalConfig'];\n}): SentryHubResolvedResult | SentryHubLazyResult | SentryHubInvalidResult => {\n const { artifactData, pluginParams, globalConfig } = options;\n const { sentryTransport, sentryDsn, sentryEnvironment } = pluginParams;\n let { sentry } = pluginParams;\n\n if (!sentry || !sentryDsn) {\n return { hub: null };\n }\n\n let sentryBeforeSendHook: BrowserOptions['beforeSend'];\n const sentryBeforeSend: SentryBeforeSend = (handler) => {\n sentryBeforeSendHook = handler;\n };\n\n const create = (loadedSentry: Sentry) =>\n new loadedSentry.Hub(\n new loadedSentry.BrowserClient({\n dsn: sentryDsn,\n environment: sentryEnvironment ?? calculateEnvironment(),\n release: buildReleaseString(artifactData),\n transport: sentryTransport,\n integrations: [...loadedSentry.defaultIntegrations],\n normalizeDepth: 4, // Change the default nesting depth of (3) because we use one level of nesting when encoding the Panorama context\n beforeBreadcrumb: enrichBreadcrumbsWithDataHooks,\n beforeSend(event, hint) {\n return typeof sentryBeforeSendHook === 'function'\n ? sentryBeforeSendHook(event, hint)\n : event;\n },\n }),\n );\n\n sentry = globalConfig.getStateValue('sentryResolved') ?? sentry;\n\n if (isLazySentry(sentry)) {\n return createLazyHubResult(globalConfig, sentry, create, sentryBeforeSend);\n }\n\n return createResolvedHubResult(sentry, create, sentryBeforeSend);\n};\n\nconst initHub = (\n hubResult: SentryHubLazyResult | SentryHubResolvedResult,\n options: {\n artifactData: ArtifactData;\n baseParams: PluginArgs['baseParams'];\n pluginParams: Required<PluginParams>;\n globalConfig: PluginArgs['globalConfig'];\n },\n) => {\n const { artifactData, baseParams, pluginParams, globalConfig } = options;\n const { fullArtifactId, componentId, uuid, msid } = baseParams;\n const { sentryDsn, sentryMain } = pluginParams;\n const { artifactId } = artifactData;\n\n const init = (resolvedHubResult: SentryHubResolvedResult) => {\n const { hub, sentry } = resolvedHubResult;\n\n if (uuid) {\n hub.setUser({\n id: uuid,\n });\n }\n\n hub.setTags({\n fullArtifactId,\n componentId,\n msid,\n sessionId: globalConfig.getSessionId(),\n });\n\n if (!getMainHub(globalConfig) && sentryMain) {\n if (!getGlobalHub(globalConfig)) {\n const globalHub = sentry.getCurrentHub();\n\n if (globalHub.getClient()) {\n setGlobalHub(globalHub, globalConfig);\n }\n }\n\n sentry.makeMain(hub);\n setMainHub(hub, globalConfig);\n }\n\n setHubForArtifact(hub, artifactId, globalConfig);\n setHubForDsn(hub, sentryDsn, globalConfig);\n };\n\n if (isHubResolved(hubResult)) {\n init(hubResult);\n } else {\n waitForLazyHub(hubResult).then(init);\n }\n};\n\nconst initHooks = (\n hubResult: SentryHubLazyResult | SentryHubResolvedResult,\n options: {\n artifactData: ArtifactData;\n pluginParams: Required<PluginParams>;\n baseClient: PluginArgs['baseClient'];\n globalConfig: PluginArgs['globalConfig'];\n hooksManager: PluginArgs['hooksManager'];\n },\n) => {\n const { artifactData, pluginParams, baseClient, globalConfig, hooksManager } =\n options;\n\n const { sentryBeforeSend } = hubResult;\n\n const reportErrorToPanoramaSafely =\n createSafePanoramaErrorReporter(baseClient);\n\n // Subscribe to Sentry error reports\n sentryBeforeSend((event, hint) => {\n const error = normalizeError(event, hint?.originalException!);\n\n if (\n isUnprocessedUnhandledError(event) &&\n !hooksManager.invoke(Hook.beforeUnhandledError, error)\n ) {\n return null;\n }\n\n const stackTraceArtifactsData = extractArtifactsDataFromSentryEvent(\n event,\n hint,\n );\n\n let panoramaData = extractPanoramaDataFromSentryEvent(event);\n\n const { routingAction: prevRoutingAction } = panoramaData;\n\n let reportToPanorama = false;\n let reportToSentry = false;\n\n if (prevRoutingAction === RoutingAction.REROUTE) {\n reportToPanorama = true;\n reportToSentry = true;\n } else {\n const { routingAction, routingActionReason, targetHub } =\n getRoutingDecision({\n artifactData,\n stackTraceArtifactsData,\n panoramaData,\n globalConfig,\n });\n\n panoramaData = {\n ...panoramaData,\n routingAction,\n routingActionReason,\n };\n\n switch (routingAction) {\n case RoutingAction.REROUTE:\n reportToPanorama = false;\n reportToSentry = false;\n\n // Report the error to Sentry using the correct Hub\n targetHub.withScope((scope) => {\n attachPanoramaDataToSentryScope(scope, {\n ...panoramaData,\n originalHandler: artifactData,\n });\n\n targetHub.captureException(error);\n });\n break;\n case RoutingAction.CONTINUE:\n reportToPanorama = true;\n reportToSentry = true;\n break;\n case RoutingAction.DROP:\n reportToPanorama = true;\n reportToSentry = false;\n break;\n }\n }\n\n if (reportToPanorama) {\n panoramaData = enrichPanoramaDataWithSentryEventData(\n panoramaData,\n event,\n {\n stackTraceArtifactsData,\n },\n );\n\n reportErrorToPanoramaSafely(error, panoramaData);\n }\n\n if (reportToSentry) {\n if (pluginParams.sentryGetReleaseFromStacktrace) {\n event = setReleaseFromStackTraceArtifactsData(\n event,\n artifactData,\n stackTraceArtifactsData,\n );\n }\n\n event = enrichSentryEventWithBreadcrumbs(event, globalConfig);\n event = enrichSentryEventWithPanoramaData(\n event,\n panoramaData,\n baseClient,\n );\n\n event = enrichSentryEventWithWixHttpErrorData(event, error);\n\n return event;\n }\n\n return null;\n });\n\n // Subscribe to Panorama error reports\n hooksManager.tap(\n Hook.beforeReportError,\n (error, data, errorMonitorOptions) => {\n if (data?.externalId) {\n // This error already went through Sentry's \"beforeSend\", just report it to Panorama by returning void\n return;\n }\n\n const reportErrorToSentry = (\n resolvedHbResult: SentryHubResolvedResult,\n ) => {\n let sentryHub = resolvedHbResult.hub;\n\n const { sentryLookupDsn, sentryEnvironment } =\n errorMonitorOptions?.pluginParams ?? {};\n\n // If a lookup DSN is provided try to get its matching Hub\n if (sentryLookupDsn) {\n const hub = getHubForDsn(sentryLookupDsn, globalConfig);\n\n if (hub) {\n sentryHub = hub;\n }\n }\n\n // Report the error to Sentry\n sentryHub.withScope((scope) => {\n attachPanoramaDataToSentryScope(\n scope,\n defaults(data, {\n environment: sentryEnvironment,\n }),\n );\n\n sentryHub.captureException(error);\n });\n };\n\n if (isHubResolved(hubResult)) {\n reportErrorToSentry(hubResult);\n } else {\n loadLazyHub(hubResult).then(reportErrorToSentry);\n }\n\n // Don't report the error to Panorama yet by returning false\n return false;\n },\n );\n\n hooksManager.tap(Hook.beforeAddBreadcrumb, (breadcrumb) => {\n const addBreadcrumb = () => {\n const hub = getGlobalHub(globalConfig) ?? getMainHub(globalConfig);\n\n hub?.addBreadcrumb(breadcrumb);\n };\n\n if (isHubResolved(hubResult)) {\n addBreadcrumb();\n } else {\n loadLazyHub(hubResult).then(addBreadcrumb);\n }\n });\n};\n\nexport const sentryPlugin =\n (pluginFactoryParams: PluginParams = {}): PluginFunction<any> =>\n ({ baseParams, pluginParams, baseClient, hooksManager, globalConfig }) => {\n pluginParams = defaults(pluginParams, pluginFactoryParams);\n\n const artifactData = getArtifactDataFromBaseParams(baseParams);\n\n const hubResult = createHub({\n artifactData,\n pluginParams,\n globalConfig,\n });\n\n if (isHubInvalid(hubResult)) {\n return;\n }\n\n initHub(hubResult, {\n artifactData,\n baseParams,\n pluginParams: pluginParams as Required<PluginParams>,\n globalConfig,\n });\n\n initHooks(hubResult, {\n artifactData,\n pluginParams: pluginParams as Required<PluginParams>,\n baseClient,\n hooksManager,\n globalConfig,\n });\n };\n", "import { Hook } from '../hooks-manager';\nimport { type PluginFunction } from '../plugin-types';\n\nexport const topLevelPropsExtractorPlugin =\n (extractDataFields: string[]): PluginFunction<any> =>\n ({ hooksManager }) => {\n hooksManager.tap(Hook.beforeReport, (eventPayload) => {\n extractDataFields.forEach((field) => {\n const { data } = eventPayload;\n\n if (data && typeof data[field] !== 'undefined') {\n (eventPayload as any)[field] = data[field];\n\n data[field] = undefined;\n }\n });\n });\n };\n", "import { Hook } from '../hooks-manager';\nimport { type PluginFunction } from '../plugin-types';\n\nexport interface PageParams {\n pageUrl?: string;\n}\n\nexport const pageParamsEnricherPlugin =\n (pageParams: PageParams = {}): PluginFunction<any> =>\n ({ hooksManager }) => {\n const { pageUrl } = pageParams;\n\n hooksManager.tap(Hook.beforeReport, (eventPayload) => {\n if (!pageUrl && typeof window === 'undefined') {\n return;\n }\n\n eventPayload.httpReferrer = pageUrl ?? window.location.href;\n });\n };\n", "import { LogLevel } from '@wix/panorama-common-shared/types';\n\nconst messageFormatter = (\n artifactId: string,\n componentId: string,\n message: string,\n): string[] => {\n return [\n '%c%s %c%s %c%s %c%s',\n 'color: #D39874',\n 'Panorama logger:',\n 'color: #CAB6D3',\n `${artifactId}`,\n 'color: #B3CAD8',\n `${componentId}`,\n 'color: #A6C6DB',\n `${message}`,\n ];\n};\n\nexport const logToConsole = (\n logLevel: LogLevel,\n artifactId: string | undefined,\n componentId: string | undefined,\n message: string,\n data?: Record<string, any>,\n) => {\n const formattedMessage = messageFormatter(\n artifactId as string,\n componentId as string,\n message,\n );\n\n if (logLevel === LogLevel.Info) {\n console.info(...formattedMessage);\n } else if (logLevel === LogLevel.Warn) {\n console.warn(...formattedMessage);\n } else if (logLevel === LogLevel.Error) {\n console.error(...formattedMessage);\n } else if (logLevel === LogLevel.Debug) {\n console.debug(...formattedMessage);\n } else {\n console.log(...formattedMessage);\n }\n\n if (data && Object.keys(data).length) {\n console.table(data);\n }\n};\n", "import { LogLevel } from '@wix/panorama-common-shared/types';\nimport type { PluginFunction } from '../plugin-types';\nimport { Hook } from '../hooks-manager';\nimport {\n calculateEnvironment,\n checkIsLocalMode,\n hasEnablePanoramaLogsQueryParam,\n hasForcePanoramaReportQueryParam,\n RuntimeEnvironment,\n} from '../../utils/environment-utils';\nimport { logToConsole } from '../../utils/console-utils';\n\nconst EXCLUDED_ENVIRONMENTS = [\n RuntimeEnvironment.DEVELOPMENT,\n RuntimeEnvironment.SLED,\n];\n\nexport const environmentPlugin =\n (): PluginFunction<any> =>\n ({ hooksManager, baseParams: { fullArtifactId, componentId } }) => {\n const environment = calculateEnvironment();\n const isLocalMode = checkIsLocalMode(fullArtifactId);\n const enablePanoramaLogs = hasEnablePanoramaLogsQueryParam();\n const shouldSkipReporting =\n (EXCLUDED_ENVIRONMENTS.includes(environment) || isLocalMode) &&\n !hasForcePanoramaReportQueryParam();\n const shouldLogToConsole = shouldSkipReporting && enablePanoramaLogs;\n\n if (shouldLogToConsole) {\n logToConsole(\n LogLevel.Info,\n fullArtifactId,\n componentId,\n `Local mode detected${\n fullArtifactId ? ` for ${fullArtifactId}` : ''\n }. Panorama will log reports in the console.`,\n );\n }\n\n hooksManager.tap(Hook.beforeReport, (eventPayload) => {\n const {\n data,\n message,\n fullArtifactId: messageFullArtifactId,\n componentId: messageComponentId,\n logLevel,\n } = eventPayload;\n\n if (shouldLogToConsole) {\n logToConsole(\n logLevel as LogLevel,\n messageFullArtifactId,\n messageComponentId,\n message || '',\n data,\n );\n }\n\n if (shouldSkipReporting) {\n return false;\n }\n\n return;\n });\n };\n", "export * from './plugin-types';\nexport { Hook } from './hooks-manager';\nexport type { BatchPayload } from './batch/batch-queue';\nexport { batchPlugin } from './batch/batch-plugin';\nexport { sentryPlugin } from './sentry/sentry-plugin';\nexport { topLevelPropsExtractorPlugin } from './top-level-props-extractor/top-level-props-extractor-plugin';\nexport {\n pageParamsEnricherPlugin,\n type PageParams,\n} from './page-params-enricher/page-params-enricher-plugin';\nexport { environmentPlugin } from './environment/environment-plugin';\n", "export const PANORAMA_APP_DEF_ID = 'b60344aa-05b6-49e0-815e-502ffab84c07';\n\nexport const PANORAMA_GRAFANA_BASE_URL =\n 'https://panorama-grafana.mon.wixprod.net';\n\nexport const DEV_PORTAL_BASE_URL = 'https://bo.wix.com/dev';\n\nexport const SUCCESS_RATE_GRAFANA_INVESTIGATION_DASHBOARD_URL =\n 'https://panorama-grafana.mon.wixprod.net/d/QOCglcv4z/success-rate-drop-breakdown';\n\nexport const DURATION_GRAFANA_INVESTIGATION_DASHBOARD_URL =\n 'https://panorama-grafana.mon.wixprod.net/d/2TD775vVk/duration-increase-breakdown';\n\nexport const CLICKHOUSE_REPORT_URL = 'https://panorama.wixapps.net/api/v1/log';\nexport const CLICKHOUSE_BATCH_REPORT_URL =\n 'https://panorama.wixapps.net/api/v1/bulklog';\n", "/******************************************************************************\nCopyright (c) Microsoft Corporation.\n\nPermission to use, copy, modify, and/or distribute this software for any\npurpose with or without fee is hereby granted.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\nPERFORMANCE OF THIS SOFTWARE.\n***************************************************************************** */\n/* global Reflect, Promise, SuppressedError, Symbol, Iterator */\n\nvar extendStatics = function(d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n};\n\nexport function __extends(d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n}\n\nexport var __assign = function() {\n __assign = Object.assign || function __assign(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n return t;\n }\n return __assign.apply(this, arguments);\n}\n\nexport function __rest(s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n}\n\nexport function __decorate(decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n}\n\nexport function __param(paramIndex, decorator) {\n return function (target, key) { decorator(target, key, paramIndex); }\n}\n\nexport function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\n function accept(f) { if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\"); return f; }\n var kind = contextIn.kind, key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\n var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\n var _, done = false;\n for (var i = decorators.length - 1; i >= 0; i--) {\n var context = {};\n for (var p in contextIn) context[p] = p === \"access\" ? {} : contextIn[p];\n for (var p in contextIn.access) context.access[p] = contextIn.access[p];\n context.addInitializer = function (f) { if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\"); extraInitializers.push(accept(f || null)); };\n var result = (0, decorators[i])(kind === \"accessor\" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\n if (kind === \"accessor\") {\n if (result === void 0) continue;\n if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\n if (_ = accept(result.get)) descriptor.get = _;\n if (_ = accept(result.set)) descriptor.set = _;\n if (_ = accept(result.init)) initializers.unshift(_);\n }\n else if (_ = accept(result)) {\n if (kind === \"field\") initializers.unshift(_);\n else descriptor[key] = _;\n }\n }\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\n done = true;\n};\n\nexport function __runInitializers(thisArg, initializers, value) {\n var useValue = arguments.length > 2;\n for (var i = 0; i < initializers.length; i++) {\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\n }\n return useValue ? value : void 0;\n};\n\nexport function __propKey(x) {\n return typeof x === \"symbol\" ? x : \"\".concat(x);\n};\n\nexport function __setFunctionName(f, name, prefix) {\n if (typeof name === \"symbol\") name = name.description ? \"[\".concat(name.description, \"]\") : \"\";\n return Object.defineProperty(f, \"name\", { configurable: true, value: prefix ? \"\".concat(prefix, \" \", name) : name });\n};\n\nexport function __metadata(metadataKey, metadataValue) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\n}\n\nexport function __awaiter(thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n}\n\nexport function __generator(thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === \"function\" ? Iterator : Object).prototype);\n return g.next = verb(0), g[\"throw\"] = verb(1), g[\"return\"] = verb(2), typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n}\n\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\n\nexport function __exportStar(m, o) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\n}\n\nexport function __values(o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function () {\n if (o && i >= o.length) o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n}\n\nexport function __read(o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n}\n\n/** @deprecated */\nexport function __spread() {\n for (var ar = [], i = 0; i < arguments.length; i++)\n ar = ar.concat(__read(arguments[i]));\n return ar;\n}\n\n/** @deprecated */\nexport function __spreadArrays() {\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\n r[k] = a[j];\n return r;\n}\n\nexport function __spreadArray(to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n}\n\nexport function __await(v) {\n return this instanceof __await ? (this.v = v, this) : new __await(v);\n}\n\nexport function __asyncGenerator(thisArg, _arguments, generator) {\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\n return i = Object.create((typeof AsyncIterator === \"function\" ? AsyncIterator : Object).prototype), verb(\"next\"), verb(\"throw\"), verb(\"return\", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;\n function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }\n function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\n function fulfill(value) { resume(\"next\", value); }\n function reject(value) { resume(\"throw\", value); }\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\n}\n\nexport function __asyncDelegator(o) {\n var i, p;\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }\n}\n\nexport function __asyncValues(o) {\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n var m = o[Symbol.asyncIterator], i;\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\n}\n\nexport function __makeTemplateObject(cooked, raw) {\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\n return cooked;\n};\n\nvar __setModuleDefault = Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n};\n\nvar ownKeys = function(o) {\n ownKeys = Object.getOwnPropertyNames || function (o) {\n var ar = [];\n for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;\n return ar;\n };\n return ownKeys(o);\n};\n\nexport function __importStar(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== \"default\") __createBinding(result, mod, k[i]);\n __setModuleDefault(result, mod);\n return result;\n}\n\nexport function __importDefault(mod) {\n return (mod && mod.__esModule) ? mod : { default: mod };\n}\n\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\n}\n\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\n}\n\nexport function __classPrivateFieldIn(state, receiver) {\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\n}\n\nexport function __addDisposableResource(env, value, async) {\n if (value !== null && value !== void 0) {\n if (typeof value !== \"object\" && typeof value !== \"function\") throw new TypeError(\"Object expected.\");\n var dispose, inner;\n if (async) {\n if (!Symbol.asyncDispose) throw new TypeError(\"Symbol.asyncDispose is not defined.\");\n dispose = value[Symbol.asyncDispose];\n }\n if (dispose === void 0) {\n if (!Symbol.dispose) throw new TypeError(\"Symbol.dispose is not defined.\");\n dispose = value[Symbol.dispose];\n if (async) inner = dispose;\n }\n if (typeof dispose !== \"function\") throw new TypeError(\"Object not disposable.\");\n if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };\n env.stack.push({ value: value, dispose: dispose, async: async });\n }\n else if (async) {\n env.stack.push({ async: true });\n }\n return value;\n}\n\nvar _SuppressedError = typeof SuppressedError === \"function\" ? SuppressedError : function (error, suppressed, message) {\n var e = new Error(message);\n return e.name = \"SuppressedError\", e.error = error, e.suppressed = suppressed, e;\n};\n\nexport function __disposeResources(env) {\n function fail(e) {\n env.error = env.hasError ? new _SuppressedError(e, env.error, \"An error was suppressed during disposal.\") : e;\n env.hasError = true;\n }\n var r, s = 0;\n function next() {\n while (r = env.stack.pop()) {\n try {\n if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);\n if (r.dispose) {\n var result = r.dispose.call(r.value);\n if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); });\n }\n else s |= 1;\n }\n catch (e) {\n fail(e);\n }\n }\n if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();\n if (env.hasError) throw env.error;\n }\n return next();\n}\n\nexport function __rewriteRelativeImportExtension(path, preserveJsx) {\n if (typeof path === \"string\" && /^\\.\\.?\\//.test(path)) {\n return path.replace(/\\.(tsx)$|((?:\\.d)?)((?:\\.[^./]+?)?)\\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {\n return tsx ? preserveJsx ? \".jsx\" : \".js\" : d && (!ext || !cm) ? m : (d + ext + \".\" + cm.toLowerCase() + \"js\");\n });\n }\n return path;\n}\n\nexport default {\n __extends,\n __assign,\n __rest,\n __decorate,\n __param,\n __esDecorate,\n __runInitializers,\n __propKey,\n __setFunctionName,\n __metadata,\n __awaiter,\n __generator,\n __createBinding,\n __exportStar,\n __values,\n __read,\n __spread,\n __spreadArrays,\n __spreadArray,\n __await,\n __asyncGenerator,\n __asyncDelegator,\n __asyncValues,\n __makeTemplateObject,\n __importStar,\n __importDefault,\n __classPrivateFieldGet,\n __classPrivateFieldSet,\n __classPrivateFieldIn,\n __addDisposableResource,\n __disposeResources,\n __rewriteRelativeImportExtension,\n};\n", null, "export function maybeGetDocument() {\n if (typeof document === 'object') {\n return document;\n }\n\n return undefined;\n}\n\nexport function maybeGetGlobal(): any {\n if (typeof self === 'object') {\n return self;\n } else {\n return global;\n }\n}\n", "import { maybeGetDocument } from './globals';\n\nexport function readCookie(name: string): string {\n const cookieValue = getCookieByName(name);\n\n if (cookieValue) {\n return cookieValue.split('=')[1];\n }\n\n return '';\n}\n\nfunction loadCookies(): string[] {\n const documentObj = maybeGetDocument();\n\n if (documentObj && documentObj.cookie) {\n return decodeURIComponent(documentObj.cookie).split(';');\n }\n\n return [];\n}\n\nfunction getCookieByName(name: string): string {\n return loadCookies().filter(\n (cookie) => name === cookie.split('=')[0].trim(),\n )[0];\n}\n", "import { readCookie } from '../cookies';\n\nexport const XSRF_TOKEN_COOKIE_NAME = 'XSRF-TOKEN';\nexport const XSRF_HEADER_NAME = 'x-xsrf-token';\n\nexport function csrf() {\n const value = readCookie(XSRF_TOKEN_COOKIE_NAME);\n return { [XSRF_HEADER_NAME]: value };\n}\n", "import { maybeGetGlobal } from '../globals';\n\nconst X_WIX_BRAND_NAME = 'x-wix-brand';\n\nexport function xWixBrand() {\n const value = extractBrand();\n\n return { [X_WIX_BRAND_NAME]: value };\n}\n\nfunction extractBrand(): string {\n const globalObj = maybeGetGlobal();\n\n if (\n globalObj &&\n globalObj.commonConfig &&\n typeof globalObj.commonConfig.brand === 'string'\n ) {\n return globalObj.commonConfig.brand;\n }\n\n return '';\n}\n", "import { maybeGetGlobal } from '../globals';\n\nexport function consentPolicy() {\n return tryResolveNativeAPI() || tryResolveJsSDK() || none();\n}\n\nfunction tryResolveJsSDK() {\n const globalObj = maybeGetGlobal();\n\n if (\n globalObj &&\n globalObj.Wix &&\n globalObj.Wix.Utils &&\n typeof globalObj.Wix.Utils._getConsentPolicyHeader === 'function'\n ) {\n return globalObj.Wix.Utils._getConsentPolicyHeader();\n }\n\n return undefined;\n}\n\nfunction tryResolveNativeAPI() {\n const globalObj = maybeGetGlobal();\n\n if (\n globalObj &&\n globalObj.consentPolicyManager &&\n typeof globalObj.consentPolicyManager._getConsentPolicyHeader === 'function'\n ) {\n return globalObj.consentPolicyManager._getConsentPolicyHeader();\n }\n\n return undefined;\n}\n\nfunction none() {\n return {};\n}\n", "export function authorization(signedInstance?: string) {\n return { authorization: signedInstance };\n}\n", "export function isCI() {\n if (isNode()) {\n return !!process.env.TEAMCITY_VERSION || !!process.env.BUILDKITE;\n }\n\n return false;\n}\n\nfunction isNode() {\n // todo: need to add a browser test\n return typeof process !== 'undefined' && process.versions?.node != null;\n}\n", "import { isCI } from '../utils';\n\nexport function artifactId(override?: string) {\n const artifactIdToUse = process.env.ARTIFACT_ID ?? process.env.APP_NAME ?? '';\n\n return {\n 'X-Wix-Client-Artifact-Id': override ?? (!isCI() ? artifactIdToUse : ''),\n };\n}\n", "import { maybeGetGlobal } from '../globals';\nimport { CommonConfigServer } from '../domain';\n\nconst IGNORE_KEYS = ['consentPolicy', 'consentPolicyHeader'];\nconst COMMON_CONFIG_NAME = 'commonConfig';\nconst MAP_KEYS = {\n bsi: 'BSI',\n};\n\nfunction extractCommonConfigValues(): CommonConfigServer | null {\n const globalObj = maybeGetGlobal();\n const commonConfigObj = globalObj?.commonConfig;\n\n if (!commonConfigObj) {\n return null;\n }\n\n const res: any = {};\n let addedKeys = false;\n Object.keys(commonConfigObj).forEach((key) => {\n // @ts-expect-error\n const newKey: string | undefined = MAP_KEYS[key];\n if (newKey) {\n res[newKey] = commonConfigObj[key];\n addedKeys = true;\n } else if (\n IGNORE_KEYS.indexOf(key) < 0 &&\n typeof commonConfigObj[key] !== 'function'\n ) {\n res[key] = commonConfigObj[key];\n addedKeys = true;\n }\n });\n\n return addedKeys ? (res as CommonConfigServer) : null;\n}\n\nexport const commonConfig = () => {\n const commonConfigValues = extractCommonConfigValues();\n const value = commonConfigValues ? JSON.stringify(commonConfigValues) : '';\n\n return { [COMMON_CONFIG_NAME]: encodeURIComponent(value) };\n};\n", "/*! https://mths.be/base64 v1.0.0 by @mathias | MIT license */\n;(function(root) {\n\n\t// Detect free variables `exports`.\n\tvar freeExports = typeof exports == 'object' && exports;\n\n\t// Detect free variable `module`.\n\tvar freeModule = typeof module == 'object' && module &&\n\t\tmodule.exports == freeExports && module;\n\n\t// Detect free variable `global`, from Node.js or Browserified code, and use\n\t// it as `root`.\n\tvar freeGlobal = typeof global == 'object' && global;\n\tif (freeGlobal.global === freeGlobal || freeGlobal.window === freeGlobal) {\n\t\troot = freeGlobal;\n\t}\n\n\t/*--------------------------------------------------------------------------*/\n\n\tvar InvalidCharacterError = function(message) {\n\t\tthis.message = message;\n\t};\n\tInvalidCharacterError.prototype = new Error;\n\tInvalidCharacterError.prototype.name = 'InvalidCharacterError';\n\n\tvar error = function(message) {\n\t\t// Note: the error messages used throughout this file match those used by\n\t\t// the native `atob`/`btoa` implementation in Chromium.\n\t\tthrow new InvalidCharacterError(message);\n\t};\n\n\tvar TABLE = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';\n\t// http://whatwg.org/html/common-microsyntaxes.html#space-character\n\tvar REGEX_SPACE_CHARACTERS = /[\\t\\n\\f\\r ]/g;\n\n\t// `decode` is designed to be fully compatible with `atob` as described in the\n\t// HTML Standard. http://whatwg.org/html/webappapis.html#dom-windowbase64-atob\n\t// The optimized base64-decoding algorithm used is based on @atk\u2019s excellent\n\t// implementation. https://gist.github.com/atk/1020396\n\tvar decode = function(input) {\n\t\tinput = String(input)\n\t\t\t.replace(REGEX_SPACE_CHARACTERS, '');\n\t\tvar length = input.length;\n\t\tif (length % 4 == 0) {\n\t\t\tinput = input.replace(/==?$/, '');\n\t\t\tlength = input.length;\n\t\t}\n\t\tif (\n\t\t\tlength % 4 == 1 ||\n\t\t\t// http://whatwg.org/C#alphanumeric-ascii-characters\n\t\t\t/[^+a-zA-Z0-9/]/.test(input)\n\t\t) {\n\t\t\terror(\n\t\t\t\t'Invalid character: the string to be decoded is not correctly encoded.'\n\t\t\t);\n\t\t}\n\t\tvar bitCounter = 0;\n\t\tvar bitStorage;\n\t\tvar buffer;\n\t\tvar output = '';\n\t\tvar position = -1;\n\t\twhile (++position < length) {\n\t\t\tbuffer = TABLE.indexOf(input.charAt(position));\n\t\t\tbitStorage = bitCounter % 4 ? bitStorage * 64 + buffer : buffer;\n\t\t\t// Unless this is the first of a group of 4 characters\u2026\n\t\t\tif (bitCounter++ % 4) {\n\t\t\t\t// \u2026convert the first 8 bits to a single ASCII character.\n\t\t\t\toutput += String.fromCharCode(\n\t\t\t\t\t0xFF & bitStorage >> (-2 * bitCounter & 6)\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t\treturn output;\n\t};\n\n\t// `encode` is designed to be fully compatible with `btoa` as described in the\n\t// HTML Standard: http://whatwg.org/html/webappapis.html#dom-windowbase64-btoa\n\tvar encode = function(input) {\n\t\tinput = String(input);\n\t\tif (/[^\\0-\\xFF]/.test(input)) {\n\t\t\t// Note: no need to special-case astral symbols here, as surrogates are\n\t\t\t// matched, and the input is supposed to only contain ASCII anyway.\n\t\t\terror(\n\t\t\t\t'The string to be encoded contains characters outside of the ' +\n\t\t\t\t'Latin1 range.'\n\t\t\t);\n\t\t}\n\t\tvar padding = input.length % 3;\n\t\tvar output = '';\n\t\tvar position = -1;\n\t\tvar a;\n\t\tvar b;\n\t\tvar c;\n\t\tvar buffer;\n\t\t// Make sure any padding is handled outside of the loop.\n\t\tvar length = input.length - padding;\n\n\t\twhile (++position < length) {\n\t\t\t// Read three bytes, i.e. 24 bits.\n\t\t\ta = input.charCodeAt(position) << 16;\n\t\t\tb = input.charCodeAt(++position) << 8;\n\t\t\tc = input.charCodeAt(++position);\n\t\t\tbuffer = a + b + c;\n\t\t\t// Turn the 24 bits into four chunks of 6 bits each, and append the\n\t\t\t// matching character for each of them to the output.\n\t\t\toutput += (\n\t\t\t\tTABLE.charAt(buffer >> 18 & 0x3F) +\n\t\t\t\tTABLE.charAt(buffer >> 12 & 0x3F) +\n\t\t\t\tTABLE.charAt(buffer >> 6 & 0x3F) +\n\t\t\t\tTABLE.charAt(buffer & 0x3F)\n\t\t\t);\n\t\t}\n\n\t\tif (padding == 2) {\n\t\t\ta = input.charCodeAt(position) << 8;\n\t\t\tb = input.charCodeAt(++position);\n\t\t\tbuffer = a + b;\n\t\t\toutput += (\n\t\t\t\tTABLE.charAt(buffer >> 10) +\n\t\t\t\tTABLE.charAt((buffer >> 4) & 0x3F) +\n\t\t\t\tTABLE.charAt((buffer << 2) & 0x3F) +\n\t\t\t\t'='\n\t\t\t);\n\t\t} else if (padding == 1) {\n\t\t\tbuffer = input.charCodeAt(position);\n\t\t\toutput += (\n\t\t\t\tTABLE.charAt(buffer >> 2) +\n\t\t\t\tTABLE.charAt((buffer << 4) & 0x3F) +\n\t\t\t\t'=='\n\t\t\t);\n\t\t}\n\n\t\treturn output;\n\t};\n\n\tvar base64 = {\n\t\t'encode': encode,\n\t\t'decode': decode,\n\t\t'version': '1.0.0'\n\t};\n\n\t// Some AMD build optimizers, like r.js, check for specific condition patterns\n\t// like the following:\n\tif (\n\t\ttypeof define == 'function' &&\n\t\ttypeof define.amd == 'object' &&\n\t\tdefine.amd\n\t) {\n\t\tdefine(function() {\n\t\t\treturn base64;\n\t\t});\n\t}\telse if (freeExports && !freeExports.nodeType) {\n\t\tif (freeModule) { // in Node.js or RingoJS v0.8.0+\n\t\t\tfreeModule.exports = base64;\n\t\t} else { // in Narwhal or RingoJS v0.7.0-\n\t\t\tfor (var key in base64) {\n\t\t\t\tbase64.hasOwnProperty(key) && (freeExports[key] = base64[key]);\n\t\t\t}\n\t\t}\n\t} else { // in Rhino or a web browser\n\t\troot.base64 = base64;\n\t}\n\n}(this));\n", "import base64 from 'base-64';\nimport { MultilingualOptions, Headers } from '../domain';\n\nconst LINGUIST_HEADER_KEY = 'x-wix-linguist';\n\nexport function linguistHeader({\n lang,\n locale,\n isPrimaryLanguage,\n signedInstance,\n}: MultilingualOptions & { signedInstance?: string }): Headers {\n // Validate all parameters exists in order to create the linguist header.\n if (isMultilingualOptionsAreValid({ lang, locale, isPrimaryLanguage })) {\n const instanceId = getInstanceIdFromSignedInstance(signedInstance);\n\n if (instanceId !== undefined) {\n return {\n [LINGUIST_HEADER_KEY]: [\n lang,\n locale,\n isPrimaryLanguage?.toString(),\n instanceId,\n ].join('|'),\n };\n }\n }\n\n return {};\n}\n\nfunction isMultilingualOptionsAreValid({\n lang,\n locale,\n isPrimaryLanguage,\n}: MultilingualOptions) {\n return (\n lang && locale && /^(true|false)$/.test(isPrimaryLanguage?.toString() || '')\n );\n}\n\nfunction getInstanceIdFromSignedInstance(signedInstance?: string) {\n try {\n const encodedInstance = signedInstance?.startsWith('wixcode')\n ? signedInstance?.split('.')[2]\n : signedInstance?.split('.')[1];\n\n if (encodedInstance) {\n return JSON.parse(base64.decode(encodedInstance)).instanceId;\n }\n } catch (e) {}\n}\n", "import type proto from '@wix/fed-infra-protos/dist/proto-generated';\n\nexport type CommonConfigServerProto = proto.wix.fedinfra.commons.CommonConfig;\n\nexport enum Brand {\n wix = 0,\n editorx = 1,\n dayful = 2,\n studio = 3,\n}\n\nexport interface CommonConfigServer\n extends Omit<CommonConfigServerProto, 'brand'> {\n brand?: 'wix' | 'editorx' | 'dayful' | 'studio';\n}\n\nexport interface CommonConfig extends Omit<CommonConfigServer, 'BSI'> {\n bsi?: string | null;\n}\n\nexport interface ConsentPolicyManager {\n _getConsentPolicyHeader(): Headers;\n}\n\nexport interface Wix {\n Utils: {\n _getConsentPolicyHeader(): Headers;\n };\n}\n\nexport type Headers = { [header: string]: string | undefined };\n\nexport type WixHeaders = {\n 'x-wix-brand'?: string;\n 'x-xsrf-token'?: string;\n authorization?: string;\n 'X-Wix-Client-Artifact-Id'?: string;\n commonConfig?: string;\n 'x-wix-linguist'?: string;\n};\n\nexport interface MultilingualOptions {\n lang?: string;\n locale?: string;\n isPrimaryLanguage?: string | boolean;\n}\n", "export class WixHeadersParsingError extends Error {\n constructor(header: string, value: any) {\n super(\n `WixHeadersParsingError: ${header} evaluated with ${JSON.stringify(\n value,\n )} but should be a string!`,\n );\n }\n}\n\nexport class WixHeadersValidationError extends Error {\n constructor(type: string, key: string, value: any) {\n super(\n `WixHeadersValidationError: expected ${key} to be ${type} but got ${JSON.stringify(\n value,\n )}`,\n );\n }\n}\n", "import { WixHeadersValidationError } from './errors';\n\nexport function assertBoolean(key: string, value: any) {\n if (typeof value !== 'boolean') {\n throw new WixHeadersValidationError('boolean', key, value);\n }\n}\n\nexport function assertString(key: string, value: any) {\n if (typeof value !== 'string') {\n throw new WixHeadersValidationError('string', key, value);\n }\n}\n", "import { csrf } from './headers/csrf';\nimport { xWixBrand } from './headers/x-wix-brand';\nimport { consentPolicy } from './headers/consent-policy';\nimport { authorization } from './headers/authorization';\nimport { artifactId } from './headers/artifact-id';\nimport { commonConfig } from './headers/common-config';\nimport { linguistHeader } from './headers/linguist';\nimport { MultilingualOptions, WixHeaders, Headers } from './domain';\nimport { assertBoolean, assertString } from './assert';\n\nexport { MultilingualOptions };\n\nexport type WixHeadersOpts = {\n csrf?: boolean;\n signedInstance?: string;\n artifactId?: string;\n multilingualOptions?: MultilingualOptions;\n};\n\nexport function createHeaders(opts: WixHeadersOpts = {}): WixHeaders {\n opts = { csrf: true, signedInstance: '', ...opts };\n\n verifyOptsOrThrow(opts);\n\n const headers: Headers[] = [\n xWixBrand(),\n consentPolicy(),\n authorization(opts.signedInstance),\n artifactId(opts.artifactId),\n commonConfig(),\n linguistHeader({\n signedInstance: opts.signedInstance,\n ...opts.multilingualOptions,\n }),\n ];\n\n if (opts.csrf) {\n headers.push(csrf());\n }\n\n return headers\n .filter((hdrs) => Object.values(hdrs).every((v) => v))\n .reduce(\n (result, hdrs) => ({\n ...result,\n ...hdrs,\n }),\n {} as WixHeaders,\n );\n}\n\nfunction verifyOptsOrThrow(opts: WixHeadersOpts) {\n assertBoolean('opts.csrf', opts.csrf);\n assertString('opts.signedInstance', opts.signedInstance);\n}\n", null, null, "[\n \"wix.com\",\n \"editorx.com\",\n \"wix-code.com\",\n \"wixapps.net\",\n \"wixprod.net\"\n]\n", null, null, "'use strict';\n\nmodule.exports = function bind(fn, thisArg) {\n return function wrap() {\n var args = new Array(arguments.length);\n for (var i = 0; i < args.length; i++) {\n args[i] = arguments[i];\n }\n return fn.apply(thisArg, args);\n };\n};\n", "'use strict';\n\nvar bind = require('./helpers/bind');\n\n// utils is a library of generic helper functions non-specific to axios\n\nvar toString = Object.prototype.toString;\n\n/**\n * Determine if a value is an Array\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an Array, otherwise false\n */\nfunction isArray(val) {\n return toString.call(val) === '[object Array]';\n}\n\n/**\n * Determine if a value is undefined\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if the value is undefined, otherwise false\n */\nfunction isUndefined(val) {\n return typeof val === 'undefined';\n}\n\n/**\n * Determine if a value is a Buffer\n *\n * @param {Object} val The value to test\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 && typeof val.constructor.isBuffer === 'function' && val.constructor.isBuffer(val);\n}\n\n/**\n * Determine if a value is an ArrayBuffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an ArrayBuffer, otherwise false\n */\nfunction isArrayBuffer(val) {\n return toString.call(val) === '[object ArrayBuffer]';\n}\n\n/**\n * Determine if a value is a FormData\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an FormData, otherwise false\n */\nfunction isFormData(val) {\n return (typeof FormData !== 'undefined') && (val instanceof FormData);\n}\n\n/**\n * Determine if a value is a view on an ArrayBuffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false\n */\nfunction isArrayBufferView(val) {\n var result;\n if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {\n result = ArrayBuffer.isView(val);\n } else {\n result = (val) && (val.buffer) && (val.buffer instanceof ArrayBuffer);\n }\n return result;\n}\n\n/**\n * Determine if a value is a String\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a String, otherwise false\n */\nfunction isString(val) {\n return typeof val === 'string';\n}\n\n/**\n * Determine if a value is a Number\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Number, otherwise false\n */\nfunction isNumber(val) {\n return typeof val === 'number';\n}\n\n/**\n * Determine if a value is an Object\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an Object, otherwise false\n */\nfunction isObject(val) {\n return val !== null && typeof val === 'object';\n}\n\n/**\n * Determine if a value is a plain Object\n *\n * @param {Object} val The value to test\n * @return {boolean} True if value is a plain Object, otherwise false\n */\nfunction isPlainObject(val) {\n if (toString.call(val) !== '[object Object]') {\n return false;\n }\n\n var prototype = Object.getPrototypeOf(val);\n return prototype === null || prototype === Object.prototype;\n}\n\n/**\n * Determine if a value is a Date\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Date, otherwise false\n */\nfunction isDate(val) {\n return toString.call(val) === '[object Date]';\n}\n\n/**\n * Determine if a value is a File\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a File, otherwise false\n */\nfunction isFile(val) {\n return toString.call(val) === '[object File]';\n}\n\n/**\n * Determine if a value is a Blob\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Blob, otherwise false\n */\nfunction isBlob(val) {\n return toString.call(val) === '[object Blob]';\n}\n\n/**\n * Determine if a value is a Function\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Function, otherwise false\n */\nfunction isFunction(val) {\n return toString.call(val) === '[object Function]';\n}\n\n/**\n * Determine if a value is a Stream\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Stream, otherwise false\n */\nfunction isStream(val) {\n return isObject(val) && isFunction(val.pipe);\n}\n\n/**\n * Determine if a value is a URLSearchParams object\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a URLSearchParams object, otherwise false\n */\nfunction isURLSearchParams(val) {\n return typeof URLSearchParams !== 'undefined' && val instanceof URLSearchParams;\n}\n\n/**\n * Trim excess whitespace off the beginning and end of a string\n *\n * @param {String} str The String to trim\n * @returns {String} The String freed of excess whitespace\n */\nfunction trim(str) {\n return str.trim ? str.trim() : str.replace(/^\\s+|\\s+$/g, '');\n}\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 */\nfunction isStandardBrowserEnv() {\n if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||\n navigator.product === 'NativeScript' ||\n navigator.product === 'NS')) {\n return false;\n }\n return (\n typeof window !== 'undefined' &&\n typeof document !== 'undefined'\n );\n}\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 */\nfunction forEach(obj, fn) {\n // Don't bother if no value provided\n if (obj === null || typeof obj === 'undefined') {\n return;\n }\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 (var 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 for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) {\n fn.call(null, obj[key], key, obj);\n }\n }\n }\n}\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 * @returns {Object} Result of all merge properties\n */\nfunction merge(/* obj1, obj2, obj3, ... */) {\n var result = {};\n function assignValue(val, key) {\n if (isPlainObject(result[key]) && isPlainObject(val)) {\n result[key] = merge(result[key], val);\n } else if (isPlainObject(val)) {\n result[key] = merge({}, val);\n } else if (isArray(val)) {\n result[key] = val.slice();\n } else {\n result[key] = val;\n }\n }\n\n for (var i = 0, l = arguments.length; i < l; i++) {\n 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 * @return {Object} The resulting value of object a\n */\nfunction extend(a, b, thisArg) {\n forEach(b, function assignValue(val, key) {\n if (thisArg && typeof val === 'function') {\n a[key] = bind(val, thisArg);\n } else {\n a[key] = val;\n }\n });\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 * @return {string} content value without BOM\n */\nfunction stripBOM(content) {\n if (content.charCodeAt(0) === 0xFEFF) {\n content = content.slice(1);\n }\n return content;\n}\n\nmodule.exports = {\n isArray: isArray,\n isArrayBuffer: isArrayBuffer,\n isBuffer: isBuffer,\n isFormData: isFormData,\n isArrayBufferView: isArrayBufferView,\n isString: isString,\n isNumber: isNumber,\n isObject: isObject,\n isPlainObject: isPlainObject,\n isUndefined: isUndefined,\n isDate: isDate,\n isFile: isFile,\n isBlob: isBlob,\n isFunction: isFunction,\n isStream: isStream,\n isURLSearchParams: isURLSearchParams,\n isStandardBrowserEnv: isStandardBrowserEnv,\n forEach: forEach,\n merge: merge,\n extend: extend,\n trim: trim,\n stripBOM: stripBOM\n};\n", "'use strict';\n\n/**\n * Update an Error with the specified config, error code, and response.\n *\n * @param {Error} error The error to update.\n * @param {Object} config The config.\n * @param {string} [code] The error code (for example, 'ECONNABORTED').\n * @param {Object} [request] The request.\n * @param {Object} [response] The response.\n * @returns {Error} The error.\n */\nmodule.exports = function enhanceError(error, config, code, request, response) {\n error.config = config;\n if (code) {\n error.code = code;\n }\n\n error.request = request;\n error.response = response;\n error.isAxiosError = true;\n\n error.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: this.config,\n code: this.code\n };\n };\n return error;\n};\n", "'use strict';\n\nvar enhanceError = require('./enhanceError');\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 {Object} config The config.\n * @param {string} [code] The error code (for example, 'ECONNABORTED').\n * @param {Object} [request] The request.\n * @param {Object} [response] The response.\n * @returns {Error} The created error.\n */\nmodule.exports = function createError(message, config, code, request, response) {\n var error = new Error(message);\n return enhanceError(error, config, code, request, response);\n};\n", "'use strict';\n\nvar createError = require('./createError');\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 */\nmodule.exports = function settle(resolve, reject, response) {\n var validateStatus = response.config.validateStatus;\n if (!response.status || !validateStatus || validateStatus(response.status)) {\n resolve(response);\n } else {\n reject(createError(\n 'Request failed with status code ' + response.status,\n response.config,\n null,\n response.request,\n response\n ));\n }\n};\n", "'use strict';\n\n/**\n * Determines whether the specified URL is absolute\n *\n * @param {string} url The URL to test\n * @returns {boolean} True if the specified URL is absolute, otherwise false\n */\nmodule.exports = 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\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 * @returns {string} The combined URL\n */\nmodule.exports = function combineURLs(baseURL, relativeURL) {\n return relativeURL\n ? baseURL.replace(/\\/+$/, '') + '/' + relativeURL.replace(/^\\/+/, '')\n : baseURL;\n};\n", "'use strict';\n\nvar isAbsoluteURL = require('../helpers/isAbsoluteURL');\nvar combineURLs = require('../helpers/combineURLs');\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 * @returns {string} The combined full path\n */\nmodule.exports = function buildFullPath(baseURL, requestedURL) {\n if (baseURL && !isAbsoluteURL(requestedURL)) {\n return combineURLs(baseURL, requestedURL);\n }\n return requestedURL;\n};\n", "'use strict';\n\nvar utils = require('./../utils');\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 * @returns {string} The formatted url\n */\nmodule.exports = function buildURL(url, params, paramsSerializer) {\n /*eslint no-param-reassign:0*/\n if (!params) {\n return url;\n }\n\n var serializedParams;\n if (paramsSerializer) {\n serializedParams = paramsSerializer(params);\n } else if (utils.isURLSearchParams(params)) {\n serializedParams = params.toString();\n } else {\n var parts = [];\n\n utils.forEach(params, function serialize(val, key) {\n if (val === null || typeof val === 'undefined') {\n return;\n }\n\n if (utils.isArray(val)) {\n key = key + '[]';\n } else {\n val = [val];\n }\n\n utils.forEach(val, function parseValue(v) {\n if (utils.isDate(v)) {\n v = v.toISOString();\n } else if (utils.isObject(v)) {\n v = JSON.stringify(v);\n }\n parts.push(encode(key) + '=' + encode(v));\n });\n });\n\n serializedParams = parts.join('&');\n }\n\n if (serializedParams) {\n var hashmarkIndex = url.indexOf('#');\n if (hashmarkIndex !== -1) {\n url = url.slice(0, hashmarkIndex);\n }\n\n url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;\n }\n\n return url;\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", "\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\tconst split = (typeof namespaces === 'string' ? namespaces : '')\n\t\t\t.trim()\n\t\t\t.replace(' ', ',')\n\t\t\t.split(',')\n\t\t\t.filter(Boolean);\n\n\t\tfor (const ns of split) {\n\t\t\tif (ns[0] === '-') {\n\t\t\t\tcreateDebug.skips.push(ns.slice(1));\n\t\t\t} else {\n\t\t\t\tcreateDebug.names.push(ns);\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * Checks if the given string matches a namespace template, honoring\n\t * asterisks as wildcards.\n\t *\n\t * @param {String} search\n\t * @param {String} template\n\t * @return {Boolean}\n\t */\n\tfunction matchesTemplate(search, template) {\n\t\tlet searchIndex = 0;\n\t\tlet templateIndex = 0;\n\t\tlet starIndex = -1;\n\t\tlet matchIndex = 0;\n\n\t\twhile (searchIndex < search.length) {\n\t\t\tif (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === '*')) {\n\t\t\t\t// Match character or proceed with wildcard\n\t\t\t\tif (template[templateIndex] === '*') {\n\t\t\t\t\tstarIndex = templateIndex;\n\t\t\t\t\tmatchIndex = searchIndex;\n\t\t\t\t\ttemplateIndex++; // Skip the '*'\n\t\t\t\t} else {\n\t\t\t\t\tsearchIndex++;\n\t\t\t\t\ttemplateIndex++;\n\t\t\t\t}\n\t\t\t} else if (starIndex !== -1) { // eslint-disable-line no-negated-condition\n\t\t\t\t// Backtrack to the last '*' and try to match more characters\n\t\t\t\ttemplateIndex = starIndex + 1;\n\t\t\t\tmatchIndex++;\n\t\t\t\tsearchIndex = matchIndex;\n\t\t\t} else {\n\t\t\t\treturn false; // No match\n\t\t\t}\n\t\t}\n\n\t\t// Handle trailing '*' in template\n\t\twhile (templateIndex < template.length && template[templateIndex] === '*') {\n\t\t\ttemplateIndex++;\n\t\t}\n\n\t\treturn templateIndex === template.length;\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,\n\t\t\t...createDebug.skips.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\tfor (const skip of createDebug.skips) {\n\t\t\tif (matchesTemplate(name, skip)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\tfor (const ns of createDebug.names) {\n\t\t\tif (matchesTemplate(name, ns)) {\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* 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", "/* 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\tlet m;\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\t// eslint-disable-next-line no-return-assign\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 && (m = navigator.userAgent.toLowerCase().match(/firefox\\/(\\d+)/)) && parseInt(m[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", "'use strict';\nmodule.exports = (flag, argv) => {\n\targv = argv || process.argv;\n\tconst prefix = flag.startsWith('-') ? '' : (flag.length === 1 ? '-' : '--');\n\tconst pos = argv.indexOf(prefix + flag);\n\tconst terminatorPos = argv.indexOf('--');\n\treturn pos !== -1 && (terminatorPos === -1 ? true : pos < terminatorPos);\n};\n", "'use strict';\nconst os = require('os');\nconst hasFlag = require('has-flag');\n\nconst env = process.env;\n\nlet forceColor;\nif (hasFlag('no-color') ||\n\thasFlag('no-colors') ||\n\thasFlag('color=false')) {\n\tforceColor = false;\n} else if (hasFlag('color') ||\n\thasFlag('colors') ||\n\thasFlag('color=true') ||\n\thasFlag('color=always')) {\n\tforceColor = true;\n}\nif ('FORCE_COLOR' in env) {\n\tforceColor = env.FORCE_COLOR.length === 0 || parseInt(env.FORCE_COLOR, 10) !== 0;\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(stream) {\n\tif (forceColor === false) {\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 (stream && !stream.isTTY && forceColor !== true) {\n\t\treturn 0;\n\t}\n\n\tconst min = forceColor ? 1 : 0;\n\n\tif (process.platform === 'win32') {\n\t\t// Node.js 7.5.0 is the first version of Node.js to include a patch to\n\t\t// libuv that enables 256 color output on Windows. Anything earlier and it\n\t\t// won't work. However, here we target Node.js 8 at minimum as it is an LTS\n\t\t// release, and Node.js 7 is not. Windows 10 build 10586 is the first Windows\n\t\t// release that supports 256 colors. Windows 10 build 14931 is the first release\n\t\t// that supports 16m/TrueColor.\n\t\tconst osRelease = os.release().split('.');\n\t\tif (\n\t\t\tNumber(process.versions.node.split('.')[0]) >= 8 &&\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'].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\tif (env.TERM === 'dumb') {\n\t\treturn min;\n\t}\n\n\treturn min;\n}\n\nfunction getSupportLevel(stream) {\n\tconst level = supportsColor(stream);\n\treturn translateLevel(level);\n}\n\nmodule.exports = {\n\tsupportsColor: getSupportLevel,\n\tstdout: getSupportLevel(process.stdout),\n\tstderr: getSupportLevel(process.stderr)\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.formatWithOptions()` with the specified arguments and writes to stderr.\n */\n\nfunction log(...args) {\n\treturn process.stderr.write(util.formatWithOptions(exports.inspectOpts, ...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", "/**\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", "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\u00A75.3.1: When making a request directly to an origin server, [\u2026]\n // a client MUST send only the absolute path [\u2026] as the request-target.\n this._currentUrl = /^\\//.test(this._options.path) ?\n url.format(this._options) :\n // When making a request to a proxy, [\u2026]\n // a client MUST send the target URI in absolute-form [\u2026].\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\u00A76.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\u00A76.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\u00A76.4: Automatic redirection needs to done with\n // care for methods not known to be safe, [\u2026]\n // RFC7231\u00A76.4.2\u20133: 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\u00A76.4.4: The 303 (See Other) status code indicates that\n // the server is redirecting the user agent to a different resource [\u2026]\n // A user agent can perform a retrieval request targeting that URI\n // (a GET or HEAD request if using HTTP) [\u2026]\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", "{\n \"name\": \"axios\",\n \"version\": \"0.21.4\",\n \"description\": \"Promise based HTTP client for the browser and node.js\",\n \"main\": \"index.js\",\n \"scripts\": {\n \"test\": \"grunt test\",\n \"start\": \"node ./sandbox/server.js\",\n \"build\": \"NODE_ENV=production grunt build\",\n \"preversion\": \"npm test\",\n \"version\": \"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json\",\n \"postversion\": \"git push && git push --tags\",\n \"examples\": \"node ./examples/server.js\",\n \"coveralls\": \"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js\",\n \"fix\": \"eslint --fix lib/**/*.js\"\n },\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"https://github.com/axios/axios.git\"\n },\n \"keywords\": [\n \"xhr\",\n \"http\",\n \"ajax\",\n \"promise\",\n \"node\"\n ],\n \"author\": \"Matt Zabriskie\",\n \"license\": \"MIT\",\n \"bugs\": {\n \"url\": \"https://github.com/axios/axios/issues\"\n },\n \"homepage\": \"https://axios-http.com\",\n \"devDependencies\": {\n \"coveralls\": \"^3.0.0\",\n \"es6-promise\": \"^4.2.4\",\n \"grunt\": \"^1.3.0\",\n \"grunt-banner\": \"^0.6.0\",\n \"grunt-cli\": \"^1.2.0\",\n \"grunt-contrib-clean\": \"^1.1.0\",\n \"grunt-contrib-watch\": \"^1.0.0\",\n \"grunt-eslint\": \"^23.0.0\",\n \"grunt-karma\": \"^4.0.0\",\n \"grunt-mocha-test\": \"^0.13.3\",\n \"grunt-ts\": \"^6.0.0-beta.19\",\n \"grunt-webpack\": \"^4.0.2\",\n \"istanbul-instrumenter-loader\": \"^1.0.0\",\n \"jasmine-core\": \"^2.4.1\",\n \"karma\": \"^6.3.2\",\n \"karma-chrome-launcher\": \"^3.1.0\",\n \"karma-firefox-launcher\": \"^2.1.0\",\n \"karma-jasmine\": \"^1.1.1\",\n \"karma-jasmine-ajax\": \"^0.1.13\",\n \"karma-safari-launcher\": \"^1.0.0\",\n \"karma-sauce-launcher\": \"^4.3.6\",\n \"karma-sinon\": \"^1.0.5\",\n \"karma-sourcemap-loader\": \"^0.3.8\",\n \"karma-webpack\": \"^4.0.2\",\n \"load-grunt-tasks\": \"^3.5.2\",\n \"minimist\": \"^1.2.0\",\n \"mocha\": \"^8.2.1\",\n \"sinon\": \"^4.5.0\",\n \"terser-webpack-plugin\": \"^4.2.3\",\n \"typescript\": \"^4.0.5\",\n \"url-search-params\": \"^0.10.0\",\n \"webpack\": \"^4.44.2\",\n \"webpack-dev-server\": \"^3.11.0\"\n },\n \"browser\": {\n \"./lib/adapters/http.js\": \"./lib/adapters/xhr.js\"\n },\n \"jsdelivr\": \"dist/axios.min.js\",\n \"unpkg\": \"dist/axios.min.js\",\n \"typings\": \"./index.d.ts\",\n \"dependencies\": {\n \"follow-redirects\": \"^1.14.0\"\n },\n \"bundlesize\": [\n {\n \"path\": \"./dist/axios.min.js\",\n \"threshold\": \"5kB\"\n }\n ]\n}\n", "'use strict';\n\nvar utils = require('./../utils');\nvar settle = require('./../core/settle');\nvar buildFullPath = require('../core/buildFullPath');\nvar buildURL = require('./../helpers/buildURL');\nvar http = require('http');\nvar https = require('https');\nvar httpFollow = require('follow-redirects').http;\nvar httpsFollow = require('follow-redirects').https;\nvar url = require('url');\nvar zlib = require('zlib');\nvar pkg = require('./../../package.json');\nvar createError = require('../core/createError');\nvar enhanceError = require('../core/enhanceError');\n\nvar isHttps = /https:?/;\n\n/**\n *\n * @param {http.ClientRequestArgs} options\n * @param {AxiosProxyConfig} proxy\n * @param {string} location\n */\nfunction setProxy(options, proxy, location) {\n options.hostname = proxy.host;\n options.host = proxy.host;\n options.port = proxy.port;\n options.path = location;\n\n // Basic proxy authorization\n if (proxy.auth) {\n var base64 = Buffer.from(proxy.auth.username + ':' + proxy.auth.password, 'utf8').toString('base64');\n options.headers['Proxy-Authorization'] = 'Basic ' + base64;\n }\n\n // If a proxy is used, any redirects must also pass through the proxy\n options.beforeRedirect = function beforeRedirect(redirection) {\n redirection.headers.host = redirection.host;\n setProxy(redirection, proxy, redirection.href);\n };\n}\n\n/*eslint consistent-return:0*/\nmodule.exports = function httpAdapter(config) {\n return new Promise(function dispatchHttpRequest(resolvePromise, rejectPromise) {\n var resolve = function resolve(value) {\n resolvePromise(value);\n };\n var reject = function reject(value) {\n rejectPromise(value);\n };\n var data = config.data;\n var headers = config.headers;\n\n // Set User-Agent (required by some servers)\n // See https://github.com/axios/axios/issues/69\n if ('User-Agent' in headers || 'user-agent' in headers) {\n // User-Agent is specified; handle case where no UA header is desired\n if (!headers['User-Agent'] && !headers['user-agent']) {\n delete headers['User-Agent'];\n delete headers['user-agent'];\n }\n // Otherwise, use specified value\n } else {\n // Only set header if it hasn't been set in config\n headers['User-Agent'] = 'axios/' + pkg.version;\n }\n\n 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(createError(\n 'Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream',\n config\n ));\n }\n\n // Add Content-Length header if data exists\n headers['Content-Length'] = data.length;\n }\n\n // HTTP basic authentication\n var auth = undefined;\n if (config.auth) {\n var username = config.auth.username || '';\n var password = config.auth.password || '';\n auth = username + ':' + password;\n }\n\n // Parse url\n var fullPath = buildFullPath(config.baseURL, config.url);\n var parsed = url.parse(fullPath);\n var protocol = parsed.protocol || 'http:';\n\n if (!auth && parsed.auth) {\n var urlAuth = parsed.auth.split(':');\n var urlUsername = urlAuth[0] || '';\n var urlPassword = urlAuth[1] || '';\n auth = urlUsername + ':' + urlPassword;\n }\n\n if (auth) {\n delete headers.Authorization;\n }\n\n var isHttpsRequest = isHttps.test(protocol);\n var agent = isHttpsRequest ? config.httpsAgent : config.httpAgent;\n\n var options = {\n path: buildURL(parsed.path, config.params, config.paramsSerializer).replace(/^\\?/, ''),\n method: config.method.toUpperCase(),\n headers: headers,\n agent: agent,\n agents: { http: config.httpAgent, https: config.httpsAgent },\n auth: auth\n };\n\n if (config.socketPath) {\n options.socketPath = config.socketPath;\n } else {\n options.hostname = parsed.hostname;\n options.port = parsed.port;\n }\n\n var proxy = config.proxy;\n if (!proxy && proxy !== false) {\n var proxyEnv = protocol.slice(0, -1) + '_proxy';\n var proxyUrl = process.env[proxyEnv] || process.env[proxyEnv.toUpperCase()];\n if (proxyUrl) {\n var parsedProxyUrl = url.parse(proxyUrl);\n var noProxyEnv = process.env.no_proxy || process.env.NO_PROXY;\n var shouldProxy = true;\n\n if (noProxyEnv) {\n var noProxy = noProxyEnv.split(',').map(function trim(s) {\n return s.trim();\n });\n\n shouldProxy = !noProxy.some(function proxyMatch(proxyElement) {\n if (!proxyElement) {\n return false;\n }\n if (proxyElement === '*') {\n return true;\n }\n if (proxyElement[0] === '.' &&\n parsed.hostname.substr(parsed.hostname.length - proxyElement.length) === proxyElement) {\n return true;\n }\n\n return parsed.hostname === proxyElement;\n });\n }\n\n if (shouldProxy) {\n proxy = {\n host: parsedProxyUrl.hostname,\n port: parsedProxyUrl.port,\n protocol: parsedProxyUrl.protocol\n };\n\n if (parsedProxyUrl.auth) {\n var proxyUrlAuth = parsedProxyUrl.auth.split(':');\n proxy.auth = {\n username: proxyUrlAuth[0],\n password: proxyUrlAuth[1]\n };\n }\n }\n }\n }\n\n if (proxy) {\n options.headers.host = parsed.hostname + (parsed.port ? ':' + parsed.port : '');\n setProxy(options, proxy, protocol + '//' + parsed.hostname + (parsed.port ? ':' + parsed.port : '') + options.path);\n }\n\n var transport;\n var isHttpsProxy = isHttpsRequest && (proxy ? isHttps.test(proxy.protocol) : true);\n if (config.transport) {\n transport = config.transport;\n } else if (config.maxRedirects === 0) {\n transport = isHttpsProxy ? https : http;\n } else {\n if (config.maxRedirects) {\n options.maxRedirects = config.maxRedirects;\n }\n transport = isHttpsProxy ? httpsFollow : httpFollow;\n }\n\n if (config.maxBodyLength > -1) {\n options.maxBodyLength = config.maxBodyLength;\n }\n\n // Create the request\n var req = transport.request(options, function handleResponse(res) {\n if (req.aborted) return;\n\n // uncompress the response body transparently if required\n var stream = res;\n\n // return the last request in case of redirects\n var lastRequest = res.req || req;\n\n\n // if no content, is HEAD request or decompress disabled we should not decompress\n if (res.statusCode !== 204 && lastRequest.method !== 'HEAD' && config.decompress !== false) {\n switch (res.headers['content-encoding']) {\n /*eslint default-case:0*/\n case 'gzip':\n case 'compress':\n case 'deflate':\n // add the unzipper to the body stream processing pipeline\n stream = stream.pipe(zlib.createUnzip());\n\n // remove the content-encoding in order to not confuse downstream operations\n delete res.headers['content-encoding'];\n break;\n }\n }\n\n var response = {\n status: res.statusCode,\n statusText: res.statusMessage,\n headers: res.headers,\n config: config,\n request: lastRequest\n };\n\n if (config.responseType === 'stream') {\n response.data = stream;\n settle(resolve, reject, response);\n } else {\n var responseBuffer = [];\n var totalResponseBytes = 0;\n stream.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();\n reject(createError('maxContentLength size of ' + config.maxContentLength + ' exceeded',\n config, null, lastRequest));\n }\n });\n\n stream.on('error', function handleStreamError(err) {\n if (req.aborted) return;\n reject(enhanceError(err, config, null, lastRequest));\n });\n\n stream.on('end', function handleStreamEnd() {\n var responseData = Buffer.concat(responseBuffer);\n if (config.responseType !== 'arraybuffer') {\n responseData = responseData.toString(config.responseEncoding);\n if (!config.responseEncoding || config.responseEncoding === 'utf8') {\n responseData = utils.stripBOM(responseData);\n }\n }\n\n response.data = responseData;\n settle(resolve, reject, response);\n });\n }\n });\n\n // Handle errors\n req.on('error', function handleRequestError(err) {\n if (req.aborted && err.code !== 'ERR_FR_TOO_MANY_REDIRECTS') return;\n reject(enhanceError(err, config, null, req));\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 var timeout = parseInt(config.timeout, 10);\n\n if (isNaN(timeout)) {\n reject(createError(\n 'error trying to parse `config.timeout` to int',\n config,\n 'ERR_PARSE_TIMEOUT',\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 devoring 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 req.abort();\n reject(createError(\n 'timeout of ' + timeout + 'ms exceeded',\n config,\n config.transitional && config.transitional.clarifyTimeoutError ? 'ETIMEDOUT' : 'ECONNABORTED',\n req\n ));\n });\n }\n\n if (config.cancelToken) {\n // Handle cancellation\n config.cancelToken.promise.then(function onCanceled(cancel) {\n if (req.aborted) return;\n\n req.abort();\n reject(cancel);\n });\n }\n\n // Send the request\n if (utils.isStream(data)) {\n data.on('error', function handleStreamError(err) {\n reject(enhanceError(err, config, null, req));\n }).pipe(req);\n } else {\n req.end(data);\n }\n });\n};\n", "'use strict';\n\nvar utils = require('./../utils');\n\nfunction InterceptorManager() {\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 */\nInterceptorManager.prototype.use = function use(fulfilled, rejected, options) {\n this.handlers.push({\n fulfilled: fulfilled,\n rejected: 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 */\nInterceptorManager.prototype.eject = function eject(id) {\n if (this.handlers[id]) {\n this.handlers[id] = null;\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 */\nInterceptorManager.prototype.forEach = function forEach(fn) {\n utils.forEach(this.handlers, function forEachHandler(h) {\n if (h !== null) {\n fn(h);\n }\n });\n};\n\nmodule.exports = InterceptorManager;\n", "'use strict';\n\nvar utils = require('../utils');\n\nmodule.exports = function normalizeHeaderName(headers, normalizedName) {\n utils.forEach(headers, function processHeader(value, name) {\n if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) {\n headers[normalizedName] = value;\n delete headers[name];\n }\n });\n};\n", "'use strict';\n\nvar utils = require('./../utils');\n\nmodule.exports = (\n utils.isStandardBrowserEnv() ?\n\n // Standard browser envs support document.cookie\n (function standardBrowserEnv() {\n return {\n write: function write(name, value, expires, path, domain, secure) {\n var cookie = [];\n cookie.push(name + '=' + encodeURIComponent(value));\n\n if (utils.isNumber(expires)) {\n cookie.push('expires=' + new Date(expires).toGMTString());\n }\n\n if (utils.isString(path)) {\n cookie.push('path=' + path);\n }\n\n if (utils.isString(domain)) {\n cookie.push('domain=' + domain);\n }\n\n if (secure === true) {\n cookie.push('secure');\n }\n\n document.cookie = cookie.join('; ');\n },\n\n read: function read(name) {\n var match = document.cookie.match(new RegExp('(^|;\\\\s*)(' + name + ')=([^;]*)'));\n return (match ? decodeURIComponent(match[3]) : null);\n },\n\n remove: function remove(name) {\n this.write(name, '', Date.now() - 86400000);\n }\n };\n })() :\n\n // Non standard browser env (web workers, react-native) lack needed support.\n (function nonStandardBrowserEnv() {\n return {\n write: function write() {},\n read: function read() { return null; },\n remove: function remove() {}\n };\n })()\n);\n", "'use strict';\n\nvar utils = require('./../utils');\n\n// Headers whose duplicates are ignored by node\n// c.f. https://nodejs.org/api/http.html#http_message_headers\nvar ignoreDuplicateOf = [\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} headers Headers needing to be parsed\n * @returns {Object} Headers parsed into an object\n */\nmodule.exports = function parseHeaders(headers) {\n var parsed = {};\n var key;\n var val;\n var i;\n\n if (!headers) { return parsed; }\n\n utils.forEach(headers.split('\\n'), function parser(line) {\n i = line.indexOf(':');\n key = utils.trim(line.substr(0, i)).toLowerCase();\n val = utils.trim(line.substr(i + 1));\n\n if (key) {\n if (parsed[key] && ignoreDuplicateOf.indexOf(key) >= 0) {\n return;\n }\n if (key === 'set-cookie') {\n parsed[key] = (parsed[key] ? parsed[key] : []).concat([val]);\n } else {\n parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;\n }\n }\n });\n\n return parsed;\n};\n", "'use strict';\n\nvar utils = require('./../utils');\n\nmodule.exports = (\n utils.isStandardBrowserEnv() ?\n\n // Standard browser envs have full support of the APIs needed to test\n // whether the request URL is of the same origin as current location.\n (function standardBrowserEnv() {\n var msie = /(msie|trident)/i.test(navigator.userAgent);\n var urlParsingNode = document.createElement('a');\n var originURL;\n\n /**\n * Parse a URL to discover it's components\n *\n * @param {String} url The URL to be parsed\n * @returns {Object}\n */\n function resolveURL(url) {\n var href = url;\n\n if (msie) {\n // IE needs attribute set twice to normalize properties\n urlParsingNode.setAttribute('href', href);\n href = urlParsingNode.href;\n }\n\n urlParsingNode.setAttribute('href', href);\n\n // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils\n return {\n href: urlParsingNode.href,\n protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',\n host: urlParsingNode.host,\n search: urlParsingNode.search ? urlParsingNode.search.replace(/^\\?/, '') : '',\n hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',\n hostname: urlParsingNode.hostname,\n port: urlParsingNode.port,\n pathname: (urlParsingNode.pathname.charAt(0) === '/') ?\n urlParsingNode.pathname :\n '/' + urlParsingNode.pathname\n };\n }\n\n originURL = resolveURL(window.location.href);\n\n /**\n * Determine if a URL shares the same origin as the current location\n *\n * @param {String} requestURL The URL to test\n * @returns {boolean} True if URL shares the same origin, otherwise false\n */\n return function isURLSameOrigin(requestURL) {\n var parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL;\n return (parsed.protocol === originURL.protocol &&\n parsed.host === originURL.host);\n };\n })() :\n\n // Non standard browser envs (web workers, react-native) lack needed support.\n (function nonStandardBrowserEnv() {\n return function isURLSameOrigin() {\n return true;\n };\n })()\n);\n", "'use strict';\n\nvar utils = require('./../utils');\nvar settle = require('./../core/settle');\nvar cookies = require('./../helpers/cookies');\nvar buildURL = require('./../helpers/buildURL');\nvar buildFullPath = require('../core/buildFullPath');\nvar parseHeaders = require('./../helpers/parseHeaders');\nvar isURLSameOrigin = require('./../helpers/isURLSameOrigin');\nvar createError = require('../core/createError');\n\nmodule.exports = function xhrAdapter(config) {\n return new Promise(function dispatchXhrRequest(resolve, reject) {\n var requestData = config.data;\n var requestHeaders = config.headers;\n var responseType = config.responseType;\n\n if (utils.isFormData(requestData)) {\n delete requestHeaders['Content-Type']; // Let the browser set it\n }\n\n var request = new XMLHttpRequest();\n\n // HTTP basic authentication\n if (config.auth) {\n var username = config.auth.username || '';\n var password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : '';\n requestHeaders.Authorization = 'Basic ' + btoa(username + ':' + password);\n }\n\n var fullPath = buildFullPath(config.baseURL, config.url);\n request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), 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 var responseHeaders = 'getAllResponseHeaders' in request ? parseHeaders(request.getAllResponseHeaders()) : null;\n var responseData = !responseType || responseType === 'text' || responseType === 'json' ?\n request.responseText : request.response;\n var response = {\n data: responseData,\n status: request.status,\n statusText: request.statusText,\n headers: responseHeaders,\n config: config,\n request: request\n };\n\n settle(resolve, reject, 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(createError('Request aborted', config, 'ECONNABORTED', 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(createError('Network Error', config, null, request));\n\n // Clean up request\n request = null;\n };\n\n // Handle timeout\n request.ontimeout = function handleTimeout() {\n var timeoutErrorMessage = 'timeout of ' + config.timeout + 'ms exceeded';\n if (config.timeoutErrorMessage) {\n timeoutErrorMessage = config.timeoutErrorMessage;\n }\n reject(createError(\n timeoutErrorMessage,\n config,\n config.transitional && config.transitional.clarifyTimeoutError ? 'ETIMEDOUT' : 'ECONNABORTED',\n request));\n\n // Clean up request\n request = null;\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 if (utils.isStandardBrowserEnv()) {\n // Add xsrf header\n var xsrfValue = (config.withCredentials || isURLSameOrigin(fullPath)) && config.xsrfCookieName ?\n cookies.read(config.xsrfCookieName) :\n undefined;\n\n if (xsrfValue) {\n requestHeaders[config.xsrfHeaderName] = xsrfValue;\n }\n }\n\n // Add headers to the request\n if ('setRequestHeader' in request) {\n utils.forEach(requestHeaders, function setRequestHeader(val, key) {\n if (typeof requestData === 'undefined' && key.toLowerCase() === 'content-type') {\n // Remove Content-Type if data is undefined\n delete requestHeaders[key];\n } else {\n // Otherwise add header to the request\n request.setRequestHeader(key, val);\n }\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 (typeof config.onDownloadProgress === 'function') {\n request.addEventListener('progress', config.onDownloadProgress);\n }\n\n // Not all browsers support upload events\n if (typeof config.onUploadProgress === 'function' && request.upload) {\n request.upload.addEventListener('progress', config.onUploadProgress);\n }\n\n if (config.cancelToken) {\n // Handle cancellation\n config.cancelToken.promise.then(function onCanceled(cancel) {\n if (!request) {\n return;\n }\n\n request.abort();\n reject(cancel);\n // Clean up request\n request = null;\n });\n }\n\n if (!requestData) {\n requestData = null;\n }\n\n // Send the request\n request.send(requestData);\n });\n};\n", "'use strict';\n\nvar utils = require('./utils');\nvar normalizeHeaderName = require('./helpers/normalizeHeaderName');\nvar enhanceError = require('./core/enhanceError');\n\nvar DEFAULT_CONTENT_TYPE = {\n 'Content-Type': 'application/x-www-form-urlencoded'\n};\n\nfunction setContentTypeIfUnset(headers, value) {\n if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) {\n headers['Content-Type'] = value;\n }\n}\n\nfunction getDefaultAdapter() {\n var adapter;\n if (typeof XMLHttpRequest !== 'undefined') {\n // For browsers use XHR adapter\n adapter = require('./adapters/xhr');\n } else if (typeof process !== 'undefined' && Object.prototype.toString.call(process) === '[object process]') {\n // For node use HTTP adapter\n adapter = require('./adapters/http');\n }\n return adapter;\n}\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\nvar defaults = {\n\n transitional: {\n silentJSONParsing: true,\n forcedJSONParsing: true,\n clarifyTimeoutError: false\n },\n\n adapter: getDefaultAdapter(),\n\n transformRequest: [function transformRequest(data, headers) {\n normalizeHeaderName(headers, 'Accept');\n normalizeHeaderName(headers, 'Content-Type');\n\n if (utils.isFormData(data) ||\n utils.isArrayBuffer(data) ||\n utils.isBuffer(data) ||\n utils.isStream(data) ||\n utils.isFile(data) ||\n utils.isBlob(data)\n ) {\n return data;\n }\n if (utils.isArrayBufferView(data)) {\n return data.buffer;\n }\n if (utils.isURLSearchParams(data)) {\n setContentTypeIfUnset(headers, 'application/x-www-form-urlencoded;charset=utf-8');\n return data.toString();\n }\n if (utils.isObject(data) || (headers && headers['Content-Type'] === 'application/json')) {\n setContentTypeIfUnset(headers, 'application/json');\n return stringifySafely(data);\n }\n return data;\n }],\n\n transformResponse: [function transformResponse(data) {\n var transitional = this.transitional;\n var silentJSONParsing = transitional && transitional.silentJSONParsing;\n var forcedJSONParsing = transitional && transitional.forcedJSONParsing;\n var strictJSONParsing = !silentJSONParsing && this.responseType === 'json';\n\n if (strictJSONParsing || (forcedJSONParsing && utils.isString(data) && data.length)) {\n try {\n return JSON.parse(data);\n } catch (e) {\n if (strictJSONParsing) {\n if (e.name === 'SyntaxError') {\n throw enhanceError(e, this, 'E_JSON_PARSE');\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 validateStatus: function validateStatus(status) {\n return status >= 200 && status < 300;\n }\n};\n\ndefaults.headers = {\n common: {\n 'Accept': 'application/json, text/plain, */*'\n }\n};\n\nutils.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) {\n defaults.headers[method] = {};\n});\n\nutils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n defaults.headers[method] = utils.merge(DEFAULT_CONTENT_TYPE);\n});\n\nmodule.exports = defaults;\n", "'use strict';\n\nvar utils = require('./../utils');\nvar defaults = require('./../defaults');\n\n/**\n * Transform the data for a request or a response\n *\n * @param {Object|String} data The data to be transformed\n * @param {Array} headers The headers for the request or response\n * @param {Array|Function} fns A single function or Array of functions\n * @returns {*} The resulting transformed data\n */\nmodule.exports = function transformData(data, headers, fns) {\n var context = this || defaults;\n /*eslint no-param-reassign:0*/\n utils.forEach(fns, function transform(fn) {\n data = fn.call(context, data, headers);\n });\n\n return data;\n};\n", "'use strict';\n\nmodule.exports = function isCancel(value) {\n return !!(value && value.__CANCEL__);\n};\n", "'use strict';\n\nvar utils = require('./../utils');\nvar transformData = require('./transformData');\nvar isCancel = require('../cancel/isCancel');\nvar defaults = require('../defaults');\n\n/**\n * Throws a `Cancel` if cancellation has been requested.\n */\nfunction throwIfCancellationRequested(config) {\n if (config.cancelToken) {\n config.cancelToken.throwIfRequested();\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 * @returns {Promise} The Promise to be fulfilled\n */\nmodule.exports = function dispatchRequest(config) {\n throwIfCancellationRequested(config);\n\n // Ensure headers exist\n config.headers = config.headers || {};\n\n // Transform request data\n config.data = transformData.call(\n config,\n config.data,\n config.headers,\n config.transformRequest\n );\n\n // Flatten headers\n config.headers = utils.merge(\n config.headers.common || {},\n config.headers[config.method] || {},\n config.headers\n );\n\n utils.forEach(\n ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],\n function cleanHeaderConfig(method) {\n delete config.headers[method];\n }\n );\n\n var adapter = 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 response.data,\n response.headers,\n config.transformResponse\n );\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 reason.response.data,\n reason.response.headers,\n config.transformResponse\n );\n }\n }\n\n return Promise.reject(reason);\n });\n};\n", "'use strict';\n\nvar utils = require('../utils');\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 * @returns {Object} New object resulting from merging config2 to config1\n */\nmodule.exports = function mergeConfig(config1, config2) {\n // eslint-disable-next-line no-param-reassign\n config2 = config2 || {};\n var config = {};\n\n var valueFromConfig2Keys = ['url', 'method', 'data'];\n var mergeDeepPropertiesKeys = ['headers', 'auth', 'proxy', 'params'];\n var defaultToConfig2Keys = [\n 'baseURL', 'transformRequest', 'transformResponse', 'paramsSerializer',\n 'timeout', 'timeoutMessage', 'withCredentials', 'adapter', 'responseType', 'xsrfCookieName',\n 'xsrfHeaderName', 'onUploadProgress', 'onDownloadProgress', 'decompress',\n 'maxContentLength', 'maxBodyLength', 'maxRedirects', 'transport', 'httpAgent',\n 'httpsAgent', 'cancelToken', 'socketPath', 'responseEncoding'\n ];\n var directMergeKeys = ['validateStatus'];\n\n function getMergedValue(target, source) {\n if (utils.isPlainObject(target) && utils.isPlainObject(source)) {\n return utils.merge(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 function mergeDeepProperties(prop) {\n if (!utils.isUndefined(config2[prop])) {\n config[prop] = getMergedValue(config1[prop], config2[prop]);\n } else if (!utils.isUndefined(config1[prop])) {\n config[prop] = getMergedValue(undefined, config1[prop]);\n }\n }\n\n utils.forEach(valueFromConfig2Keys, function valueFromConfig2(prop) {\n if (!utils.isUndefined(config2[prop])) {\n config[prop] = getMergedValue(undefined, config2[prop]);\n }\n });\n\n utils.forEach(mergeDeepPropertiesKeys, mergeDeepProperties);\n\n utils.forEach(defaultToConfig2Keys, function defaultToConfig2(prop) {\n if (!utils.isUndefined(config2[prop])) {\n config[prop] = getMergedValue(undefined, config2[prop]);\n } else if (!utils.isUndefined(config1[prop])) {\n config[prop] = getMergedValue(undefined, config1[prop]);\n }\n });\n\n utils.forEach(directMergeKeys, function merge(prop) {\n if (prop in config2) {\n config[prop] = getMergedValue(config1[prop], config2[prop]);\n } else if (prop in config1) {\n config[prop] = getMergedValue(undefined, config1[prop]);\n }\n });\n\n var axiosKeys = valueFromConfig2Keys\n .concat(mergeDeepPropertiesKeys)\n .concat(defaultToConfig2Keys)\n .concat(directMergeKeys);\n\n var otherKeys = Object\n .keys(config1)\n .concat(Object.keys(config2))\n .filter(function filterAxiosKeys(key) {\n return axiosKeys.indexOf(key) === -1;\n });\n\n utils.forEach(otherKeys, mergeDeepProperties);\n\n return config;\n};\n", "'use strict';\n\nvar pkg = require('./../../package.json');\n\nvar validators = {};\n\n// eslint-disable-next-line func-names\n['object', 'boolean', 'number', 'function', 'string', 'symbol'].forEach(function(type, i) {\n validators[type] = function validator(thing) {\n return typeof thing === type || 'a' + (i < 1 ? 'n ' : ' ') + type;\n };\n});\n\nvar deprecatedWarnings = {};\nvar currentVerArr = pkg.version.split('.');\n\n/**\n * Compare package versions\n * @param {string} version\n * @param {string?} thanVersion\n * @returns {boolean}\n */\nfunction isOlderVersion(version, thanVersion) {\n var pkgVersionArr = thanVersion ? thanVersion.split('.') : currentVerArr;\n var destVer = version.split('.');\n for (var i = 0; i < 3; i++) {\n if (pkgVersionArr[i] > destVer[i]) {\n return true;\n } else if (pkgVersionArr[i] < destVer[i]) {\n return false;\n }\n }\n return false;\n}\n\n/**\n * Transitional option validator\n * @param {function|boolean?} validator\n * @param {string?} version\n * @param {string} message\n * @returns {function}\n */\nvalidators.transitional = function transitional(validator, version, message) {\n var isDeprecated = version && isOlderVersion(version);\n\n function formatMessage(opt, desc) {\n return '[Axios v' + pkg.version + '] Transitional option \\'' + opt + '\\'' + desc + (message ? '. ' + message : '');\n }\n\n // eslint-disable-next-line func-names\n return function(value, opt, opts) {\n if (validator === false) {\n throw new Error(formatMessage(opt, ' has been removed in ' + version));\n }\n\n if (isDeprecated && !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\n/**\n * Assert object's properties type\n * @param {object} options\n * @param {object} schema\n * @param {boolean?} allowUnknown\n */\n\nfunction assertOptions(options, schema, allowUnknown) {\n if (typeof options !== 'object') {\n throw new TypeError('options must be an object');\n }\n var keys = Object.keys(options);\n var i = keys.length;\n while (i-- > 0) {\n var opt = keys[i];\n var validator = schema[opt];\n if (validator) {\n var value = options[opt];\n var result = value === undefined || validator(value, opt, options);\n if (result !== true) {\n throw new TypeError('option ' + opt + ' must be ' + result);\n }\n continue;\n }\n if (allowUnknown !== true) {\n throw Error('Unknown option ' + opt);\n }\n }\n}\n\nmodule.exports = {\n isOlderVersion: isOlderVersion,\n assertOptions: assertOptions,\n validators: validators\n};\n", "'use strict';\n\nvar utils = require('./../utils');\nvar buildURL = require('../helpers/buildURL');\nvar InterceptorManager = require('./InterceptorManager');\nvar dispatchRequest = require('./dispatchRequest');\nvar mergeConfig = require('./mergeConfig');\nvar validator = require('../helpers/validator');\n\nvar validators = validator.validators;\n/**\n * Create a new instance of Axios\n *\n * @param {Object} instanceConfig The default config for the instance\n */\nfunction Axios(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 {Object} config The config specific for this request (merged with this.defaults)\n */\nAxios.prototype.request = function request(config) {\n /*eslint no-param-reassign:0*/\n // Allow for axios('example/url'[, config]) a la fetch API\n if (typeof config === 'string') {\n config = arguments[1] || {};\n config.url = arguments[0];\n } else {\n config = config || {};\n }\n\n config = mergeConfig(this.defaults, config);\n\n // Set config.method\n if (config.method) {\n config.method = config.method.toLowerCase();\n } else if (this.defaults.method) {\n config.method = this.defaults.method.toLowerCase();\n } else {\n config.method = 'get';\n }\n\n var transitional = config.transitional;\n\n if (transitional !== undefined) {\n validator.assertOptions(transitional, {\n silentJSONParsing: validators.transitional(validators.boolean, '1.0.0'),\n forcedJSONParsing: validators.transitional(validators.boolean, '1.0.0'),\n clarifyTimeoutError: validators.transitional(validators.boolean, '1.0.0')\n }, false);\n }\n\n // filter out skipped interceptors\n var requestInterceptorChain = [];\n var 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 var responseInterceptorChain = [];\n this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {\n responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);\n });\n\n var promise;\n\n if (!synchronousRequestInterceptors) {\n var chain = [dispatchRequest, undefined];\n\n Array.prototype.unshift.apply(chain, requestInterceptorChain);\n chain = chain.concat(responseInterceptorChain);\n\n promise = Promise.resolve(config);\n while (chain.length) {\n promise = promise.then(chain.shift(), chain.shift());\n }\n\n return promise;\n }\n\n\n var newConfig = config;\n while (requestInterceptorChain.length) {\n var onFulfilled = requestInterceptorChain.shift();\n var onRejected = requestInterceptorChain.shift();\n try {\n newConfig = onFulfilled(newConfig);\n } catch (error) {\n onRejected(error);\n break;\n }\n }\n\n try {\n promise = dispatchRequest(newConfig);\n } catch (error) {\n return Promise.reject(error);\n }\n\n while (responseInterceptorChain.length) {\n promise = promise.then(responseInterceptorChain.shift(), responseInterceptorChain.shift());\n }\n\n return promise;\n};\n\nAxios.prototype.getUri = function getUri(config) {\n config = mergeConfig(this.defaults, config);\n return buildURL(config.url, config.params, config.paramsSerializer).replace(/^\\?/, '');\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: method,\n url: url,\n data: (config || {}).data\n }));\n };\n});\n\nutils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n /*eslint func-names:0*/\n Axios.prototype[method] = function(url, data, config) {\n return this.request(mergeConfig(config || {}, {\n method: method,\n url: url,\n data: data\n }));\n };\n});\n\nmodule.exports = Axios;\n", "'use strict';\n\n/**\n * A `Cancel` is an object that is thrown when an operation is canceled.\n *\n * @class\n * @param {string=} message The message.\n */\nfunction Cancel(message) {\n this.message = message;\n}\n\nCancel.prototype.toString = function toString() {\n return 'Cancel' + (this.message ? ': ' + this.message : '');\n};\n\nCancel.prototype.__CANCEL__ = true;\n\nmodule.exports = Cancel;\n", "'use strict';\n\nvar Cancel = require('./Cancel');\n\n/**\n * A `CancelToken` is an object that can be used to request cancellation of an operation.\n *\n * @class\n * @param {Function} executor The executor function.\n */\nfunction CancelToken(executor) {\n if (typeof executor !== 'function') {\n throw new TypeError('executor must be a function.');\n }\n\n var resolvePromise;\n this.promise = new Promise(function promiseExecutor(resolve) {\n resolvePromise = resolve;\n });\n\n var token = this;\n executor(function cancel(message) {\n if (token.reason) {\n // Cancellation has already been requested\n return;\n }\n\n token.reason = new Cancel(message);\n resolvePromise(token.reason);\n });\n}\n\n/**\n * Throws a `Cancel` if cancellation has been requested.\n */\nCancelToken.prototype.throwIfRequested = function throwIfRequested() {\n if (this.reason) {\n throw this.reason;\n }\n};\n\n/**\n * Returns an object that contains a new `CancelToken` and a function that, when called,\n * cancels the `CancelToken`.\n */\nCancelToken.source = function source() {\n var cancel;\n var token = new CancelToken(function executor(c) {\n cancel = c;\n });\n return {\n token: token,\n cancel: cancel\n };\n};\n\nmodule.exports = CancelToken;\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 * @returns {Function}\n */\nmodule.exports = function spread(callback) {\n return function wrap(arr) {\n return callback.apply(null, arr);\n };\n};\n", "'use strict';\n\n/**\n * Determines whether the payload is an error thrown by Axios\n *\n * @param {*} payload The value to test\n * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false\n */\nmodule.exports = function isAxiosError(payload) {\n return (typeof payload === 'object') && (payload.isAxiosError === true);\n};\n", "'use strict';\n\nvar utils = require('./utils');\nvar bind = require('./helpers/bind');\nvar Axios = require('./core/Axios');\nvar mergeConfig = require('./core/mergeConfig');\nvar defaults = require('./defaults');\n\n/**\n * Create an instance of Axios\n *\n * @param {Object} defaultConfig The default config for the instance\n * @return {Axios} A new instance of Axios\n */\nfunction createInstance(defaultConfig) {\n var context = new Axios(defaultConfig);\n var instance = bind(Axios.prototype.request, context);\n\n // Copy axios.prototype to instance\n utils.extend(instance, Axios.prototype, context);\n\n // Copy context to instance\n utils.extend(instance, context);\n\n return instance;\n}\n\n// Create the default instance to be exported\nvar axios = createInstance(defaults);\n\n// Expose Axios class to allow class inheritance\naxios.Axios = Axios;\n\n// Factory for creating new instances\naxios.create = function create(instanceConfig) {\n return createInstance(mergeConfig(axios.defaults, instanceConfig));\n};\n\n// Expose Cancel & CancelToken\naxios.Cancel = require('./cancel/Cancel');\naxios.CancelToken = require('./cancel/CancelToken');\naxios.isCancel = require('./cancel/isCancel');\n\n// Expose all/spread\naxios.all = function all(promises) {\n return Promise.all(promises);\n};\naxios.spread = require('./helpers/spread');\n\n// Expose isAxiosError\naxios.isAxiosError = require('./helpers/isAxiosError');\n\nmodule.exports = axios;\n\n// Allow use of default import syntax in TypeScript\nmodule.exports.default = axios;\n", "module.exports = require('./lib/axios');", null, null, null, "\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n//# sourceMappingURL=types.js.map", null, "import { createHttpClient } from '@wix/http-client';\nimport { EventPayload } from '@wix/panorama-common-shared/types';\nimport { ReporterOptions } from './types';\n\nexport const nodeReporter =\n (url: string, { silent = false }: ReporterOptions = { silent: false }) =>\n (eventPayload: EventPayload): boolean => {\n const httpClient = createHttpClient();\n\n const body = JSON.stringify({ logMessage: eventPayload });\n httpClient.post(url, body).catch((e) => {\n if (silent) {\n return;\n }\n\n console.error(e);\n });\n\n return true;\n };\n", "import {\n panoramaClient,\n type PanoramaClientFactory,\n type PluginParams,\n} from '@wix/panorama-client';\nimport type {\n EventPayload,\n BaseParams,\n UserParams,\n} from '@wix/panorama-common-shared/types';\nimport { environmentPlugin } from '@wix/panorama-client/plugins';\nimport { CLICKHOUSE_REPORT_URL } from '@wix/panorama-common-shared/constants';\nimport { nodeReporter } from './reporter';\nimport type { ReporterOptions } from './types';\n\ninterface FactoryOptions {\n baseParams?: BaseParams;\n data?: UserParams['data'];\n pluginParams?: PluginParams;\n reporterOptions?: ReporterOptions;\n}\n\ntype Factory = Omit<PanoramaClientFactory, 'use'>;\n\nexport const panoramaClientFactory = (options: FactoryOptions): Factory => {\n const { baseParams, reporterOptions, data } = options;\n\n const factory = panoramaClient<EventPayload>({\n baseParams,\n data,\n })\n .use(environmentPlugin())\n .withReporter(nodeReporter(CLICKHOUSE_REPORT_URL, reporterOptions));\n\n // @ts-expect-error\n factory.use = undefined;\n\n return factory;\n};\n", "export { panoramaClientFactory } from './panorama-client-node';\n\nexport {\n type PanoramaClient,\n type PanoramaClientForComponent,\n type GlobalConfig,\n createGlobalConfig,\n ExceptionType as PanoramaExceptionType,\n ErrorSeverity as PanoramaErrorSeverity,\n type PanoramaLogger,\n Platform as PanoramaPlatform,\n} from '@wix/panorama-client';\n", "'use strict'; // eslint-disable-line strict\n\nclass AssertionError extends Error {\n constructor(message) {\n super(message);\n this.name = this.constructor.name;\n }\n}\n\nfunction assertDefined(target, message) {\n if (target === undefined) {\n throw new AssertionError(message);\n }\n}\n\nfunction assertObject(target, message) {\n if (\n target !== undefined &&\n (typeof target !== 'object' || Array.isArray(target) || target === null)\n ) {\n throw new AssertionError(message);\n }\n}\n\nfunction assertOk(target, message) {\n if (!target) {\n throw new AssertionError(message);\n }\n}\n\nfunction assertFunc(target, message) {\n if (target !== undefined && typeof target !== 'function') {\n throw new AssertionError(message);\n }\n}\n\nfunction assertBoolean(target, message) {\n if (target !== undefined && typeof target !== 'boolean') {\n throw new AssertionError(message);\n }\n}\n\nfunction assertNumber(target, message) {\n if (target !== undefined && typeof target !== 'number') {\n throw new AssertionError(message);\n }\n}\n\nfunction assertArray(target, message) {\n if (typeof Array.isArray === 'function') {\n if (!Array.isArray(target)) {\n throw new AssertionError(message);\n }\n } else if (Object.prototype.toString.call(target) !== '[object Array]') {\n throw new AssertionError(message);\n }\n}\n\nmodule.exports.defined = assertDefined;\nmodule.exports.object = assertObject;\nmodule.exports.ok = assertOk;\nmodule.exports.func = assertFunc;\nmodule.exports.boolean = assertBoolean;\nmodule.exports.number = assertNumber;\nmodule.exports.array = assertArray;\nmodule.exports.AssertionError = AssertionError;\n", "/**\n * This callback type is called `requestCallback` and is displayed as a global symbol.\n *\n * @callback iterateeCallback\n * @param {*} Value\n * @param {string} Key\n * @param {object} Original object\n */\n/**\n * Iterates over object values\n * @param {Object} collection\n * @param {iterateeCallback} iteratee\n * @return {Object} iterated object\n */\nmodule.exports.mapValues = function(collection, iteratee) {\n if (!collection) {\n return {};\n }\n\n return Object.keys(collection).reduce((acc, key) => {\n acc[key] = iteratee(collection[key], key, collection);\n return acc;\n }, {});\n};\n\nmodule.exports.filterValues = function(collection, iteratee) {\n if (!collection) {\n return {};\n }\n\n return Object.keys(collection).reduce((acc, key) => {\n const keep = iteratee(collection[key], key, collection);\n\n if (keep) {\n acc[key] = collection[key];\n }\n\n return acc;\n }, {});\n};\n", "/**\n * rejects original promise after specified timeout\n * @param {Promise<R>} promise Original promise\n * @param {string} [message] Additional message for timeout reject\n * @param {number} timeout Time for reject\n * @return {Promise<R>}\n */\nmodule.exports.timedPromise = function(promise, { message, timeout }) {\n const timeoutPromise = new Promise((resolve, reject) => {\n setTimeout(reject, timeout, message ? `Timeout: ${message}` : 'Timeout');\n });\n return Promise.race([promise, timeoutPromise]);\n};\n\n/**\n * Works like Promise.all expect uses object instead of array.\n * @param {Object} promiseObject\n * @return {Promise} Promise with original keys and resolved values\n */\nmodule.exports.allAsObject = function(promiseObject) {\n const keys = Object.keys(promiseObject);\n return Promise.all(keys.map(key => promiseObject[key])).then(resolved => {\n return resolved.reduce((acc, value, i) => {\n acc[keys[i]] = value;\n return acc;\n }, {});\n });\n};\n", "module.exports = {\n error(...args) {\n if (console && console.error) {\n console.error(...args);\n }\n },\n};\n", "// Returns a function, that, as long as it continues to be invoked, will not\n// be triggered. The function will be called after it stops being called for\n// N milliseconds. If `immediate` is passed, trigger the function on the\n// leading edge, instead of the trailing.\nfunction debounce(func, wait, immediate) {\n let timeout;\n\n // This is the function that is actually executed when\n // the DOM event is triggered.\n return function() {\n // Store the context of this and any parameters passed to executedFunction\n const context = this;\n const args = arguments;\n\n // The function to be called after\n // the debounce time has elapsed\n const later = function() {\n // null timeout to indicate the debounce ended\n timeout = null;\n\n // Call function now if you did not on the leading end\n if (!immediate) {\n func.apply(context, args);\n }\n };\n\n // Determine if you should call the function\n // on the leading or trail end\n const callNow = immediate && !timeout;\n\n // This will reset the waiting every function execution.\n // This is the step that prevents the function from\n // being executed because it will never reach the\n // inside of the previous setTimeout\n clearTimeout(timeout);\n\n // Restart the debounce waiting period.\n // setTimeout returns a truthy value (it differs in web vs node)\n timeout = setTimeout(later, wait);\n\n // Call immediately if you're dong a leading\n // end execution\n if (callNow) {\n func.apply(context, args);\n }\n };\n}\n\nmodule.exports = debounce;\n", "function throttle(func, wait) {\n let timeout;\n\n return (...args) => {\n if (!timeout) {\n timeout = setTimeout(() => {\n func(...args);\n timeout = null;\n }, wait);\n }\n };\n}\n\nmodule.exports = throttle;\n", "const debounce = require('./debounce');\nconst throttle = require('./throttle');\n\nconst createEvent = (event, context, startTime) => ({\n dt: Date.now() - startTime,\n f: event,\n context,\n});\n\nconst createBatch = (events, startTime) => ({\n dt: Date.now() - startTime,\n e: events,\n g: {},\n});\n\nconst optimizeBatch = batch => {\n const fieldCounts = {};\n const batchLen = batch.e.length;\n\n let events = batch.e.map(event => {\n const fields = Object.keys(event.f).map(field => {\n const value = event.f[field];\n const key = `${field}|${value}`;\n fieldCounts[key] = fieldCounts[key] || 0;\n fieldCounts[key]++;\n return [field, value, key];\n });\n\n return {\n ...event,\n f: fields,\n };\n });\n\n const globalFields = {};\n events = events.map(event => {\n const fields = event.f.reduce((res, [field, value, key]) => {\n if (fieldCounts[key] === batchLen) {\n globalFields[field] = value;\n } else {\n res[field] = value;\n }\n\n return res;\n }, {});\n\n return {\n ...event,\n f: fields,\n };\n });\n\n return {\n ...batch,\n e: events,\n g: globalFields,\n };\n};\n\nclass BatchQueue {\n constructor() {\n this._initilized = false;\n }\n\n _reset() {\n this._startTime = Date.now();\n this._resolve = null;\n this._promise = new Promise(resolve => (this._resolve = resolve));\n }\n\n init({ delayMs, maxBatchSize, useThrottle, optimizeBatch }, flushHandler) {\n if (this._initilized) {\n return;\n }\n\n this._maxBatchSize = maxBatchSize;\n this._optimizeBatch = optimizeBatch;\n this._queue = [];\n this._flushHandler = flushHandler;\n this._flushDebounced = useThrottle\n ? throttle(() => this.flush(), delayMs)\n : debounce(() => this.flush(), delayMs);\n this._initilized = true;\n\n this._reset();\n }\n\n flush() {\n if (!this._queue.length) {\n return Promise.resolve();\n }\n\n const events = this._queue.splice(0, this._queue.length);\n const resolve = this._resolve;\n const startTime = this._startTime;\n\n this._reset();\n\n let batch = createBatch(events, startTime);\n\n if (this._optimizeBatch) {\n batch = optimizeBatch(batch);\n }\n\n return this._flushHandler(batch).then(resolve);\n }\n\n feed(event, context) {\n this._queue.push(createEvent(event, context, this._startTime));\n\n if (this._queue.length === this._maxBatchSize) {\n return this.flush();\n }\n\n this._flushDebounced();\n\n return this._promise;\n }\n}\n\nmodule.exports = BatchQueue;\n", "'use strict'; // eslint-disable-line strict\n\nconst DefaultConsentPolicy = {\n functional: true,\n analytics: true,\n __default: true,\n};\n\nconst getPolicy = consentPolicyGetter => {\n return (\n (typeof consentPolicyGetter === 'function' && consentPolicyGetter()) ||\n DefaultConsentPolicy\n );\n};\n\nconst shouldMuteNonEssentials = policy => {\n return policy.functional === false || policy.analytics === false;\n};\n\nconst shouldMuteByCategory = (policy, category) => {\n if (category === 'essential') {\n return false;\n }\n\n if (category === 'functional' || category === 'analytics') {\n return policy[category] === false;\n }\n\n return shouldMuteNonEssentials(policy);\n};\n\nmodule.exports = {\n shouldMuteNonEssentials,\n shouldMuteByCategory,\n getPolicy,\n};\n", "'use strict'; // eslint-disable-line strict\nconst assert = require('./assert');\nconst { mapValues, filterValues } = require('./utils/collections');\nconst promise = require('./utils/promise');\nconst log = require('./utils/log');\nconst BatchQueue = require('./utils/batch-queue');\nconst {\n shouldMuteByCategory,\n shouldMuteNonEssentials,\n getPolicy,\n} = require('./consent-policy');\n\nclass BiLogger {\n // TODO: validate args\n constructor(options, context) {\n this._publishers = options.publishers;\n this._validators = options.validators || [];\n this._defaults = options.defaults;\n this._ownDefaults = {};\n this._events = options.events || {};\n this._context = context || {};\n this._defaultValueTimeout = options.defaultValueTimeout || 5000;\n this._defaultContinueOnFail = options.defaultContinueOnFail || false;\n this._onPublisherFailHandler =\n options.onPublisherFailHandler || BiLogger._defaultPublisherFailHandler;\n this._isMuted = options.isMuted || (() => false);\n this._eventTransformer = options.eventTransformer || (event => event);\n this._payloadTransformer =\n options.payloadTransformer || (payload => payload);\n this._consentPolicyGetter = options.consentPolicyGetter || (() => null);\n this._nonEssentialDefaults = options.nonEssentialDefaults || {};\n this._maxBatchSize = options.maxBatchSize || 100;\n this._globalBatchQueue = options.globalBatchQueue;\n }\n\n report(data) {\n assert.defined(data, 'Data must be provided');\n assert.object(data, 'Data must be an object');\n\n const { src, evid, params, ...context } = data;\n\n return this.log({ src, evid, ...params }, context);\n }\n\n log(eventOrKey, eventOrContextOrUndefined, contextOrUndefined) {\n assert.defined(eventOrKey, 'Event object or event key must be provided.');\n\n const { event, context } = this._extractEventAndContext(\n eventOrKey,\n eventOrContextOrUndefined,\n contextOrUndefined,\n );\n const policy = getPolicy(this._consentPolicyGetter);\n const fullContext = { ...this._context, ...context };\n\n if (this._isMuted() || shouldMuteByCategory(policy, fullContext.category)) {\n return Promise.resolve();\n }\n\n if (fullContext.useBatch) {\n const queue = this._initQueue(fullContext, policy);\n\n const transformAndQueue = _event => {\n const transformedEvent = this._eventTransformer(_event, fullContext);\n\n return queue.feed(transformedEvent, fullContext);\n };\n\n if (this._globalBatchQueue) {\n return this._getDefaults(this._defaults).then(defaults => {\n const fullEvent = {\n ...defaults,\n ...this._getDynamicNonEssentialDefaults(policy),\n ...this._getStaticNonEssentialDefaults(policy),\n ...event,\n ...this._getPolicyFields(policy, fullContext.category),\n };\n\n return transformAndQueue(fullEvent);\n });\n } else {\n const fullEvent = {\n ...this._getDynamicDefaults(this._defaults),\n ...this._getDynamicNonEssentialDefaults(policy),\n ...event,\n ...this._getPolicyFields(policy, fullContext.category),\n };\n\n return transformAndQueue(fullEvent);\n }\n }\n\n return this._getDefaults(this._defaults).then(defaults => {\n const fullEvent = Object.assign(\n defaults,\n this._getDynamicNonEssentialDefaults(policy),\n this._getStaticNonEssentialDefaults(policy),\n event,\n this._getPolicyFields(policy, fullContext.category),\n );\n\n const validatorsResult =\n this._validators.length === 0\n ? true\n : this._validators.some(\n validator =>\n validator.match(fullEvent) &&\n (validator.execute(fullEvent) || true),\n );\n\n if (!validatorsResult) {\n throw new Error(\n `No validator accepted the event. Source: ${\n fullEvent.src\n } Evid: ${fullEvent.evid || fullEvent.evtId}`,\n );\n }\n\n let transformedEvent = this._eventTransformer(fullEvent, fullContext);\n transformedEvent = this._payloadTransformer(\n transformedEvent,\n fullContext,\n );\n\n return this._send(transformedEvent, fullContext);\n });\n }\n\n flush() {\n if (!this._queue) {\n return Promise.resolve();\n }\n return this._queue.flush();\n }\n\n updateDefaults(defaults) {\n assert.defined(defaults, 'Defaults must be provided');\n assert.object(defaults, 'Defaults must be an object');\n Object.assign(this._ownDefaults, defaults);\n return this;\n }\n\n _send(payload, context = {}) {\n return Promise.all(\n this._publishers.map(publisher => {\n const cloned = { ...payload };\n\n return Promise.resolve()\n .then(() => publisher(cloned, context))\n .catch(error =>\n this._onPublisherFailHandler(error, {\n publisherName: publisher.name,\n payload,\n }),\n );\n }),\n ).then(() => undefined);\n }\n\n _extractEventAndContext(\n eventOrKey,\n eventOrContextOrUndefined,\n contextOrUndefined,\n ) {\n let event;\n let context = {};\n\n if (typeof eventOrKey !== 'string') {\n event = eventOrKey;\n context = eventOrContextOrUndefined || context;\n } else {\n event = this._events[eventOrKey];\n\n if (!event) {\n throw new assert.AssertionError(\n `Event with key '${eventOrKey}' not found in event map.`,\n );\n }\n\n if (eventOrContextOrUndefined) {\n event = { ...event, ...eventOrContextOrUndefined };\n context = contextOrUndefined || context;\n }\n }\n\n return { event, context };\n }\n\n _initQueue(context, policy) {\n if (this._queue) {\n return this._queue;\n }\n\n this._queue = this._globalBatchQueue || new BatchQueue();\n\n const onFlush = batch => {\n // if queue is global don't define global properties\n if (!this._globalBatchQueue) {\n batch.g = Object.assign(\n this._getStaticDefaults(this._defaults),\n this._getStaticNonEssentialDefaults(policy),\n );\n }\n\n const transformedPayload = this._payloadTransformer(batch, context);\n\n return this._send(transformedPayload, context);\n };\n\n this._queue.init(\n {\n delayMs: context.useBatch === true ? 300 : context.useBatch,\n maxBatchSize: this._maxBatchSize,\n useThrottle: !!this._globalBatchQueue,\n optimizeBatch: !!this._globalBatchQueue,\n },\n onFlush,\n );\n\n return this._queue;\n }\n\n _handleDefaultsError(err) {\n if (this._defaultContinueOnFail) {\n log.error(err);\n return null;\n }\n return Promise.reject(err);\n }\n\n _getDynamicNonEssentialDefaults(policy) {\n if (!shouldMuteNonEssentials(policy)) {\n return this._getDynamicDefaults(this._nonEssentialDefaults);\n }\n }\n\n _getStaticNonEssentialDefaults(policy) {\n if (!shouldMuteNonEssentials(policy)) {\n return this._getStaticDefaults(this._nonEssentialDefaults);\n }\n }\n\n _withOwnDefaults(defaults) {\n return Object.assign({}, defaults, this._ownDefaults);\n }\n\n _getDynamicDefaults(defaults) {\n defaults = this._withOwnDefaults(defaults);\n const dynamicDefaults = filterValues(\n defaults,\n v => typeof v === 'function',\n );\n return mapValues(dynamicDefaults, v => v());\n }\n\n _getStaticDefaults(defaults) {\n defaults = this._withOwnDefaults(defaults);\n const staticDefaults = filterValues(defaults, v => typeof v !== 'function');\n return staticDefaults;\n }\n\n _getDefaults(defaults) {\n defaults = this._withOwnDefaults(defaults);\n if (!defaults) {\n return Promise.resolve({});\n }\n\n const promises = mapValues(defaults, (value, key) => {\n if (typeof value === 'function') {\n try {\n value = value();\n } catch (err) {\n return this._handleDefaultsError(err);\n }\n }\n\n if (value && typeof value.then === 'function') {\n return promise\n .timedPromise(value, {\n message: `Cannot get default value '${key} for BI Event'`,\n timeout: this._defaultValueTimeout,\n })\n .catch(err => this._handleDefaultsError(err));\n }\n\n return value;\n });\n\n return promise.allAsObject(promises);\n }\n\n _encodePolicyValue(policy, key) {\n if (!policy) {\n return 1;\n }\n\n if (typeof policy[key] === 'boolean') {\n return policy[key] ? 1 : 0;\n }\n\n return policy[key];\n }\n\n _getPolicyFields(policy, category) {\n return {\n _isca: this._encodePolicyValue(policy, 'analytics'),\n _iscf: this._encodePolicyValue(policy, 'functional'),\n _ispd: policy.__default ? 1 : 0,\n _ise: category === 'essential' ? 1 : 0,\n };\n }\n\n static _defaultPublisherFailHandler(error, { publisherName }) {\n return publisherName; // do nothing\n }\n}\n\nmodule.exports = BiLogger;\n", "'use strict'; // eslint-disable-line strict\n\nconst assert = require('./assert');\n\nclass BiLoggerManager {\n constructor() {\n this.reset();\n }\n\n reset() {\n this._handlers = [];\n }\n\n onLoggerCreated(handler) {\n assert.defined(handler, 'Handler must be provided.');\n assert.func(handler, 'Handler must be a function.');\n\n this._handlers.push(handler);\n\n return () => {\n const index = this._handlers.indexOf(handler);\n\n if (index !== -1) {\n this._handlers.splice(index, 1);\n }\n };\n }\n\n notifyLoggerCreated(logger) {\n this._handlers.forEach(handler => handler(logger));\n }\n}\n\nmodule.exports = {\n manager: new BiLoggerManager(),\n BiLoggerManager,\n};\n", "'use strict'; // eslint-disable-line strict\nconst assert = require('./assert');\nconst BiLogger = require('./bi-logger');\nconst biLoggerManager = require('./bi-logger-manager');\nconst BatchQueue = require('./utils/batch-queue');\n\nclass BiLoggerFactory {\n constructor() {\n this._publishers = [];\n this._validators = [];\n this._defaults = {};\n this._nonEssentialDefaults = {};\n this._events = {};\n this._isMuted = false;\n this._eventTransformer = null;\n this._payloadTransformer = null;\n this._consentPolicyGetter = null;\n this._maxBatchSize = null;\n this._batchQueue = null;\n }\n\n addPublisher(publisher) {\n assert.defined(publisher, 'Publisher must be provided');\n assert.ok(typeof publisher === 'function', 'Expected a publisher function');\n this._publishers.push(publisher);\n return this;\n }\n\n addValidator(validator) {\n assert.defined(validator, 'Validator must be provided');\n assert.ok(\n typeof validator === 'object' && validator,\n 'Expected a validator object',\n );\n assert.ok(\n validator.execute && validator.match,\n 'Provided validator does not match the interface',\n );\n this._validators.push(validator);\n return this;\n }\n\n setDefaults(defaults) {\n assert.defined(defaults, 'Defaults must be provided');\n assert.object(defaults, 'Defaults must be an object');\n this._defaults = defaults;\n return this;\n }\n\n updateDefaults(defaults) {\n assert.defined(defaults, 'Defaults must be provided');\n assert.object(defaults, 'Defaults must be an object');\n Object.assign(this._defaults, defaults);\n return this;\n }\n\n updateNonEssentialDefaults(defaults) {\n assert.defined(defaults, 'Non-essential Defaults must be provided');\n assert.object(defaults, 'Non-essential Defaults must be an object');\n Object.assign(this._nonEssentialDefaults, defaults);\n return this;\n }\n\n setEvents(events) {\n assert.defined(events, 'Events must be provided');\n assert.object(events, 'Events must be an object');\n this._events = events;\n return this;\n }\n\n setDefaultValueTimeout(defaultValueTimeout) {\n assert.defined(\n defaultValueTimeout,\n 'Default Value Timeout must be provided',\n );\n this._defaultValueTimeout = defaultValueTimeout;\n return this;\n }\n\n setDefaultContinueOnFail(defaultContinueOnFail) {\n assert.defined(\n defaultContinueOnFail,\n 'Default Continue On Fail must be provided',\n );\n this._defaultContinueOnFail = defaultContinueOnFail;\n return this;\n }\n\n setPublisherFailHandler(onPublisherFailHandler) {\n assert.defined(\n onPublisherFailHandler,\n 'Publisher Fail Handler must be provided',\n );\n this._onPublisherFailHandler = onPublisherFailHandler;\n return this;\n }\n\n setMuted(isMuted) {\n assert.defined(isMuted, 'Is Muted must be provided');\n assert.boolean(isMuted, 'Is Muted must be a boolean');\n this._isMuted = isMuted;\n return this;\n }\n\n setMaxBatchSize(maxBatchSize) {\n assert.defined(maxBatchSize, 'Max Batch Size must be provided');\n assert.number(maxBatchSize, 'Max Batch Size must be a number');\n assert.ok(maxBatchSize > 0, 'Max Batch Size must be higher than 0');\n this._maxBatchSize = maxBatchSize;\n return this;\n }\n\n setGlobalBatchQueue(batchQueue) {\n assert.defined(batchQueue, 'Global Batch Queue must be provided');\n assert.ok(\n batchQueue instanceof BatchQueue,\n 'Global Batch Queue must be an instance of BatchQueue',\n );\n this._globalBatchQueue = batchQueue;\n return this;\n }\n\n withEventTransformer(transformer) {\n assert.defined(transformer, 'Event Transformer must be provided');\n assert.func(transformer, 'Event Transformer must be a function');\n this._eventTransformer = transformer;\n return this;\n }\n\n withPayloadTransformer(transformer) {\n assert.defined(transformer, 'Payload Transformer must be provided');\n assert.func(transformer, 'Payload Transformer must be a function');\n this._payloadTransformer = transformer;\n return this;\n }\n\n withConsentPolicyGetter(getter) {\n assert.defined(getter, 'Consent Policy Getter must be provided');\n assert.func(getter, 'Consent Policy Getter must be a function');\n this._consentPolicyGetter = getter;\n return this;\n }\n\n logger(context) {\n const logger = new BiLogger(\n {\n publishers: this._publishers,\n validators: this._validators,\n defaults: this._defaults,\n events: this._events,\n defaultValueTimeout: this._defaultValueTimeout,\n defaultContinueOnFail: this._defaultContinueOnFail,\n onPublisherFailHandler: this._onPublisherFailHandler,\n isMuted: () => this._isMuted,\n eventTransformer: this._eventTransformer,\n payloadTransformer: this._payloadTransformer,\n consentPolicyGetter: this._consentPolicyGetter,\n nonEssentialDefaults: this._nonEssentialDefaults,\n maxBatchSize: this._maxBatchSize,\n globalBatchQueue: this._globalBatchQueue,\n },\n context,\n );\n\n biLoggerManager.manager.notifyLoggerCreated(logger);\n\n return logger;\n }\n}\n\nmodule.exports = BiLoggerFactory;\n", "'use strict'; // eslint-disable-line strict\nconst BiLoggerClientFactory = require('./bi-logger-factory');\nconst BiLogger = require('./bi-logger');\nconst biLoggerManager = require('./bi-logger-manager');\nconst BatchQueue = require('./utils/batch-queue');\n\nmodule.exports.BiLoggerFactory = BiLoggerClientFactory;\nmodule.exports.BiLogger = BiLogger;\nmodule.exports.BiLoggerManager = biLoggerManager.BiLoggerManager;\n\nmodule.exports.factory = () => new BiLoggerClientFactory();\nmodule.exports.manager = biLoggerManager.manager;\nmodule.exports.createBatchQueue = () => new BatchQueue();\n", null, "export function maybeGetDocument() {\n if (typeof document === 'object') {\n return document;\n }\n\n return undefined;\n}\n\nexport function maybeGetGlobal(): any {\n if (typeof self === 'object') {\n return self;\n } else {\n return global;\n }\n}\n", "import { maybeGetDocument } from './globals';\n\nexport function readCookie(name: string): string {\n const cookieValue = getCookieByName(name);\n\n if (cookieValue) {\n return cookieValue.split('=')[1];\n }\n\n return '';\n}\n\nfunction loadCookies(): string[] {\n const documentObj = maybeGetDocument();\n\n if (documentObj && documentObj.cookie) {\n return decodeURIComponent(documentObj.cookie).split(';');\n }\n\n return [];\n}\n\nfunction getCookieByName(name: string): string {\n return loadCookies().filter(\n (cookie) => name === cookie.split('=')[0].trim(),\n )[0];\n}\n", "import { readCookie } from '../cookies';\n\nexport const XSRF_TOKEN_COOKIE_NAME = 'XSRF-TOKEN';\nexport const XSRF_HEADER_NAME = 'x-xsrf-token';\n\nexport function csrf() {\n const value = readCookie(XSRF_TOKEN_COOKIE_NAME);\n return { [XSRF_HEADER_NAME]: value };\n}\n", "import { maybeGetGlobal } from '../globals';\n\nconst X_WIX_BRAND_NAME = 'x-wix-brand';\n\nexport function xWixBrand() {\n const value = extractBrand();\n\n return { [X_WIX_BRAND_NAME]: value };\n}\n\nfunction extractBrand(): string {\n const globalObj = maybeGetGlobal();\n\n if (\n globalObj &&\n globalObj.commonConfig &&\n typeof globalObj.commonConfig.brand === 'string'\n ) {\n return globalObj.commonConfig.brand;\n }\n\n return '';\n}\n", "import { maybeGetGlobal } from '../globals';\n\nexport function consentPolicy() {\n return tryResolveNativeAPI() || tryResolveJsSDK() || none();\n}\n\nfunction tryResolveJsSDK() {\n const globalObj = maybeGetGlobal();\n\n if (\n globalObj &&\n globalObj.Wix &&\n globalObj.Wix.Utils &&\n typeof globalObj.Wix.Utils._getConsentPolicyHeader === 'function'\n ) {\n return globalObj.Wix.Utils._getConsentPolicyHeader();\n }\n\n return undefined;\n}\n\nfunction tryResolveNativeAPI() {\n const globalObj = maybeGetGlobal();\n\n if (\n globalObj &&\n globalObj.consentPolicyManager &&\n typeof globalObj.consentPolicyManager._getConsentPolicyHeader === 'function'\n ) {\n return globalObj.consentPolicyManager._getConsentPolicyHeader();\n }\n\n return undefined;\n}\n\nfunction none() {\n return {};\n}\n", "export function authorization(signedInstance?: string) {\n return { authorization: signedInstance };\n}\n", "export function isCI() {\n if (isNode()) {\n return !!process.env.TEAMCITY_VERSION || !!process.env.BUILDKITE;\n }\n\n return false;\n}\n\nfunction isNode() {\n // todo: need to add a browser test\n return typeof process !== 'undefined' && process.versions?.node != null;\n}\n", "import { isCI } from '../utils';\n\nexport function artifactId(override?: string) {\n const artifactIdToUse = process.env.ARTIFACT_ID ?? process.env.APP_NAME ?? '';\n\n return {\n 'X-Wix-Client-Artifact-Id': override ?? (!isCI() ? artifactIdToUse : ''),\n };\n}\n", "import { maybeGetGlobal } from '../globals';\nimport { CommonConfigServer } from '../domain';\n\nconst IGNORE_KEYS = ['consentPolicy', 'consentPolicyHeader'];\nconst COMMON_CONFIG_NAME = 'commonConfig';\nconst MAP_KEYS = {\n bsi: 'BSI',\n};\n\nfunction extractCommonConfigValues(): CommonConfigServer | null {\n const globalObj = maybeGetGlobal();\n const commonConfigObj = globalObj?.commonConfig;\n\n if (!commonConfigObj) {\n return null;\n }\n\n const res: any = {};\n let addedKeys = false;\n Object.keys(commonConfigObj).forEach((key) => {\n // @ts-expect-error\n const newKey: string | undefined = MAP_KEYS[key];\n if (newKey) {\n res[newKey] = commonConfigObj[key];\n addedKeys = true;\n } else if (\n IGNORE_KEYS.indexOf(key) < 0 &&\n typeof commonConfigObj[key] !== 'function'\n ) {\n res[key] = commonConfigObj[key];\n addedKeys = true;\n }\n });\n\n return addedKeys ? (res as CommonConfigServer) : null;\n}\n\nexport const commonConfig = () => {\n const commonConfigValues = extractCommonConfigValues();\n const value = commonConfigValues ? JSON.stringify(commonConfigValues) : '';\n\n return { [COMMON_CONFIG_NAME]: encodeURIComponent(value) };\n};\n", "import base64 from 'base-64';\nimport { MultilingualOptions, Headers } from '../domain';\n\nconst LINGUIST_HEADER_KEY = 'x-wix-linguist';\n\nexport function linguistHeader({\n lang,\n locale,\n isPrimaryLanguage,\n signedInstance,\n}: MultilingualOptions & { signedInstance?: string }): Headers {\n // Validate all parameters exists in order to create the linguist header.\n if (isMultilingualOptionsAreValid({ lang, locale, isPrimaryLanguage })) {\n const instanceId = getInstanceIdFromSignedInstance(signedInstance);\n\n if (instanceId !== undefined) {\n return {\n [LINGUIST_HEADER_KEY]: [\n lang,\n locale,\n isPrimaryLanguage?.toString(),\n instanceId,\n ].join('|'),\n };\n }\n }\n\n return {};\n}\n\nfunction isMultilingualOptionsAreValid({\n lang,\n locale,\n isPrimaryLanguage,\n}: MultilingualOptions) {\n return (\n lang && locale && /^(true|false)$/.test(isPrimaryLanguage?.toString() || '')\n );\n}\n\nfunction getInstanceIdFromSignedInstance(signedInstance?: string) {\n try {\n const encodedInstance = signedInstance?.startsWith('wixcode')\n ? signedInstance?.split('.')[2]\n : signedInstance?.split('.')[1];\n\n if (encodedInstance) {\n return JSON.parse(base64.decode(encodedInstance)).instanceId;\n }\n } catch (e) {}\n}\n", "import type proto from '@wix/fed-infra-protos/dist/proto-generated';\n\nexport type CommonConfigServerProto = proto.wix.fedinfra.commons.CommonConfig;\n\nexport enum Brand {\n wix = 0,\n editorx = 1,\n dayful = 2,\n studio = 3,\n}\n\nexport interface CommonConfigServer\n extends Omit<CommonConfigServerProto, 'brand'> {\n brand?: 'wix' | 'editorx' | 'dayful' | 'studio';\n}\n\nexport interface CommonConfig extends Omit<CommonConfigServer, 'BSI'> {\n bsi?: string | null;\n}\n\nexport interface ConsentPolicyManager {\n _getConsentPolicyHeader(): Headers;\n}\n\nexport interface Wix {\n Utils: {\n _getConsentPolicyHeader(): Headers;\n };\n}\n\nexport type Headers = { [header: string]: string | undefined };\n\nexport type WixHeaders = {\n 'x-wix-brand'?: string;\n 'x-xsrf-token'?: string;\n authorization?: string;\n 'X-Wix-Client-Artifact-Id'?: string;\n commonConfig?: string;\n 'x-wix-linguist'?: string;\n};\n\nexport interface MultilingualOptions {\n lang?: string;\n locale?: string;\n isPrimaryLanguage?: string | boolean;\n}\n", "export class WixHeadersParsingError extends Error {\n constructor(header: string, value: any) {\n super(\n `WixHeadersParsingError: ${header} evaluated with ${JSON.stringify(\n value,\n )} but should be a string!`,\n );\n }\n}\n\nexport class WixHeadersValidationError extends Error {\n constructor(type: string, key: string, value: any) {\n super(\n `WixHeadersValidationError: expected ${key} to be ${type} but got ${JSON.stringify(\n value,\n )}`,\n );\n }\n}\n", "import { WixHeadersValidationError } from './errors';\n\nexport function assertBoolean(key: string, value: any) {\n if (typeof value !== 'boolean') {\n throw new WixHeadersValidationError('boolean', key, value);\n }\n}\n\nexport function assertString(key: string, value: any) {\n if (typeof value !== 'string') {\n throw new WixHeadersValidationError('string', key, value);\n }\n}\n", "import { csrf } from './headers/csrf';\nimport { xWixBrand } from './headers/x-wix-brand';\nimport { consentPolicy } from './headers/consent-policy';\nimport { authorization } from './headers/authorization';\nimport { artifactId } from './headers/artifact-id';\nimport { commonConfig } from './headers/common-config';\nimport { linguistHeader } from './headers/linguist';\nimport { MultilingualOptions, WixHeaders, Headers } from './domain';\nimport { assertBoolean, assertString } from './assert';\n\nexport { MultilingualOptions };\n\nexport type WixHeadersOpts = {\n csrf?: boolean;\n signedInstance?: string;\n artifactId?: string;\n multilingualOptions?: MultilingualOptions;\n};\n\nexport function createHeaders(opts: WixHeadersOpts = {}): WixHeaders {\n opts = { csrf: true, signedInstance: '', ...opts };\n\n verifyOptsOrThrow(opts);\n\n const headers: Headers[] = [\n xWixBrand(),\n consentPolicy(),\n authorization(opts.signedInstance),\n artifactId(opts.artifactId),\n commonConfig(),\n linguistHeader({\n signedInstance: opts.signedInstance,\n ...opts.multilingualOptions,\n }),\n ];\n\n if (opts.csrf) {\n headers.push(csrf());\n }\n\n return headers\n .filter((hdrs) => Object.values(hdrs).every((v) => v))\n .reduce(\n (result, hdrs) => ({\n ...result,\n ...hdrs,\n }),\n {} as WixHeaders,\n );\n}\n\nfunction verifyOptsOrThrow(opts: WixHeadersOpts) {\n assertBoolean('opts.csrf', opts.csrf);\n assertString('opts.signedInstance', opts.signedInstance);\n}\n", null, null, "[\n \"wix.com\",\n \"editorx.com\",\n \"wix-code.com\",\n \"wixapps.net\",\n \"wixprod.net\"\n]\n", null, null, "'use strict';\n\nmodule.exports = function bind(fn, thisArg) {\n return function wrap() {\n var args = new Array(arguments.length);\n for (var i = 0; i < args.length; i++) {\n args[i] = arguments[i];\n }\n return fn.apply(thisArg, args);\n };\n};\n", "'use strict';\n\nvar bind = require('./helpers/bind');\n\n// utils is a library of generic helper functions non-specific to axios\n\nvar toString = Object.prototype.toString;\n\n/**\n * Determine if a value is an Array\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an Array, otherwise false\n */\nfunction isArray(val) {\n return toString.call(val) === '[object Array]';\n}\n\n/**\n * Determine if a value is undefined\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if the value is undefined, otherwise false\n */\nfunction isUndefined(val) {\n return typeof val === 'undefined';\n}\n\n/**\n * Determine if a value is a Buffer\n *\n * @param {Object} val The value to test\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 && typeof val.constructor.isBuffer === 'function' && val.constructor.isBuffer(val);\n}\n\n/**\n * Determine if a value is an ArrayBuffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an ArrayBuffer, otherwise false\n */\nfunction isArrayBuffer(val) {\n return toString.call(val) === '[object ArrayBuffer]';\n}\n\n/**\n * Determine if a value is a FormData\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an FormData, otherwise false\n */\nfunction isFormData(val) {\n return (typeof FormData !== 'undefined') && (val instanceof FormData);\n}\n\n/**\n * Determine if a value is a view on an ArrayBuffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false\n */\nfunction isArrayBufferView(val) {\n var result;\n if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {\n result = ArrayBuffer.isView(val);\n } else {\n result = (val) && (val.buffer) && (val.buffer instanceof ArrayBuffer);\n }\n return result;\n}\n\n/**\n * Determine if a value is a String\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a String, otherwise false\n */\nfunction isString(val) {\n return typeof val === 'string';\n}\n\n/**\n * Determine if a value is a Number\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Number, otherwise false\n */\nfunction isNumber(val) {\n return typeof val === 'number';\n}\n\n/**\n * Determine if a value is an Object\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an Object, otherwise false\n */\nfunction isObject(val) {\n return val !== null && typeof val === 'object';\n}\n\n/**\n * Determine if a value is a plain Object\n *\n * @param {Object} val The value to test\n * @return {boolean} True if value is a plain Object, otherwise false\n */\nfunction isPlainObject(val) {\n if (toString.call(val) !== '[object Object]') {\n return false;\n }\n\n var prototype = Object.getPrototypeOf(val);\n return prototype === null || prototype === Object.prototype;\n}\n\n/**\n * Determine if a value is a Date\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Date, otherwise false\n */\nfunction isDate(val) {\n return toString.call(val) === '[object Date]';\n}\n\n/**\n * Determine if a value is a File\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a File, otherwise false\n */\nfunction isFile(val) {\n return toString.call(val) === '[object File]';\n}\n\n/**\n * Determine if a value is a Blob\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Blob, otherwise false\n */\nfunction isBlob(val) {\n return toString.call(val) === '[object Blob]';\n}\n\n/**\n * Determine if a value is a Function\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Function, otherwise false\n */\nfunction isFunction(val) {\n return toString.call(val) === '[object Function]';\n}\n\n/**\n * Determine if a value is a Stream\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Stream, otherwise false\n */\nfunction isStream(val) {\n return isObject(val) && isFunction(val.pipe);\n}\n\n/**\n * Determine if a value is a URLSearchParams object\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a URLSearchParams object, otherwise false\n */\nfunction isURLSearchParams(val) {\n return typeof URLSearchParams !== 'undefined' && val instanceof URLSearchParams;\n}\n\n/**\n * Trim excess whitespace off the beginning and end of a string\n *\n * @param {String} str The String to trim\n * @returns {String} The String freed of excess whitespace\n */\nfunction trim(str) {\n return str.trim ? str.trim() : str.replace(/^\\s+|\\s+$/g, '');\n}\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 */\nfunction isStandardBrowserEnv() {\n if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||\n navigator.product === 'NativeScript' ||\n navigator.product === 'NS')) {\n return false;\n }\n return (\n typeof window !== 'undefined' &&\n typeof document !== 'undefined'\n );\n}\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 */\nfunction forEach(obj, fn) {\n // Don't bother if no value provided\n if (obj === null || typeof obj === 'undefined') {\n return;\n }\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 (var 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 for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) {\n fn.call(null, obj[key], key, obj);\n }\n }\n }\n}\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 * @returns {Object} Result of all merge properties\n */\nfunction merge(/* obj1, obj2, obj3, ... */) {\n var result = {};\n function assignValue(val, key) {\n if (isPlainObject(result[key]) && isPlainObject(val)) {\n result[key] = merge(result[key], val);\n } else if (isPlainObject(val)) {\n result[key] = merge({}, val);\n } else if (isArray(val)) {\n result[key] = val.slice();\n } else {\n result[key] = val;\n }\n }\n\n for (var i = 0, l = arguments.length; i < l; i++) {\n 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 * @return {Object} The resulting value of object a\n */\nfunction extend(a, b, thisArg) {\n forEach(b, function assignValue(val, key) {\n if (thisArg && typeof val === 'function') {\n a[key] = bind(val, thisArg);\n } else {\n a[key] = val;\n }\n });\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 * @return {string} content value without BOM\n */\nfunction stripBOM(content) {\n if (content.charCodeAt(0) === 0xFEFF) {\n content = content.slice(1);\n }\n return content;\n}\n\nmodule.exports = {\n isArray: isArray,\n isArrayBuffer: isArrayBuffer,\n isBuffer: isBuffer,\n isFormData: isFormData,\n isArrayBufferView: isArrayBufferView,\n isString: isString,\n isNumber: isNumber,\n isObject: isObject,\n isPlainObject: isPlainObject,\n isUndefined: isUndefined,\n isDate: isDate,\n isFile: isFile,\n isBlob: isBlob,\n isFunction: isFunction,\n isStream: isStream,\n isURLSearchParams: isURLSearchParams,\n isStandardBrowserEnv: isStandardBrowserEnv,\n forEach: forEach,\n merge: merge,\n extend: extend,\n trim: trim,\n stripBOM: stripBOM\n};\n", "'use strict';\n\n/**\n * Update an Error with the specified config, error code, and response.\n *\n * @param {Error} error The error to update.\n * @param {Object} config The config.\n * @param {string} [code] The error code (for example, 'ECONNABORTED').\n * @param {Object} [request] The request.\n * @param {Object} [response] The response.\n * @returns {Error} The error.\n */\nmodule.exports = function enhanceError(error, config, code, request, response) {\n error.config = config;\n if (code) {\n error.code = code;\n }\n\n error.request = request;\n error.response = response;\n error.isAxiosError = true;\n\n error.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: this.config,\n code: this.code\n };\n };\n return error;\n};\n", "'use strict';\n\nvar enhanceError = require('./enhanceError');\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 {Object} config The config.\n * @param {string} [code] The error code (for example, 'ECONNABORTED').\n * @param {Object} [request] The request.\n * @param {Object} [response] The response.\n * @returns {Error} The created error.\n */\nmodule.exports = function createError(message, config, code, request, response) {\n var error = new Error(message);\n return enhanceError(error, config, code, request, response);\n};\n", "'use strict';\n\nvar createError = require('./createError');\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 */\nmodule.exports = function settle(resolve, reject, response) {\n var validateStatus = response.config.validateStatus;\n if (!response.status || !validateStatus || validateStatus(response.status)) {\n resolve(response);\n } else {\n reject(createError(\n 'Request failed with status code ' + response.status,\n response.config,\n null,\n response.request,\n response\n ));\n }\n};\n", "'use strict';\n\n/**\n * Determines whether the specified URL is absolute\n *\n * @param {string} url The URL to test\n * @returns {boolean} True if the specified URL is absolute, otherwise false\n */\nmodule.exports = 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\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 * @returns {string} The combined URL\n */\nmodule.exports = function combineURLs(baseURL, relativeURL) {\n return relativeURL\n ? baseURL.replace(/\\/+$/, '') + '/' + relativeURL.replace(/^\\/+/, '')\n : baseURL;\n};\n", "'use strict';\n\nvar isAbsoluteURL = require('../helpers/isAbsoluteURL');\nvar combineURLs = require('../helpers/combineURLs');\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 * @returns {string} The combined full path\n */\nmodule.exports = function buildFullPath(baseURL, requestedURL) {\n if (baseURL && !isAbsoluteURL(requestedURL)) {\n return combineURLs(baseURL, requestedURL);\n }\n return requestedURL;\n};\n", "'use strict';\n\nvar utils = require('./../utils');\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 * @returns {string} The formatted url\n */\nmodule.exports = function buildURL(url, params, paramsSerializer) {\n /*eslint no-param-reassign:0*/\n if (!params) {\n return url;\n }\n\n var serializedParams;\n if (paramsSerializer) {\n serializedParams = paramsSerializer(params);\n } else if (utils.isURLSearchParams(params)) {\n serializedParams = params.toString();\n } else {\n var parts = [];\n\n utils.forEach(params, function serialize(val, key) {\n if (val === null || typeof val === 'undefined') {\n return;\n }\n\n if (utils.isArray(val)) {\n key = key + '[]';\n } else {\n val = [val];\n }\n\n utils.forEach(val, function parseValue(v) {\n if (utils.isDate(v)) {\n v = v.toISOString();\n } else if (utils.isObject(v)) {\n v = JSON.stringify(v);\n }\n parts.push(encode(key) + '=' + encode(v));\n });\n });\n\n serializedParams = parts.join('&');\n }\n\n if (serializedParams) {\n var hashmarkIndex = url.indexOf('#');\n if (hashmarkIndex !== -1) {\n url = url.slice(0, hashmarkIndex);\n }\n\n url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;\n }\n\n return url;\n};\n", "{\n \"name\": \"axios\",\n \"version\": \"0.21.4\",\n \"description\": \"Promise based HTTP client for the browser and node.js\",\n \"main\": \"index.js\",\n \"scripts\": {\n \"test\": \"grunt test\",\n \"start\": \"node ./sandbox/server.js\",\n \"build\": \"NODE_ENV=production grunt build\",\n \"preversion\": \"npm test\",\n \"version\": \"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json\",\n \"postversion\": \"git push && git push --tags\",\n \"examples\": \"node ./examples/server.js\",\n \"coveralls\": \"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js\",\n \"fix\": \"eslint --fix lib/**/*.js\"\n },\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"https://github.com/axios/axios.git\"\n },\n \"keywords\": [\n \"xhr\",\n \"http\",\n \"ajax\",\n \"promise\",\n \"node\"\n ],\n \"author\": \"Matt Zabriskie\",\n \"license\": \"MIT\",\n \"bugs\": {\n \"url\": \"https://github.com/axios/axios/issues\"\n },\n \"homepage\": \"https://axios-http.com\",\n \"devDependencies\": {\n \"coveralls\": \"^3.0.0\",\n \"es6-promise\": \"^4.2.4\",\n \"grunt\": \"^1.3.0\",\n \"grunt-banner\": \"^0.6.0\",\n \"grunt-cli\": \"^1.2.0\",\n \"grunt-contrib-clean\": \"^1.1.0\",\n \"grunt-contrib-watch\": \"^1.0.0\",\n \"grunt-eslint\": \"^23.0.0\",\n \"grunt-karma\": \"^4.0.0\",\n \"grunt-mocha-test\": \"^0.13.3\",\n \"grunt-ts\": \"^6.0.0-beta.19\",\n \"grunt-webpack\": \"^4.0.2\",\n \"istanbul-instrumenter-loader\": \"^1.0.0\",\n \"jasmine-core\": \"^2.4.1\",\n \"karma\": \"^6.3.2\",\n \"karma-chrome-launcher\": \"^3.1.0\",\n \"karma-firefox-launcher\": \"^2.1.0\",\n \"karma-jasmine\": \"^1.1.1\",\n \"karma-jasmine-ajax\": \"^0.1.13\",\n \"karma-safari-launcher\": \"^1.0.0\",\n \"karma-sauce-launcher\": \"^4.3.6\",\n \"karma-sinon\": \"^1.0.5\",\n \"karma-sourcemap-loader\": \"^0.3.8\",\n \"karma-webpack\": \"^4.0.2\",\n \"load-grunt-tasks\": \"^3.5.2\",\n \"minimist\": \"^1.2.0\",\n \"mocha\": \"^8.2.1\",\n \"sinon\": \"^4.5.0\",\n \"terser-webpack-plugin\": \"^4.2.3\",\n \"typescript\": \"^4.0.5\",\n \"url-search-params\": \"^0.10.0\",\n \"webpack\": \"^4.44.2\",\n \"webpack-dev-server\": \"^3.11.0\"\n },\n \"browser\": {\n \"./lib/adapters/http.js\": \"./lib/adapters/xhr.js\"\n },\n \"jsdelivr\": \"dist/axios.min.js\",\n \"unpkg\": \"dist/axios.min.js\",\n \"typings\": \"./index.d.ts\",\n \"dependencies\": {\n \"follow-redirects\": \"^1.14.0\"\n },\n \"bundlesize\": [\n {\n \"path\": \"./dist/axios.min.js\",\n \"threshold\": \"5kB\"\n }\n ]\n}\n", "'use strict';\n\nvar utils = require('./../utils');\nvar settle = require('./../core/settle');\nvar buildFullPath = require('../core/buildFullPath');\nvar buildURL = require('./../helpers/buildURL');\nvar http = require('http');\nvar https = require('https');\nvar httpFollow = require('follow-redirects').http;\nvar httpsFollow = require('follow-redirects').https;\nvar url = require('url');\nvar zlib = require('zlib');\nvar pkg = require('./../../package.json');\nvar createError = require('../core/createError');\nvar enhanceError = require('../core/enhanceError');\n\nvar isHttps = /https:?/;\n\n/**\n *\n * @param {http.ClientRequestArgs} options\n * @param {AxiosProxyConfig} proxy\n * @param {string} location\n */\nfunction setProxy(options, proxy, location) {\n options.hostname = proxy.host;\n options.host = proxy.host;\n options.port = proxy.port;\n options.path = location;\n\n // Basic proxy authorization\n if (proxy.auth) {\n var base64 = Buffer.from(proxy.auth.username + ':' + proxy.auth.password, 'utf8').toString('base64');\n options.headers['Proxy-Authorization'] = 'Basic ' + base64;\n }\n\n // If a proxy is used, any redirects must also pass through the proxy\n options.beforeRedirect = function beforeRedirect(redirection) {\n redirection.headers.host = redirection.host;\n setProxy(redirection, proxy, redirection.href);\n };\n}\n\n/*eslint consistent-return:0*/\nmodule.exports = function httpAdapter(config) {\n return new Promise(function dispatchHttpRequest(resolvePromise, rejectPromise) {\n var resolve = function resolve(value) {\n resolvePromise(value);\n };\n var reject = function reject(value) {\n rejectPromise(value);\n };\n var data = config.data;\n var headers = config.headers;\n\n // Set User-Agent (required by some servers)\n // See https://github.com/axios/axios/issues/69\n if ('User-Agent' in headers || 'user-agent' in headers) {\n // User-Agent is specified; handle case where no UA header is desired\n if (!headers['User-Agent'] && !headers['user-agent']) {\n delete headers['User-Agent'];\n delete headers['user-agent'];\n }\n // Otherwise, use specified value\n } else {\n // Only set header if it hasn't been set in config\n headers['User-Agent'] = 'axios/' + pkg.version;\n }\n\n 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(createError(\n 'Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream',\n config\n ));\n }\n\n // Add Content-Length header if data exists\n headers['Content-Length'] = data.length;\n }\n\n // HTTP basic authentication\n var auth = undefined;\n if (config.auth) {\n var username = config.auth.username || '';\n var password = config.auth.password || '';\n auth = username + ':' + password;\n }\n\n // Parse url\n var fullPath = buildFullPath(config.baseURL, config.url);\n var parsed = url.parse(fullPath);\n var protocol = parsed.protocol || 'http:';\n\n if (!auth && parsed.auth) {\n var urlAuth = parsed.auth.split(':');\n var urlUsername = urlAuth[0] || '';\n var urlPassword = urlAuth[1] || '';\n auth = urlUsername + ':' + urlPassword;\n }\n\n if (auth) {\n delete headers.Authorization;\n }\n\n var isHttpsRequest = isHttps.test(protocol);\n var agent = isHttpsRequest ? config.httpsAgent : config.httpAgent;\n\n var options = {\n path: buildURL(parsed.path, config.params, config.paramsSerializer).replace(/^\\?/, ''),\n method: config.method.toUpperCase(),\n headers: headers,\n agent: agent,\n agents: { http: config.httpAgent, https: config.httpsAgent },\n auth: auth\n };\n\n if (config.socketPath) {\n options.socketPath = config.socketPath;\n } else {\n options.hostname = parsed.hostname;\n options.port = parsed.port;\n }\n\n var proxy = config.proxy;\n if (!proxy && proxy !== false) {\n var proxyEnv = protocol.slice(0, -1) + '_proxy';\n var proxyUrl = process.env[proxyEnv] || process.env[proxyEnv.toUpperCase()];\n if (proxyUrl) {\n var parsedProxyUrl = url.parse(proxyUrl);\n var noProxyEnv = process.env.no_proxy || process.env.NO_PROXY;\n var shouldProxy = true;\n\n if (noProxyEnv) {\n var noProxy = noProxyEnv.split(',').map(function trim(s) {\n return s.trim();\n });\n\n shouldProxy = !noProxy.some(function proxyMatch(proxyElement) {\n if (!proxyElement) {\n return false;\n }\n if (proxyElement === '*') {\n return true;\n }\n if (proxyElement[0] === '.' &&\n parsed.hostname.substr(parsed.hostname.length - proxyElement.length) === proxyElement) {\n return true;\n }\n\n return parsed.hostname === proxyElement;\n });\n }\n\n if (shouldProxy) {\n proxy = {\n host: parsedProxyUrl.hostname,\n port: parsedProxyUrl.port,\n protocol: parsedProxyUrl.protocol\n };\n\n if (parsedProxyUrl.auth) {\n var proxyUrlAuth = parsedProxyUrl.auth.split(':');\n proxy.auth = {\n username: proxyUrlAuth[0],\n password: proxyUrlAuth[1]\n };\n }\n }\n }\n }\n\n if (proxy) {\n options.headers.host = parsed.hostname + (parsed.port ? ':' + parsed.port : '');\n setProxy(options, proxy, protocol + '//' + parsed.hostname + (parsed.port ? ':' + parsed.port : '') + options.path);\n }\n\n var transport;\n var isHttpsProxy = isHttpsRequest && (proxy ? isHttps.test(proxy.protocol) : true);\n if (config.transport) {\n transport = config.transport;\n } else if (config.maxRedirects === 0) {\n transport = isHttpsProxy ? https : http;\n } else {\n if (config.maxRedirects) {\n options.maxRedirects = config.maxRedirects;\n }\n transport = isHttpsProxy ? httpsFollow : httpFollow;\n }\n\n if (config.maxBodyLength > -1) {\n options.maxBodyLength = config.maxBodyLength;\n }\n\n // Create the request\n var req = transport.request(options, function handleResponse(res) {\n if (req.aborted) return;\n\n // uncompress the response body transparently if required\n var stream = res;\n\n // return the last request in case of redirects\n var lastRequest = res.req || req;\n\n\n // if no content, is HEAD request or decompress disabled we should not decompress\n if (res.statusCode !== 204 && lastRequest.method !== 'HEAD' && config.decompress !== false) {\n switch (res.headers['content-encoding']) {\n /*eslint default-case:0*/\n case 'gzip':\n case 'compress':\n case 'deflate':\n // add the unzipper to the body stream processing pipeline\n stream = stream.pipe(zlib.createUnzip());\n\n // remove the content-encoding in order to not confuse downstream operations\n delete res.headers['content-encoding'];\n break;\n }\n }\n\n var response = {\n status: res.statusCode,\n statusText: res.statusMessage,\n headers: res.headers,\n config: config,\n request: lastRequest\n };\n\n if (config.responseType === 'stream') {\n response.data = stream;\n settle(resolve, reject, response);\n } else {\n var responseBuffer = [];\n var totalResponseBytes = 0;\n stream.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();\n reject(createError('maxContentLength size of ' + config.maxContentLength + ' exceeded',\n config, null, lastRequest));\n }\n });\n\n stream.on('error', function handleStreamError(err) {\n if (req.aborted) return;\n reject(enhanceError(err, config, null, lastRequest));\n });\n\n stream.on('end', function handleStreamEnd() {\n var responseData = Buffer.concat(responseBuffer);\n if (config.responseType !== 'arraybuffer') {\n responseData = responseData.toString(config.responseEncoding);\n if (!config.responseEncoding || config.responseEncoding === 'utf8') {\n responseData = utils.stripBOM(responseData);\n }\n }\n\n response.data = responseData;\n settle(resolve, reject, response);\n });\n }\n });\n\n // Handle errors\n req.on('error', function handleRequestError(err) {\n if (req.aborted && err.code !== 'ERR_FR_TOO_MANY_REDIRECTS') return;\n reject(enhanceError(err, config, null, req));\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 var timeout = parseInt(config.timeout, 10);\n\n if (isNaN(timeout)) {\n reject(createError(\n 'error trying to parse `config.timeout` to int',\n config,\n 'ERR_PARSE_TIMEOUT',\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 devoring 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 req.abort();\n reject(createError(\n 'timeout of ' + timeout + 'ms exceeded',\n config,\n config.transitional && config.transitional.clarifyTimeoutError ? 'ETIMEDOUT' : 'ECONNABORTED',\n req\n ));\n });\n }\n\n if (config.cancelToken) {\n // Handle cancellation\n config.cancelToken.promise.then(function onCanceled(cancel) {\n if (req.aborted) return;\n\n req.abort();\n reject(cancel);\n });\n }\n\n // Send the request\n if (utils.isStream(data)) {\n data.on('error', function handleStreamError(err) {\n reject(enhanceError(err, config, null, req));\n }).pipe(req);\n } else {\n req.end(data);\n }\n });\n};\n", "'use strict';\n\nvar utils = require('./../utils');\n\nfunction InterceptorManager() {\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 */\nInterceptorManager.prototype.use = function use(fulfilled, rejected, options) {\n this.handlers.push({\n fulfilled: fulfilled,\n rejected: 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 */\nInterceptorManager.prototype.eject = function eject(id) {\n if (this.handlers[id]) {\n this.handlers[id] = null;\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 */\nInterceptorManager.prototype.forEach = function forEach(fn) {\n utils.forEach(this.handlers, function forEachHandler(h) {\n if (h !== null) {\n fn(h);\n }\n });\n};\n\nmodule.exports = InterceptorManager;\n", "'use strict';\n\nvar utils = require('../utils');\n\nmodule.exports = function normalizeHeaderName(headers, normalizedName) {\n utils.forEach(headers, function processHeader(value, name) {\n if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) {\n headers[normalizedName] = value;\n delete headers[name];\n }\n });\n};\n", "'use strict';\n\nvar utils = require('./../utils');\n\nmodule.exports = (\n utils.isStandardBrowserEnv() ?\n\n // Standard browser envs support document.cookie\n (function standardBrowserEnv() {\n return {\n write: function write(name, value, expires, path, domain, secure) {\n var cookie = [];\n cookie.push(name + '=' + encodeURIComponent(value));\n\n if (utils.isNumber(expires)) {\n cookie.push('expires=' + new Date(expires).toGMTString());\n }\n\n if (utils.isString(path)) {\n cookie.push('path=' + path);\n }\n\n if (utils.isString(domain)) {\n cookie.push('domain=' + domain);\n }\n\n if (secure === true) {\n cookie.push('secure');\n }\n\n document.cookie = cookie.join('; ');\n },\n\n read: function read(name) {\n var match = document.cookie.match(new RegExp('(^|;\\\\s*)(' + name + ')=([^;]*)'));\n return (match ? decodeURIComponent(match[3]) : null);\n },\n\n remove: function remove(name) {\n this.write(name, '', Date.now() - 86400000);\n }\n };\n })() :\n\n // Non standard browser env (web workers, react-native) lack needed support.\n (function nonStandardBrowserEnv() {\n return {\n write: function write() {},\n read: function read() { return null; },\n remove: function remove() {}\n };\n })()\n);\n", "'use strict';\n\nvar utils = require('./../utils');\n\n// Headers whose duplicates are ignored by node\n// c.f. https://nodejs.org/api/http.html#http_message_headers\nvar ignoreDuplicateOf = [\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} headers Headers needing to be parsed\n * @returns {Object} Headers parsed into an object\n */\nmodule.exports = function parseHeaders(headers) {\n var parsed = {};\n var key;\n var val;\n var i;\n\n if (!headers) { return parsed; }\n\n utils.forEach(headers.split('\\n'), function parser(line) {\n i = line.indexOf(':');\n key = utils.trim(line.substr(0, i)).toLowerCase();\n val = utils.trim(line.substr(i + 1));\n\n if (key) {\n if (parsed[key] && ignoreDuplicateOf.indexOf(key) >= 0) {\n return;\n }\n if (key === 'set-cookie') {\n parsed[key] = (parsed[key] ? parsed[key] : []).concat([val]);\n } else {\n parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;\n }\n }\n });\n\n return parsed;\n};\n", "'use strict';\n\nvar utils = require('./../utils');\n\nmodule.exports = (\n utils.isStandardBrowserEnv() ?\n\n // Standard browser envs have full support of the APIs needed to test\n // whether the request URL is of the same origin as current location.\n (function standardBrowserEnv() {\n var msie = /(msie|trident)/i.test(navigator.userAgent);\n var urlParsingNode = document.createElement('a');\n var originURL;\n\n /**\n * Parse a URL to discover it's components\n *\n * @param {String} url The URL to be parsed\n * @returns {Object}\n */\n function resolveURL(url) {\n var href = url;\n\n if (msie) {\n // IE needs attribute set twice to normalize properties\n urlParsingNode.setAttribute('href', href);\n href = urlParsingNode.href;\n }\n\n urlParsingNode.setAttribute('href', href);\n\n // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils\n return {\n href: urlParsingNode.href,\n protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',\n host: urlParsingNode.host,\n search: urlParsingNode.search ? urlParsingNode.search.replace(/^\\?/, '') : '',\n hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',\n hostname: urlParsingNode.hostname,\n port: urlParsingNode.port,\n pathname: (urlParsingNode.pathname.charAt(0) === '/') ?\n urlParsingNode.pathname :\n '/' + urlParsingNode.pathname\n };\n }\n\n originURL = resolveURL(window.location.href);\n\n /**\n * Determine if a URL shares the same origin as the current location\n *\n * @param {String} requestURL The URL to test\n * @returns {boolean} True if URL shares the same origin, otherwise false\n */\n return function isURLSameOrigin(requestURL) {\n var parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL;\n return (parsed.protocol === originURL.protocol &&\n parsed.host === originURL.host);\n };\n })() :\n\n // Non standard browser envs (web workers, react-native) lack needed support.\n (function nonStandardBrowserEnv() {\n return function isURLSameOrigin() {\n return true;\n };\n })()\n);\n", "'use strict';\n\nvar utils = require('./../utils');\nvar settle = require('./../core/settle');\nvar cookies = require('./../helpers/cookies');\nvar buildURL = require('./../helpers/buildURL');\nvar buildFullPath = require('../core/buildFullPath');\nvar parseHeaders = require('./../helpers/parseHeaders');\nvar isURLSameOrigin = require('./../helpers/isURLSameOrigin');\nvar createError = require('../core/createError');\n\nmodule.exports = function xhrAdapter(config) {\n return new Promise(function dispatchXhrRequest(resolve, reject) {\n var requestData = config.data;\n var requestHeaders = config.headers;\n var responseType = config.responseType;\n\n if (utils.isFormData(requestData)) {\n delete requestHeaders['Content-Type']; // Let the browser set it\n }\n\n var request = new XMLHttpRequest();\n\n // HTTP basic authentication\n if (config.auth) {\n var username = config.auth.username || '';\n var password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : '';\n requestHeaders.Authorization = 'Basic ' + btoa(username + ':' + password);\n }\n\n var fullPath = buildFullPath(config.baseURL, config.url);\n request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), 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 var responseHeaders = 'getAllResponseHeaders' in request ? parseHeaders(request.getAllResponseHeaders()) : null;\n var responseData = !responseType || responseType === 'text' || responseType === 'json' ?\n request.responseText : request.response;\n var response = {\n data: responseData,\n status: request.status,\n statusText: request.statusText,\n headers: responseHeaders,\n config: config,\n request: request\n };\n\n settle(resolve, reject, 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(createError('Request aborted', config, 'ECONNABORTED', 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(createError('Network Error', config, null, request));\n\n // Clean up request\n request = null;\n };\n\n // Handle timeout\n request.ontimeout = function handleTimeout() {\n var timeoutErrorMessage = 'timeout of ' + config.timeout + 'ms exceeded';\n if (config.timeoutErrorMessage) {\n timeoutErrorMessage = config.timeoutErrorMessage;\n }\n reject(createError(\n timeoutErrorMessage,\n config,\n config.transitional && config.transitional.clarifyTimeoutError ? 'ETIMEDOUT' : 'ECONNABORTED',\n request));\n\n // Clean up request\n request = null;\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 if (utils.isStandardBrowserEnv()) {\n // Add xsrf header\n var xsrfValue = (config.withCredentials || isURLSameOrigin(fullPath)) && config.xsrfCookieName ?\n cookies.read(config.xsrfCookieName) :\n undefined;\n\n if (xsrfValue) {\n requestHeaders[config.xsrfHeaderName] = xsrfValue;\n }\n }\n\n // Add headers to the request\n if ('setRequestHeader' in request) {\n utils.forEach(requestHeaders, function setRequestHeader(val, key) {\n if (typeof requestData === 'undefined' && key.toLowerCase() === 'content-type') {\n // Remove Content-Type if data is undefined\n delete requestHeaders[key];\n } else {\n // Otherwise add header to the request\n request.setRequestHeader(key, val);\n }\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 (typeof config.onDownloadProgress === 'function') {\n request.addEventListener('progress', config.onDownloadProgress);\n }\n\n // Not all browsers support upload events\n if (typeof config.onUploadProgress === 'function' && request.upload) {\n request.upload.addEventListener('progress', config.onUploadProgress);\n }\n\n if (config.cancelToken) {\n // Handle cancellation\n config.cancelToken.promise.then(function onCanceled(cancel) {\n if (!request) {\n return;\n }\n\n request.abort();\n reject(cancel);\n // Clean up request\n request = null;\n });\n }\n\n if (!requestData) {\n requestData = null;\n }\n\n // Send the request\n request.send(requestData);\n });\n};\n", "'use strict';\n\nvar utils = require('./utils');\nvar normalizeHeaderName = require('./helpers/normalizeHeaderName');\nvar enhanceError = require('./core/enhanceError');\n\nvar DEFAULT_CONTENT_TYPE = {\n 'Content-Type': 'application/x-www-form-urlencoded'\n};\n\nfunction setContentTypeIfUnset(headers, value) {\n if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) {\n headers['Content-Type'] = value;\n }\n}\n\nfunction getDefaultAdapter() {\n var adapter;\n if (typeof XMLHttpRequest !== 'undefined') {\n // For browsers use XHR adapter\n adapter = require('./adapters/xhr');\n } else if (typeof process !== 'undefined' && Object.prototype.toString.call(process) === '[object process]') {\n // For node use HTTP adapter\n adapter = require('./adapters/http');\n }\n return adapter;\n}\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\nvar defaults = {\n\n transitional: {\n silentJSONParsing: true,\n forcedJSONParsing: true,\n clarifyTimeoutError: false\n },\n\n adapter: getDefaultAdapter(),\n\n transformRequest: [function transformRequest(data, headers) {\n normalizeHeaderName(headers, 'Accept');\n normalizeHeaderName(headers, 'Content-Type');\n\n if (utils.isFormData(data) ||\n utils.isArrayBuffer(data) ||\n utils.isBuffer(data) ||\n utils.isStream(data) ||\n utils.isFile(data) ||\n utils.isBlob(data)\n ) {\n return data;\n }\n if (utils.isArrayBufferView(data)) {\n return data.buffer;\n }\n if (utils.isURLSearchParams(data)) {\n setContentTypeIfUnset(headers, 'application/x-www-form-urlencoded;charset=utf-8');\n return data.toString();\n }\n if (utils.isObject(data) || (headers && headers['Content-Type'] === 'application/json')) {\n setContentTypeIfUnset(headers, 'application/json');\n return stringifySafely(data);\n }\n return data;\n }],\n\n transformResponse: [function transformResponse(data) {\n var transitional = this.transitional;\n var silentJSONParsing = transitional && transitional.silentJSONParsing;\n var forcedJSONParsing = transitional && transitional.forcedJSONParsing;\n var strictJSONParsing = !silentJSONParsing && this.responseType === 'json';\n\n if (strictJSONParsing || (forcedJSONParsing && utils.isString(data) && data.length)) {\n try {\n return JSON.parse(data);\n } catch (e) {\n if (strictJSONParsing) {\n if (e.name === 'SyntaxError') {\n throw enhanceError(e, this, 'E_JSON_PARSE');\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 validateStatus: function validateStatus(status) {\n return status >= 200 && status < 300;\n }\n};\n\ndefaults.headers = {\n common: {\n 'Accept': 'application/json, text/plain, */*'\n }\n};\n\nutils.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) {\n defaults.headers[method] = {};\n});\n\nutils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n defaults.headers[method] = utils.merge(DEFAULT_CONTENT_TYPE);\n});\n\nmodule.exports = defaults;\n", "'use strict';\n\nvar utils = require('./../utils');\nvar defaults = require('./../defaults');\n\n/**\n * Transform the data for a request or a response\n *\n * @param {Object|String} data The data to be transformed\n * @param {Array} headers The headers for the request or response\n * @param {Array|Function} fns A single function or Array of functions\n * @returns {*} The resulting transformed data\n */\nmodule.exports = function transformData(data, headers, fns) {\n var context = this || defaults;\n /*eslint no-param-reassign:0*/\n utils.forEach(fns, function transform(fn) {\n data = fn.call(context, data, headers);\n });\n\n return data;\n};\n", "'use strict';\n\nmodule.exports = function isCancel(value) {\n return !!(value && value.__CANCEL__);\n};\n", "'use strict';\n\nvar utils = require('./../utils');\nvar transformData = require('./transformData');\nvar isCancel = require('../cancel/isCancel');\nvar defaults = require('../defaults');\n\n/**\n * Throws a `Cancel` if cancellation has been requested.\n */\nfunction throwIfCancellationRequested(config) {\n if (config.cancelToken) {\n config.cancelToken.throwIfRequested();\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 * @returns {Promise} The Promise to be fulfilled\n */\nmodule.exports = function dispatchRequest(config) {\n throwIfCancellationRequested(config);\n\n // Ensure headers exist\n config.headers = config.headers || {};\n\n // Transform request data\n config.data = transformData.call(\n config,\n config.data,\n config.headers,\n config.transformRequest\n );\n\n // Flatten headers\n config.headers = utils.merge(\n config.headers.common || {},\n config.headers[config.method] || {},\n config.headers\n );\n\n utils.forEach(\n ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],\n function cleanHeaderConfig(method) {\n delete config.headers[method];\n }\n );\n\n var adapter = 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 response.data,\n response.headers,\n config.transformResponse\n );\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 reason.response.data,\n reason.response.headers,\n config.transformResponse\n );\n }\n }\n\n return Promise.reject(reason);\n });\n};\n", "'use strict';\n\nvar utils = require('../utils');\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 * @returns {Object} New object resulting from merging config2 to config1\n */\nmodule.exports = function mergeConfig(config1, config2) {\n // eslint-disable-next-line no-param-reassign\n config2 = config2 || {};\n var config = {};\n\n var valueFromConfig2Keys = ['url', 'method', 'data'];\n var mergeDeepPropertiesKeys = ['headers', 'auth', 'proxy', 'params'];\n var defaultToConfig2Keys = [\n 'baseURL', 'transformRequest', 'transformResponse', 'paramsSerializer',\n 'timeout', 'timeoutMessage', 'withCredentials', 'adapter', 'responseType', 'xsrfCookieName',\n 'xsrfHeaderName', 'onUploadProgress', 'onDownloadProgress', 'decompress',\n 'maxContentLength', 'maxBodyLength', 'maxRedirects', 'transport', 'httpAgent',\n 'httpsAgent', 'cancelToken', 'socketPath', 'responseEncoding'\n ];\n var directMergeKeys = ['validateStatus'];\n\n function getMergedValue(target, source) {\n if (utils.isPlainObject(target) && utils.isPlainObject(source)) {\n return utils.merge(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 function mergeDeepProperties(prop) {\n if (!utils.isUndefined(config2[prop])) {\n config[prop] = getMergedValue(config1[prop], config2[prop]);\n } else if (!utils.isUndefined(config1[prop])) {\n config[prop] = getMergedValue(undefined, config1[prop]);\n }\n }\n\n utils.forEach(valueFromConfig2Keys, function valueFromConfig2(prop) {\n if (!utils.isUndefined(config2[prop])) {\n config[prop] = getMergedValue(undefined, config2[prop]);\n }\n });\n\n utils.forEach(mergeDeepPropertiesKeys, mergeDeepProperties);\n\n utils.forEach(defaultToConfig2Keys, function defaultToConfig2(prop) {\n if (!utils.isUndefined(config2[prop])) {\n config[prop] = getMergedValue(undefined, config2[prop]);\n } else if (!utils.isUndefined(config1[prop])) {\n config[prop] = getMergedValue(undefined, config1[prop]);\n }\n });\n\n utils.forEach(directMergeKeys, function merge(prop) {\n if (prop in config2) {\n config[prop] = getMergedValue(config1[prop], config2[prop]);\n } else if (prop in config1) {\n config[prop] = getMergedValue(undefined, config1[prop]);\n }\n });\n\n var axiosKeys = valueFromConfig2Keys\n .concat(mergeDeepPropertiesKeys)\n .concat(defaultToConfig2Keys)\n .concat(directMergeKeys);\n\n var otherKeys = Object\n .keys(config1)\n .concat(Object.keys(config2))\n .filter(function filterAxiosKeys(key) {\n return axiosKeys.indexOf(key) === -1;\n });\n\n utils.forEach(otherKeys, mergeDeepProperties);\n\n return config;\n};\n", "'use strict';\n\nvar pkg = require('./../../package.json');\n\nvar validators = {};\n\n// eslint-disable-next-line func-names\n['object', 'boolean', 'number', 'function', 'string', 'symbol'].forEach(function(type, i) {\n validators[type] = function validator(thing) {\n return typeof thing === type || 'a' + (i < 1 ? 'n ' : ' ') + type;\n };\n});\n\nvar deprecatedWarnings = {};\nvar currentVerArr = pkg.version.split('.');\n\n/**\n * Compare package versions\n * @param {string} version\n * @param {string?} thanVersion\n * @returns {boolean}\n */\nfunction isOlderVersion(version, thanVersion) {\n var pkgVersionArr = thanVersion ? thanVersion.split('.') : currentVerArr;\n var destVer = version.split('.');\n for (var i = 0; i < 3; i++) {\n if (pkgVersionArr[i] > destVer[i]) {\n return true;\n } else if (pkgVersionArr[i] < destVer[i]) {\n return false;\n }\n }\n return false;\n}\n\n/**\n * Transitional option validator\n * @param {function|boolean?} validator\n * @param {string?} version\n * @param {string} message\n * @returns {function}\n */\nvalidators.transitional = function transitional(validator, version, message) {\n var isDeprecated = version && isOlderVersion(version);\n\n function formatMessage(opt, desc) {\n return '[Axios v' + pkg.version + '] Transitional option \\'' + opt + '\\'' + desc + (message ? '. ' + message : '');\n }\n\n // eslint-disable-next-line func-names\n return function(value, opt, opts) {\n if (validator === false) {\n throw new Error(formatMessage(opt, ' has been removed in ' + version));\n }\n\n if (isDeprecated && !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\n/**\n * Assert object's properties type\n * @param {object} options\n * @param {object} schema\n * @param {boolean?} allowUnknown\n */\n\nfunction assertOptions(options, schema, allowUnknown) {\n if (typeof options !== 'object') {\n throw new TypeError('options must be an object');\n }\n var keys = Object.keys(options);\n var i = keys.length;\n while (i-- > 0) {\n var opt = keys[i];\n var validator = schema[opt];\n if (validator) {\n var value = options[opt];\n var result = value === undefined || validator(value, opt, options);\n if (result !== true) {\n throw new TypeError('option ' + opt + ' must be ' + result);\n }\n continue;\n }\n if (allowUnknown !== true) {\n throw Error('Unknown option ' + opt);\n }\n }\n}\n\nmodule.exports = {\n isOlderVersion: isOlderVersion,\n assertOptions: assertOptions,\n validators: validators\n};\n", "'use strict';\n\nvar utils = require('./../utils');\nvar buildURL = require('../helpers/buildURL');\nvar InterceptorManager = require('./InterceptorManager');\nvar dispatchRequest = require('./dispatchRequest');\nvar mergeConfig = require('./mergeConfig');\nvar validator = require('../helpers/validator');\n\nvar validators = validator.validators;\n/**\n * Create a new instance of Axios\n *\n * @param {Object} instanceConfig The default config for the instance\n */\nfunction Axios(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 {Object} config The config specific for this request (merged with this.defaults)\n */\nAxios.prototype.request = function request(config) {\n /*eslint no-param-reassign:0*/\n // Allow for axios('example/url'[, config]) a la fetch API\n if (typeof config === 'string') {\n config = arguments[1] || {};\n config.url = arguments[0];\n } else {\n config = config || {};\n }\n\n config = mergeConfig(this.defaults, config);\n\n // Set config.method\n if (config.method) {\n config.method = config.method.toLowerCase();\n } else if (this.defaults.method) {\n config.method = this.defaults.method.toLowerCase();\n } else {\n config.method = 'get';\n }\n\n var transitional = config.transitional;\n\n if (transitional !== undefined) {\n validator.assertOptions(transitional, {\n silentJSONParsing: validators.transitional(validators.boolean, '1.0.0'),\n forcedJSONParsing: validators.transitional(validators.boolean, '1.0.0'),\n clarifyTimeoutError: validators.transitional(validators.boolean, '1.0.0')\n }, false);\n }\n\n // filter out skipped interceptors\n var requestInterceptorChain = [];\n var 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 var responseInterceptorChain = [];\n this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {\n responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);\n });\n\n var promise;\n\n if (!synchronousRequestInterceptors) {\n var chain = [dispatchRequest, undefined];\n\n Array.prototype.unshift.apply(chain, requestInterceptorChain);\n chain = chain.concat(responseInterceptorChain);\n\n promise = Promise.resolve(config);\n while (chain.length) {\n promise = promise.then(chain.shift(), chain.shift());\n }\n\n return promise;\n }\n\n\n var newConfig = config;\n while (requestInterceptorChain.length) {\n var onFulfilled = requestInterceptorChain.shift();\n var onRejected = requestInterceptorChain.shift();\n try {\n newConfig = onFulfilled(newConfig);\n } catch (error) {\n onRejected(error);\n break;\n }\n }\n\n try {\n promise = dispatchRequest(newConfig);\n } catch (error) {\n return Promise.reject(error);\n }\n\n while (responseInterceptorChain.length) {\n promise = promise.then(responseInterceptorChain.shift(), responseInterceptorChain.shift());\n }\n\n return promise;\n};\n\nAxios.prototype.getUri = function getUri(config) {\n config = mergeConfig(this.defaults, config);\n return buildURL(config.url, config.params, config.paramsSerializer).replace(/^\\?/, '');\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: method,\n url: url,\n data: (config || {}).data\n }));\n };\n});\n\nutils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n /*eslint func-names:0*/\n Axios.prototype[method] = function(url, data, config) {\n return this.request(mergeConfig(config || {}, {\n method: method,\n url: url,\n data: data\n }));\n };\n});\n\nmodule.exports = Axios;\n", "'use strict';\n\n/**\n * A `Cancel` is an object that is thrown when an operation is canceled.\n *\n * @class\n * @param {string=} message The message.\n */\nfunction Cancel(message) {\n this.message = message;\n}\n\nCancel.prototype.toString = function toString() {\n return 'Cancel' + (this.message ? ': ' + this.message : '');\n};\n\nCancel.prototype.__CANCEL__ = true;\n\nmodule.exports = Cancel;\n", "'use strict';\n\nvar Cancel = require('./Cancel');\n\n/**\n * A `CancelToken` is an object that can be used to request cancellation of an operation.\n *\n * @class\n * @param {Function} executor The executor function.\n */\nfunction CancelToken(executor) {\n if (typeof executor !== 'function') {\n throw new TypeError('executor must be a function.');\n }\n\n var resolvePromise;\n this.promise = new Promise(function promiseExecutor(resolve) {\n resolvePromise = resolve;\n });\n\n var token = this;\n executor(function cancel(message) {\n if (token.reason) {\n // Cancellation has already been requested\n return;\n }\n\n token.reason = new Cancel(message);\n resolvePromise(token.reason);\n });\n}\n\n/**\n * Throws a `Cancel` if cancellation has been requested.\n */\nCancelToken.prototype.throwIfRequested = function throwIfRequested() {\n if (this.reason) {\n throw this.reason;\n }\n};\n\n/**\n * Returns an object that contains a new `CancelToken` and a function that, when called,\n * cancels the `CancelToken`.\n */\nCancelToken.source = function source() {\n var cancel;\n var token = new CancelToken(function executor(c) {\n cancel = c;\n });\n return {\n token: token,\n cancel: cancel\n };\n};\n\nmodule.exports = CancelToken;\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 * @returns {Function}\n */\nmodule.exports = function spread(callback) {\n return function wrap(arr) {\n return callback.apply(null, arr);\n };\n};\n", "'use strict';\n\n/**\n * Determines whether the payload is an error thrown by Axios\n *\n * @param {*} payload The value to test\n * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false\n */\nmodule.exports = function isAxiosError(payload) {\n return (typeof payload === 'object') && (payload.isAxiosError === true);\n};\n", "'use strict';\n\nvar utils = require('./utils');\nvar bind = require('./helpers/bind');\nvar Axios = require('./core/Axios');\nvar mergeConfig = require('./core/mergeConfig');\nvar defaults = require('./defaults');\n\n/**\n * Create an instance of Axios\n *\n * @param {Object} defaultConfig The default config for the instance\n * @return {Axios} A new instance of Axios\n */\nfunction createInstance(defaultConfig) {\n var context = new Axios(defaultConfig);\n var instance = bind(Axios.prototype.request, context);\n\n // Copy axios.prototype to instance\n utils.extend(instance, Axios.prototype, context);\n\n // Copy context to instance\n utils.extend(instance, context);\n\n return instance;\n}\n\n// Create the default instance to be exported\nvar axios = createInstance(defaults);\n\n// Expose Axios class to allow class inheritance\naxios.Axios = Axios;\n\n// Factory for creating new instances\naxios.create = function create(instanceConfig) {\n return createInstance(mergeConfig(axios.defaults, instanceConfig));\n};\n\n// Expose Cancel & CancelToken\naxios.Cancel = require('./cancel/Cancel');\naxios.CancelToken = require('./cancel/CancelToken');\naxios.isCancel = require('./cancel/isCancel');\n\n// Expose all/spread\naxios.all = function all(promises) {\n return Promise.all(promises);\n};\naxios.spread = require('./helpers/spread');\n\n// Expose isAxiosError\naxios.isAxiosError = require('./helpers/isAxiosError');\n\nmodule.exports = axios;\n\n// Allow use of default import syntax in TypeScript\nmodule.exports.default = axios;\n", "module.exports = require('./lib/axios');", null, null, null, "\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n//# sourceMappingURL=types.js.map", null, null, null, "export function maybeGetDocument() {\n if (typeof document === 'object') {\n return document;\n }\n\n return undefined;\n}\n\nexport function maybeGetGlobal(): any {\n if (typeof self === 'object') {\n return self;\n } else {\n return global;\n }\n}\n", "import { maybeGetDocument } from './globals';\n\nexport function readCookie(name: string): string {\n const cookieValue = getCookieByName(name);\n\n if (cookieValue) {\n return cookieValue.split('=')[1];\n }\n\n return '';\n}\n\nfunction loadCookies(): string[] {\n const documentObj = maybeGetDocument();\n\n if (documentObj && documentObj.cookie) {\n return decodeURIComponent(documentObj.cookie).split(';');\n }\n\n return [];\n}\n\nfunction getCookieByName(name: string): string {\n return loadCookies().filter(\n (cookie) => name === cookie.split('=')[0].trim(),\n )[0];\n}\n", "import { readCookie } from '../cookies';\n\nexport const XSRF_TOKEN_COOKIE_NAME = 'XSRF-TOKEN';\nexport const XSRF_HEADER_NAME = 'x-xsrf-token';\n\nexport function csrf() {\n const value = readCookie(XSRF_TOKEN_COOKIE_NAME);\n return { [XSRF_HEADER_NAME]: value };\n}\n", "import { maybeGetGlobal } from '../globals';\n\nconst X_WIX_BRAND_NAME = 'x-wix-brand';\n\nexport function xWixBrand() {\n const value = extractBrand();\n\n return { [X_WIX_BRAND_NAME]: value };\n}\n\nfunction extractBrand(): string {\n const globalObj = maybeGetGlobal();\n\n if (\n globalObj &&\n globalObj.commonConfig &&\n typeof globalObj.commonConfig.brand === 'string'\n ) {\n return globalObj.commonConfig.brand;\n }\n\n return '';\n}\n", "import { maybeGetGlobal } from '../globals';\n\nexport function consentPolicy() {\n return tryResolveNativeAPI() || tryResolveJsSDK() || none();\n}\n\nfunction tryResolveJsSDK() {\n const globalObj = maybeGetGlobal();\n\n if (\n globalObj &&\n globalObj.Wix &&\n globalObj.Wix.Utils &&\n typeof globalObj.Wix.Utils._getConsentPolicyHeader === 'function'\n ) {\n return globalObj.Wix.Utils._getConsentPolicyHeader();\n }\n\n return undefined;\n}\n\nfunction tryResolveNativeAPI() {\n const globalObj = maybeGetGlobal();\n\n if (\n globalObj &&\n globalObj.consentPolicyManager &&\n typeof globalObj.consentPolicyManager._getConsentPolicyHeader === 'function'\n ) {\n return globalObj.consentPolicyManager._getConsentPolicyHeader();\n }\n\n return undefined;\n}\n\nfunction none() {\n return {};\n}\n", "export function authorization(signedInstance?: string) {\n return { authorization: signedInstance };\n}\n", "export function isCI() {\n if (isNode()) {\n return !!process.env.TEAMCITY_VERSION || !!process.env.BUILDKITE;\n }\n\n return false;\n}\n\nfunction isNode() {\n // todo: need to add a browser test\n return typeof process !== 'undefined' && process.versions?.node != null;\n}\n", "import { isCI } from '../utils';\n\nexport function artifactId(override?: string) {\n const artifactIdToUse = process.env.ARTIFACT_ID ?? process.env.APP_NAME ?? '';\n\n return {\n 'X-Wix-Client-Artifact-Id': override ?? (!isCI() ? artifactIdToUse : ''),\n };\n}\n", "import { maybeGetGlobal } from '../globals';\nimport { CommonConfigServer } from '../domain';\n\nconst IGNORE_KEYS = ['consentPolicy', 'consentPolicyHeader'];\nconst COMMON_CONFIG_NAME = 'commonConfig';\nconst MAP_KEYS = {\n bsi: 'BSI',\n};\n\nfunction extractCommonConfigValues(): CommonConfigServer | null {\n const globalObj = maybeGetGlobal();\n const commonConfigObj = globalObj?.commonConfig;\n\n if (!commonConfigObj) {\n return null;\n }\n\n const res: any = {};\n let addedKeys = false;\n Object.keys(commonConfigObj).forEach((key) => {\n // @ts-expect-error\n const newKey: string | undefined = MAP_KEYS[key];\n if (newKey) {\n res[newKey] = commonConfigObj[key];\n addedKeys = true;\n } else if (\n IGNORE_KEYS.indexOf(key) < 0 &&\n typeof commonConfigObj[key] !== 'function'\n ) {\n res[key] = commonConfigObj[key];\n addedKeys = true;\n }\n });\n\n return addedKeys ? (res as CommonConfigServer) : null;\n}\n\nexport const commonConfig = () => {\n const commonConfigValues = extractCommonConfigValues();\n const value = commonConfigValues ? JSON.stringify(commonConfigValues) : '';\n\n return { [COMMON_CONFIG_NAME]: encodeURIComponent(value) };\n};\n", "import base64 from 'base-64';\nimport { MultilingualOptions, Headers } from '../domain';\n\nconst LINGUIST_HEADER_KEY = 'x-wix-linguist';\n\nexport function linguistHeader({\n lang,\n locale,\n isPrimaryLanguage,\n signedInstance,\n}: MultilingualOptions & { signedInstance?: string }): Headers {\n // Validate all parameters exists in order to create the linguist header.\n if (isMultilingualOptionsAreValid({ lang, locale, isPrimaryLanguage })) {\n const instanceId = getInstanceIdFromSignedInstance(signedInstance);\n\n if (instanceId !== undefined) {\n return {\n [LINGUIST_HEADER_KEY]: [\n lang,\n locale,\n isPrimaryLanguage?.toString(),\n instanceId,\n ].join('|'),\n };\n }\n }\n\n return {};\n}\n\nfunction isMultilingualOptionsAreValid({\n lang,\n locale,\n isPrimaryLanguage,\n}: MultilingualOptions) {\n return (\n lang && locale && /^(true|false)$/.test(isPrimaryLanguage?.toString() || '')\n );\n}\n\nfunction getInstanceIdFromSignedInstance(signedInstance?: string) {\n try {\n const encodedInstance = signedInstance?.startsWith('wixcode')\n ? signedInstance?.split('.')[2]\n : signedInstance?.split('.')[1];\n\n if (encodedInstance) {\n return JSON.parse(base64.decode(encodedInstance)).instanceId;\n }\n } catch (e) {}\n}\n", "import type proto from '@wix/fed-infra-protos/dist/proto-generated';\n\nexport type CommonConfigServerProto = proto.wix.fedinfra.commons.CommonConfig;\n\nexport enum Brand {\n wix = 0,\n editorx = 1,\n dayful = 2,\n studio = 3,\n}\n\nexport interface CommonConfigServer\n extends Omit<CommonConfigServerProto, 'brand'> {\n brand?: 'wix' | 'editorx' | 'dayful' | 'studio';\n}\n\nexport interface CommonConfig extends Omit<CommonConfigServer, 'BSI'> {\n bsi?: string | null;\n}\n\nexport interface ConsentPolicyManager {\n _getConsentPolicyHeader(): Headers;\n}\n\nexport interface Wix {\n Utils: {\n _getConsentPolicyHeader(): Headers;\n };\n}\n\nexport type Headers = { [header: string]: string | undefined };\n\nexport type WixHeaders = {\n 'x-wix-brand'?: string;\n 'x-xsrf-token'?: string;\n authorization?: string;\n 'X-Wix-Client-Artifact-Id'?: string;\n commonConfig?: string;\n 'x-wix-linguist'?: string;\n};\n\nexport interface MultilingualOptions {\n lang?: string;\n locale?: string;\n isPrimaryLanguage?: string | boolean;\n}\n", "export class WixHeadersParsingError extends Error {\n constructor(header: string, value: any) {\n super(\n `WixHeadersParsingError: ${header} evaluated with ${JSON.stringify(\n value,\n )} but should be a string!`,\n );\n }\n}\n\nexport class WixHeadersValidationError extends Error {\n constructor(type: string, key: string, value: any) {\n super(\n `WixHeadersValidationError: expected ${key} to be ${type} but got ${JSON.stringify(\n value,\n )}`,\n );\n }\n}\n", "import { WixHeadersValidationError } from './errors';\n\nexport function assertBoolean(key: string, value: any) {\n if (typeof value !== 'boolean') {\n throw new WixHeadersValidationError('boolean', key, value);\n }\n}\n\nexport function assertString(key: string, value: any) {\n if (typeof value !== 'string') {\n throw new WixHeadersValidationError('string', key, value);\n }\n}\n", "import { csrf } from './headers/csrf';\nimport { xWixBrand } from './headers/x-wix-brand';\nimport { consentPolicy } from './headers/consent-policy';\nimport { authorization } from './headers/authorization';\nimport { artifactId } from './headers/artifact-id';\nimport { commonConfig } from './headers/common-config';\nimport { linguistHeader } from './headers/linguist';\nimport { MultilingualOptions, WixHeaders, Headers } from './domain';\nimport { assertBoolean, assertString } from './assert';\n\nexport { MultilingualOptions };\n\nexport type WixHeadersOpts = {\n csrf?: boolean;\n signedInstance?: string;\n artifactId?: string;\n multilingualOptions?: MultilingualOptions;\n};\n\nexport function createHeaders(opts: WixHeadersOpts = {}): WixHeaders {\n opts = { csrf: true, signedInstance: '', ...opts };\n\n verifyOptsOrThrow(opts);\n\n const headers: Headers[] = [\n xWixBrand(),\n consentPolicy(),\n authorization(opts.signedInstance),\n artifactId(opts.artifactId),\n commonConfig(),\n linguistHeader({\n signedInstance: opts.signedInstance,\n ...opts.multilingualOptions,\n }),\n ];\n\n if (opts.csrf) {\n headers.push(csrf());\n }\n\n return headers\n .filter((hdrs) => Object.values(hdrs).every((v) => v))\n .reduce(\n (result, hdrs) => ({\n ...result,\n ...hdrs,\n }),\n {} as WixHeaders,\n );\n}\n\nfunction verifyOptsOrThrow(opts: WixHeadersOpts) {\n assertBoolean('opts.csrf', opts.csrf);\n assertString('opts.signedInstance', opts.signedInstance);\n}\n", null, null, "[\n \"wix.com\",\n \"editorx.com\",\n \"wix-code.com\",\n \"wixapps.net\",\n \"wixprod.net\"\n]\n", null, null, "'use strict';\n\nmodule.exports = function bind(fn, thisArg) {\n return function wrap() {\n var args = new Array(arguments.length);\n for (var i = 0; i < args.length; i++) {\n args[i] = arguments[i];\n }\n return fn.apply(thisArg, args);\n };\n};\n", "'use strict';\n\nvar bind = require('./helpers/bind');\n\n// utils is a library of generic helper functions non-specific to axios\n\nvar toString = Object.prototype.toString;\n\n/**\n * Determine if a value is an Array\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an Array, otherwise false\n */\nfunction isArray(val) {\n return toString.call(val) === '[object Array]';\n}\n\n/**\n * Determine if a value is undefined\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if the value is undefined, otherwise false\n */\nfunction isUndefined(val) {\n return typeof val === 'undefined';\n}\n\n/**\n * Determine if a value is a Buffer\n *\n * @param {Object} val The value to test\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 && typeof val.constructor.isBuffer === 'function' && val.constructor.isBuffer(val);\n}\n\n/**\n * Determine if a value is an ArrayBuffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an ArrayBuffer, otherwise false\n */\nfunction isArrayBuffer(val) {\n return toString.call(val) === '[object ArrayBuffer]';\n}\n\n/**\n * Determine if a value is a FormData\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an FormData, otherwise false\n */\nfunction isFormData(val) {\n return (typeof FormData !== 'undefined') && (val instanceof FormData);\n}\n\n/**\n * Determine if a value is a view on an ArrayBuffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false\n */\nfunction isArrayBufferView(val) {\n var result;\n if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {\n result = ArrayBuffer.isView(val);\n } else {\n result = (val) && (val.buffer) && (val.buffer instanceof ArrayBuffer);\n }\n return result;\n}\n\n/**\n * Determine if a value is a String\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a String, otherwise false\n */\nfunction isString(val) {\n return typeof val === 'string';\n}\n\n/**\n * Determine if a value is a Number\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Number, otherwise false\n */\nfunction isNumber(val) {\n return typeof val === 'number';\n}\n\n/**\n * Determine if a value is an Object\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an Object, otherwise false\n */\nfunction isObject(val) {\n return val !== null && typeof val === 'object';\n}\n\n/**\n * Determine if a value is a plain Object\n *\n * @param {Object} val The value to test\n * @return {boolean} True if value is a plain Object, otherwise false\n */\nfunction isPlainObject(val) {\n if (toString.call(val) !== '[object Object]') {\n return false;\n }\n\n var prototype = Object.getPrototypeOf(val);\n return prototype === null || prototype === Object.prototype;\n}\n\n/**\n * Determine if a value is a Date\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Date, otherwise false\n */\nfunction isDate(val) {\n return toString.call(val) === '[object Date]';\n}\n\n/**\n * Determine if a value is a File\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a File, otherwise false\n */\nfunction isFile(val) {\n return toString.call(val) === '[object File]';\n}\n\n/**\n * Determine if a value is a Blob\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Blob, otherwise false\n */\nfunction isBlob(val) {\n return toString.call(val) === '[object Blob]';\n}\n\n/**\n * Determine if a value is a Function\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Function, otherwise false\n */\nfunction isFunction(val) {\n return toString.call(val) === '[object Function]';\n}\n\n/**\n * Determine if a value is a Stream\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Stream, otherwise false\n */\nfunction isStream(val) {\n return isObject(val) && isFunction(val.pipe);\n}\n\n/**\n * Determine if a value is a URLSearchParams object\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a URLSearchParams object, otherwise false\n */\nfunction isURLSearchParams(val) {\n return typeof URLSearchParams !== 'undefined' && val instanceof URLSearchParams;\n}\n\n/**\n * Trim excess whitespace off the beginning and end of a string\n *\n * @param {String} str The String to trim\n * @returns {String} The String freed of excess whitespace\n */\nfunction trim(str) {\n return str.trim ? str.trim() : str.replace(/^\\s+|\\s+$/g, '');\n}\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 */\nfunction isStandardBrowserEnv() {\n if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||\n navigator.product === 'NativeScript' ||\n navigator.product === 'NS')) {\n return false;\n }\n return (\n typeof window !== 'undefined' &&\n typeof document !== 'undefined'\n );\n}\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 */\nfunction forEach(obj, fn) {\n // Don't bother if no value provided\n if (obj === null || typeof obj === 'undefined') {\n return;\n }\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 (var 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 for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) {\n fn.call(null, obj[key], key, obj);\n }\n }\n }\n}\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 * @returns {Object} Result of all merge properties\n */\nfunction merge(/* obj1, obj2, obj3, ... */) {\n var result = {};\n function assignValue(val, key) {\n if (isPlainObject(result[key]) && isPlainObject(val)) {\n result[key] = merge(result[key], val);\n } else if (isPlainObject(val)) {\n result[key] = merge({}, val);\n } else if (isArray(val)) {\n result[key] = val.slice();\n } else {\n result[key] = val;\n }\n }\n\n for (var i = 0, l = arguments.length; i < l; i++) {\n 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 * @return {Object} The resulting value of object a\n */\nfunction extend(a, b, thisArg) {\n forEach(b, function assignValue(val, key) {\n if (thisArg && typeof val === 'function') {\n a[key] = bind(val, thisArg);\n } else {\n a[key] = val;\n }\n });\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 * @return {string} content value without BOM\n */\nfunction stripBOM(content) {\n if (content.charCodeAt(0) === 0xFEFF) {\n content = content.slice(1);\n }\n return content;\n}\n\nmodule.exports = {\n isArray: isArray,\n isArrayBuffer: isArrayBuffer,\n isBuffer: isBuffer,\n isFormData: isFormData,\n isArrayBufferView: isArrayBufferView,\n isString: isString,\n isNumber: isNumber,\n isObject: isObject,\n isPlainObject: isPlainObject,\n isUndefined: isUndefined,\n isDate: isDate,\n isFile: isFile,\n isBlob: isBlob,\n isFunction: isFunction,\n isStream: isStream,\n isURLSearchParams: isURLSearchParams,\n isStandardBrowserEnv: isStandardBrowserEnv,\n forEach: forEach,\n merge: merge,\n extend: extend,\n trim: trim,\n stripBOM: stripBOM\n};\n", "'use strict';\n\n/**\n * Update an Error with the specified config, error code, and response.\n *\n * @param {Error} error The error to update.\n * @param {Object} config The config.\n * @param {string} [code] The error code (for example, 'ECONNABORTED').\n * @param {Object} [request] The request.\n * @param {Object} [response] The response.\n * @returns {Error} The error.\n */\nmodule.exports = function enhanceError(error, config, code, request, response) {\n error.config = config;\n if (code) {\n error.code = code;\n }\n\n error.request = request;\n error.response = response;\n error.isAxiosError = true;\n\n error.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: this.config,\n code: this.code\n };\n };\n return error;\n};\n", "'use strict';\n\nvar enhanceError = require('./enhanceError');\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 {Object} config The config.\n * @param {string} [code] The error code (for example, 'ECONNABORTED').\n * @param {Object} [request] The request.\n * @param {Object} [response] The response.\n * @returns {Error} The created error.\n */\nmodule.exports = function createError(message, config, code, request, response) {\n var error = new Error(message);\n return enhanceError(error, config, code, request, response);\n};\n", "'use strict';\n\nvar createError = require('./createError');\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 */\nmodule.exports = function settle(resolve, reject, response) {\n var validateStatus = response.config.validateStatus;\n if (!response.status || !validateStatus || validateStatus(response.status)) {\n resolve(response);\n } else {\n reject(createError(\n 'Request failed with status code ' + response.status,\n response.config,\n null,\n response.request,\n response\n ));\n }\n};\n", "'use strict';\n\n/**\n * Determines whether the specified URL is absolute\n *\n * @param {string} url The URL to test\n * @returns {boolean} True if the specified URL is absolute, otherwise false\n */\nmodule.exports = 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\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 * @returns {string} The combined URL\n */\nmodule.exports = function combineURLs(baseURL, relativeURL) {\n return relativeURL\n ? baseURL.replace(/\\/+$/, '') + '/' + relativeURL.replace(/^\\/+/, '')\n : baseURL;\n};\n", "'use strict';\n\nvar isAbsoluteURL = require('../helpers/isAbsoluteURL');\nvar combineURLs = require('../helpers/combineURLs');\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 * @returns {string} The combined full path\n */\nmodule.exports = function buildFullPath(baseURL, requestedURL) {\n if (baseURL && !isAbsoluteURL(requestedURL)) {\n return combineURLs(baseURL, requestedURL);\n }\n return requestedURL;\n};\n", "'use strict';\n\nvar utils = require('./../utils');\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 * @returns {string} The formatted url\n */\nmodule.exports = function buildURL(url, params, paramsSerializer) {\n /*eslint no-param-reassign:0*/\n if (!params) {\n return url;\n }\n\n var serializedParams;\n if (paramsSerializer) {\n serializedParams = paramsSerializer(params);\n } else if (utils.isURLSearchParams(params)) {\n serializedParams = params.toString();\n } else {\n var parts = [];\n\n utils.forEach(params, function serialize(val, key) {\n if (val === null || typeof val === 'undefined') {\n return;\n }\n\n if (utils.isArray(val)) {\n key = key + '[]';\n } else {\n val = [val];\n }\n\n utils.forEach(val, function parseValue(v) {\n if (utils.isDate(v)) {\n v = v.toISOString();\n } else if (utils.isObject(v)) {\n v = JSON.stringify(v);\n }\n parts.push(encode(key) + '=' + encode(v));\n });\n });\n\n serializedParams = parts.join('&');\n }\n\n if (serializedParams) {\n var hashmarkIndex = url.indexOf('#');\n if (hashmarkIndex !== -1) {\n url = url.slice(0, hashmarkIndex);\n }\n\n url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;\n }\n\n return url;\n};\n", "{\n \"name\": \"axios\",\n \"version\": \"0.21.4\",\n \"description\": \"Promise based HTTP client for the browser and node.js\",\n \"main\": \"index.js\",\n \"scripts\": {\n \"test\": \"grunt test\",\n \"start\": \"node ./sandbox/server.js\",\n \"build\": \"NODE_ENV=production grunt build\",\n \"preversion\": \"npm test\",\n \"version\": \"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json\",\n \"postversion\": \"git push && git push --tags\",\n \"examples\": \"node ./examples/server.js\",\n \"coveralls\": \"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js\",\n \"fix\": \"eslint --fix lib/**/*.js\"\n },\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"https://github.com/axios/axios.git\"\n },\n \"keywords\": [\n \"xhr\",\n \"http\",\n \"ajax\",\n \"promise\",\n \"node\"\n ],\n \"author\": \"Matt Zabriskie\",\n \"license\": \"MIT\",\n \"bugs\": {\n \"url\": \"https://github.com/axios/axios/issues\"\n },\n \"homepage\": \"https://axios-http.com\",\n \"devDependencies\": {\n \"coveralls\": \"^3.0.0\",\n \"es6-promise\": \"^4.2.4\",\n \"grunt\": \"^1.3.0\",\n \"grunt-banner\": \"^0.6.0\",\n \"grunt-cli\": \"^1.2.0\",\n \"grunt-contrib-clean\": \"^1.1.0\",\n \"grunt-contrib-watch\": \"^1.0.0\",\n \"grunt-eslint\": \"^23.0.0\",\n \"grunt-karma\": \"^4.0.0\",\n \"grunt-mocha-test\": \"^0.13.3\",\n \"grunt-ts\": \"^6.0.0-beta.19\",\n \"grunt-webpack\": \"^4.0.2\",\n \"istanbul-instrumenter-loader\": \"^1.0.0\",\n \"jasmine-core\": \"^2.4.1\",\n \"karma\": \"^6.3.2\",\n \"karma-chrome-launcher\": \"^3.1.0\",\n \"karma-firefox-launcher\": \"^2.1.0\",\n \"karma-jasmine\": \"^1.1.1\",\n \"karma-jasmine-ajax\": \"^0.1.13\",\n \"karma-safari-launcher\": \"^1.0.0\",\n \"karma-sauce-launcher\": \"^4.3.6\",\n \"karma-sinon\": \"^1.0.5\",\n \"karma-sourcemap-loader\": \"^0.3.8\",\n \"karma-webpack\": \"^4.0.2\",\n \"load-grunt-tasks\": \"^3.5.2\",\n \"minimist\": \"^1.2.0\",\n \"mocha\": \"^8.2.1\",\n \"sinon\": \"^4.5.0\",\n \"terser-webpack-plugin\": \"^4.2.3\",\n \"typescript\": \"^4.0.5\",\n \"url-search-params\": \"^0.10.0\",\n \"webpack\": \"^4.44.2\",\n \"webpack-dev-server\": \"^3.11.0\"\n },\n \"browser\": {\n \"./lib/adapters/http.js\": \"./lib/adapters/xhr.js\"\n },\n \"jsdelivr\": \"dist/axios.min.js\",\n \"unpkg\": \"dist/axios.min.js\",\n \"typings\": \"./index.d.ts\",\n \"dependencies\": {\n \"follow-redirects\": \"^1.14.0\"\n },\n \"bundlesize\": [\n {\n \"path\": \"./dist/axios.min.js\",\n \"threshold\": \"5kB\"\n }\n ]\n}\n", "'use strict';\n\nvar utils = require('./../utils');\nvar settle = require('./../core/settle');\nvar buildFullPath = require('../core/buildFullPath');\nvar buildURL = require('./../helpers/buildURL');\nvar http = require('http');\nvar https = require('https');\nvar httpFollow = require('follow-redirects').http;\nvar httpsFollow = require('follow-redirects').https;\nvar url = require('url');\nvar zlib = require('zlib');\nvar pkg = require('./../../package.json');\nvar createError = require('../core/createError');\nvar enhanceError = require('../core/enhanceError');\n\nvar isHttps = /https:?/;\n\n/**\n *\n * @param {http.ClientRequestArgs} options\n * @param {AxiosProxyConfig} proxy\n * @param {string} location\n */\nfunction setProxy(options, proxy, location) {\n options.hostname = proxy.host;\n options.host = proxy.host;\n options.port = proxy.port;\n options.path = location;\n\n // Basic proxy authorization\n if (proxy.auth) {\n var base64 = Buffer.from(proxy.auth.username + ':' + proxy.auth.password, 'utf8').toString('base64');\n options.headers['Proxy-Authorization'] = 'Basic ' + base64;\n }\n\n // If a proxy is used, any redirects must also pass through the proxy\n options.beforeRedirect = function beforeRedirect(redirection) {\n redirection.headers.host = redirection.host;\n setProxy(redirection, proxy, redirection.href);\n };\n}\n\n/*eslint consistent-return:0*/\nmodule.exports = function httpAdapter(config) {\n return new Promise(function dispatchHttpRequest(resolvePromise, rejectPromise) {\n var resolve = function resolve(value) {\n resolvePromise(value);\n };\n var reject = function reject(value) {\n rejectPromise(value);\n };\n var data = config.data;\n var headers = config.headers;\n\n // Set User-Agent (required by some servers)\n // See https://github.com/axios/axios/issues/69\n if ('User-Agent' in headers || 'user-agent' in headers) {\n // User-Agent is specified; handle case where no UA header is desired\n if (!headers['User-Agent'] && !headers['user-agent']) {\n delete headers['User-Agent'];\n delete headers['user-agent'];\n }\n // Otherwise, use specified value\n } else {\n // Only set header if it hasn't been set in config\n headers['User-Agent'] = 'axios/' + pkg.version;\n }\n\n 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(createError(\n 'Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream',\n config\n ));\n }\n\n // Add Content-Length header if data exists\n headers['Content-Length'] = data.length;\n }\n\n // HTTP basic authentication\n var auth = undefined;\n if (config.auth) {\n var username = config.auth.username || '';\n var password = config.auth.password || '';\n auth = username + ':' + password;\n }\n\n // Parse url\n var fullPath = buildFullPath(config.baseURL, config.url);\n var parsed = url.parse(fullPath);\n var protocol = parsed.protocol || 'http:';\n\n if (!auth && parsed.auth) {\n var urlAuth = parsed.auth.split(':');\n var urlUsername = urlAuth[0] || '';\n var urlPassword = urlAuth[1] || '';\n auth = urlUsername + ':' + urlPassword;\n }\n\n if (auth) {\n delete headers.Authorization;\n }\n\n var isHttpsRequest = isHttps.test(protocol);\n var agent = isHttpsRequest ? config.httpsAgent : config.httpAgent;\n\n var options = {\n path: buildURL(parsed.path, config.params, config.paramsSerializer).replace(/^\\?/, ''),\n method: config.method.toUpperCase(),\n headers: headers,\n agent: agent,\n agents: { http: config.httpAgent, https: config.httpsAgent },\n auth: auth\n };\n\n if (config.socketPath) {\n options.socketPath = config.socketPath;\n } else {\n options.hostname = parsed.hostname;\n options.port = parsed.port;\n }\n\n var proxy = config.proxy;\n if (!proxy && proxy !== false) {\n var proxyEnv = protocol.slice(0, -1) + '_proxy';\n var proxyUrl = process.env[proxyEnv] || process.env[proxyEnv.toUpperCase()];\n if (proxyUrl) {\n var parsedProxyUrl = url.parse(proxyUrl);\n var noProxyEnv = process.env.no_proxy || process.env.NO_PROXY;\n var shouldProxy = true;\n\n if (noProxyEnv) {\n var noProxy = noProxyEnv.split(',').map(function trim(s) {\n return s.trim();\n });\n\n shouldProxy = !noProxy.some(function proxyMatch(proxyElement) {\n if (!proxyElement) {\n return false;\n }\n if (proxyElement === '*') {\n return true;\n }\n if (proxyElement[0] === '.' &&\n parsed.hostname.substr(parsed.hostname.length - proxyElement.length) === proxyElement) {\n return true;\n }\n\n return parsed.hostname === proxyElement;\n });\n }\n\n if (shouldProxy) {\n proxy = {\n host: parsedProxyUrl.hostname,\n port: parsedProxyUrl.port,\n protocol: parsedProxyUrl.protocol\n };\n\n if (parsedProxyUrl.auth) {\n var proxyUrlAuth = parsedProxyUrl.auth.split(':');\n proxy.auth = {\n username: proxyUrlAuth[0],\n password: proxyUrlAuth[1]\n };\n }\n }\n }\n }\n\n if (proxy) {\n options.headers.host = parsed.hostname + (parsed.port ? ':' + parsed.port : '');\n setProxy(options, proxy, protocol + '//' + parsed.hostname + (parsed.port ? ':' + parsed.port : '') + options.path);\n }\n\n var transport;\n var isHttpsProxy = isHttpsRequest && (proxy ? isHttps.test(proxy.protocol) : true);\n if (config.transport) {\n transport = config.transport;\n } else if (config.maxRedirects === 0) {\n transport = isHttpsProxy ? https : http;\n } else {\n if (config.maxRedirects) {\n options.maxRedirects = config.maxRedirects;\n }\n transport = isHttpsProxy ? httpsFollow : httpFollow;\n }\n\n if (config.maxBodyLength > -1) {\n options.maxBodyLength = config.maxBodyLength;\n }\n\n // Create the request\n var req = transport.request(options, function handleResponse(res) {\n if (req.aborted) return;\n\n // uncompress the response body transparently if required\n var stream = res;\n\n // return the last request in case of redirects\n var lastRequest = res.req || req;\n\n\n // if no content, is HEAD request or decompress disabled we should not decompress\n if (res.statusCode !== 204 && lastRequest.method !== 'HEAD' && config.decompress !== false) {\n switch (res.headers['content-encoding']) {\n /*eslint default-case:0*/\n case 'gzip':\n case 'compress':\n case 'deflate':\n // add the unzipper to the body stream processing pipeline\n stream = stream.pipe(zlib.createUnzip());\n\n // remove the content-encoding in order to not confuse downstream operations\n delete res.headers['content-encoding'];\n break;\n }\n }\n\n var response = {\n status: res.statusCode,\n statusText: res.statusMessage,\n headers: res.headers,\n config: config,\n request: lastRequest\n };\n\n if (config.responseType === 'stream') {\n response.data = stream;\n settle(resolve, reject, response);\n } else {\n var responseBuffer = [];\n var totalResponseBytes = 0;\n stream.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();\n reject(createError('maxContentLength size of ' + config.maxContentLength + ' exceeded',\n config, null, lastRequest));\n }\n });\n\n stream.on('error', function handleStreamError(err) {\n if (req.aborted) return;\n reject(enhanceError(err, config, null, lastRequest));\n });\n\n stream.on('end', function handleStreamEnd() {\n var responseData = Buffer.concat(responseBuffer);\n if (config.responseType !== 'arraybuffer') {\n responseData = responseData.toString(config.responseEncoding);\n if (!config.responseEncoding || config.responseEncoding === 'utf8') {\n responseData = utils.stripBOM(responseData);\n }\n }\n\n response.data = responseData;\n settle(resolve, reject, response);\n });\n }\n });\n\n // Handle errors\n req.on('error', function handleRequestError(err) {\n if (req.aborted && err.code !== 'ERR_FR_TOO_MANY_REDIRECTS') return;\n reject(enhanceError(err, config, null, req));\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 var timeout = parseInt(config.timeout, 10);\n\n if (isNaN(timeout)) {\n reject(createError(\n 'error trying to parse `config.timeout` to int',\n config,\n 'ERR_PARSE_TIMEOUT',\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 devoring 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 req.abort();\n reject(createError(\n 'timeout of ' + timeout + 'ms exceeded',\n config,\n config.transitional && config.transitional.clarifyTimeoutError ? 'ETIMEDOUT' : 'ECONNABORTED',\n req\n ));\n });\n }\n\n if (config.cancelToken) {\n // Handle cancellation\n config.cancelToken.promise.then(function onCanceled(cancel) {\n if (req.aborted) return;\n\n req.abort();\n reject(cancel);\n });\n }\n\n // Send the request\n if (utils.isStream(data)) {\n data.on('error', function handleStreamError(err) {\n reject(enhanceError(err, config, null, req));\n }).pipe(req);\n } else {\n req.end(data);\n }\n });\n};\n", null, null, null, null, null, "'use strict';\n\nvar utils = require('./../utils');\n\nfunction InterceptorManager() {\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 */\nInterceptorManager.prototype.use = function use(fulfilled, rejected, options) {\n this.handlers.push({\n fulfilled: fulfilled,\n rejected: 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 */\nInterceptorManager.prototype.eject = function eject(id) {\n if (this.handlers[id]) {\n this.handlers[id] = null;\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 */\nInterceptorManager.prototype.forEach = function forEach(fn) {\n utils.forEach(this.handlers, function forEachHandler(h) {\n if (h !== null) {\n fn(h);\n }\n });\n};\n\nmodule.exports = InterceptorManager;\n", "'use strict';\n\nvar utils = require('../utils');\n\nmodule.exports = function normalizeHeaderName(headers, normalizedName) {\n utils.forEach(headers, function processHeader(value, name) {\n if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) {\n headers[normalizedName] = value;\n delete headers[name];\n }\n });\n};\n", "'use strict';\n\nvar utils = require('./../utils');\n\nmodule.exports = (\n utils.isStandardBrowserEnv() ?\n\n // Standard browser envs support document.cookie\n (function standardBrowserEnv() {\n return {\n write: function write(name, value, expires, path, domain, secure) {\n var cookie = [];\n cookie.push(name + '=' + encodeURIComponent(value));\n\n if (utils.isNumber(expires)) {\n cookie.push('expires=' + new Date(expires).toGMTString());\n }\n\n if (utils.isString(path)) {\n cookie.push('path=' + path);\n }\n\n if (utils.isString(domain)) {\n cookie.push('domain=' + domain);\n }\n\n if (secure === true) {\n cookie.push('secure');\n }\n\n document.cookie = cookie.join('; ');\n },\n\n read: function read(name) {\n var match = document.cookie.match(new RegExp('(^|;\\\\s*)(' + name + ')=([^;]*)'));\n return (match ? decodeURIComponent(match[3]) : null);\n },\n\n remove: function remove(name) {\n this.write(name, '', Date.now() - 86400000);\n }\n };\n })() :\n\n // Non standard browser env (web workers, react-native) lack needed support.\n (function nonStandardBrowserEnv() {\n return {\n write: function write() {},\n read: function read() { return null; },\n remove: function remove() {}\n };\n })()\n);\n", "'use strict';\n\nvar utils = require('./../utils');\n\n// Headers whose duplicates are ignored by node\n// c.f. https://nodejs.org/api/http.html#http_message_headers\nvar ignoreDuplicateOf = [\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} headers Headers needing to be parsed\n * @returns {Object} Headers parsed into an object\n */\nmodule.exports = function parseHeaders(headers) {\n var parsed = {};\n var key;\n var val;\n var i;\n\n if (!headers) { return parsed; }\n\n utils.forEach(headers.split('\\n'), function parser(line) {\n i = line.indexOf(':');\n key = utils.trim(line.substr(0, i)).toLowerCase();\n val = utils.trim(line.substr(i + 1));\n\n if (key) {\n if (parsed[key] && ignoreDuplicateOf.indexOf(key) >= 0) {\n return;\n }\n if (key === 'set-cookie') {\n parsed[key] = (parsed[key] ? parsed[key] : []).concat([val]);\n } else {\n parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;\n }\n }\n });\n\n return parsed;\n};\n", "'use strict';\n\nvar utils = require('./../utils');\n\nmodule.exports = (\n utils.isStandardBrowserEnv() ?\n\n // Standard browser envs have full support of the APIs needed to test\n // whether the request URL is of the same origin as current location.\n (function standardBrowserEnv() {\n var msie = /(msie|trident)/i.test(navigator.userAgent);\n var urlParsingNode = document.createElement('a');\n var originURL;\n\n /**\n * Parse a URL to discover it's components\n *\n * @param {String} url The URL to be parsed\n * @returns {Object}\n */\n function resolveURL(url) {\n var href = url;\n\n if (msie) {\n // IE needs attribute set twice to normalize properties\n urlParsingNode.setAttribute('href', href);\n href = urlParsingNode.href;\n }\n\n urlParsingNode.setAttribute('href', href);\n\n // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils\n return {\n href: urlParsingNode.href,\n protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',\n host: urlParsingNode.host,\n search: urlParsingNode.search ? urlParsingNode.search.replace(/^\\?/, '') : '',\n hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',\n hostname: urlParsingNode.hostname,\n port: urlParsingNode.port,\n pathname: (urlParsingNode.pathname.charAt(0) === '/') ?\n urlParsingNode.pathname :\n '/' + urlParsingNode.pathname\n };\n }\n\n originURL = resolveURL(window.location.href);\n\n /**\n * Determine if a URL shares the same origin as the current location\n *\n * @param {String} requestURL The URL to test\n * @returns {boolean} True if URL shares the same origin, otherwise false\n */\n return function isURLSameOrigin(requestURL) {\n var parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL;\n return (parsed.protocol === originURL.protocol &&\n parsed.host === originURL.host);\n };\n })() :\n\n // Non standard browser envs (web workers, react-native) lack needed support.\n (function nonStandardBrowserEnv() {\n return function isURLSameOrigin() {\n return true;\n };\n })()\n);\n", "'use strict';\n\nvar utils = require('./../utils');\nvar settle = require('./../core/settle');\nvar cookies = require('./../helpers/cookies');\nvar buildURL = require('./../helpers/buildURL');\nvar buildFullPath = require('../core/buildFullPath');\nvar parseHeaders = require('./../helpers/parseHeaders');\nvar isURLSameOrigin = require('./../helpers/isURLSameOrigin');\nvar createError = require('../core/createError');\n\nmodule.exports = function xhrAdapter(config) {\n return new Promise(function dispatchXhrRequest(resolve, reject) {\n var requestData = config.data;\n var requestHeaders = config.headers;\n var responseType = config.responseType;\n\n if (utils.isFormData(requestData)) {\n delete requestHeaders['Content-Type']; // Let the browser set it\n }\n\n var request = new XMLHttpRequest();\n\n // HTTP basic authentication\n if (config.auth) {\n var username = config.auth.username || '';\n var password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : '';\n requestHeaders.Authorization = 'Basic ' + btoa(username + ':' + password);\n }\n\n var fullPath = buildFullPath(config.baseURL, config.url);\n request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), 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 var responseHeaders = 'getAllResponseHeaders' in request ? parseHeaders(request.getAllResponseHeaders()) : null;\n var responseData = !responseType || responseType === 'text' || responseType === 'json' ?\n request.responseText : request.response;\n var response = {\n data: responseData,\n status: request.status,\n statusText: request.statusText,\n headers: responseHeaders,\n config: config,\n request: request\n };\n\n settle(resolve, reject, 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(createError('Request aborted', config, 'ECONNABORTED', 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(createError('Network Error', config, null, request));\n\n // Clean up request\n request = null;\n };\n\n // Handle timeout\n request.ontimeout = function handleTimeout() {\n var timeoutErrorMessage = 'timeout of ' + config.timeout + 'ms exceeded';\n if (config.timeoutErrorMessage) {\n timeoutErrorMessage = config.timeoutErrorMessage;\n }\n reject(createError(\n timeoutErrorMessage,\n config,\n config.transitional && config.transitional.clarifyTimeoutError ? 'ETIMEDOUT' : 'ECONNABORTED',\n request));\n\n // Clean up request\n request = null;\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 if (utils.isStandardBrowserEnv()) {\n // Add xsrf header\n var xsrfValue = (config.withCredentials || isURLSameOrigin(fullPath)) && config.xsrfCookieName ?\n cookies.read(config.xsrfCookieName) :\n undefined;\n\n if (xsrfValue) {\n requestHeaders[config.xsrfHeaderName] = xsrfValue;\n }\n }\n\n // Add headers to the request\n if ('setRequestHeader' in request) {\n utils.forEach(requestHeaders, function setRequestHeader(val, key) {\n if (typeof requestData === 'undefined' && key.toLowerCase() === 'content-type') {\n // Remove Content-Type if data is undefined\n delete requestHeaders[key];\n } else {\n // Otherwise add header to the request\n request.setRequestHeader(key, val);\n }\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 (typeof config.onDownloadProgress === 'function') {\n request.addEventListener('progress', config.onDownloadProgress);\n }\n\n // Not all browsers support upload events\n if (typeof config.onUploadProgress === 'function' && request.upload) {\n request.upload.addEventListener('progress', config.onUploadProgress);\n }\n\n if (config.cancelToken) {\n // Handle cancellation\n config.cancelToken.promise.then(function onCanceled(cancel) {\n if (!request) {\n return;\n }\n\n request.abort();\n reject(cancel);\n // Clean up request\n request = null;\n });\n }\n\n if (!requestData) {\n requestData = null;\n }\n\n // Send the request\n request.send(requestData);\n });\n};\n", "'use strict';\n\nvar utils = require('./utils');\nvar normalizeHeaderName = require('./helpers/normalizeHeaderName');\nvar enhanceError = require('./core/enhanceError');\n\nvar DEFAULT_CONTENT_TYPE = {\n 'Content-Type': 'application/x-www-form-urlencoded'\n};\n\nfunction setContentTypeIfUnset(headers, value) {\n if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) {\n headers['Content-Type'] = value;\n }\n}\n\nfunction getDefaultAdapter() {\n var adapter;\n if (typeof XMLHttpRequest !== 'undefined') {\n // For browsers use XHR adapter\n adapter = require('./adapters/xhr');\n } else if (typeof process !== 'undefined' && Object.prototype.toString.call(process) === '[object process]') {\n // For node use HTTP adapter\n adapter = require('./adapters/http');\n }\n return adapter;\n}\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\nvar defaults = {\n\n transitional: {\n silentJSONParsing: true,\n forcedJSONParsing: true,\n clarifyTimeoutError: false\n },\n\n adapter: getDefaultAdapter(),\n\n transformRequest: [function transformRequest(data, headers) {\n normalizeHeaderName(headers, 'Accept');\n normalizeHeaderName(headers, 'Content-Type');\n\n if (utils.isFormData(data) ||\n utils.isArrayBuffer(data) ||\n utils.isBuffer(data) ||\n utils.isStream(data) ||\n utils.isFile(data) ||\n utils.isBlob(data)\n ) {\n return data;\n }\n if (utils.isArrayBufferView(data)) {\n return data.buffer;\n }\n if (utils.isURLSearchParams(data)) {\n setContentTypeIfUnset(headers, 'application/x-www-form-urlencoded;charset=utf-8');\n return data.toString();\n }\n if (utils.isObject(data) || (headers && headers['Content-Type'] === 'application/json')) {\n setContentTypeIfUnset(headers, 'application/json');\n return stringifySafely(data);\n }\n return data;\n }],\n\n transformResponse: [function transformResponse(data) {\n var transitional = this.transitional;\n var silentJSONParsing = transitional && transitional.silentJSONParsing;\n var forcedJSONParsing = transitional && transitional.forcedJSONParsing;\n var strictJSONParsing = !silentJSONParsing && this.responseType === 'json';\n\n if (strictJSONParsing || (forcedJSONParsing && utils.isString(data) && data.length)) {\n try {\n return JSON.parse(data);\n } catch (e) {\n if (strictJSONParsing) {\n if (e.name === 'SyntaxError') {\n throw enhanceError(e, this, 'E_JSON_PARSE');\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 validateStatus: function validateStatus(status) {\n return status >= 200 && status < 300;\n }\n};\n\ndefaults.headers = {\n common: {\n 'Accept': 'application/json, text/plain, */*'\n }\n};\n\nutils.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) {\n defaults.headers[method] = {};\n});\n\nutils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n defaults.headers[method] = utils.merge(DEFAULT_CONTENT_TYPE);\n});\n\nmodule.exports = defaults;\n", "'use strict';\n\nvar utils = require('./../utils');\nvar defaults = require('./../defaults');\n\n/**\n * Transform the data for a request or a response\n *\n * @param {Object|String} data The data to be transformed\n * @param {Array} headers The headers for the request or response\n * @param {Array|Function} fns A single function or Array of functions\n * @returns {*} The resulting transformed data\n */\nmodule.exports = function transformData(data, headers, fns) {\n var context = this || defaults;\n /*eslint no-param-reassign:0*/\n utils.forEach(fns, function transform(fn) {\n data = fn.call(context, data, headers);\n });\n\n return data;\n};\n", "'use strict';\n\nmodule.exports = function isCancel(value) {\n return !!(value && value.__CANCEL__);\n};\n", "'use strict';\n\nvar utils = require('./../utils');\nvar transformData = require('./transformData');\nvar isCancel = require('../cancel/isCancel');\nvar defaults = require('../defaults');\n\n/**\n * Throws a `Cancel` if cancellation has been requested.\n */\nfunction throwIfCancellationRequested(config) {\n if (config.cancelToken) {\n config.cancelToken.throwIfRequested();\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 * @returns {Promise} The Promise to be fulfilled\n */\nmodule.exports = function dispatchRequest(config) {\n throwIfCancellationRequested(config);\n\n // Ensure headers exist\n config.headers = config.headers || {};\n\n // Transform request data\n config.data = transformData.call(\n config,\n config.data,\n config.headers,\n config.transformRequest\n );\n\n // Flatten headers\n config.headers = utils.merge(\n config.headers.common || {},\n config.headers[config.method] || {},\n config.headers\n );\n\n utils.forEach(\n ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],\n function cleanHeaderConfig(method) {\n delete config.headers[method];\n }\n );\n\n var adapter = 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 response.data,\n response.headers,\n config.transformResponse\n );\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 reason.response.data,\n reason.response.headers,\n config.transformResponse\n );\n }\n }\n\n return Promise.reject(reason);\n });\n};\n", "'use strict';\n\nvar utils = require('../utils');\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 * @returns {Object} New object resulting from merging config2 to config1\n */\nmodule.exports = function mergeConfig(config1, config2) {\n // eslint-disable-next-line no-param-reassign\n config2 = config2 || {};\n var config = {};\n\n var valueFromConfig2Keys = ['url', 'method', 'data'];\n var mergeDeepPropertiesKeys = ['headers', 'auth', 'proxy', 'params'];\n var defaultToConfig2Keys = [\n 'baseURL', 'transformRequest', 'transformResponse', 'paramsSerializer',\n 'timeout', 'timeoutMessage', 'withCredentials', 'adapter', 'responseType', 'xsrfCookieName',\n 'xsrfHeaderName', 'onUploadProgress', 'onDownloadProgress', 'decompress',\n 'maxContentLength', 'maxBodyLength', 'maxRedirects', 'transport', 'httpAgent',\n 'httpsAgent', 'cancelToken', 'socketPath', 'responseEncoding'\n ];\n var directMergeKeys = ['validateStatus'];\n\n function getMergedValue(target, source) {\n if (utils.isPlainObject(target) && utils.isPlainObject(source)) {\n return utils.merge(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 function mergeDeepProperties(prop) {\n if (!utils.isUndefined(config2[prop])) {\n config[prop] = getMergedValue(config1[prop], config2[prop]);\n } else if (!utils.isUndefined(config1[prop])) {\n config[prop] = getMergedValue(undefined, config1[prop]);\n }\n }\n\n utils.forEach(valueFromConfig2Keys, function valueFromConfig2(prop) {\n if (!utils.isUndefined(config2[prop])) {\n config[prop] = getMergedValue(undefined, config2[prop]);\n }\n });\n\n utils.forEach(mergeDeepPropertiesKeys, mergeDeepProperties);\n\n utils.forEach(defaultToConfig2Keys, function defaultToConfig2(prop) {\n if (!utils.isUndefined(config2[prop])) {\n config[prop] = getMergedValue(undefined, config2[prop]);\n } else if (!utils.isUndefined(config1[prop])) {\n config[prop] = getMergedValue(undefined, config1[prop]);\n }\n });\n\n utils.forEach(directMergeKeys, function merge(prop) {\n if (prop in config2) {\n config[prop] = getMergedValue(config1[prop], config2[prop]);\n } else if (prop in config1) {\n config[prop] = getMergedValue(undefined, config1[prop]);\n }\n });\n\n var axiosKeys = valueFromConfig2Keys\n .concat(mergeDeepPropertiesKeys)\n .concat(defaultToConfig2Keys)\n .concat(directMergeKeys);\n\n var otherKeys = Object\n .keys(config1)\n .concat(Object.keys(config2))\n .filter(function filterAxiosKeys(key) {\n return axiosKeys.indexOf(key) === -1;\n });\n\n utils.forEach(otherKeys, mergeDeepProperties);\n\n return config;\n};\n", "'use strict';\n\nvar pkg = require('./../../package.json');\n\nvar validators = {};\n\n// eslint-disable-next-line func-names\n['object', 'boolean', 'number', 'function', 'string', 'symbol'].forEach(function(type, i) {\n validators[type] = function validator(thing) {\n return typeof thing === type || 'a' + (i < 1 ? 'n ' : ' ') + type;\n };\n});\n\nvar deprecatedWarnings = {};\nvar currentVerArr = pkg.version.split('.');\n\n/**\n * Compare package versions\n * @param {string} version\n * @param {string?} thanVersion\n * @returns {boolean}\n */\nfunction isOlderVersion(version, thanVersion) {\n var pkgVersionArr = thanVersion ? thanVersion.split('.') : currentVerArr;\n var destVer = version.split('.');\n for (var i = 0; i < 3; i++) {\n if (pkgVersionArr[i] > destVer[i]) {\n return true;\n } else if (pkgVersionArr[i] < destVer[i]) {\n return false;\n }\n }\n return false;\n}\n\n/**\n * Transitional option validator\n * @param {function|boolean?} validator\n * @param {string?} version\n * @param {string} message\n * @returns {function}\n */\nvalidators.transitional = function transitional(validator, version, message) {\n var isDeprecated = version && isOlderVersion(version);\n\n function formatMessage(opt, desc) {\n return '[Axios v' + pkg.version + '] Transitional option \\'' + opt + '\\'' + desc + (message ? '. ' + message : '');\n }\n\n // eslint-disable-next-line func-names\n return function(value, opt, opts) {\n if (validator === false) {\n throw new Error(formatMessage(opt, ' has been removed in ' + version));\n }\n\n if (isDeprecated && !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\n/**\n * Assert object's properties type\n * @param {object} options\n * @param {object} schema\n * @param {boolean?} allowUnknown\n */\n\nfunction assertOptions(options, schema, allowUnknown) {\n if (typeof options !== 'object') {\n throw new TypeError('options must be an object');\n }\n var keys = Object.keys(options);\n var i = keys.length;\n while (i-- > 0) {\n var opt = keys[i];\n var validator = schema[opt];\n if (validator) {\n var value = options[opt];\n var result = value === undefined || validator(value, opt, options);\n if (result !== true) {\n throw new TypeError('option ' + opt + ' must be ' + result);\n }\n continue;\n }\n if (allowUnknown !== true) {\n throw Error('Unknown option ' + opt);\n }\n }\n}\n\nmodule.exports = {\n isOlderVersion: isOlderVersion,\n assertOptions: assertOptions,\n validators: validators\n};\n", "'use strict';\n\nvar utils = require('./../utils');\nvar buildURL = require('../helpers/buildURL');\nvar InterceptorManager = require('./InterceptorManager');\nvar dispatchRequest = require('./dispatchRequest');\nvar mergeConfig = require('./mergeConfig');\nvar validator = require('../helpers/validator');\n\nvar validators = validator.validators;\n/**\n * Create a new instance of Axios\n *\n * @param {Object} instanceConfig The default config for the instance\n */\nfunction Axios(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 {Object} config The config specific for this request (merged with this.defaults)\n */\nAxios.prototype.request = function request(config) {\n /*eslint no-param-reassign:0*/\n // Allow for axios('example/url'[, config]) a la fetch API\n if (typeof config === 'string') {\n config = arguments[1] || {};\n config.url = arguments[0];\n } else {\n config = config || {};\n }\n\n config = mergeConfig(this.defaults, config);\n\n // Set config.method\n if (config.method) {\n config.method = config.method.toLowerCase();\n } else if (this.defaults.method) {\n config.method = this.defaults.method.toLowerCase();\n } else {\n config.method = 'get';\n }\n\n var transitional = config.transitional;\n\n if (transitional !== undefined) {\n validator.assertOptions(transitional, {\n silentJSONParsing: validators.transitional(validators.boolean, '1.0.0'),\n forcedJSONParsing: validators.transitional(validators.boolean, '1.0.0'),\n clarifyTimeoutError: validators.transitional(validators.boolean, '1.0.0')\n }, false);\n }\n\n // filter out skipped interceptors\n var requestInterceptorChain = [];\n var 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 var responseInterceptorChain = [];\n this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {\n responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);\n });\n\n var promise;\n\n if (!synchronousRequestInterceptors) {\n var chain = [dispatchRequest, undefined];\n\n Array.prototype.unshift.apply(chain, requestInterceptorChain);\n chain = chain.concat(responseInterceptorChain);\n\n promise = Promise.resolve(config);\n while (chain.length) {\n promise = promise.then(chain.shift(), chain.shift());\n }\n\n return promise;\n }\n\n\n var newConfig = config;\n while (requestInterceptorChain.length) {\n var onFulfilled = requestInterceptorChain.shift();\n var onRejected = requestInterceptorChain.shift();\n try {\n newConfig = onFulfilled(newConfig);\n } catch (error) {\n onRejected(error);\n break;\n }\n }\n\n try {\n promise = dispatchRequest(newConfig);\n } catch (error) {\n return Promise.reject(error);\n }\n\n while (responseInterceptorChain.length) {\n promise = promise.then(responseInterceptorChain.shift(), responseInterceptorChain.shift());\n }\n\n return promise;\n};\n\nAxios.prototype.getUri = function getUri(config) {\n config = mergeConfig(this.defaults, config);\n return buildURL(config.url, config.params, config.paramsSerializer).replace(/^\\?/, '');\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: method,\n url: url,\n data: (config || {}).data\n }));\n };\n});\n\nutils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n /*eslint func-names:0*/\n Axios.prototype[method] = function(url, data, config) {\n return this.request(mergeConfig(config || {}, {\n method: method,\n url: url,\n data: data\n }));\n };\n});\n\nmodule.exports = Axios;\n", "'use strict';\n\n/**\n * A `Cancel` is an object that is thrown when an operation is canceled.\n *\n * @class\n * @param {string=} message The message.\n */\nfunction Cancel(message) {\n this.message = message;\n}\n\nCancel.prototype.toString = function toString() {\n return 'Cancel' + (this.message ? ': ' + this.message : '');\n};\n\nCancel.prototype.__CANCEL__ = true;\n\nmodule.exports = Cancel;\n", "'use strict';\n\nvar Cancel = require('./Cancel');\n\n/**\n * A `CancelToken` is an object that can be used to request cancellation of an operation.\n *\n * @class\n * @param {Function} executor The executor function.\n */\nfunction CancelToken(executor) {\n if (typeof executor !== 'function') {\n throw new TypeError('executor must be a function.');\n }\n\n var resolvePromise;\n this.promise = new Promise(function promiseExecutor(resolve) {\n resolvePromise = resolve;\n });\n\n var token = this;\n executor(function cancel(message) {\n if (token.reason) {\n // Cancellation has already been requested\n return;\n }\n\n token.reason = new Cancel(message);\n resolvePromise(token.reason);\n });\n}\n\n/**\n * Throws a `Cancel` if cancellation has been requested.\n */\nCancelToken.prototype.throwIfRequested = function throwIfRequested() {\n if (this.reason) {\n throw this.reason;\n }\n};\n\n/**\n * Returns an object that contains a new `CancelToken` and a function that, when called,\n * cancels the `CancelToken`.\n */\nCancelToken.source = function source() {\n var cancel;\n var token = new CancelToken(function executor(c) {\n cancel = c;\n });\n return {\n token: token,\n cancel: cancel\n };\n};\n\nmodule.exports = CancelToken;\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 * @returns {Function}\n */\nmodule.exports = function spread(callback) {\n return function wrap(arr) {\n return callback.apply(null, arr);\n };\n};\n", "'use strict';\n\n/**\n * Determines whether the payload is an error thrown by Axios\n *\n * @param {*} payload The value to test\n * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false\n */\nmodule.exports = function isAxiosError(payload) {\n return (typeof payload === 'object') && (payload.isAxiosError === true);\n};\n", "'use strict';\n\nvar utils = require('./utils');\nvar bind = require('./helpers/bind');\nvar Axios = require('./core/Axios');\nvar mergeConfig = require('./core/mergeConfig');\nvar defaults = require('./defaults');\n\n/**\n * Create an instance of Axios\n *\n * @param {Object} defaultConfig The default config for the instance\n * @return {Axios} A new instance of Axios\n */\nfunction createInstance(defaultConfig) {\n var context = new Axios(defaultConfig);\n var instance = bind(Axios.prototype.request, context);\n\n // Copy axios.prototype to instance\n utils.extend(instance, Axios.prototype, context);\n\n // Copy context to instance\n utils.extend(instance, context);\n\n return instance;\n}\n\n// Create the default instance to be exported\nvar axios = createInstance(defaults);\n\n// Expose Axios class to allow class inheritance\naxios.Axios = Axios;\n\n// Factory for creating new instances\naxios.create = function create(instanceConfig) {\n return createInstance(mergeConfig(axios.defaults, instanceConfig));\n};\n\n// Expose Cancel & CancelToken\naxios.Cancel = require('./cancel/Cancel');\naxios.CancelToken = require('./cancel/CancelToken');\naxios.isCancel = require('./cancel/isCancel');\n\n// Expose all/spread\naxios.all = function all(promises) {\n return Promise.all(promises);\n};\naxios.spread = require('./helpers/spread');\n\n// Expose isAxiosError\naxios.isAxiosError = require('./helpers/isAxiosError');\n\nmodule.exports = axios;\n\n// Allow use of default import syntax in TypeScript\nmodule.exports.default = axios;\n", "module.exports = require('./lib/axios');", null, null, null, "\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n//# sourceMappingURL=types.js.map", null, "import * as Sentry from '@sentry/node';\n\nSentry.init({\n dsn: 'https://583c5af58c664fd1977d638a693b0ada@sentry-next.wixpress.com/20924',\n tracesSampleRate: 1.0,\n initialScope: {\n tags: {\n fullArtifactId: 'com.wixpress.spartans.wix-mcp'\n }\n }\n});\n", "import './infra/sentry.js';\n\nimport minimist from 'minimist';\nimport { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';\nimport { addDocsTools, DocsTool, VALID_DOCS_TOOLS } from './docs/docs.js';\nimport { addCliTools, CLITool, VALID_CLI_TOOLS } from './cli-tools/cli.js';\nimport {\n logger,\n attachStdErrLogger,\n attachMcpServerLogger,\n attachFileLogger\n} from './infra/logger.js';\nimport { WixMcpServer } from './wix-mcp-server.js';\nimport { addDocsResources } from './resources/docs.js';\n\nconst PUBLIC_TOOLS = [...VALID_DOCS_TOOLS] as const;\nconst EXPERIMENTAL_TOOLS = ['WIX_API', 'CLI_COMMAND'] as const;\ntype Tool = (typeof PUBLIC_TOOLS)[number] | (typeof EXPERIMENTAL_TOOLS)[number];\nexport const DEFAULT_TOOLS: Tool[] = [...VALID_DOCS_TOOLS];\n\nconst parsedArgs = minimist(process.argv.slice(2));\n\nfunction parseExperimentalArg(): Tool[] {\n const experimentalArg: string | undefined = parsedArgs['experimental'];\n if (!experimentalArg) return [];\n\n return experimentalArg\n .split(',')\n .map((t) => t.trim())\n .filter((tool) =>\n EXPERIMENTAL_TOOLS.includes(tool as (typeof EXPERIMENTAL_TOOLS)[number])\n ) as Tool[];\n}\n\nfunction parseToolsArg(): Tool[] {\n const toolsArg: string | undefined = parsedArgs['tools'];\n const experimentalTools = parseExperimentalArg();\n\n if (!toolsArg) {\n // When no tools specified, return both default and experimental tools\n return [...DEFAULT_TOOLS, ...experimentalTools];\n }\n\n const requestedTools = toolsArg.split(',').map((t) => t.trim());\n\n const tools: Tool[] = [\n // Include valid non-experimental tools\n ...(requestedTools.filter((tool) =>\n PUBLIC_TOOLS.includes(tool as (typeof PUBLIC_TOOLS)[number])\n ) as Tool[]),\n // Include enabled experimental tools\n ...experimentalTools\n ];\n\n // Warn about enabled experimental tools\n tools.forEach((tool) => {\n if (\n EXPERIMENTAL_TOOLS.includes(tool as (typeof EXPERIMENTAL_TOOLS)[number])\n ) {\n logger.log(\n `Warning: ${tool} is an experimental tool and may have limited functionality or breaking changes`\n );\n }\n });\n\n return tools;\n}\n\nconst loggerType = parsedArgs['logger'] || 'mcp';\n\nif (loggerType === 'file') {\n attachFileLogger();\n} else {\n // Initially we log to stderr, because MCP server is not connected yet\n // When the server is connected, we attach the MCP server logger\n attachStdErrLogger();\n}\n\nlogger.log('--------------------------------');\nlogger.log('starting WIX MCP server');\nlogger.log('--------------------------------');\nconst server = new WixMcpServer(\n {\n name: 'wix-mcp-server',\n version: '1.0.0'\n },\n {\n capabilities: {\n tools: {},\n prompts: {},\n logging: {},\n resources: {}\n }\n }\n);\n\nconst activeTools = parseToolsArg();\nlogger.log('Active tools:', activeTools);\n\nconst docsTools = activeTools.filter((tool) =>\n VALID_DOCS_TOOLS.includes(tool as DocsTool)\n) as DocsTool[];\nif (docsTools.length > 0) {\n logger.log('Adding docs tools:', docsTools);\n addDocsTools(server, docsTools);\n}\n\nconst isWixOne = parsedArgs['cli'] === 'wix-one';\nconst cliTools = activeTools.filter((tool) =>\n VALID_CLI_TOOLS.includes(tool as CLITool)\n) as CLITool[];\nif (cliTools.length > 0) {\n logger.log('Adding cli tools:', cliTools, 'isWixOne:', isWixOne);\n addCliTools(server, cliTools, isWixOne);\n}\n\ntry {\n const portals = parsedArgs['portals']?.split(',') || [];\n if (portals.length > 0) {\n logger.log('Adding docs resources for portals:', portals);\n await addDocsResources(server, portals);\n }\n} catch (error) {\n logger.error('Error adding docs resources:', error);\n}\n\nlogger.log('Starting server');\nconst transport = new StdioServerTransport();\nlogger.log('Connecting to transport');\nawait server.connect(transport);\nlogger.log('Transport connected');\n\nif (loggerType === 'mcp') {\n // From now on, we log to the MCP server\n attachMcpServerLogger(server);\n}\n", "import { z } from 'zod';\nimport { runSemanticSearchAndFormat } from './semanticSearch.js';\nimport { logger } from '../infra/logger.js';\nimport type { WixMcpServer } from '../wix-mcp-server.js';\nimport { captureException } from '@sentry/node';\nimport { HttpClient } from '@wix/http-client';\n\nexport const VALID_DOCS_TOOLS = [\n 'WDS',\n 'REST',\n 'SDK',\n 'BUILD_APPS',\n 'WIX_HEADLESS',\n 'BUSINESS_SOLUTIONS'\n] as const;\nexport type DocsTool = (typeof VALID_DOCS_TOOLS)[number];\n\nexport const addDocsTools = (\n server: WixMcpServer,\n allowedTools: DocsTool[] = [\n 'WDS',\n 'REST',\n 'SDK',\n 'BUILD_APPS',\n 'WIX_HEADLESS',\n 'BUSINESS_SOLUTIONS'\n ]\n) => {\n // WDS Documentation\n if (allowedTools.includes('WDS')) {\n server.tool(\n 'SearchWixWDSDocumentation',\n [\n 'Searches the Wix Design System Documentation for components and patterns.',\n 'Use this tool when you need to understand or implement UI components and design patterns in a Wix project.',\n 'Search for specific component names, patterns, or UI requirements.',\n \"If you can't find what you need, try to rephrase your search term or use bigger maxResults value.\"\n ].join('\\n'),\n {\n searchTerm: z\n .string()\n .describe(\n 'The search term to search for in the Wix Design System Documentation'\n ),\n maxResults: z\n .number()\n .describe(\n 'The maximum number of results to return, default is 5, max is 15'\n )\n .min(1)\n .max(15)\n .optional()\n .default(10)\n },\n async ({ searchTerm, maxResults }, { panorama }) => {\n try {\n logger.log(`Searching for ${searchTerm} in Wix WDS`);\n\n const result = await runSemanticSearchAndFormat({\n toolName: 'WDS',\n toolParams: {\n searchTerm: searchTerm\n },\n maxResults: Math.max(1, Math.min(maxResults ?? 5, 15))\n });\n\n return {\n content: [\n {\n type: 'text',\n text: result\n }\n ]\n };\n } catch (error: any) {\n panorama.errorMonitor().reportError(error);\n captureException(error, {\n tags: {\n componentId: 'SearchWixWDSDocumentation',\n toolName: 'SearchWixWDSDocumentation'\n }\n });\n logger.error(\n `Error searching for ${searchTerm} in Wix WDS: ${error}`\n );\n return {\n isError: true,\n content: [{ type: 'text', text: 'Error: ' + error.message }]\n };\n }\n }\n );\n }\n\n // REST Documentation\n if (allowedTools.includes('REST')) {\n server.tool(\n 'SearchWixRESTDocumentation',\n [\n 'Searches the official Wix REST API documentation.',\n 'Use this tool whenever you need to to interact with the Wix platform via HTTP requests.',\n \"Specify the API endpoint, resource, or action you need information about (e.g., 'get site details endpoint', 'create data collection', 'update product API', 'REST authentication').\",\n \"If you can't find what you need, try to rephrase your search term or use bigger maxResults value.\"\n ].join('\\n'),\n {\n searchTerm: z\n .string()\n .describe(\n 'The search term to search for in the Wix REST API Documentation'\n ),\n maxResults: z\n .number()\n .describe(\n 'The maximum number of results to return, default is 5, max is 15'\n )\n .min(1)\n .max(15)\n .optional()\n .default(10)\n },\n async ({ searchTerm, maxResults }, { panorama }) => {\n try {\n logger.log(`Searching for ${searchTerm} in Wix REST API`);\n\n const result = await runSemanticSearchAndFormat({\n toolName: 'REST',\n toolParams: {\n searchTerm: searchTerm\n },\n maxResults: Math.max(1, Math.min(maxResults ?? 5, 15)),\n linesInEachResult: 15\n });\n\n return {\n content: [\n {\n type: 'text',\n text: result\n },\n {\n type: 'text',\n text: 'Next, you MUST use the ReadFullDocsArticle tool if you want to read the full documentation for a specific article or method.'\n }\n ]\n };\n } catch (error: any) {\n panorama.errorMonitor().reportError(error);\n captureException(error, {\n tags: {\n componentId: 'SearchWixRESTDocumentation',\n toolName: 'SearchWixRESTDocumentation'\n }\n });\n logger.error(\n `Error searching for ${searchTerm} in Wix REST API: ${error}`\n );\n return {\n isError: true,\n content: [{ type: 'text', text: 'Error: ' + error.message }]\n };\n }\n }\n );\n }\n\n if (allowedTools.includes('BUSINESS_SOLUTIONS')) {\n server.tool(\n 'WixBusinessFlowsDocumentation',\n [\n 'This tool provides step-by-step recipes for setting up complex Wix business solutions that involve multiple API calls.',\n 'It excels at guiding the creation of features like booking systems with payments.',\n 'For example, it can guide the setup of a service in Wix Bookings where customers can pay using Wix Payments, such as creating a bookable yoga class',\n 'It searches the Wix Business Solutions documentation for these integrated workflows involving services, bookings, payments, stores, blogs, and more.',\n 'This tool returns a list of articles that are potentially relevant to the input search term.',\n '**IMPORTANT NOTES:**',\n '1. Before attempting to implement a multi step API calls on Wix, YOU MUST TRY THIS TOOL FIRST.',\n '2. Out of the returned list of articles that you will receive, you MUST select the most relevant one and use the ReadFullDocsArticle tool to fetch it.'\n ].join('\\n'),\n {\n searchTerm: z\n .string()\n .describe(\n 'The search term for the required sample flow (e.g. \"setup a new business\")'\n ),\n maxResults: z\n .number()\n .describe(\n 'The maximum number of results to return, default is 5, max is 15'\n )\n .min(1)\n .max(15)\n .optional()\n .default(5)\n },\n async ({ searchTerm, maxResults }, { panorama }) => {\n try {\n logger.log(`Searching for ${searchTerm} in Wix Sample Flows`);\n\n const result = await runSemanticSearchAndFormat({\n toolName: 'BUSINESS_SOLUTIONS',\n toolParams: {\n searchTerm:\n '**RECIPE**: Business Recipes - full setup flow for::: ' +\n searchTerm\n },\n maxResults: Math.max(1, Math.min(maxResults ?? 5, 15))\n });\n\n return {\n content: [\n {\n type: 'text',\n text: result\n },\n {\n type: 'text',\n text: `Out of the included list of articles, you **MUST** select the one that is most relevant to the user's request and use the ReadFullDocsArticle tool to fetch it.`\n }\n ]\n };\n } catch (error: any) {\n panorama.errorMonitor().reportError(error);\n captureException(error, {\n tags: {\n componentId: 'SearchWixSampleFlowsDocumentation',\n toolName: 'SearchWixSampleFlowsDocumentation'\n }\n });\n logger.error(\n `Error searching for ${searchTerm} in Wix Sample Flows: ${error}`\n );\n return {\n isError: true,\n content: [{ type: 'text', text: 'Error: ' + error.message }]\n };\n }\n }\n );\n }\n\n // SDK Documentation\n if (allowedTools.includes('SDK')) {\n server.tool(\n 'SearchWixSDKDocumentation',\n [\n 'Searches the official Wix javascript SDK documentation.',\n 'Use this tool whenever you need to write or modify Wix related SDK code.',\n \"Specify the SDK module, function, or feature you need information about (e.g., 'how to query all items from a data collection?', 'how to use wix-stores-backend', 'authentication methods in the SDK').\",\n \"If you can't find what you need, try to rephrase your search term or use bigger maxResults value.\"\n ].join('\\n'),\n {\n searchTerm: z\n .string()\n .describe(\n 'The search term to search for in the Wix SDK Documentation'\n ),\n maxResults: z\n .number()\n .describe(\n 'The maximum number of results to return, default is 5, max is 15'\n )\n .min(1)\n .max(15)\n .optional()\n .default(5)\n },\n async ({ searchTerm, maxResults }, { panorama }) => {\n try {\n logger.log(`Searching for ${searchTerm} in Wix SDK`);\n\n panorama\n .transaction('SearchWixSDKDocumentation')\n .start({ maxResults });\n const result = await runSemanticSearchAndFormat({\n toolName: 'SDK',\n toolParams: {\n searchTerm: searchTerm\n },\n maxResults: Math.max(1, Math.min(maxResults ?? 5, 15)),\n linesInEachResult: 15\n });\n panorama\n .transaction('SearchWixSDKDocumentation')\n .finish({ maxResults });\n\n return {\n content: [\n {\n type: 'text',\n text: result\n },\n {\n type: 'text',\n text: 'Next, you MUST use ReadFullDocsArticle tool if you want to read full documentation for a specific article or method.'\n }\n ]\n };\n } catch (error: any) {\n panorama.errorMonitor().reportError(error);\n captureException(error, {\n tags: {\n componentId: 'SearchWixSDKDocumentation',\n toolName: 'SearchWixSDKDocumentation'\n }\n });\n logger.error(\n `Error searching for ${searchTerm} in Wix SDK: ${error}`\n );\n return {\n isError: true,\n content: [{ type: 'text', text: 'Error: ' + error.message }]\n };\n }\n }\n );\n }\n\n // Build Apps Documentation\n if (allowedTools.includes('BUILD_APPS')) {\n server.tool(\n 'SearchBuildAppsDocumentation',\n [\n 'Searches the official Build Apps documentation.',\n 'Use this tool when you need to understand or implement Wix CLI applications related code.',\n 'The search term should be a specific Wix CLI command or specific topic related to Wix CLI applications or its ecosystem (e.g. deployment, creating new extensions etc).',\n \"If you can't find what you need, try to rephrase your search term or use bigger maxResults value.\"\n ].join('\\n'),\n {\n searchTerm: z\n .string()\n .describe(\n 'The search term to search for in the Build Apps Documentation'\n ),\n maxResults: z\n .number()\n .describe(\n 'The maximum number of results to return, default is 5, max is 15'\n )\n .min(1)\n .max(15)\n .optional()\n .default(5)\n },\n async ({ searchTerm, maxResults }, { panorama }) => {\n try {\n logger.log(`Searching for ${searchTerm} in Build Apps`);\n\n const result = await runSemanticSearchAndFormat({\n toolName: 'BUILD_APPS',\n toolParams: {\n searchTerm: `wix cli docs for ${searchTerm}`\n },\n maxResults: Math.max(1, Math.min(maxResults ?? 5, 15))\n });\n\n return {\n content: [\n {\n type: 'text',\n text: result\n }\n ]\n };\n } catch (error: any) {\n panorama.errorMonitor().reportError(error);\n captureException(error, {\n tags: {\n componentId: 'SearchBuildAppsDocumentation',\n toolName: 'SearchBuildAppsDocumentation'\n }\n });\n logger.error(\n `Error searching for ${searchTerm} in Build Apps: ${error}`\n );\n return {\n content: [{ type: 'text', text: 'Error: ' + error.message }]\n };\n }\n }\n );\n }\n\n // Wix Headless Documentation\n if (allowedTools.includes('WIX_HEADLESS')) {\n server.tool(\n 'SearchWixHeadlessDocumentation',\n [\n 'Searches the official Wix Headless Documentation.',\n 'Use this tool when you need to understand or implement Headless related code.',\n 'The search term should be a specific Wix Headless topic or feature you need information about.',\n \"If you can't find what you need, try to rephrase your search term or use bigger maxResults value.\"\n ].join('\\n'),\n {\n searchTerm: z\n .string()\n .describe(\n 'The search term to search for in the Headless Documentation'\n ),\n maxResults: z\n .number()\n .describe(\n 'The maximum number of results to return, default is 5, max is 15'\n )\n .min(1)\n .max(15)\n .optional()\n .default(5)\n },\n async ({ searchTerm, maxResults }, { panorama }) => {\n try {\n logger.log(`Searching for ${searchTerm} in Headless`);\n\n const result = await runSemanticSearchAndFormat({\n toolName: 'WIX_HEADLESS',\n toolParams: {\n searchTerm: searchTerm\n },\n maxResults: Math.max(1, Math.min(maxResults ?? 5, 15))\n });\n\n return {\n content: [\n {\n type: 'text',\n text: result\n }\n ]\n };\n } catch (error: any) {\n panorama.errorMonitor().reportError(error);\n captureException(error, {\n tags: {\n componentId: 'SearchWixHeadlessDocumentation',\n toolName: 'SearchWixHeadlessDocumentation'\n }\n });\n logger.error(\n `Error searching for ${searchTerm} in Wix Headless: ${error}`\n );\n return {\n content: [{ type: 'text', text: 'Error: ' + error.message }]\n };\n }\n }\n );\n }\n\n server.tool(\n 'ReadFullDocsArticle',\n [\n 'Fetches the full Wix docs article or method article.',\n 'Use this tool when you read a summary of a docs article or method article, you have the docs url and want to read the full article.'\n ].join('\\n'),\n {\n articleUrl: z\n .string()\n .describe(\n 'The URL of the docs article or method article to fetch. Should be something like https://dev.wix.com/docs/.../.../...'\n )\n },\n async ({ articleUrl }, { httpClient }) => {\n try {\n const articleContent = await fetchArticleContent(\n httpClient,\n articleUrl,\n 'article'\n );\n\n if (!articleContent) {\n throw new Error('Article content is empty');\n }\n\n return {\n content: [\n {\n type: 'text',\n text: articleContent\n },\n {\n type: 'text',\n text: [\n '---',\n 'Next, if you are dealing with a method - you MUST call ReadFullDocsMethodSchema tool - it will give you the full request schema for the method.'\n ].join('\\n')\n }\n ]\n };\n } catch (error: any) {\n logger.error(\n `Error fetching article content or method schema for ${articleUrl}: ${error}`\n );\n return {\n content: [\n {\n type: 'text',\n text: 'Could not fetch article content, you should try completing the task without it.'\n }\n ]\n };\n }\n }\n );\n\n server.tool(\n 'ReadFullDocsMethodSchema',\n [\n 'Fetches the full method schema for a given method. Always use it before calling the method.',\n 'This will give you the entire request/response schema with all the fields and their descriptions.'\n ].join('\\n'),\n {\n articleUrl: z\n .string()\n .describe(\n 'The URL of the documentation to fetch. Should be something like https://dev.wix.com/docs/.../.../...'\n )\n },\n async ({ articleUrl }, { httpClient }) => {\n try {\n const articleContent = await fetchArticleContent(\n httpClient,\n articleUrl,\n 'methodSchema'\n );\n\n if (!articleContent) {\n throw new Error('Method schema is empty');\n }\n\n return {\n content: [\n {\n type: 'text',\n text: articleContent\n }\n ]\n };\n } catch (error: any) {\n logger.error(\n `Error fetching method schema for ${articleUrl}: ${error}`\n );\n return {\n content: [\n {\n type: 'text',\n text: 'Could not fetch method schema, you should try completing the task without it.'\n }\n ]\n };\n }\n }\n );\n};\n\nasync function fetchArticleContent(\n httpClient: HttpClient,\n articleUrl: string,\n mode: 'article' | 'methodSchema'\n) {\n // https://dev.wix.com/digor/api/get-article-content?articleUrl=https://dev.wix.com/docs/rest/business-solutions/blog/draft-posts/create-draft-post&schema=true\n const url = new URL(`https://dev.wix.com/digor/api/get-article-content`);\n url.searchParams.set('articleUrl', articleUrl);\n const schema = mode === 'methodSchema' ? 'true' : 'false';\n url.searchParams.set('schema', schema);\n\n logger.log(`Fetching resource from docs ${url.toString()}`);\n\n const { data } = await httpClient.get(url.toString());\n\n logger.log(`Fetched resource from docs: ${data.articleContent}`);\n\n return data.articleContent;\n}\n", "import fs from 'fs/promises';\nimport path from 'path';\nimport { homedir } from 'os';\nimport { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';\n\ninterface Logger {\n log(...data: unknown[]): void;\n error(...data: unknown[]): void;\n}\n\nconst createNullLogger = (): Logger => {\n return {\n log: () => {},\n error: () => {}\n };\n};\n\nconst createStdErrLogger = (): Logger => {\n return {\n log: (data) => {\n console.error(data);\n },\n error: (data) => {\n console.error(data);\n }\n };\n};\n\nconst createMcpServerLogger = (server: McpServer): Logger => {\n return {\n log: (data) => {\n server.server.sendLoggingMessage({ level: 'info', data });\n },\n error: (data) => {\n server.server.sendLoggingMessage({ level: 'error', data });\n }\n };\n};\n\nconst createFileLogger = (): Logger => {\n const filePath = path.join(homedir(), 'wix-mcp-log.txt');\n const date = new Date()\n .toLocaleString('en-US', { timeZone: 'Asia/Jerusalem' })\n .replace(/,/g, '');\n\n return {\n log: (...data) => {\n const message = `[info] ${date} - ${data.join(' ')}`;\n fs.appendFile(filePath, `${message}\\n`);\n },\n error: (...data) => {\n const message = `[error] ${date} - ${data.join(' ')}`;\n fs.appendFile(filePath, `${message}\\n`);\n }\n };\n};\n\nexport const logger = createNullLogger();\n\nexport const attachMcpServerLogger = (server: McpServer) => {\n const mcpLogger = createMcpServerLogger(server);\n logger.log = mcpLogger.log;\n logger.error = mcpLogger.error;\n};\n\nexport const attachStdErrLogger = () => {\n const stdErrLogger = createStdErrLogger();\n logger.log = stdErrLogger.log;\n logger.error = stdErrLogger.error;\n};\n\nexport const attachFileLogger = () => {\n const fileLogger = createFileLogger();\n logger.log = fileLogger.log;\n logger.error = fileLogger.error;\n};\n", "import type { DocsTool } from './docs.js';\nimport { logger } from '../infra/logger.js';\n\nexport const MAX_CONTENT_LENGTH = 10000;\nexport const DEFAULT_MAX_RESULTS = 10;\n\nconst runSemanticSearch = async (\n toolName: DocsTool,\n toolParams: Record<string, string>,\n maxResults: number = 20,\n rerank: boolean = false\n) => {\n const startTime = new Date().getTime();\n\n const url = new URL(\n `https://www.wixapis.com/mcp-docs-search/v1/search?maxResults=${maxResults}&rerank=${rerank}`\n );\n\n if (toolName === 'SDK') {\n url.searchParams.append('kbName', 'SDK_SCHEMAS_KB_ID');\n url.searchParams.append('kbName', 'SDK_DOCS_KB_ID');\n } else if (toolName === 'REST' || toolName === 'BUSINESS_SOLUTIONS') {\n if (toolName === 'REST') {\n url.searchParams.append('kbName', 'REST_METHODS_KB_ID');\n }\n url.searchParams.append('kbName', 'REST_DOCS_KB_ID');\n url.searchParams.append('kbName', 'MCP_REST_RECIPES_KB_ID');\n } else if (toolName === 'WDS') {\n url.searchParams.append('kbName', 'WDS_DOCS_KB_ID');\n } else if (toolName === 'BUILD_APPS') {\n url.searchParams.append('kbName', 'BUILD_APPS_KB_ID');\n } else if (toolName === 'WIX_HEADLESS') {\n url.searchParams.append('kbName', 'HEADLESS_KB_ID');\n }\n\n for (const [key, value] of Object.entries(toolParams)) {\n url.searchParams.append(key, value);\n }\n\n logger.log('Running RAG search', url.toString());\n\n const response = await fetch(url.toString(), {\n headers: {\n 'Content-Type': 'application/json',\n 'x-time-budget': '180000',\n 'x-wix-time-budget': '180000'\n }\n });\n\n if (!response.ok) {\n logger.error(`Failed to run rag search: ${response.statusText}`);\n throw new Error(`Failed to run rag search: ${response.statusText}`);\n }\n\n const data = await response.json();\n const endTime = new Date().getTime();\n const timeTaskFormatted = (endTime - startTime) / 1000;\n\n logger.log(\n 'Ran RAG search successfully with params',\n JSON.stringify(toolParams),\n timeTaskFormatted,\n typeof data\n );\n\n return data?.results;\n};\n\nconst getContentFromChunkedContent = (chunkedContent: string[]) => {\n let content = '';\n for (const chunk of chunkedContent) {\n if (content.length + chunk.length > MAX_CONTENT_LENGTH) {\n break;\n }\n content += '\\n\\n---\\n\\n' + chunk;\n }\n return content;\n};\n\nconst formatResultsContent = (\n resultsFromKbs: Record<\n string,\n {\n results: {\n entry: {\n content: string;\n chunkedContent: string[];\n };\n scoresInfo: {\n overallMatchScore: number;\n };\n }[];\n }\n >,\n maxResults: number,\n linesInEachResult: number | undefined = undefined\n): string => {\n // First, take the results from all KBs and sort them by overallMatchScore\n const allResults = Object.entries(resultsFromKbs)\n .map(([, { results }]) => results)\n .flat();\n\n if (allResults.length === 0) {\n throw new Error('No result from search');\n }\n\n const sortedResults = allResults.sort(\n (a, b) => b.scoresInfo.overallMatchScore - a.scoresInfo.overallMatchScore\n );\n\n // Take the top maxResults results\n const topResults = sortedResults.slice(0, maxResults);\n\n // Concatenate the content of the top results\n const concatenatedContent = topResults\n .map((result) => {\n let newContent = result.entry.content;\n\n if (linesInEachResult) {\n const totalLines = newContent.split('\\n').length;\n const linesToTake = Math.min(linesInEachResult, totalLines);\n newContent = newContent.split('\\n').slice(0, linesToTake).join('\\n');\n const moreLines = totalLines - linesToTake;\n const moreLinesText =\n moreLines > 0 ? `\\n\\n... ${moreLines} more lines ...` : '';\n newContent = `${newContent}${moreLinesText}`;\n }\n\n return {\n ...result,\n entry: {\n ...result.entry,\n content: newContent\n }\n };\n })\n .map((result) => {\n const content = result.entry.content;\n const chunkedContent = result.entry.chunkedContent;\n\n if (content.length > MAX_CONTENT_LENGTH) {\n logger.log(`Content is too long, using chunked content`, {\n contentLength: content.length,\n chunkedContentLength: chunkedContent.length\n });\n return getContentFromChunkedContent(chunkedContent);\n }\n return content;\n })\n .join('\\n\\n---\\n\\n');\n\n return concatenatedContent;\n};\n\nexport const runSemanticSearchAndFormat = async ({\n toolName,\n toolParams,\n maxResults = DEFAULT_MAX_RESULTS,\n rerank,\n linesInEachResult\n}: {\n toolName: DocsTool;\n toolParams: Record<string, string>;\n maxResults?: number;\n rerank?: boolean;\n linesInEachResult?: number | undefined;\n}) => {\n const results = await runSemanticSearch(\n toolName,\n toolParams,\n maxResults,\n rerank\n );\n const maxResultsToUse = Math.min(maxResults, DEFAULT_MAX_RESULTS);\n return formatResultsContent(results, maxResultsToUse, linesInEachResult);\n};\n", "import { z } from 'zod';\nimport {\n getCliAuthTokenForSiteId,\n getSiteIdFromCliAppConfig\n} from './utils.js';\nimport { logger } from '../infra/logger.js';\nimport { execa } from 'execa';\nimport { mockInteractiveGenerateCommandTool } from '../interactive-command-tools/interactive-command-utils.js';\nimport { handleWixAPIResponse } from '../tool-utils.js';\nimport { WixMcpServer } from '../wix-mcp-server.js';\n\nexport const VALID_CLI_TOOLS = [\n 'WIX_API',\n 'CLI_COMMAND',\n 'CLI_COMMAND_INTERACTIVE_MODE'\n] as const;\nexport type CLITool = (typeof VALID_CLI_TOOLS)[number];\n\nexport function addCliTools(\n server: WixMcpServer,\n allowedTools: CLITool[] = [\n 'WIX_API',\n 'CLI_COMMAND',\n 'CLI_COMMAND_INTERACTIVE_MODE'\n ],\n isWixOne: boolean = false\n) {\n if (allowedTools.includes('WIX_API')) {\n server.tool(\n 'CallWixAPI',\n 'Call Wix apis on an app. Use this to create, read, update, and delete data and other Wix entities in your Wix app.',\n {\n appPath: z\n .string()\n .describe(\n 'The dir path to the wix backoffice cli app to call the api on behalf of. should have {appPath}/.wix/app.config.json file with a siteId field. if passed, siteId is not required'\n )\n .optional(), // should we have appPath or siteId here? (appPath encapsulates this more since we can get the siteId from the appPath then perform the call)\n siteId: z\n .string()\n .describe(\n 'The siteId of the wix backoffice cli app to call the api on behalf of. You can find the siteId in the {appPath}/.wix/app.config.json file. You can pass any other siteId if you want to call the api on behalf of a different site. If passed, appPath is not required. if not passed, the appPath must be provided.'\n )\n .optional(),\n url: z\n .string()\n .describe(\n 'The url of the api to call - usually you get this from the Wix REST docs or from the conversation context'\n ),\n method: z\n .string()\n .describe(\n 'The HTTP method to use for the API call (e.g. GET, POST, PUT, DELETE)'\n ),\n body: z\n .string()\n .optional()\n .describe(\n 'A string representing of a valid JSON object to describe the body of the request'\n )\n },\n async ({ method, url, body, appPath, siteId }, { httpClient }) => {\n logger.log(\n `Calling Wix API: ${appPath} ${siteId} ${method} ${url}, body: ${JSON.stringify(\n body\n )}`\n );\n\n if (!siteId && !appPath) {\n return {\n content: [\n {\n type: 'text',\n text: 'Either appPath or siteId must be provided'\n }\n ]\n };\n }\n\n let siteIdToUse = siteId;\n if (!siteIdToUse && appPath) {\n siteIdToUse = getSiteIdFromCliAppConfig(appPath);\n }\n if (!siteIdToUse) {\n return {\n content: [\n {\n type: 'text',\n text: 'Either appPath or siteId must be provided'\n }\n ]\n };\n }\n\n logger.log(`Site ID for Wix API call: ${siteIdToUse}`);\n const authorization = getCliAuthTokenForSiteId(siteIdToUse);\n if (!authorization) {\n return {\n content: [\n {\n type: 'text',\n text: 'Failed to get authorization token. Please check your siteId and appPath'\n }\n ]\n };\n }\n\n try {\n const response = await httpClient.request({\n url,\n method: method as any,\n headers: {\n Authorization: authorization,\n 'wix-site-id': siteIdToUse,\n ...(body ? { 'Content-Type': 'application/json' } : {})\n },\n data: method === 'GET' ? undefined : body\n });\n\n const responseData = await handleWixAPIResponse(response);\n\n return {\n content: [\n {\n type: 'text',\n text: `Wix API call successful: ${JSON.stringify(responseData)}`\n }\n ]\n };\n } catch (error) {\n logger.error(`Failed to call Wix API: ${error}`);\n throw new Error(`Failed to call Wix API: ${error}`);\n }\n }\n );\n }\n\n if (allowedTools.includes('CLI_COMMAND_INTERACTIVE_MODE')) {\n server.tool(\n 'RunWixCliCommandInteractiveMode',\n `Executes Wix CLI commands for Wix app development and management.\n Use this tool to run commands like 'wix app generate' (adds new extensions), 'wix app build' (builds your app), 'wix app preview' (creates shareable preview), 'wix app release' (releases a new version of your app), and more.\n\n IMPORTANT: Before using this tool, check if the command is mapped in package.json scripts:\n * Use this tool for npm/yarn scripts that map to Wix CLI commands as well.\n * Do not use this tool for starting the local development server.\n \n Before using this tool, you MUST search the Wix documentation for the command you want to run.\n \n DO NOT USE THIS TOOL FOR ANY OTHER PURPOSE. IT IS ONLY FOR WIX CLI COMMANDS.`,\n {\n appPath: z\n .string()\n .describe('The full path to the Wix CLI app to run the command on'),\n extensionType: z\n .enum(['DASHBOARD_PAGE', 'BACKEND_EVENT'])\n .optional()\n .describe(\n 'The type of extension to generate. You MUST provide this for commands that generate extensions.'\n ),\n searchedDocs: z\n .boolean()\n .describe(\n 'Whether you have already searched the Wix documentation for the command you want to run.'\n ),\n command: z\n .string()\n .min(1, 'Command cannot be empty')\n .max(1000, 'Command is too long')\n .describe(\n \"The Wix CLI command to execute (e.g. 'wix app generate', 'wix app build', 'wix app preview', 'wix app release', etc.), or a npm/yarn script that maps to a Wix CLI command (e.g. 'npm run generate', 'yarn build', etc.).\"\n )\n },\n async ({ command, appPath, extensionType }) => {\n command = command.replace('wix app generate', 'npm run generate');\n if (command.includes('generate') && !extensionType) {\n return {\n content: [\n {\n type: 'text' as const,\n text: \"Error: You must provide an extension type for the 'generate' command.\"\n }\n ],\n isError: true\n };\n }\n\n logger.log(\n `RunWixCliCommand: command: ${command}, appPath: ${appPath}, extensionType: ${extensionType}`\n );\n\n try {\n logger.log(`Executing Wix CLI command: ${command}`);\n const commandParts = command.split(' ');\n const commandName = commandParts[0];\n const commandArgs = commandParts.slice(1);\n\n // Execute with timeout\n const subprocess = execa(commandName, commandArgs, {\n cwd: appPath,\n extendEnv: true,\n env: {\n ...process.env,\n PATH: process.env.PATH,\n WIX_CLI_TEST_OVERRIDES: JSON.stringify({\n inkDebug: true\n })\n },\n timeout: 5 * 60 * 1000, // 5 minute timeout\n maxBuffer: 10 * 1024 * 1024 // 10MB output limit\n });\n\n logger.log(`RunWixCliCommand: pid: ${subprocess.pid}`);\n\n if (!subprocess.pid) {\n let spawnError;\n\n // make sure spawnError is defined by waiting for the error event\n if (!spawnError) {\n await new Promise((resolve) => {\n subprocess.on('error', (err) => {\n spawnError = err;\n resolve({ spawnError });\n });\n });\n }\n\n return {\n content: [\n {\n type: 'text' as const,\n text: `Failed to start the Wix CLI command process. This usually indicates a problem with the command or the environment. Are you sure Wix CLI is installed globally?\\n\\nCommand: ${command}\\n\\n${spawnError}`\n }\n ]\n };\n }\n\n const { stdin, stdout, stderr } = subprocess;\n\n if (extensionType) {\n const output = await mockInteractiveGenerateCommandTool({\n extensionType,\n stdin,\n stdout\n });\n\n logger.log(`RunWixCliCommand: output: ${output}`);\n\n return {\n content: [{ type: 'text' as const, text: output }]\n };\n }\n\n const stringifyStdout = JSON.stringify(stdout);\n const stringifyStderr = JSON.stringify(stderr);\n\n return {\n content: [\n { type: 'text' as const, text: stringifyStdout },\n ...(stringifyStderr\n ? [{ type: 'text' as const, text: `Error: ${stringifyStderr}` }]\n : [])\n ]\n };\n } catch (error) {\n logger.error(`Error executing Wix CLI command: ${error}`);\n\n return {\n content: [{ type: 'text' as const, text: `Error: ${error}` }],\n isError: true\n };\n }\n }\n );\n }\n\n if (allowedTools.includes('CLI_COMMAND')) {\n server.tool(\n 'RunWixCliCommand',\n `Executes Wix CLI commands for Wix app development and management.\n Use this tool to run commands like 'wix app generate' (adds new extensions), 'wix app build' (builds your app), 'wix app preview' (creates shareable preview), 'wix app release' (releases a new version of your app), and more.\n\n IMPORTANT: Before using this tool, check if the command is mapped in package.json scripts:\n * Use this tool for npm/yarn scripts that map to Wix CLI commands as well.\n * Do not use this tool for starting the local development server.\n \n Before using this tool, you MUST search the Wix documentation for the command you want to run.\n \n DO NOT USE THIS TOOL FOR ANY OTHER PURPOSE. IT IS ONLY FOR WIX CLI COMMANDS.`,\n {\n appPath: z\n .string()\n .describe('The full path to the Wix CLI app to run the command on.'),\n extensionType: z\n .enum([\n 'dashboard-page',\n 'dashboard-plugin',\n 'dashboard-menu-plugin',\n 'dashboard-modal',\n 'web-method',\n 'api-route',\n 'event',\n 'service-plugin'\n ])\n .optional()\n .describe(\n 'The type of extension to generate. You MUST provide this for commands that generate extensions.'\n ),\n extensionName: z\n .string()\n .optional()\n .describe(\n 'The name of the extension to generate, e.g. My Dashboard Page. You MUST provide this for commands that generate extensions.'\n ),\n searchedDocs: z\n .boolean()\n .describe(\n 'Whether you have already searched the Wix documentation for the command you want to run.'\n ),\n command: z\n .string()\n .min(1, 'Command cannot be empty')\n .max(1000, 'Command is too long')\n .describe(\n \"The Wix CLI command to execute (e.g. 'wix app generate', 'wix app build', 'wix app preview', 'wix app release', etc.), or a script that maps to a Wix CLI command (e.g. 'npm run generate', 'yarn generate', etc.).\"\n )\n },\n async ({ command, appPath, extensionType, extensionName }) => {\n logger.log(\n `RunWixCliCommand: command: ${command}, appPath: ${appPath}, extensionType: ${extensionType}, extensionName: ${extensionName}`\n );\n let commandName = '';\n let commandArgs = [];\n\n if (command.includes('generate')) {\n if (!extensionType) {\n return {\n content: [\n {\n type: 'text' as const,\n text: \"Error: You must provide an extension type for the 'generate' command.\"\n }\n ],\n isError: true\n };\n }\n if (!extensionName) {\n return {\n content: [\n {\n type: 'text' as const,\n text: \"Error: You must provide an extension name for the 'generate' command.\"\n }\n ],\n isError: true\n };\n }\n // Format generate command with proper arguments\n commandName = 'npx';\n commandArgs = [\n isWixOne ? 'wix-one' : 'wix',\n 'app',\n 'generate',\n '-t',\n extensionType,\n '-n',\n extensionName,\n '--json'\n ];\n } else {\n const commandParts = command.split(' ');\n commandName = commandParts[0];\n commandArgs = commandParts.slice(1);\n }\n\n if (isWixOne && commandName === 'wix') {\n commandName = 'wix-one';\n }\n\n try {\n logger.log(\n `Executing Wix CLI command: ${commandName} ${commandArgs.join(' ')}`\n );\n\n // Execute with timeout\n const { stdout, stderr, exitCode } = await execa(\n commandName,\n commandArgs,\n {\n cwd: appPath,\n extendEnv: true,\n env: {\n ...process.env\n },\n timeout: 5 * 60 * 1000, // 5 minute timeout\n maxBuffer: 10 * 1024 * 1024 // 10MB output limit\n }\n );\n\n if (exitCode !== 0) {\n return {\n content: [{ type: 'text' as const, text: `Error: ${stderr}` }],\n isError: true\n };\n }\n\n logger.log(`RunWixCliCommand: stdout: ${stdout}`);\n logger.log(`RunWixCliCommand: stderr: ${stderr}`);\n\n return {\n content: [\n { type: 'text' as const, text: stdout },\n ...(stderr\n ? [{ type: 'text' as const, text: `Error: ${stderr}` }]\n : [])\n ]\n };\n } catch (error) {\n logger.error(`Error executing Wix CLI command: ${error}`);\n\n return {\n content: [{ type: 'text' as const, text: `Error: ${error}` }],\n isError: true\n };\n }\n }\n );\n }\n}\n", "import { existsSync, readFileSync } from 'fs';\nimport { homedir } from 'os';\nimport path from 'path';\n\nexport function getCliAuthTokenForSiteId(siteIdOrAccountsFileName: string) {\n // check if the api-key.json file exists:\n const apiKeyFileName = path.join(homedir(), `.wix/auth/api-key.json`);\n const apiKeyFileExists = existsSync(apiKeyFileName);\n\n if (apiKeyFileExists) {\n const apiKeyData = JSON.parse(readFileSync(apiKeyFileName, 'utf8'));\n return (apiKeyData.token || apiKeyData.accessToken) as string;\n }\n\n const siteTokenFileName = path.join(\n homedir(),\n `.wix/auth/${siteIdOrAccountsFileName}.json`\n );\n\n // check if the site token file exists:\n const siteTokenFileExists = existsSync(siteTokenFileName);\n if (siteTokenFileExists) {\n const authData = JSON.parse(readFileSync(siteTokenFileName, 'utf8'));\n return (authData.accessToken || authData.token) as string;\n }\n\n throw new Error(\n 'No site token or api key found. You need to authenticate with Wix CLI first.'\n );\n}\n\n// f\"first get the site id - its in the `{backoffice_app_dir}/.wix/app.config.json` file, it has a json object with a siteId field\",\nexport function getSiteIdFromCliAppConfig(appPath: string) {\n const appConfig = JSON.parse(\n readFileSync(path.join(appPath, '.wix/app.config.json'), 'utf8')\n );\n return appConfig.siteId;\n}\n", "import Stream from 'node:stream';\nimport stripAnsi from 'strip-ansi';\nimport eventually from './eventually.js';\nimport { logger } from '../infra/logger.js';\n\nexport function handleStdout(stdout: Stream.Readable) {\n let checkStartIndex = 0;\n const lines: string[] = [];\n\n logger.log(`handleStdout: stdout: ${stdout}`);\n\n stdout.on('data', (chunk) => {\n logger.log(`handleStdout: chunk: ${chunk}`);\n // log(`create-cli: chunk: ${chunk}`);\n lines.push(...stripAnsi(chunk.toString()).split('\\n'));\n });\n\n return {\n async waitForText(\n match: string | RegExp,\n { timeout = 2 * 60 * 1000 } = {}\n ): Promise<string | undefined> {\n return eventually(\n () => {\n const matchedIndex = lines.findIndex((line, index) => {\n if (index < checkStartIndex) {\n return false;\n }\n if (typeof match === 'string') {\n return line.includes(match);\n }\n return line.match(match);\n });\n checkStartIndex = matchedIndex >= 0 ? matchedIndex + 1 : lines.length;\n if (matchedIndex !== -1) {\n return lines[matchedIndex];\n }\n const message = `Could not match text in output: ${match}`;\n throw new Error(message);\n },\n { timeout }\n );\n },\n async waitForAndCallback(\n matchesAndCallbacks: {\n match: string;\n callback: (stop: () => void) => void;\n }[],\n { timeout = 2 * 60 * 1000 } = {}\n ) {\n let stopResolve: any;\n const stopPromise = new Promise((resolve) => {\n stopResolve = resolve;\n });\n\n // Keep track of matches we've already processed\n const processedMatches = new Set<string>();\n\n const waitPromise = eventually(\n () => {\n //log(`create-cli: waiting for ${matchesAndCallbacks.length - processedMatches.size} matches`);\n for (const { match, callback } of matchesAndCallbacks) {\n // Skip if we've already processed this match\n if (processedMatches.has(match)) {\n continue;\n }\n\n if (lines.some((line) => line.includes(match))) {\n logger.log(`create-cli: found match ${match}`);\n // Add to processed matches so we don't match it again\n processedMatches.add(match);\n callback(() => {\n logger.log(`create-cli: stopping match loop`);\n stopResolve();\n });\n } else {\n // log(`create-cli: waiting for ${match}`);\n }\n }\n\n // If we've processed all matches, we're done\n if (processedMatches.size === matchesAndCallbacks.length) {\n return true;\n }\n\n throw new Error(\n `Could not find any of the remaining matches: ${matchesAndCallbacks\n .filter((m) => !processedMatches.has(m.match))\n .map((m) => m.match)\n .join(', ')}`\n );\n },\n { timeout }\n );\n\n return Promise.race([waitPromise, stopPromise]);\n },\n async getOutput() {\n return lines.join('\\n');\n }\n };\n}\n", "import waitForExpect from 'wait-for-expect';\n\ninterface Options {\n timeout?: number;\n interval?: number;\n}\n\nconst defaultOptions: Options = {\n timeout: 10000,\n interval: 200\n};\n\nexport default async function eventually<ReturnType = void>(\n expectation: () => ReturnType | Promise<ReturnType>,\n options?: Options\n): Promise<ReturnType> {\n return new Promise((resolve, reject) => {\n waitForExpect\n .default(\n async () => {\n const ret = await expectation();\n resolve(ret);\n },\n options?.timeout ?? defaultOptions.timeout,\n options?.interval ?? defaultOptions.interval\n )\n .catch((error: unknown) => reject(error));\n });\n}\n", "import { handleStdout } from './handleStdout.js';\nimport { logger } from '../infra/logger.js';\nimport Stream from 'node:stream';\nexport const ENTER = '\\r';\nconst DOWN = '\\u001b[B';\n\nexport const mockInteractiveGenerateCommandTool = async ({\n extensionType,\n stdin,\n stdout\n}: {\n extensionType: string;\n stdin: Stream.Writable;\n stdout: Stream.Readable;\n}) => {\n try {\n logger.log('RunWixCliCommand: handle stdout');\n const stdoutHandler = handleStdout(stdout);\n\n logger.log('RunWixCliCommand: waiting for text');\n await stdoutHandler.waitForText(\n 'What kind of extension would you like to generate?'\n );\n\n // Enter the extension type\n if (extensionType === 'DASHBOARD_PAGE') {\n // No need to press enter\n } else if (extensionType === 'BACKEND_EVENT') {\n logger.log('RunWixCliCommand: writing DOWN 9 times');\n\n for (let i = 0; i < 9; i++) {\n stdin.write(DOWN);\n await new Promise((resolve) => setTimeout(resolve, 10));\n }\n }\n\n logger.log('RunWixCliCommand: writing ENTER 1');\n stdin.write(ENTER);\n\n // Wait for next step\n if (extensionType === 'DASHBOARD_PAGE') {\n await stdoutHandler.waitForText('Page title');\n\n logger.log('RunWixCliCommand: writing ENTER 2');\n stdin.write(ENTER);\n\n await stdoutHandler.waitForText('Enter the route for the new page');\n\n logger.log('RunWixCliCommand: writing ENTER 3');\n stdin.write(ENTER);\n } else if (extensionType === 'BACKEND_EVENT') {\n await stdoutHandler.waitForText('Event folder');\n\n logger.log('RunWixCliCommand: writing ENTER 2');\n stdin.write(ENTER);\n\n logger.log('RunWixCliCommand: waiting for text');\n\n // Check if the text is \"Would you like to install dependencies now?\", if dependencies are already installed, it will not be printed\n try {\n await stdoutHandler.waitForText(\n 'Would you like to install dependencies now?',\n { timeout: 1000 }\n );\n\n logger.log('RunWixCliCommand: writing ENTER 3');\n stdin.write(ENTER);\n } catch (error) {\n if (\n error instanceof Error &&\n error.message.includes('Could not match text in output')\n ) {\n logger.log(\n 'RunWixCliCommand: dependencies are already installed, skipping install'\n );\n\n logger.log(await stdoutHandler.getOutput());\n } else {\n throw error;\n }\n }\n }\n\n logger.log('RunWixCliCommand: waiting for success message');\n\n try {\n await stdoutHandler.waitForText('Successfully', { timeout: 1000 });\n logger.log('RunWixCliCommand: success message found');\n } catch (error) {\n if (\n error instanceof Error &&\n error.message.includes('Could not match text in output')\n ) {\n logger.log('RunWixCliCommand: success message not found, skipping'); // just skip and try to continue by returning the output\n } else {\n throw error;\n }\n }\n\n return stdoutHandler.getOutput();\n } catch (error) {\n logger.error('RunWixCliCommand: error', error);\n throw error;\n }\n};\n", "import type { HttpResponse } from '@wix/http-client';\n\nconst safeParseJSON = (text: string) => {\n try {\n return JSON.parse(text);\n } catch {\n return text;\n }\n};\n\nexport const handleWixAPIResponse = async <T = any>(\n response: HttpResponse<any>\n) => {\n const responseData =\n typeof response.data === 'string'\n ? safeParseJSON(response.data)\n : response.data;\n\n if (!response.status.toString().startsWith('2')) {\n const requestId = response.headers.get('x-wix-request-id');\n const errorDetails: string =\n typeof responseData === 'object'\n ? JSON.stringify(responseData)\n : responseData;\n throw new Error(\n [\n `Failed to call Wix API: ${response.status} ${response.statusText}.`,\n requestId ? `request id: ${requestId}` : '',\n // Wix 404 for API does not exist is huge (generic 404 page) and loaded to the context\n response.status === 404 && errorDetails.includes('<html')\n ? 'Not found'\n : errorDetails\n ]\n .filter((str) => !!str)\n .join('\\n')\n );\n }\n\n return responseData as T;\n};\n", "import type { z, ZodRawShape, ZodTypeAny } from 'zod';\nimport type { RequestHandlerExtra } from '@modelcontextprotocol/sdk/shared/protocol.js';\nimport type {\n CallToolResult,\n Implementation\n} from '@modelcontextprotocol/sdk/types.js';\nimport type { BiLogger } from '@wix/wix-bi-logger-client';\nimport type { PanoramaClientForComponent } from '@wix/panorama-client-node';\nimport { v4 as uuidv4 } from 'uuid';\nimport { captureException, setTags } from '@sentry/node';\nimport { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';\nimport { wixMcpRequestSrc39Evid1607 } from '@wix/bi-logger-api-infra-data/v2';\nimport { createPanoramaClient } from './infra/panorama.js';\nimport { createBiLogger } from './infra/bi-logger.js';\nimport { DEV_ENVIRONMENTS, ENV, getEnvironment } from './infra/environment.js';\nimport { HttpClient } from '@wix/http-client';\nimport { ServerOptions } from '@modelcontextprotocol/sdk/server/index.js';\n\ntype WixRequestHandlerExtra = RequestHandlerExtra & {\n biLogger: BiLogger;\n panorama: PanoramaClientForComponent;\n httpClient: HttpClient;\n};\n\ntype WixToolCallback<Args extends undefined | ZodRawShape = undefined> =\n Args extends ZodRawShape\n ? (\n args: z.objectOutputType<Args, ZodTypeAny>,\n extra: WixRequestHandlerExtra\n ) => CallToolResult | Promise<CallToolResult>\n : (\n extra: WixRequestHandlerExtra\n ) => CallToolResult | Promise<CallToolResult>;\n\nexport class WixMcpServer extends McpServer {\n private biLogger: BiLogger;\n private nodeEnv: ENV;\n private sessionId: string;\n private getUserId?: () => string;\n constructor(\n serverInfo: Implementation,\n options?: ServerOptions,\n nodeEnv?: string\n ) {\n super(serverInfo, options);\n this.sessionId = uuidv4();\n this.nodeEnv = getEnvironment(nodeEnv);\n this.biLogger = createBiLogger({\n _client_id: this.sessionId\n });\n }\n setUserIdGetter(getUserId: () => string) {\n this.getUserId = getUserId;\n }\n override tool(name: string, cb: WixToolCallback): void;\n override tool(name: string, description: string, cb: WixToolCallback): void;\n override tool<Args extends ZodRawShape>(\n name: string,\n paramsSchema: Args,\n cb: WixToolCallback<Args>\n ): void;\n override tool<Args extends ZodRawShape>(\n name: string,\n description: string,\n paramsSchema: Args,\n cb: WixToolCallback<Args>\n ): void;\n\n override tool(...args: any[]): void {\n const cbIndex = args.findIndex((arg) => typeof arg === 'function');\n if (cbIndex !== -1) {\n const originalCb = args[cbIndex];\n\n const toolName = args[0] as string;\n const isDevEnvironment = DEV_ENVIRONMENTS.includes(this.nodeEnv);\n\n const wrappedCb: WixToolCallback = async (...cbArgs) => {\n setTags({\n panoramaSessionId: this.sessionId\n });\n\n const panorama = createPanoramaClient({\n environment: this.nodeEnv,\n sessionId: this.sessionId,\n componentId: toolName,\n uuid: this.getUserId?.()\n });\n\n const toolInvocationId = uuidv4();\n const httpClient = new HttpClient({\n headers: {\n 'x-wix-mcp': `execution-id=${toolInvocationId}`\n }\n });\n\n const argsBeforeExtra = cbArgs.slice(0, cbArgs.length - 1);\n const extra = cbArgs[cbArgs.length - 1] as WixRequestHandlerExtra;\n\n const wrappedExtra = {\n ...extra,\n panorama: panorama.createClientForComponent(),\n httpClient\n };\n\n if (!isDevEnvironment) {\n panorama.transaction(toolName).start({\n toolInvocationId,\n params: JSON.stringify(argsBeforeExtra)\n });\n }\n\n const startTime = performance.now();\n\n let toolSucceeded, errorBody;\n\n try {\n const cbResult = await originalCb(...argsBeforeExtra, wrappedExtra);\n if (!isDevEnvironment) {\n panorama.transaction(toolName).finish({ toolInvocationId });\n }\n toolSucceeded = true;\n return cbResult;\n } catch (e) {\n toolSucceeded = false;\n errorBody = (e as Error).message;\n if (!isDevEnvironment) {\n panorama.errorMonitor().reportError(e as Error);\n captureException(e, {\n tags: {\n componentId: toolName,\n toolName\n }\n });\n }\n return {\n isError: true,\n content: [{ type: 'text', text: (e as Error).message }]\n };\n } finally {\n const endTime = performance.now();\n const duration = Math.round(endTime - startTime);\n\n if (!isDevEnvironment) {\n if (this.getUserId) {\n const userId = this.getUserId();\n this.biLogger.updateDefaults({\n _uuid: userId\n });\n }\n this.biLogger.report(\n wixMcpRequestSrc39Evid1607({\n toolInvocationId,\n toolName,\n params: JSON.stringify(argsBeforeExtra),\n origin: this.nodeEnv,\n duration,\n sessionId: this.sessionId,\n executionResult: toolSucceeded ? 'Success' : 'Error',\n errorBody: errorBody\n })\n );\n }\n }\n };\n\n args[cbIndex] = wrappedCb;\n }\n\n return super.tool.apply(this, args as any);\n }\n}\n", "// import { createRequire } from 'module';\nimport {\n createGlobalConfig,\n panoramaClientFactory,\n PanoramaPlatform\n} from '@wix/panorama-client-node';\nimport type { ENV } from './environment.js';\n\n// const require = createRequire(import.meta.url);\n// const packageJson = require('../package.json');\n\n// TODO: use real package.json\n// I temporarily disabled this because it's not working in the remote server\nconst packageJson = {\n version: '1.0.0'\n};\n\nexport const createPanoramaClient = (opts: {\n environment: ENV;\n sessionId: string;\n componentId: string;\n uuid?: string;\n}) => {\n const globalPanoramaConfig = createGlobalConfig();\n globalPanoramaConfig.setSessionId(opts.sessionId);\n\n const panoramaFactory = panoramaClientFactory({\n reporterOptions: {\n silent: true\n },\n baseParams: {\n uuid: opts.uuid,\n componentId: opts.componentId,\n platform: PanoramaPlatform.Standalone,\n fullArtifactId: 'com.wixpress.spartans.wix-mcp',\n artifactVersion: packageJson.version\n },\n data: {\n environment: opts.environment,\n runtime: {\n packageVersion: packageJson.version,\n versions: process.versions,\n platform: process.platform,\n arch: process.arch\n }\n }\n }).withGlobalConfig(globalPanoramaConfig);\n\n return panoramaFactory.client();\n};\n", "import { StandaloneNodeLogger } from '@wix/standalone-node-bi-logger';\nimport type { BiEvent, BiLogger } from '@wix/wix-bi-logger-client';\n\nexport function createBiLogger(defaultFields?: BiEvent): BiLogger {\n return new StandaloneNodeLogger()\n .factory({})\n .updateDefaults({\n localTime: () => Date.now(),\n ...defaultFields\n })\n .logger();\n}\n", "export enum ENV {\n DEV = 'DEV',\n TEST = 'TEST',\n LOCAL = 'LOCAL',\n REMOTE = 'REMOTE',\n PICASSO = 'PICASSO'\n}\n\nconst DEFAULT_ENV = ENV.LOCAL;\n\nexport const DEV_ENVIRONMENTS = [ENV.DEV, ENV.TEST];\n\nexport function getEnvironment(nodeEnv?: string): ENV {\n const env = nodeEnv || process.env.NODE_ENV;\n switch (env?.toUpperCase()) {\n case 'DEV':\n return ENV.DEV;\n case 'TEST':\n return ENV.TEST;\n case 'LOCAL':\n return ENV.LOCAL;\n case 'REMOTE':\n return ENV.REMOTE;\n case 'PICASSO':\n return ENV.PICASSO;\n default:\n return DEFAULT_ENV;\n }\n}\n", "import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';\nimport { logger } from '../infra/logger.js';\n\nconst getPortalIndex = async (portalName: string) => {\n const response = await fetch(\n `https://dev.wix.com/digor/api/portal-index?portalName=${portalName}`\n );\n const data = await response.json();\n return data;\n};\n\nconst addPortalResources = async (server: McpServer, portalName: string) => {\n // get portal index:\n const portalIndexResponse = await getPortalIndex(portalName);\n logger.log(\n `portalIndexResponse for ${portalName}`,\n JSON.stringify(portalIndexResponse, null, 2)\n );\n\n // for each portalIndex entry, add a resource to the server:\n for (const entry of portalIndexResponse.portalIndex) {\n logger.log(`entry ${JSON.stringify(entry, null, 2)}`);\n\n const name = entry.url;\n const uri = entry.url.replace('https://dev.wix.com/docs/', 'wix-docs://');\n\n logger.log(`adding resource ${name} ${uri}`);\n\n server.resource(name, uri, async (uri: URL) => {\n logger.log(`fetching resource ${uri}`);\n\n const docsURL = uri\n .toString()\n .replace('wix-docs://', 'https://dev.wix.com/docs/');\n const response = await fetch(\n `https://dev.wix.com/digor/api/get-article-content?articleUrl=${encodeURIComponent(docsURL)}`\n );\n const data = await response.json();\n\n return {\n contents: [\n {\n uri: uri.href,\n text: data.articleContent || 'No content found'\n }\n ]\n };\n });\n }\n};\n\nexport const addDocsResources = async (\n server: McpServer,\n portals: string[]\n) => {\n for (const portal of portals) {\n try {\n logger.log(`Processing portal: ${portal}`);\n await addPortalResources(server, portal);\n } catch (error) {\n logger.error(`Error processing portal ${portal}:`, error);\n }\n }\n};\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkBA,aAAgB,qBAAqB,QAAkC;AACrE,aAAO,EAAE,MAAM,IAAI,KAAK,KAAK,UAAU,IAAI,OAAM;IACnD;AAFA,YAAA,uBAAA;AAoBA,aAAgB,yBAAyB,QAAsC;AAC7E,aAAO,EAAE,MAAM,IAAI,KAAK,KAAK,UAAU,IAAI,OAAM;IACnD;AAFA,YAAA,2BAAA;AAgBA,aAAgB,yBAAyB,QAAsC;AAC7E,aAAO,EAAE,MAAM,KAAK,KAAK,KAAK,UAAU,IAAI,OAAM;I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iBAAiB,QAAQ,OAAO;AAAA,EACxC;AACF,SAAS,OAAO;AACd,SAAO,MAAM,gCAAgC,KAAK;AACpD;AAEA,OAAO,IAAI,iBAAiB;AAC5B,IAAM,YAAY,IAAI,qBAAqB;AAC3C,OAAO,IAAI,yBAAyB;AACpC,MAAM,OAAO,QAAQ,SAAS;AAC9B,OAAO,IAAI,qBAAqB;AAEhC,IAAI,eAAe,OAAO;AAExB,wBAAsB,MAAM;AAC9B;",
6
+ "names": ["wixMcpRequestSrc39Evid1607", "AlertType", "exports", "AlertStatus", "LogLevel", "TransactionAction", "InternalTransactions", "ComponentLoad", "ComponentPhase", "Platform", "ErrorSeverity", "_enumTypes", "require", "Object", "keys", "forEach", "key", "exports", "_dataTypes", "_interfaceTypes", "o", "DELIMITER", "DurationTrackerImpl", "constructor", "_defineProperty2", "default", "createKey", "args", "filter", "x", "join", "markTransactionStart", "fullArtifactId", "componentId", "transactionName", "transactionId", "key", "transactionStartTimes", "Date", "now", "markTransactionFinish", "finishTime", "startTime", "duration", "Math", "round", "markPhaseStart", "phaseName", "phaseStartTimes", "markPhaseFinish", "createDurationTracker", "exports", "_durationTracker", "require", "exports", "createDurationTracker", "_uuid", "require", "_durationTracker", "GlobalConfigImpl", "constructor", "_defineProperty2", "default", "createDurationTracker", "Map", "Date", "now", "getSessionId", "sessionId", "v4", "setSessionId", "getSessionTime", "sessionStart", "getReporter", "reporter", "setReporter", "initBatchQueue", "batchQueue", "getBatchQueue", "getDurationTracker", "durationTracker", "getStateValue", "key", "state", "get", "setStateValue", "value", "set", "clearState", "clear", "createGlobalConfig", "exports", "_globalConfig", "require", "exports", "createGlobalConfig", "bindPrototypeMethodsToSelf", "instance", "classFn", "prototype", "Object", "getPrototypeOf", "props", "getOwnPropertyNames", "prop", "bind", "exports", "_classUtils", "require", "Object", "keys", "forEach", "key", "exports", "last", "arr", "Array", "isArray", "length", "undefined", "exports", "union", "args", "Set", "flat", "values", "defaults", "reduce", "res", "obj", "Object", "entries", "_res", "key", "value", "deepDefaults", "dest", "rest", "keys", "map", "all", "merged", "hasValues", "filter", "_res2", "_utils", "require", "PanoramaErrorMonitorImpl", "constructor", "baseClient", "options", "bindPrototypeMethodsToSelf", "reportError", "error", "data", "addBreadcrumb", "breadcrumb", "exports", "_utils", "require", "_types", "PanoramaLoggerImpl", "constructor", "baseClient", "bindPrototypeMethodsToSelf", "info", "message", "data", "log", "LogLevel", "Info", "warn", "Warn", "error", "Error", "debug", "Debug", "exports", "_types", "require", "isCustomTransactionName", "name", "Object", "values", "InternalTransactions", "includes", "exports", "_types", "require", "isSsrEnabledInPlatform", "platform", "Platform", "Viewer", "exports", "generateGuidRegex", "exports", "_transactionUtils", "require", "Object", "keys", "forEach", "key", "exports", "_platformUtils", "_guid", "_utils", "require", "_utils2", "_generalUtils", "PanoramaTransactionImpl", "constructor", "baseClient", "name", "options", "isCustomTransactionName", "Error", "bindPrototypeMethodsToSelf", "start", "data", "reportTransactionStart", "defaults", "finish", "reportTransactionFinish", "exports", "_utils", "require", "_panoramaErrorMonitor", "_panoramaLogger", "_panoramaTransaction", "PanoramaClientForComponentImpl", "constructor", "baseClient", "_defineProperty2", "default", "bindPrototypeMethodsToSelf", "transaction", "name", "options", "PanoramaTransactionImpl", "errorMonitor", "PanoramaErrorMonitorImpl", "logger", "PanoramaLoggerImpl", "exports", "Hook", "exports", "HooksManager", "constructor", "_defineProperty2", "default", "tap", "hook", "subscriber", "subscribers", "push", "invoke", "args", "_utils", "require", "PanoramaPhaseImpl", "constructor", "name", "baseClient", "bindPrototypeMethodsToSelf", "start", "data", "reportPhaseStart", "finish", "reportPhaseFinish", "exports", "_utils", "require", "_types", "_panoramaClientComponent", "_hooksManager", "_panoramaErrorMonitor", "_panoramaLogger", "_panoramaTransaction", "_panoramaPhase", "PanoramaClientImpl", "constructor", "hooksManager", "baseClient", "_defineProperty2", "default", "bindPrototypeMethodsToSelf", "onUnhandledError", "subscriber", "tap", "Hook", "beforeUnhandledError", "reportLoadStart", "data", "options", "ComponentLoad", "InternalTransactions", "reportTransactionStart", "reportLoadFinish", "reportTransactionFinish", "phase", "name", "PanoramaPhaseImpl", "transaction", "PanoramaTransactionImpl", "errorMonitor", "PanoramaErrorMonitorImpl", "logger", "PanoramaLoggerImpl", "createClientForComponent", "client", "PanoramaClientForComponentImpl", "invoke", "afterCreateClientForComponent", "exports", "_generalUtils", "require", "extractWixHttpErrorDetailsRec", "error", "_httpClientError$resp", "Error", "res", "cause", "httpClientError", "defaults", "isWixHttpError", "requestId", "response", "headers", "extractWixHttpErrorDetails", "exports", "normalizeError", "event", "err", "message", "stack", "MAX_STACK_TRACE_SIZE_BYTES", "exports", "_constants", "require", "sanitizePayload", "payload", "errorStack", "length", "MAX_STACK_TRACE_SIZE_BYTES", "truncationMessage", "truncatedErrorStack", "substring", "exports", "_types", "require", "_errorUtils", "_payloadSanitizer", "getSessionParams", "globalConfig", "sessionId", "getSessionId", "sessionTime", "Math", "round", "getSessionTime", "buildTransactionPayload", "baseParams", "transactionParams", "data", "transactionName", "transactionAction", "logLevel", "LogLevel", "Info", "message", "requestId", "sanitizePayload", "exports", "buildPhasePayload", "phaseParams", "InternalTransactions", "ComponentPhase", "phaseName", "buildErrorPayload", "error", "constructor", "stack", "Error", "extractWixHttpErrorDetails", "errorName", "name", "errorStack", "buildLoggerPayload", "loggerParams", "_types", "require", "_durationTracker", "_payloadBuilder", "_hooksManager", "BasePanoramaClient", "constructor", "baseParams", "globalConfig", "reporter", "hooksManager", "data", "isMuted", "_defineProperty2", "default", "args", "addDataScope", "getData", "durationTracker", "getDurationTracker", "createDurationTracker", "report", "eventPayload", "reporterOverride", "getReporter", "beforeReportHookResult", "invoke", "Hook", "beforeReport", "reportTransactionStart", "name", "options", "id", "dataWithDefault", "beforeReportTransactionStart", "fullArtifactId", "componentId", "markTransactionStart", "payload", "buildTransactionPayload", "transactionName", "transactionAction", "TransactionAction", "Start", "afterReportTransactionStart", "reportTransactionFinish", "beforeReportTransactionFinish", "duration", "markTransactionFinish", "Finish", "transactionDuration", "afterReportTransactionFinish", "reportPhaseStart", "beforeReportPhaseStart", "markPhaseStart", "buildPhasePayload", "phaseName", "afterReportPhaseStart", "reportPhaseFinish", "beforeReportPhaseFinish", "markPhaseFinish", "afterReportPhaseFinish", "reportError", "error", "Error", "beforeReportError", "buildErrorPayload", "afterReportError", "addBreadcrumb", "breadcrumb", "beforeAddBreadcrumb", "afterAddBreadcrumb", "log", "logLevel", "message", "loggerParams", "beforeReportLog", "buildLoggerPayload", "afterReportLog", "exports", "_generalUtils", "require", "Scope", "constructor", "data", "_defineProperty2", "default", "getEntriesToDeepDefaults", "undefined", "Object", "fromEntries", "entries", "filter", "key", "KEYS_TO_DEEP_DEFAULTS", "includes", "addDataScope", "outerDataArray", "Array", "isArray", "deepDefaultData", "deepDefaults", "map", "_data", "defaults", "getData", "exports", "_utils", "require", "_globalConfig", "_generalUtils", "_panoramaClient", "_hooksManager", "_panoramaClientBase", "_scope", "PanoramaClientFactoryImpl", "constructor", "options", "_defineProperty2", "default", "bindPrototypeMethodsToSelf", "withGlobalConfig", "globalConfig", "withReporter", "reporter", "setMuted", "isMuted", "use", "plugin", "plugins", "push", "client", "pluginParams", "createGlobalConfig", "hooksManager", "HooksManager", "baseParams", "defaults", "data", "Scope", "addDataScope", "pluginClientParams", "baseClient", "BasePanoramaClient", "PanoramaClientImpl", "forEach", "panoramaClient", "exports", "ExceptionType", "exports", "StacktraceScriptType", "_types", "require", "exports", "Platform", "ErrorSeverity", "_globalConfig", "createGlobalConfig", "_panoramaClientFactory", "panoramaClient", "_types2", "ExceptionType", "RoutingAction", "exports", "RoutingActionReason", "_sentryPluginTypes", "require", "Object", "keys", "forEach", "key", "exports", "Symbol", "Symbol", "Symbol", "_throttle", "_interopRequireDefault", "require", "BatchQueueImpl", "constructor", "options", "_defineProperty2", "default", "flushThrottled", "throttle", "flush", "throttleDuration", "leading", "events", "queue", "splice", "flushHandler", "enqueue", "payload", "push", "length", "maxBatchSize", "cancel", "exports", "MAX_BATCH_SIZE", "exports", "_batchQueue", "require", "_hooksManager", "_batchConstants", "batchPlugin", "throttleDuration", "options", "hooksManager", "globalConfig", "reporter", "getReporter", "maxBatchSize", "MAX_BATCH_SIZE", "initBatchQueue", "BatchQueueImpl", "flushHandler", "tap", "Hook", "beforeReport", "eventPayload", "getBatchQueue", "enqueue", "exports", "_types", "require", "_generalUtils", "scriptRegexs", "scriptType", "StacktraceScriptType", "WIX_SERVICE", "regex", "WIX_APP", "WIX_CHAT", "BROWSER_EXTENSION", "extractArtifactDataFromScriptUrl", "url", "reduce", "res", "match", "exec", "artifactId", "artifactVersion", "exports", "fullArtifactIdToArtifactId", "fullArtifactId", "last", "split", "getArtifactDataFromBaseParams", "baseParams", "isSameArtifact", "artifactData1", "artifactData2", "isArtifactMismatch", "currentArtifactData", "stackTraceArtifactsData", "length", "getFirstMatchingArtifact", "artifactData", "artifact", "getQueryParamValue", "key", "window", "queryParams", "URLSearchParams", "location", "search", "get", "exports", "hasQueryParam", "queryParamValue", "getCookieOverrideValue", "artifactId", "document", "wixStaticsVersionsCookie", "cookie", "split", "map", "c", "trim", "find", "startsWith", "cookieValue", "overrideArtifactEntry", "overrideEntry", "exports", "_artifactUtils", "require", "_urlUtils", "_cookieUtils", "RuntimeEnvironment", "exports", "FORCE_PANORAMA_REPORT_QUERY_PARAM", "ENABLE_PANORAMA_LOGS_QUERY_PARAM", "hasForcePanoramaReportQueryParam", "hasQueryParam", "hasEnablePanoramaLogsQueryParam", "checkIsLocalMode", "fullArtifactId", "artifactId", "fullArtifactIdToArtifactId", "queryParamOverrideValue", "getQueryParamValue", "isLocalQueryParamOverride", "includes", "wixStaticCookieValue", "getCookieOverrideValue", "calculateEnvironment", "WorkerGlobalScope", "self", "PRODUCTION", "window", "process", "SERVER", "hostname", "location", "userAgent", "navigator", "cookie", "document", "isSled", "test", "isLocalhost", "isBot", "isNotValidUserAgent", "SLED", "TEST", "DEVELOPMENT", "BOT", "INVALID_USER_AGENT", "_types", "require", "PANORAMA_DATA_KEY", "exports", "BlacklistedStacktraceScriptTypes", "StacktraceScriptType", "BROWSER_EXTENSION", "SENTRY_HUBS_KEY", "SENTRY_MAIN_HUB_KEY", "SENTRY_GLOBAL_HUB_KEY", "getHubMap", "globalConfig", "getStateValue", "setStateValue", "Map", "getMainHub", "exports", "setMainHub", "hub", "getGlobalHub", "setGlobalHub", "getHubForArtifact", "artifactId", "get", "setHubForArtifact", "set", "getHubForDsn", "dsn", "setHubForDsn", "_types", "require", "_sentryPluginConstants", "_sentryPluginState", "_artifactUtils", "createSafePanoramaLogger", "baseClient", "logLevel", "message", "data", "log", "e", "exports", "createSafePanoramaErrorReporter", "error", "panoramaData", "Error", "reportError", "LogLevel", "toString", "isUnprocessedUnhandledError", "event", "_event$contexts", "contexts", "PANORAMA_DATA_KEY", "isScriptTypeBlacklisted", "stackTraceArtifactsData", "some", "scriptType", "BlacklistedStacktraceScriptTypes", "includes", "buildReleaseString", "artifactData", "artifactId", "artifactVersion", "setReleaseFromStackTraceArtifactsData", "currentArtifactData", "artifact", "getFirstMatchingArtifact", "release", "getFirstMatchingHub", "globalConfig", "stackTraceArtifactData", "hub", "getHubForArtifact", "_sentryPluginState", "require", "getBreadcrumbsFromHub", "hub", "values", "Object", "getScope", "breadcrumbKeys", "value", "_value$", "Array", "isArray", "timestamp", "some", "key", "_value$2", "getBreadcrumbs", "globalConfig", "breadcrumbs", "getGlobalHub", "getMainHub", "map", "breadcrumb", "data", "entries", "reduce", "res", "val", "toString", "slice", "Math", "max", "length", "exports", "enrichBreadcrumbsWithDataHooks", "hint", "category", "isUiInteractionBreadcrumb", "targetElement", "event", "target", "nodeWithDataHook", "closest", "dataHook", "getAttribute", "message", "_types", "require", "_errorUtils", "_sentryPluginBreadcrumbs", "_sentryPluginConstants", "attachPanoramaDataToSentryScope", "scope", "data", "setContext", "PANORAMA_DATA_KEY", "exceptionType", "ExceptionType", "HANDLED", "severity", "setLevel", "exports", "extractPanoramaDataFromSentryEvent", "event", "_event$contexts", "res", "contexts", "UNHANDLED", "enrichPanoramaDataWithSentryEventData", "stackTraceArtifactsData", "externalId", "event_id", "environment", "stackTraceArtifacts", "enrichSentryEventWithPanoramaData", "baseClient", "dataWithDefaults", "getErrorMonitorDataWithDefaults", "tags", "context", "enrichSentryEventWithBreadcrumbs", "globalConfig", "breadcrumbs", "getBreadcrumbs", "enrichSentryEventWithWixHttpErrorData", "error", "requestId", "extractWixHttpErrorDetails", "_types", "require", "_sentryPluginTypes", "_sentryPluginUtils", "_artifactUtils", "getRoutingDecision", "options", "artifactData", "stackTraceArtifactsData", "panoramaData", "globalConfig", "exceptionType", "ExceptionType", "HANDLED", "routingAction", "RoutingAction", "CONTINUE", "routingActionReason", "RoutingActionReason", "ERROR_IS_HANDLED", "length", "NO_ARTIFACTS_IN_STACKTRACE", "isScriptTypeBlacklisted", "DROP", "BLACKLISTED_SCRIPT_TYPE", "isArtifactMismatch", "HANDLER_MATCH", "result", "getFirstMatchingHub", "NO_REGISTERED_ARTIFACTS_IN_STACKTRACE", "hub", "matchedArtifactData", "isSameArtifact", "HANDLER_REROUTE_MATCH", "EXACT_REROUTE_MATCH", "FALLBACK_REROUTE_MATCH", "REROUTE", "targetHub", "exports", "_artifactUtils", "require", "splitOriginalStacktraceIntoFrames", "originalException", "Error", "stack", "split", "map", "raw", "reverse", "extractArtifactsDataFromSentryEvent", "event", "hint", "_event$exception", "artifacts", "Map", "frames", "exception", "values", "stacktrace", "i", "length", "filename", "element", "artifactData", "extractArtifactDataFromScriptUrl", "artifactId", "artifactVersion", "key", "has", "set", "push", "exports", "createResolvedHubResult", "sentry", "createHub", "sentryBeforeSend", "hub", "exports", "createLazyHubResult", "globalConfig", "lazySentry", "resolveFn", "promise", "Promise", "resolve", "hubResult", "load", "sentryLazyLoaderTriggered", "getStateValue", "setStateValue", "forceLoad", "wait", "onLoad", "Object", "assign", "loadLazyHub", "waitForLazyHub", "isLazySentry", "BrowserClient", "isHubInvalid", "isHubResolved", "_sentryPluginTypes", "require", "_hooksManager", "_generalUtils", "_environmentUtils", "_artifactUtils", "_errorUtils", "_sentryPluginUtils", "_sentryPluginBreadcrumbs", "_sentryPluginState", "_sentryPluginEnricher", "_sentryPluginRouter", "_sentryPluginStacktrace", "_sentryPluginHubUtils", "createHub", "options", "artifactData", "pluginParams", "globalConfig", "sentryTransport", "sentryDsn", "sentryEnvironment", "sentry", "hub", "sentryBeforeSendHook", "sentryBeforeSend", "handler", "create", "loadedSentry", "Hub", "BrowserClient", "dsn", "environment", "calculateEnvironment", "release", "buildReleaseString", "transport", "integrations", "defaultIntegrations", "normalizeDepth", "beforeBreadcrumb", "enrichBreadcrumbsWithDataHooks", "beforeSend", "event", "hint", "getStateValue", "isLazySentry", "createLazyHubResult", "createResolvedHubResult", "initHub", "hubResult", "baseParams", "fullArtifactId", "componentId", "uuid", "msid", "sentryMain", "artifactId", "init", "resolvedHubResult", "setUser", "id", "setTags", "sessionId", "getSessionId", "getMainHub", "getGlobalHub", "globalHub", "getCurrentHub", "getClient", "setGlobalHub", "makeMain", "setMainHub", "setHubForArtifact", "setHubForDsn", "isHubResolved", "waitForLazyHub", "then", "initHooks", "baseClient", "hooksManager", "reportErrorToPanoramaSafely", "createSafePanoramaErrorReporter", "error", "normalizeError", "originalException", "isUnprocessedUnhandledError", "invoke", "Hook", "beforeUnhandledError", "stackTraceArtifactsData", "extractArtifactsDataFromSentryEvent", "panoramaData", "extractPanoramaDataFromSentryEvent", "routingAction", "prevRoutingAction", "reportToPanorama", "reportToSentry", "RoutingAction", "REROUTE", "routingActionReason", "targetHub", "getRoutingDecision", "withScope", "scope", "attachPanoramaDataToSentryScope", "originalHandler", "captureException", "CONTINUE", "DROP", "enrichPanoramaDataWithSentryEventData", "sentryGetReleaseFromStacktrace", "setReleaseFromStackTraceArtifactsData", "enrichSentryEventWithBreadcrumbs", "enrichSentryEventWithPanoramaData", "enrichSentryEventWithWixHttpErrorData", "tap", "beforeReportError", "data", "errorMonitorOptions", "externalId", "reportErrorToSentry", "resolvedHbResult", "sentryHub", "sentryLookupDsn", "getHubForDsn", "defaults", "loadLazyHub", "beforeAddBreadcrumb", "breadcrumb", "addBreadcrumb", "sentryPlugin", "pluginFactoryParams", "getArtifactDataFromBaseParams", "isHubInvalid", "exports", "_hooksManager", "require", "topLevelPropsExtractorPlugin", "extractDataFields", "hooksManager", "tap", "Hook", "beforeReport", "eventPayload", "forEach", "field", "data", "undefined", "exports", "_hooksManager", "require", "pageParamsEnricherPlugin", "pageParams", "hooksManager", "pageUrl", "tap", "Hook", "beforeReport", "eventPayload", "window", "httpReferrer", "location", "href", "exports", "_types", "require", "messageFormatter", "artifactId", "componentId", "message", "logToConsole", "logLevel", "data", "formattedMessage", "LogLevel", "Info", "console", "info", "Warn", "warn", "Error", "error", "Debug", "debug", "log", "Object", "keys", "length", "table", "exports", "_types", "require", "_hooksManager", "_environmentUtils", "_consoleUtils", "EXCLUDED_ENVIRONMENTS", "RuntimeEnvironment", "DEVELOPMENT", "SLED", "environmentPlugin", "hooksManager", "baseParams", "fullArtifactId", "componentId", "environment", "calculateEnvironment", "isLocalMode", "checkIsLocalMode", "enablePanoramaLogs", "hasEnablePanoramaLogsQueryParam", "shouldSkipReporting", "includes", "hasForcePanoramaReportQueryParam", "shouldLogToConsole", "logToConsole", "LogLevel", "Info", "tap", "Hook", "beforeReport", "eventPayload", "data", "message", "messageFullArtifactId", "messageComponentId", "logLevel", "exports", "_pluginTypes", "require", "Object", "keys", "forEach", "key", "prototype", "hasOwnProperty", "call", "_exportNames", "exports", "_hooksManager", "Hook", "_batchPlugin", "batchPlugin", "_sentryPlugin", "sentryPlugin", "_topLevelPropsExtractorPlugin", "topLevelPropsExtractorPlugin", "_pageParamsEnricherPlugin", "pageParamsEnricherPlugin", "_environmentPlugin", "environmentPlugin", "PANORAMA_APP_DEF_ID", "exports", "PANORAMA_GRAFANA_BASE_URL", "DEV_PORTAL_BASE_URL", "SUCCESS_RATE_GRAFANA_INVESTIGATION_DASHBOARD_URL", "DURATION_GRAFANA_INVESTIGATION_DASHBOARD_URL", "CLICKHOUSE_REPORT_URL", "CLICKHOUSE_BATCH_REPORT_URL", "v", "path", "d", "b", "__assign", "o", "maybeGetDocument", "document", "undefined", "maybeGetGlobal", "self", "global", "_globals", "require", "readCookie", "name", "cookieValue", "getCookieByName", "split", "loadCookies", "documentObj", "maybeGetDocument", "cookie", "decodeURIComponent", "filter", "trim", "_cookies", "require", "XSRF_TOKEN_COOKIE_NAME", "exports", "XSRF_HEADER_NAME", "csrf", "value", "readCookie", "_globals", "require", "X_WIX_BRAND_NAME", "xWixBrand", "value", "extractBrand", "globalObj", "maybeGetGlobal", "commonConfig", "brand", "_globals", "require", "consentPolicy", "tryResolveNativeAPI", "tryResolveJsSDK", "none", "globalObj", "maybeGetGlobal", "Wix", "Utils", "_getConsentPolicyHeader", "undefined", "consentPolicyManager", "authorization", "signedInstance", "isCI", "isNode", "process", "env", "TEAMCITY_VERSION", "BUILDKITE", "_process$versions", "versions", "node", "_utils", "require", "artifactId", "override", "artifactIdToUse", "process", "env", "ARTIFACT_ID", "APP_NAME", "isCI", "_globals", "require", "IGNORE_KEYS", "COMMON_CONFIG_NAME", "MAP_KEYS", "bsi", "extractCommonConfigValues", "globalObj", "maybeGetGlobal", "commonConfigObj", "commonConfig", "res", "addedKeys", "Object", "keys", "forEach", "key", "newKey", "indexOf", "commonConfigValues", "value", "JSON", "stringify", "encodeURIComponent", "exports", "_base", "_interopRequireDefault", "require", "LINGUIST_HEADER_KEY", "linguistHeader", "lang", "locale", "isPrimaryLanguage", "signedInstance", "isMultilingualOptionsAreValid", "instanceId", "getInstanceIdFromSignedInstance", "undefined", "toString", "join", "test", "encodedInstance", "startsWith", "split", "JSON", "parse", "base64", "decode", "e", "Brand", "exports", "WixHeadersParsingError", "Error", "constructor", "header", "value", "JSON", "stringify", "exports", "WixHeadersValidationError", "type", "key", "_errors", "require", "assertBoolean", "key", "value", "WixHeadersValidationError", "assertString", "_csrf", "require", "_xWixBrand", "_consentPolicy", "_authorization", "_artifactId", "_commonConfig", "_linguist", "_domain", "exports", "MultilingualOptions", "_assert", "createHeaders", "opts", "csrf", "signedInstance", "verifyOptsOrThrow", "headers", "xWixBrand", "consentPolicy", "authorization", "artifactId", "commonConfig", "linguistHeader", "multilingualOptions", "push", "filter", "hdrs", "Object", "values", "every", "v", "reduce", "result", "assertBoolean", "assertString", "path", "require_utils", "self", "init", "useColors", "URL", "self", "exports", "resolve", "reject", "transport", "require_cookies", "path", "require_axios", "HttpClient", "require_types", "_httpClient", "require", "nodeReporter", "url", "silent", "eventPayload", "httpClient", "createHttpClient", "body", "JSON", "stringify", "logMessage", "post", "catch", "e", "console", "error", "exports", "_panoramaClient", "require", "_plugins", "_constants", "_reporter", "panoramaClientFactory", "options", "baseParams", "reporterOptions", "data", "factory", "panoramaClient", "use", "environmentPlugin", "withReporter", "nodeReporter", "CLICKHOUSE_REPORT_URL", "undefined", "exports", "_panoramaClientNode", "require", "exports", "panoramaClientFactory", "_panoramaClient", "createGlobalConfig", "PanoramaExceptionType", "ExceptionType", "PanoramaErrorSeverity", "ErrorSeverity", "PanoramaPlatform", "Platform", "require_assert", "AssertionError", "message", "name", "constructor", "Error", "assertDefined", "target", "undefined", "assertObject", "Array", "isArray", "assertOk", "assertFunc", "assertBoolean", "assertNumber", "assertArray", "Object", "prototype", "toString", "call", "module", "exports", "defined", "object", "ok", "func", "boolean", "number", "array", "module", "exports", "mapValues", "collection", "iteratee", "Object", "keys", "reduce", "acc", "key", "filterValues", "keep", "module", "exports", "timedPromise", "promise", "message", "timeout", "timeoutPromise", "Promise", "resolve", "reject", "setTimeout", "race", "allAsObject", "promiseObject", "keys", "Object", "all", "map", "key", "then", "resolved", "reduce", "acc", "value", "i", "module", "exports", "error", "console", "debounce", "func", "wait", "immediate", "timeout", "context", "args", "arguments", "later", "apply", "callNow", "clearTimeout", "setTimeout", "module", "exports", "throttle", "func", "wait", "timeout", "args", "setTimeout", "module", "exports", "debounce", "require", "throttle", "createEvent", "event", "context", "startTime", "dt", "Date", "now", "f", "createBatch", "events", "e", "g", "optimizeBatch", "fieldCounts", "batchLen", "batch", "length", "map", "fields", "Object", "keys", "value", "field", "key", "globalFields", "reduce", "res", "BatchQueue", "_initilized", "_startTime", "_resolve", "_promise", "Promise", "resolve", "flushHandler", "delayMs", "maxBatchSize", "useThrottle", "_maxBatchSize", "_optimizeBatch", "_queue", "_flushHandler", "_flushDebounced", "flush", "_reset", "splice", "then", "push", "module", "exports", "require_consent_policy", "DefaultConsentPolicy", "functional", "analytics", "__default", "getPolicy", "consentPolicyGetter", "shouldMuteNonEssentials", "policy", "shouldMuteByCategory", "category", "module", "exports", "assert", "require", "mapValues", "filterValues", "promise", "log", "BatchQueue", "shouldMuteByCategory", "shouldMuteNonEssentials", "getPolicy", "BiLogger", "options", "context", "_publishers", "publishers", "_validators", "validators", "_defaults", "defaults", "_ownDefaults", "_events", "events", "_context", "_defaultValueTimeout", "defaultValueTimeout", "_defaultContinueOnFail", "defaultContinueOnFail", "_onPublisherFailHandler", "onPublisherFailHandler", "_defaultPublisherFailHandler", "_isMuted", "isMuted", "_eventTransformer", "eventTransformer", "event", "_payloadTransformer", "payloadTransformer", "payload", "_consentPolicyGetter", "consentPolicyGetter", "_nonEssentialDefaults", "nonEssentialDefaults", "_maxBatchSize", "maxBatchSize", "_globalBatchQueue", "globalBatchQueue", "data", "defined", "object", "src", "evid", "params", "eventOrKey", "eventOrContextOrUndefined", "contextOrUndefined", "_extractEventAndContext", "policy", "fullContext", "category", "Promise", "resolve", "useBatch", "queue", "_initQueue", "transformAndQueue", "transformedEvent", "_event", "feed", "_getDefaults", "then", "fullEvent", "_getDynamicNonEssentialDefaults", "_getStaticNonEssentialDefaults", "_getPolicyFields", "_getDynamicDefaults", "Object", "assign", "validatorsResult", "length", "some", "validator", "match", "execute", "Error", "evtId", "_send", "_queue", "flush", "all", "map", "cloned", "publisher", "catch", "error", "publisherName", "name", "undefined", "AssertionError", "onFlush", "batch", "g", "_getStaticDefaults", "transformedPayload", "init", "delayMs", "useThrottle", "optimizeBatch", "err", "reject", "_withOwnDefaults", "dynamicDefaults", "v", "staticDefaults", "promises", "value", "key", "_handleDefaultsError", "timedPromise", "message", "timeout", "allAsObject", "_isca", "_encodePolicyValue", "_iscf", "_ispd", "__default", "_ise", "module", "exports", "assert", "require", "BiLoggerManager", "reset", "_handlers", "handler", "defined", "func", "push", "index", "indexOf", "splice", "logger", "forEach", "module", "exports", "manager", "assert", "require", "BiLogger", "biLoggerManager", "BatchQueue", "BiLoggerFactory", "_publishers", "_validators", "_defaults", "_nonEssentialDefaults", "_events", "_isMuted", "_eventTransformer", "_payloadTransformer", "_consentPolicyGetter", "_maxBatchSize", "_batchQueue", "publisher", "defined", "ok", "push", "validator", "execute", "match", "defaults", "object", "Object", "assign", "events", "defaultValueTimeout", "_defaultValueTimeout", "defaultContinueOnFail", "_defaultContinueOnFail", "onPublisherFailHandler", "_onPublisherFailHandler", "isMuted", "boolean", "maxBatchSize", "number", "batchQueue", "_globalBatchQueue", "transformer", "func", "getter", "context", "logger", "publishers", "validators", "eventTransformer", "payloadTransformer", "consentPolicyGetter", "nonEssentialDefaults", "globalBatchQueue", "manager", "notifyLoggerCreated", "module", "exports", "BiLoggerClientFactory", "require", "BiLogger", "biLoggerManager", "BatchQueue", "module", "exports", "BiLoggerFactory", "BiLoggerManager", "factory", "manager", "createBatchQueue", "maybeGetDocument", "document", "undefined", "maybeGetGlobal", "self", "global", "_globals", "require", "readCookie", "name", "cookieValue", "getCookieByName", "split", "loadCookies", "documentObj", "maybeGetDocument", "cookie", "decodeURIComponent", "filter", "trim", "_cookies", "require", "XSRF_TOKEN_COOKIE_NAME", "exports", "XSRF_HEADER_NAME", "csrf", "value", "readCookie", "_globals", "require", "X_WIX_BRAND_NAME", "xWixBrand", "value", "extractBrand", "globalObj", "maybeGetGlobal", "commonConfig", "brand", "_globals", "require", "consentPolicy", "tryResolveNativeAPI", "tryResolveJsSDK", "none", "globalObj", "maybeGetGlobal", "Wix", "Utils", "_getConsentPolicyHeader", "undefined", "consentPolicyManager", "authorization", "signedInstance", "isCI", "isNode", "process", "env", "TEAMCITY_VERSION", "BUILDKITE", "_process$versions", "versions", "node", "_utils", "require", "artifactId", "override", "artifactIdToUse", "process", "env", "ARTIFACT_ID", "APP_NAME", "isCI", "_globals", "require", "IGNORE_KEYS", "COMMON_CONFIG_NAME", "MAP_KEYS", "bsi", "extractCommonConfigValues", "globalObj", "maybeGetGlobal", "commonConfigObj", "commonConfig", "res", "addedKeys", "Object", "keys", "forEach", "key", "newKey", "indexOf", "commonConfigValues", "value", "JSON", "stringify", "encodeURIComponent", "exports", "_base", "_interopRequireDefault", "require", "LINGUIST_HEADER_KEY", "linguistHeader", "lang", "locale", "isPrimaryLanguage", "signedInstance", "isMultilingualOptionsAreValid", "instanceId", "getInstanceIdFromSignedInstance", "undefined", "toString", "join", "test", "encodedInstance", "startsWith", "split", "JSON", "parse", "base64", "decode", "e", "Brand", "exports", "WixHeadersParsingError", "Error", "constructor", "header", "value", "JSON", "stringify", "exports", "WixHeadersValidationError", "type", "key", "_errors", "require", "assertBoolean", "key", "value", "WixHeadersValidationError", "assertString", "_csrf", "require", "_xWixBrand", "_consentPolicy", "_authorization", "_artifactId", "_commonConfig", "_linguist", "_domain", "exports", "MultilingualOptions", "_assert", "createHeaders", "opts", "csrf", "signedInstance", "verifyOptsOrThrow", "headers", "xWixBrand", "consentPolicy", "authorization", "artifactId", "commonConfig", "linguistHeader", "multilingualOptions", "push", "filter", "hdrs", "Object", "values", "every", "v", "reduce", "result", "assertBoolean", "assertString", "path", "require_whitelist", "require_bind", "require_utils", "require_enhanceError", "require_createError", "require_settle", "require_isAbsoluteURL", "require_combineURLs", "require_buildFullPath", "require_buildURL", "require_package", "require_http", "resolve", "reject", "transport", "require_InterceptorManager", "require_normalizeHeaderName", "require_cookies", "path", "require_parseHeaders", "require_isURLSameOrigin", "require_xhr", "require_defaults", "require_transformData", "require_isCancel", "require_dispatchRequest", "require_mergeConfig", "require_validator", "require_Axios", "require_Cancel", "require_CancelToken", "require_spread", "require_isAxiosError", "require_axios", "require_axios", "HttpClient", "require_types", "defaultOptions", "StandaloneNodeLogger", "maybeGetDocument", "document", "undefined", "maybeGetGlobal", "self", "global", "_globals", "require", "readCookie", "name", "cookieValue", "getCookieByName", "split", "loadCookies", "documentObj", "maybeGetDocument", "cookie", "decodeURIComponent", "filter", "trim", "_cookies", "require", "XSRF_TOKEN_COOKIE_NAME", "exports", "XSRF_HEADER_NAME", "csrf", "value", "readCookie", "_globals", "require", "X_WIX_BRAND_NAME", "xWixBrand", "value", "extractBrand", "globalObj", "maybeGetGlobal", "commonConfig", "brand", "_globals", "require", "consentPolicy", "tryResolveNativeAPI", "tryResolveJsSDK", "none", "globalObj", "maybeGetGlobal", "Wix", "Utils", "_getConsentPolicyHeader", "undefined", "consentPolicyManager", "authorization", "signedInstance", "isCI", "isNode", "process", "env", "TEAMCITY_VERSION", "BUILDKITE", "_process$versions", "versions", "node", "_utils", "require", "artifactId", "override", "artifactIdToUse", "process", "env", "ARTIFACT_ID", "APP_NAME", "isCI", "_globals", "require", "IGNORE_KEYS", "COMMON_CONFIG_NAME", "MAP_KEYS", "bsi", "extractCommonConfigValues", "globalObj", "maybeGetGlobal", "commonConfigObj", "commonConfig", "res", "addedKeys", "Object", "keys", "forEach", "key", "newKey", "indexOf", "commonConfigValues", "value", "JSON", "stringify", "encodeURIComponent", "exports", "_base", "_interopRequireDefault", "require", "LINGUIST_HEADER_KEY", "linguistHeader", "lang", "locale", "isPrimaryLanguage", "signedInstance", "isMultilingualOptionsAreValid", "instanceId", "getInstanceIdFromSignedInstance", "undefined", "toString", "join", "test", "encodedInstance", "startsWith", "split", "JSON", "parse", "base64", "decode", "e", "Brand", "exports", "WixHeadersParsingError", "Error", "constructor", "header", "value", "JSON", "stringify", "exports", "WixHeadersValidationError", "type", "key", "_errors", "require", "assertBoolean", "key", "value", "WixHeadersValidationError", "assertString", "_csrf", "require", "_xWixBrand", "_consentPolicy", "_authorization", "_artifactId", "_commonConfig", "_linguist", "_domain", "exports", "MultilingualOptions", "_assert", "createHeaders", "opts", "csrf", "signedInstance", "verifyOptsOrThrow", "headers", "xWixBrand", "consentPolicy", "authorization", "artifactId", "commonConfig", "linguistHeader", "multilingualOptions", "push", "filter", "hdrs", "Object", "values", "every", "v", "reduce", "result", "assertBoolean", "assertString", "path", "require_whitelist", "require_bind", "require_utils", "require_enhanceError", "require_createError", "require_settle", "require_isAbsoluteURL", "require_combineURLs", "require_buildFullPath", "require_buildURL", "require_package", "require_http", "resolve", "reject", "transport", "__importStar", "req", "__importStar", "__exportStar", "__importStar", "__importDefault", "__importDefault", "__importStar", "__importDefault", "require_InterceptorManager", "require_normalizeHeaderName", "require_cookies", "path", "require_parseHeaders", "require_isURLSameOrigin", "require_xhr", "require_defaults", "require_transformData", "require_isCancel", "require_dispatchRequest", "require_mergeConfig", "require_validator", "require_Axios", "require_Cancel", "require_CancelToken", "require_spread", "require_isAxiosError", "require_axios", "require_axios", "HttpClient", "require_types", "server", "server", "z", "homedir", "path", "server", "isWixOne", "z", "captureException", "captureException", "server", "uri"]
7
+ }