@globus/sdk 4.0.0-rc.3 → 4.1.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 (312) hide show
  1. package/README.md +9 -1
  2. package/dist/cjs/core/authorization/index.js +1 -1
  3. package/dist/cjs/core/authorization/index.js.map +1 -1
  4. package/dist/cjs/core/info/index.js +1 -1
  5. package/dist/cjs/core/info/index.js.map +1 -1
  6. package/dist/cjs/index.js +120 -38
  7. package/dist/cjs/index.js.map +4 -4
  8. package/dist/cjs/services/globus-connect-server/client.js +117 -37
  9. package/dist/cjs/services/globus-connect-server/client.js.map +4 -4
  10. package/dist/esm/core/info/version.d.ts +1 -1
  11. package/dist/esm/core/info/version.js +1 -1
  12. package/dist/esm/package.json +1 -1
  13. package/dist/esm/services/globus-connect-server/client.d.ts +205 -0
  14. package/dist/esm/services/globus-connect-server/client.d.ts.map +1 -1
  15. package/dist/esm/services/globus-connect-server/client.js +9 -0
  16. package/dist/esm/services/globus-connect-server/client.js.map +1 -1
  17. package/dist/esm/services/globus-connect-server/index.d.ts +1 -0
  18. package/dist/esm/services/globus-connect-server/index.d.ts.map +1 -1
  19. package/dist/esm/services/globus-connect-server/index.js +1 -0
  20. package/dist/esm/services/globus-connect-server/index.js.map +1 -1
  21. package/dist/{cjs/services/globus-connect-server/service/user-credentials.d.ts → esm/services/globus-connect-server/service/nodes.d.ts} +21 -21
  22. package/dist/esm/services/globus-connect-server/service/nodes.d.ts.map +1 -0
  23. package/dist/esm/services/globus-connect-server/service/nodes.js +67 -0
  24. package/dist/esm/services/globus-connect-server/service/nodes.js.map +1 -0
  25. package/dist/umd/globus.production.js +2 -2
  26. package/dist/umd/globus.production.js.map +4 -4
  27. package/package.json +1 -1
  28. package/dist/cjs/apps/web.d.ts +0 -29
  29. package/dist/cjs/apps/web.d.ts.map +0 -1
  30. package/dist/cjs/apps/web.js +0 -51
  31. package/dist/cjs/apps/web.js.map +0 -1
  32. package/dist/cjs/constants.d.ts +0 -16
  33. package/dist/cjs/constants.d.ts.map +0 -1
  34. package/dist/cjs/core/authorization/AuthorizationManager.d.ts +0 -189
  35. package/dist/cjs/core/authorization/AuthorizationManager.d.ts.map +0 -1
  36. package/dist/cjs/core/authorization/AuthorizationManager.js +0 -361
  37. package/dist/cjs/core/authorization/AuthorizationManager.js.map +0 -1
  38. package/dist/cjs/core/authorization/Event.d.ts +0 -16
  39. package/dist/cjs/core/authorization/Event.d.ts.map +0 -1
  40. package/dist/cjs/core/authorization/Event.js +0 -48
  41. package/dist/cjs/core/authorization/Event.js.map +0 -1
  42. package/dist/cjs/core/authorization/RedirectTransport.d.ts +0 -26
  43. package/dist/cjs/core/authorization/RedirectTransport.d.ts.map +0 -1
  44. package/dist/cjs/core/authorization/RedirectTransport.js +0 -100
  45. package/dist/cjs/core/authorization/RedirectTransport.js.map +0 -1
  46. package/dist/cjs/core/authorization/TokenLookup.d.ts +0 -19
  47. package/dist/cjs/core/authorization/TokenLookup.d.ts.map +0 -1
  48. package/dist/cjs/core/authorization/TokenLookup.js +0 -86
  49. package/dist/cjs/core/authorization/TokenLookup.js.map +0 -1
  50. package/dist/cjs/core/authorization/index.d.ts +0 -14
  51. package/dist/cjs/core/authorization/index.d.ts.map +0 -1
  52. package/dist/cjs/core/errors.d.ts +0 -55
  53. package/dist/cjs/core/errors.d.ts.map +0 -1
  54. package/dist/cjs/core/errors.js +0 -65
  55. package/dist/cjs/core/errors.js.map +0 -1
  56. package/dist/cjs/core/global.d.ts +0 -72
  57. package/dist/cjs/core/global.d.ts.map +0 -1
  58. package/dist/cjs/core/global.js +0 -149
  59. package/dist/cjs/core/global.js.map +0 -1
  60. package/dist/cjs/core/info/index.d.ts +0 -23
  61. package/dist/cjs/core/info/index.d.ts.map +0 -1
  62. package/dist/cjs/core/info/private.d.ts +0 -26
  63. package/dist/cjs/core/info/private.d.ts.map +0 -1
  64. package/dist/cjs/core/info/private.js +0 -48
  65. package/dist/cjs/core/info/private.js.map +0 -1
  66. package/dist/cjs/core/info/version.d.ts +0 -2
  67. package/dist/cjs/core/info/version.d.ts.map +0 -1
  68. package/dist/cjs/core/info/version.js +0 -7
  69. package/dist/cjs/core/info/version.js.map +0 -1
  70. package/dist/cjs/core/logger.d.ts +0 -31
  71. package/dist/cjs/core/logger.d.ts.map +0 -1
  72. package/dist/cjs/core/logger.js +0 -53
  73. package/dist/cjs/core/logger.js.map +0 -1
  74. package/dist/cjs/core/storage/index.d.ts +0 -29
  75. package/dist/cjs/core/storage/index.d.ts.map +0 -1
  76. package/dist/cjs/core/storage/index.js +0 -42
  77. package/dist/cjs/core/storage/index.js.map +0 -1
  78. package/dist/cjs/core/storage/local-storage.d.ts +0 -10
  79. package/dist/cjs/core/storage/local-storage.d.ts.map +0 -1
  80. package/dist/cjs/core/storage/local-storage.js +0 -32
  81. package/dist/cjs/core/storage/local-storage.js.map +0 -1
  82. package/dist/cjs/core/storage/memory.d.ts +0 -10
  83. package/dist/cjs/core/storage/memory.d.ts.map +0 -1
  84. package/dist/cjs/core/storage/memory.js +0 -38
  85. package/dist/cjs/core/storage/memory.js.map +0 -1
  86. package/dist/cjs/core/url.d.ts +0 -31
  87. package/dist/cjs/core/url.d.ts.map +0 -1
  88. package/dist/cjs/core/url.js +0 -59
  89. package/dist/cjs/core/url.js.map +0 -1
  90. package/dist/cjs/index.d.ts +0 -76
  91. package/dist/cjs/index.d.ts.map +0 -1
  92. package/dist/cjs/services/auth/config.d.ts +0 -16
  93. package/dist/cjs/services/auth/config.d.ts.map +0 -1
  94. package/dist/cjs/services/auth/config.js +0 -31
  95. package/dist/cjs/services/auth/config.js.map +0 -1
  96. package/dist/cjs/services/auth/index.d.ts +0 -28
  97. package/dist/cjs/services/auth/index.d.ts.map +0 -1
  98. package/dist/cjs/services/auth/index.js +0 -65
  99. package/dist/cjs/services/auth/index.js.map +0 -1
  100. package/dist/cjs/services/auth/service/identities.d.ts +0 -21
  101. package/dist/cjs/services/auth/service/identities.d.ts.map +0 -1
  102. package/dist/cjs/services/auth/service/identities.js +0 -28
  103. package/dist/cjs/services/auth/service/identities.js.map +0 -1
  104. package/dist/cjs/services/auth/service/oauth2/index.d.ts +0 -5
  105. package/dist/cjs/services/auth/service/oauth2/index.d.ts.map +0 -1
  106. package/dist/cjs/services/auth/service/oauth2/index.js +0 -38
  107. package/dist/cjs/services/auth/service/oauth2/index.js.map +0 -1
  108. package/dist/cjs/services/auth/service/oauth2/token.d.ts +0 -53
  109. package/dist/cjs/services/auth/service/oauth2/token.d.ts.map +0 -1
  110. package/dist/cjs/services/auth/service/oauth2/token.js +0 -88
  111. package/dist/cjs/services/auth/service/oauth2/token.js.map +0 -1
  112. package/dist/cjs/services/auth/types.d.ts +0 -43
  113. package/dist/cjs/services/auth/types.d.ts.map +0 -1
  114. package/dist/cjs/services/auth/types.js +0 -3
  115. package/dist/cjs/services/auth/types.js.map +0 -1
  116. package/dist/cjs/services/compute/config.d.ts +0 -7
  117. package/dist/cjs/services/compute/config.d.ts.map +0 -1
  118. package/dist/cjs/services/compute/config.js +0 -16
  119. package/dist/cjs/services/compute/config.js.map +0 -1
  120. package/dist/cjs/services/compute/index.d.ts +0 -14
  121. package/dist/cjs/services/compute/index.d.ts.map +0 -1
  122. package/dist/cjs/services/compute/index.js +0 -40
  123. package/dist/cjs/services/compute/index.js.map +0 -1
  124. package/dist/cjs/services/compute/service/endpoints.d.ts +0 -20
  125. package/dist/cjs/services/compute/service/endpoints.d.ts.map +0 -1
  126. package/dist/cjs/services/compute/service/endpoints.js +0 -29
  127. package/dist/cjs/services/compute/service/endpoints.js.map +0 -1
  128. package/dist/cjs/services/flows/config.d.ts +0 -14
  129. package/dist/cjs/services/flows/config.d.ts.map +0 -1
  130. package/dist/cjs/services/flows/config.js +0 -23
  131. package/dist/cjs/services/flows/config.js.map +0 -1
  132. package/dist/cjs/services/flows/index.d.ts +0 -15
  133. package/dist/cjs/services/flows/index.d.ts.map +0 -1
  134. package/dist/cjs/services/flows/index.js +0 -41
  135. package/dist/cjs/services/flows/index.js.map +0 -1
  136. package/dist/cjs/services/flows/service/flows.d.ts +0 -40
  137. package/dist/cjs/services/flows/service/flows.d.ts.map +0 -1
  138. package/dist/cjs/services/flows/service/flows.js +0 -49
  139. package/dist/cjs/services/flows/service/flows.js.map +0 -1
  140. package/dist/cjs/services/flows/service/runs.d.ts +0 -31
  141. package/dist/cjs/services/flows/service/runs.d.ts.map +0 -1
  142. package/dist/cjs/services/flows/service/runs.js +0 -39
  143. package/dist/cjs/services/flows/service/runs.js.map +0 -1
  144. package/dist/cjs/services/globus-connect-server/client.d.ts +0 -1451
  145. package/dist/cjs/services/globus-connect-server/client.d.ts.map +0 -1
  146. package/dist/cjs/services/globus-connect-server/constants.d.ts +0 -22
  147. package/dist/cjs/services/globus-connect-server/constants.d.ts.map +0 -1
  148. package/dist/cjs/services/globus-connect-server/constants.js +0 -84
  149. package/dist/cjs/services/globus-connect-server/constants.js.map +0 -1
  150. package/dist/cjs/services/globus-connect-server/index.d.ts +0 -49
  151. package/dist/cjs/services/globus-connect-server/index.d.ts.map +0 -1
  152. package/dist/cjs/services/globus-connect-server/index.js +0 -45
  153. package/dist/cjs/services/globus-connect-server/index.js.map +0 -1
  154. package/dist/cjs/services/globus-connect-server/service/collections.d.ts +0 -74
  155. package/dist/cjs/services/globus-connect-server/service/collections.d.ts.map +0 -1
  156. package/dist/cjs/services/globus-connect-server/service/collections.js +0 -92
  157. package/dist/cjs/services/globus-connect-server/service/collections.js.map +0 -1
  158. package/dist/cjs/services/globus-connect-server/service/endpoint.d.ts +0 -71
  159. package/dist/cjs/services/globus-connect-server/service/endpoint.d.ts.map +0 -1
  160. package/dist/cjs/services/globus-connect-server/service/endpoint.js +0 -82
  161. package/dist/cjs/services/globus-connect-server/service/endpoint.js.map +0 -1
  162. package/dist/cjs/services/globus-connect-server/service/https.d.ts +0 -35
  163. package/dist/cjs/services/globus-connect-server/service/https.d.ts.map +0 -1
  164. package/dist/cjs/services/globus-connect-server/service/https.js +0 -38
  165. package/dist/cjs/services/globus-connect-server/service/https.js.map +0 -1
  166. package/dist/cjs/services/globus-connect-server/service/roles.d.ts +0 -41
  167. package/dist/cjs/services/globus-connect-server/service/roles.d.ts.map +0 -1
  168. package/dist/cjs/services/globus-connect-server/service/roles.js +0 -48
  169. package/dist/cjs/services/globus-connect-server/service/roles.js.map +0 -1
  170. package/dist/cjs/services/globus-connect-server/service/storage-gateways.d.ts +0 -58
  171. package/dist/cjs/services/globus-connect-server/service/storage-gateways.d.ts.map +0 -1
  172. package/dist/cjs/services/globus-connect-server/service/storage-gateways.js +0 -70
  173. package/dist/cjs/services/globus-connect-server/service/storage-gateways.js.map +0 -1
  174. package/dist/cjs/services/globus-connect-server/service/user-credentials.d.ts.map +0 -1
  175. package/dist/cjs/services/globus-connect-server/service/user-credentials.js +0 -70
  176. package/dist/cjs/services/globus-connect-server/service/user-credentials.js.map +0 -1
  177. package/dist/cjs/services/globus-connect-server/service/versioning.d.ts +0 -14
  178. package/dist/cjs/services/globus-connect-server/service/versioning.d.ts.map +0 -1
  179. package/dist/cjs/services/globus-connect-server/service/versioning.js +0 -17
  180. package/dist/cjs/services/globus-connect-server/service/versioning.js.map +0 -1
  181. package/dist/cjs/services/groups/config.d.ts +0 -11
  182. package/dist/cjs/services/groups/config.d.ts.map +0 -1
  183. package/dist/cjs/services/groups/config.js +0 -20
  184. package/dist/cjs/services/groups/config.js.map +0 -1
  185. package/dist/cjs/services/groups/index.d.ts +0 -19
  186. package/dist/cjs/services/groups/index.d.ts.map +0 -1
  187. package/dist/cjs/services/groups/index.js +0 -45
  188. package/dist/cjs/services/groups/index.js.map +0 -1
  189. package/dist/cjs/services/groups/service/groups.d.ts +0 -23
  190. package/dist/cjs/services/groups/service/groups.d.ts.map +0 -1
  191. package/dist/cjs/services/groups/service/groups.js +0 -26
  192. package/dist/cjs/services/groups/service/groups.js.map +0 -1
  193. package/dist/cjs/services/groups/service/membership.d.ts +0 -13
  194. package/dist/cjs/services/groups/service/membership.d.ts.map +0 -1
  195. package/dist/cjs/services/groups/service/membership.js +0 -20
  196. package/dist/cjs/services/groups/service/membership.js.map +0 -1
  197. package/dist/cjs/services/groups/service/policies.d.ts +0 -13
  198. package/dist/cjs/services/groups/service/policies.d.ts.map +0 -1
  199. package/dist/cjs/services/groups/service/policies.js +0 -16
  200. package/dist/cjs/services/groups/service/policies.js.map +0 -1
  201. package/dist/cjs/services/search/config.d.ts +0 -12
  202. package/dist/cjs/services/search/config.d.ts.map +0 -1
  203. package/dist/cjs/services/search/config.js +0 -21
  204. package/dist/cjs/services/search/config.js.map +0 -1
  205. package/dist/cjs/services/search/index.d.ts +0 -17
  206. package/dist/cjs/services/search/index.d.ts.map +0 -1
  207. package/dist/cjs/services/search/index.js +0 -43
  208. package/dist/cjs/services/search/index.js.map +0 -1
  209. package/dist/cjs/services/search/service/entry.d.ts +0 -22
  210. package/dist/cjs/services/search/service/entry.d.ts.map +0 -1
  211. package/dist/cjs/services/search/service/entry.js +0 -19
  212. package/dist/cjs/services/search/service/entry.js.map +0 -1
  213. package/dist/cjs/services/search/service/query.d.ts +0 -158
  214. package/dist/cjs/services/search/service/query.d.ts.map +0 -1
  215. package/dist/cjs/services/search/service/query.js +0 -31
  216. package/dist/cjs/services/search/service/query.js.map +0 -1
  217. package/dist/cjs/services/search/service/search-index.d.ts +0 -131
  218. package/dist/cjs/services/search/service/search-index.d.ts.map +0 -1
  219. package/dist/cjs/services/search/service/search-index.js +0 -67
  220. package/dist/cjs/services/search/service/search-index.js.map +0 -1
  221. package/dist/cjs/services/search/service/subject.d.ts +0 -21
  222. package/dist/cjs/services/search/service/subject.d.ts.map +0 -1
  223. package/dist/cjs/services/search/service/subject.js +0 -19
  224. package/dist/cjs/services/search/service/subject.js.map +0 -1
  225. package/dist/cjs/services/search/types.d.ts +0 -12
  226. package/dist/cjs/services/search/types.d.ts.map +0 -1
  227. package/dist/cjs/services/search/types.js +0 -3
  228. package/dist/cjs/services/search/types.js.map +0 -1
  229. package/dist/cjs/services/shared.d.ts +0 -71
  230. package/dist/cjs/services/shared.d.ts.map +0 -1
  231. package/dist/cjs/services/shared.js +0 -183
  232. package/dist/cjs/services/shared.js.map +0 -1
  233. package/dist/cjs/services/timer/config.d.ts +0 -4
  234. package/dist/cjs/services/timer/config.d.ts.map +0 -1
  235. package/dist/cjs/services/timer/config.js +0 -13
  236. package/dist/cjs/services/timer/config.js.map +0 -1
  237. package/dist/cjs/services/timer/index.d.ts +0 -15
  238. package/dist/cjs/services/timer/index.d.ts.map +0 -1
  239. package/dist/cjs/services/timer/index.js +0 -41
  240. package/dist/cjs/services/timer/index.js.map +0 -1
  241. package/dist/cjs/services/timer/service/timer.d.ts +0 -6
  242. package/dist/cjs/services/timer/service/timer.d.ts.map +0 -1
  243. package/dist/cjs/services/timer/service/timer.js +0 -14
  244. package/dist/cjs/services/timer/service/timer.js.map +0 -1
  245. package/dist/cjs/services/transfer/config.d.ts +0 -7
  246. package/dist/cjs/services/transfer/config.d.ts.map +0 -1
  247. package/dist/cjs/services/transfer/config.js +0 -16
  248. package/dist/cjs/services/transfer/config.js.map +0 -1
  249. package/dist/cjs/services/transfer/index.d.ts +0 -23
  250. package/dist/cjs/services/transfer/index.d.ts.map +0 -1
  251. package/dist/cjs/services/transfer/index.js +0 -49
  252. package/dist/cjs/services/transfer/index.js.map +0 -1
  253. package/dist/cjs/services/transfer/service/access.d.ts +0 -73
  254. package/dist/cjs/services/transfer/service/access.d.ts.map +0 -1
  255. package/dist/cjs/services/transfer/service/access.js +0 -59
  256. package/dist/cjs/services/transfer/service/access.js.map +0 -1
  257. package/dist/cjs/services/transfer/service/collection-bookmarks.d.ts +0 -53
  258. package/dist/cjs/services/transfer/service/collection-bookmarks.d.ts.map +0 -1
  259. package/dist/cjs/services/transfer/service/collection-bookmarks.js +0 -59
  260. package/dist/cjs/services/transfer/service/collection-bookmarks.js.map +0 -1
  261. package/dist/cjs/services/transfer/service/endpoint-manager/endpoint.d.ts +0 -43
  262. package/dist/cjs/services/transfer/service/endpoint-manager/endpoint.d.ts.map +0 -1
  263. package/dist/cjs/services/transfer/service/endpoint-manager/endpoint.js +0 -47
  264. package/dist/cjs/services/transfer/service/endpoint-manager/endpoint.js.map +0 -1
  265. package/dist/cjs/services/transfer/service/endpoint-manager/index.d.ts +0 -4
  266. package/dist/cjs/services/transfer/service/endpoint-manager/index.d.ts.map +0 -1
  267. package/dist/cjs/services/transfer/service/endpoint-manager/index.js +0 -30
  268. package/dist/cjs/services/transfer/service/endpoint-manager/index.js.map +0 -1
  269. package/dist/cjs/services/transfer/service/endpoint-manager/pause-rule.d.ts +0 -59
  270. package/dist/cjs/services/transfer/service/endpoint-manager/pause-rule.d.ts.map +0 -1
  271. package/dist/cjs/services/transfer/service/endpoint-manager/pause-rule.js +0 -61
  272. package/dist/cjs/services/transfer/service/endpoint-manager/pause-rule.js.map +0 -1
  273. package/dist/cjs/services/transfer/service/endpoint-manager/task.d.ts +0 -96
  274. package/dist/cjs/services/transfer/service/endpoint-manager/task.d.ts.map +0 -1
  275. package/dist/cjs/services/transfer/service/endpoint-manager/task.js +0 -110
  276. package/dist/cjs/services/transfer/service/endpoint-manager/task.js.map +0 -1
  277. package/dist/cjs/services/transfer/service/endpoint-search.d.ts +0 -15
  278. package/dist/cjs/services/transfer/service/endpoint-search.d.ts.map +0 -1
  279. package/dist/cjs/services/transfer/service/endpoint-search.js +0 -29
  280. package/dist/cjs/services/transfer/service/endpoint-search.js.map +0 -1
  281. package/dist/cjs/services/transfer/service/endpoint.d.ts +0 -61
  282. package/dist/cjs/services/transfer/service/endpoint.d.ts.map +0 -1
  283. package/dist/cjs/services/transfer/service/endpoint.js +0 -71
  284. package/dist/cjs/services/transfer/service/endpoint.js.map +0 -1
  285. package/dist/cjs/services/transfer/service/file-operations.d.ts +0 -114
  286. package/dist/cjs/services/transfer/service/file-operations.d.ts.map +0 -1
  287. package/dist/cjs/services/transfer/service/file-operations.js +0 -88
  288. package/dist/cjs/services/transfer/service/file-operations.js.map +0 -1
  289. package/dist/cjs/services/transfer/service/task-submission.d.ts +0 -85
  290. package/dist/cjs/services/transfer/service/task-submission.d.ts.map +0 -1
  291. package/dist/cjs/services/transfer/service/task-submission.js +0 -53
  292. package/dist/cjs/services/transfer/service/task-submission.js.map +0 -1
  293. package/dist/cjs/services/transfer/service/task.d.ts +0 -106
  294. package/dist/cjs/services/transfer/service/task.d.ts.map +0 -1
  295. package/dist/cjs/services/transfer/service/task.js +0 -101
  296. package/dist/cjs/services/transfer/service/task.js.map +0 -1
  297. package/dist/cjs/services/transfer/shared.d.ts +0 -3
  298. package/dist/cjs/services/transfer/shared.d.ts.map +0 -1
  299. package/dist/cjs/services/transfer/shared.js +0 -13
  300. package/dist/cjs/services/transfer/shared.js.map +0 -1
  301. package/dist/cjs/services/transfer/types.d.ts +0 -364
  302. package/dist/cjs/services/transfer/types.d.ts.map +0 -1
  303. package/dist/cjs/services/transfer/types.js +0 -3
  304. package/dist/cjs/services/transfer/types.js.map +0 -1
  305. package/dist/cjs/services/transfer/utils.d.ts +0 -28
  306. package/dist/cjs/services/transfer/utils.d.ts.map +0 -1
  307. package/dist/cjs/services/transfer/utils.js +0 -98
  308. package/dist/cjs/services/transfer/utils.js.map +0 -1
  309. package/dist/cjs/services/types.d.ts +0 -84
  310. package/dist/cjs/services/types.d.ts.map +0 -1
  311. package/dist/cjs/services/types.js +0 -3
  312. package/dist/cjs/services/types.js.map +0 -1
@@ -1,3 +1,3 @@
1
- var globus=(()=>{var Pr=Object.create;var ie=Object.defineProperty;var xr=Object.getOwnPropertyDescriptor;var Dr=Object.getOwnPropertyNames;var Ar=Object.getPrototypeOf,Mr=Object.prototype.hasOwnProperty;var wr=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),u=(e,t)=>{for(var r in t)ie(e,r,{get:t[r],enumerable:!0})},Ut=(e,t,r,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let c of Dr(t))!Mr.call(e,c)&&c!==r&&ie(e,c,{get:()=>t[c],enumerable:!(s=xr(t,c))||s.enumerable});return e};var kr=(e,t,r)=>(r=e!=null?Pr(Ar(e)):{},Ut(t||!e||!e.__esModule?ie(r,"default",{value:e,enumerable:!0}):r,e)),Cr=e=>Ut(ie({},"__esModule",{value:!0}),e);var tr=wr((G,er)=>{var ge=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,ye=function(){function e(){this.fetch=!1,this.DOMException=ge.DOMException}return e.prototype=ge,new e}();(function(e){var t=function(r){var s=typeof e<"u"&&e||typeof self<"u"&&self||typeof s<"u"&&s,c={searchParams:"URLSearchParams"in s,iterable:"Symbol"in s&&"iterator"in Symbol,blob:"FileReader"in s&&"Blob"in s&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in s,arrayBuffer:"ArrayBuffer"in s};function y(n){return n&&DataView.prototype.isPrototypeOf(n)}if(c.arrayBuffer)var O=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],R=ArrayBuffer.isView||function(n){return n&&O.indexOf(Object.prototype.toString.call(n))>-1};function b(n){if(typeof n!="string"&&(n=String(n)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(n)||n==="")throw new TypeError('Invalid character in header field name: "'+n+'"');return n.toLowerCase()}function U(n){return typeof n!="string"&&(n=String(n)),n}function C(n){var i={next:function(){var l=n.shift();return{done:l===void 0,value:l}}};return c.iterable&&(i[Symbol.iterator]=function(){return i}),i}function f(n){this.map={},n instanceof f?n.forEach(function(i,l){this.append(l,i)},this):Array.isArray(n)?n.forEach(function(i){this.append(i[0],i[1])},this):n&&Object.getOwnPropertyNames(n).forEach(function(i){this.append(i,n[i])},this)}f.prototype.append=function(n,i){n=b(n),i=U(i);var l=this.map[n];this.map[n]=l?l+", "+i:i},f.prototype.delete=function(n){delete this.map[b(n)]},f.prototype.get=function(n){return n=b(n),this.has(n)?this.map[n]:null},f.prototype.has=function(n){return this.map.hasOwnProperty(b(n))},f.prototype.set=function(n,i){this.map[b(n)]=U(i)},f.prototype.forEach=function(n,i){for(var l in this.map)this.map.hasOwnProperty(l)&&n.call(i,this.map[l],l,this)},f.prototype.keys=function(){var n=[];return this.forEach(function(i,l){n.push(l)}),C(n)},f.prototype.values=function(){var n=[];return this.forEach(function(i){n.push(i)}),C(n)},f.prototype.entries=function(){var n=[];return this.forEach(function(i,l){n.push([l,i])}),C(n)},c.iterable&&(f.prototype[Symbol.iterator]=f.prototype.entries);function w(n){if(n.bodyUsed)return Promise.reject(new TypeError("Already read"));n.bodyUsed=!0}function B(n){return new Promise(function(i,l){n.onload=function(){i(n.result)},n.onerror=function(){l(n.error)}})}function Gt(n){var i=new FileReader,l=B(i);return i.readAsArrayBuffer(n),l}function H(n){var i=new FileReader,l=B(i);return i.readAsText(n),l}function vr(n){for(var i=new Uint8Array(n),l=new Array(i.length),h=0;h<i.length;h++)l[h]=String.fromCharCode(i[h]);return l.join("")}function Ft(n){if(n.slice)return n.slice(0);var i=new Uint8Array(n.byteLength);return i.set(new Uint8Array(n)),i.buffer}function jt(){return this.bodyUsed=!1,this._initBody=function(n){this.bodyUsed=this.bodyUsed,this._bodyInit=n,n?typeof n=="string"?this._bodyText=n:c.blob&&Blob.prototype.isPrototypeOf(n)?this._bodyBlob=n:c.formData&&FormData.prototype.isPrototypeOf(n)?this._bodyFormData=n:c.searchParams&&URLSearchParams.prototype.isPrototypeOf(n)?this._bodyText=n.toString():c.arrayBuffer&&c.blob&&y(n)?(this._bodyArrayBuffer=Ft(n.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):c.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(n)||R(n))?this._bodyArrayBuffer=Ft(n):this._bodyText=n=Object.prototype.toString.call(n):this._bodyText="",this.headers.get("content-type")||(typeof n=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):c.searchParams&&URLSearchParams.prototype.isPrototypeOf(n)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},c.blob&&(this.blob=function(){var n=w(this);if(n)return n;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(){if(this._bodyArrayBuffer){var n=w(this);return n||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else return this.blob().then(Gt)}),this.text=function(){var n=w(this);if(n)return n;if(this._bodyBlob)return H(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(vr(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},c.formData&&(this.formData=function(){return this.text().then(Rr)}),this.json=function(){return this.text().then(JSON.parse)},this}var _r=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function Tr(n){var i=n.toUpperCase();return _r.indexOf(i)>-1?i:n}function I(n,i){if(!(this instanceof I))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');i=i||{};var l=i.body;if(n instanceof I){if(n.bodyUsed)throw new TypeError("Already read");this.url=n.url,this.credentials=n.credentials,i.headers||(this.headers=new f(n.headers)),this.method=n.method,this.mode=n.mode,this.signal=n.signal,!l&&n._bodyInit!=null&&(l=n._bodyInit,n.bodyUsed=!0)}else this.url=String(n);if(this.credentials=i.credentials||this.credentials||"same-origin",(i.headers||!this.headers)&&(this.headers=new f(i.headers)),this.method=Tr(i.method||this.method||"GET"),this.mode=i.mode||this.mode||null,this.signal=i.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&l)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(l),(this.method==="GET"||this.method==="HEAD")&&(i.cache==="no-store"||i.cache==="no-cache")){var h=/([?&])_=[^&]*/;if(h.test(this.url))this.url=this.url.replace(h,"$1_="+new Date().getTime());else{var S=/\?/;this.url+=(S.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}I.prototype.clone=function(){return new I(this,{body:this._bodyInit})};function Rr(n){var i=new FormData;return n.trim().split("&").forEach(function(l){if(l){var h=l.split("="),S=h.shift().replace(/\+/g," "),m=h.join("=").replace(/\+/g," ");i.append(decodeURIComponent(S),decodeURIComponent(m))}}),i}function Er(n){var i=new f,l=n.replace(/\r?\n[\t ]+/g," ");return l.split("\r").map(function(h){return h.indexOf(`
2
- `)===0?h.substr(1,h.length):h}).forEach(function(h){var S=h.split(":"),m=S.shift().trim();if(m){var se=S.join(":").trim();i.append(m,se)}}),i}jt.call(I.prototype);function A(n,i){if(!(this instanceof A))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');i||(i={}),this.type="default",this.status=i.status===void 0?200:i.status,this.ok=this.status>=200&&this.status<300,this.statusText=i.statusText===void 0?"":""+i.statusText,this.headers=new f(i.headers),this.url=i.url||"",this._initBody(n)}jt.call(A.prototype),A.prototype.clone=function(){return new A(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new f(this.headers),url:this.url})},A.error=function(){var n=new A(null,{status:0,statusText:""});return n.type="error",n};var Or=[301,302,303,307,308];A.redirect=function(n,i){if(Or.indexOf(i)===-1)throw new RangeError("Invalid status code");return new A(null,{status:i,headers:{location:n}})},r.DOMException=s.DOMException;try{new r.DOMException}catch{r.DOMException=function(i,l){this.message=i,this.name=l;var h=Error(i);this.stack=h.stack},r.DOMException.prototype=Object.create(Error.prototype),r.DOMException.prototype.constructor=r.DOMException}function Ee(n,i){return new Promise(function(l,h){var S=new I(n,i);if(S.signal&&S.signal.aborted)return h(new r.DOMException("Aborted","AbortError"));var m=new XMLHttpRequest;function se(){m.abort()}m.onload=function(){var D={status:m.status,statusText:m.statusText,headers:Er(m.getAllResponseHeaders()||"")};D.url="responseURL"in m?m.responseURL:D.headers.get("X-Request-URL");var ne="response"in m?m.response:m.responseText;setTimeout(function(){l(new A(ne,D))},0)},m.onerror=function(){setTimeout(function(){h(new TypeError("Network request failed"))},0)},m.ontimeout=function(){setTimeout(function(){h(new TypeError("Network request failed"))},0)},m.onabort=function(){setTimeout(function(){h(new r.DOMException("Aborted","AbortError"))},0)};function br(D){try{return D===""&&s.location.href?s.location.href:D}catch{return D}}m.open(S.method,br(S.url),!0),S.credentials==="include"?m.withCredentials=!0:S.credentials==="omit"&&(m.withCredentials=!1),"responseType"in m&&(c.blob?m.responseType="blob":c.arrayBuffer&&S.headers.get("Content-Type")&&S.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(m.responseType="arraybuffer")),i&&typeof i.headers=="object"&&!(i.headers instanceof f)?Object.getOwnPropertyNames(i.headers).forEach(function(D){m.setRequestHeader(D,U(i.headers[D]))}):S.headers.forEach(function(D,ne){m.setRequestHeader(ne,D)}),S.signal&&(S.signal.addEventListener("abort",se),m.onreadystatechange=function(){m.readyState===4&&S.signal.removeEventListener("abort",se)}),m.send(typeof S._bodyInit>"u"?null:S._bodyInit)})}return Ee.polyfill=!0,s.fetch||(s.fetch=Ee,s.Headers=f,s.Request=I,s.Response=A),r.Headers=f,r.Request=I,r.Response=A,r.fetch=Ee,r}({})})(ye);ye.fetch.ponyfill=!0;delete ye.fetch.polyfill;var V=ge.fetch?ge:ye;G=V.fetch;G.default=V.fetch;G.fetch=V.fetch;G.Headers=V.Headers;G.Request=V.Request;G.Response=V.Response;er.exports=G});var bn={};u(bn,{auth:()=>ze,authorization:()=>Qe,compute:()=>Nt,errors:()=>Fe,flows:()=>bt,gcs:()=>Ct,groups:()=>Rt,info:()=>Pe,logger:()=>De,search:()=>St,timer:()=>Lt,transfer:()=>mt,webapp:()=>qt});var Pe={};u(Pe,{CLIENT_INFO:()=>Vt,VERSION:()=>zt,addClientInfo:()=>qr,getClientInfo:()=>Kt,getClientInfoRequestHeaders:()=>be});var Ht="X-Globus-Client-Info",Lr=!0;function Jt(){return Lr}var Ir=";",Nr=",";function $t(e){return(Array.isArray(e)?e:[e]).map(r=>Object.entries(r).map(([s,c])=>`${s}=${c}`).join(Nr)).join(Ir)}var Bt="3.9.0";var zt=Bt,Vt={product:"javascript-sdk",version:zt},Oe=[Vt];function qr(e){Oe=Oe.concat(e)}function Kt(){return $t(Oe)}function be(){return Jt()?{[Ht]:Kt()}:{}}var De={};u(De,{log:()=>T,setLogLevel:()=>Fr,setLogger:()=>Gr});var xe=["debug","info","warn","error"],ae,Wt=xe.indexOf("error");function Gr(e){ae=e}function Fr(e){Wt=xe.indexOf(e)}function T(e,...t){if(!ae||xe.indexOf(e)<Wt)return;(ae[e]??ae.log)(...t)}var Qe={};u(Qe,{AuthorizationManager:()=>oe,create:()=>po});var J=class extends Error{};J.prototype.name="InvalidTokenError";function jr(e){return decodeURIComponent(atob(e).replace(/(.)/g,(t,r)=>{let s=r.charCodeAt(0).toString(16).toUpperCase();return s.length<2&&(s="0"+s),"%"+s}))}function Ur(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 jr(t)}catch{return atob(t)}}function Yt(e,t){if(typeof e!="string")throw new J("Invalid token specified: must be a string");t||(t={});let r=t.header===!0?0:1,s=e.split(".")[r];if(typeof s!="string")throw new J(`Invalid token specified: missing part #${r+1}`);let c;try{c=Ur(s)}catch(y){throw new J(`Invalid token specified: invalid base64 for part #${r+1} (${y.message})`)}try{return JSON.parse(c)}catch(y){throw new J(`Invalid token specified: invalid json for part #${r+1} (${y.message})`)}}var ze={};u(ze,{CONFIG:()=>$e,getAuthorizationEndpoint:()=>Be,getTokenEndpoint:()=>so,identities:()=>He,isGlobusAuthTokenResponse:()=>Se,isRefreshToken:()=>ee,isToken:()=>K,oauth2:()=>F});var he={};u(he,{HOSTS:()=>Ie,ID:()=>_,RESOURCE_SERVERS:()=>Ne,SCOPES:()=>fe});var pe={};u(pe,{HOSTS:()=>Ae,ID:()=>a,SCOPES:()=>p});var a="TRANSFER",p={ALL:"urn:globus:auth:scope:transfer.api.globus.org:all"},Ae={sandbox:"transfer.api.sandbox.globuscs.info",production:"transfer.api.globusonline.org",staging:"transfer.api.staging.globuscs.info",integration:"transfer.api.integration.globuscs.info",test:"transfer.api.test.globuscs.info",preview:"transfer.api.preview.globus.org"};var ce={};u(ce,{HOSTS:()=>Me,ID:()=>E,SCOPES:()=>k});var E="FLOWS",Me={sandbox:"sandbox.flows.automate.globus.org",production:"flows.globus.org",staging:"staging.flows.automate.globus.org",integration:"integration.flows.automate.globus.org",test:"test.flows.automate.globus.org",preview:"preview.flows.automate.globus.org"},k={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"};var ue={};u(ue,{HOSTS:()=>we,ID:()=>L});var L="TIMER",we={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"};var de={};u(de,{HOSTS:()=>ke,ID:()=>P,SCOPES:()=>N});var P="GROUPS",ke={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"},N={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"};var le={};u(le,{HOSTS:()=>Ce,ID:()=>v,SCOPES:()=>x});var v="SEARCH",Ce={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"},x={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"};var me={};u(me,{HOSTS:()=>Le,ID:()=>M,SCOPES:()=>Y});var M="COMPUTE",Le={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"},Y={ALL:"https://auth.globus.org/scopes/facd7ccc-c5f4-42aa-916b-a0e270e2c2a9/all"};var _="AUTH",Ie={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"},fe={VIEW_IDENTITIES:"urn:globus:auth:scope:auth.globus.org:view_identities"},Ne={[_]:"auth.globus.org",[a]:"transfer.api.globus.org",[E]:"flows.api.globus.org",[P]:"groups.api.globus.org",[v]:"search.api.globus.org",[L]:"524230d7-ea86-4a52-8312-86065a9e0417",[M]:"funcx_service"};var Fe={};u(Fe,{EnvironmentConfigurationError:()=>Q,isAuthorizationRequirementsError:()=>X,isConsentRequiredError:()=>qe,isErrorWellFormed:()=>Qt,toAuthorizationQueryParams:()=>Ge});var Q=class extends Error{name="EnvironmentConfigurationError";constructor(t,r){super(),this.message=`Invalid configuration value provided for ${t} (${r}).`}};function Qt(e){return typeof e=="object"&&e!==null&&"code"in e&&"message"in e}function qe(e){return Qt(e)&&e.code==="ConsentRequired"&&"required_scopes"in e&&Array.isArray(e.required_scopes)}var Hr=["required_scopes"];function Ge(e){return Object.entries(e.authorization_parameters).reduce((t,[r,s])=>{if(Hr.includes(r)||s===void 0||s===null)return t;let c=s;return Array.isArray(c)?c=c.join(","):typeof s=="boolean"&&(c=c?"true":"false"),{...t,[r]:c}},{})}function X(e){return typeof e=="object"&&e!==null&&"authorization_parameters"in e&&typeof e.authorization_parameters=="object"&&e.authorization_parameters!==null}function Jr(){return typeof window<"u"?window:process}function $r(e){return typeof window==typeof e}function je(e,t){let r=Jr(),s;return $r(r)?s=r:s=r.env,e in s?s[e]:t}var Xt={PRODUCTION:"production",PREVIEW:"preview",STAGING:"staging",SANDBOX:"sandbox",INTEGRATION:"integration",TEST:"test"},q={[_]:_,[a]:a,[E]:E,[P]:P,[v]:v,[L]:L,[M]:M},Br={[_]:Ie,[a]:Ae,[E]:Me,[P]:ke,[v]:Ce,[L]:we,[M]:Le};function Ue(e){let t=je("GLOBUS_SDK_OPTIONS",{});return typeof t=="string"&&(t=JSON.parse(t)),{...t,...e,fetch:{...t?.fetch,...e?.fetch,options:{...t?.fetch?.options,...e?.fetch?.options,headers:{...t?.fetch?.options?.headers,...e?.fetch?.options?.headers}}}}}function z(){let e=Ue(),t=je("GLOBUS_SDK_ENVIRONMENT",e?.environment??Xt.PRODUCTION);if(e?.environment&&t!==e.environment&&T("debug","GLOBUS_SDK_ENVIRONMENT and GLOBUS_SDK_OPTIONS.environment are set to different values. GLOBUS_SDK_ENVIRONMENT will take precedence"),!t||!Object.values(Xt).includes(t))throw new Q("GLOBUS_SDK_ENVIRONMENT",t);return t}function zr(e,t=z()){return Br[e][t]}function Zt(e,t=z()){let r=zr(e,t);return je(`GLOBUS_SDK_SERVICE_URL_${e}`,r?`https://${r}`:void 0)}function Vr(e){let t=new URLSearchParams;return Array.from(Object.entries(e)).forEach(([r,s])=>{Array.isArray(s)?t.set(r,s.join(",")):s!==void 0&&t.set(r,String(s))}),t.toString()}function Kr(e,t="",r=z()){let s=Zt(e,r);return new URL(t,s)}function Z(e,t,r,s){let c;return typeof e=="object"?c=new URL(t,e.host):c=Kr(e,t,s?.environment),r&&r.search&&(c.search=Vr(r.search)),c.toString()}var He={};u(He,{get:()=>Wr,getAll:()=>Yr});var rr=kr(tr());async function o(e,t,r){let s=Ue(r),c=s?.fetch?.options||{},y={...be(),...t?.headers,...c.headers},O=s?.manager,R;if(e.resource_server&&O&&(R=O.tokens.getByResourceServer(e.resource_server),R&&(y.Authorization=`Bearer ${R.access_token}`)),e.scope&&O){let H=typeof e.service=="string"?Ne[e.service]:e.service.endpoint_id;R=O.tokens.getByResourceServer(H),R&&(y.Authorization=`Bearer ${R.access_token}`)}let b=t?.body;!b&&t?.payload&&(b=JSON.stringify(t.payload)),!y?.["Content-Type"]&&b&&(y["Content-Type"]="application/json");let U=Z(e.service,e.path,{search:t?.query},s),C={method:e.method,body:b,...c,headers:y},f=rr.default;if(c?.__callable&&(f=c.__callable.bind(this),delete C.__callable),e.preventRetry||!O||!R||!ee(R))return f(U,C);let w=await f(U,C);if(w.ok)return w;let B;try{B=X(await w.clone().json())}catch{B=!1}if(w.status===401&&!B){let H=await O.refreshToken(R);return H?f(U,{...C,headers:{...C.headers,Authorization:`Bearer ${H.access_token}`}}):w}return w}var Wr=function(e,t={},r){return o({service:_,scope:fe.VIEW_IDENTITIES,path:`/identities/${e}`},t,r)},Yr=function(e={},t){return o({service:_,scope:fe.VIEW_IDENTITIES,path:"/identities"},e,t)};var F={};u(F,{token:()=>Je,userinfo:()=>oo});var Je={};u(Je,{exchange:()=>Xr,introspect:()=>Zr,refresh:()=>to,revoke:()=>eo,token:()=>or,validate:()=>ro});function Qr(e){return new URLSearchParams(e)}function te(e){return{...e,body:e.payload?Qr(e.payload):void 0,headers:{...e?.headers||{},Accept:"application/json","Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"}}}var or=function(e={},t){return o({service:_,scope:void 0,path:"/v2/oauth2/token",method:"POST",preventRetry:!0},te(e),t)},Xr=or,Zr=function(e,t){if(!e?.payload)throw new Error("'payload' is required for introspect");return o({service:_,scope:void 0,path:"/v2/oauth2/token/introspect",method:"POST",preventRetry:!0},te(e),t)},eo=function(e,t){if(!e?.payload)throw new Error("'payload' is required for revoke");return o({service:_,scope:void 0,path:"/v2/oauth2/token/revoke",method:"POST",preventRetry:!0},te(e),t)},to=function(e,t){if(!e?.payload)throw new Error("'payload' is required for revoke");return o({service:_,scope:void 0,path:"/v2/oauth2/token",method:"POST",preventRetry:!0},te(e),t)},ro=function(e,t){if(!e?.payload)throw new Error("'payload' is required for validate");return o({service:_,scope:void 0,path:"/v2/oauth2/token/validate",method:"POST",preventRetry:!0},te(e),t)};var oo=function(e,t){return o({service:_,scope:void 0,path:"/v2/oauth2/userinfo",method:"GET"},e,t)};var $e=he;function Be(){return Z(_,"/v2/oauth2/authorize")}function so(){return Z(_,"/v2/oauth2/token")}function K(e){return typeof e=="object"&&e!==null&&"access_token"in e}function ee(e){return K(e)&&e!==null&&"refresh_token"in e}function Se(e){return K(e)&&e!==null&&"resource_server"in e}var ve=class{#e={};get(t){return this.#e[t]!==void 0?this.#e[t]:null}set(t,r){this.#e[t]=typeof r!="string"?JSON.stringify(r):r}remove(t){delete this.#e[t]}keys(){return Object.keys(this.#e)}clear(){this.#e={}}};var _e=class{#e=globalThis.localStorage;get(t){return this.#e.getItem(t)}set(t,r){this.#e.setItem(t,typeof r!="string"?JSON.stringify(r):r)}keys(){return Object.keys(this.#e)}remove(t){this.#e.removeItem(t)}clear(){this.#e.clear()}};var Ve;function Ke(e="memory"){if(!Ve){let t;e==="localStorage"?t=_e:e==="memory"?t=ve:t=e,Ve=new t}return Ve}var j=Ke;var re=class{constructor(t){this.name=t}#e=[];addListener(t){return this.#e.push(t),()=>this.removeListener(t)}removeListener(t){this.#e=this.#e.filter(r=>r!==t)}clearListeners(){this.#e=[]}async dispatch(t){await Promise.all(this.#e.map(r=>r(t)))}};function nr(){return"crypto"in globalThis}function Ye(){return"webcrypto"in globalThis.crypto?globalThis.crypto.webcrypto:globalThis.crypto}var no=e=>btoa(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"");async function io(e){let t=await Ye().subtle.digest("SHA-256",new TextEncoder().encode(e));return String.fromCharCode(...new Uint8Array(t))}var We="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",sr=`${We}-._~`;function ir(){return Array.from(Ye().getRandomValues(new Uint8Array(43))).map(e=>sr[e%sr.length]).join("")}async function ar(e){let t=await io(e);return no(t)}function pr(){return Array.from(Ye().getRandomValues(new Uint8Array(16))).map(e=>We[e%We.length]).join("")}var W={PKCE_STATE:"pkce_state",PKCE_CODE_VERIFIER:"pkce_code_verifier"};function ao(){sessionStorage.removeItem(W.PKCE_STATE),sessionStorage.removeItem(W.PKCE_CODE_VERIFIER)}var Te=class e{#e;constructor(t){if(this.#e=t,e.supported===!1)throw new Error("RedirectTransport is not supported in this environment.")}static supported=nr();async send(){let t=ir(),r=await ar(t),s=pr();sessionStorage.setItem(W.PKCE_CODE_VERIFIER,t),sessionStorage.setItem(W.PKCE_STATE,s);let c={response_type:"code",client_id:this.#e.client,scope:this.#e.scopes||"",redirect_uri:this.#e.redirect,state:s,code_challenge:r,code_challenge_method:"S256",...this.#e.params||{}},y=new URL(Be());y.search=new URLSearchParams(c).toString(),window.location.assign(y.toString())}async getToken(t={shouldReplace:!0}){let r=new URL(window.location.href),s=new URLSearchParams(r.search);if(s.get("error"))throw new Error(s.get("error_description")||"An error occurred during the authorization process.");let c=s.get("code");if(!c)return;let y=sessionStorage.getItem(W.PKCE_STATE),O=sessionStorage.getItem(W.PKCE_CODE_VERIFIER);if(ao(),s.get("state")!==y)throw new Error("Invalid State");if(!O)throw new Error("Invalid Code Verifier");let R={code:c,client_id:this.#e.client,code_verifier:O,redirect_uri:this.#e.redirect,grant_type:"authorization_code"},b=await(await F.token.exchange({payload:R})).json();return t.shouldReplace&&(s.delete("code"),s.delete("state"),r.search=s.toString(),window.location.replace(r)),b}};function cr(e){let t=j().get(e)||"null",r=null;try{let s=JSON.parse(t);K(s)&&(r=s)}catch{}return r}var Re=class{#e;constructor(t){this.#e=t.manager}#r(t){return cr(`${this.#e.storageKeyPrefix}${t}`)}#t(t){let r=$e.RESOURCE_SERVERS?.[t];return this.#r(r)}get auth(){return this.#t(q.AUTH)}get transfer(){return this.#t(q.TRANSFER)}get flows(){return this.#t(q.FLOWS)}get groups(){return this.#t(q.GROUPS)}get search(){return this.#t(q.SEARCH)}get timer(){return this.#t(q.TIMER)}get compute(){return this.#t(q.COMPUTE)}gcs(t){return this.getByResourceServer(t)}getByResourceServer(t){return this.#r(t)}getAll(){return j().keys().reduce((r,s)=>(s.startsWith(this.#e.storageKeyPrefix)&&r.push(cr(s)),r),[]).filter(K)}};var ur={useRefreshTokens:!1,defaultScopes:"openid profile email"},dr={execute:!0,additionalParams:void 0},oe=class{#e;configuration;#r=!1;get authenticated(){return this.#r}set authenticated(t){t!==this.#r&&(this.#r=t,this.#n())}tokens;events={authenticated:new re("authenticated"),revoke:new re("revoke")};constructor(t){if(Ke("localStorage"),!t.client)throw new Error("You must provide a `client` for your application.");let r=t.defaultScopes===!1?"":t.defaultScopes??ur.defaultScopes;this.configuration={...ur,...t,scopes:[t.scopes?t.scopes:"",r].filter(s=>s.length).join(" ")},this.configuration.events&&Object.entries(this.configuration.events).forEach(([s,c])=>{s in this.events&&this.events[s].addListener(c)}),this.tokens=new Re({manager:this}),this.#t()}get storageKeyPrefix(){return`${this.configuration.client}:`}get user(){let t=this.getGlobusAuthToken();return t&&t.id_token?Yt(t.id_token):null}async refreshTokens(){T("debug","AuthorizationManager.refreshTokens");let t=await Promise.allSettled(this.tokens.getAll().map(r=>ee(r)?this.refreshToken(r):Promise.resolve(null)));return this.#t(),t}async refreshToken(t){T("debug",`AuthorizationManager.refreshToken | resource_server=${t.resource_server}`);try{let r=await(await F.token.refresh({payload:{client_id:this.configuration.client,refresh_token:t.refresh_token,grant_type:"refresh_token"}})).json();if(Se(r))return this.addTokenResponse(r),r}catch{T("error",`AuthorizationManager.refreshToken | resource_server=${t.resource_server}`)}return null}hasGlobusAuthToken(){return this.getGlobusAuthToken()!==null}getGlobusAuthToken(){let t=j().get(`${this.storageKeyPrefix}auth.globus.org`);return t?JSON.parse(t):null}#t(){T("debug","AuthorizationManager.#checkAuthorizationState"),this.hasGlobusAuthToken()&&(this.authenticated=!0)}async#n(){let t=this.authenticated,r=this.getGlobusAuthToken()??void 0;await this.events.authenticated.dispatch({isAuthenticated:t,token:r})}reset(){j().keys().forEach(t=>{t.startsWith(this.storageKeyPrefix)&&j().remove(t)}),this.authenticated=!1}#s(t){return`${t}${this.configuration.useRefreshTokens?" offline_access":""}`}#o(t){let r=this.#s(t?.scopes??(this.configuration.scopes||""));return new Te({client:this.configuration.client,redirect:this.configuration.redirect,scopes:r,...t,params:{...t?.params}})}async login(t={additionalParams:{}}){T("debug","AuthorizationManager.login"),this.reset(),await this.#o({params:t?.additionalParams}).send()}async handleCodeRedirect(t={shouldReplace:!0,additionalParams:{}}){T("debug","AuthorizationManager.handleCodeRedirect");let r=await this.#o({params:t?.additionalParams}).getToken({shouldReplace:t?.shouldReplace});Se(r)&&(T("debug",`AuthorizationManager.handleCodeRedirect | response=${JSON.stringify(r)}`),this.addTokenResponse(r))}async handleErrorResponse(t,r){let s=typeof r=="boolean"?{...dr,execute:r}:{...dr,...r};T("debug",`AuthorizationManager.handleErrorResponse | response=${JSON.stringify(t)} execute=${s.execute}`);let c=async()=>{};return X(t)&&(T("debug","AuthorizationManager.handleErrorResponse | error=AuthorizationRequirementsError"),c=async()=>{await this.handleAuthorizationRequirementsError(t,{additionalParams:s.additionalParams})}),qe(t)&&(T("debug","AuthorizationManager.handleErrorResponse | error=ConsentRequiredError"),c=async()=>{await this.handleConsentRequiredError(t,{additionalParams:s.additionalParams})}),"code"in t&&t.code==="AuthenticationFailed"&&(T("debug","AuthorizationManager.handleErrorResponse | error=AuthenticationFailed"),c=async()=>{await this.revoke()}),s.execute===!0?await c():c}async handleAuthorizationRequirementsError(t,r){this.#e=this.#o({params:{prompt:"login",...Ge(t),...r?.additionalParams}}),await this.#e.send()}async handleConsentRequiredError(t,r){this.#e=this.#o({scopes:this.#s(t.required_scopes.join(" ")),params:{...r?.additionalParams}}),await this.#e.send()}addTokenResponse=t=>{j().set(`${this.configuration.client}:${t.resource_server}`,t),"other_tokens"in t&&t.other_tokens?.forEach(this.addTokenResponse),this.#t()};async revoke(){T("debug","AuthorizationManager.revoke");let t=Promise.all(this.tokens.getAll().map(this.#i.bind(this)));this.reset(),await t,await this.events.revoke.dispatch()}#i(t){return T("debug",`AuthorizationManager.revokeToken | resource_server=${t.resource_server}`),F.token.revoke({payload:{client_id:this.configuration.client,token:t.access_token}})}};function po(e){return new oe(e)}var mt={};u(mt,{CONFIG:()=>us,access:()=>rt,collectionBookmarks:()=>ot,endpoint:()=>et,endpointManager:()=>at,endpointSearch:()=>lr,fileOperations:()=>Xe,task:()=>tt,taskSubmission:()=>Ze,utils:()=>lt});var lr=function(e,t){let r={...e,query:e?.query};return o({service:a,scope:p.ALL,path:"/v0.10/endpoint_search"},r,t)};var Xe={};u(Xe,{ls:()=>co,mkdir:()=>uo,rename:()=>lo,stat:()=>fo,symlink:()=>mo});function $(e){return e==="GET"?{}:{"Content-Type":"application/json"}}var co=function(e,t,r){return o({service:a,scope:p.ALL,path:`/v0.10/operation/endpoint/${e}/ls`},t,r)},uo=function(e,t,r){let s={payload:{DATA_TYPE:"mkdir",...t?.payload},headers:{...$("POST"),...t?.headers}};return o({service:a,scope:p.ALL,path:`/v0.10/operation/endpoint/${e}/mkdir`,method:"POST"},s,r)},lo=function(e,t,r){let s={payload:{DATA_TYPE:"rename",...t?.payload},headers:{...$("POST"),...t?.headers}};return o({service:a,scope:p.ALL,path:`/v0.10/operation/endpoint/${e}/rename`,method:"POST"},s,r)},mo=function(e,t,r){let s={payload:{DATA_TYPE:"symlink",...t?.payload},headers:{...$("POST"),...t?.headers}};return o({service:a,scope:p.ALL,path:`/v0.10/operation/endpoint/${e}/symlink`,method:"POST"},s,r)},fo=function(e,t,r){return o({service:a,scope:p.ALL,path:`/v0.10/operation/endpoint/${e}/stat`},t,r)};var Ze={};u(Ze,{submissionId:()=>yo,submitDelete:()=>ho,submitTransfer:()=>go});var ho=function(e,t){let r={payload:{DATA_TYPE:"delete",...e?.payload},headers:{...$("POST"),...e?.headers}};return o({service:a,scope:p.ALL,path:"/v0.10/delete",method:"POST"},r,t)},go=function(e,t){let r={payload:{DATA_TYPE:"transfer",...e?.payload},headers:{...$("POST"),...e?.headers}};return o({service:a,scope:p.ALL,path:"/v0.10/transfer",method:"POST"},r,t)},yo=function(e,t){return o({service:a,scope:p.ALL,path:"/v0.10/submission_id"},e,t)};var et={};u(et,{create:()=>vo,get:()=>So,remove:()=>To,update:()=>_o});var So=function(e,t,r){return o({service:a,scope:p.ALL,path:`/v0.10/endpoint/${e}`},t,r)},vo=function(e,t){return e?.payload&&Object.assign(e.payload,{DATA_TYPE:"shared_endpoint"}),o({service:a,scope:p.ALL,path:"/v0.10/shared_endpoint",method:"POST"},e,t)},_o=function(e,t,r){return t?.payload&&Object.assign(t.payload,{DATA_TYPE:"endpoint"}),o({service:a,scope:p.ALL,path:`/v0.10/endpoint/${e}`,method:"PUT"},t,r)},To=function(e,t,r){return o({service:a,scope:p.ALL,path:`/v0.10/endpoint/${e}`,method:"DELETE"},t,r)};var tt={};u(tt,{cancel:()=>bo,get:()=>Eo,getAll:()=>Ro,getEventList:()=>xo,getPauseInfo:()=>Mo,getSkippedErrors:()=>Ao,getSuccessfulTransfers:()=>Do,remove:()=>Po,update:()=>Oo});var Ro=function(e={},t){return o({service:a,scope:p.ALL,path:"/v0.10/task_list"},e,t)},Eo=function(e,t,r){return o({service:a,scope:p.ALL,path:`/v0.10/task/${e}`},t,r)},Oo=function(e,t,r){return o({service:a,scope:p.ALL,path:`/v0.10/task/${e}`,method:"PUT"},t,r)},bo=function(e,t,r){return o({service:a,scope:p.ALL,path:`/v0.10/task/${e}/cancel`,method:"POST"},t,r)},Po=function(e,t,r){return o({service:a,scope:p.ALL,path:`/v0.10/task/${e}/remove`,method:"POST"},t,r)},xo=function(e,t,r){return o({service:a,scope:p.ALL,path:`/v0.10/task/${e}/event_list`},t,r)},Do=function(e,t,r){return o({service:a,scope:p.ALL,path:`/v0.10/task/${e}/successful_transfers`},t,r)},Ao=function(e,t,r){return o({service:a,scope:p.ALL,path:`/v0.10/task/${e}/skipped_errors`},t,r)},Mo=function(e,t,r){return o({service:a,scope:p.ALL,path:`/v0.10/task/${e}/pause_info`},t,r)};var rt={};u(rt,{create:()=>ko,get:()=>Co,getAll:()=>wo,remove:()=>Io,update:()=>Lo});var wo=function(e,t,r){return o({service:a,scope:p.ALL,path:`/v0.10/endpoint/${e}/access_list`},t,r)},ko=function(e,t,r){return o({service:a,scope:p.ALL,path:`/v0.10/endpoint/${e}/access`,method:"POST"},t,r)},Co=function({endpoint_xid:e,id:t},r,s){return o({service:a,scope:p.ALL,path:`/v0.10/endpoint/${e}/access/${t}`},r,s)},Lo=function({endpoint_xid:e,id:t},r,s){return o({service:a,scope:p.ALL,path:`/v0.10/endpoint/${e}/access/${t}`,method:"PUT"},r,s)},Io=function({endpoint_xid:e,id:t},r,s){return o({service:a,scope:p.ALL,path:`/v0.10/endpoint/${e}/access/${t}`,method:"DELETE"},r,s)};var ot={};u(ot,{create:()=>qo,get:()=>Go,getAll:()=>No,remove:()=>jo,update:()=>Fo});var No=function(e,t){return o({service:a,scope:p.ALL,path:"/v0.10/bookmark_list"},e,t)},qo=function(e,t){return o({service:a,scope:p.ALL,path:"/v0.10/bookmark",method:"POST"},e,t)},Go=function(e,t,r){return o({service:a,scope:p.ALL,path:`/v0.10/bookmark/${e}`},t,r)},Fo=function(e,t,r){return o({service:a,scope:p.ALL,path:`/v0.10/bookmark/${e}`,method:"PUT"},t,r)},jo=function(e,t,r){return o({service:a,scope:p.ALL,path:`/v0.10/bookmark/${e}`,method:"DELETE"},t,r)};var at={};u(at,{endpoint:()=>st,pauseRule:()=>nt,task:()=>it});var st={};u(st,{get:()=>Uo,getAccessList:()=>Jo,getHostedEndpoints:()=>Ho,getMonitoredEndpoints:()=>$o});var Uo=function(e,t,r){return o({service:a,scope:p.ALL,path:`/v0.10/endpoint_manager/endpoint/${e}`},t,r)},Ho=function(e,t,r){return o({service:a,scope:p.ALL,path:`/v0.10/endpoint_manager/endpoint/${e}/hosted_endpoint_list`},t,r)},Jo=function(e,t,r){return o({service:a,scope:p.ALL,path:`/v0.10/endpoint_manager/endpoint/${e}/access_list`},t,r)},$o=function(e={},t){return o({service:a,scope:p.ALL,path:"/v0.10/endpoint_manager/monitored_endpoints"},e,t)};var nt={};u(nt,{create:()=>zo,get:()=>Vo,getAll:()=>Bo,remove:()=>Wo,update:()=>Ko});var Bo=function(e,t){return o({service:a,scope:p.ALL,path:"/v0.10/endpoint_manager/pause_rule_list"},e,t)},zo=function(e,t){return o({service:a,scope:p.ALL,path:"/v0.10/endpoint_manager/pause_rule",method:"POST"},e,t)},Vo=function(e,t,r){return o({service:a,scope:p.ALL,path:`/v0.10/endpoint_manager/pause_rule/${e}`},t,r)},Ko=function(e,t,r){return o({service:a,scope:p.ALL,path:`/v0.10/endpoint_manager/pause_rule/${e}`,method:"PUT"},t,r)},Wo=function(e,t,r){return o({service:a,scope:p.ALL,path:`/v0.10/endpoint_manager/pause_rule/${e}`,method:"DELETE"},t,r)};var it={};u(it,{cancel:()=>Xo,get:()=>Qo,getAdminCancel:()=>Zo,getAll:()=>Yo,getEventList:()=>es,getPauseInfo:()=>ns,getSkippedErrors:()=>rs,getSuccessfulTransfers:()=>ts,pause:()=>os,resume:()=>ss});var Yo=function(e={},t){return o({service:a,scope:p.ALL,path:"/v0.10/task_list"},e,t)},Qo=function(e,t,r){return o({service:a,scope:p.ALL,path:`/v0.10/endpoint_manager/task/${e}`},t,r)},Xo=function(e,t){return o({service:a,scope:p.ALL,path:"/v0.10/endpoint_manager/admin_cancel",method:"POST"},e,t)},Zo=function(e,t,r){return o({service:a,scope:p.ALL,path:`/v0.10/endpoint_manager/admin_cancel/${e}`,method:"POST"},t,r)},es=function(e,t,r){return o({service:a,scope:p.ALL,path:`/v0.10/endpoint_manager/task/${e}/event_list`},t,r)},ts=function(e,t,r){return o({service:a,scope:p.ALL,path:`/v0.10/endpoint_manager/task/${e}/successful_transfers`},t,r)},rs=function(e,t,r){return o({service:a,scope:p.ALL,path:`/v0.10/endpoint_manager/task/${e}/skipped_errors`},t,r)},os=function(e,t){return o({service:a,scope:p.ALL,path:"/v0.10/endpoint_manager/admin_pause",method:"POST"},e,t)},ss=function(e,t){return o({service:a,scope:p.ALL,path:"/v0.10/endpoint_manager/admin_resume",method:"POST"},e,t)},ns=function(e,t,r){return o({service:a,scope:p.ALL,path:`/v0.10/endpoint_manager/task/${e}/pause_info`},t,r)};var lt={};u(lt,{getDomainFromEndpoint:()=>cs,isDirectory:()=>is,isFileDocument:()=>fr,readableBytes:()=>as});function fr(e){return typeof e=="object"&&e!==null&&"DATA_TYPE"in e&&e.DATA_TYPE==="file"}function is(e){return fr(e)&&e.type==="dir"}var pt=1e3,ct=pt*1e3,ut=ct*1e3,dt=ut*1e3,mr=dt*1e3;function as(e,t=2){let r="B",s=1;if(e<pt)return`${e} ${r}`;e<ct?(r="KB",s=pt):e<ut?(r="MB",s=ct):e<dt?(r="GB",s=ut):e<mr?(r="TB",s=dt):(r="PB",s=mr);let c=e/s,[y,O]=`${c}`.split("."),R=`${y}`;if(O&&O.length){let b=O.slice(0,t);b.length&&(R=`${y}.${b}`)}return`${R} ${r}`}var ps=["dnsteam.globuscs.info","data.globus.org","dn.glob.us"];function cs(e){let{tlsftp_server:t}=e;if(!t||typeof t!="string")return null;let{hostname:r}=new URL(t.replace("tlsftp","https"));return!ps.find(y=>r.endsWith(y))&&/(?:[gm]-\w{6}.)?(\w+(\.\w+)+)$/.exec(r)?.[1]||r||null}var us=pe;var St={};u(St,{CONFIG:()=>Ts,entry:()=>gt,index:()=>yt,query:()=>ft,subject:()=>ht});var ft={};u(ft,{get:()=>ds,post:()=>ls});var ds=function(e,t,r){return o({service:v,scope:x.SEARCH,path:`/v1/index/${e}/search`},t,r)},ls=function(e,t,r){return o({service:v,scope:x.SEARCH,path:`/v1/index/${e}/search`,method:"POST"},t,r)};var ht={};u(ht,{get:()=>ms});var ms=function(e,t,r){return o({service:v,scope:x.SEARCH,path:`/v1/index/${e}/subject`},t,r)};var gt={};u(gt,{get:()=>fs});var fs=function(e,t,r){return o({service:v,scope:x.SEARCH,path:`/v1/index/${e}/entry`},t,r)};var yt={};u(yt,{create:()=>ys,get:()=>hs,getAll:()=>gs,ingest:()=>_s,remove:()=>Ss,reopen:()=>vs});var hs=function(e,t,r){return o({service:v,path:`/v1/index/${e}`},t,r)},gs=function(e,t){return o({service:v,scope:x.ALL,path:"/v1/index_list"},e,t)},ys=function(e,t){return o({service:v,scope:x.ALL,path:"/v1/index",method:"POST"},e,t)},Ss=function(e,t,r){return o({service:v,scope:x.ALL,path:`/v1/index/${e}`,method:"DELETE"},t,r)},vs=function(e,t,r){return o({service:v,scope:x.ALL,path:`/v1/index/${e}/reopen`,method:"POST"},t,r)},_s=function(e,t,r){return o({service:v,scope:x.ALL,path:`/v1/index/${e}/ingest`,method:"POST"},t,r)};var Ts=le;var Rt={};u(Rt,{CONFIG:()=>Ps,groups:()=>vt,membership:()=>Tt,policies:()=>_t});var vt={};u(vt,{get:()=>Es,getMyGroups:()=>Rs});var Rs=function(e,t){return o({scope:N.ALL,path:"/v2/groups/my_groups",service:P},e,t)},Es=function(e,t,r){return o({service:P,scope:N.ALL,path:`/v2/groups/${e}`},t,r)};var _t={};u(_t,{get:()=>Os});var Os=function(e,t,r){return o({scope:N.ALL,path:`/v2/groups/${e}/policies`,service:P},t,r)};var Tt={};u(Tt,{act:()=>bs});var bs=function(e,t,r){if(!t?.payload)throw new Error("payload is required.");return o({service:P,scope:N.ALL,path:`/v2/groups/${e}`,method:"POST"},t,r)};var Ps=de;var bt={};u(bt,{CONFIG:()=>Ls,flows:()=>Et,runs:()=>Ot});var Et={};u(Et,{get:()=>Ds,getAll:()=>xs,remove:()=>As,run:()=>Ms});var xs=function(e,t){return o({service:E,scope:k.VIEW_FLOWS,path:"/flows"},e,t)},Ds=function(e,t,r){return o({service:E,scope:k.VIEW_FLOWS,path:`/flows/${e}`},t,r)},As=function(e,t,r){return o({scope:k.MANAGE_FLOWS,service:E,path:`/flows/${e}`,method:"DELETE"},t,r)},Ms=function(e,t,r){return o({service:E,scope:k.VIEW_FLOWS,path:`/flows/${e}/run`,method:"POST"},t,r)};var Ot={};u(Ot,{cancel:()=>ks,getAll:()=>ws,getLog:()=>Cs});var ws=function(e={},t){return o({service:E,scope:k.RUN_MANAGE,path:"/runs"},e,t)},ks=function(e,t,r){return o({service:E,scope:k.RUN_MANAGE,path:`/runs/${e}/cancel`,method:"POST"},t,r)},Cs=function(e,t,r){return o({service:E,scope:k.RUN_MANAGE,path:`/runs/${e}/log`},t,r)};var Ls=ce;var Ct={};u(Ct,{collections:()=>Pt,endpoint:()=>xt,getRequiredScopes:()=>d,https:()=>Dt,roles:()=>At,storageGateways:()=>Mt,userCredentials:()=>wt,versioning:()=>kt});var Pt={};u(Pt,{create:()=>Gs,get:()=>Ns,getAll:()=>Is,patch:()=>js,remove:()=>qs,resetOwnerString:()=>Hs,update:()=>Fs,updateOwnerString:()=>Us});var Is=function(e,t,r){return o({service:e,scope:d(e),path:"/api/collections"},t,r)},Ns=function(e,t,r,s){return o({service:e,scope:d(e),path:`/api/collections/${t}`},r,s)},qs=function(e,t,r,s){return o({service:e,scope:d(e),path:`/api/collections/${t}`,method:"DELETE"},r,s)},Gs=function(e,t,r){return o({service:e,scope:d(e),path:"/api/collections",method:"POST"},t,r)},Fs=function(e,t,r,s){return o({service:e,scope:d(e),path:`/api/collections/${t}`,method:"PUT"},r,s)},js=function(e,t,r,s){return o({service:e,scope:d(e),path:`/api/collections/${t}`,method:"PATCH"},r,s)},Us=function(e,t,r,s){return o({service:e,scope:d(e),path:`/api/collections/${t}/owner_string`,method:"PUT"},r,s)},Hs=function(e,t,r,s){return o({service:e,scope:d(e),path:`/api/collections/${t}/owner_string`,method:"DELETE"},r,s)};var xt={};u(xt,{get:()=>Js,patch:()=>Bs,resetOwnerString:()=>Ws,update:()=>$s,updateOwner:()=>Vs,updateOwnerString:()=>Ks,updateSubscriptionId:()=>zs});var Js=function(e,t,r){return o({service:e,scope:d(e),path:"/api/endpoint"},t,r)},$s=function(e,t,r){return o({service:e,scope:d(e),path:"/api/endpoint",method:"PUT"},t,r)},Bs=function(e,t,r){return o({service:e,scope:d(e),path:"/api/endpoint",method:"PATCH"},t,r)},zs=function(e,t,r){return o({service:e,scope:d(e),path:"/api/endpoint/subscription_id",method:"PUT"},t,r)},Vs=function(e,t,r){return o({service:e,scope:d(e),path:"/api/endpoint/owner",method:"PUT"},t,r)},Ks=function(e,t,r){return o({service:e,scope:d(e),path:"/api/endpoint/owner_string",method:"PUT"},t,r)},Ws=function(e,t,r){return o({service:e,scope:d(e),path:"/api/endpoint/owner_string",method:"DELETE"},t,r)};var Dt={};u(Dt,{get:()=>Ys,remove:()=>Qs,update:()=>Xs});var Ys=function(e,t,r,s){return o({service:e,scope:d(e),path:t},r,s)},Qs=function(e,t,r,s){return o({service:e,scope:d(e),path:t,method:"DELETE"},r,s)},Xs=function(e,t,r,s){return o({service:e,scope:d(e),path:t,method:"PUT"},r,s)};var At={};u(At,{create:()=>rn,get:()=>en,getAll:()=>Zs,remove:()=>tn});var Zs=function(e,t,r){return o({service:e,scope:d(e),path:"/api/roles"},t,r)},en=function(e,t,r,s){return o({service:e,scope:d(e),path:`/api/roles/${t}`},r,s)},tn=function(e,t,r,s){return o({service:e,scope:d(e),path:`/api/roles/${t}`,method:"DELETE"},r,s)},rn=function(e,t,r){return o({service:e,scope:d(e),path:"/api/roles",method:"POST"},t,r)};var Mt={};u(Mt,{create:()=>an,get:()=>sn,getAll:()=>on,patch:()=>cn,remove:()=>nn,update:()=>pn});var on=function(e,t,r){return o({service:e,scope:d(e),path:"/api/storage_gateways"},t,r)},sn=function(e,t,r,s){return o({service:e,scope:d(e),path:`/api/storage_gateways/${t}`},r,s)},nn=function(e,t,r,s){return o({service:e,scope:d(e),path:`/api/storage_gateways/${t}`,method:"DELETE"},r,s)},an=function(e,t,r){return o({service:e,scope:d(e),path:"/api/storage_gateways",method:"POST"},t,r)},pn=function(e,t,r,s){return o({service:e,scope:d(e),path:`/api/storage_gateways/${t}`,method:"PUT"},r,s)},cn=function(e,t,r,s){return o({service:e,scope:d(e),path:`/api/storage_gateways/${t}`,method:"PATCH"},r,s)};var wt={};u(wt,{create:()=>mn,get:()=>dn,getAll:()=>un,patch:()=>hn,remove:()=>ln,update:()=>fn});var un=function(e,t,r){return o({service:e,scope:d(e),path:"/api/user_credentials"},t,r)},dn=function(e,t,r,s){return o({service:e,scope:d(e),path:`/api/user_credentials/${t}`},r,s)},ln=function(e,t,r,s){return o({service:e,scope:d(e),path:`/api/user_credentials/${t}`,method:"DELETE"},r,s)},mn=function(e,t,r){return o({service:e,scope:d(e),path:"/api/user_credentials",method:"POST"},t,r)},fn=function(e,t,r,s){return o({service:e,scope:d(e),path:`/api/user_credentials/${t}`,method:"PUT"},r,s)},hn=function(e,t,r,s){return o({service:e,scope:d(e),path:`/api/user_credentials/${t}`,method:"PATCH"},r,s)};var kt={};u(kt,{info:()=>gn});var gn=function(e,t,r){return o({service:e,scope:d(e),path:"/api/info"},t,r)};var yn={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 d(e){return yn.HIGH_ASSURANCE.replace("<ENDPOINT_ID>",e.endpoint_id)}var Lt={};u(Lt,{CONFIG:()=>Sn,create:()=>hr});var hr=function(e,t){return o({service:L,scope:"https://auth.globus.org/scopes/524230d7-ea86-4a52-8312-86065a9e0417/timer",path:"/v2/timer",method:"POST"},e,t)};var Sn=ue;var Nt={};u(Nt,{CONFIG:()=>Rn,endpoints:()=>It});var It={};u(It,{get:()=>_n,getAll:()=>vn,getStatus:()=>Tn});var vn=function(e,t){return o({service:M,scope:Y.ALL,path:"/v2/endpoints",method:"GET"},e,t)},_n=function(e,t,r){return o({service:M,scope:Y.ALL,path:`/v2/endpoints/${e}`,method:"GET"},t,r)},Tn=function(e,t,r){return o({service:M,scope:Y.ALL,path:`/v2/endpoints/${e}/status`},t,r)};var Rn=me;var qt={};u(qt,{HOSTS:()=>gr,host:()=>yr,url:()=>Sr,urlFor:()=>On});var gr={integration:"app.integration.globuscs.info",sandbox:"app.sandbox.globuscs.info",test:"app.test.globuscs.info",staging:"app.staging.globuscs.info",preview:"app.preview.globus.org",production:"app.globus.org"};function yr(e=z()){return gr[e]}function Sr(e,t){return new URL(e||"",`https://${yr(t?.environment)}`)}var En={TASK:"/activity/%s/overview",COLLECTION:"/file-manager/collections/%s/overview",ENDPOINT:"/file-manager/collections/%s/overview"};function On(e,t,r){let s=En[e].replace(/%s/g,t?.join("/")||"");return Sr(s,r)}return Cr(bn);})();
1
+ var globus=(()=>{var xr=Object.create;var ie=Object.defineProperty;var Dr=Object.getOwnPropertyDescriptor;var Ar=Object.getOwnPropertyNames;var Mr=Object.getPrototypeOf,wr=Object.prototype.hasOwnProperty;var Cr=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),u=(e,t)=>{for(var r in t)ie(e,r,{get:t[r],enumerable:!0})},Ht=(e,t,r,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let c of Ar(t))!wr.call(e,c)&&c!==r&&ie(e,c,{get:()=>t[c],enumerable:!(s=Dr(t,c))||s.enumerable});return e};var kr=(e,t,r)=>(r=e!=null?xr(Mr(e)):{},Ht(t||!e||!e.__esModule?ie(r,"default",{value:e,enumerable:!0}):r,e)),Lr=e=>Ht(ie({},"__esModule",{value:!0}),e);var rr=Cr((F,tr)=>{var ge=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,ye=function(){function e(){this.fetch=!1,this.DOMException=ge.DOMException}return e.prototype=ge,new e}();(function(e){var t=function(r){var s=typeof e<"u"&&e||typeof self<"u"&&self||typeof s<"u"&&s,c={searchParams:"URLSearchParams"in s,iterable:"Symbol"in s&&"iterator"in Symbol,blob:"FileReader"in s&&"Blob"in s&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in s,arrayBuffer:"ArrayBuffer"in s};function y(n){return n&&DataView.prototype.isPrototypeOf(n)}if(c.arrayBuffer)var O=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],R=ArrayBuffer.isView||function(n){return n&&O.indexOf(Object.prototype.toString.call(n))>-1};function b(n){if(typeof n!="string"&&(n=String(n)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(n)||n==="")throw new TypeError('Invalid character in header field name: "'+n+'"');return n.toLowerCase()}function U(n){return typeof n!="string"&&(n=String(n)),n}function k(n){var i={next:function(){var l=n.shift();return{done:l===void 0,value:l}}};return c.iterable&&(i[Symbol.iterator]=function(){return i}),i}function f(n){this.map={},n instanceof f?n.forEach(function(i,l){this.append(l,i)},this):Array.isArray(n)?n.forEach(function(i){this.append(i[0],i[1])},this):n&&Object.getOwnPropertyNames(n).forEach(function(i){this.append(i,n[i])},this)}f.prototype.append=function(n,i){n=b(n),i=U(i);var l=this.map[n];this.map[n]=l?l+", "+i:i},f.prototype.delete=function(n){delete this.map[b(n)]},f.prototype.get=function(n){return n=b(n),this.has(n)?this.map[n]:null},f.prototype.has=function(n){return this.map.hasOwnProperty(b(n))},f.prototype.set=function(n,i){this.map[b(n)]=U(i)},f.prototype.forEach=function(n,i){for(var l in this.map)this.map.hasOwnProperty(l)&&n.call(i,this.map[l],l,this)},f.prototype.keys=function(){var n=[];return this.forEach(function(i,l){n.push(l)}),k(n)},f.prototype.values=function(){var n=[];return this.forEach(function(i){n.push(i)}),k(n)},f.prototype.entries=function(){var n=[];return this.forEach(function(i,l){n.push([l,i])}),k(n)},c.iterable&&(f.prototype[Symbol.iterator]=f.prototype.entries);function w(n){if(n.bodyUsed)return Promise.reject(new TypeError("Already read"));n.bodyUsed=!0}function B(n){return new Promise(function(i,l){n.onload=function(){i(n.result)},n.onerror=function(){l(n.error)}})}function It(n){var i=new FileReader,l=B(i);return i.readAsArrayBuffer(n),l}function H(n){var i=new FileReader,l=B(i);return i.readAsText(n),l}function _r(n){for(var i=new Uint8Array(n),l=new Array(i.length),h=0;h<i.length;h++)l[h]=String.fromCharCode(i[h]);return l.join("")}function jt(n){if(n.slice)return n.slice(0);var i=new Uint8Array(n.byteLength);return i.set(new Uint8Array(n)),i.buffer}function Ut(){return this.bodyUsed=!1,this._initBody=function(n){this.bodyUsed=this.bodyUsed,this._bodyInit=n,n?typeof n=="string"?this._bodyText=n:c.blob&&Blob.prototype.isPrototypeOf(n)?this._bodyBlob=n:c.formData&&FormData.prototype.isPrototypeOf(n)?this._bodyFormData=n:c.searchParams&&URLSearchParams.prototype.isPrototypeOf(n)?this._bodyText=n.toString():c.arrayBuffer&&c.blob&&y(n)?(this._bodyArrayBuffer=jt(n.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):c.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(n)||R(n))?this._bodyArrayBuffer=jt(n):this._bodyText=n=Object.prototype.toString.call(n):this._bodyText="",this.headers.get("content-type")||(typeof n=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):c.searchParams&&URLSearchParams.prototype.isPrototypeOf(n)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},c.blob&&(this.blob=function(){var n=w(this);if(n)return n;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(){if(this._bodyArrayBuffer){var n=w(this);return n||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else return this.blob().then(It)}),this.text=function(){var n=w(this);if(n)return n;if(this._bodyBlob)return H(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(_r(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},c.formData&&(this.formData=function(){return this.text().then(Er)}),this.json=function(){return this.text().then(JSON.parse)},this}var Tr=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function Rr(n){var i=n.toUpperCase();return Tr.indexOf(i)>-1?i:n}function N(n,i){if(!(this instanceof N))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');i=i||{};var l=i.body;if(n instanceof N){if(n.bodyUsed)throw new TypeError("Already read");this.url=n.url,this.credentials=n.credentials,i.headers||(this.headers=new f(n.headers)),this.method=n.method,this.mode=n.mode,this.signal=n.signal,!l&&n._bodyInit!=null&&(l=n._bodyInit,n.bodyUsed=!0)}else this.url=String(n);if(this.credentials=i.credentials||this.credentials||"same-origin",(i.headers||!this.headers)&&(this.headers=new f(i.headers)),this.method=Rr(i.method||this.method||"GET"),this.mode=i.mode||this.mode||null,this.signal=i.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&l)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(l),(this.method==="GET"||this.method==="HEAD")&&(i.cache==="no-store"||i.cache==="no-cache")){var h=/([?&])_=[^&]*/;if(h.test(this.url))this.url=this.url.replace(h,"$1_="+new Date().getTime());else{var S=/\?/;this.url+=(S.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}N.prototype.clone=function(){return new N(this,{body:this._bodyInit})};function Er(n){var i=new FormData;return n.trim().split("&").forEach(function(l){if(l){var h=l.split("="),S=h.shift().replace(/\+/g," "),m=h.join("=").replace(/\+/g," ");i.append(decodeURIComponent(S),decodeURIComponent(m))}}),i}function Or(n){var i=new f,l=n.replace(/\r?\n[\t ]+/g," ");return l.split("\r").map(function(h){return h.indexOf(`
2
+ `)===0?h.substr(1,h.length):h}).forEach(function(h){var S=h.split(":"),m=S.shift().trim();if(m){var se=S.join(":").trim();i.append(m,se)}}),i}Ut.call(N.prototype);function A(n,i){if(!(this instanceof A))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');i||(i={}),this.type="default",this.status=i.status===void 0?200:i.status,this.ok=this.status>=200&&this.status<300,this.statusText=i.statusText===void 0?"":""+i.statusText,this.headers=new f(i.headers),this.url=i.url||"",this._initBody(n)}Ut.call(A.prototype),A.prototype.clone=function(){return new A(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new f(this.headers),url:this.url})},A.error=function(){var n=new A(null,{status:0,statusText:""});return n.type="error",n};var br=[301,302,303,307,308];A.redirect=function(n,i){if(br.indexOf(i)===-1)throw new RangeError("Invalid status code");return new A(null,{status:i,headers:{location:n}})},r.DOMException=s.DOMException;try{new r.DOMException}catch{r.DOMException=function(i,l){this.message=i,this.name=l;var h=Error(i);this.stack=h.stack},r.DOMException.prototype=Object.create(Error.prototype),r.DOMException.prototype.constructor=r.DOMException}function Ee(n,i){return new Promise(function(l,h){var S=new N(n,i);if(S.signal&&S.signal.aborted)return h(new r.DOMException("Aborted","AbortError"));var m=new XMLHttpRequest;function se(){m.abort()}m.onload=function(){var D={status:m.status,statusText:m.statusText,headers:Or(m.getAllResponseHeaders()||"")};D.url="responseURL"in m?m.responseURL:D.headers.get("X-Request-URL");var ne="response"in m?m.response:m.responseText;setTimeout(function(){l(new A(ne,D))},0)},m.onerror=function(){setTimeout(function(){h(new TypeError("Network request failed"))},0)},m.ontimeout=function(){setTimeout(function(){h(new TypeError("Network request failed"))},0)},m.onabort=function(){setTimeout(function(){h(new r.DOMException("Aborted","AbortError"))},0)};function Pr(D){try{return D===""&&s.location.href?s.location.href:D}catch{return D}}m.open(S.method,Pr(S.url),!0),S.credentials==="include"?m.withCredentials=!0:S.credentials==="omit"&&(m.withCredentials=!1),"responseType"in m&&(c.blob?m.responseType="blob":c.arrayBuffer&&S.headers.get("Content-Type")&&S.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(m.responseType="arraybuffer")),i&&typeof i.headers=="object"&&!(i.headers instanceof f)?Object.getOwnPropertyNames(i.headers).forEach(function(D){m.setRequestHeader(D,U(i.headers[D]))}):S.headers.forEach(function(D,ne){m.setRequestHeader(ne,D)}),S.signal&&(S.signal.addEventListener("abort",se),m.onreadystatechange=function(){m.readyState===4&&S.signal.removeEventListener("abort",se)}),m.send(typeof S._bodyInit>"u"?null:S._bodyInit)})}return Ee.polyfill=!0,s.fetch||(s.fetch=Ee,s.Headers=f,s.Request=N,s.Response=A),r.Headers=f,r.Request=N,r.Response=A,r.fetch=Ee,r}({})})(ye);ye.fetch.ponyfill=!0;delete ye.fetch.polyfill;var V=ge.fetch?ge:ye;F=V.fetch;F.default=V.fetch;F.fetch=V.fetch;F.Headers=V.Headers;F.Request=V.Request;F.Response=V.Response;tr.exports=F});var Cn={};u(Cn,{auth:()=>ze,authorization:()=>Qe,compute:()=>Gt,errors:()=>Ie,flows:()=>bt,gcs:()=>Lt,groups:()=>Rt,info:()=>Pe,logger:()=>De,search:()=>St,timer:()=>Nt,transfer:()=>mt,webapp:()=>Ft});var Pe={};u(Pe,{CLIENT_INFO:()=>Kt,VERSION:()=>Vt,addClientInfo:()=>Fr,getClientInfo:()=>Wt,getClientInfoRequestHeaders:()=>be});var Jt="X-Globus-Client-Info",Nr=!0;function $t(){return Nr}var qr=";",Gr=",";function Bt(e){return(Array.isArray(e)?e:[e]).map(r=>Object.entries(r).map(([s,c])=>`${s}=${c}`).join(Gr)).join(qr)}var zt="4.0.0";var Vt=zt,Kt={product:"javascript-sdk",version:Vt},Oe=[Kt];function Fr(e){Oe=Oe.concat(e)}function Wt(){return Bt(Oe)}function be(){return $t()?{[Jt]:Wt()}:{}}var De={};u(De,{log:()=>T,setLogLevel:()=>jr,setLogger:()=>Ir});var xe=["debug","info","warn","error"],ae,Yt=xe.indexOf("error");function Ir(e){ae=e}function jr(e){Yt=xe.indexOf(e)}function T(e,...t){if(!ae||xe.indexOf(e)<Yt)return;(ae[e]??ae.log)(...t)}var Qe={};u(Qe,{AuthorizationManager:()=>oe,create:()=>co});var J=class extends Error{};J.prototype.name="InvalidTokenError";function Ur(e){return decodeURIComponent(atob(e).replace(/(.)/g,(t,r)=>{let s=r.charCodeAt(0).toString(16).toUpperCase();return s.length<2&&(s="0"+s),"%"+s}))}function Hr(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 Ur(t)}catch{return atob(t)}}function Qt(e,t){if(typeof e!="string")throw new J("Invalid token specified: must be a string");t||(t={});let r=t.header===!0?0:1,s=e.split(".")[r];if(typeof s!="string")throw new J(`Invalid token specified: missing part #${r+1}`);let c;try{c=Hr(s)}catch(y){throw new J(`Invalid token specified: invalid base64 for part #${r+1} (${y.message})`)}try{return JSON.parse(c)}catch(y){throw new J(`Invalid token specified: invalid json for part #${r+1} (${y.message})`)}}var ze={};u(ze,{CONFIG:()=>$e,getAuthorizationEndpoint:()=>Be,getTokenEndpoint:()=>no,identities:()=>He,isGlobusAuthTokenResponse:()=>Se,isRefreshToken:()=>ee,isToken:()=>K,oauth2:()=>I});var he={};u(he,{HOSTS:()=>Ne,ID:()=>_,RESOURCE_SERVERS:()=>qe,SCOPES:()=>fe});var pe={};u(pe,{HOSTS:()=>Ae,ID:()=>a,SCOPES:()=>p});var a="TRANSFER",p={ALL:"urn:globus:auth:scope:transfer.api.globus.org:all"},Ae={sandbox:"transfer.api.sandbox.globuscs.info",production:"transfer.api.globusonline.org",staging:"transfer.api.staging.globuscs.info",integration:"transfer.api.integration.globuscs.info",test:"transfer.api.test.globuscs.info",preview:"transfer.api.preview.globus.org"};var ce={};u(ce,{HOSTS:()=>Me,ID:()=>E,SCOPES:()=>C});var E="FLOWS",Me={sandbox:"sandbox.flows.automate.globus.org",production:"flows.globus.org",staging:"staging.flows.automate.globus.org",integration:"integration.flows.automate.globus.org",test:"test.flows.automate.globus.org",preview:"preview.flows.automate.globus.org"},C={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"};var ue={};u(ue,{HOSTS:()=>we,ID:()=>L});var L="TIMER",we={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"};var de={};u(de,{HOSTS:()=>Ce,ID:()=>P,SCOPES:()=>q});var P="GROUPS",Ce={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"},q={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"};var le={};u(le,{HOSTS:()=>ke,ID:()=>v,SCOPES:()=>x});var v="SEARCH",ke={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"},x={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"};var me={};u(me,{HOSTS:()=>Le,ID:()=>M,SCOPES:()=>Y});var M="COMPUTE",Le={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"},Y={ALL:"https://auth.globus.org/scopes/facd7ccc-c5f4-42aa-916b-a0e270e2c2a9/all"};var _="AUTH",Ne={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"},fe={VIEW_IDENTITIES:"urn:globus:auth:scope:auth.globus.org:view_identities"},qe={[_]:"auth.globus.org",[a]:"transfer.api.globus.org",[E]:"flows.api.globus.org",[P]:"groups.api.globus.org",[v]:"search.api.globus.org",[L]:"524230d7-ea86-4a52-8312-86065a9e0417",[M]:"funcx_service"};var Ie={};u(Ie,{EnvironmentConfigurationError:()=>Q,isAuthorizationRequirementsError:()=>X,isConsentRequiredError:()=>Ge,isErrorWellFormed:()=>Xt,toAuthorizationQueryParams:()=>Fe});var Q=class extends Error{name="EnvironmentConfigurationError";constructor(t,r){super(),this.message=`Invalid configuration value provided for ${t} (${r}).`}};function Xt(e){return typeof e=="object"&&e!==null&&"code"in e&&"message"in e}function Ge(e){return Xt(e)&&e.code==="ConsentRequired"&&"required_scopes"in e&&Array.isArray(e.required_scopes)}var Jr=["required_scopes"];function Fe(e){return Object.entries(e.authorization_parameters).reduce((t,[r,s])=>{if(Jr.includes(r)||s===void 0||s===null)return t;let c=s;return Array.isArray(c)?c=c.join(","):typeof s=="boolean"&&(c=c?"true":"false"),{...t,[r]:c}},{})}function X(e){return typeof e=="object"&&e!==null&&"authorization_parameters"in e&&typeof e.authorization_parameters=="object"&&e.authorization_parameters!==null}function $r(){return typeof window<"u"?window:process}function Br(e){return typeof window==typeof e}function je(e,t){let r=$r(),s;return Br(r)?s=r:s=r.env,e in s?s[e]:t}var Zt={PRODUCTION:"production",PREVIEW:"preview",STAGING:"staging",SANDBOX:"sandbox",INTEGRATION:"integration",TEST:"test"},G={[_]:_,[a]:a,[E]:E,[P]:P,[v]:v,[L]:L,[M]:M},zr={[_]:Ne,[a]:Ae,[E]:Me,[P]:Ce,[v]:ke,[L]:we,[M]:Le};function Ue(e){let t=je("GLOBUS_SDK_OPTIONS",{});return typeof t=="string"&&(t=JSON.parse(t)),{...t,...e,fetch:{...t?.fetch,...e?.fetch,options:{...t?.fetch?.options,...e?.fetch?.options,headers:{...t?.fetch?.options?.headers,...e?.fetch?.options?.headers}}}}}function z(){let e=Ue(),t=je("GLOBUS_SDK_ENVIRONMENT",e?.environment??Zt.PRODUCTION);if(e?.environment&&t!==e.environment&&T("debug","GLOBUS_SDK_ENVIRONMENT and GLOBUS_SDK_OPTIONS.environment are set to different values. GLOBUS_SDK_ENVIRONMENT will take precedence"),!t||!Object.values(Zt).includes(t))throw new Q("GLOBUS_SDK_ENVIRONMENT",t);return t}function Vr(e,t=z()){return zr[e][t]}function er(e,t=z()){let r=Vr(e,t);return je(`GLOBUS_SDK_SERVICE_URL_${e}`,r?`https://${r}`:void 0)}function Kr(e){let t=new URLSearchParams;return Array.from(Object.entries(e)).forEach(([r,s])=>{Array.isArray(s)?t.set(r,s.join(",")):s!==void 0&&t.set(r,String(s))}),t.toString()}function Wr(e,t="",r=z()){let s=er(e,r);return new URL(t,s)}function Z(e,t,r,s){let c;return typeof e=="object"?c=new URL(t,e.host):c=Wr(e,t,s?.environment),r&&r.search&&(c.search=Kr(r.search)),c.toString()}var He={};u(He,{get:()=>Yr,getAll:()=>Qr});var or=kr(rr());async function o(e,t,r){let s=Ue(r),c=s?.fetch?.options||{},y={...be(),...t?.headers,...c.headers},O=s?.manager,R;if(e.resource_server&&O&&(R=O.tokens.getByResourceServer(e.resource_server),R&&(y.Authorization=`Bearer ${R.access_token}`)),e.scope&&O){let H=typeof e.service=="string"?qe[e.service]:e.service.endpoint_id;R=O.tokens.getByResourceServer(H),R&&(y.Authorization=`Bearer ${R.access_token}`)}let b=t?.body;!b&&t?.payload&&(b=JSON.stringify(t.payload)),!y?.["Content-Type"]&&b&&(y["Content-Type"]="application/json");let U=Z(e.service,e.path,{search:t?.query},s),k={method:e.method,body:b,...c,headers:y},f=or.default;if(c?.__callable&&(f=c.__callable.bind(this),delete k.__callable),e.preventRetry||!O||!R||!ee(R))return f(U,k);let w=await f(U,k);if(w.ok)return w;let B;try{B=X(await w.clone().json())}catch{B=!1}if(w.status===401&&!B){let H=await O.refreshToken(R);return H?f(U,{...k,headers:{...k.headers,Authorization:`Bearer ${H.access_token}`}}):w}return w}var Yr=function(e,t={},r){return o({service:_,scope:fe.VIEW_IDENTITIES,path:`/identities/${e}`},t,r)},Qr=function(e={},t){return o({service:_,scope:fe.VIEW_IDENTITIES,path:"/identities"},e,t)};var I={};u(I,{token:()=>Je,userinfo:()=>so});var Je={};u(Je,{exchange:()=>Zr,introspect:()=>eo,refresh:()=>ro,revoke:()=>to,token:()=>sr,validate:()=>oo});function Xr(e){return new URLSearchParams(e)}function te(e){return{...e,body:e.payload?Xr(e.payload):void 0,headers:{...e?.headers||{},Accept:"application/json","Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"}}}var sr=function(e={},t){return o({service:_,scope:void 0,path:"/v2/oauth2/token",method:"POST",preventRetry:!0},te(e),t)},Zr=sr,eo=function(e,t){if(!e?.payload)throw new Error("'payload' is required for introspect");return o({service:_,scope:void 0,path:"/v2/oauth2/token/introspect",method:"POST",preventRetry:!0},te(e),t)},to=function(e,t){if(!e?.payload)throw new Error("'payload' is required for revoke");return o({service:_,scope:void 0,path:"/v2/oauth2/token/revoke",method:"POST",preventRetry:!0},te(e),t)},ro=function(e,t){if(!e?.payload)throw new Error("'payload' is required for revoke");return o({service:_,scope:void 0,path:"/v2/oauth2/token",method:"POST",preventRetry:!0},te(e),t)},oo=function(e,t){if(!e?.payload)throw new Error("'payload' is required for validate");return o({service:_,scope:void 0,path:"/v2/oauth2/token/validate",method:"POST",preventRetry:!0},te(e),t)};var so=function(e,t){return o({service:_,scope:void 0,path:"/v2/oauth2/userinfo",method:"GET"},e,t)};var $e=he;function Be(){return Z(_,"/v2/oauth2/authorize")}function no(){return Z(_,"/v2/oauth2/token")}function K(e){return typeof e=="object"&&e!==null&&"access_token"in e}function ee(e){return K(e)&&e!==null&&"refresh_token"in e}function Se(e){return K(e)&&e!==null&&"resource_server"in e}var ve=class{#e={};get(t){return this.#e[t]!==void 0?this.#e[t]:null}set(t,r){this.#e[t]=typeof r!="string"?JSON.stringify(r):r}remove(t){delete this.#e[t]}keys(){return Object.keys(this.#e)}clear(){this.#e={}}};var _e=class{#e=globalThis.localStorage;get(t){return this.#e.getItem(t)}set(t,r){this.#e.setItem(t,typeof r!="string"?JSON.stringify(r):r)}keys(){return Object.keys(this.#e)}remove(t){this.#e.removeItem(t)}clear(){this.#e.clear()}};var Ve;function Ke(e="memory"){if(!Ve){let t;e==="localStorage"?t=_e:e==="memory"?t=ve:t=e,Ve=new t}return Ve}var j=Ke;var re=class{constructor(t){this.name=t}#e=[];addListener(t){return this.#e.push(t),()=>this.removeListener(t)}removeListener(t){this.#e=this.#e.filter(r=>r!==t)}clearListeners(){this.#e=[]}async dispatch(t){await Promise.all(this.#e.map(r=>r(t)))}};function ir(){return"crypto"in globalThis}function Ye(){return"webcrypto"in globalThis.crypto?globalThis.crypto.webcrypto:globalThis.crypto}var io=e=>btoa(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"");async function ao(e){let t=await Ye().subtle.digest("SHA-256",new TextEncoder().encode(e));return String.fromCharCode(...new Uint8Array(t))}var We="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",nr=`${We}-._~`;function ar(){return Array.from(Ye().getRandomValues(new Uint8Array(43))).map(e=>nr[e%nr.length]).join("")}async function pr(e){let t=await ao(e);return io(t)}function cr(){return Array.from(Ye().getRandomValues(new Uint8Array(16))).map(e=>We[e%We.length]).join("")}var W={PKCE_STATE:"pkce_state",PKCE_CODE_VERIFIER:"pkce_code_verifier"};function po(){sessionStorage.removeItem(W.PKCE_STATE),sessionStorage.removeItem(W.PKCE_CODE_VERIFIER)}var Te=class e{#e;constructor(t){if(this.#e=t,e.supported===!1)throw new Error("RedirectTransport is not supported in this environment.")}static supported=ir();async send(){let t=ar(),r=await pr(t),s=cr();sessionStorage.setItem(W.PKCE_CODE_VERIFIER,t),sessionStorage.setItem(W.PKCE_STATE,s);let c={response_type:"code",client_id:this.#e.client,scope:this.#e.scopes||"",redirect_uri:this.#e.redirect,state:s,code_challenge:r,code_challenge_method:"S256",...this.#e.params||{}},y=new URL(Be());y.search=new URLSearchParams(c).toString(),window.location.assign(y.toString())}async getToken(t={shouldReplace:!0}){let r=new URL(window.location.href),s=new URLSearchParams(r.search);if(s.get("error"))throw new Error(s.get("error_description")||"An error occurred during the authorization process.");let c=s.get("code");if(!c)return;let y=sessionStorage.getItem(W.PKCE_STATE),O=sessionStorage.getItem(W.PKCE_CODE_VERIFIER);if(po(),s.get("state")!==y)throw new Error("Invalid State");if(!O)throw new Error("Invalid Code Verifier");let R={code:c,client_id:this.#e.client,code_verifier:O,redirect_uri:this.#e.redirect,grant_type:"authorization_code"},b=await(await I.token.exchange({payload:R})).json();return t.shouldReplace&&(s.delete("code"),s.delete("state"),r.search=s.toString(),window.location.replace(r)),b}};function ur(e){let t=j().get(e)||"null",r=null;try{let s=JSON.parse(t);K(s)&&(r=s)}catch{}return r}var Re=class{#e;constructor(t){this.#e=t.manager}#r(t){return ur(`${this.#e.storageKeyPrefix}${t}`)}#t(t){let r=$e.RESOURCE_SERVERS?.[t];return this.#r(r)}get auth(){return this.#t(G.AUTH)}get transfer(){return this.#t(G.TRANSFER)}get flows(){return this.#t(G.FLOWS)}get groups(){return this.#t(G.GROUPS)}get search(){return this.#t(G.SEARCH)}get timer(){return this.#t(G.TIMER)}get compute(){return this.#t(G.COMPUTE)}gcs(t){return this.getByResourceServer(t)}getByResourceServer(t){return this.#r(t)}getAll(){return j().keys().reduce((r,s)=>(s.startsWith(this.#e.storageKeyPrefix)&&r.push(ur(s)),r),[]).filter(K)}};var dr={useRefreshTokens:!1,defaultScopes:"openid profile email"},lr={execute:!0,additionalParams:void 0},oe=class{#e;configuration;#r=!1;get authenticated(){return this.#r}set authenticated(t){t!==this.#r&&(this.#r=t,this.#n())}tokens;events={authenticated:new re("authenticated"),revoke:new re("revoke")};constructor(t){if(Ke("localStorage"),!t.client)throw new Error("You must provide a `client` for your application.");let r=t.defaultScopes===!1?"":t.defaultScopes??dr.defaultScopes;this.configuration={...dr,...t,scopes:[t.scopes?t.scopes:"",r].filter(s=>s.length).join(" ")},this.configuration.events&&Object.entries(this.configuration.events).forEach(([s,c])=>{s in this.events&&this.events[s].addListener(c)}),this.tokens=new Re({manager:this}),this.#t()}get storageKeyPrefix(){return`${this.configuration.client}:`}get user(){let t=this.getGlobusAuthToken();return t&&t.id_token?Qt(t.id_token):null}async refreshTokens(){T("debug","AuthorizationManager.refreshTokens");let t=await Promise.allSettled(this.tokens.getAll().map(r=>ee(r)?this.refreshToken(r):Promise.resolve(null)));return this.#t(),t}async refreshToken(t){T("debug",`AuthorizationManager.refreshToken | resource_server=${t.resource_server}`);try{let r=await(await I.token.refresh({payload:{client_id:this.configuration.client,refresh_token:t.refresh_token,grant_type:"refresh_token"}})).json();if(Se(r))return this.addTokenResponse(r),r}catch{T("error",`AuthorizationManager.refreshToken | resource_server=${t.resource_server}`)}return null}hasGlobusAuthToken(){return this.getGlobusAuthToken()!==null}getGlobusAuthToken(){let t=j().get(`${this.storageKeyPrefix}auth.globus.org`);return t?JSON.parse(t):null}#t(){T("debug","AuthorizationManager.#checkAuthorizationState"),this.hasGlobusAuthToken()&&(this.authenticated=!0)}async#n(){let t=this.authenticated,r=this.getGlobusAuthToken()??void 0;await this.events.authenticated.dispatch({isAuthenticated:t,token:r})}reset(){j().keys().forEach(t=>{t.startsWith(this.storageKeyPrefix)&&j().remove(t)}),this.authenticated=!1}#s(t){return`${t}${this.configuration.useRefreshTokens?" offline_access":""}`}#o(t){let r=this.#s(t?.scopes??(this.configuration.scopes||""));return new Te({client:this.configuration.client,redirect:this.configuration.redirect,scopes:r,...t,params:{...t?.params}})}async login(t={additionalParams:{}}){T("debug","AuthorizationManager.login"),this.reset(),await this.#o({params:t?.additionalParams}).send()}async handleCodeRedirect(t={shouldReplace:!0,additionalParams:{}}){T("debug","AuthorizationManager.handleCodeRedirect");let r=await this.#o({params:t?.additionalParams}).getToken({shouldReplace:t?.shouldReplace});Se(r)&&(T("debug",`AuthorizationManager.handleCodeRedirect | response=${JSON.stringify(r)}`),this.addTokenResponse(r))}async handleErrorResponse(t,r){let s=typeof r=="boolean"?{...lr,execute:r}:{...lr,...r};T("debug",`AuthorizationManager.handleErrorResponse | response=${JSON.stringify(t)} execute=${s.execute}`);let c=async()=>{};return X(t)&&(T("debug","AuthorizationManager.handleErrorResponse | error=AuthorizationRequirementsError"),c=async()=>{await this.handleAuthorizationRequirementsError(t,{additionalParams:s.additionalParams})}),Ge(t)&&(T("debug","AuthorizationManager.handleErrorResponse | error=ConsentRequiredError"),c=async()=>{await this.handleConsentRequiredError(t,{additionalParams:s.additionalParams})}),"code"in t&&t.code==="AuthenticationFailed"&&(T("debug","AuthorizationManager.handleErrorResponse | error=AuthenticationFailed"),c=async()=>{await this.revoke()}),s.execute===!0?await c():c}async handleAuthorizationRequirementsError(t,r){this.#e=this.#o({params:{prompt:"login",...Fe(t),...r?.additionalParams}}),await this.#e.send()}async handleConsentRequiredError(t,r){this.#e=this.#o({scopes:this.#s(t.required_scopes.join(" ")),params:{...r?.additionalParams}}),await this.#e.send()}addTokenResponse=t=>{j().set(`${this.configuration.client}:${t.resource_server}`,t),"other_tokens"in t&&t.other_tokens?.forEach(this.addTokenResponse),this.#t()};async revoke(){T("debug","AuthorizationManager.revoke");let t=Promise.all(this.tokens.getAll().map(this.#i.bind(this)));this.reset(),await t,await this.events.revoke.dispatch()}#i(t){return T("debug",`AuthorizationManager.revokeToken | resource_server=${t.resource_server}`),I.token.revoke({payload:{client_id:this.configuration.client,token:t.access_token}})}};function co(e){return new oe(e)}var mt={};u(mt,{CONFIG:()=>ds,access:()=>rt,collectionBookmarks:()=>ot,endpoint:()=>et,endpointManager:()=>at,endpointSearch:()=>mr,fileOperations:()=>Xe,task:()=>tt,taskSubmission:()=>Ze,utils:()=>lt});var mr=function(e,t){let r={...e,query:e?.query};return o({service:a,scope:p.ALL,path:"/v0.10/endpoint_search"},r,t)};var Xe={};u(Xe,{ls:()=>uo,mkdir:()=>lo,rename:()=>mo,stat:()=>ho,symlink:()=>fo});function $(e){return e==="GET"?{}:{"Content-Type":"application/json"}}var uo=function(e,t,r){return o({service:a,scope:p.ALL,path:`/v0.10/operation/endpoint/${e}/ls`},t,r)},lo=function(e,t,r){let s={payload:{DATA_TYPE:"mkdir",...t?.payload},headers:{...$("POST"),...t?.headers}};return o({service:a,scope:p.ALL,path:`/v0.10/operation/endpoint/${e}/mkdir`,method:"POST"},s,r)},mo=function(e,t,r){let s={payload:{DATA_TYPE:"rename",...t?.payload},headers:{...$("POST"),...t?.headers}};return o({service:a,scope:p.ALL,path:`/v0.10/operation/endpoint/${e}/rename`,method:"POST"},s,r)},fo=function(e,t,r){let s={payload:{DATA_TYPE:"symlink",...t?.payload},headers:{...$("POST"),...t?.headers}};return o({service:a,scope:p.ALL,path:`/v0.10/operation/endpoint/${e}/symlink`,method:"POST"},s,r)},ho=function(e,t,r){return o({service:a,scope:p.ALL,path:`/v0.10/operation/endpoint/${e}/stat`},t,r)};var Ze={};u(Ze,{submissionId:()=>So,submitDelete:()=>go,submitTransfer:()=>yo});var go=function(e,t){let r={payload:{DATA_TYPE:"delete",...e?.payload},headers:{...$("POST"),...e?.headers}};return o({service:a,scope:p.ALL,path:"/v0.10/delete",method:"POST"},r,t)},yo=function(e,t){let r={payload:{DATA_TYPE:"transfer",...e?.payload},headers:{...$("POST"),...e?.headers}};return o({service:a,scope:p.ALL,path:"/v0.10/transfer",method:"POST"},r,t)},So=function(e,t){return o({service:a,scope:p.ALL,path:"/v0.10/submission_id"},e,t)};var et={};u(et,{create:()=>_o,get:()=>vo,remove:()=>Ro,update:()=>To});var vo=function(e,t,r){return o({service:a,scope:p.ALL,path:`/v0.10/endpoint/${e}`},t,r)},_o=function(e,t){return e?.payload&&Object.assign(e.payload,{DATA_TYPE:"shared_endpoint"}),o({service:a,scope:p.ALL,path:"/v0.10/shared_endpoint",method:"POST"},e,t)},To=function(e,t,r){return t?.payload&&Object.assign(t.payload,{DATA_TYPE:"endpoint"}),o({service:a,scope:p.ALL,path:`/v0.10/endpoint/${e}`,method:"PUT"},t,r)},Ro=function(e,t,r){return o({service:a,scope:p.ALL,path:`/v0.10/endpoint/${e}`,method:"DELETE"},t,r)};var tt={};u(tt,{cancel:()=>Po,get:()=>Oo,getAll:()=>Eo,getEventList:()=>Do,getPauseInfo:()=>wo,getSkippedErrors:()=>Mo,getSuccessfulTransfers:()=>Ao,remove:()=>xo,update:()=>bo});var Eo=function(e={},t){return o({service:a,scope:p.ALL,path:"/v0.10/task_list"},e,t)},Oo=function(e,t,r){return o({service:a,scope:p.ALL,path:`/v0.10/task/${e}`},t,r)},bo=function(e,t,r){return o({service:a,scope:p.ALL,path:`/v0.10/task/${e}`,method:"PUT"},t,r)},Po=function(e,t,r){return o({service:a,scope:p.ALL,path:`/v0.10/task/${e}/cancel`,method:"POST"},t,r)},xo=function(e,t,r){return o({service:a,scope:p.ALL,path:`/v0.10/task/${e}/remove`,method:"POST"},t,r)},Do=function(e,t,r){return o({service:a,scope:p.ALL,path:`/v0.10/task/${e}/event_list`},t,r)},Ao=function(e,t,r){return o({service:a,scope:p.ALL,path:`/v0.10/task/${e}/successful_transfers`},t,r)},Mo=function(e,t,r){return o({service:a,scope:p.ALL,path:`/v0.10/task/${e}/skipped_errors`},t,r)},wo=function(e,t,r){return o({service:a,scope:p.ALL,path:`/v0.10/task/${e}/pause_info`},t,r)};var rt={};u(rt,{create:()=>ko,get:()=>Lo,getAll:()=>Co,remove:()=>qo,update:()=>No});var Co=function(e,t,r){return o({service:a,scope:p.ALL,path:`/v0.10/endpoint/${e}/access_list`},t,r)},ko=function(e,t,r){return o({service:a,scope:p.ALL,path:`/v0.10/endpoint/${e}/access`,method:"POST"},t,r)},Lo=function({endpoint_xid:e,id:t},r,s){return o({service:a,scope:p.ALL,path:`/v0.10/endpoint/${e}/access/${t}`},r,s)},No=function({endpoint_xid:e,id:t},r,s){return o({service:a,scope:p.ALL,path:`/v0.10/endpoint/${e}/access/${t}`,method:"PUT"},r,s)},qo=function({endpoint_xid:e,id:t},r,s){return o({service:a,scope:p.ALL,path:`/v0.10/endpoint/${e}/access/${t}`,method:"DELETE"},r,s)};var ot={};u(ot,{create:()=>Fo,get:()=>Io,getAll:()=>Go,remove:()=>Uo,update:()=>jo});var Go=function(e,t){return o({service:a,scope:p.ALL,path:"/v0.10/bookmark_list"},e,t)},Fo=function(e,t){return o({service:a,scope:p.ALL,path:"/v0.10/bookmark",method:"POST"},e,t)},Io=function(e,t,r){return o({service:a,scope:p.ALL,path:`/v0.10/bookmark/${e}`},t,r)},jo=function(e,t,r){return o({service:a,scope:p.ALL,path:`/v0.10/bookmark/${e}`,method:"PUT"},t,r)},Uo=function(e,t,r){return o({service:a,scope:p.ALL,path:`/v0.10/bookmark/${e}`,method:"DELETE"},t,r)};var at={};u(at,{endpoint:()=>st,pauseRule:()=>nt,task:()=>it});var st={};u(st,{get:()=>Ho,getAccessList:()=>$o,getHostedEndpoints:()=>Jo,getMonitoredEndpoints:()=>Bo});var Ho=function(e,t,r){return o({service:a,scope:p.ALL,path:`/v0.10/endpoint_manager/endpoint/${e}`},t,r)},Jo=function(e,t,r){return o({service:a,scope:p.ALL,path:`/v0.10/endpoint_manager/endpoint/${e}/hosted_endpoint_list`},t,r)},$o=function(e,t,r){return o({service:a,scope:p.ALL,path:`/v0.10/endpoint_manager/endpoint/${e}/access_list`},t,r)},Bo=function(e={},t){return o({service:a,scope:p.ALL,path:"/v0.10/endpoint_manager/monitored_endpoints"},e,t)};var nt={};u(nt,{create:()=>Vo,get:()=>Ko,getAll:()=>zo,remove:()=>Yo,update:()=>Wo});var zo=function(e,t){return o({service:a,scope:p.ALL,path:"/v0.10/endpoint_manager/pause_rule_list"},e,t)},Vo=function(e,t){return o({service:a,scope:p.ALL,path:"/v0.10/endpoint_manager/pause_rule",method:"POST"},e,t)},Ko=function(e,t,r){return o({service:a,scope:p.ALL,path:`/v0.10/endpoint_manager/pause_rule/${e}`},t,r)},Wo=function(e,t,r){return o({service:a,scope:p.ALL,path:`/v0.10/endpoint_manager/pause_rule/${e}`,method:"PUT"},t,r)},Yo=function(e,t,r){return o({service:a,scope:p.ALL,path:`/v0.10/endpoint_manager/pause_rule/${e}`,method:"DELETE"},t,r)};var it={};u(it,{cancel:()=>Zo,get:()=>Xo,getAdminCancel:()=>es,getAll:()=>Qo,getEventList:()=>ts,getPauseInfo:()=>is,getSkippedErrors:()=>os,getSuccessfulTransfers:()=>rs,pause:()=>ss,resume:()=>ns});var Qo=function(e={},t){return o({service:a,scope:p.ALL,path:"/v0.10/task_list"},e,t)},Xo=function(e,t,r){return o({service:a,scope:p.ALL,path:`/v0.10/endpoint_manager/task/${e}`},t,r)},Zo=function(e,t){return o({service:a,scope:p.ALL,path:"/v0.10/endpoint_manager/admin_cancel",method:"POST"},e,t)},es=function(e,t,r){return o({service:a,scope:p.ALL,path:`/v0.10/endpoint_manager/admin_cancel/${e}`,method:"POST"},t,r)},ts=function(e,t,r){return o({service:a,scope:p.ALL,path:`/v0.10/endpoint_manager/task/${e}/event_list`},t,r)},rs=function(e,t,r){return o({service:a,scope:p.ALL,path:`/v0.10/endpoint_manager/task/${e}/successful_transfers`},t,r)},os=function(e,t,r){return o({service:a,scope:p.ALL,path:`/v0.10/endpoint_manager/task/${e}/skipped_errors`},t,r)},ss=function(e,t){return o({service:a,scope:p.ALL,path:"/v0.10/endpoint_manager/admin_pause",method:"POST"},e,t)},ns=function(e,t){return o({service:a,scope:p.ALL,path:"/v0.10/endpoint_manager/admin_resume",method:"POST"},e,t)},is=function(e,t,r){return o({service:a,scope:p.ALL,path:`/v0.10/endpoint_manager/task/${e}/pause_info`},t,r)};var lt={};u(lt,{getDomainFromEndpoint:()=>us,isDirectory:()=>as,isFileDocument:()=>hr,readableBytes:()=>ps});function hr(e){return typeof e=="object"&&e!==null&&"DATA_TYPE"in e&&e.DATA_TYPE==="file"}function as(e){return hr(e)&&e.type==="dir"}var pt=1e3,ct=pt*1e3,ut=ct*1e3,dt=ut*1e3,fr=dt*1e3;function ps(e,t=2){let r="B",s=1;if(e<pt)return`${e} ${r}`;e<ct?(r="KB",s=pt):e<ut?(r="MB",s=ct):e<dt?(r="GB",s=ut):e<fr?(r="TB",s=dt):(r="PB",s=fr);let c=e/s,[y,O]=`${c}`.split("."),R=`${y}`;if(O&&O.length){let b=O.slice(0,t);b.length&&(R=`${y}.${b}`)}return`${R} ${r}`}var cs=["dnsteam.globuscs.info","data.globus.org","dn.glob.us"];function us(e){let{tlsftp_server:t}=e;if(!t||typeof t!="string")return null;let{hostname:r}=new URL(t.replace("tlsftp","https"));return!cs.find(y=>r.endsWith(y))&&/(?:[gm]-\w{6}.)?(\w+(\.\w+)+)$/.exec(r)?.[1]||r||null}var ds=pe;var St={};u(St,{CONFIG:()=>Rs,entry:()=>gt,index:()=>yt,query:()=>ft,subject:()=>ht});var ft={};u(ft,{get:()=>ls,post:()=>ms});var ls=function(e,t,r){return o({service:v,scope:x.SEARCH,path:`/v1/index/${e}/search`},t,r)},ms=function(e,t,r){return o({service:v,scope:x.SEARCH,path:`/v1/index/${e}/search`,method:"POST"},t,r)};var ht={};u(ht,{get:()=>fs});var fs=function(e,t,r){return o({service:v,scope:x.SEARCH,path:`/v1/index/${e}/subject`},t,r)};var gt={};u(gt,{get:()=>hs});var hs=function(e,t,r){return o({service:v,scope:x.SEARCH,path:`/v1/index/${e}/entry`},t,r)};var yt={};u(yt,{create:()=>Ss,get:()=>gs,getAll:()=>ys,ingest:()=>Ts,remove:()=>vs,reopen:()=>_s});var gs=function(e,t,r){return o({service:v,path:`/v1/index/${e}`},t,r)},ys=function(e,t){return o({service:v,scope:x.ALL,path:"/v1/index_list"},e,t)},Ss=function(e,t){return o({service:v,scope:x.ALL,path:"/v1/index",method:"POST"},e,t)},vs=function(e,t,r){return o({service:v,scope:x.ALL,path:`/v1/index/${e}`,method:"DELETE"},t,r)},_s=function(e,t,r){return o({service:v,scope:x.ALL,path:`/v1/index/${e}/reopen`,method:"POST"},t,r)},Ts=function(e,t,r){return o({service:v,scope:x.ALL,path:`/v1/index/${e}/ingest`,method:"POST"},t,r)};var Rs=le;var Rt={};u(Rt,{CONFIG:()=>xs,groups:()=>vt,membership:()=>Tt,policies:()=>_t});var vt={};u(vt,{get:()=>Os,getMyGroups:()=>Es});var Es=function(e,t){return o({scope:q.ALL,path:"/v2/groups/my_groups",service:P},e,t)},Os=function(e,t,r){return o({service:P,scope:q.ALL,path:`/v2/groups/${e}`},t,r)};var _t={};u(_t,{get:()=>bs});var bs=function(e,t,r){return o({scope:q.ALL,path:`/v2/groups/${e}/policies`,service:P},t,r)};var Tt={};u(Tt,{act:()=>Ps});var Ps=function(e,t,r){if(!t?.payload)throw new Error("payload is required.");return o({service:P,scope:q.ALL,path:`/v2/groups/${e}`,method:"POST"},t,r)};var xs=de;var bt={};u(bt,{CONFIG:()=>Ns,flows:()=>Et,runs:()=>Ot});var Et={};u(Et,{get:()=>As,getAll:()=>Ds,remove:()=>Ms,run:()=>ws});var Ds=function(e,t){return o({service:E,scope:C.VIEW_FLOWS,path:"/flows"},e,t)},As=function(e,t,r){return o({service:E,scope:C.VIEW_FLOWS,path:`/flows/${e}`},t,r)},Ms=function(e,t,r){return o({scope:C.MANAGE_FLOWS,service:E,path:`/flows/${e}`,method:"DELETE"},t,r)},ws=function(e,t,r){return o({service:E,scope:C.VIEW_FLOWS,path:`/flows/${e}/run`,method:"POST"},t,r)};var Ot={};u(Ot,{cancel:()=>ks,getAll:()=>Cs,getLog:()=>Ls});var Cs=function(e={},t){return o({service:E,scope:C.RUN_MANAGE,path:"/runs"},e,t)},ks=function(e,t,r){return o({service:E,scope:C.RUN_MANAGE,path:`/runs/${e}/cancel`,method:"POST"},t,r)},Ls=function(e,t,r){return o({service:E,scope:C.RUN_MANAGE,path:`/runs/${e}/log`},t,r)};var Ns=ce;var Lt={};u(Lt,{collections:()=>Pt,endpoint:()=>xt,getRequiredScopes:()=>d,https:()=>Dt,nodes:()=>At,roles:()=>Mt,storageGateways:()=>wt,userCredentials:()=>Ct,versioning:()=>kt});var Pt={};u(Pt,{create:()=>Is,get:()=>Gs,getAll:()=>qs,patch:()=>Us,remove:()=>Fs,resetOwnerString:()=>Js,update:()=>js,updateOwnerString:()=>Hs});var qs=function(e,t,r){return o({service:e,scope:d(e),path:"/api/collections"},t,r)},Gs=function(e,t,r,s){return o({service:e,scope:d(e),path:`/api/collections/${t}`},r,s)},Fs=function(e,t,r,s){return o({service:e,scope:d(e),path:`/api/collections/${t}`,method:"DELETE"},r,s)},Is=function(e,t,r){return o({service:e,scope:d(e),path:"/api/collections",method:"POST"},t,r)},js=function(e,t,r,s){return o({service:e,scope:d(e),path:`/api/collections/${t}`,method:"PUT"},r,s)},Us=function(e,t,r,s){return o({service:e,scope:d(e),path:`/api/collections/${t}`,method:"PATCH"},r,s)},Hs=function(e,t,r,s){return o({service:e,scope:d(e),path:`/api/collections/${t}/owner_string`,method:"PUT"},r,s)},Js=function(e,t,r,s){return o({service:e,scope:d(e),path:`/api/collections/${t}/owner_string`,method:"DELETE"},r,s)};var xt={};u(xt,{get:()=>$s,patch:()=>zs,resetOwnerString:()=>Ys,update:()=>Bs,updateOwner:()=>Ks,updateOwnerString:()=>Ws,updateSubscriptionId:()=>Vs});var $s=function(e,t,r){return o({service:e,scope:d(e),path:"/api/endpoint"},t,r)},Bs=function(e,t,r){return o({service:e,scope:d(e),path:"/api/endpoint",method:"PUT"},t,r)},zs=function(e,t,r){return o({service:e,scope:d(e),path:"/api/endpoint",method:"PATCH"},t,r)},Vs=function(e,t,r){return o({service:e,scope:d(e),path:"/api/endpoint/subscription_id",method:"PUT"},t,r)},Ks=function(e,t,r){return o({service:e,scope:d(e),path:"/api/endpoint/owner",method:"PUT"},t,r)},Ws=function(e,t,r){return o({service:e,scope:d(e),path:"/api/endpoint/owner_string",method:"PUT"},t,r)},Ys=function(e,t,r){return o({service:e,scope:d(e),path:"/api/endpoint/owner_string",method:"DELETE"},t,r)};var Dt={};u(Dt,{get:()=>Qs,remove:()=>Xs,update:()=>Zs});var Qs=function(e,t,r,s){return o({service:e,scope:d(e),path:t},r,s)},Xs=function(e,t,r,s){return o({service:e,scope:d(e),path:t,method:"DELETE"},r,s)},Zs=function(e,t,r,s){return o({service:e,scope:d(e),path:t,method:"PUT"},r,s)};var At={};u(At,{create:()=>on,get:()=>tn,getAll:()=>en,patch:()=>nn,remove:()=>rn,update:()=>sn});var en=function(e,t,r){return o({service:e,scope:d(e),path:"/api/nodes"},t,r)},tn=function(e,t,r,s){return o({service:e,scope:d(e),path:`/api/nodes/${t}`},r,s)},rn=function(e,t,r,s){return o({service:e,scope:d(e),path:`/api/nodes/${t}`,method:"DELETE"},r,s)},on=function(e,t,r){return o({service:e,scope:d(e),path:"/api/nodes",method:"POST"},t,r)},sn=function(e,t,r,s){return o({service:e,scope:d(e),path:`/api/nodes/${t}`,method:"PUT"},r,s)},nn=function(e,t,r,s){return o({service:e,scope:d(e),path:`/api/nodes/${t}`,method:"PATCH"},r,s)};var Mt={};u(Mt,{create:()=>un,get:()=>pn,getAll:()=>an,remove:()=>cn});var an=function(e,t,r){return o({service:e,scope:d(e),path:"/api/roles"},t,r)},pn=function(e,t,r,s){return o({service:e,scope:d(e),path:`/api/roles/${t}`},r,s)},cn=function(e,t,r,s){return o({service:e,scope:d(e),path:`/api/roles/${t}`,method:"DELETE"},r,s)},un=function(e,t,r){return o({service:e,scope:d(e),path:"/api/roles",method:"POST"},t,r)};var wt={};u(wt,{create:()=>fn,get:()=>ln,getAll:()=>dn,patch:()=>gn,remove:()=>mn,update:()=>hn});var dn=function(e,t,r){return o({service:e,scope:d(e),path:"/api/storage_gateways"},t,r)},ln=function(e,t,r,s){return o({service:e,scope:d(e),path:`/api/storage_gateways/${t}`},r,s)},mn=function(e,t,r,s){return o({service:e,scope:d(e),path:`/api/storage_gateways/${t}`,method:"DELETE"},r,s)},fn=function(e,t,r){return o({service:e,scope:d(e),path:"/api/storage_gateways",method:"POST"},t,r)},hn=function(e,t,r,s){return o({service:e,scope:d(e),path:`/api/storage_gateways/${t}`,method:"PUT"},r,s)},gn=function(e,t,r,s){return o({service:e,scope:d(e),path:`/api/storage_gateways/${t}`,method:"PATCH"},r,s)};var Ct={};u(Ct,{create:()=>_n,get:()=>Sn,getAll:()=>yn,patch:()=>Rn,remove:()=>vn,update:()=>Tn});var yn=function(e,t,r){return o({service:e,scope:d(e),path:"/api/user_credentials"},t,r)},Sn=function(e,t,r,s){return o({service:e,scope:d(e),path:`/api/user_credentials/${t}`},r,s)},vn=function(e,t,r,s){return o({service:e,scope:d(e),path:`/api/user_credentials/${t}`,method:"DELETE"},r,s)},_n=function(e,t,r){return o({service:e,scope:d(e),path:"/api/user_credentials",method:"POST"},t,r)},Tn=function(e,t,r,s){return o({service:e,scope:d(e),path:`/api/user_credentials/${t}`,method:"PUT"},r,s)},Rn=function(e,t,r,s){return o({service:e,scope:d(e),path:`/api/user_credentials/${t}`,method:"PATCH"},r,s)};var kt={};u(kt,{info:()=>En});var En=function(e,t,r){return o({service:e,scope:d(e),path:"/api/info"},t,r)};var On={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 d(e){return On.HIGH_ASSURANCE.replace("<ENDPOINT_ID>",e.endpoint_id)}var Nt={};u(Nt,{CONFIG:()=>bn,create:()=>gr});var gr=function(e,t){return o({service:L,scope:"https://auth.globus.org/scopes/524230d7-ea86-4a52-8312-86065a9e0417/timer",path:"/v2/timer",method:"POST"},e,t)};var bn=ue;var Gt={};u(Gt,{CONFIG:()=>An,endpoints:()=>qt});var qt={};u(qt,{get:()=>xn,getAll:()=>Pn,getStatus:()=>Dn});var Pn=function(e,t){return o({service:M,scope:Y.ALL,path:"/v2/endpoints",method:"GET"},e,t)},xn=function(e,t,r){return o({service:M,scope:Y.ALL,path:`/v2/endpoints/${e}`,method:"GET"},t,r)},Dn=function(e,t,r){return o({service:M,scope:Y.ALL,path:`/v2/endpoints/${e}/status`},t,r)};var An=me;var Ft={};u(Ft,{HOSTS:()=>yr,host:()=>Sr,url:()=>vr,urlFor:()=>wn});var yr={integration:"app.integration.globuscs.info",sandbox:"app.sandbox.globuscs.info",test:"app.test.globuscs.info",staging:"app.staging.globuscs.info",preview:"app.preview.globus.org",production:"app.globus.org"};function Sr(e=z()){return yr[e]}function vr(e,t){return new URL(e||"",`https://${Sr(t?.environment)}`)}var Mn={TASK:"/activity/%s/overview",COLLECTION:"/file-manager/collections/%s/overview",ENDPOINT:"/file-manager/collections/%s/overview"};function wn(e,t,r){let s=Mn[e].replace(/%s/g,t?.join("/")||"");return vr(s,r)}return Lr(Cn);})();
3
3
  //# sourceMappingURL=globus.production.js.map