@globus/sdk 3.0.0-alpha.8 → 3.0.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 (212) hide show
  1. package/cjs/index.d.ts +1 -0
  2. package/cjs/index.d.ts.map +1 -1
  3. package/cjs/index.js +2 -1
  4. package/cjs/index.js.map +1 -1
  5. package/cjs/lib/core/authorization/AuthorizationManager.d.ts +66 -12
  6. package/cjs/lib/core/authorization/AuthorizationManager.d.ts.map +1 -1
  7. package/cjs/lib/core/authorization/AuthorizationManager.js +133 -30
  8. package/cjs/lib/core/authorization/AuthorizationManager.js.map +1 -1
  9. package/cjs/lib/core/authorization/Event.d.ts +6 -1
  10. package/cjs/lib/core/authorization/Event.d.ts.map +1 -1
  11. package/cjs/lib/core/authorization/Event.js +3 -0
  12. package/cjs/lib/core/authorization/Event.js.map +1 -1
  13. package/cjs/lib/core/authorization/RedirectTransport.d.ts +12 -1
  14. package/cjs/lib/core/authorization/RedirectTransport.d.ts.map +1 -1
  15. package/cjs/lib/core/authorization/RedirectTransport.js +23 -5
  16. package/cjs/lib/core/authorization/RedirectTransport.js.map +1 -1
  17. package/cjs/lib/core/authorization/TokenLookup.d.ts +6 -1
  18. package/cjs/lib/core/authorization/TokenLookup.d.ts.map +1 -1
  19. package/cjs/lib/core/authorization/TokenLookup.js +40 -5
  20. package/cjs/lib/core/authorization/TokenLookup.js.map +1 -1
  21. package/cjs/lib/core/authorization/tokens.d.ts +1 -0
  22. package/cjs/lib/core/authorization/tokens.d.ts.map +1 -1
  23. package/cjs/lib/core/authorization/tokens.js +3 -1
  24. package/cjs/lib/core/authorization/tokens.js.map +1 -1
  25. package/cjs/lib/core/errors.d.ts.map +1 -1
  26. package/cjs/lib/core/errors.js +8 -2
  27. package/cjs/lib/core/errors.js.map +1 -1
  28. package/cjs/lib/core/global.d.ts +8 -6
  29. package/cjs/lib/core/global.d.ts.map +1 -1
  30. package/cjs/lib/core/global.js +3 -0
  31. package/cjs/lib/core/global.js.map +1 -1
  32. package/cjs/lib/core/logger.d.ts +2 -2
  33. package/cjs/lib/core/logger.d.ts.map +1 -1
  34. package/cjs/lib/core/logger.js +3 -3
  35. package/cjs/lib/core/logger.js.map +1 -1
  36. package/cjs/lib/core/storage/local-storage.js +1 -1
  37. package/cjs/lib/core/storage/local-storage.js.map +1 -1
  38. package/cjs/lib/core/storage/memory.d.ts +1 -1
  39. package/cjs/lib/core/storage/memory.d.ts.map +1 -1
  40. package/cjs/lib/core/storage/memory.js +2 -2
  41. package/cjs/lib/core/storage/memory.js.map +1 -1
  42. package/cjs/lib/services/auth/config.d.ts +5 -1
  43. package/cjs/lib/services/auth/config.d.ts.map +1 -1
  44. package/cjs/lib/services/auth/config.js +8 -0
  45. package/cjs/lib/services/auth/config.js.map +1 -1
  46. package/cjs/lib/services/auth/index.d.ts +3 -16
  47. package/cjs/lib/services/auth/index.d.ts.map +1 -1
  48. package/cjs/lib/services/auth/index.js +13 -2
  49. package/cjs/lib/services/auth/index.js.map +1 -1
  50. package/cjs/lib/services/auth/service/oauth2/index.d.ts +3 -0
  51. package/cjs/lib/services/auth/service/oauth2/index.d.ts.map +1 -1
  52. package/cjs/lib/services/auth/service/oauth2/index.js +11 -1
  53. package/cjs/lib/services/auth/service/oauth2/index.js.map +1 -1
  54. package/cjs/lib/services/auth/service/oauth2/token.d.ts +19 -1
  55. package/cjs/lib/services/auth/service/oauth2/token.d.ts.map +1 -1
  56. package/cjs/lib/services/auth/service/oauth2/token.js +16 -1
  57. package/cjs/lib/services/auth/service/oauth2/token.js.map +1 -1
  58. package/cjs/lib/services/auth/types.d.ts +40 -12
  59. package/cjs/lib/services/auth/types.d.ts.map +1 -1
  60. package/cjs/lib/services/compute/config.d.ts +7 -0
  61. package/cjs/lib/services/compute/config.d.ts.map +1 -0
  62. package/cjs/lib/services/compute/config.js +16 -0
  63. package/cjs/lib/services/compute/config.js.map +1 -0
  64. package/cjs/lib/services/compute/index.d.ts +14 -0
  65. package/cjs/lib/services/compute/index.d.ts.map +1 -0
  66. package/cjs/lib/services/compute/index.js +18 -0
  67. package/cjs/lib/services/compute/index.js.map +1 -0
  68. package/cjs/lib/services/compute/service/endpoints.d.ts +24 -0
  69. package/cjs/lib/services/compute/service/endpoints.d.ts.map +1 -0
  70. package/cjs/lib/services/compute/service/endpoints.js +29 -0
  71. package/cjs/lib/services/compute/service/endpoints.js.map +1 -0
  72. package/cjs/lib/services/flows/config.d.ts +1 -1
  73. package/cjs/lib/services/flows/config.d.ts.map +1 -1
  74. package/cjs/lib/services/flows/config.js.map +1 -1
  75. package/cjs/lib/services/globus-connect-server/client.d.ts +443 -88
  76. package/cjs/lib/services/globus-connect-server/client.d.ts.map +1 -1
  77. package/cjs/lib/services/groups/config.d.ts +1 -1
  78. package/cjs/lib/services/groups/config.d.ts.map +1 -1
  79. package/cjs/lib/services/groups/config.js.map +1 -1
  80. package/cjs/lib/services/search/config.d.ts +1 -1
  81. package/cjs/lib/services/search/config.d.ts.map +1 -1
  82. package/cjs/lib/services/search/config.js.map +1 -1
  83. package/cjs/lib/services/timer/config.d.ts +1 -1
  84. package/cjs/lib/services/timer/config.d.ts.map +1 -1
  85. package/cjs/lib/services/timer/config.js.map +1 -1
  86. package/cjs/lib/services/transfer/config.d.ts +1 -1
  87. package/cjs/lib/services/transfer/config.d.ts.map +1 -1
  88. package/cjs/lib/services/transfer/config.js.map +1 -1
  89. package/cjs/lib/services/transfer/index.d.ts +1 -0
  90. package/cjs/lib/services/transfer/index.d.ts.map +1 -1
  91. package/cjs/lib/services/transfer/index.js +2 -1
  92. package/cjs/lib/services/transfer/index.js.map +1 -1
  93. package/cjs/lib/services/transfer/service/collection-bookmarks.d.ts +64 -0
  94. package/cjs/lib/services/transfer/service/collection-bookmarks.d.ts.map +1 -0
  95. package/cjs/lib/services/transfer/service/collection-bookmarks.js +59 -0
  96. package/cjs/lib/services/transfer/service/collection-bookmarks.js.map +1 -0
  97. package/cjs/lib/services/transfer/service/endpoint.d.ts +127 -13
  98. package/cjs/lib/services/transfer/service/endpoint.d.ts.map +1 -1
  99. package/cjs/lib/services/transfer/service/endpoint.js +40 -1
  100. package/cjs/lib/services/transfer/service/endpoint.js.map +1 -1
  101. package/cjs/lib/services/transfer/service/task.d.ts +1 -1
  102. package/cjs/lib/services/transfer/types.d.ts +215 -0
  103. package/cjs/lib/services/transfer/types.d.ts.map +1 -1
  104. package/cjs/lib/services/types.d.ts +4 -0
  105. package/cjs/lib/services/types.d.ts.map +1 -1
  106. package/esm/index.d.ts +1 -0
  107. package/esm/index.d.ts.map +1 -1
  108. package/esm/index.js +1 -0
  109. package/esm/index.js.map +1 -1
  110. package/esm/lib/core/authorization/AuthorizationManager.d.ts +66 -12
  111. package/esm/lib/core/authorization/AuthorizationManager.d.ts.map +1 -1
  112. package/esm/lib/core/authorization/AuthorizationManager.js +134 -31
  113. package/esm/lib/core/authorization/AuthorizationManager.js.map +1 -1
  114. package/esm/lib/core/authorization/Event.d.ts +6 -1
  115. package/esm/lib/core/authorization/Event.d.ts.map +1 -1
  116. package/esm/lib/core/authorization/Event.js +3 -0
  117. package/esm/lib/core/authorization/Event.js.map +1 -1
  118. package/esm/lib/core/authorization/RedirectTransport.d.ts +12 -1
  119. package/esm/lib/core/authorization/RedirectTransport.d.ts.map +1 -1
  120. package/esm/lib/core/authorization/RedirectTransport.js +23 -5
  121. package/esm/lib/core/authorization/RedirectTransport.js.map +1 -1
  122. package/esm/lib/core/authorization/TokenLookup.d.ts +6 -1
  123. package/esm/lib/core/authorization/TokenLookup.d.ts.map +1 -1
  124. package/esm/lib/core/authorization/TokenLookup.js +41 -6
  125. package/esm/lib/core/authorization/TokenLookup.js.map +1 -1
  126. package/esm/lib/core/authorization/tokens.d.ts +1 -0
  127. package/esm/lib/core/authorization/tokens.d.ts.map +1 -1
  128. package/esm/lib/core/authorization/tokens.js +3 -1
  129. package/esm/lib/core/authorization/tokens.js.map +1 -1
  130. package/esm/lib/core/errors.d.ts.map +1 -1
  131. package/esm/lib/core/errors.js +8 -2
  132. package/esm/lib/core/errors.js.map +1 -1
  133. package/esm/lib/core/global.d.ts +8 -6
  134. package/esm/lib/core/global.d.ts.map +1 -1
  135. package/esm/lib/core/global.js +3 -0
  136. package/esm/lib/core/global.js.map +1 -1
  137. package/esm/lib/core/logger.d.ts +2 -2
  138. package/esm/lib/core/logger.d.ts.map +1 -1
  139. package/esm/lib/core/logger.js +3 -3
  140. package/esm/lib/core/logger.js.map +1 -1
  141. package/esm/lib/core/storage/local-storage.js +1 -1
  142. package/esm/lib/core/storage/local-storage.js.map +1 -1
  143. package/esm/lib/core/storage/memory.d.ts +1 -1
  144. package/esm/lib/core/storage/memory.d.ts.map +1 -1
  145. package/esm/lib/core/storage/memory.js +2 -2
  146. package/esm/lib/core/storage/memory.js.map +1 -1
  147. package/esm/lib/services/auth/config.d.ts +5 -1
  148. package/esm/lib/services/auth/config.d.ts.map +1 -1
  149. package/esm/lib/services/auth/config.js +8 -0
  150. package/esm/lib/services/auth/config.js.map +1 -1
  151. package/esm/lib/services/auth/index.d.ts +3 -16
  152. package/esm/lib/services/auth/index.d.ts.map +1 -1
  153. package/esm/lib/services/auth/index.js +10 -1
  154. package/esm/lib/services/auth/index.js.map +1 -1
  155. package/esm/lib/services/auth/service/oauth2/index.d.ts +3 -0
  156. package/esm/lib/services/auth/service/oauth2/index.d.ts.map +1 -1
  157. package/esm/lib/services/auth/service/oauth2/index.js +10 -0
  158. package/esm/lib/services/auth/service/oauth2/index.js.map +1 -1
  159. package/esm/lib/services/auth/service/oauth2/token.d.ts +19 -1
  160. package/esm/lib/services/auth/service/oauth2/token.d.ts.map +1 -1
  161. package/esm/lib/services/auth/service/oauth2/token.js +15 -0
  162. package/esm/lib/services/auth/service/oauth2/token.js.map +1 -1
  163. package/esm/lib/services/auth/types.d.ts +40 -12
  164. package/esm/lib/services/auth/types.d.ts.map +1 -1
  165. package/esm/lib/services/compute/config.d.ts +7 -0
  166. package/esm/lib/services/compute/config.d.ts.map +1 -0
  167. package/esm/lib/services/compute/config.js +13 -0
  168. package/esm/lib/services/compute/config.js.map +1 -0
  169. package/esm/lib/services/compute/index.d.ts +14 -0
  170. package/esm/lib/services/compute/index.d.ts.map +1 -0
  171. package/esm/lib/services/compute/index.js +14 -0
  172. package/esm/lib/services/compute/index.js.map +1 -0
  173. package/esm/lib/services/compute/service/endpoints.d.ts +24 -0
  174. package/esm/lib/services/compute/service/endpoints.d.ts.map +1 -0
  175. package/esm/lib/services/compute/service/endpoints.js +26 -0
  176. package/esm/lib/services/compute/service/endpoints.js.map +1 -0
  177. package/esm/lib/services/flows/config.d.ts +1 -1
  178. package/esm/lib/services/flows/config.d.ts.map +1 -1
  179. package/esm/lib/services/flows/config.js.map +1 -1
  180. package/esm/lib/services/globus-connect-server/client.d.ts +443 -88
  181. package/esm/lib/services/globus-connect-server/client.d.ts.map +1 -1
  182. package/esm/lib/services/groups/config.d.ts +1 -1
  183. package/esm/lib/services/groups/config.d.ts.map +1 -1
  184. package/esm/lib/services/groups/config.js.map +1 -1
  185. package/esm/lib/services/search/config.d.ts +1 -1
  186. package/esm/lib/services/search/config.d.ts.map +1 -1
  187. package/esm/lib/services/search/config.js.map +1 -1
  188. package/esm/lib/services/timer/config.d.ts +1 -1
  189. package/esm/lib/services/timer/config.d.ts.map +1 -1
  190. package/esm/lib/services/timer/config.js.map +1 -1
  191. package/esm/lib/services/transfer/config.d.ts +1 -1
  192. package/esm/lib/services/transfer/config.d.ts.map +1 -1
  193. package/esm/lib/services/transfer/config.js.map +1 -1
  194. package/esm/lib/services/transfer/index.d.ts +1 -0
  195. package/esm/lib/services/transfer/index.d.ts.map +1 -1
  196. package/esm/lib/services/transfer/index.js +1 -0
  197. package/esm/lib/services/transfer/index.js.map +1 -1
  198. package/esm/lib/services/transfer/service/collection-bookmarks.d.ts +64 -0
  199. package/esm/lib/services/transfer/service/collection-bookmarks.d.ts.map +1 -0
  200. package/esm/lib/services/transfer/service/collection-bookmarks.js +56 -0
  201. package/esm/lib/services/transfer/service/collection-bookmarks.js.map +1 -0
  202. package/esm/lib/services/transfer/service/endpoint.d.ts +127 -13
  203. package/esm/lib/services/transfer/service/endpoint.d.ts.map +1 -1
  204. package/esm/lib/services/transfer/service/endpoint.js +39 -0
  205. package/esm/lib/services/transfer/service/endpoint.js.map +1 -1
  206. package/esm/lib/services/transfer/service/task.d.ts +1 -1
  207. package/esm/lib/services/transfer/types.d.ts +215 -0
  208. package/esm/lib/services/transfer/types.d.ts.map +1 -1
  209. package/esm/lib/services/types.d.ts +4 -0
  210. package/esm/lib/services/types.d.ts.map +1 -1
  211. package/package.json +4 -3
  212. package/umd/globus.production.js +1 -1
@@ -1,3 +1,217 @@
1
+ import { ExtractKeys, Segment } from '../types';
2
+ type EntityType = 'GCSv5_endpoint' | 'GCSv5_mapped_collection' | 'GCSv5_guest_collection' | 'GCP_mapped_collection' | 'GCP_guest_collection';
3
+ /**
4
+ * @see https://docs.globus.org/api/transfer/gcp_management/#update_collection_by_id
5
+ */
6
+ type GuestCollectionUpdatableField = ExtractKeys<Components['schemas']['Endpoint'], 'acl_max_expiration_period_mins' | 'display_name' | 'organization' | 'department' | 'keywords' | 'description' | 'contact_email' | 'contact_info' | 'info_link' | 'owner_string' | 'default_directory' | 'force_encryption' | 'disable_verify'>;
7
+ /**
8
+ * @see https://docs.globus.org/api/transfer/gcp_management/#update_collection_by_id
9
+ */
10
+ type MappedCollectionUpdatableField = ExtractKeys<Components['schemas']['Endpoint'], GuestCollectionUpdatableField | 'authentication_timeout_mins' | 'subscription_id' | 'public' | 'location' | 'network_use' | 'max_concurrency' | 'preferred_concurrency' | 'max_parallelism' | 'preferred_parallelism' | 'user_message' | 'user_message_link'>;
11
+ /**
12
+ * @see https://docs.globus.org/api/transfer/endpoint_roles/
13
+ */
14
+ type EndpointRole = 'administrator' | 'access_manager' | 'activity_manager' | 'activity_monitor';
15
+ export interface Components {
16
+ schemas: {
17
+ Endpoint: {
18
+ DATA_TYPE: 'endpoint';
19
+ DATA?: Components['schemas']['Server'][];
20
+ id: string;
21
+ display_name: string;
22
+ organization: string | null;
23
+ department: string | null;
24
+ keywords: string | null;
25
+ /**
26
+ * @deprecated
27
+ */
28
+ name: string | null;
29
+ /**
30
+ * @deprecated use `id` instead in API requests, and use `display_name`
31
+ * to display to users.
32
+ */
33
+ canonical_name: string;
34
+ /**
35
+ * @deprecated use `owner_id` or `owner_string` instead.
36
+ */
37
+ username: string;
38
+ owner_id: string;
39
+ owner_string: string;
40
+ description: string | null;
41
+ contact_email: string | null;
42
+ contact_info: string | null;
43
+ info_link: string | null;
44
+ user_message: string | null;
45
+ user_message_link: string | null;
46
+ public: boolean;
47
+ subscription_id: string | null;
48
+ french_english_bilingual: boolean;
49
+ default_directory: string | null;
50
+ force_encryption: boolean;
51
+ disable_verify: boolean;
52
+ disable_anonymous_writes: boolean;
53
+ entity_type: EntityType;
54
+ force_verify: boolean;
55
+ mfa_required: boolean;
56
+ /**
57
+ * @deprecated GCSv4-specific property - no longer supported
58
+ */
59
+ expire_time: null;
60
+ /**
61
+ * @deprecated GCSv4-specific property - no longer supported
62
+ */
63
+ expires_in: null;
64
+ /**
65
+ * @deprecated GCSv4-specific property - no longer supported
66
+ */
67
+ activated: boolean;
68
+ /**
69
+ * @deprecated GCSv4-specific property - no longer supported
70
+ */
71
+ myproxy_server: string | null;
72
+ /**
73
+ * @deprecated GCSv4-specific property - no longer supported
74
+ */
75
+ myproxy_dn: string | null;
76
+ /**
77
+ * @deprecated GCSv4-specific property - no longer supported
78
+ */
79
+ oauth_server: string | null;
80
+ requester_pays: boolean;
81
+ /**
82
+ * @deprecated - use entity_type intead
83
+ */
84
+ is_globus_connect: boolean;
85
+ gcs_version: string | null;
86
+ globus_connect_setup_key: string | null;
87
+ /**
88
+ * @deprecated use `host_endpoint_id` and `host_endpoint_display_name`
89
+ */
90
+ host_endpoint: string | null;
91
+ /**
92
+ * UUID of standard endpoint hosting the shared endpoint; `null` for non-shared endpoints.
93
+ */
94
+ host_endpoint_id: string | null;
95
+ host_endpoint_display_name: string | null;
96
+ host_path: string | null;
97
+ /**
98
+ * @deprecated
99
+ */
100
+ s3_url: null;
101
+ /**
102
+ * @deprecated
103
+ */
104
+ s3_owner_activated: false;
105
+ /**
106
+ * @deprecated GCSv4-specific property - use entity_type instead
107
+ */
108
+ acl_available: boolean;
109
+ /**
110
+ * @deprecated use `my_effective_roles` instead.
111
+ */
112
+ acl_editable: boolean;
113
+ in_use: boolean;
114
+ my_effective_roles: Array<EndpointRole | 'restricted_administrator'>;
115
+ gcp_connected: boolean | null;
116
+ gcp_paused: boolean | null;
117
+ network_use: 'normal' | 'minimal' | 'aggressive' | 'custom' | null;
118
+ location: string | null;
119
+ max_concurrency: number | null;
120
+ preferred_concurrency: number | null;
121
+ max_parallelism: number | null;
122
+ preferred_parallelism: number | null;
123
+ /**
124
+ * @deprecated GCSv4-specific property - no longer supported
125
+ */
126
+ local_user_info_available: boolean | null;
127
+ https_server: string | null;
128
+ gcs_manager_url: `${string}://${string}` | null;
129
+ tlsftp_server: `tlsftp://${string}:${string}` | null;
130
+ high_assurance: boolean;
131
+ acl_max_expiration_period_mins: number | null;
132
+ authentication_timeout_mins: number | null;
133
+ /**
134
+ * @deprecated use `high_assurance` and `authentication_timeout_mins` instead.
135
+ */
136
+ authentication_assurance_timeout: number;
137
+ non_functional: boolean;
138
+ non_functional_endpoint_id: string | null;
139
+ non_functional_endpoint_display_name: string | null;
140
+ mapped_collection_id: string | null;
141
+ mapped_collection_display_name: string | null;
142
+ last_accessed_time: string | null;
143
+ };
144
+ Server: {
145
+ DATA_TYPE: 'server';
146
+ id: number;
147
+ hostname: null | string;
148
+ port: null | number;
149
+ scheme: null | 'ftp' | 'gsiftp';
150
+ subject: null | string;
151
+ incoming_data_port_start: null | number;
152
+ incoming_data_port_end: null | number;
153
+ outgoing_data_port_start: null | number;
154
+ outgoing_data_port_end: null | number;
155
+ /**
156
+ * @deprecated
157
+ */
158
+ uri: string;
159
+ /**
160
+ * @deprecated
161
+ */
162
+ is_connected: boolean;
163
+ /**
164
+ * @deprecated
165
+ */
166
+ is_paused: boolean;
167
+ };
168
+ };
169
+ }
170
+ export interface Operations extends Record<string, {
171
+ parameters?: Segment;
172
+ response?: any;
173
+ payload?: any;
174
+ }> {
175
+ GetEndpoint: {
176
+ parameters: string;
177
+ response: Components['schemas']['Endpoint'];
178
+ };
179
+ CreateEndpoint: {
180
+ payload: Partial<Pick<Components['schemas']['Endpoint'], GuestCollectionUpdatableField>> & {
181
+ DATA_TYPE?: 'shared_endpoint';
182
+ host_endpoint_id: string;
183
+ host_path: string;
184
+ };
185
+ response: {
186
+ DATA_TYPE: 'endpoint_create_result';
187
+ code: 'Created';
188
+ globus_connect_setup_key: string | null;
189
+ id: string;
190
+ message: string;
191
+ request_id: string;
192
+ resource: '/shared_endpoint';
193
+ };
194
+ };
195
+ UpdateEndpoint: {
196
+ payload: Partial<Pick<Components['schemas']['Endpoint'], MappedCollectionUpdatableField | 'DATA_TYPE'>>;
197
+ response: {
198
+ DATA_TYPE: 'result';
199
+ code: 'Updated';
200
+ message: string;
201
+ request_id: string;
202
+ resource: `/endpoint/${string}`;
203
+ };
204
+ };
205
+ RemoveEndpoint: {
206
+ response: {
207
+ DATA_TYPE: 'result';
208
+ code: 'Deleted';
209
+ message: string;
210
+ request_id: string;
211
+ resource: `/endpoint/${string}`;
212
+ };
213
+ };
214
+ }
1
215
  export interface Transfer {
2
216
  /**
3
217
  * Pagination used by the Transfer service.
@@ -146,4 +360,5 @@ export interface Transfer {
146
360
  };
147
361
  };
148
362
  }
363
+ export {};
149
364
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/services/transfer/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,QAAQ;IACvB;;;;;;;;;OASG;IACH,MAAM,EAAE;QACN;;WAEG;QACH,MAAM,EAAE;YACN,KAAK,EAAE;gBACL,KAAK,CAAC,EAAE,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AC;YAC7B,YAAY,CAAC,EAAE;gBACb,SAAS,EAAE,aAAa,CAAC;gBACzB,MAAM,EAAE,SAAS,GAAG,SAAS,CAAC;gBAC9B,IAAI,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;gBACtB,IAAI,EAAE,MAAM,CAAC;aACd,EAAE,CAAC;YACJ,YAAY,CAAC,EAAE,OAAO,CAAC;YACvB,UAAU,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;YAC3B,eAAe,CAAC,EAAE,OAAO,CAAC;YAC1B,kBAAkB,CAAC,EAAE,OAAO,CAAC;YAC7B,wBAAwB,CAAC,EAAE,OAAO,CAAC;YACnC;;eAEG;YACH,kBAAkB,CAAC,EAAE,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAC;YAChD,kBAAkB,CAAC,EAAE,OAAO,CAAC;YAC7B,oBAAoB,CAAC,EAAE,OAAO,CAAC;YAC/B,iBAAiB,CAAC,EAAE,MAAM,CAAC;YAC3B,sBAAsB,CAAC,EAAE,MAAM,CAAC;SACjC,CAAC;KACH,CAAC;CACH"}
@@ -74,5 +74,9 @@ export type ServiceMethodDynamicSegments<S extends Segment, O extends ServiceMet
74
74
  query?: BaseServiceMethodOptions['query'];
75
75
  headers?: BaseServiceMethodOptions['headers'];
76
76
  }, sdkOptions?: SDKOptions) => Promise<R>;
77
+ /**
78
+ * Provides a type-safe union of a subset of object keys.
79
+ */
80
+ export type ExtractKeys<O extends object, K extends keyof O> = K;
77
81
  export {};
78
82
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEjD,MAAM,WAAW,iBAAiB,CAAC,GAAG,CAAE,SAAQ,QAAQ;IACtD,IA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CAAC,EAAE,CAAC,GAAG,wBAAwB,EAC5C,UAAU,CAAC,EAAE,UAAU,KACpB,OAAO,CAAC,CAAC,CAAC,CAAC;AAEhB,MAAM,MAAM,4BAA4B,CACtC,CAAC,SAAS,OAAO,EACjB,CAAC,SAAS,oBAAoB,EAC9B,CAAC,SAAS,QAAQ,GAAG,QAAQ,IAC3B,CACF,QAAQ,EAAE,CAAC,EACX,aAAa,CAAC,EAAE,CAAC,GAAG;IAClB,KAAK,CAAC,EAAE,wBAAwB,CAAC,OAAO,CAAC,CAAC;IAC1C,OAAO,CAAC,EAAE,wBAAwB,CAAC,SAAS,CAAC,CAAC;CAC/C,EACD,UAAU,CAAC,EAAE,UAAU,KACpB,OAAO,CAAC,CAAC,CAAC,CAAC;AAEhB;;GAEG;AACH,MAAM,MAAM,WAAW,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC,SAAS,MAAM,CAAC,IAAI,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@globus/sdk",
3
- "version": "3.0.0-alpha.8",
3
+ "version": "3.0.0",
4
4
  "private": false,
5
5
  "description": "The Globus SDK for Javascript",
6
6
  "main": "cjs/index.js",
@@ -16,10 +16,11 @@
16
16
  },
17
17
  "dependencies": {
18
18
  "cross-fetch": "^4.0.0",
19
- "js-pkce": "^1.2.1"
19
+ "js-pkce": "^1.2.1",
20
+ "jwt-decode": "^4.0.0"
20
21
  },
21
22
  "peerDependencies": {
22
- "@globus/types": "^0.0.6"
23
+ "@globus/types": "^0.0.7"
23
24
  },
24
25
  "peerDependenciesMeta": {
25
26
  "@globus/types": {
@@ -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 O=[301,302,303,307,308];A.redirect=function(e,t){if(-1===O.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 S(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)}))}S.polyfill=!0,r.fetch||(r.fetch=S,r.Headers=l,r.Request=_,r.Response=A),t.Headers=l,t.Request=_,t.Response=A,t.fetch=S}({})}(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:()=>d,authorization:()=>f,flows:()=>C,gcs:()=>M,groups:()=>x,logger:()=>e,search:()=>P,timer:()=>q,transfer:()=>S});var e={};r.r(e),r.d(e,{log:()=>J,setLogLevel:()=>Y,setLogger:()=>V});var t={};r.r(t),r.d(t,{HOSTS:()=>te,ID:()=>Z,SCOPES:()=>ee});var o={};r.r(o),r.d(o,{HOSTS:()=>ne,ID:()=>re,SCOPES:()=>oe});var i={};r.r(i),r.d(i,{HOSTS:()=>se,ID:()=>ie,RESOURCE_SERVERS:()=>ce,SCOPES:()=>ae});var s={};r.r(s),r.d(s,{HOSTS:()=>pe,ID:()=>ue,SCOPES:()=>he});var a={};r.r(a),r.d(a,{HOSTS:()=>le,ID:()=>de,SCOPES:()=>fe});var c={};r.r(c),r.d(c,{HOSTS:()=>ve,ID:()=>ge});var u={};r.r(u),r.d(u,{get:()=>Pe,getAll:()=>je});var p={};r.r(p),r.d(p,{introspect:()=>Re,revoke:()=>xe,validate:()=>Ie});var h={};r.r(h),r.d(h,{token:()=>p});var d={};r.r(d),r.d(d,{CONFIG:()=>Ue,getAuthorizationEndpoint:()=>Ce,getTokenEndpoint:()=>$e,identities:()=>u,isGlobusAuthTokenResponse:()=>De,oauth2:()=>h});var l={};r.r(l),r.d(l,{getTokenForScope:()=>pt});var f={};r.r(f),r.d(f,{create:()=>dt,getTokenForScope:()=>ht,tokens:()=>l});var g={};r.r(g),r.d(g,{ls:()=>gt,mkdir:()=>vt,rename:()=>yt,symlink:()=>mt});var v={};r.r(v),r.d(v,{submissionId:()=>wt,submitDelete:()=>bt,submitTransfer:()=>_t});var y={};r.r(y),r.d(y,{get:()=>At,remove:()=>Ot});var m={};r.r(m),r.d(m,{cancel:()=>Lt,get:()=>Tt,getAll:()=>St,getEventList:()=>jt,getPauseInfo:()=>xt,getSkippedErrors:()=>Rt,getSuccessfulTransfers:()=>kt,remove:()=>Pt,update:()=>Et});var b={};r.r(b),r.d(b,{create:()=>Ut,get:()=>Ct,getAll:()=>It,remove:()=>Dt,update:()=>$t});var _={};r.r(_),r.d(_,{get:()=>Bt,getAccessList:()=>Ht,getHostedEndpoints:()=>Nt,getMonitoredEndpoints:()=>Ft});var w={};r.r(w),r.d(w,{create:()=>qt,get:()=>Gt,getAll:()=>Mt,remove:()=>Wt,update:()=>zt});var A={};r.r(A),r.d(A,{cancel:()=>Jt,get:()=>Yt,getAdminCancel:()=>Kt,getAll:()=>Vt,getEventList:()=>Xt,getPauseInfo:()=>rr,getSkippedErrors:()=>Zt,getSuccessfulTransfers:()=>Qt,pause:()=>er,resume:()=>tr});var O={};r.r(O),r.d(O,{endpoint:()=>_,pauseRule:()=>w,task:()=>A});var S={};r.r(S),r.d(S,{CONFIG:()=>nr,access:()=>b,endpoint:()=>y,endpointManager:()=>O,endpointSearch:()=>lt,fileOperations:()=>g,task:()=>m,taskSubmission:()=>v});var T={};r.r(T),r.d(T,{get:()=>or,post:()=>ir});var E={};r.r(E),r.d(E,{get:()=>sr});var L={};r.r(L),r.d(L,{get:()=>ar});var P={};r.r(P),r.d(P,{CONFIG:()=>cr,entry:()=>L,query:()=>T,subject:()=>E});var j={};r.r(j),r.d(j,{get:()=>pr,getMyGroups:()=>ur});var k={};r.r(k),r.d(k,{get:()=>hr});var R={};r.r(R),r.d(R,{act:()=>dr});var x={};r.r(x),r.d(x,{CONFIG:()=>lr,groups:()=>j,membership:()=>R,policies:()=>k});var I={};r.r(I),r.d(I,{get:()=>gr,getAll:()=>fr,remove:()=>vr});var U={};r.r(U),r.d(U,{getAll:()=>yr});var C={};r.r(C),r.d(C,{CONFIG:()=>mr,flows:()=>I,runs:()=>U});var $={};r.r($),r.d($,{create:()=>Ar,get:()=>_r,getAll:()=>br,patch:()=>Sr,remove:()=>wr,resetOwnerString:()=>Er,update:()=>Or,updateOwnerString:()=>Tr});var D={};r.r(D),r.d(D,{get:()=>Lr,patch:()=>jr,update:()=>Pr,updateSubscriptionId:()=>kr});var B={};r.r(B),r.d(B,{create:()=>Ur,get:()=>xr,getAll:()=>Rr,remove:()=>Ir});var N={};r.r(N),r.d(N,{create:()=>Br,get:()=>$r,getAll:()=>Cr,patch:()=>Hr,remove:()=>Dr,update:()=>Nr});var H={};r.r(H),r.d(H,{create:()=>Gr,get:()=>Mr,getAll:()=>Fr,patch:()=>Wr,remove:()=>qr,update:()=>zr});var F={};r.r(F),r.d(F,{info:()=>Vr});var M={};r.r(M),r.d(M,{collections:()=>$,endpoint:()=>D,getRequiredScopes:()=>Jr,roles:()=>B,storageGateways:()=>N,userCredentials:()=>H,versioning:()=>F});var q={};r.r(q),r.d(q,{CONFIG:()=>Xr,create:()=>Kr});const G=["debug","info","warn","error"];let z,W=G.indexOf("error");function V(e){z=e}function Y(e){W=G.indexOf(e)}function J(e,...t){var r;z&&(G.indexOf(e)<W||(null!==(r=z[e])&&void 0!==r?r:z.log)(...t))}function K(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 X(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 Q(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;const Z="TRANSFER",ee={ALL:"urn:globus:auth:scope:transfer.api.globus.org:all"},te={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"},re="FLOWS",ne={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"},oe={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"},ie="AUTH",se={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"},ae={VIEW_IDENTITIES:"urn:globus:auth:scope:auth.globus.org:view_identities"},ce={[ie]:"auth.globus.org",[Z]:"transfer.api.globus.org",[re]:"flows.api.globus.org"},ue="GROUPS",pe={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"},he={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"},de="SEARCH",le={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"},fe={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"},ge="TIMER",ve={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"};class ye extends Error{constructor(e,t){super(),this.name="EnvironmentConfigurationError",this.message=`Invalid configuration value provided for ${e} (${t}).`}}function me(e){return"object"==typeof e&&null!==e&&"code"in e&&"message"in e}function be(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 _e={PRODUCTION:"production",PREVIEW:"preview",STAGING:"staging",SANDBOX:"sandbox",INTEGRATION:"integration",TEST:"test"};function we(){const e=be("GLOBUS_SDK_ENVIRONMENT",_e.PRODUCTION);if(!e||!Object.values(_e).includes(e))throw new ye("GLOBUS_SDK_ENVIRONMENT",e);return e}const Ae={[ie]:se,[Z]:te,[re]:ne,[ue]:pe,[de]:le,[ge]:ve};function Oe(e,t,r,n){let o;return o="object"==typeof e?new URL(t,e.host):function(e,t="",r=we()){const n=function(e,t=we()){const r=function(e,t=we()){return Ae[e][t]}(e,t);return be(`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 Se,Te=r(945),Ee=r.n(Te);function Le(e,t,r){var n;const o=function(e){var t,r,n,o,i,s;let a=be("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=ht(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=Oe(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)):Ee()(c,u)}!function(e){e.POST="POST",e.GET="GET",e.DELETE="DELETE",e.PUT="PUT",e.PATCH="PATCH"}(Se||(Se={}));const Pe=function(e,t={},r){return Le({service:ie,scope:ae.VIEW_IDENTITIES,path:`/identities/${e}`},t,r)},je=function(e={},t){return Le({service:ie,scope:ae.VIEW_IDENTITIES,path:"/identities"},e,t)};function ke(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 Re=function(e,t){if(!(null==e?void 0:e.payload))throw new Error("'payload' is required for introspect");return Le({service:ie,scope:void 0,path:"/v2/oauth2/token/introspect",method:Se.POST},ke(e),t)},xe=function(e,t){if(!(null==e?void 0:e.payload))throw new Error("'payload' is required for revoke");return Le({service:ie,scope:void 0,path:"/v2/oauth2/token/revoke",method:Se.POST},ke(e),t)},Ie=function(e,t){if(!(null==e?void 0:e.payload))throw new Error("'payload' is required for validate");return Le({service:ie,scope:void 0,path:"/v2/oauth2/token/validate",method:Se.POST},ke(e),t)},Ue=i;function Ce(){return Oe(ie,"/v2/oauth2/authorize")}function $e(){return Oe(ie,"/v2/oauth2/token")}function De(e){return"object"==typeof e&&null!==e&&"resource_server"in e&&"state"in e}var Be,Ne;class He{constructor(){Be.set(this,{})}get(e){return X(this,Be,"f")[e]}set(e,t){X(this,Be,"f")[e]=t}remove(e){delete X(this,Be,"f")[e]}clear(){Q(this,Be,{},"f")}}Be=new WeakMap;class Fe{constructor(){Ne.set(this,globalThis.localStorage)}get(e){return X(this,Ne,"f").getItem(e)}set(e,t){X(this,Ne,"f").setItem(e,JSON.stringify(t))}remove(e){X(this,Ne,"f").removeItem(e)}clear(){X(this,Ne,"f").clear()}}let Me;function qe(e="memory"){if(!Me){let t;t="localStorage"===e?Fe:"memory"===e?He:e,Me=new t}return Me}Ne=new WeakMap;const Ge=qe;var ze;class We{constructor(e){this.name=e,ze.set(this,[])}addListener(e){return X(this,ze,"f").push(e),()=>this.removeListener(e)}removeListener(e){Q(this,ze,X(this,ze,"f").filter((t=>t!==e)),"f")}dispatch(e){return K(this,void 0,void 0,(function*(){yield Promise.all(X(this,ze,"f").map((t=>t(e))))}))}}ze=new WeakMap;var Ve,Ye,Je,Ke,Xe,Qe,Ze,et,tt,rt,nt,ot,it=r(368),st=r.n(it);class at{constructor(e){Ve.set(this,void 0),Ye.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"]);Q(this,Ve,new(st())(Object.assign({},r)),"f"),Q(this,Ye,Object.assign({},t),"f")}send(){window.location.replace(X(this,Ve,"f").authorizeUrl(X(this,Ye,"f")))}getToken(){return K(this,void 0,void 0,(function*(){const e=new URL(window.location.href),t=new URLSearchParams(e.search);if(!t.get("code"))return;const r=yield X(this,Ve,"f").exchangeForAccessToken(e.toString());return t.delete("code"),t.delete("state"),e.search=t.toString(),sessionStorage.removeItem("pkce_state"),sessionStorage.removeItem("pkce_code_verifier"),window.location.replace(e),r}))}}Ve=new WeakMap,Ye=new WeakMap;class ct{constructor(e){Je.add(this),Ke.set(this,void 0),Q(this,Ke,e.manager,"f")}get auth(){return X(this,Je,"m",Xe).call(this,"AUTH")}get transfer(){return X(this,Je,"m",Xe).call(this,"TRANSFER")}get flows(){return X(this,Je,"m",Xe).call(this,"FLOWS")}}Ke=new WeakMap,Je=new WeakSet,Xe=function(e){var t;const r=null===(t=Ue.RESOURCE_SERVERS)||void 0===t?void 0:t[e],n=Ge().get(`${X(this,Ke,"f").configuration.client_id}:${r}`)||"null";return JSON.parse(n)};class ut{get authenticated(){return X(this,et,"f")}set authenticated(e){Q(this,et,e,"f"),X(this,Qe,"m",nt).call(this)}constructor(e){if(Qe.add(this),Ze.set(this,void 0),et.set(this,!1),this.events={authenticated:new We("authenticated"),revoke:new We("revoke")},this.addTokenResponse=e=>{Ge().set(`${this.configuration.client_id}:${e.resource_server}`,e),"other_tokens"in e&&e.other_tokens.forEach(this.addTokenResponse),X(this,Qe,"m",tt).call(this)},qe("localStorage"),!e.client_id)throw new Error("You must provide a `client_id` for your application.");this.configuration=Object.assign(Object.assign({},e),{requested_scopes:`${e.requested_scopes} openid profile email offline_access`}),this.tokens=new ct({manager:this}),this.startSilentRenew()}startSilentRenew(){J("debug","AuthorizationManager.startSilentRenew"),X(this,Qe,"m",rt).call(this)}hasGlobusAuthToken(){return null!==this.getGlobusAuthToken()}getGlobusAuthToken(){const e=Ge().get(`${this.configuration.client_id}:auth.globus.org`);return e?JSON.parse(e):null}reset(){Ge().clear(),this.authenticated=!1}login(){this.reset(),X(this,Qe,"m",ot).call(this).send()}handleCodeRedirect(){return K(this,void 0,void 0,(function*(){const e=yield X(this,Qe,"m",ot).call(this).getToken();De(e)&&(this.addTokenResponse(e),this.authenticated=!0)}))}handleErrorResponse(e,t=!0){let r=()=>{};var n;return me(n=e)&&"authorization_parameters"in n&&(r=()=>this.handleAuthorizationRequirementsError(e)),function(e){return me(e)&&"ConsentRequired"===e.code&&"required_scopes"in e}(e)&&(r=()=>this.handleConsentRequiredError(e)),"AuthenticationFailed"===e.code&&this.revoke(),t?r():r}handleAuthorizationRequirementsError(e){Q(this,Ze,X(this,Qe,"m",ot).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"),X(this,Ze,"f").send()}handleConsentRequiredError(e){Q(this,Ze,X(this,Qe,"m",ot).call(this,{requested_scopes:e.required_scopes.join(" ")}),"f"),X(this,Ze,"f").send()}revoke(){return K(this,void 0,void 0,(function*(){this.reset(),yield this.events.revoke.dispatch()}))}}function pt(e){const t=Ge().get(e);return t&&function(e){const t=e;return Boolean(t.token_type&&t.access_token)}(t)?`${t.token_type} ${t.access_token}`:null}Ze=new WeakMap,et=new WeakMap,Qe=new WeakSet,tt=function(){J("debug","AuthorizationManager.#checkAuthorizationState"),this.hasGlobusAuthToken()&&(this.authenticated=!0)},rt=function(){return K(this,void 0,void 0,(function*(){J("debug","AuthorizationManager.bootstrapFromStorageState"),X(this,Qe,"m",tt).call(this)}))},nt=function(){var e;return K(this,void 0,void 0,(function*(){const t=this.authenticated,r=null!==(e=this.getGlobusAuthToken())&&void 0!==e?e:void 0;yield this.events.authenticated.dispatch({isAuthenticated:t,token:r})}))},ot=function(e){return new at(Object.assign({client_id:this.configuration.client_id,authorization_endpoint:Ce(),token_endpoint:$e(),redirect_uri:this.configuration.redirect_uri,requested_scopes:this.configuration.requested_scopes},e))};const{getTokenForScope:ht}=l;function dt(e){return new ut(e)}const lt=function(e,t){const r=Object.assign(Object.assign({},e),{query:null==e?void 0:e.query});return Le({service:Z,scope:ee.ALL,path:"/v0.10/endpoint_search"},r,t)};function ft(e){return e===Se.GET?{}:{"Content-Type":"application/json"}}const gt=function(e,t,r){return Le({service:Z,scope:ee.ALL,path:`/v0.10/operation/endpoint/${e}/ls`},t,r)},vt=function(e,t,r){const n={payload:Object.assign({DATA_TYPE:"mkdir"},null==t?void 0:t.payload),headers:Object.assign(Object.assign({},ft(Se.POST)),null==t?void 0:t.headers)};return Le({service:Z,scope:ee.ALL,path:`/v0.10/operation/endpoint/${e}/mkdir`,method:Se.POST},n,r)},yt=function(e,t,r){const n={payload:Object.assign({DATA_TYPE:"rename"},null==t?void 0:t.payload),headers:Object.assign(Object.assign({},ft(Se.POST)),null==t?void 0:t.headers)};return Le({service:Z,scope:ee.ALL,path:`/v0.10/operation/endpoint/${e}/rename`,method:Se.POST},n,r)},mt=function(e,t,r){const n={payload:Object.assign({DATA_TYPE:"symlink"},null==t?void 0:t.payload),headers:Object.assign(Object.assign({},ft(Se.POST)),null==t?void 0:t.headers)};return Le({service:Z,scope:ee.ALL,path:`/v0.10/operation/endpoint/${e}/symlink`,method:Se.POST},n,r)},bt=function(e,t){const r={payload:Object.assign({DATA_TYPE:"delete"},null==e?void 0:e.payload),headers:Object.assign(Object.assign({},ft(Se.POST)),null==e?void 0:e.headers)};return Le({service:Z,scope:ee.ALL,path:"/v0.10/delete",method:Se.POST},r,t)},_t=function(e,t){const r={payload:Object.assign({DATA_TYPE:"transfer"},null==e?void 0:e.payload),headers:Object.assign(Object.assign({},ft(Se.POST)),null==e?void 0:e.headers)};return Le({service:Z,scope:ee.ALL,path:"/v0.10/transfer",method:Se.POST},r,t)},wt=function(e,t){return Le({service:Z,scope:ee.ALL,path:"/v0.10/submission_id"},e,t)},At=function(e,t,r){return Le({service:Z,scope:ee.ALL,path:`/v0.10/endpoint/${e}`},t,r)},Ot=function(e,t,r){return Le({service:Z,scope:ee.ALL,path:`/v0.10/endpoint/${e}`,method:Se.DELETE},t,r)},St=function(e={},t){return Le({service:Z,scope:ee.ALL,path:"/v0.10/task_list"},e,t)},Tt=function(e,t,r){return Le({service:Z,scope:ee.ALL,path:`/v0.10/task/${e}`},t,r)},Et=function(e,t,r){return Le({service:Z,scope:ee.ALL,path:`/v0.10/task/${e}`,method:Se.PUT},t,r)},Lt=function(e,t,r){return Le({service:Z,scope:ee.ALL,path:`/v0.10/task/${e}/cancel`,method:Se.POST},t,r)},Pt=function(e,t,r){return Le({service:Z,scope:ee.ALL,path:`/v0.10/task/${e}/remove`,method:Se.POST},t,r)},jt=function(e,t,r){return Le({service:Z,scope:ee.ALL,path:`/v0.10/task/${e}/event_list`},t,r)},kt=function(e,t,r){return Le({service:Z,scope:ee.ALL,path:`/v0.10/task/${e}/successful_transfers`},t,r)},Rt=function(e,t,r){return Le({service:Z,scope:ee.ALL,path:`/v0.10/task/${e}/skipped_errors`},t,r)},xt=function(e,t,r){return Le({service:Z,scope:ee.ALL,path:`/v0.10/task/${e}/pause_info`},t,r)},It=function(e,t,r){return Le({service:Z,scope:ee.ALL,path:`/v0.10/endpoint/${e}/access_list`},t,r)},Ut=function(e,t,r){return Le({service:Z,scope:ee.ALL,path:`/v0.10/endpoint/${e}/access`,method:Se.POST},t,r)},Ct=function({endpoint_xid:e,id:t},r,n){return Le({service:Z,scope:ee.ALL,path:`/v0.10/endpoint/${e}/access/${t}`},r,n)},$t=function({endpoint_xid:e,id:t},r,n){return Le({service:Z,scope:ee.ALL,path:`/v0.10/endpoint/${e}/access/${t}`,method:Se.PUT},r,n)},Dt=function({endpoint_xid:e,id:t},r,n){return Le({service:Z,scope:ee.ALL,path:`/v0.10/endpoint/${e}/access/${t}`,method:Se.DELETE},r,n)},Bt=function(e,t,r){return Le({service:Z,scope:ee.ALL,path:`/v0.10/endpoint_manager/endpoint/${e}`},t,r)},Nt=function(e,t,r){return Le({service:Z,scope:ee.ALL,path:`/v0.10/endpoint_manager/endpoint/${e}/hosted_endpoint_list`},t,r)},Ht=function(e,t,r){return Le({service:Z,scope:ee.ALL,path:`/v0.10/endpoint_manager/endpoint/${e}/access_list`},t,r)},Ft=function(e={},t){return Le({service:Z,scope:ee.ALL,path:"/v0.10/endpoint_manager/monitored_endpoints"},e,t)},Mt=function(e,t){return Le({service:Z,scope:ee.ALL,path:"/v0.10/endpoint_manager/pause_rule_list"},e,t)},qt=function(e,t){return Le({service:Z,scope:ee.ALL,path:"/v0.10/endpoint_manager/pause_rule",method:Se.POST},e,t)},Gt=function(e,t,r){return Le({service:Z,scope:ee.ALL,path:`/v0.10/endpoint_manager/pause_rule/${e}`},t,r)},zt=function(e,t,r){return Le({service:Z,scope:ee.ALL,path:`/v0.10/endpoint_manager/pause_rule/${e}`,method:Se.PUT},t,r)},Wt=function(e,t,r){return Le({service:Z,scope:ee.ALL,path:`/v0.10/endpoint_manager/pause_rule/${e}`,method:Se.DELETE},t,r)},Vt=function(e={},t){return Le({service:Z,scope:ee.ALL,path:"/v0.10/task_list"},e,t)},Yt=function(e,t,r){return Le({service:Z,scope:ee.ALL,path:`/v0.10/endpoint_manager/task/${e}`},t,r)},Jt=function(e,t){return Le({service:Z,scope:ee.ALL,path:"/v0.10/endpoint_manager/admin_cancel",method:Se.POST},e,t)},Kt=function(e,t,r){return Le({service:Z,scope:ee.ALL,path:`/v0.10/endpoint_manager/admin_cancel/${e}`,method:Se.POST},t,r)},Xt=function(e,t,r){return Le({service:Z,scope:ee.ALL,path:`/v0.10/endpoint_manager/task/${e}/event_list`},t,r)},Qt=function(e,t,r){return Le({service:Z,scope:ee.ALL,path:`/v0.10/endpoint_manager/task/${e}/successful_transfers`},t,r)},Zt=function(e,t,r){return Le({service:Z,scope:ee.ALL,path:`/v0.10/endpoint_manager/task/${e}/skipped_errors`},t,r)},er=function(e,t){return Le({service:Z,scope:ee.ALL,path:"/v0.10/endpoint_manager/admin_pause",method:Se.POST},e,t)},tr=function(e,t){return Le({service:Z,scope:ee.ALL,path:"/v0.10/endpoint_manager/admin_resume",method:Se.POST},e,t)},rr=function(e,t,r){return Le({service:Z,scope:ee.ALL,path:`/v0.10/endpoint_manager/task/${e}/pause_info`},t,r)},nr=t,or=function(e,t,r){return Le({service:de,scope:fe.SEARCH,path:`/v1/index/${e}/search`},t,r)},ir=function(e,t,r){return Le({service:de,scope:fe.SEARCH,path:`/v1/index/${e}/search`,method:Se.POST},t,r)},sr=function(e,t,r){return Le({service:de,scope:fe.SEARCH,path:`/v1/index/${e}/subject`},t,r)},ar=function(e,t,r){return Le({service:de,scope:fe.SEARCH,path:`/v1/index/${e}/entry`},t,r)},cr=a,ur=function(e,t){return Le({scope:he.ALL,path:"/v2/groups/my_groups",service:ue},e,t)},pr=function(e,t,r){return Le({service:ue,scope:he.ALL,path:`/v2/groups/${e}`},t,r)},hr=function(e,t,r){return Le({scope:he.ALL,path:`/v2/groups/${e}/policies`,service:ue},t,r)},dr=function(e,t,r){if(!(null==t?void 0:t.payload))throw new Error("payload is required.");return Le({service:ue,scope:he.ALL,path:`/v2/groups/${e}`,method:Se.POST},t,r)},lr=s,fr=function(e,t){return Le({service:re,scope:oe.VIEW_FLOWS,path:"/flows"},e,t)},gr=function(e,t,r){return Le({service:re,scope:oe.VIEW_FLOWS,path:`/flows/${e}`},t,r)},vr=function(e,t,r){return Le({scope:oe.MANAGE_FLOWS,service:re,path:`/flows/${e}`,method:Se.DELETE},t,r)},yr=function(e={},t){return Le({service:re,scope:oe.RUN_MANAGE,path:"/runs"},e,t)},mr=o,br=function(e,t,r){return Le({service:e,scope:Jr(e),path:"/api/collections"},t,r)},_r=function(e,t,r,n){return Le({service:e,scope:Jr(e),path:`/api/collections/${t}`},r,n)},wr=function(e,t,r,n){return Le({service:e,scope:Jr(e),path:`/api/collections/${t}`,method:Se.DELETE},r,n)},Ar=function(e,t,r){return Le({service:e,scope:Jr(e),path:"/api/collections",method:Se.POST},t,r)},Or=function(e,t,r,n){return Le({service:e,scope:Jr(e),path:`/api/collections/${t}`,method:Se.PUT},r,n)},Sr=function(e,t,r,n){return Le({service:e,scope:Jr(e),path:`/api/collections/${t}`,method:Se.PATCH},r,n)},Tr=function(e,t,r,n){return Le({service:e,scope:Jr(e),path:`/api/collections/${t}/owner_string`,method:Se.PUT},r,n)},Er=function(e,t,r,n){return Le({service:e,scope:Jr(e),path:`/api/collections/${t}/owner_string`,method:Se.DELETE},r,n)},Lr=function(e,t,r){return Le({service:e,scope:Jr(e),path:"/api/endpoint"},t,r)},Pr=function(e,t,r){return Le({service:e,scope:Jr(e),path:"/api/endpoint",method:Se.PUT},t,r)},jr=function(e,t,r){return Le({service:e,scope:Jr(e),path:"/api/endpoint",method:Se.PATCH},t,r)},kr=function(e,t,r){return Le({service:e,scope:Jr(e),path:"/api/endpoint/subscription_id",method:Se.PUT},t,r)},Rr=function(e,t,r){return Le({service:e,scope:Jr(e),path:"/api/roles"},t,r)},xr=function(e,t,r,n){return Le({service:e,scope:Jr(e),path:`/api/roles/${t}`},r,n)},Ir=function(e,t,r,n){return Le({service:e,scope:Jr(e),path:`/api/roles/${t}`,method:Se.DELETE},r,n)},Ur=function(e,t,r){return Le({service:e,scope:Jr(e),path:"/api/roles",method:Se.POST},t,r)},Cr=function(e,t,r){return Le({service:e,scope:Jr(e),path:"/api/storage_gateways"},t,r)},$r=function(e,t,r,n){return Le({service:e,scope:Jr(e),path:`/api/storage_gateways/${t}`},r,n)},Dr=function(e,t,r,n){return Le({service:e,scope:Jr(e),path:`/api/storage_gateways/${t}`,method:Se.DELETE},r,n)},Br=function(e,t,r){return Le({service:e,scope:Jr(e),path:"/api/storage_gateways",method:Se.POST},t,r)},Nr=function(e,t,r,n){return Le({service:e,scope:Jr(e),path:`/api/storage_gateways/${t}`,method:Se.PUT},r,n)},Hr=function(e,t,r,n){return Le({service:e,scope:Jr(e),path:`/api/storage_gateways/${t}`,method:Se.PATCH},r,n)},Fr=function(e,t,r){return Le({service:e,scope:Jr(e),path:"/api/user_credentials"},t,r)},Mr=function(e,t,r,n){return Le({service:e,scope:Jr(e),path:`/api/user_credentials/${t}`},r,n)},qr=function(e,t,r,n){return Le({service:e,scope:Jr(e),path:`/api/user_credentials/${t}`,method:Se.DELETE},r,n)},Gr=function(e,t,r){return Le({service:e,scope:Jr(e),path:"/api/user_credentials",method:Se.POST},t,r)},zr=function(e,t,r,n){return Le({service:e,scope:Jr(e),path:`/api/user_credentials/${t}`,method:Se.PUT},r,n)},Wr=function(e,t,r,n){return Le({service:e,scope:Jr(e),path:`/api/user_credentials/${t}`,method:Se.PATCH},r,n)},Vr=function(e,t,r){return Le({service:e,scope:Jr(e),path:"/api/info"},t,r)},Yr={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 Jr(e){return Yr.HIGH_ASSURANCE.replace("<ENDPOINT_ID>",e.endpoint_id)}const Kr=function(e,t){return Le({service:ge,scope:"https://auth.globus.org/scopes/524230d7-ea86-4a52-8312-86065a9e0417/timer",path:"/v2/timer",method:Se.POST},e,t)},Xr=c})(),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(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 S(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)}))}S.polyfill=!0,r.fetch||(r.fetch=S,r.Headers=l,r.Request=_,r.Response=A),t.Headers=l,t.Request=_,t.Response=A,t.fetch=S}({})}(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});var e={};r.r(e),r.d(e,{log:()=>Z,setLogLevel:()=>Q,setLogger:()=>X});var t={};r.r(t),r.d(t,{HOSTS:()=>se,ID:()=>oe,SCOPES:()=>ie});var o={};r.r(o),r.d(o,{HOSTS:()=>ce,ID:()=>ae,SCOPES:()=>ue});var i={};r.r(i),r.d(i,{HOSTS:()=>he,ID:()=>pe});var s={};r.r(s),r.d(s,{HOSTS:()=>le,ID:()=>de,SCOPES:()=>fe});var a={};r.r(a),r.d(a,{HOSTS:()=>ve,ID:()=>ge,SCOPES:()=>ye});var c={};r.r(c),r.d(c,{HOSTS:()=>be,ID:()=>me,SCOPES:()=>_e});var u={};r.r(u),r.d(u,{HOSTS:()=>Ae,ID:()=>we,RESOURCE_SERVERS:()=>Se,SCOPES:()=>Te});var p={};r.r(p),r.d(p,{get:()=>De,getAll:()=>Be});var h={};r.r(h),r.d(h,{introspect:()=>Ne,refresh:()=>Fe,revoke:()=>He,validate:()=>qe});var d={};r.r(d),r.d(d,{token:()=>h,userinfo:()=>ze});var l={};r.r(l),r.d(l,{CONFIG:()=>Ge,getAuthorizationEndpoint:()=>We,getTokenEndpoint:()=>Ve,identities:()=>p,isGlobusAuthTokenResponse:()=>Ke,isRefreshToken:()=>Ye,isToken:()=>Je,oauth2:()=>d});var f={};r.r(f),r.d(f,{getTokenForScope:()=>Et});var g={};r.r(g),r.d(g,{create:()=>kt,getTokenForScope:()=>Lt,tokens:()=>f});var v={};r.r(v),r.d(v,{ls:()=>jt,mkdir:()=>xt,rename:()=>It,symlink:()=>$t});var y={};r.r(y),r.d(y,{submissionId:()=>Dt,submitDelete:()=>Ut,submitTransfer:()=>Ct});var m={};r.r(m),r.d(m,{create:()=>Mt,get:()=>Bt,remove:()=>Ht,update:()=>Nt});var b={};r.r(b),r.d(b,{cancel:()=>Gt,get:()=>qt,getAll:()=>Ft,getEventList:()=>Vt,getPauseInfo:()=>Kt,getSkippedErrors:()=>Yt,getSuccessfulTransfers:()=>Jt,remove:()=>Wt,update:()=>zt});var _={};r.r(_),r.d(_,{create:()=>Qt,get:()=>Zt,getAll:()=>Xt,remove:()=>tr,update:()=>er});var w={};r.r(w),r.d(w,{create:()=>nr,get:()=>or,getAll:()=>rr,remove:()=>sr,update:()=>ir});var A={};r.r(A),r.d(A,{get:()=>ar,getAccessList:()=>ur,getHostedEndpoints:()=>cr,getMonitoredEndpoints:()=>pr});var T={};r.r(T),r.d(T,{create:()=>dr,get:()=>lr,getAll:()=>hr,remove:()=>gr,update:()=>fr});var S={};r.r(S),r.d(S,{cancel:()=>mr,get:()=>yr,getAdminCancel:()=>br,getAll:()=>vr,getEventList:()=>_r,getPauseInfo:()=>Or,getSkippedErrors:()=>Ar,getSuccessfulTransfers:()=>wr,pause:()=>Tr,resume:()=>Sr});var O={};r.r(O),r.d(O,{endpoint:()=>A,pauseRule:()=>T,task:()=>S});var E={};r.r(E),r.d(E,{CONFIG:()=>Er,access:()=>_,collectionBookmarks:()=>w,endpoint:()=>m,endpointManager:()=>O,endpointSearch:()=>Pt,fileOperations:()=>v,task:()=>b,taskSubmission:()=>y});var L={};r.r(L),r.d(L,{get:()=>Lr,post:()=>kr});var k={};r.r(k),r.d(k,{get:()=>Pr});var P={};r.r(P),r.d(P,{get:()=>Rr});var R={};r.r(R),r.d(R,{CONFIG:()=>jr,entry:()=>P,query:()=>L,subject:()=>k});var j={};r.r(j),r.d(j,{get:()=>Ir,getMyGroups:()=>xr});var x={};r.r(x),r.d(x,{get:()=>$r});var I={};r.r(I),r.d(I,{act:()=>Ur});var $={};r.r($),r.d($,{CONFIG:()=>Cr,groups:()=>j,membership:()=>I,policies:()=>x});var U={};r.r(U),r.d(U,{get:()=>Br,getAll:()=>Dr,remove:()=>Mr});var C={};r.r(C),r.d(C,{getAll:()=>Nr});var D={};r.r(D),r.d(D,{CONFIG:()=>Hr,flows:()=>U,runs:()=>C});var B={};r.r(B),r.d(B,{create:()=>Gr,get:()=>qr,getAll:()=>Fr,patch:()=>Vr,remove:()=>zr,resetOwnerString:()=>Yr,update:()=>Wr,updateOwnerString:()=>Jr});var M={};r.r(M),r.d(M,{get:()=>Kr,patch:()=>Qr,update:()=>Xr,updateSubscriptionId:()=>Zr});var N={};r.r(N),r.d(N,{create:()=>nn,get:()=>tn,getAll:()=>en,remove:()=>rn});var H={};r.r(H),r.d(H,{create:()=>cn,get:()=>sn,getAll:()=>on,patch:()=>pn,remove:()=>an,update:()=>un});var F={};r.r(F),r.d(F,{create:()=>fn,get:()=>dn,getAll:()=>hn,patch:()=>vn,remove:()=>ln,update:()=>gn});var q={};r.r(q),r.d(q,{info:()=>yn});var z={};r.r(z),r.d(z,{collections:()=>B,endpoint:()=>M,getRequiredScopes:()=>bn,roles:()=>N,storageGateways:()=>H,userCredentials:()=>F,versioning:()=>q});var G={};r.r(G),r.d(G,{CONFIG:()=>wn,create:()=>_n});var W={};r.r(W),r.d(W,{get:()=>Tn,getAll:()=>An,getStatus:()=>Sn});var V={};r.r(V),r.d(V,{CONFIG:()=>On,endpoints:()=>W});const J=["debug","info","warn","error"];let Y,K=J.indexOf("error");function X(e){Y=e}function Q(e){K=J.indexOf(e)}function Z(e,...t){var r;Y&&(J.indexOf(e)<K||(null!==(r=Y[e])&&void 0!==r?r:Y.log)(...t))}function ee(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 te(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 re(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 ne extends Error{}ne.prototype.name="InvalidTokenError";const oe="TRANSFER",ie={ALL:"urn:globus:auth:scope:transfer.api.globus.org:all"},se={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"},ae="FLOWS",ce={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"},ue={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"},pe="TIMER",he={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"},de="GROUPS",le={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"},fe={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"},ge="SEARCH",ve={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"},ye={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"},me="COMPUTE",be={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"},_e={ALL:"https://auth.globus.org/scopes/facd7ccc-c5f4-42aa-916b-a0e270e2c2a9/all"},we="AUTH",Ae={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"},Te={VIEW_IDENTITIES:"urn:globus:auth:scope:auth.globus.org:view_identities"},Se={[we]:"auth.globus.org",[oe]:"transfer.api.globus.org",[ae]:"flows.api.globus.org",[de]:"groups.api.globus.org",[ge]:"search.api.globus.org",[pe]:"524230d7-ea86-4a52-8312-86065a9e0417",[me]:"funcx_service"};class Oe 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 Le(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 ke={PRODUCTION:"production",PREVIEW:"preview",STAGING:"staging",SANDBOX:"sandbox",INTEGRATION:"integration",TEST:"test"};function Pe(){const e=Le("GLOBUS_SDK_ENVIRONMENT",ke.PRODUCTION);if(!e||!Object.values(ke).includes(e))throw new Oe("GLOBUS_SDK_ENVIRONMENT",e);return e}const Re={[we]:we,[oe]:oe,[ae]:ae,[de]:de,[ge]:ge,[pe]:pe,[me]:me},je={[we]:Ae,[oe]:se,[ae]:ce,[de]:le,[ge]:ve,[pe]:he,[me]:be};function xe(e,t,r,n){let o;return o="object"==typeof e?new URL(t,e.host):function(e,t="",r=Pe()){const n=function(e,t=Pe()){const r=function(e,t=Pe()){return je[e][t]}(e,t);return Le(`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 Ie,$e=r(945),Ue=r.n($e);function Ce(e,t,r){var n;const o=function(e){var t,r,n,o,i,s;let a=Le("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=Lt(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=xe(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)):Ue()(c,u)}!function(e){e.POST="POST",e.GET="GET",e.DELETE="DELETE",e.PUT="PUT",e.PATCH="PATCH"}(Ie||(Ie={}));const De=function(e,t={},r){return Ce({service:we,scope:Te.VIEW_IDENTITIES,path:`/identities/${e}`},t,r)},Be=function(e={},t){return Ce({service:we,scope:Te.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 Ne=function(e,t){if(!(null==e?void 0:e.payload))throw new Error("'payload' is required for introspect");return Ce({service:we,scope:void 0,path:"/v2/oauth2/token/introspect",method:Ie.POST},Me(e),t)},He=function(e,t){if(!(null==e?void 0:e.payload))throw new Error("'payload' is required for revoke");return Ce({service:we,scope:void 0,path:"/v2/oauth2/token/revoke",method:Ie.POST},Me(e),t)},Fe=function(e,t){if(!(null==e?void 0:e.payload))throw new Error("'payload' is required for revoke");return Ce({service:we,scope:void 0,path:"/v2/oauth2/token",method:Ie.POST},Me(e),t)},qe=function(e,t){if(!(null==e?void 0:e.payload))throw new Error("'payload' is required for validate");return Ce({service:we,scope:void 0,path:"/v2/oauth2/token/validate",method:Ie.POST},Me(e),t)},ze=function(e,t){return Ce({service:we,scope:void 0,path:"/v2/oauth2/userinfo",method:Ie.GET},e,t)},Ge=u;function We(){return xe(we,"/v2/oauth2/authorize")}function Ve(){return xe(we,"/v2/oauth2/token")}function Je(e){return"object"==typeof e&&null!==e&&"access_token"in e}function Ye(e){return Je(e)&&null!==e&&"refresh_token"in e}function Ke(e){return Je(e)&&null!==e&&"resource_server"in e}var Xe,Qe;class Ze{constructor(){Xe.set(this,{})}get(e){return void 0!==te(this,Xe,"f")[e]?te(this,Xe,"f")[e]:null}set(e,t){te(this,Xe,"f")[e]="string"!=typeof t?JSON.stringify(t):t}remove(e){delete te(this,Xe,"f")[e]}clear(){re(this,Xe,{},"f")}}Xe=new WeakMap;class et{constructor(){Qe.set(this,globalThis.localStorage)}get(e){return te(this,Qe,"f").getItem(e)}set(e,t){te(this,Qe,"f").setItem(e,"string"!=typeof t?JSON.stringify(t):t)}remove(e){te(this,Qe,"f").removeItem(e)}clear(){te(this,Qe,"f").clear()}}let tt;function rt(e="memory"){if(!tt){let t;t="localStorage"===e?et:"memory"===e?Ze:e,tt=new t}return tt}Qe=new WeakMap;const nt=rt;var ot;class it{constructor(e){this.name=e,ot.set(this,[])}addListener(e){return te(this,ot,"f").push(e),()=>this.removeListener(e)}removeListener(e){re(this,ot,te(this,ot,"f").filter((t=>t!==e)),"f")}clearListeners(){re(this,ot,[],"f")}dispatch(e){return ee(this,void 0,void 0,(function*(){yield Promise.all(te(this,ot,"f").map((t=>t(e))))}))}}ot=new WeakMap;var st,at,ct,ut,pt,ht,dt,lt,ft,gt,vt,yt,mt,bt,_t,wt=r(368),At=r.n(wt);class Tt{constructor(e){st.set(this,void 0),at.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"]);re(this,st,new(At())(Object.assign({},r)),"f"),re(this,at,Object.assign({},t),"f")}send(){window.location.replace(te(this,st,"f").authorizeUrl(te(this,at,"f")))}getToken(){return ee(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 te(this,st,"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}))}}st=new WeakMap,at=new WeakMap;class St{constructor(e){ct.add(this),ut.set(this,void 0),re(this,ut,e.manager,"f")}get auth(){return te(this,ct,"m",pt).call(this,Re.AUTH)}get transfer(){return te(this,ct,"m",pt).call(this,Re.TRANSFER)}get flows(){return te(this,ct,"m",pt).call(this,Re.FLOWS)}get groups(){return te(this,ct,"m",pt).call(this,Re.GROUPS)}get search(){return te(this,ct,"m",pt).call(this,Re.SEARCH)}get timer(){return te(this,ct,"m",pt).call(this,Re.TIMER)}get compute(){return te(this,ct,"m",pt).call(this,Re.COMPUTE)}getAll(){return[this.auth,this.transfer,this.flows,this.groups,this.search,this.timer,this.compute].filter(Je)}}ut=new WeakMap,ct=new WeakSet,pt=function(e){var t;const r=null===(t=Ge.RESOURCE_SERVERS)||void 0===t?void 0:t[e],n=nt().get(`${te(this,ut,"f").configuration.client}:${r}`)||"null";let o=null;try{const e=JSON.parse(n);Je(e)&&(o=e)}catch(e){}return o};class Ot{get authenticated(){return te(this,lt,"f")}set authenticated(e){re(this,lt,e,"f"),te(this,ht,"m",yt).call(this)}constructor(e){var t;if(ht.add(this),dt.set(this,void 0),lt.set(this,!1),this.events={authenticated:new it("authenticated"),revoke:new it("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)),te(this,ht,"m",gt).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}${r?` ${r}`:""}`}),this.tokens=new St({manager:this}),te(this,ht,"m",vt).call(this),this.startSilentRefresh()}get user(){const e=this.getGlobusAuthToken();return e&&e.id_token?function(e,t){if("string"!=typeof e)throw new ne("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 ne(`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 ne(`Invalid token specified: invalid base64 for part #${r+1} (${e.message})`)}try{return JSON.parse(o)}catch(e){throw new ne(`Invalid token specified: invalid json for part #${r+1} (${e.message})`)}}(e.id_token):null}startSilentRefresh(){Z("debug",`AuthorizationManager.startSilentRefresh | useRefreshTokens=${this.configuration.useRefreshTokens}`),this.configuration.useRefreshTokens&&te(this,ht,"m",ft).call(this)}refreshToken(e){return ee(this,void 0,void 0,(function*(){Z("debug",`AuthorizationManager.refreshToken | resource_server=${e.resource_server}`);try{const t=yield(yield Fe({payload:{client_id:this.configuration.client,refresh_token:e.refresh_token,grant_type:"refresh_token"}})).json();Ke(t)&&this.addTokenResponse(t)}catch(t){Z("error",`AuthorizationManager.refreshToken | resource_server=${e.resource_server}`)}}))}hasGlobusAuthToken(){return null!==this.getGlobusAuthToken()}getGlobusAuthToken(){const e=nt().get(`${this.configuration.client}:auth.globus.org`);return e?JSON.parse(e):null}reset(){nt().clear(),this.authenticated=!1}login(){Z("debug","AuthorizationManager.login"),this.reset(),te(this,ht,"m",bt).call(this).send()}handleCodeRedirect(){return ee(this,arguments,void 0,(function*(e={shouldReplace:!0}){Z("debug","AuthorizationManager.handleCodeRedirect");const t=yield te(this,ht,"m",bt).call(this).getToken({shouldReplace:null==e?void 0:e.shouldReplace});Ke(t)&&(Z("debug",`AuthorizationManager.handleCodeRedirect | response=${JSON.stringify(t)}`),this.addTokenResponse(t))}))}handleErrorResponse(e,t=!0){Z("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&&(Z("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)&&(Z("debug","AuthorizationManager.handleErrorResponse | error=ConsentRequiredError"),r=()=>this.handleConsentRequiredError(e)),"code"in e&&"AuthenticationFailed"===e.code&&(Z("debug","AuthorizationManager.handleErrorResponse | error=AuthenticationFailed"),r=()=>this.revoke()),!0===t?r():r}handleAuthorizationRequirementsError(e){re(this,dt,te(this,ht,"m",bt).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"),te(this,dt,"f").send()}handleConsentRequiredError(e){re(this,dt,te(this,ht,"m",bt).call(this,{requested_scopes:te(this,ht,"m",mt).call(this,e.required_scopes.join(" "))}),"f"),te(this,dt,"f").send()}revoke(){return ee(this,void 0,void 0,(function*(){Z("debug","AuthorizationManager.revoke");const e=Promise.all(this.tokens.getAll().map(te(this,ht,"m",_t).bind(this)));this.reset(),yield e,yield this.events.revoke.dispatch()}))}}function Et(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}dt=new WeakMap,lt=new WeakMap,ht=new WeakSet,ft=function(){Z("debug","AuthorizationManager.#silentRefreshTokens"),this.tokens.getAll().forEach((e=>{Ye(e)&&this.refreshToken(e)}))},gt=function(){Z("debug","AuthorizationManager.#checkAuthorizationState"),this.hasGlobusAuthToken()&&(this.authenticated=!0)},vt=function(){return ee(this,void 0,void 0,(function*(){Z("debug","AuthorizationManager.bootstrapFromStorageState"),te(this,ht,"m",gt).call(this)}))},yt=function(){return ee(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})}))},mt=function(e){return`${e}${this.configuration.useRefreshTokens?" offline_access":""}`},bt=function(e){var t;const r=te(this,ht,"m",mt).call(this,null!==(t=null==e?void 0:e.requested_scopes)&&void 0!==t?t:this.configuration.scopes);return new Tt(Object.assign({client_id:this.configuration.client,authorization_endpoint:We(),token_endpoint:Ve(),redirect_uri:this.configuration.redirect,requested_scopes:r},e))},_t=function(e){return Z("debug",`AuthorizationManager.revokeToken | resource_server=${e.resource_server}`),He({payload:{client_id:this.configuration.client,token:e.access_token}})};const{getTokenForScope:Lt}=f;function kt(e){return new Ot(e)}const Pt=function(e,t){const r=Object.assign(Object.assign({},e),{query:null==e?void 0:e.query});return Ce({service:oe,scope:ie.ALL,path:"/v0.10/endpoint_search"},r,t)};function Rt(e){return e===Ie.GET?{}:{"Content-Type":"application/json"}}const jt=function(e,t,r){return Ce({service:oe,scope:ie.ALL,path:`/v0.10/operation/endpoint/${e}/ls`},t,r)},xt=function(e,t,r){const n={payload:Object.assign({DATA_TYPE:"mkdir"},null==t?void 0:t.payload),headers:Object.assign(Object.assign({},Rt(Ie.POST)),null==t?void 0:t.headers)};return Ce({service:oe,scope:ie.ALL,path:`/v0.10/operation/endpoint/${e}/mkdir`,method:Ie.POST},n,r)},It=function(e,t,r){const n={payload:Object.assign({DATA_TYPE:"rename"},null==t?void 0:t.payload),headers:Object.assign(Object.assign({},Rt(Ie.POST)),null==t?void 0:t.headers)};return Ce({service:oe,scope:ie.ALL,path:`/v0.10/operation/endpoint/${e}/rename`,method:Ie.POST},n,r)},$t=function(e,t,r){const n={payload:Object.assign({DATA_TYPE:"symlink"},null==t?void 0:t.payload),headers:Object.assign(Object.assign({},Rt(Ie.POST)),null==t?void 0:t.headers)};return Ce({service:oe,scope:ie.ALL,path:`/v0.10/operation/endpoint/${e}/symlink`,method:Ie.POST},n,r)},Ut=function(e,t){const r={payload:Object.assign({DATA_TYPE:"delete"},null==e?void 0:e.payload),headers:Object.assign(Object.assign({},Rt(Ie.POST)),null==e?void 0:e.headers)};return Ce({service:oe,scope:ie.ALL,path:"/v0.10/delete",method:Ie.POST},r,t)},Ct=function(e,t){const r={payload:Object.assign({DATA_TYPE:"transfer"},null==e?void 0:e.payload),headers:Object.assign(Object.assign({},Rt(Ie.POST)),null==e?void 0:e.headers)};return Ce({service:oe,scope:ie.ALL,path:"/v0.10/transfer",method:Ie.POST},r,t)},Dt=function(e,t){return Ce({service:oe,scope:ie.ALL,path:"/v0.10/submission_id"},e,t)},Bt=function(e,t,r){return Ce({service:oe,scope:ie.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"}),Ce({service:oe,scope:ie.ALL,path:"/v0.10/shared_endpoint",method:Ie.POST},e,t)},Nt=function(e,t,r){return(null==t?void 0:t.payload)&&Object.assign(t.payload,{DATA_TYPE:"endpoint"}),Ce({service:oe,scope:ie.ALL,path:`/v0.10/endpoint/${e}`,method:Ie.PUT},t,r)},Ht=function(e,t,r){return Ce({service:oe,scope:ie.ALL,path:`/v0.10/endpoint/${e}`,method:Ie.DELETE},t,r)},Ft=function(e={},t){return Ce({service:oe,scope:ie.ALL,path:"/v0.10/task_list"},e,t)},qt=function(e,t,r){return Ce({service:oe,scope:ie.ALL,path:`/v0.10/task/${e}`},t,r)},zt=function(e,t,r){return Ce({service:oe,scope:ie.ALL,path:`/v0.10/task/${e}`,method:Ie.PUT},t,r)},Gt=function(e,t,r){return Ce({service:oe,scope:ie.ALL,path:`/v0.10/task/${e}/cancel`,method:Ie.POST},t,r)},Wt=function(e,t,r){return Ce({service:oe,scope:ie.ALL,path:`/v0.10/task/${e}/remove`,method:Ie.POST},t,r)},Vt=function(e,t,r){return Ce({service:oe,scope:ie.ALL,path:`/v0.10/task/${e}/event_list`},t,r)},Jt=function(e,t,r){return Ce({service:oe,scope:ie.ALL,path:`/v0.10/task/${e}/successful_transfers`},t,r)},Yt=function(e,t,r){return Ce({service:oe,scope:ie.ALL,path:`/v0.10/task/${e}/skipped_errors`},t,r)},Kt=function(e,t,r){return Ce({service:oe,scope:ie.ALL,path:`/v0.10/task/${e}/pause_info`},t,r)},Xt=function(e,t,r){return Ce({service:oe,scope:ie.ALL,path:`/v0.10/endpoint/${e}/access_list`},t,r)},Qt=function(e,t,r){return Ce({service:oe,scope:ie.ALL,path:`/v0.10/endpoint/${e}/access`,method:Ie.POST},t,r)},Zt=function({endpoint_xid:e,id:t},r,n){return Ce({service:oe,scope:ie.ALL,path:`/v0.10/endpoint/${e}/access/${t}`},r,n)},er=function({endpoint_xid:e,id:t},r,n){return Ce({service:oe,scope:ie.ALL,path:`/v0.10/endpoint/${e}/access/${t}`,method:Ie.PUT},r,n)},tr=function({endpoint_xid:e,id:t},r,n){return Ce({service:oe,scope:ie.ALL,path:`/v0.10/endpoint/${e}/access/${t}`,method:Ie.DELETE},r,n)},rr=function(e,t){return Ce({service:oe,scope:ie.ALL,path:"/v0.10/bookmark_list"},e,t)},nr=function(e,t){return Ce({service:oe,scope:ie.ALL,path:"/v0.10/bookmark",method:Ie.POST},e,t)},or=function(e,t,r){return Ce({service:oe,scope:ie.ALL,path:`/v0.10/bookmark/${e}`},t,r)},ir=function(e,t,r){return Ce({service:oe,scope:ie.ALL,path:`/v0.10/bookmark/${e}`,method:Ie.PUT},t,r)},sr=function(e,t,r){return Ce({service:oe,scope:ie.ALL,path:`/v0.10/bookmark/${e}`,method:Ie.DELETE},t,r)},ar=function(e,t,r){return Ce({service:oe,scope:ie.ALL,path:`/v0.10/endpoint_manager/endpoint/${e}`},t,r)},cr=function(e,t,r){return Ce({service:oe,scope:ie.ALL,path:`/v0.10/endpoint_manager/endpoint/${e}/hosted_endpoint_list`},t,r)},ur=function(e,t,r){return Ce({service:oe,scope:ie.ALL,path:`/v0.10/endpoint_manager/endpoint/${e}/access_list`},t,r)},pr=function(e={},t){return Ce({service:oe,scope:ie.ALL,path:"/v0.10/endpoint_manager/monitored_endpoints"},e,t)},hr=function(e,t){return Ce({service:oe,scope:ie.ALL,path:"/v0.10/endpoint_manager/pause_rule_list"},e,t)},dr=function(e,t){return Ce({service:oe,scope:ie.ALL,path:"/v0.10/endpoint_manager/pause_rule",method:Ie.POST},e,t)},lr=function(e,t,r){return Ce({service:oe,scope:ie.ALL,path:`/v0.10/endpoint_manager/pause_rule/${e}`},t,r)},fr=function(e,t,r){return Ce({service:oe,scope:ie.ALL,path:`/v0.10/endpoint_manager/pause_rule/${e}`,method:Ie.PUT},t,r)},gr=function(e,t,r){return Ce({service:oe,scope:ie.ALL,path:`/v0.10/endpoint_manager/pause_rule/${e}`,method:Ie.DELETE},t,r)},vr=function(e={},t){return Ce({service:oe,scope:ie.ALL,path:"/v0.10/task_list"},e,t)},yr=function(e,t,r){return Ce({service:oe,scope:ie.ALL,path:`/v0.10/endpoint_manager/task/${e}`},t,r)},mr=function(e,t){return Ce({service:oe,scope:ie.ALL,path:"/v0.10/endpoint_manager/admin_cancel",method:Ie.POST},e,t)},br=function(e,t,r){return Ce({service:oe,scope:ie.ALL,path:`/v0.10/endpoint_manager/admin_cancel/${e}`,method:Ie.POST},t,r)},_r=function(e,t,r){return Ce({service:oe,scope:ie.ALL,path:`/v0.10/endpoint_manager/task/${e}/event_list`},t,r)},wr=function(e,t,r){return Ce({service:oe,scope:ie.ALL,path:`/v0.10/endpoint_manager/task/${e}/successful_transfers`},t,r)},Ar=function(e,t,r){return Ce({service:oe,scope:ie.ALL,path:`/v0.10/endpoint_manager/task/${e}/skipped_errors`},t,r)},Tr=function(e,t){return Ce({service:oe,scope:ie.ALL,path:"/v0.10/endpoint_manager/admin_pause",method:Ie.POST},e,t)},Sr=function(e,t){return Ce({service:oe,scope:ie.ALL,path:"/v0.10/endpoint_manager/admin_resume",method:Ie.POST},e,t)},Or=function(e,t,r){return Ce({service:oe,scope:ie.ALL,path:`/v0.10/endpoint_manager/task/${e}/pause_info`},t,r)},Er=t,Lr=function(e,t,r){return Ce({service:ge,scope:ye.SEARCH,path:`/v1/index/${e}/search`},t,r)},kr=function(e,t,r){return Ce({service:ge,scope:ye.SEARCH,path:`/v1/index/${e}/search`,method:Ie.POST},t,r)},Pr=function(e,t,r){return Ce({service:ge,scope:ye.SEARCH,path:`/v1/index/${e}/subject`},t,r)},Rr=function(e,t,r){return Ce({service:ge,scope:ye.SEARCH,path:`/v1/index/${e}/entry`},t,r)},jr=a,xr=function(e,t){return Ce({scope:fe.ALL,path:"/v2/groups/my_groups",service:de},e,t)},Ir=function(e,t,r){return Ce({service:de,scope:fe.ALL,path:`/v2/groups/${e}`},t,r)},$r=function(e,t,r){return Ce({scope:fe.ALL,path:`/v2/groups/${e}/policies`,service:de},t,r)},Ur=function(e,t,r){if(!(null==t?void 0:t.payload))throw new Error("payload is required.");return Ce({service:de,scope:fe.ALL,path:`/v2/groups/${e}`,method:Ie.POST},t,r)},Cr=s,Dr=function(e,t){return Ce({service:ae,scope:ue.VIEW_FLOWS,path:"/flows"},e,t)},Br=function(e,t,r){return Ce({service:ae,scope:ue.VIEW_FLOWS,path:`/flows/${e}`},t,r)},Mr=function(e,t,r){return Ce({scope:ue.MANAGE_FLOWS,service:ae,path:`/flows/${e}`,method:Ie.DELETE},t,r)},Nr=function(e={},t){return Ce({service:ae,scope:ue.RUN_MANAGE,path:"/runs"},e,t)},Hr=o,Fr=function(e,t,r){return Ce({service:e,scope:bn(e),path:"/api/collections"},t,r)},qr=function(e,t,r,n){return Ce({service:e,scope:bn(e),path:`/api/collections/${t}`},r,n)},zr=function(e,t,r,n){return Ce({service:e,scope:bn(e),path:`/api/collections/${t}`,method:Ie.DELETE},r,n)},Gr=function(e,t,r){return Ce({service:e,scope:bn(e),path:"/api/collections",method:Ie.POST},t,r)},Wr=function(e,t,r,n){return Ce({service:e,scope:bn(e),path:`/api/collections/${t}`,method:Ie.PUT},r,n)},Vr=function(e,t,r,n){return Ce({service:e,scope:bn(e),path:`/api/collections/${t}`,method:Ie.PATCH},r,n)},Jr=function(e,t,r,n){return Ce({service:e,scope:bn(e),path:`/api/collections/${t}/owner_string`,method:Ie.PUT},r,n)},Yr=function(e,t,r,n){return Ce({service:e,scope:bn(e),path:`/api/collections/${t}/owner_string`,method:Ie.DELETE},r,n)},Kr=function(e,t,r){return Ce({service:e,scope:bn(e),path:"/api/endpoint"},t,r)},Xr=function(e,t,r){return Ce({service:e,scope:bn(e),path:"/api/endpoint",method:Ie.PUT},t,r)},Qr=function(e,t,r){return Ce({service:e,scope:bn(e),path:"/api/endpoint",method:Ie.PATCH},t,r)},Zr=function(e,t,r){return Ce({service:e,scope:bn(e),path:"/api/endpoint/subscription_id",method:Ie.PUT},t,r)},en=function(e,t,r){return Ce({service:e,scope:bn(e),path:"/api/roles"},t,r)},tn=function(e,t,r,n){return Ce({service:e,scope:bn(e),path:`/api/roles/${t}`},r,n)},rn=function(e,t,r,n){return Ce({service:e,scope:bn(e),path:`/api/roles/${t}`,method:Ie.DELETE},r,n)},nn=function(e,t,r){return Ce({service:e,scope:bn(e),path:"/api/roles",method:Ie.POST},t,r)},on=function(e,t,r){return Ce({service:e,scope:bn(e),path:"/api/storage_gateways"},t,r)},sn=function(e,t,r,n){return Ce({service:e,scope:bn(e),path:`/api/storage_gateways/${t}`},r,n)},an=function(e,t,r,n){return Ce({service:e,scope:bn(e),path:`/api/storage_gateways/${t}`,method:Ie.DELETE},r,n)},cn=function(e,t,r){return Ce({service:e,scope:bn(e),path:"/api/storage_gateways",method:Ie.POST},t,r)},un=function(e,t,r,n){return Ce({service:e,scope:bn(e),path:`/api/storage_gateways/${t}`,method:Ie.PUT},r,n)},pn=function(e,t,r,n){return Ce({service:e,scope:bn(e),path:`/api/storage_gateways/${t}`,method:Ie.PATCH},r,n)},hn=function(e,t,r){return Ce({service:e,scope:bn(e),path:"/api/user_credentials"},t,r)},dn=function(e,t,r,n){return Ce({service:e,scope:bn(e),path:`/api/user_credentials/${t}`},r,n)},ln=function(e,t,r,n){return Ce({service:e,scope:bn(e),path:`/api/user_credentials/${t}`,method:Ie.DELETE},r,n)},fn=function(e,t,r){return Ce({service:e,scope:bn(e),path:"/api/user_credentials",method:Ie.POST},t,r)},gn=function(e,t,r,n){return Ce({service:e,scope:bn(e),path:`/api/user_credentials/${t}`,method:Ie.PUT},r,n)},vn=function(e,t,r,n){return Ce({service:e,scope:bn(e),path:`/api/user_credentials/${t}`,method:Ie.PATCH},r,n)},yn=function(e,t,r){return Ce({service:e,scope:bn(e),path:"/api/info"},t,r)},mn={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 bn(e){return mn.HIGH_ASSURANCE.replace("<ENDPOINT_ID>",e.endpoint_id)}const _n=function(e,t){return Ce({service:pe,scope:"https://auth.globus.org/scopes/524230d7-ea86-4a52-8312-86065a9e0417/timer",path:"/v2/timer",method:Ie.POST},e,t)},wn=i,An=function(e,t){return Ce({service:me,scope:_e.ALL,path:"/v2/endpoints",method:Ie.GET},e,t)},Tn=function(e,t,r){return Ce({service:me,scope:_e.ALL,path:`/v2/endpoints/${e}`,method:Ie.GET},t,r)},Sn=function(e,t,r){return Ce({service:me,scope:_e.ALL,path:`/v2/endpoints/${e}/status`},t,r)},On=c})(),globus=n})();