@activepieces/piece-slack 0.17.2 → 0.17.4

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 (193) hide show
  1. package/package.json +7 -15
  2. package/src/index.js +103 -208
  3. package/src/index.d.ts +0 -6
  4. package/src/index.d.ts.map +0 -1
  5. package/src/index.js.map +0 -1
  6. package/src/lib/actions/add-reaction-to-message.d.ts +0 -14
  7. package/src/lib/actions/add-reaction-to-message.d.ts.map +0 -1
  8. package/src/lib/actions/add-reaction-to-message.js +0 -60
  9. package/src/lib/actions/add-reaction-to-message.js.map +0 -1
  10. package/src/lib/actions/create-channel.d.ts +0 -8
  11. package/src/lib/actions/create-channel.d.ts.map +0 -1
  12. package/src/lib/actions/create-channel.js +0 -37
  13. package/src/lib/actions/create-channel.js.map +0 -1
  14. package/src/lib/actions/delete-message.d.ts +0 -12
  15. package/src/lib/actions/delete-message.d.ts.map +0 -1
  16. package/src/lib/actions/delete-message.js +0 -56
  17. package/src/lib/actions/delete-message.js.map +0 -1
  18. package/src/lib/actions/find-user-by-email.d.ts +0 -7
  19. package/src/lib/actions/find-user-by-email.d.ts.map +0 -1
  20. package/src/lib/actions/find-user-by-email.js +0 -35
  21. package/src/lib/actions/find-user-by-email.js.map +0 -1
  22. package/src/lib/actions/find-user-by-handle.d.ts +0 -7
  23. package/src/lib/actions/find-user-by-handle.d.ts.map +0 -1
  24. package/src/lib/actions/find-user-by-handle.js +0 -55
  25. package/src/lib/actions/find-user-by-handle.js.map +0 -1
  26. package/src/lib/actions/find-user-by-id.d.ts +0 -7
  27. package/src/lib/actions/find-user-by-id.d.ts.map +0 -1
  28. package/src/lib/actions/find-user-by-id.js +0 -31
  29. package/src/lib/actions/find-user-by-id.js.map +0 -1
  30. package/src/lib/actions/get-channel-history.d.ts +0 -15
  31. package/src/lib/actions/get-channel-history.d.ts.map +0 -1
  32. package/src/lib/actions/get-channel-history.js +0 -79
  33. package/src/lib/actions/get-channel-history.js.map +0 -1
  34. package/src/lib/actions/get-file.d.ts +0 -7
  35. package/src/lib/actions/get-file.d.ts.map +0 -1
  36. package/src/lib/actions/get-file.js +0 -53
  37. package/src/lib/actions/get-file.js.map +0 -1
  38. package/src/lib/actions/get-group-by-handle.d.ts +0 -7
  39. package/src/lib/actions/get-group-by-handle.d.ts.map +0 -1
  40. package/src/lib/actions/get-group-by-handle.js +0 -38
  41. package/src/lib/actions/get-group-by-handle.js.map +0 -1
  42. package/src/lib/actions/get-message.d.ts +0 -12
  43. package/src/lib/actions/get-message.d.ts.map +0 -1
  44. package/src/lib/actions/get-message.js +0 -43
  45. package/src/lib/actions/get-message.js.map +0 -1
  46. package/src/lib/actions/invite-user-to-channel.d.ts +0 -15
  47. package/src/lib/actions/invite-user-to-channel.d.ts.map +0 -1
  48. package/src/lib/actions/invite-user-to-channel.js +0 -32
  49. package/src/lib/actions/invite-user-to-channel.js.map +0 -1
  50. package/src/lib/actions/list-users.d.ts +0 -8
  51. package/src/lib/actions/list-users.d.ts.map +0 -1
  52. package/src/lib/actions/list-users.js +0 -59
  53. package/src/lib/actions/list-users.js.map +0 -1
  54. package/src/lib/actions/markdown-to-slack-format.d.ts +0 -4
  55. package/src/lib/actions/markdown-to-slack-format.d.ts.map +0 -1
  56. package/src/lib/actions/markdown-to-slack-format.js +0 -26
  57. package/src/lib/actions/markdown-to-slack-format.js.map +0 -1
  58. package/src/lib/actions/request-action-direct-message.d.ts +0 -15
  59. package/src/lib/actions/request-action-direct-message.d.ts.map +0 -1
  60. package/src/lib/actions/request-action-direct-message.js +0 -33
  61. package/src/lib/actions/request-action-direct-message.js.map +0 -1
  62. package/src/lib/actions/request-action-message.d.ts +0 -18
  63. package/src/lib/actions/request-action-message.d.ts.map +0 -1
  64. package/src/lib/actions/request-action-message.js +0 -44
  65. package/src/lib/actions/request-action-message.js.map +0 -1
  66. package/src/lib/actions/request-approval-direct-message.d.ts +0 -14
  67. package/src/lib/actions/request-approval-direct-message.d.ts.map +0 -1
  68. package/src/lib/actions/request-approval-direct-message.js +0 -133
  69. package/src/lib/actions/request-approval-direct-message.js.map +0 -1
  70. package/src/lib/actions/request-approval-message.d.ts +0 -15
  71. package/src/lib/actions/request-approval-message.d.ts.map +0 -1
  72. package/src/lib/actions/request-approval-message.js +0 -130
  73. package/src/lib/actions/request-approval-message.js.map +0 -1
  74. package/src/lib/actions/retrieve-thread-messages.d.ts +0 -11
  75. package/src/lib/actions/retrieve-thread-messages.d.ts.map +0 -1
  76. package/src/lib/actions/retrieve-thread-messages.js +0 -40
  77. package/src/lib/actions/retrieve-thread-messages.js.map +0 -1
  78. package/src/lib/actions/search-messages.d.ts +0 -7
  79. package/src/lib/actions/search-messages.d.ts.map +0 -1
  80. package/src/lib/actions/search-messages.js +0 -50
  81. package/src/lib/actions/search-messages.js.map +0 -1
  82. package/src/lib/actions/send-direct-message-action.d.ts +0 -17
  83. package/src/lib/actions/send-direct-message-action.d.ts.map +0 -1
  84. package/src/lib/actions/send-direct-message-action.js +0 -60
  85. package/src/lib/actions/send-direct-message-action.js.map +0 -1
  86. package/src/lib/actions/send-message-action.d.ts +0 -22
  87. package/src/lib/actions/send-message-action.d.ts.map +0 -1
  88. package/src/lib/actions/send-message-action.js +0 -86
  89. package/src/lib/actions/send-message-action.js.map +0 -1
  90. package/src/lib/actions/set-channel-topic.d.ts +0 -12
  91. package/src/lib/actions/set-channel-topic.d.ts.map +0 -1
  92. package/src/lib/actions/set-channel-topic.js +0 -36
  93. package/src/lib/actions/set-channel-topic.js.map +0 -1
  94. package/src/lib/actions/set-user-status.d.ts +0 -9
  95. package/src/lib/actions/set-user-status.d.ts.map +0 -1
  96. package/src/lib/actions/set-user-status.js +0 -50
  97. package/src/lib/actions/set-user-status.js.map +0 -1
  98. package/src/lib/actions/update-message.d.ts +0 -15
  99. package/src/lib/actions/update-message.d.ts.map +0 -1
  100. package/src/lib/actions/update-message.js +0 -62
  101. package/src/lib/actions/update-message.js.map +0 -1
  102. package/src/lib/actions/update-profile.d.ts +0 -10
  103. package/src/lib/actions/update-profile.d.ts.map +0 -1
  104. package/src/lib/actions/update-profile.js +0 -50
  105. package/src/lib/actions/update-profile.js.map +0 -1
  106. package/src/lib/actions/update-user-groups.d.ts +0 -9
  107. package/src/lib/actions/update-user-groups.d.ts.map +0 -1
  108. package/src/lib/actions/update-user-groups.js +0 -66
  109. package/src/lib/actions/update-user-groups.js.map +0 -1
  110. package/src/lib/actions/upload-file.d.ts +0 -13
  111. package/src/lib/actions/upload-file.d.ts.map +0 -1
  112. package/src/lib/actions/upload-file.js +0 -45
  113. package/src/lib/actions/upload-file.js.map +0 -1
  114. package/src/lib/auth.d.ts +0 -6
  115. package/src/lib/auth.d.ts.map +0 -1
  116. package/src/lib/auth.js +0 -84
  117. package/src/lib/auth.js.map +0 -1
  118. package/src/lib/common/auth-helpers.d.ts +0 -9
  119. package/src/lib/common/auth-helpers.d.ts.map +0 -1
  120. package/src/lib/common/auth-helpers.js +0 -82
  121. package/src/lib/common/auth-helpers.js.map +0 -1
  122. package/src/lib/common/props.d.ts +0 -37
  123. package/src/lib/common/props.d.ts.map +0 -1
  124. package/src/lib/common/props.js +0 -247
  125. package/src/lib/common/props.js.map +0 -1
  126. package/src/lib/common/request-action.d.ts +0 -41
  127. package/src/lib/common/request-action.d.ts.map +0 -1
  128. package/src/lib/common/request-action.js +0 -114
  129. package/src/lib/common/request-action.js.map +0 -1
  130. package/src/lib/common/types.d.ts +0 -10
  131. package/src/lib/common/types.d.ts.map +0 -1
  132. package/src/lib/common/types.js +0 -3
  133. package/src/lib/common/types.js.map +0 -1
  134. package/src/lib/common/utils.d.ts +0 -41
  135. package/src/lib/common/utils.d.ts.map +0 -1
  136. package/src/lib/common/utils.js +0 -134
  137. package/src/lib/common/utils.js.map +0 -1
  138. package/src/lib/triggers/new-channel.d.ts +0 -15
  139. package/src/lib/triggers/new-channel.d.ts.map +0 -1
  140. package/src/lib/triggers/new-channel.js +0 -66
  141. package/src/lib/triggers/new-channel.js.map +0 -1
  142. package/src/lib/triggers/new-command-in-direct-message.d.ts +0 -47
  143. package/src/lib/triggers/new-command-in-direct-message.d.ts.map +0 -1
  144. package/src/lib/triggers/new-command-in-direct-message.js +0 -77
  145. package/src/lib/triggers/new-command-in-direct-message.js.map +0 -1
  146. package/src/lib/triggers/new-command.d.ts +0 -63
  147. package/src/lib/triggers/new-command.d.ts.map +0 -1
  148. package/src/lib/triggers/new-command.js +0 -101
  149. package/src/lib/triggers/new-command.js.map +0 -1
  150. package/src/lib/triggers/new-direct-message.d.ts +0 -27
  151. package/src/lib/triggers/new-direct-message.d.ts.map +0 -1
  152. package/src/lib/triggers/new-direct-message.js +0 -57
  153. package/src/lib/triggers/new-direct-message.js.map +0 -1
  154. package/src/lib/triggers/new-mention-in-direct-message.d.ts +0 -43
  155. package/src/lib/triggers/new-mention-in-direct-message.d.ts.map +0 -1
  156. package/src/lib/triggers/new-mention-in-direct-message.js +0 -66
  157. package/src/lib/triggers/new-mention-in-direct-message.js.map +0 -1
  158. package/src/lib/triggers/new-mention.d.ts +0 -79
  159. package/src/lib/triggers/new-mention.d.ts.map +0 -1
  160. package/src/lib/triggers/new-mention.js +0 -107
  161. package/src/lib/triggers/new-mention.js.map +0 -1
  162. package/src/lib/triggers/new-message-in-channel.d.ts +0 -43
  163. package/src/lib/triggers/new-message-in-channel.d.ts.map +0 -1
  164. package/src/lib/triggers/new-message-in-channel.js +0 -60
  165. package/src/lib/triggers/new-message-in-channel.js.map +0 -1
  166. package/src/lib/triggers/new-message.d.ts +0 -23
  167. package/src/lib/triggers/new-message.d.ts.map +0 -1
  168. package/src/lib/triggers/new-message.js +0 -48
  169. package/src/lib/triggers/new-message.js.map +0 -1
  170. package/src/lib/triggers/new-modal-interaction.d.ts +0 -23
  171. package/src/lib/triggers/new-modal-interaction.d.ts.map +0 -1
  172. package/src/lib/triggers/new-modal-interaction.js +0 -54
  173. package/src/lib/triggers/new-modal-interaction.js.map +0 -1
  174. package/src/lib/triggers/new-reaction-added.d.ts +0 -59
  175. package/src/lib/triggers/new-reaction-added.d.ts.map +0 -1
  176. package/src/lib/triggers/new-reaction-added.js +0 -83
  177. package/src/lib/triggers/new-reaction-added.js.map +0 -1
  178. package/src/lib/triggers/new-reaction-removed.d.ts +0 -59
  179. package/src/lib/triggers/new-reaction-removed.d.ts.map +0 -1
  180. package/src/lib/triggers/new-reaction-removed.js +0 -80
  181. package/src/lib/triggers/new-reaction-removed.js.map +0 -1
  182. package/src/lib/triggers/new-saved-message.d.ts +0 -15
  183. package/src/lib/triggers/new-saved-message.d.ts.map +0 -1
  184. package/src/lib/triggers/new-saved-message.js +0 -38
  185. package/src/lib/triggers/new-saved-message.js.map +0 -1
  186. package/src/lib/triggers/new-team-custom-emoji.d.ts +0 -15
  187. package/src/lib/triggers/new-team-custom-emoji.d.ts.map +0 -1
  188. package/src/lib/triggers/new-team-custom-emoji.js +0 -53
  189. package/src/lib/triggers/new-team-custom-emoji.js.map +0 -1
  190. package/src/lib/triggers/new-user.d.ts +0 -15
  191. package/src/lib/triggers/new-user.d.ts.map +0 -1
  192. package/src/lib/triggers/new-user.js +0 -93
  193. package/src/lib/triggers/new-user.js.map +0 -1
package/src/index.js CHANGED
@@ -1,208 +1,103 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.slack = exports.slackOAuth2Auth = exports.slackAuth = void 0;
4
- const tslib_1 = require("tslib");
5
- const pieces_common_1 = require("@activepieces/pieces-common");
6
- const pieces_framework_1 = require("@activepieces/pieces-framework");
7
- const shared_1 = require("@activepieces/shared");
8
- const node_crypto_1 = tslib_1.__importDefault(require("node:crypto"));
9
- const request_action_direct_message_1 = require("./lib/actions/request-action-direct-message");
10
- const request_action_message_1 = require("./lib/actions/request-action-message");
11
- const request_approval_direct_message_1 = require("./lib/actions/request-approval-direct-message");
12
- const request_approval_message_1 = require("./lib/actions/request-approval-message");
13
- const send_direct_message_action_1 = require("./lib/actions/send-direct-message-action");
14
- const send_message_action_1 = require("./lib/actions/send-message-action");
15
- const new_reaction_added_1 = require("./lib/triggers/new-reaction-added");
16
- const new_reaction_removed_1 = require("./lib/triggers/new-reaction-removed");
17
- const upload_file_1 = require("./lib/actions/upload-file");
18
- const search_messages_1 = require("./lib/actions/search-messages");
19
- const update_message_1 = require("./lib/actions/update-message");
20
- const find_user_by_email_1 = require("./lib/actions/find-user-by-email");
21
- const update_profile_1 = require("./lib/actions/update-profile");
22
- const create_channel_1 = require("./lib/actions/create-channel");
23
- const new_channel_1 = require("./lib/triggers/new-channel");
24
- const add_reaction_to_message_1 = require("./lib/actions/add-reaction-to-message");
25
- const get_channel_history_1 = require("./lib/actions/get-channel-history");
26
- const find_user_by_handle_1 = require("./lib/actions/find-user-by-handle");
27
- const set_user_status_1 = require("./lib/actions/set-user-status");
28
- const new_mention_1 = require("./lib/triggers/new-mention");
29
- const markdown_to_slack_format_1 = require("./lib/actions/markdown-to-slack-format");
30
- const new_command_1 = require("./lib/triggers/new-command");
31
- const get_file_1 = require("./lib/actions/get-file");
32
- const new_message_1 = require("./lib/triggers/new-message");
33
- const new_message_in_channel_1 = require("./lib/triggers/new-message-in-channel");
34
- const new_direct_message_1 = require("./lib/triggers/new-direct-message");
35
- const retrieve_thread_messages_1 = require("./lib/actions/retrieve-thread-messages");
36
- const new_mention_in_direct_message_1 = require("./lib/triggers/new-mention-in-direct-message");
37
- const new_command_in_direct_message_1 = require("./lib/triggers/new-command-in-direct-message");
38
- const set_channel_topic_1 = require("./lib/actions/set-channel-topic");
39
- const get_message_1 = require("./lib/actions/get-message");
40
- const find_user_by_id_1 = require("./lib/actions/find-user-by-id");
41
- const new_user_1 = require("./lib/triggers/new-user");
42
- const new_saved_message_1 = require("./lib/triggers/new-saved-message");
43
- const new_team_custom_emoji_1 = require("./lib/triggers/new-team-custom-emoji");
44
- const invite_user_to_channel_1 = require("./lib/actions/invite-user-to-channel");
45
- const list_users_1 = require("./lib/actions/list-users");
46
- const delete_message_1 = require("./lib/actions/delete-message");
47
- const new_modal_interaction_1 = require("./lib/triggers/new-modal-interaction");
48
- const auth_1 = require("./lib/auth");
49
- const auth_helpers_1 = require("./lib/common/auth-helpers");
50
- const update_user_groups_1 = require("./lib/actions/update-user-groups");
51
- const get_group_by_handle_1 = require("./lib/actions/get-group-by-handle");
52
- var auth_2 = require("./lib/auth");
53
- Object.defineProperty(exports, "slackAuth", { enumerable: true, get: function () { return auth_2.slackAuth; } });
54
- Object.defineProperty(exports, "slackOAuth2Auth", { enumerable: true, get: function () { return auth_2.slackOAuth2Auth; } });
55
- exports.slack = (0, pieces_framework_1.createPiece)({
56
- displayName: 'Slack',
57
- description: 'Channel-based messaging platform',
58
- minimumSupportedRelease: '0.82.0',
59
- logoUrl: 'https://cdn.activepieces.com/pieces/slack.png',
60
- categories: [shared_1.PieceCategory.COMMUNICATION],
61
- auth: auth_1.slackAuth,
62
- events: {
63
- parseAndReply: ({ payload, server }) => {
64
- var _a, _b, _c;
65
- if (payload.headers['content-type'] === 'application/x-www-form-urlencoded') {
66
- if (payload.body && typeof payload.body == 'object' && 'payload' in payload.body) {
67
- const interactionPayloadBody = JSON.parse(payload.body.payload);
68
- if (interactionPayloadBody.type === 'block_actions') {
69
- const action = (_a = interactionPayloadBody.actions) === null || _a === void 0 ? void 0 : _a[0];
70
- if (action &&
71
- action.type === 'button' &&
72
- ((_b = action.value) === null || _b === void 0 ? void 0 : _b.startsWith(server.publicUrl))) {
73
- // We don't await the promise as we don't handle the response anyway
74
- pieces_common_1.httpClient.sendRequest({
75
- url: action.value,
76
- method: pieces_common_1.HttpMethod.POST,
77
- body: interactionPayloadBody,
78
- });
79
- }
80
- }
81
- else if (interactionPayloadBody.type === 'view_submission' ||
82
- interactionPayloadBody.type === 'view_closed') {
83
- const viewModalPayload = interactionPayloadBody;
84
- return {
85
- event: viewModalPayload.type,
86
- identifierValue: viewModalPayload.team.id,
87
- };
88
- }
89
- }
90
- return {
91
- reply: {
92
- headers: {},
93
- body: {},
94
- },
95
- };
96
- }
97
- else {
98
- const eventPayloadBody = payload.body;
99
- if (eventPayloadBody.challenge) {
100
- return {
101
- reply: {
102
- body: eventPayloadBody['challenge'],
103
- headers: {},
104
- },
105
- };
106
- }
107
- return {
108
- event: (_c = eventPayloadBody === null || eventPayloadBody === void 0 ? void 0 : eventPayloadBody.event) === null || _c === void 0 ? void 0 : _c.type,
109
- identifierValue: eventPayloadBody.team_id,
110
- };
111
- }
112
- },
113
- verify: ({ webhookSecret, payload }) => {
114
- // Construct the signature base string
115
- const timestamp = payload.headers['x-slack-request-timestamp'];
116
- const signature = payload.headers['x-slack-signature'];
117
- const signatureBaseString = `v0:${timestamp}:${payload.rawBody}`;
118
- const hmac = node_crypto_1.default.createHmac('sha256', webhookSecret);
119
- hmac.update(signatureBaseString);
120
- const computedSignature = `v0=${hmac.digest('hex')}`;
121
- return signature === computedSignature;
122
- },
123
- },
124
- authors: [
125
- 'rita-gorokhod',
126
- 'AdamSelene',
127
- 'Abdallah-Alwarawreh',
128
- 'kishanprmr',
129
- 'MoShizzle',
130
- 'AbdulTheActivePiecer',
131
- 'khaledmashaly',
132
- 'abuaboud',
133
- ],
134
- actions: [
135
- add_reaction_to_message_1.addRectionToMessageAction,
136
- send_direct_message_action_1.slackSendDirectMessageAction,
137
- send_message_action_1.slackSendMessageAction,
138
- request_approval_direct_message_1.requestApprovalDirectMessageAction,
139
- request_approval_message_1.requestSendApprovalMessageAction,
140
- request_action_direct_message_1.requestActionDirectMessageAction,
141
- request_action_message_1.requestActionMessageAction,
142
- upload_file_1.uploadFile,
143
- get_file_1.getFileAction,
144
- search_messages_1.searchMessages,
145
- find_user_by_email_1.findUserByEmailAction,
146
- find_user_by_handle_1.findUserByHandleAction,
147
- find_user_by_id_1.findUserByIdAction,
148
- list_users_1.listUsers,
149
- update_message_1.updateMessage,
150
- delete_message_1.deleteMessageAction,
151
- create_channel_1.createChannelAction,
152
- update_profile_1.updateProfileAction,
153
- get_channel_history_1.getChannelHistory,
154
- set_user_status_1.setUserStatusAction,
155
- markdown_to_slack_format_1.markdownToSlackFormat,
156
- retrieve_thread_messages_1.retrieveThreadMessages,
157
- set_channel_topic_1.setChannelTopicAction,
158
- get_message_1.getMessageAction,
159
- invite_user_to_channel_1.inviteUserToChannelAction,
160
- get_group_by_handle_1.getGroupByHandleAction,
161
- update_user_groups_1.updateGroupUsersAction,
162
- (0, pieces_common_1.createCustomApiCallAction)({
163
- baseUrl: () => {
164
- return 'https://slack.com/api';
165
- },
166
- auth: auth_1.slackAuth,
167
- authMapping: (auth, propsValue) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
168
- const typedAuth = auth;
169
- if (propsValue.useUserToken) {
170
- const userToken = (0, auth_helpers_1.getUserToken)(typedAuth);
171
- if (userToken) {
172
- return {
173
- Authorization: `Bearer ${userToken}`,
174
- };
175
- }
176
- }
177
- return {
178
- Authorization: `Bearer ${(0, auth_helpers_1.getBotToken)(typedAuth)}`,
179
- };
180
- }),
181
- extraProps: {
182
- useUserToken: pieces_framework_1.Property.Checkbox({
183
- displayName: 'Use user token',
184
- description: 'Use user token instead of bot token',
185
- required: true,
186
- defaultValue: false,
187
- }),
188
- },
189
- }),
190
- ],
191
- triggers: [
192
- new_message_1.newMessageTrigger,
193
- new_message_in_channel_1.newMessageInChannelTrigger,
194
- new_direct_message_1.newDirectMessageTrigger,
195
- new_mention_1.newMention,
196
- new_mention_in_direct_message_1.newMentionInDirectMessageTrigger,
197
- new_reaction_added_1.newReactionAdded,
198
- new_reaction_removed_1.newReactionRemoved,
199
- new_channel_1.channelCreated,
200
- new_command_1.newCommand,
201
- new_command_in_direct_message_1.newCommandInDirectMessageTrigger,
202
- new_user_1.newUserTrigger,
203
- new_saved_message_1.newSavedMessageTrigger,
204
- new_team_custom_emoji_1.newTeamCustomEmojiTrigger,
205
- new_modal_interaction_1.newModalInteractionTrigger,
206
- ],
207
- });
208
- //# sourceMappingURL=index.js.map
1
+ "use strict";var SA=Object.create;var fi=Object.defineProperty;var AA=Object.getOwnPropertyDescriptor;var IA=Object.getOwnPropertyNames;var OA=Object.getPrototypeOf,CA=Object.prototype.hasOwnProperty;var i=(e,t)=>fi(e,"name",{value:t,configurable:!0});var b=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}},fp=(e,t)=>{for(var r in t)fi(e,r,{get:t[r],enumerable:!0})},mp=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of IA(t))!CA.call(e,o)&&o!==r&&fi(e,o,{get:()=>t[o],enumerable:!(n=AA(t,o))||n.enumerable});return e};var me=(e,t,r)=>(r=e!=null?SA(OA(e)):{},mp(t||!e||!e.__esModule?fi(r,"default",{value:e,enumerable:!0}):r,e)),RA=e=>mp(fi({},"__esModule",{value:!0}),e);var Nd=b((Dd,Mo)=>{(function(e){"use strict";let t="(0?\\d+|0x[a-f0-9]+)",r={fourOctet:new RegExp(`^${t}\\.${t}\\.${t}\\.${t}$`,"i"),threeOctet:new RegExp(`^${t}\\.${t}\\.${t}$`,"i"),twoOctet:new RegExp(`^${t}\\.${t}$`,"i"),longValue:new RegExp(`^${t}$`,"i")},n=new RegExp("^0[0-7]+$","i"),o=new RegExp("^0x[a-f0-9]+$","i"),a="%[0-9a-z]{1,}",s="(?:[0-9a-f]+::?)+",u={zoneIndex:new RegExp(a,"i"),native:new RegExp(`^(::)?(${s})?([0-9a-f]+)?(::)?(${a})?$`,"i"),deprecatedTransitional:new RegExp(`^(?:::)(${t}\\.${t}\\.${t}\\.${t}(${a})?)$`,"i"),transitional:new RegExp(`^((?:${s})|(?:::)(?:${s})?)${t}\\.${t}\\.${t}\\.${t}(${a})?$`,"i")};function l(d,h){if(d.indexOf("::")!==d.lastIndexOf("::"))return null;let _=0,v=-1,y=(d.match(u.zoneIndex)||[])[0],P,E;for(y&&(y=y.substring(1),d=d.replace(/%.+$/,""));(v=d.indexOf(":",v+1))>=0;)_++;if(d.substr(0,2)==="::"&&_--,d.substr(-2,2)==="::"&&_--,_>h)return null;for(E=h-_,P=":";E--;)P+="0:";return d=d.replace("::",P),d[0]===":"&&(d=d.slice(1)),d[d.length-1]===":"&&(d=d.slice(0,-1)),h=(function(){let I=d.split(":"),M=[];for(let D=0;D<I.length;D++)M.push(parseInt(I[D],16));return M})(),{parts:h,zoneId:y}}i(l,"expandIPv6");function p(d,h,_,v){if(d.length!==h.length)throw new Error("ipaddr: cannot match CIDR for objects with different lengths");let y=0,P;for(;v>0;){if(P=_-v,P<0&&(P=0),d[y]>>P!==h[y]>>P)return!1;v-=_,y+=1}return!0}i(p,"matchCIDR");function c(d){if(o.test(d))return parseInt(d,16);if(d[0]==="0"&&!isNaN(parseInt(d[1],10))){if(n.test(d))return parseInt(d,8);throw new Error(`ipaddr: cannot parse ${d} as octal`)}return parseInt(d,10)}i(c,"parseIntAuto");function f(d,h){for(;d.length<h;)d=`0${d}`;return d}i(f,"padPart");let m={};m.IPv4=(function(){function d(h){if(h.length!==4)throw new Error("ipaddr: ipv4 octet count should be 4");let _,v;for(_=0;_<h.length;_++)if(v=h[_],!(0<=v&&v<=255))throw new Error("ipaddr: ipv4 octet should fit in 8 bits");this.octets=h}return i(d,"IPv4"),d.prototype.SpecialRanges={unspecified:[[new d([0,0,0,0]),8]],broadcast:[[new d([255,255,255,255]),32]],multicast:[[new d([224,0,0,0]),4]],linkLocal:[[new d([169,254,0,0]),16]],loopback:[[new d([127,0,0,0]),8]],carrierGradeNat:[[new d([100,64,0,0]),10]],private:[[new d([10,0,0,0]),8],[new d([172,16,0,0]),12],[new d([192,168,0,0]),16]],reserved:[[new d([192,0,0,0]),24],[new d([192,0,2,0]),24],[new d([192,88,99,0]),24],[new d([198,18,0,0]),15],[new d([198,51,100,0]),24],[new d([203,0,113,0]),24],[new d([240,0,0,0]),4]],as112:[[new d([192,175,48,0]),24],[new d([192,31,196,0]),24]],amt:[[new d([192,52,193,0]),24]]},d.prototype.kind=function(){return"ipv4"},d.prototype.match=function(h,_){let v;if(_===void 0&&(v=h,h=v[0],_=v[1]),h.kind()!=="ipv4")throw new Error("ipaddr: cannot match ipv4 address with non-ipv4 one");return p(this.octets,h.octets,8,_)},d.prototype.prefixLengthFromSubnetMask=function(){let h=0,_=!1,v={0:8,128:7,192:6,224:5,240:4,248:3,252:2,254:1,255:0},y,P,E;for(y=3;y>=0;y-=1)if(P=this.octets[y],P in v){if(E=v[P],_&&E!==0)return null;E!==8&&(_=!0),h+=E}else return null;return 32-h},d.prototype.range=function(){return m.subnetMatch(this,this.SpecialRanges)},d.prototype.toByteArray=function(){return this.octets.slice(0)},d.prototype.toIPv4MappedAddress=function(){return m.IPv6.parse(`::ffff:${this.toString()}`)},d.prototype.toNormalizedString=function(){return this.toString()},d.prototype.toString=function(){return this.octets.join(".")},d})(),m.IPv4.broadcastAddressFromCIDR=function(d){try{let h=this.parseCIDR(d),_=h[0].toByteArray(),v=this.subnetMaskFromPrefixLength(h[1]).toByteArray(),y=[],P=0;for(;P<4;)y.push(parseInt(_[P],10)|parseInt(v[P],10)^255),P++;return new this(y)}catch{throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},m.IPv4.isIPv4=function(d){return this.parser(d)!==null},m.IPv4.isValid=function(d){try{return new this(this.parser(d)),!0}catch{return!1}},m.IPv4.isValidCIDR=function(d){try{return this.parseCIDR(d),!0}catch{return!1}},m.IPv4.isValidFourPartDecimal=function(d){return!!(m.IPv4.isValid(d)&&d.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/))},m.IPv4.isValidCIDRFourPartDecimal=function(d){let h=d.match(/^(.+)\/(\d+)$/);return!m.IPv4.isValidCIDR(d)||!h?!1:m.IPv4.isValidFourPartDecimal(h[1])},m.IPv4.networkAddressFromCIDR=function(d){let h,_,v,y,P;try{for(h=this.parseCIDR(d),v=h[0].toByteArray(),P=this.subnetMaskFromPrefixLength(h[1]).toByteArray(),y=[],_=0;_<4;)y.push(parseInt(v[_],10)&parseInt(P[_],10)),_++;return new this(y)}catch{throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},m.IPv4.parse=function(d){let h=this.parser(d);if(h===null)throw new Error("ipaddr: string is not formatted like an IPv4 Address");return new this(h)},m.IPv4.parseCIDR=function(d){let h;if(h=d.match(/^(.+)\/(\d+)$/)){let _=parseInt(h[2]);if(_>=0&&_<=32){let v=[this.parse(h[1]),_];return Object.defineProperty(v,"toString",{value:i(function(){return this.join("/")},"value")}),v}}throw new Error("ipaddr: string is not formatted like an IPv4 CIDR range")},m.IPv4.parser=function(d){let h,_,v;if(h=d.match(r.fourOctet))return(function(){let y=h.slice(1,6),P=[];for(let E=0;E<y.length;E++)_=y[E],P.push(c(_));return P})();if(h=d.match(r.longValue)){if(v=c(h[1]),v>4294967295||v<0)throw new Error("ipaddr: address outside defined range");return(function(){let y=[],P;for(P=0;P<=24;P+=8)y.push(v>>P&255);return y})().reverse()}else return(h=d.match(r.twoOctet))?(function(){let y=h.slice(1,4),P=[];if(v=c(y[1]),v>16777215||v<0)throw new Error("ipaddr: address outside defined range");return P.push(c(y[0])),P.push(v>>16&255),P.push(v>>8&255),P.push(v&255),P})():(h=d.match(r.threeOctet))?(function(){let y=h.slice(1,5),P=[];if(v=c(y[2]),v>65535||v<0)throw new Error("ipaddr: address outside defined range");return P.push(c(y[0])),P.push(c(y[1])),P.push(v>>8&255),P.push(v&255),P})():null},m.IPv4.subnetMaskFromPrefixLength=function(d){if(d=parseInt(d),d<0||d>32)throw new Error("ipaddr: invalid IPv4 prefix length");let h=[0,0,0,0],_=0,v=Math.floor(d/8);for(;_<v;)h[_]=255,_++;return v<4&&(h[v]=Math.pow(2,d%8)-1<<8-d%8),new this(h)},m.IPv6=(function(){function d(h,_){let v,y;if(h.length===16)for(this.parts=[],v=0;v<=14;v+=2)this.parts.push(h[v]<<8|h[v+1]);else if(h.length===8)this.parts=h;else throw new Error("ipaddr: ipv6 part count should be 8 or 16");for(v=0;v<this.parts.length;v++)if(y=this.parts[v],!(0<=y&&y<=65535))throw new Error("ipaddr: ipv6 part should fit in 16 bits");_&&(this.zoneId=_)}return i(d,"IPv6"),d.prototype.SpecialRanges={unspecified:[new d([0,0,0,0,0,0,0,0]),128],linkLocal:[new d([65152,0,0,0,0,0,0,0]),10],multicast:[new d([65280,0,0,0,0,0,0,0]),8],loopback:[new d([0,0,0,0,0,0,0,1]),128],uniqueLocal:[new d([64512,0,0,0,0,0,0,0]),7],ipv4Mapped:[new d([0,0,0,0,0,65535,0,0]),96],discard:[new d([256,0,0,0,0,0,0,0]),64],rfc6145:[new d([0,0,0,0,65535,0,0,0]),96],rfc6052:[new d([100,65435,0,0,0,0,0,0]),96],"6to4":[new d([8194,0,0,0,0,0,0,0]),16],teredo:[new d([8193,0,0,0,0,0,0,0]),32],benchmarking:[new d([8193,2,0,0,0,0,0,0]),48],amt:[new d([8193,3,0,0,0,0,0,0]),32],as112v6:[[new d([8193,4,274,0,0,0,0,0]),48],[new d([9760,79,32768,0,0,0,0,0]),48]],deprecated:[new d([8193,16,0,0,0,0,0,0]),28],orchid2:[new d([8193,32,0,0,0,0,0,0]),28],droneRemoteIdProtocolEntityTags:[new d([8193,48,0,0,0,0,0,0]),28],reserved:[[new d([8193,0,0,0,0,0,0,0]),23],[new d([8193,3512,0,0,0,0,0,0]),32]]},d.prototype.isIPv4MappedAddress=function(){return this.range()==="ipv4Mapped"},d.prototype.kind=function(){return"ipv6"},d.prototype.match=function(h,_){let v;if(_===void 0&&(v=h,h=v[0],_=v[1]),h.kind()!=="ipv6")throw new Error("ipaddr: cannot match ipv6 address with non-ipv6 one");return p(this.parts,h.parts,16,_)},d.prototype.prefixLengthFromSubnetMask=function(){let h=0,_=!1,v={0:16,32768:15,49152:14,57344:13,61440:12,63488:11,64512:10,65024:9,65280:8,65408:7,65472:6,65504:5,65520:4,65528:3,65532:2,65534:1,65535:0},y,P;for(let E=7;E>=0;E-=1)if(y=this.parts[E],y in v){if(P=v[y],_&&P!==0)return null;P!==16&&(_=!0),h+=P}else return null;return 128-h},d.prototype.range=function(){return m.subnetMatch(this,this.SpecialRanges)},d.prototype.toByteArray=function(){let h,_=[],v=this.parts;for(let y=0;y<v.length;y++)h=v[y],_.push(h>>8),_.push(h&255);return _},d.prototype.toFixedLengthString=function(){let h=(function(){let v=[];for(let y=0;y<this.parts.length;y++)v.push(f(this.parts[y].toString(16),4));return v}).call(this).join(":"),_="";return this.zoneId&&(_=`%${this.zoneId}`),h+_},d.prototype.toIPv4Address=function(){if(!this.isIPv4MappedAddress())throw new Error("ipaddr: trying to convert a generic ipv6 address to ipv4");let h=this.parts.slice(-2),_=h[0],v=h[1];return new m.IPv4([_>>8,_&255,v>>8,v&255])},d.prototype.toNormalizedString=function(){let h=(function(){let v=[];for(let y=0;y<this.parts.length;y++)v.push(this.parts[y].toString(16));return v}).call(this).join(":"),_="";return this.zoneId&&(_=`%${this.zoneId}`),h+_},d.prototype.toRFC5952String=function(){let h=/((^|:)(0(:|$)){2,})/g,_=this.toNormalizedString(),v=0,y=-1,P;for(;P=h.exec(_);)P[0].length>y&&(v=P.index,y=P[0].length);return y<0?_:`${_.substring(0,v)}::${_.substring(v+y)}`},d.prototype.toString=function(){return this.toRFC5952String()},d})(),m.IPv6.broadcastAddressFromCIDR=function(d){try{let h=this.parseCIDR(d),_=h[0].toByteArray(),v=this.subnetMaskFromPrefixLength(h[1]).toByteArray(),y=[],P=0;for(;P<16;)y.push(parseInt(_[P],10)|parseInt(v[P],10)^255),P++;return new this(y)}catch(h){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${h})`)}},m.IPv6.isIPv6=function(d){return this.parser(d)!==null},m.IPv6.isValid=function(d){if(typeof d=="string"&&d.indexOf(":")===-1)return!1;try{let h=this.parser(d);return new this(h.parts,h.zoneId),!0}catch{return!1}},m.IPv6.isValidCIDR=function(d){if(typeof d=="string"&&d.indexOf(":")===-1)return!1;try{return this.parseCIDR(d),!0}catch{return!1}},m.IPv6.networkAddressFromCIDR=function(d){let h,_,v,y,P;try{for(h=this.parseCIDR(d),v=h[0].toByteArray(),P=this.subnetMaskFromPrefixLength(h[1]).toByteArray(),y=[],_=0;_<16;)y.push(parseInt(v[_],10)&parseInt(P[_],10)),_++;return new this(y)}catch(E){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${E})`)}},m.IPv6.parse=function(d){let h=this.parser(d);if(h.parts===null)throw new Error("ipaddr: string is not formatted like an IPv6 Address");return new this(h.parts,h.zoneId)},m.IPv6.parseCIDR=function(d){let h,_,v;if((_=d.match(/^(.+)\/(\d+)$/))&&(h=parseInt(_[2]),h>=0&&h<=128))return v=[this.parse(_[1]),h],Object.defineProperty(v,"toString",{value:i(function(){return this.join("/")},"value")}),v;throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range")},m.IPv6.parser=function(d){let h,_,v,y,P,E;if(v=d.match(u.deprecatedTransitional))return this.parser(`::ffff:${v[1]}`);if(u.native.test(d))return l(d,8);if((v=d.match(u.transitional))&&(E=v[6]||"",h=v[1],v[1].endsWith("::")||(h=h.slice(0,-1)),h=l(h+E,6),h.parts)){for(P=[parseInt(v[2]),parseInt(v[3]),parseInt(v[4]),parseInt(v[5])],_=0;_<P.length;_++)if(y=P[_],!(0<=y&&y<=255))return null;return h.parts.push(P[0]<<8|P[1]),h.parts.push(P[2]<<8|P[3]),{parts:h.parts,zoneId:h.zoneId}}return null},m.IPv6.subnetMaskFromPrefixLength=function(d){if(d=parseInt(d),d<0||d>128)throw new Error("ipaddr: invalid IPv6 prefix length");let h=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],_=0,v=Math.floor(d/8);for(;_<v;)h[_]=255,_++;return v<16&&(h[v]=Math.pow(2,d%8)-1<<8-d%8),new this(h)},m.fromByteArray=function(d){let h=d.length;if(h===4)return new m.IPv4(d);if(h===16)return new m.IPv6(d);throw new Error("ipaddr: the binary input is neither an IPv6 nor IPv4 address")},m.isValid=function(d){return m.IPv6.isValid(d)||m.IPv4.isValid(d)},m.isValidCIDR=function(d){return m.IPv6.isValidCIDR(d)||m.IPv4.isValidCIDR(d)},m.parse=function(d){if(m.IPv6.isValid(d))return m.IPv6.parse(d);if(m.IPv4.isValid(d))return m.IPv4.parse(d);throw new Error("ipaddr: the address has neither IPv6 nor IPv4 format")},m.parseCIDR=function(d){try{return m.IPv6.parseCIDR(d)}catch{try{return m.IPv4.parseCIDR(d)}catch{throw new Error("ipaddr: the address has neither IPv6 nor IPv4 CIDR format")}}},m.process=function(d){let h=this.parse(d);return h.kind()==="ipv6"&&h.isIPv4MappedAddress()?h.toIPv4Address():h},m.subnetMatch=function(d,h,_){let v,y,P,E;_==null&&(_="unicast");for(y in h)if(Object.prototype.hasOwnProperty.call(h,y)){for(P=h[y],P[0]&&!(P[0]instanceof Array)&&(P=[P]),v=0;v<P.length;v++)if(E=P[v],d.kind()===E[0].kind()&&d.match.apply(d,E))return y}return _},typeof Mo<"u"&&Mo.exports?Mo.exports=m:e.ipaddr=m})(Dd)});var zf=b((OQ,$f)=>{var Rf=require("stream").Stream,fC=require("util");$f.exports=er;function er(){this.source=null,this.dataSize=0,this.maxDataSize=1024*1024,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}i(er,"DelayedStream");fC.inherits(er,Rf);er.create=function(e,t){var r=new this;t=t||{};for(var n in t)r[n]=t[n];r.source=e;var o=e.emit;return e.emit=function(){return r._handleEmit(arguments),o.apply(e,arguments)},e.on("error",function(){}),r.pauseStream&&e.pause(),r};Object.defineProperty(er.prototype,"readable",{configurable:!0,enumerable:!0,get:i(function(){return this.source.readable},"get")});er.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)};er.prototype.resume=function(){this._released||this.release(),this.source.resume()};er.prototype.pause=function(){this.source.pause()};er.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(e){this.emit.apply(this,e)}.bind(this)),this._bufferedEvents=[]};er.prototype.pipe=function(){var e=Rf.prototype.pipe.apply(this,arguments);return this.resume(),e};er.prototype._handleEmit=function(e){if(this._released){this.emit.apply(this,e);return}e[0]==="data"&&(this.dataSize+=e[1].length,this._checkIfMaxDataSizeExceeded()),this._bufferedEvents.push(e)};er.prototype._checkIfMaxDataSizeExceeded=function(){if(!this._maxDataSizeExceeded&&!(this.dataSize<=this.maxDataSize)){this._maxDataSizeExceeded=!0;var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this.emit("error",new Error(e))}}});var su=b((RQ,Uf)=>{var mC=require("util"),Nf=require("stream").Stream,Df=zf();Uf.exports=We;function We(){this.writable=!1,this.readable=!0,this.dataSize=0,this.maxDataSize=2*1024*1024,this.pauseStreams=!0,this._released=!1,this._streams=[],this._currentStream=null,this._insideLoop=!1,this._pendingNext=!1}i(We,"CombinedStream");mC.inherits(We,Nf);We.create=function(e){var t=new this;e=e||{};for(var r in e)t[r]=e[r];return t};We.isStreamLike=function(e){return typeof e!="function"&&typeof e!="string"&&typeof e!="boolean"&&typeof e!="number"&&!Buffer.isBuffer(e)};We.prototype.append=function(e){var t=We.isStreamLike(e);if(t){if(!(e instanceof Df)){var r=Df.create(e,{maxDataSize:1/0,pauseStream:this.pauseStreams});e.on("data",this._checkDataSize.bind(this)),e=r}this._handleErrors(e),this.pauseStreams&&e.pause()}return this._streams.push(e),this};We.prototype.pipe=function(e,t){return Nf.prototype.pipe.call(this,e,t),this.resume(),e};We.prototype._getNext=function(){if(this._currentStream=null,this._insideLoop){this._pendingNext=!0;return}this._insideLoop=!0;try{do this._pendingNext=!1,this._realGetNext();while(this._pendingNext)}finally{this._insideLoop=!1}};We.prototype._realGetNext=function(){var e=this._streams.shift();if(typeof e>"u"){this.end();return}if(typeof e!="function"){this._pipeNext(e);return}var t=e;t(function(r){var n=We.isStreamLike(r);n&&(r.on("data",this._checkDataSize.bind(this)),this._handleErrors(r)),this._pipeNext(r)}.bind(this))};We.prototype._pipeNext=function(e){this._currentStream=e;var t=We.isStreamLike(e);if(t){e.on("end",this._getNext.bind(this)),e.pipe(this,{end:!1});return}var r=e;this.write(r),this._getNext()};We.prototype._handleErrors=function(e){var t=this;e.on("error",function(r){t._emitError(r)})};We.prototype.write=function(e){this.emit("data",e)};We.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&typeof this._currentStream.pause=="function"&&this._currentStream.pause(),this.emit("pause"))};We.prototype.resume=function(){this._released||(this._released=!0,this.writable=!0,this._getNext()),this.pauseStreams&&this._currentStream&&typeof this._currentStream.resume=="function"&&this._currentStream.resume(),this.emit("resume")};We.prototype.end=function(){this._reset(),this.emit("end")};We.prototype.destroy=function(){this._reset(),this.emit("close")};We.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null};We.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(e))}};We.prototype._updateDataSize=function(){this.dataSize=0;var e=this;this._streams.forEach(function(t){t.dataSize&&(e.dataSize+=t.dataSize)}),this._currentStream&&this._currentStream.dataSize&&(this.dataSize+=this._currentStream.dataSize)};We.prototype._emitError=function(e){this._reset(),this.emit("error",e)}});var Mf=b((zQ,Lf)=>{"use strict";Lf.exports={"application/json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["json","map"]},"application/xml":{source:"iana",compressible:!0,extensions:["xml"]},"application/javascript":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["js","mjs"]},"application/pdf":{source:"iana",compressible:!1,extensions:["pdf"]},"application/zip":{source:"iana",compressible:!1,extensions:["zip"]},"application/gzip":{source:"iana",compressible:!1,extensions:["gz"]},"application/octet-stream":{source:"iana",compressible:!1,extensions:["bin","dat"]},"application/msword":{source:"iana",extensions:["doc"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{source:"iana",extensions:["docx"]},"application/vnd.ms-excel":{source:"iana",extensions:["xls"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{source:"iana",extensions:["xlsx"]},"application/vnd.ms-powerpoint":{source:"iana",extensions:["ppt"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{source:"iana",extensions:["pptx"]},"application/csv":{compressible:!0,extensions:["csv"]},"application/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"application/x-tar":{source:"apache",compressible:!0,extensions:["tar"]},"application/x-7z-compressed":{source:"apache",compressible:!1,extensions:["7z"]},"application/wasm":{source:"iana",compressible:!0,extensions:["wasm"]},"text/plain":{source:"iana",compressible:!0,charset:"UTF-8",extensions:["txt","text","log"]},"text/html":{source:"iana",compressible:!0,charset:"UTF-8",extensions:["html","htm"]},"text/css":{source:"iana",compressible:!0,charset:"UTF-8",extensions:["css"]},"text/csv":{source:"iana",compressible:!0,charset:"UTF-8",extensions:["csv"]},"text/markdown":{source:"iana",compressible:!0,charset:"UTF-8",extensions:["md","markdown"]},"text/xml":{source:"iana",compressible:!0,extensions:["xml"]},"text/yaml":{compressible:!0,extensions:["yaml","yml"]},"image/png":{source:"iana",compressible:!1,extensions:["png"]},"image/jpeg":{source:"iana",compressible:!1,extensions:["jpeg","jpg","jpe"]},"image/gif":{source:"iana",compressible:!1,extensions:["gif"]},"image/webp":{source:"apache",compressible:!1,extensions:["webp"]},"image/svg+xml":{source:"iana",compressible:!0,extensions:["svg","svgz"]},"image/bmp":{source:"iana",compressible:!0,extensions:["bmp"]},"image/tiff":{source:"iana",compressible:!1,extensions:["tiff","tif"]},"image/x-icon":{source:"apache",compressible:!0,extensions:["ico"]},"image/heic":{source:"iana",compressible:!1,extensions:["heic"]},"image/avif":{source:"iana",compressible:!1,extensions:["avif"]},"audio/mpeg":{source:"iana",compressible:!1,extensions:["mp3","mpga"]},"audio/wav":{compressible:!1,extensions:["wav"]},"audio/ogg":{source:"iana",compressible:!1,extensions:["ogg","oga"]},"audio/webm":{source:"apache",compressible:!1,extensions:["weba"]},"audio/mp4":{source:"iana",compressible:!1,extensions:["m4a"]},"video/mp4":{source:"iana",compressible:!1,extensions:["mp4","m4v"]},"video/mpeg":{source:"iana",compressible:!1,extensions:["mpeg","mpg"]},"video/webm":{source:"iana",compressible:!1,extensions:["webm"]},"video/quicktime":{source:"iana",compressible:!1,extensions:["mov","qt"]},"video/x-msvideo":{source:"iana",compressible:!1,extensions:["avi"]},"font/woff":{source:"iana",compressible:!1,extensions:["woff"]},"font/woff2":{source:"iana",compressible:!1,extensions:["woff2"]},"font/ttf":{source:"iana",compressible:!0,extensions:["ttf"]},"font/otf":{source:"iana",compressible:!0,extensions:["otf"]},"application/ld+json":{source:"iana",compressible:!0,extensions:["jsonld"]},"application/x-www-form-urlencoded":{source:"iana",compressible:!0},"multipart/form-data":{source:"iana"},"application/vnd.api+json":{source:"iana",compressible:!0},"application/manifest+json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["webmanifest"]},"application/ics":{compressible:!0,extensions:["ics"]},"text/calendar":{source:"iana",compressible:!0,extensions:["ics","ifb"]},"application/x-ndjson":{compressible:!0,extensions:["ndjson"]}}});var uu=b(Et=>{"use strict";var Ho=Mf(),hC=require("path").extname,qf=/^\s*([^;\s]*)(?:;|\s|$)/,gC=/^text\//i;Et.charset=Ff;Et.charsets={lookup:Ff};Et.contentType=yC;Et.extension=vC;Et.extensions=Object.create(null);Et.lookup=bC;Et.types=Object.create(null);xC(Et.extensions,Et.types);function Ff(e){if(!e||typeof e!="string")return!1;var t=qf.exec(e),r=t&&Ho[t[1].toLowerCase()];return r&&r.charset?r.charset:t&&gC.test(t[1])?"UTF-8":!1}i(Ff,"charset");function yC(e){if(!e||typeof e!="string")return!1;var t=e.indexOf("/")===-1?Et.lookup(e):e;if(!t)return!1;if(t.indexOf("charset")===-1){var r=Et.charset(t);r&&(t+="; charset="+r.toLowerCase())}return t}i(yC,"contentType");function vC(e){if(!e||typeof e!="string")return!1;var t=qf.exec(e),r=t&&Et.extensions[t[1].toLowerCase()];return!r||!r.length?!1:r[0]}i(vC,"extension");function bC(e){if(!e||typeof e!="string")return!1;var t=hC("x."+e).toLowerCase().substr(1);return t&&Et.types[t]||!1}i(bC,"lookup");function xC(e,t){var r=["nginx","apache",void 0,"iana"];Object.keys(Ho).forEach(i(function(o){var a=Ho[o],s=a.extensions;if(!(!s||!s.length)){e[o]=s;for(var u=0;u<s.length;u++){var l=s[u];if(t[l]){var p=r.indexOf(Ho[t[l]].source),c=r.indexOf(a.source);if(t[l]!=="application/octet-stream"&&(p>c||p===c&&t[l].substr(0,12)==="application/"))continue}t[l]=o}}},"forEachMimeType"))}i(xC,"populateMaps")});var jf=b((UQ,Bf)=>{Bf.exports=_C;function _C(e){var t=typeof setImmediate=="function"?setImmediate:typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:null;t?t(e):setTimeout(e,0)}i(_C,"defer")});var lu=b((MQ,Hf)=>{var Vf=jf();Hf.exports=PC;function PC(e){var t=!1;return Vf(function(){t=!0}),i(function(n,o){t?e(n,o):Vf(i(function(){e(n,o)},"nextTick_callback"))},"async_callback")}i(PC,"async")});var cu=b((FQ,Zf)=>{Zf.exports=wC;function wC(e){Object.keys(e.jobs).forEach(EC.bind(e)),e.jobs={}}i(wC,"abort");function EC(e){typeof this.jobs[e]=="function"&&this.jobs[e]()}i(EC,"clean")});var pu=b((jQ,Gf)=>{var Wf=lu(),TC=cu();Gf.exports=kC;function kC(e,t,r,n){var o=r.keyedList?r.keyedList[r.index]:r.index;r.jobs[o]=SC(t,o,e[o],function(a,s){o in r.jobs&&(delete r.jobs[o],a?TC(r):r.results[o]=s,n(a,r.results))})}i(kC,"iterate");function SC(e,t,r,n){var o;return e.length==2?o=e(r,Wf(n)):o=e(r,t,Wf(n)),o}i(SC,"runJob")});var du=b((HQ,Kf)=>{Kf.exports=AC;function AC(e,t){var r=!Array.isArray(e),n={index:0,keyedList:r||t?Object.keys(e):null,jobs:{},results:r?{}:[],size:r?Object.keys(e).length:e.length};return t&&n.keyedList.sort(r?t:function(o,a){return t(e[o],e[a])}),n}i(AC,"state")});var fu=b((WQ,Jf)=>{var IC=cu(),OC=lu();Jf.exports=CC;function CC(e){Object.keys(this.jobs).length&&(this.index=this.size,IC(this),OC(e)(null,this.results))}i(CC,"terminator")});var Yf=b((KQ,Xf)=>{var RC=pu(),$C=du(),zC=fu();Xf.exports=DC;function DC(e,t,r){for(var n=$C(e);n.index<(n.keyedList||e).length;)RC(e,t,n,function(o,a){if(o){r(o,a);return}if(Object.keys(n.jobs).length===0){r(null,n.results);return}}),n.index++;return zC.bind(n,r)}i(DC,"parallel")});var mu=b((XQ,Zo)=>{var Qf=pu(),NC=du(),UC=fu();Zo.exports=LC;Zo.exports.ascending=em;Zo.exports.descending=MC;function LC(e,t,r,n){var o=NC(e,r);return Qf(e,t,o,i(function a(s,u){if(s){n(s,u);return}if(o.index++,o.index<(o.keyedList||e).length){Qf(e,t,o,a);return}n(null,o.results)},"iteratorHandler")),UC.bind(o,n)}i(LC,"serialOrdered");function em(e,t){return e<t?-1:e>t?1:0}i(em,"ascending");function MC(e,t){return-1*em(e,t)}i(MC,"descending")});var rm=b((QQ,tm)=>{var qC=mu();tm.exports=FC;function FC(e,t,r){return qC(e,t,null,r)}i(FC,"serial")});var hu=b((tee,nm)=>{nm.exports={parallel:Yf(),serial:rm(),serialOrdered:mu()}});var gu=b((ree,im)=>{"use strict";im.exports=Object});var am=b((nee,om)=>{"use strict";om.exports=Error});var um=b((iee,sm)=>{"use strict";sm.exports=EvalError});var cm=b((oee,lm)=>{"use strict";lm.exports=RangeError});var dm=b((aee,pm)=>{"use strict";pm.exports=ReferenceError});var mm=b((see,fm)=>{"use strict";fm.exports=SyntaxError});var Wo=b((uee,hm)=>{"use strict";hm.exports=TypeError});var ym=b((lee,gm)=>{"use strict";gm.exports=URIError});var bm=b((cee,vm)=>{"use strict";vm.exports=Math.abs});var _m=b((pee,xm)=>{"use strict";xm.exports=Math.floor});var wm=b((dee,Pm)=>{"use strict";Pm.exports=Math.max});var Tm=b((fee,Em)=>{"use strict";Em.exports=Math.min});var Sm=b((mee,km)=>{"use strict";km.exports=Math.pow});var Im=b((hee,Am)=>{"use strict";Am.exports=Math.round});var Cm=b((gee,Om)=>{"use strict";Om.exports=Number.isNaN||i(function(t){return t!==t},"isNaN")});var $m=b((vee,Rm)=>{"use strict";var BC=Cm();Rm.exports=i(function(t){return BC(t)||t===0?t:t<0?-1:1},"sign")});var Dm=b((xee,zm)=>{"use strict";zm.exports=Object.getOwnPropertyDescriptor});var yu=b((_ee,Nm)=>{"use strict";var Go=Dm();if(Go)try{Go([],"length")}catch{Go=null}Nm.exports=Go});var Lm=b((Pee,Um)=>{"use strict";var Ko=Object.defineProperty||!1;if(Ko)try{Ko({},"a",{value:1})}catch{Ko=!1}Um.exports=Ko});var vu=b((wee,Mm)=>{"use strict";Mm.exports=i(function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var o=42;t[r]=o;for(var a in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var s=Object.getOwnPropertySymbols(t);if(s.length!==1||s[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var u=Object.getOwnPropertyDescriptor(t,r);if(u.value!==o||u.enumerable!==!0)return!1}return!0},"hasSymbols")});var Bm=b((Tee,Fm)=>{"use strict";var qm=typeof Symbol<"u"&&Symbol,jC=vu();Fm.exports=i(function(){return typeof qm!="function"||typeof Symbol!="function"||typeof qm("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:jC()},"hasNativeSymbols")});var bu=b((See,jm)=>{"use strict";jm.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var xu=b((Aee,Vm)=>{"use strict";var VC=gu();Vm.exports=VC.getPrototypeOf||null});var Wm=b((Iee,Zm)=>{"use strict";var HC="Function.prototype.bind called on incompatible ",ZC=Object.prototype.toString,WC=Math.max,GC="[object Function]",Hm=i(function(t,r){for(var n=[],o=0;o<t.length;o+=1)n[o]=t[o];for(var a=0;a<r.length;a+=1)n[a+t.length]=r[a];return n},"concatty"),KC=i(function(t,r){for(var n=[],o=r||0,a=0;o<t.length;o+=1,a+=1)n[a]=t[o];return n},"slicy"),JC=i(function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r},"joiny");Zm.exports=i(function(t){var r=this;if(typeof r!="function"||ZC.apply(r)!==GC)throw new TypeError(HC+r);for(var n=KC(arguments,1),o,a=i(function(){if(this instanceof o){var c=r.apply(this,Hm(n,arguments));return Object(c)===c?c:this}return r.apply(t,Hm(n,arguments))},"binder"),s=WC(0,r.length-n.length),u=[],l=0;l<s;l++)u[l]="$"+l;if(o=Function("binder","return function ("+JC(u,",")+"){ return binder.apply(this,arguments); }")(a),r.prototype){var p=i(function(){},"Empty");p.prototype=r.prototype,o.prototype=new p,p.prototype=null}return o},"bind")});var Cn=b((Cee,Gm)=>{"use strict";var XC=Wm();Gm.exports=Function.prototype.bind||XC});var Jo=b((Ree,Km)=>{"use strict";Km.exports=Function.prototype.call});var _u=b(($ee,Jm)=>{"use strict";Jm.exports=Function.prototype.apply});var Ym=b((zee,Xm)=>{"use strict";Xm.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var eh=b((Dee,Qm)=>{"use strict";var YC=Cn(),QC=_u(),eR=Jo(),tR=Ym();Qm.exports=tR||YC.call(eR,QC)});var rh=b((Nee,th)=>{"use strict";var rR=Cn(),nR=Wo(),iR=Jo(),oR=eh();th.exports=i(function(t){if(t.length<1||typeof t[0]!="function")throw new nR("a function is required");return oR(rR,iR,t)},"callBindBasic")});var uh=b((Lee,sh)=>{"use strict";var aR=rh(),nh=yu(),oh;try{oh=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var Pu=!!oh&&nh&&nh(Object.prototype,"__proto__"),ah=Object,ih=ah.getPrototypeOf;sh.exports=Pu&&typeof Pu.get=="function"?aR([Pu.get]):typeof ih=="function"?i(function(t){return ih(t==null?t:ah(t))},"getDunder"):!1});var fh=b((qee,dh)=>{"use strict";var lh=bu(),ch=xu(),ph=uh();dh.exports=lh?i(function(t){return lh(t)},"getProto"):ch?i(function(t){if(!t||typeof t!="object"&&typeof t!="function")throw new TypeError("getProto: not an object");return ch(t)},"getProto"):ph?i(function(t){return ph(t)},"getProto"):null});var Xo=b((Bee,mh)=>{"use strict";var sR=Function.prototype.call,uR=Object.prototype.hasOwnProperty,lR=Cn();mh.exports=lR.call(sR,uR)});var _h=b((jee,xh)=>{"use strict";var de,cR=gu(),pR=am(),dR=um(),fR=cm(),mR=dm(),Dn=mm(),zn=Wo(),hR=ym(),gR=bm(),yR=_m(),vR=wm(),bR=Tm(),xR=Sm(),_R=Im(),PR=$m(),vh=Function,wu=i(function(e){try{return vh('"use strict"; return ('+e+").constructor;")()}catch{}},"getEvalledConstructor"),zi=yu(),wR=Lm(),Eu=i(function(){throw new zn},"throwTypeError"),ER=zi?(function(){try{return arguments.callee,Eu}catch{try{return zi(arguments,"callee").get}catch{return Eu}}})():Eu,Rn=Bm()(),at=fh(),TR=xu(),kR=bu(),bh=_u(),Di=Jo(),$n={},SR=typeof Uint8Array>"u"||!at?de:at(Uint8Array),un={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?de:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?de:ArrayBuffer,"%ArrayIteratorPrototype%":Rn&&at?at([][Symbol.iterator]()):de,"%AsyncFromSyncIteratorPrototype%":de,"%AsyncFunction%":$n,"%AsyncGenerator%":$n,"%AsyncGeneratorFunction%":$n,"%AsyncIteratorPrototype%":$n,"%Atomics%":typeof Atomics>"u"?de:Atomics,"%BigInt%":typeof BigInt>"u"?de:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?de:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?de:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?de:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":pR,"%eval%":eval,"%EvalError%":dR,"%Float16Array%":typeof Float16Array>"u"?de:Float16Array,"%Float32Array%":typeof Float32Array>"u"?de:Float32Array,"%Float64Array%":typeof Float64Array>"u"?de:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?de:FinalizationRegistry,"%Function%":vh,"%GeneratorFunction%":$n,"%Int8Array%":typeof Int8Array>"u"?de:Int8Array,"%Int16Array%":typeof Int16Array>"u"?de:Int16Array,"%Int32Array%":typeof Int32Array>"u"?de:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Rn&&at?at(at([][Symbol.iterator]())):de,"%JSON%":typeof JSON=="object"?JSON:de,"%Map%":typeof Map>"u"?de:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Rn||!at?de:at(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":cR,"%Object.getOwnPropertyDescriptor%":zi,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?de:Promise,"%Proxy%":typeof Proxy>"u"?de:Proxy,"%RangeError%":fR,"%ReferenceError%":mR,"%Reflect%":typeof Reflect>"u"?de:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?de:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Rn||!at?de:at(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?de:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Rn&&at?at(""[Symbol.iterator]()):de,"%Symbol%":Rn?Symbol:de,"%SyntaxError%":Dn,"%ThrowTypeError%":ER,"%TypedArray%":SR,"%TypeError%":zn,"%Uint8Array%":typeof Uint8Array>"u"?de:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?de:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?de:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?de:Uint32Array,"%URIError%":hR,"%WeakMap%":typeof WeakMap>"u"?de:WeakMap,"%WeakRef%":typeof WeakRef>"u"?de:WeakRef,"%WeakSet%":typeof WeakSet>"u"?de:WeakSet,"%Function.prototype.call%":Di,"%Function.prototype.apply%":bh,"%Object.defineProperty%":wR,"%Object.getPrototypeOf%":TR,"%Math.abs%":gR,"%Math.floor%":yR,"%Math.max%":vR,"%Math.min%":bR,"%Math.pow%":xR,"%Math.round%":_R,"%Math.sign%":PR,"%Reflect.getPrototypeOf%":kR};if(at)try{null.error}catch(e){hh=at(at(e)),un["%Error.prototype%"]=hh}var hh,AR=i(function e(t){var r;if(t==="%AsyncFunction%")r=wu("async function () {}");else if(t==="%GeneratorFunction%")r=wu("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=wu("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var o=e("%AsyncGenerator%");o&&at&&(r=at(o.prototype))}return un[t]=r,r},"doEval"),gh={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Ni=Cn(),Yo=Xo(),IR=Ni.call(Di,Array.prototype.concat),OR=Ni.call(bh,Array.prototype.splice),yh=Ni.call(Di,String.prototype.replace),Qo=Ni.call(Di,String.prototype.slice),CR=Ni.call(Di,RegExp.prototype.exec),RR=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,$R=/\\(\\)?/g,zR=i(function(t){var r=Qo(t,0,1),n=Qo(t,-1);if(r==="%"&&n!=="%")throw new Dn("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new Dn("invalid intrinsic syntax, expected opening `%`");var o=[];return yh(t,RR,function(a,s,u,l){o[o.length]=u?yh(l,$R,"$1"):s||a}),o},"stringToPath"),DR=i(function(t,r){var n=t,o;if(Yo(gh,n)&&(o=gh[n],n="%"+o[0]+"%"),Yo(un,n)){var a=un[n];if(a===$n&&(a=AR(n)),typeof a>"u"&&!r)throw new zn("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:a}}throw new Dn("intrinsic "+t+" does not exist!")},"getBaseIntrinsic");xh.exports=i(function(t,r){if(typeof t!="string"||t.length===0)throw new zn("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new zn('"allowMissing" argument must be a boolean');if(CR(/^%?[^%]*%?$/,t)===null)throw new Dn("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=zR(t),o=n.length>0?n[0]:"",a=DR("%"+o+"%",r),s=a.name,u=a.value,l=!1,p=a.alias;p&&(o=p[0],OR(n,IR([0,1],p)));for(var c=1,f=!0;c<n.length;c+=1){var m=n[c],d=Qo(m,0,1),h=Qo(m,-1);if((d==='"'||d==="'"||d==="`"||h==='"'||h==="'"||h==="`")&&d!==h)throw new Dn("property names with quotes must have matching quotes");if((m==="constructor"||!f)&&(l=!0),o+="."+m,s="%"+o+"%",Yo(un,s))u=un[s];else if(u!=null){if(!(m in u)){if(!r)throw new zn("base intrinsic for "+t+" exists, but the property is not available.");return}if(zi&&c+1>=n.length){var _=zi(u,m);f=!!_,f&&"get"in _&&!("originalValue"in _.get)?u=_.get:u=u[m]}else f=Yo(u,m),u=u[m];f&&!l&&(un[s]=u)}}return u},"GetIntrinsic")});var wh=b((Hee,Ph)=>{"use strict";var NR=vu();Ph.exports=i(function(){return NR()&&!!Symbol.toStringTag},"hasToStringTagShams")});var Tu=b((Wee,Th)=>{"use strict";var UR=_h(),Eh=UR("%Object.defineProperty%",!0),LR=wh()(),MR=Xo(),qR=Wo(),ea=LR?Symbol.toStringTag:null;Th.exports=i(function(t,r){var n=arguments.length>2&&!!arguments[2]&&arguments[2].force,o=arguments.length>2&&!!arguments[2]&&arguments[2].nonConfigurable;if(typeof n<"u"&&typeof n!="boolean"||typeof o<"u"&&typeof o!="boolean")throw new qR("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");ea&&(n||!MR(t,ea))&&(Eh?Eh(t,ea,{configurable:!o,enumerable:!1,value:r,writable:!1}):t[ea]=r)},"setToStringTag")});var Sh=b((Kee,kh)=>{"use strict";var FR=Function.prototype.call,BR=Object.prototype.hasOwnProperty,jR=Cn();kh.exports=jR.call(FR,BR)});var Ih=b((Jee,Ah)=>{"use strict";Ah.exports=function(e,t){return Object.keys(t).forEach(function(r){e[r]=e[r]||t[r]}),e}});var Ou=b((Xee,Ch)=>{"use strict";var Iu=su(),VR=require("util"),ku=require("path"),HR=require("http"),ZR=require("https"),WR=require("url").parse,GR=require("fs"),KR=require("stream").Stream,JR=require("crypto"),Su=uu(),XR=hu(),YR=Tu(),Zr=Sh(),Au=Ih();function Oh(e){return String(e).replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/"/g,"%22")}i(Oh,"escapeHeaderParam");function he(e){if(!(this instanceof he))return new he(e);this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],Iu.call(this),e=e||{};for(var t in e)this[t]=e[t]}i(he,"FormData");VR.inherits(he,Iu);he.LINE_BREAK=`\r
2
+ `;he.DEFAULT_CONTENT_TYPE="application/octet-stream";he.prototype.append=function(e,t,r){r=r||{},typeof r=="string"&&(r={filename:r});var n=Iu.prototype.append.bind(this);if((typeof t=="number"||t==null)&&(t=String(t)),Array.isArray(t)){this._error(new Error("Arrays are not supported."));return}var o=this._multiPartHeader(e,t,r),a=this._multiPartFooter();n(o),n(t),n(a),this._trackLength(o,t,r)};he.prototype._trackLength=function(e,t,r){var n=0;r.knownLength!=null?n+=Number(r.knownLength):Buffer.isBuffer(t)?n=t.length:typeof t=="string"&&(n=Buffer.byteLength(t)),this._valueLength+=n,this._overheadLength+=Buffer.byteLength(e)+he.LINE_BREAK.length,!(!t||!t.path&&!(t.readable&&Zr(t,"httpVersion"))&&!(t instanceof KR))&&(r.knownLength||this._valuesToMeasure.push(t))};he.prototype._lengthRetriever=function(e,t){Zr(e,"fd")?e.end!=null&&e.end!=1/0&&e.start!=null?t(null,e.end+1-(e.start?e.start:0)):GR.stat(e.path,function(r,n){if(r){t(r);return}var o=n.size-(e.start?e.start:0);t(null,o)}):Zr(e,"httpVersion")?t(null,Number(e.headers["content-length"])):Zr(e,"httpModule")?(e.on("response",function(r){e.pause(),t(null,Number(r.headers["content-length"]))}),e.resume()):t("Unknown stream")};he.prototype._multiPartHeader=function(e,t,r){if(typeof r.header=="string")return r.header;var n=this._getContentDisposition(t,r),o=this._getContentType(t,r),a="",s={"Content-Disposition":["form-data",'name="'+Oh(e)+'"'].concat(n||[]),"Content-Type":[].concat(o||[])};typeof r.header=="object"&&Au(s,r.header);var u;for(var l in s)if(Zr(s,l)){if(u=s[l],u==null)continue;Array.isArray(u)||(u=[u]),u.length&&(a+=l+": "+u.join("; ")+he.LINE_BREAK)}return"--"+this.getBoundary()+he.LINE_BREAK+a+he.LINE_BREAK};he.prototype._getContentDisposition=function(e,t){var r;if(typeof t.filepath=="string"?r=ku.normalize(t.filepath).replace(/\\/g,"/"):t.filename||e&&(e.name||e.path)?r=ku.basename(t.filename||e&&(e.name||e.path)):e&&e.readable&&Zr(e,"httpVersion")&&(r=ku.basename(e.client._httpMessage.path||"")),r)return'filename="'+Oh(r)+'"'};he.prototype._getContentType=function(e,t){var r=t.contentType;return!r&&e&&e.name&&(r=Su.lookup(e.name)),!r&&e&&e.path&&(r=Su.lookup(e.path)),!r&&e&&e.readable&&Zr(e,"httpVersion")&&(r=e.headers["content-type"]),!r&&(t.filepath||t.filename)&&(r=Su.lookup(t.filepath||t.filename)),!r&&e&&typeof e=="object"&&(r=he.DEFAULT_CONTENT_TYPE),r};he.prototype._multiPartFooter=function(){return function(e){var t=he.LINE_BREAK,r=this._streams.length===0;r&&(t+=this._lastBoundary()),e(t)}.bind(this)};he.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+he.LINE_BREAK};he.prototype.getHeaders=function(e){var t,r={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(t in e)Zr(e,t)&&(r[t.toLowerCase()]=e[t]);return r};he.prototype.setBoundary=function(e){if(typeof e!="string")throw new TypeError("FormData boundary must be a string");this._boundary=e};he.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary};he.prototype.getBuffer=function(){for(var e=new Buffer.alloc(0),t=this.getBoundary(),r=0,n=this._streams.length;r<n;r++)typeof this._streams[r]!="function"&&(Buffer.isBuffer(this._streams[r])?e=Buffer.concat([e,this._streams[r]]):e=Buffer.concat([e,Buffer.from(this._streams[r])]),(typeof this._streams[r]!="string"||this._streams[r].substring(2,t.length+2)!==t)&&(e=Buffer.concat([e,Buffer.from(he.LINE_BREAK)])));return Buffer.concat([e,Buffer.from(this._lastBoundary())])};he.prototype._generateBoundary=function(){this._boundary="--------------------------"+JR.randomBytes(12).toString("hex")};he.prototype.getLengthSync=function(){var e=this._overheadLength+this._valueLength;return this._streams.length&&(e+=this._lastBoundary().length),this.hasKnownLength()||this._error(new Error("Cannot calculate proper length in synchronous way.")),e};he.prototype.hasKnownLength=function(){var e=!0;return this._valuesToMeasure.length&&(e=!1),e};he.prototype.getLength=function(e){var t=this._overheadLength+this._valueLength;if(this._streams.length&&(t+=this._lastBoundary().length),!this._valuesToMeasure.length){process.nextTick(e.bind(this,null,t));return}XR.parallel(this._valuesToMeasure,this._lengthRetriever,function(r,n){if(r){e(r);return}n.forEach(function(o){t+=o}),e(null,t)})};he.prototype.submit=function(e,t){var r,n,o={method:"post"};return typeof e=="string"?(e=WR(e),n=Au({port:e.port,path:e.pathname,host:e.hostname,protocol:e.protocol},o)):(n=Au(e,o),n.port||(n.port=n.protocol==="https:"?443:80)),n.headers=this.getHeaders(e.headers),n.protocol==="https:"?r=ZR.request(n):r=HR.request(n),this.getLength(function(a,s){if(a&&a!=="Unknown stream"){this._error(a);return}if(s&&r.setHeader("Content-Length",s),this.pipe(r),t){var u,l=i(function(p,c){return r.removeListener("error",l),r.removeListener("response",u),t.call(this,p,c)},"callback");u=l.bind(this,null),r.on("error",l),r.on("response",u)}}.bind(this)),r};he.prototype._error=function(e){this.error||(this.error=e,this.pause(),this.emit("error",e))};he.prototype.toString=function(){return"[object FormData]"};YR(he.prototype,"FormData");Ch.exports=he});var Nh=b((Pte,Dh)=>{var Nn=1e3,Un=Nn*60,Ln=Un*60,ln=Ln*24,s$=ln*7,u$=ln*365.25;Dh.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return l$(e);if(r==="number"&&isFinite(e))return t.long?p$(e):c$(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function l$(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]),n=(t[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*u$;case"weeks":case"week":case"w":return r*s$;case"days":case"day":case"d":return r*ln;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Ln;case"minutes":case"minute":case"mins":case"min":case"m":return r*Un;case"seconds":case"second":case"secs":case"sec":case"s":return r*Nn;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}i(l$,"parse");function c$(e){var t=Math.abs(e);return t>=ln?Math.round(e/ln)+"d":t>=Ln?Math.round(e/Ln)+"h":t>=Un?Math.round(e/Un)+"m":t>=Nn?Math.round(e/Nn)+"s":e+"ms"}i(c$,"fmtShort");function p$(e){var t=Math.abs(e);return t>=ln?ta(e,t,ln,"day"):t>=Ln?ta(e,t,Ln,"hour"):t>=Un?ta(e,t,Un,"minute"):t>=Nn?ta(e,t,Nn,"second"):e+" ms"}i(p$,"fmtLong");function ta(e,t,r,n){var o=t>=r*1.5;return Math.round(e/r)+" "+n+(o?"s":"")}i(ta,"plural")});var Ru=b((Ete,Uh)=>{function d$(e){r.debug=r,r.default=r,r.coerce=l,r.disable=s,r.enable=o,r.enabled=u,r.humanize=Nh(),r.destroy=p,Object.keys(e).forEach(c=>{r[c]=e[c]}),r.names=[],r.skips=[],r.formatters={};function t(c){let f=0;for(let m=0;m<c.length;m++)f=(f<<5)-f+c.charCodeAt(m),f|=0;return r.colors[Math.abs(f)%r.colors.length]}i(t,"selectColor"),r.selectColor=t;function r(c){let f,m=null,d,h;function _(...v){if(!_.enabled)return;let y=_,P=Number(new Date),E=P-(f||P);y.diff=E,y.prev=f,y.curr=P,f=P,v[0]=r.coerce(v[0]),typeof v[0]!="string"&&v.unshift("%O");let I=0;v[0]=v[0].replace(/%([a-zA-Z%])/g,(D,F)=>{if(D==="%%")return"%";I++;let L=r.formatters[F];if(typeof L=="function"){let G=v[I];D=L.call(y,G),v.splice(I,1),I--}return D}),r.formatArgs.call(y,v),(y.log||r.log).apply(y,v)}return i(_,"debug"),_.namespace=c,_.useColors=r.useColors(),_.color=r.selectColor(c),_.extend=n,_.destroy=r.destroy,Object.defineProperty(_,"enabled",{enumerable:!0,configurable:!1,get:i(()=>m!==null?m:(d!==r.namespaces&&(d=r.namespaces,h=r.enabled(c)),h),"get"),set:i(v=>{m=v},"set")}),typeof r.init=="function"&&r.init(_),_}i(r,"createDebug");function n(c,f){let m=r(this.namespace+(typeof f>"u"?":":f)+c);return m.log=this.log,m}i(n,"extend");function o(c){r.save(c),r.namespaces=c,r.names=[],r.skips=[];let f=(typeof c=="string"?c:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let m of f)m[0]==="-"?r.skips.push(m.slice(1)):r.names.push(m)}i(o,"enable");function a(c,f){let m=0,d=0,h=-1,_=0;for(;m<c.length;)if(d<f.length&&(f[d]===c[m]||f[d]==="*"))f[d]==="*"?(h=d,_=m,d++):(m++,d++);else if(h!==-1)d=h+1,_++,m=_;else return!1;for(;d<f.length&&f[d]==="*";)d++;return d===f.length}i(a,"matchesTemplate");function s(){let c=[...r.names,...r.skips.map(f=>"-"+f)].join(",");return r.enable(""),c}i(s,"disable");function u(c){for(let f of r.skips)if(a(c,f))return!1;for(let f of r.names)if(a(c,f))return!0;return!1}i(u,"enabled");function l(c){return c instanceof Error?c.stack||c.message:c}i(l,"coerce");function p(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return i(p,"destroy"),r.enable(r.load()),r}i(d$,"setup");Uh.exports=d$});var Lh=b((Tt,ra)=>{Tt.formatArgs=m$;Tt.save=h$;Tt.load=g$;Tt.useColors=f$;Tt.storage=y$();Tt.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();Tt.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function f$(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}i(f$,"useColors");function m$(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+ra.exports.humanize(this.diff),!this.useColors)return;let t="color: "+this.color;e.splice(1,0,t,"color: inherit");let r=0,n=0;e[0].replace(/%[a-zA-Z%]/g,o=>{o!=="%%"&&(r++,o==="%c"&&(n=r))}),e.splice(n,0,t)}i(m$,"formatArgs");Tt.log=console.debug||console.log||(()=>{});function h$(e){try{e?Tt.storage.setItem("debug",e):Tt.storage.removeItem("debug")}catch{}}i(h$,"save");function g$(){let e;try{e=Tt.storage.getItem("debug")||Tt.storage.getItem("DEBUG")}catch{}return!e&&typeof process<"u"&&"env"in process&&(e=process.env.DEBUG),e}i(g$,"load");function y$(){try{return localStorage}catch{}}i(y$,"localstorage");ra.exports=Ru()(Tt);var{formatters:v$}=ra.exports;v$.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}});var qh=b((Ste,Mh)=>{"use strict";Mh.exports=(e,t=process.argv)=>{let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),o=t.indexOf("--");return n!==-1&&(o===-1||n<o)}});var jh=b((Ate,Bh)=>{"use strict";var b$=require("os"),Fh=require("tty"),qt=qh(),{env:st}=process,Wr;qt("no-color")||qt("no-colors")||qt("color=false")||qt("color=never")?Wr=0:(qt("color")||qt("colors")||qt("color=true")||qt("color=always"))&&(Wr=1);"FORCE_COLOR"in st&&(st.FORCE_COLOR==="true"?Wr=1:st.FORCE_COLOR==="false"?Wr=0:Wr=st.FORCE_COLOR.length===0?1:Math.min(parseInt(st.FORCE_COLOR,10),3));function $u(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}i($u,"translateLevel");function zu(e,t){if(Wr===0)return 0;if(qt("color=16m")||qt("color=full")||qt("color=truecolor"))return 3;if(qt("color=256"))return 2;if(e&&!t&&Wr===void 0)return 0;let r=Wr||0;if(st.TERM==="dumb")return r;if(process.platform==="win32"){let n=b$.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in st)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in st)||st.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in st)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(st.TEAMCITY_VERSION)?1:0;if(st.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in st){let n=parseInt((st.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(st.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(st.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(st.TERM)||"COLORTERM"in st?1:r}i(zu,"supportsColor");function x$(e){let t=zu(e,e&&e.isTTY);return $u(t)}i(x$,"getSupportLevel");Bh.exports={supportsColor:x$,stdout:$u(zu(!0,Fh.isatty(1))),stderr:$u(zu(!0,Fh.isatty(2)))}});var Hh=b((ut,ia)=>{var _$=require("tty"),na=require("util");ut.init=A$;ut.log=T$;ut.formatArgs=w$;ut.save=k$;ut.load=S$;ut.useColors=P$;ut.destroy=na.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");ut.colors=[6,2,3,4,5,1];try{let e=jh();e&&(e.stderr||e).level>=2&&(ut.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}ut.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{let r=t.substring(6).toLowerCase().replace(/_([a-z])/g,(o,a)=>a.toUpperCase()),n=process.env[t];return/^(yes|on|true|enabled)$/i.test(n)?n=!0:/^(no|off|false|disabled)$/i.test(n)?n=!1:n==="null"?n=null:n=Number(n),e[r]=n,e},{});function P$(){return"colors"in ut.inspectOpts?!!ut.inspectOpts.colors:_$.isatty(process.stderr.fd)}i(P$,"useColors");function w$(e){let{namespace:t,useColors:r}=this;if(r){let n=this.color,o="\x1B[3"+(n<8?n:"8;5;"+n),a=` ${o};1m${t} \x1B[0m`;e[0]=a+e[0].split(`
3
+ `).join(`
4
+ `+a),e.push(o+"m+"+ia.exports.humanize(this.diff)+"\x1B[0m")}else e[0]=E$()+t+" "+e[0]}i(w$,"formatArgs");function E$(){return ut.inspectOpts.hideDate?"":new Date().toISOString()+" "}i(E$,"getDate");function T$(...e){return process.stderr.write(na.formatWithOptions(ut.inspectOpts,...e)+`
5
+ `)}i(T$,"log");function k$(e){e?process.env.DEBUG=e:delete process.env.DEBUG}i(k$,"save");function S$(){return process.env.DEBUG}i(S$,"load");function A$(e){e.inspectOpts={};let t=Object.keys(ut.inspectOpts);for(let r=0;r<t.length;r++)e.inspectOpts[t[r]]=ut.inspectOpts[t[r]]}i(A$,"init");ia.exports=Ru()(ut);var{formatters:Vh}=ia.exports;Vh.o=function(e){return this.inspectOpts.colors=this.useColors,na.inspect(e,this.inspectOpts).split(`
6
+ `).map(t=>t.trim()).join(" ")};Vh.O=function(e){return this.inspectOpts.colors=this.useColors,na.inspect(e,this.inspectOpts)}});var Ui=b((Cte,Du)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?Du.exports=Lh():Du.exports=Hh()});var Zh=b(Nu=>{"use strict";Object.defineProperty(Nu,"__esModule",{value:!0});function I$(e){return function(t,r){return new Promise((n,o)=>{e.call(this,t,r,(a,s)=>{a?o(a):n(s)})})}}i(I$,"promisify");Nu.default=I$});var Kh=b((Lu,Gh)=>{"use strict";var Wh=Lu&&Lu.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},O$=require("events"),C$=Wh(Ui()),R$=Wh(Zh()),Li=C$.default("agent-base");function $$(e){return!!e&&typeof e.addRequest=="function"}i($$,"isAgent");function Uu(){let{stack:e}=new Error;return typeof e!="string"?!1:e.split(`
7
+ `).some(t=>t.indexOf("(https.js:")!==-1||t.indexOf("node:https:")!==-1)}i(Uu,"isSecureEndpoint");function oa(e,t){return new oa.Agent(e,t)}i(oa,"createAgent");(function(e){class t extends O$.EventEmitter{static{i(this,"Agent")}constructor(n,o){super();let a=o;typeof n=="function"?this.callback=n:n&&(a=n),this.timeout=null,a&&typeof a.timeout=="number"&&(this.timeout=a.timeout),this.maxFreeSockets=1,this.maxSockets=1,this.maxTotalSockets=1/0,this.sockets={},this.freeSockets={},this.requests={},this.options={}}get defaultPort(){return typeof this.explicitDefaultPort=="number"?this.explicitDefaultPort:Uu()?443:80}set defaultPort(n){this.explicitDefaultPort=n}get protocol(){return typeof this.explicitProtocol=="string"?this.explicitProtocol:Uu()?"https:":"http:"}set protocol(n){this.explicitProtocol=n}callback(n,o,a){throw new Error('"agent-base" has no default implementation, you must subclass and override `callback()`')}addRequest(n,o){let a=Object.assign({},o);typeof a.secureEndpoint!="boolean"&&(a.secureEndpoint=Uu()),a.host==null&&(a.host="localhost"),a.port==null&&(a.port=a.secureEndpoint?443:80),a.protocol==null&&(a.protocol=a.secureEndpoint?"https:":"http:"),a.host&&a.path&&delete a.path,delete a.agent,delete a.hostname,delete a._defaultAgent,delete a.defaultPort,delete a.createConnection,n._last=!0,n.shouldKeepAlive=!1;let s=!1,u=null,l=a.timeout||this.timeout,p=i(d=>{n._hadError||(n.emit("error",d),n._hadError=!0)},"onerror"),c=i(()=>{u=null,s=!0;let d=new Error(`A "socket" was not created for HTTP request before ${l}ms`);d.code="ETIMEOUT",p(d)},"ontimeout"),f=i(d=>{s||(u!==null&&(clearTimeout(u),u=null),p(d))},"callbackError"),m=i(d=>{if(s)return;if(u!=null&&(clearTimeout(u),u=null),$$(d)){Li("Callback returned another Agent instance %o",d.constructor.name),d.addRequest(n,a);return}if(d){d.once("free",()=>{this.freeSocket(d,a)}),n.onSocket(d);return}let h=new Error(`no Duplex stream was returned to agent-base for \`${n.method} ${n.path}\``);p(h)},"onsocket");if(typeof this.callback!="function"){p(new Error("`callback` is not defined"));return}this.promisifiedCallback||(this.callback.length>=3?(Li("Converting legacy callback function to promise"),this.promisifiedCallback=R$.default(this.callback)):this.promisifiedCallback=this.callback),typeof l=="number"&&l>0&&(u=setTimeout(c,l)),"port"in a&&typeof a.port!="number"&&(a.port=Number(a.port));try{Li("Resolving socket for %o request: %o",a.protocol,`${n.method} ${n.path}`),Promise.resolve(this.promisifiedCallback(n,a)).then(m,f)}catch(d){Promise.reject(d).catch(f)}}freeSocket(n,o){Li("Freeing socket %o %o",n.constructor.name,o),n.destroy()}destroy(){Li("Destroying agent %o",this.constructor.name)}}e.Agent=t,e.prototype=e.Agent.prototype})(oa||(oa={}));Gh.exports=oa});var Jh=b(qi=>{"use strict";var z$=qi&&qi.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(qi,"__esModule",{value:!0});var D$=z$(Ui()),Mi=D$.default("https-proxy-agent:parse-proxy-response");function N$(e){return new Promise((t,r)=>{let n=0,o=[];function a(){let f=e.read();f?c(f):e.once("readable",a)}i(a,"read");function s(){e.removeListener("end",l),e.removeListener("error",p),e.removeListener("close",u),e.removeListener("readable",a)}i(s,"cleanup");function u(f){Mi("onclose had error %o",f)}i(u,"onclose");function l(){Mi("onend")}i(l,"onend");function p(f){s(),Mi("onerror %o",f),r(f)}i(p,"onerror");function c(f){o.push(f),n+=f.length;let m=Buffer.concat(o,n);if(m.indexOf(`\r
8
+ \r
9
+ `)===-1){Mi("have not received end of HTTP headers yet..."),a();return}let h=m.toString("ascii",0,m.indexOf(`\r
10
+ `)),_=+h.split(" ")[1];Mi("got proxy server response: %o",h),t({statusCode:_,buffered:m})}i(c,"ondata"),e.on("error",p),e.on("close",u),e.on("end",l),a()})}i(N$,"parseProxyResponse");qi.default=N$});var Qh=b(cn=>{"use strict";var U$=cn&&cn.__awaiter||function(e,t,r,n){function o(a){return a instanceof r?a:new r(function(s){s(a)})}return i(o,"adopt"),new(r||(r=Promise))(function(a,s){function u(c){try{p(n.next(c))}catch(f){s(f)}}i(u,"fulfilled");function l(c){try{p(n.throw(c))}catch(f){s(f)}}i(l,"rejected");function p(c){c.done?a(c.value):o(c.value).then(u,l)}i(p,"step"),p((n=n.apply(e,t||[])).next())})},Mn=cn&&cn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(cn,"__esModule",{value:!0});var Xh=Mn(require("net")),Yh=Mn(require("tls")),L$=Mn(require("url")),M$=Mn(require("assert")),q$=Mn(Ui()),F$=Kh(),B$=Mn(Jh()),Fi=q$.default("https-proxy-agent:agent"),Mu=class extends F$.Agent{static{i(this,"HttpsProxyAgent")}constructor(t){let r;if(typeof t=="string"?r=L$.default.parse(t):r=t,!r)throw new Error("an HTTP(S) proxy server `host` and `port` must be specified!");Fi("creating new HttpsProxyAgent instance: %o",r),super(r);let n=Object.assign({},r);this.secureProxy=r.secureProxy||H$(n.protocol),n.host=n.hostname||n.host,typeof n.port=="string"&&(n.port=parseInt(n.port,10)),!n.port&&n.host&&(n.port=this.secureProxy?443:80),this.secureProxy&&!("ALPNProtocols"in n)&&(n.ALPNProtocols=["http 1.1"]),n.host&&n.path&&(delete n.path,delete n.pathname),this.proxy=n}callback(t,r){return U$(this,void 0,void 0,function*(){let{proxy:n,secureProxy:o}=this,a;o?(Fi("Creating `tls.Socket`: %o",n),a=Yh.default.connect(n)):(Fi("Creating `net.Socket`: %o",n),a=Xh.default.connect(n));let s=Object.assign({},n.headers),l=`CONNECT ${`${r.host}:${r.port}`} HTTP/1.1\r
11
+ `;n.auth&&(s["Proxy-Authorization"]=`Basic ${Buffer.from(n.auth).toString("base64")}`);let{host:p,port:c,secureEndpoint:f}=r;V$(c,f)||(p+=`:${c}`),s.Host=p,s.Connection="close";for(let v of Object.keys(s))l+=`${v}: ${s[v]}\r
12
+ `;let m=B$.default(a);a.write(`${l}\r
13
+ `);let{statusCode:d,buffered:h}=yield m;if(d===200){if(t.once("socket",j$),r.secureEndpoint){Fi("Upgrading socket connection to TLS");let v=r.servername||r.host;return Yh.default.connect(Object.assign(Object.assign({},Z$(r,"host","hostname","path","port")),{socket:a,servername:v}))}return a}a.destroy();let _=new Xh.default.Socket({writable:!1});return _.readable=!0,t.once("socket",v=>{Fi("replaying proxy buffer for failed request"),M$.default(v.listenerCount("data")>0),v.push(h),v.push(null)}),_})}};cn.default=Mu;function j$(e){e.resume()}i(j$,"resume");function V$(e,t){return!!(!t&&e===80||t&&e===443)}i(V$,"isDefaultPort");function H$(e){return typeof e=="string"?/^https:?$/i.test(e):!1}i(H$,"isHTTPS");function Z$(e,...t){let r={},n;for(n in e)t.includes(n)||(r[n]=e[n]);return r}i(Z$,"omit")});var tg=b((Bu,eg)=>{"use strict";var W$=Bu&&Bu.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},qu=W$(Qh());function Fu(e){return new qu.default(e)}i(Fu,"createHttpsProxyAgent");(function(e){e.HttpsProxyAgent=qu.default,e.prototype=qu.default.prototype})(Fu||(Fu={}));eg.exports=Fu});var ng=b((qte,rg)=>{var Bi;rg.exports=function(){if(!Bi){try{Bi=Ui()("follow-redirects")}catch{}typeof Bi!="function"&&(Bi=i(function(){},"debug"))}Bi.apply(null,arguments)}});var ug=b((Bte,el)=>{var Vi=require("url"),ji=Vi.URL,G$=require("http"),K$=require("https"),Wu=require("stream").Writable,Gu=require("assert"),ig=ng();i(function(){var t=typeof process<"u",r=typeof window<"u"&&typeof document<"u",n=dn(Error.captureStackTrace);!t&&(r||!n)&&console.warn("The follow-redirects package should be excluded from browser builds.")},"detectUnsupportedEnvironment")();var Ku=!1;try{Gu(new ji(""))}catch(e){Ku=e.code==="ERR_INVALID_URL"}var J$=["Authorization","Proxy-Authorization","Cookie"],X$=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],Ju=["abort","aborted","connect","error","socket","timeout"],Xu=Object.create(null);Ju.forEach(function(e){Xu[e]=function(t,r,n){this._redirectable.emit(e,t,r,n)}});var Vu=Hi("ERR_INVALID_URL","Invalid URL",TypeError),Hu=Hi("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),Y$=Hi("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",Hu),Q$=Hi("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),ez=Hi("ERR_STREAM_WRITE_AFTER_END","write after end"),tz=Wu.prototype.destroy||ag;function kt(e,t){Wu.call(this),this._sanitizeOptions(e),this._options=e,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],t&&this.on("response",t);var r=this;this._onNativeResponse=function(n){try{r._processResponse(n)}catch(o){r.emit("error",o instanceof Hu?o:new Hu({cause:o}))}},this._headerFilter=new RegExp("^(?:"+J$.concat(e.sensitiveHeaders).map(sz).join("|")+")$","i"),this._performRequest()}i(kt,"RedirectableRequest");kt.prototype=Object.create(Wu.prototype);kt.prototype.abort=function(){Qu(this._currentRequest),this._currentRequest.abort(),this.emit("abort")};kt.prototype.destroy=function(e){return Qu(this._currentRequest,e),tz.call(this,e),this};kt.prototype.write=function(e,t,r){if(this._ending)throw new ez;if(!pn(e)&&!oz(e))throw new TypeError("data should be a string, Buffer or Uint8Array");if(dn(t)&&(r=t,t=null),e.length===0){r&&r();return}this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:t}),this._currentRequest.write(e,t,r)):(this.emit("error",new Q$),this.abort())};kt.prototype.end=function(e,t,r){if(dn(e)?(r=e,e=t=null):dn(t)&&(r=t,t=null),!e)this._ended=this._ending=!0,this._currentRequest.end(null,null,r);else{var n=this,o=this._currentRequest;this.write(e,t,function(){n._ended=!0,o.end(null,null,r)}),this._ending=!0}};kt.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)};kt.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)};kt.prototype.setTimeout=function(e,t){var r=this;function n(s){s.setTimeout(e),s.removeListener("timeout",s.destroy),s.addListener("timeout",s.destroy)}i(n,"destroyOnTimeout");function o(s){r._timeout&&clearTimeout(r._timeout),r._timeout=setTimeout(function(){r.emit("timeout"),a()},e),n(s)}i(o,"startTimer");function a(){r._timeout&&(clearTimeout(r._timeout),r._timeout=null),r.removeListener("abort",a),r.removeListener("error",a),r.removeListener("response",a),r.removeListener("close",a),t&&r.removeListener("timeout",t),r.socket||r._currentRequest.removeListener("socket",o)}return i(a,"clearTimer"),t&&this.on("timeout",t),this.socket?o(this.socket):this._currentRequest.once("socket",o),this.on("socket",n),this.on("abort",a),this.on("error",a),this.on("response",a),this.on("close",a),this};["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(e){kt.prototype[e]=function(t,r){return this._currentRequest[e](t,r)}});["aborted","connection","socket"].forEach(function(e){Object.defineProperty(kt.prototype,e,{get:i(function(){return this._currentRequest[e]},"get")})});kt.prototype._sanitizeOptions=function(e){if(e.headers||(e.headers={}),iz(e.sensitiveHeaders)||(e.sensitiveHeaders=[]),e.host&&(e.hostname||(e.hostname=e.host),delete e.host),!e.pathname&&e.path){var t=e.path.indexOf("?");t<0?e.pathname=e.path:(e.pathname=e.path.substring(0,t),e.search=e.path.substring(t))}};kt.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(!t)throw new TypeError("Unsupported protocol "+e);if(this._options.agents){var r=e.slice(0,-1);this._options.agent=this._options.agents[r]}var n=this._currentRequest=t.request(this._options,this._onNativeResponse);n._redirectable=this;for(var o of Ju)n.on(o,Xu[o]);if(this._currentUrl=/^\//.test(this._options.path)?Vi.format(this._options):this._options.path,this._isRedirect){var a=0,s=this,u=this._requestBodyBuffers;i(function l(p){if(n===s._currentRequest)if(p)s.emit("error",p);else if(a<u.length){var c=u[a++];n.finished||n.write(c.data,c.encoding,l)}else s._ended&&n.end()},"writeNext")()}};kt.prototype._processResponse=function(e){var t=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:t});var r=e.headers.location;if(!r||this._options.followRedirects===!1||t<300||t>=400){e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),this._requestBodyBuffers=[];return}if(Qu(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects)throw new Y$;var n,o=this._options.beforeRedirect;o&&(n=Object.assign({Host:e.req.getHeader("host")},this._options.headers));var a=this._options.method;((t===301||t===302)&&this._options.method==="POST"||t===303&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],ju(/^content-/i,this._options.headers));var s=ju(/^host$/i,this._options.headers),u=Yu(this._currentUrl),l=s||u.host,p=/^\w+:/.test(r)?this._currentUrl:Vi.format(Object.assign(u,{host:l})),c=rz(r,p);if(ig("redirecting to",c.href),this._isRedirect=!0,Zu(c,this._options),(c.protocol!==u.protocol&&c.protocol!=="https:"||c.host!==l&&!nz(c.host,l))&&ju(this._headerFilter,this._options.headers),dn(o)){var f={headers:e.headers,statusCode:t},m={url:p,method:a,headers:n};o(this._options,f,m),this._sanitizeOptions(this._options)}this._performRequest()};function og(e){var t={maxRedirects:21,maxBodyLength:10485760},r={};return Object.keys(e).forEach(function(n){var o=n+":",a=r[o]=e[n],s=t[n]=Object.create(a);function u(p,c,f){return az(p)?p=Zu(p):pn(p)?p=Zu(Yu(p)):(f=c,c=sg(p),p={protocol:o}),dn(c)&&(f=c,c=null),c=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},p,c),c.nativeProtocols=r,!pn(c.host)&&!pn(c.hostname)&&(c.hostname="::1"),Gu.equal(c.protocol,o,"protocol mismatch"),ig("options",c),new kt(c,f)}i(u,"request");function l(p,c,f){var m=s.request(p,c,f);return m.end(),m}i(l,"get"),Object.defineProperties(s,{request:{value:u,configurable:!0,enumerable:!0,writable:!0},get:{value:l,configurable:!0,enumerable:!0,writable:!0}})}),t}i(og,"wrap");function ag(){}i(ag,"noop");function Yu(e){var t;if(Ku)t=new ji(e);else if(t=sg(Vi.parse(e)),!pn(t.protocol))throw new Vu({input:e});return t}i(Yu,"parseUrl");function rz(e,t){return Ku?new ji(e,t):Yu(Vi.resolve(t,e))}i(rz,"resolveUrl");function sg(e){if(/^\[/.test(e.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(e.hostname))throw new Vu({input:e.href||e});if(/^\[/.test(e.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(e.host))throw new Vu({input:e.href||e});return e}i(sg,"validateUrl");function Zu(e,t){var r=t||{};for(var n of X$)r[n]=e[n];return r.hostname.startsWith("[")&&(r.hostname=r.hostname.slice(1,-1)),r.port!==""&&(r.port=Number(r.port)),r.path=r.search?r.pathname+r.search:r.pathname,r}i(Zu,"spreadUrlObject");function ju(e,t){var r;for(var n in t)e.test(n)&&(r=t[n],delete t[n]);return r===null||typeof r>"u"?void 0:String(r).trim()}i(ju,"removeMatchingHeaders");function Hi(e,t,r){function n(o){dn(Error.captureStackTrace)&&Error.captureStackTrace(this,this.constructor),Object.assign(this,o||{}),this.code=e,this.message=this.cause?t+": "+this.cause.message:t}return i(n,"CustomError"),n.prototype=new(r||Error),Object.defineProperties(n.prototype,{constructor:{value:n,enumerable:!1},name:{value:"Error ["+e+"]",enumerable:!1}}),n}i(Hi,"createErrorType");function Qu(e,t){for(var r of Ju)e.removeListener(r,Xu[r]);e.on("error",ag),e.destroy(t)}i(Qu,"destroyRequest");function nz(e,t){Gu(pn(e)&&pn(t));var r=e.length-t.length-1;return r>0&&e[r]==="."&&e.endsWith(t)}i(nz,"isSubdomain");function iz(e){return e instanceof Array}i(iz,"isArray");function pn(e){return typeof e=="string"||e instanceof String}i(pn,"isString");function dn(e){return typeof e=="function"}i(dn,"isFunction");function oz(e){return typeof e=="object"&&"length"in e}i(oz,"isBuffer");function az(e){return ji&&e instanceof ji}i(az,"isURL");function sz(e){return e.replace(/[\]\\/()*+?.$]/g,"\\$&")}i(sz,"escapeRegex");el.exports=og({http:G$,https:K$});el.exports.wrap=og});var gy=b((Vte,hy)=>{"use strict";var Dg=Ou(),uz=require("crypto"),lz=require("url"),Ng=tg(),cz=require("http"),pz=require("https"),Ug=require("http2"),yl=require("util"),lg=require("path"),dz=ug(),Ft=require("zlib"),St=require("stream"),fz=require("events");function Lg(e,t){return i(function(){return e.apply(t,arguments)},"wrap")}i(Lg,"bind");var{toString:mz}=Object.prototype,{getPrototypeOf:Bn}=Object,{iterator:Ji,toStringTag:Mg}=Symbol,pa=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),Wi=i((e,t)=>{let r=e,n=[];for(;r!=null&&r!==Object.prototype;){if(n.indexOf(r)!==-1)return!1;if(n.push(r),pa(r,t))return!0;r=Bn(r)}return!1},"hasOwnInPrototypeChain"),hz=i((e,t)=>e!=null&&Wi(e,t)?e[t]:void 0,"getSafeProp"),vl=(e=>t=>{let r=mz.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),tr=i(e=>(e=e.toLowerCase(),t=>vl(t)===e),"kindOfTest"),ya=i(e=>t=>typeof t===e,"typeOfTest"),{isArray:hn}=Array,jn=ya("undefined");function Hn(e){return e!==null&&!jn(e)&&e.constructor!==null&&!jn(e.constructor)&&At(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}i(Hn,"isBuffer");var qg=tr("ArrayBuffer");function gz(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&qg(e.buffer),t}i(gz,"isArrayBufferView");var yz=ya("string"),At=ya("function"),Fg=ya("number"),Zn=i(e=>e!==null&&typeof e=="object","isObject"),vz=i(e=>e===!0||e===!1,"isBoolean"),ua=i(e=>{if(!Zn(e))return!1;let t=Bn(e);return(t===null||t===Object.prototype||Bn(t)===null)&&!Wi(e,Mg)&&!Wi(e,Ji)},"isPlainObject"),bz=i(e=>{if(!Zn(e)||Hn(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},"isEmptyObject"),xz=tr("Date"),_z=tr("File"),Pz=i(e=>!!(e&&typeof e.uri<"u"),"isReactNativeBlob"),wz=i(e=>e&&typeof e.getParts<"u","isReactNative"),Ez=tr("Blob"),Tz=tr("FileList"),kz=i(e=>Zn(e)&&At(e.pipe),"isStream");function Sz(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}i(Sz,"getGlobal");var cg=Sz(),pg=typeof cg.FormData<"u"?cg.FormData:void 0,Az=i(e=>{if(!e)return!1;if(pg&&e instanceof pg)return!0;let t=Bn(e);if(!t||t===Object.prototype||!At(e.append))return!1;let r=vl(e);return r==="formdata"||r==="object"&&At(e.toString)&&e.toString()==="[object FormData]"},"isFormData"),Iz=tr("URLSearchParams"),[Oz,Cz,Rz,$z]=["ReadableStream","Request","Response","Headers"].map(tr),zz=i(e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),"trim");function Xi(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),hn(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{if(Hn(e))return;let a=r?Object.getOwnPropertyNames(e):Object.keys(e),s=a.length,u;for(n=0;n<s;n++)u=a[n],t.call(null,e[u],u,e)}}i(Xi,"forEach");function Bg(e,t){if(Hn(e))return null;t=t.toLowerCase();let r=Object.keys(e),n=r.length,o;for(;n-- >0;)if(o=r[n],t===o.toLowerCase())return o;return null}i(Bg,"findKey");var fn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,jg=i(e=>!jn(e)&&e!==fn,"isContextDefined");function ul(...e){let{caseless:t,skipUndefined:r}=jg(this)&&this||{},n={},o=i((a,s)=>{if(s==="__proto__"||s==="constructor"||s==="prototype")return;let u=t&&typeof s=="string"&&Bg(n,s)||s,l=pa(n,u)?n[u]:void 0;ua(l)&&ua(a)?n[u]=ul(l,a):ua(a)?n[u]=ul({},a):hn(a)?n[u]=a.slice():(!r||!jn(a))&&(n[u]=a)},"assignValue");for(let a=0,s=e.length;a<s;a++){let u=e[a];if(!u||Hn(u)||(Xi(u,o),typeof u!="object"||hn(u)))continue;let l=Object.getOwnPropertySymbols(u);for(let p=0;p<l.length;p++){let c=l[p];Zz.call(u,c)&&o(u[c],c)}}return n}i(ul,"merge");var Dz=i((e,t,r,{allOwnKeys:n}={})=>(Xi(t,(o,a)=>{r&&At(o)?Object.defineProperty(e,a,{__proto__:null,value:Lg(o,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,a,{__proto__:null,value:o,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),e),"extend"),Nz=i(e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),"stripBOM"),Uz=i((e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),r&&Object.assign(e.prototype,r)},"inherits"),Lz=i((e,t,r,n)=>{let o,a,s,u={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),a=o.length;a-- >0;)s=o[a],(!n||n(s,e,t))&&!u[s]&&(t[s]=e[s],u[s]=!0);e=r!==!1&&Bn(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},"toFlatObject"),Mz=i((e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;let n=e.indexOf(t,r);return n!==-1&&n===r},"endsWith"),qz=i(e=>{if(!e)return null;if(hn(e))return e;let t=e.length;if(!Fg(t))return null;let r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},"toArray"),Fz=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Bn(Uint8Array)),Bz=i((e,t)=>{let n=(e&&e[Ji]).call(e),o;for(;(o=n.next())&&!o.done;){let a=o.value;t.call(e,a[0],a[1])}},"forEachEntry"),jz=i((e,t)=>{let r,n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},"matchAll"),Vz=tr("HTMLFormElement"),Hz=i(e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,i(function(r,n,o){return n.toUpperCase()+o},"replacer")),"toCamelCase"),{propertyIsEnumerable:Zz}=Object.prototype,Wz=tr("RegExp"),Vg=i((e,t)=>{let r=Object.getOwnPropertyDescriptors(e),n={};Xi(r,(o,a)=>{let s;(s=t(o,a,e))!==!1&&(n[a]=s||o)}),Object.defineProperties(e,n)},"reduceDescriptors"),Gz=i(e=>{Vg(e,(t,r)=>{if(At(e)&&["arguments","caller","callee"].includes(r))return!1;let n=e[r];if(At(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},"freezeMethods"),Kz=i((e,t)=>{let r={},n=i(o=>{o.forEach(a=>{r[a]=!0})},"define");return hn(e)?n(e):n(String(e).split(t)),r},"toObjectSet"),Jz=i(()=>{},"noop"),Xz=i((e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,"toFiniteNumber");function Yz(e){return!!(e&&At(e.append)&&e[Mg]==="FormData"&&e[Ji])}i(Yz,"isSpecCompliantForm");var Qz=i(e=>{let t=new WeakSet,r=i(n=>{if(Zn(n)){if(t.has(n))return;if(Hn(n))return n;if(!("toJSON"in n)){t.add(n);let o=hn(n)?[]:{};return Xi(n,(a,s)=>{let u=r(a);!jn(u)&&(o[s]=u)}),t.delete(n),o}}return n},"visit");return r(e)},"toJSONObject"),eD=tr("AsyncFunction"),tD=i(e=>e&&(Zn(e)||At(e))&&At(e.then)&&At(e.catch),"isThenable"),Hg=((e,t)=>e?setImmediate:t?((r,n)=>(fn.addEventListener("message",({source:o,data:a})=>{o===fn&&a===r&&n.length&&n.shift()()},!1),o=>{n.push(o),fn.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",At(fn.postMessage)),rD=typeof queueMicrotask<"u"?queueMicrotask.bind(fn):typeof process<"u"&&process.nextTick||Hg,Zg=i(e=>e!=null&&At(e[Ji]),"isIterable"),nD=i(e=>e!=null&&Wi(e,Ji)&&Zg(e),"isSafeIterable"),w={isArray:hn,isArrayBuffer:qg,isBuffer:Hn,isFormData:Az,isArrayBufferView:gz,isString:yz,isNumber:Fg,isBoolean:vz,isObject:Zn,isPlainObject:ua,isEmptyObject:bz,isReadableStream:Oz,isRequest:Cz,isResponse:Rz,isHeaders:$z,isUndefined:jn,isDate:xz,isFile:_z,isReactNativeBlob:Pz,isReactNative:wz,isBlob:Ez,isRegExp:Wz,isFunction:At,isStream:kz,isURLSearchParams:Iz,isTypedArray:Fz,isFileList:Tz,forEach:Xi,merge:ul,extend:Dz,trim:zz,stripBOM:Nz,inherits:Uz,toFlatObject:Lz,kindOf:vl,kindOfTest:tr,endsWith:Mz,toArray:qz,forEachEntry:Bz,matchAll:jz,isHTMLForm:Vz,hasOwnProperty:pa,hasOwnProp:pa,hasOwnInPrototypeChain:Wi,getSafeProp:hz,reduceDescriptors:Vg,freezeMethods:Gz,toObjectSet:Kz,toCamelCase:Hz,noop:Jz,toFiniteNumber:Xz,findKey:Bg,global:fn,isContextDefined:jg,isSpecCompliantForm:Yz,toJSONObject:Qz,isAsyncFn:eD,isThenable:tD,setImmediate:Hg,asap:rD,isIterable:Zg,isSafeIterable:nD},iD=w.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),oD=i(e=>{let t={},r,n,o;return e&&e.split(`
14
+ `).forEach(i(function(s){o=s.indexOf(":"),r=s.substring(0,o).trim().toLowerCase(),n=s.substring(o+1).trim(),!(!r||t[r]&&iD[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)},"parser")),t},"parseHeaders");function aD(e){let t=0,r=e.length;for(;t<r;){let n=e.charCodeAt(t);if(n!==9&&n!==32)break;t+=1}for(;r>t;){let n=e.charCodeAt(r-1);if(n!==9&&n!==32)break;r-=1}return t===0&&r===e.length?e:e.slice(t,r)}i(aD,"trimSPorHTAB");var sD=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),uD=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function bl(e,t){return w.isArray(e)?e.map(r=>bl(r,t)):aD(String(e).replace(t,""))}i(bl,"sanitizeValue");var lD=i(e=>bl(e,sD),"sanitizeHeaderValue"),cD=i(e=>bl(e,uD),"sanitizeByteStringHeaderValue");function xl(e){let t=Object.create(null);return w.forEach(e.toJSON(),(r,n)=>{t[n]=cD(r)}),t}i(xl,"toByteStringHeaderObject");var dg=Symbol("internals");function Zi(e){return e&&String(e).trim().toLowerCase()}i(Zi,"normalizeHeader");function la(e){return e===!1||e==null?e:w.isArray(e)?e.map(la):lD(String(e))}i(la,"normalizeValue");function pD(e){let t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}i(pD,"parseTokens");var dD=i(e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()),"isValidHeaderName");function tl(e,t,r,n,o){if(w.isFunction(n))return n.call(this,t,r);if(o&&(t=r),!!w.isString(t)){if(w.isString(n))return t.indexOf(n)!==-1;if(w.isRegExp(n))return n.test(t)}}i(tl,"matchHeaderValue");function fD(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}i(fD,"formatHeader");function mD(e,t){let r=w.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{__proto__:null,value:i(function(o,a,s){return this[n].call(this,t,o,a,s)},"value"),configurable:!0})})}i(mD,"buildAccessors");var Xe=class{static{i(this,"AxiosHeaders")}constructor(t){t&&this.set(t)}set(t,r,n){let o=this;function a(u,l,p){let c=Zi(l);if(!c)return;let f=w.findKey(o,c);(!f||o[f]===void 0||p===!0||p===void 0&&o[f]!==!1)&&(o[f||l]=la(u))}i(a,"setHeader");let s=i((u,l)=>w.forEach(u,(p,c)=>a(p,c,l)),"setHeaders");if(w.isPlainObject(t)||t instanceof this.constructor)s(t,r);else if(w.isString(t)&&(t=t.trim())&&!dD(t))s(oD(t),r);else if(w.isObject(t)&&w.isSafeIterable(t)){let u=Object.create(null),l,p;for(let c of t){if(!w.isArray(c))throw new TypeError("Object iterator must return a key-value pair");p=c[0],w.hasOwnProp(u,p)?(l=u[p],u[p]=w.isArray(l)?[...l,c[1]]:[l,c[1]]):u[p]=c[1]}s(u,r)}else t!=null&&a(r,t,n);return this}get(t,r){if(t=Zi(t),t){let n=w.findKey(this,t);if(n){let o=this[n];if(!r)return o;if(r===!0)return pD(o);if(w.isFunction(r))return r.call(this,o,n);if(w.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=Zi(t),t){let n=w.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||tl(this,this[n],n,r)))}return!1}delete(t,r){let n=this,o=!1;function a(s){if(s=Zi(s),s){let u=w.findKey(n,s);u&&(!r||tl(n,n[u],u,r))&&(delete n[u],o=!0)}}return i(a,"deleteHeader"),w.isArray(t)?t.forEach(a):a(t),o}clear(t){let r=Object.keys(this),n=r.length,o=!1;for(;n--;){let a=r[n];(!t||tl(this,this[a],a,t,!0))&&(delete this[a],o=!0)}return o}normalize(t){let r=this,n={};return w.forEach(this,(o,a)=>{let s=w.findKey(n,a);if(s){r[s]=la(o),delete r[a];return}let u=t?fD(a):String(a).trim();u!==a&&delete r[a],r[u]=la(o),n[u]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){let r=Object.create(null);return w.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=t&&w.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
15
+ `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){let n=new this(t);return r.forEach(o=>n.set(o)),n}static accessor(t){let n=(this[dg]=this[dg]={accessors:{}}).accessors,o=this.prototype;function a(s){let u=Zi(s);n[u]||(mD(o,s),n[u]=!0)}return i(a,"defineAccessor"),w.isArray(t)?t.forEach(a):a(t),this}};Xe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);w.reduceDescriptors(Xe.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:i(()=>e,"get"),set(n){this[r]=n}}});w.freezeMethods(Xe);var hD="[REDACTED ****]";function gD(e){if(w.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(w.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}i(gD,"hasOwnOrPrototypeToJSON");function yD(e,t){let r=new Set(t.map(a=>String(a).toLowerCase())),n=[],o=i(a=>{if(a===null||typeof a!="object"||w.isBuffer(a))return a;if(n.indexOf(a)!==-1)return;a instanceof Xe&&(a=a.toJSON()),n.push(a);let s;if(w.isArray(a))s=[],a.forEach((u,l)=>{let p=o(u);w.isUndefined(p)||(s[l]=p)});else{if(!w.isPlainObject(a)&&gD(a))return n.pop(),a;s=Object.create(null);for(let[u,l]of Object.entries(a)){let p=r.has(u.toLowerCase())?hD:o(l);w.isUndefined(p)||(s[u]=p)}}return n.pop(),s},"visit");return o(e)}i(yD,"redactConfig");var C=class e extends Error{static{i(this,"AxiosError")}static from(t,r,n,o,a,s){let u=new e(t.message,r||t.code,n,o,a);return u.cause=t,u.name=t.name,t.status!=null&&u.status==null&&(u.status=t.status),s&&Object.assign(u,s),u}constructor(t,r,n,o,a){super(t),Object.defineProperty(this,"message",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,r&&(this.code=r),n&&(this.config=n),o&&(this.request=o),a&&(this.response=a,this.status=a.status)}toJSON(){let t=this.config,r=t&&w.hasOwnProp(t,"redact")?t.redact:void 0,n=w.isArray(r)&&r.length>0?yD(t,r):w.toJSONObject(t);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:n,code:this.code,status:this.status}}};C.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";C.ERR_BAD_OPTION="ERR_BAD_OPTION";C.ECONNABORTED="ECONNABORTED";C.ETIMEDOUT="ETIMEDOUT";C.ECONNREFUSED="ECONNREFUSED";C.ERR_NETWORK="ERR_NETWORK";C.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";C.ERR_DEPRECATED="ERR_DEPRECATED";C.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";C.ERR_BAD_REQUEST="ERR_BAD_REQUEST";C.ERR_CANCELED="ERR_CANCELED";C.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";C.ERR_INVALID_URL="ERR_INVALID_URL";C.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";var Wg=100;function ll(e){return w.isPlainObject(e)||w.isArray(e)}i(ll,"isVisitable");function Gg(e){return w.endsWith(e,"[]")?e.slice(0,-2):e}i(Gg,"removeBrackets");function rl(e,t,r){return e?e.concat(t).map(i(function(o,a){return o=Gg(o),!r&&a?"["+o+"]":o},"each")).join(r?".":""):t}i(rl,"renderKey");function vD(e){return w.isArray(e)&&!e.some(ll)}i(vD,"isFlatArray");var bD=w.toFlatObject(w,{},null,i(function(t){return/^is[A-Z]/.test(t)},"filter"));function va(e,t,r){if(!w.isObject(e))throw new TypeError("target must be an object");t=t||new(Dg||FormData),r=w.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,i(function(P,E){return!w.isUndefined(E[P])},"defined"));let n=r.metaTokens,o=r.visitor||h,a=r.dots,s=r.indexes,u=r.Blob||typeof Blob<"u"&&Blob,l=r.maxDepth===void 0?Wg:r.maxDepth,p=u&&w.isSpecCompliantForm(t),c=[];if(!w.isFunction(o))throw new TypeError("visitor must be a function");function f(y){if(y===null)return"";if(w.isDate(y))return y.toISOString();if(w.isBoolean(y))return y.toString();if(!p&&w.isBlob(y))throw new C("Blob is not supported. Use a Buffer instead.");return w.isArrayBuffer(y)||w.isTypedArray(y)?p&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}i(f,"convertValue");function m(y){if(y>l)throw new C("Object is too deeply nested ("+y+" levels). Max depth: "+l,C.ERR_FORM_DATA_DEPTH_EXCEEDED)}i(m,"throwIfMaxDepthExceeded");function d(y,P){if(l===1/0)return JSON.stringify(y);let E=[];return JSON.stringify(y,i(function(M,D){if(!w.isObject(D))return D;for(;E.length&&E[E.length-1]!==this;)E.pop();return E.push(D),m(P+E.length-1),D},"limitDepth"))}i(d,"stringifyWithDepthLimit");function h(y,P,E){let I=y;if(w.isReactNative(t)&&w.isReactNativeBlob(y))return t.append(rl(E,P,a),f(y)),!1;if(y&&!E&&typeof y=="object"){if(w.endsWith(P,"{}"))P=n?P:P.slice(0,-2),y=d(y,1);else if(w.isArray(y)&&vD(y)||(w.isFileList(y)||w.endsWith(P,"[]"))&&(I=w.toArray(y)))return P=Gg(P),I.forEach(i(function(D,F){!(w.isUndefined(D)||D===null)&&t.append(s===!0?rl([P],F,a):s===null?P:P+"[]",f(D))},"each")),!1}return ll(y)?!0:(t.append(rl(E,P,a),f(y)),!1)}i(h,"defaultVisitor");let _=Object.assign(bD,{defaultVisitor:h,convertValue:f,isVisitable:ll});function v(y,P,E=0){if(!w.isUndefined(y)){if(m(E),c.indexOf(y)!==-1)throw new Error("Circular reference detected in "+P.join("."));c.push(y),w.forEach(y,i(function(M,D){(!(w.isUndefined(M)||M===null)&&o.call(t,M,w.isString(D)?D.trim():D,P,_))===!0&&v(M,P?P.concat(D):[D],E+1)},"each")),c.pop()}}if(i(v,"build"),!w.isObject(e))throw new TypeError("data must be an object");return v(e),t}i(va,"toFormData");function fg(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,i(function(n){return t[n]},"replacer"))}i(fg,"encode$1");function Kg(e,t){this._pairs=[],e&&va(e,this,t)}i(Kg,"AxiosURLSearchParams");var Jg=Kg.prototype;Jg.append=i(function(t,r){this._pairs.push([t,r])},"append");Jg.toString=i(function(t){let r=t?function(n){return t.call(this,n,fg)}:fg;return this._pairs.map(i(function(o){return r(o[0])+"="+r(o[1])},"each"),"").join("&")},"toString");function xD(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}i(xD,"encode");function _l(e,t,r){if(!t)return e;let n=w.isFunction(r)?{serialize:r}:r,o=w.getSafeProp(n,"encode")||xD,a=w.getSafeProp(n,"serialize"),s;if(a?s=a(t,n):s=w.isURLSearchParams(t)?t.toString():new Kg(t,n).toString(o),s){let u=e.indexOf("#");u!==-1&&(e=e.slice(0,u)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}i(_l,"buildURL");var da=class{static{i(this,"InterceptorManager")}constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){w.forEach(this.handlers,i(function(n){n!==null&&t(n)},"forEachHandler"))}},ba={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},_D=lz.URLSearchParams,nl="abcdefghijklmnopqrstuvwxyz",mg="0123456789",Xg={DIGIT:mg,ALPHA:nl,ALPHA_DIGIT:nl+nl.toUpperCase()+mg},PD=i((e=16,t=Xg.ALPHA_DIGIT)=>{let r="",{length:n}=t,o=new Uint32Array(e);uz.randomFillSync(o);for(let a=0;a<e;a++)r+=t[o[a]%n];return r},"generateString"),wD={isNode:!0,classes:{URLSearchParams:_D,FormData:Dg,Blob:typeof Blob<"u"&&Blob||null},ALPHABET:Xg,generateString:PD,protocols:["http","https","file","data"]},Pl=typeof window<"u"&&typeof document<"u",cl=typeof navigator=="object"&&navigator||void 0,ED=Pl&&(!cl||["ReactNative","NativeScript","NS"].indexOf(cl.product)<0),TD=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",kD=Pl&&window.location.href||"http://localhost",SD=Object.freeze({__proto__:null,hasBrowserEnv:Pl,hasStandardBrowserEnv:ED,hasStandardBrowserWebWorkerEnv:TD,navigator:cl,origin:kD}),Fe={...SD,...wD};function AD(e,t){return va(e,new Fe.classes.URLSearchParams,{visitor:i(function(r,n,o,a){return Fe.isNode&&w.isBuffer(r)?(this.append(n,r.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)},"visitor"),...t})}i(AD,"toURLEncodedForm");var hg=Wg;function Yg(e){if(e>hg)throw new C("FormData field is too deeply nested ("+e+" levels). Max depth: "+hg,C.ERR_FORM_DATA_DEPTH_EXCEEDED)}i(Yg,"throwIfDepthExceeded");function ID(e){let t=[],r=/\w+|\[(\w*)]/g,n;for(;(n=r.exec(e))!==null;)Yg(t.length),t.push(n[0]==="[]"?"":n[1]||n[0]);return t}i(ID,"parsePropPath");function OD(e){let t={},r=Object.keys(e),n,o=r.length,a;for(n=0;n<o;n++)a=r[n],t[a]=e[a];return t}i(OD,"arrayToObject");function Qg(e){function t(r,n,o,a){Yg(a);let s=r[a++];if(s==="__proto__")return!0;let u=Number.isFinite(+s),l=a>=r.length;return s=!s&&w.isArray(o)?o.length:s,l?(w.hasOwnProp(o,s)?o[s]=w.isArray(o[s])?o[s].concat(n):[o[s],n]:o[s]=n,!u):((!w.hasOwnProp(o,s)||!w.isObject(o[s]))&&(o[s]=[]),t(r,n,o[s],a)&&w.isArray(o[s])&&(o[s]=OD(o[s])),!u)}if(i(t,"buildPath"),w.isFormData(e)&&w.isFunction(e.entries)){let r={};return w.forEachEntry(e,(n,o)=>{t(ID(n),o,r,0)}),r}return null}i(Qg,"formDataToJSON");var qn=i((e,t)=>e!=null&&w.hasOwnProp(e,t)?e[t]:void 0,"own");function CD(e,t,r){if(w.isString(e))try{return(t||JSON.parse)(e),w.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}i(CD,"stringifySafely");var Yi={transitional:ba,adapter:["xhr","http","fetch"],transformRequest:[i(function(t,r){let n=r.getContentType()||"",o=n.indexOf("application/json")>-1,a=w.isObject(t);if(a&&w.isHTMLForm(t)&&(t=new FormData(t)),w.isFormData(t))return o?JSON.stringify(Qg(t)):t;if(w.isArrayBuffer(t)||w.isBuffer(t)||w.isStream(t)||w.isFile(t)||w.isBlob(t)||w.isReadableStream(t))return t;if(w.isArrayBufferView(t))return t.buffer;if(w.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let u;if(a){let l=qn(this,"formSerializer");if(n.indexOf("application/x-www-form-urlencoded")>-1)return AD(t,l).toString();if((u=w.isFileList(t))||n.indexOf("multipart/form-data")>-1){let p=qn(this,"env"),c=p&&p.FormData;return va(u?{"files[]":t}:t,c&&new c,l)}}return a||o?(r.setContentType("application/json",!1),CD(t)):t},"transformRequest")],transformResponse:[i(function(t){let r=qn(this,"transitional")||Yi.transitional,n=r&&r.forcedJSONParsing,o=qn(this,"responseType"),a=o==="json";if(w.isResponse(t)||w.isReadableStream(t))return t;if(t&&w.isString(t)&&(n&&!o||a)){let u=!(r&&r.silentJSONParsing)&&a;try{return JSON.parse(t,qn(this,"parseReviver"))}catch(l){if(u)throw l.name==="SyntaxError"?C.from(l,C.ERR_BAD_RESPONSE,this,null,qn(this,"response")):l}}return t},"transformResponse")],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Fe.classes.FormData,Blob:Fe.classes.Blob},validateStatus:i(function(t){return t>=200&&t<300},"validateStatus"),headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};w.forEach(["delete","get","head","post","put","patch","query"],e=>{Yi.headers[e]={}});function il(e,t){let r=this||Yi,n=t||r,o=Xe.from(n.headers),a=n.data;return w.forEach(e,i(function(u){a=u.call(r,a,o.normalize(),t?t.status:void 0)},"transform")),o.normalize(),a}i(il,"transformData");function ey(e){return!!(e&&e.__CANCEL__)}i(ey,"isCancel");var Or=class extends C{static{i(this,"CanceledError")}constructor(t,r,n){super(t??"canceled",C.ERR_CANCELED,r,n),this.name="CanceledError",this.__CANCEL__=!0}};function Fn(e,t,r){let n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new C("Request failed with status code "+r.status,r.status>=400&&r.status<500?C.ERR_BAD_REQUEST:C.ERR_BAD_RESPONSE,r.config,r.request,r))}i(Fn,"settle");function RD(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}i(RD,"isAbsoluteURL");function $D(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}i($D,"combineURLs");var zD=/^https?:(?!\/\/)/i,DD=/[\t\n\r]/g;function ND(e){let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t)}i(ND,"stripLeadingC0ControlOrSpace");function UD(e){return ND(e).replace(DD,"")}i(UD,"normalizeURLForProtocolCheck");function gg(e,t){if(typeof e=="string"&&zD.test(UD(e)))throw new C('Invalid URL: missing "//" after protocol',C.ERR_INVALID_URL,t)}i(gg,"assertValidHttpProtocolURL");function wl(e,t,r,n){gg(t,n);let o=!RD(t);return e&&(o||r===!1)?(gg(e,n),$D(e,t)):t}i(wl,"buildFullPath");var LD={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443};function MD(e){try{return new URL(e)}catch{return null}}i(MD,"parseUrl");function qD(e){var t=(typeof e=="string"?MD(e):e)||{},r=t.protocol,n=t.host,o=t.port;if(typeof n!="string"||!n||typeof r!="string"||(r=r.split(":",1)[0],n=n.replace(/:\d*$/,""),o=parseInt(o)||LD[r]||0,!FD(n,o)))return"";var a=pl(r+"_proxy")||pl("all_proxy");return a&&a.indexOf("://")===-1&&(a=r+"://"+a),a}i(qD,"getProxyForUrl");function FD(e,t){var r=pl("no_proxy").toLowerCase();return r?r==="*"?!1:r.split(/[,\s]/).every(function(n){if(!n)return!0;var o=n.match(/^(.+):(\d+)$/),a=o?o[1]:n,s=o?parseInt(o[2]):0;return s&&s!==t?!0:/^[.*]/.test(a)?(a.charAt(0)==="*"&&(a=a.slice(1)),!e.endsWith(a)):e!==a}):!0}i(FD,"shouldProxy");function pl(e){return process.env[e.toLowerCase()]||process.env[e.toUpperCase()]||""}i(pl,"getEnv");var Gi="1.18.0";function ty(e){let t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}i(ty,"parseProtocol");var BD=/^([^,;]+\/[^,;]+)?((?:;[^,;=]+=[^,;]+)*)(;base64)?,([\s\S]*)$/;function jD(e,t,r){let n=r&&r.Blob||Fe.classes.Blob,o=ty(e);if(t===void 0&&n&&(t=!0),o==="data"){e=o.length?e.slice(o.length+1):e;let a=BD.exec(e);if(!a)throw new C("Invalid URL",C.ERR_INVALID_URL);let s=a[1],u=a[2],l=a[3]?"base64":"utf8",p=a[4],c;s?c=u?s+u:s:u&&(c="text/plain"+u);let f=Buffer.from(decodeURIComponent(p),l);if(t){if(!n)throw new C("Blob is not supported",C.ERR_NOT_SUPPORT);return new n([f],{type:c})}return f}throw new C("Unsupported protocol "+o,C.ERR_NOT_SUPPORT)}i(jD,"fromDataURI");var ol=Symbol("internals"),fa=class extends St.Transform{static{i(this,"AxiosTransformStream")}constructor(t){t=w.toFlatObject(t,{maxRate:0,chunkSize:64*1024,minChunkSize:100,timeWindow:500,ticksRate:2,samplesCount:15},null,(n,o)=>!w.isUndefined(o[n])),super({readableHighWaterMark:t.chunkSize});let r=this[ol]={timeWindow:t.timeWindow,chunkSize:t.chunkSize,maxRate:t.maxRate,minChunkSize:t.minChunkSize,bytesSeen:0,isCaptured:!1,notifiedBytesLoaded:0,ts:Date.now(),bytes:0,onReadCallback:null};this.on("newListener",n=>{n==="progress"&&(r.isCaptured||(r.isCaptured=!0))})}_read(t){let r=this[ol];return r.onReadCallback&&r.onReadCallback(),super._read(t)}_transform(t,r,n){let o=this[ol],a=o.maxRate,s=this.readableHighWaterMark,u=o.timeWindow,l=1e3/u,p=a/l,c=o.minChunkSize!==!1?Math.max(o.minChunkSize,p*.01):0,f=i((d,h)=>{let _=Buffer.byteLength(d);o.bytesSeen+=_,o.bytes+=_,o.isCaptured&&this.emit("progress",o.bytesSeen),this.push(d)?process.nextTick(h):o.onReadCallback=()=>{o.onReadCallback=null,process.nextTick(h)}},"pushChunk"),m=i((d,h)=>{let _=Buffer.byteLength(d),v=null,y=s,P,E=0;if(a){let I=Date.now();(!o.ts||(E=I-o.ts)>=u)&&(o.ts=I,P=p-o.bytes,o.bytes=P<0?-P:0,E=0),P=p-o.bytes}if(a){if(P<=0)return setTimeout(()=>{h(null,d)},u-E);P<y&&(y=P)}y&&_>y&&_-y>c&&(v=d.subarray(y),d=d.subarray(0,y)),f(d,v?()=>{process.nextTick(h,null,v)}:h)},"transformChunk");m(t,i(function d(h,_){if(h)return n(h);_?m(_,d):n(null)},"transformNextChunk"))}},{asyncIterator:yg}=Symbol,ry=i(async function*(e){e.stream?yield*e.stream():e.arrayBuffer?yield await e.arrayBuffer():e[yg]?yield*e[yg]():yield e},"readBlob"),VD=Fe.ALPHABET.ALPHA_DIGIT+"-_",Ki=typeof TextEncoder=="function"?new TextEncoder:new yl.TextEncoder,mn=`\r
16
+ `,HD=Ki.encode(mn),ZD=2,dl=class{static{i(this,"FormDataPart")}constructor(t,r){let{escapeName:n}=this.constructor,o=w.isString(r),a=`Content-Disposition: form-data; name="${n(t)}"${!o&&r.name?`; filename="${n(r.name)}"`:""}${mn}`;if(o)r=Ki.encode(String(r).replace(/\r?\n|\r\n?/g,mn));else{let s=String(r.type||"application/octet-stream").replace(/[\r\n]/g,"");a+=`Content-Type: ${s}${mn}`}this.headers=Ki.encode(a+mn),this.contentLength=o?r.byteLength:r.size,this.size=this.headers.byteLength+this.contentLength+ZD,this.name=t,this.value=r}async*encode(){yield this.headers;let{value:t}=this;w.isTypedArray(t)?yield t:yield*ry(t),yield HD}static escapeName(t){return String(t).replace(/[\r\n"]/g,r=>({"\r":"%0D","\n":"%0A",'"':"%22"})[r])}},WD=i((e,t,r)=>{let{tag:n="form-data-boundary",size:o=25,boundary:a=n+"-"+Fe.generateString(o,VD)}=r||{};if(!w.isFormData(e))throw new TypeError("FormData instance required");if(a.length<1||a.length>70)throw new Error("boundary must be 1-70 characters long");let s=Ki.encode("--"+a+mn),u=Ki.encode("--"+a+"--"+mn),l=u.byteLength,p=Array.from(e.entries()).map(([f,m])=>{let d=new dl(f,m);return l+=d.size,d});l+=s.byteLength*p.length,l=w.toFiniteNumber(l);let c={"Content-Type":`multipart/form-data; boundary=${a}`};return Number.isFinite(l)&&(c["Content-Length"]=l),t&&t(c),St.Readable.from((async function*(){for(let f of p)yield s,yield*f.encode();yield u})())},"formDataToStream"),fl=class extends St.Transform{static{i(this,"ZlibHeaderTransformStream")}__transform(t,r,n){this.push(t),n()}_transform(t,r,n){if(t.length!==0&&(this._transform=this.__transform,t[0]!==120)){let o=Buffer.alloc(2);o[0]=120,o[1]=156,this.push(o,r)}this.__transform(t,r,n)}},ml=class{static{i(this,"Http2Sessions")}constructor(){this.sessions=Object.create(null)}getSession(t,r){r=Object.assign({sessionTimeout:1e3},r);let n=this.sessions[t];if(n){let f=n.length;for(let m=0;m<f;m++){let[d,h]=n[m];if(!d.destroyed&&!d.closed&&yl.isDeepStrictEqual(h,r))return d}}let o=Ug.connect(t,r),a,s,u=i(()=>{if(a)return;a=!0,s&&(clearTimeout(s),s=null);let f=n,m=f.length,d=m;for(;d--;)if(f[d][0]===o){m===1?delete this.sessions[t]:f.splice(d,1),o.closed||o.close();return}},"removeSession"),l=o.request,{sessionTimeout:p}=r;if(p!=null){let f=0;o.request=function(){let m=l.apply(this,arguments);return f++,s&&(clearTimeout(s),s=null),m.once("close",()=>{--f||(s=setTimeout(()=>{s=null,u()},p))}),m}}o.once("close",u);let c=[o,r];return n?n.push(c):n=this.sessions[t]=[c],o}},GD=i((e,t)=>w.isAsyncFn(e)?function(...r){let n=r.pop();e.apply(this,r).then(o=>{try{t?n(null,...t(o)):n(null,o)}catch(a){n(a)}},n)}:e,"callbackify"),KD=new Set(["localhost","0.0.0.0"]),ny=i(e=>{let t=e.split(".");return t.length!==4||t[0]!=="127"?!1:t.every(r=>/^\d+$/.test(r)&&Number(r)>=0&&Number(r)<=255)},"isIPv4Loopback"),al=i(e=>/^0{1,4}$/.test(e),"isIPv6ZeroGroup"),JD=i(e=>{if(e==="::")return!0;let t=e.indexOf("::");if(t!==-1){if(t!==e.lastIndexOf("::"))return!1;let n=e.slice(0,t),o=e.slice(t+2),a=n?n.split(":"):[],s=o?o.split(":"):[];return a.length+s.length<8&&a.every(al)&&s.every(al)}let r=e.split(":");return r.length===8&&r.every(al)},"isIPv6Unspecified"),XD=i(e=>{if(e==="::1")return!0;let t=e.match(/^::ffff:(\d+\.\d+\.\d+\.\d+)$/i);if(t)return ny(t[1]);let r=e.match(/^::ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i);if(r){let o=parseInt(r[1],16);return o>=32512&&o<=32767}let n=e.split(":");if(n.length===8){for(let o=0;o<7;o++)if(!/^0+$/.test(n[o]))return!1;return/^0*1$/.test(n[7])}return!1},"isIPv6Loopback"),vg=i(e=>e?KD.has(e)||ny(e)||JD(e)?!0:XD(e):!1,"isLoopback"),YD={http:80,https:443,ws:80,wss:443,ftp:21},QD=i(e=>{let t=e,r=0;if(t.charAt(0)==="["){let a=t.indexOf("]");if(a!==-1){let s=t.slice(1,a),u=t.slice(a+1);return u.charAt(0)===":"&&/^\d+$/.test(u.slice(1))&&(r=Number.parseInt(u.slice(1),10)),[s,r]}}let n=t.indexOf(":"),o=t.lastIndexOf(":");return n!==-1&&n===o&&/^\d+$/.test(t.slice(o+1))&&(r=Number.parseInt(t.slice(o+1),10),t=t.slice(0,o)),[t,r]},"parseNoProxyEntry"),e0=/^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:(\d+\.\d+\.\d+\.\d+)$/i,t0=/^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i,r0=i(e=>{if(typeof e!="string"||e.indexOf(":")===-1)return e;let t=e.match(e0);if(t)return t[1];let r=e.match(t0);if(r){let n=parseInt(r[1],16),o=parseInt(r[2],16);return`${n>>8}.${n&255}.${o>>8}.${o&255}`}return e},"unmapIPv4MappedIPv6"),bg=i(e=>e&&(e.charAt(0)==="["&&e.charAt(e.length-1)==="]"&&(e=e.slice(1,-1)),r0(e.replace(/\.+$/,""))),"normalizeNoProxyHost");function n0(e){let t;try{t=new URL(e)}catch{return!1}let r=(process.env.no_proxy||process.env.NO_PROXY||"").toLowerCase();if(!r)return!1;if(r==="*")return!0;let n=Number.parseInt(t.port,10)||YD[t.protocol.split(":",1)[0]]||0,o=bg(t.hostname.toLowerCase());return r.split(/[\s,]+/).some(a=>{if(!a)return!1;let[s,u]=QD(a);return s=bg(s),!s||u&&u!==n?!1:(s.charAt(0)==="*"&&(s=s.slice(1)),s.charAt(0)==="."?o.endsWith(s):o===s||vg(o)&&vg(s))})}i(n0,"shouldBypassProxy");function i0(e,t){e=e||10;let r=new Array(e),n=new Array(e),o=0,a=0,s;return t=t!==void 0?t:1e3,i(function(l){let p=Date.now(),c=n[a];s||(s=p),r[o]=l,n[o]=p;let f=a,m=0;for(;f!==o;)m+=r[f++],f=f%e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),p-s<t)return;let d=c&&p-c;return d?Math.round(m*1e3/d):void 0},"push")}i(i0,"speedometer");function o0(e,t){let r=0,n=1e3/t,o,a,s=i((p,c=Date.now())=>{r=c,o=null,a&&(clearTimeout(a),a=null),e(...p)},"invoke");return[i((...p)=>{let c=Date.now(),f=c-r;f>=n?s(p,c):(o=p,a||(a=setTimeout(()=>{a=null,s(o)},n-f)))},"throttled"),i(()=>o&&s(o),"flush")]}i(o0,"throttle");var Vn=i((e,t,r=3)=>{let n=0,o=i0(50,250);return o0(a=>{if(!a||typeof a.loaded!="number")return;let s=a.loaded,u=a.lengthComputable?a.total:void 0,l=u!=null?Math.min(s,u):s,p=Math.max(0,l-n),c=o(p);n=Math.max(n,l);let f={loaded:l,total:u,progress:u?l/u:void 0,bytes:p,rate:c||void 0,estimated:c&&u?(u-l)/c:void 0,event:a,lengthComputable:u!=null,[t?"download":"upload"]:!0};e(f)},r)},"progressEventReducer"),ma=i((e,t)=>{let r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},"progressEventDecorator"),ha=i(e=>(...t)=>w.asap(()=>e(...t)),"asyncDecorator"),ga=i(e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,"isHexDigit"),a0=i((e,t,r)=>t+2<r&&ga(e.charCodeAt(t+1))&&ga(e.charCodeAt(t+2)),"isPercentEncodedByte");function iy(e){if(!e||typeof e!="string"||!e.startsWith("data:"))return 0;let t=e.indexOf(",");if(t<0)return 0;let r=e.slice(5,t),n=e.slice(t+1);if(/;base64/i.test(r)){let s=n.length,u=n.length;for(let d=0;d<u;d++)if(n.charCodeAt(d)===37&&d+2<u){let h=n.charCodeAt(d+1),_=n.charCodeAt(d+2);ga(h)&&ga(_)&&(s-=2,d+=2)}let l=0,p=u-1,c=i(d=>d>=2&&n.charCodeAt(d-2)===37&&n.charCodeAt(d-1)===51&&(n.charCodeAt(d)===68||n.charCodeAt(d)===100),"tailIsPct3D");p>=0&&(n.charCodeAt(p)===61?(l++,p--):c(p)&&(l++,p-=3)),l===1&&p>=0&&(n.charCodeAt(p)===61||c(p))&&l++;let m=Math.floor(s/4)*3-(l||0);return m>0?m:0}let a=0;for(let s=0,u=n.length;s<u;s++){let l=n.charCodeAt(s);if(l===37&&a0(n,s,u))a+=1,s+=2;else if(l<128)a+=1;else if(l<2048)a+=2;else if(l>=55296&&l<=56319&&s+1<u){let p=n.charCodeAt(s+1);p>=56320&&p<=57343?(a+=4,s++):a+=3}else a+=3}return a}i(iy,"estimateDataURLDecodedBytes");var xg={flush:Ft.constants.Z_SYNC_FLUSH,finishFlush:Ft.constants.Z_SYNC_FLUSH},s0={flush:Ft.constants.BROTLI_OPERATION_FLUSH,finishFlush:Ft.constants.BROTLI_OPERATION_FLUSH},u0={flush:Ft.constants.ZSTD_e_flush,finishFlush:Ft.constants.ZSTD_e_flush},oy=w.isFunction(Ft.createBrotliDecompress),ay=w.isFunction(Ft.createZstdDecompress),sy="gzip, compress, deflate"+(oy?", br":""),l0=sy+(ay?", zstd":""),{http:c0,https:p0}=dz,uy=/https:?/,d0=["content-type","content-length"];function f0(e,t,r){if(r!=="content-only"){e.set(t);return}Object.entries(t).forEach(([n,o])=>{d0.includes(n.toLowerCase())&&e.set(n,o)})}i(f0,"setFormDataHeaders$1");var _g=Symbol("axios.http.socketListener"),aa=Symbol("axios.http.currentReq"),ly=Symbol("axios.http.installedTunnel"),m0=new Map,Pg=new WeakMap;function h0(e,t){let r=e.protocol+"//"+e.hostname+":"+(e.port||"")+"#"+(e.auth||""),n=t?Pg.get(t)||Pg.set(t,new Map).get(t):m0,o=n.get(r);if(o)return o;let a=t&&t.options?{...t.options,...e}:e;if(o=new Ng(a),t&&t.options){let s={...t.options},u=o.callback;o.callback=i(function(p,c){return u.call(this,p,{...s,...c})},"axiosTunnelingAgentCallback")}return o[ly]=!0,n.set(r,o),o}i(h0,"getTunnelingAgent");var wg=Fe.protocols.map(e=>e+":"),Eg=i(e=>{if(!w.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},"decodeURIComponentSafe$1"),Tg=i((e,[t,r])=>(e.on("end",r).on("error",r),t),"flushOnFinish"),g0=new ml;function y0(e,t,r){e.beforeRedirects.proxy&&e.beforeRedirects.proxy(e),e.beforeRedirects.auth&&e.beforeRedirects.auth(e),e.beforeRedirects.sensitiveHeaders&&e.beforeRedirects.sensitiveHeaders(e,r),e.beforeRedirects.config&&e.beforeRedirects.config(e,t,r)}i(y0,"dispatchBeforeRedirect");function v0(e,t){e&&Object.keys(e).forEach(r=>{t.has(r.toLowerCase())&&delete e[r]})}i(v0,"stripMatchingHeaders");function b0(e,t){if(!t)return!1;try{return new URL(t.url).origin===new URL(e.href).origin}catch{return!1}}i(b0,"isSameOriginRedirect");function cy(e,t,r,n,o){let a=t;if(!a&&a!==!1){let s=qD(r);s&&(n0(r)||(a=new URL(s)))}if(n&&e.headers)for(let s of Object.keys(e.headers))s.toLowerCase()==="proxy-authorization"&&delete e.headers[s];if(n&&e.agent&&e.agent[ly]&&(e.agent=void 0),a){let s=a instanceof URL,u=i(m=>s||w.hasOwnProp(a,m)?a[m]:void 0,"readProxyField"),l=u("username"),p=u("password"),c=w.hasOwnProp(a,"auth")?a.auth:void 0;if(l&&(c=(l||"")+":"+(p||"")),c){let m=typeof c=="object",d=m&&w.hasOwnProp(c,"username")?c.username:void 0,h=m&&w.hasOwnProp(c,"password")?c.password:void 0;if(!!(d||h))c=(d||"")+":"+(h||"");else if(m)throw new C("Invalid proxy authorization",C.ERR_BAD_OPTION,{proxy:a})}if(uy.test(e.protocol)){if(!(o instanceof Ng)){let m=u("hostname")||u("host"),d=u("port"),h=u("protocol"),_=h?h.includes(":")?h:`${h}:`:"http:",v=m&&m.includes(":")&&!m.startsWith("[")?`[${m}]`:m,y=new URL(`${_}//${v}${d?":"+d:""}`),P={protocol:y.protocol,hostname:y.hostname.replace(/^\[|\]$/g,""),port:y.port,auth:c&&typeof c=="string"?c:void 0};y.protocol==="https:"&&(P.ALPNProtocols=["http/1.1"]);let E=h0(P,o);e.agent=E,e.agents&&(e.agents.https=E)}}else{if(c){let _=Buffer.from(c,"utf8").toString("base64");e.headers["Proxy-Authorization"]="Basic "+_}let m=!1;for(let _ of Object.keys(e.headers))if(_.toLowerCase()==="host"){m=!0;break}m||(e.headers.host=e.hostname+(e.port?":"+e.port:""));let d=u("hostname")||u("host");e.hostname=d,e.host=d,e.port=u("port"),e.path=r;let h=u("protocol");h&&(e.protocol=h.includes(":")?h:`${h}:`)}}e.beforeRedirects.proxy=i(function(u){cy(u,t,u.href,!0,o)},"beforeRedirect")}i(cy,"setProxy");var x0=typeof process<"u"&&w.kindOf(process)==="process",_0=i(e=>new Promise((t,r)=>{let n,o,a=i((l,p)=>{o||(o=!0,n&&n(l,p))},"done"),s=i(l=>{a(l),t(l)},"_resolve"),u=i(l=>{a(l,!0),r(l)},"_reject");e(s,u,l=>n=l).catch(u)}),"wrapAsync"),P0=i(({address:e,family:t})=>{if(!w.isString(e))throw TypeError("address must be a string");return{address:e,family:t||(e.indexOf(".")<0?6:4)}},"resolveFamily"),kg=i((e,t)=>P0(w.isObject(e)?e:{address:e,family:t}),"buildAddressEntry"),w0={request(e,t){let r=e.protocol+"//"+e.hostname+":"+(e.port||(e.protocol==="https:"?443:80)),{http2Options:n,headers:o}=e,a=g0.getSession(r,n),{HTTP2_HEADER_SCHEME:s,HTTP2_HEADER_METHOD:u,HTTP2_HEADER_PATH:l,HTTP2_HEADER_STATUS:p}=Ug.constants,c={[s]:e.protocol.replace(":",""),[u]:e.method,[l]:e.path};w.forEach(o,(m,d)=>{d.charAt(0)!==":"&&(c[d]=m)});let f=a.request(c);return f.once("response",m=>{let d=f;m=Object.assign({},m);let h=m[p];delete m[p],d.headers=m,d.statusCode=+h,t(d)}),f}},E0=x0&&i(function(t){return _0(i(async function(n,o,a){let s=i(z=>w.getSafeProp(t,z),"own"),u=s("transitional")||ba,l=s("data"),p=s("lookup"),c=s("family"),f=s("httpVersion");f===void 0&&(f=1);let m=s("http2Options"),d=s("responseType"),h=s("responseEncoding"),_=s("httpAgent"),v=s("httpsAgent"),y=s("method").toUpperCase(),P=s("maxRedirects"),E=s("maxBodyLength"),I=s("maxContentLength"),M=s("decompress"),D,F=!1,L,G;if(f=+f,Number.isNaN(f))throw TypeError(`Invalid protocol version: '${t.httpVersion}' is not a number`);if(f!==1&&f!==2)throw TypeError(`Unsupported protocol version '${f}'`);let V=f===2;if(p){let z=GD(p,U=>w.isArray(U)?U:[U]);p=i((U,ie,ye)=>{z(U,ie,(ce,je,Re)=>{if(ce)return ye(ce);let Ne=w.isArray(je)?je.map(Lr=>kg(Lr)):[kg(je,Re)];ie.all?ye(ce,Ne):ye(ce,Ne[0].address,Ne[0].family)})},"lookup")}let $=new fz.EventEmitter;function q(z){try{$.emit("abort",!z||z.type?new Or(null,t,L):z)}catch{}}i(q,"abort");function le(){G&&(clearTimeout(G),G=null)}i(le,"clearConnectPhaseTimer");function Y(){let z=s("timeout"),U=z?"timeout of "+z+"ms exceeded":"timeout exceeded",ie=s("timeoutErrorMessage");return ie&&(U=ie),new C(U,u.clarifyTimeoutError?C.ETIMEDOUT:C.ECONNABORTED,t,L)}i(Y,"createTimeoutError"),$.once("abort",o);let Le=i(()=>{le(),t.cancelToken&&t.cancelToken.unsubscribe(q),t.signal&&t.signal.removeEventListener("abort",q),$.removeAllListeners()},"onFinished");(t.cancelToken||t.signal)&&(t.cancelToken&&t.cancelToken.subscribe(q),t.signal&&(t.signal.aborted?q():t.signal.addEventListener("abort",q))),a((z,U)=>{if(D=!0,le(),U){F=!0,Le();return}let{data:ie}=z;if(ie instanceof St.Readable||ie instanceof St.Duplex){let ye=St.finished(ie,()=>{ye(),Le()})}else Le()});let Me=wl(s("baseURL"),s("url"),s("allowAbsoluteUrls"),t),k=new URL(Me,Fe.hasBrowserEnv?Fe.origin:void 0),xe=k.protocol||wg[0];if(xe==="data:"){if(I>-1){let U=String(s("url")||Me||"");if(iy(U)>I)return o(new C("maxContentLength size of "+I+" exceeded",C.ERR_BAD_RESPONSE,t))}let z;if(y!=="GET")return Fn(n,o,{status:405,statusText:"method not allowed",headers:{},config:t});try{z=jD(s("url"),d==="blob",{Blob:t.env&&t.env.Blob})}catch(U){throw C.from(U,C.ERR_BAD_REQUEST,t)}return d==="text"?(z=z.toString(h),(!h||h==="utf8")&&(z=w.stripBOM(z))):d==="stream"&&(z=St.Readable.from(z)),Fn(n,o,{data:z,status:200,statusText:"OK",headers:new Xe,config:t})}if(wg.indexOf(xe)===-1)return o(new C("Unsupported protocol "+xe,C.ERR_BAD_REQUEST,t));let Pe=Xe.from(t.headers).normalize();Pe.set("User-Agent","axios/"+Gi,!1);let{onUploadProgress:we,onDownloadProgress:g}=t,ct=t.maxRate,ft,Pt;if(w.isSpecCompliantForm(l)){let z=Pe.getContentType(/boundary=([-_\w\d]{10,70})/i);l=WD(l,U=>{Pe.set(U)},{tag:`axios-${Gi}-boundary`,boundary:z&&z[1]||void 0})}else if(w.isFormData(l)&&w.isFunction(l.getHeaders)&&l.getHeaders!==Object.prototype.getHeaders){if(f0(Pe,l.getHeaders(),s("formDataHeaderPolicy")),!Pe.hasContentLength())try{let z=await yl.promisify(l.getLength).call(l);Number.isFinite(z)&&z>=0&&Pe.setContentLength(z)}catch{}}else if(w.isBlob(l)||w.isFile(l))l.size&&Pe.setContentType(l.type||"application/octet-stream"),Pe.setContentLength(l.size||0),l=St.Readable.from(ry(l));else if(l&&!w.isStream(l)){if(!Buffer.isBuffer(l))if(w.isArrayBuffer(l))l=Buffer.from(new Uint8Array(l));else if(w.isString(l))l=Buffer.from(l,"utf-8");else return o(new C("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",C.ERR_BAD_REQUEST,t));if(Pe.setContentLength(l.length,!1),E>-1&&l.length>E)return o(new C("Request body larger than maxBodyLength limit",C.ERR_BAD_REQUEST,t))}let xr=w.toFiniteNumber(Pe.getContentLength());w.isArray(ct)?(ft=ct[0],Pt=ct[1]):ft=Pt=ct,l&&(we||ft)&&(w.isStream(l)||(l=St.Readable.from(l,{objectMode:!1})),l=St.pipeline([l,new fa({maxRate:w.toFiniteNumber(ft)})],w.noop),we&&l.on("progress",Tg(l,ma(xr,Vn(ha(we),!1,3)))));let H,pt=s("auth");if(pt){let z=w.getSafeProp(pt,"username")||"",U=w.getSafeProp(pt,"password")||"";H=z+":"+U}if(!H&&(k.username||k.password)){let z=Eg(k.username),U=Eg(k.password);H=z+":"+U}H&&Pe.delete("authorization");let Kt;try{Kt=_l(k.pathname+k.search,s("params"),s("paramsSerializer")).replace(/^\?/,"")}catch(z){let U=new Error(z.message);return U.config=t,U.url=s("url"),U.exists=!0,o(U)}Pe.set("Accept-Encoding",w.hasOwnProp(u,"advertiseZstdAcceptEncoding")&&u.advertiseZstdAcceptEncoding===!0?l0:sy,!1);let Ce=Object.assign(Object.create(null),{path:Kt,method:y,headers:xl(Pe),agents:{http:_,https:v},auth:H,protocol:xe,family:c,beforeRedirect:y0,beforeRedirects:Object.create(null),http2Options:m});!w.isUndefined(p)&&(Ce.lookup=p);let _r=s("socketPath");if(_r){if(typeof _r!="string")return o(new C("socketPath must be a string",C.ERR_BAD_OPTION_VALUE,t));let z=s("allowedSocketPaths");if(z!=null){let U=Array.isArray(z)?z:[z],ie=lg.resolve(_r);if(!U.some(ce=>typeof ce=="string"&&lg.resolve(ce)===ie))return o(new C(`socketPath "${_r}" is not permitted by allowedSocketPaths`,C.ERR_BAD_OPTION_VALUE,t))}Ce.socketPath=_r}else Ce.hostname=k.hostname.startsWith("[")?k.hostname.slice(1,-1):k.hostname,Ce.port=k.port,cy(Ce,s("proxy"),xe+"//"+k.hostname+(k.port?":"+k.port:"")+Ce.path,!1,v);let ir,wt=!1,Qr=!1,or=uy.test(Ce.protocol);if(Ce.agent==null&&(Ce.agent=or?v:_),V)ir=w0;else{let z=s("transport");if(z)ir=z;else if(P===0)ir=or?pz:cz,wt=!0;else{Qr=!0,Ce.sensitiveHeaders=[],P&&(Ce.maxRedirects=P);let U=s("beforeRedirect");if(U&&(Ce.beforeRedirects.config=U),H){let ye=k.origin,ce=H;Ce.beforeRedirects.auth=i(function(Re){try{new URL(Re.href).origin===ye&&(Re.auth=ce)}catch{}},"beforeRedirectAuth")}let ie=s("sensitiveHeaders");if(ie!=null){if(!w.isArray(ie))return o(new C("sensitiveHeaders must be an array of strings",C.ERR_BAD_OPTION_VALUE,t));let ye=new Set;for(let ce of ie){if(!w.isString(ce))return o(new C("sensitiveHeaders must be an array of strings",C.ERR_BAD_OPTION_VALUE,t));ye.add(ce.toLowerCase())}ye.size&&(Ce.sensitiveHeaders=Array.from(ye),Ce.beforeRedirects.sensitiveHeaders=i(function(je,Re){b0(je,Re)||v0(je.headers,ye)},"beforeRedirectSensitiveHeaders"))}ir=or?p0:c0}}E>-1?Ce.maxBodyLength=E:Ce.maxBodyLength=1/0,Ce.insecureHTTPParser=!!s("insecureHTTPParser"),L=ir.request(Ce,i(function(U){if(le(),L.destroyed)return;let ie=[U],ye=w.toFiniteNumber(U.headers["content-length"]);if(g||Pt){let Ne=new fa({maxRate:w.toFiniteNumber(Pt)});g&&Ne.on("progress",Tg(Ne,ma(ye,Vn(ha(g),!0,3)))),ie.push(Ne)}let ce=U,je=U.req||L;if(M!==!1&&U.headers["content-encoding"])switch((y==="HEAD"||U.statusCode===204)&&delete U.headers["content-encoding"],(U.headers["content-encoding"]||"").toLowerCase()){case"gzip":case"x-gzip":case"compress":case"x-compress":ie.push(Ft.createUnzip(xg)),delete U.headers["content-encoding"];break;case"deflate":ie.push(new fl),ie.push(Ft.createUnzip(xg)),delete U.headers["content-encoding"];break;case"br":oy&&(ie.push(Ft.createBrotliDecompress(s0)),delete U.headers["content-encoding"]);break;case"zstd":ay&&(ie.push(Ft.createZstdDecompress(u0)),delete U.headers["content-encoding"]);break}ce=ie.length>1?St.pipeline(ie,w.noop):ie[0];let Re={status:U.statusCode,statusText:U.statusMessage,headers:new Xe(U.headers),config:t,request:je};if(d==="stream"){if(I>-1){let Ne=I,Lr=ce;async function*en(){let et=0;for await(let bo of Lr){if(et+=bo.length,et>Ne)throw new C("maxContentLength size of "+Ne+" exceeded",C.ERR_BAD_RESPONSE,t,je);yield bo}}i(en,"enforceMaxContentLength"),ce=St.Readable.from(en(),{objectMode:!1})}Re.data=ce,Fn(n,o,Re)}else{let Ne=[],Lr=0;ce.on("data",i(function(et){Ne.push(et),Lr+=et.length,I>-1&&Lr>I&&(F=!0,ce.destroy(),q(new C("maxContentLength size of "+I+" exceeded",C.ERR_BAD_RESPONSE,t,je)))},"handleStreamData")),ce.on("aborted",i(function(){if(F)return;let et=new C("stream has been aborted",C.ERR_BAD_RESPONSE,t,je,Re);ce.destroy(et),o(et)},"handlerStreamAborted")),ce.on("error",i(function(et){F||o(C.from(et,null,t,je,Re))},"handleStreamError")),ce.on("end",i(function(){try{let et=Ne.length===1?Ne[0]:Buffer.concat(Ne);d!=="arraybuffer"&&(et=et.toString(h),(!h||h==="utf8")&&(et=w.stripBOM(et))),Re.data=et}catch(et){return o(C.from(et,null,t,Re.request,Re))}Fn(n,o,Re)},"handleStreamEnd"))}$.once("abort",Ne=>{ce.destroyed||(ce.emit("error",Ne),ce.destroy())})},"handleResponse")),$.once("abort",z=>{L.close?L.close():L.destroy(z)}),L.on("error",i(function(U){o(C.from(U,null,t,L))},"handleRequestError"));let vt=new Set;if(L.on("socket",i(function(U){U.setKeepAlive(!0,1e3*60),U[_g]||(U.on("error",i(function(ye){let ce=U[aa];ce&&!ce.destroyed&&ce.destroy(ye)},"handleSocketError")),U[_g]=!0),U[aa]=L,vt.add(U)},"handleRequestSocket")),L.once("close",i(function(){le();for(let U of vt)U[aa]===L&&(U[aa]=null);vt.clear()},"clearCurrentReq")),s("timeout")){let z=parseInt(s("timeout"),10);if(Number.isNaN(z)){q(new C("error trying to parse `config.timeout` to int",C.ERR_BAD_OPTION_VALUE,t,L));return}let U=i(function(){D||q(Y())},"handleTimeout");wt&&z>0&&(G=setTimeout(U,z)),L.setTimeout(z,U)}else L.setTimeout(0);if(w.isStream(l)){let z=!1,U=!1;l.on("end",()=>{z=!0}),l.once("error",ye=>{U=!0,L.destroy(ye)}),l.on("close",()=>{!z&&!U&&q(new Or("Request stream has been aborted",t,L))});let ie=l;if(E>-1&&!Qr){let ye=E,ce=0;ie=St.pipeline([l,new St.Transform({transform(je,Re,Ne){if(ce+=je.length,ce>ye)return Ne(new C("Request body larger than maxBodyLength limit",C.ERR_BAD_REQUEST,t,L));Ne(null,je)}})],w.noop),ie.on("error",je=>{L.destroyed||L.destroy(je)})}ie.pipe(L)}else l&&L.write(l),L.end()},"dispatchHttpRequest"))},"httpAdapter"),T0=Fe.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,Fe.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(Fe.origin),Fe.navigator&&/(msie|trident)/i.test(Fe.navigator.userAgent)):()=>!0,k0=Fe.hasStandardBrowserEnv?{write(e,t,r,n,o,a,s){if(typeof document>"u")return;let u=[`${e}=${encodeURIComponent(t)}`];w.isNumber(r)&&u.push(`expires=${new Date(r).toUTCString()}`),w.isString(n)&&u.push(`path=${n}`),w.isString(o)&&u.push(`domain=${o}`),a===!0&&u.push("secure"),w.isString(s)&&u.push(`SameSite=${s}`),document.cookie=u.join("; ")},read(e){if(typeof document>"u")return null;let t=document.cookie.split(";");for(let r=0;r<t.length;r++){let n=t[r].replace(/^\s+/,""),o=n.indexOf("=");if(o!==-1&&n.slice(0,o)===e)return decodeURIComponent(n.slice(o+1))}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}},Sg=i(e=>e instanceof Xe?{...e}:e,"headersToObject");function gn(e,t){t=t||{};let r=Object.create(null);Object.defineProperty(r,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function n(c,f,m,d){return w.isPlainObject(c)&&w.isPlainObject(f)?w.merge.call({caseless:d},c,f):w.isPlainObject(f)?w.merge({},f):w.isArray(f)?f.slice():f}i(n,"getMergedValue");function o(c,f,m,d){if(w.isUndefined(f)){if(!w.isUndefined(c))return n(void 0,c,m,d)}else return n(c,f,m,d)}i(o,"mergeDeepProperties");function a(c,f){if(!w.isUndefined(f))return n(void 0,f)}i(a,"valueFromConfig2");function s(c,f){if(w.isUndefined(f)){if(!w.isUndefined(c))return n(void 0,c)}else return n(void 0,f)}i(s,"defaultToConfig2");function u(c){let f=w.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!w.isUndefined(f))if(w.isPlainObject(f)){if(w.hasOwnProp(f,c))return f[c]}else return;let m=w.hasOwnProp(e,"transitional")?e.transitional:void 0;if(w.isPlainObject(m)&&w.hasOwnProp(m,c))return m[c]}i(u,"getMergedTransitionalOption");function l(c,f,m){if(w.hasOwnProp(t,m))return n(c,f);if(w.hasOwnProp(e,m))return n(void 0,c)}i(l,"mergeDirectKeys");let p={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,allowedSocketPaths:s,responseEncoding:s,validateStatus:l,headers:i((c,f,m)=>o(Sg(c),Sg(f),m,!0),"headers")};return w.forEach(Object.keys({...e,...t}),i(function(f){if(f==="__proto__"||f==="constructor"||f==="prototype")return;let m=w.hasOwnProp(p,f)?p[f]:o,d=w.hasOwnProp(e,f)?e[f]:void 0,h=w.hasOwnProp(t,f)?t[f]:void 0,_=m(d,h,f);w.isUndefined(_)&&m!==l||(r[f]=_)},"computeConfigValue")),w.hasOwnProp(t,"validateStatus")&&w.isUndefined(t.validateStatus)&&u("validateStatusUndefinedResolves")===!1&&(w.hasOwnProp(e,"validateStatus")?r.validateStatus=n(void 0,e.validateStatus):delete r.validateStatus),r}i(gn,"mergeConfig");var S0=["content-type","content-length"];function A0(e,t,r){if(r!=="content-only"){e.set(t);return}Object.entries(t).forEach(([n,o])=>{S0.includes(n.toLowerCase())&&e.set(n,o)})}i(A0,"setFormDataHeaders");var I0=i(e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,r)=>String.fromCharCode(parseInt(r,16))),"encodeUTF8$1");function py(e){let t=gn({},e),r=i(m=>w.hasOwnProp(t,m)?t[m]:void 0,"own"),n=r("data"),o=r("withXSRFToken"),a=r("xsrfHeaderName"),s=r("xsrfCookieName"),u=r("headers"),l=r("auth"),p=r("baseURL"),c=r("allowAbsoluteUrls"),f=r("url");if(t.headers=u=Xe.from(u),t.url=_l(wl(p,f,c,t),r("params"),r("paramsSerializer")),l){let m=w.getSafeProp(l,"username")||"",d=w.getSafeProp(l,"password")||"";u.set("Authorization","Basic "+btoa(m+":"+(d?I0(d):"")))}if(w.isFormData(n)&&(Fe.hasStandardBrowserEnv||Fe.hasStandardBrowserWebWorkerEnv||w.isReactNative(n)?u.setContentType(void 0):w.isFunction(n.getHeaders)&&A0(u,n.getHeaders(),r("formDataHeaderPolicy"))),Fe.hasStandardBrowserEnv&&(w.isFunction(o)&&(o=o(t)),o===!0||o==null&&T0(t.url))){let d=a&&s&&k0.read(s);d&&u.set(a,d)}return t}i(py,"resolveConfig");var O0=typeof XMLHttpRequest<"u",C0=O0&&function(e){return new Promise(i(function(r,n){let o=py(e),a=o.data,s=Xe.from(o.headers).normalize(),{responseType:u,onUploadProgress:l,onDownloadProgress:p}=o,c,f,m,d,h;function _(){d&&d(),h&&h(),o.cancelToken&&o.cancelToken.unsubscribe(c),o.signal&&o.signal.removeEventListener("abort",c)}i(_,"done");let v=new XMLHttpRequest;v.open(o.method.toUpperCase(),o.url,!0),v.timeout=o.timeout;function y(){if(!v)return;let E=Xe.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),M={data:!u||u==="text"||u==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:E,config:e,request:v};Fn(i(function(F){r(F),_()},"_resolve"),i(function(F){n(F),_()},"_reject"),M),v=null}i(y,"onloadend"),"onloadend"in v?v.onloadend=y:v.onreadystatechange=i(function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.startsWith("file:"))||setTimeout(y)},"handleLoad"),v.onabort=i(function(){v&&(n(new C("Request aborted",C.ECONNABORTED,e,v)),_(),v=null)},"handleAbort"),v.onerror=i(function(I){let M=I&&I.message?I.message:"Network Error",D=new C(M,C.ERR_NETWORK,e,v);D.event=I||null,n(D),_(),v=null},"handleError"),v.ontimeout=i(function(){let I=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded",M=o.transitional||ba;o.timeoutErrorMessage&&(I=o.timeoutErrorMessage),n(new C(I,M.clarifyTimeoutError?C.ETIMEDOUT:C.ECONNABORTED,e,v)),_(),v=null},"handleTimeout"),a===void 0&&s.setContentType(null),"setRequestHeader"in v&&w.forEach(xl(s),i(function(I,M){v.setRequestHeader(M,I)},"setRequestHeader")),w.isUndefined(o.withCredentials)||(v.withCredentials=!!o.withCredentials),u&&u!=="json"&&(v.responseType=o.responseType),p&&([m,h]=Vn(p,!0),v.addEventListener("progress",m)),l&&v.upload&&([f,d]=Vn(l),v.upload.addEventListener("progress",f),v.upload.addEventListener("loadend",d)),(o.cancelToken||o.signal)&&(c=i(E=>{v&&(n(!E||E.type?new Or(null,e,v):E),v.abort(),_(),v=null)},"onCanceled"),o.cancelToken&&o.cancelToken.subscribe(c),o.signal&&(o.signal.aborted?c():o.signal.addEventListener("abort",c)));let P=ty(o.url);if(P&&!Fe.protocols.includes(P)){n(new C("Unsupported protocol "+P+":",C.ERR_BAD_REQUEST,e));return}v.send(a||null)},"dispatchXhrRequest"))},R0=i((e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;let r=new AbortController,n=!1,o=i(function(l){if(!n){n=!0,s();let p=l instanceof Error?l:this.reason;r.abort(p instanceof C?p:new Or(p instanceof Error?p.message:p))}},"onabort"),a=t&&setTimeout(()=>{a=null,o(new C(`timeout of ${t}ms exceeded`,C.ETIMEDOUT))},t),s=i(()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(l=>{l.unsubscribe?l.unsubscribe(o):l.removeEventListener("abort",o)}),e=null)},"unsubscribe");e.forEach(l=>l.addEventListener("abort",o));let{signal:u}=r;return u.unsubscribe=()=>w.asap(s),u},"composeSignals"),$0=i(function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let n=0,o;for(;n<r;)o=n+t,yield e.slice(n,o),n=o},"streamChunk"),z0=i(async function*(e,t){for await(let r of D0(e))yield*$0(r,t)},"readBytes"),D0=i(async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}let t=e.getReader();try{for(;;){let{done:r,value:n}=await t.read();if(r)break;yield n}}finally{await t.cancel()}},"readStream"),Ag=i((e,t,r,n)=>{let o=z0(e,t),a=0,s,u=i(l=>{s||(s=!0,n&&n(l))},"_onFinish");return new ReadableStream({async pull(l){try{let{done:p,value:c}=await o.next();if(p){u(),l.close();return}let f=c.byteLength;if(r){let m=a+=f;r(m)}l.enqueue(new Uint8Array(c))}catch(p){throw u(p),p}},cancel(l){return u(l),o.return()}},{highWaterMark:2})},"trackStream"),Ig=64*1024,{isFunction:sa}=w,N0=i(e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,r)=>String.fromCharCode(parseInt(r,16))),"encodeUTF8"),Og=i(e=>{if(!w.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},"decodeURIComponentSafe"),Cg=i((e,...t)=>{try{return!!e(...t)}catch{return!1}},"test"),U0=i(e=>{let t=e.indexOf("://"),r=e;return t!==-1&&(r=r.slice(t+3)),r.includes("@")||r.includes(":")},"maybeWithAuthCredentials"),L0=i(e=>{let t=w.global!==void 0&&w.global!==null?w.global:globalThis,{ReadableStream:r,TextEncoder:n}=t;e=w.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);let{fetch:o,Request:a,Response:s}=e,u=o?sa(o):typeof fetch=="function",l=sa(a),p=sa(s);if(!u)return!1;let c=u&&sa(r),f=u&&(typeof n=="function"?(y=>P=>y.encode(P))(new n):async y=>new Uint8Array(await new a(y).arrayBuffer())),m=l&&c&&Cg(()=>{let y=!1,P=new a(Fe.origin,{body:new r,method:"POST",get duplex(){return y=!0,"half"}}),E=P.headers.has("Content-Type");return P.body!=null&&P.body.cancel(),y&&!E}),d=p&&c&&Cg(()=>w.isReadableStream(new s("").body)),h={stream:d&&(y=>y.body)};u&&["text","arrayBuffer","blob","formData","stream"].forEach(y=>{!h[y]&&(h[y]=(P,E)=>{let I=P&&P[y];if(I)return I.call(P);throw new C(`Response type '${y}' is not supported`,C.ERR_NOT_SUPPORT,E)})});let _=i(async y=>{if(y==null)return 0;if(w.isBlob(y))return y.size;if(w.isSpecCompliantForm(y))return(await new a(Fe.origin,{method:"POST",body:y}).arrayBuffer()).byteLength;if(w.isArrayBufferView(y)||w.isArrayBuffer(y))return y.byteLength;if(w.isURLSearchParams(y)&&(y=y+""),w.isString(y))return(await f(y)).byteLength},"getBodyLength"),v=i(async(y,P)=>{let E=w.toFiniteNumber(y.getContentLength());return E??_(P)},"resolveBodyLength");return async y=>{let{url:P,method:E,data:I,signal:M,cancelToken:D,timeout:F,onDownloadProgress:L,onUploadProgress:G,responseType:V,headers:$,withCredentials:q="same-origin",fetchOptions:le,maxContentLength:Y,maxBodyLength:Le}=py(y),Me=w.isNumber(Y)&&Y>-1,k=w.isNumber(Le)&&Le>-1,xe=i(H=>w.hasOwnProp(y,H)?y[H]:void 0,"own"),Pe=o||fetch;V=V?(V+"").toLowerCase():"text";let we=R0([M,D&&D.toAbortSignal()],F),g=null,ct=we&&we.unsubscribe&&(()=>{we.unsubscribe()}),ft,Pt=null,xr=i(()=>new C("Request body larger than maxBodyLength limit",C.ERR_BAD_REQUEST,y,g),"maxBodyLengthError");try{let H,pt=xe("auth");if(pt){let z=w.getSafeProp(pt,"username")||"",U=w.getSafeProp(pt,"password")||"";H={username:z,password:U}}if(U0(P)){let z=new URL(P,Fe.origin);if(!H&&(z.username||z.password)){let U=Og(z.username),ie=Og(z.password);H={username:U,password:ie}}(z.username||z.password)&&(z.username="",z.password="",P=z.href)}if(H&&($.delete("authorization"),$.set("Authorization","Basic "+btoa(N0((H.username||"")+":"+(H.password||""))))),Me&&typeof P=="string"&&P.startsWith("data:")&&iy(P)>Y)throw new C("maxContentLength size of "+Y+" exceeded",C.ERR_BAD_RESPONSE,y,g);if(k&&E!=="get"&&E!=="head"){let z=await _(I);if(typeof z=="number"&&isFinite(z)&&(ft=z,z>Le))throw xr()}let Kt=k&&(w.isReadableStream(I)||w.isStream(I)),Ce=i((z,U,ie)=>Ag(z,Ig,ye=>{if(k&&ye>Le)throw Pt=xr();U&&U(ye)},ie),"trackRequestStream");if(m&&E!=="get"&&E!=="head"&&(G||Kt)){if(ft=ft??await v($,I),ft!==0||Kt){let z=new a(P,{method:"POST",body:I,duplex:"half"}),U;if(w.isFormData(I)&&(U=z.headers.get("content-type"))&&$.setContentType(U),z.body){let[ie,ye]=G&&ma(ft,Vn(ha(G)))||[];I=Ce(z.body,ie,ye)}}}else if(Kt&&!l&&c&&E!=="get"&&E!=="head")I=Ce(I);else if(Kt&&l&&!m&&E!=="get"&&E!=="head")throw new C("Stream request bodies are not supported by the current fetch implementation",C.ERR_NOT_SUPPORT,y,g);w.isString(q)||(q=q?"include":"omit");let _r=l&&"credentials"in a.prototype;if(w.isFormData(I)){let z=$.getContentType();z&&/^multipart\/form-data/i.test(z)&&!/boundary=/i.test(z)&&$.delete("content-type")}$.set("User-Agent","axios/"+Gi,!1);let ir={...le,signal:we,method:E.toUpperCase(),headers:xl($.normalize()),body:I,duplex:"half",credentials:_r?q:void 0};g=l&&new a(P,ir);let wt=await(l?Pe(g,le):Pe(P,ir)),Qr=Xe.from(wt.headers);if(Me){let z=w.toFiniteNumber(Qr.getContentLength());if(z!=null&&z>Y)throw new C("maxContentLength size of "+Y+" exceeded",C.ERR_BAD_RESPONSE,y,g)}let or=d&&(V==="stream"||V==="response");if(d&&wt.body&&(L||Me||or&&ct)){let z={};["status","statusText","headers"].forEach(Re=>{z[Re]=wt[Re]});let U=w.toFiniteNumber(Qr.getContentLength()),[ie,ye]=L&&ma(U,Vn(ha(L),!0))||[],ce=0,je=i(Re=>{if(Me&&(ce=Re,ce>Y))throw new C("maxContentLength size of "+Y+" exceeded",C.ERR_BAD_RESPONSE,y,g);ie&&ie(Re)},"onChunkProgress");wt=new s(Ag(wt.body,Ig,je,()=>{ye&&ye(),ct&&ct()}),z)}V=V||"text";let vt=await h[w.findKey(h,V)||"text"](wt,y);if(Me&&!d&&!or){let z;if(vt!=null&&(typeof vt.byteLength=="number"?z=vt.byteLength:typeof vt.size=="number"?z=vt.size:typeof vt=="string"&&(z=typeof n=="function"?new n().encode(vt).byteLength:vt.length)),typeof z=="number"&&z>Y)throw new C("maxContentLength size of "+Y+" exceeded",C.ERR_BAD_RESPONSE,y,g)}return!or&&ct&&ct(),await new Promise((z,U)=>{Fn(z,U,{data:vt,headers:Xe.from(wt.headers),status:wt.status,statusText:wt.statusText,config:y,request:g})})}catch(H){if(ct&&ct(),we&&we.aborted&&we.reason instanceof C){let pt=we.reason;throw pt.config=y,g&&(pt.request=g),H!==pt&&(pt.cause=H),pt}throw Pt?(g&&!Pt.request&&(Pt.request=g),Pt):H instanceof C?(g&&!H.request&&(H.request=g),H):H&&H.name==="TypeError"&&/Load failed|fetch/i.test(H.message)?Object.assign(new C("Network Error",C.ERR_NETWORK,y,g,H&&H.response),{cause:H.cause||H}):C.from(H,H&&H.code,y,g,H&&H.response)}}},"factory"),M0=new Map,dy=i(e=>{let t=e&&e.env||{},{fetch:r,Request:n,Response:o}=t,a=[n,o,r],s=a.length,u=s,l,p,c=M0;for(;u--;)l=a[u],p=c.get(l),p===void 0&&c.set(l,p=u?new Map:L0(t)),c=p;return p},"getFetch");dy();var El={http:E0,xhr:C0,fetch:{get:dy}};w.forEach(El,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});var Rg=i(e=>`- ${e}`,"renderReason"),q0=i(e=>w.isFunction(e)||e===null||e===!1,"isResolvedHandle");function F0(e,t){e=w.isArray(e)?e:[e];let{length:r}=e,n,o,a={};for(let s=0;s<r;s++){n=e[s];let u;if(o=n,!q0(n)&&(o=El[(u=String(n)).toLowerCase()],o===void 0))throw new C(`Unknown adapter '${u}'`);if(o&&(w.isFunction(o)||(o=o.get(t))))break;a[u||"#"+s]=o}if(!o){let s=Object.entries(a).map(([l,p])=>`adapter ${l} `+(p===!1?"is not supported by the environment":"is not available in the build")),u=r?s.length>1?`since :
17
+ `+s.map(Rg).join(`
18
+ `):" "+Rg(s[0]):"as no adapter specified";throw new C("There is no suitable adapter to dispatch the request "+u,"ERR_NOT_SUPPORT")}return o}i(F0,"getAdapter");var fy={getAdapter:F0,adapters:El};function sl(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Or(null,e)}i(sl,"throwIfCancellationRequested");function $g(e){return sl(e),e.headers=Xe.from(e.headers),e.data=il.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),fy.getAdapter(e.adapter||Yi.adapter,e)(e).then(i(function(n){sl(e),e.response=n;try{n.data=il.call(e,e.transformResponse,n)}finally{delete e.response}return n.headers=Xe.from(n.headers),n},"onAdapterResolution"),i(function(n){if(!ey(n)&&(sl(e),n&&n.response)){e.response=n.response;try{n.response.data=il.call(e,e.transformResponse,n.response)}finally{delete e.response}n.response.headers=Xe.from(n.response.headers)}return Promise.reject(n)},"onAdapterRejection"))}i($g,"dispatchRequest");var xa={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{xa[e]=i(function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e},"validator")});var zg={};xa.transitional=i(function(t,r,n){function o(a,s){return"[Axios v"+Gi+"] Transitional option '"+a+"'"+s+(n?". "+n:"")}return i(o,"formatMessage"),(a,s,u)=>{if(t===!1)throw new C(o(s," has been removed"+(r?" in "+r:"")),C.ERR_DEPRECATED);return r&&!zg[s]&&(zg[s]=!0,console.warn(o(s," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(a,s,u):!0}},"transitional");xa.spelling=i(function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)},"spelling");function B0(e,t,r){if(typeof e!="object")throw new C("options must be an object",C.ERR_BAD_OPTION_VALUE);let n=Object.keys(e),o=n.length;for(;o-- >0;){let a=n[o],s=Object.prototype.hasOwnProperty.call(t,a)?t[a]:void 0;if(s){let u=e[a],l=u===void 0||s(u,a,e);if(l!==!0)throw new C("option "+a+" must be "+l,C.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new C("Unknown option "+a,C.ERR_BAD_OPTION)}}i(B0,"assertOptions");var ca={assertOptions:B0,validators:xa},mt=ca.validators,Ir=class{static{i(this,"Axios")}constructor(t){this.defaults=t||{},this.interceptors={request:new da,response:new da}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;let a=(()=>{if(!o.stack)return"";let s=o.stack.indexOf(`
19
+ `);return s===-1?"":o.stack.slice(s+1)})();try{if(!n.stack)n.stack=a;else if(a){let s=a.indexOf(`
20
+ `),u=s===-1?-1:a.indexOf(`
21
+ `,s+1),l=u===-1?"":a.slice(u+1);String(n.stack).endsWith(l)||(n.stack+=`
22
+ `+a)}}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=gn(this.defaults,r);let{transitional:n,paramsSerializer:o,headers:a}=r;n!==void 0&&ca.assertOptions(n,{silentJSONParsing:mt.transitional(mt.boolean),forcedJSONParsing:mt.transitional(mt.boolean),clarifyTimeoutError:mt.transitional(mt.boolean),legacyInterceptorReqResOrdering:mt.transitional(mt.boolean),advertiseZstdAcceptEncoding:mt.transitional(mt.boolean),validateStatusUndefinedResolves:mt.transitional(mt.boolean)},!1),o!=null&&(w.isFunction(o)?r.paramsSerializer={serialize:o}:ca.assertOptions(o,{encode:mt.function,serialize:mt.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),ca.assertOptions(r,{baseUrl:mt.spelling("baseURL"),withXsrfToken:mt.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let s=a&&w.merge(a.common,a[r.method]);a&&w.forEach(["delete","get","head","post","put","patch","query","common"],h=>{delete a[h]}),r.headers=Xe.concat(s,a);let u=[],l=!0;this.interceptors.request.forEach(i(function(_){if(typeof _.runWhen=="function"&&_.runWhen(r)===!1)return;l=l&&_.synchronous;let v=r.transitional||ba;v&&v.legacyInterceptorReqResOrdering?u.unshift(_.fulfilled,_.rejected):u.push(_.fulfilled,_.rejected)},"unshiftRequestInterceptors"));let p=[];this.interceptors.response.forEach(i(function(_){p.push(_.fulfilled,_.rejected)},"pushResponseInterceptors"));let c,f=0,m;if(!l){let h=[$g.bind(this),void 0];for(h.unshift(...u),h.push(...p),m=h.length,c=Promise.resolve(r);f<m;)c=c.then(h[f++],h[f++]);return c}m=u.length;let d=r;for(;f<m;){let h=u[f++],_=u[f++];try{d=h(d)}catch(v){_.call(this,v);break}}try{c=$g.call(this,d)}catch(h){return Promise.reject(h)}for(f=0,m=p.length;f<m;)c=c.then(p[f++],p[f++]);return c}getUri(t){t=gn(this.defaults,t);let r=wl(t.baseURL,t.url,t.allowAbsoluteUrls,t);return _l(r,t.params,t.paramsSerializer)}};w.forEach(["delete","get","head","options"],i(function(t){Ir.prototype[t]=function(r,n){return this.request(gn(n||{},{method:t,url:r,data:n&&w.hasOwnProp(n,"data")?n.data:void 0}))}},"forEachMethodNoData"));w.forEach(["post","put","patch","query"],i(function(t){function r(n){return i(function(a,s,u){return this.request(gn(u||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:a,data:s}))},"httpMethod")}i(r,"generateHTTPMethod"),Ir.prototype[t]=r(),t!=="query"&&(Ir.prototype[t+"Form"]=r(!0))},"forEachMethodWithData"));var hl=class e{static{i(this,"CancelToken")}constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(i(function(a){r=a},"promiseExecutor"));let n=this;this.promise.then(o=>{if(!n._listeners)return;let a=n._listeners.length;for(;a-- >0;)n._listeners[a](o);n._listeners=null}),this.promise.then=o=>{let a,s=new Promise(u=>{n.subscribe(u),a=u}).then(o);return s.cancel=i(function(){n.unsubscribe(a)},"reject"),s},t(i(function(a,s,u){n.reason||(n.reason=new Or(a,s,u),r(n.reason))},"cancel"))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;let r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){let t=new AbortController,r=i(n=>{t.abort(n)},"abort");return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new e(i(function(o){t=o},"executor")),cancel:t}}};function j0(e){return i(function(r){return e.apply(null,r)},"wrap")}i(j0,"spread");function V0(e){return w.isObject(e)&&e.isAxiosError===!0}i(V0,"isAxiosError");var gl={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(gl).forEach(([e,t])=>{gl[t]=e});function my(e){let t=new Ir(e),r=Lg(Ir.prototype.request,t);return w.extend(r,Ir.prototype,t,{allOwnKeys:!0}),w.extend(r,t,null,{allOwnKeys:!0}),r.create=i(function(o){return my(gn(e,o))},"create"),r}i(my,"createInstance");var nt=my(Yi);nt.Axios=Ir;nt.CanceledError=Or;nt.CancelToken=hl;nt.isCancel=ey;nt.VERSION=Gi;nt.toFormData=va;nt.AxiosError=C;nt.Cancel=nt.CanceledError;nt.all=i(function(t){return Promise.all(t)},"all");nt.spread=j0;nt.isAxiosError=V0;nt.mergeConfig=gn;nt.AxiosHeaders=Xe;nt.formToJSON=e=>Qg(w.isHTMLForm(e)?new FormData(e):e);nt.getAdapter=fy.getAdapter;nt.HttpStatusCode=gl;nt.default=nt;hy.exports=nt});var vy=b((Zte,yy)=>{"use strict";yy.exports=function(e,t){return Object.keys(t).forEach(function(r){e[r]=e[r]||t[r]}),e}});var xy=b((Wte,by)=>{"use strict";var Al=su(),H0=require("util"),Tl=require("path"),Z0=require("http"),W0=require("https"),G0=require("url").parse,K0=require("fs"),J0=require("stream").Stream,X0=require("crypto"),kl=uu(),Y0=hu(),Q0=Tu(),Gr=Xo(),Sl=vy();function ge(e){if(!(this instanceof ge))return new ge(e);this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],Al.call(this),e=e||{};for(var t in e)this[t]=e[t]}i(ge,"FormData");H0.inherits(ge,Al);ge.LINE_BREAK=`\r
23
+ `;ge.DEFAULT_CONTENT_TYPE="application/octet-stream";ge.prototype.append=function(e,t,r){r=r||{},typeof r=="string"&&(r={filename:r});var n=Al.prototype.append.bind(this);if((typeof t=="number"||t==null)&&(t=String(t)),Array.isArray(t)){this._error(new Error("Arrays are not supported."));return}var o=this._multiPartHeader(e,t,r),a=this._multiPartFooter();n(o),n(t),n(a),this._trackLength(o,t,r)};ge.prototype._trackLength=function(e,t,r){var n=0;r.knownLength!=null?n+=Number(r.knownLength):Buffer.isBuffer(t)?n=t.length:typeof t=="string"&&(n=Buffer.byteLength(t)),this._valueLength+=n,this._overheadLength+=Buffer.byteLength(e)+ge.LINE_BREAK.length,!(!t||!t.path&&!(t.readable&&Gr(t,"httpVersion"))&&!(t instanceof J0))&&(r.knownLength||this._valuesToMeasure.push(t))};ge.prototype._lengthRetriever=function(e,t){Gr(e,"fd")?e.end!=null&&e.end!=1/0&&e.start!=null?t(null,e.end+1-(e.start?e.start:0)):K0.stat(e.path,function(r,n){if(r){t(r);return}var o=n.size-(e.start?e.start:0);t(null,o)}):Gr(e,"httpVersion")?t(null,Number(e.headers["content-length"])):Gr(e,"httpModule")?(e.on("response",function(r){e.pause(),t(null,Number(r.headers["content-length"]))}),e.resume()):t("Unknown stream")};ge.prototype._multiPartHeader=function(e,t,r){if(typeof r.header=="string")return r.header;var n=this._getContentDisposition(t,r),o=this._getContentType(t,r),a="",s={"Content-Disposition":["form-data",'name="'+e+'"'].concat(n||[]),"Content-Type":[].concat(o||[])};typeof r.header=="object"&&Sl(s,r.header);var u;for(var l in s)if(Gr(s,l)){if(u=s[l],u==null)continue;Array.isArray(u)||(u=[u]),u.length&&(a+=l+": "+u.join("; ")+ge.LINE_BREAK)}return"--"+this.getBoundary()+ge.LINE_BREAK+a+ge.LINE_BREAK};ge.prototype._getContentDisposition=function(e,t){var r;if(typeof t.filepath=="string"?r=Tl.normalize(t.filepath).replace(/\\/g,"/"):t.filename||e&&(e.name||e.path)?r=Tl.basename(t.filename||e&&(e.name||e.path)):e&&e.readable&&Gr(e,"httpVersion")&&(r=Tl.basename(e.client._httpMessage.path||"")),r)return'filename="'+r+'"'};ge.prototype._getContentType=function(e,t){var r=t.contentType;return!r&&e&&e.name&&(r=kl.lookup(e.name)),!r&&e&&e.path&&(r=kl.lookup(e.path)),!r&&e&&e.readable&&Gr(e,"httpVersion")&&(r=e.headers["content-type"]),!r&&(t.filepath||t.filename)&&(r=kl.lookup(t.filepath||t.filename)),!r&&e&&typeof e=="object"&&(r=ge.DEFAULT_CONTENT_TYPE),r};ge.prototype._multiPartFooter=function(){return function(e){var t=ge.LINE_BREAK,r=this._streams.length===0;r&&(t+=this._lastBoundary()),e(t)}.bind(this)};ge.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+ge.LINE_BREAK};ge.prototype.getHeaders=function(e){var t,r={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(t in e)Gr(e,t)&&(r[t.toLowerCase()]=e[t]);return r};ge.prototype.setBoundary=function(e){if(typeof e!="string")throw new TypeError("FormData boundary must be a string");this._boundary=e};ge.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary};ge.prototype.getBuffer=function(){for(var e=new Buffer.alloc(0),t=this.getBoundary(),r=0,n=this._streams.length;r<n;r++)typeof this._streams[r]!="function"&&(Buffer.isBuffer(this._streams[r])?e=Buffer.concat([e,this._streams[r]]):e=Buffer.concat([e,Buffer.from(this._streams[r])]),(typeof this._streams[r]!="string"||this._streams[r].substring(2,t.length+2)!==t)&&(e=Buffer.concat([e,Buffer.from(ge.LINE_BREAK)])));return Buffer.concat([e,Buffer.from(this._lastBoundary())])};ge.prototype._generateBoundary=function(){this._boundary="--------------------------"+X0.randomBytes(12).toString("hex")};ge.prototype.getLengthSync=function(){var e=this._overheadLength+this._valueLength;return this._streams.length&&(e+=this._lastBoundary().length),this.hasKnownLength()||this._error(new Error("Cannot calculate proper length in synchronous way.")),e};ge.prototype.hasKnownLength=function(){var e=!0;return this._valuesToMeasure.length&&(e=!1),e};ge.prototype.getLength=function(e){var t=this._overheadLength+this._valueLength;if(this._streams.length&&(t+=this._lastBoundary().length),!this._valuesToMeasure.length){process.nextTick(e.bind(this,null,t));return}Y0.parallel(this._valuesToMeasure,this._lengthRetriever,function(r,n){if(r){e(r);return}n.forEach(function(o){t+=o}),e(null,t)})};ge.prototype.submit=function(e,t){var r,n,o={method:"post"};return typeof e=="string"?(e=G0(e),n=Sl({port:e.port,path:e.pathname,host:e.hostname,protocol:e.protocol},o)):(n=Sl(e,o),n.port||(n.port=n.protocol==="https:"?443:80)),n.headers=this.getHeaders(e.headers),n.protocol==="https:"?r=W0.request(n):r=Z0.request(n),this.getLength(function(a,s){if(a&&a!=="Unknown stream"){this._error(a);return}if(s&&r.setHeader("Content-Length",s),this.pipe(r),t){var u,l=i(function(p,c){return r.removeListener("error",l),r.removeListener("response",u),t.call(this,p,c)},"callback");u=l.bind(this,null),r.on("error",l),r.on("response",u)}}.bind(this)),r};ge.prototype._error=function(e){this.error||(this.error=e,this.pause(),this.emit("error",e))};ge.prototype.toString=function(){return"[object FormData]"};Q0(ge,"FormData");by.exports=ge});var Py=b((Kte,_y)=>{function eN(){return!!(typeof window<"u"&&typeof window.process=="object"&&window.process.type==="renderer"||typeof process<"u"&&typeof process.versions=="object"&&process.versions.electron||typeof navigator=="object"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Electron")>=0)}i(eN,"isElectron");_y.exports=eN});var Ey=b((Xte,wy)=>{"use strict";var cr=i(e=>e!==null&&typeof e=="object"&&typeof e.pipe=="function","isStream");cr.writable=e=>cr(e)&&e.writable!==!1&&typeof e._write=="function"&&typeof e._writableState=="object";cr.readable=e=>cr(e)&&e.readable!==!1&&typeof e._read=="function"&&typeof e._readableState=="object";cr.duplex=e=>cr.writable(e)&&cr.readable(e);cr.transform=e=>cr.duplex(e)&&typeof e._transform=="function";wy.exports=cr});var ky=b((Qte,Il)=>{"use strict";var tN=Object.prototype.hasOwnProperty,xt="~";function Qi(){}i(Qi,"Events");Object.create&&(Qi.prototype=Object.create(null),new Qi().__proto__||(xt=!1));function rN(e,t,r){this.fn=e,this.context=t,this.once=r||!1}i(rN,"EE");function Ty(e,t,r,n,o){if(typeof r!="function")throw new TypeError("The listener must be a function");var a=new rN(r,n||e,o),s=xt?xt+t:t;return e._events[s]?e._events[s].fn?e._events[s]=[e._events[s],a]:e._events[s].push(a):(e._events[s]=a,e._eventsCount++),e}i(Ty,"addListener");function _a(e,t){--e._eventsCount===0?e._events=new Qi:delete e._events[t]}i(_a,"clearEvent");function ht(){this._events=new Qi,this._eventsCount=0}i(ht,"EventEmitter");ht.prototype.eventNames=i(function(){var t=[],r,n;if(this._eventsCount===0)return t;for(n in r=this._events)tN.call(r,n)&&t.push(xt?n.slice(1):n);return Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(r)):t},"eventNames");ht.prototype.listeners=i(function(t){var r=xt?xt+t:t,n=this._events[r];if(!n)return[];if(n.fn)return[n.fn];for(var o=0,a=n.length,s=new Array(a);o<a;o++)s[o]=n[o].fn;return s},"listeners");ht.prototype.listenerCount=i(function(t){var r=xt?xt+t:t,n=this._events[r];return n?n.fn?1:n.length:0},"listenerCount");ht.prototype.emit=i(function(t,r,n,o,a,s){var u=xt?xt+t:t;if(!this._events[u])return!1;var l=this._events[u],p=arguments.length,c,f;if(l.fn){switch(l.once&&this.removeListener(t,l.fn,void 0,!0),p){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,r),!0;case 3:return l.fn.call(l.context,r,n),!0;case 4:return l.fn.call(l.context,r,n,o),!0;case 5:return l.fn.call(l.context,r,n,o,a),!0;case 6:return l.fn.call(l.context,r,n,o,a,s),!0}for(f=1,c=new Array(p-1);f<p;f++)c[f-1]=arguments[f];l.fn.apply(l.context,c)}else{var m=l.length,d;for(f=0;f<m;f++)switch(l[f].once&&this.removeListener(t,l[f].fn,void 0,!0),p){case 1:l[f].fn.call(l[f].context);break;case 2:l[f].fn.call(l[f].context,r);break;case 3:l[f].fn.call(l[f].context,r,n);break;case 4:l[f].fn.call(l[f].context,r,n,o);break;default:if(!c)for(d=1,c=new Array(p-1);d<p;d++)c[d-1]=arguments[d];l[f].fn.apply(l[f].context,c)}}return!0},"emit");ht.prototype.on=i(function(t,r,n){return Ty(this,t,r,n,!1)},"on");ht.prototype.once=i(function(t,r,n){return Ty(this,t,r,n,!0)},"once");ht.prototype.removeListener=i(function(t,r,n,o){var a=xt?xt+t:t;if(!this._events[a])return this;if(!r)return _a(this,a),this;var s=this._events[a];if(s.fn)s.fn===r&&(!o||s.once)&&(!n||s.context===n)&&_a(this,a);else{for(var u=0,l=[],p=s.length;u<p;u++)(s[u].fn!==r||o&&!s[u].once||n&&s[u].context!==n)&&l.push(s[u]);l.length?this._events[a]=l.length===1?l[0]:l:_a(this,a)}return this},"removeListener");ht.prototype.removeAllListeners=i(function(t){var r;return t?(r=xt?xt+t:t,this._events[r]&&_a(this,r)):(this._events=new Qi,this._eventsCount=0),this},"removeAllListeners");ht.prototype.off=ht.prototype.removeListener;ht.prototype.addListener=ht.prototype.on;ht.prefixed=xt;ht.EventEmitter=ht;typeof Il<"u"&&(Il.exports=ht)});var Ay=b((tre,Sy)=>{"use strict";Sy.exports=(e,t)=>(t=t||(()=>{}),e.then(r=>new Promise(n=>{n(t())}).then(()=>r),r=>new Promise(n=>{n(t())}).then(()=>{throw r})))});var Oy=b((rre,wa)=>{"use strict";var nN=Ay(),Pa=class extends Error{static{i(this,"TimeoutError")}constructor(t){super(t),this.name="TimeoutError"}},Iy=i((e,t,r)=>new Promise((n,o)=>{if(typeof t!="number"||t<0)throw new TypeError("Expected `milliseconds` to be a positive number");if(t===1/0){n(e);return}let a=setTimeout(()=>{if(typeof r=="function"){try{n(r())}catch(l){o(l)}return}let s=typeof r=="string"?r:`Promise timed out after ${t} milliseconds`,u=r instanceof Error?r:new Pa(s);typeof e.cancel=="function"&&e.cancel(),o(u)},t);nN(e.then(n,o),()=>{clearTimeout(a)})}),"pTimeout");wa.exports=Iy;wa.exports.default=Iy;wa.exports.TimeoutError=Pa});var Cy=b(Ol=>{"use strict";Object.defineProperty(Ol,"__esModule",{value:!0});function iN(e,t,r){let n=0,o=e.length;for(;o>0;){let a=o/2|0,s=n+a;r(e[s],t)<=0?(n=++s,o-=a+1):o=a}return n}i(iN,"lowerBound");Ol.default=iN});var Ry=b(Rl=>{"use strict";Object.defineProperty(Rl,"__esModule",{value:!0});var oN=Cy(),Cl=class{static{i(this,"PriorityQueue")}constructor(){this._queue=[]}enqueue(t,r){r=Object.assign({priority:0},r);let n={priority:r.priority,run:t};if(this.size&&this._queue[this.size-1].priority>=r.priority){this._queue.push(n);return}let o=oN.default(this._queue,n,(a,s)=>s.priority-a.priority);this._queue.splice(o,0,n)}dequeue(){let t=this._queue.shift();return t?.run}filter(t){return this._queue.filter(r=>r.priority===t.priority).map(r=>r.run)}get size(){return this._queue.length}};Rl.default=Cl});var zy=b(zl=>{"use strict";Object.defineProperty(zl,"__esModule",{value:!0});var aN=ky(),$y=Oy(),sN=Ry(),Ea=i(()=>{},"empty"),uN=new $y.TimeoutError,$l=class extends aN{static{i(this,"PQueue")}constructor(t){var r,n,o,a;if(super(),this._intervalCount=0,this._intervalEnd=0,this._pendingCount=0,this._resolveEmpty=Ea,this._resolveIdle=Ea,t=Object.assign({carryoverConcurrencyCount:!1,intervalCap:1/0,interval:0,concurrency:1/0,autoStart:!0,queueClass:sN.default},t),!(typeof t.intervalCap=="number"&&t.intervalCap>=1))throw new TypeError(`Expected \`intervalCap\` to be a number from 1 and up, got \`${(n=(r=t.intervalCap)===null||r===void 0?void 0:r.toString())!==null&&n!==void 0?n:""}\` (${typeof t.intervalCap})`);if(t.interval===void 0||!(Number.isFinite(t.interval)&&t.interval>=0))throw new TypeError(`Expected \`interval\` to be a finite number >= 0, got \`${(a=(o=t.interval)===null||o===void 0?void 0:o.toString())!==null&&a!==void 0?a:""}\` (${typeof t.interval})`);this._carryoverConcurrencyCount=t.carryoverConcurrencyCount,this._isIntervalIgnored=t.intervalCap===1/0||t.interval===0,this._intervalCap=t.intervalCap,this._interval=t.interval,this._queue=new t.queueClass,this._queueClass=t.queueClass,this.concurrency=t.concurrency,this._timeout=t.timeout,this._throwOnTimeout=t.throwOnTimeout===!0,this._isPaused=t.autoStart===!1}get _doesIntervalAllowAnother(){return this._isIntervalIgnored||this._intervalCount<this._intervalCap}get _doesConcurrentAllowAnother(){return this._pendingCount<this._concurrency}_next(){this._pendingCount--,this._tryToStartAnother(),this.emit("next")}_resolvePromises(){this._resolveEmpty(),this._resolveEmpty=Ea,this._pendingCount===0&&(this._resolveIdle(),this._resolveIdle=Ea,this.emit("idle"))}_onResumeInterval(){this._onInterval(),this._initializeIntervalIfNeeded(),this._timeoutId=void 0}_isIntervalPaused(){let t=Date.now();if(this._intervalId===void 0){let r=this._intervalEnd-t;if(r<0)this._intervalCount=this._carryoverConcurrencyCount?this._pendingCount:0;else return this._timeoutId===void 0&&(this._timeoutId=setTimeout(()=>{this._onResumeInterval()},r)),!0}return!1}_tryToStartAnother(){if(this._queue.size===0)return this._intervalId&&clearInterval(this._intervalId),this._intervalId=void 0,this._resolvePromises(),!1;if(!this._isPaused){let t=!this._isIntervalPaused();if(this._doesIntervalAllowAnother&&this._doesConcurrentAllowAnother){let r=this._queue.dequeue();return r?(this.emit("active"),r(),t&&this._initializeIntervalIfNeeded(),!0):!1}}return!1}_initializeIntervalIfNeeded(){this._isIntervalIgnored||this._intervalId!==void 0||(this._intervalId=setInterval(()=>{this._onInterval()},this._interval),this._intervalEnd=Date.now()+this._interval)}_onInterval(){this._intervalCount===0&&this._pendingCount===0&&this._intervalId&&(clearInterval(this._intervalId),this._intervalId=void 0),this._intervalCount=this._carryoverConcurrencyCount?this._pendingCount:0,this._processQueue()}_processQueue(){for(;this._tryToStartAnother(););}get concurrency(){return this._concurrency}set concurrency(t){if(!(typeof t=="number"&&t>=1))throw new TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${t}\` (${typeof t})`);this._concurrency=t,this._processQueue()}async add(t,r={}){return new Promise((n,o)=>{let a=i(async()=>{this._pendingCount++,this._intervalCount++;try{let s=this._timeout===void 0&&r.timeout===void 0?t():$y.default(Promise.resolve(t()),r.timeout===void 0?this._timeout:r.timeout,()=>{(r.throwOnTimeout===void 0?this._throwOnTimeout:r.throwOnTimeout)&&o(uN)});n(await s)}catch(s){o(s)}this._next()},"run");this._queue.enqueue(a,r),this._tryToStartAnother(),this.emit("add")})}async addAll(t,r){return Promise.all(t.map(async n=>this.add(n,r)))}start(){return this._isPaused?(this._isPaused=!1,this._processQueue(),this):this}pause(){this._isPaused=!0}clear(){this._queue=new this._queueClass}async onEmpty(){if(this._queue.size!==0)return new Promise(t=>{let r=this._resolveEmpty;this._resolveEmpty=()=>{r(),t()}})}async onIdle(){if(!(this._pendingCount===0&&this._queue.size===0))return new Promise(t=>{let r=this._resolveIdle;this._resolveIdle=()=>{r(),t()}})}get size(){return this._queue.size}sizeBy(t){return this._queue.filter(t).length}get pending(){return this._pendingCount}get isPaused(){return this._isPaused}get timeout(){return this._timeout}set timeout(t){this._timeout=t}};zl.default=$l});var Ny=b((cre,Dy)=>{function Bt(e,t){typeof t=="boolean"&&(t={forever:t}),this._originalTimeouts=JSON.parse(JSON.stringify(e)),this._timeouts=e,this._options=t||{},this._maxRetryTime=t&&t.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}i(Bt,"RetryOperation");Dy.exports=Bt;Bt.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};Bt.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};Bt.prototype.retry=function(e){if(this._timeout&&clearTimeout(this._timeout),!e)return!1;var t=new Date().getTime();if(e&&t-this._operationStart>=this._maxRetryTime)return this._errors.push(e),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(e);var r=this._timeouts.shift();if(r===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),r=this._cachedTimeouts.slice(-1);else return!1;var n=this;return this._timer=setTimeout(function(){n._attempts++,n._operationTimeoutCb&&(n._timeout=setTimeout(function(){n._operationTimeoutCb(n._attempts)},n._operationTimeout),n._options.unref&&n._timeout.unref()),n._fn(n._attempts)},r),this._options.unref&&this._timer.unref(),!0};Bt.prototype.attempt=function(e,t){this._fn=e,t&&(t.timeout&&(this._operationTimeout=t.timeout),t.cb&&(this._operationTimeoutCb=t.cb));var r=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){r._operationTimeoutCb()},r._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};Bt.prototype.try=function(e){console.log("Using RetryOperation.try() is deprecated"),this.attempt(e)};Bt.prototype.start=function(e){console.log("Using RetryOperation.start() is deprecated"),this.attempt(e)};Bt.prototype.start=Bt.prototype.try;Bt.prototype.errors=function(){return this._errors};Bt.prototype.attempts=function(){return this._attempts};Bt.prototype.mainError=function(){if(this._errors.length===0)return null;for(var e={},t=null,r=0,n=0;n<this._errors.length;n++){var o=this._errors[n],a=o.message,s=(e[a]||0)+1;e[a]=s,s>=r&&(t=o,r=s)}return t}});var Uy=b(yn=>{var lN=Ny();yn.operation=function(e){var t=yn.timeouts(e);return new lN(t,{forever:e&&(e.forever||e.retries===1/0),unref:e&&e.unref,maxRetryTime:e&&e.maxRetryTime})};yn.timeouts=function(e){if(e instanceof Array)return[].concat(e);var t={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var r in e)t[r]=e[r];if(t.minTimeout>t.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var n=[],o=0;o<t.retries;o++)n.push(this.createTimeout(o,t));return e&&e.forever&&!n.length&&n.push(this.createTimeout(o,t)),n.sort(function(a,s){return a-s}),n};yn.createTimeout=function(e,t){var r=t.randomize?Math.random()+1:1,n=Math.round(r*Math.max(t.minTimeout,1)*Math.pow(t.factor,e));return n=Math.min(n,t.maxTimeout),n};yn.wrap=function(e,t,r){if(t instanceof Array&&(r=t,t=null),!r){r=[];for(var n in e)typeof e[n]=="function"&&r.push(n)}for(var o=0;o<r.length;o++){var a=r[o],s=e[a];e[a]=i(function(l){var p=yn.operation(t),c=Array.prototype.slice.call(arguments,1),f=c.pop();c.push(function(m){p.retry(m)||(m&&(arguments[0]=p.mainError()),f.apply(this,arguments))}),p.attempt(function(){l.apply(e,c)})},"retryWrapper").bind(e,s),e[a].options=t}}});var My=b((mre,Ly)=>{Ly.exports=Uy()});var Fy=b((hre,ka)=>{"use strict";var cN=My(),pN=["Failed to fetch","NetworkError when attempting to fetch resource.","The Internet connection appears to be offline.","Network request failed"],Ta=class extends Error{static{i(this,"AbortError")}constructor(t){super(),t instanceof Error?(this.originalError=t,{message:t}=t):(this.originalError=new Error(t),this.originalError.stack=this.stack),this.name="AbortError",this.message=t}},dN=i((e,t,r)=>{let n=r.retries-(t-1);return e.attemptNumber=t,e.retriesLeft=n,e},"decorateErrorWithCounts"),fN=i(e=>pN.includes(e),"isNetworkError"),qy=i((e,t)=>new Promise((r,n)=>{t={onFailedAttempt:i(()=>{},"onFailedAttempt"),retries:10,...t};let o=cN.operation(t);o.attempt(async a=>{try{r(await e(a))}catch(s){if(!(s instanceof Error)){n(new TypeError(`Non-error was thrown: "${s}". You should only throw errors.`));return}if(s instanceof Ta)o.stop(),n(s.originalError);else if(s instanceof TypeError&&!fN(s.message))o.stop(),n(s);else{dN(s,a,t);try{await t.onFailedAttempt(s)}catch(u){n(u);return}o.retry(s)||n(o.mainError())}}})}),"pRetry");ka.exports=qy;ka.exports.default=qy;ka.exports.AbortError=Ta});var Sa=b(It=>{"use strict";Object.defineProperty(It,"__esModule",{value:!0});It.rateLimitedErrorWithDelay=It.platformErrorFromResult=It.httpErrorFromResponse=It.requestErrorWithOriginal=It.errorWithCode=It.ErrorCode=void 0;var Wn;(function(e){e.RequestError="slack_webapi_request_error",e.HTTPError="slack_webapi_http_error",e.PlatformError="slack_webapi_platform_error",e.RateLimitedError="slack_webapi_rate_limited_error",e.FileUploadInvalidArgumentsError="slack_webapi_file_upload_invalid_args_error",e.FileUploadReadFileDataError="slack_webapi_file_upload_read_file_data_error"})(Wn||(It.ErrorCode=Wn={}));function eo(e,t){let r=e;return r.code=t,r}i(eo,"errorWithCode");It.errorWithCode=eo;function mN(e,t){let r=eo(new Error(`A request error occurred: ${e.message}`),Wn.RequestError);return t&&(r.original=e),r}i(mN,"requestErrorWithOriginal");It.requestErrorWithOriginal=mN;function hN(e){let t=eo(new Error(`An HTTP protocol error occurred: statusCode = ${e.status}`),Wn.HTTPError);t.statusCode=e.status,t.statusMessage=e.statusText;let r={};for(let n of Object.keys(e.headers))n&&e.headers[n]&&(r[n]=e.headers[n]);return t.headers=r,t.body=e.data,t}i(hN,"httpErrorFromResponse");It.httpErrorFromResponse=hN;function gN(e){let t=eo(new Error(`An API error occurred: ${e.error}`),Wn.PlatformError);return t.data=e,t}i(gN,"platformErrorFromResult");It.platformErrorFromResult=gN;function yN(e){let t=eo(new Error(`A rate-limit has been reached, you may retry this request in ${e} seconds`),Wn.RateLimitedError);return t.retryAfter=e,t}i(yN,"rateLimitedErrorWithDelay");It.rateLimitedErrorWithDelay=yN});var sv=b(J=>{"use strict";var Aa=J&&J.__awaiter||function(e,t,r,n){function o(a){return a instanceof r?a:new r(function(s){s(a)})}return i(o,"adopt"),new(r||(r=Promise))(function(a,s){function u(c){try{p(n.next(c))}catch(f){s(f)}}i(u,"fulfilled");function l(c){try{p(n.throw(c))}catch(f){s(f)}}i(l,"rejected");function p(c){c.done?a(c.value):o(c.value).then(u,l)}i(p,"step"),p((n=n.apply(e,t||[])).next())})};Object.defineProperty(J,"__esModule",{value:!0});J.buildInvalidFilesUploadParamError=J.buildMultipleChannelsErrorMsg=J.buildChannelsWarning=J.buildFilesUploadMissingMessage=J.buildGeneralFilesUploadWarning=J.buildLegacyMethodWarning=J.buildMissingExtensionWarning=J.buildMissingFileNameWarning=J.buildLegacyFileTypeWarning=J.buildFileSizeErrorMsg=J.buildMissingFileIdError=J.warnIfLegacyFileType=J.warnIfMissingOrInvalidFileNameAndDefault=J.errorIfInvalidOrMissingFileData=J.errorIfChannelsCsv=J.warnIfChannels=J.warnIfNotUsingFilesUploadV2=J.getAllFileUploadsToComplete=J.getFileDataAsStream=J.getFileDataLength=J.getFileData=J.getMultipleFileUploadJobs=J.getFileUploadJob=void 0;var vN=require("node:fs"),bN=require("node:stream"),it=Sa();function Dl(e,t){var r,n,o,a;return Aa(this,void 0,void 0,function*(){Ky(e,t),Hy(e,t),Zy(e);let s=Gy(e,t),u=yield By(e),l=jy(u),p={alt_text:e.alt_text,channel_id:(r=e.channels)!==null&&r!==void 0?r:e.channel_id,filename:(n=e.filename)!==null&&n!==void 0?n:s,initial_comment:e.initial_comment,snippet_type:e.snippet_type,title:(a=(o=e.title)!==null&&o!==void 0?o:e.filename)!==null&&a!==void 0?a:s,data:u,length:l};if("thread_ts"in e&&(p.thread_ts=e.thread_ts),"token"in e&&(p.token=e.token),"content"in e)return Object.assign({content:e.content},p);if("file"in e)return Object.assign({file:e.file},p);throw(0,it.errorWithCode)(new Error("Either a file or content field is required for valid file upload. You must supply one"),it.ErrorCode.FileUploadInvalidArgumentsError)})}i(Dl,"getFileUploadJob");J.getFileUploadJob=Dl;function xN(e,t){return Aa(this,void 0,void 0,function*(){if("file_uploads"in e)return Promise.all(e.file_uploads.map(r=>{let{channel_id:n,channels:o,initial_comment:a,thread_ts:s}=r;if(n||o||a||s)throw(0,it.errorWithCode)(new Error(av()),it.ErrorCode.FileUploadInvalidArgumentsError);let u=Object.assign(Object.assign({},r),{channels:e.channels,channel_id:e.channel_id,initial_comment:e.initial_comment});if("thread_ts"in e&&(u.thread_ts=e.thread_ts),"token"in e&&(u.token=e.token),"content"in r)return Dl(Object.assign({content:r.content},u),t);if("file"in r)return Dl(Object.assign({file:r.file},u),t);throw(0,it.errorWithCode)(new Error("Either a file or content field is required for valid file upload. You must supply one"),it.ErrorCode.FileUploadInvalidArgumentsError)}));throw new Error(nv())})}i(xN,"getMultipleFileUploadJobs");J.getMultipleFileUploadJobs=xN;function By(e){return Aa(this,void 0,void 0,function*(){if(Wy(e),"file"in e){let{file:t}=e;if(Buffer.isBuffer(t))return t;if(typeof t=="string")try{return(0,vN.readFileSync)(t)}catch{throw(0,it.errorWithCode)(new Error(`Unable to resolve file data for ${t}. Please supply a filepath string, or binary data Buffer or String directly.`),it.ErrorCode.FileUploadInvalidArgumentsError)}let r=yield Vy(t);if(r)return r}if("content"in e)return Buffer.from(e.content);throw(0,it.errorWithCode)(new Error("There was an issue getting the file data for the file or content supplied"),it.ErrorCode.FileUploadReadFileDataError)})}i(By,"getFileData");J.getFileData=By;function jy(e){if(e)return Buffer.byteLength(e,"utf8");throw(0,it.errorWithCode)(new Error(Xy()),it.ErrorCode.FileUploadReadFileDataError)}i(jy,"getFileDataLength");J.getFileDataLength=jy;function Vy(e){return Aa(this,void 0,void 0,function*(){let t=[];return new Promise((r,n)=>{e.on("readable",()=>{let o;for(;(o=e.read())!==null;)t.push(o)}),e.on("end",()=>{if(t.length>0){let o=Buffer.concat(t);r(o)}else n(Error("No data in supplied file"))})})})}i(Vy,"getFileDataAsStream");J.getFileDataAsStream=Vy;function _N(e){let t={};for(let r of e){let{channel_id:n,thread_ts:o,initial_comment:a,file_id:s,title:u}=r;if(s){let l=`:::${n}:::${o}:::${a}`;Object.prototype.hasOwnProperty.call(t,l)?t[l].files.push({id:s,title:u}):(t[l]={files:[{id:s,title:u}],channel_id:n,initial_comment:a},o&&(t[l].thread_ts=r.thread_ts),"token"in r&&(t[l].token=r.token))}else throw new Error(Jy())}return t}i(_N,"getAllFileUploadsToComplete");J.getAllFileUploadsToComplete=_N;function PN(e,t){let n=["files.upload"].includes(e);e==="files.upload"&&t.warn(tv(e)),n&&t.info(rv())}i(PN,"warnIfNotUsingFilesUploadV2");J.warnIfNotUsingFilesUploadV2=PN;function Hy(e,t){e.channels&&t.warn(iv())}i(Hy,"warnIfChannels");J.warnIfChannels=Hy;function Zy(e){if((e.channels?e.channels.split(","):[]).length>1)throw(0,it.errorWithCode)(new Error(ov()),it.ErrorCode.FileUploadInvalidArgumentsError)}i(Zy,"errorIfChannelsCsv");J.errorIfChannelsCsv=Zy;function Wy(e){let t="file"in e,r="content"in e;if(!(t||r)||t&&r)throw(0,it.errorWithCode)(new Error("Either a file or content field is required for valid file upload. You cannot supply both"),it.ErrorCode.FileUploadInvalidArgumentsError);if("file"in e){let{file:n}=e;if(n&&!(typeof n=="string"||Buffer.isBuffer(n)||n instanceof bN.Readable))throw(0,it.errorWithCode)(new Error("file must be a valid string path, buffer or Readable"),it.ErrorCode.FileUploadInvalidArgumentsError)}if("content"in e&&e.content&&typeof e.content!="string")throw(0,it.errorWithCode)(new Error("content must be a string"),it.ErrorCode.FileUploadInvalidArgumentsError)}i(Wy,"errorIfInvalidOrMissingFileData");J.errorIfInvalidOrMissingFileData=Wy;function Gy(e,t){var r;let o=`file.${(r=e.filetype)!==null&&r!==void 0?r:"txt"}`,{filename:a}=e;return a?(a.split(".").length<2&&t.warn(ev(a)),a):(t.warn(Qy()),o)}i(Gy,"warnIfMissingOrInvalidFileNameAndDefault");J.warnIfMissingOrInvalidFileNameAndDefault=Gy;function Ky(e,t){e.filetype&&t.warn(Yy())}i(Ky,"warnIfLegacyFileType");J.warnIfLegacyFileType=Ky;function Jy(){return"Missing required file id for file upload completion"}i(Jy,"buildMissingFileIdError");J.buildMissingFileIdError=Jy;function Xy(){return"There was an issue calculating the size of your file"}i(Xy,"buildFileSizeErrorMsg");J.buildFileSizeErrorMsg=Xy;function Yy(){return`filetype is no longer a supported field in files.uploadV2.
24
+ Please remove this field. To indicate file type, please do so via the required filename property using the appropriate file extension, e.g. image.png, text.txt`}i(Yy,"buildLegacyFileTypeWarning");J.buildLegacyFileTypeWarning=Yy;function Qy(){return`filename is a required field for files.uploadV2.
25
+ For backwards compatibility and ease of migration, defaulting the filename. For best experience and consistent unfurl behavior, you should set the filename property with correct file extension, e.g. image.png, text.txt`}i(Qy,"buildMissingFileNameWarning");J.buildMissingFileNameWarning=Qy;function ev(e){return`filename supplied '${e}' may be missing a proper extension. Missing extenions may result in unexpected unfurl behavior when shared`}i(ev,"buildMissingExtensionWarning");J.buildMissingExtensionWarning=ev;function tv(e){return`${e} may cause some issues like timeouts for relatively large files.`}i(tv,"buildLegacyMethodWarning");J.buildLegacyMethodWarning=tv;function rv(){return"Our latest recommendation is to use client.files.uploadV2() method, which is mostly compatible and much stabler, instead."}i(rv,"buildGeneralFilesUploadWarning");J.buildGeneralFilesUploadWarning=rv;function nv(){return"Something went wrong with processing file_uploads"}i(nv,"buildFilesUploadMissingMessage");J.buildFilesUploadMissingMessage=nv;function iv(){return"Although the 'channels' parameter is still supported for smoother migration from legacy files.upload, we recommend using the new channel_id parameter with a single str value instead (e.g. 'C12345')."}i(iv,"buildChannelsWarning");J.buildChannelsWarning=iv;function ov(){return"Sharing files with multiple channels is no longer supported in v2. Share files in each channel separately instead."}i(ov,"buildMultipleChannelsErrorMsg");J.buildMultipleChannelsErrorMsg=ov;function av(){return"You may supply file_uploads only for a single channel, comment, thread respectively. Therefore, please supply any channel_id, initial_comment, thread_ts in the top-layer."}i(av,"buildInvalidFilesUploadParamError");J.buildInvalidFilesUploadParamError=av});var uv=b(Nl=>{"use strict";Object.defineProperty(Nl,"__esModule",{value:!0});function wN(e){return new Promise(t=>{setTimeout(t,e)})}i(wN,"delay");Nl.default=wN});var lv=b((wre,EN)=>{EN.exports={name:"@slack/web-api",version:"7.9.0",description:"Official library for using the Slack Platform's Web API",author:"Slack Technologies, LLC",license:"MIT",keywords:["slack","web-api","bot","client","http","api","proxy","rate-limiting","pagination"],main:"dist/index.js",types:"./dist/index.d.ts",files:["dist/**/*"],engines:{node:">= 18",npm:">= 8.6.0"},repository:"slackapi/node-slack-sdk",homepage:"https://tools.slack.dev/node-slack-sdk/web-api",publishConfig:{access:"public"},bugs:{url:"https://github.com/slackapi/node-slack-sdk/issues"},scripts:{prepare:"npm run build",build:"npm run build:clean && tsc","build:clean":"shx rm -rf ./dist ./coverage",lint:"npx @biomejs/biome check .","lint:fix":"npx @biomejs/biome check --write .",mocha:'mocha --config ./test/.mocharc.json "./src/**/*.spec.ts"',test:"npm run lint && npm run test:types && npm run test:integration && npm run test:unit","test:integration":"npm run build && node test/integration/commonjs-project/index.js && node test/integration/esm-project/index.mjs && npm run test:integration:ts","test:integration:ts":"cd test/integration/ts-4.7-project && npm i && npm run build","test:unit":"npm run build && c8 --config ./test/.c8rc.json npm run mocha","test:types":"tsd",watch:"npx nodemon --watch 'src' --ext 'ts' --exec npm run build"},dependencies:{"@slack/logger":"^4.0.0","@slack/types":"^2.9.0","@types/node":">=18.0.0","@types/retry":"0.12.0",axios:"^1.8.3",eventemitter3:"^5.0.1","form-data":"^4.0.0","is-electron":"2.2.2","is-stream":"^2","p-queue":"^6","p-retry":"^4",retry:"^0.13.1"},devDependencies:{"@biomejs/biome":"^1.8.3","@tsconfig/recommended":"^1","@types/busboy":"^1.5.4","@types/chai":"^4","@types/mocha":"^10","@types/sinon":"^17",busboy:"^1",c8:"^10.1.2",chai:"^4",mocha:"^11","mocha-junit-reporter":"^2.2.1","mocha-multi-reporters":"^1.5.1",nock:"^13",shx:"^0.4.0",sinon:"^19","source-map-support":"^0.5.21","ts-node":"^10",tsd:"^0.31.1",typescript:"5.3.3"},tsd:{directory:"test/types"}}});var Ul=b(jt=>{"use strict";var TN=jt&&jt.__createBinding||(Object.create?(function(e,t,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:i(function(){return t[r]},"get")}),Object.defineProperty(e,n,o)}):(function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]})),kN=jt&&jt.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),SN=jt&&jt.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&TN(t,e,r);return kN(t,e),t};Object.defineProperty(jt,"__esModule",{value:!0});jt.getUserAgent=jt.addAppMetadata=void 0;var cv=SN(require("node:os")),AN=require("node:path"),pv=lv();function dv(e){return e.replace("/",":")}i(dv,"replaceSlashes");var IN=`${dv(pv.name)}/${pv.version} ${(0,AN.basename)(process.title)}/${process.version.replace("v","")} ${cv.platform()}/${cv.release()}`,fv={};function ON({name:e,version:t}){fv[dv(e)]=t}i(ON,"addAppMetadata");jt.addAppMetadata=ON;function CN(){let e=Object.entries(fv).map(([t,r])=>`${t}/${r}`).join(" ");return(e.length>0?`${e} `:"")+IN}i(CN,"getUserAgent");jt.getUserAgent=CN});var Ll=b(Gn=>{"use strict";Object.defineProperty(Gn,"__esModule",{value:!0});Gn.ConsoleLogger=Gn.LogLevel=void 0;var gt;(function(e){e.ERROR="error",e.WARN="warn",e.INFO="info",e.DEBUG="debug"})(gt||(Gn.LogLevel=gt={}));var to=class e{static{i(this,"ConsoleLogger")}constructor(){this.level=gt.INFO,this.name=""}getLevel(){return this.level}setLevel(t){this.level=t}setName(t){this.name=t}debug(...t){e.isMoreOrEqualSevere(gt.DEBUG,this.level)&&console.debug(e.labels.get(gt.DEBUG),this.name,...t)}info(...t){e.isMoreOrEqualSevere(gt.INFO,this.level)&&console.info(e.labels.get(gt.INFO),this.name,...t)}warn(...t){e.isMoreOrEqualSevere(gt.WARN,this.level)&&console.warn(e.labels.get(gt.WARN),this.name,...t)}error(...t){e.isMoreOrEqualSevere(gt.ERROR,this.level)&&console.error(e.labels.get(gt.ERROR),this.name,...t)}static isMoreOrEqualSevere(t,r){return e.severity[t]>=e.severity[r]}};Gn.ConsoleLogger=to;to.labels=(()=>{let t=Object.entries(gt).map(([r,n])=>[n,`[${r}] `]);return new Map(t)})();to.severity={[gt.ERROR]:400,[gt.WARN]:300,[gt.INFO]:200,[gt.DEBUG]:100}});var Ml=b(Kn=>{"use strict";Object.defineProperty(Kn,"__esModule",{value:!0});Kn.getLogger=Kn.LogLevel=void 0;var RN=Ll(),$N=Ll();Object.defineProperty(Kn,"LogLevel",{enumerable:!0,get:i(function(){return $N.LogLevel},"get")});var mv=0;function zN(e,t,r){let n=mv;mv+=1;let o=r!==void 0?r:new RN.ConsoleLogger;return o.setName(`web-api:${e}:${n}`),t!==void 0&&o.setLevel(t),o}i(zN,"getLogger");Kn.getLogger=zN});var gv=b((Ore,ql)=>{"use strict";var DN=Object.prototype.hasOwnProperty,_t="~";function ro(){}i(ro,"Events");Object.create&&(ro.prototype=Object.create(null),new ro().__proto__||(_t=!1));function NN(e,t,r){this.fn=e,this.context=t,this.once=r||!1}i(NN,"EE");function hv(e,t,r,n,o){if(typeof r!="function")throw new TypeError("The listener must be a function");var a=new NN(r,n||e,o),s=_t?_t+t:t;return e._events[s]?e._events[s].fn?e._events[s]=[e._events[s],a]:e._events[s].push(a):(e._events[s]=a,e._eventsCount++),e}i(hv,"addListener");function Ia(e,t){--e._eventsCount===0?e._events=new ro:delete e._events[t]}i(Ia,"clearEvent");function yt(){this._events=new ro,this._eventsCount=0}i(yt,"EventEmitter");yt.prototype.eventNames=i(function(){var t=[],r,n;if(this._eventsCount===0)return t;for(n in r=this._events)DN.call(r,n)&&t.push(_t?n.slice(1):n);return Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(r)):t},"eventNames");yt.prototype.listeners=i(function(t){var r=_t?_t+t:t,n=this._events[r];if(!n)return[];if(n.fn)return[n.fn];for(var o=0,a=n.length,s=new Array(a);o<a;o++)s[o]=n[o].fn;return s},"listeners");yt.prototype.listenerCount=i(function(t){var r=_t?_t+t:t,n=this._events[r];return n?n.fn?1:n.length:0},"listenerCount");yt.prototype.emit=i(function(t,r,n,o,a,s){var u=_t?_t+t:t;if(!this._events[u])return!1;var l=this._events[u],p=arguments.length,c,f;if(l.fn){switch(l.once&&this.removeListener(t,l.fn,void 0,!0),p){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,r),!0;case 3:return l.fn.call(l.context,r,n),!0;case 4:return l.fn.call(l.context,r,n,o),!0;case 5:return l.fn.call(l.context,r,n,o,a),!0;case 6:return l.fn.call(l.context,r,n,o,a,s),!0}for(f=1,c=new Array(p-1);f<p;f++)c[f-1]=arguments[f];l.fn.apply(l.context,c)}else{var m=l.length,d;for(f=0;f<m;f++)switch(l[f].once&&this.removeListener(t,l[f].fn,void 0,!0),p){case 1:l[f].fn.call(l[f].context);break;case 2:l[f].fn.call(l[f].context,r);break;case 3:l[f].fn.call(l[f].context,r,n);break;case 4:l[f].fn.call(l[f].context,r,n,o);break;default:if(!c)for(d=1,c=new Array(p-1);d<p;d++)c[d-1]=arguments[d];l[f].fn.apply(l[f].context,c)}}return!0},"emit");yt.prototype.on=i(function(t,r,n){return hv(this,t,r,n,!1)},"on");yt.prototype.once=i(function(t,r,n){return hv(this,t,r,n,!0)},"once");yt.prototype.removeListener=i(function(t,r,n,o){var a=_t?_t+t:t;if(!this._events[a])return this;if(!r)return Ia(this,a),this;var s=this._events[a];if(s.fn)s.fn===r&&(!o||s.once)&&(!n||s.context===n)&&Ia(this,a);else{for(var u=0,l=[],p=s.length;u<p;u++)(s[u].fn!==r||o&&!s[u].once||n&&s[u].context!==n)&&l.push(s[u]);l.length?this._events[a]=l.length===1?l[0]:l:Ia(this,a)}return this},"removeListener");yt.prototype.removeAllListeners=i(function(t){var r;return t?(r=_t?_t+t:t,this._events[r]&&Ia(this,r)):(this._events=new ro,this._eventsCount=0),this},"removeAllListeners");yt.prototype.off=yt.prototype.removeListener;yt.prototype.addListener=yt.prototype.on;yt.prefixed=_t;yt.EventEmitter=yt;typeof ql<"u"&&(ql.exports=yt)});var vv=b(yv=>{"use strict";Object.defineProperty(yv,"__esModule",{value:!0})});var xv=b(bv=>{"use strict";Object.defineProperty(bv,"__esModule",{value:!0})});var Pv=b(_v=>{"use strict";Object.defineProperty(_v,"__esModule",{value:!0})});var Ev=b(wv=>{"use strict";Object.defineProperty(wv,"__esModule",{value:!0})});var kv=b(Tv=>{"use strict";Object.defineProperty(Tv,"__esModule",{value:!0})});var Av=b(Sv=>{"use strict";Object.defineProperty(Sv,"__esModule",{value:!0})});var Ov=b(Iv=>{"use strict";Object.defineProperty(Iv,"__esModule",{value:!0})});var Rv=b(Cv=>{"use strict";Object.defineProperty(Cv,"__esModule",{value:!0})});var zv=b($v=>{"use strict";Object.defineProperty($v,"__esModule",{value:!0})});var Nv=b(Dv=>{"use strict";Object.defineProperty(Dv,"__esModule",{value:!0})});var Lv=b(Uv=>{"use strict";Object.defineProperty(Uv,"__esModule",{value:!0})});var qv=b(Mv=>{"use strict";Object.defineProperty(Mv,"__esModule",{value:!0})});var Bv=b(Fv=>{"use strict";Object.defineProperty(Fv,"__esModule",{value:!0})});var Vv=b(jv=>{"use strict";Object.defineProperty(jv,"__esModule",{value:!0})});var Zv=b(Hv=>{"use strict";Object.defineProperty(Hv,"__esModule",{value:!0})});var Gv=b(Wv=>{"use strict";Object.defineProperty(Wv,"__esModule",{value:!0})});var Jv=b(Kv=>{"use strict";Object.defineProperty(Kv,"__esModule",{value:!0})});var Yv=b(Xv=>{"use strict";Object.defineProperty(Xv,"__esModule",{value:!0})});var eb=b(Qv=>{"use strict";Object.defineProperty(Qv,"__esModule",{value:!0})});var rb=b(tb=>{"use strict";Object.defineProperty(tb,"__esModule",{value:!0})});var ib=b(nb=>{"use strict";Object.defineProperty(nb,"__esModule",{value:!0})});var ab=b(ob=>{"use strict";Object.defineProperty(ob,"__esModule",{value:!0})});var ub=b(sb=>{"use strict";Object.defineProperty(sb,"__esModule",{value:!0})});var cb=b(lb=>{"use strict";Object.defineProperty(lb,"__esModule",{value:!0})});var db=b(pb=>{"use strict";Object.defineProperty(pb,"__esModule",{value:!0})});var mb=b(fb=>{"use strict";Object.defineProperty(fb,"__esModule",{value:!0})});var gb=b(hb=>{"use strict";Object.defineProperty(hb,"__esModule",{value:!0})});var vb=b(yb=>{"use strict";Object.defineProperty(yb,"__esModule",{value:!0})});var xb=b(bb=>{"use strict";Object.defineProperty(bb,"__esModule",{value:!0})});var Pb=b(_b=>{"use strict";Object.defineProperty(_b,"__esModule",{value:!0})});var Eb=b(wb=>{"use strict";Object.defineProperty(wb,"__esModule",{value:!0})});var kb=b(Tb=>{"use strict";Object.defineProperty(Tb,"__esModule",{value:!0})});var Ab=b(Sb=>{"use strict";Object.defineProperty(Sb,"__esModule",{value:!0})});var Ib=b(be=>{"use strict";var UN=be&&be.__createBinding||(Object.create?(function(e,t,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:i(function(){return t[r]},"get")}),Object.defineProperty(e,n,o)}):(function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]})),Ae=be&&be.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&UN(t,e,r)};Object.defineProperty(be,"__esModule",{value:!0});Ae(Rv(),be);Ae(zv(),be);Ae(Nv(),be);Ae(Lv(),be);Ae(qv(),be);Ae(Bv(),be);Ae(Vv(),be);Ae(Zv(),be);Ae(Gv(),be);Ae(Jv(),be);Ae(Yv(),be);Ae(eb(),be);Ae(rb(),be);Ae(ib(),be);Ae(ab(),be);Ae(ub(),be);Ae(cb(),be);Ae(db(),be);Ae(mb(),be);Ae(gb(),be);Ae(vb(),be);Ae(xb(),be);Ae(Pb(),be);Ae(Eb(),be);Ae(kb(),be);Ae(Ab(),be)});var Cb=b(Ob=>{"use strict";Object.defineProperty(Ob,"__esModule",{value:!0})});var zb=b(Jn=>{"use strict";Object.defineProperty(Jn,"__esModule",{value:!0});Jn.CustomFieldType=Jn.EntityType=void 0;var Rb;(function(e){e.Task="slack#/entities/task",e.File="slack#/entities/file",e.Item="slack#/entities/item",e.Incident="slack#/entities/incident",e.ContentItem="slack#/entities/content_item"})(Rb||(Jn.EntityType=Rb={}));var $b;(function(e){e.Integer="integer",e.String="string",e.Array="array",e.Date="slack#/types/date",e.Timestamp="slack#/types/timestamp",e.Image="slack#/types/image",e.ChannelId="slack#/types/channel_id",e.User="slack#/types/user",e.EntityRef="slack#/types/entity_ref",e.Boolean="boolean",e.Link="slack#/types/link",e.Email="slack#/types/email"})($b||(Jn.CustomFieldType=$b={}))});var Nb=b(Db=>{"use strict";Object.defineProperty(Db,"__esModule",{value:!0})});var Ub=b(dt=>{"use strict";var LN=dt&&dt.__createBinding||(Object.create?(function(e,t,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:i(function(){return t[r]},"get")}),Object.defineProperty(e,n,o)}):(function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]})),rr=dt&&dt.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&LN(t,e,r)};Object.defineProperty(dt,"__esModule",{value:!0});rr(vv(),dt);rr(xv(),dt);rr(Pv(),dt);rr(Ev(),dt);rr(kv(),dt);rr(Av(),dt);rr(Ov(),dt);rr(Ib(),dt);rr(Cb(),dt);rr(zb(),dt);rr(Nb(),dt)});var Bl=b(Cr=>{"use strict";var MN=Cr&&Cr.__createBinding||(Object.create?(function(e,t,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:i(function(){return t[r]},"get")}),Object.defineProperty(e,n,o)}):(function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]})),qN=Cr&&Cr.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&MN(t,e,r)};Object.defineProperty(Cr,"__esModule",{value:!0});Cr.Methods=void 0;var FN=gv(),Lb=jl();function T(e,t){return e.apiCall.bind(e,t)}i(T,"bindApiCall");function fe(e,t){return e.apiCall.bind(e,t)}i(fe,"bindApiCallWithOptionalArgument");function BN(e){return e.filesUploadV2.bind(e)}i(BN,"bindFilesUploadV2");var Fl=class extends FN.EventEmitter{static{i(this,"Methods")}constructor(){if(super(),this.admin={analytics:{getFile:T(this,"admin.analytics.getFile")},apps:{activities:{list:fe(this,"admin.apps.activities.list")},approve:T(this,"admin.apps.approve"),approved:{list:T(this,"admin.apps.approved.list")},clearResolution:T(this,"admin.apps.clearResolution"),config:{lookup:T(this,"admin.apps.config.lookup"),set:T(this,"admin.apps.config.set")},requests:{cancel:T(this,"admin.apps.requests.cancel"),list:T(this,"admin.apps.requests.list")},restrict:T(this,"admin.apps.restrict"),restricted:{list:T(this,"admin.apps.restricted.list")},uninstall:T(this,"admin.apps.uninstall")},auth:{policy:{assignEntities:T(this,"admin.auth.policy.assignEntities"),getEntities:T(this,"admin.auth.policy.getEntities"),removeEntities:T(this,"admin.auth.policy.removeEntities")}},barriers:{create:T(this,"admin.barriers.create"),delete:T(this,"admin.barriers.delete"),list:fe(this,"admin.barriers.list"),update:T(this,"admin.barriers.update")},conversations:{archive:T(this,"admin.conversations.archive"),bulkArchive:T(this,"admin.conversations.bulkArchive"),bulkDelete:T(this,"admin.conversations.bulkDelete"),bulkMove:T(this,"admin.conversations.bulkMove"),convertToPrivate:T(this,"admin.conversations.convertToPrivate"),convertToPublic:T(this,"admin.conversations.convertToPublic"),create:T(this,"admin.conversations.create"),delete:T(this,"admin.conversations.delete"),disconnectShared:T(this,"admin.conversations.disconnectShared"),ekm:{listOriginalConnectedChannelInfo:fe(this,"admin.conversations.ekm.listOriginalConnectedChannelInfo")},getConversationPrefs:T(this,"admin.conversations.getConversationPrefs"),getCustomRetention:T(this,"admin.conversations.getCustomRetention"),getTeams:T(this,"admin.conversations.getTeams"),invite:T(this,"admin.conversations.invite"),lookup:T(this,"admin.conversations.lookup"),removeCustomRetention:T(this,"admin.conversations.removeCustomRetention"),rename:T(this,"admin.conversations.rename"),restrictAccess:{addGroup:T(this,"admin.conversations.restrictAccess.addGroup"),listGroups:T(this,"admin.conversations.restrictAccess.listGroups"),removeGroup:T(this,"admin.conversations.restrictAccess.removeGroup")},search:fe(this,"admin.conversations.search"),setConversationPrefs:T(this,"admin.conversations.setConversationPrefs"),setCustomRetention:T(this,"admin.conversations.setCustomRetention"),setTeams:T(this,"admin.conversations.setTeams"),unarchive:T(this,"admin.conversations.unarchive")},emoji:{add:T(this,"admin.emoji.add"),addAlias:T(this,"admin.emoji.addAlias"),list:fe(this,"admin.emoji.list"),remove:T(this,"admin.emoji.remove"),rename:T(this,"admin.emoji.rename")},functions:{list:T(this,"admin.functions.list"),permissions:{lookup:T(this,"admin.functions.permissions.lookup"),set:T(this,"admin.functions.permissions.set")}},inviteRequests:{approve:T(this,"admin.inviteRequests.approve"),approved:{list:T(this,"admin.inviteRequests.approved.list")},denied:{list:T(this,"admin.inviteRequests.denied.list")},deny:T(this,"admin.inviteRequests.deny"),list:T(this,"admin.inviteRequests.list")},roles:{addAssignments:T(this,"admin.roles.addAssignments"),listAssignments:fe(this,"admin.roles.listAssignments"),removeAssignments:T(this,"admin.roles.removeAssignments")},teams:{admins:{list:T(this,"admin.teams.admins.list")},create:T(this,"admin.teams.create"),list:fe(this,"admin.teams.list"),owners:{list:T(this,"admin.teams.owners.list")},settings:{info:T(this,"admin.teams.settings.info"),setDefaultChannels:T(this,"admin.teams.settings.setDefaultChannels"),setDescription:T(this,"admin.teams.settings.setDescription"),setDiscoverability:T(this,"admin.teams.settings.setDiscoverability"),setIcon:T(this,"admin.teams.settings.setIcon"),setName:T(this,"admin.teams.settings.setName")}},usergroups:{addChannels:T(this,"admin.usergroups.addChannels"),addTeams:T(this,"admin.usergroups.addTeams"),listChannels:T(this,"admin.usergroups.listChannels"),removeChannels:T(this,"admin.usergroups.removeChannels")},users:{assign:T(this,"admin.users.assign"),invite:T(this,"admin.users.invite"),list:fe(this,"admin.users.list"),remove:T(this,"admin.users.remove"),session:{clearSettings:T(this,"admin.users.session.clearSettings"),getSettings:T(this,"admin.users.session.getSettings"),invalidate:T(this,"admin.users.session.invalidate"),list:fe(this,"admin.users.session.list"),reset:T(this,"admin.users.session.reset"),resetBulk:T(this,"admin.users.session.resetBulk"),setSettings:T(this,"admin.users.session.setSettings")},setAdmin:T(this,"admin.users.setAdmin"),setExpiration:T(this,"admin.users.setExpiration"),setOwner:T(this,"admin.users.setOwner"),setRegular:T(this,"admin.users.setRegular"),unsupportedVersions:{export:T(this,"admin.users.unsupportedVersions.export")}},workflows:{collaborators:{add:T(this,"admin.workflows.collaborators.add"),remove:T(this,"admin.workflows.collaborators.remove")},permissions:{lookup:T(this,"admin.workflows.permissions.lookup")},search:fe(this,"admin.workflows.search"),unpublish:T(this,"admin.workflows.unpublish")}},this.api={test:fe(this,"api.test")},this.assistant={threads:{setStatus:T(this,"assistant.threads.setStatus"),setSuggestedPrompts:T(this,"assistant.threads.setSuggestedPrompts"),setTitle:T(this,"assistant.threads.setTitle")}},this.apps={connections:{open:fe(this,"apps.connections.open")},event:{authorizations:{list:T(this,"apps.event.authorizations.list")}},manifest:{create:T(this,"apps.manifest.create"),delete:T(this,"apps.manifest.delete"),export:T(this,"apps.manifest.export"),update:T(this,"apps.manifest.update"),validate:T(this,"apps.manifest.validate")},uninstall:T(this,"apps.uninstall")},this.auth={revoke:fe(this,"auth.revoke"),teams:{list:fe(this,"auth.teams.list")},test:fe(this,"auth.test")},this.bookmarks={add:T(this,"bookmarks.add"),edit:T(this,"bookmarks.edit"),list:T(this,"bookmarks.list"),remove:T(this,"bookmarks.remove")},this.bots={info:fe(this,"bots.info")},this.calls={add:T(this,"calls.add"),end:T(this,"calls.end"),info:T(this,"calls.info"),update:T(this,"calls.update"),participants:{add:T(this,"calls.participants.add"),remove:T(this,"calls.participants.remove")}},this.canvases={access:{delete:T(this,"canvases.access.delete"),set:T(this,"canvases.access.set")},create:fe(this,"canvases.create"),delete:T(this,"canvases.delete"),edit:T(this,"canvases.edit"),sections:{lookup:T(this,"canvases.sections.lookup")}},this.chat={delete:T(this,"chat.delete"),deleteScheduledMessage:T(this,"chat.deleteScheduledMessage"),getPermalink:T(this,"chat.getPermalink"),meMessage:T(this,"chat.meMessage"),postEphemeral:T(this,"chat.postEphemeral"),postMessage:T(this,"chat.postMessage"),scheduleMessage:T(this,"chat.scheduleMessage"),scheduledMessages:{list:fe(this,"chat.scheduledMessages.list")},unfurl:T(this,"chat.unfurl"),update:T(this,"chat.update")},this.conversations={acceptSharedInvite:T(this,"conversations.acceptSharedInvite"),approveSharedInvite:T(this,"conversations.approveSharedInvite"),archive:T(this,"conversations.archive"),canvases:{create:T(this,"conversations.canvases.create")},close:T(this,"conversations.close"),create:T(this,"conversations.create"),declineSharedInvite:T(this,"conversations.declineSharedInvite"),externalInvitePermissions:{set:T(this,"conversations.externalInvitePermissions.set")},history:T(this,"conversations.history"),info:T(this,"conversations.info"),invite:T(this,"conversations.invite"),inviteShared:T(this,"conversations.inviteShared"),join:T(this,"conversations.join"),kick:T(this,"conversations.kick"),leave:T(this,"conversations.leave"),list:fe(this,"conversations.list"),listConnectInvites:fe(this,"conversations.listConnectInvites"),mark:T(this,"conversations.mark"),members:T(this,"conversations.members"),open:T(this,"conversations.open"),rename:T(this,"conversations.rename"),replies:T(this,"conversations.replies"),requestSharedInvite:{approve:T(this,"conversations.requestSharedInvite.approve"),deny:T(this,"conversations.requestSharedInvite.deny"),list:fe(this,"conversations.requestSharedInvite.list")},setPurpose:T(this,"conversations.setPurpose"),setTopic:T(this,"conversations.setTopic"),unarchive:T(this,"conversations.unarchive")},this.dialog={open:T(this,"dialog.open")},this.dnd={endDnd:fe(this,"dnd.endDnd"),endSnooze:fe(this,"dnd.endSnooze"),info:fe(this,"dnd.info"),setSnooze:T(this,"dnd.setSnooze"),teamInfo:T(this,"dnd.teamInfo")},this.emoji={list:fe(this,"emoji.list")},this.files={completeUploadExternal:T(this,"files.completeUploadExternal"),delete:T(this,"files.delete"),getUploadURLExternal:T(this,"files.getUploadURLExternal"),info:T(this,"files.info"),list:T(this,"files.list"),revokePublicURL:T(this,"files.revokePublicURL"),sharedPublicURL:T(this,"files.sharedPublicURL"),upload:T(this,"files.upload"),uploadV2:BN(this),comments:{delete:T(this,"files.comments.delete")},remote:{add:T(this,"files.remote.add"),info:T(this,"files.remote.info"),list:T(this,"files.remote.list"),remove:T(this,"files.remote.remove"),share:T(this,"files.remote.share"),update:T(this,"files.remote.update")}},this.functions={completeError:T(this,"functions.completeError"),completeSuccess:T(this,"functions.completeSuccess")},this.migration={exchange:T(this,"migration.exchange")},this.oauth={access:T(this,"oauth.access"),v2:{access:T(this,"oauth.v2.access"),exchange:T(this,"oauth.v2.exchange")}},this.openid={connect:{token:T(this,"openid.connect.token"),userInfo:fe(this,"openid.connect.userInfo")}},this.pins={add:T(this,"pins.add"),list:T(this,"pins.list"),remove:T(this,"pins.remove")},this.reactions={add:T(this,"reactions.add"),get:T(this,"reactions.get"),list:fe(this,"reactions.list"),remove:T(this,"reactions.remove")},this.reminders={add:T(this,"reminders.add"),complete:T(this,"reminders.complete"),delete:T(this,"reminders.delete"),info:T(this,"reminders.info"),list:fe(this,"reminders.list")},this.rtm={connect:fe(this,"rtm.connect"),start:fe(this,"rtm.start")},this.search={all:T(this,"search.all"),files:T(this,"search.files"),messages:T(this,"search.messages")},this.team={accessLogs:fe(this,"team.accessLogs"),billableInfo:fe(this,"team.billableInfo"),billing:{info:T(this,"team.billing.info")},externalTeams:{disconnect:T(this,"team.externalTeams.disconnect"),list:T(this,"team.externalTeams.list")},info:fe(this,"team.info"),integrationLogs:fe(this,"team.integrationLogs"),preferences:{list:fe(this,"team.preferences.list")},profile:{get:fe(this,"team.profile.get")}},this.tooling={tokens:{rotate:T(this,"tooling.tokens.rotate")}},this.usergroups={create:T(this,"usergroups.create"),disable:T(this,"usergroups.disable"),enable:T(this,"usergroups.enable"),list:fe(this,"usergroups.list"),update:T(this,"usergroups.update"),users:{list:T(this,"usergroups.users.list"),update:T(this,"usergroups.users.update")}},this.users={conversations:T(this,"users.conversations"),deletePhoto:T(this,"users.deletePhoto"),discoverableContacts:{lookup:T(this,"users.discoverableContacts.lookup")},getPresence:T(this,"users.getPresence"),identity:T(this,"users.identity"),info:T(this,"users.info"),list:T(this,"users.list"),lookupByEmail:T(this,"users.lookupByEmail"),setPhoto:T(this,"users.setPhoto"),setPresence:T(this,"users.setPresence"),profile:{get:T(this,"users.profile.get"),set:T(this,"users.profile.set")}},this.views={open:T(this,"views.open"),publish:T(this,"views.publish"),push:T(this,"views.push"),update:T(this,"views.update")},this.stars={add:T(this,"stars.add"),list:T(this,"stars.list"),remove:T(this,"stars.remove")},this.workflows={stepCompleted:T(this,"workflows.stepCompleted"),stepFailed:T(this,"workflows.stepFailed"),updateStep:T(this,"workflows.updateStep")},new.target!==Lb.WebClient&&!(new.target.prototype instanceof Lb.WebClient))throw new Error("Attempt to inherit from WebClient methods without inheriting from WebClient")}};Cr.Methods=Fl;qN(Ub(),Cr)});var Vl=b(Vt=>{"use strict";Object.defineProperty(Vt,"__esModule",{value:!0});Vt.rapidRetryPolicy=Vt.fiveRetriesInFiveMinutes=Vt.tenRetriesInAboutThirtyMinutes=void 0;Vt.tenRetriesInAboutThirtyMinutes={retries:10,factor:1.96821,randomize:!0};Vt.fiveRetriesInFiveMinutes={retries:5,factor:3.86};Vt.rapidRetryPolicy={minTimeout:0,maxTimeout:1};var jN={tenRetriesInAboutThirtyMinutes:Vt.tenRetriesInAboutThirtyMinutes,fiveRetriesInFiveMinutes:Vt.fiveRetriesInFiveMinutes,rapidRetryPolicy:Vt.rapidRetryPolicy};Vt.default=jN});var jl=b(De=>{"use strict";var VN=De&&De.__createBinding||(Object.create?(function(e,t,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:i(function(){return t[r]},"get")}),Object.defineProperty(e,n,o)}):(function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]})),HN=De&&De.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),ZN=De&&De.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&VN(t,e,r);return HN(t,e),t},nr=De&&De.__awaiter||function(e,t,r,n){function o(a){return a instanceof r?a:new r(function(s){s(a)})}return i(o,"adopt"),new(r||(r=Promise))(function(a,s){function u(c){try{p(n.next(c))}catch(f){s(f)}}i(u,"fulfilled");function l(c){try{p(n.throw(c))}catch(f){s(f)}}i(l,"rejected");function p(c){c.done?a(c.value):o(c.value).then(u,l)}i(p,"step"),p((n=n.apply(e,t||[])).next())})},io=De&&De.__await||function(e){return this instanceof io?(this.v=e,this):new io(e)},WN=De&&De.__asyncGenerator||function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(e,t||[]),o,a=[];return o={},u("next"),u("throw"),u("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(d){return function(h){return Promise.resolve(h).then(d,f)}}function u(d,h){n[d]&&(o[d]=function(_){return new Promise(function(v,y){a.push([d,_,v,y])>1||l(d,_)})},h&&(o[d]=h(o[d])))}function l(d,h){try{p(n[d](h))}catch(_){m(a[0][3],_)}}function p(d){d.value instanceof io?Promise.resolve(d.value.v).then(c,f):m(a[0][2],d)}function c(d){l("next",d)}function f(d){l("throw",d)}function m(d,h){d(h),a.shift(),a.length&&l(a[0][0],a[0][1])}},GN=De&&De.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof __values=="function"?__values(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(a){r[a]=e[a]&&function(s){return new Promise(function(u,l){s=e[a](s),o(u,l,s.done,s.value)})}}function o(a,s,u,l){Promise.resolve(l).then(function(p){a({value:p,done:u})},s)}},vn=De&&De.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(De,"__esModule",{value:!0});De.buildThreadTsWarningMessage=De.WebClient=De.WebClientEvent=void 0;var Mb=require("node:path"),KN=require("node:querystring"),JN=require("node:util"),XN=vn(require("node:zlib")),YN=vn(gy()),QN=vn(xy()),e1=vn(Py()),Zl=vn(Ey()),t1=vn(zy()),Hl=ZN(Fy()),no=Sa(),Oa=sv(),r1=vn(uv()),n1=Ul(),qb=Ml(),i1=Bl(),o1=Vl(),a1=["delete","common","get","put","head","post","link","patch","purge","unlink","options"],s1="Untitled",u1=200,l1=i(()=>{},"noopPageReducer"),Wl;(function(e){e.RATE_LIMITED="rate_limited"})(Wl||(De.WebClientEvent=Wl={}));var oo=class e extends i1.Methods{static{i(this,"WebClient")}constructor(t,{slackApiUrl:r="https://slack.com/api/",logger:n=void 0,logLevel:o=void 0,maxRequestConcurrency:a=100,retryConfig:s=o1.tenRetriesInAboutThirtyMinutes,agent:u=void 0,tls:l=void 0,timeout:p=0,rejectRateLimitedCalls:c=!1,headers:f={},teamId:m=void 0,allowAbsoluteUrls:d=!0,attachOriginalToWebAPIRequestError:h=!0,requestInterceptor:_=void 0,adapter:v=void 0}={}){super(),this.token=t,this.slackApiUrl=r,this.retryConfig=s,this.requestQueue=new t1.default({concurrency:a}),this.tlsConfig=l!==void 0?l:{},this.rejectRateLimitedCalls=c,this.teamId=m,this.allowAbsoluteUrls=d,this.attachOriginalToWebAPIRequestError=h,typeof n<"u"?(this.logger=n,typeof o<"u"&&this.logger.debug("The logLevel given to WebClient was ignored as you also gave logger")):this.logger=(0,qb.getLogger)(e.loggerName,o??qb.LogLevel.INFO,n),this.token&&!f.Authorization&&(f.Authorization=`Bearer ${this.token}`),this.axios=YN.default.create({adapter:v?y=>v(Object.assign(Object.assign({},y),{adapter:void 0})):void 0,timeout:p,baseURL:r,allowAbsoluteUrls:d,headers:(0,e1.default)()?f:Object.assign({"User-Agent":(0,n1.getUserAgent)()},f),httpAgent:u,httpsAgent:u,validateStatus:i(()=>!0,"validateStatus"),maxRedirects:0,proxy:!1}),this.axios.defaults.headers.post["Content-Type"]=void 0,_&&this.axios.interceptors.request.use(_,null),this.axios.interceptors.request.use(this.serializeApiCallData.bind(this),null),this.logger.debug("initialized")}apiCall(t,r={}){return nr(this,void 0,void 0,function*(){if(this.logger.debug(`apiCall('${t}') start`),p1(t,this.logger),d1(t,this.logger,r),f1(t,this.logger,r),typeof r=="string"||typeof r=="number"||typeof r=="boolean")throw new TypeError(`Expected an options argument but instead received a ${typeof r}`);if((0,Oa.warnIfNotUsingFilesUploadV2)(t,this.logger),t==="files.uploadV2")return this.filesUploadV2(r);let n={};r.token&&(n.Authorization=`Bearer ${r.token}`);let o=yield this.makeRequest(t,Object.assign({team_id:this.teamId},r),n),a=yield this.buildResult(o);if(this.logger.debug(`http request result: ${JSON.stringify(a)}`),a.response_metadata!==void 0&&a.response_metadata.warnings!==void 0&&a.response_metadata.warnings.forEach(this.logger.warn.bind(this.logger)),a.response_metadata!==void 0&&a.response_metadata.messages!==void 0)for(let s of a.response_metadata.messages){let u=/\[ERROR\](.*)/,l=/\[WARN\](.*)/;if(u.test(s)){let p=s.match(u);p!=null&&this.logger.error(p[1].trim())}else if(l.test(s)){let p=s.match(l);p!=null&&this.logger.warn(p[1].trim())}}if(!a.ok&&o.headers["content-type"]!=="application/gzip"||"ok"in a&&a.ok===!1)throw(0,no.platformErrorFromResult)(a);return this.logger.debug(`apiCall('${t}') end`),a})}paginate(t,r,n,o){let a=(()=>{if(r!==void 0&&typeof r.limit=="number"){let{limit:p}=r;return r.limit=void 0,p}return u1})();function s(){return WN(this,arguments,i(function*(){let c,f={limit:a};for(r!==void 0&&r.cursor!==void 0&&(f.cursor=r.cursor);c===void 0||f!==void 0;)c=yield io(this.apiCall(t,Object.assign(r!==void 0?r:{},f))),yield yield io(c),f=c1(c,a)},"generatePages_1"))}if(i(s,"generatePages"),n===void 0)return s.call(this);let u=o!==void 0?o:l1,l=0;return nr(this,void 0,void 0,function*(){var p,c,f,m;let d=s.call(this),_=(yield d.next(void 0)).value,v=u(void 0,_,l);if(l+=1,n(_))return v;try{for(var y=!0,P=GN(d),E;E=yield P.next(),p=E.done,!p;y=!0){m=E.value,y=!1;let I=m;if(v=u(v,I,l),n(I))return v;l+=1}}catch(I){c={error:I}}finally{try{!y&&!p&&(f=P.return)&&(yield f.call(P))}finally{if(c)throw c.error}}return v})}filesUploadV2(t){return nr(this,void 0,void 0,function*(){this.logger.debug("files.uploadV2() start");let r=yield this.getAllFileUploads(t);return(yield this.fetchAllUploadURLExternal(r)).forEach((a,s)=>{r[s].upload_url=a.upload_url,r[s].file_id=a.file_id}),yield this.postFileUploadsToExternalURL(r,t),{ok:!0,files:yield this.completeFileUploads(r)}})}fetchAllUploadURLExternal(t){return nr(this,void 0,void 0,function*(){return Promise.all(t.map(r=>{let n={filename:r.filename,length:r.length,alt_text:r.alt_text,snippet_type:r.snippet_type};return"token"in r&&(n.token=r.token),this.files.getUploadURLExternal(n)}))})}completeFileUploads(t){return nr(this,void 0,void 0,function*(){let r=Object.values((0,Oa.getAllFileUploadsToComplete)(t));return Promise.all(r.map(n=>this.files.completeUploadExternal(n)))})}postFileUploadsToExternalURL(t,r){return nr(this,void 0,void 0,function*(){return Promise.all(t.map(n=>nr(this,void 0,void 0,function*(){let{upload_url:o,file_id:a,filename:s,data:u}=n,l=u;if(o){let p={};r.token&&(p.Authorization=`Bearer ${r.token}`);let c=yield this.makeRequest(o,{body:l},p);if(c.status!==200)return Promise.reject(Error(`Failed to upload file (id:${a}, filename: ${s})`));let f={ok:!0,body:c.data};return Promise.resolve(f)}return Promise.reject(Error(`No upload url found for file (id: ${a}, filename: ${s}`))})))})}getAllFileUploads(t){return nr(this,void 0,void 0,function*(){let r=[];return("file"in t||"content"in t)&&r.push(yield(0,Oa.getFileUploadJob)(t,this.logger)),"file_uploads"in t&&(r=r.concat(yield(0,Oa.getMultipleFileUploadJobs)(t,this.logger))),r})}makeRequest(t,r,n={}){return nr(this,void 0,void 0,function*(){let o=i(()=>this.requestQueue.add(()=>nr(this,void 0,void 0,function*(){let a=this.deriveRequestUrl(t);try{let s=Object.assign({headers:n},this.tlsConfig);t.endsWith("admin.analytics.getFile")&&(s.responseType="arraybuffer"),t.endsWith("apps.event.authorizations.list")&&(r.token=void 0),this.logger.debug(`http request url: ${a}`),this.logger.debug(`http request body: ${JSON.stringify(Bb(r))}`);let u=Object.keys(this.axios.defaults.headers).reduce((p,c)=>(a1.includes(c)||(p[c]=this.axios.defaults.headers[c]),p),{});u=Object.assign(Object.assign(Object.assign({},this.axios.defaults.headers.common),u),n),this.logger.debug(`http request headers: ${JSON.stringify(Bb(u))}`);let l=yield this.axios.post(t,r,s);if(this.logger.debug("http response received"),l.status===429){let p=Fb(l);throw p!==void 0?(this.emit(Wl.RATE_LIMITED,p,{url:t,body:r}),this.rejectRateLimitedCalls?new Hl.AbortError((0,no.rateLimitedErrorWithDelay)(p)):(this.logger.info(`API Call failed due to rate limiting. Will retry in ${p} seconds.`),this.requestQueue.pause(),yield(0,r1.default)(p*1e3),this.requestQueue.start(),new Error(`A rate limit was exceeded (url: ${t}, retry-after: ${p})`))):new Hl.AbortError(new Error(`Retry header did not contain a valid timeout (url: ${t}, retry-after header: ${l.headers["retry-after"]})`))}if(l.status!==200)throw(0,no.httpErrorFromResponse)(l);return l}catch(s){let u=s;throw this.logger.warn("http request failed",u.message),u.request?(0,no.requestErrorWithOriginal)(u,this.attachOriginalToWebAPIRequestError):s}})),"task");return(0,Hl.default)(o,this.retryConfig)})}deriveRequestUrl(t){return(t.startsWith("https://")||t.startsWith("http://"))&&this.allowAbsoluteUrls?t:`${this.axios.getUri()+t}`}serializeApiCallData(t){let{data:r,headers:n}=t,o=!1,a=Object.entries(r).map(([u,l])=>{if(l==null)return[];let p=l;return Buffer.isBuffer(l)||(0,Zl.default)(l)?o=!0:typeof l!="string"&&typeof l!="number"&&typeof l!="boolean"&&(p=JSON.stringify(l)),[u,p]});if(o){this.logger.debug("Request arguments contain binary data");let u=a.reduce((l,[p,c])=>{if(Buffer.isBuffer(c)||(0,Zl.default)(c)){let f={};f.filename=(()=>{let m=c;return typeof m.name=="string"?(0,Mb.basename)(m.name):typeof m.path=="string"?(0,Mb.basename)(m.path):s1})(),l.append(p,c,f)}else p!==void 0&&c!==void 0&&l.append(p,c);return l},new QN.default);if(n)for(let[l,p]of Object.entries(u.getHeaders()))n[l]=p;return t.data=u,t.headers=n,t}n&&(n["Content-Type"]="application/x-www-form-urlencoded");let s={};return t.data=(0,KN.stringify)(a.reduce((u,[l,p])=>(l!==void 0&&p!==void 0&&(u[l]=p),u),s)),t.headers=n,t}buildResult(t){return nr(this,void 0,void 0,function*(){let{data:r}=t,n=t.headers["content-type"]==="application/gzip";if(n)try{let a=yield new Promise((u,l)=>{XN.default.unzip(r,(p,c)=>p?l(p):u(c.toString().split(`
26
+ `)))}).then(u=>u).catch(u=>{throw u}),s=[];if(Array.isArray(a))for(let u of a)u&&u.length>0&&s.push(JSON.parse(u));r={file_data:s}}catch(a){r={ok:!1,error:a}}else!n&&t.request.path==="/api/admin.analytics.getFile"&&(r=JSON.parse(new JN.TextDecoder().decode(r)));if(typeof r=="string")try{r=JSON.parse(r)}catch{r={ok:!1,error:r}}r.response_metadata===void 0&&(r.response_metadata={}),t.headers["x-oauth-scopes"]!==void 0&&(r.response_metadata.scopes=t.headers["x-oauth-scopes"].trim().split(/\s*,\s*/)),t.headers["x-accepted-oauth-scopes"]!==void 0&&(r.response_metadata.acceptedScopes=t.headers["x-accepted-oauth-scopes"].trim().split(/\s*,\s*/));let o=Fb(t);return o!==void 0&&(r.response_metadata.retryAfter=o),r})}};De.WebClient=oo;oo.loggerName="WebClient";De.default=oo;function c1(e,t){if(e!==void 0&&e.response_metadata!==void 0&&e.response_metadata.next_cursor!==void 0&&e.response_metadata.next_cursor!=="")return{limit:t,cursor:e.response_metadata.next_cursor}}i(c1,"paginationOptionsForNextPage");function Fb(e){if(e.headers["retry-after"]!==void 0){let t=Number.parseInt(e.headers["retry-after"],10);if(!Number.isNaN(t))return t}}i(Fb,"parseRetryHeaders");function p1(e,t){["workflows."].some(o=>new RegExp(`^${o}`).test(e))&&t.warn(`${e} is deprecated. Please check on https://api.slack.com/methods for an alternative.`)}i(p1,"warnDeprecations");function d1(e,t,r){let o=["chat.postEphemeral","chat.postMessage","chat.scheduleMessage"].includes(e),a=i(c=>Array.isArray(c.attachments)&&c.attachments.length,"hasAttachments"),s=i(c=>Array.isArray(c.attachments)&&c.attachments.some(f=>!f.fallback||f.fallback.trim()===""),"missingAttachmentFallbackDetected"),u=i(c=>c.text===void 0||c.text===null||c.text==="","isEmptyText"),l=i(()=>`The top-level \`text\` argument is missing in the request payload for a ${e} call - It's a best practice to always provide a \`text\` argument when posting a message. The \`text\` is used in places where the content cannot be rendered such as: system push notifications, assistive technology such as screen readers, etc.`,"buildMissingTextWarning"),p=i(()=>`Additionally, the attachment-level \`fallback\` argument is missing in the request payload for a ${e} call - To avoid this warning, it is recommended to always provide a top-level \`text\` argument when posting a message. Alternatively, you can provide an attachment-level \`fallback\` argument, though this is now considered a legacy field (see https://api.slack.com/reference/messaging/attachments#legacy_fields for more details).`,"buildMissingFallbackWarning");o&&typeof r=="object"&&(a(r)?s(r)&&u(r)&&(t.warn(l()),t.warn(p())):u(r)&&t.warn(l()))}i(d1,"warnIfFallbackIsMissing");function f1(e,t,r){["chat.postEphemeral","chat.postMessage","chat.scheduleMessage","files.upload"].includes(e)&&r?.thread_ts!==void 0&&typeof r?.thread_ts!="string"&&t.warn(jb(e))}i(f1,"warnIfThreadTsIsNotString");function jb(e){return`The given thread_ts value in the request payload for a ${e} call is a float value. We highly recommend using a string value instead.`}i(jb,"buildThreadTsWarningMessage");De.buildThreadTsWarningMessage=jb;function Bb(e){let t=Object.entries(e).map(([n,o])=>{if(o==null)return[];let a=o;return(n.match(/.*token.*/)!==null||n.match(/[Aa]uthorization/))&&(a="[[REDACTED]]"),Buffer.isBuffer(o)||(0,Zl.default)(o)?a="[[BINARY VALUE OMITTED]]":typeof o!="string"&&typeof o!="number"&&typeof o!="boolean"&&(a=JSON.stringify(o)),[n,a]}),r={};return t.reduce((n,[o,a])=>(o!==void 0&&a!==void 0&&(n[o]=a),n),r)}i(Bb,"redact")});var Hb=b(Vb=>{"use strict";Object.defineProperty(Vb,"__esModule",{value:!0})});var Wb=b(Zb=>{"use strict";Object.defineProperty(Zb,"__esModule",{value:!0})});var Se=b(Be=>{"use strict";var m1=Be&&Be.__createBinding||(Object.create?(function(e,t,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:i(function(){return t[r]},"get")}),Object.defineProperty(e,n,o)}):(function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]})),Gl=Be&&Be.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&m1(t,e,r)},h1=Be&&Be.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Be,"__esModule",{value:!0});Be.addAppMetadata=Be.retryPolicies=Be.ErrorCode=Be.LogLevel=Be.WebClientEvent=Be.WebClient=void 0;var Gb=jl();Object.defineProperty(Be,"WebClient",{enumerable:!0,get:i(function(){return Gb.WebClient},"get")});Object.defineProperty(Be,"WebClientEvent",{enumerable:!0,get:i(function(){return Gb.WebClientEvent},"get")});var g1=Ml();Object.defineProperty(Be,"LogLevel",{enumerable:!0,get:i(function(){return g1.LogLevel},"get")});var y1=Sa();Object.defineProperty(Be,"ErrorCode",{enumerable:!0,get:i(function(){return y1.ErrorCode},"get")});var v1=Vl();Object.defineProperty(Be,"retryPolicies",{enumerable:!0,get:i(function(){return h1(v1).default},"get")});var b1=Ul();Object.defineProperty(Be,"addAppMetadata",{enumerable:!0,get:i(function(){return b1.addAppMetadata},"get")});Gl(Bl(),Be);Gl(Hb(),Be);Gl(Wb(),Be)});var Yl=b((Eae,Cx)=>{"use strict";var x1={}.hasOwnProperty;Cx.exports=x1});var $x=b((Tae,Rx)=>{"use strict";var _1=[].splice;Rx.exports=_1});var dr=b((kae,zx)=>{"use strict";var Ql=$x();function P1(e,t,r,n){var o=e.length,a=0,s;if(t<0?t=-t>o?0:o+t:t=t>o?o:t,r=r>0?r:0,n.length<1e4)s=Array.from(n),s.unshift(t,r),Ql.apply(e,s);else for(r&&Ql.apply(e,[t,r]);a<n.length;)s=n.slice(a,a+1e4),s.unshift(t,0),Ql.apply(e,s),a+=1e4,t+=1e4}i(P1,"chunkedSplice");zx.exports=P1});var La=b((Aae,Dx)=>{"use strict";function w1(e){return e==null?[]:"length"in e?e:[e]}i(w1,"miniflat");Dx.exports=w1});var ec=b((Oae,Ux)=>{"use strict";var Nx=Yl(),E1=dr(),T1=La();function k1(e){for(var t={},r=-1;++r<e.length;)S1(t,e[r]);return t}i(k1,"combineExtensions");function S1(e,t){var r,n,o,a;for(r in t){n=Nx.call(e,r)?e[r]:e[r]={},o=t[r];for(a in o)n[a]=A1(T1(o[a]),Nx.call(n,a)?n[a]:[])}}i(S1,"extension");function A1(e,t){for(var r=-1,n=[];++r<e.length;)(e[r].add==="after"?t:n).push(e[r]);return E1(t,0,0,n),t}i(A1,"constructs");Ux.exports=k1});var so=b((Rae,Lx)=>{"use strict";var I1=String.fromCharCode;Lx.exports=I1});var $r=b(($ae,Mx)=>{"use strict";var O1=so();function C1(e){return t;function t(r){return e.test(O1(r))}}i(C1,"regexCheck");Mx.exports=C1});var uo=b((Dae,qx)=>{"use strict";var R1=$r(),$1=R1(/[A-Za-z]/);qx.exports=$1});var Qn=b((Nae,Fx)=>{"use strict";var z1=$r(),D1=z1(/[\dA-Za-z]/);Fx.exports=D1});var Ma=b((Uae,Bx)=>{"use strict";function N1(e){return e<32||e===127}i(N1,"asciiControl");Bx.exports=N1});var Ye=b((Mae,jx)=>{"use strict";function U1(e){return e<-2}i(U1,"markdownLineEnding");jx.exports=U1});var Hx=b((Fae,Vx)=>{"use strict";var L1=/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/;Vx.exports=L1});var qa=b((Bae,Zx)=>{"use strict";var M1=Hx(),q1=$r(),F1=q1(M1);Zx.exports=F1});var Fa=b((jae,Wx)=>{"use strict";var B1=$r(),j1=B1(/\s/);Wx.exports=j1});var l_=b(u_=>{var Kx=uo(),Jx=Qn(),Xx=Ma(),V1=Ye(),Yx=qa(),Qx=Fa(),H1={tokenize:K1,partial:!0},e_={tokenize:J1,partial:!0},t_={tokenize:X1,partial:!0},ei={tokenize:Q1,partial:!0},r_={tokenize:Y1,partial:!0},n_={tokenize:W1,previous:a_},i_={tokenize:G1,previous:rc},zr={tokenize:Z1,previous:s_},fr={};u_.text=fr;var bn=48;for(;bn<123;)fr[bn]=zr,bn++,bn===58?bn=65:bn===91&&(bn=97);fr[43]=zr;fr[45]=zr;fr[46]=zr;fr[95]=zr;fr[72]=[zr,i_];fr[104]=[zr,i_];fr[87]=[zr,n_];fr[119]=[zr,n_];function Z1(e,t,r){var n=this,o;return a;function a(m){return!Gx(m)||!s_(n.previous)||nc(n.events)?r(m):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(m))}function s(m){return Gx(m)?(e.consume(m),s):m===64?(e.consume(m),u):r(m)}function u(m){return m===46?e.check(ei,f,l)(m):m===45||m===95?e.check(ei,r,p)(m):Jx(m)?(e.consume(m),u):f(m)}function l(m){return e.consume(m),o=!0,u}function p(m){return e.consume(m),c}function c(m){return m===46?e.check(ei,r,l)(m):u(m)}function f(m){return o?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(m)):r(m)}}i(Z1,"tokenizeEmailAutolink");function W1(e,t,r){var n=this;return o;function o(s){return s!==87&&s-32!==87||!a_(n.previous)||nc(n.events)?r(s):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(H1,e.attempt(e_,e.attempt(t_,a),r),r)(s))}function a(s){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(s)}}i(W1,"tokenizeWwwAutolink");function G1(e,t,r){var n=this;return o;function o(h){return h!==72&&h-32!==72||!rc(n.previous)||nc(n.events)?r(h):(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),e.consume(h),a)}function a(h){return h===84||h-32===84?(e.consume(h),s):r(h)}function s(h){return h===84||h-32===84?(e.consume(h),u):r(h)}function u(h){return h===80||h-32===80?(e.consume(h),l):r(h)}function l(h){return h===83||h-32===83?(e.consume(h),p):p(h)}function p(h){return h===58?(e.consume(h),c):r(h)}function c(h){return h===47?(e.consume(h),f):r(h)}function f(h){return h===47?(e.consume(h),m):r(h)}function m(h){return Xx(h)||Qx(h)||Yx(h)?r(h):e.attempt(e_,e.attempt(t_,d),r)(h)}function d(h){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(h)}}i(G1,"tokenizeHttpAutolink");function K1(e,t,r){return n;function n(l){return e.consume(l),o}function o(l){return l===87||l-32===87?(e.consume(l),a):r(l)}function a(l){return l===87||l-32===87?(e.consume(l),s):r(l)}function s(l){return l===46?(e.consume(l),u):r(l)}function u(l){return l===null||V1(l)?r(l):t(l)}}i(K1,"tokenizeWww");function J1(e,t,r){var n,o;return a;function a(l){return l===38?e.check(r_,u,s)(l):l===46||l===95?e.check(ei,u,s)(l):Xx(l)||Qx(l)||l!==45&&Yx(l)?u(l):(e.consume(l),a)}function s(l){return l===46?(o=n,n=void 0,e.consume(l),a):(l===95&&(n=!0),e.consume(l),a)}function u(l){return!o&&!n?t(l):r(l)}}i(J1,"tokenizeDomain");function X1(e,t){var r=0;return n;function n(s){return s===38?e.check(r_,t,o)(s):(s===40&&r++,s===41?e.check(ei,a,o)(s):tc(s)?t(s):o_(s)?e.check(ei,t,o)(s):(e.consume(s),n))}function o(s){return e.consume(s),n}function a(s){return r--,r<0?t(s):o(s)}}i(X1,"tokenizePath");function Y1(e,t,r){return n;function n(s){return e.consume(s),o}function o(s){return Kx(s)?(e.consume(s),o):s===59?(e.consume(s),a):r(s)}function a(s){return tc(s)?t(s):r(s)}}i(Y1,"tokenizeNamedCharacterReference");function Q1(e,t,r){return n;function n(a){return e.consume(a),o}function o(a){return o_(a)?(e.consume(a),o):tc(a)?t(a):r(a)}}i(Q1,"tokenizePunctuation");function o_(e){return e===33||e===34||e===39||e===41||e===42||e===44||e===46||e===58||e===59||e===60||e===63||e===95||e===126}i(o_,"trailingPunctuation");function tc(e){return e===null||e<0||e===32||e===60}i(tc,"pathEnd");function Gx(e){return e===43||e===45||e===46||e===95||Jx(e)}i(Gx,"gfmAtext");function a_(e){return e===null||e<0||e===32||e===40||e===42||e===95||e===126}i(a_,"previousWww");function rc(e){return e===null||!Kx(e)}i(rc,"previousHttp");function s_(e){return e!==47&&rc(e)}i(s_,"previousEmail");function nc(e){for(var t=e.length;t--;)if((e[t][1].type==="labelLink"||e[t][1].type==="labelImage")&&!e[t][1]._balanced)return!0}i(nc,"previous")});var p_=b((Zae,c_)=>{c_.exports=l_()});var mr=b((Wae,d_)=>{"use strict";function eU(e){return e<0||e===32}i(eU,"markdownLineEndingOrSpace");d_.exports=eU});var ic=b((Kae,f_)=>{"use strict";var tU=mr(),rU=qa(),nU=Fa();function iU(e){if(e===null||tU(e)||nU(e))return 1;if(rU(e))return 2}i(iU,"classifyCharacter");f_.exports=iU});var lo=b((Xae,m_)=>{"use strict";function oU(e,t,r){for(var n=[],o=-1,a;++o<e.length;)a=e[o].resolveAll,a&&n.indexOf(a)<0&&(t=a(t,r),n.push(a));return t}i(oU,"resolveAll");m_.exports=oU});var ti=b((Qae,h_)=>{"use strict";var aU=Object.assign;h_.exports=aU});var Jr=b((ese,g_)=>{"use strict";var sU=ti();function uU(e){return sU({},e)}i(uU,"shallow");g_.exports=uU});var b_=b((rse,v_)=>{v_.exports=cU;var y_=ic(),oc=dr(),lU=lo(),Ba=Jr();function cU(e){var t=e||{},r=t.singleTilde,n={tokenize:s,resolveAll:o};return r==null&&(r=!0),{text:{126:n},insideSpan:{null:n}};function o(u,l){for(var p=-1,c,f,m,d;++p<u.length;)if(u[p][0]==="enter"&&u[p][1].type==="strikethroughSequenceTemporary"&&u[p][1]._close){for(m=p;m--;)if(u[m][0]==="exit"&&u[m][1].type==="strikethroughSequenceTemporary"&&u[m][1]._open&&u[p][1].end.offset-u[p][1].start.offset===u[m][1].end.offset-u[m][1].start.offset){u[p][1].type="strikethroughSequence",u[m][1].type="strikethroughSequence",c={type:"strikethrough",start:Ba(u[m][1].start),end:Ba(u[p][1].end)},f={type:"strikethroughText",start:Ba(u[m][1].end),end:Ba(u[p][1].start)},d=[["enter",c,l],["enter",u[m][1],l],["exit",u[m][1],l],["enter",f,l]],oc(d,d.length,0,lU(l.parser.constructs.insideSpan.null,u.slice(m+1,p),l)),oc(d,d.length,0,[["exit",f,l],["enter",u[p][1],l],["exit",u[p][1],l],["exit",c,l]]),oc(u,m-1,p-m+3,d),p=m+d.length-2;break}}return a(u)}i(o,"resolveAllStrikethrough");function a(u){for(var l=-1,p=u.length;++l<p;)u[l][1].type==="strikethroughSequenceTemporary"&&(u[l][1].type="data");return u}i(a,"removeRemainingSequences");function s(u,l,p){var c=this.previous,f=this.events,m=0;return d;function d(_){return _!==126||c===126&&f[f.length-1][1].type!=="characterEscape"?p(_):(u.enter("strikethroughSequenceTemporary"),h(_))}function h(_){var v=y_(c),y,P;return _===126?m>1?p(_):(u.consume(_),m++,h):m<2&&!r?p(_):(y=u.exit("strikethroughSequenceTemporary"),P=y_(_),y._open=!P||P===2&&v,y._close=!v||v===2&&P,l(_))}}i(s,"tokenizeStrikethrough")}i(cU,"create")});var hr=b((ise,x_)=>{"use strict";function pU(e){return e===-2||e===-1||e===32}i(pU,"markdownSpace");x_.exports=pU});var ot=b((ase,P_)=>{"use strict";var __=hr();function dU(e,t,r,n){var o=n?n-1:1/0,a=0;return s;function s(l){return __(l)?(e.enter(r),u(l)):t(l)}function u(l){return __(l)&&a++<o?(e.consume(l),u):(e.exit(r),t(l))}}i(dU,"spaceFactory");P_.exports=dU});var T_=b(E_=>{E_.flow={null:{tokenize:hU,resolve:mU,interruptible:!0}};var ac=ot(),fU={tokenize:gU,partial:!0},w_={tokenize:yU,partial:!0};function mU(e,t){for(var r=e.length,n=-1,o,a,s,u,l,p,c,f,m,d;++n<r;)o=e[n][1],u&&(o.type==="temporaryTableCellContent"&&(f=f||n,m=n),(o.type==="tableCellDivider"||o.type==="tableRow")&&m&&(p={type:"tableContent",start:e[f][1].start,end:e[m][1].end},c={type:"chunkText",start:p.start,end:p.end,contentType:"text"},e.splice(f,m-f+1,["enter",p,t],["enter",c,t],["exit",c,t],["exit",p,t]),n-=m-f-3,r=e.length,f=void 0,m=void 0)),e[n][0]==="exit"&&d&&d+1<n&&(o.type==="tableCellDivider"||o.type==="tableRow"&&(d+3<n||e[d][1].type!=="whitespace"))&&(l={type:s?"tableDelimiter":a?"tableHeader":"tableData",start:e[d][1].start,end:e[n][1].end},e.splice(n+(o.type==="tableCellDivider"?1:0),0,["exit",l,t]),e.splice(d,0,["enter",l,t]),n+=2,r=e.length,d=n+1),o.type==="tableRow"&&(u=e[n][0]==="enter",u&&(d=n+1)),o.type==="tableDelimiterRow"&&(s=e[n][0]==="enter",s&&(d=n+1)),o.type==="tableHead"&&(a=e[n][0]==="enter");return e}i(mU,"resolveTable");function hU(e,t,r){var n=[],o=0,a,s;return u;function u(k){return k===null||k===-5||k===-4||k===-3?r(k):(e.enter("table")._align=n,e.enter("tableHead"),e.enter("tableRow"),k===124?l(k):(o++,e.enter("temporaryTableCellContent"),f(k)))}function l(k){return e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),a=!0,p}function p(k){return k===null||k===-5||k===-4||k===-3?d(k):k===-2||k===-1||k===32?(e.enter("whitespace"),e.consume(k),c):(a&&(a=void 0,o++),k===124?l(k):(e.enter("temporaryTableCellContent"),f(k)))}function c(k){return k===-2||k===-1||k===32?(e.consume(k),c):(e.exit("whitespace"),p(k))}function f(k){return k===null||k<0||k===32||k===124?(e.exit("temporaryTableCellContent"),p(k)):(e.consume(k),k===92?m:f)}function m(k){return k===92||k===124?(e.consume(k),f):f(k)}function d(k){return k===null?r(k):(e.exit("tableRow"),e.exit("tableHead"),e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),e.check(fU,r,ac(e,h,"linePrefix",4)))}function h(k){return k===null||k<0||k===32?r(k):(e.enter("tableDelimiterRow"),_(k))}function _(k){return k===null||k===-5||k===-4||k===-3?I(k):k===-2||k===-1||k===32?(e.enter("whitespace"),e.consume(k),v):k===45?(e.enter("tableDelimiterFiller"),e.consume(k),s=!0,n.push(null),y):k===58?(e.enter("tableDelimiterAlignment"),e.consume(k),e.exit("tableDelimiterAlignment"),n.push("left"),P):k===124?(e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),_):r(k)}function v(k){return k===-2||k===-1||k===32?(e.consume(k),v):(e.exit("whitespace"),_(k))}function y(k){return k===45?(e.consume(k),y):(e.exit("tableDelimiterFiller"),k===58?(e.enter("tableDelimiterAlignment"),e.consume(k),e.exit("tableDelimiterAlignment"),n[n.length-1]=n[n.length-1]==="left"?"center":"right",E):_(k))}function P(k){return k===45?(e.enter("tableDelimiterFiller"),e.consume(k),s=!0,y):r(k)}function E(k){return k===null||k===-5||k===-4||k===-3?I(k):k===-2||k===-1||k===32?(e.enter("whitespace"),e.consume(k),v):k===124?(e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),_):r(k)}function I(k){return e.exit("tableDelimiterRow"),!s||o!==n.length?r(k):k===null?M(k):e.check(w_,M,D)(k)}function M(k){return e.exit("table"),t(k)}function D(k){return e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),ac(e,F,"linePrefix",4)}function F(k){return e.enter("tableBody"),L(k)}function L(k){return e.enter("tableRow"),k===124?G(k):(e.enter("temporaryTableCellContent"),q(k))}function G(k){return e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),V}function V(k){return k===null||k===-5||k===-4||k===-3?Y(k):k===-2||k===-1||k===32?(e.enter("whitespace"),e.consume(k),$):k===124?G(k):(e.enter("temporaryTableCellContent"),q(k))}function $(k){return k===-2||k===-1||k===32?(e.consume(k),$):(e.exit("whitespace"),V(k))}function q(k){return k===null||k<0||k===32||k===124?(e.exit("temporaryTableCellContent"),V(k)):(e.consume(k),k===92?le:q)}function le(k){return k===92||k===124?(e.consume(k),q):q(k)}function Y(k){return e.exit("tableRow"),k===null?Le(k):e.check(w_,Le,Me)(k)}function Le(k){return e.exit("tableBody"),M(k)}function Me(k){return e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),ac(e,L,"linePrefix",4)}}i(hU,"tokenizeTable");function gU(e,t,r){return n;function n(s){return s!==45?r(s):(e.enter("setextUnderline"),o(s))}function o(s){return s===45?(e.consume(s),o):a(s)}function a(s){return s===-2||s===-1||s===32?(e.consume(s),a):s===null||s===-5||s===-4||s===-3?t(s):r(s)}}i(gU,"tokenizeSetextUnderlineMini");function yU(e,t,r){var n=0;return o;function o(s){return e.enter("check"),e.consume(s),a}function a(s){return s===-1||s===32?(e.consume(s),n++,n===4?t:a):s===null||s<0?t(s):r(s)}}i(yU,"tokenizeNextPrefixedOrBlank")});var S_=b((cse,k_)=>{k_.exports=T_()});var sc=b((pse,A_)=>{"use strict";function vU(e){for(var t=-1,r=0;++t<e.length;)r+=typeof e[t]=="string"?e[t].length:1;return r}i(vU,"sizeChunks");A_.exports=vU});var ri=b((fse,I_)=>{"use strict";var bU=sc();function xU(e,t){var r=e[e.length-1];return!r||r[1].type!==t?0:bU(r[2].sliceStream(r[1]))}i(xU,"prefixSize");I_.exports=xU});var C_=b(O_=>{var _U=mr(),PU=ot(),wU=ri(),EU={tokenize:TU};O_.text={91:EU};function TU(e,t,r){var n=this;return o;function o(u){return u!==91||n.previous!==null||!n._gfmTasklistFirstContentOfListItem?r(u):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),a)}function a(u){return u===-2||u===32?(e.enter("taskListCheckValueUnchecked"),e.consume(u),e.exit("taskListCheckValueUnchecked"),s):u===88||u===120?(e.enter("taskListCheckValueChecked"),e.consume(u),e.exit("taskListCheckValueChecked"),s):r(u)}function s(u){return u===93?(e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),e.check({tokenize:kU},t,r)):r(u)}}i(TU,"tokenizeTasklistCheck");function kU(e,t,r){var n=this;return PU(e,o,"whitespace");function o(a){return wU(n.events,"whitespace")&&a!==null&&!_U(a)?t(a):r(a)}}i(kU,"spaceThenNonSpace")});var $_=b((yse,R_)=>{R_.exports=C_()});var D_=b((vse,z_)=>{var SU=ec(),AU=p_(),IU=b_(),OU=S_(),CU=$_();z_.exports=RU;function RU(e){return SU([AU,IU(e),OU,CU])}i(RU,"create")});var U_=b((xse,N_)=>{N_.exports=D_()});var M_=b((_se,L_)=>{"use strict";L_.exports=$U;function $U(e,t){var r=String(e),n=0,o;if(typeof t!="string")throw new Error("Expected character");for(o=r.indexOf(t);o!==-1;)n++,o=r.indexOf(t,o+t.length);return n}i($U,"ccount")});var ja=b((wse,F_)=>{"use strict";F_.exports=q_;function q_(e){if(e==null)return UU;if(typeof e=="string")return NU(e);if(typeof e=="object")return"length"in e?DU(e):zU(e);if(typeof e=="function")return e;throw new Error("Expected function, string, or object as test")}i(q_,"convert");function zU(e){return t;function t(r){var n;for(n in e)if(r[n]!==e[n])return!1;return!0}}i(zU,"allFactory");function DU(e){for(var t=[],r=-1;++r<e.length;)t[r]=q_(e[r]);return n;function n(){for(var o=-1;++o<t.length;)if(t[o].apply(this,arguments))return!0;return!1}}i(DU,"anyFactory");function NU(e){return t;function t(r){return!!(r&&r.type===e)}}i(NU,"typeFactory");function UU(){return!0}i(UU,"ok")});var j_=b((Tse,B_)=>{B_.exports=LU;function LU(e){return"\x1B[33m"+e+"\x1B[39m"}i(LU,"color")});var lc=b((Sse,Z_)=>{"use strict";Z_.exports=Va;var MU=ja(),qU=j_(),V_=!0,H_="skip",uc=!1;Va.CONTINUE=V_;Va.SKIP=H_;Va.EXIT=uc;function Va(e,t,r,n){var o,a;typeof t=="function"&&typeof r!="function"&&(n=r,r=t,t=null),a=MU(t),o=n?-1:1,s(e,null,[])();function s(u,l,p){var c=typeof u=="object"&&u!==null?u:{},f;return typeof c.type=="string"&&(f=typeof c.tagName=="string"?c.tagName:typeof c.name=="string"?c.name:void 0,m.displayName="node ("+qU(c.type+(f?"<"+f+">":""))+")"),m;function m(){var d=p.concat(u),h=[],_,v;if((!t||a(u,l,p[p.length-1]||null))&&(h=FU(r(u,p)),h[0]===uc))return h;if(u.children&&h[0]!==H_)for(v=(n?u.children.length:-1)+o;v>-1&&v<u.children.length;){if(_=s(u.children[v],v,d)(),_[0]===uc)return _;v=typeof _[1]=="number"?_[1]:v+o}return h}i(m,"visit")}i(s,"factory")}i(Va,"visitParents");function FU(e){return e!==null&&typeof e=="object"&&"length"in e?e:typeof e=="number"?[V_,e]:[e]}i(FU,"toResult")});var G_=b((Ise,W_)=>{"use strict";W_.exports=e=>{if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}});var Q_=b((Ose,Y_)=>{"use strict";Y_.exports=ZU;var BU=lc(),jU=ja(),VU=G_(),HU=[].splice;function ZU(e,t,r,n){var o,a;return typeof t=="string"||t&&typeof t.exec=="function"?a=[[t,r]]:(a=t,n=r),o=n||{},K_(e,o,s(WU(a))),e;function s(u){var l=u[0];return p;function p(c,f){var m=l[0],d=l[1],h=[],_=0,v=f.children.indexOf(c),y,P,E,I;for(m.lastIndex=0,P=m.exec(c.value);P&&(y=P.index,I=d.apply(null,[].concat(P,{index:P.index,input:P.input})),I!==!1&&(_!==y&&h.push({type:"text",value:c.value.slice(_,y)}),typeof I=="string"&&I.length>0&&(I={type:"text",value:I}),I&&(h=[].concat(h,I)),_=y+P[0].length),!!m.global);)P=m.exec(c.value);if(y===void 0?(h=[c],v--):(_<c.value.length&&h.push({type:"text",value:c.value.slice(_)}),h.unshift(v,1),HU.apply(f.children,h)),u.length>1)for(E=s(u.slice(1)),y=-1;++y<h.length;)c=h[y],c.type==="text"?E(c,f):K_(c,o,E);return v+h.length+1}}i(s,"handlerFactory")}i(ZU,"findAndReplace");function K_(e,t,r){var n=jU(t.ignore||[]),o=[];return BU(e,"text",a),o;function a(s,u){for(var l=-1,p,c;++l<u.length;){if(p=u[l],n(p,c?c.children.indexOf(p):void 0,c))return;c=p}return r(s,c)}i(a,"visitor")}i(K_,"search");function WU(e){var t=[],r,n;if(typeof e!="object")throw new Error("Expected array or object as schema");if("length"in e)for(n=-1;++n<e.length;)t.push([J_(e[n][0]),X_(e[n][1])]);else for(r in e)t.push([J_(r),X_(e[r])]);return t}i(WU,"toPairs");function J_(e){return typeof e=="string"?new RegExp(VU(e),"g"):e}i(J_,"toExpression");function X_(e){return typeof e=="function"?e:t;function t(){return e}}i(X_,"toFunction")});var rP=b(Ha=>{var eP=M_(),GU=Q_(),KU=qa(),JU=Fa();Ha.transforms=[rL];Ha.enter={literalAutolink:XU,literalAutolinkEmail:cc,literalAutolinkHttp:cc,literalAutolinkWww:cc};Ha.exit={literalAutolink:tL,literalAutolinkEmail:eL,literalAutolinkHttp:YU,literalAutolinkWww:QU};function XU(e){this.enter({type:"link",title:null,url:"",children:[]},e)}i(XU,"enterLiteralAutolink");function cc(e){this.config.enter.autolinkProtocol.call(this,e)}i(cc,"enterLiteralAutolinkValue");function YU(e){this.config.exit.autolinkProtocol.call(this,e)}i(YU,"exitLiteralAutolinkHttp");function QU(e){this.config.exit.data.call(this,e),this.stack[this.stack.length-1].url="http://"+this.sliceSerialize(e)}i(QU,"exitLiteralAutolinkWww");function eL(e){this.config.exit.autolinkEmail.call(this,e)}i(eL,"exitLiteralAutolinkEmail");function tL(e){this.exit(e)}i(tL,"exitLiteralAutolink");function rL(e){GU(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/i,nL],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/,iL]],{ignore:["link","linkReference"]})}i(rL,"transformGfmAutolinkLiterals");function nL(e,t,r,n,o){var a="",s,u;return!tP(o)||(/^w/i.test(t)&&(r=t+r,t="",a="http://"),!oL(r))||(s=aL(r+n),!s[0])?!1:(u={type:"link",title:null,url:a+t+s[0],children:[{type:"text",value:t+s[0]}]},s[1]&&(u=[u,{type:"text",value:s[1]}]),u)}i(nL,"findUrl");function iL(e,t,r,n){return!tP(n,!0)||/[_-]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+r,children:[{type:"text",value:t+"@"+r}]}}i(iL,"findEmail");function oL(e){var t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}i(oL,"isCorrectDomain");function aL(e){var t=/[!"&'),.:;<>?\]}]+$/.exec(e),r,n,o;if(t)for(e=e.slice(0,t.index),t=t[0],r=t.indexOf(")"),n=eP(e,"("),o=eP(e,")");r!==-1&&n>o;)e+=t.slice(0,r+1),t=t.slice(r+1),r=t.indexOf(")"),o++;return[e,t]}i(aL,"splitUrl");function tP(e,t){var r=e.input.charCodeAt(e.index-1);return(r!==r||JU(r)||KU(r))&&(!t||r!==47)}i(tP,"previous")});var nP=b(Za=>{Za.canContainEols=["delete"];Za.enter={strikethrough:sL};Za.exit={strikethrough:uL};function sL(e){this.enter({type:"delete",children:[]},e)}i(sL,"enterStrikethrough");function uL(e){this.exit(e)}i(uL,"exitStrikethrough")});var oP=b(dc=>{dc.enter={table:lL,tableData:iP,tableHeader:iP,tableRow:pL};dc.exit={codeText:dL,table:cL,tableData:pc,tableHeader:pc,tableRow:pc};function lL(e){this.enter({type:"table",align:e._align,children:[]},e),this.setData("inTable",!0)}i(lL,"enterTable");function cL(e){this.exit(e),this.setData("inTable")}i(cL,"exitTable");function pL(e){this.enter({type:"tableRow",children:[]},e)}i(pL,"enterRow");function pc(e){this.exit(e)}i(pc,"exit");function iP(e){this.enter({type:"tableCell",children:[]},e)}i(iP,"enterCell");function dL(e){var t=this.resume();this.getData("inTable")&&(t=t.replace(/\\([\\|])/g,fL)),this.stack[this.stack.length-1].value=t,this.exit(e)}i(dL,"exitCodeText");function fL(e,t){return t==="|"?t:e}i(fL,"replace")});var uP=b(sP=>{sP.exit={taskListCheckValueChecked:aP,taskListCheckValueUnchecked:aP,paragraph:mL};function aP(e){this.stack[this.stack.length-2].checked=e.type==="taskListCheckValueChecked"}i(aP,"exitCheck");function mL(e){var t=this.stack[this.stack.length-2],r=this.stack[this.stack.length-1],n=t.children,o=r.children[0],a=-1,s;if(t&&t.type==="listItem"&&typeof t.checked=="boolean"&&o&&o.type==="text"){for(;++a<n.length;)if(n[a].type==="paragraph"){s=n[a];break}s===r&&(o.value=o.value.slice(1),o.value.length===0?r.children.shift():(o.position.start.column++,o.position.start.offset++,r.position.start=Object.assign({},o.position.start)))}this.exit(e)}i(mL,"exitParagraphWithTaskListItem")});var cP=b((qse,lP)=>{var hL=rP(),gL=nP(),yL=oP(),vL=uP(),bL={}.hasOwnProperty;lP.exports=xL([hL,gL,yL,vL]);function xL(e){for(var t={transforms:[],canContainEols:[]},r=e.length,n=-1;++n<r;)_L(t,e[n]);return t}i(xL,"configure");function _L(e,t){var r,n,o;for(r in t)n=bL.call(e,r)?e[r]:e[r]={},o=t[r],r==="canContainEols"||r==="transforms"?e[r]=[].concat(n,o):Object.assign(n,o)}i(_L,"extension")});var dP=b(pP=>{var fc="phrasing",mc=["autolink","link","image","label"];pP.unsafe=[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:fc,notInConstruct:mc},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:fc,notInConstruct:mc},{character:":",before:"[ps]",after:"\\/",inConstruct:fc,notInConstruct:mc}]});var gr=b((jse,fP)=>{fP.exports=PL;function PL(e,t,r){for(var n=e.children||[],o=[],a=-1,s=r.before,u,l,p;++a<n.length;)p=n[a],a+1<n.length?(l=t.handle.handlers[n[a+1].type],l&&l.peek&&(l=l.peek),u=l?l(n[a+1],e,t,{before:"",after:""}).charAt(0):""):u=r.after,o.length>0&&(s==="\r"||s===`
27
+ `)&&p.type==="html"&&(o[o.length-1]=o[o.length-1].replace(/(\r?\n|\r)$/," "),s=" "),o.push(t.handle(p,e,t,{before:s,after:u})),s=o[o.length-1].slice(-1);return o.join("")}i(PL,"phrasing")});var hP=b(hc=>{var wL=gr();hc.unsafe=[{character:"~",inConstruct:"phrasing"}];hc.handlers={delete:mP};mP.peek=EL;function mP(e,t,r){var n=r.enter("emphasis"),o=wL(e,r,{before:"~",after:"~"});return n(),"~~"+o+"~~"}i(mP,"handleDelete");function EL(){return"~"}i(EL,"peekDelete")});var gc=b((Wse,gP)=>{gP.exports=TL;function TL(e){var t,r;return e._compiled||(t=e.before?"(?:"+e.before+")":"",r=e.after?"(?:"+e.after+")":"",e.atBreak&&(t="[\\r\\n][\\t ]*"+t),e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(r||""),"g")),e._compiled}i(TL,"patternCompile")});var yc=b((Kse,vP)=>{vP.exports=yP;yP.peek=SL;var kL=gc();function yP(e,t,r){for(var n=e.value||"",o="`",a=-1,s,u,l,p;new RegExp("(^|[^`])"+o+"([^`]|$)").test(n);)o+="`";for(/[^ \r\n]/.test(n)&&(/[ \r\n`]/.test(n.charAt(0))||/[ \r\n`]/.test(n.charAt(n.length-1)))&&(n=" "+n+" ");++a<r.unsafe.length;)if(s=r.unsafe[a],!!s.atBreak)for(u=kL(s);l=u.exec(n);)p=l.index,n.charCodeAt(p)===10&&n.charCodeAt(p-1)===13&&p--,n=n.slice(0,p)+" "+n.slice(l.index+1);return o+n+o}i(yP,"inlineCode");function SL(){return"`"}i(SL,"inlineCodePeek")});var xn=b((Xse,bP)=>{"use strict";var Dr="",vc;bP.exports=AL;function AL(e,t){if(typeof e!="string")throw new TypeError("expected a string");if(t===1)return e;if(t===2)return e+e;var r=e.length*t;if(vc!==e||typeof vc>"u")vc=e,Dr="";else if(Dr.length>=r)return Dr.substr(0,r);for(;r>Dr.length&&t>1;)t&1&&(Dr+=e),t>>=1,e+=e;return Dr+=e,Dr=Dr.substr(0,r),Dr}i(AL,"repeat")});var EP=b((Qse,wP)=>{"use strict";var ni=xn();wP.exports=DL;var IL=/ +$/,_n=" ",OL=`
28
+ `,CL="-",Wa=":",xP="|",_P=0,RL=67,$L=76,zL=82,Ga=99,bc=108,Ka=114;function DL(e,t){for(var r=t||{},n=r.padding!==!1,o=r.delimiterStart!==!1,a=r.delimiterEnd!==!1,s=(r.align||[]).concat(),u=r.alignDelimiters!==!1,l=[],p=r.stringLength||UL,c=-1,f=e.length,m=[],d=[],h=[],_=[],v=[],y=0,P,E,I,M,D,F,L,G,V,$,q;++c<f;){for(P=e[c],E=-1,I=P.length,h=[],_=[],I>y&&(y=I);++E<I;)F=NL(P[E]),u===!0&&(D=p(F),_[E]=D,M=v[E],(M===void 0||D>M)&&(v[E]=D)),h.push(F);m[c]=h,d[c]=_}if(E=-1,I=y,typeof s=="object"&&"length"in s)for(;++E<I;)l[E]=PP(s[E]);else for(q=PP(s);++E<I;)l[E]=q;for(E=-1,I=y,h=[],_=[];++E<I;)q=l[E],V="",$="",q===bc?V=Wa:q===Ka?$=Wa:q===Ga&&(V=Wa,$=Wa),D=u?Math.max(1,v[E]-V.length-$.length):1,F=V+ni(CL,D)+$,u===!0&&(D=V.length+D+$.length,D>v[E]&&(v[E]=D),_[E]=D),h[E]=F;for(m.splice(1,0,h),d.splice(1,0,_),c=-1,f=m.length,L=[];++c<f;){for(h=m[c],_=d[c],E=-1,I=y,G=[];++E<I;)F=h[E]||"",V="",$="",u===!0&&(D=v[E]-(_[E]||0),q=l[E],q===Ka?V=ni(_n,D):q===Ga?D%2===0?(V=ni(_n,D/2),$=V):(V=ni(_n,D/2+.5),$=ni(_n,D/2-.5)):$=ni(_n,D)),o===!0&&E===0&&G.push(xP),n===!0&&!(u===!1&&F==="")&&(o===!0||E!==0)&&G.push(_n),u===!0&&G.push(V),G.push(F),u===!0&&G.push($),n===!0&&G.push(_n),(a===!0||E!==I-1)&&G.push(xP);G=G.join(""),a===!1&&(G=G.replace(IL,"")),L.push(G)}return L.join(OL)}i(DL,"markdownTable");function NL(e){return e==null?"":String(e)}i(NL,"serialize");function UL(e){return e.length}i(UL,"defaultStringLength");function PP(e){var t=typeof e=="string"?e.charCodeAt(0):_P;return t===$L||t===bc?bc:t===zL||t===Ka?Ka:t===RL||t===Ga?Ga:_P}i(PP,"toAlignment")});var kP=b((tue,TP)=>{var LL=gr(),ML=yc(),qL=EP();TP.exports=FL;function FL(e){var t=e||{},r=t.tableCellPadding,n=t.tablePipeAlign,o=t.stringLength,a=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
29
+ `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{table:s,tableRow:u,tableCell:l,inlineCode:m}};function s(d,h,_){return p(c(d,_),d.align)}function u(d,h,_){var v=f(d,_),y=p([v]);return y.slice(0,y.indexOf(`
30
+ `))}function l(d,h,_){var v=_.enter("tableCell"),y=LL(d,_,{before:a,after:a});return v(),y}function p(d,h){return qL(d,{align:h,alignDelimiters:n,padding:r,stringLength:o})}function c(d,h){for(var _=d.children,v=-1,y=_.length,P=[],E=h.enter("table");++v<y;)P[v]=f(_[v],h);return E(),P}function f(d,h){for(var _=d.children,v=-1,y=_.length,P=[],E=h.enter("tableRow");++v<y;)P[v]=l(_[v],d,h);return E(),P}function m(d,h,_){var v=ML(d,h,_);return _.stack.indexOf("tableCell")!==-1&&(v=v.replace(/\|/g,"\\$&")),v}}i(FL,"toMarkdown")});var AP=b((nue,SP)=>{SP.exports=BL;function BL(e){var t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}i(BL,"checkBullet")});var OP=b((oue,IP)=>{IP.exports=jL;function jL(e){var t=e.options.listItemIndent||"tab";if(t===1||t==="1")return"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}i(jL,"checkListItemIndent")});var co=b((sue,CP)=>{CP.exports=HL;var VL=xn();function HL(e,t){for(var r=e.children||[],n=[],o=-1,a;++o<r.length;)a=r[o],n.push(t.handle(a,e,t,{before:`
31
+ `,after:`
32
+ `})),o+1<r.length&&n.push(s(a,r[o+1]));return n.join("");function s(u,l){for(var p=-1,c;++p<t.join.length&&(c=t.join[p](u,l,e,t),!(c===!0||c===1));){if(typeof c=="number")return VL(`
33
+ `,1+Number(c));if(c===!1)return`
34
+
35
+ <!---->
36
+
37
+ `}return`
38
+
39
+ `}}i(HL,"flow")});var Ja=b((lue,RP)=>{RP.exports=WL;var ZL=/\r?\n|\r/g;function WL(e,t){for(var r=[],n=0,o=0,a;a=ZL.exec(e);)s(e.slice(n,a.index)),r.push(a[0]),n=a.index+a[0].length,o++;return s(e.slice(n)),r.join("");function s(u){r.push(t(u,o,!u))}i(s,"one")}i(WL,"indentLines")});var xc=b((pue,zP)=>{zP.exports=YL;var $P=xn(),GL=AP(),KL=OP(),JL=co(),XL=Ja();function YL(e,t,r){var n=GL(r),o=KL(r),a,s,u;return t&&t.ordered&&(n=(t.start>-1?t.start:1)+(r.options.incrementListMarker===!1?0:t.children.indexOf(e))+"."),a=n.length+1,(o==="tab"||o==="mixed"&&(t&&t.spread||e.spread))&&(a=Math.ceil(a/4)*4),u=r.enter("listItem"),s=XL(JL(e,r),l),u(),s;function l(p,c,f){return c?(f?"":$P(" ",a))+p:(f?n:n+$P(" ",a-n.length))+p}i(l,"map")}i(YL,"listItem")});var DP=b(_c=>{var QL=xc();_c.unsafe=[{atBreak:!0,character:"-",after:"[:|-]"}];_c.handlers={listItem:eM};function eM(e,t,r){var n=QL(e,t,r),o=e.children[0];return typeof e.checked=="boolean"&&o&&o.type==="paragraph"&&(n=n.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,a)),n;function a(s){return s+"["+(e.checked?"x":" ")+"] "}i(a,"check")}i(eM,"listItemWithTaskListItem")});var Pc=b((hue,UP)=>{UP.exports=NP;function NP(e,t){var r=-1,n;if(t.extensions)for(;++r<t.extensions.length;)NP(e,t.extensions[r]);for(n in t)n==="extensions"||(n==="unsafe"||n==="join"?e[n]=e[n].concat(t[n]||[]):n==="handlers"?e[n]=Object.assign(e[n],t[n]||{}):e.options[n]=t[n]);return e}i(NP,"configure")});var MP=b((yue,LP)=>{var tM=dP(),rM=hP(),nM=kP(),iM=DP(),oM=Pc();LP.exports=aM;function aM(e){var t=oM({handlers:{},join:[],unsafe:[],options:{}},{extensions:[tM,rM,nM(e),iM]});return Object.assign(t.options,{handlers:t.handlers,join:t.join,unsafe:t.unsafe})}i(aM,"toMarkdown")});var BP=b((bue,FP)=>{"use strict";var sM=U_(),uM=cP(),lM=MP(),qP;FP.exports=cM;function cM(e){var t=this.data();!qP&&(this.Parser&&this.Parser.prototype&&this.Parser.prototype.blockTokenizers||this.Compiler&&this.Compiler.prototype&&this.Compiler.prototype.visitors)&&(qP=!0,console.warn("[remark-gfm] Warning: please upgrade to remark 13 to use this plugin")),r("micromarkExtensions",sM(e)),r("fromMarkdownExtensions",uM),r("toMarkdownExtensions",lM(e));function r(n,o){t[n]?t[n].push(o):t[n]=[o]}i(r,"add")}i(cM,"gfm")});var Xa=b((_ue,HP)=>{"use strict";HP.exports=VP;function VP(e){return e&&(e.value||e.alt||e.title||"children"in e&&jP(e.children)||"length"in e&&jP(e))||""}i(VP,"toString");function jP(e){for(var t=[],r=-1;++r<e.length;)t[r]=VP(e[r]);return t.join("")}i(jP,"all")});var Ya=b((wue,ZP)=>{"use strict";function pM(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}i(pM,"normalizeIdentifier");ZP.exports=pM});var GP=b((Tue,WP)=>{"use strict";var dM=so();function fM(e,t){var r=parseInt(e,t);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"\uFFFD":dM(r)}i(fM,"safeFromInt");WP.exports=fM});var KP=b(wc=>{"use strict";Object.defineProperty(wc,"__esModule",{value:!0});var mM=Ye(),hM=ot(),gM=yM;function yM(e){var t=e.attempt(this.parser.constructs.contentInitial,n,o),r;return t;function n(u){if(u===null){e.consume(u);return}return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),hM(e,t,"linePrefix")}function o(u){return e.enter("paragraph"),a(u)}function a(u){var l=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=l),r=l,s(u)}function s(u){if(u===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(u);return}return mM(u)?(e.consume(u),e.exit("chunkText"),a):(e.consume(u),s)}}i(yM,"initializeContent");wc.tokenize=gM});var po=b((Iue,JP)=>{"use strict";var vM=Ye(),bM=ot(),xM={tokenize:_M,partial:!0};function _M(e,t,r){return bM(e,n,"linePrefix");function n(o){return o===null||vM(o)?t(o):r(o)}}i(_M,"tokenizePartialBlankLine");JP.exports=xM});var YP=b(Tc=>{"use strict";Object.defineProperty(Tc,"__esModule",{value:!0});var PM=Ye(),XP=ot(),wM=po(),EM=kM,Ec={tokenize:SM},TM={tokenize:AM};function kM(e){var t=this,r=[],n=0,o={tokenize:y,partial:!0},a,s,u;return l;function l(P){return n<r.length?(t.containerState=r[n][1],e.attempt(r[n][0].continuation,p,c)(P)):c(P)}function p(P){return n++,l(P)}function c(P){return a&&a.flowContinue?m(P):(t.interrupt=s&&s.currentConstruct&&s.currentConstruct.interruptible,t.containerState={},e.attempt(Ec,f,m)(P))}function f(P){return r.push([t.currentConstruct,t.containerState]),t.containerState=void 0,c(P)}function m(P){if(P===null){v(0,!0),e.consume(P);return}return s=s||t.parser.flow(t.now()),e.enter("chunkFlow",{contentType:"flow",previous:u,_tokenizer:s}),d(P)}function d(P){return P===null?(_(e.exit("chunkFlow")),m(P)):PM(P)?(e.consume(P),_(e.exit("chunkFlow")),e.check(o,h)):(e.consume(P),d)}function h(P){return v(a.continued,a&&a.flowEnd),n=0,l(P)}function _(P){u&&(u.next=P),u=P,s.lazy=a&&a.lazy,s.defineSkip(P.start),s.write(t.sliceStream(P))}function v(P,E){var I=r.length;for(s&&E&&(s.write([null]),u=s=void 0);I-- >P;)t.containerState=r[I][1],r[I][0].exit.call(t,e);r.length=P}function y(P,E){var I=0;return a={},M;function M($){return I<r.length?(t.containerState=r[I][1],P.attempt(r[I][0].continuation,D,F)($)):s.currentConstruct&&s.currentConstruct.concrete?(a.flowContinue=!0,V($)):(t.interrupt=s.currentConstruct&&s.currentConstruct.interruptible,t.containerState={},P.attempt(Ec,G,V)($))}i(M,"inspectStart");function D($){return I++,t.containerState._closeFlow?G($):M($)}i(D,"inspectContinue");function F($){return s.currentConstruct&&s.currentConstruct.lazy?(t.containerState={},P.attempt(Ec,G,P.attempt(TM,G,P.check(wM,G,L)))($)):G($)}i(F,"inspectLess");function L($){return I=r.length,a.lazy=!0,a.flowContinue=!0,V($)}i(L,"inspectLazy");function G($){return a.flowEnd=!0,V($)}i(G,"inspectFlowEnd");function V($){return a.continued=I,t.interrupt=t.containerState=void 0,E($)}i(V,"inspectDone")}}i(kM,"initializeDocument");function SM(e,t,r){return XP(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)}i(SM,"tokenizeContainer");function AM(e,t,r){return XP(e,e.lazy(this.parser.constructs.flow,t,r),"linePrefix",this.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)}i(AM,"tokenizeLazyFlow");Tc.tokenize=EM});var kc=b(($ue,ew)=>{"use strict";var IM=ti(),QP=dr(),OM=Jr();function CM(e){for(var t={},r=-1,n,o,a,s,u,l,p;++r<e.length;){for(;r in t;)r=t[r];if(n=e[r],r&&n[1].type==="chunkFlow"&&e[r-1][1].type==="listItemPrefix"&&(l=n[1]._tokenizer.events,a=0,a<l.length&&l[a][1].type==="lineEndingBlank"&&(a+=2),a<l.length&&l[a][1].type==="content"))for(;++a<l.length&&l[a][1].type!=="content";)l[a][1].type==="chunkText"&&(l[a][1].isInFirstContentOfListItem=!0,a++);if(n[0]==="enter")n[1].contentType&&(IM(t,RM(e,r)),r=t[r],p=!0);else if(n[1]._container||n[1]._movePreviousLineEndings){for(a=r,o=void 0;a--&&(s=e[a],s[1].type==="lineEnding"||s[1].type==="lineEndingBlank");)s[0]==="enter"&&(o&&(e[o][1].type="lineEndingBlank"),s[1].type="lineEnding",o=a);o&&(n[1].end=OM(e[o][1].start),u=e.slice(o,r),u.unshift(n),QP(e,o,r-o+1,u))}}return!p}i(CM,"subtokenize");function RM(e,t){for(var r=e[t][1],n=e[t][2],o=t-1,a=[],s=r._tokenizer||n.parser[r.contentType](r.start),u=s.events,l=[],p={},c,f,m,d,h,_;r;){for(;e[++o][1]!==r;);a.push(o),r._tokenizer||(c=n.sliceStream(r),r.next||c.push(null),f&&s.defineSkip(r.start),r.isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(c),r.isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),f=r,r=r.next}for(r=f,m=u.length;m--;)u[m][0]==="enter"?d=!0:d&&u[m][1].type===u[m-1][1].type&&u[m][1].start.line!==u[m][1].end.line&&(v(u.slice(m+1,h)),r._tokenizer=r.next=void 0,r=r.previous,h=m+1);for(s.events=r._tokenizer=r.next=void 0,v(u.slice(0,h)),m=-1,_=0;++m<l.length;)p[_+l[m][0]]=_+l[m][1],_+=l[m][1]-l[m][0]-1;return p;function v(y){var P=a.pop();l.unshift([P,P+y.length-1]),QP(e,P,2,y)}}i(RM,"subcontent");ew.exports=CM});var nw=b((Due,rw)=>{"use strict";var tw=Ye(),$M=ri(),zM=kc(),DM=ot(),NM={tokenize:MM,resolve:LM,interruptible:!0,lazy:!0},UM={tokenize:qM,partial:!0};function LM(e){return zM(e),e}i(LM,"resolveContent");function MM(e,t){var r;return n;function n(u){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),o(u)}function o(u){return u===null?a(u):tw(u)?e.check(UM,s,a)(u):(e.consume(u),o)}function a(u){return e.exit("chunkContent"),e.exit("content"),t(u)}function s(u){return e.consume(u),e.exit("chunkContent"),r=r.next=e.enter("chunkContent",{contentType:"content",previous:r}),o}}i(MM,"tokenizeContent");function qM(e,t,r){var n=this;return o;function o(s){return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),DM(e,a,"linePrefix")}function a(s){return s===null||tw(s)?r(s):n.parser.constructs.disable.null.indexOf("codeIndented")>-1||$M(n.events,"linePrefix")<4?e.interrupt(n.parser.constructs.flow,r,t)(s):t(s)}}i(qM,"tokenizeContinuation");rw.exports=NM});var iw=b(Sc=>{"use strict";Object.defineProperty(Sc,"__esModule",{value:!0});var FM=nw(),BM=ot(),jM=po(),VM=HM;function HM(e){var t=this,r=e.attempt(jM,n,e.attempt(this.parser.constructs.flowInitial,o,BM(e,e.attempt(this.parser.constructs.flow,o,e.attempt(FM,o)),"linePrefix")));return r;function n(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function o(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,r}}i(HM,"initializeFlow");Sc.tokenize=VM});var Ac=b(fo=>{"use strict";Object.defineProperty(fo,"__esModule",{value:!0});var ZM=ti(),ow=Jr(),WM=aw("text"),GM=aw("string"),KM={resolveAll:sw()};function aw(e){return{tokenize:t,resolveAll:sw(e==="text"?JM:void 0)};function t(r){var n=this,o=this.parser.constructs[e],a=r.attempt(o,s,u);return s;function s(c){return p(c)?a(c):u(c)}function u(c){if(c===null){r.consume(c);return}return r.enter("data"),r.consume(c),l}function l(c){return p(c)?(r.exit("data"),a(c)):(r.consume(c),l)}function p(c){var f=o[c],m=-1;if(c===null)return!0;if(f){for(;++m<f.length;)if(!f[m].previous||f[m].previous.call(n,n.previous))return!0}}}}i(aw,"initializeFactory");function sw(e){return t;function t(r,n){for(var o=-1,a;++o<=r.length;)a===void 0?r[o]&&r[o][1].type==="data"&&(a=o,o++):(!r[o]||r[o][1].type!=="data")&&(o!==a+2&&(r[a][1].end=r[o-1][1].end,r.splice(a+2,o-a-2),o=a+2),a=void 0);return e?e(r,n):r}}i(sw,"createResolver");function JM(e,t){for(var r=-1,n,o,a,s,u,l,p,c;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){for(o=e[r-1][1],n=t.sliceStream(o),s=n.length,u=-1,l=0,p=void 0;s--;)if(a=n[s],typeof a=="string"){for(u=a.length;a.charCodeAt(u-1)===32;)l++,u--;if(u)break;u=-1}else if(a===-2)p=!0,l++;else if(a!==-1){s++;break}l&&(c={type:r===e.length||p||l<2?"lineSuffix":"hardBreakTrailing",start:{line:o.end.line,column:o.end.column-l,offset:o.end.offset-l,_index:o.start._index+s,_bufferIndex:s?u:o.start._bufferIndex+u},end:ow(o.end)},o.end=ow(c.start),o.start.offset===o.end.offset?ZM(o,c):(e.splice(r,0,["enter",c,t],["exit",c,t]),r+=2)),r++}return e}i(JM,"resolveAllLineSuffixes");fo.resolver=KM;fo.string=GM;fo.text=WM});var Qa=b((Fue,uw)=>{"use strict";var XM=dr();function YM(e,t){return e.length?(XM(e,e.length,0,t),e):t}i(YM,"chunkedPush");uw.exports=YM});var cw=b((jue,lw)=>{"use strict";var QM=so();function eq(e){for(var t=-1,r=[],n,o,a;++t<e.length;){if(n=e[t],typeof n=="string")o=n;else if(n===-5)o="\r";else if(n===-4)o=`
40
+ `;else if(n===-3)o=`\r
41
+ `;else if(n===-2)o=" ";else if(n===-1){if(a)continue;o=" "}else o=QM(n);a=n===-2,r.push(o)}return r.join("")}i(eq,"serializeChunks");lw.exports=eq});var dw=b((Hue,pw)=>{"use strict";function tq(e,t){var r=t.start._index,n=t.start._bufferIndex,o=t.end._index,a=t.end._bufferIndex,s;return r===o?s=[e[r].slice(n,a)]:(s=e.slice(r,o),n>-1&&(s[0]=s[0].slice(n)),a>0&&s.push(e[o].slice(0,a))),s}i(tq,"sliceChunks");pw.exports=tq});var hw=b((Wue,mw)=>{"use strict";var rq=ti(),nq=Ye(),iq=Qa(),oq=dr(),Ic=La(),aq=lo(),sq=cw(),fw=Jr(),uq=dw();function lq(e,t,r){var n=r?fw(r):{line:1,column:1,offset:0},o={},a=[],s=[],u=[],l={consume:P,enter:E,exit:I,attempt:F(M),check:F(D),interrupt:F(D,{interrupt:!0}),lazy:F(D,{lazy:!0})},p={previous:null,events:[],parser:e,sliceStream:d,sliceSerialize:m,now:h,defineSkip:_,write:f},c=t.tokenize.call(p,l);return t.resolveAll&&a.push(t),n._index=0,n._bufferIndex=-1,p;function f($){return s=iq(s,$),v(),s[s.length-1]!==null?[]:(L(t,0),p.events=aq(a,p.events,p),p.events)}i(f,"write");function m($){return sq(d($))}i(m,"sliceSerialize");function d($){return uq(s,$)}i(d,"sliceStream");function h(){return fw(n)}i(h,"now");function _($){o[$.line]=$.column,V()}i(_,"skip");function v(){for(var $,q;n._index<s.length;)if(q=s[n._index],typeof q=="string")for($=n._index,n._bufferIndex<0&&(n._bufferIndex=0);n._index===$&&n._bufferIndex<q.length;)y(q.charCodeAt(n._bufferIndex));else y(q)}i(v,"main");function y($){c=c($)}i(y,"go");function P($){nq($)?(n.line++,n.column=1,n.offset+=$===-3?2:1,V()):$!==-1&&(n.column++,n.offset++),n._bufferIndex<0?n._index++:(n._bufferIndex++,n._bufferIndex===s[n._index].length&&(n._bufferIndex=-1,n._index++)),p.previous=$}i(P,"consume");function E($,q){var le=q||{};return le.type=$,le.start=h(),p.events.push(["enter",le,p]),u.push(le),le}i(E,"enter");function I($){var q=u.pop();return q.end=h(),p.events.push(["exit",q,p]),q}i(I,"exit");function M($,q){L($,q.from)}i(M,"onsuccessfulconstruct");function D($,q){q.restore()}i(D,"onsuccessfulcheck");function F($,q){return le;function le(Y,Le,Me){var k,xe,Pe,we;return Y.tokenize||"length"in Y?ct(Ic(Y)):g;function g(H){return H in Y||null in Y?ct(Y.null?Ic(Y[H]).concat(Ic(Y.null)):Y[H])(H):Me(H)}function ct(H){return k=H,xe=0,ft(H[xe])}function ft(H){return pt;function pt(Kt){return we=G(),Pe=H,H.partial||(p.currentConstruct=H),H.name&&p.parser.constructs.disable.null.indexOf(H.name)>-1?xr():H.tokenize.call(q?rq({},p,q):p,l,Pt,xr)(Kt)}}function Pt(H){return $(Pe,we),Le}function xr(H){return we.restore(),++xe<k.length?ft(k[xe]):Me}}}i(F,"constructFactory");function L($,q){$.resolveAll&&a.indexOf($)<0&&a.push($),$.resolve&&oq(p.events,q,p.events.length-q,$.resolve(p.events.slice(q),p)),$.resolveTo&&(p.events=$.resolveTo(p.events,p))}i(L,"addResult");function G(){var $=h(),q=p.previous,le=p.currentConstruct,Y=p.events.length,Le=Array.from(u);return{restore:Me,from:Y};function Me(){n=$,p.previous=q,p.currentConstruct=le,p.events.length=Y,u=Le,V()}}i(G,"store");function V(){n.line in o&&n.column<2&&(n.column=o[n.line],n.offset+=o[n.line]-1)}i(V,"accountForPotentialSkip")}i(lq,"createTokenizer");mw.exports=lq});var yw=b((Kue,gw)=>{"use strict";function cq(e,t){return e.column+=t,e.offset+=t,e._bufferIndex+=t,e}i(cq,"movePoint");gw.exports=cq});var _w=b((Xue,xw)=>{"use strict";var mo=Qa(),pq=dr(),vw=ic(),bw=yw(),dq=lo(),yr=Jr(),fq={name:"attention",tokenize:hq,resolveAll:mq};function mq(e,t){for(var r=-1,n,o,a,s,u,l,p,c;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(n=r;n--;)if(e[n][0]==="exit"&&e[n][1].type==="attentionSequence"&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[n][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;l=e[n][1].end.offset-e[n][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1,s={type:l>1?"strongSequence":"emphasisSequence",start:bw(yr(e[n][1].end),-l),end:yr(e[n][1].end)},u={type:l>1?"strongSequence":"emphasisSequence",start:yr(e[r][1].start),end:bw(yr(e[r][1].start),l)},a={type:l>1?"strongText":"emphasisText",start:yr(e[n][1].end),end:yr(e[r][1].start)},o={type:l>1?"strong":"emphasis",start:yr(s.start),end:yr(u.end)},e[n][1].end=yr(s.start),e[r][1].start=yr(u.end),p=[],e[n][1].end.offset-e[n][1].start.offset&&(p=mo(p,[["enter",e[n][1],t],["exit",e[n][1],t]])),p=mo(p,[["enter",o,t],["enter",s,t],["exit",s,t],["enter",a,t]]),p=mo(p,dq(t.parser.constructs.insideSpan.null,e.slice(n+1,r),t)),p=mo(p,[["exit",a,t],["enter",u,t],["exit",u,t],["exit",o,t]]),e[r][1].end.offset-e[r][1].start.offset?(c=2,p=mo(p,[["enter",e[r][1],t],["exit",e[r][1],t]])):c=0,pq(e,n-1,r-n+3,p),r=n+p.length-c-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}i(mq,"resolveAllAttention");function hq(e,t){var r=vw(this.previous),n;return o;function o(s){return e.enter("attentionSequence"),n=s,a(s)}function a(s){var u,l,p,c;return s===n?(e.consume(s),a):(u=e.exit("attentionSequence"),l=vw(s),p=!l||l===2&&r,c=!r||r===2&&l,u._open=n===42?p:p&&(r||!c),u._close=n===42?c:c&&(l||!p),t(s))}}i(hq,"tokenizeAttention");xw.exports=fq});var ww=b((Que,Pw)=>{"use strict";var gq=$r(),yq=gq(/[#-'*+\--9=?A-Z^-~]/);Pw.exports=yq});var kw=b((ele,Tw)=>{"use strict";var vq=uo(),es=Qn(),Ew=ww(),bq=Ma(),xq={name:"autolink",tokenize:_q};function _q(e,t,r){var n=1;return o;function o(h){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(h){return vq(h)?(e.consume(h),s):Ew(h)?p(h):r(h)}function s(h){return h===43||h===45||h===46||es(h)?u(h):p(h)}function u(h){return h===58?(e.consume(h),l):(h===43||h===45||h===46||es(h))&&n++<32?(e.consume(h),u):p(h)}function l(h){return h===62?(e.exit("autolinkProtocol"),d(h)):h===32||h===60||bq(h)?r(h):(e.consume(h),l)}function p(h){return h===64?(e.consume(h),n=0,c):Ew(h)?(e.consume(h),p):r(h)}function c(h){return es(h)?f(h):r(h)}function f(h){return h===46?(e.consume(h),n=0,c):h===62?(e.exit("autolinkProtocol").type="autolinkEmail",d(h)):m(h)}function m(h){return(h===45||es(h))&&n++<63?(e.consume(h),h===45?m:f):r(h)}function d(h){return e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t}}i(_q,"tokenizeAutolink");Tw.exports=xq});var Iw=b((rle,Aw)=>{"use strict";var Pq=hr(),wq=ot(),Sw={name:"blockQuote",tokenize:Eq,continuation:{tokenize:Tq},exit:kq};function Eq(e,t,r){var n=this;return o;function o(s){return s===62?(n.containerState.open||(e.enter("blockQuote",{_container:!0}),n.containerState.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(s),e.exit("blockQuoteMarker"),a):r(s)}function a(s){return Pq(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}i(Eq,"tokenizeBlockQuoteStart");function Tq(e,t,r){return wq(e,e.attempt(Sw,t,r),"linePrefix",this.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)}i(Tq,"tokenizeBlockQuoteContinuation");function kq(e){e.exit("blockQuote")}i(kq,"exit");Aw.exports=Sw});var Cw=b((ile,Ow)=>{"use strict";var Sq=$r(),Aq=Sq(/[!-/:-@[-`{-~]/);Ow.exports=Aq});var $w=b((ole,Rw)=>{"use strict";var Iq=Cw(),Oq={name:"characterEscape",tokenize:Cq};function Cq(e,t,r){return n;function n(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),o}function o(a){return Iq(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(a)}}i(Cq,"tokenizeCharacterEscape");Rw.exports=Oq});var zw=b((sle,Rq)=>{Rq.exports={AEli:"\xC6",AElig:"\xC6",AM:"&",AMP:"&",Aacut:"\xC1",Aacute:"\xC1",Abreve:"\u0102",Acir:"\xC2",Acirc:"\xC2",Acy:"\u0410",Afr:"\u{1D504}",Agrav:"\xC0",Agrave:"\xC0",Alpha:"\u0391",Amacr:"\u0100",And:"\u2A53",Aogon:"\u0104",Aopf:"\u{1D538}",ApplyFunction:"\u2061",Arin:"\xC5",Aring:"\xC5",Ascr:"\u{1D49C}",Assign:"\u2254",Atild:"\xC3",Atilde:"\xC3",Aum:"\xC4",Auml:"\xC4",Backslash:"\u2216",Barv:"\u2AE7",Barwed:"\u2306",Bcy:"\u0411",Because:"\u2235",Bernoullis:"\u212C",Beta:"\u0392",Bfr:"\u{1D505}",Bopf:"\u{1D539}",Breve:"\u02D8",Bscr:"\u212C",Bumpeq:"\u224E",CHcy:"\u0427",COP:"\xA9",COPY:"\xA9",Cacute:"\u0106",Cap:"\u22D2",CapitalDifferentialD:"\u2145",Cayleys:"\u212D",Ccaron:"\u010C",Ccedi:"\xC7",Ccedil:"\xC7",Ccirc:"\u0108",Cconint:"\u2230",Cdot:"\u010A",Cedilla:"\xB8",CenterDot:"\xB7",Cfr:"\u212D",Chi:"\u03A7",CircleDot:"\u2299",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",Colon:"\u2237",Colone:"\u2A74",Congruent:"\u2261",Conint:"\u222F",ContourIntegral:"\u222E",Copf:"\u2102",Coproduct:"\u2210",CounterClockwiseContourIntegral:"\u2233",Cross:"\u2A2F",Cscr:"\u{1D49E}",Cup:"\u22D3",CupCap:"\u224D",DD:"\u2145",DDotrahd:"\u2911",DJcy:"\u0402",DScy:"\u0405",DZcy:"\u040F",Dagger:"\u2021",Darr:"\u21A1",Dashv:"\u2AE4",Dcaron:"\u010E",Dcy:"\u0414",Del:"\u2207",Delta:"\u0394",Dfr:"\u{1D507}",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",Diamond:"\u22C4",DifferentialD:"\u2146",Dopf:"\u{1D53B}",Dot:"\xA8",DotDot:"\u20DC",DotEqual:"\u2250",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVector:"\u21BD",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295F",DownRightVector:"\u21C1",DownRightVectorBar:"\u2957",DownTee:"\u22A4",DownTeeArrow:"\u21A7",Downarrow:"\u21D3",Dscr:"\u{1D49F}",Dstrok:"\u0110",ENG:"\u014A",ET:"\xD0",ETH:"\xD0",Eacut:"\xC9",Eacute:"\xC9",Ecaron:"\u011A",Ecir:"\xCA",Ecirc:"\xCA",Ecy:"\u042D",Edot:"\u0116",Efr:"\u{1D508}",Egrav:"\xC8",Egrave:"\xC8",Element:"\u2208",Emacr:"\u0112",EmptySmallSquare:"\u25FB",EmptyVerySmallSquare:"\u25AB",Eogon:"\u0118",Eopf:"\u{1D53C}",Epsilon:"\u0395",Equal:"\u2A75",EqualTilde:"\u2242",Equilibrium:"\u21CC",Escr:"\u2130",Esim:"\u2A73",Eta:"\u0397",Eum:"\xCB",Euml:"\xCB",Exists:"\u2203",ExponentialE:"\u2147",Fcy:"\u0424",Ffr:"\u{1D509}",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",Fopf:"\u{1D53D}",ForAll:"\u2200",Fouriertrf:"\u2131",Fscr:"\u2131",GJcy:"\u0403",G:">",GT:">",Gamma:"\u0393",Gammad:"\u03DC",Gbreve:"\u011E",Gcedil:"\u0122",Gcirc:"\u011C",Gcy:"\u0413",Gdot:"\u0120",Gfr:"\u{1D50A}",Gg:"\u22D9",Gopf:"\u{1D53E}",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",Gt:"\u226B",HARDcy:"\u042A",Hacek:"\u02C7",Hat:"^",Hcirc:"\u0124",Hfr:"\u210C",HilbertSpace:"\u210B",Hopf:"\u210D",HorizontalLine:"\u2500",Hscr:"\u210B",Hstrok:"\u0126",HumpDownHump:"\u224E",HumpEqual:"\u224F",IEcy:"\u0415",IJlig:"\u0132",IOcy:"\u0401",Iacut:"\xCD",Iacute:"\xCD",Icir:"\xCE",Icirc:"\xCE",Icy:"\u0418",Idot:"\u0130",Ifr:"\u2111",Igrav:"\xCC",Igrave:"\xCC",Im:"\u2111",Imacr:"\u012A",ImaginaryI:"\u2148",Implies:"\u21D2",Int:"\u222C",Integral:"\u222B",Intersection:"\u22C2",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",Iogon:"\u012E",Iopf:"\u{1D540}",Iota:"\u0399",Iscr:"\u2110",Itilde:"\u0128",Iukcy:"\u0406",Ium:"\xCF",Iuml:"\xCF",Jcirc:"\u0134",Jcy:"\u0419",Jfr:"\u{1D50D}",Jopf:"\u{1D541}",Jscr:"\u{1D4A5}",Jsercy:"\u0408",Jukcy:"\u0404",KHcy:"\u0425",KJcy:"\u040C",Kappa:"\u039A",Kcedil:"\u0136",Kcy:"\u041A",Kfr:"\u{1D50E}",Kopf:"\u{1D542}",Kscr:"\u{1D4A6}",LJcy:"\u0409",L:"<",LT:"<",Lacute:"\u0139",Lambda:"\u039B",Lang:"\u27EA",Laplacetrf:"\u2112",Larr:"\u219E",Lcaron:"\u013D",Lcedil:"\u013B",Lcy:"\u041B",LeftAngleBracket:"\u27E8",LeftArrow:"\u2190",LeftArrowBar:"\u21E4",LeftArrowRightArrow:"\u21C6",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21C3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230A",LeftRightArrow:"\u2194",LeftRightVector:"\u294E",LeftTee:"\u22A3",LeftTeeArrow:"\u21A4",LeftTeeVector:"\u295A",LeftTriangle:"\u22B2",LeftTriangleBar:"\u29CF",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21BF",LeftUpVectorBar:"\u2958",LeftVector:"\u21BC",LeftVectorBar:"\u2952",Leftarrow:"\u21D0",Leftrightarrow:"\u21D4",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",LessLess:"\u2AA1",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",Lfr:"\u{1D50F}",Ll:"\u22D8",Lleftarrow:"\u21DA",Lmidot:"\u013F",LongLeftArrow:"\u27F5",LongLeftRightArrow:"\u27F7",LongRightArrow:"\u27F6",Longleftarrow:"\u27F8",Longleftrightarrow:"\u27FA",Longrightarrow:"\u27F9",Lopf:"\u{1D543}",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",Lscr:"\u2112",Lsh:"\u21B0",Lstrok:"\u0141",Lt:"\u226A",Map:"\u2905",Mcy:"\u041C",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",MinusPlus:"\u2213",Mopf:"\u{1D544}",Mscr:"\u2133",Mu:"\u039C",NJcy:"\u040A",Nacute:"\u0143",Ncaron:"\u0147",Ncedil:"\u0145",Ncy:"\u041D",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:`
42
+ `,Nfr:"\u{1D511}",NoBreak:"\u2060",NonBreakingSpace:"\xA0",Nopf:"\u2115",Not:"\u2AEC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",Nscr:"\u{1D4A9}",Ntild:"\xD1",Ntilde:"\xD1",Nu:"\u039D",OElig:"\u0152",Oacut:"\xD3",Oacute:"\xD3",Ocir:"\xD4",Ocirc:"\xD4",Ocy:"\u041E",Odblac:"\u0150",Ofr:"\u{1D512}",Ograv:"\xD2",Ograve:"\xD2",Omacr:"\u014C",Omega:"\u03A9",Omicron:"\u039F",Oopf:"\u{1D546}",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",Or:"\u2A54",Oscr:"\u{1D4AA}",Oslas:"\xD8",Oslash:"\xD8",Otild:"\xD5",Otilde:"\xD5",Otimes:"\u2A37",Oum:"\xD6",Ouml:"\xD6",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",PartialD:"\u2202",Pcy:"\u041F",Pfr:"\u{1D513}",Phi:"\u03A6",Pi:"\u03A0",PlusMinus:"\xB1",Poincareplane:"\u210C",Popf:"\u2119",Pr:"\u2ABB",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",Prime:"\u2033",Product:"\u220F",Proportion:"\u2237",Proportional:"\u221D",Pscr:"\u{1D4AB}",Psi:"\u03A8",QUO:'"',QUOT:'"',Qfr:"\u{1D514}",Qopf:"\u211A",Qscr:"\u{1D4AC}",RBarr:"\u2910",RE:"\xAE",REG:"\xAE",Racute:"\u0154",Rang:"\u27EB",Rarr:"\u21A0",Rarrtl:"\u2916",Rcaron:"\u0158",Rcedil:"\u0156",Rcy:"\u0420",Re:"\u211C",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",Rfr:"\u211C",Rho:"\u03A1",RightAngleBracket:"\u27E9",RightArrow:"\u2192",RightArrowBar:"\u21E5",RightArrowLeftArrow:"\u21C4",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",RightTee:"\u22A2",RightTeeArrow:"\u21A6",RightTeeVector:"\u295B",RightTriangle:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",RightVectorBar:"\u2953",Rightarrow:"\u21D2",Ropf:"\u211D",RoundImplies:"\u2970",Rrightarrow:"\u21DB",Rscr:"\u211B",Rsh:"\u21B1",RuleDelayed:"\u29F4",SHCHcy:"\u0429",SHcy:"\u0428",SOFTcy:"\u042C",Sacute:"\u015A",Sc:"\u2ABC",Scaron:"\u0160",Scedil:"\u015E",Scirc:"\u015C",Scy:"\u0421",Sfr:"\u{1D516}",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",Sigma:"\u03A3",SmallCircle:"\u2218",Sopf:"\u{1D54A}",Sqrt:"\u221A",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",Sscr:"\u{1D4AE}",Star:"\u22C6",Sub:"\u22D0",Subset:"\u22D0",SubsetEqual:"\u2286",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",SuchThat:"\u220B",Sum:"\u2211",Sup:"\u22D1",Superset:"\u2283",SupersetEqual:"\u2287",Supset:"\u22D1",THOR:"\xDE",THORN:"\xDE",TRADE:"\u2122",TSHcy:"\u040B",TScy:"\u0426",Tab:" ",Tau:"\u03A4",Tcaron:"\u0164",Tcedil:"\u0162",Tcy:"\u0422",Tfr:"\u{1D517}",Therefore:"\u2234",Theta:"\u0398",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",Topf:"\u{1D54B}",TripleDot:"\u20DB",Tscr:"\u{1D4AF}",Tstrok:"\u0166",Uacut:"\xDA",Uacute:"\xDA",Uarr:"\u219F",Uarrocir:"\u2949",Ubrcy:"\u040E",Ubreve:"\u016C",Ucir:"\xDB",Ucirc:"\xDB",Ucy:"\u0423",Udblac:"\u0170",Ufr:"\u{1D518}",Ugrav:"\xD9",Ugrave:"\xD9",Umacr:"\u016A",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",Uopf:"\u{1D54C}",UpArrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",UpDownArrow:"\u2195",UpEquilibrium:"\u296E",UpTee:"\u22A5",UpTeeArrow:"\u21A5",Uparrow:"\u21D1",Updownarrow:"\u21D5",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",Upsi:"\u03D2",Upsilon:"\u03A5",Uring:"\u016E",Uscr:"\u{1D4B0}",Utilde:"\u0168",Uum:"\xDC",Uuml:"\xDC",VDash:"\u22AB",Vbar:"\u2AEB",Vcy:"\u0412",Vdash:"\u22A9",Vdashl:"\u2AE6",Vee:"\u22C1",Verbar:"\u2016",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",Vopf:"\u{1D54D}",Vscr:"\u{1D4B1}",Vvdash:"\u22AA",Wcirc:"\u0174",Wedge:"\u22C0",Wfr:"\u{1D51A}",Wopf:"\u{1D54E}",Wscr:"\u{1D4B2}",Xfr:"\u{1D51B}",Xi:"\u039E",Xopf:"\u{1D54F}",Xscr:"\u{1D4B3}",YAcy:"\u042F",YIcy:"\u0407",YUcy:"\u042E",Yacut:"\xDD",Yacute:"\xDD",Ycirc:"\u0176",Ycy:"\u042B",Yfr:"\u{1D51C}",Yopf:"\u{1D550}",Yscr:"\u{1D4B4}",Yuml:"\u0178",ZHcy:"\u0416",Zacute:"\u0179",Zcaron:"\u017D",Zcy:"\u0417",Zdot:"\u017B",ZeroWidthSpace:"\u200B",Zeta:"\u0396",Zfr:"\u2128",Zopf:"\u2124",Zscr:"\u{1D4B5}",aacut:"\xE1",aacute:"\xE1",abreve:"\u0103",ac:"\u223E",acE:"\u223E\u0333",acd:"\u223F",acir:"\xE2",acirc:"\xE2",acut:"\xB4",acute:"\xB4",acy:"\u0430",aeli:"\xE6",aelig:"\xE6",af:"\u2061",afr:"\u{1D51E}",agrav:"\xE0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",alpha:"\u03B1",amacr:"\u0101",amalg:"\u2A3F",am:"&",amp:"&",and:"\u2227",andand:"\u2A55",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsd:"\u2221",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",aogon:"\u0105",aopf:"\u{1D552}",ap:"\u2248",apE:"\u2A70",apacir:"\u2A6F",ape:"\u224A",apid:"\u224B",apos:"'",approx:"\u2248",approxeq:"\u224A",arin:"\xE5",aring:"\xE5",ascr:"\u{1D4B6}",ast:"*",asymp:"\u2248",asympeq:"\u224D",atild:"\xE3",atilde:"\xE3",aum:"\xE4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",bNot:"\u2AED",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",barvee:"\u22BD",barwed:"\u2305",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",beta:"\u03B2",beth:"\u2136",between:"\u226C",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bnot:"\u2310",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxDL:"\u2557",boxDR:"\u2554",boxDl:"\u2556",boxDr:"\u2553",boxH:"\u2550",boxHD:"\u2566",boxHU:"\u2569",boxHd:"\u2564",boxHu:"\u2567",boxUL:"\u255D",boxUR:"\u255A",boxUl:"\u255C",boxUr:"\u2559",boxV:"\u2551",boxVH:"\u256C",boxVL:"\u2563",boxVR:"\u2560",boxVh:"\u256B",boxVl:"\u2562",boxVr:"\u255F",boxbox:"\u29C9",boxdL:"\u2555",boxdR:"\u2552",boxdl:"\u2510",boxdr:"\u250C",boxh:"\u2500",boxhD:"\u2565",boxhU:"\u2568",boxhd:"\u252C",boxhu:"\u2534",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxuL:"\u255B",boxuR:"\u2558",boxul:"\u2518",boxur:"\u2514",boxv:"\u2502",boxvH:"\u256A",boxvL:"\u2561",boxvR:"\u255E",boxvh:"\u253C",boxvl:"\u2524",boxvr:"\u251C",bprime:"\u2035",breve:"\u02D8",brvba:"\xA6",brvbar:"\xA6",bscr:"\u{1D4B7}",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",bumpeq:"\u224F",cacute:"\u0107",cap:"\u2229",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",ccaps:"\u2A4D",ccaron:"\u010D",ccedi:"\xE7",ccedil:"\xE7",ccirc:"\u0109",ccups:"\u2A4C",ccupssm:"\u2A50",cdot:"\u010B",cedi:"\xB8",cedil:"\xB8",cemptyv:"\u29B2",cen:"\xA2",cent:"\xA2",centerdot:"\xB7",cfr:"\u{1D520}",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",chi:"\u03C7",cir:"\u25CB",cirE:"\u29C3",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledR:"\xAE",circledS:"\u24C8",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",clubs:"\u2663",clubsuit:"\u2663",colon:":",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",conint:"\u222E",copf:"\u{1D554}",coprod:"\u2210",cop:"\xA9",copy:"\xA9",copysr:"\u2117",crarr:"\u21B5",cross:"\u2717",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cup:"\u222A",cupbrcap:"\u2A48",cupcap:"\u2A46",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curre:"\xA4",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dArr:"\u21D3",dHar:"\u2965",dagger:"\u2020",daleth:"\u2138",darr:"\u2193",dash:"\u2010",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",dcaron:"\u010F",dcy:"\u0434",dd:"\u2146",ddagger:"\u2021",ddarr:"\u21CA",ddotseq:"\u2A77",de:"\xB0",deg:"\xB0",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",dfr:"\u{1D521}",dharl:"\u21C3",dharr:"\u21C2",diam:"\u22C4",diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divid:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",dopf:"\u{1D555}",dot:"\u02D9",doteq:"\u2250",doteqdot:"\u2251",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",downarrow:"\u2193",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",dscr:"\u{1D4B9}",dscy:"\u0455",dsol:"\u29F6",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",dzcy:"\u045F",dzigrarr:"\u27FF",eDDot:"\u2A77",eDot:"\u2251",eacut:"\xE9",eacute:"\xE9",easter:"\u2A6E",ecaron:"\u011B",ecir:"\xEA",ecirc:"\xEA",ecolon:"\u2255",ecy:"\u044D",edot:"\u0117",ee:"\u2147",efDot:"\u2252",efr:"\u{1D522}",eg:"\u2A9A",egrav:"\xE8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",emptyv:"\u2205",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",eng:"\u014B",ensp:"\u2002",eogon:"\u0119",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",equals:"=",equest:"\u225F",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erDot:"\u2253",erarr:"\u2971",escr:"\u212F",esdot:"\u2250",esim:"\u2242",eta:"\u03B7",et:"\xF0",eth:"\xF0",eum:"\xEB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",expectation:"\u2130",exponentiale:"\u2147",fallingdotseq:"\u2252",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",ffr:"\u{1D523}",filig:"\uFB01",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",fopf:"\u{1D557}",forall:"\u2200",fork:"\u22D4",forkv:"\u2AD9",fpartint:"\u2A0D",frac1:"\xBC",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac3:"\xBE",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\u{1D4BB}",gE:"\u2267",gEl:"\u2A8C",gacute:"\u01F5",gamma:"\u03B3",gammad:"\u03DD",gap:"\u2A86",gbreve:"\u011F",gcirc:"\u011D",gcy:"\u0433",gdot:"\u0121",ge:"\u2265",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",ges:"\u2A7E",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",gfr:"\u{1D524}",gg:"\u226B",ggg:"\u22D9",gimel:"\u2137",gjcy:"\u0453",gl:"\u2277",glE:"\u2A92",gla:"\u2AA5",glj:"\u2AA4",gnE:"\u2269",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",gopf:"\u{1D558}",grave:"`",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",g:">",gt:">",gtcc:"\u2AA7",gtcir:"\u2A7A",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",hArr:"\u21D4",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",hardcy:"\u044A",harr:"\u2194",harrcir:"\u2948",harrw:"\u21AD",hbar:"\u210F",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\u{1D559}",horbar:"\u2015",hscr:"\u{1D4BD}",hslash:"\u210F",hstrok:"\u0127",hybull:"\u2043",hyphen:"\u2010",iacut:"\xED",iacute:"\xED",ic:"\u2063",icir:"\xEE",icirc:"\xEE",icy:"\u0438",iecy:"\u0435",iexc:"\xA1",iexcl:"\xA1",iff:"\u21D4",ifr:"\u{1D526}",igrav:"\xEC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",ijlig:"\u0133",imacr:"\u012B",image:"\u2111",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",imof:"\u22B7",imped:"\u01B5",in:"\u2208",incare:"\u2105",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",int:"\u222B",intcal:"\u22BA",integers:"\u2124",intercal:"\u22BA",intlarhk:"\u2A17",intprod:"\u2A3C",iocy:"\u0451",iogon:"\u012F",iopf:"\u{1D55A}",iota:"\u03B9",iprod:"\u2A3C",iques:"\xBF",iquest:"\xBF",iscr:"\u{1D4BE}",isin:"\u2208",isinE:"\u22F9",isindot:"\u22F5",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",itilde:"\u0129",iukcy:"\u0456",ium:"\xEF",iuml:"\xEF",jcirc:"\u0135",jcy:"\u0439",jfr:"\u{1D527}",jmath:"\u0237",jopf:"\u{1D55B}",jscr:"\u{1D4BF}",jsercy:"\u0458",jukcy:"\u0454",kappa:"\u03BA",kappav:"\u03F0",kcedil:"\u0137",kcy:"\u043A",kfr:"\u{1D528}",kgreen:"\u0138",khcy:"\u0445",kjcy:"\u045C",kopf:"\u{1D55C}",kscr:"\u{1D4C0}",lAarr:"\u21DA",lArr:"\u21D0",lAtail:"\u291B",lBarr:"\u290E",lE:"\u2266",lEg:"\u2A8B",lHar:"\u2962",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",lambda:"\u03BB",lang:"\u27E8",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",laqu:"\xAB",laquo:"\xAB",larr:"\u2190",larrb:"\u21E4",larrbfs:"\u291F",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",lat:"\u2AAB",latail:"\u2919",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",lcaron:"\u013E",lcedil:"\u013C",lceil:"\u2308",lcub:"{",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",leftarrow:"\u2190",leftarrowtail:"\u21A2",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",leftthreetimes:"\u22CB",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",les:"\u2A7D",lescc:"\u2AA8",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",lessgtr:"\u2276",lesssim:"\u2272",lfisht:"\u297C",lfloor:"\u230A",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",ljcy:"\u0459",ll:"\u226A",llarr:"\u21C7",llcorner:"\u231E",llhard:"\u296B",lltri:"\u25FA",lmidot:"\u0140",lmoust:"\u23B0",lmoustache:"\u23B0",lnE:"\u2268",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",longleftrightarrow:"\u27F7",longmapsto:"\u27FC",longrightarrow:"\u27F6",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",lstrok:"\u0142",l:"<",lt:"<",ltcc:"\u2AA6",ltcir:"\u2A79",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltrPar:"\u2996",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",mDDot:"\u223A",mac:"\xAF",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",mcy:"\u043C",mdash:"\u2014",measuredangle:"\u2221",mfr:"\u{1D52A}",mho:"\u2127",micr:"\xB5",micro:"\xB5",mid:"\u2223",midast:"*",midcir:"\u2AF0",middo:"\xB7",middot:"\xB7",minus:"\u2212",minusb:"\u229F",minusd:"\u2238",minusdu:"\u2A2A",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",mopf:"\u{1D55E}",mp:"\u2213",mscr:"\u{1D4C2}",mstpos:"\u223E",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nGg:"\u22D9\u0338",nGt:"\u226B\u20D2",nGtv:"\u226B\u0338",nLeftarrow:"\u21CD",nLeftrightarrow:"\u21CE",nLl:"\u22D8\u0338",nLt:"\u226A\u20D2",nLtv:"\u226A\u0338",nRightarrow:"\u21CF",nVDash:"\u22AF",nVdash:"\u22AE",nabla:"\u2207",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natur:"\u266E",natural:"\u266E",naturals:"\u2115",nbs:"\xA0",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",ncaron:"\u0148",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",ncy:"\u043D",ndash:"\u2013",ne:"\u2260",neArr:"\u21D7",nearhk:"\u2924",nearr:"\u2197",nearrow:"\u2197",nedot:"\u2250\u0338",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",nexist:"\u2204",nexists:"\u2204",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",ngsim:"\u2275",ngt:"\u226F",ngtr:"\u226F",nhArr:"\u21CE",nharr:"\u21AE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",njcy:"\u045A",nlArr:"\u21CD",nlE:"\u2266\u0338",nlarr:"\u219A",nldr:"\u2025",nle:"\u2270",nleftarrow:"\u219A",nleftrightarrow:"\u21AE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nlsim:"\u2274",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nmid:"\u2224",nopf:"\u{1D55F}",no:"\xAC",not:"\xAC",notin:"\u2209",notinE:"\u22F9\u0338",notindot:"\u22F5\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",npre:"\u2AAF\u0338",nprec:"\u2280",npreceq:"\u2AAF\u0338",nrArr:"\u21CF",nrarr:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",ntild:"\xF1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvDash:"\u22AD",nvHarr:"\u2904",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwArr:"\u21D6",nwarhk:"\u2923",nwarr:"\u2196",nwarrow:"\u2196",nwnear:"\u2927",oS:"\u24C8",oacut:"\xF3",oacute:"\xF3",oast:"\u229B",ocir:"\xF4",ocirc:"\xF4",ocy:"\u043E",odash:"\u229D",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",oelig:"\u0153",ofcir:"\u29BF",ofr:"\u{1D52C}",ogon:"\u02DB",ograv:"\xF2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",omacr:"\u014D",omega:"\u03C9",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",oopf:"\u{1D560}",opar:"\u29B7",operp:"\u29B9",oplus:"\u2295",or:"\u2228",orarr:"\u21BB",ord:"\xBA",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oscr:"\u2134",oslas:"\xF8",oslash:"\xF8",osol:"\u2298",otild:"\xF5",otilde:"\xF5",otimes:"\u2297",otimesas:"\u2A36",oum:"\xF6",ouml:"\xF6",ovbar:"\u233D",par:"\xB6",para:"\xB6",parallel:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",pfr:"\u{1D52D}",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plus:"+",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",plusm:"\xB1",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",pointint:"\u2A15",popf:"\u{1D561}",poun:"\xA3",pound:"\xA3",pr:"\u227A",prE:"\u2AB3",prap:"\u2AB7",prcue:"\u227C",pre:"\u2AAF",prec:"\u227A",precapprox:"\u2AB7",preccurlyeq:"\u227C",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",precsim:"\u227E",prime:"\u2032",primes:"\u2119",prnE:"\u2AB5",prnap:"\u2AB9",prnsim:"\u22E8",prod:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",pscr:"\u{1D4C5}",psi:"\u03C8",puncsp:"\u2008",qfr:"\u{1D52E}",qint:"\u2A0C",qopf:"\u{1D562}",qprime:"\u2057",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",quo:'"',quot:'"',rAarr:"\u21DB",rArr:"\u21D2",rAtail:"\u291C",rBarr:"\u290F",rHar:"\u2964",race:"\u223D\u0331",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",rang:"\u27E9",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raqu:"\xBB",raquo:"\xBB",rarr:"\u2192",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",rarrtl:"\u21A3",rarrw:"\u219D",ratail:"\u291A",ratio:"\u2236",rationals:"\u211A",rbarr:"\u290D",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",rcaron:"\u0159",rcedil:"\u0157",rceil:"\u2309",rcub:"}",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",rect:"\u25AD",re:"\xAE",reg:"\xAE",rfisht:"\u297D",rfloor:"\u230B",rfr:"\u{1D52F}",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",rho:"\u03C1",rhov:"\u03F1",rightarrow:"\u2192",rightarrowtail:"\u21A3",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",rightthreetimes:"\u22CC",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoust:"\u23B1",rmoustache:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",ropf:"\u{1D563}",roplus:"\u2A2E",rotimes:"\u2A35",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",rsaquo:"\u203A",rscr:"\u{1D4C7}",rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",ruluhar:"\u2968",rx:"\u211E",sacute:"\u015B",sbquo:"\u201A",sc:"\u227B",scE:"\u2AB4",scap:"\u2AB8",scaron:"\u0161",sccue:"\u227D",sce:"\u2AB0",scedil:"\u015F",scirc:"\u015D",scnE:"\u2AB6",scnap:"\u2ABA",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",scy:"\u0441",sdot:"\u22C5",sdotb:"\u22A1",sdote:"\u2A66",seArr:"\u21D8",searhk:"\u2925",searr:"\u2198",searrow:"\u2198",sec:"\xA7",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",shchcy:"\u0449",shcy:"\u0448",shortmid:"\u2223",shortparallel:"\u2225",sh:"\xAD",shy:"\xAD",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",softcy:"\u044C",sol:"/",solb:"\u29C4",solbar:"\u233F",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",squ:"\u25A1",square:"\u25A1",squarf:"\u25AA",squf:"\u25AA",srarr:"\u2192",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",sub:"\u2282",subE:"\u2AC5",subdot:"\u2ABD",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subset:"\u2282",subseteq:"\u2286",subseteqq:"\u2AC5",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succ:"\u227B",succapprox:"\u2AB8",succcurlyeq:"\u227D",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",sum:"\u2211",sung:"\u266A",sup:"\u2283",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",supE:"\u2AC6",supdot:"\u2ABE",supdsub:"\u2AD8",supe:"\u2287",supedot:"\u2AC4",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",supset:"\u2283",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swArr:"\u21D9",swarhk:"\u2926",swarr:"\u2199",swarrow:"\u2199",swnwar:"\u292A",szli:"\xDF",szlig:"\xDF",target:"\u2316",tau:"\u03C4",tbrk:"\u23B4",tcaron:"\u0165",tcedil:"\u0163",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",tfr:"\u{1D531}",there4:"\u2234",therefore:"\u2234",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223C",thor:"\xFE",thorn:"\xFE",tilde:"\u02DC",time:"\xD7",times:"\xD7",timesb:"\u22A0",timesbar:"\u2A31",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",top:"\u22A4",topbot:"\u2336",topcir:"\u2AF1",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",tscr:"\u{1D4C9}",tscy:"\u0446",tshcy:"\u045B",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",uArr:"\u21D1",uHar:"\u2963",uacut:"\xFA",uacute:"\xFA",uarr:"\u2191",ubrcy:"\u045E",ubreve:"\u016D",ucir:"\xFB",ucirc:"\xFB",ucy:"\u0443",udarr:"\u21C5",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",ufr:"\u{1D532}",ugrav:"\xF9",ugrave:"\xF9",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",umacr:"\u016B",um:"\xA8",uml:"\xA8",uogon:"\u0173",uopf:"\u{1D566}",uparrow:"\u2191",updownarrow:"\u2195",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",upsi:"\u03C5",upsih:"\u03D2",upsilon:"\u03C5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",uring:"\u016F",urtri:"\u25F9",uscr:"\u{1D4CA}",utdot:"\u22F0",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",uum:"\xFC",uuml:"\xFC",uwangle:"\u29A7",vArr:"\u21D5",vBar:"\u2AE8",vBarv:"\u2AE9",vDash:"\u22A8",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",varr:"\u2195",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vcy:"\u0432",vdash:"\u22A2",vee:"\u2228",veebar:"\u22BB",veeeq:"\u225A",vellip:"\u22EE",verbar:"|",vert:"|",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",vzigzag:"\u299A",wcirc:"\u0175",wedbar:"\u2A5F",wedge:"\u2227",wedgeq:"\u2259",weierp:"\u2118",wfr:"\u{1D534}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",xfr:"\u{1D535}",xhArr:"\u27FA",xharr:"\u27F7",xi:"\u03BE",xlArr:"\u27F8",xlarr:"\u27F5",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrArr:"\u27F9",xrarr:"\u27F6",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",yacut:"\xFD",yacute:"\xFD",yacy:"\u044F",ycirc:"\u0177",ycy:"\u044B",ye:"\xA5",yen:"\xA5",yfr:"\u{1D536}",yicy:"\u0457",yopf:"\u{1D56A}",yscr:"\u{1D4CE}",yucy:"\u044E",yum:"\xFF",yuml:"\xFF",zacute:"\u017A",zcaron:"\u017E",zcy:"\u0437",zdot:"\u017C",zeetrf:"\u2128",zeta:"\u03B6",zfr:"\u{1D537}",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"}});var ts=b((ule,Nw)=>{"use strict";var Dw=zw();Nw.exports=zq;var $q={}.hasOwnProperty;function zq(e){return $q.call(Dw,e)?Dw[e]:!1}i(zq,"decodeEntity")});var Oc=b((cle,Uw)=>{"use strict";var Dq=$r(),Nq=Dq(/\d/);Uw.exports=Nq});var Mw=b((ple,Lw)=>{"use strict";var Uq=$r(),Lq=Uq(/[\dA-Fa-f]/);Lw.exports=Lq});var Bw=b((dle,Fw)=>{"use strict";var Mq=ts(),qw=Qn(),qq=Oc(),Fq=Mw();function Bq(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}i(Bq,"_interopDefaultLegacy");var jq=Bq(Mq),Vq={name:"characterReference",tokenize:Hq};function Hq(e,t,r){var n=this,o=0,a,s;return u;function u(f){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),l}function l(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),p):(e.enter("characterReferenceValue"),a=31,s=qw,c(f))}function p(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,s=Fq,c):(e.enter("characterReferenceValue"),a=7,s=qq,c(f))}function c(f){var m;return f===59&&o?(m=e.exit("characterReferenceValue"),s===qw&&!jq.default(n.sliceSerialize(m))?r(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)):s(f)&&o++<a?(e.consume(f),c):r(f)}}i(Hq,"tokenizeCharacterReference");Fw.exports=Vq});var Vw=b((mle,jw)=>{"use strict";var ii=Ye(),Zq=mr(),Wq=ri(),ho=ot(),Gq={name:"codeFenced",tokenize:Kq,concrete:!0};function Kq(e,t,r){var n=this,o={tokenize:P,partial:!0},a=Wq(this.events,"linePrefix"),s=0,u;return l;function l(E){return e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),u=E,p(E)}function p(E){return E===u?(e.consume(E),s++,p):(e.exit("codeFencedFenceSequence"),s<3?r(E):ho(e,c,"whitespace")(E))}function c(E){return E===null||ii(E)?h(E):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),f(E))}function f(E){return E===null||Zq(E)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ho(e,m,"whitespace")(E)):E===96&&E===u?r(E):(e.consume(E),f)}function m(E){return E===null||ii(E)?h(E):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),d(E))}function d(E){return E===null||ii(E)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),h(E)):E===96&&E===u?r(E):(e.consume(E),d)}function h(E){return e.exit("codeFencedFence"),n.interrupt?t(E):_(E)}function _(E){return E===null?y(E):ii(E)?(e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),e.attempt(o,y,a?ho(e,_,"linePrefix",a+1):_)):(e.enter("codeFlowValue"),v(E))}function v(E){return E===null||ii(E)?(e.exit("codeFlowValue"),_(E)):(e.consume(E),v)}function y(E){return e.exit("codeFenced"),t(E)}function P(E,I,M){var D=0;return ho(E,F,"linePrefix",this.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4);function F(V){return E.enter("codeFencedFence"),E.enter("codeFencedFenceSequence"),L(V)}function L(V){return V===u?(E.consume(V),D++,L):D<s?M(V):(E.exit("codeFencedFenceSequence"),ho(E,G,"whitespace")(V))}function G(V){return V===null||ii(V)?(E.exit("codeFencedFence"),I(V)):M(V)}}}i(Kq,"tokenizeCodeFenced");jw.exports=Gq});var Kw=b((gle,Gw)=>{"use strict";var Cc=Ye(),Hw=dr(),Jq=ri(),Zw=ot(),Xq={name:"codeIndented",tokenize:Qq,resolve:Yq},Ww={tokenize:eF,partial:!0};function Yq(e,t){var r={type:"codeIndented",start:e[0][1].start,end:e[e.length-1][1].end};return Hw(e,0,0,[["enter",r,t]]),Hw(e,e.length,0,[["exit",r,t]]),e}i(Yq,"resolveCodeIndented");function Qq(e,t,r){return e.attempt(Ww,n,r);function n(a){return a===null?t(a):Cc(a)?e.attempt(Ww,n,t)(a):(e.enter("codeFlowValue"),o(a))}function o(a){return a===null||Cc(a)?(e.exit("codeFlowValue"),n(a)):(e.consume(a),o)}}i(Qq,"tokenizeCodeIndented");function eF(e,t,r){var n=this;return Zw(e,o,"linePrefix",5);function o(a){return Cc(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),Zw(e,o,"linePrefix",5)):Jq(n.events,"linePrefix")<4?r(a):t(a)}}i(eF,"tokenizeIndentedContent");Gw.exports=Xq});var Yw=b((vle,Xw)=>{"use strict";var Jw=Ye(),tF={name:"codeText",tokenize:iF,resolve:rF,previous:nF};function rF(e){var t=e.length-4,r=3,n,o;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(n=r;++n<t;)if(e[n][1].type==="codeTextData"){e[t][1].type=e[r][1].type="codeTextPadding",r+=2,t-=2;break}}for(n=r-1,t++;++n<=t;)o===void 0?n!==t&&e[n][1].type!=="lineEnding"&&(o=n):(n===t||e[n][1].type==="lineEnding")&&(e[o][1].type="codeTextData",n!==o+2&&(e[o][1].end=e[n-1][1].end,e.splice(o+2,n-o-2),t-=n-o-2,n=o+2),o=void 0);return e}i(rF,"resolveCodeText");function nF(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}i(nF,"previous");function iF(e,t,r){var n=0,o,a;return s;function s(f){return e.enter("codeText"),e.enter("codeTextSequence"),u(f)}function u(f){return f===96?(e.consume(f),n++,u):(e.exit("codeTextSequence"),l(f))}function l(f){return f===null?r(f):f===96?(a=e.enter("codeTextSequence"),o=0,c(f)):f===32?(e.enter("space"),e.consume(f),e.exit("space"),l):Jw(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),l):(e.enter("codeTextData"),p(f))}function p(f){return f===null||f===32||f===96||Jw(f)?(e.exit("codeTextData"),l(f)):(e.consume(f),p)}function c(f){return f===96?(e.consume(f),o++,c):o===n?(e.exit("codeTextSequence"),e.exit("codeText"),t(f)):(a.type="codeTextData",p(f))}}i(iF,"tokenizeCodeText");Xw.exports=tF});var Rc=b((xle,eE)=>{"use strict";var Qw=Ma(),oF=mr(),aF=Ye();function sF(e,t,r,n,o,a,s,u,l){var p=l||1/0,c=0;return f;function f(y){return y===60?(e.enter(n),e.enter(o),e.enter(a),e.consume(y),e.exit(a),m):Qw(y)||y===41?r(y):(e.enter(n),e.enter(s),e.enter(u),e.enter("chunkString",{contentType:"string"}),_(y))}function m(y){return y===62?(e.enter(a),e.consume(y),e.exit(a),e.exit(o),e.exit(n),t):(e.enter(u),e.enter("chunkString",{contentType:"string"}),d(y))}function d(y){return y===62?(e.exit("chunkString"),e.exit(u),m(y)):y===null||y===60||aF(y)?r(y):(e.consume(y),y===92?h:d)}function h(y){return y===60||y===62||y===92?(e.consume(y),d):d(y)}function _(y){return y===40?++c>p?r(y):(e.consume(y),_):y===41?c--?(e.consume(y),_):(e.exit("chunkString"),e.exit(u),e.exit(s),e.exit(n),t(y)):y===null||oF(y)?c?r(y):(e.exit("chunkString"),e.exit(u),e.exit(s),e.exit(n),t(y)):Qw(y)?r(y):(e.consume(y),y===92?v:_)}function v(y){return y===40||y===41||y===92?(e.consume(y),_):_(y)}}i(sF,"destinationFactory");eE.exports=sF});var $c=b((Ple,rE)=>{"use strict";var tE=Ye(),uF=hr();function lF(e,t,r,n,o,a){var s=this,u=0,l;return p;function p(d){return e.enter(n),e.enter(o),e.consume(d),e.exit(o),e.enter(a),c}function c(d){return d===null||d===91||d===93&&!l||d===94&&!u&&"_hiddenFootnoteSupport"in s.parser.constructs||u>999?r(d):d===93?(e.exit(a),e.enter(o),e.consume(d),e.exit(o),e.exit(n),t):tE(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),f(d))}function f(d){return d===null||d===91||d===93||tE(d)||u++>999?(e.exit("chunkString"),c(d)):(e.consume(d),l=l||!uF(d),d===92?m:f)}function m(d){return d===91||d===92||d===93?(e.consume(d),u++,f):f(d)}}i(lF,"labelFactory");rE.exports=lF});var zc=b((Ele,nE)=>{"use strict";var cF=Ye(),pF=hr(),dF=ot();function fF(e,t){var r;return n;function n(o){return cF(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),r=!0,n):pF(o)?dF(e,n,r?"linePrefix":"lineSuffix")(o):t(o)}}i(fF,"whitespaceFactory");nE.exports=fF});var Dc=b((kle,oE)=>{"use strict";var iE=Ye(),mF=ot();function hF(e,t,r,n,o,a){var s;return u;function u(m){return e.enter(n),e.enter(o),e.consume(m),e.exit(o),s=m===40?41:m,l}function l(m){return m===s?(e.enter(o),e.consume(m),e.exit(o),e.exit(n),t):(e.enter(a),p(m))}function p(m){return m===s?(e.exit(a),l(s)):m===null?r(m):iE(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),mF(e,p,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(m))}function c(m){return m===s||m===null||iE(m)?(e.exit("chunkString"),p(m)):(e.consume(m),m===92?f:c)}function f(m){return m===s||m===92?(e.consume(m),c):c(m)}}i(hF,"titleFactory");oE.exports=hF});var lE=b((Ale,uE)=>{"use strict";var aE=Ye(),gF=mr(),yF=Ya(),vF=Rc(),bF=$c(),Nc=ot(),sE=zc(),xF=Dc(),_F={name:"definition",tokenize:wF},PF={tokenize:EF,partial:!0};function wF(e,t,r){var n=this,o;return a;function a(l){return e.enter("definition"),bF.call(n,e,s,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(l)}function s(l){return o=yF(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)),l===58?(e.enter("definitionMarker"),e.consume(l),e.exit("definitionMarker"),sE(e,vF(e,e.attempt(PF,Nc(e,u,"whitespace"),Nc(e,u,"whitespace")),r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString"))):r(l)}function u(l){return l===null||aE(l)?(e.exit("definition"),n.parser.defined.indexOf(o)<0&&n.parser.defined.push(o),t(l)):r(l)}}i(wF,"tokenizeDefinition");function EF(e,t,r){return n;function n(s){return gF(s)?sE(e,o)(s):r(s)}function o(s){return s===34||s===39||s===40?xF(e,Nc(e,a,"whitespace"),r,"definitionTitle","definitionTitleMarker","definitionTitleString")(s):r(s)}function a(s){return s===null||aE(s)?t(s):r(s)}}i(EF,"tokenizeTitle");uE.exports=_F});var pE=b((Ole,cE)=>{"use strict";var TF=Ye(),kF={name:"hardBreakEscape",tokenize:SF};function SF(e,t,r){return n;function n(a){return e.enter("hardBreakEscape"),e.enter("escapeMarker"),e.consume(a),o}function o(a){return TF(a)?(e.exit("escapeMarker"),e.exit("hardBreakEscape"),t(a)):r(a)}}i(SF,"tokenizeHardBreakEscape");cE.exports=kF});var mE=b((Rle,fE)=>{"use strict";var AF=Ye(),dE=mr(),IF=hr(),OF=dr(),CF=ot(),RF={name:"headingAtx",tokenize:zF,resolve:$F};function $F(e,t){var r=e.length-2,n=3,o,a;return e[n][1].type==="whitespace"&&(n+=2),r-2>n&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(n===r-1||r-4>n&&e[r-2][1].type==="whitespace")&&(r-=n+1===r?2:4),r>n&&(o={type:"atxHeadingText",start:e[n][1].start,end:e[r][1].end},a={type:"chunkText",start:e[n][1].start,end:e[r][1].end,contentType:"text"},OF(e,n,r-n+1,[["enter",o,t],["enter",a,t],["exit",a,t],["exit",o,t]])),e}i($F,"resolveHeadingAtx");function zF(e,t,r){var n=this,o=0;return a;function a(c){return e.enter("atxHeading"),e.enter("atxHeadingSequence"),s(c)}function s(c){return c===35&&o++<6?(e.consume(c),s):c===null||dE(c)?(e.exit("atxHeadingSequence"),n.interrupt?t(c):u(c)):r(c)}function u(c){return c===35?(e.enter("atxHeadingSequence"),l(c)):c===null||AF(c)?(e.exit("atxHeading"),t(c)):IF(c)?CF(e,u,"whitespace")(c):(e.enter("atxHeadingText"),p(c))}function l(c){return c===35?(e.consume(c),l):(e.exit("atxHeadingSequence"),u(c))}function p(c){return c===null||c===35||dE(c)?(e.exit("atxHeadingText"),u(c)):(e.consume(c),p)}}i(zF,"tokenizeHeadingAtx");fE.exports=RF});var gE=b((zle,hE)=>{"use strict";var DF=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"];hE.exports=DF});var vE=b((Dle,yE)=>{"use strict";var NF=["pre","script","style","textarea"];yE.exports=NF});var wE=b((Nle,PE)=>{"use strict";var go=uo(),bE=Qn(),oi=Ye(),xE=mr(),ai=hr(),rs=so(),UF=gE(),_E=vE(),LF=po(),MF={name:"htmlFlow",tokenize:BF,resolveTo:FF,concrete:!0},qF={tokenize:jF,partial:!0};function FF(e){for(var t=e.length;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}i(FF,"resolveToHtmlFlow");function BF(e,t,r){var n=this,o,a,s,u,l;return p;function p(g){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(g),c}function c(g){return g===33?(e.consume(g),f):g===47?(e.consume(g),h):g===63?(e.consume(g),o=3,n.interrupt?t:xe):go(g)?(e.consume(g),s=rs(g),a=!0,_):r(g)}function f(g){return g===45?(e.consume(g),o=2,m):g===91?(e.consume(g),o=5,s="CDATA[",u=0,d):go(g)?(e.consume(g),o=4,n.interrupt?t:xe):r(g)}function m(g){return g===45?(e.consume(g),n.interrupt?t:xe):r(g)}function d(g){return g===s.charCodeAt(u++)?(e.consume(g),u===s.length?n.interrupt?t:$:d):r(g)}function h(g){return go(g)?(e.consume(g),s=rs(g),_):r(g)}function _(g){return g===null||g===47||g===62||xE(g)?g!==47&&a&&_E.indexOf(s.toLowerCase())>-1?(o=1,n.interrupt?t(g):$(g)):UF.indexOf(s.toLowerCase())>-1?(o=6,g===47?(e.consume(g),v):n.interrupt?t(g):$(g)):(o=7,n.interrupt?r(g):a?P(g):y(g)):g===45||bE(g)?(e.consume(g),s+=rs(g),_):r(g)}function v(g){return g===62?(e.consume(g),n.interrupt?t:$):r(g)}function y(g){return ai(g)?(e.consume(g),y):G(g)}function P(g){return g===47?(e.consume(g),G):g===58||g===95||go(g)?(e.consume(g),E):ai(g)?(e.consume(g),P):G(g)}function E(g){return g===45||g===46||g===58||g===95||bE(g)?(e.consume(g),E):I(g)}function I(g){return g===61?(e.consume(g),M):ai(g)?(e.consume(g),I):P(g)}function M(g){return g===null||g===60||g===61||g===62||g===96?r(g):g===34||g===39?(e.consume(g),l=g,D):ai(g)?(e.consume(g),M):(l=void 0,F(g))}function D(g){return g===l?(e.consume(g),L):g===null||oi(g)?r(g):(e.consume(g),D)}function F(g){return g===null||g===34||g===39||g===60||g===61||g===62||g===96||xE(g)?I(g):(e.consume(g),F)}function L(g){return g===47||g===62||ai(g)?P(g):r(g)}function G(g){return g===62?(e.consume(g),V):r(g)}function V(g){return ai(g)?(e.consume(g),V):g===null||oi(g)?$(g):r(g)}function $(g){return g===45&&o===2?(e.consume(g),Y):g===60&&o===1?(e.consume(g),Le):g===62&&o===4?(e.consume(g),Pe):g===63&&o===3?(e.consume(g),xe):g===93&&o===5?(e.consume(g),k):oi(g)&&(o===6||o===7)?e.check(qF,Pe,q)(g):g===null||oi(g)?q(g):(e.consume(g),$)}function q(g){return e.exit("htmlFlowData"),le(g)}function le(g){return g===null?we(g):oi(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),le):(e.enter("htmlFlowData"),$(g))}function Y(g){return g===45?(e.consume(g),xe):$(g)}function Le(g){return g===47?(e.consume(g),s="",Me):$(g)}function Me(g){return g===62&&_E.indexOf(s.toLowerCase())>-1?(e.consume(g),Pe):go(g)&&s.length<8?(e.consume(g),s+=rs(g),Me):$(g)}function k(g){return g===93?(e.consume(g),xe):$(g)}function xe(g){return g===62?(e.consume(g),Pe):$(g)}function Pe(g){return g===null||oi(g)?(e.exit("htmlFlowData"),we(g)):(e.consume(g),Pe)}function we(g){return e.exit("htmlFlow"),t(g)}}i(BF,"tokenizeHtmlFlow");function jF(e,t,r){return n;function n(o){return e.exit("htmlFlowData"),e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),e.attempt(LF,t,r)}}i(jF,"tokenizeNextBlank");PE.exports=MF});var TE=b((Lle,EE)=>{"use strict";var ns=uo(),Uc=Qn(),Nr=Ye(),Lc=mr(),is=hr(),VF=ot(),HF={name:"htmlText",tokenize:ZF};function ZF(e,t,r){var n=this,o,a,s,u;return l;function l(g){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(g),p}function p(g){return g===33?(e.consume(g),c):g===47?(e.consume(g),F):g===63?(e.consume(g),M):ns(g)?(e.consume(g),V):r(g)}function c(g){return g===45?(e.consume(g),f):g===91?(e.consume(g),a="CDATA[",s=0,v):ns(g)?(e.consume(g),I):r(g)}function f(g){return g===45?(e.consume(g),m):r(g)}function m(g){return g===null||g===62?r(g):g===45?(e.consume(g),d):h(g)}function d(g){return g===null||g===62?r(g):h(g)}function h(g){return g===null?r(g):g===45?(e.consume(g),_):Nr(g)?(u=h,xe(g)):(e.consume(g),h)}function _(g){return g===45?(e.consume(g),we):h(g)}function v(g){return g===a.charCodeAt(s++)?(e.consume(g),s===a.length?y:v):r(g)}function y(g){return g===null?r(g):g===93?(e.consume(g),P):Nr(g)?(u=y,xe(g)):(e.consume(g),y)}function P(g){return g===93?(e.consume(g),E):y(g)}function E(g){return g===62?we(g):g===93?(e.consume(g),E):y(g)}function I(g){return g===null||g===62?we(g):Nr(g)?(u=I,xe(g)):(e.consume(g),I)}function M(g){return g===null?r(g):g===63?(e.consume(g),D):Nr(g)?(u=M,xe(g)):(e.consume(g),M)}function D(g){return g===62?we(g):M(g)}function F(g){return ns(g)?(e.consume(g),L):r(g)}function L(g){return g===45||Uc(g)?(e.consume(g),L):G(g)}function G(g){return Nr(g)?(u=G,xe(g)):is(g)?(e.consume(g),G):we(g)}function V(g){return g===45||Uc(g)?(e.consume(g),V):g===47||g===62||Lc(g)?$(g):r(g)}function $(g){return g===47?(e.consume(g),we):g===58||g===95||ns(g)?(e.consume(g),q):Nr(g)?(u=$,xe(g)):is(g)?(e.consume(g),$):we(g)}function q(g){return g===45||g===46||g===58||g===95||Uc(g)?(e.consume(g),q):le(g)}function le(g){return g===61?(e.consume(g),Y):Nr(g)?(u=le,xe(g)):is(g)?(e.consume(g),le):$(g)}function Y(g){return g===null||g===60||g===61||g===62||g===96?r(g):g===34||g===39?(e.consume(g),o=g,Le):Nr(g)?(u=Y,xe(g)):is(g)?(e.consume(g),Y):(e.consume(g),o=void 0,k)}function Le(g){return g===o?(e.consume(g),Me):g===null?r(g):Nr(g)?(u=Le,xe(g)):(e.consume(g),Le)}function Me(g){return g===62||g===47||Lc(g)?$(g):r(g)}function k(g){return g===null||g===34||g===39||g===60||g===61||g===96?r(g):g===62||Lc(g)?$(g):(e.consume(g),k)}function xe(g){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),VF(e,Pe,"linePrefix",n.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)}function Pe(g){return e.enter("htmlTextData"),u(g)}function we(g){return g===62?(e.consume(g),e.exit("htmlTextData"),e.exit("htmlText"),t):r(g)}}i(ZF,"tokenizeHtmlText");EE.exports=HF});var os=b((qle,SE)=>{"use strict";var WF=mr(),si=Qa(),GF=dr(),kE=Ya(),KF=lo(),ui=Jr(),JF=Rc(),XF=$c(),YF=Dc(),Mc=zc(),QF={name:"labelEnd",tokenize:oB,resolveTo:iB,resolveAll:nB},eB={tokenize:aB},tB={tokenize:sB},rB={tokenize:uB};function nB(e){for(var t=-1,r;++t<e.length;)r=e[t][1],!r._used&&(r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd")&&(e.splice(t+1,r.type==="labelImage"?4:2),r.type="data",t++);return e}i(nB,"resolveAllLabelEnd");function iB(e,t){for(var r=e.length,n=0,o,a,s,u,l,p,c;r--;)if(u=e[r][1],l){if(u.type==="link"||u.type==="labelLink"&&u._inactive)break;e[r][0]==="enter"&&u.type==="labelLink"&&(u._inactive=!0)}else if(p){if(e[r][0]==="enter"&&(u.type==="labelImage"||u.type==="labelLink")&&!u._balanced&&(l=r,u.type!=="labelLink")){n=2;break}}else u.type==="labelEnd"&&(p=r);return o={type:e[l][1].type==="labelLink"?"link":"image",start:ui(e[l][1].start),end:ui(e[e.length-1][1].end)},a={type:"label",start:ui(e[l][1].start),end:ui(e[p][1].end)},s={type:"labelText",start:ui(e[l+n+2][1].end),end:ui(e[p-2][1].start)},c=[["enter",o,t],["enter",a,t]],c=si(c,e.slice(l+1,l+n+3)),c=si(c,[["enter",s,t]]),c=si(c,KF(t.parser.constructs.insideSpan.null,e.slice(l+n+4,p-3),t)),c=si(c,[["exit",s,t],e[p-2],e[p-1],["exit",a,t]]),c=si(c,e.slice(p+1)),c=si(c,[["exit",o,t]]),GF(e,l,e.length,c),e}i(iB,"resolveToLabelEnd");function oB(e,t,r){for(var n=this,o=n.events.length,a,s;o--;)if((n.events[o][1].type==="labelImage"||n.events[o][1].type==="labelLink")&&!n.events[o][1]._balanced){a=n.events[o][1];break}return u;function u(c){return a?a._inactive?p(c):(s=n.parser.defined.indexOf(kE(n.sliceSerialize({start:a.end,end:n.now()})))>-1,e.enter("labelEnd"),e.enter("labelMarker"),e.consume(c),e.exit("labelMarker"),e.exit("labelEnd"),l):r(c)}function l(c){return c===40?e.attempt(eB,t,s?t:p)(c):c===91?e.attempt(tB,t,s?e.attempt(rB,t,p):p)(c):s?t(c):p(c)}function p(c){return a._balanced=!0,r(c)}}i(oB,"tokenizeLabelEnd");function aB(e,t,r){return n;function n(l){return e.enter("resource"),e.enter("resourceMarker"),e.consume(l),e.exit("resourceMarker"),Mc(e,o)}function o(l){return l===41?u(l):JF(e,a,r,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",3)(l)}function a(l){return WF(l)?Mc(e,s)(l):u(l)}function s(l){return l===34||l===39||l===40?YF(e,Mc(e,u),r,"resourceTitle","resourceTitleMarker","resourceTitleString")(l):u(l)}function u(l){return l===41?(e.enter("resourceMarker"),e.consume(l),e.exit("resourceMarker"),e.exit("resource"),t):r(l)}}i(aB,"tokenizeResource");function sB(e,t,r){var n=this;return o;function o(s){return XF.call(n,e,a,r,"reference","referenceMarker","referenceString")(s)}function a(s){return n.parser.defined.indexOf(kE(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))<0?r(s):t(s)}}i(sB,"tokenizeFullReference");function uB(e,t,r){return n;function n(a){return e.enter("reference"),e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),o}function o(a){return a===93?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),t):r(a)}}i(uB,"tokenizeCollapsedReference");SE.exports=QF});var IE=b((Ble,AE)=>{"use strict";var lB=os(),cB={name:"labelStartImage",tokenize:pB,resolveAll:lB.resolveAll};function pB(e,t,r){var n=this;return o;function o(u){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(u),e.exit("labelImageMarker"),a}function a(u){return u===91?(e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelImage"),s):r(u)}function s(u){return u===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(u):t(u)}}i(pB,"tokenizeLabelStartImage");AE.exports=cB});var CE=b((Vle,OE)=>{"use strict";var dB=os(),fB={name:"labelStartLink",tokenize:mB,resolveAll:dB.resolveAll};function mB(e,t,r){var n=this;return o;function o(s){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelLink"),a}function a(s){return s===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(s):t(s)}}i(mB,"tokenizeLabelStartLink");OE.exports=fB});var $E=b((Zle,RE)=>{"use strict";var hB=ot(),gB={name:"lineEnding",tokenize:yB};function yB(e,t){return r;function r(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),hB(e,t,"linePrefix")}}i(yB,"tokenizeLineEnding");RE.exports=gB});var qc=b((Gle,zE)=>{"use strict";var vB=Ye(),bB=hr(),xB=ot(),_B={name:"thematicBreak",tokenize:PB};function PB(e,t,r){var n=0,o;return a;function a(l){return e.enter("thematicBreak"),o=l,s(l)}function s(l){return l===o?(e.enter("thematicBreakSequence"),u(l)):bB(l)?xB(e,s,"whitespace")(l):n<3||l!==null&&!vB(l)?r(l):(e.exit("thematicBreak"),t(l))}function u(l){return l===o?(e.consume(l),n++,u):(e.exit("thematicBreakSequence"),s(l))}}i(PB,"tokenizeThematicBreak");zE.exports=_B});var ME=b((Jle,LE)=>{"use strict";var DE=Oc(),Fc=hr(),Bc=ri(),wB=sc(),as=ot(),NE=po(),EB=qc(),UE={name:"list",tokenize:SB,continuation:{tokenize:AB},exit:OB},TB={tokenize:CB,partial:!0},kB={tokenize:IB,partial:!0};function SB(e,t,r){var n=this,o=Bc(n.events,"linePrefix"),a=0;return s;function s(m){var d=n.containerState.type||(m===42||m===43||m===45?"listUnordered":"listOrdered");if(d==="listUnordered"?!n.containerState.marker||m===n.containerState.marker:DE(m)){if(n.containerState.type||(n.containerState.type=d,e.enter(d,{_container:!0})),d==="listUnordered")return e.enter("listItemPrefix"),m===42||m===45?e.check(EB,r,l)(m):l(m);if(!n.interrupt||m===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(m)}return r(m)}function u(m){return DE(m)&&++a<10?(e.consume(m),u):(!n.interrupt||a<2)&&(n.containerState.marker?m===n.containerState.marker:m===41||m===46)?(e.exit("listItemValue"),l(m)):r(m)}function l(m){return e.enter("listItemMarker"),e.consume(m),e.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||m,e.check(NE,n.interrupt?r:p,e.attempt(TB,f,c))}function p(m){return n.containerState.initialBlankLine=!0,o++,f(m)}function c(m){return Fc(m)?(e.enter("listItemPrefixWhitespace"),e.consume(m),e.exit("listItemPrefixWhitespace"),f):r(m)}function f(m){return n.containerState.size=o+wB(n.sliceStream(e.exit("listItemPrefix"))),t(m)}}i(SB,"tokenizeListStart");function AB(e,t,r){var n=this;return n.containerState._closeFlow=void 0,e.check(NE,o,a);function o(u){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,as(e,t,"listItemIndent",n.containerState.size+1)(u)}i(o,"onBlank");function a(u){return n.containerState.furtherBlankLines||!Fc(u)?(n.containerState.furtherBlankLines=n.containerState.initialBlankLine=void 0,s(u)):(n.containerState.furtherBlankLines=n.containerState.initialBlankLine=void 0,e.attempt(kB,t,s)(u))}i(a,"notBlank");function s(u){return n.containerState._closeFlow=!0,n.interrupt=void 0,as(e,e.attempt(UE,t,r),"linePrefix",n.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:4)(u)}i(s,"notInCurrentItem")}i(AB,"tokenizeListContinuation");function IB(e,t,r){var n=this;return as(e,o,"listItemIndent",n.containerState.size+1);function o(a){return Bc(n.events,"listItemIndent")===n.containerState.size?t(a):r(a)}}i(IB,"tokenizeIndent");function OB(e){e.exit(this.containerState.type)}i(OB,"tokenizeListEnd");function CB(e,t,r){var n=this;return as(e,o,"listItemPrefixWhitespace",n.parser.constructs.disable.null.indexOf("codeIndented")>-1?void 0:5);function o(a){return Fc(a)||!Bc(n.events,"listItemPrefixWhitespace")?r(a):t(a)}}i(CB,"tokenizeListItemPrefixWhitespace");LE.exports=UE});var FE=b((Yle,qE)=>{"use strict";var RB=Ye(),jc=Jr(),$B=ot(),zB={name:"setextUnderline",tokenize:NB,resolveTo:DB};function DB(e,t){for(var r=e.length,n,o,a,s;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){n=r;break}e[r][1].type==="paragraph"&&(o=r)}else e[r][1].type==="content"&&e.splice(r,1),!a&&e[r][1].type==="definition"&&(a=r);return s={type:"setextHeading",start:jc(e[o][1].start),end:jc(e[e.length-1][1].end)},e[o][1].type="setextHeadingText",a?(e.splice(o,0,["enter",s,t]),e.splice(a+1,0,["exit",e[n][1],t]),e[n][1].end=jc(e[a][1].end)):e[n][1]=s,e.push(["exit",s,t]),e}i(DB,"resolveToSetextUnderline");function NB(e,t,r){for(var n=this,o=n.events.length,a,s;o--;)if(n.events[o][1].type!=="lineEnding"&&n.events[o][1].type!=="linePrefix"&&n.events[o][1].type!=="content"){s=n.events[o][1].type==="paragraph";break}return u;function u(c){return!n.lazy&&(n.interrupt||s)?(e.enter("setextHeadingLine"),e.enter("setextHeadingLineSequence"),a=c,l(c)):r(c)}function l(c){return c===a?(e.consume(c),l):(e.exit("setextHeadingLineSequence"),$B(e,p,"lineSuffix")(c))}function p(c){return c===null||RB(c)?(e.exit("setextHeadingLine"),t(c)):r(c)}}i(NB,"tokenizeSetextUnderline");qE.exports=zB});var ZE=b(vr=>{"use strict";Object.defineProperty(vr,"__esModule",{value:!0});var UB=Ac(),Wc=_w(),LB=kw(),MB=Iw(),VE=$w(),HE=Bw(),BE=Vw(),Vc=Kw(),qB=Yw(),FB=lE(),BB=pE(),jB=mE(),VB=wE(),HB=TE(),ZB=os(),WB=IE(),GB=CE(),Hc=$E(),Nt=ME(),jE=FE(),Zc=qc(),KB={42:Nt,43:Nt,45:Nt,48:Nt,49:Nt,50:Nt,51:Nt,52:Nt,53:Nt,54:Nt,55:Nt,56:Nt,57:Nt,62:MB},JB={91:FB},XB={"-2":Vc,"-1":Vc,32:Vc},YB={35:jB,42:Zc,45:[jE,Zc],60:VB,61:jE,95:Zc,96:BE,126:BE},QB={38:HE,92:VE},ej={"-5":Hc,"-4":Hc,"-3":Hc,33:WB,38:HE,42:Wc,60:[LB,HB],91:GB,92:[BB,VE],93:ZB,95:Wc,96:qB},tj={null:[Wc,UB.resolver]},rj={null:[]};vr.contentInitial=JB;vr.disable=rj;vr.document=KB;vr.flow=YB;vr.flowInitial=XB;vr.insideSpan=tj;vr.string=QB;vr.text=ej});var KE=b((tce,GE)=>{"use strict";var nj=KP(),ij=YP(),oj=iw(),WE=Ac(),aj=ec(),sj=hw(),uj=La(),lj=ZE();function cj(e){var t=e||{},r={defined:[],constructs:aj([lj].concat(uj(t.extensions))),content:n(nj),document:n(ij),flow:n(oj),string:n(WE.string),text:n(WE.text)};return r;function n(o){return a;function a(s){return sj(r,o,s)}}}i(cj,"parse");GE.exports=cj});var YE=b((nce,XE)=>{"use strict";var JE=/[\0\t\n\r]/g;function pj(){var e=!0,t=1,r="",n;return o;function o(a,s,u){var l=[],p,c,f,m,d;for(a=r+a.toString(s),f=0,r="",e&&(a.charCodeAt(0)===65279&&f++,e=void 0);f<a.length;){if(JE.lastIndex=f,p=JE.exec(a),m=p?p.index:a.length,d=a.charCodeAt(m),!p){r=a.slice(f);break}if(d===10&&f===m&&n)l.push(-3),n=void 0;else if(n&&(l.push(-5),n=void 0),f<m&&(l.push(a.slice(f,m)),t+=m-f),d===0)l.push(65533),t++;else if(d===9)for(c=Math.ceil(t/4)*4,l.push(-2);t++<c;)l.push(-1);else d===10?(l.push(-4),t=1):(n=!0,t=1);f=m+1}return u&&(n&&l.push(-5),r&&l.push(r),l.push(null)),l}}i(pj,"preprocess");XE.exports=pj});var eT=b((oce,QE)=>{"use strict";var dj=kc();function fj(e){for(;!dj(e););return e}i(fj,"postprocess");QE.exports=fj});var Kc=b((sce,nT)=>{"use strict";var li={}.hasOwnProperty;nT.exports=mj;function mj(e){return!e||typeof e!="object"?"":li.call(e,"position")||li.call(e,"type")?tT(e.position):li.call(e,"start")||li.call(e,"end")?tT(e):li.call(e,"line")||li.call(e,"column")?Gc(e):""}i(mj,"stringify");function Gc(e){return(!e||typeof e!="object")&&(e={}),rT(e.line)+":"+rT(e.column)}i(Gc,"point");function tT(e){return(!e||typeof e!="object")&&(e={}),Gc(e.start)+"-"+Gc(e.end)}i(tT,"position");function rT(e){return e&&typeof e=="number"?e:1}i(rT,"index")});var aT=b((lce,oT)=>{"use strict";oT.exports=Pj;var hj=Xa(),gj=ti(),iT=Yl(),Jc=Ya(),yj=GP(),vj=KE(),bj=YE(),xj=eT(),_j=ts(),ss=Kc();function Pj(e,t,r){return typeof t!="string"&&(r=t,t=void 0),wj(r)(xj(vj(r).document().write(bj()(e,t,!0))))}i(Pj,"fromMarkdown");function wj(e){var t=e||{},r=Ej({transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:p(Re),autolinkProtocol:le,autolinkEmail:le,atxHeading:p(ie),blockQuote:p(Qr),characterEscape:le,characterReference:le,codeFenced:p(or),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:p(or,c),codeText:p(vt,c),codeTextData:le,data:le,codeFlowValue:le,definition:p(z),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:p(U),hardBreakEscape:p(ye),hardBreakTrailing:p(ye),htmlFlow:p(ce,c),htmlFlowData:le,htmlText:p(ce,c),htmlTextData:le,image:p(je),label:c,link:p(Re),listItem:p(Lr),listItemValue:v,listOrdered:p(Ne,_),listUnordered:p(Ne),paragraph:p(en),reference:pt,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:p(ie),strong:p(et),thematicBreak:p(kA)},exit:{atxHeading:m(),atxHeadingSequence:G,autolink:m(),autolinkEmail:wt,autolinkProtocol:ir,blockQuote:m(),characterEscapeValue:Y,characterReferenceMarkerHexadecimal:Ce,characterReferenceMarkerNumeric:Ce,characterReferenceValue:_r,codeFenced:m(I),codeFencedFence:E,codeFencedFenceInfo:y,codeFencedFenceMeta:P,codeFlowValue:Y,codeIndented:m(M),codeText:m(Pe),codeTextData:Y,data:Y,definition:m(),definitionDestinationString:L,definitionLabelString:D,definitionTitleString:F,emphasis:m(),hardBreakEscape:m(Me),hardBreakTrailing:m(Me),htmlFlow:m(k),htmlFlowData:Y,htmlText:m(xe),htmlTextData:Y,image:m(g),label:ft,labelText:ct,lineEnding:Le,link:m(we),listItem:m(),listOrdered:m(),listUnordered:m(),paragraph:m(),referenceString:Kt,resourceDestinationString:Pt,resourceTitleString:xr,resource:H,setextHeading:m(q),setextHeadingLineSequence:$,setextHeadingText:V,strong:m(),thematicBreak:m()}},t.mdastExtensions||[]),n={};return o;function o(O){for(var oe={type:"root",children:[]},ke=[oe],$e=[],Ut=[],Ke=-1,Jt,tn,Xt={stack:ke,tokenStack:$e,config:r,enter:f,exit:d,buffer:c,resume:h,setData:s,getData:u};++Ke<O.length;)(O[Ke][1].type==="listOrdered"||O[Ke][1].type==="listUnordered")&&(O[Ke][0]==="enter"?Ut.push(Ke):(tn=Ut.pop(Ke),Ke=a(O,tn,Ke)));for(Ke=-1;++Ke<O.length;)Jt=r[O[Ke][0]],iT.call(Jt,O[Ke][1].type)&&Jt[O[Ke][1].type].call(gj({sliceSerialize:O[Ke][2].sliceSerialize},Xt),O[Ke][1]);if($e.length)throw new Error("Cannot close document, a token (`"+$e[$e.length-1].type+"`, "+ss({start:$e[$e.length-1].start,end:$e[$e.length-1].end})+") is still open");for(oe.position={start:l(O.length?O[0][1].start:{line:1,column:1,offset:0}),end:l(O.length?O[O.length-2][1].end:{line:1,column:1,offset:0})},Ke=-1;++Ke<r.transforms.length;)oe=r.transforms[Ke](oe)||oe;return oe}function a(O,oe,ke){for(var $e=oe-1,Ut=-1,Ke=!1,Jt,tn,Xt,ar,Ve,pi,di;++$e<=ke;)if(Ve=O[$e],Ve[1].type==="listUnordered"||Ve[1].type==="listOrdered"||Ve[1].type==="blockQuote"?(Ve[0]==="enter"?Ut++:Ut--,di=void 0):Ve[1].type==="lineEndingBlank"?Ve[0]==="enter"&&(Jt&&!di&&!Ut&&!pi&&(pi=$e),di=void 0):Ve[1].type==="linePrefix"||Ve[1].type==="listItemValue"||Ve[1].type==="listItemMarker"||Ve[1].type==="listItemPrefix"||Ve[1].type==="listItemPrefixWhitespace"||(di=void 0),!Ut&&Ve[0]==="enter"&&Ve[1].type==="listItemPrefix"||Ut===-1&&Ve[0]==="exit"&&(Ve[1].type==="listUnordered"||Ve[1].type==="listOrdered")){if(Jt){for(tn=$e,Xt=void 0;tn--;)if(ar=O[tn],ar[1].type==="lineEnding"||ar[1].type==="lineEndingBlank"){if(ar[0]==="exit")continue;Xt&&(O[Xt][1].type="lineEndingBlank",Ke=!0),ar[1].type="lineEnding",Xt=tn}else if(!(ar[1].type==="linePrefix"||ar[1].type==="blockQuotePrefix"||ar[1].type==="blockQuotePrefixWhitespace"||ar[1].type==="blockQuoteMarker"||ar[1].type==="listItemIndent"))break;pi&&(!Xt||pi<Xt)&&(Jt._spread=!0),Jt.end=l(Xt?O[Xt][1].start:Ve[1].end),O.splice(Xt||$e,0,["exit",Jt,Ve[2]]),$e++,ke++}Ve[1].type==="listItemPrefix"&&(Jt={type:"listItem",_spread:!1,start:l(Ve[1].start)},O.splice($e,0,["enter",Jt,Ve[2]]),$e++,ke++,pi=void 0,di=!0)}return O[oe][1]._spread=Ke,ke}function s(O,oe){n[O]=oe}function u(O){return n[O]}function l(O){return{line:O.line,column:O.column,offset:O.offset}}function p(O,oe){return ke;function ke($e){f.call(this,O($e),$e),oe&&oe.call(this,$e)}}function c(){this.stack.push({type:"fragment",children:[]})}function f(O,oe){return this.stack[this.stack.length-1].children.push(O),this.stack.push(O),this.tokenStack.push(oe),O.position={start:l(oe.start)},O}function m(O){return oe;function oe(ke){O&&O.call(this,ke),d.call(this,ke)}}function d(O){var oe=this.stack.pop(),ke=this.tokenStack.pop();if(ke){if(ke.type!==O.type)throw new Error("Cannot close `"+O.type+"` ("+ss({start:O.start,end:O.end})+"): a different token (`"+ke.type+"`, "+ss({start:ke.start,end:ke.end})+") is open")}else throw new Error("Cannot close `"+O.type+"` ("+ss({start:O.start,end:O.end})+"): it\u2019s not open");return oe.position.end=l(O.end),oe}function h(){return hj(this.stack.pop())}function _(){s("expectingFirstListItemValue",!0)}function v(O){u("expectingFirstListItemValue")&&(this.stack[this.stack.length-2].start=parseInt(this.sliceSerialize(O),10),s("expectingFirstListItemValue"))}function y(){var O=this.resume();this.stack[this.stack.length-1].lang=O}function P(){var O=this.resume();this.stack[this.stack.length-1].meta=O}function E(){u("flowCodeInside")||(this.buffer(),s("flowCodeInside",!0))}function I(){var O=this.resume();this.stack[this.stack.length-1].value=O.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),s("flowCodeInside")}function M(){var O=this.resume();this.stack[this.stack.length-1].value=O}function D(O){var oe=this.resume();this.stack[this.stack.length-1].label=oe,this.stack[this.stack.length-1].identifier=Jc(this.sliceSerialize(O)).toLowerCase()}function F(){var O=this.resume();this.stack[this.stack.length-1].title=O}function L(){var O=this.resume();this.stack[this.stack.length-1].url=O}function G(O){this.stack[this.stack.length-1].depth||(this.stack[this.stack.length-1].depth=this.sliceSerialize(O).length)}function V(){s("setextHeadingSlurpLineEnding",!0)}function $(O){this.stack[this.stack.length-1].depth=this.sliceSerialize(O).charCodeAt(0)===61?1:2}function q(){s("setextHeadingSlurpLineEnding")}function le(O){var oe=this.stack[this.stack.length-1].children,ke=oe[oe.length-1];(!ke||ke.type!=="text")&&(ke=bo(),ke.position={start:l(O.start)},this.stack[this.stack.length-1].children.push(ke)),this.stack.push(ke)}function Y(O){var oe=this.stack.pop();oe.value+=this.sliceSerialize(O),oe.position.end=l(O.end)}function Le(O){var oe=this.stack[this.stack.length-1];if(u("atHardBreak")){oe.children[oe.children.length-1].position.end=l(O.end),s("atHardBreak");return}!u("setextHeadingSlurpLineEnding")&&r.canContainEols.indexOf(oe.type)>-1&&(le.call(this,O),Y.call(this,O))}function Me(){s("atHardBreak",!0)}function k(){var O=this.resume();this.stack[this.stack.length-1].value=O}function xe(){var O=this.resume();this.stack[this.stack.length-1].value=O}function Pe(){var O=this.resume();this.stack[this.stack.length-1].value=O}function we(){var O=this.stack[this.stack.length-1];u("inReference")?(O.type+="Reference",O.referenceType=u("referenceType")||"shortcut",delete O.url,delete O.title):(delete O.identifier,delete O.label,delete O.referenceType),s("referenceType")}function g(){var O=this.stack[this.stack.length-1];u("inReference")?(O.type+="Reference",O.referenceType=u("referenceType")||"shortcut",delete O.url,delete O.title):(delete O.identifier,delete O.label,delete O.referenceType),s("referenceType")}function ct(O){this.stack[this.stack.length-2].identifier=Jc(this.sliceSerialize(O)).toLowerCase()}function ft(){var O=this.stack[this.stack.length-1],oe=this.resume();this.stack[this.stack.length-1].label=oe,s("inReference",!0),this.stack[this.stack.length-1].type==="link"?this.stack[this.stack.length-1].children=O.children:this.stack[this.stack.length-1].alt=oe}function Pt(){var O=this.resume();this.stack[this.stack.length-1].url=O}function xr(){var O=this.resume();this.stack[this.stack.length-1].title=O}function H(){s("inReference")}function pt(){s("referenceType","collapsed")}function Kt(O){var oe=this.resume();this.stack[this.stack.length-1].label=oe,this.stack[this.stack.length-1].identifier=Jc(this.sliceSerialize(O)).toLowerCase(),s("referenceType","full")}function Ce(O){s("characterReferenceType",O.type)}function _r(O){var oe=this.sliceSerialize(O),ke=u("characterReferenceType"),$e,Ut;ke?($e=yj(oe,ke==="characterReferenceMarkerNumeric"?10:16),s("characterReferenceType")):$e=_j(oe),Ut=this.stack.pop(),Ut.value+=$e,Ut.position.end=l(O.end)}function ir(O){Y.call(this,O),this.stack[this.stack.length-1].url=this.sliceSerialize(O)}function wt(O){Y.call(this,O),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(O)}function Qr(){return{type:"blockquote",children:[]}}function or(){return{type:"code",lang:null,meta:null,value:""}}function vt(){return{type:"inlineCode",value:""}}function z(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function U(){return{type:"emphasis",children:[]}}function ie(){return{type:"heading",depth:void 0,children:[]}}function ye(){return{type:"break"}}function ce(){return{type:"html",value:""}}function je(){return{type:"image",title:null,url:"",alt:null}}function Re(){return{type:"link",title:null,url:"",children:[]}}function Ne(O){return{type:"list",ordered:O.type==="listOrdered",start:null,spread:O._spread,children:[]}}function Lr(O){return{type:"listItem",spread:O._spread,checked:null,children:[]}}function en(){return{type:"paragraph",children:[]}}function et(){return{type:"strong",children:[]}}function bo(){return{type:"text",value:""}}function kA(){return{type:"thematicBreak"}}}i(wj,"compiler");function Ej(e,t){for(var r=-1;++r<t.length;)Tj(e,t[r]);return e}i(Ej,"configure");function Tj(e,t){var r,n;for(r in t)n=iT.call(e,r)?e[r]:e[r]={},r==="canContainEols"||r==="transforms"?e[r]=[].concat(n,t[r]):Object.assign(n,t[r])}i(Tj,"extension")});var uT=b((pce,sT)=>{"use strict";sT.exports=aT()});var cT=b((dce,lT)=>{"use strict";lT.exports=Sj;var kj=uT();function Sj(e){var t=this;this.Parser=r;function r(n){return kj(n,Object.assign({},t.data("settings"),e,{extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]}))}i(r,"parse")}i(Sj,"parse")});var fT=b((mce,dT)=>{"use strict";dT.exports=Ij;var Aj=Function.prototype,pT={}.hasOwnProperty;function Ij(e,t){var r=t||{};function n(o){var a=n.invalid,s=n.handlers;return o&&pT.call(o,e)&&(a=pT.call(s,o[e])?s[o[e]]:n.unknown),(a||Aj).apply(this,arguments)}return i(n,"one"),n.handlers=r.handlers||{},n.invalid=r.invalid,n.unknown=r.unknown,n}i(Ij,"factory")});var hT=b((gce,mT)=>{mT.exports=Rj;var Oj=co(),Cj=Ja();function Rj(e,t,r){var n=r.enter("blockquote"),o=Cj(Oj(e,r),$j);return n(),o}i(Rj,"blockquote");function $j(e,t,r){return">"+(r?"":" ")+e}i($j,"map")});var Xc=b((vce,yT)=>{yT.exports=zj;function zj(e,t){return gT(e,t.inConstruct,!0)&&!gT(e,t.notInConstruct)}i(zj,"patternInScope");function gT(e,t,r){var n;if(!t)return r;for(typeof t=="string"&&(t=[t]),n=-1;++n<t.length;)if(e.indexOf(t[n])!==-1)return!0;return!1}i(gT,"listInScope")});var Yc=b((xce,vT)=>{vT.exports=Nj;var Dj=Xc();function Nj(e,t,r,n){for(var o=-1;++o<r.unsafe.length;)if(r.unsafe[o].character===`
43
+ `&&Dj(r.stack,r.unsafe[o]))return/[ \t]/.test(n.before)?"":" ";return`\\
44
+ `}i(Nj,"hardBreak")});var xT=b((Pce,bT)=>{"use strict";bT.exports=Uj;function Uj(e,t){var r=0,n=0,o,a;if(typeof t!="string"||t.length!==1)throw new Error("Expected character");for(e=String(e),a=e.indexOf(t),o=a;a!==-1;)r++,a===o?r>n&&(n=r):r=1,o=a+1,a=e.indexOf(t,o);return n}i(Uj,"longestStreak")});var Qc=b((Ece,_T)=>{_T.exports=Lj;function Lj(e,t){return!t.options.fences&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value)}i(Lj,"formatCodeAsIndented")});var wT=b((kce,PT)=>{PT.exports=Mj;function Mj(e){var t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}i(Mj,"checkFence")});var Xr=b((Ace,TT)=>{TT.exports=Bj;var qj=gc(),Fj=Xc();function Bj(e,t,r){for(var n=(r.before||"")+(t||"")+(r.after||""),o=[],a=[],s={},u=-1,l,p,c,f,m,d,h,_;++u<e.unsafe.length;)if(f=e.unsafe[u],!!Fj(e.stack,f))for(m=qj(f);d=m.exec(n);)l="before"in f||f.atBreak,p="after"in f,c=d.index+(l?d[1].length:0),o.indexOf(c)===-1?(o.push(c),s[c]={before:l,after:p}):(s[c].before&&!l&&(s[c].before=!1),s[c].after&&!p&&(s[c].after=!1));for(o.sort(jj),h=r.before?r.before.length:0,_=n.length-(r.after?r.after.length:0),u=-1;++u<o.length;)c=o[u],!(c<h||c>=_)&&(c+1<_&&o[u+1]===c+1&&s[c].after&&!s[c+1].before&&!s[c+1].after||(h!==c&&a.push(ET(n.slice(h,c),"\\")),h=c,/[!-/:-@[-`{-~]/.test(n.charAt(c))&&(!r.encode||r.encode.indexOf(n.charAt(c))===-1)?a.push("\\"):(a.push("&#x"+n.charCodeAt(c).toString(16).toUpperCase()+";"),h++)));return a.push(ET(n.slice(h,_),r.after)),a.join("")}i(Bj,"safe");function jj(e,t){return e-t}i(jj,"numerical");function ET(e,t){for(var r=/\\(?=[!-/:-@[-`{-~])/g,n=[],o=[],a=-1,s=0,u=e+t,l;l=r.exec(u);)n.push(l.index);for(;++a<n.length;)s!==n[a]&&o.push(e.slice(s,n[a])),o.push("\\"),s=n[a];return o.push(e.slice(s)),o.join("")}i(ET,"escapeBackslashes")});var AT=b((Oce,ST)=>{ST.exports=Kj;var Vj=xn(),Hj=xT(),Zj=Qc(),Wj=wT(),Gj=Ja(),kT=Xr();function Kj(e,t,r){var n=Wj(r),o=e.value||"",a=n==="`"?"GraveAccent":"Tilde",s,u,l,p;return Zj(e,r)?(l=r.enter("codeIndented"),s=Gj(o,Jj)):(u=Vj(n,Math.max(Hj(o,n)+1,3)),l=r.enter("codeFenced"),s=u,e.lang&&(p=r.enter("codeFencedLang"+a),s+=kT(r,e.lang,{before:"`",after:" ",encode:["`"]}),p()),e.lang&&e.meta&&(p=r.enter("codeFencedMeta"+a),s+=" "+kT(r,e.meta,{before:" ",after:`
45
+ `,encode:["`"]}),p()),s+=`
46
+ `,o&&(s+=o+`
47
+ `),s+=u),l(),s}i(Kj,"code");function Jj(e,t,r){return(r?"":" ")+e}i(Jj,"map")});var us=b((Rce,IT)=>{IT.exports=e4;var Xj=ts(),Yj=/\\([!-/:-@[-`{-~])/g,Qj=/&(#(\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function e4(e){return e.label||!e.identifier?e.label||"":e.identifier.replace(Yj,"$1").replace(Qj,t4)}i(e4,"association");function t4(e,t){return Xj(t)||e}i(t4,"decodeIfPossible")});var ls=b((zce,OT)=>{OT.exports=r4;function r4(e){var t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}i(r4,"checkQuote")});var RT=b((Nce,CT)=>{CT.exports=o4;var n4=us(),i4=ls(),cs=Xr();function o4(e,t,r){var n=i4(r),o=n==='"'?"Quote":"Apostrophe",a=r.enter("definition"),s=r.enter("label"),u="["+cs(r,n4(e),{before:"[",after:"]"})+"]: ";return s(),!e.url||/[ \t\r\n]/.test(e.url)?(s=r.enter("destinationLiteral"),u+="<"+cs(r,e.url,{before:"<",after:">"})+">"):(s=r.enter("destinationRaw"),u+=cs(r,e.url,{before:" ",after:" "})),s(),e.title&&(s=r.enter("title"+o),u+=" "+n+cs(r,e.title,{before:n,after:n})+n,s()),a(),u}i(o4,"definition")});var zT=b((Lce,$T)=>{$T.exports=a4;function a4(e){var t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}i(a4,"checkEmphasis")});var UT=b((qce,NT)=>{NT.exports=DT;DT.peek=l4;var s4=zT(),u4=gr();function DT(e,t,r){var n=s4(r),o=r.enter("emphasis"),a=u4(e,r,{before:n,after:n});return o(),n+a+n}i(DT,"emphasis");function l4(e,t,r){return r.options.emphasis||"*"}i(l4,"emphasisPeek")});var ep=b((Bce,LT)=>{LT.exports=p4;var c4=Xa();function p4(e,t){return t.options.setext&&(!e.depth||e.depth<3)&&c4(e)}i(p4,"formatHeadingAsSetext")});var BT=b((Vce,FT)=>{FT.exports=f4;var MT=xn(),d4=ep(),qT=gr();function f4(e,t,r){var n=Math.max(Math.min(6,e.depth||1),1),o,a,s,u;return d4(e,r)?(o=r.enter("headingSetext"),a=r.enter("phrasing"),s=qT(e,r,{before:`
48
+ `,after:`
49
+ `}),a(),o(),s+`
50
+ `+MT(n===1?"=":"-",s.length-(Math.max(s.lastIndexOf("\r"),s.lastIndexOf(`
51
+ `))+1))):(u=MT("#",n),o=r.enter("headingAtx"),a=r.enter("phrasing"),s=qT(e,r,{before:"# ",after:`
52
+ `}),s=s?u+" "+s:u,r.options.closeAtx&&(s+=" "+u),a(),o(),s)}i(f4,"heading")});var HT=b((Zce,VT)=>{VT.exports=jT;jT.peek=m4;function jT(e){return e.value||""}i(jT,"html");function m4(){return"<"}i(m4,"htmlPeek")});var GT=b((Gce,WT)=>{WT.exports=ZT;ZT.peek=g4;var h4=ls(),ps=Xr();function ZT(e,t,r){var n=h4(r),o=n==='"'?"Quote":"Apostrophe",a=r.enter("image"),s=r.enter("label"),u="!["+ps(r,e.alt,{before:"[",after:"]"})+"](";return s(),!e.url&&e.title||/[ \t\r\n]/.test(e.url)?(s=r.enter("destinationLiteral"),u+="<"+ps(r,e.url,{before:"<",after:">"})+">"):(s=r.enter("destinationRaw"),u+=ps(r,e.url,{before:"(",after:e.title?" ":")"})),s(),e.title&&(s=r.enter("title"+o),u+=" "+n+ps(r,e.title,{before:n,after:n})+n,s()),u+=")",a(),u}i(ZT,"image");function g4(){return"!"}i(g4,"imagePeek")});var YT=b((Jce,XT)=>{XT.exports=JT;JT.peek=v4;var y4=us(),KT=Xr();function JT(e,t,r){var n=e.referenceType,o=r.enter("imageReference"),a=r.enter("label"),s=KT(r,e.alt,{before:"[",after:"]"}),u="!["+s+"]",l,p;return a(),p=r.stack,r.stack=[],a=r.enter("reference"),l=KT(r,y4(e),{before:"[",after:"]"}),a(),r.stack=p,o(),n==="full"||!s||s!==l?u+="["+l+"]":n!=="shortcut"&&(u+="[]"),u}i(JT,"imageReference");function v4(){return"!"}i(v4,"imageReferencePeek")});var ek=b((Yce,QT)=>{QT.exports=x4;var b4=Xa();function x4(e,t){var r=b4(e);return!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(r===e.url||"mailto:"+r===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url)}i(x4,"formatLinkAsAutolink")});var ok=b((epe,ik)=>{ik.exports=nk;nk.peek=P4;var _4=ls(),rk=ek(),tk=gr(),tp=Xr();function nk(e,t,r){var n=_4(r),o=n==='"'?"Quote":"Apostrophe",a,s,u,l;return rk(e,r)?(l=r.stack,r.stack=[],a=r.enter("autolink"),u="<"+tk(e,r,{before:"<",after:">"})+">",a(),r.stack=l,u):(a=r.enter("link"),s=r.enter("label"),u="["+tk(e,r,{before:"[",after:"]"})+"](",s(),!e.url&&e.title||/[ \t\r\n]/.test(e.url)?(s=r.enter("destinationLiteral"),u+="<"+tp(r,e.url,{before:"<",after:">"})+">"):(s=r.enter("destinationRaw"),u+=tp(r,e.url,{before:"(",after:e.title?" ":")"})),s(),e.title&&(s=r.enter("title"+o),u+=" "+n+tp(r,e.title,{before:n,after:n})+n,s()),u+=")",a(),u)}i(nk,"link");function P4(e,t,r){return rk(e,r)?"<":"["}i(P4,"linkPeek")});var uk=b((rpe,sk)=>{sk.exports=ak;ak.peek=k4;var w4=us(),E4=gr(),T4=Xr();function ak(e,t,r){var n=e.referenceType,o=r.enter("linkReference"),a=r.enter("label"),s=E4(e,r,{before:"[",after:"]"}),u="["+s+"]",l,p;return a(),p=r.stack,r.stack=[],a=r.enter("reference"),l=T4(r,w4(e),{before:"[",after:"]"}),a(),r.stack=p,o(),n==="full"||!s||s!==l?u+="["+l+"]":n!=="shortcut"&&(u+="[]"),u}i(ak,"linkReference");function k4(){return"["}i(k4,"linkReferencePeek")});var ck=b((ipe,lk)=>{lk.exports=A4;var S4=co();function A4(e,t,r){var n=r.enter("list"),o=S4(e,r);return n(),o}i(A4,"list")});var dk=b((ape,pk)=>{pk.exports=O4;var I4=gr();function O4(e,t,r){var n=r.enter("paragraph"),o=r.enter("phrasing"),a=I4(e,r,{before:`
53
+ `,after:`
54
+ `});return o(),n(),a}i(O4,"paragraph")});var mk=b((upe,fk)=>{fk.exports=R4;var C4=co();function R4(e,t,r){return C4(e,r)}i(R4,"root")});var gk=b((cpe,hk)=>{hk.exports=$4;function $4(e){var t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}i($4,"checkStrong")});var bk=b((dpe,vk)=>{vk.exports=yk;yk.peek=N4;var z4=gk(),D4=gr();function yk(e,t,r){var n=z4(r),o=r.enter("strong"),a=D4(e,r,{before:n,after:n});return o(),n+n+a+n+n}i(yk,"strong");function N4(e,t,r){return r.options.strong||"*"}i(N4,"strongPeek")});var _k=b((mpe,xk)=>{xk.exports=L4;var U4=Xr();function L4(e,t,r,n){return U4(r,e.value,n)}i(L4,"text")});var wk=b((gpe,Pk)=>{Pk.exports=M4;function M4(e){var t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}i(M4,"checkRule")});var Tk=b((vpe,Ek)=>{Ek.exports=q4;function q4(e){var t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}i(q4,"checkRule")});var Sk=b((xpe,kk)=>{kk.exports=V4;var F4=xn(),B4=wk(),j4=Tk();function V4(e,t,r){var n=F4(j4(r)+(r.options.ruleSpaces?" ":""),B4(r));return r.options.ruleSpaces?n.slice(0,-1):n}i(V4,"thematicBreak")});var rp=b(Qe=>{Qe.blockquote=hT();Qe.break=Yc();Qe.code=AT();Qe.definition=RT();Qe.emphasis=UT();Qe.hardBreak=Yc();Qe.heading=BT();Qe.html=HT();Qe.image=GT();Qe.imageReference=YT();Qe.inlineCode=yc();Qe.link=ok();Qe.linkReference=uk();Qe.list=ck();Qe.listItem=xc();Qe.paragraph=dk();Qe.root=mk();Qe.strong=bk();Qe.text=_k();Qe.thematicBreak=Sk()});var Ok=b((wpe,Ik)=>{Ik.exports=[Z4];var Ak=Qc(),H4=ep();function Z4(e,t,r,n){if(t.type==="list"&&t.type===e.type&&!!e.ordered==!!t.ordered||t.type==="code"&&Ak(t,n)&&(e.type==="list"||e.type===t.type&&Ak(e,n)))return!1;if(typeof r.spread=="boolean")return e.type==="paragraph"&&(e.type===t.type||t.type==="definition"||t.type==="heading"&&H4(t,n))?void 0:r.spread?1:0}i(Z4,"joinDefaults")});var Rk=b((Tpe,Ck)=>{Ck.exports=[{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"\r",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:`
55
+ `,inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"!",after:"\\[",inConstruct:"phrasing"},{character:'"',inConstruct:"titleQuote"},{atBreak:!0,character:"#"},{character:"#",inConstruct:"headingAtx",after:`(?:[\r
56
+ ]|$)`},{character:"&",after:"[#A-Za-z]",inConstruct:"phrasing"},{character:"'",inConstruct:"titleApostrophe"},{character:"(",inConstruct:"destinationRaw"},{before:"\\]",character:"(",inConstruct:"phrasing"},{atBreak:!0,before:"\\d+",character:")"},{character:")",inConstruct:"destinationRaw"},{atBreak:!0,character:"*"},{character:"*",inConstruct:"phrasing"},{atBreak:!0,character:"+"},{atBreak:!0,character:"-"},{atBreak:!0,before:"\\d+",character:".",after:`(?:[ \r
57
+ ]|$)`},{atBreak:!0,character:"<",after:"[!/?A-Za-z]"},{character:"<",after:"[!/?A-Za-z]",inConstruct:"phrasing"},{character:"<",inConstruct:"destinationLiteral"},{atBreak:!0,character:"="},{atBreak:!0,character:">"},{character:">",inConstruct:"destinationLiteral"},{atBreak:!0,character:"["},{character:"[",inConstruct:["phrasing","label","reference"]},{character:"\\",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"]",inConstruct:["label","reference"]},{atBreak:!0,character:"_"},{before:"[^A-Za-z]",character:"_",inConstruct:"phrasing"},{character:"_",after:"[^A-Za-z]",inConstruct:"phrasing"},{atBreak:!0,character:"`"},{character:"`",inConstruct:["codeFencedLangGraveAccent","codeFencedMetaGraveAccent","phrasing"]},{atBreak:!0,character:"~"}]});var Dk=b((kpe,zk)=>{zk.exports=X4;var W4=fT(),$k=Pc(),G4=rp(),K4=Ok(),J4=Rk();function X4(e,t){var r=t||{},n={enter:a,stack:[],unsafe:[],join:[],handlers:{},options:{}},o;return $k(n,{unsafe:J4,join:K4,handlers:G4}),$k(n,r),n.options.tightDefinitions&&(n.join=[e6].concat(n.join)),n.handle=W4("type",{invalid:Y4,unknown:Q4,handlers:n.handlers}),o=n.handle(e,null,n,{before:`
58
+ `,after:`
59
+ `}),o&&o.charCodeAt(o.length-1)!==10&&o.charCodeAt(o.length-1)!==13&&(o+=`
60
+ `),o;function a(s){return n.stack.push(s),u;function u(){n.stack.pop()}i(u,"exit")}i(a,"enter")}i(X4,"toMarkdown");function Y4(e){throw new Error("Cannot handle value `"+e+"`, expected node")}i(Y4,"invalid");function Q4(e){throw new Error("Cannot handle unknown node `"+e.type+"`")}i(Q4,"unknown");function e6(e,t){if(e.type==="definition"&&e.type===t.type)return 0}i(e6,"joinDefinition")});var Uk=b((Ape,Nk)=>{Nk.exports=Dk()});var Mk=b((Ipe,Lk)=>{"use strict";Lk.exports=r6;var t6=Uk();function r6(e){var t=this;this.Compiler=r;function r(n){return t6(n,Object.assign({},t.data("settings"),e,{extensions:t.data("toMarkdownExtensions")||[]}))}i(r,"compile")}i(r6,"stringify")});var Fk=b((Cpe,qk)=>{"use strict";qk.exports=n6;function n6(e){if(e)throw e}i(n6,"bail")});var np=b(($pe,Bk)=>{Bk.exports=i(function(t){return t!=null&&t.constructor!=null&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)},"isBuffer")});var Xk=b((Dpe,Jk)=>{"use strict";var ds=Object.prototype.hasOwnProperty,Kk=Object.prototype.toString,jk=Object.defineProperty,Vk=Object.getOwnPropertyDescriptor,Hk=i(function(t){return typeof Array.isArray=="function"?Array.isArray(t):Kk.call(t)==="[object Array]"},"isArray"),Zk=i(function(t){if(!t||Kk.call(t)!=="[object Object]")return!1;var r=ds.call(t,"constructor"),n=t.constructor&&t.constructor.prototype&&ds.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!r&&!n)return!1;var o;for(o in t);return typeof o>"u"||ds.call(t,o)},"isPlainObject"),Wk=i(function(t,r){jk&&r.name==="__proto__"?jk(t,r.name,{enumerable:!0,configurable:!0,value:r.newValue,writable:!0}):t[r.name]=r.newValue},"setProperty"),Gk=i(function(t,r){if(r==="__proto__")if(ds.call(t,r)){if(Vk)return Vk(t,r).value}else return;return t[r]},"getProperty");Jk.exports=i(function e(){var t,r,n,o,a,s,u=arguments[0],l=1,p=arguments.length,c=!1;for(typeof u=="boolean"&&(c=u,u=arguments[1]||{},l=2),(u==null||typeof u!="object"&&typeof u!="function")&&(u={});l<p;++l)if(t=arguments[l],t!=null)for(r in t)n=Gk(u,r),o=Gk(t,r),u!==o&&(c&&o&&(Zk(o)||(a=Hk(o)))?(a?(a=!1,s=n&&Hk(n)?n:[]):s=n&&Zk(n)?n:{},Wk(u,{name:r,newValue:e(c,s,o)})):typeof o<"u"&&Wk(u,{name:r,newValue:o}));return u},"extend")});var Qk=b((Upe,Yk)=>{"use strict";Yk.exports=e=>{if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}});var tS=b((Lpe,eS)=>{"use strict";var i6=[].slice;eS.exports=o6;function o6(e,t){var r;return n;function n(){var s=i6.call(arguments,0),u=e.length>s.length,l;u&&s.push(o);try{l=e.apply(null,s)}catch(p){if(u&&r)throw p;return o(p)}u||(l&&typeof l.then=="function"?l.then(a,o):l instanceof Error?o(l):a(l))}function o(){r||(r=!0,t.apply(null,arguments))}function a(s){o(null,s)}}i(o6,"wrap")});var aS=b((qpe,oS)=>{"use strict";var nS=tS();oS.exports=iS;iS.wrap=nS;var rS=[].slice;function iS(){var e=[],t={};return t.run=r,t.use=n,t;function r(){var o=-1,a=rS.call(arguments,0,-1),s=arguments[arguments.length-1];if(typeof s!="function")throw new Error("Expected function as last argument, not "+s);u.apply(null,[null].concat(a));function u(l){var p=e[++o],c=rS.call(arguments,0),f=c.slice(1),m=a.length,d=-1;if(l){s(l);return}for(;++d<m;)(f[d]===null||f[d]===void 0)&&(f[d]=a[d]);a=f,p?nS(p,u).apply(null,a):s.apply(null,[null].concat(a))}i(u,"next")}i(r,"run");function n(o){if(typeof o!="function")throw new Error("Expected `fn` to be a function, not "+o);return e.push(o),t}i(n,"use")}i(iS,"trough")});var lS=b((Bpe,uS)=>{"use strict";var a6=Kc();uS.exports=ip;function sS(){}i(sS,"VMessagePrototype");sS.prototype=Error.prototype;ip.prototype=new sS;var Yr=ip.prototype;Yr.file="";Yr.name="";Yr.reason="";Yr.message="";Yr.stack="";Yr.fatal=null;Yr.column=null;Yr.line=null;function ip(e,t,r){var n,o,a;typeof t=="string"&&(r=t,t=null),n=s6(r),o=a6(t)||"1:1",a={start:{line:null,column:null},end:{line:null,column:null}},t&&t.position&&(t=t.position),t&&(t.start?(a=t,t=t.start):a.start=t),e.stack&&(this.stack=e.stack,e=e.message),this.message=e,this.name=o,this.reason=e,this.line=t?t.line:null,this.column=t?t.column:null,this.location=a,this.source=n[0],this.ruleId=n[1]}i(ip,"VMessage");function s6(e){var t=[null,null],r;return typeof e=="string"&&(r=e.indexOf(":"),r===-1?t[1]=e:(t[0]=e.slice(0,r),t[1]=e.slice(r+1))),t}i(s6,"parseOrigin")});var pS=b((Vpe,cS)=>{"use strict";cS.exports=require("path")});var fS=b((Hpe,dS)=>{"use strict";dS.exports=process});var gS=b((Zpe,hS)=>{"use strict";var br=pS(),u6=fS(),l6=np();hS.exports=Ur;var c6={}.hasOwnProperty,op=["history","path","basename","stem","extname","dirname"];Ur.prototype.toString=_6;Object.defineProperty(Ur.prototype,"path",{get:p6,set:d6});Object.defineProperty(Ur.prototype,"dirname",{get:f6,set:m6});Object.defineProperty(Ur.prototype,"basename",{get:h6,set:g6});Object.defineProperty(Ur.prototype,"extname",{get:y6,set:v6});Object.defineProperty(Ur.prototype,"stem",{get:b6,set:x6});function Ur(e){var t,r;if(!e)e={};else if(typeof e=="string"||l6(e))e={contents:e};else if("message"in e&&"messages"in e)return e;if(!(this instanceof Ur))return new Ur(e);for(this.data={},this.messages=[],this.history=[],this.cwd=u6.cwd(),r=-1;++r<op.length;)t=op[r],c6.call(e,t)&&(this[t]=e[t]);for(t in e)op.indexOf(t)<0&&(this[t]=e[t])}i(Ur,"VFile");function p6(){return this.history[this.history.length-1]}i(p6,"getPath");function d6(e){sp(e,"path"),this.path!==e&&this.history.push(e)}i(d6,"setPath");function f6(){return typeof this.path=="string"?br.dirname(this.path):void 0}i(f6,"getDirname");function m6(e){mS(this.path,"dirname"),this.path=br.join(e||"",this.basename)}i(m6,"setDirname");function h6(){return typeof this.path=="string"?br.basename(this.path):void 0}i(h6,"getBasename");function g6(e){sp(e,"basename"),ap(e,"basename"),this.path=br.join(this.dirname||"",e)}i(g6,"setBasename");function y6(){return typeof this.path=="string"?br.extname(this.path):void 0}i(y6,"getExtname");function v6(e){if(ap(e,"extname"),mS(this.path,"extname"),e){if(e.charCodeAt(0)!==46)throw new Error("`extname` must start with `.`");if(e.indexOf(".",1)>-1)throw new Error("`extname` cannot contain multiple dots")}this.path=br.join(this.dirname,this.stem+(e||""))}i(v6,"setExtname");function b6(){return typeof this.path=="string"?br.basename(this.path,this.extname):void 0}i(b6,"getStem");function x6(e){sp(e,"stem"),ap(e,"stem"),this.path=br.join(this.dirname||"",e+(this.extname||""))}i(x6,"setStem");function _6(e){return(this.contents||"").toString(e)}i(_6,"toString");function ap(e,t){if(e&&e.indexOf(br.sep)>-1)throw new Error("`"+t+"` cannot be a path: did not expect `"+br.sep+"`")}i(ap,"assertPart");function sp(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}i(sp,"assertNonEmpty");function mS(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}i(mS,"assertPath")});var vS=b((Gpe,yS)=>{"use strict";var P6=lS(),fs=gS();yS.exports=fs;fs.prototype.message=w6;fs.prototype.info=T6;fs.prototype.fail=E6;function w6(e,t,r){var n=new P6(e,t,r);return this.path&&(n.name=this.path+":"+n.name,n.file=this.path),n.fatal=!1,this.messages.push(n),n}i(w6,"message");function E6(){var e=this.message.apply(this,arguments);throw e.fatal=!0,e}i(E6,"fail");function T6(){var e=this.message.apply(this,arguments);return e.fatal=null,e}i(T6,"info")});var xS=b((Jpe,bS)=>{"use strict";bS.exports=vS()});var IS=b((Xpe,AS)=>{"use strict";var _S=Fk(),k6=np(),ms=Xk(),PS=Qk(),kS=aS(),yo=xS();AS.exports=SS().freeze();var S6=[].slice,A6={}.hasOwnProperty,I6=kS().use(O6).use(C6).use(R6);function O6(e,t){t.tree=e.parse(t.file)}i(O6,"pipelineParse");function C6(e,t,r){e.run(t.tree,t.file,n);function n(o,a,s){o?r(o):(t.tree=a,t.file=s,r())}i(n,"done")}i(C6,"pipelineRun");function R6(e,t){var r=e.stringify(t.tree,t.file);r==null||(typeof r=="string"||k6(r)?("value"in t.file&&(t.file.value=r),t.file.contents=r):t.file.result=r)}i(R6,"pipelineStringify");function SS(){var e=[],t=kS(),r={},n=-1,o;return a.data=u,a.freeze=s,a.attachers=e,a.use=l,a.parse=c,a.stringify=d,a.run=f,a.runSync=m,a.process=h,a.processSync=_,a;function a(){for(var v=SS(),y=-1;++y<e.length;)v.use.apply(null,e[y]);return v.data(ms(!0,{},r)),v}i(a,"processor");function s(){var v,y;if(o)return a;for(;++n<e.length;)v=e[n],v[1]!==!1&&(v[1]===!0&&(v[1]=void 0),y=v[0].apply(a,v.slice(1)),typeof y=="function"&&t.use(y));return o=!0,n=1/0,a}i(s,"freeze");function u(v,y){return typeof v=="string"?arguments.length===2?(cp("data",o),r[v]=y,a):A6.call(r,v)&&r[v]||null:v?(cp("data",o),r=v,a):r}i(u,"data");function l(v){var y;if(cp("use",o),v!=null)if(typeof v=="function")M.apply(null,arguments);else if(typeof v=="object")"length"in v?I(v):P(v);else throw new Error("Expected usable value, not `"+v+"`");return y&&(r.settings=ms(r.settings||{},y)),a;function P(D){I(D.plugins),D.settings&&(y=ms(y||{},D.settings))}i(P,"addPreset");function E(D){if(typeof D=="function")M(D);else if(typeof D=="object")"length"in D?M.apply(null,D):P(D);else throw new Error("Expected usable value, not `"+D+"`")}i(E,"add");function I(D){var F=-1;if(D!=null)if(typeof D=="object"&&"length"in D)for(;++F<D.length;)E(D[F]);else throw new Error("Expected a list of plugins, not `"+D+"`")}i(I,"addList");function M(D,F){var L=p(D);L?(PS(L[1])&&PS(F)&&(F=ms(!0,L[1],F)),L[1]=F):e.push(S6.call(arguments))}i(M,"addPlugin")}i(l,"use");function p(v){for(var y=-1;++y<e.length;)if(e[y][0]===v)return e[y]}i(p,"find");function c(v){var y=yo(v),P;return s(),P=a.Parser,up("parse",P),wS(P,"parse")?new P(String(y),y).parse():P(String(y),y)}i(c,"parse");function f(v,y,P){if(ES(v),s(),!P&&typeof y=="function"&&(P=y,y=null),!P)return new Promise(E);E(null,P);function E(I,M){t.run(v,yo(y),D);function D(F,L,G){L=L||v,F?M(F):I?I(L):P(null,L,G)}i(D,"done")}i(E,"executor")}i(f,"run");function m(v,y){var P,E;return f(v,y,I),TS("runSync","run",E),P;function I(M,D){E=!0,P=D,_S(M)}i(I,"done")}i(m,"runSync");function d(v,y){var P=yo(y),E;return s(),E=a.Compiler,lp("stringify",E),ES(v),wS(E,"compile")?new E(v,P).compile():E(v,P)}i(d,"stringify");function h(v,y){if(s(),up("process",a.Parser),lp("process",a.Compiler),!y)return new Promise(P);P(null,y);function P(E,I){var M=yo(v);I6.run(a,{file:M},D);function D(F){F?I(F):E?E(M):y(null,M)}i(D,"done")}i(P,"executor")}i(h,"process");function _(v){var y,P;return s(),up("processSync",a.Parser),lp("processSync",a.Compiler),y=yo(v),h(y,E),TS("processSync","process",P),y;function E(I){P=!0,_S(I)}i(E,"done")}i(_,"processSync")}i(SS,"unified");function wS(e,t){return typeof e=="function"&&e.prototype&&($6(e.prototype)||t in e.prototype)}i(wS,"newable");function $6(e){var t;for(t in e)return!0;return!1}i($6,"keys");function up(e,t){if(typeof t!="function")throw new Error("Cannot `"+e+"` without `Parser`")}i(up,"assertParser");function lp(e,t){if(typeof t!="function")throw new Error("Cannot `"+e+"` without `Compiler`")}i(lp,"assertCompiler");function cp(e,t){if(t)throw new Error("Cannot invoke `"+e+"` on a frozen processor.\nCreate a new processor first, by invoking it: use `processor()` instead of `processor`.")}i(cp,"assertUnfrozen");function ES(e){if(!e||typeof e.type!="string")throw new Error("Expected node, got `"+e+"`")}i(ES,"assertNode");function TS(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}i(TS,"assertDone")});var CS=b((Qpe,OS)=>{"use strict";var z6=ja();OS.exports=D6;function D6(e,t,r){var n=z6(r||t),o=t.cascade==null?!0:t.cascade;return a(e,null,null);function a(s,u,l){var p=s.children,c=-1,f=0;if(n(s,u,l))return null;if(p&&p.length){for(;++c<p.length;)a(p[c],c,s)&&(p[f++]=p[c]);if(o&&!f)return null;p.length=f}return s}}i(D6,"remove")});var $S=b((tde,RS)=>{"use strict";RS.exports=gs;var hs=lc(),N6=hs.CONTINUE,U6=hs.SKIP,L6=hs.EXIT;gs.CONTINUE=N6;gs.SKIP=U6;gs.EXIT=L6;function gs(e,t,r,n){typeof t=="function"&&typeof r!="function"&&(n=r,r=t,t=null),hs(e,t,o,n);function o(a,s){var u=s[s.length-1],l=u?u.children.indexOf(a):null;return r(a,l,u)}i(o,"overload")}i(gs,"visit")});var DS=b((nde,zS)=>{var M6=CS(),q6=$S(),F6=i(e=>t=>{q6(t,"definition",r=>{e[r.identifier]={title:r.title,url:r.url}})},"collectDefinitions"),B6=i(()=>e=>{M6(e,{cascade:!0},"definition")},"removeDefinitions");zS.exports={collectDefinitions:F6,removeDefinitions:B6}});var US=b((ode,NS)=>{NS.exports={wrap(e,...t){return[...t,e,...t.reverse()].join("")},isURL(e){try{return!!new URL(e)}catch{return!1}},isPotentiallyEncoded(e){return e!==decodeURIComponent(e||"")}}});var MS=b((ade,LS)=>{var j6=rp(),ci=gr(),{wrap:vo,isURL:ys,isPotentiallyEncoded:V6}=US(),pp="\u200B",H6=i(e=>e.replace("&","&amp;").replace(/<([^@]|$)/g,(r,n)=>`&lt;${n}`).replace(/^(.*)>/g,(r,n)=>n.match(/<@[A-Z0-9]+$/)?`${n}>`:`${n}&gt;`),"escapeSpecials"),Z6=i(e=>({heading:i((t,r,n)=>{let a=n.enter("heading"),s=ci(t,n,{before:"*",after:"*"});return a(),vo(s,"*")},"heading"),strong:i((t,r,n)=>{let a=n.enter("strong"),s=ci(t,n,{before:"*",after:"*"});return a(),vo(s,pp,"*")},"strong"),delete(t,r,n){let a=n.enter("delete"),s=ci(t,n,{before:"~",after:"~"});return a(),vo(s,pp,"~")},emphasis:i((t,r,n)=>{let a=n.enter("emphasis"),s=ci(t,n,{before:"_",after:"_"});return a(),vo(s,pp,"_")},"emphasis"),listItem:i((...t)=>j6.listItem(...t).replace(/^\*/,"\u2022"),"listItem"),code(t,r,n){let o=n.enter("code"),a=t.value.replace(/^#![a-z]+\n/,"");return o(),vo(a,"```",`
61
+ `)},link:i((t,r,n)=>{let o=n.enter("link"),a=ci(t,n,{before:"|",after:">"})||t.title,s=V6(t.url)?t.url:encodeURI(t.url);return o(),ys(s)?a?`<${s}|${a}>`:`<${s}>`:a||s},"link"),linkReference:i((t,r,n)=>{let o=n.enter("linkReference"),a=e[t.identifier],s=ci(t,n,{before:"|",after:">"})||(a?a.title:null);return o(),!a||!ys(a.url)?s:s?`<${a.url}|${s}>`:`<${a.url}>`},"linkReference"),image:i((t,r,n)=>{let o=n.enter("image"),a=t.alt||t.title,s=encodeURI(t.url);return o(),ys(s)?a?`<${s}|${a}>`:`<${s}>`:a||s},"image"),imageReference:i((t,r,n)=>{let o=n.enter("imageReference"),a=e[t.identifier],s=t.alt||(a?a.title:null);return o(),!a||!ys(a.url)?s:s?`<${a.url}|${s}>`:`<${a.url}>`},"imageReference"),text:i((t,r,n)=>{let o=n.enter("text"),a=H6(t.value);return o(),a},"text")}),"createHandlers"),W6=i(e=>({bullet:"*",handlers:Z6(e)}),"createOptions");LS.exports=W6});var FS=b((ude,qS)=>{var G6=BP(),K6=cT(),J6=Mk(),X6=IS(),{collectDefinitions:Y6,removeDefinitions:Q6}=DS(),eV=MS();qS.exports=(e,t)=>{let r={},n=eV(r);return X6().use(K6,t).use(G6).use(Y6,r).use(Q6).use(J6,n).processSync(e).toString()}});var jS=b((lde,BS)=>{BS.exports=FS()});var rV={};fp(rV,{slack:()=>tV,slackAuth:()=>N,slackOAuth2Auth:()=>Cu});module.exports=RA(rV);var $A=Object.freeze({status:"aborted"});function j(e,t,r){function n(u,l){if(u._zod||Object.defineProperty(u,"_zod",{value:{def:l,constr:s,traits:new Set},enumerable:!1}),u._zod.traits.has(e))return;u._zod.traits.add(e),t(u,l);let p=s.prototype,c=Object.keys(p);for(let f=0;f<c.length;f++){let m=c[f];m in u||(u[m]=p[m].bind(u))}}i(n,"init");let o=r?.Parent??Object;class a extends o{static{i(this,"Definition")}}Object.defineProperty(a,"name",{value:e});function s(u){var l;let p=r?.Parent?new a:this;n(p,u),(l=p._zod).deferred??(l.deferred=[]);for(let c of p._zod.deferred)c();return p}return i(s,"_"),Object.defineProperty(s,"init",{value:n}),Object.defineProperty(s,Symbol.hasInstance,{value:i(u=>r?.Parent&&u instanceof r.Parent?!0:u?._zod?.traits?.has(e),"value")}),Object.defineProperty(s,"name",{value:e}),s}i(j,"$constructor");var sr=class extends Error{static{i(this,"$ZodAsyncError")}constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},xo=class extends Error{static{i(this,"$ZodEncodeError")}constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}},vs={};function Pr(e){return e&&Object.assign(vs,e),vs}i(Pr,"config");function xs(e){let t=Object.values(e).filter(n=>typeof n=="number");return Object.entries(e).filter(([n,o])=>t.indexOf(+n)===-1).map(([n,o])=>o)}i(xs,"getEnumValues");function gp(e,t){return typeof t=="bigint"?t.toString():t}i(gp,"jsonStringifyReplacer");function Po(e){return{get value(){{let r=e();return Object.defineProperty(this,"value",{value:r}),r}throw new Error("cached value already set")}}}i(Po,"cached");function _s(e){return e==null}i(_s,"nullish");function wo(e){let t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}i(wo,"cleanRegex");var hp=Symbol("evaluating");function tt(e,t,r){let n;Object.defineProperty(e,t,{get(){if(n!==hp)return n===void 0&&(n=hp,n=r()),n},set(o){Object.defineProperty(e,t,{value:o})},configurable:!0})}i(tt,"defineLazy");var Ps="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function mi(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}i(mi,"isObject");var zA=Po(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function yp(e){if(mi(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let r=t.prototype;return!(mi(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}i(yp,"isPlainObject");var vp=new Set(["string","number","symbol"]);function Pn(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}i(Pn,"escapeRegex");function Eo(e,t,r){let n=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(n._zod.parent=e),n}i(Eo,"clone");function ze(e){let t=e;if(!t)return{};if(typeof t=="string")return{error:i(()=>t,"error")};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:i(()=>t.error,"error")}:t}i(ze,"normalizeParams");function bp(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}i(bp,"optionalKeys");var xp={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function wn(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}i(wn,"aborted");function Mr(e,t){return t.map(r=>{var n;return(n=r).path??(n.path=[]),r.path.unshift(e),r})}i(Mr,"prefixIssues");function _o(e){return typeof e=="string"?e:e?.message}i(_o,"unwrapMessage");function qr(e,t,r){let n={...e,path:e.path??[]};if(!e.message){let o=_o(e.inst?._zod.def?.error?.(e))??_o(t?.error?.(e))??_o(r.customError?.(e))??_o(r.localeError?.(e))??"Invalid input";n.message=o}return delete n.inst,delete n.continue,t?.reportInput||delete n.input,n}i(qr,"finalizeIssue");function ws(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}i(ws,"getLengthableOrigin");function Es(...e){let[t,r,n]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:n}:{...t}}i(Es,"issue");var _p=i((e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,gp,2),Object.defineProperty(e,"toString",{value:i(()=>e.message,"value"),enumerable:!1})},"initializer"),Pp=j("$ZodError",_p),hi=j("$ZodError",_p,{Parent:Error});var NA=i(e=>(t,r,n,o)=>{let a=n?Object.assign(n,{async:!1}):{async:!1},s=t._zod.run({value:r,issues:[]},a);if(s instanceof Promise)throw new sr;if(s.issues.length){let u=new(o?.Err??e)(s.issues.map(l=>qr(l,a,Pr())));throw Ps(u,o?.callee),u}return s.value},"_parse"),To=NA(hi),UA=i(e=>async(t,r,n,o)=>{let a=n?Object.assign(n,{async:!0}):{async:!0},s=t._zod.run({value:r,issues:[]},a);if(s instanceof Promise&&(s=await s),s.issues.length){let u=new(o?.Err??e)(s.issues.map(l=>qr(l,a,Pr())));throw Ps(u,o?.callee),u}return s.value},"_parseAsync"),ko=UA(hi),LA=i(e=>(t,r,n)=>{let o=n?{...n,async:!1}:{async:!1},a=t._zod.run({value:r,issues:[]},o);if(a instanceof Promise)throw new sr;return a.issues.length?{success:!1,error:new(e??Pp)(a.issues.map(s=>qr(s,o,Pr())))}:{success:!0,data:a.value}},"_safeParse"),gi=LA(hi),MA=i(e=>async(t,r,n)=>{let o=n?Object.assign(n,{async:!0}):{async:!0},a=t._zod.run({value:r,issues:[]},o);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(s=>qr(s,o,Pr())))}:{success:!0,data:a.value}},"_safeParseAsync"),rn=MA(hi);var qA="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",FA=new RegExp(`^${qA}$`);var wp=i(e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},"string"),Ep=/^-?\d+n?$/,Tp=/^-?\d+$/,Ts=/^-?\d+(?:\.\d+)?$/,kp=/^(?:true|false)$/i;var wr=j("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),BA={number:"number",bigint:"bigint",object:"date"};var Sp=j("$ZodCheckGreaterThan",(e,t)=>{wr.init(e,t);let r=BA[typeof t.value];e._zod.onattach.push(n=>{let o=n._zod.bag,a=(t.inclusive?o.minimum:o.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>a&&(t.inclusive?o.minimum=t.value:o.exclusiveMinimum=t.value)}),e._zod.check=n=>{(t.inclusive?n.value>=t.value:n.value>t.value)||n.issues.push({origin:r,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:n.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}});var Ap=j("$ZodCheckNumberFormat",(e,t)=>{wr.init(e,t),t.format=t.format||"float64";let r=t.format?.includes("int"),n=r?"int":"number",[o,a]=xp[t.format];e._zod.onattach.push(s=>{let u=s._zod.bag;u.format=t.format,u.minimum=o,u.maximum=a,r&&(u.pattern=Tp)}),e._zod.check=s=>{let u=s.value;if(r){if(!Number.isInteger(u)){s.issues.push({expected:n,format:t.format,code:"invalid_type",continue:!1,input:u,inst:e});return}if(!Number.isSafeInteger(u)){u>0?s.issues.push({input:u,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,inclusive:!0,continue:!t.abort}):s.issues.push({input:u,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,inclusive:!0,continue:!t.abort});return}}u<o&&s.issues.push({origin:"number",input:u,code:"too_small",minimum:o,inclusive:!0,inst:e,continue:!t.abort}),u>a&&s.issues.push({origin:"number",input:u,code:"too_big",maximum:a,inclusive:!0,inst:e,continue:!t.abort})}});var Ip=j("$ZodCheckMaxLength",(e,t)=>{var r;wr.init(e,t),(r=e._zod.def).when??(r.when=n=>{let o=n.value;return!_s(o)&&o.length!==void 0}),e._zod.onattach.push(n=>{let o=n._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<o&&(n._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let o=n.value;if(o.length<=t.maximum)return;let s=ws(o);n.issues.push({origin:s,code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),Op=j("$ZodCheckMinLength",(e,t)=>{var r;wr.init(e,t),(r=e._zod.def).when??(r.when=n=>{let o=n.value;return!_s(o)&&o.length!==void 0}),e._zod.onattach.push(n=>{let o=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>o&&(n._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let o=n.value;if(o.length>=t.minimum)return;let s=ws(o);n.issues.push({origin:s,code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}});var ks=j("$ZodCheckStringFormat",(e,t)=>{var r,n;wr.init(e,t),e._zod.onattach.push(o=>{let a=o._zod.bag;a.format=t.format,t.pattern&&(a.patterns??(a.patterns=new Set),a.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.check=o=>{t.pattern.lastIndex=0,!t.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:t.format,input:o.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(n=e._zod).check??(n.check=()=>{})}),Cp=j("$ZodCheckRegex",(e,t)=>{ks.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}});var $p={major:4,minor:3,patch:6};var He=j("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=$p;let n=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&n.unshift(e);for(let o of n)for(let a of o._zod.onattach)a(e);if(n.length===0)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let o=i((s,u,l)=>{let p=wn(s),c;for(let f of u){if(f._zod.def.when){if(!f._zod.def.when(s))continue}else if(p)continue;let m=s.issues.length,d=f._zod.check(s);if(d instanceof Promise&&l?.async===!1)throw new sr;if(c||d instanceof Promise)c=(c??Promise.resolve()).then(async()=>{await d,s.issues.length!==m&&(p||(p=wn(s,m)))});else{if(s.issues.length===m)continue;p||(p=wn(s,m))}}return c?c.then(()=>s):s},"runChecks"),a=i((s,u,l)=>{if(wn(s))return s.aborted=!0,s;let p=o(u,n,l);if(p instanceof Promise){if(l.async===!1)throw new sr;return p.then(c=>e._zod.parse(c,l))}return e._zod.parse(p,l)},"handleCanaryResult");e._zod.run=(s,u)=>{if(u.skipChecks)return e._zod.parse(s,u);if(u.direction==="backward"){let p=e._zod.parse({value:s.value,issues:[]},{...u,skipChecks:!0});return p instanceof Promise?p.then(c=>a(c,s,u)):a(p,s,u)}let l=e._zod.parse(s,u);if(l instanceof Promise){if(u.async===!1)throw new sr;return l.then(p=>o(p,n,u))}return o(l,n,u)}}tt(e,"~standard",()=>({validate:i(o=>{try{let a=gi(e,o);return a.success?{value:a.data}:{issues:a.error?.issues}}catch{return rn(e,o).then(s=>s.success?{value:s.data}:{issues:s.error?.issues})}},"validate"),vendor:"zod",version:1}))}),Io=j("$ZodString",(e,t)=>{He.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??wp(e._zod.bag),e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),Ss=j("$ZodStringFormat",(e,t)=>{ks.init(e,t),Io.init(e,t)});var Lp=j("$ZodURL",(e,t)=>{Ss.init(e,t),e._zod.check=r=>{try{let n=r.value.trim(),o=new URL(n);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(o.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:r.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(o.protocol.endsWith(":")?o.protocol.slice(0,-1):o.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort})),t.normalize?r.value=o.href:r.value=n;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}});var As=j("$ZodNumber",(e,t)=>{He.init(e,t),e._zod.pattern=e._zod.bag.pattern??Ts,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=Number(r.value)}catch{}let o=r.value;if(typeof o=="number"&&!Number.isNaN(o)&&Number.isFinite(o))return r;let a=typeof o=="number"?Number.isNaN(o)?"NaN":Number.isFinite(o)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:o,inst:e,...a?{received:a}:{}}),r}}),Mp=j("$ZodNumberFormat",(e,t)=>{Ap.init(e,t),As.init(e,t)}),Is=j("$ZodBoolean",(e,t)=>{He.init(e,t),e._zod.pattern=kp,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=!!r.value}catch{}let o=r.value;return typeof o=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:o,inst:e}),r}}),qp=j("$ZodBigInt",(e,t)=>{He.init(e,t),e._zod.pattern=Ep,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=BigInt(r.value)}catch{}return typeof r.value=="bigint"||r.issues.push({expected:"bigint",code:"invalid_type",input:r.value,inst:e}),r}});var Fp=j("$ZodAny",(e,t)=>{He.init(e,t),e._zod.parse=r=>r}),Bp=j("$ZodUnknown",(e,t)=>{He.init(e,t),e._zod.parse=r=>r});var jp=j("$ZodVoid",(e,t)=>{He.init(e,t),e._zod.parse=(r,n)=>{let o=r.value;return typeof o>"u"||r.issues.push({expected:"void",code:"invalid_type",input:o,inst:e}),r}}),Vp=j("$ZodDate",(e,t)=>{He.init(e,t),e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=new Date(r.value)}catch{}let o=r.value,a=o instanceof Date;return a&&!Number.isNaN(o.getTime())||r.issues.push({expected:"date",code:"invalid_type",input:o,...a?{received:"Invalid Date"}:{},inst:e}),r}});function zp(e,t,r){e.issues.length&&t.issues.push(...Mr(r,e.issues)),t.value[r]=e.value}i(zp,"handleArrayResult");var Hp=j("$ZodArray",(e,t)=>{He.init(e,t),e._zod.parse=(r,n)=>{let o=r.value;if(!Array.isArray(o))return r.issues.push({expected:"array",code:"invalid_type",input:o,inst:e}),r;r.value=Array(o.length);let a=[];for(let s=0;s<o.length;s++){let u=o[s],l=t.element._zod.run({value:u,issues:[]},n);l instanceof Promise?a.push(l.then(p=>zp(p,r,s))):zp(l,r,s)}return a.length?Promise.all(a).then(()=>r):r}});function Ao(e,t,r,n,o){if(e.issues.length){if(o&&!(r in n))return;t.issues.push(...Mr(r,e.issues))}e.value===void 0?r in n&&(t.value[r]=void 0):t.value[r]=e.value}i(Ao,"handlePropertyResult");function jA(e){let t=Object.keys(e.shape);for(let n of t)if(!e.shape?.[n]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${n}": expected a Zod schema`);let r=bp(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}i(jA,"normalizeDef");function VA(e,t,r,n,o,a){let s=[],u=o.keySet,l=o.catchall._zod,p=l.def.type,c=l.optout==="optional";for(let f in t){if(u.has(f))continue;if(p==="never"){s.push(f);continue}let m=l.run({value:t[f],issues:[]},n);m instanceof Promise?e.push(m.then(d=>Ao(d,r,f,t,c))):Ao(m,r,f,t,c)}return s.length&&r.issues.push({code:"unrecognized_keys",keys:s,input:t,inst:a}),e.length?Promise.all(e).then(()=>r):r}i(VA,"handleCatchall");var Zp=j("$ZodObject",(e,t)=>{if(He.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){let u=t.shape;Object.defineProperty(t,"shape",{get:i(()=>{let l={...u};return Object.defineProperty(t,"shape",{value:l}),l},"get")})}let n=Po(()=>jA(t));tt(e._zod,"propValues",()=>{let u=t.shape,l={};for(let p in u){let c=u[p]._zod;if(c.values){l[p]??(l[p]=new Set);for(let f of c.values)l[p].add(f)}}return l});let o=mi,a=t.catchall,s;e._zod.parse=(u,l)=>{s??(s=n.value);let p=u.value;if(!o(p))return u.issues.push({expected:"object",code:"invalid_type",input:p,inst:e}),u;u.value={};let c=[],f=s.shape;for(let m of s.keys){let d=f[m],h=d._zod.optout==="optional",_=d._zod.run({value:p[m],issues:[]},l);_ instanceof Promise?c.push(_.then(v=>Ao(v,u,m,p,h))):Ao(_,u,m,p,h)}return a?VA(c,p,u,l,n.value,e):c.length?Promise.all(c).then(()=>u):u}});function Dp(e,t,r,n){for(let a of e)if(a.issues.length===0)return t.value=a.value,t;let o=e.filter(a=>!wn(a));return o.length===1?(t.value=o[0].value,o[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(a=>a.issues.map(s=>qr(s,n,Pr())))}),t)}i(Dp,"handleUnionResults");var Os=j("$ZodUnion",(e,t)=>{He.init(e,t),tt(e._zod,"optin",()=>t.options.some(o=>o._zod.optin==="optional")?"optional":void 0),tt(e._zod,"optout",()=>t.options.some(o=>o._zod.optout==="optional")?"optional":void 0),tt(e._zod,"values",()=>{if(t.options.every(o=>o._zod.values))return new Set(t.options.flatMap(o=>Array.from(o._zod.values)))}),tt(e._zod,"pattern",()=>{if(t.options.every(o=>o._zod.pattern)){let o=t.options.map(a=>a._zod.pattern);return new RegExp(`^(${o.map(a=>wo(a.source)).join("|")})$`)}});let r=t.options.length===1,n=t.options[0]._zod.run;e._zod.parse=(o,a)=>{if(r)return n(o,a);let s=!1,u=[];for(let l of t.options){let p=l._zod.run({value:o.value,issues:[]},a);if(p instanceof Promise)u.push(p),s=!0;else{if(p.issues.length===0)return p;u.push(p)}}return s?Promise.all(u).then(l=>Dp(l,o,e,a)):Dp(u,o,e,a)}});var Wp=j("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,Os.init(e,t);let r=e._zod.parse;tt(e._zod,"propValues",()=>{let o={};for(let a of t.options){let s=a._zod.propValues;if(!s||Object.keys(s).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(a)}"`);for(let[u,l]of Object.entries(s)){o[u]||(o[u]=new Set);for(let p of l)o[u].add(p)}}return o});let n=Po(()=>{let o=t.options,a=new Map;for(let s of o){let u=s._zod.propValues?.[t.discriminator];if(!u||u.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(s)}"`);for(let l of u){if(a.has(l))throw new Error(`Duplicate discriminator value "${String(l)}"`);a.set(l,s)}}return a});e._zod.parse=(o,a)=>{let s=o.value;if(!mi(s))return o.issues.push({code:"invalid_type",expected:"object",input:s,inst:e}),o;let u=n.value.get(s?.[t.discriminator]);return u?u._zod.run(o,a):t.unionFallback?r(o,a):(o.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:s,path:[t.discriminator],inst:e}),o)}});var Gp=j("$ZodRecord",(e,t)=>{He.init(e,t),e._zod.parse=(r,n)=>{let o=r.value;if(!yp(o))return r.issues.push({expected:"record",code:"invalid_type",input:o,inst:e}),r;let a=[],s=t.keyType._zod.values;if(s){r.value={};let u=new Set;for(let p of s)if(typeof p=="string"||typeof p=="number"||typeof p=="symbol"){u.add(typeof p=="number"?p.toString():p);let c=t.valueType._zod.run({value:o[p],issues:[]},n);c instanceof Promise?a.push(c.then(f=>{f.issues.length&&r.issues.push(...Mr(p,f.issues)),r.value[p]=f.value})):(c.issues.length&&r.issues.push(...Mr(p,c.issues)),r.value[p]=c.value)}let l;for(let p in o)u.has(p)||(l=l??[],l.push(p));l&&l.length>0&&r.issues.push({code:"unrecognized_keys",input:o,inst:e,keys:l})}else{r.value={};for(let u of Reflect.ownKeys(o)){if(u==="__proto__")continue;let l=t.keyType._zod.run({value:u,issues:[]},n);if(l instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof u=="string"&&Ts.test(u)&&l.issues.length){let f=t.keyType._zod.run({value:Number(u),issues:[]},n);if(f instanceof Promise)throw new Error("Async schemas not supported in object keys currently");f.issues.length===0&&(l=f)}if(l.issues.length){t.mode==="loose"?r.value[u]=o[u]:r.issues.push({code:"invalid_key",origin:"record",issues:l.issues.map(f=>qr(f,n,Pr())),input:u,path:[u],inst:e});continue}let c=t.valueType._zod.run({value:o[u],issues:[]},n);c instanceof Promise?a.push(c.then(f=>{f.issues.length&&r.issues.push(...Mr(u,f.issues)),r.value[l.value]=f.value})):(c.issues.length&&r.issues.push(...Mr(u,c.issues)),r.value[l.value]=c.value)}}return a.length?Promise.all(a).then(()=>r):r}});var Kp=j("$ZodEnum",(e,t)=>{He.init(e,t);let r=xs(t.entries),n=new Set(r);e._zod.values=n,e._zod.pattern=new RegExp(`^(${r.filter(o=>vp.has(typeof o)).map(o=>typeof o=="string"?Pn(o):o.toString()).join("|")})$`),e._zod.parse=(o,a)=>{let s=o.value;return n.has(s)||o.issues.push({code:"invalid_value",values:r,input:s,inst:e}),o}}),Jp=j("$ZodLiteral",(e,t)=>{if(He.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");let r=new Set(t.values);e._zod.values=r,e._zod.pattern=new RegExp(`^(${t.values.map(n=>typeof n=="string"?Pn(n):n?Pn(n.toString()):String(n)).join("|")})$`),e._zod.parse=(n,o)=>{let a=n.value;return r.has(a)||n.issues.push({code:"invalid_value",values:t.values,input:a,inst:e}),n}});var Xp=j("$ZodTransform",(e,t)=>{He.init(e,t),e._zod.parse=(r,n)=>{if(n.direction==="backward")throw new xo(e.constructor.name);let o=t.transform(r.value,r);if(n.async)return(o instanceof Promise?o:Promise.resolve(o)).then(s=>(r.value=s,r));if(o instanceof Promise)throw new sr;return r.value=o,r}});function Np(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}i(Np,"handleOptionalResult");var Yp=j("$ZodOptional",(e,t)=>{He.init(e,t),e._zod.optin="optional",e._zod.optout="optional",tt(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),tt(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${wo(r.source)})?$`):void 0}),e._zod.parse=(r,n)=>{if(t.innerType._zod.optin==="optional"){let o=t.innerType._zod.run(r,n);return o instanceof Promise?o.then(a=>Np(a,r.value)):Np(o,r.value)}return r.value===void 0?r:t.innerType._zod.run(r,n)}});var Qp=j("$ZodNullable",(e,t)=>{He.init(e,t),tt(e._zod,"optin",()=>t.innerType._zod.optin),tt(e._zod,"optout",()=>t.innerType._zod.optout),tt(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${wo(r.source)}|null)$`):void 0}),tt(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(r,n)=>r.value===null?r:t.innerType._zod.run(r,n)});var ed=j("$ZodPipe",(e,t)=>{He.init(e,t),tt(e._zod,"values",()=>t.in._zod.values),tt(e._zod,"optin",()=>t.in._zod.optin),tt(e._zod,"optout",()=>t.out._zod.optout),tt(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,n)=>{if(n.direction==="backward"){let a=t.out._zod.run(r,n);return a instanceof Promise?a.then(s=>So(s,t.in,n)):So(a,t.in,n)}let o=t.in._zod.run(r,n);return o instanceof Promise?o.then(a=>So(a,t.out,n)):So(o,t.out,n)}});function So(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},r)}i(So,"handlePipeResult");var td=j("$ZodCustom",(e,t)=>{wr.init(e,t),He.init(e,t),e._zod.parse=(r,n)=>r,e._zod.check=r=>{let n=r.value,o=t.fn(n);if(o instanceof Promise)return o.then(a=>Up(a,r,n,e));Up(o,r,n,e)}});function Up(e,t,r,n){if(!e){let o={code:"custom",input:r,inst:n,path:[...n._zod.def.path??[]],continue:!n._zod.def.abort};n._zod.def.params&&(o.params=n._zod.def.params),t.issues.push(Es(o))}}i(Up,"handleRefineResult");var nd;var Cs=class{static{i(this,"$ZodRegistry")}constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...r){let n=r[0];return this._map.set(t,n),n&&typeof n=="object"&&"id"in n&&this._idmap.set(n.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){let r=this._map.get(t);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(t),this}get(t){let r=t._zod.parent;if(r){let n={...this.get(r)??{}};delete n.id;let o={...n,...this._map.get(t)};return Object.keys(o).length?o:void 0}return this._map.get(t)}has(t){return this._map.has(t)}};function id(){return new Cs}i(id,"registry");(nd=globalThis).__zod_globalRegistry??(nd.__zod_globalRegistry=id());var Rs=globalThis.__zod_globalRegistry;function od(e,t){return new e({type:"string",...ze(t)})}i(od,"_string");function ad(e,t){return new e({type:"string",coerce:!0,...ze(t)})}i(ad,"_coercedString");function sd(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...ze(t)})}i(sd,"_url");function ud(e,t){return new e({type:"number",checks:[],...ze(t)})}i(ud,"_number");function ld(e,t){return new e({type:"number",coerce:!0,checks:[],...ze(t)})}i(ld,"_coercedNumber");function cd(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...ze(t)})}i(cd,"_int");function pd(e,t){return new e({type:"boolean",...ze(t)})}i(pd,"_boolean");function dd(e,t){return new e({type:"boolean",coerce:!0,...ze(t)})}i(dd,"_coercedBoolean");function fd(e,t){return new e({type:"bigint",coerce:!0,...ze(t)})}i(fd,"_coercedBigint");function md(e){return new e({type:"any"})}i(md,"_any");function hd(e){return new e({type:"unknown"})}i(hd,"_unknown");function gd(e,t){return new e({type:"void",...ze(t)})}i(gd,"_void");function yd(e,t){return new e({type:"date",coerce:!0,...ze(t)})}i(yd,"_coercedDate");function Oo(e,t){return new Sp({check:"greater_than",...ze(t),value:e,inclusive:!0})}i(Oo,"_gte");function $s(e,t){return new Ip({check:"max_length",...ze(t),maximum:e})}i($s,"_maxLength");function Yt(e,t){return new Op({check:"min_length",...ze(t),minimum:e})}i(Yt,"_minLength");function Fr(e,t){return new Cp({check:"string_format",format:"regex",...ze(t),pattern:e})}i(Fr,"_regex");function vd(e,t,r){let n=ze(r);return n.abort??(n.abort=!0),new e({type:"custom",check:"custom",fn:t,...n})}i(vd,"_custom");var rt=j("ZodMiniType",(e,t)=>{if(!e._zod)throw new Error("Uninitialized schema in ZodMiniType.");He.init(e,t),e.def=t,e.type=t.type,e.parse=(r,n)=>To(e,r,n,{callee:e.parse}),e.safeParse=(r,n)=>gi(e,r,n),e.parseAsync=async(r,n)=>ko(e,r,n,{callee:e.parseAsync}),e.safeParseAsync=async(r,n)=>rn(e,r,n),e.check=(...r)=>e.clone({...t,checks:[...t.checks??[],...r.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]},{parent:!0}),e.with=e.check,e.clone=(r,n)=>Eo(e,r,n),e.brand=()=>e,e.register=((r,n)=>(r.add(e,n),e)),e.apply=r=>r(e)}),Ro=j("ZodMiniString",(e,t)=>{Io.init(e,t),rt.init(e,t)});function x(e){return od(Ro,e)}i(x,"string");var bd=j("ZodMiniStringFormat",(e,t)=>{Ss.init(e,t),Ro.init(e,t)});var nI=j("ZodMiniURL",(e,t)=>{Lp.init(e,t),bd.init(e,t)});function xd(e){return sd(nI,e)}i(xd,"url");var $o=j("ZodMiniNumber",(e,t)=>{As.init(e,t),rt.init(e,t)});function bt(e){return ud($o,e)}i(bt,"number");var iI=j("ZodMiniNumberFormat",(e,t)=>{Mp.init(e,t),$o.init(e,t)});function _d(e){return cd(iI,e)}i(_d,"int");var zs=j("ZodMiniBoolean",(e,t)=>{Is.init(e,t),rt.init(e,t)});function _e(e){return pd(zs,e)}i(_e,"boolean");var Pd=j("ZodMiniBigInt",(e,t)=>{qp.init(e,t),rt.init(e,t)});var oI=j("ZodMiniAny",(e,t)=>{Fp.init(e,t),rt.init(e,t)});function vi(){return md(oI)}i(vi,"any");var aI=j("ZodMiniUnknown",(e,t)=>{Bp.init(e,t),rt.init(e,t)});function re(){return hd(aI)}i(re,"unknown");var sI=j("ZodMiniVoid",(e,t)=>{jp.init(e,t),rt.init(e,t)});function wd(e){return gd(sI,e)}i(wd,"_void");var Ed=j("ZodMiniDate",(e,t)=>{Vp.init(e,t),rt.init(e,t)});var uI=j("ZodMiniArray",(e,t)=>{Hp.init(e,t),rt.init(e,t)});function ae(e,t){return new uI({type:"array",element:e,...ze(t)})}i(ae,"array");var lI=j("ZodMiniObject",(e,t)=>{Zp.init(e,t),rt.init(e,t),tt(e,"shape",()=>t.shape)});function S(e,t){let r={type:"object",shape:e??{},...ze(t)};return new lI(r)}i(S,"object");var cI=j("ZodMiniUnion",(e,t)=>{Os.init(e,t),rt.init(e,t)});function se(e,t){return new cI({type:"union",options:e,...ze(t)})}i(se,"union");var pI=j("ZodMiniDiscriminatedUnion",(e,t)=>{Wp.init(e,t),rt.init(e,t)});function Br(e,t,r){return new pI({type:"union",options:t,discriminator:e,...ze(r)})}i(Br,"discriminatedUnion");var dI=j("ZodMiniRecord",(e,t)=>{Gp.init(e,t),rt.init(e,t)});function ne(e,t,r){return new dI({type:"record",keyType:e,valueType:t,...ze(r)})}i(ne,"record");var fI=j("ZodMiniEnum",(e,t)=>{Kp.init(e,t),rt.init(e,t),e.options=Object.values(t.entries)});function pe(e,t){let r=Array.isArray(e)?Object.fromEntries(e.map(n=>[n,n])):e;return new fI({type:"enum",entries:r,...ze(t)})}i(pe,"_enum");var mI=j("ZodMiniLiteral",(e,t)=>{Jp.init(e,t),rt.init(e,t)});function K(e,t){return new mI({type:"literal",values:Array.isArray(e)?e:[e],...ze(t)})}i(K,"literal");var hI=j("ZodMiniTransform",(e,t)=>{Xp.init(e,t),rt.init(e,t)});function jr(e){return new hI({type:"transform",transform:e})}i(jr,"transform");var gI=j("ZodMiniOptional",(e,t)=>{Yp.init(e,t),rt.init(e,t)});function R(e){return new gI({type:"optional",innerType:e})}i(R,"optional");var yI=j("ZodMiniNullable",(e,t)=>{Qp.init(e,t),rt.init(e,t)});function bi(e){return new yI({type:"nullable",innerType:e})}i(bi,"nullable");var vI=j("ZodMiniPipe",(e,t)=>{ed.init(e,t),rt.init(e,t)});function Vr(e,t){return new vI({type:"pipe",in:e,out:t})}i(Vr,"pipe");var bI=j("ZodMiniCustom",(e,t)=>{td.init(e,t),rt.init(e,t)});function zo(e,t){return vd(bI,e??(()=>!0),t)}i(zo,"custom");var xi={};fp(xi,{bigint:()=>TI,boolean:()=>EI,date:()=>kI,number:()=>wI,string:()=>PI});function PI(e){return ad(Ro,e)}i(PI,"string");function wI(e){return ld($o,e)}i(wI,"number");function EI(e){return dd(zs,e)}i(EI,"boolean");function TI(e){return fd(Pd,e)}i(TI,"bigint");function kI(e){return yd(Ed,e)}i(kI,"date");var Ns=S({retryOnFailure:S({defaultValue:R(_e()),hide:R(_e())}),continueOnFailure:S({defaultValue:R(_e()),hide:R(_e())})}),Ds=class{constructor(t,r,n,o,a,s,u,l,p,c,f){this.name=t;this.displayName=r;this.description=n;this.props=o;this.run=a;this.test=s;this.requireAuth=u;this.errorHandlingOptions=l;this.outputSchema=p;this.audience=c;this.aiMetadata=f}static{i(this,"IAction")}},W=i(e=>new Ds(e.name,e.displayName,e.description,e.props,e.run,e.test??e.run,e.requireAuth??!0,e.errorHandlingOptions??{continueOnFailure:{defaultValue:!1},retryOnFailure:{defaultValue:!1}},e.outputSchema,e.audience,e.aiMetadata),"createAction");var ve=S({displayName:x(),description:R(x())}),ue=i((e,t)=>S({type:K(t),required:_e(),defaultValue:R(vi())}),"TPropertyValue");var zt=S({...ve.shape,...ue(x(),"SHORT_TEXT").shape}),Er=S({...ve.shape,...ue(x(),"LONG_TEXT").shape});var kd=S({label:x(),value:re()}),Do=S({disabled:R(_e()),placeholder:R(x()),options:ae(kd)});var Dt=S({...ve.shape,options:Do,...ue(re(),"STATIC_DROPDOWN").shape}),Tr=S({...ve.shape,options:Do,...ue(ae(re()),"STATIC_MULTI_SELECT_DROPDOWN").shape});var Us=S({...ve.shape,...ue(re(),"DROPDOWN").shape,refreshers:ae(x())}),_i=S({...ve.shape,...ue(ae(re()),"MULTI_SELECT_DROPDOWN").shape,refreshers:ae(x())});var kr=S({...ve.shape,...ue(_e(),"CHECKBOX").shape});var Sr=S({...ve.shape,...ue(bt(),"NUMBER").shape});var Pi=S({...ve.shape,streaming:R(_e()),...ue(re(),"FILE").shape});var wi=S({...ve.shape,...ue(x(),"DATE_TIME").shape});var Sd=ne(x(),se([zt,Er,Dt,_i,Tr,kr,Sr,Pi,wi])),Ei=S({...ve.shape,properties:Sd,...ue(ae(re()),"ARRAY").shape});var Ti=S({...ve.shape,...ue(se([ne(x(),re())]),"JSON").shape});var Ad=se([zt,Dt,Ti,Ei,Tr]),AI=ne(x(),Ad),Ls=S({refreshers:ae(x()),...ve.shape,...ue(re(),"DYNAMIC").shape});var No=S({...ve.shape,...ue(wd(),"MARKDOWN").shape});var ki=(r=>(r.ARCHIVE="ARCHIVE",r.REGISTRY="REGISTRY",r))(ki||{}),En=(r=>(r.CUSTOM="CUSTOM",r.OFFICIAL="OFFICIAL",r))(En||{}),Tn=(y=>(y.ARTIFICIAL_INTELLIGENCE="ARTIFICIAL_INTELLIGENCE",y.COMMUNICATION="COMMUNICATION",y.COMMERCE="COMMERCE",y.CORE="CORE",y.UNIVERSAL_AI="UNIVERSAL_AI",y.FLOW_CONTROL="FLOW_CONTROL",y.BUSINESS_INTELLIGENCE="BUSINESS_INTELLIGENCE",y.ACCOUNTING="ACCOUNTING",y.PRODUCTIVITY="PRODUCTIVITY",y.CONTENT_AND_FILES="CONTENT_AND_FILES",y.DEVELOPER_TOOLS="DEVELOPER_TOOLS",y.CUSTOMER_SUPPORT="CUSTOMER_SUPPORT",y.FORMS_AND_SURVEYS="FORMS_AND_SURVEYS",y.HUMAN_RESOURCES="HUMAN_RESOURCES",y.PAYMENT_PROCESSING="PAYMENT_PROCESSING",y.MARKETING="MARKETING",y.SALES_AND_CRM="SALES_AND_CRM",y))(Tn||{});var Si=(r=>(r.AUTHORIZATION_CODE="authorization_code",r.CLIENT_CREDENTIALS="client_credentials",r))(Si||{}),Ms="both_client_credentials_and_authorization_code";var Je=(o=>(o.POLLING="POLLING",o.WEBHOOK="WEBHOOK",o.APP_WEBHOOK="APP_WEBHOOK",o.MANUAL="MANUAL",o))(Je||{}),Ai=(a=>(a.NONE="NONE",a.HEADER_PRESENT="HEADER_PRESENT",a.QUERY_PRESENT="QUERY_PRESENT",a.BODY_PARAM_PRESENT="BODY_PARAM_PRESENT",a.HEAD_REQUEST="HEAD_REQUEST",a))(Ai||{}),II=S({strategy:pe(Ai),paramName:R(x())}),Ii=(r=>(r.SIMULATION="SIMULATION",r.TEST_FUNCTION="TEST_FUNCTION",r))(Ii||{});var Uo=(r=>(r.WEBSOCKET="WEBSOCKET",r.NONE="NONE",r))(Uo||{}),Id=S({status:R(bt()),body:R(re()),headers:R(ne(x(),x()))}),Od=S({type:K("DELAY"),resumeDateTime:x(),requestIdToReply:R(x()),handlerId:R(x()),streamStepProgress:R(pe(Uo))}),Cd=S({type:K("WEBHOOK"),requestId:x(),requestIdToReply:R(x()),response:Id,handlerId:R(x()),streamStepProgress:R(pe(Uo))}),OI=se([Od,Cd]);var CI=S({body:re(),rawBody:R(re()),headers:ne(x(),x()),queryParams:ne(x(),x())});function Lt(e){return e==null}i(Lt,"isNil");function Oi(e){return e==null?!0:typeof e=="string"||Array.isArray(e)?e.length===0:typeof e=="object"?Object.keys(e).length===0:!1}i(Oi,"isEmpty");function Ue(e,t){if(e==null)throw new Error(`${t} is null or undefined`)}i(Ue,"assertNotNullOrUndefined");var qs=me(require("crypto"),1);var RI=128,nn,kn,$I=i(e=>{!nn||nn.length<e?(nn=Buffer.allocUnsafe(e*RI),qs.default.randomFillSync(nn),kn=0):kn+e>nn.length&&(qs.default.randomFillSync(nn),kn=0),kn+=e},"fillPool"),zI=i(e=>($I(e|=0),nn.subarray(kn-e,kn)),"random"),DI=i((e,t,r)=>{let n=(2<<31-Math.clz32(e.length-1|1))-1,o=Math.ceil(1.6*n*t/e.length);return(a=t)=>{let s="";for(;;){let u=r(o),l=o;for(;l--;)if(s+=e[u[l]&n]||"",s.length===a)return s}}},"customRandom"),$d=i((e,t=21)=>DI(e,t,zI),"customAlphabet");var NI="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",zd=21,z8=x().check(Fr(new RegExp(`^[0-9a-zA-Z]{${zd}}$`))),UI=$d(NI,zd);var Hr=Vr(jr(e=>e instanceof Date?e.toISOString():e),x()),Mt={id:x(),created:Hr,updated:Hr},qe=i(e=>R(bi(e)),"Nullable");function Fs(e){return R(bi(pe(e)))}i(Fs,"NullableEnum");var U8=Vr(jr(e=>e==="true"||e===!0?!0:e==="false"||e===!1?!1:void 0),R(_e())),Lo=i(e=>Vr(jr(t=>Array.isArray(t)?t:t!==void 0?[t]:void 0),R(ae(e))),"OptionalArrayFromQuery");var q8=ne(x(),re());var Ci=(c=>(c.OPENAI="openai",c.OPENROUTER="openrouter",c.ANTHROPIC="anthropic",c.AZURE="azure",c.GOOGLE="google",c.ACTIVEPIECES="activepieces",c.CLOUDFLARE_GATEWAY="cloudflare-gateway",c.CUSTOM="custom",c.BEDROCK="bedrock",c.MISTRAL="mistral",c))(Ci||{});var Y8=x().check(Fr(/^#[0-9A-Fa-f]{6}$/));var eK=S({filename:x(),data:re(),type:K("file"),mimetype:R(x())});var LI=me(Nd());var sK=S({...Mt,name:x(),permissions:ae(x()),platformId:qe(x()),type:x(),userCount:R(bt())});var Ud=(n=>(n.AGENT_DECIDE="agent-decide",n.CHOOSE_YOURSELF="choose-yourself",n.LEAVE_EMPTY="leave-empty",n))(Ud||{}),Bs=(r=>(r.FILE="FILE",r.TABLE="TABLE",r))(Bs||{}),js=(n=>(n.SSE="sse",n.STREAMABLE_HTTP="streamable-http",n.SIMPLE_HTTP="http",n))(js||{});var Vs=(n=>(n.TEXT="text",n.NUMBER="number",n.BOOLEAN="boolean",n))(Vs||{});var Hs=(r=>(r.IN_PROGRESS="in-progress",r.COMPLETED="completed",r))(Hs||{});var MI=S({mode:pe(Ud),value:re()}),qI=S({auth:R(x()),fields:ne(x(),MI)}),FI=S({pieceName:x(),pieceVersion:x(),actionName:x(),predefinedInput:R(qI)}),BI=S({type:K("PIECE"),toolName:x().check(Yt(1)),pieceMetadata:FI}),jI=S({type:K("none")}),VI=S({type:K("access_token"),accessToken:x()}),HI=S({type:K("api_key"),apiKey:x(),apiKeyHeader:x()}),ZI=S({type:K("headers"),headers:ne(x(),x())}),WI=Br("type",[jI,VI,HI,ZI]),Ld=S({type:K("FLOW"),toolName:x().check(Yt(1)),externalFlowId:x(),flowDisplayName:R(x())}),Md=S({type:K("MCP"),toolName:x().check(Yt(1)),serverUrl:xd(),protocol:pe(js),auth:WI}),qd=S({type:K("KNOWLEDGE_BASE"),toolName:x().check(Yt(1)),sourceType:pe(Bs),sourceId:x(),sourceName:x()}),GI=Br("type",[BI,Ld,Md,qd]),KI=S({displayName:x(),description:R(x()),type:pe(Vs)}),Fd=S({type:K("MARKDOWN"),markdown:x()}),Sn={type:K("TOOL_CALL"),input:qe(ne(x(),re())),output:R(re()),toolName:x(),status:pe(Hs),toolCallId:x(),startTime:x(),endTime:R(x())},zK=S(Sn),Bd=Br("toolCallType",[S({...Sn,toolCallType:K("PIECE"),pieceName:x(),pieceVersion:x(),actionName:x()}),S({...Sn,toolCallType:K("FLOW"),displayName:x(),externalFlowId:x()}),S({...Sn,toolCallType:K("MCP"),displayName:x(),serverUrl:x()}),S({...Sn,toolCallType:K("KNOWLEDGE_BASE"),displayName:x(),sourceType:x()}),S({...Sn,toolCallType:K("UNKNOWN"),displayName:x()})]),JI=se([Fd,Bd]);var Zs=(r=>(r.IMAGE="image",r.TEXT="text",r))(Zs||{}),Ar=S({apiKey:x()}),XI=Ar,YI=S({apiKey:x(),apiKeyHash:x()}),QI=Ar,eO=Ar,tO=Ar,rO=Ar,nO=Ar,iO=Ar,oO=Ar,Wd=S({accessKeyId:x().check(Yt(1)),secretAccessKey:x().check(Yt(1))}),aO=S({}),sO=S({}),uO=S({}),lO=S({}),cO=S({}),pO=S({}),Gd=S({modelId:x(),modelName:x(),modelType:pe(Zs)}),Kd=S({apiKeyHeader:x(),baseUrl:x(),models:ae(Gd),defaultHeaders:R(ne(x(),x()))}),Jd=S({accountId:x(),gatewayId:x(),models:ae(Gd),vertexProject:R(x()),vertexRegion:R(x())}),Xd=S({resourceName:x(),apiVersion:Vr(jr(e=>typeof e=="string"&&e.trim().length===0?void 0:e),R(x()))}),Yd=S({region:x().check(Yt(1))}),dO=se([XI,tO,rO,nO,iO,eO,QI,YI,Wd,oO]),Qd=se([Kd,Jd,Xd,Yd,aO,uO,lO,cO,sO,pO]),fO=S({id:x(),name:x(),type:pe(Zs)}),mO=S({id:x(),name:x(),provider:pe(Ci),config:Qd,enabledForChat:_e()}),hO=S({provider:pe(Ci),config:Qd,auth:dO,platformId:x()});var LK={openai:"openai",anthropic:"anthropic","google-ai-studio":"google","google-vertex-ai":"google"},jd=["gpt-5.5","gpt-5.4-mini","gpt-5.4-nano","gpt-4.1","gpt-4.1-mini"],gO=["claude-sonnet-4-6","claude-opus-4-7","claude-haiku-4-5"],yO=["claude-sonnet-4.6","claude-opus-4.7","claude-haiku-4.5"],Vd=["gemini-2.5-pro","gemini-2.5-flash","gemini-3.1-pro-preview","gemini-3-flash-preview"],vO=["grok-4.20","grok-4.1-fast"],bO={openai:jd,anthropic:gO,google:Vd,activepieces:[...yO.map(e=>`anthropic/${e}`),...jd.map(e=>`openai/${e}`),...Vd.map(e=>`google/${e}`),...vO.map(e=>`x-ai/${e}`)]};var Hd=128e3,xO={openai:128e3,anthropic:2e5,google:1048576,bedrock:2e5,azure:128e3,openrouter:128e3,activepieces:2e5,mistral:128e3};function _O({provider:e}){return e?xO[e]??Hd:Hd}i(_O,"getMaxContextTokens");var Zd={openai:"text-embedding-3-small",google:"text-embedding-004",azure:"text-embedding-3-small",activepieces:"text-embedding-3-small",openrouter:"openai/text-embedding-3-small"},PO={anthropic:"native",google:"native",openrouter:"plugin",activepieces:"plugin"},wO=new Set(["anthropic","mistral"]);function ur(e){return{chatModels:bO[e],maxContextTokens:_O({provider:e}),defaultEmbeddingModel:Zd[e],supportsEmbedding:Zd[e]!==void 0,supportsImageGeneration:!wO.has(e),webSearch:PO[e]}}i(ur,"buildProviderCapabilities");var EO={openai:ur("openai"),anthropic:ur("anthropic"),openrouter:ur("openrouter"),azure:ur("azure"),google:ur("google"),"cloudflare-gateway":ur("cloudflare-gateway"),custom:ur("custom"),bedrock:ur("bedrock"),mistral:ur("mistral"),activepieces:ur("activepieces")};var TO=S({base64Url:x(),fileName:x(),extension:R(x())}),kO=S({mimeType:x(),url:x(),fileName:R(x())}),Ws=se([TO,kO]);var SO=se([S({type:K("file"),value:Ws}),S({type:K("markdown"),value:x(),files:R(ae(Ws))})]),AO=S({sessionId:x(),message:x(),files:R(ae(x()))});var tf=(r=>(r.ON_NEW_RECORD="ON_NEW_RECORD",r.ON_UPDATE_RECORD="ON_UPDATE_RECORD",r))(tf||{}),rf=(r=>(r.ENABLED="ENABLED",r.DISABLED="DISABLED",r))(rf||{}),Gs=(n=>(n.RECORD_CREATED="RECORD_CREATED",n.RECORD_UPDATED="RECORD_UPDATED",n.RECORD_DELETED="RECORD_DELETED",n))(Gs||{});var IO=se([S({...Mt,name:x(),externalId:x(),type:K("STATIC_DROPDOWN"),tableId:x(),projectId:x(),data:S({options:ae(S({value:x()}))})}),S({...Mt,name:x(),externalId:x(),type:se([K("TEXT"),K("NUMBER"),K("DATE")]),tableId:x(),projectId:x()})]),OO=S({...Mt,name:x(),folderId:qe(x()),projectId:x(),externalId:x(),status:Fs(rf),trigger:Fs(tf)}),CO=S({...Mt,tableId:x(),projectId:x(),cells:ne(x(),S({updated:x(),created:x(),value:re(),fieldName:x()}))}),RO=S({events:ae(pe(Gs)),webhookUrl:x(),flowId:x()}),$O=S({fields:ae(S({id:x(),name:x()})),rows:ae(ne(x(),x())),name:x()}),zO=S({projectId:x(),limit:R(xi.number()),cursor:R(x()),name:R(x()),externalIds:Lo(x()),folderId:R(x()),folderIds:Lo(x())}),DO=S({records:ae(ae(S({fieldId:x(),value:of()}))),tableId:x()}),NO=S({cells:R(ae(S({fieldId:x(),value:of()}))),tableId:x(),agentUpdate:R(_e())}),nf=Br("operator",[on("eq"),on("neq"),on("gt"),on("gte"),on("lt"),on("lte"),on("co"),ef("exists"),ef("not_exists")]),UO=S({tableId:x(),limit:R(xi.number()),cursor:R(x()),filters:Lo(nf)});function of(){return Vr(jr(e=>e==null?e:String(e)),bi(x()))}i(of,"coerceToString");function on(e){return S({fieldId:x(),operator:K(e),value:x()})}i(on,"valueFilter");function ef(e){return S({fieldId:x(),operator:K(e)})}i(ef,"existenceFilter");var LO=S({status:R(bt()),body:R(re()),headers:R(ne(x(),x()))}),MO=S({...Mt,deleted:qe(Hr),ownerId:x(),displayName:x(),platformId:x(),externalId:qe(x())});var af=S({name:x(),description:R(x()),type:x(),required:_e()}),qO=S({pieceName:x(),triggerName:x(),input:S({toolName:x(),toolDescription:x(),inputSchema:ae(af),returnsResponse:_e()})});var sf="^[0-9]+\\.[0-9]+\\.[0-9]+$",nJ=new RegExp(sf),BO="^([~^])?[0-9]+\\.[0-9]+\\.[0-9]+$",iJ=x().check(Fr(new RegExp(sf))),oJ=x().check(Fr(new RegExp(BO))),jO=S({packageType:K("ARCHIVE"),pieceType:pe(En),pieceName:x(),pieceVersion:x(),archiveId:x(),platformId:x()}),uf=S({packageType:K("REGISTRY"),pieceType:K("OFFICIAL"),pieceName:x(),pieceVersion:x()}),lf=S({packageType:K("REGISTRY"),pieceType:K("CUSTOM"),pieceName:x(),pieceVersion:x(),platformId:x()}),aJ=se([uf,lf]),sJ=se([jO,uf,lf]);var VO=Br("type",[S({type:K("CRON_EXPRESSION"),cronExpression:x(),timezone:x()}),S({type:K("INTERVAL"),intervalMs:_d().check(Oo(6e4))})]),uJ=S({...Mt,type:pe(Je),projectId:x(),flowId:x(),triggerName:x(),schedule:qe(VO),flowVersionId:x(),pieceName:x(),pieceVersion:x(),deleted:qe(x()),simulate:_e()}),cf=(v=>(v.UNKNOWN="UNKNOWN",v.FLOW_RUN_LOG="FLOW_RUN_LOG",v.FLOW_RUN_LOG_SLICE="FLOW_RUN_LOG_SLICE",v.PACKAGE_ARCHIVE="PACKAGE_ARCHIVE",v.FLOW_STEP_FILE="FLOW_STEP_FILE",v.SAMPLE_DATA="SAMPLE_DATA",v.TRIGGER_PAYLOAD="TRIGGER_PAYLOAD",v.SAMPLE_DATA_INPUT="SAMPLE_DATA_INPUT",v.TRIGGER_EVENT_FILE="TRIGGER_EVENT_FILE",v.PROJECT_RELEASE="PROJECT_RELEASE",v.FLOW_VERSION_BACKUP="FLOW_VERSION_BACKUP",v.PLATFORM_ASSET="PLATFORM_ASSET",v.USER_PROFILE_PICTURE="USER_PROFILE_PICTURE",v.WEBHOOK_PAYLOAD="WEBHOOK_PAYLOAD",v.KNOWLEDGE_BASE="KNOWLEDGE_BASE",v.FLOW_BUNDLE="FLOW_BUNDLE",v))(cf||{}),pf=(r=>(r.NONE="NONE",r.ZSTD="ZSTD",r))(pf||{}),df=(r=>(r.S3="S3",r.DB="DB",r))(df||{}),lJ=S({...Mt,projectId:qe(x()),platformId:qe(x()),type:pe(cf),compression:pe(pf),data:R(re()),location:pe(df),size:qe(bt()),fileName:qe(x()),s3Key:qe(x()),metadata:qe(ne(x(),x()))}),ff=(n=>(n.ADMIN="ADMIN",n.MEMBER="MEMBER",n.OPERATOR="OPERATOR",n))(ff||{}),mf=(r=>(r.ACTIVE="ACTIVE",r.INACTIVE="INACTIVE",r))(mf||{}),cJ=S({id:x(),email:x(),firstName:x(),status:pe(mf),externalId:qe(x()),platformId:qe(x()),platformRole:pe(ff),lastName:x(),created:Hr,updated:Hr,lastActiveDate:qe(Hr),imageUrl:qe(x())});var Xs=S({...ve.shape,...ue(ne(x(),re()),"OBJECT").shape});var hf=S({...ve.shape,...ue(x(),"COLOR").shape});var Ys=se([zt,Er,No,kr,Dt,Tr,Us,_i,Ls,Sr,Ei,Xs,Ti,wi,Pi,hf]),A={ShortText(e){return{...e,valueSchema:void 0,type:"SHORT_TEXT"}},Checkbox(e){return{...e,valueSchema:void 0,type:"CHECKBOX"}},LongText(e){return{...e,valueSchema:void 0,type:"LONG_TEXT"}},MarkDown(e){return{displayName:"Markdown",required:!1,description:e.value,type:"MARKDOWN",valueSchema:void 0,variant:e.variant??"INFO"}},Number(e){return{...e,valueSchema:void 0,type:"NUMBER"}},Json(e){return{...e,valueSchema:void 0,type:"JSON"}},Array(e){return{...e,valueSchema:void 0,type:"ARRAY"}},Object(e){return{...e,valueSchema:void 0,type:"OBJECT"}},Dropdown(e){return{...e,valueSchema:void 0,type:"DROPDOWN"}},StaticDropdown(e){return{...e,valueSchema:void 0,type:"STATIC_DROPDOWN"}},MultiSelectDropdown(e){return{...e,valueSchema:void 0,type:"MULTI_SELECT_DROPDOWN"}},DynamicProperties(e){return{...e,valueSchema:void 0,type:"DYNAMIC"}},StaticMultiSelectDropdown(e){return{...e,valueSchema:void 0,type:"STATIC_MULTI_SELECT_DROPDOWN"}},DateTime(e){return{...e,valueSchema:void 0,type:"DATE_TIME"}},File(e){return{...e,valueSchema:void 0,type:"FILE"}},Custom(e){let t=e.code.toString();return{...e,code:t,valueSchema:void 0,type:"CUSTOM"}},Color(e){return{...e,valueSchema:void 0,type:"COLOR"}}};var lr=S({displayName:x(),description:R(x())});var gf=S({username:x(),password:x()}),Qs=S({...lr.shape,username:S({displayName:x(),description:R(x())}),password:S({displayName:x(),description:R(x())}),...ue(gf,"BASIC_AUTH").shape});var GO=ne(x(),se([zt,Er,Sr,kr,Dt])),eu=S({...lr.shape,props:GO,...ue(re(),"CUSTOM_AUTH").shape});var an=S({...lr.shape,...ue(S({auth:x()}),"SECRET_TEXT").shape});var KO=ne(x(),se([zt,Er,an,Sr,kr,Dt,Tr,No])),yf=S({...lr.shape,props:KO,...ue(re(),"OIDC").shape});var tu=(r=>(r.HEADER="HEADER",r.BODY="BODY",r))(tu||{}),vf=se([zt,an,Dt]),bf=ne(x(),vf),JO=S({props:R(ne(x(),vf)),authUrl:x(),tokenUrl:x(),scope:ae(x()),prompt:R(se([K("none"),K("consent"),K("login"),K("omit")])),pkce:R(_e()),pkceMethod:R(se([K("plain"),K("S256")])),authorizationMethod:R(pe(tu)),grantType:R(se([pe(Si),K(Ms)])),extra:R(ne(x(),x()))}),xf=S({access_token:x(),props:R(bf),data:ne(x(),vi())}),ru=S({...lr.shape,...JO.shape,...ue(xf,"OAUTH2").shape});var An=se([Qs,eu,yf,ru,an]),$i="Connection",In={SecretText(e){return{...e,valueSchema:void 0,type:"SECRET_TEXT"}},OAuth2(e){return{...e,valueSchema:void 0,type:"OAUTH2",displayName:e.displayName||$i}},BasicAuth(e){return{...e,valueSchema:void 0,type:"BASIC_AUTH",displayName:e.displayName||$i,required:!0}},CustomAuth(e){return{...e,valueSchema:void 0,type:"CUSTOM_AUTH",displayName:e.displayName||$i}},OIDC(e){return{...e,valueSchema:void 0,type:"OIDC",displayName:e.displayName||$i}},None(){}};var BX={OAUTH2:"OAUTH2",CLOUD_OAUTH2:"OAUTH2",PLATFORM_OAUTH2:"OAUTH2",BASIC_AUTH:"BASIC_AUTH",CUSTOM_AUTH:"CUSTOM_AUTH",OIDC:"OIDC",SECRET_TEXT:"SECRET_TEXT",NO_AUTH:void 0};var XO=S({...ve.shape,...ue(re(),"CUSTOM").shape,code:x()});var YO=se([Ys,An]),nu=ne(x(),YO),u7=ne(x(),Ys);var _f=se([S({strategy:K("CRON"),cronExpression:x()}),S({strategy:K("NONE")})]),On=class{constructor(t,r,n,o,a,s,u,l,p,c,f,m,d,h,_,v,y,P,E){this.name=t;this.displayName=r;this.description=n;this.requireAuth=o;this.props=a;this.type=s;this.handshakeConfiguration=u;this.onHandshake=l;this.renewConfiguration=p;this.onRenew=c;this.onEnable=f;this.onDisable=m;this.onStart=d;this.run=h;this.test=_;this.sampleData=v;this.testStrategy=y;this.outputSchema=P;this.aiMetadata=E}static{i(this,"ITrigger")}},Ee=i(e=>{switch(e.type){case"WEBHOOK":return new On(e.name,e.displayName,e.description,e.requireAuth??!0,e.props,e.type,e.handshakeConfiguration??{strategy:"NONE"},e.onHandshake??(async()=>({status:200})),e.renewConfiguration??{strategy:"NONE"},e.onRenew??(async()=>Promise.resolve()),e.onEnable,e.onDisable,e.onStart??(async()=>Promise.resolve()),e.run,e.test??(()=>Promise.resolve([e.sampleData])),e.sampleData,e.test?"TEST_FUNCTION":"SIMULATION",e.outputSchema,e.aiMetadata);case"POLLING":return new On(e.name,e.displayName,e.description,e.requireAuth??!0,e.props,e.type,{strategy:"NONE"},async()=>({status:200}),{strategy:"NONE"},(async()=>Promise.resolve()),e.onEnable,e.onDisable,e.onStart??(async()=>Promise.resolve()),e.run,e.test??(()=>Promise.resolve([e.sampleData])),e.sampleData,"TEST_FUNCTION",e.outputSchema,e.aiMetadata);case"MANUAL":return new On(e.name,e.displayName,e.description,e.requireAuth??!0,e.props,e.type,{strategy:"NONE"},async()=>({status:200}),{strategy:"NONE"},(async()=>Promise.resolve()),e.onEnable,e.onDisable,e.onStart??(async()=>Promise.resolve()),e.run,e.test??(()=>Promise.resolve([e.sampleData])),e.sampleData,"TEST_FUNCTION",e.outputSchema,e.aiMetadata);case"APP_WEBHOOK":return new On(e.name,e.displayName,e.description,e.requireAuth??!0,e.props,e.type,{strategy:"NONE"},async()=>({status:200}),{strategy:"NONE"},(async()=>Promise.resolve()),e.onEnable,e.onDisable,e.onStart??(async()=>Promise.resolve()),e.run,e.test??(()=>Promise.resolve([e.sampleData])),e.sampleData,Lt(e.sampleData)&&Lt(e.test)?"SIMULATION":"TEST_FUNCTION",e.outputSchema,e.aiMetadata)}},"createTrigger");var Pf="2",qo="0.82.0";var iu=class{constructor(t,r,n,o,a,s,u,l,p=qo,c,f="",m){this.displayName=t;this.logoUrl=r;this.authors=n;this.events=o;this.categories=u;this.auth=l;this.minimumSupportedRelease=p;this.maximumSupportedRelease=c;this.description=f;this.deprecated=m;this._actions={};this._triggers={};this.getContextInfo=i(()=>({version:Pf}),"getContextInfo");(!QO(p)||eC(p,qo))&&(this.minimumSupportedRelease=qo),a.forEach(d=>this._actions[d.name]=d),s.forEach(d=>this._triggers[d.name]=d)}static{i(this,"Piece")}metadata(){return{displayName:this.displayName,logoUrl:this.logoUrl,actions:this._actions,triggers:this._triggers,categories:this.categories,description:this.description,authors:this.authors,auth:this.auth,minimumSupportedRelease:this.minimumSupportedRelease,maximumSupportedRelease:this.maximumSupportedRelease,deprecated:this.deprecated,contextInfo:this.getContextInfo?.()}}getAction(t){return this._actions[t]}getTrigger(t){return this._triggers[t]}actions(){return this._actions}triggers(){return this._triggers}},wf=i(e=>{if(e.auth&&Array.isArray(e.auth)&&!e.auth.every((r,n,o)=>n===o.findIndex(a=>a.type===r.type)))throw new Error("Auth properties must be unique by type");return new iu(e.displayName,e.logoUrl,e.authors??[],e.events,e.actions,e.triggers,e.categories??[],e.auth,e.minimumSupportedRelease,e.maximumSupportedRelease,e.description,e.deprecated)},"createPiece");function QO(e){return/^\d+\.\d+\.\d+$/.test(e)}i(QO,"isValidSimpleSemver");function eC(e,t){let[r,n,o]=e.split(".").map(Number),[a,s,u]=t.split(".").map(Number);return r!==a?r<a:n!==s?n<s:o<u}i(eC,"isSemverLessThan");var tC=R(ne(x(),ne(x(),x()))),Ef=S({id:R(x()),name:x(),displayName:x(),logoUrl:x(),description:x(),authors:ae(x()),platformId:R(x()),directoryPath:R(x()),auth:R(se([An,ae(An)])),version:x(),categories:R(ae(pe(Tn))),minimumSupportedRelease:R(x()),maximumSupportedRelease:R(x()),deprecated:R(_e()),i18n:tC}),rC=pe(["human","ai","both"]),Tf=S({description:R(x()),idempotent:R(_e())}),kf=S({name:x(),displayName:x(),description:x(),props:nu,requireAuth:_e(),errorHandlingOptions:R(Ns),outputSchema:R(zo()),audience:R(rC),aiMetadata:R(Tf)}),Sf=S({name:x(),displayName:x(),description:x(),props:nu,errorHandlingOptions:R(Ns),type:pe(Je),sampleData:re(),handshakeConfiguration:R(zo()),renewConfiguration:R(_f),testStrategy:pe(Ii),outputSchema:R(zo()),aiMetadata:R(Tf)}),nC=S({...Ef.shape,actions:ne(x(),kf),triggers:ne(x(),Sf)}),iC=S({...Ef.shape,actions:bt(),triggers:bt(),suggestedActions:R(ae(kf)),suggestedTriggers:R(ae(Sf))}),Af=S({projectUsage:bt(),pieceType:pe(En),packageType:pe(ki),platformId:R(x()),archiveId:R(x())}),uY=S({...nC.shape,...Af.shape}),lY=S({...iC.shape,...Af.shape}),cY=S({name:x(),version:x()});var oC=me(require("path")),aC=me(require("fs/promises"));var Cf=require("node:stream");var Fo=class{constructor(t,r){this.baseUrl=t;this.authenticationConverter=r}static{i(this,"BaseHttpClient")}getUrl(t){let r=new URL(`${this.baseUrl}${t.url}`),n=`${r.origin}${r.pathname}`,o=new URLSearchParams;return r.searchParams.forEach((a,s)=>{o.append(s,a)}),{urlWithoutQueryParams:n,queryParams:o}}getHeaders(t){let r={Accept:"application/json"};return t.authentication&&this.populateAuthentication(t.authentication,r),t.body&&(t.headers?.["Content-Type"]==="text/csv"?r["Content-Type"]="text/csv":r["Content-Type"]="application/json"),t.headers&&(r={...r,...t.headers}),r}populateAuthentication(t,r){this.authenticationConverter.convert(t,r)}};var Bo=class{static{i(this,"DelegatingAuthenticationConverter")}constructor(t=new ou,r=new au){this.converters={BEARER_TOKEN:t,BASIC:r}}convert(t,r){return this.converters[t.type].convert(t,r)}},ou=class{static{i(this,"BearerTokenAuthenticationConverter")}convert(t,r){return r.Authorization=`Bearer ${t.token}`,r}},au=class{static{i(this,"BasicTokenAuthenticationConverter")}convert(t,r){let n=`${t.username}:${t.password}`,o=Buffer.from(n).toString("base64");return r.Authorization=`Basic ${o}`,r}};var jo=class extends Error{constructor(r,n){let o=n.status||500,a=Buffer.isBuffer(n.responseBody)?n.responseBody.toString():n.responseBody;super(JSON.stringify({response:{status:o,body:a},request:{body:r}}));this.requestBody=r;this.status=o,this.responseBody=a}static{i(this,"HttpError")}errorMessage(){return{response:{status:this.status,body:this.responseBody},request:{body:this.requestBody}}}get response(){return{status:this.status,body:this.responseBody}}get request(){return{body:this.requestBody}}};var Vo=class extends Fo{static{i(this,"FetchHttpClient")}constructor(t="",r=new Bo){super(t,r)}async sendRequest(t,r){process.env.NODE_TLS_REJECT_UNAUTHORIZED="0";let{urlWithoutQueryParams:n,queryParams:o}=this.getUrl(t),a=this.getHeaders(t),s=t.queryParams??{};for(let[E,I]of Object.entries(s))o.append(E,I);let u=o.toString(),l=u?`${n}?${u}`:n,p=t.responseType??"json",c=t.followRedirects??!0,f=t.retries??0,{body:m,extraHeaders:d,isStream:h}=sC(t.body,a),_=lC({...a,...d}),v=await uC(async()=>{let E=new AbortController,I=t.timeout&&t.timeout>0?setTimeout(()=>E.abort(),t.timeout):void 0;try{let M={method:t.method.toString(),headers:_,body:m,redirect:c?"follow":"manual",signal:E.signal};return h&&(M.duplex="half"),r?.dispatcher!==void 0&&(M.dispatcher=r.dispatcher),await fetch(l,M)}finally{I!==void 0&&clearTimeout(I)}},f),y=c?300:400;if(v.status<200||v.status>=y){let E=await If(v,p),I=new jo(t.body,{status:v.status,responseBody:E});throw console.error("[HttpClient#(sanitized error message)] Request failed:",I),I}let P=await If(v,p);return{status:v.status,headers:cC(v.headers),body:P}}};function sC(e,t){if(dC(e))return{body:void 0,extraHeaders:{},isStream:!1};if(pC(e)){let n=new Cf.PassThrough;return e.on("error",o=>n.destroy(o)),e.pipe(n),{body:n,extraHeaders:e.getHeaders(),isStream:!0}}return typeof e=="string"||Buffer.isBuffer(e)||e instanceof URLSearchParams||e instanceof ArrayBuffer||typeof FormData<"u"&&e instanceof FormData||typeof Blob<"u"&&e instanceof Blob?{body:e,extraHeaders:{},isStream:!1}:(t["Content-Type"]??t["content-type"]??"").includes("application/x-www-form-urlencoded")?{body:new URLSearchParams(e).toString(),extraHeaders:{},isStream:!1}:{body:JSON.stringify(e),extraHeaders:{},isStream:!1}}i(sC,"serializeBody");async function If(e,t){switch(t){case"arraybuffer":return Buffer.from(await e.arrayBuffer());case"blob":return await e.blob();case"text":return await e.text();default:{let r=await e.text();if(r.length===0)return;try{return JSON.parse(r)}catch{return r}}}}i(If,"parseResponseBody");async function uC(e,t){let r;for(let n=0;n<=t;n++)try{let o=await e();if(o.status>=500&&n<t){await Of(n);continue}return o}catch(o){if(r=o,n<t){await Of(n);continue}throw o}throw r}i(uC,"sendWithRetries");function Of(e){let t=Math.min(1e3*2**e,3e4);return new Promise(r=>setTimeout(r,t))}i(Of,"backoff");function lC(e){let t={};for(let[r,n]of Object.entries(e))n!==void 0&&(t[r.toLowerCase()]=Array.isArray(n)?n.join(", "):n);return t}i(lC,"normalizeHeaders");function cC(e){let t={};return e.forEach((r,n)=>{t[n]=r}),t}i(cC,"toHttpHeaders");function pC(e){return typeof e=="object"&&e!==null&&typeof e.getHeaders=="function"&&typeof e.pipe=="function"&&typeof e.on=="function"}i(pC,"isNodeFormData");function dC(e){return e==null}i(dC,"isNil");var Qt=new Vo;var sn=(s=>(s.GET="GET",s.POST="POST",s.PATCH="PATCH",s.PUT="PUT",s.DELETE="DELETE",s.HEAD="HEAD",s))(sn||{});var QR=me(require("fs")),Rh=me(Ou());var e$={"application/json":"json","application/pdf":"pdf","application/xml":"xml","text/xml":"xml","application/zip":"zip","application/gzip":"gz","application/x-tar":"tar","application/octet-stream":"bin","application/msword":"doc","application/vnd.openxmlformats-officedocument.wordprocessingml.document":"docx","application/vnd.ms-excel":"xls","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":"xlsx","application/vnd.ms-powerpoint":"ppt","application/vnd.openxmlformats-officedocument.presentationml.presentation":"pptx","application/rtf":"rtf","application/javascript":"js","application/x-www-form-urlencoded":"bin","text/plain":"txt","text/html":"html","text/css":"css","text/csv":"csv","text/calendar":"ics","text/markdown":"md","image/png":"png","image/jpeg":"jpeg","image/jpg":"jpg","image/gif":"gif","image/webp":"webp","image/svg+xml":"svg","image/bmp":"bmp","image/tiff":"tiff","image/x-icon":"ico","image/vnd.microsoft.icon":"ico","image/heic":"heic","audio/mpeg":"mp3","audio/mp4":"m4a","audio/wav":"wav","audio/x-wav":"wav","audio/ogg":"ogg","audio/webm":"weba","video/mp4":"mp4","video/mpeg":"mpeg","video/webm":"webm","video/quicktime":"mov","video/x-msvideo":"avi","font/woff":"woff","font/woff2":"woff2","font/ttf":"ttf","font/otf":"otf"};function t$(e){let t=e.split(";")[0].trim().toLowerCase();return e$[t]??""}i(t$,"contentTypeToExtension");var r$=i(({baseUrl:e,relativePath:t})=>{let r=e.endsWith("/")?e:`${e}/`,n=t.startsWith("/")?t.slice(1):t;return`${r}${n}`},"joinBaseUrlWithRelativePath"),n$=i((e,t)=>{let r="https://api.example.com";try{let n=t?e(t):void 0;return(n?.endsWith("/")?n.slice(0,-1):n)??r}catch{return r}},"getBaseUrlForDescription");function $h({auth:e,baseUrl:t,authMapping:r,description:n,displayName:o,name:a,props:s,extraProps:u,authLocation:l="headers"}){return W({audience:"human",name:a||"custom_api_call",displayName:o||"Custom API Call",description:n||"Make a custom API call to a specific endpoint",auth:e,requireAuth:!!e,props:{url:A.DynamicProperties({auth:e,displayName:"",required:!0,refreshers:[],props:i(async({auth:p})=>({url:A.ShortText({displayName:"URL",description:`You can either use the full URL or the relative path to the base URL
62
+ i.e ${n$(t,p)}/resource or /resource`,required:!0,defaultValue:p?t(p):"",...s?.url??{}})}),"props")}),method:A.StaticDropdown({displayName:"Method",required:!0,options:{options:Object.values(sn).map(p=>({label:p,value:p}))},...s?.method??{}}),headers:A.Object({displayName:"Headers",description:"Authorization headers are injected automatically from your connection.",required:!0,...s?.headers??{}}),queryParams:A.Object({displayName:"Query Parameters",required:!0,...s?.queryParams??{}}),body_type:A.StaticDropdown({displayName:"Body Type",required:!1,defaultValue:"none",options:{disabled:!1,options:[{label:"None",value:"none"},{label:"JSON",value:"json"},{label:"Form Data",value:"form_data"},{label:"Raw",value:"raw"}]}}),body:A.DynamicProperties({auth:e,displayName:"Body",refreshers:["body_type"],required:!1,props:i(async({body_type:p})=>{if(!p)return{};let c=p,f={};switch(c){case"none":break;case"json":f.data=A.Json({displayName:"JSON Body",required:!0,...s?.body??{}});break;case"raw":f.data=A.LongText({displayName:"Raw Body",required:!0});break;case"form_data":f.data=A.Array({displayName:"Form Data",required:!0,properties:{fieldName:A.ShortText({displayName:"Field Name",required:!0}),fieldType:A.StaticDropdown({displayName:"Field Type",required:!0,options:{disabled:!1,options:[{label:"Text",value:"text"},{label:"File",value:"file"}]}}),textFieldValue:A.LongText({displayName:"Text Field Value",required:!1}),fileFieldValue:A.File({displayName:"File Field Value",required:!1})}});break}return f},"props")}),response_is_binary:A.Checkbox({displayName:"Response is Binary ?",description:"Enable for files like PDFs, images, etc.",required:!1,defaultValue:!1}),failsafe:A.Checkbox({displayName:"No Error on Failure",required:!1,...s?.failsafe??{}}),timeout:A.Number({displayName:"Timeout (in seconds)",required:!1,...s?.timeout??{}}),followRedirects:A.Checkbox({displayName:"Follow redirects",required:!1,defaultValue:!1}),...u},run:i(async p=>{let{method:c,url:f,headers:m,queryParams:d,body:h,body_type:_,failsafe:v,timeout:y,response_is_binary:P,followRedirects:E}=p.propsValue;Ue(c,"Method"),Ue(f,"URL");let I=Lt(r)?{}:await r(p.auth,p.propsValue),M=f.url,D=M.startsWith("http://")||M.startsWith("https://")?M:r$({baseUrl:t(p.auth),relativePath:M}),F={method:c,url:D,headers:{...m??{},...l==="headers"||!Lt(l)?I:{}},queryParams:{...l==="queryParams"?I:{},...d??{}},timeout:y?y*1e3:0,followRedirects:E};if(P&&(F.responseType="arraybuffer"),h)if(_&&_!=="none"){let L=h.data;if(_==="form_data"){let G=L,V=new Rh.default;for(let{fieldName:$,fieldType:q,textFieldValue:le,fileFieldValue:Y}of G)q==="text"&&!Oi(le)?V.append($,le):q==="file"&&!Oi(Y)&&V.append($,Y.data,{filename:Y?.filename});F.body=V,F.headers={...F.headers,...V.getHeaders()}}else F.body=L}else _||(F.body=h);try{let L=await Qt.sendRequest(F);return await i$(p.files,L.body,L.status,L.headers,P)}catch(L){if(v)return L.errorMessage();throw L}},"run")})}i($h,"createCustomApiCallAction");var i$=i(async(e,t,r,n,o)=>{let a;if(o&&o$(t)){let s=Array.isArray(n?.["content-type"])?n["content-type"][0]:n?.["content-type"],u=t$(s??"")||"txt",l;t instanceof ArrayBuffer?l=Buffer.from(new Uint8Array(t)):Buffer.isBuffer(t)?l=t:l=Buffer.from(t),a=await e.write({fileName:`output.${u}`,data:l})}else a=t;return{status:r,headers:n,body:a}},"handleBinaryResponse"),o$=i(e=>e instanceof ArrayBuffer||Buffer.isBuffer(e),"isBinaryBody");var zh={async validateZod(e,t){let r=S(Object.entries(t).reduce((o,[a,s])=>({...o,[a]:s}),{})),n=await rn(r,e);if(!n.success){let o=n.error.issues.reduce((a,s)=>({...a,[s.path.join(".")]:s.message}),{});throw new Error(JSON.stringify({errors:o},null,2))}}};var TA=me(require("node:crypto"));var Cu=In.OAuth2({description:"Authenticate via a Slack OAuth flow.",authUrl:"https://slack.com/oauth/v2/authorize?user_scope=search:read,users.profile:write,reactions:read,reactions:write,im:history,stars:read,channels:write,groups:write,im:write,mpim:write,channels:write.invites,groups:write.invites,channels:history,groups:history,chat:write,users:read,usergroups:write",tokenUrl:"https://slack.com/api/oauth.v2.access",required:!0,scope:["channels:read","channels:manage","channels:history","chat:write","groups:read","groups:write","groups:history","reactions:read","mpim:read","mpim:write","mpim:history","im:write","im:read","im:history","users:read","files:write","files:read","users:read.email","reactions:write","usergroups:read","usergroups:write","chat:write.customize","links:read","links:write","emoji:read","users.profile:read","channels:write.invites","groups:write.invites","channels:join","conversations.connect:write"]}),a$=In.CustomAuth({displayName:"Bot Token",description:"Authenticate using a Slack bot token (and optional user token).",required:!0,props:{botToken:In.SecretText({displayName:"Bot Token",description:"The bot token for your Slack app (starts with xoxb-)",required:!0}),userToken:In.SecretText({displayName:"User Token",description:"Optional user token for actions that require user-level access (starts with xoxp-)",required:!1})},validate:i(async({auth:e})=>{try{let t=await Qt.sendRequest({method:"GET",url:"https://slack.com/api/auth.test",headers:{Authorization:`Bearer ${e.botToken}`}});return t.body.ok?{valid:!0}:{valid:!1,error:`Slack auth test failed: ${t.body.error}`}}catch(t){return{valid:!1,error:t.message}}},"validate")}),N=[Cu,a$];var Ra=me(Se());function Ca(e){return e.type==="CUSTOM_AUTH"}i(Ca,"isCustomAuth");function B(e){let t=e;return Ca(t)?t.props.botToken:t.access_token}i(B,"getBotToken");function Kl(e){let t=e;return Ca(t)?t.props.userToken||void 0:t.data?.authed_user?.access_token}i(Kl,"getUserToken");function Ot(e){let t=Kl(e);if(!t)throw new Error(JSON.stringify({message:"Missing user token, please re-authenticate"}));return t}i(Ot,"requireUserToken");async function Te(e){let t=e;if(!Ca(t))return t.data.team_id??t.data.team.id;let r=await Qt.sendRequest({method:"GET",url:"https://slack.com/api/auth.test",headers:{Authorization:`Bearer ${t.props.botToken}`}});if(!r.body.ok)throw new Error("Failed to get team ID from Slack auth.test");return r.body.team_id}i(Te,"getTeamId");async function Xn(e){let t=e;if(!Ca(t)){let n=t.data.authed_user?.id;if(!n)throw new Error("Failed to get user ID from Slack auth data");return n}let r=await Qt.sendRequest({method:"GET",url:"https://slack.com/api/auth.test",headers:{Authorization:`Bearer ${t.props.botToken}`}});if(!r.body.ok)throw new Error("Failed to get user ID from Slack auth.test");return r.body.user_id}i(Xn,"getUserId");var Kb=`
63
+ Please make sure add the bot to the channel by following these steps:
64
+ 1. Type /invite in the channel's chat.
65
+ 2. Click on Add apps to this channel.
66
+ 3. Search for and add the bot.
67
+ `,Kr=A.MarkDown({value:Kb+"\n**Note**: If you can't find the channel in the dropdown list (which fetches up to 2000 channels), please click on the **(F)** and type the channel ID directly in an array like this: `{`{ ['your_channel_id_1', 'your_channel_id_2', ...] `}`}"}),Ge=A.MarkDown({value:Kb+`
68
+ **Note**: If you can't find the channel in the dropdown list (which fetches up to 2000 channels), please click on the **(F)** and type the channel ID directly.
69
+ `}),Ie=A.MarkDown({value:"This trigger needs Slack's App Webhook manually configured on self-hosted instances before it will receive events, see the [setup guide](https://www.activepieces.com/docs/install/configure-operate/setup-app-webhooks#slack).",variant:"INFO"}),Jb=A.MarkDown({value:"This trigger needs Slack's Interactivity & Shortcuts Request URL manually configured on self-hosted instances before it will receive events, see the [setup guide](https://www.activepieces.com/docs/install/configure-operate/setup-app-webhooks#slack).",variant:"INFO"}),Oe=i(e=>A.Dropdown({auth:N,displayName:"Channel",description:"You can get the Channel ID by right-clicking on the channel and selecting 'View Channel Details.'",required:e,refreshers:[],async options({auth:t}){if(!t)return{disabled:!0,placeholder:"connect slack account",options:[]};let r=B(t);return{disabled:!1,placeholder:"Select channel",options:await Rr(r)}}}),"slackChannel"),Ht=A.ShortText({displayName:"Username",description:"The username of the bot",required:!1}),Zt=A.ShortText({displayName:"Profile Picture",description:"The profile picture of the bot",required:!1}),$a=A.ShortText({displayName:"Icon Emoji",description:"The icon emoji of the bot",required:!1}),za=A.ShortText({displayName:"Reply to Thread (Thread Message Link/Timestamp)",description:"Provide the ts (timestamp) or link value of the **parent** message to make this message a reply. Do not use the ts value of the reply itself; use its parent instead. For example `1710304378.475129`.Alternatively, you can easily obtain the message link by clicking on the three dots next to the parent message and selecting the `Copy link` option.",required:!1}),Ct=A.Checkbox({displayName:"Mention flow of origin?",description:"If checked, adds a mention at the end of the Slack message to indicate which flow sent the notification, with a link to said flow.",required:!1,defaultValue:!1}),Yn=A.Json({displayName:"Block Kit blocks",description:"See https://api.slack.com/block-kit for specs",required:!1,defaultValue:[]}),lt=i(e=>A.Dropdown({auth:N,displayName:"User",required:e,refreshers:[],async options({auth:t}){if(!t)return{disabled:!0,placeholder:"connect slack account",options:[]};let r=B(t);return{disabled:!1,placeholder:"Select User",options:await Qb(r)}}}),"userId"),Xb=A.MultiSelectDropdown({auth:N,displayName:"Users",required:!1,refreshers:[],async options({auth:e}){if(!e)return{disabled:!0,placeholder:"connect slack account",options:[]};let t=B(e);return{disabled:!1,placeholder:"Select Users",options:await Qb(t)}}}),Yb=A.MultiSelectDropdown({auth:N,displayName:"User Groups",required:!1,refreshers:[],async options({auth:e}){if(!e)return{disabled:!0,placeholder:"connect slack account",options:[]};let t=B(e);return{disabled:!1,placeholder:"Select User Groups",options:((await new Ra.WebClient(t).usergroups.list()).usergroups??[]).filter(a=>!a.date_delete).map(a=>({label:a.handle||a.name||"",value:a.id||""}))}}}),Wt=A.LongText({displayName:"Message",required:!0}),Da=A.Array({displayName:"Action Buttons",required:!0,properties:{label:A.ShortText({displayName:"Label",required:!0}),style:A.StaticDropdown({displayName:"Style",required:!1,defaultValue:null,options:{options:[{label:"Default",value:null},{label:"Primary",value:"primary"},{label:"Danger",value:"danger"}]}})}});async function Qb(e){let t=new Ra.WebClient(e),r=[];for await(let n of t.paginate("users.list",{limit:1e3})){let o=n;o.members&&r.push(...o.members.filter(a=>!a.deleted).map(a=>({label:a.name||"",value:a.id||""})))}return r}i(Qb,"getUsers");async function Rr(e){let t=new Ra.WebClient(e),r=[],n=2e3,o;do{let a=await t.conversations.list({types:"public_channel,private_channel",exclude_archived:!0,limit:1e3,cursor:o});a.channels&&r.push(...a.channels.map(s=>({label:s.name||"",value:s.id||""}))),o=a.response_metadata?.next_cursor}while(o&&r.length<n);return r}i(Rr,"getChannels");var ex=me(Se());var ao=3e3;function Rt(e){if(e.length<=ao)return[{type:"section",text:{type:"mrkdwn",text:e}}];let t=[],r=e;for(;r.length>0;){if(r.length<=ao){t.push({type:"section",text:{type:"mrkdwn",text:r}});break}let n=r.lastIndexOf(`
70
+ `,ao);n<=0&&(n=r.lastIndexOf(" ",ao)),n<=0&&(n=ao),t.push({type:"section",text:{type:"mrkdwn",text:r.substring(0,n)}}),r=r.substring(n).trimStart()}return t}i(Rt,"textToSectionBlocks");function Gt(e){return{type:"context",elements:[{type:"mrkdwn",text:`Message sent by <${new URL(e.server.publicUrl).origin}/projects/${e.project.id}/flows/${e.flows.current.id}|this flow>.`}]}}i(Gt,"buildFlowOriginContextBlock");var pr=i(async({text:e,conversationId:t,username:r,profilePicture:n,iconEmoji:o,blocks:a,threadTs:s,token:u,file:l,replyBroadcast:p,unfurlLinks:c})=>{let f=new ex.WebClient(u);if(l)return await f.files.uploadV2({channel_id:t,initial_comment:e,thread_ts:s,file_uploads:[{file:l.data,filename:l.filename}]});{let m={text:e,channel:t,username:r,icon_url:n,icon_emoji:o,blocks:a,thread_ts:s};return p&&(m.reply_broadcast=p),c===!1&&(m.unfurl_links=!1),await f.chat.postMessage(m)}},"slackSendMessage");function $t(e){let t=/\/p(\d+)(\d{6})$/,r=e.match(t);if(r)return`${r[1]}.${r[2]}`;let n=/^(\d+)\.(\d{6})$/;if(e.match(n))return e}i($t,"processMessageTimestamp");function Na(e,t,r){if(!t)return null;let n=new RegExp(`<@${t}>\\s+(.+)`,"s"),o=e.match(n);if(!o)return null;let s=o[1].trim().split(/\s+/),u=s[0].toLowerCase(),l=s.slice(1);return r.includes(u)?{command:u,args:l}:null}i(Na,"parseCommand");var Ua=i(async(e,t)=>{let{actions:r}=t.propsValue;if(Ue(r,"actions"),!r.length)throw new Error("Must have at least one button action");let n=r.map(({label:o,style:a})=>{if(!o)throw new Error("Button text for the action cannot be empty");return{label:o,style:a,actionId:encodeURI(o)}});if(t.executionType==="BEGIN"){let o=await t.run.createWaitpoint({type:"WEBHOOK"}),a=B(t.auth),{text:s,username:u,profilePicture:l,replyBroadcast:p}=t.propsValue;Ue(a,"token"),Ue(s,"text");let c=n.map(m=>{let d=o.buildResumeUrl({queryParams:{action:m.actionId}});return{type:"button",text:{type:"plain_text",text:m.label},...m.style&&{style:m.style},value:d,action_id:m.actionId}}),f=await pr({token:a,text:`${t.propsValue.text}`,username:u,profilePicture:l,threadTs:t.propsValue.threadTs?$t(t.propsValue.threadTs):void 0,replyBroadcast:p,blocks:[...Rt(`${t.propsValue.text}`),{type:"actions",block_id:"actions",elements:c},...t.propsValue.mentionOriginFlow?[Gt(t)]:[]],conversationId:e});return t.run.waitForWaitpoint(o.id),{action:n.at(0)||"N/A",payload:{type:"action_blocks",user:{id:f.message?.user,username:"user.name",name:"john.smith",team_id:f.message?.team},container:{type:"message",message_ts:f.ts,channel_id:f.channel,is_ephemeral:!1},trigger_id:"trigger_id",team:{id:f.message?.team,domain:"team_name"},channel:{id:f.channel,name:"#channel"},message:f.message,state:{},actions:[{action_id:"action_id",block_id:"actions",value:"resume_url",style:"primary",type:"button",action_ts:"action_ts"}]}}}else{let o=t.resumePayload.queryParams;return{action:decodeURI(o.action),payload:t.resumePayload.body}}},"requestAction");var tx=W({auth:N,name:"request_action_direct_message",displayName:"Request Action from A User",description:"Send a message to a user and wait until the user selects an action",audience:"both",aiMetadata:{description:"Send a direct message with interactive buttons to a user and pause the flow until that user clicks one of the defined actions, then resume with their choice. Use this for a human-in-the-loop decision via DM; use Request Approval in a Channel for a simple approve/disapprove gate in a channel. Sends a new message each run, so it is not idempotent.",idempotent:!1},props:{userId:lt(!0),text:Wt,actions:Da,username:Ht,profilePicture:Zt,mentionOriginFlow:Ct},async run(e){let{userId:t}=e.propsValue;return Ue(t,"userId"),await Ua(t,e)}});var rx=W({auth:N,name:"request_action_message",displayName:"Request Action in A Channel",description:"Send a message in a channel and wait until an action is selected",audience:"both",aiMetadata:{description:"Post a message with interactive action buttons to a Slack channel and pause the flow until a recipient clicks one, then resume with the chosen action. Pick this for human-in-the-loop branching in a shared channel; use Request Approval from A User for a private approve/disapprove DM. Not idempotent: each run posts a new message and creates a fresh wait.",idempotent:!1},props:{info:Ge,channel:Oe(!0),text:Wt,actions:Da,threadTs:za,username:Ht,profilePicture:Zt,replyBroadcast:A.Checkbox({displayName:"Broadcast reply to channel",description:"When replying to a thread, also make the message visible to everyone in the channel (only applicable when Thread Timestamp is provided)",required:!1,defaultValue:!1}),mentionOriginFlow:Ct},async run(e){let{channel:t}=e.propsValue;return Ue(t,"channel"),await Ua(t,e)}});var Jl=me(Se());var nx=W({auth:N,name:"request_approval_direct_message",displayName:"Request Approval from A User",description:"Send approval message to a user and then wait until the message is approved or disapproved",audience:"both",aiMetadata:{description:"Direct-message one Slack user an approval request with Approve/Disapprove buttons and pause the flow until they respond. Pick this for a private one-to-one approval gate; use Request Action in A Channel to ask a whole channel. Not idempotent: each run sends a new DM and creates a fresh wait.",idempotent:!1},props:{userId:lt(!0),text:Wt,username:Ht,profilePicture:Zt,mentionOriginFlow:Ct},async run(e){if(e.executionType==="BEGIN"){let t=B(e.auth),{userId:r,username:n,profilePicture:o,mentionOriginFlow:a}=e.propsValue;Ue(t,"token"),Ue(Wt,"text"),Ue(r,"userId");let s=await e.run.createWaitpoint({type:"WEBHOOK"}),u=await pr({token:t,text:`${e.propsValue.text}`,username:n,profilePicture:o,conversationId:r}),l=u.channel,p=u.ts,c=s.buildResumeUrl({queryParams:{action:"approve",channel:l,messageTs:p}}),f=s.buildResumeUrl({queryParams:{action:"disapprove",channel:l,messageTs:p}});return await new Jl.WebClient(t).chat.update({ts:p,channel:l,text:e.propsValue.text,blocks:[...Rt(`${e.propsValue.text}`),{type:"actions",block_id:"actions",elements:[{type:"button",text:{type:"plain_text",text:"Approve"},style:"primary",value:c,action_id:"approve"},{type:"button",text:{type:"plain_text",text:"Disapprove"},style:"danger",value:f,action_id:"disapprove"}]},...a?[Gt(e)]:[]]}),e.run.waitForWaitpoint(s.id),{approved:!1,messageTs:p}}else{let t=e.resumePayload.queryParams.action==="approve",r=e.resumePayload.queryParams.channel,n=e.resumePayload.queryParams.messageTs,o=B(e.auth);try{if(o&&r&&n){let a=new Jl.WebClient(o),s=t?"Approved":"Disapproved";await a.chat.update({channel:r,ts:n,text:`${e.propsValue.text}
71
+
72
+ ${s}`,blocks:[...Rt(`${e.propsValue.text}`),{type:"section",text:{type:"mrkdwn",text:t?":white_check_mark: *Approved*":":x: *Disapproved*"}}]})}}catch{}return{approved:t,messageTs:n}}}});var Xl=me(Se());var ix=W({auth:N,name:"request_approval_message",displayName:"Request Approval in a Channel",description:"Send approval message to a channel and then wait until the message is approved or disapproved",audience:"both",aiMetadata:{description:"Post a message with Approve/Disapprove buttons to a channel and pause the flow until someone clicks one, then resume with the boolean outcome. Use this for a simple approval gate visible to a channel; use Request Action from A User for a private DM with custom action choices. Posts a new message each run, so it is not idempotent.",idempotent:!1},props:{info:Ge,channel:Oe(!0),text:Wt,username:Ht,profilePicture:Zt,mentionOriginFlow:Ct},async run(e){if(e.executionType==="BEGIN"){let t=B(e.auth),{channel:r,username:n,profilePicture:o,mentionOriginFlow:a}=e.propsValue;Ue(t,"token"),Ue(Wt,"text"),Ue(r,"channel");let s=await e.run.createWaitpoint({type:"WEBHOOK"}),l=(await pr({token:t,text:`${e.propsValue.text}`,username:n,profilePicture:o,conversationId:r})).ts,p=s.buildResumeUrl({queryParams:{action:"approve",channel:r,messageTs:l}}),c=s.buildResumeUrl({queryParams:{action:"disapprove",channel:r,messageTs:l}});return await new Xl.WebClient(t).chat.update({channel:r,ts:l,text:e.propsValue.text,blocks:[...Rt(`${e.propsValue.text}`),{type:"actions",block_id:"actions",elements:[{type:"button",text:{type:"plain_text",text:"Approve"},style:"primary",value:p,action_id:"approve"},{type:"button",text:{type:"plain_text",text:"Disapprove"},style:"danger",value:c,action_id:"disapprove"}]},...a?[Gt(e)]:[]]}),e.run.waitForWaitpoint(s.id),{approved:!1,messageTs:l}}else{let t=e.resumePayload.queryParams.action==="approve",r=e.resumePayload.queryParams.channel,n=e.resumePayload.queryParams.messageTs,o=B(e.auth);try{if(o&&r&&n){let a=new Xl.WebClient(o),s=t?"Approved":"Disapproved";await a.chat.update({channel:r,ts:n,text:`${e.propsValue.text}
73
+
74
+ ${s}`,blocks:[...Rt(`${e.propsValue.text}`),{type:"section",text:{type:"mrkdwn",text:t?":white_check_mark: *Approved*":":x: *Disapproved*"}}]})}}catch{}return{approved:t,messageTs:n}}}});var ox=W({auth:N,name:"send_direct_message",displayName:"Send Message To A User",description:"Send message to a user",audience:"both",aiMetadata:{description:"Send a direct message to a single user by user ID, with optional Block Kit blocks, custom username/icon, and link unfurling. Each call posts a new DM, so it is not idempotent. Use this to message one person privately; use Send Message To A Channel to post in a channel.",idempotent:!1},props:{userId:lt(!0),text:Wt,username:Ht,profilePicture:Zt,iconEmoji:$a,mentionOriginFlow:Ct,blocks:Yn,unfurlLinks:A.Checkbox({displayName:"Unfurl Links",description:"Enable link unfurling for this message",required:!1,defaultValue:!0})},async run(e){let t=B(e.auth),{text:r,userId:n,blocks:o,unfurlLinks:a,mentionOriginFlow:s}=e.propsValue;Ue(t,"token"),Ue(r,"text"),Ue(n,"userId");let u=[...Rt(r)];return o&&Array.isArray(o)&&u.push(...o),s&&u.push(Gt(e)),pr({token:t,text:r,username:e.propsValue.username,profilePicture:e.propsValue.profilePicture,iconEmoji:e.propsValue.iconEmoji,conversationId:n,blocks:u,unfurlLinks:a})}});var ax=W({auth:N,name:"send_channel_message",displayName:"Send Message To A Channel",description:"Send message to a channel",audience:"both",aiMetadata:{description:"Post a message to a channel, with optional Block Kit blocks, file attachment, custom username/icon, and link unfurling; can post as the bot or as the authenticated user. Provide a thread timestamp to reply within a thread (and optionally broadcast that reply to the channel). Each call posts a new message, so it is not idempotent; requires either message text or blocks. Use Send Message To A User for a private DM.",idempotent:!1},props:{info:Ge,channel:Oe(!0),text:A.LongText({displayName:"Message",description:"The text of your message. When using Block Kit blocks, this is used as a fallback for notifications.",required:!1}),sendAsBot:A.Checkbox({displayName:"Send as a bot?",required:!0,defaultValue:!0}),threadTs:za,username:Ht,profilePicture:Zt,iconEmoji:$a,file:A.File({displayName:"Attachment",required:!1}),replyBroadcast:A.Checkbox({displayName:"Broadcast reply to channel",description:"When replying to a thread, also make the message visible to everyone in the channel (only applicable when Thread Timestamp is provided)",required:!1,defaultValue:!1}),mentionOriginFlow:Ct,unfurlLinks:A.Checkbox({displayName:"Unfurl Links",description:"Enable link unfurling for this message",required:!1,defaultValue:!0}),blocks:Yn},async run(e){let{text:t,channel:r,sendAsBot:n,username:o,profilePicture:a,iconEmoji:s,threadTs:u,file:l,mentionOriginFlow:p,blocks:c,replyBroadcast:f,unfurlLinks:m}=e.propsValue,d=n?B(e.auth):Ot(e.auth);if(!t&&(!c||!Array.isArray(c)||c.length===0))throw new Error("Either Message or Block Kit blocks must be provided");let h=[];return t&&h.push(...Rt(t)),c&&Array.isArray(c)&&c.length>0&&h.push(...c),p&&h.push(Gt(e)),pr({token:d,text:t||void 0,username:o,profilePicture:a,iconEmoji:s,conversationId:r,threadTs:u?$t(u):void 0,file:l,blocks:h.length>0?h:void 0,replyBroadcast:f,unfurlLinks:m})}});var sx=Ee({auth:N,name:"new_reaction_added",displayName:"New Reaction",description:"Triggers when a new reaction is added to a message",aiMetadata:{description:"Fires when an emoji reaction is added to a message in the Slack workspace. Can be optionally filtered to specific emojis, a specific user, or specific channels. The event payload identifies the user who added the reaction, the emoji name, and the message item it was added to."},props:{webhookInfo:Ie,info:Kr,emojis:A.Array({displayName:"Emojis (E.g fire, smile)",description:"Select emojis to trigger on",required:!1}),user:lt(!1),channels:A.MultiSelectDropdown({auth:N,displayName:"Channels",description:"If no channel is selected, the flow will be triggered for reactions in all channels the app has access to",required:!1,refreshers:[],async options({auth:e}){if(!e)return{disabled:!0,placeholder:"connect slack account",options:[]};let t=B(e);return{disabled:!1,placeholder:"Select channels",options:await Rr(t)}}})},type:"APP_WEBHOOK",sampleData:void 0,onEnable:i(async e=>{let t=await Te(e.auth);e.app.createListeners({events:["reaction_added"],identifierValue:t})},"onEnable"),onDisable:i(async e=>{},"onDisable"),run:i(async e=>{let t=e.payload.body,r=e.propsValue.channels??[],n=e.propsValue.emojis??[];return e.propsValue.user&&t.event.user!==e.propsValue.user?[]:n.length>0&&!n.includes(t.event.reaction)?[]:r.length>0&&!r.includes(t.event.item.channel)?[]:[t.event]},"run")});var ux=Ee({auth:N,name:"new_reaction_removed",displayName:"Reaction Removed",description:"Triggers when a reaction is removed from a message",aiMetadata:{description:"Fires when an emoji reaction is removed from a message in the Slack workspace. Can be optionally filtered to specific emojis, a specific user, or specific channels. The event payload identifies the user who removed the reaction, the emoji name, and the message item it was removed from."},props:{webhookInfo:Ie,info:Kr,emojis:A.Array({displayName:"Emojis (E.g fire, smile)",description:"Select emojis to trigger on",required:!1}),user:lt(!1),channels:A.MultiSelectDropdown({auth:N,displayName:"Channels",description:"If no channel is selected, the flow will be triggered for reactions removed in all channels the app has access to",required:!1,refreshers:[],async options({auth:e}){if(!e)return{disabled:!0,placeholder:"connect slack account",options:[]};let t=B(e);return{disabled:!1,placeholder:"Select channels",options:await Rr(t)}}})},type:"APP_WEBHOOK",sampleData:void 0,onEnable:i(async e=>{let t=await Te(e.auth);e.app.createListeners({events:["reaction_removed"],identifierValue:t})},"onEnable"),onDisable:i(async e=>{},"onDisable"),run:i(async e=>{let t=e.payload.body,r=e.propsValue.channels??[],n=e.propsValue.emojis??[];return e.propsValue.user&&t.event.user!==e.propsValue.user?[]:n.length>0&&!n.includes(t.event.reaction)?[]:r.length>0&&!r.includes(t.event.item.channel)?[]:[t.event]},"run")});var lx=me(Se());var cx=W({auth:N,name:"uploadFile",displayName:"Upload file",description:"Upload file without sharing it to a channel or user",audience:"both",aiMetadata:{description:"Upload a file to Slack, optionally sharing it into a channel and setting a title and filename. Each call creates a new file, so it is not idempotent. To attach a file inline with a message instead, use the attachment option on Send Message To A Channel.",idempotent:!1},props:{file:A.File({displayName:"Attachment",required:!0}),title:A.ShortText({displayName:"Title",required:!1}),filename:A.ShortText({displayName:"Filename",required:!1}),channel:Oe(!1)},async run(e){let t=B(e.auth),{file:r,title:n,filename:o,channel:a}=e.propsValue;return await new lx.WebClient(t).files.uploadV2({file_uploads:[{file:r.data,filename:o||r.filename}],title:n,channel_id:a})}});var px=me(Se());var dx=W({name:"searchMessages",displayName:"Search messages",description:"Searches for messages matching a query",audience:"both",aiMetadata:{description:"Search across the workspace for messages matching a query string and return all matching messages, paging through every result; read-only and repeatable. Requires a user token (search is not available to bot tokens). Use this to find messages anywhere by content; use Get channel history or Get Message by Timestamp when you already know the channel.",idempotent:!0},auth:N,props:{query:A.ShortText({displayName:"Search query",required:!0})},async run({auth:e,propsValue:t}){let r=Ot(e),n=new px.WebClient(r),o=[],a="*";do{let s=await n.search.messages({query:t.query,count:100,cursor:a});s.messages?.matches&&o.push(...s.messages.matches),a=s.messages?.pagination?.next_cursor}while(a);return o}});var fx=me(Se());var mx=W({name:"updateMessage",displayName:"Update message",description:"Update an existing message",audience:"both",aiMetadata:{description:"Edit an already-posted Slack message in place, replacing its text and blocks, identified by channel and message timestamp (ts). Pick this to revise content the flow previously sent rather than posting a new one; use Delete Message to remove it instead. Idempotent: re-running with the same inputs leaves the message in the same final state.",idempotent:!0},auth:N,props:{info:Ge,channel:Oe(!0),ts:A.ShortText({displayName:"Message Timestamp",description:"Please provide the timestamp of the message you wish to update, such as `1710304378.475129`. Alternatively, you can easily obtain the message link by clicking on the three dots next to the message and selecting the `Copy link` option.",required:!0}),text:A.LongText({displayName:"Message",description:"The updated text of your message",required:!0}),mentionOriginFlow:Ct,blocks:Yn},async run(e){let{auth:t,propsValue:r}=e,n=$t(r.ts);if(!n)throw new Error("Invalid Timestamp Value.");let o=new fx.WebClient(B(t)),a=[...Rt(r.text)];return r.blocks&&Array.isArray(r.blocks)&&r.blocks.length>0&&a.push(...r.blocks),r.mentionOriginFlow&&a.push(Gt(e)),await o.chat.update({channel:r.channel,ts:n,text:r.text,blocks:a})}});var hx=me(Se());var gx=W({auth:N,name:"slack-find-user-by-email",displayName:"Find User by Email",description:"Finds a user by matching against their email address.",audience:"both",aiMetadata:{description:"Look up a single Slack user by their exact email address, returning their profile and user ID. Pick this to resolve an email into a Slack user ID before messaging or referencing that user. Read-only and idempotent; errors if no workspace member matches the email.",idempotent:!0},props:{email:A.ShortText({displayName:"Email",required:!0})},async run({auth:e,propsValue:t}){let r=t.email;return await new hx.WebClient(B(e)).users.lookupByEmail({email:r})}});var yx=me(Se());var vx=W({auth:N,name:"slack-update-profile",displayName:"Update Profile",description:"Update basic profile field such as name or title.",audience:"both",aiMetadata:{description:"Update basic profile fields (first name, last name, email) for the authenticated user, or for another user when an admin specifies a user ID; requires a user token. Setting the same values again is idempotent. Note that changing the email triggers Slack notification emails to both addresses, and editing another user is admin-only on paid teams.",idempotent:!0},props:{firstName:A.ShortText({displayName:"First Name",required:!1}),lastName:A.ShortText({displayName:"Last Name",required:!1}),email:A.ShortText({displayName:"Email",description:"Changing a user's email address will send an email to both the old and new addresses, and also post a slackbot message to the user informing them of the change.",required:!1}),userId:A.ShortText({displayName:"User",description:"ID of user to change. This argument may only be specified by admins on paid teams.You can use **Find User by Email** action to retrieve ID.",required:!1})},async run({auth:e,propsValue:t}){return new yx.WebClient(Ot(e)).users.profile.set({profile:{first_name:t.firstName,last_name:t.lastName,email:t.email},user:t.userId})}});var bx=me(Se());var xx=W({auth:N,name:"slack-create-channel",displayName:"Create Channel",description:"Creates a new channel.",audience:"both",aiMetadata:{description:"Create a new public or private channel with the given name. Not idempotent: calling again with a name that already exists fails with a name-taken error rather than reusing the existing channel. Channel names are normalized by Slack (lowercased, spaces to hyphens).",idempotent:!1},props:{channelName:A.ShortText({displayName:"Channel Name",required:!0}),isPrivate:A.Checkbox({displayName:"Is Private?",required:!1,defaultValue:!1})},async run({auth:e,propsValue:t}){return await new bx.WebClient(B(e)).conversations.create({name:t.channelName,is_private:t.isPrivate})}});var _x=Ee({auth:N,name:"channel_created",displayName:"Channel created",description:"Triggers when a channel is created",aiMetadata:{description:"Fires when a new public or private channel is created in the connected Slack workspace. The event payload includes the new channel id, name, creation timestamp, and the id of the user who created it."},props:{info:Ie},type:"APP_WEBHOOK",sampleData:void 0,onEnable:i(async e=>{let t=await Te(e.auth);e.app.createListeners({events:["channel_created"],identifierValue:t})},"onEnable"),onDisable:i(async e=>{},"onDisable"),run:i(async e=>[e.payload.body.event],"run")});var Px=me(Se());var wx=W({auth:N,name:"slack-add-reaction-to-message",displayName:"Add Reaction to Message",description:"Add an emoji reaction to a message.",audience:"both",aiMetadata:{description:"Add an emoji reaction to a specific message identified by its channel and timestamp, optionally reacting as the authenticated user instead of the bot. Adding the same reaction twice has no extra effect (Slack returns an already-reacted error), so the end state is stable. Provide the emoji name without colons, e.g. thumbsup.",idempotent:!0},props:{info:Ge,channel:Oe(!0),ts:A.ShortText({displayName:"Message Timestamp",description:"Please provide the timestamp of the message you wish to react, such as `1710304378.475129`. Alternatively, you can easily obtain the message link by clicking on the three dots next to the message and selecting the `Copy link` option.",required:!0}),reaction:A.ShortText({displayName:"Reaction (emoji) name",required:!0,description:"e.g.`thumbsup`"}),reactAsUser:A.Checkbox({displayName:"React as user?",description:"If enabled, the reaction will be added as the authenticated user instead of the bot.",required:!0,defaultValue:!1})},async run(e){let{channel:t,ts:r,reaction:n,reactAsUser:o}=e.propsValue,a=o?Ot(e.auth):B(e.auth),s=new Px.WebClient(a),u=$t(r);if(u)return await s.reactions.add({channel:t,timestamp:u,name:n});throw new Error("Invalid Timestamp Value.")}});var Ex=me(Se());var Tx=W({name:"getChannelHistory",auth:N,displayName:"Get channel history",description:'Retrieve all messages from a specific channel ("conversation") between specified timestamps',audience:"both",aiMetadata:{description:"Retrieve top-level messages from a known channel, paging through the full range and optionally bounded by oldest/latest timestamps; read-only and repeatable. Use this to read a channel you already have the ID for; use Search messages to find messages by content across the workspace, or Retrieve Thread Messages to read replies within a thread.",idempotent:!0},props:{info:Ge,channel:Oe(!0),oldest:A.Number({displayName:"Oldest",description:"Only messages after this timestamp will be included in results",required:!1}),latest:A.Number({displayName:"Latest",description:"Only messages before this timestamp will be included in results. Default is the current time",required:!1}),inclusive:A.Checkbox({displayName:"Inclusive",description:"Include messages with oldest or latest timestamps in results. Ignored unless either timestamp is specified",defaultValue:!1,required:!0}),includeAllMetadata:A.Checkbox({displayName:"Include all metadata",description:"Return all metadata associated with each message",defaultValue:!1,required:!0})},async run({auth:e,propsValue:t}){let r=new Ex.WebClient(B(e)),n=[];await r.conversations.history({channel:t.channel});for await(let o of r.paginate("conversations.history",{channel:t.channel,oldest:t.oldest,latest:t.latest,limit:200,include_all_metadata:t.includeAllMetadata,inclusive:t.inclusive})){let a=o;a.messages&&n.push(...a.messages)}return n}});var kx=me(Se());var Sx=W({auth:N,name:"slack-find-user-by-handle",displayName:"Find User by Handle",description:"Finds a user by matching against their Slack handle.",audience:"both",aiMetadata:{description:"Look up a workspace member by their Slack handle (display name without the leading @) and return that member; read-only and repeatable. Pick this when you only know the handle and need the user object or ID; use Find User by ID when you already have the user ID. Scans the full member list and errors if no exact display-name match is found.",idempotent:!0},props:{handle:A.ShortText({displayName:"Handle",description:"User handle (display name), without the leading @",required:!0})},async run({auth:e,propsValue:t}){let r=t.handle.replace("@",""),n=new kx.WebClient(B(e));for await(let o of n.paginate("users.list",{limit:1e3})){let a=o;if(a.members){let s=a.members.find(u=>u.profile?.display_name===r);if(s)return s}}throw new Error(`Could not find user with handle @${r}`)}});var Ax=me(Se());var Ix=W({auth:N,name:"slack-set-user-status",displayName:"Set User Status",description:"Sets a user's custom status",audience:"both",aiMetadata:{description:"Set the authenticated user's custom status text and optional emoji, optionally with a Unix-timestamp expiration; requires a user token, not a bot token. This overwrites any existing status, so re-running with the same input is idempotent. Status text is capped at 100 characters.",idempotent:!0},props:{text:A.ShortText({displayName:"Text",required:!0}),emoji:A.ShortText({displayName:"Emoji",required:!1,description:"Emoji shortname (standard or custom), e.g. :tada: or :train:"}),expiration:A.Number({displayName:"Expires at",description:"Unix timestamp - if not set, the status will not expire",required:!1})},async run({auth:e,propsValue:t}){return await zh.validateZod(t,{text:x().check($s(100))}),await new Ax.WebClient(Ot(e)).users.profile.set({profile:{status_text:t.text,status_emoji:t.emoji,status_expiration:t.expiration}})}});var Ox=Ee({auth:N,name:"new_mention",displayName:"New Mention in Channel",description:"Triggers when a user or user group is mentioned.",aiMetadata:{description:"Fires when a channel or group message @-mentions one of the configured users or user groups. Can be optionally filtered to specific channels, and bot messages can be ignored. When the remove-mention option is enabled, the event payload includes a clean_text field with the mention tokens stripped from the message text; otherwise the raw Slack message event is returned."},props:{webhookInfo:Ie,info:Kr,users:Xb,usergroups:Yb,channels:A.MultiSelectDropdown({auth:N,displayName:"Channels",description:"If no channel is selected, the flow will be triggered for username mentions in all channels",required:!1,refreshers:[],async options({auth:e}){if(!e)return{disabled:!0,placeholder:"connect slack account",options:[]};let t=B(e);return{disabled:!1,placeholder:"Select channel",options:await Rr(t)}}}),ignoreBots:A.Checkbox({displayName:"Ignore Bot Messages ?",required:!0,defaultValue:!1}),removeMention:A.Checkbox({displayName:"Remove Mention from Message",description:"If enabled, provides a clean_text field with the user and user group mentions removed from the message.",required:!0,defaultValue:!1})},type:"APP_WEBHOOK",sampleData:void 0,onEnable:i(async e=>{let t=await Te(e.auth);e.app.createListeners({events:["message"],identifierValue:t})},"onEnable"),onDisable:i(async e=>{},"onDisable"),run:i(async e=>{let t=e.payload.body,r=e.propsValue.channels??[],n=e.propsValue.users??[],o=e.propsValue.usergroups??[];if(!["channel","group"].includes(t.event.channel_type))return[];if(r.length>0&&!r.includes(t.event.channel))return[];if(e.propsValue.ignoreBots&&t.event.bot_id)return[];let a=t.event.text??"",s=n.some(l=>a.includes(`<@${l}>`)),u=o.some(l=>new RegExp(`<!subteam\\^${l}(\\|[^>]*)?>`).test(a));if(!s&&!u)return[];if(e.propsValue.removeMention){let l=a;for(let p of n)l=l.replace(new RegExp(`<@${p}>`,"g"),"");for(let p of o)l=l.replace(new RegExp(`<!subteam\\^${p}(\\|[^>]*)?>`,"g"),"");return l=l.trim(),[{...t.event,clean_text:l}]}return[t.event]},"run")});var VS=me(jS()),HS=W({name:"markdownToSlackFormat",displayName:"Markdown to Slack format",description:"Convert Markdown-formatted text to Slack's pseudo - markdown syntax",audience:"both",aiMetadata:{description:"Convert standard Markdown into Slack's mrkdwn dialect so links, bold, and lists render correctly in messages; a pure local text transform that needs no auth and is fully repeatable for the same input. Use this to prepare text before sending it through a Slack message action.",idempotent:!0},requireAuth:!1,props:{markdown:A.LongText({displayName:"Markdown text",required:!0})},async run({propsValue:e}){return(0,VS.default)(e.markdown)}});var ZS=Ee({auth:N,name:"new_command",displayName:"New Command in Channel",description:"Triggers when a specific command is sent to the bot (e.g., @bot command arg1 arg2)",aiMetadata:{description:'Fires when a channel or group message addressed to the bot contains one of the configured commands (e.g., "@bot help" or "@bot ocr"). Can be optionally filtered to specific channels, and bot messages can be ignored. The event payload includes the original message plus a parsed_command object with the recognized command and its arguments.'},props:{webhookInfo:Ie,info:Kr,user:lt(!0),commands:A.Array({displayName:"Commands",description:"List of valid commands that the bot should respond to (e.g., help, ocr, remind)",required:!0,defaultValue:["help"]}),channels:A.MultiSelectDropdown({auth:N,displayName:"Channels",description:"If no channel is selected, the flow will be triggered for commands in all channels",required:!1,refreshers:[],async options({auth:e}){if(!e)return{disabled:!0,placeholder:"connect slack account",options:[]};let t=B(e);return{disabled:!1,placeholder:"Select channel",options:await Rr(t)}}}),ignoreBots:A.Checkbox({displayName:"Ignore Bot Messages ?",required:!0,defaultValue:!0})},type:"APP_WEBHOOK",sampleData:void 0,onEnable:i(async e=>{let t=await Te(e.auth);e.app.createListeners({events:["message"],identifierValue:t})},"onEnable"),onDisable:i(async e=>{},"onDisable"),run:i(async e=>{let t=e.payload.body,r=e.propsValue.channels??[],n=e.propsValue.commands??[],o=e.propsValue.user;if(!["channel","group"].includes(t.event.channel_type))return[];if(!(r.length===0||r.includes(t.event.channel)))return[];if(e.propsValue.ignoreBots&&t.event.bot_id)return[];if(o&&t.event.text){let a=Na(t.event.text,o,n);if(a&&n.includes(a.command))return[{...t.event,parsed_command:a}]}return[]},"run")});var WS=me(Se());var GS=W({auth:N,name:"get-file",displayName:"Get File",description:"Return information about a given file ID.",audience:"both",aiMetadata:{description:"Look up metadata for a single Slack file by its file ID and download its contents. Pick this when you have a file ID (e.g. from a message trigger payload) and need the file details or bytes. Read-only and idempotent; fails if the file has no accessible download URL.",idempotent:!0},props:{fileId:A.ShortText({displayName:"File ID",required:!0,description:"You can pass the file ID from the New Message Trigger payload."})},async run(e){let t=B(e.auth),n=await new WS.WebClient(t).files.info({file:e.propsValue.fileId}),o=n.file?.url_private_download;if(!o)throw new Error("Unable to find the download URL.");let a=await Qt.sendRequest({method:"GET",url:o,authentication:{type:"BEARER_TOKEN",token:t},responseType:"arraybuffer"});return{...n.file,data:await e.files.write({fileName:n.file?.name||"file",data:Buffer.from(a.body)})}}});var KS=Ee({auth:N,name:"new-message",displayName:"New Public Message Posted Anywhere",description:"Triggers when a new message is posted to any channel.",aiMetadata:{description:"Fires when a new message is posted in any public channel or group the app can access (direct messages are excluded). Bot messages can be optionally ignored. The event payload is the Slack message event, including its channel, text, and sender."},props:{info:Ie,ignoreBots:A.Checkbox({displayName:"Ignore Bot Messages ?",required:!0,defaultValue:!1})},type:"APP_WEBHOOK",sampleData:void 0,onEnable:i(async e=>{let t=await Te(e.auth);e.app.createListeners({events:["message"],identifierValue:t})},"onEnable"),onDisable:i(async e=>{},"onDisable"),run:i(async e=>{let t=e.payload.body;return["channel","group"].includes(t.event.channel_type)?e.propsValue.ignoreBots&&t.event.bot_id?[]:[t.event]:[]},"run")});var JS=Ee({auth:N,name:"new-message-in-channel",displayName:"New Message Posted to Channel",description:"Triggers when a new message is posted to a specific #channel you choose.",aiMetadata:{description:"Fires when a new message is posted to the specific channel selected in the trigger configuration. Only channel or group messages in the chosen channel fire; bot messages can be optionally ignored. The event payload is the Slack message event, including its channel, text, and sender."},props:{webhookInfo:Ie,info:Ge,channel:Oe(!0),ignoreBots:A.Checkbox({displayName:"Ignore Bot Messages ?",required:!0,defaultValue:!1})},type:"APP_WEBHOOK",sampleData:void 0,async onEnable(e){let t=await Te(e.auth);e.app.createListeners({events:["message"],identifierValue:t})},async onDisable(e){},async run(e){let t=e.payload.body;return["channel","group"].includes(t.event.channel_type)?t.event.channel===e.propsValue.channel?e.propsValue.ignoreBots&&t.event.bot_id?[]:[t.event]:[]:[]}});var XS=Ee({auth:N,name:"new-direct-message",displayName:"New Direct Message",description:"Triggers when a message was posted in a direct message channel.",aiMetadata:{description:"Fires when a new message is posted in a direct message (im) channel with the connected Slack app. Bot messages and the connected user's own messages can be optionally ignored. The event payload is the Slack message event, including its channel, text, and sender."},props:{info:Ie,ignoreBots:A.Checkbox({displayName:"Ignore Bot Messages ?",required:!0,defaultValue:!1}),ignoreSelfMessages:A.Checkbox({displayName:"Ignore Message from Yourself ?",required:!0,defaultValue:!1})},type:"APP_WEBHOOK",sampleData:void 0,onEnable:i(async e=>{let t=await Te(e.auth);e.app.createListeners({events:["message"],identifierValue:t})},"onEnable"),onDisable:i(async e=>{},"onDisable"),async run(e){let t=e.payload.body,r=await Xn(e.auth);return t.event.channel_type!=="im"?[]:e.propsValue.ignoreBots&&t.event.bot_id||e.propsValue.ignoreSelfMessages&&t.event.user===r?[]:[t.event]}});var YS=me(Se());var QS=W({name:"retrieveThreadMessages",displayName:"Retrieve Thread Messages",description:"Retrieves thread messages by channel and thread timestamp.",audience:"both",aiMetadata:{description:"Retrieve all replies in a thread given the channel and the parent message timestamp; read-only and repeatable. The timestamp must be that of the parent message, not a reply. Use this to read a conversation thread; use Get channel history for top-level channel messages.",idempotent:!0},auth:N,props:{channel:Oe(!0),threadTs:A.ShortText({displayName:"Thread ts",description:"Provide the ts (timestamp) value of the **parent** message to retrieve replies of this message. Do not use the ts value of the reply itself; use its parent instead. For example `1710304378.475129`.Alternatively, you can easily obtain the message link by clicking on the three dots next to the parent message and selecting the `Copy link` option.",required:!0})},async run({auth:e,propsValue:t}){let r=new YS.WebClient(B(e)),n=$t(t.threadTs);if(!n)throw new Error("Invalid Timestamp Value.");return await r.conversations.replies({channel:t.channel,ts:n})}});var eA=Ee({auth:N,name:"new-mention-in-direct-message",displayName:"New Mention in Direct Message",description:"Triggers when a username is mentioned in a direct message channel.",aiMetadata:{description:"Fires when the configured user is @-mentioned in a direct message (im channel). Only messages in DM channels that contain the mention token for the selected user fire; bot messages and the user's own messages can be optionally ignored. The event payload is the Slack message event including its text, channel, and sender."},props:{info:Ie,user:lt(!0),ignoreBots:A.Checkbox({displayName:"Ignore Bot Messages ?",required:!0,defaultValue:!1}),ignoreSelfMessages:A.Checkbox({displayName:"Ignore Message from Yourself ?",required:!0,defaultValue:!1})},type:"APP_WEBHOOK",sampleData:void 0,onEnable:i(async e=>{let t=await Te(e.auth);e.app.createListeners({events:["message"],identifierValue:t})},"onEnable"),onDisable:i(async e=>{},"onDisable"),async run(e){let t=e.payload.body,r=await Xn(e.auth);return t.event.channel_type!=="im"?[]:e.propsValue.ignoreBots&&t.event.bot_id||e.propsValue.ignoreSelfMessages&&t.event.user===r?[]:e.propsValue.user&&t.event.text?.includes(`<@${e.propsValue.user}>`)?[t.event]:[]}});var tA=Ee({auth:N,name:"new-command-in-direct-message",displayName:"New Command in Direct Message",description:"Triggers when a specific command is sent to the bot (e.g., @bot command arg1 arg2) via Direct Message.",aiMetadata:{description:`Fires when a direct message (im channel) addressed to the bot contains one of the configured commands (e.g., "@bot help" or "@bot remind"). Only messages in DM channels matching the listed commands fire; bot messages and the user's own messages can be optionally ignored. The event payload includes the original message plus a parsed_command object with the recognized command and its arguments.`},props:{info:Ie,user:lt(!0),commands:A.Array({displayName:"Commands",description:"List of valid commands that the bot should respond to (e.g., help, ocr, remind)",required:!0,defaultValue:["help"]}),ignoreBots:A.Checkbox({displayName:"Ignore Bot Messages ?",required:!0,defaultValue:!0}),ignoreSelfMessages:A.Checkbox({displayName:"Ignore Message from Yourself ?",required:!0,defaultValue:!1})},type:"APP_WEBHOOK",sampleData:void 0,onEnable:i(async e=>{let t=await Te(e.auth);e.app.createListeners({events:["message"],identifierValue:t})},"onEnable"),onDisable:i(async e=>{},"onDisable"),run:i(async e=>{let t=e.payload.body,r=e.propsValue.commands??[],n=e.propsValue.user,o=await Xn(e.auth);if(t.event.channel_type!=="im")return[];if(e.propsValue.ignoreBots&&t.event.bot_id||e.propsValue.ignoreSelfMessages&&t.event.user===o)return[];if(n&&t.event.text){let a=Na(t.event.text,n,r);if(a&&r.includes(a.command))return[{...t.event,parsed_command:a}]}return[]},"run")});var rA=me(Se());var nA=W({auth:N,name:"set-channel-topic",displayName:"Set Channel Topic",description:"Sets the topic on a selected channel.",audience:"both",aiMetadata:{description:"Set (overwrite) the topic of a selected channel. Idempotent: re-running with the same topic leaves the channel in the same state. The bot must be a member of the channel.",idempotent:!0},props:{info:Ge,channel:Oe(!0),topic:A.LongText({displayName:"Topic",required:!0})},async run(e){let{channel:t,topic:r}=e.propsValue;return await new rA.WebClient(B(e.auth)).conversations.setTopic({channel:t,topic:r})}});var iA=me(Se());var oA=W({name:"get-message",displayName:"Get Message by Timestamp",description:"Retrieves a specific message from a channel history using the message's timestamp.",audience:"both",aiMetadata:{description:"Fetch a single message from a channel by its exact timestamp; read-only and repeatable. Use this when you already have the message ts and channel; use Get channel history to read a range of messages or Search messages to find one by content.",idempotent:!0},auth:N,props:{info:Ge,channel:Oe(!0),ts:A.ShortText({displayName:"Message Timestamp",description:"Please provide the timestamp of the message you wish to retrieve, such as `1710304378.475129`. Alternatively, you can easily obtain the message link by clicking on the three dots next to the message and selecting the `Copy link` option.",required:!0})},async run({auth:e,propsValue:t}){let r=$t(t.ts);if(!r)throw new Error("Invalid Timestamp Value.");return await new iA.WebClient(B(e)).conversations.history({channel:t.channel,oldest:r,limit:1,inclusive:!0})}});var aA=me(Se());var sA=W({auth:N,name:"find-user-by-id",displayName:"Find User by ID",description:"Finds a user by their ID.",audience:"both",aiMetadata:{description:"Fetch a user profile directly by their Slack user ID; read-only and repeatable. Pick this when you already have the user ID (the fastest, exact lookup); use Find User by Handle when you only know the display-name handle.",idempotent:!0},props:{id:A.ShortText({displayName:"ID",required:!0})},async run({auth:e,propsValue:t}){return await new aA.WebClient(B(e)).users.profile.get({user:t.id})}});var lA=me(Se());var uA={id:"USLACKBOT",team_id:"T06BTHUEFFF",name:"slackbot",deleted:!1,color:"757575",real_name:"Slackbot",tz:"America/Los_Angeles",tz_label:"Pacific Daylight Time",tz_offset:-25200,profile:{title:"",phone:"",skype:"",real_name:"Slackbot",real_name_normalized:"Slackbot",display_name:"Slackbot",display_name_normalized:"Slackbot",fields:{},status_text:"",status_emoji:"",status_emoji_display_info:[],status_expiration:0,avatar_hash:"sv41d8cd98f0",always_active:!0,first_name:"slackbot",last_name:"",image_24:"https://a.slack-edge.com/80588/img/slackbot_24.png",image_32:"https://a.slack-edge.com/80588/img/slackbot_32.png",image_48:"https://a.slack-edge.com/80588/img/slackbot_48.png",image_72:"https://a.slack-edge.com/80588/img/slackbot_72.png",image_192:"https://a.slack-edge.com/80588/marketing/img/avatars/slackbot/avatar-slackbot.png",image_512:"https://a.slack-edge.com/80588/img/slackbot_512.png",status_text_canonical:"",team:"T06BTHUEFFF"},is_admin:!1,is_owner:!1,is_primary_owner:!1,is_restricted:!1,is_ultra_restricted:!1,is_bot:!1,is_app_user:!1,updated:0,is_email_confirmed:!1,who_can_share_contact_card:"EVERYONE"},cA=Ee({auth:N,name:"new-user",displayName:"New User",description:"Triggers when a new user is created / first joins your org.",aiMetadata:{description:"Fires when a new member joins the Slack workspace (a team_join event). The event payload is the new user object, including their id, name, profile, and account flags."},props:{info:Ie},type:"APP_WEBHOOK",sampleData:uA,onEnable:i(async e=>{let t=await Te(e.auth);e.app.createListeners({events:["team_join"],identifierValue:t})},"onEnable"),onDisable:i(async e=>{},"onDisable"),test:i(async e=>{let r=await new lA.WebClient(B(e.auth)).users.list({limit:10});return r.members?r.members:[uA]},"test"),run:i(async e=>{let t=e.payload.body;return t.event.type!=="team_join"?[]:[t.event.user]},"run")});var pA=Ee({auth:N,name:"new-saved-message",displayName:"New Saved Message",description:"Triggers when you save a message.",aiMetadata:{description:"Fires when the connected Slack user saves (stars) a message. Only star_added events whose saved item is a message fire; saving other item types does not trigger. The event payload is the saved item, including its channel and message reference."},props:{info:Ie},type:"APP_WEBHOOK",sampleData:void 0,onEnable:i(async e=>{let t=await Te(e.auth);e.app.createListeners({events:["star_added"],identifierValue:t})},"onEnable"),onDisable:i(async e=>{},"onDisable"),run:i(async e=>{let t=e.payload.body;return t.event.type==="star_added"&&t.event.item.type==="message"?[t.event.item]:[]},"run")});var fA=me(Se());var dA={id:"heart",image:"https://emoji.slack-edge.com/T06BTHUEFFF/heart/84a171ae62daacc7.jpg"},mA=Ee({auth:N,name:"new-team-custom-emoji",displayName:"New Team Custom Emoji",description:"Triggers when a custom emoji has been added to a team.",aiMetadata:{description:'Fires when a new custom emoji is added to the Slack workspace (an emoji_changed event with the "add" subtype). The event payload includes the emoji id (name) and the image URL of the added emoji.'},props:{info:Ie},type:"APP_WEBHOOK",sampleData:dA,onEnable:i(async e=>{let t=await Te(e.auth);e.app.createListeners({events:["emoji_changed"],identifierValue:t})},"onEnable"),onDisable:i(async e=>{},"onDisable"),test:i(async e=>{let r=await new fA.WebClient(B(e.auth)).emoji.list();return r.emoji?Object.entries(r.emoji).map(([n,o])=>({id:n,image:o})):[dA]},"test"),run:i(async e=>{let t=e.payload.body;return t.event.type!=="emoji_changed"&&t.event.subtype!=="add"?[]:[{id:t.event.name,image:t.event.value}]},"run")});var hA=me(Se());var gA=W({auth:N,name:"invite-user-to-channel",displayName:"Invite User to Channel",description:"Invites an existing User to an existing channel.",audience:"both",aiMetadata:{description:"Add an existing workspace user to an existing channel as a member. Both the channel and the user must already exist. Effectively idempotent in result since a user already in the channel stays a member, though Slack returns an error if they are already present.",idempotent:!1},props:{info:Ge,channel:Oe(!0),userId:lt(!0)},async run(e){return await new hA.WebClient(B(e.auth)).conversations.invite({channel:e.propsValue.channel,users:`${e.propsValue.userId}`})}});var yA=me(Se());var vA=W({name:"listUsers",displayName:"List users",description:"List all users of the workspace",audience:"both",aiMetadata:{description:"List every member of the workspace, paging through all results, with toggles to include bots and disabled/deactivated users; read-only and repeatable. Use this to enumerate or scan all users; use Find User by ID or Find User by Handle when you already know which single user you want.",idempotent:!0},props:{includeBots:A.Checkbox({displayName:"Include bots?",required:!0,defaultValue:!1}),includeDisabled:A.Checkbox({displayName:"Include disabled users?",required:!0,defaultValue:!1})},auth:N,async run({auth:e,propsValue:t}){let r=new yA.WebClient(B(e)),n=[];for await(let o of r.paginate("users.list",{limit:1e3})){let a=o;a.members&&n.push(...a.members.filter(s=>(t.includeDisabled||!s.deleted)&&(t.includeBots||!s.is_bot)))}return n}});var bA=me(Se());var xA=W({name:"delete-message",displayName:"Delete Message",description:"Deletes a specific message from a channel using the message's timestamp.",audience:"both",aiMetadata:{description:"Permanently delete one Slack message from a channel, identified by its timestamp (ts) and channel. Pick this to remove a previously posted message; to instead edit its content use Update Message. Not idempotent in effect though re-deleting an already-gone message errors, and deletion requires a user token with rights to remove that message.",idempotent:!1},auth:N,props:{info:Ge,channel:Oe(!0),ts:A.ShortText({displayName:"Message Timestamp",description:"Please provide the timestamp of the message you wish to retrieve, such as `1710304378.475129`. Alternatively, you can easily obtain the message link by clicking on the three dots next to the message and selecting the `Copy link` option.",required:!0})},async run({auth:e,propsValue:t}){let r=$t(t.ts);if(!r)throw new Error("Invalid Timestamp Value.");let n=Ot(e),o=new bA.WebClient(n);if(!(await o.conversations.history({channel:t.channel,oldest:r,limit:1,inclusive:!0})).messages?.[0])throw new Error("No message found for the provided timestamp.");return o.chat.delete({channel:t.channel,ts:r})}});var _A=Ee({auth:N,name:"new-modal-interaction",displayName:"New Modal Interaction",description:"Triggers when a user interacts with a modal.",aiMetadata:{description:"Fires when a user interacts with a Slack modal view, either submitting it (view_submission) or closing it (view_closed) depending on the selected interaction type. The event payload is the Slack interaction payload (with the auth token stripped), including the submitted view, its state values, and the acting user."},props:{info:Jb,interactionType:A.StaticDropdown({displayName:"Interaction Type",description:"Select the type of modal interaction to trigger on.",required:!0,defaultValue:"view_submission",options:{disabled:!1,options:[{label:"View Submission",value:"view_submission"},{label:"View Closed",value:"view_closed"}]}})},type:"APP_WEBHOOK",sampleData:void 0,onEnable:i(async e=>{let t=await Te(e.auth);e.app.createListeners({events:[e.propsValue.interactionType],identifierValue:t})},"onEnable"),onDisable:i(async e=>{},"onDisable"),run:i(async e=>{let t=e.payload.body,r=JSON.parse(t.payload),n=e.propsValue.interactionType;if(r.type!==n)return[];let{token:o,...a}=r;return[a]},"run")});var dp=me(Se());var PA=W({auth:N,name:"update_group_users",displayName:"Update User Group Members",description:"Add users to or overwrite the member list of a Slack user group.",audience:"both",aiMetadata:{description:'Set the membership of a Slack user group, found by its handle, to a given list of user IDs. Defaults to appending the IDs to current members; with "Append" off it replaces the entire member list (clearing it if no IDs are given), which is idempotent. Append mode is not idempotent. Requires a user token and errors if the handle is not found.',idempotent:!1},props:{handle:A.ShortText({displayName:"Group Handle",description:"Group handle without the leading @",required:!0}),userIds:A.Array({displayName:"User IDs",description:"The list of Slack User IDs to update this group with. Leave empty to clear the group (if not appending).",required:!1}),appendUsers:A.Checkbox({displayName:"Append to existing members?",description:"If checked, these users will be added to the current group. If unchecked, the current group members will be completely replaced by these users.",required:!0,defaultValue:!0})},async run(e){let t=e.auth,r=new dp.WebClient(B(t)),n=new dp.WebClient(Ot(t)),o=e.propsValue.handle.replace("@","").toLowerCase(),s=(e.propsValue.userIds||[]).filter(d=>d&&d.trim()!==""),u=e.propsValue.appendUsers,p=(await r.usergroups.list({include_users:!0})).usergroups?.find(d=>d.handle&&d.handle.toLowerCase()===o);if(!p||!p.id)throw new Error(`User group with handle '@${o}' not found.`);let c=s;if(u){let d=p.users||[];c=Array.from(new Set([...d,...s]))}let f=c.join(", ");return await n.usergroups.users.update({usergroup:p.id,users:f})}});var wA=me(Se());var EA=W({auth:N,name:"get_group_by_handle",displayName:"Get User Group by Handle",description:"Finds a Slack user group by its handle (e.g., @user-group) and returns its details. To mention this group in a message, map the returned ID using the syntax <!subteam^ID>. Read more: https://api.slack.com/reference/surfaces/formatting#mentioning-groups",audience:"both",aiMetadata:{description:"Look up a Slack user group (subteam) by its handle and return the group, including its ID for building an <!subteam^ID> mention; read-only and repeatable. Use this for groups, not individuals (use Find User by Handle/ID for people). Matches case-insensitively on the handle and errors if no group has that handle.",idempotent:!0},props:{handle:A.ShortText({displayName:"Group Handle",description:"Group handle without the leading @",required:!0})},async run(e){let t=B(e.auth),r=new wA.WebClient(t),n=e.propsValue.handle.replace("@","").toLowerCase(),a=(await r.usergroups.list()).usergroups?.find(s=>s.handle&&s.handle.toLowerCase()===n);if(!a)throw new Error(`User group with handle '@${n}' not found.`);return a}});var tV=wf({displayName:"Slack",description:"Channel-based messaging platform",minimumSupportedRelease:"0.82.0",logoUrl:"https://cdn.activepieces.com/pieces/slack.png",categories:["COMMUNICATION"],auth:N,events:{parseAndReply:i(({payload:e,server:t})=>{if(e.headers["content-type"]==="application/x-www-form-urlencoded"){if(e.body&&typeof e.body=="object"&&"payload"in e.body){let r=JSON.parse(e.body.payload);if(r.type==="block_actions"){let n=r.actions?.[0];n&&n.type==="button"&&n.value?.startsWith(t.publicUrl)&&Qt.sendRequest({url:n.value,method:"POST",body:r})}else if(r.type==="view_submission"||r.type==="view_closed"){let n=r;return{event:n.type,identifierValue:n.team.id}}}return{reply:{headers:{},body:{}}}}else{let r=e.body;return r.challenge?{reply:{body:r.challenge,headers:{}}}:{event:r?.event?.type,identifierValue:r.team_id}}},"parseAndReply"),verify:i(({webhookSecret:e,payload:t})=>{let r=t.headers["x-slack-request-timestamp"],n=t.headers["x-slack-signature"],o=`v0:${r}:${t.rawBody}`,a=TA.default.createHmac("sha256",e);a.update(o);let s=`v0=${a.digest("hex")}`;return n===s},"verify")},authors:["rita-gorokhod","AdamSelene","Abdallah-Alwarawreh","kishanprmr","MoShizzle","AbdulTheActivePiecer","khaledmashaly","abuaboud"],actions:[wx,ox,ax,nx,ix,tx,rx,cx,GS,dx,gx,Sx,sA,vA,mx,xA,xx,vx,Tx,Ix,HS,QS,nA,oA,gA,EA,PA,$h({baseUrl:i(()=>"https://slack.com/api","baseUrl"),auth:N,authMapping:i(async(e,t)=>{let r=e;if(t.useUserToken){let n=Kl(r);if(n)return{Authorization:`Bearer ${n}`}}return{Authorization:`Bearer ${B(r)}`}},"authMapping"),extraProps:{useUserToken:A.Checkbox({displayName:"Use user token",description:"Use user token instead of bot token",required:!0,defaultValue:!1})}})],triggers:[KS,JS,XS,Ox,eA,sx,ux,_x,ZS,tA,cA,pA,mA,_A]});0&&(module.exports={slack,slackAuth,slackOAuth2Auth});
75
+ /*! Bundled license information:
76
+
77
+ mime-types/index.js:
78
+ (*!
79
+ * mime-types
80
+ * Copyright(c) 2014 Jonathan Ong
81
+ * Copyright(c) 2015 Douglas Christopher Wilson
82
+ * MIT Licensed
83
+ *)
84
+
85
+ axios/dist/node/axios.cjs:
86
+ (*! Axios v1.18.0 Copyright (c) 2026 Matt Zabriskie and contributors *)
87
+
88
+ repeat-string/index.js:
89
+ (*!
90
+ * repeat-string <https://github.com/jonschlinkert/repeat-string>
91
+ *
92
+ * Copyright (c) 2014-2015, Jon Schlinkert.
93
+ * Licensed under the MIT License.
94
+ *)
95
+
96
+ is-buffer/index.js:
97
+ (*!
98
+ * Determine if an object is a Buffer
99
+ *
100
+ * @author Feross Aboukhadijeh <https://feross.org>
101
+ * @license MIT
102
+ *)
103
+ */