@globus/sdk 3.4.0 → 3.4.2
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/cjs/lib/core/authorization/AuthorizationManager.d.ts +1 -1
- package/cjs/lib/core/authorization/AuthorizationManager.d.ts.map +1 -1
- package/cjs/lib/core/authorization/AuthorizationManager.js +2 -2
- package/cjs/lib/core/authorization/AuthorizationManager.js.map +1 -1
- package/cjs/lib/core/errors.d.ts +18 -4
- package/cjs/lib/core/errors.d.ts.map +1 -1
- package/cjs/lib/core/errors.js +30 -7
- package/cjs/lib/core/errors.js.map +1 -1
- package/cjs/lib/core/info/private.d.ts +1 -1
- package/cjs/lib/core/info/private.d.ts.map +1 -1
- package/cjs/lib/core/info/private.js +1 -1
- package/cjs/lib/core/info/private.js.map +1 -1
- package/cjs/lib/core/info/version.d.ts +1 -1
- package/cjs/lib/core/info/version.js +1 -1
- package/cjs/lib/services/auth/index.d.ts +13 -0
- package/cjs/lib/services/auth/index.d.ts.map +1 -1
- package/cjs/lib/services/auth/index.js.map +1 -1
- package/cjs/lib/services/transfer/service/endpoint-manager/task.d.ts +1 -1
- package/cjs/lib/services/transfer/service/endpoint-manager/task.d.ts.map +1 -1
- package/cjs/package.json +1 -1
- package/esm/lib/core/authorization/AuthorizationManager.d.ts +1 -1
- package/esm/lib/core/authorization/AuthorizationManager.d.ts.map +1 -1
- package/esm/lib/core/authorization/AuthorizationManager.js +3 -3
- package/esm/lib/core/authorization/AuthorizationManager.js.map +1 -1
- package/esm/lib/core/errors.d.ts +18 -4
- package/esm/lib/core/errors.d.ts.map +1 -1
- package/esm/lib/core/errors.js +28 -6
- package/esm/lib/core/errors.js.map +1 -1
- package/esm/lib/core/info/private.d.ts +1 -1
- package/esm/lib/core/info/private.d.ts.map +1 -1
- package/esm/lib/core/info/private.js +1 -1
- package/esm/lib/core/info/private.js.map +1 -1
- package/esm/lib/core/info/version.d.ts +1 -1
- package/esm/lib/core/info/version.js +1 -1
- package/esm/lib/services/auth/index.d.ts +13 -0
- package/esm/lib/services/auth/index.d.ts.map +1 -1
- package/esm/lib/services/auth/index.js.map +1 -1
- package/esm/lib/services/transfer/service/endpoint-manager/task.d.ts +1 -1
- package/esm/lib/services/transfer/service/endpoint-manager/task.d.ts.map +1 -1
- package/package.json +1 -1
- package/umd/globus.production.js +1 -1
|
@@ -43,7 +43,7 @@ export type AuthorizationManagerConfiguration = {
|
|
|
43
43
|
*
|
|
44
44
|
* const manager = authorization.create({
|
|
45
45
|
* // Your registered Globus Application client ID.
|
|
46
|
-
*
|
|
46
|
+
* client: '...',
|
|
47
47
|
* // The redirect URL for your application; Where you will call `manager.handleCodeRedirect()`
|
|
48
48
|
* redirect: 'https://example.com/callback',
|
|
49
49
|
* // Known scopes required by your application.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuthorizationManager.d.ts","sourceRoot":"","sources":["../../../../../src/lib/core/authorization/AuthorizationManager.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAahD,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EACL,wBAAwB,EACxB,eAAe,EAEhB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C,OAAO,EAGL,8BAA8B,EAC9B,oBAAoB,
|
|
1
|
+
{"version":3,"file":"AuthorizationManager.d.ts","sourceRoot":"","sources":["../../../../../src/lib/core/authorization/AuthorizationManager.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAahD,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EACL,wBAAwB,EACxB,eAAe,EAEhB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C,OAAO,EAGL,8BAA8B,EAC9B,oBAAoB,EAErB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;;;;;;;OAQG;IACH,mBAAmB,CACjB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACjC,OAAO,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,IAAI,CAAC;QAAC,gBAAgB,CAAC,EAAE,wBAAwB,CAAC,QAAQ,CAAC,CAAA;KAAE,GAAG,IAAI,GACzF,IAAI;IACP,mBAAmB,CACjB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACjC,OAAO,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,KAAK,CAAC;QAAC,gBAAgB,CAAC,EAAE,wBAAwB,CAAC,QAAQ,CAAC,CAAA;KAAE,GAAG,KAAK,GAC3F,MAAM,IAAI;IA4Cb;;;OAGG;IACH,oCAAoC,CAClC,QAAQ,EAAE,8BAA8B,EACxC,OAAO,CAAC,EAAE;QAAE,gBAAgB,CAAC,EAAE,wBAAwB,CAAC,QAAQ,CAAC,CAAA;KAAE;IAYrE;;;OAGG;IACH,0BAA0B,CACxB,QAAQ,EAAE,oBAAoB,EAC9B,OAAO,CAAC,EAAE;QAAE,gBAAgB,CAAC,EAAE,wBAAwB,CAAC,QAAQ,CAAC,CAAA;KAAE;IAWrE;;;;OAIG;IACH,gBAAgB,UAAW,KAAK,GAAG,aAAa,UAM9C;IAEF;;;;OAIG;IACG,MAAM;CAoBb"}
|
|
@@ -62,7 +62,7 @@ const DEFAULT_HANDLE_ERROR_OPTIONS = {
|
|
|
62
62
|
*
|
|
63
63
|
* const manager = authorization.create({
|
|
64
64
|
* // Your registered Globus Application client ID.
|
|
65
|
-
*
|
|
65
|
+
* client: '...',
|
|
66
66
|
* // The redirect URL for your application; Where you will call `manager.handleCodeRedirect()`
|
|
67
67
|
* redirect: 'https://example.com/callback',
|
|
68
68
|
* // Known scopes required by your application.
|
|
@@ -275,7 +275,7 @@ class AuthorizationManager {
|
|
|
275
275
|
*/
|
|
276
276
|
handleAuthorizationRequirementsError(response, options) {
|
|
277
277
|
__classPrivateFieldSet(this, _AuthorizationManager_transport, __classPrivateFieldGet(this, _AuthorizationManager_instances, "m", _AuthorizationManager_buildTransport).call(this, {
|
|
278
|
-
params: Object.assign({
|
|
278
|
+
params: Object.assign(Object.assign({ prompt: 'login' }, (0, errors_js_1.toAuthorizationQueryParams)(response)), options === null || options === void 0 ? void 0 : options.additionalParams),
|
|
279
279
|
}), "f");
|
|
280
280
|
__classPrivateFieldGet(this, _AuthorizationManager_transport, "f").send();
|
|
281
281
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuthorizationManager.js","sourceRoot":"","sources":["../../../../../src/lib/core/authorization/AuthorizationManager.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAAuC;AAIvC,2DAMsC;AAEtC,kDAAgE;AAChE,4CAAmC;AAEnC,yCAAmC;AACnC,iEAIgC;AAChC,qDAA+C;AAE/C,
|
|
1
|
+
{"version":3,"file":"AuthorizationManager.js","sourceRoot":"","sources":["../../../../../src/lib/core/authorization/AuthorizationManager.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAAuC;AAIvC,2DAMsC;AAEtC,kDAAgE;AAChE,4CAAmC;AAEnC,yCAAmC;AACnC,iEAIgC;AAChC,qDAA+C;AAE/C,4CAMsB;AAyBtB,MAAM,qBAAqB,GAAG;IAC5B,gBAAgB,EAAE,KAAK;IACvB,aAAa,EAAE,sBAAsB;CACtC,CAAC;AAEF,MAAM,4BAA4B,GAAG;IACnC,OAAO,EAAE,IAAI;IACb,gBAAgB,EAAE,SAAS;CAC5B,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,MAAa,oBAAoB;IAO/B;;;OAGG;IACH,IAAI,aAAa;QACf,OAAO,uBAAA,IAAI,2CAAe,CAAC;IAC7B,CAAC;IAED;;OAEG;IACH,IAAI,aAAa,CAAC,KAAc;QAC9B,uBAAA,IAAI,uCAAkB,K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package/cjs/lib/core/errors.d.ts
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* import { errors } from "globus/sdk";
|
|
5
5
|
* if (errors.isConsentRequiredError(...)) { ... }
|
|
6
6
|
*/
|
|
7
|
+
import type { AuthorizationQueryParameters } from '../services/auth/index.js';
|
|
7
8
|
export declare class EnvironmentConfigurationError extends Error {
|
|
8
9
|
name: string;
|
|
9
10
|
constructor(variable: string, value: unknown);
|
|
@@ -19,14 +20,27 @@ export type ConsentRequiredError = {
|
|
|
19
20
|
[key: string]: unknown;
|
|
20
21
|
};
|
|
21
22
|
export declare function isConsentRequiredError(test: unknown): test is ConsentRequiredError;
|
|
23
|
+
/**
|
|
24
|
+
* An error that includes an `authorization_parameters` property, a.k.a "G.A.R.E".
|
|
25
|
+
*
|
|
26
|
+
* A well-known error shape is provided by services when additional authorization requirements must be met by the session.
|
|
27
|
+
* This object can be converted to parameters accepted by Globus Auth using `sdk.errors.toAuthorizationQueryParams()`.
|
|
28
|
+
*/
|
|
22
29
|
export type AuthorizationRequirementsError = {
|
|
23
30
|
authorization_parameters: {
|
|
24
|
-
session_message
|
|
25
|
-
session_required_identities
|
|
26
|
-
session_required_mfa
|
|
27
|
-
session_required_single_domain
|
|
31
|
+
session_message?: string;
|
|
32
|
+
session_required_identities?: string[];
|
|
33
|
+
session_required_mfa?: boolean;
|
|
34
|
+
session_required_single_domain?: string[];
|
|
35
|
+
session_required_policies?: string[];
|
|
36
|
+
prompt?: string;
|
|
37
|
+
required_scopes?: string[];
|
|
28
38
|
};
|
|
29
39
|
[key: string]: unknown;
|
|
30
40
|
};
|
|
41
|
+
/**
|
|
42
|
+
* Convert an `AuthorizationRequirementsError` to a query string object accepted by Globus Auth.
|
|
43
|
+
*/
|
|
44
|
+
export declare function toAuthorizationQueryParams(error: AuthorizationRequirementsError): AuthorizationQueryParameters;
|
|
31
45
|
export declare function isAuthorizationRequirementsError(test: unknown): test is AuthorizationRequirementsError;
|
|
32
46
|
//# sourceMappingURL=errors.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../../src/lib/core/errors.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../../src/lib/core/errors.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,2BAA2B,CAAC;AAE9E,qBAAa,6BAA8B,SAAQ,KAAK;IAC7C,IAAI,SAAmC;gBAEpC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO;CAK7C;AAED,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,IAAI,eAAe,CAExE;AAED,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,EAAE,iBAAiB,CAAC;IACxB,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB,CAAC;AAEF,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,IAAI,oBAAoB,CAOlF;AAED;;;;;GAKG;AACH,MAAM,MAAM,8BAA8B,GAAG;IAC3C,wBAAwB,EAAE;QACxB,eAAe,CAAC,EAAE,MAAM,CAAC;QACzB,2BAA2B,CAAC,EAAE,MAAM,EAAE,CAAC;QACvC,oBAAoB,CAAC,EAAE,OAAO,CAAC;QAC/B,8BAA8B,CAAC,EAAE,MAAM,EAAE,CAAC;QAC1C,yBAAyB,CAAC,EAAE,MAAM,EAAE,CAAC;QACrC,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;KAC5B,CAAC;IACF,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB,CAAC;AAKF;;GAEG;AACH,wBAAgB,0BAA0B,CACxC,KAAK,EAAE,8BAA8B,GACpC,4BAA4B,CAmB9B;AAED,wBAAgB,gCAAgC,CAC9C,IAAI,EAAE,OAAO,GACZ,IAAI,IAAI,8BAA8B,CAOxC"}
|
package/cjs/lib/core/errors.js
CHANGED
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* @module Errors
|
|
4
|
-
* @example
|
|
5
|
-
* import { errors } from "globus/sdk";
|
|
6
|
-
* if (errors.isConsentRequiredError(...)) { ... }
|
|
7
|
-
*/
|
|
8
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.isAuthorizationRequirementsError = exports.isConsentRequiredError = exports.isErrorWellFormed = exports.EnvironmentConfigurationError = void 0;
|
|
3
|
+
exports.isAuthorizationRequirementsError = exports.toAuthorizationQueryParams = exports.isConsentRequiredError = exports.isErrorWellFormed = exports.EnvironmentConfigurationError = void 0;
|
|
10
4
|
class EnvironmentConfigurationError extends Error {
|
|
11
5
|
constructor(variable, value) {
|
|
12
6
|
super();
|
|
@@ -27,6 +21,35 @@ function isConsentRequiredError(test) {
|
|
|
27
21
|
Array.isArray(test.required_scopes));
|
|
28
22
|
}
|
|
29
23
|
exports.isConsentRequiredError = isConsentRequiredError;
|
|
24
|
+
/**
|
|
25
|
+
* Keys that should not be included in the query string object (not recognized by Globus Auth).
|
|
26
|
+
*/
|
|
27
|
+
const NO_OP_KEYS = ['required_scopes'];
|
|
28
|
+
/**
|
|
29
|
+
* Convert an `AuthorizationRequirementsError` to a query string object accepted by Globus Auth.
|
|
30
|
+
*/
|
|
31
|
+
function toAuthorizationQueryParams(error) {
|
|
32
|
+
return Object.entries(error.authorization_parameters).reduce((acc, [key, v]) => {
|
|
33
|
+
/**
|
|
34
|
+
* Remove keys that are not recognized by Globus Auth and empty values.
|
|
35
|
+
*/
|
|
36
|
+
if (NO_OP_KEYS.includes(key) || v === undefined || v === null) {
|
|
37
|
+
return acc;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* All other values are converted to strings.
|
|
41
|
+
*/
|
|
42
|
+
let value = v;
|
|
43
|
+
if (Array.isArray(value)) {
|
|
44
|
+
value = value.join(',');
|
|
45
|
+
}
|
|
46
|
+
else if (typeof v === 'boolean') {
|
|
47
|
+
value = value ? 'true' : 'false';
|
|
48
|
+
}
|
|
49
|
+
return Object.assign(Object.assign({}, acc), { [key]: value });
|
|
50
|
+
}, {});
|
|
51
|
+
}
|
|
52
|
+
exports.toAuthorizationQueryParams = toAuthorizationQueryParams;
|
|
30
53
|
function isAuthorizationRequirementsError(test) {
|
|
31
54
|
return (isErrorWellFormed(test) &&
|
|
32
55
|
'authorization_parameters' in test &&
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../../../src/lib/core/errors.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../../../src/lib/core/errors.ts"],"names":[],"mappings":";;;AAQA,MAAa,6BAA8B,SAAQ,KAAK;IAGtD,YAAY,QAAgB,EAAE,KAAc;QAC1C,KAAK,EAAE,CAAC;QAHD,SAAI,GAAG,+BAA+B,CAAC;QAI9C,4EAA4E;QAC5E,IAAI,CAAC,OAAO,GAAG,4CAA4C,QAAQ,KAAK,KAAK,IAAI,CAAC;IACpF,CAAC;CACF;AARD,sEAQC;AAOD,SAAgB,iBAAiB,CAAC,IAAa;IAC7C,OAAO,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,IAAI,MAAM,IAAI,IAAI,IAAI,SAAS,IAAI,IAAI,CAAC;AAC1F,CAAC;AAFD,8CAEC;AAQD,SAAgB,sBAAsB,CAAC,IAAa;IAClD,OAAO,CACL,iBAAiB,CAAC,IAAI,CAAC;QACvB,IAAI,CAAC,IAAI,KAAK,iBAAiB;QAC/B,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|
2
2
|
/**
|
|
3
3
|
* @private
|
|
4
4
|
*/
|
|
5
|
-
export declare const CLIENT_INFO_HEADER = "X-Globus-
|
|
5
|
+
export declare const CLIENT_INFO_HEADER = "X-Globus-Client-Info";
|
|
6
6
|
/**
|
|
7
7
|
* Disable the client information header from being included in requests (enabled by default).
|
|
8
8
|
* @private
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"private.d.ts","sourceRoot":"","sources":["../../../../../src/lib/core/info/private.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAEvC;;GAEG;AACH,eAAO,MAAM,kBAAkB,
|
|
1
|
+
{"version":3,"file":"private.d.ts","sourceRoot":"","sources":["../../../../../src/lib/core/info/private.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAEvC;;GAEG;AACH,eAAO,MAAM,kBAAkB,yBAAyB,CAAC;AAGzD;;;GAGG;AACH,wBAAgB,OAAO,SAEtB;AAED;;;GAGG;AACH,wBAAgB,MAAM,SAErB;AAED;;;GAGG;AACH,wBAAgB,SAAS,YAExB;AAKD;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,EAAE,UAS3C"}
|
|
@@ -4,7 +4,7 @@ exports.toString = exports.isEnabled = exports.enable = exports.disable = export
|
|
|
4
4
|
/**
|
|
5
5
|
* @private
|
|
6
6
|
*/
|
|
7
|
-
exports.CLIENT_INFO_HEADER = `X-Globus-
|
|
7
|
+
exports.CLIENT_INFO_HEADER = `X-Globus-Client-Info`;
|
|
8
8
|
let ENABLED = true;
|
|
9
9
|
/**
|
|
10
10
|
* Disable the client information header from being included in requests (enabled by default).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"private.js","sourceRoot":"","sources":["../../../../../src/lib/core/info/private.ts"],"names":[],"mappings":";;;AAEA;;GAEG;AACU,QAAA,kBAAkB,GAAG,
|
|
1
|
+
{"version":3,"file":"private.js","sourceRoot":"","sources":["../../../../../src/lib/core/info/private.ts"],"names":[],"mappings":";;;AAEA;;GAEG;AACU,QAAA,kBAAkB,GAAG,sBAAsB,CAAC;AAEzD,IAAI,OAAO,GAAG,IAAI,CAAC;AACnB;;;GAGG;AACH,SAAgB,OAAO;IACrB,OAAO,GAAG,KAAK,CAAC;AAClB,CAAC;AAFD,0BAEC;AAED;;;GAGG;AACH,SAAgB,MAAM;IACpB,OAAO,GAAG,IAAI,CAAC;AACjB,CAAC;AAFD,wBAEC;AAED;;;GAGG;AACH,SAAgB,SAAS;IACvB,OAAO,OAAO,CAAC;AACjB,CAAC;AAFD,8BAEC;AAED,MAAM,eAAe,GAAG,GAAG,CAAC;AAC5B,MAAM,mBAAmB,GAAG,GAAG,CAAC;AAEhC;;;GAGG;AACH,SAAgB,QAAQ,CAAC,IAAmB;IAC1C,MAAM,KAAK,GAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IAClD,OAAO,KAAK;SACT,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CACT,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC;SACd,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,GAAG,GAAG,IAAI,KAAK,EAAE,CAAC;SACxC,IAAI,CAAC,mBAAmB,CAAC,CAC7B;SACA,IAAI,CAAC,eAAe,CAAC,CAAC;AAC3B,CAAC;AATD,4BASC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "3.4.
|
|
1
|
+
export declare const VERSION = "3.4.2";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
|
@@ -5,6 +5,19 @@ import type { Token, TokenWithRefresh, TokenResponse } from './types.js';
|
|
|
5
5
|
* @internal
|
|
6
6
|
*/
|
|
7
7
|
export declare const CONFIG: typeof AUTH;
|
|
8
|
+
/**
|
|
9
|
+
* Query parameters that can be passed to the authorization endpoint.
|
|
10
|
+
* @see https://docs.globus.org/api/auth/reference/#authorization_code_grant_preferred
|
|
11
|
+
* @see https://docs.globus.org/api/auth/sessions/#client-initiated-authns
|
|
12
|
+
*/
|
|
13
|
+
export type AuthorizationQueryParameters = {
|
|
14
|
+
prompt?: string;
|
|
15
|
+
session_message?: string;
|
|
16
|
+
session_required_identities?: string;
|
|
17
|
+
session_required_single_domain?: string;
|
|
18
|
+
session_required_mfa?: 'true' | 'false';
|
|
19
|
+
session_required_policies?: string;
|
|
20
|
+
};
|
|
8
21
|
export declare function getAuthorizationEndpoint(): string;
|
|
9
22
|
export declare function getTokenEndpoint(): string;
|
|
10
23
|
export * as identities from './service/identities.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/services/auth/index.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,IAAI,MAAM,aAAa,CAAC;AAEpC,OAAO,KAAK,EAAE,KAAK,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAEzE;;;GAGG;AACH,eAAO,MAAM,MAAM,aAAO,CAAC;AAE3B,wBAAgB,wBAAwB,WAEvC;AAED,wBAAgB,gBAAgB,WAE/B;AAED,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AACtD,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AAEpD,wBAAgB,OAAO,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,KAAK,CAEtD;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,gBAAgB,CAExE;AAED,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,aAAa,CAKhF"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/services/auth/index.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,IAAI,MAAM,aAAa,CAAC;AAEpC,OAAO,KAAK,EAAE,KAAK,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAEzE;;;GAGG;AACH,eAAO,MAAM,MAAM,aAAO,CAAC;AAE3B;;;;GAIG;AACH,MAAM,MAAM,4BAA4B,GAAG;IACzC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,2BAA2B,CAAC,EAAE,MAAM,CAAC;IACrC,8BAA8B,CAAC,EAAE,MAAM,CAAC;IACxC,oBAAoB,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IACxC,yBAAyB,CAAC,EAAE,MAAM,CAAC;CACpC,CAAC;AAEF,wBAAgB,wBAAwB,WAEvC;AAED,wBAAgB,gBAAgB,WAE/B;AAED,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AACtD,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AAEpD,wBAAgB,OAAO,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,KAAK,CAEtD;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,gBAAgB,CAExE;AAED,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,aAAa,CAKhF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/services/auth/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;GAKG;AACH,8CAA0C;AAE1C,kDAAoC;AAIpC;;;GAGG;AACU,QAAA,MAAM,GAAG,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/services/auth/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;GAKG;AACH,8CAA0C;AAE1C,kDAAoC;AAIpC;;;GAGG;AACU,QAAA,MAAM,GAAG,IAAI,CAAC;AAgB3B,SAAgB,wBAAwB;IACtC,OAAO,IAAA,cAAK,EAAC,IAAI,CAAC,EAAE,EAAE,sBAAsB,CAAC,CAAC;AAChD,CAAC;AAFD,4DAEC;AAED,SAAgB,gBAAgB;IAC9B,OAAO,IAAA,cAAK,EAAC,IAAI,CAAC,EAAE,EAAE,kBAAkB,CAAC,CAAC;AAC5C,CAAC;AAFD,4CAEC;AAED,sEAAsD;AACtD,oEAAoD;AAEpD,SAAgB,OAAO,CAAC,KAAc;IACpC,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,IAAI,cAAc,IAAI,KAAK,CAAC;AAChF,CAAC;AAFD,0BAEC;AAED,SAAgB,cAAc,CAAC,KAAc;IAC3C,OAAO,OAAO,CAAC,KAAK,CAAC,IAAI,KAAK,KAAK,IAAI,IAAI,eAAe,IAAI,KAAK,CAAC;AACtE,CAAC;AAFD,wCAEC;AAED,SAAgB,yBAAyB,CAAC,KAAc;IACtD;;OAEG;IACH,OAAO,OAAO,CAAC,KAAK,CAAC,IAAI,KAAK,KAAK,IAAI,IAAI,iBAAiB,IAAI,KAAK,CAAC;AACxE,CAAC;AALD,8DAKC"}
|
|
@@ -116,5 +116,5 @@ export declare const getPauseInfo: (task_id: string, options?: ({
|
|
|
116
116
|
[key: string]: string | number | boolean | (string | number | null | undefined)[] | null | undefined;
|
|
117
117
|
} | undefined;
|
|
118
118
|
headers?: import("../../../../services/types.js").Headers | undefined;
|
|
119
|
-
}) | undefined, sdkOptions?: import("../../../../services/types.js").SDKOptions | undefined) => Promise<JSONFetchResponse<Globus.Transfer.
|
|
119
|
+
}) | undefined, sdkOptions?: import("../../../../services/types.js").SDKOptions | undefined) => Promise<JSONFetchResponse<Globus.Transfer.PauseInfoLimitedDocument>>;
|
|
120
120
|
//# sourceMappingURL=task.d.ts.map
|
|
@@ -1 +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AAC;AAEF;;GAEG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;gGAI1B,QAAQ,kBAAkB,eAAe,CAAC,yBAAyB,CAAC,CAgBtE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,KAAK;;;mKAGf,QAAQ,kBAAkB,eAAe,CAAC,0BAA0B,CAAC,CActE,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,MAAM;;;mKAGhB,QAAQ,kBAAkB,eAAe,CAAC,mBAAmB,CAAC,CAc/D,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,YAAY;;;;;;;;gGAItB,QAAQ,kBAAkB,eAAe,CAAC,wBAAwB,CAAC,CAgBrE,CAAC"}
|
package/cjs/package.json
CHANGED
|
@@ -43,7 +43,7 @@ export type AuthorizationManagerConfiguration = {
|
|
|
43
43
|
*
|
|
44
44
|
* const manager = authorization.create({
|
|
45
45
|
* // Your registered Globus Application client ID.
|
|
46
|
-
*
|
|
46
|
+
* client: '...',
|
|
47
47
|
* // The redirect URL for your application; Where you will call `manager.handleCodeRedirect()`
|
|
48
48
|
* redirect: 'https://example.com/callback',
|
|
49
49
|
* // Known scopes required by your application.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuthorizationManager.d.ts","sourceRoot":"","sources":["../../../../../src/lib/core/authorization/AuthorizationManager.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAahD,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EACL,wBAAwB,EACxB,eAAe,EAEhB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C,OAAO,EAGL,8BAA8B,EAC9B,oBAAoB,
|
|
1
|
+
{"version":3,"file":"AuthorizationManager.d.ts","sourceRoot":"","sources":["../../../../../src/lib/core/authorization/AuthorizationManager.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,OAAO,MAAM,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OAGG;IACH,KAAK;IAuCL;;OAEG;IACH,KAAK,CAAC,OAAO;;KAA2B;IAUxC;;OAEG;IACG,kBAAkB,CACtB,OAAO,GAAE;QACP,aAAa,EAAE,eAAe,CAAC,eAAe,CAAC,CAAC;QAChD,gBAAgB,CAAC,EAAE,wBAAwB,CAAC,QAAQ,CAAC,CAAC;KACP;IAenD;;;;;;;;OAQG;IACH,mBAAmB,CACjB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACjC,OAAO,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,IAAI,CAAC;QAAC,gBAAgB,CAAC,EAAE,wBAAwB,CAAC,QAAQ,CAAC,CAAA;KAAE,GAAG,IAAI,GACzF,IAAI;IACP,mBAAmB,CACjB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACjC,OAAO,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,KAAK,CAAC;QAAC,gBAAgB,CAAC,EAAE,wBAAwB,CAAC,QAAQ,CAAC,CAAA;KAAE,GAAG,KAAK,GAC3F,MAAM,IAAI;IA4Cb;;;OAGG;IACH,oCAAoC,CAClC,QAAQ,EAAE,8BAA8B,EACxC,OAAO,CAAC,EAAE;QAAE,gBAAgB,CAAC,EAAE,wBAAwB,CAAC,QAAQ,CAAC,CAAA;KAAE;IAYrE;;;OAGG;IACH,0BAA0B,CACxB,QAAQ,EAAE,oBAAoB,EAC9B,OAAO,CAAC,EAAE;QAAE,gBAAgB,CAAC,EAAE,wBAAwB,CAAC,QAAQ,CAAC,CAAA;KAAE;IAWrE;;;;OAIG;IACH,gBAAgB,UAAW,KAAK,GAAG,aAAa,UAM9C;IAEF;;;;OAIG;IACG,MAAM;CAoBb"}
|
|
@@ -26,7 +26,7 @@ import { log } from '../logger.js';
|
|
|
26
26
|
import { Event } from './Event.js';
|
|
27
27
|
import { RedirectTransport, } from './RedirectTransport.js';
|
|
28
28
|
import { TokenLookup } from './TokenLookup.js';
|
|
29
|
-
import { isConsentRequiredError, isAuthorizationRequirementsError, } from '../errors.js';
|
|
29
|
+
import { isConsentRequiredError, isAuthorizationRequirementsError, toAuthorizationQueryParams, } from '../errors.js';
|
|
30
30
|
const DEFAULT_CONFIGURATION = {
|
|
31
31
|
useRefreshTokens: false,
|
|
32
32
|
defaultScopes: 'openid profile email',
|
|
@@ -59,7 +59,7 @@ const DEFAULT_HANDLE_ERROR_OPTIONS = {
|
|
|
59
59
|
*
|
|
60
60
|
* const manager = authorization.create({
|
|
61
61
|
* // Your registered Globus Application client ID.
|
|
62
|
-
*
|
|
62
|
+
* client: '...',
|
|
63
63
|
* // The redirect URL for your application; Where you will call `manager.handleCodeRedirect()`
|
|
64
64
|
* redirect: 'https://example.com/callback',
|
|
65
65
|
* // Known scopes required by your application.
|
|
@@ -272,7 +272,7 @@ export class AuthorizationManager {
|
|
|
272
272
|
*/
|
|
273
273
|
handleAuthorizationRequirementsError(response, options) {
|
|
274
274
|
__classPrivateFieldSet(this, _AuthorizationManager_transport, __classPrivateFieldGet(this, _AuthorizationManager_instances, "m", _AuthorizationManager_buildTransport).call(this, {
|
|
275
|
-
params: Object.assign({
|
|
275
|
+
params: Object.assign(Object.assign({ prompt: 'login' }, toAuthorizationQueryParams(response)), options === null || options === void 0 ? void 0 : options.additionalParams),
|
|
276
276
|
}), "f");
|
|
277
277
|
__classPrivateFieldGet(this, _AuthorizationManager_transport, "f").send();
|
|
278
278
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuthorizationManager.js","sourceRoot":"","sources":["../../../../../src/lib/core/authorization/AuthorizationManager.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAIvC,OAAO,EACL,wBAAwB,EACxB,gBAAgB,EAChB,yBAAyB,EACzB,cAAc,EACd,MAAM,GACP,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAChE,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AAEnC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAGL,iBAAiB,GAClB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C,OAAO,EACL,sBAAsB,EACtB,gCAAgC,
|
|
1
|
+
{"version":3,"file":"AuthorizationManager.js","sourceRoot":"","sources":["../../../../../src/lib/core/authorization/AuthorizationManager.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAIvC,OAAO,EACL,wBAAwB,EACxB,gBAAgB,EAChB,yBAAyB,EACzB,cAAc,EACd,MAAM,GACP,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAChE,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AAEnC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAGL,iBAAiB,GAClB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C,OAAO,EACL,sBAAsB,EACtB,gCAAgC,EAGhC,0BAA0B,GAC3B,MAAM,cAAc,CAAC;AAyBtB,MAAM,qBAAqB,GAAG;IAC5B,gBAAgB,EAAE,KAAK;IACvB,aAAa,EAAE,sBAAsB;CACtC,CAAC;AAEF,MAAM,4BAA4B,GAAG;IACnC,OAAO,EAAE,IAAI;IACb,gBAAgB,EAAE,SAAS;CAC5B,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,MAAM,OAAO,oBAAoB;IAO/B;;;OAGG;IACH,IAAI,aAAa;QACf,OAAO,uBAAA,IAAI,2CAAe,CAAC;IAC7B,CAAC;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
|
*/
|
|
7
|
+
import type { AuthorizationQueryParameters } from '../services/auth/index.js';
|
|
7
8
|
export declare class EnvironmentConfigurationError extends Error {
|
|
8
9
|
name: string;
|
|
9
10
|
constructor(variable: string, value: unknown);
|
|
@@ -19,14 +20,27 @@ export type ConsentRequiredError = {
|
|
|
19
20
|
[key: string]: unknown;
|
|
20
21
|
};
|
|
21
22
|
export declare function isConsentRequiredError(test: unknown): test is ConsentRequiredError;
|
|
23
|
+
/**
|
|
24
|
+
* An error that includes an `authorization_parameters` property, a.k.a "G.A.R.E".
|
|
25
|
+
*
|
|
26
|
+
* A well-known error shape is provided by services when additional authorization requirements must be met by the session.
|
|
27
|
+
* This object can be converted to parameters accepted by Globus Auth using `sdk.errors.toAuthorizationQueryParams()`.
|
|
28
|
+
*/
|
|
22
29
|
export type AuthorizationRequirementsError = {
|
|
23
30
|
authorization_parameters: {
|
|
24
|
-
session_message
|
|
25
|
-
session_required_identities
|
|
26
|
-
session_required_mfa
|
|
27
|
-
session_required_single_domain
|
|
31
|
+
session_message?: string;
|
|
32
|
+
session_required_identities?: string[];
|
|
33
|
+
session_required_mfa?: boolean;
|
|
34
|
+
session_required_single_domain?: string[];
|
|
35
|
+
session_required_policies?: string[];
|
|
36
|
+
prompt?: string;
|
|
37
|
+
required_scopes?: string[];
|
|
28
38
|
};
|
|
29
39
|
[key: string]: unknown;
|
|
30
40
|
};
|
|
41
|
+
/**
|
|
42
|
+
* Convert an `AuthorizationRequirementsError` to a query string object accepted by Globus Auth.
|
|
43
|
+
*/
|
|
44
|
+
export declare function toAuthorizationQueryParams(error: AuthorizationRequirementsError): AuthorizationQueryParameters;
|
|
31
45
|
export declare function isAuthorizationRequirementsError(test: unknown): test is AuthorizationRequirementsError;
|
|
32
46
|
//# sourceMappingURL=errors.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../../src/lib/core/errors.ts"],"names":[],"mappings":"AAAA;;;;;GA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C,CAC9C,IAAI,EAAE,OAAO,GACZ,IAAI,IAAI,8BAA8B,CAOxC"}
|
package/esm/lib/core/errors.js
CHANGED
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module Errors
|
|
3
|
-
* @example
|
|
4
|
-
* import { errors } from "globus/sdk";
|
|
5
|
-
* if (errors.isConsentRequiredError(...)) { ... }
|
|
6
|
-
*/
|
|
7
1
|
export class EnvironmentConfigurationError extends Error {
|
|
8
2
|
constructor(variable, value) {
|
|
9
3
|
super();
|
|
@@ -21,6 +15,34 @@ export function isConsentRequiredError(test) {
|
|
|
21
15
|
'required_scopes' in test &&
|
|
22
16
|
Array.isArray(test.required_scopes));
|
|
23
17
|
}
|
|
18
|
+
/**
|
|
19
|
+
* Keys that should not be included in the query string object (not recognized by Globus Auth).
|
|
20
|
+
*/
|
|
21
|
+
const NO_OP_KEYS = ['required_scopes'];
|
|
22
|
+
/**
|
|
23
|
+
* Convert an `AuthorizationRequirementsError` to a query string object accepted by Globus Auth.
|
|
24
|
+
*/
|
|
25
|
+
export function toAuthorizationQueryParams(error) {
|
|
26
|
+
return Object.entries(error.authorization_parameters).reduce((acc, [key, v]) => {
|
|
27
|
+
/**
|
|
28
|
+
* Remove keys that are not recognized by Globus Auth and empty values.
|
|
29
|
+
*/
|
|
30
|
+
if (NO_OP_KEYS.includes(key) || v === undefined || v === null) {
|
|
31
|
+
return acc;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* All other values are converted to strings.
|
|
35
|
+
*/
|
|
36
|
+
let value = v;
|
|
37
|
+
if (Array.isArray(value)) {
|
|
38
|
+
value = value.join(',');
|
|
39
|
+
}
|
|
40
|
+
else if (typeof v === 'boolean') {
|
|
41
|
+
value = value ? 'true' : 'false';
|
|
42
|
+
}
|
|
43
|
+
return Object.assign(Object.assign({}, acc), { [key]: value });
|
|
44
|
+
}, {});
|
|
45
|
+
}
|
|
24
46
|
export function isAuthorizationRequirementsError(test) {
|
|
25
47
|
return (isErrorWellFormed(test) &&
|
|
26
48
|
'authorization_parameters' in test &&
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../../../src/lib/core/errors.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../../../src/lib/core/errors.ts"],"names":[],"mappings":"AAQA,MAAM,OAAO,6BAA8B,SAAQ,KAAK;IAGtD,YAAY,QAAgB,EAAE,KAAc;QAC1C,KAAK,EAAE,CAAC;QAHD,SAAI,GAAG,+BAA+B,CAAC;QAI9C,4EAA4E;QAC5E,IAAI,CAAC,OAAO,GAAG,4CAA4C,QAAQ,KAAK,KAAK,IAAI,CAAC;IACpF,CAAC;CACF;AAOD,MAAM,UAAU,iBAAiB,CAAC,IAAa;IAC7C,OAAO,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,IAAI,MAAM,IAAI,IAAI,IAAI,SAAS,IAAI,IAAI,CAAC;AAC1F,CAAC;AAQD,MAAM,UAAU,sBAAsB,CAAC,IAAa;IAClD,OAAO,CACL,iBAAiB,CAAC,IAAI,CAAC;QACvB,IAAI,CAAC,IAAI,KAAK,iBAAiB;QAC/B,iBAAiB,IAAI,IAAI;QACzB,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,eAAe,CAAC,CACpC,CAAC;AACJ,CAAC;AAoBD;;GAEG;AACH,MAAM,UAAU,GAA6C,CAAC,iBAAiB,CAAC,CAAC;AACjF;;GAEG;AACH,MAAM,UAAU,0BAA0B,CACxC,KAAqC;IAErC,OAAO,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,wBAAwB,CAAC,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,CAAC,GAAG,EAAE,CAAC,CAAC,EAAE,EAAE;QAC7E;;WAEG;QACH,IAAI,UAAU,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,SAAS,IAAI,CAAC,KAAK,IAAI,EAAE,CAAC;YAC9D,OAAO,GAAG,CAAC;QACb,CAAC;QACD;;WAEG;QACH,IAAI,KAAK,GAAG,CAAC,CAAC;QACd,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;YACzB,KAAK,GAAG,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAC1B,CAAC;aAAM,IAAI,OAAO,CAAC,KAAK,SAAS,EAAE,CAAC;YAClC,KAAK,GAAG,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC;QACnC,CAAC;QACD,uCAAY,GAAG,KAAE,CAAC,GAAG,CAAC,EAAE,KAAK,IAAG;IAClC,CAAC,EAAE,EAAE,CAAC,CAAC;AACT,CAAC;AAED,MAAM,UAAU,gCAAgC,CAC9C,IAAa;IAEb,OAAO,CACL,iBAAiB,CAAC,IAAI,CAAC;QACvB,0BAA0B,IAAI,IAAI;QAClC,OAAO,IAAI,CAAC,wBAAwB,KAAK,QAAQ;QACjD,IAAI,CAAC,wBAAwB,KAAK,IAAI,CACvC,CAAC;AACJ,CAAC"}
|
|
@@ -2,7 +2,7 @@ import type { Info } from './index.js';
|
|
|
2
2
|
/**
|
|
3
3
|
* @private
|
|
4
4
|
*/
|
|
5
|
-
export declare const CLIENT_INFO_HEADER = "X-Globus-
|
|
5
|
+
export declare const CLIENT_INFO_HEADER = "X-Globus-Client-Info";
|
|
6
6
|
/**
|
|
7
7
|
* Disable the client information header from being included in requests (enabled by default).
|
|
8
8
|
* @private
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"private.d.ts","sourceRoot":"","sources":["../../../../../src/lib/core/info/private.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAEvC;;GAEG;AACH,eAAO,MAAM,kBAAkB,
|
|
1
|
+
{"version":3,"file":"private.d.ts","sourceRoot":"","sources":["../../../../../src/lib/core/info/private.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAEvC;;GAEG;AACH,eAAO,MAAM,kBAAkB,yBAAyB,CAAC;AAGzD;;;GAGG;AACH,wBAAgB,OAAO,SAEtB;AAED;;;GAGG;AACH,wBAAgB,MAAM,SAErB;AAED;;;GAGG;AACH,wBAAgB,SAAS,YAExB;AAKD;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,EAAE,UAS3C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"private.js","sourceRoot":"","sources":["../../../../../src/lib/core/info/private.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,
|
|
1
|
+
{"version":3,"file":"private.js","sourceRoot":"","sources":["../../../../../src/lib/core/info/private.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,sBAAsB,CAAC;AAEzD,IAAI,OAAO,GAAG,IAAI,CAAC;AACnB;;;GAGG;AACH,MAAM,UAAU,OAAO;IACrB,OAAO,GAAG,KAAK,CAAC;AAClB,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,MAAM;IACpB,OAAO,GAAG,IAAI,CAAC;AACjB,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,SAAS;IACvB,OAAO,OAAO,CAAC;AACjB,CAAC;AAED,MAAM,eAAe,GAAG,GAAG,CAAC;AAC5B,MAAM,mBAAmB,GAAG,GAAG,CAAC;AAEhC;;;GAGG;AACH,MAAM,UAAU,QAAQ,CAAC,IAAmB;IAC1C,MAAM,KAAK,GAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IAClD,OAAO,KAAK;SACT,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CACT,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC;SACd,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,GAAG,GAAG,IAAI,KAAK,EAAE,CAAC;SACxC,IAAI,CAAC,mBAAmB,CAAC,CAC7B;SACA,IAAI,CAAC,eAAe,CAAC,CAAC;AAC3B,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "3.4.
|
|
1
|
+
export declare const VERSION = "3.4.2";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
|
@@ -5,6 +5,19 @@ import type { Token, TokenWithRefresh, TokenResponse } from './types.js';
|
|
|
5
5
|
* @internal
|
|
6
6
|
*/
|
|
7
7
|
export declare const CONFIG: typeof AUTH;
|
|
8
|
+
/**
|
|
9
|
+
* Query parameters that can be passed to the authorization endpoint.
|
|
10
|
+
* @see https://docs.globus.org/api/auth/reference/#authorization_code_grant_preferred
|
|
11
|
+
* @see https://docs.globus.org/api/auth/sessions/#client-initiated-authns
|
|
12
|
+
*/
|
|
13
|
+
export type AuthorizationQueryParameters = {
|
|
14
|
+
prompt?: string;
|
|
15
|
+
session_message?: string;
|
|
16
|
+
session_required_identities?: string;
|
|
17
|
+
session_required_single_domain?: string;
|
|
18
|
+
session_required_mfa?: 'true' | 'false';
|
|
19
|
+
session_required_policies?: string;
|
|
20
|
+
};
|
|
8
21
|
export declare function getAuthorizationEndpoint(): string;
|
|
9
22
|
export declare function getTokenEndpoint(): string;
|
|
10
23
|
export * as identities from './service/identities.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/services/auth/index.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,IAAI,MAAM,aAAa,CAAC;AAEpC,OAAO,KAAK,EAAE,KAAK,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAEzE;;;GAGG;AACH,eAAO,MAAM,MAAM,aAAO,CAAC;AA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AExE;AAED,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,aAAa,CAKhF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/services/auth/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAE1C,OAAO,KAAK,IAAI,MAAM,aAAa,CAAC;AAIpC;;;GAGG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/services/auth/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAE1C,OAAO,KAAK,IAAI,MAAM,aAAa,CAAC;AAIpC;;;GAGG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,IAAI,CAAC;AAgB3B,MAAM,UAAU,wBAAwB;IACtC,OAAO,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,sBAAsB,CAAC,CAAC;AAChD,CAAC;AAED,MAAM,UAAU,gBAAgB;IAC9B,OAAO,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,kBAAkB,CAAC,CAAC;AAC5C,CAAC;AAED,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AACtD,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AAEpD,MAAM,UAAU,OAAO,CAAC,KAAc;IACpC,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,IAAI,cAAc,IAAI,KAAK,CAAC;AAChF,CAAC;AAED,MAAM,UAAU,cAAc,CAAC,KAAc;IAC3C,OAAO,OAAO,CAAC,KAAK,CAAC,IAAI,KAAK,KAAK,IAAI,IAAI,eAAe,IAAI,KAAK,CAAC;AACtE,CAAC;AAED,MAAM,UAAU,yBAAyB,CAAC,KAAc;IACtD;;OAEG;IACH,OAAO,OAAO,CAAC,KAAK,CAAC,IAAI,KAAK,KAAK,IAAI,IAAI,iBAAiB,IAAI,KAAK,CAAC;AACxE,CAAC"}
|
|
@@ -116,5 +116,5 @@ export declare const getPauseInfo: (task_id: string, options?: ({
|
|
|
116
116
|
[key: string]: string | number | boolean | (string | number | null | undefined)[] | null | undefined;
|
|
117
117
|
} | undefined;
|
|
118
118
|
headers?: import("../../../../services/types.js").Headers | undefined;
|
|
119
|
-
}) | undefined, sdkOptions?: import("../../../../services/types.js").SDKOptions | undefined) => Promise<JSONFetchResponse<Globus.Transfer.
|
|
119
|
+
}) | undefined, sdkOptions?: import("../../../../services/types.js").SDKOptions | undefined) => Promise<JSONFetchResponse<Globus.Transfer.PauseInfoLimitedDocument>>;
|
|
120
120
|
//# sourceMappingURL=task.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/services/transfer/service/endpoint-manager/task.ts"],"names":[],"mappings":";;;;;AAGA,OAAO,KAAK,EAGV,iBAAiB,EAClB,MAAM,+BAA+B,CAAC;AAEvC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE/C;;GAEG;AACH,eAAO,MAAM,MAAM;;;mKAGhB,QACD,kBACE;IACE,SAAS,EAAE,WAAW,CAAC;IACvB,IAAI,EAAE,eAAe,CAAC,2BAA2B,EAAE,CAAC;CACrD,GAAG,QAAQ,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAC,CAAC,UAAU,CAAC,CAC9C,CAcD,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,GAAG;;;;;;;;gGAIb,QAAQ,kBAAkB,eAAe,CAAC,2BAA2B,CAAC,CAgBxE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,MAAM;;aAgBR,eAAe,CAAC,mBAAmB;mKAb3C,QAAQ,kBAAkB,eAAe,CAAC,2BAA2B,CAAC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AM,GAAG;;;;;;;;gGAIb,QAAQ,kBAAkB,eAAe,CAAC,2BAA2B,CAAC,CAgBxE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,MAAM;;aAgBR,eAAe,CAAC,mBAAmB;mKAb3C,QAAQ,kBAAkB,eAAe,CAAC,2BAA2B,CAAC,CAcvE,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,cAAc;;;;;;;;gGAIxB,QAAQ,kBAAkB,eAAe,CAAC,2BAA2B,CAAC,CAiBxE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;;;gGAItB,QAAQ,kBAAkB,eAAe,CAAC,qBAAqB,CAAC,CAgBlE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;gGAIhC,QAAQ,kBAAkB,eAAe,CAAC,+BAA+B,CAAC,CAgB5E,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;gGAI1B,QAAQ,kBAAkB,eAAe,CAAC,yBAAyB,CAAC,CAgBtE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,KAAK;;;mKAGf,QAAQ,kBAAkB,eAAe,CAAC,0BAA0B,CAAC,CActE,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,MAAM;;;mKAGhB,QAAQ,kBAAkB,eAAe,CAAC,mBAAmB,CAAC,CAc/D,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,YAAY;;;;;;;;gGAItB,QAAQ,kBAAkB,eAAe,CAAC,wBAAwB,CAAC,CAgBrE,CAAC"}
|
package/package.json
CHANGED
package/umd/globus.production.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var globus;(()=>{var e={945:(e,t,r)=>{var n="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==r.g&&r.g,o=function(){function e(){this.fetch=!1,this.DOMException=n.DOMException}return e.prototype=n,new e}();!function(e){!function(t){var r=void 0!==e&&e||"undefined"!=typeof self&&self||void 0!==r&&r,n="URLSearchParams"in r,o="Symbol"in r&&"iterator"in Symbol,i="FileReader"in r&&"Blob"in r&&function(){try{return new Blob,!0}catch(e){return!1}}(),s="FormData"in r,a="ArrayBuffer"in r;if(a)var c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],u=ArrayBuffer.isView||function(e){return e&&c.indexOf(Object.prototype.toString.call(e))>-1};function p(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function h(e){return"string"!=typeof e&&(e=String(e)),e}function d(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return o&&(t[Symbol.iterator]=function(){return t}),t}function l(e){this.map={},e instanceof l?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function f(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function g(e){return new Promise((function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}}))}function v(e){var t=new FileReader,r=g(t);return t.readAsArrayBuffer(e),r}function y(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function m(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:i&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:s&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:n&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():a&&i&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=y(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a&&(ArrayBuffer.prototype.isPrototypeOf(e)||u(e))?this._bodyArrayBuffer=y(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i&&(this.blob=function(){var e=f(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?f(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer)):this.blob().then(v)}),this.text=function(){var e,t,r,n=f(this);if(n)return n;if(this._bodyBlob)return e=this._bodyBlob,r=g(t=new FileReader),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},s&&(this.formData=function(){return this.text().then(_)}),this.json=function(){return this.text().then(JSON.parse)},this}l.prototype.append=function(e,t){e=p(e),t=h(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},l.prototype.delete=function(e){delete this.map[p(e)]},l.prototype.get=function(e){return e=p(e),this.has(e)?this.map[e]:null},l.prototype.has=function(e){return this.map.hasOwnProperty(p(e))},l.prototype.set=function(e,t){this.map[p(e)]=h(t)},l.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},l.prototype.keys=function(){var e=[];return this.forEach((function(t,r){e.push(r)})),d(e)},l.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),d(e)},l.prototype.entries=function(){var e=[];return this.forEach((function(t,r){e.push([r,t])})),d(e)},o&&(l.prototype[Symbol.iterator]=l.prototype.entries);var b=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function w(e,t){if(!(this instanceof w))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,n,o=(t=t||{}).body;if(e instanceof w){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new l(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,o||null==e._bodyInit||(o=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new l(t.headers)),this.method=(n=(r=t.method||this.method||"GET").toUpperCase(),b.indexOf(n)>-1?n:r),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(o),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var i=/([?&])_=[^&]*/;i.test(this.url)?this.url=this.url.replace(i,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}function _(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var r=e.split("="),n=r.shift().replace(/\+/g," "),o=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(o))}})),t}function A(e,t){if(!(this instanceof A))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new l(t.headers),this.url=t.url||"",this._initBody(e)}w.prototype.clone=function(){return new w(this,{body:this._bodyInit})},m.call(w.prototype),m.call(A.prototype),A.prototype.clone=function(){return new A(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},A.error=function(){var e=new A(null,{status:0,statusText:""});return e.type="error",e};var T=[301,302,303,307,308];A.redirect=function(e,t){if(-1===T.indexOf(t))throw new RangeError("Invalid status code");return new A(null,{status:t,headers:{location:e}})},t.DOMException=r.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var r=Error(e);this.stack=r.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function E(e,n){return new Promise((function(o,s){var c=new w(e,n);if(c.signal&&c.signal.aborted)return s(new t.DOMException("Aborted","AbortError"));var u=new XMLHttpRequest;function p(){u.abort()}u.onload=function(){var e,t,r={status:u.status,statusText:u.statusText,headers:(e=u.getAllResponseHeaders()||"",t=new l,e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var r=e.split(":"),n=r.shift().trim();if(n){var o=r.join(":").trim();t.append(n,o)}})),t)};r.url="responseURL"in u?u.responseURL:r.headers.get("X-Request-URL");var n="response"in u?u.response:u.responseText;setTimeout((function(){o(new A(n,r))}),0)},u.onerror=function(){setTimeout((function(){s(new TypeError("Network request failed"))}),0)},u.ontimeout=function(){setTimeout((function(){s(new TypeError("Network request failed"))}),0)},u.onabort=function(){setTimeout((function(){s(new t.DOMException("Aborted","AbortError"))}),0)},u.open(c.method,function(e){try{return""===e&&r.location.href?r.location.href:e}catch(t){return e}}(c.url),!0),"include"===c.credentials?u.withCredentials=!0:"omit"===c.credentials&&(u.withCredentials=!1),"responseType"in u&&(i?u.responseType="blob":a&&c.headers.get("Content-Type")&&-1!==c.headers.get("Content-Type").indexOf("application/octet-stream")&&(u.responseType="arraybuffer")),!n||"object"!=typeof n.headers||n.headers instanceof l?c.headers.forEach((function(e,t){u.setRequestHeader(t,e)})):Object.getOwnPropertyNames(n.headers).forEach((function(e){u.setRequestHeader(e,h(n.headers[e]))})),c.signal&&(c.signal.addEventListener("abort",p),u.onreadystatechange=function(){4===u.readyState&&c.signal.removeEventListener("abort",p)}),u.send(void 0===c._bodyInit?null:c._bodyInit)}))}E.polyfill=!0,r.fetch||(r.fetch=E,r.Headers=l,r.Request=w,r.Response=A),t.Headers=l,t.Request=w,t.Response=A,t.fetch=E}({})}(o),o.fetch.ponyfill=!0,delete o.fetch.polyfill;var i=n.fetch?n:o;(t=i.fetch).default=i.fetch,t.fetch=i.fetch,t.Headers=i.Headers,t.Request=i.Request,t.Response=i.Response,e.exports=t},21:function(e,t,r){var n;e.exports=(n=n||function(e,t){var n;if("undefined"!=typeof window&&window.crypto&&(n=window.crypto),"undefined"!=typeof self&&self.crypto&&(n=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(n=globalThis.crypto),!n&&"undefined"!=typeof window&&window.msCrypto&&(n=window.msCrypto),!n&&void 0!==r.g&&r.g.crypto&&(n=r.g.crypto),!n)try{n=r(477)}catch(e){}var o=function(){if(n){if("function"==typeof n.getRandomValues)try{return n.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof n.randomBytes)try{return n.randomBytes(4).readInt32LE()}catch(e){}}throw new Error("Native crypto module could not be used to get secure random number.")},i=Object.create||function(){function e(){}return function(t){var r;return e.prototype=t,r=new e,e.prototype=null,r}}(),s={},a=s.lib={},c=a.Base={extend:function(e){var t=i(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},u=a.WordArray=c.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||h).stringify(this)},concat:function(e){var t=this.words,r=e.words,n=this.sigBytes,o=e.sigBytes;if(this.clamp(),n%4)for(var i=0;i<o;i++){var s=r[i>>>2]>>>24-i%4*8&255;t[n+i>>>2]|=s<<24-(n+i)%4*8}else for(var a=0;a<o;a+=4)t[n+a>>>2]=r[a>>>2];return this.sigBytes+=o,this},clamp:function(){var t=this.words,r=this.sigBytes;t[r>>>2]&=4294967295<<32-r%4*8,t.length=e.ceil(r/4)},clone:function(){var e=c.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],r=0;r<e;r+=4)t.push(o());return new u.init(t,e)}}),p=s.enc={},h=p.Hex={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],o=0;o<r;o++){var i=t[o>>>2]>>>24-o%4*8&255;n.push((i>>>4).toString(16)),n.push((15&i).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n<t;n+=2)r[n>>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new u.init(r,t/2)}},d=p.Latin1={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],o=0;o<r;o++){var i=t[o>>>2]>>>24-o%4*8&255;n.push(String.fromCharCode(i))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n<t;n++)r[n>>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;return new u.init(r,t)}},l=p.Utf8={stringify:function(e){try{return decodeURIComponent(escape(d.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return d.parse(unescape(encodeURIComponent(e)))}},f=a.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new u.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=l.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var r,n=this._data,o=n.words,i=n.sigBytes,s=this.blockSize,a=i/(4*s),c=(a=t?e.ceil(a):e.max((0|a)-this._minBufferSize,0))*s,p=e.min(4*c,i);if(c){for(var h=0;h<c;h+=s)this._doProcessBlock(o,h);r=o.splice(0,c),n.sigBytes-=p}return new u.init(r,p)},clone:function(){var e=c.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),g=(a.Hasher=f.extend({cfg:c.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){f.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,r){return new e.init(r).finalize(t)}},_createHmacHelper:function(e){return function(t,r){return new g.HMAC.init(e,r).finalize(t)}}}),s.algo={});return s}(Math),n)},754:function(e,t,r){var n,o,i;e.exports=(n=r(21),i=(o=n).lib.WordArray,o.enc.Base64={stringify:function(e){var t=e.words,r=e.sigBytes,n=this._map;e.clamp();for(var o=[],i=0;i<r;i+=3)for(var s=(t[i>>>2]>>>24-i%4*8&255)<<16|(t[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|t[i+2>>>2]>>>24-(i+2)%4*8&255,a=0;a<4&&i+.75*a<r;a++)o.push(n.charAt(s>>>6*(3-a)&63));var c=n.charAt(64);if(c)for(;o.length%4;)o.push(c);return o.join("")},parse:function(e){var t=e.length,r=this._map,n=this._reverseMap;if(!n){n=this._reverseMap=[];for(var o=0;o<r.length;o++)n[r.charCodeAt(o)]=o}var s=r.charAt(64);if(s){var a=e.indexOf(s);-1!==a&&(t=a)}return function(e,t,r){for(var n=[],o=0,s=0;s<t;s++)if(s%4){var a=r[e.charCodeAt(s-1)]<<s%4*2|r[e.charCodeAt(s)]>>>6-s%4*2;n[o>>>2]|=a<<24-o%4*8,o++}return i.create(n,o)}(e,t,n)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},n.enc.Base64)},440:function(e,t,r){var n;e.exports=(n=r(21),function(){if("function"==typeof ArrayBuffer){var e=n.lib.WordArray,t=e.init,r=e.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var r=e.byteLength,n=[],o=0;o<r;o++)n[o>>>2]|=e[o]<<24-o%4*8;t.call(this,n,r)}else t.apply(this,arguments)};r.prototype=e}}(),n.lib.WordArray)},9:function(e,t,r){var n;e.exports=(n=r(21),function(e){var t=n,r=t.lib,o=r.WordArray,i=r.Hasher,s=t.algo,a=[],c=[];!function(){function t(t){for(var r=e.sqrt(t),n=2;n<=r;n++)if(!(t%n))return!1;return!0}function r(e){return 4294967296*(e-(0|e))|0}for(var n=2,o=0;o<64;)t(n)&&(o<8&&(a[o]=r(e.pow(n,.5))),c[o]=r(e.pow(n,1/3)),o++),n++}();var u=[],p=s.SHA256=i.extend({_doReset:function(){this._hash=new o.init(a.slice(0))},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],o=r[1],i=r[2],s=r[3],a=r[4],p=r[5],h=r[6],d=r[7],l=0;l<64;l++){if(l<16)u[l]=0|e[t+l];else{var f=u[l-15],g=(f<<25|f>>>7)^(f<<14|f>>>18)^f>>>3,v=u[l-2],y=(v<<15|v>>>17)^(v<<13|v>>>19)^v>>>10;u[l]=g+u[l-7]+y+u[l-16]}var m=n&o^n&i^o&i,b=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),w=d+((a<<26|a>>>6)^(a<<21|a>>>11)^(a<<7|a>>>25))+(a&p^~a&h)+c[l]+u[l];d=h,h=p,p=a,a=s+w|0,s=i,i=o,o=n,n=w+(b+m)|0}r[0]=r[0]+n|0,r[1]=r[1]+o|0,r[2]=r[2]+i|0,r[3]=r[3]+s|0,r[4]=r[4]+a|0,r[5]=r[5]+p|0,r[6]=r[6]+h|0,r[7]=r[7]+d|0},_doFinalize:function(){var t=this._data,r=t.words,n=8*this._nDataBytes,o=8*t.sigBytes;return r[o>>>5]|=128<<24-o%32,r[14+(o+64>>>9<<4)]=e.floor(n/4294967296),r[15+(o+64>>>9<<4)]=n,t.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=i._createHelper(p),t.HmacSHA256=i._createHmacHelper(p)}(Math),n.SHA256)},368:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=o(r(9)),s=o(r(754)),a=o(r(440)),c=function(){function e(e){this.state="",this.codeVerifier="",this.corsRequestOptions={},this.config=e}return e.prototype.enableCorsCredentials=function(e){return this.corsRequestOptions=e?{credentials:"include",mode:"cors"}:{},this.corsRequestOptions},e.prototype.authorizeUrl=function(e){void 0===e&&(e={});var t=this.pkceChallengeFromVerifier(),r=new URLSearchParams(Object.assign({response_type:"code",client_id:this.config.client_id,state:this.getState(e.state||null),scope:this.config.requested_scopes,redirect_uri:this.config.redirect_uri,code_challenge:t,code_challenge_method:"S256"},e)).toString();return"".concat(this.config.authorization_endpoint,"?").concat(r)},e.prototype.exchangeForAccessToken=function(e,t){var r=this;return void 0===t&&(t={}),this.parseAuthResponseUrl(e).then((function(e){return fetch(r.config.token_endpoint,n({method:"POST",body:new URLSearchParams(Object.assign({grant_type:"authorization_code",code:e.code,client_id:r.config.client_id,redirect_uri:r.config.redirect_uri,code_verifier:r.getCodeVerifier()},t)),headers:{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"}},r.corsRequestOptions)).then((function(e){return e.json()}))}))},e.prototype.refreshAccessToken=function(e){return fetch(this.config.token_endpoint,{method:"POST",body:new URLSearchParams({grant_type:"refresh_token",client_id:this.config.client_id,refresh_token:e}),headers:{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"}}).then((function(e){return e.json()}))},e.prototype.getCodeVerifier=function(){return""===this.codeVerifier&&(this.codeVerifier=this.randomStringFromStorage("pkce_code_verifier")),this.codeVerifier},e.prototype.getState=function(e){void 0===e&&(e=null);var t="pkce_state";return null!==e&&this.getStore().setItem(t,e),""===this.state&&(this.state=this.randomStringFromStorage(t)),this.state},e.prototype.parseAuthResponseUrl=function(e){var t=new URL(e).searchParams;return this.validateAuthResponse({error:t.get("error"),query:t.get("query"),state:t.get("state"),code:t.get("code")})},e.prototype.pkceChallengeFromVerifier=function(){var e=(0,i.default)(this.getCodeVerifier());return s.default.stringify(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")},e.prototype.randomStringFromStorage=function(e){return null===this.getStore().getItem(e)&&this.getStore().setItem(e,a.default.random(64)),this.getStore().getItem(e)||""},e.prototype.validateAuthResponse=function(e){var t=this;return new Promise((function(r,n){return e.error?n({error:e.error}):e.state!==t.getState()?n({error:"Invalid State"}):r(e)}))},e.prototype.getStore=function(){var e;return(null===(e=this.config)||void 0===e?void 0:e.storage)||sessionStorage},e}();t.default=c},477:()=>{}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n].call(i.exports,i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},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.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};(()=>{"use strict";r.r(n),r.d(n,{auth:()=>g,authorization:()=>v,compute:()=>K,errors:()=>h,flows:()=>B,gcs:()=>W,groups:()=>$,info:()=>e,logger:()=>t,search:()=>j,timer:()=>V,transfer:()=>L,webapp:()=>Y});var e={};r.r(e),r.d(e,{CLIENT_INFO:()=>re,VERSION:()=>te,addClientInfo:()=>oe,getClientInfo:()=>ie,getClientInfoRequestHeaders:()=>se});var t={};r.r(t),r.d(t,{log:()=>de,setLogLevel:()=>he,setLogger:()=>pe});var o={};r.r(o),r.d(o,{HOSTS:()=>ve,ID:()=>fe,SCOPES:()=>ge});var i={};r.r(i),r.d(i,{HOSTS:()=>me,ID:()=>ye,SCOPES:()=>be});var s={};r.r(s),r.d(s,{HOSTS:()=>_e,ID:()=>we});var a={};r.r(a),r.d(a,{HOSTS:()=>Te,ID:()=>Ae,SCOPES:()=>Ee});var c={};r.r(c),r.d(c,{HOSTS:()=>Se,ID:()=>Oe,SCOPES:()=>Le});var u={};r.r(u),r.d(u,{HOSTS:()=>ke,ID:()=>Pe,SCOPES:()=>Re});var p={};r.r(p),r.d(p,{HOSTS:()=>xe,ID:()=>je,RESOURCE_SERVERS:()=>Ce,SCOPES:()=>Ie});var h={};r.r(h),r.d(h,{EnvironmentConfigurationError:()=>$e,isAuthorizationRequirementsError:()=>Be,isConsentRequiredError:()=>De,isErrorWellFormed:()=>Ue});var d={};r.r(d),r.d(d,{get:()=>Ke,getAll:()=>Ye});var l={};r.r(l),r.d(l,{introspect:()=>Qe,refresh:()=>et,revoke:()=>Ze,validate:()=>tt});var f={};r.r(f),r.d(f,{token:()=>l,userinfo:()=>rt});var g={};r.r(g),r.d(g,{CONFIG:()=>nt,getAuthorizationEndpoint:()=>ot,getTokenEndpoint:()=>it,identities:()=>d,isGlobusAuthTokenResponse:()=>ct,isRefreshToken:()=>at,isToken:()=>st,oauth2:()=>f});var v={};r.r(v),r.d(v,{create:()=>Xt});var y={};r.r(y),r.d(y,{ls:()=>er,mkdir:()=>tr,rename:()=>rr,symlink:()=>nr});var m={};r.r(m),r.d(m,{submissionId:()=>sr,submitDelete:()=>or,submitTransfer:()=>ir});var b={};r.r(b),r.d(b,{create:()=>cr,get:()=>ar,remove:()=>pr,update:()=>ur});var w={};r.r(w),r.d(w,{cancel:()=>fr,get:()=>dr,getAll:()=>hr,getEventList:()=>vr,getPauseInfo:()=>br,getSkippedErrors:()=>mr,getSuccessfulTransfers:()=>yr,remove:()=>gr,update:()=>lr});var _={};r.r(_),r.d(_,{create:()=>_r,get:()=>Ar,getAll:()=>wr,remove:()=>Er,update:()=>Tr});var A={};r.r(A),r.d(A,{create:()=>Sr,get:()=>Lr,getAll:()=>Or,remove:()=>kr,update:()=>Pr});var T={};r.r(T),r.d(T,{get:()=>Rr,getAccessList:()=>xr,getHostedEndpoints:()=>jr,getMonitoredEndpoints:()=>Ir});var E={};r.r(E),r.d(E,{create:()=>$r,get:()=>Ur,getAll:()=>Cr,remove:()=>Br,update:()=>Dr});var O={};r.r(O),r.d(O,{cancel:()=>Hr,get:()=>Mr,getAdminCancel:()=>Fr,getAll:()=>Nr,getEventList:()=>qr,getPauseInfo:()=>Jr,getSkippedErrors:()=>Gr,getSuccessfulTransfers:()=>zr,pause:()=>Wr,resume:()=>Vr});var S={};r.r(S),r.d(S,{endpoint:()=>T,pauseRule:()=>E,task:()=>O});var L={};r.r(L),r.d(L,{CONFIG:()=>Kr,access:()=>_,collectionBookmarks:()=>A,endpoint:()=>b,endpointManager:()=>S,endpointSearch:()=>Qt,fileOperations:()=>y,task:()=>w,taskSubmission:()=>m});var P={};r.r(P),r.d(P,{get:()=>Yr,post:()=>Xr});var k={};r.r(k),r.d(k,{get:()=>Qr});var R={};r.r(R),r.d(R,{get:()=>Zr});var j={};r.r(j),r.d(j,{CONFIG:()=>en,entry:()=>R,query:()=>P,subject:()=>k});var x={};r.r(x),r.d(x,{get:()=>rn,getMyGroups:()=>tn});var I={};r.r(I),r.d(I,{get:()=>nn});var C={};r.r(C),r.d(C,{act:()=>on});var $={};r.r($),r.d($,{CONFIG:()=>sn,groups:()=>x,membership:()=>C,policies:()=>I});var U={};r.r(U),r.d(U,{get:()=>cn,getAll:()=>an,remove:()=>un});var D={};r.r(D),r.d(D,{getAll:()=>pn});var B={};r.r(B),r.d(B,{CONFIG:()=>hn,flows:()=>U,runs:()=>D});var N={};r.r(N),r.d(N,{create:()=>gn,get:()=>ln,getAll:()=>dn,patch:()=>yn,remove:()=>fn,resetOwnerString:()=>bn,update:()=>vn,updateOwnerString:()=>mn});var M={};r.r(M),r.d(M,{get:()=>wn,patch:()=>An,update:()=>_n,updateSubscriptionId:()=>Tn});var H={};r.r(H),r.d(H,{get:()=>En,remove:()=>On,update:()=>Sn});var F={};r.r(F),r.d(F,{create:()=>Rn,get:()=>Pn,getAll:()=>Ln,remove:()=>kn});var q={};r.r(q),r.d(q,{create:()=>Cn,get:()=>xn,getAll:()=>jn,patch:()=>Un,remove:()=>In,update:()=>$n});var z={};r.r(z),r.d(z,{create:()=>Mn,get:()=>Bn,getAll:()=>Dn,patch:()=>Fn,remove:()=>Nn,update:()=>Hn});var G={};r.r(G),r.d(G,{info:()=>qn});var W={};r.r(W),r.d(W,{collections:()=>N,endpoint:()=>M,getRequiredScopes:()=>Gn,https:()=>H,roles:()=>F,storageGateways:()=>q,userCredentials:()=>z,versioning:()=>G});var V={};r.r(V),r.d(V,{CONFIG:()=>Vn,create:()=>Wn});var J={};r.r(J),r.d(J,{get:()=>Kn,getAll:()=>Jn,getStatus:()=>Yn});var K={};r.r(K),r.d(K,{CONFIG:()=>Xn,endpoints:()=>J});var Y={};r.r(Y),r.d(Y,{HOSTS:()=>Qn,host:()=>Zn,url:()=>eo,urlFor:()=>ro});const X="X-Globus-ClientInfo";let Q=!0;const Z=";",ee=",",te="3.4.0",re={product:"javascript-sdk",version:te};let ne=[re];function oe(e){ne=ne.concat(e)}function ie(){return function(e){return(Array.isArray(e)?e:[e]).map((e=>Object.entries(e).map((([e,t])=>`${e}=${t}`)).join(ee))).join(Z)}(ne)}function se(){return Q?{[X]:ie()}:{}}const ae=["debug","info","warn","error"];let ce,ue=ae.indexOf("error");function pe(e){ce=e}function he(e){ue=ae.indexOf(e)}function de(e,...t){var r;ce&&(ae.indexOf(e)<ue||(null!==(r=ce[e])&&void 0!==r?r:ce.log)(...t))}class le extends Error{}le.prototype.name="InvalidTokenError";const fe="TRANSFER",ge={ALL:"urn:globus:auth:scope:transfer.api.globus.org:all"},ve={sandbox:"transfer.api.sandbox.globuscs.info",production:"transfer.api.globusonline.org",staging:"transfer.api.staging.globuscs.info",integration:"transfer.api.integration.globuscs.info",test:"transfer.api.test.globuscs.info",preview:"transfer.api.preview.globus.org"},ye="FLOWS",me={sandbox:"sandbox.flows.automate.globus.org",production:"flows.globus.org",staging:"staging.flows.automate.globus.org",integration:"integration.flows.automate.globus.org",test:"test.flows.automate.globus.org",preview:"preview.flows.automate.globus.org"},be={MANAGE_FLOWS:"https://auth.globus.org/scopes/eec9b274-0c81-4334-bdc2-54e90e689b9a/manage_flows",VIEW_FLOWS:"https://auth.globus.org/scopes/eec9b274-0c81-4334-bdc2-54e90e689b9a/view_flows",RUN:"https://auth.globus.org/scopes/eec9b274-0c81-4334-bdc2-54e90e689b9a/run",RUN_STATUS:"https://auth.globus.org/scopes/eec9b274-0c81-4334-bdc2-54e90e689b9a/run_status",RUN_MANAGE:"https://auth.globus.org/scopes/eec9b274-0c81-4334-bdc2-54e90e689b9a/run_manage"},we="TIMER",_e={sandbox:"sandbox.timer.automate.globus.org",production:"timer.automate.globus.org",staging:"staging.timer.automate.globus.org",integration:"integration.timer.automate.globus.org",test:"test.timer.automate.globus.org",preview:"preview.timer.automate.globus.org"},Ae="GROUPS",Te={sandbox:"groups.api.sandbox.globuscs.info",production:"groups.api.globus.org",staging:"groups.api.staging.globuscs.info",integration:"groups.api.integration.globuscs.info",test:"groups.api.test.globuscs.info",preview:"groups.api.preview.globuscs.info"},Ee={ALL:"urn:globus:auth:scope:groups.api.globus.org:all",VIEW_MY:"urn:globus:auth:scope:groups.api.globus.org:view_my_groups_and_membership"},Oe="SEARCH",Se={sandbox:"search.api.sandbox.globuscs.info",production:"search.api.globus.org",staging:"search.api.staging.globuscs.info",integration:"search.api.integration.globuscs.info",test:"search.api.test.globuscs.info",preview:"search.api.preview.globus.org"},Le={ALL:"urn:globus:auth:scope:search.api.globus.org:all",INGEST:"urn:globus:auth:scope:search.api.globus.org:ingest",SEARCH:"urn:globus:auth:scope:search.api.globus.org:search"},Pe="COMPUTE",ke={sandbox:"compute.api.sandbox.globuscs.info",production:"compute.api.globus.org",staging:"compute.api.staging.globuscs.info",integration:"compute.api.integration.globuscs.info",test:"compute.api.test.globuscs.info",preview:"compute.api.preview.globus.org"},Re={ALL:"https://auth.globus.org/scopes/facd7ccc-c5f4-42aa-916b-a0e270e2c2a9/all"},je="AUTH",xe={integration:"auth.integration.globuscs.info",sandbox:"auth.sandbox.globuscs.info",production:"auth.globus.org",test:"auth.test.globuscs.info",staging:"auth.staging.globuscs.info",preview:"auth.preview.globus.org"},Ie={VIEW_IDENTITIES:"urn:globus:auth:scope:auth.globus.org:view_identities"},Ce={[je]:"auth.globus.org",[fe]:"transfer.api.globus.org",[ye]:"flows.api.globus.org",[Ae]:"groups.api.globus.org",[Oe]:"search.api.globus.org",[we]:"524230d7-ea86-4a52-8312-86065a9e0417",[Pe]:"funcx_service"};class $e extends Error{constructor(e,t){super(),this.name="EnvironmentConfigurationError",this.message=`Invalid configuration value provided for ${e} (${t}).`}}function Ue(e){return"object"==typeof e&&null!==e&&"code"in e&&"message"in e}function De(e){return Ue(e)&&"ConsentRequired"===e.code&&"required_scopes"in e&&Array.isArray(e.required_scopes)}function Be(e){return Ue(e)&&"authorization_parameters"in e&&"object"==typeof e.authorization_parameters&&null!==e.authorization_parameters}function Ne(e,t){const r="undefined"!=typeof window?window:process;let n;return n=function(e){return typeof window==typeof e}(r)?r:r.env,e in n?n[e]:t}const Me={PRODUCTION:"production",PREVIEW:"preview",STAGING:"staging",SANDBOX:"sandbox",INTEGRATION:"integration",TEST:"test"};function He(){const e=Ne("GLOBUS_SDK_ENVIRONMENT",Me.PRODUCTION);if(!e||!Object.values(Me).includes(e))throw new $e("GLOBUS_SDK_ENVIRONMENT",e);return e}const Fe={[je]:je,[fe]:fe,[ye]:ye,[Ae]:Ae,[Oe]:Oe,[we]:we,[Pe]:Pe},qe={[je]:xe,[fe]:ve,[ye]:me,[Ae]:Te,[Oe]:Se,[we]:_e,[Pe]:ke};function ze(e,t,r,n){let o;return o="object"==typeof e?new URL(t,e.host):function(e,t="",r=He()){const n=function(e,t=He()){const r=function(e,t=He()){return qe[e][t]}(e,t);return Ne(`GLOBUS_SDK_SERVICE_URL_${e}`,r?`https://${r}`:void 0)}(e,r);return new URL(t,n)}(e,t,null==n?void 0:n.environment),r&&r.search&&(o.search=function(e){const t=new URLSearchParams;return Array.from(Object.entries(e)).forEach((([e,r])=>{Array.isArray(r)?t.set(e,r.join(",")):void 0!==r&&t.set(e,String(r))})),t.toString()}(r.search)),o.toString()}var Ge,We=r(945),Ve=r.n(We);function Je(e,t,r){var n;const o=function(e){var t,r,n,o,i,s;let a=Ne("GLOBUS_SDK_OPTIONS",{});return"string"==typeof a&&(a=JSON.parse(a)),Object.assign(Object.assign(Object.assign({},a),e),{fetch:Object.assign(Object.assign(Object.assign({},null==a?void 0:a.fetch),null==e?void 0:e.fetch),{options:Object.assign(Object.assign(Object.assign({},null===(t=null==a?void 0:a.fetch)||void 0===t?void 0:t.options),null===(r=null==e?void 0:e.fetch)||void 0===r?void 0:r.options),{headers:Object.assign(Object.assign({},null===(o=null===(n=null==a?void 0:a.fetch)||void 0===n?void 0:n.options)||void 0===o?void 0:o.headers),null===(s=null===(i=null==e?void 0:e.fetch)||void 0===i?void 0:i.options)||void 0===s?void 0:s.headers)})})})}(r),i=(null===(n=null==o?void 0:o.fetch)||void 0===n?void 0:n.options)||{},s=Object.assign(Object.assign(Object.assign({},se()),null==t?void 0:t.headers),i.headers);if(e.resource_server&&(null==o?void 0:o.manager)){const t=o.manager.tokens.getByResourceServer(e.resource_server);t&&(s.Authorization=`Bearer ${t.access_token}`)}if(e.scope&&(null==o?void 0:o.manager)){const t="string"==typeof e.service?Ce[e.service]:e.service.endpoint_id,r=o.manager.tokens.getByResourceServer(t);r&&(s.Authorization=`Bearer ${r.access_token}`)}let a=null==t?void 0:t.body;!a&&(null==t?void 0:t.payload)&&(a=JSON.stringify(t.payload)),!(null==s?void 0:s["Content-Type"])&&a&&(s["Content-Type"]="application/json");const c=ze(e.service,e.path,{search:null==t?void 0:t.query},o),u=Object.assign(Object.assign({method:e.method,body:a},i),{headers:s});return(null==i?void 0:i.__callable)?(delete u.__callable,i.__callable.call(this,c,u)):Ve()(c,u)}!function(e){e.POST="POST",e.GET="GET",e.DELETE="DELETE",e.PUT="PUT",e.PATCH="PATCH"}(Ge||(Ge={}));const Ke=function(e,t={},r){return Je({service:je,scope:Ie.VIEW_IDENTITIES,path:`/identities/${e}`},t,r)},Ye=function(e={},t){return Je({service:je,scope:Ie.VIEW_IDENTITIES,path:"/identities"},e,t)};function Xe(e){return Object.assign(Object.assign({},e),{body:(t=e.payload,new URLSearchParams(t)),headers:Object.assign(Object.assign({},(null==e?void 0:e.headers)||{}),{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"})});var t}const Qe=function(e,t){if(!(null==e?void 0:e.payload))throw new Error("'payload' is required for introspect");return Je({service:je,scope:void 0,path:"/v2/oauth2/token/introspect",method:Ge.POST},Xe(e),t)},Ze=function(e,t){if(!(null==e?void 0:e.payload))throw new Error("'payload' is required for revoke");return Je({service:je,scope:void 0,path:"/v2/oauth2/token/revoke",method:Ge.POST},Xe(e),t)},et=function(e,t){if(!(null==e?void 0:e.payload))throw new Error("'payload' is required for revoke");return Je({service:je,scope:void 0,path:"/v2/oauth2/token",method:Ge.POST},Xe(e),t)},tt=function(e,t){if(!(null==e?void 0:e.payload))throw new Error("'payload' is required for validate");return Je({service:je,scope:void 0,path:"/v2/oauth2/token/validate",method:Ge.POST},Xe(e),t)},rt=function(e,t){return Je({service:je,scope:void 0,path:"/v2/oauth2/userinfo",method:Ge.GET},e,t)},nt=p;function ot(){return ze(je,"/v2/oauth2/authorize")}function it(){return ze(je,"/v2/oauth2/token")}function st(e){return"object"==typeof e&&null!==e&&"access_token"in e}function at(e){return st(e)&&null!==e&&"refresh_token"in e}function ct(e){return st(e)&&null!==e&&"resource_server"in e}var ut,pt=function(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)};class ht{constructor(){ut.set(this,{})}get(e){return void 0!==pt(this,ut,"f")[e]?pt(this,ut,"f")[e]:null}set(e,t){pt(this,ut,"f")[e]="string"!=typeof t?JSON.stringify(t):t}remove(e){delete pt(this,ut,"f")[e]}keys(){return Object.keys(pt(this,ut,"f"))}clear(){!function(e,t,r,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");"a"===n?o.call(e,r):o?o.value=r:t.set(e,r)}(this,ut,{},"f")}}ut=new WeakMap;var dt,lt=function(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)};class ft{constructor(){dt.set(this,globalThis.localStorage)}get(e){return lt(this,dt,"f").getItem(e)}set(e,t){lt(this,dt,"f").setItem(e,"string"!=typeof t?JSON.stringify(t):t)}keys(){return Object.keys(lt(this,dt,"f"))}remove(e){lt(this,dt,"f").removeItem(e)}clear(){lt(this,dt,"f").clear()}}let gt;function vt(e="memory"){if(!gt){let t;t="localStorage"===e?ft:"memory"===e?ht:e,gt=new t}return gt}dt=new WeakMap;const yt=vt;var mt,bt=function(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)},wt=function(e,t,r,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?o.call(e,r):o?o.value=r:t.set(e,r),r};class _t{constructor(e){this.name=e,mt.set(this,[])}addListener(e){return bt(this,mt,"f").push(e),()=>this.removeListener(e)}removeListener(e){wt(this,mt,bt(this,mt,"f").filter((t=>t!==e)),"f")}clearListeners(){wt(this,mt,[],"f")}dispatch(e){return t=this,r=void 0,o=function*(){yield Promise.all(bt(this,mt,"f").map((t=>t(e))))},new((n=void 0)||(n=Promise))((function(e,i){function s(e){try{c(o.next(e))}catch(e){i(e)}}function a(e){try{c(o.throw(e))}catch(e){i(e)}}function c(t){var r;t.done?e(t.value):(r=t.value,r instanceof n?r:new n((function(e){e(r)}))).then(s,a)}c((o=o.apply(t,r||[])).next())}));var t,r,n,o}}mt=new WeakMap;var At,Tt,Et=r(368),Ot=r.n(Et),St=function(e,t,r,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?o.call(e,r):o?o.value=r:t.set(e,r),r},Lt=function(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)};class Pt{constructor(e){At.set(this,void 0),Tt.set(this,{});const{params:t}=e,r=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["params"]);St(this,At,new(Ot())(Object.assign({},r)),"f"),St(this,Tt,Object.assign({},t),"f")}send(){window.location.replace(Lt(this,At,"f").authorizeUrl(Lt(this,Tt,"f")))}getToken(){return e=this,t=arguments,n=function*(e={shouldReplace:!0}){const t=new URL(window.location.href),r=new URLSearchParams(t.search);if(!r.get("code"))return;const n=yield Lt(this,At,"f").exchangeForAccessToken(t.toString());return sessionStorage.removeItem("pkce_state"),sessionStorage.removeItem("pkce_code_verifier"),e.shouldReplace&&(r.delete("code"),r.delete("state"),t.search=r.toString(),window.location.replace(t)),n},new((r=void 0)||(r=Promise))((function(o,i){function s(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?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}));var e,t,r,n}}At=new WeakMap,Tt=new WeakMap;var kt,Rt,jt,xt,It=function(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)};function Ct(e){const t=yt().get(e)||"null";let r=null;try{const e=JSON.parse(t);st(e)&&(r=e)}catch(e){}return r}class $t{constructor(e){kt.add(this),Rt.set(this,void 0),function(e,t,r,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");"a"===n?o.call(e,r):o?o.value=r:t.set(e,r)}(this,Rt,e.manager,"f")}get auth(){return It(this,kt,"m",xt).call(this,Fe.AUTH)}get transfer(){return It(this,kt,"m",xt).call(this,Fe.TRANSFER)}get flows(){return It(this,kt,"m",xt).call(this,Fe.FLOWS)}get groups(){return It(this,kt,"m",xt).call(this,Fe.GROUPS)}get search(){return It(this,kt,"m",xt).call(this,Fe.SEARCH)}get timer(){return It(this,kt,"m",xt).call(this,Fe.TIMER)}get compute(){return It(this,kt,"m",xt).call(this,Fe.COMPUTE)}gcs(e){return this.getByResourceServer(e)}getByResourceServer(e){return It(this,kt,"m",jt).call(this,e)}getAll(){return yt().keys().reduce(((e,t)=>(t.startsWith(It(this,Rt,"f").storageKeyPrefix)&&e.push(Ct(t)),e)),[]).filter(st)}}Rt=new WeakMap,kt=new WeakSet,jt=function(e){return Ct(`${It(this,Rt,"f").storageKeyPrefix}${e}`)},xt=function(e){var t;const r=null===(t=nt.RESOURCE_SERVERS)||void 0===t?void 0:t[e];return It(this,kt,"m",jt).call(this,r)};var Ut,Dt,Bt,Nt,Mt,Ht,Ft,qt,zt,Gt,Wt=function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(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?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))},Vt=function(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)},Jt=function(e,t,r,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?o.call(e,r):o?o.value=r:t.set(e,r),r};const Kt={execute:!0,additionalParams:void 0};class Yt{get authenticated(){return Vt(this,Bt,"f")}set authenticated(e){Jt(this,Bt,e,"f"),Vt(this,Ut,"m",Ft).call(this)}constructor(e){var t;if(Ut.add(this),Dt.set(this,void 0),Bt.set(this,!1),this.events={authenticated:new _t("authenticated"),revoke:new _t("revoke")},this.addTokenResponse=e=>{var t;yt().set(`${this.configuration.client}:${e.resource_server}`,e),"other_tokens"in e&&(null===(t=e.other_tokens)||void 0===t||t.forEach(this.addTokenResponse)),Vt(this,Ut,"m",Mt).call(this)},vt("localStorage"),!e.client)throw new Error("You must provide a `client` for your application.");const r=!1===e.defaultScopes?"":null!==(t=e.defaultScopes)&&void 0!==t?t:"openid profile email";this.configuration=Object.assign(Object.assign({},e),{scopes:[e.scopes?e.scopes:"",r].filter((e=>e.length)).join(" ")}),this.tokens=new $t({manager:this}),Vt(this,Ut,"m",Ht).call(this),this.startSilentRefresh()}get storageKeyPrefix(){return`${this.configuration.client}:`}get user(){const e=this.getGlobusAuthToken();return e&&e.id_token?function(e,t){if("string"!=typeof e)throw new le("Invalid token specified: must be a string");t||(t={});const r=!0===t.header?0:1,n=e.split(".")[r];if("string"!=typeof n)throw new le(`Invalid token specified: missing part #${r+1}`);let o;try{o=function(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return function(e){return decodeURIComponent(atob(e).replace(/(.)/g,((e,t)=>{let r=t.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r})))}(t)}catch(e){return atob(t)}}(n)}catch(e){throw new le(`Invalid token specified: invalid base64 for part #${r+1} (${e.message})`)}try{return JSON.parse(o)}catch(e){throw new le(`Invalid token specified: invalid json for part #${r+1} (${e.message})`)}}(e.id_token):null}startSilentRefresh(){de("debug",`AuthorizationManager.startSilentRefresh | useRefreshTokens=${this.configuration.useRefreshTokens}`),this.configuration.useRefreshTokens&&Vt(this,Ut,"m",Nt).call(this)}refreshToken(e){return Wt(this,void 0,void 0,(function*(){de("debug",`AuthorizationManager.refreshToken | resource_server=${e.resource_server}`);try{const t=yield(yield et({payload:{client_id:this.configuration.client,refresh_token:e.refresh_token,grant_type:"refresh_token"}})).json();ct(t)&&this.addTokenResponse(t)}catch(t){de("error",`AuthorizationManager.refreshToken | resource_server=${e.resource_server}`)}}))}hasGlobusAuthToken(){return null!==this.getGlobusAuthToken()}getGlobusAuthToken(){const e=yt().get(`${this.storageKeyPrefix}auth.globus.org`);return e?JSON.parse(e):null}reset(){yt().keys().forEach((e=>{e.startsWith(this.storageKeyPrefix)&&yt().remove(e)})),this.authenticated=!1}login(e={additionalParams:{}}){de("debug","AuthorizationManager.login"),this.reset(),Vt(this,Ut,"m",zt).call(this,{params:null==e?void 0:e.additionalParams}).send()}handleCodeRedirect(){return Wt(this,arguments,void 0,(function*(e={shouldReplace:!0,additionalParams:{}}){de("debug","AuthorizationManager.handleCodeRedirect");const t=yield Vt(this,Ut,"m",zt).call(this,{params:null==e?void 0:e.additionalParams}).getToken({shouldReplace:null==e?void 0:e.shouldReplace});ct(t)&&(de("debug",`AuthorizationManager.handleCodeRedirect | response=${JSON.stringify(t)}`),this.addTokenResponse(t))}))}handleErrorResponse(e,t){const r="boolean"==typeof t?Object.assign(Object.assign({},Kt),{execute:t}):Object.assign(Object.assign({},Kt),t);de("debug",`AuthorizationManager.handleErrorResponse | response=${JSON.stringify(e)} execute=${r.execute}`);let n=()=>{};return Be(e)&&(de("debug","AuthorizationManager.handleErrorResponse | error=AuthorizationRequirementsError"),n=()=>this.handleAuthorizationRequirementsError(e,{additionalParams:r.additionalParams})),De(e)&&(de("debug","AuthorizationManager.handleErrorResponse | error=ConsentRequiredError"),n=()=>this.handleConsentRequiredError(e,{additionalParams:r.additionalParams})),"code"in e&&"AuthenticationFailed"===e.code&&(de("debug","AuthorizationManager.handleErrorResponse | error=AuthenticationFailed"),n=()=>this.revoke()),!0===r.execute?n():n}handleAuthorizationRequirementsError(e,t){Jt(this,Dt,Vt(this,Ut,"m",zt).call(this,{params:Object.assign({session_message:e.authorization_parameters.session_message,session_required_identities:e.authorization_parameters.session_required_identities.join(","),session_required_mfa:e.authorization_parameters.session_required_mfa,session_required_single_domain:e.authorization_parameters.session_required_single_domain.join(","),prompt:"login"},null==t?void 0:t.additionalParams)}),"f"),Vt(this,Dt,"f").send()}handleConsentRequiredError(e,t){Jt(this,Dt,Vt(this,Ut,"m",zt).call(this,{requested_scopes:Vt(this,Ut,"m",qt).call(this,e.required_scopes.join(" ")),params:Object.assign({},null==t?void 0:t.additionalParams)}),"f"),Vt(this,Dt,"f").send()}revoke(){return Wt(this,void 0,void 0,(function*(){de("debug","AuthorizationManager.revoke");const e=Promise.all(this.tokens.getAll().map(Vt(this,Ut,"m",Gt).bind(this)));this.reset(),yield e,yield this.events.revoke.dispatch()}))}}function Xt(e){return new Yt(e)}Dt=new WeakMap,Bt=new WeakMap,Ut=new WeakSet,Nt=function(){de("debug","AuthorizationManager.#silentRefreshTokens"),this.tokens.getAll().forEach((e=>{at(e)&&this.refreshToken(e)}))},Mt=function(){de("debug","AuthorizationManager.#checkAuthorizationState"),this.hasGlobusAuthToken()&&(this.authenticated=!0)},Ht=function(){return Wt(this,void 0,void 0,(function*(){de("debug","AuthorizationManager.bootstrapFromStorageState"),Vt(this,Ut,"m",Mt).call(this)}))},Ft=function(){return Wt(this,void 0,void 0,(function*(){var e;const t=this.authenticated,r=null!==(e=this.getGlobusAuthToken())&&void 0!==e?e:void 0;yield this.events.authenticated.dispatch({isAuthenticated:t,token:r})}))},qt=function(e){return`${e}${this.configuration.useRefreshTokens?" offline_access":""}`},zt=function(e){var t;const r=Vt(this,Ut,"m",qt).call(this,null!==(t=null==e?void 0:e.requested_scopes)&&void 0!==t?t:this.configuration.scopes||"");return new Pt(Object.assign({client_id:this.configuration.client,authorization_endpoint:ot(),token_endpoint:it(),redirect_uri:this.configuration.redirect,requested_scopes:r},e))},Gt=function(e){return de("debug",`AuthorizationManager.revokeToken | resource_server=${e.resource_server}`),Ze({payload:{client_id:this.configuration.client,token:e.access_token}})};const Qt=function(e,t){const r=Object.assign(Object.assign({},e),{query:null==e?void 0:e.query});return Je({service:fe,scope:ge.ALL,path:"/v0.10/endpoint_search"},r,t)};function Zt(e){return e===Ge.GET?{}:{"Content-Type":"application/json"}}const er=function(e,t,r){return Je({service:fe,scope:ge.ALL,path:`/v0.10/operation/endpoint/${e}/ls`},t,r)},tr=function(e,t,r){const n={payload:Object.assign({DATA_TYPE:"mkdir"},null==t?void 0:t.payload),headers:Object.assign(Object.assign({},Zt(Ge.POST)),null==t?void 0:t.headers)};return Je({service:fe,scope:ge.ALL,path:`/v0.10/operation/endpoint/${e}/mkdir`,method:Ge.POST},n,r)},rr=function(e,t,r){const n={payload:Object.assign({DATA_TYPE:"rename"},null==t?void 0:t.payload),headers:Object.assign(Object.assign({},Zt(Ge.POST)),null==t?void 0:t.headers)};return Je({service:fe,scope:ge.ALL,path:`/v0.10/operation/endpoint/${e}/rename`,method:Ge.POST},n,r)},nr=function(e,t,r){const n={payload:Object.assign({DATA_TYPE:"symlink"},null==t?void 0:t.payload),headers:Object.assign(Object.assign({},Zt(Ge.POST)),null==t?void 0:t.headers)};return Je({service:fe,scope:ge.ALL,path:`/v0.10/operation/endpoint/${e}/symlink`,method:Ge.POST},n,r)},or=function(e,t){const r={payload:Object.assign({DATA_TYPE:"delete"},null==e?void 0:e.payload),headers:Object.assign(Object.assign({},Zt(Ge.POST)),null==e?void 0:e.headers)};return Je({service:fe,scope:ge.ALL,path:"/v0.10/delete",method:Ge.POST},r,t)},ir=function(e,t){const r={payload:Object.assign({DATA_TYPE:"transfer"},null==e?void 0:e.payload),headers:Object.assign(Object.assign({},Zt(Ge.POST)),null==e?void 0:e.headers)};return Je({service:fe,scope:ge.ALL,path:"/v0.10/transfer",method:Ge.POST},r,t)},sr=function(e,t){return Je({service:fe,scope:ge.ALL,path:"/v0.10/submission_id"},e,t)},ar=function(e,t,r){return Je({service:fe,scope:ge.ALL,path:`/v0.10/endpoint/${e}`},t,r)},cr=function(e,t){return(null==e?void 0:e.payload)&&Object.assign(e.payload,{DATA_TYPE:"shared_endpoint"}),Je({service:fe,scope:ge.ALL,path:"/v0.10/shared_endpoint",method:Ge.POST},e,t)},ur=function(e,t,r){return(null==t?void 0:t.payload)&&Object.assign(t.payload,{DATA_TYPE:"endpoint"}),Je({service:fe,scope:ge.ALL,path:`/v0.10/endpoint/${e}`,method:Ge.PUT},t,r)},pr=function(e,t,r){return Je({service:fe,scope:ge.ALL,path:`/v0.10/endpoint/${e}`,method:Ge.DELETE},t,r)},hr=function(e={},t){return Je({service:fe,scope:ge.ALL,path:"/v0.10/task_list"},e,t)},dr=function(e,t,r){return Je({service:fe,scope:ge.ALL,path:`/v0.10/task/${e}`},t,r)},lr=function(e,t,r){return Je({service:fe,scope:ge.ALL,path:`/v0.10/task/${e}`,method:Ge.PUT},t,r)},fr=function(e,t,r){return Je({service:fe,scope:ge.ALL,path:`/v0.10/task/${e}/cancel`,method:Ge.POST},t,r)},gr=function(e,t,r){return Je({service:fe,scope:ge.ALL,path:`/v0.10/task/${e}/remove`,method:Ge.POST},t,r)},vr=function(e,t,r){return Je({service:fe,scope:ge.ALL,path:`/v0.10/task/${e}/event_list`},t,r)},yr=function(e,t,r){return Je({service:fe,scope:ge.ALL,path:`/v0.10/task/${e}/successful_transfers`},t,r)},mr=function(e,t,r){return Je({service:fe,scope:ge.ALL,path:`/v0.10/task/${e}/skipped_errors`},t,r)},br=function(e,t,r){return Je({service:fe,scope:ge.ALL,path:`/v0.10/task/${e}/pause_info`},t,r)},wr=function(e,t,r){return Je({service:fe,scope:ge.ALL,path:`/v0.10/endpoint/${e}/access_list`},t,r)},_r=function(e,t,r){return Je({service:fe,scope:ge.ALL,path:`/v0.10/endpoint/${e}/access`,method:Ge.POST},t,r)},Ar=function({endpoint_xid:e,id:t},r,n){return Je({service:fe,scope:ge.ALL,path:`/v0.10/endpoint/${e}/access/${t}`},r,n)},Tr=function({endpoint_xid:e,id:t},r,n){return Je({service:fe,scope:ge.ALL,path:`/v0.10/endpoint/${e}/access/${t}`,method:Ge.PUT},r,n)},Er=function({endpoint_xid:e,id:t},r,n){return Je({service:fe,scope:ge.ALL,path:`/v0.10/endpoint/${e}/access/${t}`,method:Ge.DELETE},r,n)},Or=function(e,t){return Je({service:fe,scope:ge.ALL,path:"/v0.10/bookmark_list"},e,t)},Sr=function(e,t){return Je({service:fe,scope:ge.ALL,path:"/v0.10/bookmark",method:Ge.POST},e,t)},Lr=function(e,t,r){return Je({service:fe,scope:ge.ALL,path:`/v0.10/bookmark/${e}`},t,r)},Pr=function(e,t,r){return Je({service:fe,scope:ge.ALL,path:`/v0.10/bookmark/${e}`,method:Ge.PUT},t,r)},kr=function(e,t,r){return Je({service:fe,scope:ge.ALL,path:`/v0.10/bookmark/${e}`,method:Ge.DELETE},t,r)},Rr=function(e,t,r){return Je({service:fe,scope:ge.ALL,path:`/v0.10/endpoint_manager/endpoint/${e}`},t,r)},jr=function(e,t,r){return Je({service:fe,scope:ge.ALL,path:`/v0.10/endpoint_manager/endpoint/${e}/hosted_endpoint_list`},t,r)},xr=function(e,t,r){return Je({service:fe,scope:ge.ALL,path:`/v0.10/endpoint_manager/endpoint/${e}/access_list`},t,r)},Ir=function(e={},t){return Je({service:fe,scope:ge.ALL,path:"/v0.10/endpoint_manager/monitored_endpoints"},e,t)},Cr=function(e,t){return Je({service:fe,scope:ge.ALL,path:"/v0.10/endpoint_manager/pause_rule_list"},e,t)},$r=function(e,t){return Je({service:fe,scope:ge.ALL,path:"/v0.10/endpoint_manager/pause_rule",method:Ge.POST},e,t)},Ur=function(e,t,r){return Je({service:fe,scope:ge.ALL,path:`/v0.10/endpoint_manager/pause_rule/${e}`},t,r)},Dr=function(e,t,r){return Je({service:fe,scope:ge.ALL,path:`/v0.10/endpoint_manager/pause_rule/${e}`,method:Ge.PUT},t,r)},Br=function(e,t,r){return Je({service:fe,scope:ge.ALL,path:`/v0.10/endpoint_manager/pause_rule/${e}`,method:Ge.DELETE},t,r)},Nr=function(e={},t){return Je({service:fe,scope:ge.ALL,path:"/v0.10/task_list"},e,t)},Mr=function(e,t,r){return Je({service:fe,scope:ge.ALL,path:`/v0.10/endpoint_manager/task/${e}`},t,r)},Hr=function(e,t){return Je({service:fe,scope:ge.ALL,path:"/v0.10/endpoint_manager/admin_cancel",method:Ge.POST},e,t)},Fr=function(e,t,r){return Je({service:fe,scope:ge.ALL,path:`/v0.10/endpoint_manager/admin_cancel/${e}`,method:Ge.POST},t,r)},qr=function(e,t,r){return Je({service:fe,scope:ge.ALL,path:`/v0.10/endpoint_manager/task/${e}/event_list`},t,r)},zr=function(e,t,r){return Je({service:fe,scope:ge.ALL,path:`/v0.10/endpoint_manager/task/${e}/successful_transfers`},t,r)},Gr=function(e,t,r){return Je({service:fe,scope:ge.ALL,path:`/v0.10/endpoint_manager/task/${e}/skipped_errors`},t,r)},Wr=function(e,t){return Je({service:fe,scope:ge.ALL,path:"/v0.10/endpoint_manager/admin_pause",method:Ge.POST},e,t)},Vr=function(e,t){return Je({service:fe,scope:ge.ALL,path:"/v0.10/endpoint_manager/admin_resume",method:Ge.POST},e,t)},Jr=function(e,t,r){return Je({service:fe,scope:ge.ALL,path:`/v0.10/endpoint_manager/task/${e}/pause_info`},t,r)},Kr=o,Yr=function(e,t,r){return Je({service:Oe,scope:Le.SEARCH,path:`/v1/index/${e}/search`},t,r)},Xr=function(e,t,r){return Je({service:Oe,scope:Le.SEARCH,path:`/v1/index/${e}/search`,method:Ge.POST},t,r)},Qr=function(e,t,r){return Je({service:Oe,scope:Le.SEARCH,path:`/v1/index/${e}/subject`},t,r)},Zr=function(e,t,r){return Je({service:Oe,scope:Le.SEARCH,path:`/v1/index/${e}/entry`},t,r)},en=c,tn=function(e,t){return Je({scope:Ee.ALL,path:"/v2/groups/my_groups",service:Ae},e,t)},rn=function(e,t,r){return Je({service:Ae,scope:Ee.ALL,path:`/v2/groups/${e}`},t,r)},nn=function(e,t,r){return Je({scope:Ee.ALL,path:`/v2/groups/${e}/policies`,service:Ae},t,r)},on=function(e,t,r){if(!(null==t?void 0:t.payload))throw new Error("payload is required.");return Je({service:Ae,scope:Ee.ALL,path:`/v2/groups/${e}`,method:Ge.POST},t,r)},sn=a,an=function(e,t){return Je({service:ye,scope:be.VIEW_FLOWS,path:"/flows"},e,t)},cn=function(e,t,r){return Je({service:ye,scope:be.VIEW_FLOWS,path:`/flows/${e}`},t,r)},un=function(e,t,r){return Je({scope:be.MANAGE_FLOWS,service:ye,path:`/flows/${e}`,method:Ge.DELETE},t,r)},pn=function(e={},t){return Je({service:ye,scope:be.RUN_MANAGE,path:"/runs"},e,t)},hn=i,dn=function(e,t,r){return Je({service:e,scope:Gn(e),path:"/api/collections"},t,r)},ln=function(e,t,r,n){return Je({service:e,scope:Gn(e),path:`/api/collections/${t}`},r,n)},fn=function(e,t,r,n){return Je({service:e,scope:Gn(e),path:`/api/collections/${t}`,method:Ge.DELETE},r,n)},gn=function(e,t,r){return Je({service:e,scope:Gn(e),path:"/api/collections",method:Ge.POST},t,r)},vn=function(e,t,r,n){return Je({service:e,scope:Gn(e),path:`/api/collections/${t}`,method:Ge.PUT},r,n)},yn=function(e,t,r,n){return Je({service:e,scope:Gn(e),path:`/api/collections/${t}`,method:Ge.PATCH},r,n)},mn=function(e,t,r,n){return Je({service:e,scope:Gn(e),path:`/api/collections/${t}/owner_string`,method:Ge.PUT},r,n)},bn=function(e,t,r,n){return Je({service:e,scope:Gn(e),path:`/api/collections/${t}/owner_string`,method:Ge.DELETE},r,n)},wn=function(e,t,r){return Je({service:e,scope:Gn(e),path:"/api/endpoint"},t,r)},_n=function(e,t,r){return Je({service:e,scope:Gn(e),path:"/api/endpoint",method:Ge.PUT},t,r)},An=function(e,t,r){return Je({service:e,scope:Gn(e),path:"/api/endpoint",method:Ge.PATCH},t,r)},Tn=function(e,t,r){return Je({service:e,scope:Gn(e),path:"/api/endpoint/subscription_id",method:Ge.PUT},t,r)},En=function(e,t,r,n){return Je({service:e,scope:Gn(e),path:t},r,n)},On=function(e,t,r,n){return Je({service:e,scope:Gn(e),path:t,method:Ge.DELETE},r,n)},Sn=function(e,t,r,n){return Je({service:e,scope:Gn(e),path:t,method:Ge.PUT},r,n)},Ln=function(e,t,r){return Je({service:e,scope:Gn(e),path:"/api/roles"},t,r)},Pn=function(e,t,r,n){return Je({service:e,scope:Gn(e),path:`/api/roles/${t}`},r,n)},kn=function(e,t,r,n){return Je({service:e,scope:Gn(e),path:`/api/roles/${t}`,method:Ge.DELETE},r,n)},Rn=function(e,t,r){return Je({service:e,scope:Gn(e),path:"/api/roles",method:Ge.POST},t,r)},jn=function(e,t,r){return Je({service:e,scope:Gn(e),path:"/api/storage_gateways"},t,r)},xn=function(e,t,r,n){return Je({service:e,scope:Gn(e),path:`/api/storage_gateways/${t}`},r,n)},In=function(e,t,r,n){return Je({service:e,scope:Gn(e),path:`/api/storage_gateways/${t}`,method:Ge.DELETE},r,n)},Cn=function(e,t,r){return Je({service:e,scope:Gn(e),path:"/api/storage_gateways",method:Ge.POST},t,r)},$n=function(e,t,r,n){return Je({service:e,scope:Gn(e),path:`/api/storage_gateways/${t}`,method:Ge.PUT},r,n)},Un=function(e,t,r,n){return Je({service:e,scope:Gn(e),path:`/api/storage_gateways/${t}`,method:Ge.PATCH},r,n)},Dn=function(e,t,r){return Je({service:e,scope:Gn(e),path:"/api/user_credentials"},t,r)},Bn=function(e,t,r,n){return Je({service:e,scope:Gn(e),path:`/api/user_credentials/${t}`},r,n)},Nn=function(e,t,r,n){return Je({service:e,scope:Gn(e),path:`/api/user_credentials/${t}`,method:Ge.DELETE},r,n)},Mn=function(e,t,r){return Je({service:e,scope:Gn(e),path:"/api/user_credentials",method:Ge.POST},t,r)},Hn=function(e,t,r,n){return Je({service:e,scope:Gn(e),path:`/api/user_credentials/${t}`,method:Ge.PUT},r,n)},Fn=function(e,t,r,n){return Je({service:e,scope:Gn(e),path:`/api/user_credentials/${t}`,method:Ge.PATCH},r,n)},qn=function(e,t,r){return Je({service:e,scope:Gn(e),path:"/api/info"},t,r)},zn={HIGH_ASSURANCE:"urn:globus:auth:scope:<ENDPOINT_ID>:manage_collections",NON_HIGH_ASSURANCE:"urn:globus:auth:scope:<ENDPOINT_ID>:manage_collections[*https://auth.globus.org/scopes/<MAPPED_COLLECTION_ID>/data_access]"};function Gn(e){return zn.HIGH_ASSURANCE.replace("<ENDPOINT_ID>",e.endpoint_id)}const Wn=function(e,t){return Je({service:we,scope:"https://auth.globus.org/scopes/524230d7-ea86-4a52-8312-86065a9e0417/timer",path:"/v2/timer",method:Ge.POST},e,t)},Vn=s,Jn=function(e,t){return Je({service:Pe,scope:Re.ALL,path:"/v2/endpoints",method:Ge.GET},e,t)},Kn=function(e,t,r){return Je({service:Pe,scope:Re.ALL,path:`/v2/endpoints/${e}`,method:Ge.GET},t,r)},Yn=function(e,t,r){return Je({service:Pe,scope:Re.ALL,path:`/v2/endpoints/${e}/status`},t,r)},Xn=u,Qn={integration:"app.integration.globuscs.info",sandbox:"app.sandbox.globuscs.info",test:"app.test.globuscs.info",staging:"app.staging.globuscs.info",preview:"app.preview.globus.org",production:"app.globus.org"};function Zn(e=He()){return Qn[e]}function eo(e,t){return new URL(e||"",`https://${Zn(null==t?void 0:t.environment)}`)}const to={TASK:"/activity/%s/overview",COLLECTION:"/file-manager/collections/%s/overview",ENDPOINT:"/file-manager/collections/%s/overview"};function ro(e,t,r){return eo(to[e].replace(/%s/g,(null==t?void 0:t.join("/"))||""),r)}})(),globus=n})();
|
|
1
|
+
var globus;(()=>{var e={945:(e,t,r)=>{var n="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==r.g&&r.g,o=function(){function e(){this.fetch=!1,this.DOMException=n.DOMException}return e.prototype=n,new e}();!function(e){!function(t){var r=void 0!==e&&e||"undefined"!=typeof self&&self||void 0!==r&&r,n="URLSearchParams"in r,o="Symbol"in r&&"iterator"in Symbol,i="FileReader"in r&&"Blob"in r&&function(){try{return new Blob,!0}catch(e){return!1}}(),s="FormData"in r,a="ArrayBuffer"in r;if(a)var c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],u=ArrayBuffer.isView||function(e){return e&&c.indexOf(Object.prototype.toString.call(e))>-1};function p(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function h(e){return"string"!=typeof e&&(e=String(e)),e}function d(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return o&&(t[Symbol.iterator]=function(){return t}),t}function l(e){this.map={},e instanceof l?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function f(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function g(e){return new Promise((function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}}))}function v(e){var t=new FileReader,r=g(t);return t.readAsArrayBuffer(e),r}function y(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function m(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:i&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:s&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:n&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():a&&i&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=y(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a&&(ArrayBuffer.prototype.isPrototypeOf(e)||u(e))?this._bodyArrayBuffer=y(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i&&(this.blob=function(){var e=f(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?f(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer)):this.blob().then(v)}),this.text=function(){var e,t,r,n=f(this);if(n)return n;if(this._bodyBlob)return e=this._bodyBlob,r=g(t=new FileReader),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},s&&(this.formData=function(){return this.text().then(_)}),this.json=function(){return this.text().then(JSON.parse)},this}l.prototype.append=function(e,t){e=p(e),t=h(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},l.prototype.delete=function(e){delete this.map[p(e)]},l.prototype.get=function(e){return e=p(e),this.has(e)?this.map[e]:null},l.prototype.has=function(e){return this.map.hasOwnProperty(p(e))},l.prototype.set=function(e,t){this.map[p(e)]=h(t)},l.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},l.prototype.keys=function(){var e=[];return this.forEach((function(t,r){e.push(r)})),d(e)},l.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),d(e)},l.prototype.entries=function(){var e=[];return this.forEach((function(t,r){e.push([r,t])})),d(e)},o&&(l.prototype[Symbol.iterator]=l.prototype.entries);var b=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function w(e,t){if(!(this instanceof w))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,n,o=(t=t||{}).body;if(e instanceof w){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new l(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,o||null==e._bodyInit||(o=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new l(t.headers)),this.method=(n=(r=t.method||this.method||"GET").toUpperCase(),b.indexOf(n)>-1?n:r),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(o),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var i=/([?&])_=[^&]*/;i.test(this.url)?this.url=this.url.replace(i,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}function _(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var r=e.split("="),n=r.shift().replace(/\+/g," "),o=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(o))}})),t}function A(e,t){if(!(this instanceof A))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new l(t.headers),this.url=t.url||"",this._initBody(e)}w.prototype.clone=function(){return new w(this,{body:this._bodyInit})},m.call(w.prototype),m.call(A.prototype),A.prototype.clone=function(){return new A(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},A.error=function(){var e=new A(null,{status:0,statusText:""});return e.type="error",e};var T=[301,302,303,307,308];A.redirect=function(e,t){if(-1===T.indexOf(t))throw new RangeError("Invalid status code");return new A(null,{status:t,headers:{location:e}})},t.DOMException=r.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var r=Error(e);this.stack=r.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function E(e,n){return new Promise((function(o,s){var c=new w(e,n);if(c.signal&&c.signal.aborted)return s(new t.DOMException("Aborted","AbortError"));var u=new XMLHttpRequest;function p(){u.abort()}u.onload=function(){var e,t,r={status:u.status,statusText:u.statusText,headers:(e=u.getAllResponseHeaders()||"",t=new l,e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var r=e.split(":"),n=r.shift().trim();if(n){var o=r.join(":").trim();t.append(n,o)}})),t)};r.url="responseURL"in u?u.responseURL:r.headers.get("X-Request-URL");var n="response"in u?u.response:u.responseText;setTimeout((function(){o(new A(n,r))}),0)},u.onerror=function(){setTimeout((function(){s(new TypeError("Network request failed"))}),0)},u.ontimeout=function(){setTimeout((function(){s(new TypeError("Network request failed"))}),0)},u.onabort=function(){setTimeout((function(){s(new t.DOMException("Aborted","AbortError"))}),0)},u.open(c.method,function(e){try{return""===e&&r.location.href?r.location.href:e}catch(t){return e}}(c.url),!0),"include"===c.credentials?u.withCredentials=!0:"omit"===c.credentials&&(u.withCredentials=!1),"responseType"in u&&(i?u.responseType="blob":a&&c.headers.get("Content-Type")&&-1!==c.headers.get("Content-Type").indexOf("application/octet-stream")&&(u.responseType="arraybuffer")),!n||"object"!=typeof n.headers||n.headers instanceof l?c.headers.forEach((function(e,t){u.setRequestHeader(t,e)})):Object.getOwnPropertyNames(n.headers).forEach((function(e){u.setRequestHeader(e,h(n.headers[e]))})),c.signal&&(c.signal.addEventListener("abort",p),u.onreadystatechange=function(){4===u.readyState&&c.signal.removeEventListener("abort",p)}),u.send(void 0===c._bodyInit?null:c._bodyInit)}))}E.polyfill=!0,r.fetch||(r.fetch=E,r.Headers=l,r.Request=w,r.Response=A),t.Headers=l,t.Request=w,t.Response=A,t.fetch=E}({})}(o),o.fetch.ponyfill=!0,delete o.fetch.polyfill;var i=n.fetch?n:o;(t=i.fetch).default=i.fetch,t.fetch=i.fetch,t.Headers=i.Headers,t.Request=i.Request,t.Response=i.Response,e.exports=t},21:function(e,t,r){var n;e.exports=(n=n||function(e,t){var n;if("undefined"!=typeof window&&window.crypto&&(n=window.crypto),"undefined"!=typeof self&&self.crypto&&(n=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(n=globalThis.crypto),!n&&"undefined"!=typeof window&&window.msCrypto&&(n=window.msCrypto),!n&&void 0!==r.g&&r.g.crypto&&(n=r.g.crypto),!n)try{n=r(477)}catch(e){}var o=function(){if(n){if("function"==typeof n.getRandomValues)try{return n.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof n.randomBytes)try{return n.randomBytes(4).readInt32LE()}catch(e){}}throw new Error("Native crypto module could not be used to get secure random number.")},i=Object.create||function(){function e(){}return function(t){var r;return e.prototype=t,r=new e,e.prototype=null,r}}(),s={},a=s.lib={},c=a.Base={extend:function(e){var t=i(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},u=a.WordArray=c.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||h).stringify(this)},concat:function(e){var t=this.words,r=e.words,n=this.sigBytes,o=e.sigBytes;if(this.clamp(),n%4)for(var i=0;i<o;i++){var s=r[i>>>2]>>>24-i%4*8&255;t[n+i>>>2]|=s<<24-(n+i)%4*8}else for(var a=0;a<o;a+=4)t[n+a>>>2]=r[a>>>2];return this.sigBytes+=o,this},clamp:function(){var t=this.words,r=this.sigBytes;t[r>>>2]&=4294967295<<32-r%4*8,t.length=e.ceil(r/4)},clone:function(){var e=c.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],r=0;r<e;r+=4)t.push(o());return new u.init(t,e)}}),p=s.enc={},h=p.Hex={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],o=0;o<r;o++){var i=t[o>>>2]>>>24-o%4*8&255;n.push((i>>>4).toString(16)),n.push((15&i).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n<t;n+=2)r[n>>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new u.init(r,t/2)}},d=p.Latin1={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],o=0;o<r;o++){var i=t[o>>>2]>>>24-o%4*8&255;n.push(String.fromCharCode(i))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n<t;n++)r[n>>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;return new u.init(r,t)}},l=p.Utf8={stringify:function(e){try{return decodeURIComponent(escape(d.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return d.parse(unescape(encodeURIComponent(e)))}},f=a.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new u.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=l.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var r,n=this._data,o=n.words,i=n.sigBytes,s=this.blockSize,a=i/(4*s),c=(a=t?e.ceil(a):e.max((0|a)-this._minBufferSize,0))*s,p=e.min(4*c,i);if(c){for(var h=0;h<c;h+=s)this._doProcessBlock(o,h);r=o.splice(0,c),n.sigBytes-=p}return new u.init(r,p)},clone:function(){var e=c.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),g=(a.Hasher=f.extend({cfg:c.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){f.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,r){return new e.init(r).finalize(t)}},_createHmacHelper:function(e){return function(t,r){return new g.HMAC.init(e,r).finalize(t)}}}),s.algo={});return s}(Math),n)},754:function(e,t,r){var n,o,i;e.exports=(n=r(21),i=(o=n).lib.WordArray,o.enc.Base64={stringify:function(e){var t=e.words,r=e.sigBytes,n=this._map;e.clamp();for(var o=[],i=0;i<r;i+=3)for(var s=(t[i>>>2]>>>24-i%4*8&255)<<16|(t[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|t[i+2>>>2]>>>24-(i+2)%4*8&255,a=0;a<4&&i+.75*a<r;a++)o.push(n.charAt(s>>>6*(3-a)&63));var c=n.charAt(64);if(c)for(;o.length%4;)o.push(c);return o.join("")},parse:function(e){var t=e.length,r=this._map,n=this._reverseMap;if(!n){n=this._reverseMap=[];for(var o=0;o<r.length;o++)n[r.charCodeAt(o)]=o}var s=r.charAt(64);if(s){var a=e.indexOf(s);-1!==a&&(t=a)}return function(e,t,r){for(var n=[],o=0,s=0;s<t;s++)if(s%4){var a=r[e.charCodeAt(s-1)]<<s%4*2|r[e.charCodeAt(s)]>>>6-s%4*2;n[o>>>2]|=a<<24-o%4*8,o++}return i.create(n,o)}(e,t,n)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},n.enc.Base64)},440:function(e,t,r){var n;e.exports=(n=r(21),function(){if("function"==typeof ArrayBuffer){var e=n.lib.WordArray,t=e.init,r=e.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var r=e.byteLength,n=[],o=0;o<r;o++)n[o>>>2]|=e[o]<<24-o%4*8;t.call(this,n,r)}else t.apply(this,arguments)};r.prototype=e}}(),n.lib.WordArray)},9:function(e,t,r){var n;e.exports=(n=r(21),function(e){var t=n,r=t.lib,o=r.WordArray,i=r.Hasher,s=t.algo,a=[],c=[];!function(){function t(t){for(var r=e.sqrt(t),n=2;n<=r;n++)if(!(t%n))return!1;return!0}function r(e){return 4294967296*(e-(0|e))|0}for(var n=2,o=0;o<64;)t(n)&&(o<8&&(a[o]=r(e.pow(n,.5))),c[o]=r(e.pow(n,1/3)),o++),n++}();var u=[],p=s.SHA256=i.extend({_doReset:function(){this._hash=new o.init(a.slice(0))},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],o=r[1],i=r[2],s=r[3],a=r[4],p=r[5],h=r[6],d=r[7],l=0;l<64;l++){if(l<16)u[l]=0|e[t+l];else{var f=u[l-15],g=(f<<25|f>>>7)^(f<<14|f>>>18)^f>>>3,v=u[l-2],y=(v<<15|v>>>17)^(v<<13|v>>>19)^v>>>10;u[l]=g+u[l-7]+y+u[l-16]}var m=n&o^n&i^o&i,b=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),w=d+((a<<26|a>>>6)^(a<<21|a>>>11)^(a<<7|a>>>25))+(a&p^~a&h)+c[l]+u[l];d=h,h=p,p=a,a=s+w|0,s=i,i=o,o=n,n=w+(b+m)|0}r[0]=r[0]+n|0,r[1]=r[1]+o|0,r[2]=r[2]+i|0,r[3]=r[3]+s|0,r[4]=r[4]+a|0,r[5]=r[5]+p|0,r[6]=r[6]+h|0,r[7]=r[7]+d|0},_doFinalize:function(){var t=this._data,r=t.words,n=8*this._nDataBytes,o=8*t.sigBytes;return r[o>>>5]|=128<<24-o%32,r[14+(o+64>>>9<<4)]=e.floor(n/4294967296),r[15+(o+64>>>9<<4)]=n,t.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=i._createHelper(p),t.HmacSHA256=i._createHmacHelper(p)}(Math),n.SHA256)},368:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=o(r(9)),s=o(r(754)),a=o(r(440)),c=function(){function e(e){this.state="",this.codeVerifier="",this.corsRequestOptions={},this.config=e}return e.prototype.enableCorsCredentials=function(e){return this.corsRequestOptions=e?{credentials:"include",mode:"cors"}:{},this.corsRequestOptions},e.prototype.authorizeUrl=function(e){void 0===e&&(e={});var t=this.pkceChallengeFromVerifier(),r=new URLSearchParams(Object.assign({response_type:"code",client_id:this.config.client_id,state:this.getState(e.state||null),scope:this.config.requested_scopes,redirect_uri:this.config.redirect_uri,code_challenge:t,code_challenge_method:"S256"},e)).toString();return"".concat(this.config.authorization_endpoint,"?").concat(r)},e.prototype.exchangeForAccessToken=function(e,t){var r=this;return void 0===t&&(t={}),this.parseAuthResponseUrl(e).then((function(e){return fetch(r.config.token_endpoint,n({method:"POST",body:new URLSearchParams(Object.assign({grant_type:"authorization_code",code:e.code,client_id:r.config.client_id,redirect_uri:r.config.redirect_uri,code_verifier:r.getCodeVerifier()},t)),headers:{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"}},r.corsRequestOptions)).then((function(e){return e.json()}))}))},e.prototype.refreshAccessToken=function(e){return fetch(this.config.token_endpoint,{method:"POST",body:new URLSearchParams({grant_type:"refresh_token",client_id:this.config.client_id,refresh_token:e}),headers:{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"}}).then((function(e){return e.json()}))},e.prototype.getCodeVerifier=function(){return""===this.codeVerifier&&(this.codeVerifier=this.randomStringFromStorage("pkce_code_verifier")),this.codeVerifier},e.prototype.getState=function(e){void 0===e&&(e=null);var t="pkce_state";return null!==e&&this.getStore().setItem(t,e),""===this.state&&(this.state=this.randomStringFromStorage(t)),this.state},e.prototype.parseAuthResponseUrl=function(e){var t=new URL(e).searchParams;return this.validateAuthResponse({error:t.get("error"),query:t.get("query"),state:t.get("state"),code:t.get("code")})},e.prototype.pkceChallengeFromVerifier=function(){var e=(0,i.default)(this.getCodeVerifier());return s.default.stringify(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")},e.prototype.randomStringFromStorage=function(e){return null===this.getStore().getItem(e)&&this.getStore().setItem(e,a.default.random(64)),this.getStore().getItem(e)||""},e.prototype.validateAuthResponse=function(e){var t=this;return new Promise((function(r,n){return e.error?n({error:e.error}):e.state!==t.getState()?n({error:"Invalid State"}):r(e)}))},e.prototype.getStore=function(){var e;return(null===(e=this.config)||void 0===e?void 0:e.storage)||sessionStorage},e}();t.default=c},477:()=>{}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n].call(i.exports,i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},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.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};(()=>{"use strict";r.r(n),r.d(n,{auth:()=>g,authorization:()=>v,compute:()=>K,errors:()=>h,flows:()=>B,gcs:()=>W,groups:()=>$,info:()=>e,logger:()=>t,search:()=>R,timer:()=>V,transfer:()=>L,webapp:()=>Y});var e={};r.r(e),r.d(e,{CLIENT_INFO:()=>re,VERSION:()=>te,addClientInfo:()=>oe,getClientInfo:()=>ie,getClientInfoRequestHeaders:()=>se});var t={};r.r(t),r.d(t,{log:()=>de,setLogLevel:()=>he,setLogger:()=>pe});var o={};r.r(o),r.d(o,{HOSTS:()=>ve,ID:()=>fe,SCOPES:()=>ge});var i={};r.r(i),r.d(i,{HOSTS:()=>me,ID:()=>ye,SCOPES:()=>be});var s={};r.r(s),r.d(s,{HOSTS:()=>_e,ID:()=>we});var a={};r.r(a),r.d(a,{HOSTS:()=>Te,ID:()=>Ae,SCOPES:()=>Ee});var c={};r.r(c),r.d(c,{HOSTS:()=>Se,ID:()=>Oe,SCOPES:()=>Le});var u={};r.r(u),r.d(u,{HOSTS:()=>ke,ID:()=>Pe,SCOPES:()=>je});var p={};r.r(p),r.d(p,{HOSTS:()=>xe,ID:()=>Re,RESOURCE_SERVERS:()=>Ce,SCOPES:()=>Ie});var h={};r.r(h),r.d(h,{EnvironmentConfigurationError:()=>$e,isAuthorizationRequirementsError:()=>Me,isConsentRequiredError:()=>De,isErrorWellFormed:()=>Ue,toAuthorizationQueryParams:()=>Ne});var d={};r.r(d),r.d(d,{get:()=>Xe,getAll:()=>Qe});var l={};r.r(l),r.d(l,{introspect:()=>et,refresh:()=>rt,revoke:()=>tt,validate:()=>nt});var f={};r.r(f),r.d(f,{token:()=>l,userinfo:()=>ot});var g={};r.r(g),r.d(g,{CONFIG:()=>it,getAuthorizationEndpoint:()=>st,getTokenEndpoint:()=>at,identities:()=>d,isGlobusAuthTokenResponse:()=>pt,isRefreshToken:()=>ut,isToken:()=>ct,oauth2:()=>f});var v={};r.r(v),r.d(v,{create:()=>Zt});var y={};r.r(y),r.d(y,{ls:()=>rr,mkdir:()=>nr,rename:()=>or,symlink:()=>ir});var m={};r.r(m),r.d(m,{submissionId:()=>cr,submitDelete:()=>sr,submitTransfer:()=>ar});var b={};r.r(b),r.d(b,{create:()=>pr,get:()=>ur,remove:()=>dr,update:()=>hr});var w={};r.r(w),r.d(w,{cancel:()=>vr,get:()=>fr,getAll:()=>lr,getEventList:()=>mr,getPauseInfo:()=>_r,getSkippedErrors:()=>wr,getSuccessfulTransfers:()=>br,remove:()=>yr,update:()=>gr});var _={};r.r(_),r.d(_,{create:()=>Tr,get:()=>Er,getAll:()=>Ar,remove:()=>Sr,update:()=>Or});var A={};r.r(A),r.d(A,{create:()=>Pr,get:()=>kr,getAll:()=>Lr,remove:()=>Rr,update:()=>jr});var T={};r.r(T),r.d(T,{get:()=>xr,getAccessList:()=>Cr,getHostedEndpoints:()=>Ir,getMonitoredEndpoints:()=>$r});var E={};r.r(E),r.d(E,{create:()=>Dr,get:()=>Br,getAll:()=>Ur,remove:()=>Mr,update:()=>Nr});var O={};r.r(O),r.d(O,{cancel:()=>qr,get:()=>Fr,getAdminCancel:()=>zr,getAll:()=>Hr,getEventList:()=>Gr,getPauseInfo:()=>Yr,getSkippedErrors:()=>Vr,getSuccessfulTransfers:()=>Wr,pause:()=>Jr,resume:()=>Kr});var S={};r.r(S),r.d(S,{endpoint:()=>T,pauseRule:()=>E,task:()=>O});var L={};r.r(L),r.d(L,{CONFIG:()=>Xr,access:()=>_,collectionBookmarks:()=>A,endpoint:()=>b,endpointManager:()=>S,endpointSearch:()=>er,fileOperations:()=>y,task:()=>w,taskSubmission:()=>m});var P={};r.r(P),r.d(P,{get:()=>Qr,post:()=>Zr});var k={};r.r(k),r.d(k,{get:()=>en});var j={};r.r(j),r.d(j,{get:()=>tn});var R={};r.r(R),r.d(R,{CONFIG:()=>rn,entry:()=>j,query:()=>P,subject:()=>k});var x={};r.r(x),r.d(x,{get:()=>on,getMyGroups:()=>nn});var I={};r.r(I),r.d(I,{get:()=>sn});var C={};r.r(C),r.d(C,{act:()=>an});var $={};r.r($),r.d($,{CONFIG:()=>cn,groups:()=>x,membership:()=>C,policies:()=>I});var U={};r.r(U),r.d(U,{get:()=>pn,getAll:()=>un,remove:()=>hn});var D={};r.r(D),r.d(D,{getAll:()=>dn});var B={};r.r(B),r.d(B,{CONFIG:()=>ln,flows:()=>U,runs:()=>D});var N={};r.r(N),r.d(N,{create:()=>yn,get:()=>gn,getAll:()=>fn,patch:()=>bn,remove:()=>vn,resetOwnerString:()=>_n,update:()=>mn,updateOwnerString:()=>wn});var M={};r.r(M),r.d(M,{get:()=>An,patch:()=>En,update:()=>Tn,updateSubscriptionId:()=>On});var H={};r.r(H),r.d(H,{get:()=>Sn,remove:()=>Ln,update:()=>Pn});var F={};r.r(F),r.d(F,{create:()=>xn,get:()=>jn,getAll:()=>kn,remove:()=>Rn});var q={};r.r(q),r.d(q,{create:()=>Un,get:()=>Cn,getAll:()=>In,patch:()=>Bn,remove:()=>$n,update:()=>Dn});var z={};r.r(z),r.d(z,{create:()=>Fn,get:()=>Mn,getAll:()=>Nn,patch:()=>zn,remove:()=>Hn,update:()=>qn});var G={};r.r(G),r.d(G,{info:()=>Gn});var W={};r.r(W),r.d(W,{collections:()=>N,endpoint:()=>M,getRequiredScopes:()=>Vn,https:()=>H,roles:()=>F,storageGateways:()=>q,userCredentials:()=>z,versioning:()=>G});var V={};r.r(V),r.d(V,{CONFIG:()=>Kn,create:()=>Jn});var J={};r.r(J),r.d(J,{get:()=>Xn,getAll:()=>Yn,getStatus:()=>Qn});var K={};r.r(K),r.d(K,{CONFIG:()=>Zn,endpoints:()=>J});var Y={};r.r(Y),r.d(Y,{HOSTS:()=>eo,host:()=>to,url:()=>ro,urlFor:()=>oo});const X="X-Globus-Client-Info";let Q=!0;const Z=";",ee=",",te="3.4.2",re={product:"javascript-sdk",version:te};let ne=[re];function oe(e){ne=ne.concat(e)}function ie(){return function(e){return(Array.isArray(e)?e:[e]).map((e=>Object.entries(e).map((([e,t])=>`${e}=${t}`)).join(ee))).join(Z)}(ne)}function se(){return Q?{[X]:ie()}:{}}const ae=["debug","info","warn","error"];let ce,ue=ae.indexOf("error");function pe(e){ce=e}function he(e){ue=ae.indexOf(e)}function de(e,...t){var r;ce&&(ae.indexOf(e)<ue||(null!==(r=ce[e])&&void 0!==r?r:ce.log)(...t))}class le extends Error{}le.prototype.name="InvalidTokenError";const fe="TRANSFER",ge={ALL:"urn:globus:auth:scope:transfer.api.globus.org:all"},ve={sandbox:"transfer.api.sandbox.globuscs.info",production:"transfer.api.globusonline.org",staging:"transfer.api.staging.globuscs.info",integration:"transfer.api.integration.globuscs.info",test:"transfer.api.test.globuscs.info",preview:"transfer.api.preview.globus.org"},ye="FLOWS",me={sandbox:"sandbox.flows.automate.globus.org",production:"flows.globus.org",staging:"staging.flows.automate.globus.org",integration:"integration.flows.automate.globus.org",test:"test.flows.automate.globus.org",preview:"preview.flows.automate.globus.org"},be={MANAGE_FLOWS:"https://auth.globus.org/scopes/eec9b274-0c81-4334-bdc2-54e90e689b9a/manage_flows",VIEW_FLOWS:"https://auth.globus.org/scopes/eec9b274-0c81-4334-bdc2-54e90e689b9a/view_flows",RUN:"https://auth.globus.org/scopes/eec9b274-0c81-4334-bdc2-54e90e689b9a/run",RUN_STATUS:"https://auth.globus.org/scopes/eec9b274-0c81-4334-bdc2-54e90e689b9a/run_status",RUN_MANAGE:"https://auth.globus.org/scopes/eec9b274-0c81-4334-bdc2-54e90e689b9a/run_manage"},we="TIMER",_e={sandbox:"sandbox.timer.automate.globus.org",production:"timer.automate.globus.org",staging:"staging.timer.automate.globus.org",integration:"integration.timer.automate.globus.org",test:"test.timer.automate.globus.org",preview:"preview.timer.automate.globus.org"},Ae="GROUPS",Te={sandbox:"groups.api.sandbox.globuscs.info",production:"groups.api.globus.org",staging:"groups.api.staging.globuscs.info",integration:"groups.api.integration.globuscs.info",test:"groups.api.test.globuscs.info",preview:"groups.api.preview.globuscs.info"},Ee={ALL:"urn:globus:auth:scope:groups.api.globus.org:all",VIEW_MY:"urn:globus:auth:scope:groups.api.globus.org:view_my_groups_and_membership"},Oe="SEARCH",Se={sandbox:"search.api.sandbox.globuscs.info",production:"search.api.globus.org",staging:"search.api.staging.globuscs.info",integration:"search.api.integration.globuscs.info",test:"search.api.test.globuscs.info",preview:"search.api.preview.globus.org"},Le={ALL:"urn:globus:auth:scope:search.api.globus.org:all",INGEST:"urn:globus:auth:scope:search.api.globus.org:ingest",SEARCH:"urn:globus:auth:scope:search.api.globus.org:search"},Pe="COMPUTE",ke={sandbox:"compute.api.sandbox.globuscs.info",production:"compute.api.globus.org",staging:"compute.api.staging.globuscs.info",integration:"compute.api.integration.globuscs.info",test:"compute.api.test.globuscs.info",preview:"compute.api.preview.globus.org"},je={ALL:"https://auth.globus.org/scopes/facd7ccc-c5f4-42aa-916b-a0e270e2c2a9/all"},Re="AUTH",xe={integration:"auth.integration.globuscs.info",sandbox:"auth.sandbox.globuscs.info",production:"auth.globus.org",test:"auth.test.globuscs.info",staging:"auth.staging.globuscs.info",preview:"auth.preview.globus.org"},Ie={VIEW_IDENTITIES:"urn:globus:auth:scope:auth.globus.org:view_identities"},Ce={[Re]:"auth.globus.org",[fe]:"transfer.api.globus.org",[ye]:"flows.api.globus.org",[Ae]:"groups.api.globus.org",[Oe]:"search.api.globus.org",[we]:"524230d7-ea86-4a52-8312-86065a9e0417",[Pe]:"funcx_service"};class $e extends Error{constructor(e,t){super(),this.name="EnvironmentConfigurationError",this.message=`Invalid configuration value provided for ${e} (${t}).`}}function Ue(e){return"object"==typeof e&&null!==e&&"code"in e&&"message"in e}function De(e){return Ue(e)&&"ConsentRequired"===e.code&&"required_scopes"in e&&Array.isArray(e.required_scopes)}const Be=["required_scopes"];function Ne(e){return Object.entries(e.authorization_parameters).reduce(((e,[t,r])=>{if(Be.includes(t)||null==r)return e;let n=r;return Array.isArray(n)?n=n.join(","):"boolean"==typeof r&&(n=n?"true":"false"),Object.assign(Object.assign({},e),{[t]:n})}),{})}function Me(e){return Ue(e)&&"authorization_parameters"in e&&"object"==typeof e.authorization_parameters&&null!==e.authorization_parameters}function He(e,t){const r="undefined"!=typeof window?window:process;let n;return n=function(e){return typeof window==typeof e}(r)?r:r.env,e in n?n[e]:t}const Fe={PRODUCTION:"production",PREVIEW:"preview",STAGING:"staging",SANDBOX:"sandbox",INTEGRATION:"integration",TEST:"test"};function qe(){const e=He("GLOBUS_SDK_ENVIRONMENT",Fe.PRODUCTION);if(!e||!Object.values(Fe).includes(e))throw new $e("GLOBUS_SDK_ENVIRONMENT",e);return e}const ze={[Re]:Re,[fe]:fe,[ye]:ye,[Ae]:Ae,[Oe]:Oe,[we]:we,[Pe]:Pe},Ge={[Re]:xe,[fe]:ve,[ye]:me,[Ae]:Te,[Oe]:Se,[we]:_e,[Pe]:ke};function We(e,t,r,n){let o;return o="object"==typeof e?new URL(t,e.host):function(e,t="",r=qe()){const n=function(e,t=qe()){const r=function(e,t=qe()){return Ge[e][t]}(e,t);return He(`GLOBUS_SDK_SERVICE_URL_${e}`,r?`https://${r}`:void 0)}(e,r);return new URL(t,n)}(e,t,null==n?void 0:n.environment),r&&r.search&&(o.search=function(e){const t=new URLSearchParams;return Array.from(Object.entries(e)).forEach((([e,r])=>{Array.isArray(r)?t.set(e,r.join(",")):void 0!==r&&t.set(e,String(r))})),t.toString()}(r.search)),o.toString()}var Ve,Je=r(945),Ke=r.n(Je);function Ye(e,t,r){var n;const o=function(e){var t,r,n,o,i,s;let a=He("GLOBUS_SDK_OPTIONS",{});return"string"==typeof a&&(a=JSON.parse(a)),Object.assign(Object.assign(Object.assign({},a),e),{fetch:Object.assign(Object.assign(Object.assign({},null==a?void 0:a.fetch),null==e?void 0:e.fetch),{options:Object.assign(Object.assign(Object.assign({},null===(t=null==a?void 0:a.fetch)||void 0===t?void 0:t.options),null===(r=null==e?void 0:e.fetch)||void 0===r?void 0:r.options),{headers:Object.assign(Object.assign({},null===(o=null===(n=null==a?void 0:a.fetch)||void 0===n?void 0:n.options)||void 0===o?void 0:o.headers),null===(s=null===(i=null==e?void 0:e.fetch)||void 0===i?void 0:i.options)||void 0===s?void 0:s.headers)})})})}(r),i=(null===(n=null==o?void 0:o.fetch)||void 0===n?void 0:n.options)||{},s=Object.assign(Object.assign(Object.assign({},se()),null==t?void 0:t.headers),i.headers);if(e.resource_server&&(null==o?void 0:o.manager)){const t=o.manager.tokens.getByResourceServer(e.resource_server);t&&(s.Authorization=`Bearer ${t.access_token}`)}if(e.scope&&(null==o?void 0:o.manager)){const t="string"==typeof e.service?Ce[e.service]:e.service.endpoint_id,r=o.manager.tokens.getByResourceServer(t);r&&(s.Authorization=`Bearer ${r.access_token}`)}let a=null==t?void 0:t.body;!a&&(null==t?void 0:t.payload)&&(a=JSON.stringify(t.payload)),!(null==s?void 0:s["Content-Type"])&&a&&(s["Content-Type"]="application/json");const c=We(e.service,e.path,{search:null==t?void 0:t.query},o),u=Object.assign(Object.assign({method:e.method,body:a},i),{headers:s});return(null==i?void 0:i.__callable)?(delete u.__callable,i.__callable.call(this,c,u)):Ke()(c,u)}!function(e){e.POST="POST",e.GET="GET",e.DELETE="DELETE",e.PUT="PUT",e.PATCH="PATCH"}(Ve||(Ve={}));const Xe=function(e,t={},r){return Ye({service:Re,scope:Ie.VIEW_IDENTITIES,path:`/identities/${e}`},t,r)},Qe=function(e={},t){return Ye({service:Re,scope:Ie.VIEW_IDENTITIES,path:"/identities"},e,t)};function Ze(e){return Object.assign(Object.assign({},e),{body:(t=e.payload,new URLSearchParams(t)),headers:Object.assign(Object.assign({},(null==e?void 0:e.headers)||{}),{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"})});var t}const et=function(e,t){if(!(null==e?void 0:e.payload))throw new Error("'payload' is required for introspect");return Ye({service:Re,scope:void 0,path:"/v2/oauth2/token/introspect",method:Ve.POST},Ze(e),t)},tt=function(e,t){if(!(null==e?void 0:e.payload))throw new Error("'payload' is required for revoke");return Ye({service:Re,scope:void 0,path:"/v2/oauth2/token/revoke",method:Ve.POST},Ze(e),t)},rt=function(e,t){if(!(null==e?void 0:e.payload))throw new Error("'payload' is required for revoke");return Ye({service:Re,scope:void 0,path:"/v2/oauth2/token",method:Ve.POST},Ze(e),t)},nt=function(e,t){if(!(null==e?void 0:e.payload))throw new Error("'payload' is required for validate");return Ye({service:Re,scope:void 0,path:"/v2/oauth2/token/validate",method:Ve.POST},Ze(e),t)},ot=function(e,t){return Ye({service:Re,scope:void 0,path:"/v2/oauth2/userinfo",method:Ve.GET},e,t)},it=p;function st(){return We(Re,"/v2/oauth2/authorize")}function at(){return We(Re,"/v2/oauth2/token")}function ct(e){return"object"==typeof e&&null!==e&&"access_token"in e}function ut(e){return ct(e)&&null!==e&&"refresh_token"in e}function pt(e){return ct(e)&&null!==e&&"resource_server"in e}var ht,dt=function(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)};class lt{constructor(){ht.set(this,{})}get(e){return void 0!==dt(this,ht,"f")[e]?dt(this,ht,"f")[e]:null}set(e,t){dt(this,ht,"f")[e]="string"!=typeof t?JSON.stringify(t):t}remove(e){delete dt(this,ht,"f")[e]}keys(){return Object.keys(dt(this,ht,"f"))}clear(){!function(e,t,r,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");"a"===n?o.call(e,r):o?o.value=r:t.set(e,r)}(this,ht,{},"f")}}ht=new WeakMap;var ft,gt=function(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)};class vt{constructor(){ft.set(this,globalThis.localStorage)}get(e){return gt(this,ft,"f").getItem(e)}set(e,t){gt(this,ft,"f").setItem(e,"string"!=typeof t?JSON.stringify(t):t)}keys(){return Object.keys(gt(this,ft,"f"))}remove(e){gt(this,ft,"f").removeItem(e)}clear(){gt(this,ft,"f").clear()}}let yt;function mt(e="memory"){if(!yt){let t;t="localStorage"===e?vt:"memory"===e?lt:e,yt=new t}return yt}ft=new WeakMap;const bt=mt;var wt,_t=function(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)},At=function(e,t,r,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?o.call(e,r):o?o.value=r:t.set(e,r),r};class Tt{constructor(e){this.name=e,wt.set(this,[])}addListener(e){return _t(this,wt,"f").push(e),()=>this.removeListener(e)}removeListener(e){At(this,wt,_t(this,wt,"f").filter((t=>t!==e)),"f")}clearListeners(){At(this,wt,[],"f")}dispatch(e){return t=this,r=void 0,o=function*(){yield Promise.all(_t(this,wt,"f").map((t=>t(e))))},new((n=void 0)||(n=Promise))((function(e,i){function s(e){try{c(o.next(e))}catch(e){i(e)}}function a(e){try{c(o.throw(e))}catch(e){i(e)}}function c(t){var r;t.done?e(t.value):(r=t.value,r instanceof n?r:new n((function(e){e(r)}))).then(s,a)}c((o=o.apply(t,r||[])).next())}));var t,r,n,o}}wt=new WeakMap;var Et,Ot,St=r(368),Lt=r.n(St),Pt=function(e,t,r,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?o.call(e,r):o?o.value=r:t.set(e,r),r},kt=function(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)};class jt{constructor(e){Et.set(this,void 0),Ot.set(this,{});const{params:t}=e,r=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["params"]);Pt(this,Et,new(Lt())(Object.assign({},r)),"f"),Pt(this,Ot,Object.assign({},t),"f")}send(){window.location.replace(kt(this,Et,"f").authorizeUrl(kt(this,Ot,"f")))}getToken(){return e=this,t=arguments,n=function*(e={shouldReplace:!0}){const t=new URL(window.location.href),r=new URLSearchParams(t.search);if(!r.get("code"))return;const n=yield kt(this,Et,"f").exchangeForAccessToken(t.toString());return sessionStorage.removeItem("pkce_state"),sessionStorage.removeItem("pkce_code_verifier"),e.shouldReplace&&(r.delete("code"),r.delete("state"),t.search=r.toString(),window.location.replace(t)),n},new((r=void 0)||(r=Promise))((function(o,i){function s(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?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}));var e,t,r,n}}Et=new WeakMap,Ot=new WeakMap;var Rt,xt,It,Ct,$t=function(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)};function Ut(e){const t=bt().get(e)||"null";let r=null;try{const e=JSON.parse(t);ct(e)&&(r=e)}catch(e){}return r}class Dt{constructor(e){Rt.add(this),xt.set(this,void 0),function(e,t,r,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");"a"===n?o.call(e,r):o?o.value=r:t.set(e,r)}(this,xt,e.manager,"f")}get auth(){return $t(this,Rt,"m",Ct).call(this,ze.AUTH)}get transfer(){return $t(this,Rt,"m",Ct).call(this,ze.TRANSFER)}get flows(){return $t(this,Rt,"m",Ct).call(this,ze.FLOWS)}get groups(){return $t(this,Rt,"m",Ct).call(this,ze.GROUPS)}get search(){return $t(this,Rt,"m",Ct).call(this,ze.SEARCH)}get timer(){return $t(this,Rt,"m",Ct).call(this,ze.TIMER)}get compute(){return $t(this,Rt,"m",Ct).call(this,ze.COMPUTE)}gcs(e){return this.getByResourceServer(e)}getByResourceServer(e){return $t(this,Rt,"m",It).call(this,e)}getAll(){return bt().keys().reduce(((e,t)=>(t.startsWith($t(this,xt,"f").storageKeyPrefix)&&e.push(Ut(t)),e)),[]).filter(ct)}}xt=new WeakMap,Rt=new WeakSet,It=function(e){return Ut(`${$t(this,xt,"f").storageKeyPrefix}${e}`)},Ct=function(e){var t;const r=null===(t=it.RESOURCE_SERVERS)||void 0===t?void 0:t[e];return $t(this,Rt,"m",It).call(this,r)};var Bt,Nt,Mt,Ht,Ft,qt,zt,Gt,Wt,Vt,Jt=function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(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?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))},Kt=function(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)},Yt=function(e,t,r,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?o.call(e,r):o?o.value=r:t.set(e,r),r};const Xt={execute:!0,additionalParams:void 0};class Qt{get authenticated(){return Kt(this,Mt,"f")}set authenticated(e){Yt(this,Mt,e,"f"),Kt(this,Bt,"m",zt).call(this)}constructor(e){var t;if(Bt.add(this),Nt.set(this,void 0),Mt.set(this,!1),this.events={authenticated:new Tt("authenticated"),revoke:new Tt("revoke")},this.addTokenResponse=e=>{var t;bt().set(`${this.configuration.client}:${e.resource_server}`,e),"other_tokens"in e&&(null===(t=e.other_tokens)||void 0===t||t.forEach(this.addTokenResponse)),Kt(this,Bt,"m",Ft).call(this)},mt("localStorage"),!e.client)throw new Error("You must provide a `client` for your application.");const r=!1===e.defaultScopes?"":null!==(t=e.defaultScopes)&&void 0!==t?t:"openid profile email";this.configuration=Object.assign(Object.assign({},e),{scopes:[e.scopes?e.scopes:"",r].filter((e=>e.length)).join(" ")}),this.tokens=new Dt({manager:this}),Kt(this,Bt,"m",qt).call(this),this.startSilentRefresh()}get storageKeyPrefix(){return`${this.configuration.client}:`}get user(){const e=this.getGlobusAuthToken();return e&&e.id_token?function(e,t){if("string"!=typeof e)throw new le("Invalid token specified: must be a string");t||(t={});const r=!0===t.header?0:1,n=e.split(".")[r];if("string"!=typeof n)throw new le(`Invalid token specified: missing part #${r+1}`);let o;try{o=function(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return function(e){return decodeURIComponent(atob(e).replace(/(.)/g,((e,t)=>{let r=t.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r})))}(t)}catch(e){return atob(t)}}(n)}catch(e){throw new le(`Invalid token specified: invalid base64 for part #${r+1} (${e.message})`)}try{return JSON.parse(o)}catch(e){throw new le(`Invalid token specified: invalid json for part #${r+1} (${e.message})`)}}(e.id_token):null}startSilentRefresh(){de("debug",`AuthorizationManager.startSilentRefresh | useRefreshTokens=${this.configuration.useRefreshTokens}`),this.configuration.useRefreshTokens&&Kt(this,Bt,"m",Ht).call(this)}refreshToken(e){return Jt(this,void 0,void 0,(function*(){de("debug",`AuthorizationManager.refreshToken | resource_server=${e.resource_server}`);try{const t=yield(yield rt({payload:{client_id:this.configuration.client,refresh_token:e.refresh_token,grant_type:"refresh_token"}})).json();pt(t)&&this.addTokenResponse(t)}catch(t){de("error",`AuthorizationManager.refreshToken | resource_server=${e.resource_server}`)}}))}hasGlobusAuthToken(){return null!==this.getGlobusAuthToken()}getGlobusAuthToken(){const e=bt().get(`${this.storageKeyPrefix}auth.globus.org`);return e?JSON.parse(e):null}reset(){bt().keys().forEach((e=>{e.startsWith(this.storageKeyPrefix)&&bt().remove(e)})),this.authenticated=!1}login(e={additionalParams:{}}){de("debug","AuthorizationManager.login"),this.reset(),Kt(this,Bt,"m",Wt).call(this,{params:null==e?void 0:e.additionalParams}).send()}handleCodeRedirect(){return Jt(this,arguments,void 0,(function*(e={shouldReplace:!0,additionalParams:{}}){de("debug","AuthorizationManager.handleCodeRedirect");const t=yield Kt(this,Bt,"m",Wt).call(this,{params:null==e?void 0:e.additionalParams}).getToken({shouldReplace:null==e?void 0:e.shouldReplace});pt(t)&&(de("debug",`AuthorizationManager.handleCodeRedirect | response=${JSON.stringify(t)}`),this.addTokenResponse(t))}))}handleErrorResponse(e,t){const r="boolean"==typeof t?Object.assign(Object.assign({},Xt),{execute:t}):Object.assign(Object.assign({},Xt),t);de("debug",`AuthorizationManager.handleErrorResponse | response=${JSON.stringify(e)} execute=${r.execute}`);let n=()=>{};return Me(e)&&(de("debug","AuthorizationManager.handleErrorResponse | error=AuthorizationRequirementsError"),n=()=>this.handleAuthorizationRequirementsError(e,{additionalParams:r.additionalParams})),De(e)&&(de("debug","AuthorizationManager.handleErrorResponse | error=ConsentRequiredError"),n=()=>this.handleConsentRequiredError(e,{additionalParams:r.additionalParams})),"code"in e&&"AuthenticationFailed"===e.code&&(de("debug","AuthorizationManager.handleErrorResponse | error=AuthenticationFailed"),n=()=>this.revoke()),!0===r.execute?n():n}handleAuthorizationRequirementsError(e,t){Yt(this,Nt,Kt(this,Bt,"m",Wt).call(this,{params:Object.assign(Object.assign({prompt:"login"},Ne(e)),null==t?void 0:t.additionalParams)}),"f"),Kt(this,Nt,"f").send()}handleConsentRequiredError(e,t){Yt(this,Nt,Kt(this,Bt,"m",Wt).call(this,{requested_scopes:Kt(this,Bt,"m",Gt).call(this,e.required_scopes.join(" ")),params:Object.assign({},null==t?void 0:t.additionalParams)}),"f"),Kt(this,Nt,"f").send()}revoke(){return Jt(this,void 0,void 0,(function*(){de("debug","AuthorizationManager.revoke");const e=Promise.all(this.tokens.getAll().map(Kt(this,Bt,"m",Vt).bind(this)));this.reset(),yield e,yield this.events.revoke.dispatch()}))}}function Zt(e){return new Qt(e)}Nt=new WeakMap,Mt=new WeakMap,Bt=new WeakSet,Ht=function(){de("debug","AuthorizationManager.#silentRefreshTokens"),this.tokens.getAll().forEach((e=>{ut(e)&&this.refreshToken(e)}))},Ft=function(){de("debug","AuthorizationManager.#checkAuthorizationState"),this.hasGlobusAuthToken()&&(this.authenticated=!0)},qt=function(){return Jt(this,void 0,void 0,(function*(){de("debug","AuthorizationManager.bootstrapFromStorageState"),Kt(this,Bt,"m",Ft).call(this)}))},zt=function(){return Jt(this,void 0,void 0,(function*(){var e;const t=this.authenticated,r=null!==(e=this.getGlobusAuthToken())&&void 0!==e?e:void 0;yield this.events.authenticated.dispatch({isAuthenticated:t,token:r})}))},Gt=function(e){return`${e}${this.configuration.useRefreshTokens?" offline_access":""}`},Wt=function(e){var t;const r=Kt(this,Bt,"m",Gt).call(this,null!==(t=null==e?void 0:e.requested_scopes)&&void 0!==t?t:this.configuration.scopes||"");return new jt(Object.assign({client_id:this.configuration.client,authorization_endpoint:st(),token_endpoint:at(),redirect_uri:this.configuration.redirect,requested_scopes:r},e))},Vt=function(e){return de("debug",`AuthorizationManager.revokeToken | resource_server=${e.resource_server}`),tt({payload:{client_id:this.configuration.client,token:e.access_token}})};const er=function(e,t){const r=Object.assign(Object.assign({},e),{query:null==e?void 0:e.query});return Ye({service:fe,scope:ge.ALL,path:"/v0.10/endpoint_search"},r,t)};function tr(e){return e===Ve.GET?{}:{"Content-Type":"application/json"}}const rr=function(e,t,r){return Ye({service:fe,scope:ge.ALL,path:`/v0.10/operation/endpoint/${e}/ls`},t,r)},nr=function(e,t,r){const n={payload:Object.assign({DATA_TYPE:"mkdir"},null==t?void 0:t.payload),headers:Object.assign(Object.assign({},tr(Ve.POST)),null==t?void 0:t.headers)};return Ye({service:fe,scope:ge.ALL,path:`/v0.10/operation/endpoint/${e}/mkdir`,method:Ve.POST},n,r)},or=function(e,t,r){const n={payload:Object.assign({DATA_TYPE:"rename"},null==t?void 0:t.payload),headers:Object.assign(Object.assign({},tr(Ve.POST)),null==t?void 0:t.headers)};return Ye({service:fe,scope:ge.ALL,path:`/v0.10/operation/endpoint/${e}/rename`,method:Ve.POST},n,r)},ir=function(e,t,r){const n={payload:Object.assign({DATA_TYPE:"symlink"},null==t?void 0:t.payload),headers:Object.assign(Object.assign({},tr(Ve.POST)),null==t?void 0:t.headers)};return Ye({service:fe,scope:ge.ALL,path:`/v0.10/operation/endpoint/${e}/symlink`,method:Ve.POST},n,r)},sr=function(e,t){const r={payload:Object.assign({DATA_TYPE:"delete"},null==e?void 0:e.payload),headers:Object.assign(Object.assign({},tr(Ve.POST)),null==e?void 0:e.headers)};return Ye({service:fe,scope:ge.ALL,path:"/v0.10/delete",method:Ve.POST},r,t)},ar=function(e,t){const r={payload:Object.assign({DATA_TYPE:"transfer"},null==e?void 0:e.payload),headers:Object.assign(Object.assign({},tr(Ve.POST)),null==e?void 0:e.headers)};return Ye({service:fe,scope:ge.ALL,path:"/v0.10/transfer",method:Ve.POST},r,t)},cr=function(e,t){return Ye({service:fe,scope:ge.ALL,path:"/v0.10/submission_id"},e,t)},ur=function(e,t,r){return Ye({service:fe,scope:ge.ALL,path:`/v0.10/endpoint/${e}`},t,r)},pr=function(e,t){return(null==e?void 0:e.payload)&&Object.assign(e.payload,{DATA_TYPE:"shared_endpoint"}),Ye({service:fe,scope:ge.ALL,path:"/v0.10/shared_endpoint",method:Ve.POST},e,t)},hr=function(e,t,r){return(null==t?void 0:t.payload)&&Object.assign(t.payload,{DATA_TYPE:"endpoint"}),Ye({service:fe,scope:ge.ALL,path:`/v0.10/endpoint/${e}`,method:Ve.PUT},t,r)},dr=function(e,t,r){return Ye({service:fe,scope:ge.ALL,path:`/v0.10/endpoint/${e}`,method:Ve.DELETE},t,r)},lr=function(e={},t){return Ye({service:fe,scope:ge.ALL,path:"/v0.10/task_list"},e,t)},fr=function(e,t,r){return Ye({service:fe,scope:ge.ALL,path:`/v0.10/task/${e}`},t,r)},gr=function(e,t,r){return Ye({service:fe,scope:ge.ALL,path:`/v0.10/task/${e}`,method:Ve.PUT},t,r)},vr=function(e,t,r){return Ye({service:fe,scope:ge.ALL,path:`/v0.10/task/${e}/cancel`,method:Ve.POST},t,r)},yr=function(e,t,r){return Ye({service:fe,scope:ge.ALL,path:`/v0.10/task/${e}/remove`,method:Ve.POST},t,r)},mr=function(e,t,r){return Ye({service:fe,scope:ge.ALL,path:`/v0.10/task/${e}/event_list`},t,r)},br=function(e,t,r){return Ye({service:fe,scope:ge.ALL,path:`/v0.10/task/${e}/successful_transfers`},t,r)},wr=function(e,t,r){return Ye({service:fe,scope:ge.ALL,path:`/v0.10/task/${e}/skipped_errors`},t,r)},_r=function(e,t,r){return Ye({service:fe,scope:ge.ALL,path:`/v0.10/task/${e}/pause_info`},t,r)},Ar=function(e,t,r){return Ye({service:fe,scope:ge.ALL,path:`/v0.10/endpoint/${e}/access_list`},t,r)},Tr=function(e,t,r){return Ye({service:fe,scope:ge.ALL,path:`/v0.10/endpoint/${e}/access`,method:Ve.POST},t,r)},Er=function({endpoint_xid:e,id:t},r,n){return Ye({service:fe,scope:ge.ALL,path:`/v0.10/endpoint/${e}/access/${t}`},r,n)},Or=function({endpoint_xid:e,id:t},r,n){return Ye({service:fe,scope:ge.ALL,path:`/v0.10/endpoint/${e}/access/${t}`,method:Ve.PUT},r,n)},Sr=function({endpoint_xid:e,id:t},r,n){return Ye({service:fe,scope:ge.ALL,path:`/v0.10/endpoint/${e}/access/${t}`,method:Ve.DELETE},r,n)},Lr=function(e,t){return Ye({service:fe,scope:ge.ALL,path:"/v0.10/bookmark_list"},e,t)},Pr=function(e,t){return Ye({service:fe,scope:ge.ALL,path:"/v0.10/bookmark",method:Ve.POST},e,t)},kr=function(e,t,r){return Ye({service:fe,scope:ge.ALL,path:`/v0.10/bookmark/${e}`},t,r)},jr=function(e,t,r){return Ye({service:fe,scope:ge.ALL,path:`/v0.10/bookmark/${e}`,method:Ve.PUT},t,r)},Rr=function(e,t,r){return Ye({service:fe,scope:ge.ALL,path:`/v0.10/bookmark/${e}`,method:Ve.DELETE},t,r)},xr=function(e,t,r){return Ye({service:fe,scope:ge.ALL,path:`/v0.10/endpoint_manager/endpoint/${e}`},t,r)},Ir=function(e,t,r){return Ye({service:fe,scope:ge.ALL,path:`/v0.10/endpoint_manager/endpoint/${e}/hosted_endpoint_list`},t,r)},Cr=function(e,t,r){return Ye({service:fe,scope:ge.ALL,path:`/v0.10/endpoint_manager/endpoint/${e}/access_list`},t,r)},$r=function(e={},t){return Ye({service:fe,scope:ge.ALL,path:"/v0.10/endpoint_manager/monitored_endpoints"},e,t)},Ur=function(e,t){return Ye({service:fe,scope:ge.ALL,path:"/v0.10/endpoint_manager/pause_rule_list"},e,t)},Dr=function(e,t){return Ye({service:fe,scope:ge.ALL,path:"/v0.10/endpoint_manager/pause_rule",method:Ve.POST},e,t)},Br=function(e,t,r){return Ye({service:fe,scope:ge.ALL,path:`/v0.10/endpoint_manager/pause_rule/${e}`},t,r)},Nr=function(e,t,r){return Ye({service:fe,scope:ge.ALL,path:`/v0.10/endpoint_manager/pause_rule/${e}`,method:Ve.PUT},t,r)},Mr=function(e,t,r){return Ye({service:fe,scope:ge.ALL,path:`/v0.10/endpoint_manager/pause_rule/${e}`,method:Ve.DELETE},t,r)},Hr=function(e={},t){return Ye({service:fe,scope:ge.ALL,path:"/v0.10/task_list"},e,t)},Fr=function(e,t,r){return Ye({service:fe,scope:ge.ALL,path:`/v0.10/endpoint_manager/task/${e}`},t,r)},qr=function(e,t){return Ye({service:fe,scope:ge.ALL,path:"/v0.10/endpoint_manager/admin_cancel",method:Ve.POST},e,t)},zr=function(e,t,r){return Ye({service:fe,scope:ge.ALL,path:`/v0.10/endpoint_manager/admin_cancel/${e}`,method:Ve.POST},t,r)},Gr=function(e,t,r){return Ye({service:fe,scope:ge.ALL,path:`/v0.10/endpoint_manager/task/${e}/event_list`},t,r)},Wr=function(e,t,r){return Ye({service:fe,scope:ge.ALL,path:`/v0.10/endpoint_manager/task/${e}/successful_transfers`},t,r)},Vr=function(e,t,r){return Ye({service:fe,scope:ge.ALL,path:`/v0.10/endpoint_manager/task/${e}/skipped_errors`},t,r)},Jr=function(e,t){return Ye({service:fe,scope:ge.ALL,path:"/v0.10/endpoint_manager/admin_pause",method:Ve.POST},e,t)},Kr=function(e,t){return Ye({service:fe,scope:ge.ALL,path:"/v0.10/endpoint_manager/admin_resume",method:Ve.POST},e,t)},Yr=function(e,t,r){return Ye({service:fe,scope:ge.ALL,path:`/v0.10/endpoint_manager/task/${e}/pause_info`},t,r)},Xr=o,Qr=function(e,t,r){return Ye({service:Oe,scope:Le.SEARCH,path:`/v1/index/${e}/search`},t,r)},Zr=function(e,t,r){return Ye({service:Oe,scope:Le.SEARCH,path:`/v1/index/${e}/search`,method:Ve.POST},t,r)},en=function(e,t,r){return Ye({service:Oe,scope:Le.SEARCH,path:`/v1/index/${e}/subject`},t,r)},tn=function(e,t,r){return Ye({service:Oe,scope:Le.SEARCH,path:`/v1/index/${e}/entry`},t,r)},rn=c,nn=function(e,t){return Ye({scope:Ee.ALL,path:"/v2/groups/my_groups",service:Ae},e,t)},on=function(e,t,r){return Ye({service:Ae,scope:Ee.ALL,path:`/v2/groups/${e}`},t,r)},sn=function(e,t,r){return Ye({scope:Ee.ALL,path:`/v2/groups/${e}/policies`,service:Ae},t,r)},an=function(e,t,r){if(!(null==t?void 0:t.payload))throw new Error("payload is required.");return Ye({service:Ae,scope:Ee.ALL,path:`/v2/groups/${e}`,method:Ve.POST},t,r)},cn=a,un=function(e,t){return Ye({service:ye,scope:be.VIEW_FLOWS,path:"/flows"},e,t)},pn=function(e,t,r){return Ye({service:ye,scope:be.VIEW_FLOWS,path:`/flows/${e}`},t,r)},hn=function(e,t,r){return Ye({scope:be.MANAGE_FLOWS,service:ye,path:`/flows/${e}`,method:Ve.DELETE},t,r)},dn=function(e={},t){return Ye({service:ye,scope:be.RUN_MANAGE,path:"/runs"},e,t)},ln=i,fn=function(e,t,r){return Ye({service:e,scope:Vn(e),path:"/api/collections"},t,r)},gn=function(e,t,r,n){return Ye({service:e,scope:Vn(e),path:`/api/collections/${t}`},r,n)},vn=function(e,t,r,n){return Ye({service:e,scope:Vn(e),path:`/api/collections/${t}`,method:Ve.DELETE},r,n)},yn=function(e,t,r){return Ye({service:e,scope:Vn(e),path:"/api/collections",method:Ve.POST},t,r)},mn=function(e,t,r,n){return Ye({service:e,scope:Vn(e),path:`/api/collections/${t}`,method:Ve.PUT},r,n)},bn=function(e,t,r,n){return Ye({service:e,scope:Vn(e),path:`/api/collections/${t}`,method:Ve.PATCH},r,n)},wn=function(e,t,r,n){return Ye({service:e,scope:Vn(e),path:`/api/collections/${t}/owner_string`,method:Ve.PUT},r,n)},_n=function(e,t,r,n){return Ye({service:e,scope:Vn(e),path:`/api/collections/${t}/owner_string`,method:Ve.DELETE},r,n)},An=function(e,t,r){return Ye({service:e,scope:Vn(e),path:"/api/endpoint"},t,r)},Tn=function(e,t,r){return Ye({service:e,scope:Vn(e),path:"/api/endpoint",method:Ve.PUT},t,r)},En=function(e,t,r){return Ye({service:e,scope:Vn(e),path:"/api/endpoint",method:Ve.PATCH},t,r)},On=function(e,t,r){return Ye({service:e,scope:Vn(e),path:"/api/endpoint/subscription_id",method:Ve.PUT},t,r)},Sn=function(e,t,r,n){return Ye({service:e,scope:Vn(e),path:t},r,n)},Ln=function(e,t,r,n){return Ye({service:e,scope:Vn(e),path:t,method:Ve.DELETE},r,n)},Pn=function(e,t,r,n){return Ye({service:e,scope:Vn(e),path:t,method:Ve.PUT},r,n)},kn=function(e,t,r){return Ye({service:e,scope:Vn(e),path:"/api/roles"},t,r)},jn=function(e,t,r,n){return Ye({service:e,scope:Vn(e),path:`/api/roles/${t}`},r,n)},Rn=function(e,t,r,n){return Ye({service:e,scope:Vn(e),path:`/api/roles/${t}`,method:Ve.DELETE},r,n)},xn=function(e,t,r){return Ye({service:e,scope:Vn(e),path:"/api/roles",method:Ve.POST},t,r)},In=function(e,t,r){return Ye({service:e,scope:Vn(e),path:"/api/storage_gateways"},t,r)},Cn=function(e,t,r,n){return Ye({service:e,scope:Vn(e),path:`/api/storage_gateways/${t}`},r,n)},$n=function(e,t,r,n){return Ye({service:e,scope:Vn(e),path:`/api/storage_gateways/${t}`,method:Ve.DELETE},r,n)},Un=function(e,t,r){return Ye({service:e,scope:Vn(e),path:"/api/storage_gateways",method:Ve.POST},t,r)},Dn=function(e,t,r,n){return Ye({service:e,scope:Vn(e),path:`/api/storage_gateways/${t}`,method:Ve.PUT},r,n)},Bn=function(e,t,r,n){return Ye({service:e,scope:Vn(e),path:`/api/storage_gateways/${t}`,method:Ve.PATCH},r,n)},Nn=function(e,t,r){return Ye({service:e,scope:Vn(e),path:"/api/user_credentials"},t,r)},Mn=function(e,t,r,n){return Ye({service:e,scope:Vn(e),path:`/api/user_credentials/${t}`},r,n)},Hn=function(e,t,r,n){return Ye({service:e,scope:Vn(e),path:`/api/user_credentials/${t}`,method:Ve.DELETE},r,n)},Fn=function(e,t,r){return Ye({service:e,scope:Vn(e),path:"/api/user_credentials",method:Ve.POST},t,r)},qn=function(e,t,r,n){return Ye({service:e,scope:Vn(e),path:`/api/user_credentials/${t}`,method:Ve.PUT},r,n)},zn=function(e,t,r,n){return Ye({service:e,scope:Vn(e),path:`/api/user_credentials/${t}`,method:Ve.PATCH},r,n)},Gn=function(e,t,r){return Ye({service:e,scope:Vn(e),path:"/api/info"},t,r)},Wn={HIGH_ASSURANCE:"urn:globus:auth:scope:<ENDPOINT_ID>:manage_collections",NON_HIGH_ASSURANCE:"urn:globus:auth:scope:<ENDPOINT_ID>:manage_collections[*https://auth.globus.org/scopes/<MAPPED_COLLECTION_ID>/data_access]"};function Vn(e){return Wn.HIGH_ASSURANCE.replace("<ENDPOINT_ID>",e.endpoint_id)}const Jn=function(e,t){return Ye({service:we,scope:"https://auth.globus.org/scopes/524230d7-ea86-4a52-8312-86065a9e0417/timer",path:"/v2/timer",method:Ve.POST},e,t)},Kn=s,Yn=function(e,t){return Ye({service:Pe,scope:je.ALL,path:"/v2/endpoints",method:Ve.GET},e,t)},Xn=function(e,t,r){return Ye({service:Pe,scope:je.ALL,path:`/v2/endpoints/${e}`,method:Ve.GET},t,r)},Qn=function(e,t,r){return Ye({service:Pe,scope:je.ALL,path:`/v2/endpoints/${e}/status`},t,r)},Zn=u,eo={integration:"app.integration.globuscs.info",sandbox:"app.sandbox.globuscs.info",test:"app.test.globuscs.info",staging:"app.staging.globuscs.info",preview:"app.preview.globus.org",production:"app.globus.org"};function to(e=qe()){return eo[e]}function ro(e,t){return new URL(e||"",`https://${to(null==t?void 0:t.environment)}`)}const no={TASK:"/activity/%s/overview",COLLECTION:"/file-manager/collections/%s/overview",ENDPOINT:"/file-manager/collections/%s/overview"};function oo(e,t,r){return ro(no[e].replace(/%s/g,(null==t?void 0:t.join("/"))||""),r)}})(),globus=n})();
|