@gradientedge/commercetools-utils 5.2.0 → 5.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"ge-commercetools-utils-browser.esm.js","mappings":"sBAEuHA,EAAQC,YAAS,EACxI,IAAIC,EAAW,EAAQ,MACvBC,OAAOC,eAAeJ,EAAS,SAAU,CAAEK,YAAY,EAAMC,IAAK,WAAc,OAAOJ,EAASD,MAAQ,IAKzF,EAAQ,K,iBCRvBE,OAAOC,eAAeJ,EAAS,aAAc,CAAEO,OAAO,IACtDP,EAAQQ,YAAS,EACjB,MAAMN,EAAW,EAAQ,MAqCzBF,EAAQQ,OAvBR,SAAgBC,GAEZ,OAAQA,GACJ,KAAK,IACD,MAAO,KACX,KAAK,IACD,MAAO,gCACX,KAAK,IACD,MAAO,eACX,KAAK,IACD,MAAO,UACX,KAAK,IACD,MAAO,eACX,KAAK,IACD,MAAO,eACX,KAAK,IACD,MAAO,6BACX,QAGI,OADeN,OAAOO,KAAKR,EAASD,QAAQU,MAAMC,GAAQV,EAASD,OAAOW,KAASH,KAAW,IAChFI,QAAQ,iBAAkB,OAEpD,C,eCtCAV,OAAOC,eAAeJ,EAAS,aAAc,CAAEO,OAAO,IACtDP,EAAQC,OAASD,EAAQc,YAAcd,EAAQe,kBAAoBf,EAAQgB,cAAgBhB,EAAQiB,uBAAoB,EAMvHjB,EAAQiB,kBAAoB,CAOxBC,SAAU,IAOVC,mBAAoB,IAKpBC,WAAY,IAOZC,WAAY,KAOhBrB,EAAQgB,cAAgB,CAYpBM,GAAI,IAOJC,QAAS,IAQTC,SAAU,IASVC,4BAA6B,IAO7BC,UAAW,IAMXC,aAAc,IAMdC,eAAgB,IAKhBC,YAAa,IAKbC,gBAAiB,IAKjBC,OAAQ,KAOZ/B,EAAQe,kBAAoB,CAOxBiB,gBAAiB,IAOjBC,iBAAkB,IASlBC,MAAO,IAMPC,SAAU,IAOVC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tB,KAAK,sCA4BZutB,EAAO3tB,OACP,MAAM,IAAI0nB,GAAmB,4FACzBiG,EAAOpoB,KAAKyK,GAAU,KAAKA,MAASjQ,KAAK,MAErD,E","sources":["webpack://@gradientedge/commercetools-utils/./node_modules/@tshttp/status/index.js","webpack://@gradientedge/commercetools-utils/./node_modules/@tshttp/status/reason.js","webpack://@gradientedge/commercetools-utils/./node_modules/@tshttp/status/status.js","webpack://@gradientedge/commercetools-utils/./node_modules/json-stringify-safe/stringify.js","webpack://@gradientedge/commercetools-utils/./node_modules/traverse/index.js","webpack://@gradientedge/commercetools-utils/webpack/bootstrap","webpack://@gradientedge/commercetools-utils/webpack/runtime/compat get default export","webpack://@gradientedge/commercetools-utils/webpack/runtime/define property getters","webpack://@gradientedge/commercetools-utils/webpack/runtime/hasOwnProperty shorthand","webpack://@gradientedge/commercetools-utils/./node_modules/axios/lib/helpers/bind.js","webpack://@gradientedge/commercetools-utils/./node_modules/axios/lib/utils.js","webpack://@gradientedge/commercetools-utils/./node_modules/axios/lib/core/AxiosError.js","webpack://@gradientedge/commercetools-utils/./node_modules/axios/lib/helpers/toFormData.js","webpack://@gradientedge/commercetools-utils/./node_modules/axios/lib/helpers/AxiosURLSearchParams.js","webpack://@gradientedge/commercetools-utils/./node_modules/axios/lib/helpers/buildURL.js","webpack://@gradientedge/commercetools-utils/./node_modules/axios/lib/core/InterceptorManager.js","webpack://@gradientedge/commercetools-utils/./node_modules/axios/lib/defaults/transitional.js","webpack://@gradientedge/commercetools-utils/./node_modules/axios/lib/platform/browser/index.js","webpack://@gradientedge/commercetools-utils/./node_modules/axios/lib/platform/browser/classes/URLSearchParams.js","webpack://@gradientedge/commercetools-utils/./node_modules/axios/lib/platform/browser/classes/FormData.js","webpack://@gradientedge/commercetools-utils/./node_modules/axios/lib/platform/browser/classes/Blob.js","webpack://@gradientedge/commercetools-utils/./node_modules/axios/lib/helpers/formDataToJSON.js","webpack://@gradientedge/commercetools-utils/./node_modules/axios/lib/defaults/index.js","webpack://@gradientedge/commercetools-utils/./node_modules/axios/lib/helpers/toURLEncodedForm.js","webpack://@gradientedge/commercetools-utils/./node_modules/axios/lib/helpers/parseHeaders.js","webpack://@gradientedge/commercetools-utils/./node_modules/axios/lib/core/AxiosHeaders.js","webpack://@gradientedge/commercetools-utils/./node_modules/axios/lib/core/transformData.js","webpack://@gradientedge/commercetools-utils/./node_modules/axios/lib/cancel/isCancel.js","webpack://@gradientedge/commercetools-utils/./node_modules/axios/lib/cancel/CanceledError.js","webpack://@gradientedge/commercetools-utils/./node_modules/axios/lib/helpers/cookies.js","webpack://@gradientedge/commercetools-utils/./node_modules/axios/lib/core/buildFullPath.js","webpack://@gradientedge/commercetools-utils/./node_modules/axios/lib/helpers/isAbsoluteURL.js","webpack://@gradientedge/commercetools-utils/./node_modules/axios/lib/helpers/combineURLs.js","webpack://@gradientedge/commercetools-utils/./node_modules/axios/lib/helpers/isURLSameOrigin.js","webpack://@gradientedge/commercetools-utils/./node_modules/axios/lib/adapters/xhr.js","webpack://@gradientedge/commercetools-utils/./node_modules/axios/lib/helpers/speedometer.js","webpack://@gradientedge/commercetools-utils/./node_modules/axios/lib/adapters/adapters.js","webpack://@gradientedge/commercetools-utils/./node_modules/axios/lib/helpers/null.js","webpack://@gradientedge/commercetools-utils/./node_modules/axios/lib/core/settle.js","webpack://@gradientedge/commercetools-utils/./node_modules/axios/lib/helpers/parseProtocol.js","webpack://@gradientedge/commercetools-utils/./node_modules/axios/lib/core/dispatchRequest.js","webpack://@gradientedge/commercetools-utils/./node_modules/axios/lib/core/mergeConfig.js","webpack://@gradientedge/commercetools-utils/./node_modules/axios/lib/env/data.js","webpack://@gradientedge/commercetools-utils/./node_modules/axios/lib/helpers/validator.js","webpack://@gradientedge/commercetools-utils/./node_modules/axios/lib/core/Axios.js","webpack://@gradientedge/commercetools-utils/./node_modules/axios/lib/cancel/CancelToken.js","webpack://@gradientedge/commercetools-utils/./node_modules/axios/lib/helpers/HttpStatusCode.js","webpack://@gradientedge/commercetools-utils/./node_modules/axios/lib/axios.js","webpack://@gradientedge/commercetools-utils/./node_modules/axios/lib/helpers/spread.js","webpack://@gradientedge/commercetools-utils/./node_modules/axios/lib/helpers/isAxiosError.js","webpack://@gradientedge/commercetools-utils/./node_modules/axios/index.js","webpack://@gradientedge/commercetools-utils/./dist/esm/utils/axios/extract-headers.js","webpack://@gradientedge/commercetools-utils/./dist/esm/utils/axios/convert-error.js","webpack://@gradientedge/commercetools-utils/./dist/esm/utils/axios/convert-response.js","webpack://@gradientedge/commercetools-utils/./dist/esm/constants.js","webpack://@gradientedge/commercetools-utils/./dist/esm/utils/axios/create-instance.js","webpack://@gradientedge/commercetools-utils/./dist/esm/utils/calculate-delay.js","webpack://@gradientedge/commercetools-utils/./dist/esm/utils/format.js","webpack://@gradientedge/commercetools-utils/./dist/esm/utils/get-attribute-value.js","webpack://@gradientedge/commercetools-utils/./dist/esm/utils/plain-clone.js","webpack://@gradientedge/commercetools-utils/./dist/esm/utils/mask.js","webpack://@gradientedge/commercetools-utils/./dist/esm/utils/retry-on-conflict.js","webpack://@gradientedge/commercetools-utils/./dist/esm/utils/useragent.js","webpack://@gradientedge/commercetools-utils/./dist/esm/error/CommercetoolsError.js","webpack://@gradientedge/commercetools-utils/./dist/esm/types.js","webpack://@gradientedge/commercetools-utils/./dist/esm/auth/constants.js","webpack://@gradientedge/commercetools-utils/./dist/esm/auth/scopes.js","webpack://@gradientedge/commercetools-utils/./dist/esm/auth/CommercetoolsGrant.js","webpack://@gradientedge/commercetools-utils/./dist/esm/auth/types.js","webpack://@gradientedge/commercetools-utils/./dist/esm/request/is-retryable-error.js","webpack://@gradientedge/commercetools-utils/./dist/esm/request/transform-error.js","webpack://@gradientedge/commercetools-utils/./dist/esm/request/request-executor.js","webpack://@gradientedge/commercetools-utils/./dist/esm/request/request.js","webpack://@gradientedge/commercetools-utils/./dist/esm/auth/CommercetoolsAuthApi.js","webpack://@gradientedge/commercetools-utils/./dist/esm/auth/utils.js","webpack://@gradientedge/commercetools-utils/./dist/esm/auth/CommercetoolsAuth.js","webpack://@gradientedge/commercetools-utils/./dist/esm/api/CommercetoolsApi.js"],"sourcesContent":["\"use strict\";\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.reason = exports.ErrorStatus = exports.RedirectionStatus = exports.SuccessStatus = exports.InformationStatus = exports.Status = void 0;\r\nvar status_1 = require(\"./status\");\r\nObject.defineProperty(exports, \"Status\", { enumerable: true, get: function () { return status_1.Status; } });\r\nObject.defineProperty(exports, \"InformationStatus\", { enumerable: true, get: function () { return status_1.InformationStatus; } });\r\nObject.defineProperty(exports, \"SuccessStatus\", { enumerable: true, get: function () { return status_1.SuccessStatus; } });\r\nObject.defineProperty(exports, \"RedirectionStatus\", { enumerable: true, get: function () { return status_1.RedirectionStatus; } });\r\nObject.defineProperty(exports, \"ErrorStatus\", { enumerable: true, get: function () { return status_1.ErrorStatus; } });\r\nvar reason_1 = require(\"./reason\");\r\nObject.defineProperty(exports, \"reason\", { enumerable: true, get: function () { return reason_1.reason; } });\r\n","\"use strict\";\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.reason = void 0;\r\nconst status_1 = require(\"./status\");\r\n/**\r\n * The reason-phrase element exists for the sole purpose of providing a textual description associated\r\n * with the numeric status code, mostly out of deference to earlier Internet application protocols\r\n * that were more frequently used with interactive text clients.\r\n *\r\n * A client SHOULD ignore the reason-phrase content.\r\n *\r\n * https://tools.ietf.org/html/rfc7230#section-3.1.2\r\n *\r\n * https://tools.ietf.org/html/rfc2616#section-6.1.1\r\n *\r\n * @public\r\n */\r\nfunction reason(status) {\r\n // Handle edge cases with ponctuations or caps\r\n switch (status) {\r\n case 200:\r\n return 'OK';\r\n case 203:\r\n return 'Non-Authoritative Information';\r\n case 207:\r\n return 'Multi-Status';\r\n case 226:\r\n return 'IM Used';\r\n case 414:\r\n return 'URI Too Long';\r\n case 418:\r\n return \"I'm a teapot\";\r\n case 505:\r\n return 'HTTP Version Not Supported';\r\n default:\r\n // Returns empty string if status is not known (not allowed by the compiler)\r\n const phrase = Object.keys(status_1.Status).find((key) => status_1.Status[key] === status) || '';\r\n return phrase.replace(/(?!^)([A-Z])/gm, ' $1');\r\n }\r\n}\r\nexports.reason = reason;\r\n","\"use strict\";\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.Status = exports.ErrorStatus = exports.RedirectionStatus = exports.SuccessStatus = exports.InformationStatus = void 0;\r\n/**\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#Information_responses\r\n *\r\n * @public\r\n */\r\nexports.InformationStatus = {\r\n /**\r\n * This interim response indicates that everything so far is OK\r\n * and that the client should continue with the request or ignore it if it is already finished.\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/100\r\n */\r\n Continue: 100,\r\n /**\r\n * This code is sent in response to an `Upgrade` request header by the client,\r\n * and indicates the protocol the server is switching to.\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/101\r\n */\r\n SwitchingProtocols: 101,\r\n /**\r\n * This code indicates that the server has received and is processing the request,\r\n * but no response is available yet.\r\n */\r\n Processing: 102,\r\n /**\r\n * This status code is primarily intended to be used with the `Link` header to allow\r\n * the user agent to start preloading resources while the server is still preparing a response.\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/103\r\n */\r\n EarlyHints: 103,\r\n};\r\n/**\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#Successful_responses\r\n *\r\n * @public\r\n */\r\nexports.SuccessStatus = {\r\n /**\r\n * The request has succeeded.\r\n * The meaning of a success varies depending on the HTTP method:\r\n *\r\n * - `GET`: The resource has been fetched and is transmitted in the message body.\r\n * - `HEAD`: The entity headers are in the message body.\r\n * - `PUT` or `POST`: The resource describing the result of the action is transmitted in the message body.\r\n * - `TRACE`: The message body contains the request message as received by the server\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/200\r\n */\r\n Ok: 200,\r\n /**\r\n * The request has succeeded and a new resource has been created as a result of it.\r\n * This is typically the response sent after a `POST` request, or after some `PUT` requests.\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/201\r\n */\r\n Created: 201,\r\n /**\r\n * The request has been received but not yet acted upon. It is non-committal,\r\n * meaning that there is no way in HTTP to later send an asynchronous response\r\n * indicating the outcome of processing the request.\r\n *\r\n * It is intended for cases where another process or server handles the request, or for batch processing.\r\n */\r\n Accepted: 202,\r\n /**\r\n * This response code means returned meta-information set is not exact set as available\r\n * from the origin server, but collected from a local or a third party copy.\r\n *\r\n * Except this condition, `200 OK` response should be preferred instead of this response.\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/203\r\n */\r\n NonAuthoritativeInformation: 203,\r\n /**\r\n * There is no content to send for this request, but the headers may be useful.\r\n * The user-agent may update its cached headers for this resource with the new ones.\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/204\r\n */\r\n NoContent: 204,\r\n /**\r\n * This response code is sent after accomplishing request to tell user agent reset document view which sent this request.\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/205\r\n */\r\n ResetContent: 205,\r\n /**\r\n * This response code is used because of range header sent by the client to separate download into multiple streams.\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/206\r\n */\r\n PartialContent: 206,\r\n /**\r\n * Conveys information about multiple resources in situations\r\n * where multiple status codes might be appropriate.\r\n */\r\n MultiStatus: 207,\r\n /**\r\n * Used inside a DAV: propstat response element to avoid enumerating\r\n * the internal members of multiple bindings to the same collection repeatedly.\r\n */\r\n AlreadyReported: 208,\r\n /**\r\n * The server has fulfilled a `GET` request for the resource, and the response is a representation\r\n * of the result of one or more instance-manipulations applied to the current instance.\r\n */\r\n ImUsed: 226,\r\n};\r\n/**\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#Redirection_messages\r\n *\r\n * @public\r\n */\r\nexports.RedirectionStatus = {\r\n /**\r\n * The request has more than one possible response. The user-agent or user should choose one of them.\r\n * There is no standardized way of choosing one of the responses.\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/300\r\n */\r\n MultipleChoices: 300,\r\n /**\r\n * This response code means that the URI of the requested resource has been changed permanently.\r\n * Probably, the new URI would be given in the response.\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/301\r\n */\r\n MovedPermanently: 301,\r\n /**\r\n * This response code means that the URI of requested resource has been changed _temporarily_.\r\n * New changes in the URI might be made in the future.\r\n *\r\n * Therefore, this same URI should be used by the client in future requests.\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/302\r\n */\r\n Found: 302,\r\n /**\r\n * The server sent this response to direct the client to get the requested resource at another URI with a `GET` request.\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/303\r\n */\r\n SeeOther: 303,\r\n /**\r\n * This is used for caching purposes. It tells the client that the response has not been modified,\r\n * so the client can continue to use the same cached version of the response.\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/304\r\n */\r\n NotModified: 304,\r\n /**\r\n * The server sends this response to direct the client to get the requested resource at another URI\r\n * with same method that was used in the prior request.\r\n *\r\n * This has the same semantics as the `302 Found` HTTP response code,\r\n * with the exception that the user agent must not change the HTTP method used:\r\n * If a `POST` was used in the first request, a `POST` must be used in the second request.\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/307\r\n */\r\n TemporaryRedirect: 307,\r\n /**\r\n * This means that the resource is now permanently located at another URI,\r\n * specified by the `Location` HTTP Response header.\r\n *\r\n * This has the same semantics as the `301 Moved Permanently` HTTP response code,\r\n * with the exception that the user agent must not change the HTTP method used:\r\n * If a `POST` was used in the first request, a `POST` must be used in the second request.\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/308\r\n */\r\n PermanentRedirect: 308,\r\n};\r\n/**\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#Client_error_responses\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#Server_error_responses\r\n *\r\n * @public\r\n */\r\nexports.ErrorStatus = {\r\n /**\r\n * This response means that server could not understand the request due to invalid syntax.\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/400\r\n */\r\n BadRequest: 400,\r\n /**\r\n * Although the HTTP standard specifies \"unauthorized\", semantically this response means \"unauthenticated\".\r\n * That is, the client must authenticate itself to get the requested response.\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/401\r\n */\r\n Unauthorized: 401,\r\n /**\r\n * This response code is reserved for future use.\r\n * Initial aim for creating this code was using it for digital payment systems,\r\n * however this status code is used very rarely and no standard convention exists.\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/402\r\n */\r\n PaymentRequired: 402,\r\n /**\r\n * The client does not have access rights to the content, i.e. they are _unauthorized_,\r\n * so server is rejecting to give proper response.\r\n *\r\n * Unlike `401`, the client's identity is known to the server.\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/403\r\n */\r\n Forbidden: 403,\r\n /**\r\n * The server can not find requested resource. In the browser, this means the URL is not recognized.\r\n * In an API, this can also mean that the endpoint is valid but the resource itself does not exist.\r\n *\r\n * Servers may also send this response instead of `403` to hide the existence of a resource from an unauthorized client.\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/404\r\n */\r\n NotFound: 404,\r\n /**\r\n * The request method is known by the server but has been disabled and cannot be used.\r\n * For example, an API may forbid `DELETE`-ing a resource.\r\n *\r\n * The two mandatory methods, `GET` and `HEAD`, must never be disabled and should not return this error code.\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/405\r\n */\r\n MethodNotAllowed: 405,\r\n /**\r\n * This response is sent when the web server, after performing server-driven content negotiation,\r\n * doesn't find any content following the criteria given by the user agent.\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/406\r\n */\r\n NotAcceptable: 406,\r\n /**\r\n * This is similar to `401` but authentication is needed to be done by a proxy.\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/40\r\n */\r\n ProxyAuthenticationRequired: 407,\r\n /**\r\n * This response is sent on an idle connection by some servers, even without any previous request by the client.\r\n * It means that the server would like to shut down this unused connection.\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408\r\n */\r\n RequestTimeout: 408,\r\n /**\r\n * This response is sent when a request conflicts with the current state of the server.\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/409\r\n */\r\n Conflict: 409,\r\n /**\r\n * This response would be sent when the requested content has been permanently deleted from server, with no forwarding address.\r\n * Clients are expected to remove their caches and links to the resource.\r\n *\r\n * The HTTP specification intends this status code to be used for \"limited-time, promotional services\".\r\n * APIs should not feel compelled to indicate resources that have been deleted with this status code.\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/410\r\n */\r\n Gone: 410,\r\n /**\r\n * Server rejected the request because the `Content-Length` header field is not defined and the server requires it.\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/411\r\n */\r\n LengthRequired: 411,\r\n /**\r\n * The client has indicated preconditions in its headers which the server does not meet.\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/412\r\n */\r\n PreconditionFailed: 412,\r\n /**\r\n * Request entity is larger than limits defined by server.\r\n * The server might close the connection or return an `Retry-After` header field.\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/413\r\n */\r\n PayloadTooLarge: 413,\r\n /**\r\n * The URI requested by the client is longer than the server is willing to interpret.\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/414\r\n */\r\n UriTooLong: 414,\r\n /**\r\n * The media format of the requested data is not supported by the server, so the server is rejecting the request.\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/415\r\n */\r\n UnsupportedMediaType: 415,\r\n /**\r\n * The range specified by the `Range` header field in the request can't be fulfilled.\r\n * It's possible that the range is outside the size of the target URI's data.\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/416\r\n */\r\n RequestedRangeNotSatisfiable: 416,\r\n /**\r\n * This response code means the expectation indicated by the `Expect` request header field can't be met by the server.\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/417\r\n */\r\n ExpectationFailed: 417,\r\n /**\r\n * The server refuses the attempt to brew coffee with a teapot.\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/418\r\n */\r\n ImATeapot: 418,\r\n /**\r\n * The request was directed at a server that is not able to produce a response.\r\n * This can be sent by a server that is not configured to produce responses\r\n * for the combination of scheme and authority that are included in the request URI.\r\n */\r\n MisdirectedRequest: 421,\r\n /**\r\n * The request was well-formed but was unable to be followed due to semantic errors.\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/422\r\n */\r\n UnprocessableEntity: 422,\r\n /**\r\n * The resource that is being accessed is locked.\r\n */\r\n Locked: 423,\r\n /**\r\n * The request failed due to failure of a previous request.\r\n */\r\n FailedDependency: 424,\r\n /**\r\n * Indicates that the server is unwilling to risk processing a request that might be replayed.\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/425\r\n */\r\n TooEarly: 425,\r\n /**\r\n * The server refuses to perform the request using the current protocol\r\n * but might be willing to do so after the client upgrades to a different protocol.\r\n * The server sends an `Upgrade` header in a 426 response to indicate the required protocol(s).\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/426\r\n */\r\n UpgradeRequired: 426,\r\n /**\r\n * The origin server requires the request to be conditional.\r\n * Intended to prevent the 'lost update' problem, where a client GETs a resource's state,\r\n * modifies it, and PUTs it back to the server, when meanwhile a third party has modified\r\n * the state on the server, leading to a conflict.\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/428\r\n */\r\n PreconditionRequired: 428,\r\n /**\r\n * The user has sent too many requests in a given amount of time (\"rate limiting\").\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429\r\n */\r\n TooManyRequests: 429,\r\n /**\r\n * The server is unwilling to process the request because its header fields are too large.\r\n * The request MAY be resubmitted after reducing the size of the request header fields.\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/431\r\n */\r\n RequestHeaderFieldsTooLarge: 431,\r\n /**\r\n * The user requests an illegal resource, such as a web page censored by a government.\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/451\r\n */\r\n UnavailableForLegalReasons: 451,\r\n /**\r\n * The server has encountered a situation it doesn't know how to handle.\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/500\r\n */\r\n InternalServerError: 500,\r\n /**\r\n * The request method is not supported by the server and cannot be handled.\r\n * The only methods that servers are required to support (and therefore that must not return this code) are `GET` and `HEAD`.\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/501\r\n */\r\n NotImplemented: 501,\r\n /**\r\n * This error response means that the server, while working as a gateway\r\n * to get a response needed to handle the request, got an invalid response.\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/502\r\n */\r\n BadGateway: 502,\r\n /**\r\n * The server is not ready to handle the request. Common causes are a server that is down for maintenance or that is overloaded.\r\n *\r\n * Note that together with this response, a user-friendly page explaining the problem should be sent.\r\n * This responses should be used for temporary conditions and the `Retry-After` HTTP header should, if possible,\r\n * contain the estimated time before the recovery of the service.\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/503\r\n */\r\n ServiceUnavailable: 503,\r\n /**\r\n * This error response is given when the server is acting as a gateway and cannot get a response in time.\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/504\r\n */\r\n GatewayTimeout: 504,\r\n /**\r\n * The HTTP version used in the request is not supported by the server.\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/505\r\n */\r\n HttpVersionNotSupported: 505,\r\n /**\r\n * The server has an internal configuration error: the chosen variant resource\r\n * is configured to engage in transparent content negotiation itself,\r\n * and is therefore not a proper end point in the negotiation process.\r\n */\r\n VariantAlsoNegotiates: 506,\r\n /**\r\n * The method could not be performed on the resource because the server is unable\r\n * to store the representation needed to successfully complete the request.\r\n */\r\n InsufficientStorage: 507,\r\n /**\r\n * The server detected an infinite loop while processing the request.\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/508\r\n */\r\n LoopDetected: 508,\r\n /**\r\n * Further extensions to the request are required for the server to fulfil it.\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/510\r\n */\r\n NotExtended: 510,\r\n /**\r\n * Indicates that the client needs to authenticate to gain network access.\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/511\r\n */\r\n NetworkAuthenticationRequired: 511,\r\n};\r\n/**\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status\r\n *\r\n * @enum\r\n * @public\r\n */\r\nexports.Status = Object.assign(Object.assign(Object.assign(Object.assign({}, exports.InformationStatus), exports.SuccessStatus), exports.RedirectionStatus), exports.ErrorStatus);\r\n","exports = module.exports = stringify\nexports.getSerialize = serializer\n\nfunction stringify(obj, replacer, spaces, cycleReplacer) {\n return JSON.stringify(obj, serializer(replacer, cycleReplacer), spaces)\n}\n\nfunction serializer(replacer, cycleReplacer) {\n var stack = [], keys = []\n\n if (cycleReplacer == null) cycleReplacer = function(key, value) {\n if (stack[0] === value) return \"[Circular ~]\"\n return \"[Circular ~.\" + keys.slice(0, stack.indexOf(value)).join(\".\") + \"]\"\n }\n\n return function(key, value) {\n if (stack.length > 0) {\n var thisPos = stack.indexOf(this)\n ~thisPos ? stack.splice(thisPos + 1) : stack.push(this)\n ~thisPos ? keys.splice(thisPos, Infinity, key) : keys.push(key)\n if (~stack.indexOf(value)) value = cycleReplacer.call(this, key, value)\n }\n else stack.push(value)\n\n return replacer == null ? value : replacer.call(this, key, value)\n }\n}\n","'use strict';\n\n// TODO: use call-bind, is-date, is-regex, is-string, is-boolean-object, is-number-object\nfunction toS(obj) { return Object.prototype.toString.call(obj); }\nfunction isDate(obj) { return toS(obj) === '[object Date]'; }\nfunction isRegExp(obj) { return toS(obj) === '[object RegExp]'; }\nfunction isError(obj) { return toS(obj) === '[object Error]'; }\nfunction isBoolean(obj) { return toS(obj) === '[object Boolean]'; }\nfunction isNumber(obj) { return toS(obj) === '[object Number]'; }\nfunction isString(obj) { return toS(obj) === '[object String]'; }\n\n// TODO: use isarray\nvar isArray = Array.isArray || function isArray(xs) {\n\treturn Object.prototype.toString.call(xs) === '[object Array]';\n};\n\n// TODO: use for-each?\nfunction forEach(xs, fn) {\n\tif (xs.forEach) { return xs.forEach(fn); }\n\tfor (var i = 0; i < xs.length; i++) {\n\t\tfn(xs[i], i, xs);\n\t}\n\treturn void undefined;\n}\n\n// TODO: use object-keys\nvar objectKeys = Object.keys || function keys(obj) {\n\tvar res = [];\n\tfor (var key in obj) { res.push(key); } // eslint-disable-line no-restricted-syntax\n\treturn res;\n};\n\n// TODO: use object.hasown\nvar hasOwnProperty = Object.prototype.hasOwnProperty || function (obj, key) {\n\treturn key in obj;\n};\n\nfunction copy(src) {\n\tif (typeof src === 'object' && src !== null) {\n\t\tvar dst;\n\n\t\tif (isArray(src)) {\n\t\t\tdst = [];\n\t\t} else if (isDate(src)) {\n\t\t\tdst = new Date(src.getTime ? src.getTime() : src);\n\t\t} else if (isRegExp(src)) {\n\t\t\tdst = new RegExp(src);\n\t\t} else if (isError(src)) {\n\t\t\tdst = { message: src.message };\n\t\t} else if (isBoolean(src) || isNumber(src) || isString(src)) {\n\t\t\tdst = Object(src);\n\t\t} else if (Object.create && Object.getPrototypeOf) {\n\t\t\tdst = Object.create(Object.getPrototypeOf(src));\n\t\t} else if (src.constructor === Object) {\n\t\t\tdst = {};\n\t\t} else {\n\t\t\tvar proto = (src.constructor && src.constructor.prototype)\n || src.__proto__\n || {};\n\t\t\tvar T = function T() {}; // eslint-disable-line func-style, func-name-matching\n\t\t\tT.prototype = proto;\n\t\t\tdst = new T();\n\t\t}\n\n\t\tforEach(objectKeys(src), function (key) {\n\t\t\tdst[key] = src[key];\n\t\t});\n\t\treturn dst;\n\t}\n\treturn src;\n}\n\nfunction walk(root, cb, immutable) {\n\tvar path = [];\n\tvar parents = [];\n\tvar alive = true;\n\n\treturn (function walker(node_) {\n\t\tvar node = immutable ? copy(node_) : node_;\n\t\tvar modifiers = {};\n\n\t\tvar keepGoing = true;\n\n\t\tvar state = {\n\t\t\tnode: node,\n\t\t\tnode_: node_,\n\t\t\tpath: [].concat(path),\n\t\t\tparent: parents[parents.length - 1],\n\t\t\tparents: parents,\n\t\t\tkey: path[path.length - 1],\n\t\t\tisRoot: path.length === 0,\n\t\t\tlevel: path.length,\n\t\t\tcircular: null,\n\t\t\tupdate: function (x, stopHere) {\n\t\t\t\tif (!state.isRoot) {\n\t\t\t\t\tstate.parent.node[state.key] = x;\n\t\t\t\t}\n\t\t\t\tstate.node = x;\n\t\t\t\tif (stopHere) { keepGoing = false; }\n\t\t\t},\n\t\t\tdelete: function (stopHere) {\n\t\t\t\tdelete state.parent.node[state.key];\n\t\t\t\tif (stopHere) { keepGoing = false; }\n\t\t\t},\n\t\t\tremove: function (stopHere) {\n\t\t\t\tif (isArray(state.parent.node)) {\n\t\t\t\t\tstate.parent.node.splice(state.key, 1);\n\t\t\t\t} else {\n\t\t\t\t\tdelete state.parent.node[state.key];\n\t\t\t\t}\n\t\t\t\tif (stopHere) { keepGoing = false; }\n\t\t\t},\n\t\t\tkeys: null,\n\t\t\tbefore: function (f) { modifiers.before = f; },\n\t\t\tafter: function (f) { modifiers.after = f; },\n\t\t\tpre: function (f) { modifiers.pre = f; },\n\t\t\tpost: function (f) { modifiers.post = f; },\n\t\t\tstop: function () { alive = false; },\n\t\t\tblock: function () { keepGoing = false; },\n\t\t};\n\n\t\tif (!alive) { return state; }\n\n\t\tfunction updateState() {\n\t\t\tif (typeof state.node === 'object' && state.node !== null) {\n\t\t\t\tif (!state.keys || state.node_ !== state.node) {\n\t\t\t\t\tstate.keys = objectKeys(state.node);\n\t\t\t\t}\n\n\t\t\t\tstate.isLeaf = state.keys.length === 0;\n\n\t\t\t\tfor (var i = 0; i < parents.length; i++) {\n\t\t\t\t\tif (parents[i].node_ === node_) {\n\t\t\t\t\t\tstate.circular = parents[i];\n\t\t\t\t\t\tbreak; // eslint-disable-line no-restricted-syntax\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tstate.isLeaf = true;\n\t\t\t\tstate.keys = null;\n\t\t\t}\n\n\t\t\tstate.notLeaf = !state.isLeaf;\n\t\t\tstate.notRoot = !state.isRoot;\n\t\t}\n\n\t\tupdateState();\n\n\t\t// use return values to update if defined\n\t\tvar ret = cb.call(state, state.node);\n\t\tif (ret !== undefined && state.update) { state.update(ret); }\n\n\t\tif (modifiers.before) { modifiers.before.call(state, state.node); }\n\n\t\tif (!keepGoing) { return state; }\n\n\t\tif (\n\t\t\ttypeof state.node === 'object'\n\t\t\t&& state.node !== null\n\t\t\t&& !state.circular\n\t\t) {\n\t\t\tparents.push(state);\n\n\t\t\tupdateState();\n\n\t\t\tforEach(state.keys, function (key, i) {\n\t\t\t\tpath.push(key);\n\n\t\t\t\tif (modifiers.pre) { modifiers.pre.call(state, state.node[key], key); }\n\n\t\t\t\tvar child = walker(state.node[key]);\n\t\t\t\tif (immutable && hasOwnProperty.call(state.node, key)) {\n\t\t\t\t\tstate.node[key] = child.node;\n\t\t\t\t}\n\n\t\t\t\tchild.isLast = i === state.keys.length - 1;\n\t\t\t\tchild.isFirst = i === 0;\n\n\t\t\t\tif (modifiers.post) { modifiers.post.call(state, child); }\n\n\t\t\t\tpath.pop();\n\t\t\t});\n\t\t\tparents.pop();\n\t\t}\n\n\t\tif (modifiers.after) { modifiers.after.call(state, state.node); }\n\n\t\treturn state;\n\t}(root)).node;\n}\n\nfunction Traverse(obj) {\n\tthis.value = obj;\n}\n\nTraverse.prototype.get = function (ps) {\n\tvar node = this.value;\n\tfor (var i = 0; i < ps.length; i++) {\n\t\tvar key = ps[i];\n\t\tif (!node || !hasOwnProperty.call(node, key)) {\n\t\t\treturn void undefined;\n\t\t}\n\t\tnode = node[key];\n\t}\n\treturn node;\n};\n\nTraverse.prototype.has = function (ps) {\n\tvar node = this.value;\n\tfor (var i = 0; i < ps.length; i++) {\n\t\tvar key = ps[i];\n\t\tif (!node || !hasOwnProperty.call(node, key)) {\n\t\t\treturn false;\n\t\t}\n\t\tnode = node[key];\n\t}\n\treturn true;\n};\n\nTraverse.prototype.set = function (ps, value) {\n\tvar node = this.value;\n\tfor (var i = 0; i < ps.length - 1; i++) {\n\t\tvar key = ps[i];\n\t\tif (!hasOwnProperty.call(node, key)) { node[key] = {}; }\n\t\tnode = node[key];\n\t}\n\tnode[ps[i]] = value;\n\treturn value;\n};\n\nTraverse.prototype.map = function (cb) {\n\treturn walk(this.value, cb, true);\n};\n\nTraverse.prototype.forEach = function (cb) {\n\tthis.value = walk(this.value, cb, false);\n\treturn this.value;\n};\n\nTraverse.prototype.reduce = function (cb, init) {\n\tvar skip = arguments.length === 1;\n\tvar acc = skip ? this.value : init;\n\tthis.forEach(function (x) {\n\t\tif (!this.isRoot || !skip) {\n\t\t\tacc = cb.call(this, acc, x);\n\t\t}\n\t});\n\treturn acc;\n};\n\nTraverse.prototype.paths = function () {\n\tvar acc = [];\n\tthis.forEach(function () {\n\t\tacc.push(this.path);\n\t});\n\treturn acc;\n};\n\nTraverse.prototype.nodes = function () {\n\tvar acc = [];\n\tthis.forEach(function () {\n\t\tacc.push(this.node);\n\t});\n\treturn acc;\n};\n\nTraverse.prototype.clone = function () {\n\tvar parents = [];\n\tvar nodes = [];\n\n\treturn (function clone(src) {\n\t\tfor (var i = 0; i < parents.length; i++) {\n\t\t\tif (parents[i] === src) {\n\t\t\t\treturn nodes[i];\n\t\t\t}\n\t\t}\n\n\t\tif (typeof src === 'object' && src !== null) {\n\t\t\tvar dst = copy(src);\n\n\t\t\tparents.push(src);\n\t\t\tnodes.push(dst);\n\n\t\t\tforEach(objectKeys(src), function (key) {\n\t\t\t\tdst[key] = clone(src[key]);\n\t\t\t});\n\n\t\t\tparents.pop();\n\t\t\tnodes.pop();\n\t\t\treturn dst;\n\t\t}\n\n\t\treturn src;\n\n\t}(this.value));\n};\n\nfunction traverse(obj) {\n\treturn new Traverse(obj);\n}\n\n// TODO: replace with object.assign?\nforEach(objectKeys(Traverse.prototype), function (key) {\n\ttraverse[key] = function (obj) {\n\t\tvar args = [].slice.call(arguments, 1);\n\t\tvar t = new Traverse(obj);\n\t\treturn t[key].apply(t, args);\n\t};\n});\n\nmodule.exports = traverse;\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","'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 const pattern = '[object FormData]';\n return thing && (\n (typeof FormData === 'function' && thing instanceof FormData) ||\n toString.call(thing) === pattern ||\n (isFunction(thing.toString) && thing.toString() === pattern)\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 if (reducer(descriptor, name, obj) !== false) {\n reducedDescriptors[name] = 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\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};\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\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 isStandardBrowserEnv = (() => {\n let product;\n if (typeof navigator !== 'undefined' && (\n (product = navigator.product) === 'ReactNative' ||\n product === 'NativeScript' ||\n product === 'NS')\n ) {\n return false;\n }\n\n return typeof window !== 'undefined' && typeof document !== 'undefined';\n})();\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 */\n const isStandardBrowserWebWorkerEnv = (() => {\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\n\nexport default {\n isBrowser: true,\n classes: {\n URLSearchParams,\n FormData,\n Blob\n },\n isStandardBrowserEnv,\n isStandardBrowserWebWorkerEnv,\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","'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 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\nconst DEFAULT_CONTENT_TYPE = {\n 'Content-Type': undefined\n};\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 if (!hasJSONContentType) {\n return data;\n }\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 }\n }\n};\n\nutils.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) {\n defaults.headers[method] = {};\n});\n\nutils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n defaults.headers[method] = utils.merge(DEFAULT_CONTENT_TYPE);\n});\n\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\nfunction isValidHeaderName(str) {\n return /^[-_a-zA-Z]+$/.test(str.trim());\n}\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\nutils.freezeMethods(AxiosHeaders.prototype);\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","'use strict';\n\nimport utils from './../utils.js';\nimport platform from '../platform/index.js';\n\nexport default platform.isStandardBrowserEnv ?\n\n// Standard browser envs support document.cookie\n (function standardBrowserEnv() {\n return {\n write: function write(name, value, expires, path, domain, secure) {\n const cookie = [];\n cookie.push(name + '=' + encodeURIComponent(value));\n\n if (utils.isNumber(expires)) {\n cookie.push('expires=' + new Date(expires).toGMTString());\n }\n\n if (utils.isString(path)) {\n cookie.push('path=' + path);\n }\n\n if (utils.isString(domain)) {\n cookie.push('domain=' + domain);\n }\n\n if (secure === true) {\n cookie.push('secure');\n }\n\n document.cookie = cookie.join('; ');\n },\n\n read: function read(name) {\n const match = document.cookie.match(new RegExp('(^|;\\\\s*)(' + name + ')=([^;]*)'));\n return (match ? decodeURIComponent(match[3]) : null);\n },\n\n remove: function remove(name) {\n this.write(name, '', Date.now() - 86400000);\n }\n };\n })() :\n\n// Non standard browser env (web workers, react-native) lack needed support.\n (function nonStandardBrowserEnv() {\n return {\n write: function write() {},\n read: function read() { return null; },\n remove: function remove() {}\n };\n })();\n","'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.isStandardBrowserEnv ?\n\n// Standard browser envs have full support of the APIs needed to test\n// whether the request URL is of the same origin as current location.\n (function standardBrowserEnv() {\n 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 it's 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\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 const responseType = config.responseType;\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 if (utils.isFormData(requestData) && (platform.isStandardBrowserEnv || platform.isStandardBrowserWebWorkerEnv)) {\n requestHeaders.setContentType(false); // Let the browser set it\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.isStandardBrowserEnv) {\n // Add xsrf header\n const xsrfValue = (config.withCredentials || isURLSameOrigin(fullPath))\n && config.xsrfCookieName && cookies.read(config.xsrfCookieName);\n\n if (xsrfValue) {\n requestHeaders.set(config.xsrfHeaderName, xsrfValue);\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","'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","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\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 for (let i = 0; i < length; i++) {\n nameOrAdapter = adapters[i];\n if((adapter = utils.isString(nameOrAdapter) ? knownAdapters[nameOrAdapter.toLowerCase()] : nameOrAdapter)) {\n break;\n }\n }\n\n if (!adapter) {\n if (adapter === false) {\n throw new AxiosError(\n `Adapter ${nameOrAdapter} is not supported by the environment`,\n 'ERR_NOT_SUPPORT'\n );\n }\n\n throw new Error(\n utils.hasOwnProp(knownAdapters, nameOrAdapter) ?\n `Adapter '${nameOrAdapter}' is not available in the build` :\n `Unknown adapter '${nameOrAdapter}'`\n );\n }\n\n if (!utils.isFunction(adapter)) {\n throw new TypeError('adapter is not a function');\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.toJSON() : 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 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(config1).concat(Object.keys(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.3.4\";","'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 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 !== undefined) {\n validator.assertOptions(paramsSerializer, {\n encode: validators.function,\n serialize: validators.function\n }, true);\n }\n\n // Set config.method\n config.method = (config.method || this.defaults.method || 'get').toLowerCase();\n\n let contextHeaders;\n\n // Flatten headers\n contextHeaders = headers && utils.merge(\n headers.common,\n headers[config.method]\n );\n\n contextHeaders && 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 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.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","import axios from './lib/axios.js';\n\n// This module is intended to unwrap Axios default export as named.\n// Keep top-level export same with static properties\n// so that it can keep same with es module or cjs\nconst {\n Axios,\n AxiosError,\n CanceledError,\n isCancel,\n CancelToken,\n VERSION,\n all,\n Cancel,\n isAxiosError,\n spread,\n toFormData,\n AxiosHeaders,\n HttpStatusCode,\n formToJSON,\n mergeConfig\n} = axios;\n\nexport {\n axios as default,\n Axios,\n AxiosError,\n CanceledError,\n isCancel,\n CancelToken,\n VERSION,\n all,\n Cancel,\n isAxiosError,\n spread,\n toFormData,\n AxiosHeaders,\n HttpStatusCode,\n formToJSON,\n mergeConfig\n}\n","import { AxiosHeaders } from 'axios';\nexport function extractAxiosHeaders(headers) {\n let extractedHeaders = {};\n if (headers instanceof AxiosHeaders) {\n const jsonHeaders = headers.toJSON();\n extractedHeaders = {};\n Object.entries(jsonHeaders).forEach(([name, value]) => {\n const lcName = name.toLowerCase();\n if (typeof value === 'boolean' || typeof value === 'number' || typeof value === 'string') {\n extractedHeaders[lcName] = value.toString();\n }\n else if (Array.isArray(value)) {\n extractedHeaders[lcName] = value.join(', ');\n }\n });\n }\n return Object.keys(extractedHeaders).length ? extractedHeaders : undefined;\n}\n//# sourceMappingURL=extract-headers.js.map","import { extractAxiosHeaders } from './extract-headers';\nexport function convertAxiosError(error, stats) {\n if (!('isAxiosError' in error)) {\n return null;\n }\n return {\n request: {\n url: error.config?.url ?? '',\n method: error.config?.method,\n params: error.config?.params,\n headers: extractAxiosHeaders(error.config?.headers),\n data: error.config?.data,\n },\n response: {\n code: error.code,\n message: !error.response?.status ? error.message : undefined,\n status: error.response?.status,\n headers: extractAxiosHeaders(error.response?.headers),\n data: error.response?.data,\n },\n stats,\n };\n}\n//# sourceMappingURL=convert-error.js.map","import { extractAxiosHeaders } from './extract-headers';\nexport function convertAxiosResponse(response, stats) {\n return {\n request: {\n url: response.config?.url ?? '',\n method: response.config?.method,\n params: response.config?.params,\n headers: extractAxiosHeaders(response.config?.headers),\n data: response.config?.data,\n },\n response: {\n status: response.status,\n headers: extractAxiosHeaders(response.headers),\n data: response.data,\n },\n stats,\n };\n}\n//# sourceMappingURL=convert-response.js.map","import { Status } from '@tshttp/status';\nexport const USER_AGENT_PREFIX = '@gradientedge/commercetools-utils';\nexport const DEFAULT_REQUEST_TIMEOUT_MS = 5000;\nexport const MAX_ITEMS_PER_QUERY = 500;\nexport const DEFAULT_RETRY_CONFIG = {\n maxRetries: 3,\n delayMs: 50,\n jitter: true,\n};\nexport const RETRYABLE_STATUS_CODES = [\n Status.InternalServerError,\n Status.NotImplemented,\n Status.BadGateway,\n Status.ServiceUnavailable,\n Status.GatewayTimeout,\n];\nexport const DEFAULT_HTTPS_AGENT_CONFIG = {\n keepAlive: true,\n maxSockets: 32,\n maxFreeSockets: 10,\n timeout: DEFAULT_REQUEST_TIMEOUT_MS,\n};\n//# sourceMappingURL=constants.js.map","import { DEFAULT_HTTPS_AGENT_CONFIG } from '../../constants';\nimport axios from 'axios';\nexport function createAxiosInstance(options) {\n let agent;\n try {\n if (process.env.GECTU_IS_BROWSER !== '1') {\n if (options.httpsAgent) {\n agent = options.httpsAgent;\n }\n else {\n const https = require('https');\n agent = new https.Agent(DEFAULT_HTTPS_AGENT_CONFIG);\n }\n }\n }\n catch (e) { }\n return axios.create({ httpsAgent: agent });\n}\n//# sourceMappingURL=create-instance.js.map","export function calculateDelay(retryCount, retryConfig) {\n if (!retryConfig || retryCount === 0) {\n return 0;\n }\n const exponentialDelay = retryConfig.delayMs * 2 ** (retryCount - 1);\n if (retryConfig.jitter) {\n const increasedDelay = exponentialDelay * (1 + 1 / (retryCount + 1));\n return Math.floor(Math.random() * increasedDelay);\n }\n else {\n return exponentialDelay;\n }\n}\n//# sourceMappingURL=calculate-delay.js.map","import { CommercetoolsError } from '../error';\nexport function formatAsKey(input) {\n let output = '';\n if (typeof input !== 'string') {\n throw new CommercetoolsError(`The [input] parameter must be a string`);\n }\n output = input.trim().toLowerCase();\n output = output.replace(/ {2,}/g, '');\n output = output.replace(/&/g, 'and');\n output = output.replace(/[ _]/g, '-');\n output = output.replace(/[^0-9a-z-]+/g, '');\n output = output.replace(/-{2,}/g, '-');\n if (output.length && output[0] === '-') {\n output = output.slice(1);\n }\n if (output.length && output[output.length - 1] === '-') {\n output = output.slice(0, -1);\n }\n if (output.length < 2) {\n throw new CommercetoolsError(`Formatted key did not meet minimum length of 2 characters: ${output}`);\n }\n if (output.length > 256) {\n throw new CommercetoolsError(`Formatted key exceeds the maximum length of 256 characters: ${output}`);\n }\n return output;\n}\n//# sourceMappingURL=format.js.map","export function getAttributeValue(options) {\n if (options?.attributes?.length) {\n const attribute = options.attributes?.find((attribute) => attribute.name === options.name);\n if (attribute) {\n return attribute.value;\n }\n }\n return null;\n}\n//# sourceMappingURL=get-attribute-value.js.map","export function plainClone(source) {\n return recursiveClone(source, {});\n}\nfunction recursiveClone(source, target) {\n if (target && source) {\n for (const x in source) {\n if (Object.prototype.hasOwnProperty.call(source, x)) {\n if (typeof source[x] === 'object') {\n if (Array.isArray(source[x])) {\n target[x] = [];\n }\n else {\n target[x] = {};\n }\n target[x] = recursiveClone(source[x], target[x]);\n }\n else {\n target[x] = source[x];\n }\n }\n }\n }\n return target;\n}\n//# sourceMappingURL=plain-clone.js.map","import traverse from 'traverse';\nimport { AxiosHeaders } from 'axios';\nimport { plainClone } from './plain-clone';\nexport const SENSITIVE_PROPERTY_NAMES = ['password', 'refresh_token'];\nexport const SENSITIVE_HEADER_NAMES = ['authorization'];\nexport const DEFAULT_MASKING_STRING = '********';\nexport function maskSensitiveInput(data) {\n return maskSensitiveData(data, SENSITIVE_PROPERTY_NAMES);\n}\nexport function maskSensitiveHeaders(data) {\n return maskSensitiveData(data, SENSITIVE_HEADER_NAMES);\n}\nexport function maskSensitiveData(data, propertyNames, mask = DEFAULT_MASKING_STRING) {\n if (typeof data === 'object' && data !== null && data !== undefined) {\n let mutatedData = {};\n if (data instanceof AxiosHeaders) {\n mutatedData = plainClone(data.toJSON());\n }\n else {\n mutatedData = plainClone(data);\n }\n traverse(mutatedData).forEach(function () {\n if (propertyNames.includes(this.key?.toLowerCase() ?? '')) {\n this.update(mask);\n }\n });\n return mutatedData;\n }\n else {\n return data;\n }\n}\n//# sourceMappingURL=mask.js.map","import { calculateDelay } from './calculate-delay';\nimport { Status } from '@tshttp/status';\nconst DEFAULT_MAX_RETRIES = 3;\nconst DEFAULT_DELAY_MS = 100;\nexport async function retryOnConflict(options) {\n const maxRetries = options?.maxRetries || DEFAULT_MAX_RETRIES;\n const delayMs = options?.delayMs || DEFAULT_DELAY_MS;\n const jitter = !!options?.jitter;\n let result;\n for (let attemptCount = 1; attemptCount <= maxRetries; attemptCount++) {\n if (attemptCount > 1) {\n const delay = calculateDelay(attemptCount - 1, { delayMs, maxRetries, jitter });\n await new Promise((resolve) => setTimeout(resolve, delay));\n }\n try {\n return await options.executeFn(attemptCount);\n }\n catch (e) {\n if (!e.isCommercetoolsError || e.status !== Status.Conflict || attemptCount === maxRetries) {\n throw e;\n }\n }\n }\n return result;\n}\n//# sourceMappingURL=retry-on-conflict.js.map","import { USER_AGENT_PREFIX } from '../constants';\nexport function buildUserAgent(systemIdentifier) {\n let userAgent = USER_AGENT_PREFIX;\n if (systemIdentifier) {\n userAgent = `${userAgent} (${systemIdentifier})`;\n }\n return userAgent;\n}\n//# sourceMappingURL=useragent.js.map","import stringify from 'json-stringify-safe';\nimport { extractAxiosHeaders, maskSensitiveHeaders, maskSensitiveInput } from '../utils';\nexport class CommercetoolsError extends Error {\n constructor(message, data, status) {\n super(message);\n this.isCommercetoolsError = true;\n this.data = data;\n this.status = status;\n Object.setPrototypeOf(this, CommercetoolsError.prototype);\n }\n static fromAxiosError(e) {\n return new CommercetoolsError(e.message, {\n code: e.code,\n request: {\n url: e.config?.url,\n method: e.config?.method,\n headers: maskSensitiveHeaders(extractAxiosHeaders(e.config?.headers)),\n params: maskSensitiveInput(e.config?.params),\n data: maskSensitiveInput(this.parseRequestData(e.config)),\n },\n response: {\n status: e.response?.status,\n data: maskSensitiveInput(e.response?.data),\n headers: extractAxiosHeaders(e.response?.headers),\n },\n }, e.response?.status);\n }\n static parseRequestData(config) {\n if (!config) {\n return null;\n }\n let data = config?.data;\n if (typeof data === 'string' && data) {\n let contentType = '';\n if (typeof config?.headers?.['Content-Type'] === 'string') {\n contentType = config?.headers?.['Content-Type'];\n }\n if (contentType.substring(0, 16) === 'application/json') {\n try {\n data = JSON.parse(config.data);\n }\n catch (e) { }\n }\n else if (contentType.substring(0, 33) === 'application/x-www-form-urlencoded') {\n try {\n const searchParams = new URLSearchParams(config.data);\n const paramsObj = {};\n searchParams.forEach((value, key, searchParams) => {\n const values = searchParams.getAll(key);\n if (values.length === 0) {\n paramsObj[key] = '';\n }\n else if (values.length === 1) {\n paramsObj[key] = values[0];\n }\n else {\n paramsObj[key] = values;\n }\n });\n data = paramsObj;\n }\n catch (e) { }\n }\n }\n return data;\n }\n toJSON() {\n return {\n status: this.status,\n message: this.message,\n data: this.data,\n isCommercetoolsError: true,\n };\n }\n toString() {\n return stringify(this.toJSON());\n }\n}\n//# sourceMappingURL=CommercetoolsError.js.map","export var Region;\n(function (Region) {\n Region[\"NORTH_AMERICA_GCP\"] = \"north_america_gcp\";\n Region[\"NORTH_AMERICA_AWS\"] = \"north_america_aws\";\n Region[\"EUROPE_GCP\"] = \"europe_gcp\";\n Region[\"EUROPE_AWS\"] = \"europe_aws\";\n Region[\"AUSTRALIA_GCP\"] = \"australia_gcp\";\n})(Region || (Region = {}));\n//# sourceMappingURL=types.js.map","import { Region } from '../types';\nexport const REGION_URLS = {\n [Region.EUROPE_GCP]: {\n auth: 'https://auth.europe-west1.gcp.commercetools.com',\n api: 'https://api.europe-west1.gcp.commercetools.com',\n },\n [Region.EUROPE_AWS]: {\n auth: 'https://auth.eu-central-1.aws.commercetools.com',\n api: 'https://api.eu-central-1.aws.commercetools.com',\n },\n [Region.NORTH_AMERICA_GCP]: {\n auth: 'https://auth.us-central1.gcp.commercetools.com',\n api: 'https://api.us-central1.gcp.commercetools.com',\n },\n [Region.NORTH_AMERICA_AWS]: {\n auth: 'https://auth.us-east-2.aws.commercetools.com',\n api: 'https://api.us-east-2.aws.commercetools.com',\n },\n [Region.AUSTRALIA_GCP]: {\n auth: 'https://auth.australia-southeast1.gcp.commercetools.com',\n api: 'https://api.australia-southeast1.gcp.commercetools.com',\n },\n};\nexport const INVALID_SCOPES = ['anonymous_id', 'customer_id'];\n//# sourceMappingURL=constants.js.map","import { INVALID_SCOPES } from './constants';\nexport function scopeArrayToRequestString(scopes, projectKey) {\n if (!scopes) {\n return '';\n }\n return scopes.map((scope) => `${scope}:${projectKey}`).join(' ');\n}\nexport function scopeRequestStringToArray(scopes) {\n if (!scopes) {\n return [];\n }\n return scopes\n .split(' ')\n .map((scope) => scope.split(':')[0])\n .filter((scope) => !INVALID_SCOPES.includes(scope));\n}\n//# sourceMappingURL=scopes.js.map","import { scopeRequestStringToArray } from './scopes';\nexport class CommercetoolsGrant {\n constructor(data) {\n this.accessToken = '';\n this.expiresIn = 0;\n this.expiresAt = new Date();\n this.scopes = [];\n this.accessToken = data.access_token;\n this.expiresIn = data.expires_in;\n this.scopes = scopeRequestStringToArray(data.scope);\n this.anonymousId = this.extractKeyFromScope('anonymous_id', data.scope);\n this.customerId = this.extractKeyFromScope('customer_id', data.scope);\n this.expiresAt = new Date(new Date().getTime() + 1000 * data.expires_in);\n if ('refresh_token' in data && data.refresh_token) {\n this.refreshToken = data.refresh_token;\n }\n }\n expiresWithin(refreshIfWithinSecs) {\n const cutoff = new Date().getTime() + refreshIfWithinSecs * 1000;\n return this.expiresAt.getTime() < cutoff;\n }\n extractKeyFromScope(key, scope) {\n if (!scope || !key) {\n return undefined;\n }\n const parts = scope?.split(' ');\n if (!Array.isArray(parts) || parts.length === 0) {\n return undefined;\n }\n const item = parts.find((part) => part.slice(0, key.length + 1) === `${key}:`);\n if (item) {\n return item.slice(key.length + 1);\n }\n return undefined;\n }\n}\n//# sourceMappingURL=CommercetoolsGrant.js.map","export var GrantType;\n(function (GrantType) {\n GrantType[\"CLIENT_CREDENTIALS\"] = \"client_credentials\";\n GrantType[\"REFRESH_TOKEN\"] = \"refresh_token\";\n GrantType[\"PASSWORD\"] = \"password\";\n})(GrantType || (GrantType = {}));\n//# sourceMappingURL=types.js.map","import { RETRYABLE_STATUS_CODES } from '../constants';\nexport function isRetryableError(error) {\n if (!error.isAxiosError) {\n return true;\n }\n if (!error.request || !error.response) {\n return true;\n }\n return RETRYABLE_STATUS_CODES.includes(error.response.status);\n}\n//# sourceMappingURL=is-retryable-error.js.map","import { CommercetoolsError } from '../error';\nexport function transformError(lastError) {\n if (lastError.isAxiosError) {\n return CommercetoolsError.fromAxiosError(lastError);\n }\n return lastError;\n}\n//# sourceMappingURL=transform-error.js.map","import { request } from './index';\nimport { buildUserAgent, createAxiosInstance } from '../utils';\nimport { DEFAULT_RETRY_CONFIG } from '../constants';\nexport function getRequestExecutor(props) {\n const axiosInstance = createAxiosInstance({ httpsAgent: props.httpsAgent });\n const instanceHeaders = { 'User-Agent': buildUserAgent(props.systemIdentifier) };\n return (requestConfig) => {\n const headers = { ...instanceHeaders, ...requestConfig.headers };\n return request({\n axiosInstance,\n onBeforeRequest: props.onBeforeRequest,\n onAfterResponse: props.onAfterResponse,\n request: { ...requestConfig, headers },\n retry: { ...DEFAULT_RETRY_CONFIG, ...props.retry },\n timeoutMs: props.timeoutMs,\n });\n };\n}\n//# sourceMappingURL=request-executor.js.map","import { buildUserAgent, calculateDelay, convertAxiosError, convertAxiosResponse } from '../utils';\nimport { isRetryableError } from './is-retryable-error';\nimport { transformError } from './transform-error';\nimport { DEFAULT_REQUEST_TIMEOUT_MS } from '../constants';\nimport { plainClone } from '../utils/plain-clone';\nexport async function request(options) {\n const { retry: retryConfig, onBeforeRequest, onAfterResponse, axiosInstance } = options;\n const timeout = options.timeoutMs ?? DEFAULT_REQUEST_TIMEOUT_MS;\n const additionalHeaders = {};\n let requestConfig = plainClone(options.request);\n let retryCount = 0;\n let lastError;\n const headerNames = Object.keys(requestConfig.headers ?? {}).map((headerName) => headerName.toLowerCase());\n if (!headerNames.includes('user-agent')) {\n requestConfig.headers ?? (requestConfig.headers = {});\n requestConfig.headers['User-Agent'] = buildUserAgent();\n }\n let totalDurationMs = 0;\n let startTime;\n let endTime;\n do {\n startTime = null;\n endTime = null;\n if (retryCount > 0) {\n additionalHeaders['X-Retry-Count'] = `${retryCount}`;\n const delay = calculateDelay(retryCount, retryConfig);\n await new Promise((resolve) => setTimeout(resolve, delay));\n }\n try {\n if (onBeforeRequest) {\n const customRequestConfig = await onBeforeRequest(requestConfig);\n if (customRequestConfig) {\n requestConfig = customRequestConfig;\n }\n }\n startTime = Date.now();\n const response = await axiosInstance({\n ...requestConfig,\n headers: {\n ...requestConfig.headers,\n ...additionalHeaders,\n },\n timeout,\n });\n endTime = Date.now();\n totalDurationMs += endTime - startTime;\n if (onAfterResponse) {\n onAfterResponse(convertAxiosResponse(response, {\n accumulativeDurationMs: totalDurationMs,\n durationMs: endTime - startTime,\n retries: retryCount,\n }));\n }\n return response.data;\n }\n catch (error) {\n endTime = Date.now();\n totalDurationMs += startTime ? endTime - startTime : 0;\n if (onAfterResponse) {\n const convertedError = convertAxiosError(error, {\n accumulativeDurationMs: totalDurationMs,\n durationMs: startTime ? endTime - startTime : 0,\n retries: retryCount,\n });\n if (convertedError) {\n onAfterResponse(convertedError);\n }\n }\n if (isRetryableError(error)) {\n lastError = error;\n }\n else {\n throw transformError(error);\n }\n }\n retryCount++;\n } while (retryCount <= retryConfig.maxRetries);\n throw transformError(lastError);\n}\n//# sourceMappingURL=request.js.map","import { GrantType, } from './types';\nimport { CommercetoolsError } from '../';\nimport { scopeArrayToRequestString } from './scopes';\nimport { REGION_URLS } from './constants';\nimport { base64EncodeForBasicAuth } from './utils';\nimport { getRequestExecutor } from '../request/request-executor';\nexport class CommercetoolsAuthApi {\n constructor(config) {\n this.config = config;\n this.endpoints = REGION_URLS[this.config.region];\n this.requestExecutor = getRequestExecutor({\n timeoutMs: config.timeoutMs,\n httpsAgent: config.httpsAgent,\n systemIdentifier: config.systemIdentifier,\n onBeforeRequest: config.onBeforeRequest,\n onAfterResponse: config.onAfterResponse,\n retry: config.retry,\n });\n }\n async getClientGrant(scopes) {\n return this.post('/token', {\n grant_type: GrantType.CLIENT_CREDENTIALS,\n scope: scopeArrayToRequestString(scopes, this.config.projectKey),\n });\n }\n async refreshGrant(refreshToken) {\n return await this.post('/token', {\n grant_type: GrantType.REFRESH_TOKEN,\n refresh_token: refreshToken,\n });\n }\n async login(options) {\n return this.post(`/${this.config.projectKey}${this.applyStore('/customers/token', options.storeKey)}`, {\n username: options.username,\n password: options.password,\n grant_type: GrantType.PASSWORD,\n scope: scopeArrayToRequestString(options.scopes, this.config.projectKey),\n });\n }\n async revokeToken(options) {\n await this.post('/token/revoke', {\n token: options.tokenValue,\n token_type_hint: options.tokenType,\n });\n }\n async logout(options) {\n const settlements = await Promise.allSettled([\n this.revokeToken({ tokenType: 'access_token', tokenValue: options.accessToken }),\n this.revokeToken({ tokenType: 'refresh_token', tokenValue: options.refreshToken }),\n ]);\n const errors = settlements.reduce((errors, settlement) => {\n if (settlement.status === 'rejected') {\n errors.push(settlement.reason);\n }\n return errors;\n }, []);\n if (errors.length) {\n throw new CommercetoolsError(`Logout failed in one or more calls to the token revocation endpoint`, errors);\n }\n }\n async getAnonymousGrant(options) {\n const postOptions = {\n grant_type: GrantType.CLIENT_CREDENTIALS,\n };\n if (options?.scopes?.length) {\n postOptions.scope = scopeArrayToRequestString(options.scopes, this.config.projectKey);\n }\n if (options?.anonymousId) {\n postOptions.anonymous_id = options.anonymousId;\n }\n return this.post(`/${this.config.projectKey}/anonymous/token`, postOptions);\n }\n async post(path, body) {\n return await this.requestExecutor(this.getRequestOptions({ path, body }));\n }\n getRequestOptions(options) {\n const url = `${this.endpoints.auth}/oauth${options.path}`;\n let data;\n const headers = {\n Authorization: `Basic ${base64EncodeForBasicAuth(this.config.clientId, this.config.clientSecret)}`,\n 'Content-Type': 'application/x-www-form-urlencoded',\n };\n if (options.correlationId && options.correlationId !== '') {\n headers['X-Correlation-ID'] = options.correlationId;\n delete options.correlationId;\n }\n if (options.body) {\n data = new URLSearchParams(options.body).toString();\n }\n return {\n method: 'POST',\n data,\n url,\n headers,\n };\n }\n applyStore(path, storeKey) {\n if (typeof storeKey === 'string' && storeKey !== '') {\n return `/in-store/key=${storeKey}${path}`;\n }\n else if (this.config.storeKey) {\n return `/in-store/key=${this.config.storeKey}${path}`;\n }\n return path;\n }\n}\n//# sourceMappingURL=CommercetoolsAuthApi.js.map","export function base64EncodeForBasicAuth(username, password) {\n const toEncode = `${username}:${password}`;\n if (process.env.GECTU_IS_BROWSER !== '1') {\n return Buffer.from(toEncode).toString('base64');\n }\n else {\n return btoa(toEncode);\n }\n}\n//# sourceMappingURL=utils.js.map","import { CommercetoolsError } from '../';\nimport { CommercetoolsGrant } from './CommercetoolsGrant';\nimport { CommercetoolsAuthApi } from './CommercetoolsAuthApi';\nconst configDefaults = {\n refreshIfWithinSecs: 1800,\n timeoutMs: 5000,\n};\nexport class CommercetoolsAuth {\n constructor(config) {\n this.grantPromise = null;\n this.config = { ...configDefaults, ...config };\n if (!this.config.clientScopes.length) {\n throw new CommercetoolsError('`config.clientScopes` must contain at least one scope');\n }\n this.api = new CommercetoolsAuthApi(config);\n }\n async getClientGrant() {\n if (this.grantPromise) {\n return this.grantPromise;\n }\n if (this.grant && !this.grant.expiresWithin(this.config.refreshIfWithinSecs)) {\n return this.grant;\n }\n this.grantPromise = this.api\n .getClientGrant(this.config.clientScopes)\n .then((grant) => {\n this.grant = new CommercetoolsGrant(grant);\n return this.grant;\n })\n .finally(() => {\n this.grantPromise = null;\n });\n return this.grantPromise;\n }\n async refreshCustomerGrant(refreshToken) {\n const data = await this.api.refreshGrant(refreshToken);\n return new CommercetoolsGrant({ ...data, refresh_token: refreshToken });\n }\n async login(options) {\n const scopes = options.scopes || this.config.customerScopes;\n if (!scopes) {\n throw new CommercetoolsError('Customer scopes must be set on either the `options` ' +\n 'parameter of this `login` method, or on the `customerScopes` ' +\n 'property of the `CommercetoolsAuth` constructor');\n }\n await this.getClientGrant();\n const data = await this.api.login({\n ...options,\n scopes,\n });\n return new CommercetoolsGrant(data);\n }\n async getAnonymousGrant(options) {\n const scopes = options?.scopes || this.config.customerScopes;\n const anonymousId = options?.anonymousId;\n if (!scopes) {\n throw new CommercetoolsError('Customer scopes must be set on either the `options` ' +\n 'parameter of this `login` method, or on the `customerScopes` ' +\n 'property of the `CommercetoolsAuth` constructor');\n }\n await this.getClientGrant();\n const data = await this.api.getAnonymousGrant({\n scopes,\n anonymousId,\n });\n return new CommercetoolsGrant(data);\n }\n async logout(options) {\n await this.api.logout(options);\n }\n async revokeToken(options) {\n await this.api.revokeToken(options);\n }\n}\n//# sourceMappingURL=CommercetoolsAuth.js.map","import { CommercetoolsAuth, } from '../';\nimport { CommercetoolsError } from '../error';\nimport { REGION_URLS } from '../auth/constants';\nimport { getRequestExecutor } from '../request/request-executor';\nexport class CommercetoolsApi {\n constructor(config) {\n CommercetoolsApi.validateConfig(config);\n this.config = config;\n this.auth = new CommercetoolsAuth(config);\n this.endpoints = REGION_URLS[this.config.region];\n this.requestExecutor = getRequestExecutor({\n timeoutMs: config.timeoutMs,\n httpsAgent: config.httpsAgent,\n systemIdentifier: config.systemIdentifier,\n onBeforeRequest: config.onBeforeRequest,\n onAfterResponse: config.onAfterResponse,\n retry: config.retry,\n });\n }\n getStoreById(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/stores/${options.id}`,\n method: 'GET',\n });\n }\n getStoreByKey(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/stores/key=${options.key}`,\n method: 'GET',\n });\n }\n queryStores(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: '/stores',\n method: 'GET',\n });\n }\n createStore(options) {\n return this.request({\n path: `/stores`,\n method: 'POST',\n data: options.data,\n });\n }\n updateStoreById(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/stores/${options.id}`,\n method: 'POST',\n data: options.data,\n });\n }\n updateStoreByKey(options) {\n return this.request({\n path: `/stores/key=${options.key}`,\n method: 'POST',\n data: options.data,\n });\n }\n deleteStoreById(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/stores/${options.id}`,\n method: 'DELETE',\n params: {\n ...options.params,\n version: options.version,\n },\n });\n }\n deleteStoreByKey(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/stores/key=${options.key}`,\n method: 'DELETE',\n params: {\n ...options.params,\n version: options.version,\n },\n });\n }\n getCategoryById(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/categories/${options.id}`,\n method: 'GET',\n });\n }\n getCategoryByKey(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/categories/key=${options.key}`,\n method: 'GET',\n });\n }\n queryChannels(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/channels`,\n method: 'GET',\n });\n }\n async importOrder(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: '/orders/import',\n method: 'POST',\n data: options.data,\n });\n }\n getChannelById(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/channels/${options.id}`,\n method: 'GET',\n });\n }\n async getChannelByKey(options) {\n const response = await this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/channels`,\n method: 'GET',\n params: {\n where: `key=\"${options.key}\"`,\n limit: 1,\n },\n });\n if (!response?.count) {\n throw new CommercetoolsError(`No channel found with key [${options.key}]`, null, 404);\n }\n return response.results[0];\n }\n getCategory(options) {\n if (!options.id && !options.key) {\n throw new CommercetoolsError('Either an id, key or slug must be provided');\n }\n if (options.id) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/categories/${options.id}`,\n method: 'GET',\n });\n }\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/categories/key=${options.key}`,\n method: 'GET',\n });\n }\n async getCategoryBySlug(options) {\n if (!options.languageCode && !options.languageCodes) {\n throw new CommercetoolsError('Either the `languageCode` or `languageCodes` property must be provided');\n }\n const languageCodes = [];\n if (options.languageCodes) {\n languageCodes.push(...options.languageCodes);\n }\n else if (options.languageCode) {\n languageCodes.push(options.languageCode);\n }\n const data = await this.request({\n ...this.extractCommonRequestOptions({\n ...options,\n params: {\n ...options?.params,\n where: `slug(${languageCodes.map((code) => `${code}=\"${options.slug}\"`).join(' or ')})`,\n },\n }),\n path: `/categories`,\n method: 'GET',\n });\n if (!data.count) {\n throw new CommercetoolsError(`No category found with slug [${options.slug}] and language code [${options.languageCode}]`, { options }, 404);\n }\n return data.results[0];\n }\n queryCategories(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/categories`,\n method: 'GET',\n });\n }\n async getCategoryParents(options) {\n const category = await this.getCategory({\n ...options,\n params: {\n ...options.params,\n expand: 'ancestors[*]',\n },\n });\n const ancestors = category.ancestors.map((ref) => ref.obj);\n ancestors.push({\n ...category,\n ancestors: category.ancestors.map((ancestor) => ({ id: ancestor.id, typeId: ancestor.typeId })),\n });\n return ancestors;\n }\n getProductById(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/products/${options.id}`,\n method: 'GET',\n });\n }\n getProductByKey(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/products/key=${options.key}`,\n method: 'GET',\n });\n }\n getProductProjectionById(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: this.applyStore(`/product-projections/${options.id}`, options.storeKey),\n method: 'GET',\n });\n }\n getProductProjectionByKey(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: this.applyStore(`/product-projections/key=${options.key}`, options.storeKey),\n method: 'GET',\n });\n }\n async getProductProjectionBySlug(options) {\n if (!options.languageCode && !options.languageCodes) {\n throw new CommercetoolsError('Either the `languageCode` or `languageCodes` property must be provided');\n }\n const languageCodes = [];\n if (options.languageCodes) {\n languageCodes.push(...options.languageCodes);\n }\n else if (options.languageCode) {\n languageCodes.push(options.languageCode);\n }\n const data = await this.request({\n ...this.extractCommonRequestOptions({\n ...options,\n params: {\n ...options?.params,\n where: `slug(${languageCodes.map((code) => `${code}=\"${options.slug}\"`).join(' or ')})`,\n },\n }),\n path: `/product-projections`,\n method: 'GET',\n });\n if (!data.count) {\n throw new CommercetoolsError(`No product projection found with slug [${options.slug}] and language code [${options.languageCode}]`, { options }, 404);\n }\n return data.results[0];\n }\n queryProductProjections(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/product-projections`,\n method: 'GET',\n });\n }\n searchProductProjections(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/product-projections/search`,\n method: 'GET',\n });\n }\n getProductSelectionById(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: this.applyStore(`/product-selections/${options.id}`, options.storeKey),\n method: 'GET',\n });\n }\n getProductSelectionByKey(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: this.applyStore(`/product-selections/key=${options.key}`, options.storeKey),\n method: 'GET',\n });\n }\n queryProductSelections(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/product-selections`,\n method: 'GET',\n });\n }\n createProductSelection(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/product-selections`,\n method: 'POST',\n data: options.data,\n });\n }\n updateProductSelectionByKey(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/product-selections/key=${options.key}`,\n method: 'POST',\n data: { version: options.version, actions: options.actions },\n });\n }\n deleteProductSelectionByKey(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/product-selections/key=${options.key}&version=${options.version}`,\n method: 'DELETE',\n });\n }\n queryProductsInStore(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/in-store/key=${options.storeKey}/product-selection-assignments`,\n method: `GET`,\n });\n }\n getCartById(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: this.applyStore(`/carts/${options.id}`, options.storeKey),\n method: 'GET',\n });\n }\n async queryCarts(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: this.applyStore(`/carts`, options?.storeKey),\n method: 'GET',\n });\n }\n async queryMyCarts(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: this.applyStore(`/me/carts`, options.storeKey),\n method: 'GET',\n accessToken: options.accessToken,\n });\n }\n async createCart(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: this.applyStore(`/carts`, options.storeKey),\n method: 'POST',\n data: options.data,\n });\n }\n async updateCartById(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: this.applyStore(`/carts/${options.id}`, options.storeKey),\n method: 'POST',\n data: {\n version: options.version,\n actions: options.actions,\n },\n });\n }\n async getMyActiveCart(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: this.applyStore(`/me/active-cart`, options.storeKey),\n method: 'GET',\n accessToken: options.accessToken,\n });\n }\n async getMyCartById(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: this.applyStore(`/me/carts/${options.cartId}`, options.storeKey),\n method: 'GET',\n accessToken: options.accessToken,\n });\n }\n async createMyCart(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: this.applyStore(`/me/carts`, options.storeKey),\n method: 'POST',\n data: options.data,\n accessToken: options.accessToken,\n });\n }\n async updateMyCart(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: this.applyStore(`/me/carts/${options.cartId}`, options.storeKey),\n method: 'POST',\n data: {\n version: options.cartVersion,\n actions: options.actions,\n },\n accessToken: options.accessToken,\n });\n }\n async deleteMyActiveCart(options) {\n const cart = await this.getMyActiveCart(options);\n return await this.request({\n ...this.extractCommonRequestOptions(options),\n path: this.applyStore(`/me/carts/${cart.id}`, options.storeKey),\n method: 'DELETE',\n params: {\n ...options.params,\n version: cart.version,\n },\n accessToken: options.accessToken,\n });\n }\n async deleteMyCartById(options) {\n const cart = await this.getMyCartById(options);\n return await this.request({\n ...this.extractCommonRequestOptions(options),\n path: this.applyStore(`/me/carts/${options.cartId}`, options.storeKey),\n method: 'DELETE',\n params: {\n ...options.params,\n version: cart.version,\n },\n accessToken: options.accessToken,\n });\n }\n async updateMyActiveCart(options) {\n const cart = await this.getMyActiveCart(options);\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: this.applyStore(`/me/carts/${cart.id}`, options.storeKey),\n method: 'POST',\n data: {\n version: cart.version,\n actions: options.actions,\n },\n accessToken: options.accessToken,\n });\n }\n async createMyOrderFromActiveCart(options) {\n const cart = await this.getMyActiveCart(options);\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: this.applyStore('/me/orders', options.storeKey),\n method: 'POST',\n data: {\n version: cart.version,\n id: cart.id,\n },\n accessToken: options.accessToken,\n });\n }\n async createOrderFromCart(options) {\n const cart = await this.getCartById(options);\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: this.applyStore('/orders', options.storeKey),\n method: 'POST',\n data: {\n version: cart.version,\n id: cart.id,\n },\n });\n }\n async deleteCartById(options) {\n return await this.request({\n ...this.extractCommonRequestOptions(options),\n path: this.applyStore(`/carts/${options.id}`, options.storeKey),\n method: 'DELETE',\n params: {\n ...options.params,\n version: options.version,\n },\n });\n }\n createPayment(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: '/payments',\n method: 'POST',\n data: options.data,\n });\n }\n deletePaymentById(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/payments/${options.id}`,\n method: 'DELETE',\n params: {\n ...options.params,\n version: options.version,\n },\n });\n }\n updatePaymentById(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/payments/${options.id}`,\n method: 'POST',\n data: options.data,\n });\n }\n getPaymentById(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/payments/${options.id}`,\n method: 'GET',\n });\n }\n queryPayments(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: '/payments',\n method: 'GET',\n });\n }\n createMyPayment(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: '/me/payments',\n method: 'POST',\n data: options.data,\n accessToken: options.accessToken,\n });\n }\n updateMyPaymentById(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/me/payments/${options.id}`,\n method: 'POST',\n data: options.data,\n accessToken: options.accessToken,\n });\n }\n getMyPaymentById(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/me/payments/${options.id}`,\n method: 'GET',\n accessToken: options.accessToken,\n });\n }\n queryMyPayments(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: '/me/payments',\n method: 'GET',\n accessToken: options.accessToken,\n });\n }\n deleteMyPaymentById(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/me/payments/${options.id}`,\n method: 'DELETE',\n params: {\n version: options.version,\n },\n accessToken: options.accessToken,\n });\n }\n getMyOrderById(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: this.applyStore(`/me/orders/${options.id}`, options.storeKey),\n method: 'GET',\n accessToken: options.accessToken,\n });\n }\n queryMyOrders(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: this.applyStore(`/me/orders`, options.storeKey),\n method: 'GET',\n accessToken: options.accessToken,\n });\n }\n updateOrderById(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: this.applyStore(`/orders/${options.id}`, options.storeKey),\n method: 'POST',\n data: options.data,\n });\n }\n updateOrderByOrderNumber(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: this.applyStore(`/orders/order-number=${options.orderNumber}`, options.storeKey),\n method: 'POST',\n data: options.data,\n });\n }\n getOrderById(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: this.applyStore(`/orders/${options.id}`, options.storeKey),\n method: 'GET',\n });\n }\n getOrderByOrderNumber(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: this.applyStore(`/orders/order-number=${options.orderNumber}`, options.storeKey),\n method: 'GET',\n });\n }\n deleteOrderById(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: this.applyStore(`/orders/${options.id}`, options.storeKey),\n method: 'DELETE',\n params: {\n ...options.params,\n version: options.version,\n dataErasure: options.dataErasure,\n },\n });\n }\n deleteOrderByOrderNumber(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: this.applyStore(`/orders/order-number=${options.orderNo}`, options.storeKey),\n method: 'DELETE',\n params: {\n ...options.params,\n version: options.version,\n dataErasure: options.dataErasure,\n },\n });\n }\n queryOrders(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: this.applyStore(`/orders`, options.storeKey),\n method: 'GET',\n });\n }\n createProduct(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/products`,\n method: 'POST',\n data: options.data,\n });\n }\n updateProductByKey(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/products/key=${options.key}`,\n method: 'POST',\n data: options.data,\n });\n }\n updateProductById(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/products/${options.id}`,\n method: 'POST',\n data: options.data,\n });\n }\n async deleteProductById(options) {\n let version = options.version;\n if (options.unpublish) {\n const product = await this.unpublishProductById({\n id: options.id,\n version: options.version,\n });\n version = product.version;\n }\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/products/${options.id}`,\n method: 'DELETE',\n params: {\n ...options.params,\n version,\n },\n });\n }\n async deleteProductByKey(options) {\n let version = options.version;\n if (options.unpublish) {\n const product = await this.unpublishProductByKey({\n key: options.key,\n version: options.version,\n });\n version = product.version;\n }\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/products/key=${options.key}`,\n method: 'DELETE',\n params: {\n ...options.params,\n version,\n },\n });\n }\n unpublishProductByKey(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/products/key=${options.key}`,\n method: 'POST',\n params: options.params,\n data: {\n version: options.version,\n actions: [{ action: 'unpublish' }],\n },\n });\n }\n unpublishProductById(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/products/${options.id}`,\n method: 'POST',\n params: options.params,\n data: {\n version: options.version,\n actions: [{ action: 'unpublish' }],\n },\n });\n }\n createCategory(options) {\n return this.request({\n path: `/categories`,\n method: 'POST',\n data: options.data,\n });\n }\n updateCategoryByKey(options) {\n return this.request({\n path: `/categories/key=${options.key}`,\n method: 'POST',\n data: options.data,\n });\n }\n updateCategoryById(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/categories/${options.id}`,\n method: 'POST',\n data: options.data,\n });\n }\n deleteCategoryById(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/categories/${options.id}`,\n method: 'DELETE',\n params: {\n ...options.params,\n version: options.version,\n },\n });\n }\n deleteCategoryByKey(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/categories/key=${options.key}`,\n method: 'DELETE',\n params: {\n ...options.params,\n version: options.version,\n },\n });\n }\n createAccount(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: this.applyStore(`/customers`, options.storeKey),\n method: 'POST',\n data: options.data,\n });\n }\n deleteCustomerById(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: this.applyStore(`/customers/${options.id}`, options.storeKey),\n method: 'DELETE',\n params: {\n ...options.params,\n version: options.version,\n dataErasure: options.dataErasure,\n },\n });\n }\n deleteCustomerByKey(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: this.applyStore(`/customers/key=${options.key}`, options.storeKey),\n method: 'DELETE',\n params: {\n ...options.params,\n version: options.version,\n dataErasure: options.dataErasure,\n },\n });\n }\n createMyAccount(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: this.applyStore(`/me/signup`, options.storeKey),\n method: 'POST',\n data: options.data,\n accessToken: options.accessToken,\n });\n }\n loginMyAccount(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: this.applyStore(`/me/login`, options.storeKey),\n method: 'POST',\n data: options.data,\n accessToken: options.accessToken,\n });\n }\n login(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: this.applyStore(`/login`, options.storeKey),\n method: 'POST',\n data: options.data,\n });\n }\n getMyAccount(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: this.applyStore(`/me`, options.storeKey),\n method: 'GET',\n accessToken: options.accessToken,\n });\n }\n updateMyAccount(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: this.applyStore(`/me`, options.storeKey),\n method: 'POST',\n accessToken: options.accessToken,\n data: options.data,\n });\n }\n changeMyPassword(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: this.applyStore(`/me/password`, options.storeKey),\n method: 'POST',\n accessToken: options.accessToken,\n data: options.data,\n });\n }\n resetMyPassword(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: this.applyStore(`/me/password/reset`, options.storeKey),\n method: 'POST',\n accessToken: options.accessToken,\n data: options.data,\n });\n }\n getPasswordResetToken(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: this.applyStore(`/customers/password-token`, options.storeKey),\n method: 'POST',\n data: options.data,\n });\n }\n getCustomerById(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: this.applyStore(`/customers/${options.id}`, options.storeKey),\n method: 'GET',\n });\n }\n getCustomerByKey(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: this.applyStore(`/customers/key=${options.key}`, options.storeKey),\n method: 'GET',\n });\n }\n getCustomerByPasswordToken(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: this.applyStore(`/customers/password-token=${options.token}`, options.storeKey),\n method: 'GET',\n });\n }\n queryCustomers(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: this.applyStore(`/customers`, options.storeKey),\n method: 'GET',\n });\n }\n updateCustomerById(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/customers/${options.id}`,\n method: 'POST',\n data: options.data,\n });\n }\n updateCustomerByKey(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/customers/key=${options.key}`,\n method: 'POST',\n data: options.data,\n });\n }\n getProductTypeById(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/product-types/${options.id}`,\n method: 'GET',\n });\n }\n getProductTypeByKey(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/product-types/key=${options.key}`,\n method: 'GET',\n });\n }\n queryProductTypes(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/product-types`,\n method: 'GET',\n });\n }\n getTypeById(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/types/${options.id}`,\n method: 'GET',\n });\n }\n getTypeByKey(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/types/key=${options.key}`,\n method: 'GET',\n });\n }\n queryTypes(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/types`,\n method: 'GET',\n });\n }\n getDiscountCodeById(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/discount-codes/${options.id}`,\n method: 'GET',\n });\n }\n getCartDiscountById(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/cart-discounts/${options.id}`,\n method: 'GET',\n });\n }\n getCartDiscountByKey(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/cart-discounts/key=${options.key}`,\n method: 'GET',\n });\n }\n queryCartDiscounts(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/cart-discounts`,\n method: 'GET',\n });\n }\n getCustomObject(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/custom-objects/${options.container}/${options.key}`,\n method: 'GET',\n });\n }\n getCustomObjectById(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/custom-objects/${options.id}`,\n method: 'GET',\n });\n }\n saveCustomObject(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/custom-objects`,\n method: 'POST',\n data: options.data,\n });\n }\n deleteCustomObject(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/custom-objects/${options.container}/${options.key}`,\n method: 'DELETE',\n });\n }\n getShippingMethodById(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/shipping-methods/${options.id}`,\n method: 'GET',\n });\n }\n getShippingMethodByKey(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/shipping-methods/key=${options.key}`,\n method: 'GET',\n });\n }\n getShippingMethodsForLocation(options) {\n return this.request({\n ...this.extractCommonRequestOptions({\n ...options,\n params: {\n ...options?.params,\n country: options.country,\n state: options.state,\n currency: options.currency,\n },\n }),\n path: `/shipping-methods/matching-location`,\n method: 'GET',\n accessToken: options.accessToken,\n });\n }\n getShippingMethodsForCart(options) {\n return this.request({\n ...this.extractCommonRequestOptions({\n ...options,\n params: {\n ...options?.params,\n cartId: options.cartId,\n },\n }),\n path: `/shipping-methods/matching-cart`,\n method: 'GET',\n accessToken: options.accessToken,\n });\n }\n queryShippingMethods(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/shipping-methods`,\n method: 'GET',\n });\n }\n getCustomerGroupById(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/customer-groups/${options.id}`,\n method: 'GET',\n });\n }\n getCustomerGroupByKey(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/customer-groups/key=${options.key}`,\n method: 'GET',\n });\n }\n queryCustomerGroups(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/customer-groups`,\n method: 'GET',\n });\n }\n createCustomerGroup(options) {\n return this.request({\n path: `/customer-groups`,\n method: 'POST',\n data: options.data,\n });\n }\n updateCustomerGroupByKey(options) {\n return this.request({\n path: `/customer-groups/key=${options.key}`,\n method: 'POST',\n data: options.data,\n });\n }\n updateCustomerGroupById(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/customer-groups/${options.id}`,\n method: 'POST',\n data: options.data,\n });\n }\n deleteCustomerGroupById(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/customer-groups/${options.id}`,\n method: 'DELETE',\n params: {\n ...options.params,\n version: options.version,\n },\n });\n }\n deleteCustomerGroupByKey(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/customer-groups/key=${options.key}`,\n method: 'DELETE',\n params: {\n ...options.params,\n version: options.version,\n },\n });\n }\n getStateById(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/states/${options.id}`,\n method: 'GET',\n });\n }\n getStateByKey(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/states/key=${options.key}`,\n method: 'GET',\n });\n }\n queryStates(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: '/states',\n method: 'GET',\n });\n }\n getStandalonePriceById(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/standalone-prices/${options.id}`,\n method: 'GET',\n });\n }\n getStandalonePriceByKey(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/standalone-prices/key=${options.key}`,\n method: 'GET',\n });\n }\n queryStandalonePrices(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: '/standalone-prices',\n method: 'GET',\n });\n }\n createStandalonePrice(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: '/standalone-prices',\n method: 'POST',\n data: options.data,\n });\n }\n updateStandalonePriceById(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/standalone-prices/${options.id}`,\n method: 'POST',\n data: options.data,\n });\n }\n updateStandalonePriceByKey(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/standalone-prices/key=${options.key}`,\n method: 'POST',\n data: options.data,\n });\n }\n deleteStandalonePriceById(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/standalone-prices/${options.id}`,\n method: 'DELETE',\n params: {\n ...options.params,\n version: options.version,\n },\n });\n }\n deleteStandalonePriceByKey(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/standalone-prices/key=${options.key}`,\n method: 'DELETE',\n params: {\n ...options.params,\n version: options.version,\n },\n });\n }\n graphql(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/graphql`,\n method: 'POST',\n data: options.data,\n accessToken: options.accessToken,\n });\n }\n async request(options) {\n const requestOptions = await this.getRequestOptions(options);\n return await this.requestExecutor(requestOptions);\n }\n async getRequestOptions(options) {\n let params;\n let accessToken = options.accessToken;\n const url = `${this.endpoints.api}/${this.config.projectKey}${options.path}`;\n if (!accessToken) {\n const grant = await this.auth.getClientGrant();\n accessToken = grant.accessToken;\n }\n const headers = {\n ...options.headers,\n Authorization: `Bearer ${accessToken}`,\n };\n if (typeof options.correlationId === 'string' && options.correlationId !== '') {\n headers['X-Correlation-ID'] = options.correlationId;\n delete options.correlationId;\n }\n if (options.params && Object.keys(options.params).length) {\n params = options.params;\n }\n return {\n method: options.method,\n data: options.data,\n url,\n headers,\n params,\n };\n }\n extractCommonRequestOptions(options) {\n if (!options) {\n return {};\n }\n return {\n correlationId: options.correlationId,\n params: options.params,\n retry: options.retry,\n };\n }\n applyStore(path, storeKey) {\n if (typeof storeKey === 'string' && storeKey !== '') {\n return `/in-store/key=${storeKey}${path}`;\n }\n else if (this.config.storeKey) {\n return `/in-store/key=${this.config.storeKey}${path}`;\n }\n return path;\n }\n static validateConfig(config) {\n const errors = [];\n if (!config) {\n errors.push('The config object missing or empty');\n }\n else {\n if (!config.projectKey) {\n errors.push('The `projectKey` property is empty');\n }\n else if (typeof config.projectKey !== 'string') {\n errors.push('The `projectKey` property must be a string');\n }\n if (!config.clientId) {\n errors.push('The `clientId` property is empty');\n }\n else if (typeof config.clientId !== 'string') {\n errors.push('The `clientId` property must be a string');\n }\n if (!config.clientSecret) {\n errors.push('The `clientSecret` property is empty');\n }\n else if (typeof config.clientSecret !== 'string') {\n errors.push('The `clientSecret` property must be a string');\n }\n if (!Array.isArray(config.clientScopes)) {\n errors.push('The `clientScopes` property must be an array');\n }\n else if (config.clientScopes.length === 0) {\n errors.push('The `clientScopes` property must have at least 1 scope defined');\n }\n }\n if (errors.length) {\n throw new CommercetoolsError('The configuration object passed in to the `CommercetoolsApi` constructor is not valid: \\n' +\n errors.map((error) => `• ${error}`).join('\\n'));\n }\n }\n}\n//# sourceMappingURL=CommercetoolsApi.js.map"],"names":["exports","Status","status_1","Object","defineProperty","enumerable","get","value","reason","status","keys","find","key","replace","ErrorStatus","RedirectionStatus","SuccessStatus","InformationStatus","Continue","SwitchingProtocols","Processing","EarlyHints","Ok","Created","Accepted","NonAuthoritativeInformation","NoContent","ResetContent","PartialContent","MultiStatus","AlreadyReported","ImUsed","MultipleChoices","MovedPermanently","Found","SeeOther","NotModified","TemporaryRedirect","PermanentRedirect","BadRequest","Unauthorized","PaymentRequired","Forbidden","NotFound","MethodNotAllowed","NotAcceptable","ProxyAuthenticationRequired","RequestTimeout","Conflict","Gone","LengthRequired","PreconditionFailed","PayloadTooLarge","UriTooLong","UnsupportedMediaType","RequestedRangeNotSatisfiable","ExpectationFailed","ImATeapot","MisdirectedRequest","UnprocessableEntity","Locked","FailedDependency","TooEarly","UpgradeRequired","PreconditionRequired","TooManyRequests","RequestHeaderFieldsTooLarge","UnavailableForLegalReasons","InternalServerError","NotImplemented","BadGateway","ServiceUnavailable","GatewayTimeout","HttpVersionNotSupported","VariantAlsoNegotiates","InsufficientStorage","LoopDetected","NotExtended","NetworkAuthenticationRequired","assign","serializer","replacer","cycleReplacer","stack","slice","indexOf","join","length","thisPos","this","splice","push","Infinity","call","module","obj","spaces","JSON","stringify","getSerialize","toS","prototype","toString","isArray","Array","xs","forEach","fn","i","objectKeys","res","hasOwnProperty","copy","src","dst","Date","getTime","RegExp","isError","message","isBoolean","isNumber","isString","create","getPrototypeOf","constructor","proto","__proto__","T","walk","root","cb","immutable","path","parents","alive","walker","node_","node","modifiers","keepGoing","state","concat","parent","isRoot","level","circular","update","x","stopHere","delete","remove","before","f","after","pre","post","stop","block","updateState","isLeaf","notLeaf","notRoot","ret","undefined","child","isLast","isFirst","pop","Traverse","traverse","ps","has","set","map","reduce","init","skip","arguments","acc","paths","nodes","clone","args","t","apply","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","__webpack_modules__","n","getter","__esModule","d","a","definition","o","prop","bind","thisArg","kindOf","cache","thing","str","toLowerCase","kindOfTest","type","typeOfTest","isUndefined","isArrayBuffer","isFunction","isObject","isPlainObject","val","Symbol","toStringTag","iterator","isDate","isFile","isBlob","isFileList","isURLSearchParams","allOwnKeys","l","getOwnPropertyNames","len","findKey","_key","_global","globalThis","self","window","global","isContextDefined","context","isTypedArray","TypedArray","Uint8Array","isHTMLForm","isRegExp","reduceDescriptors","reducer","descriptors","getOwnPropertyDescriptors","reducedDescriptors","descriptor","name","defineProperties","ALPHA","DIGIT","ALPHABET","ALPHA_DIGIT","toUpperCase","isBuffer","isFormData","pattern","FormData","isArrayBufferView","result","ArrayBuffer","isView","buffer","isStream","pipe","merge","caseless","assignValue","targetKey","extend","b","trim","stripBOM","content","charCodeAt","inherits","superConstructor","props","toFlatObject","sourceObj","destObj","filter","propFilter","merged","endsWith","searchString","position","String","lastIndex","toArray","arr","forEachEntry","next","done","pair","matchAll","regExp","matches","exec","hasOwnProp","freezeMethods","writable","Error","toObjectSet","arrayOrString","delimiter","define","split","toCamelCase","m","p1","p2","noop","toFiniteNumber","defaultValue","Number","isFinite","generateString","size","alphabet","Math","random","isSpecCompliantForm","append","toJSONObject","visit","source","target","reducedValue","AxiosError","code","config","request","response","captureStackTrace","utils","toJSON","description","number","fileName","lineNumber","columnNumber","from","error","customProps","axiosError","cause","isVisitable","removeBrackets","renderKey","dots","token","predicates","test","formData","options","TypeError","metaTokens","indexes","option","visitor","defaultVisitor","useBlob","Blob","convertValue","toISOString","Buffer","some","isFlatArray","el","index","exposedHelpers","build","encode","charMap","encodeURIComponent","match","AxiosURLSearchParams","params","_pairs","encoder","_encode","buildURL","url","serializeFn","serialize","serializedParams","hashmarkIndex","handlers","use","fulfilled","rejected","synchronous","runWhen","eject","id","clear","h","silentJSONParsing","forcedJSONParsing","clarifyTimeoutError","isBrowser","classes","URLSearchParams","isStandardBrowserEnv","product","navigator","document","isStandardBrowserWebWorkerEnv","WorkerGlobalScope","importScripts","protocols","buildPath","isNumericKey","arrayToObject","entries","parsePropPath","DEFAULT_CONTENT_TYPE","defaults","transitional","adapter","transformRequest","data","headers","contentType","getContentType","hasJSONContentType","isObjectPayload","setContentType","helpers","toURLEncodedForm","formSerializer","_FormData","env","rawValue","parser","parse","e","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","matcher","deleted","deleteHeader","normalize","format","normalized","w","char","formatHeader","targets","asStrings","static","first","computed","accessors","defineAccessor","accessorName","methodName","arg1","arg2","arg3","configurable","buildAccessors","accessor","transformData","fns","isCancel","__CANCEL__","CanceledError","write","expires","domain","secure","cookie","toGMTString","read","decodeURIComponent","now","buildFullPath","baseURL","requestedURL","relativeURL","combineURLs","msie","userAgent","urlParsingNode","createElement","originURL","resolveURL","href","setAttribute","protocol","host","search","hash","hostname","port","pathname","charAt","location","requestURL","progressEventReducer","listener","isDownloadStream","bytesNotified","_speedometer","samplesCount","min","bytes","timestamps","firstSampleTS","head","tail","chunkLength","startedAt","bytesCount","passed","round","loaded","total","lengthComputable","progressBytes","rate","progress","estimated","event","knownAdapters","http","xhr","XMLHttpRequest","Promise","resolve","reject","requestData","requestHeaders","onCanceled","cancelToken","unsubscribe","signal","removeEventListener","auth","username","password","unescape","btoa","fullPath","onloadend","responseHeaders","getAllResponseHeaders","floor","settle","err","responseText","statusText","open","paramsSerializer","onreadystatechange","readyState","responseURL","setTimeout","onabort","onerror","ontimeout","timeoutErrorMessage","xsrfValue","withCredentials","isURLSameOrigin","cookies","setRequestHeader","onDownloadProgress","addEventListener","onUploadProgress","upload","cancel","abort","subscribe","aborted","parseProtocol","send","throwIfCancellationRequested","throwIfRequested","dispatchRequest","adapters","nameOrAdapter","then","headersToObject","mergeConfig","config1","config2","getMergedValue","mergeDeepProperties","valueFromConfig2","defaultToConfig2","mergeDirectKeys","mergeMap","timeoutMessage","decompress","beforeRedirect","transport","httpAgent","httpsAgent","socketPath","responseEncoding","configValue","validators","deprecatedWarnings","validator","version","formatMessage","opt","desc","opts","console","warn","assertOptions","schema","allowUnknown","Axios","instanceConfig","interceptors","configOrUrl","contextHeaders","boolean","function","requestInterceptorChain","synchronousRequestInterceptors","interceptor","unshift","responseInterceptorChain","promise","chain","newConfig","onFulfilled","onRejected","getUri","generateHTTPMethod","isForm","CancelToken","executor","resolvePromise","_listeners","onfulfilled","_resolve","c","HttpStatusCode","UseProxy","Unused","RangeNotSatisfiable","axios","createInstance","defaultConfig","instance","VERSION","toFormData","Cancel","all","promises","spread","callback","isAxiosError","payload","formToJSON","default","extractAxiosHeaders","extractedHeaders","jsonHeaders","lcName","convertAxiosError","stats","convertAxiosResponse","MAX_ITEMS_PER_QUERY","DEFAULT_RETRY_CONFIG","maxRetries","delayMs","jitter","RETRYABLE_STATUS_CODES","createAxiosInstance","agent","calculateDelay","retryCount","retryConfig","exponentialDelay","increasedDelay","formatAsKey","input","output","CommercetoolsError","getAttributeValue","attributes","attribute","plainClone","recursiveClone","SENSITIVE_PROPERTY_NAMES","SENSITIVE_HEADER_NAMES","DEFAULT_MASKING_STRING","maskSensitiveInput","maskSensitiveData","maskSensitiveHeaders","propertyNames","mask","mutatedData","includes","async","retryOnConflict","attemptCount","delay","executeFn","isCommercetoolsError","buildUserAgent","systemIdentifier","super","setPrototypeOf","parseRequestData","searchParams","paramsObj","values","getAll","Region","REGION_URLS","EUROPE_GCP","api","EUROPE_AWS","NORTH_AMERICA_GCP","NORTH_AMERICA_AWS","AUSTRALIA_GCP","INVALID_SCOPES","scopeArrayToRequestString","scopes","projectKey","scope","CommercetoolsGrant","accessToken","expiresIn","expiresAt","access_token","expires_in","anonymousId","extractKeyFromScope","customerId","refresh_token","refreshToken","expiresWithin","refreshIfWithinSecs","cutoff","parts","item","part","GrantType","isRetryableError","transformError","lastError","fromAxiosError","getRequestExecutor","axiosInstance","instanceHeaders","requestConfig","retry","onBeforeRequest","onAfterResponse","timeoutMs","additionalHeaders","headerName","startTime","endTime","totalDurationMs","customRequestConfig","accumulativeDurationMs","durationMs","retries","convertedError","CommercetoolsAuthApi","endpoints","region","requestExecutor","grant_type","CLIENT_CREDENTIALS","REFRESH_TOKEN","applyStore","storeKey","PASSWORD","tokenValue","token_type_hint","tokenType","errors","allSettled","revokeToken","settlement","postOptions","anonymous_id","body","getRequestOptions","Authorization","clientId","clientSecret","correlationId","configDefaults","CommercetoolsAuth","grantPromise","clientScopes","grant","getClientGrant","finally","refreshGrant","customerScopes","login","getAnonymousGrant","logout","CommercetoolsApi","validateConfig","getStoreById","extractCommonRequestOptions","getStoreByKey","queryStores","createStore","updateStoreById","updateStoreByKey","deleteStoreById","deleteStoreByKey","getCategoryById","getCategoryByKey","queryChannels","getChannelById","where","limit","count","results","getCategory","languageCode","languageCodes","slug","queryCategories","category","expand","ancestors","ref","ancestor","typeId","getProductById","getProductByKey","getProductProjectionById","getProductProjectionByKey","queryProductProjections","searchProductProjections","getProductSelectionById","getProductSelectionByKey","queryProductSelections","createProductSelection","updateProductSelectionByKey","actions","deleteProductSelectionByKey","queryProductsInStore","getCartById","cartId","cartVersion","cart","getMyActiveCart","getMyCartById","createPayment","deletePaymentById","updatePaymentById","getPaymentById","queryPayments","createMyPayment","updateMyPaymentById","getMyPaymentById","queryMyPayments","deleteMyPaymentById","getMyOrderById","queryMyOrders","updateOrderById","updateOrderByOrderNumber","orderNumber","getOrderById","getOrderByOrderNumber","deleteOrderById","dataErasure","deleteOrderByOrderNumber","orderNo","queryOrders","createProduct","updateProductByKey","updateProductById","unpublish","unpublishProductById","unpublishProductByKey","action","createCategory","updateCategoryByKey","updateCategoryById","deleteCategoryById","deleteCategoryByKey","createAccount","deleteCustomerById","deleteCustomerByKey","createMyAccount","loginMyAccount","getMyAccount","updateMyAccount","changeMyPassword","resetMyPassword","getPasswordResetToken","getCustomerById","getCustomerByKey","getCustomerByPasswordToken","queryCustomers","updateCustomerById","updateCustomerByKey","getProductTypeById","getProductTypeByKey","queryProductTypes","getTypeById","getTypeByKey","queryTypes","getDiscountCodeById","getCartDiscountById","getCartDiscountByKey","queryCartDiscounts","getCustomObject","container","getCustomObjectById","saveCustomObject","deleteCustomObject","getShippingMethodById","getShippingMethodByKey","getShippingMethodsForLocation","country","currency","getShippingMethodsForCart","queryShippingMethods","getCustomerGroupById","getCustomerGroupByKey","queryCustomerGroups","createCustomerGroup","updateCustomerGroupByKey","updateCustomerGroupById","deleteCustomerGroupById","deleteCustomerGroupByKey","getStateById","getStateByKey","queryStates","getStandalonePriceById","getStandalonePriceByKey","queryStandalonePrices","createStandalonePrice","updateStandalonePriceById","updateStandalonePriceByKey","deleteStandalonePriceById","deleteStandalonePriceByKey","graphql","requestOptions"],"sourceRoot":""}
1
+ {"version":3,"file":"ge-commercetools-utils-browser.esm.js","mappings":"sBAEuHA,EAAQC,YAAS,EACxI,IAAIC,EAAW,EAAQ,MACvBC,OAAOC,eAAeJ,EAAS,SAAU,CAAEK,YAAY,EAAMC,IAAK,WAAc,OAAOJ,EAASD,MAAQ,IAKzF,EAAQ,K,iBCRvBE,OAAOC,eAAeJ,EAAS,aAAc,CAAEO,OAAO,IACtDP,EAAQQ,YAAS,EACjB,MAAMN,EAAW,EAAQ,MAqCzBF,EAAQQ,OAvBR,SAAgBC,GAEZ,OAAQA,GACJ,KAAK,IACD,MAAO,KACX,KAAK,IACD,MAAO,gCACX,KAAK,IACD,MAAO,eACX,KAAK,IACD,MAAO,UACX,KAAK,IACD,MAAO,eACX,KAAK,IACD,MAAO,eACX,KAAK,IACD,MAAO,6BACX,QAGI,OADeN,OAAOO,KAAKR,EAASD,QAAQU,MAAMC,GAAQV,EAASD,OAAOW,KAASH,KAAW,IAChFI,QAAQ,iBAAkB,OAEpD,C,eCtCAV,OAAOC,eAAeJ,EAAS,aAAc,CAAEO,OAAO,IACtDP,EAAQC,OAASD,EAAQc,YAAcd,EAAQe,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WzqB,IAE9B5C,KAAKkP,OAAOme,SACV,iBAAiBrtB,KAAKkP,OAAOme,WAAWzqB,IAE5CA,CACX,CACAiW,sBAAsB3J,GAClB,MAAMwe,EAAS,GA8Bf,GA7BKxe,GAIIA,EAAOib,WAG0B,iBAAtBjb,EAAOib,YACnBuD,EAAOxtB,KAAK,8CAHZwtB,EAAOxtB,KAAK,sCAKXgP,EAAOif,SAGwB,iBAApBjf,EAAOif,UACnBT,EAAOxtB,KAAK,4CAHZwtB,EAAOxtB,KAAK,oCAKXgP,EAAOkf,aAG4B,iBAAxBlf,EAAOkf,cACnBV,EAAOxtB,KAAK,gDAHZwtB,EAAOxtB,KAAK,wCAKXa,MAAMD,QAAQoO,EAAOuf,cAGc,IAA/Bvf,EAAOuf,aAAa3uB,QACzB4tB,EAAOxtB,KAAK,kEAHZwtB,EAAOxtB,KAAK,iDAtBhBwtB,EAAOxtB,KAAK,sCA4BZwtB,EAAO5tB,OACP,MAAM,IAAI0nB,GAAmB,4FACzBkG,EAAOroB,KAAKyK,GAAU,KAAKA,MAASjQ,KAAK,MAErD,E","sources":["webpack://@gradientedge/commercetools-utils/./node_modules/@tshttp/status/index.js","webpack://@gradientedge/commercetools-utils/./node_modules/@tshttp/status/reason.js","webpack://@gradientedge/commercetools-utils/./node_modules/@tshttp/status/status.js","webpack://@gradientedge/commercetools-utils/./node_modules/json-stringify-safe/stringify.js","webpack://@gradientedge/commercetools-utils/./node_modules/traverse/index.js","webpack://@gradientedge/commercetools-utils/webpack/bootstrap","webpack://@gradientedge/commercetools-utils/webpack/runtime/compat get default export","webpack://@gradientedge/commercetools-utils/webpack/runtime/define property getters","webpack://@gradientedge/commercetools-utils/webpack/runtime/hasOwnProperty shorthand","webpack://@gradientedge/commercetools-utils/./node_modules/axios/lib/helpers/bind.js","webpack://@gradientedge/commercetools-utils/./node_modules/axios/lib/utils.js","webpack://@gradientedge/commercetools-utils/./node_modules/axios/lib/core/AxiosError.js","webpack://@gradientedge/commercetools-utils/./node_modules/axios/lib/helpers/toFormData.js","webpack://@gradientedge/commercetools-utils/./node_modules/axios/lib/helpers/AxiosURLSearchParams.js","webpack://@gradientedge/commercetools-utils/./node_modules/axios/lib/helpers/buildURL.js","webpack://@gradientedge/commercetools-utils/./node_modules/axios/lib/core/InterceptorManager.js","webpack://@gradientedge/commercetools-utils/./node_modules/axios/lib/defaults/transitional.js","webpack://@gradientedge/commercetools-utils/./node_modules/axios/lib/platform/browser/index.js","webpack://@gradientedge/commercetools-utils/./node_modules/axios/lib/platform/browser/classes/URLSearchParams.js","webpack://@gradientedge/commercetools-utils/./node_modules/axios/lib/platform/browser/classes/FormData.js","webpack://@gradientedge/commercetools-utils/./node_modules/axios/lib/platform/browser/classes/Blob.js","webpack://@gradientedge/commercetools-utils/./node_modules/axios/lib/helpers/formDataToJSON.js","webpack://@gradientedge/commercetools-utils/./node_modules/axios/lib/defaults/index.js","webpack://@gradientedge/commercetools-utils/./node_modules/axios/lib/helpers/toURLEncodedForm.js","webpack://@gradientedge/commercetools-utils/./node_modules/axios/lib/helpers/parseHeaders.js","webpack://@gradientedge/commercetools-utils/./node_modules/axios/lib/core/AxiosHeaders.js","webpack://@gradientedge/commercetools-utils/./node_modules/axios/lib/core/transformData.js","webpack://@gradientedge/commercetools-utils/./node_modules/axios/lib/cancel/isCancel.js","webpack://@gradientedge/commercetools-utils/./node_modules/axios/lib/cancel/CanceledError.js","webpack://@gradientedge/commercetools-utils/./node_modules/axios/lib/helpers/cookies.js","webpack://@gradientedge/commercetools-utils/./node_modules/axios/lib/core/buildFullPath.js","webpack://@gradientedge/commercetools-utils/./node_modules/axios/lib/helpers/isAbsoluteURL.js","webpack://@gradientedge/commercetools-utils/./node_modules/axios/lib/helpers/combineURLs.js","webpack://@gradientedge/commercetools-utils/./node_modules/axios/lib/helpers/isURLSameOrigin.js","webpack://@gradientedge/commercetools-utils/./node_modules/axios/lib/adapters/xhr.js","webpack://@gradientedge/commercetools-utils/./node_modules/axios/lib/helpers/speedometer.js","webpack://@gradientedge/commercetools-utils/./node_modules/axios/lib/adapters/adapters.js","webpack://@gradientedge/commercetools-utils/./node_modules/axios/lib/helpers/null.js","webpack://@gradientedge/commercetools-utils/./node_modules/axios/lib/core/settle.js","webpack://@gradientedge/commercetools-utils/./node_modules/axios/lib/helpers/parseProtocol.js","webpack://@gradientedge/commercetools-utils/./node_modules/axios/lib/core/dispatchRequest.js","webpack://@gradientedge/commercetools-utils/./node_modules/axios/lib/core/mergeConfig.js","webpack://@gradientedge/commercetools-utils/./node_modules/axios/lib/env/data.js","webpack://@gradientedge/commercetools-utils/./node_modules/axios/lib/helpers/validator.js","webpack://@gradientedge/commercetools-utils/./node_modules/axios/lib/core/Axios.js","webpack://@gradientedge/commercetools-utils/./node_modules/axios/lib/cancel/CancelToken.js","webpack://@gradientedge/commercetools-utils/./node_modules/axios/lib/helpers/HttpStatusCode.js","webpack://@gradientedge/commercetools-utils/./node_modules/axios/lib/axios.js","webpack://@gradientedge/commercetools-utils/./node_modules/axios/lib/helpers/spread.js","webpack://@gradientedge/commercetools-utils/./node_modules/axios/lib/helpers/isAxiosError.js","webpack://@gradientedge/commercetools-utils/./node_modules/axios/index.js","webpack://@gradientedge/commercetools-utils/./dist/esm/utils/axios/extract-headers.js","webpack://@gradientedge/commercetools-utils/./dist/esm/utils/axios/convert-error.js","webpack://@gradientedge/commercetools-utils/./dist/esm/utils/axios/convert-response.js","webpack://@gradientedge/commercetools-utils/./dist/esm/constants.js","webpack://@gradientedge/commercetools-utils/./dist/esm/utils/axios/create-instance.js","webpack://@gradientedge/commercetools-utils/./dist/esm/utils/calculate-delay.js","webpack://@gradientedge/commercetools-utils/./dist/esm/utils/format.js","webpack://@gradientedge/commercetools-utils/./dist/esm/utils/get-attribute-value.js","webpack://@gradientedge/commercetools-utils/./dist/esm/utils/plain-clone.js","webpack://@gradientedge/commercetools-utils/./dist/esm/utils/mask.js","webpack://@gradientedge/commercetools-utils/./dist/esm/utils/retry-on-conflict.js","webpack://@gradientedge/commercetools-utils/./dist/esm/utils/useragent.js","webpack://@gradientedge/commercetools-utils/./dist/esm/error/CommercetoolsError.js","webpack://@gradientedge/commercetools-utils/./dist/esm/types.js","webpack://@gradientedge/commercetools-utils/./dist/esm/auth/constants.js","webpack://@gradientedge/commercetools-utils/./dist/esm/auth/scopes.js","webpack://@gradientedge/commercetools-utils/./dist/esm/auth/CommercetoolsGrant.js","webpack://@gradientedge/commercetools-utils/./dist/esm/auth/types.js","webpack://@gradientedge/commercetools-utils/./dist/esm/request/is-retryable-error.js","webpack://@gradientedge/commercetools-utils/./dist/esm/request/transform-error.js","webpack://@gradientedge/commercetools-utils/./dist/esm/request/request-executor.js","webpack://@gradientedge/commercetools-utils/./dist/esm/request/request.js","webpack://@gradientedge/commercetools-utils/./dist/esm/auth/CommercetoolsAuthApi.js","webpack://@gradientedge/commercetools-utils/./dist/esm/auth/utils.js","webpack://@gradientedge/commercetools-utils/./dist/esm/auth/CommercetoolsAuth.js","webpack://@gradientedge/commercetools-utils/./dist/esm/api/CommercetoolsApi.js"],"sourcesContent":["\"use strict\";\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.reason = exports.ErrorStatus = exports.RedirectionStatus = exports.SuccessStatus = exports.InformationStatus = exports.Status = void 0;\r\nvar status_1 = require(\"./status\");\r\nObject.defineProperty(exports, \"Status\", { enumerable: true, get: function () { return status_1.Status; } });\r\nObject.defineProperty(exports, \"InformationStatus\", { enumerable: true, get: function () { return status_1.InformationStatus; } });\r\nObject.defineProperty(exports, \"SuccessStatus\", { enumerable: true, get: function () { return status_1.SuccessStatus; } });\r\nObject.defineProperty(exports, \"RedirectionStatus\", { enumerable: true, get: function () { return status_1.RedirectionStatus; } });\r\nObject.defineProperty(exports, \"ErrorStatus\", { enumerable: true, get: function () { return status_1.ErrorStatus; } });\r\nvar reason_1 = require(\"./reason\");\r\nObject.defineProperty(exports, \"reason\", { enumerable: true, get: function () { return reason_1.reason; } });\r\n","\"use strict\";\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.reason = void 0;\r\nconst status_1 = require(\"./status\");\r\n/**\r\n * The reason-phrase element exists for the sole purpose of providing a textual description associated\r\n * with the numeric status code, mostly out of deference to earlier Internet application protocols\r\n * that were more frequently used with interactive text clients.\r\n *\r\n * A client SHOULD ignore the reason-phrase content.\r\n *\r\n * https://tools.ietf.org/html/rfc7230#section-3.1.2\r\n *\r\n * https://tools.ietf.org/html/rfc2616#section-6.1.1\r\n *\r\n * @public\r\n */\r\nfunction reason(status) {\r\n // Handle edge cases with ponctuations or caps\r\n switch (status) {\r\n case 200:\r\n return 'OK';\r\n case 203:\r\n return 'Non-Authoritative Information';\r\n case 207:\r\n return 'Multi-Status';\r\n case 226:\r\n return 'IM Used';\r\n case 414:\r\n return 'URI Too Long';\r\n case 418:\r\n return \"I'm a teapot\";\r\n case 505:\r\n return 'HTTP Version Not Supported';\r\n default:\r\n // Returns empty string if status is not known (not allowed by the compiler)\r\n const phrase = Object.keys(status_1.Status).find((key) => status_1.Status[key] === status) || '';\r\n return phrase.replace(/(?!^)([A-Z])/gm, ' $1');\r\n }\r\n}\r\nexports.reason = reason;\r\n","\"use strict\";\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.Status = exports.ErrorStatus = exports.RedirectionStatus = exports.SuccessStatus = exports.InformationStatus = void 0;\r\n/**\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#Information_responses\r\n *\r\n * @public\r\n */\r\nexports.InformationStatus = {\r\n /**\r\n * This interim response indicates that everything so far is OK\r\n * and that the client should continue with the request or ignore it if it is already finished.\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/100\r\n */\r\n Continue: 100,\r\n /**\r\n * This code is sent in response to an `Upgrade` request header by the client,\r\n * and indicates the protocol the server is switching to.\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/101\r\n */\r\n SwitchingProtocols: 101,\r\n /**\r\n * This code indicates that the server has received and is processing the request,\r\n * but no response is available yet.\r\n */\r\n Processing: 102,\r\n /**\r\n * This status code is primarily intended to be used with the `Link` header to allow\r\n * the user agent to start preloading resources while the server is still preparing a response.\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/103\r\n */\r\n EarlyHints: 103,\r\n};\r\n/**\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#Successful_responses\r\n *\r\n * @public\r\n */\r\nexports.SuccessStatus = {\r\n /**\r\n * The request has succeeded.\r\n * The meaning of a success varies depending on the HTTP method:\r\n *\r\n * - `GET`: The resource has been fetched and is transmitted in the message body.\r\n * - `HEAD`: The entity headers are in the message body.\r\n * - `PUT` or `POST`: The resource describing the result of the action is transmitted in the message body.\r\n * - `TRACE`: The message body contains the request message as received by the server\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/200\r\n */\r\n Ok: 200,\r\n /**\r\n * The request has succeeded and a new resource has been created as a result of it.\r\n * This is typically the response sent after a `POST` request, or after some `PUT` requests.\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/201\r\n */\r\n Created: 201,\r\n /**\r\n * The request has been received but not yet acted upon. It is non-committal,\r\n * meaning that there is no way in HTTP to later send an asynchronous response\r\n * indicating the outcome of processing the request.\r\n *\r\n * It is intended for cases where another process or server handles the request, or for batch processing.\r\n */\r\n Accepted: 202,\r\n /**\r\n * This response code means returned meta-information set is not exact set as available\r\n * from the origin server, but collected from a local or a third party copy.\r\n *\r\n * Except this condition, `200 OK` response should be preferred instead of this response.\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/203\r\n */\r\n NonAuthoritativeInformation: 203,\r\n /**\r\n * There is no content to send for this request, but the headers may be useful.\r\n * The user-agent may update its cached headers for this resource with the new ones.\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/204\r\n */\r\n NoContent: 204,\r\n /**\r\n * This response code is sent after accomplishing request to tell user agent reset document view which sent this request.\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/205\r\n */\r\n ResetContent: 205,\r\n /**\r\n * This response code is used because of range header sent by the client to separate download into multiple streams.\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/206\r\n */\r\n PartialContent: 206,\r\n /**\r\n * Conveys information about multiple resources in situations\r\n * where multiple status codes might be appropriate.\r\n */\r\n MultiStatus: 207,\r\n /**\r\n * Used inside a DAV: propstat response element to avoid enumerating\r\n * the internal members of multiple bindings to the same collection repeatedly.\r\n */\r\n AlreadyReported: 208,\r\n /**\r\n * The server has fulfilled a `GET` request for the resource, and the response is a representation\r\n * of the result of one or more instance-manipulations applied to the current instance.\r\n */\r\n ImUsed: 226,\r\n};\r\n/**\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#Redirection_messages\r\n *\r\n * @public\r\n */\r\nexports.RedirectionStatus = {\r\n /**\r\n * The request has more than one possible response. The user-agent or user should choose one of them.\r\n * There is no standardized way of choosing one of the responses.\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/300\r\n */\r\n MultipleChoices: 300,\r\n /**\r\n * This response code means that the URI of the requested resource has been changed permanently.\r\n * Probably, the new URI would be given in the response.\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/301\r\n */\r\n MovedPermanently: 301,\r\n /**\r\n * This response code means that the URI of requested resource has been changed _temporarily_.\r\n * New changes in the URI might be made in the future.\r\n *\r\n * Therefore, this same URI should be used by the client in future requests.\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/302\r\n */\r\n Found: 302,\r\n /**\r\n * The server sent this response to direct the client to get the requested resource at another URI with a `GET` request.\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/303\r\n */\r\n SeeOther: 303,\r\n /**\r\n * This is used for caching purposes. It tells the client that the response has not been modified,\r\n * so the client can continue to use the same cached version of the response.\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/304\r\n */\r\n NotModified: 304,\r\n /**\r\n * The server sends this response to direct the client to get the requested resource at another URI\r\n * with same method that was used in the prior request.\r\n *\r\n * This has the same semantics as the `302 Found` HTTP response code,\r\n * with the exception that the user agent must not change the HTTP method used:\r\n * If a `POST` was used in the first request, a `POST` must be used in the second request.\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/307\r\n */\r\n TemporaryRedirect: 307,\r\n /**\r\n * This means that the resource is now permanently located at another URI,\r\n * specified by the `Location` HTTP Response header.\r\n *\r\n * This has the same semantics as the `301 Moved Permanently` HTTP response code,\r\n * with the exception that the user agent must not change the HTTP method used:\r\n * If a `POST` was used in the first request, a `POST` must be used in the second request.\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/308\r\n */\r\n PermanentRedirect: 308,\r\n};\r\n/**\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#Client_error_responses\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#Server_error_responses\r\n *\r\n * @public\r\n */\r\nexports.ErrorStatus = {\r\n /**\r\n * This response means that server could not understand the request due to invalid syntax.\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/400\r\n */\r\n BadRequest: 400,\r\n /**\r\n * Although the HTTP standard specifies \"unauthorized\", semantically this response means \"unauthenticated\".\r\n * That is, the client must authenticate itself to get the requested response.\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/401\r\n */\r\n Unauthorized: 401,\r\n /**\r\n * This response code is reserved for future use.\r\n * Initial aim for creating this code was using it for digital payment systems,\r\n * however this status code is used very rarely and no standard convention exists.\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/402\r\n */\r\n PaymentRequired: 402,\r\n /**\r\n * The client does not have access rights to the content, i.e. they are _unauthorized_,\r\n * so server is rejecting to give proper response.\r\n *\r\n * Unlike `401`, the client's identity is known to the server.\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/403\r\n */\r\n Forbidden: 403,\r\n /**\r\n * The server can not find requested resource. In the browser, this means the URL is not recognized.\r\n * In an API, this can also mean that the endpoint is valid but the resource itself does not exist.\r\n *\r\n * Servers may also send this response instead of `403` to hide the existence of a resource from an unauthorized client.\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/404\r\n */\r\n NotFound: 404,\r\n /**\r\n * The request method is known by the server but has been disabled and cannot be used.\r\n * For example, an API may forbid `DELETE`-ing a resource.\r\n *\r\n * The two mandatory methods, `GET` and `HEAD`, must never be disabled and should not return this error code.\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/405\r\n */\r\n MethodNotAllowed: 405,\r\n /**\r\n * This response is sent when the web server, after performing server-driven content negotiation,\r\n * doesn't find any content following the criteria given by the user agent.\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/406\r\n */\r\n NotAcceptable: 406,\r\n /**\r\n * This is similar to `401` but authentication is needed to be done by a proxy.\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/40\r\n */\r\n ProxyAuthenticationRequired: 407,\r\n /**\r\n * This response is sent on an idle connection by some servers, even without any previous request by the client.\r\n * It means that the server would like to shut down this unused connection.\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408\r\n */\r\n RequestTimeout: 408,\r\n /**\r\n * This response is sent when a request conflicts with the current state of the server.\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/409\r\n */\r\n Conflict: 409,\r\n /**\r\n * This response would be sent when the requested content has been permanently deleted from server, with no forwarding address.\r\n * Clients are expected to remove their caches and links to the resource.\r\n *\r\n * The HTTP specification intends this status code to be used for \"limited-time, promotional services\".\r\n * APIs should not feel compelled to indicate resources that have been deleted with this status code.\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/410\r\n */\r\n Gone: 410,\r\n /**\r\n * Server rejected the request because the `Content-Length` header field is not defined and the server requires it.\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/411\r\n */\r\n LengthRequired: 411,\r\n /**\r\n * The client has indicated preconditions in its headers which the server does not meet.\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/412\r\n */\r\n PreconditionFailed: 412,\r\n /**\r\n * Request entity is larger than limits defined by server.\r\n * The server might close the connection or return an `Retry-After` header field.\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/413\r\n */\r\n PayloadTooLarge: 413,\r\n /**\r\n * The URI requested by the client is longer than the server is willing to interpret.\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/414\r\n */\r\n UriTooLong: 414,\r\n /**\r\n * The media format of the requested data is not supported by the server, so the server is rejecting the request.\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/415\r\n */\r\n UnsupportedMediaType: 415,\r\n /**\r\n * The range specified by the `Range` header field in the request can't be fulfilled.\r\n * It's possible that the range is outside the size of the target URI's data.\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/416\r\n */\r\n RequestedRangeNotSatisfiable: 416,\r\n /**\r\n * This response code means the expectation indicated by the `Expect` request header field can't be met by the server.\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/417\r\n */\r\n ExpectationFailed: 417,\r\n /**\r\n * The server refuses the attempt to brew coffee with a teapot.\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/418\r\n */\r\n ImATeapot: 418,\r\n /**\r\n * The request was directed at a server that is not able to produce a response.\r\n * This can be sent by a server that is not configured to produce responses\r\n * for the combination of scheme and authority that are included in the request URI.\r\n */\r\n MisdirectedRequest: 421,\r\n /**\r\n * The request was well-formed but was unable to be followed due to semantic errors.\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/422\r\n */\r\n UnprocessableEntity: 422,\r\n /**\r\n * The resource that is being accessed is locked.\r\n */\r\n Locked: 423,\r\n /**\r\n * The request failed due to failure of a previous request.\r\n */\r\n FailedDependency: 424,\r\n /**\r\n * Indicates that the server is unwilling to risk processing a request that might be replayed.\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/425\r\n */\r\n TooEarly: 425,\r\n /**\r\n * The server refuses to perform the request using the current protocol\r\n * but might be willing to do so after the client upgrades to a different protocol.\r\n * The server sends an `Upgrade` header in a 426 response to indicate the required protocol(s).\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/426\r\n */\r\n UpgradeRequired: 426,\r\n /**\r\n * The origin server requires the request to be conditional.\r\n * Intended to prevent the 'lost update' problem, where a client GETs a resource's state,\r\n * modifies it, and PUTs it back to the server, when meanwhile a third party has modified\r\n * the state on the server, leading to a conflict.\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/428\r\n */\r\n PreconditionRequired: 428,\r\n /**\r\n * The user has sent too many requests in a given amount of time (\"rate limiting\").\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429\r\n */\r\n TooManyRequests: 429,\r\n /**\r\n * The server is unwilling to process the request because its header fields are too large.\r\n * The request MAY be resubmitted after reducing the size of the request header fields.\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/431\r\n */\r\n RequestHeaderFieldsTooLarge: 431,\r\n /**\r\n * The user requests an illegal resource, such as a web page censored by a government.\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/451\r\n */\r\n UnavailableForLegalReasons: 451,\r\n /**\r\n * The server has encountered a situation it doesn't know how to handle.\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/500\r\n */\r\n InternalServerError: 500,\r\n /**\r\n * The request method is not supported by the server and cannot be handled.\r\n * The only methods that servers are required to support (and therefore that must not return this code) are `GET` and `HEAD`.\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/501\r\n */\r\n NotImplemented: 501,\r\n /**\r\n * This error response means that the server, while working as a gateway\r\n * to get a response needed to handle the request, got an invalid response.\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/502\r\n */\r\n BadGateway: 502,\r\n /**\r\n * The server is not ready to handle the request. Common causes are a server that is down for maintenance or that is overloaded.\r\n *\r\n * Note that together with this response, a user-friendly page explaining the problem should be sent.\r\n * This responses should be used for temporary conditions and the `Retry-After` HTTP header should, if possible,\r\n * contain the estimated time before the recovery of the service.\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/503\r\n */\r\n ServiceUnavailable: 503,\r\n /**\r\n * This error response is given when the server is acting as a gateway and cannot get a response in time.\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/504\r\n */\r\n GatewayTimeout: 504,\r\n /**\r\n * The HTTP version used in the request is not supported by the server.\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/505\r\n */\r\n HttpVersionNotSupported: 505,\r\n /**\r\n * The server has an internal configuration error: the chosen variant resource\r\n * is configured to engage in transparent content negotiation itself,\r\n * and is therefore not a proper end point in the negotiation process.\r\n */\r\n VariantAlsoNegotiates: 506,\r\n /**\r\n * The method could not be performed on the resource because the server is unable\r\n * to store the representation needed to successfully complete the request.\r\n */\r\n InsufficientStorage: 507,\r\n /**\r\n * The server detected an infinite loop while processing the request.\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/508\r\n */\r\n LoopDetected: 508,\r\n /**\r\n * Further extensions to the request are required for the server to fulfil it.\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/510\r\n */\r\n NotExtended: 510,\r\n /**\r\n * Indicates that the client needs to authenticate to gain network access.\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/511\r\n */\r\n NetworkAuthenticationRequired: 511,\r\n};\r\n/**\r\n * https://developer.mozilla.org/en-US/docs/Web/HTTP/Status\r\n *\r\n * @enum\r\n * @public\r\n */\r\nexports.Status = Object.assign(Object.assign(Object.assign(Object.assign({}, exports.InformationStatus), exports.SuccessStatus), exports.RedirectionStatus), exports.ErrorStatus);\r\n","exports = module.exports = stringify\nexports.getSerialize = serializer\n\nfunction stringify(obj, replacer, spaces, cycleReplacer) {\n return JSON.stringify(obj, serializer(replacer, cycleReplacer), spaces)\n}\n\nfunction serializer(replacer, cycleReplacer) {\n var stack = [], keys = []\n\n if (cycleReplacer == null) cycleReplacer = function(key, value) {\n if (stack[0] === value) return \"[Circular ~]\"\n return \"[Circular ~.\" + keys.slice(0, stack.indexOf(value)).join(\".\") + \"]\"\n }\n\n return function(key, value) {\n if (stack.length > 0) {\n var thisPos = stack.indexOf(this)\n ~thisPos ? stack.splice(thisPos + 1) : stack.push(this)\n ~thisPos ? keys.splice(thisPos, Infinity, key) : keys.push(key)\n if (~stack.indexOf(value)) value = cycleReplacer.call(this, key, value)\n }\n else stack.push(value)\n\n return replacer == null ? value : replacer.call(this, key, value)\n }\n}\n","'use strict';\n\n// TODO: use call-bind, is-date, is-regex, is-string, is-boolean-object, is-number-object\nfunction toS(obj) { return Object.prototype.toString.call(obj); }\nfunction isDate(obj) { return toS(obj) === '[object Date]'; }\nfunction isRegExp(obj) { return toS(obj) === '[object RegExp]'; }\nfunction isError(obj) { return toS(obj) === '[object Error]'; }\nfunction isBoolean(obj) { return toS(obj) === '[object Boolean]'; }\nfunction isNumber(obj) { return toS(obj) === '[object Number]'; }\nfunction isString(obj) { return toS(obj) === '[object String]'; }\n\n// TODO: use isarray\nvar isArray = Array.isArray || function isArray(xs) {\n\treturn Object.prototype.toString.call(xs) === '[object Array]';\n};\n\n// TODO: use for-each?\nfunction forEach(xs, fn) {\n\tif (xs.forEach) { return xs.forEach(fn); }\n\tfor (var i = 0; i < xs.length; i++) {\n\t\tfn(xs[i], i, xs);\n\t}\n\treturn void undefined;\n}\n\n// TODO: use object-keys\nvar objectKeys = Object.keys || function keys(obj) {\n\tvar res = [];\n\tfor (var key in obj) { res.push(key); } // eslint-disable-line no-restricted-syntax\n\treturn res;\n};\n\n// TODO: use object.hasown\nvar hasOwnProperty = Object.prototype.hasOwnProperty || function (obj, key) {\n\treturn key in obj;\n};\n\nfunction copy(src) {\n\tif (typeof src === 'object' && src !== null) {\n\t\tvar dst;\n\n\t\tif (isArray(src)) {\n\t\t\tdst = [];\n\t\t} else if (isDate(src)) {\n\t\t\tdst = new Date(src.getTime ? src.getTime() : src);\n\t\t} else if (isRegExp(src)) {\n\t\t\tdst = new RegExp(src);\n\t\t} else if (isError(src)) {\n\t\t\tdst = { message: src.message };\n\t\t} else if (isBoolean(src) || isNumber(src) || isString(src)) {\n\t\t\tdst = Object(src);\n\t\t} else if (Object.create && Object.getPrototypeOf) {\n\t\t\tdst = Object.create(Object.getPrototypeOf(src));\n\t\t} else if (src.constructor === Object) {\n\t\t\tdst = {};\n\t\t} else {\n\t\t\tvar proto = (src.constructor && src.constructor.prototype)\n || src.__proto__\n || {};\n\t\t\tvar T = function T() {}; // eslint-disable-line func-style, func-name-matching\n\t\t\tT.prototype = proto;\n\t\t\tdst = new T();\n\t\t}\n\n\t\tforEach(objectKeys(src), function (key) {\n\t\t\tdst[key] = src[key];\n\t\t});\n\t\treturn dst;\n\t}\n\treturn src;\n}\n\nfunction walk(root, cb, immutable) {\n\tvar path = [];\n\tvar parents = [];\n\tvar alive = true;\n\n\treturn (function walker(node_) {\n\t\tvar node = immutable ? copy(node_) : node_;\n\t\tvar modifiers = {};\n\n\t\tvar keepGoing = true;\n\n\t\tvar state = {\n\t\t\tnode: node,\n\t\t\tnode_: node_,\n\t\t\tpath: [].concat(path),\n\t\t\tparent: parents[parents.length - 1],\n\t\t\tparents: parents,\n\t\t\tkey: path[path.length - 1],\n\t\t\tisRoot: path.length === 0,\n\t\t\tlevel: path.length,\n\t\t\tcircular: null,\n\t\t\tupdate: function (x, stopHere) {\n\t\t\t\tif (!state.isRoot) {\n\t\t\t\t\tstate.parent.node[state.key] = x;\n\t\t\t\t}\n\t\t\t\tstate.node = x;\n\t\t\t\tif (stopHere) { keepGoing = false; }\n\t\t\t},\n\t\t\tdelete: function (stopHere) {\n\t\t\t\tdelete state.parent.node[state.key];\n\t\t\t\tif (stopHere) { keepGoing = false; }\n\t\t\t},\n\t\t\tremove: function (stopHere) {\n\t\t\t\tif (isArray(state.parent.node)) {\n\t\t\t\t\tstate.parent.node.splice(state.key, 1);\n\t\t\t\t} else {\n\t\t\t\t\tdelete state.parent.node[state.key];\n\t\t\t\t}\n\t\t\t\tif (stopHere) { keepGoing = false; }\n\t\t\t},\n\t\t\tkeys: null,\n\t\t\tbefore: function (f) { modifiers.before = f; },\n\t\t\tafter: function (f) { modifiers.after = f; },\n\t\t\tpre: function (f) { modifiers.pre = f; },\n\t\t\tpost: function (f) { modifiers.post = f; },\n\t\t\tstop: function () { alive = false; },\n\t\t\tblock: function () { keepGoing = false; },\n\t\t};\n\n\t\tif (!alive) { return state; }\n\n\t\tfunction updateState() {\n\t\t\tif (typeof state.node === 'object' && state.node !== null) {\n\t\t\t\tif (!state.keys || state.node_ !== state.node) {\n\t\t\t\t\tstate.keys = objectKeys(state.node);\n\t\t\t\t}\n\n\t\t\t\tstate.isLeaf = state.keys.length === 0;\n\n\t\t\t\tfor (var i = 0; i < parents.length; i++) {\n\t\t\t\t\tif (parents[i].node_ === node_) {\n\t\t\t\t\t\tstate.circular = parents[i];\n\t\t\t\t\t\tbreak; // eslint-disable-line no-restricted-syntax\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tstate.isLeaf = true;\n\t\t\t\tstate.keys = null;\n\t\t\t}\n\n\t\t\tstate.notLeaf = !state.isLeaf;\n\t\t\tstate.notRoot = !state.isRoot;\n\t\t}\n\n\t\tupdateState();\n\n\t\t// use return values to update if defined\n\t\tvar ret = cb.call(state, state.node);\n\t\tif (ret !== undefined && state.update) { state.update(ret); }\n\n\t\tif (modifiers.before) { modifiers.before.call(state, state.node); }\n\n\t\tif (!keepGoing) { return state; }\n\n\t\tif (\n\t\t\ttypeof state.node === 'object'\n\t\t\t&& state.node !== null\n\t\t\t&& !state.circular\n\t\t) {\n\t\t\tparents.push(state);\n\n\t\t\tupdateState();\n\n\t\t\tforEach(state.keys, function (key, i) {\n\t\t\t\tpath.push(key);\n\n\t\t\t\tif (modifiers.pre) { modifiers.pre.call(state, state.node[key], key); }\n\n\t\t\t\tvar child = walker(state.node[key]);\n\t\t\t\tif (immutable && hasOwnProperty.call(state.node, key)) {\n\t\t\t\t\tstate.node[key] = child.node;\n\t\t\t\t}\n\n\t\t\t\tchild.isLast = i === state.keys.length - 1;\n\t\t\t\tchild.isFirst = i === 0;\n\n\t\t\t\tif (modifiers.post) { modifiers.post.call(state, child); }\n\n\t\t\t\tpath.pop();\n\t\t\t});\n\t\t\tparents.pop();\n\t\t}\n\n\t\tif (modifiers.after) { modifiers.after.call(state, state.node); }\n\n\t\treturn state;\n\t}(root)).node;\n}\n\nfunction Traverse(obj) {\n\tthis.value = obj;\n}\n\nTraverse.prototype.get = function (ps) {\n\tvar node = this.value;\n\tfor (var i = 0; i < ps.length; i++) {\n\t\tvar key = ps[i];\n\t\tif (!node || !hasOwnProperty.call(node, key)) {\n\t\t\treturn void undefined;\n\t\t}\n\t\tnode = node[key];\n\t}\n\treturn node;\n};\n\nTraverse.prototype.has = function (ps) {\n\tvar node = this.value;\n\tfor (var i = 0; i < ps.length; i++) {\n\t\tvar key = ps[i];\n\t\tif (!node || !hasOwnProperty.call(node, key)) {\n\t\t\treturn false;\n\t\t}\n\t\tnode = node[key];\n\t}\n\treturn true;\n};\n\nTraverse.prototype.set = function (ps, value) {\n\tvar node = this.value;\n\tfor (var i = 0; i < ps.length - 1; i++) {\n\t\tvar key = ps[i];\n\t\tif (!hasOwnProperty.call(node, key)) { node[key] = {}; }\n\t\tnode = node[key];\n\t}\n\tnode[ps[i]] = value;\n\treturn value;\n};\n\nTraverse.prototype.map = function (cb) {\n\treturn walk(this.value, cb, true);\n};\n\nTraverse.prototype.forEach = function (cb) {\n\tthis.value = walk(this.value, cb, false);\n\treturn this.value;\n};\n\nTraverse.prototype.reduce = function (cb, init) {\n\tvar skip = arguments.length === 1;\n\tvar acc = skip ? this.value : init;\n\tthis.forEach(function (x) {\n\t\tif (!this.isRoot || !skip) {\n\t\t\tacc = cb.call(this, acc, x);\n\t\t}\n\t});\n\treturn acc;\n};\n\nTraverse.prototype.paths = function () {\n\tvar acc = [];\n\tthis.forEach(function () {\n\t\tacc.push(this.path);\n\t});\n\treturn acc;\n};\n\nTraverse.prototype.nodes = function () {\n\tvar acc = [];\n\tthis.forEach(function () {\n\t\tacc.push(this.node);\n\t});\n\treturn acc;\n};\n\nTraverse.prototype.clone = function () {\n\tvar parents = [];\n\tvar nodes = [];\n\n\treturn (function clone(src) {\n\t\tfor (var i = 0; i < parents.length; i++) {\n\t\t\tif (parents[i] === src) {\n\t\t\t\treturn nodes[i];\n\t\t\t}\n\t\t}\n\n\t\tif (typeof src === 'object' && src !== null) {\n\t\t\tvar dst = copy(src);\n\n\t\t\tparents.push(src);\n\t\t\tnodes.push(dst);\n\n\t\t\tforEach(objectKeys(src), function (key) {\n\t\t\t\tdst[key] = clone(src[key]);\n\t\t\t});\n\n\t\t\tparents.pop();\n\t\t\tnodes.pop();\n\t\t\treturn dst;\n\t\t}\n\n\t\treturn src;\n\n\t}(this.value));\n};\n\nfunction traverse(obj) {\n\treturn new Traverse(obj);\n}\n\n// TODO: replace with object.assign?\nforEach(objectKeys(Traverse.prototype), function (key) {\n\ttraverse[key] = function (obj) {\n\t\tvar args = [].slice.call(arguments, 1);\n\t\tvar t = new Traverse(obj);\n\t\treturn t[key].apply(t, args);\n\t};\n});\n\nmodule.exports = traverse;\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","'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 const pattern = '[object FormData]';\n return thing && (\n (typeof FormData === 'function' && thing instanceof FormData) ||\n toString.call(thing) === pattern ||\n (isFunction(thing.toString) && thing.toString() === pattern)\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 if (reducer(descriptor, name, obj) !== false) {\n reducedDescriptors[name] = 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\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};\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\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 isStandardBrowserEnv = (() => {\n let product;\n if (typeof navigator !== 'undefined' && (\n (product = navigator.product) === 'ReactNative' ||\n product === 'NativeScript' ||\n product === 'NS')\n ) {\n return false;\n }\n\n return typeof window !== 'undefined' && typeof document !== 'undefined';\n})();\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 */\n const isStandardBrowserWebWorkerEnv = (() => {\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\n\nexport default {\n isBrowser: true,\n classes: {\n URLSearchParams,\n FormData,\n Blob\n },\n isStandardBrowserEnv,\n isStandardBrowserWebWorkerEnv,\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","'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 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\nconst DEFAULT_CONTENT_TYPE = {\n 'Content-Type': undefined\n};\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 if (!hasJSONContentType) {\n return data;\n }\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 }\n }\n};\n\nutils.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) {\n defaults.headers[method] = {};\n});\n\nutils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n defaults.headers[method] = utils.merge(DEFAULT_CONTENT_TYPE);\n});\n\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\nutils.freezeMethods(AxiosHeaders.prototype);\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","'use strict';\n\nimport utils from './../utils.js';\nimport platform from '../platform/index.js';\n\nexport default platform.isStandardBrowserEnv ?\n\n// Standard browser envs support document.cookie\n (function standardBrowserEnv() {\n return {\n write: function write(name, value, expires, path, domain, secure) {\n const cookie = [];\n cookie.push(name + '=' + encodeURIComponent(value));\n\n if (utils.isNumber(expires)) {\n cookie.push('expires=' + new Date(expires).toGMTString());\n }\n\n if (utils.isString(path)) {\n cookie.push('path=' + path);\n }\n\n if (utils.isString(domain)) {\n cookie.push('domain=' + domain);\n }\n\n if (secure === true) {\n cookie.push('secure');\n }\n\n document.cookie = cookie.join('; ');\n },\n\n read: function read(name) {\n const match = document.cookie.match(new RegExp('(^|;\\\\s*)(' + name + ')=([^;]*)'));\n return (match ? decodeURIComponent(match[3]) : null);\n },\n\n remove: function remove(name) {\n this.write(name, '', Date.now() - 86400000);\n }\n };\n })() :\n\n// Non standard browser env (web workers, react-native) lack needed support.\n (function nonStandardBrowserEnv() {\n return {\n write: function write() {},\n read: function read() { return null; },\n remove: function remove() {}\n };\n })();\n","'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.isStandardBrowserEnv ?\n\n// Standard browser envs have full support of the APIs needed to test\n// whether the request URL is of the same origin as current location.\n (function standardBrowserEnv() {\n 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 it's 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\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 const responseType = config.responseType;\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 if (utils.isFormData(requestData) && (platform.isStandardBrowserEnv || platform.isStandardBrowserWebWorkerEnv)) {\n requestHeaders.setContentType(false); // Let the browser set it\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.isStandardBrowserEnv) {\n // Add xsrf header\n const xsrfValue = (config.withCredentials || isURLSameOrigin(fullPath))\n && config.xsrfCookieName && cookies.read(config.xsrfCookieName);\n\n if (xsrfValue) {\n requestHeaders.set(config.xsrfHeaderName, xsrfValue);\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","'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","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\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 for (let i = 0; i < length; i++) {\n nameOrAdapter = adapters[i];\n if((adapter = utils.isString(nameOrAdapter) ? knownAdapters[nameOrAdapter.toLowerCase()] : nameOrAdapter)) {\n break;\n }\n }\n\n if (!adapter) {\n if (adapter === false) {\n throw new AxiosError(\n `Adapter ${nameOrAdapter} is not supported by the environment`,\n 'ERR_NOT_SUPPORT'\n );\n }\n\n throw new Error(\n utils.hasOwnProp(knownAdapters, nameOrAdapter) ?\n `Adapter '${nameOrAdapter}' is not available in the build` :\n `Unknown adapter '${nameOrAdapter}'`\n );\n }\n\n if (!utils.isFunction(adapter)) {\n throw new TypeError('adapter is not a function');\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.toJSON() : 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 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(config1).concat(Object.keys(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.3.5\";","'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 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 let contextHeaders;\n\n // Flatten headers\n contextHeaders = headers && utils.merge(\n headers.common,\n headers[config.method]\n );\n\n contextHeaders && 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 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.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","import axios from './lib/axios.js';\n\n// This module is intended to unwrap Axios default export as named.\n// Keep top-level export same with static properties\n// so that it can keep same with es module or cjs\nconst {\n Axios,\n AxiosError,\n CanceledError,\n isCancel,\n CancelToken,\n VERSION,\n all,\n Cancel,\n isAxiosError,\n spread,\n toFormData,\n AxiosHeaders,\n HttpStatusCode,\n formToJSON,\n mergeConfig\n} = axios;\n\nexport {\n axios as default,\n Axios,\n AxiosError,\n CanceledError,\n isCancel,\n CancelToken,\n VERSION,\n all,\n Cancel,\n isAxiosError,\n spread,\n toFormData,\n AxiosHeaders,\n HttpStatusCode,\n formToJSON,\n mergeConfig\n}\n","import { AxiosHeaders } from 'axios';\nexport function extractAxiosHeaders(headers) {\n let extractedHeaders = {};\n if (headers instanceof AxiosHeaders) {\n const jsonHeaders = headers.toJSON();\n extractedHeaders = {};\n Object.entries(jsonHeaders).forEach(([name, value]) => {\n const lcName = name.toLowerCase();\n if (typeof value === 'boolean' || typeof value === 'number' || typeof value === 'string') {\n extractedHeaders[lcName] = value.toString();\n }\n else if (Array.isArray(value)) {\n extractedHeaders[lcName] = value.join(', ');\n }\n });\n }\n return Object.keys(extractedHeaders).length ? extractedHeaders : undefined;\n}\n//# sourceMappingURL=extract-headers.js.map","import { extractAxiosHeaders } from './extract-headers';\nexport function convertAxiosError(error, stats) {\n if (!('isAxiosError' in error)) {\n return null;\n }\n return {\n request: {\n url: error.config?.url ?? '',\n method: error.config?.method,\n params: error.config?.params,\n headers: extractAxiosHeaders(error.config?.headers),\n data: error.config?.data,\n },\n response: {\n code: error.code,\n message: !error.response?.status ? error.message : undefined,\n status: error.response?.status,\n headers: extractAxiosHeaders(error.response?.headers),\n data: error.response?.data,\n },\n stats,\n };\n}\n//# sourceMappingURL=convert-error.js.map","import { extractAxiosHeaders } from './extract-headers';\nexport function convertAxiosResponse(response, stats) {\n return {\n request: {\n url: response.config?.url ?? '',\n method: response.config?.method,\n params: response.config?.params,\n headers: extractAxiosHeaders(response.config?.headers),\n data: response.config?.data,\n },\n response: {\n status: response.status,\n headers: extractAxiosHeaders(response.headers),\n data: response.data,\n },\n stats,\n };\n}\n//# sourceMappingURL=convert-response.js.map","import { Status } from '@tshttp/status';\nexport const USER_AGENT_PREFIX = '@gradientedge/commercetools-utils';\nexport const DEFAULT_REQUEST_TIMEOUT_MS = 5000;\nexport const MAX_ITEMS_PER_QUERY = 500;\nexport const DEFAULT_RETRY_CONFIG = {\n maxRetries: 3,\n delayMs: 50,\n jitter: true,\n};\nexport const RETRYABLE_STATUS_CODES = [\n Status.InternalServerError,\n Status.NotImplemented,\n Status.BadGateway,\n Status.ServiceUnavailable,\n Status.GatewayTimeout,\n];\nexport const DEFAULT_HTTPS_AGENT_CONFIG = {\n keepAlive: true,\n maxSockets: 32,\n maxFreeSockets: 10,\n timeout: DEFAULT_REQUEST_TIMEOUT_MS,\n};\n//# sourceMappingURL=constants.js.map","import { DEFAULT_HTTPS_AGENT_CONFIG } from '../../constants';\nimport axios from 'axios';\nexport function createAxiosInstance(options) {\n let agent;\n try {\n if (process.env.GECTU_IS_BROWSER !== '1') {\n if (options.httpsAgent) {\n agent = options.httpsAgent;\n }\n else {\n const https = require('https');\n agent = new https.Agent(DEFAULT_HTTPS_AGENT_CONFIG);\n }\n }\n }\n catch (e) { }\n return axios.create({ httpsAgent: agent });\n}\n//# sourceMappingURL=create-instance.js.map","export function calculateDelay(retryCount, retryConfig) {\n if (!retryConfig || retryCount === 0) {\n return 0;\n }\n const exponentialDelay = retryConfig.delayMs * 2 ** (retryCount - 1);\n if (retryConfig.jitter) {\n const increasedDelay = exponentialDelay * (1 + 1 / (retryCount + 1));\n return Math.floor(Math.random() * increasedDelay);\n }\n else {\n return exponentialDelay;\n }\n}\n//# sourceMappingURL=calculate-delay.js.map","import { CommercetoolsError } from '../error';\nexport function formatAsKey(input) {\n let output = '';\n if (typeof input !== 'string') {\n throw new CommercetoolsError(`The [input] parameter must be a string`);\n }\n output = input.trim().toLowerCase();\n output = output.replace(/ {2,}/g, '');\n output = output.replace(/&/g, 'and');\n output = output.replace(/[ _]/g, '-');\n output = output.replace(/[^0-9a-z-]+/g, '');\n output = output.replace(/-{2,}/g, '-');\n if (output.length && output[0] === '-') {\n output = output.slice(1);\n }\n if (output.length && output[output.length - 1] === '-') {\n output = output.slice(0, -1);\n }\n if (output.length < 2) {\n throw new CommercetoolsError(`Formatted key did not meet minimum length of 2 characters: ${output}`);\n }\n if (output.length > 256) {\n throw new CommercetoolsError(`Formatted key exceeds the maximum length of 256 characters: ${output}`);\n }\n return output;\n}\n//# sourceMappingURL=format.js.map","export function getAttributeValue(options) {\n if (options?.attributes?.length) {\n const attribute = options.attributes?.find((attribute) => attribute.name === options.name);\n if (attribute) {\n return attribute.value;\n }\n }\n return null;\n}\n//# sourceMappingURL=get-attribute-value.js.map","export function plainClone(source) {\n return recursiveClone(source, {});\n}\nfunction recursiveClone(source, target) {\n if (target && source) {\n for (const x in source) {\n if (Object.prototype.hasOwnProperty.call(source, x)) {\n if (typeof source[x] === 'object') {\n if (Array.isArray(source[x])) {\n target[x] = [];\n }\n else {\n target[x] = {};\n }\n target[x] = recursiveClone(source[x], target[x]);\n }\n else {\n target[x] = source[x];\n }\n }\n }\n }\n return target;\n}\n//# sourceMappingURL=plain-clone.js.map","import traverse from 'traverse';\nimport { AxiosHeaders } from 'axios';\nimport { plainClone } from './plain-clone';\nexport const SENSITIVE_PROPERTY_NAMES = ['password', 'refresh_token'];\nexport const SENSITIVE_HEADER_NAMES = ['authorization'];\nexport const DEFAULT_MASKING_STRING = '********';\nexport function maskSensitiveInput(data) {\n return maskSensitiveData(data, SENSITIVE_PROPERTY_NAMES);\n}\nexport function maskSensitiveHeaders(data) {\n return maskSensitiveData(data, SENSITIVE_HEADER_NAMES);\n}\nexport function maskSensitiveData(data, propertyNames, mask = DEFAULT_MASKING_STRING) {\n if (typeof data === 'object' && data !== null && data !== undefined) {\n let mutatedData = {};\n if (data instanceof AxiosHeaders) {\n mutatedData = plainClone(data.toJSON());\n }\n else {\n mutatedData = plainClone(data);\n }\n traverse(mutatedData).forEach(function () {\n if (propertyNames.includes(this.key?.toLowerCase() ?? '')) {\n this.update(mask);\n }\n });\n return mutatedData;\n }\n else {\n return data;\n }\n}\n//# sourceMappingURL=mask.js.map","import { calculateDelay } from './calculate-delay';\nimport { Status } from '@tshttp/status';\nconst DEFAULT_MAX_RETRIES = 3;\nconst DEFAULT_DELAY_MS = 100;\nexport async function retryOnConflict(options) {\n const maxAttempts = (options?.maxRetries || DEFAULT_MAX_RETRIES) + 1;\n const delayMs = options?.delayMs || DEFAULT_DELAY_MS;\n const jitter = !!options?.jitter;\n let result;\n for (let attemptCount = 1; attemptCount <= maxAttempts; attemptCount++) {\n if (attemptCount > 1) {\n const delay = calculateDelay(attemptCount - 1, { delayMs, jitter });\n await new Promise((resolve) => setTimeout(resolve, delay));\n }\n try {\n return await options.executeFn(attemptCount);\n }\n catch (e) {\n if (!e.isCommercetoolsError || e.status !== Status.Conflict || attemptCount === maxAttempts) {\n throw e;\n }\n }\n }\n return result;\n}\n//# sourceMappingURL=retry-on-conflict.js.map","import { USER_AGENT_PREFIX } from '../constants';\nexport function buildUserAgent(systemIdentifier) {\n let userAgent = USER_AGENT_PREFIX;\n if (systemIdentifier) {\n userAgent = `${userAgent} (${systemIdentifier})`;\n }\n return userAgent;\n}\n//# sourceMappingURL=useragent.js.map","import stringify from 'json-stringify-safe';\nimport { extractAxiosHeaders, maskSensitiveHeaders, maskSensitiveInput } from '../utils';\nexport class CommercetoolsError extends Error {\n constructor(message, data, status) {\n super(message);\n this.isCommercetoolsError = true;\n this.data = data;\n this.status = status;\n Object.setPrototypeOf(this, CommercetoolsError.prototype);\n }\n static fromAxiosError(e) {\n return new CommercetoolsError(e.message, {\n code: e.code,\n request: {\n url: e.config?.url,\n method: e.config?.method,\n headers: maskSensitiveHeaders(extractAxiosHeaders(e.config?.headers)),\n params: maskSensitiveInput(e.config?.params),\n data: maskSensitiveInput(this.parseRequestData(e.config)),\n },\n response: {\n status: e.response?.status,\n data: maskSensitiveInput(e.response?.data),\n headers: extractAxiosHeaders(e.response?.headers),\n },\n }, e.response?.status);\n }\n static parseRequestData(config) {\n if (!config) {\n return null;\n }\n let data = config?.data;\n if (typeof data === 'string' && data) {\n let contentType = '';\n if (typeof config?.headers?.['Content-Type'] === 'string') {\n contentType = config?.headers?.['Content-Type'];\n }\n if (contentType.substring(0, 16) === 'application/json') {\n try {\n data = JSON.parse(config.data);\n }\n catch (e) { }\n }\n else if (contentType.substring(0, 33) === 'application/x-www-form-urlencoded') {\n try {\n const searchParams = new URLSearchParams(config.data);\n const paramsObj = {};\n searchParams.forEach((value, key, searchParams) => {\n const values = searchParams.getAll(key);\n if (values.length === 0) {\n paramsObj[key] = '';\n }\n else if (values.length === 1) {\n paramsObj[key] = values[0];\n }\n else {\n paramsObj[key] = values;\n }\n });\n data = paramsObj;\n }\n catch (e) { }\n }\n }\n return data;\n }\n toJSON() {\n return {\n status: this.status,\n message: this.message,\n data: this.data,\n isCommercetoolsError: true,\n };\n }\n toString() {\n return stringify(this.toJSON());\n }\n}\n//# sourceMappingURL=CommercetoolsError.js.map","export var Region;\n(function (Region) {\n Region[\"NORTH_AMERICA_GCP\"] = \"north_america_gcp\";\n Region[\"NORTH_AMERICA_AWS\"] = \"north_america_aws\";\n Region[\"EUROPE_GCP\"] = \"europe_gcp\";\n Region[\"EUROPE_AWS\"] = \"europe_aws\";\n Region[\"AUSTRALIA_GCP\"] = \"australia_gcp\";\n})(Region || (Region = {}));\n//# sourceMappingURL=types.js.map","import { Region } from '../types';\nexport const REGION_URLS = {\n [Region.EUROPE_GCP]: {\n auth: 'https://auth.europe-west1.gcp.commercetools.com',\n api: 'https://api.europe-west1.gcp.commercetools.com',\n },\n [Region.EUROPE_AWS]: {\n auth: 'https://auth.eu-central-1.aws.commercetools.com',\n api: 'https://api.eu-central-1.aws.commercetools.com',\n },\n [Region.NORTH_AMERICA_GCP]: {\n auth: 'https://auth.us-central1.gcp.commercetools.com',\n api: 'https://api.us-central1.gcp.commercetools.com',\n },\n [Region.NORTH_AMERICA_AWS]: {\n auth: 'https://auth.us-east-2.aws.commercetools.com',\n api: 'https://api.us-east-2.aws.commercetools.com',\n },\n [Region.AUSTRALIA_GCP]: {\n auth: 'https://auth.australia-southeast1.gcp.commercetools.com',\n api: 'https://api.australia-southeast1.gcp.commercetools.com',\n },\n};\nexport const INVALID_SCOPES = ['anonymous_id', 'customer_id'];\n//# sourceMappingURL=constants.js.map","import { INVALID_SCOPES } from './constants';\nexport function scopeArrayToRequestString(scopes, projectKey) {\n if (!scopes) {\n return '';\n }\n return scopes.map((scope) => `${scope}:${projectKey}`).join(' ');\n}\nexport function scopeRequestStringToArray(scopes) {\n if (!scopes) {\n return [];\n }\n return scopes\n .split(' ')\n .map((scope) => scope.split(':')[0])\n .filter((scope) => !INVALID_SCOPES.includes(scope));\n}\n//# sourceMappingURL=scopes.js.map","import { scopeRequestStringToArray } from './scopes';\nexport class CommercetoolsGrant {\n constructor(data) {\n this.accessToken = '';\n this.expiresIn = 0;\n this.expiresAt = new Date();\n this.scopes = [];\n this.accessToken = data.access_token;\n this.expiresIn = data.expires_in;\n this.scopes = scopeRequestStringToArray(data.scope);\n this.anonymousId = this.extractKeyFromScope('anonymous_id', data.scope);\n this.customerId = this.extractKeyFromScope('customer_id', data.scope);\n this.expiresAt = new Date(new Date().getTime() + 1000 * data.expires_in);\n if ('refresh_token' in data && data.refresh_token) {\n this.refreshToken = data.refresh_token;\n }\n }\n expiresWithin(refreshIfWithinSecs) {\n const cutoff = new Date().getTime() + refreshIfWithinSecs * 1000;\n return this.expiresAt.getTime() < cutoff;\n }\n extractKeyFromScope(key, scope) {\n if (!scope || !key) {\n return undefined;\n }\n const parts = scope?.split(' ');\n if (!Array.isArray(parts) || parts.length === 0) {\n return undefined;\n }\n const item = parts.find((part) => part.slice(0, key.length + 1) === `${key}:`);\n if (item) {\n return item.slice(key.length + 1);\n }\n return undefined;\n }\n}\n//# sourceMappingURL=CommercetoolsGrant.js.map","export var GrantType;\n(function (GrantType) {\n GrantType[\"CLIENT_CREDENTIALS\"] = \"client_credentials\";\n GrantType[\"REFRESH_TOKEN\"] = \"refresh_token\";\n GrantType[\"PASSWORD\"] = \"password\";\n})(GrantType || (GrantType = {}));\n//# sourceMappingURL=types.js.map","import { RETRYABLE_STATUS_CODES } from '../constants';\nexport function isRetryableError(error) {\n if (!error.isAxiosError) {\n return true;\n }\n if (!error.request || !error.response) {\n return true;\n }\n return RETRYABLE_STATUS_CODES.includes(error.response.status);\n}\n//# sourceMappingURL=is-retryable-error.js.map","import { CommercetoolsError } from '../error';\nexport function transformError(lastError) {\n if (lastError.isAxiosError) {\n return CommercetoolsError.fromAxiosError(lastError);\n }\n return lastError;\n}\n//# sourceMappingURL=transform-error.js.map","import { request } from './index';\nimport { buildUserAgent, createAxiosInstance } from '../utils';\nimport { DEFAULT_RETRY_CONFIG } from '../constants';\nexport function getRequestExecutor(props) {\n const axiosInstance = createAxiosInstance({ httpsAgent: props.httpsAgent });\n const instanceHeaders = { 'User-Agent': buildUserAgent(props.systemIdentifier) };\n return (requestConfig) => {\n const headers = { ...instanceHeaders, ...requestConfig.headers };\n return request({\n axiosInstance,\n onBeforeRequest: props.onBeforeRequest,\n onAfterResponse: props.onAfterResponse,\n request: { ...requestConfig, headers },\n retry: { ...DEFAULT_RETRY_CONFIG, ...props.retry },\n timeoutMs: props.timeoutMs,\n });\n };\n}\n//# sourceMappingURL=request-executor.js.map","import { buildUserAgent, calculateDelay, convertAxiosError, convertAxiosResponse } from '../utils';\nimport { isRetryableError } from './is-retryable-error';\nimport { transformError } from './transform-error';\nimport { DEFAULT_REQUEST_TIMEOUT_MS } from '../constants';\nimport { plainClone } from '../utils/plain-clone';\nexport async function request(options) {\n const { retry: retryConfig, onBeforeRequest, onAfterResponse, axiosInstance } = options;\n const timeout = options.timeoutMs ?? DEFAULT_REQUEST_TIMEOUT_MS;\n const additionalHeaders = {};\n let requestConfig = plainClone(options.request);\n let retryCount = 0;\n let lastError;\n const headerNames = Object.keys(requestConfig.headers ?? {}).map((headerName) => headerName.toLowerCase());\n if (!headerNames.includes('user-agent')) {\n requestConfig.headers ?? (requestConfig.headers = {});\n requestConfig.headers['User-Agent'] = buildUserAgent();\n }\n let totalDurationMs = 0;\n let startTime;\n let endTime;\n do {\n startTime = null;\n endTime = null;\n if (retryCount > 0) {\n additionalHeaders['X-Retry-Count'] = `${retryCount}`;\n const delay = calculateDelay(retryCount, retryConfig);\n await new Promise((resolve) => setTimeout(resolve, delay));\n }\n try {\n if (onBeforeRequest) {\n const customRequestConfig = await onBeforeRequest(requestConfig);\n if (customRequestConfig) {\n requestConfig = customRequestConfig;\n }\n }\n startTime = Date.now();\n const response = await axiosInstance({\n ...requestConfig,\n headers: {\n ...requestConfig.headers,\n ...additionalHeaders,\n },\n timeout,\n });\n endTime = Date.now();\n totalDurationMs += endTime - startTime;\n if (onAfterResponse) {\n onAfterResponse(convertAxiosResponse(response, {\n accumulativeDurationMs: totalDurationMs,\n durationMs: endTime - startTime,\n retries: retryCount,\n }));\n }\n return response.data;\n }\n catch (error) {\n endTime = Date.now();\n totalDurationMs += startTime ? endTime - startTime : 0;\n if (onAfterResponse) {\n const convertedError = convertAxiosError(error, {\n accumulativeDurationMs: totalDurationMs,\n durationMs: startTime ? endTime - startTime : 0,\n retries: retryCount,\n });\n if (convertedError) {\n onAfterResponse(convertedError);\n }\n }\n if (isRetryableError(error)) {\n lastError = error;\n }\n else {\n throw transformError(error);\n }\n }\n retryCount++;\n } while (retryCount <= retryConfig.maxRetries);\n throw transformError(lastError);\n}\n//# sourceMappingURL=request.js.map","import { GrantType, } from './types';\nimport { CommercetoolsError } from '../';\nimport { scopeArrayToRequestString } from './scopes';\nimport { REGION_URLS } from './constants';\nimport { base64EncodeForBasicAuth } from './utils';\nimport { getRequestExecutor } from '../request/request-executor';\nexport class CommercetoolsAuthApi {\n constructor(config) {\n this.config = config;\n this.endpoints = REGION_URLS[this.config.region];\n this.requestExecutor = getRequestExecutor({\n timeoutMs: config.timeoutMs,\n httpsAgent: config.httpsAgent,\n systemIdentifier: config.systemIdentifier,\n onBeforeRequest: config.onBeforeRequest,\n onAfterResponse: config.onAfterResponse,\n retry: config.retry,\n });\n }\n async getClientGrant(scopes) {\n return this.post('/token', {\n grant_type: GrantType.CLIENT_CREDENTIALS,\n scope: scopeArrayToRequestString(scopes, this.config.projectKey),\n });\n }\n async refreshGrant(refreshToken) {\n return await this.post('/token', {\n grant_type: GrantType.REFRESH_TOKEN,\n refresh_token: refreshToken,\n });\n }\n async login(options) {\n return this.post(`/${this.config.projectKey}${this.applyStore('/customers/token', options.storeKey)}`, {\n username: options.username,\n password: options.password,\n grant_type: GrantType.PASSWORD,\n scope: scopeArrayToRequestString(options.scopes, this.config.projectKey),\n });\n }\n async revokeToken(options) {\n await this.post('/token/revoke', {\n token: options.tokenValue,\n token_type_hint: options.tokenType,\n });\n }\n async logout(options) {\n const settlements = await Promise.allSettled([\n this.revokeToken({ tokenType: 'access_token', tokenValue: options.accessToken }),\n this.revokeToken({ tokenType: 'refresh_token', tokenValue: options.refreshToken }),\n ]);\n const errors = settlements.reduce((errors, settlement) => {\n if (settlement.status === 'rejected') {\n errors.push(settlement.reason);\n }\n return errors;\n }, []);\n if (errors.length) {\n throw new CommercetoolsError(`Logout failed in one or more calls to the token revocation endpoint`, errors);\n }\n }\n async getAnonymousGrant(options) {\n const postOptions = {\n grant_type: GrantType.CLIENT_CREDENTIALS,\n };\n if (options?.scopes?.length) {\n postOptions.scope = scopeArrayToRequestString(options.scopes, this.config.projectKey);\n }\n if (options?.anonymousId) {\n postOptions.anonymous_id = options.anonymousId;\n }\n return this.post(`/${this.config.projectKey}/anonymous/token`, postOptions);\n }\n async post(path, body) {\n return await this.requestExecutor(this.getRequestOptions({ path, body }));\n }\n getRequestOptions(options) {\n const url = `${this.endpoints.auth}/oauth${options.path}`;\n let data;\n const headers = {\n Authorization: `Basic ${base64EncodeForBasicAuth(this.config.clientId, this.config.clientSecret)}`,\n 'Content-Type': 'application/x-www-form-urlencoded',\n };\n if (options.correlationId && options.correlationId !== '') {\n headers['X-Correlation-ID'] = options.correlationId;\n delete options.correlationId;\n }\n if (options.body) {\n data = new URLSearchParams(options.body).toString();\n }\n return {\n method: 'POST',\n data,\n url,\n headers,\n };\n }\n applyStore(path, storeKey) {\n if (typeof storeKey === 'string' && storeKey !== '') {\n return `/in-store/key=${storeKey}${path}`;\n }\n else if (this.config.storeKey) {\n return `/in-store/key=${this.config.storeKey}${path}`;\n }\n return path;\n }\n}\n//# sourceMappingURL=CommercetoolsAuthApi.js.map","export function base64EncodeForBasicAuth(username, password) {\n const toEncode = `${username}:${password}`;\n if (process.env.GECTU_IS_BROWSER !== '1') {\n return Buffer.from(toEncode).toString('base64');\n }\n else {\n return btoa(toEncode);\n }\n}\n//# sourceMappingURL=utils.js.map","import { CommercetoolsError } from '../';\nimport { CommercetoolsGrant } from './CommercetoolsGrant';\nimport { CommercetoolsAuthApi } from './CommercetoolsAuthApi';\nconst configDefaults = {\n refreshIfWithinSecs: 1800,\n timeoutMs: 5000,\n};\nexport class CommercetoolsAuth {\n constructor(config) {\n this.grantPromise = null;\n this.config = { ...configDefaults, ...config };\n if (!this.config.clientScopes.length) {\n throw new CommercetoolsError('`config.clientScopes` must contain at least one scope');\n }\n this.api = new CommercetoolsAuthApi(config);\n }\n async getClientGrant() {\n if (this.grantPromise) {\n return this.grantPromise;\n }\n if (this.grant && !this.grant.expiresWithin(this.config.refreshIfWithinSecs)) {\n return this.grant;\n }\n this.grantPromise = this.api\n .getClientGrant(this.config.clientScopes)\n .then((grant) => {\n this.grant = new CommercetoolsGrant(grant);\n return this.grant;\n })\n .finally(() => {\n this.grantPromise = null;\n });\n return this.grantPromise;\n }\n async refreshCustomerGrant(refreshToken) {\n const data = await this.api.refreshGrant(refreshToken);\n return new CommercetoolsGrant({ ...data, refresh_token: refreshToken });\n }\n async login(options) {\n const scopes = options.scopes || this.config.customerScopes;\n if (!scopes) {\n throw new CommercetoolsError('Customer scopes must be set on either the `options` ' +\n 'parameter of this `login` method, or on the `customerScopes` ' +\n 'property of the `CommercetoolsAuth` constructor');\n }\n await this.getClientGrant();\n const data = await this.api.login({\n ...options,\n scopes,\n });\n return new CommercetoolsGrant(data);\n }\n async getAnonymousGrant(options) {\n const scopes = options?.scopes || this.config.customerScopes;\n const anonymousId = options?.anonymousId;\n if (!scopes) {\n throw new CommercetoolsError('Customer scopes must be set on either the `options` ' +\n 'parameter of this `login` method, or on the `customerScopes` ' +\n 'property of the `CommercetoolsAuth` constructor');\n }\n await this.getClientGrant();\n const data = await this.api.getAnonymousGrant({\n scopes,\n anonymousId,\n });\n return new CommercetoolsGrant(data);\n }\n async logout(options) {\n await this.api.logout(options);\n }\n async revokeToken(options) {\n await this.api.revokeToken(options);\n }\n}\n//# sourceMappingURL=CommercetoolsAuth.js.map","import { CommercetoolsAuth, } from '../';\nimport { CommercetoolsError } from '../error';\nimport { REGION_URLS } from '../auth/constants';\nimport { getRequestExecutor } from '../request/request-executor';\nexport class CommercetoolsApi {\n constructor(config) {\n CommercetoolsApi.validateConfig(config);\n this.config = config;\n this.auth = new CommercetoolsAuth(config);\n this.endpoints = REGION_URLS[this.config.region];\n this.requestExecutor = getRequestExecutor({\n timeoutMs: config.timeoutMs,\n httpsAgent: config.httpsAgent,\n systemIdentifier: config.systemIdentifier,\n onBeforeRequest: config.onBeforeRequest,\n onAfterResponse: config.onAfterResponse,\n retry: config.retry,\n });\n }\n getStoreById(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/stores/${options.id}`,\n method: 'GET',\n });\n }\n getStoreByKey(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/stores/key=${options.key}`,\n method: 'GET',\n });\n }\n queryStores(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: '/stores',\n method: 'GET',\n });\n }\n createStore(options) {\n return this.request({\n path: `/stores`,\n method: 'POST',\n data: options.data,\n });\n }\n updateStoreById(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/stores/${options.id}`,\n method: 'POST',\n data: options.data,\n });\n }\n updateStoreByKey(options) {\n return this.request({\n path: `/stores/key=${options.key}`,\n method: 'POST',\n data: options.data,\n });\n }\n deleteStoreById(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/stores/${options.id}`,\n method: 'DELETE',\n params: {\n ...options.params,\n version: options.version,\n },\n });\n }\n deleteStoreByKey(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/stores/key=${options.key}`,\n method: 'DELETE',\n params: {\n ...options.params,\n version: options.version,\n },\n });\n }\n getCategoryById(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/categories/${options.id}`,\n method: 'GET',\n });\n }\n getCategoryByKey(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/categories/key=${options.key}`,\n method: 'GET',\n });\n }\n queryChannels(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/channels`,\n method: 'GET',\n });\n }\n async importOrder(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: '/orders/import',\n method: 'POST',\n data: options.data,\n });\n }\n getChannelById(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/channels/${options.id}`,\n method: 'GET',\n });\n }\n async getChannelByKey(options) {\n const response = await this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/channels`,\n method: 'GET',\n params: {\n where: `key=\"${options.key}\"`,\n limit: 1,\n },\n });\n if (!response?.count) {\n throw new CommercetoolsError(`No channel found with key [${options.key}]`, null, 404);\n }\n return response.results[0];\n }\n getCategory(options) {\n if (!options.id && !options.key) {\n throw new CommercetoolsError('Either an id, key or slug must be provided');\n }\n if (options.id) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/categories/${options.id}`,\n method: 'GET',\n });\n }\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/categories/key=${options.key}`,\n method: 'GET',\n });\n }\n async getCategoryBySlug(options) {\n if (!options.languageCode && !options.languageCodes) {\n throw new CommercetoolsError('Either the `languageCode` or `languageCodes` property must be provided');\n }\n const languageCodes = [];\n if (options.languageCodes) {\n languageCodes.push(...options.languageCodes);\n }\n else if (options.languageCode) {\n languageCodes.push(options.languageCode);\n }\n const data = await this.request({\n ...this.extractCommonRequestOptions({\n ...options,\n params: {\n ...options?.params,\n where: `slug(${languageCodes.map((code) => `${code}=\"${options.slug}\"`).join(' or ')})`,\n },\n }),\n path: `/categories`,\n method: 'GET',\n });\n if (!data.count) {\n throw new CommercetoolsError(`No category found with slug [${options.slug}] and language code [${options.languageCode}]`, { options }, 404);\n }\n return data.results[0];\n }\n queryCategories(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/categories`,\n method: 'GET',\n });\n }\n async getCategoryParents(options) {\n const category = await this.getCategory({\n ...options,\n params: {\n ...options.params,\n expand: 'ancestors[*]',\n },\n });\n const ancestors = category.ancestors.map((ref) => ref.obj);\n ancestors.push({\n ...category,\n ancestors: category.ancestors.map((ancestor) => ({ id: ancestor.id, typeId: ancestor.typeId })),\n });\n return ancestors;\n }\n getProductById(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/products/${options.id}`,\n method: 'GET',\n });\n }\n getProductByKey(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/products/key=${options.key}`,\n method: 'GET',\n });\n }\n getProductProjectionById(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: this.applyStore(`/product-projections/${options.id}`, options.storeKey),\n method: 'GET',\n });\n }\n getProductProjectionByKey(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: this.applyStore(`/product-projections/key=${options.key}`, options.storeKey),\n method: 'GET',\n });\n }\n async getProductProjectionBySlug(options) {\n if (!options.languageCode && !options.languageCodes) {\n throw new CommercetoolsError('Either the `languageCode` or `languageCodes` property must be provided');\n }\n const languageCodes = [];\n if (options.languageCodes) {\n languageCodes.push(...options.languageCodes);\n }\n else if (options.languageCode) {\n languageCodes.push(options.languageCode);\n }\n const data = await this.request({\n ...this.extractCommonRequestOptions({\n ...options,\n params: {\n ...options?.params,\n where: `slug(${languageCodes.map((code) => `${code}=\"${options.slug}\"`).join(' or ')})`,\n },\n }),\n path: `/product-projections`,\n method: 'GET',\n });\n if (!data.count) {\n throw new CommercetoolsError(`No product projection found with slug [${options.slug}] and language code [${options.languageCode}]`, { options }, 404);\n }\n return data.results[0];\n }\n queryProductProjections(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/product-projections`,\n method: 'GET',\n });\n }\n searchProductProjections(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/product-projections/search`,\n method: 'GET',\n });\n }\n getProductSelectionById(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: this.applyStore(`/product-selections/${options.id}`, options.storeKey),\n method: 'GET',\n });\n }\n getProductSelectionByKey(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: this.applyStore(`/product-selections/key=${options.key}`, options.storeKey),\n method: 'GET',\n });\n }\n queryProductSelections(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/product-selections`,\n method: 'GET',\n });\n }\n createProductSelection(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/product-selections`,\n method: 'POST',\n data: options.data,\n });\n }\n updateProductSelectionByKey(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/product-selections/key=${options.key}`,\n method: 'POST',\n data: { version: options.version, actions: options.actions },\n });\n }\n deleteProductSelectionByKey(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/product-selections/key=${options.key}&version=${options.version}`,\n method: 'DELETE',\n });\n }\n queryProductsInStore(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/in-store/key=${options.storeKey}/product-selection-assignments`,\n method: `GET`,\n });\n }\n getCartById(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: this.applyStore(`/carts/${options.id}`, options.storeKey),\n method: 'GET',\n });\n }\n async queryCarts(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: this.applyStore(`/carts`, options?.storeKey),\n method: 'GET',\n });\n }\n async queryMyCarts(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: this.applyStore(`/me/carts`, options.storeKey),\n method: 'GET',\n accessToken: options.accessToken,\n });\n }\n async createCart(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: this.applyStore(`/carts`, options.storeKey),\n method: 'POST',\n data: options.data,\n });\n }\n async updateCartById(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: this.applyStore(`/carts/${options.id}`, options.storeKey),\n method: 'POST',\n data: {\n version: options.version,\n actions: options.actions,\n },\n });\n }\n async getMyActiveCart(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: this.applyStore(`/me/active-cart`, options.storeKey),\n method: 'GET',\n accessToken: options.accessToken,\n });\n }\n async getMyCartById(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: this.applyStore(`/me/carts/${options.cartId}`, options.storeKey),\n method: 'GET',\n accessToken: options.accessToken,\n });\n }\n async createMyCart(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: this.applyStore(`/me/carts`, options.storeKey),\n method: 'POST',\n data: options.data,\n accessToken: options.accessToken,\n });\n }\n async updateMyCart(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: this.applyStore(`/me/carts/${options.cartId}`, options.storeKey),\n method: 'POST',\n data: {\n version: options.cartVersion,\n actions: options.actions,\n },\n accessToken: options.accessToken,\n });\n }\n async deleteMyActiveCart(options) {\n const cart = await this.getMyActiveCart(options);\n return await this.request({\n ...this.extractCommonRequestOptions(options),\n path: this.applyStore(`/me/carts/${cart.id}`, options.storeKey),\n method: 'DELETE',\n params: {\n ...options.params,\n version: cart.version,\n },\n accessToken: options.accessToken,\n });\n }\n async deleteMyCartById(options) {\n const cart = await this.getMyCartById(options);\n return await this.request({\n ...this.extractCommonRequestOptions(options),\n path: this.applyStore(`/me/carts/${options.cartId}`, options.storeKey),\n method: 'DELETE',\n params: {\n ...options.params,\n version: cart.version,\n },\n accessToken: options.accessToken,\n });\n }\n async updateMyActiveCart(options) {\n const cart = await this.getMyActiveCart(options);\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: this.applyStore(`/me/carts/${cart.id}`, options.storeKey),\n method: 'POST',\n data: {\n version: cart.version,\n actions: options.actions,\n },\n accessToken: options.accessToken,\n });\n }\n async createMyOrderFromActiveCart(options) {\n const cart = await this.getMyActiveCart(options);\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: this.applyStore('/me/orders', options.storeKey),\n method: 'POST',\n data: {\n version: cart.version,\n id: cart.id,\n },\n accessToken: options.accessToken,\n });\n }\n async createOrderFromCart(options) {\n const cart = await this.getCartById(options);\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: this.applyStore('/orders', options.storeKey),\n method: 'POST',\n data: {\n version: cart.version,\n id: cart.id,\n },\n });\n }\n async deleteCartById(options) {\n return await this.request({\n ...this.extractCommonRequestOptions(options),\n path: this.applyStore(`/carts/${options.id}`, options.storeKey),\n method: 'DELETE',\n params: {\n ...options.params,\n version: options.version,\n },\n });\n }\n createPayment(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: '/payments',\n method: 'POST',\n data: options.data,\n });\n }\n deletePaymentById(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/payments/${options.id}`,\n method: 'DELETE',\n params: {\n ...options.params,\n version: options.version,\n },\n });\n }\n updatePaymentById(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/payments/${options.id}`,\n method: 'POST',\n data: options.data,\n });\n }\n getPaymentById(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/payments/${options.id}`,\n method: 'GET',\n });\n }\n queryPayments(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: '/payments',\n method: 'GET',\n });\n }\n createMyPayment(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: '/me/payments',\n method: 'POST',\n data: options.data,\n accessToken: options.accessToken,\n });\n }\n updateMyPaymentById(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/me/payments/${options.id}`,\n method: 'POST',\n data: options.data,\n accessToken: options.accessToken,\n });\n }\n getMyPaymentById(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/me/payments/${options.id}`,\n method: 'GET',\n accessToken: options.accessToken,\n });\n }\n queryMyPayments(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: '/me/payments',\n method: 'GET',\n accessToken: options.accessToken,\n });\n }\n deleteMyPaymentById(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/me/payments/${options.id}`,\n method: 'DELETE',\n params: {\n version: options.version,\n },\n accessToken: options.accessToken,\n });\n }\n getMyOrderById(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: this.applyStore(`/me/orders/${options.id}`, options.storeKey),\n method: 'GET',\n accessToken: options.accessToken,\n });\n }\n queryMyOrders(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: this.applyStore(`/me/orders`, options.storeKey),\n method: 'GET',\n accessToken: options.accessToken,\n });\n }\n updateOrderById(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: this.applyStore(`/orders/${options.id}`, options.storeKey),\n method: 'POST',\n data: options.data,\n });\n }\n updateOrderByOrderNumber(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: this.applyStore(`/orders/order-number=${options.orderNumber}`, options.storeKey),\n method: 'POST',\n data: options.data,\n });\n }\n getOrderById(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: this.applyStore(`/orders/${options.id}`, options.storeKey),\n method: 'GET',\n });\n }\n getOrderByOrderNumber(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: this.applyStore(`/orders/order-number=${options.orderNumber}`, options.storeKey),\n method: 'GET',\n });\n }\n deleteOrderById(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: this.applyStore(`/orders/${options.id}`, options.storeKey),\n method: 'DELETE',\n params: {\n ...options.params,\n version: options.version,\n dataErasure: options.dataErasure,\n },\n });\n }\n deleteOrderByOrderNumber(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: this.applyStore(`/orders/order-number=${options.orderNo}`, options.storeKey),\n method: 'DELETE',\n params: {\n ...options.params,\n version: options.version,\n dataErasure: options.dataErasure,\n },\n });\n }\n queryOrders(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: this.applyStore(`/orders`, options.storeKey),\n method: 'GET',\n });\n }\n createProduct(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/products`,\n method: 'POST',\n data: options.data,\n });\n }\n updateProductByKey(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/products/key=${options.key}`,\n method: 'POST',\n data: options.data,\n });\n }\n updateProductById(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/products/${options.id}`,\n method: 'POST',\n data: options.data,\n });\n }\n async deleteProductById(options) {\n let version = options.version;\n if (options.unpublish) {\n const product = await this.unpublishProductById({\n id: options.id,\n version: options.version,\n });\n version = product.version;\n }\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/products/${options.id}`,\n method: 'DELETE',\n params: {\n ...options.params,\n version,\n },\n });\n }\n async deleteProductByKey(options) {\n let version = options.version;\n if (options.unpublish) {\n const product = await this.unpublishProductByKey({\n key: options.key,\n version: options.version,\n });\n version = product.version;\n }\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/products/key=${options.key}`,\n method: 'DELETE',\n params: {\n ...options.params,\n version,\n },\n });\n }\n unpublishProductByKey(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/products/key=${options.key}`,\n method: 'POST',\n params: options.params,\n data: {\n version: options.version,\n actions: [{ action: 'unpublish' }],\n },\n });\n }\n unpublishProductById(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/products/${options.id}`,\n method: 'POST',\n params: options.params,\n data: {\n version: options.version,\n actions: [{ action: 'unpublish' }],\n },\n });\n }\n createCategory(options) {\n return this.request({\n path: `/categories`,\n method: 'POST',\n data: options.data,\n });\n }\n updateCategoryByKey(options) {\n return this.request({\n path: `/categories/key=${options.key}`,\n method: 'POST',\n data: options.data,\n });\n }\n updateCategoryById(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/categories/${options.id}`,\n method: 'POST',\n data: options.data,\n });\n }\n deleteCategoryById(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/categories/${options.id}`,\n method: 'DELETE',\n params: {\n ...options.params,\n version: options.version,\n },\n });\n }\n deleteCategoryByKey(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/categories/key=${options.key}`,\n method: 'DELETE',\n params: {\n ...options.params,\n version: options.version,\n },\n });\n }\n createAccount(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: this.applyStore(`/customers`, options.storeKey),\n method: 'POST',\n data: options.data,\n });\n }\n deleteCustomerById(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: this.applyStore(`/customers/${options.id}`, options.storeKey),\n method: 'DELETE',\n params: {\n ...options.params,\n version: options.version,\n dataErasure: options.dataErasure,\n },\n });\n }\n deleteCustomerByKey(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: this.applyStore(`/customers/key=${options.key}`, options.storeKey),\n method: 'DELETE',\n params: {\n ...options.params,\n version: options.version,\n dataErasure: options.dataErasure,\n },\n });\n }\n createMyAccount(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: this.applyStore(`/me/signup`, options.storeKey),\n method: 'POST',\n data: options.data,\n accessToken: options.accessToken,\n });\n }\n loginMyAccount(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: this.applyStore(`/me/login`, options.storeKey),\n method: 'POST',\n data: options.data,\n accessToken: options.accessToken,\n });\n }\n login(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: this.applyStore(`/login`, options.storeKey),\n method: 'POST',\n data: options.data,\n });\n }\n getMyAccount(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: this.applyStore(`/me`, options.storeKey),\n method: 'GET',\n accessToken: options.accessToken,\n });\n }\n updateMyAccount(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: this.applyStore(`/me`, options.storeKey),\n method: 'POST',\n accessToken: options.accessToken,\n data: options.data,\n });\n }\n changeMyPassword(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: this.applyStore(`/me/password`, options.storeKey),\n method: 'POST',\n accessToken: options.accessToken,\n data: options.data,\n });\n }\n resetMyPassword(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: this.applyStore(`/me/password/reset`, options.storeKey),\n method: 'POST',\n accessToken: options.accessToken,\n data: options.data,\n });\n }\n getPasswordResetToken(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: this.applyStore(`/customers/password-token`, options.storeKey),\n method: 'POST',\n data: options.data,\n });\n }\n getCustomerById(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: this.applyStore(`/customers/${options.id}`, options.storeKey),\n method: 'GET',\n });\n }\n getCustomerByKey(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: this.applyStore(`/customers/key=${options.key}`, options.storeKey),\n method: 'GET',\n });\n }\n getCustomerByPasswordToken(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: this.applyStore(`/customers/password-token=${options.token}`, options.storeKey),\n method: 'GET',\n });\n }\n queryCustomers(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: this.applyStore(`/customers`, options.storeKey),\n method: 'GET',\n });\n }\n updateCustomerById(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/customers/${options.id}`,\n method: 'POST',\n data: options.data,\n });\n }\n updateCustomerByKey(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/customers/key=${options.key}`,\n method: 'POST',\n data: options.data,\n });\n }\n getProductTypeById(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/product-types/${options.id}`,\n method: 'GET',\n });\n }\n getProductTypeByKey(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/product-types/key=${options.key}`,\n method: 'GET',\n });\n }\n queryProductTypes(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/product-types`,\n method: 'GET',\n });\n }\n getTypeById(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/types/${options.id}`,\n method: 'GET',\n });\n }\n getTypeByKey(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/types/key=${options.key}`,\n method: 'GET',\n });\n }\n queryTypes(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/types`,\n method: 'GET',\n });\n }\n getDiscountCodeById(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/discount-codes/${options.id}`,\n method: 'GET',\n });\n }\n getCartDiscountById(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/cart-discounts/${options.id}`,\n method: 'GET',\n });\n }\n getCartDiscountByKey(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/cart-discounts/key=${options.key}`,\n method: 'GET',\n });\n }\n queryCartDiscounts(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/cart-discounts`,\n method: 'GET',\n });\n }\n getCustomObject(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/custom-objects/${options.container}/${options.key}`,\n method: 'GET',\n });\n }\n getCustomObjectById(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/custom-objects/${options.id}`,\n method: 'GET',\n });\n }\n saveCustomObject(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/custom-objects`,\n method: 'POST',\n data: options.data,\n });\n }\n deleteCustomObject(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/custom-objects/${options.container}/${options.key}`,\n method: 'DELETE',\n });\n }\n getShippingMethodById(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/shipping-methods/${options.id}`,\n method: 'GET',\n });\n }\n getShippingMethodByKey(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/shipping-methods/key=${options.key}`,\n method: 'GET',\n });\n }\n getShippingMethodsForLocation(options) {\n return this.request({\n ...this.extractCommonRequestOptions({\n ...options,\n params: {\n ...options?.params,\n country: options.country,\n state: options.state,\n currency: options.currency,\n },\n }),\n path: `/shipping-methods/matching-location`,\n method: 'GET',\n accessToken: options.accessToken,\n });\n }\n getShippingMethodsForCart(options) {\n return this.request({\n ...this.extractCommonRequestOptions({\n ...options,\n params: {\n ...options?.params,\n cartId: options.cartId,\n },\n }),\n path: `/shipping-methods/matching-cart`,\n method: 'GET',\n accessToken: options.accessToken,\n });\n }\n queryShippingMethods(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/shipping-methods`,\n method: 'GET',\n });\n }\n getCustomerGroupById(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/customer-groups/${options.id}`,\n method: 'GET',\n });\n }\n getCustomerGroupByKey(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/customer-groups/key=${options.key}`,\n method: 'GET',\n });\n }\n queryCustomerGroups(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/customer-groups`,\n method: 'GET',\n });\n }\n createCustomerGroup(options) {\n return this.request({\n path: `/customer-groups`,\n method: 'POST',\n data: options.data,\n });\n }\n updateCustomerGroupByKey(options) {\n return this.request({\n path: `/customer-groups/key=${options.key}`,\n method: 'POST',\n data: options.data,\n });\n }\n updateCustomerGroupById(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/customer-groups/${options.id}`,\n method: 'POST',\n data: options.data,\n });\n }\n deleteCustomerGroupById(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/customer-groups/${options.id}`,\n method: 'DELETE',\n params: {\n ...options.params,\n version: options.version,\n },\n });\n }\n deleteCustomerGroupByKey(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/customer-groups/key=${options.key}`,\n method: 'DELETE',\n params: {\n ...options.params,\n version: options.version,\n },\n });\n }\n getStateById(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/states/${options.id}`,\n method: 'GET',\n });\n }\n getStateByKey(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/states/key=${options.key}`,\n method: 'GET',\n });\n }\n queryStates(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: '/states',\n method: 'GET',\n });\n }\n getStandalonePriceById(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/standalone-prices/${options.id}`,\n method: 'GET',\n });\n }\n getStandalonePriceByKey(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/standalone-prices/key=${options.key}`,\n method: 'GET',\n });\n }\n queryStandalonePrices(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: '/standalone-prices',\n method: 'GET',\n });\n }\n createStandalonePrice(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: '/standalone-prices',\n method: 'POST',\n data: options.data,\n });\n }\n updateStandalonePriceById(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/standalone-prices/${options.id}`,\n method: 'POST',\n data: options.data,\n });\n }\n updateStandalonePriceByKey(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/standalone-prices/key=${options.key}`,\n method: 'POST',\n data: options.data,\n });\n }\n deleteStandalonePriceById(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/standalone-prices/${options.id}`,\n method: 'DELETE',\n params: {\n ...options.params,\n version: options.version,\n },\n });\n }\n deleteStandalonePriceByKey(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/standalone-prices/key=${options.key}`,\n method: 'DELETE',\n params: {\n ...options.params,\n version: options.version,\n },\n });\n }\n graphql(options) {\n return this.request({\n ...this.extractCommonRequestOptions(options),\n path: `/graphql`,\n method: 'POST',\n data: options.data,\n accessToken: options.accessToken,\n });\n }\n async request(options) {\n const requestOptions = await this.getRequestOptions(options);\n return await this.requestExecutor(requestOptions);\n }\n async getRequestOptions(options) {\n let params;\n let accessToken = options.accessToken;\n const url = `${this.endpoints.api}/${this.config.projectKey}${options.path}`;\n if (!accessToken) {\n const grant = await this.auth.getClientGrant();\n accessToken = grant.accessToken;\n }\n const headers = {\n ...options.headers,\n Authorization: `Bearer ${accessToken}`,\n };\n if (typeof options.correlationId === 'string' && options.correlationId !== '') {\n headers['X-Correlation-ID'] = options.correlationId;\n delete options.correlationId;\n }\n if (options.params && Object.keys(options.params).length) {\n params = options.params;\n }\n return {\n method: options.method,\n data: options.data,\n url,\n headers,\n params,\n };\n }\n extractCommonRequestOptions(options) {\n if (!options) {\n return {};\n }\n return {\n correlationId: options.correlationId,\n params: options.params,\n retry: options.retry,\n };\n }\n applyStore(path, storeKey) {\n if (typeof storeKey === 'string' && storeKey !== '') {\n return `/in-store/key=${storeKey}${path}`;\n }\n else if (this.config.storeKey) {\n return `/in-store/key=${this.config.storeKey}${path}`;\n }\n return path;\n }\n static validateConfig(config) {\n const errors = [];\n if (!config) {\n errors.push('The config object missing or empty');\n }\n else {\n if (!config.projectKey) {\n errors.push('The `projectKey` property is empty');\n }\n else if (typeof config.projectKey !== 'string') {\n errors.push('The `projectKey` property must be a string');\n }\n if (!config.clientId) {\n errors.push('The `clientId` property is empty');\n }\n else if (typeof config.clientId !== 'string') {\n errors.push('The `clientId` property must be a string');\n }\n if (!config.clientSecret) {\n errors.push('The `clientSecret` property is empty');\n }\n else if (typeof config.clientSecret !== 'string') {\n errors.push('The `clientSecret` property must be a string');\n }\n if (!Array.isArray(config.clientScopes)) {\n errors.push('The `clientScopes` property must be an array');\n }\n else if (config.clientScopes.length === 0) {\n errors.push('The `clientScopes` property must have at least 1 scope defined');\n }\n }\n if (errors.length) {\n throw new CommercetoolsError('The configuration object passed in to the `CommercetoolsApi` constructor is not valid: \\n' +\n errors.map((error) => `• ${error}`).join('\\n'));\n }\n }\n}\n//# sourceMappingURL=CommercetoolsApi.js.map"],"names":["exports","Status","status_1","Object","defineProperty","enumerable","get","value","reason","status","keys","find","key","replace","ErrorStatus","RedirectionStatus","SuccessStatus","InformationStatus","Continue","SwitchingProtocols","Processing","EarlyHints","Ok","Created","Accepted","NonAuthoritativeInformation","NoContent","ResetContent","PartialContent","MultiStatus","AlreadyReported","ImUsed","MultipleChoices","MovedPermanently","Found","SeeOther","NotModified","TemporaryRedirect","PermanentRedirect","BadRequest","Unauthorized","PaymentRequired","Forbidden","NotFound","MethodNotAllowed","NotAcceptable","ProxyAuthenticationRequired","RequestTimeout","Conflict","Gone","LengthRequired","PreconditionFailed","PayloadTooLarge","UriTooLong","UnsupportedMediaType","RequestedRangeNotSatisfiable","ExpectationFailed","ImATeapot","MisdirectedRequest","UnprocessableEntity","Locked","FailedDependency","TooEarly","UpgradeRequired","PreconditionRequired","TooManyRequests","RequestHeaderFieldsTooLarge","UnavailableForLegalReasons","InternalServerError","NotImplemented","BadGateway","ServiceUnavailable","GatewayTimeout","HttpVersionNotSupported","VariantAlsoNegotiates","InsufficientStorage","LoopDetected","NotExtended","NetworkAuthenticationRequired","assign","serializer","replacer","cycleReplacer","stack","slice","indexOf","join","length","thisPos","this","splice","push","Infinity","call","module","obj","spaces","JSON","stringify","getSerialize","toS","prototype","toString","isArray","Array","xs","forEach","fn","i","objectKeys","res","hasOwnProperty","copy","src","dst","Date","getTime","RegExp","isError","message","isBoolean","isNumber","isString","create","getPrototypeOf","constructor","proto","__proto__","T","walk","root","cb","immutable","path","parents","alive","walker","node_","node","modifiers","keepGoing","state","concat","parent","isRoot","level","circular","update","x","stopHere","delete","remove","before","f","after","pre","post","stop","block","updateState","isLeaf","notLeaf","notRoot","ret","undefined","child","isLast","isFirst","pop","Traverse","traverse","ps","has","set","map","reduce","init","skip","arguments","acc","paths","nodes","clone","args","t","apply","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","__webpack_modules__","n","getter","__esModule","d","a","definition","o","prop","bind","thisArg","kindOf","cache","thing","str","toLowerCase","kindOfTest","type","typeOfTest","isUndefined","isArrayBuffer","isFunction","isObject","isPlainObject","val","Symbol","toStringTag","iterator","isDate","isFile","isBlob","isFileList","isURLSearchParams","allOwnKeys","l","getOwnPropertyNames","len","findKey","_key","_global","globalThis","self","window","global","isContextDefined","context","isTypedArray","TypedArray","Uint8Array","isHTMLForm","isRegExp","reduceDescriptors","reducer","descriptors","getOwnPropertyDescriptors","reducedDescriptors","descriptor","name","defineProperties","ALPHA","DIGIT","ALPHABET","ALPHA_DIGIT","toUpperCase","isBuffer","isFormData","pattern","FormData","isArrayBufferView","result","ArrayBuffer","isView","buffer","isStream","pipe","merge","caseless","assignValue","targetKey","extend","b","trim","stripBOM","content","charCodeAt","inherits","superConstructor","props","toFlatObject","sourceObj","destObj","filter","propFilter","merged","endsWith","searchString","position","String","lastIndex","toArray","arr","forEachEntry","next","done","pair","matchAll","regExp","matches","exec","hasOwnProp","freezeMethods","writable","Error","toObjectSet","arrayOrString","delimiter","define","split","toCamelCase","m","p1","p2","noop","toFiniteNumber","defaultValue","Number","isFinite","generateString","size","alphabet","Math","random","isSpecCompliantForm","append","toJSONObject","visit","source","target","reducedValue","AxiosError","code","config","request","response","captureStackTrace","utils","toJSON","description","number","fileName","lineNumber","columnNumber","from","error","customProps","axiosError","cause","isVisitable","removeBrackets","renderKey","dots","token","predicates","test","formData","options","TypeError","metaTokens","indexes","option","visitor","defaultVisitor","useBlob","Blob","convertValue","toISOString","Buffer","some","isFlatArray","el","index","exposedHelpers","build","encode","charMap","encodeURIComponent","match","AxiosURLSearchParams","params","_pairs","encoder","_encode","buildURL","url","serializeFn","serialize","serializedParams","hashmarkIndex","handlers","use","fulfilled","rejected","synchronous","runWhen","eject","id","clear","h","silentJSONParsing","forcedJSONParsing","clarifyTimeoutError","isBrowser","classes","URLSearchParams","isStandardBrowserEnv","product","navigator","document","isStandardBrowserWebWorkerEnv","WorkerGlobalScope","importScripts","protocols","buildPath","isNumericKey","arrayToObject","entries","parsePropPath","DEFAULT_CONTENT_TYPE","defaults","transitional","adapter","transformRequest","data","headers","contentType","getContentType","hasJSONContentType","isObjectPayload","setContentType","helpers","toURLEncodedForm","formSerializer","_FormData","env","rawValue","parser","parse","e","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","matcher","deleted","deleteHeader","normalize","format","normalized","w","char","formatHeader","targets","asStrings","static","first","computed","accessors","defineAccessor","accessorName","methodName","arg1","arg2","arg3","configurable","buildAccessors","accessor","transformData","fns","isCancel","__CANCEL__","CanceledError","write","expires","domain","secure","cookie","toGMTString","read","decodeURIComponent","now","buildFullPath","baseURL","requestedURL","relativeURL","combineURLs","msie","userAgent","urlParsingNode","createElement","originURL","resolveURL","href","setAttribute","protocol","host","search","hash","hostname","port","pathname","charAt","location","requestURL","progressEventReducer","listener","isDownloadStream","bytesNotified","_speedometer","samplesCount","min","bytes","timestamps","firstSampleTS","head","tail","chunkLength","startedAt","bytesCount","passed","round","loaded","total","lengthComputable","progressBytes","rate","progress","estimated","event","knownAdapters","http","xhr","XMLHttpRequest","Promise","resolve","reject","requestData","requestHeaders","onCanceled","cancelToken","unsubscribe","signal","removeEventListener","auth","username","password","unescape","btoa","fullPath","onloadend","responseHeaders","getAllResponseHeaders","floor","settle","err","responseText","statusText","open","paramsSerializer","onreadystatechange","readyState","responseURL","setTimeout","onabort","onerror","ontimeout","timeoutErrorMessage","xsrfValue","withCredentials","isURLSameOrigin","cookies","setRequestHeader","onDownloadProgress","addEventListener","onUploadProgress","upload","cancel","abort","subscribe","aborted","parseProtocol","send","throwIfCancellationRequested","throwIfRequested","dispatchRequest","adapters","nameOrAdapter","then","headersToObject","mergeConfig","config1","config2","getMergedValue","mergeDeepProperties","valueFromConfig2","defaultToConfig2","mergeDirectKeys","mergeMap","timeoutMessage","decompress","beforeRedirect","transport","httpAgent","httpsAgent","socketPath","responseEncoding","configValue","validators","deprecatedWarnings","validator","version","formatMessage","opt","desc","opts","console","warn","assertOptions","schema","allowUnknown","Axios","instanceConfig","interceptors","configOrUrl","contextHeaders","boolean","function","requestInterceptorChain","synchronousRequestInterceptors","interceptor","unshift","responseInterceptorChain","promise","chain","newConfig","onFulfilled","onRejected","getUri","generateHTTPMethod","isForm","CancelToken","executor","resolvePromise","_listeners","onfulfilled","_resolve","c","HttpStatusCode","UseProxy","Unused","RangeNotSatisfiable","axios","createInstance","defaultConfig","instance","VERSION","toFormData","Cancel","all","promises","spread","callback","isAxiosError","payload","formToJSON","default","extractAxiosHeaders","extractedHeaders","jsonHeaders","lcName","convertAxiosError","stats","convertAxiosResponse","MAX_ITEMS_PER_QUERY","DEFAULT_RETRY_CONFIG","maxRetries","delayMs","jitter","RETRYABLE_STATUS_CODES","createAxiosInstance","agent","calculateDelay","retryCount","retryConfig","exponentialDelay","increasedDelay","formatAsKey","input","output","CommercetoolsError","getAttributeValue","attributes","attribute","plainClone","recursiveClone","SENSITIVE_PROPERTY_NAMES","SENSITIVE_HEADER_NAMES","DEFAULT_MASKING_STRING","maskSensitiveInput","maskSensitiveData","maskSensitiveHeaders","propertyNames","mask","mutatedData","includes","async","retryOnConflict","maxAttempts","attemptCount","delay","executeFn","isCommercetoolsError","buildUserAgent","systemIdentifier","super","setPrototypeOf","parseRequestData","searchParams","paramsObj","values","getAll","Region","REGION_URLS","EUROPE_GCP","api","EUROPE_AWS","NORTH_AMERICA_GCP","NORTH_AMERICA_AWS","AUSTRALIA_GCP","INVALID_SCOPES","scopeArrayToRequestString","scopes","projectKey","scope","CommercetoolsGrant","accessToken","expiresIn","expiresAt","access_token","expires_in","anonymousId","extractKeyFromScope","customerId","refresh_token","refreshToken","expiresWithin","refreshIfWithinSecs","cutoff","parts","item","part","GrantType","isRetryableError","transformError","lastError","fromAxiosError","getRequestExecutor","axiosInstance","instanceHeaders","requestConfig","retry","onBeforeRequest","onAfterResponse","timeoutMs","additionalHeaders","headerName","startTime","endTime","totalDurationMs","customRequestConfig","accumulativeDurationMs","durationMs","retries","convertedError","CommercetoolsAuthApi","endpoints","region","requestExecutor","grant_type","CLIENT_CREDENTIALS","REFRESH_TOKEN","applyStore","storeKey","PASSWORD","tokenValue","token_type_hint","tokenType","errors","allSettled","revokeToken","settlement","postOptions","anonymous_id","body","getRequestOptions","Authorization","clientId","clientSecret","correlationId","configDefaults","CommercetoolsAuth","grantPromise","clientScopes","grant","getClientGrant","finally","refreshGrant","customerScopes","login","getAnonymousGrant","logout","CommercetoolsApi","validateConfig","getStoreById","extractCommonRequestOptions","getStoreByKey","queryStores","createStore","updateStoreById","updateStoreByKey","deleteStoreById","deleteStoreByKey","getCategoryById","getCategoryByKey","queryChannels","getChannelById","where","limit","count","results","getCategory","languageCode","languageCodes","slug","queryCategories","category","expand","ancestors","ref","ancestor","typeId","getProductById","getProductByKey","getProductProjectionById","getProductProjectionByKey","queryProductProjections","searchProductProjections","getProductSelectionById","getProductSelectionByKey","queryProductSelections","createProductSelection","updateProductSelectionByKey","actions","deleteProductSelectionByKey","queryProductsInStore","getCartById","cartId","cartVersion","cart","getMyActiveCart","getMyCartById","createPayment","deletePaymentById","updatePaymentById","getPaymentById","queryPayments","createMyPayment","updateMyPaymentById","getMyPaymentById","queryMyPayments","deleteMyPaymentById","getMyOrderById","queryMyOrders","updateOrderById","updateOrderByOrderNumber","orderNumber","getOrderById","getOrderByOrderNumber","deleteOrderById","dataErasure","deleteOrderByOrderNumber","orderNo","queryOrders","createProduct","updateProductByKey","updateProductById","unpublish","unpublishProductById","unpublishProductByKey","action","createCategory","updateCategoryByKey","updateCategoryById","deleteCategoryById","deleteCategoryByKey","createAccount","deleteCustomerById","deleteCustomerByKey","createMyAccount","loginMyAccount","getMyAccount","updateMyAccount","changeMyPassword","resetMyPassword","getPasswordResetToken","getCustomerById","getCustomerByKey","getCustomerByPasswordToken","queryCustomers","updateCustomerById","updateCustomerByKey","getProductTypeById","getProductTypeByKey","queryProductTypes","getTypeById","getTypeByKey","queryTypes","getDiscountCodeById","getCartDiscountById","getCartDiscountByKey","queryCartDiscounts","getCustomObject","container","getCustomObjectById","saveCustomObject","deleteCustomObject","getShippingMethodById","getShippingMethodByKey","getShippingMethodsForLocation","country","currency","getShippingMethodsForCart","queryShippingMethods","getCustomerGroupById","getCustomerGroupByKey","queryCustomerGroups","createCustomerGroup","updateCustomerGroupByKey","updateCustomerGroupById","deleteCustomerGroupById","deleteCustomerGroupByKey","getStateById","getStateByKey","queryStates","getStandalonePriceById","getStandalonePriceByKey","queryStandalonePrices","createStandalonePrice","updateStandalonePriceById","updateStandalonePriceByKey","deleteStandalonePriceById","deleteStandalonePriceByKey","graphql","requestOptions"],"sourceRoot":""}