snaptrade-typescript-sdk 9.0.128 → 9.0.130

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.
package/README.md CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  Connect brokerage accounts to your app for live positions and trading
8
8
 
9
- [![npm](https://img.shields.io/badge/npm-v9.0.128-blue)](https://www.npmjs.com/package/snaptrade-typescript-sdk/v/9.0.128)
9
+ [![npm](https://img.shields.io/badge/npm-v9.0.130-blue)](https://www.npmjs.com/package/snaptrade-typescript-sdk/v/9.0.130)
10
10
  [![More Info](https://img.shields.io/badge/More%20Info-Click%20Here-orange)](https://snaptrade.com/)
11
11
 
12
12
  </div>
@@ -377,7 +377,11 @@ const getUserAccountDetailsResponse =
377
377
 
378
378
  ### `snaptrade.accountInformation.getUserAccountOrderDetail`<a id="snaptradeaccountinformationgetuseraccountorderdetail"></a>
379
379
 
380
- Returns the detail of a single order in the specified account. This endpoint is always realtime and does not rely on cached data.
380
+ Returns the detail of a single order in the specified account.
381
+
382
+ This endpoint is always realtime and does not rely on cached data.
383
+
384
+ This endpoint only returns orders placed through SnapTrade. In other words, orders placed outside of the SnapTrade network are not returned by this endpoint.
381
385
 
382
386
 
383
387
  #### 🛠️ Usage<a id="🛠️-usage"></a>
@@ -1028,7 +1032,7 @@ const listBrokerageAuthorizationsResponse =
1028
1032
  Trigger a holdings update for all accounts under this connection. Updates will be queued asynchronously. [`ACCOUNT_HOLDINGS_UPDATED` webhook](/docs/webhooks#webhooks-account_holdings_updated) will be sent once the sync completes for each account under the connection.
1029
1033
  This endpoint will also trigger a transaction sync for the past day if one has not yet occurred.
1030
1034
 
1031
- **Please contact support before use. Because of the cost of refreshing a connection, each call to this endpoint incurs a additional charge of $0.05**
1035
+ **Because of the cost of refreshing a connection, each call to this endpoint incurs a additional charge based on your [Pricing Plan](https://snaptrade.com/pricing)**
1032
1036
 
1033
1037
 
1034
1038
  #### 🛠️ Usage<a id="🛠️-usage"></a>
@@ -1797,7 +1801,14 @@ The price at which a stop order is triggered for `Stop` and `StopLimit` orders.
1797
1801
 
1798
1802
  ### `snaptrade.trading.getUserAccountQuotes`<a id="snaptradetradinggetuseraccountquotes"></a>
1799
1803
 
1800
- Returns quotes from the brokerage for the specified symbols and account. The quotes returned can be delayed depending on the brokerage the account belongs to. It is highly recommended that you use your own market data provider for real-time quotes instead of relying on this endpoint. This endpoint does not work for options quotes.
1804
+ Returns quotes from the brokerage for the specified symbols and account.
1805
+
1806
+ The quotes returned can be delayed depending on the brokerage the account belongs to. It is highly recommended that you use your own market data provider for real-time quotes instead of relying on this endpoint.
1807
+
1808
+ This endpoint does not work for options quotes.
1809
+
1810
+ This endpoint is disabled for free plans by default. Please contact support to enable this endpoint if needed.
1811
+
1801
1812
 
1802
1813
  #### 🛠️ Usage<a id="🛠️-usage"></a>
1803
1814
 
@@ -62,7 +62,7 @@ export declare const AccountInformationApiAxiosParamCreator: (configuration?: Co
62
62
  */
63
63
  getUserAccountDetails: (userId: string, userSecret: string, accountId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
64
64
  /**
65
- * Returns the detail of a single order in the specified account. This endpoint is always realtime and does not rely on cached data.
65
+ * Returns the detail of a single order in the specified account. This endpoint is always realtime and does not rely on cached data. This endpoint only returns orders placed through SnapTrade. In other words, orders placed outside of the SnapTrade network are not returned by this endpoint.
66
66
  * @summary Get account order detail
67
67
  * @param {string} userId
68
68
  * @param {string} userSecret
@@ -184,7 +184,7 @@ export declare const AccountInformationApiFp: (configuration?: Configuration) =>
184
184
  */
185
185
  getUserAccountDetails(requestParameters: AccountInformationApiGetUserAccountDetailsRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Account>>;
186
186
  /**
187
- * Returns the detail of a single order in the specified account. This endpoint is always realtime and does not rely on cached data.
187
+ * Returns the detail of a single order in the specified account. This endpoint is always realtime and does not rely on cached data. This endpoint only returns orders placed through SnapTrade. In other words, orders placed outside of the SnapTrade network are not returned by this endpoint.
188
188
  * @summary Get account order detail
189
189
  * @param {AccountInformationApiGetUserAccountOrderDetailRequest} requestParameters Request parameters.
190
190
  * @param {*} [options] Override http request option.
@@ -287,7 +287,7 @@ export declare const AccountInformationApiFactory: (configuration?: Configuratio
287
287
  */
288
288
  getUserAccountDetails(requestParameters: AccountInformationApiGetUserAccountDetailsRequest, options?: AxiosRequestConfig): AxiosPromise<Account>;
289
289
  /**
290
- * Returns the detail of a single order in the specified account. This endpoint is always realtime and does not rely on cached data.
290
+ * Returns the detail of a single order in the specified account. This endpoint is always realtime and does not rely on cached data. This endpoint only returns orders placed through SnapTrade. In other words, orders placed outside of the SnapTrade network are not returned by this endpoint.
291
291
  * @summary Get account order detail
292
292
  * @param {AccountInformationApiGetUserAccountOrderDetailRequest} requestParameters Request parameters.
293
293
  * @param {*} [options] Override http request option.
@@ -744,7 +744,7 @@ export declare class AccountInformationApiGenerated extends BaseAPI {
744
744
  */
745
745
  getUserAccountDetails(requestParameters: AccountInformationApiGetUserAccountDetailsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Account, any>>;
746
746
  /**
747
- * Returns the detail of a single order in the specified account. This endpoint is always realtime and does not rely on cached data.
747
+ * Returns the detail of a single order in the specified account. This endpoint is always realtime and does not rely on cached data. This endpoint only returns orders placed through SnapTrade. In other words, orders placed outside of the SnapTrade network are not returned by this endpoint.
748
748
  * @summary Get account order detail
749
749
  * @param {AccountInformationApiGetUserAccountOrderDetailRequest} requestParameters Request parameters.
750
750
  * @param {*} [options] Override http request option.
@@ -281,7 +281,7 @@ const AccountInformationApiAxiosParamCreator = function (configuration) {
281
281
  };
282
282
  }),
283
283
  /**
284
- * Returns the detail of a single order in the specified account. This endpoint is always realtime and does not rely on cached data.
284
+ * Returns the detail of a single order in the specified account. This endpoint is always realtime and does not rely on cached data. This endpoint only returns orders placed through SnapTrade. In other words, orders placed outside of the SnapTrade network are not returned by this endpoint.
285
285
  * @summary Get account order detail
286
286
  * @param {string} userId
287
287
  * @param {string} userSecret
@@ -796,7 +796,7 @@ const AccountInformationApiFp = function (configuration) {
796
796
  });
797
797
  },
798
798
  /**
799
- * Returns the detail of a single order in the specified account. This endpoint is always realtime and does not rely on cached data.
799
+ * Returns the detail of a single order in the specified account. This endpoint is always realtime and does not rely on cached data. This endpoint only returns orders placed through SnapTrade. In other words, orders placed outside of the SnapTrade network are not returned by this endpoint.
800
800
  * @summary Get account order detail
801
801
  * @param {AccountInformationApiGetUserAccountOrderDetailRequest} requestParameters Request parameters.
802
802
  * @param {*} [options] Override http request option.
@@ -951,7 +951,7 @@ const AccountInformationApiFactory = function (configuration, basePath, axios) {
951
951
  return localVarFp.getUserAccountDetails(requestParameters, options).then((request) => request(axios, basePath));
952
952
  },
953
953
  /**
954
- * Returns the detail of a single order in the specified account. This endpoint is always realtime and does not rely on cached data.
954
+ * Returns the detail of a single order in the specified account. This endpoint is always realtime and does not rely on cached data. This endpoint only returns orders placed through SnapTrade. In other words, orders placed outside of the SnapTrade network are not returned by this endpoint.
955
955
  * @summary Get account order detail
956
956
  * @param {AccountInformationApiGetUserAccountOrderDetailRequest} requestParameters Request parameters.
957
957
  * @param {*} [options] Override http request option.
@@ -1086,7 +1086,7 @@ class AccountInformationApiGenerated extends base_1.BaseAPI {
1086
1086
  return (0, exports.AccountInformationApiFp)(this.configuration).getUserAccountDetails(requestParameters, options).then((request) => request(this.axios, this.basePath));
1087
1087
  }
1088
1088
  /**
1089
- * Returns the detail of a single order in the specified account. This endpoint is always realtime and does not rely on cached data.
1089
+ * Returns the detail of a single order in the specified account. This endpoint is always realtime and does not rely on cached data. This endpoint only returns orders placed through SnapTrade. In other words, orders placed outside of the SnapTrade network are not returned by this endpoint.
1090
1090
  * @summary Get account order detail
1091
1091
  * @param {AccountInformationApiGetUserAccountOrderDetailRequest} requestParameters Request parameters.
1092
1092
  * @param {*} [options] Override http request option.
@@ -41,7 +41,7 @@ export declare const ConnectionsApiAxiosParamCreator: (configuration?: Configura
41
41
  */
42
42
  listBrokerageAuthorizations: (userId: string, userSecret: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
43
43
  /**
44
- * Trigger a holdings update for all accounts under this connection. Updates will be queued asynchronously. [`ACCOUNT_HOLDINGS_UPDATED` webhook](/docs/webhooks#webhooks-account_holdings_updated) will be sent once the sync completes for each account under the connection. This endpoint will also trigger a transaction sync for the past day if one has not yet occurred. **Please contact support before use. Because of the cost of refreshing a connection, each call to this endpoint incurs a additional charge of $0.05**
44
+ * Trigger a holdings update for all accounts under this connection. Updates will be queued asynchronously. [`ACCOUNT_HOLDINGS_UPDATED` webhook](/docs/webhooks#webhooks-account_holdings_updated) will be sent once the sync completes for each account under the connection. This endpoint will also trigger a transaction sync for the past day if one has not yet occurred. **Because of the cost of refreshing a connection, each call to this endpoint incurs a additional charge based on your [Pricing Plan](https://snaptrade.com/pricing)**
45
45
  * @summary Refresh holdings for a connection
46
46
  * @param {string} authorizationId
47
47
  * @param {string} userId
@@ -111,7 +111,7 @@ export declare const ConnectionsApiFp: (configuration?: Configuration) => {
111
111
  */
112
112
  listBrokerageAuthorizations(requestParameters: ConnectionsApiListBrokerageAuthorizationsRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BrokerageAuthorization>>>;
113
113
  /**
114
- * Trigger a holdings update for all accounts under this connection. Updates will be queued asynchronously. [`ACCOUNT_HOLDINGS_UPDATED` webhook](/docs/webhooks#webhooks-account_holdings_updated) will be sent once the sync completes for each account under the connection. This endpoint will also trigger a transaction sync for the past day if one has not yet occurred. **Please contact support before use. Because of the cost of refreshing a connection, each call to this endpoint incurs a additional charge of $0.05**
114
+ * Trigger a holdings update for all accounts under this connection. Updates will be queued asynchronously. [`ACCOUNT_HOLDINGS_UPDATED` webhook](/docs/webhooks#webhooks-account_holdings_updated) will be sent once the sync completes for each account under the connection. This endpoint will also trigger a transaction sync for the past day if one has not yet occurred. **Because of the cost of refreshing a connection, each call to this endpoint incurs a additional charge based on your [Pricing Plan](https://snaptrade.com/pricing)**
115
115
  * @summary Refresh holdings for a connection
116
116
  * @param {ConnectionsApiRefreshBrokerageAuthorizationRequest} requestParameters Request parameters.
117
117
  * @param {*} [options] Override http request option.
@@ -173,7 +173,7 @@ export declare const ConnectionsApiFactory: (configuration?: Configuration, base
173
173
  */
174
174
  listBrokerageAuthorizations(requestParameters: ConnectionsApiListBrokerageAuthorizationsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<BrokerageAuthorization>>;
175
175
  /**
176
- * Trigger a holdings update for all accounts under this connection. Updates will be queued asynchronously. [`ACCOUNT_HOLDINGS_UPDATED` webhook](/docs/webhooks#webhooks-account_holdings_updated) will be sent once the sync completes for each account under the connection. This endpoint will also trigger a transaction sync for the past day if one has not yet occurred. **Please contact support before use. Because of the cost of refreshing a connection, each call to this endpoint incurs a additional charge of $0.05**
176
+ * Trigger a holdings update for all accounts under this connection. Updates will be queued asynchronously. [`ACCOUNT_HOLDINGS_UPDATED` webhook](/docs/webhooks#webhooks-account_holdings_updated) will be sent once the sync completes for each account under the connection. This endpoint will also trigger a transaction sync for the past day if one has not yet occurred. **Because of the cost of refreshing a connection, each call to this endpoint incurs a additional charge based on your [Pricing Plan](https://snaptrade.com/pricing)**
177
177
  * @summary Refresh holdings for a connection
178
178
  * @param {ConnectionsApiRefreshBrokerageAuthorizationRequest} requestParameters Request parameters.
179
179
  * @param {*} [options] Override http request option.
@@ -409,7 +409,7 @@ export declare class ConnectionsApiGenerated extends BaseAPI {
409
409
  */
410
410
  listBrokerageAuthorizations(requestParameters: ConnectionsApiListBrokerageAuthorizationsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<BrokerageAuthorization[], any>>;
411
411
  /**
412
- * Trigger a holdings update for all accounts under this connection. Updates will be queued asynchronously. [`ACCOUNT_HOLDINGS_UPDATED` webhook](/docs/webhooks#webhooks-account_holdings_updated) will be sent once the sync completes for each account under the connection. This endpoint will also trigger a transaction sync for the past day if one has not yet occurred. **Please contact support before use. Because of the cost of refreshing a connection, each call to this endpoint incurs a additional charge of $0.05**
412
+ * Trigger a holdings update for all accounts under this connection. Updates will be queued asynchronously. [`ACCOUNT_HOLDINGS_UPDATED` webhook](/docs/webhooks#webhooks-account_holdings_updated) will be sent once the sync completes for each account under the connection. This endpoint will also trigger a transaction sync for the past day if one has not yet occurred. **Because of the cost of refreshing a connection, each call to this endpoint incurs a additional charge based on your [Pricing Plan](https://snaptrade.com/pricing)**
413
413
  * @summary Refresh holdings for a connection
414
414
  * @param {ConnectionsApiRefreshBrokerageAuthorizationRequest} requestParameters Request parameters.
415
415
  * @param {*} [options] Override http request option.
@@ -197,7 +197,7 @@ const ConnectionsApiAxiosParamCreator = function (configuration) {
197
197
  };
198
198
  }),
199
199
  /**
200
- * Trigger a holdings update for all accounts under this connection. Updates will be queued asynchronously. [`ACCOUNT_HOLDINGS_UPDATED` webhook](/docs/webhooks#webhooks-account_holdings_updated) will be sent once the sync completes for each account under the connection. This endpoint will also trigger a transaction sync for the past day if one has not yet occurred. **Please contact support before use. Because of the cost of refreshing a connection, each call to this endpoint incurs a additional charge of $0.05**
200
+ * Trigger a holdings update for all accounts under this connection. Updates will be queued asynchronously. [`ACCOUNT_HOLDINGS_UPDATED` webhook](/docs/webhooks#webhooks-account_holdings_updated) will be sent once the sync completes for each account under the connection. This endpoint will also trigger a transaction sync for the past day if one has not yet occurred. **Because of the cost of refreshing a connection, each call to this endpoint incurs a additional charge based on your [Pricing Plan](https://snaptrade.com/pricing)**
201
201
  * @summary Refresh holdings for a connection
202
202
  * @param {string} authorizationId
203
203
  * @param {string} userId
@@ -464,7 +464,7 @@ const ConnectionsApiFp = function (configuration) {
464
464
  });
465
465
  },
466
466
  /**
467
- * Trigger a holdings update for all accounts under this connection. Updates will be queued asynchronously. [`ACCOUNT_HOLDINGS_UPDATED` webhook](/docs/webhooks#webhooks-account_holdings_updated) will be sent once the sync completes for each account under the connection. This endpoint will also trigger a transaction sync for the past day if one has not yet occurred. **Please contact support before use. Because of the cost of refreshing a connection, each call to this endpoint incurs a additional charge of $0.05**
467
+ * Trigger a holdings update for all accounts under this connection. Updates will be queued asynchronously. [`ACCOUNT_HOLDINGS_UPDATED` webhook](/docs/webhooks#webhooks-account_holdings_updated) will be sent once the sync completes for each account under the connection. This endpoint will also trigger a transaction sync for the past day if one has not yet occurred. **Because of the cost of refreshing a connection, each call to this endpoint incurs a additional charge based on your [Pricing Plan](https://snaptrade.com/pricing)**
468
468
  * @summary Refresh holdings for a connection
469
469
  * @param {ConnectionsApiRefreshBrokerageAuthorizationRequest} requestParameters Request parameters.
470
470
  * @param {*} [options] Override http request option.
@@ -556,7 +556,7 @@ const ConnectionsApiFactory = function (configuration, basePath, axios) {
556
556
  return localVarFp.listBrokerageAuthorizations(requestParameters, options).then((request) => request(axios, basePath));
557
557
  },
558
558
  /**
559
- * Trigger a holdings update for all accounts under this connection. Updates will be queued asynchronously. [`ACCOUNT_HOLDINGS_UPDATED` webhook](/docs/webhooks#webhooks-account_holdings_updated) will be sent once the sync completes for each account under the connection. This endpoint will also trigger a transaction sync for the past day if one has not yet occurred. **Please contact support before use. Because of the cost of refreshing a connection, each call to this endpoint incurs a additional charge of $0.05**
559
+ * Trigger a holdings update for all accounts under this connection. Updates will be queued asynchronously. [`ACCOUNT_HOLDINGS_UPDATED` webhook](/docs/webhooks#webhooks-account_holdings_updated) will be sent once the sync completes for each account under the connection. This endpoint will also trigger a transaction sync for the past day if one has not yet occurred. **Because of the cost of refreshing a connection, each call to this endpoint incurs a additional charge based on your [Pricing Plan](https://snaptrade.com/pricing)**
560
560
  * @summary Refresh holdings for a connection
561
561
  * @param {ConnectionsApiRefreshBrokerageAuthorizationRequest} requestParameters Request parameters.
562
562
  * @param {*} [options] Override http request option.
@@ -639,7 +639,7 @@ class ConnectionsApiGenerated extends base_1.BaseAPI {
639
639
  return (0, exports.ConnectionsApiFp)(this.configuration).listBrokerageAuthorizations(requestParameters, options).then((request) => request(this.axios, this.basePath));
640
640
  }
641
641
  /**
642
- * Trigger a holdings update for all accounts under this connection. Updates will be queued asynchronously. [`ACCOUNT_HOLDINGS_UPDATED` webhook](/docs/webhooks#webhooks-account_holdings_updated) will be sent once the sync completes for each account under the connection. This endpoint will also trigger a transaction sync for the past day if one has not yet occurred. **Please contact support before use. Because of the cost of refreshing a connection, each call to this endpoint incurs a additional charge of $0.05**
642
+ * Trigger a holdings update for all accounts under this connection. Updates will be queued asynchronously. [`ACCOUNT_HOLDINGS_UPDATED` webhook](/docs/webhooks#webhooks-account_holdings_updated) will be sent once the sync completes for each account under the connection. This endpoint will also trigger a transaction sync for the past day if one has not yet occurred. **Because of the cost of refreshing a connection, each call to this endpoint incurs a additional charge based on your [Pricing Plan](https://snaptrade.com/pricing)**
643
643
  * @summary Refresh holdings for a connection
644
644
  * @param {ConnectionsApiRefreshBrokerageAuthorizationRequest} requestParameters Request parameters.
645
645
  * @param {*} [options] Override http request option.
@@ -68,7 +68,7 @@ export declare const TradingApiAxiosParamCreator: (configuration?: Configuration
68
68
  */
69
69
  getOrderImpact: (userId: string, userSecret: string, manualTradeForm: ManualTradeForm, options?: AxiosRequestConfig) => Promise<RequestArgs>;
70
70
  /**
71
- * Returns quotes from the brokerage for the specified symbols and account. The quotes returned can be delayed depending on the brokerage the account belongs to. It is highly recommended that you use your own market data provider for real-time quotes instead of relying on this endpoint. This endpoint does not work for options quotes.
71
+ * Returns quotes from the brokerage for the specified symbols and account. The quotes returned can be delayed depending on the brokerage the account belongs to. It is highly recommended that you use your own market data provider for real-time quotes instead of relying on this endpoint. This endpoint does not work for options quotes. This endpoint is disabled for free plans by default. Please contact support to enable this endpoint if needed.
72
72
  * @summary Get equity symbol quotes
73
73
  * @param {string} userId
74
74
  * @param {string} userSecret
@@ -207,7 +207,7 @@ export declare const TradingApiFp: (configuration?: Configuration) => {
207
207
  */
208
208
  getOrderImpact(requestParameters: TradingApiGetOrderImpactRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ManualTradeAndImpact>>;
209
209
  /**
210
- * Returns quotes from the brokerage for the specified symbols and account. The quotes returned can be delayed depending on the brokerage the account belongs to. It is highly recommended that you use your own market data provider for real-time quotes instead of relying on this endpoint. This endpoint does not work for options quotes.
210
+ * Returns quotes from the brokerage for the specified symbols and account. The quotes returned can be delayed depending on the brokerage the account belongs to. It is highly recommended that you use your own market data provider for real-time quotes instead of relying on this endpoint. This endpoint does not work for options quotes. This endpoint is disabled for free plans by default. Please contact support to enable this endpoint if needed.
211
211
  * @summary Get equity symbol quotes
212
212
  * @param {TradingApiGetUserAccountQuotesRequest} requestParameters Request parameters.
213
213
  * @param {*} [options] Override http request option.
@@ -318,7 +318,7 @@ export declare const TradingApiFactory: (configuration?: Configuration, basePath
318
318
  */
319
319
  getOrderImpact(requestParameters: TradingApiGetOrderImpactRequest, options?: AxiosRequestConfig): AxiosPromise<ManualTradeAndImpact>;
320
320
  /**
321
- * Returns quotes from the brokerage for the specified symbols and account. The quotes returned can be delayed depending on the brokerage the account belongs to. It is highly recommended that you use your own market data provider for real-time quotes instead of relying on this endpoint. This endpoint does not work for options quotes.
321
+ * Returns quotes from the brokerage for the specified symbols and account. The quotes returned can be delayed depending on the brokerage the account belongs to. It is highly recommended that you use your own market data provider for real-time quotes instead of relying on this endpoint. This endpoint does not work for options quotes. This endpoint is disabled for free plans by default. Please contact support to enable this endpoint if needed.
322
322
  * @summary Get equity symbol quotes
323
323
  * @param {TradingApiGetUserAccountQuotesRequest} requestParameters Request parameters.
324
324
  * @param {*} [options] Override http request option.
@@ -778,7 +778,7 @@ export declare class TradingApiGenerated extends BaseAPI {
778
778
  */
779
779
  getOrderImpact(requestParameters: TradingApiGetOrderImpactRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ManualTradeAndImpact, any>>;
780
780
  /**
781
- * Returns quotes from the brokerage for the specified symbols and account. The quotes returned can be delayed depending on the brokerage the account belongs to. It is highly recommended that you use your own market data provider for real-time quotes instead of relying on this endpoint. This endpoint does not work for options quotes.
781
+ * Returns quotes from the brokerage for the specified symbols and account. The quotes returned can be delayed depending on the brokerage the account belongs to. It is highly recommended that you use your own market data provider for real-time quotes instead of relying on this endpoint. This endpoint does not work for options quotes. This endpoint is disabled for free plans by default. Please contact support to enable this endpoint if needed.
782
782
  * @summary Get equity symbol quotes
783
783
  * @param {TradingApiGetUserAccountQuotesRequest} requestParameters Request parameters.
784
784
  * @param {*} [options] Override http request option.
@@ -275,7 +275,7 @@ const TradingApiAxiosParamCreator = function (configuration) {
275
275
  };
276
276
  }),
277
277
  /**
278
- * Returns quotes from the brokerage for the specified symbols and account. The quotes returned can be delayed depending on the brokerage the account belongs to. It is highly recommended that you use your own market data provider for real-time quotes instead of relying on this endpoint. This endpoint does not work for options quotes.
278
+ * Returns quotes from the brokerage for the specified symbols and account. The quotes returned can be delayed depending on the brokerage the account belongs to. It is highly recommended that you use your own market data provider for real-time quotes instead of relying on this endpoint. This endpoint does not work for options quotes. This endpoint is disabled for free plans by default. Please contact support to enable this endpoint if needed.
279
279
  * @summary Get equity symbol quotes
280
280
  * @param {string} userId
281
281
  * @param {string} userSecret
@@ -904,7 +904,7 @@ const TradingApiFp = function (configuration) {
904
904
  });
905
905
  },
906
906
  /**
907
- * Returns quotes from the brokerage for the specified symbols and account. The quotes returned can be delayed depending on the brokerage the account belongs to. It is highly recommended that you use your own market data provider for real-time quotes instead of relying on this endpoint. This endpoint does not work for options quotes.
907
+ * Returns quotes from the brokerage for the specified symbols and account. The quotes returned can be delayed depending on the brokerage the account belongs to. It is highly recommended that you use your own market data provider for real-time quotes instead of relying on this endpoint. This endpoint does not work for options quotes. This endpoint is disabled for free plans by default. Please contact support to enable this endpoint if needed.
908
908
  * @summary Get equity symbol quotes
909
909
  * @param {TradingApiGetUserAccountQuotesRequest} requestParameters Request parameters.
910
910
  * @param {*} [options] Override http request option.
@@ -1139,7 +1139,7 @@ const TradingApiFactory = function (configuration, basePath, axios) {
1139
1139
  return localVarFp.getOrderImpact(requestParameters, options).then((request) => request(axios, basePath));
1140
1140
  },
1141
1141
  /**
1142
- * Returns quotes from the brokerage for the specified symbols and account. The quotes returned can be delayed depending on the brokerage the account belongs to. It is highly recommended that you use your own market data provider for real-time quotes instead of relying on this endpoint. This endpoint does not work for options quotes.
1142
+ * Returns quotes from the brokerage for the specified symbols and account. The quotes returned can be delayed depending on the brokerage the account belongs to. It is highly recommended that you use your own market data provider for real-time quotes instead of relying on this endpoint. This endpoint does not work for options quotes. This endpoint is disabled for free plans by default. Please contact support to enable this endpoint if needed.
1143
1143
  * @summary Get equity symbol quotes
1144
1144
  * @param {TradingApiGetUserAccountQuotesRequest} requestParameters Request parameters.
1145
1145
  * @param {*} [options] Override http request option.
@@ -1284,7 +1284,7 @@ class TradingApiGenerated extends base_1.BaseAPI {
1284
1284
  return (0, exports.TradingApiFp)(this.configuration).getOrderImpact(requestParameters, options).then((request) => request(this.axios, this.basePath));
1285
1285
  }
1286
1286
  /**
1287
- * Returns quotes from the brokerage for the specified symbols and account. The quotes returned can be delayed depending on the brokerage the account belongs to. It is highly recommended that you use your own market data provider for real-time quotes instead of relying on this endpoint. This endpoint does not work for options quotes.
1287
+ * Returns quotes from the brokerage for the specified symbols and account. The quotes returned can be delayed depending on the brokerage the account belongs to. It is highly recommended that you use your own market data provider for real-time quotes instead of relying on this endpoint. This endpoint does not work for options quotes. This endpoint is disabled for free plans by default. Please contact support to enable this endpoint if needed.
1288
1288
  * @summary Get equity symbol quotes
1289
1289
  * @param {TradingApiGetUserAccountQuotesRequest} requestParameters Request parameters.
1290
1290
  * @param {*} [options] Override http request option.
package/dist/browser.js CHANGED
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see browser.js.LICENSE.txt */
2
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.client=t():e.client=t()}(self,()=>(()=>{var e={129:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},160:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},400:function(e,t,r){"use strict";var s=this&&this.__awaiter||function(e,t,r,s){return new(r||(r=Promise))(function(n,i){function o(e){try{c(s.next(e))}catch(e){i(e)}}function a(e){try{c(s.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(o,a)}c((s=s.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.OptionsApiGenerated=t.OptionsApiFactory=t.OptionsApiFp=t.OptionsApiAxiosParamCreator=void 0;const n=r(8451),i=r(5511),o=r(4467),a=r(4445);t.OptionsApiAxiosParamCreator=function(e){return{getOptionsChain:(t,r,n,o,c={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("getOptionsChain","userId",t),(0,i.assertParamExists)("getOptionsChain","userSecret",r),(0,i.assertParamExists)("getOptionsChain","accountId",n),(0,i.assertParamExists)("getOptionsChain","symbol",o);const s="/accounts/{accountId}/optionsChain".replace("{accountId}",encodeURIComponent(String(void 0!==n?n:"-accountId-"))),u=new URL(s,i.DUMMY_BASE_URL);let d;e&&(d=e.baseOptions);const l=Object.assign(Object.assign({method:"GET"},d),c),p=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},h={};yield(0,i.setApiKeyToObject)({object:h,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(h.userId=t),void 0!==r&&(h.userSecret=r),void 0!==o&&(h.symbol=o);let g=d&&d.headers?d.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},p),g),c.headers),(0,a.requestBeforeHook)({queryParameters:h,requestConfig:l,path:s,configuration:e,pathTemplate:"/accounts/{accountId}/optionsChain",httpMethod:"GET"}),(0,i.setSearchParams)(u,h),{url:(0,i.toPathString)(u),options:l}}),listOptionHoldings:(t,r,n,o={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("listOptionHoldings","userId",t),(0,i.assertParamExists)("listOptionHoldings","userSecret",r),(0,i.assertParamExists)("listOptionHoldings","accountId",n);const s="/accounts/{accountId}/options".replace("{accountId}",encodeURIComponent(String(void 0!==n?n:"-accountId-"))),c=new URL(s,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"GET"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(p.userId=t),void 0!==r&&(p.userSecret=r);let h=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),h),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:s,configuration:e,pathTemplate:"/accounts/{accountId}/options",httpMethod:"GET"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})}},t.OptionsApiFp=function(e){const r=(0,t.OptionsApiAxiosParamCreator)(e);return{getOptionsChain(t,a){return s(this,void 0,void 0,function*(){const s=yield r.getOptionsChain(t.userId,t.userSecret,t.accountId,t.symbol,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},listOptionHoldings(t,a){return s(this,void 0,void 0,function*(){const s=yield r.listOptionHoldings(t.userId,t.userSecret,t.accountId,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})}}},t.OptionsApiFactory=function(e,r,s){const n=(0,t.OptionsApiFp)(e);return{getOptionsChain:(e,t)=>n.getOptionsChain(e,t).then(e=>e(s,r)),listOptionHoldings:(e,t)=>n.listOptionHoldings(e,t).then(e=>e(s,r))}};class c extends o.BaseAPI{getOptionsChain(e,r){return(0,t.OptionsApiFp)(this.configuration).getOptionsChain(e,r).then(e=>e(this.axios,this.basePath))}listOptionHoldings(e,r){return(0,t.OptionsApiFp)(this.configuration).listOptionHoldings(e,r).then(e=>e(this.axios,this.basePath))}}t.OptionsApiGenerated=c},570:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},589:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},612:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},624:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},689:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},803:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},833:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1061:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1070:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1108:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1164:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1186:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1190:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1204:function(e,t,r){"use strict";var s=this&&this.__awaiter||function(e,t,r,s){return new(r||(r=Promise))(function(n,i){function o(e){try{c(s.next(e))}catch(e){i(e)}}function a(e){try{c(s.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(o,a)}c((s=s.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.requestAfterHook=void 0,t.requestAfterHook=function(e){return s(this,void 0,void 0,function*(){const{configuration:t,basePath:n,axiosArgs:i,url:o}=e;if(void 0===(null==t?void 0:t.consumerKey))throw Error("Consumer key is required");const a=encodeURI(t.consumerKey),c=void 0===i.options.data||"{}"===i.options.data?null:JSON.parse(i.options.data),u=-1===i.url.indexOf("?")?`${i.url}`:`${i.url.split("?")[0]}`,d=(l={content:c,path:`/api/v1${u}`,query:o.replace(n,"").replace(u,"").replace("?","")},p=[],h={},JSON.stringify(l,function(e,t){return e in h||(p.push(e),h[e]=null),t}),p.sort(),JSON.stringify(l,p));var l,p,h;const g=yield function(e,t){return s(this,void 0,void 0,function*(){if("undefined"!=typeof process&&process.versions&&process.versions.node){const s=r(2349).createHmac("sha256",t);return s.update(e),s.digest("base64")}{const r=new TextEncoder,s=r.encode(t),n=r.encode(e),i=yield globalThis.crypto.subtle.importKey("raw",s,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),o=yield globalThis.crypto.subtle.sign("HMAC",i,n),a=Array.from(new Uint8Array(o));return btoa(String.fromCharCode.apply(null,a))}})}(d,a);i.options.headers&&(i.options.headers.Signature=g)})}},1345:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1447:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1456:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1590:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1641:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1766:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1837:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1843:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1871:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1882:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1883:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1934:function(e,t){"use strict";var r=this&&this.__awaiter||function(e,t,r,s){return new(r||(r=Promise))(function(n,i){function o(e){try{c(s.next(e))}catch(e){i(e)}}function a(e){try{c(s.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(o,a)}c((s=s.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.parseIfJson=t.readableStreamToString=t.SnaptradeError=void 0;class s extends Error{constructor(e,t,r){var s,n,i,o,a;super(e.message+"\nRESPONSE HEADERS:\n"+JSON.stringify(r,null,2)),this.name="SnaptradeError",this.code=e.code,this.method=null===(n=null===(s=e.config)||void 0===s?void 0:s.method)||void 0===n?void 0:n.toUpperCase(),this.url=null===(i=e.config)||void 0===i?void 0:i.url,this.status=null===(o=e.response)||void 0===o?void 0:o.status,this.statusText=null===(a=e.response)||void 0===a?void 0:a.statusText,this.responseBody=t}toJSON(){return{name:this.name,message:this.message,method:this.method,url:this.url,code:this.code,status:this.status,statusText:this.statusText,responseBody:this.responseBody}}}t.SnaptradeError=s,t.readableStreamToString=function(e){return r(this,void 0,void 0,function*(){const t=new TextDecoder,r=e.getReader();let s="";try{for(;;){const{done:e,value:n}=yield r.read();if(e)break;s+=t.decode(n,{stream:!0})}}finally{r.releaseLock()}return s})},t.parseIfJson=function(e){if("string"!=typeof e)return e;try{const t=JSON.parse(e);return"object"==typeof t&&null!==t?t:e}catch(t){return e}}},1953:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2010:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2059:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2074:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2095:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2135:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2165:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2286:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2327:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2349:()=>{},2350:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2362:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.requestBeforeUrlHook=void 0,t.requestBeforeUrlHook=function(e){}},2459:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2501:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2525:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2581:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2670:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2684:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2694:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2731:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3104:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3262:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3287:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3304:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3321:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3450:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3485:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3504:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3603:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||s(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.TradingApi=void 0;const i=r(7483);n(r(7483),t);class o extends i.TradingApiGenerated{}t.TradingApi=o},3703:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3756:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3814:function(e,t,r){"use strict";var s=this&&this.__awaiter||function(e,t,r,s){return new(r||(r=Promise))(function(n,i){function o(e){try{c(s.next(e))}catch(e){i(e)}}function a(e){try{c(s.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(o,a)}c((s=s.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.AuthenticationApiGenerated=t.AuthenticationApiFactory=t.AuthenticationApiFp=t.AuthenticationApiAxiosParamCreator=void 0;const n=r(8451),i=r(5511),o=r(4467),a=r(4445);t.AuthenticationApiAxiosParamCreator=function(e){return{deleteSnapTradeUser:(t,r={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("deleteSnapTradeUser","userId",t);const s="/snapTrade/deleteUser",n=new URL(s,i.DUMMY_BASE_URL);let o;e&&(o=e.baseOptions);const c=Object.assign(Object.assign({method:"DELETE"},o),r),u=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},d={};yield(0,i.setApiKeyToObject)({object:d,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:d,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(d.userId=t);let l=o&&o.headers?o.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),l),r.headers),(0,a.requestBeforeHook)({queryParameters:d,requestConfig:c,path:s,configuration:e,pathTemplate:"/snapTrade/deleteUser",httpMethod:"DELETE"}),(0,i.setSearchParams)(n,d),{url:(0,i.toPathString)(n),options:c}}),listSnapTradeUsers:(t={})=>s(this,void 0,void 0,function*(){const r="/snapTrade/listUsers",s=new URL(r,i.DUMMY_BASE_URL);let n;e&&(n=e.baseOptions);const o=Object.assign(Object.assign({method:"GET"},n),t),c=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},u={};yield(0,i.setApiKeyToObject)({object:u,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:c,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,key:"timestamp",keyParamName:"timestamp",configuration:e});let d=n&&n.headers?n.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},c),d),t.headers),(0,a.requestBeforeHook)({queryParameters:u,requestConfig:o,path:r,configuration:e,pathTemplate:"/snapTrade/listUsers",httpMethod:"GET"}),(0,i.setSearchParams)(s,u),{url:(0,i.toPathString)(s),options:o}}),loginSnapTradeUser:(t,r,n,o={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("loginSnapTradeUser","userId",t),(0,i.assertParamExists)("loginSnapTradeUser","userSecret",r);const s="/snapTrade/login",c=new URL(s,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"POST"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(p.userId=t),void 0!==r&&(p.userSecret=r),l["Content-Type"]="application/json";let h=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),h),o.headers),(0,a.requestBeforeHook)({requestBody:n,queryParameters:p,requestConfig:d,path:s,configuration:e,pathTemplate:"/snapTrade/login",httpMethod:"POST"}),d.data=(0,i.serializeDataIfNeeded)(n,d,e),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}}),registerSnapTradeUser:(t,r={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("registerSnapTradeUser","snapTradeRegisterUserRequestBody",t);const s="/snapTrade/registerUser",n=new URL(s,i.DUMMY_BASE_URL);let o;e&&(o=e.baseOptions);const c=Object.assign(Object.assign({method:"POST"},o),r),u=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},d={};yield(0,i.setApiKeyToObject)({object:d,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:d,key:"timestamp",keyParamName:"timestamp",configuration:e}),u["Content-Type"]="application/json";let l=o&&o.headers?o.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),l),r.headers),(0,a.requestBeforeHook)({requestBody:t,queryParameters:d,requestConfig:c,path:s,configuration:e,pathTemplate:"/snapTrade/registerUser",httpMethod:"POST"}),c.data=(0,i.serializeDataIfNeeded)(t,c,e),(0,i.setSearchParams)(n,d),{url:(0,i.toPathString)(n),options:c}}),resetSnapTradeUserSecret:(t,r={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("resetSnapTradeUserSecret","userIDandSecret",t);const s="/snapTrade/resetUserSecret",n=new URL(s,i.DUMMY_BASE_URL);let o;e&&(o=e.baseOptions);const c=Object.assign(Object.assign({method:"POST"},o),r),u=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},d={};yield(0,i.setApiKeyToObject)({object:d,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:d,key:"timestamp",keyParamName:"timestamp",configuration:e}),u["Content-Type"]="application/json";let l=o&&o.headers?o.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),l),r.headers),(0,a.requestBeforeHook)({requestBody:t,queryParameters:d,requestConfig:c,path:s,configuration:e,pathTemplate:"/snapTrade/resetUserSecret",httpMethod:"POST"}),c.data=(0,i.serializeDataIfNeeded)(t,c,e),(0,i.setSearchParams)(n,d),{url:(0,i.toPathString)(n),options:c}})}},t.AuthenticationApiFp=function(e){const r=(0,t.AuthenticationApiAxiosParamCreator)(e);return{deleteSnapTradeUser(t,a){return s(this,void 0,void 0,function*(){const s=yield r.deleteSnapTradeUser(t.userId,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},listSnapTradeUsers(t){return s(this,void 0,void 0,function*(){const s=yield r.listSnapTradeUsers(t);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},loginSnapTradeUser(t,a){return s(this,void 0,void 0,function*(){const s={broker:t.broker,immediateRedirect:t.immediateRedirect,customRedirect:t.customRedirect,reconnect:t.reconnect,connectionType:t.connectionType,connectionPortalVersion:t.connectionPortalVersion},c=yield r.loginSnapTradeUser(t.userId,t.userSecret,s,a);return(0,i.createRequestFunction)(c,n.default,o.BASE_PATH,e)})},registerSnapTradeUser(t,a){return s(this,void 0,void 0,function*(){const s={userId:t.userId},c=yield r.registerSnapTradeUser(s,a);return(0,i.createRequestFunction)(c,n.default,o.BASE_PATH,e)})},resetSnapTradeUserSecret(t,a){return s(this,void 0,void 0,function*(){const s={userId:t.userId,userSecret:t.userSecret},c=yield r.resetSnapTradeUserSecret(s,a);return(0,i.createRequestFunction)(c,n.default,o.BASE_PATH,e)})}}},t.AuthenticationApiFactory=function(e,r,s){const n=(0,t.AuthenticationApiFp)(e);return{deleteSnapTradeUser:(e,t)=>n.deleteSnapTradeUser(e,t).then(e=>e(s,r)),listSnapTradeUsers:e=>n.listSnapTradeUsers(e).then(e=>e(s,r)),loginSnapTradeUser:(e,t)=>n.loginSnapTradeUser(e,t).then(e=>e(s,r)),registerSnapTradeUser:(e,t)=>n.registerSnapTradeUser(e,t).then(e=>e(s,r)),resetSnapTradeUserSecret:(e,t)=>n.resetSnapTradeUserSecret(e,t).then(e=>e(s,r))}};class c extends o.BaseAPI{deleteSnapTradeUser(e,r){return(0,t.AuthenticationApiFp)(this.configuration).deleteSnapTradeUser(e,r).then(e=>e(this.axios,this.basePath))}listSnapTradeUsers(e){return(0,t.AuthenticationApiFp)(this.configuration).listSnapTradeUsers(e).then(e=>e(this.axios,this.basePath))}loginSnapTradeUser(e,r){return(0,t.AuthenticationApiFp)(this.configuration).loginSnapTradeUser(e,r).then(e=>e(this.axios,this.basePath))}registerSnapTradeUser(e,r){return(0,t.AuthenticationApiFp)(this.configuration).registerSnapTradeUser(e,r).then(e=>e(this.axios,this.basePath))}resetSnapTradeUserSecret(e,r){return(0,t.AuthenticationApiFp)(this.configuration).resetSnapTradeUserSecret(e,r).then(e=>e(this.axios,this.basePath))}}t.AuthenticationApiGenerated=c},3926:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3959:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4105:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4188:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||s(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.OptionsApi=void 0;const i=r(400);n(r(400),t);class o extends i.OptionsApiGenerated{}t.OptionsApi=o},4251:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||s(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),n(r(3304),t),n(r(3321),t),n(r(2670),t),n(r(589),t),n(r(6687),t),n(r(2459),t),n(r(2135),t),n(r(2074),t),n(r(6612),t),n(r(2731),t),n(r(5854),t),n(r(1456),t),n(r(8911),t),n(r(833),t),n(r(612),t),n(r(7602),t),n(r(1641),t),n(r(1061),t),n(r(2095),t),n(r(7295),t),n(r(689),t),n(r(7291),t),n(r(1447),t),n(r(4747),t),n(r(1871),t),n(r(9168),t),n(r(5491),t),n(r(3504),t),n(r(6837),t),n(r(8377),t),n(r(570),t),n(r(4700),t),n(r(5942),t),n(r(8222),t),n(r(1590),t),n(r(5166),t),n(r(8958),t),n(r(8696),t),n(r(8498),t),n(r(3926),t),n(r(6483),t),n(r(9452),t),n(r(3104),t),n(r(7249),t),n(r(1843),t),n(r(2525),t),n(r(1766),t),n(r(4105),t),n(r(2286),t),n(r(9634),t),n(r(160),t),n(r(1186),t),n(r(1345),t),n(r(4415),t),n(r(2165),t),n(r(5100),t),n(r(8038),t),n(r(9301),t),n(r(8329),t),n(r(2010),t),n(r(7451),t),n(r(7707),t),n(r(1883),t),n(r(9383),t),n(r(3959),t),n(r(2684),t),n(r(2694),t),n(r(1108),t),n(r(8066),t),n(r(3450),t),n(r(1953),t),n(r(6392),t),n(r(7275),t),n(r(4635),t),n(r(4384),t),n(r(6822),t),n(r(5103),t),n(r(6599),t),n(r(3287),t),n(r(7854),t),n(r(7214),t),n(r(7867),t),n(r(3756),t),n(r(4695),t),n(r(3703),t),n(r(2501),t),n(r(7615),t),n(r(9354),t),n(r(5407),t),n(r(2581),t),n(r(5433),t),n(r(8486),t),n(r(9032),t),n(r(8305),t),n(r(8996),t),n(r(8032),t),n(r(6142),t),n(r(6375),t),n(r(4909),t),n(r(6944),t),n(r(8774),t),n(r(6489),t),n(r(4784),t),n(r(1164),t),n(r(6882),t),n(r(6342),t),n(r(3262),t),n(r(8927),t),n(r(2327),t),n(r(7906),t),n(r(7335),t),n(r(5267),t),n(r(129),t),n(r(6927),t),n(r(6337),t),n(r(1882),t),n(r(8951),t),n(r(9957),t),n(r(5359),t),n(r(6435),t),n(r(3485),t),n(r(7091),t),n(r(2350),t),n(r(5675),t),n(r(5547),t),n(r(6054),t),n(r(8818),t),n(r(4606),t),n(r(1190),t),n(r(1837),t),n(r(9486),t),n(r(5401),t),n(r(6255),t),n(r(1070),t),n(r(8670),t),n(r(803),t),n(r(624),t),n(r(2059),t)},4375:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||s(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectionsApi=void 0;const i=r(8015);n(r(8015),t);class o extends i.ConnectionsApiGenerated{}t.ConnectionsApi=o},4384:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4415:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4445:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.requestBeforeHook=void 0,t.requestBeforeHook=function(e){const{queryParameters:t}=e;t.timestamp=Math.round((new Date).getTime()/1e3).toString()}},4467:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RequiredError=t.BaseAPI=t.COLLECTION_FORMATS=t.BASE_PATH=void 0;const s=r(8451);t.BASE_PATH="https://api.snaptrade.com/api/v1".replace(/\/+$/,""),t.COLLECTION_FORMATS={csv:",",ssv:" ",tsv:"\t",pipes:"|"},t.BaseAPI=class{constructor(e,r=t.BASE_PATH,n=s.default){this.basePath=r,this.axios=n,e&&(this.configuration=e,this.basePath=e.basePath||this.basePath)}};class n extends Error{constructor(e,t){super(t),this.field=e,this.name="RequiredError"}}t.RequiredError=n},4606:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4635:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4695:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4700:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4747:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4784:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4909:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5100:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5103:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5166:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5198:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||s(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.ReferenceDataApi=void 0;const i=r(8902);n(r(8902),t);class o extends i.ReferenceDataApiGenerated{}t.ReferenceDataApi=o},5267:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5359:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5401:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5407:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5433:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5469:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SnaptradeCustom=void 0,t.SnaptradeCustom=class{constructor(e){}}},5491:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5511:function(e,t,r){"use strict";var s=this&&this.__awaiter||function(e,t,r,s){return new(r||(r=Promise))(function(n,i){function o(e){try{c(s.next(e))}catch(e){i(e)}}function a(e){try{c(s.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(o,a)}c((s=s.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.isBrowser=t.createRequestFunction=t.removeTrailingSlash=t.toPathString=t.serializeDataIfNeeded=t.setSearchParams=t.setBearerAuthToObject=t.setBasicAuthToObject=t.setApiKeyToObject=t.assertParamExists=t.DUMMY_BASE_URL=void 0;const n=r(4467),i=r(8451),o=r(1204),a=r(2362),c=r(1934);function u(e,t,r=""){"object"==typeof t?Array.isArray(t)?t.forEach(t=>u(e,t,r)):Object.keys(t).forEach(s=>u(e,t[s],`${r}${""!==r?".":""}${s}`)):e.has(r)?e.append(r,t):e.set(r,t)}t.DUMMY_BASE_URL="https://example.com",t.assertParamExists=function(e,t,r){if(null==r)throw new n.RequiredError(t,`Required parameter ${t} was null or undefined when calling ${e}.`)},t.setApiKeyToObject=function({object:e,key:t,type:r,keyParamName:n,configuration:i,prefix:o}){return s(this,void 0,void 0,function*(){t=t||n;let s=null;if(i&&i.apiKey)if("function"==typeof i.apiKey)s=yield i.apiKey(n);else if("string"==typeof i.apiKey)s=i.apiKey;else{if("object"!=typeof i.apiKey)throw Error(`Unexpected type ${typeof i.apiKey} for Configuration.apiKey`);n in i.apiKey&&(s=i.apiKey[n])}s&&(e[t]=void 0!==o?`${o}${s}`:s,"Cookie"===r&&(e[t]=`${n}=${e[t]}`))})},t.setBasicAuthToObject=function(e,t){t&&(t.username||t.password)&&(e.auth={username:t.username,password:t.password})},t.setBearerAuthToObject=function(e,t){return s(this,void 0,void 0,function*(){if(t&&t.accessToken){const r="function"==typeof t.accessToken?yield t.accessToken():yield t.accessToken;e.Authorization="Bearer "+r}})},t.setSearchParams=function(e,...t){const r=new URLSearchParams(e.search);u(r,t),e.search=r.toString()},t.serializeDataIfNeeded=function(e,t,r){const s="string"!=typeof e;return(s&&r&&r.isJsonMime?r.isJsonMime(t.headers["Content-Type"]):s)?JSON.stringify(void 0!==e?e:{}):e||""},t.toPathString=function(e){return(0,t.removeTrailingSlash)(e.pathname)+e.search+e.hash},t.removeTrailingSlash=function(e){return e.replace(/\/$/,"")},t.createRequestFunction=function(e,t,r,n){return(u=t,d=r)=>s(this,void 0,void 0,function*(){(0,a.requestBeforeUrlHook)({axiosArgs:e,basePath:d,configuration:n});const t=((null==n?void 0:n.basePath)||d)+e.url;return yield(0,o.requestAfterHook)({axiosArgs:e,basePath:d,url:t,configuration:n}),function(e){var t,r,n,o,a,u;return s(this,void 0,void 0,function*(){let s=0,d=5e3;for(;s<3;)try{return yield e()}catch(e){if(e instanceof i.AxiosError&&e.isAxiosError){if(429==(null===(t=e.response)||void 0===t?void 0:t.status)){s++,console.log(`429 error encountered, retrying in ${d/1e3} seconds...`),yield new Promise(e=>setTimeout(e,d)),d*=2;continue}try{const t=(null===(r=e.response)||void 0===r?void 0:r.data)instanceof ReadableStream?yield(0,c.readableStreamToString)(e.response.data):null===(n=e.response)||void 0===n?void 0:n.data;throw new c.SnaptradeError(e,(0,c.parseIfJson)(t),null===(o=e.response)||void 0===o?void 0:o.headers)}catch(t){if(t instanceof ReferenceError)throw new c.SnaptradeError(e,null===(a=e.response)||void 0===a?void 0:a.data,null===(u=e.response)||void 0===u?void 0:u.headers);if(t instanceof c.SnaptradeError)throw t;throw e}}throw e}throw new Error("Request failed after 3 retries due to 429 (rate limit) errors.")})}(()=>s(this,void 0,void 0,function*(){return yield u.request(Object.assign(Object.assign({},e.options),{url:t}))}))})},t.isBrowser=function(){return"undefined"!=typeof window}},5547:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5675:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5854:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5942:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6054:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6057:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Snaptrade=void 0;const s=r(8564),n=r(6254),i=r(5469);class o extends i.SnaptradeCustom{constructor(e={}){super(e);const t=new n.Configuration(e);this.accountInformation=new s.AccountInformationApi(t),this.apiStatus=new s.ApiStatusApi(t),this.authentication=new s.AuthenticationApi(t),this.connections=new s.ConnectionsApi(t),this.options=new s.OptionsApi(t),this.referenceData=new s.ReferenceDataApi(t),this.trading=new s.TradingApi(t),this.transactionsAndReporting=new s.TransactionsAndReportingApi(t)}}t.Snaptrade=o},6142:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6227:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||s(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.ApiStatusApi=void 0;const i=r(8747);n(r(8747),t);class o extends i.ApiStatusApiGenerated{}t.ApiStatusApi=o},6254:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Configuration=void 0,t.Configuration=class{constructor(e={}){var t;this.consumerKey=e.consumerKey,this.apiKey=e.apiKey,void 0===this.apiKey&&(this.apiKey={},void 0!==e.clientId&&(this.apiKey.clientId=e.clientId),void 0!==e.signature&&(this.apiKey.signature=e.signature),void 0!==e.timestamp&&(this.apiKey.timestamp=e.timestamp)),this.username=e.username,this.password=e.password,this.accessToken=e.accessToken,this.basePath=e.basePath,this.baseOptions=null!==(t=e.baseOptions)&&void 0!==t?t:{},this.userAgent=void 0===e.userAgent?"Konfig/9.0.128/typescript":e.userAgent,this.formDataCtor=e.formDataCtor}isJsonMime(e){const t=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==e&&(t.test(e)||"application/json-patch+json"===e.toLowerCase())}}},6255:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6337:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6342:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6375:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6392:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6435:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6483:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6489:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6599:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6612:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6687:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6822:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6837:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6882:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6927:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6944:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7091:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7214:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7249:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7275:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7291:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7295:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7335:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7451:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7483:function(e,t,r){"use strict";var s=this&&this.__awaiter||function(e,t,r,s){return new(r||(r=Promise))(function(n,i){function o(e){try{c(s.next(e))}catch(e){i(e)}}function a(e){try{c(s.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(o,a)}c((s=s.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.TradingApiGenerated=t.TradingApiFactory=t.TradingApiFp=t.TradingApiAxiosParamCreator=void 0;const n=r(8451),i=r(5511),o=r(4467),a=r(4445);t.TradingApiAxiosParamCreator=function(e){return{cancelOrder:(t,r,n,o,c={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("cancelOrder","userId",t),(0,i.assertParamExists)("cancelOrder","userSecret",r),(0,i.assertParamExists)("cancelOrder","accountId",n),(0,i.assertParamExists)("cancelOrder","tradingCancelUserAccountOrderRequest",o);const s="/accounts/{accountId}/trading/cancel".replace("{accountId}",encodeURIComponent(String(void 0!==n?n:"-accountId-"))),u=new URL(s,i.DUMMY_BASE_URL);let d;e&&(d=e.baseOptions);const l=Object.assign(Object.assign({method:"POST"},d),c),p=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},h={};yield(0,i.setApiKeyToObject)({object:h,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(h.userId=t),void 0!==r&&(h.userSecret=r),p["Content-Type"]="application/json";let g=d&&d.headers?d.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},p),g),c.headers),(0,a.requestBeforeHook)({requestBody:o,queryParameters:h,requestConfig:l,path:s,configuration:e,pathTemplate:"/accounts/{accountId}/trading/cancel",httpMethod:"POST"}),l.data=(0,i.serializeDataIfNeeded)(o,l,e),(0,i.setSearchParams)(u,h),{url:(0,i.toPathString)(u),options:l}}),cancelUserAccountOrder:(t,r,n,o,c={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("cancelUserAccountOrder","userId",t),(0,i.assertParamExists)("cancelUserAccountOrder","userSecret",r),(0,i.assertParamExists)("cancelUserAccountOrder","accountId",n),(0,i.assertParamExists)("cancelUserAccountOrder","tradingCancelUserAccountOrderRequest",o);const s="/accounts/{accountId}/orders/cancel".replace("{accountId}",encodeURIComponent(String(void 0!==n?n:"-accountId-"))),u=new URL(s,i.DUMMY_BASE_URL);let d;e&&(d=e.baseOptions);const l=Object.assign(Object.assign({method:"POST"},d),c),p=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},h={};yield(0,i.setApiKeyToObject)({object:h,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(h.userId=t),void 0!==r&&(h.userSecret=r),p["Content-Type"]="application/json";let g=d&&d.headers?d.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},p),g),c.headers),(0,a.requestBeforeHook)({requestBody:o,queryParameters:h,requestConfig:l,path:s,configuration:e,pathTemplate:"/accounts/{accountId}/orders/cancel",httpMethod:"POST"}),l.data=(0,i.serializeDataIfNeeded)(o,l,e),(0,i.setSearchParams)(u,h),{url:(0,i.toPathString)(u),options:l}}),getCryptocurrencyPairQuote:(t,r,n,o,c={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("getCryptocurrencyPairQuote","userId",t),(0,i.assertParamExists)("getCryptocurrencyPairQuote","userSecret",r),(0,i.assertParamExists)("getCryptocurrencyPairQuote","accountId",n),(0,i.assertParamExists)("getCryptocurrencyPairQuote","instrumentSymbol",o);const s="/accounts/{accountId}/trading/instruments/cryptocurrencyPairs/{instrumentSymbol}/quote".replace("{accountId}",encodeURIComponent(String(void 0!==n?n:"-accountId-"))).replace("{instrumentSymbol}",encodeURIComponent(String(void 0!==o?o:"-instrumentSymbol-"))),u=new URL(s,i.DUMMY_BASE_URL);let d;e&&(d=e.baseOptions);const l=Object.assign(Object.assign({method:"GET"},d),c),p=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},h={};yield(0,i.setApiKeyToObject)({object:h,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(h.userId=t),void 0!==r&&(h.userSecret=r);let g=d&&d.headers?d.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},p),g),c.headers),(0,a.requestBeforeHook)({queryParameters:h,requestConfig:l,path:s,configuration:e,pathTemplate:"/accounts/{accountId}/trading/instruments/cryptocurrencyPairs/{instrumentSymbol}/quote",httpMethod:"GET"}),(0,i.setSearchParams)(u,h),{url:(0,i.toPathString)(u),options:l}}),getOrderImpact:(t,r,n,o={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("getOrderImpact","userId",t),(0,i.assertParamExists)("getOrderImpact","userSecret",r),(0,i.assertParamExists)("getOrderImpact","manualTradeForm",n);const s="/trade/impact",c=new URL(s,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"POST"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(p.userId=t),void 0!==r&&(p.userSecret=r),l["Content-Type"]="application/json";let h=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),h),o.headers),(0,a.requestBeforeHook)({requestBody:n,queryParameters:p,requestConfig:d,path:s,configuration:e,pathTemplate:"/trade/impact",httpMethod:"POST"}),d.data=(0,i.serializeDataIfNeeded)(n,d,e),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}}),getUserAccountQuotes:(t,r,n,o,c,u={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("getUserAccountQuotes","userId",t),(0,i.assertParamExists)("getUserAccountQuotes","userSecret",r),(0,i.assertParamExists)("getUserAccountQuotes","symbols",n),(0,i.assertParamExists)("getUserAccountQuotes","accountId",o);const s="/accounts/{accountId}/quotes".replace("{accountId}",encodeURIComponent(String(void 0!==o?o:"-accountId-"))),d=new URL(s,i.DUMMY_BASE_URL);let l;e&&(l=e.baseOptions);const p=Object.assign(Object.assign({method:"GET"},l),u),h=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},g={};yield(0,i.setApiKeyToObject)({object:g,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:g,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(g.userId=t),void 0!==r&&(g.userSecret=r),void 0!==n&&(g.symbols=n),void 0!==c&&(g.use_ticker=c);let f=l&&l.headers?l.headers:{};return p.headers=Object.assign(Object.assign(Object.assign({},h),f),u.headers),(0,a.requestBeforeHook)({queryParameters:g,requestConfig:p,path:s,configuration:e,pathTemplate:"/accounts/{accountId}/quotes",httpMethod:"GET"}),(0,i.setSearchParams)(d,g),{url:(0,i.toPathString)(d),options:p}}),placeBracketOrder:(t,r,n,o,c={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("placeBracketOrder","accountId",t),(0,i.assertParamExists)("placeBracketOrder","userId",r),(0,i.assertParamExists)("placeBracketOrder","userSecret",n),(0,i.assertParamExists)("placeBracketOrder","manualTradeFormBracket",o);const s="/accounts/{accountId}/trading/bracket".replace("{accountId}",encodeURIComponent(String(void 0!==t?t:"-accountId-"))),u=new URL(s,i.DUMMY_BASE_URL);let d;e&&(d=e.baseOptions);const l=Object.assign(Object.assign({method:"POST"},d),c),p=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},h={};yield(0,i.setApiKeyToObject)({object:h,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==r&&(h.userId=r),void 0!==n&&(h.userSecret=n),p["Content-Type"]="application/json";let g=d&&d.headers?d.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},p),g),c.headers),(0,a.requestBeforeHook)({requestBody:o,queryParameters:h,requestConfig:l,path:s,configuration:e,pathTemplate:"/accounts/{accountId}/trading/bracket",httpMethod:"POST"}),l.data=(0,i.serializeDataIfNeeded)(o,l,e),(0,i.setSearchParams)(u,h),{url:(0,i.toPathString)(u),options:l}}),placeCryptoOrder:(t,r,n,o,c={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("placeCryptoOrder","userId",t),(0,i.assertParamExists)("placeCryptoOrder","userSecret",r),(0,i.assertParamExists)("placeCryptoOrder","accountId",n),(0,i.assertParamExists)("placeCryptoOrder","cryptoOrderForm",o);const s="/accounts/{accountId}/trading/crypto".replace("{accountId}",encodeURIComponent(String(void 0!==n?n:"-accountId-"))),u=new URL(s,i.DUMMY_BASE_URL);let d;e&&(d=e.baseOptions);const l=Object.assign(Object.assign({method:"POST"},d),c),p=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},h={};yield(0,i.setApiKeyToObject)({object:h,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(h.userId=t),void 0!==r&&(h.userSecret=r),p["Content-Type"]="application/json";let g=d&&d.headers?d.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},p),g),c.headers),(0,a.requestBeforeHook)({requestBody:o,queryParameters:h,requestConfig:l,path:s,configuration:e,pathTemplate:"/accounts/{accountId}/trading/crypto",httpMethod:"POST"}),l.data=(0,i.serializeDataIfNeeded)(o,l,e),(0,i.setSearchParams)(u,h),{url:(0,i.toPathString)(u),options:l}}),placeForceOrder:(t,r,n,o={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("placeForceOrder","userId",t),(0,i.assertParamExists)("placeForceOrder","userSecret",r),(0,i.assertParamExists)("placeForceOrder","manualTradeFormWithOptions",n);const s="/trade/place",c=new URL(s,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"POST"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(p.userId=t),void 0!==r&&(p.userSecret=r),l["Content-Type"]="application/json";let h=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),h),o.headers),(0,a.requestBeforeHook)({requestBody:n,queryParameters:p,requestConfig:d,path:s,configuration:e,pathTemplate:"/trade/place",httpMethod:"POST"}),d.data=(0,i.serializeDataIfNeeded)(n,d,e),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}}),placeMlegOrder:(t,r,n,o,c={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("placeMlegOrder","userId",t),(0,i.assertParamExists)("placeMlegOrder","userSecret",r),(0,i.assertParamExists)("placeMlegOrder","accountId",n),(0,i.assertParamExists)("placeMlegOrder","mlegTradeForm",o);const s="/accounts/{accountId}/trading/options".replace("{accountId}",encodeURIComponent(String(void 0!==n?n:"-accountId-"))),u=new URL(s,i.DUMMY_BASE_URL);let d;e&&(d=e.baseOptions);const l=Object.assign(Object.assign({method:"POST"},d),c),p=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},h={};yield(0,i.setApiKeyToObject)({object:h,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(h.userId=t),void 0!==r&&(h.userSecret=r),p["Content-Type"]="application/json";let g=d&&d.headers?d.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},p),g),c.headers),(0,a.requestBeforeHook)({requestBody:o,queryParameters:h,requestConfig:l,path:s,configuration:e,pathTemplate:"/accounts/{accountId}/trading/options",httpMethod:"POST"}),l.data=(0,i.serializeDataIfNeeded)(o,l,e),(0,i.setSearchParams)(u,h),{url:(0,i.toPathString)(u),options:l}}),placeOrder:(t,r,n,o,c={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("placeOrder","tradeId",t),(0,i.assertParamExists)("placeOrder","userId",r),(0,i.assertParamExists)("placeOrder","userSecret",n);const s="/trade/{tradeId}".replace("{tradeId}",encodeURIComponent(String(void 0!==t?t:"-tradeId-"))),u=new URL(s,i.DUMMY_BASE_URL);let d;e&&(d=e.baseOptions);const l=Object.assign(Object.assign({method:"POST"},d),c),p=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},h={};yield(0,i.setApiKeyToObject)({object:h,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==r&&(h.userId=r),void 0!==n&&(h.userSecret=n),p["Content-Type"]="application/json";let g=d&&d.headers?d.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},p),g),c.headers),(0,a.requestBeforeHook)({requestBody:o,queryParameters:h,requestConfig:l,path:s,configuration:e,pathTemplate:"/trade/{tradeId}",httpMethod:"POST"}),l.data=(0,i.serializeDataIfNeeded)(o,l,e),(0,i.setSearchParams)(u,h),{url:(0,i.toPathString)(u),options:l}}),previewCryptoOrder:(t,r,n,o,c={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("previewCryptoOrder","userId",t),(0,i.assertParamExists)("previewCryptoOrder","userSecret",r),(0,i.assertParamExists)("previewCryptoOrder","accountId",n),(0,i.assertParamExists)("previewCryptoOrder","cryptoOrderForm",o);const s="/accounts/{accountId}/trading/crypto/preview".replace("{accountId}",encodeURIComponent(String(void 0!==n?n:"-accountId-"))),u=new URL(s,i.DUMMY_BASE_URL);let d;e&&(d=e.baseOptions);const l=Object.assign(Object.assign({method:"POST"},d),c),p=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},h={};yield(0,i.setApiKeyToObject)({object:h,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(h.userId=t),void 0!==r&&(h.userSecret=r),p["Content-Type"]="application/json";let g=d&&d.headers?d.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},p),g),c.headers),(0,a.requestBeforeHook)({requestBody:o,queryParameters:h,requestConfig:l,path:s,configuration:e,pathTemplate:"/accounts/{accountId}/trading/crypto/preview",httpMethod:"POST"}),l.data=(0,i.serializeDataIfNeeded)(o,l,e),(0,i.setSearchParams)(u,h),{url:(0,i.toPathString)(u),options:l}}),replaceOrder:(t,r,n,o,c={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("replaceOrder","accountId",t),(0,i.assertParamExists)("replaceOrder","userId",r),(0,i.assertParamExists)("replaceOrder","userSecret",n),(0,i.assertParamExists)("replaceOrder","manualTradeReplaceForm",o);const s="/accounts/{accountId}/trading/replace".replace("{accountId}",encodeURIComponent(String(void 0!==t?t:"-accountId-"))),u=new URL(s,i.DUMMY_BASE_URL);let d;e&&(d=e.baseOptions);const l=Object.assign(Object.assign({method:"POST"},d),c),p=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},h={};yield(0,i.setApiKeyToObject)({object:h,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==r&&(h.userId=r),void 0!==n&&(h.userSecret=n),p["Content-Type"]="application/json";let g=d&&d.headers?d.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},p),g),c.headers),(0,a.requestBeforeHook)({requestBody:o,queryParameters:h,requestConfig:l,path:s,configuration:e,pathTemplate:"/accounts/{accountId}/trading/replace",httpMethod:"POST"}),l.data=(0,i.serializeDataIfNeeded)(o,l,e),(0,i.setSearchParams)(u,h),{url:(0,i.toPathString)(u),options:l}}),searchCryptocurrencyPairInstruments:(t,r,n,o,c,u={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("searchCryptocurrencyPairInstruments","userId",t),(0,i.assertParamExists)("searchCryptocurrencyPairInstruments","userSecret",r),(0,i.assertParamExists)("searchCryptocurrencyPairInstruments","accountId",n);const s="/accounts/{accountId}/trading/instruments/cryptocurrencyPairs".replace("{accountId}",encodeURIComponent(String(void 0!==n?n:"-accountId-"))),d=new URL(s,i.DUMMY_BASE_URL);let l;e&&(l=e.baseOptions);const p=Object.assign(Object.assign({method:"GET"},l),u),h=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},g={};yield(0,i.setApiKeyToObject)({object:g,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:g,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(g.userId=t),void 0!==r&&(g.userSecret=r),void 0!==o&&(g.base=o),void 0!==c&&(g.quote=c);let f=l&&l.headers?l.headers:{};return p.headers=Object.assign(Object.assign(Object.assign({},h),f),u.headers),(0,a.requestBeforeHook)({queryParameters:g,requestConfig:p,path:s,configuration:e,pathTemplate:"/accounts/{accountId}/trading/instruments/cryptocurrencyPairs",httpMethod:"GET"}),(0,i.setSearchParams)(d,g),{url:(0,i.toPathString)(d),options:p}})}},t.TradingApiFp=function(e){const r=(0,t.TradingApiAxiosParamCreator)(e);return{cancelOrder(t,a){return s(this,void 0,void 0,function*(){const s={brokerage_order_id:t.brokerage_order_id},c=yield r.cancelOrder(t.userId,t.userSecret,t.accountId,s,a);return(0,i.createRequestFunction)(c,n.default,o.BASE_PATH,e)})},cancelUserAccountOrder(t,a){return s(this,void 0,void 0,function*(){const s={brokerage_order_id:t.brokerage_order_id},c=yield r.cancelUserAccountOrder(t.userId,t.userSecret,t.accountId,s,a);return(0,i.createRequestFunction)(c,n.default,o.BASE_PATH,e)})},getCryptocurrencyPairQuote(t,a){return s(this,void 0,void 0,function*(){const s=yield r.getCryptocurrencyPairQuote(t.userId,t.userSecret,t.accountId,t.instrumentSymbol,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},getOrderImpact(t,a){return s(this,void 0,void 0,function*(){const s={account_id:t.account_id,action:t.action,universal_symbol_id:t.universal_symbol_id,order_type:t.order_type,time_in_force:t.time_in_force,price:t.price,stop:t.stop,units:t.units,notional_value:t.notional_value},c=yield r.getOrderImpact(t.userId,t.userSecret,s,a);return(0,i.createRequestFunction)(c,n.default,o.BASE_PATH,e)})},getUserAccountQuotes(t,a){return s(this,void 0,void 0,function*(){const s=yield r.getUserAccountQuotes(t.userId,t.userSecret,t.symbols,t.accountId,t.useTicker,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},placeBracketOrder(t,a){return s(this,void 0,void 0,function*(){const s={action:t.action,symbol:t.symbol,instrument:t.instrument,order_type:t.order_type,time_in_force:t.time_in_force,price:t.price,stop:t.stop,units:t.units,stop_loss:t.stop_loss,take_profit:t.take_profit},c=yield r.placeBracketOrder(t.accountId,t.userId,t.userSecret,s,a);return(0,i.createRequestFunction)(c,n.default,o.BASE_PATH,e)})},placeCryptoOrder(t,a){return s(this,void 0,void 0,function*(){const s={instrument:t.instrument,side:t.side,type:t.type,time_in_force:t.time_in_force,amount:t.amount,limit_price:t.limit_price,stop_price:t.stop_price,post_only:t.post_only,expiration_date:t.expiration_date},c=yield r.placeCryptoOrder(t.userId,t.userSecret,t.accountId,s,a);return(0,i.createRequestFunction)(c,n.default,o.BASE_PATH,e)})},placeForceOrder(t,a){return s(this,void 0,void 0,function*(){const s={account_id:t.account_id,action:t.action,universal_symbol_id:t.universal_symbol_id,symbol:t.symbol,order_type:t.order_type,time_in_force:t.time_in_force,price:t.price,stop:t.stop,units:t.units,notional_value:t.notional_value},c=yield r.placeForceOrder(t.userId,t.userSecret,s,a);return(0,i.createRequestFunction)(c,n.default,o.BASE_PATH,e)})},placeMlegOrder(t,a){return s(this,void 0,void 0,function*(){const s={order_type:t.order_type,time_in_force:t.time_in_force,limit_price:t.limit_price,stop_price:t.stop_price,price_effect:t.price_effect,legs:t.legs},c=yield r.placeMlegOrder(t.userId,t.userSecret,t.accountId,s,a);return(0,i.createRequestFunction)(c,n.default,o.BASE_PATH,e)})},placeOrder(t,a){return s(this,void 0,void 0,function*(){const s={wait_to_confirm:t.wait_to_confirm},c=yield r.placeOrder(t.tradeId,t.userId,t.userSecret,s,a);return(0,i.createRequestFunction)(c,n.default,o.BASE_PATH,e)})},previewCryptoOrder(t,a){return s(this,void 0,void 0,function*(){const s={instrument:t.instrument,side:t.side,type:t.type,time_in_force:t.time_in_force,amount:t.amount,limit_price:t.limit_price,stop_price:t.stop_price,post_only:t.post_only,expiration_date:t.expiration_date},c=yield r.previewCryptoOrder(t.userId,t.userSecret,t.accountId,s,a);return(0,i.createRequestFunction)(c,n.default,o.BASE_PATH,e)})},replaceOrder(t,a){return s(this,void 0,void 0,function*(){const s={brokerage_order_id:t.brokerage_order_id,action:t.action,order_type:t.order_type,time_in_force:t.time_in_force,price:t.price,symbol:t.symbol,stop:t.stop,units:t.units},c=yield r.replaceOrder(t.accountId,t.userId,t.userSecret,s,a);return(0,i.createRequestFunction)(c,n.default,o.BASE_PATH,e)})},searchCryptocurrencyPairInstruments(t,a){return s(this,void 0,void 0,function*(){const s=yield r.searchCryptocurrencyPairInstruments(t.userId,t.userSecret,t.accountId,t.base,t.quote,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})}}},t.TradingApiFactory=function(e,r,s){const n=(0,t.TradingApiFp)(e);return{cancelOrder:(e,t)=>n.cancelOrder(e,t).then(e=>e(s,r)),cancelUserAccountOrder:(e,t)=>n.cancelUserAccountOrder(e,t).then(e=>e(s,r)),getCryptocurrencyPairQuote:(e,t)=>n.getCryptocurrencyPairQuote(e,t).then(e=>e(s,r)),getOrderImpact:(e,t)=>n.getOrderImpact(e,t).then(e=>e(s,r)),getUserAccountQuotes:(e,t)=>n.getUserAccountQuotes(e,t).then(e=>e(s,r)),placeBracketOrder:(e,t)=>n.placeBracketOrder(e,t).then(e=>e(s,r)),placeCryptoOrder:(e,t)=>n.placeCryptoOrder(e,t).then(e=>e(s,r)),placeForceOrder:(e,t)=>n.placeForceOrder(e,t).then(e=>e(s,r)),placeMlegOrder:(e,t)=>n.placeMlegOrder(e,t).then(e=>e(s,r)),placeOrder:(e,t)=>n.placeOrder(e,t).then(e=>e(s,r)),previewCryptoOrder:(e,t)=>n.previewCryptoOrder(e,t).then(e=>e(s,r)),replaceOrder:(e,t)=>n.replaceOrder(e,t).then(e=>e(s,r)),searchCryptocurrencyPairInstruments:(e,t)=>n.searchCryptocurrencyPairInstruments(e,t).then(e=>e(s,r))}};class c extends o.BaseAPI{cancelOrder(e,r){return(0,t.TradingApiFp)(this.configuration).cancelOrder(e,r).then(e=>e(this.axios,this.basePath))}cancelUserAccountOrder(e,r){return(0,t.TradingApiFp)(this.configuration).cancelUserAccountOrder(e,r).then(e=>e(this.axios,this.basePath))}getCryptocurrencyPairQuote(e,r){return(0,t.TradingApiFp)(this.configuration).getCryptocurrencyPairQuote(e,r).then(e=>e(this.axios,this.basePath))}getOrderImpact(e,r){return(0,t.TradingApiFp)(this.configuration).getOrderImpact(e,r).then(e=>e(this.axios,this.basePath))}getUserAccountQuotes(e,r){return(0,t.TradingApiFp)(this.configuration).getUserAccountQuotes(e,r).then(e=>e(this.axios,this.basePath))}placeBracketOrder(e,r){return(0,t.TradingApiFp)(this.configuration).placeBracketOrder(e,r).then(e=>e(this.axios,this.basePath))}placeCryptoOrder(e,r){return(0,t.TradingApiFp)(this.configuration).placeCryptoOrder(e,r).then(e=>e(this.axios,this.basePath))}placeForceOrder(e,r){return(0,t.TradingApiFp)(this.configuration).placeForceOrder(e,r).then(e=>e(this.axios,this.basePath))}placeMlegOrder(e,r){return(0,t.TradingApiFp)(this.configuration).placeMlegOrder(e,r).then(e=>e(this.axios,this.basePath))}placeOrder(e,r){return(0,t.TradingApiFp)(this.configuration).placeOrder(e,r).then(e=>e(this.axios,this.basePath))}previewCryptoOrder(e,r){return(0,t.TradingApiFp)(this.configuration).previewCryptoOrder(e,r).then(e=>e(this.axios,this.basePath))}replaceOrder(e,r){return(0,t.TradingApiFp)(this.configuration).replaceOrder(e,r).then(e=>e(this.axios,this.basePath))}searchCryptocurrencyPairInstruments(e,r){return(0,t.TradingApiFp)(this.configuration).searchCryptocurrencyPairInstruments(e,r).then(e=>e(this.axios,this.basePath))}}t.TradingApiGenerated=c},7602:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7615:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7707:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7854:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7867:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7906:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8015:function(e,t,r){"use strict";var s=this&&this.__awaiter||function(e,t,r,s){return new(r||(r=Promise))(function(n,i){function o(e){try{c(s.next(e))}catch(e){i(e)}}function a(e){try{c(s.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(o,a)}c((s=s.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectionsApiGenerated=t.ConnectionsApiFactory=t.ConnectionsApiFp=t.ConnectionsApiAxiosParamCreator=void 0;const n=r(8451),i=r(5511),o=r(4467),a=r(4445);t.ConnectionsApiAxiosParamCreator=function(e){return{detailBrokerageAuthorization:(t,r,n,o={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("detailBrokerageAuthorization","authorizationId",t),(0,i.assertParamExists)("detailBrokerageAuthorization","userId",r),(0,i.assertParamExists)("detailBrokerageAuthorization","userSecret",n);const s="/authorizations/{authorizationId}".replace("{authorizationId}",encodeURIComponent(String(void 0!==t?t:"-authorizationId-"))),c=new URL(s,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"GET"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==r&&(p.userId=r),void 0!==n&&(p.userSecret=n);let h=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),h),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:s,configuration:e,pathTemplate:"/authorizations/{authorizationId}",httpMethod:"GET"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}}),disableBrokerageAuthorization:(t,r,n,o={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("disableBrokerageAuthorization","authorizationId",t),(0,i.assertParamExists)("disableBrokerageAuthorization","userId",r),(0,i.assertParamExists)("disableBrokerageAuthorization","userSecret",n);const s="/authorizations/{authorizationId}/disable".replace("{authorizationId}",encodeURIComponent(String(void 0!==t?t:"-authorizationId-"))),c=new URL(s,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"POST"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==r&&(p.userId=r),void 0!==n&&(p.userSecret=n);let h=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),h),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:s,configuration:e,pathTemplate:"/authorizations/{authorizationId}/disable",httpMethod:"POST"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}}),listBrokerageAuthorizations:(t,r,n={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("listBrokerageAuthorizations","userId",t),(0,i.assertParamExists)("listBrokerageAuthorizations","userSecret",r);const s="/authorizations",o=new URL(s,i.DUMMY_BASE_URL);let c;e&&(c=e.baseOptions);const u=Object.assign(Object.assign({method:"GET"},c),n),d=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},l={};yield(0,i.setApiKeyToObject)({object:l,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:d,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(l.userId=t),void 0!==r&&(l.userSecret=r);let p=c&&c.headers?c.headers:{};return u.headers=Object.assign(Object.assign(Object.assign({},d),p),n.headers),(0,a.requestBeforeHook)({queryParameters:l,requestConfig:u,path:s,configuration:e,pathTemplate:"/authorizations",httpMethod:"GET"}),(0,i.setSearchParams)(o,l),{url:(0,i.toPathString)(o),options:u}}),refreshBrokerageAuthorization:(t,r,n,o={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("refreshBrokerageAuthorization","authorizationId",t),(0,i.assertParamExists)("refreshBrokerageAuthorization","userId",r),(0,i.assertParamExists)("refreshBrokerageAuthorization","userSecret",n);const s="/authorizations/{authorizationId}/refresh".replace("{authorizationId}",encodeURIComponent(String(void 0!==t?t:"-authorizationId-"))),c=new URL(s,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"POST"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==r&&(p.userId=r),void 0!==n&&(p.userSecret=n);let h=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),h),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:s,configuration:e,pathTemplate:"/authorizations/{authorizationId}/refresh",httpMethod:"POST"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}}),removeBrokerageAuthorization:(t,r,n,o={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("removeBrokerageAuthorization","authorizationId",t),(0,i.assertParamExists)("removeBrokerageAuthorization","userId",r),(0,i.assertParamExists)("removeBrokerageAuthorization","userSecret",n);const s="/authorizations/{authorizationId}".replace("{authorizationId}",encodeURIComponent(String(void 0!==t?t:"-authorizationId-"))),c=new URL(s,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"DELETE"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==r&&(p.userId=r),void 0!==n&&(p.userSecret=n);let h=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),h),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:s,configuration:e,pathTemplate:"/authorizations/{authorizationId}",httpMethod:"DELETE"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}}),returnRates:(t,r,n,o={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("returnRates","userId",t),(0,i.assertParamExists)("returnRates","userSecret",r),(0,i.assertParamExists)("returnRates","authorizationId",n);const s="/authorizations/{authorizationId}/returnRates".replace("{authorizationId}",encodeURIComponent(String(void 0!==n?n:"-authorizationId-"))),c=new URL(s,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"GET"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(p.userId=t),void 0!==r&&(p.userSecret=r);let h=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),h),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:s,configuration:e,pathTemplate:"/authorizations/{authorizationId}/returnRates",httpMethod:"GET"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}}),sessionEvents:(t,r,n,o={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("sessionEvents","partnerClientId",t);const s="/sessionEvents",c=new URL(s,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"GET"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(p.PartnerClientId=t),void 0!==r&&(p.userId=r),void 0!==n&&(p.sessionId=n);let h=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),h),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:s,configuration:e,pathTemplate:"/sessionEvents",httpMethod:"GET"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})}},t.ConnectionsApiFp=function(e){const r=(0,t.ConnectionsApiAxiosParamCreator)(e);return{detailBrokerageAuthorization(t,a){return s(this,void 0,void 0,function*(){const s=yield r.detailBrokerageAuthorization(t.authorizationId,t.userId,t.userSecret,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},disableBrokerageAuthorization(t,a){return s(this,void 0,void 0,function*(){const s=yield r.disableBrokerageAuthorization(t.authorizationId,t.userId,t.userSecret,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},listBrokerageAuthorizations(t,a){return s(this,void 0,void 0,function*(){const s=yield r.listBrokerageAuthorizations(t.userId,t.userSecret,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},refreshBrokerageAuthorization(t,a){return s(this,void 0,void 0,function*(){const s=yield r.refreshBrokerageAuthorization(t.authorizationId,t.userId,t.userSecret,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},removeBrokerageAuthorization(t,a){return s(this,void 0,void 0,function*(){const s=yield r.removeBrokerageAuthorization(t.authorizationId,t.userId,t.userSecret,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},returnRates(t,a){return s(this,void 0,void 0,function*(){const s=yield r.returnRates(t.userId,t.userSecret,t.authorizationId,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},sessionEvents(t,a){return s(this,void 0,void 0,function*(){const s=yield r.sessionEvents(t.partnerClientId,t.userId,t.sessionId,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})}}},t.ConnectionsApiFactory=function(e,r,s){const n=(0,t.ConnectionsApiFp)(e);return{detailBrokerageAuthorization:(e,t)=>n.detailBrokerageAuthorization(e,t).then(e=>e(s,r)),disableBrokerageAuthorization:(e,t)=>n.disableBrokerageAuthorization(e,t).then(e=>e(s,r)),listBrokerageAuthorizations:(e,t)=>n.listBrokerageAuthorizations(e,t).then(e=>e(s,r)),refreshBrokerageAuthorization:(e,t)=>n.refreshBrokerageAuthorization(e,t).then(e=>e(s,r)),removeBrokerageAuthorization:(e,t)=>n.removeBrokerageAuthorization(e,t).then(e=>e(s,r)),returnRates:(e,t)=>n.returnRates(e,t).then(e=>e(s,r)),sessionEvents:(e,t)=>n.sessionEvents(e,t).then(e=>e(s,r))}};class c extends o.BaseAPI{detailBrokerageAuthorization(e,r){return(0,t.ConnectionsApiFp)(this.configuration).detailBrokerageAuthorization(e,r).then(e=>e(this.axios,this.basePath))}disableBrokerageAuthorization(e,r){return(0,t.ConnectionsApiFp)(this.configuration).disableBrokerageAuthorization(e,r).then(e=>e(this.axios,this.basePath))}listBrokerageAuthorizations(e,r){return(0,t.ConnectionsApiFp)(this.configuration).listBrokerageAuthorizations(e,r).then(e=>e(this.axios,this.basePath))}refreshBrokerageAuthorization(e,r){return(0,t.ConnectionsApiFp)(this.configuration).refreshBrokerageAuthorization(e,r).then(e=>e(this.axios,this.basePath))}removeBrokerageAuthorization(e,r){return(0,t.ConnectionsApiFp)(this.configuration).removeBrokerageAuthorization(e,r).then(e=>e(this.axios,this.basePath))}returnRates(e,r){return(0,t.ConnectionsApiFp)(this.configuration).returnRates(e,r).then(e=>e(this.axios,this.basePath))}sessionEvents(e,r){return(0,t.ConnectionsApiFp)(this.configuration).sessionEvents(e,r).then(e=>e(this.axios,this.basePath))}}t.ConnectionsApiGenerated=c},8032:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8038:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8066:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8190:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||s(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.AuthenticationApi=void 0;const i=r(3814);n(r(3814),t);class o extends i.AuthenticationApiGenerated{}t.AuthenticationApi=o},8222:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8270:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||s(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.AccountInformationApi=void 0;const i=r(9190);n(r(9190),t);class o extends i.AccountInformationApiGenerated{}t.AccountInformationApi=o},8305:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8329:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8377:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8451:(e,t,r)=>{"use strict";function s(e,t){return function(){return e.apply(t,arguments)}}const{toString:n}=Object.prototype,{getPrototypeOf:i}=Object,{iterator:o,toStringTag:a}=Symbol,c=(u=Object.create(null),e=>{const t=n.call(e);return u[t]||(u[t]=t.slice(8,-1).toLowerCase())});var u;const d=e=>(e=e.toLowerCase(),t=>c(t)===e),l=e=>t=>typeof t===e,{isArray:p}=Array,h=l("undefined"),g=d("ArrayBuffer"),f=l("string"),y=l("function"),m=l("number"),b=e=>null!==e&&"object"==typeof e,O=e=>{if("object"!==c(e))return!1;const t=i(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||a in e||o in e)},A=d("Date"),P=d("File"),j=d("Blob"),v=d("FileList"),S=d("URLSearchParams"),[_,T,k,I]=["ReadableStream","Request","Response","Headers"].map(d);function E(e,t,{allOwnKeys:r=!1}={}){if(null==e)return;let s,n;if("object"!=typeof e&&(e=[e]),p(e))for(s=0,n=e.length;s<n;s++)t.call(null,e[s],s,e);else{const n=r?Object.getOwnPropertyNames(e):Object.keys(e),i=n.length;let o;for(s=0;s<i;s++)o=n[s],t.call(null,e[o],o,e)}}function U(e,t){t=t.toLowerCase();const r=Object.keys(e);let s,n=r.length;for(;n-- >0;)if(s=r[n],t===s.toLowerCase())return s;return null}const R="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:r.g,w=e=>!h(e)&&e!==R,B=(x="undefined"!=typeof Uint8Array&&i(Uint8Array),e=>x&&e instanceof x);var x;const M=d("HTMLFormElement"),C=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),q=d("RegExp"),N=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),s={};E(r,(r,n)=>{let i;!1!==(i=t(r,n,e))&&(s[n]=i||r)}),Object.defineProperties(e,s)},F=d("AsyncFunction"),D=(K="function"==typeof setImmediate,L=y(R.postMessage),K?setImmediate:L?(H=`axios@${Math.random()}`,z=[],R.addEventListener("message",({source:e,data:t})=>{e===R&&t===H&&z.length&&z.shift()()},!1),e=>{z.push(e),R.postMessage(H,"*")}):e=>setTimeout(e));var K,L,H,z;const G="undefined"!=typeof queueMicrotask?queueMicrotask.bind(R):"undefined"!=typeof process&&process.nextTick||D;var Y={isArray:p,isArrayBuffer:g,isBuffer:function(e){return null!==e&&!h(e)&&null!==e.constructor&&!h(e.constructor)&&y(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||y(e.append)&&("formdata"===(t=c(e))||"object"===t&&y(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&g(e.buffer),t},isString:f,isNumber:m,isBoolean:e=>!0===e||!1===e,isObject:b,isPlainObject:O,isReadableStream:_,isRequest:T,isResponse:k,isHeaders:I,isUndefined:h,isDate:A,isFile:P,isBlob:j,isRegExp:q,isFunction:y,isStream:e=>b(e)&&y(e.pipe),isURLSearchParams:S,isTypedArray:B,isFileList:v,forEach:E,merge:function e(){const{caseless:t}=w(this)&&this||{},r={},s=(s,n)=>{const i=t&&U(r,n)||n;O(r[i])&&O(s)?r[i]=e(r[i],s):O(s)?r[i]=e({},s):p(s)?r[i]=s.slice():r[i]=s};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&E(arguments[e],s);return r},extend:(e,t,r,{allOwnKeys:n}={})=>(E(t,(t,n)=>{r&&y(t)?e[n]=s(t,r):e[n]=t},{allOwnKeys:n}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,s)=>{e.prototype=Object.create(t.prototype,s),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,s)=>{let n,o,a;const c={};if(t=t||{},null==e)return t;do{for(n=Object.getOwnPropertyNames(e),o=n.length;o-- >0;)a=n[o],s&&!s(a,e,t)||c[a]||(t[a]=e[a],c[a]=!0);e=!1!==r&&i(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:c,kindOfTest:d,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;const s=e.indexOf(t,r);return-1!==s&&s===r},toArray:e=>{if(!e)return null;if(p(e))return e;let t=e.length;if(!m(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{const r=(e&&e[o]).call(e);let s;for(;(s=r.next())&&!s.done;){const r=s.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>{let r;const s=[];for(;null!==(r=e.exec(t));)s.push(r);return s},isHTMLForm:M,hasOwnProperty:C,hasOwnProp:C,reduceDescriptors:N,freezeMethods:e=>{N(e,(t,r)=>{if(y(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const s=e[r];y(s)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))})},toObjectSet:(e,t)=>{const r={},s=e=>{e.forEach(e=>{r[e]=!0})};return p(e)?s(e):s(String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,r){return t.toUpperCase()+r}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:U,global:R,isContextDefined:w,isSpecCompliantForm:function(e){return!!(e&&y(e.append)&&"FormData"===e[a]&&e[o])},toJSONObject:e=>{const t=new Array(10),r=(e,s)=>{if(b(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[s]=e;const n=p(e)?[]:{};return E(e,(e,t)=>{const i=r(e,s+1);!h(i)&&(n[t]=i)}),t[s]=void 0,n}}return e};return r(e,0)},isAsyncFn:F,isThenable:e=>e&&(b(e)||y(e))&&y(e.then)&&y(e.catch),setImmediate:D,asap:G,isIterable:e=>null!=e&&y(e[o])};function J(e,t,r,s,n){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),s&&(this.request=s),n&&(this.response=n,this.status=n.status?n.status:null)}Y.inherits(J,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Y.toJSONObject(this.config),code:this.code,status:this.status}}});const $=J.prototype,Q={};function W(e){return Y.isPlainObject(e)||Y.isArray(e)}function V(e){return Y.endsWith(e,"[]")?e.slice(0,-2):e}function X(e,t,r){return e?e.concat(t).map(function(e,t){return e=V(e),!r&&t?"["+e+"]":e}).join(r?".":""):t}["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Q[e]={value:e}}),Object.defineProperties(J,Q),Object.defineProperty($,"isAxiosError",{value:!0}),J.from=(e,t,r,s,n,i)=>{const o=Object.create($);return Y.toFlatObject(e,o,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e),J.call(o,e.message,t,r,s,n),o.cause=e,o.name=e.name,i&&Object.assign(o,i),o};const Z=Y.toFlatObject(Y,{},null,function(e){return/^is[A-Z]/.test(e)});function ee(e,t,r){if(!Y.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const s=(r=Y.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!Y.isUndefined(t[e])})).metaTokens,n=r.visitor||u,i=r.dots,o=r.indexes,a=(r.Blob||"undefined"!=typeof Blob&&Blob)&&Y.isSpecCompliantForm(t);if(!Y.isFunction(n))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(Y.isDate(e))return e.toISOString();if(Y.isBoolean(e))return e.toString();if(!a&&Y.isBlob(e))throw new J("Blob is not supported. Use a Buffer instead.");return Y.isArrayBuffer(e)||Y.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,r,n){let a=e;if(e&&!n&&"object"==typeof e)if(Y.endsWith(r,"{}"))r=s?r:r.slice(0,-2),e=JSON.stringify(e);else if(Y.isArray(e)&&function(e){return Y.isArray(e)&&!e.some(W)}(e)||(Y.isFileList(e)||Y.endsWith(r,"[]"))&&(a=Y.toArray(e)))return r=V(r),a.forEach(function(e,s){!Y.isUndefined(e)&&null!==e&&t.append(!0===o?X([r],s,i):null===o?r:r+"[]",c(e))}),!1;return!!W(e)||(t.append(X(n,r,i),c(e)),!1)}const d=[],l=Object.assign(Z,{defaultVisitor:u,convertValue:c,isVisitable:W});if(!Y.isObject(e))throw new TypeError("data must be an object");return function e(r,s){if(!Y.isUndefined(r)){if(-1!==d.indexOf(r))throw Error("Circular reference detected in "+s.join("."));d.push(r),Y.forEach(r,function(r,i){!0===(!(Y.isUndefined(r)||null===r)&&n.call(t,r,Y.isString(i)?i.trim():i,s,l))&&e(r,s?s.concat(i):[i])}),d.pop()}}(e),t}function te(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function re(e,t){this._pairs=[],e&&ee(e,this,t)}const se=re.prototype;function ne(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ie(e,t,r){if(!t)return e;const s=r&&r.encode||ne;Y.isFunction(r)&&(r={serialize:r});const n=r&&r.serialize;let i;if(i=n?n(t,r):Y.isURLSearchParams(t)?t.toString():new re(t,r).toString(s),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}se.append=function(e,t){this._pairs.push([e,t])},se.toString=function(e){const t=e?function(t){return e.call(this,t,te)}:te;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};var oe=class{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Y.forEach(this.handlers,function(t){null!==t&&e(t)})}},ae={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ce={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:re,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const ue="undefined"!=typeof window&&"undefined"!=typeof document,de="object"==typeof navigator&&navigator||void 0,le=ue&&(!de||["ReactNative","NativeScript","NS"].indexOf(de.product)<0),pe="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,he=ue&&window.location.href||"http://localhost";var ge={...Object.freeze({__proto__:null,hasBrowserEnv:ue,hasStandardBrowserWebWorkerEnv:pe,hasStandardBrowserEnv:le,navigator:de,origin:he}),...ce};function fe(e){function t(e,r,s,n){let i=e[n++];if("__proto__"===i)return!0;const o=Number.isFinite(+i),a=n>=e.length;return i=!i&&Y.isArray(s)?s.length:i,a?(Y.hasOwnProp(s,i)?s[i]=[s[i],r]:s[i]=r,!o):(s[i]&&Y.isObject(s[i])||(s[i]=[]),t(e,r,s[i],n)&&Y.isArray(s[i])&&(s[i]=function(e){const t={},r=Object.keys(e);let s;const n=r.length;let i;for(s=0;s<n;s++)i=r[s],t[i]=e[i];return t}(s[i])),!o)}if(Y.isFormData(e)&&Y.isFunction(e.entries)){const r={};return Y.forEachEntry(e,(e,s)=>{t(function(e){return Y.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),s,r,0)}),r}return null}const ye={transitional:ae,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",s=r.indexOf("application/json")>-1,n=Y.isObject(e);if(n&&Y.isHTMLForm(e)&&(e=new FormData(e)),Y.isFormData(e))return s?JSON.stringify(fe(e)):e;if(Y.isArrayBuffer(e)||Y.isBuffer(e)||Y.isStream(e)||Y.isFile(e)||Y.isBlob(e)||Y.isReadableStream(e))return e;if(Y.isArrayBufferView(e))return e.buffer;if(Y.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(n){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return ee(e,new ge.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,s){return ge.isNode&&Y.isBuffer(e)?(this.append(t,e.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=Y.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return ee(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return n||s?(t.setContentType("application/json",!1),function(e){if(Y.isString(e))try{return(0,JSON.parse)(e),Y.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||ye.transitional,r=t&&t.forcedJSONParsing,s="json"===this.responseType;if(Y.isResponse(e)||Y.isReadableStream(e))return e;if(e&&Y.isString(e)&&(r&&!this.responseType||s)){const r=!(t&&t.silentJSONParsing)&&s;try{return JSON.parse(e)}catch(e){if(r){if("SyntaxError"===e.name)throw J.from(e,J.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ge.classes.FormData,Blob:ge.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Y.forEach(["delete","get","head","post","put","patch"],e=>{ye.headers[e]={}});var me=ye;const be=Y.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Oe=Symbol("internals");function Ae(e){return e&&String(e).trim().toLowerCase()}function Pe(e){return!1===e||null==e?e:Y.isArray(e)?e.map(Pe):String(e)}function je(e,t,r,s,n){return Y.isFunction(s)?s.call(this,t,r):(n&&(t=r),Y.isString(t)?Y.isString(s)?-1!==t.indexOf(s):Y.isRegExp(s)?s.test(t):void 0:void 0)}class ve{constructor(e){e&&this.set(e)}set(e,t,r){const s=this;function n(e,t,r){const n=Ae(t);if(!n)throw new Error("header name must be a non-empty string");const i=Y.findKey(s,n);(!i||void 0===s[i]||!0===r||void 0===r&&!1!==s[i])&&(s[i||t]=Pe(e))}const i=(e,t)=>Y.forEach(e,(e,r)=>n(e,r,t));if(Y.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(Y.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let r,s,n;return e&&e.split("\n").forEach(function(e){n=e.indexOf(":"),r=e.substring(0,n).trim().toLowerCase(),s=e.substring(n+1).trim(),!r||t[r]&&be[r]||("set-cookie"===r?t[r]?t[r].push(s):t[r]=[s]:t[r]=t[r]?t[r]+", "+s:s)}),t})(e),t);else if(Y.isObject(e)&&Y.isIterable(e)){let r,s,n={};for(const t of e){if(!Y.isArray(t))throw TypeError("Object iterator must return a key-value pair");n[s=t[0]]=(r=n[s])?Y.isArray(r)?[...r,t[1]]:[r,t[1]]:t[1]}i(n,t)}else null!=e&&n(t,e,r);return this}get(e,t){if(e=Ae(e)){const r=Y.findKey(this,e);if(r){const e=this[r];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=r.exec(e);)t[s[1]]=s[2];return t}(e);if(Y.isFunction(t))return t.call(this,e,r);if(Y.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Ae(e)){const r=Y.findKey(this,e);return!(!r||void 0===this[r]||t&&!je(0,this[r],r,t))}return!1}delete(e,t){const r=this;let s=!1;function n(e){if(e=Ae(e)){const n=Y.findKey(r,e);!n||t&&!je(0,r[n],n,t)||(delete r[n],s=!0)}}return Y.isArray(e)?e.forEach(n):n(e),s}clear(e){const t=Object.keys(this);let r=t.length,s=!1;for(;r--;){const n=t[r];e&&!je(0,this[n],n,e,!0)||(delete this[n],s=!0)}return s}normalize(e){const t=this,r={};return Y.forEach(this,(s,n)=>{const i=Y.findKey(r,n);if(i)return t[i]=Pe(s),void delete t[n];const o=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r)}(n):String(n).trim();o!==n&&delete t[n],t[o]=Pe(s),r[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Y.forEach(this,(r,s)=>{null!=r&&!1!==r&&(t[s]=e&&Y.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach(e=>r.set(e)),r}static accessor(e){const t=(this[Oe]=this[Oe]={accessors:{}}).accessors,r=this.prototype;function s(e){const s=Ae(e);t[s]||(function(e,t){const r=Y.toCamelCase(" "+t);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+r,{value:function(e,r,n){return this[s].call(this,t,e,r,n)},configurable:!0})})}(r,e),t[s]=!0)}return Y.isArray(e)?e.forEach(s):s(e),this}}ve.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Y.reduceDescriptors(ve.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}}),Y.freezeMethods(ve);var Se=ve;function _e(e,t){const r=this||me,s=t||r,n=Se.from(s.headers);let i=s.data;return Y.forEach(e,function(e){i=e.call(r,i,n.normalize(),t?t.status:void 0)}),n.normalize(),i}function Te(e){return!(!e||!e.__CANCEL__)}function ke(e,t,r){J.call(this,null==e?"canceled":e,J.ERR_CANCELED,t,r),this.name="CanceledError"}function Ie(e,t,r){const s=r.config.validateStatus;r.status&&s&&!s(r.status)?t(new J("Request failed with status code "+r.status,[J.ERR_BAD_REQUEST,J.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}Y.inherits(ke,J,{__CANCEL__:!0});const Ee=(e,t,r=3)=>{let s=0;const n=function(e,t){e=e||10;const r=new Array(e),s=new Array(e);let n,i=0,o=0;return t=void 0!==t?t:1e3,function(a){const c=Date.now(),u=s[o];n||(n=c),r[i]=a,s[i]=c;let d=o,l=0;for(;d!==i;)l+=r[d++],d%=e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),c-n<t)return;const p=u&&c-u;return p?Math.round(1e3*l/p):void 0}}(50,250);return function(e,t){let r,s,n=0,i=1e3/t;const o=(t,i=Date.now())=>{n=i,r=null,s&&(clearTimeout(s),s=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),a=t-n;a>=i?o(e,t):(r=e,s||(s=setTimeout(()=>{s=null,o(r)},i-a)))},()=>r&&o(r)]}(r=>{const i=r.loaded,o=r.lengthComputable?r.total:void 0,a=i-s,c=n(a);s=i,e({loaded:i,total:o,progress:o?i/o:void 0,bytes:a,rate:c||void 0,estimated:c&&o&&i<=o?(o-i)/c:void 0,event:r,lengthComputable:null!=o,[t?"download":"upload"]:!0})},r)},Ue=(e,t)=>{const r=null!=e;return[s=>t[0]({lengthComputable:r,total:e,loaded:s}),t[1]]},Re=e=>(...t)=>Y.asap(()=>e(...t));var we=ge.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,ge.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(ge.origin),ge.navigator&&/(msie|trident)/i.test(ge.navigator.userAgent)):()=>!0,Be=ge.hasStandardBrowserEnv?{write(e,t,r,s,n,i){const o=[e+"="+encodeURIComponent(t)];Y.isNumber(r)&&o.push("expires="+new Date(r).toGMTString()),Y.isString(s)&&o.push("path="+s),Y.isString(n)&&o.push("domain="+n),!0===i&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function xe(e,t,r){let s=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(s||0==r)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Me=e=>e instanceof Se?{...e}:e;function Ce(e,t){t=t||{};const r={};function s(e,t,r,s){return Y.isPlainObject(e)&&Y.isPlainObject(t)?Y.merge.call({caseless:s},e,t):Y.isPlainObject(t)?Y.merge({},t):Y.isArray(t)?t.slice():t}function n(e,t,r,n){return Y.isUndefined(t)?Y.isUndefined(e)?void 0:s(void 0,e,0,n):s(e,t,0,n)}function i(e,t){if(!Y.isUndefined(t))return s(void 0,t)}function o(e,t){return Y.isUndefined(t)?Y.isUndefined(e)?void 0:s(void 0,e):s(void 0,t)}function a(r,n,i){return i in t?s(r,n):i in e?s(void 0,r):void 0}const c={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(e,t,r)=>n(Me(e),Me(t),0,!0)};return Y.forEach(Object.keys(Object.assign({},e,t)),function(s){const i=c[s]||n,o=i(e[s],t[s],s);Y.isUndefined(o)&&i!==a||(r[s]=o)}),r}var qe=e=>{const t=Ce({},e);let r,{data:s,withXSRFToken:n,xsrfHeaderName:i,xsrfCookieName:o,headers:a,auth:c}=t;if(t.headers=a=Se.from(a),t.url=ie(xe(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),c&&a.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),Y.isFormData(s))if(ge.hasStandardBrowserEnv||ge.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(!1!==(r=a.getContentType())){const[e,...t]=r?r.split(";").map(e=>e.trim()).filter(Boolean):[];a.setContentType([e||"multipart/form-data",...t].join("; "))}if(ge.hasStandardBrowserEnv&&(n&&Y.isFunction(n)&&(n=n(t)),n||!1!==n&&we(t.url))){const e=i&&o&&Be.read(o);e&&a.set(i,e)}return t},Ne="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,r){const s=qe(e);let n=s.data;const i=Se.from(s.headers).normalize();let o,a,c,u,d,{responseType:l,onUploadProgress:p,onDownloadProgress:h}=s;function g(){u&&u(),d&&d(),s.cancelToken&&s.cancelToken.unsubscribe(o),s.signal&&s.signal.removeEventListener("abort",o)}let f=new XMLHttpRequest;function y(){if(!f)return;const s=Se.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders());Ie(function(e){t(e),g()},function(e){r(e),g()},{data:l&&"text"!==l&&"json"!==l?f.response:f.responseText,status:f.status,statusText:f.statusText,headers:s,config:e,request:f}),f=null}f.open(s.method.toUpperCase(),s.url,!0),f.timeout=s.timeout,"onloadend"in f?f.onloadend=y:f.onreadystatechange=function(){f&&4===f.readyState&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))&&setTimeout(y)},f.onabort=function(){f&&(r(new J("Request aborted",J.ECONNABORTED,e,f)),f=null)},f.onerror=function(){r(new J("Network Error",J.ERR_NETWORK,e,f)),f=null},f.ontimeout=function(){let t=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const n=s.transitional||ae;s.timeoutErrorMessage&&(t=s.timeoutErrorMessage),r(new J(t,n.clarifyTimeoutError?J.ETIMEDOUT:J.ECONNABORTED,e,f)),f=null},void 0===n&&i.setContentType(null),"setRequestHeader"in f&&Y.forEach(i.toJSON(),function(e,t){f.setRequestHeader(t,e)}),Y.isUndefined(s.withCredentials)||(f.withCredentials=!!s.withCredentials),l&&"json"!==l&&(f.responseType=s.responseType),h&&([c,d]=Ee(h,!0),f.addEventListener("progress",c)),p&&f.upload&&([a,u]=Ee(p),f.upload.addEventListener("progress",a),f.upload.addEventListener("loadend",u)),(s.cancelToken||s.signal)&&(o=t=>{f&&(r(!t||t.type?new ke(null,e,f):t),f.abort(),f=null)},s.cancelToken&&s.cancelToken.subscribe(o),s.signal&&(s.signal.aborted?o():s.signal.addEventListener("abort",o)));const m=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(s.url);m&&-1===ge.protocols.indexOf(m)?r(new J("Unsupported protocol "+m+":",J.ERR_BAD_REQUEST,e)):f.send(n||null)})},Fe=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let r,s=new AbortController;const n=function(e){if(!r){r=!0,o();const t=e instanceof Error?e:this.reason;s.abort(t instanceof J?t:new ke(t instanceof Error?t.message:t))}};let i=t&&setTimeout(()=>{i=null,n(new J(`timeout ${t} of ms exceeded`,J.ETIMEDOUT))},t);const o=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(n):e.removeEventListener("abort",n)}),e=null)};e.forEach(e=>e.addEventListener("abort",n));const{signal:a}=s;return a.unsubscribe=()=>Y.asap(o),a}};const De=function*(e,t){let r=e.byteLength;if(!t||r<t)return void(yield e);let s,n=0;for(;n<r;)s=n+t,yield e.slice(n,s),n=s},Ke=(e,t,r,s)=>{const n=async function*(e,t){for await(const r of async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:r}=await t.read();if(e)break;yield r}}finally{await t.cancel()}}(e))yield*De(r,t)}(e,t);let i,o=0,a=e=>{i||(i=!0,s&&s(e))};return new ReadableStream({async pull(e){try{const{done:t,value:s}=await n.next();if(t)return a(),void e.close();let i=s.byteLength;if(r){let e=o+=i;r(e)}e.enqueue(new Uint8Array(s))}catch(e){throw a(e),e}},cancel:e=>(a(e),n.return())},{highWaterMark:2})},Le="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,He=Le&&"function"==typeof ReadableStream,ze=Le&&("function"==typeof TextEncoder?(Ge=new TextEncoder,e=>Ge.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var Ge;const Ye=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},Je=He&&Ye(()=>{let e=!1;const t=new Request(ge.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),$e=He&&Ye(()=>Y.isReadableStream(new Response("").body)),Qe={stream:$e&&(e=>e.body)};var We;Le&&(We=new Response,["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!Qe[e]&&(Qe[e]=Y.isFunction(We[e])?t=>t[e]():(t,r)=>{throw new J(`Response type '${e}' is not supported`,J.ERR_NOT_SUPPORT,r)})}));const Ve={http:null,xhr:Ne,fetch:Le&&(async e=>{let{url:t,method:r,data:s,signal:n,cancelToken:i,timeout:o,onDownloadProgress:a,onUploadProgress:c,responseType:u,headers:d,withCredentials:l="same-origin",fetchOptions:p}=qe(e);u=u?(u+"").toLowerCase():"text";let h,g=Fe([n,i&&i.toAbortSignal()],o);const f=g&&g.unsubscribe&&(()=>{g.unsubscribe()});let y;try{if(c&&Je&&"get"!==r&&"head"!==r&&0!==(y=await(async(e,t)=>{const r=Y.toFiniteNumber(e.getContentLength());return null==r?(async e=>{if(null==e)return 0;if(Y.isBlob(e))return e.size;if(Y.isSpecCompliantForm(e)){const t=new Request(ge.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return Y.isArrayBufferView(e)||Y.isArrayBuffer(e)?e.byteLength:(Y.isURLSearchParams(e)&&(e+=""),Y.isString(e)?(await ze(e)).byteLength:void 0)})(t):r})(d,s))){let e,r=new Request(t,{method:"POST",body:s,duplex:"half"});if(Y.isFormData(s)&&(e=r.headers.get("content-type"))&&d.setContentType(e),r.body){const[e,t]=Ue(y,Ee(Re(c)));s=Ke(r.body,65536,e,t)}}Y.isString(l)||(l=l?"include":"omit");const n="credentials"in Request.prototype;h=new Request(t,{...p,signal:g,method:r.toUpperCase(),headers:d.normalize().toJSON(),body:s,duplex:"half",credentials:n?l:void 0});let i=await fetch(h,p);const o=$e&&("stream"===u||"response"===u);if($e&&(a||o&&f)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=i[t]});const t=Y.toFiniteNumber(i.headers.get("content-length")),[r,s]=a&&Ue(t,Ee(Re(a),!0))||[];i=new Response(Ke(i.body,65536,r,()=>{s&&s(),f&&f()}),e)}u=u||"text";let m=await Qe[Y.findKey(Qe,u)||"text"](i,e);return!o&&f&&f(),await new Promise((t,r)=>{Ie(t,r,{data:m,headers:Se.from(i.headers),status:i.status,statusText:i.statusText,config:e,request:h})})}catch(t){if(f&&f(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new J("Network Error",J.ERR_NETWORK,e,h),{cause:t.cause||t});throw J.from(t,t&&t.code,e,h)}})};Y.forEach(Ve,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});const Xe=e=>`- ${e}`,Ze=e=>Y.isFunction(e)||null===e||!1===e;var et=e=>{e=Y.isArray(e)?e:[e];const{length:t}=e;let r,s;const n={};for(let i=0;i<t;i++){let t;if(r=e[i],s=r,!Ze(r)&&(s=Ve[(t=String(r)).toLowerCase()],void 0===s))throw new J(`Unknown adapter '${t}'`);if(s)break;n[t||"#"+i]=s}if(!s){const e=Object.entries(n).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new J("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(Xe).join("\n"):" "+Xe(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return s};function tt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ke(null,e)}function rt(e){return tt(e),e.headers=Se.from(e.headers),e.data=_e.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),et(e.adapter||me.adapter)(e).then(function(t){return tt(e),t.data=_e.call(e,e.transformResponse,t),t.headers=Se.from(t.headers),t},function(t){return Te(t)||(tt(e),t&&t.response&&(t.response.data=_e.call(e,e.transformResponse,t.response),t.response.headers=Se.from(t.response.headers))),Promise.reject(t)})}const st="1.10.0",nt={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{nt[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const it={};nt.transitional=function(e,t,r){function s(e,t){return"[Axios v"+st+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,n,i)=>{if(!1===e)throw new J(s(n," has been removed"+(t?" in "+t:"")),J.ERR_DEPRECATED);return t&&!it[n]&&(it[n]=!0,console.warn(s(n," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,n,i)}},nt.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};var ot={assertOptions:function(e,t,r){if("object"!=typeof e)throw new J("options must be an object",J.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let n=s.length;for(;n-- >0;){const i=s[n],o=t[i];if(o){const t=e[i],r=void 0===t||o(t,i,e);if(!0!==r)throw new J("option "+i+" must be "+r,J.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new J("Unknown option "+i,J.ERR_BAD_OPTION)}},validators:nt};const at=ot.validators;class ct{constructor(e){this.defaults=e||{},this.interceptors={request:new oe,response:new oe}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const r=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?r&&!String(e.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+r):e.stack=r}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Ce(this.defaults,t);const{transitional:r,paramsSerializer:s,headers:n}=t;void 0!==r&&ot.assertOptions(r,{silentJSONParsing:at.transitional(at.boolean),forcedJSONParsing:at.transitional(at.boolean),clarifyTimeoutError:at.transitional(at.boolean)},!1),null!=s&&(Y.isFunction(s)?t.paramsSerializer={serialize:s}:ot.assertOptions(s,{encode:at.function,serialize:at.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),ot.assertOptions(t,{baseUrl:at.spelling("baseURL"),withXsrfToken:at.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=n&&Y.merge(n.common,n[t.method]);n&&Y.forEach(["delete","get","head","post","put","patch","common"],e=>{delete n[e]}),t.headers=Se.concat(i,n);const o=[];let a=!0;this.interceptors.request.forEach(function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,o.unshift(e.fulfilled,e.rejected))});const c=[];let u;this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let d,l=0;if(!a){const e=[rt.bind(this),void 0];for(e.unshift.apply(e,o),e.push.apply(e,c),d=e.length,u=Promise.resolve(t);l<d;)u=u.then(e[l++],e[l++]);return u}d=o.length;let p=t;for(l=0;l<d;){const e=o[l++],t=o[l++];try{p=e(p)}catch(e){t.call(this,e);break}}try{u=rt.call(this,p)}catch(e){return Promise.reject(e)}for(l=0,d=c.length;l<d;)u=u.then(c[l++],c[l++]);return u}getUri(e){return ie(xe((e=Ce(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}Y.forEach(["delete","get","head","options"],function(e){ct.prototype[e]=function(t,r){return this.request(Ce(r||{},{method:e,url:t,data:(r||{}).data}))}}),Y.forEach(["post","put","patch"],function(e){function t(t){return function(r,s,n){return this.request(Ce(n||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:s}))}}ct.prototype[e]=t(),ct.prototype[e+"Form"]=t(!0)});var ut=ct;class dt{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const r=this;this.promise.then(e=>{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null}),this.promise.then=e=>{let t;const s=new Promise(e=>{r.subscribe(e),t=e}).then(e);return s.cancel=function(){r.unsubscribe(t)},s},e(function(e,s,n){r.reason||(r.reason=new ke(e,s,n),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new dt(function(t){e=t}),cancel:e}}}var lt=dt;const pt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(pt).forEach(([e,t])=>{pt[t]=e});var ht=pt;const gt=function e(t){const r=new ut(t),n=s(ut.prototype.request,r);return Y.extend(n,ut.prototype,r,{allOwnKeys:!0}),Y.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return e(Ce(t,r))},n}(me);gt.Axios=ut,gt.CanceledError=ke,gt.CancelToken=lt,gt.isCancel=Te,gt.VERSION=st,gt.toFormData=ee,gt.AxiosError=J,gt.Cancel=gt.CanceledError,gt.all=function(e){return Promise.all(e)},gt.spread=function(e){return function(t){return e.apply(null,t)}},gt.isAxiosError=function(e){return Y.isObject(e)&&!0===e.isAxiosError},gt.mergeConfig=Ce,gt.AxiosHeaders=Se,gt.formToJSON=e=>fe(Y.isHTMLForm(e)?new FormData(e):e),gt.getAdapter=et,gt.HttpStatusCode=ht,gt.default=gt,e.exports=gt},8486:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8498:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8564:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||s(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),n(r(8270),t),n(r(6227),t),n(r(8190),t),n(r(4375),t),n(r(4188),t),n(r(5198),t),n(r(3603),t),n(r(8660),t)},8660:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||s(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.TransactionsAndReportingApi=void 0;const i=r(8936);n(r(8936),t);class o extends i.TransactionsAndReportingApiGenerated{}t.TransactionsAndReportingApi=o},8670:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8692:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||s(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),n(r(8564),t),n(r(6254),t),n(r(4251),t),n(r(6057),t),n(r(1934),t)},8696:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8747:function(e,t,r){"use strict";var s=this&&this.__awaiter||function(e,t,r,s){return new(r||(r=Promise))(function(n,i){function o(e){try{c(s.next(e))}catch(e){i(e)}}function a(e){try{c(s.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(o,a)}c((s=s.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.ApiStatusApiGenerated=t.ApiStatusApiFactory=t.ApiStatusApiFp=t.ApiStatusApiAxiosParamCreator=void 0;const n=r(8451),i=r(5511),o=r(4467),a=r(4445);t.ApiStatusApiAxiosParamCreator=function(e){return{check:(t={})=>s(this,void 0,void 0,function*(){const r=new URL("/",i.DUMMY_BASE_URL);let s;e&&(s=e.baseOptions);const n=Object.assign(Object.assign({method:"GET"},s),t),o=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},c={};let u=s&&s.headers?s.headers:{};return n.headers=Object.assign(Object.assign(Object.assign({},o),u),t.headers),(0,a.requestBeforeHook)({queryParameters:c,requestConfig:n,path:"/",configuration:e,pathTemplate:"/",httpMethod:"GET"}),(0,i.setSearchParams)(r,c),{url:(0,i.toPathString)(r),options:n}})}},t.ApiStatusApiFp=function(e){const r=(0,t.ApiStatusApiAxiosParamCreator)(e);return{check(t){return s(this,void 0,void 0,function*(){const s=yield r.check(t);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})}}},t.ApiStatusApiFactory=function(e,r,s){const n=(0,t.ApiStatusApiFp)(e);return{check:e=>n.check(e).then(e=>e(s,r))}};class c extends o.BaseAPI{check(e){return(0,t.ApiStatusApiFp)(this.configuration).check(e).then(e=>e(this.axios,this.basePath))}}t.ApiStatusApiGenerated=c},8774:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8818:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8902:function(e,t,r){"use strict";var s=this&&this.__awaiter||function(e,t,r,s){return new(r||(r=Promise))(function(n,i){function o(e){try{c(s.next(e))}catch(e){i(e)}}function a(e){try{c(s.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(o,a)}c((s=s.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.ReferenceDataApiGenerated=t.ReferenceDataApiFactory=t.ReferenceDataApiFp=t.ReferenceDataApiAxiosParamCreator=void 0;const n=r(8451),i=r(5511),o=r(4467),a=r(4445);t.ReferenceDataApiAxiosParamCreator=function(e){return{getCurrencyExchangeRatePair:(t,r={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("getCurrencyExchangeRatePair","currencyPair",t);const s="/currencies/rates/{currencyPair}".replace("{currencyPair}",encodeURIComponent(String(void 0!==t?t:"-currencyPair-"))),n=new URL(s,i.DUMMY_BASE_URL);let o;e&&(o=e.baseOptions);const c=Object.assign(Object.assign({method:"GET"},o),r),u=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},d={};yield(0,i.setApiKeyToObject)({object:d,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:d,key:"timestamp",keyParamName:"timestamp",configuration:e});let l=o&&o.headers?o.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),l),r.headers),(0,a.requestBeforeHook)({queryParameters:d,requestConfig:c,path:s,configuration:e,pathTemplate:"/currencies/rates/{currencyPair}",httpMethod:"GET"}),(0,i.setSearchParams)(n,d),{url:(0,i.toPathString)(n),options:c}}),getPartnerInfo:(t={})=>s(this,void 0,void 0,function*(){const r="/snapTrade/partners",s=new URL(r,i.DUMMY_BASE_URL);let n;e&&(n=e.baseOptions);const o=Object.assign(Object.assign({method:"GET"},n),t),c=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},u={};yield(0,i.setApiKeyToObject)({object:u,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:c,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,key:"timestamp",keyParamName:"timestamp",configuration:e});let d=n&&n.headers?n.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},c),d),t.headers),(0,a.requestBeforeHook)({queryParameters:u,requestConfig:o,path:r,configuration:e,pathTemplate:"/snapTrade/partners",httpMethod:"GET"}),(0,i.setSearchParams)(s,u),{url:(0,i.toPathString)(s),options:o}}),getSecurityTypes:(t={})=>s(this,void 0,void 0,function*(){const r="/securityTypes",s=new URL(r,i.DUMMY_BASE_URL);let n;e&&(n=e.baseOptions);const o=Object.assign(Object.assign({method:"GET"},n),t),c=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},u={};yield(0,i.setApiKeyToObject)({object:u,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:c,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,key:"timestamp",keyParamName:"timestamp",configuration:e});let d=n&&n.headers?n.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},c),d),t.headers),(0,a.requestBeforeHook)({queryParameters:u,requestConfig:o,path:r,configuration:e,pathTemplate:"/securityTypes",httpMethod:"GET"}),(0,i.setSearchParams)(s,u),{url:(0,i.toPathString)(s),options:o}}),getStockExchanges:(t={})=>s(this,void 0,void 0,function*(){const r="/exchanges",s=new URL(r,i.DUMMY_BASE_URL);let n;e&&(n=e.baseOptions);const o=Object.assign(Object.assign({method:"GET"},n),t),c=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},u={};yield(0,i.setApiKeyToObject)({object:u,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:c,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,key:"timestamp",keyParamName:"timestamp",configuration:e});let d=n&&n.headers?n.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},c),d),t.headers),(0,a.requestBeforeHook)({queryParameters:u,requestConfig:o,path:r,configuration:e,pathTemplate:"/exchanges",httpMethod:"GET"}),(0,i.setSearchParams)(s,u),{url:(0,i.toPathString)(s),options:o}}),getSymbols:(t,r={})=>s(this,void 0,void 0,function*(){const s="/symbols",n=new URL(s,i.DUMMY_BASE_URL);let o;e&&(o=e.baseOptions);const c=Object.assign(Object.assign({method:"POST"},o),r),u=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},d={};yield(0,i.setApiKeyToObject)({object:d,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:d,key:"timestamp",keyParamName:"timestamp",configuration:e}),u["Content-Type"]="application/json";let l=o&&o.headers?o.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),l),r.headers),(0,a.requestBeforeHook)({requestBody:t,queryParameters:d,requestConfig:c,path:s,configuration:e,pathTemplate:"/symbols",httpMethod:"POST"}),c.data=(0,i.serializeDataIfNeeded)(t,c,e),(0,i.setSearchParams)(n,d),{url:(0,i.toPathString)(n),options:c}}),getSymbolsByTicker:(t,r={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("getSymbolsByTicker","query",t);const s="/symbols/{query}".replace("{query}",encodeURIComponent(String(void 0!==t?t:"-query-"))),n=new URL(s,i.DUMMY_BASE_URL);let o;e&&(o=e.baseOptions);const c=Object.assign(Object.assign({method:"GET"},o),r),u=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},d={};yield(0,i.setApiKeyToObject)({object:d,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:d,key:"timestamp",keyParamName:"timestamp",configuration:e});let l=o&&o.headers?o.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),l),r.headers),(0,a.requestBeforeHook)({queryParameters:d,requestConfig:c,path:s,configuration:e,pathTemplate:"/symbols/{query}",httpMethod:"GET"}),(0,i.setSearchParams)(n,d),{url:(0,i.toPathString)(n),options:c}}),listAllBrokerageAuthorizationType:(t,r={})=>s(this,void 0,void 0,function*(){const s="/brokerageAuthorizationTypes",n=new URL(s,i.DUMMY_BASE_URL);let o;e&&(o=e.baseOptions);const c=Object.assign(Object.assign({method:"GET"},o),r),u=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},d={};yield(0,i.setApiKeyToObject)({object:d,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:d,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(d.brokerage=t);let l=o&&o.headers?o.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),l),r.headers),(0,a.requestBeforeHook)({queryParameters:d,requestConfig:c,path:s,configuration:e,pathTemplate:"/brokerageAuthorizationTypes",httpMethod:"GET"}),(0,i.setSearchParams)(n,d),{url:(0,i.toPathString)(n),options:c}}),listAllBrokerageInstruments:(t,r={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("listAllBrokerageInstruments","brokerageId",t);const s="/brokerages/{brokerageId}/instruments".replace("{brokerageId}",encodeURIComponent(String(void 0!==t?t:"-brokerageId-"))),n=new URL(s,i.DUMMY_BASE_URL);let o;e&&(o=e.baseOptions);const c=Object.assign(Object.assign({method:"GET"},o),r),u=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},d={};yield(0,i.setApiKeyToObject)({object:d,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:d,key:"timestamp",keyParamName:"timestamp",configuration:e});let l=o&&o.headers?o.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),l),r.headers),(0,a.requestBeforeHook)({queryParameters:d,requestConfig:c,path:s,configuration:e,pathTemplate:"/brokerages/{brokerageId}/instruments",httpMethod:"GET"}),(0,i.setSearchParams)(n,d),{url:(0,i.toPathString)(n),options:c}}),listAllBrokerages:(t={})=>s(this,void 0,void 0,function*(){const r="/brokerages",s=new URL(r,i.DUMMY_BASE_URL);let n;e&&(n=e.baseOptions);const o=Object.assign(Object.assign({method:"GET"},n),t),c=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},u={};yield(0,i.setApiKeyToObject)({object:u,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:c,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,key:"timestamp",keyParamName:"timestamp",configuration:e});let d=n&&n.headers?n.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},c),d),t.headers),(0,a.requestBeforeHook)({queryParameters:u,requestConfig:o,path:r,configuration:e,pathTemplate:"/brokerages",httpMethod:"GET"}),(0,i.setSearchParams)(s,u),{url:(0,i.toPathString)(s),options:o}}),listAllCurrencies:(t={})=>s(this,void 0,void 0,function*(){const r="/currencies",s=new URL(r,i.DUMMY_BASE_URL);let n;e&&(n=e.baseOptions);const o=Object.assign(Object.assign({method:"GET"},n),t),c=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},u={};yield(0,i.setApiKeyToObject)({object:u,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:c,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,key:"timestamp",keyParamName:"timestamp",configuration:e});let d=n&&n.headers?n.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},c),d),t.headers),(0,a.requestBeforeHook)({queryParameters:u,requestConfig:o,path:r,configuration:e,pathTemplate:"/currencies",httpMethod:"GET"}),(0,i.setSearchParams)(s,u),{url:(0,i.toPathString)(s),options:o}}),listAllCurrenciesRates:(t={})=>s(this,void 0,void 0,function*(){const r="/currencies/rates",s=new URL(r,i.DUMMY_BASE_URL);let n;e&&(n=e.baseOptions);const o=Object.assign(Object.assign({method:"GET"},n),t),c=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},u={};yield(0,i.setApiKeyToObject)({object:u,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:c,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,key:"timestamp",keyParamName:"timestamp",configuration:e});let d=n&&n.headers?n.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},c),d),t.headers),(0,a.requestBeforeHook)({queryParameters:u,requestConfig:o,path:r,configuration:e,pathTemplate:"/currencies/rates",httpMethod:"GET"}),(0,i.setSearchParams)(s,u),{url:(0,i.toPathString)(s),options:o}}),symbolSearchUserAccount:(t,r,n,o,c={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("symbolSearchUserAccount","userId",t),(0,i.assertParamExists)("symbolSearchUserAccount","userSecret",r),(0,i.assertParamExists)("symbolSearchUserAccount","accountId",n);const s="/accounts/{accountId}/symbols".replace("{accountId}",encodeURIComponent(String(void 0!==n?n:"-accountId-"))),u=new URL(s,i.DUMMY_BASE_URL);let d;e&&(d=e.baseOptions);const l=Object.assign(Object.assign({method:"POST"},d),c),p=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},h={};yield(0,i.setApiKeyToObject)({object:h,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(h.userId=t),void 0!==r&&(h.userSecret=r),p["Content-Type"]="application/json";let g=d&&d.headers?d.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},p),g),c.headers),(0,a.requestBeforeHook)({requestBody:o,queryParameters:h,requestConfig:l,path:s,configuration:e,pathTemplate:"/accounts/{accountId}/symbols",httpMethod:"POST"}),l.data=(0,i.serializeDataIfNeeded)(o,l,e),(0,i.setSearchParams)(u,h),{url:(0,i.toPathString)(u),options:l}})}},t.ReferenceDataApiFp=function(e){const r=(0,t.ReferenceDataApiAxiosParamCreator)(e);return{getCurrencyExchangeRatePair(t,a){return s(this,void 0,void 0,function*(){const s=yield r.getCurrencyExchangeRatePair(t.currencyPair,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},getPartnerInfo(t){return s(this,void 0,void 0,function*(){const s=yield r.getPartnerInfo(t);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},getSecurityTypes(t){return s(this,void 0,void 0,function*(){const s=yield r.getSecurityTypes(t);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},getStockExchanges(t){return s(this,void 0,void 0,function*(){const s=yield r.getStockExchanges(t);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},getSymbols(t={},a){return s(this,void 0,void 0,function*(){const s={substring:t.substring},c=yield r.getSymbols(s,a);return(0,i.createRequestFunction)(c,n.default,o.BASE_PATH,e)})},getSymbolsByTicker(t,a){return s(this,void 0,void 0,function*(){const s=yield r.getSymbolsByTicker(t.query,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},listAllBrokerageAuthorizationType(t={},a){return s(this,void 0,void 0,function*(){const s=yield r.listAllBrokerageAuthorizationType(t.brokerage,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},listAllBrokerageInstruments(t,a){return s(this,void 0,void 0,function*(){const s=yield r.listAllBrokerageInstruments(t.brokerageId,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},listAllBrokerages(t){return s(this,void 0,void 0,function*(){const s=yield r.listAllBrokerages(t);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},listAllCurrencies(t){return s(this,void 0,void 0,function*(){const s=yield r.listAllCurrencies(t);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},listAllCurrenciesRates(t){return s(this,void 0,void 0,function*(){const s=yield r.listAllCurrenciesRates(t);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},symbolSearchUserAccount(t,a){return s(this,void 0,void 0,function*(){const s={substring:t.substring},c=yield r.symbolSearchUserAccount(t.userId,t.userSecret,t.accountId,s,a);return(0,i.createRequestFunction)(c,n.default,o.BASE_PATH,e)})}}},t.ReferenceDataApiFactory=function(e,r,s){const n=(0,t.ReferenceDataApiFp)(e);return{getCurrencyExchangeRatePair:(e,t)=>n.getCurrencyExchangeRatePair(e,t).then(e=>e(s,r)),getPartnerInfo:e=>n.getPartnerInfo(e).then(e=>e(s,r)),getSecurityTypes:e=>n.getSecurityTypes(e).then(e=>e(s,r)),getStockExchanges:e=>n.getStockExchanges(e).then(e=>e(s,r)),getSymbols:(e={},t)=>n.getSymbols(e,t).then(e=>e(s,r)),getSymbolsByTicker:(e,t)=>n.getSymbolsByTicker(e,t).then(e=>e(s,r)),listAllBrokerageAuthorizationType:(e={},t)=>n.listAllBrokerageAuthorizationType(e,t).then(e=>e(s,r)),listAllBrokerageInstruments:(e,t)=>n.listAllBrokerageInstruments(e,t).then(e=>e(s,r)),listAllBrokerages:e=>n.listAllBrokerages(e).then(e=>e(s,r)),listAllCurrencies:e=>n.listAllCurrencies(e).then(e=>e(s,r)),listAllCurrenciesRates:e=>n.listAllCurrenciesRates(e).then(e=>e(s,r)),symbolSearchUserAccount:(e,t)=>n.symbolSearchUserAccount(e,t).then(e=>e(s,r))}};class c extends o.BaseAPI{getCurrencyExchangeRatePair(e,r){return(0,t.ReferenceDataApiFp)(this.configuration).getCurrencyExchangeRatePair(e,r).then(e=>e(this.axios,this.basePath))}getPartnerInfo(e){return(0,t.ReferenceDataApiFp)(this.configuration).getPartnerInfo(e).then(e=>e(this.axios,this.basePath))}getSecurityTypes(e){return(0,t.ReferenceDataApiFp)(this.configuration).getSecurityTypes(e).then(e=>e(this.axios,this.basePath))}getStockExchanges(e){return(0,t.ReferenceDataApiFp)(this.configuration).getStockExchanges(e).then(e=>e(this.axios,this.basePath))}getSymbols(e={},r){return(0,t.ReferenceDataApiFp)(this.configuration).getSymbols(e,r).then(e=>e(this.axios,this.basePath))}getSymbolsByTicker(e,r){return(0,t.ReferenceDataApiFp)(this.configuration).getSymbolsByTicker(e,r).then(e=>e(this.axios,this.basePath))}listAllBrokerageAuthorizationType(e={},r){return(0,t.ReferenceDataApiFp)(this.configuration).listAllBrokerageAuthorizationType(e,r).then(e=>e(this.axios,this.basePath))}listAllBrokerageInstruments(e,r){return(0,t.ReferenceDataApiFp)(this.configuration).listAllBrokerageInstruments(e,r).then(e=>e(this.axios,this.basePath))}listAllBrokerages(e){return(0,t.ReferenceDataApiFp)(this.configuration).listAllBrokerages(e).then(e=>e(this.axios,this.basePath))}listAllCurrencies(e){return(0,t.ReferenceDataApiFp)(this.configuration).listAllCurrencies(e).then(e=>e(this.axios,this.basePath))}listAllCurrenciesRates(e){return(0,t.ReferenceDataApiFp)(this.configuration).listAllCurrenciesRates(e).then(e=>e(this.axios,this.basePath))}symbolSearchUserAccount(e,r){return(0,t.ReferenceDataApiFp)(this.configuration).symbolSearchUserAccount(e,r).then(e=>e(this.axios,this.basePath))}}t.ReferenceDataApiGenerated=c},8911:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8927:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8936:function(e,t,r){"use strict";var s=this&&this.__awaiter||function(e,t,r,s){return new(r||(r=Promise))(function(n,i){function o(e){try{c(s.next(e))}catch(e){i(e)}}function a(e){try{c(s.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(o,a)}c((s=s.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.TransactionsAndReportingApiGenerated=t.TransactionsAndReportingApiFactory=t.TransactionsAndReportingApiFp=t.TransactionsAndReportingApiAxiosParamCreator=void 0;const n=r(8451),i=r(5511),o=r(4467),a=r(4445);t.TransactionsAndReportingApiAxiosParamCreator=function(e){return{getActivities:(t,r,n,o,c,u,d,l={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("getActivities","userId",t),(0,i.assertParamExists)("getActivities","userSecret",r);const s="/activities",p=new URL(s,i.DUMMY_BASE_URL);let h;e&&(h=e.baseOptions);const g=Object.assign(Object.assign({method:"GET"},h),l),f=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},y={};yield(0,i.setApiKeyToObject)({object:y,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:f,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:y,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==n&&(y.startDate=n instanceof Date?n.toISOString().substr(0,10):n),void 0!==o&&(y.endDate=o instanceof Date?o.toISOString().substr(0,10):o),void 0!==c&&(y.accounts=c),void 0!==u&&(y.brokerageAuthorizations=u),void 0!==d&&(y.type=d),void 0!==t&&(y.userId=t),void 0!==r&&(y.userSecret=r);let m=h&&h.headers?h.headers:{};return g.headers=Object.assign(Object.assign(Object.assign({},f),m),l.headers),(0,a.requestBeforeHook)({queryParameters:y,requestConfig:g,path:s,configuration:e,pathTemplate:"/activities",httpMethod:"GET"}),(0,i.setSearchParams)(p,y),{url:(0,i.toPathString)(p),options:g}}),getReportingCustomRange:(t,r,n,o,c,u,d,l={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("getReportingCustomRange","startDate",t),(0,i.assertParamExists)("getReportingCustomRange","endDate",r),(0,i.assertParamExists)("getReportingCustomRange","userId",n),(0,i.assertParamExists)("getReportingCustomRange","userSecret",o);const s="/performance/custom",p=new URL(s,i.DUMMY_BASE_URL);let h;e&&(h=e.baseOptions);const g=Object.assign(Object.assign({method:"GET"},h),l),f=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},y={};yield(0,i.setApiKeyToObject)({object:y,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:f,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:y,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(y.startDate=t instanceof Date?t.toISOString().substr(0,10):t),void 0!==r&&(y.endDate=r instanceof Date?r.toISOString().substr(0,10):r),void 0!==c&&(y.accounts=c),void 0!==u&&(y.detailed=u),void 0!==d&&(y.frequency=d),void 0!==n&&(y.userId=n),void 0!==o&&(y.userSecret=o);let m=h&&h.headers?h.headers:{};return g.headers=Object.assign(Object.assign(Object.assign({},f),m),l.headers),(0,a.requestBeforeHook)({queryParameters:y,requestConfig:g,path:s,configuration:e,pathTemplate:"/performance/custom",httpMethod:"GET"}),(0,i.setSearchParams)(p,y),{url:(0,i.toPathString)(p),options:g}})}},t.TransactionsAndReportingApiFp=function(e){const r=(0,t.TransactionsAndReportingApiAxiosParamCreator)(e);return{getActivities(t,a){return s(this,void 0,void 0,function*(){const s=yield r.getActivities(t.userId,t.userSecret,t.startDate,t.endDate,t.accounts,t.brokerageAuthorizations,t.type,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},getReportingCustomRange(t,a){return s(this,void 0,void 0,function*(){const s=yield r.getReportingCustomRange(t.startDate,t.endDate,t.userId,t.userSecret,t.accounts,t.detailed,t.frequency,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})}}},t.TransactionsAndReportingApiFactory=function(e,r,s){const n=(0,t.TransactionsAndReportingApiFp)(e);return{getActivities:(e,t)=>n.getActivities(e,t).then(e=>e(s,r)),getReportingCustomRange:(e,t)=>n.getReportingCustomRange(e,t).then(e=>e(s,r))}};class c extends o.BaseAPI{getActivities(e,r){return(0,t.TransactionsAndReportingApiFp)(this.configuration).getActivities(e,r).then(e=>e(this.axios,this.basePath))}getReportingCustomRange(e,r){return(0,t.TransactionsAndReportingApiFp)(this.configuration).getReportingCustomRange(e,r).then(e=>e(this.axios,this.basePath))}}t.TransactionsAndReportingApiGenerated=c},8951:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8958:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8996:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9032:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9168:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9190:function(e,t,r){"use strict";var s=this&&this.__awaiter||function(e,t,r,s){return new(r||(r=Promise))(function(n,i){function o(e){try{c(s.next(e))}catch(e){i(e)}}function a(e){try{c(s.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(o,a)}c((s=s.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.AccountInformationApiGenerated=t.AccountInformationApiFactory=t.AccountInformationApiFp=t.AccountInformationApiAxiosParamCreator=void 0;const n=r(8451),i=r(5511),o=r(4467),a=r(4445);t.AccountInformationApiAxiosParamCreator=function(e){return{getAccountActivities:(t,r,n,o,c,u,d,l,p={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("getAccountActivities","accountId",t),(0,i.assertParamExists)("getAccountActivities","userId",r),(0,i.assertParamExists)("getAccountActivities","userSecret",n);const s="/accounts/{accountId}/activities".replace("{accountId}",encodeURIComponent(String(void 0!==t?t:"-accountId-"))),h=new URL(s,i.DUMMY_BASE_URL);let g;e&&(g=e.baseOptions);const f=Object.assign(Object.assign({method:"GET"},g),p),y=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},m={};yield(0,i.setApiKeyToObject)({object:m,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:y,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:m,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==o&&(m.startDate=o instanceof Date?o.toISOString().substr(0,10):o),void 0!==c&&(m.endDate=c instanceof Date?c.toISOString().substr(0,10):c),void 0!==u&&(m.offset=u),void 0!==d&&(m.limit=d),void 0!==l&&(m.type=l),void 0!==r&&(m.userId=r),void 0!==n&&(m.userSecret=n);let b=g&&g.headers?g.headers:{};return f.headers=Object.assign(Object.assign(Object.assign({},y),b),p.headers),(0,a.requestBeforeHook)({queryParameters:m,requestConfig:f,path:s,configuration:e,pathTemplate:"/accounts/{accountId}/activities",httpMethod:"GET"}),(0,i.setSearchParams)(h,m),{url:(0,i.toPathString)(h),options:f}}),getAllUserHoldings:(t,r,n,o={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("getAllUserHoldings","userId",t),(0,i.assertParamExists)("getAllUserHoldings","userSecret",r);const s="/holdings",c=new URL(s,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"GET"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(p.userId=t),void 0!==r&&(p.userSecret=r),void 0!==n&&(p.brokerage_authorizations=n);let h=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),h),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:s,configuration:e,pathTemplate:"/holdings",httpMethod:"GET"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}}),getUserAccountBalance:(t,r,n,o={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("getUserAccountBalance","userId",t),(0,i.assertParamExists)("getUserAccountBalance","userSecret",r),(0,i.assertParamExists)("getUserAccountBalance","accountId",n);const s="/accounts/{accountId}/balances".replace("{accountId}",encodeURIComponent(String(void 0!==n?n:"-accountId-"))),c=new URL(s,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"GET"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(p.userId=t),void 0!==r&&(p.userSecret=r);let h=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),h),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:s,configuration:e,pathTemplate:"/accounts/{accountId}/balances",httpMethod:"GET"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}}),getUserAccountDetails:(t,r,n,o={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("getUserAccountDetails","userId",t),(0,i.assertParamExists)("getUserAccountDetails","userSecret",r),(0,i.assertParamExists)("getUserAccountDetails","accountId",n);const s="/accounts/{accountId}".replace("{accountId}",encodeURIComponent(String(void 0!==n?n:"-accountId-"))),c=new URL(s,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"GET"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(p.userId=t),void 0!==r&&(p.userSecret=r);let h=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),h),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:s,configuration:e,pathTemplate:"/accounts/{accountId}",httpMethod:"GET"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}}),getUserAccountOrderDetail:(t,r,n,o,c={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("getUserAccountOrderDetail","userId",t),(0,i.assertParamExists)("getUserAccountOrderDetail","userSecret",r),(0,i.assertParamExists)("getUserAccountOrderDetail","accountId",n),(0,i.assertParamExists)("getUserAccountOrderDetail","brokerageOrderId",o);const s="/accounts/{accountId}/orders/{brokerageOrderId}".replace("{accountId}",encodeURIComponent(String(void 0!==n?n:"-accountId-"))).replace("{brokerageOrderId}",encodeURIComponent(String(void 0!==o?o:"-brokerageOrderId-"))),u=new URL(s,i.DUMMY_BASE_URL);let d;e&&(d=e.baseOptions);const l=Object.assign(Object.assign({method:"GET"},d),c),p=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},h={};yield(0,i.setApiKeyToObject)({object:h,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(h.userId=t),void 0!==r&&(h.userSecret=r);let g=d&&d.headers?d.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},p),g),c.headers),(0,a.requestBeforeHook)({queryParameters:h,requestConfig:l,path:s,configuration:e,pathTemplate:"/accounts/{accountId}/orders/{brokerageOrderId}",httpMethod:"GET"}),(0,i.setSearchParams)(u,h),{url:(0,i.toPathString)(u),options:l}}),getUserAccountOrders:(t,r,n,o,c,u={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("getUserAccountOrders","userId",t),(0,i.assertParamExists)("getUserAccountOrders","userSecret",r),(0,i.assertParamExists)("getUserAccountOrders","accountId",n);const s="/accounts/{accountId}/orders".replace("{accountId}",encodeURIComponent(String(void 0!==n?n:"-accountId-"))),d=new URL(s,i.DUMMY_BASE_URL);let l;e&&(l=e.baseOptions);const p=Object.assign(Object.assign({method:"GET"},l),u),h=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},g={};yield(0,i.setApiKeyToObject)({object:g,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:g,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(g.userId=t),void 0!==r&&(g.userSecret=r),void 0!==o&&(g.state=o),void 0!==c&&(g.days=c);let f=l&&l.headers?l.headers:{};return p.headers=Object.assign(Object.assign(Object.assign({},h),f),u.headers),(0,a.requestBeforeHook)({queryParameters:g,requestConfig:p,path:s,configuration:e,pathTemplate:"/accounts/{accountId}/orders",httpMethod:"GET"}),(0,i.setSearchParams)(d,g),{url:(0,i.toPathString)(d),options:p}}),getUserAccountPositions:(t,r,n,o={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("getUserAccountPositions","userId",t),(0,i.assertParamExists)("getUserAccountPositions","userSecret",r),(0,i.assertParamExists)("getUserAccountPositions","accountId",n);const s="/accounts/{accountId}/positions".replace("{accountId}",encodeURIComponent(String(void 0!==n?n:"-accountId-"))),c=new URL(s,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"GET"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(p.userId=t),void 0!==r&&(p.userSecret=r);let h=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),h),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:s,configuration:e,pathTemplate:"/accounts/{accountId}/positions",httpMethod:"GET"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}}),getUserAccountRecentOrders:(t,r,n,o,c={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("getUserAccountRecentOrders","userId",t),(0,i.assertParamExists)("getUserAccountRecentOrders","userSecret",r),(0,i.assertParamExists)("getUserAccountRecentOrders","accountId",n);const s="/accounts/{accountId}/recentOrders".replace("{accountId}",encodeURIComponent(String(void 0!==n?n:"-accountId-"))),u=new URL(s,i.DUMMY_BASE_URL);let d;e&&(d=e.baseOptions);const l=Object.assign(Object.assign({method:"GET"},d),c),p=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},h={};yield(0,i.setApiKeyToObject)({object:h,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(h.userId=t),void 0!==r&&(h.userSecret=r),void 0!==o&&(h.only_executed=o);let g=d&&d.headers?d.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},p),g),c.headers),(0,a.requestBeforeHook)({queryParameters:h,requestConfig:l,path:s,configuration:e,pathTemplate:"/accounts/{accountId}/recentOrders",httpMethod:"GET"}),(0,i.setSearchParams)(u,h),{url:(0,i.toPathString)(u),options:l}}),getUserAccountReturnRates:(t,r,n,o={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("getUserAccountReturnRates","userId",t),(0,i.assertParamExists)("getUserAccountReturnRates","userSecret",r),(0,i.assertParamExists)("getUserAccountReturnRates","accountId",n);const s="/accounts/{accountId}/returnRates".replace("{accountId}",encodeURIComponent(String(void 0!==n?n:"-accountId-"))),c=new URL(s,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"GET"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(p.userId=t),void 0!==r&&(p.userSecret=r);let h=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),h),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:s,configuration:e,pathTemplate:"/accounts/{accountId}/returnRates",httpMethod:"GET"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}}),getUserHoldings:(t,r,n,o={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("getUserHoldings","accountId",t),(0,i.assertParamExists)("getUserHoldings","userId",r),(0,i.assertParamExists)("getUserHoldings","userSecret",n);const s="/accounts/{accountId}/holdings".replace("{accountId}",encodeURIComponent(String(void 0!==t?t:"-accountId-"))),c=new URL(s,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"GET"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==r&&(p.userId=r),void 0!==n&&(p.userSecret=n);let h=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),h),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:s,configuration:e,pathTemplate:"/accounts/{accountId}/holdings",httpMethod:"GET"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}}),listUserAccounts:(t,r,n={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("listUserAccounts","userId",t),(0,i.assertParamExists)("listUserAccounts","userSecret",r);const s="/accounts",o=new URL(s,i.DUMMY_BASE_URL);let c;e&&(c=e.baseOptions);const u=Object.assign(Object.assign({method:"GET"},c),n),d=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},l={};yield(0,i.setApiKeyToObject)({object:l,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:d,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(l.userId=t),void 0!==r&&(l.userSecret=r);let p=c&&c.headers?c.headers:{};return u.headers=Object.assign(Object.assign(Object.assign({},d),p),n.headers),(0,a.requestBeforeHook)({queryParameters:l,requestConfig:u,path:s,configuration:e,pathTemplate:"/accounts",httpMethod:"GET"}),(0,i.setSearchParams)(o,l),{url:(0,i.toPathString)(o),options:u}}),updateUserAccount:(t,r,n,o={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("updateUserAccount","userId",t),(0,i.assertParamExists)("updateUserAccount","userSecret",r),(0,i.assertParamExists)("updateUserAccount","accountId",n);const s="/accounts/{accountId}".replace("{accountId}",encodeURIComponent(String(void 0!==n?n:"-accountId-"))),c=new URL(s,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"PUT"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(p.userId=t),void 0!==r&&(p.userSecret=r);let h=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),h),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:s,configuration:e,pathTemplate:"/accounts/{accountId}",httpMethod:"PUT"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})}},t.AccountInformationApiFp=function(e){const r=(0,t.AccountInformationApiAxiosParamCreator)(e);return{getAccountActivities(t,a){return s(this,void 0,void 0,function*(){const s=yield r.getAccountActivities(t.accountId,t.userId,t.userSecret,t.startDate,t.endDate,t.offset,t.limit,t.type,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},getAllUserHoldings(t,a){return s(this,void 0,void 0,function*(){const s=yield r.getAllUserHoldings(t.userId,t.userSecret,t.brokerageAuthorizations,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},getUserAccountBalance(t,a){return s(this,void 0,void 0,function*(){const s=yield r.getUserAccountBalance(t.userId,t.userSecret,t.accountId,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},getUserAccountDetails(t,a){return s(this,void 0,void 0,function*(){const s=yield r.getUserAccountDetails(t.userId,t.userSecret,t.accountId,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},getUserAccountOrderDetail(t,a){return s(this,void 0,void 0,function*(){const s=yield r.getUserAccountOrderDetail(t.userId,t.userSecret,t.accountId,t.brokerageOrderId,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},getUserAccountOrders(t,a){return s(this,void 0,void 0,function*(){const s=yield r.getUserAccountOrders(t.userId,t.userSecret,t.accountId,t.state,t.days,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},getUserAccountPositions(t,a){return s(this,void 0,void 0,function*(){const s=yield r.getUserAccountPositions(t.userId,t.userSecret,t.accountId,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},getUserAccountRecentOrders(t,a){return s(this,void 0,void 0,function*(){const s=yield r.getUserAccountRecentOrders(t.userId,t.userSecret,t.accountId,t.onlyExecuted,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},getUserAccountReturnRates(t,a){return s(this,void 0,void 0,function*(){const s=yield r.getUserAccountReturnRates(t.userId,t.userSecret,t.accountId,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},getUserHoldings(t,a){return s(this,void 0,void 0,function*(){const s=yield r.getUserHoldings(t.accountId,t.userId,t.userSecret,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},listUserAccounts(t,a){return s(this,void 0,void 0,function*(){const s=yield r.listUserAccounts(t.userId,t.userSecret,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},updateUserAccount(t,a){return s(this,void 0,void 0,function*(){const s=yield r.updateUserAccount(t.userId,t.userSecret,t.accountId,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})}}},t.AccountInformationApiFactory=function(e,r,s){const n=(0,t.AccountInformationApiFp)(e);return{getAccountActivities:(e,t)=>n.getAccountActivities(e,t).then(e=>e(s,r)),getAllUserHoldings:(e,t)=>n.getAllUserHoldings(e,t).then(e=>e(s,r)),getUserAccountBalance:(e,t)=>n.getUserAccountBalance(e,t).then(e=>e(s,r)),getUserAccountDetails:(e,t)=>n.getUserAccountDetails(e,t).then(e=>e(s,r)),getUserAccountOrderDetail:(e,t)=>n.getUserAccountOrderDetail(e,t).then(e=>e(s,r)),getUserAccountOrders:(e,t)=>n.getUserAccountOrders(e,t).then(e=>e(s,r)),getUserAccountPositions:(e,t)=>n.getUserAccountPositions(e,t).then(e=>e(s,r)),getUserAccountRecentOrders:(e,t)=>n.getUserAccountRecentOrders(e,t).then(e=>e(s,r)),getUserAccountReturnRates:(e,t)=>n.getUserAccountReturnRates(e,t).then(e=>e(s,r)),getUserHoldings:(e,t)=>n.getUserHoldings(e,t).then(e=>e(s,r)),listUserAccounts:(e,t)=>n.listUserAccounts(e,t).then(e=>e(s,r)),updateUserAccount:(e,t)=>n.updateUserAccount(e,t).then(e=>e(s,r))}};class c extends o.BaseAPI{getAccountActivities(e,r){return(0,t.AccountInformationApiFp)(this.configuration).getAccountActivities(e,r).then(e=>e(this.axios,this.basePath))}getAllUserHoldings(e,r){return(0,t.AccountInformationApiFp)(this.configuration).getAllUserHoldings(e,r).then(e=>e(this.axios,this.basePath))}getUserAccountBalance(e,r){return(0,t.AccountInformationApiFp)(this.configuration).getUserAccountBalance(e,r).then(e=>e(this.axios,this.basePath))}getUserAccountDetails(e,r){return(0,t.AccountInformationApiFp)(this.configuration).getUserAccountDetails(e,r).then(e=>e(this.axios,this.basePath))}getUserAccountOrderDetail(e,r){return(0,t.AccountInformationApiFp)(this.configuration).getUserAccountOrderDetail(e,r).then(e=>e(this.axios,this.basePath))}getUserAccountOrders(e,r){return(0,t.AccountInformationApiFp)(this.configuration).getUserAccountOrders(e,r).then(e=>e(this.axios,this.basePath))}getUserAccountPositions(e,r){return(0,t.AccountInformationApiFp)(this.configuration).getUserAccountPositions(e,r).then(e=>e(this.axios,this.basePath))}getUserAccountRecentOrders(e,r){return(0,t.AccountInformationApiFp)(this.configuration).getUserAccountRecentOrders(e,r).then(e=>e(this.axios,this.basePath))}getUserAccountReturnRates(e,r){return(0,t.AccountInformationApiFp)(this.configuration).getUserAccountReturnRates(e,r).then(e=>e(this.axios,this.basePath))}getUserHoldings(e,r){return(0,t.AccountInformationApiFp)(this.configuration).getUserHoldings(e,r).then(e=>e(this.axios,this.basePath))}listUserAccounts(e,r){return(0,t.AccountInformationApiFp)(this.configuration).listUserAccounts(e,r).then(e=>e(this.axios,this.basePath))}updateUserAccount(e,r){return(0,t.AccountInformationApiFp)(this.configuration).updateUserAccount(e,r).then(e=>e(this.axios,this.basePath))}}t.AccountInformationApiGenerated=c},9301:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9354:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9383:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9452:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9486:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9634:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9957:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})}},t={};function r(s){var n=t[s];if(void 0!==n)return n.exports;var i=t[s]={exports:{}};return e[s].call(i.exports,i,i.exports,r),i.exports}return r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r(8692)})());
2
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.client=t():e.client=t()}(self,()=>(()=>{var e={129:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},160:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},400:function(e,t,r){"use strict";var s=this&&this.__awaiter||function(e,t,r,s){return new(r||(r=Promise))(function(n,i){function o(e){try{c(s.next(e))}catch(e){i(e)}}function a(e){try{c(s.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(o,a)}c((s=s.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.OptionsApiGenerated=t.OptionsApiFactory=t.OptionsApiFp=t.OptionsApiAxiosParamCreator=void 0;const n=r(8451),i=r(5511),o=r(4467),a=r(4445);t.OptionsApiAxiosParamCreator=function(e){return{getOptionsChain:(t,r,n,o,c={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("getOptionsChain","userId",t),(0,i.assertParamExists)("getOptionsChain","userSecret",r),(0,i.assertParamExists)("getOptionsChain","accountId",n),(0,i.assertParamExists)("getOptionsChain","symbol",o);const s="/accounts/{accountId}/optionsChain".replace("{accountId}",encodeURIComponent(String(void 0!==n?n:"-accountId-"))),u=new URL(s,i.DUMMY_BASE_URL);let d;e&&(d=e.baseOptions);const l=Object.assign(Object.assign({method:"GET"},d),c),p=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},h={};yield(0,i.setApiKeyToObject)({object:h,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(h.userId=t),void 0!==r&&(h.userSecret=r),void 0!==o&&(h.symbol=o);let g=d&&d.headers?d.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},p),g),c.headers),(0,a.requestBeforeHook)({queryParameters:h,requestConfig:l,path:s,configuration:e,pathTemplate:"/accounts/{accountId}/optionsChain",httpMethod:"GET"}),(0,i.setSearchParams)(u,h),{url:(0,i.toPathString)(u),options:l}}),listOptionHoldings:(t,r,n,o={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("listOptionHoldings","userId",t),(0,i.assertParamExists)("listOptionHoldings","userSecret",r),(0,i.assertParamExists)("listOptionHoldings","accountId",n);const s="/accounts/{accountId}/options".replace("{accountId}",encodeURIComponent(String(void 0!==n?n:"-accountId-"))),c=new URL(s,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"GET"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(p.userId=t),void 0!==r&&(p.userSecret=r);let h=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),h),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:s,configuration:e,pathTemplate:"/accounts/{accountId}/options",httpMethod:"GET"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})}},t.OptionsApiFp=function(e){const r=(0,t.OptionsApiAxiosParamCreator)(e);return{getOptionsChain(t,a){return s(this,void 0,void 0,function*(){const s=yield r.getOptionsChain(t.userId,t.userSecret,t.accountId,t.symbol,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},listOptionHoldings(t,a){return s(this,void 0,void 0,function*(){const s=yield r.listOptionHoldings(t.userId,t.userSecret,t.accountId,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})}}},t.OptionsApiFactory=function(e,r,s){const n=(0,t.OptionsApiFp)(e);return{getOptionsChain:(e,t)=>n.getOptionsChain(e,t).then(e=>e(s,r)),listOptionHoldings:(e,t)=>n.listOptionHoldings(e,t).then(e=>e(s,r))}};class c extends o.BaseAPI{getOptionsChain(e,r){return(0,t.OptionsApiFp)(this.configuration).getOptionsChain(e,r).then(e=>e(this.axios,this.basePath))}listOptionHoldings(e,r){return(0,t.OptionsApiFp)(this.configuration).listOptionHoldings(e,r).then(e=>e(this.axios,this.basePath))}}t.OptionsApiGenerated=c},570:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},589:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},612:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},624:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},689:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},803:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},833:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1061:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1070:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1108:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1164:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1186:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1190:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1204:function(e,t,r){"use strict";var s=this&&this.__awaiter||function(e,t,r,s){return new(r||(r=Promise))(function(n,i){function o(e){try{c(s.next(e))}catch(e){i(e)}}function a(e){try{c(s.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(o,a)}c((s=s.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.requestAfterHook=void 0,t.requestAfterHook=function(e){return s(this,void 0,void 0,function*(){const{configuration:t,basePath:n,axiosArgs:i,url:o}=e;if(void 0===(null==t?void 0:t.consumerKey))throw Error("Consumer key is required");const a=encodeURI(t.consumerKey),c=void 0===i.options.data||"{}"===i.options.data?null:JSON.parse(i.options.data),u=-1===i.url.indexOf("?")?`${i.url}`:`${i.url.split("?")[0]}`,d=(l={content:c,path:`/api/v1${u}`,query:o.replace(n,"").replace(u,"").replace("?","")},p=[],h={},JSON.stringify(l,function(e,t){return e in h||(p.push(e),h[e]=null),t}),p.sort(),JSON.stringify(l,p));var l,p,h;const g=yield function(e,t){return s(this,void 0,void 0,function*(){if("undefined"!=typeof process&&process.versions&&process.versions.node){const s=r(2349).createHmac("sha256",t);return s.update(e),s.digest("base64")}{const r=new TextEncoder,s=r.encode(t),n=r.encode(e),i=yield globalThis.crypto.subtle.importKey("raw",s,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),o=yield globalThis.crypto.subtle.sign("HMAC",i,n),a=Array.from(new Uint8Array(o));return btoa(String.fromCharCode.apply(null,a))}})}(d,a);i.options.headers&&(i.options.headers.Signature=g)})}},1345:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1447:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1456:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1590:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1641:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1766:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1837:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1843:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1871:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1882:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1883:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1934:function(e,t){"use strict";var r=this&&this.__awaiter||function(e,t,r,s){return new(r||(r=Promise))(function(n,i){function o(e){try{c(s.next(e))}catch(e){i(e)}}function a(e){try{c(s.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(o,a)}c((s=s.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.parseIfJson=t.readableStreamToString=t.SnaptradeError=void 0;class s extends Error{constructor(e,t,r){var s,n,i,o,a;super(e.message+"\nRESPONSE HEADERS:\n"+JSON.stringify(r,null,2)),this.name="SnaptradeError",this.code=e.code,this.method=null===(n=null===(s=e.config)||void 0===s?void 0:s.method)||void 0===n?void 0:n.toUpperCase(),this.url=null===(i=e.config)||void 0===i?void 0:i.url,this.status=null===(o=e.response)||void 0===o?void 0:o.status,this.statusText=null===(a=e.response)||void 0===a?void 0:a.statusText,this.responseBody=t}toJSON(){return{name:this.name,message:this.message,method:this.method,url:this.url,code:this.code,status:this.status,statusText:this.statusText,responseBody:this.responseBody}}}t.SnaptradeError=s,t.readableStreamToString=function(e){return r(this,void 0,void 0,function*(){const t=new TextDecoder,r=e.getReader();let s="";try{for(;;){const{done:e,value:n}=yield r.read();if(e)break;s+=t.decode(n,{stream:!0})}}finally{r.releaseLock()}return s})},t.parseIfJson=function(e){if("string"!=typeof e)return e;try{const t=JSON.parse(e);return"object"==typeof t&&null!==t?t:e}catch(t){return e}}},1953:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2010:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2059:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2074:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2095:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2135:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2165:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2286:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2327:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2349:()=>{},2350:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2362:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.requestBeforeUrlHook=void 0,t.requestBeforeUrlHook=function(e){}},2459:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2501:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2525:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2581:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2670:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2684:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2694:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2731:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3104:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3262:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3287:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3304:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3321:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3450:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3485:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3504:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3603:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||s(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.TradingApi=void 0;const i=r(7483);n(r(7483),t);class o extends i.TradingApiGenerated{}t.TradingApi=o},3703:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3756:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3814:function(e,t,r){"use strict";var s=this&&this.__awaiter||function(e,t,r,s){return new(r||(r=Promise))(function(n,i){function o(e){try{c(s.next(e))}catch(e){i(e)}}function a(e){try{c(s.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(o,a)}c((s=s.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.AuthenticationApiGenerated=t.AuthenticationApiFactory=t.AuthenticationApiFp=t.AuthenticationApiAxiosParamCreator=void 0;const n=r(8451),i=r(5511),o=r(4467),a=r(4445);t.AuthenticationApiAxiosParamCreator=function(e){return{deleteSnapTradeUser:(t,r={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("deleteSnapTradeUser","userId",t);const s="/snapTrade/deleteUser",n=new URL(s,i.DUMMY_BASE_URL);let o;e&&(o=e.baseOptions);const c=Object.assign(Object.assign({method:"DELETE"},o),r),u=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},d={};yield(0,i.setApiKeyToObject)({object:d,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:d,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(d.userId=t);let l=o&&o.headers?o.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),l),r.headers),(0,a.requestBeforeHook)({queryParameters:d,requestConfig:c,path:s,configuration:e,pathTemplate:"/snapTrade/deleteUser",httpMethod:"DELETE"}),(0,i.setSearchParams)(n,d),{url:(0,i.toPathString)(n),options:c}}),listSnapTradeUsers:(t={})=>s(this,void 0,void 0,function*(){const r="/snapTrade/listUsers",s=new URL(r,i.DUMMY_BASE_URL);let n;e&&(n=e.baseOptions);const o=Object.assign(Object.assign({method:"GET"},n),t),c=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},u={};yield(0,i.setApiKeyToObject)({object:u,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:c,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,key:"timestamp",keyParamName:"timestamp",configuration:e});let d=n&&n.headers?n.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},c),d),t.headers),(0,a.requestBeforeHook)({queryParameters:u,requestConfig:o,path:r,configuration:e,pathTemplate:"/snapTrade/listUsers",httpMethod:"GET"}),(0,i.setSearchParams)(s,u),{url:(0,i.toPathString)(s),options:o}}),loginSnapTradeUser:(t,r,n,o={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("loginSnapTradeUser","userId",t),(0,i.assertParamExists)("loginSnapTradeUser","userSecret",r);const s="/snapTrade/login",c=new URL(s,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"POST"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(p.userId=t),void 0!==r&&(p.userSecret=r),l["Content-Type"]="application/json";let h=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),h),o.headers),(0,a.requestBeforeHook)({requestBody:n,queryParameters:p,requestConfig:d,path:s,configuration:e,pathTemplate:"/snapTrade/login",httpMethod:"POST"}),d.data=(0,i.serializeDataIfNeeded)(n,d,e),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}}),registerSnapTradeUser:(t,r={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("registerSnapTradeUser","snapTradeRegisterUserRequestBody",t);const s="/snapTrade/registerUser",n=new URL(s,i.DUMMY_BASE_URL);let o;e&&(o=e.baseOptions);const c=Object.assign(Object.assign({method:"POST"},o),r),u=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},d={};yield(0,i.setApiKeyToObject)({object:d,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:d,key:"timestamp",keyParamName:"timestamp",configuration:e}),u["Content-Type"]="application/json";let l=o&&o.headers?o.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),l),r.headers),(0,a.requestBeforeHook)({requestBody:t,queryParameters:d,requestConfig:c,path:s,configuration:e,pathTemplate:"/snapTrade/registerUser",httpMethod:"POST"}),c.data=(0,i.serializeDataIfNeeded)(t,c,e),(0,i.setSearchParams)(n,d),{url:(0,i.toPathString)(n),options:c}}),resetSnapTradeUserSecret:(t,r={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("resetSnapTradeUserSecret","userIDandSecret",t);const s="/snapTrade/resetUserSecret",n=new URL(s,i.DUMMY_BASE_URL);let o;e&&(o=e.baseOptions);const c=Object.assign(Object.assign({method:"POST"},o),r),u=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},d={};yield(0,i.setApiKeyToObject)({object:d,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:d,key:"timestamp",keyParamName:"timestamp",configuration:e}),u["Content-Type"]="application/json";let l=o&&o.headers?o.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),l),r.headers),(0,a.requestBeforeHook)({requestBody:t,queryParameters:d,requestConfig:c,path:s,configuration:e,pathTemplate:"/snapTrade/resetUserSecret",httpMethod:"POST"}),c.data=(0,i.serializeDataIfNeeded)(t,c,e),(0,i.setSearchParams)(n,d),{url:(0,i.toPathString)(n),options:c}})}},t.AuthenticationApiFp=function(e){const r=(0,t.AuthenticationApiAxiosParamCreator)(e);return{deleteSnapTradeUser(t,a){return s(this,void 0,void 0,function*(){const s=yield r.deleteSnapTradeUser(t.userId,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},listSnapTradeUsers(t){return s(this,void 0,void 0,function*(){const s=yield r.listSnapTradeUsers(t);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},loginSnapTradeUser(t,a){return s(this,void 0,void 0,function*(){const s={broker:t.broker,immediateRedirect:t.immediateRedirect,customRedirect:t.customRedirect,reconnect:t.reconnect,connectionType:t.connectionType,connectionPortalVersion:t.connectionPortalVersion},c=yield r.loginSnapTradeUser(t.userId,t.userSecret,s,a);return(0,i.createRequestFunction)(c,n.default,o.BASE_PATH,e)})},registerSnapTradeUser(t,a){return s(this,void 0,void 0,function*(){const s={userId:t.userId},c=yield r.registerSnapTradeUser(s,a);return(0,i.createRequestFunction)(c,n.default,o.BASE_PATH,e)})},resetSnapTradeUserSecret(t,a){return s(this,void 0,void 0,function*(){const s={userId:t.userId,userSecret:t.userSecret},c=yield r.resetSnapTradeUserSecret(s,a);return(0,i.createRequestFunction)(c,n.default,o.BASE_PATH,e)})}}},t.AuthenticationApiFactory=function(e,r,s){const n=(0,t.AuthenticationApiFp)(e);return{deleteSnapTradeUser:(e,t)=>n.deleteSnapTradeUser(e,t).then(e=>e(s,r)),listSnapTradeUsers:e=>n.listSnapTradeUsers(e).then(e=>e(s,r)),loginSnapTradeUser:(e,t)=>n.loginSnapTradeUser(e,t).then(e=>e(s,r)),registerSnapTradeUser:(e,t)=>n.registerSnapTradeUser(e,t).then(e=>e(s,r)),resetSnapTradeUserSecret:(e,t)=>n.resetSnapTradeUserSecret(e,t).then(e=>e(s,r))}};class c extends o.BaseAPI{deleteSnapTradeUser(e,r){return(0,t.AuthenticationApiFp)(this.configuration).deleteSnapTradeUser(e,r).then(e=>e(this.axios,this.basePath))}listSnapTradeUsers(e){return(0,t.AuthenticationApiFp)(this.configuration).listSnapTradeUsers(e).then(e=>e(this.axios,this.basePath))}loginSnapTradeUser(e,r){return(0,t.AuthenticationApiFp)(this.configuration).loginSnapTradeUser(e,r).then(e=>e(this.axios,this.basePath))}registerSnapTradeUser(e,r){return(0,t.AuthenticationApiFp)(this.configuration).registerSnapTradeUser(e,r).then(e=>e(this.axios,this.basePath))}resetSnapTradeUserSecret(e,r){return(0,t.AuthenticationApiFp)(this.configuration).resetSnapTradeUserSecret(e,r).then(e=>e(this.axios,this.basePath))}}t.AuthenticationApiGenerated=c},3926:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3959:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4105:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4188:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||s(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.OptionsApi=void 0;const i=r(400);n(r(400),t);class o extends i.OptionsApiGenerated{}t.OptionsApi=o},4251:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||s(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),n(r(3304),t),n(r(3321),t),n(r(2670),t),n(r(589),t),n(r(6687),t),n(r(2459),t),n(r(2135),t),n(r(2074),t),n(r(6612),t),n(r(2731),t),n(r(5854),t),n(r(1456),t),n(r(8911),t),n(r(833),t),n(r(612),t),n(r(7602),t),n(r(1641),t),n(r(1061),t),n(r(2095),t),n(r(7295),t),n(r(689),t),n(r(7291),t),n(r(1447),t),n(r(4747),t),n(r(1871),t),n(r(9168),t),n(r(5491),t),n(r(3504),t),n(r(6837),t),n(r(8377),t),n(r(570),t),n(r(4700),t),n(r(5942),t),n(r(8222),t),n(r(1590),t),n(r(5166),t),n(r(8958),t),n(r(8696),t),n(r(8498),t),n(r(3926),t),n(r(6483),t),n(r(9452),t),n(r(3104),t),n(r(7249),t),n(r(1843),t),n(r(2525),t),n(r(1766),t),n(r(4105),t),n(r(2286),t),n(r(9634),t),n(r(160),t),n(r(1186),t),n(r(1345),t),n(r(4415),t),n(r(2165),t),n(r(5100),t),n(r(8038),t),n(r(9301),t),n(r(8329),t),n(r(2010),t),n(r(7451),t),n(r(7707),t),n(r(1883),t),n(r(9383),t),n(r(3959),t),n(r(2684),t),n(r(2694),t),n(r(1108),t),n(r(8066),t),n(r(3450),t),n(r(1953),t),n(r(6392),t),n(r(7275),t),n(r(4635),t),n(r(4384),t),n(r(6822),t),n(r(5103),t),n(r(6599),t),n(r(3287),t),n(r(7854),t),n(r(7214),t),n(r(7867),t),n(r(3756),t),n(r(4695),t),n(r(3703),t),n(r(2501),t),n(r(7615),t),n(r(9354),t),n(r(5407),t),n(r(2581),t),n(r(5433),t),n(r(8486),t),n(r(9032),t),n(r(8305),t),n(r(8996),t),n(r(8032),t),n(r(6142),t),n(r(6375),t),n(r(4909),t),n(r(6944),t),n(r(8774),t),n(r(6489),t),n(r(4784),t),n(r(1164),t),n(r(6882),t),n(r(6342),t),n(r(3262),t),n(r(8927),t),n(r(2327),t),n(r(7906),t),n(r(7335),t),n(r(5267),t),n(r(129),t),n(r(6927),t),n(r(6337),t),n(r(1882),t),n(r(8951),t),n(r(9957),t),n(r(5359),t),n(r(6435),t),n(r(3485),t),n(r(7091),t),n(r(2350),t),n(r(5675),t),n(r(5547),t),n(r(6054),t),n(r(8818),t),n(r(4606),t),n(r(1190),t),n(r(1837),t),n(r(9486),t),n(r(5401),t),n(r(6255),t),n(r(1070),t),n(r(8670),t),n(r(803),t),n(r(624),t),n(r(2059),t)},4375:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||s(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectionsApi=void 0;const i=r(8015);n(r(8015),t);class o extends i.ConnectionsApiGenerated{}t.ConnectionsApi=o},4384:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4415:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4445:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.requestBeforeHook=void 0,t.requestBeforeHook=function(e){const{queryParameters:t}=e;t.timestamp=Math.round((new Date).getTime()/1e3).toString()}},4467:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RequiredError=t.BaseAPI=t.COLLECTION_FORMATS=t.BASE_PATH=void 0;const s=r(8451);t.BASE_PATH="https://api.snaptrade.com/api/v1".replace(/\/+$/,""),t.COLLECTION_FORMATS={csv:",",ssv:" ",tsv:"\t",pipes:"|"},t.BaseAPI=class{constructor(e,r=t.BASE_PATH,n=s.default){this.basePath=r,this.axios=n,e&&(this.configuration=e,this.basePath=e.basePath||this.basePath)}};class n extends Error{constructor(e,t){super(t),this.field=e,this.name="RequiredError"}}t.RequiredError=n},4606:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4635:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4695:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4700:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4747:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4784:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4909:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5100:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5103:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5166:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5198:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||s(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.ReferenceDataApi=void 0;const i=r(8902);n(r(8902),t);class o extends i.ReferenceDataApiGenerated{}t.ReferenceDataApi=o},5267:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5359:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5401:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5407:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5433:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5469:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SnaptradeCustom=void 0,t.SnaptradeCustom=class{constructor(e){}}},5491:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5511:function(e,t,r){"use strict";var s=this&&this.__awaiter||function(e,t,r,s){return new(r||(r=Promise))(function(n,i){function o(e){try{c(s.next(e))}catch(e){i(e)}}function a(e){try{c(s.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(o,a)}c((s=s.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.isBrowser=t.createRequestFunction=t.removeTrailingSlash=t.toPathString=t.serializeDataIfNeeded=t.setSearchParams=t.setBearerAuthToObject=t.setBasicAuthToObject=t.setApiKeyToObject=t.assertParamExists=t.DUMMY_BASE_URL=void 0;const n=r(4467),i=r(8451),o=r(1204),a=r(2362),c=r(1934);function u(e,t,r=""){"object"==typeof t?Array.isArray(t)?t.forEach(t=>u(e,t,r)):Object.keys(t).forEach(s=>u(e,t[s],`${r}${""!==r?".":""}${s}`)):e.has(r)?e.append(r,t):e.set(r,t)}t.DUMMY_BASE_URL="https://example.com",t.assertParamExists=function(e,t,r){if(null==r)throw new n.RequiredError(t,`Required parameter ${t} was null or undefined when calling ${e}.`)},t.setApiKeyToObject=function({object:e,key:t,type:r,keyParamName:n,configuration:i,prefix:o}){return s(this,void 0,void 0,function*(){t=t||n;let s=null;if(i&&i.apiKey)if("function"==typeof i.apiKey)s=yield i.apiKey(n);else if("string"==typeof i.apiKey)s=i.apiKey;else{if("object"!=typeof i.apiKey)throw Error(`Unexpected type ${typeof i.apiKey} for Configuration.apiKey`);n in i.apiKey&&(s=i.apiKey[n])}s&&(e[t]=void 0!==o?`${o}${s}`:s,"Cookie"===r&&(e[t]=`${n}=${e[t]}`))})},t.setBasicAuthToObject=function(e,t){t&&(t.username||t.password)&&(e.auth={username:t.username,password:t.password})},t.setBearerAuthToObject=function(e,t){return s(this,void 0,void 0,function*(){if(t&&t.accessToken){const r="function"==typeof t.accessToken?yield t.accessToken():yield t.accessToken;e.Authorization="Bearer "+r}})},t.setSearchParams=function(e,...t){const r=new URLSearchParams(e.search);u(r,t),e.search=r.toString()},t.serializeDataIfNeeded=function(e,t,r){const s="string"!=typeof e;return(s&&r&&r.isJsonMime?r.isJsonMime(t.headers["Content-Type"]):s)?JSON.stringify(void 0!==e?e:{}):e||""},t.toPathString=function(e){return(0,t.removeTrailingSlash)(e.pathname)+e.search+e.hash},t.removeTrailingSlash=function(e){return e.replace(/\/$/,"")},t.createRequestFunction=function(e,t,r,n){return(u=t,d=r)=>s(this,void 0,void 0,function*(){(0,a.requestBeforeUrlHook)({axiosArgs:e,basePath:d,configuration:n});const t=((null==n?void 0:n.basePath)||d)+e.url;return yield(0,o.requestAfterHook)({axiosArgs:e,basePath:d,url:t,configuration:n}),function(e){var t,r,n,o,a,u;return s(this,void 0,void 0,function*(){let s=0,d=5e3;for(;s<3;)try{return yield e()}catch(e){if(e instanceof i.AxiosError&&e.isAxiosError){if(429==(null===(t=e.response)||void 0===t?void 0:t.status)){s++,console.log(`429 error encountered, retrying in ${d/1e3} seconds...`),yield new Promise(e=>setTimeout(e,d)),d*=2;continue}try{const t=(null===(r=e.response)||void 0===r?void 0:r.data)instanceof ReadableStream?yield(0,c.readableStreamToString)(e.response.data):null===(n=e.response)||void 0===n?void 0:n.data;throw new c.SnaptradeError(e,(0,c.parseIfJson)(t),null===(o=e.response)||void 0===o?void 0:o.headers)}catch(t){if(t instanceof ReferenceError)throw new c.SnaptradeError(e,null===(a=e.response)||void 0===a?void 0:a.data,null===(u=e.response)||void 0===u?void 0:u.headers);if(t instanceof c.SnaptradeError)throw t;throw e}}throw e}throw new Error("Request failed after 3 retries due to 429 (rate limit) errors.")})}(()=>s(this,void 0,void 0,function*(){return yield u.request(Object.assign(Object.assign({},e.options),{url:t}))}))})},t.isBrowser=function(){return"undefined"!=typeof window}},5547:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5675:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5854:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5942:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6054:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6057:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Snaptrade=void 0;const s=r(8564),n=r(6254),i=r(5469);class o extends i.SnaptradeCustom{constructor(e={}){super(e);const t=new n.Configuration(e);this.accountInformation=new s.AccountInformationApi(t),this.apiStatus=new s.ApiStatusApi(t),this.authentication=new s.AuthenticationApi(t),this.connections=new s.ConnectionsApi(t),this.options=new s.OptionsApi(t),this.referenceData=new s.ReferenceDataApi(t),this.trading=new s.TradingApi(t),this.transactionsAndReporting=new s.TransactionsAndReportingApi(t)}}t.Snaptrade=o},6142:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6227:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||s(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.ApiStatusApi=void 0;const i=r(8747);n(r(8747),t);class o extends i.ApiStatusApiGenerated{}t.ApiStatusApi=o},6254:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Configuration=void 0,t.Configuration=class{constructor(e={}){var t;this.consumerKey=e.consumerKey,this.apiKey=e.apiKey,void 0===this.apiKey&&(this.apiKey={},void 0!==e.clientId&&(this.apiKey.clientId=e.clientId),void 0!==e.signature&&(this.apiKey.signature=e.signature),void 0!==e.timestamp&&(this.apiKey.timestamp=e.timestamp)),this.username=e.username,this.password=e.password,this.accessToken=e.accessToken,this.basePath=e.basePath,this.baseOptions=null!==(t=e.baseOptions)&&void 0!==t?t:{},this.userAgent=void 0===e.userAgent?"Konfig/9.0.130/typescript":e.userAgent,this.formDataCtor=e.formDataCtor}isJsonMime(e){const t=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==e&&(t.test(e)||"application/json-patch+json"===e.toLowerCase())}}},6255:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6337:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6342:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6375:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6392:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6435:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6483:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6489:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6599:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6612:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6687:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6822:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6837:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6882:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6927:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6944:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7091:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7214:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7249:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7275:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7291:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7295:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7335:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7451:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7483:function(e,t,r){"use strict";var s=this&&this.__awaiter||function(e,t,r,s){return new(r||(r=Promise))(function(n,i){function o(e){try{c(s.next(e))}catch(e){i(e)}}function a(e){try{c(s.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(o,a)}c((s=s.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.TradingApiGenerated=t.TradingApiFactory=t.TradingApiFp=t.TradingApiAxiosParamCreator=void 0;const n=r(8451),i=r(5511),o=r(4467),a=r(4445);t.TradingApiAxiosParamCreator=function(e){return{cancelOrder:(t,r,n,o,c={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("cancelOrder","userId",t),(0,i.assertParamExists)("cancelOrder","userSecret",r),(0,i.assertParamExists)("cancelOrder","accountId",n),(0,i.assertParamExists)("cancelOrder","tradingCancelUserAccountOrderRequest",o);const s="/accounts/{accountId}/trading/cancel".replace("{accountId}",encodeURIComponent(String(void 0!==n?n:"-accountId-"))),u=new URL(s,i.DUMMY_BASE_URL);let d;e&&(d=e.baseOptions);const l=Object.assign(Object.assign({method:"POST"},d),c),p=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},h={};yield(0,i.setApiKeyToObject)({object:h,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(h.userId=t),void 0!==r&&(h.userSecret=r),p["Content-Type"]="application/json";let g=d&&d.headers?d.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},p),g),c.headers),(0,a.requestBeforeHook)({requestBody:o,queryParameters:h,requestConfig:l,path:s,configuration:e,pathTemplate:"/accounts/{accountId}/trading/cancel",httpMethod:"POST"}),l.data=(0,i.serializeDataIfNeeded)(o,l,e),(0,i.setSearchParams)(u,h),{url:(0,i.toPathString)(u),options:l}}),cancelUserAccountOrder:(t,r,n,o,c={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("cancelUserAccountOrder","userId",t),(0,i.assertParamExists)("cancelUserAccountOrder","userSecret",r),(0,i.assertParamExists)("cancelUserAccountOrder","accountId",n),(0,i.assertParamExists)("cancelUserAccountOrder","tradingCancelUserAccountOrderRequest",o);const s="/accounts/{accountId}/orders/cancel".replace("{accountId}",encodeURIComponent(String(void 0!==n?n:"-accountId-"))),u=new URL(s,i.DUMMY_BASE_URL);let d;e&&(d=e.baseOptions);const l=Object.assign(Object.assign({method:"POST"},d),c),p=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},h={};yield(0,i.setApiKeyToObject)({object:h,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(h.userId=t),void 0!==r&&(h.userSecret=r),p["Content-Type"]="application/json";let g=d&&d.headers?d.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},p),g),c.headers),(0,a.requestBeforeHook)({requestBody:o,queryParameters:h,requestConfig:l,path:s,configuration:e,pathTemplate:"/accounts/{accountId}/orders/cancel",httpMethod:"POST"}),l.data=(0,i.serializeDataIfNeeded)(o,l,e),(0,i.setSearchParams)(u,h),{url:(0,i.toPathString)(u),options:l}}),getCryptocurrencyPairQuote:(t,r,n,o,c={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("getCryptocurrencyPairQuote","userId",t),(0,i.assertParamExists)("getCryptocurrencyPairQuote","userSecret",r),(0,i.assertParamExists)("getCryptocurrencyPairQuote","accountId",n),(0,i.assertParamExists)("getCryptocurrencyPairQuote","instrumentSymbol",o);const s="/accounts/{accountId}/trading/instruments/cryptocurrencyPairs/{instrumentSymbol}/quote".replace("{accountId}",encodeURIComponent(String(void 0!==n?n:"-accountId-"))).replace("{instrumentSymbol}",encodeURIComponent(String(void 0!==o?o:"-instrumentSymbol-"))),u=new URL(s,i.DUMMY_BASE_URL);let d;e&&(d=e.baseOptions);const l=Object.assign(Object.assign({method:"GET"},d),c),p=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},h={};yield(0,i.setApiKeyToObject)({object:h,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(h.userId=t),void 0!==r&&(h.userSecret=r);let g=d&&d.headers?d.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},p),g),c.headers),(0,a.requestBeforeHook)({queryParameters:h,requestConfig:l,path:s,configuration:e,pathTemplate:"/accounts/{accountId}/trading/instruments/cryptocurrencyPairs/{instrumentSymbol}/quote",httpMethod:"GET"}),(0,i.setSearchParams)(u,h),{url:(0,i.toPathString)(u),options:l}}),getOrderImpact:(t,r,n,o={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("getOrderImpact","userId",t),(0,i.assertParamExists)("getOrderImpact","userSecret",r),(0,i.assertParamExists)("getOrderImpact","manualTradeForm",n);const s="/trade/impact",c=new URL(s,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"POST"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(p.userId=t),void 0!==r&&(p.userSecret=r),l["Content-Type"]="application/json";let h=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),h),o.headers),(0,a.requestBeforeHook)({requestBody:n,queryParameters:p,requestConfig:d,path:s,configuration:e,pathTemplate:"/trade/impact",httpMethod:"POST"}),d.data=(0,i.serializeDataIfNeeded)(n,d,e),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}}),getUserAccountQuotes:(t,r,n,o,c,u={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("getUserAccountQuotes","userId",t),(0,i.assertParamExists)("getUserAccountQuotes","userSecret",r),(0,i.assertParamExists)("getUserAccountQuotes","symbols",n),(0,i.assertParamExists)("getUserAccountQuotes","accountId",o);const s="/accounts/{accountId}/quotes".replace("{accountId}",encodeURIComponent(String(void 0!==o?o:"-accountId-"))),d=new URL(s,i.DUMMY_BASE_URL);let l;e&&(l=e.baseOptions);const p=Object.assign(Object.assign({method:"GET"},l),u),h=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},g={};yield(0,i.setApiKeyToObject)({object:g,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:g,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(g.userId=t),void 0!==r&&(g.userSecret=r),void 0!==n&&(g.symbols=n),void 0!==c&&(g.use_ticker=c);let f=l&&l.headers?l.headers:{};return p.headers=Object.assign(Object.assign(Object.assign({},h),f),u.headers),(0,a.requestBeforeHook)({queryParameters:g,requestConfig:p,path:s,configuration:e,pathTemplate:"/accounts/{accountId}/quotes",httpMethod:"GET"}),(0,i.setSearchParams)(d,g),{url:(0,i.toPathString)(d),options:p}}),placeBracketOrder:(t,r,n,o,c={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("placeBracketOrder","accountId",t),(0,i.assertParamExists)("placeBracketOrder","userId",r),(0,i.assertParamExists)("placeBracketOrder","userSecret",n),(0,i.assertParamExists)("placeBracketOrder","manualTradeFormBracket",o);const s="/accounts/{accountId}/trading/bracket".replace("{accountId}",encodeURIComponent(String(void 0!==t?t:"-accountId-"))),u=new URL(s,i.DUMMY_BASE_URL);let d;e&&(d=e.baseOptions);const l=Object.assign(Object.assign({method:"POST"},d),c),p=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},h={};yield(0,i.setApiKeyToObject)({object:h,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==r&&(h.userId=r),void 0!==n&&(h.userSecret=n),p["Content-Type"]="application/json";let g=d&&d.headers?d.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},p),g),c.headers),(0,a.requestBeforeHook)({requestBody:o,queryParameters:h,requestConfig:l,path:s,configuration:e,pathTemplate:"/accounts/{accountId}/trading/bracket",httpMethod:"POST"}),l.data=(0,i.serializeDataIfNeeded)(o,l,e),(0,i.setSearchParams)(u,h),{url:(0,i.toPathString)(u),options:l}}),placeCryptoOrder:(t,r,n,o,c={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("placeCryptoOrder","userId",t),(0,i.assertParamExists)("placeCryptoOrder","userSecret",r),(0,i.assertParamExists)("placeCryptoOrder","accountId",n),(0,i.assertParamExists)("placeCryptoOrder","cryptoOrderForm",o);const s="/accounts/{accountId}/trading/crypto".replace("{accountId}",encodeURIComponent(String(void 0!==n?n:"-accountId-"))),u=new URL(s,i.DUMMY_BASE_URL);let d;e&&(d=e.baseOptions);const l=Object.assign(Object.assign({method:"POST"},d),c),p=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},h={};yield(0,i.setApiKeyToObject)({object:h,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(h.userId=t),void 0!==r&&(h.userSecret=r),p["Content-Type"]="application/json";let g=d&&d.headers?d.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},p),g),c.headers),(0,a.requestBeforeHook)({requestBody:o,queryParameters:h,requestConfig:l,path:s,configuration:e,pathTemplate:"/accounts/{accountId}/trading/crypto",httpMethod:"POST"}),l.data=(0,i.serializeDataIfNeeded)(o,l,e),(0,i.setSearchParams)(u,h),{url:(0,i.toPathString)(u),options:l}}),placeForceOrder:(t,r,n,o={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("placeForceOrder","userId",t),(0,i.assertParamExists)("placeForceOrder","userSecret",r),(0,i.assertParamExists)("placeForceOrder","manualTradeFormWithOptions",n);const s="/trade/place",c=new URL(s,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"POST"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(p.userId=t),void 0!==r&&(p.userSecret=r),l["Content-Type"]="application/json";let h=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),h),o.headers),(0,a.requestBeforeHook)({requestBody:n,queryParameters:p,requestConfig:d,path:s,configuration:e,pathTemplate:"/trade/place",httpMethod:"POST"}),d.data=(0,i.serializeDataIfNeeded)(n,d,e),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}}),placeMlegOrder:(t,r,n,o,c={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("placeMlegOrder","userId",t),(0,i.assertParamExists)("placeMlegOrder","userSecret",r),(0,i.assertParamExists)("placeMlegOrder","accountId",n),(0,i.assertParamExists)("placeMlegOrder","mlegTradeForm",o);const s="/accounts/{accountId}/trading/options".replace("{accountId}",encodeURIComponent(String(void 0!==n?n:"-accountId-"))),u=new URL(s,i.DUMMY_BASE_URL);let d;e&&(d=e.baseOptions);const l=Object.assign(Object.assign({method:"POST"},d),c),p=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},h={};yield(0,i.setApiKeyToObject)({object:h,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(h.userId=t),void 0!==r&&(h.userSecret=r),p["Content-Type"]="application/json";let g=d&&d.headers?d.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},p),g),c.headers),(0,a.requestBeforeHook)({requestBody:o,queryParameters:h,requestConfig:l,path:s,configuration:e,pathTemplate:"/accounts/{accountId}/trading/options",httpMethod:"POST"}),l.data=(0,i.serializeDataIfNeeded)(o,l,e),(0,i.setSearchParams)(u,h),{url:(0,i.toPathString)(u),options:l}}),placeOrder:(t,r,n,o,c={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("placeOrder","tradeId",t),(0,i.assertParamExists)("placeOrder","userId",r),(0,i.assertParamExists)("placeOrder","userSecret",n);const s="/trade/{tradeId}".replace("{tradeId}",encodeURIComponent(String(void 0!==t?t:"-tradeId-"))),u=new URL(s,i.DUMMY_BASE_URL);let d;e&&(d=e.baseOptions);const l=Object.assign(Object.assign({method:"POST"},d),c),p=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},h={};yield(0,i.setApiKeyToObject)({object:h,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==r&&(h.userId=r),void 0!==n&&(h.userSecret=n),p["Content-Type"]="application/json";let g=d&&d.headers?d.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},p),g),c.headers),(0,a.requestBeforeHook)({requestBody:o,queryParameters:h,requestConfig:l,path:s,configuration:e,pathTemplate:"/trade/{tradeId}",httpMethod:"POST"}),l.data=(0,i.serializeDataIfNeeded)(o,l,e),(0,i.setSearchParams)(u,h),{url:(0,i.toPathString)(u),options:l}}),previewCryptoOrder:(t,r,n,o,c={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("previewCryptoOrder","userId",t),(0,i.assertParamExists)("previewCryptoOrder","userSecret",r),(0,i.assertParamExists)("previewCryptoOrder","accountId",n),(0,i.assertParamExists)("previewCryptoOrder","cryptoOrderForm",o);const s="/accounts/{accountId}/trading/crypto/preview".replace("{accountId}",encodeURIComponent(String(void 0!==n?n:"-accountId-"))),u=new URL(s,i.DUMMY_BASE_URL);let d;e&&(d=e.baseOptions);const l=Object.assign(Object.assign({method:"POST"},d),c),p=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},h={};yield(0,i.setApiKeyToObject)({object:h,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(h.userId=t),void 0!==r&&(h.userSecret=r),p["Content-Type"]="application/json";let g=d&&d.headers?d.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},p),g),c.headers),(0,a.requestBeforeHook)({requestBody:o,queryParameters:h,requestConfig:l,path:s,configuration:e,pathTemplate:"/accounts/{accountId}/trading/crypto/preview",httpMethod:"POST"}),l.data=(0,i.serializeDataIfNeeded)(o,l,e),(0,i.setSearchParams)(u,h),{url:(0,i.toPathString)(u),options:l}}),replaceOrder:(t,r,n,o,c={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("replaceOrder","accountId",t),(0,i.assertParamExists)("replaceOrder","userId",r),(0,i.assertParamExists)("replaceOrder","userSecret",n),(0,i.assertParamExists)("replaceOrder","manualTradeReplaceForm",o);const s="/accounts/{accountId}/trading/replace".replace("{accountId}",encodeURIComponent(String(void 0!==t?t:"-accountId-"))),u=new URL(s,i.DUMMY_BASE_URL);let d;e&&(d=e.baseOptions);const l=Object.assign(Object.assign({method:"POST"},d),c),p=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},h={};yield(0,i.setApiKeyToObject)({object:h,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==r&&(h.userId=r),void 0!==n&&(h.userSecret=n),p["Content-Type"]="application/json";let g=d&&d.headers?d.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},p),g),c.headers),(0,a.requestBeforeHook)({requestBody:o,queryParameters:h,requestConfig:l,path:s,configuration:e,pathTemplate:"/accounts/{accountId}/trading/replace",httpMethod:"POST"}),l.data=(0,i.serializeDataIfNeeded)(o,l,e),(0,i.setSearchParams)(u,h),{url:(0,i.toPathString)(u),options:l}}),searchCryptocurrencyPairInstruments:(t,r,n,o,c,u={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("searchCryptocurrencyPairInstruments","userId",t),(0,i.assertParamExists)("searchCryptocurrencyPairInstruments","userSecret",r),(0,i.assertParamExists)("searchCryptocurrencyPairInstruments","accountId",n);const s="/accounts/{accountId}/trading/instruments/cryptocurrencyPairs".replace("{accountId}",encodeURIComponent(String(void 0!==n?n:"-accountId-"))),d=new URL(s,i.DUMMY_BASE_URL);let l;e&&(l=e.baseOptions);const p=Object.assign(Object.assign({method:"GET"},l),u),h=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},g={};yield(0,i.setApiKeyToObject)({object:g,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:g,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(g.userId=t),void 0!==r&&(g.userSecret=r),void 0!==o&&(g.base=o),void 0!==c&&(g.quote=c);let f=l&&l.headers?l.headers:{};return p.headers=Object.assign(Object.assign(Object.assign({},h),f),u.headers),(0,a.requestBeforeHook)({queryParameters:g,requestConfig:p,path:s,configuration:e,pathTemplate:"/accounts/{accountId}/trading/instruments/cryptocurrencyPairs",httpMethod:"GET"}),(0,i.setSearchParams)(d,g),{url:(0,i.toPathString)(d),options:p}})}},t.TradingApiFp=function(e){const r=(0,t.TradingApiAxiosParamCreator)(e);return{cancelOrder(t,a){return s(this,void 0,void 0,function*(){const s={brokerage_order_id:t.brokerage_order_id},c=yield r.cancelOrder(t.userId,t.userSecret,t.accountId,s,a);return(0,i.createRequestFunction)(c,n.default,o.BASE_PATH,e)})},cancelUserAccountOrder(t,a){return s(this,void 0,void 0,function*(){const s={brokerage_order_id:t.brokerage_order_id},c=yield r.cancelUserAccountOrder(t.userId,t.userSecret,t.accountId,s,a);return(0,i.createRequestFunction)(c,n.default,o.BASE_PATH,e)})},getCryptocurrencyPairQuote(t,a){return s(this,void 0,void 0,function*(){const s=yield r.getCryptocurrencyPairQuote(t.userId,t.userSecret,t.accountId,t.instrumentSymbol,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},getOrderImpact(t,a){return s(this,void 0,void 0,function*(){const s={account_id:t.account_id,action:t.action,universal_symbol_id:t.universal_symbol_id,order_type:t.order_type,time_in_force:t.time_in_force,price:t.price,stop:t.stop,units:t.units,notional_value:t.notional_value},c=yield r.getOrderImpact(t.userId,t.userSecret,s,a);return(0,i.createRequestFunction)(c,n.default,o.BASE_PATH,e)})},getUserAccountQuotes(t,a){return s(this,void 0,void 0,function*(){const s=yield r.getUserAccountQuotes(t.userId,t.userSecret,t.symbols,t.accountId,t.useTicker,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},placeBracketOrder(t,a){return s(this,void 0,void 0,function*(){const s={action:t.action,symbol:t.symbol,instrument:t.instrument,order_type:t.order_type,time_in_force:t.time_in_force,price:t.price,stop:t.stop,units:t.units,stop_loss:t.stop_loss,take_profit:t.take_profit},c=yield r.placeBracketOrder(t.accountId,t.userId,t.userSecret,s,a);return(0,i.createRequestFunction)(c,n.default,o.BASE_PATH,e)})},placeCryptoOrder(t,a){return s(this,void 0,void 0,function*(){const s={instrument:t.instrument,side:t.side,type:t.type,time_in_force:t.time_in_force,amount:t.amount,limit_price:t.limit_price,stop_price:t.stop_price,post_only:t.post_only,expiration_date:t.expiration_date},c=yield r.placeCryptoOrder(t.userId,t.userSecret,t.accountId,s,a);return(0,i.createRequestFunction)(c,n.default,o.BASE_PATH,e)})},placeForceOrder(t,a){return s(this,void 0,void 0,function*(){const s={account_id:t.account_id,action:t.action,universal_symbol_id:t.universal_symbol_id,symbol:t.symbol,order_type:t.order_type,time_in_force:t.time_in_force,price:t.price,stop:t.stop,units:t.units,notional_value:t.notional_value},c=yield r.placeForceOrder(t.userId,t.userSecret,s,a);return(0,i.createRequestFunction)(c,n.default,o.BASE_PATH,e)})},placeMlegOrder(t,a){return s(this,void 0,void 0,function*(){const s={order_type:t.order_type,time_in_force:t.time_in_force,limit_price:t.limit_price,stop_price:t.stop_price,price_effect:t.price_effect,legs:t.legs},c=yield r.placeMlegOrder(t.userId,t.userSecret,t.accountId,s,a);return(0,i.createRequestFunction)(c,n.default,o.BASE_PATH,e)})},placeOrder(t,a){return s(this,void 0,void 0,function*(){const s={wait_to_confirm:t.wait_to_confirm},c=yield r.placeOrder(t.tradeId,t.userId,t.userSecret,s,a);return(0,i.createRequestFunction)(c,n.default,o.BASE_PATH,e)})},previewCryptoOrder(t,a){return s(this,void 0,void 0,function*(){const s={instrument:t.instrument,side:t.side,type:t.type,time_in_force:t.time_in_force,amount:t.amount,limit_price:t.limit_price,stop_price:t.stop_price,post_only:t.post_only,expiration_date:t.expiration_date},c=yield r.previewCryptoOrder(t.userId,t.userSecret,t.accountId,s,a);return(0,i.createRequestFunction)(c,n.default,o.BASE_PATH,e)})},replaceOrder(t,a){return s(this,void 0,void 0,function*(){const s={brokerage_order_id:t.brokerage_order_id,action:t.action,order_type:t.order_type,time_in_force:t.time_in_force,price:t.price,symbol:t.symbol,stop:t.stop,units:t.units},c=yield r.replaceOrder(t.accountId,t.userId,t.userSecret,s,a);return(0,i.createRequestFunction)(c,n.default,o.BASE_PATH,e)})},searchCryptocurrencyPairInstruments(t,a){return s(this,void 0,void 0,function*(){const s=yield r.searchCryptocurrencyPairInstruments(t.userId,t.userSecret,t.accountId,t.base,t.quote,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})}}},t.TradingApiFactory=function(e,r,s){const n=(0,t.TradingApiFp)(e);return{cancelOrder:(e,t)=>n.cancelOrder(e,t).then(e=>e(s,r)),cancelUserAccountOrder:(e,t)=>n.cancelUserAccountOrder(e,t).then(e=>e(s,r)),getCryptocurrencyPairQuote:(e,t)=>n.getCryptocurrencyPairQuote(e,t).then(e=>e(s,r)),getOrderImpact:(e,t)=>n.getOrderImpact(e,t).then(e=>e(s,r)),getUserAccountQuotes:(e,t)=>n.getUserAccountQuotes(e,t).then(e=>e(s,r)),placeBracketOrder:(e,t)=>n.placeBracketOrder(e,t).then(e=>e(s,r)),placeCryptoOrder:(e,t)=>n.placeCryptoOrder(e,t).then(e=>e(s,r)),placeForceOrder:(e,t)=>n.placeForceOrder(e,t).then(e=>e(s,r)),placeMlegOrder:(e,t)=>n.placeMlegOrder(e,t).then(e=>e(s,r)),placeOrder:(e,t)=>n.placeOrder(e,t).then(e=>e(s,r)),previewCryptoOrder:(e,t)=>n.previewCryptoOrder(e,t).then(e=>e(s,r)),replaceOrder:(e,t)=>n.replaceOrder(e,t).then(e=>e(s,r)),searchCryptocurrencyPairInstruments:(e,t)=>n.searchCryptocurrencyPairInstruments(e,t).then(e=>e(s,r))}};class c extends o.BaseAPI{cancelOrder(e,r){return(0,t.TradingApiFp)(this.configuration).cancelOrder(e,r).then(e=>e(this.axios,this.basePath))}cancelUserAccountOrder(e,r){return(0,t.TradingApiFp)(this.configuration).cancelUserAccountOrder(e,r).then(e=>e(this.axios,this.basePath))}getCryptocurrencyPairQuote(e,r){return(0,t.TradingApiFp)(this.configuration).getCryptocurrencyPairQuote(e,r).then(e=>e(this.axios,this.basePath))}getOrderImpact(e,r){return(0,t.TradingApiFp)(this.configuration).getOrderImpact(e,r).then(e=>e(this.axios,this.basePath))}getUserAccountQuotes(e,r){return(0,t.TradingApiFp)(this.configuration).getUserAccountQuotes(e,r).then(e=>e(this.axios,this.basePath))}placeBracketOrder(e,r){return(0,t.TradingApiFp)(this.configuration).placeBracketOrder(e,r).then(e=>e(this.axios,this.basePath))}placeCryptoOrder(e,r){return(0,t.TradingApiFp)(this.configuration).placeCryptoOrder(e,r).then(e=>e(this.axios,this.basePath))}placeForceOrder(e,r){return(0,t.TradingApiFp)(this.configuration).placeForceOrder(e,r).then(e=>e(this.axios,this.basePath))}placeMlegOrder(e,r){return(0,t.TradingApiFp)(this.configuration).placeMlegOrder(e,r).then(e=>e(this.axios,this.basePath))}placeOrder(e,r){return(0,t.TradingApiFp)(this.configuration).placeOrder(e,r).then(e=>e(this.axios,this.basePath))}previewCryptoOrder(e,r){return(0,t.TradingApiFp)(this.configuration).previewCryptoOrder(e,r).then(e=>e(this.axios,this.basePath))}replaceOrder(e,r){return(0,t.TradingApiFp)(this.configuration).replaceOrder(e,r).then(e=>e(this.axios,this.basePath))}searchCryptocurrencyPairInstruments(e,r){return(0,t.TradingApiFp)(this.configuration).searchCryptocurrencyPairInstruments(e,r).then(e=>e(this.axios,this.basePath))}}t.TradingApiGenerated=c},7602:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7615:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7707:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7854:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7867:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7906:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8015:function(e,t,r){"use strict";var s=this&&this.__awaiter||function(e,t,r,s){return new(r||(r=Promise))(function(n,i){function o(e){try{c(s.next(e))}catch(e){i(e)}}function a(e){try{c(s.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(o,a)}c((s=s.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectionsApiGenerated=t.ConnectionsApiFactory=t.ConnectionsApiFp=t.ConnectionsApiAxiosParamCreator=void 0;const n=r(8451),i=r(5511),o=r(4467),a=r(4445);t.ConnectionsApiAxiosParamCreator=function(e){return{detailBrokerageAuthorization:(t,r,n,o={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("detailBrokerageAuthorization","authorizationId",t),(0,i.assertParamExists)("detailBrokerageAuthorization","userId",r),(0,i.assertParamExists)("detailBrokerageAuthorization","userSecret",n);const s="/authorizations/{authorizationId}".replace("{authorizationId}",encodeURIComponent(String(void 0!==t?t:"-authorizationId-"))),c=new URL(s,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"GET"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==r&&(p.userId=r),void 0!==n&&(p.userSecret=n);let h=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),h),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:s,configuration:e,pathTemplate:"/authorizations/{authorizationId}",httpMethod:"GET"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}}),disableBrokerageAuthorization:(t,r,n,o={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("disableBrokerageAuthorization","authorizationId",t),(0,i.assertParamExists)("disableBrokerageAuthorization","userId",r),(0,i.assertParamExists)("disableBrokerageAuthorization","userSecret",n);const s="/authorizations/{authorizationId}/disable".replace("{authorizationId}",encodeURIComponent(String(void 0!==t?t:"-authorizationId-"))),c=new URL(s,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"POST"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==r&&(p.userId=r),void 0!==n&&(p.userSecret=n);let h=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),h),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:s,configuration:e,pathTemplate:"/authorizations/{authorizationId}/disable",httpMethod:"POST"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}}),listBrokerageAuthorizations:(t,r,n={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("listBrokerageAuthorizations","userId",t),(0,i.assertParamExists)("listBrokerageAuthorizations","userSecret",r);const s="/authorizations",o=new URL(s,i.DUMMY_BASE_URL);let c;e&&(c=e.baseOptions);const u=Object.assign(Object.assign({method:"GET"},c),n),d=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},l={};yield(0,i.setApiKeyToObject)({object:l,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:d,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(l.userId=t),void 0!==r&&(l.userSecret=r);let p=c&&c.headers?c.headers:{};return u.headers=Object.assign(Object.assign(Object.assign({},d),p),n.headers),(0,a.requestBeforeHook)({queryParameters:l,requestConfig:u,path:s,configuration:e,pathTemplate:"/authorizations",httpMethod:"GET"}),(0,i.setSearchParams)(o,l),{url:(0,i.toPathString)(o),options:u}}),refreshBrokerageAuthorization:(t,r,n,o={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("refreshBrokerageAuthorization","authorizationId",t),(0,i.assertParamExists)("refreshBrokerageAuthorization","userId",r),(0,i.assertParamExists)("refreshBrokerageAuthorization","userSecret",n);const s="/authorizations/{authorizationId}/refresh".replace("{authorizationId}",encodeURIComponent(String(void 0!==t?t:"-authorizationId-"))),c=new URL(s,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"POST"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==r&&(p.userId=r),void 0!==n&&(p.userSecret=n);let h=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),h),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:s,configuration:e,pathTemplate:"/authorizations/{authorizationId}/refresh",httpMethod:"POST"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}}),removeBrokerageAuthorization:(t,r,n,o={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("removeBrokerageAuthorization","authorizationId",t),(0,i.assertParamExists)("removeBrokerageAuthorization","userId",r),(0,i.assertParamExists)("removeBrokerageAuthorization","userSecret",n);const s="/authorizations/{authorizationId}".replace("{authorizationId}",encodeURIComponent(String(void 0!==t?t:"-authorizationId-"))),c=new URL(s,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"DELETE"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==r&&(p.userId=r),void 0!==n&&(p.userSecret=n);let h=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),h),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:s,configuration:e,pathTemplate:"/authorizations/{authorizationId}",httpMethod:"DELETE"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}}),returnRates:(t,r,n,o={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("returnRates","userId",t),(0,i.assertParamExists)("returnRates","userSecret",r),(0,i.assertParamExists)("returnRates","authorizationId",n);const s="/authorizations/{authorizationId}/returnRates".replace("{authorizationId}",encodeURIComponent(String(void 0!==n?n:"-authorizationId-"))),c=new URL(s,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"GET"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(p.userId=t),void 0!==r&&(p.userSecret=r);let h=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),h),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:s,configuration:e,pathTemplate:"/authorizations/{authorizationId}/returnRates",httpMethod:"GET"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}}),sessionEvents:(t,r,n,o={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("sessionEvents","partnerClientId",t);const s="/sessionEvents",c=new URL(s,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"GET"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(p.PartnerClientId=t),void 0!==r&&(p.userId=r),void 0!==n&&(p.sessionId=n);let h=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),h),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:s,configuration:e,pathTemplate:"/sessionEvents",httpMethod:"GET"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})}},t.ConnectionsApiFp=function(e){const r=(0,t.ConnectionsApiAxiosParamCreator)(e);return{detailBrokerageAuthorization(t,a){return s(this,void 0,void 0,function*(){const s=yield r.detailBrokerageAuthorization(t.authorizationId,t.userId,t.userSecret,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},disableBrokerageAuthorization(t,a){return s(this,void 0,void 0,function*(){const s=yield r.disableBrokerageAuthorization(t.authorizationId,t.userId,t.userSecret,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},listBrokerageAuthorizations(t,a){return s(this,void 0,void 0,function*(){const s=yield r.listBrokerageAuthorizations(t.userId,t.userSecret,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},refreshBrokerageAuthorization(t,a){return s(this,void 0,void 0,function*(){const s=yield r.refreshBrokerageAuthorization(t.authorizationId,t.userId,t.userSecret,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},removeBrokerageAuthorization(t,a){return s(this,void 0,void 0,function*(){const s=yield r.removeBrokerageAuthorization(t.authorizationId,t.userId,t.userSecret,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},returnRates(t,a){return s(this,void 0,void 0,function*(){const s=yield r.returnRates(t.userId,t.userSecret,t.authorizationId,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},sessionEvents(t,a){return s(this,void 0,void 0,function*(){const s=yield r.sessionEvents(t.partnerClientId,t.userId,t.sessionId,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})}}},t.ConnectionsApiFactory=function(e,r,s){const n=(0,t.ConnectionsApiFp)(e);return{detailBrokerageAuthorization:(e,t)=>n.detailBrokerageAuthorization(e,t).then(e=>e(s,r)),disableBrokerageAuthorization:(e,t)=>n.disableBrokerageAuthorization(e,t).then(e=>e(s,r)),listBrokerageAuthorizations:(e,t)=>n.listBrokerageAuthorizations(e,t).then(e=>e(s,r)),refreshBrokerageAuthorization:(e,t)=>n.refreshBrokerageAuthorization(e,t).then(e=>e(s,r)),removeBrokerageAuthorization:(e,t)=>n.removeBrokerageAuthorization(e,t).then(e=>e(s,r)),returnRates:(e,t)=>n.returnRates(e,t).then(e=>e(s,r)),sessionEvents:(e,t)=>n.sessionEvents(e,t).then(e=>e(s,r))}};class c extends o.BaseAPI{detailBrokerageAuthorization(e,r){return(0,t.ConnectionsApiFp)(this.configuration).detailBrokerageAuthorization(e,r).then(e=>e(this.axios,this.basePath))}disableBrokerageAuthorization(e,r){return(0,t.ConnectionsApiFp)(this.configuration).disableBrokerageAuthorization(e,r).then(e=>e(this.axios,this.basePath))}listBrokerageAuthorizations(e,r){return(0,t.ConnectionsApiFp)(this.configuration).listBrokerageAuthorizations(e,r).then(e=>e(this.axios,this.basePath))}refreshBrokerageAuthorization(e,r){return(0,t.ConnectionsApiFp)(this.configuration).refreshBrokerageAuthorization(e,r).then(e=>e(this.axios,this.basePath))}removeBrokerageAuthorization(e,r){return(0,t.ConnectionsApiFp)(this.configuration).removeBrokerageAuthorization(e,r).then(e=>e(this.axios,this.basePath))}returnRates(e,r){return(0,t.ConnectionsApiFp)(this.configuration).returnRates(e,r).then(e=>e(this.axios,this.basePath))}sessionEvents(e,r){return(0,t.ConnectionsApiFp)(this.configuration).sessionEvents(e,r).then(e=>e(this.axios,this.basePath))}}t.ConnectionsApiGenerated=c},8032:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8038:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8066:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8190:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||s(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.AuthenticationApi=void 0;const i=r(3814);n(r(3814),t);class o extends i.AuthenticationApiGenerated{}t.AuthenticationApi=o},8222:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8270:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||s(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.AccountInformationApi=void 0;const i=r(9190);n(r(9190),t);class o extends i.AccountInformationApiGenerated{}t.AccountInformationApi=o},8305:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8329:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8377:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8451:(e,t,r)=>{"use strict";function s(e,t){return function(){return e.apply(t,arguments)}}const{toString:n}=Object.prototype,{getPrototypeOf:i}=Object,{iterator:o,toStringTag:a}=Symbol,c=(u=Object.create(null),e=>{const t=n.call(e);return u[t]||(u[t]=t.slice(8,-1).toLowerCase())});var u;const d=e=>(e=e.toLowerCase(),t=>c(t)===e),l=e=>t=>typeof t===e,{isArray:p}=Array,h=l("undefined"),g=d("ArrayBuffer"),f=l("string"),y=l("function"),m=l("number"),b=e=>null!==e&&"object"==typeof e,O=e=>{if("object"!==c(e))return!1;const t=i(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||a in e||o in e)},A=d("Date"),P=d("File"),j=d("Blob"),v=d("FileList"),S=d("URLSearchParams"),[_,T,k,I]=["ReadableStream","Request","Response","Headers"].map(d);function E(e,t,{allOwnKeys:r=!1}={}){if(null==e)return;let s,n;if("object"!=typeof e&&(e=[e]),p(e))for(s=0,n=e.length;s<n;s++)t.call(null,e[s],s,e);else{const n=r?Object.getOwnPropertyNames(e):Object.keys(e),i=n.length;let o;for(s=0;s<i;s++)o=n[s],t.call(null,e[o],o,e)}}function U(e,t){t=t.toLowerCase();const r=Object.keys(e);let s,n=r.length;for(;n-- >0;)if(s=r[n],t===s.toLowerCase())return s;return null}const R="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:r.g,w=e=>!h(e)&&e!==R,B=(x="undefined"!=typeof Uint8Array&&i(Uint8Array),e=>x&&e instanceof x);var x;const M=d("HTMLFormElement"),C=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),q=d("RegExp"),N=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),s={};E(r,(r,n)=>{let i;!1!==(i=t(r,n,e))&&(s[n]=i||r)}),Object.defineProperties(e,s)},F=d("AsyncFunction"),D=(K="function"==typeof setImmediate,L=y(R.postMessage),K?setImmediate:L?(H=`axios@${Math.random()}`,z=[],R.addEventListener("message",({source:e,data:t})=>{e===R&&t===H&&z.length&&z.shift()()},!1),e=>{z.push(e),R.postMessage(H,"*")}):e=>setTimeout(e));var K,L,H,z;const G="undefined"!=typeof queueMicrotask?queueMicrotask.bind(R):"undefined"!=typeof process&&process.nextTick||D;var Y={isArray:p,isArrayBuffer:g,isBuffer:function(e){return null!==e&&!h(e)&&null!==e.constructor&&!h(e.constructor)&&y(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||y(e.append)&&("formdata"===(t=c(e))||"object"===t&&y(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&g(e.buffer),t},isString:f,isNumber:m,isBoolean:e=>!0===e||!1===e,isObject:b,isPlainObject:O,isReadableStream:_,isRequest:T,isResponse:k,isHeaders:I,isUndefined:h,isDate:A,isFile:P,isBlob:j,isRegExp:q,isFunction:y,isStream:e=>b(e)&&y(e.pipe),isURLSearchParams:S,isTypedArray:B,isFileList:v,forEach:E,merge:function e(){const{caseless:t}=w(this)&&this||{},r={},s=(s,n)=>{const i=t&&U(r,n)||n;O(r[i])&&O(s)?r[i]=e(r[i],s):O(s)?r[i]=e({},s):p(s)?r[i]=s.slice():r[i]=s};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&E(arguments[e],s);return r},extend:(e,t,r,{allOwnKeys:n}={})=>(E(t,(t,n)=>{r&&y(t)?e[n]=s(t,r):e[n]=t},{allOwnKeys:n}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,s)=>{e.prototype=Object.create(t.prototype,s),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,s)=>{let n,o,a;const c={};if(t=t||{},null==e)return t;do{for(n=Object.getOwnPropertyNames(e),o=n.length;o-- >0;)a=n[o],s&&!s(a,e,t)||c[a]||(t[a]=e[a],c[a]=!0);e=!1!==r&&i(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:c,kindOfTest:d,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;const s=e.indexOf(t,r);return-1!==s&&s===r},toArray:e=>{if(!e)return null;if(p(e))return e;let t=e.length;if(!m(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{const r=(e&&e[o]).call(e);let s;for(;(s=r.next())&&!s.done;){const r=s.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>{let r;const s=[];for(;null!==(r=e.exec(t));)s.push(r);return s},isHTMLForm:M,hasOwnProperty:C,hasOwnProp:C,reduceDescriptors:N,freezeMethods:e=>{N(e,(t,r)=>{if(y(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const s=e[r];y(s)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))})},toObjectSet:(e,t)=>{const r={},s=e=>{e.forEach(e=>{r[e]=!0})};return p(e)?s(e):s(String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,r){return t.toUpperCase()+r}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:U,global:R,isContextDefined:w,isSpecCompliantForm:function(e){return!!(e&&y(e.append)&&"FormData"===e[a]&&e[o])},toJSONObject:e=>{const t=new Array(10),r=(e,s)=>{if(b(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[s]=e;const n=p(e)?[]:{};return E(e,(e,t)=>{const i=r(e,s+1);!h(i)&&(n[t]=i)}),t[s]=void 0,n}}return e};return r(e,0)},isAsyncFn:F,isThenable:e=>e&&(b(e)||y(e))&&y(e.then)&&y(e.catch),setImmediate:D,asap:G,isIterable:e=>null!=e&&y(e[o])};function J(e,t,r,s,n){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),s&&(this.request=s),n&&(this.response=n,this.status=n.status?n.status:null)}Y.inherits(J,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Y.toJSONObject(this.config),code:this.code,status:this.status}}});const $=J.prototype,Q={};function W(e){return Y.isPlainObject(e)||Y.isArray(e)}function V(e){return Y.endsWith(e,"[]")?e.slice(0,-2):e}function X(e,t,r){return e?e.concat(t).map(function(e,t){return e=V(e),!r&&t?"["+e+"]":e}).join(r?".":""):t}["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Q[e]={value:e}}),Object.defineProperties(J,Q),Object.defineProperty($,"isAxiosError",{value:!0}),J.from=(e,t,r,s,n,i)=>{const o=Object.create($);return Y.toFlatObject(e,o,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e),J.call(o,e.message,t,r,s,n),o.cause=e,o.name=e.name,i&&Object.assign(o,i),o};const Z=Y.toFlatObject(Y,{},null,function(e){return/^is[A-Z]/.test(e)});function ee(e,t,r){if(!Y.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const s=(r=Y.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!Y.isUndefined(t[e])})).metaTokens,n=r.visitor||u,i=r.dots,o=r.indexes,a=(r.Blob||"undefined"!=typeof Blob&&Blob)&&Y.isSpecCompliantForm(t);if(!Y.isFunction(n))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(Y.isDate(e))return e.toISOString();if(Y.isBoolean(e))return e.toString();if(!a&&Y.isBlob(e))throw new J("Blob is not supported. Use a Buffer instead.");return Y.isArrayBuffer(e)||Y.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,r,n){let a=e;if(e&&!n&&"object"==typeof e)if(Y.endsWith(r,"{}"))r=s?r:r.slice(0,-2),e=JSON.stringify(e);else if(Y.isArray(e)&&function(e){return Y.isArray(e)&&!e.some(W)}(e)||(Y.isFileList(e)||Y.endsWith(r,"[]"))&&(a=Y.toArray(e)))return r=V(r),a.forEach(function(e,s){!Y.isUndefined(e)&&null!==e&&t.append(!0===o?X([r],s,i):null===o?r:r+"[]",c(e))}),!1;return!!W(e)||(t.append(X(n,r,i),c(e)),!1)}const d=[],l=Object.assign(Z,{defaultVisitor:u,convertValue:c,isVisitable:W});if(!Y.isObject(e))throw new TypeError("data must be an object");return function e(r,s){if(!Y.isUndefined(r)){if(-1!==d.indexOf(r))throw Error("Circular reference detected in "+s.join("."));d.push(r),Y.forEach(r,function(r,i){!0===(!(Y.isUndefined(r)||null===r)&&n.call(t,r,Y.isString(i)?i.trim():i,s,l))&&e(r,s?s.concat(i):[i])}),d.pop()}}(e),t}function te(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function re(e,t){this._pairs=[],e&&ee(e,this,t)}const se=re.prototype;function ne(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ie(e,t,r){if(!t)return e;const s=r&&r.encode||ne;Y.isFunction(r)&&(r={serialize:r});const n=r&&r.serialize;let i;if(i=n?n(t,r):Y.isURLSearchParams(t)?t.toString():new re(t,r).toString(s),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}se.append=function(e,t){this._pairs.push([e,t])},se.toString=function(e){const t=e?function(t){return e.call(this,t,te)}:te;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};var oe=class{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Y.forEach(this.handlers,function(t){null!==t&&e(t)})}},ae={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ce={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:re,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const ue="undefined"!=typeof window&&"undefined"!=typeof document,de="object"==typeof navigator&&navigator||void 0,le=ue&&(!de||["ReactNative","NativeScript","NS"].indexOf(de.product)<0),pe="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,he=ue&&window.location.href||"http://localhost";var ge={...Object.freeze({__proto__:null,hasBrowserEnv:ue,hasStandardBrowserWebWorkerEnv:pe,hasStandardBrowserEnv:le,navigator:de,origin:he}),...ce};function fe(e){function t(e,r,s,n){let i=e[n++];if("__proto__"===i)return!0;const o=Number.isFinite(+i),a=n>=e.length;return i=!i&&Y.isArray(s)?s.length:i,a?(Y.hasOwnProp(s,i)?s[i]=[s[i],r]:s[i]=r,!o):(s[i]&&Y.isObject(s[i])||(s[i]=[]),t(e,r,s[i],n)&&Y.isArray(s[i])&&(s[i]=function(e){const t={},r=Object.keys(e);let s;const n=r.length;let i;for(s=0;s<n;s++)i=r[s],t[i]=e[i];return t}(s[i])),!o)}if(Y.isFormData(e)&&Y.isFunction(e.entries)){const r={};return Y.forEachEntry(e,(e,s)=>{t(function(e){return Y.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),s,r,0)}),r}return null}const ye={transitional:ae,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",s=r.indexOf("application/json")>-1,n=Y.isObject(e);if(n&&Y.isHTMLForm(e)&&(e=new FormData(e)),Y.isFormData(e))return s?JSON.stringify(fe(e)):e;if(Y.isArrayBuffer(e)||Y.isBuffer(e)||Y.isStream(e)||Y.isFile(e)||Y.isBlob(e)||Y.isReadableStream(e))return e;if(Y.isArrayBufferView(e))return e.buffer;if(Y.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(n){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return ee(e,new ge.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,s){return ge.isNode&&Y.isBuffer(e)?(this.append(t,e.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=Y.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return ee(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return n||s?(t.setContentType("application/json",!1),function(e){if(Y.isString(e))try{return(0,JSON.parse)(e),Y.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||ye.transitional,r=t&&t.forcedJSONParsing,s="json"===this.responseType;if(Y.isResponse(e)||Y.isReadableStream(e))return e;if(e&&Y.isString(e)&&(r&&!this.responseType||s)){const r=!(t&&t.silentJSONParsing)&&s;try{return JSON.parse(e)}catch(e){if(r){if("SyntaxError"===e.name)throw J.from(e,J.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ge.classes.FormData,Blob:ge.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Y.forEach(["delete","get","head","post","put","patch"],e=>{ye.headers[e]={}});var me=ye;const be=Y.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Oe=Symbol("internals");function Ae(e){return e&&String(e).trim().toLowerCase()}function Pe(e){return!1===e||null==e?e:Y.isArray(e)?e.map(Pe):String(e)}function je(e,t,r,s,n){return Y.isFunction(s)?s.call(this,t,r):(n&&(t=r),Y.isString(t)?Y.isString(s)?-1!==t.indexOf(s):Y.isRegExp(s)?s.test(t):void 0:void 0)}class ve{constructor(e){e&&this.set(e)}set(e,t,r){const s=this;function n(e,t,r){const n=Ae(t);if(!n)throw new Error("header name must be a non-empty string");const i=Y.findKey(s,n);(!i||void 0===s[i]||!0===r||void 0===r&&!1!==s[i])&&(s[i||t]=Pe(e))}const i=(e,t)=>Y.forEach(e,(e,r)=>n(e,r,t));if(Y.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(Y.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let r,s,n;return e&&e.split("\n").forEach(function(e){n=e.indexOf(":"),r=e.substring(0,n).trim().toLowerCase(),s=e.substring(n+1).trim(),!r||t[r]&&be[r]||("set-cookie"===r?t[r]?t[r].push(s):t[r]=[s]:t[r]=t[r]?t[r]+", "+s:s)}),t})(e),t);else if(Y.isObject(e)&&Y.isIterable(e)){let r,s,n={};for(const t of e){if(!Y.isArray(t))throw TypeError("Object iterator must return a key-value pair");n[s=t[0]]=(r=n[s])?Y.isArray(r)?[...r,t[1]]:[r,t[1]]:t[1]}i(n,t)}else null!=e&&n(t,e,r);return this}get(e,t){if(e=Ae(e)){const r=Y.findKey(this,e);if(r){const e=this[r];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=r.exec(e);)t[s[1]]=s[2];return t}(e);if(Y.isFunction(t))return t.call(this,e,r);if(Y.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Ae(e)){const r=Y.findKey(this,e);return!(!r||void 0===this[r]||t&&!je(0,this[r],r,t))}return!1}delete(e,t){const r=this;let s=!1;function n(e){if(e=Ae(e)){const n=Y.findKey(r,e);!n||t&&!je(0,r[n],n,t)||(delete r[n],s=!0)}}return Y.isArray(e)?e.forEach(n):n(e),s}clear(e){const t=Object.keys(this);let r=t.length,s=!1;for(;r--;){const n=t[r];e&&!je(0,this[n],n,e,!0)||(delete this[n],s=!0)}return s}normalize(e){const t=this,r={};return Y.forEach(this,(s,n)=>{const i=Y.findKey(r,n);if(i)return t[i]=Pe(s),void delete t[n];const o=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r)}(n):String(n).trim();o!==n&&delete t[n],t[o]=Pe(s),r[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Y.forEach(this,(r,s)=>{null!=r&&!1!==r&&(t[s]=e&&Y.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach(e=>r.set(e)),r}static accessor(e){const t=(this[Oe]=this[Oe]={accessors:{}}).accessors,r=this.prototype;function s(e){const s=Ae(e);t[s]||(function(e,t){const r=Y.toCamelCase(" "+t);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+r,{value:function(e,r,n){return this[s].call(this,t,e,r,n)},configurable:!0})})}(r,e),t[s]=!0)}return Y.isArray(e)?e.forEach(s):s(e),this}}ve.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Y.reduceDescriptors(ve.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}}),Y.freezeMethods(ve);var Se=ve;function _e(e,t){const r=this||me,s=t||r,n=Se.from(s.headers);let i=s.data;return Y.forEach(e,function(e){i=e.call(r,i,n.normalize(),t?t.status:void 0)}),n.normalize(),i}function Te(e){return!(!e||!e.__CANCEL__)}function ke(e,t,r){J.call(this,null==e?"canceled":e,J.ERR_CANCELED,t,r),this.name="CanceledError"}function Ie(e,t,r){const s=r.config.validateStatus;r.status&&s&&!s(r.status)?t(new J("Request failed with status code "+r.status,[J.ERR_BAD_REQUEST,J.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}Y.inherits(ke,J,{__CANCEL__:!0});const Ee=(e,t,r=3)=>{let s=0;const n=function(e,t){e=e||10;const r=new Array(e),s=new Array(e);let n,i=0,o=0;return t=void 0!==t?t:1e3,function(a){const c=Date.now(),u=s[o];n||(n=c),r[i]=a,s[i]=c;let d=o,l=0;for(;d!==i;)l+=r[d++],d%=e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),c-n<t)return;const p=u&&c-u;return p?Math.round(1e3*l/p):void 0}}(50,250);return function(e,t){let r,s,n=0,i=1e3/t;const o=(t,i=Date.now())=>{n=i,r=null,s&&(clearTimeout(s),s=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),a=t-n;a>=i?o(e,t):(r=e,s||(s=setTimeout(()=>{s=null,o(r)},i-a)))},()=>r&&o(r)]}(r=>{const i=r.loaded,o=r.lengthComputable?r.total:void 0,a=i-s,c=n(a);s=i,e({loaded:i,total:o,progress:o?i/o:void 0,bytes:a,rate:c||void 0,estimated:c&&o&&i<=o?(o-i)/c:void 0,event:r,lengthComputable:null!=o,[t?"download":"upload"]:!0})},r)},Ue=(e,t)=>{const r=null!=e;return[s=>t[0]({lengthComputable:r,total:e,loaded:s}),t[1]]},Re=e=>(...t)=>Y.asap(()=>e(...t));var we=ge.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,ge.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(ge.origin),ge.navigator&&/(msie|trident)/i.test(ge.navigator.userAgent)):()=>!0,Be=ge.hasStandardBrowserEnv?{write(e,t,r,s,n,i){const o=[e+"="+encodeURIComponent(t)];Y.isNumber(r)&&o.push("expires="+new Date(r).toGMTString()),Y.isString(s)&&o.push("path="+s),Y.isString(n)&&o.push("domain="+n),!0===i&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function xe(e,t,r){let s=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(s||0==r)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Me=e=>e instanceof Se?{...e}:e;function Ce(e,t){t=t||{};const r={};function s(e,t,r,s){return Y.isPlainObject(e)&&Y.isPlainObject(t)?Y.merge.call({caseless:s},e,t):Y.isPlainObject(t)?Y.merge({},t):Y.isArray(t)?t.slice():t}function n(e,t,r,n){return Y.isUndefined(t)?Y.isUndefined(e)?void 0:s(void 0,e,0,n):s(e,t,0,n)}function i(e,t){if(!Y.isUndefined(t))return s(void 0,t)}function o(e,t){return Y.isUndefined(t)?Y.isUndefined(e)?void 0:s(void 0,e):s(void 0,t)}function a(r,n,i){return i in t?s(r,n):i in e?s(void 0,r):void 0}const c={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(e,t,r)=>n(Me(e),Me(t),0,!0)};return Y.forEach(Object.keys(Object.assign({},e,t)),function(s){const i=c[s]||n,o=i(e[s],t[s],s);Y.isUndefined(o)&&i!==a||(r[s]=o)}),r}var qe=e=>{const t=Ce({},e);let r,{data:s,withXSRFToken:n,xsrfHeaderName:i,xsrfCookieName:o,headers:a,auth:c}=t;if(t.headers=a=Se.from(a),t.url=ie(xe(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),c&&a.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),Y.isFormData(s))if(ge.hasStandardBrowserEnv||ge.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(!1!==(r=a.getContentType())){const[e,...t]=r?r.split(";").map(e=>e.trim()).filter(Boolean):[];a.setContentType([e||"multipart/form-data",...t].join("; "))}if(ge.hasStandardBrowserEnv&&(n&&Y.isFunction(n)&&(n=n(t)),n||!1!==n&&we(t.url))){const e=i&&o&&Be.read(o);e&&a.set(i,e)}return t},Ne="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,r){const s=qe(e);let n=s.data;const i=Se.from(s.headers).normalize();let o,a,c,u,d,{responseType:l,onUploadProgress:p,onDownloadProgress:h}=s;function g(){u&&u(),d&&d(),s.cancelToken&&s.cancelToken.unsubscribe(o),s.signal&&s.signal.removeEventListener("abort",o)}let f=new XMLHttpRequest;function y(){if(!f)return;const s=Se.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders());Ie(function(e){t(e),g()},function(e){r(e),g()},{data:l&&"text"!==l&&"json"!==l?f.response:f.responseText,status:f.status,statusText:f.statusText,headers:s,config:e,request:f}),f=null}f.open(s.method.toUpperCase(),s.url,!0),f.timeout=s.timeout,"onloadend"in f?f.onloadend=y:f.onreadystatechange=function(){f&&4===f.readyState&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))&&setTimeout(y)},f.onabort=function(){f&&(r(new J("Request aborted",J.ECONNABORTED,e,f)),f=null)},f.onerror=function(){r(new J("Network Error",J.ERR_NETWORK,e,f)),f=null},f.ontimeout=function(){let t=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const n=s.transitional||ae;s.timeoutErrorMessage&&(t=s.timeoutErrorMessage),r(new J(t,n.clarifyTimeoutError?J.ETIMEDOUT:J.ECONNABORTED,e,f)),f=null},void 0===n&&i.setContentType(null),"setRequestHeader"in f&&Y.forEach(i.toJSON(),function(e,t){f.setRequestHeader(t,e)}),Y.isUndefined(s.withCredentials)||(f.withCredentials=!!s.withCredentials),l&&"json"!==l&&(f.responseType=s.responseType),h&&([c,d]=Ee(h,!0),f.addEventListener("progress",c)),p&&f.upload&&([a,u]=Ee(p),f.upload.addEventListener("progress",a),f.upload.addEventListener("loadend",u)),(s.cancelToken||s.signal)&&(o=t=>{f&&(r(!t||t.type?new ke(null,e,f):t),f.abort(),f=null)},s.cancelToken&&s.cancelToken.subscribe(o),s.signal&&(s.signal.aborted?o():s.signal.addEventListener("abort",o)));const m=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(s.url);m&&-1===ge.protocols.indexOf(m)?r(new J("Unsupported protocol "+m+":",J.ERR_BAD_REQUEST,e)):f.send(n||null)})},Fe=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let r,s=new AbortController;const n=function(e){if(!r){r=!0,o();const t=e instanceof Error?e:this.reason;s.abort(t instanceof J?t:new ke(t instanceof Error?t.message:t))}};let i=t&&setTimeout(()=>{i=null,n(new J(`timeout ${t} of ms exceeded`,J.ETIMEDOUT))},t);const o=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(n):e.removeEventListener("abort",n)}),e=null)};e.forEach(e=>e.addEventListener("abort",n));const{signal:a}=s;return a.unsubscribe=()=>Y.asap(o),a}};const De=function*(e,t){let r=e.byteLength;if(!t||r<t)return void(yield e);let s,n=0;for(;n<r;)s=n+t,yield e.slice(n,s),n=s},Ke=(e,t,r,s)=>{const n=async function*(e,t){for await(const r of async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:r}=await t.read();if(e)break;yield r}}finally{await t.cancel()}}(e))yield*De(r,t)}(e,t);let i,o=0,a=e=>{i||(i=!0,s&&s(e))};return new ReadableStream({async pull(e){try{const{done:t,value:s}=await n.next();if(t)return a(),void e.close();let i=s.byteLength;if(r){let e=o+=i;r(e)}e.enqueue(new Uint8Array(s))}catch(e){throw a(e),e}},cancel:e=>(a(e),n.return())},{highWaterMark:2})},Le="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,He=Le&&"function"==typeof ReadableStream,ze=Le&&("function"==typeof TextEncoder?(Ge=new TextEncoder,e=>Ge.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var Ge;const Ye=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},Je=He&&Ye(()=>{let e=!1;const t=new Request(ge.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),$e=He&&Ye(()=>Y.isReadableStream(new Response("").body)),Qe={stream:$e&&(e=>e.body)};var We;Le&&(We=new Response,["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!Qe[e]&&(Qe[e]=Y.isFunction(We[e])?t=>t[e]():(t,r)=>{throw new J(`Response type '${e}' is not supported`,J.ERR_NOT_SUPPORT,r)})}));const Ve={http:null,xhr:Ne,fetch:Le&&(async e=>{let{url:t,method:r,data:s,signal:n,cancelToken:i,timeout:o,onDownloadProgress:a,onUploadProgress:c,responseType:u,headers:d,withCredentials:l="same-origin",fetchOptions:p}=qe(e);u=u?(u+"").toLowerCase():"text";let h,g=Fe([n,i&&i.toAbortSignal()],o);const f=g&&g.unsubscribe&&(()=>{g.unsubscribe()});let y;try{if(c&&Je&&"get"!==r&&"head"!==r&&0!==(y=await(async(e,t)=>{const r=Y.toFiniteNumber(e.getContentLength());return null==r?(async e=>{if(null==e)return 0;if(Y.isBlob(e))return e.size;if(Y.isSpecCompliantForm(e)){const t=new Request(ge.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return Y.isArrayBufferView(e)||Y.isArrayBuffer(e)?e.byteLength:(Y.isURLSearchParams(e)&&(e+=""),Y.isString(e)?(await ze(e)).byteLength:void 0)})(t):r})(d,s))){let e,r=new Request(t,{method:"POST",body:s,duplex:"half"});if(Y.isFormData(s)&&(e=r.headers.get("content-type"))&&d.setContentType(e),r.body){const[e,t]=Ue(y,Ee(Re(c)));s=Ke(r.body,65536,e,t)}}Y.isString(l)||(l=l?"include":"omit");const n="credentials"in Request.prototype;h=new Request(t,{...p,signal:g,method:r.toUpperCase(),headers:d.normalize().toJSON(),body:s,duplex:"half",credentials:n?l:void 0});let i=await fetch(h,p);const o=$e&&("stream"===u||"response"===u);if($e&&(a||o&&f)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=i[t]});const t=Y.toFiniteNumber(i.headers.get("content-length")),[r,s]=a&&Ue(t,Ee(Re(a),!0))||[];i=new Response(Ke(i.body,65536,r,()=>{s&&s(),f&&f()}),e)}u=u||"text";let m=await Qe[Y.findKey(Qe,u)||"text"](i,e);return!o&&f&&f(),await new Promise((t,r)=>{Ie(t,r,{data:m,headers:Se.from(i.headers),status:i.status,statusText:i.statusText,config:e,request:h})})}catch(t){if(f&&f(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new J("Network Error",J.ERR_NETWORK,e,h),{cause:t.cause||t});throw J.from(t,t&&t.code,e,h)}})};Y.forEach(Ve,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});const Xe=e=>`- ${e}`,Ze=e=>Y.isFunction(e)||null===e||!1===e;var et=e=>{e=Y.isArray(e)?e:[e];const{length:t}=e;let r,s;const n={};for(let i=0;i<t;i++){let t;if(r=e[i],s=r,!Ze(r)&&(s=Ve[(t=String(r)).toLowerCase()],void 0===s))throw new J(`Unknown adapter '${t}'`);if(s)break;n[t||"#"+i]=s}if(!s){const e=Object.entries(n).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new J("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(Xe).join("\n"):" "+Xe(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return s};function tt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ke(null,e)}function rt(e){return tt(e),e.headers=Se.from(e.headers),e.data=_e.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),et(e.adapter||me.adapter)(e).then(function(t){return tt(e),t.data=_e.call(e,e.transformResponse,t),t.headers=Se.from(t.headers),t},function(t){return Te(t)||(tt(e),t&&t.response&&(t.response.data=_e.call(e,e.transformResponse,t.response),t.response.headers=Se.from(t.response.headers))),Promise.reject(t)})}const st="1.10.0",nt={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{nt[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const it={};nt.transitional=function(e,t,r){function s(e,t){return"[Axios v"+st+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,n,i)=>{if(!1===e)throw new J(s(n," has been removed"+(t?" in "+t:"")),J.ERR_DEPRECATED);return t&&!it[n]&&(it[n]=!0,console.warn(s(n," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,n,i)}},nt.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};var ot={assertOptions:function(e,t,r){if("object"!=typeof e)throw new J("options must be an object",J.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let n=s.length;for(;n-- >0;){const i=s[n],o=t[i];if(o){const t=e[i],r=void 0===t||o(t,i,e);if(!0!==r)throw new J("option "+i+" must be "+r,J.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new J("Unknown option "+i,J.ERR_BAD_OPTION)}},validators:nt};const at=ot.validators;class ct{constructor(e){this.defaults=e||{},this.interceptors={request:new oe,response:new oe}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const r=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?r&&!String(e.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+r):e.stack=r}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Ce(this.defaults,t);const{transitional:r,paramsSerializer:s,headers:n}=t;void 0!==r&&ot.assertOptions(r,{silentJSONParsing:at.transitional(at.boolean),forcedJSONParsing:at.transitional(at.boolean),clarifyTimeoutError:at.transitional(at.boolean)},!1),null!=s&&(Y.isFunction(s)?t.paramsSerializer={serialize:s}:ot.assertOptions(s,{encode:at.function,serialize:at.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),ot.assertOptions(t,{baseUrl:at.spelling("baseURL"),withXsrfToken:at.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=n&&Y.merge(n.common,n[t.method]);n&&Y.forEach(["delete","get","head","post","put","patch","common"],e=>{delete n[e]}),t.headers=Se.concat(i,n);const o=[];let a=!0;this.interceptors.request.forEach(function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,o.unshift(e.fulfilled,e.rejected))});const c=[];let u;this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let d,l=0;if(!a){const e=[rt.bind(this),void 0];for(e.unshift.apply(e,o),e.push.apply(e,c),d=e.length,u=Promise.resolve(t);l<d;)u=u.then(e[l++],e[l++]);return u}d=o.length;let p=t;for(l=0;l<d;){const e=o[l++],t=o[l++];try{p=e(p)}catch(e){t.call(this,e);break}}try{u=rt.call(this,p)}catch(e){return Promise.reject(e)}for(l=0,d=c.length;l<d;)u=u.then(c[l++],c[l++]);return u}getUri(e){return ie(xe((e=Ce(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}Y.forEach(["delete","get","head","options"],function(e){ct.prototype[e]=function(t,r){return this.request(Ce(r||{},{method:e,url:t,data:(r||{}).data}))}}),Y.forEach(["post","put","patch"],function(e){function t(t){return function(r,s,n){return this.request(Ce(n||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:s}))}}ct.prototype[e]=t(),ct.prototype[e+"Form"]=t(!0)});var ut=ct;class dt{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const r=this;this.promise.then(e=>{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null}),this.promise.then=e=>{let t;const s=new Promise(e=>{r.subscribe(e),t=e}).then(e);return s.cancel=function(){r.unsubscribe(t)},s},e(function(e,s,n){r.reason||(r.reason=new ke(e,s,n),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new dt(function(t){e=t}),cancel:e}}}var lt=dt;const pt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(pt).forEach(([e,t])=>{pt[t]=e});var ht=pt;const gt=function e(t){const r=new ut(t),n=s(ut.prototype.request,r);return Y.extend(n,ut.prototype,r,{allOwnKeys:!0}),Y.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return e(Ce(t,r))},n}(me);gt.Axios=ut,gt.CanceledError=ke,gt.CancelToken=lt,gt.isCancel=Te,gt.VERSION=st,gt.toFormData=ee,gt.AxiosError=J,gt.Cancel=gt.CanceledError,gt.all=function(e){return Promise.all(e)},gt.spread=function(e){return function(t){return e.apply(null,t)}},gt.isAxiosError=function(e){return Y.isObject(e)&&!0===e.isAxiosError},gt.mergeConfig=Ce,gt.AxiosHeaders=Se,gt.formToJSON=e=>fe(Y.isHTMLForm(e)?new FormData(e):e),gt.getAdapter=et,gt.HttpStatusCode=ht,gt.default=gt,e.exports=gt},8486:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8498:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8564:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||s(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),n(r(8270),t),n(r(6227),t),n(r(8190),t),n(r(4375),t),n(r(4188),t),n(r(5198),t),n(r(3603),t),n(r(8660),t)},8660:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||s(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.TransactionsAndReportingApi=void 0;const i=r(8936);n(r(8936),t);class o extends i.TransactionsAndReportingApiGenerated{}t.TransactionsAndReportingApi=o},8670:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8692:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){void 0===s&&(s=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,s,n)}:function(e,t,r,s){void 0===s&&(s=r),e[s]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||s(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),n(r(8564),t),n(r(6254),t),n(r(4251),t),n(r(6057),t),n(r(1934),t)},8696:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8747:function(e,t,r){"use strict";var s=this&&this.__awaiter||function(e,t,r,s){return new(r||(r=Promise))(function(n,i){function o(e){try{c(s.next(e))}catch(e){i(e)}}function a(e){try{c(s.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(o,a)}c((s=s.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.ApiStatusApiGenerated=t.ApiStatusApiFactory=t.ApiStatusApiFp=t.ApiStatusApiAxiosParamCreator=void 0;const n=r(8451),i=r(5511),o=r(4467),a=r(4445);t.ApiStatusApiAxiosParamCreator=function(e){return{check:(t={})=>s(this,void 0,void 0,function*(){const r=new URL("/",i.DUMMY_BASE_URL);let s;e&&(s=e.baseOptions);const n=Object.assign(Object.assign({method:"GET"},s),t),o=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},c={};let u=s&&s.headers?s.headers:{};return n.headers=Object.assign(Object.assign(Object.assign({},o),u),t.headers),(0,a.requestBeforeHook)({queryParameters:c,requestConfig:n,path:"/",configuration:e,pathTemplate:"/",httpMethod:"GET"}),(0,i.setSearchParams)(r,c),{url:(0,i.toPathString)(r),options:n}})}},t.ApiStatusApiFp=function(e){const r=(0,t.ApiStatusApiAxiosParamCreator)(e);return{check(t){return s(this,void 0,void 0,function*(){const s=yield r.check(t);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})}}},t.ApiStatusApiFactory=function(e,r,s){const n=(0,t.ApiStatusApiFp)(e);return{check:e=>n.check(e).then(e=>e(s,r))}};class c extends o.BaseAPI{check(e){return(0,t.ApiStatusApiFp)(this.configuration).check(e).then(e=>e(this.axios,this.basePath))}}t.ApiStatusApiGenerated=c},8774:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8818:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8902:function(e,t,r){"use strict";var s=this&&this.__awaiter||function(e,t,r,s){return new(r||(r=Promise))(function(n,i){function o(e){try{c(s.next(e))}catch(e){i(e)}}function a(e){try{c(s.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(o,a)}c((s=s.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.ReferenceDataApiGenerated=t.ReferenceDataApiFactory=t.ReferenceDataApiFp=t.ReferenceDataApiAxiosParamCreator=void 0;const n=r(8451),i=r(5511),o=r(4467),a=r(4445);t.ReferenceDataApiAxiosParamCreator=function(e){return{getCurrencyExchangeRatePair:(t,r={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("getCurrencyExchangeRatePair","currencyPair",t);const s="/currencies/rates/{currencyPair}".replace("{currencyPair}",encodeURIComponent(String(void 0!==t?t:"-currencyPair-"))),n=new URL(s,i.DUMMY_BASE_URL);let o;e&&(o=e.baseOptions);const c=Object.assign(Object.assign({method:"GET"},o),r),u=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},d={};yield(0,i.setApiKeyToObject)({object:d,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:d,key:"timestamp",keyParamName:"timestamp",configuration:e});let l=o&&o.headers?o.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),l),r.headers),(0,a.requestBeforeHook)({queryParameters:d,requestConfig:c,path:s,configuration:e,pathTemplate:"/currencies/rates/{currencyPair}",httpMethod:"GET"}),(0,i.setSearchParams)(n,d),{url:(0,i.toPathString)(n),options:c}}),getPartnerInfo:(t={})=>s(this,void 0,void 0,function*(){const r="/snapTrade/partners",s=new URL(r,i.DUMMY_BASE_URL);let n;e&&(n=e.baseOptions);const o=Object.assign(Object.assign({method:"GET"},n),t),c=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},u={};yield(0,i.setApiKeyToObject)({object:u,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:c,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,key:"timestamp",keyParamName:"timestamp",configuration:e});let d=n&&n.headers?n.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},c),d),t.headers),(0,a.requestBeforeHook)({queryParameters:u,requestConfig:o,path:r,configuration:e,pathTemplate:"/snapTrade/partners",httpMethod:"GET"}),(0,i.setSearchParams)(s,u),{url:(0,i.toPathString)(s),options:o}}),getSecurityTypes:(t={})=>s(this,void 0,void 0,function*(){const r="/securityTypes",s=new URL(r,i.DUMMY_BASE_URL);let n;e&&(n=e.baseOptions);const o=Object.assign(Object.assign({method:"GET"},n),t),c=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},u={};yield(0,i.setApiKeyToObject)({object:u,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:c,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,key:"timestamp",keyParamName:"timestamp",configuration:e});let d=n&&n.headers?n.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},c),d),t.headers),(0,a.requestBeforeHook)({queryParameters:u,requestConfig:o,path:r,configuration:e,pathTemplate:"/securityTypes",httpMethod:"GET"}),(0,i.setSearchParams)(s,u),{url:(0,i.toPathString)(s),options:o}}),getStockExchanges:(t={})=>s(this,void 0,void 0,function*(){const r="/exchanges",s=new URL(r,i.DUMMY_BASE_URL);let n;e&&(n=e.baseOptions);const o=Object.assign(Object.assign({method:"GET"},n),t),c=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},u={};yield(0,i.setApiKeyToObject)({object:u,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:c,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,key:"timestamp",keyParamName:"timestamp",configuration:e});let d=n&&n.headers?n.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},c),d),t.headers),(0,a.requestBeforeHook)({queryParameters:u,requestConfig:o,path:r,configuration:e,pathTemplate:"/exchanges",httpMethod:"GET"}),(0,i.setSearchParams)(s,u),{url:(0,i.toPathString)(s),options:o}}),getSymbols:(t,r={})=>s(this,void 0,void 0,function*(){const s="/symbols",n=new URL(s,i.DUMMY_BASE_URL);let o;e&&(o=e.baseOptions);const c=Object.assign(Object.assign({method:"POST"},o),r),u=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},d={};yield(0,i.setApiKeyToObject)({object:d,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:d,key:"timestamp",keyParamName:"timestamp",configuration:e}),u["Content-Type"]="application/json";let l=o&&o.headers?o.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),l),r.headers),(0,a.requestBeforeHook)({requestBody:t,queryParameters:d,requestConfig:c,path:s,configuration:e,pathTemplate:"/symbols",httpMethod:"POST"}),c.data=(0,i.serializeDataIfNeeded)(t,c,e),(0,i.setSearchParams)(n,d),{url:(0,i.toPathString)(n),options:c}}),getSymbolsByTicker:(t,r={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("getSymbolsByTicker","query",t);const s="/symbols/{query}".replace("{query}",encodeURIComponent(String(void 0!==t?t:"-query-"))),n=new URL(s,i.DUMMY_BASE_URL);let o;e&&(o=e.baseOptions);const c=Object.assign(Object.assign({method:"GET"},o),r),u=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},d={};yield(0,i.setApiKeyToObject)({object:d,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:d,key:"timestamp",keyParamName:"timestamp",configuration:e});let l=o&&o.headers?o.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),l),r.headers),(0,a.requestBeforeHook)({queryParameters:d,requestConfig:c,path:s,configuration:e,pathTemplate:"/symbols/{query}",httpMethod:"GET"}),(0,i.setSearchParams)(n,d),{url:(0,i.toPathString)(n),options:c}}),listAllBrokerageAuthorizationType:(t,r={})=>s(this,void 0,void 0,function*(){const s="/brokerageAuthorizationTypes",n=new URL(s,i.DUMMY_BASE_URL);let o;e&&(o=e.baseOptions);const c=Object.assign(Object.assign({method:"GET"},o),r),u=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},d={};yield(0,i.setApiKeyToObject)({object:d,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:d,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(d.brokerage=t);let l=o&&o.headers?o.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),l),r.headers),(0,a.requestBeforeHook)({queryParameters:d,requestConfig:c,path:s,configuration:e,pathTemplate:"/brokerageAuthorizationTypes",httpMethod:"GET"}),(0,i.setSearchParams)(n,d),{url:(0,i.toPathString)(n),options:c}}),listAllBrokerageInstruments:(t,r={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("listAllBrokerageInstruments","brokerageId",t);const s="/brokerages/{brokerageId}/instruments".replace("{brokerageId}",encodeURIComponent(String(void 0!==t?t:"-brokerageId-"))),n=new URL(s,i.DUMMY_BASE_URL);let o;e&&(o=e.baseOptions);const c=Object.assign(Object.assign({method:"GET"},o),r),u=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},d={};yield(0,i.setApiKeyToObject)({object:d,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:d,key:"timestamp",keyParamName:"timestamp",configuration:e});let l=o&&o.headers?o.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),l),r.headers),(0,a.requestBeforeHook)({queryParameters:d,requestConfig:c,path:s,configuration:e,pathTemplate:"/brokerages/{brokerageId}/instruments",httpMethod:"GET"}),(0,i.setSearchParams)(n,d),{url:(0,i.toPathString)(n),options:c}}),listAllBrokerages:(t={})=>s(this,void 0,void 0,function*(){const r="/brokerages",s=new URL(r,i.DUMMY_BASE_URL);let n;e&&(n=e.baseOptions);const o=Object.assign(Object.assign({method:"GET"},n),t),c=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},u={};yield(0,i.setApiKeyToObject)({object:u,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:c,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,key:"timestamp",keyParamName:"timestamp",configuration:e});let d=n&&n.headers?n.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},c),d),t.headers),(0,a.requestBeforeHook)({queryParameters:u,requestConfig:o,path:r,configuration:e,pathTemplate:"/brokerages",httpMethod:"GET"}),(0,i.setSearchParams)(s,u),{url:(0,i.toPathString)(s),options:o}}),listAllCurrencies:(t={})=>s(this,void 0,void 0,function*(){const r="/currencies",s=new URL(r,i.DUMMY_BASE_URL);let n;e&&(n=e.baseOptions);const o=Object.assign(Object.assign({method:"GET"},n),t),c=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},u={};yield(0,i.setApiKeyToObject)({object:u,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:c,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,key:"timestamp",keyParamName:"timestamp",configuration:e});let d=n&&n.headers?n.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},c),d),t.headers),(0,a.requestBeforeHook)({queryParameters:u,requestConfig:o,path:r,configuration:e,pathTemplate:"/currencies",httpMethod:"GET"}),(0,i.setSearchParams)(s,u),{url:(0,i.toPathString)(s),options:o}}),listAllCurrenciesRates:(t={})=>s(this,void 0,void 0,function*(){const r="/currencies/rates",s=new URL(r,i.DUMMY_BASE_URL);let n;e&&(n=e.baseOptions);const o=Object.assign(Object.assign({method:"GET"},n),t),c=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},u={};yield(0,i.setApiKeyToObject)({object:u,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:c,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,key:"timestamp",keyParamName:"timestamp",configuration:e});let d=n&&n.headers?n.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},c),d),t.headers),(0,a.requestBeforeHook)({queryParameters:u,requestConfig:o,path:r,configuration:e,pathTemplate:"/currencies/rates",httpMethod:"GET"}),(0,i.setSearchParams)(s,u),{url:(0,i.toPathString)(s),options:o}}),symbolSearchUserAccount:(t,r,n,o,c={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("symbolSearchUserAccount","userId",t),(0,i.assertParamExists)("symbolSearchUserAccount","userSecret",r),(0,i.assertParamExists)("symbolSearchUserAccount","accountId",n);const s="/accounts/{accountId}/symbols".replace("{accountId}",encodeURIComponent(String(void 0!==n?n:"-accountId-"))),u=new URL(s,i.DUMMY_BASE_URL);let d;e&&(d=e.baseOptions);const l=Object.assign(Object.assign({method:"POST"},d),c),p=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},h={};yield(0,i.setApiKeyToObject)({object:h,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(h.userId=t),void 0!==r&&(h.userSecret=r),p["Content-Type"]="application/json";let g=d&&d.headers?d.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},p),g),c.headers),(0,a.requestBeforeHook)({requestBody:o,queryParameters:h,requestConfig:l,path:s,configuration:e,pathTemplate:"/accounts/{accountId}/symbols",httpMethod:"POST"}),l.data=(0,i.serializeDataIfNeeded)(o,l,e),(0,i.setSearchParams)(u,h),{url:(0,i.toPathString)(u),options:l}})}},t.ReferenceDataApiFp=function(e){const r=(0,t.ReferenceDataApiAxiosParamCreator)(e);return{getCurrencyExchangeRatePair(t,a){return s(this,void 0,void 0,function*(){const s=yield r.getCurrencyExchangeRatePair(t.currencyPair,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},getPartnerInfo(t){return s(this,void 0,void 0,function*(){const s=yield r.getPartnerInfo(t);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},getSecurityTypes(t){return s(this,void 0,void 0,function*(){const s=yield r.getSecurityTypes(t);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},getStockExchanges(t){return s(this,void 0,void 0,function*(){const s=yield r.getStockExchanges(t);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},getSymbols(t={},a){return s(this,void 0,void 0,function*(){const s={substring:t.substring},c=yield r.getSymbols(s,a);return(0,i.createRequestFunction)(c,n.default,o.BASE_PATH,e)})},getSymbolsByTicker(t,a){return s(this,void 0,void 0,function*(){const s=yield r.getSymbolsByTicker(t.query,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},listAllBrokerageAuthorizationType(t={},a){return s(this,void 0,void 0,function*(){const s=yield r.listAllBrokerageAuthorizationType(t.brokerage,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},listAllBrokerageInstruments(t,a){return s(this,void 0,void 0,function*(){const s=yield r.listAllBrokerageInstruments(t.brokerageId,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},listAllBrokerages(t){return s(this,void 0,void 0,function*(){const s=yield r.listAllBrokerages(t);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},listAllCurrencies(t){return s(this,void 0,void 0,function*(){const s=yield r.listAllCurrencies(t);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},listAllCurrenciesRates(t){return s(this,void 0,void 0,function*(){const s=yield r.listAllCurrenciesRates(t);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},symbolSearchUserAccount(t,a){return s(this,void 0,void 0,function*(){const s={substring:t.substring},c=yield r.symbolSearchUserAccount(t.userId,t.userSecret,t.accountId,s,a);return(0,i.createRequestFunction)(c,n.default,o.BASE_PATH,e)})}}},t.ReferenceDataApiFactory=function(e,r,s){const n=(0,t.ReferenceDataApiFp)(e);return{getCurrencyExchangeRatePair:(e,t)=>n.getCurrencyExchangeRatePair(e,t).then(e=>e(s,r)),getPartnerInfo:e=>n.getPartnerInfo(e).then(e=>e(s,r)),getSecurityTypes:e=>n.getSecurityTypes(e).then(e=>e(s,r)),getStockExchanges:e=>n.getStockExchanges(e).then(e=>e(s,r)),getSymbols:(e={},t)=>n.getSymbols(e,t).then(e=>e(s,r)),getSymbolsByTicker:(e,t)=>n.getSymbolsByTicker(e,t).then(e=>e(s,r)),listAllBrokerageAuthorizationType:(e={},t)=>n.listAllBrokerageAuthorizationType(e,t).then(e=>e(s,r)),listAllBrokerageInstruments:(e,t)=>n.listAllBrokerageInstruments(e,t).then(e=>e(s,r)),listAllBrokerages:e=>n.listAllBrokerages(e).then(e=>e(s,r)),listAllCurrencies:e=>n.listAllCurrencies(e).then(e=>e(s,r)),listAllCurrenciesRates:e=>n.listAllCurrenciesRates(e).then(e=>e(s,r)),symbolSearchUserAccount:(e,t)=>n.symbolSearchUserAccount(e,t).then(e=>e(s,r))}};class c extends o.BaseAPI{getCurrencyExchangeRatePair(e,r){return(0,t.ReferenceDataApiFp)(this.configuration).getCurrencyExchangeRatePair(e,r).then(e=>e(this.axios,this.basePath))}getPartnerInfo(e){return(0,t.ReferenceDataApiFp)(this.configuration).getPartnerInfo(e).then(e=>e(this.axios,this.basePath))}getSecurityTypes(e){return(0,t.ReferenceDataApiFp)(this.configuration).getSecurityTypes(e).then(e=>e(this.axios,this.basePath))}getStockExchanges(e){return(0,t.ReferenceDataApiFp)(this.configuration).getStockExchanges(e).then(e=>e(this.axios,this.basePath))}getSymbols(e={},r){return(0,t.ReferenceDataApiFp)(this.configuration).getSymbols(e,r).then(e=>e(this.axios,this.basePath))}getSymbolsByTicker(e,r){return(0,t.ReferenceDataApiFp)(this.configuration).getSymbolsByTicker(e,r).then(e=>e(this.axios,this.basePath))}listAllBrokerageAuthorizationType(e={},r){return(0,t.ReferenceDataApiFp)(this.configuration).listAllBrokerageAuthorizationType(e,r).then(e=>e(this.axios,this.basePath))}listAllBrokerageInstruments(e,r){return(0,t.ReferenceDataApiFp)(this.configuration).listAllBrokerageInstruments(e,r).then(e=>e(this.axios,this.basePath))}listAllBrokerages(e){return(0,t.ReferenceDataApiFp)(this.configuration).listAllBrokerages(e).then(e=>e(this.axios,this.basePath))}listAllCurrencies(e){return(0,t.ReferenceDataApiFp)(this.configuration).listAllCurrencies(e).then(e=>e(this.axios,this.basePath))}listAllCurrenciesRates(e){return(0,t.ReferenceDataApiFp)(this.configuration).listAllCurrenciesRates(e).then(e=>e(this.axios,this.basePath))}symbolSearchUserAccount(e,r){return(0,t.ReferenceDataApiFp)(this.configuration).symbolSearchUserAccount(e,r).then(e=>e(this.axios,this.basePath))}}t.ReferenceDataApiGenerated=c},8911:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8927:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8936:function(e,t,r){"use strict";var s=this&&this.__awaiter||function(e,t,r,s){return new(r||(r=Promise))(function(n,i){function o(e){try{c(s.next(e))}catch(e){i(e)}}function a(e){try{c(s.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(o,a)}c((s=s.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.TransactionsAndReportingApiGenerated=t.TransactionsAndReportingApiFactory=t.TransactionsAndReportingApiFp=t.TransactionsAndReportingApiAxiosParamCreator=void 0;const n=r(8451),i=r(5511),o=r(4467),a=r(4445);t.TransactionsAndReportingApiAxiosParamCreator=function(e){return{getActivities:(t,r,n,o,c,u,d,l={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("getActivities","userId",t),(0,i.assertParamExists)("getActivities","userSecret",r);const s="/activities",p=new URL(s,i.DUMMY_BASE_URL);let h;e&&(h=e.baseOptions);const g=Object.assign(Object.assign({method:"GET"},h),l),f=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},y={};yield(0,i.setApiKeyToObject)({object:y,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:f,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:y,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==n&&(y.startDate=n instanceof Date?n.toISOString().substr(0,10):n),void 0!==o&&(y.endDate=o instanceof Date?o.toISOString().substr(0,10):o),void 0!==c&&(y.accounts=c),void 0!==u&&(y.brokerageAuthorizations=u),void 0!==d&&(y.type=d),void 0!==t&&(y.userId=t),void 0!==r&&(y.userSecret=r);let m=h&&h.headers?h.headers:{};return g.headers=Object.assign(Object.assign(Object.assign({},f),m),l.headers),(0,a.requestBeforeHook)({queryParameters:y,requestConfig:g,path:s,configuration:e,pathTemplate:"/activities",httpMethod:"GET"}),(0,i.setSearchParams)(p,y),{url:(0,i.toPathString)(p),options:g}}),getReportingCustomRange:(t,r,n,o,c,u,d,l={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("getReportingCustomRange","startDate",t),(0,i.assertParamExists)("getReportingCustomRange","endDate",r),(0,i.assertParamExists)("getReportingCustomRange","userId",n),(0,i.assertParamExists)("getReportingCustomRange","userSecret",o);const s="/performance/custom",p=new URL(s,i.DUMMY_BASE_URL);let h;e&&(h=e.baseOptions);const g=Object.assign(Object.assign({method:"GET"},h),l),f=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},y={};yield(0,i.setApiKeyToObject)({object:y,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:f,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:y,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(y.startDate=t instanceof Date?t.toISOString().substr(0,10):t),void 0!==r&&(y.endDate=r instanceof Date?r.toISOString().substr(0,10):r),void 0!==c&&(y.accounts=c),void 0!==u&&(y.detailed=u),void 0!==d&&(y.frequency=d),void 0!==n&&(y.userId=n),void 0!==o&&(y.userSecret=o);let m=h&&h.headers?h.headers:{};return g.headers=Object.assign(Object.assign(Object.assign({},f),m),l.headers),(0,a.requestBeforeHook)({queryParameters:y,requestConfig:g,path:s,configuration:e,pathTemplate:"/performance/custom",httpMethod:"GET"}),(0,i.setSearchParams)(p,y),{url:(0,i.toPathString)(p),options:g}})}},t.TransactionsAndReportingApiFp=function(e){const r=(0,t.TransactionsAndReportingApiAxiosParamCreator)(e);return{getActivities(t,a){return s(this,void 0,void 0,function*(){const s=yield r.getActivities(t.userId,t.userSecret,t.startDate,t.endDate,t.accounts,t.brokerageAuthorizations,t.type,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},getReportingCustomRange(t,a){return s(this,void 0,void 0,function*(){const s=yield r.getReportingCustomRange(t.startDate,t.endDate,t.userId,t.userSecret,t.accounts,t.detailed,t.frequency,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})}}},t.TransactionsAndReportingApiFactory=function(e,r,s){const n=(0,t.TransactionsAndReportingApiFp)(e);return{getActivities:(e,t)=>n.getActivities(e,t).then(e=>e(s,r)),getReportingCustomRange:(e,t)=>n.getReportingCustomRange(e,t).then(e=>e(s,r))}};class c extends o.BaseAPI{getActivities(e,r){return(0,t.TransactionsAndReportingApiFp)(this.configuration).getActivities(e,r).then(e=>e(this.axios,this.basePath))}getReportingCustomRange(e,r){return(0,t.TransactionsAndReportingApiFp)(this.configuration).getReportingCustomRange(e,r).then(e=>e(this.axios,this.basePath))}}t.TransactionsAndReportingApiGenerated=c},8951:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8958:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8996:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9032:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9168:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9190:function(e,t,r){"use strict";var s=this&&this.__awaiter||function(e,t,r,s){return new(r||(r=Promise))(function(n,i){function o(e){try{c(s.next(e))}catch(e){i(e)}}function a(e){try{c(s.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(o,a)}c((s=s.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.AccountInformationApiGenerated=t.AccountInformationApiFactory=t.AccountInformationApiFp=t.AccountInformationApiAxiosParamCreator=void 0;const n=r(8451),i=r(5511),o=r(4467),a=r(4445);t.AccountInformationApiAxiosParamCreator=function(e){return{getAccountActivities:(t,r,n,o,c,u,d,l,p={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("getAccountActivities","accountId",t),(0,i.assertParamExists)("getAccountActivities","userId",r),(0,i.assertParamExists)("getAccountActivities","userSecret",n);const s="/accounts/{accountId}/activities".replace("{accountId}",encodeURIComponent(String(void 0!==t?t:"-accountId-"))),h=new URL(s,i.DUMMY_BASE_URL);let g;e&&(g=e.baseOptions);const f=Object.assign(Object.assign({method:"GET"},g),p),y=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},m={};yield(0,i.setApiKeyToObject)({object:m,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:y,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:m,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==o&&(m.startDate=o instanceof Date?o.toISOString().substr(0,10):o),void 0!==c&&(m.endDate=c instanceof Date?c.toISOString().substr(0,10):c),void 0!==u&&(m.offset=u),void 0!==d&&(m.limit=d),void 0!==l&&(m.type=l),void 0!==r&&(m.userId=r),void 0!==n&&(m.userSecret=n);let b=g&&g.headers?g.headers:{};return f.headers=Object.assign(Object.assign(Object.assign({},y),b),p.headers),(0,a.requestBeforeHook)({queryParameters:m,requestConfig:f,path:s,configuration:e,pathTemplate:"/accounts/{accountId}/activities",httpMethod:"GET"}),(0,i.setSearchParams)(h,m),{url:(0,i.toPathString)(h),options:f}}),getAllUserHoldings:(t,r,n,o={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("getAllUserHoldings","userId",t),(0,i.assertParamExists)("getAllUserHoldings","userSecret",r);const s="/holdings",c=new URL(s,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"GET"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(p.userId=t),void 0!==r&&(p.userSecret=r),void 0!==n&&(p.brokerage_authorizations=n);let h=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),h),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:s,configuration:e,pathTemplate:"/holdings",httpMethod:"GET"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}}),getUserAccountBalance:(t,r,n,o={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("getUserAccountBalance","userId",t),(0,i.assertParamExists)("getUserAccountBalance","userSecret",r),(0,i.assertParamExists)("getUserAccountBalance","accountId",n);const s="/accounts/{accountId}/balances".replace("{accountId}",encodeURIComponent(String(void 0!==n?n:"-accountId-"))),c=new URL(s,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"GET"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(p.userId=t),void 0!==r&&(p.userSecret=r);let h=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),h),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:s,configuration:e,pathTemplate:"/accounts/{accountId}/balances",httpMethod:"GET"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}}),getUserAccountDetails:(t,r,n,o={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("getUserAccountDetails","userId",t),(0,i.assertParamExists)("getUserAccountDetails","userSecret",r),(0,i.assertParamExists)("getUserAccountDetails","accountId",n);const s="/accounts/{accountId}".replace("{accountId}",encodeURIComponent(String(void 0!==n?n:"-accountId-"))),c=new URL(s,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"GET"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(p.userId=t),void 0!==r&&(p.userSecret=r);let h=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),h),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:s,configuration:e,pathTemplate:"/accounts/{accountId}",httpMethod:"GET"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}}),getUserAccountOrderDetail:(t,r,n,o,c={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("getUserAccountOrderDetail","userId",t),(0,i.assertParamExists)("getUserAccountOrderDetail","userSecret",r),(0,i.assertParamExists)("getUserAccountOrderDetail","accountId",n),(0,i.assertParamExists)("getUserAccountOrderDetail","brokerageOrderId",o);const s="/accounts/{accountId}/orders/{brokerageOrderId}".replace("{accountId}",encodeURIComponent(String(void 0!==n?n:"-accountId-"))).replace("{brokerageOrderId}",encodeURIComponent(String(void 0!==o?o:"-brokerageOrderId-"))),u=new URL(s,i.DUMMY_BASE_URL);let d;e&&(d=e.baseOptions);const l=Object.assign(Object.assign({method:"GET"},d),c),p=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},h={};yield(0,i.setApiKeyToObject)({object:h,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(h.userId=t),void 0!==r&&(h.userSecret=r);let g=d&&d.headers?d.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},p),g),c.headers),(0,a.requestBeforeHook)({queryParameters:h,requestConfig:l,path:s,configuration:e,pathTemplate:"/accounts/{accountId}/orders/{brokerageOrderId}",httpMethod:"GET"}),(0,i.setSearchParams)(u,h),{url:(0,i.toPathString)(u),options:l}}),getUserAccountOrders:(t,r,n,o,c,u={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("getUserAccountOrders","userId",t),(0,i.assertParamExists)("getUserAccountOrders","userSecret",r),(0,i.assertParamExists)("getUserAccountOrders","accountId",n);const s="/accounts/{accountId}/orders".replace("{accountId}",encodeURIComponent(String(void 0!==n?n:"-accountId-"))),d=new URL(s,i.DUMMY_BASE_URL);let l;e&&(l=e.baseOptions);const p=Object.assign(Object.assign({method:"GET"},l),u),h=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},g={};yield(0,i.setApiKeyToObject)({object:g,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:g,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(g.userId=t),void 0!==r&&(g.userSecret=r),void 0!==o&&(g.state=o),void 0!==c&&(g.days=c);let f=l&&l.headers?l.headers:{};return p.headers=Object.assign(Object.assign(Object.assign({},h),f),u.headers),(0,a.requestBeforeHook)({queryParameters:g,requestConfig:p,path:s,configuration:e,pathTemplate:"/accounts/{accountId}/orders",httpMethod:"GET"}),(0,i.setSearchParams)(d,g),{url:(0,i.toPathString)(d),options:p}}),getUserAccountPositions:(t,r,n,o={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("getUserAccountPositions","userId",t),(0,i.assertParamExists)("getUserAccountPositions","userSecret",r),(0,i.assertParamExists)("getUserAccountPositions","accountId",n);const s="/accounts/{accountId}/positions".replace("{accountId}",encodeURIComponent(String(void 0!==n?n:"-accountId-"))),c=new URL(s,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"GET"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(p.userId=t),void 0!==r&&(p.userSecret=r);let h=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),h),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:s,configuration:e,pathTemplate:"/accounts/{accountId}/positions",httpMethod:"GET"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}}),getUserAccountRecentOrders:(t,r,n,o,c={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("getUserAccountRecentOrders","userId",t),(0,i.assertParamExists)("getUserAccountRecentOrders","userSecret",r),(0,i.assertParamExists)("getUserAccountRecentOrders","accountId",n);const s="/accounts/{accountId}/recentOrders".replace("{accountId}",encodeURIComponent(String(void 0!==n?n:"-accountId-"))),u=new URL(s,i.DUMMY_BASE_URL);let d;e&&(d=e.baseOptions);const l=Object.assign(Object.assign({method:"GET"},d),c),p=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},h={};yield(0,i.setApiKeyToObject)({object:h,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(h.userId=t),void 0!==r&&(h.userSecret=r),void 0!==o&&(h.only_executed=o);let g=d&&d.headers?d.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},p),g),c.headers),(0,a.requestBeforeHook)({queryParameters:h,requestConfig:l,path:s,configuration:e,pathTemplate:"/accounts/{accountId}/recentOrders",httpMethod:"GET"}),(0,i.setSearchParams)(u,h),{url:(0,i.toPathString)(u),options:l}}),getUserAccountReturnRates:(t,r,n,o={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("getUserAccountReturnRates","userId",t),(0,i.assertParamExists)("getUserAccountReturnRates","userSecret",r),(0,i.assertParamExists)("getUserAccountReturnRates","accountId",n);const s="/accounts/{accountId}/returnRates".replace("{accountId}",encodeURIComponent(String(void 0!==n?n:"-accountId-"))),c=new URL(s,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"GET"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(p.userId=t),void 0!==r&&(p.userSecret=r);let h=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),h),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:s,configuration:e,pathTemplate:"/accounts/{accountId}/returnRates",httpMethod:"GET"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}}),getUserHoldings:(t,r,n,o={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("getUserHoldings","accountId",t),(0,i.assertParamExists)("getUserHoldings","userId",r),(0,i.assertParamExists)("getUserHoldings","userSecret",n);const s="/accounts/{accountId}/holdings".replace("{accountId}",encodeURIComponent(String(void 0!==t?t:"-accountId-"))),c=new URL(s,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"GET"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==r&&(p.userId=r),void 0!==n&&(p.userSecret=n);let h=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),h),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:s,configuration:e,pathTemplate:"/accounts/{accountId}/holdings",httpMethod:"GET"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}}),listUserAccounts:(t,r,n={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("listUserAccounts","userId",t),(0,i.assertParamExists)("listUserAccounts","userSecret",r);const s="/accounts",o=new URL(s,i.DUMMY_BASE_URL);let c;e&&(c=e.baseOptions);const u=Object.assign(Object.assign({method:"GET"},c),n),d=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},l={};yield(0,i.setApiKeyToObject)({object:l,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:d,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(l.userId=t),void 0!==r&&(l.userSecret=r);let p=c&&c.headers?c.headers:{};return u.headers=Object.assign(Object.assign(Object.assign({},d),p),n.headers),(0,a.requestBeforeHook)({queryParameters:l,requestConfig:u,path:s,configuration:e,pathTemplate:"/accounts",httpMethod:"GET"}),(0,i.setSearchParams)(o,l),{url:(0,i.toPathString)(o),options:u}}),updateUserAccount:(t,r,n,o={})=>s(this,void 0,void 0,function*(){(0,i.assertParamExists)("updateUserAccount","userId",t),(0,i.assertParamExists)("updateUserAccount","userSecret",r),(0,i.assertParamExists)("updateUserAccount","accountId",n);const s="/accounts/{accountId}".replace("{accountId}",encodeURIComponent(String(void 0!==n?n:"-accountId-"))),c=new URL(s,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"PUT"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(p.userId=t),void 0!==r&&(p.userSecret=r);let h=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),h),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:s,configuration:e,pathTemplate:"/accounts/{accountId}",httpMethod:"PUT"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})}},t.AccountInformationApiFp=function(e){const r=(0,t.AccountInformationApiAxiosParamCreator)(e);return{getAccountActivities(t,a){return s(this,void 0,void 0,function*(){const s=yield r.getAccountActivities(t.accountId,t.userId,t.userSecret,t.startDate,t.endDate,t.offset,t.limit,t.type,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},getAllUserHoldings(t,a){return s(this,void 0,void 0,function*(){const s=yield r.getAllUserHoldings(t.userId,t.userSecret,t.brokerageAuthorizations,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},getUserAccountBalance(t,a){return s(this,void 0,void 0,function*(){const s=yield r.getUserAccountBalance(t.userId,t.userSecret,t.accountId,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},getUserAccountDetails(t,a){return s(this,void 0,void 0,function*(){const s=yield r.getUserAccountDetails(t.userId,t.userSecret,t.accountId,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},getUserAccountOrderDetail(t,a){return s(this,void 0,void 0,function*(){const s=yield r.getUserAccountOrderDetail(t.userId,t.userSecret,t.accountId,t.brokerageOrderId,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},getUserAccountOrders(t,a){return s(this,void 0,void 0,function*(){const s=yield r.getUserAccountOrders(t.userId,t.userSecret,t.accountId,t.state,t.days,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},getUserAccountPositions(t,a){return s(this,void 0,void 0,function*(){const s=yield r.getUserAccountPositions(t.userId,t.userSecret,t.accountId,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},getUserAccountRecentOrders(t,a){return s(this,void 0,void 0,function*(){const s=yield r.getUserAccountRecentOrders(t.userId,t.userSecret,t.accountId,t.onlyExecuted,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},getUserAccountReturnRates(t,a){return s(this,void 0,void 0,function*(){const s=yield r.getUserAccountReturnRates(t.userId,t.userSecret,t.accountId,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},getUserHoldings(t,a){return s(this,void 0,void 0,function*(){const s=yield r.getUserHoldings(t.accountId,t.userId,t.userSecret,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},listUserAccounts(t,a){return s(this,void 0,void 0,function*(){const s=yield r.listUserAccounts(t.userId,t.userSecret,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})},updateUserAccount(t,a){return s(this,void 0,void 0,function*(){const s=yield r.updateUserAccount(t.userId,t.userSecret,t.accountId,a);return(0,i.createRequestFunction)(s,n.default,o.BASE_PATH,e)})}}},t.AccountInformationApiFactory=function(e,r,s){const n=(0,t.AccountInformationApiFp)(e);return{getAccountActivities:(e,t)=>n.getAccountActivities(e,t).then(e=>e(s,r)),getAllUserHoldings:(e,t)=>n.getAllUserHoldings(e,t).then(e=>e(s,r)),getUserAccountBalance:(e,t)=>n.getUserAccountBalance(e,t).then(e=>e(s,r)),getUserAccountDetails:(e,t)=>n.getUserAccountDetails(e,t).then(e=>e(s,r)),getUserAccountOrderDetail:(e,t)=>n.getUserAccountOrderDetail(e,t).then(e=>e(s,r)),getUserAccountOrders:(e,t)=>n.getUserAccountOrders(e,t).then(e=>e(s,r)),getUserAccountPositions:(e,t)=>n.getUserAccountPositions(e,t).then(e=>e(s,r)),getUserAccountRecentOrders:(e,t)=>n.getUserAccountRecentOrders(e,t).then(e=>e(s,r)),getUserAccountReturnRates:(e,t)=>n.getUserAccountReturnRates(e,t).then(e=>e(s,r)),getUserHoldings:(e,t)=>n.getUserHoldings(e,t).then(e=>e(s,r)),listUserAccounts:(e,t)=>n.listUserAccounts(e,t).then(e=>e(s,r)),updateUserAccount:(e,t)=>n.updateUserAccount(e,t).then(e=>e(s,r))}};class c extends o.BaseAPI{getAccountActivities(e,r){return(0,t.AccountInformationApiFp)(this.configuration).getAccountActivities(e,r).then(e=>e(this.axios,this.basePath))}getAllUserHoldings(e,r){return(0,t.AccountInformationApiFp)(this.configuration).getAllUserHoldings(e,r).then(e=>e(this.axios,this.basePath))}getUserAccountBalance(e,r){return(0,t.AccountInformationApiFp)(this.configuration).getUserAccountBalance(e,r).then(e=>e(this.axios,this.basePath))}getUserAccountDetails(e,r){return(0,t.AccountInformationApiFp)(this.configuration).getUserAccountDetails(e,r).then(e=>e(this.axios,this.basePath))}getUserAccountOrderDetail(e,r){return(0,t.AccountInformationApiFp)(this.configuration).getUserAccountOrderDetail(e,r).then(e=>e(this.axios,this.basePath))}getUserAccountOrders(e,r){return(0,t.AccountInformationApiFp)(this.configuration).getUserAccountOrders(e,r).then(e=>e(this.axios,this.basePath))}getUserAccountPositions(e,r){return(0,t.AccountInformationApiFp)(this.configuration).getUserAccountPositions(e,r).then(e=>e(this.axios,this.basePath))}getUserAccountRecentOrders(e,r){return(0,t.AccountInformationApiFp)(this.configuration).getUserAccountRecentOrders(e,r).then(e=>e(this.axios,this.basePath))}getUserAccountReturnRates(e,r){return(0,t.AccountInformationApiFp)(this.configuration).getUserAccountReturnRates(e,r).then(e=>e(this.axios,this.basePath))}getUserHoldings(e,r){return(0,t.AccountInformationApiFp)(this.configuration).getUserHoldings(e,r).then(e=>e(this.axios,this.basePath))}listUserAccounts(e,r){return(0,t.AccountInformationApiFp)(this.configuration).listUserAccounts(e,r).then(e=>e(this.axios,this.basePath))}updateUserAccount(e,r){return(0,t.AccountInformationApiFp)(this.configuration).updateUserAccount(e,r).then(e=>e(this.axios,this.basePath))}}t.AccountInformationApiGenerated=c},9301:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9354:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9383:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9452:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9486:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9634:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9957:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})}},t={};function r(s){var n=t[s];if(void 0!==n)return n.exports;var i=t[s]={exports:{}};return e[s].call(i.exports,i,i.exports,r),i.exports}return r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r(8692)})());
@@ -32,7 +32,7 @@ class Configuration {
32
32
  this.accessToken = param.accessToken;
33
33
  this.basePath = param.basePath;
34
34
  this.baseOptions = (_a = param.baseOptions) !== null && _a !== void 0 ? _a : {};
35
- this.userAgent = param.userAgent === undefined ? "Konfig/9.0.128/typescript" : param.userAgent;
35
+ this.userAgent = param.userAgent === undefined ? "Konfig/9.0.130/typescript" : param.userAgent;
36
36
  this.formDataCtor = param.formDataCtor;
37
37
  }
38
38
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "snaptrade-typescript-sdk",
3
- "version": "9.0.128",
3
+ "version": "9.0.130",
4
4
  "description": "Client for SnapTrade",
5
5
  "author": "Konfig",
6
6
  "engines": {