snaptrade-typescript-sdk 9.0.42 → 9.0.43

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.42-blue)](https://www.npmjs.com/package/snaptrade-typescript-sdk/v/9.0.42)
9
+ [![npm](https://img.shields.io/badge/npm-v9.0.43-blue)](https://www.npmjs.com/package/snaptrade-typescript-sdk/v/9.0.43)
10
10
  [![More Info](https://img.shields.io/badge/More%20Info-Click%20Here-orange)](https://snaptrade.com/)
11
11
 
12
12
  </div>
@@ -1277,16 +1277,14 @@ const getStockExchangesResponse =
1277
1277
 
1278
1278
  ### `snaptrade.referenceData.getSymbols`<a id="snaptradereferencedatagetsymbols"></a>
1279
1279
 
1280
- Returns a list of Universal Symbol objects that match a defined string.
1281
-
1282
- Matches on ticker or name.
1280
+ Returns a list of Universal Symbol objects that match the given query. The matching takes into consideration both the ticker and the name of the symbol. Only the first 20 results are returned.
1283
1281
 
1284
1282
 
1285
1283
  #### 🛠️ Usage<a id="🛠️-usage"></a>
1286
1284
 
1287
1285
  ```typescript
1288
1286
  const getSymbolsResponse = await snaptrade.referenceData.getSymbols({
1289
- substring: "apple",
1287
+ substring: "AAPL",
1290
1288
  });
1291
1289
  ```
1292
1290
 
@@ -1294,6 +1292,8 @@ const getSymbolsResponse = await snaptrade.referenceData.getSymbols({
1294
1292
 
1295
1293
  ##### substring: `string`<a id="substring-string"></a>
1296
1294
 
1295
+ The search query for symbols.
1296
+
1297
1297
  #### 🔄 Return<a id="🔄-return"></a>
1298
1298
 
1299
1299
  [UniversalSymbol](./models/universal-symbol.ts)
@@ -1309,7 +1309,8 @@ const getSymbolsResponse = await snaptrade.referenceData.getSymbols({
1309
1309
 
1310
1310
  ### `snaptrade.referenceData.getSymbolsByTicker`<a id="snaptradereferencedatagetsymbolsbyticker"></a>
1311
1311
 
1312
- Returns the Universal Symbol object specified by the ticker or the universal_symbol_id.
1312
+ Returns the Universal Symbol object specified by the ticker or the Universal Symbol ID. When a ticker is specified, the first matching result is returned. We largely follow the [Yahoo Finance ticker format](https://help.yahoo.com/kb/SLN2310.html)(click on "Yahoo Finance Market Coverage and Data Delays"). For example, for securities traded on the Toronto Stock Exchange, the symbol has a '.TO' suffix. For securities traded on NASDAQ or NYSE, the symbol does not have a suffix. Please use the ticker with the proper suffix for the best results.
1313
+
1313
1314
 
1314
1315
  #### 🛠️ Usage<a id="🛠️-usage"></a>
1315
1316
 
@@ -1324,7 +1325,7 @@ const getSymbolsByTickerResponse =
1324
1325
 
1325
1326
  ##### query: `string`<a id="query-string"></a>
1326
1327
 
1327
- The ticker or universal_symbol_id of the UniversalSymbol to get.
1328
+ The ticker or Universal Symbol ID to look up the symbol with.
1328
1329
 
1329
1330
  #### 🔄 Return<a id="🔄-return"></a>
1330
1331
 
@@ -1445,9 +1446,9 @@ const listAllCurrenciesRatesResponse =
1445
1446
 
1446
1447
  ### `snaptrade.referenceData.symbolSearchUserAccount`<a id="snaptradereferencedatasymbolsearchuseraccount"></a>
1447
1448
 
1448
- Returns a list of universal symbols that are supported by
1449
- the specificied account. Returned symbols are based on the
1450
- provided search string, matching on ticker and name.
1449
+ Returns a list of Universal Symbol objects that match the given query. The matching takes into consideration both the ticker and the name of the symbol. Only the first 20 results are returned.
1450
+
1451
+ The search results are further limited to the symbols supported by the brokerage for which the account is under.
1451
1452
 
1452
1453
 
1453
1454
  #### 🛠️ Usage<a id="🛠️-usage"></a>
@@ -1458,7 +1459,7 @@ const symbolSearchUserAccountResponse =
1458
1459
  userId: "snaptrade-user-123",
1459
1460
  userSecret: "adf2aa34-8219-40f7-a6b3-60156985cc61",
1460
1461
  accountId: "917c8734-8470-4a3e-a18f-57c3f2ee6631",
1461
- substring: "apple",
1462
+ substring: "AAPL",
1462
1463
  });
1463
1464
  ```
1464
1465
 
@@ -1470,10 +1471,10 @@ const symbolSearchUserAccountResponse =
1470
1471
 
1471
1472
  ##### accountId: `string`<a id="accountid-string"></a>
1472
1473
 
1473
- The ID of the account to search for symbols within.
1474
-
1475
1474
  ##### substring: `string`<a id="substring-string"></a>
1476
1475
 
1476
+ The search query for symbols.
1477
+
1477
1478
  #### 🔄 Return<a id="🔄-return"></a>
1478
1479
 
1479
1480
  [UniversalSymbol](./models/universal-symbol.ts)
@@ -45,17 +45,17 @@ export declare const ReferenceDataApiAxiosParamCreator: (configuration?: Configu
45
45
  */
46
46
  getStockExchanges: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
47
47
  /**
48
- * Returns a list of Universal Symbol objects that match a defined string. Matches on ticker or name.
49
- * @summary Search for symbols
48
+ * Returns a list of Universal Symbol objects that match the given query. The matching takes into consideration both the ticker and the name of the symbol. Only the first 20 results are returned.
49
+ * @summary Search symbols
50
50
  * @param {SymbolQuery} [symbolQuery]
51
51
  * @param {*} [options] Override http request option.
52
52
  * @throws {RequiredError}
53
53
  */
54
54
  getSymbols: (symbolQuery?: SymbolQuery, options?: AxiosRequestConfig) => Promise<RequestArgs>;
55
55
  /**
56
- * Returns the Universal Symbol object specified by the ticker or the universal_symbol_id.
57
- * @summary Get details of a symbol
58
- * @param {string} query The ticker or universal_symbol_id of the UniversalSymbol to get.
56
+ * Returns the Universal Symbol object specified by the ticker or the Universal Symbol ID. When a ticker is specified, the first matching result is returned. We largely follow the [Yahoo Finance ticker format](https://help.yahoo.com/kb/SLN2310.html)(click on \"Yahoo Finance Market Coverage and Data Delays\"). For example, for securities traded on the Toronto Stock Exchange, the symbol has a \'.TO\' suffix. For securities traded on NASDAQ or NYSE, the symbol does not have a suffix. Please use the ticker with the proper suffix for the best results.
57
+ * @summary Get symbol detail
58
+ * @param {string} query The ticker or Universal Symbol ID to look up the symbol with.
59
59
  * @param {*} [options] Override http request option.
60
60
  * @throws {RequiredError}
61
61
  */
@@ -90,11 +90,11 @@ export declare const ReferenceDataApiAxiosParamCreator: (configuration?: Configu
90
90
  */
91
91
  listAllCurrenciesRates: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
92
92
  /**
93
- * Returns a list of universal symbols that are supported by the specificied account. Returned symbols are based on the provided search string, matching on ticker and name.
94
- * @summary Search for symbols available in an account
93
+ * Returns a list of Universal Symbol objects that match the given query. The matching takes into consideration both the ticker and the name of the symbol. Only the first 20 results are returned. The search results are further limited to the symbols supported by the brokerage for which the account is under.
94
+ * @summary Search account symbols
95
95
  * @param {string} userId
96
96
  * @param {string} userSecret
97
- * @param {string} accountId The ID of the account to search for symbols within.
97
+ * @param {string} accountId
98
98
  * @param {SymbolQuery} [symbolQuery]
99
99
  * @param {*} [options] Override http request option.
100
100
  * @throws {RequiredError}
@@ -136,16 +136,16 @@ export declare const ReferenceDataApiFp: (configuration?: Configuration) => {
136
136
  */
137
137
  getStockExchanges(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Exchange>>>;
138
138
  /**
139
- * Returns a list of Universal Symbol objects that match a defined string. Matches on ticker or name.
140
- * @summary Search for symbols
139
+ * Returns a list of Universal Symbol objects that match the given query. The matching takes into consideration both the ticker and the name of the symbol. Only the first 20 results are returned.
140
+ * @summary Search symbols
141
141
  * @param {ReferenceDataApiGetSymbolsRequest} requestParameters Request parameters.
142
142
  * @param {*} [options] Override http request option.
143
143
  * @throws {RequiredError}
144
144
  */
145
145
  getSymbols(requestParameters?: ReferenceDataApiGetSymbolsRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<UniversalSymbol>>>;
146
146
  /**
147
- * Returns the Universal Symbol object specified by the ticker or the universal_symbol_id.
148
- * @summary Get details of a symbol
147
+ * Returns the Universal Symbol object specified by the ticker or the Universal Symbol ID. When a ticker is specified, the first matching result is returned. We largely follow the [Yahoo Finance ticker format](https://help.yahoo.com/kb/SLN2310.html)(click on \"Yahoo Finance Market Coverage and Data Delays\"). For example, for securities traded on the Toronto Stock Exchange, the symbol has a \'.TO\' suffix. For securities traded on NASDAQ or NYSE, the symbol does not have a suffix. Please use the ticker with the proper suffix for the best results.
148
+ * @summary Get symbol detail
149
149
  * @param {ReferenceDataApiGetSymbolsByTickerRequest} requestParameters Request parameters.
150
150
  * @param {*} [options] Override http request option.
151
151
  * @throws {RequiredError}
@@ -181,8 +181,8 @@ export declare const ReferenceDataApiFp: (configuration?: Configuration) => {
181
181
  */
182
182
  listAllCurrenciesRates(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ExchangeRatePairs>>>;
183
183
  /**
184
- * Returns a list of universal symbols that are supported by the specificied account. Returned symbols are based on the provided search string, matching on ticker and name.
185
- * @summary Search for symbols available in an account
184
+ * Returns a list of Universal Symbol objects that match the given query. The matching takes into consideration both the ticker and the name of the symbol. Only the first 20 results are returned. The search results are further limited to the symbols supported by the brokerage for which the account is under.
185
+ * @summary Search account symbols
186
186
  * @param {ReferenceDataApiSymbolSearchUserAccountRequest} requestParameters Request parameters.
187
187
  * @param {*} [options] Override http request option.
188
188
  * @throws {RequiredError}
@@ -224,16 +224,16 @@ export declare const ReferenceDataApiFactory: (configuration?: Configuration, ba
224
224
  */
225
225
  getStockExchanges(options?: AxiosRequestConfig): AxiosPromise<Array<Exchange>>;
226
226
  /**
227
- * Returns a list of Universal Symbol objects that match a defined string. Matches on ticker or name.
228
- * @summary Search for symbols
227
+ * Returns a list of Universal Symbol objects that match the given query. The matching takes into consideration both the ticker and the name of the symbol. Only the first 20 results are returned.
228
+ * @summary Search symbols
229
229
  * @param {ReferenceDataApiGetSymbolsRequest} requestParameters Request parameters.
230
230
  * @param {*} [options] Override http request option.
231
231
  * @throws {RequiredError}
232
232
  */
233
233
  getSymbols(requestParameters?: ReferenceDataApiGetSymbolsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<UniversalSymbol>>;
234
234
  /**
235
- * Returns the Universal Symbol object specified by the ticker or the universal_symbol_id.
236
- * @summary Get details of a symbol
235
+ * Returns the Universal Symbol object specified by the ticker or the Universal Symbol ID. When a ticker is specified, the first matching result is returned. We largely follow the [Yahoo Finance ticker format](https://help.yahoo.com/kb/SLN2310.html)(click on \"Yahoo Finance Market Coverage and Data Delays\"). For example, for securities traded on the Toronto Stock Exchange, the symbol has a \'.TO\' suffix. For securities traded on NASDAQ or NYSE, the symbol does not have a suffix. Please use the ticker with the proper suffix for the best results.
236
+ * @summary Get symbol detail
237
237
  * @param {ReferenceDataApiGetSymbolsByTickerRequest} requestParameters Request parameters.
238
238
  * @param {*} [options] Override http request option.
239
239
  * @throws {RequiredError}
@@ -269,8 +269,8 @@ export declare const ReferenceDataApiFactory: (configuration?: Configuration, ba
269
269
  */
270
270
  listAllCurrenciesRates(options?: AxiosRequestConfig): AxiosPromise<Array<ExchangeRatePairs>>;
271
271
  /**
272
- * Returns a list of universal symbols that are supported by the specificied account. Returned symbols are based on the provided search string, matching on ticker and name.
273
- * @summary Search for symbols available in an account
272
+ * Returns a list of Universal Symbol objects that match the given query. The matching takes into consideration both the ticker and the name of the symbol. Only the first 20 results are returned. The search results are further limited to the symbols supported by the brokerage for which the account is under.
273
+ * @summary Search account symbols
274
274
  * @param {ReferenceDataApiSymbolSearchUserAccountRequest} requestParameters Request parameters.
275
275
  * @param {*} [options] Override http request option.
276
276
  * @throws {RequiredError}
@@ -303,7 +303,7 @@ export type ReferenceDataApiGetSymbolsRequest = {} & SymbolQuery;
303
303
  */
304
304
  export type ReferenceDataApiGetSymbolsByTickerRequest = {
305
305
  /**
306
- * The ticker or universal_symbol_id of the UniversalSymbol to get.
306
+ * The ticker or Universal Symbol ID to look up the symbol with.
307
307
  * @type {string}
308
308
  * @memberof ReferenceDataApiGetSymbolsByTicker
309
309
  */
@@ -341,7 +341,7 @@ export type ReferenceDataApiSymbolSearchUserAccountRequest = {
341
341
  */
342
342
  readonly userSecret: string;
343
343
  /**
344
- * The ID of the account to search for symbols within.
344
+ *
345
345
  * @type {string}
346
346
  * @memberof ReferenceDataApiSymbolSearchUserAccount
347
347
  */
@@ -388,8 +388,8 @@ export declare class ReferenceDataApiGenerated extends BaseAPI {
388
388
  */
389
389
  getStockExchanges(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Exchange[], any>>;
390
390
  /**
391
- * Returns a list of Universal Symbol objects that match a defined string. Matches on ticker or name.
392
- * @summary Search for symbols
391
+ * Returns a list of Universal Symbol objects that match the given query. The matching takes into consideration both the ticker and the name of the symbol. Only the first 20 results are returned.
392
+ * @summary Search symbols
393
393
  * @param {ReferenceDataApiGetSymbolsRequest} requestParameters Request parameters.
394
394
  * @param {*} [options] Override http request option.
395
395
  * @throws {RequiredError}
@@ -397,8 +397,8 @@ export declare class ReferenceDataApiGenerated extends BaseAPI {
397
397
  */
398
398
  getSymbols(requestParameters?: ReferenceDataApiGetSymbolsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UniversalSymbol[], any>>;
399
399
  /**
400
- * Returns the Universal Symbol object specified by the ticker or the universal_symbol_id.
401
- * @summary Get details of a symbol
400
+ * Returns the Universal Symbol object specified by the ticker or the Universal Symbol ID. When a ticker is specified, the first matching result is returned. We largely follow the [Yahoo Finance ticker format](https://help.yahoo.com/kb/SLN2310.html)(click on \"Yahoo Finance Market Coverage and Data Delays\"). For example, for securities traded on the Toronto Stock Exchange, the symbol has a \'.TO\' suffix. For securities traded on NASDAQ or NYSE, the symbol does not have a suffix. Please use the ticker with the proper suffix for the best results.
401
+ * @summary Get symbol detail
402
402
  * @param {ReferenceDataApiGetSymbolsByTickerRequest} requestParameters Request parameters.
403
403
  * @param {*} [options] Override http request option.
404
404
  * @throws {RequiredError}
@@ -439,8 +439,8 @@ export declare class ReferenceDataApiGenerated extends BaseAPI {
439
439
  */
440
440
  listAllCurrenciesRates(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ExchangeRatePairs[], any>>;
441
441
  /**
442
- * Returns a list of universal symbols that are supported by the specificied account. Returned symbols are based on the provided search string, matching on ticker and name.
443
- * @summary Search for symbols available in an account
442
+ * Returns a list of Universal Symbol objects that match the given query. The matching takes into consideration both the ticker and the name of the symbol. Only the first 20 results are returned. The search results are further limited to the symbols supported by the brokerage for which the account is under.
443
+ * @summary Search account symbols
444
444
  * @param {ReferenceDataApiSymbolSearchUserAccountRequest} requestParameters Request parameters.
445
445
  * @param {*} [options] Override http request option.
446
446
  * @throws {RequiredError}
@@ -196,8 +196,8 @@ const ReferenceDataApiAxiosParamCreator = function (configuration) {
196
196
  };
197
197
  }),
198
198
  /**
199
- * Returns a list of Universal Symbol objects that match a defined string. Matches on ticker or name.
200
- * @summary Search for symbols
199
+ * Returns a list of Universal Symbol objects that match the given query. The matching takes into consideration both the ticker and the name of the symbol. Only the first 20 results are returned.
200
+ * @summary Search symbols
201
201
  * @param {SymbolQuery} [symbolQuery]
202
202
  * @param {*} [options] Override http request option.
203
203
  * @throws {RequiredError}
@@ -239,9 +239,9 @@ const ReferenceDataApiAxiosParamCreator = function (configuration) {
239
239
  };
240
240
  }),
241
241
  /**
242
- * Returns the Universal Symbol object specified by the ticker or the universal_symbol_id.
243
- * @summary Get details of a symbol
244
- * @param {string} query The ticker or universal_symbol_id of the UniversalSymbol to get.
242
+ * Returns the Universal Symbol object specified by the ticker or the Universal Symbol ID. When a ticker is specified, the first matching result is returned. We largely follow the [Yahoo Finance ticker format](https://help.yahoo.com/kb/SLN2310.html)(click on \"Yahoo Finance Market Coverage and Data Delays\"). For example, for securities traded on the Toronto Stock Exchange, the symbol has a \'.TO\' suffix. For securities traded on NASDAQ or NYSE, the symbol does not have a suffix. Please use the ticker with the proper suffix for the best results.
243
+ * @summary Get symbol detail
244
+ * @param {string} query The ticker or Universal Symbol ID to look up the symbol with.
245
245
  * @param {*} [options] Override http request option.
246
246
  * @throws {RequiredError}
247
247
  */
@@ -442,11 +442,11 @@ const ReferenceDataApiAxiosParamCreator = function (configuration) {
442
442
  };
443
443
  }),
444
444
  /**
445
- * Returns a list of universal symbols that are supported by the specificied account. Returned symbols are based on the provided search string, matching on ticker and name.
446
- * @summary Search for symbols available in an account
445
+ * Returns a list of Universal Symbol objects that match the given query. The matching takes into consideration both the ticker and the name of the symbol. Only the first 20 results are returned. The search results are further limited to the symbols supported by the brokerage for which the account is under.
446
+ * @summary Search account symbols
447
447
  * @param {string} userId
448
448
  * @param {string} userSecret
449
- * @param {string} accountId The ID of the account to search for symbols within.
449
+ * @param {string} accountId
450
450
  * @param {SymbolQuery} [symbolQuery]
451
451
  * @param {*} [options] Override http request option.
452
452
  * @throws {RequiredError}
@@ -560,8 +560,8 @@ const ReferenceDataApiFp = function (configuration) {
560
560
  });
561
561
  },
562
562
  /**
563
- * Returns a list of Universal Symbol objects that match a defined string. Matches on ticker or name.
564
- * @summary Search for symbols
563
+ * Returns a list of Universal Symbol objects that match the given query. The matching takes into consideration both the ticker and the name of the symbol. Only the first 20 results are returned.
564
+ * @summary Search symbols
565
565
  * @param {ReferenceDataApiGetSymbolsRequest} requestParameters Request parameters.
566
566
  * @param {*} [options] Override http request option.
567
567
  * @throws {RequiredError}
@@ -576,8 +576,8 @@ const ReferenceDataApiFp = function (configuration) {
576
576
  });
577
577
  },
578
578
  /**
579
- * Returns the Universal Symbol object specified by the ticker or the universal_symbol_id.
580
- * @summary Get details of a symbol
579
+ * Returns the Universal Symbol object specified by the ticker or the Universal Symbol ID. When a ticker is specified, the first matching result is returned. We largely follow the [Yahoo Finance ticker format](https://help.yahoo.com/kb/SLN2310.html)(click on \"Yahoo Finance Market Coverage and Data Delays\"). For example, for securities traded on the Toronto Stock Exchange, the symbol has a \'.TO\' suffix. For securities traded on NASDAQ or NYSE, the symbol does not have a suffix. Please use the ticker with the proper suffix for the best results.
580
+ * @summary Get symbol detail
581
581
  * @param {ReferenceDataApiGetSymbolsByTickerRequest} requestParameters Request parameters.
582
582
  * @param {*} [options] Override http request option.
583
583
  * @throws {RequiredError}
@@ -638,8 +638,8 @@ const ReferenceDataApiFp = function (configuration) {
638
638
  });
639
639
  },
640
640
  /**
641
- * Returns a list of universal symbols that are supported by the specificied account. Returned symbols are based on the provided search string, matching on ticker and name.
642
- * @summary Search for symbols available in an account
641
+ * Returns a list of Universal Symbol objects that match the given query. The matching takes into consideration both the ticker and the name of the symbol. Only the first 20 results are returned. The search results are further limited to the symbols supported by the brokerage for which the account is under.
642
+ * @summary Search account symbols
643
643
  * @param {ReferenceDataApiSymbolSearchUserAccountRequest} requestParameters Request parameters.
644
644
  * @param {*} [options] Override http request option.
645
645
  * @throws {RequiredError}
@@ -701,8 +701,8 @@ const ReferenceDataApiFactory = function (configuration, basePath, axios) {
701
701
  return localVarFp.getStockExchanges(options).then((request) => request(axios, basePath));
702
702
  },
703
703
  /**
704
- * Returns a list of Universal Symbol objects that match a defined string. Matches on ticker or name.
705
- * @summary Search for symbols
704
+ * Returns a list of Universal Symbol objects that match the given query. The matching takes into consideration both the ticker and the name of the symbol. Only the first 20 results are returned.
705
+ * @summary Search symbols
706
706
  * @param {ReferenceDataApiGetSymbolsRequest} requestParameters Request parameters.
707
707
  * @param {*} [options] Override http request option.
708
708
  * @throws {RequiredError}
@@ -711,8 +711,8 @@ const ReferenceDataApiFactory = function (configuration, basePath, axios) {
711
711
  return localVarFp.getSymbols(requestParameters, options).then((request) => request(axios, basePath));
712
712
  },
713
713
  /**
714
- * Returns the Universal Symbol object specified by the ticker or the universal_symbol_id.
715
- * @summary Get details of a symbol
714
+ * Returns the Universal Symbol object specified by the ticker or the Universal Symbol ID. When a ticker is specified, the first matching result is returned. We largely follow the [Yahoo Finance ticker format](https://help.yahoo.com/kb/SLN2310.html)(click on \"Yahoo Finance Market Coverage and Data Delays\"). For example, for securities traded on the Toronto Stock Exchange, the symbol has a \'.TO\' suffix. For securities traded on NASDAQ or NYSE, the symbol does not have a suffix. Please use the ticker with the proper suffix for the best results.
715
+ * @summary Get symbol detail
716
716
  * @param {ReferenceDataApiGetSymbolsByTickerRequest} requestParameters Request parameters.
717
717
  * @param {*} [options] Override http request option.
718
718
  * @throws {RequiredError}
@@ -758,8 +758,8 @@ const ReferenceDataApiFactory = function (configuration, basePath, axios) {
758
758
  return localVarFp.listAllCurrenciesRates(options).then((request) => request(axios, basePath));
759
759
  },
760
760
  /**
761
- * Returns a list of universal symbols that are supported by the specificied account. Returned symbols are based on the provided search string, matching on ticker and name.
762
- * @summary Search for symbols available in an account
761
+ * Returns a list of Universal Symbol objects that match the given query. The matching takes into consideration both the ticker and the name of the symbol. Only the first 20 results are returned. The search results are further limited to the symbols supported by the brokerage for which the account is under.
762
+ * @summary Search account symbols
763
763
  * @param {ReferenceDataApiSymbolSearchUserAccountRequest} requestParameters Request parameters.
764
764
  * @param {*} [options] Override http request option.
765
765
  * @throws {RequiredError}
@@ -819,8 +819,8 @@ class ReferenceDataApiGenerated extends base_1.BaseAPI {
819
819
  return (0, exports.ReferenceDataApiFp)(this.configuration).getStockExchanges(options).then((request) => request(this.axios, this.basePath));
820
820
  }
821
821
  /**
822
- * Returns a list of Universal Symbol objects that match a defined string. Matches on ticker or name.
823
- * @summary Search for symbols
822
+ * Returns a list of Universal Symbol objects that match the given query. The matching takes into consideration both the ticker and the name of the symbol. Only the first 20 results are returned.
823
+ * @summary Search symbols
824
824
  * @param {ReferenceDataApiGetSymbolsRequest} requestParameters Request parameters.
825
825
  * @param {*} [options] Override http request option.
826
826
  * @throws {RequiredError}
@@ -830,8 +830,8 @@ class ReferenceDataApiGenerated extends base_1.BaseAPI {
830
830
  return (0, exports.ReferenceDataApiFp)(this.configuration).getSymbols(requestParameters, options).then((request) => request(this.axios, this.basePath));
831
831
  }
832
832
  /**
833
- * Returns the Universal Symbol object specified by the ticker or the universal_symbol_id.
834
- * @summary Get details of a symbol
833
+ * Returns the Universal Symbol object specified by the ticker or the Universal Symbol ID. When a ticker is specified, the first matching result is returned. We largely follow the [Yahoo Finance ticker format](https://help.yahoo.com/kb/SLN2310.html)(click on \"Yahoo Finance Market Coverage and Data Delays\"). For example, for securities traded on the Toronto Stock Exchange, the symbol has a \'.TO\' suffix. For securities traded on NASDAQ or NYSE, the symbol does not have a suffix. Please use the ticker with the proper suffix for the best results.
834
+ * @summary Get symbol detail
835
835
  * @param {ReferenceDataApiGetSymbolsByTickerRequest} requestParameters Request parameters.
836
836
  * @param {*} [options] Override http request option.
837
837
  * @throws {RequiredError}
@@ -882,8 +882,8 @@ class ReferenceDataApiGenerated extends base_1.BaseAPI {
882
882
  return (0, exports.ReferenceDataApiFp)(this.configuration).listAllCurrenciesRates(options).then((request) => request(this.axios, this.basePath));
883
883
  }
884
884
  /**
885
- * Returns a list of universal symbols that are supported by the specificied account. Returned symbols are based on the provided search string, matching on ticker and name.
886
- * @summary Search for symbols available in an account
885
+ * Returns a list of Universal Symbol objects that match the given query. The matching takes into consideration both the ticker and the name of the symbol. Only the first 20 results are returned. The search results are further limited to the symbols supported by the brokerage for which the account is under.
886
+ * @summary Search account symbols
887
887
  * @param {ReferenceDataApiSymbolSearchUserAccountRequest} requestParameters Request parameters.
888
888
  * @param {*} [options] Override http request option.
889
889
  * @throws {RequiredError}
package/dist/browser.js CHANGED
@@ -1 +1 @@
1
- !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={3708:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,s)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),s(r(8598),t),s(r(459),t),s(r(7766),t),s(r(2319),t),s(r(4420),t),s(r(502),t),s(r(9819),t),s(r(9900),t)},2734:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(s,i){function o(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.AccountInformationApiGenerated=t.AccountInformationApiFactory=t.AccountInformationApiFp=t.AccountInformationApiAxiosParamCreator=void 0;const s=r(1357),i=r(6479),o=r(7275),a=r(8917);t.AccountInformationApiAxiosParamCreator=function(e){return{getAllUserHoldings:(t,r,s,o={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getAllUserHoldings","userId",t),(0,i.assertParamExists)("getAllUserHoldings","userSecret",r);const n="/holdings",c=new URL(n,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!==s&&(p.brokerage_authorizations=s);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:n,configuration:e,pathTemplate:"/holdings",httpMethod:"GET"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),getUserAccountBalance:(t,r,s,o={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getUserAccountBalance","userId",t),(0,i.assertParamExists)("getUserAccountBalance","userSecret",r),(0,i.assertParamExists)("getUserAccountBalance","accountId",s);const n="/accounts/{accountId}/balances".replace("{accountId}",encodeURIComponent(String(void 0!==s?s:"-accountId-"))),c=new URL(n,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:n,configuration:e,pathTemplate:"/accounts/{accountId}/balances",httpMethod:"GET"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),getUserAccountDetails:(t,r,s,o={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getUserAccountDetails","userId",t),(0,i.assertParamExists)("getUserAccountDetails","userSecret",r),(0,i.assertParamExists)("getUserAccountDetails","accountId",s);const n="/accounts/{accountId}".replace("{accountId}",encodeURIComponent(String(void 0!==s?s:"-accountId-"))),c=new URL(n,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:n,configuration:e,pathTemplate:"/accounts/{accountId}",httpMethod:"GET"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),getUserAccountOrders:(t,r,s,o,c,u={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getUserAccountOrders","userId",t),(0,i.assertParamExists)("getUserAccountOrders","userSecret",r),(0,i.assertParamExists)("getUserAccountOrders","accountId",s);const n="/accounts/{accountId}/orders".replace("{accountId}",encodeURIComponent(String(void 0!==s?s:"-accountId-"))),d=new URL(n,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}:{},f={};yield(0,i.setApiKeyToObject)({object:f,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:f,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(f.userId=t),void 0!==r&&(f.userSecret=r),void 0!==o&&(f.state=o),void 0!==c&&(f.days=c);let g=l&&l.headers?l.headers:{};return p.headers=Object.assign(Object.assign(Object.assign({},h),g),u.headers),(0,a.requestBeforeHook)({queryParameters:f,requestConfig:p,path:n,configuration:e,pathTemplate:"/accounts/{accountId}/orders",httpMethod:"GET"}),(0,i.setSearchParams)(d,f),{url:(0,i.toPathString)(d),options:p}})),getUserAccountPositions:(t,r,s,o={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getUserAccountPositions","userId",t),(0,i.assertParamExists)("getUserAccountPositions","userSecret",r),(0,i.assertParamExists)("getUserAccountPositions","accountId",s);const n="/accounts/{accountId}/positions".replace("{accountId}",encodeURIComponent(String(void 0!==s?s:"-accountId-"))),c=new URL(n,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:n,configuration:e,pathTemplate:"/accounts/{accountId}/positions",httpMethod:"GET"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),getUserHoldings:(t,r,s,o={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getUserHoldings","accountId",t),(0,i.assertParamExists)("getUserHoldings","userId",r),(0,i.assertParamExists)("getUserHoldings","userSecret",s);const n="/accounts/{accountId}/holdings".replace("{accountId}",encodeURIComponent(String(void 0!==t?t:"-accountId-"))),c=new URL(n,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!==s&&(p.userSecret=s);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:n,configuration:e,pathTemplate:"/accounts/{accountId}/holdings",httpMethod:"GET"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),listUserAccounts:(t,r,s={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("listUserAccounts","userId",t),(0,i.assertParamExists)("listUserAccounts","userSecret",r);const n="/accounts",o=new URL(n,i.DUMMY_BASE_URL);let c;e&&(c=e.baseOptions);const u=Object.assign(Object.assign({method:"GET"},c),s),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),s.headers),(0,a.requestBeforeHook)({queryParameters:l,requestConfig:u,path:n,configuration:e,pathTemplate:"/accounts",httpMethod:"GET"}),(0,i.setSearchParams)(o,l),{url:(0,i.toPathString)(o),options:u}})),updateUserAccount:(t,r,s,o={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("updateUserAccount","userId",t),(0,i.assertParamExists)("updateUserAccount","userSecret",r),(0,i.assertParamExists)("updateUserAccount","accountId",s);const n="/accounts/{accountId}".replace("{accountId}",encodeURIComponent(String(void 0!==s?s:"-accountId-"))),c=new URL(n,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:n,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{getAllUserHoldings(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.getAllUserHoldings(t.userId,t.userSecret,t.brokerageAuthorizations,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},getUserAccountBalance(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.getUserAccountBalance(t.userId,t.userSecret,t.accountId,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},getUserAccountDetails(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.getUserAccountDetails(t.userId,t.userSecret,t.accountId,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},getUserAccountOrders(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.getUserAccountOrders(t.userId,t.userSecret,t.accountId,t.state,t.days,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},getUserAccountPositions(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.getUserAccountPositions(t.userId,t.userSecret,t.accountId,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},getUserHoldings(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.getUserHoldings(t.accountId,t.userId,t.userSecret,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},listUserAccounts(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.listUserAccounts(t.userId,t.userSecret,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},updateUserAccount(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.updateUserAccount(t.userId,t.userSecret,t.accountId,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))}}},t.AccountInformationApiFactory=function(e,r,n){const s=(0,t.AccountInformationApiFp)(e);return{getAllUserHoldings:(e,t)=>s.getAllUserHoldings(e,t).then((e=>e(n,r))),getUserAccountBalance:(e,t)=>s.getUserAccountBalance(e,t).then((e=>e(n,r))),getUserAccountDetails:(e,t)=>s.getUserAccountDetails(e,t).then((e=>e(n,r))),getUserAccountOrders:(e,t)=>s.getUserAccountOrders(e,t).then((e=>e(n,r))),getUserAccountPositions:(e,t)=>s.getUserAccountPositions(e,t).then((e=>e(n,r))),getUserHoldings:(e,t)=>s.getUserHoldings(e,t).then((e=>e(n,r))),listUserAccounts:(e,t)=>s.listUserAccounts(e,t).then((e=>e(n,r))),updateUserAccount:(e,t)=>s.updateUserAccount(e,t).then((e=>e(n,r)))}};class c extends o.BaseAPI{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)))}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)))}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},8598:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,s)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.AccountInformationApi=void 0;const i=r(2734);s(r(2734),t);class o extends i.AccountInformationApiGenerated{}t.AccountInformationApi=o},7971:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(s,i){function o(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.ApiStatusApiGenerated=t.ApiStatusApiFactory=t.ApiStatusApiFp=t.ApiStatusApiAxiosParamCreator=void 0;const s=r(1357),i=r(6479),o=r(7275),a=r(8917);t.ApiStatusApiAxiosParamCreator=function(e){return{check:(t={})=>n(this,void 0,void 0,(function*(){const r=new URL("/",i.DUMMY_BASE_URL);let n;e&&(n=e.baseOptions);const s=Object.assign(Object.assign({method:"GET"},n),t),o=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},c={};let u=n&&n.headers?n.headers:{};return s.headers=Object.assign(Object.assign(Object.assign({},o),u),t.headers),(0,a.requestBeforeHook)({queryParameters:c,requestConfig:s,path:"/",configuration:e,pathTemplate:"/",httpMethod:"GET"}),(0,i.setSearchParams)(r,c),{url:(0,i.toPathString)(r),options:s}}))}},t.ApiStatusApiFp=function(e){const r=(0,t.ApiStatusApiAxiosParamCreator)(e);return{check(t){return n(this,void 0,void 0,(function*(){const n=yield r.check(t);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))}}},t.ApiStatusApiFactory=function(e,r,n){const s=(0,t.ApiStatusApiFp)(e);return{check:e=>s.check(e).then((e=>e(n,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},459:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,s)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.ApiStatusApi=void 0;const i=r(7971);s(r(7971),t);class o extends i.ApiStatusApiGenerated{}t.ApiStatusApi=o},3022:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(s,i){function o(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.AuthenticationApiGenerated=t.AuthenticationApiFactory=t.AuthenticationApiFp=t.AuthenticationApiAxiosParamCreator=void 0;const s=r(1357),i=r(6479),o=r(7275),a=r(8917);t.AuthenticationApiAxiosParamCreator=function(e){return{deleteSnapTradeUser:(t,r={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("deleteSnapTradeUser","userId",t);const n="/snapTrade/deleteUser",s=new URL(n,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:n,configuration:e,pathTemplate:"/snapTrade/deleteUser",httpMethod:"DELETE"}),(0,i.setSearchParams)(s,d),{url:(0,i.toPathString)(s),options:c}})),listSnapTradeUsers:(t={})=>n(this,void 0,void 0,(function*(){const r="/snapTrade/listUsers",n=new URL(r,i.DUMMY_BASE_URL);let s;e&&(s=e.baseOptions);const o=Object.assign(Object.assign({method:"GET"},s),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=s&&s.headers?s.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)(n,u),{url:(0,i.toPathString)(n),options:o}})),loginSnapTradeUser:(t,r,s,o={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("loginSnapTradeUser","userId",t),(0,i.assertParamExists)("loginSnapTradeUser","userSecret",r);const n="/snapTrade/login",c=new URL(n,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:s,queryParameters:p,requestConfig:d,path:n,configuration:e,pathTemplate:"/snapTrade/login",httpMethod:"POST"}),d.data=(0,i.serializeDataIfNeeded)(s,d,e),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),registerSnapTradeUser:(t,r={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("registerSnapTradeUser","snapTradeRegisterUserRequestBody",t);const n="/snapTrade/registerUser",s=new URL(n,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:n,configuration:e,pathTemplate:"/snapTrade/registerUser",httpMethod:"POST"}),c.data=(0,i.serializeDataIfNeeded)(t,c,e),(0,i.setSearchParams)(s,d),{url:(0,i.toPathString)(s),options:c}})),resetSnapTradeUserSecret:(t,r={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("resetSnapTradeUserSecret","userIDandSecret",t);const n="/snapTrade/resetUserSecret",s=new URL(n,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:n,configuration:e,pathTemplate:"/snapTrade/resetUserSecret",httpMethod:"POST"}),c.data=(0,i.serializeDataIfNeeded)(t,c,e),(0,i.setSearchParams)(s,d),{url:(0,i.toPathString)(s),options:c}}))}},t.AuthenticationApiFp=function(e){const r=(0,t.AuthenticationApiAxiosParamCreator)(e);return{deleteSnapTradeUser(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.deleteSnapTradeUser(t.userId,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},listSnapTradeUsers(t){return n(this,void 0,void 0,(function*(){const n=yield r.listSnapTradeUsers(t);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},loginSnapTradeUser(t,a){return n(this,void 0,void 0,(function*(){const n={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,n,a);return(0,i.createRequestFunction)(c,s.default,o.BASE_PATH,e)}))},registerSnapTradeUser(t,a){return n(this,void 0,void 0,(function*(){const n={userId:t.userId},c=yield r.registerSnapTradeUser(n,a);return(0,i.createRequestFunction)(c,s.default,o.BASE_PATH,e)}))},resetSnapTradeUserSecret(t,a){return n(this,void 0,void 0,(function*(){const n={userId:t.userId,userSecret:t.userSecret},c=yield r.resetSnapTradeUserSecret(n,a);return(0,i.createRequestFunction)(c,s.default,o.BASE_PATH,e)}))}}},t.AuthenticationApiFactory=function(e,r,n){const s=(0,t.AuthenticationApiFp)(e);return{deleteSnapTradeUser:(e,t)=>s.deleteSnapTradeUser(e,t).then((e=>e(n,r))),listSnapTradeUsers:e=>s.listSnapTradeUsers(e).then((e=>e(n,r))),loginSnapTradeUser:(e,t)=>s.loginSnapTradeUser(e,t).then((e=>e(n,r))),registerSnapTradeUser:(e,t)=>s.registerSnapTradeUser(e,t).then((e=>e(n,r))),resetSnapTradeUserSecret:(e,t)=>s.resetSnapTradeUserSecret(e,t).then((e=>e(n,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},7766:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,s)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.AuthenticationApi=void 0;const i=r(3022);s(r(3022),t);class o extends i.AuthenticationApiGenerated{}t.AuthenticationApi=o},9239:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(s,i){function o(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectionsApiGenerated=t.ConnectionsApiFactory=t.ConnectionsApiFp=t.ConnectionsApiAxiosParamCreator=void 0;const s=r(1357),i=r(6479),o=r(7275),a=r(8917);t.ConnectionsApiAxiosParamCreator=function(e){return{detailBrokerageAuthorization:(t,r,s,o={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("detailBrokerageAuthorization","authorizationId",t),(0,i.assertParamExists)("detailBrokerageAuthorization","userId",r),(0,i.assertParamExists)("detailBrokerageAuthorization","userSecret",s);const n="/authorizations/{authorizationId}".replace("{authorizationId}",encodeURIComponent(String(void 0!==t?t:"-authorizationId-"))),c=new URL(n,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!==s&&(p.userSecret=s);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:n,configuration:e,pathTemplate:"/authorizations/{authorizationId}",httpMethod:"GET"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),disableBrokerageAuthorization:(t,r,s,o={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("disableBrokerageAuthorization","authorizationId",t),(0,i.assertParamExists)("disableBrokerageAuthorization","userId",r),(0,i.assertParamExists)("disableBrokerageAuthorization","userSecret",s);const n="/authorizations/{authorizationId}/disable".replace("{authorizationId}",encodeURIComponent(String(void 0!==t?t:"-authorizationId-"))),c=new URL(n,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!==s&&(p.userSecret=s);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:n,configuration:e,pathTemplate:"/authorizations/{authorizationId}/disable",httpMethod:"POST"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),listBrokerageAuthorizations:(t,r,s={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("listBrokerageAuthorizations","userId",t),(0,i.assertParamExists)("listBrokerageAuthorizations","userSecret",r);const n="/authorizations",o=new URL(n,i.DUMMY_BASE_URL);let c;e&&(c=e.baseOptions);const u=Object.assign(Object.assign({method:"GET"},c),s),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),s.headers),(0,a.requestBeforeHook)({queryParameters:l,requestConfig:u,path:n,configuration:e,pathTemplate:"/authorizations",httpMethod:"GET"}),(0,i.setSearchParams)(o,l),{url:(0,i.toPathString)(o),options:u}})),refreshBrokerageAuthorization:(t,r,s,o={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("refreshBrokerageAuthorization","authorizationId",t),(0,i.assertParamExists)("refreshBrokerageAuthorization","userId",r),(0,i.assertParamExists)("refreshBrokerageAuthorization","userSecret",s);const n="/authorizations/{authorizationId}/refresh".replace("{authorizationId}",encodeURIComponent(String(void 0!==t?t:"-authorizationId-"))),c=new URL(n,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!==s&&(p.userSecret=s);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:n,configuration:e,pathTemplate:"/authorizations/{authorizationId}/refresh",httpMethod:"POST"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),removeBrokerageAuthorization:(t,r,s,o={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("removeBrokerageAuthorization","authorizationId",t),(0,i.assertParamExists)("removeBrokerageAuthorization","userId",r),(0,i.assertParamExists)("removeBrokerageAuthorization","userSecret",s);const n="/authorizations/{authorizationId}".replace("{authorizationId}",encodeURIComponent(String(void 0!==t?t:"-authorizationId-"))),c=new URL(n,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!==s&&(p.userSecret=s);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:n,configuration:e,pathTemplate:"/authorizations/{authorizationId}",httpMethod:"DELETE"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),sessionEvents:(t,r,s,o={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("sessionEvents","partnerClientId",t);const n="/sessionEvents",c=new URL(n,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!==s&&(p.sessionId=s);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:n,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 n(this,void 0,void 0,(function*(){const n=yield r.detailBrokerageAuthorization(t.authorizationId,t.userId,t.userSecret,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},disableBrokerageAuthorization(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.disableBrokerageAuthorization(t.authorizationId,t.userId,t.userSecret,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},listBrokerageAuthorizations(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.listBrokerageAuthorizations(t.userId,t.userSecret,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},refreshBrokerageAuthorization(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.refreshBrokerageAuthorization(t.authorizationId,t.userId,t.userSecret,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},removeBrokerageAuthorization(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.removeBrokerageAuthorization(t.authorizationId,t.userId,t.userSecret,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},sessionEvents(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.sessionEvents(t.partnerClientId,t.userId,t.sessionId,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))}}},t.ConnectionsApiFactory=function(e,r,n){const s=(0,t.ConnectionsApiFp)(e);return{detailBrokerageAuthorization:(e,t)=>s.detailBrokerageAuthorization(e,t).then((e=>e(n,r))),disableBrokerageAuthorization:(e,t)=>s.disableBrokerageAuthorization(e,t).then((e=>e(n,r))),listBrokerageAuthorizations:(e,t)=>s.listBrokerageAuthorizations(e,t).then((e=>e(n,r))),refreshBrokerageAuthorization:(e,t)=>s.refreshBrokerageAuthorization(e,t).then((e=>e(n,r))),removeBrokerageAuthorization:(e,t)=>s.removeBrokerageAuthorization(e,t).then((e=>e(n,r))),sessionEvents:(e,t)=>s.sessionEvents(e,t).then((e=>e(n,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)))}sessionEvents(e,r){return(0,t.ConnectionsApiFp)(this.configuration).sessionEvents(e,r).then((e=>e(this.axios,this.basePath)))}}t.ConnectionsApiGenerated=c},2319:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,s)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectionsApi=void 0;const i=r(9239);s(r(9239),t);class o extends i.ConnectionsApiGenerated{}t.ConnectionsApi=o},9448:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(s,i){function o(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.OptionsApiGenerated=t.OptionsApiFactory=t.OptionsApiFp=t.OptionsApiAxiosParamCreator=void 0;const s=r(1357),i=r(6479),o=r(7275),a=r(8917);t.OptionsApiAxiosParamCreator=function(e){return{getOptionStrategy:(t,r,s,o,c={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getOptionStrategy","userId",t),(0,i.assertParamExists)("getOptionStrategy","userSecret",r),(0,i.assertParamExists)("getOptionStrategy","accountId",s),(0,i.assertParamExists)("getOptionStrategy","optionsGetOptionStrategyRequest",o);const n="/accounts/{accountId}/optionStrategy".replace("{accountId}",encodeURIComponent(String(void 0!==s?s:"-accountId-"))),u=new URL(n,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 f=d&&d.headers?d.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},p),f),c.headers),(0,a.requestBeforeHook)({requestBody:o,queryParameters:h,requestConfig:l,path:n,configuration:e,pathTemplate:"/accounts/{accountId}/optionStrategy",httpMethod:"POST"}),l.data=(0,i.serializeDataIfNeeded)(o,l,e),(0,i.setSearchParams)(u,h),{url:(0,i.toPathString)(u),options:l}})),getOptionsChain:(t,r,s,o,c={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getOptionsChain","userId",t),(0,i.assertParamExists)("getOptionsChain","userSecret",r),(0,i.assertParamExists)("getOptionsChain","accountId",s),(0,i.assertParamExists)("getOptionsChain","symbol",o);const n="/accounts/{accountId}/optionsChain".replace("{accountId}",encodeURIComponent(String(void 0!==s?s:"-accountId-"))),u=new URL(n,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 f=d&&d.headers?d.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},p),f),c.headers),(0,a.requestBeforeHook)({queryParameters:h,requestConfig:l,path:n,configuration:e,pathTemplate:"/accounts/{accountId}/optionsChain",httpMethod:"GET"}),(0,i.setSearchParams)(u,h),{url:(0,i.toPathString)(u),options:l}})),getOptionsStrategyQuote:(t,r,s,o,c={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getOptionsStrategyQuote","userId",t),(0,i.assertParamExists)("getOptionsStrategyQuote","userSecret",r),(0,i.assertParamExists)("getOptionsStrategyQuote","accountId",s),(0,i.assertParamExists)("getOptionsStrategyQuote","optionStrategyId",o);const n="/accounts/{accountId}/optionStrategy/{optionStrategyId}".replace("{accountId}",encodeURIComponent(String(void 0!==s?s:"-accountId-"))).replace("{optionStrategyId}",encodeURIComponent(String(void 0!==o?o:"-optionStrategyId-"))),u=new URL(n,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 f=d&&d.headers?d.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},p),f),c.headers),(0,a.requestBeforeHook)({queryParameters:h,requestConfig:l,path:n,configuration:e,pathTemplate:"/accounts/{accountId}/optionStrategy/{optionStrategyId}",httpMethod:"GET"}),(0,i.setSearchParams)(u,h),{url:(0,i.toPathString)(u),options:l}})),listOptionHoldings:(t,r,s,o={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("listOptionHoldings","userId",t),(0,i.assertParamExists)("listOptionHoldings","userSecret",r),(0,i.assertParamExists)("listOptionHoldings","accountId",s);const n="/accounts/{accountId}/options".replace("{accountId}",encodeURIComponent(String(void 0!==s?s:"-accountId-"))),c=new URL(n,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:n,configuration:e,pathTemplate:"/accounts/{accountId}/options",httpMethod:"GET"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),placeOptionStrategy:(t,r,s,o,c,u={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("placeOptionStrategy","userId",t),(0,i.assertParamExists)("placeOptionStrategy","userSecret",r),(0,i.assertParamExists)("placeOptionStrategy","accountId",s),(0,i.assertParamExists)("placeOptionStrategy","optionStrategyId",o),(0,i.assertParamExists)("placeOptionStrategy","optionsPlaceOptionStrategyRequest",c);const n="/accounts/{accountId}/optionStrategy/{optionStrategyId}/execute".replace("{accountId}",encodeURIComponent(String(void 0!==s?s:"-accountId-"))).replace("{optionStrategyId}",encodeURIComponent(String(void 0!==o?o:"-optionStrategyId-"))),d=new URL(n,i.DUMMY_BASE_URL);let l;e&&(l=e.baseOptions);const p=Object.assign(Object.assign({method:"POST"},l),u),h=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},f={};yield(0,i.setApiKeyToObject)({object:f,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:f,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(f.userId=t),void 0!==r&&(f.userSecret=r),h["Content-Type"]="application/json";let g=l&&l.headers?l.headers:{};return p.headers=Object.assign(Object.assign(Object.assign({},h),g),u.headers),(0,a.requestBeforeHook)({requestBody:c,queryParameters:f,requestConfig:p,path:n,configuration:e,pathTemplate:"/accounts/{accountId}/optionStrategy/{optionStrategyId}/execute",httpMethod:"POST"}),p.data=(0,i.serializeDataIfNeeded)(c,p,e),(0,i.setSearchParams)(d,f),{url:(0,i.toPathString)(d),options:p}}))}},t.OptionsApiFp=function(e){const r=(0,t.OptionsApiAxiosParamCreator)(e);return{getOptionStrategy(t,a){return n(this,void 0,void 0,(function*(){const n={underlying_symbol_id:t.underlying_symbol_id,legs:t.legs,strategy_type:t.strategy_type},c=yield r.getOptionStrategy(t.userId,t.userSecret,t.accountId,n,a);return(0,i.createRequestFunction)(c,s.default,o.BASE_PATH,e)}))},getOptionsChain(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.getOptionsChain(t.userId,t.userSecret,t.accountId,t.symbol,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},getOptionsStrategyQuote(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.getOptionsStrategyQuote(t.userId,t.userSecret,t.accountId,t.optionStrategyId,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},listOptionHoldings(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.listOptionHoldings(t.userId,t.userSecret,t.accountId,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},placeOptionStrategy(t,a){return n(this,void 0,void 0,(function*(){const n={order_type:t.order_type,time_in_force:t.time_in_force,price:t.price},c=yield r.placeOptionStrategy(t.userId,t.userSecret,t.accountId,t.optionStrategyId,n,a);return(0,i.createRequestFunction)(c,s.default,o.BASE_PATH,e)}))}}},t.OptionsApiFactory=function(e,r,n){const s=(0,t.OptionsApiFp)(e);return{getOptionStrategy:(e,t)=>s.getOptionStrategy(e,t).then((e=>e(n,r))),getOptionsChain:(e,t)=>s.getOptionsChain(e,t).then((e=>e(n,r))),getOptionsStrategyQuote:(e,t)=>s.getOptionsStrategyQuote(e,t).then((e=>e(n,r))),listOptionHoldings:(e,t)=>s.listOptionHoldings(e,t).then((e=>e(n,r))),placeOptionStrategy:(e,t)=>s.placeOptionStrategy(e,t).then((e=>e(n,r)))}};class c extends o.BaseAPI{getOptionStrategy(e,r){return(0,t.OptionsApiFp)(this.configuration).getOptionStrategy(e,r).then((e=>e(this.axios,this.basePath)))}getOptionsChain(e,r){return(0,t.OptionsApiFp)(this.configuration).getOptionsChain(e,r).then((e=>e(this.axios,this.basePath)))}getOptionsStrategyQuote(e,r){return(0,t.OptionsApiFp)(this.configuration).getOptionsStrategyQuote(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)))}placeOptionStrategy(e,r){return(0,t.OptionsApiFp)(this.configuration).placeOptionStrategy(e,r).then((e=>e(this.axios,this.basePath)))}}t.OptionsApiGenerated=c},4420:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,s)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.OptionsApi=void 0;const i=r(9448);s(r(9448),t);class o extends i.OptionsApiGenerated{}t.OptionsApi=o},7342:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(s,i){function o(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.ReferenceDataApiGenerated=t.ReferenceDataApiFactory=t.ReferenceDataApiFp=t.ReferenceDataApiAxiosParamCreator=void 0;const s=r(1357),i=r(6479),o=r(7275),a=r(8917);t.ReferenceDataApiAxiosParamCreator=function(e){return{getCurrencyExchangeRatePair:(t,r={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getCurrencyExchangeRatePair","currencyPair",t);const n="/currencies/rates/{currencyPair}".replace("{currencyPair}",encodeURIComponent(String(void 0!==t?t:"-currencyPair-"))),s=new URL(n,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:n,configuration:e,pathTemplate:"/currencies/rates/{currencyPair}",httpMethod:"GET"}),(0,i.setSearchParams)(s,d),{url:(0,i.toPathString)(s),options:c}})),getPartnerInfo:(t={})=>n(this,void 0,void 0,(function*(){const r="/snapTrade/partners",n=new URL(r,i.DUMMY_BASE_URL);let s;e&&(s=e.baseOptions);const o=Object.assign(Object.assign({method:"GET"},s),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=s&&s.headers?s.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)(n,u),{url:(0,i.toPathString)(n),options:o}})),getSecurityTypes:(t={})=>n(this,void 0,void 0,(function*(){const r="/securityTypes",n=new URL(r,i.DUMMY_BASE_URL);let s;e&&(s=e.baseOptions);const o=Object.assign(Object.assign({method:"GET"},s),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=s&&s.headers?s.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)(n,u),{url:(0,i.toPathString)(n),options:o}})),getStockExchanges:(t={})=>n(this,void 0,void 0,(function*(){const r="/exchanges",n=new URL(r,i.DUMMY_BASE_URL);let s;e&&(s=e.baseOptions);const o=Object.assign(Object.assign({method:"GET"},s),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=s&&s.headers?s.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)(n,u),{url:(0,i.toPathString)(n),options:o}})),getSymbols:(t,r={})=>n(this,void 0,void 0,(function*(){const n="/symbols",s=new URL(n,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:n,configuration:e,pathTemplate:"/symbols",httpMethod:"POST"}),c.data=(0,i.serializeDataIfNeeded)(t,c,e),(0,i.setSearchParams)(s,d),{url:(0,i.toPathString)(s),options:c}})),getSymbolsByTicker:(t,r={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getSymbolsByTicker","query",t);const n="/symbols/{query}".replace("{query}",encodeURIComponent(String(void 0!==t?t:"-query-"))),s=new URL(n,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:n,configuration:e,pathTemplate:"/symbols/{query}",httpMethod:"GET"}),(0,i.setSearchParams)(s,d),{url:(0,i.toPathString)(s),options:c}})),listAllBrokerageAuthorizationType:(t,r={})=>n(this,void 0,void 0,(function*(){const n="/brokerageAuthorizationTypes",s=new URL(n,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:n,configuration:e,pathTemplate:"/brokerageAuthorizationTypes",httpMethod:"GET"}),(0,i.setSearchParams)(s,d),{url:(0,i.toPathString)(s),options:c}})),listAllBrokerages:(t={})=>n(this,void 0,void 0,(function*(){const r="/brokerages",n=new URL(r,i.DUMMY_BASE_URL);let s;e&&(s=e.baseOptions);const o=Object.assign(Object.assign({method:"GET"},s),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=s&&s.headers?s.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)(n,u),{url:(0,i.toPathString)(n),options:o}})),listAllCurrencies:(t={})=>n(this,void 0,void 0,(function*(){const r="/currencies",n=new URL(r,i.DUMMY_BASE_URL);let s;e&&(s=e.baseOptions);const o=Object.assign(Object.assign({method:"GET"},s),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=s&&s.headers?s.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)(n,u),{url:(0,i.toPathString)(n),options:o}})),listAllCurrenciesRates:(t={})=>n(this,void 0,void 0,(function*(){const r="/currencies/rates",n=new URL(r,i.DUMMY_BASE_URL);let s;e&&(s=e.baseOptions);const o=Object.assign(Object.assign({method:"GET"},s),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=s&&s.headers?s.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)(n,u),{url:(0,i.toPathString)(n),options:o}})),symbolSearchUserAccount:(t,r,s,o,c={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("symbolSearchUserAccount","userId",t),(0,i.assertParamExists)("symbolSearchUserAccount","userSecret",r),(0,i.assertParamExists)("symbolSearchUserAccount","accountId",s);const n="/accounts/{accountId}/symbols".replace("{accountId}",encodeURIComponent(String(void 0!==s?s:"-accountId-"))),u=new URL(n,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 f=d&&d.headers?d.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},p),f),c.headers),(0,a.requestBeforeHook)({requestBody:o,queryParameters:h,requestConfig:l,path:n,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 n(this,void 0,void 0,(function*(){const n=yield r.getCurrencyExchangeRatePair(t.currencyPair,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},getPartnerInfo(t){return n(this,void 0,void 0,(function*(){const n=yield r.getPartnerInfo(t);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},getSecurityTypes(t){return n(this,void 0,void 0,(function*(){const n=yield r.getSecurityTypes(t);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},getStockExchanges(t){return n(this,void 0,void 0,(function*(){const n=yield r.getStockExchanges(t);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},getSymbols(t={},a){return n(this,void 0,void 0,(function*(){const n={substring:t.substring},c=yield r.getSymbols(n,a);return(0,i.createRequestFunction)(c,s.default,o.BASE_PATH,e)}))},getSymbolsByTicker(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.getSymbolsByTicker(t.query,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},listAllBrokerageAuthorizationType(t={},a){return n(this,void 0,void 0,(function*(){const n=yield r.listAllBrokerageAuthorizationType(t.brokerage,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},listAllBrokerages(t){return n(this,void 0,void 0,(function*(){const n=yield r.listAllBrokerages(t);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},listAllCurrencies(t){return n(this,void 0,void 0,(function*(){const n=yield r.listAllCurrencies(t);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},listAllCurrenciesRates(t){return n(this,void 0,void 0,(function*(){const n=yield r.listAllCurrenciesRates(t);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},symbolSearchUserAccount(t,a){return n(this,void 0,void 0,(function*(){const n={substring:t.substring},c=yield r.symbolSearchUserAccount(t.userId,t.userSecret,t.accountId,n,a);return(0,i.createRequestFunction)(c,s.default,o.BASE_PATH,e)}))}}},t.ReferenceDataApiFactory=function(e,r,n){const s=(0,t.ReferenceDataApiFp)(e);return{getCurrencyExchangeRatePair:(e,t)=>s.getCurrencyExchangeRatePair(e,t).then((e=>e(n,r))),getPartnerInfo:e=>s.getPartnerInfo(e).then((e=>e(n,r))),getSecurityTypes:e=>s.getSecurityTypes(e).then((e=>e(n,r))),getStockExchanges:e=>s.getStockExchanges(e).then((e=>e(n,r))),getSymbols:(e={},t)=>s.getSymbols(e,t).then((e=>e(n,r))),getSymbolsByTicker:(e,t)=>s.getSymbolsByTicker(e,t).then((e=>e(n,r))),listAllBrokerageAuthorizationType:(e={},t)=>s.listAllBrokerageAuthorizationType(e,t).then((e=>e(n,r))),listAllBrokerages:e=>s.listAllBrokerages(e).then((e=>e(n,r))),listAllCurrencies:e=>s.listAllCurrencies(e).then((e=>e(n,r))),listAllCurrenciesRates:e=>s.listAllCurrenciesRates(e).then((e=>e(n,r))),symbolSearchUserAccount:(e,t)=>s.symbolSearchUserAccount(e,t).then((e=>e(n,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)))}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},502:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,s)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.ReferenceDataApi=void 0;const i=r(7342);s(r(7342),t);class o extends i.ReferenceDataApiGenerated{}t.ReferenceDataApi=o},3171:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(s,i){function o(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.TradingApiGenerated=t.TradingApiFactory=t.TradingApiFp=t.TradingApiAxiosParamCreator=void 0;const s=r(1357),i=r(6479),o=r(7275),a=r(8917);t.TradingApiAxiosParamCreator=function(e){return{cancelUserAccountOrder:(t,r,s,o,c={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("cancelUserAccountOrder","userId",t),(0,i.assertParamExists)("cancelUserAccountOrder","userSecret",r),(0,i.assertParamExists)("cancelUserAccountOrder","accountId",s),(0,i.assertParamExists)("cancelUserAccountOrder","tradingCancelUserAccountOrderRequest",o);const n="/accounts/{accountId}/orders/cancel".replace("{accountId}",encodeURIComponent(String(void 0!==s?s:"-accountId-"))),u=new URL(n,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 f=d&&d.headers?d.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},p),f),c.headers),(0,a.requestBeforeHook)({requestBody:o,queryParameters:h,requestConfig:l,path:n,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}})),getOrderImpact:(t,r,s,o={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getOrderImpact","userId",t),(0,i.assertParamExists)("getOrderImpact","userSecret",r),(0,i.assertParamExists)("getOrderImpact","manualTradeForm",s);const n="/trade/impact",c=new URL(n,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:s,queryParameters:p,requestConfig:d,path:n,configuration:e,pathTemplate:"/trade/impact",httpMethod:"POST"}),d.data=(0,i.serializeDataIfNeeded)(s,d,e),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),getUserAccountQuotes:(t,r,s,o,c,u={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getUserAccountQuotes","userId",t),(0,i.assertParamExists)("getUserAccountQuotes","userSecret",r),(0,i.assertParamExists)("getUserAccountQuotes","symbols",s),(0,i.assertParamExists)("getUserAccountQuotes","accountId",o);const n="/accounts/{accountId}/quotes".replace("{accountId}",encodeURIComponent(String(void 0!==o?o:"-accountId-"))),d=new URL(n,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}:{},f={};yield(0,i.setApiKeyToObject)({object:f,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:f,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(f.userId=t),void 0!==r&&(f.userSecret=r),void 0!==s&&(f.symbols=s),void 0!==c&&(f.use_ticker=c);let g=l&&l.headers?l.headers:{};return p.headers=Object.assign(Object.assign(Object.assign({},h),g),u.headers),(0,a.requestBeforeHook)({queryParameters:f,requestConfig:p,path:n,configuration:e,pathTemplate:"/accounts/{accountId}/quotes",httpMethod:"GET"}),(0,i.setSearchParams)(d,f),{url:(0,i.toPathString)(d),options:p}})),placeForceOrder:(t,r,s,o={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("placeForceOrder","userId",t),(0,i.assertParamExists)("placeForceOrder","userSecret",r),(0,i.assertParamExists)("placeForceOrder","manualTradeForm",s);const n="/trade/place",c=new URL(n,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:s,queryParameters:p,requestConfig:d,path:n,configuration:e,pathTemplate:"/trade/place",httpMethod:"POST"}),d.data=(0,i.serializeDataIfNeeded)(s,d,e),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),placeOrder:(t,r,s,o,c={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("placeOrder","tradeId",t),(0,i.assertParamExists)("placeOrder","userId",r),(0,i.assertParamExists)("placeOrder","userSecret",s);const n="/trade/{tradeId}".replace("{tradeId}",encodeURIComponent(String(void 0!==t?t:"-tradeId-"))),u=new URL(n,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!==s&&(h.userSecret=s),p["Content-Type"]="application/json";let f=d&&d.headers?d.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},p),f),c.headers),(0,a.requestBeforeHook)({requestBody:o,queryParameters:h,requestConfig:l,path:n,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}}))}},t.TradingApiFp=function(e){const r=(0,t.TradingApiAxiosParamCreator)(e);return{cancelUserAccountOrder(t,a){return n(this,void 0,void 0,(function*(){const n={brokerage_order_id:t.brokerage_order_id},c=yield r.cancelUserAccountOrder(t.userId,t.userSecret,t.accountId,n,a);return(0,i.createRequestFunction)(c,s.default,o.BASE_PATH,e)}))},getOrderImpact(t,a){return n(this,void 0,void 0,(function*(){const n={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,n,a);return(0,i.createRequestFunction)(c,s.default,o.BASE_PATH,e)}))},getUserAccountQuotes(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.getUserAccountQuotes(t.userId,t.userSecret,t.symbols,t.accountId,t.useTicker,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},placeForceOrder(t,a){return n(this,void 0,void 0,(function*(){const n={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.placeForceOrder(t.userId,t.userSecret,n,a);return(0,i.createRequestFunction)(c,s.default,o.BASE_PATH,e)}))},placeOrder(t,a){return n(this,void 0,void 0,(function*(){const n={wait_to_confirm:t.wait_to_confirm},c=yield r.placeOrder(t.tradeId,t.userId,t.userSecret,n,a);return(0,i.createRequestFunction)(c,s.default,o.BASE_PATH,e)}))}}},t.TradingApiFactory=function(e,r,n){const s=(0,t.TradingApiFp)(e);return{cancelUserAccountOrder:(e,t)=>s.cancelUserAccountOrder(e,t).then((e=>e(n,r))),getOrderImpact:(e,t)=>s.getOrderImpact(e,t).then((e=>e(n,r))),getUserAccountQuotes:(e,t)=>s.getUserAccountQuotes(e,t).then((e=>e(n,r))),placeForceOrder:(e,t)=>s.placeForceOrder(e,t).then((e=>e(n,r))),placeOrder:(e,t)=>s.placeOrder(e,t).then((e=>e(n,r)))}};class c extends o.BaseAPI{cancelUserAccountOrder(e,r){return(0,t.TradingApiFp)(this.configuration).cancelUserAccountOrder(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)))}placeForceOrder(e,r){return(0,t.TradingApiFp)(this.configuration).placeForceOrder(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)))}}t.TradingApiGenerated=c},9819:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,s)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.TradingApi=void 0;const i=r(3171);s(r(3171),t);class o extends i.TradingApiGenerated{}t.TradingApi=o},288:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(s,i){function o(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.TransactionsAndReportingApiGenerated=t.TransactionsAndReportingApiFactory=t.TransactionsAndReportingApiFp=t.TransactionsAndReportingApiAxiosParamCreator=void 0;const s=r(1357),i=r(6479),o=r(7275),a=r(8917);t.TransactionsAndReportingApiAxiosParamCreator=function(e){return{getActivities:(t,r,s,o,c,u,d,l={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getActivities","userId",t),(0,i.assertParamExists)("getActivities","userSecret",r);const n="/activities",p=new URL(n,i.DUMMY_BASE_URL);let h;e&&(h=e.baseOptions);const f=Object.assign(Object.assign({method:"GET"},h),l),g=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:g,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:y,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==s&&(y.startDate=s instanceof Date?s.toISOString().substr(0,10):s),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 f.headers=Object.assign(Object.assign(Object.assign({},g),m),l.headers),(0,a.requestBeforeHook)({queryParameters:y,requestConfig:f,path:n,configuration:e,pathTemplate:"/activities",httpMethod:"GET"}),(0,i.setSearchParams)(p,y),{url:(0,i.toPathString)(p),options:f}})),getReportingCustomRange:(t,r,s,o,c,u,d,l={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getReportingCustomRange","startDate",t),(0,i.assertParamExists)("getReportingCustomRange","endDate",r),(0,i.assertParamExists)("getReportingCustomRange","userId",s),(0,i.assertParamExists)("getReportingCustomRange","userSecret",o);const n="/performance/custom",p=new URL(n,i.DUMMY_BASE_URL);let h;e&&(h=e.baseOptions);const f=Object.assign(Object.assign({method:"GET"},h),l),g=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:g,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!==s&&(y.userId=s),void 0!==o&&(y.userSecret=o);let m=h&&h.headers?h.headers:{};return f.headers=Object.assign(Object.assign(Object.assign({},g),m),l.headers),(0,a.requestBeforeHook)({queryParameters:y,requestConfig:f,path:n,configuration:e,pathTemplate:"/performance/custom",httpMethod:"GET"}),(0,i.setSearchParams)(p,y),{url:(0,i.toPathString)(p),options:f}}))}},t.TransactionsAndReportingApiFp=function(e){const r=(0,t.TransactionsAndReportingApiAxiosParamCreator)(e);return{getActivities(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.getActivities(t.userId,t.userSecret,t.startDate,t.endDate,t.accounts,t.brokerageAuthorizations,t.type,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},getReportingCustomRange(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.getReportingCustomRange(t.startDate,t.endDate,t.userId,t.userSecret,t.accounts,t.detailed,t.frequency,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))}}},t.TransactionsAndReportingApiFactory=function(e,r,n){const s=(0,t.TransactionsAndReportingApiFp)(e);return{getActivities:(e,t)=>s.getActivities(e,t).then((e=>e(n,r))),getReportingCustomRange:(e,t)=>s.getReportingCustomRange(e,t).then((e=>e(n,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},9900:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,s)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.TransactionsAndReportingApi=void 0;const i=r(288);s(r(288),t);class o extends i.TransactionsAndReportingApiGenerated{}t.TransactionsAndReportingApi=o},7275:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RequiredError=t.BaseAPI=t.COLLECTION_FORMATS=t.BASE_PATH=void 0;const n=r(1357);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,s=n.default){this.basePath=r,this.axios=s,e&&(this.configuration=e,this.basePath=e.basePath||this.basePath)}};class s extends Error{constructor(e,t){super(t),this.field=e,this.name="RequiredError"}}t.RequiredError=s},4085:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SnaptradeCustom=void 0,t.SnaptradeCustom=class{constructor(e){}}},9009:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Snaptrade=void 0;const n=r(3708),s=r(4438),i=r(4085);class o extends i.SnaptradeCustom{constructor(e={}){super(e);const t=new s.Configuration(e);this.accountInformation=new n.AccountInformationApi(t),this.apiStatus=new n.ApiStatusApi(t),this.authentication=new n.AuthenticationApi(t),this.connections=new n.ConnectionsApi(t),this.options=new n.OptionsApi(t),this.referenceData=new n.ReferenceDataApi(t),this.trading=new n.TradingApi(t),this.transactionsAndReporting=new n.TransactionsAndReportingApi(t)}}t.Snaptrade=o},6479:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(s,i){function o(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((n=n.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 s=r(7275),i=r(1357),o=r(4700),a=r(6642),c=r(7270);function u(e,t,r=""){"object"==typeof t?Array.isArray(t)?t.forEach((t=>u(e,t,r))):Object.keys(t).forEach((n=>u(e,t[n],`${r}${""!==r?".":""}${n}`))):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 s.RequiredError(t,`Required parameter ${t} was null or undefined when calling ${e}.`)},t.setApiKeyToObject=function({object:e,key:t,type:r,keyParamName:s,configuration:i,prefix:o}){return n(this,void 0,void 0,(function*(){t=t||s;let n=null;if(i&&i.apiKey)if("function"==typeof i.apiKey)n=yield i.apiKey(s);else if("string"==typeof i.apiKey)n=i.apiKey;else{if("object"!=typeof i.apiKey)throw Error(`Unexpected type ${typeof i.apiKey} for Configuration.apiKey`);s in i.apiKey&&(n=i.apiKey[s])}n&&(e[t]=void 0!==o?`${o}${n}`:n,"Cookie"===r&&(e[t]=`${s}=${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 n(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 n="string"!=typeof e;return(n&&r&&r.isJsonMime?r.isJsonMime(t.headers["Content-Type"]):n)?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,s){return(u=t,d=r)=>n(this,void 0,void 0,(function*(){(0,a.requestBeforeUrlHook)({axiosArgs:e,basePath:d,configuration:s});const t=((null==s?void 0:s.basePath)||d)+e.url;return yield(0,o.requestAfterHook)({axiosArgs:e,basePath:d,url:t,configuration:s}),function(e){var t,r,s,o,a;return n(this,void 0,void 0,(function*(){try{return yield e()}catch(e){if(e instanceof i.AxiosError&&e.isAxiosError)try{const n=(null===(t=e.response)||void 0===t?void 0:t.data)instanceof ReadableStream?yield(0,c.readableStreamToString)(e.response.data):null===(r=e.response)||void 0===r?void 0:r.data;throw new c.SnaptradeError(e,(0,c.parseIfJson)(n),null===(s=e.response)||void 0===s?void 0:s.headers)}catch(t){if(t instanceof ReferenceError)throw new c.SnaptradeError(e,null===(o=e.response)||void 0===o?void 0:o.data,null===(a=e.response)||void 0===a?void 0:a.headers);if(t instanceof c.SnaptradeError)throw t;throw e}throw e}}))}((()=>n(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}},4438:(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.42/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())}}},7270:function(e,t){"use strict";var r=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(s,i){function o(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.parseIfJson=t.readableStreamToString=t.SnaptradeError=void 0;class n extends Error{constructor(e,t,r){var n,s,i,o,a;super(e.message+"\nRESPONSE HEADERS:\n"+JSON.stringify(r,null,2)),this.name="SnaptradeError",this.code=e.code,this.method=null===(s=null===(n=e.config)||void 0===n?void 0:n.method)||void 0===s?void 0:s.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=n,t.readableStreamToString=function(e){return r(this,void 0,void 0,(function*(){const t=new TextDecoder,r=e.getReader();let n="";try{for(;;){const{done:e,value:s}=yield r.read();if(e)break;n+=t.decode(s,{stream:!0})}}finally{r.releaseLock()}return n}))},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}}},2316:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,s)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),s(r(3708),t),s(r(4438),t),s(r(8659),t),s(r(9009),t),s(r(7270),t)},8358:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9409:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},423:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3477:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8898:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8262:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6392:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2867:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9847:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1289:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3376:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2935:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3433:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7055:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8083:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8552:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8827:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3421:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7704:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},967:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6420:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1763:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},414:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9188:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},680:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},457:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3045:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3403:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2113:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8142:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5542:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8234:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8659:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,s)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),s(r(3376),t),s(r(9409),t),s(r(8358),t),s(r(3477),t),s(r(423),t),s(r(2867),t),s(r(8898),t),s(r(8262),t),s(r(6392),t),s(r(9847),t),s(r(1289),t),s(r(2935),t),s(r(3433),t),s(r(8083),t),s(r(7055),t),s(r(1763),t),s(r(967),t),s(r(8552),t),s(r(8827),t),s(r(7704),t),s(r(3421),t),s(r(6420),t),s(r(414),t),s(r(9188),t),s(r(680),t),s(r(457),t),s(r(3403),t),s(r(3045),t),s(r(8142),t),s(r(2113),t),s(r(5542),t),s(r(8234),t),s(r(6760),t),s(r(3146),t),s(r(5577),t),s(r(9143),t),s(r(7565),t),s(r(2158),t),s(r(993),t),s(r(9123),t),s(r(3826),t),s(r(2633),t),s(r(8752),t),s(r(9571),t),s(r(6195),t),s(r(1720),t),s(r(7742),t),s(r(831),t),s(r(7871),t),s(r(7446),t),s(r(5718),t),s(r(8707),t),s(r(4948),t),s(r(8159),t),s(r(3647),t),s(r(4189),t),s(r(8407),t),s(r(7170),t),s(r(3015),t),s(r(9416),t),s(r(1811),t),s(r(765),t),s(r(4609),t),s(r(2270),t),s(r(7120),t),s(r(1942),t),s(r(5583),t),s(r(7109),t),s(r(4984),t),s(r(2353),t),s(r(510),t),s(r(9494),t),s(r(9935),t),s(r(9098),t),s(r(5535),t),s(r(3115),t),s(r(6121),t),s(r(8793),t),s(r(8082),t),s(r(2015),t),s(r(8365),t),s(r(5959),t),s(r(3371),t),s(r(9637),t),s(r(2619),t),s(r(6342),t),s(r(8467),t),s(r(1918),t),s(r(3050),t),s(r(6261),t),s(r(54),t),s(r(1553),t),s(r(6903),t),s(r(8086),t),s(r(8646),t),s(r(4996),t),s(r(7899),t),s(r(7351),t),s(r(5867),t),s(r(4264),t),s(r(2659),t)},6760:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5577:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9143:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2158:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7565:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},993:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9123:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3146:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3826:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2633:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8752:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9571:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6195:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1720:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7742:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},831:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7871:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7446:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5718:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8707:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4948:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4189:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3647:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8159:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8407:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3015:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7170:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9416:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1811:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4609:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},765:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2270:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7120:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1942:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5583:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7109:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2353:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4984:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},510:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9494:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9935:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9098:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5535:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3115:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6121:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8793:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2015:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8082:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8365:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3371:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9637:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2619:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6342:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5959:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8467:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1918:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3050:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6261:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6903:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8086:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1553:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4996:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7899:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7351:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8646:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5867:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4264:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},54:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2659:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4700:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(s,i){function o(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.requestAfterHook=void 0,t.requestAfterHook=function(e){return n(this,void 0,void 0,(function*(){const{configuration:t,basePath:s,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(s,"").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 f=yield function(e,t){return n(this,void 0,void 0,(function*(){if("undefined"!=typeof process&&process.versions&&process.versions.node){const n=r(2349).createHmac("sha256",t);return n.update(e),n.digest("base64")}{const r=new TextEncoder,n=r.encode(t),s=r.encode(e),i=yield window.crypto.subtle.importKey("raw",n,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),o=yield window.crypto.subtle.sign("HMAC",i,s),a=Array.from(new Uint8Array(o));return btoa(String.fromCharCode.apply(null,a))}}))}(d,a);i.options.headers&&(i.options.headers.Signature=f)}))}},8917:(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()}},6642:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.requestBeforeUrlHook=void 0,t.requestBeforeUrlHook=function(e){}},2349:()=>{},1357:(e,t,r)=>{"use strict";function n(e,t){return function(){return e.apply(t,arguments)}}const{toString:s}=Object.prototype,{getPrototypeOf:i}=Object,o=(a=Object.create(null),e=>{const t=s.call(e);return a[t]||(a[t]=t.slice(8,-1).toLowerCase())});var a;const c=e=>(e=e.toLowerCase(),t=>o(t)===e),u=e=>t=>typeof t===e,{isArray:d}=Array,l=u("undefined"),p=c("ArrayBuffer"),h=u("string"),f=u("function"),g=u("number"),y=e=>null!==e&&"object"==typeof e,m=e=>{if("object"!==o(e))return!1;const t=i(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},b=c("Date"),A=c("File"),O=c("Blob"),P=c("FileList"),j=c("URLSearchParams"),[v,S,_,T]=["ReadableStream","Request","Response","Headers"].map(c);function E(e,t,{allOwnKeys:r=!1}={}){if(null==e)return;let n,s;if("object"!=typeof e&&(e=[e]),d(e))for(n=0,s=e.length;n<s;n++)t.call(null,e[n],n,e);else{const s=r?Object.getOwnPropertyNames(e):Object.keys(e),i=s.length;let o;for(n=0;n<i;n++)o=s[n],t.call(null,e[o],o,e)}}function k(e,t){t=t.toLowerCase();const r=Object.keys(e);let n,s=r.length;for(;s-- >0;)if(n=r[s],t===n.toLowerCase())return n;return null}const U="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:r.g,I=e=>!l(e)&&e!==U,w=(R="undefined"!=typeof Uint8Array&&i(Uint8Array),e=>R&&e instanceof R);var R;const B=c("HTMLFormElement"),x=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),M=c("RegExp"),C=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};E(r,((r,s)=>{let i;!1!==(i=t(r,s,e))&&(n[s]=i||r)})),Object.defineProperties(e,n)},q="abcdefghijklmnopqrstuvwxyz",N="0123456789",F={DIGIT:N,ALPHA:q,ALPHA_DIGIT:q+q.toUpperCase()+N},D=c("AsyncFunction"),L=(K="function"==typeof setImmediate,H=f(U.postMessage),K?setImmediate:H?(z=`axios@${Math.random()}`,G=[],U.addEventListener("message",(({source:e,data:t})=>{e===U&&t===z&&G.length&&G.shift()()}),!1),e=>{G.push(e),U.postMessage(z,"*")}):e=>setTimeout(e));var K,H,z,G;const Y="undefined"!=typeof queueMicrotask?queueMicrotask.bind(U):"undefined"!=typeof process&&process.nextTick||L;var J={isArray:d,isArrayBuffer:p,isBuffer:function(e){return null!==e&&!l(e)&&null!==e.constructor&&!l(e.constructor)&&f(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||f(e.append)&&("formdata"===(t=o(e))||"object"===t&&f(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&p(e.buffer),t},isString:h,isNumber:g,isBoolean:e=>!0===e||!1===e,isObject:y,isPlainObject:m,isReadableStream:v,isRequest:S,isResponse:_,isHeaders:T,isUndefined:l,isDate:b,isFile:A,isBlob:O,isRegExp:M,isFunction:f,isStream:e=>y(e)&&f(e.pipe),isURLSearchParams:j,isTypedArray:w,isFileList:P,forEach:E,merge:function e(){const{caseless:t}=I(this)&&this||{},r={},n=(n,s)=>{const i=t&&k(r,s)||s;m(r[i])&&m(n)?r[i]=e(r[i],n):m(n)?r[i]=e({},n):d(n)?r[i]=n.slice():r[i]=n};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&E(arguments[e],n);return r},extend:(e,t,r,{allOwnKeys:s}={})=>(E(t,((t,s)=>{r&&f(t)?e[s]=n(t,r):e[s]=t}),{allOwnKeys:s}),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,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,n)=>{let s,o,a;const c={};if(t=t||{},null==e)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)a=s[o],n&&!n(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:o,kindOfTest:c,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return-1!==n&&n===r},toArray:e=>{if(!e)return null;if(d(e))return e;let t=e.length;if(!g(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=r.next())&&!n.done;){const r=n.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>{let r;const n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:B,hasOwnProperty:x,hasOwnProp:x,reduceDescriptors:C,freezeMethods:e=>{C(e,((t,r)=>{if(f(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=e[r];f(n)&&(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={},n=e=>{e.forEach((e=>{r[e]=!0}))};return d(e)?n(e):n(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:k,global:U,isContextDefined:I,ALPHABET:F,generateString:(e=16,t=F.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r},isSpecCompliantForm:function(e){return!!(e&&f(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),r=(e,n)=>{if(y(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[n]=e;const s=d(e)?[]:{};return E(e,((e,t)=>{const i=r(e,n+1);!l(i)&&(s[t]=i)})),t[n]=void 0,s}}return e};return r(e,0)},isAsyncFn:D,isThenable:e=>e&&(y(e)||f(e))&&f(e.then)&&f(e.catch),setImmediate:L,asap:Y};function $(e,t,r,n,s){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),n&&(this.request=n),s&&(this.response=s)}J.inherits($,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:J.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Q=$.prototype,V={};function W(e){return J.isPlainObject(e)||J.isArray(e)}function X(e){return J.endsWith(e,"[]")?e.slice(0,-2):e}function Z(e,t,r){return e?e.concat(t).map((function(e,t){return e=X(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=>{V[e]={value:e}})),Object.defineProperties($,V),Object.defineProperty(Q,"isAxiosError",{value:!0}),$.from=(e,t,r,n,s,i)=>{const o=Object.create(Q);return J.toFlatObject(e,o,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),$.call(o,e.message,t,r,n,s),o.cause=e,o.name=e.name,i&&Object.assign(o,i),o};const ee=J.toFlatObject(J,{},null,(function(e){return/^is[A-Z]/.test(e)}));function te(e,t,r){if(!J.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const n=(r=J.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!J.isUndefined(t[e])}))).metaTokens,s=r.visitor||u,i=r.dots,o=r.indexes,a=(r.Blob||"undefined"!=typeof Blob&&Blob)&&J.isSpecCompliantForm(t);if(!J.isFunction(s))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(J.isDate(e))return e.toISOString();if(!a&&J.isBlob(e))throw new $("Blob is not supported. Use a Buffer instead.");return J.isArrayBuffer(e)||J.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,r,s){let a=e;if(e&&!s&&"object"==typeof e)if(J.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else if(J.isArray(e)&&function(e){return J.isArray(e)&&!e.some(W)}(e)||(J.isFileList(e)||J.endsWith(r,"[]"))&&(a=J.toArray(e)))return r=X(r),a.forEach((function(e,n){!J.isUndefined(e)&&null!==e&&t.append(!0===o?Z([r],n,i):null===o?r:r+"[]",c(e))})),!1;return!!W(e)||(t.append(Z(s,r,i),c(e)),!1)}const d=[],l=Object.assign(ee,{defaultVisitor:u,convertValue:c,isVisitable:W});if(!J.isObject(e))throw new TypeError("data must be an object");return function e(r,n){if(!J.isUndefined(r)){if(-1!==d.indexOf(r))throw Error("Circular reference detected in "+n.join("."));d.push(r),J.forEach(r,(function(r,i){!0===(!(J.isUndefined(r)||null===r)&&s.call(t,r,J.isString(i)?i.trim():i,n,l))&&e(r,n?n.concat(i):[i])})),d.pop()}}(e),t}function re(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function ne(e,t){this._pairs=[],e&&te(e,this,t)}const se=ne.prototype;function ie(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function oe(e,t,r){if(!t)return e;const n=r&&r.encode||ie,s=r&&r.serialize;let i;if(i=s?s(t,r):J.isURLSearchParams(t)?t.toString():new ne(t,r).toString(n),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,re)}:re;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var ae=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){J.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},ce={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ue={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:ne,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const de="undefined"!=typeof window&&"undefined"!=typeof document,le=(pe="undefined"!=typeof navigator&&navigator.product,de&&["ReactNative","NativeScript","NS"].indexOf(pe)<0);var pe;const he="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,fe=de&&window.location.href||"http://localhost";var ge={...Object.freeze({__proto__:null,hasBrowserEnv:de,hasStandardBrowserWebWorkerEnv:he,hasStandardBrowserEnv:le,origin:fe}),...ue};function ye(e){function t(e,r,n,s){let i=e[s++];if("__proto__"===i)return!0;const o=Number.isFinite(+i),a=s>=e.length;return i=!i&&J.isArray(n)?n.length:i,a?(J.hasOwnProp(n,i)?n[i]=[n[i],r]:n[i]=r,!o):(n[i]&&J.isObject(n[i])||(n[i]=[]),t(e,r,n[i],s)&&J.isArray(n[i])&&(n[i]=function(e){const t={},r=Object.keys(e);let n;const s=r.length;let i;for(n=0;n<s;n++)i=r[n],t[i]=e[i];return t}(n[i])),!o)}if(J.isFormData(e)&&J.isFunction(e.entries)){const r={};return J.forEachEntry(e,((e,n)=>{t(function(e){return J.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),n,r,0)})),r}return null}const me={transitional:ce,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,s=J.isObject(e);if(s&&J.isHTMLForm(e)&&(e=new FormData(e)),J.isFormData(e))return n?JSON.stringify(ye(e)):e;if(J.isArrayBuffer(e)||J.isBuffer(e)||J.isStream(e)||J.isFile(e)||J.isBlob(e)||J.isReadableStream(e))return e;if(J.isArrayBufferView(e))return e.buffer;if(J.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return te(e,new ge.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,n){return ge.isNode&&J.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=J.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return te(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return s||n?(t.setContentType("application/json",!1),function(e){if(J.isString(e))try{return(0,JSON.parse)(e),J.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||me.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(J.isResponse(e)||J.isReadableStream(e))return e;if(e&&J.isString(e)&&(r&&!this.responseType||n)){const r=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(e){if(r){if("SyntaxError"===e.name)throw $.from(e,$.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}}};J.forEach(["delete","get","head","post","put","patch"],(e=>{me.headers[e]={}}));var be=me;const Ae=J.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 Pe(e){return e&&String(e).trim().toLowerCase()}function je(e){return!1===e||null==e?e:J.isArray(e)?e.map(je):String(e)}function ve(e,t,r,n,s){return J.isFunction(n)?n.call(this,t,r):(s&&(t=r),J.isString(t)?J.isString(n)?-1!==t.indexOf(n):J.isRegExp(n)?n.test(t):void 0:void 0)}class Se{constructor(e){e&&this.set(e)}set(e,t,r){const n=this;function s(e,t,r){const s=Pe(t);if(!s)throw new Error("header name must be a non-empty string");const i=J.findKey(n,s);(!i||void 0===n[i]||!0===r||void 0===r&&!1!==n[i])&&(n[i||t]=je(e))}const i=(e,t)=>J.forEach(e,((e,r)=>s(e,r,t)));if(J.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(J.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let r,n,s;return e&&e.split("\n").forEach((function(e){s=e.indexOf(":"),r=e.substring(0,s).trim().toLowerCase(),n=e.substring(s+1).trim(),!r||t[r]&&Ae[r]||("set-cookie"===r?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)})),t})(e),t);else if(J.isHeaders(e))for(const[t,n]of e.entries())s(n,t,r);else null!=e&&s(t,e,r);return this}get(e,t){if(e=Pe(e)){const r=J.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 n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}(e);if(J.isFunction(t))return t.call(this,e,r);if(J.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Pe(e)){const r=J.findKey(this,e);return!(!r||void 0===this[r]||t&&!ve(0,this[r],r,t))}return!1}delete(e,t){const r=this;let n=!1;function s(e){if(e=Pe(e)){const s=J.findKey(r,e);!s||t&&!ve(0,r[s],s,t)||(delete r[s],n=!0)}}return J.isArray(e)?e.forEach(s):s(e),n}clear(e){const t=Object.keys(this);let r=t.length,n=!1;for(;r--;){const s=t[r];e&&!ve(0,this[s],s,e,!0)||(delete this[s],n=!0)}return n}normalize(e){const t=this,r={};return J.forEach(this,((n,s)=>{const i=J.findKey(r,s);if(i)return t[i]=je(n),void delete t[s];const o=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,r)=>t.toUpperCase()+r))}(s):String(s).trim();o!==s&&delete t[s],t[o]=je(n),r[o]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return J.forEach(this,((r,n)=>{null!=r&&!1!==r&&(t[n]=e&&J.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")}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 n(e){const n=Pe(e);t[n]||(function(e,t){const r=J.toCamelCase(" "+t);["get","set","has"].forEach((n=>{Object.defineProperty(e,n+r,{value:function(e,r,s){return this[n].call(this,t,e,r,s)},configurable:!0})}))}(r,e),t[n]=!0)}return J.isArray(e)?e.forEach(n):n(e),this}}Se.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),J.reduceDescriptors(Se.prototype,(({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}})),J.freezeMethods(Se);var _e=Se;function Te(e,t){const r=this||be,n=t||r,s=_e.from(n.headers);let i=n.data;return J.forEach(e,(function(e){i=e.call(r,i,s.normalize(),t?t.status:void 0)})),s.normalize(),i}function Ee(e){return!(!e||!e.__CANCEL__)}function ke(e,t,r){$.call(this,null==e?"canceled":e,$.ERR_CANCELED,t,r),this.name="CanceledError"}function Ue(e,t,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new $("Request failed with status code "+r.status,[$.ERR_BAD_REQUEST,$.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}J.inherits(ke,$,{__CANCEL__:!0});const Ie=(e,t,r=3)=>{let n=0;const s=function(e,t){e=e||10;const r=new Array(e),n=new Array(e);let s,i=0,o=0;return t=void 0!==t?t:1e3,function(a){const c=Date.now(),u=n[o];s||(s=c),r[i]=a,n[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-s<t)return;const p=u&&c-u;return p?Math.round(1e3*l/p):void 0}}(50,250);return function(e,t){let r,n,s=0,i=1e3/t;const o=(t,i=Date.now())=>{s=i,r=null,n&&(clearTimeout(n),n=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),a=t-s;a>=i?o(e,t):(r=e,n||(n=setTimeout((()=>{n=null,o(r)}),i-a)))},()=>r&&o(r)]}((r=>{const i=r.loaded,o=r.lengthComputable?r.total:void 0,a=i-n,c=s(a);n=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)},we=(e,t)=>{const r=null!=e;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Re=e=>(...t)=>J.asap((()=>e(...t)));var Be=ge.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let r;function n(r){let n=r;return e&&(t.setAttribute("href",n),n=t.href),t.setAttribute("href",n),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return r=n(window.location.href),function(e){const t=J.isString(e)?n(e):e;return t.protocol===r.protocol&&t.host===r.host}}():function(){return!0},xe=ge.hasStandardBrowserEnv?{write(e,t,r,n,s,i){const o=[e+"="+encodeURIComponent(t)];J.isNumber(r)&&o.push("expires="+new Date(r).toGMTString()),J.isString(n)&&o.push("path="+n),J.isString(s)&&o.push("domain="+s),!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 Me(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Ce=e=>e instanceof _e?{...e}:e;function qe(e,t){t=t||{};const r={};function n(e,t,r){return J.isPlainObject(e)&&J.isPlainObject(t)?J.merge.call({caseless:r},e,t):J.isPlainObject(t)?J.merge({},t):J.isArray(t)?t.slice():t}function s(e,t,r){return J.isUndefined(t)?J.isUndefined(e)?void 0:n(void 0,e,r):n(e,t,r)}function i(e,t){if(!J.isUndefined(t))return n(void 0,t)}function o(e,t){return J.isUndefined(t)?J.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function a(r,s,i){return i in t?n(r,s):i in e?n(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)=>s(Ce(e),Ce(t),!0)};return J.forEach(Object.keys(Object.assign({},e,t)),(function(n){const i=c[n]||s,o=i(e[n],t[n],n);J.isUndefined(o)&&i!==a||(r[n]=o)})),r}var Ne=e=>{const t=qe({},e);let r,{data:n,withXSRFToken:s,xsrfHeaderName:i,xsrfCookieName:o,headers:a,auth:c}=t;if(t.headers=a=_e.from(a),t.url=oe(Me(t.baseURL,t.url),e.params,e.paramsSerializer),c&&a.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),J.isFormData(n))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&&(s&&J.isFunction(s)&&(s=s(t)),s||!1!==s&&Be(t.url))){const e=i&&o&&xe.read(o);e&&a.set(i,e)}return t},Fe="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,r){const n=Ne(e);let s=n.data;const i=_e.from(n.headers).normalize();let o,a,c,u,d,{responseType:l,onUploadProgress:p,onDownloadProgress:h}=n;function f(){u&&u(),d&&d(),n.cancelToken&&n.cancelToken.unsubscribe(o),n.signal&&n.signal.removeEventListener("abort",o)}let g=new XMLHttpRequest;function y(){if(!g)return;const n=_e.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders());Ue((function(e){t(e),f()}),(function(e){r(e),f()}),{data:l&&"text"!==l&&"json"!==l?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:n,config:e,request:g}),g=null}g.open(n.method.toUpperCase(),n.url,!0),g.timeout=n.timeout,"onloadend"in g?g.onloadend=y:g.onreadystatechange=function(){g&&4===g.readyState&&(0!==g.status||g.responseURL&&0===g.responseURL.indexOf("file:"))&&setTimeout(y)},g.onabort=function(){g&&(r(new $("Request aborted",$.ECONNABORTED,e,g)),g=null)},g.onerror=function(){r(new $("Network Error",$.ERR_NETWORK,e,g)),g=null},g.ontimeout=function(){let t=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const s=n.transitional||ce;n.timeoutErrorMessage&&(t=n.timeoutErrorMessage),r(new $(t,s.clarifyTimeoutError?$.ETIMEDOUT:$.ECONNABORTED,e,g)),g=null},void 0===s&&i.setContentType(null),"setRequestHeader"in g&&J.forEach(i.toJSON(),(function(e,t){g.setRequestHeader(t,e)})),J.isUndefined(n.withCredentials)||(g.withCredentials=!!n.withCredentials),l&&"json"!==l&&(g.responseType=n.responseType),h&&([c,d]=Ie(h,!0),g.addEventListener("progress",c)),p&&g.upload&&([a,u]=Ie(p),g.upload.addEventListener("progress",a),g.upload.addEventListener("loadend",u)),(n.cancelToken||n.signal)&&(o=t=>{g&&(r(!t||t.type?new ke(null,e,g):t),g.abort(),g=null)},n.cancelToken&&n.cancelToken.subscribe(o),n.signal&&(n.signal.aborted?o():n.signal.addEventListener("abort",o)));const m=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(n.url);m&&-1===ge.protocols.indexOf(m)?r(new $("Unsupported protocol "+m+":",$.ERR_BAD_REQUEST,e)):g.send(s||null)}))},De=(e,t)=>{let r,n=new AbortController;const s=function(e){if(!r){r=!0,o();const t=e instanceof Error?e:this.reason;n.abort(t instanceof $?t:new ke(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{s(new $(`timeout ${t} of ms exceeded`,$.ETIMEDOUT))}),t);const o=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach((e=>{e&&(e.removeEventListener?e.removeEventListener("abort",s):e.unsubscribe(s))})),e=null)};e.forEach((e=>e&&e.addEventListener&&e.addEventListener("abort",s)));const{signal:a}=n;return a.unsubscribe=o,[a,()=>{i&&clearTimeout(i),i=null}]};const Le=function*(e,t){let r=e.byteLength;if(!t||r<t)return void(yield e);let n,s=0;for(;s<r;)n=s+t,yield e.slice(s,n),s=n},Ke=(e,t,r,n,s)=>{const i=async function*(e,t,r){for await(const n of e)yield*Le(ArrayBuffer.isView(n)?n:await r(String(n)),t)}(e,t,s);let o,a=0,c=e=>{o||(o=!0,n&&n(e))};return new ReadableStream({async pull(e){try{const{done:t,value:n}=await i.next();if(t)return c(),void e.close();let s=n.byteLength;if(r){let e=a+=s;r(e)}e.enqueue(new Uint8Array(n))}catch(e){throw c(e),e}},cancel:e=>(c(e),i.return())},{highWaterMark:2})},He="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,ze=He&&"function"==typeof ReadableStream,Ge=He&&("function"==typeof TextEncoder?(Ye=new TextEncoder,e=>Ye.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var Ye;const Je=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},$e=ze&&Je((()=>{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})),Qe=ze&&Je((()=>J.isReadableStream(new Response("").body))),Ve={stream:Qe&&(e=>e.body)};var We;He&&(We=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!Ve[e]&&(Ve[e]=J.isFunction(We[e])?t=>t[e]():(t,r)=>{throw new $(`Response type '${e}' is not supported`,$.ERR_NOT_SUPPORT,r)})})));const Xe={http:null,xhr:Fe,fetch:He&&(async e=>{let{url:t,method:r,data:n,signal:s,cancelToken:i,timeout:o,onDownloadProgress:a,onUploadProgress:c,responseType:u,headers:d,withCredentials:l="same-origin",fetchOptions:p}=Ne(e);u=u?(u+"").toLowerCase():"text";let h,f,[g,y]=s||i||o?De([s,i],o):[];const m=()=>{!h&&setTimeout((()=>{g&&g.unsubscribe()})),h=!0};let b;try{if(c&&$e&&"get"!==r&&"head"!==r&&0!==(b=await(async(e,t)=>{const r=J.toFiniteNumber(e.getContentLength());return null==r?(async e=>null==e?0:J.isBlob(e)?e.size:J.isSpecCompliantForm(e)?(await new Request(e).arrayBuffer()).byteLength:J.isArrayBufferView(e)||J.isArrayBuffer(e)?e.byteLength:(J.isURLSearchParams(e)&&(e+=""),J.isString(e)?(await Ge(e)).byteLength:void 0))(t):r})(d,n))){let e,r=new Request(t,{method:"POST",body:n,duplex:"half"});if(J.isFormData(n)&&(e=r.headers.get("content-type"))&&d.setContentType(e),r.body){const[e,t]=we(b,Ie(Re(c)));n=Ke(r.body,65536,e,t,Ge)}}J.isString(l)||(l=l?"include":"omit"),f=new Request(t,{...p,signal:g,method:r.toUpperCase(),headers:d.normalize().toJSON(),body:n,duplex:"half",credentials:l});let s=await fetch(f);const i=Qe&&("stream"===u||"response"===u);if(Qe&&(a||i)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=s[t]}));const t=J.toFiniteNumber(s.headers.get("content-length")),[r,n]=a&&we(t,Ie(Re(a),!0))||[];s=new Response(Ke(s.body,65536,r,(()=>{n&&n(),i&&m()}),Ge),e)}u=u||"text";let o=await Ve[J.findKey(Ve,u)||"text"](s,e);return!i&&m(),y&&y(),await new Promise(((t,r)=>{Ue(t,r,{data:o,headers:_e.from(s.headers),status:s.status,statusText:s.statusText,config:e,request:f})}))}catch(t){if(m(),t&&"TypeError"===t.name&&/fetch/i.test(t.message))throw Object.assign(new $("Network Error",$.ERR_NETWORK,e,f),{cause:t.cause||t});throw $.from(t,t&&t.code,e,f)}})};J.forEach(Xe,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const Ze=e=>`- ${e}`,et=e=>J.isFunction(e)||null===e||!1===e;var tt=e=>{e=J.isArray(e)?e:[e];const{length:t}=e;let r,n;const s={};for(let i=0;i<t;i++){let t;if(r=e[i],n=r,!et(r)&&(n=Xe[(t=String(r)).toLowerCase()],void 0===n))throw new $(`Unknown adapter '${t}'`);if(n)break;s[t||"#"+i]=n}if(!n){const e=Object.entries(s).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new $("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(Ze).join("\n"):" "+Ze(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return n};function rt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ke(null,e)}function nt(e){return rt(e),e.headers=_e.from(e.headers),e.data=Te.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),tt(e.adapter||be.adapter)(e).then((function(t){return rt(e),t.data=Te.call(e,e.transformResponse,t),t.headers=_e.from(t.headers),t}),(function(t){return Ee(t)||(rt(e),t&&t.response&&(t.response.data=Te.call(e,e.transformResponse,t.response),t.response.headers=_e.from(t.response.headers))),Promise.reject(t)}))}const st={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{st[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));const it={};st.transitional=function(e,t,r){function n(e,t){return"[Axios v1.7.4] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,s,i)=>{if(!1===e)throw new $(n(s," has been removed"+(t?" in "+t:"")),$.ERR_DEPRECATED);return t&&!it[s]&&(it[s]=!0,console.warn(n(s," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,s,i)}};var ot={assertOptions:function(e,t,r){if("object"!=typeof e)throw new $("options must be an object",$.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let s=n.length;for(;s-- >0;){const i=n[s],o=t[i];if(o){const t=e[i],r=void 0===t||o(t,i,e);if(!0!==r)throw new $("option "+i+" must be "+r,$.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new $("Unknown option "+i,$.ERR_BAD_OPTION)}},validators:st};const at=ot.validators;class ct{constructor(e){this.defaults=e,this.interceptors={request:new ae,response:new ae}}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=qe(this.defaults,t);const{transitional:r,paramsSerializer:n,headers:s}=t;void 0!==r&&ot.assertOptions(r,{silentJSONParsing:at.transitional(at.boolean),forcedJSONParsing:at.transitional(at.boolean),clarifyTimeoutError:at.transitional(at.boolean)},!1),null!=n&&(J.isFunction(n)?t.paramsSerializer={serialize:n}:ot.assertOptions(n,{encode:at.function,serialize:at.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=s&&J.merge(s.common,s[t.method]);s&&J.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete s[e]})),t.headers=_e.concat(i,s);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=[nt.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=nt.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 oe(Me((e=qe(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}J.forEach(["delete","get","head","options"],(function(e){ct.prototype[e]=function(t,r){return this.request(qe(r||{},{method:e,url:t,data:(r||{}).data}))}})),J.forEach(["post","put","patch"],(function(e){function t(t){return function(r,n,s){return this.request(qe(s||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}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 n=new Promise((e=>{r.subscribe(e),t=e})).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e((function(e,n,s){r.reason||(r.reason=new ke(e,n,s),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)}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 ft=function e(t){const r=new ut(t),s=n(ut.prototype.request,r);return J.extend(s,ut.prototype,r,{allOwnKeys:!0}),J.extend(s,r,null,{allOwnKeys:!0}),s.create=function(r){return e(qe(t,r))},s}(be);ft.Axios=ut,ft.CanceledError=ke,ft.CancelToken=lt,ft.isCancel=Ee,ft.VERSION="1.7.4",ft.toFormData=te,ft.AxiosError=$,ft.Cancel=ft.CanceledError,ft.all=function(e){return Promise.all(e)},ft.spread=function(e){return function(t){return e.apply(null,t)}},ft.isAxiosError=function(e){return J.isObject(e)&&!0===e.isAxiosError},ft.mergeConfig=qe,ft.AxiosHeaders=_e,ft.formToJSON=e=>ye(J.isHTMLForm(e)?new FormData(e):e),ft.getAdapter=tt,ft.HttpStatusCode=ht,ft.default=ft,e.exports=ft}},t={};function r(n){var s=t[n];if(void 0!==s)return s.exports;var i=t[n]={exports:{}};return e[n].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(2316)})()));
1
+ !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={3708:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,s)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),s(r(8598),t),s(r(459),t),s(r(7766),t),s(r(2319),t),s(r(4420),t),s(r(502),t),s(r(9819),t),s(r(9900),t)},2734:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(s,i){function o(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.AccountInformationApiGenerated=t.AccountInformationApiFactory=t.AccountInformationApiFp=t.AccountInformationApiAxiosParamCreator=void 0;const s=r(1357),i=r(6479),o=r(7275),a=r(8917);t.AccountInformationApiAxiosParamCreator=function(e){return{getAllUserHoldings:(t,r,s,o={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getAllUserHoldings","userId",t),(0,i.assertParamExists)("getAllUserHoldings","userSecret",r);const n="/holdings",c=new URL(n,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!==s&&(p.brokerage_authorizations=s);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:n,configuration:e,pathTemplate:"/holdings",httpMethod:"GET"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),getUserAccountBalance:(t,r,s,o={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getUserAccountBalance","userId",t),(0,i.assertParamExists)("getUserAccountBalance","userSecret",r),(0,i.assertParamExists)("getUserAccountBalance","accountId",s);const n="/accounts/{accountId}/balances".replace("{accountId}",encodeURIComponent(String(void 0!==s?s:"-accountId-"))),c=new URL(n,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:n,configuration:e,pathTemplate:"/accounts/{accountId}/balances",httpMethod:"GET"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),getUserAccountDetails:(t,r,s,o={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getUserAccountDetails","userId",t),(0,i.assertParamExists)("getUserAccountDetails","userSecret",r),(0,i.assertParamExists)("getUserAccountDetails","accountId",s);const n="/accounts/{accountId}".replace("{accountId}",encodeURIComponent(String(void 0!==s?s:"-accountId-"))),c=new URL(n,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:n,configuration:e,pathTemplate:"/accounts/{accountId}",httpMethod:"GET"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),getUserAccountOrders:(t,r,s,o,c,u={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getUserAccountOrders","userId",t),(0,i.assertParamExists)("getUserAccountOrders","userSecret",r),(0,i.assertParamExists)("getUserAccountOrders","accountId",s);const n="/accounts/{accountId}/orders".replace("{accountId}",encodeURIComponent(String(void 0!==s?s:"-accountId-"))),d=new URL(n,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}:{},f={};yield(0,i.setApiKeyToObject)({object:f,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:f,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(f.userId=t),void 0!==r&&(f.userSecret=r),void 0!==o&&(f.state=o),void 0!==c&&(f.days=c);let g=l&&l.headers?l.headers:{};return p.headers=Object.assign(Object.assign(Object.assign({},h),g),u.headers),(0,a.requestBeforeHook)({queryParameters:f,requestConfig:p,path:n,configuration:e,pathTemplate:"/accounts/{accountId}/orders",httpMethod:"GET"}),(0,i.setSearchParams)(d,f),{url:(0,i.toPathString)(d),options:p}})),getUserAccountPositions:(t,r,s,o={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getUserAccountPositions","userId",t),(0,i.assertParamExists)("getUserAccountPositions","userSecret",r),(0,i.assertParamExists)("getUserAccountPositions","accountId",s);const n="/accounts/{accountId}/positions".replace("{accountId}",encodeURIComponent(String(void 0!==s?s:"-accountId-"))),c=new URL(n,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:n,configuration:e,pathTemplate:"/accounts/{accountId}/positions",httpMethod:"GET"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),getUserHoldings:(t,r,s,o={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getUserHoldings","accountId",t),(0,i.assertParamExists)("getUserHoldings","userId",r),(0,i.assertParamExists)("getUserHoldings","userSecret",s);const n="/accounts/{accountId}/holdings".replace("{accountId}",encodeURIComponent(String(void 0!==t?t:"-accountId-"))),c=new URL(n,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!==s&&(p.userSecret=s);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:n,configuration:e,pathTemplate:"/accounts/{accountId}/holdings",httpMethod:"GET"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),listUserAccounts:(t,r,s={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("listUserAccounts","userId",t),(0,i.assertParamExists)("listUserAccounts","userSecret",r);const n="/accounts",o=new URL(n,i.DUMMY_BASE_URL);let c;e&&(c=e.baseOptions);const u=Object.assign(Object.assign({method:"GET"},c),s),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),s.headers),(0,a.requestBeforeHook)({queryParameters:l,requestConfig:u,path:n,configuration:e,pathTemplate:"/accounts",httpMethod:"GET"}),(0,i.setSearchParams)(o,l),{url:(0,i.toPathString)(o),options:u}})),updateUserAccount:(t,r,s,o={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("updateUserAccount","userId",t),(0,i.assertParamExists)("updateUserAccount","userSecret",r),(0,i.assertParamExists)("updateUserAccount","accountId",s);const n="/accounts/{accountId}".replace("{accountId}",encodeURIComponent(String(void 0!==s?s:"-accountId-"))),c=new URL(n,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:n,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{getAllUserHoldings(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.getAllUserHoldings(t.userId,t.userSecret,t.brokerageAuthorizations,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},getUserAccountBalance(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.getUserAccountBalance(t.userId,t.userSecret,t.accountId,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},getUserAccountDetails(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.getUserAccountDetails(t.userId,t.userSecret,t.accountId,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},getUserAccountOrders(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.getUserAccountOrders(t.userId,t.userSecret,t.accountId,t.state,t.days,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},getUserAccountPositions(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.getUserAccountPositions(t.userId,t.userSecret,t.accountId,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},getUserHoldings(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.getUserHoldings(t.accountId,t.userId,t.userSecret,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},listUserAccounts(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.listUserAccounts(t.userId,t.userSecret,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},updateUserAccount(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.updateUserAccount(t.userId,t.userSecret,t.accountId,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))}}},t.AccountInformationApiFactory=function(e,r,n){const s=(0,t.AccountInformationApiFp)(e);return{getAllUserHoldings:(e,t)=>s.getAllUserHoldings(e,t).then((e=>e(n,r))),getUserAccountBalance:(e,t)=>s.getUserAccountBalance(e,t).then((e=>e(n,r))),getUserAccountDetails:(e,t)=>s.getUserAccountDetails(e,t).then((e=>e(n,r))),getUserAccountOrders:(e,t)=>s.getUserAccountOrders(e,t).then((e=>e(n,r))),getUserAccountPositions:(e,t)=>s.getUserAccountPositions(e,t).then((e=>e(n,r))),getUserHoldings:(e,t)=>s.getUserHoldings(e,t).then((e=>e(n,r))),listUserAccounts:(e,t)=>s.listUserAccounts(e,t).then((e=>e(n,r))),updateUserAccount:(e,t)=>s.updateUserAccount(e,t).then((e=>e(n,r)))}};class c extends o.BaseAPI{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)))}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)))}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},8598:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,s)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.AccountInformationApi=void 0;const i=r(2734);s(r(2734),t);class o extends i.AccountInformationApiGenerated{}t.AccountInformationApi=o},7971:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(s,i){function o(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.ApiStatusApiGenerated=t.ApiStatusApiFactory=t.ApiStatusApiFp=t.ApiStatusApiAxiosParamCreator=void 0;const s=r(1357),i=r(6479),o=r(7275),a=r(8917);t.ApiStatusApiAxiosParamCreator=function(e){return{check:(t={})=>n(this,void 0,void 0,(function*(){const r=new URL("/",i.DUMMY_BASE_URL);let n;e&&(n=e.baseOptions);const s=Object.assign(Object.assign({method:"GET"},n),t),o=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},c={};let u=n&&n.headers?n.headers:{};return s.headers=Object.assign(Object.assign(Object.assign({},o),u),t.headers),(0,a.requestBeforeHook)({queryParameters:c,requestConfig:s,path:"/",configuration:e,pathTemplate:"/",httpMethod:"GET"}),(0,i.setSearchParams)(r,c),{url:(0,i.toPathString)(r),options:s}}))}},t.ApiStatusApiFp=function(e){const r=(0,t.ApiStatusApiAxiosParamCreator)(e);return{check(t){return n(this,void 0,void 0,(function*(){const n=yield r.check(t);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))}}},t.ApiStatusApiFactory=function(e,r,n){const s=(0,t.ApiStatusApiFp)(e);return{check:e=>s.check(e).then((e=>e(n,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},459:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,s)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.ApiStatusApi=void 0;const i=r(7971);s(r(7971),t);class o extends i.ApiStatusApiGenerated{}t.ApiStatusApi=o},3022:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(s,i){function o(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.AuthenticationApiGenerated=t.AuthenticationApiFactory=t.AuthenticationApiFp=t.AuthenticationApiAxiosParamCreator=void 0;const s=r(1357),i=r(6479),o=r(7275),a=r(8917);t.AuthenticationApiAxiosParamCreator=function(e){return{deleteSnapTradeUser:(t,r={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("deleteSnapTradeUser","userId",t);const n="/snapTrade/deleteUser",s=new URL(n,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:n,configuration:e,pathTemplate:"/snapTrade/deleteUser",httpMethod:"DELETE"}),(0,i.setSearchParams)(s,d),{url:(0,i.toPathString)(s),options:c}})),listSnapTradeUsers:(t={})=>n(this,void 0,void 0,(function*(){const r="/snapTrade/listUsers",n=new URL(r,i.DUMMY_BASE_URL);let s;e&&(s=e.baseOptions);const o=Object.assign(Object.assign({method:"GET"},s),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=s&&s.headers?s.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)(n,u),{url:(0,i.toPathString)(n),options:o}})),loginSnapTradeUser:(t,r,s,o={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("loginSnapTradeUser","userId",t),(0,i.assertParamExists)("loginSnapTradeUser","userSecret",r);const n="/snapTrade/login",c=new URL(n,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:s,queryParameters:p,requestConfig:d,path:n,configuration:e,pathTemplate:"/snapTrade/login",httpMethod:"POST"}),d.data=(0,i.serializeDataIfNeeded)(s,d,e),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),registerSnapTradeUser:(t,r={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("registerSnapTradeUser","snapTradeRegisterUserRequestBody",t);const n="/snapTrade/registerUser",s=new URL(n,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:n,configuration:e,pathTemplate:"/snapTrade/registerUser",httpMethod:"POST"}),c.data=(0,i.serializeDataIfNeeded)(t,c,e),(0,i.setSearchParams)(s,d),{url:(0,i.toPathString)(s),options:c}})),resetSnapTradeUserSecret:(t,r={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("resetSnapTradeUserSecret","userIDandSecret",t);const n="/snapTrade/resetUserSecret",s=new URL(n,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:n,configuration:e,pathTemplate:"/snapTrade/resetUserSecret",httpMethod:"POST"}),c.data=(0,i.serializeDataIfNeeded)(t,c,e),(0,i.setSearchParams)(s,d),{url:(0,i.toPathString)(s),options:c}}))}},t.AuthenticationApiFp=function(e){const r=(0,t.AuthenticationApiAxiosParamCreator)(e);return{deleteSnapTradeUser(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.deleteSnapTradeUser(t.userId,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},listSnapTradeUsers(t){return n(this,void 0,void 0,(function*(){const n=yield r.listSnapTradeUsers(t);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},loginSnapTradeUser(t,a){return n(this,void 0,void 0,(function*(){const n={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,n,a);return(0,i.createRequestFunction)(c,s.default,o.BASE_PATH,e)}))},registerSnapTradeUser(t,a){return n(this,void 0,void 0,(function*(){const n={userId:t.userId},c=yield r.registerSnapTradeUser(n,a);return(0,i.createRequestFunction)(c,s.default,o.BASE_PATH,e)}))},resetSnapTradeUserSecret(t,a){return n(this,void 0,void 0,(function*(){const n={userId:t.userId,userSecret:t.userSecret},c=yield r.resetSnapTradeUserSecret(n,a);return(0,i.createRequestFunction)(c,s.default,o.BASE_PATH,e)}))}}},t.AuthenticationApiFactory=function(e,r,n){const s=(0,t.AuthenticationApiFp)(e);return{deleteSnapTradeUser:(e,t)=>s.deleteSnapTradeUser(e,t).then((e=>e(n,r))),listSnapTradeUsers:e=>s.listSnapTradeUsers(e).then((e=>e(n,r))),loginSnapTradeUser:(e,t)=>s.loginSnapTradeUser(e,t).then((e=>e(n,r))),registerSnapTradeUser:(e,t)=>s.registerSnapTradeUser(e,t).then((e=>e(n,r))),resetSnapTradeUserSecret:(e,t)=>s.resetSnapTradeUserSecret(e,t).then((e=>e(n,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},7766:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,s)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.AuthenticationApi=void 0;const i=r(3022);s(r(3022),t);class o extends i.AuthenticationApiGenerated{}t.AuthenticationApi=o},9239:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(s,i){function o(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectionsApiGenerated=t.ConnectionsApiFactory=t.ConnectionsApiFp=t.ConnectionsApiAxiosParamCreator=void 0;const s=r(1357),i=r(6479),o=r(7275),a=r(8917);t.ConnectionsApiAxiosParamCreator=function(e){return{detailBrokerageAuthorization:(t,r,s,o={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("detailBrokerageAuthorization","authorizationId",t),(0,i.assertParamExists)("detailBrokerageAuthorization","userId",r),(0,i.assertParamExists)("detailBrokerageAuthorization","userSecret",s);const n="/authorizations/{authorizationId}".replace("{authorizationId}",encodeURIComponent(String(void 0!==t?t:"-authorizationId-"))),c=new URL(n,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!==s&&(p.userSecret=s);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:n,configuration:e,pathTemplate:"/authorizations/{authorizationId}",httpMethod:"GET"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),disableBrokerageAuthorization:(t,r,s,o={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("disableBrokerageAuthorization","authorizationId",t),(0,i.assertParamExists)("disableBrokerageAuthorization","userId",r),(0,i.assertParamExists)("disableBrokerageAuthorization","userSecret",s);const n="/authorizations/{authorizationId}/disable".replace("{authorizationId}",encodeURIComponent(String(void 0!==t?t:"-authorizationId-"))),c=new URL(n,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!==s&&(p.userSecret=s);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:n,configuration:e,pathTemplate:"/authorizations/{authorizationId}/disable",httpMethod:"POST"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),listBrokerageAuthorizations:(t,r,s={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("listBrokerageAuthorizations","userId",t),(0,i.assertParamExists)("listBrokerageAuthorizations","userSecret",r);const n="/authorizations",o=new URL(n,i.DUMMY_BASE_URL);let c;e&&(c=e.baseOptions);const u=Object.assign(Object.assign({method:"GET"},c),s),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),s.headers),(0,a.requestBeforeHook)({queryParameters:l,requestConfig:u,path:n,configuration:e,pathTemplate:"/authorizations",httpMethod:"GET"}),(0,i.setSearchParams)(o,l),{url:(0,i.toPathString)(o),options:u}})),refreshBrokerageAuthorization:(t,r,s,o={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("refreshBrokerageAuthorization","authorizationId",t),(0,i.assertParamExists)("refreshBrokerageAuthorization","userId",r),(0,i.assertParamExists)("refreshBrokerageAuthorization","userSecret",s);const n="/authorizations/{authorizationId}/refresh".replace("{authorizationId}",encodeURIComponent(String(void 0!==t?t:"-authorizationId-"))),c=new URL(n,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!==s&&(p.userSecret=s);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:n,configuration:e,pathTemplate:"/authorizations/{authorizationId}/refresh",httpMethod:"POST"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),removeBrokerageAuthorization:(t,r,s,o={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("removeBrokerageAuthorization","authorizationId",t),(0,i.assertParamExists)("removeBrokerageAuthorization","userId",r),(0,i.assertParamExists)("removeBrokerageAuthorization","userSecret",s);const n="/authorizations/{authorizationId}".replace("{authorizationId}",encodeURIComponent(String(void 0!==t?t:"-authorizationId-"))),c=new URL(n,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!==s&&(p.userSecret=s);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:n,configuration:e,pathTemplate:"/authorizations/{authorizationId}",httpMethod:"DELETE"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),sessionEvents:(t,r,s,o={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("sessionEvents","partnerClientId",t);const n="/sessionEvents",c=new URL(n,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!==s&&(p.sessionId=s);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:n,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 n(this,void 0,void 0,(function*(){const n=yield r.detailBrokerageAuthorization(t.authorizationId,t.userId,t.userSecret,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},disableBrokerageAuthorization(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.disableBrokerageAuthorization(t.authorizationId,t.userId,t.userSecret,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},listBrokerageAuthorizations(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.listBrokerageAuthorizations(t.userId,t.userSecret,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},refreshBrokerageAuthorization(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.refreshBrokerageAuthorization(t.authorizationId,t.userId,t.userSecret,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},removeBrokerageAuthorization(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.removeBrokerageAuthorization(t.authorizationId,t.userId,t.userSecret,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},sessionEvents(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.sessionEvents(t.partnerClientId,t.userId,t.sessionId,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))}}},t.ConnectionsApiFactory=function(e,r,n){const s=(0,t.ConnectionsApiFp)(e);return{detailBrokerageAuthorization:(e,t)=>s.detailBrokerageAuthorization(e,t).then((e=>e(n,r))),disableBrokerageAuthorization:(e,t)=>s.disableBrokerageAuthorization(e,t).then((e=>e(n,r))),listBrokerageAuthorizations:(e,t)=>s.listBrokerageAuthorizations(e,t).then((e=>e(n,r))),refreshBrokerageAuthorization:(e,t)=>s.refreshBrokerageAuthorization(e,t).then((e=>e(n,r))),removeBrokerageAuthorization:(e,t)=>s.removeBrokerageAuthorization(e,t).then((e=>e(n,r))),sessionEvents:(e,t)=>s.sessionEvents(e,t).then((e=>e(n,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)))}sessionEvents(e,r){return(0,t.ConnectionsApiFp)(this.configuration).sessionEvents(e,r).then((e=>e(this.axios,this.basePath)))}}t.ConnectionsApiGenerated=c},2319:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,s)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectionsApi=void 0;const i=r(9239);s(r(9239),t);class o extends i.ConnectionsApiGenerated{}t.ConnectionsApi=o},9448:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(s,i){function o(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.OptionsApiGenerated=t.OptionsApiFactory=t.OptionsApiFp=t.OptionsApiAxiosParamCreator=void 0;const s=r(1357),i=r(6479),o=r(7275),a=r(8917);t.OptionsApiAxiosParamCreator=function(e){return{getOptionStrategy:(t,r,s,o,c={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getOptionStrategy","userId",t),(0,i.assertParamExists)("getOptionStrategy","userSecret",r),(0,i.assertParamExists)("getOptionStrategy","accountId",s),(0,i.assertParamExists)("getOptionStrategy","optionsGetOptionStrategyRequest",o);const n="/accounts/{accountId}/optionStrategy".replace("{accountId}",encodeURIComponent(String(void 0!==s?s:"-accountId-"))),u=new URL(n,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 f=d&&d.headers?d.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},p),f),c.headers),(0,a.requestBeforeHook)({requestBody:o,queryParameters:h,requestConfig:l,path:n,configuration:e,pathTemplate:"/accounts/{accountId}/optionStrategy",httpMethod:"POST"}),l.data=(0,i.serializeDataIfNeeded)(o,l,e),(0,i.setSearchParams)(u,h),{url:(0,i.toPathString)(u),options:l}})),getOptionsChain:(t,r,s,o,c={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getOptionsChain","userId",t),(0,i.assertParamExists)("getOptionsChain","userSecret",r),(0,i.assertParamExists)("getOptionsChain","accountId",s),(0,i.assertParamExists)("getOptionsChain","symbol",o);const n="/accounts/{accountId}/optionsChain".replace("{accountId}",encodeURIComponent(String(void 0!==s?s:"-accountId-"))),u=new URL(n,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 f=d&&d.headers?d.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},p),f),c.headers),(0,a.requestBeforeHook)({queryParameters:h,requestConfig:l,path:n,configuration:e,pathTemplate:"/accounts/{accountId}/optionsChain",httpMethod:"GET"}),(0,i.setSearchParams)(u,h),{url:(0,i.toPathString)(u),options:l}})),getOptionsStrategyQuote:(t,r,s,o,c={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getOptionsStrategyQuote","userId",t),(0,i.assertParamExists)("getOptionsStrategyQuote","userSecret",r),(0,i.assertParamExists)("getOptionsStrategyQuote","accountId",s),(0,i.assertParamExists)("getOptionsStrategyQuote","optionStrategyId",o);const n="/accounts/{accountId}/optionStrategy/{optionStrategyId}".replace("{accountId}",encodeURIComponent(String(void 0!==s?s:"-accountId-"))).replace("{optionStrategyId}",encodeURIComponent(String(void 0!==o?o:"-optionStrategyId-"))),u=new URL(n,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 f=d&&d.headers?d.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},p),f),c.headers),(0,a.requestBeforeHook)({queryParameters:h,requestConfig:l,path:n,configuration:e,pathTemplate:"/accounts/{accountId}/optionStrategy/{optionStrategyId}",httpMethod:"GET"}),(0,i.setSearchParams)(u,h),{url:(0,i.toPathString)(u),options:l}})),listOptionHoldings:(t,r,s,o={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("listOptionHoldings","userId",t),(0,i.assertParamExists)("listOptionHoldings","userSecret",r),(0,i.assertParamExists)("listOptionHoldings","accountId",s);const n="/accounts/{accountId}/options".replace("{accountId}",encodeURIComponent(String(void 0!==s?s:"-accountId-"))),c=new URL(n,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:n,configuration:e,pathTemplate:"/accounts/{accountId}/options",httpMethod:"GET"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),placeOptionStrategy:(t,r,s,o,c,u={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("placeOptionStrategy","userId",t),(0,i.assertParamExists)("placeOptionStrategy","userSecret",r),(0,i.assertParamExists)("placeOptionStrategy","accountId",s),(0,i.assertParamExists)("placeOptionStrategy","optionStrategyId",o),(0,i.assertParamExists)("placeOptionStrategy","optionsPlaceOptionStrategyRequest",c);const n="/accounts/{accountId}/optionStrategy/{optionStrategyId}/execute".replace("{accountId}",encodeURIComponent(String(void 0!==s?s:"-accountId-"))).replace("{optionStrategyId}",encodeURIComponent(String(void 0!==o?o:"-optionStrategyId-"))),d=new URL(n,i.DUMMY_BASE_URL);let l;e&&(l=e.baseOptions);const p=Object.assign(Object.assign({method:"POST"},l),u),h=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},f={};yield(0,i.setApiKeyToObject)({object:f,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:f,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(f.userId=t),void 0!==r&&(f.userSecret=r),h["Content-Type"]="application/json";let g=l&&l.headers?l.headers:{};return p.headers=Object.assign(Object.assign(Object.assign({},h),g),u.headers),(0,a.requestBeforeHook)({requestBody:c,queryParameters:f,requestConfig:p,path:n,configuration:e,pathTemplate:"/accounts/{accountId}/optionStrategy/{optionStrategyId}/execute",httpMethod:"POST"}),p.data=(0,i.serializeDataIfNeeded)(c,p,e),(0,i.setSearchParams)(d,f),{url:(0,i.toPathString)(d),options:p}}))}},t.OptionsApiFp=function(e){const r=(0,t.OptionsApiAxiosParamCreator)(e);return{getOptionStrategy(t,a){return n(this,void 0,void 0,(function*(){const n={underlying_symbol_id:t.underlying_symbol_id,legs:t.legs,strategy_type:t.strategy_type},c=yield r.getOptionStrategy(t.userId,t.userSecret,t.accountId,n,a);return(0,i.createRequestFunction)(c,s.default,o.BASE_PATH,e)}))},getOptionsChain(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.getOptionsChain(t.userId,t.userSecret,t.accountId,t.symbol,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},getOptionsStrategyQuote(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.getOptionsStrategyQuote(t.userId,t.userSecret,t.accountId,t.optionStrategyId,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},listOptionHoldings(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.listOptionHoldings(t.userId,t.userSecret,t.accountId,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},placeOptionStrategy(t,a){return n(this,void 0,void 0,(function*(){const n={order_type:t.order_type,time_in_force:t.time_in_force,price:t.price},c=yield r.placeOptionStrategy(t.userId,t.userSecret,t.accountId,t.optionStrategyId,n,a);return(0,i.createRequestFunction)(c,s.default,o.BASE_PATH,e)}))}}},t.OptionsApiFactory=function(e,r,n){const s=(0,t.OptionsApiFp)(e);return{getOptionStrategy:(e,t)=>s.getOptionStrategy(e,t).then((e=>e(n,r))),getOptionsChain:(e,t)=>s.getOptionsChain(e,t).then((e=>e(n,r))),getOptionsStrategyQuote:(e,t)=>s.getOptionsStrategyQuote(e,t).then((e=>e(n,r))),listOptionHoldings:(e,t)=>s.listOptionHoldings(e,t).then((e=>e(n,r))),placeOptionStrategy:(e,t)=>s.placeOptionStrategy(e,t).then((e=>e(n,r)))}};class c extends o.BaseAPI{getOptionStrategy(e,r){return(0,t.OptionsApiFp)(this.configuration).getOptionStrategy(e,r).then((e=>e(this.axios,this.basePath)))}getOptionsChain(e,r){return(0,t.OptionsApiFp)(this.configuration).getOptionsChain(e,r).then((e=>e(this.axios,this.basePath)))}getOptionsStrategyQuote(e,r){return(0,t.OptionsApiFp)(this.configuration).getOptionsStrategyQuote(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)))}placeOptionStrategy(e,r){return(0,t.OptionsApiFp)(this.configuration).placeOptionStrategy(e,r).then((e=>e(this.axios,this.basePath)))}}t.OptionsApiGenerated=c},4420:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,s)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.OptionsApi=void 0;const i=r(9448);s(r(9448),t);class o extends i.OptionsApiGenerated{}t.OptionsApi=o},7342:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(s,i){function o(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.ReferenceDataApiGenerated=t.ReferenceDataApiFactory=t.ReferenceDataApiFp=t.ReferenceDataApiAxiosParamCreator=void 0;const s=r(1357),i=r(6479),o=r(7275),a=r(8917);t.ReferenceDataApiAxiosParamCreator=function(e){return{getCurrencyExchangeRatePair:(t,r={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getCurrencyExchangeRatePair","currencyPair",t);const n="/currencies/rates/{currencyPair}".replace("{currencyPair}",encodeURIComponent(String(void 0!==t?t:"-currencyPair-"))),s=new URL(n,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:n,configuration:e,pathTemplate:"/currencies/rates/{currencyPair}",httpMethod:"GET"}),(0,i.setSearchParams)(s,d),{url:(0,i.toPathString)(s),options:c}})),getPartnerInfo:(t={})=>n(this,void 0,void 0,(function*(){const r="/snapTrade/partners",n=new URL(r,i.DUMMY_BASE_URL);let s;e&&(s=e.baseOptions);const o=Object.assign(Object.assign({method:"GET"},s),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=s&&s.headers?s.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)(n,u),{url:(0,i.toPathString)(n),options:o}})),getSecurityTypes:(t={})=>n(this,void 0,void 0,(function*(){const r="/securityTypes",n=new URL(r,i.DUMMY_BASE_URL);let s;e&&(s=e.baseOptions);const o=Object.assign(Object.assign({method:"GET"},s),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=s&&s.headers?s.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)(n,u),{url:(0,i.toPathString)(n),options:o}})),getStockExchanges:(t={})=>n(this,void 0,void 0,(function*(){const r="/exchanges",n=new URL(r,i.DUMMY_BASE_URL);let s;e&&(s=e.baseOptions);const o=Object.assign(Object.assign({method:"GET"},s),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=s&&s.headers?s.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)(n,u),{url:(0,i.toPathString)(n),options:o}})),getSymbols:(t,r={})=>n(this,void 0,void 0,(function*(){const n="/symbols",s=new URL(n,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:n,configuration:e,pathTemplate:"/symbols",httpMethod:"POST"}),c.data=(0,i.serializeDataIfNeeded)(t,c,e),(0,i.setSearchParams)(s,d),{url:(0,i.toPathString)(s),options:c}})),getSymbolsByTicker:(t,r={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getSymbolsByTicker","query",t);const n="/symbols/{query}".replace("{query}",encodeURIComponent(String(void 0!==t?t:"-query-"))),s=new URL(n,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:n,configuration:e,pathTemplate:"/symbols/{query}",httpMethod:"GET"}),(0,i.setSearchParams)(s,d),{url:(0,i.toPathString)(s),options:c}})),listAllBrokerageAuthorizationType:(t,r={})=>n(this,void 0,void 0,(function*(){const n="/brokerageAuthorizationTypes",s=new URL(n,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:n,configuration:e,pathTemplate:"/brokerageAuthorizationTypes",httpMethod:"GET"}),(0,i.setSearchParams)(s,d),{url:(0,i.toPathString)(s),options:c}})),listAllBrokerages:(t={})=>n(this,void 0,void 0,(function*(){const r="/brokerages",n=new URL(r,i.DUMMY_BASE_URL);let s;e&&(s=e.baseOptions);const o=Object.assign(Object.assign({method:"GET"},s),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=s&&s.headers?s.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)(n,u),{url:(0,i.toPathString)(n),options:o}})),listAllCurrencies:(t={})=>n(this,void 0,void 0,(function*(){const r="/currencies",n=new URL(r,i.DUMMY_BASE_URL);let s;e&&(s=e.baseOptions);const o=Object.assign(Object.assign({method:"GET"},s),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=s&&s.headers?s.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)(n,u),{url:(0,i.toPathString)(n),options:o}})),listAllCurrenciesRates:(t={})=>n(this,void 0,void 0,(function*(){const r="/currencies/rates",n=new URL(r,i.DUMMY_BASE_URL);let s;e&&(s=e.baseOptions);const o=Object.assign(Object.assign({method:"GET"},s),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=s&&s.headers?s.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)(n,u),{url:(0,i.toPathString)(n),options:o}})),symbolSearchUserAccount:(t,r,s,o,c={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("symbolSearchUserAccount","userId",t),(0,i.assertParamExists)("symbolSearchUserAccount","userSecret",r),(0,i.assertParamExists)("symbolSearchUserAccount","accountId",s);const n="/accounts/{accountId}/symbols".replace("{accountId}",encodeURIComponent(String(void 0!==s?s:"-accountId-"))),u=new URL(n,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 f=d&&d.headers?d.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},p),f),c.headers),(0,a.requestBeforeHook)({requestBody:o,queryParameters:h,requestConfig:l,path:n,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 n(this,void 0,void 0,(function*(){const n=yield r.getCurrencyExchangeRatePair(t.currencyPair,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},getPartnerInfo(t){return n(this,void 0,void 0,(function*(){const n=yield r.getPartnerInfo(t);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},getSecurityTypes(t){return n(this,void 0,void 0,(function*(){const n=yield r.getSecurityTypes(t);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},getStockExchanges(t){return n(this,void 0,void 0,(function*(){const n=yield r.getStockExchanges(t);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},getSymbols(t={},a){return n(this,void 0,void 0,(function*(){const n={substring:t.substring},c=yield r.getSymbols(n,a);return(0,i.createRequestFunction)(c,s.default,o.BASE_PATH,e)}))},getSymbolsByTicker(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.getSymbolsByTicker(t.query,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},listAllBrokerageAuthorizationType(t={},a){return n(this,void 0,void 0,(function*(){const n=yield r.listAllBrokerageAuthorizationType(t.brokerage,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},listAllBrokerages(t){return n(this,void 0,void 0,(function*(){const n=yield r.listAllBrokerages(t);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},listAllCurrencies(t){return n(this,void 0,void 0,(function*(){const n=yield r.listAllCurrencies(t);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},listAllCurrenciesRates(t){return n(this,void 0,void 0,(function*(){const n=yield r.listAllCurrenciesRates(t);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},symbolSearchUserAccount(t,a){return n(this,void 0,void 0,(function*(){const n={substring:t.substring},c=yield r.symbolSearchUserAccount(t.userId,t.userSecret,t.accountId,n,a);return(0,i.createRequestFunction)(c,s.default,o.BASE_PATH,e)}))}}},t.ReferenceDataApiFactory=function(e,r,n){const s=(0,t.ReferenceDataApiFp)(e);return{getCurrencyExchangeRatePair:(e,t)=>s.getCurrencyExchangeRatePair(e,t).then((e=>e(n,r))),getPartnerInfo:e=>s.getPartnerInfo(e).then((e=>e(n,r))),getSecurityTypes:e=>s.getSecurityTypes(e).then((e=>e(n,r))),getStockExchanges:e=>s.getStockExchanges(e).then((e=>e(n,r))),getSymbols:(e={},t)=>s.getSymbols(e,t).then((e=>e(n,r))),getSymbolsByTicker:(e,t)=>s.getSymbolsByTicker(e,t).then((e=>e(n,r))),listAllBrokerageAuthorizationType:(e={},t)=>s.listAllBrokerageAuthorizationType(e,t).then((e=>e(n,r))),listAllBrokerages:e=>s.listAllBrokerages(e).then((e=>e(n,r))),listAllCurrencies:e=>s.listAllCurrencies(e).then((e=>e(n,r))),listAllCurrenciesRates:e=>s.listAllCurrenciesRates(e).then((e=>e(n,r))),symbolSearchUserAccount:(e,t)=>s.symbolSearchUserAccount(e,t).then((e=>e(n,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)))}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},502:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,s)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.ReferenceDataApi=void 0;const i=r(7342);s(r(7342),t);class o extends i.ReferenceDataApiGenerated{}t.ReferenceDataApi=o},3171:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(s,i){function o(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.TradingApiGenerated=t.TradingApiFactory=t.TradingApiFp=t.TradingApiAxiosParamCreator=void 0;const s=r(1357),i=r(6479),o=r(7275),a=r(8917);t.TradingApiAxiosParamCreator=function(e){return{cancelUserAccountOrder:(t,r,s,o,c={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("cancelUserAccountOrder","userId",t),(0,i.assertParamExists)("cancelUserAccountOrder","userSecret",r),(0,i.assertParamExists)("cancelUserAccountOrder","accountId",s),(0,i.assertParamExists)("cancelUserAccountOrder","tradingCancelUserAccountOrderRequest",o);const n="/accounts/{accountId}/orders/cancel".replace("{accountId}",encodeURIComponent(String(void 0!==s?s:"-accountId-"))),u=new URL(n,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 f=d&&d.headers?d.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},p),f),c.headers),(0,a.requestBeforeHook)({requestBody:o,queryParameters:h,requestConfig:l,path:n,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}})),getOrderImpact:(t,r,s,o={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getOrderImpact","userId",t),(0,i.assertParamExists)("getOrderImpact","userSecret",r),(0,i.assertParamExists)("getOrderImpact","manualTradeForm",s);const n="/trade/impact",c=new URL(n,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:s,queryParameters:p,requestConfig:d,path:n,configuration:e,pathTemplate:"/trade/impact",httpMethod:"POST"}),d.data=(0,i.serializeDataIfNeeded)(s,d,e),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),getUserAccountQuotes:(t,r,s,o,c,u={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getUserAccountQuotes","userId",t),(0,i.assertParamExists)("getUserAccountQuotes","userSecret",r),(0,i.assertParamExists)("getUserAccountQuotes","symbols",s),(0,i.assertParamExists)("getUserAccountQuotes","accountId",o);const n="/accounts/{accountId}/quotes".replace("{accountId}",encodeURIComponent(String(void 0!==o?o:"-accountId-"))),d=new URL(n,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}:{},f={};yield(0,i.setApiKeyToObject)({object:f,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:f,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(f.userId=t),void 0!==r&&(f.userSecret=r),void 0!==s&&(f.symbols=s),void 0!==c&&(f.use_ticker=c);let g=l&&l.headers?l.headers:{};return p.headers=Object.assign(Object.assign(Object.assign({},h),g),u.headers),(0,a.requestBeforeHook)({queryParameters:f,requestConfig:p,path:n,configuration:e,pathTemplate:"/accounts/{accountId}/quotes",httpMethod:"GET"}),(0,i.setSearchParams)(d,f),{url:(0,i.toPathString)(d),options:p}})),placeForceOrder:(t,r,s,o={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("placeForceOrder","userId",t),(0,i.assertParamExists)("placeForceOrder","userSecret",r),(0,i.assertParamExists)("placeForceOrder","manualTradeForm",s);const n="/trade/place",c=new URL(n,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:s,queryParameters:p,requestConfig:d,path:n,configuration:e,pathTemplate:"/trade/place",httpMethod:"POST"}),d.data=(0,i.serializeDataIfNeeded)(s,d,e),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),placeOrder:(t,r,s,o,c={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("placeOrder","tradeId",t),(0,i.assertParamExists)("placeOrder","userId",r),(0,i.assertParamExists)("placeOrder","userSecret",s);const n="/trade/{tradeId}".replace("{tradeId}",encodeURIComponent(String(void 0!==t?t:"-tradeId-"))),u=new URL(n,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!==s&&(h.userSecret=s),p["Content-Type"]="application/json";let f=d&&d.headers?d.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},p),f),c.headers),(0,a.requestBeforeHook)({requestBody:o,queryParameters:h,requestConfig:l,path:n,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}}))}},t.TradingApiFp=function(e){const r=(0,t.TradingApiAxiosParamCreator)(e);return{cancelUserAccountOrder(t,a){return n(this,void 0,void 0,(function*(){const n={brokerage_order_id:t.brokerage_order_id},c=yield r.cancelUserAccountOrder(t.userId,t.userSecret,t.accountId,n,a);return(0,i.createRequestFunction)(c,s.default,o.BASE_PATH,e)}))},getOrderImpact(t,a){return n(this,void 0,void 0,(function*(){const n={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,n,a);return(0,i.createRequestFunction)(c,s.default,o.BASE_PATH,e)}))},getUserAccountQuotes(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.getUserAccountQuotes(t.userId,t.userSecret,t.symbols,t.accountId,t.useTicker,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},placeForceOrder(t,a){return n(this,void 0,void 0,(function*(){const n={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.placeForceOrder(t.userId,t.userSecret,n,a);return(0,i.createRequestFunction)(c,s.default,o.BASE_PATH,e)}))},placeOrder(t,a){return n(this,void 0,void 0,(function*(){const n={wait_to_confirm:t.wait_to_confirm},c=yield r.placeOrder(t.tradeId,t.userId,t.userSecret,n,a);return(0,i.createRequestFunction)(c,s.default,o.BASE_PATH,e)}))}}},t.TradingApiFactory=function(e,r,n){const s=(0,t.TradingApiFp)(e);return{cancelUserAccountOrder:(e,t)=>s.cancelUserAccountOrder(e,t).then((e=>e(n,r))),getOrderImpact:(e,t)=>s.getOrderImpact(e,t).then((e=>e(n,r))),getUserAccountQuotes:(e,t)=>s.getUserAccountQuotes(e,t).then((e=>e(n,r))),placeForceOrder:(e,t)=>s.placeForceOrder(e,t).then((e=>e(n,r))),placeOrder:(e,t)=>s.placeOrder(e,t).then((e=>e(n,r)))}};class c extends o.BaseAPI{cancelUserAccountOrder(e,r){return(0,t.TradingApiFp)(this.configuration).cancelUserAccountOrder(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)))}placeForceOrder(e,r){return(0,t.TradingApiFp)(this.configuration).placeForceOrder(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)))}}t.TradingApiGenerated=c},9819:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,s)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.TradingApi=void 0;const i=r(3171);s(r(3171),t);class o extends i.TradingApiGenerated{}t.TradingApi=o},288:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(s,i){function o(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.TransactionsAndReportingApiGenerated=t.TransactionsAndReportingApiFactory=t.TransactionsAndReportingApiFp=t.TransactionsAndReportingApiAxiosParamCreator=void 0;const s=r(1357),i=r(6479),o=r(7275),a=r(8917);t.TransactionsAndReportingApiAxiosParamCreator=function(e){return{getActivities:(t,r,s,o,c,u,d,l={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getActivities","userId",t),(0,i.assertParamExists)("getActivities","userSecret",r);const n="/activities",p=new URL(n,i.DUMMY_BASE_URL);let h;e&&(h=e.baseOptions);const f=Object.assign(Object.assign({method:"GET"},h),l),g=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:g,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:y,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==s&&(y.startDate=s instanceof Date?s.toISOString().substr(0,10):s),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 f.headers=Object.assign(Object.assign(Object.assign({},g),m),l.headers),(0,a.requestBeforeHook)({queryParameters:y,requestConfig:f,path:n,configuration:e,pathTemplate:"/activities",httpMethod:"GET"}),(0,i.setSearchParams)(p,y),{url:(0,i.toPathString)(p),options:f}})),getReportingCustomRange:(t,r,s,o,c,u,d,l={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getReportingCustomRange","startDate",t),(0,i.assertParamExists)("getReportingCustomRange","endDate",r),(0,i.assertParamExists)("getReportingCustomRange","userId",s),(0,i.assertParamExists)("getReportingCustomRange","userSecret",o);const n="/performance/custom",p=new URL(n,i.DUMMY_BASE_URL);let h;e&&(h=e.baseOptions);const f=Object.assign(Object.assign({method:"GET"},h),l),g=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:g,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!==s&&(y.userId=s),void 0!==o&&(y.userSecret=o);let m=h&&h.headers?h.headers:{};return f.headers=Object.assign(Object.assign(Object.assign({},g),m),l.headers),(0,a.requestBeforeHook)({queryParameters:y,requestConfig:f,path:n,configuration:e,pathTemplate:"/performance/custom",httpMethod:"GET"}),(0,i.setSearchParams)(p,y),{url:(0,i.toPathString)(p),options:f}}))}},t.TransactionsAndReportingApiFp=function(e){const r=(0,t.TransactionsAndReportingApiAxiosParamCreator)(e);return{getActivities(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.getActivities(t.userId,t.userSecret,t.startDate,t.endDate,t.accounts,t.brokerageAuthorizations,t.type,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},getReportingCustomRange(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.getReportingCustomRange(t.startDate,t.endDate,t.userId,t.userSecret,t.accounts,t.detailed,t.frequency,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))}}},t.TransactionsAndReportingApiFactory=function(e,r,n){const s=(0,t.TransactionsAndReportingApiFp)(e);return{getActivities:(e,t)=>s.getActivities(e,t).then((e=>e(n,r))),getReportingCustomRange:(e,t)=>s.getReportingCustomRange(e,t).then((e=>e(n,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},9900:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,s)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.TransactionsAndReportingApi=void 0;const i=r(288);s(r(288),t);class o extends i.TransactionsAndReportingApiGenerated{}t.TransactionsAndReportingApi=o},7275:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RequiredError=t.BaseAPI=t.COLLECTION_FORMATS=t.BASE_PATH=void 0;const n=r(1357);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,s=n.default){this.basePath=r,this.axios=s,e&&(this.configuration=e,this.basePath=e.basePath||this.basePath)}};class s extends Error{constructor(e,t){super(t),this.field=e,this.name="RequiredError"}}t.RequiredError=s},4085:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SnaptradeCustom=void 0,t.SnaptradeCustom=class{constructor(e){}}},9009:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Snaptrade=void 0;const n=r(3708),s=r(4438),i=r(4085);class o extends i.SnaptradeCustom{constructor(e={}){super(e);const t=new s.Configuration(e);this.accountInformation=new n.AccountInformationApi(t),this.apiStatus=new n.ApiStatusApi(t),this.authentication=new n.AuthenticationApi(t),this.connections=new n.ConnectionsApi(t),this.options=new n.OptionsApi(t),this.referenceData=new n.ReferenceDataApi(t),this.trading=new n.TradingApi(t),this.transactionsAndReporting=new n.TransactionsAndReportingApi(t)}}t.Snaptrade=o},6479:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(s,i){function o(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((n=n.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 s=r(7275),i=r(1357),o=r(4700),a=r(6642),c=r(7270);function u(e,t,r=""){"object"==typeof t?Array.isArray(t)?t.forEach((t=>u(e,t,r))):Object.keys(t).forEach((n=>u(e,t[n],`${r}${""!==r?".":""}${n}`))):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 s.RequiredError(t,`Required parameter ${t} was null or undefined when calling ${e}.`)},t.setApiKeyToObject=function({object:e,key:t,type:r,keyParamName:s,configuration:i,prefix:o}){return n(this,void 0,void 0,(function*(){t=t||s;let n=null;if(i&&i.apiKey)if("function"==typeof i.apiKey)n=yield i.apiKey(s);else if("string"==typeof i.apiKey)n=i.apiKey;else{if("object"!=typeof i.apiKey)throw Error(`Unexpected type ${typeof i.apiKey} for Configuration.apiKey`);s in i.apiKey&&(n=i.apiKey[s])}n&&(e[t]=void 0!==o?`${o}${n}`:n,"Cookie"===r&&(e[t]=`${s}=${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 n(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 n="string"!=typeof e;return(n&&r&&r.isJsonMime?r.isJsonMime(t.headers["Content-Type"]):n)?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,s){return(u=t,d=r)=>n(this,void 0,void 0,(function*(){(0,a.requestBeforeUrlHook)({axiosArgs:e,basePath:d,configuration:s});const t=((null==s?void 0:s.basePath)||d)+e.url;return yield(0,o.requestAfterHook)({axiosArgs:e,basePath:d,url:t,configuration:s}),function(e){var t,r,s,o,a;return n(this,void 0,void 0,(function*(){try{return yield e()}catch(e){if(e instanceof i.AxiosError&&e.isAxiosError)try{const n=(null===(t=e.response)||void 0===t?void 0:t.data)instanceof ReadableStream?yield(0,c.readableStreamToString)(e.response.data):null===(r=e.response)||void 0===r?void 0:r.data;throw new c.SnaptradeError(e,(0,c.parseIfJson)(n),null===(s=e.response)||void 0===s?void 0:s.headers)}catch(t){if(t instanceof ReferenceError)throw new c.SnaptradeError(e,null===(o=e.response)||void 0===o?void 0:o.data,null===(a=e.response)||void 0===a?void 0:a.headers);if(t instanceof c.SnaptradeError)throw t;throw e}throw e}}))}((()=>n(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}},4438:(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.43/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())}}},7270:function(e,t){"use strict";var r=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(s,i){function o(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.parseIfJson=t.readableStreamToString=t.SnaptradeError=void 0;class n extends Error{constructor(e,t,r){var n,s,i,o,a;super(e.message+"\nRESPONSE HEADERS:\n"+JSON.stringify(r,null,2)),this.name="SnaptradeError",this.code=e.code,this.method=null===(s=null===(n=e.config)||void 0===n?void 0:n.method)||void 0===s?void 0:s.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=n,t.readableStreamToString=function(e){return r(this,void 0,void 0,(function*(){const t=new TextDecoder,r=e.getReader();let n="";try{for(;;){const{done:e,value:s}=yield r.read();if(e)break;n+=t.decode(s,{stream:!0})}}finally{r.releaseLock()}return n}))},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}}},2316:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,s)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),s(r(3708),t),s(r(4438),t),s(r(8659),t),s(r(9009),t),s(r(7270),t)},8358:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9409:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},423:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3477:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8898:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8262:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6392:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2867:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9847:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1289:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3376:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2935:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3433:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7055:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8083:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8552:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8827:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3421:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7704:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},967:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6420:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1763:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},414:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9188:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},680:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},457:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3045:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3403:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2113:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8142:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5542:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8234:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8659:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,s)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),s(r(3376),t),s(r(9409),t),s(r(8358),t),s(r(3477),t),s(r(423),t),s(r(2867),t),s(r(8898),t),s(r(8262),t),s(r(6392),t),s(r(9847),t),s(r(1289),t),s(r(2935),t),s(r(3433),t),s(r(8083),t),s(r(7055),t),s(r(1763),t),s(r(967),t),s(r(8552),t),s(r(8827),t),s(r(7704),t),s(r(3421),t),s(r(6420),t),s(r(414),t),s(r(9188),t),s(r(680),t),s(r(457),t),s(r(3403),t),s(r(3045),t),s(r(8142),t),s(r(2113),t),s(r(5542),t),s(r(8234),t),s(r(6760),t),s(r(3146),t),s(r(5577),t),s(r(9143),t),s(r(7565),t),s(r(2158),t),s(r(993),t),s(r(9123),t),s(r(3826),t),s(r(2633),t),s(r(8752),t),s(r(9571),t),s(r(6195),t),s(r(1720),t),s(r(7742),t),s(r(831),t),s(r(7871),t),s(r(7446),t),s(r(5718),t),s(r(8707),t),s(r(4948),t),s(r(8159),t),s(r(3647),t),s(r(4189),t),s(r(8407),t),s(r(7170),t),s(r(3015),t),s(r(9416),t),s(r(1811),t),s(r(765),t),s(r(4609),t),s(r(2270),t),s(r(7120),t),s(r(1942),t),s(r(5583),t),s(r(7109),t),s(r(4984),t),s(r(2353),t),s(r(510),t),s(r(9494),t),s(r(9935),t),s(r(9098),t),s(r(5535),t),s(r(3115),t),s(r(6121),t),s(r(8793),t),s(r(8082),t),s(r(2015),t),s(r(8365),t),s(r(5959),t),s(r(3371),t),s(r(9637),t),s(r(2619),t),s(r(6342),t),s(r(8467),t),s(r(1918),t),s(r(3050),t),s(r(6261),t),s(r(54),t),s(r(1553),t),s(r(6903),t),s(r(8086),t),s(r(8646),t),s(r(4996),t),s(r(7899),t),s(r(7351),t),s(r(5867),t),s(r(4264),t),s(r(2659),t)},6760:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5577:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9143:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2158:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7565:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},993:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9123:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3146:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3826:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2633:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8752:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9571:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6195:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1720:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7742:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},831:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7871:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7446:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5718:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8707:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4948:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4189:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3647:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8159:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8407:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3015:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7170:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9416:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1811:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4609:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},765:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2270:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7120:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1942:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5583:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7109:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2353:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4984:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},510:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9494:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9935:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9098:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5535:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3115:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6121:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8793:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2015:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8082:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8365:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3371:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9637:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2619:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6342:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5959:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8467:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1918:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3050:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6261:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6903:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8086:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1553:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4996:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7899:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7351:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8646:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5867:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4264:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},54:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2659:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4700:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(s,i){function o(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.requestAfterHook=void 0,t.requestAfterHook=function(e){return n(this,void 0,void 0,(function*(){const{configuration:t,basePath:s,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(s,"").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 f=yield function(e,t){return n(this,void 0,void 0,(function*(){if("undefined"!=typeof process&&process.versions&&process.versions.node){const n=r(2349).createHmac("sha256",t);return n.update(e),n.digest("base64")}{const r=new TextEncoder,n=r.encode(t),s=r.encode(e),i=yield window.crypto.subtle.importKey("raw",n,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),o=yield window.crypto.subtle.sign("HMAC",i,s),a=Array.from(new Uint8Array(o));return btoa(String.fromCharCode.apply(null,a))}}))}(d,a);i.options.headers&&(i.options.headers.Signature=f)}))}},8917:(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()}},6642:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.requestBeforeUrlHook=void 0,t.requestBeforeUrlHook=function(e){}},2349:()=>{},1357:(e,t,r)=>{"use strict";function n(e,t){return function(){return e.apply(t,arguments)}}const{toString:s}=Object.prototype,{getPrototypeOf:i}=Object,o=(a=Object.create(null),e=>{const t=s.call(e);return a[t]||(a[t]=t.slice(8,-1).toLowerCase())});var a;const c=e=>(e=e.toLowerCase(),t=>o(t)===e),u=e=>t=>typeof t===e,{isArray:d}=Array,l=u("undefined"),p=c("ArrayBuffer"),h=u("string"),f=u("function"),g=u("number"),y=e=>null!==e&&"object"==typeof e,m=e=>{if("object"!==o(e))return!1;const t=i(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},b=c("Date"),A=c("File"),O=c("Blob"),P=c("FileList"),j=c("URLSearchParams"),[v,S,_,T]=["ReadableStream","Request","Response","Headers"].map(c);function E(e,t,{allOwnKeys:r=!1}={}){if(null==e)return;let n,s;if("object"!=typeof e&&(e=[e]),d(e))for(n=0,s=e.length;n<s;n++)t.call(null,e[n],n,e);else{const s=r?Object.getOwnPropertyNames(e):Object.keys(e),i=s.length;let o;for(n=0;n<i;n++)o=s[n],t.call(null,e[o],o,e)}}function k(e,t){t=t.toLowerCase();const r=Object.keys(e);let n,s=r.length;for(;s-- >0;)if(n=r[s],t===n.toLowerCase())return n;return null}const U="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:r.g,I=e=>!l(e)&&e!==U,w=(R="undefined"!=typeof Uint8Array&&i(Uint8Array),e=>R&&e instanceof R);var R;const B=c("HTMLFormElement"),x=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),M=c("RegExp"),C=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};E(r,((r,s)=>{let i;!1!==(i=t(r,s,e))&&(n[s]=i||r)})),Object.defineProperties(e,n)},q="abcdefghijklmnopqrstuvwxyz",N="0123456789",F={DIGIT:N,ALPHA:q,ALPHA_DIGIT:q+q.toUpperCase()+N},D=c("AsyncFunction"),L=(K="function"==typeof setImmediate,H=f(U.postMessage),K?setImmediate:H?(z=`axios@${Math.random()}`,G=[],U.addEventListener("message",(({source:e,data:t})=>{e===U&&t===z&&G.length&&G.shift()()}),!1),e=>{G.push(e),U.postMessage(z,"*")}):e=>setTimeout(e));var K,H,z,G;const Y="undefined"!=typeof queueMicrotask?queueMicrotask.bind(U):"undefined"!=typeof process&&process.nextTick||L;var J={isArray:d,isArrayBuffer:p,isBuffer:function(e){return null!==e&&!l(e)&&null!==e.constructor&&!l(e.constructor)&&f(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||f(e.append)&&("formdata"===(t=o(e))||"object"===t&&f(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&p(e.buffer),t},isString:h,isNumber:g,isBoolean:e=>!0===e||!1===e,isObject:y,isPlainObject:m,isReadableStream:v,isRequest:S,isResponse:_,isHeaders:T,isUndefined:l,isDate:b,isFile:A,isBlob:O,isRegExp:M,isFunction:f,isStream:e=>y(e)&&f(e.pipe),isURLSearchParams:j,isTypedArray:w,isFileList:P,forEach:E,merge:function e(){const{caseless:t}=I(this)&&this||{},r={},n=(n,s)=>{const i=t&&k(r,s)||s;m(r[i])&&m(n)?r[i]=e(r[i],n):m(n)?r[i]=e({},n):d(n)?r[i]=n.slice():r[i]=n};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&E(arguments[e],n);return r},extend:(e,t,r,{allOwnKeys:s}={})=>(E(t,((t,s)=>{r&&f(t)?e[s]=n(t,r):e[s]=t}),{allOwnKeys:s}),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,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,n)=>{let s,o,a;const c={};if(t=t||{},null==e)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)a=s[o],n&&!n(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:o,kindOfTest:c,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return-1!==n&&n===r},toArray:e=>{if(!e)return null;if(d(e))return e;let t=e.length;if(!g(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=r.next())&&!n.done;){const r=n.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>{let r;const n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:B,hasOwnProperty:x,hasOwnProp:x,reduceDescriptors:C,freezeMethods:e=>{C(e,((t,r)=>{if(f(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=e[r];f(n)&&(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={},n=e=>{e.forEach((e=>{r[e]=!0}))};return d(e)?n(e):n(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:k,global:U,isContextDefined:I,ALPHABET:F,generateString:(e=16,t=F.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r},isSpecCompliantForm:function(e){return!!(e&&f(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),r=(e,n)=>{if(y(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[n]=e;const s=d(e)?[]:{};return E(e,((e,t)=>{const i=r(e,n+1);!l(i)&&(s[t]=i)})),t[n]=void 0,s}}return e};return r(e,0)},isAsyncFn:D,isThenable:e=>e&&(y(e)||f(e))&&f(e.then)&&f(e.catch),setImmediate:L,asap:Y};function $(e,t,r,n,s){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),n&&(this.request=n),s&&(this.response=s)}J.inherits($,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:J.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Q=$.prototype,V={};function W(e){return J.isPlainObject(e)||J.isArray(e)}function X(e){return J.endsWith(e,"[]")?e.slice(0,-2):e}function Z(e,t,r){return e?e.concat(t).map((function(e,t){return e=X(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=>{V[e]={value:e}})),Object.defineProperties($,V),Object.defineProperty(Q,"isAxiosError",{value:!0}),$.from=(e,t,r,n,s,i)=>{const o=Object.create(Q);return J.toFlatObject(e,o,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),$.call(o,e.message,t,r,n,s),o.cause=e,o.name=e.name,i&&Object.assign(o,i),o};const ee=J.toFlatObject(J,{},null,(function(e){return/^is[A-Z]/.test(e)}));function te(e,t,r){if(!J.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const n=(r=J.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!J.isUndefined(t[e])}))).metaTokens,s=r.visitor||u,i=r.dots,o=r.indexes,a=(r.Blob||"undefined"!=typeof Blob&&Blob)&&J.isSpecCompliantForm(t);if(!J.isFunction(s))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(J.isDate(e))return e.toISOString();if(!a&&J.isBlob(e))throw new $("Blob is not supported. Use a Buffer instead.");return J.isArrayBuffer(e)||J.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,r,s){let a=e;if(e&&!s&&"object"==typeof e)if(J.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else if(J.isArray(e)&&function(e){return J.isArray(e)&&!e.some(W)}(e)||(J.isFileList(e)||J.endsWith(r,"[]"))&&(a=J.toArray(e)))return r=X(r),a.forEach((function(e,n){!J.isUndefined(e)&&null!==e&&t.append(!0===o?Z([r],n,i):null===o?r:r+"[]",c(e))})),!1;return!!W(e)||(t.append(Z(s,r,i),c(e)),!1)}const d=[],l=Object.assign(ee,{defaultVisitor:u,convertValue:c,isVisitable:W});if(!J.isObject(e))throw new TypeError("data must be an object");return function e(r,n){if(!J.isUndefined(r)){if(-1!==d.indexOf(r))throw Error("Circular reference detected in "+n.join("."));d.push(r),J.forEach(r,(function(r,i){!0===(!(J.isUndefined(r)||null===r)&&s.call(t,r,J.isString(i)?i.trim():i,n,l))&&e(r,n?n.concat(i):[i])})),d.pop()}}(e),t}function re(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function ne(e,t){this._pairs=[],e&&te(e,this,t)}const se=ne.prototype;function ie(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function oe(e,t,r){if(!t)return e;const n=r&&r.encode||ie,s=r&&r.serialize;let i;if(i=s?s(t,r):J.isURLSearchParams(t)?t.toString():new ne(t,r).toString(n),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,re)}:re;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var ae=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){J.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},ce={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ue={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:ne,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const de="undefined"!=typeof window&&"undefined"!=typeof document,le=(pe="undefined"!=typeof navigator&&navigator.product,de&&["ReactNative","NativeScript","NS"].indexOf(pe)<0);var pe;const he="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,fe=de&&window.location.href||"http://localhost";var ge={...Object.freeze({__proto__:null,hasBrowserEnv:de,hasStandardBrowserWebWorkerEnv:he,hasStandardBrowserEnv:le,origin:fe}),...ue};function ye(e){function t(e,r,n,s){let i=e[s++];if("__proto__"===i)return!0;const o=Number.isFinite(+i),a=s>=e.length;return i=!i&&J.isArray(n)?n.length:i,a?(J.hasOwnProp(n,i)?n[i]=[n[i],r]:n[i]=r,!o):(n[i]&&J.isObject(n[i])||(n[i]=[]),t(e,r,n[i],s)&&J.isArray(n[i])&&(n[i]=function(e){const t={},r=Object.keys(e);let n;const s=r.length;let i;for(n=0;n<s;n++)i=r[n],t[i]=e[i];return t}(n[i])),!o)}if(J.isFormData(e)&&J.isFunction(e.entries)){const r={};return J.forEachEntry(e,((e,n)=>{t(function(e){return J.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),n,r,0)})),r}return null}const me={transitional:ce,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,s=J.isObject(e);if(s&&J.isHTMLForm(e)&&(e=new FormData(e)),J.isFormData(e))return n?JSON.stringify(ye(e)):e;if(J.isArrayBuffer(e)||J.isBuffer(e)||J.isStream(e)||J.isFile(e)||J.isBlob(e)||J.isReadableStream(e))return e;if(J.isArrayBufferView(e))return e.buffer;if(J.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return te(e,new ge.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,n){return ge.isNode&&J.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=J.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return te(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return s||n?(t.setContentType("application/json",!1),function(e){if(J.isString(e))try{return(0,JSON.parse)(e),J.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||me.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(J.isResponse(e)||J.isReadableStream(e))return e;if(e&&J.isString(e)&&(r&&!this.responseType||n)){const r=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(e){if(r){if("SyntaxError"===e.name)throw $.from(e,$.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}}};J.forEach(["delete","get","head","post","put","patch"],(e=>{me.headers[e]={}}));var be=me;const Ae=J.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 Pe(e){return e&&String(e).trim().toLowerCase()}function je(e){return!1===e||null==e?e:J.isArray(e)?e.map(je):String(e)}function ve(e,t,r,n,s){return J.isFunction(n)?n.call(this,t,r):(s&&(t=r),J.isString(t)?J.isString(n)?-1!==t.indexOf(n):J.isRegExp(n)?n.test(t):void 0:void 0)}class Se{constructor(e){e&&this.set(e)}set(e,t,r){const n=this;function s(e,t,r){const s=Pe(t);if(!s)throw new Error("header name must be a non-empty string");const i=J.findKey(n,s);(!i||void 0===n[i]||!0===r||void 0===r&&!1!==n[i])&&(n[i||t]=je(e))}const i=(e,t)=>J.forEach(e,((e,r)=>s(e,r,t)));if(J.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(J.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let r,n,s;return e&&e.split("\n").forEach((function(e){s=e.indexOf(":"),r=e.substring(0,s).trim().toLowerCase(),n=e.substring(s+1).trim(),!r||t[r]&&Ae[r]||("set-cookie"===r?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)})),t})(e),t);else if(J.isHeaders(e))for(const[t,n]of e.entries())s(n,t,r);else null!=e&&s(t,e,r);return this}get(e,t){if(e=Pe(e)){const r=J.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 n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}(e);if(J.isFunction(t))return t.call(this,e,r);if(J.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Pe(e)){const r=J.findKey(this,e);return!(!r||void 0===this[r]||t&&!ve(0,this[r],r,t))}return!1}delete(e,t){const r=this;let n=!1;function s(e){if(e=Pe(e)){const s=J.findKey(r,e);!s||t&&!ve(0,r[s],s,t)||(delete r[s],n=!0)}}return J.isArray(e)?e.forEach(s):s(e),n}clear(e){const t=Object.keys(this);let r=t.length,n=!1;for(;r--;){const s=t[r];e&&!ve(0,this[s],s,e,!0)||(delete this[s],n=!0)}return n}normalize(e){const t=this,r={};return J.forEach(this,((n,s)=>{const i=J.findKey(r,s);if(i)return t[i]=je(n),void delete t[s];const o=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,r)=>t.toUpperCase()+r))}(s):String(s).trim();o!==s&&delete t[s],t[o]=je(n),r[o]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return J.forEach(this,((r,n)=>{null!=r&&!1!==r&&(t[n]=e&&J.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")}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 n(e){const n=Pe(e);t[n]||(function(e,t){const r=J.toCamelCase(" "+t);["get","set","has"].forEach((n=>{Object.defineProperty(e,n+r,{value:function(e,r,s){return this[n].call(this,t,e,r,s)},configurable:!0})}))}(r,e),t[n]=!0)}return J.isArray(e)?e.forEach(n):n(e),this}}Se.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),J.reduceDescriptors(Se.prototype,(({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}})),J.freezeMethods(Se);var _e=Se;function Te(e,t){const r=this||be,n=t||r,s=_e.from(n.headers);let i=n.data;return J.forEach(e,(function(e){i=e.call(r,i,s.normalize(),t?t.status:void 0)})),s.normalize(),i}function Ee(e){return!(!e||!e.__CANCEL__)}function ke(e,t,r){$.call(this,null==e?"canceled":e,$.ERR_CANCELED,t,r),this.name="CanceledError"}function Ue(e,t,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new $("Request failed with status code "+r.status,[$.ERR_BAD_REQUEST,$.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}J.inherits(ke,$,{__CANCEL__:!0});const Ie=(e,t,r=3)=>{let n=0;const s=function(e,t){e=e||10;const r=new Array(e),n=new Array(e);let s,i=0,o=0;return t=void 0!==t?t:1e3,function(a){const c=Date.now(),u=n[o];s||(s=c),r[i]=a,n[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-s<t)return;const p=u&&c-u;return p?Math.round(1e3*l/p):void 0}}(50,250);return function(e,t){let r,n,s=0,i=1e3/t;const o=(t,i=Date.now())=>{s=i,r=null,n&&(clearTimeout(n),n=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),a=t-s;a>=i?o(e,t):(r=e,n||(n=setTimeout((()=>{n=null,o(r)}),i-a)))},()=>r&&o(r)]}((r=>{const i=r.loaded,o=r.lengthComputable?r.total:void 0,a=i-n,c=s(a);n=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)},we=(e,t)=>{const r=null!=e;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Re=e=>(...t)=>J.asap((()=>e(...t)));var Be=ge.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let r;function n(r){let n=r;return e&&(t.setAttribute("href",n),n=t.href),t.setAttribute("href",n),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return r=n(window.location.href),function(e){const t=J.isString(e)?n(e):e;return t.protocol===r.protocol&&t.host===r.host}}():function(){return!0},xe=ge.hasStandardBrowserEnv?{write(e,t,r,n,s,i){const o=[e+"="+encodeURIComponent(t)];J.isNumber(r)&&o.push("expires="+new Date(r).toGMTString()),J.isString(n)&&o.push("path="+n),J.isString(s)&&o.push("domain="+s),!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 Me(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Ce=e=>e instanceof _e?{...e}:e;function qe(e,t){t=t||{};const r={};function n(e,t,r){return J.isPlainObject(e)&&J.isPlainObject(t)?J.merge.call({caseless:r},e,t):J.isPlainObject(t)?J.merge({},t):J.isArray(t)?t.slice():t}function s(e,t,r){return J.isUndefined(t)?J.isUndefined(e)?void 0:n(void 0,e,r):n(e,t,r)}function i(e,t){if(!J.isUndefined(t))return n(void 0,t)}function o(e,t){return J.isUndefined(t)?J.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function a(r,s,i){return i in t?n(r,s):i in e?n(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)=>s(Ce(e),Ce(t),!0)};return J.forEach(Object.keys(Object.assign({},e,t)),(function(n){const i=c[n]||s,o=i(e[n],t[n],n);J.isUndefined(o)&&i!==a||(r[n]=o)})),r}var Ne=e=>{const t=qe({},e);let r,{data:n,withXSRFToken:s,xsrfHeaderName:i,xsrfCookieName:o,headers:a,auth:c}=t;if(t.headers=a=_e.from(a),t.url=oe(Me(t.baseURL,t.url),e.params,e.paramsSerializer),c&&a.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),J.isFormData(n))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&&(s&&J.isFunction(s)&&(s=s(t)),s||!1!==s&&Be(t.url))){const e=i&&o&&xe.read(o);e&&a.set(i,e)}return t},Fe="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,r){const n=Ne(e);let s=n.data;const i=_e.from(n.headers).normalize();let o,a,c,u,d,{responseType:l,onUploadProgress:p,onDownloadProgress:h}=n;function f(){u&&u(),d&&d(),n.cancelToken&&n.cancelToken.unsubscribe(o),n.signal&&n.signal.removeEventListener("abort",o)}let g=new XMLHttpRequest;function y(){if(!g)return;const n=_e.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders());Ue((function(e){t(e),f()}),(function(e){r(e),f()}),{data:l&&"text"!==l&&"json"!==l?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:n,config:e,request:g}),g=null}g.open(n.method.toUpperCase(),n.url,!0),g.timeout=n.timeout,"onloadend"in g?g.onloadend=y:g.onreadystatechange=function(){g&&4===g.readyState&&(0!==g.status||g.responseURL&&0===g.responseURL.indexOf("file:"))&&setTimeout(y)},g.onabort=function(){g&&(r(new $("Request aborted",$.ECONNABORTED,e,g)),g=null)},g.onerror=function(){r(new $("Network Error",$.ERR_NETWORK,e,g)),g=null},g.ontimeout=function(){let t=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const s=n.transitional||ce;n.timeoutErrorMessage&&(t=n.timeoutErrorMessage),r(new $(t,s.clarifyTimeoutError?$.ETIMEDOUT:$.ECONNABORTED,e,g)),g=null},void 0===s&&i.setContentType(null),"setRequestHeader"in g&&J.forEach(i.toJSON(),(function(e,t){g.setRequestHeader(t,e)})),J.isUndefined(n.withCredentials)||(g.withCredentials=!!n.withCredentials),l&&"json"!==l&&(g.responseType=n.responseType),h&&([c,d]=Ie(h,!0),g.addEventListener("progress",c)),p&&g.upload&&([a,u]=Ie(p),g.upload.addEventListener("progress",a),g.upload.addEventListener("loadend",u)),(n.cancelToken||n.signal)&&(o=t=>{g&&(r(!t||t.type?new ke(null,e,g):t),g.abort(),g=null)},n.cancelToken&&n.cancelToken.subscribe(o),n.signal&&(n.signal.aborted?o():n.signal.addEventListener("abort",o)));const m=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(n.url);m&&-1===ge.protocols.indexOf(m)?r(new $("Unsupported protocol "+m+":",$.ERR_BAD_REQUEST,e)):g.send(s||null)}))},De=(e,t)=>{let r,n=new AbortController;const s=function(e){if(!r){r=!0,o();const t=e instanceof Error?e:this.reason;n.abort(t instanceof $?t:new ke(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{s(new $(`timeout ${t} of ms exceeded`,$.ETIMEDOUT))}),t);const o=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach((e=>{e&&(e.removeEventListener?e.removeEventListener("abort",s):e.unsubscribe(s))})),e=null)};e.forEach((e=>e&&e.addEventListener&&e.addEventListener("abort",s)));const{signal:a}=n;return a.unsubscribe=o,[a,()=>{i&&clearTimeout(i),i=null}]};const Le=function*(e,t){let r=e.byteLength;if(!t||r<t)return void(yield e);let n,s=0;for(;s<r;)n=s+t,yield e.slice(s,n),s=n},Ke=(e,t,r,n,s)=>{const i=async function*(e,t,r){for await(const n of e)yield*Le(ArrayBuffer.isView(n)?n:await r(String(n)),t)}(e,t,s);let o,a=0,c=e=>{o||(o=!0,n&&n(e))};return new ReadableStream({async pull(e){try{const{done:t,value:n}=await i.next();if(t)return c(),void e.close();let s=n.byteLength;if(r){let e=a+=s;r(e)}e.enqueue(new Uint8Array(n))}catch(e){throw c(e),e}},cancel:e=>(c(e),i.return())},{highWaterMark:2})},He="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,ze=He&&"function"==typeof ReadableStream,Ge=He&&("function"==typeof TextEncoder?(Ye=new TextEncoder,e=>Ye.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var Ye;const Je=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},$e=ze&&Je((()=>{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})),Qe=ze&&Je((()=>J.isReadableStream(new Response("").body))),Ve={stream:Qe&&(e=>e.body)};var We;He&&(We=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!Ve[e]&&(Ve[e]=J.isFunction(We[e])?t=>t[e]():(t,r)=>{throw new $(`Response type '${e}' is not supported`,$.ERR_NOT_SUPPORT,r)})})));const Xe={http:null,xhr:Fe,fetch:He&&(async e=>{let{url:t,method:r,data:n,signal:s,cancelToken:i,timeout:o,onDownloadProgress:a,onUploadProgress:c,responseType:u,headers:d,withCredentials:l="same-origin",fetchOptions:p}=Ne(e);u=u?(u+"").toLowerCase():"text";let h,f,[g,y]=s||i||o?De([s,i],o):[];const m=()=>{!h&&setTimeout((()=>{g&&g.unsubscribe()})),h=!0};let b;try{if(c&&$e&&"get"!==r&&"head"!==r&&0!==(b=await(async(e,t)=>{const r=J.toFiniteNumber(e.getContentLength());return null==r?(async e=>null==e?0:J.isBlob(e)?e.size:J.isSpecCompliantForm(e)?(await new Request(e).arrayBuffer()).byteLength:J.isArrayBufferView(e)||J.isArrayBuffer(e)?e.byteLength:(J.isURLSearchParams(e)&&(e+=""),J.isString(e)?(await Ge(e)).byteLength:void 0))(t):r})(d,n))){let e,r=new Request(t,{method:"POST",body:n,duplex:"half"});if(J.isFormData(n)&&(e=r.headers.get("content-type"))&&d.setContentType(e),r.body){const[e,t]=we(b,Ie(Re(c)));n=Ke(r.body,65536,e,t,Ge)}}J.isString(l)||(l=l?"include":"omit"),f=new Request(t,{...p,signal:g,method:r.toUpperCase(),headers:d.normalize().toJSON(),body:n,duplex:"half",credentials:l});let s=await fetch(f);const i=Qe&&("stream"===u||"response"===u);if(Qe&&(a||i)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=s[t]}));const t=J.toFiniteNumber(s.headers.get("content-length")),[r,n]=a&&we(t,Ie(Re(a),!0))||[];s=new Response(Ke(s.body,65536,r,(()=>{n&&n(),i&&m()}),Ge),e)}u=u||"text";let o=await Ve[J.findKey(Ve,u)||"text"](s,e);return!i&&m(),y&&y(),await new Promise(((t,r)=>{Ue(t,r,{data:o,headers:_e.from(s.headers),status:s.status,statusText:s.statusText,config:e,request:f})}))}catch(t){if(m(),t&&"TypeError"===t.name&&/fetch/i.test(t.message))throw Object.assign(new $("Network Error",$.ERR_NETWORK,e,f),{cause:t.cause||t});throw $.from(t,t&&t.code,e,f)}})};J.forEach(Xe,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const Ze=e=>`- ${e}`,et=e=>J.isFunction(e)||null===e||!1===e;var tt=e=>{e=J.isArray(e)?e:[e];const{length:t}=e;let r,n;const s={};for(let i=0;i<t;i++){let t;if(r=e[i],n=r,!et(r)&&(n=Xe[(t=String(r)).toLowerCase()],void 0===n))throw new $(`Unknown adapter '${t}'`);if(n)break;s[t||"#"+i]=n}if(!n){const e=Object.entries(s).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new $("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(Ze).join("\n"):" "+Ze(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return n};function rt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ke(null,e)}function nt(e){return rt(e),e.headers=_e.from(e.headers),e.data=Te.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),tt(e.adapter||be.adapter)(e).then((function(t){return rt(e),t.data=Te.call(e,e.transformResponse,t),t.headers=_e.from(t.headers),t}),(function(t){return Ee(t)||(rt(e),t&&t.response&&(t.response.data=Te.call(e,e.transformResponse,t.response),t.response.headers=_e.from(t.response.headers))),Promise.reject(t)}))}const st={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{st[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));const it={};st.transitional=function(e,t,r){function n(e,t){return"[Axios v1.7.4] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,s,i)=>{if(!1===e)throw new $(n(s," has been removed"+(t?" in "+t:"")),$.ERR_DEPRECATED);return t&&!it[s]&&(it[s]=!0,console.warn(n(s," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,s,i)}};var ot={assertOptions:function(e,t,r){if("object"!=typeof e)throw new $("options must be an object",$.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let s=n.length;for(;s-- >0;){const i=n[s],o=t[i];if(o){const t=e[i],r=void 0===t||o(t,i,e);if(!0!==r)throw new $("option "+i+" must be "+r,$.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new $("Unknown option "+i,$.ERR_BAD_OPTION)}},validators:st};const at=ot.validators;class ct{constructor(e){this.defaults=e,this.interceptors={request:new ae,response:new ae}}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=qe(this.defaults,t);const{transitional:r,paramsSerializer:n,headers:s}=t;void 0!==r&&ot.assertOptions(r,{silentJSONParsing:at.transitional(at.boolean),forcedJSONParsing:at.transitional(at.boolean),clarifyTimeoutError:at.transitional(at.boolean)},!1),null!=n&&(J.isFunction(n)?t.paramsSerializer={serialize:n}:ot.assertOptions(n,{encode:at.function,serialize:at.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=s&&J.merge(s.common,s[t.method]);s&&J.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete s[e]})),t.headers=_e.concat(i,s);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=[nt.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=nt.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 oe(Me((e=qe(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}J.forEach(["delete","get","head","options"],(function(e){ct.prototype[e]=function(t,r){return this.request(qe(r||{},{method:e,url:t,data:(r||{}).data}))}})),J.forEach(["post","put","patch"],(function(e){function t(t){return function(r,n,s){return this.request(qe(s||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}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 n=new Promise((e=>{r.subscribe(e),t=e})).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e((function(e,n,s){r.reason||(r.reason=new ke(e,n,s),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)}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 ft=function e(t){const r=new ut(t),s=n(ut.prototype.request,r);return J.extend(s,ut.prototype,r,{allOwnKeys:!0}),J.extend(s,r,null,{allOwnKeys:!0}),s.create=function(r){return e(qe(t,r))},s}(be);ft.Axios=ut,ft.CanceledError=ke,ft.CancelToken=lt,ft.isCancel=Ee,ft.VERSION="1.7.4",ft.toFormData=te,ft.AxiosError=$,ft.Cancel=ft.CanceledError,ft.all=function(e){return Promise.all(e)},ft.spread=function(e){return function(t){return e.apply(null,t)}},ft.isAxiosError=function(e){return J.isObject(e)&&!0===e.isAxiosError},ft.mergeConfig=qe,ft.AxiosHeaders=_e,ft.formToJSON=e=>ye(J.isHTMLForm(e)?new FormData(e):e),ft.getAdapter=tt,ft.HttpStatusCode=ht,ft.default=ft,e.exports=ft}},t={};function r(n){var s=t[n];if(void 0!==s)return s.exports;var i=t[n]={exports:{}};return e[n].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(2316)})()));
@@ -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.42/typescript" : param.userAgent;
35
+ this.userAgent = param.userAgent === undefined ? "Konfig/9.0.43/typescript" : param.userAgent;
36
36
  this.formDataCtor = param.formDataCtor;
37
37
  }
38
38
  /**
@@ -1,11 +1,11 @@
1
1
  /**
2
- * Symbol query for searching for symbols
2
+ *
3
3
  * @export
4
4
  * @interface SymbolQuery
5
5
  */
6
6
  export interface SymbolQuery {
7
7
  /**
8
- *
8
+ * The search query for symbols.
9
9
  * @type {string}
10
10
  * @memberof SymbolQuery
11
11
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "snaptrade-typescript-sdk",
3
- "version": "9.0.42",
3
+ "version": "9.0.43",
4
4
  "description": "Client for SnapTrade",
5
5
  "author": "Konfig",
6
6
  "engines": {