@globus/sdk 3.1.0 → 3.2.0

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.
Files changed (80) hide show
  1. package/cjs/constants.js +24 -2
  2. package/cjs/constants.js.map +1 -1
  3. package/cjs/index.js +34 -12
  4. package/cjs/index.js.map +1 -1
  5. package/cjs/lib/core/authorization/AuthorizationManager.d.ts +2 -1
  6. package/cjs/lib/core/authorization/AuthorizationManager.d.ts.map +1 -1
  7. package/cjs/lib/core/authorization/AuthorizationManager.js +59 -28
  8. package/cjs/lib/core/authorization/AuthorizationManager.js.map +1 -1
  9. package/cjs/lib/core/authorization/Event.js +25 -6
  10. package/cjs/lib/core/authorization/Event.js.map +1 -1
  11. package/cjs/lib/core/authorization/RedirectTransport.js +41 -8
  12. package/cjs/lib/core/authorization/RedirectTransport.js.map +1 -1
  13. package/cjs/lib/core/authorization/TokenLookup.d.ts +2 -0
  14. package/cjs/lib/core/authorization/TokenLookup.d.ts.map +1 -1
  15. package/cjs/lib/core/authorization/TokenLookup.js +53 -33
  16. package/cjs/lib/core/authorization/TokenLookup.js.map +1 -1
  17. package/cjs/lib/core/authorization/index.js +25 -3
  18. package/cjs/lib/core/authorization/index.js.map +1 -1
  19. package/cjs/lib/core/global.js +30 -8
  20. package/cjs/lib/core/global.js.map +1 -1
  21. package/cjs/lib/core/storage/index.d.ts +1 -0
  22. package/cjs/lib/core/storage/index.d.ts.map +1 -1
  23. package/cjs/lib/core/storage/index.js.map +1 -1
  24. package/cjs/lib/core/storage/local-storage.d.ts +1 -0
  25. package/cjs/lib/core/storage/local-storage.d.ts.map +1 -1
  26. package/cjs/lib/core/storage/local-storage.js +12 -5
  27. package/cjs/lib/core/storage/local-storage.js.map +1 -1
  28. package/cjs/lib/core/storage/memory.d.ts +1 -0
  29. package/cjs/lib/core/storage/memory.d.ts.map +1 -1
  30. package/cjs/lib/core/storage/memory.js +18 -5
  31. package/cjs/lib/core/storage/memory.js.map +1 -1
  32. package/cjs/lib/services/auth/index.js +26 -4
  33. package/cjs/lib/services/auth/index.js.map +1 -1
  34. package/cjs/lib/services/auth/service/oauth2/index.js +24 -2
  35. package/cjs/lib/services/auth/service/oauth2/index.js.map +1 -1
  36. package/cjs/lib/services/compute/index.js +25 -3
  37. package/cjs/lib/services/compute/index.js.map +1 -1
  38. package/cjs/lib/services/flows/index.js +26 -4
  39. package/cjs/lib/services/flows/index.js.map +1 -1
  40. package/cjs/lib/services/globus-connect-server/client.js +29 -7
  41. package/cjs/lib/services/globus-connect-server/client.js.map +1 -1
  42. package/cjs/lib/services/globus-connect-server/index.js +29 -7
  43. package/cjs/lib/services/globus-connect-server/index.js.map +1 -1
  44. package/cjs/lib/services/groups/index.js +27 -5
  45. package/cjs/lib/services/groups/index.js.map +1 -1
  46. package/cjs/lib/services/search/index.js +27 -5
  47. package/cjs/lib/services/search/index.js.map +1 -1
  48. package/cjs/lib/services/shared.js +4 -2
  49. package/cjs/lib/services/shared.js.map +1 -1
  50. package/cjs/lib/services/timer/index.js +24 -2
  51. package/cjs/lib/services/timer/index.js.map +1 -1
  52. package/cjs/lib/services/transfer/index.js +31 -9
  53. package/cjs/lib/services/transfer/index.js.map +1 -1
  54. package/cjs/lib/services/transfer/service/endpoint-manager/index.js +26 -4
  55. package/cjs/lib/services/transfer/service/endpoint-manager/index.js.map +1 -1
  56. package/esm/lib/core/authorization/AuthorizationManager.d.ts +2 -1
  57. package/esm/lib/core/authorization/AuthorizationManager.d.ts.map +1 -1
  58. package/esm/lib/core/authorization/AuthorizationManager.js +39 -8
  59. package/esm/lib/core/authorization/AuthorizationManager.js.map +1 -1
  60. package/esm/lib/core/authorization/Event.js +20 -1
  61. package/esm/lib/core/authorization/Event.js.map +1 -1
  62. package/esm/lib/core/authorization/RedirectTransport.js +31 -1
  63. package/esm/lib/core/authorization/RedirectTransport.js.map +1 -1
  64. package/esm/lib/core/authorization/TokenLookup.d.ts +2 -0
  65. package/esm/lib/core/authorization/TokenLookup.d.ts.map +1 -1
  66. package/esm/lib/core/authorization/TokenLookup.js +45 -25
  67. package/esm/lib/core/authorization/TokenLookup.js.map +1 -1
  68. package/esm/lib/core/storage/index.d.ts +1 -0
  69. package/esm/lib/core/storage/index.d.ts.map +1 -1
  70. package/esm/lib/core/storage/index.js.map +1 -1
  71. package/esm/lib/core/storage/local-storage.d.ts +1 -0
  72. package/esm/lib/core/storage/local-storage.d.ts.map +1 -1
  73. package/esm/lib/core/storage/local-storage.js +8 -1
  74. package/esm/lib/core/storage/local-storage.js.map +1 -1
  75. package/esm/lib/core/storage/memory.d.ts +1 -0
  76. package/esm/lib/core/storage/memory.d.ts.map +1 -1
  77. package/esm/lib/core/storage/memory.js +14 -1
  78. package/esm/lib/core/storage/memory.js.map +1 -1
  79. package/package.json +1 -1
  80. package/umd/globus.production.js +1 -1
@@ -1,5 +1,35 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
11
+ if (kind === "m") throw new TypeError("Private method is not writable");
12
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
13
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
14
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
15
+ };
16
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
17
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
18
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
19
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
20
+ };
21
+ var __rest = (this && this.__rest) || function (s, e) {
22
+ var t = {};
23
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
24
+ t[p] = s[p];
25
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
26
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
27
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
28
+ t[p[i]] = s[p[i]];
29
+ }
30
+ return t;
31
+ };
1
32
  var _RedirectTransport_pkce, _RedirectTransport_params;
2
- import { __awaiter, __classPrivateFieldGet, __classPrivateFieldSet, __rest } from "tslib";
3
33
  import PKCE from 'js-pkce';
4
34
  export class RedirectTransport {
5
35
  constructor(options) {
@@ -1 +1 @@
1
- {"version":3,"file":"RedirectTransport.js","sourceRoot":"","sources":["../../../../../src/lib/core/authorization/RedirectTransport.ts"],"names":[],"mappings":";;AAAA,OAAO,IAAI,MAAM,SAAS,CAAC;AAY3B,MAAM,OAAO,iBAAiB;IAK5B,YACE,OAKC;QAVH,0CAAY;QAEZ,oCAAmB,EAAE,EAAC;QAUpB,MAAM,EAAE,MAAM,KAAgB,OAAO,EAAlB,MAAM,UAAK,OAAO,EAA/B,UAAqB,CAAU,CAAC;QACtC,uBAAA,IAAI,2BAAS,IAAI,IAAI,mBAChB,MAAM,EACT,MAAA,CAAC;QACH,uBAAA,IAAI,+CACC,MAAM,OACV,CAAC;IACJ,CAAC;IAED,IAAI;QACF,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,uBAAA,IAAI,+BAAM,CAAC,YAAY,CAAC,uBAAA,IAAI,iCAAQ,CAAC,CAAC,CAAC;IACjE,CAAC;IAED;;;OAGG;IACG,QAAQ;6DAAC,UAA2B,EAAE,aAAa,EAAE,IAAI,EAAE;YAC/D,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YAC1C,MAAM,MAAM,GAAG,IAAI,eAAe,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;YAC/C;;eAEG;YACH,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC;gBAAE,OAAO,SAAS,CAAC;YAC1C,MAAM,QAAQ,GAAG,MAAM,uBAAA,IAAI,+BAAM,CAAC,sBAAsB,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,CAAC;YACzE;;;eAGG;YACH,cAAc,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC;YACxC,cAAc,CAAC,UAAU,CAAC,oBAAoB,CAAC,CAAC;YAChD,IAAI,OAAO,CAAC,aAAa,EAAE,CAAC;gBAC1B;;mBAEG;gBACH,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;gBACtB,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;gBACvB;;mBAEG;gBACH,GAAG,CAAC,MAAM,GAAG,MAAM,CAAC,QAAQ,EAAE,CAAC;gBAC/B;;mBAEG;gBACH,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;YAC/B,CAAC;YACD,OAAO,QAAQ,CAAC;QAClB,CAAC;KAAA;CACF"}
1
+ {"version":3,"file":"RedirectTransport.js","sourceRoot":"","sources":["../../../../../src/lib/core/authorization/RedirectTransport.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,IAAI,MAAM,SAAS,CAAC;AAY3B,MAAM,OAAO,iBAAiB;IAK5B,YACE,OAKC;QAVH,0CAAY;QAEZ,oCAAmB,EAAE,EAAC;QAUpB,MAAM,EAAE,MAAM,KAAgB,OAAO,EAAlB,MAAM,UAAK,OAAO,EAA/B,UAAqB,CAAU,CAAC;QACtC,uBAAA,IAAI,2BAAS,IAAI,IAAI,mBAChB,MAAM,EACT,MAAA,CAAC;QACH,uBAAA,IAAI,+CACC,MAAM,OACV,CAAC;IACJ,CAAC;IAED,IAAI;QACF,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,uBAAA,IAAI,+BAAM,CAAC,YAAY,CAAC,uBAAA,IAAI,iCAAQ,CAAC,CAAC,CAAC;IACjE,CAAC;IAED;;;OAGG;IACG,QAAQ;6DAAC,UAA2B,EAAE,aAAa,EAAE,IAAI,EAAE;YAC/D,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YAC1C,MAAM,MAAM,GAAG,IAAI,eAAe,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;YAC/C;;eAEG;YACH,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC;gBAAE,OAAO,SAAS,CAAC;YAC1C,MAAM,QAAQ,GAAG,MAAM,uBAAA,IAAI,+BAAM,CAAC,sBAAsB,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,CAAC;YACzE;;;eAGG;YACH,cAAc,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC;YACxC,cAAc,CAAC,UAAU,CAAC,oBAAoB,CAAC,CAAC;YAChD,IAAI,OAAO,CAAC,aAAa,EAAE,CAAC;gBAC1B;;mBAEG;gBACH,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;gBACtB,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;gBACvB;;mBAEG;gBACH,GAAG,CAAC,MAAM,GAAG,MAAM,CAAC,QAAQ,EAAE,CAAC;gBAC/B;;mBAEG;gBACH,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;YAC/B,CAAC;YACD,OAAO,QAAQ,CAAC;QAClB,CAAC;KAAA;CACF"}
@@ -12,6 +12,8 @@ export declare class TokenLookup {
12
12
  get search(): Token | null;
13
13
  get timer(): Token | null;
14
14
  get compute(): Token | null;
15
+ gcs(endpoint: string): Token | null;
16
+ getByResourceServer(resourceServer: string): Token | null;
15
17
  getAll(): Token[];
16
18
  }
17
19
  //# sourceMappingURL=TokenLookup.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TokenLookup.d.ts","sourceRoot":"","sources":["../../../../../src/lib/core/authorization/TokenLookup.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEjE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC;AAE1D,qBAAa,WAAW;;gBAGV,OAAO,EAAE;QAAE,OAAO,EAAE,oBAAoB,CAAA;KAAE;IAoBtD,IAAI,IAAI,IAAI,KAAK,GAAG,IAAI,CAEvB;IAED,IAAI,QAAQ,IAAI,KAAK,GAAG,IAAI,CAE3B;IAED,IAAI,KAAK,IAAI,KAAK,GAAG,IAAI,CAExB;IAED,IAAI,MAAM,IAAI,KAAK,GAAG,IAAI,CAEzB;IAED,IAAI,MAAM,IAAI,KAAK,GAAG,IAAI,CAEzB;IAED,IAAI,KAAK,IAAI,KAAK,GAAG,IAAI,CAExB;IAED,IAAI,OAAO,IAAI,KAAK,GAAG,IAAI,CAE1B;IAED,MAAM,IAAI,KAAK,EAAE;CAYlB"}
1
+ {"version":3,"file":"TokenLookup.d.ts","sourceRoot":"","sources":["../../../../../src/lib/core/authorization/TokenLookup.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEjE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC;AAgB1D,qBAAa,WAAW;;gBAGV,OAAO,EAAE;QAAE,OAAO,EAAE,oBAAoB,CAAA;KAAE;IAatD,IAAI,IAAI,IAAI,KAAK,GAAG,IAAI,CAEvB;IAED,IAAI,QAAQ,IAAI,KAAK,GAAG,IAAI,CAE3B;IAED,IAAI,KAAK,IAAI,KAAK,GAAG,IAAI,CAExB;IAED,IAAI,MAAM,IAAI,KAAK,GAAG,IAAI,CAEzB;IAED,IAAI,MAAM,IAAI,KAAK,GAAG,IAAI,CAEzB;IAED,IAAI,KAAK,IAAI,KAAK,GAAG,IAAI,CAExB;IAED,IAAI,OAAO,IAAI,KAAK,GAAG,IAAI,CAE1B;IAED,GAAG,CAAC,QAAQ,EAAE,MAAM,GAAG,KAAK,GAAG,IAAI;IAInC,mBAAmB,CAAC,cAAc,EAAE,MAAM,GAAG,KAAK,GAAG,IAAI;IAIzD,MAAM,IAAI,KAAK,EAAE;CAWlB"}
@@ -1,8 +1,32 @@
1
- var _TokenLookup_instances, _TokenLookup_manager, _TokenLookup_getTokenForService;
2
- import { __classPrivateFieldGet, __classPrivateFieldSet } from "tslib";
1
+ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
2
+ if (kind === "m") throw new TypeError("Private method is not writable");
3
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
4
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
5
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
6
+ };
7
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
8
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
9
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
10
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
11
+ };
12
+ var _TokenLookup_instances, _TokenLookup_manager, _TokenLookup_getClientStorageEntry, _TokenLookup_getTokenForService;
3
13
  import { getStorage } from '../storage/index.js';
4
14
  import { CONFIG, isToken } from '../../services/auth/index.js';
5
15
  import { SERVICES } from '../global.js';
16
+ function getTokenFromStorage(key) {
17
+ const raw = getStorage().get(key) || 'null';
18
+ let token = null;
19
+ try {
20
+ const parsed = JSON.parse(raw);
21
+ if (isToken(parsed)) {
22
+ token = parsed;
23
+ }
24
+ }
25
+ catch (e) {
26
+ // no-op
27
+ }
28
+ return token;
29
+ }
6
30
  export class TokenLookup {
7
31
  constructor(options) {
8
32
  _TokenLookup_instances.add(this);
@@ -30,33 +54,29 @@ export class TokenLookup {
30
54
  get compute() {
31
55
  return __classPrivateFieldGet(this, _TokenLookup_instances, "m", _TokenLookup_getTokenForService).call(this, SERVICES.COMPUTE);
32
56
  }
57
+ gcs(endpoint) {
58
+ return this.getByResourceServer(endpoint);
59
+ }
60
+ getByResourceServer(resourceServer) {
61
+ return __classPrivateFieldGet(this, _TokenLookup_instances, "m", _TokenLookup_getClientStorageEntry).call(this, resourceServer);
62
+ }
33
63
  getAll() {
34
- const tokens = [
35
- this.auth,
36
- this.transfer,
37
- this.flows,
38
- this.groups,
39
- this.search,
40
- this.timer,
41
- this.compute,
42
- ];
43
- return tokens.filter(isToken);
64
+ const entries = getStorage()
65
+ .keys()
66
+ .reduce((acc, key) => {
67
+ if (key.startsWith(__classPrivateFieldGet(this, _TokenLookup_manager, "f").storageKeyPrefix)) {
68
+ acc.push(getTokenFromStorage(key));
69
+ }
70
+ return acc;
71
+ }, []);
72
+ return entries.filter(isToken);
44
73
  }
45
74
  }
46
- _TokenLookup_manager = new WeakMap(), _TokenLookup_instances = new WeakSet(), _TokenLookup_getTokenForService = function _TokenLookup_getTokenForService(service) {
75
+ _TokenLookup_manager = new WeakMap(), _TokenLookup_instances = new WeakSet(), _TokenLookup_getClientStorageEntry = function _TokenLookup_getClientStorageEntry(identifier) {
76
+ return getTokenFromStorage(`${__classPrivateFieldGet(this, _TokenLookup_manager, "f").storageKeyPrefix}${identifier}`);
77
+ }, _TokenLookup_getTokenForService = function _TokenLookup_getTokenForService(service) {
47
78
  var _a;
48
79
  const resourceServer = (_a = CONFIG.RESOURCE_SERVERS) === null || _a === void 0 ? void 0 : _a[service];
49
- const raw = getStorage().get(`${__classPrivateFieldGet(this, _TokenLookup_manager, "f").configuration.client}:${resourceServer}`) || 'null';
50
- let token = null;
51
- try {
52
- const parsed = JSON.parse(raw);
53
- if (isToken(parsed)) {
54
- token = parsed;
55
- }
56
- }
57
- catch (e) {
58
- // no-op
59
- }
60
- return token;
80
+ return __classPrivateFieldGet(this, _TokenLookup_instances, "m", _TokenLookup_getClientStorageEntry).call(this, resourceServer);
61
81
  };
62
82
  //# sourceMappingURL=TokenLookup.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TokenLookup.js","sourceRoot":"","sources":["../../../../../src/lib/core/authorization/TokenLookup.ts"],"names":[],"mappings":";;AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AAE/D,OAAO,EAAE,QAAQ,EAAgB,MAAM,cAAc,CAAC;AAKtD,MAAM,OAAO,WAAW;IAGtB,YAAY,OAA0C;;QAFtD,uCAA+B;QAG7B,uBAAA,IAAI,wBAAY,OAAO,CAAC,OAAO,MAAA,CAAC;IAClC,CAAC;IAkBD,IAAI,IAAI;QACN,OAAO,uBAAA,IAAI,+DAAoB,MAAxB,IAAI,EAAqB,QAAQ,CAAC,IAAI,CAAC,CAAC;IACjD,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,uBAAA,IAAI,+DAAoB,MAAxB,IAAI,EAAqB,QAAQ,CAAC,QAAQ,CAAC,CAAC;IACrD,CAAC;IAED,IAAI,KAAK;QACP,OAAO,uBAAA,IAAI,+DAAoB,MAAxB,IAAI,EAAqB,QAAQ,CAAC,KAAK,CAAC,CAAC;IAClD,CAAC;IAED,IAAI,MAAM;QACR,OAAO,uBAAA,IAAI,+DAAoB,MAAxB,IAAI,EAAqB,QAAQ,CAAC,MAAM,CAAC,CAAC;IACnD,CAAC;IAED,IAAI,MAAM;QACR,OAAO,uBAAA,IAAI,+DAAoB,MAAxB,IAAI,EAAqB,QAAQ,CAAC,MAAM,CAAC,CAAC;IACnD,CAAC;IAED,IAAI,KAAK;QACP,OAAO,uBAAA,IAAI,+DAAoB,MAAxB,IAAI,EAAqB,QAAQ,CAAC,KAAK,CAAC,CAAC;IAClD,CAAC;IAED,IAAI,OAAO;QACT,OAAO,uBAAA,IAAI,+DAAoB,MAAxB,IAAI,EAAqB,QAAQ,CAAC,OAAO,CAAC,CAAC;IACpD,CAAC;IAED,MAAM;QACJ,MAAM,MAAM,GAAG;YACb,IAAI,CAAC,IAAI;YACT,IAAI,CAAC,QAAQ;YACb,IAAI,CAAC,KAAK;YACV,IAAI,CAAC,MAAM;YACX,IAAI,CAAC,MAAM;YACX,IAAI,CAAC,KAAK;YACV,IAAI,CAAC,OAAO;SACb,CAAC;QACF,OAAO,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IAChC,CAAC;CACF;yJAxDqB,OAAgB;;IAClC,MAAM,cAAc,GAAG,MAAA,MAAM,CAAC,gBAAgB,0CAAG,OAAO,CAAC,CAAC;IAC1D,MAAM,GAAG,GACP,UAAU,EAAE,CAAC,GAAG,CAAC,GAAG,uBAAA,IAAI,4BAAS,CAAC,aAAa,CAAC,MAAM,IAAI,cAAc,EAAE,CAAC,IAAI,MAAM,CAAC;IACxF,IAAI,KAAK,GAAiB,IAAI,CAAC;IAC/B,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAC/B,IAAI,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC;YACpB,KAAK,GAAG,MAAM,CAAC;QACjB,CAAC;IACH,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,QAAQ;IACV,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC"}
1
+ {"version":3,"file":"TokenLookup.js","sourceRoot":"","sources":["../../../../../src/lib/core/authorization/TokenLookup.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AAE/D,OAAO,EAAE,QAAQ,EAAgB,MAAM,cAAc,CAAC;AAKtD,SAAS,mBAAmB,CAAC,GAAW;IACtC,MAAM,GAAG,GAAG,UAAU,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,MAAM,CAAC;IAC5C,IAAI,KAAK,GAAiB,IAAI,CAAC;IAC/B,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAC/B,IAAI,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC;YACpB,KAAK,GAAG,MAAM,CAAC;QACjB,CAAC;IACH,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,QAAQ;IACV,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAED,MAAM,OAAO,WAAW;IAGtB,YAAY,OAA0C;;QAFtD,uCAA+B;QAG7B,uBAAA,IAAI,wBAAY,OAAO,CAAC,OAAO,MAAA,CAAC;IAClC,CAAC;IAWD,IAAI,IAAI;QACN,OAAO,uBAAA,IAAI,+DAAoB,MAAxB,IAAI,EAAqB,QAAQ,CAAC,IAAI,CAAC,CAAC;IACjD,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,uBAAA,IAAI,+DAAoB,MAAxB,IAAI,EAAqB,QAAQ,CAAC,QAAQ,CAAC,CAAC;IACrD,CAAC;IAED,IAAI,KAAK;QACP,OAAO,uBAAA,IAAI,+DAAoB,MAAxB,IAAI,EAAqB,QAAQ,CAAC,KAAK,CAAC,CAAC;IAClD,CAAC;IAED,IAAI,MAAM;QACR,OAAO,uBAAA,IAAI,+DAAoB,MAAxB,IAAI,EAAqB,QAAQ,CAAC,MAAM,CAAC,CAAC;IACnD,CAAC;IAED,IAAI,MAAM;QACR,OAAO,uBAAA,IAAI,+DAAoB,MAAxB,IAAI,EAAqB,QAAQ,CAAC,MAAM,CAAC,CAAC;IACnD,CAAC;IAED,IAAI,KAAK;QACP,OAAO,uBAAA,IAAI,+DAAoB,MAAxB,IAAI,EAAqB,QAAQ,CAAC,KAAK,CAAC,CAAC;IAClD,CAAC;IAED,IAAI,OAAO;QACT,OAAO,uBAAA,IAAI,+DAAoB,MAAxB,IAAI,EAAqB,QAAQ,CAAC,OAAO,CAAC,CAAC;IACpD,CAAC;IAED,GAAG,CAAC,QAAgB;QAClB,OAAO,IAAI,CAAC,mBAAmB,CAAC,QAAQ,CAAC,CAAC;IAC5C,CAAC;IAED,mBAAmB,CAAC,cAAsB;QACxC,OAAO,uBAAA,IAAI,kEAAuB,MAA3B,IAAI,EAAwB,cAAc,CAAC,CAAC;IACrD,CAAC;IAED,MAAM;QACJ,MAAM,OAAO,GAAG,UAAU,EAAE;aACzB,IAAI,EAAE;aACN,MAAM,CAAC,CAAC,GAAqB,EAAE,GAAG,EAAE,EAAE;YACrC,IAAI,GAAG,CAAC,UAAU,CAAC,uBAAA,IAAI,4BAAS,CAAC,gBAAgB,CAAC,EAAE,CAAC;gBACnD,GAAG,CAAC,IAAI,CAAC,mBAAmB,CAAC,GAAG,CAAC,CAAC,CAAC;YACrC,CAAC;YACD,OAAO,GAAG,CAAC;QACb,CAAC,EAAE,EAAE,CAAC,CAAC;QACT,OAAO,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IACjC,CAAC;CACF;+JAxDwB,UAAkB;IACvC,OAAO,mBAAmB,CAAC,GAAG,uBAAA,IAAI,4BAAS,CAAC,gBAAgB,GAAG,UAAU,EAAE,CAAC,CAAC;AAC/E,CAAC,6EAEmB,OAAgB;;IAClC,MAAM,cAAc,GAAG,MAAA,MAAM,CAAC,gBAAgB,0CAAG,OAAO,CAAC,CAAC;IAC1D,OAAO,uBAAA,IAAI,kEAAuB,MAA3B,IAAI,EAAwB,cAAc,CAAC,CAAC;AACrD,CAAC"}
@@ -5,6 +5,7 @@ export interface StorageSystem {
5
5
  get(key: string): string | null;
6
6
  set(key: string, value: unknown): void;
7
7
  remove(key: string): void;
8
+ keys(): string[];
8
9
  clear(): void;
9
10
  }
10
11
  type StorageOptions = 'localStorage' | 'memory' | {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/core/storage/index.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IAChC,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,IAAI,CAAC;IACvC,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,KAAK,IAAI,IAAI,CAAC;CACf;AAGD,KAAK,cAAc,GACf,cAAc,GACd,QAAQ,GACR;IACE,QAAQ,aAAa,CAAC;CACvB,CAAC;AAEN;;GAEG;AACH,wBAAgB,aAAa,CAAC,WAAW,GAAE,cAAyB,GAAG,aAAa,CAanF;AAED,eAAe,aAAa,CAAC;AAE7B;;GAEG;AACH,eAAO,MAAM,UAAU,sBAAgB,CAAC;AAExC;;;;GAIG;AAEH,wBAAgB,OAAO,SAEtB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/core/storage/index.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IAChC,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,IAAI,CAAC;IACvC,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,IAAI,IAAI,MAAM,EAAE,CAAC;IACjB,KAAK,IAAI,IAAI,CAAC;CACf;AAGD,KAAK,cAAc,GACf,cAAc,GACd,QAAQ,GACR;IACE,QAAQ,aAAa,CAAC;CACvB,CAAC;AAEN;;GAEG;AACH,wBAAgB,aAAa,CAAC,WAAW,GAAE,cAAyB,GAAG,aAAa,CAanF;AAED,eAAe,aAAa,CAAC;AAE7B;;GAEG;AACH,eAAO,MAAM,UAAU,sBAAgB,CAAC;AAExC;;;;GAIG;AAEH,wBAAgB,OAAO,SAEtB"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/core/storage/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAWlD,IAAI,OAAkC,CAAC;AAQvC;;GAEG;AACH,MAAM,UAAU,aAAa,CAAC,cAA8B,QAAQ;IAClE,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,IAAI,OAAgC,CAAC;QACrC,IAAI,WAAW,KAAK,cAAc,EAAE,CAAC;YACnC,OAAO,GAAG,YAAY,CAAC;QACzB,CAAC;aAAM,IAAI,WAAW,KAAK,QAAQ,EAAE,CAAC;YACpC,OAAO,GAAG,aAAa,CAAC;QAC1B,CAAC;aAAM,CAAC;YACN,OAAO,GAAG,WAAW,CAAC;QACxB,CAAC;QACD,OAAO,GAAG,IAAI,OAAO,EAAE,CAAC;IAC1B,CAAC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC;AAED,eAAe,aAAa,CAAC;AAE7B;;GAEG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,aAAa,CAAC;AAExC;;;;GAIG;AACH,sFAAsF;AACtF,MAAM,UAAU,OAAO;IACrB,OAAO,GAAG,SAAS,CAAC;AACtB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/core/storage/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAYlD,IAAI,OAAkC,CAAC;AAQvC;;GAEG;AACH,MAAM,UAAU,aAAa,CAAC,cAA8B,QAAQ;IAClE,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,IAAI,OAAgC,CAAC;QACrC,IAAI,WAAW,KAAK,cAAc,EAAE,CAAC;YACnC,OAAO,GAAG,YAAY,CAAC;QACzB,CAAC;aAAM,IAAI,WAAW,KAAK,QAAQ,EAAE,CAAC;YACpC,OAAO,GAAG,aAAa,CAAC;QAC1B,CAAC;aAAM,CAAC;YACN,OAAO,GAAG,WAAW,CAAC;QACxB,CAAC;QACD,OAAO,GAAG,IAAI,OAAO,EAAE,CAAC;IAC1B,CAAC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC;AAED,eAAe,aAAa,CAAC;AAE7B;;GAEG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,aAAa,CAAC;AAExC;;;;GAIG;AACH,sFAAsF;AACtF,MAAM,UAAU,OAAO;IACrB,OAAO,GAAG,SAAS,CAAC;AACtB,CAAC"}
@@ -3,6 +3,7 @@ export declare class LocalStorage implements StorageSystem {
3
3
  #private;
4
4
  get(key: string): string | null;
5
5
  set(key: string, value: unknown): void;
6
+ keys(): string[];
6
7
  remove(key: string): void;
7
8
  clear(): void;
8
9
  }
@@ -1 +1 @@
1
- {"version":3,"file":"local-storage.d.ts","sourceRoot":"","sources":["../../../../../src/lib/core/storage/local-storage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,qBAAa,YAAa,YAAW,aAAa;;IAGhD,GAAG,CAAC,GAAG,EAAE,MAAM;IAIf,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO;IAI/B,MAAM,CAAC,GAAG,EAAE,MAAM;IAIlB,KAAK;CAGN"}
1
+ {"version":3,"file":"local-storage.d.ts","sourceRoot":"","sources":["../../../../../src/lib/core/storage/local-storage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,qBAAa,YAAa,YAAW,aAAa;;IAGhD,GAAG,CAAC,GAAG,EAAE,MAAM;IAIf,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO;IAI/B,IAAI;IAIJ,MAAM,CAAC,GAAG,EAAE,MAAM;IAIlB,KAAK;CAGN"}
@@ -1,5 +1,9 @@
1
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
2
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
3
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
4
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
5
+ };
1
6
  var _LocalStorage_storage;
2
- import { __classPrivateFieldGet } from "tslib";
3
7
  export class LocalStorage {
4
8
  constructor() {
5
9
  _LocalStorage_storage.set(this, globalThis.localStorage);
@@ -10,6 +14,9 @@ export class LocalStorage {
10
14
  set(key, value) {
11
15
  __classPrivateFieldGet(this, _LocalStorage_storage, "f").setItem(key, typeof value !== 'string' ? JSON.stringify(value) : value);
12
16
  }
17
+ keys() {
18
+ return Object.keys(__classPrivateFieldGet(this, _LocalStorage_storage, "f"));
19
+ }
13
20
  remove(key) {
14
21
  __classPrivateFieldGet(this, _LocalStorage_storage, "f").removeItem(key);
15
22
  }
@@ -1 +1 @@
1
- {"version":3,"file":"local-storage.js","sourceRoot":"","sources":["../../../../../src/lib/core/storage/local-storage.ts"],"names":[],"mappings":";;AAEA,MAAM,OAAO,YAAY;IAAzB;QACE,gCAAW,UAAU,CAAC,YAAY,EAAC;IAiBrC,CAAC;IAfC,GAAG,CAAC,GAAW;QACb,OAAO,uBAAA,IAAI,6BAAS,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IACpC,CAAC;IAED,GAAG,CAAC,GAAW,EAAE,KAAc;QAC7B,uBAAA,IAAI,6BAAS,CAAC,OAAO,CAAC,GAAG,EAAE,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;IACxF,CAAC;IAED,MAAM,CAAC,GAAW;QAChB,uBAAA,IAAI,6BAAS,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;IAChC,CAAC;IAED,KAAK;QACH,uBAAA,IAAI,6BAAS,CAAC,KAAK,EAAE,CAAC;IACxB,CAAC;CACF"}
1
+ {"version":3,"file":"local-storage.js","sourceRoot":"","sources":["../../../../../src/lib/core/storage/local-storage.ts"],"names":[],"mappings":";;;;;;AAEA,MAAM,OAAO,YAAY;IAAzB;QACE,gCAAW,UAAU,CAAC,YAAY,EAAC;IAqBrC,CAAC;IAnBC,GAAG,CAAC,GAAW;QACb,OAAO,uBAAA,IAAI,6BAAS,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IACpC,CAAC;IAED,GAAG,CAAC,GAAW,EAAE,KAAc;QAC7B,uBAAA,IAAI,6BAAS,CAAC,OAAO,CAAC,GAAG,EAAE,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;IACxF,CAAC;IAED,IAAI;QACF,OAAO,MAAM,CAAC,IAAI,CAAC,uBAAA,IAAI,6BAAS,CAAC,CAAC;IACpC,CAAC;IAED,MAAM,CAAC,GAAW;QAChB,uBAAA,IAAI,6BAAS,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;IAChC,CAAC;IAED,KAAK;QACH,uBAAA,IAAI,6BAAS,CAAC,KAAK,EAAE,CAAC;IACxB,CAAC;CACF"}
@@ -4,6 +4,7 @@ export declare class MemoryStorage implements StorageSystem {
4
4
  get(key: string): string | null;
5
5
  set(key: string, value: unknown): void;
6
6
  remove(key: string): void;
7
+ keys(): string[];
7
8
  clear(): void;
8
9
  }
9
10
  //# sourceMappingURL=memory.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"memory.d.ts","sourceRoot":"","sources":["../../../../../src/lib/core/storage/memory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,qBAAa,aAAc,YAAW,aAAa;;IAGjD,GAAG,CAAC,GAAG,EAAE,MAAM;IAIf,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO;IAI/B,MAAM,CAAC,GAAG,EAAE,MAAM;IAIlB,KAAK;CAGN"}
1
+ {"version":3,"file":"memory.d.ts","sourceRoot":"","sources":["../../../../../src/lib/core/storage/memory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,qBAAa,aAAc,YAAW,aAAa;;IAGjD,GAAG,CAAC,GAAG,EAAE,MAAM;IAIf,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO;IAI/B,MAAM,CAAC,GAAG,EAAE,MAAM;IAIlB,IAAI;IAIJ,KAAK;CAGN"}
@@ -1,5 +1,15 @@
1
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
2
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
3
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
4
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
5
+ };
6
+ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
7
+ if (kind === "m") throw new TypeError("Private method is not writable");
8
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
9
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
10
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
11
+ };
1
12
  var _MemoryStorage_storage;
2
- import { __classPrivateFieldGet, __classPrivateFieldSet } from "tslib";
3
13
  export class MemoryStorage {
4
14
  constructor() {
5
15
  _MemoryStorage_storage.set(this, {});
@@ -13,6 +23,9 @@ export class MemoryStorage {
13
23
  remove(key) {
14
24
  delete __classPrivateFieldGet(this, _MemoryStorage_storage, "f")[key];
15
25
  }
26
+ keys() {
27
+ return Object.keys(__classPrivateFieldGet(this, _MemoryStorage_storage, "f"));
28
+ }
16
29
  clear() {
17
30
  __classPrivateFieldSet(this, _MemoryStorage_storage, {}, "f");
18
31
  }
@@ -1 +1 @@
1
- {"version":3,"file":"memory.js","sourceRoot":"","sources":["../../../../../src/lib/core/storage/memory.ts"],"names":[],"mappings":";;AAEA,MAAM,OAAO,aAAa;IAA1B;QACE,iCAA0C,EAAE,EAAC;IAiB/C,CAAC;IAfC,GAAG,CAAC,GAAW;QACb,OAAO,uBAAA,IAAI,8BAAS,CAAC,GAAG,CAAC,KAAK,SAAS,CAAC,CAAC,CAAC,uBAAA,IAAI,8BAAS,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IACtE,CAAC;IAED,GAAG,CAAC,GAAW,EAAE,KAAc;QAC7B,uBAAA,IAAI,8BAAS,CAAC,GAAG,CAAC,GAAG,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;IACjF,CAAC;IAED,MAAM,CAAC,GAAW;QAChB,OAAO,uBAAA,IAAI,8BAAS,CAAC,GAAG,CAAC,CAAC;IAC5B,CAAC;IAED,KAAK;QACH,uBAAA,IAAI,0BAAY,EAAE,MAAA,CAAC;IACrB,CAAC;CACF"}
1
+ {"version":3,"file":"memory.js","sourceRoot":"","sources":["../../../../../src/lib/core/storage/memory.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,MAAM,OAAO,aAAa;IAA1B;QACE,iCAA0C,EAAE,EAAC;IAqB/C,CAAC;IAnBC,GAAG,CAAC,GAAW;QACb,OAAO,uBAAA,IAAI,8BAAS,CAAC,GAAG,CAAC,KAAK,SAAS,CAAC,CAAC,CAAC,uBAAA,IAAI,8BAAS,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IACtE,CAAC;IAED,GAAG,CAAC,GAAW,EAAE,KAAc;QAC7B,uBAAA,IAAI,8BAAS,CAAC,GAAG,CAAC,GAAG,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;IACjF,CAAC;IAED,MAAM,CAAC,GAAW;QAChB,OAAO,uBAAA,IAAI,8BAAS,CAAC,GAAG,CAAC,CAAC;IAC5B,CAAC;IAED,IAAI;QACF,OAAO,MAAM,CAAC,IAAI,CAAC,uBAAA,IAAI,8BAAS,CAAC,CAAC;IACpC,CAAC;IAED,KAAK;QACH,uBAAA,IAAI,0BAAY,EAAE,MAAA,CAAC;IACrB,CAAC;CACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@globus/sdk",
3
- "version": "3.1.0",
3
+ "version": "3.2.0",
4
4
  "private": false,
5
5
  "description": "The Globus SDK for Javascript",
6
6
  "main": "cjs/index.js",
@@ -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(w)}),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 _(e,t){if(!(this instanceof _))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 _){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 w(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)}_.prototype.clone=function(){return new _(this,{body:this._bodyInit})},m.call(_.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 O(e,n){return new Promise((function(o,s){var c=new _(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)}))}O.polyfill=!0,r.fetch||(r.fetch=O,r.Headers=l,r.Request=_,r.Response=A),t.Headers=l,t.Request=_,t.Response=A,t.fetch=O}({})}(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),_=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+_|0,s=i,i=o,o=n,n=_+(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:()=>l,authorization:()=>g,compute:()=>V,flows:()=>D,gcs:()=>z,groups:()=>$,logger:()=>e,search:()=>R,timer:()=>G,transfer:()=>E,webapp:()=>J});var e={};r.r(e),r.d(e,{log:()=>ee,setLogLevel:()=>Z,setLogger:()=>Q});var t={};r.r(t),r.d(t,{HOSTS:()=>ae,ID:()=>ie,SCOPES:()=>se});var o={};r.r(o),r.d(o,{HOSTS:()=>ue,ID:()=>ce,SCOPES:()=>pe});var i={};r.r(i),r.d(i,{HOSTS:()=>de,ID:()=>he});var s={};r.r(s),r.d(s,{HOSTS:()=>fe,ID:()=>le,SCOPES:()=>ge});var a={};r.r(a),r.d(a,{HOSTS:()=>ye,ID:()=>ve,SCOPES:()=>me});var c={};r.r(c),r.d(c,{HOSTS:()=>_e,ID:()=>be,SCOPES:()=>we});var u={};r.r(u),r.d(u,{HOSTS:()=>Te,ID:()=>Ae,RESOURCE_SERVERS:()=>Se,SCOPES:()=>Oe});var p={};r.r(p),r.d(p,{get:()=>Be,getAll:()=>Ne});var h={};r.r(h),r.d(h,{introspect:()=>He,refresh:()=>qe,revoke:()=>Fe,validate:()=>ze});var d={};r.r(d),r.d(d,{token:()=>h,userinfo:()=>Ge});var l={};r.r(l),r.d(l,{CONFIG:()=>We,getAuthorizationEndpoint:()=>Ve,getTokenEndpoint:()=>Je,identities:()=>p,isGlobusAuthTokenResponse:()=>Xe,isRefreshToken:()=>Ke,isToken:()=>Ye,oauth2:()=>d});var f={};r.r(f),r.d(f,{getTokenForScope:()=>Lt});var g={};r.r(g),r.d(g,{create:()=>Pt,getTokenForScope:()=>kt,tokens:()=>f});var v={};r.r(v),r.d(v,{ls:()=>xt,mkdir:()=>It,rename:()=>$t,symlink:()=>Ut});var y={};r.r(y),r.d(y,{submissionId:()=>Bt,submitDelete:()=>Ct,submitTransfer:()=>Dt});var m={};r.r(m),r.d(m,{create:()=>Mt,get:()=>Nt,remove:()=>Ft,update:()=>Ht});var b={};r.r(b),r.d(b,{cancel:()=>Wt,get:()=>zt,getAll:()=>qt,getEventList:()=>Jt,getPauseInfo:()=>Xt,getSkippedErrors:()=>Kt,getSuccessfulTransfers:()=>Yt,remove:()=>Vt,update:()=>Gt});var _={};r.r(_),r.d(_,{create:()=>Zt,get:()=>er,getAll:()=>Qt,remove:()=>rr,update:()=>tr});var w={};r.r(w),r.d(w,{create:()=>or,get:()=>ir,getAll:()=>nr,remove:()=>ar,update:()=>sr});var A={};r.r(A),r.d(A,{get:()=>cr,getAccessList:()=>pr,getHostedEndpoints:()=>ur,getMonitoredEndpoints:()=>hr});var T={};r.r(T),r.d(T,{create:()=>lr,get:()=>fr,getAll:()=>dr,remove:()=>vr,update:()=>gr});var O={};r.r(O),r.d(O,{cancel:()=>br,get:()=>mr,getAdminCancel:()=>_r,getAll:()=>yr,getEventList:()=>wr,getPauseInfo:()=>Er,getSkippedErrors:()=>Tr,getSuccessfulTransfers:()=>Ar,pause:()=>Or,resume:()=>Sr});var S={};r.r(S),r.d(S,{endpoint:()=>A,pauseRule:()=>T,task:()=>O});var E={};r.r(E),r.d(E,{CONFIG:()=>Lr,access:()=>_,collectionBookmarks:()=>w,endpoint:()=>m,endpointManager:()=>S,endpointSearch:()=>Rt,fileOperations:()=>v,task:()=>b,taskSubmission:()=>y});var L={};r.r(L),r.d(L,{get:()=>kr,post:()=>Pr});var k={};r.r(k),r.d(k,{get:()=>Rr});var P={};r.r(P),r.d(P,{get:()=>jr});var R={};r.r(R),r.d(R,{CONFIG:()=>xr,entry:()=>P,query:()=>L,subject:()=>k});var j={};r.r(j),r.d(j,{get:()=>$r,getMyGroups:()=>Ir});var x={};r.r(x),r.d(x,{get:()=>Ur});var I={};r.r(I),r.d(I,{act:()=>Cr});var $={};r.r($),r.d($,{CONFIG:()=>Dr,groups:()=>j,membership:()=>I,policies:()=>x});var U={};r.r(U),r.d(U,{get:()=>Nr,getAll:()=>Br,remove:()=>Mr});var C={};r.r(C),r.d(C,{getAll:()=>Hr});var D={};r.r(D),r.d(D,{CONFIG:()=>Fr,flows:()=>U,runs:()=>C});var B={};r.r(B),r.d(B,{create:()=>Wr,get:()=>zr,getAll:()=>qr,patch:()=>Jr,remove:()=>Gr,resetOwnerString:()=>Kr,update:()=>Vr,updateOwnerString:()=>Yr});var N={};r.r(N),r.d(N,{get:()=>Xr,patch:()=>Zr,update:()=>Qr,updateSubscriptionId:()=>en});var M={};r.r(M),r.d(M,{create:()=>on,get:()=>rn,getAll:()=>tn,remove:()=>nn});var H={};r.r(H),r.d(H,{create:()=>un,get:()=>an,getAll:()=>sn,patch:()=>hn,remove:()=>cn,update:()=>pn});var F={};r.r(F),r.d(F,{create:()=>gn,get:()=>ln,getAll:()=>dn,patch:()=>yn,remove:()=>fn,update:()=>vn});var q={};r.r(q),r.d(q,{info:()=>mn});var z={};r.r(z),r.d(z,{collections:()=>B,endpoint:()=>N,getRequiredScopes:()=>_n,roles:()=>M,storageGateways:()=>H,userCredentials:()=>F,versioning:()=>q});var G={};r.r(G),r.d(G,{CONFIG:()=>An,create:()=>wn});var W={};r.r(W),r.d(W,{get:()=>On,getAll:()=>Tn,getStatus:()=>Sn});var V={};r.r(V),r.d(V,{CONFIG:()=>En,endpoints:()=>W});var J={};r.r(J),r.d(J,{HOSTS:()=>Ln,host:()=>kn,url:()=>Pn,urlFor:()=>jn});const Y=["debug","info","warn","error"];let K,X=Y.indexOf("error");function Q(e){K=e}function Z(e){X=Y.indexOf(e)}function ee(e,...t){var r;K&&(Y.indexOf(e)<X||(null!==(r=K[e])&&void 0!==r?r:K.log)(...t))}function te(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())}))}function re(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 ne(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}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;class oe extends Error{}oe.prototype.name="InvalidTokenError";const ie="TRANSFER",se={ALL:"urn:globus:auth:scope:transfer.api.globus.org:all"},ae={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"},ce="FLOWS",ue={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"},pe={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"},he="TIMER",de={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"},le="GROUPS",fe={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"},ge={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"},ve="SEARCH",ye={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"},me={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"},be="COMPUTE",_e={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"},we={ALL:"https://auth.globus.org/scopes/facd7ccc-c5f4-42aa-916b-a0e270e2c2a9/all"},Ae="AUTH",Te={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"},Oe={VIEW_IDENTITIES:"urn:globus:auth:scope:auth.globus.org:view_identities"},Se={[Ae]:"auth.globus.org",[ie]:"transfer.api.globus.org",[ce]:"flows.api.globus.org",[le]:"groups.api.globus.org",[ve]:"search.api.globus.org",[he]:"524230d7-ea86-4a52-8312-86065a9e0417",[be]:"funcx_service"};class Ee extends Error{constructor(e,t){super(),this.name="EnvironmentConfigurationError",this.message=`Invalid configuration value provided for ${e} (${t}).`}}function Le(e){return"object"==typeof e&&null!==e&&"code"in e&&"message"in e}function ke(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 Pe={PRODUCTION:"production",PREVIEW:"preview",STAGING:"staging",SANDBOX:"sandbox",INTEGRATION:"integration",TEST:"test"};function Re(){const e=ke("GLOBUS_SDK_ENVIRONMENT",Pe.PRODUCTION);if(!e||!Object.values(Pe).includes(e))throw new Ee("GLOBUS_SDK_ENVIRONMENT",e);return e}const je={[Ae]:Ae,[ie]:ie,[ce]:ce,[le]:le,[ve]:ve,[he]:he,[be]:be},xe={[Ae]:Te,[ie]:ae,[ce]:ue,[le]:fe,[ve]:ye,[he]:de,[be]:_e};function Ie(e,t,r,n){let o;return o="object"==typeof e?new URL(t,e.host):function(e,t="",r=Re()){const n=function(e,t=Re()){const r=function(e,t=Re()){return xe[e][t]}(e,t);return ke(`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 $e,Ue=r(945),Ce=r.n(Ue);function De(e,t,r){var n;const o=function(e){var t,r,n,o,i,s;let a=ke("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({},null==t?void 0:t.headers),i.headers);if(e.scope&&!(null==s?void 0:s.Authorization)){const t=kt(e.scope);t&&(s.Authorization=t)}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=Ie(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)):Ce()(c,u)}!function(e){e.POST="POST",e.GET="GET",e.DELETE="DELETE",e.PUT="PUT",e.PATCH="PATCH"}($e||($e={}));const Be=function(e,t={},r){return De({service:Ae,scope:Oe.VIEW_IDENTITIES,path:`/identities/${e}`},t,r)},Ne=function(e={},t){return De({service:Ae,scope:Oe.VIEW_IDENTITIES,path:"/identities"},e,t)};function Me(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 He=function(e,t){if(!(null==e?void 0:e.payload))throw new Error("'payload' is required for introspect");return De({service:Ae,scope:void 0,path:"/v2/oauth2/token/introspect",method:$e.POST},Me(e),t)},Fe=function(e,t){if(!(null==e?void 0:e.payload))throw new Error("'payload' is required for revoke");return De({service:Ae,scope:void 0,path:"/v2/oauth2/token/revoke",method:$e.POST},Me(e),t)},qe=function(e,t){if(!(null==e?void 0:e.payload))throw new Error("'payload' is required for revoke");return De({service:Ae,scope:void 0,path:"/v2/oauth2/token",method:$e.POST},Me(e),t)},ze=function(e,t){if(!(null==e?void 0:e.payload))throw new Error("'payload' is required for validate");return De({service:Ae,scope:void 0,path:"/v2/oauth2/token/validate",method:$e.POST},Me(e),t)},Ge=function(e,t){return De({service:Ae,scope:void 0,path:"/v2/oauth2/userinfo",method:$e.GET},e,t)},We=u;function Ve(){return Ie(Ae,"/v2/oauth2/authorize")}function Je(){return Ie(Ae,"/v2/oauth2/token")}function Ye(e){return"object"==typeof e&&null!==e&&"access_token"in e}function Ke(e){return Ye(e)&&null!==e&&"refresh_token"in e}function Xe(e){return Ye(e)&&null!==e&&"resource_server"in e}var Qe,Ze;class et{constructor(){Qe.set(this,{})}get(e){return void 0!==re(this,Qe,"f")[e]?re(this,Qe,"f")[e]:null}set(e,t){re(this,Qe,"f")[e]="string"!=typeof t?JSON.stringify(t):t}remove(e){delete re(this,Qe,"f")[e]}clear(){ne(this,Qe,{},"f")}}Qe=new WeakMap;class tt{constructor(){Ze.set(this,globalThis.localStorage)}get(e){return re(this,Ze,"f").getItem(e)}set(e,t){re(this,Ze,"f").setItem(e,"string"!=typeof t?JSON.stringify(t):t)}remove(e){re(this,Ze,"f").removeItem(e)}clear(){re(this,Ze,"f").clear()}}let rt;function nt(e="memory"){if(!rt){let t;t="localStorage"===e?tt:"memory"===e?et:e,rt=new t}return rt}Ze=new WeakMap;const ot=nt;var it;class st{constructor(e){this.name=e,it.set(this,[])}addListener(e){return re(this,it,"f").push(e),()=>this.removeListener(e)}removeListener(e){ne(this,it,re(this,it,"f").filter((t=>t!==e)),"f")}clearListeners(){ne(this,it,[],"f")}dispatch(e){return te(this,void 0,void 0,(function*(){yield Promise.all(re(this,it,"f").map((t=>t(e))))}))}}it=new WeakMap;var at,ct,ut,pt,ht,dt,lt,ft,gt,vt,yt,mt,bt,_t,wt,At=r(368),Tt=r.n(At);class Ot{constructor(e){at.set(this,void 0),ct.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"]);ne(this,at,new(Tt())(Object.assign({},r)),"f"),ne(this,ct,Object.assign({},t),"f")}send(){window.location.replace(re(this,at,"f").authorizeUrl(re(this,ct,"f")))}getToken(){return te(this,arguments,void 0,(function*(e={shouldReplace:!0}){const t=new URL(window.location.href),r=new URLSearchParams(t.search);if(!r.get("code"))return;const n=yield re(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}))}}at=new WeakMap,ct=new WeakMap;class St{constructor(e){ut.add(this),pt.set(this,void 0),ne(this,pt,e.manager,"f")}get auth(){return re(this,ut,"m",ht).call(this,je.AUTH)}get transfer(){return re(this,ut,"m",ht).call(this,je.TRANSFER)}get flows(){return re(this,ut,"m",ht).call(this,je.FLOWS)}get groups(){return re(this,ut,"m",ht).call(this,je.GROUPS)}get search(){return re(this,ut,"m",ht).call(this,je.SEARCH)}get timer(){return re(this,ut,"m",ht).call(this,je.TIMER)}get compute(){return re(this,ut,"m",ht).call(this,je.COMPUTE)}getAll(){return[this.auth,this.transfer,this.flows,this.groups,this.search,this.timer,this.compute].filter(Ye)}}pt=new WeakMap,ut=new WeakSet,ht=function(e){var t;const r=null===(t=We.RESOURCE_SERVERS)||void 0===t?void 0:t[e],n=ot().get(`${re(this,pt,"f").configuration.client}:${r}`)||"null";let o=null;try{const e=JSON.parse(n);Ye(e)&&(o=e)}catch(e){}return o};class Et{get authenticated(){return re(this,ft,"f")}set authenticated(e){ne(this,ft,e,"f"),re(this,dt,"m",mt).call(this)}constructor(e){var t;if(dt.add(this),lt.set(this,void 0),ft.set(this,!1),this.events={authenticated:new st("authenticated"),revoke:new st("revoke")},this.addTokenResponse=e=>{var t;ot().set(`${this.configuration.client}:${e.resource_server}`,e),"other_tokens"in e&&(null===(t=e.other_tokens)||void 0===t||t.forEach(this.addTokenResponse)),re(this,dt,"m",vt).call(this)},nt("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}${r?` ${r}`:""}`}),this.tokens=new St({manager:this}),re(this,dt,"m",yt).call(this),this.startSilentRefresh()}get user(){const e=this.getGlobusAuthToken();return e&&e.id_token?function(e,t){if("string"!=typeof e)throw new oe("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 oe(`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 oe(`Invalid token specified: invalid base64 for part #${r+1} (${e.message})`)}try{return JSON.parse(o)}catch(e){throw new oe(`Invalid token specified: invalid json for part #${r+1} (${e.message})`)}}(e.id_token):null}startSilentRefresh(){ee("debug",`AuthorizationManager.startSilentRefresh | useRefreshTokens=${this.configuration.useRefreshTokens}`),this.configuration.useRefreshTokens&&re(this,dt,"m",gt).call(this)}refreshToken(e){return te(this,void 0,void 0,(function*(){ee("debug",`AuthorizationManager.refreshToken | resource_server=${e.resource_server}`);try{const t=yield(yield qe({payload:{client_id:this.configuration.client,refresh_token:e.refresh_token,grant_type:"refresh_token"}})).json();Xe(t)&&this.addTokenResponse(t)}catch(t){ee("error",`AuthorizationManager.refreshToken | resource_server=${e.resource_server}`)}}))}hasGlobusAuthToken(){return null!==this.getGlobusAuthToken()}getGlobusAuthToken(){const e=ot().get(`${this.configuration.client}:auth.globus.org`);return e?JSON.parse(e):null}reset(){ot().clear(),this.authenticated=!1}login(){ee("debug","AuthorizationManager.login"),this.reset(),re(this,dt,"m",_t).call(this).send()}handleCodeRedirect(){return te(this,arguments,void 0,(function*(e={shouldReplace:!0}){ee("debug","AuthorizationManager.handleCodeRedirect");const t=yield re(this,dt,"m",_t).call(this).getToken({shouldReplace:null==e?void 0:e.shouldReplace});Xe(t)&&(ee("debug",`AuthorizationManager.handleCodeRedirect | response=${JSON.stringify(t)}`),this.addTokenResponse(t))}))}handleErrorResponse(e,t=!0){ee("debug",`AuthorizationManager.handleErrorResponse | response=${JSON.stringify(e)} execute=${t}`);let r=()=>{};var n;return Le(n=e)&&"authorization_parameters"in n&&"object"==typeof n.authorization_parameters&&null!==n.authorization_parameters&&(ee("debug","AuthorizationManager.handleErrorResponse | error=AuthorizationRequirementsError"),r=()=>this.handleAuthorizationRequirementsError(e)),function(e){return Le(e)&&"ConsentRequired"===e.code&&"required_scopes"in e&&Array.isArray(e.required_scopes)}(e)&&(ee("debug","AuthorizationManager.handleErrorResponse | error=ConsentRequiredError"),r=()=>this.handleConsentRequiredError(e)),"code"in e&&"AuthenticationFailed"===e.code&&(ee("debug","AuthorizationManager.handleErrorResponse | error=AuthenticationFailed"),r=()=>this.revoke()),!0===t?r():r}handleAuthorizationRequirementsError(e){ne(this,lt,re(this,dt,"m",_t).call(this,{params:{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"}}),"f"),re(this,lt,"f").send()}handleConsentRequiredError(e){ne(this,lt,re(this,dt,"m",_t).call(this,{requested_scopes:re(this,dt,"m",bt).call(this,e.required_scopes.join(" "))}),"f"),re(this,lt,"f").send()}revoke(){return te(this,void 0,void 0,(function*(){ee("debug","AuthorizationManager.revoke");const e=Promise.all(this.tokens.getAll().map(re(this,dt,"m",wt).bind(this)));this.reset(),yield e,yield this.events.revoke.dispatch()}))}}function Lt(e){const t=ot().get(e),r=t?JSON.parse(t):null;return r&&function(e){const t=e;return Boolean(t.token_type&&t.access_token)}(r)?`${r.token_type} ${r.access_token}`:null}lt=new WeakMap,ft=new WeakMap,dt=new WeakSet,gt=function(){ee("debug","AuthorizationManager.#silentRefreshTokens"),this.tokens.getAll().forEach((e=>{Ke(e)&&this.refreshToken(e)}))},vt=function(){ee("debug","AuthorizationManager.#checkAuthorizationState"),this.hasGlobusAuthToken()&&(this.authenticated=!0)},yt=function(){return te(this,void 0,void 0,(function*(){ee("debug","AuthorizationManager.bootstrapFromStorageState"),re(this,dt,"m",vt).call(this)}))},mt=function(){return te(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})}))},bt=function(e){return`${e}${this.configuration.useRefreshTokens?" offline_access":""}`},_t=function(e){var t;const r=re(this,dt,"m",bt).call(this,null!==(t=null==e?void 0:e.requested_scopes)&&void 0!==t?t:this.configuration.scopes);return new Ot(Object.assign({client_id:this.configuration.client,authorization_endpoint:Ve(),token_endpoint:Je(),redirect_uri:this.configuration.redirect,requested_scopes:r},e))},wt=function(e){return ee("debug",`AuthorizationManager.revokeToken | resource_server=${e.resource_server}`),Fe({payload:{client_id:this.configuration.client,token:e.access_token}})};const{getTokenForScope:kt}=f;function Pt(e){return new Et(e)}const Rt=function(e,t){const r=Object.assign(Object.assign({},e),{query:null==e?void 0:e.query});return De({service:ie,scope:se.ALL,path:"/v0.10/endpoint_search"},r,t)};function jt(e){return e===$e.GET?{}:{"Content-Type":"application/json"}}const xt=function(e,t,r){return De({service:ie,scope:se.ALL,path:`/v0.10/operation/endpoint/${e}/ls`},t,r)},It=function(e,t,r){const n={payload:Object.assign({DATA_TYPE:"mkdir"},null==t?void 0:t.payload),headers:Object.assign(Object.assign({},jt($e.POST)),null==t?void 0:t.headers)};return De({service:ie,scope:se.ALL,path:`/v0.10/operation/endpoint/${e}/mkdir`,method:$e.POST},n,r)},$t=function(e,t,r){const n={payload:Object.assign({DATA_TYPE:"rename"},null==t?void 0:t.payload),headers:Object.assign(Object.assign({},jt($e.POST)),null==t?void 0:t.headers)};return De({service:ie,scope:se.ALL,path:`/v0.10/operation/endpoint/${e}/rename`,method:$e.POST},n,r)},Ut=function(e,t,r){const n={payload:Object.assign({DATA_TYPE:"symlink"},null==t?void 0:t.payload),headers:Object.assign(Object.assign({},jt($e.POST)),null==t?void 0:t.headers)};return De({service:ie,scope:se.ALL,path:`/v0.10/operation/endpoint/${e}/symlink`,method:$e.POST},n,r)},Ct=function(e,t){const r={payload:Object.assign({DATA_TYPE:"delete"},null==e?void 0:e.payload),headers:Object.assign(Object.assign({},jt($e.POST)),null==e?void 0:e.headers)};return De({service:ie,scope:se.ALL,path:"/v0.10/delete",method:$e.POST},r,t)},Dt=function(e,t){const r={payload:Object.assign({DATA_TYPE:"transfer"},null==e?void 0:e.payload),headers:Object.assign(Object.assign({},jt($e.POST)),null==e?void 0:e.headers)};return De({service:ie,scope:se.ALL,path:"/v0.10/transfer",method:$e.POST},r,t)},Bt=function(e,t){return De({service:ie,scope:se.ALL,path:"/v0.10/submission_id"},e,t)},Nt=function(e,t,r){return De({service:ie,scope:se.ALL,path:`/v0.10/endpoint/${e}`},t,r)},Mt=function(e,t){return(null==e?void 0:e.payload)&&Object.assign(e.payload,{DATA_TYPE:"shared_endpoint"}),De({service:ie,scope:se.ALL,path:"/v0.10/shared_endpoint",method:$e.POST},e,t)},Ht=function(e,t,r){return(null==t?void 0:t.payload)&&Object.assign(t.payload,{DATA_TYPE:"endpoint"}),De({service:ie,scope:se.ALL,path:`/v0.10/endpoint/${e}`,method:$e.PUT},t,r)},Ft=function(e,t,r){return De({service:ie,scope:se.ALL,path:`/v0.10/endpoint/${e}`,method:$e.DELETE},t,r)},qt=function(e={},t){return De({service:ie,scope:se.ALL,path:"/v0.10/task_list"},e,t)},zt=function(e,t,r){return De({service:ie,scope:se.ALL,path:`/v0.10/task/${e}`},t,r)},Gt=function(e,t,r){return De({service:ie,scope:se.ALL,path:`/v0.10/task/${e}`,method:$e.PUT},t,r)},Wt=function(e,t,r){return De({service:ie,scope:se.ALL,path:`/v0.10/task/${e}/cancel`,method:$e.POST},t,r)},Vt=function(e,t,r){return De({service:ie,scope:se.ALL,path:`/v0.10/task/${e}/remove`,method:$e.POST},t,r)},Jt=function(e,t,r){return De({service:ie,scope:se.ALL,path:`/v0.10/task/${e}/event_list`},t,r)},Yt=function(e,t,r){return De({service:ie,scope:se.ALL,path:`/v0.10/task/${e}/successful_transfers`},t,r)},Kt=function(e,t,r){return De({service:ie,scope:se.ALL,path:`/v0.10/task/${e}/skipped_errors`},t,r)},Xt=function(e,t,r){return De({service:ie,scope:se.ALL,path:`/v0.10/task/${e}/pause_info`},t,r)},Qt=function(e,t,r){return De({service:ie,scope:se.ALL,path:`/v0.10/endpoint/${e}/access_list`},t,r)},Zt=function(e,t,r){return De({service:ie,scope:se.ALL,path:`/v0.10/endpoint/${e}/access`,method:$e.POST},t,r)},er=function({endpoint_xid:e,id:t},r,n){return De({service:ie,scope:se.ALL,path:`/v0.10/endpoint/${e}/access/${t}`},r,n)},tr=function({endpoint_xid:e,id:t},r,n){return De({service:ie,scope:se.ALL,path:`/v0.10/endpoint/${e}/access/${t}`,method:$e.PUT},r,n)},rr=function({endpoint_xid:e,id:t},r,n){return De({service:ie,scope:se.ALL,path:`/v0.10/endpoint/${e}/access/${t}`,method:$e.DELETE},r,n)},nr=function(e,t){return De({service:ie,scope:se.ALL,path:"/v0.10/bookmark_list"},e,t)},or=function(e,t){return De({service:ie,scope:se.ALL,path:"/v0.10/bookmark",method:$e.POST},e,t)},ir=function(e,t,r){return De({service:ie,scope:se.ALL,path:`/v0.10/bookmark/${e}`},t,r)},sr=function(e,t,r){return De({service:ie,scope:se.ALL,path:`/v0.10/bookmark/${e}`,method:$e.PUT},t,r)},ar=function(e,t,r){return De({service:ie,scope:se.ALL,path:`/v0.10/bookmark/${e}`,method:$e.DELETE},t,r)},cr=function(e,t,r){return De({service:ie,scope:se.ALL,path:`/v0.10/endpoint_manager/endpoint/${e}`},t,r)},ur=function(e,t,r){return De({service:ie,scope:se.ALL,path:`/v0.10/endpoint_manager/endpoint/${e}/hosted_endpoint_list`},t,r)},pr=function(e,t,r){return De({service:ie,scope:se.ALL,path:`/v0.10/endpoint_manager/endpoint/${e}/access_list`},t,r)},hr=function(e={},t){return De({service:ie,scope:se.ALL,path:"/v0.10/endpoint_manager/monitored_endpoints"},e,t)},dr=function(e,t){return De({service:ie,scope:se.ALL,path:"/v0.10/endpoint_manager/pause_rule_list"},e,t)},lr=function(e,t){return De({service:ie,scope:se.ALL,path:"/v0.10/endpoint_manager/pause_rule",method:$e.POST},e,t)},fr=function(e,t,r){return De({service:ie,scope:se.ALL,path:`/v0.10/endpoint_manager/pause_rule/${e}`},t,r)},gr=function(e,t,r){return De({service:ie,scope:se.ALL,path:`/v0.10/endpoint_manager/pause_rule/${e}`,method:$e.PUT},t,r)},vr=function(e,t,r){return De({service:ie,scope:se.ALL,path:`/v0.10/endpoint_manager/pause_rule/${e}`,method:$e.DELETE},t,r)},yr=function(e={},t){return De({service:ie,scope:se.ALL,path:"/v0.10/task_list"},e,t)},mr=function(e,t,r){return De({service:ie,scope:se.ALL,path:`/v0.10/endpoint_manager/task/${e}`},t,r)},br=function(e,t){return De({service:ie,scope:se.ALL,path:"/v0.10/endpoint_manager/admin_cancel",method:$e.POST},e,t)},_r=function(e,t,r){return De({service:ie,scope:se.ALL,path:`/v0.10/endpoint_manager/admin_cancel/${e}`,method:$e.POST},t,r)},wr=function(e,t,r){return De({service:ie,scope:se.ALL,path:`/v0.10/endpoint_manager/task/${e}/event_list`},t,r)},Ar=function(e,t,r){return De({service:ie,scope:se.ALL,path:`/v0.10/endpoint_manager/task/${e}/successful_transfers`},t,r)},Tr=function(e,t,r){return De({service:ie,scope:se.ALL,path:`/v0.10/endpoint_manager/task/${e}/skipped_errors`},t,r)},Or=function(e,t){return De({service:ie,scope:se.ALL,path:"/v0.10/endpoint_manager/admin_pause",method:$e.POST},e,t)},Sr=function(e,t){return De({service:ie,scope:se.ALL,path:"/v0.10/endpoint_manager/admin_resume",method:$e.POST},e,t)},Er=function(e,t,r){return De({service:ie,scope:se.ALL,path:`/v0.10/endpoint_manager/task/${e}/pause_info`},t,r)},Lr=t,kr=function(e,t,r){return De({service:ve,scope:me.SEARCH,path:`/v1/index/${e}/search`},t,r)},Pr=function(e,t,r){return De({service:ve,scope:me.SEARCH,path:`/v1/index/${e}/search`,method:$e.POST},t,r)},Rr=function(e,t,r){return De({service:ve,scope:me.SEARCH,path:`/v1/index/${e}/subject`},t,r)},jr=function(e,t,r){return De({service:ve,scope:me.SEARCH,path:`/v1/index/${e}/entry`},t,r)},xr=a,Ir=function(e,t){return De({scope:ge.ALL,path:"/v2/groups/my_groups",service:le},e,t)},$r=function(e,t,r){return De({service:le,scope:ge.ALL,path:`/v2/groups/${e}`},t,r)},Ur=function(e,t,r){return De({scope:ge.ALL,path:`/v2/groups/${e}/policies`,service:le},t,r)},Cr=function(e,t,r){if(!(null==t?void 0:t.payload))throw new Error("payload is required.");return De({service:le,scope:ge.ALL,path:`/v2/groups/${e}`,method:$e.POST},t,r)},Dr=s,Br=function(e,t){return De({service:ce,scope:pe.VIEW_FLOWS,path:"/flows"},e,t)},Nr=function(e,t,r){return De({service:ce,scope:pe.VIEW_FLOWS,path:`/flows/${e}`},t,r)},Mr=function(e,t,r){return De({scope:pe.MANAGE_FLOWS,service:ce,path:`/flows/${e}`,method:$e.DELETE},t,r)},Hr=function(e={},t){return De({service:ce,scope:pe.RUN_MANAGE,path:"/runs"},e,t)},Fr=o,qr=function(e,t,r){return De({service:e,scope:_n(e),path:"/api/collections"},t,r)},zr=function(e,t,r,n){return De({service:e,scope:_n(e),path:`/api/collections/${t}`},r,n)},Gr=function(e,t,r,n){return De({service:e,scope:_n(e),path:`/api/collections/${t}`,method:$e.DELETE},r,n)},Wr=function(e,t,r){return De({service:e,scope:_n(e),path:"/api/collections",method:$e.POST},t,r)},Vr=function(e,t,r,n){return De({service:e,scope:_n(e),path:`/api/collections/${t}`,method:$e.PUT},r,n)},Jr=function(e,t,r,n){return De({service:e,scope:_n(e),path:`/api/collections/${t}`,method:$e.PATCH},r,n)},Yr=function(e,t,r,n){return De({service:e,scope:_n(e),path:`/api/collections/${t}/owner_string`,method:$e.PUT},r,n)},Kr=function(e,t,r,n){return De({service:e,scope:_n(e),path:`/api/collections/${t}/owner_string`,method:$e.DELETE},r,n)},Xr=function(e,t,r){return De({service:e,scope:_n(e),path:"/api/endpoint"},t,r)},Qr=function(e,t,r){return De({service:e,scope:_n(e),path:"/api/endpoint",method:$e.PUT},t,r)},Zr=function(e,t,r){return De({service:e,scope:_n(e),path:"/api/endpoint",method:$e.PATCH},t,r)},en=function(e,t,r){return De({service:e,scope:_n(e),path:"/api/endpoint/subscription_id",method:$e.PUT},t,r)},tn=function(e,t,r){return De({service:e,scope:_n(e),path:"/api/roles"},t,r)},rn=function(e,t,r,n){return De({service:e,scope:_n(e),path:`/api/roles/${t}`},r,n)},nn=function(e,t,r,n){return De({service:e,scope:_n(e),path:`/api/roles/${t}`,method:$e.DELETE},r,n)},on=function(e,t,r){return De({service:e,scope:_n(e),path:"/api/roles",method:$e.POST},t,r)},sn=function(e,t,r){return De({service:e,scope:_n(e),path:"/api/storage_gateways"},t,r)},an=function(e,t,r,n){return De({service:e,scope:_n(e),path:`/api/storage_gateways/${t}`},r,n)},cn=function(e,t,r,n){return De({service:e,scope:_n(e),path:`/api/storage_gateways/${t}`,method:$e.DELETE},r,n)},un=function(e,t,r){return De({service:e,scope:_n(e),path:"/api/storage_gateways",method:$e.POST},t,r)},pn=function(e,t,r,n){return De({service:e,scope:_n(e),path:`/api/storage_gateways/${t}`,method:$e.PUT},r,n)},hn=function(e,t,r,n){return De({service:e,scope:_n(e),path:`/api/storage_gateways/${t}`,method:$e.PATCH},r,n)},dn=function(e,t,r){return De({service:e,scope:_n(e),path:"/api/user_credentials"},t,r)},ln=function(e,t,r,n){return De({service:e,scope:_n(e),path:`/api/user_credentials/${t}`},r,n)},fn=function(e,t,r,n){return De({service:e,scope:_n(e),path:`/api/user_credentials/${t}`,method:$e.DELETE},r,n)},gn=function(e,t,r){return De({service:e,scope:_n(e),path:"/api/user_credentials",method:$e.POST},t,r)},vn=function(e,t,r,n){return De({service:e,scope:_n(e),path:`/api/user_credentials/${t}`,method:$e.PUT},r,n)},yn=function(e,t,r,n){return De({service:e,scope:_n(e),path:`/api/user_credentials/${t}`,method:$e.PATCH},r,n)},mn=function(e,t,r){return De({service:e,scope:_n(e),path:"/api/info"},t,r)},bn={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 _n(e){return bn.HIGH_ASSURANCE.replace("<ENDPOINT_ID>",e.endpoint_id)}const wn=function(e,t){return De({service:he,scope:"https://auth.globus.org/scopes/524230d7-ea86-4a52-8312-86065a9e0417/timer",path:"/v2/timer",method:$e.POST},e,t)},An=i,Tn=function(e,t){return De({service:be,scope:we.ALL,path:"/v2/endpoints",method:$e.GET},e,t)},On=function(e,t,r){return De({service:be,scope:we.ALL,path:`/v2/endpoints/${e}`,method:$e.GET},t,r)},Sn=function(e,t,r){return De({service:be,scope:we.ALL,path:`/v2/endpoints/${e}/status`},t,r)},En=c,Ln={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 kn(e=Re()){return Ln[e]}function Pn(e,t){return new URL(e||"",`https://${kn(null==t?void 0:t.environment)}`)}const Rn={TASK:"/activity/%s/overview",COLLECTION:"/file-manager/collections/%s/overview",ENDPOINT:"/file-manager/collections/%s/overview"};function jn(e,t,r){return Pn(Rn[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:()=>l,authorization:()=>g,compute:()=>V,flows:()=>D,gcs:()=>z,groups:()=>C,logger:()=>e,search:()=>R,timer:()=>G,transfer:()=>S,webapp:()=>J});var e={};r.r(e),r.d(e,{log:()=>ee,setLogLevel:()=>Z,setLogger:()=>Q});var t={};r.r(t),r.d(t,{HOSTS:()=>oe,ID:()=>re,SCOPES:()=>ne});var o={};r.r(o),r.d(o,{HOSTS:()=>se,ID:()=>ie,SCOPES:()=>ae});var i={};r.r(i),r.d(i,{HOSTS:()=>ue,ID:()=>ce});var s={};r.r(s),r.d(s,{HOSTS:()=>he,ID:()=>pe,SCOPES:()=>de});var a={};r.r(a),r.d(a,{HOSTS:()=>fe,ID:()=>le,SCOPES:()=>ge});var c={};r.r(c),r.d(c,{HOSTS:()=>ye,ID:()=>ve,SCOPES:()=>me});var u={};r.r(u),r.d(u,{HOSTS:()=>we,ID:()=>be,RESOURCE_SERVERS:()=>Ae,SCOPES:()=>_e});var p={};r.r(p),r.d(p,{get:()=>$e,getAll:()=>Ue});var h={};r.r(h),r.d(h,{introspect:()=>Be,refresh:()=>Me,revoke:()=>Ne,validate:()=>He});var d={};r.r(d),r.d(d,{token:()=>h,userinfo:()=>Fe});var l={};r.r(l),r.d(l,{CONFIG:()=>qe,getAuthorizationEndpoint:()=>ze,getTokenEndpoint:()=>Ge,identities:()=>p,isGlobusAuthTokenResponse:()=>Je,isRefreshToken:()=>Ve,isToken:()=>We,oauth2:()=>d});var f={};r.r(f),r.d(f,{getTokenForScope:()=>Ut});var g={};r.r(g),r.d(g,{create:()=>Bt,getTokenForScope:()=>Dt,tokens:()=>f});var v={};r.r(v),r.d(v,{ls:()=>Ht,mkdir:()=>Ft,rename:()=>qt,symlink:()=>zt});var y={};r.r(y),r.d(y,{submissionId:()=>Vt,submitDelete:()=>Gt,submitTransfer:()=>Wt});var m={};r.r(m),r.d(m,{create:()=>Kt,get:()=>Jt,remove:()=>Xt,update:()=>Yt});var b={};r.r(b),r.d(b,{cancel:()=>tr,get:()=>Zt,getAll:()=>Qt,getEventList:()=>nr,getPauseInfo:()=>sr,getSkippedErrors:()=>ir,getSuccessfulTransfers:()=>or,remove:()=>rr,update:()=>er});var w={};r.r(w),r.d(w,{create:()=>cr,get:()=>ur,getAll:()=>ar,remove:()=>hr,update:()=>pr});var _={};r.r(_),r.d(_,{create:()=>lr,get:()=>fr,getAll:()=>dr,remove:()=>vr,update:()=>gr});var A={};r.r(A),r.d(A,{get:()=>yr,getAccessList:()=>br,getHostedEndpoints:()=>mr,getMonitoredEndpoints:()=>wr});var T={};r.r(T),r.d(T,{create:()=>Ar,get:()=>Tr,getAll:()=>_r,remove:()=>Or,update:()=>Er});var E={};r.r(E),r.d(E,{cancel:()=>Pr,get:()=>Lr,getAdminCancel:()=>kr,getAll:()=>Sr,getEventList:()=>Rr,getPauseInfo:()=>$r,getSkippedErrors:()=>xr,getSuccessfulTransfers:()=>jr,pause:()=>Ir,resume:()=>Cr});var O={};r.r(O),r.d(O,{endpoint:()=>A,pauseRule:()=>T,task:()=>E});var S={};r.r(S),r.d(S,{CONFIG:()=>Ur,access:()=>w,collectionBookmarks:()=>_,endpoint:()=>m,endpointManager:()=>O,endpointSearch:()=>Nt,fileOperations:()=>v,task:()=>b,taskSubmission:()=>y});var L={};r.r(L),r.d(L,{get:()=>Dr,post:()=>Br});var P={};r.r(P),r.d(P,{get:()=>Nr});var k={};r.r(k),r.d(k,{get:()=>Mr});var R={};r.r(R),r.d(R,{CONFIG:()=>Hr,entry:()=>k,query:()=>L,subject:()=>P});var j={};r.r(j),r.d(j,{get:()=>qr,getMyGroups:()=>Fr});var x={};r.r(x),r.d(x,{get:()=>zr});var I={};r.r(I),r.d(I,{act:()=>Gr});var C={};r.r(C),r.d(C,{CONFIG:()=>Wr,groups:()=>j,membership:()=>I,policies:()=>x});var $={};r.r($),r.d($,{get:()=>Jr,getAll:()=>Vr,remove:()=>Kr});var U={};r.r(U),r.d(U,{getAll:()=>Yr});var D={};r.r(D),r.d(D,{CONFIG:()=>Xr,flows:()=>$,runs:()=>U});var B={};r.r(B),r.d(B,{create:()=>tn,get:()=>Zr,getAll:()=>Qr,patch:()=>nn,remove:()=>en,resetOwnerString:()=>sn,update:()=>rn,updateOwnerString:()=>on});var N={};r.r(N),r.d(N,{get:()=>an,patch:()=>un,update:()=>cn,updateSubscriptionId:()=>pn});var M={};r.r(M),r.d(M,{create:()=>fn,get:()=>dn,getAll:()=>hn,remove:()=>ln});var H={};r.r(H),r.d(H,{create:()=>mn,get:()=>vn,getAll:()=>gn,patch:()=>wn,remove:()=>yn,update:()=>bn});var F={};r.r(F),r.d(F,{create:()=>En,get:()=>An,getAll:()=>_n,patch:()=>Sn,remove:()=>Tn,update:()=>On});var q={};r.r(q),r.d(q,{info:()=>Ln});var z={};r.r(z),r.d(z,{collections:()=>B,endpoint:()=>N,getRequiredScopes:()=>kn,roles:()=>M,storageGateways:()=>H,userCredentials:()=>F,versioning:()=>q});var G={};r.r(G),r.d(G,{CONFIG:()=>jn,create:()=>Rn});var W={};r.r(W),r.d(W,{get:()=>In,getAll:()=>xn,getStatus:()=>Cn});var V={};r.r(V),r.d(V,{CONFIG:()=>$n,endpoints:()=>W});var J={};r.r(J),r.d(J,{HOSTS:()=>Un,host:()=>Dn,url:()=>Bn,urlFor:()=>Mn});const K=["debug","info","warn","error"];let Y,X=K.indexOf("error");function Q(e){Y=e}function Z(e){X=K.indexOf(e)}function ee(e,...t){var r;Y&&(K.indexOf(e)<X||(null!==(r=Y[e])&&void 0!==r?r:Y.log)(...t))}class te extends Error{}te.prototype.name="InvalidTokenError";const re="TRANSFER",ne={ALL:"urn:globus:auth:scope:transfer.api.globus.org:all"},oe={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"},ie="FLOWS",se={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"},ae={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"},ce="TIMER",ue={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"},pe="GROUPS",he={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"},de={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"},le="SEARCH",fe={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"},ge={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"},ve="COMPUTE",ye={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"},me={ALL:"https://auth.globus.org/scopes/facd7ccc-c5f4-42aa-916b-a0e270e2c2a9/all"},be="AUTH",we={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"},_e={VIEW_IDENTITIES:"urn:globus:auth:scope:auth.globus.org:view_identities"},Ae={[be]:"auth.globus.org",[re]:"transfer.api.globus.org",[ie]:"flows.api.globus.org",[pe]:"groups.api.globus.org",[le]:"search.api.globus.org",[ce]:"524230d7-ea86-4a52-8312-86065a9e0417",[ve]:"funcx_service"};class Te extends Error{constructor(e,t){super(),this.name="EnvironmentConfigurationError",this.message=`Invalid configuration value provided for ${e} (${t}).`}}function Ee(e){return"object"==typeof e&&null!==e&&"code"in e&&"message"in e}function Oe(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 Se={PRODUCTION:"production",PREVIEW:"preview",STAGING:"staging",SANDBOX:"sandbox",INTEGRATION:"integration",TEST:"test"};function Le(){const e=Oe("GLOBUS_SDK_ENVIRONMENT",Se.PRODUCTION);if(!e||!Object.values(Se).includes(e))throw new Te("GLOBUS_SDK_ENVIRONMENT",e);return e}const Pe={[be]:be,[re]:re,[ie]:ie,[pe]:pe,[le]:le,[ce]:ce,[ve]:ve},ke={[be]:we,[re]:oe,[ie]:se,[pe]:he,[le]:fe,[ce]:ue,[ve]:ye};function Re(e,t,r,n){let o;return o="object"==typeof e?new URL(t,e.host):function(e,t="",r=Le()){const n=function(e,t=Le()){const r=function(e,t=Le()){return ke[e][t]}(e,t);return Oe(`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 je,xe=r(945),Ie=r.n(xe);function Ce(e,t,r){var n;const o=function(e){var t,r,n,o,i,s;let a=Oe("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({},null==t?void 0:t.headers),i.headers);if(e.scope&&!(null==s?void 0:s.Authorization)){const t=Dt(e.scope);t&&(s.Authorization=t)}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=Re(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)):Ie()(c,u)}!function(e){e.POST="POST",e.GET="GET",e.DELETE="DELETE",e.PUT="PUT",e.PATCH="PATCH"}(je||(je={}));const $e=function(e,t={},r){return Ce({service:be,scope:_e.VIEW_IDENTITIES,path:`/identities/${e}`},t,r)},Ue=function(e={},t){return Ce({service:be,scope:_e.VIEW_IDENTITIES,path:"/identities"},e,t)};function De(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 Be=function(e,t){if(!(null==e?void 0:e.payload))throw new Error("'payload' is required for introspect");return Ce({service:be,scope:void 0,path:"/v2/oauth2/token/introspect",method:je.POST},De(e),t)},Ne=function(e,t){if(!(null==e?void 0:e.payload))throw new Error("'payload' is required for revoke");return Ce({service:be,scope:void 0,path:"/v2/oauth2/token/revoke",method:je.POST},De(e),t)},Me=function(e,t){if(!(null==e?void 0:e.payload))throw new Error("'payload' is required for revoke");return Ce({service:be,scope:void 0,path:"/v2/oauth2/token",method:je.POST},De(e),t)},He=function(e,t){if(!(null==e?void 0:e.payload))throw new Error("'payload' is required for validate");return Ce({service:be,scope:void 0,path:"/v2/oauth2/token/validate",method:je.POST},De(e),t)},Fe=function(e,t){return Ce({service:be,scope:void 0,path:"/v2/oauth2/userinfo",method:je.GET},e,t)},qe=u;function ze(){return Re(be,"/v2/oauth2/authorize")}function Ge(){return Re(be,"/v2/oauth2/token")}function We(e){return"object"==typeof e&&null!==e&&"access_token"in e}function Ve(e){return We(e)&&null!==e&&"refresh_token"in e}function Je(e){return We(e)&&null!==e&&"resource_server"in e}var Ke,Ye=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 Xe{constructor(){Ke.set(this,{})}get(e){return void 0!==Ye(this,Ke,"f")[e]?Ye(this,Ke,"f")[e]:null}set(e,t){Ye(this,Ke,"f")[e]="string"!=typeof t?JSON.stringify(t):t}remove(e){delete Ye(this,Ke,"f")[e]}keys(){return Object.keys(Ye(this,Ke,"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,Ke,{},"f")}}Ke=new WeakMap;var Qe,Ze=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 et{constructor(){Qe.set(this,globalThis.localStorage)}get(e){return Ze(this,Qe,"f").getItem(e)}set(e,t){Ze(this,Qe,"f").setItem(e,"string"!=typeof t?JSON.stringify(t):t)}keys(){return Object.keys(Ze(this,Qe,"f"))}remove(e){Ze(this,Qe,"f").removeItem(e)}clear(){Ze(this,Qe,"f").clear()}}let tt;function rt(e="memory"){if(!tt){let t;t="localStorage"===e?et:"memory"===e?Xe:e,tt=new t}return tt}Qe=new WeakMap;const nt=rt;var ot,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)},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};class at{constructor(e){this.name=e,ot.set(this,[])}addListener(e){return it(this,ot,"f").push(e),()=>this.removeListener(e)}removeListener(e){st(this,ot,it(this,ot,"f").filter((t=>t!==e)),"f")}clearListeners(){st(this,ot,[],"f")}dispatch(e){return t=this,r=void 0,o=function*(){yield Promise.all(it(this,ot,"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}}ot=new WeakMap;var ct,ut,pt=r(368),ht=r.n(pt),dt=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 ft{constructor(e){ct.set(this,void 0),ut.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"]);dt(this,ct,new(ht())(Object.assign({},r)),"f"),dt(this,ut,Object.assign({},t),"f")}send(){window.location.replace(lt(this,ct,"f").authorizeUrl(lt(this,ut,"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,ct,"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}}ct=new WeakMap,ut=new WeakMap;var gt,vt,yt,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)};function wt(e){const t=nt().get(e)||"null";let r=null;try{const e=JSON.parse(t);We(e)&&(r=e)}catch(e){}return r}class _t{constructor(e){gt.add(this),vt.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,vt,e.manager,"f")}get auth(){return bt(this,gt,"m",mt).call(this,Pe.AUTH)}get transfer(){return bt(this,gt,"m",mt).call(this,Pe.TRANSFER)}get flows(){return bt(this,gt,"m",mt).call(this,Pe.FLOWS)}get groups(){return bt(this,gt,"m",mt).call(this,Pe.GROUPS)}get search(){return bt(this,gt,"m",mt).call(this,Pe.SEARCH)}get timer(){return bt(this,gt,"m",mt).call(this,Pe.TIMER)}get compute(){return bt(this,gt,"m",mt).call(this,Pe.COMPUTE)}gcs(e){return this.getByResourceServer(e)}getByResourceServer(e){return bt(this,gt,"m",yt).call(this,e)}getAll(){return nt().keys().reduce(((e,t)=>(t.startsWith(bt(this,vt,"f").storageKeyPrefix)&&e.push(wt(t)),e)),[]).filter(We)}}vt=new WeakMap,gt=new WeakSet,yt=function(e){return wt(`${bt(this,vt,"f").storageKeyPrefix}${e}`)},mt=function(e){var t;const r=null===(t=qe.RESOURCE_SERVERS)||void 0===t?void 0:t[e];return bt(this,gt,"m",yt).call(this,r)};var At,Tt,Et,Ot,St,Lt,Pt,kt,Rt,jt,xt=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())}))},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)},Ct=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{get authenticated(){return It(this,Et,"f")}set authenticated(e){Ct(this,Et,e,"f"),It(this,At,"m",Pt).call(this)}constructor(e){var t;if(At.add(this),Tt.set(this,void 0),Et.set(this,!1),this.events={authenticated:new at("authenticated"),revoke:new at("revoke")},this.addTokenResponse=e=>{var t;nt().set(`${this.configuration.client}:${e.resource_server}`,e),"other_tokens"in e&&(null===(t=e.other_tokens)||void 0===t||t.forEach(this.addTokenResponse)),It(this,At,"m",St).call(this)},rt("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}),It(this,At,"m",Lt).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 te("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 te(`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 te(`Invalid token specified: invalid base64 for part #${r+1} (${e.message})`)}try{return JSON.parse(o)}catch(e){throw new te(`Invalid token specified: invalid json for part #${r+1} (${e.message})`)}}(e.id_token):null}startSilentRefresh(){ee("debug",`AuthorizationManager.startSilentRefresh | useRefreshTokens=${this.configuration.useRefreshTokens}`),this.configuration.useRefreshTokens&&It(this,At,"m",Ot).call(this)}refreshToken(e){return xt(this,void 0,void 0,(function*(){ee("debug",`AuthorizationManager.refreshToken | resource_server=${e.resource_server}`);try{const t=yield(yield Me({payload:{client_id:this.configuration.client,refresh_token:e.refresh_token,grant_type:"refresh_token"}})).json();Je(t)&&this.addTokenResponse(t)}catch(t){ee("error",`AuthorizationManager.refreshToken | resource_server=${e.resource_server}`)}}))}hasGlobusAuthToken(){return null!==this.getGlobusAuthToken()}getGlobusAuthToken(){const e=nt().get(`${this.storageKeyPrefix}auth.globus.org`);return e?JSON.parse(e):null}reset(){nt().keys().forEach((e=>{e.startsWith(this.storageKeyPrefix)&&nt().remove(e)})),this.authenticated=!1}login(){ee("debug","AuthorizationManager.login"),this.reset(),It(this,At,"m",Rt).call(this).send()}handleCodeRedirect(){return xt(this,arguments,void 0,(function*(e={shouldReplace:!0}){ee("debug","AuthorizationManager.handleCodeRedirect");const t=yield It(this,At,"m",Rt).call(this).getToken({shouldReplace:null==e?void 0:e.shouldReplace});Je(t)&&(ee("debug",`AuthorizationManager.handleCodeRedirect | response=${JSON.stringify(t)}`),this.addTokenResponse(t))}))}handleErrorResponse(e,t=!0){ee("debug",`AuthorizationManager.handleErrorResponse | response=${JSON.stringify(e)} execute=${t}`);let r=()=>{};var n;return Ee(n=e)&&"authorization_parameters"in n&&"object"==typeof n.authorization_parameters&&null!==n.authorization_parameters&&(ee("debug","AuthorizationManager.handleErrorResponse | error=AuthorizationRequirementsError"),r=()=>this.handleAuthorizationRequirementsError(e)),function(e){return Ee(e)&&"ConsentRequired"===e.code&&"required_scopes"in e&&Array.isArray(e.required_scopes)}(e)&&(ee("debug","AuthorizationManager.handleErrorResponse | error=ConsentRequiredError"),r=()=>this.handleConsentRequiredError(e)),"code"in e&&"AuthenticationFailed"===e.code&&(ee("debug","AuthorizationManager.handleErrorResponse | error=AuthenticationFailed"),r=()=>this.revoke()),!0===t?r():r}handleAuthorizationRequirementsError(e){Ct(this,Tt,It(this,At,"m",Rt).call(this,{params:{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"}}),"f"),It(this,Tt,"f").send()}handleConsentRequiredError(e){Ct(this,Tt,It(this,At,"m",Rt).call(this,{requested_scopes:It(this,At,"m",kt).call(this,e.required_scopes.join(" "))}),"f"),It(this,Tt,"f").send()}revoke(){return xt(this,void 0,void 0,(function*(){ee("debug","AuthorizationManager.revoke");const e=Promise.all(this.tokens.getAll().map(It(this,At,"m",jt).bind(this)));this.reset(),yield e,yield this.events.revoke.dispatch()}))}}function Ut(e){const t=nt().get(e),r=t?JSON.parse(t):null;return r&&function(e){const t=e;return Boolean(t.token_type&&t.access_token)}(r)?`${r.token_type} ${r.access_token}`:null}Tt=new WeakMap,Et=new WeakMap,At=new WeakSet,Ot=function(){ee("debug","AuthorizationManager.#silentRefreshTokens"),this.tokens.getAll().forEach((e=>{Ve(e)&&this.refreshToken(e)}))},St=function(){ee("debug","AuthorizationManager.#checkAuthorizationState"),this.hasGlobusAuthToken()&&(this.authenticated=!0)},Lt=function(){return xt(this,void 0,void 0,(function*(){ee("debug","AuthorizationManager.bootstrapFromStorageState"),It(this,At,"m",St).call(this)}))},Pt=function(){return xt(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})}))},kt=function(e){return`${e}${this.configuration.useRefreshTokens?" offline_access":""}`},Rt=function(e){var t;const r=It(this,At,"m",kt).call(this,null!==(t=null==e?void 0:e.requested_scopes)&&void 0!==t?t:this.configuration.scopes||"");return new ft(Object.assign({client_id:this.configuration.client,authorization_endpoint:ze(),token_endpoint:Ge(),redirect_uri:this.configuration.redirect,requested_scopes:r},e))},jt=function(e){return ee("debug",`AuthorizationManager.revokeToken | resource_server=${e.resource_server}`),Ne({payload:{client_id:this.configuration.client,token:e.access_token}})};const{getTokenForScope:Dt}=f;function Bt(e){return new $t(e)}const Nt=function(e,t){const r=Object.assign(Object.assign({},e),{query:null==e?void 0:e.query});return Ce({service:re,scope:ne.ALL,path:"/v0.10/endpoint_search"},r,t)};function Mt(e){return e===je.GET?{}:{"Content-Type":"application/json"}}const Ht=function(e,t,r){return Ce({service:re,scope:ne.ALL,path:`/v0.10/operation/endpoint/${e}/ls`},t,r)},Ft=function(e,t,r){const n={payload:Object.assign({DATA_TYPE:"mkdir"},null==t?void 0:t.payload),headers:Object.assign(Object.assign({},Mt(je.POST)),null==t?void 0:t.headers)};return Ce({service:re,scope:ne.ALL,path:`/v0.10/operation/endpoint/${e}/mkdir`,method:je.POST},n,r)},qt=function(e,t,r){const n={payload:Object.assign({DATA_TYPE:"rename"},null==t?void 0:t.payload),headers:Object.assign(Object.assign({},Mt(je.POST)),null==t?void 0:t.headers)};return Ce({service:re,scope:ne.ALL,path:`/v0.10/operation/endpoint/${e}/rename`,method:je.POST},n,r)},zt=function(e,t,r){const n={payload:Object.assign({DATA_TYPE:"symlink"},null==t?void 0:t.payload),headers:Object.assign(Object.assign({},Mt(je.POST)),null==t?void 0:t.headers)};return Ce({service:re,scope:ne.ALL,path:`/v0.10/operation/endpoint/${e}/symlink`,method:je.POST},n,r)},Gt=function(e,t){const r={payload:Object.assign({DATA_TYPE:"delete"},null==e?void 0:e.payload),headers:Object.assign(Object.assign({},Mt(je.POST)),null==e?void 0:e.headers)};return Ce({service:re,scope:ne.ALL,path:"/v0.10/delete",method:je.POST},r,t)},Wt=function(e,t){const r={payload:Object.assign({DATA_TYPE:"transfer"},null==e?void 0:e.payload),headers:Object.assign(Object.assign({},Mt(je.POST)),null==e?void 0:e.headers)};return Ce({service:re,scope:ne.ALL,path:"/v0.10/transfer",method:je.POST},r,t)},Vt=function(e,t){return Ce({service:re,scope:ne.ALL,path:"/v0.10/submission_id"},e,t)},Jt=function(e,t,r){return Ce({service:re,scope:ne.ALL,path:`/v0.10/endpoint/${e}`},t,r)},Kt=function(e,t){return(null==e?void 0:e.payload)&&Object.assign(e.payload,{DATA_TYPE:"shared_endpoint"}),Ce({service:re,scope:ne.ALL,path:"/v0.10/shared_endpoint",method:je.POST},e,t)},Yt=function(e,t,r){return(null==t?void 0:t.payload)&&Object.assign(t.payload,{DATA_TYPE:"endpoint"}),Ce({service:re,scope:ne.ALL,path:`/v0.10/endpoint/${e}`,method:je.PUT},t,r)},Xt=function(e,t,r){return Ce({service:re,scope:ne.ALL,path:`/v0.10/endpoint/${e}`,method:je.DELETE},t,r)},Qt=function(e={},t){return Ce({service:re,scope:ne.ALL,path:"/v0.10/task_list"},e,t)},Zt=function(e,t,r){return Ce({service:re,scope:ne.ALL,path:`/v0.10/task/${e}`},t,r)},er=function(e,t,r){return Ce({service:re,scope:ne.ALL,path:`/v0.10/task/${e}`,method:je.PUT},t,r)},tr=function(e,t,r){return Ce({service:re,scope:ne.ALL,path:`/v0.10/task/${e}/cancel`,method:je.POST},t,r)},rr=function(e,t,r){return Ce({service:re,scope:ne.ALL,path:`/v0.10/task/${e}/remove`,method:je.POST},t,r)},nr=function(e,t,r){return Ce({service:re,scope:ne.ALL,path:`/v0.10/task/${e}/event_list`},t,r)},or=function(e,t,r){return Ce({service:re,scope:ne.ALL,path:`/v0.10/task/${e}/successful_transfers`},t,r)},ir=function(e,t,r){return Ce({service:re,scope:ne.ALL,path:`/v0.10/task/${e}/skipped_errors`},t,r)},sr=function(e,t,r){return Ce({service:re,scope:ne.ALL,path:`/v0.10/task/${e}/pause_info`},t,r)},ar=function(e,t,r){return Ce({service:re,scope:ne.ALL,path:`/v0.10/endpoint/${e}/access_list`},t,r)},cr=function(e,t,r){return Ce({service:re,scope:ne.ALL,path:`/v0.10/endpoint/${e}/access`,method:je.POST},t,r)},ur=function({endpoint_xid:e,id:t},r,n){return Ce({service:re,scope:ne.ALL,path:`/v0.10/endpoint/${e}/access/${t}`},r,n)},pr=function({endpoint_xid:e,id:t},r,n){return Ce({service:re,scope:ne.ALL,path:`/v0.10/endpoint/${e}/access/${t}`,method:je.PUT},r,n)},hr=function({endpoint_xid:e,id:t},r,n){return Ce({service:re,scope:ne.ALL,path:`/v0.10/endpoint/${e}/access/${t}`,method:je.DELETE},r,n)},dr=function(e,t){return Ce({service:re,scope:ne.ALL,path:"/v0.10/bookmark_list"},e,t)},lr=function(e,t){return Ce({service:re,scope:ne.ALL,path:"/v0.10/bookmark",method:je.POST},e,t)},fr=function(e,t,r){return Ce({service:re,scope:ne.ALL,path:`/v0.10/bookmark/${e}`},t,r)},gr=function(e,t,r){return Ce({service:re,scope:ne.ALL,path:`/v0.10/bookmark/${e}`,method:je.PUT},t,r)},vr=function(e,t,r){return Ce({service:re,scope:ne.ALL,path:`/v0.10/bookmark/${e}`,method:je.DELETE},t,r)},yr=function(e,t,r){return Ce({service:re,scope:ne.ALL,path:`/v0.10/endpoint_manager/endpoint/${e}`},t,r)},mr=function(e,t,r){return Ce({service:re,scope:ne.ALL,path:`/v0.10/endpoint_manager/endpoint/${e}/hosted_endpoint_list`},t,r)},br=function(e,t,r){return Ce({service:re,scope:ne.ALL,path:`/v0.10/endpoint_manager/endpoint/${e}/access_list`},t,r)},wr=function(e={},t){return Ce({service:re,scope:ne.ALL,path:"/v0.10/endpoint_manager/monitored_endpoints"},e,t)},_r=function(e,t){return Ce({service:re,scope:ne.ALL,path:"/v0.10/endpoint_manager/pause_rule_list"},e,t)},Ar=function(e,t){return Ce({service:re,scope:ne.ALL,path:"/v0.10/endpoint_manager/pause_rule",method:je.POST},e,t)},Tr=function(e,t,r){return Ce({service:re,scope:ne.ALL,path:`/v0.10/endpoint_manager/pause_rule/${e}`},t,r)},Er=function(e,t,r){return Ce({service:re,scope:ne.ALL,path:`/v0.10/endpoint_manager/pause_rule/${e}`,method:je.PUT},t,r)},Or=function(e,t,r){return Ce({service:re,scope:ne.ALL,path:`/v0.10/endpoint_manager/pause_rule/${e}`,method:je.DELETE},t,r)},Sr=function(e={},t){return Ce({service:re,scope:ne.ALL,path:"/v0.10/task_list"},e,t)},Lr=function(e,t,r){return Ce({service:re,scope:ne.ALL,path:`/v0.10/endpoint_manager/task/${e}`},t,r)},Pr=function(e,t){return Ce({service:re,scope:ne.ALL,path:"/v0.10/endpoint_manager/admin_cancel",method:je.POST},e,t)},kr=function(e,t,r){return Ce({service:re,scope:ne.ALL,path:`/v0.10/endpoint_manager/admin_cancel/${e}`,method:je.POST},t,r)},Rr=function(e,t,r){return Ce({service:re,scope:ne.ALL,path:`/v0.10/endpoint_manager/task/${e}/event_list`},t,r)},jr=function(e,t,r){return Ce({service:re,scope:ne.ALL,path:`/v0.10/endpoint_manager/task/${e}/successful_transfers`},t,r)},xr=function(e,t,r){return Ce({service:re,scope:ne.ALL,path:`/v0.10/endpoint_manager/task/${e}/skipped_errors`},t,r)},Ir=function(e,t){return Ce({service:re,scope:ne.ALL,path:"/v0.10/endpoint_manager/admin_pause",method:je.POST},e,t)},Cr=function(e,t){return Ce({service:re,scope:ne.ALL,path:"/v0.10/endpoint_manager/admin_resume",method:je.POST},e,t)},$r=function(e,t,r){return Ce({service:re,scope:ne.ALL,path:`/v0.10/endpoint_manager/task/${e}/pause_info`},t,r)},Ur=t,Dr=function(e,t,r){return Ce({service:le,scope:ge.SEARCH,path:`/v1/index/${e}/search`},t,r)},Br=function(e,t,r){return Ce({service:le,scope:ge.SEARCH,path:`/v1/index/${e}/search`,method:je.POST},t,r)},Nr=function(e,t,r){return Ce({service:le,scope:ge.SEARCH,path:`/v1/index/${e}/subject`},t,r)},Mr=function(e,t,r){return Ce({service:le,scope:ge.SEARCH,path:`/v1/index/${e}/entry`},t,r)},Hr=a,Fr=function(e,t){return Ce({scope:de.ALL,path:"/v2/groups/my_groups",service:pe},e,t)},qr=function(e,t,r){return Ce({service:pe,scope:de.ALL,path:`/v2/groups/${e}`},t,r)},zr=function(e,t,r){return Ce({scope:de.ALL,path:`/v2/groups/${e}/policies`,service:pe},t,r)},Gr=function(e,t,r){if(!(null==t?void 0:t.payload))throw new Error("payload is required.");return Ce({service:pe,scope:de.ALL,path:`/v2/groups/${e}`,method:je.POST},t,r)},Wr=s,Vr=function(e,t){return Ce({service:ie,scope:ae.VIEW_FLOWS,path:"/flows"},e,t)},Jr=function(e,t,r){return Ce({service:ie,scope:ae.VIEW_FLOWS,path:`/flows/${e}`},t,r)},Kr=function(e,t,r){return Ce({scope:ae.MANAGE_FLOWS,service:ie,path:`/flows/${e}`,method:je.DELETE},t,r)},Yr=function(e={},t){return Ce({service:ie,scope:ae.RUN_MANAGE,path:"/runs"},e,t)},Xr=o,Qr=function(e,t,r){return Ce({service:e,scope:kn(e),path:"/api/collections"},t,r)},Zr=function(e,t,r,n){return Ce({service:e,scope:kn(e),path:`/api/collections/${t}`},r,n)},en=function(e,t,r,n){return Ce({service:e,scope:kn(e),path:`/api/collections/${t}`,method:je.DELETE},r,n)},tn=function(e,t,r){return Ce({service:e,scope:kn(e),path:"/api/collections",method:je.POST},t,r)},rn=function(e,t,r,n){return Ce({service:e,scope:kn(e),path:`/api/collections/${t}`,method:je.PUT},r,n)},nn=function(e,t,r,n){return Ce({service:e,scope:kn(e),path:`/api/collections/${t}`,method:je.PATCH},r,n)},on=function(e,t,r,n){return Ce({service:e,scope:kn(e),path:`/api/collections/${t}/owner_string`,method:je.PUT},r,n)},sn=function(e,t,r,n){return Ce({service:e,scope:kn(e),path:`/api/collections/${t}/owner_string`,method:je.DELETE},r,n)},an=function(e,t,r){return Ce({service:e,scope:kn(e),path:"/api/endpoint"},t,r)},cn=function(e,t,r){return Ce({service:e,scope:kn(e),path:"/api/endpoint",method:je.PUT},t,r)},un=function(e,t,r){return Ce({service:e,scope:kn(e),path:"/api/endpoint",method:je.PATCH},t,r)},pn=function(e,t,r){return Ce({service:e,scope:kn(e),path:"/api/endpoint/subscription_id",method:je.PUT},t,r)},hn=function(e,t,r){return Ce({service:e,scope:kn(e),path:"/api/roles"},t,r)},dn=function(e,t,r,n){return Ce({service:e,scope:kn(e),path:`/api/roles/${t}`},r,n)},ln=function(e,t,r,n){return Ce({service:e,scope:kn(e),path:`/api/roles/${t}`,method:je.DELETE},r,n)},fn=function(e,t,r){return Ce({service:e,scope:kn(e),path:"/api/roles",method:je.POST},t,r)},gn=function(e,t,r){return Ce({service:e,scope:kn(e),path:"/api/storage_gateways"},t,r)},vn=function(e,t,r,n){return Ce({service:e,scope:kn(e),path:`/api/storage_gateways/${t}`},r,n)},yn=function(e,t,r,n){return Ce({service:e,scope:kn(e),path:`/api/storage_gateways/${t}`,method:je.DELETE},r,n)},mn=function(e,t,r){return Ce({service:e,scope:kn(e),path:"/api/storage_gateways",method:je.POST},t,r)},bn=function(e,t,r,n){return Ce({service:e,scope:kn(e),path:`/api/storage_gateways/${t}`,method:je.PUT},r,n)},wn=function(e,t,r,n){return Ce({service:e,scope:kn(e),path:`/api/storage_gateways/${t}`,method:je.PATCH},r,n)},_n=function(e,t,r){return Ce({service:e,scope:kn(e),path:"/api/user_credentials"},t,r)},An=function(e,t,r,n){return Ce({service:e,scope:kn(e),path:`/api/user_credentials/${t}`},r,n)},Tn=function(e,t,r,n){return Ce({service:e,scope:kn(e),path:`/api/user_credentials/${t}`,method:je.DELETE},r,n)},En=function(e,t,r){return Ce({service:e,scope:kn(e),path:"/api/user_credentials",method:je.POST},t,r)},On=function(e,t,r,n){return Ce({service:e,scope:kn(e),path:`/api/user_credentials/${t}`,method:je.PUT},r,n)},Sn=function(e,t,r,n){return Ce({service:e,scope:kn(e),path:`/api/user_credentials/${t}`,method:je.PATCH},r,n)},Ln=function(e,t,r){return Ce({service:e,scope:kn(e),path:"/api/info"},t,r)},Pn={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 kn(e){return Pn.HIGH_ASSURANCE.replace("<ENDPOINT_ID>",e.endpoint_id)}const Rn=function(e,t){return Ce({service:ce,scope:"https://auth.globus.org/scopes/524230d7-ea86-4a52-8312-86065a9e0417/timer",path:"/v2/timer",method:je.POST},e,t)},jn=i,xn=function(e,t){return Ce({service:ve,scope:me.ALL,path:"/v2/endpoints",method:je.GET},e,t)},In=function(e,t,r){return Ce({service:ve,scope:me.ALL,path:`/v2/endpoints/${e}`,method:je.GET},t,r)},Cn=function(e,t,r){return Ce({service:ve,scope:me.ALL,path:`/v2/endpoints/${e}/status`},t,r)},$n=c,Un={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 Dn(e=Le()){return Un[e]}function Bn(e,t){return new URL(e||"",`https://${Dn(null==t?void 0:t.environment)}`)}const Nn={TASK:"/activity/%s/overview",COLLECTION:"/file-manager/collections/%s/overview",ENDPOINT:"/file-manager/collections/%s/overview"};function Mn(e,t,r){return Bn(Nn[e].replace(/%s/g,(null==t?void 0:t.join("/"))||""),r)}})(),globus=n})();