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zqE,GAAGX,MAAMiB,KAAMk5C,GAI7B,OAAOl5C,MAIT+rD,EAAQ1sD,UAAUuuD,aAAe7B,EAAQ1sD,UAAU0/D,KAUnDhT,EAAQ1sD,UAAU6sC,UAAY,SAAS/O,GAErC,OADAn9B,KAAKkqE,WAAalqE,KAAKkqE,YAAc,GAC9BlqE,KAAKkqE,WAAW,IAAM/sC,IAAU,IAWzC4uB,EAAQ1sD,UAAUysC,aAAe,SAAS3O,GACxC,QAAUn9B,KAAKksC,UAAU/O,GAAOx9B,S,yECvKlC,MAAMwzC,EAAgBvpC","sources":["webpack://_N_E/./node_modules/@novu/client/dist/esm/api/api.service.js","webpack://_N_E/./node_modules/@novu/headless/dist/index.js","webpack://_N_E/./node_modules/@novu/headless/dist/lib/headless.service.js","webpack://_N_E/./node_modules/@novu/headless/dist/lib/index.js","webpack://_N_E/./node_modules/@novu/headless/dist/lib/query.service.js","webpack://_N_E/./node_modules/@novu/headless/dist/lib/types.js","webpack://_N_E/./node_modules/@novu/headless/dist/utils/index.js","webpack://_N_E/./node_modules/@novu/headless/dist/utils/query-keys.js","webpack://_N_E/./node_modules/@novu/headless/dist/utils/types.js","webpack://_N_E/./node_modules/@novu/shared/dist/esm/entities/user/user.enums.js","webpack://_N_E/./node_modules/@novu/shared/dist/esm/entities/organization/member.enum.js","webpack://_N_E/./node_modules/@novu/shared/dist/esm/entities/organization/member.interface.js","webpack://_N_E/./node_modules/@novu/shared/dist/esm/entities/notification-template/notification-template.interface.js","webpack://_N_E/./node_modules/@novu/shared/dist/esm/entities/execution-details/execution-details.interface.js","webpack://_N_E/./node_modules/@novu/shared/dist/esm/entities/messages/action.enum.js","webpack://_N_E/./node_modules/@novu/shared/dist/esm/entities/messages/messages.interface.js","webpack://_N_E/./node_modules/@novu/shared/dist/esm/types/shared/index.js","webpack://_N_E/./node_modules/@novu/shared/dist/esm/types/builder/builder.types.js","webpack://_N_E/./node_modules/@novu/shared/dist/esm/types/builder/filter.types.js","webpack://_N_E/./node_modules/@novu/shared/dist/esm/types/channel/index.js","webpack://_N_E/./node_modules/@novu/shared/dist/esm/types/events/index.js","webpack://_N_E/./node_modules/@novu/shared/dist/esm/types/feature-flags/feature-flags.js","webpack://_N_E/./node_modules/@novu/shared/dist/esm/types/feature-flags/system-critical-flags.js","webpack://_N_E/./node_modules/@novu/shared/dist/esm/types/message-template/index.js","webpack://_N_E/./node_modules/@novu/shared/dist/esm/types/organization/index.js","webpack://_N_E/./node_modules/@novu/shared/dist/esm/types/feature-flags/flags.types.js","webpack://_N_E/./node_modules/@novu/shared/dist/esm/types/pagination/index.js","webpack://_N_E/./node_modules/@novu/shared/dist/esm/types/subscriber/index.js","webpack://_N_E/./node_modules/@novu/shared/dist/esm/types/analytics/index.js","webpack://_N_E/./node_modules/@novu/shared/dist/esm/types/messages/index.js","webpack://_N_E/./node_modules/@novu/shared/dist/esm/types/web-sockets/index.js","webpack://_N_E/./node_modules/@novu/shared/dist/esm/types/rate-limiting/algorithm.types.js","webpack://_N_E/./node_modules/@novu/shared/dist/esm/types/rate-limiting/config.types.js","webpack://_N_E/./node_modules/@novu/shared/dist/esm/types/rate-limiting/cost.types.js","webpack://_N_E/./node_modules/@novu/shared/dist/esm/types/rate-limiting/service.types.js","webpack://_N_E/./node_modules/@novu/shared/dist/esm/types/auth/auth.types.js","webpack://_N_E/./node_modules/@novu/shared/dist/esm/types/timezones/timezones.types.js","webpack://_N_E/./node_modules/@novu/shared/dist/esm/types/cron/cron.types.js","webpack://_N_E/./node_modules/@novu/shared/dist/esm/entities/message-template/message-template.interface.js","webpack://_N_E/./node_modules/@novu/shared/dist/esm/entities/log/log.enums.js","webpack://_N_E/./node_modules/@novu/shared/dist/esm/entities/change/change.interface.js","webpack://_N_E/./node_modules/@novu/shared/dist/esm/entities/step/index.js","webpack://_N_E/./node_modules/@novu/shared/dist/esm/entities/job/status.enum.js","webpack://_N_E/./node_modules/@novu/shared/dist/esm/entities/subscriber-preference/subscriber-preference.interface.js","webpack://_N_E/./node_modules/@novu/shared/dist/esm/dto/layout/layout.dto.js","webpack://_N_E/./node_modules/@novu/shared/dist/esm/dto/message-template/message-template.dto.js","webpack://_N_E/./node_modules/@novu/shared/dist/esm/dto/subscriber/subscriber.dto.js","webpack://_N_E/./node_modules/@novu/shared/dist/esm/dto/topic/topic.dto.js","webpack://_N_E/./node_modules/@novu/shared/dist/esm/dto/workflows/workflow.dto.js","webpack://_N_E/./node_modules/@novu/shared/dist/esm/consts/data-retention/index.js","webpack://_N_E/./node_modules/@novu/shared/dist/esm/consts/providers/provider.enum.js","webpack://_N_E/./node_modules/@novu/shared/dist/esm/consts/providers/credentials/secure-credentials.js","webpack://_N_E/./node_modules/@novu/shared/dist/esm/consts/providers/credentials/provider-credentials.js","webpack://_N_E/./node_modules/@novu/shared/dist/esm/ui/marketing.js","webpack://_N_E/./node_modules/@novu/shared/dist/esm/consts/providers/channels/email.js","webpack://_N_E/./node_modules/@novu/shared/dist/esm/consts/providers/channels/sms.js","webpack://_N_E/./node_modules/@novu/shared/dist/esm/consts/providers/channels/chat.js","webpack://_N_E/./node_modules/@novu/shared/dist/esm/consts/providers/channels/push.js","webpack://_N_E/./node_modules/@novu/shared/dist/esm/consts/providers/channels/in-app.js","webpack://_N_E/./node_modules/@novu/shared/dist/esm/consts/providers/providers.js","webpack://_N_E/./node_modules/@novu/shared/dist/esm/consts/notification-item-buttons/notificationItemButton.js","webpack://_N_E/./node_modules/@novu/shared/dist/esm/consts/handlebar-helpers/handlebarHelpers.js","webpack://_N_E/./node_modules/@novu/shared/dist/esm/consts/handlebar-helpers/getTemplateVariables.js","webpack://_N_E/./node_modules/@novu/shared/dist/esm/consts/handlebar-helpers/index.js","webpack://_N_E/./node_modules/@novu/shared/dist/esm/consts/password-helper/passwordHelper.js","webpack://_N_E/./node_modules/@novu/shared/dist/esm/consts/filters/filters.js","webpack://_N_E/./node_modules/@novu/shared/dist/esm/consts/template-store/index.js","webpack://_N_E/./node_modules/@novu/shared/dist/esm/consts/rate-limiting/apiRateLimits.js","webpack://_N_E/./node_modules/@novu/shared/dist/esm/ui/utils.js","webpack://_N_E/./node_modules/axios/lib/helpers/bind.js","webpack://_N_E/./node_modules/axios/lib/utils.js","webpack://_N_E/./node_modules/axios/lib/core/AxiosError.js","webpack://_N_E/./node_modules/axios/lib/helpers/toFormData.js","webpack://_N_E/./node_modules/axios/lib/helpers/AxiosURLSearchParams.js","webpack://_N_E/./node_modules/axios/lib/helpers/buildURL.js","webpack://_N_E/./node_modules/axios/lib/core/InterceptorManager.js","webpack://_N_E/./node_modules/axios/lib/defaults/transitional.js","webpack://_N_E/./node_modules/axios/lib/platform/browser/index.js","webpack://_N_E/./node_modules/axios/lib/platform/browser/classes/URLSearchParams.js","webpack://_N_E/./node_modules/axios/lib/platform/browser/classes/FormData.js","webpack://_N_E/./node_modules/axios/lib/platform/browser/classes/Blob.js","webpack://_N_E/./node_modules/axios/lib/platform/common/utils.js","webpack://_N_E/./node_modules/axios/lib/platform/index.js","webpack://_N_E/./node_modules/axios/lib/helpers/formDataToJSON.js","webpack://_N_E/./node_modules/axios/lib/defaults/index.js","webpack://_N_E/./node_modules/axios/lib/helpers/toURLEncodedForm.js","webpack://_N_E/./node_modules/axios/lib/helpers/parseHeaders.js","webpack://_N_E/./node_modules/axios/lib/core/AxiosHeaders.js","webpack://_N_E/./node_modules/axios/lib/core/transformData.js","webpack://_N_E/./node_modules/axios/lib/cancel/isCancel.js","webpack://_N_E/./node_modules/axios/lib/cancel/CanceledError.js","webpack://_N_E/./node_modules/axios/lib/helpers/cookies.js","webpack://_N_E/./node_modules/axios/lib/core/buildFullPath.js","webpack://_N_E/./node_modules/axios/lib/helpers/isAbsoluteURL.js","webpack://_N_E/./node_modules/axios/lib/helpers/combineURLs.js","webpack://_N_E/./node_modules/axios/lib/helpers/isURLSameOrigin.js","webpack://_N_E/./node_modules/axios/lib/helpers/speedometer.js","webpack://_N_E/./node_modules/axios/lib/adapters/xhr.js","webpack://_N_E/./node_modules/axios/lib/adapters/adapters.js","webpack://_N_E/./node_modules/axios/lib/helpers/null.js","webpack://_N_E/./node_modules/axios/lib/core/settle.js","webpack://_N_E/./node_modules/axios/lib/helpers/parseProtocol.js","webpack://_N_E/./node_modules/axios/lib/core/dispatchRequest.js","webpack://_N_E/./node_modules/axios/lib/core/mergeConfig.js","webpack://_N_E/./node_modules/axios/lib/env/data.js","webpack://_N_E/./node_modules/axios/lib/helpers/validator.js","webpack://_N_E/./node_modules/axios/lib/core/Axios.js","webpack://_N_E/./node_modules/axios/lib/cancel/CancelToken.js","webpack://_N_E/./node_modules/axios/lib/helpers/HttpStatusCode.js","webpack://_N_E/./node_modules/axios/lib/axios.js","webpack://_N_E/./node_modules/axios/lib/helpers/spread.js","webpack://_N_E/./node_modules/axios/lib/helpers/isAxiosError.js","webpack://_N_E/./node_modules/@novu/shared/dist/esm/services/http-client/api.client.js","webpack://_N_E/./node_modules/@novu/shared/dist/esm/services/feature-flags/feature-flags.util.js","webpack://_N_E/./node_modules/@novu/shared/dist/esm/config/contextPath.js","webpack://_N_E/./node_modules/@novu/shared/dist/esm/config/job-queue.js","webpack://_N_E/./node_modules/@novu/shared/dist/esm/config/redisPrefix.js","webpack://_N_E/./node_modules/@tanstack/query-core/build/lib/focusManager.js","webpack://_N_E/./node_modules/@tanstack/query-core/build/lib/hydration.js","webpack://_N_E/./node_modules/@tanstack/query-core/build/lib/index.js","webpack://_N_E/./node_modules/@tanstack/query-core/build/lib/infiniteQueryBehavior.js","webpack://_N_E/./node_modules/@tanstack/query-core/build/lib/infiniteQueryObserver.js","webpack://_N_E/./node_modules/@tanstack/query-core/build/lib/mutation.js","webpack://_N_E/./node_modules/@tanstack/query-core/build/lib/mutationCache.js","webpack://_N_E/./node_modules/@tanstack/query-core/build/lib/mutationObserver.js","webpack://_N_E/./node_modules/@tanstack/query-core/build/lib/notifyManager.js","webpack://_N_E/./node_modules/@tanstack/query-core/build/lib/onlineManager.js","webpack://_N_E/./node_modules/@tanstack/query-core/build/lib/queriesObserver.js","webpack://_N_E/./node_modules/@tanstack/query-core/build/lib/query.js","webpack://_N_E/./node_modules/@tanstack/query-core/build/lib/queryCache.js","webpack://_N_E/./node_modules/@tanstack/query-core/build/lib/queryClient.js","webpack://_N_E/./node_modules/@tanstack/query-core/build/lib/queryObserver.js","webpack://_N_E/./node_modules/@tanstack/query-core/build/lib/removable.js","webpack://_N_E/./node_modules/@tanstack/query-core/build/lib/retryer.js","webpack://_N_E/./node_modules/@tanstack/query-core/build/lib/subscribable.js","webpack://_N_E/./node_modules/@tanstack/query-core/build/lib/utils.js","webpack://_N_E/./node_modules/engine.io-client/build/cjs/contrib/has-cors.js","webpack://_N_E/./node_modules/engine.io-client/build/cjs/contrib/parseqs.js","webpack://_N_E/./node_modules/engine.io-client/build/cjs/contrib/parseuri.js","webpack://_N_E/./node_modules/engine.io-client/build/cjs/contrib/yeast.js","webpack://_N_E/./node_modules/engine.io-client/build/cjs/globalThis.browser.js","webpack://_N_E/./node_modules/engine.io-client/build/cjs/index.js","webpack://_N_E/./node_modules/engine.io-client/build/cjs/socket.js","webpack://_N_E/./node_modules/engine.io-client/build/cjs/transport.js","webpack://_N_E/./node_modules/engine.io-client/build/cjs/transports/index.js","webpack://_N_E/./node_modules/engine.io-client/build/cjs/transports/polling.js","webpack://_N_E/./node_modules/engine.io-client/build/cjs/transports/websocket-constructor.browser.js","webpack://_N_E/./node_modules/engine.io-client/build/cjs/transports/websocket.js","webpack://_N_E/./node_modules/engine.io-client/build/cjs/transports/webtransport.js","webpack://_N_E/./node_modules/engine.io-client/build/cjs/transports/xmlhttprequest.browser.js","webpack://_N_E/./node_modules/engine.io-client/build/cjs/util.js","webpack://_N_E/./node_modules/engine.io-parser/build/cjs/commons.js","webpack://_N_E/./node_modules/engine.io-parser/build/cjs/contrib/base64-arraybuffer.js","webpack://_N_E/./node_modules/engine.io-parser/build/cjs/decodePacket.browser.js","webpack://_N_E/./node_modules/engine.io-parser/build/cjs/encodePacket.browser.js","webpack://_N_E/./node_modules/engine.io-parser/build/cjs/index.js","webpack://_N_E/./node_modules/socket.io-client/build/cjs/contrib/backo2.js","webpack://_N_E/./node_modules/socket.io-client/build/cjs/index.js","webpack://_N_E/./node_modules/socket.io-client/build/cjs/manager.js","webpack://_N_E/./node_modules/socket.io-client/build/cjs/on.js","webpack://_N_E/./node_modules/socket.io-client/build/cjs/socket.js","webpack://_N_E/./node_modules/socket.io-client/build/cjs/url.js","webpack://_N_E/./node_modules/socket.io-parser/build/cjs/binary.js","webpack://_N_E/./node_modules/socket.io-parser/build/cjs/index.js","webpack://_N_E/./node_modules/socket.io-parser/build/cjs/is-binary.js","webpack://_N_E/./node_modules/@radix-ui/react-collapsible/dist/index.mjs","webpack://_N_E/./node_modules/@radix-ui/react-switch/dist/index.mjs","webpack://_N_E/./node_modules/@radix-ui/react-use-previous/dist/index.mjs","webpack://_N_E/./node_modules/@socket.io/component-emitter/index.mjs","webpack://_N_E/./node_modules/@tanstack/query-core/build/lib/logger.mjs"],"sourcesContent":["var __awaiter = (this && this.__awaiter) || function (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};\nvar __rest = (this && this.__rest) || function (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};\nimport { HttpClient, } from '@novu/shared';\nexport class ApiService {\n constructor(backendUrl) {\n this.backendUrl = backendUrl;\n this.isAuthenticated = false;\n this.httpClient = new HttpClient(backendUrl);\n }\n setAuthorizationToken(token) {\n this.httpClient.setAuthorizationToken(token);\n this.isAuthenticated = true;\n }\n disposeAuthorizationToken() {\n this.httpClient.disposeAuthorizationToken();\n this.isAuthenticated = false;\n }\n updateAction(messageId, executedType, status, payload) {\n return __awaiter(this, void 0, void 0, function* () {\n return yield this.httpClient.post(`/widgets/messages/${messageId}/actions/${executedType}`, {\n executedType,\n status,\n payload,\n });\n });\n }\n markMessageAs(messageId, mark) {\n return __awaiter(this, void 0, void 0, function* () {\n const markPayload = mark.seen === undefined && mark.read === undefined\n ? { seen: true }\n : mark;\n return yield this.httpClient.post(`/widgets/messages/markAs`, {\n messageId,\n mark: markPayload,\n });\n });\n }\n removeMessage(messageId) {\n return __awaiter(this, void 0, void 0, function* () {\n return yield this.httpClient.delete(`/widgets/messages/${messageId}`, {});\n });\n }\n removeMessages(messageIds) {\n return __awaiter(this, void 0, void 0, function* () {\n return yield this.httpClient.post(`/widgets/messages/bulk/delete`, {\n messageIds: messageIds,\n });\n });\n }\n removeAllMessages(feedId) {\n return __awaiter(this, void 0, void 0, function* () {\n const url = feedId\n ? `/widgets/messages?feedId=${feedId}`\n : `/widgets/messages`;\n return yield this.httpClient.delete(url);\n });\n }\n markAllMessagesAsRead(feedId) {\n return __awaiter(this, void 0, void 0, function* () {\n return yield this.httpClient.post(`/widgets/messages/read`, {\n feedId,\n });\n });\n }\n markAllMessagesAsSeen(feedId) {\n return __awaiter(this, void 0, void 0, function* () {\n return yield this.httpClient.post(`/widgets/messages/seen`, {\n feedId,\n });\n });\n }\n getNotificationsList(page, _a = {}) {\n var { payload } = _a, rest = __rest(_a, [\"payload\"]);\n return __awaiter(this, void 0, void 0, function* () {\n const payloadString = payload ? btoa(JSON.stringify(payload)) : undefined;\n return yield this.httpClient.getFullResponse(`/widgets/notifications/feed`, Object.assign({ page, payload: payloadString }, rest));\n });\n }\n initializeSession(appId, subscriberId, hmacHash = null) {\n return __awaiter(this, void 0, void 0, function* () {\n return yield this.httpClient.post(`/widgets/session/initialize`, {\n applicationIdentifier: appId,\n subscriberId: subscriberId,\n hmacHash,\n });\n });\n }\n postUsageLog(name, payload) {\n return __awaiter(this, void 0, void 0, function* () {\n return yield this.httpClient.post('/widgets/usage/log', {\n name: `[Widget] - ${name}`,\n payload,\n });\n });\n }\n getUnseenCount(query = {}) {\n return __awaiter(this, void 0, void 0, function* () {\n return yield this.httpClient.get('/widgets/notifications/unseen', query);\n });\n }\n getUnreadCount(query = {}) {\n return __awaiter(this, void 0, void 0, function* () {\n return yield this.httpClient.get('/widgets/notifications/unread', query);\n });\n }\n getTabCount(query = {}) {\n return __awaiter(this, void 0, void 0, function* () {\n return yield this.httpClient.get('/widgets/notifications/count', query);\n });\n }\n getOrganization() {\n return __awaiter(this, void 0, void 0, function* () {\n return this.httpClient.get('/widgets/organization');\n });\n }\n getUserPreference() {\n return __awaiter(this, void 0, void 0, function* () {\n return this.httpClient.get('/widgets/preferences');\n });\n }\n getUserGlobalPreference() {\n return __awaiter(this, void 0, void 0, function* () {\n return this.httpClient.get('/widgets/preferences/global');\n });\n }\n updateSubscriberPreference(templateId, channelType, enabled) {\n return __awaiter(this, void 0, void 0, function* () {\n return yield this.httpClient.patch(`/widgets/preferences/${templateId}`, {\n channel: { type: channelType, enabled },\n });\n });\n }\n updateSubscriberGlobalPreference(preferences, enabled) {\n return __awaiter(this, void 0, void 0, function* () {\n return yield this.httpClient.patch(`/widgets/preferences`, {\n preferences: preferences.map((preference) => (Object.assign(Object.assign({}, preference), { type: preference.channelType }))),\n enabled,\n });\n });\n }\n}\n","\"use strict\";\nvar __createBinding = (this && this.__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}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\n__exportStar(require(\"./lib\"), exports);\n__exportStar(require(\"./utils\"), exports);\n","\"use strict\";\nvar __awaiter = (this && this.__awaiter) || function (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};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.HeadlessService = exports.NOTIFICATION_CENTER_TOKEN_KEY = void 0;\nconst query_core_1 = require(\"@tanstack/query-core\");\nconst socket_io_client_1 = __importDefault(require(\"socket.io-client\"));\nconst client_1 = require(\"@novu/client\");\nconst shared_1 = require(\"@novu/shared\");\nconst query_service_1 = require(\"./query.service\");\nconst utils_1 = require(\"../utils\");\nexports.NOTIFICATION_CENTER_TOKEN_KEY = 'nc_token';\nconst isBrowser = typeof window !== 'undefined';\nconst SESSION_NOT_INITIALIZED_ERROR = 'Session is not initialized, please use the initializeSession method first';\nconst getToken = () => {\n if (isBrowser) {\n return localStorage.getItem(exports.NOTIFICATION_CENTER_TOKEN_KEY);\n }\n return null;\n};\nclass HeadlessService {\n constructor(options) {\n var _a, _b, _c, _d, _e, _f, _g, _h, _j;\n this.options = options;\n this.queryClient = null;\n this.session = null;\n this.socket = null;\n this.sessionQueryOptions = {\n queryKey: utils_1.SESSION_QUERY_KEY,\n cacheTime: Infinity,\n staleTime: Infinity,\n queryFn: () => this.api.initializeSession(this.options.applicationIdentifier, this.options.subscriberId, this.options.subscriberHash),\n };\n this.organizationQueryOptions = {\n queryKey: utils_1.ORGANIZATION_QUERY_KEY,\n cacheTime: Infinity,\n staleTime: Infinity,\n queryFn: () => this.api.getOrganization(),\n };\n this.unseenCountQueryOptions = {\n queryKey: utils_1.UNSEEN_COUNT_QUERY_KEY,\n queryFn: () => this.api.getUnseenCount(),\n };\n this.unreadCountQueryOptions = {\n queryKey: utils_1.UNREAD_COUNT_QUERY_KEY,\n queryFn: () => this.api.getUnreadCount(),\n };\n this.userPreferencesQueryOptions = {\n queryKey: utils_1.USER_PREFERENCES_QUERY_KEY,\n queryFn: () => this.api.getUserPreference(),\n };\n this.userGlobalPreferencesQueryOptions = {\n queryKey: utils_1.USER_GLOBAL_PREFERENCES_QUERY_KEY,\n queryFn: () => this.api.getUserGlobalPreference(),\n };\n this.callFetchListener = (result, listener) => listener({\n data: result.data,\n error: result.error,\n status: result.status,\n isLoading: result.isLoading,\n isFetching: result.isFetching,\n isError: result.isError,\n });\n this.callFetchListenerWithPagination = (result, listener) => listener({\n data: result.data,\n error: result.error,\n status: result.status,\n isLoading: result.isLoading,\n isFetching: result.isFetching,\n isError: result.isError,\n });\n this.callUpdateListener = (result, listener) => listener({\n data: result.data,\n error: result.error,\n status: result.status,\n isLoading: result.isLoading,\n isError: result.isError,\n });\n const backendUrl = (_a = options.backendUrl) !== null && _a !== void 0 ? _a : 'https://api.novu.co';\n const token = getToken();\n this.api = new client_1.ApiService(backendUrl);\n this.applyToken(token);\n this.queryClient = new query_core_1.QueryClient({\n defaultOptions: {\n queries: Object.assign({ refetchOnWindowFocus: false, retry: (_c = (_b = options === null || options === void 0 ? void 0 : options.config) === null || _b === void 0 ? void 0 : _b.retry) !== null && _c !== void 0 ? _c : 3 }, (((_d = options === null || options === void 0 ? void 0 : options.config) === null || _d === void 0 ? void 0 : _d.retryDelay) && {\n retryDelay: (_e = options === null || options === void 0 ? void 0 : options.config) === null || _e === void 0 ? void 0 : _e.retryDelay,\n })),\n mutations: Object.assign({ retry: (_g = (_f = options === null || options === void 0 ? void 0 : options.config) === null || _f === void 0 ? void 0 : _f.retry) !== null && _g !== void 0 ? _g : 3 }, (((_h = options === null || options === void 0 ? void 0 : options.config) === null || _h === void 0 ? void 0 : _h.retryDelay) && {\n retryDelay: (_j = options === null || options === void 0 ? void 0 : options.config) === null || _j === void 0 ? void 0 : _j.retryDelay,\n })),\n },\n });\n this.queryService = new query_service_1.QueryService(this.queryClient);\n }\n assertSessionInitialized() {\n if (!this.session) {\n throw new Error(SESSION_NOT_INITIALIZED_ERROR);\n }\n }\n applyToken(newToken) {\n if (newToken) {\n isBrowser &&\n localStorage.setItem(exports.NOTIFICATION_CENTER_TOKEN_KEY, newToken);\n this.api.setAuthorizationToken(newToken);\n }\n else {\n isBrowser && localStorage.removeItem(exports.NOTIFICATION_CENTER_TOKEN_KEY);\n this.api.disposeAuthorizationToken();\n }\n }\n initializeSocket(token) {\n var _a;\n const socketUrl = (_a = this.options.socketUrl) !== null && _a !== void 0 ? _a : 'https://ws.novu.co';\n if (this.socket) {\n this.socket.disconnect();\n }\n if (token) {\n this.socket = (0, socket_io_client_1.default)(socketUrl, {\n reconnectionDelayMax: 10000,\n transports: ['websocket'],\n query: {\n token: `${token}`,\n },\n });\n this.socket.on('connect_error', (error) => {\n console.error(error.message);\n });\n }\n }\n initializeSession({ listener, onSuccess, onError, }) {\n this.session = null;\n this.queryClient.clear();\n const { unsubscribe } = this.queryService.subscribeQuery({\n options: Object.assign(Object.assign({}, this.sessionQueryOptions), { onSuccess: (session) => {\n this.session = session;\n this.applyToken(session.token);\n this.initializeSocket(session.token);\n onSuccess === null || onSuccess === void 0 ? void 0 : onSuccess(session);\n }, onError }),\n listener: (result) => this.callFetchListener(result, listener),\n });\n return unsubscribe;\n }\n fetchOrganization({ listener, onSuccess, onError, }) {\n return __awaiter(this, void 0, void 0, function* () {\n this.assertSessionInitialized();\n const { unsubscribe } = this.queryService.subscribeQuery({\n options: Object.assign(Object.assign({}, this.organizationQueryOptions), { onSuccess,\n onError }),\n listener: (result) => this.callFetchListener(result, listener),\n });\n return unsubscribe;\n });\n }\n fetchUnseenCount({ listener, onSuccess, onError, }) {\n this.assertSessionInitialized();\n const { unsubscribe } = this.queryService.subscribeQuery({\n options: Object.assign(Object.assign({}, this.unseenCountQueryOptions), { onSuccess,\n onError }),\n listener: (result) => this.callFetchListener(result, listener),\n });\n return unsubscribe;\n }\n fetchUnreadCount({ listener, onSuccess, onError, }) {\n this.assertSessionInitialized();\n const { unsubscribe } = this.queryService.subscribeQuery({\n options: Object.assign(Object.assign({}, this.unreadCountQueryOptions), { onSuccess,\n onError }),\n listener: (result) => this.callFetchListener(result, listener),\n });\n return unsubscribe;\n }\n listenNotificationReceive({ listener, }) {\n this.assertSessionInitialized();\n if (this.socket) {\n this.socket.on(shared_1.WebSocketEventEnum.RECEIVED, (data) => {\n if (data === null || data === void 0 ? void 0 : data.message) {\n this.queryClient.refetchQueries(utils_1.NOTIFICATIONS_QUERY_KEY, {\n exact: false,\n });\n listener(data.message);\n }\n });\n }\n return () => {\n if (this.socket) {\n this.socket.off(shared_1.WebSocketEventEnum.RECEIVED);\n }\n };\n }\n listenUnseenCountChange({ listener, }) {\n this.assertSessionInitialized();\n if (this.socket) {\n this.socket.on(shared_1.WebSocketEventEnum.UNSEEN, (data) => {\n if (Number.isInteger(data === null || data === void 0 ? void 0 : data.unseenCount)) {\n this.queryClient.setQueryData(utils_1.UNSEEN_COUNT_QUERY_KEY, (oldData) => { var _a; return ({ count: (_a = data === null || data === void 0 ? void 0 : data.unseenCount) !== null && _a !== void 0 ? _a : oldData.count }); });\n listener(data.unseenCount);\n }\n });\n }\n return () => {\n if (this.socket) {\n this.socket.off(shared_1.WebSocketEventEnum.UNSEEN);\n }\n };\n }\n listenUnreadCountChange({ listener, }) {\n this.assertSessionInitialized();\n if (this.socket) {\n this.socket.on(shared_1.WebSocketEventEnum.UNREAD, (data) => {\n if (Number.isInteger(data === null || data === void 0 ? void 0 : data.unreadCount)) {\n this.queryClient.setQueryData(utils_1.UNREAD_COUNT_QUERY_KEY, (oldData) => { var _a; return ({ count: (_a = data === null || data === void 0 ? void 0 : data.unreadCount) !== null && _a !== void 0 ? _a : oldData.count }); });\n listener(data.unreadCount);\n }\n });\n }\n return () => {\n if (this.socket) {\n this.socket.off(shared_1.WebSocketEventEnum.UNREAD);\n }\n };\n }\n fetchNotifications({ page = 0, storeId = 'default_store', query = {}, listener, onSuccess, onError, }) {\n this.assertSessionInitialized();\n const { unsubscribe } = this.queryService.subscribeQuery({\n options: {\n queryKey: [...utils_1.NOTIFICATIONS_QUERY_KEY, storeId, page, query],\n queryFn: () => this.api.getNotificationsList(page, query),\n onSuccess,\n onError,\n },\n listener: (result) => this.callFetchListenerWithPagination(result, listener),\n });\n return unsubscribe;\n }\n fetchUserPreferences({ listener, onSuccess, onError, }) {\n this.assertSessionInitialized();\n const { unsubscribe } = this.queryService.subscribeQuery({\n options: Object.assign(Object.assign({}, this.userPreferencesQueryOptions), { onSuccess,\n onError }),\n listener: (result) => this.callFetchListener(result, listener),\n });\n return unsubscribe;\n }\n fetchUserGlobalPreferences({ listener, onSuccess, onError, }) {\n this.assertSessionInitialized();\n const { unsubscribe } = this.queryService.subscribeQuery({\n options: Object.assign(Object.assign({}, this.userGlobalPreferencesQueryOptions), { onSuccess,\n onError }),\n listener: (result) => this.callFetchListener(result, listener),\n });\n return unsubscribe;\n }\n updateUserPreferences({ templateId, channelType, checked, listener, onSuccess, onError, }) {\n return __awaiter(this, void 0, void 0, function* () {\n this.assertSessionInitialized();\n const { result, unsubscribe } = this.queryService.subscribeMutation({\n options: {\n mutationFn: (variables) => this.api.updateSubscriberPreference(variables.templateId, variables.channelType, variables.checked),\n onSuccess: (data) => {\n this.queryClient.setQueryData(utils_1.USER_PREFERENCES_QUERY_KEY, (oldUserPreferences) => oldUserPreferences.map((setting) => {\n if (setting.template._id === data.template._id) {\n return data;\n }\n return setting;\n }));\n },\n },\n listener: (res) => this.callUpdateListener(res, listener),\n });\n result\n .mutate({ templateId, channelType, checked })\n .then((data) => {\n onSuccess === null || onSuccess === void 0 ? void 0 : onSuccess(data);\n return data;\n })\n .catch((error) => {\n onError === null || onError === void 0 ? void 0 : onError(error);\n })\n .finally(() => {\n unsubscribe();\n });\n });\n }\n updateUserGlobalPreferences({ preferences, enabled, listener, onSuccess, onError, }) {\n return __awaiter(this, void 0, void 0, function* () {\n this.assertSessionInitialized();\n const { result, unsubscribe } = this.queryService.subscribeMutation({\n options: {\n mutationFn: (variables) => this.api.updateSubscriberGlobalPreference(variables.preferences, variables.enabled),\n onSuccess: (data) => {\n this.queryClient.setQueryData(utils_1.USER_GLOBAL_PREFERENCES_QUERY_KEY, () => [data]);\n },\n },\n listener: (res) => this.callUpdateListener(res, listener),\n });\n result\n .mutate({ preferences, enabled })\n .then((data) => {\n onSuccess === null || onSuccess === void 0 ? void 0 : onSuccess(data);\n return data;\n })\n .catch((error) => {\n onError === null || onError === void 0 ? void 0 : onError(error);\n })\n .finally(() => {\n unsubscribe();\n });\n });\n }\n markNotificationsAsRead({ messageId, listener, onSuccess, onError, }) {\n return __awaiter(this, void 0, void 0, function* () {\n this.assertSessionInitialized();\n const { result, unsubscribe } = this.queryService.subscribeMutation({\n options: {\n mutationFn: (variables) => this.api.markMessageAs(variables.messageId, {\n seen: true,\n read: true,\n }),\n onSuccess: (data) => {\n this.queryClient.refetchQueries(utils_1.NOTIFICATIONS_QUERY_KEY, {\n exact: false,\n });\n },\n },\n listener: (res) => this.callUpdateListener(res, listener),\n });\n result\n .mutate({ messageId })\n .then((data) => {\n onSuccess === null || onSuccess === void 0 ? void 0 : onSuccess(data);\n return data;\n })\n .catch((error) => {\n onError === null || onError === void 0 ? void 0 : onError(error);\n })\n .finally(() => {\n unsubscribe();\n });\n });\n }\n markNotificationsAsSeen({ messageId, listener, onSuccess, onError, }) {\n return __awaiter(this, void 0, void 0, function* () {\n this.assertSessionInitialized();\n const { result, unsubscribe } = this.queryService.subscribeMutation({\n options: {\n mutationFn: (variables) => this.api.markMessageAs(variables.messageId, {\n seen: true,\n }),\n onSuccess: (data) => {\n this.queryClient.refetchQueries(utils_1.NOTIFICATIONS_QUERY_KEY, {\n exact: false,\n });\n },\n },\n listener: (res) => this.callUpdateListener(res, listener),\n });\n result\n .mutate({ messageId })\n .then((data) => {\n onSuccess === null || onSuccess === void 0 ? void 0 : onSuccess(data);\n return data;\n })\n .catch((error) => {\n onError === null || onError === void 0 ? void 0 : onError(error);\n })\n .finally(() => {\n unsubscribe();\n });\n });\n }\n markNotificationsAs({ messageId, mark, listener, onSuccess, onError, }) {\n return __awaiter(this, void 0, void 0, function* () {\n this.assertSessionInitialized();\n const { result, unsubscribe } = this.queryService.subscribeMutation({\n options: {\n mutationFn: (variables) => this.api.markMessageAs(variables.messageId, mark),\n onSuccess: (data) => {\n this.queryClient.refetchQueries(utils_1.NOTIFICATIONS_QUERY_KEY, {\n exact: false,\n });\n },\n },\n listener: (res) => this.callUpdateListener(res, listener),\n });\n result\n .mutate({ messageId })\n .then((data) => {\n onSuccess === null || onSuccess === void 0 ? void 0 : onSuccess(data);\n return data;\n })\n .catch((error) => {\n onError === null || onError === void 0 ? void 0 : onError(error);\n })\n .finally(() => {\n unsubscribe();\n });\n });\n }\n removeNotification({ messageId, listener, onSuccess, onError, }) {\n return __awaiter(this, void 0, void 0, function* () {\n this.assertSessionInitialized();\n const { result, unsubscribe } = this.queryService.subscribeMutation({\n options: {\n mutationFn: (variables) => this.api.removeMessage(variables.messageId),\n onSuccess: (data) => {\n this.queryClient.refetchQueries(utils_1.NOTIFICATIONS_QUERY_KEY, {\n exact: false,\n });\n },\n },\n listener: (res) => this.callUpdateListener(res, listener),\n });\n result\n .mutate({ messageId })\n .then((data) => {\n onSuccess === null || onSuccess === void 0 ? void 0 : onSuccess(data);\n return data;\n })\n .catch((error) => {\n onError === null || onError === void 0 ? void 0 : onError(error);\n })\n .finally(() => {\n unsubscribe();\n });\n });\n }\n removeNotifications({ messageIds, listener, onSuccess, onError, }) {\n return __awaiter(this, void 0, void 0, function* () {\n this.assertSessionInitialized();\n const { result, unsubscribe } = this.queryService.subscribeMutation({\n options: {\n mutationFn: (variables) => this.api.removeMessages(variables.messageIds),\n onSuccess: (data) => {\n this.queryClient.refetchQueries(utils_1.NOTIFICATIONS_QUERY_KEY, {\n exact: false,\n });\n },\n },\n listener: (res) => this.callUpdateListener(res, listener),\n });\n result\n .mutate({ messageIds })\n .then((data) => {\n onSuccess === null || onSuccess === void 0 ? void 0 : onSuccess(data);\n return data;\n })\n .catch((error) => {\n onError === null || onError === void 0 ? void 0 : onError(error);\n })\n .finally(() => {\n unsubscribe();\n });\n });\n }\n updateAction({ messageId, actionButtonType, status, payload, listener, onSuccess, onError, }) {\n return __awaiter(this, void 0, void 0, function* () {\n this.assertSessionInitialized();\n const { result, unsubscribe } = this.queryService.subscribeMutation({\n options: {\n mutationFn: (variables) => this.api.updateAction(variables.messageId, variables.actionButtonType, variables.status, variables.payload),\n onSuccess: (data) => {\n this.queryClient.refetchQueries(utils_1.NOTIFICATIONS_QUERY_KEY, {\n exact: false,\n });\n },\n },\n listener: (res) => this.callUpdateListener(res, listener),\n });\n result\n .mutate({ messageId, actionButtonType, status, payload })\n .then((data) => {\n onSuccess === null || onSuccess === void 0 ? void 0 : onSuccess(data);\n return data;\n })\n .catch((error) => {\n onError === null || onError === void 0 ? void 0 : onError(error);\n })\n .finally(() => {\n unsubscribe();\n });\n });\n }\n markAllMessagesAsRead({ listener, onSuccess, onError, feedId, }) {\n return __awaiter(this, void 0, void 0, function* () {\n this.assertSessionInitialized();\n const { result, unsubscribe } = this.queryService.subscribeMutation({\n options: {\n mutationFn: (variables) => this.api.markAllMessagesAsRead(variables === null || variables === void 0 ? void 0 : variables.feedId),\n onSuccess: (data) => {\n this.queryClient.refetchQueries(utils_1.NOTIFICATIONS_QUERY_KEY, {\n exact: false,\n });\n },\n },\n listener: (res) => this.callUpdateListener(res, listener),\n });\n result\n .mutate({ feedId })\n .then((data) => {\n onSuccess === null || onSuccess === void 0 ? void 0 : onSuccess(data);\n return data;\n })\n .catch((error) => {\n onError === null || onError === void 0 ? void 0 : onError(error);\n })\n .finally(() => {\n unsubscribe();\n });\n });\n }\n markAllMessagesAsSeen({ listener, onSuccess, onError, feedId, }) {\n return __awaiter(this, void 0, void 0, function* () {\n this.assertSessionInitialized();\n const { result, unsubscribe } = this.queryService.subscribeMutation({\n options: {\n mutationFn: (variables) => this.api.markAllMessagesAsSeen(variables === null || variables === void 0 ? void 0 : variables.feedId),\n onSuccess: (data) => {\n this.queryClient.refetchQueries(utils_1.NOTIFICATIONS_QUERY_KEY, {\n exact: false,\n });\n },\n },\n listener: (res) => this.callUpdateListener(res, listener),\n });\n result\n .mutate({ feedId })\n .then((data) => {\n onSuccess === null || onSuccess === void 0 ? void 0 : onSuccess(data);\n return data;\n })\n .catch((error) => {\n onError === null || onError === void 0 ? void 0 : onError(error);\n })\n .finally(() => {\n unsubscribe();\n });\n });\n }\n removeAllNotifications({ feedId, listener, onSuccess, onError, }) {\n return __awaiter(this, void 0, void 0, function* () {\n this.assertSessionInitialized();\n const { result, unsubscribe } = this.queryService.subscribeMutation({\n options: {\n mutationFn: (variables) => this.api.removeAllMessages(variables === null || variables === void 0 ? void 0 : variables.feedId),\n onSuccess: (data) => {\n this.queryClient.removeQueries(utils_1.NOTIFICATIONS_QUERY_KEY, {\n exact: false,\n });\n },\n },\n listener: (res) => this.callUpdateListener(res, listener),\n });\n result\n .mutate({ feedId })\n .then((data) => {\n onSuccess === null || onSuccess === void 0 ? void 0 : onSuccess();\n return data;\n })\n .catch((error) => {\n onError === null || onError === void 0 ? void 0 : onError(error);\n })\n .finally(() => {\n unsubscribe();\n });\n });\n }\n}\nexports.HeadlessService = HeadlessService;\n","\"use strict\";\nvar __createBinding = (this && this.__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}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\n__exportStar(require(\"./headless.service\"), exports);\n__exportStar(require(\"./types\"), exports);\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.QueryService = void 0;\nconst query_core_1 = require(\"@tanstack/query-core\");\nclass QueryService {\n constructor(queryClient) {\n this.queryClient = queryClient !== null && queryClient !== void 0 ? queryClient : new query_core_1.QueryClient();\n this.queryClient.mount();\n }\n subscribeQuery({ options, listener, }) {\n const defaultedOptions = this.queryClient.defaultQueryOptions(options);\n const queryObserver = new query_core_1.QueryObserver(this.queryClient, defaultedOptions);\n const result = queryObserver.getOptimisticResult(defaultedOptions);\n const unsubscribe = queryObserver.subscribe(listener);\n return { result, unsubscribe, queryObserver };\n }\n subscribeMutation({ options, listener, }) {\n const defaultedOptions = this.queryClient.defaultMutationOptions(options);\n const mutationObserver = new query_core_1.MutationObserver(this.queryClient, defaultedOptions);\n const result = mutationObserver.getCurrentResult();\n const unsubscribe = mutationObserver.subscribe(listener);\n return { result, unsubscribe, mutationObserver };\n }\n}\nexports.QueryService = QueryService;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.WebSocketEventEnum = exports.MessageActionStatusEnum = exports.ChannelTypeEnum = exports.ButtonTypeEnum = void 0;\nconst shared_1 = require(\"@novu/shared\");\nObject.defineProperty(exports, \"ButtonTypeEnum\", { enumerable: true, get: function () { return shared_1.ButtonTypeEnum; } });\nObject.defineProperty(exports, \"ChannelTypeEnum\", { enumerable: true, get: function () { return shared_1.ChannelTypeEnum; } });\nObject.defineProperty(exports, \"MessageActionStatusEnum\", { enumerable: true, get: function () { return shared_1.MessageActionStatusEnum; } });\nObject.defineProperty(exports, \"WebSocketEventEnum\", { enumerable: true, get: function () { return shared_1.WebSocketEventEnum; } });\n","\"use strict\";\nvar __createBinding = (this && this.__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}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\n__exportStar(require(\"./query-keys\"), exports);\n__exportStar(require(\"./types\"), exports);\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.UNREAD_COUNT_QUERY_KEY = exports.UNSEEN_COUNT_QUERY_KEY = exports.USER_GLOBAL_PREFERENCES_QUERY_KEY = exports.USER_PREFERENCES_QUERY_KEY = exports.NOTIFICATIONS_QUERY_KEY = exports.ORGANIZATION_QUERY_KEY = exports.SESSION_QUERY_KEY = void 0;\nexports.SESSION_QUERY_KEY = ['session'];\nexports.ORGANIZATION_QUERY_KEY = ['organization'];\nexports.NOTIFICATIONS_QUERY_KEY = ['notifications'];\nexports.USER_PREFERENCES_QUERY_KEY = ['user_preferences'];\nexports.USER_GLOBAL_PREFERENCES_QUERY_KEY = ['user_global_preferences'];\nexports.UNSEEN_COUNT_QUERY_KEY = ['unseen_count'];\nexports.UNREAD_COUNT_QUERY_KEY = ['unread_count'];\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n","export var AuthProviderEnum;\n(function (AuthProviderEnum) {\n AuthProviderEnum[\"GOOGLE\"] = \"google\";\n AuthProviderEnum[\"GITHUB\"] = \"github\";\n})(AuthProviderEnum || (AuthProviderEnum = {}));\nexport var UserRoleEnum;\n(function (UserRoleEnum) {\n UserRoleEnum[\"USER\"] = \"user\";\n})(UserRoleEnum || (UserRoleEnum = {}));\n","export var MemberRoleEnum;\n(function (MemberRoleEnum) {\n MemberRoleEnum[\"ADMIN\"] = \"admin\";\n MemberRoleEnum[\"MEMBER\"] = \"member\";\n})(MemberRoleEnum || (MemberRoleEnum = {}));\n","export var MemberStatusEnum;\n(function (MemberStatusEnum) {\n MemberStatusEnum[\"NEW\"] = \"new\";\n MemberStatusEnum[\"ACTIVE\"] = \"active\";\n MemberStatusEnum[\"INVITED\"] = \"invited\";\n})(MemberStatusEnum || (MemberStatusEnum = {}));\n","export class IGroupedBlueprint {\n}\nexport var TriggerTypeEnum;\n(function (TriggerTypeEnum) {\n TriggerTypeEnum[\"EVENT\"] = \"event\";\n})(TriggerTypeEnum || (TriggerTypeEnum = {}));\nexport var TriggerContextTypeEnum;\n(function (TriggerContextTypeEnum) {\n TriggerContextTypeEnum[\"TENANT\"] = \"tenant\";\n TriggerContextTypeEnum[\"ACTOR\"] = \"actor\";\n})(TriggerContextTypeEnum || (TriggerContextTypeEnum = {}));\n","export var ExecutionDetailsSourceEnum;\n(function (ExecutionDetailsSourceEnum) {\n ExecutionDetailsSourceEnum[\"CREDENTIALS\"] = \"Credentials\";\n ExecutionDetailsSourceEnum[\"INTERNAL\"] = \"Internal\";\n ExecutionDetailsSourceEnum[\"PAYLOAD\"] = \"Payload\";\n ExecutionDetailsSourceEnum[\"WEBHOOK\"] = \"Webhook\";\n})(ExecutionDetailsSourceEnum || (ExecutionDetailsSourceEnum = {}));\nexport var ExecutionDetailsStatusEnum;\n(function (ExecutionDetailsStatusEnum) {\n ExecutionDetailsStatusEnum[\"SUCCESS\"] = \"Success\";\n ExecutionDetailsStatusEnum[\"WARNING\"] = \"Warning\";\n ExecutionDetailsStatusEnum[\"FAILED\"] = \"Failed\";\n ExecutionDetailsStatusEnum[\"PENDING\"] = \"Pending\";\n ExecutionDetailsStatusEnum[\"QUEUED\"] = \"Queued\";\n ExecutionDetailsStatusEnum[\"READ_CONFIRMATION\"] = \"ReadConfirmation\";\n})(ExecutionDetailsStatusEnum || (ExecutionDetailsStatusEnum = {}));\n","export var ButtonTypeEnum;\n(function (ButtonTypeEnum) {\n ButtonTypeEnum[\"PRIMARY\"] = \"primary\";\n ButtonTypeEnum[\"SECONDARY\"] = \"secondary\";\n ButtonTypeEnum[\"CLICKED\"] = \"clicked\";\n})(ButtonTypeEnum || (ButtonTypeEnum = {}));\n","export var MessageActionStatusEnum;\n(function (MessageActionStatusEnum) {\n MessageActionStatusEnum[\"PENDING\"] = \"pending\";\n MessageActionStatusEnum[\"DONE\"] = \"done\";\n})(MessageActionStatusEnum || (MessageActionStatusEnum = {}));\n","export const NOVU_ENCRYPTION_SUB_MASK = 'nvsk.';\n","export var FieldOperatorEnum;\n(function (FieldOperatorEnum) {\n FieldOperatorEnum[\"ALL_IN\"] = \"ALL_IN\";\n FieldOperatorEnum[\"ANY_IN\"] = \"ANY_IN\";\n FieldOperatorEnum[\"BETWEEN\"] = \"BETWEEN\";\n FieldOperatorEnum[\"EQUAL\"] = \"EQUAL\";\n FieldOperatorEnum[\"IN\"] = \"IN\";\n FieldOperatorEnum[\"IS_DEFINED\"] = \"IS_DEFINED\";\n FieldOperatorEnum[\"LARGER\"] = \"LARGER\";\n FieldOperatorEnum[\"LARGER_EQUAL\"] = \"LARGER_EQUAL\";\n FieldOperatorEnum[\"LIKE\"] = \"LIKE\";\n FieldOperatorEnum[\"NOT_BETWEEN\"] = \"NOT_BETWEEN\";\n FieldOperatorEnum[\"NOT_EQUAL\"] = \"NOT_EQUAL\";\n FieldOperatorEnum[\"NOT_IN\"] = \"NOT_IN\";\n FieldOperatorEnum[\"NOT_LIKE\"] = \"NOT_LIKE\";\n FieldOperatorEnum[\"SMALLER\"] = \"SMALLER\";\n FieldOperatorEnum[\"SMALLER_EQUAL\"] = \"SMALLER_EQUAL\";\n})(FieldOperatorEnum || (FieldOperatorEnum = {}));\nexport var FieldLogicalOperatorEnum;\n(function (FieldLogicalOperatorEnum) {\n FieldLogicalOperatorEnum[\"AND\"] = \"AND\";\n FieldLogicalOperatorEnum[\"OR\"] = \"OR\";\n})(FieldLogicalOperatorEnum || (FieldLogicalOperatorEnum = {}));\n","export var TimeOperatorEnum;\n(function (TimeOperatorEnum) {\n TimeOperatorEnum[\"DAYS\"] = \"days\";\n TimeOperatorEnum[\"HOURS\"] = \"hours\";\n TimeOperatorEnum[\"MINUTES\"] = \"minutes\";\n})(TimeOperatorEnum || (TimeOperatorEnum = {}));\nexport var FilterPartTypeEnum;\n(function (FilterPartTypeEnum) {\n FilterPartTypeEnum[\"PAYLOAD\"] = \"payload\";\n FilterPartTypeEnum[\"SUBSCRIBER\"] = \"subscriber\";\n FilterPartTypeEnum[\"WEBHOOK\"] = \"webhook\";\n FilterPartTypeEnum[\"IS_ONLINE\"] = \"isOnline\";\n FilterPartTypeEnum[\"IS_ONLINE_IN_LAST\"] = \"isOnlineInLast\";\n FilterPartTypeEnum[\"PREVIOUS_STEP\"] = \"previousStep\";\n FilterPartTypeEnum[\"TENANT\"] = \"tenant\";\n})(FilterPartTypeEnum || (FilterPartTypeEnum = {}));\nexport var PreviousStepTypeEnum;\n(function (PreviousStepTypeEnum) {\n PreviousStepTypeEnum[\"READ\"] = \"read\";\n PreviousStepTypeEnum[\"UNREAD\"] = \"unread\";\n PreviousStepTypeEnum[\"SEEN\"] = \"seen\";\n PreviousStepTypeEnum[\"UNSEEN\"] = \"unseen\";\n})(PreviousStepTypeEnum || (PreviousStepTypeEnum = {}));\n","export var ChannelTypeEnum;\n(function (ChannelTypeEnum) {\n ChannelTypeEnum[\"IN_APP\"] = \"in_app\";\n ChannelTypeEnum[\"EMAIL\"] = \"email\";\n ChannelTypeEnum[\"SMS\"] = \"sms\";\n ChannelTypeEnum[\"CHAT\"] = \"chat\";\n ChannelTypeEnum[\"PUSH\"] = \"push\";\n})(ChannelTypeEnum || (ChannelTypeEnum = {}));\nexport var StepTypeEnum;\n(function (StepTypeEnum) {\n StepTypeEnum[\"IN_APP\"] = \"in_app\";\n StepTypeEnum[\"EMAIL\"] = \"email\";\n StepTypeEnum[\"SMS\"] = \"sms\";\n StepTypeEnum[\"CHAT\"] = \"chat\";\n StepTypeEnum[\"PUSH\"] = \"push\";\n StepTypeEnum[\"DIGEST\"] = \"digest\";\n StepTypeEnum[\"TRIGGER\"] = \"trigger\";\n StepTypeEnum[\"DELAY\"] = \"delay\";\n})(StepTypeEnum || (StepTypeEnum = {}));\nexport const STEP_TYPE_TO_CHANNEL_TYPE = new Map([\n [StepTypeEnum.IN_APP, ChannelTypeEnum.IN_APP],\n [StepTypeEnum.EMAIL, ChannelTypeEnum.EMAIL],\n [StepTypeEnum.SMS, ChannelTypeEnum.SMS],\n [StepTypeEnum.CHAT, ChannelTypeEnum.CHAT],\n [StepTypeEnum.PUSH, ChannelTypeEnum.PUSH],\n]);\nexport var ChannelCTATypeEnum;\n(function (ChannelCTATypeEnum) {\n ChannelCTATypeEnum[\"REDIRECT\"] = \"redirect\";\n})(ChannelCTATypeEnum || (ChannelCTATypeEnum = {}));\nexport var TemplateVariableTypeEnum;\n(function (TemplateVariableTypeEnum) {\n TemplateVariableTypeEnum[\"STRING\"] = \"String\";\n TemplateVariableTypeEnum[\"ARRAY\"] = \"Array\";\n TemplateVariableTypeEnum[\"BOOLEAN\"] = \"Boolean\";\n})(TemplateVariableTypeEnum || (TemplateVariableTypeEnum = {}));\nexport var ActorTypeEnum;\n(function (ActorTypeEnum) {\n ActorTypeEnum[\"NONE\"] = \"none\";\n ActorTypeEnum[\"USER\"] = \"user\";\n ActorTypeEnum[\"SYSTEM_ICON\"] = \"system_icon\";\n ActorTypeEnum[\"SYSTEM_CUSTOM\"] = \"system_custom\";\n})(ActorTypeEnum || (ActorTypeEnum = {}));\nexport var SystemAvatarIconEnum;\n(function (SystemAvatarIconEnum) {\n SystemAvatarIconEnum[\"WARNING\"] = \"warning\";\n SystemAvatarIconEnum[\"INFO\"] = \"info\";\n SystemAvatarIconEnum[\"ERROR\"] = \"error\";\n SystemAvatarIconEnum[\"SUCCESS\"] = \"success\";\n SystemAvatarIconEnum[\"UP\"] = \"up\";\n SystemAvatarIconEnum[\"QUESTION\"] = \"question\";\n})(SystemAvatarIconEnum || (SystemAvatarIconEnum = {}));\nexport const CHANNELS_WITH_PRIMARY = [ChannelTypeEnum.EMAIL, ChannelTypeEnum.SMS];\nexport const DELAYED_STEPS = [StepTypeEnum.DELAY, StepTypeEnum.DIGEST];\n","export var TriggerEventStatusEnum;\n(function (TriggerEventStatusEnum) {\n TriggerEventStatusEnum[\"ERROR\"] = \"error\";\n TriggerEventStatusEnum[\"NOT_ACTIVE\"] = \"trigger_not_active\";\n TriggerEventStatusEnum[\"NO_WORKFLOW_ACTIVE_STEPS\"] = \"no_workflow_active_steps_defined\";\n TriggerEventStatusEnum[\"NO_WORKFLOW_STEPS\"] = \"no_workflow_steps_defined\";\n TriggerEventStatusEnum[\"PROCESSED\"] = \"processed\";\n TriggerEventStatusEnum[\"SUBSCRIBER_MISSING\"] = \"subscriber_id_missing\";\n TriggerEventStatusEnum[\"TENANT_MISSING\"] = \"no_tenant_found\";\n})(TriggerEventStatusEnum || (TriggerEventStatusEnum = {}));\nexport var TriggerRecipientsTypeEnum;\n(function (TriggerRecipientsTypeEnum) {\n TriggerRecipientsTypeEnum[\"SUBSCRIBER\"] = \"Subscriber\";\n TriggerRecipientsTypeEnum[\"TOPIC\"] = \"Topic\";\n})(TriggerRecipientsTypeEnum || (TriggerRecipientsTypeEnum = {}));\nexport var AddressingTypeEnum;\n(function (AddressingTypeEnum) {\n AddressingTypeEnum[\"BROADCAST\"] = \"broadcast\";\n AddressingTypeEnum[\"MULTICAST\"] = \"multicast\";\n})(AddressingTypeEnum || (AddressingTypeEnum = {}));\nexport var TriggerRequestCategoryEnum;\n(function (TriggerRequestCategoryEnum) {\n TriggerRequestCategoryEnum[\"SINGLE\"] = \"single\";\n TriggerRequestCategoryEnum[\"BULK\"] = \"bulk\";\n})(TriggerRequestCategoryEnum || (TriggerRequestCategoryEnum = {}));\n","export var FeatureFlagsKeysEnum;\n(function (FeatureFlagsKeysEnum) {\n FeatureFlagsKeysEnum[\"IS_TEMPLATE_STORE_ENABLED\"] = \"IS_TEMPLATE_STORE_ENABLED\";\n FeatureFlagsKeysEnum[\"IS_TOPIC_NOTIFICATION_ENABLED\"] = \"IS_TOPIC_NOTIFICATION_ENABLED\";\n FeatureFlagsKeysEnum[\"IS_MULTI_TENANCY_ENABLED\"] = \"IS_MULTI_TENANCY_ENABLED\";\n FeatureFlagsKeysEnum[\"IS_USE_MERGED_DIGEST_ID_ENABLED\"] = \"IS_USE_MERGED_DIGEST_ID_ENABLED\";\n FeatureFlagsKeysEnum[\"IS_API_RATE_LIMITING_ENABLED\"] = \"IS_API_RATE_LIMITING_ENABLED\";\n FeatureFlagsKeysEnum[\"IS_API_IDEMPOTENCY_ENABLED\"] = \"IS_API_IDEMPOTENCY_ENABLED\";\n FeatureFlagsKeysEnum[\"IS_TRANSLATION_MANAGER_ENABLED\"] = \"IS_TRANSLATION_MANAGER_ENABLED\";\n FeatureFlagsKeysEnum[\"IS_API_EXECUTION_LOG_QUEUE_ENABLED\"] = \"IS_API_EXECUTION_LOG_QUEUE_ENABLED\";\n FeatureFlagsKeysEnum[\"IS_BILLING_ENABLED\"] = \"IS_BILLING_ENABLED\";\n FeatureFlagsKeysEnum[\"IS_IMPROVED_ONBOARDING_ENABLED\"] = \"IS_IMPROVED_ONBOARDING_ENABLED\";\n FeatureFlagsKeysEnum[\"IS_NEW_MESSAGES_API_RESPONSE_ENABLED\"] = \"IS_NEW_MESSAGES_API_RESPONSE_ENABLED\";\n})(FeatureFlagsKeysEnum || (FeatureFlagsKeysEnum = {}));\n","export var SystemCriticalFlagsEnum;\n(function (SystemCriticalFlagsEnum) {\n SystemCriticalFlagsEnum[\"IS_IN_MEMORY_CLUSTER_MODE_ENABLED\"] = \"IS_IN_MEMORY_CLUSTER_MODE_ENABLED\";\n})(SystemCriticalFlagsEnum || (SystemCriticalFlagsEnum = {}));\n","export var EmailBlockTypeEnum;\n(function (EmailBlockTypeEnum) {\n EmailBlockTypeEnum[\"BUTTON\"] = \"button\";\n EmailBlockTypeEnum[\"TEXT\"] = \"text\";\n})(EmailBlockTypeEnum || (EmailBlockTypeEnum = {}));\nexport var TextAlignEnum;\n(function (TextAlignEnum) {\n TextAlignEnum[\"CENTER\"] = \"center\";\n TextAlignEnum[\"LEFT\"] = \"left\";\n TextAlignEnum[\"RIGHT\"] = \"right\";\n})(TextAlignEnum || (TextAlignEnum = {}));\n","export var ApiServiceLevelEnum;\n(function (ApiServiceLevelEnum) {\n ApiServiceLevelEnum[\"FREE\"] = \"free\";\n ApiServiceLevelEnum[\"BUSINESS\"] = \"business\";\n ApiServiceLevelEnum[\"ENTERPRISE\"] = \"enterprise\";\n ApiServiceLevelEnum[\"UNLIMITED\"] = \"unlimited\";\n})(ApiServiceLevelEnum || (ApiServiceLevelEnum = {}));\nexport var ProductUseCasesEnum;\n(function (ProductUseCasesEnum) {\n ProductUseCasesEnum[\"IN_APP\"] = \"in_app\";\n ProductUseCasesEnum[\"MULTI_CHANNEL\"] = \"multi_channel\";\n ProductUseCasesEnum[\"DELAY\"] = \"delay\";\n ProductUseCasesEnum[\"TRANSLATION\"] = \"translation\";\n ProductUseCasesEnum[\"DIGEST\"] = \"digest\";\n})(ProductUseCasesEnum || (ProductUseCasesEnum = {}));\nexport var JobTitleEnum;\n(function (JobTitleEnum) {\n JobTitleEnum[\"ENGINEER\"] = \"engineer\";\n JobTitleEnum[\"ENGINEERING_MANAGER\"] = \"engineering_manager\";\n JobTitleEnum[\"ARCHITECT\"] = \"architect\";\n JobTitleEnum[\"PRODUCT_MANAGER\"] = \"product_manager\";\n JobTitleEnum[\"DESIGNER\"] = \"designer\";\n JobTitleEnum[\"OTHER\"] = \"other\";\n})(JobTitleEnum || (JobTitleEnum = {}));\nexport const jobTitleToLabelMapper = {\n [JobTitleEnum.ENGINEER]: 'Engineer',\n [JobTitleEnum.ARCHITECT]: 'Architect',\n [JobTitleEnum.PRODUCT_MANAGER]: 'Product Manager',\n [JobTitleEnum.DESIGNER]: 'Designer',\n [JobTitleEnum.ENGINEERING_MANAGER]: 'Engineering Manager',\n [JobTitleEnum.OTHER]: 'Other',\n};\n","export function testFlagEnumValidity(testEnum) { }\n","export var OrderDirectionEnum;\n(function (OrderDirectionEnum) {\n OrderDirectionEnum[OrderDirectionEnum[\"ASC\"] = 1] = \"ASC\";\n OrderDirectionEnum[OrderDirectionEnum[\"DESC\"] = -1] = \"DESC\";\n})(OrderDirectionEnum || (OrderDirectionEnum = {}));\n","export var SubscriberSourceEnum;\n(function (SubscriberSourceEnum) {\n SubscriberSourceEnum[\"BROADCAST\"] = \"broadcast\";\n SubscriberSourceEnum[\"SINGLE\"] = \"single\";\n SubscriberSourceEnum[\"TOPIC\"] = \"topic\";\n})(SubscriberSourceEnum || (SubscriberSourceEnum = {}));\nexport var PreferenceOverrideSourceEnum;\n(function (PreferenceOverrideSourceEnum) {\n PreferenceOverrideSourceEnum[\"SUBSCRIBER\"] = \"subscriber\";\n PreferenceOverrideSourceEnum[\"TEMPLATE\"] = \"template\";\n PreferenceOverrideSourceEnum[\"WORKFLOW_OVERRIDE\"] = \"workflowOverride\";\n})(PreferenceOverrideSourceEnum || (PreferenceOverrideSourceEnum = {}));\n","export var SignUpOriginEnum;\n(function (SignUpOriginEnum) {\n SignUpOriginEnum[\"WEB\"] = \"web\";\n SignUpOriginEnum[\"CLI\"] = \"cli\";\n SignUpOriginEnum[\"VERCEL\"] = \"vercel\";\n})(SignUpOriginEnum || (SignUpOriginEnum = {}));\n","export var MarkMessagesAsEnum;\n(function (MarkMessagesAsEnum) {\n MarkMessagesAsEnum[\"READ\"] = \"read\";\n MarkMessagesAsEnum[\"SEEN\"] = \"seen\";\n MarkMessagesAsEnum[\"UNREAD\"] = \"unread\";\n MarkMessagesAsEnum[\"UNSEEN\"] = \"unseen\";\n})(MarkMessagesAsEnum || (MarkMessagesAsEnum = {}));\n","export var WebSocketEventEnum;\n(function (WebSocketEventEnum) {\n WebSocketEventEnum[\"RECEIVED\"] = \"notification_received\";\n WebSocketEventEnum[\"UNREAD\"] = \"unread_count_changed\";\n WebSocketEventEnum[\"UNSEEN\"] = \"unseen_count_changed\";\n})(WebSocketEventEnum || (WebSocketEventEnum = {}));\n","export var ApiRateLimitAlgorithmEnum;\n(function (ApiRateLimitAlgorithmEnum) {\n ApiRateLimitAlgorithmEnum[\"BURST_ALLOWANCE\"] = \"burst_allowance\";\n ApiRateLimitAlgorithmEnum[\"WINDOW_DURATION\"] = \"window_duration\";\n})(ApiRateLimitAlgorithmEnum || (ApiRateLimitAlgorithmEnum = {}));\nexport class IApiRateLimitAlgorithm {\n}\nApiRateLimitAlgorithmEnum.BURST_ALLOWANCE, ApiRateLimitAlgorithmEnum.WINDOW_DURATION;\n","export var ApiRateLimitConfigEnum;\n(function (ApiRateLimitConfigEnum) {\n ApiRateLimitConfigEnum[\"ALGORITHM\"] = \"algorithm\";\n ApiRateLimitConfigEnum[\"COST\"] = \"cost\";\n ApiRateLimitConfigEnum[\"MAXIMUM\"] = \"maximum\";\n})(ApiRateLimitConfigEnum || (ApiRateLimitConfigEnum = {}));\n","export var ApiRateLimitCostEnum;\n(function (ApiRateLimitCostEnum) {\n ApiRateLimitCostEnum[\"SINGLE\"] = \"single\";\n ApiRateLimitCostEnum[\"BULK\"] = \"bulk\";\n})(ApiRateLimitCostEnum || (ApiRateLimitCostEnum = {}));\n","export var ApiRateLimitCategoryEnum;\n(function (ApiRateLimitCategoryEnum) {\n ApiRateLimitCategoryEnum[\"TRIGGER\"] = \"trigger\";\n ApiRateLimitCategoryEnum[\"CONFIGURATION\"] = \"configuration\";\n ApiRateLimitCategoryEnum[\"GLOBAL\"] = \"global\";\n})(ApiRateLimitCategoryEnum || (ApiRateLimitCategoryEnum = {}));\n","export var ApiAuthSchemeEnum;\n(function (ApiAuthSchemeEnum) {\n ApiAuthSchemeEnum[\"BEARER\"] = \"Bearer\";\n ApiAuthSchemeEnum[\"API_KEY\"] = \"ApiKey\";\n})(ApiAuthSchemeEnum || (ApiAuthSchemeEnum = {}));\nexport var PassportStrategyEnum;\n(function (PassportStrategyEnum) {\n PassportStrategyEnum[\"JWT\"] = \"jwt\";\n PassportStrategyEnum[\"HEADER_API_KEY\"] = \"headerapikey\";\n})(PassportStrategyEnum || (PassportStrategyEnum = {}));\n","export var TimezoneEnum;\n(function (TimezoneEnum) {\n TimezoneEnum[\"AFRICA_ABIDJAN\"] = \"Africa/Abidjan\";\n TimezoneEnum[\"AFRICA_ACCRA\"] = \"Africa/Accra\";\n TimezoneEnum[\"AFRICA_ADDIS_ABABA\"] = \"Africa/Addis_Ababa\";\n TimezoneEnum[\"AFRICA_ALGIERS\"] = \"Africa/Algiers\";\n TimezoneEnum[\"AFRICA_ASMARA\"] = \"Africa/Asmara\";\n TimezoneEnum[\"AFRICA_ASMERA\"] = \"Africa/Asmera\";\n TimezoneEnum[\"AFRICA_BAMAKO\"] = \"Africa/Bamako\";\n TimezoneEnum[\"AFRICA_BANGUI\"] = \"Africa/Bangui\";\n TimezoneEnum[\"AFRICA_BANJUL\"] = \"Africa/Banjul\";\n TimezoneEnum[\"AFRICA_BISSAU\"] = \"Africa/Bissau\";\n TimezoneEnum[\"AFRICA_BLANTYRE\"] = \"Africa/Blantyre\";\n TimezoneEnum[\"AFRICA_BRAZZAVILLE\"] = \"Africa/Brazzaville\";\n TimezoneEnum[\"AFRICA_BUJUMBURA\"] = \"Africa/Bujumbura\";\n TimezoneEnum[\"AFRICA_CAIRO\"] = \"Africa/Cairo\";\n TimezoneEnum[\"AFRICA_CASABLANCA\"] = \"Africa/Casablanca\";\n TimezoneEnum[\"AFRICA_CEUTA\"] = \"Africa/Ceuta\";\n TimezoneEnum[\"AFRICA_CONAKRY\"] = \"Africa/Conakry\";\n TimezoneEnum[\"AFRICA_DAKAR\"] = \"Africa/Dakar\";\n TimezoneEnum[\"AFRICA_DAR_ES_SALAAM\"] = \"Africa/Dar_es_Salaam\";\n TimezoneEnum[\"AFRICA_DJIBOUTI\"] = \"Africa/Djibouti\";\n TimezoneEnum[\"AFRICA_DOUALA\"] = \"Africa/Douala\";\n TimezoneEnum[\"AFRICA_EL_AAIUN\"] = \"Africa/El_Aaiun\";\n TimezoneEnum[\"AFRICA_FREETOWN\"] = \"Africa/Freetown\";\n TimezoneEnum[\"AFRICA_GABORONE\"] = \"Africa/Gaborone\";\n TimezoneEnum[\"AFRICA_HARARE\"] = \"Africa/Harare\";\n TimezoneEnum[\"AFRICA_JOHANNESBURG\"] = \"Africa/Johannesburg\";\n TimezoneEnum[\"AFRICA_JUBA\"] = \"Africa/Juba\";\n TimezoneEnum[\"AFRICA_KAMPALA\"] = \"Africa/Kampala\";\n TimezoneEnum[\"AFRICA_KHARTOUM\"] = \"Africa/Khartoum\";\n TimezoneEnum[\"AFRICA_KIGALI\"] = \"Africa/Kigali\";\n TimezoneEnum[\"AFRICA_KINSHASA\"] = \"Africa/Kinshasa\";\n TimezoneEnum[\"AFRICA_LAGOS\"] = \"Africa/Lagos\";\n TimezoneEnum[\"AFRICA_LIBREVILLE\"] = \"Africa/Libreville\";\n TimezoneEnum[\"AFRICA_LOME\"] = \"Africa/Lome\";\n TimezoneEnum[\"AFRICA_LUANDA\"] = \"Africa/Luanda\";\n TimezoneEnum[\"AFRICA_LUBUMBASHI\"] = \"Africa/Lubumbashi\";\n TimezoneEnum[\"AFRICA_LUSAKA\"] = \"Africa/Lusaka\";\n TimezoneEnum[\"AFRICA_MALABO\"] = \"Africa/Malabo\";\n TimezoneEnum[\"AFRICA_MAPUTO\"] = \"Africa/Maputo\";\n TimezoneEnum[\"AFRICA_MASERU\"] = \"Africa/Maseru\";\n TimezoneEnum[\"AFRICA_MBABANE\"] = \"Africa/Mbabane\";\n TimezoneEnum[\"AFRICA_MOGADISHU\"] = \"Africa/Mogadishu\";\n TimezoneEnum[\"AFRICA_MONROVIA\"] = \"Africa/Monrovia\";\n TimezoneEnum[\"AFRICA_NAIROBI\"] = \"Africa/Nairobi\";\n TimezoneEnum[\"AFRICA_NDJAMENA\"] = \"Africa/Ndjamena\";\n TimezoneEnum[\"AFRICA_NIAMEY\"] = \"Africa/Niamey\";\n TimezoneEnum[\"AFRICA_NOUAKCHOTT\"] = \"Africa/Nouakchott\";\n TimezoneEnum[\"AFRICA_OUAGADOUGOU\"] = \"Africa/Ouagadougou\";\n TimezoneEnum[\"AFRICA_PORTO_NOVO\"] = \"Africa/Porto-Novo\";\n TimezoneEnum[\"AFRICA_SAO_TOME\"] = \"Africa/Sao_Tome\";\n TimezoneEnum[\"AFRICA_TIMBUKTU\"] = \"Africa/Timbuktu\";\n TimezoneEnum[\"AFRICA_TRIPOLI\"] = \"Africa/Tripoli\";\n TimezoneEnum[\"AFRICA_TUNIS\"] = \"Africa/Tunis\";\n TimezoneEnum[\"AFRICA_WINDHOEK\"] = \"Africa/Windhoek\";\n TimezoneEnum[\"AMERICA_ADAK\"] = \"America/Adak\";\n TimezoneEnum[\"AMERICA_ANCHORAGE\"] = \"America/Anchorage\";\n TimezoneEnum[\"AMERICA_ANGUILLA\"] = \"America/Anguilla\";\n TimezoneEnum[\"AMERICA_ANTIGUA\"] = \"America/Antigua\";\n TimezoneEnum[\"AMERICA_ARAGUAINA\"] = \"America/Araguaina\";\n TimezoneEnum[\"AMERICA_ARGENTINA_BUENOS_AIRES\"] = \"America/Argentina/Buenos_Aires\";\n TimezoneEnum[\"AMERICA_ARGENTINA_CATAMARCA\"] = \"America/Argentina/Catamarca\";\n TimezoneEnum[\"AMERICA_ARGENTINA_COMOD_RIVADAVIA\"] = \"America/Argentina/ComodRivadavia\";\n TimezoneEnum[\"AMERICA_ARGENTINA_CORDOBA\"] = \"America/Argentina/Cordoba\";\n TimezoneEnum[\"AMERICA_ARGENTINA_JUJUY\"] = \"America/Argentina/Jujuy\";\n TimezoneEnum[\"AMERICA_ARGENTINA_LA_RIOJA\"] = \"America/Argentina/La_Rioja\";\n TimezoneEnum[\"AMERICA_ARGENTINA_MENDOZA\"] = \"America/Argentina/Mendoza\";\n TimezoneEnum[\"AMERICA_ARGENTINA_RIO_GALLEGOS\"] = \"America/Argentina/Rio_Gallegos\";\n TimezoneEnum[\"AMERICA_ARGENTINA_SALTA\"] = \"America/Argentina/Salta\";\n TimezoneEnum[\"AMERICA_ARGENTINA_SAN_JUAN\"] = \"America/Argentina/San_Juan\";\n TimezoneEnum[\"AMERICA_ARGENTINA_SAN_LUIS\"] = \"America/Argentina/San_Luis\";\n TimezoneEnum[\"AMERICA_ARGENTINA_TUCUMAN\"] = \"America/Argentina/Tucuman\";\n TimezoneEnum[\"AMERICA_ARGENTINA_USHUAIA\"] = \"America/Argentina/Ushuaia\";\n TimezoneEnum[\"AMERICA_ARUBA\"] = \"America/Aruba\";\n TimezoneEnum[\"AMERICA_ASUNCION\"] = \"America/Asuncion\";\n TimezoneEnum[\"AMERICA_ATIKOKAN\"] = \"America/Atikokan\";\n TimezoneEnum[\"AMERICA_ATKA\"] = \"America/Atka\";\n TimezoneEnum[\"AMERICA_BAHIA\"] = \"America/Bahia\";\n TimezoneEnum[\"AMERICA_BAHIA_BANDERAS\"] = \"America/Bahia_Banderas\";\n TimezoneEnum[\"AMERICA_BARBADOS\"] = \"America/Barbados\";\n TimezoneEnum[\"AMERICA_BELEM\"] = \"America/Belem\";\n TimezoneEnum[\"AMERICA_BELIZE\"] = \"America/Belize\";\n TimezoneEnum[\"AMERICA_BLANC_SABLON\"] = \"America/Blanc-Sablon\";\n TimezoneEnum[\"AMERICA_BOA_VISTA\"] = \"America/Boa_Vista\";\n TimezoneEnum[\"AMERICA_BOGOTA\"] = \"America/Bogota\";\n TimezoneEnum[\"AMERICA_BOISE\"] = \"America/Boise\";\n TimezoneEnum[\"AMERICA_BUENOS_AIRES\"] = \"America/Buenos_Aires\";\n TimezoneEnum[\"AMERICA_CAMBRIDGE_BAY\"] = \"America/Cambridge_Bay\";\n TimezoneEnum[\"AMERICA_CAMPO_GRANDE\"] = \"America/Campo_Grande\";\n TimezoneEnum[\"AMERICA_CANCUN\"] = \"America/Cancun\";\n TimezoneEnum[\"AMERICA_CARACAS\"] = \"America/Caracas\";\n TimezoneEnum[\"AMERICA_CATAMARCA\"] = \"America/Catamarca\";\n TimezoneEnum[\"AMERICA_CAYENNE\"] = \"America/Cayenne\";\n TimezoneEnum[\"AMERICA_CAYMAN\"] = \"America/Cayman\";\n TimezoneEnum[\"AMERICA_CHICAGO\"] = \"America/Chicago\";\n TimezoneEnum[\"AMERICA_CHIHUAHUA\"] = \"America/Chihuahua\";\n TimezoneEnum[\"AMERICA_CORAL_HARBOUR\"] = \"America/Coral_Harbour\";\n TimezoneEnum[\"AMERICA_CORDOBA\"] = \"America/Cordoba\";\n TimezoneEnum[\"AMERICA_COSTA_RICA\"] = \"America/Costa_Rica\";\n TimezoneEnum[\"AMERICA_CRESTON\"] = \"America/Creston\";\n TimezoneEnum[\"AMERICA_CUIABA\"] = \"America/Cuiaba\";\n TimezoneEnum[\"AMERICA_CURACAO\"] = \"America/Curacao\";\n TimezoneEnum[\"AMERICA_DANMARKSHAVN\"] = \"America/Danmarkshavn\";\n TimezoneEnum[\"AMERICA_DAWSON\"] = \"America/Dawson\";\n TimezoneEnum[\"AMERICA_DAWSON_CREEK\"] = \"America/Dawson_Creek\";\n TimezoneEnum[\"AMERICA_DENVER\"] = \"America/Denver\";\n TimezoneEnum[\"AMERICA_DETROIT\"] = \"America/Detroit\";\n TimezoneEnum[\"AMERICA_DOMINICA\"] = \"America/Dominica\";\n TimezoneEnum[\"AMERICA_EDMONTON\"] = \"America/Edmonton\";\n TimezoneEnum[\"AMERICA_EIRUNEPE\"] = \"America/Eirunepe\";\n TimezoneEnum[\"AMERICA_EL_SALVADOR\"] = \"America/El_Salvador\";\n TimezoneEnum[\"AMERICA_ENSENADA\"] = \"America/Ensenada\";\n TimezoneEnum[\"AMERICA_FORT_NELSON\"] = \"America/Fort_Nelson\";\n TimezoneEnum[\"AMERICA_FORT_WAYNE\"] = \"America/Fort_Wayne\";\n TimezoneEnum[\"AMERICA_FORTALEZA\"] = \"America/Fortaleza\";\n TimezoneEnum[\"AMERICA_GLACE_BAY\"] = \"America/Glace_Bay\";\n TimezoneEnum[\"AMERICA_GODTHAB\"] = \"America/Godthab\";\n TimezoneEnum[\"AMERICA_GOOSE_BAY\"] = \"America/Goose_Bay\";\n TimezoneEnum[\"AMERICA_GRAND_TURK\"] = \"America/Grand_Turk\";\n TimezoneEnum[\"AMERICA_GRENADA\"] = \"America/Grenada\";\n TimezoneEnum[\"AMERICA_GUADELOUPE\"] = \"America/Guadeloupe\";\n TimezoneEnum[\"AMERICA_GUATEMALA\"] = \"America/Guatemala\";\n TimezoneEnum[\"AMERICA_GUAYAQUIL\"] = \"America/Guayaquil\";\n TimezoneEnum[\"AMERICA_GUYANA\"] = \"America/Guyana\";\n TimezoneEnum[\"AMERICA_HALIFAX\"] = \"America/Halifax\";\n TimezoneEnum[\"AMERICA_HAVANA\"] = \"America/Havana\";\n TimezoneEnum[\"AMERICA_HERMOSILLO\"] = \"America/Hermosillo\";\n TimezoneEnum[\"AMERICA_INDIANA_INDIANAPOLIS\"] = \"America/Indiana/Indianapolis\";\n TimezoneEnum[\"AMERICA_INDIANA_KNOX\"] = \"America/Indiana/Knox\";\n TimezoneEnum[\"AMERICA_INDIANA_MARENGO\"] = \"America/Indiana/Marengo\";\n TimezoneEnum[\"AMERICA_INDIANA_PETERSBURG\"] = \"America/Indiana/Petersburg\";\n TimezoneEnum[\"AMERICA_INDIANA_TELL_CITY\"] = \"America/Indiana/Tell_City\";\n TimezoneEnum[\"AMERICA_INDIANA_VEVAY\"] = \"America/Indiana/Vevay\";\n TimezoneEnum[\"AMERICA_INDIANA_VINCENNES\"] = \"America/Indiana/Vincennes\";\n TimezoneEnum[\"AMERICA_INDIANA_WINAMAC\"] = \"America/Indiana/Winamac\";\n TimezoneEnum[\"AMERICA_INDIANAPOLIS\"] = \"America/Indianapolis\";\n TimezoneEnum[\"AMERICA_INUVIK\"] = \"America/Inuvik\";\n TimezoneEnum[\"AMERICA_IQALUIT\"] = \"America/Iqaluit\";\n TimezoneEnum[\"AMERICA_JAMAICA\"] = \"America/Jamaica\";\n TimezoneEnum[\"AMERICA_JUJUY\"] = \"America/Jujuy\";\n TimezoneEnum[\"AMERICA_JUNEAU\"] = \"America/Juneau\";\n TimezoneEnum[\"AMERICA_KENTUCKY_LOUISVILLE\"] = \"America/Kentucky/Louisville\";\n TimezoneEnum[\"AMERICA_KENTUCKY_MONTICELLO\"] = \"America/Kentucky/Monticello\";\n TimezoneEnum[\"AMERICA_KNOX_IN\"] = \"America/Knox_IN\";\n TimezoneEnum[\"AMERICA_KRALENDIJK\"] = \"America/Kralendijk\";\n TimezoneEnum[\"AMERICA_LA_PAZ\"] = \"America/La_Paz\";\n TimezoneEnum[\"AMERICA_LIMA\"] = \"America/Lima\";\n TimezoneEnum[\"AMERICA_LOS_ANGELES\"] = \"America/Los_Angeles\";\n TimezoneEnum[\"AMERICA_LOUISVILLE\"] = \"America/Louisville\";\n TimezoneEnum[\"AMERICA_LOWER_PRINCES\"] = \"America/Lower_Princes\";\n TimezoneEnum[\"AMERICA_MACEIO\"] = \"America/Maceio\";\n TimezoneEnum[\"AMERICA_MANAGUA\"] = \"America/Managua\";\n TimezoneEnum[\"AMERICA_MANAUS\"] = \"America/Manaus\";\n TimezoneEnum[\"AMERICA_MARIGOT\"] = \"America/Marigot\";\n TimezoneEnum[\"AMERICA_MARTINIQUE\"] = \"America/Martinique\";\n TimezoneEnum[\"AMERICA_MATAMOROS\"] = \"America/Matamoros\";\n TimezoneEnum[\"AMERICA_MAZATLAN\"] = \"America/Mazatlan\";\n TimezoneEnum[\"AMERICA_MENDOZA\"] = \"America/Mendoza\";\n TimezoneEnum[\"AMERICA_MENOMINEE\"] = \"America/Menominee\";\n TimezoneEnum[\"AMERICA_MERIDA\"] = \"America/Merida\";\n TimezoneEnum[\"AMERICA_METLAKATLA\"] = \"America/Metlakatla\";\n TimezoneEnum[\"AMERICA_MEXICO_CITY\"] = \"America/Mexico_City\";\n TimezoneEnum[\"AMERICA_MIQUELON\"] = \"America/Miquelon\";\n TimezoneEnum[\"AMERICA_MONCTON\"] = \"America/Moncton\";\n TimezoneEnum[\"AMERICA_MONTERREY\"] = \"America/Monterrey\";\n TimezoneEnum[\"AMERICA_MONTEVIDEO\"] = \"America/Montevideo\";\n TimezoneEnum[\"AMERICA_MONTREAL\"] = \"America/Montreal\";\n TimezoneEnum[\"AMERICA_MONTSERRAT\"] = \"America/Montserrat\";\n TimezoneEnum[\"AMERICA_NASSAU\"] = \"America/Nassau\";\n TimezoneEnum[\"AMERICA_NEW_YORK\"] = \"America/New_York\";\n TimezoneEnum[\"AMERICA_NIPIGON\"] = \"America/Nipigon\";\n TimezoneEnum[\"AMERICA_NOME\"] = \"America/Nome\";\n TimezoneEnum[\"AMERICA_NORONHA\"] = \"America/Noronha\";\n TimezoneEnum[\"AMERICA_NORTH_DAKOTA_BEULAH\"] = \"America/North_Dakota/Beulah\";\n TimezoneEnum[\"AMERICA_NORTH_DAKOTA_CENTER\"] = \"America/North_Dakota/Center\";\n TimezoneEnum[\"AMERICA_NORTH_DAKOTA_NEW_SALEM\"] = \"America/North_Dakota/New_Salem\";\n TimezoneEnum[\"AMERICA_OJINAGA\"] = \"America/Ojinaga\";\n TimezoneEnum[\"AMERICA_PANAMA\"] = \"America/Panama\";\n TimezoneEnum[\"AMERICA_PANGNIRTUNG\"] = \"America/Pangnirtung\";\n TimezoneEnum[\"AMERICA_PARAMARIBO\"] = \"America/Paramaribo\";\n TimezoneEnum[\"AMERICA_PHOENIX\"] = \"America/Phoenix\";\n TimezoneEnum[\"AMERICA_PORT_AU_PRINCE\"] = \"America/Port-au-Prince\";\n TimezoneEnum[\"AMERICA_PORT_OF_SPAIN\"] = \"America/Port_of_Spain\";\n TimezoneEnum[\"AMERICA_PORTO_ACRE\"] = \"America/Porto_Acre\";\n TimezoneEnum[\"AMERICA_PORTO_VELHO\"] = \"America/Porto_Velho\";\n TimezoneEnum[\"AMERICA_PUERTO_RICO\"] = \"America/Puerto_Rico\";\n TimezoneEnum[\"AMERICA_PUNTA_ARENAS\"] = \"America/Punta_Arenas\";\n TimezoneEnum[\"AMERICA_RAINY_RIVER\"] = \"America/Rainy_River\";\n TimezoneEnum[\"AMERICA_RANKIN_INLET\"] = \"America/Rankin_Inlet\";\n TimezoneEnum[\"AMERICA_RECIFE\"] = \"America/Recife\";\n TimezoneEnum[\"AMERICA_REGINA\"] = \"America/Regina\";\n TimezoneEnum[\"AMERICA_RESOLUTE\"] = \"America/Resolute\";\n TimezoneEnum[\"AMERICA_RIO_BRANCO\"] = \"America/Rio_Branco\";\n TimezoneEnum[\"AMERICA_ROSARIO\"] = \"America/Rosario\";\n TimezoneEnum[\"AMERICA_SANTA_ISABEL\"] = \"America/Santa_Isabel\";\n TimezoneEnum[\"AMERICA_SANTAREM\"] = \"America/Santarem\";\n TimezoneEnum[\"AMERICA_SANTIAGO\"] = \"America/Santiago\";\n TimezoneEnum[\"AMERICA_SANTO_DOMINGO\"] = \"America/Santo_Domingo\";\n TimezoneEnum[\"AMERICA_SAO_PAULO\"] = \"America/Sao_Paulo\";\n TimezoneEnum[\"AMERICA_SCORESBYSUND\"] = \"America/Scoresbysund\";\n TimezoneEnum[\"AMERICA_SHIPROCK\"] = \"America/Shiprock\";\n TimezoneEnum[\"AMERICA_SITKA\"] = \"America/Sitka\";\n TimezoneEnum[\"AMERICA_ST_BARTHELEMY\"] = \"America/St_Barthelemy\";\n TimezoneEnum[\"AMERICA_ST_JOHNS\"] = \"America/St_Johns\";\n TimezoneEnum[\"AMERICA_ST_KITTS\"] = \"America/St_Kitts\";\n TimezoneEnum[\"AMERICA_ST_LUCIA\"] = \"America/St_Lucia\";\n TimezoneEnum[\"AMERICA_ST_THOMAS\"] = \"America/St_Thomas\";\n TimezoneEnum[\"AMERICA_ST_VINCENT\"] = \"America/St_Vincent\";\n TimezoneEnum[\"AMERICA_SWIFT_CURRENT\"] = \"America/Swift_Current\";\n TimezoneEnum[\"AMERICA_TEGUCIGALPA\"] = \"America/Tegucigalpa\";\n TimezoneEnum[\"AMERICA_THULE\"] = \"America/Thule\";\n TimezoneEnum[\"AMERICA_THUNDER_BAY\"] = \"America/Thunder_Bay\";\n TimezoneEnum[\"AMERICA_TIJUANA\"] = \"America/Tijuana\";\n TimezoneEnum[\"AMERICA_TORONTO\"] = \"America/Toronto\";\n TimezoneEnum[\"AMERICA_TORTOLA\"] = \"America/Tortola\";\n TimezoneEnum[\"AMERICA_VANCOUVER\"] = \"America/Vancouver\";\n TimezoneEnum[\"AMERICA_VIRGIN\"] = \"America/Virgin\";\n TimezoneEnum[\"AMERICA_WHITEHORSE\"] = \"America/Whitehorse\";\n TimezoneEnum[\"AMERICA_WINNIPEG\"] = \"America/Winnipeg\";\n TimezoneEnum[\"AMERICA_YAKUTAT\"] = \"America/Yakutat\";\n TimezoneEnum[\"AMERICA_YELLOWKNIFE\"] = \"America/Yellowknife\";\n TimezoneEnum[\"ANTARCTICA_CASEY\"] = \"Antarctica/Casey\";\n TimezoneEnum[\"ANTARCTICA_DAVIS\"] = \"Antarctica/Davis\";\n TimezoneEnum[\"ANTARCTICA_DUMONT_D_URVILLE\"] = \"Antarctica/DumontDUrville\";\n TimezoneEnum[\"ANTARCTICA_MACQUARIE\"] = \"Antarctica/Macquarie\";\n TimezoneEnum[\"ANTARCTICA_MAWSON\"] = \"Antarctica/Mawson\";\n TimezoneEnum[\"ANTARCTICA_MC_MURDO\"] = \"Antarctica/McMurdo\";\n TimezoneEnum[\"ANTARCTICA_PALMER\"] = \"Antarctica/Palmer\";\n TimezoneEnum[\"ANTARCTICA_ROTHERA\"] = \"Antarctica/Rothera\";\n TimezoneEnum[\"ANTARCTICA_SOUTH_POLE\"] = \"Antarctica/South_Pole\";\n TimezoneEnum[\"ANTARCTICA_SYOWA\"] = \"Antarctica/Syowa\";\n TimezoneEnum[\"ANTARCTICA_TROLL\"] = \"Antarctica/Troll\";\n TimezoneEnum[\"ANTARCTICA_VOSTOK\"] = \"Antarctica/Vostok\";\n TimezoneEnum[\"ARCTIC_LONGYEARBYEN\"] = \"Arctic/Longyearbyen\";\n TimezoneEnum[\"ASIA_ADEN\"] = \"Asia/Aden\";\n TimezoneEnum[\"ASIA_ALMATY\"] = \"Asia/Almaty\";\n TimezoneEnum[\"ASIA_AMMAN\"] = \"Asia/Amman\";\n TimezoneEnum[\"ASIA_ANADYR\"] = \"Asia/Anadyr\";\n TimezoneEnum[\"ASIA_AQTAU\"] = \"Asia/Aqtau\";\n TimezoneEnum[\"ASIA_AQTOBE\"] = \"Asia/Aqtobe\";\n TimezoneEnum[\"ASIA_ASHGABAT\"] = \"Asia/Ashgabat\";\n TimezoneEnum[\"ASIA_ASHKHABAD\"] = \"Asia/Ashkhabad\";\n TimezoneEnum[\"ASIA_ATYRAU\"] = \"Asia/Atyrau\";\n TimezoneEnum[\"ASIA_BAGHDAD\"] = \"Asia/Baghdad\";\n TimezoneEnum[\"ASIA_BAHRAIN\"] = \"Asia/Bahrain\";\n TimezoneEnum[\"ASIA_BAKU\"] = \"Asia/Baku\";\n TimezoneEnum[\"ASIA_BANGKOK\"] = \"Asia/Bangkok\";\n TimezoneEnum[\"ASIA_BARNAUL\"] = \"Asia/Barnaul\";\n TimezoneEnum[\"ASIA_BEIRUT\"] = \"Asia/Beirut\";\n TimezoneEnum[\"ASIA_BISHKEK\"] = \"Asia/Bishkek\";\n TimezoneEnum[\"ASIA_BRUNEI\"] = \"Asia/Brunei\";\n TimezoneEnum[\"ASIA_CALCUTTA\"] = \"Asia/Calcutta\";\n TimezoneEnum[\"ASIA_CHITA\"] = \"Asia/Chita\";\n TimezoneEnum[\"ASIA_CHOIBALSAN\"] = \"Asia/Choibalsan\";\n TimezoneEnum[\"ASIA_CHONGQING\"] = \"Asia/Chongqing\";\n TimezoneEnum[\"ASIA_CHUNGKING\"] = \"Asia/Chungking\";\n TimezoneEnum[\"ASIA_COLOMBO\"] = \"Asia/Colombo\";\n TimezoneEnum[\"ASIA_DACCA\"] = \"Asia/Dacca\";\n TimezoneEnum[\"ASIA_DAMASCUS\"] = \"Asia/Damascus\";\n TimezoneEnum[\"ASIA_DHAKA\"] = \"Asia/Dhaka\";\n TimezoneEnum[\"ASIA_DILI\"] = \"Asia/Dili\";\n TimezoneEnum[\"ASIA_DUBAI\"] = \"Asia/Dubai\";\n TimezoneEnum[\"ASIA_DUSHANBE\"] = \"Asia/Dushanbe\";\n TimezoneEnum[\"ASIA_FAMAGUSTA\"] = \"Asia/Famagusta\";\n TimezoneEnum[\"ASIA_GAZA\"] = \"Asia/Gaza\";\n TimezoneEnum[\"ASIA_HARBIN\"] = \"Asia/Harbin\";\n TimezoneEnum[\"ASIA_HEBRON\"] = \"Asia/Hebron\";\n TimezoneEnum[\"ASIA_HO_CHI_MINH\"] = \"Asia/Ho_Chi_Minh\";\n TimezoneEnum[\"ASIA_HONG_KONG\"] = \"Asia/Hong_Kong\";\n TimezoneEnum[\"ASIA_HOVD\"] = \"Asia/Hovd\";\n TimezoneEnum[\"ASIA_IRKUTSK\"] = \"Asia/Irkutsk\";\n TimezoneEnum[\"ASIA_ISTANBUL\"] = \"Asia/Istanbul\";\n TimezoneEnum[\"ASIA_JAKARTA\"] = \"Asia/Jakarta\";\n TimezoneEnum[\"ASIA_JAYAPURA\"] = \"Asia/Jayapura\";\n TimezoneEnum[\"ASIA_JERUSALEM\"] = \"Asia/Jerusalem\";\n TimezoneEnum[\"ASIA_KABUL\"] = \"Asia/Kabul\";\n TimezoneEnum[\"ASIA_KAMCHATKA\"] = \"Asia/Kamchatka\";\n TimezoneEnum[\"ASIA_KARACHI\"] = \"Asia/Karachi\";\n TimezoneEnum[\"ASIA_KASHGAR\"] = \"Asia/Kashgar\";\n TimezoneEnum[\"ASIA_KATHMANDU\"] = \"Asia/Kathmandu\";\n TimezoneEnum[\"ASIA_KATMANDU\"] = \"Asia/Katmandu\";\n TimezoneEnum[\"ASIA_KHANDYGA\"] = \"Asia/Khandyga\";\n TimezoneEnum[\"ASIA_KOLKATA\"] = \"Asia/Kolkata\";\n TimezoneEnum[\"ASIA_KRASNOYARSK\"] = \"Asia/Krasnoyarsk\";\n TimezoneEnum[\"ASIA_KUALA_LUMPUR\"] = \"Asia/Kuala_Lumpur\";\n TimezoneEnum[\"ASIA_KUCHING\"] = \"Asia/Kuching\";\n TimezoneEnum[\"ASIA_KUWAIT\"] = \"Asia/Kuwait\";\n TimezoneEnum[\"ASIA_MACAO\"] = \"Asia/Macao\";\n TimezoneEnum[\"ASIA_MACAU\"] = \"Asia/Macau\";\n TimezoneEnum[\"ASIA_MAGADAN\"] = \"Asia/Magadan\";\n TimezoneEnum[\"ASIA_MAKASSAR\"] = \"Asia/Makassar\";\n TimezoneEnum[\"ASIA_MANILA\"] = \"Asia/Manila\";\n TimezoneEnum[\"ASIA_MUSCAT\"] = \"Asia/Muscat\";\n TimezoneEnum[\"ASIA_NICOSIA\"] = \"Asia/Nicosia\";\n TimezoneEnum[\"ASIA_NOVOKUZNETSK\"] = \"Asia/Novokuznetsk\";\n TimezoneEnum[\"ASIA_NOVOSIBIRSK\"] = \"Asia/Novosibirsk\";\n TimezoneEnum[\"ASIA_OMSK\"] = \"Asia/Omsk\";\n TimezoneEnum[\"ASIA_ORAL\"] = \"Asia/Oral\";\n TimezoneEnum[\"ASIA_PHNOM_PENH\"] = \"Asia/Phnom_Penh\";\n TimezoneEnum[\"ASIA_PONTIANAK\"] = \"Asia/Pontianak\";\n TimezoneEnum[\"ASIA_PYONGYANG\"] = \"Asia/Pyongyang\";\n TimezoneEnum[\"ASIA_QATAR\"] = \"Asia/Qatar\";\n TimezoneEnum[\"ASIA_QOSTANAY\"] = \"Asia/Qostanay\";\n TimezoneEnum[\"ASIA_QYZYLORDA\"] = \"Asia/Qyzylorda\";\n TimezoneEnum[\"ASIA_RANGOON\"] = \"Asia/Rangoon\";\n TimezoneEnum[\"ASIA_RIYADH\"] = \"Asia/Riyadh\";\n TimezoneEnum[\"ASIA_SAIGON\"] = \"Asia/Saigon\";\n TimezoneEnum[\"ASIA_SAKHALIN\"] = \"Asia/Sakhalin\";\n TimezoneEnum[\"ASIA_SAMARKAND\"] = \"Asia/Samarkand\";\n TimezoneEnum[\"ASIA_SEOUL\"] = \"Asia/Seoul\";\n TimezoneEnum[\"ASIA_SHANGHAI\"] = \"Asia/Shanghai\";\n TimezoneEnum[\"ASIA_SINGAPORE\"] = \"Asia/Singapore\";\n TimezoneEnum[\"ASIA_SREDNEKOLYMSK\"] = \"Asia/Srednekolymsk\";\n TimezoneEnum[\"ASIA_TAIPEI\"] = \"Asia/Taipei\";\n TimezoneEnum[\"ASIA_TASHKENT\"] = \"Asia/Tashkent\";\n TimezoneEnum[\"ASIA_TBILISI\"] = \"Asia/Tbilisi\";\n TimezoneEnum[\"ASIA_TEHRAN\"] = \"Asia/Tehran\";\n TimezoneEnum[\"ASIA_TEL_AVIV\"] = \"Asia/Tel_Aviv\";\n TimezoneEnum[\"ASIA_THIMBU\"] = \"Asia/Thimbu\";\n TimezoneEnum[\"ASIA_THIMPHU\"] = \"Asia/Thimphu\";\n TimezoneEnum[\"ASIA_TOKYO\"] = \"Asia/Tokyo\";\n TimezoneEnum[\"ASIA_TOMSK\"] = \"Asia/Tomsk\";\n TimezoneEnum[\"ASIA_UJUNG_PANDANG\"] = \"Asia/Ujung_Pandang\";\n TimezoneEnum[\"ASIA_ULAANBAATAR\"] = \"Asia/Ulaanbaatar\";\n TimezoneEnum[\"ASIA_ULAN_BATOR\"] = \"Asia/Ulan_Bator\";\n TimezoneEnum[\"ASIA_URUMQI\"] = \"Asia/Urumqi\";\n TimezoneEnum[\"ASIA_UST_NERA\"] = \"Asia/Ust-Nera\";\n TimezoneEnum[\"ASIA_VIENTIANE\"] = \"Asia/Vientiane\";\n TimezoneEnum[\"ASIA_VLADIVOSTOK\"] = \"Asia/Vladivostok\";\n TimezoneEnum[\"ASIA_YAKUTSK\"] = \"Asia/Yakutsk\";\n TimezoneEnum[\"ASIA_YANGON\"] = \"Asia/Yangon\";\n TimezoneEnum[\"ASIA_YEKATERINBURG\"] = \"Asia/Yekaterinburg\";\n TimezoneEnum[\"ASIA_YEREVAN\"] = \"Asia/Yerevan\";\n TimezoneEnum[\"ATLANTIC_AZORES\"] = \"Atlantic/Azores\";\n TimezoneEnum[\"ATLANTIC_BERMUDA\"] = \"Atlantic/Bermuda\";\n TimezoneEnum[\"ATLANTIC_CANARY\"] = \"Atlantic/Canary\";\n TimezoneEnum[\"ATLANTIC_CAPE_VERDE\"] = \"Atlantic/Cape_Verde\";\n TimezoneEnum[\"ATLANTIC_FAEROE\"] = \"Atlantic/Faeroe\";\n TimezoneEnum[\"ATLANTIC_FAROE\"] = \"Atlantic/Faroe\";\n TimezoneEnum[\"ATLANTIC_JAN_MAYEN\"] = \"Atlantic/Jan_Mayen\";\n TimezoneEnum[\"ATLANTIC_MADEIRA\"] = \"Atlantic/Madeira\";\n TimezoneEnum[\"ATLANTIC_REYKJAVIK\"] = \"Atlantic/Reykjavik\";\n TimezoneEnum[\"ATLANTIC_SOUTH_GEORGIA\"] = \"Atlantic/South_Georgia\";\n TimezoneEnum[\"ATLANTIC_ST_HELENA\"] = \"Atlantic/St_Helena\";\n TimezoneEnum[\"ATLANTIC_STANLEY\"] = \"Atlantic/Stanley\";\n TimezoneEnum[\"AUSTRALIA_ACT\"] = \"Australia/ACT\";\n TimezoneEnum[\"AUSTRALIA_ADELAIDE\"] = \"Australia/Adelaide\";\n TimezoneEnum[\"AUSTRALIA_BRISBANE\"] = \"Australia/Brisbane\";\n TimezoneEnum[\"AUSTRALIA_BROKEN_HILL\"] = \"Australia/Broken_Hill\";\n TimezoneEnum[\"AUSTRALIA_CANBERRA\"] = \"Australia/Canberra\";\n TimezoneEnum[\"AUSTRALIA_CURRIE\"] = \"Australia/Currie\";\n TimezoneEnum[\"AUSTRALIA_DARWIN\"] = \"Australia/Darwin\";\n TimezoneEnum[\"AUSTRALIA_EUCLA\"] = \"Australia/Eucla\";\n TimezoneEnum[\"AUSTRALIA_HOBART\"] = \"Australia/Hobart\";\n TimezoneEnum[\"AUSTRALIA_LHI\"] = \"Australia/LHI\";\n TimezoneEnum[\"AUSTRALIA_LINDEMAN\"] = \"Australia/Lindeman\";\n TimezoneEnum[\"AUSTRALIA_LORD_HOWE\"] = \"Australia/Lord_Howe\";\n TimezoneEnum[\"AUSTRALIA_MELBOURNE\"] = \"Australia/Melbourne\";\n TimezoneEnum[\"AUSTRALIA_NORTH\"] = \"Australia/North\";\n TimezoneEnum[\"AUSTRALIA_NSW\"] = \"Australia/NSW\";\n TimezoneEnum[\"AUSTRALIA_PERTH\"] = \"Australia/Perth\";\n TimezoneEnum[\"AUSTRALIA_QUEENSLAND\"] = \"Australia/Queensland\";\n TimezoneEnum[\"AUSTRALIA_SOUTH\"] = \"Australia/South\";\n TimezoneEnum[\"AUSTRALIA_SYDNEY\"] = \"Australia/Sydney\";\n TimezoneEnum[\"AUSTRALIA_TASMANIA\"] = \"Australia/Tasmania\";\n TimezoneEnum[\"AUSTRALIA_VICTORIA\"] = \"Australia/Victoria\";\n TimezoneEnum[\"AUSTRALIA_WEST\"] = \"Australia/West\";\n TimezoneEnum[\"AUSTRALIA_YANCOWINNA\"] = \"Australia/Yancowinna\";\n TimezoneEnum[\"BRAZIL_ACRE\"] = \"Brazil/Acre\";\n TimezoneEnum[\"BRAZIL_DE_NORONHA\"] = \"Brazil/DeNoronha\";\n TimezoneEnum[\"BRAZIL_EAST\"] = \"Brazil/East\";\n TimezoneEnum[\"BRAZIL_WEST\"] = \"Brazil/West\";\n TimezoneEnum[\"CANADA_ATLANTIC\"] = \"Canada/Atlantic\";\n TimezoneEnum[\"CANADA_CENTRAL\"] = \"Canada/Central\";\n TimezoneEnum[\"CANADA_EASTERN\"] = \"Canada/Eastern\";\n TimezoneEnum[\"CANADA_MOUNTAIN\"] = \"Canada/Mountain\";\n TimezoneEnum[\"CANADA_NEWFOUNDLAND\"] = \"Canada/Newfoundland\";\n TimezoneEnum[\"CANADA_PACIFIC\"] = \"Canada/Pacific\";\n TimezoneEnum[\"CANADA_SASKATCHEWAN\"] = \"Canada/Saskatchewan\";\n TimezoneEnum[\"CANADA_YUKON\"] = \"Canada/Yukon\";\n TimezoneEnum[\"CET\"] = \"CET\";\n TimezoneEnum[\"CHILE_CONTINENTAL\"] = \"Chile/Continental\";\n TimezoneEnum[\"CHILE_EASTER_ISLAND\"] = \"Chile/EasterIsland\";\n TimezoneEnum[\"CST6_CDT\"] = \"CST6CDT\";\n TimezoneEnum[\"CUBA\"] = \"Cuba\";\n TimezoneEnum[\"EET\"] = \"EET\";\n TimezoneEnum[\"EGYPT\"] = \"Egypt\";\n TimezoneEnum[\"EIRE\"] = \"Eire\";\n TimezoneEnum[\"EST\"] = \"EST\";\n TimezoneEnum[\"EST5_EDT\"] = \"EST5EDT\";\n TimezoneEnum[\"ETC_GMT\"] = \"Etc/GMT\";\n TimezoneEnum[\"ETC_GMT_0\"] = \"Etc/GMT+0\";\n TimezoneEnum[\"ETC_GMT_MINUS_0\"] = \"Etc/GMT-0\";\n TimezoneEnum[\"ETC_GMT_MINUS_1\"] = \"Etc/GMT-1\";\n TimezoneEnum[\"ETC_GMT_MINUS_10\"] = \"Etc/GMT-10\";\n TimezoneEnum[\"ETC_GMT_MINUS_11\"] = \"Etc/GMT-11\";\n TimezoneEnum[\"ETC_GMT_MINUS_12\"] = \"Etc/GMT-12\";\n TimezoneEnum[\"ETC_GMT_MINUS_13\"] = \"Etc/GMT-13\";\n TimezoneEnum[\"ETC_GMT_MINUS_14\"] = \"Etc/GMT-14\";\n TimezoneEnum[\"ETC_GMT_MINUS_2\"] = \"Etc/GMT-2\";\n TimezoneEnum[\"ETC_GMT_MINUS_3\"] = \"Etc/GMT-3\";\n TimezoneEnum[\"ETC_GMT_MINUS_4\"] = \"Etc/GMT-4\";\n TimezoneEnum[\"ETC_GMT_MINUS_5\"] = \"Etc/GMT-5\";\n TimezoneEnum[\"ETC_GMT_MINUS_6\"] = \"Etc/GMT-6\";\n TimezoneEnum[\"ETC_GMT_MINUS_7\"] = \"Etc/GMT-7\";\n TimezoneEnum[\"ETC_GMT_MINUS_8\"] = \"Etc/GMT-8\";\n TimezoneEnum[\"ETC_GMT_MINUS_9\"] = \"Etc/GMT-9\";\n TimezoneEnum[\"ETC_GMT_PLUS_1\"] = \"Etc/GMT+1\";\n TimezoneEnum[\"ETC_GMT_PLUS_10\"] = \"Etc/GMT+10\";\n TimezoneEnum[\"ETC_GMT_PLUS_11\"] = \"Etc/GMT+11\";\n TimezoneEnum[\"ETC_GMT_PLUS_12\"] = \"Etc/GMT+12\";\n TimezoneEnum[\"ETC_GMT_PLUS_2\"] = \"Etc/GMT+2\";\n TimezoneEnum[\"ETC_GMT_PLUS_3\"] = \"Etc/GMT+3\";\n TimezoneEnum[\"ETC_GMT_PLUS_4\"] = \"Etc/GMT+4\";\n TimezoneEnum[\"ETC_GMT_PLUS_5\"] = \"Etc/GMT+5\";\n TimezoneEnum[\"ETC_GMT_PLUS_6\"] = \"Etc/GMT+6\";\n TimezoneEnum[\"ETC_GMT_PLUS_7\"] = \"Etc/GMT+7\";\n TimezoneEnum[\"ETC_GMT_PLUS_8\"] = \"Etc/GMT+8\";\n TimezoneEnum[\"ETC_GMT_PLUS_9\"] = \"Etc/GMT+9\";\n TimezoneEnum[\"ETC_GMT0\"] = \"Etc/GMT0\";\n TimezoneEnum[\"ETC_GREENWICH\"] = \"Etc/Greenwich\";\n TimezoneEnum[\"ETC_UCT\"] = \"Etc/UCT\";\n TimezoneEnum[\"ETC_UNIVERSAL\"] = \"Etc/Universal\";\n TimezoneEnum[\"ETC_UTC\"] = \"Etc/UTC\";\n TimezoneEnum[\"ETC_ZULU\"] = \"Etc/Zulu\";\n TimezoneEnum[\"EUROPE_AMSTERDAM\"] = \"Europe/Amsterdam\";\n TimezoneEnum[\"EUROPE_ANDORRA\"] = \"Europe/Andorra\";\n TimezoneEnum[\"EUROPE_ASTRAKHAN\"] = \"Europe/Astrakhan\";\n TimezoneEnum[\"EUROPE_ATHENS\"] = \"Europe/Athens\";\n TimezoneEnum[\"EUROPE_BELFAST\"] = \"Europe/Belfast\";\n TimezoneEnum[\"EUROPE_BELGRADE\"] = \"Europe/Belgrade\";\n TimezoneEnum[\"EUROPE_BERLIN\"] = \"Europe/Berlin\";\n TimezoneEnum[\"EUROPE_BRATISLAVA\"] = \"Europe/Bratislava\";\n TimezoneEnum[\"EUROPE_BRUSSELS\"] = \"Europe/Brussels\";\n TimezoneEnum[\"EUROPE_BUCHAREST\"] = \"Europe/Bucharest\";\n TimezoneEnum[\"EUROPE_BUDAPEST\"] = \"Europe/Budapest\";\n TimezoneEnum[\"EUROPE_BUSINGEN\"] = \"Europe/Busingen\";\n TimezoneEnum[\"EUROPE_CHISINAU\"] = \"Europe/Chisinau\";\n TimezoneEnum[\"EUROPE_COPENHAGEN\"] = \"Europe/Copenhagen\";\n TimezoneEnum[\"EUROPE_DUBLIN\"] = \"Europe/Dublin\";\n TimezoneEnum[\"EUROPE_GIBRALTAR\"] = \"Europe/Gibraltar\";\n TimezoneEnum[\"EUROPE_GUERNSEY\"] = \"Europe/Guernsey\";\n TimezoneEnum[\"EUROPE_HELSINKI\"] = \"Europe/Helsinki\";\n TimezoneEnum[\"EUROPE_ISLE_OF_MAN\"] = \"Europe/Isle_of_Man\";\n TimezoneEnum[\"EUROPE_ISTANBUL\"] = \"Europe/Istanbul\";\n TimezoneEnum[\"EUROPE_JERSEY\"] = \"Europe/Jersey\";\n TimezoneEnum[\"EUROPE_KALININGRAD\"] = \"Europe/Kaliningrad\";\n TimezoneEnum[\"EUROPE_KIEV\"] = \"Europe/Kiev\";\n TimezoneEnum[\"EUROPE_KIROV\"] = \"Europe/Kirov\";\n TimezoneEnum[\"EUROPE_LISBON\"] = \"Europe/Lisbon\";\n TimezoneEnum[\"EUROPE_LJUBLJANA\"] = \"Europe/Ljubljana\";\n TimezoneEnum[\"EUROPE_LONDON\"] = \"Europe/London\";\n TimezoneEnum[\"EUROPE_LUXEMBOURG\"] = \"Europe/Luxembourg\";\n TimezoneEnum[\"EUROPE_MADRID\"] = \"Europe/Madrid\";\n TimezoneEnum[\"EUROPE_MALTA\"] = \"Europe/Malta\";\n TimezoneEnum[\"EUROPE_MARIEHAMN\"] = \"Europe/Mariehamn\";\n TimezoneEnum[\"EUROPE_MINSK\"] = \"Europe/Minsk\";\n TimezoneEnum[\"EUROPE_MONACO\"] = \"Europe/Monaco\";\n TimezoneEnum[\"EUROPE_MOSCOW\"] = \"Europe/Moscow\";\n TimezoneEnum[\"EUROPE_NICOSIA\"] = \"Europe/Nicosia\";\n TimezoneEnum[\"EUROPE_OSLO\"] = \"Europe/Oslo\";\n TimezoneEnum[\"EUROPE_PARIS\"] = \"Europe/Paris\";\n TimezoneEnum[\"EUROPE_PODGORICA\"] = \"Europe/Podgorica\";\n TimezoneEnum[\"EUROPE_PRAGUE\"] = \"Europe/Prague\";\n TimezoneEnum[\"EUROPE_RIGA\"] = \"Europe/Riga\";\n TimezoneEnum[\"EUROPE_ROME\"] = \"Europe/Rome\";\n TimezoneEnum[\"EUROPE_SAMARA\"] = \"Europe/Samara\";\n TimezoneEnum[\"EUROPE_SAN_MARINO\"] = \"Europe/San_Marino\";\n TimezoneEnum[\"EUROPE_SARAJEVO\"] = \"Europe/Sarajevo\";\n TimezoneEnum[\"EUROPE_SARATOV\"] = \"Europe/Saratov\";\n TimezoneEnum[\"EUROPE_SIMFEROPOL\"] = \"Europe/Simferopol\";\n TimezoneEnum[\"EUROPE_SKOPJE\"] = \"Europe/Skopje\";\n TimezoneEnum[\"EUROPE_SOFIA\"] = \"Europe/Sofia\";\n TimezoneEnum[\"EUROPE_STOCKHOLM\"] = \"Europe/Stockholm\";\n TimezoneEnum[\"EUROPE_TALLINN\"] = \"Europe/Tallinn\";\n TimezoneEnum[\"EUROPE_TIRANE\"] = \"Europe/Tirane\";\n TimezoneEnum[\"EUROPE_TIRASPOL\"] = \"Europe/Tiraspol\";\n TimezoneEnum[\"EUROPE_ULYANOVSK\"] = \"Europe/Ulyanovsk\";\n TimezoneEnum[\"EUROPE_UZHGOROD\"] = \"Europe/Uzhgorod\";\n TimezoneEnum[\"EUROPE_VADUZ\"] = \"Europe/Vaduz\";\n TimezoneEnum[\"EUROPE_VATICAN\"] = \"Europe/Vatican\";\n TimezoneEnum[\"EUROPE_VIENNA\"] = \"Europe/Vienna\";\n TimezoneEnum[\"EUROPE_VILNIUS\"] = \"Europe/Vilnius\";\n TimezoneEnum[\"EUROPE_VOLGOGRAD\"] = \"Europe/Volgograd\";\n TimezoneEnum[\"EUROPE_WARSAW\"] = \"Europe/Warsaw\";\n TimezoneEnum[\"EUROPE_ZAGREB\"] = \"Europe/Zagreb\";\n TimezoneEnum[\"EUROPE_ZAPOROZHYE\"] = \"Europe/Zaporozhye\";\n TimezoneEnum[\"EUROPE_ZURICH\"] = \"Europe/Zurich\";\n TimezoneEnum[\"FACTORY\"] = \"Factory\";\n TimezoneEnum[\"GB\"] = \"GB\";\n TimezoneEnum[\"GB_EIRE\"] = \"GB-Eire\";\n TimezoneEnum[\"GMT\"] = \"GMT\";\n TimezoneEnum[\"GMT_MINUS_0\"] = \"GMT-0\";\n TimezoneEnum[\"GMT_PLUS_0\"] = \"GMT+0\";\n TimezoneEnum[\"GMT0\"] = \"GMT0\";\n TimezoneEnum[\"GREENWICH\"] = \"Greenwich\";\n TimezoneEnum[\"HONGKONG\"] = \"Hongkong\";\n TimezoneEnum[\"HST\"] = \"HST\";\n TimezoneEnum[\"ICELAND\"] = \"Iceland\";\n TimezoneEnum[\"INDIAN_ANTANANARIVO\"] = \"Indian/Antananarivo\";\n TimezoneEnum[\"INDIAN_CHAGOS\"] = \"Indian/Chagos\";\n TimezoneEnum[\"INDIAN_CHRISTMAS\"] = \"Indian/Christmas\";\n TimezoneEnum[\"INDIAN_COCOS\"] = \"Indian/Cocos\";\n TimezoneEnum[\"INDIAN_COMORO\"] = \"Indian/Comoro\";\n TimezoneEnum[\"INDIAN_KERGUELEN\"] = \"Indian/Kerguelen\";\n TimezoneEnum[\"INDIAN_MAHE\"] = \"Indian/Mahe\";\n TimezoneEnum[\"INDIAN_MALDIVES\"] = \"Indian/Maldives\";\n TimezoneEnum[\"INDIAN_MAURITIUS\"] = \"Indian/Mauritius\";\n TimezoneEnum[\"INDIAN_MAYOTTE\"] = \"Indian/Mayotte\";\n TimezoneEnum[\"INDIAN_REUNION\"] = \"Indian/Reunion\";\n TimezoneEnum[\"IRAN\"] = \"Iran\";\n TimezoneEnum[\"ISRAEL\"] = \"Israel\";\n TimezoneEnum[\"JAMAICA\"] = \"Jamaica\";\n TimezoneEnum[\"JAPAN\"] = \"Japan\";\n TimezoneEnum[\"KWAJALEIN\"] = \"Kwajalein\";\n TimezoneEnum[\"LIBYA\"] = \"Libya\";\n TimezoneEnum[\"MET\"] = \"MET\";\n TimezoneEnum[\"MEXICO_BAJA_NORTE\"] = \"Mexico/BajaNorte\";\n TimezoneEnum[\"MEXICO_BAJA_SUR\"] = \"Mexico/BajaSur\";\n TimezoneEnum[\"MEXICO_GENERAL\"] = \"Mexico/General\";\n TimezoneEnum[\"MST\"] = \"MST\";\n TimezoneEnum[\"MST7_MDT\"] = \"MST7MDT\";\n TimezoneEnum[\"NAVAJO\"] = \"Navajo\";\n TimezoneEnum[\"NZ\"] = \"NZ\";\n TimezoneEnum[\"NZ_CHAT\"] = \"NZ-CHAT\";\n TimezoneEnum[\"PACIFIC_APIA\"] = \"Pacific/Apia\";\n TimezoneEnum[\"PACIFIC_AUCKLAND\"] = \"Pacific/Auckland\";\n TimezoneEnum[\"PACIFIC_BOUGAINVILLE\"] = \"Pacific/Bougainville\";\n TimezoneEnum[\"PACIFIC_CHATHAM\"] = \"Pacific/Chatham\";\n TimezoneEnum[\"PACIFIC_CHUUK\"] = \"Pacific/Chuuk\";\n TimezoneEnum[\"PACIFIC_EASTER\"] = \"Pacific/Easter\";\n TimezoneEnum[\"PACIFIC_EFATE\"] = \"Pacific/Efate\";\n TimezoneEnum[\"PACIFIC_ENDERBURY\"] = \"Pacific/Enderbury\";\n TimezoneEnum[\"PACIFIC_FAKAOFO\"] = \"Pacific/Fakaofo\";\n TimezoneEnum[\"PACIFIC_FIJI\"] = \"Pacific/Fiji\";\n TimezoneEnum[\"PACIFIC_FUNAFUTI\"] = \"Pacific/Funafuti\";\n TimezoneEnum[\"PACIFIC_GALAPAGOS\"] = \"Pacific/Galapagos\";\n TimezoneEnum[\"PACIFIC_GAMBIER\"] = \"Pacific/Gambier\";\n TimezoneEnum[\"PACIFIC_GUADALCANAL\"] = \"Pacific/Guadalcanal\";\n TimezoneEnum[\"PACIFIC_GUAM\"] = \"Pacific/Guam\";\n TimezoneEnum[\"PACIFIC_HONOLULU\"] = \"Pacific/Honolulu\";\n TimezoneEnum[\"PACIFIC_JOHNSTON\"] = \"Pacific/Johnston\";\n TimezoneEnum[\"PACIFIC_KIRITIMATI\"] = \"Pacific/Kiritimati\";\n TimezoneEnum[\"PACIFIC_KOSRAE\"] = \"Pacific/Kosrae\";\n TimezoneEnum[\"PACIFIC_KWAJALEIN\"] = \"Pacific/Kwajalein\";\n TimezoneEnum[\"PACIFIC_MAJURO\"] = \"Pacific/Majuro\";\n TimezoneEnum[\"PACIFIC_MARQUESAS\"] = \"Pacific/Marquesas\";\n TimezoneEnum[\"PACIFIC_MIDWAY\"] = \"Pacific/Midway\";\n TimezoneEnum[\"PACIFIC_NAURU\"] = \"Pacific/Nauru\";\n TimezoneEnum[\"PACIFIC_NIUE\"] = \"Pacific/Niue\";\n TimezoneEnum[\"PACIFIC_NORFOLK\"] = \"Pacific/Norfolk\";\n TimezoneEnum[\"PACIFIC_NOUMEA\"] = \"Pacific/Noumea\";\n TimezoneEnum[\"PACIFIC_PAGO_PAGO\"] = \"Pacific/Pago_Pago\";\n TimezoneEnum[\"PACIFIC_PALAU\"] = \"Pacific/Palau\";\n TimezoneEnum[\"PACIFIC_PITCAIRN\"] = \"Pacific/Pitcairn\";\n TimezoneEnum[\"PACIFIC_POHNPEI\"] = \"Pacific/Pohnpei\";\n TimezoneEnum[\"PACIFIC_PONAPE\"] = \"Pacific/Ponape\";\n TimezoneEnum[\"PACIFIC_PORT_MORESBY\"] = \"Pacific/Port_Moresby\";\n TimezoneEnum[\"PACIFIC_RAROTONGA\"] = \"Pacific/Rarotonga\";\n TimezoneEnum[\"PACIFIC_SAIPAN\"] = \"Pacific/Saipan\";\n TimezoneEnum[\"PACIFIC_SAMOA\"] = \"Pacific/Samoa\";\n TimezoneEnum[\"PACIFIC_TAHITI\"] = \"Pacific/Tahiti\";\n TimezoneEnum[\"PACIFIC_TARAWA\"] = \"Pacific/Tarawa\";\n TimezoneEnum[\"PACIFIC_TONGATAPU\"] = \"Pacific/Tongatapu\";\n TimezoneEnum[\"PACIFIC_TRUK\"] = \"Pacific/Truk\";\n TimezoneEnum[\"PACIFIC_WAKE\"] = \"Pacific/Wake\";\n TimezoneEnum[\"PACIFIC_WALLIS\"] = \"Pacific/Wallis\";\n TimezoneEnum[\"PACIFIC_YAP\"] = \"Pacific/Yap\";\n TimezoneEnum[\"POLAND\"] = \"Poland\";\n TimezoneEnum[\"PORTUGAL\"] = \"Portugal\";\n TimezoneEnum[\"PRC\"] = \"PRC\";\n TimezoneEnum[\"PST8_PDT\"] = \"PST8PDT\";\n TimezoneEnum[\"ROC\"] = \"ROC\";\n TimezoneEnum[\"ROK\"] = \"ROK\";\n TimezoneEnum[\"SINGAPORE\"] = \"Singapore\";\n TimezoneEnum[\"TURKEY\"] = \"Turkey\";\n TimezoneEnum[\"UCT\"] = \"UCT\";\n TimezoneEnum[\"UNIVERSAL\"] = \"Universal\";\n TimezoneEnum[\"US_ALASKA\"] = \"US/Alaska\";\n TimezoneEnum[\"US_ALEUTIAN\"] = \"US/Aleutian\";\n TimezoneEnum[\"US_ARIZONA\"] = \"US/Arizona\";\n TimezoneEnum[\"US_CENTRAL\"] = \"US/Central\";\n TimezoneEnum[\"US_EAST_INDIANA\"] = \"US/East-Indiana\";\n TimezoneEnum[\"US_EASTERN\"] = \"US/Eastern\";\n TimezoneEnum[\"US_HAWAII\"] = \"US/Hawaii\";\n TimezoneEnum[\"US_INDIANA_STARKE\"] = \"US/Indiana-Starke\";\n TimezoneEnum[\"US_MICHIGAN\"] = \"US/Michigan\";\n TimezoneEnum[\"US_MOUNTAIN\"] = \"US/Mountain\";\n TimezoneEnum[\"US_PACIFIC\"] = \"US/Pacific\";\n TimezoneEnum[\"US_PACIFIC_NEW\"] = \"US/Pacific-New\";\n TimezoneEnum[\"US_SAMOA\"] = \"US/Samoa\";\n TimezoneEnum[\"UTC\"] = \"UTC\";\n TimezoneEnum[\"W_SU\"] = \"W-SU\";\n TimezoneEnum[\"WET\"] = \"WET\";\n TimezoneEnum[\"ZULU\"] = \"Zulu\";\n})(TimezoneEnum || (TimezoneEnum = {}));\n","export var CronExpressionEnum;\n(function (CronExpressionEnum) {\n CronExpressionEnum[\"EVERY_SECOND\"] = \"* * * * * *\";\n CronExpressionEnum[\"EVERY_5_SECONDS\"] = \"*/5 * * * * *\";\n CronExpressionEnum[\"EVERY_10_SECONDS\"] = \"*/10 * * * * *\";\n CronExpressionEnum[\"EVERY_30_SECONDS\"] = \"*/30 * * * * *\";\n CronExpressionEnum[\"EVERY_MINUTE\"] = \"*/1 * * * *\";\n CronExpressionEnum[\"EVERY_5_MINUTES\"] = \"0 */5 * * * *\";\n CronExpressionEnum[\"EVERY_10_MINUTES\"] = \"0 */10 * * * *\";\n CronExpressionEnum[\"EVERY_30_MINUTES\"] = \"0 */30 * * * *\";\n CronExpressionEnum[\"EVERY_HOUR\"] = \"0 0-23/1 * * *\";\n CronExpressionEnum[\"EVERY_2_HOURS\"] = \"0 0-23/2 * * *\";\n CronExpressionEnum[\"EVERY_3_HOURS\"] = \"0 0-23/3 * * *\";\n CronExpressionEnum[\"EVERY_4_HOURS\"] = \"0 0-23/4 * * *\";\n CronExpressionEnum[\"EVERY_5_HOURS\"] = \"0 0-23/5 * * *\";\n CronExpressionEnum[\"EVERY_6_HOURS\"] = \"0 0-23/6 * * *\";\n CronExpressionEnum[\"EVERY_7_HOURS\"] = \"0 0-23/7 * * *\";\n CronExpressionEnum[\"EVERY_8_HOURS\"] = \"0 0-23/8 * * *\";\n CronExpressionEnum[\"EVERY_9_HOURS\"] = \"0 0-23/9 * * *\";\n CronExpressionEnum[\"EVERY_10_HOURS\"] = \"0 0-23/10 * * *\";\n CronExpressionEnum[\"EVERY_11_HOURS\"] = \"0 0-23/11 * * *\";\n CronExpressionEnum[\"EVERY_12_HOURS\"] = \"0 0-23/12 * * *\";\n CronExpressionEnum[\"EVERY_DAY_AT_1AM\"] = \"0 01 * * *\";\n CronExpressionEnum[\"EVERY_DAY_AT_2AM\"] = \"0 02 * * *\";\n CronExpressionEnum[\"EVERY_DAY_AT_3AM\"] = \"0 03 * * *\";\n CronExpressionEnum[\"EVERY_DAY_AT_4AM\"] = \"0 04 * * *\";\n CronExpressionEnum[\"EVERY_DAY_AT_5AM\"] = \"0 05 * * *\";\n CronExpressionEnum[\"EVERY_DAY_AT_6AM\"] = \"0 06 * * *\";\n CronExpressionEnum[\"EVERY_DAY_AT_7AM\"] = \"0 07 * * *\";\n CronExpressionEnum[\"EVERY_DAY_AT_8AM\"] = \"0 08 * * *\";\n CronExpressionEnum[\"EVERY_DAY_AT_9AM\"] = \"0 09 * * *\";\n CronExpressionEnum[\"EVERY_DAY_AT_10AM\"] = \"0 10 * * *\";\n CronExpressionEnum[\"EVERY_DAY_AT_11AM\"] = \"0 11 * * *\";\n CronExpressionEnum[\"EVERY_DAY_AT_NOON\"] = \"0 12 * * *\";\n CronExpressionEnum[\"EVERY_DAY_AT_1PM\"] = \"0 13 * * *\";\n CronExpressionEnum[\"EVERY_DAY_AT_2PM\"] = \"0 14 * * *\";\n CronExpressionEnum[\"EVERY_DAY_AT_3PM\"] = \"0 15 * * *\";\n CronExpressionEnum[\"EVERY_DAY_AT_4PM\"] = \"0 16 * * *\";\n CronExpressionEnum[\"EVERY_DAY_AT_5PM\"] = \"0 17 * * *\";\n CronExpressionEnum[\"EVERY_DAY_AT_6PM\"] = \"0 18 * * *\";\n CronExpressionEnum[\"EVERY_DAY_AT_7PM\"] = \"0 19 * * *\";\n CronExpressionEnum[\"EVERY_DAY_AT_8PM\"] = \"0 20 * * *\";\n CronExpressionEnum[\"EVERY_DAY_AT_9PM\"] = \"0 21 * * *\";\n CronExpressionEnum[\"EVERY_DAY_AT_10PM\"] = \"0 22 * * *\";\n CronExpressionEnum[\"EVERY_DAY_AT_11PM\"] = \"0 23 * * *\";\n CronExpressionEnum[\"EVERY_DAY_AT_MIDNIGHT\"] = \"0 0 * * *\";\n CronExpressionEnum[\"EVERY_WEEK\"] = \"0 0 * * 0\";\n CronExpressionEnum[\"EVERY_WEEKDAY\"] = \"0 0 * * 1-5\";\n CronExpressionEnum[\"EVERY_WEEKEND\"] = \"0 0 * * 6,0\";\n CronExpressionEnum[\"EVERY_1ST_DAY_OF_MONTH_AT_MIDNIGHT\"] = \"0 0 1 * *\";\n CronExpressionEnum[\"EVERY_1ST_DAY_OF_MONTH_AT_NOON\"] = \"0 12 1 * *\";\n CronExpressionEnum[\"EVERY_2ND_HOUR\"] = \"0 */2 * * *\";\n CronExpressionEnum[\"EVERY_2ND_HOUR_FROM_1AM_THROUGH_11PM\"] = \"0 1-23/2 * * *\";\n CronExpressionEnum[\"EVERY_2ND_MONTH\"] = \"0 0 1 */2 *\";\n CronExpressionEnum[\"EVERY_QUARTER\"] = \"0 0 1 */3 *\";\n CronExpressionEnum[\"EVERY_6_MONTHS\"] = \"0 0 1 */6 *\";\n CronExpressionEnum[\"EVERY_YEAR\"] = \"0 0 1 0 *\";\n CronExpressionEnum[\"EVERY_30_MINUTES_BETWEEN_9AM_AND_5PM\"] = \"0 */30 9-17 * * *\";\n CronExpressionEnum[\"EVERY_30_MINUTES_BETWEEN_9AM_AND_6PM\"] = \"0 */30 9-18 * * *\";\n CronExpressionEnum[\"EVERY_30_MINUTES_BETWEEN_10AM_AND_7PM\"] = \"0 */30 10-19 * * *\";\n CronExpressionEnum[\"MONDAY_TO_FRIDAY_AT_1AM\"] = \"0 0 01 * * 1-5\";\n CronExpressionEnum[\"MONDAY_TO_FRIDAY_AT_2AM\"] = \"0 0 02 * * 1-5\";\n CronExpressionEnum[\"MONDAY_TO_FRIDAY_AT_3AM\"] = \"0 0 03 * * 1-5\";\n CronExpressionEnum[\"MONDAY_TO_FRIDAY_AT_4AM\"] = \"0 0 04 * * 1-5\";\n CronExpressionEnum[\"MONDAY_TO_FRIDAY_AT_5AM\"] = \"0 0 05 * * 1-5\";\n CronExpressionEnum[\"MONDAY_TO_FRIDAY_AT_6AM\"] = \"0 0 06 * * 1-5\";\n CronExpressionEnum[\"MONDAY_TO_FRIDAY_AT_7AM\"] = \"0 0 07 * * 1-5\";\n CronExpressionEnum[\"MONDAY_TO_FRIDAY_AT_8AM\"] = \"0 0 08 * * 1-5\";\n CronExpressionEnum[\"MONDAY_TO_FRIDAY_AT_9AM\"] = \"0 0 09 * * 1-5\";\n CronExpressionEnum[\"MONDAY_TO_FRIDAY_AT_09_30AM\"] = \"0 30 09 * * 1-5\";\n CronExpressionEnum[\"MONDAY_TO_FRIDAY_AT_10AM\"] = \"0 0 10 * * 1-5\";\n CronExpressionEnum[\"MONDAY_TO_FRIDAY_AT_11AM\"] = \"0 0 11 * * 1-5\";\n CronExpressionEnum[\"MONDAY_TO_FRIDAY_AT_11_30AM\"] = \"0 30 11 * * 1-5\";\n CronExpressionEnum[\"MONDAY_TO_FRIDAY_AT_12PM\"] = \"0 0 12 * * 1-5\";\n CronExpressionEnum[\"MONDAY_TO_FRIDAY_AT_1PM\"] = \"0 0 13 * * 1-5\";\n CronExpressionEnum[\"MONDAY_TO_FRIDAY_AT_2PM\"] = \"0 0 14 * * 1-5\";\n CronExpressionEnum[\"MONDAY_TO_FRIDAY_AT_3PM\"] = \"0 0 15 * * 1-5\";\n CronExpressionEnum[\"MONDAY_TO_FRIDAY_AT_4PM\"] = \"0 0 16 * * 1-5\";\n CronExpressionEnum[\"MONDAY_TO_FRIDAY_AT_5PM\"] = \"0 0 17 * * 1-5\";\n CronExpressionEnum[\"MONDAY_TO_FRIDAY_AT_6PM\"] = \"0 0 18 * * 1-5\";\n CronExpressionEnum[\"MONDAY_TO_FRIDAY_AT_7PM\"] = \"0 0 19 * * 1-5\";\n CronExpressionEnum[\"MONDAY_TO_FRIDAY_AT_8PM\"] = \"0 0 20 * * 1-5\";\n CronExpressionEnum[\"MONDAY_TO_FRIDAY_AT_9PM\"] = \"0 0 21 * * 1-5\";\n CronExpressionEnum[\"MONDAY_TO_FRIDAY_AT_10PM\"] = \"0 0 22 * * 1-5\";\n CronExpressionEnum[\"MONDAY_TO_FRIDAY_AT_11PM\"] = \"0 0 23 * * 1-5\";\n})(CronExpressionEnum || (CronExpressionEnum = {}));\n","import { TemplateVariableTypeEnum, } from '../../types';\nimport { TriggerContextTypeEnum } from '../notification-template';\nexport const TemplateSystemVariables = ['subscriber', 'step', 'branding', 'tenant', 'preheader', 'actor'];\nexport const SystemVariablesWithTypes = {\n subscriber: {\n firstName: 'string',\n lastName: 'string',\n email: 'string',\n phone: 'string',\n avatar: 'string',\n locale: 'string',\n subscriberId: 'string',\n },\n actor: {\n firstName: 'string',\n lastName: 'string',\n email: 'string',\n phone: 'string',\n avatar: 'string',\n locale: 'string',\n subscriberId: 'string',\n },\n step: {\n digest: 'boolean',\n events: 'array',\n total_count: 'number',\n },\n branding: {\n logo: 'string',\n color: 'string',\n },\n tenant: {\n name: 'string',\n data: 'object',\n },\n};\nexport const TriggerReservedVariables = ['tenant', 'actor'];\nexport const ReservedVariablesMap = {\n [TriggerContextTypeEnum.TENANT]: [{ name: 'identifier', type: TemplateVariableTypeEnum.STRING }],\n [TriggerContextTypeEnum.ACTOR]: [{ name: 'subscriberId', type: TemplateVariableTypeEnum.STRING }],\n};\n","export var LogStatusEnum;\n(function (LogStatusEnum) {\n LogStatusEnum[\"ERROR\"] = \"error\";\n LogStatusEnum[\"SUCCESS\"] = \"success\";\n LogStatusEnum[\"INFO\"] = \"info\";\n})(LogStatusEnum || (LogStatusEnum = {}));\nexport var LogCodeEnum;\n(function (LogCodeEnum) {\n LogCodeEnum[LogCodeEnum[\"TRIGGER_RECEIVED\"] = 1000] = \"TRIGGER_RECEIVED\";\n LogCodeEnum[LogCodeEnum[\"TEMPLATE_NOT_ACTIVE\"] = 1001] = \"TEMPLATE_NOT_ACTIVE\";\n LogCodeEnum[LogCodeEnum[\"TEMPLATE_NOT_FOUND\"] = 1002] = \"TEMPLATE_NOT_FOUND\";\n LogCodeEnum[LogCodeEnum[\"SMS_ERROR\"] = 1004] = \"SMS_ERROR\";\n LogCodeEnum[LogCodeEnum[\"CHAT_ERROR\"] = 1005] = \"CHAT_ERROR\";\n LogCodeEnum[LogCodeEnum[\"MISSING_SMS_PROVIDER\"] = 1006] = \"MISSING_SMS_PROVIDER\";\n LogCodeEnum[LogCodeEnum[\"IN_APP_MESSAGE_CREATED\"] = 1007] = \"IN_APP_MESSAGE_CREATED\";\n LogCodeEnum[LogCodeEnum[\"MAIL_PROVIDER_DELIVERY_ERROR\"] = 1008] = \"MAIL_PROVIDER_DELIVERY_ERROR\";\n LogCodeEnum[LogCodeEnum[\"TRIGGER_PROCESSED\"] = 1009] = \"TRIGGER_PROCESSED\";\n LogCodeEnum[LogCodeEnum[\"PUSH_ERROR\"] = 1010] = \"PUSH_ERROR\";\n LogCodeEnum[LogCodeEnum[\"MISSING_PUSH_PROVIDER\"] = 1011] = \"MISSING_PUSH_PROVIDER\";\n LogCodeEnum[LogCodeEnum[\"SUBSCRIBER_NOT_FOUND\"] = 3001] = \"SUBSCRIBER_NOT_FOUND\";\n LogCodeEnum[LogCodeEnum[\"SUBSCRIBER_MISSING_EMAIL\"] = 3002] = \"SUBSCRIBER_MISSING_EMAIL\";\n LogCodeEnum[LogCodeEnum[\"SUBSCRIBER_MISSING_PHONE\"] = 3003] = \"SUBSCRIBER_MISSING_PHONE\";\n LogCodeEnum[LogCodeEnum[\"SUBSCRIBER_MISSING_CHAT_CHANNEL_ID\"] = 3006] = \"SUBSCRIBER_MISSING_CHAT_CHANNEL_ID\";\n LogCodeEnum[LogCodeEnum[\"SUBSCRIBER_ID_MISSING\"] = 3004] = \"SUBSCRIBER_ID_MISSING\";\n LogCodeEnum[LogCodeEnum[\"MISSING_EMAIL_INTEGRATION\"] = 3005] = \"MISSING_EMAIL_INTEGRATION\";\n LogCodeEnum[LogCodeEnum[\"MISSING_SMS_INTEGRATION\"] = 3007] = \"MISSING_SMS_INTEGRATION\";\n LogCodeEnum[LogCodeEnum[\"MISSING_CHAT_INTEGRATION\"] = 3008] = \"MISSING_CHAT_INTEGRATION\";\n LogCodeEnum[LogCodeEnum[\"MISSING_PUSH_INTEGRATION\"] = 3009] = \"MISSING_PUSH_INTEGRATION\";\n LogCodeEnum[LogCodeEnum[\"SUBSCRIBER_MISSING_PUSH\"] = 3010] = \"SUBSCRIBER_MISSING_PUSH\";\n LogCodeEnum[LogCodeEnum[\"MISSING_PAYLOAD_VARIABLE\"] = 3011] = \"MISSING_PAYLOAD_VARIABLE\";\n LogCodeEnum[LogCodeEnum[\"AVATAR_ACTOR_ERROR\"] = 3012] = \"AVATAR_ACTOR_ERROR\";\n LogCodeEnum[LogCodeEnum[\"SYNTAX_ERROR_IN_EMAIL_EDITOR\"] = 3013] = \"SYNTAX_ERROR_IN_EMAIL_EDITOR\";\n LogCodeEnum[LogCodeEnum[\"TOPIC_ERROR\"] = 4001] = \"TOPIC_ERROR\";\n LogCodeEnum[LogCodeEnum[\"TOPIC_SUBSCRIBERS_ERROR\"] = 4002] = \"TOPIC_SUBSCRIBERS_ERROR\";\n})(LogCodeEnum || (LogCodeEnum = {}));\n","export var ChangeEntityTypeEnum;\n(function (ChangeEntityTypeEnum) {\n ChangeEntityTypeEnum[\"FEED\"] = \"Feed\";\n ChangeEntityTypeEnum[\"MESSAGE_TEMPLATE\"] = \"MessageTemplate\";\n ChangeEntityTypeEnum[\"LAYOUT\"] = \"Layout\";\n ChangeEntityTypeEnum[\"DEFAULT_LAYOUT\"] = \"DefaultLayout\";\n ChangeEntityTypeEnum[\"NOTIFICATION_TEMPLATE\"] = \"NotificationTemplate\";\n ChangeEntityTypeEnum[\"NOTIFICATION_GROUP\"] = \"NotificationGroup\";\n ChangeEntityTypeEnum[\"TRANSLATION_GROUP\"] = \"TranslationGroup\";\n ChangeEntityTypeEnum[\"TRANSLATION\"] = \"Translation\";\n})(ChangeEntityTypeEnum || (ChangeEntityTypeEnum = {}));\n","export var DigestUnitEnum;\n(function (DigestUnitEnum) {\n DigestUnitEnum[\"SECONDS\"] = \"seconds\";\n DigestUnitEnum[\"MINUTES\"] = \"minutes\";\n DigestUnitEnum[\"HOURS\"] = \"hours\";\n DigestUnitEnum[\"DAYS\"] = \"days\";\n DigestUnitEnum[\"WEEKS\"] = \"weeks\";\n DigestUnitEnum[\"MONTHS\"] = \"months\";\n})(DigestUnitEnum || (DigestUnitEnum = {}));\nexport var DaysEnum;\n(function (DaysEnum) {\n DaysEnum[\"MONDAY\"] = \"monday\";\n DaysEnum[\"TUESDAY\"] = \"tuesday\";\n DaysEnum[\"WEDNESDAY\"] = \"wednesday\";\n DaysEnum[\"THURSDAY\"] = \"thursday\";\n DaysEnum[\"FRIDAY\"] = \"friday\";\n DaysEnum[\"SATURDAY\"] = \"saturday\";\n DaysEnum[\"SUNDAY\"] = \"sunday\";\n})(DaysEnum || (DaysEnum = {}));\nexport var DigestTypeEnum;\n(function (DigestTypeEnum) {\n DigestTypeEnum[\"REGULAR\"] = \"regular\";\n DigestTypeEnum[\"BACKOFF\"] = \"backoff\";\n DigestTypeEnum[\"TIMED\"] = \"timed\";\n})(DigestTypeEnum || (DigestTypeEnum = {}));\nexport var DelayTypeEnum;\n(function (DelayTypeEnum) {\n DelayTypeEnum[\"REGULAR\"] = \"regular\";\n DelayTypeEnum[\"SCHEDULED\"] = \"scheduled\";\n})(DelayTypeEnum || (DelayTypeEnum = {}));\nexport var MonthlyTypeEnum;\n(function (MonthlyTypeEnum) {\n MonthlyTypeEnum[\"EACH\"] = \"each\";\n MonthlyTypeEnum[\"ON\"] = \"on\";\n})(MonthlyTypeEnum || (MonthlyTypeEnum = {}));\nexport var OrdinalEnum;\n(function (OrdinalEnum) {\n OrdinalEnum[\"FIRST\"] = \"1\";\n OrdinalEnum[\"SECOND\"] = \"2\";\n OrdinalEnum[\"THIRD\"] = \"3\";\n OrdinalEnum[\"FOURTH\"] = \"4\";\n OrdinalEnum[\"FIFTH\"] = \"5\";\n OrdinalEnum[\"LAST\"] = \"last\";\n})(OrdinalEnum || (OrdinalEnum = {}));\nexport var OrdinalValueEnum;\n(function (OrdinalValueEnum) {\n OrdinalValueEnum[\"DAY\"] = \"day\";\n OrdinalValueEnum[\"WEEKDAY\"] = \"weekday\";\n OrdinalValueEnum[\"WEEKEND\"] = \"weekend\";\n OrdinalValueEnum[\"SUNDAY\"] = \"sunday\";\n OrdinalValueEnum[\"MONDAY\"] = \"monday\";\n OrdinalValueEnum[\"TUESDAY\"] = \"tuesday\";\n OrdinalValueEnum[\"WEDNESDAY\"] = \"wednesday\";\n OrdinalValueEnum[\"THURSDAY\"] = \"thursday\";\n OrdinalValueEnum[\"FRIDAY\"] = \"friday\";\n OrdinalValueEnum[\"SATURDAY\"] = \"saturday\";\n})(OrdinalValueEnum || (OrdinalValueEnum = {}));\n","export var JobStatusEnum;\n(function (JobStatusEnum) {\n JobStatusEnum[\"PENDING\"] = \"pending\";\n JobStatusEnum[\"QUEUED\"] = \"queued\";\n JobStatusEnum[\"RUNNING\"] = \"running\";\n JobStatusEnum[\"COMPLETED\"] = \"completed\";\n JobStatusEnum[\"FAILED\"] = \"failed\";\n JobStatusEnum[\"DELAYED\"] = \"delayed\";\n JobStatusEnum[\"CANCELED\"] = \"canceled\";\n JobStatusEnum[\"MERGED\"] = \"merged\";\n JobStatusEnum[\"SKIPPED\"] = \"skipped\";\n})(JobStatusEnum || (JobStatusEnum = {}));\nexport var DigestCreationResultEnum;\n(function (DigestCreationResultEnum) {\n DigestCreationResultEnum[\"MERGED\"] = \"MERGED\";\n DigestCreationResultEnum[\"CREATED\"] = \"CREATED\";\n DigestCreationResultEnum[\"SKIPPED\"] = \"SKIPPED\";\n})(DigestCreationResultEnum || (DigestCreationResultEnum = {}));\n","import { PreferenceOverrideSourceEnum } from '../../types';\nexport var PreferenceLevelEnum;\n(function (PreferenceLevelEnum) {\n PreferenceLevelEnum[\"GLOBAL\"] = \"global\";\n PreferenceLevelEnum[\"TEMPLATE\"] = \"template\";\n})(PreferenceLevelEnum || (PreferenceLevelEnum = {}));\n","export class LayoutDto {\n}\n","export class ChannelCTADto {\n}\nexport class MessageTemplateDto {\n}\n","export class SubscriberDto {\n}\n","export class TopicDto {\n}\nexport class TopicSubscribersDto {\n}\n","export class StepVariantDto {\n}\nexport class NotificationStepDto extends StepVariantDto {\n}\n","export const DEFAULT_NOTIFICATION_RETENTION_DAYS = 30;\nexport const DEFAULT_MESSAGE_GENERIC_RETENTION_DAYS = 30;\nexport const DEFAULT_MESSAGE_IN_APP_RETENTION_DAYS = 365;\n","export var CredentialsKeyEnum;\n(function (CredentialsKeyEnum) {\n CredentialsKeyEnum[\"ApiKey\"] = \"apiKey\";\n CredentialsKeyEnum[\"User\"] = \"user\";\n CredentialsKeyEnum[\"SecretKey\"] = \"secretKey\";\n CredentialsKeyEnum[\"Domain\"] = \"domain\";\n CredentialsKeyEnum[\"Password\"] = \"password\";\n CredentialsKeyEnum[\"Host\"] = \"host\";\n CredentialsKeyEnum[\"Port\"] = \"port\";\n CredentialsKeyEnum[\"Secure\"] = \"secure\";\n CredentialsKeyEnum[\"Region\"] = \"region\";\n CredentialsKeyEnum[\"AccountSid\"] = \"accountSid\";\n CredentialsKeyEnum[\"MessageProfileId\"] = \"messageProfileId\";\n CredentialsKeyEnum[\"Token\"] = \"token\";\n CredentialsKeyEnum[\"From\"] = \"from\";\n CredentialsKeyEnum[\"SenderName\"] = \"senderName\";\n CredentialsKeyEnum[\"ContentType\"] = \"contentType\";\n CredentialsKeyEnum[\"ApplicationId\"] = \"applicationId\";\n CredentialsKeyEnum[\"ClientId\"] = \"clientId\";\n CredentialsKeyEnum[\"ProjectName\"] = \"projectName\";\n CredentialsKeyEnum[\"ServiceAccount\"] = \"serviceAccount\";\n CredentialsKeyEnum[\"BaseUrl\"] = \"baseUrl\";\n CredentialsKeyEnum[\"WebhookUrl\"] = \"webhookUrl\";\n CredentialsKeyEnum[\"RequireTls\"] = \"requireTls\";\n CredentialsKeyEnum[\"IgnoreTls\"] = \"ignoreTls\";\n CredentialsKeyEnum[\"TlsOptions\"] = \"tlsOptions\";\n CredentialsKeyEnum[\"RedirectUrl\"] = \"redirectUrl\";\n CredentialsKeyEnum[\"Hmac\"] = \"hmac\";\n CredentialsKeyEnum[\"IpPoolName\"] = \"ipPoolName\";\n CredentialsKeyEnum[\"ApiKeyRequestHeader\"] = \"apiKeyRequestHeader\";\n CredentialsKeyEnum[\"SecretKeyRequestHeader\"] = \"secretKeyRequestHeader\";\n CredentialsKeyEnum[\"IdPath\"] = \"idPath\";\n CredentialsKeyEnum[\"DatePath\"] = \"datePath\";\n CredentialsKeyEnum[\"AuthenticateByToken\"] = \"authenticateByToken\";\n CredentialsKeyEnum[\"AuthenticationTokenKey\"] = \"authenticationTokenKey\";\n CredentialsKeyEnum[\"AccessKey\"] = \"accessKey\";\n CredentialsKeyEnum[\"InstanceId\"] = \"instanceId\";\n CredentialsKeyEnum[\"ApiToken\"] = \"apiToken\";\n CredentialsKeyEnum[\"ApiURL\"] = \"apiURL\";\n CredentialsKeyEnum[\"AppID\"] = \"appID\";\n CredentialsKeyEnum[\"alertUid\"] = \"alertUid\";\n CredentialsKeyEnum[\"title\"] = \"title\";\n CredentialsKeyEnum[\"imageUrl\"] = \"imageUrl\";\n CredentialsKeyEnum[\"state\"] = \"state\";\n CredentialsKeyEnum[\"externalLink\"] = \"externalLink\";\n})(CredentialsKeyEnum || (CredentialsKeyEnum = {}));\nexport var EmailProviderIdEnum;\n(function (EmailProviderIdEnum) {\n EmailProviderIdEnum[\"EmailJS\"] = \"emailjs\";\n EmailProviderIdEnum[\"Mailgun\"] = \"mailgun\";\n EmailProviderIdEnum[\"Mailjet\"] = \"mailjet\";\n EmailProviderIdEnum[\"Mandrill\"] = \"mandrill\";\n EmailProviderIdEnum[\"CustomSMTP\"] = \"nodemailer\";\n EmailProviderIdEnum[\"Postmark\"] = \"postmark\";\n EmailProviderIdEnum[\"SendGrid\"] = \"sendgrid\";\n EmailProviderIdEnum[\"Sendinblue\"] = \"sendinblue\";\n EmailProviderIdEnum[\"SES\"] = \"ses\";\n EmailProviderIdEnum[\"NetCore\"] = \"netcore\";\n EmailProviderIdEnum[\"Infobip\"] = \"infobip-email\";\n EmailProviderIdEnum[\"Resend\"] = \"resend\";\n EmailProviderIdEnum[\"Plunk\"] = \"plunk\";\n EmailProviderIdEnum[\"MailerSend\"] = \"mailersend\";\n EmailProviderIdEnum[\"Mailtrap\"] = \"mailtrap\";\n EmailProviderIdEnum[\"Clickatell\"] = \"clickatell\";\n EmailProviderIdEnum[\"Outlook365\"] = \"outlook365\";\n EmailProviderIdEnum[\"Novu\"] = \"novu-email\";\n EmailProviderIdEnum[\"SparkPost\"] = \"sparkpost\";\n EmailProviderIdEnum[\"EmailWebhook\"] = \"email-webhook\";\n EmailProviderIdEnum[\"Braze\"] = \"braze\";\n})(EmailProviderIdEnum || (EmailProviderIdEnum = {}));\nexport var SmsProviderIdEnum;\n(function (SmsProviderIdEnum) {\n SmsProviderIdEnum[\"Nexmo\"] = \"nexmo\";\n SmsProviderIdEnum[\"Plivo\"] = \"plivo\";\n SmsProviderIdEnum[\"Sms77\"] = \"sms77\";\n SmsProviderIdEnum[\"SmsCentral\"] = \"sms-central\";\n SmsProviderIdEnum[\"SNS\"] = \"sns\";\n SmsProviderIdEnum[\"Telnyx\"] = \"telnyx\";\n SmsProviderIdEnum[\"Twilio\"] = \"twilio\";\n SmsProviderIdEnum[\"Gupshup\"] = \"gupshup\";\n SmsProviderIdEnum[\"Firetext\"] = \"firetext\";\n SmsProviderIdEnum[\"Infobip\"] = \"infobip-sms\";\n SmsProviderIdEnum[\"BurstSms\"] = \"burst-sms\";\n SmsProviderIdEnum[\"BulkSms\"] = \"bulk-sms\";\n SmsProviderIdEnum[\"ISendSms\"] = \"isend-sms\";\n SmsProviderIdEnum[\"Clickatell\"] = \"clickatell\";\n SmsProviderIdEnum[\"FortySixElks\"] = \"forty-six-elks\";\n SmsProviderIdEnum[\"Kannel\"] = \"kannel\";\n SmsProviderIdEnum[\"Maqsam\"] = \"maqsam\";\n SmsProviderIdEnum[\"Termii\"] = \"termii\";\n SmsProviderIdEnum[\"AfricasTalking\"] = \"africas-talking\";\n SmsProviderIdEnum[\"Novu\"] = \"novu-sms\";\n SmsProviderIdEnum[\"Sendchamp\"] = \"sendchamp\";\n SmsProviderIdEnum[\"GenericSms\"] = \"generic-sms\";\n SmsProviderIdEnum[\"Clicksend\"] = \"clicksend\";\n SmsProviderIdEnum[\"Bandwidth\"] = \"bandwidth\";\n SmsProviderIdEnum[\"MessageBird\"] = \"messagebird\";\n SmsProviderIdEnum[\"Simpletexting\"] = \"simpletexting\";\n SmsProviderIdEnum[\"AzureSms\"] = \"azure-sms\";\n SmsProviderIdEnum[\"RingCentral\"] = \"ring-central\";\n SmsProviderIdEnum[\"BrevoSms\"] = \"brevo-sms\";\n})(SmsProviderIdEnum || (SmsProviderIdEnum = {}));\nexport var ChatProviderIdEnum;\n(function (ChatProviderIdEnum) {\n ChatProviderIdEnum[\"Slack\"] = \"slack\";\n ChatProviderIdEnum[\"Discord\"] = \"discord\";\n ChatProviderIdEnum[\"MsTeams\"] = \"msteams\";\n ChatProviderIdEnum[\"Mattermost\"] = \"mattermost\";\n ChatProviderIdEnum[\"Ryver\"] = \"ryver\";\n ChatProviderIdEnum[\"Zulip\"] = \"zulip\";\n ChatProviderIdEnum[\"GrafanaOnCall\"] = \"grafana-on-call\";\n ChatProviderIdEnum[\"GetStream\"] = \"getstream\";\n ChatProviderIdEnum[\"RocketChat\"] = \"rocket-chat\";\n})(ChatProviderIdEnum || (ChatProviderIdEnum = {}));\nexport var PushProviderIdEnum;\n(function (PushProviderIdEnum) {\n PushProviderIdEnum[\"FCM\"] = \"fcm\";\n PushProviderIdEnum[\"APNS\"] = \"apns\";\n PushProviderIdEnum[\"EXPO\"] = \"expo\";\n PushProviderIdEnum[\"OneSignal\"] = \"one-signal\";\n PushProviderIdEnum[\"Pushpad\"] = \"pushpad\";\n PushProviderIdEnum[\"PushWebhook\"] = \"push-webhook\";\n PushProviderIdEnum[\"PusherBeams\"] = \"pusher-beams\";\n})(PushProviderIdEnum || (PushProviderIdEnum = {}));\nexport var InAppProviderIdEnum;\n(function (InAppProviderIdEnum) {\n InAppProviderIdEnum[\"Novu\"] = \"novu\";\n})(InAppProviderIdEnum || (InAppProviderIdEnum = {}));\n","import { CredentialsKeyEnum } from '../provider.enum';\nexport const secureCredentials = [\n CredentialsKeyEnum.ApiKey,\n CredentialsKeyEnum.ApiToken,\n CredentialsKeyEnum.SecretKey,\n CredentialsKeyEnum.Token,\n CredentialsKeyEnum.Password,\n CredentialsKeyEnum.ServiceAccount,\n];\n","import { CredentialsKeyEnum } from '../provider.enum';\nconst mailConfigBase = [\n {\n key: CredentialsKeyEnum.From,\n displayName: 'From email address',\n description: 'Use the same email address you used to authenticate your delivery provider',\n type: 'string',\n required: true,\n },\n {\n key: CredentialsKeyEnum.SenderName,\n displayName: 'Sender name',\n type: 'string',\n required: true,\n },\n];\nconst smsConfigBase = [\n {\n key: CredentialsKeyEnum.From,\n displayName: 'From',\n type: 'string',\n required: true,\n },\n];\nconst pushConfigBase = [];\nexport const mailJsConfig = [\n {\n key: CredentialsKeyEnum.ApiKey,\n displayName: 'API Key',\n type: 'string',\n required: true,\n },\n {\n key: CredentialsKeyEnum.SecretKey,\n displayName: 'Secret key',\n type: 'string',\n required: true,\n },\n ...mailConfigBase,\n];\nexport const mailgunConfig = [\n {\n key: CredentialsKeyEnum.ApiKey,\n displayName: 'API Key',\n type: 'string',\n required: true,\n },\n {\n key: CredentialsKeyEnum.BaseUrl,\n displayName: 'Base URL',\n type: 'string',\n required: false,\n },\n {\n key: CredentialsKeyEnum.User,\n displayName: 'User name',\n type: 'string',\n required: true,\n },\n {\n key: CredentialsKeyEnum.Domain,\n displayName: 'Domain',\n type: 'string',\n required: true,\n },\n ...mailConfigBase,\n];\nexport const mailjetConfig = [\n {\n key: CredentialsKeyEnum.ApiKey,\n displayName: 'API Key',\n type: 'string',\n required: true,\n },\n {\n key: CredentialsKeyEnum.SecretKey,\n displayName: 'API Secret',\n type: 'string',\n required: true,\n },\n ...mailConfigBase,\n];\nexport const nexmoConfig = [\n {\n key: CredentialsKeyEnum.ApiKey,\n displayName: 'API Key',\n type: 'string',\n required: true,\n },\n {\n key: CredentialsKeyEnum.SecretKey,\n displayName: 'API secret',\n type: 'string',\n required: true,\n },\n ...smsConfigBase,\n];\nexport const mandrillConfig = [\n {\n key: CredentialsKeyEnum.ApiKey,\n displayName: 'API Key',\n type: 'string',\n required: true,\n },\n ...mailConfigBase,\n];\nexport const nodemailerConfig = [\n {\n key: CredentialsKeyEnum.User,\n displayName: 'User',\n type: 'string',\n required: false,\n },\n {\n key: CredentialsKeyEnum.Password,\n displayName: 'Password',\n type: 'string',\n required: false,\n },\n {\n key: CredentialsKeyEnum.Host,\n displayName: 'Host',\n type: 'string',\n required: true,\n },\n {\n key: CredentialsKeyEnum.Port,\n displayName: 'Port',\n type: 'number',\n required: true,\n },\n {\n key: CredentialsKeyEnum.Secure,\n displayName: 'Secure',\n type: 'boolean',\n required: false,\n },\n {\n key: CredentialsKeyEnum.RequireTls,\n displayName: 'Require TLS',\n type: 'switch',\n required: false,\n },\n {\n key: CredentialsKeyEnum.IgnoreTls,\n displayName: 'Ignore TLS',\n type: 'switch',\n required: false,\n },\n {\n key: CredentialsKeyEnum.TlsOptions,\n displayName: 'TLS options',\n type: 'object',\n required: false,\n },\n {\n key: CredentialsKeyEnum.Domain,\n displayName: 'DKIM: Domain name',\n type: 'string',\n required: false,\n },\n {\n key: CredentialsKeyEnum.SecretKey,\n displayName: 'DKIM: Private key',\n type: 'string',\n required: false,\n },\n {\n key: CredentialsKeyEnum.AccountSid,\n displayName: 'DKIM: Key selector',\n type: 'string',\n required: false,\n },\n ...mailConfigBase,\n];\nexport const postmarkConfig = [\n {\n key: CredentialsKeyEnum.ApiKey,\n displayName: 'API Key',\n type: 'string',\n required: true,\n },\n ...mailConfigBase,\n];\nexport const sendgridConfig = [\n {\n key: CredentialsKeyEnum.ApiKey,\n displayName: 'API Key',\n type: 'string',\n required: true,\n },\n {\n key: CredentialsKeyEnum.IpPoolName,\n displayName: 'IP Pool Name',\n type: 'string',\n required: false,\n },\n ...mailConfigBase,\n];\nexport const resendConfig = [\n {\n key: CredentialsKeyEnum.ApiKey,\n displayName: 'API Key',\n type: 'string',\n required: true,\n },\n ...mailConfigBase,\n];\nexport const mailtrapConfig = [\n {\n key: CredentialsKeyEnum.ApiKey,\n displayName: 'API Key',\n type: 'string',\n required: true,\n },\n ...mailConfigBase,\n];\nexport const plunkConfig = [\n {\n key: CredentialsKeyEnum.ApiKey,\n displayName: 'API Key',\n type: 'string',\n required: true,\n },\n ...mailConfigBase,\n];\nexport const sparkpostConfig = [\n {\n key: CredentialsKeyEnum.ApiKey,\n displayName: 'API Key',\n type: 'string',\n required: true,\n },\n {\n key: CredentialsKeyEnum.Region,\n displayName: 'Region',\n description: 'Use EU if your account is registered to SparkPost EU',\n type: 'dropdown',\n required: false,\n value: null,\n dropdown: [\n { name: 'Default', value: null },\n { name: 'EU', value: 'eu' },\n ],\n },\n ...mailConfigBase,\n];\nexport const netCoreConfig = [\n {\n key: CredentialsKeyEnum.ApiKey,\n displayName: 'API Key',\n type: 'string',\n required: true,\n },\n ...mailConfigBase,\n];\nexport const sendinblueConfig = [\n {\n key: CredentialsKeyEnum.ApiKey,\n displayName: 'API Key',\n type: 'string',\n required: true,\n },\n ...mailConfigBase,\n];\nexport const sesConfig = [\n {\n key: CredentialsKeyEnum.ApiKey,\n displayName: 'Access key ID',\n type: 'string',\n required: true,\n },\n {\n key: CredentialsKeyEnum.SecretKey,\n displayName: 'Secret access key',\n type: 'string',\n required: true,\n },\n {\n key: CredentialsKeyEnum.Region,\n displayName: 'Region',\n type: 'string',\n required: true,\n },\n ...mailConfigBase,\n];\nexport const mailerSendConfig = [\n {\n key: CredentialsKeyEnum.ApiKey,\n displayName: 'API Key',\n type: 'string',\n required: true,\n },\n ...mailConfigBase,\n];\nexport const plivoConfig = [\n {\n key: CredentialsKeyEnum.AccountSid,\n displayName: 'Account SID',\n type: 'string',\n required: true,\n },\n {\n key: CredentialsKeyEnum.Token,\n displayName: 'Auth token',\n type: 'string',\n required: true,\n },\n ...smsConfigBase,\n];\nexport const sms77Config = [\n {\n key: CredentialsKeyEnum.ApiKey,\n displayName: 'API Key',\n type: 'string',\n required: true,\n },\n ...smsConfigBase,\n];\nexport const termiiConfig = [\n {\n key: CredentialsKeyEnum.ApiKey,\n displayName: 'API Key',\n type: 'string',\n required: true,\n },\n ...smsConfigBase,\n];\nexport const burstSmsConfig = [\n {\n key: CredentialsKeyEnum.ApiKey,\n displayName: 'API Key',\n type: 'string',\n required: true,\n },\n {\n key: CredentialsKeyEnum.SecretKey,\n displayName: 'API Secret',\n type: 'string',\n required: true,\n },\n];\nexport const bulkSmsConfig = [\n {\n key: CredentialsKeyEnum.ApiToken,\n displayName: 'API Token',\n type: 'string',\n required: true,\n },\n];\nexport const iSendSmsConfig = [\n {\n key: CredentialsKeyEnum.ApiToken,\n displayName: 'API Token',\n type: 'string',\n required: true,\n },\n {\n key: CredentialsKeyEnum.From,\n displayName: 'Default Sender ID',\n type: 'string',\n required: false,\n },\n {\n key: CredentialsKeyEnum.ContentType,\n displayName: 'Content Type',\n type: 'dropdown',\n required: false,\n value: null,\n dropdown: [\n { name: 'Default', value: null },\n { name: 'Unicode', value: 'unicode' },\n { name: 'Plain', value: 'plain' },\n ],\n },\n];\nexport const clickatellConfig = [\n {\n key: CredentialsKeyEnum.ApiKey,\n displayName: 'API Key',\n type: 'string',\n required: true,\n },\n];\nexport const snsConfig = [\n {\n key: CredentialsKeyEnum.ApiKey,\n displayName: 'Access key ID',\n type: 'string',\n required: true,\n },\n {\n key: CredentialsKeyEnum.SecretKey,\n displayName: 'Secret access key',\n type: 'string',\n required: true,\n },\n {\n key: CredentialsKeyEnum.Region,\n displayName: 'AWS region',\n type: 'string',\n required: true,\n },\n];\nexport const telnyxConfig = [\n {\n key: CredentialsKeyEnum.ApiKey,\n displayName: 'API Key',\n type: 'string',\n required: true,\n },\n {\n key: CredentialsKeyEnum.MessageProfileId,\n displayName: 'Message profile ID',\n type: 'string',\n required: true,\n },\n ...smsConfigBase,\n];\nexport const twilioConfig = [\n {\n key: CredentialsKeyEnum.AccountSid,\n displayName: 'Account SID',\n type: 'string',\n required: true,\n },\n {\n key: CredentialsKeyEnum.Token,\n displayName: 'Auth token',\n type: 'string',\n required: true,\n },\n ...smsConfigBase,\n];\nexport const messagebirdConfig = [\n {\n key: CredentialsKeyEnum.AccessKey,\n displayName: 'Access key',\n type: 'string',\n required: true,\n },\n ...smsConfigBase,\n];\nexport const slackConfig = [\n {\n key: CredentialsKeyEnum.ApplicationId,\n displayName: 'Application Id',\n type: 'string',\n required: true,\n },\n {\n key: CredentialsKeyEnum.ClientId,\n displayName: 'Client ID',\n type: 'string',\n required: true,\n },\n {\n key: CredentialsKeyEnum.SecretKey,\n displayName: 'Client Secret',\n type: 'string',\n required: true,\n },\n {\n key: CredentialsKeyEnum.RedirectUrl,\n displayName: 'Redirect URL',\n description: 'Redirect after Slack OAuth flow finished (default behaviour will close the tab)',\n type: 'string',\n required: false,\n },\n {\n key: CredentialsKeyEnum.Hmac,\n displayName: 'HMAC',\n type: 'switch',\n required: false,\n },\n];\nexport const grafanaOnCallConfig = [\n {\n key: CredentialsKeyEnum.alertUid,\n displayName: 'Alert UID',\n type: 'string',\n description: 'a unique alert ID for grouping, maps to alert_uid of grafana webhook body content',\n required: false,\n },\n {\n key: CredentialsKeyEnum.title,\n displayName: 'Title.',\n type: 'string',\n description: 'title for the alert',\n required: false,\n },\n {\n key: CredentialsKeyEnum.imageUrl,\n displayName: 'Image URL',\n type: 'string',\n description: 'a URL for an image attached to alert, maps to image_url of grafana webhook body content',\n required: false,\n },\n {\n key: CredentialsKeyEnum.state,\n displayName: 'Alert State',\n type: 'string',\n description: 'either \"ok\" or \"alerting\". Helpful for auto-resolving',\n required: false,\n },\n {\n key: CredentialsKeyEnum.externalLink,\n displayName: 'External Link',\n type: 'string',\n description: 'link back to your monitoring system, maps to \"link_to_upstream_details\" of grafana webhook body content',\n required: false,\n },\n];\nexport const getstreamConfig = [\n {\n key: CredentialsKeyEnum.ApiKey,\n displayName: 'API Key',\n type: 'string',\n required: true,\n },\n];\nexport const fcmConfig = [\n {\n key: CredentialsKeyEnum.ServiceAccount,\n displayName: 'Service Account (entire JSON file)',\n type: 'text',\n required: true,\n },\n ...pushConfigBase,\n];\nexport const expoConfig = [\n {\n key: CredentialsKeyEnum.ApiKey,\n displayName: 'Access Token',\n type: 'text',\n required: true,\n },\n ...pushConfigBase,\n];\nexport const pushWebhookConfig = [\n {\n key: CredentialsKeyEnum.WebhookUrl,\n displayName: 'Webhook URL',\n type: 'string',\n description: 'the webhook URL to call to trigger push notifications',\n required: true,\n },\n {\n key: CredentialsKeyEnum.SecretKey,\n displayName: 'Secret Hmac Key',\n type: 'string',\n description: 'the secret used to sign webhooks calls',\n required: true,\n },\n ...pushConfigBase,\n];\nexport const oneSignalConfig = [\n {\n key: CredentialsKeyEnum.ApplicationId,\n displayName: 'Application ID',\n type: 'text',\n required: true,\n },\n {\n key: CredentialsKeyEnum.ApiKey,\n displayName: 'API Key',\n type: 'text',\n required: true,\n },\n ...pushConfigBase,\n];\nexport const pushpadConfig = [\n {\n key: CredentialsKeyEnum.ApiKey,\n displayName: 'Auth Token',\n type: 'text',\n required: true,\n },\n {\n key: CredentialsKeyEnum.ApplicationId,\n displayName: 'Project ID',\n type: 'text',\n required: true,\n },\n ...pushConfigBase,\n];\nexport const apnsConfig = [\n {\n key: CredentialsKeyEnum.SecretKey,\n displayName: 'Private Key',\n type: 'text',\n required: true,\n },\n {\n key: CredentialsKeyEnum.ApiKey,\n displayName: 'Key ID',\n type: 'string',\n required: true,\n },\n {\n key: CredentialsKeyEnum.ProjectName,\n displayName: 'Team ID',\n type: 'string',\n required: true,\n },\n {\n key: CredentialsKeyEnum.ApplicationId,\n displayName: 'Bundle ID',\n type: 'string',\n required: true,\n },\n {\n key: CredentialsKeyEnum.Secure,\n displayName: 'Production',\n type: 'switch',\n required: false,\n },\n ...pushConfigBase,\n];\nexport const gupshupConfig = [\n {\n key: CredentialsKeyEnum.User,\n displayName: 'User id',\n type: 'string',\n required: true,\n },\n {\n key: CredentialsKeyEnum.Password,\n displayName: 'Password',\n type: 'string',\n required: true,\n },\n];\nexport const firetextConfig = [\n {\n key: CredentialsKeyEnum.ApiKey,\n displayName: 'API Key',\n type: 'string',\n required: true,\n },\n ...smsConfigBase,\n];\nexport const outlook365Config = [\n {\n key: CredentialsKeyEnum.Password,\n displayName: 'Password',\n type: 'string',\n required: true,\n },\n ...mailConfigBase,\n];\nexport const infobipSMSConfig = [\n {\n key: CredentialsKeyEnum.ApiKey,\n displayName: 'API Key',\n type: 'string',\n required: true,\n },\n {\n key: CredentialsKeyEnum.BaseUrl,\n displayName: 'Base URL',\n type: 'string',\n required: true,\n },\n ...smsConfigBase,\n];\nexport const infobipEmailConfig = [\n {\n key: CredentialsKeyEnum.ApiKey,\n displayName: 'API Key',\n type: 'string',\n required: true,\n },\n {\n key: CredentialsKeyEnum.BaseUrl,\n displayName: 'Base URL',\n type: 'string',\n required: true,\n },\n ...mailConfigBase,\n];\nexport const brazeEmailConfig = [\n {\n key: CredentialsKeyEnum.ApiKey,\n displayName: 'API Key',\n type: 'string',\n required: true,\n },\n {\n key: CredentialsKeyEnum.ApiURL,\n displayName: 'Base URL',\n type: 'string',\n required: true,\n },\n {\n key: CredentialsKeyEnum.AppID,\n displayName: 'Base URL',\n type: 'string',\n required: true,\n },\n ...mailConfigBase,\n];\nexport const fortySixElksConfig = [\n {\n key: CredentialsKeyEnum.User,\n displayName: 'Username',\n type: 'string',\n required: true,\n },\n {\n key: CredentialsKeyEnum.Password,\n displayName: 'Password',\n type: 'string',\n required: true,\n },\n ...smsConfigBase,\n];\nexport const kannelConfig = [\n {\n key: CredentialsKeyEnum.Host,\n displayName: 'Host',\n type: 'string',\n required: true,\n },\n {\n key: CredentialsKeyEnum.Port,\n displayName: 'Port',\n type: 'number',\n required: true,\n },\n {\n key: CredentialsKeyEnum.User,\n displayName: 'Username',\n type: 'string',\n required: false,\n },\n {\n key: CredentialsKeyEnum.Password,\n displayName: 'Password',\n type: 'string',\n required: false,\n },\n ...smsConfigBase,\n];\nexport const maqsamConfig = [\n {\n key: CredentialsKeyEnum.ApiKey,\n displayName: 'Access Key ID',\n type: 'string',\n required: true,\n },\n {\n key: CredentialsKeyEnum.SecretKey,\n displayName: 'Access Secret',\n type: 'string',\n required: true,\n },\n ...smsConfigBase,\n];\nexport const smsCentralConfig = [\n {\n key: CredentialsKeyEnum.User,\n displayName: 'Username',\n type: 'string',\n required: true,\n },\n {\n key: CredentialsKeyEnum.Password,\n displayName: 'Password',\n type: 'string',\n required: true,\n },\n {\n key: CredentialsKeyEnum.BaseUrl,\n displayName: 'Base URL',\n type: 'string',\n required: false,\n },\n ...smsConfigBase,\n];\nexport const emailWebhookConfig = [\n {\n key: CredentialsKeyEnum.WebhookUrl,\n displayName: 'Webhook URL',\n type: 'string',\n description: 'the webhook URL to call instead of sending the email',\n required: true,\n },\n {\n key: CredentialsKeyEnum.SecretKey,\n displayName: 'Secret Hmac Key',\n type: 'string',\n description: 'the secret used to sign webhooks calls',\n required: true,\n },\n ...mailConfigBase,\n];\nexport const africasTalkingConfig = [\n {\n key: CredentialsKeyEnum.ApiKey,\n displayName: 'API Key',\n type: 'string',\n required: true,\n },\n {\n key: CredentialsKeyEnum.User,\n displayName: 'Username',\n type: 'string',\n required: true,\n },\n ...smsConfigBase,\n];\nexport const novuInAppConfig = [\n {\n key: CredentialsKeyEnum.Hmac,\n displayName: 'Security HMAC encryption',\n type: 'switch',\n required: false,\n tooltip: {\n text: 'When active it verifies if a request is performed by a specific user',\n when: false,\n },\n },\n];\nexport const sendchampConfig = [\n {\n key: CredentialsKeyEnum.ApiKey,\n displayName: 'API Key',\n type: 'string',\n required: true,\n },\n ...smsConfigBase,\n];\nexport const clickSendConfig = [\n {\n key: CredentialsKeyEnum.User,\n displayName: 'Username',\n description: 'Your Clicksend API username',\n type: 'text',\n required: true,\n },\n {\n key: CredentialsKeyEnum.ApiKey,\n displayName: 'API Key',\n type: 'text',\n required: true,\n },\n ...smsConfigBase,\n];\nexport const simpleTextingConfig = [\n {\n key: CredentialsKeyEnum.ApiKey,\n displayName: 'API Key',\n type: 'text',\n required: true,\n },\n ...smsConfigBase,\n];\nexport const bandwidthConfig = [\n {\n key: CredentialsKeyEnum.User,\n displayName: 'Username',\n description: 'Your Bandwidth account username',\n type: 'text',\n required: true,\n },\n {\n key: CredentialsKeyEnum.Password,\n displayName: 'Password',\n type: 'password',\n required: true,\n },\n {\n key: CredentialsKeyEnum.AccountSid,\n displayName: 'Account ID',\n type: 'text',\n required: true,\n },\n ...smsConfigBase,\n];\nexport const genericSmsConfig = [\n {\n key: CredentialsKeyEnum.BaseUrl,\n displayName: 'Base URL',\n type: 'string',\n required: true,\n },\n {\n key: CredentialsKeyEnum.ApiKeyRequestHeader,\n displayName: 'API Key Request Header',\n type: 'string',\n description: 'The name of the header attribute to use for the API key ex. (X-API-KEY, apiKey, ...)',\n required: true,\n },\n {\n key: CredentialsKeyEnum.ApiKey,\n displayName: 'API Key',\n type: 'string',\n description: 'The value of the header attribute to use for the API key.',\n required: true,\n },\n {\n key: CredentialsKeyEnum.SecretKeyRequestHeader,\n displayName: 'Secret Key Request Header',\n type: 'string',\n description: 'The name of the header attribute to use for the secret key ex. (X-SECRET-KEY, secretKey, ...)',\n required: false,\n },\n {\n key: CredentialsKeyEnum.SecretKey,\n displayName: 'Secret Key',\n type: 'string',\n description: 'The value of the header attribute to use for the secret key',\n required: false,\n },\n {\n key: CredentialsKeyEnum.IdPath,\n displayName: 'Id Path',\n type: 'string',\n value: 'data.id',\n description: 'The path to the id field in the response data ex. (id, message.id, ...)',\n required: true,\n },\n {\n key: CredentialsKeyEnum.DatePath,\n displayName: 'Date Path',\n type: 'string',\n value: 'data.date',\n description: 'The path to the date field in the response data ex. (date, message.date, ...)',\n required: false,\n },\n {\n key: CredentialsKeyEnum.AuthenticateByToken,\n displayName: 'Authenticate by token',\n type: 'switch',\n description: 'If enabled, the API key and secret key will be sent as a token in the Authorization header',\n required: false,\n },\n {\n key: CredentialsKeyEnum.Domain,\n displayName: 'Auth URL',\n type: 'string',\n description: 'The URL to use for authentication in case the Authenticate by token option is enabled',\n required: false,\n tooltip: {\n text: 'The URL to use for authentication in case the Authenticate by token option is enabled',\n when: true,\n },\n },\n {\n key: CredentialsKeyEnum.AuthenticationTokenKey,\n displayName: 'Authentication Token Key',\n type: 'string',\n description: 'The name of the header attribute to use for the authentication token ex. (X-AUTH-TOKEN, auth-token, ...)',\n required: false,\n },\n ...smsConfigBase,\n];\nexport const pusherBeamsConfig = [\n {\n key: CredentialsKeyEnum.InstanceId,\n displayName: 'Instance ID',\n description: 'The unique identifier for your Beams instance',\n type: 'string',\n required: true,\n },\n {\n key: CredentialsKeyEnum.SecretKey,\n displayName: 'Secret Key',\n description: 'The secret key your server will use to access your Beams instance',\n type: 'string',\n required: true,\n },\n ...pushConfigBase,\n];\nexport const azureSmsConfig = [\n {\n key: CredentialsKeyEnum.AccessKey,\n displayName: 'Connection string',\n description: 'Your Azure account connection string',\n type: 'text',\n required: true,\n },\n ...smsConfigBase,\n];\nexport const rocketChatConfig = [\n {\n key: CredentialsKeyEnum.Token,\n displayName: 'Personal Access Token (x-auth-token)',\n description: 'Personal Access Token of your user',\n type: 'text',\n required: true,\n },\n {\n key: CredentialsKeyEnum.User,\n displayName: 'User id (x-user-id)',\n description: 'Your User id',\n type: 'text',\n required: true,\n },\n];\nexport const ringCentralConfig = [\n {\n key: CredentialsKeyEnum.ClientId,\n displayName: 'Client ID',\n description: 'Your RingCentral app client ID',\n type: 'string',\n required: true,\n },\n {\n key: CredentialsKeyEnum.SecretKey,\n displayName: 'Client secret',\n description: 'Your RingCentral app client secret',\n type: 'string',\n required: true,\n },\n {\n key: CredentialsKeyEnum.Secure,\n displayName: 'Is sandbox',\n type: 'switch',\n required: false,\n },\n {\n key: CredentialsKeyEnum.Token,\n displayName: 'JWT token',\n description: 'Your RingCentral user JWT token',\n type: 'string',\n required: true,\n },\n ...smsConfigBase,\n];\nexport const brevoSmsConfig = [\n {\n key: CredentialsKeyEnum.ApiKey,\n displayName: 'API Key',\n type: 'string',\n required: true,\n },\n ...smsConfigBase,\n];\n","export const UTM_CAMPAIGN_QUERY_PARAM = '?utm_campaign=in-app';\n","import { mailerSendConfig, mailgunConfig, mailjetConfig, mailtrapConfig, mandrillConfig, netCoreConfig, nodemailerConfig, postmarkConfig, sendgridConfig, sendinblueConfig, sesConfig, outlook365Config, infobipEmailConfig, resendConfig, plunkConfig, sparkpostConfig, emailWebhookConfig, brazeEmailConfig, } from '../credentials';\nimport { EmailProviderIdEnum } from '../provider.enum';\nimport { ChannelTypeEnum } from '../../../types';\nimport { UTM_CAMPAIGN_QUERY_PARAM } from '../../../ui';\nexport const emailProviders = [\n {\n id: EmailProviderIdEnum.Novu,\n displayName: 'Novu Email',\n channel: ChannelTypeEnum.EMAIL,\n credentials: [],\n docReference: `https://docs.novu.co/channels-and-providers/default-providers${UTM_CAMPAIGN_QUERY_PARAM}#novu-email-provider`,\n logoFileName: { light: 'novu.png', dark: 'novu.png' },\n },\n {\n id: EmailProviderIdEnum.Mailgun,\n displayName: 'Mailgun',\n channel: ChannelTypeEnum.EMAIL,\n credentials: mailgunConfig,\n docReference: `https://docs.novu.co/channels-and-providers/email/mailgun${UTM_CAMPAIGN_QUERY_PARAM}`,\n logoFileName: { light: 'mailgun.svg', dark: 'mailgun.svg' },\n },\n {\n id: EmailProviderIdEnum.Mailjet,\n displayName: 'Mailjet',\n channel: ChannelTypeEnum.EMAIL,\n credentials: mailjetConfig,\n docReference: `https://docs.novu.co/channels-and-providers/email/mailjet${UTM_CAMPAIGN_QUERY_PARAM}`,\n logoFileName: { light: 'mailjet.png', dark: 'mailjet.png' },\n },\n {\n id: EmailProviderIdEnum.Mailtrap,\n displayName: 'Mailtrap',\n channel: ChannelTypeEnum.EMAIL,\n credentials: mailtrapConfig,\n docReference: `https://docs.novu.co/channels-and-providers/email/mailtrap${UTM_CAMPAIGN_QUERY_PARAM}`,\n logoFileName: { light: 'mailtrap.svg', dark: 'mailtrap.svg' },\n },\n {\n id: EmailProviderIdEnum.Mandrill,\n displayName: 'Mandrill',\n channel: ChannelTypeEnum.EMAIL,\n credentials: mandrillConfig,\n docReference: `https://docs.novu.co/channels-and-providers/email/mandrill${UTM_CAMPAIGN_QUERY_PARAM}`,\n logoFileName: { light: 'mandrill.svg', dark: 'mandrill.svg' },\n },\n {\n id: EmailProviderIdEnum.Postmark,\n displayName: 'Postmark',\n channel: ChannelTypeEnum.EMAIL,\n credentials: postmarkConfig,\n docReference: `https://docs.novu.co/channels-and-providers/email/postmark${UTM_CAMPAIGN_QUERY_PARAM}`,\n logoFileName: { light: 'postmark.png', dark: 'postmark.png' },\n },\n {\n id: EmailProviderIdEnum.SendGrid,\n displayName: 'SendGrid',\n channel: ChannelTypeEnum.EMAIL,\n credentials: sendgridConfig,\n docReference: `https://docs.novu.co/channels-and-providers/email/sendgrid${UTM_CAMPAIGN_QUERY_PARAM}`,\n logoFileName: { light: 'sendgrid.png', dark: 'sendgrid.png' },\n },\n {\n id: EmailProviderIdEnum.Sendinblue,\n displayName: 'Sendinblue',\n channel: ChannelTypeEnum.EMAIL,\n credentials: sendinblueConfig,\n docReference: `https://docs.novu.co/channels-and-providers/email/sendinblue${UTM_CAMPAIGN_QUERY_PARAM}`,\n logoFileName: { light: 'sendinblue.png', dark: 'sendinblue.png' },\n },\n {\n id: EmailProviderIdEnum.SES,\n displayName: 'SES',\n channel: ChannelTypeEnum.EMAIL,\n credentials: sesConfig,\n docReference: `https://docs.novu.co/channels-and-providers/email/amazonses${UTM_CAMPAIGN_QUERY_PARAM}`,\n logoFileName: { light: 'ses.svg', dark: 'ses.svg' },\n },\n {\n id: EmailProviderIdEnum.NetCore,\n displayName: 'Netcore',\n channel: ChannelTypeEnum.EMAIL,\n credentials: netCoreConfig,\n docReference: `https://docs.novu.co/channels-and-providers/email/netcore${UTM_CAMPAIGN_QUERY_PARAM}`,\n logoFileName: { light: 'netcore.png', dark: 'netcore.png' },\n },\n {\n id: EmailProviderIdEnum.CustomSMTP,\n displayName: 'Custom SMTP',\n channel: ChannelTypeEnum.EMAIL,\n credentials: nodemailerConfig,\n docReference: `https://docs.novu.co/channels-and-providers/email/custom-smtp${UTM_CAMPAIGN_QUERY_PARAM}`,\n logoFileName: { light: 'custom_smtp.svg', dark: 'custom_smtp.svg' },\n },\n {\n id: EmailProviderIdEnum.MailerSend,\n displayName: 'MailerSend',\n channel: ChannelTypeEnum.EMAIL,\n credentials: mailerSendConfig,\n docReference: `https://docs.novu.co/channels-and-providers/email/mailersend${UTM_CAMPAIGN_QUERY_PARAM}`,\n logoFileName: { light: 'mailersend.svg', dark: 'mailersend.svg' },\n },\n {\n id: EmailProviderIdEnum.Outlook365,\n displayName: 'Microsoft Outlook365',\n channel: ChannelTypeEnum.EMAIL,\n credentials: outlook365Config,\n docReference: `https://docs.novu.co/channels-and-providers/email/outlook365${UTM_CAMPAIGN_QUERY_PARAM}`,\n logoFileName: { light: 'outlook365.png', dark: 'outlook365.png' },\n },\n {\n id: EmailProviderIdEnum.Infobip,\n displayName: 'Infobip',\n channel: ChannelTypeEnum.EMAIL,\n credentials: infobipEmailConfig,\n docReference: `https://docs.novu.co/channels-and-providers/email/infobip${UTM_CAMPAIGN_QUERY_PARAM}`,\n logoFileName: { light: 'infobip.png', dark: 'infobip.png' },\n },\n {\n id: EmailProviderIdEnum.Braze,\n displayName: 'Braze',\n channel: ChannelTypeEnum.EMAIL,\n credentials: brazeEmailConfig,\n docReference: 'https://www.braze.com/docs/api/endpoints/messaging/send_messages/post_send_messages/',\n logoFileName: { light: 'braze.svg', dark: 'braze.svg' },\n },\n {\n id: EmailProviderIdEnum.Resend,\n displayName: 'Resend',\n channel: ChannelTypeEnum.EMAIL,\n credentials: resendConfig,\n docReference: `https://docs.novu.co/channels-and-providers/email/resend${UTM_CAMPAIGN_QUERY_PARAM}`,\n logoFileName: { light: 'resend.svg', dark: 'resend.svg' },\n },\n {\n id: EmailProviderIdEnum.Plunk,\n displayName: 'Plunk',\n channel: ChannelTypeEnum.EMAIL,\n credentials: plunkConfig,\n docReference: `https://docs.novu.co/channels/email/plunk${UTM_CAMPAIGN_QUERY_PARAM}`,\n logoFileName: { light: 'plunk.png', dark: 'plunk.png' },\n },\n {\n id: EmailProviderIdEnum.SparkPost,\n displayName: 'SparkPost',\n channel: ChannelTypeEnum.EMAIL,\n credentials: sparkpostConfig,\n docReference: `https://docs.novu.co/channels-and-providers/email/sparkpost${UTM_CAMPAIGN_QUERY_PARAM}`,\n logoFileName: { light: 'sparkpost.svg', dark: 'sparkpost.svg' },\n },\n {\n id: EmailProviderIdEnum.EmailWebhook,\n displayName: 'Email Webhook',\n channel: ChannelTypeEnum.EMAIL,\n credentials: emailWebhookConfig,\n betaVersion: true,\n docReference: `https://docs.novu.co/channels/email/email-webhook${UTM_CAMPAIGN_QUERY_PARAM}`,\n logoFileName: { light: 'email_webhook.svg', dark: 'email_webhook.svg' },\n },\n];\n","import { gupshupConfig, nexmoConfig, plivoConfig, sms77Config, snsConfig, telnyxConfig, twilioConfig, firetextConfig, infobipSMSConfig, burstSmsConfig, clickatellConfig, fortySixElksConfig, kannelConfig, maqsamConfig, smsCentralConfig, termiiConfig, africasTalkingConfig, sendchampConfig, genericSmsConfig, clickSendConfig, simpleTextingConfig, bandwidthConfig, messagebirdConfig, azureSmsConfig, bulkSmsConfig, iSendSmsConfig, ringCentralConfig, brevoSmsConfig, } from '../credentials';\nimport { SmsProviderIdEnum } from '../provider.enum';\nimport { ChannelTypeEnum } from '../../../types';\nimport { UTM_CAMPAIGN_QUERY_PARAM } from '../../../ui';\nexport const smsProviders = [\n {\n id: SmsProviderIdEnum.Novu,\n displayName: 'Novu SMS',\n channel: ChannelTypeEnum.SMS,\n credentials: [],\n docReference: `https://docs.novu.co/channels-and-providers/default-providers${UTM_CAMPAIGN_QUERY_PARAM}#novu-sms-provider`,\n logoFileName: { light: 'novu.png', dark: 'novu.png' },\n },\n {\n id: SmsProviderIdEnum.Nexmo,\n displayName: 'Nexmo',\n channel: ChannelTypeEnum.SMS,\n credentials: nexmoConfig,\n docReference: `https://docs.novu.co/channels-and-providers/sms/nexmo${UTM_CAMPAIGN_QUERY_PARAM}`,\n logoFileName: { light: 'nexmo.png', dark: 'nexmo.png' },\n },\n {\n id: SmsProviderIdEnum.Plivo,\n displayName: 'Plivo',\n channel: ChannelTypeEnum.SMS,\n credentials: plivoConfig,\n docReference: `https://docs.novu.co/channels-and-providers/sms/plivo${UTM_CAMPAIGN_QUERY_PARAM}`,\n logoFileName: { light: 'plivo.png', dark: 'plivo.png' },\n },\n {\n id: SmsProviderIdEnum.Sms77,\n displayName: 'sms77',\n channel: ChannelTypeEnum.SMS,\n credentials: sms77Config,\n docReference: `https://docs.novu.co/channels-and-providers/sms/sms77${UTM_CAMPAIGN_QUERY_PARAM}`,\n logoFileName: { light: 'sms77.svg', dark: 'sms77.svg' },\n },\n {\n id: SmsProviderIdEnum.SNS,\n displayName: 'SNS',\n channel: ChannelTypeEnum.SMS,\n credentials: snsConfig,\n docReference: `https://docs.novu.co/channels-and-providers/sms/aws-sns${UTM_CAMPAIGN_QUERY_PARAM}`,\n logoFileName: { light: 'sns.svg', dark: 'sns.svg' },\n },\n {\n id: SmsProviderIdEnum.Telnyx,\n displayName: 'Telnyx',\n channel: ChannelTypeEnum.SMS,\n credentials: telnyxConfig,\n docReference: `https://docs.novu.co/channels-and-providers/sms/telnyx${UTM_CAMPAIGN_QUERY_PARAM}`,\n logoFileName: { light: 'telnyx.png', dark: 'telnyx.png' },\n },\n {\n id: SmsProviderIdEnum.MessageBird,\n displayName: 'MessageBird',\n channel: ChannelTypeEnum.SMS,\n credentials: messagebirdConfig,\n docReference: 'https://developers.messagebird.com/quickstarts/sms-overview/',\n logoFileName: { light: 'messagebird.png', dark: 'messagebird.png' },\n },\n {\n id: SmsProviderIdEnum.Twilio,\n displayName: 'Twilio',\n channel: ChannelTypeEnum.SMS,\n credentials: twilioConfig,\n docReference: `https://docs.novu.co/channels-and-providers/sms/twilio${UTM_CAMPAIGN_QUERY_PARAM}`,\n logoFileName: { light: 'twilio.png', dark: 'twilio.png' },\n },\n {\n id: SmsProviderIdEnum.Gupshup,\n displayName: 'Gupshup',\n channel: ChannelTypeEnum.SMS,\n credentials: gupshupConfig,\n docReference: 'https://docs.gupshup.io/docs/send-single-message',\n logoFileName: { light: 'gupshup.png', dark: 'gupshup.png' },\n },\n {\n id: SmsProviderIdEnum.Firetext,\n displayName: 'Firetext',\n channel: ChannelTypeEnum.SMS,\n credentials: firetextConfig,\n docReference: 'https://www.firetext.co.uk/docs',\n logoFileName: { light: 'firetext.svg', dark: 'firetext.svg' },\n },\n {\n id: SmsProviderIdEnum.Infobip,\n displayName: 'Infobip',\n channel: ChannelTypeEnum.SMS,\n credentials: infobipSMSConfig,\n docReference: `https://docs.novu.co/channels-and-providers/sms/infobip${UTM_CAMPAIGN_QUERY_PARAM}`,\n logoFileName: { light: 'infobip.png', dark: 'infobip.png' },\n },\n {\n id: SmsProviderIdEnum.BurstSms,\n displayName: 'BurstSMS',\n channel: ChannelTypeEnum.SMS,\n credentials: burstSmsConfig,\n docReference: 'https://developer.transmitsms.com/',\n logoFileName: { light: 'burst-sms.svg', dark: 'burst-sms.svg' },\n },\n {\n id: SmsProviderIdEnum.BulkSms,\n displayName: 'BulkSMS',\n channel: ChannelTypeEnum.SMS,\n credentials: bulkSmsConfig,\n docReference: 'https://www.bulksms.com/developer/json/v1/',\n logoFileName: { light: 'bulk-sms.png', dark: 'bulk-sms.png' },\n },\n {\n id: SmsProviderIdEnum.ISendSms,\n displayName: 'iSend SMS',\n channel: ChannelTypeEnum.SMS,\n credentials: iSendSmsConfig,\n docReference: 'https://send.com.ly/developers/docs',\n logoFileName: { light: 'isend-sms.svg', dark: 'isend-sms.svg' },\n },\n {\n id: SmsProviderIdEnum.Clickatell,\n displayName: 'clickatell',\n channel: ChannelTypeEnum.SMS,\n credentials: clickatellConfig,\n betaVersion: true,\n docReference: 'https://docs.clickatell.com/',\n logoFileName: { light: 'clickatell.png', dark: 'clickatell.png' },\n },\n {\n id: SmsProviderIdEnum.FortySixElks,\n displayName: '46elks',\n channel: ChannelTypeEnum.SMS,\n credentials: fortySixElksConfig,\n docReference: 'https://46elks.com/docs/send-sms',\n logoFileName: { light: '46elks.png', dark: '46elks.png' },\n },\n {\n id: SmsProviderIdEnum.Kannel,\n displayName: 'Kannel SMS',\n channel: ChannelTypeEnum.SMS,\n credentials: kannelConfig,\n betaVersion: true,\n docReference: 'https://www.kannel.org/doc.shtml',\n logoFileName: { light: 'kannel.png', dark: 'kannel.png' },\n },\n {\n id: SmsProviderIdEnum.Maqsam,\n displayName: 'Maqsam',\n channel: ChannelTypeEnum.SMS,\n credentials: maqsamConfig,\n docReference: 'https://portal.maqsam.com/docs/v2/sms',\n logoFileName: { light: 'maqsam.png', dark: 'maqsam.png' },\n },\n {\n id: SmsProviderIdEnum.SmsCentral,\n displayName: 'SMS Central',\n channel: ChannelTypeEnum.SMS,\n credentials: smsCentralConfig,\n docReference: 'https://www.smscentral.com.au/sms-api/',\n logoFileName: { light: 'sms-central.png', dark: 'sms-central.png' },\n },\n {\n id: SmsProviderIdEnum.Termii,\n displayName: 'Termii',\n channel: ChannelTypeEnum.SMS,\n credentials: termiiConfig,\n docReference: `https://docs.novu.co/channels-and-providers/sms/termii${UTM_CAMPAIGN_QUERY_PARAM}`,\n logoFileName: { light: 'termii.png', dark: 'termii.png' },\n },\n {\n id: SmsProviderIdEnum.AfricasTalking,\n displayName: `Africa's Talking`,\n channel: ChannelTypeEnum.SMS,\n credentials: africasTalkingConfig,\n docReference: `https://docs.novu.co/channels-and-providers/sms/africas-talking${UTM_CAMPAIGN_QUERY_PARAM}`,\n logoFileName: { light: 'africas-talking.svg', dark: 'africas-talking.svg' },\n },\n {\n id: SmsProviderIdEnum.Sendchamp,\n displayName: `Sendchamp`,\n channel: ChannelTypeEnum.SMS,\n credentials: sendchampConfig,\n docReference: `https://docs.novu.co/channels-and-providers/sms/sendchamp${UTM_CAMPAIGN_QUERY_PARAM}`,\n logoFileName: { light: 'sendchamp.svg', dark: 'sendchamp.svg' },\n },\n {\n id: SmsProviderIdEnum.GenericSms,\n displayName: `Generic SMS`,\n channel: ChannelTypeEnum.SMS,\n credentials: genericSmsConfig,\n docReference: `https://docs.novu.co/channels/sms/generic-sms${UTM_CAMPAIGN_QUERY_PARAM}`,\n logoFileName: { light: 'generic-sms.svg', dark: 'generic-sms.svg' },\n },\n {\n id: SmsProviderIdEnum.Clicksend,\n displayName: `Clicksend`,\n channel: ChannelTypeEnum.SMS,\n credentials: clickSendConfig,\n docReference: 'https://developers.clicksend.com/docs/rest/v3/?javascript--nodejs#send-sms',\n logoFileName: { light: 'clicksend.png', dark: 'clicksend.png' },\n },\n {\n id: SmsProviderIdEnum.Simpletexting,\n displayName: `SimpleTexting`,\n channel: ChannelTypeEnum.SMS,\n credentials: simpleTextingConfig,\n docReference: 'https://simpletexting.com/api/docs/v2/',\n logoFileName: { light: 'simpletexting.png', dark: 'simpletexting.png' },\n },\n {\n id: SmsProviderIdEnum.Bandwidth,\n displayName: `Bandwidth`,\n channel: ChannelTypeEnum.SMS,\n credentials: bandwidthConfig,\n betaVersion: true,\n docReference: 'https://dev.bandwidth.com/docs/messaging/createMessage',\n logoFileName: { light: 'bandwidth.png', dark: 'bandwidth.png' },\n },\n {\n id: SmsProviderIdEnum.AzureSms,\n displayName: `Azure Sms`,\n channel: ChannelTypeEnum.SMS,\n credentials: azureSmsConfig,\n docReference: 'https://learn.microsoft.com/en-us/azure/communication-services/quickstarts/sms/receive-sms',\n logoFileName: { light: 'azure-sms.png', dark: 'azure-sms.png' },\n },\n {\n id: SmsProviderIdEnum.RingCentral,\n displayName: `RingCentral`,\n channel: ChannelTypeEnum.SMS,\n credentials: ringCentralConfig,\n docReference: 'https://developers.ringcentral.com/guide/messaging',\n logoFileName: { light: 'ring-central.svg', dark: 'ring-central.svg' },\n },\n {\n id: SmsProviderIdEnum.BrevoSms,\n displayName: `Brevo`,\n channel: ChannelTypeEnum.SMS,\n credentials: brevoSmsConfig,\n docReference: 'https://developers.brevo.com/reference/sendtransacsms',\n logoFileName: { light: 'brevo.svg', dark: 'brevo.svg' },\n },\n];\n","import { grafanaOnCallConfig, slackConfig, getstreamConfig, rocketChatConfig } from '../credentials';\nimport { ChatProviderIdEnum } from '../provider.enum';\nimport { ChannelTypeEnum } from '../../../types';\nimport { UTM_CAMPAIGN_QUERY_PARAM } from '../../../ui';\nexport const chatProviders = [\n {\n id: ChatProviderIdEnum.Slack,\n displayName: 'Slack',\n channel: ChannelTypeEnum.CHAT,\n credentials: slackConfig,\n docReference: `https://docs.novu.co/channels-and-providers/chat/slack${UTM_CAMPAIGN_QUERY_PARAM}`,\n logoFileName: { light: 'slack.svg', dark: 'slack.svg' },\n },\n {\n id: ChatProviderIdEnum.Discord,\n displayName: 'Discord',\n channel: ChannelTypeEnum.CHAT,\n credentials: [],\n docReference: `https://docs.novu.co/channels-and-providers/chat/discord${UTM_CAMPAIGN_QUERY_PARAM}`,\n logoFileName: { light: 'discord.svg', dark: 'discord.svg' },\n },\n {\n id: ChatProviderIdEnum.GrafanaOnCall,\n displayName: 'Grafana On Call Webhook',\n channel: ChannelTypeEnum.CHAT,\n credentials: grafanaOnCallConfig,\n docReference: 'https://grafana.com/docs/oncall/latest/integrations/webhook/',\n logoFileName: { light: 'grafana-on-call.png', dark: 'grafana-on-call.png' },\n },\n {\n id: ChatProviderIdEnum.MsTeams,\n displayName: 'MSTeams',\n channel: ChannelTypeEnum.CHAT,\n credentials: [],\n docReference: `https://docs.novu.co/channels-and-providers/chat/ms-teams${UTM_CAMPAIGN_QUERY_PARAM}`,\n logoFileName: { light: 'msteams.svg', dark: 'msteams.svg' },\n },\n {\n id: ChatProviderIdEnum.Mattermost,\n displayName: 'Mattermost',\n channel: ChannelTypeEnum.CHAT,\n credentials: [],\n docReference: 'https://developers.mattermost.com/integrate/webhooks/incoming/',\n logoFileName: { light: 'mattermost.svg', dark: 'mattermost.svg' },\n },\n {\n id: ChatProviderIdEnum.Ryver,\n displayName: 'Ryver',\n channel: ChannelTypeEnum.CHAT,\n credentials: [],\n docReference: 'https://api.ryver.com/ryvrest_api_examples.html#create-chat-message',\n logoFileName: { light: 'ryver.png', dark: 'ryver.png' },\n },\n {\n id: ChatProviderIdEnum.Zulip,\n displayName: 'Zulip',\n channel: ChannelTypeEnum.CHAT,\n credentials: [],\n docReference: `https://docs.novu.co/channels-and-providers/chat/zulip${UTM_CAMPAIGN_QUERY_PARAM}`,\n logoFileName: { light: 'zulip.svg', dark: 'zulip.svg' },\n },\n {\n id: ChatProviderIdEnum.GetStream,\n displayName: 'GetStream',\n channel: ChannelTypeEnum.CHAT,\n credentials: getstreamConfig,\n docReference: 'https://getstream.io/chat/docs/node/?language=javascript',\n logoFileName: { light: 'getstream.svg', dark: 'getstream.svg' },\n },\n {\n id: ChatProviderIdEnum.RocketChat,\n displayName: 'Rocket.Chat',\n channel: ChannelTypeEnum.CHAT,\n credentials: rocketChatConfig,\n docReference: 'https://developer.rocket.chat/reference/api/rest-api/endpoints',\n logoFileName: { light: 'rocket-chat.svg', dark: 'rocket-chat.svg' },\n },\n];\n","import { apnsConfig, expoConfig, fcmConfig, oneSignalConfig, pusherBeamsConfig, pushpadConfig, pushWebhookConfig, } from '../credentials';\nimport { PushProviderIdEnum } from '../provider.enum';\nimport { ChannelTypeEnum } from '../../../types';\nimport { UTM_CAMPAIGN_QUERY_PARAM } from '../../../ui';\nexport const pushProviders = [\n {\n id: PushProviderIdEnum.OneSignal,\n displayName: 'OneSignal',\n channel: ChannelTypeEnum.PUSH,\n credentials: oneSignalConfig,\n docReference: `https://docs.novu.co/channels-and-providers/push/onesignal${UTM_CAMPAIGN_QUERY_PARAM}`,\n logoFileName: { light: 'one-signal.svg', dark: 'one-signal.svg' },\n },\n {\n id: PushProviderIdEnum.Pushpad,\n displayName: 'Pushpad',\n channel: ChannelTypeEnum.PUSH,\n credentials: pushpadConfig,\n docReference: `https://docs.novu.co/channels-and-providers/push/pushpad${UTM_CAMPAIGN_QUERY_PARAM}`,\n logoFileName: { light: 'pushpad.svg', dark: 'pushpad.svg' },\n },\n {\n id: PushProviderIdEnum.FCM,\n displayName: 'Firebase Cloud Messaging',\n channel: ChannelTypeEnum.PUSH,\n credentials: fcmConfig,\n docReference: `https://docs.novu.co/channels-and-providers/push/fcm${UTM_CAMPAIGN_QUERY_PARAM}`,\n logoFileName: { light: 'fcm.svg', dark: 'fcm.svg' },\n },\n {\n id: PushProviderIdEnum.EXPO,\n displayName: 'Expo Push',\n channel: ChannelTypeEnum.PUSH,\n credentials: expoConfig,\n docReference: `https://docs.novu.co/channels-and-providers/push/expo-push${UTM_CAMPAIGN_QUERY_PARAM}`,\n logoFileName: { light: 'expo.svg', dark: 'expo.svg' },\n },\n {\n id: PushProviderIdEnum.APNS,\n displayName: 'APNs',\n channel: ChannelTypeEnum.PUSH,\n credentials: apnsConfig,\n docReference: `https://docs.novu.co/channels-and-providers/push/apns${UTM_CAMPAIGN_QUERY_PARAM}`,\n logoFileName: { light: 'apns.png', dark: 'apns.png' },\n betaVersion: true,\n },\n {\n id: PushProviderIdEnum.PushWebhook,\n displayName: 'Push Webhook',\n channel: ChannelTypeEnum.PUSH,\n credentials: pushWebhookConfig,\n docReference: `https://docs.novu.co/channels-and-providers/push/push-webhook${UTM_CAMPAIGN_QUERY_PARAM}`,\n logoFileName: { light: 'push-webhook.svg', dark: 'push-webhook.svg' },\n betaVersion: true,\n },\n {\n id: PushProviderIdEnum.PusherBeams,\n displayName: 'Pusher Beams',\n channel: ChannelTypeEnum.PUSH,\n credentials: pusherBeamsConfig,\n docReference: `https://docs.novu.co/channels-and-providers/push/pusher-beams${UTM_CAMPAIGN_QUERY_PARAM}`,\n logoFileName: { light: 'pusher-beams.svg', dark: 'pusher-beams.svg' },\n },\n];\n","import { novuInAppConfig } from '../credentials';\nimport { InAppProviderIdEnum } from '../provider.enum';\nimport { ChannelTypeEnum } from '../../../types';\nimport { UTM_CAMPAIGN_QUERY_PARAM } from '../../../ui';\nexport const inAppProviders = [\n {\n id: InAppProviderIdEnum.Novu,\n displayName: 'Novu In-App',\n channel: ChannelTypeEnum.IN_APP,\n credentials: novuInAppConfig,\n docReference: `https://docs.novu.co/notification-center/introduction${UTM_CAMPAIGN_QUERY_PARAM}`,\n logoFileName: { light: 'novu.png', dark: 'novu.png' },\n },\n];\n","import { chatProviders, emailProviders, smsProviders, pushProviders, inAppProviders } from './channels';\nimport { InAppProviderIdEnum, EmailProviderIdEnum, SmsProviderIdEnum } from './provider.enum';\nexport { chatProviders, emailProviders, smsProviders, pushProviders, inAppProviders } from './channels';\nexport const providers = [\n ...emailProviders,\n ...smsProviders,\n ...chatProviders,\n ...pushProviders,\n ...inAppProviders,\n];\nexport const NOVU_PROVIDERS = [\n InAppProviderIdEnum.Novu,\n SmsProviderIdEnum.Novu,\n EmailProviderIdEnum.Novu,\n];\nexport const NOVU_SMS_EMAIL_PROVIDERS = [SmsProviderIdEnum.Novu, EmailProviderIdEnum.Novu];\n","import { ButtonTypeEnum } from '../../entities/messages';\nconst primaryButton = {\n key: ButtonTypeEnum.PRIMARY,\n displayName: 'Primary',\n};\nconst secondaryButton = {\n key: ButtonTypeEnum.SECONDARY,\n displayName: 'Secondary',\n};\nexport const darkButtonStyle = {\n primary: {\n backGroundColor: 'linear-gradient(99deg,#DD2476 0% 0%, #FF512F 100% 100%)',\n fontColor: '#FFFFFF',\n removeCircleColor: 'white',\n },\n secondary: { backGroundColor: '#3D3D4D', fontColor: '#FFFFFF', removeCircleColor: '#525266' },\n clicked: { backGroundColor: 'white', fontColor: '#FFFFFF', removeCircleColor: '#525266' },\n};\nexport const lightButtonStyle = {\n primary: {\n backGroundColor: 'linear-gradient(99deg,#DD2476 0% 0%, #FF512F 100% 100%)',\n fontColor: '#FFFFFF',\n removeCircleColor: 'white',\n },\n secondary: { backGroundColor: '#F5F8FA', fontColor: '#525266', removeCircleColor: '#525266' },\n clicked: { backGroundColor: 'white', fontColor: '#525266', removeCircleColor: '#525266' },\n};\nexport const notificationItemButtons = [primaryButton, secondaryButton];\n","export var HandlebarHelpersEnum;\n(function (HandlebarHelpersEnum) {\n HandlebarHelpersEnum[\"EQUALS\"] = \"equals\";\n HandlebarHelpersEnum[\"TITLECASE\"] = \"titlecase\";\n HandlebarHelpersEnum[\"UPPERCASE\"] = \"uppercase\";\n HandlebarHelpersEnum[\"LOWERCASE\"] = \"lowercase\";\n HandlebarHelpersEnum[\"PLURALIZE\"] = \"pluralize\";\n HandlebarHelpersEnum[\"DATEFORMAT\"] = \"dateFormat\";\n HandlebarHelpersEnum[\"UNIQUE\"] = \"unique\";\n HandlebarHelpersEnum[\"GROUP_BY\"] = \"groupBy\";\n HandlebarHelpersEnum[\"SORT_BY\"] = \"sortBy\";\n HandlebarHelpersEnum[\"NUMBERFORMAT\"] = \"numberFormat\";\n HandlebarHelpersEnum[\"I18N\"] = \"i18n\";\n})(HandlebarHelpersEnum || (HandlebarHelpersEnum = {}));\nexport const HandlebarHelpers = {\n [HandlebarHelpersEnum.EQUALS]: { description: 'assert equal' },\n [HandlebarHelpersEnum.TITLECASE]: { description: 'transform to TitleCase' },\n [HandlebarHelpersEnum.UPPERCASE]: { description: 'transform to UPPERCASE' },\n [HandlebarHelpersEnum.LOWERCASE]: { description: 'transform to lowercase' },\n [HandlebarHelpersEnum.PLURALIZE]: { description: 'pluralize if needed' },\n [HandlebarHelpersEnum.DATEFORMAT]: { description: 'format date' },\n [HandlebarHelpersEnum.UNIQUE]: { description: 'filter unique values in an array' },\n [HandlebarHelpersEnum.GROUP_BY]: { description: 'group by a property' },\n [HandlebarHelpersEnum.SORT_BY]: { description: 'sort an array of objects by a property' },\n [HandlebarHelpersEnum.NUMBERFORMAT]: { description: 'format number' },\n [HandlebarHelpersEnum.I18N]: { description: 'translate' },\n};\n","import { HandlebarHelpersEnum } from './handlebarHelpers';\nimport { TemplateVariableTypeEnum } from '../../types';\nexport function getTemplateVariables(bod) {\n const stringVariables = bod\n .filter((body) => body.type === 'MustacheStatement')\n .flatMap((body) => {\n var _a, _b, _c;\n const varName = ((_a = body.params[0]) === null || _a === void 0 ? void 0 : _a.original) || body.path.original;\n if (body.path.original === HandlebarHelpersEnum.I18N) {\n return [];\n }\n if (!shouldAddVariable(varName)) {\n return [];\n }\n if ((_b = body.params[0]) === null || _b === void 0 ? void 0 : _b.original) {\n if (!Object.values(HandlebarHelpersEnum).includes(body.path.original)) {\n return [];\n }\n }\n return {\n type: TemplateVariableTypeEnum.STRING,\n name: ((_c = body.params[0]) === null || _c === void 0 ? void 0 : _c.original) || body.path.original,\n defaultValue: '',\n required: false,\n };\n });\n const arrayVariables = bod\n .filter((body) => body.type === 'BlockStatement' && ['each', 'with'].includes(body.path.original))\n .flatMap((body) => {\n var _a;\n const varName = ((_a = body.params[0]) === null || _a === void 0 ? void 0 : _a.original) || body.path.original;\n if (!shouldAddVariable(varName)) {\n return [];\n }\n const nestedVariablesInBlock = getTemplateVariables(body.program.body).map((mustVar) => {\n return Object.assign(Object.assign({}, mustVar), { name: `${varName}.${mustVar.name}` });\n });\n if (['with'].includes(body.path.original)) {\n return [...nestedVariablesInBlock];\n }\n return [\n {\n type: TemplateVariableTypeEnum.ARRAY,\n name: varName,\n required: false,\n },\n ...nestedVariablesInBlock,\n ];\n });\n const boolVariables = bod\n .filter((body) => body.type === 'BlockStatement' && ['if', 'unless'].includes(body.path.original))\n .flatMap((body) => {\n var _a;\n const varName = ((_a = body.params[0]) === null || _a === void 0 ? void 0 : _a.original) || body.path.original;\n if (!shouldAddVariable(varName)) {\n return [];\n }\n if (body.params.length > 1) {\n return [];\n }\n const nestedVariablesInBlock = getTemplateVariables(body.program.body);\n return [\n {\n type: TemplateVariableTypeEnum.BOOLEAN,\n name: varName,\n defaultValue: true,\n required: false,\n },\n ...nestedVariablesInBlock,\n ];\n });\n return stringVariables.concat(arrayVariables).concat(boolVariables);\n}\nconst shouldAddVariable = (variableName) => {\n const validRegExp = /^[a-zA-Z_][a-zA-Z0-9_-]*?/;\n const isValid = variableName.match(validRegExp);\n return isValid;\n};\n","export * from './handlebarHelpers';\nexport * from './getTemplateVariables';\nexport const novuReservedVariableNames = ['body'];\nexport function isReservedVariableName(variableName) {\n return novuReservedVariableNames.includes(variableName);\n}\n","export const passwordConstraints = {\n minLength: 8,\n maxLength: 64,\n pattern: /^(?=[^A-Z\\n]*[A-Z])(?=[^a-z\\n]*[a-z])(?=[^0-9\\n]*[0-9])(?=[^#?!@$%^&*\\-()\\n]*[#?!@$%^&*()-]).\\S{8,64}$/,\n};\n","import { FilterPartTypeEnum } from '../../types';\nexport const FILTER_TO_LABEL = {\n [FilterPartTypeEnum.PAYLOAD]: 'Payload',\n [FilterPartTypeEnum.TENANT]: 'Tenant',\n [FilterPartTypeEnum.SUBSCRIBER]: 'Subscriber',\n [FilterPartTypeEnum.WEBHOOK]: 'Webhook',\n [FilterPartTypeEnum.IS_ONLINE]: 'Is online',\n [FilterPartTypeEnum.IS_ONLINE_IN_LAST]: 'Last time was online',\n [FilterPartTypeEnum.PREVIOUS_STEP]: 'Previous step',\n};\n","const popularProductionIds = ['646c77cf693b8e668a900a73', '646f123c720b54f89ed2130a', '646c7aee958d8bed2e00b8e9'];\nconst popularDevelopmentIds = ['64731d4e1084f5a48293ce9f', '64731d4e1084f5a48293ceab'];\nconst getStartedDevelopmentIds = [\n '65c25bd6f4de5ad335bb8e48',\n '65c25bd5f4de5ad335bb8dc0',\n '65c25bd1f4de5ad335bb8c91',\n '65c25bd3f4de5ad335bb8d2a',\n];\nexport function getPopularTemplateIds({ production }) {\n return production ? popularProductionIds : popularDevelopmentIds;\n}\nexport function getGetStartedTemplateIds({ production }) {\n return production ? [] : getStartedDevelopmentIds;\n}\n","import { ApiRateLimitAlgorithmEnum, ApiRateLimitCostEnum, ApiServiceLevelEnum, } from '../../types';\nimport { ApiRateLimitCategoryEnum } from '../../types/rate-limiting/service.types';\nexport const DEFAULT_API_RATE_LIMIT_SERVICE_MAXIMUM_CONFIG = {\n [ApiServiceLevelEnum.FREE]: {\n [ApiRateLimitCategoryEnum.TRIGGER]: 60,\n [ApiRateLimitCategoryEnum.CONFIGURATION]: 15,\n [ApiRateLimitCategoryEnum.GLOBAL]: 30,\n },\n [ApiServiceLevelEnum.BUSINESS]: {\n [ApiRateLimitCategoryEnum.TRIGGER]: 600,\n [ApiRateLimitCategoryEnum.CONFIGURATION]: 150,\n [ApiRateLimitCategoryEnum.GLOBAL]: 300,\n },\n [ApiServiceLevelEnum.ENTERPRISE]: {\n [ApiRateLimitCategoryEnum.TRIGGER]: 6000,\n [ApiRateLimitCategoryEnum.CONFIGURATION]: 1500,\n [ApiRateLimitCategoryEnum.GLOBAL]: 3000,\n },\n [ApiServiceLevelEnum.UNLIMITED]: {\n [ApiRateLimitCategoryEnum.TRIGGER]: 6000,\n [ApiRateLimitCategoryEnum.CONFIGURATION]: 1500,\n [ApiRateLimitCategoryEnum.GLOBAL]: 3000,\n },\n};\nexport const DEFAULT_API_RATE_LIMIT_ALGORITHM_CONFIG = {\n [ApiRateLimitAlgorithmEnum.BURST_ALLOWANCE]: 0.1,\n [ApiRateLimitAlgorithmEnum.WINDOW_DURATION]: 1,\n};\nexport const DEFAULT_API_RATE_LIMIT_COST_CONFIG = {\n [ApiRateLimitCostEnum.SINGLE]: 1,\n [ApiRateLimitCostEnum.BULK]: 100,\n};\n","export function isBrowser() {\n return typeof window !== 'undefined';\n}\n","'use strict';\n\nexport default function bind(fn, thisArg) {\n return function wrap() {\n return fn.apply(thisArg, arguments);\n };\n}\n","'use strict';\n\nimport bind from './helpers/bind.js';\n\n// utils is a library of generic helper functions non-specific to axios\n\nconst {toString} = Object.prototype;\nconst {getPrototypeOf} = Object;\n\nconst kindOf = (cache => thing => {\n const str = toString.call(thing);\n return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());\n})(Object.create(null));\n\nconst kindOfTest = (type) => {\n type = type.toLowerCase();\n return (thing) => kindOf(thing) === type\n}\n\nconst typeOfTest = type => thing => typeof thing === type;\n\n/**\n * Determine if a value is an Array\n *\n * @param {Object} val The value to test\n *\n * @returns {boolean} True if value is an Array, otherwise false\n */\nconst {isArray} = Array;\n\n/**\n * Determine if a value is undefined\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if the value is undefined, otherwise false\n */\nconst isUndefined = typeOfTest('undefined');\n\n/**\n * Determine if a value is a Buffer\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Buffer, otherwise false\n */\nfunction isBuffer(val) {\n return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor)\n && isFunction(val.constructor.isBuffer) && val.constructor.isBuffer(val);\n}\n\n/**\n * Determine if a value is an ArrayBuffer\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is an ArrayBuffer, otherwise false\n */\nconst isArrayBuffer = kindOfTest('ArrayBuffer');\n\n\n/**\n * Determine if a value is a view on an ArrayBuffer\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false\n */\nfunction isArrayBufferView(val) {\n let result;\n if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {\n result = ArrayBuffer.isView(val);\n } else {\n result = (val) && (val.buffer) && (isArrayBuffer(val.buffer));\n }\n return result;\n}\n\n/**\n * Determine if a value is a String\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a String, otherwise false\n */\nconst isString = typeOfTest('string');\n\n/**\n * Determine if a value is a Function\n *\n * @param {*} val The value to test\n * @returns {boolean} True if value is a Function, otherwise false\n */\nconst isFunction = typeOfTest('function');\n\n/**\n * Determine if a value is a Number\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Number, otherwise false\n */\nconst isNumber = typeOfTest('number');\n\n/**\n * Determine if a value is an Object\n *\n * @param {*} thing The value to test\n *\n * @returns {boolean} True if value is an Object, otherwise false\n */\nconst isObject = (thing) => thing !== null && typeof thing === 'object';\n\n/**\n * Determine if a value is a Boolean\n *\n * @param {*} thing The value to test\n * @returns {boolean} True if value is a Boolean, otherwise false\n */\nconst isBoolean = thing => thing === true || thing === false;\n\n/**\n * Determine if a value is a plain Object\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a plain Object, otherwise false\n */\nconst isPlainObject = (val) => {\n if (kindOf(val) !== 'object') {\n return false;\n }\n\n const prototype = getPrototypeOf(val);\n return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in val) && !(Symbol.iterator in val);\n}\n\n/**\n * Determine if a value is a Date\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Date, otherwise false\n */\nconst isDate = kindOfTest('Date');\n\n/**\n * Determine if a value is a File\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a File, otherwise false\n */\nconst isFile = kindOfTest('File');\n\n/**\n * Determine if a value is a Blob\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Blob, otherwise false\n */\nconst isBlob = kindOfTest('Blob');\n\n/**\n * Determine if a value is a FileList\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a File, otherwise false\n */\nconst isFileList = kindOfTest('FileList');\n\n/**\n * Determine if a value is a Stream\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Stream, otherwise false\n */\nconst isStream = (val) => isObject(val) && isFunction(val.pipe);\n\n/**\n * Determine if a value is a FormData\n *\n * @param {*} thing The value to test\n *\n * @returns {boolean} True if value is an FormData, otherwise false\n */\nconst isFormData = (thing) => {\n let kind;\n return thing && (\n (typeof FormData === 'function' && thing instanceof FormData) || (\n isFunction(thing.append) && (\n (kind = kindOf(thing)) === 'formdata' ||\n // detect form-data instance\n (kind === 'object' && isFunction(thing.toString) && thing.toString() === '[object FormData]')\n )\n )\n )\n}\n\n/**\n * Determine if a value is a URLSearchParams object\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a URLSearchParams object, otherwise false\n */\nconst isURLSearchParams = kindOfTest('URLSearchParams');\n\n/**\n * Trim excess whitespace off the beginning and end of a string\n *\n * @param {String} str The String to trim\n *\n * @returns {String} The String freed of excess whitespace\n */\nconst trim = (str) => str.trim ?\n str.trim() : str.replace(/^[\\s\\uFEFF\\xA0]+|[\\s\\uFEFF\\xA0]+$/g, '');\n\n/**\n * Iterate over an Array or an Object invoking a function for each item.\n *\n * If `obj` is an Array callback will be called passing\n * the value, index, and complete array for each item.\n *\n * If 'obj' is an Object callback will be called passing\n * the value, key, and complete object for each property.\n *\n * @param {Object|Array} obj The object to iterate\n * @param {Function} fn The callback to invoke for each item\n *\n * @param {Boolean} [allOwnKeys = false]\n * @returns {any}\n */\nfunction forEach(obj, fn, {allOwnKeys = false} = {}) {\n // Don't bother if no value provided\n if (obj === null || typeof obj === 'undefined') {\n return;\n }\n\n let i;\n let l;\n\n // Force an array if not already something iterable\n if (typeof obj !== 'object') {\n /*eslint no-param-reassign:0*/\n obj = [obj];\n }\n\n if (isArray(obj)) {\n // Iterate over array values\n for (i = 0, l = obj.length; i < l; i++) {\n fn.call(null, obj[i], i, obj);\n }\n } else {\n // Iterate over object keys\n const keys = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj);\n const len = keys.length;\n let key;\n\n for (i = 0; i < len; i++) {\n key = keys[i];\n fn.call(null, obj[key], key, obj);\n }\n }\n}\n\nfunction findKey(obj, key) {\n key = key.toLowerCase();\n const keys = Object.keys(obj);\n let i = keys.length;\n let _key;\n while (i-- > 0) {\n _key = keys[i];\n if (key === _key.toLowerCase()) {\n return _key;\n }\n }\n return null;\n}\n\nconst _global = (() => {\n /*eslint no-undef:0*/\n if (typeof globalThis !== \"undefined\") return globalThis;\n return typeof self !== \"undefined\" ? self : (typeof window !== 'undefined' ? window : global)\n})();\n\nconst isContextDefined = (context) => !isUndefined(context) && context !== _global;\n\n/**\n * Accepts varargs expecting each argument to be an object, then\n * immutably merges the properties of each object and returns result.\n *\n * When multiple objects contain the same key the later object in\n * the arguments list will take precedence.\n *\n * Example:\n *\n * ```js\n * var result = merge({foo: 123}, {foo: 456});\n * console.log(result.foo); // outputs 456\n * ```\n *\n * @param {Object} obj1 Object to merge\n *\n * @returns {Object} Result of all merge properties\n */\nfunction merge(/* obj1, obj2, obj3, ... */) {\n const {caseless} = isContextDefined(this) && this || {};\n const result = {};\n const assignValue = (val, key) => {\n const targetKey = caseless && findKey(result, key) || key;\n if (isPlainObject(result[targetKey]) && isPlainObject(val)) {\n result[targetKey] = merge(result[targetKey], val);\n } else if (isPlainObject(val)) {\n result[targetKey] = merge({}, val);\n } else if (isArray(val)) {\n result[targetKey] = val.slice();\n } else {\n result[targetKey] = val;\n }\n }\n\n for (let i = 0, l = arguments.length; i < l; i++) {\n arguments[i] && forEach(arguments[i], assignValue);\n }\n return result;\n}\n\n/**\n * Extends object a by mutably adding to it the properties of object b.\n *\n * @param {Object} a The object to be extended\n * @param {Object} b The object to copy properties from\n * @param {Object} thisArg The object to bind function to\n *\n * @param {Boolean} [allOwnKeys]\n * @returns {Object} The resulting value of object a\n */\nconst extend = (a, b, thisArg, {allOwnKeys}= {}) => {\n forEach(b, (val, key) => {\n if (thisArg && isFunction(val)) {\n a[key] = bind(val, thisArg);\n } else {\n a[key] = val;\n }\n }, {allOwnKeys});\n return a;\n}\n\n/**\n * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)\n *\n * @param {string} content with BOM\n *\n * @returns {string} content value without BOM\n */\nconst stripBOM = (content) => {\n if (content.charCodeAt(0) === 0xFEFF) {\n content = content.slice(1);\n }\n return content;\n}\n\n/**\n * Inherit the prototype methods from one constructor into another\n * @param {function} constructor\n * @param {function} superConstructor\n * @param {object} [props]\n * @param {object} [descriptors]\n *\n * @returns {void}\n */\nconst inherits = (constructor, superConstructor, props, descriptors) => {\n constructor.prototype = Object.create(superConstructor.prototype, descriptors);\n constructor.prototype.constructor = constructor;\n Object.defineProperty(constructor, 'super', {\n value: superConstructor.prototype\n });\n props && Object.assign(constructor.prototype, props);\n}\n\n/**\n * Resolve object with deep prototype chain to a flat object\n * @param {Object} sourceObj source object\n * @param {Object} [destObj]\n * @param {Function|Boolean} [filter]\n * @param {Function} [propFilter]\n *\n * @returns {Object}\n */\nconst toFlatObject = (sourceObj, destObj, filter, propFilter) => {\n let props;\n let i;\n let prop;\n const merged = {};\n\n destObj = destObj || {};\n // eslint-disable-next-line no-eq-null,eqeqeq\n if (sourceObj == null) return destObj;\n\n do {\n props = Object.getOwnPropertyNames(sourceObj);\n i = props.length;\n while (i-- > 0) {\n prop = props[i];\n if ((!propFilter || propFilter(prop, sourceObj, destObj)) && !merged[prop]) {\n destObj[prop] = sourceObj[prop];\n merged[prop] = true;\n }\n }\n sourceObj = filter !== false && getPrototypeOf(sourceObj);\n } while (sourceObj && (!filter || filter(sourceObj, destObj)) && sourceObj !== Object.prototype);\n\n return destObj;\n}\n\n/**\n * Determines whether a string ends with the characters of a specified string\n *\n * @param {String} str\n * @param {String} searchString\n * @param {Number} [position= 0]\n *\n * @returns {boolean}\n */\nconst endsWith = (str, searchString, position) => {\n str = String(str);\n if (position === undefined || position > str.length) {\n position = str.length;\n }\n position -= searchString.length;\n const lastIndex = str.indexOf(searchString, position);\n return lastIndex !== -1 && lastIndex === position;\n}\n\n\n/**\n * Returns new array from array like object or null if failed\n *\n * @param {*} [thing]\n *\n * @returns {?Array}\n */\nconst toArray = (thing) => {\n if (!thing) return null;\n if (isArray(thing)) return thing;\n let i = thing.length;\n if (!isNumber(i)) return null;\n const arr = new Array(i);\n while (i-- > 0) {\n arr[i] = thing[i];\n }\n return arr;\n}\n\n/**\n * Checking if the Uint8Array exists and if it does, it returns a function that checks if the\n * thing passed in is an instance of Uint8Array\n *\n * @param {TypedArray}\n *\n * @returns {Array}\n */\n// eslint-disable-next-line func-names\nconst isTypedArray = (TypedArray => {\n // eslint-disable-next-line func-names\n return thing => {\n return TypedArray && thing instanceof TypedArray;\n };\n})(typeof Uint8Array !== 'undefined' && getPrototypeOf(Uint8Array));\n\n/**\n * For each entry in the object, call the function with the key and value.\n *\n * @param {Object<any, any>} obj - The object to iterate over.\n * @param {Function} fn - The function to call for each entry.\n *\n * @returns {void}\n */\nconst forEachEntry = (obj, fn) => {\n const generator = obj && obj[Symbol.iterator];\n\n const iterator = generator.call(obj);\n\n let result;\n\n while ((result = iterator.next()) && !result.done) {\n const pair = result.value;\n fn.call(obj, pair[0], pair[1]);\n }\n}\n\n/**\n * It takes a regular expression and a string, and returns an array of all the matches\n *\n * @param {string} regExp - The regular expression to match against.\n * @param {string} str - The string to search.\n *\n * @returns {Array<boolean>}\n */\nconst matchAll = (regExp, str) => {\n let matches;\n const arr = [];\n\n while ((matches = regExp.exec(str)) !== null) {\n arr.push(matches);\n }\n\n return arr;\n}\n\n/* Checking if the kindOfTest function returns true when passed an HTMLFormElement. */\nconst isHTMLForm = kindOfTest('HTMLFormElement');\n\nconst toCamelCase = str => {\n return str.toLowerCase().replace(/[-_\\s]([a-z\\d])(\\w*)/g,\n function replacer(m, p1, p2) {\n return p1.toUpperCase() + p2;\n }\n );\n};\n\n/* Creating a function that will check if an object has a property. */\nconst hasOwnProperty = (({hasOwnProperty}) => (obj, prop) => hasOwnProperty.call(obj, prop))(Object.prototype);\n\n/**\n * Determine if a value is a RegExp object\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a RegExp object, otherwise false\n */\nconst isRegExp = kindOfTest('RegExp');\n\nconst reduceDescriptors = (obj, reducer) => {\n const descriptors = Object.getOwnPropertyDescriptors(obj);\n const reducedDescriptors = {};\n\n forEach(descriptors, (descriptor, name) => {\n let ret;\n if ((ret = reducer(descriptor, name, obj)) !== false) {\n reducedDescriptors[name] = ret || descriptor;\n }\n });\n\n Object.defineProperties(obj, reducedDescriptors);\n}\n\n/**\n * Makes all methods read-only\n * @param {Object} obj\n */\n\nconst freezeMethods = (obj) => {\n reduceDescriptors(obj, (descriptor, name) => {\n // skip restricted props in strict mode\n if (isFunction(obj) && ['arguments', 'caller', 'callee'].indexOf(name) !== -1) {\n return false;\n }\n\n const value = obj[name];\n\n if (!isFunction(value)) return;\n\n descriptor.enumerable = false;\n\n if ('writable' in descriptor) {\n descriptor.writable = false;\n return;\n }\n\n if (!descriptor.set) {\n descriptor.set = () => {\n throw Error('Can not rewrite read-only method \\'' + name + '\\'');\n };\n }\n });\n}\n\nconst toObjectSet = (arrayOrString, delimiter) => {\n const obj = {};\n\n const define = (arr) => {\n arr.forEach(value => {\n obj[value] = true;\n });\n }\n\n isArray(arrayOrString) ? define(arrayOrString) : define(String(arrayOrString).split(delimiter));\n\n return obj;\n}\n\nconst noop = () => {}\n\nconst toFiniteNumber = (value, defaultValue) => {\n value = +value;\n return Number.isFinite(value) ? value : defaultValue;\n}\n\nconst ALPHA = 'abcdefghijklmnopqrstuvwxyz'\n\nconst DIGIT = '0123456789';\n\nconst ALPHABET = {\n DIGIT,\n ALPHA,\n ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT\n}\n\nconst generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {\n let str = '';\n const {length} = alphabet;\n while (size--) {\n str += alphabet[Math.random() * length|0]\n }\n\n return str;\n}\n\n/**\n * If the thing is a FormData object, return true, otherwise return false.\n *\n * @param {unknown} thing - The thing to check.\n *\n * @returns {boolean}\n */\nfunction isSpecCompliantForm(thing) {\n return !!(thing && isFunction(thing.append) && thing[Symbol.toStringTag] === 'FormData' && thing[Symbol.iterator]);\n}\n\nconst toJSONObject = (obj) => {\n const stack = new Array(10);\n\n const visit = (source, i) => {\n\n if (isObject(source)) {\n if (stack.indexOf(source) >= 0) {\n return;\n }\n\n if(!('toJSON' in source)) {\n stack[i] = source;\n const target = isArray(source) ? [] : {};\n\n forEach(source, (value, key) => {\n const reducedValue = visit(value, i + 1);\n !isUndefined(reducedValue) && (target[key] = reducedValue);\n });\n\n stack[i] = undefined;\n\n return target;\n }\n }\n\n return source;\n }\n\n return visit(obj, 0);\n}\n\nconst isAsyncFn = kindOfTest('AsyncFunction');\n\nconst isThenable = (thing) =>\n thing && (isObject(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing.catch);\n\nexport default {\n isArray,\n isArrayBuffer,\n isBuffer,\n isFormData,\n isArrayBufferView,\n isString,\n isNumber,\n isBoolean,\n isObject,\n isPlainObject,\n isUndefined,\n isDate,\n isFile,\n isBlob,\n isRegExp,\n isFunction,\n isStream,\n isURLSearchParams,\n isTypedArray,\n isFileList,\n forEach,\n merge,\n extend,\n trim,\n stripBOM,\n inherits,\n toFlatObject,\n kindOf,\n kindOfTest,\n endsWith,\n toArray,\n forEachEntry,\n matchAll,\n isHTMLForm,\n hasOwnProperty,\n hasOwnProp: hasOwnProperty, // an alias to avoid ESLint no-prototype-builtins detection\n reduceDescriptors,\n freezeMethods,\n toObjectSet,\n toCamelCase,\n noop,\n toFiniteNumber,\n findKey,\n global: _global,\n isContextDefined,\n ALPHABET,\n generateString,\n isSpecCompliantForm,\n toJSONObject,\n isAsyncFn,\n isThenable\n};\n","'use strict';\n\nimport utils from '../utils.js';\n\n/**\n * Create an Error with the specified message, config, error code, request and response.\n *\n * @param {string} message The error message.\n * @param {string} [code] The error code (for example, 'ECONNABORTED').\n * @param {Object} [config] The config.\n * @param {Object} [request] The request.\n * @param {Object} [response] The response.\n *\n * @returns {Error} The created error.\n */\nfunction AxiosError(message, code, config, request, response) {\n Error.call(this);\n\n if (Error.captureStackTrace) {\n Error.captureStackTrace(this, this.constructor);\n } else {\n this.stack = (new Error()).stack;\n }\n\n this.message = message;\n this.name = 'AxiosError';\n code && (this.code = code);\n config && (this.config = config);\n request && (this.request = request);\n response && (this.response = response);\n}\n\nutils.inherits(AxiosError, Error, {\n toJSON: function toJSON() {\n return {\n // Standard\n message: this.message,\n name: this.name,\n // Microsoft\n description: this.description,\n number: this.number,\n // Mozilla\n fileName: this.fileName,\n lineNumber: this.lineNumber,\n columnNumber: this.columnNumber,\n stack: this.stack,\n // Axios\n config: utils.toJSONObject(this.config),\n code: this.code,\n status: this.response && this.response.status ? this.response.status : null\n };\n }\n});\n\nconst prototype = AxiosError.prototype;\nconst descriptors = {};\n\n[\n 'ERR_BAD_OPTION_VALUE',\n 'ERR_BAD_OPTION',\n 'ECONNABORTED',\n 'ETIMEDOUT',\n 'ERR_NETWORK',\n 'ERR_FR_TOO_MANY_REDIRECTS',\n 'ERR_DEPRECATED',\n 'ERR_BAD_RESPONSE',\n 'ERR_BAD_REQUEST',\n 'ERR_CANCELED',\n 'ERR_NOT_SUPPORT',\n 'ERR_INVALID_URL'\n// eslint-disable-next-line func-names\n].forEach(code => {\n descriptors[code] = {value: code};\n});\n\nObject.defineProperties(AxiosError, descriptors);\nObject.defineProperty(prototype, 'isAxiosError', {value: true});\n\n// eslint-disable-next-line func-names\nAxiosError.from = (error, code, config, request, response, customProps) => {\n const axiosError = Object.create(prototype);\n\n utils.toFlatObject(error, axiosError, function filter(obj) {\n return obj !== Error.prototype;\n }, prop => {\n return prop !== 'isAxiosError';\n });\n\n AxiosError.call(axiosError, error.message, code, config, request, response);\n\n axiosError.cause = error;\n\n axiosError.name = error.name;\n\n customProps && Object.assign(axiosError, customProps);\n\n return axiosError;\n};\n\nexport default AxiosError;\n","'use strict';\n\nimport utils from '../utils.js';\nimport AxiosError from '../core/AxiosError.js';\n// temporary hotfix to avoid circular references until AxiosURLSearchParams is refactored\nimport PlatformFormData from '../platform/node/classes/FormData.js';\n\n/**\n * Determines if the given thing is a array or js object.\n *\n * @param {string} thing - The object or array to be visited.\n *\n * @returns {boolean}\n */\nfunction isVisitable(thing) {\n return utils.isPlainObject(thing) || utils.isArray(thing);\n}\n\n/**\n * It removes the brackets from the end of a string\n *\n * @param {string} key - The key of the parameter.\n *\n * @returns {string} the key without the brackets.\n */\nfunction removeBrackets(key) {\n return utils.endsWith(key, '[]') ? key.slice(0, -2) : key;\n}\n\n/**\n * It takes a path, a key, and a boolean, and returns a string\n *\n * @param {string} path - The path to the current key.\n * @param {string} key - The key of the current object being iterated over.\n * @param {string} dots - If true, the key will be rendered with dots instead of brackets.\n *\n * @returns {string} The path to the current key.\n */\nfunction renderKey(path, key, dots) {\n if (!path) return key;\n return path.concat(key).map(function each(token, i) {\n // eslint-disable-next-line no-param-reassign\n token = removeBrackets(token);\n return !dots && i ? '[' + token + ']' : token;\n }).join(dots ? '.' : '');\n}\n\n/**\n * If the array is an array and none of its elements are visitable, then it's a flat array.\n *\n * @param {Array<any>} arr - The array to check\n *\n * @returns {boolean}\n */\nfunction isFlatArray(arr) {\n return utils.isArray(arr) && !arr.some(isVisitable);\n}\n\nconst predicates = utils.toFlatObject(utils, {}, null, function filter(prop) {\n return /^is[A-Z]/.test(prop);\n});\n\n/**\n * Convert a data object to FormData\n *\n * @param {Object} obj\n * @param {?Object} [formData]\n * @param {?Object} [options]\n * @param {Function} [options.visitor]\n * @param {Boolean} [options.metaTokens = true]\n * @param {Boolean} [options.dots = false]\n * @param {?Boolean} [options.indexes = false]\n *\n * @returns {Object}\n **/\n\n/**\n * It converts an object into a FormData object\n *\n * @param {Object<any, any>} obj - The object to convert to form data.\n * @param {string} formData - The FormData object to append to.\n * @param {Object<string, any>} options\n *\n * @returns\n */\nfunction toFormData(obj, formData, options) {\n if (!utils.isObject(obj)) {\n throw new TypeError('target must be an object');\n }\n\n // eslint-disable-next-line no-param-reassign\n formData = formData || new (PlatformFormData || FormData)();\n\n // eslint-disable-next-line no-param-reassign\n options = utils.toFlatObject(options, {\n metaTokens: true,\n dots: false,\n indexes: false\n }, false, function defined(option, source) {\n // eslint-disable-next-line no-eq-null,eqeqeq\n return !utils.isUndefined(source[option]);\n });\n\n const metaTokens = options.metaTokens;\n // eslint-disable-next-line no-use-before-define\n const visitor = options.visitor || defaultVisitor;\n const dots = options.dots;\n const indexes = options.indexes;\n const _Blob = options.Blob || typeof Blob !== 'undefined' && Blob;\n const useBlob = _Blob && utils.isSpecCompliantForm(formData);\n\n if (!utils.isFunction(visitor)) {\n throw new TypeError('visitor must be a function');\n }\n\n function convertValue(value) {\n if (value === null) return '';\n\n if (utils.isDate(value)) {\n return value.toISOString();\n }\n\n if (!useBlob && utils.isBlob(value)) {\n throw new AxiosError('Blob is not supported. Use a Buffer instead.');\n }\n\n if (utils.isArrayBuffer(value) || utils.isTypedArray(value)) {\n return useBlob && typeof Blob === 'function' ? new Blob([value]) : Buffer.from(value);\n }\n\n return value;\n }\n\n /**\n * Default visitor.\n *\n * @param {*} value\n * @param {String|Number} key\n * @param {Array<String|Number>} path\n * @this {FormData}\n *\n * @returns {boolean} return true to visit the each prop of the value recursively\n */\n function defaultVisitor(value, key, path) {\n let arr = value;\n\n if (value && !path && typeof value === 'object') {\n if (utils.endsWith(key, '{}')) {\n // eslint-disable-next-line no-param-reassign\n key = metaTokens ? key : key.slice(0, -2);\n // eslint-disable-next-line no-param-reassign\n value = JSON.stringify(value);\n } else if (\n (utils.isArray(value) && isFlatArray(value)) ||\n ((utils.isFileList(value) || utils.endsWith(key, '[]')) && (arr = utils.toArray(value))\n )) {\n // eslint-disable-next-line no-param-reassign\n key = removeBrackets(key);\n\n arr.forEach(function each(el, index) {\n !(utils.isUndefined(el) || el === null) && formData.append(\n // eslint-disable-next-line no-nested-ternary\n indexes === true ? renderKey([key], index, dots) : (indexes === null ? key : key + '[]'),\n convertValue(el)\n );\n });\n return false;\n }\n }\n\n if (isVisitable(value)) {\n return true;\n }\n\n formData.append(renderKey(path, key, dots), convertValue(value));\n\n return false;\n }\n\n const stack = [];\n\n const exposedHelpers = Object.assign(predicates, {\n defaultVisitor,\n convertValue,\n isVisitable\n });\n\n function build(value, path) {\n if (utils.isUndefined(value)) return;\n\n if (stack.indexOf(value) !== -1) {\n throw Error('Circular reference detected in ' + path.join('.'));\n }\n\n stack.push(value);\n\n utils.forEach(value, function each(el, key) {\n const result = !(utils.isUndefined(el) || el === null) && visitor.call(\n formData, el, utils.isString(key) ? key.trim() : key, path, exposedHelpers\n );\n\n if (result === true) {\n build(el, path ? path.concat(key) : [key]);\n }\n });\n\n stack.pop();\n }\n\n if (!utils.isObject(obj)) {\n throw new TypeError('data must be an object');\n }\n\n build(obj);\n\n return formData;\n}\n\nexport default toFormData;\n","'use strict';\n\nimport toFormData from './toFormData.js';\n\n/**\n * It encodes a string by replacing all characters that are not in the unreserved set with\n * their percent-encoded equivalents\n *\n * @param {string} str - The string to encode.\n *\n * @returns {string} The encoded string.\n */\nfunction encode(str) {\n const charMap = {\n '!': '%21',\n \"'\": '%27',\n '(': '%28',\n ')': '%29',\n '~': '%7E',\n '%20': '+',\n '%00': '\\x00'\n };\n return encodeURIComponent(str).replace(/[!'()~]|%20|%00/g, function replacer(match) {\n return charMap[match];\n });\n}\n\n/**\n * It takes a params object and converts it to a FormData object\n *\n * @param {Object<string, any>} params - The parameters to be converted to a FormData object.\n * @param {Object<string, any>} options - The options object passed to the Axios constructor.\n *\n * @returns {void}\n */\nfunction AxiosURLSearchParams(params, options) {\n this._pairs = [];\n\n params && toFormData(params, this, options);\n}\n\nconst prototype = AxiosURLSearchParams.prototype;\n\nprototype.append = function append(name, value) {\n this._pairs.push([name, value]);\n};\n\nprototype.toString = function toString(encoder) {\n const _encode = encoder ? function(value) {\n return encoder.call(this, value, encode);\n } : encode;\n\n return this._pairs.map(function each(pair) {\n return _encode(pair[0]) + '=' + _encode(pair[1]);\n }, '').join('&');\n};\n\nexport default AxiosURLSearchParams;\n","'use strict';\n\nimport utils from '../utils.js';\nimport AxiosURLSearchParams from '../helpers/AxiosURLSearchParams.js';\n\n/**\n * It replaces all instances of the characters `:`, `$`, `,`, `+`, `[`, and `]` with their\n * URI encoded counterparts\n *\n * @param {string} val The value to be encoded.\n *\n * @returns {string} The encoded value.\n */\nfunction encode(val) {\n return encodeURIComponent(val).\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%20/g, '+').\n replace(/%5B/gi, '[').\n replace(/%5D/gi, ']');\n}\n\n/**\n * Build a URL by appending params to the end\n *\n * @param {string} url The base of the url (e.g., http://www.google.com)\n * @param {object} [params] The params to be appended\n * @param {?object} options\n *\n * @returns {string} The formatted url\n */\nexport default function buildURL(url, params, options) {\n /*eslint no-param-reassign:0*/\n if (!params) {\n return url;\n }\n \n const _encode = options && options.encode || encode;\n\n const serializeFn = options && options.serialize;\n\n let serializedParams;\n\n if (serializeFn) {\n serializedParams = serializeFn(params, options);\n } else {\n serializedParams = utils.isURLSearchParams(params) ?\n params.toString() :\n new AxiosURLSearchParams(params, options).toString(_encode);\n }\n\n if (serializedParams) {\n const hashmarkIndex = url.indexOf(\"#\");\n\n if (hashmarkIndex !== -1) {\n url = url.slice(0, hashmarkIndex);\n }\n url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;\n }\n\n return url;\n}\n","'use strict';\n\nimport utils from './../utils.js';\n\nclass InterceptorManager {\n constructor() {\n this.handlers = [];\n }\n\n /**\n * Add a new interceptor to the stack\n *\n * @param {Function} fulfilled The function to handle `then` for a `Promise`\n * @param {Function} rejected The function to handle `reject` for a `Promise`\n *\n * @return {Number} An ID used to remove interceptor later\n */\n use(fulfilled, rejected, options) {\n this.handlers.push({\n fulfilled,\n rejected,\n synchronous: options ? options.synchronous : false,\n runWhen: options ? options.runWhen : null\n });\n return this.handlers.length - 1;\n }\n\n /**\n * Remove an interceptor from the stack\n *\n * @param {Number} id The ID that was returned by `use`\n *\n * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise\n */\n eject(id) {\n if (this.handlers[id]) {\n this.handlers[id] = null;\n }\n }\n\n /**\n * Clear all interceptors from the stack\n *\n * @returns {void}\n */\n clear() {\n if (this.handlers) {\n this.handlers = [];\n }\n }\n\n /**\n * Iterate over all the registered interceptors\n *\n * This method is particularly useful for skipping over any\n * interceptors that may have become `null` calling `eject`.\n *\n * @param {Function} fn The function to call for each interceptor\n *\n * @returns {void}\n */\n forEach(fn) {\n utils.forEach(this.handlers, function forEachHandler(h) {\n if (h !== null) {\n fn(h);\n }\n });\n }\n}\n\nexport default InterceptorManager;\n","'use strict';\n\nexport default {\n silentJSONParsing: true,\n forcedJSONParsing: true,\n clarifyTimeoutError: false\n};\n","import URLSearchParams from './classes/URLSearchParams.js'\nimport FormData from './classes/FormData.js'\nimport Blob from './classes/Blob.js'\n\nexport default {\n isBrowser: true,\n classes: {\n URLSearchParams,\n FormData,\n Blob\n },\n protocols: ['http', 'https', 'file', 'blob', 'url', 'data']\n};\n","'use strict';\n\nimport AxiosURLSearchParams from '../../../helpers/AxiosURLSearchParams.js';\nexport default typeof URLSearchParams !== 'undefined' ? URLSearchParams : AxiosURLSearchParams;\n","'use strict';\n\nexport default typeof FormData !== 'undefined' ? FormData : null;\n","'use strict'\n\nexport default typeof Blob !== 'undefined' ? Blob : null\n","const hasBrowserEnv = typeof window !== 'undefined' && typeof document !== 'undefined';\n\n/**\n * Determine if we're running in a standard browser environment\n *\n * This allows axios to run in a web worker, and react-native.\n * Both environments support XMLHttpRequest, but not fully standard globals.\n *\n * web workers:\n * typeof window -> undefined\n * typeof document -> undefined\n *\n * react-native:\n * navigator.product -> 'ReactNative'\n * nativescript\n * navigator.product -> 'NativeScript' or 'NS'\n *\n * @returns {boolean}\n */\nconst hasStandardBrowserEnv = (\n (product) => {\n return hasBrowserEnv && ['ReactNative', 'NativeScript', 'NS'].indexOf(product) < 0\n })(typeof navigator !== 'undefined' && navigator.product);\n\n/**\n * Determine if we're running in a standard browser webWorker environment\n *\n * Although the `isStandardBrowserEnv` method indicates that\n * `allows axios to run in a web worker`, the WebWorker will still be\n * filtered out due to its judgment standard\n * `typeof window !== 'undefined' && typeof document !== 'undefined'`.\n * This leads to a problem when axios post `FormData` in webWorker\n */\nconst hasStandardBrowserWebWorkerEnv = (() => {\n return (\n typeof WorkerGlobalScope !== 'undefined' &&\n // eslint-disable-next-line no-undef\n self instanceof WorkerGlobalScope &&\n typeof self.importScripts === 'function'\n );\n})();\n\nexport {\n hasBrowserEnv,\n hasStandardBrowserWebWorkerEnv,\n hasStandardBrowserEnv\n}\n","import platform from './node/index.js';\nimport * as utils from './common/utils.js';\n\nexport default {\n ...utils,\n ...platform\n}\n","'use strict';\n\nimport utils from '../utils.js';\n\n/**\n * It takes a string like `foo[x][y][z]` and returns an array like `['foo', 'x', 'y', 'z']\n *\n * @param {string} name - The name of the property to get.\n *\n * @returns An array of strings.\n */\nfunction parsePropPath(name) {\n // foo[x][y][z]\n // foo.x.y.z\n // foo-x-y-z\n // foo x y z\n return utils.matchAll(/\\w+|\\[(\\w*)]/g, name).map(match => {\n return match[0] === '[]' ? '' : match[1] || match[0];\n });\n}\n\n/**\n * Convert an array to an object.\n *\n * @param {Array<any>} arr - The array to convert to an object.\n *\n * @returns An object with the same keys and values as the array.\n */\nfunction arrayToObject(arr) {\n const obj = {};\n const keys = Object.keys(arr);\n let i;\n const len = keys.length;\n let key;\n for (i = 0; i < len; i++) {\n key = keys[i];\n obj[key] = arr[key];\n }\n return obj;\n}\n\n/**\n * It takes a FormData object and returns a JavaScript object\n *\n * @param {string} formData The FormData object to convert to JSON.\n *\n * @returns {Object<string, any> | null} The converted object.\n */\nfunction formDataToJSON(formData) {\n function buildPath(path, value, target, index) {\n let name = path[index++];\n\n if (name === '__proto__') return true;\n\n const isNumericKey = Number.isFinite(+name);\n const isLast = index >= path.length;\n name = !name && utils.isArray(target) ? target.length : name;\n\n if (isLast) {\n if (utils.hasOwnProp(target, name)) {\n target[name] = [target[name], value];\n } else {\n target[name] = value;\n }\n\n return !isNumericKey;\n }\n\n if (!target[name] || !utils.isObject(target[name])) {\n target[name] = [];\n }\n\n const result = buildPath(path, value, target[name], index);\n\n if (result && utils.isArray(target[name])) {\n target[name] = arrayToObject(target[name]);\n }\n\n return !isNumericKey;\n }\n\n if (utils.isFormData(formData) && utils.isFunction(formData.entries)) {\n const obj = {};\n\n utils.forEachEntry(formData, (name, value) => {\n buildPath(parsePropPath(name), value, obj, 0);\n });\n\n return obj;\n }\n\n return null;\n}\n\nexport default formDataToJSON;\n","'use strict';\n\nimport utils from '../utils.js';\nimport AxiosError from '../core/AxiosError.js';\nimport transitionalDefaults from './transitional.js';\nimport toFormData from '../helpers/toFormData.js';\nimport toURLEncodedForm from '../helpers/toURLEncodedForm.js';\nimport platform from '../platform/index.js';\nimport formDataToJSON from '../helpers/formDataToJSON.js';\n\n/**\n * It takes a string, tries to parse it, and if it fails, it returns the stringified version\n * of the input\n *\n * @param {any} rawValue - The value to be stringified.\n * @param {Function} parser - A function that parses a string into a JavaScript object.\n * @param {Function} encoder - A function that takes a value and returns a string.\n *\n * @returns {string} A stringified version of the rawValue.\n */\nfunction stringifySafely(rawValue, parser, encoder) {\n if (utils.isString(rawValue)) {\n try {\n (parser || JSON.parse)(rawValue);\n return utils.trim(rawValue);\n } catch (e) {\n if (e.name !== 'SyntaxError') {\n throw e;\n }\n }\n }\n\n return (encoder || JSON.stringify)(rawValue);\n}\n\nconst defaults = {\n\n transitional: transitionalDefaults,\n\n adapter: ['xhr', 'http'],\n\n transformRequest: [function transformRequest(data, headers) {\n const contentType = headers.getContentType() || '';\n const hasJSONContentType = contentType.indexOf('application/json') > -1;\n const isObjectPayload = utils.isObject(data);\n\n if (isObjectPayload && utils.isHTMLForm(data)) {\n data = new FormData(data);\n }\n\n const isFormData = utils.isFormData(data);\n\n if (isFormData) {\n return hasJSONContentType ? JSON.stringify(formDataToJSON(data)) : data;\n }\n\n if (utils.isArrayBuffer(data) ||\n utils.isBuffer(data) ||\n utils.isStream(data) ||\n utils.isFile(data) ||\n utils.isBlob(data)\n ) {\n return data;\n }\n if (utils.isArrayBufferView(data)) {\n return data.buffer;\n }\n if (utils.isURLSearchParams(data)) {\n headers.setContentType('application/x-www-form-urlencoded;charset=utf-8', false);\n return data.toString();\n }\n\n let isFileList;\n\n if (isObjectPayload) {\n if (contentType.indexOf('application/x-www-form-urlencoded') > -1) {\n return toURLEncodedForm(data, this.formSerializer).toString();\n }\n\n if ((isFileList = utils.isFileList(data)) || contentType.indexOf('multipart/form-data') > -1) {\n const _FormData = this.env && this.env.FormData;\n\n return toFormData(\n isFileList ? {'files[]': data} : data,\n _FormData && new _FormData(),\n this.formSerializer\n );\n }\n }\n\n if (isObjectPayload || hasJSONContentType ) {\n headers.setContentType('application/json', false);\n return stringifySafely(data);\n }\n\n return data;\n }],\n\n transformResponse: [function transformResponse(data) {\n const transitional = this.transitional || defaults.transitional;\n const forcedJSONParsing = transitional && transitional.forcedJSONParsing;\n const JSONRequested = this.responseType === 'json';\n\n if (data && utils.isString(data) && ((forcedJSONParsing && !this.responseType) || JSONRequested)) {\n const silentJSONParsing = transitional && transitional.silentJSONParsing;\n const strictJSONParsing = !silentJSONParsing && JSONRequested;\n\n try {\n return JSON.parse(data);\n } catch (e) {\n if (strictJSONParsing) {\n if (e.name === 'SyntaxError') {\n throw AxiosError.from(e, AxiosError.ERR_BAD_RESPONSE, this, null, this.response);\n }\n throw e;\n }\n }\n }\n\n return data;\n }],\n\n /**\n * A timeout in milliseconds to abort a request. If set to 0 (default) a\n * timeout is not created.\n */\n timeout: 0,\n\n xsrfCookieName: 'XSRF-TOKEN',\n xsrfHeaderName: 'X-XSRF-TOKEN',\n\n maxContentLength: -1,\n maxBodyLength: -1,\n\n env: {\n FormData: platform.classes.FormData,\n Blob: platform.classes.Blob\n },\n\n validateStatus: function validateStatus(status) {\n return status >= 200 && status < 300;\n },\n\n headers: {\n common: {\n 'Accept': 'application/json, text/plain, */*',\n 'Content-Type': undefined\n }\n }\n};\n\nutils.forEach(['delete', 'get', 'head', 'post', 'put', 'patch'], (method) => {\n defaults.headers[method] = {};\n});\n\nexport default defaults;\n","'use strict';\n\nimport utils from '../utils.js';\nimport toFormData from './toFormData.js';\nimport platform from '../platform/index.js';\n\nexport default function toURLEncodedForm(data, options) {\n return toFormData(data, new platform.classes.URLSearchParams(), Object.assign({\n visitor: function(value, key, path, helpers) {\n if (platform.isNode && utils.isBuffer(value)) {\n this.append(key, value.toString('base64'));\n return false;\n }\n\n return helpers.defaultVisitor.apply(this, arguments);\n }\n }, options));\n}\n","'use strict';\n\nimport utils from './../utils.js';\n\n// RawAxiosHeaders whose duplicates are ignored by node\n// c.f. https://nodejs.org/api/http.html#http_message_headers\nconst ignoreDuplicateOf = utils.toObjectSet([\n 'age', 'authorization', 'content-length', 'content-type', 'etag',\n 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since',\n 'last-modified', 'location', 'max-forwards', 'proxy-authorization',\n 'referer', 'retry-after', 'user-agent'\n]);\n\n/**\n * Parse headers into an object\n *\n * ```\n * Date: Wed, 27 Aug 2014 08:58:49 GMT\n * Content-Type: application/json\n * Connection: keep-alive\n * Transfer-Encoding: chunked\n * ```\n *\n * @param {String} rawHeaders Headers needing to be parsed\n *\n * @returns {Object} Headers parsed into an object\n */\nexport default rawHeaders => {\n const parsed = {};\n let key;\n let val;\n let i;\n\n rawHeaders && rawHeaders.split('\\n').forEach(function parser(line) {\n i = line.indexOf(':');\n key = line.substring(0, i).trim().toLowerCase();\n val = line.substring(i + 1).trim();\n\n if (!key || (parsed[key] && ignoreDuplicateOf[key])) {\n return;\n }\n\n if (key === 'set-cookie') {\n if (parsed[key]) {\n parsed[key].push(val);\n } else {\n parsed[key] = [val];\n }\n } else {\n parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;\n }\n });\n\n return parsed;\n};\n","'use strict';\n\nimport utils from '../utils.js';\nimport parseHeaders from '../helpers/parseHeaders.js';\n\nconst $internals = Symbol('internals');\n\nfunction normalizeHeader(header) {\n return header && String(header).trim().toLowerCase();\n}\n\nfunction normalizeValue(value) {\n if (value === false || value == null) {\n return value;\n }\n\n return utils.isArray(value) ? value.map(normalizeValue) : String(value);\n}\n\nfunction parseTokens(str) {\n const tokens = Object.create(null);\n const tokensRE = /([^\\s,;=]+)\\s*(?:=\\s*([^,;]+))?/g;\n let match;\n\n while ((match = tokensRE.exec(str))) {\n tokens[match[1]] = match[2];\n }\n\n return tokens;\n}\n\nconst isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());\n\nfunction matchHeaderValue(context, value, header, filter, isHeaderNameFilter) {\n if (utils.isFunction(filter)) {\n return filter.call(this, value, header);\n }\n\n if (isHeaderNameFilter) {\n value = header;\n }\n\n if (!utils.isString(value)) return;\n\n if (utils.isString(filter)) {\n return value.indexOf(filter) !== -1;\n }\n\n if (utils.isRegExp(filter)) {\n return filter.test(value);\n }\n}\n\nfunction formatHeader(header) {\n return header.trim()\n .toLowerCase().replace(/([a-z\\d])(\\w*)/g, (w, char, str) => {\n return char.toUpperCase() + str;\n });\n}\n\nfunction buildAccessors(obj, header) {\n const accessorName = utils.toCamelCase(' ' + header);\n\n ['get', 'set', 'has'].forEach(methodName => {\n Object.defineProperty(obj, methodName + accessorName, {\n value: function(arg1, arg2, arg3) {\n return this[methodName].call(this, header, arg1, arg2, arg3);\n },\n configurable: true\n });\n });\n}\n\nclass AxiosHeaders {\n constructor(headers) {\n headers && this.set(headers);\n }\n\n set(header, valueOrRewrite, rewrite) {\n const self = this;\n\n function setHeader(_value, _header, _rewrite) {\n const lHeader = normalizeHeader(_header);\n\n if (!lHeader) {\n throw new Error('header name must be a non-empty string');\n }\n\n const key = utils.findKey(self, lHeader);\n\n if(!key || self[key] === undefined || _rewrite === true || (_rewrite === undefined && self[key] !== false)) {\n self[key || _header] = normalizeValue(_value);\n }\n }\n\n const setHeaders = (headers, _rewrite) =>\n utils.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));\n\n if (utils.isPlainObject(header) || header instanceof this.constructor) {\n setHeaders(header, valueOrRewrite)\n } else if(utils.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {\n setHeaders(parseHeaders(header), valueOrRewrite);\n } else {\n header != null && setHeader(valueOrRewrite, header, rewrite);\n }\n\n return this;\n }\n\n get(header, parser) {\n header = normalizeHeader(header);\n\n if (header) {\n const key = utils.findKey(this, header);\n\n if (key) {\n const value = this[key];\n\n if (!parser) {\n return value;\n }\n\n if (parser === true) {\n return parseTokens(value);\n }\n\n if (utils.isFunction(parser)) {\n return parser.call(this, value, key);\n }\n\n if (utils.isRegExp(parser)) {\n return parser.exec(value);\n }\n\n throw new TypeError('parser must be boolean|regexp|function');\n }\n }\n }\n\n has(header, matcher) {\n header = normalizeHeader(header);\n\n if (header) {\n const key = utils.findKey(this, header);\n\n return !!(key && this[key] !== undefined && (!matcher || matchHeaderValue(this, this[key], key, matcher)));\n }\n\n return false;\n }\n\n delete(header, matcher) {\n const self = this;\n let deleted = false;\n\n function deleteHeader(_header) {\n _header = normalizeHeader(_header);\n\n if (_header) {\n const key = utils.findKey(self, _header);\n\n if (key && (!matcher || matchHeaderValue(self, self[key], key, matcher))) {\n delete self[key];\n\n deleted = true;\n }\n }\n }\n\n if (utils.isArray(header)) {\n header.forEach(deleteHeader);\n } else {\n deleteHeader(header);\n }\n\n return deleted;\n }\n\n clear(matcher) {\n const keys = Object.keys(this);\n let i = keys.length;\n let deleted = false;\n\n while (i--) {\n const key = keys[i];\n if(!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {\n delete this[key];\n deleted = true;\n }\n }\n\n return deleted;\n }\n\n normalize(format) {\n const self = this;\n const headers = {};\n\n utils.forEach(this, (value, header) => {\n const key = utils.findKey(headers, header);\n\n if (key) {\n self[key] = normalizeValue(value);\n delete self[header];\n return;\n }\n\n const normalized = format ? formatHeader(header) : String(header).trim();\n\n if (normalized !== header) {\n delete self[header];\n }\n\n self[normalized] = normalizeValue(value);\n\n headers[normalized] = true;\n });\n\n return this;\n }\n\n concat(...targets) {\n return this.constructor.concat(this, ...targets);\n }\n\n toJSON(asStrings) {\n const obj = Object.create(null);\n\n utils.forEach(this, (value, header) => {\n value != null && value !== false && (obj[header] = asStrings && utils.isArray(value) ? value.join(', ') : value);\n });\n\n return obj;\n }\n\n [Symbol.iterator]() {\n return Object.entries(this.toJSON())[Symbol.iterator]();\n }\n\n toString() {\n return Object.entries(this.toJSON()).map(([header, value]) => header + ': ' + value).join('\\n');\n }\n\n get [Symbol.toStringTag]() {\n return 'AxiosHeaders';\n }\n\n static from(thing) {\n return thing instanceof this ? thing : new this(thing);\n }\n\n static concat(first, ...targets) {\n const computed = new this(first);\n\n targets.forEach((target) => computed.set(target));\n\n return computed;\n }\n\n static accessor(header) {\n const internals = this[$internals] = (this[$internals] = {\n accessors: {}\n });\n\n const accessors = internals.accessors;\n const prototype = this.prototype;\n\n function defineAccessor(_header) {\n const lHeader = normalizeHeader(_header);\n\n if (!accessors[lHeader]) {\n buildAccessors(prototype, _header);\n accessors[lHeader] = true;\n }\n }\n\n utils.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);\n\n return this;\n }\n}\n\nAxiosHeaders.accessor(['Content-Type', 'Content-Length', 'Accept', 'Accept-Encoding', 'User-Agent', 'Authorization']);\n\n// reserved names hotfix\nutils.reduceDescriptors(AxiosHeaders.prototype, ({value}, key) => {\n let mapped = key[0].toUpperCase() + key.slice(1); // map `set` => `Set`\n return {\n get: () => value,\n set(headerValue) {\n this[mapped] = headerValue;\n }\n }\n});\n\nutils.freezeMethods(AxiosHeaders);\n\nexport default AxiosHeaders;\n","'use strict';\n\nimport utils from './../utils.js';\nimport defaults from '../defaults/index.js';\nimport AxiosHeaders from '../core/AxiosHeaders.js';\n\n/**\n * Transform the data for a request or a response\n *\n * @param {Array|Function} fns A single function or Array of functions\n * @param {?Object} response The response object\n *\n * @returns {*} The resulting transformed data\n */\nexport default function transformData(fns, response) {\n const config = this || defaults;\n const context = response || config;\n const headers = AxiosHeaders.from(context.headers);\n let data = context.data;\n\n utils.forEach(fns, function transform(fn) {\n data = fn.call(config, data, headers.normalize(), response ? response.status : undefined);\n });\n\n headers.normalize();\n\n return data;\n}\n","'use strict';\n\nexport default function isCancel(value) {\n return !!(value && value.__CANCEL__);\n}\n","'use strict';\n\nimport AxiosError from '../core/AxiosError.js';\nimport utils from '../utils.js';\n\n/**\n * A `CanceledError` is an object that is thrown when an operation is canceled.\n *\n * @param {string=} message The message.\n * @param {Object=} config The config.\n * @param {Object=} request The request.\n *\n * @returns {CanceledError} The created error.\n */\nfunction CanceledError(message, config, request) {\n // eslint-disable-next-line no-eq-null,eqeqeq\n AxiosError.call(this, message == null ? 'canceled' : message, AxiosError.ERR_CANCELED, config, request);\n this.name = 'CanceledError';\n}\n\nutils.inherits(CanceledError, AxiosError, {\n __CANCEL__: true\n});\n\nexport default CanceledError;\n","import utils from './../utils.js';\nimport platform from '../platform/index.js';\n\nexport default platform.hasStandardBrowserEnv ?\n\n // Standard browser envs support document.cookie\n {\n write(name, value, expires, path, domain, secure) {\n const cookie = [name + '=' + encodeURIComponent(value)];\n\n utils.isNumber(expires) && cookie.push('expires=' + new Date(expires).toGMTString());\n\n utils.isString(path) && cookie.push('path=' + path);\n\n utils.isString(domain) && cookie.push('domain=' + domain);\n\n secure === true && cookie.push('secure');\n\n document.cookie = cookie.join('; ');\n },\n\n read(name) {\n const match = document.cookie.match(new RegExp('(^|;\\\\s*)(' + name + ')=([^;]*)'));\n return (match ? decodeURIComponent(match[3]) : null);\n },\n\n remove(name) {\n this.write(name, '', Date.now() - 86400000);\n }\n }\n\n :\n\n // Non-standard browser env (web workers, react-native) lack needed support.\n {\n write() {},\n read() {\n return null;\n },\n remove() {}\n };\n\n","'use strict';\n\nimport isAbsoluteURL from '../helpers/isAbsoluteURL.js';\nimport combineURLs from '../helpers/combineURLs.js';\n\n/**\n * Creates a new URL by combining the baseURL with the requestedURL,\n * only when the requestedURL is not already an absolute URL.\n * If the requestURL is absolute, this function returns the requestedURL untouched.\n *\n * @param {string} baseURL The base URL\n * @param {string} requestedURL Absolute or relative URL to combine\n *\n * @returns {string} The combined full path\n */\nexport default function buildFullPath(baseURL, requestedURL) {\n if (baseURL && !isAbsoluteURL(requestedURL)) {\n return combineURLs(baseURL, requestedURL);\n }\n return requestedURL;\n}\n","'use strict';\n\n/**\n * Determines whether the specified URL is absolute\n *\n * @param {string} url The URL to test\n *\n * @returns {boolean} True if the specified URL is absolute, otherwise false\n */\nexport default function isAbsoluteURL(url) {\n // A URL is considered absolute if it begins with \"<scheme>://\" or \"//\" (protocol-relative URL).\n // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed\n // by any combination of letters, digits, plus, period, or hyphen.\n return /^([a-z][a-z\\d+\\-.]*:)?\\/\\//i.test(url);\n}\n","'use strict';\n\n/**\n * Creates a new URL by combining the specified URLs\n *\n * @param {string} baseURL The base URL\n * @param {string} relativeURL The relative URL\n *\n * @returns {string} The combined URL\n */\nexport default function combineURLs(baseURL, relativeURL) {\n return relativeURL\n ? baseURL.replace(/\\/?\\/$/, '') + '/' + relativeURL.replace(/^\\/+/, '')\n : baseURL;\n}\n","'use strict';\n\nimport utils from './../utils.js';\nimport platform from '../platform/index.js';\n\nexport default platform.hasStandardBrowserEnv ?\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 const msie = /(msie|trident)/i.test(navigator.userAgent);\n const urlParsingNode = document.createElement('a');\n let originURL;\n\n /**\n * Parse a URL to discover its components\n *\n * @param {String} url The URL to be parsed\n * @returns {Object}\n */\n function resolveURL(url) {\n let 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 const 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","'use strict';\n\n/**\n * Calculate data maxRate\n * @param {Number} [samplesCount= 10]\n * @param {Number} [min= 1000]\n * @returns {Function}\n */\nfunction speedometer(samplesCount, min) {\n samplesCount = samplesCount || 10;\n const bytes = new Array(samplesCount);\n const timestamps = new Array(samplesCount);\n let head = 0;\n let tail = 0;\n let firstSampleTS;\n\n min = min !== undefined ? min : 1000;\n\n return function push(chunkLength) {\n const now = Date.now();\n\n const startedAt = timestamps[tail];\n\n if (!firstSampleTS) {\n firstSampleTS = now;\n }\n\n bytes[head] = chunkLength;\n timestamps[head] = now;\n\n let i = tail;\n let bytesCount = 0;\n\n while (i !== head) {\n bytesCount += bytes[i++];\n i = i % samplesCount;\n }\n\n head = (head + 1) % samplesCount;\n\n if (head === tail) {\n tail = (tail + 1) % samplesCount;\n }\n\n if (now - firstSampleTS < min) {\n return;\n }\n\n const passed = startedAt && now - startedAt;\n\n return passed ? Math.round(bytesCount * 1000 / passed) : undefined;\n };\n}\n\nexport default speedometer;\n","'use strict';\n\nimport utils from './../utils.js';\nimport settle from './../core/settle.js';\nimport cookies from './../helpers/cookies.js';\nimport buildURL from './../helpers/buildURL.js';\nimport buildFullPath from '../core/buildFullPath.js';\nimport isURLSameOrigin from './../helpers/isURLSameOrigin.js';\nimport transitionalDefaults from '../defaults/transitional.js';\nimport AxiosError from '../core/AxiosError.js';\nimport CanceledError from '../cancel/CanceledError.js';\nimport parseProtocol from '../helpers/parseProtocol.js';\nimport platform from '../platform/index.js';\nimport AxiosHeaders from '../core/AxiosHeaders.js';\nimport speedometer from '../helpers/speedometer.js';\n\nfunction progressEventReducer(listener, isDownloadStream) {\n let bytesNotified = 0;\n const _speedometer = speedometer(50, 250);\n\n return e => {\n const loaded = e.loaded;\n const total = e.lengthComputable ? e.total : undefined;\n const progressBytes = loaded - bytesNotified;\n const rate = _speedometer(progressBytes);\n const inRange = loaded <= total;\n\n bytesNotified = loaded;\n\n const data = {\n loaded,\n total,\n progress: total ? (loaded / total) : undefined,\n bytes: progressBytes,\n rate: rate ? rate : undefined,\n estimated: rate && total && inRange ? (total - loaded) / rate : undefined,\n event: e\n };\n\n data[isDownloadStream ? 'download' : 'upload'] = true;\n\n listener(data);\n };\n}\n\nconst isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';\n\nexport default isXHRAdapterSupported && function (config) {\n return new Promise(function dispatchXhrRequest(resolve, reject) {\n let requestData = config.data;\n const requestHeaders = AxiosHeaders.from(config.headers).normalize();\n let {responseType, withXSRFToken} = config;\n let onCanceled;\n function done() {\n if (config.cancelToken) {\n config.cancelToken.unsubscribe(onCanceled);\n }\n\n if (config.signal) {\n config.signal.removeEventListener('abort', onCanceled);\n }\n }\n\n let contentType;\n\n if (utils.isFormData(requestData)) {\n if (platform.hasStandardBrowserEnv || platform.hasStandardBrowserWebWorkerEnv) {\n requestHeaders.setContentType(false); // Let the browser set it\n } else if ((contentType = requestHeaders.getContentType()) !== false) {\n // fix semicolon duplication issue for ReactNative FormData implementation\n const [type, ...tokens] = contentType ? contentType.split(';').map(token => token.trim()).filter(Boolean) : [];\n requestHeaders.setContentType([type || 'multipart/form-data', ...tokens].join('; '));\n }\n }\n\n let request = new XMLHttpRequest();\n\n // HTTP basic authentication\n if (config.auth) {\n const username = config.auth.username || '';\n const password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : '';\n requestHeaders.set('Authorization', 'Basic ' + btoa(username + ':' + password));\n }\n\n const fullPath = buildFullPath(config.baseURL, config.url);\n\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 const responseHeaders = AxiosHeaders.from(\n 'getAllResponseHeaders' in request && request.getAllResponseHeaders()\n );\n const responseData = !responseType || responseType === 'text' || responseType === 'json' ?\n request.responseText : request.response;\n const response = {\n data: responseData,\n status: request.status,\n statusText: request.statusText,\n headers: responseHeaders,\n config,\n request\n };\n\n settle(function _resolve(value) {\n resolve(value);\n done();\n }, function _reject(err) {\n reject(err);\n done();\n }, response);\n\n // Clean up request\n request = null;\n }\n\n if ('onloadend' in request) {\n // Use onloadend if available\n request.onloadend = onloadend;\n } else {\n // Listen for ready state to emulate onloadend\n request.onreadystatechange = function handleLoad() {\n if (!request || request.readyState !== 4) {\n return;\n }\n\n // The request errored out and we didn't get a response, this will be\n // handled by onerror instead\n // With one exception: request that using file: protocol, most browsers\n // will return status as 0 even though it's a successful request\n if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {\n return;\n }\n // readystate handler is calling before onerror or ontimeout handlers,\n // so we should call onloadend on the next 'tick'\n setTimeout(onloadend);\n };\n }\n\n // Handle browser request cancellation (as opposed to a manual cancellation)\n request.onabort = function handleAbort() {\n if (!request) {\n return;\n }\n\n reject(new AxiosError('Request aborted', AxiosError.ECONNABORTED, config, request));\n\n // Clean up request\n request = null;\n };\n\n // Handle low level network errors\n request.onerror = function handleError() {\n // Real errors are hidden from us by the browser\n // onerror should only fire if it's a network error\n reject(new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request));\n\n // Clean up request\n request = null;\n };\n\n // Handle timeout\n request.ontimeout = function handleTimeout() {\n let timeoutErrorMessage = config.timeout ? 'timeout of ' + config.timeout + 'ms exceeded' : 'timeout exceeded';\n const transitional = config.transitional || transitionalDefaults;\n if (config.timeoutErrorMessage) {\n timeoutErrorMessage = config.timeoutErrorMessage;\n }\n reject(new AxiosError(\n timeoutErrorMessage,\n transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED,\n config,\n request));\n\n // Clean up request\n request = null;\n };\n\n // 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(platform.hasStandardBrowserEnv) {\n withXSRFToken && utils.isFunction(withXSRFToken) && (withXSRFToken = withXSRFToken(config));\n\n if (withXSRFToken || (withXSRFToken !== false && isURLSameOrigin(fullPath))) {\n // Add xsrf header\n const xsrfValue = config.xsrfHeaderName && config.xsrfCookieName && cookies.read(config.xsrfCookieName);\n\n if (xsrfValue) {\n requestHeaders.set(config.xsrfHeaderName, xsrfValue);\n }\n }\n }\n\n // Remove Content-Type if data is undefined\n requestData === undefined && requestHeaders.setContentType(null);\n\n // Add headers to the request\n if ('setRequestHeader' in request) {\n utils.forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) {\n request.setRequestHeader(key, val);\n });\n }\n\n // Add withCredentials to request if needed\n if (!utils.isUndefined(config.withCredentials)) {\n request.withCredentials = !!config.withCredentials;\n }\n\n // Add responseType to request if needed\n if (responseType && responseType !== 'json') {\n request.responseType = config.responseType;\n }\n\n // Handle progress if needed\n if (typeof config.onDownloadProgress === 'function') {\n request.addEventListener('progress', progressEventReducer(config.onDownloadProgress, true));\n }\n\n // Not all browsers support upload events\n if (typeof config.onUploadProgress === 'function' && request.upload) {\n request.upload.addEventListener('progress', progressEventReducer(config.onUploadProgress));\n }\n\n if (config.cancelToken || config.signal) {\n // Handle cancellation\n // eslint-disable-next-line func-names\n onCanceled = cancel => {\n if (!request) {\n return;\n }\n reject(!cancel || cancel.type ? new CanceledError(null, config, request) : cancel);\n request.abort();\n request = null;\n };\n\n config.cancelToken && config.cancelToken.subscribe(onCanceled);\n if (config.signal) {\n config.signal.aborted ? onCanceled() : config.signal.addEventListener('abort', onCanceled);\n }\n }\n\n const protocol = parseProtocol(fullPath);\n\n if (protocol && platform.protocols.indexOf(protocol) === -1) {\n reject(new AxiosError('Unsupported protocol ' + protocol + ':', AxiosError.ERR_BAD_REQUEST, config));\n return;\n }\n\n\n // Send the request\n request.send(requestData || null);\n });\n}\n","import utils from '../utils.js';\nimport httpAdapter from './http.js';\nimport xhrAdapter from './xhr.js';\nimport AxiosError from \"../core/AxiosError.js\";\n\nconst knownAdapters = {\n http: httpAdapter,\n xhr: xhrAdapter\n}\n\nutils.forEach(knownAdapters, (fn, value) => {\n if (fn) {\n try {\n Object.defineProperty(fn, 'name', {value});\n } catch (e) {\n // eslint-disable-next-line no-empty\n }\n Object.defineProperty(fn, 'adapterName', {value});\n }\n});\n\nconst renderReason = (reason) => `- ${reason}`;\n\nconst isResolvedHandle = (adapter) => utils.isFunction(adapter) || adapter === null || adapter === false;\n\nexport default {\n getAdapter: (adapters) => {\n adapters = utils.isArray(adapters) ? adapters : [adapters];\n\n const {length} = adapters;\n let nameOrAdapter;\n let adapter;\n\n const rejectedReasons = {};\n\n for (let i = 0; i < length; i++) {\n nameOrAdapter = adapters[i];\n let id;\n\n adapter = nameOrAdapter;\n\n if (!isResolvedHandle(nameOrAdapter)) {\n adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];\n\n if (adapter === undefined) {\n throw new AxiosError(`Unknown adapter '${id}'`);\n }\n }\n\n if (adapter) {\n break;\n }\n\n rejectedReasons[id || '#' + i] = adapter;\n }\n\n if (!adapter) {\n\n const reasons = Object.entries(rejectedReasons)\n .map(([id, state]) => `adapter ${id} ` +\n (state === false ? 'is not supported by the environment' : 'is not available in the build')\n );\n\n let s = length ?\n (reasons.length > 1 ? 'since :\\n' + reasons.map(renderReason).join('\\n') : ' ' + renderReason(reasons[0])) :\n 'as no adapter specified';\n\n throw new AxiosError(\n `There is no suitable adapter to dispatch the request ` + s,\n 'ERR_NOT_SUPPORT'\n );\n }\n\n return adapter;\n },\n adapters: knownAdapters\n}\n","// eslint-disable-next-line strict\nexport default null;\n","'use strict';\n\nimport AxiosError from './AxiosError.js';\n\n/**\n * Resolve or reject a Promise based on response status.\n *\n * @param {Function} resolve A function that resolves the promise.\n * @param {Function} reject A function that rejects the promise.\n * @param {object} response The response.\n *\n * @returns {object} The response.\n */\nexport default function settle(resolve, reject, response) {\n const validateStatus = response.config.validateStatus;\n if (!response.status || !validateStatus || validateStatus(response.status)) {\n resolve(response);\n } else {\n reject(new AxiosError(\n 'Request failed with status code ' + response.status,\n [AxiosError.ERR_BAD_REQUEST, AxiosError.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],\n response.config,\n response.request,\n response\n ));\n }\n}\n","'use strict';\n\nexport default function parseProtocol(url) {\n const match = /^([-+\\w]{1,25})(:?\\/\\/|:)/.exec(url);\n return match && match[1] || '';\n}\n","'use strict';\n\nimport transformData from './transformData.js';\nimport isCancel from '../cancel/isCancel.js';\nimport defaults from '../defaults/index.js';\nimport CanceledError from '../cancel/CanceledError.js';\nimport AxiosHeaders from '../core/AxiosHeaders.js';\nimport adapters from \"../adapters/adapters.js\";\n\n/**\n * Throws a `CanceledError` if cancellation has been requested.\n *\n * @param {Object} config The config that is to be used for the request\n *\n * @returns {void}\n */\nfunction throwIfCancellationRequested(config) {\n if (config.cancelToken) {\n config.cancelToken.throwIfRequested();\n }\n\n if (config.signal && config.signal.aborted) {\n throw new CanceledError(null, config);\n }\n}\n\n/**\n * Dispatch a request to the server using the configured adapter.\n *\n * @param {object} config The config that is to be used for the request\n *\n * @returns {Promise} The Promise to be fulfilled\n */\nexport default function dispatchRequest(config) {\n throwIfCancellationRequested(config);\n\n config.headers = AxiosHeaders.from(config.headers);\n\n // Transform request data\n config.data = transformData.call(\n config,\n config.transformRequest\n );\n\n if (['post', 'put', 'patch'].indexOf(config.method) !== -1) {\n config.headers.setContentType('application/x-www-form-urlencoded', false);\n }\n\n const adapter = adapters.getAdapter(config.adapter || defaults.adapter);\n\n return adapter(config).then(function onAdapterResolution(response) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n response.data = transformData.call(\n config,\n config.transformResponse,\n response\n );\n\n response.headers = AxiosHeaders.from(response.headers);\n\n return response;\n }, function onAdapterRejection(reason) {\n if (!isCancel(reason)) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n if (reason && reason.response) {\n reason.response.data = transformData.call(\n config,\n config.transformResponse,\n reason.response\n );\n reason.response.headers = AxiosHeaders.from(reason.response.headers);\n }\n }\n\n return Promise.reject(reason);\n });\n}\n","'use strict';\n\nimport utils from '../utils.js';\nimport AxiosHeaders from \"./AxiosHeaders.js\";\n\nconst headersToObject = (thing) => thing instanceof AxiosHeaders ? { ...thing } : thing;\n\n/**\n * Config-specific merge-function which creates a new config-object\n * by merging two configuration objects together.\n *\n * @param {Object} config1\n * @param {Object} config2\n *\n * @returns {Object} New object resulting from merging config2 to config1\n */\nexport default function mergeConfig(config1, config2) {\n // eslint-disable-next-line no-param-reassign\n config2 = config2 || {};\n const config = {};\n\n function getMergedValue(target, source, caseless) {\n if (utils.isPlainObject(target) && utils.isPlainObject(source)) {\n return utils.merge.call({caseless}, target, source);\n } else if (utils.isPlainObject(source)) {\n return utils.merge({}, source);\n } else if (utils.isArray(source)) {\n return source.slice();\n }\n return source;\n }\n\n // eslint-disable-next-line consistent-return\n function mergeDeepProperties(a, b, caseless) {\n if (!utils.isUndefined(b)) {\n return getMergedValue(a, b, caseless);\n } else if (!utils.isUndefined(a)) {\n return getMergedValue(undefined, a, caseless);\n }\n }\n\n // eslint-disable-next-line consistent-return\n function valueFromConfig2(a, b) {\n if (!utils.isUndefined(b)) {\n return getMergedValue(undefined, b);\n }\n }\n\n // eslint-disable-next-line consistent-return\n function defaultToConfig2(a, b) {\n if (!utils.isUndefined(b)) {\n return getMergedValue(undefined, b);\n } else if (!utils.isUndefined(a)) {\n return getMergedValue(undefined, a);\n }\n }\n\n // eslint-disable-next-line consistent-return\n function mergeDirectKeys(a, b, prop) {\n if (prop in config2) {\n return getMergedValue(a, b);\n } else if (prop in config1) {\n return getMergedValue(undefined, a);\n }\n }\n\n const mergeMap = {\n url: valueFromConfig2,\n method: valueFromConfig2,\n data: valueFromConfig2,\n baseURL: defaultToConfig2,\n transformRequest: defaultToConfig2,\n transformResponse: defaultToConfig2,\n paramsSerializer: defaultToConfig2,\n timeout: defaultToConfig2,\n timeoutMessage: defaultToConfig2,\n withCredentials: defaultToConfig2,\n withXSRFToken: defaultToConfig2,\n adapter: defaultToConfig2,\n responseType: defaultToConfig2,\n xsrfCookieName: defaultToConfig2,\n xsrfHeaderName: defaultToConfig2,\n onUploadProgress: defaultToConfig2,\n onDownloadProgress: defaultToConfig2,\n decompress: defaultToConfig2,\n maxContentLength: defaultToConfig2,\n maxBodyLength: defaultToConfig2,\n beforeRedirect: defaultToConfig2,\n transport: defaultToConfig2,\n httpAgent: defaultToConfig2,\n httpsAgent: defaultToConfig2,\n cancelToken: defaultToConfig2,\n socketPath: defaultToConfig2,\n responseEncoding: defaultToConfig2,\n validateStatus: mergeDirectKeys,\n headers: (a, b) => mergeDeepProperties(headersToObject(a), headersToObject(b), true)\n };\n\n utils.forEach(Object.keys(Object.assign({}, config1, config2)), function computeConfigValue(prop) {\n const merge = mergeMap[prop] || mergeDeepProperties;\n const configValue = merge(config1[prop], config2[prop], prop);\n (utils.isUndefined(configValue) && merge !== mergeDirectKeys) || (config[prop] = configValue);\n });\n\n return config;\n}\n","export const VERSION = \"1.6.8\";","'use strict';\n\nimport {VERSION} from '../env/data.js';\nimport AxiosError from '../core/AxiosError.js';\n\nconst validators = {};\n\n// eslint-disable-next-line func-names\n['object', 'boolean', 'number', 'function', 'string', 'symbol'].forEach((type, i) => {\n validators[type] = function validator(thing) {\n return typeof thing === type || 'a' + (i < 1 ? 'n ' : ' ') + type;\n };\n});\n\nconst deprecatedWarnings = {};\n\n/**\n * Transitional option validator\n *\n * @param {function|boolean?} validator - set to false if the transitional option has been removed\n * @param {string?} version - deprecated version / removed since version\n * @param {string?} message - some message with additional info\n *\n * @returns {function}\n */\nvalidators.transitional = function transitional(validator, version, message) {\n function formatMessage(opt, desc) {\n return '[Axios v' + VERSION + '] Transitional option \\'' + opt + '\\'' + desc + (message ? '. ' + message : '');\n }\n\n // eslint-disable-next-line func-names\n return (value, opt, opts) => {\n if (validator === false) {\n throw new AxiosError(\n formatMessage(opt, ' has been removed' + (version ? ' in ' + version : '')),\n AxiosError.ERR_DEPRECATED\n );\n }\n\n if (version && !deprecatedWarnings[opt]) {\n deprecatedWarnings[opt] = true;\n // eslint-disable-next-line no-console\n console.warn(\n formatMessage(\n opt,\n ' has been deprecated since v' + version + ' and will be removed in the near future'\n )\n );\n }\n\n return validator ? validator(value, opt, opts) : true;\n };\n};\n\n/**\n * Assert object's properties type\n *\n * @param {object} options\n * @param {object} schema\n * @param {boolean?} allowUnknown\n *\n * @returns {object}\n */\n\nfunction assertOptions(options, schema, allowUnknown) {\n if (typeof options !== 'object') {\n throw new AxiosError('options must be an object', AxiosError.ERR_BAD_OPTION_VALUE);\n }\n const keys = Object.keys(options);\n let i = keys.length;\n while (i-- > 0) {\n const opt = keys[i];\n const validator = schema[opt];\n if (validator) {\n const value = options[opt];\n const result = value === undefined || validator(value, opt, options);\n if (result !== true) {\n throw new AxiosError('option ' + opt + ' must be ' + result, AxiosError.ERR_BAD_OPTION_VALUE);\n }\n continue;\n }\n if (allowUnknown !== true) {\n throw new AxiosError('Unknown option ' + opt, AxiosError.ERR_BAD_OPTION);\n }\n }\n}\n\nexport default {\n assertOptions,\n validators\n};\n","'use strict';\n\nimport utils from './../utils.js';\nimport buildURL from '../helpers/buildURL.js';\nimport InterceptorManager from './InterceptorManager.js';\nimport dispatchRequest from './dispatchRequest.js';\nimport mergeConfig from './mergeConfig.js';\nimport buildFullPath from './buildFullPath.js';\nimport validator from '../helpers/validator.js';\nimport AxiosHeaders from './AxiosHeaders.js';\n\nconst validators = validator.validators;\n\n/**\n * Create a new instance of Axios\n *\n * @param {Object} instanceConfig The default config for the instance\n *\n * @return {Axios} A new instance of Axios\n */\nclass Axios {\n constructor(instanceConfig) {\n this.defaults = instanceConfig;\n this.interceptors = {\n request: new InterceptorManager(),\n response: new InterceptorManager()\n };\n }\n\n /**\n * Dispatch a request\n *\n * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)\n * @param {?Object} config\n *\n * @returns {Promise} The Promise to be fulfilled\n */\n async request(configOrUrl, config) {\n try {\n return await this._request(configOrUrl, config);\n } catch (err) {\n if (err instanceof Error) {\n let dummy;\n\n Error.captureStackTrace ? Error.captureStackTrace(dummy = {}) : (dummy = new Error());\n\n // slice off the Error: ... line\n const stack = dummy.stack ? dummy.stack.replace(/^.+\\n/, '') : '';\n\n if (!err.stack) {\n err.stack = stack;\n // match without the 2 top stack lines\n } else if (stack && !String(err.stack).endsWith(stack.replace(/^.+\\n.+\\n/, ''))) {\n err.stack += '\\n' + stack\n }\n }\n\n throw err;\n }\n }\n\n _request(configOrUrl, config) {\n /*eslint no-param-reassign:0*/\n // Allow for axios('example/url'[, config]) a la fetch API\n if (typeof configOrUrl === 'string') {\n config = config || {};\n config.url = configOrUrl;\n } else {\n config = configOrUrl || {};\n }\n\n config = mergeConfig(this.defaults, config);\n\n const {transitional, paramsSerializer, headers} = config;\n\n if (transitional !== undefined) {\n validator.assertOptions(transitional, {\n silentJSONParsing: validators.transitional(validators.boolean),\n forcedJSONParsing: validators.transitional(validators.boolean),\n clarifyTimeoutError: validators.transitional(validators.boolean)\n }, false);\n }\n\n if (paramsSerializer != null) {\n if (utils.isFunction(paramsSerializer)) {\n config.paramsSerializer = {\n serialize: paramsSerializer\n }\n } else {\n validator.assertOptions(paramsSerializer, {\n encode: validators.function,\n serialize: validators.function\n }, true);\n }\n }\n\n // Set config.method\n config.method = (config.method || this.defaults.method || 'get').toLowerCase();\n\n // Flatten headers\n let contextHeaders = headers && utils.merge(\n headers.common,\n headers[config.method]\n );\n\n headers && utils.forEach(\n ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],\n (method) => {\n delete headers[method];\n }\n );\n\n config.headers = AxiosHeaders.concat(contextHeaders, headers);\n\n // filter out skipped interceptors\n const requestInterceptorChain = [];\n let synchronousRequestInterceptors = true;\n this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {\n if (typeof interceptor.runWhen === 'function' && interceptor.runWhen(config) === false) {\n return;\n }\n\n synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;\n\n requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);\n });\n\n const responseInterceptorChain = [];\n this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {\n responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);\n });\n\n let promise;\n let i = 0;\n let len;\n\n if (!synchronousRequestInterceptors) {\n const chain = [dispatchRequest.bind(this), undefined];\n chain.unshift.apply(chain, requestInterceptorChain);\n chain.push.apply(chain, responseInterceptorChain);\n len = chain.length;\n\n promise = Promise.resolve(config);\n\n while (i < len) {\n promise = promise.then(chain[i++], chain[i++]);\n }\n\n return promise;\n }\n\n len = requestInterceptorChain.length;\n\n let newConfig = config;\n\n i = 0;\n\n while (i < len) {\n const onFulfilled = requestInterceptorChain[i++];\n const onRejected = requestInterceptorChain[i++];\n try {\n newConfig = onFulfilled(newConfig);\n } catch (error) {\n onRejected.call(this, error);\n break;\n }\n }\n\n try {\n promise = dispatchRequest.call(this, newConfig);\n } catch (error) {\n return Promise.reject(error);\n }\n\n i = 0;\n len = responseInterceptorChain.length;\n\n while (i < len) {\n promise = promise.then(responseInterceptorChain[i++], responseInterceptorChain[i++]);\n }\n\n return promise;\n }\n\n getUri(config) {\n config = mergeConfig(this.defaults, config);\n const fullPath = buildFullPath(config.baseURL, config.url);\n return buildURL(fullPath, config.params, config.paramsSerializer);\n }\n}\n\n// Provide aliases for supported request methods\nutils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {\n /*eslint func-names:0*/\n Axios.prototype[method] = function(url, config) {\n return this.request(mergeConfig(config || {}, {\n method,\n url,\n data: (config || {}).data\n }));\n };\n});\n\nutils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n /*eslint func-names:0*/\n\n function generateHTTPMethod(isForm) {\n return function httpMethod(url, data, config) {\n return this.request(mergeConfig(config || {}, {\n method,\n headers: isForm ? {\n 'Content-Type': 'multipart/form-data'\n } : {},\n url,\n data\n }));\n };\n }\n\n Axios.prototype[method] = generateHTTPMethod();\n\n Axios.prototype[method + 'Form'] = generateHTTPMethod(true);\n});\n\nexport default Axios;\n","'use strict';\n\nimport CanceledError from './CanceledError.js';\n\n/**\n * A `CancelToken` is an object that can be used to request cancellation of an operation.\n *\n * @param {Function} executor The executor function.\n *\n * @returns {CancelToken}\n */\nclass CancelToken {\n constructor(executor) {\n if (typeof executor !== 'function') {\n throw new TypeError('executor must be a function.');\n }\n\n let resolvePromise;\n\n this.promise = new Promise(function promiseExecutor(resolve) {\n resolvePromise = resolve;\n });\n\n const token = this;\n\n // eslint-disable-next-line func-names\n this.promise.then(cancel => {\n if (!token._listeners) return;\n\n let i = token._listeners.length;\n\n while (i-- > 0) {\n token._listeners[i](cancel);\n }\n token._listeners = null;\n });\n\n // eslint-disable-next-line func-names\n this.promise.then = onfulfilled => {\n let _resolve;\n // eslint-disable-next-line func-names\n const promise = new Promise(resolve => {\n token.subscribe(resolve);\n _resolve = resolve;\n }).then(onfulfilled);\n\n promise.cancel = function reject() {\n token.unsubscribe(_resolve);\n };\n\n return promise;\n };\n\n executor(function cancel(message, config, request) {\n if (token.reason) {\n // Cancellation has already been requested\n return;\n }\n\n token.reason = new CanceledError(message, config, request);\n resolvePromise(token.reason);\n });\n }\n\n /**\n * Throws a `CanceledError` if cancellation has been requested.\n */\n throwIfRequested() {\n if (this.reason) {\n throw this.reason;\n }\n }\n\n /**\n * Subscribe to the cancel signal\n */\n\n subscribe(listener) {\n if (this.reason) {\n listener(this.reason);\n return;\n }\n\n if (this._listeners) {\n this._listeners.push(listener);\n } else {\n this._listeners = [listener];\n }\n }\n\n /**\n * Unsubscribe from the cancel signal\n */\n\n unsubscribe(listener) {\n if (!this._listeners) {\n return;\n }\n const index = this._listeners.indexOf(listener);\n if (index !== -1) {\n this._listeners.splice(index, 1);\n }\n }\n\n /**\n * Returns an object that contains a new `CancelToken` and a function that, when called,\n * cancels the `CancelToken`.\n */\n static source() {\n let cancel;\n const token = new CancelToken(function executor(c) {\n cancel = c;\n });\n return {\n token,\n cancel\n };\n }\n}\n\nexport default CancelToken;\n","const HttpStatusCode = {\n Continue: 100,\n SwitchingProtocols: 101,\n Processing: 102,\n EarlyHints: 103,\n Ok: 200,\n Created: 201,\n Accepted: 202,\n NonAuthoritativeInformation: 203,\n NoContent: 204,\n ResetContent: 205,\n PartialContent: 206,\n MultiStatus: 207,\n AlreadyReported: 208,\n ImUsed: 226,\n MultipleChoices: 300,\n MovedPermanently: 301,\n Found: 302,\n SeeOther: 303,\n NotModified: 304,\n UseProxy: 305,\n Unused: 306,\n TemporaryRedirect: 307,\n PermanentRedirect: 308,\n BadRequest: 400,\n Unauthorized: 401,\n PaymentRequired: 402,\n Forbidden: 403,\n NotFound: 404,\n MethodNotAllowed: 405,\n NotAcceptable: 406,\n ProxyAuthenticationRequired: 407,\n RequestTimeout: 408,\n Conflict: 409,\n Gone: 410,\n LengthRequired: 411,\n PreconditionFailed: 412,\n PayloadTooLarge: 413,\n UriTooLong: 414,\n UnsupportedMediaType: 415,\n RangeNotSatisfiable: 416,\n ExpectationFailed: 417,\n ImATeapot: 418,\n MisdirectedRequest: 421,\n UnprocessableEntity: 422,\n Locked: 423,\n FailedDependency: 424,\n TooEarly: 425,\n UpgradeRequired: 426,\n PreconditionRequired: 428,\n TooManyRequests: 429,\n RequestHeaderFieldsTooLarge: 431,\n UnavailableForLegalReasons: 451,\n InternalServerError: 500,\n NotImplemented: 501,\n BadGateway: 502,\n ServiceUnavailable: 503,\n GatewayTimeout: 504,\n HttpVersionNotSupported: 505,\n VariantAlsoNegotiates: 506,\n InsufficientStorage: 507,\n LoopDetected: 508,\n NotExtended: 510,\n NetworkAuthenticationRequired: 511,\n};\n\nObject.entries(HttpStatusCode).forEach(([key, value]) => {\n HttpStatusCode[value] = key;\n});\n\nexport default HttpStatusCode;\n","'use strict';\n\nimport utils from './utils.js';\nimport bind from './helpers/bind.js';\nimport Axios from './core/Axios.js';\nimport mergeConfig from './core/mergeConfig.js';\nimport defaults from './defaults/index.js';\nimport formDataToJSON from './helpers/formDataToJSON.js';\nimport CanceledError from './cancel/CanceledError.js';\nimport CancelToken from './cancel/CancelToken.js';\nimport isCancel from './cancel/isCancel.js';\nimport {VERSION} from './env/data.js';\nimport toFormData from './helpers/toFormData.js';\nimport AxiosError from './core/AxiosError.js';\nimport spread from './helpers/spread.js';\nimport isAxiosError from './helpers/isAxiosError.js';\nimport AxiosHeaders from \"./core/AxiosHeaders.js\";\nimport adapters from './adapters/adapters.js';\nimport HttpStatusCode from './helpers/HttpStatusCode.js';\n\n/**\n * Create an instance of Axios\n *\n * @param {Object} defaultConfig The default config for the instance\n *\n * @returns {Axios} A new instance of Axios\n */\nfunction createInstance(defaultConfig) {\n const context = new Axios(defaultConfig);\n const instance = bind(Axios.prototype.request, context);\n\n // Copy axios.prototype to instance\n utils.extend(instance, Axios.prototype, context, {allOwnKeys: true});\n\n // Copy context to instance\n utils.extend(instance, context, null, {allOwnKeys: true});\n\n // Factory for creating new instances\n instance.create = function create(instanceConfig) {\n return createInstance(mergeConfig(defaultConfig, instanceConfig));\n };\n\n return instance;\n}\n\n// Create the default instance to be exported\nconst axios = createInstance(defaults);\n\n// Expose Axios class to allow class inheritance\naxios.Axios = Axios;\n\n// Expose Cancel & CancelToken\naxios.CanceledError = CanceledError;\naxios.CancelToken = CancelToken;\naxios.isCancel = isCancel;\naxios.VERSION = VERSION;\naxios.toFormData = toFormData;\n\n// Expose AxiosError class\naxios.AxiosError = AxiosError;\n\n// alias for CanceledError for backward compatibility\naxios.Cancel = axios.CanceledError;\n\n// Expose all/spread\naxios.all = function all(promises) {\n return Promise.all(promises);\n};\n\naxios.spread = spread;\n\n// Expose isAxiosError\naxios.isAxiosError = isAxiosError;\n\n// Expose mergeConfig\naxios.mergeConfig = mergeConfig;\n\naxios.AxiosHeaders = AxiosHeaders;\n\naxios.formToJSON = thing => formDataToJSON(utils.isHTMLForm(thing) ? new FormData(thing) : thing);\n\naxios.getAdapter = adapters.getAdapter;\n\naxios.HttpStatusCode = HttpStatusCode;\n\naxios.default = axios;\n\n// this module should only have a default export\nexport default axios\n","'use strict';\n\n/**\n * Syntactic sugar for invoking a function and expanding an array for arguments.\n *\n * Common use case would be to use `Function.prototype.apply`.\n *\n * ```js\n * function f(x, y, z) {}\n * var args = [1, 2, 3];\n * f.apply(null, args);\n * ```\n *\n * With `spread` this example can be re-written.\n *\n * ```js\n * spread(function(x, y, z) {})([1, 2, 3]);\n * ```\n *\n * @param {Function} callback\n *\n * @returns {Function}\n */\nexport default function spread(callback) {\n return function wrap(arr) {\n return callback.apply(null, arr);\n };\n}\n","'use strict';\n\nimport utils from './../utils.js';\n\n/**\n * Determines whether the payload is an error thrown by Axios\n *\n * @param {*} payload The value to test\n *\n * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false\n */\nexport default function isAxiosError(payload) {\n return utils.isObject(payload) && (payload.isAxiosError === true);\n}\n","var __awaiter = (this && this.__awaiter) || function (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};\nimport axios from 'axios';\nexport class HttpClient {\n constructor(backendUrl) {\n this.backendUrl = backendUrl;\n this.axiosClient = axios.create({\n baseURL: backendUrl + '/v1',\n });\n }\n setAuthorizationToken(token) {\n this.axiosClient.defaults.headers.common.Authorization = `Bearer ${token}`;\n }\n disposeAuthorizationToken() {\n delete this.axiosClient.defaults.headers.common.Authorization;\n }\n getFullResponse(url, params) {\n return __awaiter(this, void 0, void 0, function* () {\n return yield this.axiosClient\n .get(url, {\n params,\n })\n .then((response) => response.data);\n });\n }\n get(url, params) {\n return __awaiter(this, void 0, void 0, function* () {\n return yield this.axiosClient\n .get(url, {\n params,\n })\n .then((response) => response.data.data);\n });\n }\n post(url, body = {}) {\n return __awaiter(this, void 0, void 0, function* () {\n return yield this.axiosClient.post(url, body).then((response) => response.data.data);\n });\n }\n patch(url, body = {}) {\n return __awaiter(this, void 0, void 0, function* () {\n return yield this.axiosClient.patch(url, body).then((response) => response.data.data);\n });\n }\n delete(url, body = {}) {\n return __awaiter(this, void 0, void 0, function* () {\n return yield this.axiosClient.delete(url, body).then((response) => response.data.data);\n });\n }\n}\n","export const prepareBooleanStringFeatureFlag = (value, defaultValue) => {\n if (!value) {\n return defaultValue;\n }\n return value === 'true';\n};\n","export var NovuComponentEnum;\n(function (NovuComponentEnum) {\n NovuComponentEnum[NovuComponentEnum[\"WEB\"] = 0] = \"WEB\";\n NovuComponentEnum[NovuComponentEnum[\"API\"] = 1] = \"API\";\n NovuComponentEnum[NovuComponentEnum[\"WIDGET\"] = 2] = \"WIDGET\";\n NovuComponentEnum[NovuComponentEnum[\"WS\"] = 3] = \"WS\";\n})(NovuComponentEnum || (NovuComponentEnum = {}));\nexport function getContextPath(component) {\n let contextPath = '';\n const env = typeof process !== 'undefined' && (process === null || process === void 0 ? void 0 : process.env) ? process === null || process === void 0 ? void 0 : process.env : window._env_;\n if (!env) {\n return contextPath;\n }\n if (env.GLOBAL_CONTEXT_PATH) {\n contextPath += env.GLOBAL_CONTEXT_PATH + '/';\n }\n switch (component) {\n case NovuComponentEnum.API:\n if (env.API_CONTEXT_PATH) {\n contextPath += env.API_CONTEXT_PATH + '/';\n }\n break;\n case NovuComponentEnum.WEB:\n if (env.FRONT_BASE_CONTEXT_PATH) {\n contextPath += env.FRONT_BASE_CONTEXT_PATH + '/';\n }\n break;\n case NovuComponentEnum.WIDGET:\n if (env.WIDGET_CONTEXT_PATH) {\n contextPath += env.WIDGET_CONTEXT_PATH + '/';\n }\n break;\n case NovuComponentEnum.WS:\n if (env.WS_CONTEXT_PATH) {\n contextPath += env.WS_CONTEXT_PATH + '/';\n }\n break;\n }\n return contextPath;\n}\n","export var JobTopicNameEnum;\n(function (JobTopicNameEnum) {\n JobTopicNameEnum[\"EXECUTION_LOG\"] = \"execution-logs\";\n JobTopicNameEnum[\"ACTIVE_JOBS_METRIC\"] = \"metric-active-jobs\";\n JobTopicNameEnum[\"INBOUND_PARSE_MAIL\"] = \"inbound-parse-mail\";\n JobTopicNameEnum[\"STANDARD\"] = \"standard\";\n JobTopicNameEnum[\"WEB_SOCKETS\"] = \"ws_socket_queue\";\n JobTopicNameEnum[\"WORKFLOW\"] = \"trigger-handler\";\n JobTopicNameEnum[\"PROCESS_SUBSCRIBER\"] = \"process-subscriber\";\n})(JobTopicNameEnum || (JobTopicNameEnum = {}));\nexport var ObservabilityBackgroundTransactionEnum;\n(function (ObservabilityBackgroundTransactionEnum) {\n ObservabilityBackgroundTransactionEnum[\"JOB_PROCESSING_QUEUE\"] = \"job-processing-queue\";\n ObservabilityBackgroundTransactionEnum[\"SUBSCRIBER_PROCESSING_QUEUE\"] = \"subscriber-processing-queue\";\n ObservabilityBackgroundTransactionEnum[\"TRIGGER_HANDLER_QUEUE\"] = \"trigger-handler-queue\";\n ObservabilityBackgroundTransactionEnum[\"EXECUTION_LOG_QUEUE\"] = \"execution-log-queue\";\n ObservabilityBackgroundTransactionEnum[\"WS_SOCKET_QUEUE\"] = \"ws_socket_queue\";\n ObservabilityBackgroundTransactionEnum[\"WS_SOCKET_SOCKET_CONNECTION\"] = \"ws_socket_handle_connection\";\n ObservabilityBackgroundTransactionEnum[\"WS_SOCKET_HANDLE_DISCONNECT\"] = \"ws_socket_handle_disconnect\";\n ObservabilityBackgroundTransactionEnum[\"CRON_JOB_QUEUE\"] = \"cron-job-queue\";\n})(ObservabilityBackgroundTransactionEnum || (ObservabilityBackgroundTransactionEnum = {}));\nexport var JobCronNameEnum;\n(function (JobCronNameEnum) {\n JobCronNameEnum[\"SEND_CRON_METRICS\"] = \"send-cron-metrics\";\n JobCronNameEnum[\"CREATE_BILLING_USAGE_RECORDS\"] = \"create-billing-usage-records\";\n})(JobCronNameEnum || (JobCronNameEnum = {}));\n","export function getRedisPrefix() {\n let redisPrefix = '';\n if (process.env.REDIS_PREFIX) {\n redisPrefix = process.env.REDIS_PREFIX;\n }\n return redisPrefix;\n}\n","'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nvar subscribable = require('./subscribable.js');\nvar utils = require('./utils.js');\n\nclass FocusManager extends subscribable.Subscribable {\n constructor() {\n super();\n\n this.setup = onFocus => {\n // addEventListener does not exist in React Native, but window does\n // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition\n if (!utils.isServer && window.addEventListener) {\n const listener = () => onFocus(); // Listen to visibillitychange and focus\n\n\n window.addEventListener('visibilitychange', listener, false);\n window.addEventListener('focus', listener, false);\n return () => {\n // Be sure to unsubscribe if a new handler is set\n window.removeEventListener('visibilitychange', listener);\n window.removeEventListener('focus', listener);\n };\n }\n\n return;\n };\n }\n\n onSubscribe() {\n if (!this.cleanup) {\n this.setEventListener(this.setup);\n }\n }\n\n onUnsubscribe() {\n if (!this.hasListeners()) {\n var _this$cleanup;\n\n (_this$cleanup = this.cleanup) == null ? void 0 : _this$cleanup.call(this);\n this.cleanup = undefined;\n }\n }\n\n setEventListener(setup) {\n var _this$cleanup2;\n\n this.setup = setup;\n (_this$cleanup2 = this.cleanup) == null ? void 0 : _this$cleanup2.call(this);\n this.cleanup = setup(focused => {\n if (typeof focused === 'boolean') {\n this.setFocused(focused);\n } else {\n this.onFocus();\n }\n });\n }\n\n setFocused(focused) {\n const changed = this.focused !== focused;\n\n if (changed) {\n this.focused = focused;\n this.onFocus();\n }\n }\n\n onFocus() {\n this.listeners.forEach(({\n listener\n }) => {\n listener();\n });\n }\n\n isFocused() {\n if (typeof this.focused === 'boolean') {\n return this.focused;\n } // document global can be unavailable in react native\n\n\n if (typeof document === 'undefined') {\n return true;\n }\n\n return [undefined, 'visible', 'prerender'].includes(document.visibilityState);\n }\n\n}\nconst focusManager = new FocusManager();\n\nexports.FocusManager = FocusManager;\nexports.focusManager = focusManager;\n//# sourceMappingURL=focusManager.js.map\n","'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\n// TYPES\n// FUNCTIONS\nfunction dehydrateMutation(mutation) {\n return {\n mutationKey: mutation.options.mutationKey,\n state: mutation.state\n };\n} // Most config is not dehydrated but instead meant to configure again when\n// consuming the de/rehydrated data, typically with useQuery on the client.\n// Sometimes it might make sense to prefetch data on the server and include\n// in the html-payload, but not consume it on the initial render.\n\n\nfunction dehydrateQuery(query) {\n return {\n state: query.state,\n queryKey: query.queryKey,\n queryHash: query.queryHash\n };\n}\n\nfunction defaultShouldDehydrateMutation(mutation) {\n return mutation.state.isPaused;\n}\nfunction defaultShouldDehydrateQuery(query) {\n return query.state.status === 'success';\n}\nfunction dehydrate(client, options = {}) {\n const mutations = [];\n const queries = [];\n\n if (options.dehydrateMutations !== false) {\n const shouldDehydrateMutation = options.shouldDehydrateMutation || defaultShouldDehydrateMutation;\n client.getMutationCache().getAll().forEach(mutation => {\n if (shouldDehydrateMutation(mutation)) {\n mutations.push(dehydrateMutation(mutation));\n }\n });\n }\n\n if (options.dehydrateQueries !== false) {\n const shouldDehydrateQuery = options.shouldDehydrateQuery || defaultShouldDehydrateQuery;\n client.getQueryCache().getAll().forEach(query => {\n if (shouldDehydrateQuery(query)) {\n queries.push(dehydrateQuery(query));\n }\n });\n }\n\n return {\n mutations,\n queries\n };\n}\nfunction hydrate(client, dehydratedState, options) {\n if (typeof dehydratedState !== 'object' || dehydratedState === null) {\n return;\n }\n\n const mutationCache = client.getMutationCache();\n const queryCache = client.getQueryCache(); // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition\n\n const mutations = dehydratedState.mutations || []; // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition\n\n const queries = dehydratedState.queries || [];\n mutations.forEach(dehydratedMutation => {\n var _options$defaultOptio;\n\n mutationCache.build(client, { ...(options == null ? void 0 : (_options$defaultOptio = options.defaultOptions) == null ? void 0 : _options$defaultOptio.mutations),\n mutationKey: dehydratedMutation.mutationKey\n }, dehydratedMutation.state);\n });\n queries.forEach(({\n queryKey,\n state,\n queryHash\n }) => {\n var _options$defaultOptio2;\n\n const query = queryCache.get(queryHash); // Do not hydrate if an existing query exists with newer data\n\n if (query) {\n if (query.state.dataUpdatedAt < state.dataUpdatedAt) {\n // omit fetchStatus from dehydrated state\n // so that query stays in its current fetchStatus\n const {\n fetchStatus: _ignored,\n ...dehydratedQueryState\n } = state;\n query.setState(dehydratedQueryState);\n }\n\n return;\n } // Restore query\n\n\n queryCache.build(client, { ...(options == null ? void 0 : (_options$defaultOptio2 = options.defaultOptions) == null ? void 0 : _options$defaultOptio2.queries),\n queryKey,\n queryHash\n }, // Reset fetch status to idle to avoid\n // query being stuck in fetching state upon hydration\n { ...state,\n fetchStatus: 'idle'\n });\n });\n}\n\nexports.defaultShouldDehydrateMutation = defaultShouldDehydrateMutation;\nexports.defaultShouldDehydrateQuery = defaultShouldDehydrateQuery;\nexports.dehydrate = dehydrate;\nexports.hydrate = hydrate;\n//# sourceMappingURL=hydration.js.map\n","'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nvar retryer = require('./retryer.js');\nvar queryCache = require('./queryCache.js');\nvar queryClient = require('./queryClient.js');\nvar queryObserver = require('./queryObserver.js');\nvar queriesObserver = require('./queriesObserver.js');\nvar infiniteQueryObserver = require('./infiniteQueryObserver.js');\nvar mutationCache = require('./mutationCache.js');\nvar mutationObserver = require('./mutationObserver.js');\nvar notifyManager = require('./notifyManager.js');\nvar focusManager = require('./focusManager.js');\nvar onlineManager = require('./onlineManager.js');\nvar utils = require('./utils.js');\nvar hydration = require('./hydration.js');\nvar query = require('./query.js');\n\n\n\nexports.CancelledError = retryer.CancelledError;\nexports.isCancelledError = retryer.isCancelledError;\nexports.QueryCache = queryCache.QueryCache;\nexports.QueryClient = queryClient.QueryClient;\nexports.QueryObserver = queryObserver.QueryObserver;\nexports.QueriesObserver = queriesObserver.QueriesObserver;\nexports.InfiniteQueryObserver = infiniteQueryObserver.InfiniteQueryObserver;\nexports.MutationCache = mutationCache.MutationCache;\nexports.MutationObserver = mutationObserver.MutationObserver;\nexports.notifyManager = notifyManager.notifyManager;\nexports.focusManager = focusManager.focusManager;\nexports.onlineManager = onlineManager.onlineManager;\nexports.hashQueryKey = utils.hashQueryKey;\nexports.isError = utils.isError;\nexports.isServer = utils.isServer;\nexports.matchQuery = utils.matchQuery;\nexports.parseFilterArgs = utils.parseFilterArgs;\nexports.parseMutationArgs = utils.parseMutationArgs;\nexports.parseMutationFilterArgs = utils.parseMutationFilterArgs;\nexports.parseQueryArgs = utils.parseQueryArgs;\nexports.replaceEqualDeep = utils.replaceEqualDeep;\nexports.defaultShouldDehydrateMutation = hydration.defaultShouldDehydrateMutation;\nexports.defaultShouldDehydrateQuery = hydration.defaultShouldDehydrateQuery;\nexports.dehydrate = hydration.dehydrate;\nexports.hydrate = hydration.hydrate;\nexports.Query = query.Query;\n//# sourceMappingURL=index.js.map\n","'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nfunction infiniteQueryBehavior() {\n return {\n onFetch: context => {\n context.fetchFn = () => {\n var _context$fetchOptions, _context$fetchOptions2, _context$fetchOptions3, _context$fetchOptions4, _context$state$data, _context$state$data2;\n\n const refetchPage = (_context$fetchOptions = context.fetchOptions) == null ? void 0 : (_context$fetchOptions2 = _context$fetchOptions.meta) == null ? void 0 : _context$fetchOptions2.refetchPage;\n const fetchMore = (_context$fetchOptions3 = context.fetchOptions) == null ? void 0 : (_context$fetchOptions4 = _context$fetchOptions3.meta) == null ? void 0 : _context$fetchOptions4.fetchMore;\n const pageParam = fetchMore == null ? void 0 : fetchMore.pageParam;\n const isFetchingNextPage = (fetchMore == null ? void 0 : fetchMore.direction) === 'forward';\n const isFetchingPreviousPage = (fetchMore == null ? void 0 : fetchMore.direction) === 'backward';\n const oldPages = ((_context$state$data = context.state.data) == null ? void 0 : _context$state$data.pages) || [];\n const oldPageParams = ((_context$state$data2 = context.state.data) == null ? void 0 : _context$state$data2.pageParams) || [];\n let newPageParams = oldPageParams;\n let cancelled = false;\n\n const addSignalProperty = object => {\n Object.defineProperty(object, 'signal', {\n enumerable: true,\n get: () => {\n var _context$signal;\n\n if ((_context$signal = context.signal) != null && _context$signal.aborted) {\n cancelled = true;\n } else {\n var _context$signal2;\n\n (_context$signal2 = context.signal) == null ? void 0 : _context$signal2.addEventListener('abort', () => {\n cancelled = true;\n });\n }\n\n return context.signal;\n }\n });\n }; // Get query function\n\n\n const queryFn = context.options.queryFn || (() => Promise.reject(\"Missing queryFn for queryKey '\" + context.options.queryHash + \"'\"));\n\n const buildNewPages = (pages, param, page, previous) => {\n newPageParams = previous ? [param, ...newPageParams] : [...newPageParams, param];\n return previous ? [page, ...pages] : [...pages, page];\n }; // Create function to fetch a page\n\n\n const fetchPage = (pages, manual, param, previous) => {\n if (cancelled) {\n return Promise.reject('Cancelled');\n }\n\n if (typeof param === 'undefined' && !manual && pages.length) {\n return Promise.resolve(pages);\n }\n\n const queryFnContext = {\n queryKey: context.queryKey,\n pageParam: param,\n meta: context.options.meta\n };\n addSignalProperty(queryFnContext);\n const queryFnResult = queryFn(queryFnContext);\n const promise = Promise.resolve(queryFnResult).then(page => buildNewPages(pages, param, page, previous));\n return promise;\n };\n\n let promise; // Fetch first page?\n\n if (!oldPages.length) {\n promise = fetchPage([]);\n } // Fetch next page?\n else if (isFetchingNextPage) {\n const manual = typeof pageParam !== 'undefined';\n const param = manual ? pageParam : getNextPageParam(context.options, oldPages);\n promise = fetchPage(oldPages, manual, param);\n } // Fetch previous page?\n else if (isFetchingPreviousPage) {\n const manual = typeof pageParam !== 'undefined';\n const param = manual ? pageParam : getPreviousPageParam(context.options, oldPages);\n promise = fetchPage(oldPages, manual, param, true);\n } // Refetch pages\n else {\n newPageParams = [];\n const manual = typeof context.options.getNextPageParam === 'undefined';\n const shouldFetchFirstPage = refetchPage && oldPages[0] ? refetchPage(oldPages[0], 0, oldPages) : true; // Fetch first page\n\n promise = shouldFetchFirstPage ? fetchPage([], manual, oldPageParams[0]) : Promise.resolve(buildNewPages([], oldPageParams[0], oldPages[0])); // Fetch remaining pages\n\n for (let i = 1; i < oldPages.length; i++) {\n promise = promise.then(pages => {\n const shouldFetchNextPage = refetchPage && oldPages[i] ? refetchPage(oldPages[i], i, oldPages) : true;\n\n if (shouldFetchNextPage) {\n const param = manual ? oldPageParams[i] : getNextPageParam(context.options, pages);\n return fetchPage(pages, manual, param);\n }\n\n return Promise.resolve(buildNewPages(pages, oldPageParams[i], oldPages[i]));\n });\n }\n }\n\n const finalPromise = promise.then(pages => ({\n pages,\n pageParams: newPageParams\n }));\n return finalPromise;\n };\n }\n };\n}\nfunction getNextPageParam(options, pages) {\n return options.getNextPageParam == null ? void 0 : options.getNextPageParam(pages[pages.length - 1], pages);\n}\nfunction getPreviousPageParam(options, pages) {\n return options.getPreviousPageParam == null ? void 0 : options.getPreviousPageParam(pages[0], pages);\n}\n/**\n * Checks if there is a next page.\n * Returns `undefined` if it cannot be determined.\n */\n\nfunction hasNextPage(options, pages) {\n if (options.getNextPageParam && Array.isArray(pages)) {\n const nextPageParam = getNextPageParam(options, pages);\n return typeof nextPageParam !== 'undefined' && nextPageParam !== null && nextPageParam !== false;\n }\n\n return;\n}\n/**\n * Checks if there is a previous page.\n * Returns `undefined` if it cannot be determined.\n */\n\nfunction hasPreviousPage(options, pages) {\n if (options.getPreviousPageParam && Array.isArray(pages)) {\n const previousPageParam = getPreviousPageParam(options, pages);\n return typeof previousPageParam !== 'undefined' && previousPageParam !== null && previousPageParam !== false;\n }\n\n return;\n}\n\nexports.getNextPageParam = getNextPageParam;\nexports.getPreviousPageParam = getPreviousPageParam;\nexports.hasNextPage = hasNextPage;\nexports.hasPreviousPage = hasPreviousPage;\nexports.infiniteQueryBehavior = infiniteQueryBehavior;\n//# sourceMappingURL=infiniteQueryBehavior.js.map\n","'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nvar queryObserver = require('./queryObserver.js');\nvar infiniteQueryBehavior = require('./infiniteQueryBehavior.js');\n\nclass InfiniteQueryObserver extends queryObserver.QueryObserver {\n // Type override\n // Type override\n // Type override\n // eslint-disable-next-line @typescript-eslint/no-useless-constructor\n constructor(client, options) {\n super(client, options);\n }\n\n bindMethods() {\n super.bindMethods();\n this.fetchNextPage = this.fetchNextPage.bind(this);\n this.fetchPreviousPage = this.fetchPreviousPage.bind(this);\n }\n\n setOptions(options, notifyOptions) {\n super.setOptions({ ...options,\n behavior: infiniteQueryBehavior.infiniteQueryBehavior()\n }, notifyOptions);\n }\n\n getOptimisticResult(options) {\n options.behavior = infiniteQueryBehavior.infiniteQueryBehavior();\n return super.getOptimisticResult(options);\n }\n\n fetchNextPage({\n pageParam,\n ...options\n } = {}) {\n return this.fetch({ ...options,\n meta: {\n fetchMore: {\n direction: 'forward',\n pageParam\n }\n }\n });\n }\n\n fetchPreviousPage({\n pageParam,\n ...options\n } = {}) {\n return this.fetch({ ...options,\n meta: {\n fetchMore: {\n direction: 'backward',\n pageParam\n }\n }\n });\n }\n\n createResult(query, options) {\n var _state$fetchMeta, _state$fetchMeta$fetc, _state$fetchMeta2, _state$fetchMeta2$fet, _state$data, _state$data2;\n\n const {\n state\n } = query;\n const result = super.createResult(query, options);\n const {\n isFetching,\n isRefetching\n } = result;\n const isFetchingNextPage = isFetching && ((_state$fetchMeta = state.fetchMeta) == null ? void 0 : (_state$fetchMeta$fetc = _state$fetchMeta.fetchMore) == null ? void 0 : _state$fetchMeta$fetc.direction) === 'forward';\n const isFetchingPreviousPage = isFetching && ((_state$fetchMeta2 = state.fetchMeta) == null ? void 0 : (_state$fetchMeta2$fet = _state$fetchMeta2.fetchMore) == null ? void 0 : _state$fetchMeta2$fet.direction) === 'backward';\n return { ...result,\n fetchNextPage: this.fetchNextPage,\n fetchPreviousPage: this.fetchPreviousPage,\n hasNextPage: infiniteQueryBehavior.hasNextPage(options, (_state$data = state.data) == null ? void 0 : _state$data.pages),\n hasPreviousPage: infiniteQueryBehavior.hasPreviousPage(options, (_state$data2 = state.data) == null ? void 0 : _state$data2.pages),\n isFetchingNextPage,\n isFetchingPreviousPage,\n isRefetching: isRefetching && !isFetchingNextPage && !isFetchingPreviousPage\n };\n }\n\n}\n\nexports.InfiniteQueryObserver = InfiniteQueryObserver;\n//# sourceMappingURL=infiniteQueryObserver.js.map\n","'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nvar logger = require('./logger');\nvar notifyManager = require('./notifyManager.js');\nvar removable = require('./removable.js');\nvar retryer = require('./retryer.js');\n\n// CLASS\nclass Mutation extends removable.Removable {\n constructor(config) {\n super();\n this.defaultOptions = config.defaultOptions;\n this.mutationId = config.mutationId;\n this.mutationCache = config.mutationCache;\n this.logger = config.logger || logger.defaultLogger;\n this.observers = [];\n this.state = config.state || getDefaultState();\n this.setOptions(config.options);\n this.scheduleGc();\n }\n\n setOptions(options) {\n this.options = { ...this.defaultOptions,\n ...options\n };\n this.updateCacheTime(this.options.cacheTime);\n }\n\n get meta() {\n return this.options.meta;\n }\n\n setState(state) {\n this.dispatch({\n type: 'setState',\n state\n });\n }\n\n addObserver(observer) {\n if (!this.observers.includes(observer)) {\n this.observers.push(observer); // Stop the mutation from being garbage collected\n\n this.clearGcTimeout();\n this.mutationCache.notify({\n type: 'observerAdded',\n mutation: this,\n observer\n });\n }\n }\n\n removeObserver(observer) {\n this.observers = this.observers.filter(x => x !== observer);\n this.scheduleGc();\n this.mutationCache.notify({\n type: 'observerRemoved',\n mutation: this,\n observer\n });\n }\n\n optionalRemove() {\n if (!this.observers.length) {\n if (this.state.status === 'loading') {\n this.scheduleGc();\n } else {\n this.mutationCache.remove(this);\n }\n }\n }\n\n continue() {\n var _this$retryer$continu, _this$retryer;\n\n return (_this$retryer$continu = (_this$retryer = this.retryer) == null ? void 0 : _this$retryer.continue()) != null ? _this$retryer$continu : this.execute();\n }\n\n async execute() {\n const executeMutation = () => {\n var _this$options$retry;\n\n this.retryer = retryer.createRetryer({\n fn: () => {\n if (!this.options.mutationFn) {\n return Promise.reject('No mutationFn found');\n }\n\n return this.options.mutationFn(this.state.variables);\n },\n onFail: (failureCount, error) => {\n this.dispatch({\n type: 'failed',\n failureCount,\n error\n });\n },\n onPause: () => {\n this.dispatch({\n type: 'pause'\n });\n },\n onContinue: () => {\n this.dispatch({\n type: 'continue'\n });\n },\n retry: (_this$options$retry = this.options.retry) != null ? _this$options$retry : 0,\n retryDelay: this.options.retryDelay,\n networkMode: this.options.networkMode\n });\n return this.retryer.promise;\n };\n\n const restored = this.state.status === 'loading';\n\n try {\n var _this$mutationCache$c3, _this$mutationCache$c4, _this$options$onSucce, _this$options2, _this$mutationCache$c5, _this$mutationCache$c6, _this$options$onSettl, _this$options3;\n\n if (!restored) {\n var _this$mutationCache$c, _this$mutationCache$c2, _this$options$onMutat, _this$options;\n\n this.dispatch({\n type: 'loading',\n variables: this.options.variables\n }); // Notify cache callback\n\n await ((_this$mutationCache$c = (_this$mutationCache$c2 = this.mutationCache.config).onMutate) == null ? void 0 : _this$mutationCache$c.call(_this$mutationCache$c2, this.state.variables, this));\n const context = await ((_this$options$onMutat = (_this$options = this.options).onMutate) == null ? void 0 : _this$options$onMutat.call(_this$options, this.state.variables));\n\n if (context !== this.state.context) {\n this.dispatch({\n type: 'loading',\n context,\n variables: this.state.variables\n });\n }\n }\n\n const data = await executeMutation(); // Notify cache callback\n\n await ((_this$mutationCache$c3 = (_this$mutationCache$c4 = this.mutationCache.config).onSuccess) == null ? void 0 : _this$mutationCache$c3.call(_this$mutationCache$c4, data, this.state.variables, this.state.context, this));\n await ((_this$options$onSucce = (_this$options2 = this.options).onSuccess) == null ? void 0 : _this$options$onSucce.call(_this$options2, data, this.state.variables, this.state.context)); // Notify cache callback\n\n await ((_this$mutationCache$c5 = (_this$mutationCache$c6 = this.mutationCache.config).onSettled) == null ? void 0 : _this$mutationCache$c5.call(_this$mutationCache$c6, data, null, this.state.variables, this.state.context, this));\n await ((_this$options$onSettl = (_this$options3 = this.options).onSettled) == null ? void 0 : _this$options$onSettl.call(_this$options3, data, null, this.state.variables, this.state.context));\n this.dispatch({\n type: 'success',\n data\n });\n return data;\n } catch (error) {\n try {\n var _this$mutationCache$c7, _this$mutationCache$c8, _this$options$onError, _this$options4, _this$mutationCache$c9, _this$mutationCache$c10, _this$options$onSettl2, _this$options5;\n\n // Notify cache callback\n await ((_this$mutationCache$c7 = (_this$mutationCache$c8 = this.mutationCache.config).onError) == null ? void 0 : _this$mutationCache$c7.call(_this$mutationCache$c8, error, this.state.variables, this.state.context, this));\n\n if (process.env.NODE_ENV !== 'production') {\n this.logger.error(error);\n }\n\n await ((_this$options$onError = (_this$options4 = this.options).onError) == null ? void 0 : _this$options$onError.call(_this$options4, error, this.state.variables, this.state.context)); // Notify cache callback\n\n await ((_this$mutationCache$c9 = (_this$mutationCache$c10 = this.mutationCache.config).onSettled) == null ? void 0 : _this$mutationCache$c9.call(_this$mutationCache$c10, undefined, error, this.state.variables, this.state.context, this));\n await ((_this$options$onSettl2 = (_this$options5 = this.options).onSettled) == null ? void 0 : _this$options$onSettl2.call(_this$options5, undefined, error, this.state.variables, this.state.context));\n throw error;\n } finally {\n this.dispatch({\n type: 'error',\n error: error\n });\n }\n }\n }\n\n dispatch(action) {\n const reducer = state => {\n switch (action.type) {\n case 'failed':\n return { ...state,\n failureCount: action.failureCount,\n failureReason: action.error\n };\n\n case 'pause':\n return { ...state,\n isPaused: true\n };\n\n case 'continue':\n return { ...state,\n isPaused: false\n };\n\n case 'loading':\n return { ...state,\n context: action.context,\n data: undefined,\n failureCount: 0,\n failureReason: null,\n error: null,\n isPaused: !retryer.canFetch(this.options.networkMode),\n status: 'loading',\n variables: action.variables\n };\n\n case 'success':\n return { ...state,\n data: action.data,\n failureCount: 0,\n failureReason: null,\n error: null,\n status: 'success',\n isPaused: false\n };\n\n case 'error':\n return { ...state,\n data: undefined,\n error: action.error,\n failureCount: state.failureCount + 1,\n failureReason: action.error,\n isPaused: false,\n status: 'error'\n };\n\n case 'setState':\n return { ...state,\n ...action.state\n };\n }\n };\n\n this.state = reducer(this.state);\n notifyManager.notifyManager.batch(() => {\n this.observers.forEach(observer => {\n observer.onMutationUpdate(action);\n });\n this.mutationCache.notify({\n mutation: this,\n type: 'updated',\n action\n });\n });\n }\n\n}\nfunction getDefaultState() {\n return {\n context: undefined,\n data: undefined,\n error: null,\n failureCount: 0,\n failureReason: null,\n isPaused: false,\n status: 'idle',\n variables: undefined\n };\n}\n\nexports.Mutation = Mutation;\nexports.getDefaultState = getDefaultState;\n//# sourceMappingURL=mutation.js.map\n","'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nvar notifyManager = require('./notifyManager.js');\nvar mutation = require('./mutation.js');\nvar utils = require('./utils.js');\nvar subscribable = require('./subscribable.js');\n\n// CLASS\nclass MutationCache extends subscribable.Subscribable {\n constructor(config) {\n super();\n this.config = config || {};\n this.mutations = [];\n this.mutationId = 0;\n }\n\n build(client, options, state) {\n const mutation$1 = new mutation.Mutation({\n mutationCache: this,\n logger: client.getLogger(),\n mutationId: ++this.mutationId,\n options: client.defaultMutationOptions(options),\n state,\n defaultOptions: options.mutationKey ? client.getMutationDefaults(options.mutationKey) : undefined\n });\n this.add(mutation$1);\n return mutation$1;\n }\n\n add(mutation) {\n this.mutations.push(mutation);\n this.notify({\n type: 'added',\n mutation\n });\n }\n\n remove(mutation) {\n this.mutations = this.mutations.filter(x => x !== mutation);\n this.notify({\n type: 'removed',\n mutation\n });\n }\n\n clear() {\n notifyManager.notifyManager.batch(() => {\n this.mutations.forEach(mutation => {\n this.remove(mutation);\n });\n });\n }\n\n getAll() {\n return this.mutations;\n }\n\n find(filters) {\n if (typeof filters.exact === 'undefined') {\n filters.exact = true;\n }\n\n return this.mutations.find(mutation => utils.matchMutation(filters, mutation));\n }\n\n findAll(filters) {\n return this.mutations.filter(mutation => utils.matchMutation(filters, mutation));\n }\n\n notify(event) {\n notifyManager.notifyManager.batch(() => {\n this.listeners.forEach(({\n listener\n }) => {\n listener(event);\n });\n });\n }\n\n resumePausedMutations() {\n var _this$resuming;\n\n this.resuming = ((_this$resuming = this.resuming) != null ? _this$resuming : Promise.resolve()).then(() => {\n const pausedMutations = this.mutations.filter(x => x.state.isPaused);\n return notifyManager.notifyManager.batch(() => pausedMutations.reduce((promise, mutation) => promise.then(() => mutation.continue().catch(utils.noop)), Promise.resolve()));\n }).then(() => {\n this.resuming = undefined;\n });\n return this.resuming;\n }\n\n}\n\nexports.MutationCache = MutationCache;\n//# sourceMappingURL=mutationCache.js.map\n","'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nvar mutation = require('./mutation.js');\nvar notifyManager = require('./notifyManager.js');\nvar subscribable = require('./subscribable.js');\nvar utils = require('./utils.js');\n\n// CLASS\nclass MutationObserver extends subscribable.Subscribable {\n constructor(client, options) {\n super();\n this.client = client;\n this.setOptions(options);\n this.bindMethods();\n this.updateResult();\n }\n\n bindMethods() {\n this.mutate = this.mutate.bind(this);\n this.reset = this.reset.bind(this);\n }\n\n setOptions(options) {\n var _this$currentMutation;\n\n const prevOptions = this.options;\n this.options = this.client.defaultMutationOptions(options);\n\n if (!utils.shallowEqualObjects(prevOptions, this.options)) {\n this.client.getMutationCache().notify({\n type: 'observerOptionsUpdated',\n mutation: this.currentMutation,\n observer: this\n });\n }\n\n (_this$currentMutation = this.currentMutation) == null ? void 0 : _this$currentMutation.setOptions(this.options);\n }\n\n onUnsubscribe() {\n if (!this.hasListeners()) {\n var _this$currentMutation2;\n\n (_this$currentMutation2 = this.currentMutation) == null ? void 0 : _this$currentMutation2.removeObserver(this);\n }\n }\n\n onMutationUpdate(action) {\n this.updateResult(); // Determine which callbacks to trigger\n\n const notifyOptions = {\n listeners: true\n };\n\n if (action.type === 'success') {\n notifyOptions.onSuccess = true;\n } else if (action.type === 'error') {\n notifyOptions.onError = true;\n }\n\n this.notify(notifyOptions);\n }\n\n getCurrentResult() {\n return this.currentResult;\n }\n\n reset() {\n this.currentMutation = undefined;\n this.updateResult();\n this.notify({\n listeners: true\n });\n }\n\n mutate(variables, options) {\n this.mutateOptions = options;\n\n if (this.currentMutation) {\n this.currentMutation.removeObserver(this);\n }\n\n this.currentMutation = this.client.getMutationCache().build(this.client, { ...this.options,\n variables: typeof variables !== 'undefined' ? variables : this.options.variables\n });\n this.currentMutation.addObserver(this);\n return this.currentMutation.execute();\n }\n\n updateResult() {\n const state = this.currentMutation ? this.currentMutation.state : mutation.getDefaultState();\n const result = { ...state,\n isLoading: state.status === 'loading',\n isSuccess: state.status === 'success',\n isError: state.status === 'error',\n isIdle: state.status === 'idle',\n mutate: this.mutate,\n reset: this.reset\n };\n this.currentResult = result;\n }\n\n notify(options) {\n notifyManager.notifyManager.batch(() => {\n // First trigger the mutate callbacks\n if (this.mutateOptions && this.hasListeners()) {\n if (options.onSuccess) {\n var _this$mutateOptions$o, _this$mutateOptions, _this$mutateOptions$o2, _this$mutateOptions2;\n\n (_this$mutateOptions$o = (_this$mutateOptions = this.mutateOptions).onSuccess) == null ? void 0 : _this$mutateOptions$o.call(_this$mutateOptions, this.currentResult.data, this.currentResult.variables, this.currentResult.context);\n (_this$mutateOptions$o2 = (_this$mutateOptions2 = this.mutateOptions).onSettled) == null ? void 0 : _this$mutateOptions$o2.call(_this$mutateOptions2, this.currentResult.data, null, this.currentResult.variables, this.currentResult.context);\n } else if (options.onError) {\n var _this$mutateOptions$o3, _this$mutateOptions3, _this$mutateOptions$o4, _this$mutateOptions4;\n\n (_this$mutateOptions$o3 = (_this$mutateOptions3 = this.mutateOptions).onError) == null ? void 0 : _this$mutateOptions$o3.call(_this$mutateOptions3, this.currentResult.error, this.currentResult.variables, this.currentResult.context);\n (_this$mutateOptions$o4 = (_this$mutateOptions4 = this.mutateOptions).onSettled) == null ? void 0 : _this$mutateOptions$o4.call(_this$mutateOptions4, undefined, this.currentResult.error, this.currentResult.variables, this.currentResult.context);\n }\n } // Then trigger the listeners\n\n\n if (options.listeners) {\n this.listeners.forEach(({\n listener\n }) => {\n listener(this.currentResult);\n });\n }\n });\n }\n\n}\n\nexports.MutationObserver = MutationObserver;\n//# sourceMappingURL=mutationObserver.js.map\n","'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nvar utils = require('./utils.js');\n\nfunction createNotifyManager() {\n let queue = [];\n let transactions = 0;\n\n let notifyFn = callback => {\n callback();\n };\n\n let batchNotifyFn = callback => {\n callback();\n };\n\n const batch = callback => {\n let result;\n transactions++;\n\n try {\n result = callback();\n } finally {\n transactions--;\n\n if (!transactions) {\n flush();\n }\n }\n\n return result;\n };\n\n const schedule = callback => {\n if (transactions) {\n queue.push(callback);\n } else {\n utils.scheduleMicrotask(() => {\n notifyFn(callback);\n });\n }\n };\n /**\n * All calls to the wrapped function will be batched.\n */\n\n\n const batchCalls = callback => {\n return (...args) => {\n schedule(() => {\n callback(...args);\n });\n };\n };\n\n const flush = () => {\n const originalQueue = queue;\n queue = [];\n\n if (originalQueue.length) {\n utils.scheduleMicrotask(() => {\n batchNotifyFn(() => {\n originalQueue.forEach(callback => {\n notifyFn(callback);\n });\n });\n });\n }\n };\n /**\n * Use this method to set a custom notify function.\n * This can be used to for example wrap notifications with `React.act` while running tests.\n */\n\n\n const setNotifyFunction = fn => {\n notifyFn = fn;\n };\n /**\n * Use this method to set a custom function to batch notifications together into a single tick.\n * By default React Query will use the batch function provided by ReactDOM or React Native.\n */\n\n\n const setBatchNotifyFunction = fn => {\n batchNotifyFn = fn;\n };\n\n return {\n batch,\n batchCalls,\n schedule,\n setNotifyFunction,\n setBatchNotifyFunction\n };\n} // SINGLETON\n\nconst notifyManager = createNotifyManager();\n\nexports.createNotifyManager = createNotifyManager;\nexports.notifyManager = notifyManager;\n//# sourceMappingURL=notifyManager.js.map\n","'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nvar subscribable = require('./subscribable.js');\nvar utils = require('./utils.js');\n\nconst onlineEvents = ['online', 'offline'];\nclass OnlineManager extends subscribable.Subscribable {\n constructor() {\n super();\n\n this.setup = onOnline => {\n // addEventListener does not exist in React Native, but window does\n // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition\n if (!utils.isServer && window.addEventListener) {\n const listener = () => onOnline(); // Listen to online\n\n\n onlineEvents.forEach(event => {\n window.addEventListener(event, listener, false);\n });\n return () => {\n // Be sure to unsubscribe if a new handler is set\n onlineEvents.forEach(event => {\n window.removeEventListener(event, listener);\n });\n };\n }\n\n return;\n };\n }\n\n onSubscribe() {\n if (!this.cleanup) {\n this.setEventListener(this.setup);\n }\n }\n\n onUnsubscribe() {\n if (!this.hasListeners()) {\n var _this$cleanup;\n\n (_this$cleanup = this.cleanup) == null ? void 0 : _this$cleanup.call(this);\n this.cleanup = undefined;\n }\n }\n\n setEventListener(setup) {\n var _this$cleanup2;\n\n this.setup = setup;\n (_this$cleanup2 = this.cleanup) == null ? void 0 : _this$cleanup2.call(this);\n this.cleanup = setup(online => {\n if (typeof online === 'boolean') {\n this.setOnline(online);\n } else {\n this.onOnline();\n }\n });\n }\n\n setOnline(online) {\n const changed = this.online !== online;\n\n if (changed) {\n this.online = online;\n this.onOnline();\n }\n }\n\n onOnline() {\n this.listeners.forEach(({\n listener\n }) => {\n listener();\n });\n }\n\n isOnline() {\n if (typeof this.online === 'boolean') {\n return this.online;\n }\n\n if (typeof navigator === 'undefined' || typeof navigator.onLine === 'undefined') {\n return true;\n }\n\n return navigator.onLine;\n }\n\n}\nconst onlineManager = new OnlineManager();\n\nexports.OnlineManager = OnlineManager;\nexports.onlineManager = onlineManager;\n//# sourceMappingURL=onlineManager.js.map\n","'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nvar utils = require('./utils.js');\nvar notifyManager = require('./notifyManager.js');\nvar queryObserver = require('./queryObserver.js');\nvar subscribable = require('./subscribable.js');\n\nclass QueriesObserver extends subscribable.Subscribable {\n constructor(client, queries) {\n super();\n this.client = client;\n this.queries = [];\n this.result = [];\n this.observers = [];\n this.observersMap = {};\n\n if (queries) {\n this.setQueries(queries);\n }\n }\n\n onSubscribe() {\n if (this.listeners.size === 1) {\n this.observers.forEach(observer => {\n observer.subscribe(result => {\n this.onUpdate(observer, result);\n });\n });\n }\n }\n\n onUnsubscribe() {\n if (!this.listeners.size) {\n this.destroy();\n }\n }\n\n destroy() {\n this.listeners = new Set();\n this.observers.forEach(observer => {\n observer.destroy();\n });\n }\n\n setQueries(queries, notifyOptions) {\n this.queries = queries;\n notifyManager.notifyManager.batch(() => {\n const prevObservers = this.observers;\n const newObserverMatches = this.findMatchingObservers(this.queries); // set options for the new observers to notify of changes\n\n newObserverMatches.forEach(match => match.observer.setOptions(match.defaultedQueryOptions, notifyOptions));\n const newObservers = newObserverMatches.map(match => match.observer);\n const newObserversMap = Object.fromEntries(newObservers.map(observer => [observer.options.queryHash, observer]));\n const newResult = newObservers.map(observer => observer.getCurrentResult());\n const hasIndexChange = newObservers.some((observer, index) => observer !== prevObservers[index]);\n\n if (prevObservers.length === newObservers.length && !hasIndexChange) {\n return;\n }\n\n this.observers = newObservers;\n this.observersMap = newObserversMap;\n this.result = newResult;\n\n if (!this.hasListeners()) {\n return;\n }\n\n utils.difference(prevObservers, newObservers).forEach(observer => {\n observer.destroy();\n });\n utils.difference(newObservers, prevObservers).forEach(observer => {\n observer.subscribe(result => {\n this.onUpdate(observer, result);\n });\n });\n this.notify();\n });\n }\n\n getCurrentResult() {\n return this.result;\n }\n\n getQueries() {\n return this.observers.map(observer => observer.getCurrentQuery());\n }\n\n getObservers() {\n return this.observers;\n }\n\n getOptimisticResult(queries) {\n return this.findMatchingObservers(queries).map(match => match.observer.getOptimisticResult(match.defaultedQueryOptions));\n }\n\n findMatchingObservers(queries) {\n const prevObservers = this.observers;\n const prevObserversMap = new Map(prevObservers.map(observer => [observer.options.queryHash, observer]));\n const defaultedQueryOptions = queries.map(options => this.client.defaultQueryOptions(options));\n const matchingObservers = defaultedQueryOptions.flatMap(defaultedOptions => {\n const match = prevObserversMap.get(defaultedOptions.queryHash);\n\n if (match != null) {\n return [{\n defaultedQueryOptions: defaultedOptions,\n observer: match\n }];\n }\n\n return [];\n });\n const matchedQueryHashes = new Set(matchingObservers.map(match => match.defaultedQueryOptions.queryHash));\n const unmatchedQueries = defaultedQueryOptions.filter(defaultedOptions => !matchedQueryHashes.has(defaultedOptions.queryHash));\n const matchingObserversSet = new Set(matchingObservers.map(match => match.observer));\n const unmatchedObservers = prevObservers.filter(prevObserver => !matchingObserversSet.has(prevObserver));\n\n const getObserver = options => {\n const defaultedOptions = this.client.defaultQueryOptions(options);\n const currentObserver = this.observersMap[defaultedOptions.queryHash];\n return currentObserver != null ? currentObserver : new queryObserver.QueryObserver(this.client, defaultedOptions);\n };\n\n const newOrReusedObservers = unmatchedQueries.map((options, index) => {\n if (options.keepPreviousData) {\n // return previous data from one of the observers that no longer match\n const previouslyUsedObserver = unmatchedObservers[index];\n\n if (previouslyUsedObserver !== undefined) {\n return {\n defaultedQueryOptions: options,\n observer: previouslyUsedObserver\n };\n }\n }\n\n return {\n defaultedQueryOptions: options,\n observer: getObserver(options)\n };\n });\n\n const sortMatchesByOrderOfQueries = (a, b) => defaultedQueryOptions.indexOf(a.defaultedQueryOptions) - defaultedQueryOptions.indexOf(b.defaultedQueryOptions);\n\n return matchingObservers.concat(newOrReusedObservers).sort(sortMatchesByOrderOfQueries);\n }\n\n onUpdate(observer, result) {\n const index = this.observers.indexOf(observer);\n\n if (index !== -1) {\n this.result = utils.replaceAt(this.result, index, result);\n this.notify();\n }\n }\n\n notify() {\n notifyManager.notifyManager.batch(() => {\n this.listeners.forEach(({\n listener\n }) => {\n listener(this.result);\n });\n });\n }\n\n}\n\nexports.QueriesObserver = QueriesObserver;\n//# sourceMappingURL=queriesObserver.js.map\n","'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nvar utils = require('./utils.js');\nvar logger = require('./logger');\nvar notifyManager = require('./notifyManager.js');\nvar retryer = require('./retryer.js');\nvar removable = require('./removable.js');\n\n// CLASS\nclass Query extends removable.Removable {\n constructor(config) {\n super();\n this.abortSignalConsumed = false;\n this.defaultOptions = config.defaultOptions;\n this.setOptions(config.options);\n this.observers = [];\n this.cache = config.cache;\n this.logger = config.logger || logger.defaultLogger;\n this.queryKey = config.queryKey;\n this.queryHash = config.queryHash;\n this.initialState = config.state || getDefaultState(this.options);\n this.state = this.initialState;\n this.scheduleGc();\n }\n\n get meta() {\n return this.options.meta;\n }\n\n setOptions(options) {\n this.options = { ...this.defaultOptions,\n ...options\n };\n this.updateCacheTime(this.options.cacheTime);\n }\n\n optionalRemove() {\n if (!this.observers.length && this.state.fetchStatus === 'idle') {\n this.cache.remove(this);\n }\n }\n\n setData(newData, options) {\n const data = utils.replaceData(this.state.data, newData, this.options); // Set data and mark it as cached\n\n this.dispatch({\n data,\n type: 'success',\n dataUpdatedAt: options == null ? void 0 : options.updatedAt,\n manual: options == null ? void 0 : options.manual\n });\n return data;\n }\n\n setState(state, setStateOptions) {\n this.dispatch({\n type: 'setState',\n state,\n setStateOptions\n });\n }\n\n cancel(options) {\n var _this$retryer;\n\n const promise = this.promise;\n (_this$retryer = this.retryer) == null ? void 0 : _this$retryer.cancel(options);\n return promise ? promise.then(utils.noop).catch(utils.noop) : Promise.resolve();\n }\n\n destroy() {\n super.destroy();\n this.cancel({\n silent: true\n });\n }\n\n reset() {\n this.destroy();\n this.setState(this.initialState);\n }\n\n isActive() {\n return this.observers.some(observer => observer.options.enabled !== false);\n }\n\n isDisabled() {\n return this.getObserversCount() > 0 && !this.isActive();\n }\n\n isStale() {\n return this.state.isInvalidated || !this.state.dataUpdatedAt || this.observers.some(observer => observer.getCurrentResult().isStale);\n }\n\n isStaleByTime(staleTime = 0) {\n return this.state.isInvalidated || !this.state.dataUpdatedAt || !utils.timeUntilStale(this.state.dataUpdatedAt, staleTime);\n }\n\n onFocus() {\n var _this$retryer2;\n\n const observer = this.observers.find(x => x.shouldFetchOnWindowFocus());\n\n if (observer) {\n observer.refetch({\n cancelRefetch: false\n });\n } // Continue fetch if currently paused\n\n\n (_this$retryer2 = this.retryer) == null ? void 0 : _this$retryer2.continue();\n }\n\n onOnline() {\n var _this$retryer3;\n\n const observer = this.observers.find(x => x.shouldFetchOnReconnect());\n\n if (observer) {\n observer.refetch({\n cancelRefetch: false\n });\n } // Continue fetch if currently paused\n\n\n (_this$retryer3 = this.retryer) == null ? void 0 : _this$retryer3.continue();\n }\n\n addObserver(observer) {\n if (!this.observers.includes(observer)) {\n this.observers.push(observer); // Stop the query from being garbage collected\n\n this.clearGcTimeout();\n this.cache.notify({\n type: 'observerAdded',\n query: this,\n observer\n });\n }\n }\n\n removeObserver(observer) {\n if (this.observers.includes(observer)) {\n this.observers = this.observers.filter(x => x !== observer);\n\n if (!this.observers.length) {\n // If the transport layer does not support cancellation\n // we'll let the query continue so the result can be cached\n if (this.retryer) {\n if (this.abortSignalConsumed) {\n this.retryer.cancel({\n revert: true\n });\n } else {\n this.retryer.cancelRetry();\n }\n }\n\n this.scheduleGc();\n }\n\n this.cache.notify({\n type: 'observerRemoved',\n query: this,\n observer\n });\n }\n }\n\n getObserversCount() {\n return this.observers.length;\n }\n\n invalidate() {\n if (!this.state.isInvalidated) {\n this.dispatch({\n type: 'invalidate'\n });\n }\n }\n\n fetch(options, fetchOptions) {\n var _this$options$behavio, _context$fetchOptions;\n\n if (this.state.fetchStatus !== 'idle') {\n if (this.state.dataUpdatedAt && fetchOptions != null && fetchOptions.cancelRefetch) {\n // Silently cancel current fetch if the user wants to cancel refetches\n this.cancel({\n silent: true\n });\n } else if (this.promise) {\n var _this$retryer4;\n\n // make sure that retries that were potentially cancelled due to unmounts can continue\n (_this$retryer4 = this.retryer) == null ? void 0 : _this$retryer4.continueRetry(); // Return current promise if we are already fetching\n\n return this.promise;\n }\n } // Update config if passed, otherwise the config from the last execution is used\n\n\n if (options) {\n this.setOptions(options);\n } // Use the options from the first observer with a query function if no function is found.\n // This can happen when the query is hydrated or created with setQueryData.\n\n\n if (!this.options.queryFn) {\n const observer = this.observers.find(x => x.options.queryFn);\n\n if (observer) {\n this.setOptions(observer.options);\n }\n }\n\n if (process.env.NODE_ENV !== 'production') {\n if (!Array.isArray(this.options.queryKey)) {\n this.logger.error(\"As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']\");\n }\n }\n\n const abortController = utils.getAbortController(); // Create query function context\n\n const queryFnContext = {\n queryKey: this.queryKey,\n pageParam: undefined,\n meta: this.meta\n }; // Adds an enumerable signal property to the object that\n // which sets abortSignalConsumed to true when the signal\n // is read.\n\n const addSignalProperty = object => {\n Object.defineProperty(object, 'signal', {\n enumerable: true,\n get: () => {\n if (abortController) {\n this.abortSignalConsumed = true;\n return abortController.signal;\n }\n\n return undefined;\n }\n });\n };\n\n addSignalProperty(queryFnContext); // Create fetch function\n\n const fetchFn = () => {\n if (!this.options.queryFn) {\n return Promise.reject(\"Missing queryFn for queryKey '\" + this.options.queryHash + \"'\");\n }\n\n this.abortSignalConsumed = false;\n return this.options.queryFn(queryFnContext);\n }; // Trigger behavior hook\n\n\n const context = {\n fetchOptions,\n options: this.options,\n queryKey: this.queryKey,\n state: this.state,\n fetchFn\n };\n addSignalProperty(context);\n (_this$options$behavio = this.options.behavior) == null ? void 0 : _this$options$behavio.onFetch(context); // Store state in case the current fetch needs to be reverted\n\n this.revertState = this.state; // Set to fetching state if not already in it\n\n if (this.state.fetchStatus === 'idle' || this.state.fetchMeta !== ((_context$fetchOptions = context.fetchOptions) == null ? void 0 : _context$fetchOptions.meta)) {\n var _context$fetchOptions2;\n\n this.dispatch({\n type: 'fetch',\n meta: (_context$fetchOptions2 = context.fetchOptions) == null ? void 0 : _context$fetchOptions2.meta\n });\n }\n\n const onError = error => {\n // Optimistically update state if needed\n if (!(retryer.isCancelledError(error) && error.silent)) {\n this.dispatch({\n type: 'error',\n error: error\n });\n }\n\n if (!retryer.isCancelledError(error)) {\n var _this$cache$config$on, _this$cache$config, _this$cache$config$on2, _this$cache$config2;\n\n // Notify cache callback\n (_this$cache$config$on = (_this$cache$config = this.cache.config).onError) == null ? void 0 : _this$cache$config$on.call(_this$cache$config, error, this);\n (_this$cache$config$on2 = (_this$cache$config2 = this.cache.config).onSettled) == null ? void 0 : _this$cache$config$on2.call(_this$cache$config2, this.state.data, error, this);\n\n if (process.env.NODE_ENV !== 'production') {\n this.logger.error(error);\n }\n }\n\n if (!this.isFetchingOptimistic) {\n // Schedule query gc after fetching\n this.scheduleGc();\n }\n\n this.isFetchingOptimistic = false;\n }; // Try to fetch the data\n\n\n this.retryer = retryer.createRetryer({\n fn: context.fetchFn,\n abort: abortController == null ? void 0 : abortController.abort.bind(abortController),\n onSuccess: data => {\n var _this$cache$config$on3, _this$cache$config3, _this$cache$config$on4, _this$cache$config4;\n\n if (typeof data === 'undefined') {\n if (process.env.NODE_ENV !== 'production') {\n this.logger.error(\"Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: \" + this.queryHash);\n }\n\n onError(new Error(this.queryHash + \" data is undefined\"));\n return;\n }\n\n this.setData(data); // Notify cache callback\n\n (_this$cache$config$on3 = (_this$cache$config3 = this.cache.config).onSuccess) == null ? void 0 : _this$cache$config$on3.call(_this$cache$config3, data, this);\n (_this$cache$config$on4 = (_this$cache$config4 = this.cache.config).onSettled) == null ? void 0 : _this$cache$config$on4.call(_this$cache$config4, data, this.state.error, this);\n\n if (!this.isFetchingOptimistic) {\n // Schedule query gc after fetching\n this.scheduleGc();\n }\n\n this.isFetchingOptimistic = false;\n },\n onError,\n onFail: (failureCount, error) => {\n this.dispatch({\n type: 'failed',\n failureCount,\n error\n });\n },\n onPause: () => {\n this.dispatch({\n type: 'pause'\n });\n },\n onContinue: () => {\n this.dispatch({\n type: 'continue'\n });\n },\n retry: context.options.retry,\n retryDelay: context.options.retryDelay,\n networkMode: context.options.networkMode\n });\n this.promise = this.retryer.promise;\n return this.promise;\n }\n\n dispatch(action) {\n const reducer = state => {\n var _action$meta, _action$dataUpdatedAt;\n\n switch (action.type) {\n case 'failed':\n return { ...state,\n fetchFailureCount: action.failureCount,\n fetchFailureReason: action.error\n };\n\n case 'pause':\n return { ...state,\n fetchStatus: 'paused'\n };\n\n case 'continue':\n return { ...state,\n fetchStatus: 'fetching'\n };\n\n case 'fetch':\n return { ...state,\n fetchFailureCount: 0,\n fetchFailureReason: null,\n fetchMeta: (_action$meta = action.meta) != null ? _action$meta : null,\n fetchStatus: retryer.canFetch(this.options.networkMode) ? 'fetching' : 'paused',\n ...(!state.dataUpdatedAt && {\n error: null,\n status: 'loading'\n })\n };\n\n case 'success':\n return { ...state,\n data: action.data,\n dataUpdateCount: state.dataUpdateCount + 1,\n dataUpdatedAt: (_action$dataUpdatedAt = action.dataUpdatedAt) != null ? _action$dataUpdatedAt : Date.now(),\n error: null,\n isInvalidated: false,\n status: 'success',\n ...(!action.manual && {\n fetchStatus: 'idle',\n fetchFailureCount: 0,\n fetchFailureReason: null\n })\n };\n\n case 'error':\n const error = action.error;\n\n if (retryer.isCancelledError(error) && error.revert && this.revertState) {\n return { ...this.revertState,\n fetchStatus: 'idle'\n };\n }\n\n return { ...state,\n error: error,\n errorUpdateCount: state.errorUpdateCount + 1,\n errorUpdatedAt: Date.now(),\n fetchFailureCount: state.fetchFailureCount + 1,\n fetchFailureReason: error,\n fetchStatus: 'idle',\n status: 'error'\n };\n\n case 'invalidate':\n return { ...state,\n isInvalidated: true\n };\n\n case 'setState':\n return { ...state,\n ...action.state\n };\n }\n };\n\n this.state = reducer(this.state);\n notifyManager.notifyManager.batch(() => {\n this.observers.forEach(observer => {\n observer.onQueryUpdate(action);\n });\n this.cache.notify({\n query: this,\n type: 'updated',\n action\n });\n });\n }\n\n}\n\nfunction getDefaultState(options) {\n const data = typeof options.initialData === 'function' ? options.initialData() : options.initialData;\n const hasData = typeof data !== 'undefined';\n const initialDataUpdatedAt = hasData ? typeof options.initialDataUpdatedAt === 'function' ? options.initialDataUpdatedAt() : options.initialDataUpdatedAt : 0;\n return {\n data,\n dataUpdateCount: 0,\n dataUpdatedAt: hasData ? initialDataUpdatedAt != null ? initialDataUpdatedAt : Date.now() : 0,\n error: null,\n errorUpdateCount: 0,\n errorUpdatedAt: 0,\n fetchFailureCount: 0,\n fetchFailureReason: null,\n fetchMeta: null,\n isInvalidated: false,\n status: hasData ? 'success' : 'loading',\n fetchStatus: 'idle'\n };\n}\n\nexports.Query = Query;\n//# sourceMappingURL=query.js.map\n","'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nvar utils = require('./utils.js');\nvar query = require('./query.js');\nvar notifyManager = require('./notifyManager.js');\nvar subscribable = require('./subscribable.js');\n\n// CLASS\nclass QueryCache extends subscribable.Subscribable {\n constructor(config) {\n super();\n this.config = config || {};\n this.queries = [];\n this.queriesMap = {};\n }\n\n build(client, options, state) {\n var _options$queryHash;\n\n const queryKey = options.queryKey;\n const queryHash = (_options$queryHash = options.queryHash) != null ? _options$queryHash : utils.hashQueryKeyByOptions(queryKey, options);\n let query$1 = this.get(queryHash);\n\n if (!query$1) {\n query$1 = new query.Query({\n cache: this,\n logger: client.getLogger(),\n queryKey,\n queryHash,\n options: client.defaultQueryOptions(options),\n state,\n defaultOptions: client.getQueryDefaults(queryKey)\n });\n this.add(query$1);\n }\n\n return query$1;\n }\n\n add(query) {\n if (!this.queriesMap[query.queryHash]) {\n this.queriesMap[query.queryHash] = query;\n this.queries.push(query);\n this.notify({\n type: 'added',\n query\n });\n }\n }\n\n remove(query) {\n const queryInMap = this.queriesMap[query.queryHash];\n\n if (queryInMap) {\n query.destroy();\n this.queries = this.queries.filter(x => x !== query);\n\n if (queryInMap === query) {\n delete this.queriesMap[query.queryHash];\n }\n\n this.notify({\n type: 'removed',\n query\n });\n }\n }\n\n clear() {\n notifyManager.notifyManager.batch(() => {\n this.queries.forEach(query => {\n this.remove(query);\n });\n });\n }\n\n get(queryHash) {\n return this.queriesMap[queryHash];\n }\n\n getAll() {\n return this.queries;\n }\n\n find(arg1, arg2) {\n const [filters] = utils.parseFilterArgs(arg1, arg2);\n\n if (typeof filters.exact === 'undefined') {\n filters.exact = true;\n }\n\n return this.queries.find(query => utils.matchQuery(filters, query));\n }\n\n findAll(arg1, arg2) {\n const [filters] = utils.parseFilterArgs(arg1, arg2);\n return Object.keys(filters).length > 0 ? this.queries.filter(query => utils.matchQuery(filters, query)) : this.queries;\n }\n\n notify(event) {\n notifyManager.notifyManager.batch(() => {\n this.listeners.forEach(({\n listener\n }) => {\n listener(event);\n });\n });\n }\n\n onFocus() {\n notifyManager.notifyManager.batch(() => {\n this.queries.forEach(query => {\n query.onFocus();\n });\n });\n }\n\n onOnline() {\n notifyManager.notifyManager.batch(() => {\n this.queries.forEach(query => {\n query.onOnline();\n });\n });\n }\n\n}\n\nexports.QueryCache = QueryCache;\n//# sourceMappingURL=queryCache.js.map\n","'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nvar utils = require('./utils.js');\nvar queryCache = require('./queryCache.js');\nvar mutationCache = require('./mutationCache.js');\nvar focusManager = require('./focusManager.js');\nvar onlineManager = require('./onlineManager.js');\nvar notifyManager = require('./notifyManager.js');\nvar infiniteQueryBehavior = require('./infiniteQueryBehavior.js');\nvar logger = require('./logger');\n\n// CLASS\nclass QueryClient {\n constructor(config = {}) {\n this.queryCache = config.queryCache || new queryCache.QueryCache();\n this.mutationCache = config.mutationCache || new mutationCache.MutationCache();\n this.logger = config.logger || logger.defaultLogger;\n this.defaultOptions = config.defaultOptions || {};\n this.queryDefaults = [];\n this.mutationDefaults = [];\n this.mountCount = 0;\n\n if (process.env.NODE_ENV !== 'production' && config.logger) {\n this.logger.error(\"Passing a custom logger has been deprecated and will be removed in the next major version.\");\n }\n }\n\n mount() {\n this.mountCount++;\n if (this.mountCount !== 1) return;\n this.unsubscribeFocus = focusManager.focusManager.subscribe(() => {\n if (focusManager.focusManager.isFocused()) {\n this.resumePausedMutations();\n this.queryCache.onFocus();\n }\n });\n this.unsubscribeOnline = onlineManager.onlineManager.subscribe(() => {\n if (onlineManager.onlineManager.isOnline()) {\n this.resumePausedMutations();\n this.queryCache.onOnline();\n }\n });\n }\n\n unmount() {\n var _this$unsubscribeFocu, _this$unsubscribeOnli;\n\n this.mountCount--;\n if (this.mountCount !== 0) return;\n (_this$unsubscribeFocu = this.unsubscribeFocus) == null ? void 0 : _this$unsubscribeFocu.call(this);\n this.unsubscribeFocus = undefined;\n (_this$unsubscribeOnli = this.unsubscribeOnline) == null ? void 0 : _this$unsubscribeOnli.call(this);\n this.unsubscribeOnline = undefined;\n }\n\n isFetching(arg1, arg2) {\n const [filters] = utils.parseFilterArgs(arg1, arg2);\n filters.fetchStatus = 'fetching';\n return this.queryCache.findAll(filters).length;\n }\n\n isMutating(filters) {\n return this.mutationCache.findAll({ ...filters,\n fetching: true\n }).length;\n }\n\n getQueryData(queryKey, filters) {\n var _this$queryCache$find;\n\n return (_this$queryCache$find = this.queryCache.find(queryKey, filters)) == null ? void 0 : _this$queryCache$find.state.data;\n }\n\n ensureQueryData(arg1, arg2, arg3) {\n const parsedOptions = utils.parseQueryArgs(arg1, arg2, arg3);\n const cachedData = this.getQueryData(parsedOptions.queryKey);\n return cachedData ? Promise.resolve(cachedData) : this.fetchQuery(parsedOptions);\n }\n\n getQueriesData(queryKeyOrFilters) {\n return this.getQueryCache().findAll(queryKeyOrFilters).map(({\n queryKey,\n state\n }) => {\n const data = state.data;\n return [queryKey, data];\n });\n }\n\n setQueryData(queryKey, updater, options) {\n const query = this.queryCache.find(queryKey);\n const prevData = query == null ? void 0 : query.state.data;\n const data = utils.functionalUpdate(updater, prevData);\n\n if (typeof data === 'undefined') {\n return undefined;\n }\n\n const parsedOptions = utils.parseQueryArgs(queryKey);\n const defaultedOptions = this.defaultQueryOptions(parsedOptions);\n return this.queryCache.build(this, defaultedOptions).setData(data, { ...options,\n manual: true\n });\n }\n\n setQueriesData(queryKeyOrFilters, updater, options) {\n return notifyManager.notifyManager.batch(() => this.getQueryCache().findAll(queryKeyOrFilters).map(({\n queryKey\n }) => [queryKey, this.setQueryData(queryKey, updater, options)]));\n }\n\n getQueryState(queryKey, filters) {\n var _this$queryCache$find2;\n\n return (_this$queryCache$find2 = this.queryCache.find(queryKey, filters)) == null ? void 0 : _this$queryCache$find2.state;\n }\n\n removeQueries(arg1, arg2) {\n const [filters] = utils.parseFilterArgs(arg1, arg2);\n const queryCache = this.queryCache;\n notifyManager.notifyManager.batch(() => {\n queryCache.findAll(filters).forEach(query => {\n queryCache.remove(query);\n });\n });\n }\n\n resetQueries(arg1, arg2, arg3) {\n const [filters, options] = utils.parseFilterArgs(arg1, arg2, arg3);\n const queryCache = this.queryCache;\n const refetchFilters = {\n type: 'active',\n ...filters\n };\n return notifyManager.notifyManager.batch(() => {\n queryCache.findAll(filters).forEach(query => {\n query.reset();\n });\n return this.refetchQueries(refetchFilters, options);\n });\n }\n\n cancelQueries(arg1, arg2, arg3) {\n const [filters, cancelOptions = {}] = utils.parseFilterArgs(arg1, arg2, arg3);\n\n if (typeof cancelOptions.revert === 'undefined') {\n cancelOptions.revert = true;\n }\n\n const promises = notifyManager.notifyManager.batch(() => this.queryCache.findAll(filters).map(query => query.cancel(cancelOptions)));\n return Promise.all(promises).then(utils.noop).catch(utils.noop);\n }\n\n invalidateQueries(arg1, arg2, arg3) {\n const [filters, options] = utils.parseFilterArgs(arg1, arg2, arg3);\n return notifyManager.notifyManager.batch(() => {\n var _ref, _filters$refetchType;\n\n this.queryCache.findAll(filters).forEach(query => {\n query.invalidate();\n });\n\n if (filters.refetchType === 'none') {\n return Promise.resolve();\n }\n\n const refetchFilters = { ...filters,\n type: (_ref = (_filters$refetchType = filters.refetchType) != null ? _filters$refetchType : filters.type) != null ? _ref : 'active'\n };\n return this.refetchQueries(refetchFilters, options);\n });\n }\n\n refetchQueries(arg1, arg2, arg3) {\n const [filters, options] = utils.parseFilterArgs(arg1, arg2, arg3);\n const promises = notifyManager.notifyManager.batch(() => this.queryCache.findAll(filters).filter(query => !query.isDisabled()).map(query => {\n var _options$cancelRefetc;\n\n return query.fetch(undefined, { ...options,\n cancelRefetch: (_options$cancelRefetc = options == null ? void 0 : options.cancelRefetch) != null ? _options$cancelRefetc : true,\n meta: {\n refetchPage: filters.refetchPage\n }\n });\n }));\n let promise = Promise.all(promises).then(utils.noop);\n\n if (!(options != null && options.throwOnError)) {\n promise = promise.catch(utils.noop);\n }\n\n return promise;\n }\n\n fetchQuery(arg1, arg2, arg3) {\n const parsedOptions = utils.parseQueryArgs(arg1, arg2, arg3);\n const defaultedOptions = this.defaultQueryOptions(parsedOptions); // https://github.com/tannerlinsley/react-query/issues/652\n\n if (typeof defaultedOptions.retry === 'undefined') {\n defaultedOptions.retry = false;\n }\n\n const query = this.queryCache.build(this, defaultedOptions);\n return query.isStaleByTime(defaultedOptions.staleTime) ? query.fetch(defaultedOptions) : Promise.resolve(query.state.data);\n }\n\n prefetchQuery(arg1, arg2, arg3) {\n return this.fetchQuery(arg1, arg2, arg3).then(utils.noop).catch(utils.noop);\n }\n\n fetchInfiniteQuery(arg1, arg2, arg3) {\n const parsedOptions = utils.parseQueryArgs(arg1, arg2, arg3);\n parsedOptions.behavior = infiniteQueryBehavior.infiniteQueryBehavior();\n return this.fetchQuery(parsedOptions);\n }\n\n prefetchInfiniteQuery(arg1, arg2, arg3) {\n return this.fetchInfiniteQuery(arg1, arg2, arg3).then(utils.noop).catch(utils.noop);\n }\n\n resumePausedMutations() {\n return this.mutationCache.resumePausedMutations();\n }\n\n getQueryCache() {\n return this.queryCache;\n }\n\n getMutationCache() {\n return this.mutationCache;\n }\n\n getLogger() {\n return this.logger;\n }\n\n getDefaultOptions() {\n return this.defaultOptions;\n }\n\n setDefaultOptions(options) {\n this.defaultOptions = options;\n }\n\n setQueryDefaults(queryKey, options) {\n const result = this.queryDefaults.find(x => utils.hashQueryKey(queryKey) === utils.hashQueryKey(x.queryKey));\n\n if (result) {\n result.defaultOptions = options;\n } else {\n this.queryDefaults.push({\n queryKey,\n defaultOptions: options\n });\n }\n }\n\n getQueryDefaults(queryKey) {\n if (!queryKey) {\n return undefined;\n } // Get the first matching defaults\n\n\n const firstMatchingDefaults = this.queryDefaults.find(x => utils.partialMatchKey(queryKey, x.queryKey)); // Additional checks and error in dev mode\n\n if (process.env.NODE_ENV !== 'production') {\n // Retrieve all matching defaults for the given key\n const matchingDefaults = this.queryDefaults.filter(x => utils.partialMatchKey(queryKey, x.queryKey)); // It is ok not having defaults, but it is error prone to have more than 1 default for a given key\n\n if (matchingDefaults.length > 1) {\n this.logger.error(\"[QueryClient] Several query defaults match with key '\" + JSON.stringify(queryKey) + \"'. The first matching query defaults are used. Please check how query defaults are registered. Order does matter here. cf. https://react-query.tanstack.com/reference/QueryClient#queryclientsetquerydefaults.\");\n }\n }\n\n return firstMatchingDefaults == null ? void 0 : firstMatchingDefaults.defaultOptions;\n }\n\n setMutationDefaults(mutationKey, options) {\n const result = this.mutationDefaults.find(x => utils.hashQueryKey(mutationKey) === utils.hashQueryKey(x.mutationKey));\n\n if (result) {\n result.defaultOptions = options;\n } else {\n this.mutationDefaults.push({\n mutationKey,\n defaultOptions: options\n });\n }\n }\n\n getMutationDefaults(mutationKey) {\n if (!mutationKey) {\n return undefined;\n } // Get the first matching defaults\n\n\n const firstMatchingDefaults = this.mutationDefaults.find(x => utils.partialMatchKey(mutationKey, x.mutationKey)); // Additional checks and error in dev mode\n\n if (process.env.NODE_ENV !== 'production') {\n // Retrieve all matching defaults for the given key\n const matchingDefaults = this.mutationDefaults.filter(x => utils.partialMatchKey(mutationKey, x.mutationKey)); // It is ok not having defaults, but it is error prone to have more than 1 default for a given key\n\n if (matchingDefaults.length > 1) {\n this.logger.error(\"[QueryClient] Several mutation defaults match with key '\" + JSON.stringify(mutationKey) + \"'. The first matching mutation defaults are used. Please check how mutation defaults are registered. Order does matter here. cf. https://react-query.tanstack.com/reference/QueryClient#queryclientsetmutationdefaults.\");\n }\n }\n\n return firstMatchingDefaults == null ? void 0 : firstMatchingDefaults.defaultOptions;\n }\n\n defaultQueryOptions(options) {\n if (options != null && options._defaulted) {\n return options;\n }\n\n const defaultedOptions = { ...this.defaultOptions.queries,\n ...this.getQueryDefaults(options == null ? void 0 : options.queryKey),\n ...options,\n _defaulted: true\n };\n\n if (!defaultedOptions.queryHash && defaultedOptions.queryKey) {\n defaultedOptions.queryHash = utils.hashQueryKeyByOptions(defaultedOptions.queryKey, defaultedOptions);\n } // dependent default values\n\n\n if (typeof defaultedOptions.refetchOnReconnect === 'undefined') {\n defaultedOptions.refetchOnReconnect = defaultedOptions.networkMode !== 'always';\n }\n\n if (typeof defaultedOptions.useErrorBoundary === 'undefined') {\n defaultedOptions.useErrorBoundary = !!defaultedOptions.suspense;\n }\n\n return defaultedOptions;\n }\n\n defaultMutationOptions(options) {\n if (options != null && options._defaulted) {\n return options;\n }\n\n return { ...this.defaultOptions.mutations,\n ...this.getMutationDefaults(options == null ? void 0 : options.mutationKey),\n ...options,\n _defaulted: true\n };\n }\n\n clear() {\n this.queryCache.clear();\n this.mutationCache.clear();\n }\n\n}\n\nexports.QueryClient = QueryClient;\n//# sourceMappingURL=queryClient.js.map\n","'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nvar utils = require('./utils.js');\nvar notifyManager = require('./notifyManager.js');\nvar focusManager = require('./focusManager.js');\nvar subscribable = require('./subscribable.js');\nvar retryer = require('./retryer.js');\n\nclass QueryObserver extends subscribable.Subscribable {\n constructor(client, options) {\n super();\n this.client = client;\n this.options = options;\n this.trackedProps = new Set();\n this.selectError = null;\n this.bindMethods();\n this.setOptions(options);\n }\n\n bindMethods() {\n this.remove = this.remove.bind(this);\n this.refetch = this.refetch.bind(this);\n }\n\n onSubscribe() {\n if (this.listeners.size === 1) {\n this.currentQuery.addObserver(this);\n\n if (shouldFetchOnMount(this.currentQuery, this.options)) {\n this.executeFetch();\n }\n\n this.updateTimers();\n }\n }\n\n onUnsubscribe() {\n if (!this.hasListeners()) {\n this.destroy();\n }\n }\n\n shouldFetchOnReconnect() {\n return shouldFetchOn(this.currentQuery, this.options, this.options.refetchOnReconnect);\n }\n\n shouldFetchOnWindowFocus() {\n return shouldFetchOn(this.currentQuery, this.options, this.options.refetchOnWindowFocus);\n }\n\n destroy() {\n this.listeners = new Set();\n this.clearStaleTimeout();\n this.clearRefetchInterval();\n this.currentQuery.removeObserver(this);\n }\n\n setOptions(options, notifyOptions) {\n const prevOptions = this.options;\n const prevQuery = this.currentQuery;\n this.options = this.client.defaultQueryOptions(options);\n\n if (process.env.NODE_ENV !== 'production' && typeof (options == null ? void 0 : options.isDataEqual) !== 'undefined') {\n this.client.getLogger().error(\"The isDataEqual option has been deprecated and will be removed in the next major version. You can achieve the same functionality by passing a function as the structuralSharing option\");\n }\n\n if (!utils.shallowEqualObjects(prevOptions, this.options)) {\n this.client.getQueryCache().notify({\n type: 'observerOptionsUpdated',\n query: this.currentQuery,\n observer: this\n });\n }\n\n if (typeof this.options.enabled !== 'undefined' && typeof this.options.enabled !== 'boolean') {\n throw new Error('Expected enabled to be a boolean');\n } // Keep previous query key if the user does not supply one\n\n\n if (!this.options.queryKey) {\n this.options.queryKey = prevOptions.queryKey;\n }\n\n this.updateQuery();\n const mounted = this.hasListeners(); // Fetch if there are subscribers\n\n if (mounted && shouldFetchOptionally(this.currentQuery, prevQuery, this.options, prevOptions)) {\n this.executeFetch();\n } // Update result\n\n\n this.updateResult(notifyOptions); // Update stale interval if needed\n\n if (mounted && (this.currentQuery !== prevQuery || this.options.enabled !== prevOptions.enabled || this.options.staleTime !== prevOptions.staleTime)) {\n this.updateStaleTimeout();\n }\n\n const nextRefetchInterval = this.computeRefetchInterval(); // Update refetch interval if needed\n\n if (mounted && (this.currentQuery !== prevQuery || this.options.enabled !== prevOptions.enabled || nextRefetchInterval !== this.currentRefetchInterval)) {\n this.updateRefetchInterval(nextRefetchInterval);\n }\n }\n\n getOptimisticResult(options) {\n const query = this.client.getQueryCache().build(this.client, options);\n const result = this.createResult(query, options);\n\n if (shouldAssignObserverCurrentProperties(this, result, options)) {\n // this assigns the optimistic result to the current Observer\n // because if the query function changes, useQuery will be performing\n // an effect where it would fetch again.\n // When the fetch finishes, we perform a deep data cloning in order\n // to reuse objects references. This deep data clone is performed against\n // the `observer.currentResult.data` property\n // When QueryKey changes, we refresh the query and get new `optimistic`\n // result, while we leave the `observer.currentResult`, so when new data\n // arrives, it finds the old `observer.currentResult` which is related\n // to the old QueryKey. Which means that currentResult and selectData are\n // out of sync already.\n // To solve this, we move the cursor of the currentResult everytime\n // an observer reads an optimistic value.\n // When keeping the previous data, the result doesn't change until new\n // data arrives.\n this.currentResult = result;\n this.currentResultOptions = this.options;\n this.currentResultState = this.currentQuery.state;\n }\n\n return result;\n }\n\n getCurrentResult() {\n return this.currentResult;\n }\n\n trackResult(result) {\n const trackedResult = {};\n Object.keys(result).forEach(key => {\n Object.defineProperty(trackedResult, key, {\n configurable: false,\n enumerable: true,\n get: () => {\n this.trackedProps.add(key);\n return result[key];\n }\n });\n });\n return trackedResult;\n }\n\n getCurrentQuery() {\n return this.currentQuery;\n }\n\n remove() {\n this.client.getQueryCache().remove(this.currentQuery);\n }\n\n refetch({\n refetchPage,\n ...options\n } = {}) {\n return this.fetch({ ...options,\n meta: {\n refetchPage\n }\n });\n }\n\n fetchOptimistic(options) {\n const defaultedOptions = this.client.defaultQueryOptions(options);\n const query = this.client.getQueryCache().build(this.client, defaultedOptions);\n query.isFetchingOptimistic = true;\n return query.fetch().then(() => this.createResult(query, defaultedOptions));\n }\n\n fetch(fetchOptions) {\n var _fetchOptions$cancelR;\n\n return this.executeFetch({ ...fetchOptions,\n cancelRefetch: (_fetchOptions$cancelR = fetchOptions.cancelRefetch) != null ? _fetchOptions$cancelR : true\n }).then(() => {\n this.updateResult();\n return this.currentResult;\n });\n }\n\n executeFetch(fetchOptions) {\n // Make sure we reference the latest query as the current one might have been removed\n this.updateQuery(); // Fetch\n\n let promise = this.currentQuery.fetch(this.options, fetchOptions);\n\n if (!(fetchOptions != null && fetchOptions.throwOnError)) {\n promise = promise.catch(utils.noop);\n }\n\n return promise;\n }\n\n updateStaleTimeout() {\n this.clearStaleTimeout();\n\n if (utils.isServer || this.currentResult.isStale || !utils.isValidTimeout(this.options.staleTime)) {\n return;\n }\n\n const time = utils.timeUntilStale(this.currentResult.dataUpdatedAt, this.options.staleTime); // The timeout is sometimes triggered 1 ms before the stale time expiration.\n // To mitigate this issue we always add 1 ms to the timeout.\n\n const timeout = time + 1;\n this.staleTimeoutId = setTimeout(() => {\n if (!this.currentResult.isStale) {\n this.updateResult();\n }\n }, timeout);\n }\n\n computeRefetchInterval() {\n var _this$options$refetch;\n\n return typeof this.options.refetchInterval === 'function' ? this.options.refetchInterval(this.currentResult.data, this.currentQuery) : (_this$options$refetch = this.options.refetchInterval) != null ? _this$options$refetch : false;\n }\n\n updateRefetchInterval(nextInterval) {\n this.clearRefetchInterval();\n this.currentRefetchInterval = nextInterval;\n\n if (utils.isServer || this.options.enabled === false || !utils.isValidTimeout(this.currentRefetchInterval) || this.currentRefetchInterval === 0) {\n return;\n }\n\n this.refetchIntervalId = setInterval(() => {\n if (this.options.refetchIntervalInBackground || focusManager.focusManager.isFocused()) {\n this.executeFetch();\n }\n }, this.currentRefetchInterval);\n }\n\n updateTimers() {\n this.updateStaleTimeout();\n this.updateRefetchInterval(this.computeRefetchInterval());\n }\n\n clearStaleTimeout() {\n if (this.staleTimeoutId) {\n clearTimeout(this.staleTimeoutId);\n this.staleTimeoutId = undefined;\n }\n }\n\n clearRefetchInterval() {\n if (this.refetchIntervalId) {\n clearInterval(this.refetchIntervalId);\n this.refetchIntervalId = undefined;\n }\n }\n\n createResult(query, options) {\n const prevQuery = this.currentQuery;\n const prevOptions = this.options;\n const prevResult = this.currentResult;\n const prevResultState = this.currentResultState;\n const prevResultOptions = this.currentResultOptions;\n const queryChange = query !== prevQuery;\n const queryInitialState = queryChange ? query.state : this.currentQueryInitialState;\n const prevQueryResult = queryChange ? this.currentResult : this.previousQueryResult;\n const {\n state\n } = query;\n let {\n dataUpdatedAt,\n error,\n errorUpdatedAt,\n fetchStatus,\n status\n } = state;\n let isPreviousData = false;\n let isPlaceholderData = false;\n let data; // Optimistically set result in fetching state if needed\n\n if (options._optimisticResults) {\n const mounted = this.hasListeners();\n const fetchOnMount = !mounted && shouldFetchOnMount(query, options);\n const fetchOptionally = mounted && shouldFetchOptionally(query, prevQuery, options, prevOptions);\n\n if (fetchOnMount || fetchOptionally) {\n fetchStatus = retryer.canFetch(query.options.networkMode) ? 'fetching' : 'paused';\n\n if (!dataUpdatedAt) {\n status = 'loading';\n }\n }\n\n if (options._optimisticResults === 'isRestoring') {\n fetchStatus = 'idle';\n }\n } // Keep previous data if needed\n\n\n if (options.keepPreviousData && !state.dataUpdatedAt && prevQueryResult != null && prevQueryResult.isSuccess && status !== 'error') {\n data = prevQueryResult.data;\n dataUpdatedAt = prevQueryResult.dataUpdatedAt;\n status = prevQueryResult.status;\n isPreviousData = true;\n } // Select data if needed\n else if (options.select && typeof state.data !== 'undefined') {\n // Memoize select result\n if (prevResult && state.data === (prevResultState == null ? void 0 : prevResultState.data) && options.select === this.selectFn) {\n data = this.selectResult;\n } else {\n try {\n this.selectFn = options.select;\n data = options.select(state.data);\n data = utils.replaceData(prevResult == null ? void 0 : prevResult.data, data, options);\n this.selectResult = data;\n this.selectError = null;\n } catch (selectError) {\n if (process.env.NODE_ENV !== 'production') {\n this.client.getLogger().error(selectError);\n }\n\n this.selectError = selectError;\n }\n }\n } // Use query data\n else {\n data = state.data;\n } // Show placeholder data if needed\n\n\n if (typeof options.placeholderData !== 'undefined' && typeof data === 'undefined' && status === 'loading') {\n let placeholderData; // Memoize placeholder data\n\n if (prevResult != null && prevResult.isPlaceholderData && options.placeholderData === (prevResultOptions == null ? void 0 : prevResultOptions.placeholderData)) {\n placeholderData = prevResult.data;\n } else {\n placeholderData = typeof options.placeholderData === 'function' ? options.placeholderData() : options.placeholderData;\n\n if (options.select && typeof placeholderData !== 'undefined') {\n try {\n placeholderData = options.select(placeholderData);\n this.selectError = null;\n } catch (selectError) {\n if (process.env.NODE_ENV !== 'production') {\n this.client.getLogger().error(selectError);\n }\n\n this.selectError = selectError;\n }\n }\n }\n\n if (typeof placeholderData !== 'undefined') {\n status = 'success';\n data = utils.replaceData(prevResult == null ? void 0 : prevResult.data, placeholderData, options);\n isPlaceholderData = true;\n }\n }\n\n if (this.selectError) {\n error = this.selectError;\n data = this.selectResult;\n errorUpdatedAt = Date.now();\n status = 'error';\n }\n\n const isFetching = fetchStatus === 'fetching';\n const isLoading = status === 'loading';\n const isError = status === 'error';\n const result = {\n status,\n fetchStatus,\n isLoading,\n isSuccess: status === 'success',\n isError,\n isInitialLoading: isLoading && isFetching,\n data,\n dataUpdatedAt,\n error,\n errorUpdatedAt,\n failureCount: state.fetchFailureCount,\n failureReason: state.fetchFailureReason,\n errorUpdateCount: state.errorUpdateCount,\n isFetched: state.dataUpdateCount > 0 || state.errorUpdateCount > 0,\n isFetchedAfterMount: state.dataUpdateCount > queryInitialState.dataUpdateCount || state.errorUpdateCount > queryInitialState.errorUpdateCount,\n isFetching,\n isRefetching: isFetching && !isLoading,\n isLoadingError: isError && state.dataUpdatedAt === 0,\n isPaused: fetchStatus === 'paused',\n isPlaceholderData,\n isPreviousData,\n isRefetchError: isError && state.dataUpdatedAt !== 0,\n isStale: isStale(query, options),\n refetch: this.refetch,\n remove: this.remove\n };\n return result;\n }\n\n updateResult(notifyOptions) {\n const prevResult = this.currentResult;\n const nextResult = this.createResult(this.currentQuery, this.options);\n this.currentResultState = this.currentQuery.state;\n this.currentResultOptions = this.options; // Only notify and update result if something has changed\n\n if (utils.shallowEqualObjects(nextResult, prevResult)) {\n return;\n }\n\n this.currentResult = nextResult; // Determine which callbacks to trigger\n\n const defaultNotifyOptions = {\n cache: true\n };\n\n const shouldNotifyListeners = () => {\n if (!prevResult) {\n return true;\n }\n\n const {\n notifyOnChangeProps\n } = this.options;\n const notifyOnChangePropsValue = typeof notifyOnChangeProps === 'function' ? notifyOnChangeProps() : notifyOnChangeProps;\n\n if (notifyOnChangePropsValue === 'all' || !notifyOnChangePropsValue && !this.trackedProps.size) {\n return true;\n }\n\n const includedProps = new Set(notifyOnChangePropsValue != null ? notifyOnChangePropsValue : this.trackedProps);\n\n if (this.options.useErrorBoundary) {\n includedProps.add('error');\n }\n\n return Object.keys(this.currentResult).some(key => {\n const typedKey = key;\n const changed = this.currentResult[typedKey] !== prevResult[typedKey];\n return changed && includedProps.has(typedKey);\n });\n };\n\n if ((notifyOptions == null ? void 0 : notifyOptions.listeners) !== false && shouldNotifyListeners()) {\n defaultNotifyOptions.listeners = true;\n }\n\n this.notify({ ...defaultNotifyOptions,\n ...notifyOptions\n });\n }\n\n updateQuery() {\n const query = this.client.getQueryCache().build(this.client, this.options);\n\n if (query === this.currentQuery) {\n return;\n }\n\n const prevQuery = this.currentQuery;\n this.currentQuery = query;\n this.currentQueryInitialState = query.state;\n this.previousQueryResult = this.currentResult;\n\n if (this.hasListeners()) {\n prevQuery == null ? void 0 : prevQuery.removeObserver(this);\n query.addObserver(this);\n }\n }\n\n onQueryUpdate(action) {\n const notifyOptions = {};\n\n if (action.type === 'success') {\n notifyOptions.onSuccess = !action.manual;\n } else if (action.type === 'error' && !retryer.isCancelledError(action.error)) {\n notifyOptions.onError = true;\n }\n\n this.updateResult(notifyOptions);\n\n if (this.hasListeners()) {\n this.updateTimers();\n }\n }\n\n notify(notifyOptions) {\n notifyManager.notifyManager.batch(() => {\n // First trigger the configuration callbacks\n if (notifyOptions.onSuccess) {\n var _this$options$onSucce, _this$options, _this$options$onSettl, _this$options2;\n\n (_this$options$onSucce = (_this$options = this.options).onSuccess) == null ? void 0 : _this$options$onSucce.call(_this$options, this.currentResult.data);\n (_this$options$onSettl = (_this$options2 = this.options).onSettled) == null ? void 0 : _this$options$onSettl.call(_this$options2, this.currentResult.data, null);\n } else if (notifyOptions.onError) {\n var _this$options$onError, _this$options3, _this$options$onSettl2, _this$options4;\n\n (_this$options$onError = (_this$options3 = this.options).onError) == null ? void 0 : _this$options$onError.call(_this$options3, this.currentResult.error);\n (_this$options$onSettl2 = (_this$options4 = this.options).onSettled) == null ? void 0 : _this$options$onSettl2.call(_this$options4, undefined, this.currentResult.error);\n } // Then trigger the listeners\n\n\n if (notifyOptions.listeners) {\n this.listeners.forEach(({\n listener\n }) => {\n listener(this.currentResult);\n });\n } // Then the cache listeners\n\n\n if (notifyOptions.cache) {\n this.client.getQueryCache().notify({\n query: this.currentQuery,\n type: 'observerResultsUpdated'\n });\n }\n });\n }\n\n}\n\nfunction shouldLoadOnMount(query, options) {\n return options.enabled !== false && !query.state.dataUpdatedAt && !(query.state.status === 'error' && options.retryOnMount === false);\n}\n\nfunction shouldFetchOnMount(query, options) {\n return shouldLoadOnMount(query, options) || query.state.dataUpdatedAt > 0 && shouldFetchOn(query, options, options.refetchOnMount);\n}\n\nfunction shouldFetchOn(query, options, field) {\n if (options.enabled !== false) {\n const value = typeof field === 'function' ? field(query) : field;\n return value === 'always' || value !== false && isStale(query, options);\n }\n\n return false;\n}\n\nfunction shouldFetchOptionally(query, prevQuery, options, prevOptions) {\n return options.enabled !== false && (query !== prevQuery || prevOptions.enabled === false) && (!options.suspense || query.state.status !== 'error') && isStale(query, options);\n}\n\nfunction isStale(query, options) {\n return query.isStaleByTime(options.staleTime);\n} // this function would decide if we will update the observer's 'current'\n// properties after an optimistic reading via getOptimisticResult\n\n\nfunction shouldAssignObserverCurrentProperties(observer, optimisticResult, options) {\n // it is important to keep this condition like this for three reasons:\n // 1. It will get removed in the v5\n // 2. it reads: don't update the properties if we want to keep the previous\n // data.\n // 3. The opposite condition (!options.keepPreviousData) would fallthrough\n // and will result in a bad decision\n if (options.keepPreviousData) {\n return false;\n } // this means we want to put some placeholder data when pending and queryKey\n // changed.\n\n\n if (options.placeholderData !== undefined) {\n // re-assign properties only if current data is placeholder data\n // which means that data did not arrive yet, so, if there is some cached data\n // we need to \"prepare\" to receive it\n return optimisticResult.isPlaceholderData;\n } // if the newly created result isn't what the observer is holding as current,\n // then we'll need to update the properties as well\n\n\n if (!utils.shallowEqualObjects(observer.getCurrentResult(), optimisticResult)) {\n return true;\n } // basically, just keep previous properties if nothing changed\n\n\n return false;\n}\n\nexports.QueryObserver = QueryObserver;\n//# sourceMappingURL=queryObserver.js.map\n","'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nvar utils = require('./utils.js');\n\nclass Removable {\n destroy() {\n this.clearGcTimeout();\n }\n\n scheduleGc() {\n this.clearGcTimeout();\n\n if (utils.isValidTimeout(this.cacheTime)) {\n this.gcTimeout = setTimeout(() => {\n this.optionalRemove();\n }, this.cacheTime);\n }\n }\n\n updateCacheTime(newCacheTime) {\n // Default to 5 minutes (Infinity for server-side) if no cache time is set\n this.cacheTime = Math.max(this.cacheTime || 0, newCacheTime != null ? newCacheTime : utils.isServer ? Infinity : 5 * 60 * 1000);\n }\n\n clearGcTimeout() {\n if (this.gcTimeout) {\n clearTimeout(this.gcTimeout);\n this.gcTimeout = undefined;\n }\n }\n\n}\n\nexports.Removable = Removable;\n//# sourceMappingURL=removable.js.map\n","'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nvar focusManager = require('./focusManager.js');\nvar onlineManager = require('./onlineManager.js');\nvar utils = require('./utils.js');\n\nfunction defaultRetryDelay(failureCount) {\n return Math.min(1000 * 2 ** failureCount, 30000);\n}\n\nfunction canFetch(networkMode) {\n return (networkMode != null ? networkMode : 'online') === 'online' ? onlineManager.onlineManager.isOnline() : true;\n}\nclass CancelledError {\n constructor(options) {\n this.revert = options == null ? void 0 : options.revert;\n this.silent = options == null ? void 0 : options.silent;\n }\n\n}\nfunction isCancelledError(value) {\n return value instanceof CancelledError;\n}\nfunction createRetryer(config) {\n let isRetryCancelled = false;\n let failureCount = 0;\n let isResolved = false;\n let continueFn;\n let promiseResolve;\n let promiseReject;\n const promise = new Promise((outerResolve, outerReject) => {\n promiseResolve = outerResolve;\n promiseReject = outerReject;\n });\n\n const cancel = cancelOptions => {\n if (!isResolved) {\n reject(new CancelledError(cancelOptions));\n config.abort == null ? void 0 : config.abort();\n }\n };\n\n const cancelRetry = () => {\n isRetryCancelled = true;\n };\n\n const continueRetry = () => {\n isRetryCancelled = false;\n };\n\n const shouldPause = () => !focusManager.focusManager.isFocused() || config.networkMode !== 'always' && !onlineManager.onlineManager.isOnline();\n\n const resolve = value => {\n if (!isResolved) {\n isResolved = true;\n config.onSuccess == null ? void 0 : config.onSuccess(value);\n continueFn == null ? void 0 : continueFn();\n promiseResolve(value);\n }\n };\n\n const reject = value => {\n if (!isResolved) {\n isResolved = true;\n config.onError == null ? void 0 : config.onError(value);\n continueFn == null ? void 0 : continueFn();\n promiseReject(value);\n }\n };\n\n const pause = () => {\n return new Promise(continueResolve => {\n continueFn = value => {\n const canContinue = isResolved || !shouldPause();\n\n if (canContinue) {\n continueResolve(value);\n }\n\n return canContinue;\n };\n\n config.onPause == null ? void 0 : config.onPause();\n }).then(() => {\n continueFn = undefined;\n\n if (!isResolved) {\n config.onContinue == null ? void 0 : config.onContinue();\n }\n });\n }; // Create loop function\n\n\n const run = () => {\n // Do nothing if already resolved\n if (isResolved) {\n return;\n }\n\n let promiseOrValue; // Execute query\n\n try {\n promiseOrValue = config.fn();\n } catch (error) {\n promiseOrValue = Promise.reject(error);\n }\n\n Promise.resolve(promiseOrValue).then(resolve).catch(error => {\n var _config$retry, _config$retryDelay;\n\n // Stop if the fetch is already resolved\n if (isResolved) {\n return;\n } // Do we need to retry the request?\n\n\n const retry = (_config$retry = config.retry) != null ? _config$retry : 3;\n const retryDelay = (_config$retryDelay = config.retryDelay) != null ? _config$retryDelay : defaultRetryDelay;\n const delay = typeof retryDelay === 'function' ? retryDelay(failureCount, error) : retryDelay;\n const shouldRetry = retry === true || typeof retry === 'number' && failureCount < retry || typeof retry === 'function' && retry(failureCount, error);\n\n if (isRetryCancelled || !shouldRetry) {\n // We are done if the query does not need to be retried\n reject(error);\n return;\n }\n\n failureCount++; // Notify on fail\n\n config.onFail == null ? void 0 : config.onFail(failureCount, error); // Delay\n\n utils.sleep(delay) // Pause if the document is not visible or when the device is offline\n .then(() => {\n if (shouldPause()) {\n return pause();\n }\n\n return;\n }).then(() => {\n if (isRetryCancelled) {\n reject(error);\n } else {\n run();\n }\n });\n });\n }; // Start loop\n\n\n if (canFetch(config.networkMode)) {\n run();\n } else {\n pause().then(run);\n }\n\n return {\n promise,\n cancel,\n continue: () => {\n const didContinue = continueFn == null ? void 0 : continueFn();\n return didContinue ? promise : Promise.resolve();\n },\n cancelRetry,\n continueRetry\n };\n}\n\nexports.CancelledError = CancelledError;\nexports.canFetch = canFetch;\nexports.createRetryer = createRetryer;\nexports.isCancelledError = isCancelledError;\n//# sourceMappingURL=retryer.js.map\n","'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\nclass Subscribable {\n constructor() {\n this.listeners = new Set();\n this.subscribe = this.subscribe.bind(this);\n }\n\n subscribe(listener) {\n const identity = {\n listener\n };\n this.listeners.add(identity);\n this.onSubscribe();\n return () => {\n this.listeners.delete(identity);\n this.onUnsubscribe();\n };\n }\n\n hasListeners() {\n return this.listeners.size > 0;\n }\n\n onSubscribe() {// Do nothing\n }\n\n onUnsubscribe() {// Do nothing\n }\n\n}\n\nexports.Subscribable = Subscribable;\n//# sourceMappingURL=subscribable.js.map\n","'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\n// TYPES\n// UTILS\nconst isServer = typeof window === 'undefined' || 'Deno' in window;\nfunction noop() {\n return undefined;\n}\nfunction functionalUpdate(updater, input) {\n return typeof updater === 'function' ? updater(input) : updater;\n}\nfunction isValidTimeout(value) {\n return typeof value === 'number' && value >= 0 && value !== Infinity;\n}\nfunction difference(array1, array2) {\n return array1.filter(x => !array2.includes(x));\n}\nfunction replaceAt(array, index, value) {\n const copy = array.slice(0);\n copy[index] = value;\n return copy;\n}\nfunction timeUntilStale(updatedAt, staleTime) {\n return Math.max(updatedAt + (staleTime || 0) - Date.now(), 0);\n}\nfunction parseQueryArgs(arg1, arg2, arg3) {\n if (!isQueryKey(arg1)) {\n return arg1;\n }\n\n if (typeof arg2 === 'function') {\n return { ...arg3,\n queryKey: arg1,\n queryFn: arg2\n };\n }\n\n return { ...arg2,\n queryKey: arg1\n };\n}\nfunction parseMutationArgs(arg1, arg2, arg3) {\n if (isQueryKey(arg1)) {\n if (typeof arg2 === 'function') {\n return { ...arg3,\n mutationKey: arg1,\n mutationFn: arg2\n };\n }\n\n return { ...arg2,\n mutationKey: arg1\n };\n }\n\n if (typeof arg1 === 'function') {\n return { ...arg2,\n mutationFn: arg1\n };\n }\n\n return { ...arg1\n };\n}\nfunction parseFilterArgs(arg1, arg2, arg3) {\n return isQueryKey(arg1) ? [{ ...arg2,\n queryKey: arg1\n }, arg3] : [arg1 || {}, arg2];\n}\nfunction parseMutationFilterArgs(arg1, arg2, arg3) {\n return isQueryKey(arg1) ? [{ ...arg2,\n mutationKey: arg1\n }, arg3] : [arg1 || {}, arg2];\n}\nfunction matchQuery(filters, query) {\n const {\n type = 'all',\n exact,\n fetchStatus,\n predicate,\n queryKey,\n stale\n } = filters;\n\n if (isQueryKey(queryKey)) {\n if (exact) {\n if (query.queryHash !== hashQueryKeyByOptions(queryKey, query.options)) {\n return false;\n }\n } else if (!partialMatchKey(query.queryKey, queryKey)) {\n return false;\n }\n }\n\n if (type !== 'all') {\n const isActive = query.isActive();\n\n if (type === 'active' && !isActive) {\n return false;\n }\n\n if (type === 'inactive' && isActive) {\n return false;\n }\n }\n\n if (typeof stale === 'boolean' && query.isStale() !== stale) {\n return false;\n }\n\n if (typeof fetchStatus !== 'undefined' && fetchStatus !== query.state.fetchStatus) {\n return false;\n }\n\n if (predicate && !predicate(query)) {\n return false;\n }\n\n return true;\n}\nfunction matchMutation(filters, mutation) {\n const {\n exact,\n fetching,\n predicate,\n mutationKey\n } = filters;\n\n if (isQueryKey(mutationKey)) {\n if (!mutation.options.mutationKey) {\n return false;\n }\n\n if (exact) {\n if (hashQueryKey(mutation.options.mutationKey) !== hashQueryKey(mutationKey)) {\n return false;\n }\n } else if (!partialMatchKey(mutation.options.mutationKey, mutationKey)) {\n return false;\n }\n }\n\n if (typeof fetching === 'boolean' && mutation.state.status === 'loading' !== fetching) {\n return false;\n }\n\n if (predicate && !predicate(mutation)) {\n return false;\n }\n\n return true;\n}\nfunction hashQueryKeyByOptions(queryKey, options) {\n const hashFn = (options == null ? void 0 : options.queryKeyHashFn) || hashQueryKey;\n return hashFn(queryKey);\n}\n/**\n * Default query keys hash function.\n * Hashes the value into a stable hash.\n */\n\nfunction hashQueryKey(queryKey) {\n return JSON.stringify(queryKey, (_, val) => isPlainObject(val) ? Object.keys(val).sort().reduce((result, key) => {\n result[key] = val[key];\n return result;\n }, {}) : val);\n}\n/**\n * Checks if key `b` partially matches with key `a`.\n */\n\nfunction partialMatchKey(a, b) {\n return partialDeepEqual(a, b);\n}\n/**\n * Checks if `b` partially matches with `a`.\n */\n\nfunction partialDeepEqual(a, b) {\n if (a === b) {\n return true;\n }\n\n if (typeof a !== typeof b) {\n return false;\n }\n\n if (a && b && typeof a === 'object' && typeof b === 'object') {\n return !Object.keys(b).some(key => !partialDeepEqual(a[key], b[key]));\n }\n\n return false;\n}\n/**\n * This function returns `a` if `b` is deeply equal.\n * If not, it will replace any deeply equal children of `b` with those of `a`.\n * This can be used for structural sharing between JSON values for example.\n */\n\nfunction replaceEqualDeep(a, b) {\n if (a === b) {\n return a;\n }\n\n const array = isPlainArray(a) && isPlainArray(b);\n\n if (array || isPlainObject(a) && isPlainObject(b)) {\n const aSize = array ? a.length : Object.keys(a).length;\n const bItems = array ? b : Object.keys(b);\n const bSize = bItems.length;\n const copy = array ? [] : {};\n let equalItems = 0;\n\n for (let i = 0; i < bSize; i++) {\n const key = array ? i : bItems[i];\n copy[key] = replaceEqualDeep(a[key], b[key]);\n\n if (copy[key] === a[key]) {\n equalItems++;\n }\n }\n\n return aSize === bSize && equalItems === aSize ? a : copy;\n }\n\n return b;\n}\n/**\n * Shallow compare objects. Only works with objects that always have the same properties.\n */\n\nfunction shallowEqualObjects(a, b) {\n if (a && !b || b && !a) {\n return false;\n }\n\n for (const key in a) {\n if (a[key] !== b[key]) {\n return false;\n }\n }\n\n return true;\n}\nfunction isPlainArray(value) {\n return Array.isArray(value) && value.length === Object.keys(value).length;\n} // Copied from: https://github.com/jonschlinkert/is-plain-object\n\nfunction isPlainObject(o) {\n if (!hasObjectPrototype(o)) {\n return false;\n } // If has modified constructor\n\n\n const ctor = o.constructor;\n\n if (typeof ctor === 'undefined') {\n return true;\n } // If has modified prototype\n\n\n const prot = ctor.prototype;\n\n if (!hasObjectPrototype(prot)) {\n return false;\n } // If constructor does not have an Object-specific method\n\n\n if (!prot.hasOwnProperty('isPrototypeOf')) {\n return false;\n } // Most likely a plain Object\n\n\n return true;\n}\n\nfunction hasObjectPrototype(o) {\n return Object.prototype.toString.call(o) === '[object Object]';\n}\n\nfunction isQueryKey(value) {\n return Array.isArray(value);\n}\nfunction isError(value) {\n return value instanceof Error;\n}\nfunction sleep(timeout) {\n return new Promise(resolve => {\n setTimeout(resolve, timeout);\n });\n}\n/**\n * Schedules a microtask.\n * This can be useful to schedule state updates after rendering.\n */\n\nfunction scheduleMicrotask(callback) {\n sleep(0).then(callback);\n}\nfunction getAbortController() {\n if (typeof AbortController === 'function') {\n return new AbortController();\n }\n\n return;\n}\nfunction replaceData(prevData, data, options) {\n // Use prev data if an isDataEqual function is defined and returns `true`\n if (options.isDataEqual != null && options.isDataEqual(prevData, data)) {\n return prevData;\n } else if (typeof options.structuralSharing === 'function') {\n return options.structuralSharing(prevData, data);\n } else if (options.structuralSharing !== false) {\n // Structurally share data between prev and new data if needed\n return replaceEqualDeep(prevData, data);\n }\n\n return data;\n}\n\nexports.difference = difference;\nexports.functionalUpdate = functionalUpdate;\nexports.getAbortController = getAbortController;\nexports.hashQueryKey = hashQueryKey;\nexports.hashQueryKeyByOptions = hashQueryKeyByOptions;\nexports.isError = isError;\nexports.isPlainArray = isPlainArray;\nexports.isPlainObject = isPlainObject;\nexports.isQueryKey = isQueryKey;\nexports.isServer = isServer;\nexports.isValidTimeout = isValidTimeout;\nexports.matchMutation = matchMutation;\nexports.matchQuery = matchQuery;\nexports.noop = noop;\nexports.parseFilterArgs = parseFilterArgs;\nexports.parseMutationArgs = parseMutationArgs;\nexports.parseMutationFilterArgs = parseMutationFilterArgs;\nexports.parseQueryArgs = parseQueryArgs;\nexports.partialDeepEqual = partialDeepEqual;\nexports.partialMatchKey = partialMatchKey;\nexports.replaceAt = replaceAt;\nexports.replaceData = replaceData;\nexports.replaceEqualDeep = replaceEqualDeep;\nexports.scheduleMicrotask = scheduleMicrotask;\nexports.shallowEqualObjects = shallowEqualObjects;\nexports.sleep = sleep;\nexports.timeUntilStale = timeUntilStale;\n//# sourceMappingURL=utils.js.map\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.hasCORS = void 0;\n// imported from https://github.com/component/has-cors\nlet value = false;\ntry {\n value = typeof XMLHttpRequest !== 'undefined' &&\n 'withCredentials' in new XMLHttpRequest();\n}\ncatch (err) {\n // if XMLHttp support is disabled in IE then it will throw\n // when trying to create\n}\nexports.hasCORS = value;\n","\"use strict\";\n// imported from https://github.com/galkn/querystring\n/**\n * Compiles a querystring\n * Returns string representation of the object\n *\n * @param {Object}\n * @api private\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.decode = exports.encode = void 0;\nfunction encode(obj) {\n let str = '';\n for (let i in obj) {\n if (obj.hasOwnProperty(i)) {\n if (str.length)\n str += '&';\n str += encodeURIComponent(i) + '=' + encodeURIComponent(obj[i]);\n }\n }\n return str;\n}\nexports.encode = encode;\n/**\n * Parses a simple querystring into an object\n *\n * @param {String} qs\n * @api private\n */\nfunction decode(qs) {\n let qry = {};\n let pairs = qs.split('&');\n for (let i = 0, l = pairs.length; i < l; i++) {\n let pair = pairs[i].split('=');\n qry[decodeURIComponent(pair[0])] = decodeURIComponent(pair[1]);\n }\n return qry;\n}\nexports.decode = decode;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.parse = void 0;\n// imported from https://github.com/galkn/parseuri\n/**\n * Parses a URI\n *\n * Note: we could also have used the built-in URL object, but it isn't supported on all platforms.\n *\n * See:\n * - https://developer.mozilla.org/en-US/docs/Web/API/URL\n * - https://caniuse.com/url\n * - https://www.rfc-editor.org/rfc/rfc3986#appendix-B\n *\n * History of the parse() method:\n * - first commit: https://github.com/socketio/socket.io-client/commit/4ee1d5d94b3906a9c052b459f1a818b15f38f91c\n * - export into its own module: https://github.com/socketio/engine.io-client/commit/de2c561e4564efeb78f1bdb1ba39ef81b2822cb3\n * - reimport: https://github.com/socketio/engine.io-client/commit/df32277c3f6d622eec5ed09f493cae3f3391d242\n *\n * @author Steven Levithan <stevenlevithan.com> (MIT license)\n * @api private\n */\nconst re = /^(?:(?![^:@\\/?#]+:[^:@\\/]*@)(http|https|ws|wss):\\/\\/)?((?:(([^:@\\/?#]*)(?::([^:@\\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\\/?#]*)(?::(\\d*))?)(((\\/(?:[^?#](?![^?#\\/]*\\.[^?#\\/.]+(?:[?#]|$)))*\\/?)?([^?#\\/]*))(?:\\?([^#]*))?(?:#(.*))?)/;\nconst parts = [\n 'source', 'protocol', 'authority', 'userInfo', 'user', 'password', 'host', 'port', 'relative', 'path', 'directory', 'file', 'query', 'anchor'\n];\nfunction parse(str) {\n if (str.length > 2000) {\n throw \"URI too long\";\n }\n const src = str, b = str.indexOf('['), e = str.indexOf(']');\n if (b != -1 && e != -1) {\n str = str.substring(0, b) + str.substring(b, e).replace(/:/g, ';') + str.substring(e, str.length);\n }\n let m = re.exec(str || ''), uri = {}, i = 14;\n while (i--) {\n uri[parts[i]] = m[i] || '';\n }\n if (b != -1 && e != -1) {\n uri.source = src;\n uri.host = uri.host.substring(1, uri.host.length - 1).replace(/;/g, ':');\n uri.authority = uri.authority.replace('[', '').replace(']', '').replace(/;/g, ':');\n uri.ipv6uri = true;\n }\n uri.pathNames = pathNames(uri, uri['path']);\n uri.queryKey = queryKey(uri, uri['query']);\n return uri;\n}\nexports.parse = parse;\nfunction pathNames(obj, path) {\n const regx = /\\/{2,9}/g, names = path.replace(regx, \"/\").split(\"/\");\n if (path.slice(0, 1) == '/' || path.length === 0) {\n names.splice(0, 1);\n }\n if (path.slice(-1) == '/') {\n names.splice(names.length - 1, 1);\n }\n return names;\n}\nfunction queryKey(uri, query) {\n const data = {};\n query.replace(/(?:^|&)([^&=]*)=?([^&]*)/g, function ($0, $1, $2) {\n if ($1) {\n data[$1] = $2;\n }\n });\n return data;\n}\n","// imported from https://github.com/unshiftio/yeast\n'use strict';\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.yeast = exports.decode = exports.encode = void 0;\nconst alphabet = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_'.split(''), length = 64, map = {};\nlet seed = 0, i = 0, prev;\n/**\n * Return a string representing the specified number.\n *\n * @param {Number} num The number to convert.\n * @returns {String} The string representation of the number.\n * @api public\n */\nfunction encode(num) {\n let encoded = '';\n do {\n encoded = alphabet[num % length] + encoded;\n num = Math.floor(num / length);\n } while (num > 0);\n return encoded;\n}\nexports.encode = encode;\n/**\n * Return the integer value specified by the given string.\n *\n * @param {String} str The string to convert.\n * @returns {Number} The integer value represented by the string.\n * @api public\n */\nfunction decode(str) {\n let decoded = 0;\n for (i = 0; i < str.length; i++) {\n decoded = decoded * length + map[str.charAt(i)];\n }\n return decoded;\n}\nexports.decode = decode;\n/**\n * Yeast: A tiny growing id generator.\n *\n * @returns {String} A unique id.\n * @api public\n */\nfunction yeast() {\n const now = encode(+new Date());\n if (now !== prev)\n return seed = 0, prev = now;\n return now + '.' + encode(seed++);\n}\nexports.yeast = yeast;\n//\n// Map each character to its index.\n//\nfor (; i < length; i++)\n map[alphabet[i]] = i;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.globalThisShim = void 0;\nexports.globalThisShim = (() => {\n if (typeof self !== \"undefined\") {\n return self;\n }\n else if (typeof window !== \"undefined\") {\n return window;\n }\n else {\n return Function(\"return this\")();\n }\n})();\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.nextTick = exports.parse = exports.installTimerFunctions = exports.transports = exports.TransportError = exports.Transport = exports.protocol = exports.Socket = void 0;\nconst socket_js_1 = require(\"./socket.js\");\nObject.defineProperty(exports, \"Socket\", { enumerable: true, get: function () { return socket_js_1.Socket; } });\nexports.protocol = socket_js_1.Socket.protocol;\nvar transport_js_1 = require(\"./transport.js\");\nObject.defineProperty(exports, \"Transport\", { enumerable: true, get: function () { return transport_js_1.Transport; } });\nObject.defineProperty(exports, \"TransportError\", { enumerable: true, get: function () { return transport_js_1.TransportError; } });\nvar index_js_1 = require(\"./transports/index.js\");\nObject.defineProperty(exports, \"transports\", { enumerable: true, get: function () { return index_js_1.transports; } });\nvar util_js_1 = require(\"./util.js\");\nObject.defineProperty(exports, \"installTimerFunctions\", { enumerable: true, get: function () { return util_js_1.installTimerFunctions; } });\nvar parseuri_js_1 = require(\"./contrib/parseuri.js\");\nObject.defineProperty(exports, \"parse\", { enumerable: true, get: function () { return parseuri_js_1.parse; } });\nvar websocket_constructor_js_1 = require(\"./transports/websocket-constructor.js\");\nObject.defineProperty(exports, \"nextTick\", { enumerable: true, get: function () { return websocket_constructor_js_1.nextTick; } });\n","\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.Socket = void 0;\nconst index_js_1 = require(\"./transports/index.js\");\nconst util_js_1 = require(\"./util.js\");\nconst parseqs_js_1 = require(\"./contrib/parseqs.js\");\nconst parseuri_js_1 = require(\"./contrib/parseuri.js\");\nconst debug_1 = __importDefault(require(\"debug\")); // debug()\nconst component_emitter_1 = require(\"@socket.io/component-emitter\");\nconst engine_io_parser_1 = require(\"engine.io-parser\");\nconst websocket_constructor_js_1 = require(\"./transports/websocket-constructor.js\");\nconst debug = (0, debug_1.default)(\"engine.io-client:socket\"); // debug()\nclass Socket extends component_emitter_1.Emitter {\n /**\n * Socket constructor.\n *\n * @param {String|Object} uri - uri or options\n * @param {Object} opts - options\n */\n constructor(uri, opts = {}) {\n super();\n this.binaryType = websocket_constructor_js_1.defaultBinaryType;\n this.writeBuffer = [];\n if (uri && \"object\" === typeof uri) {\n opts = uri;\n uri = null;\n }\n if (uri) {\n uri = (0, parseuri_js_1.parse)(uri);\n opts.hostname = uri.host;\n opts.secure = uri.protocol === \"https\" || uri.protocol === \"wss\";\n opts.port = uri.port;\n if (uri.query)\n opts.query = uri.query;\n }\n else if (opts.host) {\n opts.hostname = (0, parseuri_js_1.parse)(opts.host).host;\n }\n (0, util_js_1.installTimerFunctions)(this, opts);\n this.secure =\n null != opts.secure\n ? opts.secure\n : typeof location !== \"undefined\" && \"https:\" === location.protocol;\n if (opts.hostname && !opts.port) {\n // if no port is specified manually, use the protocol default\n opts.port = this.secure ? \"443\" : \"80\";\n }\n this.hostname =\n opts.hostname ||\n (typeof location !== \"undefined\" ? location.hostname : \"localhost\");\n this.port =\n opts.port ||\n (typeof location !== \"undefined\" && location.port\n ? location.port\n : this.secure\n ? \"443\"\n : \"80\");\n this.transports = opts.transports || [\n \"polling\",\n \"websocket\",\n \"webtransport\",\n ];\n this.writeBuffer = [];\n this.prevBufferLen = 0;\n this.opts = Object.assign({\n path: \"/engine.io\",\n agent: false,\n withCredentials: false,\n upgrade: true,\n timestampParam: \"t\",\n rememberUpgrade: false,\n addTrailingSlash: true,\n rejectUnauthorized: true,\n perMessageDeflate: {\n threshold: 1024,\n },\n transportOptions: {},\n closeOnBeforeunload: false,\n }, opts);\n this.opts.path =\n this.opts.path.replace(/\\/$/, \"\") +\n (this.opts.addTrailingSlash ? \"/\" : \"\");\n if (typeof this.opts.query === \"string\") {\n this.opts.query = (0, parseqs_js_1.decode)(this.opts.query);\n }\n // set on handshake\n this.id = null;\n this.upgrades = null;\n this.pingInterval = null;\n this.pingTimeout = null;\n // set on heartbeat\n this.pingTimeoutTimer = null;\n if (typeof addEventListener === \"function\") {\n if (this.opts.closeOnBeforeunload) {\n // Firefox closes the connection when the \"beforeunload\" event is emitted but not Chrome. This event listener\n // ensures every browser behaves the same (no \"disconnect\" event at the Socket.IO level when the page is\n // closed/reloaded)\n this.beforeunloadEventListener = () => {\n if (this.transport) {\n // silently close the transport\n this.transport.removeAllListeners();\n this.transport.close();\n }\n };\n addEventListener(\"beforeunload\", this.beforeunloadEventListener, false);\n }\n if (this.hostname !== \"localhost\") {\n this.offlineEventListener = () => {\n this.onClose(\"transport close\", {\n description: \"network connection lost\",\n });\n };\n addEventListener(\"offline\", this.offlineEventListener, false);\n }\n }\n this.open();\n }\n /**\n * Creates transport of the given type.\n *\n * @param {String} name - transport name\n * @return {Transport}\n * @private\n */\n createTransport(name) {\n debug('creating transport \"%s\"', name);\n const query = Object.assign({}, this.opts.query);\n // append engine.io protocol identifier\n query.EIO = engine_io_parser_1.protocol;\n // transport name\n query.transport = name;\n // session id if we already have one\n if (this.id)\n query.sid = this.id;\n const opts = Object.assign({}, this.opts, {\n query,\n socket: this,\n hostname: this.hostname,\n secure: this.secure,\n port: this.port,\n }, this.opts.transportOptions[name]);\n debug(\"options: %j\", opts);\n return new index_js_1.transports[name](opts);\n }\n /**\n * Initializes transport to use and starts probe.\n *\n * @private\n */\n open() {\n let transport;\n if (this.opts.rememberUpgrade &&\n Socket.priorWebsocketSuccess &&\n this.transports.indexOf(\"websocket\") !== -1) {\n transport = \"websocket\";\n }\n else if (0 === this.transports.length) {\n // Emit error on next tick so it can be listened to\n this.setTimeoutFn(() => {\n this.emitReserved(\"error\", \"No transports available\");\n }, 0);\n return;\n }\n else {\n transport = this.transports[0];\n }\n this.readyState = \"opening\";\n // Retry with the next transport if the transport is disabled (jsonp: false)\n try {\n transport = this.createTransport(transport);\n }\n catch (e) {\n debug(\"error while creating transport: %s\", e);\n this.transports.shift();\n this.open();\n return;\n }\n transport.open();\n this.setTransport(transport);\n }\n /**\n * Sets the current transport. Disables the existing one (if any).\n *\n * @private\n */\n setTransport(transport) {\n debug(\"setting transport %s\", transport.name);\n if (this.transport) {\n debug(\"clearing existing transport %s\", this.transport.name);\n this.transport.removeAllListeners();\n }\n // set up transport\n this.transport = transport;\n // set up transport listeners\n transport\n .on(\"drain\", this.onDrain.bind(this))\n .on(\"packet\", this.onPacket.bind(this))\n .on(\"error\", this.onError.bind(this))\n .on(\"close\", (reason) => this.onClose(\"transport close\", reason));\n }\n /**\n * Probes a transport.\n *\n * @param {String} name - transport name\n * @private\n */\n probe(name) {\n debug('probing transport \"%s\"', name);\n let transport = this.createTransport(name);\n let failed = false;\n Socket.priorWebsocketSuccess = false;\n const onTransportOpen = () => {\n if (failed)\n return;\n debug('probe transport \"%s\" opened', name);\n transport.send([{ type: \"ping\", data: \"probe\" }]);\n transport.once(\"packet\", (msg) => {\n if (failed)\n return;\n if (\"pong\" === msg.type && \"probe\" === msg.data) {\n debug('probe transport \"%s\" pong', name);\n this.upgrading = true;\n this.emitReserved(\"upgrading\", transport);\n if (!transport)\n return;\n Socket.priorWebsocketSuccess = \"websocket\" === transport.name;\n debug('pausing current transport \"%s\"', this.transport.name);\n this.transport.pause(() => {\n if (failed)\n return;\n if (\"closed\" === this.readyState)\n return;\n debug(\"changing transport and sending upgrade packet\");\n cleanup();\n this.setTransport(transport);\n transport.send([{ type: \"upgrade\" }]);\n this.emitReserved(\"upgrade\", transport);\n transport = null;\n this.upgrading = false;\n this.flush();\n });\n }\n else {\n debug('probe transport \"%s\" failed', name);\n const err = new Error(\"probe error\");\n // @ts-ignore\n err.transport = transport.name;\n this.emitReserved(\"upgradeError\", err);\n }\n });\n };\n function freezeTransport() {\n if (failed)\n return;\n // Any callback called by transport should be ignored since now\n failed = true;\n cleanup();\n transport.close();\n transport = null;\n }\n // Handle any error that happens while probing\n const onerror = (err) => {\n const error = new Error(\"probe error: \" + err);\n // @ts-ignore\n error.transport = transport.name;\n freezeTransport();\n debug('probe transport \"%s\" failed because of error: %s', name, err);\n this.emitReserved(\"upgradeError\", error);\n };\n function onTransportClose() {\n onerror(\"transport closed\");\n }\n // When the socket is closed while we're probing\n function onclose() {\n onerror(\"socket closed\");\n }\n // When the socket is upgraded while we're probing\n function onupgrade(to) {\n if (transport && to.name !== transport.name) {\n debug('\"%s\" works - aborting \"%s\"', to.name, transport.name);\n freezeTransport();\n }\n }\n // Remove all listeners on the transport and on self\n const cleanup = () => {\n transport.removeListener(\"open\", onTransportOpen);\n transport.removeListener(\"error\", onerror);\n transport.removeListener(\"close\", onTransportClose);\n this.off(\"close\", onclose);\n this.off(\"upgrading\", onupgrade);\n };\n transport.once(\"open\", onTransportOpen);\n transport.once(\"error\", onerror);\n transport.once(\"close\", onTransportClose);\n this.once(\"close\", onclose);\n this.once(\"upgrading\", onupgrade);\n if (this.upgrades.indexOf(\"webtransport\") !== -1 &&\n name !== \"webtransport\") {\n // favor WebTransport\n this.setTimeoutFn(() => {\n if (!failed) {\n transport.open();\n }\n }, 200);\n }\n else {\n transport.open();\n }\n }\n /**\n * Called when connection is deemed open.\n *\n * @private\n */\n onOpen() {\n debug(\"socket open\");\n this.readyState = \"open\";\n Socket.priorWebsocketSuccess = \"websocket\" === this.transport.name;\n this.emitReserved(\"open\");\n this.flush();\n // we check for `readyState` in case an `open`\n // listener already closed the socket\n if (\"open\" === this.readyState && this.opts.upgrade) {\n debug(\"starting upgrade probes\");\n let i = 0;\n const l = this.upgrades.length;\n for (; i < l; i++) {\n this.probe(this.upgrades[i]);\n }\n }\n }\n /**\n * Handles a packet.\n *\n * @private\n */\n onPacket(packet) {\n if (\"opening\" === this.readyState ||\n \"open\" === this.readyState ||\n \"closing\" === this.readyState) {\n debug('socket receive: type \"%s\", data \"%s\"', packet.type, packet.data);\n this.emitReserved(\"packet\", packet);\n // Socket is live - any packet counts\n this.emitReserved(\"heartbeat\");\n this.resetPingTimeout();\n switch (packet.type) {\n case \"open\":\n this.onHandshake(JSON.parse(packet.data));\n break;\n case \"ping\":\n this.sendPacket(\"pong\");\n this.emitReserved(\"ping\");\n this.emitReserved(\"pong\");\n break;\n case \"error\":\n const err = new Error(\"server error\");\n // @ts-ignore\n err.code = packet.data;\n this.onError(err);\n break;\n case \"message\":\n this.emitReserved(\"data\", packet.data);\n this.emitReserved(\"message\", packet.data);\n break;\n }\n }\n else {\n debug('packet received with socket readyState \"%s\"', this.readyState);\n }\n }\n /**\n * Called upon handshake completion.\n *\n * @param {Object} data - handshake obj\n * @private\n */\n onHandshake(data) {\n this.emitReserved(\"handshake\", data);\n this.id = data.sid;\n this.transport.query.sid = data.sid;\n this.upgrades = this.filterUpgrades(data.upgrades);\n this.pingInterval = data.pingInterval;\n this.pingTimeout = data.pingTimeout;\n this.maxPayload = data.maxPayload;\n this.onOpen();\n // In case open handler closes socket\n if (\"closed\" === this.readyState)\n return;\n this.resetPingTimeout();\n }\n /**\n * Sets and resets ping timeout timer based on server pings.\n *\n * @private\n */\n resetPingTimeout() {\n this.clearTimeoutFn(this.pingTimeoutTimer);\n this.pingTimeoutTimer = this.setTimeoutFn(() => {\n this.onClose(\"ping timeout\");\n }, this.pingInterval + this.pingTimeout);\n if (this.opts.autoUnref) {\n this.pingTimeoutTimer.unref();\n }\n }\n /**\n * Called on `drain` event\n *\n * @private\n */\n onDrain() {\n this.writeBuffer.splice(0, this.prevBufferLen);\n // setting prevBufferLen = 0 is very important\n // for example, when upgrading, upgrade packet is sent over,\n // and a nonzero prevBufferLen could cause problems on `drain`\n this.prevBufferLen = 0;\n if (0 === this.writeBuffer.length) {\n this.emitReserved(\"drain\");\n }\n else {\n this.flush();\n }\n }\n /**\n * Flush write buffers.\n *\n * @private\n */\n flush() {\n if (\"closed\" !== this.readyState &&\n this.transport.writable &&\n !this.upgrading &&\n this.writeBuffer.length) {\n const packets = this.getWritablePackets();\n debug(\"flushing %d packets in socket\", packets.length);\n this.transport.send(packets);\n // keep track of current length of writeBuffer\n // splice writeBuffer and callbackBuffer on `drain`\n this.prevBufferLen = packets.length;\n this.emitReserved(\"flush\");\n }\n }\n /**\n * Ensure the encoded size of the writeBuffer is below the maxPayload value sent by the server (only for HTTP\n * long-polling)\n *\n * @private\n */\n getWritablePackets() {\n const shouldCheckPayloadSize = this.maxPayload &&\n this.transport.name === \"polling\" &&\n this.writeBuffer.length > 1;\n if (!shouldCheckPayloadSize) {\n return this.writeBuffer;\n }\n let payloadSize = 1; // first packet type\n for (let i = 0; i < this.writeBuffer.length; i++) {\n const data = this.writeBuffer[i].data;\n if (data) {\n payloadSize += (0, util_js_1.byteLength)(data);\n }\n if (i > 0 && payloadSize > this.maxPayload) {\n debug(\"only send %d out of %d packets\", i, this.writeBuffer.length);\n return this.writeBuffer.slice(0, i);\n }\n payloadSize += 2; // separator + packet type\n }\n debug(\"payload size is %d (max: %d)\", payloadSize, this.maxPayload);\n return this.writeBuffer;\n }\n /**\n * Sends a message.\n *\n * @param {String} msg - message.\n * @param {Object} options.\n * @param {Function} callback function.\n * @return {Socket} for chaining.\n */\n write(msg, options, fn) {\n this.sendPacket(\"message\", msg, options, fn);\n return this;\n }\n send(msg, options, fn) {\n this.sendPacket(\"message\", msg, options, fn);\n return this;\n }\n /**\n * Sends a packet.\n *\n * @param {String} type: packet type.\n * @param {String} data.\n * @param {Object} options.\n * @param {Function} fn - callback function.\n * @private\n */\n sendPacket(type, data, options, fn) {\n if (\"function\" === typeof data) {\n fn = data;\n data = undefined;\n }\n if (\"function\" === typeof options) {\n fn = options;\n options = null;\n }\n if (\"closing\" === this.readyState || \"closed\" === this.readyState) {\n return;\n }\n options = options || {};\n options.compress = false !== options.compress;\n const packet = {\n type: type,\n data: data,\n options: options,\n };\n this.emitReserved(\"packetCreate\", packet);\n this.writeBuffer.push(packet);\n if (fn)\n this.once(\"flush\", fn);\n this.flush();\n }\n /**\n * Closes the connection.\n */\n close() {\n const close = () => {\n this.onClose(\"forced close\");\n debug(\"socket closing - telling transport to close\");\n this.transport.close();\n };\n const cleanupAndClose = () => {\n this.off(\"upgrade\", cleanupAndClose);\n this.off(\"upgradeError\", cleanupAndClose);\n close();\n };\n const waitForUpgrade = () => {\n // wait for upgrade to finish since we can't send packets while pausing a transport\n this.once(\"upgrade\", cleanupAndClose);\n this.once(\"upgradeError\", cleanupAndClose);\n };\n if (\"opening\" === this.readyState || \"open\" === this.readyState) {\n this.readyState = \"closing\";\n if (this.writeBuffer.length) {\n this.once(\"drain\", () => {\n if (this.upgrading) {\n waitForUpgrade();\n }\n else {\n close();\n }\n });\n }\n else if (this.upgrading) {\n waitForUpgrade();\n }\n else {\n close();\n }\n }\n return this;\n }\n /**\n * Called upon transport error\n *\n * @private\n */\n onError(err) {\n debug(\"socket error %j\", err);\n Socket.priorWebsocketSuccess = false;\n this.emitReserved(\"error\", err);\n this.onClose(\"transport error\", err);\n }\n /**\n * Called upon transport close.\n *\n * @private\n */\n onClose(reason, description) {\n if (\"opening\" === this.readyState ||\n \"open\" === this.readyState ||\n \"closing\" === this.readyState) {\n debug('socket close with reason: \"%s\"', reason);\n // clear timers\n this.clearTimeoutFn(this.pingTimeoutTimer);\n // stop event from firing again for transport\n this.transport.removeAllListeners(\"close\");\n // ensure transport won't stay open\n this.transport.close();\n // ignore further transport communication\n this.transport.removeAllListeners();\n if (typeof removeEventListener === \"function\") {\n removeEventListener(\"beforeunload\", this.beforeunloadEventListener, false);\n removeEventListener(\"offline\", this.offlineEventListener, false);\n }\n // set ready state\n this.readyState = \"closed\";\n // clear session id\n this.id = null;\n // emit close event\n this.emitReserved(\"close\", reason, description);\n // clean buffers after, so users can still\n // grab the buffers on `close` event\n this.writeBuffer = [];\n this.prevBufferLen = 0;\n }\n }\n /**\n * Filters upgrades, returning only those matching client transports.\n *\n * @param {Array} upgrades - server upgrades\n * @private\n */\n filterUpgrades(upgrades) {\n const filteredUpgrades = [];\n let i = 0;\n const j = upgrades.length;\n for (; i < j; i++) {\n if (~this.transports.indexOf(upgrades[i]))\n filteredUpgrades.push(upgrades[i]);\n }\n return filteredUpgrades;\n }\n}\nexports.Socket = Socket;\nSocket.protocol = engine_io_parser_1.protocol;\n","\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.Transport = exports.TransportError = void 0;\nconst engine_io_parser_1 = require(\"engine.io-parser\");\nconst component_emitter_1 = require(\"@socket.io/component-emitter\");\nconst util_js_1 = require(\"./util.js\");\nconst debug_1 = __importDefault(require(\"debug\")); // debug()\nconst parseqs_js_1 = require(\"./contrib/parseqs.js\");\nconst debug = (0, debug_1.default)(\"engine.io-client:transport\"); // debug()\nclass TransportError extends Error {\n constructor(reason, description, context) {\n super(reason);\n this.description = description;\n this.context = context;\n this.type = \"TransportError\";\n }\n}\nexports.TransportError = TransportError;\nclass Transport extends component_emitter_1.Emitter {\n /**\n * Transport abstract constructor.\n *\n * @param {Object} opts - options\n * @protected\n */\n constructor(opts) {\n super();\n this.writable = false;\n (0, util_js_1.installTimerFunctions)(this, opts);\n this.opts = opts;\n this.query = opts.query;\n this.socket = opts.socket;\n }\n /**\n * Emits an error.\n *\n * @param {String} reason\n * @param description\n * @param context - the error context\n * @return {Transport} for chaining\n * @protected\n */\n onError(reason, description, context) {\n super.emitReserved(\"error\", new TransportError(reason, description, context));\n return this;\n }\n /**\n * Opens the transport.\n */\n open() {\n this.readyState = \"opening\";\n this.doOpen();\n return this;\n }\n /**\n * Closes the transport.\n */\n close() {\n if (this.readyState === \"opening\" || this.readyState === \"open\") {\n this.doClose();\n this.onClose();\n }\n return this;\n }\n /**\n * Sends multiple packets.\n *\n * @param {Array} packets\n */\n send(packets) {\n if (this.readyState === \"open\") {\n this.write(packets);\n }\n else {\n // this might happen if the transport was silently closed in the beforeunload event handler\n debug(\"transport is not open, discarding packets\");\n }\n }\n /**\n * Called upon open\n *\n * @protected\n */\n onOpen() {\n this.readyState = \"open\";\n this.writable = true;\n super.emitReserved(\"open\");\n }\n /**\n * Called with data.\n *\n * @param {String} data\n * @protected\n */\n onData(data) {\n const packet = (0, engine_io_parser_1.decodePacket)(data, this.socket.binaryType);\n this.onPacket(packet);\n }\n /**\n * Called with a decoded packet.\n *\n * @protected\n */\n onPacket(packet) {\n super.emitReserved(\"packet\", packet);\n }\n /**\n * Called upon close.\n *\n * @protected\n */\n onClose(details) {\n this.readyState = \"closed\";\n super.emitReserved(\"close\", details);\n }\n /**\n * Pauses the transport, in order not to lose packets during an upgrade.\n *\n * @param onPause\n */\n pause(onPause) { }\n createUri(schema, query = {}) {\n return (schema +\n \"://\" +\n this._hostname() +\n this._port() +\n this.opts.path +\n this._query(query));\n }\n _hostname() {\n const hostname = this.opts.hostname;\n return hostname.indexOf(\":\") === -1 ? hostname : \"[\" + hostname + \"]\";\n }\n _port() {\n if (this.opts.port &&\n ((this.opts.secure && Number(this.opts.port !== 443)) ||\n (!this.opts.secure && Number(this.opts.port) !== 80))) {\n return \":\" + this.opts.port;\n }\n else {\n return \"\";\n }\n }\n _query(query) {\n const encodedQuery = (0, parseqs_js_1.encode)(query);\n return encodedQuery.length ? \"?\" + encodedQuery : \"\";\n }\n}\nexports.Transport = Transport;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.transports = void 0;\nconst polling_js_1 = require(\"./polling.js\");\nconst websocket_js_1 = require(\"./websocket.js\");\nconst webtransport_js_1 = require(\"./webtransport.js\");\nexports.transports = {\n websocket: websocket_js_1.WS,\n webtransport: webtransport_js_1.WT,\n polling: polling_js_1.Polling,\n};\n","\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.Request = exports.Polling = void 0;\nconst transport_js_1 = require(\"../transport.js\");\nconst debug_1 = __importDefault(require(\"debug\")); // debug()\nconst yeast_js_1 = require(\"../contrib/yeast.js\");\nconst engine_io_parser_1 = require(\"engine.io-parser\");\nconst xmlhttprequest_js_1 = require(\"./xmlhttprequest.js\");\nconst component_emitter_1 = require(\"@socket.io/component-emitter\");\nconst util_js_1 = require(\"../util.js\");\nconst globalThis_js_1 = require(\"../globalThis.js\");\nconst debug = (0, debug_1.default)(\"engine.io-client:polling\"); // debug()\nfunction empty() { }\nconst hasXHR2 = (function () {\n const xhr = new xmlhttprequest_js_1.XHR({\n xdomain: false,\n });\n return null != xhr.responseType;\n})();\nclass Polling extends transport_js_1.Transport {\n /**\n * XHR Polling constructor.\n *\n * @param {Object} opts\n * @package\n */\n constructor(opts) {\n super(opts);\n this.polling = false;\n if (typeof location !== \"undefined\") {\n const isSSL = \"https:\" === location.protocol;\n let port = location.port;\n // some user agents have empty `location.port`\n if (!port) {\n port = isSSL ? \"443\" : \"80\";\n }\n this.xd =\n (typeof location !== \"undefined\" &&\n opts.hostname !== location.hostname) ||\n port !== opts.port;\n }\n /**\n * XHR supports binary\n */\n const forceBase64 = opts && opts.forceBase64;\n this.supportsBinary = hasXHR2 && !forceBase64;\n if (this.opts.withCredentials) {\n this.cookieJar = (0, xmlhttprequest_js_1.createCookieJar)();\n }\n }\n get name() {\n return \"polling\";\n }\n /**\n * Opens the socket (triggers polling). We write a PING message to determine\n * when the transport is open.\n *\n * @protected\n */\n doOpen() {\n this.poll();\n }\n /**\n * Pauses polling.\n *\n * @param {Function} onPause - callback upon buffers are flushed and transport is paused\n * @package\n */\n pause(onPause) {\n this.readyState = \"pausing\";\n const pause = () => {\n debug(\"paused\");\n this.readyState = \"paused\";\n onPause();\n };\n if (this.polling || !this.writable) {\n let total = 0;\n if (this.polling) {\n debug(\"we are currently polling - waiting to pause\");\n total++;\n this.once(\"pollComplete\", function () {\n debug(\"pre-pause polling complete\");\n --total || pause();\n });\n }\n if (!this.writable) {\n debug(\"we are currently writing - waiting to pause\");\n total++;\n this.once(\"drain\", function () {\n debug(\"pre-pause writing complete\");\n --total || pause();\n });\n }\n }\n else {\n pause();\n }\n }\n /**\n * Starts polling cycle.\n *\n * @private\n */\n poll() {\n debug(\"polling\");\n this.polling = true;\n this.doPoll();\n this.emitReserved(\"poll\");\n }\n /**\n * Overloads onData to detect payloads.\n *\n * @protected\n */\n onData(data) {\n debug(\"polling got data %s\", data);\n const callback = (packet) => {\n // if its the first message we consider the transport open\n if (\"opening\" === this.readyState && packet.type === \"open\") {\n this.onOpen();\n }\n // if its a close packet, we close the ongoing requests\n if (\"close\" === packet.type) {\n this.onClose({ description: \"transport closed by the server\" });\n return false;\n }\n // otherwise bypass onData and handle the message\n this.onPacket(packet);\n };\n // decode payload\n (0, engine_io_parser_1.decodePayload)(data, this.socket.binaryType).forEach(callback);\n // if an event did not trigger closing\n if (\"closed\" !== this.readyState) {\n // if we got data we're not polling\n this.polling = false;\n this.emitReserved(\"pollComplete\");\n if (\"open\" === this.readyState) {\n this.poll();\n }\n else {\n debug('ignoring poll - transport state \"%s\"', this.readyState);\n }\n }\n }\n /**\n * For polling, send a close packet.\n *\n * @protected\n */\n doClose() {\n const close = () => {\n debug(\"writing close packet\");\n this.write([{ type: \"close\" }]);\n };\n if (\"open\" === this.readyState) {\n debug(\"transport open - closing\");\n close();\n }\n else {\n // in case we're trying to close while\n // handshaking is in progress (GH-164)\n debug(\"transport not open - deferring close\");\n this.once(\"open\", close);\n }\n }\n /**\n * Writes a packets payload.\n *\n * @param {Array} packets - data packets\n * @protected\n */\n write(packets) {\n this.writable = false;\n (0, engine_io_parser_1.encodePayload)(packets, (data) => {\n this.doWrite(data, () => {\n this.writable = true;\n this.emitReserved(\"drain\");\n });\n });\n }\n /**\n * Generates uri for connection.\n *\n * @private\n */\n uri() {\n const schema = this.opts.secure ? \"https\" : \"http\";\n const query = this.query || {};\n // cache busting is forced\n if (false !== this.opts.timestampRequests) {\n query[this.opts.timestampParam] = (0, yeast_js_1.yeast)();\n }\n if (!this.supportsBinary && !query.sid) {\n query.b64 = 1;\n }\n return this.createUri(schema, query);\n }\n /**\n * Creates a request.\n *\n * @param {String} method\n * @private\n */\n request(opts = {}) {\n Object.assign(opts, { xd: this.xd, cookieJar: this.cookieJar }, this.opts);\n return new Request(this.uri(), opts);\n }\n /**\n * Sends data.\n *\n * @param {String} data to send.\n * @param {Function} called upon flush.\n * @private\n */\n doWrite(data, fn) {\n const req = this.request({\n method: \"POST\",\n data: data,\n });\n req.on(\"success\", fn);\n req.on(\"error\", (xhrStatus, context) => {\n this.onError(\"xhr post error\", xhrStatus, context);\n });\n }\n /**\n * Starts a poll cycle.\n *\n * @private\n */\n doPoll() {\n debug(\"xhr poll\");\n const req = this.request();\n req.on(\"data\", this.onData.bind(this));\n req.on(\"error\", (xhrStatus, context) => {\n this.onError(\"xhr poll error\", xhrStatus, context);\n });\n this.pollXhr = req;\n }\n}\nexports.Polling = Polling;\nclass Request extends component_emitter_1.Emitter {\n /**\n * Request constructor\n *\n * @param {Object} options\n * @package\n */\n constructor(uri, opts) {\n super();\n (0, util_js_1.installTimerFunctions)(this, opts);\n this.opts = opts;\n this.method = opts.method || \"GET\";\n this.uri = uri;\n this.data = undefined !== opts.data ? opts.data : null;\n this.create();\n }\n /**\n * Creates the XHR object and sends the request.\n *\n * @private\n */\n create() {\n var _a;\n const opts = (0, util_js_1.pick)(this.opts, \"agent\", \"pfx\", \"key\", \"passphrase\", \"cert\", \"ca\", \"ciphers\", \"rejectUnauthorized\", \"autoUnref\");\n opts.xdomain = !!this.opts.xd;\n const xhr = (this.xhr = new xmlhttprequest_js_1.XHR(opts));\n try {\n debug(\"xhr open %s: %s\", this.method, this.uri);\n xhr.open(this.method, this.uri, true);\n try {\n if (this.opts.extraHeaders) {\n xhr.setDisableHeaderCheck && xhr.setDisableHeaderCheck(true);\n for (let i in this.opts.extraHeaders) {\n if (this.opts.extraHeaders.hasOwnProperty(i)) {\n xhr.setRequestHeader(i, this.opts.extraHeaders[i]);\n }\n }\n }\n }\n catch (e) { }\n if (\"POST\" === this.method) {\n try {\n xhr.setRequestHeader(\"Content-type\", \"text/plain;charset=UTF-8\");\n }\n catch (e) { }\n }\n try {\n xhr.setRequestHeader(\"Accept\", \"*/*\");\n }\n catch (e) { }\n (_a = this.opts.cookieJar) === null || _a === void 0 ? void 0 : _a.addCookies(xhr);\n // ie6 check\n if (\"withCredentials\" in xhr) {\n xhr.withCredentials = this.opts.withCredentials;\n }\n if (this.opts.requestTimeout) {\n xhr.timeout = this.opts.requestTimeout;\n }\n xhr.onreadystatechange = () => {\n var _a;\n if (xhr.readyState === 3) {\n (_a = this.opts.cookieJar) === null || _a === void 0 ? void 0 : _a.parseCookies(xhr);\n }\n if (4 !== xhr.readyState)\n return;\n if (200 === xhr.status || 1223 === xhr.status) {\n this.onLoad();\n }\n else {\n // make sure the `error` event handler that's user-set\n // does not throw in the same tick and gets caught here\n this.setTimeoutFn(() => {\n this.onError(typeof xhr.status === \"number\" ? xhr.status : 0);\n }, 0);\n }\n };\n debug(\"xhr data %s\", this.data);\n xhr.send(this.data);\n }\n catch (e) {\n // Need to defer since .create() is called directly from the constructor\n // and thus the 'error' event can only be only bound *after* this exception\n // occurs. Therefore, also, we cannot throw here at all.\n this.setTimeoutFn(() => {\n this.onError(e);\n }, 0);\n return;\n }\n if (typeof document !== \"undefined\") {\n this.index = Request.requestsCount++;\n Request.requests[this.index] = this;\n }\n }\n /**\n * Called upon error.\n *\n * @private\n */\n onError(err) {\n this.emitReserved(\"error\", err, this.xhr);\n this.cleanup(true);\n }\n /**\n * Cleans up house.\n *\n * @private\n */\n cleanup(fromError) {\n if (\"undefined\" === typeof this.xhr || null === this.xhr) {\n return;\n }\n this.xhr.onreadystatechange = empty;\n if (fromError) {\n try {\n this.xhr.abort();\n }\n catch (e) { }\n }\n if (typeof document !== \"undefined\") {\n delete Request.requests[this.index];\n }\n this.xhr = null;\n }\n /**\n * Called upon load.\n *\n * @private\n */\n onLoad() {\n const data = this.xhr.responseText;\n if (data !== null) {\n this.emitReserved(\"data\", data);\n this.emitReserved(\"success\");\n this.cleanup();\n }\n }\n /**\n * Aborts the request.\n *\n * @package\n */\n abort() {\n this.cleanup();\n }\n}\nexports.Request = Request;\nRequest.requestsCount = 0;\nRequest.requests = {};\n/**\n * Aborts pending requests when unloading the window. This is needed to prevent\n * memory leaks (e.g. when using IE) and to ensure that no spurious error is\n * emitted.\n */\nif (typeof document !== \"undefined\") {\n // @ts-ignore\n if (typeof attachEvent === \"function\") {\n // @ts-ignore\n attachEvent(\"onunload\", unloadHandler);\n }\n else if (typeof addEventListener === \"function\") {\n const terminationEvent = \"onpagehide\" in globalThis_js_1.globalThisShim ? \"pagehide\" : \"unload\";\n addEventListener(terminationEvent, unloadHandler, false);\n }\n}\nfunction unloadHandler() {\n for (let i in Request.requests) {\n if (Request.requests.hasOwnProperty(i)) {\n Request.requests[i].abort();\n }\n }\n}\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.defaultBinaryType = exports.usingBrowserWebSocket = exports.WebSocket = exports.nextTick = void 0;\nconst globalThis_js_1 = require(\"../globalThis.js\");\nexports.nextTick = (() => {\n const isPromiseAvailable = typeof Promise === \"function\" && typeof Promise.resolve === \"function\";\n if (isPromiseAvailable) {\n return (cb) => Promise.resolve().then(cb);\n }\n else {\n return (cb, setTimeoutFn) => setTimeoutFn(cb, 0);\n }\n})();\nexports.WebSocket = globalThis_js_1.globalThisShim.WebSocket || globalThis_js_1.globalThisShim.MozWebSocket;\nexports.usingBrowserWebSocket = true;\nexports.defaultBinaryType = \"arraybuffer\";\n","\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.WS = void 0;\nconst transport_js_1 = require(\"../transport.js\");\nconst yeast_js_1 = require(\"../contrib/yeast.js\");\nconst util_js_1 = require(\"../util.js\");\nconst websocket_constructor_js_1 = require(\"./websocket-constructor.js\");\nconst debug_1 = __importDefault(require(\"debug\")); // debug()\nconst engine_io_parser_1 = require(\"engine.io-parser\");\nconst debug = (0, debug_1.default)(\"engine.io-client:websocket\"); // debug()\n// detect ReactNative environment\nconst isReactNative = typeof navigator !== \"undefined\" &&\n typeof navigator.product === \"string\" &&\n navigator.product.toLowerCase() === \"reactnative\";\nclass WS extends transport_js_1.Transport {\n /**\n * WebSocket transport constructor.\n *\n * @param {Object} opts - connection options\n * @protected\n */\n constructor(opts) {\n super(opts);\n this.supportsBinary = !opts.forceBase64;\n }\n get name() {\n return \"websocket\";\n }\n doOpen() {\n if (!this.check()) {\n // let probe timeout\n return;\n }\n const uri = this.uri();\n const protocols = this.opts.protocols;\n // React Native only supports the 'headers' option, and will print a warning if anything else is passed\n const opts = isReactNative\n ? {}\n : (0, util_js_1.pick)(this.opts, \"agent\", \"perMessageDeflate\", \"pfx\", \"key\", \"passphrase\", \"cert\", \"ca\", \"ciphers\", \"rejectUnauthorized\", \"localAddress\", \"protocolVersion\", \"origin\", \"maxPayload\", \"family\", \"checkServerIdentity\");\n if (this.opts.extraHeaders) {\n opts.headers = this.opts.extraHeaders;\n }\n try {\n this.ws =\n websocket_constructor_js_1.usingBrowserWebSocket && !isReactNative\n ? protocols\n ? new websocket_constructor_js_1.WebSocket(uri, protocols)\n : new websocket_constructor_js_1.WebSocket(uri)\n : new websocket_constructor_js_1.WebSocket(uri, protocols, opts);\n }\n catch (err) {\n return this.emitReserved(\"error\", err);\n }\n this.ws.binaryType = this.socket.binaryType;\n this.addEventListeners();\n }\n /**\n * Adds event listeners to the socket\n *\n * @private\n */\n addEventListeners() {\n this.ws.onopen = () => {\n if (this.opts.autoUnref) {\n this.ws._socket.unref();\n }\n this.onOpen();\n };\n this.ws.onclose = (closeEvent) => this.onClose({\n description: \"websocket connection closed\",\n context: closeEvent,\n });\n this.ws.onmessage = (ev) => this.onData(ev.data);\n this.ws.onerror = (e) => this.onError(\"websocket error\", e);\n }\n write(packets) {\n this.writable = false;\n // encodePacket efficient as it uses WS framing\n // no need for encodePayload\n for (let i = 0; i < packets.length; i++) {\n const packet = packets[i];\n const lastPacket = i === packets.length - 1;\n (0, engine_io_parser_1.encodePacket)(packet, this.supportsBinary, (data) => {\n // always create a new object (GH-437)\n const opts = {};\n if (!websocket_constructor_js_1.usingBrowserWebSocket) {\n if (packet.options) {\n opts.compress = packet.options.compress;\n }\n if (this.opts.perMessageDeflate) {\n const len = \n // @ts-ignore\n \"string\" === typeof data ? Buffer.byteLength(data) : data.length;\n if (len < this.opts.perMessageDeflate.threshold) {\n opts.compress = false;\n }\n }\n }\n // Sometimes the websocket has already been closed but the browser didn't\n // have a chance of informing us about it yet, in that case send will\n // throw an error\n try {\n if (websocket_constructor_js_1.usingBrowserWebSocket) {\n // TypeError is thrown when passing the second argument on Safari\n this.ws.send(data);\n }\n else {\n this.ws.send(data, opts);\n }\n }\n catch (e) {\n debug(\"websocket closed before onclose event\");\n }\n if (lastPacket) {\n // fake drain\n // defer to next tick to allow Socket to clear writeBuffer\n (0, websocket_constructor_js_1.nextTick)(() => {\n this.writable = true;\n this.emitReserved(\"drain\");\n }, this.setTimeoutFn);\n }\n });\n }\n }\n doClose() {\n if (typeof this.ws !== \"undefined\") {\n this.ws.close();\n this.ws = null;\n }\n }\n /**\n * Generates uri for connection.\n *\n * @private\n */\n uri() {\n const schema = this.opts.secure ? \"wss\" : \"ws\";\n const query = this.query || {};\n // append timestamp to URI\n if (this.opts.timestampRequests) {\n query[this.opts.timestampParam] = (0, yeast_js_1.yeast)();\n }\n // communicate binary support capabilities\n if (!this.supportsBinary) {\n query.b64 = 1;\n }\n return this.createUri(schema, query);\n }\n /**\n * Feature detection for WebSocket.\n *\n * @return {Boolean} whether this transport is available.\n * @private\n */\n check() {\n return !!websocket_constructor_js_1.WebSocket;\n }\n}\nexports.WS = WS;\n","\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.WT = void 0;\nconst transport_js_1 = require(\"../transport.js\");\nconst websocket_constructor_js_1 = require(\"./websocket-constructor.js\");\nconst engine_io_parser_1 = require(\"engine.io-parser\");\nconst debug_1 = __importDefault(require(\"debug\")); // debug()\nconst debug = (0, debug_1.default)(\"engine.io-client:webtransport\"); // debug()\nclass WT extends transport_js_1.Transport {\n get name() {\n return \"webtransport\";\n }\n doOpen() {\n // @ts-ignore\n if (typeof WebTransport !== \"function\") {\n return;\n }\n // @ts-ignore\n this.transport = new WebTransport(this.createUri(\"https\"), this.opts.transportOptions[this.name]);\n this.transport.closed\n .then(() => {\n debug(\"transport closed gracefully\");\n this.onClose();\n })\n .catch((err) => {\n debug(\"transport closed due to %s\", err);\n this.onError(\"webtransport error\", err);\n });\n // note: we could have used async/await, but that would require some additional polyfills\n this.transport.ready.then(() => {\n this.transport.createBidirectionalStream().then((stream) => {\n const decoderStream = (0, engine_io_parser_1.createPacketDecoderStream)(Number.MAX_SAFE_INTEGER, this.socket.binaryType);\n const reader = stream.readable.pipeThrough(decoderStream).getReader();\n const encoderStream = (0, engine_io_parser_1.createPacketEncoderStream)();\n encoderStream.readable.pipeTo(stream.writable);\n this.writer = encoderStream.writable.getWriter();\n const read = () => {\n reader\n .read()\n .then(({ done, value }) => {\n if (done) {\n debug(\"session is closed\");\n return;\n }\n debug(\"received chunk: %o\", value);\n this.onPacket(value);\n read();\n })\n .catch((err) => {\n debug(\"an error occurred while reading: %s\", err);\n });\n };\n read();\n const packet = { type: \"open\" };\n if (this.query.sid) {\n packet.data = `{\"sid\":\"${this.query.sid}\"}`;\n }\n this.writer.write(packet).then(() => this.onOpen());\n });\n });\n }\n write(packets) {\n this.writable = false;\n for (let i = 0; i < packets.length; i++) {\n const packet = packets[i];\n const lastPacket = i === packets.length - 1;\n this.writer.write(packet).then(() => {\n if (lastPacket) {\n (0, websocket_constructor_js_1.nextTick)(() => {\n this.writable = true;\n this.emitReserved(\"drain\");\n }, this.setTimeoutFn);\n }\n });\n }\n }\n doClose() {\n var _a;\n (_a = this.transport) === null || _a === void 0 ? void 0 : _a.close();\n }\n}\nexports.WT = WT;\n","\"use strict\";\n// browser shim for xmlhttprequest module\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.createCookieJar = exports.XHR = void 0;\nconst has_cors_js_1 = require(\"../contrib/has-cors.js\");\nconst globalThis_js_1 = require(\"../globalThis.js\");\nfunction XHR(opts) {\n const xdomain = opts.xdomain;\n // XMLHttpRequest can be disabled on IE\n try {\n if (\"undefined\" !== typeof XMLHttpRequest && (!xdomain || has_cors_js_1.hasCORS)) {\n return new XMLHttpRequest();\n }\n }\n catch (e) { }\n if (!xdomain) {\n try {\n return new globalThis_js_1.globalThisShim[[\"Active\"].concat(\"Object\").join(\"X\")](\"Microsoft.XMLHTTP\");\n }\n catch (e) { }\n }\n}\nexports.XHR = XHR;\nfunction createCookieJar() { }\nexports.createCookieJar = createCookieJar;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.byteLength = exports.installTimerFunctions = exports.pick = void 0;\nconst globalThis_js_1 = require(\"./globalThis.js\");\nfunction pick(obj, ...attr) {\n return attr.reduce((acc, k) => {\n if (obj.hasOwnProperty(k)) {\n acc[k] = obj[k];\n }\n return acc;\n }, {});\n}\nexports.pick = pick;\n// Keep a reference to the real timeout functions so they can be used when overridden\nconst NATIVE_SET_TIMEOUT = globalThis_js_1.globalThisShim.setTimeout;\nconst NATIVE_CLEAR_TIMEOUT = globalThis_js_1.globalThisShim.clearTimeout;\nfunction installTimerFunctions(obj, opts) {\n if (opts.useNativeTimers) {\n obj.setTimeoutFn = NATIVE_SET_TIMEOUT.bind(globalThis_js_1.globalThisShim);\n obj.clearTimeoutFn = NATIVE_CLEAR_TIMEOUT.bind(globalThis_js_1.globalThisShim);\n }\n else {\n obj.setTimeoutFn = globalThis_js_1.globalThisShim.setTimeout.bind(globalThis_js_1.globalThisShim);\n obj.clearTimeoutFn = globalThis_js_1.globalThisShim.clearTimeout.bind(globalThis_js_1.globalThisShim);\n }\n}\nexports.installTimerFunctions = installTimerFunctions;\n// base64 encoded buffers are about 33% bigger (https://en.wikipedia.org/wiki/Base64)\nconst BASE64_OVERHEAD = 1.33;\n// we could also have used `new Blob([obj]).size`, but it isn't supported in IE9\nfunction byteLength(obj) {\n if (typeof obj === \"string\") {\n return utf8Length(obj);\n }\n // arraybuffer or blob\n return Math.ceil((obj.byteLength || obj.size) * BASE64_OVERHEAD);\n}\nexports.byteLength = byteLength;\nfunction utf8Length(str) {\n let c = 0, length = 0;\n for (let i = 0, l = str.length; i < l; i++) {\n c = str.charCodeAt(i);\n if (c < 0x80) {\n length += 1;\n }\n else if (c < 0x800) {\n length += 2;\n }\n else if (c < 0xd800 || c >= 0xe000) {\n length += 3;\n }\n else {\n i++;\n length += 4;\n }\n }\n return length;\n}\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ERROR_PACKET = exports.PACKET_TYPES_REVERSE = exports.PACKET_TYPES = void 0;\nconst PACKET_TYPES = Object.create(null); // no Map = no polyfill\nexports.PACKET_TYPES = PACKET_TYPES;\nPACKET_TYPES[\"open\"] = \"0\";\nPACKET_TYPES[\"close\"] = \"1\";\nPACKET_TYPES[\"ping\"] = \"2\";\nPACKET_TYPES[\"pong\"] = \"3\";\nPACKET_TYPES[\"message\"] = \"4\";\nPACKET_TYPES[\"upgrade\"] = \"5\";\nPACKET_TYPES[\"noop\"] = \"6\";\nconst PACKET_TYPES_REVERSE = Object.create(null);\nexports.PACKET_TYPES_REVERSE = PACKET_TYPES_REVERSE;\nObject.keys(PACKET_TYPES).forEach((key) => {\n PACKET_TYPES_REVERSE[PACKET_TYPES[key]] = key;\n});\nconst ERROR_PACKET = { type: \"error\", data: \"parser error\" };\nexports.ERROR_PACKET = ERROR_PACKET;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.decode = exports.encode = void 0;\n// imported from https://github.com/socketio/base64-arraybuffer\nconst chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';\n// Use a lookup table to find the index.\nconst lookup = typeof Uint8Array === 'undefined' ? [] : new Uint8Array(256);\nfor (let i = 0; i < chars.length; i++) {\n lookup[chars.charCodeAt(i)] = i;\n}\nconst encode = (arraybuffer) => {\n let bytes = new Uint8Array(arraybuffer), i, len = bytes.length, base64 = '';\n for (i = 0; i < len; i += 3) {\n base64 += chars[bytes[i] >> 2];\n base64 += chars[((bytes[i] & 3) << 4) | (bytes[i + 1] >> 4)];\n base64 += chars[((bytes[i + 1] & 15) << 2) | (bytes[i + 2] >> 6)];\n base64 += chars[bytes[i + 2] & 63];\n }\n if (len % 3 === 2) {\n base64 = base64.substring(0, base64.length - 1) + '=';\n }\n else if (len % 3 === 1) {\n base64 = base64.substring(0, base64.length - 2) + '==';\n }\n return base64;\n};\nexports.encode = encode;\nconst decode = (base64) => {\n let bufferLength = base64.length * 0.75, len = base64.length, i, p = 0, encoded1, encoded2, encoded3, encoded4;\n if (base64[base64.length - 1] === '=') {\n bufferLength--;\n if (base64[base64.length - 2] === '=') {\n bufferLength--;\n }\n }\n const arraybuffer = new ArrayBuffer(bufferLength), bytes = new Uint8Array(arraybuffer);\n for (i = 0; i < len; i += 4) {\n encoded1 = lookup[base64.charCodeAt(i)];\n encoded2 = lookup[base64.charCodeAt(i + 1)];\n encoded3 = lookup[base64.charCodeAt(i + 2)];\n encoded4 = lookup[base64.charCodeAt(i + 3)];\n bytes[p++] = (encoded1 << 2) | (encoded2 >> 4);\n bytes[p++] = ((encoded2 & 15) << 4) | (encoded3 >> 2);\n bytes[p++] = ((encoded3 & 3) << 6) | (encoded4 & 63);\n }\n return arraybuffer;\n};\nexports.decode = decode;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.decodePacket = void 0;\nconst commons_js_1 = require(\"./commons.js\");\nconst base64_arraybuffer_js_1 = require(\"./contrib/base64-arraybuffer.js\");\nconst withNativeArrayBuffer = typeof ArrayBuffer === \"function\";\nconst decodePacket = (encodedPacket, binaryType) => {\n if (typeof encodedPacket !== \"string\") {\n return {\n type: \"message\",\n data: mapBinary(encodedPacket, binaryType),\n };\n }\n const type = encodedPacket.charAt(0);\n if (type === \"b\") {\n return {\n type: \"message\",\n data: decodeBase64Packet(encodedPacket.substring(1), binaryType),\n };\n }\n const packetType = commons_js_1.PACKET_TYPES_REVERSE[type];\n if (!packetType) {\n return commons_js_1.ERROR_PACKET;\n }\n return encodedPacket.length > 1\n ? {\n type: commons_js_1.PACKET_TYPES_REVERSE[type],\n data: encodedPacket.substring(1),\n }\n : {\n type: commons_js_1.PACKET_TYPES_REVERSE[type],\n };\n};\nexports.decodePacket = decodePacket;\nconst decodeBase64Packet = (data, binaryType) => {\n if (withNativeArrayBuffer) {\n const decoded = (0, base64_arraybuffer_js_1.decode)(data);\n return mapBinary(decoded, binaryType);\n }\n else {\n return { base64: true, data }; // fallback for old browsers\n }\n};\nconst mapBinary = (data, binaryType) => {\n switch (binaryType) {\n case \"blob\":\n if (data instanceof Blob) {\n // from WebSocket + binaryType \"blob\"\n return data;\n }\n else {\n // from HTTP long-polling or WebTransport\n return new Blob([data]);\n }\n case \"arraybuffer\":\n default:\n if (data instanceof ArrayBuffer) {\n // from HTTP long-polling (base64) or WebSocket + binaryType \"arraybuffer\"\n return data;\n }\n else {\n // from WebTransport (Uint8Array)\n return data.buffer;\n }\n }\n};\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.encodePacket = exports.encodePacketToBinary = void 0;\nconst commons_js_1 = require(\"./commons.js\");\nconst withNativeBlob = typeof Blob === \"function\" ||\n (typeof Blob !== \"undefined\" &&\n Object.prototype.toString.call(Blob) === \"[object BlobConstructor]\");\nconst withNativeArrayBuffer = typeof ArrayBuffer === \"function\";\n// ArrayBuffer.isView method is not defined in IE10\nconst isView = (obj) => {\n return typeof ArrayBuffer.isView === \"function\"\n ? ArrayBuffer.isView(obj)\n : obj && obj.buffer instanceof ArrayBuffer;\n};\nconst encodePacket = ({ type, data }, supportsBinary, callback) => {\n if (withNativeBlob && data instanceof Blob) {\n if (supportsBinary) {\n return callback(data);\n }\n else {\n return encodeBlobAsBase64(data, callback);\n }\n }\n else if (withNativeArrayBuffer &&\n (data instanceof ArrayBuffer || isView(data))) {\n if (supportsBinary) {\n return callback(data);\n }\n else {\n return encodeBlobAsBase64(new Blob([data]), callback);\n }\n }\n // plain string\n return callback(commons_js_1.PACKET_TYPES[type] + (data || \"\"));\n};\nexports.encodePacket = encodePacket;\nconst encodeBlobAsBase64 = (data, callback) => {\n const fileReader = new FileReader();\n fileReader.onload = function () {\n const content = fileReader.result.split(\",\")[1];\n callback(\"b\" + (content || \"\"));\n };\n return fileReader.readAsDataURL(data);\n};\nfunction toArray(data) {\n if (data instanceof Uint8Array) {\n return data;\n }\n else if (data instanceof ArrayBuffer) {\n return new Uint8Array(data);\n }\n else {\n return new Uint8Array(data.buffer, data.byteOffset, data.byteLength);\n }\n}\nlet TEXT_ENCODER;\nfunction encodePacketToBinary(packet, callback) {\n if (withNativeBlob && packet.data instanceof Blob) {\n return packet.data.arrayBuffer().then(toArray).then(callback);\n }\n else if (withNativeArrayBuffer &&\n (packet.data instanceof ArrayBuffer || isView(packet.data))) {\n return callback(toArray(packet.data));\n }\n encodePacket(packet, false, (encoded) => {\n if (!TEXT_ENCODER) {\n TEXT_ENCODER = new TextEncoder();\n }\n callback(TEXT_ENCODER.encode(encoded));\n });\n}\nexports.encodePacketToBinary = encodePacketToBinary;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.decodePayload = exports.decodePacket = exports.encodePayload = exports.encodePacket = exports.protocol = exports.createPacketDecoderStream = exports.createPacketEncoderStream = void 0;\nconst encodePacket_js_1 = require(\"./encodePacket.js\");\nObject.defineProperty(exports, \"encodePacket\", { enumerable: true, get: function () { return encodePacket_js_1.encodePacket; } });\nconst decodePacket_js_1 = require(\"./decodePacket.js\");\nObject.defineProperty(exports, \"decodePacket\", { enumerable: true, get: function () { return decodePacket_js_1.decodePacket; } });\nconst commons_js_1 = require(\"./commons.js\");\nconst SEPARATOR = String.fromCharCode(30); // see https://en.wikipedia.org/wiki/Delimiter#ASCII_delimited_text\nconst encodePayload = (packets, callback) => {\n // some packets may be added to the array while encoding, so the initial length must be saved\n const length = packets.length;\n const encodedPackets = new Array(length);\n let count = 0;\n packets.forEach((packet, i) => {\n // force base64 encoding for binary packets\n (0, encodePacket_js_1.encodePacket)(packet, false, (encodedPacket) => {\n encodedPackets[i] = encodedPacket;\n if (++count === length) {\n callback(encodedPackets.join(SEPARATOR));\n }\n });\n });\n};\nexports.encodePayload = encodePayload;\nconst decodePayload = (encodedPayload, binaryType) => {\n const encodedPackets = encodedPayload.split(SEPARATOR);\n const packets = [];\n for (let i = 0; i < encodedPackets.length; i++) {\n const decodedPacket = (0, decodePacket_js_1.decodePacket)(encodedPackets[i], binaryType);\n packets.push(decodedPacket);\n if (decodedPacket.type === \"error\") {\n break;\n }\n }\n return packets;\n};\nexports.decodePayload = decodePayload;\nfunction createPacketEncoderStream() {\n // @ts-expect-error\n return new TransformStream({\n transform(packet, controller) {\n (0, encodePacket_js_1.encodePacketToBinary)(packet, (encodedPacket) => {\n const payloadLength = encodedPacket.length;\n let header;\n // inspired by the WebSocket format: https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API/Writing_WebSocket_servers#decoding_payload_length\n if (payloadLength < 126) {\n header = new Uint8Array(1);\n new DataView(header.buffer).setUint8(0, payloadLength);\n }\n else if (payloadLength < 65536) {\n header = new Uint8Array(3);\n const view = new DataView(header.buffer);\n view.setUint8(0, 126);\n view.setUint16(1, payloadLength);\n }\n else {\n header = new Uint8Array(9);\n const view = new DataView(header.buffer);\n view.setUint8(0, 127);\n view.setBigUint64(1, BigInt(payloadLength));\n }\n // first bit indicates whether the payload is plain text (0) or binary (1)\n if (packet.data && typeof packet.data !== \"string\") {\n header[0] |= 0x80;\n }\n controller.enqueue(header);\n controller.enqueue(encodedPacket);\n });\n },\n });\n}\nexports.createPacketEncoderStream = createPacketEncoderStream;\nlet TEXT_DECODER;\nfunction totalLength(chunks) {\n return chunks.reduce((acc, chunk) => acc + chunk.length, 0);\n}\nfunction concatChunks(chunks, size) {\n if (chunks[0].length === size) {\n return chunks.shift();\n }\n const buffer = new Uint8Array(size);\n let j = 0;\n for (let i = 0; i < size; i++) {\n buffer[i] = chunks[0][j++];\n if (j === chunks[0].length) {\n chunks.shift();\n j = 0;\n }\n }\n if (chunks.length && j < chunks[0].length) {\n chunks[0] = chunks[0].slice(j);\n }\n return buffer;\n}\nfunction createPacketDecoderStream(maxPayload, binaryType) {\n if (!TEXT_DECODER) {\n TEXT_DECODER = new TextDecoder();\n }\n const chunks = [];\n let state = 0 /* READ_HEADER */;\n let expectedLength = -1;\n let isBinary = false;\n // @ts-expect-error\n return new TransformStream({\n transform(chunk, controller) {\n chunks.push(chunk);\n while (true) {\n if (state === 0 /* READ_HEADER */) {\n if (totalLength(chunks) < 1) {\n break;\n }\n const header = concatChunks(chunks, 1);\n isBinary = (header[0] & 0x80) === 0x80;\n expectedLength = header[0] & 0x7f;\n if (expectedLength < 126) {\n state = 3 /* READ_PAYLOAD */;\n }\n else if (expectedLength === 126) {\n state = 1 /* READ_EXTENDED_LENGTH_16 */;\n }\n else {\n state = 2 /* READ_EXTENDED_LENGTH_64 */;\n }\n }\n else if (state === 1 /* READ_EXTENDED_LENGTH_16 */) {\n if (totalLength(chunks) < 2) {\n break;\n }\n const headerArray = concatChunks(chunks, 2);\n expectedLength = new DataView(headerArray.buffer, headerArray.byteOffset, headerArray.length).getUint16(0);\n state = 3 /* READ_PAYLOAD */;\n }\n else if (state === 2 /* READ_EXTENDED_LENGTH_64 */) {\n if (totalLength(chunks) < 8) {\n break;\n }\n const headerArray = concatChunks(chunks, 8);\n const view = new DataView(headerArray.buffer, headerArray.byteOffset, headerArray.length);\n const n = view.getUint32(0);\n if (n > Math.pow(2, 53 - 32) - 1) {\n // the maximum safe integer in JavaScript is 2^53 - 1\n controller.enqueue(commons_js_1.ERROR_PACKET);\n break;\n }\n expectedLength = n * Math.pow(2, 32) + view.getUint32(4);\n state = 3 /* READ_PAYLOAD */;\n }\n else {\n if (totalLength(chunks) < expectedLength) {\n break;\n }\n const data = concatChunks(chunks, expectedLength);\n controller.enqueue((0, decodePacket_js_1.decodePacket)(isBinary ? data : TEXT_DECODER.decode(data), binaryType));\n state = 0 /* READ_HEADER */;\n }\n if (expectedLength === 0 || expectedLength > maxPayload) {\n controller.enqueue(commons_js_1.ERROR_PACKET);\n break;\n }\n }\n },\n });\n}\nexports.createPacketDecoderStream = createPacketDecoderStream;\nexports.protocol = 4;\n","\"use strict\";\n/**\n * Initialize backoff timer with `opts`.\n *\n * - `min` initial timeout in milliseconds [100]\n * - `max` max timeout [10000]\n * - `jitter` [0]\n * - `factor` [2]\n *\n * @param {Object} opts\n * @api public\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.Backoff = void 0;\nfunction Backoff(opts) {\n opts = opts || {};\n this.ms = opts.min || 100;\n this.max = opts.max || 10000;\n this.factor = opts.factor || 2;\n this.jitter = opts.jitter > 0 && opts.jitter <= 1 ? opts.jitter : 0;\n this.attempts = 0;\n}\nexports.Backoff = Backoff;\n/**\n * Return the backoff duration.\n *\n * @return {Number}\n * @api public\n */\nBackoff.prototype.duration = function () {\n var ms = this.ms * Math.pow(this.factor, this.attempts++);\n if (this.jitter) {\n var rand = Math.random();\n var deviation = Math.floor(rand * this.jitter * ms);\n ms = (Math.floor(rand * 10) & 1) == 0 ? ms - deviation : ms + deviation;\n }\n return Math.min(ms, this.max) | 0;\n};\n/**\n * Reset the number of attempts.\n *\n * @api public\n */\nBackoff.prototype.reset = function () {\n this.attempts = 0;\n};\n/**\n * Set the minimum duration\n *\n * @api public\n */\nBackoff.prototype.setMin = function (min) {\n this.ms = min;\n};\n/**\n * Set the maximum duration\n *\n * @api public\n */\nBackoff.prototype.setMax = function (max) {\n this.max = max;\n};\n/**\n * Set the jitter\n *\n * @api public\n */\nBackoff.prototype.setJitter = function (jitter) {\n this.jitter = jitter;\n};\n","\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.default = exports.connect = exports.io = exports.Socket = exports.Manager = exports.protocol = void 0;\nconst url_js_1 = require(\"./url.js\");\nconst manager_js_1 = require(\"./manager.js\");\nObject.defineProperty(exports, \"Manager\", { enumerable: true, get: function () { return manager_js_1.Manager; } });\nconst socket_js_1 = require(\"./socket.js\");\nObject.defineProperty(exports, \"Socket\", { enumerable: true, get: function () { return socket_js_1.Socket; } });\nconst debug_1 = __importDefault(require(\"debug\")); // debug()\nconst debug = debug_1.default(\"socket.io-client\"); // debug()\n/**\n * Managers cache.\n */\nconst cache = {};\nfunction lookup(uri, opts) {\n if (typeof uri === \"object\") {\n opts = uri;\n uri = undefined;\n }\n opts = opts || {};\n const parsed = url_js_1.url(uri, opts.path || \"/socket.io\");\n const source = parsed.source;\n const id = parsed.id;\n const path = parsed.path;\n const sameNamespace = cache[id] && path in cache[id][\"nsps\"];\n const newConnection = opts.forceNew ||\n opts[\"force new connection\"] ||\n false === opts.multiplex ||\n sameNamespace;\n let io;\n if (newConnection) {\n debug(\"ignoring socket cache for %s\", source);\n io = new manager_js_1.Manager(source, opts);\n }\n else {\n if (!cache[id]) {\n debug(\"new io instance for %s\", source);\n cache[id] = new manager_js_1.Manager(source, opts);\n }\n io = cache[id];\n }\n if (parsed.query && !opts.query) {\n opts.query = parsed.queryKey;\n }\n return io.socket(parsed.path, opts);\n}\nexports.io = lookup;\nexports.connect = lookup;\nexports.default = lookup;\n// so that \"lookup\" can be used both as a function (e.g. `io(...)`) and as a\n// namespace (e.g. `io.connect(...)`), for backward compatibility\nObject.assign(lookup, {\n Manager: manager_js_1.Manager,\n Socket: socket_js_1.Socket,\n io: lookup,\n connect: lookup,\n});\n/**\n * Protocol version.\n *\n * @public\n */\nvar socket_io_parser_1 = require(\"socket.io-parser\");\nObject.defineProperty(exports, \"protocol\", { enumerable: true, get: function () { return socket_io_parser_1.protocol; } });\n\nmodule.exports = lookup;\n","\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.Manager = void 0;\nconst engine_io_client_1 = require(\"engine.io-client\");\nconst socket_js_1 = require(\"./socket.js\");\nconst parser = __importStar(require(\"socket.io-parser\"));\nconst on_js_1 = require(\"./on.js\");\nconst backo2_js_1 = require(\"./contrib/backo2.js\");\nconst component_emitter_1 = require(\"@socket.io/component-emitter\");\nconst debug_1 = __importDefault(require(\"debug\")); // debug()\nconst debug = debug_1.default(\"socket.io-client:manager\"); // debug()\nclass Manager extends component_emitter_1.Emitter {\n constructor(uri, opts) {\n var _a;\n super();\n this.nsps = {};\n this.subs = [];\n if (uri && \"object\" === typeof uri) {\n opts = uri;\n uri = undefined;\n }\n opts = opts || {};\n opts.path = opts.path || \"/socket.io\";\n this.opts = opts;\n engine_io_client_1.installTimerFunctions(this, opts);\n this.reconnection(opts.reconnection !== false);\n this.reconnectionAttempts(opts.reconnectionAttempts || Infinity);\n this.reconnectionDelay(opts.reconnectionDelay || 1000);\n this.reconnectionDelayMax(opts.reconnectionDelayMax || 5000);\n this.randomizationFactor((_a = opts.randomizationFactor) !== null && _a !== void 0 ? _a : 0.5);\n this.backoff = new backo2_js_1.Backoff({\n min: this.reconnectionDelay(),\n max: this.reconnectionDelayMax(),\n jitter: this.randomizationFactor(),\n });\n this.timeout(null == opts.timeout ? 20000 : opts.timeout);\n this._readyState = \"closed\";\n this.uri = uri;\n const _parser = opts.parser || parser;\n this.encoder = new _parser.Encoder();\n this.decoder = new _parser.Decoder();\n this._autoConnect = opts.autoConnect !== false;\n if (this._autoConnect)\n this.open();\n }\n reconnection(v) {\n if (!arguments.length)\n return this._reconnection;\n this._reconnection = !!v;\n return this;\n }\n reconnectionAttempts(v) {\n if (v === undefined)\n return this._reconnectionAttempts;\n this._reconnectionAttempts = v;\n return this;\n }\n reconnectionDelay(v) {\n var _a;\n if (v === undefined)\n return this._reconnectionDelay;\n this._reconnectionDelay = v;\n (_a = this.backoff) === null || _a === void 0 ? void 0 : _a.setMin(v);\n return this;\n }\n randomizationFactor(v) {\n var _a;\n if (v === undefined)\n return this._randomizationFactor;\n this._randomizationFactor = v;\n (_a = this.backoff) === null || _a === void 0 ? void 0 : _a.setJitter(v);\n return this;\n }\n reconnectionDelayMax(v) {\n var _a;\n if (v === undefined)\n return this._reconnectionDelayMax;\n this._reconnectionDelayMax = v;\n (_a = this.backoff) === null || _a === void 0 ? void 0 : _a.setMax(v);\n return this;\n }\n timeout(v) {\n if (!arguments.length)\n return this._timeout;\n this._timeout = v;\n return this;\n }\n /**\n * Starts trying to reconnect if reconnection is enabled and we have not\n * started reconnecting yet\n *\n * @private\n */\n maybeReconnectOnOpen() {\n // Only try to reconnect if it's the first time we're connecting\n if (!this._reconnecting &&\n this._reconnection &&\n this.backoff.attempts === 0) {\n // keeps reconnection from firing twice for the same reconnection loop\n this.reconnect();\n }\n }\n /**\n * Sets the current transport `socket`.\n *\n * @param {Function} fn - optional, callback\n * @return self\n * @public\n */\n open(fn) {\n debug(\"readyState %s\", this._readyState);\n if (~this._readyState.indexOf(\"open\"))\n return this;\n debug(\"opening %s\", this.uri);\n this.engine = new engine_io_client_1.Socket(this.uri, this.opts);\n const socket = this.engine;\n const self = this;\n this._readyState = \"opening\";\n this.skipReconnect = false;\n // emit `open`\n const openSubDestroy = on_js_1.on(socket, \"open\", function () {\n self.onopen();\n fn && fn();\n });\n const onError = (err) => {\n debug(\"error\");\n this.cleanup();\n this._readyState = \"closed\";\n this.emitReserved(\"error\", err);\n if (fn) {\n fn(err);\n }\n else {\n // Only do this if there is no fn to handle the error\n this.maybeReconnectOnOpen();\n }\n };\n // emit `error`\n const errorSub = on_js_1.on(socket, \"error\", onError);\n if (false !== this._timeout) {\n const timeout = this._timeout;\n debug(\"connect attempt will timeout after %d\", timeout);\n // set timer\n const timer = this.setTimeoutFn(() => {\n debug(\"connect attempt timed out after %d\", timeout);\n openSubDestroy();\n onError(new Error(\"timeout\"));\n socket.close();\n }, timeout);\n if (this.opts.autoUnref) {\n timer.unref();\n }\n this.subs.push(() => {\n this.clearTimeoutFn(timer);\n });\n }\n this.subs.push(openSubDestroy);\n this.subs.push(errorSub);\n return this;\n }\n /**\n * Alias for open()\n *\n * @return self\n * @public\n */\n connect(fn) {\n return this.open(fn);\n }\n /**\n * Called upon transport open.\n *\n * @private\n */\n onopen() {\n debug(\"open\");\n // clear old subs\n this.cleanup();\n // mark as open\n this._readyState = \"open\";\n this.emitReserved(\"open\");\n // add new subs\n const socket = this.engine;\n this.subs.push(on_js_1.on(socket, \"ping\", this.onping.bind(this)), on_js_1.on(socket, \"data\", this.ondata.bind(this)), on_js_1.on(socket, \"error\", this.onerror.bind(this)), on_js_1.on(socket, \"close\", this.onclose.bind(this)), on_js_1.on(this.decoder, \"decoded\", this.ondecoded.bind(this)));\n }\n /**\n * Called upon a ping.\n *\n * @private\n */\n onping() {\n this.emitReserved(\"ping\");\n }\n /**\n * Called with data.\n *\n * @private\n */\n ondata(data) {\n try {\n this.decoder.add(data);\n }\n catch (e) {\n this.onclose(\"parse error\", e);\n }\n }\n /**\n * Called when parser fully decodes a packet.\n *\n * @private\n */\n ondecoded(packet) {\n // the nextTick call prevents an exception in a user-provided event listener from triggering a disconnection due to a \"parse error\"\n engine_io_client_1.nextTick(() => {\n this.emitReserved(\"packet\", packet);\n }, this.setTimeoutFn);\n }\n /**\n * Called upon socket error.\n *\n * @private\n */\n onerror(err) {\n debug(\"error\", err);\n this.emitReserved(\"error\", err);\n }\n /**\n * Creates a new socket for the given `nsp`.\n *\n * @return {Socket}\n * @public\n */\n socket(nsp, opts) {\n let socket = this.nsps[nsp];\n if (!socket) {\n socket = new socket_js_1.Socket(this, nsp, opts);\n this.nsps[nsp] = socket;\n }\n else if (this._autoConnect && !socket.active) {\n socket.connect();\n }\n return socket;\n }\n /**\n * Called upon a socket close.\n *\n * @param socket\n * @private\n */\n _destroy(socket) {\n const nsps = Object.keys(this.nsps);\n for (const nsp of nsps) {\n const socket = this.nsps[nsp];\n if (socket.active) {\n debug(\"socket %s is still active, skipping close\", nsp);\n return;\n }\n }\n this._close();\n }\n /**\n * Writes a packet.\n *\n * @param packet\n * @private\n */\n _packet(packet) {\n debug(\"writing packet %j\", packet);\n const encodedPackets = this.encoder.encode(packet);\n for (let i = 0; i < encodedPackets.length; i++) {\n this.engine.write(encodedPackets[i], packet.options);\n }\n }\n /**\n * Clean up transport subscriptions and packet buffer.\n *\n * @private\n */\n cleanup() {\n debug(\"cleanup\");\n this.subs.forEach((subDestroy) => subDestroy());\n this.subs.length = 0;\n this.decoder.destroy();\n }\n /**\n * Close the current socket.\n *\n * @private\n */\n _close() {\n debug(\"disconnect\");\n this.skipReconnect = true;\n this._reconnecting = false;\n this.onclose(\"forced close\");\n if (this.engine)\n this.engine.close();\n }\n /**\n * Alias for close()\n *\n * @private\n */\n disconnect() {\n return this._close();\n }\n /**\n * Called upon engine close.\n *\n * @private\n */\n onclose(reason, description) {\n debug(\"closed due to %s\", reason);\n this.cleanup();\n this.backoff.reset();\n this._readyState = \"closed\";\n this.emitReserved(\"close\", reason, description);\n if (this._reconnection && !this.skipReconnect) {\n this.reconnect();\n }\n }\n /**\n * Attempt a reconnection.\n *\n * @private\n */\n reconnect() {\n if (this._reconnecting || this.skipReconnect)\n return this;\n const self = this;\n if (this.backoff.attempts >= this._reconnectionAttempts) {\n debug(\"reconnect failed\");\n this.backoff.reset();\n this.emitReserved(\"reconnect_failed\");\n this._reconnecting = false;\n }\n else {\n const delay = this.backoff.duration();\n debug(\"will wait %dms before reconnect attempt\", delay);\n this._reconnecting = true;\n const timer = this.setTimeoutFn(() => {\n if (self.skipReconnect)\n return;\n debug(\"attempting reconnect\");\n this.emitReserved(\"reconnect_attempt\", self.backoff.attempts);\n // check again for the case socket closed in above events\n if (self.skipReconnect)\n return;\n self.open((err) => {\n if (err) {\n debug(\"reconnect attempt error\");\n self._reconnecting = false;\n self.reconnect();\n this.emitReserved(\"reconnect_error\", err);\n }\n else {\n debug(\"reconnect success\");\n self.onreconnect();\n }\n });\n }, delay);\n if (this.opts.autoUnref) {\n timer.unref();\n }\n this.subs.push(() => {\n this.clearTimeoutFn(timer);\n });\n }\n }\n /**\n * Called upon successful reconnect.\n *\n * @private\n */\n onreconnect() {\n const attempt = this.backoff.attempts;\n this._reconnecting = false;\n this.backoff.reset();\n this.emitReserved(\"reconnect\", attempt);\n }\n}\nexports.Manager = Manager;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.on = void 0;\nfunction on(obj, ev, fn) {\n obj.on(ev, fn);\n return function subDestroy() {\n obj.off(ev, fn);\n };\n}\nexports.on = on;\n","\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.Socket = void 0;\nconst socket_io_parser_1 = require(\"socket.io-parser\");\nconst on_js_1 = require(\"./on.js\");\nconst component_emitter_1 = require(\"@socket.io/component-emitter\");\nconst debug_1 = __importDefault(require(\"debug\")); // debug()\nconst debug = debug_1.default(\"socket.io-client:socket\"); // debug()\n/**\n * Internal events.\n * These events can't be emitted by the user.\n */\nconst RESERVED_EVENTS = Object.freeze({\n connect: 1,\n connect_error: 1,\n disconnect: 1,\n disconnecting: 1,\n // EventEmitter reserved events: https://nodejs.org/api/events.html#events_event_newlistener\n newListener: 1,\n removeListener: 1,\n});\n/**\n * A Socket is the fundamental class for interacting with the server.\n *\n * A Socket belongs to a certain Namespace (by default /) and uses an underlying {@link Manager} to communicate.\n *\n * @example\n * const socket = io();\n *\n * socket.on(\"connect\", () => {\n * console.log(\"connected\");\n * });\n *\n * // send an event to the server\n * socket.emit(\"foo\", \"bar\");\n *\n * socket.on(\"foobar\", () => {\n * // an event was received from the server\n * });\n *\n * // upon disconnection\n * socket.on(\"disconnect\", (reason) => {\n * console.log(`disconnected due to ${reason}`);\n * });\n */\nclass Socket extends component_emitter_1.Emitter {\n /**\n * `Socket` constructor.\n */\n constructor(io, nsp, opts) {\n super();\n /**\n * Whether the socket is currently connected to the server.\n *\n * @example\n * const socket = io();\n *\n * socket.on(\"connect\", () => {\n * console.log(socket.connected); // true\n * });\n *\n * socket.on(\"disconnect\", () => {\n * console.log(socket.connected); // false\n * });\n */\n this.connected = false;\n /**\n * Whether the connection state was recovered after a temporary disconnection. In that case, any missed packets will\n * be transmitted by the server.\n */\n this.recovered = false;\n /**\n * Buffer for packets received before the CONNECT packet\n */\n this.receiveBuffer = [];\n /**\n * Buffer for packets that will be sent once the socket is connected\n */\n this.sendBuffer = [];\n /**\n * The queue of packets to be sent with retry in case of failure.\n *\n * Packets are sent one by one, each waiting for the server acknowledgement, in order to guarantee the delivery order.\n * @private\n */\n this._queue = [];\n /**\n * A sequence to generate the ID of the {@link QueuedPacket}.\n * @private\n */\n this._queueSeq = 0;\n this.ids = 0;\n this.acks = {};\n this.flags = {};\n this.io = io;\n this.nsp = nsp;\n if (opts && opts.auth) {\n this.auth = opts.auth;\n }\n this._opts = Object.assign({}, opts);\n if (this.io._autoConnect)\n this.open();\n }\n /**\n * Whether the socket is currently disconnected\n *\n * @example\n * const socket = io();\n *\n * socket.on(\"connect\", () => {\n * console.log(socket.disconnected); // false\n * });\n *\n * socket.on(\"disconnect\", () => {\n * console.log(socket.disconnected); // true\n * });\n */\n get disconnected() {\n return !this.connected;\n }\n /**\n * Subscribe to open, close and packet events\n *\n * @private\n */\n subEvents() {\n if (this.subs)\n return;\n const io = this.io;\n this.subs = [\n on_js_1.on(io, \"open\", this.onopen.bind(this)),\n on_js_1.on(io, \"packet\", this.onpacket.bind(this)),\n on_js_1.on(io, \"error\", this.onerror.bind(this)),\n on_js_1.on(io, \"close\", this.onclose.bind(this)),\n ];\n }\n /**\n * Whether the Socket will try to reconnect when its Manager connects or reconnects.\n *\n * @example\n * const socket = io();\n *\n * console.log(socket.active); // true\n *\n * socket.on(\"disconnect\", (reason) => {\n * if (reason === \"io server disconnect\") {\n * // the disconnection was initiated by the server, you need to manually reconnect\n * console.log(socket.active); // false\n * }\n * // else the socket will automatically try to reconnect\n * console.log(socket.active); // true\n * });\n */\n get active() {\n return !!this.subs;\n }\n /**\n * \"Opens\" the socket.\n *\n * @example\n * const socket = io({\n * autoConnect: false\n * });\n *\n * socket.connect();\n */\n connect() {\n if (this.connected)\n return this;\n this.subEvents();\n if (!this.io[\"_reconnecting\"])\n this.io.open(); // ensure open\n if (\"open\" === this.io._readyState)\n this.onopen();\n return this;\n }\n /**\n * Alias for {@link connect()}.\n */\n open() {\n return this.connect();\n }\n /**\n * Sends a `message` event.\n *\n * This method mimics the WebSocket.send() method.\n *\n * @see https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/send\n *\n * @example\n * socket.send(\"hello\");\n *\n * // this is equivalent to\n * socket.emit(\"message\", \"hello\");\n *\n * @return self\n */\n send(...args) {\n args.unshift(\"message\");\n this.emit.apply(this, args);\n return this;\n }\n /**\n * Override `emit`.\n * If the event is in `events`, it's emitted normally.\n *\n * @example\n * socket.emit(\"hello\", \"world\");\n *\n * // all serializable datastructures are supported (no need to call JSON.stringify)\n * socket.emit(\"hello\", 1, \"2\", { 3: [\"4\"], 5: Uint8Array.from([6]) });\n *\n * // with an acknowledgement from the server\n * socket.emit(\"hello\", \"world\", (val) => {\n * // ...\n * });\n *\n * @return self\n */\n emit(ev, ...args) {\n if (RESERVED_EVENTS.hasOwnProperty(ev)) {\n throw new Error('\"' + ev.toString() + '\" is a reserved event name');\n }\n args.unshift(ev);\n if (this._opts.retries && !this.flags.fromQueue && !this.flags.volatile) {\n this._addToQueue(args);\n return this;\n }\n const packet = {\n type: socket_io_parser_1.PacketType.EVENT,\n data: args,\n };\n packet.options = {};\n packet.options.compress = this.flags.compress !== false;\n // event ack callback\n if (\"function\" === typeof args[args.length - 1]) {\n const id = this.ids++;\n debug(\"emitting packet with ack id %d\", id);\n const ack = args.pop();\n this._registerAckCallback(id, ack);\n packet.id = id;\n }\n const isTransportWritable = this.io.engine &&\n this.io.engine.transport &&\n this.io.engine.transport.writable;\n const discardPacket = this.flags.volatile && (!isTransportWritable || !this.connected);\n if (discardPacket) {\n debug(\"discard packet as the transport is not currently writable\");\n }\n else if (this.connected) {\n this.notifyOutgoingListeners(packet);\n this.packet(packet);\n }\n else {\n this.sendBuffer.push(packet);\n }\n this.flags = {};\n return this;\n }\n /**\n * @private\n */\n _registerAckCallback(id, ack) {\n var _a;\n const timeout = (_a = this.flags.timeout) !== null && _a !== void 0 ? _a : this._opts.ackTimeout;\n if (timeout === undefined) {\n this.acks[id] = ack;\n return;\n }\n // @ts-ignore\n const timer = this.io.setTimeoutFn(() => {\n delete this.acks[id];\n for (let i = 0; i < this.sendBuffer.length; i++) {\n if (this.sendBuffer[i].id === id) {\n debug(\"removing packet with ack id %d from the buffer\", id);\n this.sendBuffer.splice(i, 1);\n }\n }\n debug(\"event with ack id %d has timed out after %d ms\", id, timeout);\n ack.call(this, new Error(\"operation has timed out\"));\n }, timeout);\n this.acks[id] = (...args) => {\n // @ts-ignore\n this.io.clearTimeoutFn(timer);\n ack.apply(this, [null, ...args]);\n };\n }\n /**\n * Emits an event and waits for an acknowledgement\n *\n * @example\n * // without timeout\n * const response = await socket.emitWithAck(\"hello\", \"world\");\n *\n * // with a specific timeout\n * try {\n * const response = await socket.timeout(1000).emitWithAck(\"hello\", \"world\");\n * } catch (err) {\n * // the server did not acknowledge the event in the given delay\n * }\n *\n * @return a Promise that will be fulfilled when the server acknowledges the event\n */\n emitWithAck(ev, ...args) {\n // the timeout flag is optional\n const withErr = this.flags.timeout !== undefined || this._opts.ackTimeout !== undefined;\n return new Promise((resolve, reject) => {\n args.push((arg1, arg2) => {\n if (withErr) {\n return arg1 ? reject(arg1) : resolve(arg2);\n }\n else {\n return resolve(arg1);\n }\n });\n this.emit(ev, ...args);\n });\n }\n /**\n * Add the packet to the queue.\n * @param args\n * @private\n */\n _addToQueue(args) {\n let ack;\n if (typeof args[args.length - 1] === \"function\") {\n ack = args.pop();\n }\n const packet = {\n id: this._queueSeq++,\n tryCount: 0,\n pending: false,\n args,\n flags: Object.assign({ fromQueue: true }, this.flags),\n };\n args.push((err, ...responseArgs) => {\n if (packet !== this._queue[0]) {\n // the packet has already been acknowledged\n return;\n }\n const hasError = err !== null;\n if (hasError) {\n if (packet.tryCount > this._opts.retries) {\n debug(\"packet [%d] is discarded after %d tries\", packet.id, packet.tryCount);\n this._queue.shift();\n if (ack) {\n ack(err);\n }\n }\n }\n else {\n debug(\"packet [%d] was successfully sent\", packet.id);\n this._queue.shift();\n if (ack) {\n ack(null, ...responseArgs);\n }\n }\n packet.pending = false;\n return this._drainQueue();\n });\n this._queue.push(packet);\n this._drainQueue();\n }\n /**\n * Send the first packet of the queue, and wait for an acknowledgement from the server.\n * @param force - whether to resend a packet that has not been acknowledged yet\n *\n * @private\n */\n _drainQueue(force = false) {\n debug(\"draining queue\");\n if (!this.connected || this._queue.length === 0) {\n return;\n }\n const packet = this._queue[0];\n if (packet.pending && !force) {\n debug(\"packet [%d] has already been sent and is waiting for an ack\", packet.id);\n return;\n }\n packet.pending = true;\n packet.tryCount++;\n debug(\"sending packet [%d] (try n°%d)\", packet.id, packet.tryCount);\n this.flags = packet.flags;\n this.emit.apply(this, packet.args);\n }\n /**\n * Sends a packet.\n *\n * @param packet\n * @private\n */\n packet(packet) {\n packet.nsp = this.nsp;\n this.io._packet(packet);\n }\n /**\n * Called upon engine `open`.\n *\n * @private\n */\n onopen() {\n debug(\"transport is open - connecting\");\n if (typeof this.auth == \"function\") {\n this.auth((data) => {\n this._sendConnectPacket(data);\n });\n }\n else {\n this._sendConnectPacket(this.auth);\n }\n }\n /**\n * Sends a CONNECT packet to initiate the Socket.IO session.\n *\n * @param data\n * @private\n */\n _sendConnectPacket(data) {\n this.packet({\n type: socket_io_parser_1.PacketType.CONNECT,\n data: this._pid\n ? Object.assign({ pid: this._pid, offset: this._lastOffset }, data)\n : data,\n });\n }\n /**\n * Called upon engine or manager `error`.\n *\n * @param err\n * @private\n */\n onerror(err) {\n if (!this.connected) {\n this.emitReserved(\"connect_error\", err);\n }\n }\n /**\n * Called upon engine `close`.\n *\n * @param reason\n * @param description\n * @private\n */\n onclose(reason, description) {\n debug(\"close (%s)\", reason);\n this.connected = false;\n delete this.id;\n this.emitReserved(\"disconnect\", reason, description);\n }\n /**\n * Called with socket packet.\n *\n * @param packet\n * @private\n */\n onpacket(packet) {\n const sameNamespace = packet.nsp === this.nsp;\n if (!sameNamespace)\n return;\n switch (packet.type) {\n case socket_io_parser_1.PacketType.CONNECT:\n if (packet.data && packet.data.sid) {\n this.onconnect(packet.data.sid, packet.data.pid);\n }\n else {\n this.emitReserved(\"connect_error\", new Error(\"It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)\"));\n }\n break;\n case socket_io_parser_1.PacketType.EVENT:\n case socket_io_parser_1.PacketType.BINARY_EVENT:\n this.onevent(packet);\n break;\n case socket_io_parser_1.PacketType.ACK:\n case socket_io_parser_1.PacketType.BINARY_ACK:\n this.onack(packet);\n break;\n case socket_io_parser_1.PacketType.DISCONNECT:\n this.ondisconnect();\n break;\n case socket_io_parser_1.PacketType.CONNECT_ERROR:\n this.destroy();\n const err = new Error(packet.data.message);\n // @ts-ignore\n err.data = packet.data.data;\n this.emitReserved(\"connect_error\", err);\n break;\n }\n }\n /**\n * Called upon a server event.\n *\n * @param packet\n * @private\n */\n onevent(packet) {\n const args = packet.data || [];\n debug(\"emitting event %j\", args);\n if (null != packet.id) {\n debug(\"attaching ack callback to event\");\n args.push(this.ack(packet.id));\n }\n if (this.connected) {\n this.emitEvent(args);\n }\n else {\n this.receiveBuffer.push(Object.freeze(args));\n }\n }\n emitEvent(args) {\n if (this._anyListeners && this._anyListeners.length) {\n const listeners = this._anyListeners.slice();\n for (const listener of listeners) {\n listener.apply(this, args);\n }\n }\n super.emit.apply(this, args);\n if (this._pid && args.length && typeof args[args.length - 1] === \"string\") {\n this._lastOffset = args[args.length - 1];\n }\n }\n /**\n * Produces an ack callback to emit with an event.\n *\n * @private\n */\n ack(id) {\n const self = this;\n let sent = false;\n return function (...args) {\n // prevent double callbacks\n if (sent)\n return;\n sent = true;\n debug(\"sending ack %j\", args);\n self.packet({\n type: socket_io_parser_1.PacketType.ACK,\n id: id,\n data: args,\n });\n };\n }\n /**\n * Called upon a server acknowlegement.\n *\n * @param packet\n * @private\n */\n onack(packet) {\n const ack = this.acks[packet.id];\n if (\"function\" === typeof ack) {\n debug(\"calling ack %s with %j\", packet.id, packet.data);\n ack.apply(this, packet.data);\n delete this.acks[packet.id];\n }\n else {\n debug(\"bad ack %s\", packet.id);\n }\n }\n /**\n * Called upon server connect.\n *\n * @private\n */\n onconnect(id, pid) {\n debug(\"socket connected with id %s\", id);\n this.id = id;\n this.recovered = pid && this._pid === pid;\n this._pid = pid; // defined only if connection state recovery is enabled\n this.connected = true;\n this.emitBuffered();\n this.emitReserved(\"connect\");\n this._drainQueue(true);\n }\n /**\n * Emit buffered events (received and emitted).\n *\n * @private\n */\n emitBuffered() {\n this.receiveBuffer.forEach((args) => this.emitEvent(args));\n this.receiveBuffer = [];\n this.sendBuffer.forEach((packet) => {\n this.notifyOutgoingListeners(packet);\n this.packet(packet);\n });\n this.sendBuffer = [];\n }\n /**\n * Called upon server disconnect.\n *\n * @private\n */\n ondisconnect() {\n debug(\"server disconnect (%s)\", this.nsp);\n this.destroy();\n this.onclose(\"io server disconnect\");\n }\n /**\n * Called upon forced client/server side disconnections,\n * this method ensures the manager stops tracking us and\n * that reconnections don't get triggered for this.\n *\n * @private\n */\n destroy() {\n if (this.subs) {\n // clean subscriptions to avoid reconnections\n this.subs.forEach((subDestroy) => subDestroy());\n this.subs = undefined;\n }\n this.io[\"_destroy\"](this);\n }\n /**\n * Disconnects the socket manually. In that case, the socket will not try to reconnect.\n *\n * If this is the last active Socket instance of the {@link Manager}, the low-level connection will be closed.\n *\n * @example\n * const socket = io();\n *\n * socket.on(\"disconnect\", (reason) => {\n * // console.log(reason); prints \"io client disconnect\"\n * });\n *\n * socket.disconnect();\n *\n * @return self\n */\n disconnect() {\n if (this.connected) {\n debug(\"performing disconnect (%s)\", this.nsp);\n this.packet({ type: socket_io_parser_1.PacketType.DISCONNECT });\n }\n // remove socket from pool\n this.destroy();\n if (this.connected) {\n // fire events\n this.onclose(\"io client disconnect\");\n }\n return this;\n }\n /**\n * Alias for {@link disconnect()}.\n *\n * @return self\n */\n close() {\n return this.disconnect();\n }\n /**\n * Sets the compress flag.\n *\n * @example\n * socket.compress(false).emit(\"hello\");\n *\n * @param compress - if `true`, compresses the sending data\n * @return self\n */\n compress(compress) {\n this.flags.compress = compress;\n return this;\n }\n /**\n * Sets a modifier for a subsequent event emission that the event message will be dropped when this socket is not\n * ready to send messages.\n *\n * @example\n * socket.volatile.emit(\"hello\"); // the server may or may not receive it\n *\n * @returns self\n */\n get volatile() {\n this.flags.volatile = true;\n return this;\n }\n /**\n * Sets a modifier for a subsequent event emission that the callback will be called with an error when the\n * given number of milliseconds have elapsed without an acknowledgement from the server:\n *\n * @example\n * socket.timeout(5000).emit(\"my-event\", (err) => {\n * if (err) {\n * // the server did not acknowledge the event in the given delay\n * }\n * });\n *\n * @returns self\n */\n timeout(timeout) {\n this.flags.timeout = timeout;\n return this;\n }\n /**\n * Adds a listener that will be fired when any event is emitted. The event name is passed as the first argument to the\n * callback.\n *\n * @example\n * socket.onAny((event, ...args) => {\n * console.log(`got ${event}`);\n * });\n *\n * @param listener\n */\n onAny(listener) {\n this._anyListeners = this._anyListeners || [];\n this._anyListeners.push(listener);\n return this;\n }\n /**\n * Adds a listener that will be fired when any event is emitted. The event name is passed as the first argument to the\n * callback. The listener is added to the beginning of the listeners array.\n *\n * @example\n * socket.prependAny((event, ...args) => {\n * console.log(`got event ${event}`);\n * });\n *\n * @param listener\n */\n prependAny(listener) {\n this._anyListeners = this._anyListeners || [];\n this._anyListeners.unshift(listener);\n return this;\n }\n /**\n * Removes the listener that will be fired when any event is emitted.\n *\n * @example\n * const catchAllListener = (event, ...args) => {\n * console.log(`got event ${event}`);\n * }\n *\n * socket.onAny(catchAllListener);\n *\n * // remove a specific listener\n * socket.offAny(catchAllListener);\n *\n * // or remove all listeners\n * socket.offAny();\n *\n * @param listener\n */\n offAny(listener) {\n if (!this._anyListeners) {\n return this;\n }\n if (listener) {\n const listeners = this._anyListeners;\n for (let i = 0; i < listeners.length; i++) {\n if (listener === listeners[i]) {\n listeners.splice(i, 1);\n return this;\n }\n }\n }\n else {\n this._anyListeners = [];\n }\n return this;\n }\n /**\n * Returns an array of listeners that are listening for any event that is specified. This array can be manipulated,\n * e.g. to remove listeners.\n */\n listenersAny() {\n return this._anyListeners || [];\n }\n /**\n * Adds a listener that will be fired when any event is emitted. The event name is passed as the first argument to the\n * callback.\n *\n * Note: acknowledgements sent to the server are not included.\n *\n * @example\n * socket.onAnyOutgoing((event, ...args) => {\n * console.log(`sent event ${event}`);\n * });\n *\n * @param listener\n */\n onAnyOutgoing(listener) {\n this._anyOutgoingListeners = this._anyOutgoingListeners || [];\n this._anyOutgoingListeners.push(listener);\n return this;\n }\n /**\n * Adds a listener that will be fired when any event is emitted. The event name is passed as the first argument to the\n * callback. The listener is added to the beginning of the listeners array.\n *\n * Note: acknowledgements sent to the server are not included.\n *\n * @example\n * socket.prependAnyOutgoing((event, ...args) => {\n * console.log(`sent event ${event}`);\n * });\n *\n * @param listener\n */\n prependAnyOutgoing(listener) {\n this._anyOutgoingListeners = this._anyOutgoingListeners || [];\n this._anyOutgoingListeners.unshift(listener);\n return this;\n }\n /**\n * Removes the listener that will be fired when any event is emitted.\n *\n * @example\n * const catchAllListener = (event, ...args) => {\n * console.log(`sent event ${event}`);\n * }\n *\n * socket.onAnyOutgoing(catchAllListener);\n *\n * // remove a specific listener\n * socket.offAnyOutgoing(catchAllListener);\n *\n * // or remove all listeners\n * socket.offAnyOutgoing();\n *\n * @param [listener] - the catch-all listener (optional)\n */\n offAnyOutgoing(listener) {\n if (!this._anyOutgoingListeners) {\n return this;\n }\n if (listener) {\n const listeners = this._anyOutgoingListeners;\n for (let i = 0; i < listeners.length; i++) {\n if (listener === listeners[i]) {\n listeners.splice(i, 1);\n return this;\n }\n }\n }\n else {\n this._anyOutgoingListeners = [];\n }\n return this;\n }\n /**\n * Returns an array of listeners that are listening for any event that is specified. This array can be manipulated,\n * e.g. to remove listeners.\n */\n listenersAnyOutgoing() {\n return this._anyOutgoingListeners || [];\n }\n /**\n * Notify the listeners for each packet sent\n *\n * @param packet\n *\n * @private\n */\n notifyOutgoingListeners(packet) {\n if (this._anyOutgoingListeners && this._anyOutgoingListeners.length) {\n const listeners = this._anyOutgoingListeners.slice();\n for (const listener of listeners) {\n listener.apply(this, packet.data);\n }\n }\n }\n}\nexports.Socket = Socket;\n","\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.url = void 0;\nconst engine_io_client_1 = require(\"engine.io-client\");\nconst debug_1 = __importDefault(require(\"debug\")); // debug()\nconst debug = debug_1.default(\"socket.io-client:url\"); // debug()\n/**\n * URL parser.\n *\n * @param uri - url\n * @param path - the request path of the connection\n * @param loc - An object meant to mimic window.location.\n * Defaults to window.location.\n * @public\n */\nfunction url(uri, path = \"\", loc) {\n let obj = uri;\n // default to window.location\n loc = loc || (typeof location !== \"undefined\" && location);\n if (null == uri)\n uri = loc.protocol + \"//\" + loc.host;\n // relative path support\n if (typeof uri === \"string\") {\n if (\"/\" === uri.charAt(0)) {\n if (\"/\" === uri.charAt(1)) {\n uri = loc.protocol + uri;\n }\n else {\n uri = loc.host + uri;\n }\n }\n if (!/^(https?|wss?):\\/\\//.test(uri)) {\n debug(\"protocol-less url %s\", uri);\n if (\"undefined\" !== typeof loc) {\n uri = loc.protocol + \"//\" + uri;\n }\n else {\n uri = \"https://\" + uri;\n }\n }\n // parse\n debug(\"parse %s\", uri);\n obj = engine_io_client_1.parse(uri);\n }\n // make sure we treat `localhost:80` and `localhost` equally\n if (!obj.port) {\n if (/^(http|ws)$/.test(obj.protocol)) {\n obj.port = \"80\";\n }\n else if (/^(http|ws)s$/.test(obj.protocol)) {\n obj.port = \"443\";\n }\n }\n obj.path = obj.path || \"/\";\n const ipv6 = obj.host.indexOf(\":\") !== -1;\n const host = ipv6 ? \"[\" + obj.host + \"]\" : obj.host;\n // define unique id\n obj.id = obj.protocol + \"://\" + host + \":\" + obj.port + path;\n // define href\n obj.href =\n obj.protocol +\n \"://\" +\n host +\n (loc && loc.port === obj.port ? \"\" : \":\" + obj.port);\n return obj;\n}\nexports.url = url;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.reconstructPacket = exports.deconstructPacket = void 0;\nconst is_binary_js_1 = require(\"./is-binary.js\");\n/**\n * Replaces every Buffer | ArrayBuffer | Blob | File in packet with a numbered placeholder.\n *\n * @param {Object} packet - socket.io event packet\n * @return {Object} with deconstructed packet and list of buffers\n * @public\n */\nfunction deconstructPacket(packet) {\n const buffers = [];\n const packetData = packet.data;\n const pack = packet;\n pack.data = _deconstructPacket(packetData, buffers);\n pack.attachments = buffers.length; // number of binary 'attachments'\n return { packet: pack, buffers: buffers };\n}\nexports.deconstructPacket = deconstructPacket;\nfunction _deconstructPacket(data, buffers) {\n if (!data)\n return data;\n if ((0, is_binary_js_1.isBinary)(data)) {\n const placeholder = { _placeholder: true, num: buffers.length };\n buffers.push(data);\n return placeholder;\n }\n else if (Array.isArray(data)) {\n const newData = new Array(data.length);\n for (let i = 0; i < data.length; i++) {\n newData[i] = _deconstructPacket(data[i], buffers);\n }\n return newData;\n }\n else if (typeof data === \"object\" && !(data instanceof Date)) {\n const newData = {};\n for (const key in data) {\n if (Object.prototype.hasOwnProperty.call(data, key)) {\n newData[key] = _deconstructPacket(data[key], buffers);\n }\n }\n return newData;\n }\n return data;\n}\n/**\n * Reconstructs a binary packet from its placeholder packet and buffers\n *\n * @param {Object} packet - event packet with placeholders\n * @param {Array} buffers - binary buffers to put in placeholder positions\n * @return {Object} reconstructed packet\n * @public\n */\nfunction reconstructPacket(packet, buffers) {\n packet.data = _reconstructPacket(packet.data, buffers);\n delete packet.attachments; // no longer useful\n return packet;\n}\nexports.reconstructPacket = reconstructPacket;\nfunction _reconstructPacket(data, buffers) {\n if (!data)\n return data;\n if (data && data._placeholder === true) {\n const isIndexValid = typeof data.num === \"number\" &&\n data.num >= 0 &&\n data.num < buffers.length;\n if (isIndexValid) {\n return buffers[data.num]; // appropriate buffer (should be natural order anyway)\n }\n else {\n throw new Error(\"illegal attachments\");\n }\n }\n else if (Array.isArray(data)) {\n for (let i = 0; i < data.length; i++) {\n data[i] = _reconstructPacket(data[i], buffers);\n }\n }\n else if (typeof data === \"object\") {\n for (const key in data) {\n if (Object.prototype.hasOwnProperty.call(data, key)) {\n data[key] = _reconstructPacket(data[key], buffers);\n }\n }\n }\n return data;\n}\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.Decoder = exports.Encoder = exports.PacketType = exports.protocol = void 0;\nconst component_emitter_1 = require(\"@socket.io/component-emitter\");\nconst binary_js_1 = require(\"./binary.js\");\nconst is_binary_js_1 = require(\"./is-binary.js\");\nconst debug_1 = require(\"debug\"); // debug()\nconst debug = (0, debug_1.default)(\"socket.io-parser\"); // debug()\n/**\n * These strings must not be used as event names, as they have a special meaning.\n */\nconst RESERVED_EVENTS = [\n \"connect\",\n \"connect_error\",\n \"disconnect\",\n \"disconnecting\",\n \"newListener\",\n \"removeListener\", // used by the Node.js EventEmitter\n];\n/**\n * Protocol version.\n *\n * @public\n */\nexports.protocol = 5;\nvar PacketType;\n(function (PacketType) {\n PacketType[PacketType[\"CONNECT\"] = 0] = \"CONNECT\";\n PacketType[PacketType[\"DISCONNECT\"] = 1] = \"DISCONNECT\";\n PacketType[PacketType[\"EVENT\"] = 2] = \"EVENT\";\n PacketType[PacketType[\"ACK\"] = 3] = \"ACK\";\n PacketType[PacketType[\"CONNECT_ERROR\"] = 4] = \"CONNECT_ERROR\";\n PacketType[PacketType[\"BINARY_EVENT\"] = 5] = \"BINARY_EVENT\";\n PacketType[PacketType[\"BINARY_ACK\"] = 6] = \"BINARY_ACK\";\n})(PacketType = exports.PacketType || (exports.PacketType = {}));\n/**\n * A socket.io Encoder instance\n */\nclass Encoder {\n /**\n * Encoder constructor\n *\n * @param {function} replacer - custom replacer to pass down to JSON.parse\n */\n constructor(replacer) {\n this.replacer = replacer;\n }\n /**\n * Encode a packet as a single string if non-binary, or as a\n * buffer sequence, depending on packet type.\n *\n * @param {Object} obj - packet object\n */\n encode(obj) {\n debug(\"encoding packet %j\", obj);\n if (obj.type === PacketType.EVENT || obj.type === PacketType.ACK) {\n if ((0, is_binary_js_1.hasBinary)(obj)) {\n return this.encodeAsBinary({\n type: obj.type === PacketType.EVENT\n ? PacketType.BINARY_EVENT\n : PacketType.BINARY_ACK,\n nsp: obj.nsp,\n data: obj.data,\n id: obj.id,\n });\n }\n }\n return [this.encodeAsString(obj)];\n }\n /**\n * Encode packet as string.\n */\n encodeAsString(obj) {\n // first is type\n let str = \"\" + obj.type;\n // attachments if we have them\n if (obj.type === PacketType.BINARY_EVENT ||\n obj.type === PacketType.BINARY_ACK) {\n str += obj.attachments + \"-\";\n }\n // if we have a namespace other than `/`\n // we append it followed by a comma `,`\n if (obj.nsp && \"/\" !== obj.nsp) {\n str += obj.nsp + \",\";\n }\n // immediately followed by the id\n if (null != obj.id) {\n str += obj.id;\n }\n // json data\n if (null != obj.data) {\n str += JSON.stringify(obj.data, this.replacer);\n }\n debug(\"encoded %j as %s\", obj, str);\n return str;\n }\n /**\n * Encode packet as 'buffer sequence' by removing blobs, and\n * deconstructing packet into object with placeholders and\n * a list of buffers.\n */\n encodeAsBinary(obj) {\n const deconstruction = (0, binary_js_1.deconstructPacket)(obj);\n const pack = this.encodeAsString(deconstruction.packet);\n const buffers = deconstruction.buffers;\n buffers.unshift(pack); // add packet info to beginning of data list\n return buffers; // write all the buffers\n }\n}\nexports.Encoder = Encoder;\n// see https://stackoverflow.com/questions/8511281/check-if-a-value-is-an-object-in-javascript\nfunction isObject(value) {\n return Object.prototype.toString.call(value) === \"[object Object]\";\n}\n/**\n * A socket.io Decoder instance\n *\n * @return {Object} decoder\n */\nclass Decoder extends component_emitter_1.Emitter {\n /**\n * Decoder constructor\n *\n * @param {function} reviver - custom reviver to pass down to JSON.stringify\n */\n constructor(reviver) {\n super();\n this.reviver = reviver;\n }\n /**\n * Decodes an encoded packet string into packet JSON.\n *\n * @param {String} obj - encoded packet\n */\n add(obj) {\n let packet;\n if (typeof obj === \"string\") {\n if (this.reconstructor) {\n throw new Error(\"got plaintext data when reconstructing a packet\");\n }\n packet = this.decodeString(obj);\n const isBinaryEvent = packet.type === PacketType.BINARY_EVENT;\n if (isBinaryEvent || packet.type === PacketType.BINARY_ACK) {\n packet.type = isBinaryEvent ? PacketType.EVENT : PacketType.ACK;\n // binary packet's json\n this.reconstructor = new BinaryReconstructor(packet);\n // no attachments, labeled binary but no binary data to follow\n if (packet.attachments === 0) {\n super.emitReserved(\"decoded\", packet);\n }\n }\n else {\n // non-binary full packet\n super.emitReserved(\"decoded\", packet);\n }\n }\n else if ((0, is_binary_js_1.isBinary)(obj) || obj.base64) {\n // raw binary data\n if (!this.reconstructor) {\n throw new Error(\"got binary data when not reconstructing a packet\");\n }\n else {\n packet = this.reconstructor.takeBinaryData(obj);\n if (packet) {\n // received final buffer\n this.reconstructor = null;\n super.emitReserved(\"decoded\", packet);\n }\n }\n }\n else {\n throw new Error(\"Unknown type: \" + obj);\n }\n }\n /**\n * Decode a packet String (JSON data)\n *\n * @param {String} str\n * @return {Object} packet\n */\n decodeString(str) {\n let i = 0;\n // look up type\n const p = {\n type: Number(str.charAt(0)),\n };\n if (PacketType[p.type] === undefined) {\n throw new Error(\"unknown packet type \" + p.type);\n }\n // look up attachments if type binary\n if (p.type === PacketType.BINARY_EVENT ||\n p.type === PacketType.BINARY_ACK) {\n const start = i + 1;\n while (str.charAt(++i) !== \"-\" && i != str.length) { }\n const buf = str.substring(start, i);\n if (buf != Number(buf) || str.charAt(i) !== \"-\") {\n throw new Error(\"Illegal attachments\");\n }\n p.attachments = Number(buf);\n }\n // look up namespace (if any)\n if (\"/\" === str.charAt(i + 1)) {\n const start = i + 1;\n while (++i) {\n const c = str.charAt(i);\n if (\",\" === c)\n break;\n if (i === str.length)\n break;\n }\n p.nsp = str.substring(start, i);\n }\n else {\n p.nsp = \"/\";\n }\n // look up id\n const next = str.charAt(i + 1);\n if (\"\" !== next && Number(next) == next) {\n const start = i + 1;\n while (++i) {\n const c = str.charAt(i);\n if (null == c || Number(c) != c) {\n --i;\n break;\n }\n if (i === str.length)\n break;\n }\n p.id = Number(str.substring(start, i + 1));\n }\n // look up json data\n if (str.charAt(++i)) {\n const payload = this.tryParse(str.substr(i));\n if (Decoder.isPayloadValid(p.type, payload)) {\n p.data = payload;\n }\n else {\n throw new Error(\"invalid payload\");\n }\n }\n debug(\"decoded %s as %j\", str, p);\n return p;\n }\n tryParse(str) {\n try {\n return JSON.parse(str, this.reviver);\n }\n catch (e) {\n return false;\n }\n }\n static isPayloadValid(type, payload) {\n switch (type) {\n case PacketType.CONNECT:\n return isObject(payload);\n case PacketType.DISCONNECT:\n return payload === undefined;\n case PacketType.CONNECT_ERROR:\n return typeof payload === \"string\" || isObject(payload);\n case PacketType.EVENT:\n case PacketType.BINARY_EVENT:\n return (Array.isArray(payload) &&\n (typeof payload[0] === \"number\" ||\n (typeof payload[0] === \"string\" &&\n RESERVED_EVENTS.indexOf(payload[0]) === -1)));\n case PacketType.ACK:\n case PacketType.BINARY_ACK:\n return Array.isArray(payload);\n }\n }\n /**\n * Deallocates a parser's resources\n */\n destroy() {\n if (this.reconstructor) {\n this.reconstructor.finishedReconstruction();\n this.reconstructor = null;\n }\n }\n}\nexports.Decoder = Decoder;\n/**\n * A manager of a binary event's 'buffer sequence'. Should\n * be constructed whenever a packet of type BINARY_EVENT is\n * decoded.\n *\n * @param {Object} packet\n * @return {BinaryReconstructor} initialized reconstructor\n */\nclass BinaryReconstructor {\n constructor(packet) {\n this.packet = packet;\n this.buffers = [];\n this.reconPack = packet;\n }\n /**\n * Method to be called when binary data received from connection\n * after a BINARY_EVENT packet.\n *\n * @param {Buffer | ArrayBuffer} binData - the raw binary data received\n * @return {null | Object} returns null if more binary data is expected or\n * a reconstructed packet object if all buffers have been received.\n */\n takeBinaryData(binData) {\n this.buffers.push(binData);\n if (this.buffers.length === this.reconPack.attachments) {\n // done with buffer list\n const packet = (0, binary_js_1.reconstructPacket)(this.reconPack, this.buffers);\n this.finishedReconstruction();\n return packet;\n }\n return null;\n }\n /**\n * Cleans up binary packet reconstruction variables.\n */\n finishedReconstruction() {\n this.reconPack = null;\n this.buffers = [];\n }\n}\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.hasBinary = exports.isBinary = void 0;\nconst withNativeArrayBuffer = typeof ArrayBuffer === \"function\";\nconst isView = (obj) => {\n return typeof ArrayBuffer.isView === \"function\"\n ? ArrayBuffer.isView(obj)\n : obj.buffer instanceof ArrayBuffer;\n};\nconst toString = Object.prototype.toString;\nconst withNativeBlob = typeof Blob === \"function\" ||\n (typeof Blob !== \"undefined\" &&\n toString.call(Blob) === \"[object BlobConstructor]\");\nconst withNativeFile = typeof File === \"function\" ||\n (typeof File !== \"undefined\" &&\n toString.call(File) === \"[object FileConstructor]\");\n/**\n * Returns true if obj is a Buffer, an ArrayBuffer, a Blob or a File.\n *\n * @private\n */\nfunction isBinary(obj) {\n return ((withNativeArrayBuffer && (obj instanceof ArrayBuffer || isView(obj))) ||\n (withNativeBlob && obj instanceof Blob) ||\n (withNativeFile && obj instanceof File));\n}\nexports.isBinary = isBinary;\nfunction hasBinary(obj, toJSON) {\n if (!obj || typeof obj !== \"object\") {\n return false;\n }\n if (Array.isArray(obj)) {\n for (let i = 0, l = obj.length; i < l; i++) {\n if (hasBinary(obj[i])) {\n return true;\n }\n }\n return false;\n }\n if (isBinary(obj)) {\n return true;\n }\n if (obj.toJSON &&\n typeof obj.toJSON === \"function\" &&\n arguments.length === 1) {\n return hasBinary(obj.toJSON(), true);\n }\n for (const key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key) && hasBinary(obj[key])) {\n return true;\n }\n }\n return false;\n}\nexports.hasBinary = hasBinary;\n","import $73KQ4$babelruntimehelpersesmextends from \"@babel/runtime/helpers/esm/extends\";\nimport {forwardRef as $73KQ4$forwardRef, createElement as $73KQ4$createElement, useCallback as $73KQ4$useCallback, useState as $73KQ4$useState, useRef as $73KQ4$useRef, useEffect as $73KQ4$useEffect} from \"react\";\nimport {composeEventHandlers as $73KQ4$composeEventHandlers} from \"@radix-ui/primitive\";\nimport {createContextScope as $73KQ4$createContextScope} from \"@radix-ui/react-context\";\nimport {useControllableState as $73KQ4$useControllableState} from \"@radix-ui/react-use-controllable-state\";\nimport {useLayoutEffect as $73KQ4$useLayoutEffect} from \"@radix-ui/react-use-layout-effect\";\nimport {useComposedRefs as $73KQ4$useComposedRefs} from \"@radix-ui/react-compose-refs\";\nimport {Primitive as $73KQ4$Primitive} from \"@radix-ui/react-primitive\";\nimport {Presence as $73KQ4$Presence} from \"@radix-ui/react-presence\";\nimport {useId as $73KQ4$useId} from \"@radix-ui/react-id\";\n\n\n\n\n\n\n\n\n\n\n\n/* -------------------------------------------------------------------------------------------------\n * Collapsible\n * -----------------------------------------------------------------------------------------------*/ const $409067139f391064$var$COLLAPSIBLE_NAME = 'Collapsible';\nconst [$409067139f391064$var$createCollapsibleContext, $409067139f391064$export$952b32dcbe73087a] = $73KQ4$createContextScope($409067139f391064$var$COLLAPSIBLE_NAME);\nconst [$409067139f391064$var$CollapsibleProvider, $409067139f391064$var$useCollapsibleContext] = $409067139f391064$var$createCollapsibleContext($409067139f391064$var$COLLAPSIBLE_NAME);\nconst $409067139f391064$export$6eb0f7ddcda6131f = /*#__PURE__*/ $73KQ4$forwardRef((props, forwardedRef)=>{\n const { __scopeCollapsible: __scopeCollapsible , open: openProp , defaultOpen: defaultOpen , disabled: disabled , onOpenChange: onOpenChange , ...collapsibleProps } = props;\n const [open = false, setOpen] = $73KQ4$useControllableState({\n prop: openProp,\n defaultProp: defaultOpen,\n onChange: onOpenChange\n });\n return /*#__PURE__*/ $73KQ4$createElement($409067139f391064$var$CollapsibleProvider, {\n scope: __scopeCollapsible,\n disabled: disabled,\n contentId: $73KQ4$useId(),\n open: open,\n onOpenToggle: $73KQ4$useCallback(()=>setOpen((prevOpen)=>!prevOpen\n )\n , [\n setOpen\n ])\n }, /*#__PURE__*/ $73KQ4$createElement($73KQ4$Primitive.div, $73KQ4$babelruntimehelpersesmextends({\n \"data-state\": $409067139f391064$var$getState(open),\n \"data-disabled\": disabled ? '' : undefined\n }, collapsibleProps, {\n ref: forwardedRef\n })));\n});\n/*#__PURE__*/ Object.assign($409067139f391064$export$6eb0f7ddcda6131f, {\n displayName: $409067139f391064$var$COLLAPSIBLE_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * CollapsibleTrigger\n * -----------------------------------------------------------------------------------------------*/ const $409067139f391064$var$TRIGGER_NAME = 'CollapsibleTrigger';\nconst $409067139f391064$export$c135dce7b15bbbdc = /*#__PURE__*/ $73KQ4$forwardRef((props, forwardedRef)=>{\n const { __scopeCollapsible: __scopeCollapsible , ...triggerProps } = props;\n const context = $409067139f391064$var$useCollapsibleContext($409067139f391064$var$TRIGGER_NAME, __scopeCollapsible);\n return /*#__PURE__*/ $73KQ4$createElement($73KQ4$Primitive.button, $73KQ4$babelruntimehelpersesmextends({\n type: \"button\",\n \"aria-controls\": context.contentId,\n \"aria-expanded\": context.open || false,\n \"data-state\": $409067139f391064$var$getState(context.open),\n \"data-disabled\": context.disabled ? '' : undefined,\n disabled: context.disabled\n }, triggerProps, {\n ref: forwardedRef,\n onClick: $73KQ4$composeEventHandlers(props.onClick, context.onOpenToggle)\n }));\n});\n/*#__PURE__*/ Object.assign($409067139f391064$export$c135dce7b15bbbdc, {\n displayName: $409067139f391064$var$TRIGGER_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * CollapsibleContent\n * -----------------------------------------------------------------------------------------------*/ const $409067139f391064$var$CONTENT_NAME = 'CollapsibleContent';\nconst $409067139f391064$export$aadde00976f34151 = /*#__PURE__*/ $73KQ4$forwardRef((props, forwardedRef)=>{\n const { forceMount: forceMount , ...contentProps } = props;\n const context = $409067139f391064$var$useCollapsibleContext($409067139f391064$var$CONTENT_NAME, props.__scopeCollapsible);\n return /*#__PURE__*/ $73KQ4$createElement($73KQ4$Presence, {\n present: forceMount || context.open\n }, ({ present: present })=>/*#__PURE__*/ $73KQ4$createElement($409067139f391064$var$CollapsibleContentImpl, $73KQ4$babelruntimehelpersesmextends({}, contentProps, {\n ref: forwardedRef,\n present: present\n }))\n );\n});\n/*#__PURE__*/ Object.assign($409067139f391064$export$aadde00976f34151, {\n displayName: $409067139f391064$var$CONTENT_NAME\n});\n/* -----------------------------------------------------------------------------------------------*/ const $409067139f391064$var$CollapsibleContentImpl = /*#__PURE__*/ $73KQ4$forwardRef((props, forwardedRef)=>{\n const { __scopeCollapsible: __scopeCollapsible , present: present , children: children , ...contentProps } = props;\n const context = $409067139f391064$var$useCollapsibleContext($409067139f391064$var$CONTENT_NAME, __scopeCollapsible);\n const [isPresent, setIsPresent] = $73KQ4$useState(present);\n const ref = $73KQ4$useRef(null);\n const composedRefs = $73KQ4$useComposedRefs(forwardedRef, ref);\n const heightRef = $73KQ4$useRef(0);\n const height = heightRef.current;\n const widthRef = $73KQ4$useRef(0);\n const width = widthRef.current; // when opening we want it to immediately open to retrieve dimensions\n // when closing we delay `present` to retrieve dimensions before closing\n const isOpen = context.open || isPresent;\n const isMountAnimationPreventedRef = $73KQ4$useRef(isOpen);\n const originalStylesRef = $73KQ4$useRef();\n $73KQ4$useEffect(()=>{\n const rAF = requestAnimationFrame(()=>isMountAnimationPreventedRef.current = false\n );\n return ()=>cancelAnimationFrame(rAF)\n ;\n }, []);\n $73KQ4$useLayoutEffect(()=>{\n const node = ref.current;\n if (node) {\n originalStylesRef.current = originalStylesRef.current || {\n transitionDuration: node.style.transitionDuration,\n animationName: node.style.animationName\n }; // block any animations/transitions so the element renders at its full dimensions\n node.style.transitionDuration = '0s';\n node.style.animationName = 'none'; // get width and height from full dimensions\n const rect = node.getBoundingClientRect();\n heightRef.current = rect.height;\n widthRef.current = rect.width; // kick off any animations/transitions that were originally set up if it isn't the initial mount\n if (!isMountAnimationPreventedRef.current) {\n node.style.transitionDuration = originalStylesRef.current.transitionDuration;\n node.style.animationName = originalStylesRef.current.animationName;\n }\n setIsPresent(present);\n }\n /**\n * depends on `context.open` because it will change to `false`\n * when a close is triggered but `present` will be `false` on\n * animation end (so when close finishes). This allows us to\n * retrieve the dimensions *before* closing.\n */ }, [\n context.open,\n present\n ]);\n return /*#__PURE__*/ $73KQ4$createElement($73KQ4$Primitive.div, $73KQ4$babelruntimehelpersesmextends({\n \"data-state\": $409067139f391064$var$getState(context.open),\n \"data-disabled\": context.disabled ? '' : undefined,\n id: context.contentId,\n hidden: !isOpen\n }, contentProps, {\n ref: composedRefs,\n style: {\n [`--radix-collapsible-content-height`]: height ? `${height}px` : undefined,\n [`--radix-collapsible-content-width`]: width ? `${width}px` : undefined,\n ...props.style\n }\n }), isOpen && children);\n});\n/* -----------------------------------------------------------------------------------------------*/ function $409067139f391064$var$getState(open) {\n return open ? 'open' : 'closed';\n}\nconst $409067139f391064$export$be92b6f5f03c0fe9 = $409067139f391064$export$6eb0f7ddcda6131f;\nconst $409067139f391064$export$41fb9f06171c75f4 = $409067139f391064$export$c135dce7b15bbbdc;\nconst $409067139f391064$export$7c6e2c02157bb7d2 = $409067139f391064$export$aadde00976f34151;\n\n\n\n\nexport {$409067139f391064$export$952b32dcbe73087a as createCollapsibleScope, $409067139f391064$export$6eb0f7ddcda6131f as Collapsible, $409067139f391064$export$c135dce7b15bbbdc as CollapsibleTrigger, $409067139f391064$export$aadde00976f34151 as CollapsibleContent, $409067139f391064$export$be92b6f5f03c0fe9 as Root, $409067139f391064$export$41fb9f06171c75f4 as Trigger, $409067139f391064$export$7c6e2c02157bb7d2 as Content};\n//# sourceMappingURL=index.mjs.map\n","import $irPIl$babelruntimehelpersesmextends from \"@babel/runtime/helpers/esm/extends\";\nimport {forwardRef as $irPIl$forwardRef, useState as $irPIl$useState, useRef as $irPIl$useRef, createElement as $irPIl$createElement, useEffect as $irPIl$useEffect} from \"react\";\nimport {composeEventHandlers as $irPIl$composeEventHandlers} from \"@radix-ui/primitive\";\nimport {useComposedRefs as $irPIl$useComposedRefs} from \"@radix-ui/react-compose-refs\";\nimport {createContextScope as $irPIl$createContextScope} from \"@radix-ui/react-context\";\nimport {useControllableState as $irPIl$useControllableState} from \"@radix-ui/react-use-controllable-state\";\nimport {usePrevious as $irPIl$usePrevious} from \"@radix-ui/react-use-previous\";\nimport {useSize as $irPIl$useSize} from \"@radix-ui/react-use-size\";\nimport {Primitive as $irPIl$Primitive} from \"@radix-ui/react-primitive\";\n\n\n\n\n\n\n\n\n\n\n/* -------------------------------------------------------------------------------------------------\n * Switch\n * -----------------------------------------------------------------------------------------------*/ const $6be4966fd9bbc698$var$SWITCH_NAME = 'Switch';\nconst [$6be4966fd9bbc698$var$createSwitchContext, $6be4966fd9bbc698$export$cf7f5f17f69cbd43] = $irPIl$createContextScope($6be4966fd9bbc698$var$SWITCH_NAME);\nconst [$6be4966fd9bbc698$var$SwitchProvider, $6be4966fd9bbc698$var$useSwitchContext] = $6be4966fd9bbc698$var$createSwitchContext($6be4966fd9bbc698$var$SWITCH_NAME);\nconst $6be4966fd9bbc698$export$b5d5cf8927ab7262 = /*#__PURE__*/ $irPIl$forwardRef((props, forwardedRef)=>{\n const { __scopeSwitch: __scopeSwitch , name: name , checked: checkedProp , defaultChecked: defaultChecked , required: required , disabled: disabled , value: value = 'on' , onCheckedChange: onCheckedChange , ...switchProps } = props;\n const [button, setButton] = $irPIl$useState(null);\n const composedRefs = $irPIl$useComposedRefs(forwardedRef, (node)=>setButton(node)\n );\n const hasConsumerStoppedPropagationRef = $irPIl$useRef(false); // We set this to true by default so that events bubble to forms without JS (SSR)\n const isFormControl = button ? Boolean(button.closest('form')) : true;\n const [checked = false, setChecked] = $irPIl$useControllableState({\n prop: checkedProp,\n defaultProp: defaultChecked,\n onChange: onCheckedChange\n });\n return /*#__PURE__*/ $irPIl$createElement($6be4966fd9bbc698$var$SwitchProvider, {\n scope: __scopeSwitch,\n checked: checked,\n disabled: disabled\n }, /*#__PURE__*/ $irPIl$createElement($irPIl$Primitive.button, $irPIl$babelruntimehelpersesmextends({\n type: \"button\",\n role: \"switch\",\n \"aria-checked\": checked,\n \"aria-required\": required,\n \"data-state\": $6be4966fd9bbc698$var$getState(checked),\n \"data-disabled\": disabled ? '' : undefined,\n disabled: disabled,\n value: value\n }, switchProps, {\n ref: composedRefs,\n onClick: $irPIl$composeEventHandlers(props.onClick, (event)=>{\n setChecked((prevChecked)=>!prevChecked\n );\n if (isFormControl) {\n hasConsumerStoppedPropagationRef.current = event.isPropagationStopped(); // if switch is in a form, stop propagation from the button so that we only propagate\n // one click event (from the input). We propagate changes from an input so that native\n // form validation works and form events reflect switch updates.\n if (!hasConsumerStoppedPropagationRef.current) event.stopPropagation();\n }\n })\n })), isFormControl && /*#__PURE__*/ $irPIl$createElement($6be4966fd9bbc698$var$BubbleInput, {\n control: button,\n bubbles: !hasConsumerStoppedPropagationRef.current,\n name: name,\n value: value,\n checked: checked,\n required: required,\n disabled: disabled // We transform because the input is absolutely positioned but we have\n ,\n style: {\n transform: 'translateX(-100%)'\n }\n }));\n});\n/*#__PURE__*/ Object.assign($6be4966fd9bbc698$export$b5d5cf8927ab7262, {\n displayName: $6be4966fd9bbc698$var$SWITCH_NAME\n});\n/* -------------------------------------------------------------------------------------------------\n * SwitchThumb\n * -----------------------------------------------------------------------------------------------*/ const $6be4966fd9bbc698$var$THUMB_NAME = 'SwitchThumb';\nconst $6be4966fd9bbc698$export$4d07bf653ea69106 = /*#__PURE__*/ $irPIl$forwardRef((props, forwardedRef)=>{\n const { __scopeSwitch: __scopeSwitch , ...thumbProps } = props;\n const context = $6be4966fd9bbc698$var$useSwitchContext($6be4966fd9bbc698$var$THUMB_NAME, __scopeSwitch);\n return /*#__PURE__*/ $irPIl$createElement($irPIl$Primitive.span, $irPIl$babelruntimehelpersesmextends({\n \"data-state\": $6be4966fd9bbc698$var$getState(context.checked),\n \"data-disabled\": context.disabled ? '' : undefined\n }, thumbProps, {\n ref: forwardedRef\n }));\n});\n/*#__PURE__*/ Object.assign($6be4966fd9bbc698$export$4d07bf653ea69106, {\n displayName: $6be4966fd9bbc698$var$THUMB_NAME\n});\n/* ---------------------------------------------------------------------------------------------- */ const $6be4966fd9bbc698$var$BubbleInput = (props)=>{\n const { control: control , checked: checked , bubbles: bubbles = true , ...inputProps } = props;\n const ref = $irPIl$useRef(null);\n const prevChecked = $irPIl$usePrevious(checked);\n const controlSize = $irPIl$useSize(control); // Bubble checked change to parents (e.g form change event)\n $irPIl$useEffect(()=>{\n const input = ref.current;\n const inputProto = window.HTMLInputElement.prototype;\n const descriptor = Object.getOwnPropertyDescriptor(inputProto, 'checked');\n const setChecked = descriptor.set;\n if (prevChecked !== checked && setChecked) {\n const event = new Event('click', {\n bubbles: bubbles\n });\n setChecked.call(input, checked);\n input.dispatchEvent(event);\n }\n }, [\n prevChecked,\n checked,\n bubbles\n ]);\n return /*#__PURE__*/ $irPIl$createElement(\"input\", $irPIl$babelruntimehelpersesmextends({\n type: \"checkbox\",\n \"aria-hidden\": true,\n defaultChecked: checked\n }, inputProps, {\n tabIndex: -1,\n ref: ref,\n style: {\n ...props.style,\n ...controlSize,\n position: 'absolute',\n pointerEvents: 'none',\n opacity: 0,\n margin: 0\n }\n }));\n};\nfunction $6be4966fd9bbc698$var$getState(checked) {\n return checked ? 'checked' : 'unchecked';\n}\nconst $6be4966fd9bbc698$export$be92b6f5f03c0fe9 = $6be4966fd9bbc698$export$b5d5cf8927ab7262;\nconst $6be4966fd9bbc698$export$6521433ed15a34db = $6be4966fd9bbc698$export$4d07bf653ea69106;\n\n\n\n\nexport {$6be4966fd9bbc698$export$cf7f5f17f69cbd43 as createSwitchScope, $6be4966fd9bbc698$export$b5d5cf8927ab7262 as Switch, $6be4966fd9bbc698$export$4d07bf653ea69106 as SwitchThumb, $6be4966fd9bbc698$export$be92b6f5f03c0fe9 as Root, $6be4966fd9bbc698$export$6521433ed15a34db as Thumb};\n//# sourceMappingURL=index.mjs.map\n","import {useRef as $8LvvK$useRef, useMemo as $8LvvK$useMemo} from \"react\";\n\n\nfunction $010c2913dbd2fe3d$export$5cae361ad82dce8b(value) {\n const ref = $8LvvK$useRef({\n value: value,\n previous: value\n }); // We compare values before making an update to ensure that\n // a change has been made. This ensures the previous value is\n // persisted correctly between renders.\n return $8LvvK$useMemo(()=>{\n if (ref.current.value !== value) {\n ref.current.previous = ref.current.value;\n ref.current.value = value;\n }\n return ref.current.previous;\n }, [\n value\n ]);\n}\n\n\n\n\nexport {$010c2913dbd2fe3d$export$5cae361ad82dce8b as usePrevious};\n//# sourceMappingURL=index.mjs.map\n","/**\n * Initialize a new `Emitter`.\n *\n * @api public\n */\n\nexport function Emitter(obj) {\n if (obj) return mixin(obj);\n}\n\n/**\n * Mixin the emitter properties.\n *\n * @param {Object} obj\n * @return {Object}\n * @api private\n */\n\nfunction mixin(obj) {\n for (var key in Emitter.prototype) {\n obj[key] = Emitter.prototype[key];\n }\n return obj;\n}\n\n/**\n * Listen on the given `event` with `fn`.\n *\n * @param {String} event\n * @param {Function} fn\n * @return {Emitter}\n * @api public\n */\n\nEmitter.prototype.on =\nEmitter.prototype.addEventListener = function(event, fn){\n this._callbacks = this._callbacks || {};\n (this._callbacks['$' + event] = this._callbacks['$' + event] || [])\n .push(fn);\n return this;\n};\n\n/**\n * Adds an `event` listener that will be invoked a single\n * time then automatically removed.\n *\n * @param {String} event\n * @param {Function} fn\n * @return {Emitter}\n * @api public\n */\n\nEmitter.prototype.once = function(event, fn){\n function on() {\n this.off(event, on);\n fn.apply(this, arguments);\n }\n\n on.fn = fn;\n this.on(event, on);\n return this;\n};\n\n/**\n * Remove the given callback for `event` or all\n * registered callbacks.\n *\n * @param {String} event\n * @param {Function} fn\n * @return {Emitter}\n * @api public\n */\n\nEmitter.prototype.off =\nEmitter.prototype.removeListener =\nEmitter.prototype.removeAllListeners =\nEmitter.prototype.removeEventListener = function(event, fn){\n this._callbacks = this._callbacks || {};\n\n // all\n if (0 == arguments.length) {\n this._callbacks = {};\n return this;\n }\n\n // specific event\n var callbacks = this._callbacks['$' + event];\n if (!callbacks) return this;\n\n // remove all handlers\n if (1 == arguments.length) {\n delete this._callbacks['$' + event];\n return this;\n }\n\n // remove specific handler\n var cb;\n for (var i = 0; i < callbacks.length; i++) {\n cb = callbacks[i];\n if (cb === fn || cb.fn === fn) {\n callbacks.splice(i, 1);\n break;\n }\n }\n\n // Remove event specific arrays for event types that no\n // one is subscribed for to avoid memory leak.\n if (callbacks.length === 0) {\n delete this._callbacks['$' + event];\n }\n\n return this;\n};\n\n/**\n * Emit `event` with the given args.\n *\n * @param {String} event\n * @param {Mixed} ...\n * @return {Emitter}\n */\n\nEmitter.prototype.emit = function(event){\n this._callbacks = this._callbacks || {};\n\n var args = new Array(arguments.length - 1)\n , callbacks = this._callbacks['$' + event];\n\n for (var i = 1; i < arguments.length; i++) {\n args[i - 1] = arguments[i];\n }\n\n if (callbacks) {\n callbacks = callbacks.slice(0);\n for (var i = 0, len = callbacks.length; i < len; ++i) {\n callbacks[i].apply(this, args);\n }\n }\n\n return this;\n};\n\n// alias used for reserved events (protected method)\nEmitter.prototype.emitReserved = Emitter.prototype.emit;\n\n/**\n * Return array of callbacks for `event`.\n *\n * @param {String} event\n * @return {Array}\n * @api public\n */\n\nEmitter.prototype.listeners = function(event){\n this._callbacks = this._callbacks || {};\n return this._callbacks['$' + event] || [];\n};\n\n/**\n * Check if this emitter has `event` handlers.\n *\n * @param {String} event\n * @return {Boolean}\n * @api public\n */\n\nEmitter.prototype.hasListeners = function(event){\n return !! this.listeners(event).length;\n};\n","const defaultLogger = console;\n\nexport { defaultLogger };\n//# sourceMappingURL=logger.mjs.map\n"],"names":["__awaiter","thisArg","_arguments","P","generator","Promise","resolve","reject","fulfilled","value","step","next","e","rejected","result","done","then","apply","__rest","s","t","p","Object","prototype","hasOwnProperty","call","indexOf","getOwnPropertySymbols","i","length","propertyIsEnumerable","ApiService","constructor","backendUrl","this","isAuthenticated","httpClient","HttpClient","setAuthorizationToken","token","disposeAuthorizationToken","updateAction","messageId","executedType","status","payload","post","markMessageAs","mark","markPayload","undefined","seen","read","removeMessage","delete","removeMessages","messageIds","removeAllMessages","feedId","url","markAllMessagesAsRead","markAllMessagesAsSeen","getNotificationsList","page","_a","rest","payloadString","btoa","JSON","stringify","getFullResponse","assign","initializeSession","appId","subscriberId","hmacHash","applicationIdentifier","postUsageLog","name","getUnseenCount","query","get","getUnreadCount","getTabCount","getOrganization","getUserPreference","getUserGlobalPreference","updateSubscriberPreference","templateId","channelType","enabled","patch","channel","type","updateSubscriberGlobalPreference","preferences","map","preference","__createBinding","create","o","m","k","k2","desc","getOwnPropertyDescriptor","__esModule","writable","configurable","enumerable","defineProperty","__exportStar","exports","__importDefault","mod","HeadlessService","NOTIFICATION_CENTER_TOKEN_KEY","query_core_1","socket_io_client_1","client_1","shared_1","query_service_1","utils_1","isBrowser","window","options","_b","_c","_d","_e","_f","_g","_h","_j","queryClient","session","socket","sessionQueryOptions","queryKey","SESSION_QUERY_KEY","cacheTime","Infinity","staleTime","queryFn","api","subscriberHash","organizationQueryOptions","ORGANIZATION_QUERY_KEY","unseenCountQueryOptions","UNSEEN_COUNT_QUERY_KEY","unreadCountQueryOptions","UNREAD_COUNT_QUERY_KEY","userPreferencesQueryOptions","USER_PREFERENCES_QUERY_KEY","userGlobalPreferencesQueryOptions","USER_GLOBAL_PREFERENCES_QUERY_KEY","callFetchListener","listener","data","error","isLoading","isFetching","isError","callFetchListenerWithPagination","callUpdateListener","localStorage","getItem","applyToken","QueryClient","defaultOptions","queries","refetchOnWindowFocus","retry","config","retryDelay","mutations","queryService","QueryService","assertSessionInitialized","Error","newToken","setItem","removeItem","initializeSocket","socketUrl","disconnect","default","reconnectionDelayMax","transports","on","console","message","onSuccess","onError","clear","unsubscribe","subscribeQuery","fetchOrganization","fetchUnseenCount","fetchUnreadCount","listenNotificationReceive","WebSocketEventEnum","RECEIVED","refetchQueries","NOTIFICATIONS_QUERY_KEY","exact","off","listenUnseenCountChange","UNSEEN","Number","isInteger","unseenCount","setQueryData","oldData","count","listenUnreadCountChange","UNREAD","unreadCount","fetchNotifications","storeId","fetchUserPreferences","fetchUserGlobalPreferences","updateUserPreferences","checked","subscribeMutation","mutationFn","variables","oldUserPreferences","setting","template","_id","res","mutate","catch","finally","updateUserGlobalPreferences","markNotificationsAsRead","markNotificationsAsSeen","markNotificationsAs","removeNotification","removeNotifications","actionButtonType","removeAllNotifications","removeQueries","mount","defaultedOptions","defaultQueryOptions","queryObserver","QueryObserver","getOptimisticResult","subscribe","defaultMutationOptions","mutationObserver","MutationObserver","getCurrentResult","MessageActionStatusEnum","ChannelTypeEnum","ButtonTypeEnum","AuthProviderEnum","UserRoleEnum","MemberRoleEnum","MemberStatusEnum","TriggerTypeEnum","TriggerContextTypeEnum","ExecutionDetailsSourceEnum","ExecutionDetailsStatusEnum","IGroupedBlueprint","NOVU_ENCRYPTION_SUB_MASK","FieldOperatorEnum","FieldLogicalOperatorEnum","TimeOperatorEnum","FilterPartTypeEnum","PreviousStepTypeEnum","StepTypeEnum","STEP_TYPE_TO_CHANNEL_TYPE","Map","IN_APP","EMAIL","SMS","CHAT","PUSH","ChannelCTATypeEnum","TemplateVariableTypeEnum","ActorTypeEnum","SystemAvatarIconEnum","CHANNELS_WITH_PRIMARY","DELAYED_STEPS","DELAY","DIGEST","TriggerEventStatusEnum","TriggerRecipientsTypeEnum","AddressingTypeEnum","TriggerRequestCategoryEnum","FeatureFlagsKeysEnum","SystemCriticalFlagsEnum","EmailBlockTypeEnum","TextAlignEnum","ApiServiceLevelEnum","ProductUseCasesEnum","JobTitleEnum","testFlagEnumValidity","testEnum","jobTitleToLabelMapper","ENGINEER","ARCHITECT","PRODUCT_MANAGER","DESIGNER","ENGINEERING_MANAGER","OTHER","OrderDirectionEnum","SubscriberSourceEnum","PreferenceOverrideSourceEnum","SignUpOriginEnum","MarkMessagesAsEnum","ApiRateLimitAlgorithmEnum","ApiRateLimitConfigEnum","ApiRateLimitCostEnum","ApiRateLimitCategoryEnum","ApiAuthSchemeEnum","PassportStrategyEnum","TimezoneEnum","CronExpressionEnum","IApiRateLimitAlgorithm","BURST_ALLOWANCE","WINDOW_DURATION","TemplateSystemVariables","SystemVariablesWithTypes","subscriber","firstName","lastName","email","phone","avatar","locale","actor","digest","events","total_count","branding","logo","color","tenant","TriggerReservedVariables","ReservedVariablesMap","TENANT","STRING","ACTOR","LogStatusEnum","LogCodeEnum","ChangeEntityTypeEnum","DigestUnitEnum","DaysEnum","DigestTypeEnum","DelayTypeEnum","MonthlyTypeEnum","OrdinalEnum","OrdinalValueEnum","JobStatusEnum","DigestCreationResultEnum","PreferenceLevelEnum","LayoutDto","ChannelCTADto","MessageTemplateDto","SubscriberDto","TopicDto","TopicSubscribersDto","StepVariantDto","NotificationStepDto","DEFAULT_NOTIFICATION_RETENTION_DAYS","DEFAULT_MESSAGE_GENERIC_RETENTION_DAYS","DEFAULT_MESSAGE_IN_APP_RETENTION_DAYS","CredentialsKeyEnum","EmailProviderIdEnum","SmsProviderIdEnum","ChatProviderIdEnum","PushProviderIdEnum","InAppProviderIdEnum","secureCredentials","ApiKey","ApiToken","SecretKey","Token","Password","ServiceAccount","mailConfigBase","key","From","displayName","description","required","SenderName","smsConfigBase","pushConfigBase","mailJsConfig","mailgunConfig","BaseUrl","User","Domain","mailjetConfig","nexmoConfig","mandrillConfig","nodemailerConfig","Host","Port","Secure","RequireTls","IgnoreTls","TlsOptions","AccountSid","postmarkConfig","sendgridConfig","IpPoolName","resendConfig","mailtrapConfig","plunkConfig","sparkpostConfig","Region","dropdown","netCoreConfig","sendinblueConfig","sesConfig","mailerSendConfig","plivoConfig","sms77Config","termiiConfig","burstSmsConfig","bulkSmsConfig","iSendSmsConfig","ContentType","clickatellConfig","snsConfig","telnyxConfig","MessageProfileId","twilioConfig","messagebirdConfig","AccessKey","slackConfig","ApplicationId","ClientId","RedirectUrl","Hmac","grafanaOnCallConfig","alertUid","title","imageUrl","state","externalLink","getstreamConfig","fcmConfig","expoConfig","pushWebhookConfig","WebhookUrl","oneSignalConfig","pushpadConfig","apnsConfig","ProjectName","gupshupConfig","firetextConfig","outlook365Config","infobipSMSConfig","infobipEmailConfig","brazeEmailConfig","ApiURL","AppID","fortySixElksConfig","kannelConfig","maqsamConfig","smsCentralConfig","emailWebhookConfig","africasTalkingConfig","novuInAppConfig","tooltip","text","when","sendchampConfig","clickSendConfig","simpleTextingConfig","bandwidthConfig","genericSmsConfig","ApiKeyRequestHeader","SecretKeyRequestHeader","IdPath","DatePath","AuthenticateByToken","AuthenticationTokenKey","pusherBeamsConfig","InstanceId","azureSmsConfig","rocketChatConfig","ringCentralConfig","brevoSmsConfig","UTM_CAMPAIGN_QUERY_PARAM","emailProviders","id","Novu","credentials","docReference","logoFileName","light","dark","Mailgun","Mailjet","Mailtrap","Mandrill","Postmark","SendGrid","Sendinblue","SES","NetCore","CustomSMTP","MailerSend","Outlook365","Infobip","Braze","Resend","Plunk","SparkPost","EmailWebhook","betaVersion","smsProviders","Nexmo","Plivo","Sms77","SNS","Telnyx","MessageBird","Twilio","Gupshup","Firetext","BurstSms","BulkSms","ISendSms","Clickatell","FortySixElks","Kannel","Maqsam","SmsCentral","Termii","AfricasTalking","Sendchamp","GenericSms","Clicksend","Simpletexting","Bandwidth","AzureSms","RingCentral","BrevoSms","chatProviders","Slack","Discord","GrafanaOnCall","MsTeams","Mattermost","Ryver","Zulip","GetStream","RocketChat","pushProviders","OneSignal","Pushpad","FCM","EXPO","APNS","PushWebhook","PusherBeams","inAppProviders","providers","NOVU_PROVIDERS","NOVU_SMS_EMAIL_PROVIDERS","primaryButton","PRIMARY","secondaryButton","SECONDARY","darkButtonStyle","primary","backGroundColor","fontColor","removeCircleColor","secondary","clicked","lightButtonStyle","notificationItemButtons","HandlebarHelpersEnum","HandlebarHelpers","EQUALS","TITLECASE","UPPERCASE","LOWERCASE","PLURALIZE","DATEFORMAT","UNIQUE","GROUP_BY","SORT_BY","NUMBERFORMAT","I18N","getTemplateVariables","bod","stringVariables","filter","body","flatMap","varName","params","original","path","shouldAddVariable","values","includes","defaultValue","arrayVariables","nestedVariablesInBlock","program","mustVar","ARRAY","boolVariables","BOOLEAN","concat","variableName","match","novuReservedVariableNames","isReservedVariableName","passwordConstraints","minLength","maxLength","pattern","FILTER_TO_LABEL","PAYLOAD","SUBSCRIBER","WEBHOOK","IS_ONLINE","IS_ONLINE_IN_LAST","PREVIOUS_STEP","popularProductionIds","popularDevelopmentIds","getStartedDevelopmentIds","getPopularTemplateIds","production","getGetStartedTemplateIds","DEFAULT_API_RATE_LIMIT_SERVICE_MAXIMUM_CONFIG","FREE","TRIGGER","CONFIGURATION","GLOBAL","BUSINESS","ENTERPRISE","UNLIMITED","DEFAULT_API_RATE_LIMIT_ALGORITHM_CONFIG","DEFAULT_API_RATE_LIMIT_COST_CONFIG","SINGLE","BULK","bind","fn","arguments","toString","getPrototypeOf","kindOf","cache","thing","str","slice","toLowerCase","kindOfTest","typeOfTest","isArray","Array","isUndefined","isArrayBuffer","isString","isFunction","isNumber","isObject","isPlainObject","val","Symbol","toStringTag","iterator","isDate","isFile","isBlob","isFileList","isURLSearchParams","forEach","obj","allOwnKeys","l","keys","getOwnPropertyNames","len","findKey","_key","_global","globalThis","self","global","isContextDefined","context","isTypedArray","TypedArray","Uint8Array","isHTMLForm","prop","isRegExp","reduceDescriptors","reducer","descriptors","getOwnPropertyDescriptors","reducedDescriptors","descriptor","ret","defineProperties","ALPHA","DIGIT","ALPHABET","ALPHA_DIGIT","toUpperCase","isAsyncFn","isBuffer","isFormData","kind","FormData","append","isArrayBufferView","ArrayBuffer","isView","buffer","isBoolean","isStream","pipe","merge","caseless","assignValue","targetKey","extend","a","b","trim","replace","stripBOM","content","charCodeAt","inherits","superConstructor","props","toFlatObject","sourceObj","destObj","propFilter","merged","endsWith","searchString","position","String","lastIndex","toArray","arr","forEachEntry","pair","matchAll","regExp","matches","exec","push","hasOwnProp","freezeMethods","set","toObjectSet","arrayOrString","delimiter","define","split","toCamelCase","p1","p2","noop","toFiniteNumber","isFinite","generateString","size","alphabet","Math","random","isSpecCompliantForm","toJSONObject","stack","visit","source","target","reducedValue","isThenable","AxiosError","code","request","response","captureStackTrace","utils","toJSON","number","fileName","lineNumber","columnNumber","from","customProps","axiosError","cause","isVisitable","removeBrackets","renderKey","dots","join","predicates","test","formData","TypeError","metaTokens","indexes","option","visitor","defaultVisitor","useBlob","Blob","convertValue","toISOString","Buffer","some","isFlatArray","el","index","exposedHelpers","build","pop","encode","charMap","encodeURIComponent","AxiosURLSearchParams","_pairs","encoder","_encode","buildURL","serializeFn","serialize","serializedParams","hashmarkIndex","handlers","use","synchronous","runWhen","eject","h","silentJSONParsing","forcedJSONParsing","clarifyTimeoutError","classes","URLSearchParams","protocols","hasBrowserEnv","document","hasStandardBrowserEnv","product","navigator","hasStandardBrowserWebWorkerEnv","WorkerGlobalScope","importScripts","buildPath","isNumericKey","isLast","arrayToObject","entries","parsePropPath","defaults","transitional","adapter","transformRequest","headers","contentType","getContentType","hasJSONContentType","isObjectPayload","setContentType","platform","helpers","isNode","toURLEncodedForm","formSerializer","_FormData","env","rawValue","parser","parse","stringifySafely","transformResponse","JSONRequested","responseType","strictJSONParsing","timeout","xsrfCookieName","xsrfHeaderName","maxContentLength","maxBodyLength","validateStatus","common","method","ignoreDuplicateOf","$internals","normalizeHeader","header","normalizeValue","matchHeaderValue","isHeaderNameFilter","AxiosHeaders","valueOrRewrite","rewrite","setHeader","_value","_header","_rewrite","lHeader","setHeaders","rawHeaders","parsed","line","substring","parseHeaders","tokens","tokensRE","parseTokens","has","matcher","deleted","deleteHeader","normalize","format","normalized","w","char","formatHeader","targets","asStrings","static","first","computed","accessors","defineAccessor","accessorName","methodName","arg1","arg2","arg3","buildAccessors","accessor","mapped","headerValue","transformData","fns","isCancel","__CANCEL__","CanceledError","write","expires","domain","secure","cookie","Date","toGMTString","RegExp","decodeURIComponent","remove","now","buildFullPath","baseURL","requestedURL","relativeURL","combineURLs","msie","userAgent","urlParsingNode","createElement","originURL","resolveURL","href","setAttribute","protocol","host","search","hash","hostname","port","pathname","charAt","location","requestURL","samplesCount","min","bytes","timestamps","firstSampleTS","head","tail","chunkLength","startedAt","bytesCount","passed","round","progressEventReducer","isDownloadStream","bytesNotified","_speedometer","loaded","total","lengthComputable","progressBytes","rate","progress","estimated","event","knownAdapters","http","xhr","XMLHttpRequest","requestData","requestHeaders","onCanceled","withXSRFToken","cancelToken","signal","removeEventListener","Boolean","auth","username","password","unescape","fullPath","onloadend","responseHeaders","getAllResponseHeaders","floor","settle","err","responseText","statusText","open","paramsSerializer","onreadystatechange","readyState","responseURL","setTimeout","onabort","onerror","ontimeout","timeoutErrorMessage","isURLSameOrigin","xsrfValue","cookies","setRequestHeader","withCredentials","onDownloadProgress","addEventListener","onUploadProgress","upload","cancel","abort","aborted","parseProtocol","send","renderReason","reason","isResolvedHandle","adapters","nameOrAdapter","rejectedReasons","reasons","throwIfCancellationRequested","throwIfRequested","dispatchRequest","headersToObject","mergeConfig","config1","config2","getMergedValue","mergeDeepProperties","valueFromConfig2","defaultToConfig2","mergeDirectKeys","mergeMap","timeoutMessage","decompress","beforeRedirect","transport","httpAgent","httpsAgent","socketPath","responseEncoding","configValue","VERSION","validators","deprecatedWarnings","validator","version","formatMessage","opt","opts","warn","assertOptions","schema","allowUnknown","Axios","instanceConfig","interceptors","async","configOrUrl","_request","dummy","boolean","function","contextHeaders","requestInterceptorChain","synchronousRequestInterceptors","interceptor","unshift","responseInterceptorChain","promise","chain","newConfig","onFulfilled","onRejected","getUri","generateHTTPMethod","isForm","CancelToken","executor","resolvePromise","_listeners","onfulfilled","_resolve","splice","c","HttpStatusCode","Continue","SwitchingProtocols","Processing","EarlyHints","Ok","Created","Accepted","NonAuthoritativeInformation","NoContent","ResetContent","PartialContent","MultiStatus","AlreadyReported","ImUsed","MultipleChoices","MovedPermanently","Found","SeeOther","NotModified","UseProxy","Unused","TemporaryRedirect","PermanentRedirect","BadRequest","Unauthorized","PaymentRequired","Forbidden","NotFound","MethodNotAllowed","NotAcceptable","ProxyAuthenticationRequired","RequestTimeout","Conflict","Gone","LengthRequired","PreconditionFailed","PayloadTooLarge","UriTooLong","UnsupportedMediaType","RangeNotSatisfiable","ExpectationFailed","ImATeapot","MisdirectedRequest","UnprocessableEntity","Locked","FailedDependency","TooEarly","UpgradeRequired","PreconditionRequired","TooManyRequests","RequestHeaderFieldsTooLarge","UnavailableForLegalReasons","InternalServerError","NotImplemented","BadGateway","ServiceUnavailable","GatewayTimeout","HttpVersionNotSupported","VariantAlsoNegotiates","InsufficientStorage","LoopDetected","NotExtended","NetworkAuthenticationRequired","axios","createInstance","defaultConfig","instance","toFormData","Cancel","all","promises","spread","callback","isAxiosError","formToJSON","getAdapter","axiosClient","Authorization","prepareBooleanStringFeatureFlag","NovuComponentEnum","JobTopicNameEnum","ObservabilityBackgroundTransactionEnum","JobCronNameEnum","getContextPath","component","contextPath","process","_env_","GLOBAL_CONTEXT_PATH","API","API_CONTEXT_PATH","WEB","FRONT_BASE_CONTEXT_PATH","WIDGET","WIDGET_CONTEXT_PATH","WS","WS_CONTEXT_PATH","getRedisPrefix","redisPrefix","REDIS_PREFIX","subscribable","FocusManager","Subscribable","super","setup","onFocus","isServer","onSubscribe","cleanup","setEventListener","onUnsubscribe","_this$cleanup","hasListeners","_this$cleanup2","focused","setFocused","listeners","isFocused","visibilityState","focusManager","defaultShouldDehydrateMutation","mutation","isPaused","defaultShouldDehydrateQuery","dehydrate","client","dehydrateMutations","shouldDehydrateMutation","getMutationCache","getAll","mutationKey","dehydrateMutation","dehydrateQueries","shouldDehydrateQuery","getQueryCache","queryHash","dehydrateQuery","hydrate","dehydratedState","mutationCache","queryCache","dehydratedMutation","_options$defaultOptio","_options$defaultOptio2","dataUpdatedAt","fetchStatus","_ignored","dehydratedQueryState","setState","retryer","queriesObserver","infiniteQueryObserver","notifyManager","onlineManager","hydration","CancelledError","isCancelledError","QueryCache","QueriesObserver","InfiniteQueryObserver","MutationCache","hashQueryKey","matchQuery","parseFilterArgs","parseMutationArgs","parseMutationFilterArgs","parseQueryArgs","replaceEqualDeep","Query","getNextPageParam","pages","getPreviousPageParam","hasNextPage","nextPageParam","hasPreviousPage","previousPageParam","infiniteQueryBehavior","onFetch","fetchFn","_context$fetchOptions","_context$fetchOptions2","_context$fetchOptions3","_context$fetchOptions4","_context$state$data","_context$state$data2","refetchPage","fetchOptions","meta","fetchMore","pageParam","isFetchingNextPage","direction","isFetchingPreviousPage","oldPages","oldPageParams","pageParams","newPageParams","cancelled","buildNewPages","param","previous","fetchPage","manual","queryFnContext","object","_context$signal","_context$signal2","queryFnResult","bindMethods","fetchNextPage","fetchPreviousPage","setOptions","notifyOptions","behavior","fetch","createResult","_state$fetchMeta","_state$fetchMeta$fetc","_state$fetchMeta2","_state$fetchMeta2$fet","_state$data","_state$data2","isRefetching","fetchMeta","logger","removable","Mutation","Removable","mutationId","defaultLogger","observers","getDefaultState","scheduleGc","updateCacheTime","dispatch","addObserver","observer","clearGcTimeout","notify","removeObserver","x","optionalRemove","continue","_this$retryer$continu","_this$retryer","execute","executeMutation","_this$options$retry","createRetryer","onFail","failureCount","onPause","onContinue","networkMode","restored","_this$mutationCache$c3","_this$mutationCache$c4","_this$options$onSucce","_this$options2","_this$mutationCache$c5","_this$mutationCache$c6","_this$options$onSettl","_this$options3","_this$mutationCache$c","_this$mutationCache$c2","_this$options$onMutat","_this$options","onMutate","onSettled","_this$mutationCache$c7","_this$mutationCache$c8","_this$options$onError","_this$options4","_this$mutationCache$c9","_this$mutationCache$c10","_this$options$onSettl2","_this$options5","action","failureReason","canFetch","batch","onMutationUpdate","mutation$1","getLogger","getMutationDefaults","add","find","filters","matchMutation","findAll","resumePausedMutations","_this$resuming","resuming","pausedMutations","reduce","updateResult","reset","_this$currentMutation","prevOptions","shallowEqualObjects","currentMutation","_this$currentMutation2","currentResult","mutateOptions","isSuccess","isIdle","_this$mutateOptions$o","_this$mutateOptions","_this$mutateOptions$o2","_this$mutateOptions2","_this$mutateOptions$o3","_this$mutateOptions3","_this$mutateOptions$o4","_this$mutateOptions4","createNotifyManager","queue","transactions","notifyFn","batchNotifyFn","schedule","scheduleMicrotask","flush","originalQueue","batchCalls","args","setNotifyFunction","setBatchNotifyFunction","onlineEvents","OnlineManager","onOnline","online","setOnline","isOnline","onLine","observersMap","setQueries","onUpdate","destroy","Set","prevObservers","newObserverMatches","findMatchingObservers","defaultedQueryOptions","newObservers","newObserversMap","fromEntries","newResult","hasIndexChange","difference","getQueries","getCurrentQuery","getObservers","prevObserversMap","matchingObservers","matchedQueryHashes","unmatchedQueries","matchingObserversSet","unmatchedObservers","prevObserver","getObserver","currentObserver","newOrReusedObservers","keepPreviousData","previouslyUsedObserver","sort","replaceAt","abortSignalConsumed","initialState","initialData","hasData","initialDataUpdatedAt","dataUpdateCount","errorUpdateCount","errorUpdatedAt","fetchFailureCount","fetchFailureReason","isInvalidated","setData","newData","replaceData","updatedAt","setStateOptions","silent","isActive","isDisabled","getObserversCount","isStale","isStaleByTime","timeUntilStale","_this$retryer2","shouldFetchOnWindowFocus","refetch","cancelRefetch","_this$retryer3","shouldFetchOnReconnect","revert","cancelRetry","invalidate","_this$options$behavio","_this$retryer4","continueRetry","abortController","getAbortController","addSignalProperty","revertState","_this$cache$config$on","_this$cache$config","_this$cache$config$on2","_this$cache$config2","isFetchingOptimistic","_this$cache$config$on3","_this$cache$config3","_this$cache$config$on4","_this$cache$config4","_action$meta","_action$dataUpdatedAt","onQueryUpdate","queriesMap","_options$queryHash","hashQueryKeyByOptions","query$1","getQueryDefaults","queryInMap","queryDefaults","mutationDefaults","mountCount","unsubscribeFocus","unsubscribeOnline","unmount","_this$unsubscribeFocu","_this$unsubscribeOnli","isMutating","fetching","getQueryData","_this$queryCache$find","ensureQueryData","parsedOptions","cachedData","fetchQuery","getQueriesData","queryKeyOrFilters","updater","prevData","functionalUpdate","setQueriesData","getQueryState","_this$queryCache$find2","resetQueries","refetchFilters","cancelQueries","cancelOptions","invalidateQueries","_ref","_filters$refetchType","refetchType","_options$cancelRefetc","throwOnError","prefetchQuery","fetchInfiniteQuery","prefetchInfiniteQuery","getDefaultOptions","setDefaultOptions","setQueryDefaults","firstMatchingDefaults","partialMatchKey","setMutationDefaults","_defaulted","refetchOnReconnect","useErrorBoundary","suspense","trackedProps","selectError","currentQuery","shouldFetchOnMount","executeFetch","updateTimers","shouldFetchOn","clearStaleTimeout","clearRefetchInterval","prevQuery","updateQuery","mounted","shouldFetchOptionally","updateStaleTimeout","nextRefetchInterval","computeRefetchInterval","currentRefetchInterval","updateRefetchInterval","optimisticResult","placeholderData","isPlaceholderData","shouldAssignObserverCurrentProperties","currentResultOptions","currentResultState","trackResult","trackedResult","fetchOptimistic","_fetchOptions$cancelR","isValidTimeout","staleTimeoutId","_this$options$refetch","refetchInterval","nextInterval","refetchIntervalId","setInterval","refetchIntervalInBackground","clearTimeout","clearInterval","prevResult","prevResultState","prevResultOptions","queryChange","queryInitialState","currentQueryInitialState","prevQueryResult","previousQueryResult","isPreviousData","_optimisticResults","fetchOnMount","fetchOptionally","select","selectFn","selectResult","isInitialLoading","isFetched","isFetchedAfterMount","isLoadingError","isRefetchError","nextResult","defaultNotifyOptions","notifyOnChangeProps","notifyOnChangePropsValue","includedProps","typedKey","shouldNotifyListeners","retryOnMount","shouldLoadOnMount","refetchOnMount","field","gcTimeout","newCacheTime","max","defaultRetryDelay","continueFn","promiseResolve","promiseReject","isRetryCancelled","isResolved","outerResolve","outerReject","shouldPause","pause","continueResolve","canContinue","run","promiseOrValue","_config$retry","_config$retryDelay","delay","shouldRetry","sleep","identity","queryKeyHashFn","_","partialDeepEqual","array","isPlainArray","aSize","bItems","bSize","copy","equalItems","hasObjectPrototype","ctor","prot","isQueryKey","array1","array2","input","AbortController","predicate","stale","isDataEqual","structuralSharing","hasCORS","decode","qs","qry","pairs","re","parts","src","uri","authority","ipv6uri","pathNames","regx","names","$0","$1","$2","yeast","prev","seed","num","encoded","decoded","globalThisShim","Function","nextTick","installTimerFunctions","TransportError","Transport","Socket","socket_js_1","transport_js_1","index_js_1","util_js_1","parseuri_js_1","websocket_constructor_js_1","parseqs_js_1","debug_1","component_emitter_1","engine_io_parser_1","debug","Emitter","binaryType","defaultBinaryType","writeBuffer","prevBufferLen","agent","upgrade","timestampParam","rememberUpgrade","addTrailingSlash","rejectUnauthorized","perMessageDeflate","threshold","transportOptions","closeOnBeforeunload","upgrades","pingInterval","pingTimeout","pingTimeoutTimer","beforeunloadEventListener","removeAllListeners","close","offlineEventListener","onClose","createTransport","EIO","sid","priorWebsocketSuccess","setTimeoutFn","emitReserved","shift","setTransport","onDrain","onPacket","probe","failed","onTransportOpen","once","msg","upgrading","freezeTransport","onTransportClose","onclose","onupgrade","to","removeListener","onOpen","packet","resetPingTimeout","onHandshake","sendPacket","filterUpgrades","maxPayload","clearTimeoutFn","autoUnref","unref","packets","getWritablePackets","payloadSize","byteLength","compress","cleanupAndClose","waitForUpgrade","filteredUpgrades","j","doOpen","doClose","onData","decodePacket","details","createUri","_hostname","_port","_query","encodedQuery","polling_js_1","websocket_js_1","webtransport_js_1","websocket","webtransport","WT","polling","Polling","Request","yeast_js_1","xmlhttprequest_js_1","globalThis_js_1","empty","hasXHR2","XHR","xdomain","isSSL","xd","forceBase64","supportsBinary","cookieJar","createCookieJar","poll","doPoll","decodePayload","encodePayload","doWrite","timestampRequests","b64","req","xhrStatus","pollXhr","pick","extraHeaders","setDisableHeaderCheck","addCookies","requestTimeout","parseCookies","onLoad","requestsCount","requests","fromError","attachEvent","unloadHandler","terminationEvent","usingBrowserWebSocket","WebSocket","cb","MozWebSocket","isReactNative","check","ws","addEventListeners","onopen","_socket","closeEvent","onmessage","ev","lastPacket","encodePacket","WebTransport","closed","ready","createBidirectionalStream","stream","decoderStream","createPacketDecoderStream","MAX_SAFE_INTEGER","reader","readable","pipeThrough","getReader","encoderStream","createPacketEncoderStream","pipeTo","writer","getWriter","has_cors_js_1","attr","acc","NATIVE_SET_TIMEOUT","NATIVE_CLEAR_TIMEOUT","useNativeTimers","utf8Length","ceil","ERROR_PACKET","PACKET_TYPES_REVERSE","PACKET_TYPES","chars","lookup","arraybuffer","base64","encoded1","encoded2","encoded3","encoded4","bufferLength","commons_js_1","base64_arraybuffer_js_1","withNativeArrayBuffer","encodedPacket","mapBinary","decodeBase64Packet","encodePacketToBinary","withNativeBlob","encodeBlobAsBase64","fileReader","FileReader","onload","readAsDataURL","byteOffset","TEXT_ENCODER","arrayBuffer","TextEncoder","encodePacket_js_1","decodePacket_js_1","SEPARATOR","fromCharCode","encodedPackets","TEXT_DECODER","totalLength","chunks","chunk","concatChunks","encodedPayload","decodedPacket","TransformStream","transform","controller","payloadLength","DataView","setUint8","view","setUint16","setBigUint64","BigInt","enqueue","TextDecoder","expectedLength","isBinary","headerArray","getUint16","n","getUint32","pow","Backoff","ms","factor","jitter","attempts","duration","rand","deviation","setMin","setMax","setJitter","connect","io","Manager","url_js_1","manager_js_1","sameNamespace","forceNew","multiplex","socket_io_parser_1","module","__setModuleDefault","v","__importStar","engine_io_client_1","on_js_1","backo2_js_1","nsps","subs","reconnection","reconnectionAttempts","reconnectionDelay","randomizationFactor","backoff","_readyState","_parser","Encoder","decoder","Decoder","_autoConnect","autoConnect","_reconnection","_reconnectionAttempts","_reconnectionDelay","_randomizationFactor","_reconnectionDelayMax","_timeout","maybeReconnectOnOpen","_reconnecting","reconnect","engine","skipReconnect","openSubDestroy","errorSub","timer","onping","ondata","ondecoded","nsp","active","_destroy","_close","_packet","subDestroy","onreconnect","attempt","RESERVED_EVENTS","freeze","connect_error","disconnecting","newListener","connected","recovered","receiveBuffer","sendBuffer","_queue","_queueSeq","ids","acks","flags","_opts","disconnected","subEvents","onpacket","emit","retries","fromQueue","volatile","_addToQueue","PacketType","EVENT","ack","_registerAckCallback","isTransportWritable","notifyOutgoingListeners","ackTimeout","emitWithAck","withErr","tryCount","pending","responseArgs","_drainQueue","force","_sendConnectPacket","CONNECT","_pid","pid","offset","_lastOffset","onconnect","BINARY_EVENT","onevent","ACK","BINARY_ACK","onack","DISCONNECT","ondisconnect","CONNECT_ERROR","emitEvent","_anyListeners","sent","emitBuffered","onAny","prependAny","offAny","listenersAny","onAnyOutgoing","_anyOutgoingListeners","prependAnyOutgoing","offAnyOutgoing","listenersAnyOutgoing","loc","reconstructPacket","deconstructPacket","is_binary_js_1","_deconstructPacket","buffers","placeholder","_placeholder","_reconstructPacket","packetData","pack","attachments","binary_js_1","replacer","hasBinary","encodeAsString","encodeAsBinary","deconstruction","reviver","reconstructor","decodeString","isBinaryEvent","BinaryReconstructor","takeBinaryData","start","buf","tryParse","substr","isPayloadValid","finishedReconstruction","reconPack","binData","withNativeFile","File","$409067139f391064$var$COLLAPSIBLE_NAME","$409067139f391064$var$createCollapsibleContext","$409067139f391064$export$952b32dcbe73087a","$409067139f391064$var$CollapsibleProvider","$409067139f391064$var$useCollapsibleContext","$409067139f391064$export$6eb0f7ddcda6131f","forwardedRef","__scopeCollapsible","openProp","defaultOpen","disabled","onOpenChange","collapsibleProps","setOpen","defaultProp","onChange","scope","contentId","onOpenToggle","prevOpen","$409067139f391064$var$getState","ref","$409067139f391064$var$TRIGGER_NAME","$409067139f391064$export$c135dce7b15bbbdc","triggerProps","onClick","$409067139f391064$var$CONTENT_NAME","$409067139f391064$export$aadde00976f34151","forceMount","contentProps","present","$409067139f391064$var$CollapsibleContentImpl","children","isPresent","setIsPresent","composedRefs","heightRef","height","current","widthRef","width","isOpen","isMountAnimationPreventedRef","originalStylesRef","rAF","requestAnimationFrame","cancelAnimationFrame","node","transitionDuration","style","animationName","rect","getBoundingClientRect","hidden","$409067139f391064$export$be92b6f5f03c0fe9","$409067139f391064$export$41fb9f06171c75f4","$6be4966fd9bbc698$var$SWITCH_NAME","$6be4966fd9bbc698$var$createSwitchContext","$6be4966fd9bbc698$export$cf7f5f17f69cbd43","$6be4966fd9bbc698$var$SwitchProvider","$6be4966fd9bbc698$var$useSwitchContext","$6be4966fd9bbc698$export$b5d5cf8927ab7262","__scopeSwitch","checkedProp","defaultChecked","onCheckedChange","switchProps","button","setButton","hasConsumerStoppedPropagationRef","isFormControl","closest","setChecked","role","$6be4966fd9bbc698$var$getState","prevChecked","isPropagationStopped","stopPropagation","$6be4966fd9bbc698$var$BubbleInput","control","bubbles","$6be4966fd9bbc698$var$THUMB_NAME","$6be4966fd9bbc698$export$4d07bf653ea69106","thumbProps","inputProps","controlSize","inputProto","HTMLInputElement","Event","dispatchEvent","tabIndex","pointerEvents","opacity","margin","$6be4966fd9bbc698$export$be92b6f5f03c0fe9","$6be4966fd9bbc698$export$6521433ed15a34db","$010c2913dbd2fe3d$export$5cae361ad82dce8b","mixin","_callbacks","callbacks"],"sourceRoot":""}
|