eve 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +33 -373
- package/README.md +5 -1
- package/dist/src/channel/auth/oidc.js +1 -1
- package/dist/src/channel/channel-address.d.ts +13 -2
- package/dist/src/channel/channel-address.js +1 -1
- package/dist/src/cli/commands/init-git.js +1 -1
- package/dist/src/cli/commands/init-onboarding.js +1 -0
- package/dist/src/cli/commands/init.js +1 -1
- package/dist/src/cli/commands/registry-setup-command.js +1 -1
- package/dist/src/cli/dev/command-options.js +1 -1
- package/dist/src/cli/dev/command.js +1 -1
- package/dist/src/cli/dev/run-interactive-ui.js +1 -1
- package/dist/src/cli/dev/tui/message-queue.js +2 -2
- package/dist/src/cli/dev/tui/prompt-command-handler.js +1 -1
- package/dist/src/cli/dev/tui/run-setup-flow-command.js +1 -0
- package/dist/src/cli/dev/tui/runner.js +3 -3
- package/dist/src/cli/dev/tui/setup-commands.js +1 -1
- package/dist/src/cli/dev/tui/setup-panel.js +1 -1
- package/dist/src/cli/dev/tui/startup-onboarding.js +1 -0
- package/dist/src/cli/dev/tui/startup.js +1 -1
- package/dist/src/cli/dev/tui/terminal-renderer.js +10 -10
- package/dist/src/cli/dev/tui/tui.js +1 -1
- package/dist/src/cli/run.js +1 -1
- package/dist/src/compiled/.vendor-stamp.json +17 -5
- package/dist/src/compiled/@ai-sdk/anthropic/index.js +2 -2
- package/dist/src/compiled/@ai-sdk/google/index.js +6 -6
- package/dist/src/compiled/@ai-sdk/mcp/index.js +1 -1
- package/dist/src/compiled/@ai-sdk/openai/index.js +4 -4
- package/dist/src/compiled/@ai-sdk/otel/index.js +3 -3
- package/dist/src/compiled/@ai-sdk/provider/index.js +1 -1
- package/dist/src/compiled/@chat-adapter/slack/index.js +46 -51
- package/dist/src/compiled/@eve/catalog/index.js +1 -1
- package/dist/src/compiled/@opentelemetry/api/index.js +1 -1
- package/dist/src/compiled/@opentelemetry/otlp-transformer/index.js +1 -1
- package/dist/src/compiled/@photon-ai/chat-adapter-imessage/index.js +61 -155
- package/dist/src/compiled/@vercel/agent-runs/delegation.js +1 -1
- package/dist/src/compiled/@vercel/agent-runs/index.js +1 -1
- package/dist/src/compiled/@vercel/agent-runs/otel.js +1 -1
- package/dist/src/compiled/@vercel/blob/index.js +11 -36
- package/dist/src/compiled/@vercel/connect/index.js +1 -63
- package/dist/src/compiled/@vercel/oidc/index.js +1 -63
- package/dist/src/compiled/@vercel/otel/index.js +1 -1
- package/dist/src/compiled/@vercel/queue/index.js +12 -43
- package/dist/src/compiled/@vercel/sandbox/index.js +13 -114
- package/dist/src/compiled/@vercel/schedules/index.js +2 -27
- package/dist/src/compiled/@workflow/core/index.js +1 -1
- package/dist/src/compiled/@workflow/core/private.js +1 -1
- package/dist/src/compiled/@workflow/core/runtime/helpers.js +1 -1
- package/dist/src/compiled/@workflow/core/runtime.js +1 -1
- package/dist/src/compiled/@workflow/core/serialization.js +1 -1
- package/dist/src/compiled/@workflow/core/workflow.js +1 -1
- package/dist/src/compiled/@workflow/world/index.js +1 -1
- package/dist/src/compiled/@workflow/world-local/index.js +6 -6
- package/dist/src/compiled/@workflow/world-vercel/index.js +36 -1
- package/dist/src/compiled/_chunks/{workflow/attribute-changes-BCNqKjr-.js → node/attribute-changes-9TDYamoB.js} +2 -2
- package/dist/src/compiled/_chunks/node/{auth-VDi2758t.js → auth-C6x8BkZ1.js} +2 -2
- package/dist/src/compiled/_chunks/node/chunk-5MU5Z6L3-DdGH_80b.js +1 -0
- package/dist/src/compiled/_chunks/node/chunk-WVKEO4WS-CcXj6Pbu.js +1 -0
- package/dist/src/compiled/_chunks/node/cjs-rUgqAJxb.js +1 -0
- package/dist/src/compiled/_chunks/node/delegation-nXIIGof2.js +1 -0
- package/dist/src/compiled/_chunks/node/delivery-ZirLueQB.js +1 -0
- package/dist/src/compiled/_chunks/node/dist-Ar8FFwah.js +1 -0
- package/dist/src/compiled/_chunks/node/dist-BlVGA8Bc.js +2 -0
- package/dist/src/compiled/_chunks/{workflow/dist-DkHcYt13.js → node/dist-C-W-BUim.js} +4 -4
- package/dist/src/compiled/_chunks/node/dist-CJqVJRdy.js +1 -0
- package/dist/src/compiled/_chunks/node/dist-Dff3FJd4.js +2 -0
- package/dist/src/compiled/_chunks/node/dist-SjWKZevK.js +1 -0
- package/dist/src/compiled/_chunks/node/dist-Y7k9L0_i.js +4 -0
- package/dist/src/compiled/_chunks/node/esm-BQbQSdEk.js +1 -0
- package/dist/src/compiled/_chunks/node/esm-V84xqwqm.js +7 -0
- package/dist/src/compiled/_chunks/{workflow/experimental-extraction-BE-Zv-lu.js → node/experimental-extraction-BddLppMC.js} +2 -2
- package/dist/src/compiled/_chunks/node/functions-CrSNYLMQ.js +2 -0
- package/dist/src/compiled/_chunks/{workflow/getMachineId-bsd-BDZRITBA-ByMis12M.js → node/getMachineId-bsd-BDZRITBA-DLL53RiE.js} +1 -1
- package/dist/src/compiled/_chunks/{workflow/getMachineId-darwin-YASTVJY7-BVAknd8k.js → node/getMachineId-darwin-YASTVJY7-Bt7YOVRS.js} +1 -1
- package/dist/src/compiled/_chunks/node/getMachineId-linux-NDQO5XIJ-35soE6HM.js +1 -0
- package/dist/src/compiled/_chunks/node/getMachineId-unsupported-4HKOBEHB-BIvYzL3H.js +1 -0
- package/dist/src/compiled/_chunks/{workflow/getMachineId-win-5LM2K5X3-Cj6CA3It.js → node/getMachineId-win-5LM2K5X3-DjHieqnK.js} +1 -1
- package/dist/src/compiled/_chunks/{workflow/helpers-D1eianSs.js → node/helpers-D0wk1DpF.js} +2 -2
- package/dist/src/compiled/_chunks/node/lib-kYMsDr_I.js +1 -0
- package/dist/src/compiled/_chunks/node/mcp-CpcK9m5J.js +5 -0
- package/dist/src/compiled/_chunks/node/ms-Cgt_-jny.js +1 -0
- package/dist/src/compiled/_chunks/node/node-http-BJoNWVEH.js +1 -0
- package/dist/src/compiled/_chunks/node/picocolors-BvkTgkT5.js +1 -0
- package/dist/src/compiled/_chunks/node/resume-hook-HOi86Mpt.js +1 -0
- package/dist/src/compiled/_chunks/node/resume-hook-MNXqhfUQ.js +1 -0
- package/dist/src/compiled/_chunks/node/retry-BsKFOQYI.js +1 -0
- package/dist/src/compiled/_chunks/node/run-iZaWiaIW.js +34 -0
- package/dist/src/compiled/_chunks/node/serialization-SOBM-hqQ.js +12 -0
- package/dist/src/compiled/_chunks/{workflow/signal-exit-fprSURbq.js → node/signal-exit-DUUCjAID.js} +1 -1
- package/dist/src/compiled/_chunks/node/sleep-kn6Idr6A.js +1 -0
- package/dist/src/compiled/_chunks/node/suspension-hooks-DGVf4ZTu.js +3 -0
- package/dist/src/compiled/_chunks/node/time-DlDfzITA.js +1 -0
- package/dist/src/compiled/_chunks/node/token-Bx_BK6UD.js +1 -0
- package/dist/src/compiled/_chunks/node/{token-DGjjdToG.js → token-C3MqBzSe.js} +1 -1
- package/dist/src/compiled/_chunks/node/token-C8MvBi8U.js +1 -0
- package/dist/src/compiled/_chunks/node/token-DCqq5r4M.js +1 -0
- package/dist/src/compiled/_chunks/node/token-d3oeMwv2.js +1 -0
- package/dist/src/compiled/_chunks/node/token-util-5HFX0QsS.js +1 -0
- package/dist/src/compiled/_chunks/node/token-util-B-3umg_h.js +59 -0
- package/dist/src/compiled/_chunks/node/token-util-BdFM23p-.js +1 -0
- package/dist/src/compiled/_chunks/node/token-util-Bga2H4s7.js +1 -0
- package/dist/src/compiled/_chunks/node/token-util-C53yPU2Q.js +1 -0
- package/dist/src/compiled/_chunks/node/token-util-CMdCnQTY.js +1 -0
- package/dist/src/compiled/_chunks/node/token-util-DRfyDqhP.js +59 -0
- package/dist/src/compiled/_chunks/node/token-util-DdfuyqVB.js +1 -0
- package/dist/src/compiled/_chunks/node/token-util-S816eCve.js +22 -0
- package/dist/src/compiled/_chunks/node/token-util-hJVPA0w0.js +22 -0
- package/dist/src/compiled/_chunks/node/undici-CXX9Qrag.js +95 -0
- package/dist/src/compiled/_chunks/node/websocket-server-Usb_vYYJ.js +6 -0
- package/dist/src/compiled/_chunks/node/wrapper-B8sMmFpP.js +1 -0
- package/dist/src/compiled/_chunks/node/wrapper-DTBQ2yNI.js +1 -0
- package/dist/src/compiled/_chunks/node/ws-transport-BWQwR7zD.js +1 -0
- package/dist/src/compiled/_chunks/node/ws-transport-Dah44MMA.js +3 -0
- package/dist/src/compiled/jose/index.js +1 -1
- package/dist/src/eve-channel/request.js +1 -1
- package/dist/src/execution/dynamic-workflow/tool.js +1 -1
- package/dist/src/execution/session-inbox/handle.js +1 -1
- package/dist/src/execution/session-inbox/owner.js +1 -1
- package/dist/src/execution/session-inbox/resume.js +1 -1
- package/dist/src/execution/tools/agent-router-workflow.js +1 -1
- package/dist/src/harness/provider-tools.js +1 -1
- package/dist/src/harness/step/prompt.js +1 -1
- package/dist/src/instrumentation/decide.js +1 -1
- package/dist/src/instrumentation/dispatch.js +1 -1
- package/dist/src/instrumentation/lifecycle.d.ts +10 -1
- package/dist/src/instrumentation/runtime.js +1 -1
- package/dist/src/internal/application/stamped-package-version.js +1 -1
- package/dist/src/public/channels/slack/attachments.js +1 -1
- package/dist/src/public/channels/slack/connections.js +1 -1
- package/dist/src/public/channels/slack/renderers.d.ts +4 -2
- package/dist/src/public/channels/slack/slackChannel.js +1 -1
- package/dist/src/runtime/subagents/workflow.js +1 -1
- package/dist/src/setup/primitives/pm/npm.js +1 -1
- package/dist/src/setup/primitives/pm/run.js +1 -1
- package/dist/src/setup/registry-setup-client.js +2 -2
- package/dist/src/setup/registry-setup-protocol.js +1 -1
- package/dist/src/setup/scaffold/create/project.js +1 -1
- package/dist/src/setup/scaffold/update/channels.js +1 -1
- package/dist/src/shared/forwarded-trace-policy.d.ts +2 -0
- package/dist/src/shared/forwarded-trace-policy.js +1 -1
- package/dist/src/tools/provided/ask-question-workflow.js +1 -1
- package/dist/src/tools/provided/sleep-workflow.js +1 -1
- package/dist/src/tools/provided/web-search.d.ts +2 -2
- package/dist/src/tools/provided/web-search.js +1 -1
- package/docs/channels/slack/reference.mdx +1 -1
- package/docs/concepts/built-in-tools.md +3 -3
- package/docs/getting-started.mdx +5 -1
- package/docs/guides/client/index.mdx +1 -1
- package/docs/reference/typescript-api.md +1 -1
- package/package.json +3 -7
- package/dist/src/acp/adapter.d.ts +0 -28
- package/dist/src/acp/line-limit.d.ts +0 -3
- package/dist/src/acp/server.d.ts +0 -21
- package/dist/src/ai/decision-adapter.d.ts +0 -15
- package/dist/src/approval/agent.d.ts +0 -24
- package/dist/src/approval/requester-only.d.ts +0 -11
- package/dist/src/channel/adapter-context.d.ts +0 -9
- package/dist/src/channel/auth/http-basic.d.ts +0 -8
- package/dist/src/channel/auth/jwt-ecdsa.d.ts +0 -8
- package/dist/src/channel/auth/jwt-hmac.d.ts +0 -8
- package/dist/src/channel/auth/oidc.d.ts +0 -8
- package/dist/src/channel/auth/result.d.ts +0 -3
- package/dist/src/channel/auth/token-claims.d.ts +0 -17
- package/dist/src/channel/auth/types.d.ts +0 -108
- package/dist/src/channel/auth/vercel-oidc-project.d.ts +0 -12
- package/dist/src/channel/conversation-context.d.ts +0 -8
- package/dist/src/channel/delivery-idempotency.d.ts +0 -10
- package/dist/src/channel/delivery.d.ts +0 -8
- package/dist/src/channel/http.d.ts +0 -29
- package/dist/src/channel/inactive-prompt.d.ts +0 -46
- package/dist/src/channel/pending-authorization.d.ts +0 -4
- package/dist/src/channel/principal-identity.d.ts +0 -11
- package/dist/src/channel/relay-event.d.ts +0 -11
- package/dist/src/channel/resolved-prompt.d.ts +0 -22
- package/dist/src/channel/route-args.d.ts +0 -35
- package/dist/src/channel/schedule.d.ts +0 -78
- package/dist/src/channel/send-input.d.ts +0 -10
- package/dist/src/channel/session-callback.d.ts +0 -11
- package/dist/src/channel/tool-eligibility.d.ts +0 -38
- package/dist/src/cli/acp/command.d.ts +0 -24
- package/dist/src/cli/agent-command.d.ts +0 -6
- package/dist/src/cli/agent-detection.d.ts +0 -7
- package/dist/src/cli/application-command.d.ts +0 -13
- package/dist/src/cli/application-root.d.ts +0 -5
- package/dist/src/cli/banner.d.ts +0 -11
- package/dist/src/cli/commands/agent-instructions.d.ts +0 -34
- package/dist/src/cli/commands/build.d.ts +0 -15
- package/dist/src/cli/commands/deploy.d.ts +0 -27
- package/dist/src/cli/commands/extension-build.d.ts +0 -9
- package/dist/src/cli/commands/extension-init.d.ts +0 -26
- package/dist/src/cli/commands/info.d.ts +0 -68
- package/dist/src/cli/commands/init-agent-workspace.d.ts +0 -18
- package/dist/src/cli/commands/init-git.d.ts +0 -17
- package/dist/src/cli/commands/init-install.d.ts +0 -11
- package/dist/src/cli/commands/init-project.d.ts +0 -44
- package/dist/src/cli/commands/init-recovery.d.ts +0 -3
- package/dist/src/cli/commands/init-target.d.ts +0 -20
- package/dist/src/cli/commands/init-telemetry.d.ts +0 -7
- package/dist/src/cli/commands/init.d.ts +0 -28
- package/dist/src/cli/commands/integration-connect.d.ts +0 -35
- package/dist/src/cli/commands/integration-setup.d.ts +0 -18
- package/dist/src/cli/commands/link.d.ts +0 -25
- package/dist/src/cli/commands/logs-events.d.ts +0 -38
- package/dist/src/cli/commands/logs.d.ts +0 -64
- package/dist/src/cli/commands/preconditions.d.ts +0 -22
- package/dist/src/cli/commands/register-integration-commands.d.ts +0 -15
- package/dist/src/cli/commands/register-project-commands.d.ts +0 -13
- package/dist/src/cli/commands/register-registry-commands.d.ts +0 -13
- package/dist/src/cli/commands/registry-add-command.d.ts +0 -3
- package/dist/src/cli/commands/registry-declared-setups.d.ts +0 -43
- package/dist/src/cli/commands/registry-install-transaction.d.ts +0 -10
- package/dist/src/cli/commands/registry-metadata.d.ts +0 -99
- package/dist/src/cli/commands/registry-pnpm-build-policy-flow.d.ts +0 -30
- package/dist/src/cli/commands/registry-presentation.d.ts +0 -19
- package/dist/src/cli/commands/registry-project.d.ts +0 -23
- package/dist/src/cli/commands/registry-recovery.d.ts +0 -20
- package/dist/src/cli/commands/registry-setup-command.d.ts +0 -21
- package/dist/src/cli/commands/registry.d.ts +0 -98
- package/dist/src/cli/commands/set.d.ts +0 -18
- package/dist/src/cli/commands/setup-answers.d.ts +0 -2
- package/dist/src/cli/commands/setup-headless.d.ts +0 -97
- package/dist/src/cli/commands/trace-detail.d.ts +0 -34
- package/dist/src/cli/commands/trace.d.ts +0 -18
- package/dist/src/cli/commands/vercel-non-interactive.d.ts +0 -37
- package/dist/src/cli/dev/boot-progress.d.ts +0 -3
- package/dist/src/cli/dev/command-options.d.ts +0 -27
- package/dist/src/cli/dev/command.d.ts +0 -34
- package/dist/src/cli/dev/console-records-preload.d.ts +0 -1
- package/dist/src/cli/dev/console-records.d.ts +0 -17
- package/dist/src/cli/dev/diagnostic-dump.d.ts +0 -58
- package/dist/src/cli/dev/diagnostic-sink.d.ts +0 -39
- package/dist/src/cli/dev/diagnostics.d.ts +0 -42
- package/dist/src/cli/dev/environment.d.ts +0 -20
- package/dist/src/cli/dev/local-server-child.d.ts +0 -1
- package/dist/src/cli/dev/local-server-cleanup.d.ts +0 -5
- package/dist/src/cli/dev/local-server-process.d.ts +0 -35
- package/dist/src/cli/dev/remote-print.d.ts +0 -8
- package/dist/src/cli/dev/run-interactive-ui.d.ts +0 -22
- package/dist/src/cli/dev/tui/agent-header.d.ts +0 -15
- package/dist/src/cli/dev/tui/argument-typeahead.d.ts +0 -36
- package/dist/src/cli/dev/tui/blocks.d.ts +0 -148
- package/dist/src/cli/dev/tui/clipboard.d.ts +0 -17
- package/dist/src/cli/dev/tui/command-typeahead.d.ts +0 -54
- package/dist/src/cli/dev/tui/conversation-view.d.ts +0 -59
- package/dist/src/cli/dev/tui/dev-rebuild-status.d.ts +0 -22
- package/dist/src/cli/dev/tui/diagnostic-presentation.d.ts +0 -17
- package/dist/src/cli/dev/tui/errors.d.ts +0 -14
- package/dist/src/cli/dev/tui/file-content-cache.d.ts +0 -41
- package/dist/src/cli/dev/tui/flow-drawer.d.ts +0 -15
- package/dist/src/cli/dev/tui/line-diff.d.ts +0 -24
- package/dist/src/cli/dev/tui/line-editor.d.ts +0 -124
- package/dist/src/cli/dev/tui/log-display-mode.d.ts +0 -7
- package/dist/src/cli/dev/tui/markdown.d.ts +0 -14
- package/dist/src/cli/dev/tui/mcp-connection-status.d.ts +0 -20
- package/dist/src/cli/dev/tui/message-queue.d.ts +0 -33
- package/dist/src/cli/dev/tui/prompt-command-handler.d.ts +0 -18
- package/dist/src/cli/dev/tui/prompt-commands.d.ts +0 -266
- package/dist/src/cli/dev/tui/prompt-placeholder.d.ts +0 -2
- package/dist/src/cli/dev/tui/provider-picker.d.ts +0 -65
- package/dist/src/cli/dev/tui/question-panel.d.ts +0 -31
- package/dist/src/cli/dev/tui/rail.d.ts +0 -15
- package/dist/src/cli/dev/tui/registry-result-message.d.ts +0 -27
- package/dist/src/cli/dev/tui/remote-auth-result.d.ts +0 -26
- package/dist/src/cli/dev/tui/remote-auth.d.ts +0 -33
- package/dist/src/cli/dev/tui/remote-connection-probe.d.ts +0 -12
- package/dist/src/cli/dev/tui/remote-connection-types.d.ts +0 -69
- package/dist/src/cli/dev/tui/remote-connection.d.ts +0 -3
- package/dist/src/cli/dev/tui/remote-startup.d.ts +0 -10
- package/dist/src/cli/dev/tui/runner.d.ts +0 -322
- package/dist/src/cli/dev/tui/setup-commands.d.ts +0 -72
- package/dist/src/cli/dev/tui/setup-flow.d.ts +0 -133
- package/dist/src/cli/dev/tui/setup-issues.d.ts +0 -66
- package/dist/src/cli/dev/tui/setup-panel.d.ts +0 -182
- package/dist/src/cli/dev/tui/setup-selection-input.d.ts +0 -52
- package/dist/src/cli/dev/tui/startup.d.ts +0 -20
- package/dist/src/cli/dev/tui/status-line.d.ts +0 -39
- package/dist/src/cli/dev/tui/stranded-session.d.ts +0 -9
- package/dist/src/cli/dev/tui/stream-format.d.ts +0 -158
- package/dist/src/cli/dev/tui/target.d.ts +0 -11
- package/dist/src/cli/dev/tui/task-activity.d.ts +0 -42
- package/dist/src/cli/dev/tui/task-records.d.ts +0 -17
- package/dist/src/cli/dev/tui/terminal-background.d.ts +0 -23
- package/dist/src/cli/dev/tui/terminal-renderer.d.ts +0 -148
- package/dist/src/cli/dev/tui/terminal-tool-part.d.ts +0 -2
- package/dist/src/cli/dev/tui/test/fake-eve-server.d.ts +0 -34
- package/dist/src/cli/dev/tui/test/fake-setup-flow-renderer.d.ts +0 -2
- package/dist/src/cli/dev/tui/test/index.d.ts +0 -15
- package/dist/src/cli/dev/tui/test/mock-terminal.d.ts +0 -51
- package/dist/src/cli/dev/tui/theme.d.ts +0 -127
- package/dist/src/cli/dev/tui/tool-block-groups.d.ts +0 -38
- package/dist/src/cli/dev/tui/tool-format.d.ts +0 -31
- package/dist/src/cli/dev/tui/tool-presentation.d.ts +0 -95
- package/dist/src/cli/dev/tui/tool-rows.d.ts +0 -16
- package/dist/src/cli/dev/tui/traces/trace-content.d.ts +0 -24
- package/dist/src/cli/dev/tui/traces/trace-conversation.d.ts +0 -61
- package/dist/src/cli/dev/tui/traces/trace-store.d.ts +0 -27
- package/dist/src/cli/dev/tui/traces/trace-surfaces.d.ts +0 -40
- package/dist/src/cli/dev/tui/traces/trace-view.d.ts +0 -56
- package/dist/src/cli/dev/tui/traces/trace-viewer-session.d.ts +0 -55
- package/dist/src/cli/dev/tui/traces/trace-viewer-state.d.ts +0 -109
- package/dist/src/cli/dev/tui/transcript-parts.d.ts +0 -85
- package/dist/src/cli/dev/tui/transcript.d.ts +0 -43
- package/dist/src/cli/dev/tui/tui-prompter.d.ts +0 -20
- package/dist/src/cli/dev/tui/tui.d.ts +0 -37
- package/dist/src/cli/dev/tui/turn-clock.d.ts +0 -21
- package/dist/src/cli/dev/tui/types.d.ts +0 -70
- package/dist/src/cli/dev/tui/vercel-status.d.ts +0 -44
- package/dist/src/cli/dev/tui/vercel-trusted-sources-policy.d.ts +0 -22
- package/dist/src/cli/dev/tui/vercel-trusted-sources.d.ts +0 -48
- package/dist/src/cli/dev/ui-options.d.ts +0 -22
- package/dist/src/cli/dev/url-target.d.ts +0 -15
- package/dist/src/cli/dev/url.d.ts +0 -4
- package/dist/src/cli/dev/wait-for-ui.d.ts +0 -13
- package/dist/src/cli/format-elapsed.d.ts +0 -2
- package/dist/src/cli/option-parsers.d.ts +0 -17
- package/dist/src/cli/run.d.ts +0 -38
- package/dist/src/cli/shutdown.d.ts +0 -25
- package/dist/src/cli/telemetry/command.d.ts +0 -9
- package/dist/src/cli/telemetry/flush.d.ts +0 -2
- package/dist/src/cli/telemetry/identity.d.ts +0 -13
- package/dist/src/cli/telemetry/index.d.ts +0 -37
- package/dist/src/cli/telemetry/preference.d.ts +0 -10
- package/dist/src/cli/ui/alt-screen.d.ts +0 -49
- package/dist/src/cli/ui/live-region.d.ts +0 -63
- package/dist/src/cli/ui/live-row.d.ts +0 -22
- package/dist/src/cli/ui/output.d.ts +0 -48
- package/dist/src/cli/ui/progress-pulse.d.ts +0 -10
- package/dist/src/cli/ui/terminal-text.d.ts +0 -36
- package/dist/src/cli/vercel-service-output.d.ts +0 -4
- package/dist/src/client/abort-signal.d.ts +0 -2
- package/dist/src/client/agent-base-url.d.ts +0 -4
- package/dist/src/client/agent-info-schema.d.ts +0 -1356
- package/dist/src/client/agent-stream-follower.d.ts +0 -17
- package/dist/src/client/conversation-client.d.ts +0 -51
- package/dist/src/client/delivery-events.d.ts +0 -3
- package/dist/src/client/file-parts.d.ts +0 -23
- package/dist/src/client/health-schema.d.ts +0 -7
- package/dist/src/client/messages.d.ts +0 -30
- package/dist/src/client/ndjson.d.ts +0 -18
- package/dist/src/client/open-stream.d.ts +0 -96
- package/dist/src/client/optimistic-message-submissions.d.ts +0 -15
- package/dist/src/client/session-controls.d.ts +0 -34
- package/dist/src/client/session-event-stream.d.ts +0 -19
- package/dist/src/client/session-store-helpers.d.ts +0 -8
- package/dist/src/client/stream-version.d.ts +0 -5
- package/dist/src/client/url.d.ts +0 -13
- package/dist/src/compiled/@agentclientprotocol/sdk/core/app-handlers.d.ts +0 -28
- package/dist/src/compiled/@agentclientprotocol/sdk/core/connection-access.d.ts +0 -23
- package/dist/src/compiled/@agentclientprotocol/sdk/core/jsonrpc.d.ts +0 -576
- package/dist/src/compiled/@agentclientprotocol/sdk/core/stream-limits.d.ts +0 -15
- package/dist/src/compiled/@agentclientprotocol/sdk/core/stream.d.ts +0 -33
- package/dist/src/compiled/@agentclientprotocol/sdk/index.d.ts +0 -1
- package/dist/src/compiled/@agentclientprotocol/sdk/transports/connection.d.ts +0 -273
- package/dist/src/compiled/@agentclientprotocol/sdk/v1/schema/guards.gen.d.ts +0 -183
- package/dist/src/compiled/@agentclientprotocol/sdk/v1/schema/index.d.ts +0 -33
- package/dist/src/compiled/@agentclientprotocol/sdk/v1/schema/types.gen.d.ts +0 -4093
- package/dist/src/compiled/@agentclientprotocol/sdk/v1/stable/acp.d.ts +0 -812
- package/dist/src/compiled/@ai-sdk/anthropic/index.d.ts +0 -1891
- package/dist/src/compiled/@ai-sdk/google/index.d.ts +0 -961
- package/dist/src/compiled/@ai-sdk/mcp/index.d.ts +0 -1439
- package/dist/src/compiled/@ai-sdk/openai/index.d.ts +0 -2196
- package/dist/src/compiled/@ai-sdk/otel/index.d.ts +0 -1059
- package/dist/src/compiled/@ai-sdk/provider/index.d.ts +0 -9624
- package/dist/src/compiled/@ai-sdk/provider-utils/index.d.ts +0 -3364
- package/dist/src/compiled/@cfworker/json-schema/index.d.ts +0 -18
- package/dist/src/compiled/@chat-adapter/slack/_chat-adapter-shared.d.ts +0 -10
- package/dist/src/compiled/@chat-adapter/slack/_slack-web-api.d.ts +0 -8
- package/dist/src/compiled/@chat-adapter/slack/blocks.d.ts +0 -205
- package/dist/src/compiled/@chat-adapter/slack/format.d.ts +0 -33
- package/dist/src/compiled/@chat-adapter/slack/index.d.ts +0 -1437
- package/dist/src/compiled/@chat-adapter/state-memory/index.d.ts +0 -50
- package/dist/src/compiled/@chat-adapter/twilio/format.d.ts +0 -12
- package/dist/src/compiled/@chat-adapter/twilio/index.d.ts +0 -166
- package/dist/src/compiled/@clack/core/index.d.ts +0 -505
- package/dist/src/compiled/@modelcontextprotocol/server/index.d.ts +0 -180
- package/dist/src/compiled/@opentelemetry/otlp-transformer/index.d.ts +0 -3
- package/dist/src/compiled/@vercel/agent-runs/adapters/agent-transport.d.ts +0 -8
- package/dist/src/compiled/@vercel/agent-runs/adapters/ai-sdk-payload.d.ts +0 -15
- package/dist/src/compiled/@vercel/agent-runs/adapters/ai-sdk-telemetry.d.ts +0 -14
- package/dist/src/compiled/@vercel/agent-runs/adapters/otel-error.d.ts +0 -3
- package/dist/src/compiled/@vercel/agent-runs/adapters/serialization.d.ts +0 -36
- package/dist/src/compiled/@vercel/agent-runs/ai-sdk.d.ts +0 -7
- package/dist/src/compiled/@vercel/agent-runs/core/activation.d.ts +0 -3
- package/dist/src/compiled/@vercel/agent-runs/core/attributes.d.ts +0 -14
- package/dist/src/compiled/@vercel/agent-runs/core/content-policy.d.ts +0 -36
- package/dist/src/compiled/@vercel/agent-runs/core/context.d.ts +0 -3
- package/dist/src/compiled/@vercel/agent-runs/core/delegation.d.ts +0 -13
- package/dist/src/compiled/@vercel/agent-runs/core/snapshot.d.ts +0 -7
- package/dist/src/compiled/@vercel/agent-runs/core/span-kinds.d.ts +0 -12
- package/dist/src/compiled/@vercel/agent-runs/core/writer.d.ts +0 -15
- package/dist/src/compiled/@vercel/agent-runs/delegation.d.ts +0 -2
- package/dist/src/compiled/@vercel/agent-runs/otel.d.ts +0 -12
- package/dist/src/compiled/@vercel/blob/client.d.ts +0 -488
- package/dist/src/compiled/@vercel/blob/create-folder-DoYODb65.d.ts +0 -487
- package/dist/src/compiled/@vercel/blob/index.d.ts +0 -633
- package/dist/src/compiled/@vercel/connect/authorization-details.d.ts +0 -11
- package/dist/src/compiled/@vercel/connect/authorization.d.ts +0 -47
- package/dist/src/compiled/@vercel/connect/connector.d.ts +0 -32
- package/dist/src/compiled/@vercel/connect/index.d.ts +0 -5
- package/dist/src/compiled/@vercel/connect/installation.d.ts +0 -48
- package/dist/src/compiled/@vercel/connect/token.d.ts +0 -147
- package/dist/src/compiled/@vercel/detect-agent/index.d.ts +0 -20
- package/dist/src/compiled/@vercel/oidc/index.d.ts +0 -21
- package/dist/src/compiled/@vercel/otel/index.d.ts +0 -76
- package/dist/src/compiled/@vercel/queue/index.d.ts +0 -1439
- package/dist/src/compiled/@vercel/sandbox/_async-retry.d.ts +0 -8
- package/dist/src/compiled/@vercel/sandbox/_workflow-serde.d.ts +0 -5
- package/dist/src/compiled/@vercel/sandbox/api-client/api-client.d.ts +0 -1914
- package/dist/src/compiled/@vercel/sandbox/api-client/api-error.d.ts +0 -29
- package/dist/src/compiled/@vercel/sandbox/api-client/base-client.d.ts +0 -39
- package/dist/src/compiled/@vercel/sandbox/api-client/file-writer.d.ts +0 -66
- package/dist/src/compiled/@vercel/sandbox/api-client/index.d.ts +0 -2
- package/dist/src/compiled/@vercel/sandbox/api-client/validators.d.ts +0 -951
- package/dist/src/compiled/@vercel/sandbox/api-client/with-retry.d.ts +0 -10
- package/dist/src/compiled/@vercel/sandbox/auth/error.d.ts +0 -15
- package/dist/src/compiled/@vercel/sandbox/auth/file.d.ts +0 -18
- package/dist/src/compiled/@vercel/sandbox/auth/index.d.ts +0 -6
- package/dist/src/compiled/@vercel/sandbox/auth/oauth.d.ts +0 -111
- package/dist/src/compiled/@vercel/sandbox/auth/poll-for-token.d.ts +0 -28
- package/dist/src/compiled/@vercel/sandbox/auth/project.d.ts +0 -40
- package/dist/src/compiled/@vercel/sandbox/command.d.ts +0 -370
- package/dist/src/compiled/@vercel/sandbox/constants.d.ts +0 -15
- package/dist/src/compiled/@vercel/sandbox/drive.d.ts +0 -201
- package/dist/src/compiled/@vercel/sandbox/execution-context.d.ts +0 -116
- package/dist/src/compiled/@vercel/sandbox/filesystem.d.ts +0 -258
- package/dist/src/compiled/@vercel/sandbox/index.d.ts +0 -15
- package/dist/src/compiled/@vercel/sandbox/network-policy.d.ts +0 -200
- package/dist/src/compiled/@vercel/sandbox/proxy.d.ts +0 -55
- package/dist/src/compiled/@vercel/sandbox/sandbox-user.d.ts +0 -211
- package/dist/src/compiled/@vercel/sandbox/sandbox.d.ts +0 -1330
- package/dist/src/compiled/@vercel/sandbox/session.d.ts +0 -461
- package/dist/src/compiled/@vercel/sandbox/snapshot.d.ts +0 -238
- package/dist/src/compiled/@vercel/sandbox/utils/get-credentials.d.ts +0 -21
- package/dist/src/compiled/@vercel/sandbox/utils/network-policy.d.ts +0 -27
- package/dist/src/compiled/@vercel/sandbox/utils/paginator.d.ts +0 -16
- package/dist/src/compiled/@vercel/sandbox/utils/pipe-stdin.d.ts +0 -19
- package/dist/src/compiled/@vercel/sandbox/utils/resolveSignal.d.ts +0 -15
- package/dist/src/compiled/@vercel/sandbox/utils/sandbox-snapshot.d.ts +0 -11
- package/dist/src/compiled/@vercel/sandbox/utils/types.d.ts +0 -11
- package/dist/src/compiled/@vercel/schedules/index.d.ts +0 -290
- package/dist/src/compiled/@vercel/sdk/index.d.ts +0 -41
- package/dist/src/compiled/@workflow/core/_devalue.d.ts +0 -8
- package/dist/src/compiled/@workflow/core/_ms.d.ts +0 -4
- package/dist/src/compiled/@workflow/core/_quickjs-wasi.d.ts +0 -11
- package/dist/src/compiled/@workflow/core/_workflow-serde.d.ts +0 -5
- package/dist/src/compiled/@workflow/core/_workflow-utils.d.ts +0 -8
- package/dist/src/compiled/@workflow/core/_workflow-vm.d.ts +0 -119
- package/dist/src/compiled/@workflow/core/attribute-changes.d.ts +0 -6
- package/dist/src/compiled/@workflow/core/capabilities.d.ts +0 -107
- package/dist/src/compiled/@workflow/core/capture-stack.d.ts +0 -16
- package/dist/src/compiled/@workflow/core/class-serialization.d.ts +0 -63
- package/dist/src/compiled/@workflow/core/classify-error.d.ts +0 -35
- package/dist/src/compiled/@workflow/core/context-errors.d.ts +0 -27
- package/dist/src/compiled/@workflow/core/context-violation-error.d.ts +0 -97
- package/dist/src/compiled/@workflow/core/create-hook.d.ts +0 -296
- package/dist/src/compiled/@workflow/core/define-hook.d.ts +0 -68
- package/dist/src/compiled/@workflow/core/describe-error.d.ts +0 -70
- package/dist/src/compiled/@workflow/core/encryption.d.ts +0 -79
- package/dist/src/compiled/@workflow/core/events-consumer.d.ts +0 -458
- package/dist/src/compiled/@workflow/core/flushable-stream.d.ts +0 -180
- package/dist/src/compiled/@workflow/core/global.d.ts +0 -100
- package/dist/src/compiled/@workflow/core/index.d.ts +0 -21
- package/dist/src/compiled/@workflow/core/log-format.d.ts +0 -29
- package/dist/src/compiled/@workflow/core/logger.d.ts +0 -30
- package/dist/src/compiled/@workflow/core/private.d.ts +0 -364
- package/dist/src/compiled/@workflow/core/replay-divergence.d.ts +0 -25
- package/dist/src/compiled/@workflow/core/replay-payload-cache.d.ts +0 -78
- package/dist/src/compiled/@workflow/core/runtime/after-terminal-write.d.ts +0 -33
- package/dist/src/compiled/@workflow/core/runtime/child-run-completion-notify.d.ts +0 -36
- package/dist/src/compiled/@workflow/core/runtime/child-run-completion.d.ts +0 -46
- package/dist/src/compiled/@workflow/core/runtime/compute-instance.d.ts +0 -13
- package/dist/src/compiled/@workflow/core/runtime/constants.d.ts +0 -321
- package/dist/src/compiled/@workflow/core/runtime/delivery.d.ts +0 -270
- package/dist/src/compiled/@workflow/core/runtime/deployment-guard.d.ts +0 -107
- package/dist/src/compiled/@workflow/core/runtime/dynamic-workflow.d.ts +0 -182
- package/dist/src/compiled/@workflow/core/runtime/event-limit-warning.d.ts +0 -32
- package/dist/src/compiled/@workflow/core/runtime/get-port-lazy.d.ts +0 -25
- package/dist/src/compiled/@workflow/core/runtime/get-world-lazy.d.ts +0 -23
- package/dist/src/compiled/@workflow/core/runtime/helpers.d.ts +0 -549
- package/dist/src/compiled/@workflow/core/runtime/hook-creation.d.ts +0 -45
- package/dist/src/compiled/@workflow/core/runtime/hook-wake.d.ts +0 -124
- package/dist/src/compiled/@workflow/core/runtime/invocations.d.ts +0 -35
- package/dist/src/compiled/@workflow/core/runtime/lifecycle-hooks.d.ts +0 -97
- package/dist/src/compiled/@workflow/core/runtime/out-of-band-observation.d.ts +0 -191
- package/dist/src/compiled/@workflow/core/runtime/queue-auth.d.ts +0 -53
- package/dist/src/compiled/@workflow/core/runtime/quickjs-assets.generated.d.ts +0 -21
- package/dist/src/compiled/@workflow/core/runtime/quickjs-delivery-shared.d.ts +0 -126
- package/dist/src/compiled/@workflow/core/runtime/quickjs-log-view.d.ts +0 -211
- package/dist/src/compiled/@workflow/core/runtime/quickjs-pending-ops.d.ts +0 -181
- package/dist/src/compiled/@workflow/core/runtime/quickjs-runtime.d.ts +0 -356
- package/dist/src/compiled/@workflow/core/runtime/quickjs-serde.d.ts +0 -107
- package/dist/src/compiled/@workflow/core/runtime/quickjs-snapshot-codec.d.ts +0 -74
- package/dist/src/compiled/@workflow/core/runtime/replay-budget.d.ts +0 -104
- package/dist/src/compiled/@workflow/core/runtime/replay-recovery-reporter.d.ts +0 -36
- package/dist/src/compiled/@workflow/core/runtime/resume-hook.d.ts +0 -167
- package/dist/src/compiled/@workflow/core/runtime/resume-latency.d.ts +0 -150
- package/dist/src/compiled/@workflow/core/runtime/run-id-time.d.ts +0 -19
- package/dist/src/compiled/@workflow/core/runtime/run-spec-routing.d.ts +0 -52
- package/dist/src/compiled/@workflow/core/runtime/run-spec-version.d.ts +0 -20
- package/dist/src/compiled/@workflow/core/runtime/run.d.ts +0 -221
- package/dist/src/compiled/@workflow/core/runtime/runs.d.ts +0 -166
- package/dist/src/compiled/@workflow/core/runtime/spec8/constants.d.ts +0 -129
- package/dist/src/compiled/@workflow/core/runtime/spec8/count-step-started-events.d.ts +0 -52
- package/dist/src/compiled/@workflow/core/runtime/spec8/delivery.d.ts +0 -6
- package/dist/src/compiled/@workflow/core/runtime/spec8/inline-steps-in-flight.d.ts +0 -58
- package/dist/src/compiled/@workflow/core/runtime/spec8/open-hook-wait-state.d.ts +0 -55
- package/dist/src/compiled/@workflow/core/runtime/spec8/quickjs-entrypoint.d.ts +0 -110
- package/dist/src/compiled/@workflow/core/runtime/spec8/step-executor.d.ts +0 -233
- package/dist/src/compiled/@workflow/core/runtime/spec8/step-ownership.d.ts +0 -72
- package/dist/src/compiled/@workflow/core/runtime/spec8/step-single-flight.d.ts +0 -34
- package/dist/src/compiled/@workflow/core/runtime/spec8/suspension-handler.d.ts +0 -352
- package/dist/src/compiled/@workflow/core/runtime/spec9/consume-after-commit.d.ts +0 -37
- package/dist/src/compiled/@workflow/core/runtime/spec9/consumed-position.d.ts +0 -38
- package/dist/src/compiled/@workflow/core/runtime/spec9/creator-rules.d.ts +0 -220
- package/dist/src/compiled/@workflow/core/runtime/spec9/deadline.d.ts +0 -18
- package/dist/src/compiled/@workflow/core/runtime/spec9/delivery.d.ts +0 -17
- package/dist/src/compiled/@workflow/core/runtime/spec9/fence-refusals.d.ts +0 -20
- package/dist/src/compiled/@workflow/core/runtime/spec9/in-band-writer.d.ts +0 -282
- package/dist/src/compiled/@workflow/core/runtime/spec9/live-feed.d.ts +0 -197
- package/dist/src/compiled/@workflow/core/runtime/spec9/log-index.d.ts +0 -74
- package/dist/src/compiled/@workflow/core/runtime/spec9/log-state.d.ts +0 -155
- package/dist/src/compiled/@workflow/core/runtime/spec9/quickjs-entrypoint.d.ts +0 -198
- package/dist/src/compiled/@workflow/core/runtime/spec9/read-deadline.d.ts +0 -46
- package/dist/src/compiled/@workflow/core/runtime/spec9/run-ahead.d.ts +0 -74
- package/dist/src/compiled/@workflow/core/runtime/spec9/step-delivery.d.ts +0 -146
- package/dist/src/compiled/@workflow/core/runtime/spec9/step-executor.d.ts +0 -225
- package/dist/src/compiled/@workflow/core/runtime/spec9/step-handler.d.ts +0 -92
- package/dist/src/compiled/@workflow/core/runtime/spec9/step-message.d.ts +0 -42
- package/dist/src/compiled/@workflow/core/runtime/spec9/step-retention.d.ts +0 -44
- package/dist/src/compiled/@workflow/core/runtime/spec9/step-single-flight.d.ts +0 -19
- package/dist/src/compiled/@workflow/core/runtime/spec9/step-wait-creation.d.ts +0 -162
- package/dist/src/compiled/@workflow/core/runtime/spec9/suspension-handler.d.ts +0 -125
- package/dist/src/compiled/@workflow/core/runtime/spec9/wait-timer.d.ts +0 -143
- package/dist/src/compiled/@workflow/core/runtime/start-hook-binding.d.ts +0 -51
- package/dist/src/compiled/@workflow/core/runtime/start-hook-delivery.d.ts +0 -47
- package/dist/src/compiled/@workflow/core/runtime/start-hook-holder.d.ts +0 -50
- package/dist/src/compiled/@workflow/core/runtime/start.d.ts +0 -308
- package/dist/src/compiled/@workflow/core/runtime/step-latency.d.ts +0 -221
- package/dist/src/compiled/@workflow/core/runtime/step-single-flight.d.ts +0 -8
- package/dist/src/compiled/@workflow/core/runtime/step-streams.d.ts +0 -6
- package/dist/src/compiled/@workflow/core/runtime/suspension-hooks.d.ts +0 -84
- package/dist/src/compiled/@workflow/core/runtime/unserializable-step.d.ts +0 -34
- package/dist/src/compiled/@workflow/core/runtime/vm-mode.d.ts +0 -132
- package/dist/src/compiled/@workflow/core/runtime/wait-continuation.d.ts +0 -133
- package/dist/src/compiled/@workflow/core/runtime/wait-until.d.ts +0 -18
- package/dist/src/compiled/@workflow/core/runtime/world-compatibility.d.ts +0 -51
- package/dist/src/compiled/@workflow/core/runtime/world-init.d.ts +0 -50
- package/dist/src/compiled/@workflow/core/runtime/world.d.ts +0 -44
- package/dist/src/compiled/@workflow/core/runtime.d.ts +0 -26
- package/dist/src/compiled/@workflow/core/schemas.d.ts +0 -15
- package/dist/src/compiled/@workflow/core/sealed-box.d.ts +0 -167
- package/dist/src/compiled/@workflow/core/seeded-nanoid.d.ts +0 -2
- package/dist/src/compiled/@workflow/core/serialization/abort-stream.d.ts +0 -11
- package/dist/src/compiled/@workflow/core/serialization/client.d.ts +0 -17
- package/dist/src/compiled/@workflow/core/serialization/codec-devalue-vm.d.ts +0 -16
- package/dist/src/compiled/@workflow/core/serialization/codec-devalue.d.ts +0 -14
- package/dist/src/compiled/@workflow/core/serialization/codec.d.ts +0 -140
- package/dist/src/compiled/@workflow/core/serialization/compression.d.ts +0 -149
- package/dist/src/compiled/@workflow/core/serialization/encryption.d.ts +0 -134
- package/dist/src/compiled/@workflow/core/serialization/errors.d.ts +0 -34
- package/dist/src/compiled/@workflow/core/serialization/format.d.ts +0 -60
- package/dist/src/compiled/@workflow/core/serialization/hardened.d.ts +0 -164
- package/dist/src/compiled/@workflow/core/serialization/index.d.ts +0 -20
- package/dist/src/compiled/@workflow/core/serialization/reducers/class-vm.d.ts +0 -20
- package/dist/src/compiled/@workflow/core/serialization/reducers/class.d.ts +0 -11
- package/dist/src/compiled/@workflow/core/serialization/reducers/common-vm.d.ts +0 -15
- package/dist/src/compiled/@workflow/core/serialization/reducers/common.d.ts +0 -16
- package/dist/src/compiled/@workflow/core/serialization/reducers/step-function-vm.d.ts +0 -44
- package/dist/src/compiled/@workflow/core/serialization/reducers/step-function.d.ts +0 -35
- package/dist/src/compiled/@workflow/core/serialization/state-recovery.d.ts +0 -21
- package/dist/src/compiled/@workflow/core/serialization/state-refs.d.ts +0 -229
- package/dist/src/compiled/@workflow/core/serialization/step.d.ts +0 -17
- package/dist/src/compiled/@workflow/core/serialization/types.d.ts +0 -298
- package/dist/src/compiled/@workflow/core/serialization/workflow-vm.d.ts +0 -29
- package/dist/src/compiled/@workflow/core/serialization/workflow.d.ts +0 -29
- package/dist/src/compiled/@workflow/core/serialization-format.d.ts +0 -220
- package/dist/src/compiled/@workflow/core/serialization.d.ts +0 -641
- package/dist/src/compiled/@workflow/core/set-attributes.d.ts +0 -13
- package/dist/src/compiled/@workflow/core/set-error-stack.d.ts +0 -12
- package/dist/src/compiled/@workflow/core/sleep.d.ts +0 -33
- package/dist/src/compiled/@workflow/core/source-map.d.ts +0 -35
- package/dist/src/compiled/@workflow/core/state-resolver.d.ts +0 -44
- package/dist/src/compiled/@workflow/core/state.d.ts +0 -56
- package/dist/src/compiled/@workflow/core/step/context-storage.d.ts +0 -76
- package/dist/src/compiled/@workflow/core/step/get-closure-vars.d.ts +0 -9
- package/dist/src/compiled/@workflow/core/step/get-step-metadata.d.ts +0 -53
- package/dist/src/compiled/@workflow/core/step/get-workflow-metadata.d.ts +0 -7
- package/dist/src/compiled/@workflow/core/step/writable-stream.d.ts +0 -22
- package/dist/src/compiled/@workflow/core/step.d.ts +0 -4
- package/dist/src/compiled/@workflow/core/symbols.d.ts +0 -72
- package/dist/src/compiled/@workflow/core/telemetry/semantic-conventions.d.ts +0 -995
- package/dist/src/compiled/@workflow/core/telemetry.d.ts +0 -156
- package/dist/src/compiled/@workflow/core/test-support/append-only-world.d.ts +0 -458
- package/dist/src/compiled/@workflow/core/test-support/fence-snapshot.d.ts +0 -11
- package/dist/src/compiled/@workflow/core/test-support/load-events.d.ts +0 -8
- package/dist/src/compiled/@workflow/core/test-support/orchestrator-context.d.ts +0 -25
- package/dist/src/compiled/@workflow/core/test-support/orchestrator-harness.d.ts +0 -504
- package/dist/src/compiled/@workflow/core/types.d.ts +0 -43
- package/dist/src/compiled/@workflow/core/util.d.ts +0 -35
- package/dist/src/compiled/@workflow/core/version.d.ts +0 -2
- package/dist/src/compiled/@workflow/core/vm/index.d.ts +0 -17
- package/dist/src/compiled/@workflow/core/vm/script-cache.d.ts +0 -26
- package/dist/src/compiled/@workflow/core/vm/uint8array-base64.d.ts +0 -21
- package/dist/src/compiled/@workflow/core/vm/uuid.d.ts +0 -10
- package/dist/src/compiled/@workflow/core/workflow/abort-controller.d.ts +0 -65
- package/dist/src/compiled/@workflow/core/workflow/attribute-dispatcher.d.ts +0 -6
- package/dist/src/compiled/@workflow/core/workflow/create-hook.d.ts +0 -7
- package/dist/src/compiled/@workflow/core/workflow/define-hook.d.ts +0 -10
- package/dist/src/compiled/@workflow/core/workflow/get-workflow-metadata.d.ts +0 -32
- package/dist/src/compiled/@workflow/core/workflow/hook.d.ts +0 -15
- package/dist/src/compiled/@workflow/core/workflow/index.d.ts +0 -13
- package/dist/src/compiled/@workflow/core/workflow/set-attributes.d.ts +0 -72
- package/dist/src/compiled/@workflow/core/workflow/sleep.d.ts +0 -4
- package/dist/src/compiled/@workflow/core/workflow/world-init-stub.d.ts +0 -15
- package/dist/src/compiled/@workflow/core/workflow/writable-stream.d.ts +0 -3
- package/dist/src/compiled/@workflow/core/workflow.d.ts +0 -2
- package/dist/src/compiled/@workflow/errors/_ms.d.ts +0 -4
- package/dist/src/compiled/@workflow/errors/ansi.d.ts +0 -57
- package/dist/src/compiled/@workflow/errors/error-codes.d.ts +0 -29
- package/dist/src/compiled/@workflow/errors/index.d.ts +0 -842
- package/dist/src/compiled/@workflow/serde/index.d.ts +0 -30
- package/dist/src/compiled/@workflow/world/analytics.d.ts +0 -275
- package/dist/src/compiled/@workflow/world/attributes-validation.d.ts +0 -101
- package/dist/src/compiled/@workflow/world/attributes.d.ts +0 -18
- package/dist/src/compiled/@workflow/world/capabilities.d.ts +0 -37
- package/dist/src/compiled/@workflow/world/env-config.d.ts +0 -76
- package/dist/src/compiled/@workflow/world/event-metadata.d.ts +0 -132
- package/dist/src/compiled/@workflow/world/events.d.ts +0 -1292
- package/dist/src/compiled/@workflow/world/hooks.d.ts +0 -147
- package/dist/src/compiled/@workflow/world/index.d.ts +0 -37
- package/dist/src/compiled/@workflow/world/interfaces.d.ts +0 -938
- package/dist/src/compiled/@workflow/world/invocation.d.ts +0 -19
- package/dist/src/compiled/@workflow/world/node-http-flag.d.ts +0 -41
- package/dist/src/compiled/@workflow/world/node-http.d.ts +0 -81
- package/dist/src/compiled/@workflow/world/queue.d.ts +0 -888
- package/dist/src/compiled/@workflow/world/recovery.d.ts +0 -36
- package/dist/src/compiled/@workflow/world/runs.d.ts +0 -314
- package/dist/src/compiled/@workflow/world/serialization.d.ts +0 -25
- package/dist/src/compiled/@workflow/world/shared.d.ts +0 -122
- package/dist/src/compiled/@workflow/world/slot-identity.d.ts +0 -90
- package/dist/src/compiled/@workflow/world/snapshots.d.ts +0 -64
- package/dist/src/compiled/@workflow/world/spec-version.d.ts +0 -257
- package/dist/src/compiled/@workflow/world/start-hook.d.ts +0 -177
- package/dist/src/compiled/@workflow/world/steps.d.ts +0 -82
- package/dist/src/compiled/@workflow/world/test-support/atomic-start-hook-conformance.d.ts +0 -109
- package/dist/src/compiled/@workflow/world/test-support/duplicate-event-fixtures.d.ts +0 -44
- package/dist/src/compiled/@workflow/world/test-support/in-band-fence-conformance.d.ts +0 -51
- package/dist/src/compiled/@workflow/world/ulid.d.ts +0 -50
- package/dist/src/compiled/@workflow/world/waits.d.ts +0 -21
- package/dist/src/compiled/@workflow/world-local/index.d.ts +0 -15
- package/dist/src/compiled/_chunks/node/retry-DrgXNq3T.js +0 -1
- package/dist/src/compiled/_chunks/node/token-util-Bjo0BJMz.js +0 -25
- package/dist/src/compiled/_chunks/node/token-util-Dz7NR_Tr.js +0 -1
- package/dist/src/compiled/_chunks/workflow/chunk-5MU5Z6L3-YIxCtn7b.js +0 -1
- package/dist/src/compiled/_chunks/workflow/chunk-WVKEO4WS-BAUmOByS.js +0 -1
- package/dist/src/compiled/_chunks/workflow/delegation-DLl-shwK.js +0 -1
- package/dist/src/compiled/_chunks/workflow/delivery-BrRGuXkQ.js +0 -1
- package/dist/src/compiled/_chunks/workflow/dist-74tor0XD.js +0 -66
- package/dist/src/compiled/_chunks/workflow/dist-DxRkCvK_.js +0 -4
- package/dist/src/compiled/_chunks/workflow/dist-M6hOHh4e.js +0 -1
- package/dist/src/compiled/_chunks/workflow/esm-B-KJJdww.js +0 -1
- package/dist/src/compiled/_chunks/workflow/functions-C4nAezjk.js +0 -60
- package/dist/src/compiled/_chunks/workflow/getMachineId-linux-NDQO5XIJ-Df0-OceL.js +0 -1
- package/dist/src/compiled/_chunks/workflow/getMachineId-unsupported-4HKOBEHB-Cp1dgBjO.js +0 -1
- package/dist/src/compiled/_chunks/workflow/mcp-BwOs3XEw.js +0 -5
- package/dist/src/compiled/_chunks/workflow/resume-hook-C7lViLeL.js +0 -1
- package/dist/src/compiled/_chunks/workflow/rolldown-runtime-Bdq61TOx.js +0 -1
- package/dist/src/compiled/_chunks/workflow/run-CBoukBsx.js +0 -34
- package/dist/src/compiled/_chunks/workflow/serialization-C5CU_DM9.js +0 -12
- package/dist/src/compiled/_chunks/workflow/sleep-c59AMqRs.js +0 -1
- package/dist/src/compiled/_chunks/workflow/suspension-hooks-CBo2hPl5.js +0 -3
- package/dist/src/compiled/_chunks/workflow/token-D3jqBt4E.js +0 -1
- package/dist/src/compiled/_chunks/workflow/token-DdYeX5AJ.js +0 -1
- package/dist/src/compiled/_chunks/workflow/token-lvcx9AkX.js +0 -1
- package/dist/src/compiled/_chunks/workflow/token-util-cvUzLGvF.js +0 -1
- package/dist/src/compiled/_chunks/workflow/undici-Dq-ari9z.js +0 -95
- package/dist/src/compiled/_chunks/workflow/wrapper-D2LPJXTV.js +0 -8
- package/dist/src/compiled/chokidar/index.d.ts +0 -33
- package/dist/src/compiled/commander/index.d.ts +0 -1116
- package/dist/src/compiled/croner/index.d.ts +0 -8
- package/dist/src/compiled/env-runner/index.d.ts +0 -74
- package/dist/src/compiled/env-runner/node-worker.d.ts +0 -1
- package/dist/src/compiled/eventsource-parser/stream/errors.d.ts +0 -35
- package/dist/src/compiled/eventsource-parser/stream/index.d.ts +0 -76
- package/dist/src/compiled/eventsource-parser/stream/types.d.ts +0 -130
- package/dist/src/compiled/immer/index.d.ts +0 -10
- package/dist/src/compiled/js-yaml/index.d.ts +0 -31
- package/dist/src/compiled/json-schema/index.d.ts +0 -749
- package/dist/src/compiled/jsonc-parser/index.d.ts +0 -32
- package/dist/src/compiled/just-secrets/index.d.ts +0 -20
- package/dist/src/compiled/marked/index.d.ts +0 -24
- package/dist/src/compiled/picocolors/index.d.ts +0 -55
- package/dist/src/compiled/run/index.d.ts +0 -388
- package/dist/src/compiled/semver/index.d.ts +0 -29
- package/dist/src/compiled/shadcn-registry/index.d.ts +0 -58
- package/dist/src/compiled/zod-validation-error/index.d.ts +0 -12
- package/dist/src/compiler/artifact-contract.d.ts +0 -43
- package/dist/src/compiler/artifacts.d.ts +0 -80
- package/dist/src/compiler/bundled-extension.d.ts +0 -23
- package/dist/src/compiler/channel-route-plan.d.ts +0 -12
- package/dist/src/compiler/compile-agent.d.ts +0 -58
- package/dist/src/compiler/connection-ownership.d.ts +0 -6
- package/dist/src/compiler/default-tool-policy.d.ts +0 -9
- package/dist/src/compiler/development-extensions.d.ts +0 -23
- package/dist/src/compiler/diagnostics.d.ts +0 -27
- package/dist/src/compiler/extension-compatibility.d.ts +0 -32
- package/dist/src/compiler/extension-mount-bindings.d.ts +0 -5
- package/dist/src/compiler/model-catalog.d.ts +0 -22
- package/dist/src/compiler/module-lifecycle.d.ts +0 -14
- package/dist/src/compiler/node-source-state.d.ts +0 -27
- package/dist/src/compiler/normalize-agent-config.d.ts +0 -14
- package/dist/src/compiler/normalize-channel.d.ts +0 -23
- package/dist/src/compiler/normalize-connection.d.ts +0 -30
- package/dist/src/compiler/normalize-definitions.d.ts +0 -8
- package/dist/src/compiler/normalize-helpers.d.ts +0 -48
- package/dist/src/compiler/normalize-instructions.d.ts +0 -32
- package/dist/src/compiler/normalize-manifest-helpers.d.ts +0 -45
- package/dist/src/compiler/normalize-manifest-types.d.ts +0 -28
- package/dist/src/compiler/normalize-manifest.d.ts +0 -5
- package/dist/src/compiler/normalize-sandbox.d.ts +0 -4
- package/dist/src/compiler/normalize-schedule-collection.d.ts +0 -10
- package/dist/src/compiler/normalize-schedule.d.ts +0 -15
- package/dist/src/compiler/normalize-skill.d.ts +0 -28
- package/dist/src/compiler/normalize-subagent.d.ts +0 -16
- package/dist/src/compiler/normalize-tool.d.ts +0 -36
- package/dist/src/compiler/project-sources.d.ts +0 -66
- package/dist/src/compiler/resolve-workspace-subagent.d.ts +0 -13
- package/dist/src/compiler/validate-artifact.d.ts +0 -17
- package/dist/src/compiler/workspace-resources.d.ts +0 -14
- package/dist/src/computer-use/extension/lib/command-failure.d.ts +0 -7
- package/dist/src/computer-use/extension/lib/computer-use-driver-source.d.ts +0 -12
- package/dist/src/computer-use/extension/lib/computer-use.d.ts +0 -38
- package/dist/src/computer-use/extension/lib/shell.d.ts +0 -1
- package/dist/src/connections/ownership.d.ts +0 -18
- package/dist/src/context/build-base-tool-context.d.ts +0 -14
- package/dist/src/context/build-callback-context.d.ts +0 -15
- package/dist/src/context/key-names.d.ts +0 -14
- package/dist/src/context/prewarm.d.ts +0 -27
- package/dist/src/context/provider.d.ts +0 -30
- package/dist/src/context/providers/connection-key.d.ts +0 -9
- package/dist/src/context/providers/connection.d.ts +0 -4
- package/dist/src/context/providers/sandbox.d.ts +0 -10
- package/dist/src/context/providers/session.d.ts +0 -21
- package/dist/src/context/providers/tool-stubs-key.d.ts +0 -8
- package/dist/src/context/run-step.d.ts +0 -23
- package/dist/src/context/schedule-collection-tools.d.ts +0 -23
- package/dist/src/context/serialize.d.ts +0 -19
- package/dist/src/context/turn-principals.d.ts +0 -12
- package/dist/src/context/workflow-step.d.ts +0 -3
- package/dist/src/definitions/agent-definitions.d.ts +0 -57
- package/dist/src/definitions/agent.d.ts +0 -7
- package/dist/src/definitions/approvals.d.ts +0 -6
- package/dist/src/definitions/builtins.d.ts +0 -6
- package/dist/src/definitions/catalog.d.ts +0 -7
- package/dist/src/definitions/combine.d.ts +0 -9
- package/dist/src/definitions/compiled-agent.d.ts +0 -12
- package/dist/src/definitions/connections.d.ts +0 -21
- package/dist/src/definitions/continuation.d.ts +0 -19
- package/dist/src/definitions/frame.d.ts +0 -13
- package/dist/src/definitions/hooks.d.ts +0 -33
- package/dist/src/definitions/instructions.d.ts +0 -21
- package/dist/src/definitions/intents.d.ts +0 -33
- package/dist/src/definitions/messages.d.ts +0 -17
- package/dist/src/definitions/session-agent.d.ts +0 -26
- package/dist/src/definitions/skills.d.ts +0 -27
- package/dist/src/definitions/state.d.ts +0 -113
- package/dist/src/definitions/step.d.ts +0 -53
- package/dist/src/definitions/subagents.d.ts +0 -16
- package/dist/src/definitions/tools.d.ts +0 -33
- package/dist/src/definitions/turn.d.ts +0 -12
- package/dist/src/discover/bundled-extension.d.ts +0 -11
- package/dist/src/discover/connections.d.ts +0 -19
- package/dist/src/discover/discover-agent.d.ts +0 -87
- package/dist/src/discover/discover-subagent.d.ts +0 -35
- package/dist/src/discover/extension-specifier.d.ts +0 -17
- package/dist/src/discover/extensions.d.ts +0 -127
- package/dist/src/discover/filesystem.d.ts +0 -74
- package/dist/src/discover/grammar.d.ts +0 -196
- package/dist/src/discover/lib.d.ts +0 -35
- package/dist/src/discover/manifest.d.ts +0 -297
- package/dist/src/discover/markdown.d.ts +0 -19
- package/dist/src/discover/memory.d.ts +0 -13
- package/dist/src/discover/named-source-directory.d.ts +0 -98
- package/dist/src/discover/project-source.d.ts +0 -113
- package/dist/src/discover/project.d.ts +0 -33
- package/dist/src/discover/sandbox.d.ts +0 -32
- package/dist/src/discover/schedules.d.ts +0 -38
- package/dist/src/discover/skills.d.ts +0 -35
- package/dist/src/discover/slots.d.ts +0 -30
- package/dist/src/evals/abort.d.ts +0 -2
- package/dist/src/evals/assertions/scoped.d.ts +0 -17
- package/dist/src/evals/cli/eval-client.d.ts +0 -20
- package/dist/src/evals/cli/eval-state-directory.d.ts +0 -7
- package/dist/src/evals/cli/eval.d.ts +0 -31
- package/dist/src/evals/cli/filter.d.ts +0 -14
- package/dist/src/evals/context.d.ts +0 -21
- package/dist/src/evals/control-flow.d.ts +0 -9
- package/dist/src/evals/diagnostics.d.ts +0 -8
- package/dist/src/evals/expect/levenshtein.d.ts +0 -2
- package/dist/src/evals/judge.d.ts +0 -12
- package/dist/src/evals/output.d.ts +0 -3
- package/dist/src/evals/reported-tool-name.d.ts +0 -9
- package/dist/src/evals/runner/artifacts.d.ts +0 -12
- package/dist/src/evals/runner/attempt-label.d.ts +0 -2
- package/dist/src/evals/runner/derive-run-facts.d.ts +0 -16
- package/dist/src/evals/runner/discover.d.ts +0 -51
- package/dist/src/evals/runner/execute-eval.d.ts +0 -31
- package/dist/src/evals/runner/execute-task.d.ts +0 -38
- package/dist/src/evals/runner/reporters/assertion-diagnostics.d.ts +0 -3
- package/dist/src/evals/runner/reporters/assertion-scores.d.ts +0 -30
- package/dist/src/evals/runner/reporters/datadog-runtime-trace-links.d.ts +0 -11
- package/dist/src/evals/runner/resolve-git-metadata.d.ts +0 -16
- package/dist/src/evals/runner/run-evals.d.ts +0 -44
- package/dist/src/evals/runner/verdict.d.ts +0 -14
- package/dist/src/evals/session-cleanup.d.ts +0 -7
- package/dist/src/evals/session-content.d.ts +0 -5
- package/dist/src/eve-channel/audience.d.ts +0 -3
- package/dist/src/eve-channel/create-request.d.ts +0 -24
- package/dist/src/eve-channel/descendant-stream.d.ts +0 -9
- package/dist/src/eve-channel/request.d.ts +0 -43
- package/dist/src/eve-channel/stream-headers.d.ts +0 -1
- package/dist/src/eve-channel/turn-policy-request.d.ts +0 -2
- package/dist/src/execution/agent-sessions/message.d.ts +0 -4
- package/dist/src/execution/agent-sessions/metadata.d.ts +0 -8
- package/dist/src/execution/agent-sessions/remote-credentials.d.ts +0 -19
- package/dist/src/execution/agent-sessions/remote-session.d.ts +0 -16
- package/dist/src/execution/agent-sessions/remote.d.ts +0 -117
- package/dist/src/execution/agent-sessions/requests.d.ts +0 -22
- package/dist/src/execution/agent-sessions/session.d.ts +0 -12
- package/dist/src/execution/agent-sessions/sessions-over.d.ts +0 -29
- package/dist/src/execution/agent-sessions/steps.d.ts +0 -27
- package/dist/src/execution/agent-sessions/usage.d.ts +0 -10
- package/dist/src/execution/authorization-callback-match.d.ts +0 -14
- package/dist/src/execution/callback-hook-tokens.d.ts +0 -18
- package/dist/src/execution/cancelled-model-call-batch.d.ts +0 -17
- package/dist/src/execution/cancelled-turn-message.d.ts +0 -2
- package/dist/src/execution/catalog/catalog-tools.d.ts +0 -22
- package/dist/src/execution/catalog/connection-auth.d.ts +0 -43
- package/dist/src/execution/catalog/connection-entry.d.ts +0 -17
- package/dist/src/execution/catalog/listing.d.ts +0 -12
- package/dist/src/execution/catalog/rank.d.ts +0 -44
- package/dist/src/execution/catalog/search.d.ts +0 -28
- package/dist/src/execution/catalog/signatures.d.ts +0 -11
- package/dist/src/execution/catalog/step-catalog.d.ts +0 -74
- package/dist/src/execution/channel-context.d.ts +0 -5
- package/dist/src/execution/close-session-stream-step.d.ts +0 -9
- package/dist/src/execution/connections/callback-route.d.ts +0 -27
- package/dist/src/execution/continuation-conflict-step.d.ts +0 -8
- package/dist/src/execution/coordination-dispatch-step.d.ts +0 -20
- package/dist/src/execution/create-session-step.d.ts +0 -35
- package/dist/src/execution/delegated-session-context.d.ts +0 -2
- package/dist/src/execution/deliver-payloads.d.ts +0 -3
- package/dist/src/execution/dynamic-workflow/program-step.d.ts +0 -21
- package/dist/src/execution/dynamic-workflow/schema.d.ts +0 -42
- package/dist/src/execution/dynamic-workflow/security-step.d.ts +0 -3
- package/dist/src/execution/dynamic-workflow/tool.d.ts +0 -8
- package/dist/src/execution/dynamic-workflow/workflow.d.ts +0 -10
- package/dist/src/execution/effective-agent-config.d.ts +0 -29
- package/dist/src/execution/eve-workflow-attributes.d.ts +0 -159
- package/dist/src/execution/failure-summary.d.ts +0 -11
- package/dist/src/execution/forward-session-input.d.ts +0 -4
- package/dist/src/execution/framework-workflow-bodies.d.ts +0 -7
- package/dist/src/execution/hook-ownership.d.ts +0 -23
- package/dist/src/execution/hosts.d.ts +0 -131
- package/dist/src/execution/initial-session-values.d.ts +0 -17
- package/dist/src/execution/install-workflow-deployment-id.d.ts +0 -3
- package/dist/src/execution/install-workflow-world.d.ts +0 -15
- package/dist/src/execution/invoke-tool.d.ts +0 -39
- package/dist/src/execution/legacy-session/authorization.d.ts +0 -1
- package/dist/src/execution/legacy-session/completion-step.d.ts +0 -12
- package/dist/src/execution/legacy-session/inbox.d.ts +0 -24
- package/dist/src/execution/legacy-session/input.d.ts +0 -17
- package/dist/src/execution/legacy-session/interrupt-step.d.ts +0 -3
- package/dist/src/execution/legacy-session/prepare-step.d.ts +0 -24
- package/dist/src/execution/legacy-session/snapshot.d.ts +0 -21
- package/dist/src/execution/legacy-session/turn-workflow.d.ts +0 -8
- package/dist/src/execution/model-call-batching.d.ts +0 -12
- package/dist/src/execution/ndjson-stream.d.ts +0 -19
- package/dist/src/execution/node-step.d.ts +0 -78
- package/dist/src/execution/proxied-deliver-step.d.ts +0 -45
- package/dist/src/execution/public-destination.d.ts +0 -37
- package/dist/src/execution/reconcile-session-continuation-token.d.ts +0 -4
- package/dist/src/execution/report-dropped-wire-payload-step.d.ts +0 -13
- package/dist/src/execution/route-child-delivery.d.ts +0 -20
- package/dist/src/execution/run-host.d.ts +0 -52
- package/dist/src/execution/runtime-context.d.ts +0 -14
- package/dist/src/execution/sandbox/abort-bound-session.d.ts +0 -6
- package/dist/src/execution/sandbox/active-connections.d.ts +0 -28
- package/dist/src/execution/sandbox/bash.d.ts +0 -69
- package/dist/src/execution/sandbox/bindings/docker-base-setup.d.ts +0 -7
- package/dist/src/execution/sandbox/bindings/docker-connection.d.ts +0 -15
- package/dist/src/execution/sandbox/bindings/docker-container.d.ts +0 -18
- package/dist/src/execution/sandbox/bindings/docker-network.d.ts +0 -13
- package/dist/src/execution/sandbox/bindings/docker-options.d.ts +0 -20
- package/dist/src/execution/sandbox/bindings/docker-templates.d.ts +0 -41
- package/dist/src/execution/sandbox/bindings/docker-utils.d.ts +0 -2
- package/dist/src/execution/sandbox/bindings/docker.d.ts +0 -32
- package/dist/src/execution/sandbox/bindings/just-bash-runtime.d.ts +0 -26
- package/dist/src/execution/sandbox/bindings/just-bash.d.ts +0 -18
- package/dist/src/execution/sandbox/bindings/local-provider-utils.d.ts +0 -6
- package/dist/src/execution/sandbox/bindings/local-template-prune.d.ts +0 -16
- package/dist/src/execution/sandbox/bindings/local.d.ts +0 -22
- package/dist/src/execution/sandbox/bindings/vercel-base-runtime.d.ts +0 -12
- package/dist/src/execution/sandbox/bindings/vercel-create-sdk.d.ts +0 -19
- package/dist/src/execution/sandbox/bindings/vercel-credentials.d.ts +0 -10
- package/dist/src/execution/sandbox/bindings/vercel-errors.d.ts +0 -13
- package/dist/src/execution/sandbox/bindings/vercel-lifecycle.d.ts +0 -15
- package/dist/src/execution/sandbox/bindings/vercel-lookup.d.ts +0 -12
- package/dist/src/execution/sandbox/bindings/vercel-options.d.ts +0 -9
- package/dist/src/execution/sandbox/bindings/vercel-read-stream.d.ts +0 -5
- package/dist/src/execution/sandbox/bindings/vercel-sdk-types.d.ts +0 -5
- package/dist/src/execution/sandbox/bindings/vercel-tool-sessions.d.ts +0 -7
- package/dist/src/execution/sandbox/bindings/vercel.d.ts +0 -21
- package/dist/src/execution/sandbox/development-cleanup.d.ts +0 -4
- package/dist/src/execution/sandbox/development-lazy-prewarm.d.ts +0 -7
- package/dist/src/execution/sandbox/development-run.d.ts +0 -5
- package/dist/src/execution/sandbox/dockerfile.d.ts +0 -20
- package/dist/src/execution/sandbox/ensure.d.ts +0 -42
- package/dist/src/execution/sandbox/glob-tool.d.ts +0 -22
- package/dist/src/execution/sandbox/logging-session.d.ts +0 -5
- package/dist/src/execution/sandbox/multiplexed-command.d.ts +0 -38
- package/dist/src/execution/sandbox/prewarm.d.ts +0 -61
- package/dist/src/execution/sandbox/provider-files.d.ts +0 -2
- package/dist/src/execution/sandbox/provider-identity.d.ts +0 -1
- package/dist/src/execution/sandbox/read-file.d.ts +0 -35
- package/dist/src/execution/sandbox/require-sandbox.d.ts +0 -7
- package/dist/src/execution/sandbox/ripgrep-probe.d.ts +0 -2
- package/dist/src/execution/sandbox/shell-quote.d.ts +0 -1
- package/dist/src/execution/sandbox/stream-utils.d.ts +0 -9
- package/dist/src/execution/sandbox/truncate-output.d.ts +0 -69
- package/dist/src/execution/session/accepted-deployment.d.ts +0 -3
- package/dist/src/execution/session/active-turn.d.ts +0 -117
- package/dist/src/execution/session/admission.d.ts +0 -40
- package/dist/src/execution/session/answer-caller.d.ts +0 -19
- package/dist/src/execution/session/checkpoint-migrations.d.ts +0 -32
- package/dist/src/execution/session/checkpoint-refusal.d.ts +0 -4
- package/dist/src/execution/session/control-delivery.d.ts +0 -4
- package/dist/src/execution/session/delivery-facts.d.ts +0 -27
- package/dist/src/execution/session/end-sandbox-step.d.ts +0 -12
- package/dist/src/execution/session/entry.d.ts +0 -17
- package/dist/src/execution/session/finalization.d.ts +0 -35
- package/dist/src/execution/session/handoff-state.d.ts +0 -5
- package/dist/src/execution/session/handoff-steps.d.ts +0 -130
- package/dist/src/execution/session/handoff.d.ts +0 -124
- package/dist/src/execution/session/handover-tracing.d.ts +0 -3
- package/dist/src/execution/session/hook-tokens.d.ts +0 -11
- package/dist/src/execution/session/imported-conversation.d.ts +0 -2
- package/dist/src/execution/session/input-queue.d.ts +0 -101
- package/dist/src/execution/session/interrupted-step.d.ts +0 -69
- package/dist/src/execution/session/next-input.d.ts +0 -37
- package/dist/src/execution/session/owner-boot.d.ts +0 -31
- package/dist/src/execution/session/pending-history.d.ts +0 -5
- package/dist/src/execution/session/pending-turn-state.d.ts +0 -37
- package/dist/src/execution/session/pre-v27-checkpoint.d.ts +0 -42
- package/dist/src/execution/session/prewarm-step.d.ts +0 -13
- package/dist/src/execution/session/principal.d.ts +0 -22
- package/dist/src/execution/session/program.d.ts +0 -87
- package/dist/src/execution/session/route-selected-delivery.d.ts +0 -10
- package/dist/src/execution/session/run-watch.d.ts +0 -26
- package/dist/src/execution/session/settle-control-delivery-step.d.ts +0 -8
- package/dist/src/execution/session/settle-duplicate-delivery-step.d.ts +0 -8
- package/dist/src/execution/session/state-cursor.d.ts +0 -50
- package/dist/src/execution/session/state-delta.d.ts +0 -30
- package/dist/src/execution/session/step-decision-check.d.ts +0 -9
- package/dist/src/execution/session/step-state-delta.d.ts +0 -24
- package/dist/src/execution/session/task-tool-tracing-step.d.ts +0 -2
- package/dist/src/execution/session/timeout-control.d.ts +0 -31
- package/dist/src/execution/session/timeout-steps.d.ts +0 -14
- package/dist/src/execution/session/timeout-workflow.d.ts +0 -8
- package/dist/src/execution/session/timeout.d.ts +0 -2
- package/dist/src/execution/session/turn-control.d.ts +0 -17
- package/dist/src/execution/session/turn-event-handler.d.ts +0 -17
- package/dist/src/execution/session/turn-step-result.d.ts +0 -8
- package/dist/src/execution/session/turn-step-types.d.ts +0 -110
- package/dist/src/execution/session/turn-step.d.ts +0 -28
- package/dist/src/execution/session/turn.d.ts +0 -110
- package/dist/src/execution/session/workflow-host.d.ts +0 -7
- package/dist/src/execution/session-callback-request.d.ts +0 -14
- package/dist/src/execution/session-commands.d.ts +0 -7
- package/dist/src/execution/session-event-stream.d.ts +0 -65
- package/dist/src/execution/session-inbox/end-stranded-session.d.ts +0 -36
- package/dist/src/execution/session-inbox/handle.d.ts +0 -7
- package/dist/src/execution/session-inbox/hook-release.d.ts +0 -11
- package/dist/src/execution/session-inbox/owner.d.ts +0 -69
- package/dist/src/execution/session-inbox/pre-v27.d.ts +0 -5
- package/dist/src/execution/session-inbox/protocol.d.ts +0 -12
- package/dist/src/execution/session-inbox/resume.d.ts +0 -42
- package/dist/src/execution/session-inbox/runnable-owner.d.ts +0 -13
- package/dist/src/execution/session-inbox/stranded-replay-guard.d.ts +0 -16
- package/dist/src/execution/session-inbox/workflow-transport.d.ts +0 -10
- package/dist/src/execution/session-line-store.d.ts +0 -19
- package/dist/src/execution/session-workflow-tool-run.d.ts +0 -21
- package/dist/src/execution/session.d.ts +0 -27
- package/dist/src/execution/settle-cancelled-turn-step.d.ts +0 -32
- package/dist/src/execution/skills/instructions.d.ts +0 -29
- package/dist/src/execution/stable-workflow-names.d.ts +0 -6
- package/dist/src/execution/stop-runs.d.ts +0 -35
- package/dist/src/execution/tasks/model-step.d.ts +0 -54
- package/dist/src/execution/tasks/render.d.ts +0 -69
- package/dist/src/execution/tasks/session.d.ts +0 -23
- package/dist/src/execution/tasks/start.d.ts +0 -50
- package/dist/src/execution/tasks/steps.d.ts +0 -39
- package/dist/src/execution/tasks/task-id-input.d.ts +0 -19
- package/dist/src/execution/tasks/tool-entry-point.d.ts +0 -11
- package/dist/src/execution/tasks/workflow-target.d.ts +0 -2
- package/dist/src/execution/terminal-session-completion-step.d.ts +0 -24
- package/dist/src/execution/terminal-session-failure-step.d.ts +0 -14
- package/dist/src/execution/terminate-child-sessions-step.d.ts +0 -12
- package/dist/src/execution/tool-auth.d.ts +0 -17
- package/dist/src/execution/tool-session/id.d.ts +0 -22
- package/dist/src/execution/tool-stub-host.d.ts +0 -20
- package/dist/src/execution/tool-stubs/playback.d.ts +0 -11
- package/dist/src/execution/tool-stubs/steps.d.ts +0 -18
- package/dist/src/execution/tools/channel-to.d.ts +0 -15
- package/dist/src/execution/tools/file-state.d.ts +0 -56
- package/dist/src/execution/tools/workflow/answer.d.ts +0 -10
- package/dist/src/execution/tools/workflow/apply-run-messages-step.d.ts +0 -3
- package/dist/src/execution/tools/workflow/apply-run-messages.d.ts +0 -36
- package/dist/src/execution/tools/workflow/ask.d.ts +0 -79
- package/dist/src/execution/tools/workflow/authorization-completion.d.ts +0 -3
- package/dist/src/execution/tools/workflow/body.d.ts +0 -92
- package/dist/src/execution/tools/workflow/cancellation-policy.d.ts +0 -2
- package/dist/src/execution/tools/workflow/harness-definition.d.ts +0 -14
- package/dist/src/execution/tools/workflow/interrupt.d.ts +0 -9
- package/dist/src/execution/tools/workflow/owner-channels.d.ts +0 -29
- package/dist/src/execution/tools/workflow/owner-inbox.d.ts +0 -13
- package/dist/src/execution/tools/workflow/owner.d.ts +0 -36
- package/dist/src/execution/tools/workflow/resume-hook-step.d.ts +0 -4
- package/dist/src/execution/tools/workflow/resume-hook.d.ts +0 -4
- package/dist/src/execution/tools/workflow/run.d.ts +0 -8
- package/dist/src/execution/tools/workflow/serve.d.ts +0 -3
- package/dist/src/execution/tools/workflow/start.d.ts +0 -51
- package/dist/src/execution/tools/workflow/step.d.ts +0 -3
- package/dist/src/execution/tools/workflow/types.d.ts +0 -10
- package/dist/src/execution/tools/workflow/withdraw-step.d.ts +0 -29
- package/dist/src/execution/tools/workflow/workflow-owner-blocking.d.ts +0 -23
- package/dist/src/execution/tools/workflow/workflow-run-host.d.ts +0 -2
- package/dist/src/execution/tools/workflow/workflow.d.ts +0 -3
- package/dist/src/execution/v26-history.fixtures.d.ts +0 -4
- package/dist/src/execution/web-fetch/execute.d.ts +0 -39
- package/dist/src/execution/web-fetch/html.d.ts +0 -8
- package/dist/src/execution/web-fetch/request.d.ts +0 -15
- package/dist/src/execution/workflow-errors.d.ts +0 -19
- package/dist/src/execution/workflow-host/dispatch-step.d.ts +0 -9
- package/dist/src/execution/workflow-host/host.d.ts +0 -5
- package/dist/src/execution/workflow-host/start-run.d.ts +0 -6
- package/dist/src/execution/workflow-host/tool-stubs.d.ts +0 -7
- package/dist/src/execution/workflow-host/turn-step.d.ts +0 -3
- package/dist/src/execution/workflow-references.d.ts +0 -23
- package/dist/src/execution/workflow-registry.d.ts +0 -5
- package/dist/src/execution/workflow-runtime.d.ts +0 -41
- package/dist/src/execution/workflow-webhook-route.d.ts +0 -4
- package/dist/src/extensions/code/extension/hooks/authenticate.d.ts +0 -2
- package/dist/src/extensions/code/extension/instructions/project.d.ts +0 -2
- package/dist/src/extensions/code/extension/lib/command-failure.d.ts +0 -7
- package/dist/src/extensions/code/extension/lib/connect-authentication.d.ts +0 -7
- package/dist/src/extensions/code/extension/lib/project-instructions.d.ts +0 -13
- package/dist/src/extensions/code/extension/lib/tooling.d.ts +0 -15
- package/dist/src/extensions/custom-skills/extension/instructions/always-on.d.ts +0 -4
- package/dist/src/extensions/custom-skills/extension/lib/lifecycle.d.ts +0 -122
- package/dist/src/extensions/custom-skills/extension/lib/render.d.ts +0 -5
- package/dist/src/extensions/custom-skills/extension/lib/runtime.d.ts +0 -26
- package/dist/src/extensions/custom-skills/extension/lib/tool-support.d.ts +0 -102
- package/dist/src/extensions/custom-skills/extension/skills/custom.d.ts +0 -9
- package/dist/src/extensions/custom-skills/extension/tools/create.d.ts +0 -28
- package/dist/src/extensions/custom-skills/extension/tools/list.d.ts +0 -60
- package/dist/src/extensions/custom-skills/extension/tools/publish.d.ts +0 -36
- package/dist/src/extensions/custom-skills/extension/tools/read.d.ts +0 -32
- package/dist/src/extensions/custom-skills/extension/tools/remove.d.ts +0 -17
- package/dist/src/extensions/custom-skills/extension/tools/set_mode.d.ts +0 -19
- package/dist/src/extensions/git/extension/instructions/github.d.ts +0 -2
- package/dist/src/extensions/git/extension/lib/connect-user-auth.d.ts +0 -15
- package/dist/src/extensions/git/extension/lib/gh-tool.d.ts +0 -28
- package/dist/src/extensions/git/extension/lib/github-guidance.d.ts +0 -4
- package/dist/src/extensions/git/extension/lib/github-shell-schema.d.ts +0 -9
- package/dist/src/extensions/git/extension/lib/repository-root.d.ts +0 -11
- package/dist/src/extensions/git/extension/lib/sandbox-lease-lock.d.ts +0 -32
- package/dist/src/extensions/git/extension/lib/shell.d.ts +0 -1
- package/dist/src/extensions/git/extension/skills/pr.d.ts +0 -2
- package/dist/src/extensions/git/extension/tools/gh.d.ts +0 -3
- package/dist/src/framework/host-inventory.d.ts +0 -8
- package/dist/src/framework/sources/default-tools.d.ts +0 -36
- package/dist/src/framework/sources/modules/agent.d.ts +0 -5
- package/dist/src/framework/sources/modules/eve-channel.d.ts +0 -1
- package/dist/src/framework/sources/modules/home-channel.d.ts +0 -2
- package/dist/src/framework/sources/modules/sandbox.d.ts +0 -3
- package/dist/src/harness/action-presentation.d.ts +0 -18
- package/dist/src/harness/action-result-helpers.d.ts +0 -52
- package/dist/src/harness/approval-outcome.d.ts +0 -32
- package/dist/src/harness/attachment-staging.d.ts +0 -47
- package/dist/src/harness/call-facts.d.ts +0 -34
- package/dist/src/harness/call-outcome.d.ts +0 -6
- package/dist/src/harness/compaction/config.d.ts +0 -17
- package/dist/src/harness/compaction/engine.d.ts +0 -64
- package/dist/src/harness/compaction/over-limit-error.d.ts +0 -8
- package/dist/src/harness/compaction/prompt.d.ts +0 -50
- package/dist/src/harness/compaction/step.d.ts +0 -42
- package/dist/src/harness/coordination.d.ts +0 -80
- package/dist/src/harness/emission.d.ts +0 -40
- package/dist/src/harness/execute-call.d.ts +0 -31
- package/dist/src/harness/final-output.d.ts +0 -15
- package/dist/src/harness/finish-reason.d.ts +0 -8
- package/dist/src/harness/generation-steering.d.ts +0 -24
- package/dist/src/harness/hitl/approval-prompt.d.ts +0 -10
- package/dist/src/harness/hitl/approved-calls.d.ts +0 -51
- package/dist/src/harness/hitl/budget.d.ts +0 -28
- package/dist/src/harness/hitl/stale-responses.d.ts +0 -46
- package/dist/src/harness/interaction-facts.d.ts +0 -42
- package/dist/src/harness/interaction-relay.d.ts +0 -10
- package/dist/src/harness/interruptible-stream.d.ts +0 -5
- package/dist/src/harness/kernel.d.ts +0 -9
- package/dist/src/harness/model-call/call.d.ts +0 -113
- package/dist/src/harness/model-call/errors.d.ts +0 -94
- package/dist/src/harness/model-call/failure.d.ts +0 -17
- package/dist/src/harness/model-call/model.d.ts +0 -17
- package/dist/src/harness/model-call/recovery.d.ts +0 -24
- package/dist/src/harness/model-call/request.d.ts +0 -42
- package/dist/src/harness/model-call/response.d.ts +0 -53
- package/dist/src/harness/model-call/retry.d.ts +0 -28
- package/dist/src/harness/model-call/run.d.ts +0 -33
- package/dist/src/harness/model-call/tools.d.ts +0 -19
- package/dist/src/harness/model-call/unique-call-ids.d.ts +0 -13
- package/dist/src/harness/model-call/usage.d.ts +0 -26
- package/dist/src/harness/ordered-stream-emitter.d.ts +0 -19
- package/dist/src/harness/prompt-cache.d.ts +0 -71
- package/dist/src/harness/provider-safety.d.ts +0 -15
- package/dist/src/harness/provider-tool-history.d.ts +0 -31
- package/dist/src/harness/provider-tool-schemas.d.ts +0 -23
- package/dist/src/harness/provider-tools.d.ts +0 -39
- package/dist/src/harness/publication.d.ts +0 -4
- package/dist/src/harness/request-envelope.d.ts +0 -8
- package/dist/src/harness/running-work.d.ts +0 -10
- package/dist/src/harness/runtime-action-settlement-state.d.ts +0 -3
- package/dist/src/harness/semantic-errors/index.d.ts +0 -9
- package/dist/src/harness/semantic-errors/rule.d.ts +0 -83
- package/dist/src/harness/semantic-errors/rules/gateway.d.ts +0 -11
- package/dist/src/harness/semantic-errors/rules/model-provider.d.ts +0 -11
- package/dist/src/harness/semantic-errors/rules/sandbox.d.ts +0 -14
- package/dist/src/harness/semantic-errors/rules/system.d.ts +0 -2
- package/dist/src/harness/semantic-errors/rules/workflow.d.ts +0 -9
- package/dist/src/harness/semantic-errors/signals.d.ts +0 -31
- package/dist/src/harness/session-machine/calls.d.ts +0 -16
- package/dist/src/harness/session-machine/cascade.d.ts +0 -18
- package/dist/src/harness/session-machine/children.d.ts +0 -11
- package/dist/src/harness/session-machine/content.d.ts +0 -4
- package/dist/src/harness/session-machine/context-changes.d.ts +0 -32
- package/dist/src/harness/session-machine/deliveries.d.ts +0 -41
- package/dist/src/harness/session-machine/lines.d.ts +0 -21
- package/dist/src/harness/session-machine/runs.d.ts +0 -44
- package/dist/src/harness/session-machine/waiting.d.ts +0 -16
- package/dist/src/harness/session-stream-write-error.d.ts +0 -11
- package/dist/src/harness/session-usage.d.ts +0 -22
- package/dist/src/harness/step/after-model.d.ts +0 -29
- package/dist/src/harness/step/park.d.ts +0 -19
- package/dist/src/harness/step-hooks.d.ts +0 -103
- package/dist/src/harness/stream-actions.d.ts +0 -17
- package/dist/src/harness/token-estimate.d.ts +0 -13
- package/dist/src/harness/tool-call-input-errors.d.ts +0 -40
- package/dist/src/harness/tool-call-io.d.ts +0 -28
- package/dist/src/harness/tool-history-repair.d.ts +0 -11
- package/dist/src/harness/tool-model-output.d.ts +0 -59
- package/dist/src/harness/tool-output-serialization.d.ts +0 -17
- package/dist/src/harness/turn-cancellation.d.ts +0 -16
- package/dist/src/harness/usage-sink.d.ts +0 -21
- package/dist/src/harness/user-parts.d.ts +0 -4
- package/dist/src/harness/workflow-admission.d.ts +0 -6
- package/dist/src/harness/workflow-stream-error.d.ts +0 -22
- package/dist/src/harness/workflow-tool-runs.d.ts +0 -28
- package/dist/src/instrumentation/ai-sdk-hook-bridge.d.ts +0 -4
- package/dist/src/instrumentation/ai-sdk-telemetry.d.ts +0 -35
- package/dist/src/instrumentation/ai-sdk-warnings.d.ts +0 -6
- package/dist/src/instrumentation/channel-delivery.d.ts +0 -5
- package/dist/src/instrumentation/content-policy.d.ts +0 -7
- package/dist/src/instrumentation/content.d.ts +0 -10
- package/dist/src/instrumentation/decide.d.ts +0 -4
- package/dist/src/instrumentation/decision-results.d.ts +0 -37
- package/dist/src/instrumentation/dispatch.d.ts +0 -2
- package/dist/src/instrumentation/parent-lineage.d.ts +0 -11
- package/dist/src/instrumentation/principal-summary.d.ts +0 -13
- package/dist/src/instrumentation/providers.d.ts +0 -13
- package/dist/src/instrumentation/scope.d.ts +0 -18
- package/dist/src/instrumentation/session-context.d.ts +0 -25
- package/dist/src/instrumentation/setup-context.d.ts +0 -1
- package/dist/src/instrumentation/trace-decision.d.ts +0 -5
- package/dist/src/internal/a2a/execution.d.ts +0 -56
- package/dist/src/internal/a2a/json-rpc.d.ts +0 -18
- package/dist/src/internal/agent-name.d.ts +0 -2
- package/dist/src/internal/application/build-output-environment.d.ts +0 -3
- package/dist/src/internal/application/build-profile.d.ts +0 -67
- package/dist/src/internal/application/build-workspace.d.ts +0 -35
- package/dist/src/internal/application/compiled-artifacts.d.ts +0 -74
- package/dist/src/internal/application/dev-environment.d.ts +0 -32
- package/dist/src/internal/application/dev-transport.d.ts +0 -4
- package/dist/src/internal/application/import-specifier.d.ts +0 -19
- package/dist/src/internal/application/optional-package-import.d.ts +0 -24
- package/dist/src/internal/application/optional-package-install.d.ts +0 -37
- package/dist/src/internal/application/output-publication-artifacts.d.ts +0 -7
- package/dist/src/internal/application/output-publication-journal.d.ts +0 -30
- package/dist/src/internal/application/output-publication-lock.d.ts +0 -16
- package/dist/src/internal/application/output-publication.d.ts +0 -33
- package/dist/src/internal/application/package.d.ts +0 -63
- package/dist/src/internal/application/paths.d.ts +0 -37
- package/dist/src/internal/application/production-compiler-artifacts.d.ts +0 -4
- package/dist/src/internal/application/runtime-compiled-artifacts-source.d.ts +0 -6
- package/dist/src/internal/application/stamped-package-version.d.ts +0 -5
- package/dist/src/internal/application/tsconfig-dependencies.d.ts +0 -7
- package/dist/src/internal/attachments/data.d.ts +0 -37
- package/dist/src/internal/attachments/errors.d.ts +0 -41
- package/dist/src/internal/attachments/limited-read.d.ts +0 -18
- package/dist/src/internal/attachments/media-metadata.d.ts +0 -40
- package/dist/src/internal/attachments/public-link.d.ts +0 -5
- package/dist/src/internal/attachments/read-media-metadata.d.ts +0 -7
- package/dist/src/internal/attachments/sandbox-refs.d.ts +0 -52
- package/dist/src/internal/attachments/url-refs.d.ts +0 -17
- package/dist/src/internal/authored-asset-import-plugin.d.ts +0 -24
- package/dist/src/internal/authored-definition/approval.d.ts +0 -8
- package/dist/src/internal/authored-definition/channel.d.ts +0 -16
- package/dist/src/internal/authored-definition/connection.d.ts +0 -18
- package/dist/src/internal/authored-definition/core.d.ts +0 -49
- package/dist/src/internal/authored-definition/hook.d.ts +0 -5
- package/dist/src/internal/authored-definition/memory.d.ts +0 -5
- package/dist/src/internal/authored-definition/schedule-collection.d.ts +0 -2
- package/dist/src/internal/authored-definition/schema-backed.d.ts +0 -57
- package/dist/src/internal/authored-definition/source-identity.d.ts +0 -32
- package/dist/src/internal/authored-module-build-options.d.ts +0 -13
- package/dist/src/internal/authored-module-bundle.d.ts +0 -4
- package/dist/src/internal/authored-module-cache.d.ts +0 -10
- package/dist/src/internal/authored-module-conditions.d.ts +0 -2
- package/dist/src/internal/authored-module-evaluation-error.d.ts +0 -2
- package/dist/src/internal/authored-module-map-loader.d.ts +0 -8
- package/dist/src/internal/authored-package-tsconfig-paths.d.ts +0 -17
- package/dist/src/internal/authored-relative-extension-resolver.d.ts +0 -14
- package/dist/src/internal/authored-runtime-modules.d.ts +0 -25
- package/dist/src/internal/bundler/authored-plugins.d.ts +0 -30
- package/dist/src/internal/bundler/extension-mount-plugin.d.ts +0 -19
- package/dist/src/internal/bundler/extension-scope-plugin.d.ts +0 -45
- package/dist/src/internal/bundler/filters.d.ts +0 -33
- package/dist/src/internal/bundler/pseudo-packages.d.ts +0 -21
- package/dist/src/internal/bundler/rolldown.d.ts +0 -30
- package/dist/src/internal/bundler/vendored-dependency-log.d.ts +0 -6
- package/dist/src/internal/capability-error.d.ts +0 -3
- package/dist/src/internal/classify-model-routing.d.ts +0 -23
- package/dist/src/internal/client-context.d.ts +0 -2
- package/dist/src/internal/compiled-manifest-fingerprint.d.ts +0 -5
- package/dist/src/internal/dev-boot-progress.d.ts +0 -13
- package/dist/src/internal/development-programmatic-source-loader.d.ts +0 -7
- package/dist/src/internal/eve-project-root.d.ts +0 -5
- package/dist/src/internal/external-resources-snapshot.d.ts +0 -46
- package/dist/src/internal/external-resources.d.ts +0 -19
- package/dist/src/internal/gateway.d.ts +0 -11
- package/dist/src/internal/helpers/frontmatter.d.ts +0 -24
- package/dist/src/internal/helpers/markdown.d.ts +0 -42
- package/dist/src/internal/host-traced-dependencies.d.ts +0 -16
- package/dist/src/internal/http/basic-auth.d.ts +0 -1
- package/dist/src/internal/http/json-body.d.ts +0 -16
- package/dist/src/internal/http/request-guards.d.ts +0 -34
- package/dist/src/internal/input-text.d.ts +0 -13
- package/dist/src/internal/installed-packages.d.ts +0 -28
- package/dist/src/internal/instrumentation-layout.d.ts +0 -14
- package/dist/src/internal/instrumentation.d.ts +0 -29
- package/dist/src/internal/invocation/agent-invocation.d.ts +0 -53
- package/dist/src/internal/invocation/attributes.d.ts +0 -2
- package/dist/src/internal/invocation/metadata.d.ts +0 -7
- package/dist/src/internal/invocation/owned-run.d.ts +0 -110
- package/dist/src/internal/invocation/workflow-execution.d.ts +0 -30
- package/dist/src/internal/materialized-authored-modules.d.ts +0 -21
- package/dist/src/internal/mcp/forwarded-principal-header.d.ts +0 -31
- package/dist/src/internal/mcp/protected-resource.d.ts +0 -10
- package/dist/src/internal/mcp/published-tools.d.ts +0 -20
- package/dist/src/internal/mcp/request-trace-context.d.ts +0 -12
- package/dist/src/internal/mcp/skills.d.ts +0 -57
- package/dist/src/internal/mcp/streamable-http-server.d.ts +0 -114
- package/dist/src/internal/mock-model-identity.d.ts +0 -2
- package/dist/src/internal/model-auth/api-key.d.ts +0 -7
- package/dist/src/internal/model-auth/available-models.d.ts +0 -2
- package/dist/src/internal/model-auth/development-broker-client.d.ts +0 -3
- package/dist/src/internal/model-auth/development-broker-protocol.d.ts +0 -12
- package/dist/src/internal/model-auth/development-broker-server.d.ts +0 -4
- package/dist/src/internal/model-auth/gateway-credential.d.ts +0 -2
- package/dist/src/internal/model-auth/store.d.ts +0 -16
- package/dist/src/internal/model-auth/transport.d.ts +0 -8
- package/dist/src/internal/model-auth/vercel-cli.d.ts +0 -9
- package/dist/src/internal/model-auth/vercel-team.d.ts +0 -3
- package/dist/src/internal/model-auth/vercel.d.ts +0 -13
- package/dist/src/internal/nitro/dev-client-address.d.ts +0 -36
- package/dist/src/internal/nitro/dev-runtime-artifacts-retention.d.ts +0 -11
- package/dist/src/internal/nitro/dev-runtime-artifacts.d.ts +0 -49
- package/dist/src/internal/nitro/dev-runtime-generation-metadata.d.ts +0 -13
- package/dist/src/internal/nitro/dev-runtime-source-snapshot-copy.d.ts +0 -2
- package/dist/src/internal/nitro/dev-runtime-source-snapshot-local-roots.d.ts +0 -14
- package/dist/src/internal/nitro/dev-runtime-source-snapshot.d.ts +0 -38
- package/dist/src/internal/nitro/development-generation.d.ts +0 -33
- package/dist/src/internal/nitro/host/artifacts-config.d.ts +0 -21
- package/dist/src/internal/nitro/host/build-application.d.ts +0 -5
- package/dist/src/internal/nitro/host/build-deployment-id.d.ts +0 -8
- package/dist/src/internal/nitro/host/build-extension.d.ts +0 -15
- package/dist/src/internal/nitro/host/build-vercel-agent-summary.d.ts +0 -34
- package/dist/src/internal/nitro/host/connection-drain-plugin.d.ts +0 -12
- package/dist/src/internal/nitro/host/copy-host-middleware.d.ts +0 -12
- package/dist/src/internal/nitro/host/create-host-nitro.d.ts +0 -7
- package/dist/src/internal/nitro/host/dev-authored-rebuild-coordinator.d.ts +0 -40
- package/dist/src/internal/nitro/host/dev-authored-source-watcher.d.ts +0 -24
- package/dist/src/internal/nitro/host/dev-build-host.d.ts +0 -83
- package/dist/src/internal/nitro/host/dev-build-operations.d.ts +0 -6
- package/dist/src/internal/nitro/host/dev-build-process.d.ts +0 -1
- package/dist/src/internal/nitro/host/dev-host-candidate.d.ts +0 -17
- package/dist/src/internal/nitro/host/dev-host-fingerprint.d.ts +0 -6
- package/dist/src/internal/nitro/host/dev-host-supervisor.d.ts +0 -61
- package/dist/src/internal/nitro/host/dev-host-workspace.d.ts +0 -10
- package/dist/src/internal/nitro/host/dev-runner.d.ts +0 -19
- package/dist/src/internal/nitro/host/dev-server-http.d.ts +0 -5
- package/dist/src/internal/nitro/host/dev-server-state.d.ts +0 -20
- package/dist/src/internal/nitro/host/dev-server-url.d.ts +0 -6
- package/dist/src/internal/nitro/host/dev-watcher-log.d.ts +0 -40
- package/dist/src/internal/nitro/host/dev-worker-entry.d.ts +0 -1
- package/dist/src/internal/nitro/host/dev-workflow-world-setup.d.ts +0 -10
- package/dist/src/internal/nitro/host/dispatch-schedule-in-dev.d.ts +0 -46
- package/dist/src/internal/nitro/host/extension-build-config.d.ts +0 -20
- package/dist/src/internal/nitro/host/extension-build-lock.d.ts +0 -9
- package/dist/src/internal/nitro/host/extension-declarations.d.ts +0 -10
- package/dist/src/internal/nitro/host/extension-distribution.d.ts +0 -32
- package/dist/src/internal/nitro/host/extension-external-dependencies.d.ts +0 -7
- package/dist/src/internal/nitro/host/extension-state-usage.d.ts +0 -7
- package/dist/src/internal/nitro/host/external-dependency-output-check.d.ts +0 -20
- package/dist/src/internal/nitro/host/externals-policy.d.ts +0 -21
- package/dist/src/internal/nitro/host/host-plugins.d.ts +0 -46
- package/dist/src/internal/nitro/host/host-routes.d.ts +0 -100
- package/dist/src/internal/nitro/host/host-spec.d.ts +0 -70
- package/dist/src/internal/nitro/host/hosted-graph-plugin.d.ts +0 -44
- package/dist/src/internal/nitro/host/instrumentation-entry.d.ts +0 -35
- package/dist/src/internal/nitro/host/local-schedules-runtime-plugin.d.ts +0 -5
- package/dist/src/internal/nitro/host/local-tracing-runtime.d.ts +0 -6
- package/dist/src/internal/nitro/host/ports.d.ts +0 -18
- package/dist/src/internal/nitro/host/prepare-application-host.d.ts +0 -26
- package/dist/src/internal/nitro/host/route-handlers.d.ts +0 -65
- package/dist/src/internal/nitro/host/runtime-plugin.d.ts +0 -17
- package/dist/src/internal/nitro/host/sandbox-shutdown-plugin.d.ts +0 -32
- package/dist/src/internal/nitro/host/skill-files-plugin.d.ts +0 -21
- package/dist/src/internal/nitro/host/stage-build-deployment-id.d.ts +0 -2
- package/dist/src/internal/nitro/host/start-development-server.d.ts +0 -20
- package/dist/src/internal/nitro/host/start-production-server.d.ts +0 -9
- package/dist/src/internal/nitro/host/timezone-schedules-runtime.d.ts +0 -13
- package/dist/src/internal/nitro/host/types.d.ts +0 -91
- package/dist/src/internal/nitro/host/vercel-build-output-config.d.ts +0 -49
- package/dist/src/internal/nitro/host/vercel-build-prewarm.d.ts +0 -12
- package/dist/src/internal/nitro/host/vercel-output.d.ts +0 -17
- package/dist/src/internal/nitro/host/vercel-schedule-name.d.ts +0 -17
- package/dist/src/internal/nitro/host/workflow-sandbox-runtime.d.ts +0 -2
- package/dist/src/internal/nitro/host/workspace-extensions.d.ts +0 -31
- package/dist/src/internal/nitro/host.d.ts +0 -4
- package/dist/src/internal/nitro/routes/agent-info/build-agent-info-response.d.ts +0 -11
- package/dist/src/internal/nitro/routes/agent-info/load-agent-info-data.d.ts +0 -25
- package/dist/src/internal/nitro/routes/channel-dispatch.d.ts +0 -20
- package/dist/src/internal/nitro/routes/channel-request-instrumentation.d.ts +0 -17
- package/dist/src/internal/nitro/routes/channel-route-context.d.ts +0 -39
- package/dist/src/internal/nitro/routes/connection-events.d.ts +0 -5
- package/dist/src/internal/nitro/routes/dev-runtime-artifacts.d.ts +0 -10
- package/dist/src/internal/nitro/routes/dev-schedule-dispatch.d.ts +0 -14
- package/dist/src/internal/nitro/routes/index.d.ts +0 -14
- package/dist/src/internal/nitro/routes/info.d.ts +0 -5
- package/dist/src/internal/nitro/routes/method-guard.d.ts +0 -6
- package/dist/src/internal/nitro/routes/route-invoke-tool.d.ts +0 -24
- package/dist/src/internal/nitro/routes/runtime-artifacts.d.ts +0 -29
- package/dist/src/internal/nitro/routes/runtime-stack.d.ts +0 -29
- package/dist/src/internal/nitro/routes/schedule-collection-consumer.d.ts +0 -9
- package/dist/src/internal/nitro/routes/schedule-task.d.ts +0 -24
- package/dist/src/internal/node-esm-compat-banner.d.ts +0 -45
- package/dist/src/internal/package-imports-hook.d.ts +0 -1
- package/dist/src/internal/package-imports.d.ts +0 -2
- package/dist/src/internal/package-name.d.ts +0 -8
- package/dist/src/internal/project-context.d.ts +0 -31
- package/dist/src/internal/resolve-model-endpoint-status.d.ts +0 -61
- package/dist/src/internal/runtime-model.d.ts +0 -21
- package/dist/src/internal/runtime-registry.d.ts +0 -76
- package/dist/src/internal/schedules/consumer-route.d.ts +0 -19
- package/dist/src/internal/schedules/dev-environment.d.ts +0 -2
- package/dist/src/internal/schedules/disabled.d.ts +0 -2
- package/dist/src/internal/schedules/verify-delivery.d.ts +0 -25
- package/dist/src/internal/user-agent.d.ts +0 -13
- package/dist/src/internal/vercel/api-resource.d.ts +0 -4
- package/dist/src/internal/vercel/assemble-eve-services.d.ts +0 -18
- package/dist/src/internal/vercel/build-agent-workspace.d.ts +0 -5
- package/dist/src/internal/vercel/build-command.d.ts +0 -5
- package/dist/src/internal/vercel/build-multi-agent-landing-page.d.ts +0 -3
- package/dist/src/internal/vercel/eve-service-contribution.d.ts +0 -32
- package/dist/src/internal/vercel/project-link.d.ts +0 -11
- package/dist/src/internal/vercel/vercel-service-config-operations.d.ts +0 -18
- package/dist/src/internal/vercel/vercel-service-name.d.ts +0 -6
- package/dist/src/internal/vercel-agent-summary.d.ts +0 -248
- package/dist/src/internal/workflow/builtins.d.ts +0 -34
- package/dist/src/internal/workflow/cancel-expired-development-run.d.ts +0 -2
- package/dist/src/internal/workflow/development-run-unavailable-error.d.ts +0 -15
- package/dist/src/internal/workflow/development-runtime-compatibility.d.ts +0 -12
- package/dist/src/internal/workflow/development-world-client.d.ts +0 -29
- package/dist/src/internal/workflow/development-world-codec.d.ts +0 -12
- package/dist/src/internal/workflow/development-world-protocol.d.ts +0 -36
- package/dist/src/internal/workflow/development-world-server.d.ts +0 -29
- package/dist/src/internal/workflow/index.d.ts +0 -6
- package/dist/src/internal/workflow/local-world-data-directory.d.ts +0 -3
- package/dist/src/internal/workflow/local-world-delivery-auth.d.ts +0 -17
- package/dist/src/internal/workflow/local-world-delivery-timeouts.d.ts +0 -7
- package/dist/src/internal/workflow/local-world-recovery.d.ts +0 -23
- package/dist/src/internal/workflow/owner-deployment-deleted.d.ts +0 -9
- package/dist/src/internal/workflow/queue-namespace.d.ts +0 -19
- package/dist/src/internal/workflow/runtime.d.ts +0 -5
- package/dist/src/internal/workflow/spec-version-default.d.ts +0 -9
- package/dist/src/internal/workflow/start-claim.d.ts +0 -16
- package/dist/src/internal/workflow/validate-world.d.ts +0 -16
- package/dist/src/internal/workflow/vercel-world-defaults.d.ts +0 -4
- package/dist/src/internal/workflow/world-compatibility.d.ts +0 -22
- package/dist/src/internal/workflow/world-target.d.ts +0 -7
- package/dist/src/internal/workflow-bundle/authored-workflow-directives.d.ts +0 -16
- package/dist/src/internal/workflow-bundle/builder.d.ts +0 -26
- package/dist/src/internal/workflow-bundle/flow-route.d.ts +0 -2
- package/dist/src/internal/workflow-bundle/framework-driver-cache.d.ts +0 -30
- package/dist/src/internal/workflow-bundle/nitro-step-entry.d.ts +0 -21
- package/dist/src/internal/workflow-bundle/stable-module-id.d.ts +0 -6
- package/dist/src/internal/workflow-bundle/workflow-core-shim.d.ts +0 -83
- package/dist/src/internal/workflow-bundle/workflow-directive-ast.d.ts +0 -8
- package/dist/src/internal/workflow-bundle/workflow-source-ast.d.ts +0 -6
- package/dist/src/internal/workflow-bundle/workflow-transformer.d.ts +0 -37
- package/dist/src/memory/definition.d.ts +0 -85
- package/dist/src/protocol/baggage.d.ts +0 -26
- package/dist/src/protocol/catalog-tools.d.ts +0 -12
- package/dist/src/protocol/interaction-json.d.ts +0 -68
- package/dist/src/protocol/remote-agent-protocol.d.ts +0 -45
- package/dist/src/protocol/reply-tool.d.ts +0 -2
- package/dist/src/protocol/reset-session.d.ts +0 -12
- package/dist/src/protocol/routes.d.ts +0 -160
- package/dist/src/protocol/runtime-tools.d.ts +0 -6
- package/dist/src/protocol/session-events/common.d.ts +0 -105
- package/dist/src/protocol/session-events/index.d.ts +0 -16
- package/dist/src/protocol/session-events/schemas.d.ts +0 -320
- package/dist/src/protocol/session-http.d.ts +0 -7
- package/dist/src/protocol/session-lines.d.ts +0 -19
- package/dist/src/protocol/session-projection/display-name.d.ts +0 -15
- package/dist/src/protocol/session-projection/index.d.ts +0 -4
- package/dist/src/protocol/session-projection/tree.d.ts +0 -72
- package/dist/src/protocol/traceparent.d.ts +0 -24
- package/dist/src/protocol/v26-interactions.d.ts +0 -11
- package/dist/src/protocol/v26-lines.d.ts +0 -5
- package/dist/src/public/channels/chat-sdk/attachment-refs.d.ts +0 -15
- package/dist/src/public/channels/chat-sdk/audience.d.ts +0 -9
- package/dist/src/public/channels/chat-sdk/authorization.d.ts +0 -6
- package/dist/src/public/channels/chat-sdk/fetch-message.d.ts +0 -10
- package/dist/src/public/channels/chat-sdk/input-actions.d.ts +0 -22
- package/dist/src/public/channels/chat-sdk/reply-context.d.ts +0 -15
- package/dist/src/public/channels/discord/attachments.d.ts +0 -15
- package/dist/src/public/channels/discord/audience.d.ts +0 -14
- package/dist/src/public/channels/discord/authorization.d.ts +0 -35
- package/dist/src/public/channels/discord/gateway/forwarder.d.ts +0 -14
- package/dist/src/public/channels/discord/hitl.d.ts +0 -48
- package/dist/src/public/channels/discord/responses.d.ts +0 -11
- package/dist/src/public/channels/discord/verifyInbound.d.ts +0 -6
- package/dist/src/public/channels/github/checkout.d.ts +0 -53
- package/dist/src/public/channels/github/constants.d.ts +0 -2
- package/dist/src/public/channels/github/dispatch.d.ts +0 -61
- package/dist/src/public/channels/github/limits.d.ts +0 -2
- package/dist/src/public/channels/linear/constants.d.ts +0 -2
- package/dist/src/public/channels/linear/hitl.d.ts +0 -9
- package/dist/src/public/channels/linear/inbound-uploads.d.ts +0 -21
- package/dist/src/public/channels/linq/inboundContent.d.ts +0 -17
- package/dist/src/public/channels/photon/attachments.d.ts +0 -24
- package/dist/src/public/channels/photon/inboundContent.d.ts +0 -11
- package/dist/src/public/channels/reply.d.ts +0 -22
- package/dist/src/public/channels/same-environment-oidc.d.ts +0 -7
- package/dist/src/public/channels/slack/action-status.d.ts +0 -14
- package/dist/src/public/channels/slack/answers.d.ts +0 -13
- package/dist/src/public/channels/slack/app-manifest.d.ts +0 -14
- package/dist/src/public/channels/slack/attachments.d.ts +0 -67
- package/dist/src/public/channels/slack/auth.d.ts +0 -27
- package/dist/src/public/channels/slack/connections.d.ts +0 -50
- package/dist/src/public/channels/slack/constants.d.ts +0 -7
- package/dist/src/public/channels/slack/inbound-content.d.ts +0 -4
- package/dist/src/public/channels/slack/interaction-cards.d.ts +0 -34
- package/dist/src/public/channels/slack/interactions.d.ts +0 -56
- package/dist/src/public/channels/slack/limits.d.ts +0 -103
- package/dist/src/public/channels/slack/model-context.d.ts +0 -34
- package/dist/src/public/channels/slack/mrkdwn.d.ts +0 -2
- package/dist/src/public/channels/slack/privacy.d.ts +0 -24
- package/dist/src/public/channels/slack/private-approval-delivery.d.ts +0 -34
- package/dist/src/public/channels/slack/request-card-render.d.ts +0 -51
- package/dist/src/public/channels/slack/request-cards.d.ts +0 -36
- package/dist/src/public/channels/slack/sign-in-cancel.d.ts +0 -18
- package/dist/src/public/channels/slack/slash-command.d.ts +0 -13
- package/dist/src/public/channels/slack/space.d.ts +0 -17
- package/dist/src/public/channels/slack/task-card.d.ts +0 -24
- package/dist/src/public/channels/slack/thread-status.d.ts +0 -33
- package/dist/src/public/channels/slack/utils.d.ts +0 -1
- package/dist/src/public/channels/teams/authorization.d.ts +0 -49
- package/dist/src/public/channels/teams/hitl.d.ts +0 -73
- package/dist/src/public/channels/teams/limits.d.ts +0 -8
- package/dist/src/public/channels/teams/space.d.ts +0 -9
- package/dist/src/public/channels/telegram/attachments.d.ts +0 -31
- package/dist/src/public/channels/telegram/audience.d.ts +0 -10
- package/dist/src/public/channels/telegram/authorization-callback.d.ts +0 -10
- package/dist/src/public/channels/telegram/authorization.d.ts +0 -15
- package/dist/src/public/channels/telegram/state.d.ts +0 -8
- package/dist/src/public/channels/text.d.ts +0 -4
- package/dist/src/public/channels/twilio/defaults.d.ts +0 -9
- package/dist/src/public/channels/twilio/routing.d.ts +0 -14
- package/dist/src/public/definitions/connections/protocol.d.ts +0 -12
- package/dist/src/public/definitions/removed-event-keys.d.ts +0 -2
- package/dist/src/public/memory/file/backends/default.d.ts +0 -7
- package/dist/src/public/memory/file/backends/lazy.d.ts +0 -3
- package/dist/src/public/models/openai/chatgpt/auth.d.ts +0 -4
- package/dist/src/public/models/openai/chatgpt/codex-app-server.d.ts +0 -41
- package/dist/src/public/models/openai/chatgpt/credential-store.d.ts +0 -28
- package/dist/src/public/models/openai/chatgpt/model.d.ts +0 -9
- package/dist/src/public/models/openai/chatgpt/oauth.d.ts +0 -22
- package/dist/src/public/models/openai/chatgpt/token-broker.d.ts +0 -34
- package/dist/src/public/models/openai/chatgpt/token.d.ts +0 -13
- package/dist/src/public/models/openai/chatgpt/transport.d.ts +0 -15
- package/dist/src/public/next/server.d.ts +0 -22
- package/dist/src/public/next/vercel-output-config.d.ts +0 -19
- package/dist/src/public/nuxt/production-origin.d.ts +0 -12
- package/dist/src/public/schedules/testing.d.ts +0 -1
- package/dist/src/runtime/actions/results.d.ts +0 -6
- package/dist/src/runtime/agent/bootstrap-model-utils.d.ts +0 -47
- package/dist/src/runtime/agent/bootstrap-model.d.ts +0 -7
- package/dist/src/runtime/agent/mock-model-adapter.d.ts +0 -19
- package/dist/src/runtime/agent/mock-model-fixtures.d.ts +0 -11
- package/dist/src/runtime/agent/mock-model-skill-selection.d.ts +0 -11
- package/dist/src/runtime/agent/mock-structured-output.d.ts +0 -5
- package/dist/src/runtime/agent/resolve-model.d.ts +0 -35
- package/dist/src/runtime/attributes/emit.d.ts +0 -32
- package/dist/src/runtime/authorization-context.d.ts +0 -19
- package/dist/src/runtime/cache-key.d.ts +0 -9
- package/dist/src/runtime/connections/approval-scope.d.ts +0 -9
- package/dist/src/runtime/connections/authorization-complete-page.d.ts +0 -23
- package/dist/src/runtime/connections/authorization-tokens.d.ts +0 -50
- package/dist/src/runtime/connections/events/actions.d.ts +0 -17
- package/dist/src/runtime/connections/events/delivery.d.ts +0 -10
- package/dist/src/runtime/connections/events/dispatch-step.d.ts +0 -20
- package/dist/src/runtime/connections/events/lifecycle-step.d.ts +0 -42
- package/dist/src/runtime/connections/events/owner.d.ts +0 -38
- package/dist/src/runtime/connections/events/owners.d.ts +0 -15
- package/dist/src/runtime/connections/events/path.d.ts +0 -4
- package/dist/src/runtime/connections/events/state.d.ts +0 -37
- package/dist/src/runtime/connections/events/workflow.d.ts +0 -28
- package/dist/src/runtime/connections/instance-identity.d.ts +0 -9
- package/dist/src/runtime/connections/mcp-client.d.ts +0 -88
- package/dist/src/runtime/connections/mcp-tracing.d.ts +0 -14
- package/dist/src/runtime/connections/openapi-client.d.ts +0 -42
- package/dist/src/runtime/connections/openapi-operations.d.ts +0 -34
- package/dist/src/runtime/connections/openapi-schema.d.ts +0 -44
- package/dist/src/runtime/connections/openapi-security.d.ts +0 -42
- package/dist/src/runtime/connections/openapi-spec.d.ts +0 -15
- package/dist/src/runtime/connections/principal.d.ts +0 -73
- package/dist/src/runtime/connections/provided-arguments.d.ts +0 -10
- package/dist/src/runtime/connections/registry-types.d.ts +0 -14
- package/dist/src/runtime/connections/registry.d.ts +0 -42
- package/dist/src/runtime/connections/resolve-authorization.d.ts +0 -11
- package/dist/src/runtime/connections/tool-result.d.ts +0 -27
- package/dist/src/runtime/development-generation.d.ts +0 -8
- package/dist/src/runtime/loaders/artifact-paths.d.ts +0 -21
- package/dist/src/runtime/loaders/bundled-artifacts.d.ts +0 -40
- package/dist/src/runtime/loaders/compile-metadata.d.ts +0 -14
- package/dist/src/runtime/loaders/manifest.d.ts +0 -21
- package/dist/src/runtime/loaders/model-metadata.d.ts +0 -4
- package/dist/src/runtime/loaders/module-map.d.ts +0 -21
- package/dist/src/runtime/prompt/compose.d.ts +0 -14
- package/dist/src/runtime/resolve-agent-graph.d.ts +0 -17
- package/dist/src/runtime/resolve-agent.d.ts +0 -18
- package/dist/src/runtime/resolve-channel.d.ts +0 -17
- package/dist/src/runtime/resolve-connection.d.ts +0 -20
- package/dist/src/runtime/resolve-definition.d.ts +0 -24
- package/dist/src/runtime/resolve-helpers.d.ts +0 -43
- package/dist/src/runtime/resolve-sandbox.d.ts +0 -4
- package/dist/src/runtime/resolve-tool.d.ts +0 -14
- package/dist/src/runtime/sandbox/prepared-artifacts.d.ts +0 -12
- package/dist/src/runtime/schedules/dispatch-occurrence.d.ts +0 -34
- package/dist/src/runtime/schedules/load-collection.d.ts +0 -14
- package/dist/src/runtime/schedules/named-scope.d.ts +0 -11
- package/dist/src/runtime/schedules/payload.d.ts +0 -24
- package/dist/src/runtime/schedules/queue-namespace.d.ts +0 -2
- package/dist/src/runtime/schedules/record.d.ts +0 -4
- package/dist/src/runtime/schedules/register.d.ts +0 -32
- package/dist/src/runtime/schedules/resolve-schedule.d.ts +0 -31
- package/dist/src/runtime/schedules/validation.d.ts +0 -6
- package/dist/src/runtime/sessions/compiled-session-agent.d.ts +0 -13
- package/dist/src/runtime/sessions/runtime-session.d.ts +0 -66
- package/dist/src/runtime/subagents/workflow-reference.d.ts +0 -8
- package/dist/src/runtime/validation.d.ts +0 -5
- package/dist/src/runtime/workspace/seed-files.d.ts +0 -12
- package/dist/src/runtime/workspace/spec.d.ts +0 -6
- package/dist/src/sandbox/providers.d.ts +0 -4
- package/dist/src/self-modification/credentials.d.ts +0 -6
- package/dist/src/self-modification/deployed-sandbox.d.ts +0 -9
- package/dist/src/self-modification/extension/classify-registry-item.d.ts +0 -22
- package/dist/src/self-modification/extension/config-schema.d.ts +0 -10
- package/dist/src/self-modification/extension/eve-add.d.ts +0 -61
- package/dist/src/self-modification/extension/local-only.d.ts +0 -5
- package/dist/src/self-modification/extension/subagents/agent/agent.d.ts +0 -30
- package/dist/src/self-modification/extension/subagents/agent/instructions.d.ts +0 -2
- package/dist/src/self-modification/extension/subagents/agent/sandbox.d.ts +0 -3
- package/dist/src/self-modification/extension/subagents/agent/skills/trace_analysis.d.ts +0 -10
- package/dist/src/self-modification/extension/subagents/agent/tools/edit_file.d.ts +0 -16
- package/dist/src/self-modification/extension/subagents/agent/tools/inspect_trace.d.ts +0 -128
- package/dist/src/self-modification/extension/subagents/agent/tools/inspect_trace_spans.d.ts +0 -80
- package/dist/src/self-modification/extension/subagents/agent/tools/registry_add.d.ts +0 -56
- package/dist/src/self-modification/extension/subagents/agent/tools/search_models.d.ts +0 -22
- package/dist/src/self-modification/extension/subagents/agent/tools/search_registry.d.ts +0 -100
- package/dist/src/self-modification/extension/subagents/agent/tools/search_traces.d.ts +0 -53
- package/dist/src/self-modification/extension/trace-inspection.d.ts +0 -15
- package/dist/src/self-modification/filesystem.d.ts +0 -7
- package/dist/src/self-modification/git-workspace.d.ts +0 -31
- package/dist/src/self-modification/git.d.ts +0 -10
- package/dist/src/self-modification/github-publisher.d.ts +0 -28
- package/dist/src/self-modification/identifiers.d.ts +0 -4
- package/dist/src/self-modification/mode.d.ts +0 -13
- package/dist/src/self-modification/network-policy.d.ts +0 -1
- package/dist/src/self-modification/proposal.d.ts +0 -37
- package/dist/src/self-modification/remote/config-schema.d.ts +0 -20
- package/dist/src/self-modification/remote/production-registry-add.d.ts +0 -42
- package/dist/src/self-modification/remote/subagents/agent/agent.d.ts +0 -7
- package/dist/src/self-modification/remote/subagents/agent/instructions.d.ts +0 -2
- package/dist/src/self-modification/remote/subagents/agent/sandbox.d.ts +0 -2
- package/dist/src/self-modification/remote/subagents/agent/tools/edit_file.d.ts +0 -1
- package/dist/src/self-modification/remote/subagents/agent/tools/publish.d.ts +0 -5
- package/dist/src/self-modification/remote/subagents/agent/tools/registry_add.d.ts +0 -30
- package/dist/src/self-modification/remote/subagents/agent/tools/search_models.d.ts +0 -1
- package/dist/src/self-modification/remote/subagents/agent/tools/search_registry.d.ts +0 -1
- package/dist/src/self-modification/scaffold.d.ts +0 -2
- package/dist/src/self-modification/setup.d.ts +0 -48
- package/dist/src/self-modification/subagent-guidance.d.ts +0 -15
- package/dist/src/self-modification/workspace-lock.d.ts +0 -2
- package/dist/src/services/dev-client/agent-info-probe.d.ts +0 -18
- package/dist/src/services/dev-client/client-options.d.ts +0 -25
- package/dist/src/services/dev-client/credential-gate.d.ts +0 -24
- package/dist/src/services/dev-client/local-host.d.ts +0 -4
- package/dist/src/services/dev-client/request-headers.d.ts +0 -54
- package/dist/src/services/dev-client/runtime-artifacts.d.ts +0 -28
- package/dist/src/services/dev-client/target.d.ts +0 -19
- package/dist/src/services/dev-client/vercel-auth-error.d.ts +0 -34
- package/dist/src/services/dev-client.d.ts +0 -42
- package/dist/src/services/inspect-application.d.ts +0 -23
- package/dist/src/setup/ai-gateway-api-key.d.ts +0 -16
- package/dist/src/setup/append-env.d.ts +0 -22
- package/dist/src/setup/ask-editable.d.ts +0 -22
- package/dist/src/setup/ask-signals.d.ts +0 -23
- package/dist/src/setup/ask.d.ts +0 -206
- package/dist/src/setup/boxes/apply-ai-gateway-credential.d.ts +0 -29
- package/dist/src/setup/boxes/deploy-project.d.ts +0 -73
- package/dist/src/setup/boxes/detect-ai-gateway.d.ts +0 -17
- package/dist/src/setup/boxes/link-project.d.ts +0 -34
- package/dist/src/setup/boxes/model-capabilities.d.ts +0 -24
- package/dist/src/setup/boxes/resolve-provisioning.d.ts +0 -76
- package/dist/src/setup/boxes/select-model.d.ts +0 -14
- package/dist/src/setup/cli/channel-setup-prompter.d.ts +0 -51
- package/dist/src/setup/cli/command-output.d.ts +0 -12
- package/dist/src/setup/cli/connection-add-prompter.d.ts +0 -8
- package/dist/src/setup/cli/index.d.ts +0 -8
- package/dist/src/setup/cli/option-row.d.ts +0 -100
- package/dist/src/setup/cli/prompt-ui.d.ts +0 -160
- package/dist/src/setup/cli/rail-log.d.ts +0 -51
- package/dist/src/setup/cli/select-component.d.ts +0 -90
- package/dist/src/setup/cli/select-option-codec.d.ts +0 -13
- package/dist/src/setup/cli/select-state.d.ts +0 -87
- package/dist/src/setup/cli/whimsy.d.ts +0 -16
- package/dist/src/setup/connect-provisioning.d.ts +0 -33
- package/dist/src/setup/connection-connector.d.ts +0 -45
- package/dist/src/setup/flows/chatgpt-auth.d.ts +0 -15
- package/dist/src/setup/flows/deploy.d.ts +0 -43
- package/dist/src/setup/flows/ensure-vercel-project.d.ts +0 -23
- package/dist/src/setup/flows/in-project.d.ts +0 -16
- package/dist/src/setup/flows/install-vercel-cli.d.ts +0 -47
- package/dist/src/setup/flows/link.d.ts +0 -63
- package/dist/src/setup/flows/login.d.ts +0 -53
- package/dist/src/setup/flows/model-login-connection.d.ts +0 -20
- package/dist/src/setup/flows/model-login-options.d.ts +0 -59
- package/dist/src/setup/flows/model-login-progress.d.ts +0 -7
- package/dist/src/setup/flows/model-login.d.ts +0 -26
- package/dist/src/setup/flows/model-source-change.d.ts +0 -44
- package/dist/src/setup/flows/model.d.ts +0 -7
- package/dist/src/setup/flows/provider.d.ts +0 -27
- package/dist/src/setup/flows/registry-session.d.ts +0 -61
- package/dist/src/setup/flows/registry.d.ts +0 -41
- package/dist/src/setup/flows/vercel-model-login.d.ts +0 -5
- package/dist/src/setup/headless.d.ts +0 -46
- package/dist/src/setup/human-action.d.ts +0 -23
- package/dist/src/setup/index.d.ts +0 -15
- package/dist/src/setup/integrations/discord/api.d.ts +0 -23
- package/dist/src/setup/integrations/discord/connect.d.ts +0 -24
- package/dist/src/setup/integrations/discord/daemon.d.ts +0 -18
- package/dist/src/setup/integrations/discord/setup.d.ts +0 -52
- package/dist/src/setup/integrations/file-memory/setup.d.ts +0 -15
- package/dist/src/setup/integrations/file-memory/vercel.d.ts +0 -103
- package/dist/src/setup/integrations/github/connect.d.ts +0 -28
- package/dist/src/setup/integrations/github/setup.d.ts +0 -44
- package/dist/src/setup/integrations/linear/connect.d.ts +0 -42
- package/dist/src/setup/integrations/linear/setup.d.ts +0 -31
- package/dist/src/setup/integrations/linq/connect.d.ts +0 -31
- package/dist/src/setup/integrations/linq/management.d.ts +0 -6
- package/dist/src/setup/integrations/linq/setup.d.ts +0 -18
- package/dist/src/setup/integrations/photon/connect.d.ts +0 -38
- package/dist/src/setup/integrations/photon/management.d.ts +0 -42
- package/dist/src/setup/integrations/photon/setup-flow.d.ts +0 -44
- package/dist/src/setup/integrations/photon/setup.d.ts +0 -1
- package/dist/src/setup/integrations/registry.d.ts +0 -4
- package/dist/src/setup/integrations/runner.d.ts +0 -32
- package/dist/src/setup/integrations/self-modification/setup.d.ts +0 -37
- package/dist/src/setup/integrations/shared/environment.d.ts +0 -16
- package/dist/src/setup/integrations/shared/prerequisite.d.ts +0 -25
- package/dist/src/setup/integrations/shared/scaffold.d.ts +0 -20
- package/dist/src/setup/integrations/shared/ui.d.ts +0 -26
- package/dist/src/setup/integrations/shared/vercel-project.d.ts +0 -12
- package/dist/src/setup/integrations/shopify/setup.d.ts +0 -21
- package/dist/src/setup/integrations/shopify/templates.d.ts +0 -1
- package/dist/src/setup/integrations/slack/setup.d.ts +0 -51
- package/dist/src/setup/integrations/teams/connect.d.ts +0 -22
- package/dist/src/setup/integrations/teams/setup.d.ts +0 -22
- package/dist/src/setup/integrations/telegram/connect.d.ts +0 -27
- package/dist/src/setup/integrations/telegram/management.d.ts +0 -6
- package/dist/src/setup/integrations/telegram/setup.d.ts +0 -25
- package/dist/src/setup/integrations/types.d.ts +0 -64
- package/dist/src/setup/integrations/web/auth-options.d.ts +0 -4
- package/dist/src/setup/integrations/web/auth-scaffold.d.ts +0 -7
- package/dist/src/setup/integrations/web/framework.d.ts +0 -8
- package/dist/src/setup/integrations/web/hosting.d.ts +0 -43
- package/dist/src/setup/integrations/web/provision-auth.d.ts +0 -3
- package/dist/src/setup/integrations/web/setup.d.ts +0 -25
- package/dist/src/setup/path-exists.d.ts +0 -1
- package/dist/src/setup/primitives/coding-agent-env.d.ts +0 -17
- package/dist/src/setup/primitives/index.d.ts +0 -4
- package/dist/src/setup/primitives/open-url.d.ts +0 -14
- package/dist/src/setup/primitives/pm/bun.d.ts +0 -10
- package/dist/src/setup/primitives/pm/index.d.ts +0 -11
- package/dist/src/setup/primitives/pm/npm.d.ts +0 -10
- package/dist/src/setup/primitives/pm/pnpm-build-policy.d.ts +0 -16
- package/dist/src/setup/primitives/pm/pnpm.d.ts +0 -46
- package/dist/src/setup/primitives/pm/process-result.d.ts +0 -35
- package/dist/src/setup/primitives/pm/run.d.ts +0 -38
- package/dist/src/setup/primitives/pm/shared.d.ts +0 -9
- package/dist/src/setup/primitives/pm/types.d.ts +0 -53
- package/dist/src/setup/primitives/pm/yarn.d.ts +0 -10
- package/dist/src/setup/primitives/process-abort.d.ts +0 -7
- package/dist/src/setup/primitives/process-output.d.ts +0 -25
- package/dist/src/setup/primitives/run-vercel.d.ts +0 -79
- package/dist/src/setup/project-name.d.ts +0 -5
- package/dist/src/setup/project-resolution.d.ts +0 -65
- package/dist/src/setup/prompter.d.ts +0 -274
- package/dist/src/setup/provider-settings.d.ts +0 -25
- package/dist/src/setup/question-options.d.ts +0 -15
- package/dist/src/setup/quit-guard.d.ts +0 -48
- package/dist/src/setup/registry-setup-client.d.ts +0 -21
- package/dist/src/setup/registry-setup-completion.d.ts +0 -3
- package/dist/src/setup/registry-setup-protocol.d.ts +0 -108
- package/dist/src/setup/run-vercel-link.d.ts +0 -10
- package/dist/src/setup/runner.d.ts +0 -52
- package/dist/src/setup/scaffold/channels-catalog.d.ts +0 -31
- package/dist/src/setup/scaffold/create/add-to-project.d.ts +0 -36
- package/dist/src/setup/scaffold/create/agent-paths.d.ts +0 -5
- package/dist/src/setup/scaffold/create/extension.d.ts +0 -30
- package/dist/src/setup/scaffold/create/instructions-template.d.ts +0 -1
- package/dist/src/setup/scaffold/create/web-template.d.ts +0 -99
- package/dist/src/setup/scaffold/create-in-place.d.ts +0 -1
- package/dist/src/setup/scaffold/files.d.ts +0 -10
- package/dist/src/setup/scaffold/index.d.ts +0 -9
- package/dist/src/setup/scaffold/update/dependencies.d.ts +0 -12
- package/dist/src/setup/scaffold/update/module-files.d.ts +0 -3
- package/dist/src/setup/scaffold/update/update-connection-connector.d.ts +0 -8
- package/dist/src/setup/scaffold/update/update-slack-channel.d.ts +0 -23
- package/dist/src/setup/scaffold/workspace-glob.d.ts +0 -4
- package/dist/src/setup/setup-question-wire.d.ts +0 -48
- package/dist/src/setup/slack-connect-create.d.ts +0 -49
- package/dist/src/setup/slack-connect-lifecycle.d.ts +0 -160
- package/dist/src/setup/slack-connect.d.ts +0 -79
- package/dist/src/setup/slack-setup-plan.d.ts +0 -72
- package/dist/src/setup/slackbot.d.ts +0 -125
- package/dist/src/setup/state.d.ts +0 -183
- package/dist/src/setup/step.d.ts +0 -49
- package/dist/src/setup/validate-gateway-key.d.ts +0 -30
- package/dist/src/setup/vercel-api-failure.d.ts +0 -7
- package/dist/src/setup/vercel-deployment.d.ts +0 -60
- package/dist/src/setup/vercel-project-api.d.ts +0 -45
- package/dist/src/setup/vercel-project-framework.d.ts +0 -24
- package/dist/src/setup/vercel-project.d.ts +0 -87
- package/dist/src/setup/vercel-trace-sampling.d.ts +0 -3
- package/dist/src/setup/verified-remote-agent.d.ts +0 -29
- package/dist/src/setup/verified-remote-client.d.ts +0 -30
- package/dist/src/setup/with-spinner.d.ts +0 -3
- package/dist/src/shared/action-label.d.ts +0 -12
- package/dist/src/shared/action-request-name.d.ts +0 -5
- package/dist/src/shared/agent-info-access.d.ts +0 -5
- package/dist/src/shared/answers-delivery-id.d.ts +0 -1
- package/dist/src/shared/async-iterable.d.ts +0 -2
- package/dist/src/shared/atomic-write-file.d.ts +0 -11
- package/dist/src/shared/built-server-start-failure.d.ts +0 -16
- package/dist/src/shared/chatgpt-model.d.ts +0 -16
- package/dist/src/shared/continuation-token.d.ts +0 -2
- package/dist/src/shared/conversation-identity.d.ts +0 -2
- package/dist/src/shared/default-agent-model.d.ts +0 -14
- package/dist/src/shared/dev-checks.d.ts +0 -8
- package/dist/src/shared/development-env-files.d.ts +0 -4
- package/dist/src/shared/errors.d.ts +0 -22
- package/dist/src/shared/eve-route-path.d.ts +0 -4
- package/dist/src/shared/extension-mount.d.ts +0 -2
- package/dist/src/shared/extension-package-contract.d.ts +0 -16
- package/dist/src/shared/format-duration.d.ts +0 -2
- package/dist/src/shared/framework-eve-integration.d.ts +0 -33
- package/dist/src/shared/gateway-model-catalog.d.ts +0 -44
- package/dist/src/shared/gateway-routing.d.ts +0 -20
- package/dist/src/shared/gateway-service-tier.d.ts +0 -20
- package/dist/src/shared/git.d.ts +0 -16
- package/dist/src/shared/guards.d.ts +0 -54
- package/dist/src/shared/html-to-markdown.d.ts +0 -21
- package/dist/src/shared/instrumentation-channel-kind.d.ts +0 -3
- package/dist/src/shared/json-schemas.d.ts +0 -10
- package/dist/src/shared/line-diff.d.ts +0 -11
- package/dist/src/shared/map-concurrent.d.ts +0 -2
- package/dist/src/shared/map-with-concurrency.d.ts +0 -2
- package/dist/src/shared/memory-state.d.ts +0 -12
- package/dist/src/shared/model-connection.d.ts +0 -17
- package/dist/src/shared/model-endpoint-status.d.ts +0 -33
- package/dist/src/shared/model-helper.d.ts +0 -26
- package/dist/src/shared/model-summary.d.ts +0 -8
- package/dist/src/shared/network-address.d.ts +0 -38
- package/dist/src/shared/objects.d.ts +0 -5
- package/dist/src/shared/package-name.d.ts +0 -4
- package/dist/src/shared/path-exists.d.ts +0 -9
- package/dist/src/shared/path-inside.d.ts +0 -2
- package/dist/src/shared/poll-until.d.ts +0 -5
- package/dist/src/shared/presentation-text.d.ts +0 -8
- package/dist/src/shared/principal-scope.d.ts +0 -2
- package/dist/src/shared/public-route-prefix.d.ts +0 -23
- package/dist/src/shared/read-optional-file.d.ts +0 -2
- package/dist/src/shared/rename-with-retry.d.ts +0 -5
- package/dist/src/shared/resolve-eve-binary.d.ts +0 -12
- package/dist/src/shared/restriction.d.ts +0 -13
- package/dist/src/shared/result.d.ts +0 -12
- package/dist/src/shared/run-errors.d.ts +0 -39
- package/dist/src/shared/sandbox-prepared-artifacts.d.ts +0 -16
- package/dist/src/shared/sandbox-recorded-data-error.d.ts +0 -4
- package/dist/src/shared/sandbox-tool-session-error.d.ts +0 -4
- package/dist/src/shared/schedule-collection-tools.d.ts +0 -11
- package/dist/src/shared/schedule-timezone.d.ts +0 -6
- package/dist/src/shared/session-auth.d.ts +0 -39
- package/dist/src/shared/shell-quote.d.ts +0 -2
- package/dist/src/shared/skill-package.d.ts +0 -49
- package/dist/src/shared/skill-paths.d.ts +0 -24
- package/dist/src/shared/text-boundaries.d.ts +0 -19
- package/dist/src/shared/token-usage-math.d.ts +0 -5
- package/dist/src/shared/trace-root.d.ts +0 -8
- package/dist/src/shared/ulid.d.ts +0 -33
- package/dist/src/shared/validate-authorization.d.ts +0 -21
- package/dist/src/shared/value-delta.d.ts +0 -40
- package/dist/src/shared/vercel-output-directory.d.ts +0 -2
- package/dist/src/shared/vercel-project.d.ts +0 -27
- package/dist/src/shared/wait-with-signal.d.ts +0 -2
- package/dist/src/shared/workflow-function-id.d.ts +0 -2
- package/dist/src/shared/workflow-sandbox.d.ts +0 -10
- package/dist/src/shared/workflow-tool-context.d.ts +0 -2
- package/dist/src/source-change/agent-config-ast.d.ts +0 -61
- package/dist/src/source-change/agent-config-string-path.d.ts +0 -18
- package/dist/src/source-change/apply-agent-model-settings.d.ts +0 -27
- package/dist/src/source-change/apply-model-selection.d.ts +0 -15
- package/dist/src/source-change/static-source-change.d.ts +0 -51
- package/dist/src/subagents/adapter-state.d.ts +0 -39
- package/dist/src/subagents/adapter.d.ts +0 -8
- package/dist/src/subagents/callback-route.d.ts +0 -2
- package/dist/src/subagents/event-proxy-step.d.ts +0 -23
- package/dist/src/subagents/hitl-proxy.d.ts +0 -47
- package/dist/src/subagents/parent-notification.d.ts +0 -47
- package/dist/src/subagents/protocol-two-callback.d.ts +0 -27
- package/dist/src/subagents/remote-route-url.d.ts +0 -2
- package/dist/src/tool-stubs/execute.d.ts +0 -10
- package/dist/src/tool-stubs/output.d.ts +0 -4
- package/dist/src/tool-stubs/playback.d.ts +0 -15
- package/dist/src/tool-stubs/rules.d.ts +0 -3
- package/dist/src/tool-stubs/schema.d.ts +0 -4
- package/dist/src/tool-stubs/target.d.ts +0 -8
- package/dist/src/tool-stubs/validate-targets.d.ts +0 -6
- package/dist/src/tools/agent-models.d.ts +0 -7
- package/dist/src/tools/framework/agent-contract.d.ts +0 -4
- package/dist/src/tools/provided/ask-question-body.d.ts +0 -10
- package/dist/src/tools/provided/ask-question-workflow.d.ts +0 -4
- package/dist/src/tools/provided/framework-tool.d.ts +0 -13
- package/dist/src/tools/provided/sleep-workflow.d.ts +0 -4
- package/dist/src/tools/provided/task-cancel.d.ts +0 -6
- package/dist/src/tools/provided/task-wait.d.ts +0 -9
- package/dist/src/tools/signature.d.ts +0 -16
- package/dist/src/tools/tool-label.d.ts +0 -1
- package/dist/src/tools/workflow-body.d.ts +0 -15
- package/dist/src/tools/workflow-program-input.d.ts +0 -6
- package/dist/src/tracing/eve/agent-approval-instrumentation.d.ts +0 -13
- package/dist/src/tracing/eve/agent-channel-delivery-instrumentation.d.ts +0 -7
- package/dist/src/tracing/eve/agent-memory-instrumentation.d.ts +0 -17
- package/dist/src/tracing/eve/agent-otel-provider.d.ts +0 -30
- package/dist/src/tracing/eve/agent-tool-instrumentation.d.ts +0 -43
- package/dist/src/tracing/eve/agent-trace-context-store.d.ts +0 -24
- package/dist/src/tracing/eve/agent-trace-context.d.ts +0 -3
- package/dist/src/tracing/eve/agent-trace-state.d.ts +0 -70
- package/dist/src/tracing/eve/batch-span-processor.d.ts +0 -25
- package/dist/src/tracing/eve/channel-audience-context.d.ts +0 -4
- package/dist/src/tracing/eve/connection-authorization.d.ts +0 -11
- package/dist/src/tracing/eve/connection-events.d.ts +0 -25
- package/dist/src/tracing/eve/content-span-processor.d.ts +0 -1
- package/dist/src/tracing/eve/conversation-context.d.ts +0 -15
- package/dist/src/tracing/eve/delegation.d.ts +0 -20
- package/dist/src/tracing/eve/gateway.d.ts +0 -22
- package/dist/src/tracing/eve/install-instrumentation-runtime.d.ts +0 -19
- package/dist/src/tracing/eve/invoke-tool-span.d.ts +0 -63
- package/dist/src/tracing/eve/mcp.d.ts +0 -30
- package/dist/src/tracing/eve/metadata.d.ts +0 -7
- package/dist/src/tracing/eve/operation-input.d.ts +0 -18
- package/dist/src/tracing/eve/policy.d.ts +0 -15
- package/dist/src/tracing/eve/profile.d.ts +0 -7
- package/dist/src/tracing/eve/session.d.ts +0 -32
- package/dist/src/tracing/eve/vercel-runtime-span-exporter.d.ts +0 -5
- package/dist/src/tracing/local/agent-trace-span-processor.d.ts +0 -16
- package/dist/src/tracing/local/inspection.d.ts +0 -15
- package/dist/src/tracing/local/instrumentation-runtime.d.ts +0 -7
- package/dist/src/tracing/local/trace-analysis.d.ts +0 -52
- package/dist/src/tracing/local/trace-discovery-index.d.ts +0 -13
- package/dist/src/tracing/local/trace-operations.d.ts +0 -13
- package/dist/src/tracing/local/trace-query.d.ts +0 -18
- package/dist/src/tracing/local/trace-reader.d.ts +0 -83
- package/dist/src/tracing/local/trace-retention.d.ts +0 -67
- package/dist/src/tracing/local/trace-span-processor.d.ts +0 -19
- package/dist/src/tracing/local/trace-summary.d.ts +0 -31
- package/dist/src/tracing/local/traces.d.ts +0 -27
- /package/dist/src/compiled/_chunks/{workflow → node}/LogRecord-CbGROCJy.js +0 -0
- /package/dist/src/compiled/_chunks/{workflow → node}/_eve-core-quickjs-entrypoint-stub-qIV0OaFz.js +0 -0
- /package/dist/src/compiled/_chunks/{workflow → node}/global-singleton-BNinwFrL.js +0 -0
- /package/dist/src/compiled/_chunks/{workflow → node}/private-DD2PSMRM.js +0 -0
- /package/dist/src/compiled/_chunks/{workflow → node}/queue-auth-C7YIFJ-G.js +0 -0
- /package/dist/src/compiled/_chunks/{workflow → node}/run-id-Ct9AjQDR.js +0 -0
- /package/dist/src/compiled/_chunks/{workflow → node}/workflow-routes-BaljomCk.js +0 -0
|
@@ -1,86 +1,81 @@
|
|
|
1
|
-
import{a as e,i as t,n,r,t as i}from"../../_chunks/node/rolldown-runtime-nUh0tHLY.js";import{t as a}from"../../_chunks/node/chunk-7WDLOIRP-B_IWkVtZ.js";import{_ as o,a as s,c,d as l,f as u,g as d,l as f,o as p,p as m,s as h,t as g,u as _,y as v}from"../../_chunks/node/chunk-KYABMAGK-CcVG0J1r.js";import{d as y,f as b,p as x,r as S}from"../../_chunks/node/chunk-NBSLXVG3-vW0EjHGA.js";import{a as C,c as w,d as T,f as E,g as D,h as O,i as k,l as A,m as j,n as M,o as N,r as P,s as F,t as I,u as L}from"../../_chunks/node/dist-DG0EQc0D.js";import{n as R,t as z}from"../../_chunks/node/retry-DrgXNq3T.js";import{t as B}from"../../_chunks/node/is-stream-k1ORVyb3.js";import{A as V,Ct as H,Dt as U,H as W,It as ee,Lt as te,N as ne,Pt as re,Q as ie,St as ae,Tt as oe,Y as se,_t as ce,at as G,ct as le,dt as ue,gt as de,ht as fe,j as pe,jt as me,mt as he,q as ge,vt as _e,xt as ve,yt as ye,z as be,zt as xe}from"../../_chunks/node/dist-C3CGuKzy.js";import Se from"node:process";import{AsyncLocalStorage as Ce}from"async_hooks";import{createHash as we,timingSafeEqual as Te}from"crypto";import Ee from"node:os";import De from"node:tty";var Oe=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ErrorCode=void 0,e.websocketErrorWithOriginal=r,e.platformErrorFromEvent=i,e.noReplyReceivedError=a,e.sendWhileDisconnectedError=o,e.sendWhileNotReadyError=s;var t;(function(e){e.SendWhileDisconnectedError=`slack_socket_mode_send_while_disconnected_error`,e.SendWhileNotReadyError=`slack_socket_mode_send_while_not_ready_error`,e.SendMessagePlatformError=`slack_socket_mode_send_message_platform_error`,e.WebsocketError=`slack_socket_mode_websocket_error`,e.NoReplyReceivedError=`slack_socket_mode_no_reply_received_error`,e.InitializationError=`slack_socket_mode_initialization_error`})(t||(e.ErrorCode=t={}));function n(e,t){let n=e;return n.code=t,n}function r(e){let r=n(Error(e.message),t.WebsocketError);return r.original=e,r}function i(e){let r=n(Error(`An API error occurred: ${e.error.msg}`),t.SendMessagePlatformError);return r.data=e,r}function a(){return n(Error(`Message sent but no server acknowledgement was received. This may be caused by the client changing connection state rather than any issue with the specific message. Check before resending.`),t.NoReplyReceivedError)}function o(){return n(Error(`Failed to send a WebSocket message as the client is not connected`),t.NoReplyReceivedError)}function s(){return n(Error(`Failed to send a WebSocket message as the client is not ready`),t.NoReplyReceivedError)}})),ke=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ConsoleLogger=e.LogLevel=void 0;var t;(function(e){e.ERROR=`error`,e.WARN=`warn`,e.INFO=`info`,e.DEBUG=`debug`})(t||(e.LogLevel=t={}));var n=class e{constructor(){this.level=t.INFO,this.name=``}getLevel(){return this.level}setLevel(e){this.level=e}setName(e){this.name=e}debug(...n){e.isMoreOrEqualSevere(t.DEBUG,this.level)&&console.debug(e.labels.get(t.DEBUG),this.name,...n)}info(...n){e.isMoreOrEqualSevere(t.INFO,this.level)&&console.info(e.labels.get(t.INFO),this.name,...n)}warn(...n){e.isMoreOrEqualSevere(t.WARN,this.level)&&console.warn(e.labels.get(t.WARN),this.name,...n)}error(...n){e.isMoreOrEqualSevere(t.ERROR,this.level)&&console.error(e.labels.get(t.ERROR),this.name,...n)}static isMoreOrEqualSevere(t,n){return e.severity[t]>=e.severity[n]}};e.ConsoleLogger=n,n.labels=(()=>{let e=Object.entries(t).map(([e,t])=>[t,`[${e}] `]);return new Map(e)})(),n.severity={[t.ERROR]:400,[t.WARN]:300,[t.INFO]:200,[t.DEBUG]:100}})),Ae=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.LogLevel=void 0;let t=ke();Object.defineProperty(e,"LogLevel",{enumerable:!0,get:function(){return t.LogLevel}});let n=0;e.default={getLogger:function(e,r,i){let a=n;n+=1;let o=i===void 0?new t.ConsoleLogger:i;return o.setName(`socket-mode:${e}:${a}`),r!==void 0&&o.setLevel(r),o}}})),je=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ErrorCode=void 0,e.errorWithCode=n,e.requestErrorWithOriginal=r,e.httpErrorFromResponse=i,e.platformErrorFromResult=a,e.rateLimitedErrorWithDelay=o;var t;(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`})(t||(e.ErrorCode=t={}));function n(e,t){let n=e;return n.code=t,n}function r(e,r){let i=n(Error(`A request error occurred: ${e.message}`),t.RequestError);return r&&(i.original=e),i}function i(e){let r=n(Error(`An HTTP protocol error occurred: statusCode = ${e.status}`),t.HTTPError);r.statusCode=e.status,r.statusMessage=e.statusText;let i={};for(let t of Object.keys(e.headers))t&&e.headers[t]&&(i[t]=e.headers[t]);return r.headers=i,r.body=e.data,r}function a(e){let r=n(Error(`An API error occurred: ${e.error}`),t.PlatformError);return r.data=e,r}function o(e){let r=n(Error(`A rate-limit has been reached, you may retry this request in ${e} seconds`),t.RateLimitedError);return r.retryAfter=e,r}})),Me=i(((e,t)=>{t.exports={name:`@slack/web-api`,version:`7.19.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:{type:`git`,url:`git+https://github.com/slackapi/node-slack-sdk.git`},homepage:`https://docs.slack.dev/tools/node-slack-sdk/web-api/`,publishConfig:{access:`public`},bugs:{url:`https://github.com/slackapi/node-slack-sdk/issues`},scripts:{build:`npm run build:clean && tsc`,"build:clean":`shx rm -rf ./dist`,docs:`npx typedoc --plugin typedoc-plugin-markdown`,prepack:`npm run build`,test:`npm run build && bash -c 'node --test-reporter=spec --test-reporter-destination=stdout --test-reporter=junit --test-reporter-destination=test-results.xml --import tsx --test src/*.test.ts'`,"test:coverage":`npm run build && node --experimental-test-coverage --test-reporter=spec --test-reporter-destination=stdout --test-reporter=lcov --test-reporter-destination=lcov.info --test-reporter=junit --test-reporter-destination=test-results.xml --import tsx --test src/*.test.ts`,"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:types":`tsd`,watch:`npx nodemon --watch 'src' --ext 'ts' --exec npm run build`},dependencies:{"@slack/logger":`^4.0.1`,"@slack/types":`^2.21.0`,"@types/node":`>=18`,"@types/retry":`0.12.0`,axios:`^1.16.0`,eventemitter3:`^5.0.1`,"form-data":`^4.0.4`,"is-electron":`2.2.2`,"is-stream":`^2`,"p-queue":`^6`,"p-retry":`^4`,retry:`^0.13.1`},devDependencies:{"@types/busboy":`^1.5.4`,"@types/sinon":`^21`,busboy:`^1`,nock:`^14`,sinon:`^21`,tsd:`^0.33.0`},tsd:{directory:`test/types`}}})),Ne=i(((e,n,r)=>{var i=r&&r.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),a=r&&r.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),o=r&&r.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(t){if(t&&t.__esModule)return t;var n={};if(t!=null)for(var r=e(t),o=0;o<r.length;o++)r[o]!=="default"&&i(n,t,r[o]);return a(n,t),n}})();Object.defineProperty(e,"__esModule",{value:!0}),e.addAppMetadata=m,e.getUserAgent=h;let s=o(t(`node:os`)),c=t(`node:path`),l=Me();function u(e){return e.replace(`/`,`:`)}function d(e){let t=``;for(let n of e)t+=n.charCodeAt(0)<=255?n:encodeURIComponent(n);return t}let f=`${u(l.name)}/${l.version} ${d((0,c.basename)(process.title))}/${process.version.replace(`v`,``)} ${s.platform()}/${s.release()}`,p={};function m({name:e,version:t}){p[u(e)]=t}function h(){let e=Object.entries(p).map(([e,t])=>`${e}/${t}`).join(` `);return(e.length>0?`${e} `:``)+f}})),Pe=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.LogLevel=void 0,e.getLogger=i;let t=ke();var n=ke();Object.defineProperty(e,"LogLevel",{enumerable:!0,get:function(){return n.LogLevel}});let r=0;function i(e,n,i){let a=r;r+=1;let o=i===void 0?new t.ConsoleLogger:i;return o.setName(`web-api:${e}:${a}`),n!==void 0&&o.setLevel(n),o}})),Fe=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.rapidRetryPolicy=e.fiveRetriesInFiveMinutes=e.tenRetriesInAboutThirtyMinutes=void 0,e.tenRetriesInAboutThirtyMinutes={retries:10,factor:1.96821,randomize:!0},e.fiveRetriesInFiveMinutes={retries:5,factor:3.86},e.rapidRetryPolicy={minTimeout:0,maxTimeout:1},e.default={tenRetriesInAboutThirtyMinutes:e.tenRetriesInAboutThirtyMinutes,fiveRetriesInFiveMinutes:e.fiveRetriesInFiveMinutes,rapidRetryPolicy:e.rapidRetryPolicy}})),Ie=i((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),Le=i((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),Re=i(((e,t,n)=>{var r=n&&n.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};Object.defineProperty(e,"__esModule",{value:!0}),e.ChatStreamer=void 0,e.ChatStreamer=class{constructor(e,t,n,r){this.buffer=``,this.client=e,this.logger=t,this.options={buffer_size:r.buffer_size??256},this.state=`starting`,this.streamArgs=n}get ts(){return this.streamTs}async append(e){if(this.state===`completed`)throw Error(`failed to append stream: stream state is ${this.state}`);let{markdown_text:t,chunks:n}=e,i=r(e,[`markdown_text`,`chunks`]);if(i.token&&(this.token=i.token),t&&(this.buffer+=t),this.buffer.length>=this.options.buffer_size||n)return await this.flushBuffer(Object.assign({chunks:n},i));let a={bufferLength:this.buffer.length,bufferSize:this.options.buffer_size,channel:this.streamArgs.channel,recipientTeamId:this.streamArgs.recipient_team_id,recipientUserId:this.streamArgs.recipient_user_id,threadTs:this.streamArgs.thread_ts};return this.logger.debug(`ChatStreamer appended to buffer: ${JSON.stringify(a)}`),null}async stop(e){if(this.state===`completed`)throw Error(`failed to stop stream: stream state is ${this.state}`);let t=e??{},{markdown_text:n,chunks:i}=t,a=r(t,[`markdown_text`,`chunks`]);if(a.token&&(this.token=a.token),n&&(this.buffer+=n),!this.streamTs){let e=await this.client.chat.startStream(Object.assign(Object.assign({},this.streamArgs),{token:this.token}));if(!e.ts)throw Error(`failed to stop stream: stream not started`);this.streamTs=e.ts,this.state=`in_progress`}let o=[];this.buffer.length>0&&o.push({type:`markdown_text`,text:this.buffer}),i&&o.push(...i);let s=await this.client.chat.stopStream(Object.assign({token:this.token,channel:this.streamArgs.channel,ts:this.streamTs,chunks:o},a));return this.state=`completed`,s}async flushBuffer(e){let t=e??{},{chunks:n}=t,i=r(t,[`chunks`]),a=[];if(this.buffer.length>0&&a.push({type:`markdown_text`,text:this.buffer}),n&&a.push(...n),!this.streamTs){let e=await this.client.chat.startStream(Object.assign(Object.assign(Object.assign({},this.streamArgs),{token:this.token,chunks:a}),i));return this.buffer=``,this.streamTs=e.ts,this.state=`in_progress`,e}let o=await this.client.chat.appendStream(Object.assign({token:this.token,channel:this.streamArgs.channel,ts:this.streamTs,chunks:a},i));return this.buffer=``,o}}})),ze=i(((e,n)=>{var r=t(`stream`).Stream,i=t(`util`);n.exports=a;function a(){this.source=null,this.dataSize=0,this.maxDataSize=1048576,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}i.inherits(a,r),a.create=function(e,t){var n=new this;for(var r in t||={},t)n[r]=t[r];n.source=e;var i=e.emit;return e.emit=function(){return n._handleEmit(arguments),i.apply(e,arguments)},e.on(`error`,function(){}),n.pauseStream&&e.pause(),n},Object.defineProperty(a.prototype,"readable",{configurable:!0,enumerable:!0,get:function(){return this.source.readable}}),a.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)},a.prototype.resume=function(){this._released||this.release(),this.source.resume()},a.prototype.pause=function(){this.source.pause()},a.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(e){this.emit.apply(this,e)}.bind(this)),this._bufferedEvents=[]},a.prototype.pipe=function(){var e=r.prototype.pipe.apply(this,arguments);return this.resume(),e},a.prototype._handleEmit=function(e){this._released?this.emit.apply(this,e):(e[0]===`data`&&(this.dataSize+=e[1].length,this._checkIfMaxDataSizeExceeded()),this._bufferedEvents.push(e))},a.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`,Error(e))}}})),Be=i(((e,n)=>{var r=t(`util`),i=t(`stream`).Stream,a=ze();n.exports=o;function o(){this.writable=!1,this.readable=!0,this.dataSize=0,this.maxDataSize=2097152,this.pauseStreams=!0,this._released=!1,this._streams=[],this._currentStream=null,this._insideLoop=!1,this._pendingNext=!1}r.inherits(o,i),o.create=function(e){var t=new this;for(var n in e||={},e)t[n]=e[n];return t},o.isStreamLike=function(e){return typeof e!=`function`&&typeof e!=`string`&&typeof e!=`boolean`&&typeof e!=`number`&&!Buffer.isBuffer(e)},o.prototype.append=function(e){if(o.isStreamLike(e)){if(!(e instanceof a)){var t=a.create(e,{maxDataSize:1/0,pauseStream:this.pauseStreams});e.on(`data`,this._checkDataSize.bind(this)),e=t}this._handleErrors(e),this.pauseStreams&&e.pause()}return this._streams.push(e),this},o.prototype.pipe=function(e,t){return i.prototype.pipe.call(this,e,t),this.resume(),e},o.prototype._getNext=function(){if(this._currentStream=null,this._insideLoop)this._pendingNext=!0;else{this._insideLoop=!0;try{do this._pendingNext=!1,this._realGetNext();while(this._pendingNext)}finally{this._insideLoop=!1}}},o.prototype._realGetNext=function(){var e=this._streams.shift();e===void 0?this.end():typeof e==`function`?e(function(e){o.isStreamLike(e)&&(e.on(`data`,this._checkDataSize.bind(this)),this._handleErrors(e)),this._pipeNext(e)}.bind(this)):this._pipeNext(e)},o.prototype._pipeNext=function(e){if(this._currentStream=e,o.isStreamLike(e))e.on(`end`,this._getNext.bind(this)),e.pipe(this,{end:!1});else{var t=e;this.write(t),this._getNext()}},o.prototype._handleErrors=function(e){var t=this;e.on(`error`,function(e){t._emitError(e)})},o.prototype.write=function(e){this.emit(`data`,e)},o.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&typeof this._currentStream.pause==`function`&&this._currentStream.pause(),this.emit(`pause`))},o.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`)},o.prototype.end=function(){this._reset(),this.emit(`end`)},o.prototype.destroy=function(){this._reset(),this.emit(`close`)},o.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null},o.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var e=`DelayedStream#maxDataSize of `+this.maxDataSize+` bytes exceeded.`;this._emitError(Error(e))}},o.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)},o.prototype._emitError=function(e){this._reset(),this.emit(`error`,e)}})),Ve=i(((e,t)=>{t.exports={"application/1d-interleaved-parityfec":{source:`iana`},"application/3gpdash-qoe-report+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/3gpp-ims+xml":{source:`iana`,compressible:!0},"application/3gpphal+json":{source:`iana`,compressible:!0},"application/3gpphalforms+json":{source:`iana`,compressible:!0},"application/a2l":{source:`iana`},"application/ace+cbor":{source:`iana`},"application/activemessage":{source:`iana`},"application/activity+json":{source:`iana`,compressible:!0},"application/alto-costmap+json":{source:`iana`,compressible:!0},"application/alto-costmapfilter+json":{source:`iana`,compressible:!0},"application/alto-directory+json":{source:`iana`,compressible:!0},"application/alto-endpointcost+json":{source:`iana`,compressible:!0},"application/alto-endpointcostparams+json":{source:`iana`,compressible:!0},"application/alto-endpointprop+json":{source:`iana`,compressible:!0},"application/alto-endpointpropparams+json":{source:`iana`,compressible:!0},"application/alto-error+json":{source:`iana`,compressible:!0},"application/alto-networkmap+json":{source:`iana`,compressible:!0},"application/alto-networkmapfilter+json":{source:`iana`,compressible:!0},"application/alto-updatestreamcontrol+json":{source:`iana`,compressible:!0},"application/alto-updatestreamparams+json":{source:`iana`,compressible:!0},"application/aml":{source:`iana`},"application/andrew-inset":{source:`iana`,extensions:[`ez`]},"application/applefile":{source:`iana`},"application/applixware":{source:`apache`,extensions:[`aw`]},"application/at+jwt":{source:`iana`},"application/atf":{source:`iana`},"application/atfx":{source:`iana`},"application/atom+xml":{source:`iana`,compressible:!0,extensions:[`atom`]},"application/atomcat+xml":{source:`iana`,compressible:!0,extensions:[`atomcat`]},"application/atomdeleted+xml":{source:`iana`,compressible:!0,extensions:[`atomdeleted`]},"application/atomicmail":{source:`iana`},"application/atomsvc+xml":{source:`iana`,compressible:!0,extensions:[`atomsvc`]},"application/atsc-dwd+xml":{source:`iana`,compressible:!0,extensions:[`dwd`]},"application/atsc-dynamic-event-message":{source:`iana`},"application/atsc-held+xml":{source:`iana`,compressible:!0,extensions:[`held`]},"application/atsc-rdt+json":{source:`iana`,compressible:!0},"application/atsc-rsat+xml":{source:`iana`,compressible:!0,extensions:[`rsat`]},"application/atxml":{source:`iana`},"application/auth-policy+xml":{source:`iana`,compressible:!0},"application/bacnet-xdd+zip":{source:`iana`,compressible:!1},"application/batch-smtp":{source:`iana`},"application/bdoc":{compressible:!1,extensions:[`bdoc`]},"application/beep+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/calendar+json":{source:`iana`,compressible:!0},"application/calendar+xml":{source:`iana`,compressible:!0,extensions:[`xcs`]},"application/call-completion":{source:`iana`},"application/cals-1840":{source:`iana`},"application/captive+json":{source:`iana`,compressible:!0},"application/cbor":{source:`iana`},"application/cbor-seq":{source:`iana`},"application/cccex":{source:`iana`},"application/ccmp+xml":{source:`iana`,compressible:!0},"application/ccxml+xml":{source:`iana`,compressible:!0,extensions:[`ccxml`]},"application/cdfx+xml":{source:`iana`,compressible:!0,extensions:[`cdfx`]},"application/cdmi-capability":{source:`iana`,extensions:[`cdmia`]},"application/cdmi-container":{source:`iana`,extensions:[`cdmic`]},"application/cdmi-domain":{source:`iana`,extensions:[`cdmid`]},"application/cdmi-object":{source:`iana`,extensions:[`cdmio`]},"application/cdmi-queue":{source:`iana`,extensions:[`cdmiq`]},"application/cdni":{source:`iana`},"application/cea":{source:`iana`},"application/cea-2018+xml":{source:`iana`,compressible:!0},"application/cellml+xml":{source:`iana`,compressible:!0},"application/cfw":{source:`iana`},"application/city+json":{source:`iana`,compressible:!0},"application/clr":{source:`iana`},"application/clue+xml":{source:`iana`,compressible:!0},"application/clue_info+xml":{source:`iana`,compressible:!0},"application/cms":{source:`iana`},"application/cnrp+xml":{source:`iana`,compressible:!0},"application/coap-group+json":{source:`iana`,compressible:!0},"application/coap-payload":{source:`iana`},"application/commonground":{source:`iana`},"application/conference-info+xml":{source:`iana`,compressible:!0},"application/cose":{source:`iana`},"application/cose-key":{source:`iana`},"application/cose-key-set":{source:`iana`},"application/cpl+xml":{source:`iana`,compressible:!0,extensions:[`cpl`]},"application/csrattrs":{source:`iana`},"application/csta+xml":{source:`iana`,compressible:!0},"application/cstadata+xml":{source:`iana`,compressible:!0},"application/csvm+json":{source:`iana`,compressible:!0},"application/cu-seeme":{source:`apache`,extensions:[`cu`]},"application/cwt":{source:`iana`},"application/cybercash":{source:`iana`},"application/dart":{compressible:!0},"application/dash+xml":{source:`iana`,compressible:!0,extensions:[`mpd`]},"application/dash-patch+xml":{source:`iana`,compressible:!0,extensions:[`mpp`]},"application/dashdelta":{source:`iana`},"application/davmount+xml":{source:`iana`,compressible:!0,extensions:[`davmount`]},"application/dca-rft":{source:`iana`},"application/dcd":{source:`iana`},"application/dec-dx":{source:`iana`},"application/dialog-info+xml":{source:`iana`,compressible:!0},"application/dicom":{source:`iana`},"application/dicom+json":{source:`iana`,compressible:!0},"application/dicom+xml":{source:`iana`,compressible:!0},"application/dii":{source:`iana`},"application/dit":{source:`iana`},"application/dns":{source:`iana`},"application/dns+json":{source:`iana`,compressible:!0},"application/dns-message":{source:`iana`},"application/docbook+xml":{source:`apache`,compressible:!0,extensions:[`dbk`]},"application/dots+cbor":{source:`iana`},"application/dskpp+xml":{source:`iana`,compressible:!0},"application/dssc+der":{source:`iana`,extensions:[`dssc`]},"application/dssc+xml":{source:`iana`,compressible:!0,extensions:[`xdssc`]},"application/dvcs":{source:`iana`},"application/ecmascript":{source:`iana`,compressible:!0,extensions:[`es`,`ecma`]},"application/edi-consent":{source:`iana`},"application/edi-x12":{source:`iana`,compressible:!1},"application/edifact":{source:`iana`,compressible:!1},"application/efi":{source:`iana`},"application/elm+json":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/elm+xml":{source:`iana`,compressible:!0},"application/emergencycalldata.cap+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/emergencycalldata.comment+xml":{source:`iana`,compressible:!0},"application/emergencycalldata.control+xml":{source:`iana`,compressible:!0},"application/emergencycalldata.deviceinfo+xml":{source:`iana`,compressible:!0},"application/emergencycalldata.ecall.msd":{source:`iana`},"application/emergencycalldata.providerinfo+xml":{source:`iana`,compressible:!0},"application/emergencycalldata.serviceinfo+xml":{source:`iana`,compressible:!0},"application/emergencycalldata.subscriberinfo+xml":{source:`iana`,compressible:!0},"application/emergencycalldata.veds+xml":{source:`iana`,compressible:!0},"application/emma+xml":{source:`iana`,compressible:!0,extensions:[`emma`]},"application/emotionml+xml":{source:`iana`,compressible:!0,extensions:[`emotionml`]},"application/encaprtp":{source:`iana`},"application/epp+xml":{source:`iana`,compressible:!0},"application/epub+zip":{source:`iana`,compressible:!1,extensions:[`epub`]},"application/eshop":{source:`iana`},"application/exi":{source:`iana`,extensions:[`exi`]},"application/expect-ct-report+json":{source:`iana`,compressible:!0},"application/express":{source:`iana`,extensions:[`exp`]},"application/fastinfoset":{source:`iana`},"application/fastsoap":{source:`iana`},"application/fdt+xml":{source:`iana`,compressible:!0,extensions:[`fdt`]},"application/fhir+json":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/fhir+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/fido.trusted-apps+json":{compressible:!0},"application/fits":{source:`iana`},"application/flexfec":{source:`iana`},"application/font-sfnt":{source:`iana`},"application/font-tdpfr":{source:`iana`,extensions:[`pfr`]},"application/font-woff":{source:`iana`,compressible:!1},"application/framework-attributes+xml":{source:`iana`,compressible:!0},"application/geo+json":{source:`iana`,compressible:!0,extensions:[`geojson`]},"application/geo+json-seq":{source:`iana`},"application/geopackage+sqlite3":{source:`iana`},"application/geoxacml+xml":{source:`iana`,compressible:!0},"application/gltf-buffer":{source:`iana`},"application/gml+xml":{source:`iana`,compressible:!0,extensions:[`gml`]},"application/gpx+xml":{source:`apache`,compressible:!0,extensions:[`gpx`]},"application/gxf":{source:`apache`,extensions:[`gxf`]},"application/gzip":{source:`iana`,compressible:!1,extensions:[`gz`]},"application/h224":{source:`iana`},"application/held+xml":{source:`iana`,compressible:!0},"application/hjson":{extensions:[`hjson`]},"application/http":{source:`iana`},"application/hyperstudio":{source:`iana`,extensions:[`stk`]},"application/ibe-key-request+xml":{source:`iana`,compressible:!0},"application/ibe-pkg-reply+xml":{source:`iana`,compressible:!0},"application/ibe-pp-data":{source:`iana`},"application/iges":{source:`iana`},"application/im-iscomposing+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/index":{source:`iana`},"application/index.cmd":{source:`iana`},"application/index.obj":{source:`iana`},"application/index.response":{source:`iana`},"application/index.vnd":{source:`iana`},"application/inkml+xml":{source:`iana`,compressible:!0,extensions:[`ink`,`inkml`]},"application/iotp":{source:`iana`},"application/ipfix":{source:`iana`,extensions:[`ipfix`]},"application/ipp":{source:`iana`},"application/isup":{source:`iana`},"application/its+xml":{source:`iana`,compressible:!0,extensions:[`its`]},"application/java-archive":{source:`apache`,compressible:!1,extensions:[`jar`,`war`,`ear`]},"application/java-serialized-object":{source:`apache`,compressible:!1,extensions:[`ser`]},"application/java-vm":{source:`apache`,compressible:!1,extensions:[`class`]},"application/javascript":{source:`iana`,charset:`UTF-8`,compressible:!0,extensions:[`js`,`mjs`]},"application/jf2feed+json":{source:`iana`,compressible:!0},"application/jose":{source:`iana`},"application/jose+json":{source:`iana`,compressible:!0},"application/jrd+json":{source:`iana`,compressible:!0},"application/jscalendar+json":{source:`iana`,compressible:!0},"application/json":{source:`iana`,charset:`UTF-8`,compressible:!0,extensions:[`json`,`map`]},"application/json-patch+json":{source:`iana`,compressible:!0},"application/json-seq":{source:`iana`},"application/json5":{extensions:[`json5`]},"application/jsonml+json":{source:`apache`,compressible:!0,extensions:[`jsonml`]},"application/jwk+json":{source:`iana`,compressible:!0},"application/jwk-set+json":{source:`iana`,compressible:!0},"application/jwt":{source:`iana`},"application/kpml-request+xml":{source:`iana`,compressible:!0},"application/kpml-response+xml":{source:`iana`,compressible:!0},"application/ld+json":{source:`iana`,compressible:!0,extensions:[`jsonld`]},"application/lgr+xml":{source:`iana`,compressible:!0,extensions:[`lgr`]},"application/link-format":{source:`iana`},"application/load-control+xml":{source:`iana`,compressible:!0},"application/lost+xml":{source:`iana`,compressible:!0,extensions:[`lostxml`]},"application/lostsync+xml":{source:`iana`,compressible:!0},"application/lpf+zip":{source:`iana`,compressible:!1},"application/lxf":{source:`iana`},"application/mac-binhex40":{source:`iana`,extensions:[`hqx`]},"application/mac-compactpro":{source:`apache`,extensions:[`cpt`]},"application/macwriteii":{source:`iana`},"application/mads+xml":{source:`iana`,compressible:!0,extensions:[`mads`]},"application/manifest+json":{source:`iana`,charset:`UTF-8`,compressible:!0,extensions:[`webmanifest`]},"application/marc":{source:`iana`,extensions:[`mrc`]},"application/marcxml+xml":{source:`iana`,compressible:!0,extensions:[`mrcx`]},"application/mathematica":{source:`iana`,extensions:[`ma`,`nb`,`mb`]},"application/mathml+xml":{source:`iana`,compressible:!0,extensions:[`mathml`]},"application/mathml-content+xml":{source:`iana`,compressible:!0},"application/mathml-presentation+xml":{source:`iana`,compressible:!0},"application/mbms-associated-procedure-description+xml":{source:`iana`,compressible:!0},"application/mbms-deregister+xml":{source:`iana`,compressible:!0},"application/mbms-envelope+xml":{source:`iana`,compressible:!0},"application/mbms-msk+xml":{source:`iana`,compressible:!0},"application/mbms-msk-response+xml":{source:`iana`,compressible:!0},"application/mbms-protection-description+xml":{source:`iana`,compressible:!0},"application/mbms-reception-report+xml":{source:`iana`,compressible:!0},"application/mbms-register+xml":{source:`iana`,compressible:!0},"application/mbms-register-response+xml":{source:`iana`,compressible:!0},"application/mbms-schedule+xml":{source:`iana`,compressible:!0},"application/mbms-user-service-description+xml":{source:`iana`,compressible:!0},"application/mbox":{source:`iana`,extensions:[`mbox`]},"application/media-policy-dataset+xml":{source:`iana`,compressible:!0,extensions:[`mpf`]},"application/media_control+xml":{source:`iana`,compressible:!0},"application/mediaservercontrol+xml":{source:`iana`,compressible:!0,extensions:[`mscml`]},"application/merge-patch+json":{source:`iana`,compressible:!0},"application/metalink+xml":{source:`apache`,compressible:!0,extensions:[`metalink`]},"application/metalink4+xml":{source:`iana`,compressible:!0,extensions:[`meta4`]},"application/mets+xml":{source:`iana`,compressible:!0,extensions:[`mets`]},"application/mf4":{source:`iana`},"application/mikey":{source:`iana`},"application/mipc":{source:`iana`},"application/missing-blocks+cbor-seq":{source:`iana`},"application/mmt-aei+xml":{source:`iana`,compressible:!0,extensions:[`maei`]},"application/mmt-usd+xml":{source:`iana`,compressible:!0,extensions:[`musd`]},"application/mods+xml":{source:`iana`,compressible:!0,extensions:[`mods`]},"application/moss-keys":{source:`iana`},"application/moss-signature":{source:`iana`},"application/mosskey-data":{source:`iana`},"application/mosskey-request":{source:`iana`},"application/mp21":{source:`iana`,extensions:[`m21`,`mp21`]},"application/mp4":{source:`iana`,extensions:[`mp4s`,`m4p`]},"application/mpeg4-generic":{source:`iana`},"application/mpeg4-iod":{source:`iana`},"application/mpeg4-iod-xmt":{source:`iana`},"application/mrb-consumer+xml":{source:`iana`,compressible:!0},"application/mrb-publish+xml":{source:`iana`,compressible:!0},"application/msc-ivr+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/msc-mixer+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/msword":{source:`iana`,compressible:!1,extensions:[`doc`,`dot`]},"application/mud+json":{source:`iana`,compressible:!0},"application/multipart-core":{source:`iana`},"application/mxf":{source:`iana`,extensions:[`mxf`]},"application/n-quads":{source:`iana`,extensions:[`nq`]},"application/n-triples":{source:`iana`,extensions:[`nt`]},"application/nasdata":{source:`iana`},"application/news-checkgroups":{source:`iana`,charset:`US-ASCII`},"application/news-groupinfo":{source:`iana`,charset:`US-ASCII`},"application/news-transmission":{source:`iana`},"application/nlsml+xml":{source:`iana`,compressible:!0},"application/node":{source:`iana`,extensions:[`cjs`]},"application/nss":{source:`iana`},"application/oauth-authz-req+jwt":{source:`iana`},"application/oblivious-dns-message":{source:`iana`},"application/ocsp-request":{source:`iana`},"application/ocsp-response":{source:`iana`},"application/octet-stream":{source:`iana`,compressible:!1,extensions:[`bin`,`dms`,`lrf`,`mar`,`so`,`dist`,`distz`,`pkg`,`bpk`,`dump`,`elc`,`deploy`,`exe`,`dll`,`deb`,`dmg`,`iso`,`img`,`msi`,`msp`,`msm`,`buffer`]},"application/oda":{source:`iana`,extensions:[`oda`]},"application/odm+xml":{source:`iana`,compressible:!0},"application/odx":{source:`iana`},"application/oebps-package+xml":{source:`iana`,compressible:!0,extensions:[`opf`]},"application/ogg":{source:`iana`,compressible:!1,extensions:[`ogx`]},"application/omdoc+xml":{source:`apache`,compressible:!0,extensions:[`omdoc`]},"application/onenote":{source:`apache`,extensions:[`onetoc`,`onetoc2`,`onetmp`,`onepkg`]},"application/opc-nodeset+xml":{source:`iana`,compressible:!0},"application/oscore":{source:`iana`},"application/oxps":{source:`iana`,extensions:[`oxps`]},"application/p21":{source:`iana`},"application/p21+zip":{source:`iana`,compressible:!1},"application/p2p-overlay+xml":{source:`iana`,compressible:!0,extensions:[`relo`]},"application/parityfec":{source:`iana`},"application/passport":{source:`iana`},"application/patch-ops-error+xml":{source:`iana`,compressible:!0,extensions:[`xer`]},"application/pdf":{source:`iana`,compressible:!1,extensions:[`pdf`]},"application/pdx":{source:`iana`},"application/pem-certificate-chain":{source:`iana`},"application/pgp-encrypted":{source:`iana`,compressible:!1,extensions:[`pgp`]},"application/pgp-keys":{source:`iana`,extensions:[`asc`]},"application/pgp-signature":{source:`iana`,extensions:[`asc`,`sig`]},"application/pics-rules":{source:`apache`,extensions:[`prf`]},"application/pidf+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/pidf-diff+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/pkcs10":{source:`iana`,extensions:[`p10`]},"application/pkcs12":{source:`iana`},"application/pkcs7-mime":{source:`iana`,extensions:[`p7m`,`p7c`]},"application/pkcs7-signature":{source:`iana`,extensions:[`p7s`]},"application/pkcs8":{source:`iana`,extensions:[`p8`]},"application/pkcs8-encrypted":{source:`iana`},"application/pkix-attr-cert":{source:`iana`,extensions:[`ac`]},"application/pkix-cert":{source:`iana`,extensions:[`cer`]},"application/pkix-crl":{source:`iana`,extensions:[`crl`]},"application/pkix-pkipath":{source:`iana`,extensions:[`pkipath`]},"application/pkixcmp":{source:`iana`,extensions:[`pki`]},"application/pls+xml":{source:`iana`,compressible:!0,extensions:[`pls`]},"application/poc-settings+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/postscript":{source:`iana`,compressible:!0,extensions:[`ai`,`eps`,`ps`]},"application/ppsp-tracker+json":{source:`iana`,compressible:!0},"application/problem+json":{source:`iana`,compressible:!0},"application/problem+xml":{source:`iana`,compressible:!0},"application/provenance+xml":{source:`iana`,compressible:!0,extensions:[`provx`]},"application/prs.alvestrand.titrax-sheet":{source:`iana`},"application/prs.cww":{source:`iana`,extensions:[`cww`]},"application/prs.cyn":{source:`iana`,charset:`7-BIT`},"application/prs.hpub+zip":{source:`iana`,compressible:!1},"application/prs.nprend":{source:`iana`},"application/prs.plucker":{source:`iana`},"application/prs.rdf-xml-crypt":{source:`iana`},"application/prs.xsf+xml":{source:`iana`,compressible:!0},"application/pskc+xml":{source:`iana`,compressible:!0,extensions:[`pskcxml`]},"application/pvd+json":{source:`iana`,compressible:!0},"application/qsig":{source:`iana`},"application/raml+yaml":{compressible:!0,extensions:[`raml`]},"application/raptorfec":{source:`iana`},"application/rdap+json":{source:`iana`,compressible:!0},"application/rdf+xml":{source:`iana`,compressible:!0,extensions:[`rdf`,`owl`]},"application/reginfo+xml":{source:`iana`,compressible:!0,extensions:[`rif`]},"application/relax-ng-compact-syntax":{source:`iana`,extensions:[`rnc`]},"application/remote-printing":{source:`iana`},"application/reputon+json":{source:`iana`,compressible:!0},"application/resource-lists+xml":{source:`iana`,compressible:!0,extensions:[`rl`]},"application/resource-lists-diff+xml":{source:`iana`,compressible:!0,extensions:[`rld`]},"application/rfc+xml":{source:`iana`,compressible:!0},"application/riscos":{source:`iana`},"application/rlmi+xml":{source:`iana`,compressible:!0},"application/rls-services+xml":{source:`iana`,compressible:!0,extensions:[`rs`]},"application/route-apd+xml":{source:`iana`,compressible:!0,extensions:[`rapd`]},"application/route-s-tsid+xml":{source:`iana`,compressible:!0,extensions:[`sls`]},"application/route-usd+xml":{source:`iana`,compressible:!0,extensions:[`rusd`]},"application/rpki-ghostbusters":{source:`iana`,extensions:[`gbr`]},"application/rpki-manifest":{source:`iana`,extensions:[`mft`]},"application/rpki-publication":{source:`iana`},"application/rpki-roa":{source:`iana`,extensions:[`roa`]},"application/rpki-updown":{source:`iana`},"application/rsd+xml":{source:`apache`,compressible:!0,extensions:[`rsd`]},"application/rss+xml":{source:`apache`,compressible:!0,extensions:[`rss`]},"application/rtf":{source:`iana`,compressible:!0,extensions:[`rtf`]},"application/rtploopback":{source:`iana`},"application/rtx":{source:`iana`},"application/samlassertion+xml":{source:`iana`,compressible:!0},"application/samlmetadata+xml":{source:`iana`,compressible:!0},"application/sarif+json":{source:`iana`,compressible:!0},"application/sarif-external-properties+json":{source:`iana`,compressible:!0},"application/sbe":{source:`iana`},"application/sbml+xml":{source:`iana`,compressible:!0,extensions:[`sbml`]},"application/scaip+xml":{source:`iana`,compressible:!0},"application/scim+json":{source:`iana`,compressible:!0},"application/scvp-cv-request":{source:`iana`,extensions:[`scq`]},"application/scvp-cv-response":{source:`iana`,extensions:[`scs`]},"application/scvp-vp-request":{source:`iana`,extensions:[`spq`]},"application/scvp-vp-response":{source:`iana`,extensions:[`spp`]},"application/sdp":{source:`iana`,extensions:[`sdp`]},"application/secevent+jwt":{source:`iana`},"application/senml+cbor":{source:`iana`},"application/senml+json":{source:`iana`,compressible:!0},"application/senml+xml":{source:`iana`,compressible:!0,extensions:[`senmlx`]},"application/senml-etch+cbor":{source:`iana`},"application/senml-etch+json":{source:`iana`,compressible:!0},"application/senml-exi":{source:`iana`},"application/sensml+cbor":{source:`iana`},"application/sensml+json":{source:`iana`,compressible:!0},"application/sensml+xml":{source:`iana`,compressible:!0,extensions:[`sensmlx`]},"application/sensml-exi":{source:`iana`},"application/sep+xml":{source:`iana`,compressible:!0},"application/sep-exi":{source:`iana`},"application/session-info":{source:`iana`},"application/set-payment":{source:`iana`},"application/set-payment-initiation":{source:`iana`,extensions:[`setpay`]},"application/set-registration":{source:`iana`},"application/set-registration-initiation":{source:`iana`,extensions:[`setreg`]},"application/sgml":{source:`iana`},"application/sgml-open-catalog":{source:`iana`},"application/shf+xml":{source:`iana`,compressible:!0,extensions:[`shf`]},"application/sieve":{source:`iana`,extensions:[`siv`,`sieve`]},"application/simple-filter+xml":{source:`iana`,compressible:!0},"application/simple-message-summary":{source:`iana`},"application/simplesymbolcontainer":{source:`iana`},"application/sipc":{source:`iana`},"application/slate":{source:`iana`},"application/smil":{source:`iana`},"application/smil+xml":{source:`iana`,compressible:!0,extensions:[`smi`,`smil`]},"application/smpte336m":{source:`iana`},"application/soap+fastinfoset":{source:`iana`},"application/soap+xml":{source:`iana`,compressible:!0},"application/sparql-query":{source:`iana`,extensions:[`rq`]},"application/sparql-results+xml":{source:`iana`,compressible:!0,extensions:[`srx`]},"application/spdx+json":{source:`iana`,compressible:!0},"application/spirits-event+xml":{source:`iana`,compressible:!0},"application/sql":{source:`iana`},"application/srgs":{source:`iana`,extensions:[`gram`]},"application/srgs+xml":{source:`iana`,compressible:!0,extensions:[`grxml`]},"application/sru+xml":{source:`iana`,compressible:!0,extensions:[`sru`]},"application/ssdl+xml":{source:`apache`,compressible:!0,extensions:[`ssdl`]},"application/ssml+xml":{source:`iana`,compressible:!0,extensions:[`ssml`]},"application/stix+json":{source:`iana`,compressible:!0},"application/swid+xml":{source:`iana`,compressible:!0,extensions:[`swidtag`]},"application/tamp-apex-update":{source:`iana`},"application/tamp-apex-update-confirm":{source:`iana`},"application/tamp-community-update":{source:`iana`},"application/tamp-community-update-confirm":{source:`iana`},"application/tamp-error":{source:`iana`},"application/tamp-sequence-adjust":{source:`iana`},"application/tamp-sequence-adjust-confirm":{source:`iana`},"application/tamp-status-query":{source:`iana`},"application/tamp-status-response":{source:`iana`},"application/tamp-update":{source:`iana`},"application/tamp-update-confirm":{source:`iana`},"application/tar":{compressible:!0},"application/taxii+json":{source:`iana`,compressible:!0},"application/td+json":{source:`iana`,compressible:!0},"application/tei+xml":{source:`iana`,compressible:!0,extensions:[`tei`,`teicorpus`]},"application/tetra_isi":{source:`iana`},"application/thraud+xml":{source:`iana`,compressible:!0,extensions:[`tfi`]},"application/timestamp-query":{source:`iana`},"application/timestamp-reply":{source:`iana`},"application/timestamped-data":{source:`iana`,extensions:[`tsd`]},"application/tlsrpt+gzip":{source:`iana`},"application/tlsrpt+json":{source:`iana`,compressible:!0},"application/tnauthlist":{source:`iana`},"application/token-introspection+jwt":{source:`iana`},"application/toml":{compressible:!0,extensions:[`toml`]},"application/trickle-ice-sdpfrag":{source:`iana`},"application/trig":{source:`iana`,extensions:[`trig`]},"application/ttml+xml":{source:`iana`,compressible:!0,extensions:[`ttml`]},"application/tve-trigger":{source:`iana`},"application/tzif":{source:`iana`},"application/tzif-leap":{source:`iana`},"application/ubjson":{compressible:!1,extensions:[`ubj`]},"application/ulpfec":{source:`iana`},"application/urc-grpsheet+xml":{source:`iana`,compressible:!0},"application/urc-ressheet+xml":{source:`iana`,compressible:!0,extensions:[`rsheet`]},"application/urc-targetdesc+xml":{source:`iana`,compressible:!0,extensions:[`td`]},"application/urc-uisocketdesc+xml":{source:`iana`,compressible:!0},"application/vcard+json":{source:`iana`,compressible:!0},"application/vcard+xml":{source:`iana`,compressible:!0},"application/vemmi":{source:`iana`},"application/vividence.scriptfile":{source:`apache`},"application/vnd.1000minds.decision-model+xml":{source:`iana`,compressible:!0,extensions:[`1km`]},"application/vnd.3gpp-prose+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp-prose-pc3ch+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp-v2x-local-service-information":{source:`iana`},"application/vnd.3gpp.5gnas":{source:`iana`},"application/vnd.3gpp.access-transfer-events+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.bsf+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.gmop+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.gtpc":{source:`iana`},"application/vnd.3gpp.interworking-data":{source:`iana`},"application/vnd.3gpp.lpp":{source:`iana`},"application/vnd.3gpp.mc-signalling-ear":{source:`iana`},"application/vnd.3gpp.mcdata-affiliation-command+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcdata-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcdata-payload":{source:`iana`},"application/vnd.3gpp.mcdata-service-config+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcdata-signalling":{source:`iana`},"application/vnd.3gpp.mcdata-ue-config+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcdata-user-profile+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-affiliation-command+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-floor-request+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-location-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-service-config+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-signed+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-ue-config+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-ue-init-config+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-user-profile+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcvideo-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcvideo-location-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcvideo-service-config+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcvideo-transmission-request+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcvideo-ue-config+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcvideo-user-profile+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mid-call+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.ngap":{source:`iana`},"application/vnd.3gpp.pfcp":{source:`iana`},"application/vnd.3gpp.pic-bw-large":{source:`iana`,extensions:[`plb`]},"application/vnd.3gpp.pic-bw-small":{source:`iana`,extensions:[`psb`]},"application/vnd.3gpp.pic-bw-var":{source:`iana`,extensions:[`pvb`]},"application/vnd.3gpp.s1ap":{source:`iana`},"application/vnd.3gpp.sms":{source:`iana`},"application/vnd.3gpp.sms+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.srvcc-ext+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.srvcc-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.state-and-event-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.ussd+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp2.bcmcsinfo+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp2.sms":{source:`iana`},"application/vnd.3gpp2.tcap":{source:`iana`,extensions:[`tcap`]},"application/vnd.3lightssoftware.imagescal":{source:`iana`},"application/vnd.3m.post-it-notes":{source:`iana`,extensions:[`pwn`]},"application/vnd.accpac.simply.aso":{source:`iana`,extensions:[`aso`]},"application/vnd.accpac.simply.imp":{source:`iana`,extensions:[`imp`]},"application/vnd.acucobol":{source:`iana`,extensions:[`acu`]},"application/vnd.acucorp":{source:`iana`,extensions:[`atc`,`acutc`]},"application/vnd.adobe.air-application-installer-package+zip":{source:`apache`,compressible:!1,extensions:[`air`]},"application/vnd.adobe.flash.movie":{source:`iana`},"application/vnd.adobe.formscentral.fcdt":{source:`iana`,extensions:[`fcdt`]},"application/vnd.adobe.fxp":{source:`iana`,extensions:[`fxp`,`fxpl`]},"application/vnd.adobe.partial-upload":{source:`iana`},"application/vnd.adobe.xdp+xml":{source:`iana`,compressible:!0,extensions:[`xdp`]},"application/vnd.adobe.xfdf":{source:`iana`,extensions:[`xfdf`]},"application/vnd.aether.imp":{source:`iana`},"application/vnd.afpc.afplinedata":{source:`iana`},"application/vnd.afpc.afplinedata-pagedef":{source:`iana`},"application/vnd.afpc.cmoca-cmresource":{source:`iana`},"application/vnd.afpc.foca-charset":{source:`iana`},"application/vnd.afpc.foca-codedfont":{source:`iana`},"application/vnd.afpc.foca-codepage":{source:`iana`},"application/vnd.afpc.modca":{source:`iana`},"application/vnd.afpc.modca-cmtable":{source:`iana`},"application/vnd.afpc.modca-formdef":{source:`iana`},"application/vnd.afpc.modca-mediummap":{source:`iana`},"application/vnd.afpc.modca-objectcontainer":{source:`iana`},"application/vnd.afpc.modca-overlay":{source:`iana`},"application/vnd.afpc.modca-pagesegment":{source:`iana`},"application/vnd.age":{source:`iana`,extensions:[`age`]},"application/vnd.ah-barcode":{source:`iana`},"application/vnd.ahead.space":{source:`iana`,extensions:[`ahead`]},"application/vnd.airzip.filesecure.azf":{source:`iana`,extensions:[`azf`]},"application/vnd.airzip.filesecure.azs":{source:`iana`,extensions:[`azs`]},"application/vnd.amadeus+json":{source:`iana`,compressible:!0},"application/vnd.amazon.ebook":{source:`apache`,extensions:[`azw`]},"application/vnd.amazon.mobi8-ebook":{source:`iana`},"application/vnd.americandynamics.acc":{source:`iana`,extensions:[`acc`]},"application/vnd.amiga.ami":{source:`iana`,extensions:[`ami`]},"application/vnd.amundsen.maze+xml":{source:`iana`,compressible:!0},"application/vnd.android.ota":{source:`iana`},"application/vnd.android.package-archive":{source:`apache`,compressible:!1,extensions:[`apk`]},"application/vnd.anki":{source:`iana`},"application/vnd.anser-web-certificate-issue-initiation":{source:`iana`,extensions:[`cii`]},"application/vnd.anser-web-funds-transfer-initiation":{source:`apache`,extensions:[`fti`]},"application/vnd.antix.game-component":{source:`iana`,extensions:[`atx`]},"application/vnd.apache.arrow.file":{source:`iana`},"application/vnd.apache.arrow.stream":{source:`iana`},"application/vnd.apache.thrift.binary":{source:`iana`},"application/vnd.apache.thrift.compact":{source:`iana`},"application/vnd.apache.thrift.json":{source:`iana`},"application/vnd.api+json":{source:`iana`,compressible:!0},"application/vnd.aplextor.warrp+json":{source:`iana`,compressible:!0},"application/vnd.apothekende.reservation+json":{source:`iana`,compressible:!0},"application/vnd.apple.installer+xml":{source:`iana`,compressible:!0,extensions:[`mpkg`]},"application/vnd.apple.keynote":{source:`iana`,extensions:[`key`]},"application/vnd.apple.mpegurl":{source:`iana`,extensions:[`m3u8`]},"application/vnd.apple.numbers":{source:`iana`,extensions:[`numbers`]},"application/vnd.apple.pages":{source:`iana`,extensions:[`pages`]},"application/vnd.apple.pkpass":{compressible:!1,extensions:[`pkpass`]},"application/vnd.arastra.swi":{source:`iana`},"application/vnd.aristanetworks.swi":{source:`iana`,extensions:[`swi`]},"application/vnd.artisan+json":{source:`iana`,compressible:!0},"application/vnd.artsquare":{source:`iana`},"application/vnd.astraea-software.iota":{source:`iana`,extensions:[`iota`]},"application/vnd.audiograph":{source:`iana`,extensions:[`aep`]},"application/vnd.autopackage":{source:`iana`},"application/vnd.avalon+json":{source:`iana`,compressible:!0},"application/vnd.avistar+xml":{source:`iana`,compressible:!0},"application/vnd.balsamiq.bmml+xml":{source:`iana`,compressible:!0,extensions:[`bmml`]},"application/vnd.balsamiq.bmpr":{source:`iana`},"application/vnd.banana-accounting":{source:`iana`},"application/vnd.bbf.usp.error":{source:`iana`},"application/vnd.bbf.usp.msg":{source:`iana`},"application/vnd.bbf.usp.msg+json":{source:`iana`,compressible:!0},"application/vnd.bekitzur-stech+json":{source:`iana`,compressible:!0},"application/vnd.bint.med-content":{source:`iana`},"application/vnd.biopax.rdf+xml":{source:`iana`,compressible:!0},"application/vnd.blink-idb-value-wrapper":{source:`iana`},"application/vnd.blueice.multipass":{source:`iana`,extensions:[`mpm`]},"application/vnd.bluetooth.ep.oob":{source:`iana`},"application/vnd.bluetooth.le.oob":{source:`iana`},"application/vnd.bmi":{source:`iana`,extensions:[`bmi`]},"application/vnd.bpf":{source:`iana`},"application/vnd.bpf3":{source:`iana`},"application/vnd.businessobjects":{source:`iana`,extensions:[`rep`]},"application/vnd.byu.uapi+json":{source:`iana`,compressible:!0},"application/vnd.cab-jscript":{source:`iana`},"application/vnd.canon-cpdl":{source:`iana`},"application/vnd.canon-lips":{source:`iana`},"application/vnd.capasystems-pg+json":{source:`iana`,compressible:!0},"application/vnd.cendio.thinlinc.clientconf":{source:`iana`},"application/vnd.century-systems.tcp_stream":{source:`iana`},"application/vnd.chemdraw+xml":{source:`iana`,compressible:!0,extensions:[`cdxml`]},"application/vnd.chess-pgn":{source:`iana`},"application/vnd.chipnuts.karaoke-mmd":{source:`iana`,extensions:[`mmd`]},"application/vnd.ciedi":{source:`iana`},"application/vnd.cinderella":{source:`iana`,extensions:[`cdy`]},"application/vnd.cirpack.isdn-ext":{source:`iana`},"application/vnd.citationstyles.style+xml":{source:`iana`,compressible:!0,extensions:[`csl`]},"application/vnd.claymore":{source:`iana`,extensions:[`cla`]},"application/vnd.cloanto.rp9":{source:`iana`,extensions:[`rp9`]},"application/vnd.clonk.c4group":{source:`iana`,extensions:[`c4g`,`c4d`,`c4f`,`c4p`,`c4u`]},"application/vnd.cluetrust.cartomobile-config":{source:`iana`,extensions:[`c11amc`]},"application/vnd.cluetrust.cartomobile-config-pkg":{source:`iana`,extensions:[`c11amz`]},"application/vnd.coffeescript":{source:`iana`},"application/vnd.collabio.xodocuments.document":{source:`iana`},"application/vnd.collabio.xodocuments.document-template":{source:`iana`},"application/vnd.collabio.xodocuments.presentation":{source:`iana`},"application/vnd.collabio.xodocuments.presentation-template":{source:`iana`},"application/vnd.collabio.xodocuments.spreadsheet":{source:`iana`},"application/vnd.collabio.xodocuments.spreadsheet-template":{source:`iana`},"application/vnd.collection+json":{source:`iana`,compressible:!0},"application/vnd.collection.doc+json":{source:`iana`,compressible:!0},"application/vnd.collection.next+json":{source:`iana`,compressible:!0},"application/vnd.comicbook+zip":{source:`iana`,compressible:!1},"application/vnd.comicbook-rar":{source:`iana`},"application/vnd.commerce-battelle":{source:`iana`},"application/vnd.commonspace":{source:`iana`,extensions:[`csp`]},"application/vnd.contact.cmsg":{source:`iana`,extensions:[`cdbcmsg`]},"application/vnd.coreos.ignition+json":{source:`iana`,compressible:!0},"application/vnd.cosmocaller":{source:`iana`,extensions:[`cmc`]},"application/vnd.crick.clicker":{source:`iana`,extensions:[`clkx`]},"application/vnd.crick.clicker.keyboard":{source:`iana`,extensions:[`clkk`]},"application/vnd.crick.clicker.palette":{source:`iana`,extensions:[`clkp`]},"application/vnd.crick.clicker.template":{source:`iana`,extensions:[`clkt`]},"application/vnd.crick.clicker.wordbank":{source:`iana`,extensions:[`clkw`]},"application/vnd.criticaltools.wbs+xml":{source:`iana`,compressible:!0,extensions:[`wbs`]},"application/vnd.cryptii.pipe+json":{source:`iana`,compressible:!0},"application/vnd.crypto-shade-file":{source:`iana`},"application/vnd.cryptomator.encrypted":{source:`iana`},"application/vnd.cryptomator.vault":{source:`iana`},"application/vnd.ctc-posml":{source:`iana`,extensions:[`pml`]},"application/vnd.ctct.ws+xml":{source:`iana`,compressible:!0},"application/vnd.cups-pdf":{source:`iana`},"application/vnd.cups-postscript":{source:`iana`},"application/vnd.cups-ppd":{source:`iana`,extensions:[`ppd`]},"application/vnd.cups-raster":{source:`iana`},"application/vnd.cups-raw":{source:`iana`},"application/vnd.curl":{source:`iana`},"application/vnd.curl.car":{source:`apache`,extensions:[`car`]},"application/vnd.curl.pcurl":{source:`apache`,extensions:[`pcurl`]},"application/vnd.cyan.dean.root+xml":{source:`iana`,compressible:!0},"application/vnd.cybank":{source:`iana`},"application/vnd.cyclonedx+json":{source:`iana`,compressible:!0},"application/vnd.cyclonedx+xml":{source:`iana`,compressible:!0},"application/vnd.d2l.coursepackage1p0+zip":{source:`iana`,compressible:!1},"application/vnd.d3m-dataset":{source:`iana`},"application/vnd.d3m-problem":{source:`iana`},"application/vnd.dart":{source:`iana`,compressible:!0,extensions:[`dart`]},"application/vnd.data-vision.rdz":{source:`iana`,extensions:[`rdz`]},"application/vnd.datapackage+json":{source:`iana`,compressible:!0},"application/vnd.dataresource+json":{source:`iana`,compressible:!0},"application/vnd.dbf":{source:`iana`,extensions:[`dbf`]},"application/vnd.debian.binary-package":{source:`iana`},"application/vnd.dece.data":{source:`iana`,extensions:[`uvf`,`uvvf`,`uvd`,`uvvd`]},"application/vnd.dece.ttml+xml":{source:`iana`,compressible:!0,extensions:[`uvt`,`uvvt`]},"application/vnd.dece.unspecified":{source:`iana`,extensions:[`uvx`,`uvvx`]},"application/vnd.dece.zip":{source:`iana`,extensions:[`uvz`,`uvvz`]},"application/vnd.denovo.fcselayout-link":{source:`iana`,extensions:[`fe_launch`]},"application/vnd.desmume.movie":{source:`iana`},"application/vnd.dir-bi.plate-dl-nosuffix":{source:`iana`},"application/vnd.dm.delegation+xml":{source:`iana`,compressible:!0},"application/vnd.dna":{source:`iana`,extensions:[`dna`]},"application/vnd.document+json":{source:`iana`,compressible:!0},"application/vnd.dolby.mlp":{source:`apache`,extensions:[`mlp`]},"application/vnd.dolby.mobile.1":{source:`iana`},"application/vnd.dolby.mobile.2":{source:`iana`},"application/vnd.doremir.scorecloud-binary-document":{source:`iana`},"application/vnd.dpgraph":{source:`iana`,extensions:[`dpg`]},"application/vnd.dreamfactory":{source:`iana`,extensions:[`dfac`]},"application/vnd.drive+json":{source:`iana`,compressible:!0},"application/vnd.ds-keypoint":{source:`apache`,extensions:[`kpxx`]},"application/vnd.dtg.local":{source:`iana`},"application/vnd.dtg.local.flash":{source:`iana`},"application/vnd.dtg.local.html":{source:`iana`},"application/vnd.dvb.ait":{source:`iana`,extensions:[`ait`]},"application/vnd.dvb.dvbisl+xml":{source:`iana`,compressible:!0},"application/vnd.dvb.dvbj":{source:`iana`},"application/vnd.dvb.esgcontainer":{source:`iana`},"application/vnd.dvb.ipdcdftnotifaccess":{source:`iana`},"application/vnd.dvb.ipdcesgaccess":{source:`iana`},"application/vnd.dvb.ipdcesgaccess2":{source:`iana`},"application/vnd.dvb.ipdcesgpdd":{source:`iana`},"application/vnd.dvb.ipdcroaming":{source:`iana`},"application/vnd.dvb.iptv.alfec-base":{source:`iana`},"application/vnd.dvb.iptv.alfec-enhancement":{source:`iana`},"application/vnd.dvb.notif-aggregate-root+xml":{source:`iana`,compressible:!0},"application/vnd.dvb.notif-container+xml":{source:`iana`,compressible:!0},"application/vnd.dvb.notif-generic+xml":{source:`iana`,compressible:!0},"application/vnd.dvb.notif-ia-msglist+xml":{source:`iana`,compressible:!0},"application/vnd.dvb.notif-ia-registration-request+xml":{source:`iana`,compressible:!0},"application/vnd.dvb.notif-ia-registration-response+xml":{source:`iana`,compressible:!0},"application/vnd.dvb.notif-init+xml":{source:`iana`,compressible:!0},"application/vnd.dvb.pfr":{source:`iana`},"application/vnd.dvb.service":{source:`iana`,extensions:[`svc`]},"application/vnd.dxr":{source:`iana`},"application/vnd.dynageo":{source:`iana`,extensions:[`geo`]},"application/vnd.dzr":{source:`iana`},"application/vnd.easykaraoke.cdgdownload":{source:`iana`},"application/vnd.ecdis-update":{source:`iana`},"application/vnd.ecip.rlp":{source:`iana`},"application/vnd.eclipse.ditto+json":{source:`iana`,compressible:!0},"application/vnd.ecowin.chart":{source:`iana`,extensions:[`mag`]},"application/vnd.ecowin.filerequest":{source:`iana`},"application/vnd.ecowin.fileupdate":{source:`iana`},"application/vnd.ecowin.series":{source:`iana`},"application/vnd.ecowin.seriesrequest":{source:`iana`},"application/vnd.ecowin.seriesupdate":{source:`iana`},"application/vnd.efi.img":{source:`iana`},"application/vnd.efi.iso":{source:`iana`},"application/vnd.emclient.accessrequest+xml":{source:`iana`,compressible:!0},"application/vnd.enliven":{source:`iana`,extensions:[`nml`]},"application/vnd.enphase.envoy":{source:`iana`},"application/vnd.eprints.data+xml":{source:`iana`,compressible:!0},"application/vnd.epson.esf":{source:`iana`,extensions:[`esf`]},"application/vnd.epson.msf":{source:`iana`,extensions:[`msf`]},"application/vnd.epson.quickanime":{source:`iana`,extensions:[`qam`]},"application/vnd.epson.salt":{source:`iana`,extensions:[`slt`]},"application/vnd.epson.ssf":{source:`iana`,extensions:[`ssf`]},"application/vnd.ericsson.quickcall":{source:`iana`},"application/vnd.espass-espass+zip":{source:`iana`,compressible:!1},"application/vnd.eszigno3+xml":{source:`iana`,compressible:!0,extensions:[`es3`,`et3`]},"application/vnd.etsi.aoc+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.asic-e+zip":{source:`iana`,compressible:!1},"application/vnd.etsi.asic-s+zip":{source:`iana`,compressible:!1},"application/vnd.etsi.cug+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.iptvcommand+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.iptvdiscovery+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.iptvprofile+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.iptvsad-bc+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.iptvsad-cod+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.iptvsad-npvr+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.iptvservice+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.iptvsync+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.iptvueprofile+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.mcid+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.mheg5":{source:`iana`},"application/vnd.etsi.overload-control-policy-dataset+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.pstn+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.sci+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.simservs+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.timestamp-token":{source:`iana`},"application/vnd.etsi.tsl+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.tsl.der":{source:`iana`},"application/vnd.eu.kasparian.car+json":{source:`iana`,compressible:!0},"application/vnd.eudora.data":{source:`iana`},"application/vnd.evolv.ecig.profile":{source:`iana`},"application/vnd.evolv.ecig.settings":{source:`iana`},"application/vnd.evolv.ecig.theme":{source:`iana`},"application/vnd.exstream-empower+zip":{source:`iana`,compressible:!1},"application/vnd.exstream-package":{source:`iana`},"application/vnd.ezpix-album":{source:`iana`,extensions:[`ez2`]},"application/vnd.ezpix-package":{source:`iana`,extensions:[`ez3`]},"application/vnd.f-secure.mobile":{source:`iana`},"application/vnd.familysearch.gedcom+zip":{source:`iana`,compressible:!1},"application/vnd.fastcopy-disk-image":{source:`iana`},"application/vnd.fdf":{source:`iana`,extensions:[`fdf`]},"application/vnd.fdsn.mseed":{source:`iana`,extensions:[`mseed`]},"application/vnd.fdsn.seed":{source:`iana`,extensions:[`seed`,`dataless`]},"application/vnd.ffsns":{source:`iana`},"application/vnd.ficlab.flb+zip":{source:`iana`,compressible:!1},"application/vnd.filmit.zfc":{source:`iana`},"application/vnd.fints":{source:`iana`},"application/vnd.firemonkeys.cloudcell":{source:`iana`},"application/vnd.flographit":{source:`iana`,extensions:[`gph`]},"application/vnd.fluxtime.clip":{source:`iana`,extensions:[`ftc`]},"application/vnd.font-fontforge-sfd":{source:`iana`},"application/vnd.framemaker":{source:`iana`,extensions:[`fm`,`frame`,`maker`,`book`]},"application/vnd.frogans.fnc":{source:`iana`,extensions:[`fnc`]},"application/vnd.frogans.ltf":{source:`iana`,extensions:[`ltf`]},"application/vnd.fsc.weblaunch":{source:`iana`,extensions:[`fsc`]},"application/vnd.fujifilm.fb.docuworks":{source:`iana`},"application/vnd.fujifilm.fb.docuworks.binder":{source:`iana`},"application/vnd.fujifilm.fb.docuworks.container":{source:`iana`},"application/vnd.fujifilm.fb.jfi+xml":{source:`iana`,compressible:!0},"application/vnd.fujitsu.oasys":{source:`iana`,extensions:[`oas`]},"application/vnd.fujitsu.oasys2":{source:`iana`,extensions:[`oa2`]},"application/vnd.fujitsu.oasys3":{source:`iana`,extensions:[`oa3`]},"application/vnd.fujitsu.oasysgp":{source:`iana`,extensions:[`fg5`]},"application/vnd.fujitsu.oasysprs":{source:`iana`,extensions:[`bh2`]},"application/vnd.fujixerox.art-ex":{source:`iana`},"application/vnd.fujixerox.art4":{source:`iana`},"application/vnd.fujixerox.ddd":{source:`iana`,extensions:[`ddd`]},"application/vnd.fujixerox.docuworks":{source:`iana`,extensions:[`xdw`]},"application/vnd.fujixerox.docuworks.binder":{source:`iana`,extensions:[`xbd`]},"application/vnd.fujixerox.docuworks.container":{source:`iana`},"application/vnd.fujixerox.hbpl":{source:`iana`},"application/vnd.fut-misnet":{source:`iana`},"application/vnd.futoin+cbor":{source:`iana`},"application/vnd.futoin+json":{source:`iana`,compressible:!0},"application/vnd.fuzzysheet":{source:`iana`,extensions:[`fzs`]},"application/vnd.genomatix.tuxedo":{source:`iana`,extensions:[`txd`]},"application/vnd.gentics.grd+json":{source:`iana`,compressible:!0},"application/vnd.geo+json":{source:`iana`,compressible:!0},"application/vnd.geocube+xml":{source:`iana`,compressible:!0},"application/vnd.geogebra.file":{source:`iana`,extensions:[`ggb`]},"application/vnd.geogebra.slides":{source:`iana`},"application/vnd.geogebra.tool":{source:`iana`,extensions:[`ggt`]},"application/vnd.geometry-explorer":{source:`iana`,extensions:[`gex`,`gre`]},"application/vnd.geonext":{source:`iana`,extensions:[`gxt`]},"application/vnd.geoplan":{source:`iana`,extensions:[`g2w`]},"application/vnd.geospace":{source:`iana`,extensions:[`g3w`]},"application/vnd.gerber":{source:`iana`},"application/vnd.globalplatform.card-content-mgt":{source:`iana`},"application/vnd.globalplatform.card-content-mgt-response":{source:`iana`},"application/vnd.gmx":{source:`iana`,extensions:[`gmx`]},"application/vnd.google-apps.document":{compressible:!1,extensions:[`gdoc`]},"application/vnd.google-apps.presentation":{compressible:!1,extensions:[`gslides`]},"application/vnd.google-apps.spreadsheet":{compressible:!1,extensions:[`gsheet`]},"application/vnd.google-earth.kml+xml":{source:`iana`,compressible:!0,extensions:[`kml`]},"application/vnd.google-earth.kmz":{source:`iana`,compressible:!1,extensions:[`kmz`]},"application/vnd.gov.sk.e-form+xml":{source:`iana`,compressible:!0},"application/vnd.gov.sk.e-form+zip":{source:`iana`,compressible:!1},"application/vnd.gov.sk.xmldatacontainer+xml":{source:`iana`,compressible:!0},"application/vnd.grafeq":{source:`iana`,extensions:[`gqf`,`gqs`]},"application/vnd.gridmp":{source:`iana`},"application/vnd.groove-account":{source:`iana`,extensions:[`gac`]},"application/vnd.groove-help":{source:`iana`,extensions:[`ghf`]},"application/vnd.groove-identity-message":{source:`iana`,extensions:[`gim`]},"application/vnd.groove-injector":{source:`iana`,extensions:[`grv`]},"application/vnd.groove-tool-message":{source:`iana`,extensions:[`gtm`]},"application/vnd.groove-tool-template":{source:`iana`,extensions:[`tpl`]},"application/vnd.groove-vcard":{source:`iana`,extensions:[`vcg`]},"application/vnd.hal+json":{source:`iana`,compressible:!0},"application/vnd.hal+xml":{source:`iana`,compressible:!0,extensions:[`hal`]},"application/vnd.handheld-entertainment+xml":{source:`iana`,compressible:!0,extensions:[`zmm`]},"application/vnd.hbci":{source:`iana`,extensions:[`hbci`]},"application/vnd.hc+json":{source:`iana`,compressible:!0},"application/vnd.hcl-bireports":{source:`iana`},"application/vnd.hdt":{source:`iana`},"application/vnd.heroku+json":{source:`iana`,compressible:!0},"application/vnd.hhe.lesson-player":{source:`iana`,extensions:[`les`]},"application/vnd.hl7cda+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/vnd.hl7v2+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/vnd.hp-hpgl":{source:`iana`,extensions:[`hpgl`]},"application/vnd.hp-hpid":{source:`iana`,extensions:[`hpid`]},"application/vnd.hp-hps":{source:`iana`,extensions:[`hps`]},"application/vnd.hp-jlyt":{source:`iana`,extensions:[`jlt`]},"application/vnd.hp-pcl":{source:`iana`,extensions:[`pcl`]},"application/vnd.hp-pclxl":{source:`iana`,extensions:[`pclxl`]},"application/vnd.httphone":{source:`iana`},"application/vnd.hydrostatix.sof-data":{source:`iana`,extensions:[`sfd-hdstx`]},"application/vnd.hyper+json":{source:`iana`,compressible:!0},"application/vnd.hyper-item+json":{source:`iana`,compressible:!0},"application/vnd.hyperdrive+json":{source:`iana`,compressible:!0},"application/vnd.hzn-3d-crossword":{source:`iana`},"application/vnd.ibm.afplinedata":{source:`iana`},"application/vnd.ibm.electronic-media":{source:`iana`},"application/vnd.ibm.minipay":{source:`iana`,extensions:[`mpy`]},"application/vnd.ibm.modcap":{source:`iana`,extensions:[`afp`,`listafp`,`list3820`]},"application/vnd.ibm.rights-management":{source:`iana`,extensions:[`irm`]},"application/vnd.ibm.secure-container":{source:`iana`,extensions:[`sc`]},"application/vnd.iccprofile":{source:`iana`,extensions:[`icc`,`icm`]},"application/vnd.ieee.1905":{source:`iana`},"application/vnd.igloader":{source:`iana`,extensions:[`igl`]},"application/vnd.imagemeter.folder+zip":{source:`iana`,compressible:!1},"application/vnd.imagemeter.image+zip":{source:`iana`,compressible:!1},"application/vnd.immervision-ivp":{source:`iana`,extensions:[`ivp`]},"application/vnd.immervision-ivu":{source:`iana`,extensions:[`ivu`]},"application/vnd.ims.imsccv1p1":{source:`iana`},"application/vnd.ims.imsccv1p2":{source:`iana`},"application/vnd.ims.imsccv1p3":{source:`iana`},"application/vnd.ims.lis.v2.result+json":{source:`iana`,compressible:!0},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{source:`iana`,compressible:!0},"application/vnd.ims.lti.v2.toolproxy+json":{source:`iana`,compressible:!0},"application/vnd.ims.lti.v2.toolproxy.id+json":{source:`iana`,compressible:!0},"application/vnd.ims.lti.v2.toolsettings+json":{source:`iana`,compressible:!0},"application/vnd.ims.lti.v2.toolsettings.simple+json":{source:`iana`,compressible:!0},"application/vnd.informedcontrol.rms+xml":{source:`iana`,compressible:!0},"application/vnd.informix-visionary":{source:`iana`},"application/vnd.infotech.project":{source:`iana`},"application/vnd.infotech.project+xml":{source:`iana`,compressible:!0},"application/vnd.innopath.wamp.notification":{source:`iana`},"application/vnd.insors.igm":{source:`iana`,extensions:[`igm`]},"application/vnd.intercon.formnet":{source:`iana`,extensions:[`xpw`,`xpx`]},"application/vnd.intergeo":{source:`iana`,extensions:[`i2g`]},"application/vnd.intertrust.digibox":{source:`iana`},"application/vnd.intertrust.nncp":{source:`iana`},"application/vnd.intu.qbo":{source:`iana`,extensions:[`qbo`]},"application/vnd.intu.qfx":{source:`iana`,extensions:[`qfx`]},"application/vnd.iptc.g2.catalogitem+xml":{source:`iana`,compressible:!0},"application/vnd.iptc.g2.conceptitem+xml":{source:`iana`,compressible:!0},"application/vnd.iptc.g2.knowledgeitem+xml":{source:`iana`,compressible:!0},"application/vnd.iptc.g2.newsitem+xml":{source:`iana`,compressible:!0},"application/vnd.iptc.g2.newsmessage+xml":{source:`iana`,compressible:!0},"application/vnd.iptc.g2.packageitem+xml":{source:`iana`,compressible:!0},"application/vnd.iptc.g2.planningitem+xml":{source:`iana`,compressible:!0},"application/vnd.ipunplugged.rcprofile":{source:`iana`,extensions:[`rcprofile`]},"application/vnd.irepository.package+xml":{source:`iana`,compressible:!0,extensions:[`irp`]},"application/vnd.is-xpr":{source:`iana`,extensions:[`xpr`]},"application/vnd.isac.fcs":{source:`iana`,extensions:[`fcs`]},"application/vnd.iso11783-10+zip":{source:`iana`,compressible:!1},"application/vnd.jam":{source:`iana`,extensions:[`jam`]},"application/vnd.japannet-directory-service":{source:`iana`},"application/vnd.japannet-jpnstore-wakeup":{source:`iana`},"application/vnd.japannet-payment-wakeup":{source:`iana`},"application/vnd.japannet-registration":{source:`iana`},"application/vnd.japannet-registration-wakeup":{source:`iana`},"application/vnd.japannet-setstore-wakeup":{source:`iana`},"application/vnd.japannet-verification":{source:`iana`},"application/vnd.japannet-verification-wakeup":{source:`iana`},"application/vnd.jcp.javame.midlet-rms":{source:`iana`,extensions:[`rms`]},"application/vnd.jisp":{source:`iana`,extensions:[`jisp`]},"application/vnd.joost.joda-archive":{source:`iana`,extensions:[`joda`]},"application/vnd.jsk.isdn-ngn":{source:`iana`},"application/vnd.kahootz":{source:`iana`,extensions:[`ktz`,`ktr`]},"application/vnd.kde.karbon":{source:`iana`,extensions:[`karbon`]},"application/vnd.kde.kchart":{source:`iana`,extensions:[`chrt`]},"application/vnd.kde.kformula":{source:`iana`,extensions:[`kfo`]},"application/vnd.kde.kivio":{source:`iana`,extensions:[`flw`]},"application/vnd.kde.kontour":{source:`iana`,extensions:[`kon`]},"application/vnd.kde.kpresenter":{source:`iana`,extensions:[`kpr`,`kpt`]},"application/vnd.kde.kspread":{source:`iana`,extensions:[`ksp`]},"application/vnd.kde.kword":{source:`iana`,extensions:[`kwd`,`kwt`]},"application/vnd.kenameaapp":{source:`iana`,extensions:[`htke`]},"application/vnd.kidspiration":{source:`iana`,extensions:[`kia`]},"application/vnd.kinar":{source:`iana`,extensions:[`kne`,`knp`]},"application/vnd.koan":{source:`iana`,extensions:[`skp`,`skd`,`skt`,`skm`]},"application/vnd.kodak-descriptor":{source:`iana`,extensions:[`sse`]},"application/vnd.las":{source:`iana`},"application/vnd.las.las+json":{source:`iana`,compressible:!0},"application/vnd.las.las+xml":{source:`iana`,compressible:!0,extensions:[`lasxml`]},"application/vnd.laszip":{source:`iana`},"application/vnd.leap+json":{source:`iana`,compressible:!0},"application/vnd.liberty-request+xml":{source:`iana`,compressible:!0},"application/vnd.llamagraphics.life-balance.desktop":{source:`iana`,extensions:[`lbd`]},"application/vnd.llamagraphics.life-balance.exchange+xml":{source:`iana`,compressible:!0,extensions:[`lbe`]},"application/vnd.logipipe.circuit+zip":{source:`iana`,compressible:!1},"application/vnd.loom":{source:`iana`},"application/vnd.lotus-1-2-3":{source:`iana`,extensions:[`123`]},"application/vnd.lotus-approach":{source:`iana`,extensions:[`apr`]},"application/vnd.lotus-freelance":{source:`iana`,extensions:[`pre`]},"application/vnd.lotus-notes":{source:`iana`,extensions:[`nsf`]},"application/vnd.lotus-organizer":{source:`iana`,extensions:[`org`]},"application/vnd.lotus-screencam":{source:`iana`,extensions:[`scm`]},"application/vnd.lotus-wordpro":{source:`iana`,extensions:[`lwp`]},"application/vnd.macports.portpkg":{source:`iana`,extensions:[`portpkg`]},"application/vnd.mapbox-vector-tile":{source:`iana`,extensions:[`mvt`]},"application/vnd.marlin.drm.actiontoken+xml":{source:`iana`,compressible:!0},"application/vnd.marlin.drm.conftoken+xml":{source:`iana`,compressible:!0},"application/vnd.marlin.drm.license+xml":{source:`iana`,compressible:!0},"application/vnd.marlin.drm.mdcf":{source:`iana`},"application/vnd.mason+json":{source:`iana`,compressible:!0},"application/vnd.maxar.archive.3tz+zip":{source:`iana`,compressible:!1},"application/vnd.maxmind.maxmind-db":{source:`iana`},"application/vnd.mcd":{source:`iana`,extensions:[`mcd`]},"application/vnd.medcalcdata":{source:`iana`,extensions:[`mc1`]},"application/vnd.mediastation.cdkey":{source:`iana`,extensions:[`cdkey`]},"application/vnd.meridian-slingshot":{source:`iana`},"application/vnd.mfer":{source:`iana`,extensions:[`mwf`]},"application/vnd.mfmp":{source:`iana`,extensions:[`mfm`]},"application/vnd.micro+json":{source:`iana`,compressible:!0},"application/vnd.micrografx.flo":{source:`iana`,extensions:[`flo`]},"application/vnd.micrografx.igx":{source:`iana`,extensions:[`igx`]},"application/vnd.microsoft.portable-executable":{source:`iana`},"application/vnd.microsoft.windows.thumbnail-cache":{source:`iana`},"application/vnd.miele+json":{source:`iana`,compressible:!0},"application/vnd.mif":{source:`iana`,extensions:[`mif`]},"application/vnd.minisoft-hp3000-save":{source:`iana`},"application/vnd.mitsubishi.misty-guard.trustweb":{source:`iana`},"application/vnd.mobius.daf":{source:`iana`,extensions:[`daf`]},"application/vnd.mobius.dis":{source:`iana`,extensions:[`dis`]},"application/vnd.mobius.mbk":{source:`iana`,extensions:[`mbk`]},"application/vnd.mobius.mqy":{source:`iana`,extensions:[`mqy`]},"application/vnd.mobius.msl":{source:`iana`,extensions:[`msl`]},"application/vnd.mobius.plc":{source:`iana`,extensions:[`plc`]},"application/vnd.mobius.txf":{source:`iana`,extensions:[`txf`]},"application/vnd.mophun.application":{source:`iana`,extensions:[`mpn`]},"application/vnd.mophun.certificate":{source:`iana`,extensions:[`mpc`]},"application/vnd.motorola.flexsuite":{source:`iana`},"application/vnd.motorola.flexsuite.adsi":{source:`iana`},"application/vnd.motorola.flexsuite.fis":{source:`iana`},"application/vnd.motorola.flexsuite.gotap":{source:`iana`},"application/vnd.motorola.flexsuite.kmr":{source:`iana`},"application/vnd.motorola.flexsuite.ttc":{source:`iana`},"application/vnd.motorola.flexsuite.wem":{source:`iana`},"application/vnd.motorola.iprm":{source:`iana`},"application/vnd.mozilla.xul+xml":{source:`iana`,compressible:!0,extensions:[`xul`]},"application/vnd.ms-3mfdocument":{source:`iana`},"application/vnd.ms-artgalry":{source:`iana`,extensions:[`cil`]},"application/vnd.ms-asf":{source:`iana`},"application/vnd.ms-cab-compressed":{source:`iana`,extensions:[`cab`]},"application/vnd.ms-color.iccprofile":{source:`apache`},"application/vnd.ms-excel":{source:`iana`,compressible:!1,extensions:[`xls`,`xlm`,`xla`,`xlc`,`xlt`,`xlw`]},"application/vnd.ms-excel.addin.macroenabled.12":{source:`iana`,extensions:[`xlam`]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{source:`iana`,extensions:[`xlsb`]},"application/vnd.ms-excel.sheet.macroenabled.12":{source:`iana`,extensions:[`xlsm`]},"application/vnd.ms-excel.template.macroenabled.12":{source:`iana`,extensions:[`xltm`]},"application/vnd.ms-fontobject":{source:`iana`,compressible:!0,extensions:[`eot`]},"application/vnd.ms-htmlhelp":{source:`iana`,extensions:[`chm`]},"application/vnd.ms-ims":{source:`iana`,extensions:[`ims`]},"application/vnd.ms-lrm":{source:`iana`,extensions:[`lrm`]},"application/vnd.ms-office.activex+xml":{source:`iana`,compressible:!0},"application/vnd.ms-officetheme":{source:`iana`,extensions:[`thmx`]},"application/vnd.ms-opentype":{source:`apache`,compressible:!0},"application/vnd.ms-outlook":{compressible:!1,extensions:[`msg`]},"application/vnd.ms-package.obfuscated-opentype":{source:`apache`},"application/vnd.ms-pki.seccat":{source:`apache`,extensions:[`cat`]},"application/vnd.ms-pki.stl":{source:`apache`,extensions:[`stl`]},"application/vnd.ms-playready.initiator+xml":{source:`iana`,compressible:!0},"application/vnd.ms-powerpoint":{source:`iana`,compressible:!1,extensions:[`ppt`,`pps`,`pot`]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{source:`iana`,extensions:[`ppam`]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{source:`iana`,extensions:[`pptm`]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{source:`iana`,extensions:[`sldm`]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{source:`iana`,extensions:[`ppsm`]},"application/vnd.ms-powerpoint.template.macroenabled.12":{source:`iana`,extensions:[`potm`]},"application/vnd.ms-printdevicecapabilities+xml":{source:`iana`,compressible:!0},"application/vnd.ms-printing.printticket+xml":{source:`apache`,compressible:!0},"application/vnd.ms-printschematicket+xml":{source:`iana`,compressible:!0},"application/vnd.ms-project":{source:`iana`,extensions:[`mpp`,`mpt`]},"application/vnd.ms-tnef":{source:`iana`},"application/vnd.ms-windows.devicepairing":{source:`iana`},"application/vnd.ms-windows.nwprinting.oob":{source:`iana`},"application/vnd.ms-windows.printerpairing":{source:`iana`},"application/vnd.ms-windows.wsd.oob":{source:`iana`},"application/vnd.ms-wmdrm.lic-chlg-req":{source:`iana`},"application/vnd.ms-wmdrm.lic-resp":{source:`iana`},"application/vnd.ms-wmdrm.meter-chlg-req":{source:`iana`},"application/vnd.ms-wmdrm.meter-resp":{source:`iana`},"application/vnd.ms-word.document.macroenabled.12":{source:`iana`,extensions:[`docm`]},"application/vnd.ms-word.template.macroenabled.12":{source:`iana`,extensions:[`dotm`]},"application/vnd.ms-works":{source:`iana`,extensions:[`wps`,`wks`,`wcm`,`wdb`]},"application/vnd.ms-wpl":{source:`iana`,extensions:[`wpl`]},"application/vnd.ms-xpsdocument":{source:`iana`,compressible:!1,extensions:[`xps`]},"application/vnd.msa-disk-image":{source:`iana`},"application/vnd.mseq":{source:`iana`,extensions:[`mseq`]},"application/vnd.msign":{source:`iana`},"application/vnd.multiad.creator":{source:`iana`},"application/vnd.multiad.creator.cif":{source:`iana`},"application/vnd.music-niff":{source:`iana`},"application/vnd.musician":{source:`iana`,extensions:[`mus`]},"application/vnd.muvee.style":{source:`iana`,extensions:[`msty`]},"application/vnd.mynfc":{source:`iana`,extensions:[`taglet`]},"application/vnd.nacamar.ybrid+json":{source:`iana`,compressible:!0},"application/vnd.ncd.control":{source:`iana`},"application/vnd.ncd.reference":{source:`iana`},"application/vnd.nearst.inv+json":{source:`iana`,compressible:!0},"application/vnd.nebumind.line":{source:`iana`},"application/vnd.nervana":{source:`iana`},"application/vnd.netfpx":{source:`iana`},"application/vnd.neurolanguage.nlu":{source:`iana`,extensions:[`nlu`]},"application/vnd.nimn":{source:`iana`},"application/vnd.nintendo.nitro.rom":{source:`iana`},"application/vnd.nintendo.snes.rom":{source:`iana`},"application/vnd.nitf":{source:`iana`,extensions:[`ntf`,`nitf`]},"application/vnd.noblenet-directory":{source:`iana`,extensions:[`nnd`]},"application/vnd.noblenet-sealer":{source:`iana`,extensions:[`nns`]},"application/vnd.noblenet-web":{source:`iana`,extensions:[`nnw`]},"application/vnd.nokia.catalogs":{source:`iana`},"application/vnd.nokia.conml+wbxml":{source:`iana`},"application/vnd.nokia.conml+xml":{source:`iana`,compressible:!0},"application/vnd.nokia.iptv.config+xml":{source:`iana`,compressible:!0},"application/vnd.nokia.isds-radio-presets":{source:`iana`},"application/vnd.nokia.landmark+wbxml":{source:`iana`},"application/vnd.nokia.landmark+xml":{source:`iana`,compressible:!0},"application/vnd.nokia.landmarkcollection+xml":{source:`iana`,compressible:!0},"application/vnd.nokia.n-gage.ac+xml":{source:`iana`,compressible:!0,extensions:[`ac`]},"application/vnd.nokia.n-gage.data":{source:`iana`,extensions:[`ngdat`]},"application/vnd.nokia.n-gage.symbian.install":{source:`iana`,extensions:[`n-gage`]},"application/vnd.nokia.ncd":{source:`iana`},"application/vnd.nokia.pcd+wbxml":{source:`iana`},"application/vnd.nokia.pcd+xml":{source:`iana`,compressible:!0},"application/vnd.nokia.radio-preset":{source:`iana`,extensions:[`rpst`]},"application/vnd.nokia.radio-presets":{source:`iana`,extensions:[`rpss`]},"application/vnd.novadigm.edm":{source:`iana`,extensions:[`edm`]},"application/vnd.novadigm.edx":{source:`iana`,extensions:[`edx`]},"application/vnd.novadigm.ext":{source:`iana`,extensions:[`ext`]},"application/vnd.ntt-local.content-share":{source:`iana`},"application/vnd.ntt-local.file-transfer":{source:`iana`},"application/vnd.ntt-local.ogw_remote-access":{source:`iana`},"application/vnd.ntt-local.sip-ta_remote":{source:`iana`},"application/vnd.ntt-local.sip-ta_tcp_stream":{source:`iana`},"application/vnd.oasis.opendocument.chart":{source:`iana`,extensions:[`odc`]},"application/vnd.oasis.opendocument.chart-template":{source:`iana`,extensions:[`otc`]},"application/vnd.oasis.opendocument.database":{source:`iana`,extensions:[`odb`]},"application/vnd.oasis.opendocument.formula":{source:`iana`,extensions:[`odf`]},"application/vnd.oasis.opendocument.formula-template":{source:`iana`,extensions:[`odft`]},"application/vnd.oasis.opendocument.graphics":{source:`iana`,compressible:!1,extensions:[`odg`]},"application/vnd.oasis.opendocument.graphics-template":{source:`iana`,extensions:[`otg`]},"application/vnd.oasis.opendocument.image":{source:`iana`,extensions:[`odi`]},"application/vnd.oasis.opendocument.image-template":{source:`iana`,extensions:[`oti`]},"application/vnd.oasis.opendocument.presentation":{source:`iana`,compressible:!1,extensions:[`odp`]},"application/vnd.oasis.opendocument.presentation-template":{source:`iana`,extensions:[`otp`]},"application/vnd.oasis.opendocument.spreadsheet":{source:`iana`,compressible:!1,extensions:[`ods`]},"application/vnd.oasis.opendocument.spreadsheet-template":{source:`iana`,extensions:[`ots`]},"application/vnd.oasis.opendocument.text":{source:`iana`,compressible:!1,extensions:[`odt`]},"application/vnd.oasis.opendocument.text-master":{source:`iana`,extensions:[`odm`]},"application/vnd.oasis.opendocument.text-template":{source:`iana`,extensions:[`ott`]},"application/vnd.oasis.opendocument.text-web":{source:`iana`,extensions:[`oth`]},"application/vnd.obn":{source:`iana`},"application/vnd.ocf+cbor":{source:`iana`},"application/vnd.oci.image.manifest.v1+json":{source:`iana`,compressible:!0},"application/vnd.oftn.l10n+json":{source:`iana`,compressible:!0},"application/vnd.oipf.contentaccessdownload+xml":{source:`iana`,compressible:!0},"application/vnd.oipf.contentaccessstreaming+xml":{source:`iana`,compressible:!0},"application/vnd.oipf.cspg-hexbinary":{source:`iana`},"application/vnd.oipf.dae.svg+xml":{source:`iana`,compressible:!0},"application/vnd.oipf.dae.xhtml+xml":{source:`iana`,compressible:!0},"application/vnd.oipf.mippvcontrolmessage+xml":{source:`iana`,compressible:!0},"application/vnd.oipf.pae.gem":{source:`iana`},"application/vnd.oipf.spdiscovery+xml":{source:`iana`,compressible:!0},"application/vnd.oipf.spdlist+xml":{source:`iana`,compressible:!0},"application/vnd.oipf.ueprofile+xml":{source:`iana`,compressible:!0},"application/vnd.oipf.userprofile+xml":{source:`iana`,compressible:!0},"application/vnd.olpc-sugar":{source:`iana`,extensions:[`xo`]},"application/vnd.oma-scws-config":{source:`iana`},"application/vnd.oma-scws-http-request":{source:`iana`},"application/vnd.oma-scws-http-response":{source:`iana`},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{source:`iana`,compressible:!0},"application/vnd.oma.bcast.drm-trigger+xml":{source:`iana`,compressible:!0},"application/vnd.oma.bcast.imd+xml":{source:`iana`,compressible:!0},"application/vnd.oma.bcast.ltkm":{source:`iana`},"application/vnd.oma.bcast.notification+xml":{source:`iana`,compressible:!0},"application/vnd.oma.bcast.provisioningtrigger":{source:`iana`},"application/vnd.oma.bcast.sgboot":{source:`iana`},"application/vnd.oma.bcast.sgdd+xml":{source:`iana`,compressible:!0},"application/vnd.oma.bcast.sgdu":{source:`iana`},"application/vnd.oma.bcast.simple-symbol-container":{source:`iana`},"application/vnd.oma.bcast.smartcard-trigger+xml":{source:`iana`,compressible:!0},"application/vnd.oma.bcast.sprov+xml":{source:`iana`,compressible:!0},"application/vnd.oma.bcast.stkm":{source:`iana`},"application/vnd.oma.cab-address-book+xml":{source:`iana`,compressible:!0},"application/vnd.oma.cab-feature-handler+xml":{source:`iana`,compressible:!0},"application/vnd.oma.cab-pcc+xml":{source:`iana`,compressible:!0},"application/vnd.oma.cab-subs-invite+xml":{source:`iana`,compressible:!0},"application/vnd.oma.cab-user-prefs+xml":{source:`iana`,compressible:!0},"application/vnd.oma.dcd":{source:`iana`},"application/vnd.oma.dcdc":{source:`iana`},"application/vnd.oma.dd2+xml":{source:`iana`,compressible:!0,extensions:[`dd2`]},"application/vnd.oma.drm.risd+xml":{source:`iana`,compressible:!0},"application/vnd.oma.group-usage-list+xml":{source:`iana`,compressible:!0},"application/vnd.oma.lwm2m+cbor":{source:`iana`},"application/vnd.oma.lwm2m+json":{source:`iana`,compressible:!0},"application/vnd.oma.lwm2m+tlv":{source:`iana`},"application/vnd.oma.pal+xml":{source:`iana`,compressible:!0},"application/vnd.oma.poc.detailed-progress-report+xml":{source:`iana`,compressible:!0},"application/vnd.oma.poc.final-report+xml":{source:`iana`,compressible:!0},"application/vnd.oma.poc.groups+xml":{source:`iana`,compressible:!0},"application/vnd.oma.poc.invocation-descriptor+xml":{source:`iana`,compressible:!0},"application/vnd.oma.poc.optimized-progress-report+xml":{source:`iana`,compressible:!0},"application/vnd.oma.push":{source:`iana`},"application/vnd.oma.scidm.messages+xml":{source:`iana`,compressible:!0},"application/vnd.oma.xcap-directory+xml":{source:`iana`,compressible:!0},"application/vnd.omads-email+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/vnd.omads-file+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/vnd.omads-folder+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/vnd.omaloc-supl-init":{source:`iana`},"application/vnd.onepager":{source:`iana`},"application/vnd.onepagertamp":{source:`iana`},"application/vnd.onepagertamx":{source:`iana`},"application/vnd.onepagertat":{source:`iana`},"application/vnd.onepagertatp":{source:`iana`},"application/vnd.onepagertatx":{source:`iana`},"application/vnd.openblox.game+xml":{source:`iana`,compressible:!0,extensions:[`obgx`]},"application/vnd.openblox.game-binary":{source:`iana`},"application/vnd.openeye.oeb":{source:`iana`},"application/vnd.openofficeorg.extension":{source:`apache`,extensions:[`oxt`]},"application/vnd.openstreetmap.data+xml":{source:`iana`,compressible:!0,extensions:[`osm`]},"application/vnd.opentimestamps.ots":{source:`iana`},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.drawing+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{source:`iana`,compressible:!1,extensions:[`pptx`]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slide":{source:`iana`,extensions:[`sldx`]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{source:`iana`,extensions:[`ppsx`]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.template":{source:`iana`,extensions:[`potx`]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{source:`iana`,compressible:!1,extensions:[`xlsx`]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{source:`iana`,extensions:[`xltx`]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.theme+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.vmldrawing":{source:`iana`},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{source:`iana`,compressible:!1,extensions:[`docx`]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{source:`iana`,extensions:[`dotx`]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-package.core-properties+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-package.relationships+xml":{source:`iana`,compressible:!0},"application/vnd.oracle.resource+json":{source:`iana`,compressible:!0},"application/vnd.orange.indata":{source:`iana`},"application/vnd.osa.netdeploy":{source:`iana`},"application/vnd.osgeo.mapguide.package":{source:`iana`,extensions:[`mgp`]},"application/vnd.osgi.bundle":{source:`iana`},"application/vnd.osgi.dp":{source:`iana`,extensions:[`dp`]},"application/vnd.osgi.subsystem":{source:`iana`,extensions:[`esa`]},"application/vnd.otps.ct-kip+xml":{source:`iana`,compressible:!0},"application/vnd.oxli.countgraph":{source:`iana`},"application/vnd.pagerduty+json":{source:`iana`,compressible:!0},"application/vnd.palm":{source:`iana`,extensions:[`pdb`,`pqa`,`oprc`]},"application/vnd.panoply":{source:`iana`},"application/vnd.paos.xml":{source:`iana`},"application/vnd.patentdive":{source:`iana`},"application/vnd.patientecommsdoc":{source:`iana`},"application/vnd.pawaafile":{source:`iana`,extensions:[`paw`]},"application/vnd.pcos":{source:`iana`},"application/vnd.pg.format":{source:`iana`,extensions:[`str`]},"application/vnd.pg.osasli":{source:`iana`,extensions:[`ei6`]},"application/vnd.piaccess.application-licence":{source:`iana`},"application/vnd.picsel":{source:`iana`,extensions:[`efif`]},"application/vnd.pmi.widget":{source:`iana`,extensions:[`wg`]},"application/vnd.poc.group-advertisement+xml":{source:`iana`,compressible:!0},"application/vnd.pocketlearn":{source:`iana`,extensions:[`plf`]},"application/vnd.powerbuilder6":{source:`iana`,extensions:[`pbd`]},"application/vnd.powerbuilder6-s":{source:`iana`},"application/vnd.powerbuilder7":{source:`iana`},"application/vnd.powerbuilder7-s":{source:`iana`},"application/vnd.powerbuilder75":{source:`iana`},"application/vnd.powerbuilder75-s":{source:`iana`},"application/vnd.preminet":{source:`iana`},"application/vnd.previewsystems.box":{source:`iana`,extensions:[`box`]},"application/vnd.proteus.magazine":{source:`iana`,extensions:[`mgz`]},"application/vnd.psfs":{source:`iana`},"application/vnd.publishare-delta-tree":{source:`iana`,extensions:[`qps`]},"application/vnd.pvi.ptid1":{source:`iana`,extensions:[`ptid`]},"application/vnd.pwg-multiplexed":{source:`iana`},"application/vnd.pwg-xhtml-print+xml":{source:`iana`,compressible:!0},"application/vnd.qualcomm.brew-app-res":{source:`iana`},"application/vnd.quarantainenet":{source:`iana`},"application/vnd.quark.quarkxpress":{source:`iana`,extensions:[`qxd`,`qxt`,`qwd`,`qwt`,`qxl`,`qxb`]},"application/vnd.quobject-quoxdocument":{source:`iana`},"application/vnd.radisys.moml+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-audit+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-audit-conf+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-audit-conn+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-audit-dialog+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-audit-stream+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-conf+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-dialog+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-dialog-base+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-dialog-fax-detect+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-dialog-group+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-dialog-speech+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-dialog-transform+xml":{source:`iana`,compressible:!0},"application/vnd.rainstor.data":{source:`iana`},"application/vnd.rapid":{source:`iana`},"application/vnd.rar":{source:`iana`,extensions:[`rar`]},"application/vnd.realvnc.bed":{source:`iana`,extensions:[`bed`]},"application/vnd.recordare.musicxml":{source:`iana`,extensions:[`mxl`]},"application/vnd.recordare.musicxml+xml":{source:`iana`,compressible:!0,extensions:[`musicxml`]},"application/vnd.renlearn.rlprint":{source:`iana`},"application/vnd.resilient.logic":{source:`iana`},"application/vnd.restful+json":{source:`iana`,compressible:!0},"application/vnd.rig.cryptonote":{source:`iana`,extensions:[`cryptonote`]},"application/vnd.rim.cod":{source:`apache`,extensions:[`cod`]},"application/vnd.rn-realmedia":{source:`apache`,extensions:[`rm`]},"application/vnd.rn-realmedia-vbr":{source:`apache`,extensions:[`rmvb`]},"application/vnd.route66.link66+xml":{source:`iana`,compressible:!0,extensions:[`link66`]},"application/vnd.rs-274x":{source:`iana`},"application/vnd.ruckus.download":{source:`iana`},"application/vnd.s3sms":{source:`iana`},"application/vnd.sailingtracker.track":{source:`iana`,extensions:[`st`]},"application/vnd.sar":{source:`iana`},"application/vnd.sbm.cid":{source:`iana`},"application/vnd.sbm.mid2":{source:`iana`},"application/vnd.scribus":{source:`iana`},"application/vnd.sealed.3df":{source:`iana`},"application/vnd.sealed.csf":{source:`iana`},"application/vnd.sealed.doc":{source:`iana`},"application/vnd.sealed.eml":{source:`iana`},"application/vnd.sealed.mht":{source:`iana`},"application/vnd.sealed.net":{source:`iana`},"application/vnd.sealed.ppt":{source:`iana`},"application/vnd.sealed.tiff":{source:`iana`},"application/vnd.sealed.xls":{source:`iana`},"application/vnd.sealedmedia.softseal.html":{source:`iana`},"application/vnd.sealedmedia.softseal.pdf":{source:`iana`},"application/vnd.seemail":{source:`iana`,extensions:[`see`]},"application/vnd.seis+json":{source:`iana`,compressible:!0},"application/vnd.sema":{source:`iana`,extensions:[`sema`]},"application/vnd.semd":{source:`iana`,extensions:[`semd`]},"application/vnd.semf":{source:`iana`,extensions:[`semf`]},"application/vnd.shade-save-file":{source:`iana`},"application/vnd.shana.informed.formdata":{source:`iana`,extensions:[`ifm`]},"application/vnd.shana.informed.formtemplate":{source:`iana`,extensions:[`itp`]},"application/vnd.shana.informed.interchange":{source:`iana`,extensions:[`iif`]},"application/vnd.shana.informed.package":{source:`iana`,extensions:[`ipk`]},"application/vnd.shootproof+json":{source:`iana`,compressible:!0},"application/vnd.shopkick+json":{source:`iana`,compressible:!0},"application/vnd.shp":{source:`iana`},"application/vnd.shx":{source:`iana`},"application/vnd.sigrok.session":{source:`iana`},"application/vnd.simtech-mindmapper":{source:`iana`,extensions:[`twd`,`twds`]},"application/vnd.siren+json":{source:`iana`,compressible:!0},"application/vnd.smaf":{source:`iana`,extensions:[`mmf`]},"application/vnd.smart.notebook":{source:`iana`},"application/vnd.smart.teacher":{source:`iana`,extensions:[`teacher`]},"application/vnd.snesdev-page-table":{source:`iana`},"application/vnd.software602.filler.form+xml":{source:`iana`,compressible:!0,extensions:[`fo`]},"application/vnd.software602.filler.form-xml-zip":{source:`iana`},"application/vnd.solent.sdkm+xml":{source:`iana`,compressible:!0,extensions:[`sdkm`,`sdkd`]},"application/vnd.spotfire.dxp":{source:`iana`,extensions:[`dxp`]},"application/vnd.spotfire.sfs":{source:`iana`,extensions:[`sfs`]},"application/vnd.sqlite3":{source:`iana`},"application/vnd.sss-cod":{source:`iana`},"application/vnd.sss-dtf":{source:`iana`},"application/vnd.sss-ntf":{source:`iana`},"application/vnd.stardivision.calc":{source:`apache`,extensions:[`sdc`]},"application/vnd.stardivision.draw":{source:`apache`,extensions:[`sda`]},"application/vnd.stardivision.impress":{source:`apache`,extensions:[`sdd`]},"application/vnd.stardivision.math":{source:`apache`,extensions:[`smf`]},"application/vnd.stardivision.writer":{source:`apache`,extensions:[`sdw`,`vor`]},"application/vnd.stardivision.writer-global":{source:`apache`,extensions:[`sgl`]},"application/vnd.stepmania.package":{source:`iana`,extensions:[`smzip`]},"application/vnd.stepmania.stepchart":{source:`iana`,extensions:[`sm`]},"application/vnd.street-stream":{source:`iana`},"application/vnd.sun.wadl+xml":{source:`iana`,compressible:!0,extensions:[`wadl`]},"application/vnd.sun.xml.calc":{source:`apache`,extensions:[`sxc`]},"application/vnd.sun.xml.calc.template":{source:`apache`,extensions:[`stc`]},"application/vnd.sun.xml.draw":{source:`apache`,extensions:[`sxd`]},"application/vnd.sun.xml.draw.template":{source:`apache`,extensions:[`std`]},"application/vnd.sun.xml.impress":{source:`apache`,extensions:[`sxi`]},"application/vnd.sun.xml.impress.template":{source:`apache`,extensions:[`sti`]},"application/vnd.sun.xml.math":{source:`apache`,extensions:[`sxm`]},"application/vnd.sun.xml.writer":{source:`apache`,extensions:[`sxw`]},"application/vnd.sun.xml.writer.global":{source:`apache`,extensions:[`sxg`]},"application/vnd.sun.xml.writer.template":{source:`apache`,extensions:[`stw`]},"application/vnd.sus-calendar":{source:`iana`,extensions:[`sus`,`susp`]},"application/vnd.svd":{source:`iana`,extensions:[`svd`]},"application/vnd.swiftview-ics":{source:`iana`},"application/vnd.sycle+xml":{source:`iana`,compressible:!0},"application/vnd.syft+json":{source:`iana`,compressible:!0},"application/vnd.symbian.install":{source:`apache`,extensions:[`sis`,`sisx`]},"application/vnd.syncml+xml":{source:`iana`,charset:`UTF-8`,compressible:!0,extensions:[`xsm`]},"application/vnd.syncml.dm+wbxml":{source:`iana`,charset:`UTF-8`,extensions:[`bdm`]},"application/vnd.syncml.dm+xml":{source:`iana`,charset:`UTF-8`,compressible:!0,extensions:[`xdm`]},"application/vnd.syncml.dm.notification":{source:`iana`},"application/vnd.syncml.dmddf+wbxml":{source:`iana`},"application/vnd.syncml.dmddf+xml":{source:`iana`,charset:`UTF-8`,compressible:!0,extensions:[`ddf`]},"application/vnd.syncml.dmtnds+wbxml":{source:`iana`},"application/vnd.syncml.dmtnds+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/vnd.syncml.ds.notification":{source:`iana`},"application/vnd.tableschema+json":{source:`iana`,compressible:!0},"application/vnd.tao.intent-module-archive":{source:`iana`,extensions:[`tao`]},"application/vnd.tcpdump.pcap":{source:`iana`,extensions:[`pcap`,`cap`,`dmp`]},"application/vnd.think-cell.ppttc+json":{source:`iana`,compressible:!0},"application/vnd.tmd.mediaflex.api+xml":{source:`iana`,compressible:!0},"application/vnd.tml":{source:`iana`},"application/vnd.tmobile-livetv":{source:`iana`,extensions:[`tmo`]},"application/vnd.tri.onesource":{source:`iana`},"application/vnd.trid.tpt":{source:`iana`,extensions:[`tpt`]},"application/vnd.triscape.mxs":{source:`iana`,extensions:[`mxs`]},"application/vnd.trueapp":{source:`iana`,extensions:[`tra`]},"application/vnd.truedoc":{source:`iana`},"application/vnd.ubisoft.webplayer":{source:`iana`},"application/vnd.ufdl":{source:`iana`,extensions:[`ufd`,`ufdl`]},"application/vnd.uiq.theme":{source:`iana`,extensions:[`utz`]},"application/vnd.umajin":{source:`iana`,extensions:[`umj`]},"application/vnd.unity":{source:`iana`,extensions:[`unityweb`]},"application/vnd.uoml+xml":{source:`iana`,compressible:!0,extensions:[`uoml`]},"application/vnd.uplanet.alert":{source:`iana`},"application/vnd.uplanet.alert-wbxml":{source:`iana`},"application/vnd.uplanet.bearer-choice":{source:`iana`},"application/vnd.uplanet.bearer-choice-wbxml":{source:`iana`},"application/vnd.uplanet.cacheop":{source:`iana`},"application/vnd.uplanet.cacheop-wbxml":{source:`iana`},"application/vnd.uplanet.channel":{source:`iana`},"application/vnd.uplanet.channel-wbxml":{source:`iana`},"application/vnd.uplanet.list":{source:`iana`},"application/vnd.uplanet.list-wbxml":{source:`iana`},"application/vnd.uplanet.listcmd":{source:`iana`},"application/vnd.uplanet.listcmd-wbxml":{source:`iana`},"application/vnd.uplanet.signal":{source:`iana`},"application/vnd.uri-map":{source:`iana`},"application/vnd.valve.source.material":{source:`iana`},"application/vnd.vcx":{source:`iana`,extensions:[`vcx`]},"application/vnd.vd-study":{source:`iana`},"application/vnd.vectorworks":{source:`iana`},"application/vnd.vel+json":{source:`iana`,compressible:!0},"application/vnd.verimatrix.vcas":{source:`iana`},"application/vnd.veritone.aion+json":{source:`iana`,compressible:!0},"application/vnd.veryant.thin":{source:`iana`},"application/vnd.ves.encrypted":{source:`iana`},"application/vnd.vidsoft.vidconference":{source:`iana`},"application/vnd.visio":{source:`iana`,extensions:[`vsd`,`vst`,`vss`,`vsw`]},"application/vnd.visionary":{source:`iana`,extensions:[`vis`]},"application/vnd.vividence.scriptfile":{source:`iana`},"application/vnd.vsf":{source:`iana`,extensions:[`vsf`]},"application/vnd.wap.sic":{source:`iana`},"application/vnd.wap.slc":{source:`iana`},"application/vnd.wap.wbxml":{source:`iana`,charset:`UTF-8`,extensions:[`wbxml`]},"application/vnd.wap.wmlc":{source:`iana`,extensions:[`wmlc`]},"application/vnd.wap.wmlscriptc":{source:`iana`,extensions:[`wmlsc`]},"application/vnd.webturbo":{source:`iana`,extensions:[`wtb`]},"application/vnd.wfa.dpp":{source:`iana`},"application/vnd.wfa.p2p":{source:`iana`},"application/vnd.wfa.wsc":{source:`iana`},"application/vnd.windows.devicepairing":{source:`iana`},"application/vnd.wmc":{source:`iana`},"application/vnd.wmf.bootstrap":{source:`iana`},"application/vnd.wolfram.mathematica":{source:`iana`},"application/vnd.wolfram.mathematica.package":{source:`iana`},"application/vnd.wolfram.player":{source:`iana`,extensions:[`nbp`]},"application/vnd.wordperfect":{source:`iana`,extensions:[`wpd`]},"application/vnd.wqd":{source:`iana`,extensions:[`wqd`]},"application/vnd.wrq-hp3000-labelled":{source:`iana`},"application/vnd.wt.stf":{source:`iana`,extensions:[`stf`]},"application/vnd.wv.csp+wbxml":{source:`iana`},"application/vnd.wv.csp+xml":{source:`iana`,compressible:!0},"application/vnd.wv.ssp+xml":{source:`iana`,compressible:!0},"application/vnd.xacml+json":{source:`iana`,compressible:!0},"application/vnd.xara":{source:`iana`,extensions:[`xar`]},"application/vnd.xfdl":{source:`iana`,extensions:[`xfdl`]},"application/vnd.xfdl.webform":{source:`iana`},"application/vnd.xmi+xml":{source:`iana`,compressible:!0},"application/vnd.xmpie.cpkg":{source:`iana`},"application/vnd.xmpie.dpkg":{source:`iana`},"application/vnd.xmpie.plan":{source:`iana`},"application/vnd.xmpie.ppkg":{source:`iana`},"application/vnd.xmpie.xlim":{source:`iana`},"application/vnd.yamaha.hv-dic":{source:`iana`,extensions:[`hvd`]},"application/vnd.yamaha.hv-script":{source:`iana`,extensions:[`hvs`]},"application/vnd.yamaha.hv-voice":{source:`iana`,extensions:[`hvp`]},"application/vnd.yamaha.openscoreformat":{source:`iana`,extensions:[`osf`]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{source:`iana`,compressible:!0,extensions:[`osfpvg`]},"application/vnd.yamaha.remote-setup":{source:`iana`},"application/vnd.yamaha.smaf-audio":{source:`iana`,extensions:[`saf`]},"application/vnd.yamaha.smaf-phrase":{source:`iana`,extensions:[`spf`]},"application/vnd.yamaha.through-ngn":{source:`iana`},"application/vnd.yamaha.tunnel-udpencap":{source:`iana`},"application/vnd.yaoweme":{source:`iana`},"application/vnd.yellowriver-custom-menu":{source:`iana`,extensions:[`cmp`]},"application/vnd.youtube.yt":{source:`iana`},"application/vnd.zul":{source:`iana`,extensions:[`zir`,`zirz`]},"application/vnd.zzazz.deck+xml":{source:`iana`,compressible:!0,extensions:[`zaz`]},"application/voicexml+xml":{source:`iana`,compressible:!0,extensions:[`vxml`]},"application/voucher-cms+json":{source:`iana`,compressible:!0},"application/vq-rtcpxr":{source:`iana`},"application/wasm":{source:`iana`,compressible:!0,extensions:[`wasm`]},"application/watcherinfo+xml":{source:`iana`,compressible:!0,extensions:[`wif`]},"application/webpush-options+json":{source:`iana`,compressible:!0},"application/whoispp-query":{source:`iana`},"application/whoispp-response":{source:`iana`},"application/widget":{source:`iana`,extensions:[`wgt`]},"application/winhlp":{source:`apache`,extensions:[`hlp`]},"application/wita":{source:`iana`},"application/wordperfect5.1":{source:`iana`},"application/wsdl+xml":{source:`iana`,compressible:!0,extensions:[`wsdl`]},"application/wspolicy+xml":{source:`iana`,compressible:!0,extensions:[`wspolicy`]},"application/x-7z-compressed":{source:`apache`,compressible:!1,extensions:[`7z`]},"application/x-abiword":{source:`apache`,extensions:[`abw`]},"application/x-ace-compressed":{source:`apache`,extensions:[`ace`]},"application/x-amf":{source:`apache`},"application/x-apple-diskimage":{source:`apache`,extensions:[`dmg`]},"application/x-arj":{compressible:!1,extensions:[`arj`]},"application/x-authorware-bin":{source:`apache`,extensions:[`aab`,`x32`,`u32`,`vox`]},"application/x-authorware-map":{source:`apache`,extensions:[`aam`]},"application/x-authorware-seg":{source:`apache`,extensions:[`aas`]},"application/x-bcpio":{source:`apache`,extensions:[`bcpio`]},"application/x-bdoc":{compressible:!1,extensions:[`bdoc`]},"application/x-bittorrent":{source:`apache`,extensions:[`torrent`]},"application/x-blorb":{source:`apache`,extensions:[`blb`,`blorb`]},"application/x-bzip":{source:`apache`,compressible:!1,extensions:[`bz`]},"application/x-bzip2":{source:`apache`,compressible:!1,extensions:[`bz2`,`boz`]},"application/x-cbr":{source:`apache`,extensions:[`cbr`,`cba`,`cbt`,`cbz`,`cb7`]},"application/x-cdlink":{source:`apache`,extensions:[`vcd`]},"application/x-cfs-compressed":{source:`apache`,extensions:[`cfs`]},"application/x-chat":{source:`apache`,extensions:[`chat`]},"application/x-chess-pgn":{source:`apache`,extensions:[`pgn`]},"application/x-chrome-extension":{extensions:[`crx`]},"application/x-cocoa":{source:`nginx`,extensions:[`cco`]},"application/x-compress":{source:`apache`},"application/x-conference":{source:`apache`,extensions:[`nsc`]},"application/x-cpio":{source:`apache`,extensions:[`cpio`]},"application/x-csh":{source:`apache`,extensions:[`csh`]},"application/x-deb":{compressible:!1},"application/x-debian-package":{source:`apache`,extensions:[`deb`,`udeb`]},"application/x-dgc-compressed":{source:`apache`,extensions:[`dgc`]},"application/x-director":{source:`apache`,extensions:[`dir`,`dcr`,`dxr`,`cst`,`cct`,`cxt`,`w3d`,`fgd`,`swa`]},"application/x-doom":{source:`apache`,extensions:[`wad`]},"application/x-dtbncx+xml":{source:`apache`,compressible:!0,extensions:[`ncx`]},"application/x-dtbook+xml":{source:`apache`,compressible:!0,extensions:[`dtb`]},"application/x-dtbresource+xml":{source:`apache`,compressible:!0,extensions:[`res`]},"application/x-dvi":{source:`apache`,compressible:!1,extensions:[`dvi`]},"application/x-envoy":{source:`apache`,extensions:[`evy`]},"application/x-eva":{source:`apache`,extensions:[`eva`]},"application/x-font-bdf":{source:`apache`,extensions:[`bdf`]},"application/x-font-dos":{source:`apache`},"application/x-font-framemaker":{source:`apache`},"application/x-font-ghostscript":{source:`apache`,extensions:[`gsf`]},"application/x-font-libgrx":{source:`apache`},"application/x-font-linux-psf":{source:`apache`,extensions:[`psf`]},"application/x-font-pcf":{source:`apache`,extensions:[`pcf`]},"application/x-font-snf":{source:`apache`,extensions:[`snf`]},"application/x-font-speedo":{source:`apache`},"application/x-font-sunos-news":{source:`apache`},"application/x-font-type1":{source:`apache`,extensions:[`pfa`,`pfb`,`pfm`,`afm`]},"application/x-font-vfont":{source:`apache`},"application/x-freearc":{source:`apache`,extensions:[`arc`]},"application/x-futuresplash":{source:`apache`,extensions:[`spl`]},"application/x-gca-compressed":{source:`apache`,extensions:[`gca`]},"application/x-glulx":{source:`apache`,extensions:[`ulx`]},"application/x-gnumeric":{source:`apache`,extensions:[`gnumeric`]},"application/x-gramps-xml":{source:`apache`,extensions:[`gramps`]},"application/x-gtar":{source:`apache`,extensions:[`gtar`]},"application/x-gzip":{source:`apache`},"application/x-hdf":{source:`apache`,extensions:[`hdf`]},"application/x-httpd-php":{compressible:!0,extensions:[`php`]},"application/x-install-instructions":{source:`apache`,extensions:[`install`]},"application/x-iso9660-image":{source:`apache`,extensions:[`iso`]},"application/x-iwork-keynote-sffkey":{extensions:[`key`]},"application/x-iwork-numbers-sffnumbers":{extensions:[`numbers`]},"application/x-iwork-pages-sffpages":{extensions:[`pages`]},"application/x-java-archive-diff":{source:`nginx`,extensions:[`jardiff`]},"application/x-java-jnlp-file":{source:`apache`,compressible:!1,extensions:[`jnlp`]},"application/x-javascript":{compressible:!0},"application/x-keepass2":{extensions:[`kdbx`]},"application/x-latex":{source:`apache`,compressible:!1,extensions:[`latex`]},"application/x-lua-bytecode":{extensions:[`luac`]},"application/x-lzh-compressed":{source:`apache`,extensions:[`lzh`,`lha`]},"application/x-makeself":{source:`nginx`,extensions:[`run`]},"application/x-mie":{source:`apache`,extensions:[`mie`]},"application/x-mobipocket-ebook":{source:`apache`,extensions:[`prc`,`mobi`]},"application/x-mpegurl":{compressible:!1},"application/x-ms-application":{source:`apache`,extensions:[`application`]},"application/x-ms-shortcut":{source:`apache`,extensions:[`lnk`]},"application/x-ms-wmd":{source:`apache`,extensions:[`wmd`]},"application/x-ms-wmz":{source:`apache`,extensions:[`wmz`]},"application/x-ms-xbap":{source:`apache`,extensions:[`xbap`]},"application/x-msaccess":{source:`apache`,extensions:[`mdb`]},"application/x-msbinder":{source:`apache`,extensions:[`obd`]},"application/x-mscardfile":{source:`apache`,extensions:[`crd`]},"application/x-msclip":{source:`apache`,extensions:[`clp`]},"application/x-msdos-program":{extensions:[`exe`]},"application/x-msdownload":{source:`apache`,extensions:[`exe`,`dll`,`com`,`bat`,`msi`]},"application/x-msmediaview":{source:`apache`,extensions:[`mvb`,`m13`,`m14`]},"application/x-msmetafile":{source:`apache`,extensions:[`wmf`,`wmz`,`emf`,`emz`]},"application/x-msmoney":{source:`apache`,extensions:[`mny`]},"application/x-mspublisher":{source:`apache`,extensions:[`pub`]},"application/x-msschedule":{source:`apache`,extensions:[`scd`]},"application/x-msterminal":{source:`apache`,extensions:[`trm`]},"application/x-mswrite":{source:`apache`,extensions:[`wri`]},"application/x-netcdf":{source:`apache`,extensions:[`nc`,`cdf`]},"application/x-ns-proxy-autoconfig":{compressible:!0,extensions:[`pac`]},"application/x-nzb":{source:`apache`,extensions:[`nzb`]},"application/x-perl":{source:`nginx`,extensions:[`pl`,`pm`]},"application/x-pilot":{source:`nginx`,extensions:[`prc`,`pdb`]},"application/x-pkcs12":{source:`apache`,compressible:!1,extensions:[`p12`,`pfx`]},"application/x-pkcs7-certificates":{source:`apache`,extensions:[`p7b`,`spc`]},"application/x-pkcs7-certreqresp":{source:`apache`,extensions:[`p7r`]},"application/x-pki-message":{source:`iana`},"application/x-rar-compressed":{source:`apache`,compressible:!1,extensions:[`rar`]},"application/x-redhat-package-manager":{source:`nginx`,extensions:[`rpm`]},"application/x-research-info-systems":{source:`apache`,extensions:[`ris`]},"application/x-sea":{source:`nginx`,extensions:[`sea`]},"application/x-sh":{source:`apache`,compressible:!0,extensions:[`sh`]},"application/x-shar":{source:`apache`,extensions:[`shar`]},"application/x-shockwave-flash":{source:`apache`,compressible:!1,extensions:[`swf`]},"application/x-silverlight-app":{source:`apache`,extensions:[`xap`]},"application/x-sql":{source:`apache`,extensions:[`sql`]},"application/x-stuffit":{source:`apache`,compressible:!1,extensions:[`sit`]},"application/x-stuffitx":{source:`apache`,extensions:[`sitx`]},"application/x-subrip":{source:`apache`,extensions:[`srt`]},"application/x-sv4cpio":{source:`apache`,extensions:[`sv4cpio`]},"application/x-sv4crc":{source:`apache`,extensions:[`sv4crc`]},"application/x-t3vm-image":{source:`apache`,extensions:[`t3`]},"application/x-tads":{source:`apache`,extensions:[`gam`]},"application/x-tar":{source:`apache`,compressible:!0,extensions:[`tar`]},"application/x-tcl":{source:`apache`,extensions:[`tcl`,`tk`]},"application/x-tex":{source:`apache`,extensions:[`tex`]},"application/x-tex-tfm":{source:`apache`,extensions:[`tfm`]},"application/x-texinfo":{source:`apache`,extensions:[`texinfo`,`texi`]},"application/x-tgif":{source:`apache`,extensions:[`obj`]},"application/x-ustar":{source:`apache`,extensions:[`ustar`]},"application/x-virtualbox-hdd":{compressible:!0,extensions:[`hdd`]},"application/x-virtualbox-ova":{compressible:!0,extensions:[`ova`]},"application/x-virtualbox-ovf":{compressible:!0,extensions:[`ovf`]},"application/x-virtualbox-vbox":{compressible:!0,extensions:[`vbox`]},"application/x-virtualbox-vbox-extpack":{compressible:!1,extensions:[`vbox-extpack`]},"application/x-virtualbox-vdi":{compressible:!0,extensions:[`vdi`]},"application/x-virtualbox-vhd":{compressible:!0,extensions:[`vhd`]},"application/x-virtualbox-vmdk":{compressible:!0,extensions:[`vmdk`]},"application/x-wais-source":{source:`apache`,extensions:[`src`]},"application/x-web-app-manifest+json":{compressible:!0,extensions:[`webapp`]},"application/x-www-form-urlencoded":{source:`iana`,compressible:!0},"application/x-x509-ca-cert":{source:`iana`,extensions:[`der`,`crt`,`pem`]},"application/x-x509-ca-ra-cert":{source:`iana`},"application/x-x509-next-ca-cert":{source:`iana`},"application/x-xfig":{source:`apache`,extensions:[`fig`]},"application/x-xliff+xml":{source:`apache`,compressible:!0,extensions:[`xlf`]},"application/x-xpinstall":{source:`apache`,compressible:!1,extensions:[`xpi`]},"application/x-xz":{source:`apache`,extensions:[`xz`]},"application/x-zmachine":{source:`apache`,extensions:[`z1`,`z2`,`z3`,`z4`,`z5`,`z6`,`z7`,`z8`]},"application/x400-bp":{source:`iana`},"application/xacml+xml":{source:`iana`,compressible:!0},"application/xaml+xml":{source:`apache`,compressible:!0,extensions:[`xaml`]},"application/xcap-att+xml":{source:`iana`,compressible:!0,extensions:[`xav`]},"application/xcap-caps+xml":{source:`iana`,compressible:!0,extensions:[`xca`]},"application/xcap-diff+xml":{source:`iana`,compressible:!0,extensions:[`xdf`]},"application/xcap-el+xml":{source:`iana`,compressible:!0,extensions:[`xel`]},"application/xcap-error+xml":{source:`iana`,compressible:!0},"application/xcap-ns+xml":{source:`iana`,compressible:!0,extensions:[`xns`]},"application/xcon-conference-info+xml":{source:`iana`,compressible:!0},"application/xcon-conference-info-diff+xml":{source:`iana`,compressible:!0},"application/xenc+xml":{source:`iana`,compressible:!0,extensions:[`xenc`]},"application/xhtml+xml":{source:`iana`,compressible:!0,extensions:[`xhtml`,`xht`]},"application/xhtml-voice+xml":{source:`apache`,compressible:!0},"application/xliff+xml":{source:`iana`,compressible:!0,extensions:[`xlf`]},"application/xml":{source:`iana`,compressible:!0,extensions:[`xml`,`xsl`,`xsd`,`rng`]},"application/xml-dtd":{source:`iana`,compressible:!0,extensions:[`dtd`]},"application/xml-external-parsed-entity":{source:`iana`},"application/xml-patch+xml":{source:`iana`,compressible:!0},"application/xmpp+xml":{source:`iana`,compressible:!0},"application/xop+xml":{source:`iana`,compressible:!0,extensions:[`xop`]},"application/xproc+xml":{source:`apache`,compressible:!0,extensions:[`xpl`]},"application/xslt+xml":{source:`iana`,compressible:!0,extensions:[`xsl`,`xslt`]},"application/xspf+xml":{source:`apache`,compressible:!0,extensions:[`xspf`]},"application/xv+xml":{source:`iana`,compressible:!0,extensions:[`mxml`,`xhvml`,`xvml`,`xvm`]},"application/yang":{source:`iana`,extensions:[`yang`]},"application/yang-data+json":{source:`iana`,compressible:!0},"application/yang-data+xml":{source:`iana`,compressible:!0},"application/yang-patch+json":{source:`iana`,compressible:!0},"application/yang-patch+xml":{source:`iana`,compressible:!0},"application/yin+xml":{source:`iana`,compressible:!0,extensions:[`yin`]},"application/zip":{source:`iana`,compressible:!1,extensions:[`zip`]},"application/zlib":{source:`iana`},"application/zstd":{source:`iana`},"audio/1d-interleaved-parityfec":{source:`iana`},"audio/32kadpcm":{source:`iana`},"audio/3gpp":{source:`iana`,compressible:!1,extensions:[`3gpp`]},"audio/3gpp2":{source:`iana`},"audio/aac":{source:`iana`},"audio/ac3":{source:`iana`},"audio/adpcm":{source:`apache`,extensions:[`adp`]},"audio/amr":{source:`iana`,extensions:[`amr`]},"audio/amr-wb":{source:`iana`},"audio/amr-wb+":{source:`iana`},"audio/aptx":{source:`iana`},"audio/asc":{source:`iana`},"audio/atrac-advanced-lossless":{source:`iana`},"audio/atrac-x":{source:`iana`},"audio/atrac3":{source:`iana`},"audio/basic":{source:`iana`,compressible:!1,extensions:[`au`,`snd`]},"audio/bv16":{source:`iana`},"audio/bv32":{source:`iana`},"audio/clearmode":{source:`iana`},"audio/cn":{source:`iana`},"audio/dat12":{source:`iana`},"audio/dls":{source:`iana`},"audio/dsr-es201108":{source:`iana`},"audio/dsr-es202050":{source:`iana`},"audio/dsr-es202211":{source:`iana`},"audio/dsr-es202212":{source:`iana`},"audio/dv":{source:`iana`},"audio/dvi4":{source:`iana`},"audio/eac3":{source:`iana`},"audio/encaprtp":{source:`iana`},"audio/evrc":{source:`iana`},"audio/evrc-qcp":{source:`iana`},"audio/evrc0":{source:`iana`},"audio/evrc1":{source:`iana`},"audio/evrcb":{source:`iana`},"audio/evrcb0":{source:`iana`},"audio/evrcb1":{source:`iana`},"audio/evrcnw":{source:`iana`},"audio/evrcnw0":{source:`iana`},"audio/evrcnw1":{source:`iana`},"audio/evrcwb":{source:`iana`},"audio/evrcwb0":{source:`iana`},"audio/evrcwb1":{source:`iana`},"audio/evs":{source:`iana`},"audio/flexfec":{source:`iana`},"audio/fwdred":{source:`iana`},"audio/g711-0":{source:`iana`},"audio/g719":{source:`iana`},"audio/g722":{source:`iana`},"audio/g7221":{source:`iana`},"audio/g723":{source:`iana`},"audio/g726-16":{source:`iana`},"audio/g726-24":{source:`iana`},"audio/g726-32":{source:`iana`},"audio/g726-40":{source:`iana`},"audio/g728":{source:`iana`},"audio/g729":{source:`iana`},"audio/g7291":{source:`iana`},"audio/g729d":{source:`iana`},"audio/g729e":{source:`iana`},"audio/gsm":{source:`iana`},"audio/gsm-efr":{source:`iana`},"audio/gsm-hr-08":{source:`iana`},"audio/ilbc":{source:`iana`},"audio/ip-mr_v2.5":{source:`iana`},"audio/isac":{source:`apache`},"audio/l16":{source:`iana`},"audio/l20":{source:`iana`},"audio/l24":{source:`iana`,compressible:!1},"audio/l8":{source:`iana`},"audio/lpc":{source:`iana`},"audio/melp":{source:`iana`},"audio/melp1200":{source:`iana`},"audio/melp2400":{source:`iana`},"audio/melp600":{source:`iana`},"audio/mhas":{source:`iana`},"audio/midi":{source:`apache`,extensions:[`mid`,`midi`,`kar`,`rmi`]},"audio/mobile-xmf":{source:`iana`,extensions:[`mxmf`]},"audio/mp3":{compressible:!1,extensions:[`mp3`]},"audio/mp4":{source:`iana`,compressible:!1,extensions:[`m4a`,`mp4a`]},"audio/mp4a-latm":{source:`iana`},"audio/mpa":{source:`iana`},"audio/mpa-robust":{source:`iana`},"audio/mpeg":{source:`iana`,compressible:!1,extensions:[`mpga`,`mp2`,`mp2a`,`mp3`,`m2a`,`m3a`]},"audio/mpeg4-generic":{source:`iana`},"audio/musepack":{source:`apache`},"audio/ogg":{source:`iana`,compressible:!1,extensions:[`oga`,`ogg`,`spx`,`opus`]},"audio/opus":{source:`iana`},"audio/parityfec":{source:`iana`},"audio/pcma":{source:`iana`},"audio/pcma-wb":{source:`iana`},"audio/pcmu":{source:`iana`},"audio/pcmu-wb":{source:`iana`},"audio/prs.sid":{source:`iana`},"audio/qcelp":{source:`iana`},"audio/raptorfec":{source:`iana`},"audio/red":{source:`iana`},"audio/rtp-enc-aescm128":{source:`iana`},"audio/rtp-midi":{source:`iana`},"audio/rtploopback":{source:`iana`},"audio/rtx":{source:`iana`},"audio/s3m":{source:`apache`,extensions:[`s3m`]},"audio/scip":{source:`iana`},"audio/silk":{source:`apache`,extensions:[`sil`]},"audio/smv":{source:`iana`},"audio/smv-qcp":{source:`iana`},"audio/smv0":{source:`iana`},"audio/sofa":{source:`iana`},"audio/sp-midi":{source:`iana`},"audio/speex":{source:`iana`},"audio/t140c":{source:`iana`},"audio/t38":{source:`iana`},"audio/telephone-event":{source:`iana`},"audio/tetra_acelp":{source:`iana`},"audio/tetra_acelp_bb":{source:`iana`},"audio/tone":{source:`iana`},"audio/tsvcis":{source:`iana`},"audio/uemclip":{source:`iana`},"audio/ulpfec":{source:`iana`},"audio/usac":{source:`iana`},"audio/vdvi":{source:`iana`},"audio/vmr-wb":{source:`iana`},"audio/vnd.3gpp.iufp":{source:`iana`},"audio/vnd.4sb":{source:`iana`},"audio/vnd.audiokoz":{source:`iana`},"audio/vnd.celp":{source:`iana`},"audio/vnd.cisco.nse":{source:`iana`},"audio/vnd.cmles.radio-events":{source:`iana`},"audio/vnd.cns.anp1":{source:`iana`},"audio/vnd.cns.inf1":{source:`iana`},"audio/vnd.dece.audio":{source:`iana`,extensions:[`uva`,`uvva`]},"audio/vnd.digital-winds":{source:`iana`,extensions:[`eol`]},"audio/vnd.dlna.adts":{source:`iana`},"audio/vnd.dolby.heaac.1":{source:`iana`},"audio/vnd.dolby.heaac.2":{source:`iana`},"audio/vnd.dolby.mlp":{source:`iana`},"audio/vnd.dolby.mps":{source:`iana`},"audio/vnd.dolby.pl2":{source:`iana`},"audio/vnd.dolby.pl2x":{source:`iana`},"audio/vnd.dolby.pl2z":{source:`iana`},"audio/vnd.dolby.pulse.1":{source:`iana`},"audio/vnd.dra":{source:`iana`,extensions:[`dra`]},"audio/vnd.dts":{source:`iana`,extensions:[`dts`]},"audio/vnd.dts.hd":{source:`iana`,extensions:[`dtshd`]},"audio/vnd.dts.uhd":{source:`iana`},"audio/vnd.dvb.file":{source:`iana`},"audio/vnd.everad.plj":{source:`iana`},"audio/vnd.hns.audio":{source:`iana`},"audio/vnd.lucent.voice":{source:`iana`,extensions:[`lvp`]},"audio/vnd.ms-playready.media.pya":{source:`iana`,extensions:[`pya`]},"audio/vnd.nokia.mobile-xmf":{source:`iana`},"audio/vnd.nortel.vbk":{source:`iana`},"audio/vnd.nuera.ecelp4800":{source:`iana`,extensions:[`ecelp4800`]},"audio/vnd.nuera.ecelp7470":{source:`iana`,extensions:[`ecelp7470`]},"audio/vnd.nuera.ecelp9600":{source:`iana`,extensions:[`ecelp9600`]},"audio/vnd.octel.sbc":{source:`iana`},"audio/vnd.presonus.multitrack":{source:`iana`},"audio/vnd.qcelp":{source:`iana`},"audio/vnd.rhetorex.32kadpcm":{source:`iana`},"audio/vnd.rip":{source:`iana`,extensions:[`rip`]},"audio/vnd.rn-realaudio":{compressible:!1},"audio/vnd.sealedmedia.softseal.mpeg":{source:`iana`},"audio/vnd.vmx.cvsd":{source:`iana`},"audio/vnd.wave":{compressible:!1},"audio/vorbis":{source:`iana`,compressible:!1},"audio/vorbis-config":{source:`iana`},"audio/wav":{compressible:!1,extensions:[`wav`]},"audio/wave":{compressible:!1,extensions:[`wav`]},"audio/webm":{source:`apache`,compressible:!1,extensions:[`weba`]},"audio/x-aac":{source:`apache`,compressible:!1,extensions:[`aac`]},"audio/x-aiff":{source:`apache`,extensions:[`aif`,`aiff`,`aifc`]},"audio/x-caf":{source:`apache`,compressible:!1,extensions:[`caf`]},"audio/x-flac":{source:`apache`,extensions:[`flac`]},"audio/x-m4a":{source:`nginx`,extensions:[`m4a`]},"audio/x-matroska":{source:`apache`,extensions:[`mka`]},"audio/x-mpegurl":{source:`apache`,extensions:[`m3u`]},"audio/x-ms-wax":{source:`apache`,extensions:[`wax`]},"audio/x-ms-wma":{source:`apache`,extensions:[`wma`]},"audio/x-pn-realaudio":{source:`apache`,extensions:[`ram`,`ra`]},"audio/x-pn-realaudio-plugin":{source:`apache`,extensions:[`rmp`]},"audio/x-realaudio":{source:`nginx`,extensions:[`ra`]},"audio/x-tta":{source:`apache`},"audio/x-wav":{source:`apache`,extensions:[`wav`]},"audio/xm":{source:`apache`,extensions:[`xm`]},"chemical/x-cdx":{source:`apache`,extensions:[`cdx`]},"chemical/x-cif":{source:`apache`,extensions:[`cif`]},"chemical/x-cmdf":{source:`apache`,extensions:[`cmdf`]},"chemical/x-cml":{source:`apache`,extensions:[`cml`]},"chemical/x-csml":{source:`apache`,extensions:[`csml`]},"chemical/x-pdb":{source:`apache`},"chemical/x-xyz":{source:`apache`,extensions:[`xyz`]},"font/collection":{source:`iana`,extensions:[`ttc`]},"font/otf":{source:`iana`,compressible:!0,extensions:[`otf`]},"font/sfnt":{source:`iana`},"font/ttf":{source:`iana`,compressible:!0,extensions:[`ttf`]},"font/woff":{source:`iana`,extensions:[`woff`]},"font/woff2":{source:`iana`,extensions:[`woff2`]},"image/aces":{source:`iana`,extensions:[`exr`]},"image/apng":{compressible:!1,extensions:[`apng`]},"image/avci":{source:`iana`,extensions:[`avci`]},"image/avcs":{source:`iana`,extensions:[`avcs`]},"image/avif":{source:`iana`,compressible:!1,extensions:[`avif`]},"image/bmp":{source:`iana`,compressible:!0,extensions:[`bmp`]},"image/cgm":{source:`iana`,extensions:[`cgm`]},"image/dicom-rle":{source:`iana`,extensions:[`drle`]},"image/emf":{source:`iana`,extensions:[`emf`]},"image/fits":{source:`iana`,extensions:[`fits`]},"image/g3fax":{source:`iana`,extensions:[`g3`]},"image/gif":{source:`iana`,compressible:!1,extensions:[`gif`]},"image/heic":{source:`iana`,extensions:[`heic`]},"image/heic-sequence":{source:`iana`,extensions:[`heics`]},"image/heif":{source:`iana`,extensions:[`heif`]},"image/heif-sequence":{source:`iana`,extensions:[`heifs`]},"image/hej2k":{source:`iana`,extensions:[`hej2`]},"image/hsj2":{source:`iana`,extensions:[`hsj2`]},"image/ief":{source:`iana`,extensions:[`ief`]},"image/jls":{source:`iana`,extensions:[`jls`]},"image/jp2":{source:`iana`,compressible:!1,extensions:[`jp2`,`jpg2`]},"image/jpeg":{source:`iana`,compressible:!1,extensions:[`jpeg`,`jpg`,`jpe`]},"image/jph":{source:`iana`,extensions:[`jph`]},"image/jphc":{source:`iana`,extensions:[`jhc`]},"image/jpm":{source:`iana`,compressible:!1,extensions:[`jpm`]},"image/jpx":{source:`iana`,compressible:!1,extensions:[`jpx`,`jpf`]},"image/jxr":{source:`iana`,extensions:[`jxr`]},"image/jxra":{source:`iana`,extensions:[`jxra`]},"image/jxrs":{source:`iana`,extensions:[`jxrs`]},"image/jxs":{source:`iana`,extensions:[`jxs`]},"image/jxsc":{source:`iana`,extensions:[`jxsc`]},"image/jxsi":{source:`iana`,extensions:[`jxsi`]},"image/jxss":{source:`iana`,extensions:[`jxss`]},"image/ktx":{source:`iana`,extensions:[`ktx`]},"image/ktx2":{source:`iana`,extensions:[`ktx2`]},"image/naplps":{source:`iana`},"image/pjpeg":{compressible:!1},"image/png":{source:`iana`,compressible:!1,extensions:[`png`]},"image/prs.btif":{source:`iana`,extensions:[`btif`]},"image/prs.pti":{source:`iana`,extensions:[`pti`]},"image/pwg-raster":{source:`iana`},"image/sgi":{source:`apache`,extensions:[`sgi`]},"image/svg+xml":{source:`iana`,compressible:!0,extensions:[`svg`,`svgz`]},"image/t38":{source:`iana`,extensions:[`t38`]},"image/tiff":{source:`iana`,compressible:!1,extensions:[`tif`,`tiff`]},"image/tiff-fx":{source:`iana`,extensions:[`tfx`]},"image/vnd.adobe.photoshop":{source:`iana`,compressible:!0,extensions:[`psd`]},"image/vnd.airzip.accelerator.azv":{source:`iana`,extensions:[`azv`]},"image/vnd.cns.inf2":{source:`iana`},"image/vnd.dece.graphic":{source:`iana`,extensions:[`uvi`,`uvvi`,`uvg`,`uvvg`]},"image/vnd.djvu":{source:`iana`,extensions:[`djvu`,`djv`]},"image/vnd.dvb.subtitle":{source:`iana`,extensions:[`sub`]},"image/vnd.dwg":{source:`iana`,extensions:[`dwg`]},"image/vnd.dxf":{source:`iana`,extensions:[`dxf`]},"image/vnd.fastbidsheet":{source:`iana`,extensions:[`fbs`]},"image/vnd.fpx":{source:`iana`,extensions:[`fpx`]},"image/vnd.fst":{source:`iana`,extensions:[`fst`]},"image/vnd.fujixerox.edmics-mmr":{source:`iana`,extensions:[`mmr`]},"image/vnd.fujixerox.edmics-rlc":{source:`iana`,extensions:[`rlc`]},"image/vnd.globalgraphics.pgb":{source:`iana`},"image/vnd.microsoft.icon":{source:`iana`,compressible:!0,extensions:[`ico`]},"image/vnd.mix":{source:`iana`},"image/vnd.mozilla.apng":{source:`iana`},"image/vnd.ms-dds":{compressible:!0,extensions:[`dds`]},"image/vnd.ms-modi":{source:`iana`,extensions:[`mdi`]},"image/vnd.ms-photo":{source:`apache`,extensions:[`wdp`]},"image/vnd.net-fpx":{source:`iana`,extensions:[`npx`]},"image/vnd.pco.b16":{source:`iana`,extensions:[`b16`]},"image/vnd.radiance":{source:`iana`},"image/vnd.sealed.png":{source:`iana`},"image/vnd.sealedmedia.softseal.gif":{source:`iana`},"image/vnd.sealedmedia.softseal.jpg":{source:`iana`},"image/vnd.svf":{source:`iana`},"image/vnd.tencent.tap":{source:`iana`,extensions:[`tap`]},"image/vnd.valve.source.texture":{source:`iana`,extensions:[`vtf`]},"image/vnd.wap.wbmp":{source:`iana`,extensions:[`wbmp`]},"image/vnd.xiff":{source:`iana`,extensions:[`xif`]},"image/vnd.zbrush.pcx":{source:`iana`,extensions:[`pcx`]},"image/webp":{source:`apache`,extensions:[`webp`]},"image/wmf":{source:`iana`,extensions:[`wmf`]},"image/x-3ds":{source:`apache`,extensions:[`3ds`]},"image/x-cmu-raster":{source:`apache`,extensions:[`ras`]},"image/x-cmx":{source:`apache`,extensions:[`cmx`]},"image/x-freehand":{source:`apache`,extensions:[`fh`,`fhc`,`fh4`,`fh5`,`fh7`]},"image/x-icon":{source:`apache`,compressible:!0,extensions:[`ico`]},"image/x-jng":{source:`nginx`,extensions:[`jng`]},"image/x-mrsid-image":{source:`apache`,extensions:[`sid`]},"image/x-ms-bmp":{source:`nginx`,compressible:!0,extensions:[`bmp`]},"image/x-pcx":{source:`apache`,extensions:[`pcx`]},"image/x-pict":{source:`apache`,extensions:[`pic`,`pct`]},"image/x-portable-anymap":{source:`apache`,extensions:[`pnm`]},"image/x-portable-bitmap":{source:`apache`,extensions:[`pbm`]},"image/x-portable-graymap":{source:`apache`,extensions:[`pgm`]},"image/x-portable-pixmap":{source:`apache`,extensions:[`ppm`]},"image/x-rgb":{source:`apache`,extensions:[`rgb`]},"image/x-tga":{source:`apache`,extensions:[`tga`]},"image/x-xbitmap":{source:`apache`,extensions:[`xbm`]},"image/x-xcf":{compressible:!1},"image/x-xpixmap":{source:`apache`,extensions:[`xpm`]},"image/x-xwindowdump":{source:`apache`,extensions:[`xwd`]},"message/cpim":{source:`iana`},"message/delivery-status":{source:`iana`},"message/disposition-notification":{source:`iana`,extensions:[`disposition-notification`]},"message/external-body":{source:`iana`},"message/feedback-report":{source:`iana`},"message/global":{source:`iana`,extensions:[`u8msg`]},"message/global-delivery-status":{source:`iana`,extensions:[`u8dsn`]},"message/global-disposition-notification":{source:`iana`,extensions:[`u8mdn`]},"message/global-headers":{source:`iana`,extensions:[`u8hdr`]},"message/http":{source:`iana`,compressible:!1},"message/imdn+xml":{source:`iana`,compressible:!0},"message/news":{source:`iana`},"message/partial":{source:`iana`,compressible:!1},"message/rfc822":{source:`iana`,compressible:!0,extensions:[`eml`,`mime`]},"message/s-http":{source:`iana`},"message/sip":{source:`iana`},"message/sipfrag":{source:`iana`},"message/tracking-status":{source:`iana`},"message/vnd.si.simp":{source:`iana`},"message/vnd.wfa.wsc":{source:`iana`,extensions:[`wsc`]},"model/3mf":{source:`iana`,extensions:[`3mf`]},"model/e57":{source:`iana`},"model/gltf+json":{source:`iana`,compressible:!0,extensions:[`gltf`]},"model/gltf-binary":{source:`iana`,compressible:!0,extensions:[`glb`]},"model/iges":{source:`iana`,compressible:!1,extensions:[`igs`,`iges`]},"model/mesh":{source:`iana`,compressible:!1,extensions:[`msh`,`mesh`,`silo`]},"model/mtl":{source:`iana`,extensions:[`mtl`]},"model/obj":{source:`iana`,extensions:[`obj`]},"model/step":{source:`iana`},"model/step+xml":{source:`iana`,compressible:!0,extensions:[`stpx`]},"model/step+zip":{source:`iana`,compressible:!1,extensions:[`stpz`]},"model/step-xml+zip":{source:`iana`,compressible:!1,extensions:[`stpxz`]},"model/stl":{source:`iana`,extensions:[`stl`]},"model/vnd.collada+xml":{source:`iana`,compressible:!0,extensions:[`dae`]},"model/vnd.dwf":{source:`iana`,extensions:[`dwf`]},"model/vnd.flatland.3dml":{source:`iana`},"model/vnd.gdl":{source:`iana`,extensions:[`gdl`]},"model/vnd.gs-gdl":{source:`apache`},"model/vnd.gs.gdl":{source:`iana`},"model/vnd.gtw":{source:`iana`,extensions:[`gtw`]},"model/vnd.moml+xml":{source:`iana`,compressible:!0},"model/vnd.mts":{source:`iana`,extensions:[`mts`]},"model/vnd.opengex":{source:`iana`,extensions:[`ogex`]},"model/vnd.parasolid.transmit.binary":{source:`iana`,extensions:[`x_b`]},"model/vnd.parasolid.transmit.text":{source:`iana`,extensions:[`x_t`]},"model/vnd.pytha.pyox":{source:`iana`},"model/vnd.rosette.annotated-data-model":{source:`iana`},"model/vnd.sap.vds":{source:`iana`,extensions:[`vds`]},"model/vnd.usdz+zip":{source:`iana`,compressible:!1,extensions:[`usdz`]},"model/vnd.valve.source.compiled-map":{source:`iana`,extensions:[`bsp`]},"model/vnd.vtu":{source:`iana`,extensions:[`vtu`]},"model/vrml":{source:`iana`,compressible:!1,extensions:[`wrl`,`vrml`]},"model/x3d+binary":{source:`apache`,compressible:!1,extensions:[`x3db`,`x3dbz`]},"model/x3d+fastinfoset":{source:`iana`,extensions:[`x3db`]},"model/x3d+vrml":{source:`apache`,compressible:!1,extensions:[`x3dv`,`x3dvz`]},"model/x3d+xml":{source:`iana`,compressible:!0,extensions:[`x3d`,`x3dz`]},"model/x3d-vrml":{source:`iana`,extensions:[`x3dv`]},"multipart/alternative":{source:`iana`,compressible:!1},"multipart/appledouble":{source:`iana`},"multipart/byteranges":{source:`iana`},"multipart/digest":{source:`iana`},"multipart/encrypted":{source:`iana`,compressible:!1},"multipart/form-data":{source:`iana`,compressible:!1},"multipart/header-set":{source:`iana`},"multipart/mixed":{source:`iana`},"multipart/multilingual":{source:`iana`},"multipart/parallel":{source:`iana`},"multipart/related":{source:`iana`,compressible:!1},"multipart/report":{source:`iana`},"multipart/signed":{source:`iana`,compressible:!1},"multipart/vnd.bint.med-plus":{source:`iana`},"multipart/voice-message":{source:`iana`},"multipart/x-mixed-replace":{source:`iana`},"text/1d-interleaved-parityfec":{source:`iana`},"text/cache-manifest":{source:`iana`,compressible:!0,extensions:[`appcache`,`manifest`]},"text/calendar":{source:`iana`,extensions:[`ics`,`ifb`]},"text/calender":{compressible:!0},"text/cmd":{compressible:!0},"text/coffeescript":{extensions:[`coffee`,`litcoffee`]},"text/cql":{source:`iana`},"text/cql-expression":{source:`iana`},"text/cql-identifier":{source:`iana`},"text/css":{source:`iana`,charset:`UTF-8`,compressible:!0,extensions:[`css`]},"text/csv":{source:`iana`,compressible:!0,extensions:[`csv`]},"text/csv-schema":{source:`iana`},"text/directory":{source:`iana`},"text/dns":{source:`iana`},"text/ecmascript":{source:`iana`},"text/encaprtp":{source:`iana`},"text/enriched":{source:`iana`},"text/fhirpath":{source:`iana`},"text/flexfec":{source:`iana`},"text/fwdred":{source:`iana`},"text/gff3":{source:`iana`},"text/grammar-ref-list":{source:`iana`},"text/html":{source:`iana`,compressible:!0,extensions:[`html`,`htm`,`shtml`]},"text/jade":{extensions:[`jade`]},"text/javascript":{source:`iana`,compressible:!0},"text/jcr-cnd":{source:`iana`},"text/jsx":{compressible:!0,extensions:[`jsx`]},"text/less":{compressible:!0,extensions:[`less`]},"text/markdown":{source:`iana`,compressible:!0,extensions:[`markdown`,`md`]},"text/mathml":{source:`nginx`,extensions:[`mml`]},"text/mdx":{compressible:!0,extensions:[`mdx`]},"text/mizar":{source:`iana`},"text/n3":{source:`iana`,charset:`UTF-8`,compressible:!0,extensions:[`n3`]},"text/parameters":{source:`iana`,charset:`UTF-8`},"text/parityfec":{source:`iana`},"text/plain":{source:`iana`,compressible:!0,extensions:[`txt`,`text`,`conf`,`def`,`list`,`log`,`in`,`ini`]},"text/provenance-notation":{source:`iana`,charset:`UTF-8`},"text/prs.fallenstein.rst":{source:`iana`},"text/prs.lines.tag":{source:`iana`,extensions:[`dsc`]},"text/prs.prop.logic":{source:`iana`},"text/raptorfec":{source:`iana`},"text/red":{source:`iana`},"text/rfc822-headers":{source:`iana`},"text/richtext":{source:`iana`,compressible:!0,extensions:[`rtx`]},"text/rtf":{source:`iana`,compressible:!0,extensions:[`rtf`]},"text/rtp-enc-aescm128":{source:`iana`},"text/rtploopback":{source:`iana`},"text/rtx":{source:`iana`},"text/sgml":{source:`iana`,extensions:[`sgml`,`sgm`]},"text/shaclc":{source:`iana`},"text/shex":{source:`iana`,extensions:[`shex`]},"text/slim":{extensions:[`slim`,`slm`]},"text/spdx":{source:`iana`,extensions:[`spdx`]},"text/strings":{source:`iana`},"text/stylus":{extensions:[`stylus`,`styl`]},"text/t140":{source:`iana`},"text/tab-separated-values":{source:`iana`,compressible:!0,extensions:[`tsv`]},"text/troff":{source:`iana`,extensions:[`t`,`tr`,`roff`,`man`,`me`,`ms`]},"text/turtle":{source:`iana`,charset:`UTF-8`,extensions:[`ttl`]},"text/ulpfec":{source:`iana`},"text/uri-list":{source:`iana`,compressible:!0,extensions:[`uri`,`uris`,`urls`]},"text/vcard":{source:`iana`,compressible:!0,extensions:[`vcard`]},"text/vnd.a":{source:`iana`},"text/vnd.abc":{source:`iana`},"text/vnd.ascii-art":{source:`iana`},"text/vnd.curl":{source:`iana`,extensions:[`curl`]},"text/vnd.curl.dcurl":{source:`apache`,extensions:[`dcurl`]},"text/vnd.curl.mcurl":{source:`apache`,extensions:[`mcurl`]},"text/vnd.curl.scurl":{source:`apache`,extensions:[`scurl`]},"text/vnd.debian.copyright":{source:`iana`,charset:`UTF-8`},"text/vnd.dmclientscript":{source:`iana`},"text/vnd.dvb.subtitle":{source:`iana`,extensions:[`sub`]},"text/vnd.esmertec.theme-descriptor":{source:`iana`,charset:`UTF-8`},"text/vnd.familysearch.gedcom":{source:`iana`,extensions:[`ged`]},"text/vnd.ficlab.flt":{source:`iana`},"text/vnd.fly":{source:`iana`,extensions:[`fly`]},"text/vnd.fmi.flexstor":{source:`iana`,extensions:[`flx`]},"text/vnd.gml":{source:`iana`},"text/vnd.graphviz":{source:`iana`,extensions:[`gv`]},"text/vnd.hans":{source:`iana`},"text/vnd.hgl":{source:`iana`},"text/vnd.in3d.3dml":{source:`iana`,extensions:[`3dml`]},"text/vnd.in3d.spot":{source:`iana`,extensions:[`spot`]},"text/vnd.iptc.newsml":{source:`iana`},"text/vnd.iptc.nitf":{source:`iana`},"text/vnd.latex-z":{source:`iana`},"text/vnd.motorola.reflex":{source:`iana`},"text/vnd.ms-mediapackage":{source:`iana`},"text/vnd.net2phone.commcenter.command":{source:`iana`},"text/vnd.radisys.msml-basic-layout":{source:`iana`},"text/vnd.senx.warpscript":{source:`iana`},"text/vnd.si.uricatalogue":{source:`iana`},"text/vnd.sosi":{source:`iana`},"text/vnd.sun.j2me.app-descriptor":{source:`iana`,charset:`UTF-8`,extensions:[`jad`]},"text/vnd.trolltech.linguist":{source:`iana`,charset:`UTF-8`},"text/vnd.wap.si":{source:`iana`},"text/vnd.wap.sl":{source:`iana`},"text/vnd.wap.wml":{source:`iana`,extensions:[`wml`]},"text/vnd.wap.wmlscript":{source:`iana`,extensions:[`wmls`]},"text/vtt":{source:`iana`,charset:`UTF-8`,compressible:!0,extensions:[`vtt`]},"text/x-asm":{source:`apache`,extensions:[`s`,`asm`]},"text/x-c":{source:`apache`,extensions:[`c`,`cc`,`cxx`,`cpp`,`h`,`hh`,`dic`]},"text/x-component":{source:`nginx`,extensions:[`htc`]},"text/x-fortran":{source:`apache`,extensions:[`f`,`for`,`f77`,`f90`]},"text/x-gwt-rpc":{compressible:!0},"text/x-handlebars-template":{extensions:[`hbs`]},"text/x-java-source":{source:`apache`,extensions:[`java`]},"text/x-jquery-tmpl":{compressible:!0},"text/x-lua":{extensions:[`lua`]},"text/x-markdown":{compressible:!0,extensions:[`mkd`]},"text/x-nfo":{source:`apache`,extensions:[`nfo`]},"text/x-opml":{source:`apache`,extensions:[`opml`]},"text/x-org":{compressible:!0,extensions:[`org`]},"text/x-pascal":{source:`apache`,extensions:[`p`,`pas`]},"text/x-processing":{compressible:!0,extensions:[`pde`]},"text/x-sass":{extensions:[`sass`]},"text/x-scss":{extensions:[`scss`]},"text/x-setext":{source:`apache`,extensions:[`etx`]},"text/x-sfv":{source:`apache`,extensions:[`sfv`]},"text/x-suse-ymp":{compressible:!0,extensions:[`ymp`]},"text/x-uuencode":{source:`apache`,extensions:[`uu`]},"text/x-vcalendar":{source:`apache`,extensions:[`vcs`]},"text/x-vcard":{source:`apache`,extensions:[`vcf`]},"text/xml":{source:`iana`,compressible:!0,extensions:[`xml`]},"text/xml-external-parsed-entity":{source:`iana`},"text/yaml":{compressible:!0,extensions:[`yaml`,`yml`]},"video/1d-interleaved-parityfec":{source:`iana`},"video/3gpp":{source:`iana`,extensions:[`3gp`,`3gpp`]},"video/3gpp-tt":{source:`iana`},"video/3gpp2":{source:`iana`,extensions:[`3g2`]},"video/av1":{source:`iana`},"video/bmpeg":{source:`iana`},"video/bt656":{source:`iana`},"video/celb":{source:`iana`},"video/dv":{source:`iana`},"video/encaprtp":{source:`iana`},"video/ffv1":{source:`iana`},"video/flexfec":{source:`iana`},"video/h261":{source:`iana`,extensions:[`h261`]},"video/h263":{source:`iana`,extensions:[`h263`]},"video/h263-1998":{source:`iana`},"video/h263-2000":{source:`iana`},"video/h264":{source:`iana`,extensions:[`h264`]},"video/h264-rcdo":{source:`iana`},"video/h264-svc":{source:`iana`},"video/h265":{source:`iana`},"video/iso.segment":{source:`iana`,extensions:[`m4s`]},"video/jpeg":{source:`iana`,extensions:[`jpgv`]},"video/jpeg2000":{source:`iana`},"video/jpm":{source:`apache`,extensions:[`jpm`,`jpgm`]},"video/jxsv":{source:`iana`},"video/mj2":{source:`iana`,extensions:[`mj2`,`mjp2`]},"video/mp1s":{source:`iana`},"video/mp2p":{source:`iana`},"video/mp2t":{source:`iana`,extensions:[`ts`]},"video/mp4":{source:`iana`,compressible:!1,extensions:[`mp4`,`mp4v`,`mpg4`]},"video/mp4v-es":{source:`iana`},"video/mpeg":{source:`iana`,compressible:!1,extensions:[`mpeg`,`mpg`,`mpe`,`m1v`,`m2v`]},"video/mpeg4-generic":{source:`iana`},"video/mpv":{source:`iana`},"video/nv":{source:`iana`},"video/ogg":{source:`iana`,compressible:!1,extensions:[`ogv`]},"video/parityfec":{source:`iana`},"video/pointer":{source:`iana`},"video/quicktime":{source:`iana`,compressible:!1,extensions:[`qt`,`mov`]},"video/raptorfec":{source:`iana`},"video/raw":{source:`iana`},"video/rtp-enc-aescm128":{source:`iana`},"video/rtploopback":{source:`iana`},"video/rtx":{source:`iana`},"video/scip":{source:`iana`},"video/smpte291":{source:`iana`},"video/smpte292m":{source:`iana`},"video/ulpfec":{source:`iana`},"video/vc1":{source:`iana`},"video/vc2":{source:`iana`},"video/vnd.cctv":{source:`iana`},"video/vnd.dece.hd":{source:`iana`,extensions:[`uvh`,`uvvh`]},"video/vnd.dece.mobile":{source:`iana`,extensions:[`uvm`,`uvvm`]},"video/vnd.dece.mp4":{source:`iana`},"video/vnd.dece.pd":{source:`iana`,extensions:[`uvp`,`uvvp`]},"video/vnd.dece.sd":{source:`iana`,extensions:[`uvs`,`uvvs`]},"video/vnd.dece.video":{source:`iana`,extensions:[`uvv`,`uvvv`]},"video/vnd.directv.mpeg":{source:`iana`},"video/vnd.directv.mpeg-tts":{source:`iana`},"video/vnd.dlna.mpeg-tts":{source:`iana`},"video/vnd.dvb.file":{source:`iana`,extensions:[`dvb`]},"video/vnd.fvt":{source:`iana`,extensions:[`fvt`]},"video/vnd.hns.video":{source:`iana`},"video/vnd.iptvforum.1dparityfec-1010":{source:`iana`},"video/vnd.iptvforum.1dparityfec-2005":{source:`iana`},"video/vnd.iptvforum.2dparityfec-1010":{source:`iana`},"video/vnd.iptvforum.2dparityfec-2005":{source:`iana`},"video/vnd.iptvforum.ttsavc":{source:`iana`},"video/vnd.iptvforum.ttsmpeg2":{source:`iana`},"video/vnd.motorola.video":{source:`iana`},"video/vnd.motorola.videop":{source:`iana`},"video/vnd.mpegurl":{source:`iana`,extensions:[`mxu`,`m4u`]},"video/vnd.ms-playready.media.pyv":{source:`iana`,extensions:[`pyv`]},"video/vnd.nokia.interleaved-multimedia":{source:`iana`},"video/vnd.nokia.mp4vr":{source:`iana`},"video/vnd.nokia.videovoip":{source:`iana`},"video/vnd.objectvideo":{source:`iana`},"video/vnd.radgamettools.bink":{source:`iana`},"video/vnd.radgamettools.smacker":{source:`iana`},"video/vnd.sealed.mpeg1":{source:`iana`},"video/vnd.sealed.mpeg4":{source:`iana`},"video/vnd.sealed.swf":{source:`iana`},"video/vnd.sealedmedia.softseal.mov":{source:`iana`},"video/vnd.uvvu.mp4":{source:`iana`,extensions:[`uvu`,`uvvu`]},"video/vnd.vivo":{source:`iana`,extensions:[`viv`]},"video/vnd.youtube.yt":{source:`iana`},"video/vp8":{source:`iana`},"video/vp9":{source:`iana`},"video/webm":{source:`apache`,compressible:!1,extensions:[`webm`]},"video/x-f4v":{source:`apache`,extensions:[`f4v`]},"video/x-fli":{source:`apache`,extensions:[`fli`]},"video/x-flv":{source:`apache`,compressible:!1,extensions:[`flv`]},"video/x-m4v":{source:`apache`,extensions:[`m4v`]},"video/x-matroska":{source:`apache`,compressible:!1,extensions:[`mkv`,`mk3d`,`mks`]},"video/x-mng":{source:`apache`,extensions:[`mng`]},"video/x-ms-asf":{source:`apache`,extensions:[`asf`,`asx`]},"video/x-ms-vob":{source:`apache`,extensions:[`vob`]},"video/x-ms-wm":{source:`apache`,extensions:[`wm`]},"video/x-ms-wmv":{source:`apache`,compressible:!1,extensions:[`wmv`]},"video/x-ms-wmx":{source:`apache`,extensions:[`wmx`]},"video/x-ms-wvx":{source:`apache`,extensions:[`wvx`]},"video/x-msvideo":{source:`apache`,extensions:[`avi`]},"video/x-sgi-movie":{source:`apache`,extensions:[`movie`]},"video/x-smv":{source:`apache`,extensions:[`smv`]},"x-conference/x-cooltalk":{source:`apache`,extensions:[`ice`]},"x-shader/x-fragment":{compressible:!0},"x-shader/x-vertex":{compressible:!0}}})),He=i(((e,t)=>{t.exports=Ve()})),Ue=i((e=>{var n=He(),r=t(`path`).extname,i=/^\s*([^;\s]*)(?:;|\s|$)/,a=/^text\//i;e.charset=o,e.charsets={lookup:o},e.contentType=s,e.extension=c,e.extensions=Object.create(null),e.lookup=l,e.types=Object.create(null),u(e.extensions,e.types);function o(e){if(!e||typeof e!=`string`)return!1;var t=i.exec(e),r=t&&n[t[1].toLowerCase()];return r&&r.charset?r.charset:t&&a.test(t[1])?`UTF-8`:!1}function s(t){if(!t||typeof t!=`string`)return!1;var n=t.indexOf(`/`)===-1?e.lookup(t):t;if(!n)return!1;if(n.indexOf(`charset`)===-1){var r=e.charset(n);r&&(n+=`; charset=`+r.toLowerCase())}return n}function c(t){if(!t||typeof t!=`string`)return!1;var n=i.exec(t),r=n&&e.extensions[n[1].toLowerCase()];return!r||!r.length?!1:r[0]}function l(t){if(!t||typeof t!=`string`)return!1;var n=r(`x.`+t).toLowerCase().substr(1);return n&&e.types[n]||!1}function u(e,t){var r=[`nginx`,`apache`,void 0,`iana`];Object.keys(n).forEach(function(i){var a=n[i],o=a.extensions;if(o&&o.length){e[i]=o;for(var s=0;s<o.length;s++){var c=o[s];if(t[c]){var l=r.indexOf(n[t[c]].source),u=r.indexOf(a.source);if(t[c]!==`application/octet-stream`&&(l>u||l===u&&t[c].substr(0,12)===`application/`))continue}t[c]=i}}})}})),We=i(((e,t)=>{t.exports=n;function n(e){var t=typeof setImmediate==`function`?setImmediate:typeof process==`object`&&typeof process.nextTick==`function`?process.nextTick:null;t?t(e):setTimeout(e,0)}})),K=i(((e,t)=>{var n=We();t.exports=r;function r(e){var t=!1;return n(function(){t=!0}),function(r,i){t?e(r,i):n(function(){e(r,i)})}}})),Ge=i(((e,t)=>{t.exports=n;function n(e){Object.keys(e.jobs).forEach(r.bind(e)),e.jobs={}}function r(e){typeof this.jobs[e]==`function`&&this.jobs[e]()}})),Ke=i(((e,t)=>{var n=K(),r=Ge();t.exports=i;function i(e,t,n,i){var o=n.keyedList?n.keyedList[n.index]:n.index;n.jobs[o]=a(t,o,e[o],function(e,t){o in n.jobs&&(delete n.jobs[o],e?r(n):n.results[o]=t,i(e,n.results))})}function a(e,t,r,i){return e.length==2?e(r,n(i)):e(r,t,n(i))}})),qe=i(((e,t)=>{t.exports=n;function n(e,t){var n=!Array.isArray(e),r={index:0,keyedList:n||t?Object.keys(e):null,jobs:{},results:n?{}:[],size:n?Object.keys(e).length:e.length};return t&&r.keyedList.sort(n?t:function(n,r){return t(e[n],e[r])}),r}})),Je=i(((e,t)=>{var n=Ge(),r=K();t.exports=i;function i(e){Object.keys(this.jobs).length&&(this.index=this.size,n(this),r(e)(null,this.results))}})),Ye=i(((e,t)=>{var n=Ke(),r=qe(),i=Je();t.exports=a;function a(e,t,a){for(var o=r(e);o.index<(o.keyedList||e).length;)n(e,t,o,function(e,t){e?a(e,t):Object.keys(o.jobs).length===0&&a(null,o.results)}),o.index++;return i.bind(o,a)}})),Xe=i(((e,t)=>{var n=Ke(),r=qe(),i=Je();t.exports=a,t.exports.ascending=o,t.exports.descending=s;function a(e,t,a,o){var s=r(e,a);return n(e,t,s,function r(i,a){i?o(i,a):(s.index++,s.index<(s.keyedList||e).length?n(e,t,s,r):o(null,s.results))}),i.bind(s,o)}function o(e,t){return e<t?-1:+(e>t)}function s(e,t){return-1*o(e,t)}})),Ze=i(((e,t)=>{var n=Xe();t.exports=r;function r(e,t,r){return n(e,t,null,r)}})),Qe=i(((e,t)=>{t.exports={parallel:Ye(),serial:Ze(),serialOrdered:Xe()}})),$e=i(((e,t)=>{t.exports=Object})),et=i(((e,t)=>{t.exports=Error})),tt=i(((e,t)=>{t.exports=EvalError})),nt=i(((e,t)=>{t.exports=RangeError})),rt=i(((e,t)=>{t.exports=ReferenceError})),it=i(((e,t)=>{t.exports=SyntaxError})),at=i(((e,t)=>{t.exports=TypeError})),ot=i(((e,t)=>{t.exports=URIError})),st=i(((e,t)=>{t.exports=Math.abs})),ct=i(((e,t)=>{t.exports=Math.floor})),lt=i(((e,t)=>{t.exports=Math.max})),ut=i(((e,t)=>{t.exports=Math.min})),dt=i(((e,t)=>{t.exports=Math.pow})),q=i(((e,t)=>{t.exports=Math.round})),ft=i(((e,t)=>{t.exports=Number.isNaN||function(e){return e!==e}})),pt=i(((e,t)=>{var n=ft();t.exports=function(e){return n(e)||e===0?e:e<0?-1:1}})),mt=i(((e,t)=>{t.exports=Object.getOwnPropertyDescriptor})),ht=i(((e,t)=>{var n=mt();if(n)try{n([],`length`)}catch{n=null}t.exports=n})),gt=i(((e,t)=>{var n=Object.defineProperty||!1;if(n)try{n({},`a`,{value:1})}catch{n=!1}t.exports=n})),J=i(((e,t)=>{t.exports=function(){if(typeof Symbol!=`function`||typeof Object.getOwnPropertySymbols!=`function`)return!1;if(typeof Symbol.iterator==`symbol`)return!0;var e={},t=Symbol(`test`),n=Object(t);if(typeof t==`string`||Object.prototype.toString.call(t)!==`[object Symbol]`||Object.prototype.toString.call(n)!==`[object Symbol]`)return!1;var r=42;for(var i in e[t]=r,e)return!1;if(typeof Object.keys==`function`&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames==`function`&&Object.getOwnPropertyNames(e).length!==0)return!1;var a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor==`function`){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==r||o.enumerable!==!0)return!1}return!0}})),_t=i(((e,t)=>{var n=typeof Symbol<`u`&&Symbol,r=J();t.exports=function(){return typeof n!=`function`||typeof Symbol!=`function`||typeof n(`foo`)!=`symbol`||typeof Symbol(`bar`)!=`symbol`?!1:r()}})),vt=i(((e,t)=>{t.exports=typeof Reflect<`u`&&Reflect.getPrototypeOf||null})),yt=i(((e,t)=>{t.exports=$e().getPrototypeOf||null})),bt=i(((e,t)=>{var n=Object.prototype.toString,r=Math.max,i=`[object Function]`,a=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var i=0;i<t.length;i+=1)n[i+e.length]=t[i];return n},o=function(e,t){for(var n=[],r=t||0,i=0;r<e.length;r+=1,i+=1)n[i]=e[r];return n},s=function(e,t){for(var n=``,r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n};t.exports=function(e){var t=this;if(typeof t!=`function`||n.apply(t)!==i)throw TypeError(`Function.prototype.bind called on incompatible `+t);for(var c=o(arguments,1),l,u=function(){if(this instanceof l){var n=t.apply(this,a(c,arguments));return Object(n)===n?n:this}return t.apply(e,a(c,arguments))},d=r(0,t.length-c.length),f=[],p=0;p<d;p++)f[p]=`$`+p;if(l=Function(`binder`,`return function (`+s(f,`,`)+`){ return binder.apply(this,arguments); }`)(u),t.prototype){var m=function(){};m.prototype=t.prototype,l.prototype=new m,m.prototype=null}return l}})),xt=i(((e,t)=>{var n=bt();t.exports=Function.prototype.bind||n})),St=i(((e,t)=>{t.exports=Function.prototype.call})),Ct=i(((e,t)=>{t.exports=Function.prototype.apply})),wt=i(((e,t)=>{t.exports=typeof Reflect<`u`&&Reflect&&Reflect.apply})),Tt=i(((e,t)=>{var n=xt(),r=Ct(),i=St();t.exports=wt()||n.call(i,r)})),Et=i(((e,t)=>{var n=xt(),r=at(),i=St(),a=Tt();t.exports=function(e){if(e.length<1||typeof e[0]!=`function`)throw new r(`a function is required`);return a(n,i,e)}})),Dt=i(((e,t)=>{var n=Et(),r=ht(),i;try{i=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!=`object`||!(`code`in e)||e.code!==`ERR_PROTO_ACCESS`)throw e}var a=!!i&&r&&r(Object.prototype,`__proto__`),o=Object,s=o.getPrototypeOf;t.exports=a&&typeof a.get==`function`?n([a.get]):typeof s==`function`&&function(e){return s(e==null?e:o(e))}})),Ot=i(((e,t)=>{var n=vt(),r=yt(),i=Dt();t.exports=n?function(e){return n(e)}:r?function(e){if(!e||typeof e!=`object`&&typeof e!=`function`)throw TypeError(`getProto: not an object`);return r(e)}:i?function(e){return i(e)}:null})),kt=i(((e,t)=>{var n=Function.prototype.call,r=Object.prototype.hasOwnProperty;t.exports=xt().call(n,r)})),At=i(((e,t)=>{var n,r=$e(),i=et(),a=tt(),o=nt(),s=rt(),c=it(),l=at(),u=ot(),d=st(),f=ct(),p=lt(),m=ut(),h=dt(),g=q(),_=pt(),v=Function,y=function(e){try{return v(`"use strict"; return (`+e+`).constructor;`)()}catch{}},b=ht(),x=gt(),S=function(){throw new l},C=b?function(){try{return arguments.callee,S}catch{try{return b(arguments,`callee`).get}catch{return S}}}():S,w=_t()(),T=Ot(),E=yt(),D=vt(),O=Ct(),k=St(),A={},j=typeof Uint8Array>`u`||!T?n:T(Uint8Array),M={__proto__:null,"%AggregateError%":typeof AggregateError>`u`?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>`u`?n:ArrayBuffer,"%ArrayIteratorPrototype%":w&&T?T([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":A,"%AsyncGenerator%":A,"%AsyncGeneratorFunction%":A,"%AsyncIteratorPrototype%":A,"%Atomics%":typeof Atomics>`u`?n:Atomics,"%BigInt%":typeof BigInt>`u`?n:BigInt,"%BigInt64Array%":typeof BigInt64Array>`u`?n:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>`u`?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>`u`?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":a,"%Float16Array%":typeof Float16Array>`u`?n:Float16Array,"%Float32Array%":typeof Float32Array>`u`?n:Float32Array,"%Float64Array%":typeof Float64Array>`u`?n:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>`u`?n:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":A,"%Int8Array%":typeof Int8Array>`u`?n:Int8Array,"%Int16Array%":typeof Int16Array>`u`?n:Int16Array,"%Int32Array%":typeof Int32Array>`u`?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":w&&T?T(T([][Symbol.iterator]())):n,"%JSON%":typeof JSON==`object`?JSON:n,"%Map%":typeof Map>`u`?n:Map,"%MapIteratorPrototype%":typeof Map>`u`||!w||!T?n:T(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":r,"%Object.getOwnPropertyDescriptor%":b,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>`u`?n:Promise,"%Proxy%":typeof Proxy>`u`?n:Proxy,"%RangeError%":o,"%ReferenceError%":s,"%Reflect%":typeof Reflect>`u`?n:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>`u`?n:Set,"%SetIteratorPrototype%":typeof Set>`u`||!w||!T?n:T(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>`u`?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":w&&T?T(``[Symbol.iterator]()):n,"%Symbol%":w?Symbol:n,"%SyntaxError%":c,"%ThrowTypeError%":C,"%TypedArray%":j,"%TypeError%":l,"%Uint8Array%":typeof Uint8Array>`u`?n:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>`u`?n:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>`u`?n:Uint16Array,"%Uint32Array%":typeof Uint32Array>`u`?n:Uint32Array,"%URIError%":u,"%WeakMap%":typeof WeakMap>`u`?n:WeakMap,"%WeakRef%":typeof WeakRef>`u`?n:WeakRef,"%WeakSet%":typeof WeakSet>`u`?n:WeakSet,"%Function.prototype.call%":k,"%Function.prototype.apply%":O,"%Object.defineProperty%":x,"%Object.getPrototypeOf%":E,"%Math.abs%":d,"%Math.floor%":f,"%Math.max%":p,"%Math.min%":m,"%Math.pow%":h,"%Math.round%":g,"%Math.sign%":_,"%Reflect.getPrototypeOf%":D};if(T)try{null.error}catch(e){M[`%Error.prototype%`]=T(T(e))}var N=function e(t){var n;if(t===`%AsyncFunction%`)n=y(`async function () {}`);else if(t===`%GeneratorFunction%`)n=y(`function* () {}`);else if(t===`%AsyncGeneratorFunction%`)n=y(`async function* () {}`);else if(t===`%AsyncGenerator%`){var r=e(`%AsyncGeneratorFunction%`);r&&(n=r.prototype)}else if(t===`%AsyncIteratorPrototype%`){var i=e(`%AsyncGenerator%`);i&&T&&(n=T(i.prototype))}return M[t]=n,n},P={__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`]},F=xt(),I=kt(),L=F.call(k,Array.prototype.concat),R=F.call(O,Array.prototype.splice),z=F.call(k,String.prototype.replace),B=F.call(k,String.prototype.slice),V=F.call(k,RegExp.prototype.exec),H=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,U=/\\(\\)?/g,W=function(e){var t=B(e,0,1),n=B(e,-1);if(t===`%`&&n!==`%`)throw new c("invalid intrinsic syntax, expected closing `%`");if(n===`%`&&t!==`%`)throw new c("invalid intrinsic syntax, expected opening `%`");var r=[];return z(e,H,function(e,t,n,i){r[r.length]=n?z(i,U,`$1`):t||e}),r},ee=function(e,t){var n=e,r;if(I(P,n)&&(r=P[n],n=`%`+r[0]+`%`),I(M,n)){var i=M[n];if(i===A&&(i=N(n)),i===void 0&&!t)throw new l(`intrinsic `+e+` exists, but is not available. Please file an issue!`);return{alias:r,name:n,value:i}}throw new c(`intrinsic `+e+` does not exist!`)};t.exports=function(e,t){if(typeof e!=`string`||e.length===0)throw new l(`intrinsic name must be a non-empty string`);if(arguments.length>1&&typeof t!=`boolean`)throw new l(`"allowMissing" argument must be a boolean`);if(V(/^%?[^%]*%?$/,e)===null)throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=W(e),r=n.length>0?n[0]:``,i=ee(`%`+r+`%`,t),a=i.name,o=i.value,s=!1,u=i.alias;u&&(r=u[0],R(n,L([0,1],u)));for(var d=1,f=!0;d<n.length;d+=1){var p=n[d],m=B(p,0,1),h=B(p,-1);if((m===`"`||m===`'`||m==="`"||h===`"`||h===`'`||h==="`")&&m!==h)throw new c(`property names with quotes must have matching quotes`);if(p!==`constructor`&&f||(s=!0),r+=`.`+p,a=`%`+r+`%`,I(M,a))o=M[a];else if(o!=null){if(!(p in o)){if(!t)throw new l(`base intrinsic for `+e+` exists, but the property is not available.`);return}if(b&&d+1>=n.length){var g=b(o,p);f=!!g,o=f&&`get`in g&&!(`originalValue`in g.get)?g.get:o[p]}else f=I(o,p),o=o[p];f&&!s&&(M[a]=o)}}return o}})),jt=i(((e,t)=>{var n=J();t.exports=function(){return n()&&!!Symbol.toStringTag}})),Mt=i(((e,t)=>{var n=At()(`%Object.defineProperty%`,!0),r=jt()(),i=kt(),a=at(),o=r?Symbol.toStringTag:null;t.exports=function(e,t){var r=arguments.length>2&&!!arguments[2]&&arguments[2].force,s=arguments.length>2&&!!arguments[2]&&arguments[2].nonConfigurable;if(r!==void 0&&typeof r!=`boolean`||s!==void 0&&typeof s!=`boolean`)throw new a("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");o&&(r||!i(e,o))&&(n?n(e,o,{configurable:!s,enumerable:!1,value:t,writable:!1}):e[o]=t)}})),Nt=i(((e,t)=>{t.exports=function(e,t){return Object.keys(t).forEach(function(n){e[n]=e[n]||t[n]}),e}})),Pt=i(((e,n)=>{var r=Be(),i=t(`util`),a=t(`path`),o=t(`http`),s=t(`https`),c=t(`url`).parse,l=t(`fs`),u=t(`stream`).Stream,d=t(`crypto`),f=Ue(),p=Qe(),m=Mt(),h=kt(),g=Nt();function _(e){return String(e).replace(/\r/g,`%0D`).replace(/\n/g,`%0A`).replace(/"/g,`%22`)}function v(e){if(!(this instanceof v))return new v(e);for(var t in this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],r.call(this),e||={},e)this[t]=e[t]}i.inherits(v,r),v.LINE_BREAK=`\r
|
|
2
|
-
`,v.DEFAULT_CONTENT_TYPE=`application/octet-stream`,v.prototype.append=function(e,t,n){n||={},typeof n==`string`&&(n={filename:n});var i=r.prototype.append.bind(this);if((typeof t==`number`||t==null)&&(t=String(t)),Array.isArray(t))this._error(Error(`Arrays are not supported.`));else{var a=this._multiPartHeader(e,t,n),o=this._multiPartFooter();i(a),i(t),i(o),this._trackLength(a,t,n)}},v.prototype._trackLength=function(e,t,n){var r=0;n.knownLength==null?Buffer.isBuffer(t)?r=t.length:typeof t==`string`&&(r=Buffer.byteLength(t)):r+=Number(n.knownLength),this._valueLength+=r,this._overheadLength+=Buffer.byteLength(e)+v.LINE_BREAK.length,t&&(t.path||t.readable&&h(t,`httpVersion`)||t instanceof u)&&(n.knownLength||this._valuesToMeasure.push(t))},v.prototype._lengthRetriever=function(e,t){h(e,`fd`)?e.end!=null&&e.end!=1/0&&e.start!=null?t(null,e.end+1-(e.start?e.start:0)):l.stat(e.path,function(n,r){n?t(n):t(null,r.size-(e.start?e.start:0))}):h(e,`httpVersion`)?t(null,Number(e.headers[`content-length`])):h(e,`httpModule`)?(e.on(`response`,function(n){e.pause(),t(null,Number(n.headers[`content-length`]))}),e.resume()):t(`Unknown stream`)},v.prototype._multiPartHeader=function(e,t,n){if(typeof n.header==`string`)return n.header;var r=this._getContentDisposition(t,n),i=this._getContentType(t,n),a=``,o={"Content-Disposition":[`form-data`,`name="`+_(e)+`"`].concat(r||[]),"Content-Type":[].concat(i||[])};typeof n.header==`object`&&g(o,n.header);var s;for(var c in o)if(h(o,c)){if(s=o[c],s==null)continue;Array.isArray(s)||(s=[s]),s.length&&(a+=c+`: `+s.join(`; `)+v.LINE_BREAK)}return`--`+this.getBoundary()+v.LINE_BREAK+a+v.LINE_BREAK},v.prototype._getContentDisposition=function(e,t){var n;if(typeof t.filepath==`string`?n=a.normalize(t.filepath).replace(/\\/g,`/`):t.filename||e&&(e.name||e.path)?n=a.basename(t.filename||e&&(e.name||e.path)):e&&e.readable&&h(e,`httpVersion`)&&(n=a.basename(e.client._httpMessage.path||``)),n)return`filename="`+_(n)+`"`},v.prototype._getContentType=function(e,t){var n=t.contentType;return!n&&e&&e.name&&(n=f.lookup(e.name)),!n&&e&&e.path&&(n=f.lookup(e.path)),!n&&e&&e.readable&&h(e,`httpVersion`)&&(n=e.headers[`content-type`]),!n&&(t.filepath||t.filename)&&(n=f.lookup(t.filepath||t.filename)),!n&&e&&typeof e==`object`&&(n=v.DEFAULT_CONTENT_TYPE),n},v.prototype._multiPartFooter=function(){return function(e){var t=v.LINE_BREAK;this._streams.length===0&&(t+=this._lastBoundary()),e(t)}.bind(this)},v.prototype._lastBoundary=function(){return`--`+this.getBoundary()+`--`+v.LINE_BREAK},v.prototype.getHeaders=function(e){var t,n={"content-type":`multipart/form-data; boundary=`+this.getBoundary()};for(t in e)h(e,t)&&(n[t.toLowerCase()]=e[t]);return n},v.prototype.setBoundary=function(e){if(typeof e!=`string`)throw TypeError(`FormData boundary must be a string`);this._boundary=e},v.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary},v.prototype.getBuffer=function(){for(var e=new Buffer.alloc(0),t=this.getBoundary(),n=0,r=this._streams.length;n<r;n++)typeof this._streams[n]!=`function`&&(e=Buffer.isBuffer(this._streams[n])?Buffer.concat([e,this._streams[n]]):Buffer.concat([e,Buffer.from(this._streams[n])]),(typeof this._streams[n]!=`string`||this._streams[n].substring(2,t.length+2)!==t)&&(e=Buffer.concat([e,Buffer.from(v.LINE_BREAK)])));return Buffer.concat([e,Buffer.from(this._lastBoundary())])},v.prototype._generateBoundary=function(){this._boundary=`--------------------------`+d.randomBytes(12).toString(`hex`)},v.prototype.getLengthSync=function(){var e=this._overheadLength+this._valueLength;return this._streams.length&&(e+=this._lastBoundary().length),this.hasKnownLength()||this._error(Error(`Cannot calculate proper length in synchronous way.`)),e},v.prototype.hasKnownLength=function(){var e=!0;return this._valuesToMeasure.length&&(e=!1),e},v.prototype.getLength=function(e){var t=this._overheadLength+this._valueLength;this._streams.length&&(t+=this._lastBoundary().length),this._valuesToMeasure.length?p.parallel(this._valuesToMeasure,this._lengthRetriever,function(n,r){n?e(n):(r.forEach(function(e){t+=e}),e(null,t))}):process.nextTick(e.bind(this,null,t))},v.prototype.submit=function(e,t){var n,r,i={method:`post`};return typeof e==`string`?(e=c(e),r=g({port:e.port,path:e.pathname,host:e.hostname,protocol:e.protocol},i)):(r=g(e,i),r.port||(r.port=r.protocol===`https:`?443:80)),r.headers=this.getHeaders(e.headers),n=r.protocol===`https:`?s.request(r):o.request(r),this.getLength(function(e,r){if(e&&e!==`Unknown stream`)this._error(e);else if(r&&n.setHeader(`Content-Length`,r),this.pipe(n),t){var i,a=function(e,r){return n.removeListener(`error`,a),n.removeListener(`response`,i),t.call(this,e,r)};i=a.bind(this,null),n.on(`error`,a),n.on(`response`,i)}}.bind(this)),n},v.prototype._error=function(e){this.error||(this.error=e,this.pause(),this.emit(`error`,e))},v.prototype.toString=function(){return`[object FormData]`},m(v.prototype,`FormData`),n.exports=v})),Ft=i(((e,t)=>{function n(e){n.debug=n,n.default=n,n.coerce=c,n.disable=o,n.enable=i,n.enabled=s,n.humanize=R(),n.destroy=l,Object.keys(e).forEach(t=>{n[t]=e[t]}),n.names=[],n.skips=[],n.formatters={};function t(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return n.colors[Math.abs(t)%n.colors.length]}n.selectColor=t;function n(e){let t,i=null,a,o;function s(...e){if(!s.enabled)return;let r=s,i=Number(new Date);r.diff=i-(t||i),r.prev=t,r.curr=i,t=i,e[0]=n.coerce(e[0]),typeof e[0]!=`string`&&e.unshift(`%O`);let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(t,i)=>{if(t===`%%`)return`%`;a++;let o=n.formatters[i];if(typeof o==`function`){let n=e[a];t=o.call(r,n),e.splice(a,1),a--}return t}),n.formatArgs.call(r,e),(r.log||n.log).apply(r,e)}return s.namespace=e,s.useColors=n.useColors(),s.color=n.selectColor(e),s.extend=r,s.destroy=n.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>i===null?(a!==n.namespaces&&(a=n.namespaces,o=n.enabled(e)),o):i,set:e=>{i=e}}),typeof n.init==`function`&&n.init(s),s}function r(e,t){let r=n(this.namespace+(t===void 0?`:`:t)+e);return r.log=this.log,r}function i(e){n.save(e),n.namespaces=e,n.names=[],n.skips=[];let t=(typeof e==`string`?e:``).trim().replace(/\s+/g,`,`).split(`,`).filter(Boolean);for(let e of t)e[0]===`-`?n.skips.push(e.slice(1)):n.names.push(e)}function a(e,t){let n=0,r=0,i=-1,a=0;for(;n<e.length;)if(r<t.length&&(t[r]===e[n]||t[r]===`*`))t[r]===`*`?(i=r,a=n,r++):(n++,r++);else if(i!==-1)r=i+1,a++,n=a;else return!1;for(;r<t.length&&t[r]===`*`;)r++;return r===t.length}function o(){let e=[...n.names,...n.skips.map(e=>`-`+e)].join(`,`);return n.enable(``),e}function s(e){for(let t of n.skips)if(a(e,t))return!1;for(let t of n.names)if(a(e,t))return!0;return!1}function c(e){return e instanceof Error?e.stack||e.message:e}function l(){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 n.enable(n.load()),n}t.exports=n})),It=i(((e,t)=>{e.formatArgs=r,e.save=i,e.load=a,e.useColors=n,e.storage=o(),e.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`."))}})(),e.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`.split(`.`);function n(){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+)/)}function r(e){if(e[0]=(this.useColors?`%c`:``)+this.namespace+(this.useColors?` %c`:` `)+e[0]+(this.useColors?`%c `:` `)+`+`+t.exports.humanize(this.diff),!this.useColors)return;let n=`color: `+this.color;e.splice(1,0,n,`color: inherit`);let r=0,i=0;e[0].replace(/%[a-zA-Z%]/g,e=>{e!==`%%`&&(r++,e===`%c`&&(i=r))}),e.splice(i,0,n)}e.log=console.debug||console.log||(()=>{});function i(t){try{t?e.storage.setItem(`debug`,t):e.storage.removeItem(`debug`)}catch{}}function a(){let t;try{t=e.storage.getItem(`debug`)||e.storage.getItem(`DEBUG`)}catch{}return!t&&typeof process<`u`&&`env`in process&&(t=process.env.DEBUG),t}function o(){try{return localStorage}catch{}}t.exports=Ft()(e);let{formatters:s}=t.exports;s.j=function(e){try{return JSON.stringify(e)}catch(e){return`[UnexpectedJSONParseError]: `+e.message}}})),Lt=r({createSupportsColor:()=>Ht,default:()=>Wt});function Rt(e,t=globalThis.Deno?globalThis.Deno.args:Se.argv){let n=e.startsWith(`-`)?``:e.length===1?`-`:`--`,r=t.indexOf(n+e),i=t.indexOf(`--`);return r!==-1&&(i===-1||r<i)}function zt(){if(!(`FORCE_COLOR`in Y))return;if(Y.FORCE_COLOR===`true`)return 1;if(Y.FORCE_COLOR===`false`)return 0;if(Y.FORCE_COLOR.length===0)return 1;let e=Math.min(Number.parseInt(Y.FORCE_COLOR,10),3);if([0,1,2,3].includes(e))return e}function Bt(e){return e!==0&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function Vt(e,{streamIsTTY:t,sniffFlags:n=!0}={}){let r=zt();r!==void 0&&(Ut=r);let i=n?Ut:r;if(i===0)return 0;if(n){if(Rt(`color=16m`)||Rt(`color=full`)||Rt(`color=truecolor`))return 3;if(Rt(`color=256`))return 2}if(`TF_BUILD`in Y&&`AGENT_NAME`in Y)return 1;if(e&&!t&&i===void 0)return 0;let a=i||0;if(Y.TERM===`dumb`)return a;if(Se.platform===`win32`){let e=Ee.release().split(`.`);return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if(`CI`in Y)return[`GITHUB_ACTIONS`,`GITEA_ACTIONS`,`CIRCLECI`].some(e=>e in Y)?3:[`TRAVIS`,`APPVEYOR`,`GITLAB_CI`,`BUILDKITE`,`DRONE`].some(e=>e in Y)||Y.CI_NAME===`codeship`?1:a;if(`TEAMCITY_VERSION`in Y)return+!!/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Y.TEAMCITY_VERSION);if(Y.COLORTERM===`truecolor`||Y.TERM===`xterm-kitty`||Y.TERM===`xterm-ghostty`||Y.TERM===`wezterm`)return 3;if(`TERM_PROGRAM`in Y){let e=Number.parseInt((Y.TERM_PROGRAM_VERSION||``).split(`.`)[0],10);switch(Y.TERM_PROGRAM){case`iTerm.app`:return e>=3?3:2;case`Apple_Terminal`:return 2}}return/-256(color)?$/i.test(Y.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Y.TERM)||`COLORTERM`in Y?1:a}function Ht(e,t={}){return Bt(Vt(e,{streamIsTTY:e&&e.isTTY,...t}))}var Y,Ut,Wt,X=n((()=>{({env:Y}=Se),Rt(`no-color`)||Rt(`no-colors`)||Rt(`color=false`)||Rt(`color=never`)?Ut=0:(Rt(`color`)||Rt(`colors`)||Rt(`color=true`)||Rt(`color=always`))&&(Ut=1),Wt={stdout:Ht({isTTY:De.isatty(1)}),stderr:Ht({isTTY:De.isatty(2)})}})),Gt=i(((n,r)=>{let i=t(`tty`),a=t(`util`);n.init=f,n.log=l,n.formatArgs=s,n.save=u,n.load=d,n.useColors=o,n.destroy=a.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),n.colors=[6,2,3,4,5,1];try{let t=(X(),e(Lt));t&&(t.stderr||t).level>=2&&(n.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{}n.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{let n=t.substring(6).toLowerCase().replace(/_([a-z])/g,(e,t)=>t.toUpperCase()),r=process.env[t];return r=/^(yes|on|true|enabled)$/i.test(r)?!0:/^(no|off|false|disabled)$/i.test(r)?!1:r===`null`?null:Number(r),e[n]=r,e},{});function o(){return`colors`in n.inspectOpts?!!n.inspectOpts.colors:i.isatty(process.stderr.fd)}function s(e){let{namespace:t,useColors:n}=this;if(n){let n=this.color,i=`\x1B[3`+(n<8?n:`8;5;`+n),a=` ${i};1m${t} \u001B[0m`;e[0]=a+e[0].split(`
|
|
1
|
+
import{a as e,i as t,n,r,t as i}from"../../_chunks/node/rolldown-runtime-nUh0tHLY.js";import{t as a}from"../../_chunks/node/chunk-7WDLOIRP-B_IWkVtZ.js";import{_ as o,a as s,c,d as l,f as u,g as d,l as f,o as p,p as m,s as h,t as g,u as _,y as v}from"../../_chunks/node/chunk-KYABMAGK-CcVG0J1r.js";import{d as y,f as b,p as x,r as S}from"../../_chunks/node/chunk-NBSLXVG3-vW0EjHGA.js";import{a as C,c as w,d as T,f as E,g as D,h as O,i as k,l as A,m as j,n as M,o as N,r as P,s as F,t as I,u as L}from"../../_chunks/node/dist-DG0EQc0D.js";import{t as R}from"../../_chunks/node/ms-Cgt_-jny.js";import{t as z}from"../../_chunks/node/is-stream-k1ORVyb3.js";import{t as B}from"../../_chunks/node/retry-BsKFOQYI.js";import{a as V,c as H,i as U,n as W,o as ee,r as te,s as ne,t as re}from"../../_chunks/node/websocket-server-Usb_vYYJ.js";import{A as ie,Ct as ae,Dt as oe,H as se,It as ce,Lt as G,N as le,Pt as ue,Q as de,St as fe,Tt as pe,Y as me,_t as he,at as ge,ct as _e,dt as ve,gt as ye,ht as be,j as xe,jt as Se,mt as Ce,q as we,vt as Te,xt as Ee,yt as De,z as Oe,zt as ke}from"../../_chunks/node/dist-C3CGuKzy.js";import Ae from"node:process";import{AsyncLocalStorage as je}from"async_hooks";import{createHash as Me,timingSafeEqual as Ne}from"crypto";import Pe from"node:os";import Fe from"node:tty";var Ie=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ErrorCode=void 0,e.websocketErrorWithOriginal=r,e.platformErrorFromEvent=i,e.noReplyReceivedError=a,e.sendWhileDisconnectedError=o,e.sendWhileNotReadyError=s;var t;(function(e){e.SendWhileDisconnectedError=`slack_socket_mode_send_while_disconnected_error`,e.SendWhileNotReadyError=`slack_socket_mode_send_while_not_ready_error`,e.SendMessagePlatformError=`slack_socket_mode_send_message_platform_error`,e.WebsocketError=`slack_socket_mode_websocket_error`,e.NoReplyReceivedError=`slack_socket_mode_no_reply_received_error`,e.InitializationError=`slack_socket_mode_initialization_error`})(t||(e.ErrorCode=t={}));function n(e,t){let n=e;return n.code=t,n}function r(e){let r=n(Error(e.message),t.WebsocketError);return r.original=e,r}function i(e){let r=n(Error(`An API error occurred: ${e.error.msg}`),t.SendMessagePlatformError);return r.data=e,r}function a(){return n(Error(`Message sent but no server acknowledgement was received. This may be caused by the client changing connection state rather than any issue with the specific message. Check before resending.`),t.NoReplyReceivedError)}function o(){return n(Error(`Failed to send a WebSocket message as the client is not connected`),t.NoReplyReceivedError)}function s(){return n(Error(`Failed to send a WebSocket message as the client is not ready`),t.NoReplyReceivedError)}})),Le=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ConsoleLogger=e.LogLevel=void 0;var t;(function(e){e.ERROR=`error`,e.WARN=`warn`,e.INFO=`info`,e.DEBUG=`debug`})(t||(e.LogLevel=t={}));var n=class e{constructor(){this.level=t.INFO,this.name=``}getLevel(){return this.level}setLevel(e){this.level=e}setName(e){this.name=e}debug(...n){e.isMoreOrEqualSevere(t.DEBUG,this.level)&&console.debug(e.labels.get(t.DEBUG),this.name,...n)}info(...n){e.isMoreOrEqualSevere(t.INFO,this.level)&&console.info(e.labels.get(t.INFO),this.name,...n)}warn(...n){e.isMoreOrEqualSevere(t.WARN,this.level)&&console.warn(e.labels.get(t.WARN),this.name,...n)}error(...n){e.isMoreOrEqualSevere(t.ERROR,this.level)&&console.error(e.labels.get(t.ERROR),this.name,...n)}static isMoreOrEqualSevere(t,n){return e.severity[t]>=e.severity[n]}};e.ConsoleLogger=n,n.labels=(()=>{let e=Object.entries(t).map(([e,t])=>[t,`[${e}] `]);return new Map(e)})(),n.severity={[t.ERROR]:400,[t.WARN]:300,[t.INFO]:200,[t.DEBUG]:100}})),Re=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.LogLevel=void 0;let t=Le();Object.defineProperty(e,"LogLevel",{enumerable:!0,get:function(){return t.LogLevel}});let n=0;e.default={getLogger:function(e,r,i){let a=n;n+=1;let o=i===void 0?new t.ConsoleLogger:i;return o.setName(`socket-mode:${e}:${a}`),r!==void 0&&o.setLevel(r),o}}})),ze=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ErrorCode=void 0,e.errorWithCode=n,e.requestErrorWithOriginal=r,e.httpErrorFromResponse=i,e.platformErrorFromResult=a,e.rateLimitedErrorWithDelay=o;var t;(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`})(t||(e.ErrorCode=t={}));function n(e,t){let n=e;return n.code=t,n}function r(e,r){let i=n(Error(`A request error occurred: ${e.message}`),t.RequestError);return r&&(i.original=e),i}function i(e){let r=n(Error(`An HTTP protocol error occurred: statusCode = ${e.status}`),t.HTTPError);r.statusCode=e.status,r.statusMessage=e.statusText;let i={};for(let t of Object.keys(e.headers))t&&e.headers[t]&&(i[t]=e.headers[t]);return r.headers=i,r.body=e.data,r}function a(e){let r=n(Error(`An API error occurred: ${e.error}`),t.PlatformError);return r.data=e,r}function o(e){let r=n(Error(`A rate-limit has been reached, you may retry this request in ${e} seconds`),t.RateLimitedError);return r.retryAfter=e,r}})),Be=i(((e,t)=>{t.exports={name:`@slack/web-api`,version:`7.19.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:{type:`git`,url:`git+https://github.com/slackapi/node-slack-sdk.git`},homepage:`https://docs.slack.dev/tools/node-slack-sdk/web-api/`,publishConfig:{access:`public`},bugs:{url:`https://github.com/slackapi/node-slack-sdk/issues`},scripts:{build:`npm run build:clean && tsc`,"build:clean":`shx rm -rf ./dist`,docs:`npx typedoc --plugin typedoc-plugin-markdown`,prepack:`npm run build`,test:`npm run build && bash -c 'node --test-reporter=spec --test-reporter-destination=stdout --test-reporter=junit --test-reporter-destination=test-results.xml --import tsx --test src/*.test.ts'`,"test:coverage":`npm run build && node --experimental-test-coverage --test-reporter=spec --test-reporter-destination=stdout --test-reporter=lcov --test-reporter-destination=lcov.info --test-reporter=junit --test-reporter-destination=test-results.xml --import tsx --test src/*.test.ts`,"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:types":`tsd`,watch:`npx nodemon --watch 'src' --ext 'ts' --exec npm run build`},dependencies:{"@slack/logger":`^4.0.1`,"@slack/types":`^2.21.0`,"@types/node":`>=18`,"@types/retry":`0.12.0`,axios:`^1.16.0`,eventemitter3:`^5.0.1`,"form-data":`^4.0.4`,"is-electron":`2.2.2`,"is-stream":`^2`,"p-queue":`^6`,"p-retry":`^4`,retry:`^0.13.1`},devDependencies:{"@types/busboy":`^1.5.4`,"@types/sinon":`^21`,busboy:`^1`,nock:`^14`,sinon:`^21`,tsd:`^0.33.0`},tsd:{directory:`test/types`}}})),Ve=i(((e,n,r)=>{var i=r&&r.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),a=r&&r.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),o=r&&r.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(t){if(t&&t.__esModule)return t;var n={};if(t!=null)for(var r=e(t),o=0;o<r.length;o++)r[o]!=="default"&&i(n,t,r[o]);return a(n,t),n}})();Object.defineProperty(e,"__esModule",{value:!0}),e.addAppMetadata=m,e.getUserAgent=h;let s=o(t(`node:os`)),c=t(`node:path`),l=Be();function u(e){return e.replace(`/`,`:`)}function d(e){let t=``;for(let n of e)t+=n.charCodeAt(0)<=255?n:encodeURIComponent(n);return t}let f=`${u(l.name)}/${l.version} ${d((0,c.basename)(process.title))}/${process.version.replace(`v`,``)} ${s.platform()}/${s.release()}`,p={};function m({name:e,version:t}){p[u(e)]=t}function h(){let e=Object.entries(p).map(([e,t])=>`${e}/${t}`).join(` `);return(e.length>0?`${e} `:``)+f}})),He=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.LogLevel=void 0,e.getLogger=i;let t=Le();var n=Le();Object.defineProperty(e,"LogLevel",{enumerable:!0,get:function(){return n.LogLevel}});let r=0;function i(e,n,i){let a=r;r+=1;let o=i===void 0?new t.ConsoleLogger:i;return o.setName(`web-api:${e}:${a}`),n!==void 0&&o.setLevel(n),o}})),Ue=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.rapidRetryPolicy=e.fiveRetriesInFiveMinutes=e.tenRetriesInAboutThirtyMinutes=void 0,e.tenRetriesInAboutThirtyMinutes={retries:10,factor:1.96821,randomize:!0},e.fiveRetriesInFiveMinutes={retries:5,factor:3.86},e.rapidRetryPolicy={minTimeout:0,maxTimeout:1},e.default={tenRetriesInAboutThirtyMinutes:e.tenRetriesInAboutThirtyMinutes,fiveRetriesInFiveMinutes:e.fiveRetriesInFiveMinutes,rapidRetryPolicy:e.rapidRetryPolicy}})),We=i((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),K=i((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),Ge=i(((e,t,n)=>{var r=n&&n.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};Object.defineProperty(e,"__esModule",{value:!0}),e.ChatStreamer=void 0,e.ChatStreamer=class{constructor(e,t,n,r){this.buffer=``,this.client=e,this.logger=t,this.options={buffer_size:r.buffer_size??256},this.state=`starting`,this.streamArgs=n}get ts(){return this.streamTs}async append(e){if(this.state===`completed`)throw Error(`failed to append stream: stream state is ${this.state}`);let{markdown_text:t,chunks:n}=e,i=r(e,[`markdown_text`,`chunks`]);if(i.token&&(this.token=i.token),t&&(this.buffer+=t),this.buffer.length>=this.options.buffer_size||n)return await this.flushBuffer(Object.assign({chunks:n},i));let a={bufferLength:this.buffer.length,bufferSize:this.options.buffer_size,channel:this.streamArgs.channel,recipientTeamId:this.streamArgs.recipient_team_id,recipientUserId:this.streamArgs.recipient_user_id,threadTs:this.streamArgs.thread_ts};return this.logger.debug(`ChatStreamer appended to buffer: ${JSON.stringify(a)}`),null}async stop(e){if(this.state===`completed`)throw Error(`failed to stop stream: stream state is ${this.state}`);let t=e??{},{markdown_text:n,chunks:i}=t,a=r(t,[`markdown_text`,`chunks`]);if(a.token&&(this.token=a.token),n&&(this.buffer+=n),!this.streamTs){let e=await this.client.chat.startStream(Object.assign(Object.assign({},this.streamArgs),{token:this.token}));if(!e.ts)throw Error(`failed to stop stream: stream not started`);this.streamTs=e.ts,this.state=`in_progress`}let o=[];this.buffer.length>0&&o.push({type:`markdown_text`,text:this.buffer}),i&&o.push(...i);let s=await this.client.chat.stopStream(Object.assign({token:this.token,channel:this.streamArgs.channel,ts:this.streamTs,chunks:o},a));return this.state=`completed`,s}async flushBuffer(e){let t=e??{},{chunks:n}=t,i=r(t,[`chunks`]),a=[];if(this.buffer.length>0&&a.push({type:`markdown_text`,text:this.buffer}),n&&a.push(...n),!this.streamTs){let e=await this.client.chat.startStream(Object.assign(Object.assign(Object.assign({},this.streamArgs),{token:this.token,chunks:a}),i));return this.buffer=``,this.streamTs=e.ts,this.state=`in_progress`,e}let o=await this.client.chat.appendStream(Object.assign({token:this.token,channel:this.streamArgs.channel,ts:this.streamTs,chunks:a},i));return this.buffer=``,o}}})),Ke=i(((e,n)=>{var r=t(`stream`).Stream,i=t(`util`);n.exports=a;function a(){this.source=null,this.dataSize=0,this.maxDataSize=1048576,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}i.inherits(a,r),a.create=function(e,t){var n=new this;for(var r in t||={},t)n[r]=t[r];n.source=e;var i=e.emit;return e.emit=function(){return n._handleEmit(arguments),i.apply(e,arguments)},e.on(`error`,function(){}),n.pauseStream&&e.pause(),n},Object.defineProperty(a.prototype,"readable",{configurable:!0,enumerable:!0,get:function(){return this.source.readable}}),a.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)},a.prototype.resume=function(){this._released||this.release(),this.source.resume()},a.prototype.pause=function(){this.source.pause()},a.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(e){this.emit.apply(this,e)}.bind(this)),this._bufferedEvents=[]},a.prototype.pipe=function(){var e=r.prototype.pipe.apply(this,arguments);return this.resume(),e},a.prototype._handleEmit=function(e){this._released?this.emit.apply(this,e):(e[0]===`data`&&(this.dataSize+=e[1].length,this._checkIfMaxDataSizeExceeded()),this._bufferedEvents.push(e))},a.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`,Error(e))}}})),qe=i(((e,n)=>{var r=t(`util`),i=t(`stream`).Stream,a=Ke();n.exports=o;function o(){this.writable=!1,this.readable=!0,this.dataSize=0,this.maxDataSize=2097152,this.pauseStreams=!0,this._released=!1,this._streams=[],this._currentStream=null,this._insideLoop=!1,this._pendingNext=!1}r.inherits(o,i),o.create=function(e){var t=new this;for(var n in e||={},e)t[n]=e[n];return t},o.isStreamLike=function(e){return typeof e!=`function`&&typeof e!=`string`&&typeof e!=`boolean`&&typeof e!=`number`&&!Buffer.isBuffer(e)},o.prototype.append=function(e){if(o.isStreamLike(e)){if(!(e instanceof a)){var t=a.create(e,{maxDataSize:1/0,pauseStream:this.pauseStreams});e.on(`data`,this._checkDataSize.bind(this)),e=t}this._handleErrors(e),this.pauseStreams&&e.pause()}return this._streams.push(e),this},o.prototype.pipe=function(e,t){return i.prototype.pipe.call(this,e,t),this.resume(),e},o.prototype._getNext=function(){if(this._currentStream=null,this._insideLoop)this._pendingNext=!0;else{this._insideLoop=!0;try{do this._pendingNext=!1,this._realGetNext();while(this._pendingNext)}finally{this._insideLoop=!1}}},o.prototype._realGetNext=function(){var e=this._streams.shift();e===void 0?this.end():typeof e==`function`?e(function(e){o.isStreamLike(e)&&(e.on(`data`,this._checkDataSize.bind(this)),this._handleErrors(e)),this._pipeNext(e)}.bind(this)):this._pipeNext(e)},o.prototype._pipeNext=function(e){if(this._currentStream=e,o.isStreamLike(e))e.on(`end`,this._getNext.bind(this)),e.pipe(this,{end:!1});else{var t=e;this.write(t),this._getNext()}},o.prototype._handleErrors=function(e){var t=this;e.on(`error`,function(e){t._emitError(e)})},o.prototype.write=function(e){this.emit(`data`,e)},o.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&typeof this._currentStream.pause==`function`&&this._currentStream.pause(),this.emit(`pause`))},o.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`)},o.prototype.end=function(){this._reset(),this.emit(`end`)},o.prototype.destroy=function(){this._reset(),this.emit(`close`)},o.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null},o.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var e=`DelayedStream#maxDataSize of `+this.maxDataSize+` bytes exceeded.`;this._emitError(Error(e))}},o.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)},o.prototype._emitError=function(e){this._reset(),this.emit(`error`,e)}})),Je=i(((e,t)=>{t.exports={"application/1d-interleaved-parityfec":{source:`iana`},"application/3gpdash-qoe-report+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/3gpp-ims+xml":{source:`iana`,compressible:!0},"application/3gpphal+json":{source:`iana`,compressible:!0},"application/3gpphalforms+json":{source:`iana`,compressible:!0},"application/a2l":{source:`iana`},"application/ace+cbor":{source:`iana`},"application/activemessage":{source:`iana`},"application/activity+json":{source:`iana`,compressible:!0},"application/alto-costmap+json":{source:`iana`,compressible:!0},"application/alto-costmapfilter+json":{source:`iana`,compressible:!0},"application/alto-directory+json":{source:`iana`,compressible:!0},"application/alto-endpointcost+json":{source:`iana`,compressible:!0},"application/alto-endpointcostparams+json":{source:`iana`,compressible:!0},"application/alto-endpointprop+json":{source:`iana`,compressible:!0},"application/alto-endpointpropparams+json":{source:`iana`,compressible:!0},"application/alto-error+json":{source:`iana`,compressible:!0},"application/alto-networkmap+json":{source:`iana`,compressible:!0},"application/alto-networkmapfilter+json":{source:`iana`,compressible:!0},"application/alto-updatestreamcontrol+json":{source:`iana`,compressible:!0},"application/alto-updatestreamparams+json":{source:`iana`,compressible:!0},"application/aml":{source:`iana`},"application/andrew-inset":{source:`iana`,extensions:[`ez`]},"application/applefile":{source:`iana`},"application/applixware":{source:`apache`,extensions:[`aw`]},"application/at+jwt":{source:`iana`},"application/atf":{source:`iana`},"application/atfx":{source:`iana`},"application/atom+xml":{source:`iana`,compressible:!0,extensions:[`atom`]},"application/atomcat+xml":{source:`iana`,compressible:!0,extensions:[`atomcat`]},"application/atomdeleted+xml":{source:`iana`,compressible:!0,extensions:[`atomdeleted`]},"application/atomicmail":{source:`iana`},"application/atomsvc+xml":{source:`iana`,compressible:!0,extensions:[`atomsvc`]},"application/atsc-dwd+xml":{source:`iana`,compressible:!0,extensions:[`dwd`]},"application/atsc-dynamic-event-message":{source:`iana`},"application/atsc-held+xml":{source:`iana`,compressible:!0,extensions:[`held`]},"application/atsc-rdt+json":{source:`iana`,compressible:!0},"application/atsc-rsat+xml":{source:`iana`,compressible:!0,extensions:[`rsat`]},"application/atxml":{source:`iana`},"application/auth-policy+xml":{source:`iana`,compressible:!0},"application/bacnet-xdd+zip":{source:`iana`,compressible:!1},"application/batch-smtp":{source:`iana`},"application/bdoc":{compressible:!1,extensions:[`bdoc`]},"application/beep+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/calendar+json":{source:`iana`,compressible:!0},"application/calendar+xml":{source:`iana`,compressible:!0,extensions:[`xcs`]},"application/call-completion":{source:`iana`},"application/cals-1840":{source:`iana`},"application/captive+json":{source:`iana`,compressible:!0},"application/cbor":{source:`iana`},"application/cbor-seq":{source:`iana`},"application/cccex":{source:`iana`},"application/ccmp+xml":{source:`iana`,compressible:!0},"application/ccxml+xml":{source:`iana`,compressible:!0,extensions:[`ccxml`]},"application/cdfx+xml":{source:`iana`,compressible:!0,extensions:[`cdfx`]},"application/cdmi-capability":{source:`iana`,extensions:[`cdmia`]},"application/cdmi-container":{source:`iana`,extensions:[`cdmic`]},"application/cdmi-domain":{source:`iana`,extensions:[`cdmid`]},"application/cdmi-object":{source:`iana`,extensions:[`cdmio`]},"application/cdmi-queue":{source:`iana`,extensions:[`cdmiq`]},"application/cdni":{source:`iana`},"application/cea":{source:`iana`},"application/cea-2018+xml":{source:`iana`,compressible:!0},"application/cellml+xml":{source:`iana`,compressible:!0},"application/cfw":{source:`iana`},"application/city+json":{source:`iana`,compressible:!0},"application/clr":{source:`iana`},"application/clue+xml":{source:`iana`,compressible:!0},"application/clue_info+xml":{source:`iana`,compressible:!0},"application/cms":{source:`iana`},"application/cnrp+xml":{source:`iana`,compressible:!0},"application/coap-group+json":{source:`iana`,compressible:!0},"application/coap-payload":{source:`iana`},"application/commonground":{source:`iana`},"application/conference-info+xml":{source:`iana`,compressible:!0},"application/cose":{source:`iana`},"application/cose-key":{source:`iana`},"application/cose-key-set":{source:`iana`},"application/cpl+xml":{source:`iana`,compressible:!0,extensions:[`cpl`]},"application/csrattrs":{source:`iana`},"application/csta+xml":{source:`iana`,compressible:!0},"application/cstadata+xml":{source:`iana`,compressible:!0},"application/csvm+json":{source:`iana`,compressible:!0},"application/cu-seeme":{source:`apache`,extensions:[`cu`]},"application/cwt":{source:`iana`},"application/cybercash":{source:`iana`},"application/dart":{compressible:!0},"application/dash+xml":{source:`iana`,compressible:!0,extensions:[`mpd`]},"application/dash-patch+xml":{source:`iana`,compressible:!0,extensions:[`mpp`]},"application/dashdelta":{source:`iana`},"application/davmount+xml":{source:`iana`,compressible:!0,extensions:[`davmount`]},"application/dca-rft":{source:`iana`},"application/dcd":{source:`iana`},"application/dec-dx":{source:`iana`},"application/dialog-info+xml":{source:`iana`,compressible:!0},"application/dicom":{source:`iana`},"application/dicom+json":{source:`iana`,compressible:!0},"application/dicom+xml":{source:`iana`,compressible:!0},"application/dii":{source:`iana`},"application/dit":{source:`iana`},"application/dns":{source:`iana`},"application/dns+json":{source:`iana`,compressible:!0},"application/dns-message":{source:`iana`},"application/docbook+xml":{source:`apache`,compressible:!0,extensions:[`dbk`]},"application/dots+cbor":{source:`iana`},"application/dskpp+xml":{source:`iana`,compressible:!0},"application/dssc+der":{source:`iana`,extensions:[`dssc`]},"application/dssc+xml":{source:`iana`,compressible:!0,extensions:[`xdssc`]},"application/dvcs":{source:`iana`},"application/ecmascript":{source:`iana`,compressible:!0,extensions:[`es`,`ecma`]},"application/edi-consent":{source:`iana`},"application/edi-x12":{source:`iana`,compressible:!1},"application/edifact":{source:`iana`,compressible:!1},"application/efi":{source:`iana`},"application/elm+json":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/elm+xml":{source:`iana`,compressible:!0},"application/emergencycalldata.cap+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/emergencycalldata.comment+xml":{source:`iana`,compressible:!0},"application/emergencycalldata.control+xml":{source:`iana`,compressible:!0},"application/emergencycalldata.deviceinfo+xml":{source:`iana`,compressible:!0},"application/emergencycalldata.ecall.msd":{source:`iana`},"application/emergencycalldata.providerinfo+xml":{source:`iana`,compressible:!0},"application/emergencycalldata.serviceinfo+xml":{source:`iana`,compressible:!0},"application/emergencycalldata.subscriberinfo+xml":{source:`iana`,compressible:!0},"application/emergencycalldata.veds+xml":{source:`iana`,compressible:!0},"application/emma+xml":{source:`iana`,compressible:!0,extensions:[`emma`]},"application/emotionml+xml":{source:`iana`,compressible:!0,extensions:[`emotionml`]},"application/encaprtp":{source:`iana`},"application/epp+xml":{source:`iana`,compressible:!0},"application/epub+zip":{source:`iana`,compressible:!1,extensions:[`epub`]},"application/eshop":{source:`iana`},"application/exi":{source:`iana`,extensions:[`exi`]},"application/expect-ct-report+json":{source:`iana`,compressible:!0},"application/express":{source:`iana`,extensions:[`exp`]},"application/fastinfoset":{source:`iana`},"application/fastsoap":{source:`iana`},"application/fdt+xml":{source:`iana`,compressible:!0,extensions:[`fdt`]},"application/fhir+json":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/fhir+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/fido.trusted-apps+json":{compressible:!0},"application/fits":{source:`iana`},"application/flexfec":{source:`iana`},"application/font-sfnt":{source:`iana`},"application/font-tdpfr":{source:`iana`,extensions:[`pfr`]},"application/font-woff":{source:`iana`,compressible:!1},"application/framework-attributes+xml":{source:`iana`,compressible:!0},"application/geo+json":{source:`iana`,compressible:!0,extensions:[`geojson`]},"application/geo+json-seq":{source:`iana`},"application/geopackage+sqlite3":{source:`iana`},"application/geoxacml+xml":{source:`iana`,compressible:!0},"application/gltf-buffer":{source:`iana`},"application/gml+xml":{source:`iana`,compressible:!0,extensions:[`gml`]},"application/gpx+xml":{source:`apache`,compressible:!0,extensions:[`gpx`]},"application/gxf":{source:`apache`,extensions:[`gxf`]},"application/gzip":{source:`iana`,compressible:!1,extensions:[`gz`]},"application/h224":{source:`iana`},"application/held+xml":{source:`iana`,compressible:!0},"application/hjson":{extensions:[`hjson`]},"application/http":{source:`iana`},"application/hyperstudio":{source:`iana`,extensions:[`stk`]},"application/ibe-key-request+xml":{source:`iana`,compressible:!0},"application/ibe-pkg-reply+xml":{source:`iana`,compressible:!0},"application/ibe-pp-data":{source:`iana`},"application/iges":{source:`iana`},"application/im-iscomposing+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/index":{source:`iana`},"application/index.cmd":{source:`iana`},"application/index.obj":{source:`iana`},"application/index.response":{source:`iana`},"application/index.vnd":{source:`iana`},"application/inkml+xml":{source:`iana`,compressible:!0,extensions:[`ink`,`inkml`]},"application/iotp":{source:`iana`},"application/ipfix":{source:`iana`,extensions:[`ipfix`]},"application/ipp":{source:`iana`},"application/isup":{source:`iana`},"application/its+xml":{source:`iana`,compressible:!0,extensions:[`its`]},"application/java-archive":{source:`apache`,compressible:!1,extensions:[`jar`,`war`,`ear`]},"application/java-serialized-object":{source:`apache`,compressible:!1,extensions:[`ser`]},"application/java-vm":{source:`apache`,compressible:!1,extensions:[`class`]},"application/javascript":{source:`iana`,charset:`UTF-8`,compressible:!0,extensions:[`js`,`mjs`]},"application/jf2feed+json":{source:`iana`,compressible:!0},"application/jose":{source:`iana`},"application/jose+json":{source:`iana`,compressible:!0},"application/jrd+json":{source:`iana`,compressible:!0},"application/jscalendar+json":{source:`iana`,compressible:!0},"application/json":{source:`iana`,charset:`UTF-8`,compressible:!0,extensions:[`json`,`map`]},"application/json-patch+json":{source:`iana`,compressible:!0},"application/json-seq":{source:`iana`},"application/json5":{extensions:[`json5`]},"application/jsonml+json":{source:`apache`,compressible:!0,extensions:[`jsonml`]},"application/jwk+json":{source:`iana`,compressible:!0},"application/jwk-set+json":{source:`iana`,compressible:!0},"application/jwt":{source:`iana`},"application/kpml-request+xml":{source:`iana`,compressible:!0},"application/kpml-response+xml":{source:`iana`,compressible:!0},"application/ld+json":{source:`iana`,compressible:!0,extensions:[`jsonld`]},"application/lgr+xml":{source:`iana`,compressible:!0,extensions:[`lgr`]},"application/link-format":{source:`iana`},"application/load-control+xml":{source:`iana`,compressible:!0},"application/lost+xml":{source:`iana`,compressible:!0,extensions:[`lostxml`]},"application/lostsync+xml":{source:`iana`,compressible:!0},"application/lpf+zip":{source:`iana`,compressible:!1},"application/lxf":{source:`iana`},"application/mac-binhex40":{source:`iana`,extensions:[`hqx`]},"application/mac-compactpro":{source:`apache`,extensions:[`cpt`]},"application/macwriteii":{source:`iana`},"application/mads+xml":{source:`iana`,compressible:!0,extensions:[`mads`]},"application/manifest+json":{source:`iana`,charset:`UTF-8`,compressible:!0,extensions:[`webmanifest`]},"application/marc":{source:`iana`,extensions:[`mrc`]},"application/marcxml+xml":{source:`iana`,compressible:!0,extensions:[`mrcx`]},"application/mathematica":{source:`iana`,extensions:[`ma`,`nb`,`mb`]},"application/mathml+xml":{source:`iana`,compressible:!0,extensions:[`mathml`]},"application/mathml-content+xml":{source:`iana`,compressible:!0},"application/mathml-presentation+xml":{source:`iana`,compressible:!0},"application/mbms-associated-procedure-description+xml":{source:`iana`,compressible:!0},"application/mbms-deregister+xml":{source:`iana`,compressible:!0},"application/mbms-envelope+xml":{source:`iana`,compressible:!0},"application/mbms-msk+xml":{source:`iana`,compressible:!0},"application/mbms-msk-response+xml":{source:`iana`,compressible:!0},"application/mbms-protection-description+xml":{source:`iana`,compressible:!0},"application/mbms-reception-report+xml":{source:`iana`,compressible:!0},"application/mbms-register+xml":{source:`iana`,compressible:!0},"application/mbms-register-response+xml":{source:`iana`,compressible:!0},"application/mbms-schedule+xml":{source:`iana`,compressible:!0},"application/mbms-user-service-description+xml":{source:`iana`,compressible:!0},"application/mbox":{source:`iana`,extensions:[`mbox`]},"application/media-policy-dataset+xml":{source:`iana`,compressible:!0,extensions:[`mpf`]},"application/media_control+xml":{source:`iana`,compressible:!0},"application/mediaservercontrol+xml":{source:`iana`,compressible:!0,extensions:[`mscml`]},"application/merge-patch+json":{source:`iana`,compressible:!0},"application/metalink+xml":{source:`apache`,compressible:!0,extensions:[`metalink`]},"application/metalink4+xml":{source:`iana`,compressible:!0,extensions:[`meta4`]},"application/mets+xml":{source:`iana`,compressible:!0,extensions:[`mets`]},"application/mf4":{source:`iana`},"application/mikey":{source:`iana`},"application/mipc":{source:`iana`},"application/missing-blocks+cbor-seq":{source:`iana`},"application/mmt-aei+xml":{source:`iana`,compressible:!0,extensions:[`maei`]},"application/mmt-usd+xml":{source:`iana`,compressible:!0,extensions:[`musd`]},"application/mods+xml":{source:`iana`,compressible:!0,extensions:[`mods`]},"application/moss-keys":{source:`iana`},"application/moss-signature":{source:`iana`},"application/mosskey-data":{source:`iana`},"application/mosskey-request":{source:`iana`},"application/mp21":{source:`iana`,extensions:[`m21`,`mp21`]},"application/mp4":{source:`iana`,extensions:[`mp4s`,`m4p`]},"application/mpeg4-generic":{source:`iana`},"application/mpeg4-iod":{source:`iana`},"application/mpeg4-iod-xmt":{source:`iana`},"application/mrb-consumer+xml":{source:`iana`,compressible:!0},"application/mrb-publish+xml":{source:`iana`,compressible:!0},"application/msc-ivr+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/msc-mixer+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/msword":{source:`iana`,compressible:!1,extensions:[`doc`,`dot`]},"application/mud+json":{source:`iana`,compressible:!0},"application/multipart-core":{source:`iana`},"application/mxf":{source:`iana`,extensions:[`mxf`]},"application/n-quads":{source:`iana`,extensions:[`nq`]},"application/n-triples":{source:`iana`,extensions:[`nt`]},"application/nasdata":{source:`iana`},"application/news-checkgroups":{source:`iana`,charset:`US-ASCII`},"application/news-groupinfo":{source:`iana`,charset:`US-ASCII`},"application/news-transmission":{source:`iana`},"application/nlsml+xml":{source:`iana`,compressible:!0},"application/node":{source:`iana`,extensions:[`cjs`]},"application/nss":{source:`iana`},"application/oauth-authz-req+jwt":{source:`iana`},"application/oblivious-dns-message":{source:`iana`},"application/ocsp-request":{source:`iana`},"application/ocsp-response":{source:`iana`},"application/octet-stream":{source:`iana`,compressible:!1,extensions:[`bin`,`dms`,`lrf`,`mar`,`so`,`dist`,`distz`,`pkg`,`bpk`,`dump`,`elc`,`deploy`,`exe`,`dll`,`deb`,`dmg`,`iso`,`img`,`msi`,`msp`,`msm`,`buffer`]},"application/oda":{source:`iana`,extensions:[`oda`]},"application/odm+xml":{source:`iana`,compressible:!0},"application/odx":{source:`iana`},"application/oebps-package+xml":{source:`iana`,compressible:!0,extensions:[`opf`]},"application/ogg":{source:`iana`,compressible:!1,extensions:[`ogx`]},"application/omdoc+xml":{source:`apache`,compressible:!0,extensions:[`omdoc`]},"application/onenote":{source:`apache`,extensions:[`onetoc`,`onetoc2`,`onetmp`,`onepkg`]},"application/opc-nodeset+xml":{source:`iana`,compressible:!0},"application/oscore":{source:`iana`},"application/oxps":{source:`iana`,extensions:[`oxps`]},"application/p21":{source:`iana`},"application/p21+zip":{source:`iana`,compressible:!1},"application/p2p-overlay+xml":{source:`iana`,compressible:!0,extensions:[`relo`]},"application/parityfec":{source:`iana`},"application/passport":{source:`iana`},"application/patch-ops-error+xml":{source:`iana`,compressible:!0,extensions:[`xer`]},"application/pdf":{source:`iana`,compressible:!1,extensions:[`pdf`]},"application/pdx":{source:`iana`},"application/pem-certificate-chain":{source:`iana`},"application/pgp-encrypted":{source:`iana`,compressible:!1,extensions:[`pgp`]},"application/pgp-keys":{source:`iana`,extensions:[`asc`]},"application/pgp-signature":{source:`iana`,extensions:[`asc`,`sig`]},"application/pics-rules":{source:`apache`,extensions:[`prf`]},"application/pidf+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/pidf-diff+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/pkcs10":{source:`iana`,extensions:[`p10`]},"application/pkcs12":{source:`iana`},"application/pkcs7-mime":{source:`iana`,extensions:[`p7m`,`p7c`]},"application/pkcs7-signature":{source:`iana`,extensions:[`p7s`]},"application/pkcs8":{source:`iana`,extensions:[`p8`]},"application/pkcs8-encrypted":{source:`iana`},"application/pkix-attr-cert":{source:`iana`,extensions:[`ac`]},"application/pkix-cert":{source:`iana`,extensions:[`cer`]},"application/pkix-crl":{source:`iana`,extensions:[`crl`]},"application/pkix-pkipath":{source:`iana`,extensions:[`pkipath`]},"application/pkixcmp":{source:`iana`,extensions:[`pki`]},"application/pls+xml":{source:`iana`,compressible:!0,extensions:[`pls`]},"application/poc-settings+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/postscript":{source:`iana`,compressible:!0,extensions:[`ai`,`eps`,`ps`]},"application/ppsp-tracker+json":{source:`iana`,compressible:!0},"application/problem+json":{source:`iana`,compressible:!0},"application/problem+xml":{source:`iana`,compressible:!0},"application/provenance+xml":{source:`iana`,compressible:!0,extensions:[`provx`]},"application/prs.alvestrand.titrax-sheet":{source:`iana`},"application/prs.cww":{source:`iana`,extensions:[`cww`]},"application/prs.cyn":{source:`iana`,charset:`7-BIT`},"application/prs.hpub+zip":{source:`iana`,compressible:!1},"application/prs.nprend":{source:`iana`},"application/prs.plucker":{source:`iana`},"application/prs.rdf-xml-crypt":{source:`iana`},"application/prs.xsf+xml":{source:`iana`,compressible:!0},"application/pskc+xml":{source:`iana`,compressible:!0,extensions:[`pskcxml`]},"application/pvd+json":{source:`iana`,compressible:!0},"application/qsig":{source:`iana`},"application/raml+yaml":{compressible:!0,extensions:[`raml`]},"application/raptorfec":{source:`iana`},"application/rdap+json":{source:`iana`,compressible:!0},"application/rdf+xml":{source:`iana`,compressible:!0,extensions:[`rdf`,`owl`]},"application/reginfo+xml":{source:`iana`,compressible:!0,extensions:[`rif`]},"application/relax-ng-compact-syntax":{source:`iana`,extensions:[`rnc`]},"application/remote-printing":{source:`iana`},"application/reputon+json":{source:`iana`,compressible:!0},"application/resource-lists+xml":{source:`iana`,compressible:!0,extensions:[`rl`]},"application/resource-lists-diff+xml":{source:`iana`,compressible:!0,extensions:[`rld`]},"application/rfc+xml":{source:`iana`,compressible:!0},"application/riscos":{source:`iana`},"application/rlmi+xml":{source:`iana`,compressible:!0},"application/rls-services+xml":{source:`iana`,compressible:!0,extensions:[`rs`]},"application/route-apd+xml":{source:`iana`,compressible:!0,extensions:[`rapd`]},"application/route-s-tsid+xml":{source:`iana`,compressible:!0,extensions:[`sls`]},"application/route-usd+xml":{source:`iana`,compressible:!0,extensions:[`rusd`]},"application/rpki-ghostbusters":{source:`iana`,extensions:[`gbr`]},"application/rpki-manifest":{source:`iana`,extensions:[`mft`]},"application/rpki-publication":{source:`iana`},"application/rpki-roa":{source:`iana`,extensions:[`roa`]},"application/rpki-updown":{source:`iana`},"application/rsd+xml":{source:`apache`,compressible:!0,extensions:[`rsd`]},"application/rss+xml":{source:`apache`,compressible:!0,extensions:[`rss`]},"application/rtf":{source:`iana`,compressible:!0,extensions:[`rtf`]},"application/rtploopback":{source:`iana`},"application/rtx":{source:`iana`},"application/samlassertion+xml":{source:`iana`,compressible:!0},"application/samlmetadata+xml":{source:`iana`,compressible:!0},"application/sarif+json":{source:`iana`,compressible:!0},"application/sarif-external-properties+json":{source:`iana`,compressible:!0},"application/sbe":{source:`iana`},"application/sbml+xml":{source:`iana`,compressible:!0,extensions:[`sbml`]},"application/scaip+xml":{source:`iana`,compressible:!0},"application/scim+json":{source:`iana`,compressible:!0},"application/scvp-cv-request":{source:`iana`,extensions:[`scq`]},"application/scvp-cv-response":{source:`iana`,extensions:[`scs`]},"application/scvp-vp-request":{source:`iana`,extensions:[`spq`]},"application/scvp-vp-response":{source:`iana`,extensions:[`spp`]},"application/sdp":{source:`iana`,extensions:[`sdp`]},"application/secevent+jwt":{source:`iana`},"application/senml+cbor":{source:`iana`},"application/senml+json":{source:`iana`,compressible:!0},"application/senml+xml":{source:`iana`,compressible:!0,extensions:[`senmlx`]},"application/senml-etch+cbor":{source:`iana`},"application/senml-etch+json":{source:`iana`,compressible:!0},"application/senml-exi":{source:`iana`},"application/sensml+cbor":{source:`iana`},"application/sensml+json":{source:`iana`,compressible:!0},"application/sensml+xml":{source:`iana`,compressible:!0,extensions:[`sensmlx`]},"application/sensml-exi":{source:`iana`},"application/sep+xml":{source:`iana`,compressible:!0},"application/sep-exi":{source:`iana`},"application/session-info":{source:`iana`},"application/set-payment":{source:`iana`},"application/set-payment-initiation":{source:`iana`,extensions:[`setpay`]},"application/set-registration":{source:`iana`},"application/set-registration-initiation":{source:`iana`,extensions:[`setreg`]},"application/sgml":{source:`iana`},"application/sgml-open-catalog":{source:`iana`},"application/shf+xml":{source:`iana`,compressible:!0,extensions:[`shf`]},"application/sieve":{source:`iana`,extensions:[`siv`,`sieve`]},"application/simple-filter+xml":{source:`iana`,compressible:!0},"application/simple-message-summary":{source:`iana`},"application/simplesymbolcontainer":{source:`iana`},"application/sipc":{source:`iana`},"application/slate":{source:`iana`},"application/smil":{source:`iana`},"application/smil+xml":{source:`iana`,compressible:!0,extensions:[`smi`,`smil`]},"application/smpte336m":{source:`iana`},"application/soap+fastinfoset":{source:`iana`},"application/soap+xml":{source:`iana`,compressible:!0},"application/sparql-query":{source:`iana`,extensions:[`rq`]},"application/sparql-results+xml":{source:`iana`,compressible:!0,extensions:[`srx`]},"application/spdx+json":{source:`iana`,compressible:!0},"application/spirits-event+xml":{source:`iana`,compressible:!0},"application/sql":{source:`iana`},"application/srgs":{source:`iana`,extensions:[`gram`]},"application/srgs+xml":{source:`iana`,compressible:!0,extensions:[`grxml`]},"application/sru+xml":{source:`iana`,compressible:!0,extensions:[`sru`]},"application/ssdl+xml":{source:`apache`,compressible:!0,extensions:[`ssdl`]},"application/ssml+xml":{source:`iana`,compressible:!0,extensions:[`ssml`]},"application/stix+json":{source:`iana`,compressible:!0},"application/swid+xml":{source:`iana`,compressible:!0,extensions:[`swidtag`]},"application/tamp-apex-update":{source:`iana`},"application/tamp-apex-update-confirm":{source:`iana`},"application/tamp-community-update":{source:`iana`},"application/tamp-community-update-confirm":{source:`iana`},"application/tamp-error":{source:`iana`},"application/tamp-sequence-adjust":{source:`iana`},"application/tamp-sequence-adjust-confirm":{source:`iana`},"application/tamp-status-query":{source:`iana`},"application/tamp-status-response":{source:`iana`},"application/tamp-update":{source:`iana`},"application/tamp-update-confirm":{source:`iana`},"application/tar":{compressible:!0},"application/taxii+json":{source:`iana`,compressible:!0},"application/td+json":{source:`iana`,compressible:!0},"application/tei+xml":{source:`iana`,compressible:!0,extensions:[`tei`,`teicorpus`]},"application/tetra_isi":{source:`iana`},"application/thraud+xml":{source:`iana`,compressible:!0,extensions:[`tfi`]},"application/timestamp-query":{source:`iana`},"application/timestamp-reply":{source:`iana`},"application/timestamped-data":{source:`iana`,extensions:[`tsd`]},"application/tlsrpt+gzip":{source:`iana`},"application/tlsrpt+json":{source:`iana`,compressible:!0},"application/tnauthlist":{source:`iana`},"application/token-introspection+jwt":{source:`iana`},"application/toml":{compressible:!0,extensions:[`toml`]},"application/trickle-ice-sdpfrag":{source:`iana`},"application/trig":{source:`iana`,extensions:[`trig`]},"application/ttml+xml":{source:`iana`,compressible:!0,extensions:[`ttml`]},"application/tve-trigger":{source:`iana`},"application/tzif":{source:`iana`},"application/tzif-leap":{source:`iana`},"application/ubjson":{compressible:!1,extensions:[`ubj`]},"application/ulpfec":{source:`iana`},"application/urc-grpsheet+xml":{source:`iana`,compressible:!0},"application/urc-ressheet+xml":{source:`iana`,compressible:!0,extensions:[`rsheet`]},"application/urc-targetdesc+xml":{source:`iana`,compressible:!0,extensions:[`td`]},"application/urc-uisocketdesc+xml":{source:`iana`,compressible:!0},"application/vcard+json":{source:`iana`,compressible:!0},"application/vcard+xml":{source:`iana`,compressible:!0},"application/vemmi":{source:`iana`},"application/vividence.scriptfile":{source:`apache`},"application/vnd.1000minds.decision-model+xml":{source:`iana`,compressible:!0,extensions:[`1km`]},"application/vnd.3gpp-prose+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp-prose-pc3ch+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp-v2x-local-service-information":{source:`iana`},"application/vnd.3gpp.5gnas":{source:`iana`},"application/vnd.3gpp.access-transfer-events+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.bsf+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.gmop+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.gtpc":{source:`iana`},"application/vnd.3gpp.interworking-data":{source:`iana`},"application/vnd.3gpp.lpp":{source:`iana`},"application/vnd.3gpp.mc-signalling-ear":{source:`iana`},"application/vnd.3gpp.mcdata-affiliation-command+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcdata-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcdata-payload":{source:`iana`},"application/vnd.3gpp.mcdata-service-config+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcdata-signalling":{source:`iana`},"application/vnd.3gpp.mcdata-ue-config+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcdata-user-profile+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-affiliation-command+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-floor-request+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-location-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-service-config+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-signed+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-ue-config+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-ue-init-config+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-user-profile+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcvideo-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcvideo-location-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcvideo-service-config+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcvideo-transmission-request+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcvideo-ue-config+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcvideo-user-profile+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mid-call+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.ngap":{source:`iana`},"application/vnd.3gpp.pfcp":{source:`iana`},"application/vnd.3gpp.pic-bw-large":{source:`iana`,extensions:[`plb`]},"application/vnd.3gpp.pic-bw-small":{source:`iana`,extensions:[`psb`]},"application/vnd.3gpp.pic-bw-var":{source:`iana`,extensions:[`pvb`]},"application/vnd.3gpp.s1ap":{source:`iana`},"application/vnd.3gpp.sms":{source:`iana`},"application/vnd.3gpp.sms+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.srvcc-ext+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.srvcc-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.state-and-event-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.ussd+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp2.bcmcsinfo+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp2.sms":{source:`iana`},"application/vnd.3gpp2.tcap":{source:`iana`,extensions:[`tcap`]},"application/vnd.3lightssoftware.imagescal":{source:`iana`},"application/vnd.3m.post-it-notes":{source:`iana`,extensions:[`pwn`]},"application/vnd.accpac.simply.aso":{source:`iana`,extensions:[`aso`]},"application/vnd.accpac.simply.imp":{source:`iana`,extensions:[`imp`]},"application/vnd.acucobol":{source:`iana`,extensions:[`acu`]},"application/vnd.acucorp":{source:`iana`,extensions:[`atc`,`acutc`]},"application/vnd.adobe.air-application-installer-package+zip":{source:`apache`,compressible:!1,extensions:[`air`]},"application/vnd.adobe.flash.movie":{source:`iana`},"application/vnd.adobe.formscentral.fcdt":{source:`iana`,extensions:[`fcdt`]},"application/vnd.adobe.fxp":{source:`iana`,extensions:[`fxp`,`fxpl`]},"application/vnd.adobe.partial-upload":{source:`iana`},"application/vnd.adobe.xdp+xml":{source:`iana`,compressible:!0,extensions:[`xdp`]},"application/vnd.adobe.xfdf":{source:`iana`,extensions:[`xfdf`]},"application/vnd.aether.imp":{source:`iana`},"application/vnd.afpc.afplinedata":{source:`iana`},"application/vnd.afpc.afplinedata-pagedef":{source:`iana`},"application/vnd.afpc.cmoca-cmresource":{source:`iana`},"application/vnd.afpc.foca-charset":{source:`iana`},"application/vnd.afpc.foca-codedfont":{source:`iana`},"application/vnd.afpc.foca-codepage":{source:`iana`},"application/vnd.afpc.modca":{source:`iana`},"application/vnd.afpc.modca-cmtable":{source:`iana`},"application/vnd.afpc.modca-formdef":{source:`iana`},"application/vnd.afpc.modca-mediummap":{source:`iana`},"application/vnd.afpc.modca-objectcontainer":{source:`iana`},"application/vnd.afpc.modca-overlay":{source:`iana`},"application/vnd.afpc.modca-pagesegment":{source:`iana`},"application/vnd.age":{source:`iana`,extensions:[`age`]},"application/vnd.ah-barcode":{source:`iana`},"application/vnd.ahead.space":{source:`iana`,extensions:[`ahead`]},"application/vnd.airzip.filesecure.azf":{source:`iana`,extensions:[`azf`]},"application/vnd.airzip.filesecure.azs":{source:`iana`,extensions:[`azs`]},"application/vnd.amadeus+json":{source:`iana`,compressible:!0},"application/vnd.amazon.ebook":{source:`apache`,extensions:[`azw`]},"application/vnd.amazon.mobi8-ebook":{source:`iana`},"application/vnd.americandynamics.acc":{source:`iana`,extensions:[`acc`]},"application/vnd.amiga.ami":{source:`iana`,extensions:[`ami`]},"application/vnd.amundsen.maze+xml":{source:`iana`,compressible:!0},"application/vnd.android.ota":{source:`iana`},"application/vnd.android.package-archive":{source:`apache`,compressible:!1,extensions:[`apk`]},"application/vnd.anki":{source:`iana`},"application/vnd.anser-web-certificate-issue-initiation":{source:`iana`,extensions:[`cii`]},"application/vnd.anser-web-funds-transfer-initiation":{source:`apache`,extensions:[`fti`]},"application/vnd.antix.game-component":{source:`iana`,extensions:[`atx`]},"application/vnd.apache.arrow.file":{source:`iana`},"application/vnd.apache.arrow.stream":{source:`iana`},"application/vnd.apache.thrift.binary":{source:`iana`},"application/vnd.apache.thrift.compact":{source:`iana`},"application/vnd.apache.thrift.json":{source:`iana`},"application/vnd.api+json":{source:`iana`,compressible:!0},"application/vnd.aplextor.warrp+json":{source:`iana`,compressible:!0},"application/vnd.apothekende.reservation+json":{source:`iana`,compressible:!0},"application/vnd.apple.installer+xml":{source:`iana`,compressible:!0,extensions:[`mpkg`]},"application/vnd.apple.keynote":{source:`iana`,extensions:[`key`]},"application/vnd.apple.mpegurl":{source:`iana`,extensions:[`m3u8`]},"application/vnd.apple.numbers":{source:`iana`,extensions:[`numbers`]},"application/vnd.apple.pages":{source:`iana`,extensions:[`pages`]},"application/vnd.apple.pkpass":{compressible:!1,extensions:[`pkpass`]},"application/vnd.arastra.swi":{source:`iana`},"application/vnd.aristanetworks.swi":{source:`iana`,extensions:[`swi`]},"application/vnd.artisan+json":{source:`iana`,compressible:!0},"application/vnd.artsquare":{source:`iana`},"application/vnd.astraea-software.iota":{source:`iana`,extensions:[`iota`]},"application/vnd.audiograph":{source:`iana`,extensions:[`aep`]},"application/vnd.autopackage":{source:`iana`},"application/vnd.avalon+json":{source:`iana`,compressible:!0},"application/vnd.avistar+xml":{source:`iana`,compressible:!0},"application/vnd.balsamiq.bmml+xml":{source:`iana`,compressible:!0,extensions:[`bmml`]},"application/vnd.balsamiq.bmpr":{source:`iana`},"application/vnd.banana-accounting":{source:`iana`},"application/vnd.bbf.usp.error":{source:`iana`},"application/vnd.bbf.usp.msg":{source:`iana`},"application/vnd.bbf.usp.msg+json":{source:`iana`,compressible:!0},"application/vnd.bekitzur-stech+json":{source:`iana`,compressible:!0},"application/vnd.bint.med-content":{source:`iana`},"application/vnd.biopax.rdf+xml":{source:`iana`,compressible:!0},"application/vnd.blink-idb-value-wrapper":{source:`iana`},"application/vnd.blueice.multipass":{source:`iana`,extensions:[`mpm`]},"application/vnd.bluetooth.ep.oob":{source:`iana`},"application/vnd.bluetooth.le.oob":{source:`iana`},"application/vnd.bmi":{source:`iana`,extensions:[`bmi`]},"application/vnd.bpf":{source:`iana`},"application/vnd.bpf3":{source:`iana`},"application/vnd.businessobjects":{source:`iana`,extensions:[`rep`]},"application/vnd.byu.uapi+json":{source:`iana`,compressible:!0},"application/vnd.cab-jscript":{source:`iana`},"application/vnd.canon-cpdl":{source:`iana`},"application/vnd.canon-lips":{source:`iana`},"application/vnd.capasystems-pg+json":{source:`iana`,compressible:!0},"application/vnd.cendio.thinlinc.clientconf":{source:`iana`},"application/vnd.century-systems.tcp_stream":{source:`iana`},"application/vnd.chemdraw+xml":{source:`iana`,compressible:!0,extensions:[`cdxml`]},"application/vnd.chess-pgn":{source:`iana`},"application/vnd.chipnuts.karaoke-mmd":{source:`iana`,extensions:[`mmd`]},"application/vnd.ciedi":{source:`iana`},"application/vnd.cinderella":{source:`iana`,extensions:[`cdy`]},"application/vnd.cirpack.isdn-ext":{source:`iana`},"application/vnd.citationstyles.style+xml":{source:`iana`,compressible:!0,extensions:[`csl`]},"application/vnd.claymore":{source:`iana`,extensions:[`cla`]},"application/vnd.cloanto.rp9":{source:`iana`,extensions:[`rp9`]},"application/vnd.clonk.c4group":{source:`iana`,extensions:[`c4g`,`c4d`,`c4f`,`c4p`,`c4u`]},"application/vnd.cluetrust.cartomobile-config":{source:`iana`,extensions:[`c11amc`]},"application/vnd.cluetrust.cartomobile-config-pkg":{source:`iana`,extensions:[`c11amz`]},"application/vnd.coffeescript":{source:`iana`},"application/vnd.collabio.xodocuments.document":{source:`iana`},"application/vnd.collabio.xodocuments.document-template":{source:`iana`},"application/vnd.collabio.xodocuments.presentation":{source:`iana`},"application/vnd.collabio.xodocuments.presentation-template":{source:`iana`},"application/vnd.collabio.xodocuments.spreadsheet":{source:`iana`},"application/vnd.collabio.xodocuments.spreadsheet-template":{source:`iana`},"application/vnd.collection+json":{source:`iana`,compressible:!0},"application/vnd.collection.doc+json":{source:`iana`,compressible:!0},"application/vnd.collection.next+json":{source:`iana`,compressible:!0},"application/vnd.comicbook+zip":{source:`iana`,compressible:!1},"application/vnd.comicbook-rar":{source:`iana`},"application/vnd.commerce-battelle":{source:`iana`},"application/vnd.commonspace":{source:`iana`,extensions:[`csp`]},"application/vnd.contact.cmsg":{source:`iana`,extensions:[`cdbcmsg`]},"application/vnd.coreos.ignition+json":{source:`iana`,compressible:!0},"application/vnd.cosmocaller":{source:`iana`,extensions:[`cmc`]},"application/vnd.crick.clicker":{source:`iana`,extensions:[`clkx`]},"application/vnd.crick.clicker.keyboard":{source:`iana`,extensions:[`clkk`]},"application/vnd.crick.clicker.palette":{source:`iana`,extensions:[`clkp`]},"application/vnd.crick.clicker.template":{source:`iana`,extensions:[`clkt`]},"application/vnd.crick.clicker.wordbank":{source:`iana`,extensions:[`clkw`]},"application/vnd.criticaltools.wbs+xml":{source:`iana`,compressible:!0,extensions:[`wbs`]},"application/vnd.cryptii.pipe+json":{source:`iana`,compressible:!0},"application/vnd.crypto-shade-file":{source:`iana`},"application/vnd.cryptomator.encrypted":{source:`iana`},"application/vnd.cryptomator.vault":{source:`iana`},"application/vnd.ctc-posml":{source:`iana`,extensions:[`pml`]},"application/vnd.ctct.ws+xml":{source:`iana`,compressible:!0},"application/vnd.cups-pdf":{source:`iana`},"application/vnd.cups-postscript":{source:`iana`},"application/vnd.cups-ppd":{source:`iana`,extensions:[`ppd`]},"application/vnd.cups-raster":{source:`iana`},"application/vnd.cups-raw":{source:`iana`},"application/vnd.curl":{source:`iana`},"application/vnd.curl.car":{source:`apache`,extensions:[`car`]},"application/vnd.curl.pcurl":{source:`apache`,extensions:[`pcurl`]},"application/vnd.cyan.dean.root+xml":{source:`iana`,compressible:!0},"application/vnd.cybank":{source:`iana`},"application/vnd.cyclonedx+json":{source:`iana`,compressible:!0},"application/vnd.cyclonedx+xml":{source:`iana`,compressible:!0},"application/vnd.d2l.coursepackage1p0+zip":{source:`iana`,compressible:!1},"application/vnd.d3m-dataset":{source:`iana`},"application/vnd.d3m-problem":{source:`iana`},"application/vnd.dart":{source:`iana`,compressible:!0,extensions:[`dart`]},"application/vnd.data-vision.rdz":{source:`iana`,extensions:[`rdz`]},"application/vnd.datapackage+json":{source:`iana`,compressible:!0},"application/vnd.dataresource+json":{source:`iana`,compressible:!0},"application/vnd.dbf":{source:`iana`,extensions:[`dbf`]},"application/vnd.debian.binary-package":{source:`iana`},"application/vnd.dece.data":{source:`iana`,extensions:[`uvf`,`uvvf`,`uvd`,`uvvd`]},"application/vnd.dece.ttml+xml":{source:`iana`,compressible:!0,extensions:[`uvt`,`uvvt`]},"application/vnd.dece.unspecified":{source:`iana`,extensions:[`uvx`,`uvvx`]},"application/vnd.dece.zip":{source:`iana`,extensions:[`uvz`,`uvvz`]},"application/vnd.denovo.fcselayout-link":{source:`iana`,extensions:[`fe_launch`]},"application/vnd.desmume.movie":{source:`iana`},"application/vnd.dir-bi.plate-dl-nosuffix":{source:`iana`},"application/vnd.dm.delegation+xml":{source:`iana`,compressible:!0},"application/vnd.dna":{source:`iana`,extensions:[`dna`]},"application/vnd.document+json":{source:`iana`,compressible:!0},"application/vnd.dolby.mlp":{source:`apache`,extensions:[`mlp`]},"application/vnd.dolby.mobile.1":{source:`iana`},"application/vnd.dolby.mobile.2":{source:`iana`},"application/vnd.doremir.scorecloud-binary-document":{source:`iana`},"application/vnd.dpgraph":{source:`iana`,extensions:[`dpg`]},"application/vnd.dreamfactory":{source:`iana`,extensions:[`dfac`]},"application/vnd.drive+json":{source:`iana`,compressible:!0},"application/vnd.ds-keypoint":{source:`apache`,extensions:[`kpxx`]},"application/vnd.dtg.local":{source:`iana`},"application/vnd.dtg.local.flash":{source:`iana`},"application/vnd.dtg.local.html":{source:`iana`},"application/vnd.dvb.ait":{source:`iana`,extensions:[`ait`]},"application/vnd.dvb.dvbisl+xml":{source:`iana`,compressible:!0},"application/vnd.dvb.dvbj":{source:`iana`},"application/vnd.dvb.esgcontainer":{source:`iana`},"application/vnd.dvb.ipdcdftnotifaccess":{source:`iana`},"application/vnd.dvb.ipdcesgaccess":{source:`iana`},"application/vnd.dvb.ipdcesgaccess2":{source:`iana`},"application/vnd.dvb.ipdcesgpdd":{source:`iana`},"application/vnd.dvb.ipdcroaming":{source:`iana`},"application/vnd.dvb.iptv.alfec-base":{source:`iana`},"application/vnd.dvb.iptv.alfec-enhancement":{source:`iana`},"application/vnd.dvb.notif-aggregate-root+xml":{source:`iana`,compressible:!0},"application/vnd.dvb.notif-container+xml":{source:`iana`,compressible:!0},"application/vnd.dvb.notif-generic+xml":{source:`iana`,compressible:!0},"application/vnd.dvb.notif-ia-msglist+xml":{source:`iana`,compressible:!0},"application/vnd.dvb.notif-ia-registration-request+xml":{source:`iana`,compressible:!0},"application/vnd.dvb.notif-ia-registration-response+xml":{source:`iana`,compressible:!0},"application/vnd.dvb.notif-init+xml":{source:`iana`,compressible:!0},"application/vnd.dvb.pfr":{source:`iana`},"application/vnd.dvb.service":{source:`iana`,extensions:[`svc`]},"application/vnd.dxr":{source:`iana`},"application/vnd.dynageo":{source:`iana`,extensions:[`geo`]},"application/vnd.dzr":{source:`iana`},"application/vnd.easykaraoke.cdgdownload":{source:`iana`},"application/vnd.ecdis-update":{source:`iana`},"application/vnd.ecip.rlp":{source:`iana`},"application/vnd.eclipse.ditto+json":{source:`iana`,compressible:!0},"application/vnd.ecowin.chart":{source:`iana`,extensions:[`mag`]},"application/vnd.ecowin.filerequest":{source:`iana`},"application/vnd.ecowin.fileupdate":{source:`iana`},"application/vnd.ecowin.series":{source:`iana`},"application/vnd.ecowin.seriesrequest":{source:`iana`},"application/vnd.ecowin.seriesupdate":{source:`iana`},"application/vnd.efi.img":{source:`iana`},"application/vnd.efi.iso":{source:`iana`},"application/vnd.emclient.accessrequest+xml":{source:`iana`,compressible:!0},"application/vnd.enliven":{source:`iana`,extensions:[`nml`]},"application/vnd.enphase.envoy":{source:`iana`},"application/vnd.eprints.data+xml":{source:`iana`,compressible:!0},"application/vnd.epson.esf":{source:`iana`,extensions:[`esf`]},"application/vnd.epson.msf":{source:`iana`,extensions:[`msf`]},"application/vnd.epson.quickanime":{source:`iana`,extensions:[`qam`]},"application/vnd.epson.salt":{source:`iana`,extensions:[`slt`]},"application/vnd.epson.ssf":{source:`iana`,extensions:[`ssf`]},"application/vnd.ericsson.quickcall":{source:`iana`},"application/vnd.espass-espass+zip":{source:`iana`,compressible:!1},"application/vnd.eszigno3+xml":{source:`iana`,compressible:!0,extensions:[`es3`,`et3`]},"application/vnd.etsi.aoc+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.asic-e+zip":{source:`iana`,compressible:!1},"application/vnd.etsi.asic-s+zip":{source:`iana`,compressible:!1},"application/vnd.etsi.cug+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.iptvcommand+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.iptvdiscovery+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.iptvprofile+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.iptvsad-bc+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.iptvsad-cod+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.iptvsad-npvr+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.iptvservice+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.iptvsync+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.iptvueprofile+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.mcid+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.mheg5":{source:`iana`},"application/vnd.etsi.overload-control-policy-dataset+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.pstn+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.sci+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.simservs+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.timestamp-token":{source:`iana`},"application/vnd.etsi.tsl+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.tsl.der":{source:`iana`},"application/vnd.eu.kasparian.car+json":{source:`iana`,compressible:!0},"application/vnd.eudora.data":{source:`iana`},"application/vnd.evolv.ecig.profile":{source:`iana`},"application/vnd.evolv.ecig.settings":{source:`iana`},"application/vnd.evolv.ecig.theme":{source:`iana`},"application/vnd.exstream-empower+zip":{source:`iana`,compressible:!1},"application/vnd.exstream-package":{source:`iana`},"application/vnd.ezpix-album":{source:`iana`,extensions:[`ez2`]},"application/vnd.ezpix-package":{source:`iana`,extensions:[`ez3`]},"application/vnd.f-secure.mobile":{source:`iana`},"application/vnd.familysearch.gedcom+zip":{source:`iana`,compressible:!1},"application/vnd.fastcopy-disk-image":{source:`iana`},"application/vnd.fdf":{source:`iana`,extensions:[`fdf`]},"application/vnd.fdsn.mseed":{source:`iana`,extensions:[`mseed`]},"application/vnd.fdsn.seed":{source:`iana`,extensions:[`seed`,`dataless`]},"application/vnd.ffsns":{source:`iana`},"application/vnd.ficlab.flb+zip":{source:`iana`,compressible:!1},"application/vnd.filmit.zfc":{source:`iana`},"application/vnd.fints":{source:`iana`},"application/vnd.firemonkeys.cloudcell":{source:`iana`},"application/vnd.flographit":{source:`iana`,extensions:[`gph`]},"application/vnd.fluxtime.clip":{source:`iana`,extensions:[`ftc`]},"application/vnd.font-fontforge-sfd":{source:`iana`},"application/vnd.framemaker":{source:`iana`,extensions:[`fm`,`frame`,`maker`,`book`]},"application/vnd.frogans.fnc":{source:`iana`,extensions:[`fnc`]},"application/vnd.frogans.ltf":{source:`iana`,extensions:[`ltf`]},"application/vnd.fsc.weblaunch":{source:`iana`,extensions:[`fsc`]},"application/vnd.fujifilm.fb.docuworks":{source:`iana`},"application/vnd.fujifilm.fb.docuworks.binder":{source:`iana`},"application/vnd.fujifilm.fb.docuworks.container":{source:`iana`},"application/vnd.fujifilm.fb.jfi+xml":{source:`iana`,compressible:!0},"application/vnd.fujitsu.oasys":{source:`iana`,extensions:[`oas`]},"application/vnd.fujitsu.oasys2":{source:`iana`,extensions:[`oa2`]},"application/vnd.fujitsu.oasys3":{source:`iana`,extensions:[`oa3`]},"application/vnd.fujitsu.oasysgp":{source:`iana`,extensions:[`fg5`]},"application/vnd.fujitsu.oasysprs":{source:`iana`,extensions:[`bh2`]},"application/vnd.fujixerox.art-ex":{source:`iana`},"application/vnd.fujixerox.art4":{source:`iana`},"application/vnd.fujixerox.ddd":{source:`iana`,extensions:[`ddd`]},"application/vnd.fujixerox.docuworks":{source:`iana`,extensions:[`xdw`]},"application/vnd.fujixerox.docuworks.binder":{source:`iana`,extensions:[`xbd`]},"application/vnd.fujixerox.docuworks.container":{source:`iana`},"application/vnd.fujixerox.hbpl":{source:`iana`},"application/vnd.fut-misnet":{source:`iana`},"application/vnd.futoin+cbor":{source:`iana`},"application/vnd.futoin+json":{source:`iana`,compressible:!0},"application/vnd.fuzzysheet":{source:`iana`,extensions:[`fzs`]},"application/vnd.genomatix.tuxedo":{source:`iana`,extensions:[`txd`]},"application/vnd.gentics.grd+json":{source:`iana`,compressible:!0},"application/vnd.geo+json":{source:`iana`,compressible:!0},"application/vnd.geocube+xml":{source:`iana`,compressible:!0},"application/vnd.geogebra.file":{source:`iana`,extensions:[`ggb`]},"application/vnd.geogebra.slides":{source:`iana`},"application/vnd.geogebra.tool":{source:`iana`,extensions:[`ggt`]},"application/vnd.geometry-explorer":{source:`iana`,extensions:[`gex`,`gre`]},"application/vnd.geonext":{source:`iana`,extensions:[`gxt`]},"application/vnd.geoplan":{source:`iana`,extensions:[`g2w`]},"application/vnd.geospace":{source:`iana`,extensions:[`g3w`]},"application/vnd.gerber":{source:`iana`},"application/vnd.globalplatform.card-content-mgt":{source:`iana`},"application/vnd.globalplatform.card-content-mgt-response":{source:`iana`},"application/vnd.gmx":{source:`iana`,extensions:[`gmx`]},"application/vnd.google-apps.document":{compressible:!1,extensions:[`gdoc`]},"application/vnd.google-apps.presentation":{compressible:!1,extensions:[`gslides`]},"application/vnd.google-apps.spreadsheet":{compressible:!1,extensions:[`gsheet`]},"application/vnd.google-earth.kml+xml":{source:`iana`,compressible:!0,extensions:[`kml`]},"application/vnd.google-earth.kmz":{source:`iana`,compressible:!1,extensions:[`kmz`]},"application/vnd.gov.sk.e-form+xml":{source:`iana`,compressible:!0},"application/vnd.gov.sk.e-form+zip":{source:`iana`,compressible:!1},"application/vnd.gov.sk.xmldatacontainer+xml":{source:`iana`,compressible:!0},"application/vnd.grafeq":{source:`iana`,extensions:[`gqf`,`gqs`]},"application/vnd.gridmp":{source:`iana`},"application/vnd.groove-account":{source:`iana`,extensions:[`gac`]},"application/vnd.groove-help":{source:`iana`,extensions:[`ghf`]},"application/vnd.groove-identity-message":{source:`iana`,extensions:[`gim`]},"application/vnd.groove-injector":{source:`iana`,extensions:[`grv`]},"application/vnd.groove-tool-message":{source:`iana`,extensions:[`gtm`]},"application/vnd.groove-tool-template":{source:`iana`,extensions:[`tpl`]},"application/vnd.groove-vcard":{source:`iana`,extensions:[`vcg`]},"application/vnd.hal+json":{source:`iana`,compressible:!0},"application/vnd.hal+xml":{source:`iana`,compressible:!0,extensions:[`hal`]},"application/vnd.handheld-entertainment+xml":{source:`iana`,compressible:!0,extensions:[`zmm`]},"application/vnd.hbci":{source:`iana`,extensions:[`hbci`]},"application/vnd.hc+json":{source:`iana`,compressible:!0},"application/vnd.hcl-bireports":{source:`iana`},"application/vnd.hdt":{source:`iana`},"application/vnd.heroku+json":{source:`iana`,compressible:!0},"application/vnd.hhe.lesson-player":{source:`iana`,extensions:[`les`]},"application/vnd.hl7cda+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/vnd.hl7v2+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/vnd.hp-hpgl":{source:`iana`,extensions:[`hpgl`]},"application/vnd.hp-hpid":{source:`iana`,extensions:[`hpid`]},"application/vnd.hp-hps":{source:`iana`,extensions:[`hps`]},"application/vnd.hp-jlyt":{source:`iana`,extensions:[`jlt`]},"application/vnd.hp-pcl":{source:`iana`,extensions:[`pcl`]},"application/vnd.hp-pclxl":{source:`iana`,extensions:[`pclxl`]},"application/vnd.httphone":{source:`iana`},"application/vnd.hydrostatix.sof-data":{source:`iana`,extensions:[`sfd-hdstx`]},"application/vnd.hyper+json":{source:`iana`,compressible:!0},"application/vnd.hyper-item+json":{source:`iana`,compressible:!0},"application/vnd.hyperdrive+json":{source:`iana`,compressible:!0},"application/vnd.hzn-3d-crossword":{source:`iana`},"application/vnd.ibm.afplinedata":{source:`iana`},"application/vnd.ibm.electronic-media":{source:`iana`},"application/vnd.ibm.minipay":{source:`iana`,extensions:[`mpy`]},"application/vnd.ibm.modcap":{source:`iana`,extensions:[`afp`,`listafp`,`list3820`]},"application/vnd.ibm.rights-management":{source:`iana`,extensions:[`irm`]},"application/vnd.ibm.secure-container":{source:`iana`,extensions:[`sc`]},"application/vnd.iccprofile":{source:`iana`,extensions:[`icc`,`icm`]},"application/vnd.ieee.1905":{source:`iana`},"application/vnd.igloader":{source:`iana`,extensions:[`igl`]},"application/vnd.imagemeter.folder+zip":{source:`iana`,compressible:!1},"application/vnd.imagemeter.image+zip":{source:`iana`,compressible:!1},"application/vnd.immervision-ivp":{source:`iana`,extensions:[`ivp`]},"application/vnd.immervision-ivu":{source:`iana`,extensions:[`ivu`]},"application/vnd.ims.imsccv1p1":{source:`iana`},"application/vnd.ims.imsccv1p2":{source:`iana`},"application/vnd.ims.imsccv1p3":{source:`iana`},"application/vnd.ims.lis.v2.result+json":{source:`iana`,compressible:!0},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{source:`iana`,compressible:!0},"application/vnd.ims.lti.v2.toolproxy+json":{source:`iana`,compressible:!0},"application/vnd.ims.lti.v2.toolproxy.id+json":{source:`iana`,compressible:!0},"application/vnd.ims.lti.v2.toolsettings+json":{source:`iana`,compressible:!0},"application/vnd.ims.lti.v2.toolsettings.simple+json":{source:`iana`,compressible:!0},"application/vnd.informedcontrol.rms+xml":{source:`iana`,compressible:!0},"application/vnd.informix-visionary":{source:`iana`},"application/vnd.infotech.project":{source:`iana`},"application/vnd.infotech.project+xml":{source:`iana`,compressible:!0},"application/vnd.innopath.wamp.notification":{source:`iana`},"application/vnd.insors.igm":{source:`iana`,extensions:[`igm`]},"application/vnd.intercon.formnet":{source:`iana`,extensions:[`xpw`,`xpx`]},"application/vnd.intergeo":{source:`iana`,extensions:[`i2g`]},"application/vnd.intertrust.digibox":{source:`iana`},"application/vnd.intertrust.nncp":{source:`iana`},"application/vnd.intu.qbo":{source:`iana`,extensions:[`qbo`]},"application/vnd.intu.qfx":{source:`iana`,extensions:[`qfx`]},"application/vnd.iptc.g2.catalogitem+xml":{source:`iana`,compressible:!0},"application/vnd.iptc.g2.conceptitem+xml":{source:`iana`,compressible:!0},"application/vnd.iptc.g2.knowledgeitem+xml":{source:`iana`,compressible:!0},"application/vnd.iptc.g2.newsitem+xml":{source:`iana`,compressible:!0},"application/vnd.iptc.g2.newsmessage+xml":{source:`iana`,compressible:!0},"application/vnd.iptc.g2.packageitem+xml":{source:`iana`,compressible:!0},"application/vnd.iptc.g2.planningitem+xml":{source:`iana`,compressible:!0},"application/vnd.ipunplugged.rcprofile":{source:`iana`,extensions:[`rcprofile`]},"application/vnd.irepository.package+xml":{source:`iana`,compressible:!0,extensions:[`irp`]},"application/vnd.is-xpr":{source:`iana`,extensions:[`xpr`]},"application/vnd.isac.fcs":{source:`iana`,extensions:[`fcs`]},"application/vnd.iso11783-10+zip":{source:`iana`,compressible:!1},"application/vnd.jam":{source:`iana`,extensions:[`jam`]},"application/vnd.japannet-directory-service":{source:`iana`},"application/vnd.japannet-jpnstore-wakeup":{source:`iana`},"application/vnd.japannet-payment-wakeup":{source:`iana`},"application/vnd.japannet-registration":{source:`iana`},"application/vnd.japannet-registration-wakeup":{source:`iana`},"application/vnd.japannet-setstore-wakeup":{source:`iana`},"application/vnd.japannet-verification":{source:`iana`},"application/vnd.japannet-verification-wakeup":{source:`iana`},"application/vnd.jcp.javame.midlet-rms":{source:`iana`,extensions:[`rms`]},"application/vnd.jisp":{source:`iana`,extensions:[`jisp`]},"application/vnd.joost.joda-archive":{source:`iana`,extensions:[`joda`]},"application/vnd.jsk.isdn-ngn":{source:`iana`},"application/vnd.kahootz":{source:`iana`,extensions:[`ktz`,`ktr`]},"application/vnd.kde.karbon":{source:`iana`,extensions:[`karbon`]},"application/vnd.kde.kchart":{source:`iana`,extensions:[`chrt`]},"application/vnd.kde.kformula":{source:`iana`,extensions:[`kfo`]},"application/vnd.kde.kivio":{source:`iana`,extensions:[`flw`]},"application/vnd.kde.kontour":{source:`iana`,extensions:[`kon`]},"application/vnd.kde.kpresenter":{source:`iana`,extensions:[`kpr`,`kpt`]},"application/vnd.kde.kspread":{source:`iana`,extensions:[`ksp`]},"application/vnd.kde.kword":{source:`iana`,extensions:[`kwd`,`kwt`]},"application/vnd.kenameaapp":{source:`iana`,extensions:[`htke`]},"application/vnd.kidspiration":{source:`iana`,extensions:[`kia`]},"application/vnd.kinar":{source:`iana`,extensions:[`kne`,`knp`]},"application/vnd.koan":{source:`iana`,extensions:[`skp`,`skd`,`skt`,`skm`]},"application/vnd.kodak-descriptor":{source:`iana`,extensions:[`sse`]},"application/vnd.las":{source:`iana`},"application/vnd.las.las+json":{source:`iana`,compressible:!0},"application/vnd.las.las+xml":{source:`iana`,compressible:!0,extensions:[`lasxml`]},"application/vnd.laszip":{source:`iana`},"application/vnd.leap+json":{source:`iana`,compressible:!0},"application/vnd.liberty-request+xml":{source:`iana`,compressible:!0},"application/vnd.llamagraphics.life-balance.desktop":{source:`iana`,extensions:[`lbd`]},"application/vnd.llamagraphics.life-balance.exchange+xml":{source:`iana`,compressible:!0,extensions:[`lbe`]},"application/vnd.logipipe.circuit+zip":{source:`iana`,compressible:!1},"application/vnd.loom":{source:`iana`},"application/vnd.lotus-1-2-3":{source:`iana`,extensions:[`123`]},"application/vnd.lotus-approach":{source:`iana`,extensions:[`apr`]},"application/vnd.lotus-freelance":{source:`iana`,extensions:[`pre`]},"application/vnd.lotus-notes":{source:`iana`,extensions:[`nsf`]},"application/vnd.lotus-organizer":{source:`iana`,extensions:[`org`]},"application/vnd.lotus-screencam":{source:`iana`,extensions:[`scm`]},"application/vnd.lotus-wordpro":{source:`iana`,extensions:[`lwp`]},"application/vnd.macports.portpkg":{source:`iana`,extensions:[`portpkg`]},"application/vnd.mapbox-vector-tile":{source:`iana`,extensions:[`mvt`]},"application/vnd.marlin.drm.actiontoken+xml":{source:`iana`,compressible:!0},"application/vnd.marlin.drm.conftoken+xml":{source:`iana`,compressible:!0},"application/vnd.marlin.drm.license+xml":{source:`iana`,compressible:!0},"application/vnd.marlin.drm.mdcf":{source:`iana`},"application/vnd.mason+json":{source:`iana`,compressible:!0},"application/vnd.maxar.archive.3tz+zip":{source:`iana`,compressible:!1},"application/vnd.maxmind.maxmind-db":{source:`iana`},"application/vnd.mcd":{source:`iana`,extensions:[`mcd`]},"application/vnd.medcalcdata":{source:`iana`,extensions:[`mc1`]},"application/vnd.mediastation.cdkey":{source:`iana`,extensions:[`cdkey`]},"application/vnd.meridian-slingshot":{source:`iana`},"application/vnd.mfer":{source:`iana`,extensions:[`mwf`]},"application/vnd.mfmp":{source:`iana`,extensions:[`mfm`]},"application/vnd.micro+json":{source:`iana`,compressible:!0},"application/vnd.micrografx.flo":{source:`iana`,extensions:[`flo`]},"application/vnd.micrografx.igx":{source:`iana`,extensions:[`igx`]},"application/vnd.microsoft.portable-executable":{source:`iana`},"application/vnd.microsoft.windows.thumbnail-cache":{source:`iana`},"application/vnd.miele+json":{source:`iana`,compressible:!0},"application/vnd.mif":{source:`iana`,extensions:[`mif`]},"application/vnd.minisoft-hp3000-save":{source:`iana`},"application/vnd.mitsubishi.misty-guard.trustweb":{source:`iana`},"application/vnd.mobius.daf":{source:`iana`,extensions:[`daf`]},"application/vnd.mobius.dis":{source:`iana`,extensions:[`dis`]},"application/vnd.mobius.mbk":{source:`iana`,extensions:[`mbk`]},"application/vnd.mobius.mqy":{source:`iana`,extensions:[`mqy`]},"application/vnd.mobius.msl":{source:`iana`,extensions:[`msl`]},"application/vnd.mobius.plc":{source:`iana`,extensions:[`plc`]},"application/vnd.mobius.txf":{source:`iana`,extensions:[`txf`]},"application/vnd.mophun.application":{source:`iana`,extensions:[`mpn`]},"application/vnd.mophun.certificate":{source:`iana`,extensions:[`mpc`]},"application/vnd.motorola.flexsuite":{source:`iana`},"application/vnd.motorola.flexsuite.adsi":{source:`iana`},"application/vnd.motorola.flexsuite.fis":{source:`iana`},"application/vnd.motorola.flexsuite.gotap":{source:`iana`},"application/vnd.motorola.flexsuite.kmr":{source:`iana`},"application/vnd.motorola.flexsuite.ttc":{source:`iana`},"application/vnd.motorola.flexsuite.wem":{source:`iana`},"application/vnd.motorola.iprm":{source:`iana`},"application/vnd.mozilla.xul+xml":{source:`iana`,compressible:!0,extensions:[`xul`]},"application/vnd.ms-3mfdocument":{source:`iana`},"application/vnd.ms-artgalry":{source:`iana`,extensions:[`cil`]},"application/vnd.ms-asf":{source:`iana`},"application/vnd.ms-cab-compressed":{source:`iana`,extensions:[`cab`]},"application/vnd.ms-color.iccprofile":{source:`apache`},"application/vnd.ms-excel":{source:`iana`,compressible:!1,extensions:[`xls`,`xlm`,`xla`,`xlc`,`xlt`,`xlw`]},"application/vnd.ms-excel.addin.macroenabled.12":{source:`iana`,extensions:[`xlam`]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{source:`iana`,extensions:[`xlsb`]},"application/vnd.ms-excel.sheet.macroenabled.12":{source:`iana`,extensions:[`xlsm`]},"application/vnd.ms-excel.template.macroenabled.12":{source:`iana`,extensions:[`xltm`]},"application/vnd.ms-fontobject":{source:`iana`,compressible:!0,extensions:[`eot`]},"application/vnd.ms-htmlhelp":{source:`iana`,extensions:[`chm`]},"application/vnd.ms-ims":{source:`iana`,extensions:[`ims`]},"application/vnd.ms-lrm":{source:`iana`,extensions:[`lrm`]},"application/vnd.ms-office.activex+xml":{source:`iana`,compressible:!0},"application/vnd.ms-officetheme":{source:`iana`,extensions:[`thmx`]},"application/vnd.ms-opentype":{source:`apache`,compressible:!0},"application/vnd.ms-outlook":{compressible:!1,extensions:[`msg`]},"application/vnd.ms-package.obfuscated-opentype":{source:`apache`},"application/vnd.ms-pki.seccat":{source:`apache`,extensions:[`cat`]},"application/vnd.ms-pki.stl":{source:`apache`,extensions:[`stl`]},"application/vnd.ms-playready.initiator+xml":{source:`iana`,compressible:!0},"application/vnd.ms-powerpoint":{source:`iana`,compressible:!1,extensions:[`ppt`,`pps`,`pot`]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{source:`iana`,extensions:[`ppam`]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{source:`iana`,extensions:[`pptm`]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{source:`iana`,extensions:[`sldm`]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{source:`iana`,extensions:[`ppsm`]},"application/vnd.ms-powerpoint.template.macroenabled.12":{source:`iana`,extensions:[`potm`]},"application/vnd.ms-printdevicecapabilities+xml":{source:`iana`,compressible:!0},"application/vnd.ms-printing.printticket+xml":{source:`apache`,compressible:!0},"application/vnd.ms-printschematicket+xml":{source:`iana`,compressible:!0},"application/vnd.ms-project":{source:`iana`,extensions:[`mpp`,`mpt`]},"application/vnd.ms-tnef":{source:`iana`},"application/vnd.ms-windows.devicepairing":{source:`iana`},"application/vnd.ms-windows.nwprinting.oob":{source:`iana`},"application/vnd.ms-windows.printerpairing":{source:`iana`},"application/vnd.ms-windows.wsd.oob":{source:`iana`},"application/vnd.ms-wmdrm.lic-chlg-req":{source:`iana`},"application/vnd.ms-wmdrm.lic-resp":{source:`iana`},"application/vnd.ms-wmdrm.meter-chlg-req":{source:`iana`},"application/vnd.ms-wmdrm.meter-resp":{source:`iana`},"application/vnd.ms-word.document.macroenabled.12":{source:`iana`,extensions:[`docm`]},"application/vnd.ms-word.template.macroenabled.12":{source:`iana`,extensions:[`dotm`]},"application/vnd.ms-works":{source:`iana`,extensions:[`wps`,`wks`,`wcm`,`wdb`]},"application/vnd.ms-wpl":{source:`iana`,extensions:[`wpl`]},"application/vnd.ms-xpsdocument":{source:`iana`,compressible:!1,extensions:[`xps`]},"application/vnd.msa-disk-image":{source:`iana`},"application/vnd.mseq":{source:`iana`,extensions:[`mseq`]},"application/vnd.msign":{source:`iana`},"application/vnd.multiad.creator":{source:`iana`},"application/vnd.multiad.creator.cif":{source:`iana`},"application/vnd.music-niff":{source:`iana`},"application/vnd.musician":{source:`iana`,extensions:[`mus`]},"application/vnd.muvee.style":{source:`iana`,extensions:[`msty`]},"application/vnd.mynfc":{source:`iana`,extensions:[`taglet`]},"application/vnd.nacamar.ybrid+json":{source:`iana`,compressible:!0},"application/vnd.ncd.control":{source:`iana`},"application/vnd.ncd.reference":{source:`iana`},"application/vnd.nearst.inv+json":{source:`iana`,compressible:!0},"application/vnd.nebumind.line":{source:`iana`},"application/vnd.nervana":{source:`iana`},"application/vnd.netfpx":{source:`iana`},"application/vnd.neurolanguage.nlu":{source:`iana`,extensions:[`nlu`]},"application/vnd.nimn":{source:`iana`},"application/vnd.nintendo.nitro.rom":{source:`iana`},"application/vnd.nintendo.snes.rom":{source:`iana`},"application/vnd.nitf":{source:`iana`,extensions:[`ntf`,`nitf`]},"application/vnd.noblenet-directory":{source:`iana`,extensions:[`nnd`]},"application/vnd.noblenet-sealer":{source:`iana`,extensions:[`nns`]},"application/vnd.noblenet-web":{source:`iana`,extensions:[`nnw`]},"application/vnd.nokia.catalogs":{source:`iana`},"application/vnd.nokia.conml+wbxml":{source:`iana`},"application/vnd.nokia.conml+xml":{source:`iana`,compressible:!0},"application/vnd.nokia.iptv.config+xml":{source:`iana`,compressible:!0},"application/vnd.nokia.isds-radio-presets":{source:`iana`},"application/vnd.nokia.landmark+wbxml":{source:`iana`},"application/vnd.nokia.landmark+xml":{source:`iana`,compressible:!0},"application/vnd.nokia.landmarkcollection+xml":{source:`iana`,compressible:!0},"application/vnd.nokia.n-gage.ac+xml":{source:`iana`,compressible:!0,extensions:[`ac`]},"application/vnd.nokia.n-gage.data":{source:`iana`,extensions:[`ngdat`]},"application/vnd.nokia.n-gage.symbian.install":{source:`iana`,extensions:[`n-gage`]},"application/vnd.nokia.ncd":{source:`iana`},"application/vnd.nokia.pcd+wbxml":{source:`iana`},"application/vnd.nokia.pcd+xml":{source:`iana`,compressible:!0},"application/vnd.nokia.radio-preset":{source:`iana`,extensions:[`rpst`]},"application/vnd.nokia.radio-presets":{source:`iana`,extensions:[`rpss`]},"application/vnd.novadigm.edm":{source:`iana`,extensions:[`edm`]},"application/vnd.novadigm.edx":{source:`iana`,extensions:[`edx`]},"application/vnd.novadigm.ext":{source:`iana`,extensions:[`ext`]},"application/vnd.ntt-local.content-share":{source:`iana`},"application/vnd.ntt-local.file-transfer":{source:`iana`},"application/vnd.ntt-local.ogw_remote-access":{source:`iana`},"application/vnd.ntt-local.sip-ta_remote":{source:`iana`},"application/vnd.ntt-local.sip-ta_tcp_stream":{source:`iana`},"application/vnd.oasis.opendocument.chart":{source:`iana`,extensions:[`odc`]},"application/vnd.oasis.opendocument.chart-template":{source:`iana`,extensions:[`otc`]},"application/vnd.oasis.opendocument.database":{source:`iana`,extensions:[`odb`]},"application/vnd.oasis.opendocument.formula":{source:`iana`,extensions:[`odf`]},"application/vnd.oasis.opendocument.formula-template":{source:`iana`,extensions:[`odft`]},"application/vnd.oasis.opendocument.graphics":{source:`iana`,compressible:!1,extensions:[`odg`]},"application/vnd.oasis.opendocument.graphics-template":{source:`iana`,extensions:[`otg`]},"application/vnd.oasis.opendocument.image":{source:`iana`,extensions:[`odi`]},"application/vnd.oasis.opendocument.image-template":{source:`iana`,extensions:[`oti`]},"application/vnd.oasis.opendocument.presentation":{source:`iana`,compressible:!1,extensions:[`odp`]},"application/vnd.oasis.opendocument.presentation-template":{source:`iana`,extensions:[`otp`]},"application/vnd.oasis.opendocument.spreadsheet":{source:`iana`,compressible:!1,extensions:[`ods`]},"application/vnd.oasis.opendocument.spreadsheet-template":{source:`iana`,extensions:[`ots`]},"application/vnd.oasis.opendocument.text":{source:`iana`,compressible:!1,extensions:[`odt`]},"application/vnd.oasis.opendocument.text-master":{source:`iana`,extensions:[`odm`]},"application/vnd.oasis.opendocument.text-template":{source:`iana`,extensions:[`ott`]},"application/vnd.oasis.opendocument.text-web":{source:`iana`,extensions:[`oth`]},"application/vnd.obn":{source:`iana`},"application/vnd.ocf+cbor":{source:`iana`},"application/vnd.oci.image.manifest.v1+json":{source:`iana`,compressible:!0},"application/vnd.oftn.l10n+json":{source:`iana`,compressible:!0},"application/vnd.oipf.contentaccessdownload+xml":{source:`iana`,compressible:!0},"application/vnd.oipf.contentaccessstreaming+xml":{source:`iana`,compressible:!0},"application/vnd.oipf.cspg-hexbinary":{source:`iana`},"application/vnd.oipf.dae.svg+xml":{source:`iana`,compressible:!0},"application/vnd.oipf.dae.xhtml+xml":{source:`iana`,compressible:!0},"application/vnd.oipf.mippvcontrolmessage+xml":{source:`iana`,compressible:!0},"application/vnd.oipf.pae.gem":{source:`iana`},"application/vnd.oipf.spdiscovery+xml":{source:`iana`,compressible:!0},"application/vnd.oipf.spdlist+xml":{source:`iana`,compressible:!0},"application/vnd.oipf.ueprofile+xml":{source:`iana`,compressible:!0},"application/vnd.oipf.userprofile+xml":{source:`iana`,compressible:!0},"application/vnd.olpc-sugar":{source:`iana`,extensions:[`xo`]},"application/vnd.oma-scws-config":{source:`iana`},"application/vnd.oma-scws-http-request":{source:`iana`},"application/vnd.oma-scws-http-response":{source:`iana`},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{source:`iana`,compressible:!0},"application/vnd.oma.bcast.drm-trigger+xml":{source:`iana`,compressible:!0},"application/vnd.oma.bcast.imd+xml":{source:`iana`,compressible:!0},"application/vnd.oma.bcast.ltkm":{source:`iana`},"application/vnd.oma.bcast.notification+xml":{source:`iana`,compressible:!0},"application/vnd.oma.bcast.provisioningtrigger":{source:`iana`},"application/vnd.oma.bcast.sgboot":{source:`iana`},"application/vnd.oma.bcast.sgdd+xml":{source:`iana`,compressible:!0},"application/vnd.oma.bcast.sgdu":{source:`iana`},"application/vnd.oma.bcast.simple-symbol-container":{source:`iana`},"application/vnd.oma.bcast.smartcard-trigger+xml":{source:`iana`,compressible:!0},"application/vnd.oma.bcast.sprov+xml":{source:`iana`,compressible:!0},"application/vnd.oma.bcast.stkm":{source:`iana`},"application/vnd.oma.cab-address-book+xml":{source:`iana`,compressible:!0},"application/vnd.oma.cab-feature-handler+xml":{source:`iana`,compressible:!0},"application/vnd.oma.cab-pcc+xml":{source:`iana`,compressible:!0},"application/vnd.oma.cab-subs-invite+xml":{source:`iana`,compressible:!0},"application/vnd.oma.cab-user-prefs+xml":{source:`iana`,compressible:!0},"application/vnd.oma.dcd":{source:`iana`},"application/vnd.oma.dcdc":{source:`iana`},"application/vnd.oma.dd2+xml":{source:`iana`,compressible:!0,extensions:[`dd2`]},"application/vnd.oma.drm.risd+xml":{source:`iana`,compressible:!0},"application/vnd.oma.group-usage-list+xml":{source:`iana`,compressible:!0},"application/vnd.oma.lwm2m+cbor":{source:`iana`},"application/vnd.oma.lwm2m+json":{source:`iana`,compressible:!0},"application/vnd.oma.lwm2m+tlv":{source:`iana`},"application/vnd.oma.pal+xml":{source:`iana`,compressible:!0},"application/vnd.oma.poc.detailed-progress-report+xml":{source:`iana`,compressible:!0},"application/vnd.oma.poc.final-report+xml":{source:`iana`,compressible:!0},"application/vnd.oma.poc.groups+xml":{source:`iana`,compressible:!0},"application/vnd.oma.poc.invocation-descriptor+xml":{source:`iana`,compressible:!0},"application/vnd.oma.poc.optimized-progress-report+xml":{source:`iana`,compressible:!0},"application/vnd.oma.push":{source:`iana`},"application/vnd.oma.scidm.messages+xml":{source:`iana`,compressible:!0},"application/vnd.oma.xcap-directory+xml":{source:`iana`,compressible:!0},"application/vnd.omads-email+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/vnd.omads-file+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/vnd.omads-folder+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/vnd.omaloc-supl-init":{source:`iana`},"application/vnd.onepager":{source:`iana`},"application/vnd.onepagertamp":{source:`iana`},"application/vnd.onepagertamx":{source:`iana`},"application/vnd.onepagertat":{source:`iana`},"application/vnd.onepagertatp":{source:`iana`},"application/vnd.onepagertatx":{source:`iana`},"application/vnd.openblox.game+xml":{source:`iana`,compressible:!0,extensions:[`obgx`]},"application/vnd.openblox.game-binary":{source:`iana`},"application/vnd.openeye.oeb":{source:`iana`},"application/vnd.openofficeorg.extension":{source:`apache`,extensions:[`oxt`]},"application/vnd.openstreetmap.data+xml":{source:`iana`,compressible:!0,extensions:[`osm`]},"application/vnd.opentimestamps.ots":{source:`iana`},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.drawing+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{source:`iana`,compressible:!1,extensions:[`pptx`]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slide":{source:`iana`,extensions:[`sldx`]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{source:`iana`,extensions:[`ppsx`]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.template":{source:`iana`,extensions:[`potx`]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{source:`iana`,compressible:!1,extensions:[`xlsx`]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{source:`iana`,extensions:[`xltx`]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.theme+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.vmldrawing":{source:`iana`},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{source:`iana`,compressible:!1,extensions:[`docx`]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{source:`iana`,extensions:[`dotx`]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-package.core-properties+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-package.relationships+xml":{source:`iana`,compressible:!0},"application/vnd.oracle.resource+json":{source:`iana`,compressible:!0},"application/vnd.orange.indata":{source:`iana`},"application/vnd.osa.netdeploy":{source:`iana`},"application/vnd.osgeo.mapguide.package":{source:`iana`,extensions:[`mgp`]},"application/vnd.osgi.bundle":{source:`iana`},"application/vnd.osgi.dp":{source:`iana`,extensions:[`dp`]},"application/vnd.osgi.subsystem":{source:`iana`,extensions:[`esa`]},"application/vnd.otps.ct-kip+xml":{source:`iana`,compressible:!0},"application/vnd.oxli.countgraph":{source:`iana`},"application/vnd.pagerduty+json":{source:`iana`,compressible:!0},"application/vnd.palm":{source:`iana`,extensions:[`pdb`,`pqa`,`oprc`]},"application/vnd.panoply":{source:`iana`},"application/vnd.paos.xml":{source:`iana`},"application/vnd.patentdive":{source:`iana`},"application/vnd.patientecommsdoc":{source:`iana`},"application/vnd.pawaafile":{source:`iana`,extensions:[`paw`]},"application/vnd.pcos":{source:`iana`},"application/vnd.pg.format":{source:`iana`,extensions:[`str`]},"application/vnd.pg.osasli":{source:`iana`,extensions:[`ei6`]},"application/vnd.piaccess.application-licence":{source:`iana`},"application/vnd.picsel":{source:`iana`,extensions:[`efif`]},"application/vnd.pmi.widget":{source:`iana`,extensions:[`wg`]},"application/vnd.poc.group-advertisement+xml":{source:`iana`,compressible:!0},"application/vnd.pocketlearn":{source:`iana`,extensions:[`plf`]},"application/vnd.powerbuilder6":{source:`iana`,extensions:[`pbd`]},"application/vnd.powerbuilder6-s":{source:`iana`},"application/vnd.powerbuilder7":{source:`iana`},"application/vnd.powerbuilder7-s":{source:`iana`},"application/vnd.powerbuilder75":{source:`iana`},"application/vnd.powerbuilder75-s":{source:`iana`},"application/vnd.preminet":{source:`iana`},"application/vnd.previewsystems.box":{source:`iana`,extensions:[`box`]},"application/vnd.proteus.magazine":{source:`iana`,extensions:[`mgz`]},"application/vnd.psfs":{source:`iana`},"application/vnd.publishare-delta-tree":{source:`iana`,extensions:[`qps`]},"application/vnd.pvi.ptid1":{source:`iana`,extensions:[`ptid`]},"application/vnd.pwg-multiplexed":{source:`iana`},"application/vnd.pwg-xhtml-print+xml":{source:`iana`,compressible:!0},"application/vnd.qualcomm.brew-app-res":{source:`iana`},"application/vnd.quarantainenet":{source:`iana`},"application/vnd.quark.quarkxpress":{source:`iana`,extensions:[`qxd`,`qxt`,`qwd`,`qwt`,`qxl`,`qxb`]},"application/vnd.quobject-quoxdocument":{source:`iana`},"application/vnd.radisys.moml+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-audit+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-audit-conf+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-audit-conn+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-audit-dialog+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-audit-stream+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-conf+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-dialog+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-dialog-base+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-dialog-fax-detect+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-dialog-group+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-dialog-speech+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-dialog-transform+xml":{source:`iana`,compressible:!0},"application/vnd.rainstor.data":{source:`iana`},"application/vnd.rapid":{source:`iana`},"application/vnd.rar":{source:`iana`,extensions:[`rar`]},"application/vnd.realvnc.bed":{source:`iana`,extensions:[`bed`]},"application/vnd.recordare.musicxml":{source:`iana`,extensions:[`mxl`]},"application/vnd.recordare.musicxml+xml":{source:`iana`,compressible:!0,extensions:[`musicxml`]},"application/vnd.renlearn.rlprint":{source:`iana`},"application/vnd.resilient.logic":{source:`iana`},"application/vnd.restful+json":{source:`iana`,compressible:!0},"application/vnd.rig.cryptonote":{source:`iana`,extensions:[`cryptonote`]},"application/vnd.rim.cod":{source:`apache`,extensions:[`cod`]},"application/vnd.rn-realmedia":{source:`apache`,extensions:[`rm`]},"application/vnd.rn-realmedia-vbr":{source:`apache`,extensions:[`rmvb`]},"application/vnd.route66.link66+xml":{source:`iana`,compressible:!0,extensions:[`link66`]},"application/vnd.rs-274x":{source:`iana`},"application/vnd.ruckus.download":{source:`iana`},"application/vnd.s3sms":{source:`iana`},"application/vnd.sailingtracker.track":{source:`iana`,extensions:[`st`]},"application/vnd.sar":{source:`iana`},"application/vnd.sbm.cid":{source:`iana`},"application/vnd.sbm.mid2":{source:`iana`},"application/vnd.scribus":{source:`iana`},"application/vnd.sealed.3df":{source:`iana`},"application/vnd.sealed.csf":{source:`iana`},"application/vnd.sealed.doc":{source:`iana`},"application/vnd.sealed.eml":{source:`iana`},"application/vnd.sealed.mht":{source:`iana`},"application/vnd.sealed.net":{source:`iana`},"application/vnd.sealed.ppt":{source:`iana`},"application/vnd.sealed.tiff":{source:`iana`},"application/vnd.sealed.xls":{source:`iana`},"application/vnd.sealedmedia.softseal.html":{source:`iana`},"application/vnd.sealedmedia.softseal.pdf":{source:`iana`},"application/vnd.seemail":{source:`iana`,extensions:[`see`]},"application/vnd.seis+json":{source:`iana`,compressible:!0},"application/vnd.sema":{source:`iana`,extensions:[`sema`]},"application/vnd.semd":{source:`iana`,extensions:[`semd`]},"application/vnd.semf":{source:`iana`,extensions:[`semf`]},"application/vnd.shade-save-file":{source:`iana`},"application/vnd.shana.informed.formdata":{source:`iana`,extensions:[`ifm`]},"application/vnd.shana.informed.formtemplate":{source:`iana`,extensions:[`itp`]},"application/vnd.shana.informed.interchange":{source:`iana`,extensions:[`iif`]},"application/vnd.shana.informed.package":{source:`iana`,extensions:[`ipk`]},"application/vnd.shootproof+json":{source:`iana`,compressible:!0},"application/vnd.shopkick+json":{source:`iana`,compressible:!0},"application/vnd.shp":{source:`iana`},"application/vnd.shx":{source:`iana`},"application/vnd.sigrok.session":{source:`iana`},"application/vnd.simtech-mindmapper":{source:`iana`,extensions:[`twd`,`twds`]},"application/vnd.siren+json":{source:`iana`,compressible:!0},"application/vnd.smaf":{source:`iana`,extensions:[`mmf`]},"application/vnd.smart.notebook":{source:`iana`},"application/vnd.smart.teacher":{source:`iana`,extensions:[`teacher`]},"application/vnd.snesdev-page-table":{source:`iana`},"application/vnd.software602.filler.form+xml":{source:`iana`,compressible:!0,extensions:[`fo`]},"application/vnd.software602.filler.form-xml-zip":{source:`iana`},"application/vnd.solent.sdkm+xml":{source:`iana`,compressible:!0,extensions:[`sdkm`,`sdkd`]},"application/vnd.spotfire.dxp":{source:`iana`,extensions:[`dxp`]},"application/vnd.spotfire.sfs":{source:`iana`,extensions:[`sfs`]},"application/vnd.sqlite3":{source:`iana`},"application/vnd.sss-cod":{source:`iana`},"application/vnd.sss-dtf":{source:`iana`},"application/vnd.sss-ntf":{source:`iana`},"application/vnd.stardivision.calc":{source:`apache`,extensions:[`sdc`]},"application/vnd.stardivision.draw":{source:`apache`,extensions:[`sda`]},"application/vnd.stardivision.impress":{source:`apache`,extensions:[`sdd`]},"application/vnd.stardivision.math":{source:`apache`,extensions:[`smf`]},"application/vnd.stardivision.writer":{source:`apache`,extensions:[`sdw`,`vor`]},"application/vnd.stardivision.writer-global":{source:`apache`,extensions:[`sgl`]},"application/vnd.stepmania.package":{source:`iana`,extensions:[`smzip`]},"application/vnd.stepmania.stepchart":{source:`iana`,extensions:[`sm`]},"application/vnd.street-stream":{source:`iana`},"application/vnd.sun.wadl+xml":{source:`iana`,compressible:!0,extensions:[`wadl`]},"application/vnd.sun.xml.calc":{source:`apache`,extensions:[`sxc`]},"application/vnd.sun.xml.calc.template":{source:`apache`,extensions:[`stc`]},"application/vnd.sun.xml.draw":{source:`apache`,extensions:[`sxd`]},"application/vnd.sun.xml.draw.template":{source:`apache`,extensions:[`std`]},"application/vnd.sun.xml.impress":{source:`apache`,extensions:[`sxi`]},"application/vnd.sun.xml.impress.template":{source:`apache`,extensions:[`sti`]},"application/vnd.sun.xml.math":{source:`apache`,extensions:[`sxm`]},"application/vnd.sun.xml.writer":{source:`apache`,extensions:[`sxw`]},"application/vnd.sun.xml.writer.global":{source:`apache`,extensions:[`sxg`]},"application/vnd.sun.xml.writer.template":{source:`apache`,extensions:[`stw`]},"application/vnd.sus-calendar":{source:`iana`,extensions:[`sus`,`susp`]},"application/vnd.svd":{source:`iana`,extensions:[`svd`]},"application/vnd.swiftview-ics":{source:`iana`},"application/vnd.sycle+xml":{source:`iana`,compressible:!0},"application/vnd.syft+json":{source:`iana`,compressible:!0},"application/vnd.symbian.install":{source:`apache`,extensions:[`sis`,`sisx`]},"application/vnd.syncml+xml":{source:`iana`,charset:`UTF-8`,compressible:!0,extensions:[`xsm`]},"application/vnd.syncml.dm+wbxml":{source:`iana`,charset:`UTF-8`,extensions:[`bdm`]},"application/vnd.syncml.dm+xml":{source:`iana`,charset:`UTF-8`,compressible:!0,extensions:[`xdm`]},"application/vnd.syncml.dm.notification":{source:`iana`},"application/vnd.syncml.dmddf+wbxml":{source:`iana`},"application/vnd.syncml.dmddf+xml":{source:`iana`,charset:`UTF-8`,compressible:!0,extensions:[`ddf`]},"application/vnd.syncml.dmtnds+wbxml":{source:`iana`},"application/vnd.syncml.dmtnds+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/vnd.syncml.ds.notification":{source:`iana`},"application/vnd.tableschema+json":{source:`iana`,compressible:!0},"application/vnd.tao.intent-module-archive":{source:`iana`,extensions:[`tao`]},"application/vnd.tcpdump.pcap":{source:`iana`,extensions:[`pcap`,`cap`,`dmp`]},"application/vnd.think-cell.ppttc+json":{source:`iana`,compressible:!0},"application/vnd.tmd.mediaflex.api+xml":{source:`iana`,compressible:!0},"application/vnd.tml":{source:`iana`},"application/vnd.tmobile-livetv":{source:`iana`,extensions:[`tmo`]},"application/vnd.tri.onesource":{source:`iana`},"application/vnd.trid.tpt":{source:`iana`,extensions:[`tpt`]},"application/vnd.triscape.mxs":{source:`iana`,extensions:[`mxs`]},"application/vnd.trueapp":{source:`iana`,extensions:[`tra`]},"application/vnd.truedoc":{source:`iana`},"application/vnd.ubisoft.webplayer":{source:`iana`},"application/vnd.ufdl":{source:`iana`,extensions:[`ufd`,`ufdl`]},"application/vnd.uiq.theme":{source:`iana`,extensions:[`utz`]},"application/vnd.umajin":{source:`iana`,extensions:[`umj`]},"application/vnd.unity":{source:`iana`,extensions:[`unityweb`]},"application/vnd.uoml+xml":{source:`iana`,compressible:!0,extensions:[`uoml`]},"application/vnd.uplanet.alert":{source:`iana`},"application/vnd.uplanet.alert-wbxml":{source:`iana`},"application/vnd.uplanet.bearer-choice":{source:`iana`},"application/vnd.uplanet.bearer-choice-wbxml":{source:`iana`},"application/vnd.uplanet.cacheop":{source:`iana`},"application/vnd.uplanet.cacheop-wbxml":{source:`iana`},"application/vnd.uplanet.channel":{source:`iana`},"application/vnd.uplanet.channel-wbxml":{source:`iana`},"application/vnd.uplanet.list":{source:`iana`},"application/vnd.uplanet.list-wbxml":{source:`iana`},"application/vnd.uplanet.listcmd":{source:`iana`},"application/vnd.uplanet.listcmd-wbxml":{source:`iana`},"application/vnd.uplanet.signal":{source:`iana`},"application/vnd.uri-map":{source:`iana`},"application/vnd.valve.source.material":{source:`iana`},"application/vnd.vcx":{source:`iana`,extensions:[`vcx`]},"application/vnd.vd-study":{source:`iana`},"application/vnd.vectorworks":{source:`iana`},"application/vnd.vel+json":{source:`iana`,compressible:!0},"application/vnd.verimatrix.vcas":{source:`iana`},"application/vnd.veritone.aion+json":{source:`iana`,compressible:!0},"application/vnd.veryant.thin":{source:`iana`},"application/vnd.ves.encrypted":{source:`iana`},"application/vnd.vidsoft.vidconference":{source:`iana`},"application/vnd.visio":{source:`iana`,extensions:[`vsd`,`vst`,`vss`,`vsw`]},"application/vnd.visionary":{source:`iana`,extensions:[`vis`]},"application/vnd.vividence.scriptfile":{source:`iana`},"application/vnd.vsf":{source:`iana`,extensions:[`vsf`]},"application/vnd.wap.sic":{source:`iana`},"application/vnd.wap.slc":{source:`iana`},"application/vnd.wap.wbxml":{source:`iana`,charset:`UTF-8`,extensions:[`wbxml`]},"application/vnd.wap.wmlc":{source:`iana`,extensions:[`wmlc`]},"application/vnd.wap.wmlscriptc":{source:`iana`,extensions:[`wmlsc`]},"application/vnd.webturbo":{source:`iana`,extensions:[`wtb`]},"application/vnd.wfa.dpp":{source:`iana`},"application/vnd.wfa.p2p":{source:`iana`},"application/vnd.wfa.wsc":{source:`iana`},"application/vnd.windows.devicepairing":{source:`iana`},"application/vnd.wmc":{source:`iana`},"application/vnd.wmf.bootstrap":{source:`iana`},"application/vnd.wolfram.mathematica":{source:`iana`},"application/vnd.wolfram.mathematica.package":{source:`iana`},"application/vnd.wolfram.player":{source:`iana`,extensions:[`nbp`]},"application/vnd.wordperfect":{source:`iana`,extensions:[`wpd`]},"application/vnd.wqd":{source:`iana`,extensions:[`wqd`]},"application/vnd.wrq-hp3000-labelled":{source:`iana`},"application/vnd.wt.stf":{source:`iana`,extensions:[`stf`]},"application/vnd.wv.csp+wbxml":{source:`iana`},"application/vnd.wv.csp+xml":{source:`iana`,compressible:!0},"application/vnd.wv.ssp+xml":{source:`iana`,compressible:!0},"application/vnd.xacml+json":{source:`iana`,compressible:!0},"application/vnd.xara":{source:`iana`,extensions:[`xar`]},"application/vnd.xfdl":{source:`iana`,extensions:[`xfdl`]},"application/vnd.xfdl.webform":{source:`iana`},"application/vnd.xmi+xml":{source:`iana`,compressible:!0},"application/vnd.xmpie.cpkg":{source:`iana`},"application/vnd.xmpie.dpkg":{source:`iana`},"application/vnd.xmpie.plan":{source:`iana`},"application/vnd.xmpie.ppkg":{source:`iana`},"application/vnd.xmpie.xlim":{source:`iana`},"application/vnd.yamaha.hv-dic":{source:`iana`,extensions:[`hvd`]},"application/vnd.yamaha.hv-script":{source:`iana`,extensions:[`hvs`]},"application/vnd.yamaha.hv-voice":{source:`iana`,extensions:[`hvp`]},"application/vnd.yamaha.openscoreformat":{source:`iana`,extensions:[`osf`]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{source:`iana`,compressible:!0,extensions:[`osfpvg`]},"application/vnd.yamaha.remote-setup":{source:`iana`},"application/vnd.yamaha.smaf-audio":{source:`iana`,extensions:[`saf`]},"application/vnd.yamaha.smaf-phrase":{source:`iana`,extensions:[`spf`]},"application/vnd.yamaha.through-ngn":{source:`iana`},"application/vnd.yamaha.tunnel-udpencap":{source:`iana`},"application/vnd.yaoweme":{source:`iana`},"application/vnd.yellowriver-custom-menu":{source:`iana`,extensions:[`cmp`]},"application/vnd.youtube.yt":{source:`iana`},"application/vnd.zul":{source:`iana`,extensions:[`zir`,`zirz`]},"application/vnd.zzazz.deck+xml":{source:`iana`,compressible:!0,extensions:[`zaz`]},"application/voicexml+xml":{source:`iana`,compressible:!0,extensions:[`vxml`]},"application/voucher-cms+json":{source:`iana`,compressible:!0},"application/vq-rtcpxr":{source:`iana`},"application/wasm":{source:`iana`,compressible:!0,extensions:[`wasm`]},"application/watcherinfo+xml":{source:`iana`,compressible:!0,extensions:[`wif`]},"application/webpush-options+json":{source:`iana`,compressible:!0},"application/whoispp-query":{source:`iana`},"application/whoispp-response":{source:`iana`},"application/widget":{source:`iana`,extensions:[`wgt`]},"application/winhlp":{source:`apache`,extensions:[`hlp`]},"application/wita":{source:`iana`},"application/wordperfect5.1":{source:`iana`},"application/wsdl+xml":{source:`iana`,compressible:!0,extensions:[`wsdl`]},"application/wspolicy+xml":{source:`iana`,compressible:!0,extensions:[`wspolicy`]},"application/x-7z-compressed":{source:`apache`,compressible:!1,extensions:[`7z`]},"application/x-abiword":{source:`apache`,extensions:[`abw`]},"application/x-ace-compressed":{source:`apache`,extensions:[`ace`]},"application/x-amf":{source:`apache`},"application/x-apple-diskimage":{source:`apache`,extensions:[`dmg`]},"application/x-arj":{compressible:!1,extensions:[`arj`]},"application/x-authorware-bin":{source:`apache`,extensions:[`aab`,`x32`,`u32`,`vox`]},"application/x-authorware-map":{source:`apache`,extensions:[`aam`]},"application/x-authorware-seg":{source:`apache`,extensions:[`aas`]},"application/x-bcpio":{source:`apache`,extensions:[`bcpio`]},"application/x-bdoc":{compressible:!1,extensions:[`bdoc`]},"application/x-bittorrent":{source:`apache`,extensions:[`torrent`]},"application/x-blorb":{source:`apache`,extensions:[`blb`,`blorb`]},"application/x-bzip":{source:`apache`,compressible:!1,extensions:[`bz`]},"application/x-bzip2":{source:`apache`,compressible:!1,extensions:[`bz2`,`boz`]},"application/x-cbr":{source:`apache`,extensions:[`cbr`,`cba`,`cbt`,`cbz`,`cb7`]},"application/x-cdlink":{source:`apache`,extensions:[`vcd`]},"application/x-cfs-compressed":{source:`apache`,extensions:[`cfs`]},"application/x-chat":{source:`apache`,extensions:[`chat`]},"application/x-chess-pgn":{source:`apache`,extensions:[`pgn`]},"application/x-chrome-extension":{extensions:[`crx`]},"application/x-cocoa":{source:`nginx`,extensions:[`cco`]},"application/x-compress":{source:`apache`},"application/x-conference":{source:`apache`,extensions:[`nsc`]},"application/x-cpio":{source:`apache`,extensions:[`cpio`]},"application/x-csh":{source:`apache`,extensions:[`csh`]},"application/x-deb":{compressible:!1},"application/x-debian-package":{source:`apache`,extensions:[`deb`,`udeb`]},"application/x-dgc-compressed":{source:`apache`,extensions:[`dgc`]},"application/x-director":{source:`apache`,extensions:[`dir`,`dcr`,`dxr`,`cst`,`cct`,`cxt`,`w3d`,`fgd`,`swa`]},"application/x-doom":{source:`apache`,extensions:[`wad`]},"application/x-dtbncx+xml":{source:`apache`,compressible:!0,extensions:[`ncx`]},"application/x-dtbook+xml":{source:`apache`,compressible:!0,extensions:[`dtb`]},"application/x-dtbresource+xml":{source:`apache`,compressible:!0,extensions:[`res`]},"application/x-dvi":{source:`apache`,compressible:!1,extensions:[`dvi`]},"application/x-envoy":{source:`apache`,extensions:[`evy`]},"application/x-eva":{source:`apache`,extensions:[`eva`]},"application/x-font-bdf":{source:`apache`,extensions:[`bdf`]},"application/x-font-dos":{source:`apache`},"application/x-font-framemaker":{source:`apache`},"application/x-font-ghostscript":{source:`apache`,extensions:[`gsf`]},"application/x-font-libgrx":{source:`apache`},"application/x-font-linux-psf":{source:`apache`,extensions:[`psf`]},"application/x-font-pcf":{source:`apache`,extensions:[`pcf`]},"application/x-font-snf":{source:`apache`,extensions:[`snf`]},"application/x-font-speedo":{source:`apache`},"application/x-font-sunos-news":{source:`apache`},"application/x-font-type1":{source:`apache`,extensions:[`pfa`,`pfb`,`pfm`,`afm`]},"application/x-font-vfont":{source:`apache`},"application/x-freearc":{source:`apache`,extensions:[`arc`]},"application/x-futuresplash":{source:`apache`,extensions:[`spl`]},"application/x-gca-compressed":{source:`apache`,extensions:[`gca`]},"application/x-glulx":{source:`apache`,extensions:[`ulx`]},"application/x-gnumeric":{source:`apache`,extensions:[`gnumeric`]},"application/x-gramps-xml":{source:`apache`,extensions:[`gramps`]},"application/x-gtar":{source:`apache`,extensions:[`gtar`]},"application/x-gzip":{source:`apache`},"application/x-hdf":{source:`apache`,extensions:[`hdf`]},"application/x-httpd-php":{compressible:!0,extensions:[`php`]},"application/x-install-instructions":{source:`apache`,extensions:[`install`]},"application/x-iso9660-image":{source:`apache`,extensions:[`iso`]},"application/x-iwork-keynote-sffkey":{extensions:[`key`]},"application/x-iwork-numbers-sffnumbers":{extensions:[`numbers`]},"application/x-iwork-pages-sffpages":{extensions:[`pages`]},"application/x-java-archive-diff":{source:`nginx`,extensions:[`jardiff`]},"application/x-java-jnlp-file":{source:`apache`,compressible:!1,extensions:[`jnlp`]},"application/x-javascript":{compressible:!0},"application/x-keepass2":{extensions:[`kdbx`]},"application/x-latex":{source:`apache`,compressible:!1,extensions:[`latex`]},"application/x-lua-bytecode":{extensions:[`luac`]},"application/x-lzh-compressed":{source:`apache`,extensions:[`lzh`,`lha`]},"application/x-makeself":{source:`nginx`,extensions:[`run`]},"application/x-mie":{source:`apache`,extensions:[`mie`]},"application/x-mobipocket-ebook":{source:`apache`,extensions:[`prc`,`mobi`]},"application/x-mpegurl":{compressible:!1},"application/x-ms-application":{source:`apache`,extensions:[`application`]},"application/x-ms-shortcut":{source:`apache`,extensions:[`lnk`]},"application/x-ms-wmd":{source:`apache`,extensions:[`wmd`]},"application/x-ms-wmz":{source:`apache`,extensions:[`wmz`]},"application/x-ms-xbap":{source:`apache`,extensions:[`xbap`]},"application/x-msaccess":{source:`apache`,extensions:[`mdb`]},"application/x-msbinder":{source:`apache`,extensions:[`obd`]},"application/x-mscardfile":{source:`apache`,extensions:[`crd`]},"application/x-msclip":{source:`apache`,extensions:[`clp`]},"application/x-msdos-program":{extensions:[`exe`]},"application/x-msdownload":{source:`apache`,extensions:[`exe`,`dll`,`com`,`bat`,`msi`]},"application/x-msmediaview":{source:`apache`,extensions:[`mvb`,`m13`,`m14`]},"application/x-msmetafile":{source:`apache`,extensions:[`wmf`,`wmz`,`emf`,`emz`]},"application/x-msmoney":{source:`apache`,extensions:[`mny`]},"application/x-mspublisher":{source:`apache`,extensions:[`pub`]},"application/x-msschedule":{source:`apache`,extensions:[`scd`]},"application/x-msterminal":{source:`apache`,extensions:[`trm`]},"application/x-mswrite":{source:`apache`,extensions:[`wri`]},"application/x-netcdf":{source:`apache`,extensions:[`nc`,`cdf`]},"application/x-ns-proxy-autoconfig":{compressible:!0,extensions:[`pac`]},"application/x-nzb":{source:`apache`,extensions:[`nzb`]},"application/x-perl":{source:`nginx`,extensions:[`pl`,`pm`]},"application/x-pilot":{source:`nginx`,extensions:[`prc`,`pdb`]},"application/x-pkcs12":{source:`apache`,compressible:!1,extensions:[`p12`,`pfx`]},"application/x-pkcs7-certificates":{source:`apache`,extensions:[`p7b`,`spc`]},"application/x-pkcs7-certreqresp":{source:`apache`,extensions:[`p7r`]},"application/x-pki-message":{source:`iana`},"application/x-rar-compressed":{source:`apache`,compressible:!1,extensions:[`rar`]},"application/x-redhat-package-manager":{source:`nginx`,extensions:[`rpm`]},"application/x-research-info-systems":{source:`apache`,extensions:[`ris`]},"application/x-sea":{source:`nginx`,extensions:[`sea`]},"application/x-sh":{source:`apache`,compressible:!0,extensions:[`sh`]},"application/x-shar":{source:`apache`,extensions:[`shar`]},"application/x-shockwave-flash":{source:`apache`,compressible:!1,extensions:[`swf`]},"application/x-silverlight-app":{source:`apache`,extensions:[`xap`]},"application/x-sql":{source:`apache`,extensions:[`sql`]},"application/x-stuffit":{source:`apache`,compressible:!1,extensions:[`sit`]},"application/x-stuffitx":{source:`apache`,extensions:[`sitx`]},"application/x-subrip":{source:`apache`,extensions:[`srt`]},"application/x-sv4cpio":{source:`apache`,extensions:[`sv4cpio`]},"application/x-sv4crc":{source:`apache`,extensions:[`sv4crc`]},"application/x-t3vm-image":{source:`apache`,extensions:[`t3`]},"application/x-tads":{source:`apache`,extensions:[`gam`]},"application/x-tar":{source:`apache`,compressible:!0,extensions:[`tar`]},"application/x-tcl":{source:`apache`,extensions:[`tcl`,`tk`]},"application/x-tex":{source:`apache`,extensions:[`tex`]},"application/x-tex-tfm":{source:`apache`,extensions:[`tfm`]},"application/x-texinfo":{source:`apache`,extensions:[`texinfo`,`texi`]},"application/x-tgif":{source:`apache`,extensions:[`obj`]},"application/x-ustar":{source:`apache`,extensions:[`ustar`]},"application/x-virtualbox-hdd":{compressible:!0,extensions:[`hdd`]},"application/x-virtualbox-ova":{compressible:!0,extensions:[`ova`]},"application/x-virtualbox-ovf":{compressible:!0,extensions:[`ovf`]},"application/x-virtualbox-vbox":{compressible:!0,extensions:[`vbox`]},"application/x-virtualbox-vbox-extpack":{compressible:!1,extensions:[`vbox-extpack`]},"application/x-virtualbox-vdi":{compressible:!0,extensions:[`vdi`]},"application/x-virtualbox-vhd":{compressible:!0,extensions:[`vhd`]},"application/x-virtualbox-vmdk":{compressible:!0,extensions:[`vmdk`]},"application/x-wais-source":{source:`apache`,extensions:[`src`]},"application/x-web-app-manifest+json":{compressible:!0,extensions:[`webapp`]},"application/x-www-form-urlencoded":{source:`iana`,compressible:!0},"application/x-x509-ca-cert":{source:`iana`,extensions:[`der`,`crt`,`pem`]},"application/x-x509-ca-ra-cert":{source:`iana`},"application/x-x509-next-ca-cert":{source:`iana`},"application/x-xfig":{source:`apache`,extensions:[`fig`]},"application/x-xliff+xml":{source:`apache`,compressible:!0,extensions:[`xlf`]},"application/x-xpinstall":{source:`apache`,compressible:!1,extensions:[`xpi`]},"application/x-xz":{source:`apache`,extensions:[`xz`]},"application/x-zmachine":{source:`apache`,extensions:[`z1`,`z2`,`z3`,`z4`,`z5`,`z6`,`z7`,`z8`]},"application/x400-bp":{source:`iana`},"application/xacml+xml":{source:`iana`,compressible:!0},"application/xaml+xml":{source:`apache`,compressible:!0,extensions:[`xaml`]},"application/xcap-att+xml":{source:`iana`,compressible:!0,extensions:[`xav`]},"application/xcap-caps+xml":{source:`iana`,compressible:!0,extensions:[`xca`]},"application/xcap-diff+xml":{source:`iana`,compressible:!0,extensions:[`xdf`]},"application/xcap-el+xml":{source:`iana`,compressible:!0,extensions:[`xel`]},"application/xcap-error+xml":{source:`iana`,compressible:!0},"application/xcap-ns+xml":{source:`iana`,compressible:!0,extensions:[`xns`]},"application/xcon-conference-info+xml":{source:`iana`,compressible:!0},"application/xcon-conference-info-diff+xml":{source:`iana`,compressible:!0},"application/xenc+xml":{source:`iana`,compressible:!0,extensions:[`xenc`]},"application/xhtml+xml":{source:`iana`,compressible:!0,extensions:[`xhtml`,`xht`]},"application/xhtml-voice+xml":{source:`apache`,compressible:!0},"application/xliff+xml":{source:`iana`,compressible:!0,extensions:[`xlf`]},"application/xml":{source:`iana`,compressible:!0,extensions:[`xml`,`xsl`,`xsd`,`rng`]},"application/xml-dtd":{source:`iana`,compressible:!0,extensions:[`dtd`]},"application/xml-external-parsed-entity":{source:`iana`},"application/xml-patch+xml":{source:`iana`,compressible:!0},"application/xmpp+xml":{source:`iana`,compressible:!0},"application/xop+xml":{source:`iana`,compressible:!0,extensions:[`xop`]},"application/xproc+xml":{source:`apache`,compressible:!0,extensions:[`xpl`]},"application/xslt+xml":{source:`iana`,compressible:!0,extensions:[`xsl`,`xslt`]},"application/xspf+xml":{source:`apache`,compressible:!0,extensions:[`xspf`]},"application/xv+xml":{source:`iana`,compressible:!0,extensions:[`mxml`,`xhvml`,`xvml`,`xvm`]},"application/yang":{source:`iana`,extensions:[`yang`]},"application/yang-data+json":{source:`iana`,compressible:!0},"application/yang-data+xml":{source:`iana`,compressible:!0},"application/yang-patch+json":{source:`iana`,compressible:!0},"application/yang-patch+xml":{source:`iana`,compressible:!0},"application/yin+xml":{source:`iana`,compressible:!0,extensions:[`yin`]},"application/zip":{source:`iana`,compressible:!1,extensions:[`zip`]},"application/zlib":{source:`iana`},"application/zstd":{source:`iana`},"audio/1d-interleaved-parityfec":{source:`iana`},"audio/32kadpcm":{source:`iana`},"audio/3gpp":{source:`iana`,compressible:!1,extensions:[`3gpp`]},"audio/3gpp2":{source:`iana`},"audio/aac":{source:`iana`},"audio/ac3":{source:`iana`},"audio/adpcm":{source:`apache`,extensions:[`adp`]},"audio/amr":{source:`iana`,extensions:[`amr`]},"audio/amr-wb":{source:`iana`},"audio/amr-wb+":{source:`iana`},"audio/aptx":{source:`iana`},"audio/asc":{source:`iana`},"audio/atrac-advanced-lossless":{source:`iana`},"audio/atrac-x":{source:`iana`},"audio/atrac3":{source:`iana`},"audio/basic":{source:`iana`,compressible:!1,extensions:[`au`,`snd`]},"audio/bv16":{source:`iana`},"audio/bv32":{source:`iana`},"audio/clearmode":{source:`iana`},"audio/cn":{source:`iana`},"audio/dat12":{source:`iana`},"audio/dls":{source:`iana`},"audio/dsr-es201108":{source:`iana`},"audio/dsr-es202050":{source:`iana`},"audio/dsr-es202211":{source:`iana`},"audio/dsr-es202212":{source:`iana`},"audio/dv":{source:`iana`},"audio/dvi4":{source:`iana`},"audio/eac3":{source:`iana`},"audio/encaprtp":{source:`iana`},"audio/evrc":{source:`iana`},"audio/evrc-qcp":{source:`iana`},"audio/evrc0":{source:`iana`},"audio/evrc1":{source:`iana`},"audio/evrcb":{source:`iana`},"audio/evrcb0":{source:`iana`},"audio/evrcb1":{source:`iana`},"audio/evrcnw":{source:`iana`},"audio/evrcnw0":{source:`iana`},"audio/evrcnw1":{source:`iana`},"audio/evrcwb":{source:`iana`},"audio/evrcwb0":{source:`iana`},"audio/evrcwb1":{source:`iana`},"audio/evs":{source:`iana`},"audio/flexfec":{source:`iana`},"audio/fwdred":{source:`iana`},"audio/g711-0":{source:`iana`},"audio/g719":{source:`iana`},"audio/g722":{source:`iana`},"audio/g7221":{source:`iana`},"audio/g723":{source:`iana`},"audio/g726-16":{source:`iana`},"audio/g726-24":{source:`iana`},"audio/g726-32":{source:`iana`},"audio/g726-40":{source:`iana`},"audio/g728":{source:`iana`},"audio/g729":{source:`iana`},"audio/g7291":{source:`iana`},"audio/g729d":{source:`iana`},"audio/g729e":{source:`iana`},"audio/gsm":{source:`iana`},"audio/gsm-efr":{source:`iana`},"audio/gsm-hr-08":{source:`iana`},"audio/ilbc":{source:`iana`},"audio/ip-mr_v2.5":{source:`iana`},"audio/isac":{source:`apache`},"audio/l16":{source:`iana`},"audio/l20":{source:`iana`},"audio/l24":{source:`iana`,compressible:!1},"audio/l8":{source:`iana`},"audio/lpc":{source:`iana`},"audio/melp":{source:`iana`},"audio/melp1200":{source:`iana`},"audio/melp2400":{source:`iana`},"audio/melp600":{source:`iana`},"audio/mhas":{source:`iana`},"audio/midi":{source:`apache`,extensions:[`mid`,`midi`,`kar`,`rmi`]},"audio/mobile-xmf":{source:`iana`,extensions:[`mxmf`]},"audio/mp3":{compressible:!1,extensions:[`mp3`]},"audio/mp4":{source:`iana`,compressible:!1,extensions:[`m4a`,`mp4a`]},"audio/mp4a-latm":{source:`iana`},"audio/mpa":{source:`iana`},"audio/mpa-robust":{source:`iana`},"audio/mpeg":{source:`iana`,compressible:!1,extensions:[`mpga`,`mp2`,`mp2a`,`mp3`,`m2a`,`m3a`]},"audio/mpeg4-generic":{source:`iana`},"audio/musepack":{source:`apache`},"audio/ogg":{source:`iana`,compressible:!1,extensions:[`oga`,`ogg`,`spx`,`opus`]},"audio/opus":{source:`iana`},"audio/parityfec":{source:`iana`},"audio/pcma":{source:`iana`},"audio/pcma-wb":{source:`iana`},"audio/pcmu":{source:`iana`},"audio/pcmu-wb":{source:`iana`},"audio/prs.sid":{source:`iana`},"audio/qcelp":{source:`iana`},"audio/raptorfec":{source:`iana`},"audio/red":{source:`iana`},"audio/rtp-enc-aescm128":{source:`iana`},"audio/rtp-midi":{source:`iana`},"audio/rtploopback":{source:`iana`},"audio/rtx":{source:`iana`},"audio/s3m":{source:`apache`,extensions:[`s3m`]},"audio/scip":{source:`iana`},"audio/silk":{source:`apache`,extensions:[`sil`]},"audio/smv":{source:`iana`},"audio/smv-qcp":{source:`iana`},"audio/smv0":{source:`iana`},"audio/sofa":{source:`iana`},"audio/sp-midi":{source:`iana`},"audio/speex":{source:`iana`},"audio/t140c":{source:`iana`},"audio/t38":{source:`iana`},"audio/telephone-event":{source:`iana`},"audio/tetra_acelp":{source:`iana`},"audio/tetra_acelp_bb":{source:`iana`},"audio/tone":{source:`iana`},"audio/tsvcis":{source:`iana`},"audio/uemclip":{source:`iana`},"audio/ulpfec":{source:`iana`},"audio/usac":{source:`iana`},"audio/vdvi":{source:`iana`},"audio/vmr-wb":{source:`iana`},"audio/vnd.3gpp.iufp":{source:`iana`},"audio/vnd.4sb":{source:`iana`},"audio/vnd.audiokoz":{source:`iana`},"audio/vnd.celp":{source:`iana`},"audio/vnd.cisco.nse":{source:`iana`},"audio/vnd.cmles.radio-events":{source:`iana`},"audio/vnd.cns.anp1":{source:`iana`},"audio/vnd.cns.inf1":{source:`iana`},"audio/vnd.dece.audio":{source:`iana`,extensions:[`uva`,`uvva`]},"audio/vnd.digital-winds":{source:`iana`,extensions:[`eol`]},"audio/vnd.dlna.adts":{source:`iana`},"audio/vnd.dolby.heaac.1":{source:`iana`},"audio/vnd.dolby.heaac.2":{source:`iana`},"audio/vnd.dolby.mlp":{source:`iana`},"audio/vnd.dolby.mps":{source:`iana`},"audio/vnd.dolby.pl2":{source:`iana`},"audio/vnd.dolby.pl2x":{source:`iana`},"audio/vnd.dolby.pl2z":{source:`iana`},"audio/vnd.dolby.pulse.1":{source:`iana`},"audio/vnd.dra":{source:`iana`,extensions:[`dra`]},"audio/vnd.dts":{source:`iana`,extensions:[`dts`]},"audio/vnd.dts.hd":{source:`iana`,extensions:[`dtshd`]},"audio/vnd.dts.uhd":{source:`iana`},"audio/vnd.dvb.file":{source:`iana`},"audio/vnd.everad.plj":{source:`iana`},"audio/vnd.hns.audio":{source:`iana`},"audio/vnd.lucent.voice":{source:`iana`,extensions:[`lvp`]},"audio/vnd.ms-playready.media.pya":{source:`iana`,extensions:[`pya`]},"audio/vnd.nokia.mobile-xmf":{source:`iana`},"audio/vnd.nortel.vbk":{source:`iana`},"audio/vnd.nuera.ecelp4800":{source:`iana`,extensions:[`ecelp4800`]},"audio/vnd.nuera.ecelp7470":{source:`iana`,extensions:[`ecelp7470`]},"audio/vnd.nuera.ecelp9600":{source:`iana`,extensions:[`ecelp9600`]},"audio/vnd.octel.sbc":{source:`iana`},"audio/vnd.presonus.multitrack":{source:`iana`},"audio/vnd.qcelp":{source:`iana`},"audio/vnd.rhetorex.32kadpcm":{source:`iana`},"audio/vnd.rip":{source:`iana`,extensions:[`rip`]},"audio/vnd.rn-realaudio":{compressible:!1},"audio/vnd.sealedmedia.softseal.mpeg":{source:`iana`},"audio/vnd.vmx.cvsd":{source:`iana`},"audio/vnd.wave":{compressible:!1},"audio/vorbis":{source:`iana`,compressible:!1},"audio/vorbis-config":{source:`iana`},"audio/wav":{compressible:!1,extensions:[`wav`]},"audio/wave":{compressible:!1,extensions:[`wav`]},"audio/webm":{source:`apache`,compressible:!1,extensions:[`weba`]},"audio/x-aac":{source:`apache`,compressible:!1,extensions:[`aac`]},"audio/x-aiff":{source:`apache`,extensions:[`aif`,`aiff`,`aifc`]},"audio/x-caf":{source:`apache`,compressible:!1,extensions:[`caf`]},"audio/x-flac":{source:`apache`,extensions:[`flac`]},"audio/x-m4a":{source:`nginx`,extensions:[`m4a`]},"audio/x-matroska":{source:`apache`,extensions:[`mka`]},"audio/x-mpegurl":{source:`apache`,extensions:[`m3u`]},"audio/x-ms-wax":{source:`apache`,extensions:[`wax`]},"audio/x-ms-wma":{source:`apache`,extensions:[`wma`]},"audio/x-pn-realaudio":{source:`apache`,extensions:[`ram`,`ra`]},"audio/x-pn-realaudio-plugin":{source:`apache`,extensions:[`rmp`]},"audio/x-realaudio":{source:`nginx`,extensions:[`ra`]},"audio/x-tta":{source:`apache`},"audio/x-wav":{source:`apache`,extensions:[`wav`]},"audio/xm":{source:`apache`,extensions:[`xm`]},"chemical/x-cdx":{source:`apache`,extensions:[`cdx`]},"chemical/x-cif":{source:`apache`,extensions:[`cif`]},"chemical/x-cmdf":{source:`apache`,extensions:[`cmdf`]},"chemical/x-cml":{source:`apache`,extensions:[`cml`]},"chemical/x-csml":{source:`apache`,extensions:[`csml`]},"chemical/x-pdb":{source:`apache`},"chemical/x-xyz":{source:`apache`,extensions:[`xyz`]},"font/collection":{source:`iana`,extensions:[`ttc`]},"font/otf":{source:`iana`,compressible:!0,extensions:[`otf`]},"font/sfnt":{source:`iana`},"font/ttf":{source:`iana`,compressible:!0,extensions:[`ttf`]},"font/woff":{source:`iana`,extensions:[`woff`]},"font/woff2":{source:`iana`,extensions:[`woff2`]},"image/aces":{source:`iana`,extensions:[`exr`]},"image/apng":{compressible:!1,extensions:[`apng`]},"image/avci":{source:`iana`,extensions:[`avci`]},"image/avcs":{source:`iana`,extensions:[`avcs`]},"image/avif":{source:`iana`,compressible:!1,extensions:[`avif`]},"image/bmp":{source:`iana`,compressible:!0,extensions:[`bmp`]},"image/cgm":{source:`iana`,extensions:[`cgm`]},"image/dicom-rle":{source:`iana`,extensions:[`drle`]},"image/emf":{source:`iana`,extensions:[`emf`]},"image/fits":{source:`iana`,extensions:[`fits`]},"image/g3fax":{source:`iana`,extensions:[`g3`]},"image/gif":{source:`iana`,compressible:!1,extensions:[`gif`]},"image/heic":{source:`iana`,extensions:[`heic`]},"image/heic-sequence":{source:`iana`,extensions:[`heics`]},"image/heif":{source:`iana`,extensions:[`heif`]},"image/heif-sequence":{source:`iana`,extensions:[`heifs`]},"image/hej2k":{source:`iana`,extensions:[`hej2`]},"image/hsj2":{source:`iana`,extensions:[`hsj2`]},"image/ief":{source:`iana`,extensions:[`ief`]},"image/jls":{source:`iana`,extensions:[`jls`]},"image/jp2":{source:`iana`,compressible:!1,extensions:[`jp2`,`jpg2`]},"image/jpeg":{source:`iana`,compressible:!1,extensions:[`jpeg`,`jpg`,`jpe`]},"image/jph":{source:`iana`,extensions:[`jph`]},"image/jphc":{source:`iana`,extensions:[`jhc`]},"image/jpm":{source:`iana`,compressible:!1,extensions:[`jpm`]},"image/jpx":{source:`iana`,compressible:!1,extensions:[`jpx`,`jpf`]},"image/jxr":{source:`iana`,extensions:[`jxr`]},"image/jxra":{source:`iana`,extensions:[`jxra`]},"image/jxrs":{source:`iana`,extensions:[`jxrs`]},"image/jxs":{source:`iana`,extensions:[`jxs`]},"image/jxsc":{source:`iana`,extensions:[`jxsc`]},"image/jxsi":{source:`iana`,extensions:[`jxsi`]},"image/jxss":{source:`iana`,extensions:[`jxss`]},"image/ktx":{source:`iana`,extensions:[`ktx`]},"image/ktx2":{source:`iana`,extensions:[`ktx2`]},"image/naplps":{source:`iana`},"image/pjpeg":{compressible:!1},"image/png":{source:`iana`,compressible:!1,extensions:[`png`]},"image/prs.btif":{source:`iana`,extensions:[`btif`]},"image/prs.pti":{source:`iana`,extensions:[`pti`]},"image/pwg-raster":{source:`iana`},"image/sgi":{source:`apache`,extensions:[`sgi`]},"image/svg+xml":{source:`iana`,compressible:!0,extensions:[`svg`,`svgz`]},"image/t38":{source:`iana`,extensions:[`t38`]},"image/tiff":{source:`iana`,compressible:!1,extensions:[`tif`,`tiff`]},"image/tiff-fx":{source:`iana`,extensions:[`tfx`]},"image/vnd.adobe.photoshop":{source:`iana`,compressible:!0,extensions:[`psd`]},"image/vnd.airzip.accelerator.azv":{source:`iana`,extensions:[`azv`]},"image/vnd.cns.inf2":{source:`iana`},"image/vnd.dece.graphic":{source:`iana`,extensions:[`uvi`,`uvvi`,`uvg`,`uvvg`]},"image/vnd.djvu":{source:`iana`,extensions:[`djvu`,`djv`]},"image/vnd.dvb.subtitle":{source:`iana`,extensions:[`sub`]},"image/vnd.dwg":{source:`iana`,extensions:[`dwg`]},"image/vnd.dxf":{source:`iana`,extensions:[`dxf`]},"image/vnd.fastbidsheet":{source:`iana`,extensions:[`fbs`]},"image/vnd.fpx":{source:`iana`,extensions:[`fpx`]},"image/vnd.fst":{source:`iana`,extensions:[`fst`]},"image/vnd.fujixerox.edmics-mmr":{source:`iana`,extensions:[`mmr`]},"image/vnd.fujixerox.edmics-rlc":{source:`iana`,extensions:[`rlc`]},"image/vnd.globalgraphics.pgb":{source:`iana`},"image/vnd.microsoft.icon":{source:`iana`,compressible:!0,extensions:[`ico`]},"image/vnd.mix":{source:`iana`},"image/vnd.mozilla.apng":{source:`iana`},"image/vnd.ms-dds":{compressible:!0,extensions:[`dds`]},"image/vnd.ms-modi":{source:`iana`,extensions:[`mdi`]},"image/vnd.ms-photo":{source:`apache`,extensions:[`wdp`]},"image/vnd.net-fpx":{source:`iana`,extensions:[`npx`]},"image/vnd.pco.b16":{source:`iana`,extensions:[`b16`]},"image/vnd.radiance":{source:`iana`},"image/vnd.sealed.png":{source:`iana`},"image/vnd.sealedmedia.softseal.gif":{source:`iana`},"image/vnd.sealedmedia.softseal.jpg":{source:`iana`},"image/vnd.svf":{source:`iana`},"image/vnd.tencent.tap":{source:`iana`,extensions:[`tap`]},"image/vnd.valve.source.texture":{source:`iana`,extensions:[`vtf`]},"image/vnd.wap.wbmp":{source:`iana`,extensions:[`wbmp`]},"image/vnd.xiff":{source:`iana`,extensions:[`xif`]},"image/vnd.zbrush.pcx":{source:`iana`,extensions:[`pcx`]},"image/webp":{source:`apache`,extensions:[`webp`]},"image/wmf":{source:`iana`,extensions:[`wmf`]},"image/x-3ds":{source:`apache`,extensions:[`3ds`]},"image/x-cmu-raster":{source:`apache`,extensions:[`ras`]},"image/x-cmx":{source:`apache`,extensions:[`cmx`]},"image/x-freehand":{source:`apache`,extensions:[`fh`,`fhc`,`fh4`,`fh5`,`fh7`]},"image/x-icon":{source:`apache`,compressible:!0,extensions:[`ico`]},"image/x-jng":{source:`nginx`,extensions:[`jng`]},"image/x-mrsid-image":{source:`apache`,extensions:[`sid`]},"image/x-ms-bmp":{source:`nginx`,compressible:!0,extensions:[`bmp`]},"image/x-pcx":{source:`apache`,extensions:[`pcx`]},"image/x-pict":{source:`apache`,extensions:[`pic`,`pct`]},"image/x-portable-anymap":{source:`apache`,extensions:[`pnm`]},"image/x-portable-bitmap":{source:`apache`,extensions:[`pbm`]},"image/x-portable-graymap":{source:`apache`,extensions:[`pgm`]},"image/x-portable-pixmap":{source:`apache`,extensions:[`ppm`]},"image/x-rgb":{source:`apache`,extensions:[`rgb`]},"image/x-tga":{source:`apache`,extensions:[`tga`]},"image/x-xbitmap":{source:`apache`,extensions:[`xbm`]},"image/x-xcf":{compressible:!1},"image/x-xpixmap":{source:`apache`,extensions:[`xpm`]},"image/x-xwindowdump":{source:`apache`,extensions:[`xwd`]},"message/cpim":{source:`iana`},"message/delivery-status":{source:`iana`},"message/disposition-notification":{source:`iana`,extensions:[`disposition-notification`]},"message/external-body":{source:`iana`},"message/feedback-report":{source:`iana`},"message/global":{source:`iana`,extensions:[`u8msg`]},"message/global-delivery-status":{source:`iana`,extensions:[`u8dsn`]},"message/global-disposition-notification":{source:`iana`,extensions:[`u8mdn`]},"message/global-headers":{source:`iana`,extensions:[`u8hdr`]},"message/http":{source:`iana`,compressible:!1},"message/imdn+xml":{source:`iana`,compressible:!0},"message/news":{source:`iana`},"message/partial":{source:`iana`,compressible:!1},"message/rfc822":{source:`iana`,compressible:!0,extensions:[`eml`,`mime`]},"message/s-http":{source:`iana`},"message/sip":{source:`iana`},"message/sipfrag":{source:`iana`},"message/tracking-status":{source:`iana`},"message/vnd.si.simp":{source:`iana`},"message/vnd.wfa.wsc":{source:`iana`,extensions:[`wsc`]},"model/3mf":{source:`iana`,extensions:[`3mf`]},"model/e57":{source:`iana`},"model/gltf+json":{source:`iana`,compressible:!0,extensions:[`gltf`]},"model/gltf-binary":{source:`iana`,compressible:!0,extensions:[`glb`]},"model/iges":{source:`iana`,compressible:!1,extensions:[`igs`,`iges`]},"model/mesh":{source:`iana`,compressible:!1,extensions:[`msh`,`mesh`,`silo`]},"model/mtl":{source:`iana`,extensions:[`mtl`]},"model/obj":{source:`iana`,extensions:[`obj`]},"model/step":{source:`iana`},"model/step+xml":{source:`iana`,compressible:!0,extensions:[`stpx`]},"model/step+zip":{source:`iana`,compressible:!1,extensions:[`stpz`]},"model/step-xml+zip":{source:`iana`,compressible:!1,extensions:[`stpxz`]},"model/stl":{source:`iana`,extensions:[`stl`]},"model/vnd.collada+xml":{source:`iana`,compressible:!0,extensions:[`dae`]},"model/vnd.dwf":{source:`iana`,extensions:[`dwf`]},"model/vnd.flatland.3dml":{source:`iana`},"model/vnd.gdl":{source:`iana`,extensions:[`gdl`]},"model/vnd.gs-gdl":{source:`apache`},"model/vnd.gs.gdl":{source:`iana`},"model/vnd.gtw":{source:`iana`,extensions:[`gtw`]},"model/vnd.moml+xml":{source:`iana`,compressible:!0},"model/vnd.mts":{source:`iana`,extensions:[`mts`]},"model/vnd.opengex":{source:`iana`,extensions:[`ogex`]},"model/vnd.parasolid.transmit.binary":{source:`iana`,extensions:[`x_b`]},"model/vnd.parasolid.transmit.text":{source:`iana`,extensions:[`x_t`]},"model/vnd.pytha.pyox":{source:`iana`},"model/vnd.rosette.annotated-data-model":{source:`iana`},"model/vnd.sap.vds":{source:`iana`,extensions:[`vds`]},"model/vnd.usdz+zip":{source:`iana`,compressible:!1,extensions:[`usdz`]},"model/vnd.valve.source.compiled-map":{source:`iana`,extensions:[`bsp`]},"model/vnd.vtu":{source:`iana`,extensions:[`vtu`]},"model/vrml":{source:`iana`,compressible:!1,extensions:[`wrl`,`vrml`]},"model/x3d+binary":{source:`apache`,compressible:!1,extensions:[`x3db`,`x3dbz`]},"model/x3d+fastinfoset":{source:`iana`,extensions:[`x3db`]},"model/x3d+vrml":{source:`apache`,compressible:!1,extensions:[`x3dv`,`x3dvz`]},"model/x3d+xml":{source:`iana`,compressible:!0,extensions:[`x3d`,`x3dz`]},"model/x3d-vrml":{source:`iana`,extensions:[`x3dv`]},"multipart/alternative":{source:`iana`,compressible:!1},"multipart/appledouble":{source:`iana`},"multipart/byteranges":{source:`iana`},"multipart/digest":{source:`iana`},"multipart/encrypted":{source:`iana`,compressible:!1},"multipart/form-data":{source:`iana`,compressible:!1},"multipart/header-set":{source:`iana`},"multipart/mixed":{source:`iana`},"multipart/multilingual":{source:`iana`},"multipart/parallel":{source:`iana`},"multipart/related":{source:`iana`,compressible:!1},"multipart/report":{source:`iana`},"multipart/signed":{source:`iana`,compressible:!1},"multipart/vnd.bint.med-plus":{source:`iana`},"multipart/voice-message":{source:`iana`},"multipart/x-mixed-replace":{source:`iana`},"text/1d-interleaved-parityfec":{source:`iana`},"text/cache-manifest":{source:`iana`,compressible:!0,extensions:[`appcache`,`manifest`]},"text/calendar":{source:`iana`,extensions:[`ics`,`ifb`]},"text/calender":{compressible:!0},"text/cmd":{compressible:!0},"text/coffeescript":{extensions:[`coffee`,`litcoffee`]},"text/cql":{source:`iana`},"text/cql-expression":{source:`iana`},"text/cql-identifier":{source:`iana`},"text/css":{source:`iana`,charset:`UTF-8`,compressible:!0,extensions:[`css`]},"text/csv":{source:`iana`,compressible:!0,extensions:[`csv`]},"text/csv-schema":{source:`iana`},"text/directory":{source:`iana`},"text/dns":{source:`iana`},"text/ecmascript":{source:`iana`},"text/encaprtp":{source:`iana`},"text/enriched":{source:`iana`},"text/fhirpath":{source:`iana`},"text/flexfec":{source:`iana`},"text/fwdred":{source:`iana`},"text/gff3":{source:`iana`},"text/grammar-ref-list":{source:`iana`},"text/html":{source:`iana`,compressible:!0,extensions:[`html`,`htm`,`shtml`]},"text/jade":{extensions:[`jade`]},"text/javascript":{source:`iana`,compressible:!0},"text/jcr-cnd":{source:`iana`},"text/jsx":{compressible:!0,extensions:[`jsx`]},"text/less":{compressible:!0,extensions:[`less`]},"text/markdown":{source:`iana`,compressible:!0,extensions:[`markdown`,`md`]},"text/mathml":{source:`nginx`,extensions:[`mml`]},"text/mdx":{compressible:!0,extensions:[`mdx`]},"text/mizar":{source:`iana`},"text/n3":{source:`iana`,charset:`UTF-8`,compressible:!0,extensions:[`n3`]},"text/parameters":{source:`iana`,charset:`UTF-8`},"text/parityfec":{source:`iana`},"text/plain":{source:`iana`,compressible:!0,extensions:[`txt`,`text`,`conf`,`def`,`list`,`log`,`in`,`ini`]},"text/provenance-notation":{source:`iana`,charset:`UTF-8`},"text/prs.fallenstein.rst":{source:`iana`},"text/prs.lines.tag":{source:`iana`,extensions:[`dsc`]},"text/prs.prop.logic":{source:`iana`},"text/raptorfec":{source:`iana`},"text/red":{source:`iana`},"text/rfc822-headers":{source:`iana`},"text/richtext":{source:`iana`,compressible:!0,extensions:[`rtx`]},"text/rtf":{source:`iana`,compressible:!0,extensions:[`rtf`]},"text/rtp-enc-aescm128":{source:`iana`},"text/rtploopback":{source:`iana`},"text/rtx":{source:`iana`},"text/sgml":{source:`iana`,extensions:[`sgml`,`sgm`]},"text/shaclc":{source:`iana`},"text/shex":{source:`iana`,extensions:[`shex`]},"text/slim":{extensions:[`slim`,`slm`]},"text/spdx":{source:`iana`,extensions:[`spdx`]},"text/strings":{source:`iana`},"text/stylus":{extensions:[`stylus`,`styl`]},"text/t140":{source:`iana`},"text/tab-separated-values":{source:`iana`,compressible:!0,extensions:[`tsv`]},"text/troff":{source:`iana`,extensions:[`t`,`tr`,`roff`,`man`,`me`,`ms`]},"text/turtle":{source:`iana`,charset:`UTF-8`,extensions:[`ttl`]},"text/ulpfec":{source:`iana`},"text/uri-list":{source:`iana`,compressible:!0,extensions:[`uri`,`uris`,`urls`]},"text/vcard":{source:`iana`,compressible:!0,extensions:[`vcard`]},"text/vnd.a":{source:`iana`},"text/vnd.abc":{source:`iana`},"text/vnd.ascii-art":{source:`iana`},"text/vnd.curl":{source:`iana`,extensions:[`curl`]},"text/vnd.curl.dcurl":{source:`apache`,extensions:[`dcurl`]},"text/vnd.curl.mcurl":{source:`apache`,extensions:[`mcurl`]},"text/vnd.curl.scurl":{source:`apache`,extensions:[`scurl`]},"text/vnd.debian.copyright":{source:`iana`,charset:`UTF-8`},"text/vnd.dmclientscript":{source:`iana`},"text/vnd.dvb.subtitle":{source:`iana`,extensions:[`sub`]},"text/vnd.esmertec.theme-descriptor":{source:`iana`,charset:`UTF-8`},"text/vnd.familysearch.gedcom":{source:`iana`,extensions:[`ged`]},"text/vnd.ficlab.flt":{source:`iana`},"text/vnd.fly":{source:`iana`,extensions:[`fly`]},"text/vnd.fmi.flexstor":{source:`iana`,extensions:[`flx`]},"text/vnd.gml":{source:`iana`},"text/vnd.graphviz":{source:`iana`,extensions:[`gv`]},"text/vnd.hans":{source:`iana`},"text/vnd.hgl":{source:`iana`},"text/vnd.in3d.3dml":{source:`iana`,extensions:[`3dml`]},"text/vnd.in3d.spot":{source:`iana`,extensions:[`spot`]},"text/vnd.iptc.newsml":{source:`iana`},"text/vnd.iptc.nitf":{source:`iana`},"text/vnd.latex-z":{source:`iana`},"text/vnd.motorola.reflex":{source:`iana`},"text/vnd.ms-mediapackage":{source:`iana`},"text/vnd.net2phone.commcenter.command":{source:`iana`},"text/vnd.radisys.msml-basic-layout":{source:`iana`},"text/vnd.senx.warpscript":{source:`iana`},"text/vnd.si.uricatalogue":{source:`iana`},"text/vnd.sosi":{source:`iana`},"text/vnd.sun.j2me.app-descriptor":{source:`iana`,charset:`UTF-8`,extensions:[`jad`]},"text/vnd.trolltech.linguist":{source:`iana`,charset:`UTF-8`},"text/vnd.wap.si":{source:`iana`},"text/vnd.wap.sl":{source:`iana`},"text/vnd.wap.wml":{source:`iana`,extensions:[`wml`]},"text/vnd.wap.wmlscript":{source:`iana`,extensions:[`wmls`]},"text/vtt":{source:`iana`,charset:`UTF-8`,compressible:!0,extensions:[`vtt`]},"text/x-asm":{source:`apache`,extensions:[`s`,`asm`]},"text/x-c":{source:`apache`,extensions:[`c`,`cc`,`cxx`,`cpp`,`h`,`hh`,`dic`]},"text/x-component":{source:`nginx`,extensions:[`htc`]},"text/x-fortran":{source:`apache`,extensions:[`f`,`for`,`f77`,`f90`]},"text/x-gwt-rpc":{compressible:!0},"text/x-handlebars-template":{extensions:[`hbs`]},"text/x-java-source":{source:`apache`,extensions:[`java`]},"text/x-jquery-tmpl":{compressible:!0},"text/x-lua":{extensions:[`lua`]},"text/x-markdown":{compressible:!0,extensions:[`mkd`]},"text/x-nfo":{source:`apache`,extensions:[`nfo`]},"text/x-opml":{source:`apache`,extensions:[`opml`]},"text/x-org":{compressible:!0,extensions:[`org`]},"text/x-pascal":{source:`apache`,extensions:[`p`,`pas`]},"text/x-processing":{compressible:!0,extensions:[`pde`]},"text/x-sass":{extensions:[`sass`]},"text/x-scss":{extensions:[`scss`]},"text/x-setext":{source:`apache`,extensions:[`etx`]},"text/x-sfv":{source:`apache`,extensions:[`sfv`]},"text/x-suse-ymp":{compressible:!0,extensions:[`ymp`]},"text/x-uuencode":{source:`apache`,extensions:[`uu`]},"text/x-vcalendar":{source:`apache`,extensions:[`vcs`]},"text/x-vcard":{source:`apache`,extensions:[`vcf`]},"text/xml":{source:`iana`,compressible:!0,extensions:[`xml`]},"text/xml-external-parsed-entity":{source:`iana`},"text/yaml":{compressible:!0,extensions:[`yaml`,`yml`]},"video/1d-interleaved-parityfec":{source:`iana`},"video/3gpp":{source:`iana`,extensions:[`3gp`,`3gpp`]},"video/3gpp-tt":{source:`iana`},"video/3gpp2":{source:`iana`,extensions:[`3g2`]},"video/av1":{source:`iana`},"video/bmpeg":{source:`iana`},"video/bt656":{source:`iana`},"video/celb":{source:`iana`},"video/dv":{source:`iana`},"video/encaprtp":{source:`iana`},"video/ffv1":{source:`iana`},"video/flexfec":{source:`iana`},"video/h261":{source:`iana`,extensions:[`h261`]},"video/h263":{source:`iana`,extensions:[`h263`]},"video/h263-1998":{source:`iana`},"video/h263-2000":{source:`iana`},"video/h264":{source:`iana`,extensions:[`h264`]},"video/h264-rcdo":{source:`iana`},"video/h264-svc":{source:`iana`},"video/h265":{source:`iana`},"video/iso.segment":{source:`iana`,extensions:[`m4s`]},"video/jpeg":{source:`iana`,extensions:[`jpgv`]},"video/jpeg2000":{source:`iana`},"video/jpm":{source:`apache`,extensions:[`jpm`,`jpgm`]},"video/jxsv":{source:`iana`},"video/mj2":{source:`iana`,extensions:[`mj2`,`mjp2`]},"video/mp1s":{source:`iana`},"video/mp2p":{source:`iana`},"video/mp2t":{source:`iana`,extensions:[`ts`]},"video/mp4":{source:`iana`,compressible:!1,extensions:[`mp4`,`mp4v`,`mpg4`]},"video/mp4v-es":{source:`iana`},"video/mpeg":{source:`iana`,compressible:!1,extensions:[`mpeg`,`mpg`,`mpe`,`m1v`,`m2v`]},"video/mpeg4-generic":{source:`iana`},"video/mpv":{source:`iana`},"video/nv":{source:`iana`},"video/ogg":{source:`iana`,compressible:!1,extensions:[`ogv`]},"video/parityfec":{source:`iana`},"video/pointer":{source:`iana`},"video/quicktime":{source:`iana`,compressible:!1,extensions:[`qt`,`mov`]},"video/raptorfec":{source:`iana`},"video/raw":{source:`iana`},"video/rtp-enc-aescm128":{source:`iana`},"video/rtploopback":{source:`iana`},"video/rtx":{source:`iana`},"video/scip":{source:`iana`},"video/smpte291":{source:`iana`},"video/smpte292m":{source:`iana`},"video/ulpfec":{source:`iana`},"video/vc1":{source:`iana`},"video/vc2":{source:`iana`},"video/vnd.cctv":{source:`iana`},"video/vnd.dece.hd":{source:`iana`,extensions:[`uvh`,`uvvh`]},"video/vnd.dece.mobile":{source:`iana`,extensions:[`uvm`,`uvvm`]},"video/vnd.dece.mp4":{source:`iana`},"video/vnd.dece.pd":{source:`iana`,extensions:[`uvp`,`uvvp`]},"video/vnd.dece.sd":{source:`iana`,extensions:[`uvs`,`uvvs`]},"video/vnd.dece.video":{source:`iana`,extensions:[`uvv`,`uvvv`]},"video/vnd.directv.mpeg":{source:`iana`},"video/vnd.directv.mpeg-tts":{source:`iana`},"video/vnd.dlna.mpeg-tts":{source:`iana`},"video/vnd.dvb.file":{source:`iana`,extensions:[`dvb`]},"video/vnd.fvt":{source:`iana`,extensions:[`fvt`]},"video/vnd.hns.video":{source:`iana`},"video/vnd.iptvforum.1dparityfec-1010":{source:`iana`},"video/vnd.iptvforum.1dparityfec-2005":{source:`iana`},"video/vnd.iptvforum.2dparityfec-1010":{source:`iana`},"video/vnd.iptvforum.2dparityfec-2005":{source:`iana`},"video/vnd.iptvforum.ttsavc":{source:`iana`},"video/vnd.iptvforum.ttsmpeg2":{source:`iana`},"video/vnd.motorola.video":{source:`iana`},"video/vnd.motorola.videop":{source:`iana`},"video/vnd.mpegurl":{source:`iana`,extensions:[`mxu`,`m4u`]},"video/vnd.ms-playready.media.pyv":{source:`iana`,extensions:[`pyv`]},"video/vnd.nokia.interleaved-multimedia":{source:`iana`},"video/vnd.nokia.mp4vr":{source:`iana`},"video/vnd.nokia.videovoip":{source:`iana`},"video/vnd.objectvideo":{source:`iana`},"video/vnd.radgamettools.bink":{source:`iana`},"video/vnd.radgamettools.smacker":{source:`iana`},"video/vnd.sealed.mpeg1":{source:`iana`},"video/vnd.sealed.mpeg4":{source:`iana`},"video/vnd.sealed.swf":{source:`iana`},"video/vnd.sealedmedia.softseal.mov":{source:`iana`},"video/vnd.uvvu.mp4":{source:`iana`,extensions:[`uvu`,`uvvu`]},"video/vnd.vivo":{source:`iana`,extensions:[`viv`]},"video/vnd.youtube.yt":{source:`iana`},"video/vp8":{source:`iana`},"video/vp9":{source:`iana`},"video/webm":{source:`apache`,compressible:!1,extensions:[`webm`]},"video/x-f4v":{source:`apache`,extensions:[`f4v`]},"video/x-fli":{source:`apache`,extensions:[`fli`]},"video/x-flv":{source:`apache`,compressible:!1,extensions:[`flv`]},"video/x-m4v":{source:`apache`,extensions:[`m4v`]},"video/x-matroska":{source:`apache`,compressible:!1,extensions:[`mkv`,`mk3d`,`mks`]},"video/x-mng":{source:`apache`,extensions:[`mng`]},"video/x-ms-asf":{source:`apache`,extensions:[`asf`,`asx`]},"video/x-ms-vob":{source:`apache`,extensions:[`vob`]},"video/x-ms-wm":{source:`apache`,extensions:[`wm`]},"video/x-ms-wmv":{source:`apache`,compressible:!1,extensions:[`wmv`]},"video/x-ms-wmx":{source:`apache`,extensions:[`wmx`]},"video/x-ms-wvx":{source:`apache`,extensions:[`wvx`]},"video/x-msvideo":{source:`apache`,extensions:[`avi`]},"video/x-sgi-movie":{source:`apache`,extensions:[`movie`]},"video/x-smv":{source:`apache`,extensions:[`smv`]},"x-conference/x-cooltalk":{source:`apache`,extensions:[`ice`]},"x-shader/x-fragment":{compressible:!0},"x-shader/x-vertex":{compressible:!0}}})),Ye=i(((e,t)=>{t.exports=Je()})),Xe=i((e=>{var n=Ye(),r=t(`path`).extname,i=/^\s*([^;\s]*)(?:;|\s|$)/,a=/^text\//i;e.charset=o,e.charsets={lookup:o},e.contentType=s,e.extension=c,e.extensions=Object.create(null),e.lookup=l,e.types=Object.create(null),u(e.extensions,e.types);function o(e){if(!e||typeof e!=`string`)return!1;var t=i.exec(e),r=t&&n[t[1].toLowerCase()];return r&&r.charset?r.charset:t&&a.test(t[1])?`UTF-8`:!1}function s(t){if(!t||typeof t!=`string`)return!1;var n=t.indexOf(`/`)===-1?e.lookup(t):t;if(!n)return!1;if(n.indexOf(`charset`)===-1){var r=e.charset(n);r&&(n+=`; charset=`+r.toLowerCase())}return n}function c(t){if(!t||typeof t!=`string`)return!1;var n=i.exec(t),r=n&&e.extensions[n[1].toLowerCase()];return!r||!r.length?!1:r[0]}function l(t){if(!t||typeof t!=`string`)return!1;var n=r(`x.`+t).toLowerCase().substr(1);return n&&e.types[n]||!1}function u(e,t){var r=[`nginx`,`apache`,void 0,`iana`];Object.keys(n).forEach(function(i){var a=n[i],o=a.extensions;if(o&&o.length){e[i]=o;for(var s=0;s<o.length;s++){var c=o[s];if(t[c]){var l=r.indexOf(n[t[c]].source),u=r.indexOf(a.source);if(t[c]!==`application/octet-stream`&&(l>u||l===u&&t[c].substr(0,12)===`application/`))continue}t[c]=i}}})}})),Ze=i(((e,t)=>{t.exports=n;function n(e){var t=typeof setImmediate==`function`?setImmediate:typeof process==`object`&&typeof process.nextTick==`function`?process.nextTick:null;t?t(e):setTimeout(e,0)}})),Qe=i(((e,t)=>{var n=Ze();t.exports=r;function r(e){var t=!1;return n(function(){t=!0}),function(r,i){t?e(r,i):n(function(){e(r,i)})}}})),$e=i(((e,t)=>{t.exports=n;function n(e){Object.keys(e.jobs).forEach(r.bind(e)),e.jobs={}}function r(e){typeof this.jobs[e]==`function`&&this.jobs[e]()}})),et=i(((e,t)=>{var n=Qe(),r=$e();t.exports=i;function i(e,t,n,i){var o=n.keyedList?n.keyedList[n.index]:n.index;n.jobs[o]=a(t,o,e[o],function(e,t){o in n.jobs&&(delete n.jobs[o],e?r(n):n.results[o]=t,i(e,n.results))})}function a(e,t,r,i){return e.length==2?e(r,n(i)):e(r,t,n(i))}})),tt=i(((e,t)=>{t.exports=n;function n(e,t){var n=!Array.isArray(e),r={index:0,keyedList:n||t?Object.keys(e):null,jobs:{},results:n?{}:[],size:n?Object.keys(e).length:e.length};return t&&r.keyedList.sort(n?t:function(n,r){return t(e[n],e[r])}),r}})),nt=i(((e,t)=>{var n=$e(),r=Qe();t.exports=i;function i(e){Object.keys(this.jobs).length&&(this.index=this.size,n(this),r(e)(null,this.results))}})),rt=i(((e,t)=>{var n=et(),r=tt(),i=nt();t.exports=a;function a(e,t,a){for(var o=r(e);o.index<(o.keyedList||e).length;)n(e,t,o,function(e,t){e?a(e,t):Object.keys(o.jobs).length===0&&a(null,o.results)}),o.index++;return i.bind(o,a)}})),it=i(((e,t)=>{var n=et(),r=tt(),i=nt();t.exports=a,t.exports.ascending=o,t.exports.descending=s;function a(e,t,a,o){var s=r(e,a);return n(e,t,s,function r(i,a){i?o(i,a):(s.index++,s.index<(s.keyedList||e).length?n(e,t,s,r):o(null,s.results))}),i.bind(s,o)}function o(e,t){return e<t?-1:+(e>t)}function s(e,t){return-1*o(e,t)}})),at=i(((e,t)=>{var n=it();t.exports=r;function r(e,t,r){return n(e,t,null,r)}})),ot=i(((e,t)=>{t.exports={parallel:rt(),serial:at(),serialOrdered:it()}})),st=i(((e,t)=>{t.exports=Object})),ct=i(((e,t)=>{t.exports=Error})),lt=i(((e,t)=>{t.exports=EvalError})),ut=i(((e,t)=>{t.exports=RangeError})),dt=i(((e,t)=>{t.exports=ReferenceError})),q=i(((e,t)=>{t.exports=SyntaxError})),ft=i(((e,t)=>{t.exports=TypeError})),pt=i(((e,t)=>{t.exports=URIError})),mt=i(((e,t)=>{t.exports=Math.abs})),ht=i(((e,t)=>{t.exports=Math.floor})),gt=i(((e,t)=>{t.exports=Math.max})),J=i(((e,t)=>{t.exports=Math.min})),_t=i(((e,t)=>{t.exports=Math.pow})),vt=i(((e,t)=>{t.exports=Math.round})),yt=i(((e,t)=>{t.exports=Number.isNaN||function(e){return e!==e}})),bt=i(((e,t)=>{var n=yt();t.exports=function(e){return n(e)||e===0?e:e<0?-1:1}})),xt=i(((e,t)=>{t.exports=Object.getOwnPropertyDescriptor})),St=i(((e,t)=>{var n=xt();if(n)try{n([],`length`)}catch{n=null}t.exports=n})),Ct=i(((e,t)=>{var n=Object.defineProperty||!1;if(n)try{n({},`a`,{value:1})}catch{n=!1}t.exports=n})),wt=i(((e,t)=>{t.exports=function(){if(typeof Symbol!=`function`||typeof Object.getOwnPropertySymbols!=`function`)return!1;if(typeof Symbol.iterator==`symbol`)return!0;var e={},t=Symbol(`test`),n=Object(t);if(typeof t==`string`||Object.prototype.toString.call(t)!==`[object Symbol]`||Object.prototype.toString.call(n)!==`[object Symbol]`)return!1;var r=42;for(var i in e[t]=r,e)return!1;if(typeof Object.keys==`function`&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames==`function`&&Object.getOwnPropertyNames(e).length!==0)return!1;var a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor==`function`){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==r||o.enumerable!==!0)return!1}return!0}})),Tt=i(((e,t)=>{var n=typeof Symbol<`u`&&Symbol,r=wt();t.exports=function(){return typeof n!=`function`||typeof Symbol!=`function`||typeof n(`foo`)!=`symbol`||typeof Symbol(`bar`)!=`symbol`?!1:r()}})),Et=i(((e,t)=>{t.exports=typeof Reflect<`u`&&Reflect.getPrototypeOf||null})),Dt=i(((e,t)=>{t.exports=st().getPrototypeOf||null})),Ot=i(((e,t)=>{var n=Object.prototype.toString,r=Math.max,i=`[object Function]`,a=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var i=0;i<t.length;i+=1)n[i+e.length]=t[i];return n},o=function(e,t){for(var n=[],r=t||0,i=0;r<e.length;r+=1,i+=1)n[i]=e[r];return n},s=function(e,t){for(var n=``,r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n};t.exports=function(e){var t=this;if(typeof t!=`function`||n.apply(t)!==i)throw TypeError(`Function.prototype.bind called on incompatible `+t);for(var c=o(arguments,1),l,u=function(){if(this instanceof l){var n=t.apply(this,a(c,arguments));return Object(n)===n?n:this}return t.apply(e,a(c,arguments))},d=r(0,t.length-c.length),f=[],p=0;p<d;p++)f[p]=`$`+p;if(l=Function(`binder`,`return function (`+s(f,`,`)+`){ return binder.apply(this,arguments); }`)(u),t.prototype){var m=function(){};m.prototype=t.prototype,l.prototype=new m,m.prototype=null}return l}})),kt=i(((e,t)=>{var n=Ot();t.exports=Function.prototype.bind||n})),At=i(((e,t)=>{t.exports=Function.prototype.call})),jt=i(((e,t)=>{t.exports=Function.prototype.apply})),Mt=i(((e,t)=>{t.exports=typeof Reflect<`u`&&Reflect&&Reflect.apply})),Nt=i(((e,t)=>{var n=kt(),r=jt(),i=At();t.exports=Mt()||n.call(i,r)})),Pt=i(((e,t)=>{var n=kt(),r=ft(),i=At(),a=Nt();t.exports=function(e){if(e.length<1||typeof e[0]!=`function`)throw new r(`a function is required`);return a(n,i,e)}})),Ft=i(((e,t)=>{var n=Pt(),r=St(),i;try{i=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!=`object`||!(`code`in e)||e.code!==`ERR_PROTO_ACCESS`)throw e}var a=!!i&&r&&r(Object.prototype,`__proto__`),o=Object,s=o.getPrototypeOf;t.exports=a&&typeof a.get==`function`?n([a.get]):typeof s==`function`&&function(e){return s(e==null?e:o(e))}})),It=i(((e,t)=>{var n=Et(),r=Dt(),i=Ft();t.exports=n?function(e){return n(e)}:r?function(e){if(!e||typeof e!=`object`&&typeof e!=`function`)throw TypeError(`getProto: not an object`);return r(e)}:i?function(e){return i(e)}:null})),Lt=i(((e,t)=>{var n=Function.prototype.call,r=Object.prototype.hasOwnProperty;t.exports=kt().call(n,r)})),Rt=i(((e,t)=>{var n,r=st(),i=ct(),a=lt(),o=ut(),s=dt(),c=q(),l=ft(),u=pt(),d=mt(),f=ht(),p=gt(),m=J(),h=_t(),g=vt(),_=bt(),v=Function,y=function(e){try{return v(`"use strict"; return (`+e+`).constructor;`)()}catch{}},b=St(),x=Ct(),S=function(){throw new l},C=b?function(){try{return arguments.callee,S}catch{try{return b(arguments,`callee`).get}catch{return S}}}():S,w=Tt()(),T=It(),E=Dt(),D=Et(),O=jt(),k=At(),A={},j=typeof Uint8Array>`u`||!T?n:T(Uint8Array),M={__proto__:null,"%AggregateError%":typeof AggregateError>`u`?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>`u`?n:ArrayBuffer,"%ArrayIteratorPrototype%":w&&T?T([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":A,"%AsyncGenerator%":A,"%AsyncGeneratorFunction%":A,"%AsyncIteratorPrototype%":A,"%Atomics%":typeof Atomics>`u`?n:Atomics,"%BigInt%":typeof BigInt>`u`?n:BigInt,"%BigInt64Array%":typeof BigInt64Array>`u`?n:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>`u`?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>`u`?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":a,"%Float16Array%":typeof Float16Array>`u`?n:Float16Array,"%Float32Array%":typeof Float32Array>`u`?n:Float32Array,"%Float64Array%":typeof Float64Array>`u`?n:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>`u`?n:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":A,"%Int8Array%":typeof Int8Array>`u`?n:Int8Array,"%Int16Array%":typeof Int16Array>`u`?n:Int16Array,"%Int32Array%":typeof Int32Array>`u`?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":w&&T?T(T([][Symbol.iterator]())):n,"%JSON%":typeof JSON==`object`?JSON:n,"%Map%":typeof Map>`u`?n:Map,"%MapIteratorPrototype%":typeof Map>`u`||!w||!T?n:T(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":r,"%Object.getOwnPropertyDescriptor%":b,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>`u`?n:Promise,"%Proxy%":typeof Proxy>`u`?n:Proxy,"%RangeError%":o,"%ReferenceError%":s,"%Reflect%":typeof Reflect>`u`?n:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>`u`?n:Set,"%SetIteratorPrototype%":typeof Set>`u`||!w||!T?n:T(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>`u`?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":w&&T?T(``[Symbol.iterator]()):n,"%Symbol%":w?Symbol:n,"%SyntaxError%":c,"%ThrowTypeError%":C,"%TypedArray%":j,"%TypeError%":l,"%Uint8Array%":typeof Uint8Array>`u`?n:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>`u`?n:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>`u`?n:Uint16Array,"%Uint32Array%":typeof Uint32Array>`u`?n:Uint32Array,"%URIError%":u,"%WeakMap%":typeof WeakMap>`u`?n:WeakMap,"%WeakRef%":typeof WeakRef>`u`?n:WeakRef,"%WeakSet%":typeof WeakSet>`u`?n:WeakSet,"%Function.prototype.call%":k,"%Function.prototype.apply%":O,"%Object.defineProperty%":x,"%Object.getPrototypeOf%":E,"%Math.abs%":d,"%Math.floor%":f,"%Math.max%":p,"%Math.min%":m,"%Math.pow%":h,"%Math.round%":g,"%Math.sign%":_,"%Reflect.getPrototypeOf%":D};if(T)try{null.error}catch(e){M[`%Error.prototype%`]=T(T(e))}var N=function e(t){var n;if(t===`%AsyncFunction%`)n=y(`async function () {}`);else if(t===`%GeneratorFunction%`)n=y(`function* () {}`);else if(t===`%AsyncGeneratorFunction%`)n=y(`async function* () {}`);else if(t===`%AsyncGenerator%`){var r=e(`%AsyncGeneratorFunction%`);r&&(n=r.prototype)}else if(t===`%AsyncIteratorPrototype%`){var i=e(`%AsyncGenerator%`);i&&T&&(n=T(i.prototype))}return M[t]=n,n},P={__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`]},F=kt(),I=Lt(),L=F.call(k,Array.prototype.concat),R=F.call(O,Array.prototype.splice),z=F.call(k,String.prototype.replace),B=F.call(k,String.prototype.slice),V=F.call(k,RegExp.prototype.exec),H=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,U=/\\(\\)?/g,W=function(e){var t=B(e,0,1),n=B(e,-1);if(t===`%`&&n!==`%`)throw new c("invalid intrinsic syntax, expected closing `%`");if(n===`%`&&t!==`%`)throw new c("invalid intrinsic syntax, expected opening `%`");var r=[];return z(e,H,function(e,t,n,i){r[r.length]=n?z(i,U,`$1`):t||e}),r},ee=function(e,t){var n=e,r;if(I(P,n)&&(r=P[n],n=`%`+r[0]+`%`),I(M,n)){var i=M[n];if(i===A&&(i=N(n)),i===void 0&&!t)throw new l(`intrinsic `+e+` exists, but is not available. Please file an issue!`);return{alias:r,name:n,value:i}}throw new c(`intrinsic `+e+` does not exist!`)};t.exports=function(e,t){if(typeof e!=`string`||e.length===0)throw new l(`intrinsic name must be a non-empty string`);if(arguments.length>1&&typeof t!=`boolean`)throw new l(`"allowMissing" argument must be a boolean`);if(V(/^%?[^%]*%?$/,e)===null)throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=W(e),r=n.length>0?n[0]:``,i=ee(`%`+r+`%`,t),a=i.name,o=i.value,s=!1,u=i.alias;u&&(r=u[0],R(n,L([0,1],u)));for(var d=1,f=!0;d<n.length;d+=1){var p=n[d],m=B(p,0,1),h=B(p,-1);if((m===`"`||m===`'`||m==="`"||h===`"`||h===`'`||h==="`")&&m!==h)throw new c(`property names with quotes must have matching quotes`);if(p!==`constructor`&&f||(s=!0),r+=`.`+p,a=`%`+r+`%`,I(M,a))o=M[a];else if(o!=null){if(!(p in o)){if(!t)throw new l(`base intrinsic for `+e+` exists, but the property is not available.`);return}if(b&&d+1>=n.length){var g=b(o,p);f=!!g,o=f&&`get`in g&&!(`originalValue`in g.get)?g.get:o[p]}else f=I(o,p),o=o[p];f&&!s&&(M[a]=o)}}return o}})),zt=i(((e,t)=>{var n=wt();t.exports=function(){return n()&&!!Symbol.toStringTag}})),Bt=i(((e,t)=>{var n=Rt()(`%Object.defineProperty%`,!0),r=zt()(),i=Lt(),a=ft(),o=r?Symbol.toStringTag:null;t.exports=function(e,t){var r=arguments.length>2&&!!arguments[2]&&arguments[2].force,s=arguments.length>2&&!!arguments[2]&&arguments[2].nonConfigurable;if(r!==void 0&&typeof r!=`boolean`||s!==void 0&&typeof s!=`boolean`)throw new a("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");o&&(r||!i(e,o))&&(n?n(e,o,{configurable:!s,enumerable:!1,value:t,writable:!1}):e[o]=t)}})),Vt=i(((e,t)=>{t.exports=function(e,t){return Object.keys(t).forEach(function(n){e[n]=e[n]||t[n]}),e}})),Ht=i(((e,n)=>{var r=qe(),i=t(`util`),a=t(`path`),o=t(`http`),s=t(`https`),c=t(`url`).parse,l=t(`fs`),u=t(`stream`).Stream,d=t(`crypto`),f=Xe(),p=ot(),m=Bt(),h=Lt(),g=Vt();function _(e){return String(e).replace(/\r/g,`%0D`).replace(/\n/g,`%0A`).replace(/"/g,`%22`)}function v(e){if(!(this instanceof v))return new v(e);for(var t in this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],r.call(this),e||={},e)this[t]=e[t]}i.inherits(v,r),v.LINE_BREAK=`\r
|
|
2
|
+
`,v.DEFAULT_CONTENT_TYPE=`application/octet-stream`,v.prototype.append=function(e,t,n){n||={},typeof n==`string`&&(n={filename:n});var i=r.prototype.append.bind(this);if((typeof t==`number`||t==null)&&(t=String(t)),Array.isArray(t))this._error(Error(`Arrays are not supported.`));else{var a=this._multiPartHeader(e,t,n),o=this._multiPartFooter();i(a),i(t),i(o),this._trackLength(a,t,n)}},v.prototype._trackLength=function(e,t,n){var r=0;n.knownLength==null?Buffer.isBuffer(t)?r=t.length:typeof t==`string`&&(r=Buffer.byteLength(t)):r+=Number(n.knownLength),this._valueLength+=r,this._overheadLength+=Buffer.byteLength(e)+v.LINE_BREAK.length,t&&(t.path||t.readable&&h(t,`httpVersion`)||t instanceof u)&&(n.knownLength||this._valuesToMeasure.push(t))},v.prototype._lengthRetriever=function(e,t){h(e,`fd`)?e.end!=null&&e.end!=1/0&&e.start!=null?t(null,e.end+1-(e.start?e.start:0)):l.stat(e.path,function(n,r){n?t(n):t(null,r.size-(e.start?e.start:0))}):h(e,`httpVersion`)?t(null,Number(e.headers[`content-length`])):h(e,`httpModule`)?(e.on(`response`,function(n){e.pause(),t(null,Number(n.headers[`content-length`]))}),e.resume()):t(`Unknown stream`)},v.prototype._multiPartHeader=function(e,t,n){if(typeof n.header==`string`)return n.header;var r=this._getContentDisposition(t,n),i=this._getContentType(t,n),a=``,o={"Content-Disposition":[`form-data`,`name="`+_(e)+`"`].concat(r||[]),"Content-Type":[].concat(i||[])};typeof n.header==`object`&&g(o,n.header);var s;for(var c in o)if(h(o,c)){if(s=o[c],s==null)continue;Array.isArray(s)||(s=[s]),s.length&&(a+=c+`: `+s.join(`; `)+v.LINE_BREAK)}return`--`+this.getBoundary()+v.LINE_BREAK+a+v.LINE_BREAK},v.prototype._getContentDisposition=function(e,t){var n;if(typeof t.filepath==`string`?n=a.normalize(t.filepath).replace(/\\/g,`/`):t.filename||e&&(e.name||e.path)?n=a.basename(t.filename||e&&(e.name||e.path)):e&&e.readable&&h(e,`httpVersion`)&&(n=a.basename(e.client._httpMessage.path||``)),n)return`filename="`+_(n)+`"`},v.prototype._getContentType=function(e,t){var n=t.contentType;return!n&&e&&e.name&&(n=f.lookup(e.name)),!n&&e&&e.path&&(n=f.lookup(e.path)),!n&&e&&e.readable&&h(e,`httpVersion`)&&(n=e.headers[`content-type`]),!n&&(t.filepath||t.filename)&&(n=f.lookup(t.filepath||t.filename)),!n&&e&&typeof e==`object`&&(n=v.DEFAULT_CONTENT_TYPE),n},v.prototype._multiPartFooter=function(){return function(e){var t=v.LINE_BREAK;this._streams.length===0&&(t+=this._lastBoundary()),e(t)}.bind(this)},v.prototype._lastBoundary=function(){return`--`+this.getBoundary()+`--`+v.LINE_BREAK},v.prototype.getHeaders=function(e){var t,n={"content-type":`multipart/form-data; boundary=`+this.getBoundary()};for(t in e)h(e,t)&&(n[t.toLowerCase()]=e[t]);return n},v.prototype.setBoundary=function(e){if(typeof e!=`string`)throw TypeError(`FormData boundary must be a string`);this._boundary=e},v.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary},v.prototype.getBuffer=function(){for(var e=new Buffer.alloc(0),t=this.getBoundary(),n=0,r=this._streams.length;n<r;n++)typeof this._streams[n]!=`function`&&(e=Buffer.isBuffer(this._streams[n])?Buffer.concat([e,this._streams[n]]):Buffer.concat([e,Buffer.from(this._streams[n])]),(typeof this._streams[n]!=`string`||this._streams[n].substring(2,t.length+2)!==t)&&(e=Buffer.concat([e,Buffer.from(v.LINE_BREAK)])));return Buffer.concat([e,Buffer.from(this._lastBoundary())])},v.prototype._generateBoundary=function(){this._boundary=`--------------------------`+d.randomBytes(12).toString(`hex`)},v.prototype.getLengthSync=function(){var e=this._overheadLength+this._valueLength;return this._streams.length&&(e+=this._lastBoundary().length),this.hasKnownLength()||this._error(Error(`Cannot calculate proper length in synchronous way.`)),e},v.prototype.hasKnownLength=function(){var e=!0;return this._valuesToMeasure.length&&(e=!1),e},v.prototype.getLength=function(e){var t=this._overheadLength+this._valueLength;this._streams.length&&(t+=this._lastBoundary().length),this._valuesToMeasure.length?p.parallel(this._valuesToMeasure,this._lengthRetriever,function(n,r){n?e(n):(r.forEach(function(e){t+=e}),e(null,t))}):process.nextTick(e.bind(this,null,t))},v.prototype.submit=function(e,t){var n,r,i={method:`post`};return typeof e==`string`?(e=c(e),r=g({port:e.port,path:e.pathname,host:e.hostname,protocol:e.protocol},i)):(r=g(e,i),r.port||(r.port=r.protocol===`https:`?443:80)),r.headers=this.getHeaders(e.headers),n=r.protocol===`https:`?s.request(r):o.request(r),this.getLength(function(e,r){if(e&&e!==`Unknown stream`)this._error(e);else if(r&&n.setHeader(`Content-Length`,r),this.pipe(n),t){var i,a=function(e,r){return n.removeListener(`error`,a),n.removeListener(`response`,i),t.call(this,e,r)};i=a.bind(this,null),n.on(`error`,a),n.on(`response`,i)}}.bind(this)),n},v.prototype._error=function(e){this.error||(this.error=e,this.pause(),this.emit(`error`,e))},v.prototype.toString=function(){return`[object FormData]`},m(v.prototype,`FormData`),n.exports=v})),Ut=i(((e,t)=>{function n(e){n.debug=n,n.default=n,n.coerce=c,n.disable=o,n.enable=i,n.enabled=s,n.humanize=R(),n.destroy=l,Object.keys(e).forEach(t=>{n[t]=e[t]}),n.names=[],n.skips=[],n.formatters={};function t(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return n.colors[Math.abs(t)%n.colors.length]}n.selectColor=t;function n(e){let t,i=null,a,o;function s(...e){if(!s.enabled)return;let r=s,i=Number(new Date);r.diff=i-(t||i),r.prev=t,r.curr=i,t=i,e[0]=n.coerce(e[0]),typeof e[0]!=`string`&&e.unshift(`%O`);let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(t,i)=>{if(t===`%%`)return`%`;a++;let o=n.formatters[i];if(typeof o==`function`){let n=e[a];t=o.call(r,n),e.splice(a,1),a--}return t}),n.formatArgs.call(r,e),(r.log||n.log).apply(r,e)}return s.namespace=e,s.useColors=n.useColors(),s.color=n.selectColor(e),s.extend=r,s.destroy=n.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>i===null?(a!==n.namespaces&&(a=n.namespaces,o=n.enabled(e)),o):i,set:e=>{i=e}}),typeof n.init==`function`&&n.init(s),s}function r(e,t){let r=n(this.namespace+(t===void 0?`:`:t)+e);return r.log=this.log,r}function i(e){n.save(e),n.namespaces=e,n.names=[],n.skips=[];let t=(typeof e==`string`?e:``).trim().replace(/\s+/g,`,`).split(`,`).filter(Boolean);for(let e of t)e[0]===`-`?n.skips.push(e.slice(1)):n.names.push(e)}function a(e,t){let n=0,r=0,i=-1,a=0;for(;n<e.length;)if(r<t.length&&(t[r]===e[n]||t[r]===`*`))t[r]===`*`?(i=r,a=n,r++):(n++,r++);else if(i!==-1)r=i+1,a++,n=a;else return!1;for(;r<t.length&&t[r]===`*`;)r++;return r===t.length}function o(){let e=[...n.names,...n.skips.map(e=>`-`+e)].join(`,`);return n.enable(``),e}function s(e){for(let t of n.skips)if(a(e,t))return!1;for(let t of n.names)if(a(e,t))return!0;return!1}function c(e){return e instanceof Error?e.stack||e.message:e}function l(){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 n.enable(n.load()),n}t.exports=n})),Wt=i(((e,t)=>{e.formatArgs=r,e.save=i,e.load=a,e.useColors=n,e.storage=o(),e.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`."))}})(),e.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`.split(`.`);function n(){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+)/)}function r(e){if(e[0]=(this.useColors?`%c`:``)+this.namespace+(this.useColors?` %c`:` `)+e[0]+(this.useColors?`%c `:` `)+`+`+t.exports.humanize(this.diff),!this.useColors)return;let n=`color: `+this.color;e.splice(1,0,n,`color: inherit`);let r=0,i=0;e[0].replace(/%[a-zA-Z%]/g,e=>{e!==`%%`&&(r++,e===`%c`&&(i=r))}),e.splice(i,0,n)}e.log=console.debug||console.log||(()=>{});function i(t){try{t?e.storage.setItem(`debug`,t):e.storage.removeItem(`debug`)}catch{}}function a(){let t;try{t=e.storage.getItem(`debug`)||e.storage.getItem(`DEBUG`)}catch{}return!t&&typeof process<`u`&&`env`in process&&(t=process.env.DEBUG),t}function o(){try{return localStorage}catch{}}t.exports=Ut()(e);let{formatters:s}=t.exports;s.j=function(e){try{return JSON.stringify(e)}catch(e){return`[UnexpectedJSONParseError]: `+e.message}}})),Gt=r({createSupportsColor:()=>Yt,default:()=>Zt});function Y(e,t=globalThis.Deno?globalThis.Deno.args:Ae.argv){let n=e.startsWith(`-`)?``:e.length===1?`-`:`--`,r=t.indexOf(n+e),i=t.indexOf(`--`);return r!==-1&&(i===-1||r<i)}function Kt(){if(!(`FORCE_COLOR`in X))return;if(X.FORCE_COLOR===`true`)return 1;if(X.FORCE_COLOR===`false`)return 0;if(X.FORCE_COLOR.length===0)return 1;let e=Math.min(Number.parseInt(X.FORCE_COLOR,10),3);if([0,1,2,3].includes(e))return e}function qt(e){return e!==0&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function Jt(e,{streamIsTTY:t,sniffFlags:n=!0}={}){let r=Kt();r!==void 0&&(Xt=r);let i=n?Xt:r;if(i===0)return 0;if(n){if(Y(`color=16m`)||Y(`color=full`)||Y(`color=truecolor`))return 3;if(Y(`color=256`))return 2}if(`TF_BUILD`in X&&`AGENT_NAME`in X)return 1;if(e&&!t&&i===void 0)return 0;let a=i||0;if(X.TERM===`dumb`)return a;if(Ae.platform===`win32`){let e=Pe.release().split(`.`);return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if(`CI`in X)return[`GITHUB_ACTIONS`,`GITEA_ACTIONS`,`CIRCLECI`].some(e=>e in X)?3:[`TRAVIS`,`APPVEYOR`,`GITLAB_CI`,`BUILDKITE`,`DRONE`].some(e=>e in X)||X.CI_NAME===`codeship`?1:a;if(`TEAMCITY_VERSION`in X)return+!!/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(X.TEAMCITY_VERSION);if(X.COLORTERM===`truecolor`||X.TERM===`xterm-kitty`||X.TERM===`xterm-ghostty`||X.TERM===`wezterm`)return 3;if(`TERM_PROGRAM`in X){let e=Number.parseInt((X.TERM_PROGRAM_VERSION||``).split(`.`)[0],10);switch(X.TERM_PROGRAM){case`iTerm.app`:return e>=3?3:2;case`Apple_Terminal`:return 2}}return/-256(color)?$/i.test(X.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(X.TERM)||`COLORTERM`in X?1:a}function Yt(e,t={}){return qt(Jt(e,{streamIsTTY:e&&e.isTTY,...t}))}var X,Xt,Zt,Qt=n((()=>{({env:X}=Ae),Y(`no-color`)||Y(`no-colors`)||Y(`color=false`)||Y(`color=never`)?Xt=0:(Y(`color`)||Y(`colors`)||Y(`color=true`)||Y(`color=always`))&&(Xt=1),Zt={stdout:Yt({isTTY:Fe.isatty(1)}),stderr:Yt({isTTY:Fe.isatty(2)})}})),$t=i(((n,r)=>{let i=t(`tty`),a=t(`util`);n.init=f,n.log=l,n.formatArgs=s,n.save=u,n.load=d,n.useColors=o,n.destroy=a.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),n.colors=[6,2,3,4,5,1];try{let t=(Qt(),e(Gt));t&&(t.stderr||t).level>=2&&(n.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{}n.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{let n=t.substring(6).toLowerCase().replace(/_([a-z])/g,(e,t)=>t.toUpperCase()),r=process.env[t];return r=/^(yes|on|true|enabled)$/i.test(r)?!0:/^(no|off|false|disabled)$/i.test(r)?!1:r===`null`?null:Number(r),e[n]=r,e},{});function o(){return`colors`in n.inspectOpts?!!n.inspectOpts.colors:i.isatty(process.stderr.fd)}function s(e){let{namespace:t,useColors:n}=this;if(n){let n=this.color,i=`\x1B[3`+(n<8?n:`8;5;`+n),a=` ${i};1m${t} \u001B[0m`;e[0]=a+e[0].split(`
|
|
3
3
|
`).join(`
|
|
4
4
|
`+a),e.push(i+`m+`+r.exports.humanize(this.diff)+`\x1B[0m`)}else e[0]=c()+t+` `+e[0]}function c(){return n.inspectOpts.hideDate?``:new Date().toISOString()+` `}function l(...e){return process.stderr.write(a.formatWithOptions(n.inspectOpts,...e)+`
|
|
5
|
-
`)}function u(e){e?process.env.DEBUG=e:delete process.env.DEBUG}function d(){return process.env.DEBUG}function f(e){e.inspectOpts={};let t=Object.keys(n.inspectOpts);for(let r=0;r<t.length;r++)e.inspectOpts[t[r]]=n.inspectOpts[t[r]]}r.exports=
|
|
6
|
-
`).map(e=>e.trim()).join(` `)},p.O=function(e){return this.inspectOpts.colors=this.useColors,a.inspect(e,this.inspectOpts)}})),
|
|
7
|
-
`).some(e=>e.indexOf(`(https.js:`)!==-1||e.indexOf(`node:https:`)!==-1)}function d(e,t){return new d.Agent(e,t)}(function(e){class t extends a.EventEmitter{constructor(e,t){super();let n=t;typeof e==`function`?this.callback=e:e&&(n=e),this.timeout=null,n&&typeof n.timeout==`number`&&(this.timeout=n.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:u()?443:80}set defaultPort(e){this.explicitDefaultPort=e}get protocol(){return typeof this.explicitProtocol==`string`?this.explicitProtocol:u()?`https:`:`http:`}set protocol(e){this.explicitProtocol=e}callback(e,t,n){throw Error('"agent-base" has no default implementation, you must subclass and override `callback()`')}addRequest(e,t){let n=Object.assign({},t);typeof n.secureEndpoint!=`boolean`&&(n.secureEndpoint=u()),n.host??=`localhost`,n.port??=n.secureEndpoint?443:80,n.protocol??=n.secureEndpoint?`https:`:`http:`,n.host&&n.path&&delete n.path,delete n.agent,delete n.hostname,delete n._defaultAgent,delete n.defaultPort,delete n.createConnection,e._last=!0,e.shouldKeepAlive=!1;let r=!1,i=null,a=n.timeout||this.timeout,o=t=>{e._hadError||=(e.emit(`error`,t),!0)},d=()=>{i=null,r=!0;let e=Error(`A "socket" was not created for HTTP request before ${a}ms`);e.code=`ETIMEOUT`,o(e)},f=e=>{r||(i!==null&&(clearTimeout(i),i=null),o(e))},p=t=>{if(r)return;if(i!=null&&(clearTimeout(i),i=null),l(t)){c(`Callback returned another Agent instance %o`,t.constructor.name),t.addRequest(e,n);return}if(t){t.once(`free`,()=>{this.freeSocket(t,n)}),e.onSocket(t);return}let a=Error(`no Duplex stream was returned to agent-base for \`${e.method} ${e.path}\``);o(a)};if(typeof this.callback!=`function`)o(Error("`callback` is not defined"));else{this.promisifiedCallback||(this.callback.length>=3?(c(`Converting legacy callback function to promise`),this.promisifiedCallback=s.default(this.callback)):this.promisifiedCallback=this.callback),typeof a==`number`&&a>0&&(i=setTimeout(d,a)),`port`in n&&typeof n.port!=`number`&&(n.port=Number(n.port));try{c(`Resolving socket for %o request: %o`,n.protocol,`${e.method} ${e.path}`),Promise.resolve(this.promisifiedCallback(e,n)).then(p,f)}catch(e){Promise.reject(e).catch(f)}}}freeSocket(e,t){c(`Freeing socket %o %o`,e.constructor.name,t),e.destroy()}destroy(){c(`Destroying agent %o`,this.constructor.name)}}e.Agent=t,e.prototype=e.Agent.prototype})(d||={}),n.exports=d})),
|
|
5
|
+
`)}function u(e){e?process.env.DEBUG=e:delete process.env.DEBUG}function d(){return process.env.DEBUG}function f(e){e.inspectOpts={};let t=Object.keys(n.inspectOpts);for(let r=0;r<t.length;r++)e.inspectOpts[t[r]]=n.inspectOpts[t[r]]}r.exports=Ut()(n);let{formatters:p}=r.exports;p.o=function(e){return this.inspectOpts.colors=this.useColors,a.inspect(e,this.inspectOpts).split(`
|
|
6
|
+
`).map(e=>e.trim()).join(` `)},p.O=function(e){return this.inspectOpts.colors=this.useColors,a.inspect(e,this.inspectOpts)}})),en=i(((e,t)=>{t.exports=typeof process>`u`||process.type===`renderer`||process.browser===!0||process.__nwjs?Wt():$t()})),tn=i((e=>{Object.defineProperty(e,"__esModule",{value:!0});function t(e){return function(t,n){return new Promise((r,i)=>{e.call(this,t,n,(e,t)=>{e?i(e):r(t)})})}}e.default=t})),nn=i(((e,n,r)=>{var i=r&&r.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};let a=t(`events`),o=i(en()),s=i(tn()),c=o.default(`agent-base`);function l(e){return!!e&&typeof e.addRequest==`function`}function u(){let{stack:e}=Error();return typeof e==`string`&&e.split(`
|
|
7
|
+
`).some(e=>e.indexOf(`(https.js:`)!==-1||e.indexOf(`node:https:`)!==-1)}function d(e,t){return new d.Agent(e,t)}(function(e){class t extends a.EventEmitter{constructor(e,t){super();let n=t;typeof e==`function`?this.callback=e:e&&(n=e),this.timeout=null,n&&typeof n.timeout==`number`&&(this.timeout=n.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:u()?443:80}set defaultPort(e){this.explicitDefaultPort=e}get protocol(){return typeof this.explicitProtocol==`string`?this.explicitProtocol:u()?`https:`:`http:`}set protocol(e){this.explicitProtocol=e}callback(e,t,n){throw Error('"agent-base" has no default implementation, you must subclass and override `callback()`')}addRequest(e,t){let n=Object.assign({},t);typeof n.secureEndpoint!=`boolean`&&(n.secureEndpoint=u()),n.host??=`localhost`,n.port??=n.secureEndpoint?443:80,n.protocol??=n.secureEndpoint?`https:`:`http:`,n.host&&n.path&&delete n.path,delete n.agent,delete n.hostname,delete n._defaultAgent,delete n.defaultPort,delete n.createConnection,e._last=!0,e.shouldKeepAlive=!1;let r=!1,i=null,a=n.timeout||this.timeout,o=t=>{e._hadError||=(e.emit(`error`,t),!0)},d=()=>{i=null,r=!0;let e=Error(`A "socket" was not created for HTTP request before ${a}ms`);e.code=`ETIMEOUT`,o(e)},f=e=>{r||(i!==null&&(clearTimeout(i),i=null),o(e))},p=t=>{if(r)return;if(i!=null&&(clearTimeout(i),i=null),l(t)){c(`Callback returned another Agent instance %o`,t.constructor.name),t.addRequest(e,n);return}if(t){t.once(`free`,()=>{this.freeSocket(t,n)}),e.onSocket(t);return}let a=Error(`no Duplex stream was returned to agent-base for \`${e.method} ${e.path}\``);o(a)};if(typeof this.callback!=`function`)o(Error("`callback` is not defined"));else{this.promisifiedCallback||(this.callback.length>=3?(c(`Converting legacy callback function to promise`),this.promisifiedCallback=s.default(this.callback)):this.promisifiedCallback=this.callback),typeof a==`number`&&a>0&&(i=setTimeout(d,a)),`port`in n&&typeof n.port!=`number`&&(n.port=Number(n.port));try{c(`Resolving socket for %o request: %o`,n.protocol,`${e.method} ${e.path}`),Promise.resolve(this.promisifiedCallback(e,n)).then(p,f)}catch(e){Promise.reject(e).catch(f)}}}freeSocket(e,t){c(`Freeing socket %o %o`,e.constructor.name,t),e.destroy()}destroy(){c(`Destroying agent %o`,this.constructor.name)}}e.Agent=t,e.prototype=e.Agent.prototype})(d||={}),n.exports=d})),rn=i(((e,t,n)=>{var r=n&&n.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0});let i=r(en()).default(`https-proxy-agent:parse-proxy-response`);function a(e){return new Promise((t,n)=>{let r=0,a=[];function o(){let t=e.read();t?d(t):e.once(`readable`,o)}function s(){e.removeListener(`end`,l),e.removeListener(`error`,u),e.removeListener(`close`,c),e.removeListener(`readable`,o)}function c(e){i(`onclose had error %o`,e)}function l(){i(`onend`)}function u(e){s(),i(`onerror %o`,e),n(e)}function d(e){a.push(e),r+=e.length;let n=Buffer.concat(a,r);if(n.indexOf(`\r
|
|
8
8
|
\r
|
|
9
9
|
`)===-1){i(`have not received end of HTTP headers yet...`),o();return}let s=n.toString(`ascii`,0,n.indexOf(`\r
|
|
10
|
-
`)),c=+s.split(` `)[1];i(`got proxy server response: %o`,s),t({statusCode:c,buffered:n})}e.on(`error`,u),e.on(`close`,c),e.on(`end`,l),o()})}e.default=a})),Xt=i(((e,n,r)=>{var i=r&&r.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},a=r&&r.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0});let o=a(t(`net`)),s=a(t(`tls`)),c=a(t(`url`)),l=a(t(`assert`)),u=a(Kt()),d=Jt(),f=a(Yt()),p=u.default(`https-proxy-agent:agent`);e.default=class extends d.Agent{constructor(e){let t;if(t=typeof e==`string`?c.default.parse(e):e,!t)throw Error("an HTTP(S) proxy server `host` and `port` must be specified!");p(`creating new HttpsProxyAgent instance: %o`,t),super(t);let n=Object.assign({},t);this.secureProxy=t.secureProxy||g(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(e,t){return i(this,void 0,void 0,function*(){let{proxy:n,secureProxy:r}=this,i;r?(p("Creating `tls.Socket`: %o",n),i=s.default.connect(n)):(p("Creating `net.Socket`: %o",n),i=o.default.connect(n));let a=Object.assign({},n.headers),c=`CONNECT ${`${t.host}:${t.port}`} HTTP/1.1\r\n`;n.auth&&(a[`Proxy-Authorization`]=`Basic ${Buffer.from(n.auth).toString(`base64`)}`);let{host:u,port:d,secureEndpoint:g}=t;h(d,g)||(u+=`:${d}`),a.Host=u,a.Connection=`close`;for(let e of Object.keys(a))c+=`${e}: ${a[e]}\r\n`;let v=f.default(i);i.write(`${c}\r\n`);let{statusCode:y,buffered:b}=yield v;if(y===200){if(e.once(`socket`,m),t.secureEndpoint){p(`Upgrading socket connection to TLS`);let e=t.servername||t.host;return s.default.connect(Object.assign(Object.assign({},_(t,`host`,`hostname`,`path`,`port`)),{socket:i,servername:e}))}return i}i.destroy();let x=new o.default.Socket({writable:!1});return x.readable=!0,e.once(`socket`,e=>{p(`replaying proxy buffer for failed request`),l.default(e.listenerCount(`data`)>0),e.push(b),e.push(null)}),x})}};function m(e){e.resume()}function h(e,t){return!!(!t&&e===80||t&&e===443)}function g(e){return typeof e==`string`&&/^https:?$/i.test(e)}function _(e,...t){let n={},r;for(r in e)t.includes(r)||(n[r]=e[r]);return n}})),Zt=i(((e,t,n)=>{let r=(n&&n.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(Xt());function i(e){return new r.default(e)}(function(e){e.HttpsProxyAgent=r.default,e.prototype=r.default.prototype})(i||={}),t.exports=i})),Qt=i(((e,t)=>{var n;t.exports=function(){if(!n){try{n=Kt()(`follow-redirects`)}catch{}typeof n!=`function`&&(n=function(){})}n.apply(null,arguments)}})),$t=i(((e,n)=>{var r=t(`url`),i=r.URL,a=t(`http`),o=t(`https`),s=t(`stream`).Writable,c=t(`assert`),l=Qt();(function(){var e=typeof process<`u`,t=typeof window<`u`&&typeof document<`u`,n=P(Error.captureStackTrace);e||!t&&n||console.warn(`The follow-redirects package should be excluded from browser builds.`)})();var u=!1;try{c(new i(``))}catch(e){u=e.code===`ERR_INVALID_URL`}var d=[`Authorization`,`Proxy-Authorization`,`Cookie`],f=[`auth`,`host`,`hostname`,`href`,`path`,`pathname`,`port`,`protocol`,`query`,`search`,`hash`],p=[`abort`,`aborted`,`connect`,`error`,`socket`,`timeout`],m=Object.create(null);p.forEach(function(e){m[e]=function(t,n,r){this._redirectable.emit(e,t,n,r)}});var h=k(`ERR_INVALID_URL`,`Invalid URL`,TypeError),g=k(`ERR_FR_REDIRECTION_FAILURE`,`Redirected request failed`),_=k(`ERR_FR_TOO_MANY_REDIRECTS`,`Maximum number of redirects exceeded`,g),v=k(`ERR_FR_MAX_BODY_LENGTH_EXCEEDED`,`Request body larger than maxBodyLength limit`),y=k(`ERR_STREAM_WRITE_AFTER_END`,`write after end`),b=s.prototype.destroy||C;function x(e,t){s.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 n=this;this._onNativeResponse=function(e){try{n._processResponse(e)}catch(e){n.emit(`error`,e instanceof g?e:new g({cause:e}))}},this._headerFilter=RegExp(`^(?:`+d.concat(e.sensitiveHeaders).map(L).join(`|`)+`)$`,`i`),this._performRequest()}x.prototype=Object.create(s.prototype),x.prototype.abort=function(){A(this._currentRequest),this._currentRequest.abort(),this.emit(`abort`)},x.prototype.destroy=function(e){return A(this._currentRequest,e),b.call(this,e),this},x.prototype.write=function(e,t,n){if(this._ending)throw new y;if(!N(e)&&!F(e))throw TypeError(`data should be a string, Buffer or Uint8Array`);P(t)&&(n=t,t=null),e.length===0?n&&n():this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:t}),this._currentRequest.write(e,t,n)):(this.emit(`error`,new v),this.abort())},x.prototype.end=function(e,t,n){if(P(e)?(n=e,e=t=null):P(t)&&(n=t,t=null),!e)this._ended=this._ending=!0,this._currentRequest.end(null,null,n);else{var r=this,i=this._currentRequest;this.write(e,t,function(){r._ended=!0,i.end(null,null,n)}),this._ending=!0}},x.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)},x.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)},x.prototype.setTimeout=function(e,t){var n=this;function r(t){t.setTimeout(e),t.removeListener(`timeout`,t.destroy),t.addListener(`timeout`,t.destroy)}function i(t){n._timeout&&clearTimeout(n._timeout),n._timeout=setTimeout(function(){n.emit(`timeout`),a()},e),r(t)}function a(){n._timeout&&=(clearTimeout(n._timeout),null),n.removeListener(`abort`,a),n.removeListener(`error`,a),n.removeListener(`response`,a),n.removeListener(`close`,a),t&&n.removeListener(`timeout`,t),n.socket||n._currentRequest.removeListener(`socket`,i)}return t&&this.on(`timeout`,t),this.socket?i(this.socket):this._currentRequest.once(`socket`,i),this.on(`socket`,r),this.on(`abort`,a),this.on(`error`,a),this.on(`response`,a),this.on(`close`,a),this},[`flushHeaders`,`getHeader`,`setNoDelay`,`setSocketKeepAlive`].forEach(function(e){x.prototype[e]=function(t,n){return this._currentRequest[e](t,n)}}),[`aborted`,`connection`,`socket`].forEach(function(e){Object.defineProperty(x.prototype,e,{get:function(){return this._currentRequest[e]}})}),x.prototype._sanitizeOptions=function(e){if(e.headers||={},M(e.sensitiveHeaders)||(e.sensitiveHeaders=[]),e.host&&(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))}},x.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(!t)throw TypeError(`Unsupported protocol `+e);if(this._options.agents){var n=e.slice(0,-1);this._options.agent=this._options.agents[n]}var i=this._currentRequest=t.request(this._options,this._onNativeResponse);i._redirectable=this;for(var a of p)i.on(a,m[a]);if(this._currentUrl=/^\//.test(this._options.path)?r.format(this._options):this._options.path,this._isRedirect){var o=0,s=this,c=this._requestBodyBuffers;(function e(t){if(i===s._currentRequest){if(t)s.emit(`error`,t);else if(o<c.length){var n=c[o++];i.finished||i.write(n.data,n.encoding,e)}else s._ended&&i.end()}})()}},x.prototype._processResponse=function(e){var t=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:t});var n=e.headers.location;if(!n||this._options.followRedirects===!1||t<300||t>=400)e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit(`response`,e),this._requestBodyBuffers=[];else{if(A(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects)throw new _;var i,a=this._options.beforeRedirect;a&&(i=Object.assign({Host:e.req.getHeader(`host`)},this._options.headers));var o=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=[],O(/^content-/i,this._options.headers));var s=O(/^host$/i,this._options.headers),c=w(this._currentUrl),u=s||c.host,d=/^\w+:/.test(n)?this._currentUrl:r.format(Object.assign(c,{host:u})),f=T(n,d);if(l(`redirecting to`,f.href),this._isRedirect=!0,D(f,this._options),(f.protocol!==c.protocol&&f.protocol!==`https:`||f.host!==u&&!j(f.host,u))&&O(this._headerFilter,this._options.headers),P(a)){var p={headers:e.headers,statusCode:t},m={url:d,method:o,headers:i};a(this._options,p,m),this._sanitizeOptions(this._options)}this._performRequest()}};function S(e){var t={maxRedirects:21,maxBodyLength:10485760},n={};return Object.keys(e).forEach(function(r){var i=r+`:`,a=n[i]=e[r],o=t[r]=Object.create(a);function s(e,r,a){return I(e)?e=D(e):N(e)?e=D(w(e)):(a=r,r=E(e),e={protocol:i}),P(r)&&(a=r,r=null),r=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},e,r),r.nativeProtocols=n,!N(r.host)&&!N(r.hostname)&&(r.hostname=`::1`),c.equal(r.protocol,i,`protocol mismatch`),l(`options`,r),new x(r,a)}function u(e,t,n){var r=o.request(e,t,n);return r.end(),r}Object.defineProperties(o,{request:{value:s,configurable:!0,enumerable:!0,writable:!0},get:{value:u,configurable:!0,enumerable:!0,writable:!0}})}),t}function C(){}function w(e){var t;if(u)t=new i(e);else if(t=E(r.parse(e)),!N(t.protocol))throw new h({input:e});return t}function T(e,t){return u?new i(e,t):w(r.resolve(t,e))}function E(e){if(/^\[/.test(e.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(e.hostname)||/^\[/.test(e.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(e.host))throw new h({input:e.href||e});return e}function D(e,t){var n=t||{};for(var r of f)n[r]=e[r];return n.hostname.startsWith(`[`)&&(n.hostname=n.hostname.slice(1,-1)),n.port!==``&&(n.port=Number(n.port)),n.path=n.search?n.pathname+n.search:n.pathname,n}function O(e,t){var n;for(var r in t)e.test(r)&&(n=t[r],delete t[r]);return n==null?void 0:String(n).trim()}function k(e,t,n){function r(n){P(Error.captureStackTrace)&&Error.captureStackTrace(this,this.constructor),Object.assign(this,n||{}),this.code=e,this.message=this.cause?t+`: `+this.cause.message:t}return r.prototype=new(n||Error),Object.defineProperties(r.prototype,{constructor:{value:r,enumerable:!1},name:{value:`Error [`+e+`]`,enumerable:!1}}),r}function A(e,t){for(var n of p)e.removeListener(n,m[n]);e.on(`error`,C),e.destroy(t)}function j(e,t){c(N(e)&&N(t));var n=e.length-t.length-1;return n>0&&e[n]===`.`&&e.endsWith(t)}function M(e){return e instanceof Array}function N(e){return typeof e==`string`||e instanceof String}function P(e){return typeof e==`function`}function F(e){return typeof e==`object`&&`length`in e}function I(e){return i&&e instanceof i}function L(e){return e.replace(/[\]\\/()*+?.$]/g,`\\$&`)}n.exports=S({http:a,https:o}),n.exports.wrap=S})),en=i(((e,n)=>{var r=Pt(),i=t(`crypto`),a=t(`url`),o=Zt(),s=t(`http`),c=t(`https`),l=t(`http2`),u=t(`util`),d=t(`path`),f=$t(),p=t(`zlib`),m=t(`stream`),h=t(`events`);function g(e,t){return function(){return e.apply(t,arguments)}}let{toString:_}=Object.prototype,{getPrototypeOf:v}=Object,{iterator:y,toStringTag:b}=Symbol,x=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),S=e=>typeof e==`string`&&(e===`__proto__`||e===`constructor`||e===`prototype`),C=(e,t,n)=>e===Object.prototype||!n&&t===null,w=e=>{if(!Object.isExtensible(e))return!1;let t=Object.getOwnPropertyNames(e);return Object.getOwnPropertySymbols&&t.push(...Object.getOwnPropertySymbols(e)),t.every(t=>{if(S(t))return!1;let n=Object.getOwnPropertyDescriptor(e,t);return!!n&&n.configurable&&n.writable===!0})},T=(e,t)=>{let n=e,r=[];for(;n!=null;){if(r.indexOf(n)!==-1)return!1;r.push(n);let i=v(n);if(C(n,i,n===e))return!1;if(x(n,t))return!0;n=i}return!1},E=(e,t)=>e!=null&&T(e,t)?e[t]:void 0,D=e=>{if(e==null||typeof e!=`object`&&typeof e!=`function`)return e;let t=v(e);if(t===null&&w(e))return e;let n=Object.create(null),r=Object.create(null),i=[],a=e;for(;a!=null&&i.indexOf(a)===-1;){i.push(a);let o=a===e?t:v(a);if(C(a,o,a===e))break;let s=Object.getOwnPropertyNames(a);Object.getOwnPropertySymbols&&s.push(...Object.getOwnPropertySymbols(a));for(let t of s)S(t)||x(r,t)||(n[t]=e[t],r[t]=!0);a=o}return n},O=(e=>t=>{let n=_.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),k=e=>(e=e.toLowerCase(),t=>O(t)===e),A=e=>t=>typeof t===e,{isArray:j}=Array,M=A(`undefined`);function N(e){return e!==null&&!M(e)&&e.constructor!==null&&!M(e.constructor)&&L(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}let P=k(`ArrayBuffer`);function F(e){let t;return t=typeof ArrayBuffer<`u`&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&P(e.buffer),t}let I=A(`string`),L=A(`function`),R=A(`number`),z=e=>typeof e==`object`&&!!e,B=e=>e===!0||e===!1,V=e=>{if(!z(e))return!1;let t=v(e);return(t===null||t===Object.prototype||v(t)===null)&&!T(e,b)&&!T(e,y)},H=e=>{if(!z(e)||N(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},U=k(`Date`),W=k(`File`),ee=e=>!!(e&&e.uri!==void 0),te=e=>e&&e.getParts!==void 0,ne=k(`Blob`),re=k(`FileList`),ie=k(`Set`),ae=e=>z(e)&&L(e.pipe);function oe(){return typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{}}let se=oe(),ce=se.FormData===void 0?void 0:se.FormData,G=e=>{if(!e)return!1;if(ce&&e instanceof ce)return!0;let t=v(e);if(!t||t===Object.prototype||!L(e.append))return!1;let n=O(e);return n===`formdata`||n===`object`&&L(e.toString)&&e.toString()===`[object FormData]`},le=k(`URLSearchParams`),[ue,de,fe,pe]=[`ReadableStream`,`Request`,`Response`,`Headers`].map(k),me=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,``);function he(e,t,{allOwnKeys:n=!1}={}){if(e==null)return;let r,i;if(typeof e!=`object`&&(e=[e]),j(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(N(e))return;let i=n?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length,o;for(r=0;r<a;r++)o=i[r],t.call(null,e[o],o,e)}}function ge(e,t){if(N(e))return null;t=t.toLowerCase();let n=Object.keys(e),r=n.length,i;for(;r-->0;)if(i=n[r],t===i.toLowerCase())return i;return null}let _e=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:global,ve=e=>!M(e)&&e!==_e;function ye(...e){let{caseless:t,skipUndefined:n}=ve(this)&&this||{},r={},i=(e,i)=>{if(i===`__proto__`||i===`constructor`||i===`prototype`)return;let a=t&&typeof i==`string`&&ge(r,i)||i,o=x(r,a)?r[a]:void 0;V(o)&&V(e)?r[a]=ye(o,e):V(e)?r[a]=ye({},e):j(e)?r[a]=e.slice():n&&M(e)||(r[a]=e)};for(let t=0,n=e.length;t<n;t++){let n=e[t];if(!n||N(n)||(he(n,i),typeof n!=`object`||j(n)))continue;let r=Object.getOwnPropertySymbols(n);for(let e=0;e<r.length;e++){let t=r[e];je.call(n,t)&&i(n[t],t)}}return r}let be=(e,t,n,{allOwnKeys:r}={})=>(he(t,(t,r)=>{n&&L(t)?Object.defineProperty(e,r,{__proto__:null,value:g(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,r,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),xe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Se=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},Ce=(e,t,n,r)=>{let i,a,o,s={};if(t||={},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-->0;)o=i[a],r&&!r(o,e,t)||s[o]||(t[o]=e[o],s[o]=!0);e=n!==!1&&v(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},we=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;let r=e.indexOf(t,n);return r!==-1&&r===n},Te=e=>{if(!e)return null;if(j(e))return e;let t=e.length;if(!R(t))return null;let n=Array(t);for(;t-->0;)n[t]=e[t];return n},Ee=(e=>t=>e&&t instanceof e)(typeof Uint8Array<`u`&&v(Uint8Array)),De=(e,t)=>{let n=(e&&e[y]).call(e),r;for(;(r=n.next())&&!r.done;){let n=r.value;t.call(e,n[0],n[1])}},Oe=(e,t)=>{let n,r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},ke=k(`HTMLFormElement`),Ae=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),{propertyIsEnumerable:je}=Object.prototype,Me=k(`RegExp`),Ne=(e,t)=>{let n=Object.getOwnPropertyDescriptors(e),r={};he(n,(n,i)=>{let a;(a=t(n,i,e))!==!1&&(r[i]=a||n)}),Object.defineProperties(e,r)},Pe=e=>{Ne(e,(t,n)=>{if(L(e)&&[`arguments`,`caller`,`callee`].includes(n))return!1;let r=e[n];L(r)&&(t.enumerable=!1,`writable`in t?t.writable=!1:t.set||=()=>{throw Error(`Can not rewrite read-only method '`+n+`'`)})})},Fe=(e,t)=>{let n={},r=e=>{e.forEach(e=>{n[e]=!0})};return j(e)?r(e):r(String(e).split(t)),n},Ie=()=>{},Le=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Re(e){return!!(e&&L(e.append)&&e[b]===`FormData`&&e[y])}let ze=e=>{let t=new WeakSet,n=e=>{if(z(e)){if(t.has(e))return;if(N(e))return e;if(!(`toJSON`in e)){t.add(e);let r;if(ie(e)){r=[];for(let t of e){let e=n(t);!M(e)&&r.push(e)}}else r=j(e)?[]:{},he(e,(e,t)=>{let i=n(e);!M(i)&&(r[t]=i)});return t.delete(e),r}}return e};return n(e)},Be=k(`AsyncFunction`),Ve=e=>e&&(z(e)||L(e))&&L(e.then)&&L(e.catch),He=((e,t)=>e?setImmediate:t?((e,t)=>(_e.addEventListener(`message`,({source:n,data:r})=>{n===_e&&r===e&&t.length&&t.shift()()},!1),n=>{t.push(n),_e.postMessage(e,`*`)}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))(typeof setImmediate==`function`,L(_e.postMessage)),Ue=typeof queueMicrotask<`u`?queueMicrotask.bind(_e):typeof process<`u`&&process.nextTick||He,We=e=>e!=null&&L(e[y]);var K={isArray:j,isArrayBuffer:P,isBuffer:N,isFormData:G,isArrayBufferView:F,isString:I,isNumber:R,isBoolean:B,isObject:z,isPlainObject:V,isEmptyObject:H,isReadableStream:ue,isRequest:de,isResponse:fe,isHeaders:pe,isUndefined:M,isDate:U,isFile:W,isReactNativeBlob:ee,isReactNative:te,isBlob:ne,isRegExp:Me,isFunction:L,isStream:ae,isURLSearchParams:le,isTypedArray:Ee,isFileList:re,forEach:he,merge:ye,extend:be,trim:me,stripBOM:xe,inherits:Se,toFlatObject:Ce,kindOf:O,kindOfTest:k,endsWith:we,toArray:Te,forEachEntry:De,matchAll:Oe,isHTMLForm:ke,hasOwnProperty:x,hasOwnProp:x,hasOwnInPrototypeChain:T,getSafeProp:E,toSafeFlatObject:D,reduceDescriptors:Ne,freezeMethods:Pe,toObjectSet:Fe,toCamelCase:Ae,noop:Ie,toFiniteNumber:Le,findKey:ge,global:_e,isContextDefined:ve,isSpecCompliantForm:Re,toJSONObject:ze,isAsyncFn:Be,isThenable:Ve,setImmediate:He,asap:Ue,isIterable:We,isSafeIterable:e=>e!=null&&T(e,y)&&We(e)};let Ge=K.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`]);var Ke=e=>{let t={},n,r,i;return e&&e.split(`
|
|
10
|
+
`)),c=+s.split(` `)[1];i(`got proxy server response: %o`,s),t({statusCode:c,buffered:n})}e.on(`error`,u),e.on(`close`,c),e.on(`end`,l),o()})}e.default=a})),an=i(((e,n,r)=>{var i=r&&r.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},a=r&&r.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0});let o=a(t(`net`)),s=a(t(`tls`)),c=a(t(`url`)),l=a(t(`assert`)),u=a(en()),d=nn(),f=a(rn()),p=u.default(`https-proxy-agent:agent`);e.default=class extends d.Agent{constructor(e){let t;if(t=typeof e==`string`?c.default.parse(e):e,!t)throw Error("an HTTP(S) proxy server `host` and `port` must be specified!");p(`creating new HttpsProxyAgent instance: %o`,t),super(t);let n=Object.assign({},t);this.secureProxy=t.secureProxy||g(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(e,t){return i(this,void 0,void 0,function*(){let{proxy:n,secureProxy:r}=this,i;r?(p("Creating `tls.Socket`: %o",n),i=s.default.connect(n)):(p("Creating `net.Socket`: %o",n),i=o.default.connect(n));let a=Object.assign({},n.headers),c=`CONNECT ${`${t.host}:${t.port}`} HTTP/1.1\r\n`;n.auth&&(a[`Proxy-Authorization`]=`Basic ${Buffer.from(n.auth).toString(`base64`)}`);let{host:u,port:d,secureEndpoint:g}=t;h(d,g)||(u+=`:${d}`),a.Host=u,a.Connection=`close`;for(let e of Object.keys(a))c+=`${e}: ${a[e]}\r\n`;let v=f.default(i);i.write(`${c}\r\n`);let{statusCode:y,buffered:b}=yield v;if(y===200){if(e.once(`socket`,m),t.secureEndpoint){p(`Upgrading socket connection to TLS`);let e=t.servername||t.host;return s.default.connect(Object.assign(Object.assign({},_(t,`host`,`hostname`,`path`,`port`)),{socket:i,servername:e}))}return i}i.destroy();let x=new o.default.Socket({writable:!1});return x.readable=!0,e.once(`socket`,e=>{p(`replaying proxy buffer for failed request`),l.default(e.listenerCount(`data`)>0),e.push(b),e.push(null)}),x})}};function m(e){e.resume()}function h(e,t){return!!(!t&&e===80||t&&e===443)}function g(e){return typeof e==`string`&&/^https:?$/i.test(e)}function _(e,...t){let n={},r;for(r in e)t.includes(r)||(n[r]=e[r]);return n}})),on=i(((e,t,n)=>{let r=(n&&n.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(an());function i(e){return new r.default(e)}(function(e){e.HttpsProxyAgent=r.default,e.prototype=r.default.prototype})(i||={}),t.exports=i})),sn=i(((e,t)=>{var n;t.exports=function(){if(!n){try{n=en()(`follow-redirects`)}catch{}typeof n!=`function`&&(n=function(){})}n.apply(null,arguments)}})),cn=i(((e,n)=>{var r=t(`url`),i=r.URL,a=t(`http`),o=t(`https`),s=t(`stream`).Writable,c=t(`assert`),l=sn();(function(){var e=typeof process<`u`,t=typeof window<`u`&&typeof document<`u`,n=P(Error.captureStackTrace);e||!t&&n||console.warn(`The follow-redirects package should be excluded from browser builds.`)})();var u=!1;try{c(new i(``))}catch(e){u=e.code===`ERR_INVALID_URL`}var d=[`Authorization`,`Proxy-Authorization`,`Cookie`],f=[`auth`,`host`,`hostname`,`href`,`path`,`pathname`,`port`,`protocol`,`query`,`search`,`hash`],p=[`abort`,`aborted`,`connect`,`error`,`socket`,`timeout`],m=Object.create(null);p.forEach(function(e){m[e]=function(t,n,r){this._redirectable.emit(e,t,n,r)}});var h=k(`ERR_INVALID_URL`,`Invalid URL`,TypeError),g=k(`ERR_FR_REDIRECTION_FAILURE`,`Redirected request failed`),_=k(`ERR_FR_TOO_MANY_REDIRECTS`,`Maximum number of redirects exceeded`,g),v=k(`ERR_FR_MAX_BODY_LENGTH_EXCEEDED`,`Request body larger than maxBodyLength limit`),y=k(`ERR_STREAM_WRITE_AFTER_END`,`write after end`),b=s.prototype.destroy||C;function x(e,t){s.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 n=this;this._onNativeResponse=function(e){try{n._processResponse(e)}catch(e){n.emit(`error`,e instanceof g?e:new g({cause:e}))}},this._headerFilter=RegExp(`^(?:`+d.concat(e.sensitiveHeaders).map(L).join(`|`)+`)$`,`i`),this._performRequest()}x.prototype=Object.create(s.prototype),x.prototype.abort=function(){A(this._currentRequest),this._currentRequest.abort(),this.emit(`abort`)},x.prototype.destroy=function(e){return A(this._currentRequest,e),b.call(this,e),this},x.prototype.write=function(e,t,n){if(this._ending)throw new y;if(!N(e)&&!F(e))throw TypeError(`data should be a string, Buffer or Uint8Array`);P(t)&&(n=t,t=null),e.length===0?n&&n():this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:t}),this._currentRequest.write(e,t,n)):(this.emit(`error`,new v),this.abort())},x.prototype.end=function(e,t,n){if(P(e)?(n=e,e=t=null):P(t)&&(n=t,t=null),!e)this._ended=this._ending=!0,this._currentRequest.end(null,null,n);else{var r=this,i=this._currentRequest;this.write(e,t,function(){r._ended=!0,i.end(null,null,n)}),this._ending=!0}},x.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)},x.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)},x.prototype.setTimeout=function(e,t){var n=this;function r(t){t.setTimeout(e),t.removeListener(`timeout`,t.destroy),t.addListener(`timeout`,t.destroy)}function i(t){n._timeout&&clearTimeout(n._timeout),n._timeout=setTimeout(function(){n.emit(`timeout`),a()},e),r(t)}function a(){n._timeout&&=(clearTimeout(n._timeout),null),n.removeListener(`abort`,a),n.removeListener(`error`,a),n.removeListener(`response`,a),n.removeListener(`close`,a),t&&n.removeListener(`timeout`,t),n.socket||n._currentRequest.removeListener(`socket`,i)}return t&&this.on(`timeout`,t),this.socket?i(this.socket):this._currentRequest.once(`socket`,i),this.on(`socket`,r),this.on(`abort`,a),this.on(`error`,a),this.on(`response`,a),this.on(`close`,a),this},[`flushHeaders`,`getHeader`,`setNoDelay`,`setSocketKeepAlive`].forEach(function(e){x.prototype[e]=function(t,n){return this._currentRequest[e](t,n)}}),[`aborted`,`connection`,`socket`].forEach(function(e){Object.defineProperty(x.prototype,e,{get:function(){return this._currentRequest[e]}})}),x.prototype._sanitizeOptions=function(e){if(e.headers||={},M(e.sensitiveHeaders)||(e.sensitiveHeaders=[]),e.host&&(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))}},x.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(!t)throw TypeError(`Unsupported protocol `+e);if(this._options.agents){var n=e.slice(0,-1);this._options.agent=this._options.agents[n]}var i=this._currentRequest=t.request(this._options,this._onNativeResponse);i._redirectable=this;for(var a of p)i.on(a,m[a]);if(this._currentUrl=/^\//.test(this._options.path)?r.format(this._options):this._options.path,this._isRedirect){var o=0,s=this,c=this._requestBodyBuffers;(function e(t){if(i===s._currentRequest){if(t)s.emit(`error`,t);else if(o<c.length){var n=c[o++];i.finished||i.write(n.data,n.encoding,e)}else s._ended&&i.end()}})()}},x.prototype._processResponse=function(e){var t=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:t});var n=e.headers.location;if(!n||this._options.followRedirects===!1||t<300||t>=400)e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit(`response`,e),this._requestBodyBuffers=[];else{if(A(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects)throw new _;var i,a=this._options.beforeRedirect;a&&(i=Object.assign({Host:e.req.getHeader(`host`)},this._options.headers));var o=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=[],O(/^content-/i,this._options.headers));var s=O(/^host$/i,this._options.headers),c=w(this._currentUrl),u=s||c.host,d=/^\w+:/.test(n)?this._currentUrl:r.format(Object.assign(c,{host:u})),f=T(n,d);if(l(`redirecting to`,f.href),this._isRedirect=!0,D(f,this._options),(f.protocol!==c.protocol&&f.protocol!==`https:`||f.host!==u&&!j(f.host,u))&&O(this._headerFilter,this._options.headers),P(a)){var p={headers:e.headers,statusCode:t},m={url:d,method:o,headers:i};a(this._options,p,m),this._sanitizeOptions(this._options)}this._performRequest()}};function S(e){var t={maxRedirects:21,maxBodyLength:10485760},n={};return Object.keys(e).forEach(function(r){var i=r+`:`,a=n[i]=e[r],o=t[r]=Object.create(a);function s(e,r,a){return I(e)?e=D(e):N(e)?e=D(w(e)):(a=r,r=E(e),e={protocol:i}),P(r)&&(a=r,r=null),r=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},e,r),r.nativeProtocols=n,!N(r.host)&&!N(r.hostname)&&(r.hostname=`::1`),c.equal(r.protocol,i,`protocol mismatch`),l(`options`,r),new x(r,a)}function u(e,t,n){var r=o.request(e,t,n);return r.end(),r}Object.defineProperties(o,{request:{value:s,configurable:!0,enumerable:!0,writable:!0},get:{value:u,configurable:!0,enumerable:!0,writable:!0}})}),t}function C(){}function w(e){var t;if(u)t=new i(e);else if(t=E(r.parse(e)),!N(t.protocol))throw new h({input:e});return t}function T(e,t){return u?new i(e,t):w(r.resolve(t,e))}function E(e){if(/^\[/.test(e.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(e.hostname)||/^\[/.test(e.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(e.host))throw new h({input:e.href||e});return e}function D(e,t){var n=t||{};for(var r of f)n[r]=e[r];return n.hostname.startsWith(`[`)&&(n.hostname=n.hostname.slice(1,-1)),n.port!==``&&(n.port=Number(n.port)),n.path=n.search?n.pathname+n.search:n.pathname,n}function O(e,t){var n;for(var r in t)e.test(r)&&(n=t[r],delete t[r]);return n==null?void 0:String(n).trim()}function k(e,t,n){function r(n){P(Error.captureStackTrace)&&Error.captureStackTrace(this,this.constructor),Object.assign(this,n||{}),this.code=e,this.message=this.cause?t+`: `+this.cause.message:t}return r.prototype=new(n||Error),Object.defineProperties(r.prototype,{constructor:{value:r,enumerable:!1},name:{value:`Error [`+e+`]`,enumerable:!1}}),r}function A(e,t){for(var n of p)e.removeListener(n,m[n]);e.on(`error`,C),e.destroy(t)}function j(e,t){c(N(e)&&N(t));var n=e.length-t.length-1;return n>0&&e[n]===`.`&&e.endsWith(t)}function M(e){return e instanceof Array}function N(e){return typeof e==`string`||e instanceof String}function P(e){return typeof e==`function`}function F(e){return typeof e==`object`&&`length`in e}function I(e){return i&&e instanceof i}function L(e){return e.replace(/[\]\\/()*+?.$]/g,`\\$&`)}n.exports=S({http:a,https:o}),n.exports.wrap=S})),ln=i(((e,n)=>{var r=Ht(),i=t(`crypto`),a=t(`url`),o=on(),s=t(`http`),c=t(`https`),l=t(`http2`),u=t(`util`),d=t(`path`),f=cn(),p=t(`zlib`),m=t(`stream`),h=t(`events`);function g(e,t){return function(){return e.apply(t,arguments)}}let{toString:_}=Object.prototype,{getPrototypeOf:v}=Object,{iterator:y,toStringTag:b}=Symbol,x=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),S=e=>typeof e==`string`&&(e===`__proto__`||e===`constructor`||e===`prototype`),C=(e,t,n)=>e===Object.prototype||!n&&t===null,w=e=>{if(!Object.isExtensible(e))return!1;let t=Object.getOwnPropertyNames(e);return Object.getOwnPropertySymbols&&t.push(...Object.getOwnPropertySymbols(e)),t.every(t=>{if(S(t))return!1;let n=Object.getOwnPropertyDescriptor(e,t);return!!n&&n.configurable&&n.writable===!0})},T=(e,t)=>{let n=e,r=[];for(;n!=null;){if(r.indexOf(n)!==-1)return!1;r.push(n);let i=v(n);if(C(n,i,n===e))return!1;if(x(n,t))return!0;n=i}return!1},E=(e,t)=>e!=null&&T(e,t)?e[t]:void 0,D=e=>{if(e==null||typeof e!=`object`&&typeof e!=`function`)return e;let t=v(e);if(t===null&&w(e))return e;let n=Object.create(null),r=Object.create(null),i=[],a=e;for(;a!=null&&i.indexOf(a)===-1;){i.push(a);let o=a===e?t:v(a);if(C(a,o,a===e))break;let s=Object.getOwnPropertyNames(a);Object.getOwnPropertySymbols&&s.push(...Object.getOwnPropertySymbols(a));for(let t of s)S(t)||x(r,t)||(n[t]=e[t],r[t]=!0);a=o}return n},O=(e=>t=>{let n=_.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),k=e=>(e=e.toLowerCase(),t=>O(t)===e),A=e=>t=>typeof t===e,{isArray:j}=Array,M=A(`undefined`);function N(e){return e!==null&&!M(e)&&e.constructor!==null&&!M(e.constructor)&&L(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}let P=k(`ArrayBuffer`);function F(e){let t;return t=typeof ArrayBuffer<`u`&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&P(e.buffer),t}let I=A(`string`),L=A(`function`),R=A(`number`),z=e=>typeof e==`object`&&!!e,B=e=>e===!0||e===!1,V=e=>{if(!z(e))return!1;let t=v(e);return(t===null||t===Object.prototype||v(t)===null)&&!T(e,b)&&!T(e,y)},H=e=>{if(!z(e)||N(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},U=k(`Date`),W=k(`File`),ee=e=>!!(e&&e.uri!==void 0),te=e=>e&&e.getParts!==void 0,ne=k(`Blob`),re=k(`FileList`),ie=k(`Set`),ae=e=>z(e)&&L(e.pipe);function oe(){return typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{}}let se=oe(),ce=se.FormData===void 0?void 0:se.FormData,G=e=>{if(!e)return!1;if(ce&&e instanceof ce)return!0;let t=v(e);if(!t||t===Object.prototype||!L(e.append))return!1;let n=O(e);return n===`formdata`||n===`object`&&L(e.toString)&&e.toString()===`[object FormData]`},le=k(`URLSearchParams`),[ue,de,fe,pe]=[`ReadableStream`,`Request`,`Response`,`Headers`].map(k),me=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,``);function he(e,t,{allOwnKeys:n=!1}={}){if(e==null)return;let r,i;if(typeof e!=`object`&&(e=[e]),j(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(N(e))return;let i=n?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length,o;for(r=0;r<a;r++)o=i[r],t.call(null,e[o],o,e)}}function ge(e,t){if(N(e))return null;t=t.toLowerCase();let n=Object.keys(e),r=n.length,i;for(;r-->0;)if(i=n[r],t===i.toLowerCase())return i;return null}let _e=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:global,ve=e=>!M(e)&&e!==_e;function ye(...e){let{caseless:t,skipUndefined:n}=ve(this)&&this||{},r={},i=(e,i)=>{if(i===`__proto__`||i===`constructor`||i===`prototype`)return;let a=t&&typeof i==`string`&&ge(r,i)||i,o=x(r,a)?r[a]:void 0;V(o)&&V(e)?r[a]=ye(o,e):V(e)?r[a]=ye({},e):j(e)?r[a]=e.slice():n&&M(e)||(r[a]=e)};for(let t=0,n=e.length;t<n;t++){let n=e[t];if(!n||N(n)||(he(n,i),typeof n!=`object`||j(n)))continue;let r=Object.getOwnPropertySymbols(n);for(let e=0;e<r.length;e++){let t=r[e];je.call(n,t)&&i(n[t],t)}}return r}let be=(e,t,n,{allOwnKeys:r}={})=>(he(t,(t,r)=>{n&&L(t)?Object.defineProperty(e,r,{__proto__:null,value:g(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,r,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),xe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Se=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},Ce=(e,t,n,r)=>{let i,a,o,s={};if(t||={},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-->0;)o=i[a],r&&!r(o,e,t)||s[o]||(t[o]=e[o],s[o]=!0);e=n!==!1&&v(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},we=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;let r=e.indexOf(t,n);return r!==-1&&r===n},Te=e=>{if(!e)return null;if(j(e))return e;let t=e.length;if(!R(t))return null;let n=Array(t);for(;t-->0;)n[t]=e[t];return n},Ee=(e=>t=>e&&t instanceof e)(typeof Uint8Array<`u`&&v(Uint8Array)),De=(e,t)=>{let n=(e&&e[y]).call(e),r;for(;(r=n.next())&&!r.done;){let n=r.value;t.call(e,n[0],n[1])}},Oe=(e,t)=>{let n,r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},ke=k(`HTMLFormElement`),Ae=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),{propertyIsEnumerable:je}=Object.prototype,Me=k(`RegExp`),Ne=(e,t)=>{let n=Object.getOwnPropertyDescriptors(e),r={};he(n,(n,i)=>{let a;(a=t(n,i,e))!==!1&&(r[i]=a||n)}),Object.defineProperties(e,r)},Pe=e=>{Ne(e,(t,n)=>{if(L(e)&&[`arguments`,`caller`,`callee`].includes(n))return!1;let r=e[n];L(r)&&(t.enumerable=!1,`writable`in t?t.writable=!1:t.set||=()=>{throw Error(`Can not rewrite read-only method '`+n+`'`)})})},Fe=(e,t)=>{let n={},r=e=>{e.forEach(e=>{n[e]=!0})};return j(e)?r(e):r(String(e).split(t)),n},Ie=()=>{},Le=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Re(e){return!!(e&&L(e.append)&&e[b]===`FormData`&&e[y])}let ze=e=>{let t=new WeakSet,n=e=>{if(z(e)){if(t.has(e))return;if(N(e))return e;if(!(`toJSON`in e)){t.add(e);let r;if(ie(e)){r=[];for(let t of e){let e=n(t);!M(e)&&r.push(e)}}else r=j(e)?[]:{},he(e,(e,t)=>{let i=n(e);!M(i)&&(r[t]=i)});return t.delete(e),r}}return e};return n(e)},Be=k(`AsyncFunction`),Ve=e=>e&&(z(e)||L(e))&&L(e.then)&&L(e.catch),He=((e,t)=>e?setImmediate:t?((e,t)=>(_e.addEventListener(`message`,({source:n,data:r})=>{n===_e&&r===e&&t.length&&t.shift()()},!1),n=>{t.push(n),_e.postMessage(e,`*`)}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))(typeof setImmediate==`function`,L(_e.postMessage)),Ue=typeof queueMicrotask<`u`?queueMicrotask.bind(_e):typeof process<`u`&&process.nextTick||He,We=e=>e!=null&&L(e[y]);var K={isArray:j,isArrayBuffer:P,isBuffer:N,isFormData:G,isArrayBufferView:F,isString:I,isNumber:R,isBoolean:B,isObject:z,isPlainObject:V,isEmptyObject:H,isReadableStream:ue,isRequest:de,isResponse:fe,isHeaders:pe,isUndefined:M,isDate:U,isFile:W,isReactNativeBlob:ee,isReactNative:te,isBlob:ne,isRegExp:Me,isFunction:L,isStream:ae,isURLSearchParams:le,isTypedArray:Ee,isFileList:re,forEach:he,merge:ye,extend:be,trim:me,stripBOM:xe,inherits:Se,toFlatObject:Ce,kindOf:O,kindOfTest:k,endsWith:we,toArray:Te,forEachEntry:De,matchAll:Oe,isHTMLForm:ke,hasOwnProperty:x,hasOwnProp:x,hasOwnInPrototypeChain:T,getSafeProp:E,toSafeFlatObject:D,reduceDescriptors:Ne,freezeMethods:Pe,toObjectSet:Fe,toCamelCase:Ae,noop:Ie,toFiniteNumber:Le,findKey:ge,global:_e,isContextDefined:ve,isSpecCompliantForm:Re,toJSONObject:ze,isAsyncFn:Be,isThenable:Ve,setImmediate:He,asap:Ue,isIterable:We,isSafeIterable:e=>e!=null&&T(e,y)&&We(e)};let Ge=K.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`]);var Ke=e=>{let t={},n,r,i;return e&&e.split(`
|
|
11
11
|
`).forEach(function(e){i=e.indexOf(`:`),n=e.substring(0,i).trim().toLowerCase(),r=e.substring(i+1).trim();let a=K.hasOwnProp(t,n);!n||a&&K.hasOwnProp(Ge,n)||(n===`set-cookie`?a?t[n].push(r):t[n]=[r]:t[n]=a?t[n]+`, `+r:r)}),t};function qe(e){let t=0,n=e.length;for(;t<n;){let n=e.charCodeAt(t);if(n!==9&&n!==32)break;t+=1}for(;n>t;){let t=e.charCodeAt(n-1);if(t!==9&&t!==32)break;--n}return t===0&&n===e.length?e:e.slice(t,n)}let Je=RegExp(`[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+`,`g`),Ye=RegExp(`[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+`,`g`);function Xe(e,t){return K.isArray(e)?e.map(e=>Xe(e,t)):qe(String(e).replace(t,``))}let Ze=e=>Xe(e,Je),Qe=e=>Xe(e,Ye);function $e(e){let t=Object.create(null);return K.forEach(e.toJSON(),(e,n)=>{t[n]=Qe(e)}),t}let et=Symbol(`internals`);function tt(e){return e&&String(e).trim().toLowerCase()}function nt(e){return e===!1||e==null?e:K.isArray(e)?e.map(nt):Ze(String(e))}function rt(e){let t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}let it=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function at(e){let t=0,n=e.length;for(;t<n;){let n=e.charCodeAt(t);if(n!==9&&n!==32)break;t+=1}for(;n>t;){let t=e.charCodeAt(n-1);if(t!==9&&t!==32)break;--n}return t===0&&n===e.length?e:e.slice(t,n)}function ot(e){let t=e.length-1;if(t<1||e.charCodeAt(0)!==34||e.charCodeAt(t)!==34)return e;let n=``;for(let r=1;r<t;r++){let i=e.charCodeAt(r);if(i===34||i===92&&(r+=1,r>=t))return e;n+=e[r]}return n}function st(e){let t=Object.create(null),n=String(e),r=0,i=!1,a=!1;function o(e){let i=at(n.slice(r,e)),a=i.indexOf(`=`);if(a<1)return;let o=at(i.slice(0,a));if(!it.test(o))return;let s=o.toLowerCase();if(s===`__proto__`||s===`constructor`||s===`prototype`)return;let c=at(i.slice(a+1));t[s]=ot(c)}for(let e=0;e<n.length;e++){let t=n.charCodeAt(e);i?a?a=!1:t===92?a=!0:t===34&&(i=!1):t===34?i=!0:(t===44||t===59)&&(o(e),r=e+1)}return o(n.length),t}let ct=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function lt(e,t,n,r,i){if(K.isFunction(r))return r.call(this,t,n);if(i&&(t=n),K.isString(t)){if(K.isString(r))return t.indexOf(r)!==-1;if(K.isRegExp(r))return r.test(t)}}function ut(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}function dt(e,t){let n=K.toCamelCase(` `+t);[`get`,`set`,`has`].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(e,n,i){return this[r].call(this,t,e,n,i)},configurable:!0})})}var q=class{constructor(e){e&&this.set(e)}set(e,t,n){let r=this;function i(e,t,n){let i=tt(t);if(!i)return;let a=K.findKey(r,i);(!a||r[a]===void 0||n===!0||n===void 0&&r[a]!==!1)&&(r[a||t]=nt(e))}let a=(e,t)=>K.forEach(e,(e,n)=>i(e,n,t));if(K.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(K.isString(e)&&(e=e.trim())&&!ct(e))a(Ke(e),t);else if(K.isObject(e)&&K.isSafeIterable(e)){let n=Object.create(null),r,i;for(let t of e){if(!K.isArray(t))throw TypeError(`Object iterator must return a key-value pair`);i=t[0],K.hasOwnProp(n,i)?(r=n[i],n[i]=K.isArray(r)?[...r,t[1]]:[r,t[1]]):n[i]=t[1]}a(n,t)}else e!=null&&i(t,e,n);return this}get(e,t){if(e=tt(e),e){let n=K.findKey(this,e);if(n){let e=this[n];if(!t)return e;if(t===!0)return rt(e);if(K.isFunction(t))return t.call(this,e,n);if(K.isRegExp(t))return t.exec(e);throw TypeError(`parser must be boolean|regexp|function`)}}}has(e,t){if(e=tt(e),e){let n=K.findKey(this,e);return!(!n||this[n]===void 0||t&&!lt(this,this[n],n,t))}return!1}delete(e,t){let n=this,r=!1;function i(e){if(e=tt(e),e){let i=K.findKey(n,e);i&&(!t||lt(n,n[i],i,t))&&(delete n[i],r=!0)}}return K.isArray(e)?e.forEach(i):i(e),r}clear(e){let t=Object.keys(this),n=t.length,r=!1;for(;n--;){let i=t[n];(!e||lt(this,this[i],i,e,!0))&&(delete this[i],r=!0)}return r}normalize(e){let t=this,n={};return K.forEach(this,(r,i)=>{let a=K.findKey(n,i);if(a){t[a]=nt(r),delete t[i];return}let o=e?ut(i):String(i).trim();o!==i&&delete t[i],t[o]=nt(r),n[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return K.forEach(this,(n,r)=>{n!=null&&n!==!1&&(t[r]=e&&K.isArray(n)?n.join(`, `):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+`: `+t).join(`
|
|
12
|
-
`)}getSetCookie(){let e=this.get(`set-cookie`);return K.isArray(e)?e:e==null||e===!1?[]:[e]}get[Symbol.toStringTag](){return`AxiosHeaders`}static from(e){return e instanceof this?e:new this(e)}static parseParameters(e){return st(e)}static concat(e,...t){let n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){let t=(this[et]=this[et]={accessors:{}}).accessors,n=this.prototype;function r(e){let r=tt(e);t[r]||(dt(n,e),t[r]=!0)}return K.isArray(e)?e.forEach(r):r(e),this}};q.accessor([`Content-Type`,`Content-Length`,`Accept`,`Accept-Encoding`,`User-Agent`,`Authorization`]),K.reduceDescriptors(q.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),K.freezeMethods(q);let ft=`[REDACTED ****]`;function pt(e){if(K.hasOwnProp(e,`toJSON`))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(K.hasOwnProp(t,`toJSON`))return!0;t=Object.getPrototypeOf(t)}return!1}function mt(e,t){let n=new Set(t.map(e=>String(e).toLowerCase())),r=[],i=e=>{if(typeof e!=`object`||!e||K.isBuffer(e))return e;if(r.indexOf(e)!==-1)return;e instanceof q&&(e=e.toJSON()),r.push(e);let t;if(K.isArray(e))t=[],e.forEach((e,n)=>{let r=i(e);K.isUndefined(r)||(t[n]=r)});else{if(!K.isPlainObject(e)&&pt(e))return r.pop(),e;t=Object.create(null);for(let[r,a]of Object.entries(e)){let e=n.has(r.toLowerCase())?ft:i(a);K.isUndefined(e)||(t[r]=e)}}return r.pop(),t};return i(e)}function ht(e){try{return String(e)}catch{return``}}function gt(e){return e.errors.map(e=>{try{return e&&e.message?ht(e.message):ht(e)}catch{return``}}).filter(Boolean).join(`; `)||e.name||`AggregateError`}var J=class e extends Error{static from(t,n,r,i,a,o){let s=t.message;!s&&K.isArray(t.errors)&&t.errors.length&&(s=gt(t));let c=new e(s,n||t.code,r,i,a);return Object.defineProperty(c,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),c.name=t.name,t.status!=null&&c.status==null&&(c.status=t.status),o&&Object.assign(c,o),c}constructor(e,t,n,r,i){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name=`AxiosError`,this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status)}toJSON(){let e=this.config,t=e&&K.hasOwnProp(e,`redact`)?e.redact:void 0,n=K.isArray(t)&&t.length>0?mt(e,t):K.toJSONObject(e);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}}};J.ERR_BAD_OPTION_VALUE=`ERR_BAD_OPTION_VALUE`,J.ERR_BAD_OPTION=`ERR_BAD_OPTION`,J.ECONNABORTED=`ECONNABORTED`,J.ETIMEDOUT=`ETIMEDOUT`,J.ECONNREFUSED=`ECONNREFUSED`,J.ERR_NETWORK=`ERR_NETWORK`,J.ERR_FR_TOO_MANY_REDIRECTS=`ERR_FR_TOO_MANY_REDIRECTS`,J.ERR_DEPRECATED=`ERR_DEPRECATED`,J.ERR_BAD_RESPONSE=`ERR_BAD_RESPONSE`,J.ERR_BAD_REQUEST=`ERR_BAD_REQUEST`,J.ERR_CANCELED=`ERR_CANCELED`,J.ERR_NOT_SUPPORT=`ERR_NOT_SUPPORT`,J.ERR_INVALID_URL=`ERR_INVALID_URL`,J.ERR_FORM_DATA_DEPTH_EXCEEDED=`ERR_FORM_DATA_DEPTH_EXCEEDED`;var _t={isBufferAvailable(){return typeof Buffer<`u`},from(e){return Buffer.from(e)}};function vt(e){return K.isPlainObject(e)||K.isArray(e)}function yt(e){return K.endsWith(e,`[]`)?e.slice(0,-2):e}function bt(e,t,n){return e?e.concat(t).map(function(e,t){return e=yt(e),!n&&t?`[`+e+`]`:e}).join(n?`.`:``):t}function xt(e){return K.isArray(e)&&!e.some(vt)}let St=K.toFlatObject(K,{},null,function(e){return/^is[A-Z]/.test(e)});function Ct(e,t,n){if(!K.isObject(e))throw TypeError(`target must be an object`);t||=new(r||FormData);let i=(e,t)=>{let r=K.getSafeProp(n,e);return K.isUndefined(r)?t:r},a=i(`metaTokens`,!0),o=i(`visitor`)||g,s=i(`dots`,!1),c=i(`indexes`,!1),l=i(`Blob`)||typeof Blob<`u`&&Blob,u=i(`maxDepth`,100),d=l&&K.isSpecCompliantForm(t),f=[];if(!K.isFunction(o))throw TypeError(`visitor must be a function`);function p(e){if(e===null)return``;if(K.isDate(e))return e.toISOString();if(K.isBoolean(e))return e.toString();if(!d&&K.isBlob(e))throw new J(`Blob is not supported. Use a Buffer instead.`);if(K.isArrayBuffer(e)||K.isTypedArray(e)){if(d&&typeof l==`function`)return new l([e]);if(_t&&_t.isBufferAvailable())return _t.from(e);throw new J(`Blob is not supported. Use a Buffer instead.`,J.ERR_NOT_SUPPORT)}return e}function m(e){if(e>u)throw new J(`Object is too deeply nested (`+e+` levels). Max depth: `+u,J.ERR_FORM_DATA_DEPTH_EXCEEDED)}function h(e,t){if(u===1/0)return JSON.stringify(e);let n=[];return JSON.stringify(e,function(e,r){if(!K.isObject(r))return r;for(;n.length&&n[n.length-1]!==this;)n.pop();return n.push(r),m(t+n.length-1),r})}function g(e,n,r){let i=e;if(K.isReactNative(t)&&K.isReactNativeBlob(e))return t.append(bt(r,n,s),p(e)),!1;if(e&&!r&&typeof e==`object`){if(K.endsWith(n,`{}`))n=a?n:n.slice(0,-2),e=h(e,1);else if(K.isArray(e)&&xt(e)||(K.isFileList(e)||K.endsWith(n,`[]`))&&(i=K.toArray(e)))return n=yt(n),i.forEach(function(e,r){!(K.isUndefined(e)||e===null)&&t.append(c===!0?bt([n],r,s):c===null?n:n+`[]`,p(e))}),!1}return vt(e)?!0:(t.append(bt(r,n,s),p(e)),!1)}let _=Object.assign(St,{defaultVisitor:g,convertValue:p,isVisitable:vt});function v(e,n,r=0){if(!K.isUndefined(e)){if(m(r),f.indexOf(e)!==-1)throw Error(`Circular reference detected in `+n.join(`.`));f.push(e),K.forEach(e,function(e,i){(!(K.isUndefined(e)||e===null)&&o.call(t,e,K.isString(i)?i.trim():i,n,_))===!0&&v(e,n?n.concat(i):[i],r+1)}),f.pop()}}if(!K.isObject(e))throw TypeError(`data must be an object`);return v(e),t}function wt(e){let t={"!":`%21`,"'":`%27`,"(":`%28`,")":`%29`,"~":`%7E`,"%20":`+`};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function Tt(e,t){this._pairs=[],e&&Ct(e,this,t)}let Et=Tt.prototype;Et.append=function(e,t){this._pairs.push([e,t])},Et.toString=function(e){let t=e?t=>e.call(this,t,wt):wt;return this._pairs.map(function(e){return t(e[0])+`=`+t(e[1])},``).join(`&`)};function Dt(e){return encodeURIComponent(e).replace(/%3A/gi,`:`).replace(/%24/g,`$`).replace(/%2C/gi,`,`).replace(/%20/g,`+`)}function Ot(e,t,n){if(!t)return e;e||=``;let r=K.isFunction(n)?{serialize:n}:n,i=K.getSafeProp(r,`encode`)||Dt,a=K.getSafeProp(r,`serialize`),o;if(o=a?a(t,r):K.isURLSearchParams(t)?t.toString():new Tt(t,r).toString(i),o){let t=e.indexOf(`#`);t!==-1&&(e=e.slice(0,t)),e+=(e.indexOf(`?`)===-1?`?`:`&`)+o}return e}let kt=Symbol(`internals`);function At(e){return e?e.length:0}function jt(e){if(e)for(;e.length&&e[e.length-1]===null;)e.pop()}function Mt(e,t){let n=e.handlers,r=At(n);n===t.handlersRef?r!==t.handlersLength&&(r?t.handlerEntries.forEach(function(e,r){n[e.index]!==e.handler&&t.handlerEntries.delete(r)}):t.handlerEntries.clear()):(t.handlersRef=n,t.handlerEntries.clear()),t.handlersLength=r}var Nt=class{constructor(){this.handlers=[],this[kt]={handlersRef:this.handlers,handlersLength:this.handlers.length,handlerEntries:new Map,iterationDepth:0,nextId:0}}use(e,t,n){let r={fulfilled:e,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null},i=this[kt];this.handlers??=[],Mt(this,i);let a=i.nextId++;return this.handlers.push(r),i.handlerEntries.set(a,{handler:r,index:this.handlers.length-1}),i.handlersLength=this.handlers.length,a}eject(e){let t=this[kt];Mt(this,t);let n=t.handlerEntries.get(e);if(n){if(t.handlerEntries.delete(e),this.handlers[n.index]!==n.handler)return;this.handlers[n.index]=null,t.iterationDepth||(jt(this.handlers),t.handlersLength=this.handlers.length)}}clear(){this.handlers&&(this.handlers=[],Mt(this,this[kt]))}forEach(e){let t=this[kt];Mt(this,t),t.iterationDepth++;try{K.forEach(this.handlers,function(t){t!==null&&e(t)})}finally{--t.iterationDepth||(Mt(this,t),jt(this.handlers),t.handlersLength=At(this.handlers))}}},Ft={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},It=a.URLSearchParams;let Lt=`abcdefghijklmnopqrstuvwxyz`,Rt=`0123456789`,zt={DIGIT:Rt,ALPHA:Lt,ALPHA_DIGIT:Lt+`ABCDEFGHIJKLMNOPQRSTUVWXYZ`+Rt};var Bt={isNode:!0,classes:{URLSearchParams:It,FormData:r,Blob:typeof Blob<`u`&&Blob||null},ALPHABET:zt,generateString:(e=16,t=zt.ALPHA_DIGIT)=>{let n=``,{length:r}=t,a=new Uint32Array(e);i.randomFillSync(a);for(let i=0;i<e;i++)n+=t[a[i]%r];return n},protocols:[`http`,`https`,`file`,`data`]};let Vt=typeof window<`u`&&typeof document<`u`,Ht=typeof navigator==`object`&&navigator||void 0,Y=Vt&&(!Ht||[`ReactNative`,`NativeScript`,`NS`].indexOf(Ht.product)<0),Ut=typeof WorkerGlobalScope<`u`&&self instanceof WorkerGlobalScope&&typeof self.importScripts==`function`,Wt=Vt&&window.location.href||`http://localhost`;var X={...Object.freeze({__proto__:null,hasBrowserEnv:Vt,hasStandardBrowserEnv:Y,hasStandardBrowserWebWorkerEnv:Ut,navigator:Ht,origin:Wt}),...Bt};function Gt(e,t){return Ct(e,new X.classes.URLSearchParams,{visitor:function(e,t,n,r){return X.isNode&&K.isBuffer(e)?(this.append(t,e.toString(`base64`)),!1):r.defaultVisitor.apply(this,arguments)},...t})}function Kt(e){if(e>100)throw new J(`FormData field is too deeply nested (`+e+` levels). Max depth: 100`,J.ERR_FORM_DATA_DEPTH_EXCEEDED)}function qt(e){let t=[],n=/[^.[\]]+|\[([^.[\]]*)]/g,r;for(;(r=n.exec(e))!==null;)Kt(t.length),t.push(r[0]===`[]`?``:r[1]||r[0]);return t}function Jt(e){let t={},n=Object.keys(e),r,i=n.length,a;for(r=0;r<i;r++)a=n[r],t[a]=e[a];return t}function Yt(e){function t(e,n,r,i){Kt(i);let a=e[i++];if(a===`__proto__`)return!0;let o=Number.isFinite(+a),s=i>=e.length;return a=!a&&K.isArray(r)?r.length:a,s?(K.hasOwnProp(r,a)?r[a]=K.isArray(r[a])?r[a].concat(n):[r[a],n]:r[a]=n,!o):(K.hasOwnProp(r,a)&&K.isObject(r[a])||(r[a]=[]),t(e,n,r[a],i)&&K.isArray(r[a])&&(r[a]=Jt(r[a])),!o)}if(K.isFormData(e)&&K.isFunction(e.entries)){let n={};return K.forEachEntry(e,(e,r)=>{t(qt(e),r,n,0)}),n}return null}let Xt=Object.freeze([`get`,`delete`,`head`,`options`,`post`,`put`,`patch`,`purge`,`link`,`unlink`,`query`]),Qt=(e,t)=>e!=null&&K.hasOwnProp(e,t)?e[t]:void 0;function en(e,t,n){if(K.isString(e))try{return(t||JSON.parse)(e),K.trim(e)}catch(e){if(e.name!==`SyntaxError`)throw e}return(n||JSON.stringify)(e)}let tn={transitional:Ft,adapter:[`xhr`,`http`,`fetch`],transformRequest:[function(e,t){let n=t.getContentType()||``,r=n.indexOf(`application/json`)>-1,i=K.isObject(e);if(i&&K.isHTMLForm(e)&&(e=new FormData(e)),K.isFormData(e))return r?JSON.stringify(Yt(e)):e;if(K.isArrayBuffer(e)||K.isBuffer(e)||K.isStream(e)||K.isFile(e)||K.isBlob(e)||K.isReadableStream(e))return e;if(K.isArrayBufferView(e))return e.buffer;if(K.isURLSearchParams(e))return t.setContentType(`application/x-www-form-urlencoded;charset=utf-8`,!1),e.toString();let a;if(i){let t=Qt(this,`formSerializer`);if(n.indexOf(`application/x-www-form-urlencoded`)>-1)return Gt(e,t).toString();if((a=K.isFileList(e))||n.indexOf(`multipart/form-data`)>-1){let n=Qt(this,`env`),r=n&&n.FormData;return Ct(a?{"files[]":e}:e,r&&new r,t)}}return i||r?(t.setContentType(`application/json`,!1),en(e)):e}],transformResponse:[function(e){let t=Qt(this,`transitional`)||tn.transitional,n=t&&t.forcedJSONParsing,r=Qt(this,`responseType`),i=r===`json`;if(K.isResponse(e)||K.isReadableStream(e))return e;if(e&&K.isString(e)&&(n&&!r||i)){let n=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(e,Qt(this,`parseReviver`))}catch(e){if(n)throw e.name===`SyntaxError`?J.from(e,J.ERR_BAD_RESPONSE,this,null,Qt(this,`response`)):e}}return e}],timeout:0,xsrfCookieName:`XSRF-TOKEN`,xsrfHeaderName:`X-XSRF-TOKEN`,maxContentLength:-1,maxBodyLength:-1,env:{FormData:X.classes.FormData,Blob:X.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:`application/json, text/plain, */*`,"Content-Type":void 0}}};K.forEach(Xt,e=>{tn.headers[e]={}});function nn(e,t){let n=this||tn,r=t||n,i=q.from(r.headers),a=r.data;return K.forEach(e,function(e){a=e.call(n,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function rn(e){return!!(e&&e.__CANCEL__)}var an=class extends J{constructor(e,t,n){super(e??`canceled`,J.ERR_CANCELED,t,n),this.name=`CanceledError`,this.__CANCEL__=!0}};function on(e,t,n){let r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new J(`Request failed with status code `+n.status,n.status>=400&&n.status<500?J.ERR_BAD_REQUEST:J.ERR_BAD_RESPONSE,n.config,n.request,n))}function sn(e){return typeof e==`string`&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function cn(e,t){if(!t)return e;let n=e.length;for(;n>0&&e.charCodeAt(n-1)===47;)n--;return e.slice(0,n)+`/`+t.replace(/^\/+/,``)}let ln=/[\t\n\r]/g;function un(e){if(typeof e!=`string`)return e;let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t).replace(ln,``)}let dn=/^https?:(?!\/\/)/i;function fn(e){return e&&e.replace(/(^|&)([^=&]*=)?[^&]+/g,(e,t,n=``)=>`${t}${n}${ft}`)}function pn(e){let t=e.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${ft}@`),n=t.indexOf(`#`),r=(n===-1?t:t.slice(0,n)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${ft}`);return n===-1?r:`${r}#${fn(t.slice(n+1))}`}function mn(e,t){if(typeof e==`string`){let n=un(e);if(dn.test(n))throw new J(`Invalid URL ${JSON.stringify(pn(n))}: missing "//" after protocol`,J.ERR_INVALID_URL,t)}}function hn(e,t,n,r){mn(t,r);let i=!sn(t);return e&&(i||n===!1)?(mn(e,r),cn(e,t)):t}var gn={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443};function _n(e){try{return new URL(e)}catch{return null}}function vn(e){var t=(typeof e==`string`?_n(e):e)||{},n=t.protocol,r=t.host,i=t.port;if(typeof r!=`string`||!r||typeof n!=`string`||(n=n.split(`:`,1)[0],r=r.replace(/:\d*$/,``),i=parseInt(i)||gn[n]||0,!yn(r,i)))return``;var a=bn(n+`_proxy`)||bn(`all_proxy`);return a&&a.indexOf(`://`)===-1&&(a=n+`://`+a),a}function yn(e,t){var n=bn(`no_proxy`).toLowerCase();return!n||n!==`*`&&n.split(/[,\s]/).every(function(n){if(!n)return!0;var r=n.match(/^(.+):(\d+)$/),i=r?r[1]:n,a=r?parseInt(r[2]):0;return a&&a!==t?!0:/^[.*]/.test(i)?(i.charAt(0)===`*`&&(i=i.slice(1)),!e.endsWith(i)):e!==i})}function bn(e){return process.env[e.toLowerCase()]||process.env[e.toUpperCase()]||``}let xn=`1.20.0`;function Sn(e){let t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||``}let Cn=/^([^,;/]+\/[^,;/]+)?((?:;[^,;=]+=[^,;]+)*)(;base64)?,([\s\S]*)$/;function wn(e,t,n){let r=n&&n.Blob||X.classes.Blob,i=Sn(e);if(t===void 0&&r&&(t=!0),i===`data`){e=i.length?e.slice(i.length+1):e;let n=Cn.exec(e);if(!n)throw new J(`Invalid URL`,J.ERR_INVALID_URL);let a=n[1],o=n[2],s=n[3]?`base64`:`utf8`,c=n[4],l=``;a?l=o?a+o:a:o&&(l=`text/plain`+o);let u=s===`base64`?Buffer.from(c,`base64`):Buffer.from(decodeURIComponent(c),s);if(t){if(!r)throw new J(`Blob is not supported`,J.ERR_NOT_SUPPORT);return new r([u],{type:l})}return u}throw new J(`Unsupported protocol `+i,J.ERR_NOT_SUPPORT)}let Tn=[`content-type`,`content-length`];function En(e,t,n){n===`content-only`?Object.entries(t||{}).forEach(([t,n])=>{Tn.includes(t.toLowerCase())&&e.set(t,n)}):e.set(t)}let Dn=Symbol(`internals`);var On=class extends m.Transform{constructor(e){e=K.toFlatObject(e,{maxRate:0,chunkSize:65536,minChunkSize:100,timeWindow:500,ticksRate:2,samplesCount:15},null,(e,t)=>!K.isUndefined(t[e])),super({readableHighWaterMark:e.chunkSize});let t=this[Dn]={timeWindow:e.timeWindow,chunkSize:e.chunkSize,maxRate:e.maxRate,minChunkSize:e.minChunkSize,bytesSeen:0,isCaptured:!1,notifiedBytesLoaded:0,ts:Date.now(),bytes:0,onReadCallback:null};this.on(`newListener`,e=>{e===`progress`&&(t.isCaptured||=!0)})}_read(e){let t=this[Dn];return t.onReadCallback&&t.onReadCallback(),super._read(e)}_transform(e,t,n){let r=this[Dn],i=r.maxRate,a=this.readableHighWaterMark,o=r.timeWindow,s=i/(1e3/o),c=r.minChunkSize===!1?0:Math.max(r.minChunkSize,s*.01),l=(e,t)=>{let n=Buffer.byteLength(e);r.bytesSeen+=n,r.bytes+=n,r.isCaptured&&this.emit(`progress`,r.bytesSeen),this.push(e)?process.nextTick(t):r.onReadCallback=()=>{r.onReadCallback=null,process.nextTick(t)}},u=(e,t)=>{let n=Buffer.byteLength(e),u=null,d=a,f,p=0;if(i){let e=Date.now();(!r.ts||(p=e-r.ts)>=o)&&(r.ts=e,f=s-r.bytes,r.bytes=f<0?-f:0,p=0),f=s-r.bytes}if(i){if(f<=0)return setTimeout(()=>{t(null,e)},o-p);f<d&&(d=f)}d&&n>d&&n-d>c&&(u=e.subarray(d),e=e.subarray(0,d)),l(e,u?()=>{process.nextTick(t,null,u)}:t)};u(e,function e(t,r){if(t)return n(t);r?u(r,e):n(null)})}};let{asyncIterator:kn}=Symbol,An=async function*(e){e.stream?yield*e.stream():e.arrayBuffer?yield await e.arrayBuffer():e[kn]?yield*e[kn]():yield e},jn=X.ALPHABET.ALPHA_DIGIT+`-_`,Mn=typeof TextEncoder==`function`?new TextEncoder:new u.TextEncoder,Nn=Mn.encode(`\r
|
|
12
|
+
`)}getSetCookie(){let e=this.get(`set-cookie`);return K.isArray(e)?e:e==null||e===!1?[]:[e]}get[Symbol.toStringTag](){return`AxiosHeaders`}static from(e){return e instanceof this?e:new this(e)}static parseParameters(e){return st(e)}static concat(e,...t){let n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){let t=(this[et]=this[et]={accessors:{}}).accessors,n=this.prototype;function r(e){let r=tt(e);t[r]||(dt(n,e),t[r]=!0)}return K.isArray(e)?e.forEach(r):r(e),this}};q.accessor([`Content-Type`,`Content-Length`,`Accept`,`Accept-Encoding`,`User-Agent`,`Authorization`]),K.reduceDescriptors(q.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),K.freezeMethods(q);let ft=`[REDACTED ****]`;function pt(e){if(K.hasOwnProp(e,`toJSON`))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(K.hasOwnProp(t,`toJSON`))return!0;t=Object.getPrototypeOf(t)}return!1}function mt(e,t){let n=new Set(t.map(e=>String(e).toLowerCase())),r=[],i=e=>{if(typeof e!=`object`||!e||K.isBuffer(e))return e;if(r.indexOf(e)!==-1)return;e instanceof q&&(e=e.toJSON()),r.push(e);let t;if(K.isArray(e))t=[],e.forEach((e,n)=>{let r=i(e);K.isUndefined(r)||(t[n]=r)});else{if(!K.isPlainObject(e)&&pt(e))return r.pop(),e;t=Object.create(null);for(let[r,a]of Object.entries(e)){let e=n.has(r.toLowerCase())?ft:i(a);K.isUndefined(e)||(t[r]=e)}}return r.pop(),t};return i(e)}function ht(e){try{return String(e)}catch{return``}}function gt(e){return e.errors.map(e=>{try{return e&&e.message?ht(e.message):ht(e)}catch{return``}}).filter(Boolean).join(`; `)||e.name||`AggregateError`}var J=class e extends Error{static from(t,n,r,i,a,o){let s=t.message;!s&&K.isArray(t.errors)&&t.errors.length&&(s=gt(t));let c=new e(s,n||t.code,r,i,a);return Object.defineProperty(c,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),c.name=t.name,t.status!=null&&c.status==null&&(c.status=t.status),o&&Object.assign(c,o),c}constructor(e,t,n,r,i){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name=`AxiosError`,this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status)}toJSON(){let e=this.config,t=e&&K.hasOwnProp(e,`redact`)?e.redact:void 0,n=K.isArray(t)&&t.length>0?mt(e,t):K.toJSONObject(e);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}}};J.ERR_BAD_OPTION_VALUE=`ERR_BAD_OPTION_VALUE`,J.ERR_BAD_OPTION=`ERR_BAD_OPTION`,J.ECONNABORTED=`ECONNABORTED`,J.ETIMEDOUT=`ETIMEDOUT`,J.ECONNREFUSED=`ECONNREFUSED`,J.ERR_NETWORK=`ERR_NETWORK`,J.ERR_FR_TOO_MANY_REDIRECTS=`ERR_FR_TOO_MANY_REDIRECTS`,J.ERR_DEPRECATED=`ERR_DEPRECATED`,J.ERR_BAD_RESPONSE=`ERR_BAD_RESPONSE`,J.ERR_BAD_REQUEST=`ERR_BAD_REQUEST`,J.ERR_CANCELED=`ERR_CANCELED`,J.ERR_NOT_SUPPORT=`ERR_NOT_SUPPORT`,J.ERR_INVALID_URL=`ERR_INVALID_URL`,J.ERR_FORM_DATA_DEPTH_EXCEEDED=`ERR_FORM_DATA_DEPTH_EXCEEDED`;var _t={isBufferAvailable(){return typeof Buffer<`u`},from(e){return Buffer.from(e)}};function vt(e){return K.isPlainObject(e)||K.isArray(e)}function yt(e){return K.endsWith(e,`[]`)?e.slice(0,-2):e}function bt(e,t,n){return e?e.concat(t).map(function(e,t){return e=yt(e),!n&&t?`[`+e+`]`:e}).join(n?`.`:``):t}function xt(e){return K.isArray(e)&&!e.some(vt)}let St=K.toFlatObject(K,{},null,function(e){return/^is[A-Z]/.test(e)});function Ct(e,t,n){if(!K.isObject(e))throw TypeError(`target must be an object`);t||=new(r||FormData);let i=(e,t)=>{let r=K.getSafeProp(n,e);return K.isUndefined(r)?t:r},a=i(`metaTokens`,!0),o=i(`visitor`)||g,s=i(`dots`,!1),c=i(`indexes`,!1),l=i(`Blob`)||typeof Blob<`u`&&Blob,u=i(`maxDepth`,100),d=l&&K.isSpecCompliantForm(t),f=[];if(!K.isFunction(o))throw TypeError(`visitor must be a function`);function p(e){if(e===null)return``;if(K.isDate(e))return e.toISOString();if(K.isBoolean(e))return e.toString();if(!d&&K.isBlob(e))throw new J(`Blob is not supported. Use a Buffer instead.`);if(K.isArrayBuffer(e)||K.isTypedArray(e)){if(d&&typeof l==`function`)return new l([e]);if(_t&&_t.isBufferAvailable())return _t.from(e);throw new J(`Blob is not supported. Use a Buffer instead.`,J.ERR_NOT_SUPPORT)}return e}function m(e){if(e>u)throw new J(`Object is too deeply nested (`+e+` levels). Max depth: `+u,J.ERR_FORM_DATA_DEPTH_EXCEEDED)}function h(e,t){if(u===1/0)return JSON.stringify(e);let n=[];return JSON.stringify(e,function(e,r){if(!K.isObject(r))return r;for(;n.length&&n[n.length-1]!==this;)n.pop();return n.push(r),m(t+n.length-1),r})}function g(e,n,r){let i=e;if(K.isReactNative(t)&&K.isReactNativeBlob(e))return t.append(bt(r,n,s),p(e)),!1;if(e&&!r&&typeof e==`object`){if(K.endsWith(n,`{}`))n=a?n:n.slice(0,-2),e=h(e,1);else if(K.isArray(e)&&xt(e)||(K.isFileList(e)||K.endsWith(n,`[]`))&&(i=K.toArray(e)))return n=yt(n),i.forEach(function(e,r){!(K.isUndefined(e)||e===null)&&t.append(c===!0?bt([n],r,s):c===null?n:n+`[]`,p(e))}),!1}return vt(e)?!0:(t.append(bt(r,n,s),p(e)),!1)}let _=Object.assign(St,{defaultVisitor:g,convertValue:p,isVisitable:vt});function v(e,n,r=0){if(!K.isUndefined(e)){if(m(r),f.indexOf(e)!==-1)throw Error(`Circular reference detected in `+n.join(`.`));f.push(e),K.forEach(e,function(e,i){(!(K.isUndefined(e)||e===null)&&o.call(t,e,K.isString(i)?i.trim():i,n,_))===!0&&v(e,n?n.concat(i):[i],r+1)}),f.pop()}}if(!K.isObject(e))throw TypeError(`data must be an object`);return v(e),t}function wt(e){let t={"!":`%21`,"'":`%27`,"(":`%28`,")":`%29`,"~":`%7E`,"%20":`+`};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function Tt(e,t){this._pairs=[],e&&Ct(e,this,t)}let Et=Tt.prototype;Et.append=function(e,t){this._pairs.push([e,t])},Et.toString=function(e){let t=e?t=>e.call(this,t,wt):wt;return this._pairs.map(function(e){return t(e[0])+`=`+t(e[1])},``).join(`&`)};function Dt(e){return encodeURIComponent(e).replace(/%3A/gi,`:`).replace(/%24/g,`$`).replace(/%2C/gi,`,`).replace(/%20/g,`+`)}function Ot(e,t,n){if(!t)return e;e||=``;let r=K.isFunction(n)?{serialize:n}:n,i=K.getSafeProp(r,`encode`)||Dt,a=K.getSafeProp(r,`serialize`),o;if(o=a?a(t,r):K.isURLSearchParams(t)?t.toString():new Tt(t,r).toString(i),o){let t=e.indexOf(`#`);t!==-1&&(e=e.slice(0,t)),e+=(e.indexOf(`?`)===-1?`?`:`&`)+o}return e}let kt=Symbol(`internals`);function At(e){return e?e.length:0}function jt(e){if(e)for(;e.length&&e[e.length-1]===null;)e.pop()}function Mt(e,t){let n=e.handlers,r=At(n);n===t.handlersRef?r!==t.handlersLength&&(r?t.handlerEntries.forEach(function(e,r){n[e.index]!==e.handler&&t.handlerEntries.delete(r)}):t.handlerEntries.clear()):(t.handlersRef=n,t.handlerEntries.clear()),t.handlersLength=r}var Nt=class{constructor(){this.handlers=[],this[kt]={handlersRef:this.handlers,handlersLength:this.handlers.length,handlerEntries:new Map,iterationDepth:0,nextId:0}}use(e,t,n){let r={fulfilled:e,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null},i=this[kt];this.handlers??=[],Mt(this,i);let a=i.nextId++;return this.handlers.push(r),i.handlerEntries.set(a,{handler:r,index:this.handlers.length-1}),i.handlersLength=this.handlers.length,a}eject(e){let t=this[kt];Mt(this,t);let n=t.handlerEntries.get(e);if(n){if(t.handlerEntries.delete(e),this.handlers[n.index]!==n.handler)return;this.handlers[n.index]=null,t.iterationDepth||(jt(this.handlers),t.handlersLength=this.handlers.length)}}clear(){this.handlers&&(this.handlers=[],Mt(this,this[kt]))}forEach(e){let t=this[kt];Mt(this,t),t.iterationDepth++;try{K.forEach(this.handlers,function(t){t!==null&&e(t)})}finally{--t.iterationDepth||(Mt(this,t),jt(this.handlers),t.handlersLength=At(this.handlers))}}},Pt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},Ft=a.URLSearchParams;let It=`abcdefghijklmnopqrstuvwxyz`,Lt=`0123456789`,Rt={DIGIT:Lt,ALPHA:It,ALPHA_DIGIT:It+`ABCDEFGHIJKLMNOPQRSTUVWXYZ`+Lt};var zt={isNode:!0,classes:{URLSearchParams:Ft,FormData:r,Blob:typeof Blob<`u`&&Blob||null},ALPHABET:Rt,generateString:(e=16,t=Rt.ALPHA_DIGIT)=>{let n=``,{length:r}=t,a=new Uint32Array(e);i.randomFillSync(a);for(let i=0;i<e;i++)n+=t[a[i]%r];return n},protocols:[`http`,`https`,`file`,`data`]};let Bt=typeof window<`u`&&typeof document<`u`,Vt=typeof navigator==`object`&&navigator||void 0,Ut=Bt&&(!Vt||[`ReactNative`,`NativeScript`,`NS`].indexOf(Vt.product)<0),Wt=typeof WorkerGlobalScope<`u`&&self instanceof WorkerGlobalScope&&typeof self.importScripts==`function`,Gt=Bt&&window.location.href||`http://localhost`;var Y={...Object.freeze({__proto__:null,hasBrowserEnv:Bt,hasStandardBrowserEnv:Ut,hasStandardBrowserWebWorkerEnv:Wt,navigator:Vt,origin:Gt}),...zt};function Kt(e,t){return Ct(e,new Y.classes.URLSearchParams,{visitor:function(e,t,n,r){return Y.isNode&&K.isBuffer(e)?(this.append(t,e.toString(`base64`)),!1):r.defaultVisitor.apply(this,arguments)},...t})}function qt(e){if(e>100)throw new J(`FormData field is too deeply nested (`+e+` levels). Max depth: 100`,J.ERR_FORM_DATA_DEPTH_EXCEEDED)}function Jt(e){let t=[],n=/[^.[\]]+|\[([^.[\]]*)]/g,r;for(;(r=n.exec(e))!==null;)qt(t.length),t.push(r[0]===`[]`?``:r[1]||r[0]);return t}function Yt(e){let t={},n=Object.keys(e),r,i=n.length,a;for(r=0;r<i;r++)a=n[r],t[a]=e[a];return t}function X(e){function t(e,n,r,i){qt(i);let a=e[i++];if(a===`__proto__`)return!0;let o=Number.isFinite(+a),s=i>=e.length;return a=!a&&K.isArray(r)?r.length:a,s?(K.hasOwnProp(r,a)?r[a]=K.isArray(r[a])?r[a].concat(n):[r[a],n]:r[a]=n,!o):(K.hasOwnProp(r,a)&&K.isObject(r[a])||(r[a]=[]),t(e,n,r[a],i)&&K.isArray(r[a])&&(r[a]=Yt(r[a])),!o)}if(K.isFormData(e)&&K.isFunction(e.entries)){let n={};return K.forEachEntry(e,(e,r)=>{t(Jt(e),r,n,0)}),n}return null}let Xt=Object.freeze([`get`,`delete`,`head`,`options`,`post`,`put`,`patch`,`purge`,`link`,`unlink`,`query`]),Zt=(e,t)=>e!=null&&K.hasOwnProp(e,t)?e[t]:void 0;function Qt(e,t,n){if(K.isString(e))try{return(t||JSON.parse)(e),K.trim(e)}catch(e){if(e.name!==`SyntaxError`)throw e}return(n||JSON.stringify)(e)}let $t={transitional:Pt,adapter:[`xhr`,`http`,`fetch`],transformRequest:[function(e,t){let n=t.getContentType()||``,r=n.indexOf(`application/json`)>-1,i=K.isObject(e);if(i&&K.isHTMLForm(e)&&(e=new FormData(e)),K.isFormData(e))return r?JSON.stringify(X(e)):e;if(K.isArrayBuffer(e)||K.isBuffer(e)||K.isStream(e)||K.isFile(e)||K.isBlob(e)||K.isReadableStream(e))return e;if(K.isArrayBufferView(e))return e.buffer;if(K.isURLSearchParams(e))return t.setContentType(`application/x-www-form-urlencoded;charset=utf-8`,!1),e.toString();let a;if(i){let t=Zt(this,`formSerializer`);if(n.indexOf(`application/x-www-form-urlencoded`)>-1)return Kt(e,t).toString();if((a=K.isFileList(e))||n.indexOf(`multipart/form-data`)>-1){let n=Zt(this,`env`),r=n&&n.FormData;return Ct(a?{"files[]":e}:e,r&&new r,t)}}return i||r?(t.setContentType(`application/json`,!1),Qt(e)):e}],transformResponse:[function(e){let t=Zt(this,`transitional`)||$t.transitional,n=t&&t.forcedJSONParsing,r=Zt(this,`responseType`),i=r===`json`;if(K.isResponse(e)||K.isReadableStream(e))return e;if(e&&K.isString(e)&&(n&&!r||i)){let n=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(e,Zt(this,`parseReviver`))}catch(e){if(n)throw e.name===`SyntaxError`?J.from(e,J.ERR_BAD_RESPONSE,this,null,Zt(this,`response`)):e}}return e}],timeout:0,xsrfCookieName:`XSRF-TOKEN`,xsrfHeaderName:`X-XSRF-TOKEN`,maxContentLength:-1,maxBodyLength:-1,env:{FormData:Y.classes.FormData,Blob:Y.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:`application/json, text/plain, */*`,"Content-Type":void 0}}};K.forEach(Xt,e=>{$t.headers[e]={}});function en(e,t){let n=this||$t,r=t||n,i=q.from(r.headers),a=r.data;return K.forEach(e,function(e){a=e.call(n,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function tn(e){return!!(e&&e.__CANCEL__)}var nn=class extends J{constructor(e,t,n){super(e??`canceled`,J.ERR_CANCELED,t,n),this.name=`CanceledError`,this.__CANCEL__=!0}};function rn(e,t,n){let r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new J(`Request failed with status code `+n.status,n.status>=400&&n.status<500?J.ERR_BAD_REQUEST:J.ERR_BAD_RESPONSE,n.config,n.request,n))}function an(e){return typeof e==`string`&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function sn(e,t){if(!t)return e;let n=e.length;for(;n>0&&e.charCodeAt(n-1)===47;)n--;return e.slice(0,n)+`/`+t.replace(/^\/+/,``)}let ln=/[\t\n\r]/g;function un(e){if(typeof e!=`string`)return e;let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t).replace(ln,``)}let dn=/^https?:(?!\/\/)/i;function fn(e){return e&&e.replace(/(^|&)([^=&]*=)?[^&]+/g,(e,t,n=``)=>`${t}${n}${ft}`)}function pn(e){let t=e.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${ft}@`),n=t.indexOf(`#`),r=(n===-1?t:t.slice(0,n)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${ft}`);return n===-1?r:`${r}#${fn(t.slice(n+1))}`}function mn(e,t){if(typeof e==`string`){let n=un(e);if(dn.test(n))throw new J(`Invalid URL ${JSON.stringify(pn(n))}: missing "//" after protocol`,J.ERR_INVALID_URL,t)}}function hn(e,t,n,r){mn(t,r);let i=!an(t);return e&&(i||n===!1)?(mn(e,r),sn(e,t)):t}var gn={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443};function _n(e){try{return new URL(e)}catch{return null}}function vn(e){var t=(typeof e==`string`?_n(e):e)||{},n=t.protocol,r=t.host,i=t.port;if(typeof r!=`string`||!r||typeof n!=`string`||(n=n.split(`:`,1)[0],r=r.replace(/:\d*$/,``),i=parseInt(i)||gn[n]||0,!yn(r,i)))return``;var a=bn(n+`_proxy`)||bn(`all_proxy`);return a&&a.indexOf(`://`)===-1&&(a=n+`://`+a),a}function yn(e,t){var n=bn(`no_proxy`).toLowerCase();return!n||n!==`*`&&n.split(/[,\s]/).every(function(n){if(!n)return!0;var r=n.match(/^(.+):(\d+)$/),i=r?r[1]:n,a=r?parseInt(r[2]):0;return a&&a!==t?!0:/^[.*]/.test(i)?(i.charAt(0)===`*`&&(i=i.slice(1)),!e.endsWith(i)):e!==i})}function bn(e){return process.env[e.toLowerCase()]||process.env[e.toUpperCase()]||``}let xn=`1.20.0`;function Sn(e){let t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||``}let Cn=/^([^,;/]+\/[^,;/]+)?((?:;[^,;=]+=[^,;]+)*)(;base64)?,([\s\S]*)$/;function wn(e,t,n){let r=n&&n.Blob||Y.classes.Blob,i=Sn(e);if(t===void 0&&r&&(t=!0),i===`data`){e=i.length?e.slice(i.length+1):e;let n=Cn.exec(e);if(!n)throw new J(`Invalid URL`,J.ERR_INVALID_URL);let a=n[1],o=n[2],s=n[3]?`base64`:`utf8`,c=n[4],l=``;a?l=o?a+o:a:o&&(l=`text/plain`+o);let u=s===`base64`?Buffer.from(c,`base64`):Buffer.from(decodeURIComponent(c),s);if(t){if(!r)throw new J(`Blob is not supported`,J.ERR_NOT_SUPPORT);return new r([u],{type:l})}return u}throw new J(`Unsupported protocol `+i,J.ERR_NOT_SUPPORT)}let Tn=[`content-type`,`content-length`];function En(e,t,n){n===`content-only`?Object.entries(t||{}).forEach(([t,n])=>{Tn.includes(t.toLowerCase())&&e.set(t,n)}):e.set(t)}let Dn=Symbol(`internals`);var On=class extends m.Transform{constructor(e){e=K.toFlatObject(e,{maxRate:0,chunkSize:65536,minChunkSize:100,timeWindow:500,ticksRate:2,samplesCount:15},null,(e,t)=>!K.isUndefined(t[e])),super({readableHighWaterMark:e.chunkSize});let t=this[Dn]={timeWindow:e.timeWindow,chunkSize:e.chunkSize,maxRate:e.maxRate,minChunkSize:e.minChunkSize,bytesSeen:0,isCaptured:!1,notifiedBytesLoaded:0,ts:Date.now(),bytes:0,onReadCallback:null};this.on(`newListener`,e=>{e===`progress`&&(t.isCaptured||=!0)})}_read(e){let t=this[Dn];return t.onReadCallback&&t.onReadCallback(),super._read(e)}_transform(e,t,n){let r=this[Dn],i=r.maxRate,a=this.readableHighWaterMark,o=r.timeWindow,s=i/(1e3/o),c=r.minChunkSize===!1?0:Math.max(r.minChunkSize,s*.01),l=(e,t)=>{let n=Buffer.byteLength(e);r.bytesSeen+=n,r.bytes+=n,r.isCaptured&&this.emit(`progress`,r.bytesSeen),this.push(e)?process.nextTick(t):r.onReadCallback=()=>{r.onReadCallback=null,process.nextTick(t)}},u=(e,t)=>{let n=Buffer.byteLength(e),u=null,d=a,f,p=0;if(i){let e=Date.now();(!r.ts||(p=e-r.ts)>=o)&&(r.ts=e,f=s-r.bytes,r.bytes=f<0?-f:0,p=0),f=s-r.bytes}if(i){if(f<=0)return setTimeout(()=>{t(null,e)},o-p);f<d&&(d=f)}d&&n>d&&n-d>c&&(u=e.subarray(d),e=e.subarray(0,d)),l(e,u?()=>{process.nextTick(t,null,u)}:t)};u(e,function e(t,r){if(t)return n(t);r?u(r,e):n(null)})}};let{asyncIterator:kn}=Symbol,An=async function*(e){e.stream?yield*e.stream():e.arrayBuffer?yield await e.arrayBuffer():e[kn]?yield*e[kn]():yield e},jn=Y.ALPHABET.ALPHA_DIGIT+`-_`,Mn=typeof TextEncoder==`function`?new TextEncoder:new u.TextEncoder,Nn=Mn.encode(`\r
|
|
13
13
|
`);var Pn=class{constructor(e,t){let{escapeName:n}=this.constructor,r=K.isString(t),i=`Content-Disposition: form-data; name="${n(e)}"${!r&&t.name?`; filename="${n(t.name)}"`:``}\r
|
|
14
14
|
`;if(r)t=Mn.encode(String(t).replace(/\r?\n|\r\n?/g,`\r
|
|
15
15
|
`));else{let e=String(t.type||`application/octet-stream`).replace(/[\r\n]/g,``);i+=`Content-Type: ${e}\r
|
|
16
16
|
`}this.headers=Mn.encode(i+`\r
|
|
17
|
-
`),this.contentLength=r?t.byteLength:t.size,this.size=this.headers.byteLength+this.contentLength+2,this.name=e,this.value=t}async*encode(){yield this.headers;let{value:e}=this;K.isTypedArray(e)?yield e:yield*An(e),yield Nn}static escapeName(e){return String(e).replace(/[\r\n"]/g,e=>({"\r":`%0D`,"\n":`%0A`,'"':`%22`})[e])}};let Fn=(e,t,n)=>{let{tag:r=`form-data-boundary`,size:i=25,boundary:a=r+`-`+
|
|
17
|
+
`),this.contentLength=r?t.byteLength:t.size,this.size=this.headers.byteLength+this.contentLength+2,this.name=e,this.value=t}async*encode(){yield this.headers;let{value:e}=this;K.isTypedArray(e)?yield e:yield*An(e),yield Nn}static escapeName(e){return String(e).replace(/[\r\n"]/g,e=>({"\r":`%0D`,"\n":`%0A`,'"':`%22`})[e])}};let Fn=(e,t,n)=>{let{tag:r=`form-data-boundary`,size:i=25,boundary:a=r+`-`+Y.generateString(i,jn)}=n||{};if(!K.isFormData(e))throw TypeError(`FormData instance required`);if(a.length<1||a.length>70)throw Error(`boundary must be 1-70 characters long`);let o=Mn.encode(`--`+a+`\r
|
|
18
18
|
`),s=Mn.encode(`--`+a+`--\r
|
|
19
|
-
`),c=s.byteLength,l=Array.from(e.entries()).map(([e,t])=>{let n=new Pn(e,t);return c+=n.size,n});c+=o.byteLength*l.length,c=K.toFiniteNumber(c);let u={"Content-Type":`multipart/form-data; boundary=${a}`};return Number.isFinite(c)&&(u[`Content-Length`]=c),t&&t(u),m.Readable.from(async function*(){for(let e of l)yield o,yield*e.encode();yield s}())};var In=class extends m.Transform{__transform(e,t,n){this.push(e),n()}_transform(e,t,n){if(e.length!==0&&(this._transform=this.__transform,e[0]!==120)){let e=Buffer.alloc(2);e[0]=120,e[1]=156,this.push(e,t)}this.__transform(e,t,n)}},Ln=class{constructor(){this.sessions=Object.create(null)}getSession(e,t){t=Object.assign(Object.create(null),{sessionTimeout:1e3},t);let n=this.sessions[e];if(n){let e=n.length;for(let r=0;r<e;r++){let[e,i]=n[r];if(!e.destroyed&&!e.closed&&u.isDeepStrictEqual(i,t))return e}}let r=l.connect(e,t),i,a,o=()=>{if(i)return;i=!0,a&&=(clearTimeout(a),null);let t=n,o=t.length,s=o;for(;s--;)if(t[s][0]===r){o===1?delete this.sessions[e]:t.splice(s,1),r.closed||r.close();return}},s=r.request,{sessionTimeout:c}=t;if(c!=null){let e=0;r.request=function(){let t=s.apply(this,arguments);return e++,a&&=(clearTimeout(a),null),t.once(`close`,()=>{--e||(a=setTimeout(()=>{a=null,o()},c))}),t}}r.once(`close`,o),r.once(`error`,o);let d=[r,t];return n?n.push(d):n=this.sessions[e]=[d],r}};let Rn=(e,t)=>K.isAsyncFn(e)?function(...n){let r=n.pop();e.apply(this,n).then(e=>{try{t?r(null,...t(e)):r(null,e)}catch(e){r(e)}},r)}:e,zn=new Set([`localhost`,`0.0.0.0`]),Bn=e=>{let t=e.length;for(;t&&e.charCodeAt(t-1)===46;)t--;return t===e.length?e:e.slice(0,t)},Vn=e=>{let t=e.split(`.`);return t.length!==4||t[0]!==`127`?!1:t.every(e=>/^\d+$/.test(e)&&Number(e)>=0&&Number(e)<=255)},Hn=e=>{if(/^0[xX][0-9a-fA-F]+$/.test(e)){let t=parseInt(e.slice(2),16);return Number.isFinite(t)?t:null}if(e.length>1&&/^0[0-7]+$/.test(e)){let t=parseInt(e,8);return Number.isFinite(t)?t:null}if(e.length>1&&/^0[0-9]+$/.test(e))return null;if(/^[0-9]+$/.test(e)){let t=parseInt(e,10);return Number.isFinite(t)?t:null}return null},Un=e=>{if(typeof e!=`string`||!e||e.indexOf(`:`)!==-1)return e;let t=e;if(t.charAt(0)===`[`&&t.charAt(t.length-1)===`]`&&(t=t.slice(1,-1)),t=Bn(t),!/^[0-9.xXa-fA-F]+$/.test(t))return e;let n=t.split(`.`);if(n.some(e=>e===``))return e;if(n.length===4){let t=n.map(Hn);return t.some(e=>e===null||e<0||e>255)?e:t.join(`.`)}if(n.length>4||n.length===1)return e;let r=n.slice(0,-1),i=n[n.length-1],a=4-r.length,o=Hn(i);if(o===null)return e;let s=(1<<8*a)-1;if(o<0||o>s)return e;let c=Array(a).fill(0);for(let e=a-1,t=o;e>=0;e--,t>>=8)c[e]=t&255;let l=r.map(Hn);return l.some(e=>e===null||e<0||e>255)?e:[...l,...c].join(`.`)},Wn=e=>/^0{1,4}$/.test(e),Gn=e=>{if(e===`::`)return!0;let t=e.indexOf(`::`);if(t!==-1){if(t!==e.lastIndexOf(`::`))return!1;let n=e.slice(0,t),r=e.slice(t+2),i=n?n.split(`:`):[],a=r?r.split(`:`):[];return i.length+a.length<8&&i.every(Wn)&&a.every(Wn)}let n=e.split(`:`);return n.length===8&&n.every(Wn)},Kn=e=>{if(e===`::1`)return!0;let t=e.match(/^::ffff:(\d+\.\d+\.\d+\.\d+)$/i);if(t)return Vn(t[1]);let n=e.match(/^::ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i);if(n){let e=parseInt(n[1],16);return e>=32512&&e<=32767}let r=e.split(`:`);if(r.length===8){for(let e=0;e<7;e++)if(!/^0+$/.test(r[e]))return!1;return/^0*1$/.test(r[7])}return!1},qn=e=>e?zn.has(e)||Vn(e)||Gn(e)?!0:Kn(e):!1,Jn={http:80,https:443,ws:80,wss:443,ftp:21},Yn=e=>{let t=e,n=0;if(t.charAt(0)===`[`){let e=t.indexOf(`]`);if(e!==-1){let r=t.slice(1,e),i=t.slice(e+1);return i.charAt(0)===`:`&&/^\d+$/.test(i.slice(1))&&(n=Number.parseInt(i.slice(1),10)),[r,n]}}let r=t.indexOf(`:`),i=t.lastIndexOf(`:`);return r!==-1&&r===i&&/^\d+$/.test(t.slice(i+1))&&(n=Number.parseInt(t.slice(i+1),10),t=t.slice(0,i)),[t,n]},Xn=/^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:(\d+\.\d+\.\d+\.\d+)$/i,Zn=/^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i,Qn=e=>{if(typeof e!=`string`||e.indexOf(`:`)===-1)return e;let t=e.match(Xn);if(t)return t[1];let n=e.match(Zn);if(n){let e=parseInt(n[1],16),t=parseInt(n[2],16);return`${e>>8}.${e&255}.${t>>8}.${t&255}`}return e},$n=/^(?:0|[1-9]\d{0,2})$/,er=e=>{let t=e.split(`.`);return t.length===4&&t.every(e=>$n.test(e)&&Number(e)<=255)?t.map(Number):null},tr=/^[0-9a-f]{1,4}$/i,nr=e=>{let t=e.split(`::`);if(t.length>2)return null;let n=t[0]?t[0].split(`:`):[];if(t.length===2){let e=t[1]?t[1].split(`:`):[],r=8-n.length-e.length;if(r<1)return null;n.push(...Array(r).fill(`0`),...e)}return n.length!==8||n.some(e=>!tr.test(e))?null:n.flatMap(e=>{let t=Number.parseInt(e,16);return[t>>8&255,t&255]})},rr=e=>typeof e!=`string`||!e?null:e.indexOf(`:`)===-1?er(e):nr(e),ir=e=>{if(!e)return e;e.charAt(0)===`[`&&e.charAt(e.length-1)===`]`&&(e=e.slice(1,-1));let t=Bn(e),n=Un(t);return n===t?Qn(t):n},ar=e=>{let t=e,n=t.charAt(0)===`[`,r=t.charAt(t.length-1)===`]`,i=t.includes(`[`)||t.includes(`]`);if(n||r){if(!n||!r||(t=t.slice(1,-1),t.indexOf(`:`)===-1||t.includes(`[`)||t.includes(`]`)))return null}else if(i)return null;if(!t||t.charAt(t.length-1)===`.`)return null;let a=t.indexOf(`:`)!==-1;if(a)try{t=new URL(`http://[${t}]/`).hostname.slice(1,-1)}catch{return null}else if(t=Un(t),!er(t))return null;return{normalized:Qn(t),wasIPv6:a}},or=/^(.+)\/(0|[1-9]\d{0,2})$/,sr=e=>{if(e.indexOf(`/`)===-1)return;let t=or.exec(e);if(!t)return null;let n=Number(t[2]),r=ar(t[1]);if(!r)return null;let{normalized:i,wasIPv6:a}=r;if(a&&i.indexOf(`:`)===-1){if(n<96)return null;n-=96}let o=rr(i);return!o||n>o.length*8?null:{bytes:o,prefix:n}},cr=(e,t,n)=>{let r=n>>3;for(let n=0;n<r;n++)if(e[n]!==t[n])return!1;let i=n&7;if(i){let n=255<<8-i&255;if((e[r]&n)!==(t[r]&n))return!1}return!0};function lr(e){let t;try{t=new URL(e)}catch{return!1}let n=(process.env.no_proxy||process.env.NO_PROXY||``).toLowerCase();if(!n)return!1;if(n===`*`)return!0;let r=Number.parseInt(t.port,10)||Jn[t.protocol.split(`:`,1)[0]]||0,i=ir(t.hostname.toLowerCase()),a=rr(i);return n.split(/[\s,]+/).some(e=>{if(!e)return!1;if(e===`*`)return!0;let t=sr(e);if(t!==void 0)return t!==null&&!!a&&a.length===t.bytes.length&&cr(a,t.bytes,t.prefix);let[n,o]=Yn(e);return n=ir(n),!n||o&&o!==r?!1:(n.charAt(0)===`*`&&(n=n.slice(1)),n.charAt(0)===`.`?i.endsWith(n):i===n||qn(i)&&qn(n))})}function ur(e,t){e||=10;let n=Array(e),r=Array(e),i=0,a=0,o;return t=t===void 0?1e3:t,function(s){let c=Date.now(),l=r[a];o||=c,n[i]=s,r[i]=c;let u=a,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),c-o<t)return;let f=l&&c-l;return f?Math.round(d*1e3/f):void 0}}function dr(e,t){let n=0,r=1e3/t,i,a,o=(t,r=Date.now())=>{n=r,i=null,a&&=(clearTimeout(a),null),e(...t)};return[(...e)=>{let t=Date.now(),s=t-n;s>=r?o(e,t):(i=e,a||=setTimeout(()=>{a=null,o(i)},r-s))},()=>i&&o(i),(...e)=>o(e)]}let fr=(e,t,n=3)=>{let r=0,i=ur(50,250);return dr(n=>{if(!n||!K.isNumber(n.loaded))return;let a=n.loaded,o=n.lengthComputable?n.total:void 0,s=Math.max(0,o==null?a:Math.min(a,o)),c=Math.max(0,s-r),l=i(c);r=Math.max(r,s),e({loaded:s,total:o,progress:o?s/o:void 0,bytes:c,rate:l||void 0,estimated:l&&o?(o-s)/l:void 0,event:n,lengthComputable:o!=null,[t?`download`:`upload`]:!0})},n)},pr=(e,t)=>{let n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},mr=(e,t=K.asap)=>(...n)=>t(()=>e(...n)),hr=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,gr=(e,t,n)=>t+2<n&&hr(e.charCodeAt(t+1))&&hr(e.charCodeAt(t+2)),_r=e=>e<=57?e-48:(e&223)-55,vr=e=>e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===43||e===47||e===45||e===95,yr=e=>e===9||e===10||e===12||e===13||e===32,br=e=>{let t=Math.floor(e/4),n=e%4;return t*3+(n===2?1:n===3?2:0)},xr=e=>{let t=e.length,n=0;return t>0&&e.charCodeAt(t-1)===61&&(n++,t>1&&e.charCodeAt(t-2)===61&&n++),Math.floor((t-n)*3/4)},Sr=e=>{let t=e.length,n=0,r=0,i=!1;for(let a=0;a<t;a++){let o=e.charCodeAt(a);o===37&&gr(e,a,t)&&(o=_r(e.charCodeAt(a+1))*16+_r(e.charCodeAt(a+2)),a+=2),yr(o)||(o===61?r++:!vr(o)||r>0?i=!0:n++)}return i||r>2||r>0&&(n+r)%4!=0||n%4==1?xr(e):br(n)},Cr=(e,t)=>{if(!e||typeof e!=`string`||!e.startsWith(`data:`))return 0;let n=e.indexOf(`,`);if(n<0)return 0;let r=e.slice(5,n),i=e.slice(n+1);if(/;base64/i.test(r))return t(i);let a=0;for(let e=0,t=i.length;e<t;e++){let n=i.charCodeAt(e);if(n===37&&gr(i,e,t))a+=1,e+=2;else if(n<128)a+=1;else if(n<2048)a+=2;else if(n>=55296&&n<=56319&&e+1<t){let t=i.charCodeAt(e+1);t>=56320&&t<=57343?(a+=4,e++):a+=3}else a+=3}return a};function wr(e){let t=typeof e==`string`?e.indexOf(`#`):-1;return Cr(t===-1?e:e.slice(0,t),Sr)}function Tr(e){return Cr(e,xr)}let Er={flush:p.constants.Z_SYNC_FLUSH,finishFlush:p.constants.Z_SYNC_FLUSH},Dr={flush:p.constants.BROTLI_OPERATION_FLUSH,finishFlush:p.constants.BROTLI_OPERATION_FLUSH},Or={flush:p.constants.ZSTD_e_flush,finishFlush:p.constants.ZSTD_e_flush},kr=K.isFunction(p.createBrotliDecompress),Z=K.isFunction(p.createZstdDecompress),Ar=`gzip, compress, deflate`+(kr?`, br`:``),jr=Ar+(Z?`, zstd`:``),Mr=typeof process<`u`&&process.nextTick?process.nextTick.bind(process):K.asap,{http:Nr,https:Pr}=f,Fr=/https:?/,Ir=Symbol(`axios.http.socketListener`),Lr=Symbol(`axios.http.currentReq`);function Rr(e){let t=this[Lr];t&&!t.destroyed&&t.destroy(e)}let zr=Symbol(`axios.http.installedTunnel`),Br=new Map,Vr=new WeakMap,Hr={22:21,24:5};function Ur(e=process.versions&&process.versions.node){if(!e)return!1;let[t,n]=e.split(`.`).map(e=>Number(e));return!Number.isInteger(t)||!Number.isInteger(n)?!1:t>24||Hr[t]!=null&&n>=Hr[t]}function Wr(e,t=process.versions&&process.versions.node){if(!Ur(t))return!1;let n=e&&e.options;return!!(n&&K.hasOwnProp(n,`proxyEnv`)&&n.proxyEnv!=null)}function Gr(e,t,n){return Fr.test(e.protocol)?n||c.globalAgent:t||s.globalAgent}function Kr(e,t){let n=e.protocol+`//`+e.hostname+`:`+(e.port||``)+`#`+(e.auth||``),r=t?Vr.get(t)||Vr.set(t,new Map).get(t):Br,i=r.get(n);if(i)return i;if(i=new o(t&&t.options?{...t.options,...e}:e),t&&t.options){let e={...t.options},n=i.callback;i.callback=function(t,r){return n.call(this,t,{...e,...r})}}return i[zr]=!0,r.set(n,i),i}let qr=X.protocols.map(e=>e+`:`),Jr=e=>{if(!K.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},Yr=(e,[t,n])=>(e.on(`end`,n).on(`error`,n),t),Xr=new Ln;function Zr(e,t,n){e.beforeRedirects.proxy&&e.beforeRedirects.proxy(e),e.beforeRedirects.auth&&e.beforeRedirects.auth(e),e.beforeRedirects.sensitiveHeaders&&e.beforeRedirects.sensitiveHeaders(e,n),e.beforeRedirects.config&&e.beforeRedirects.config(e,t,n)}function Qr(e,t){e&&Object.keys(e).forEach(n=>{t.has(n.toLowerCase())&&delete e[n]})}function $r(e,t){if(!t)return!1;try{return new URL(t.url).origin===new URL(e.href).origin}catch{return!1}}function ei(e,t,n,r,i,a,s=!0){let c=t,l=Gr(e,a,i);if(!c&&c!==!1&&s&&!Wr(l)){let e=vn(n);e&&(lr(n)||(c=new URL(e)))}if(r&&e.headers)for(let t of Object.keys(e.headers))t.toLowerCase()===`proxy-authorization`&&delete e.headers[t];if(r&&e.agent&&e.agent[zr]&&(e.agent=void 0),c){let t=c instanceof URL,r=e=>t||K.hasOwnProp(c,e)?c[e]:void 0,a=r(`username`),s=r(`password`),l=K.hasOwnProp(c,`auth`)?c.auth:void 0;if(a&&(l=(a||``)+`:`+(s||``)),l){let e=typeof l==`object`,t=e&&K.hasOwnProp(l,`username`)?l.username:void 0,n=e&&K.hasOwnProp(l,`password`)?l.password:void 0;if(t||n)l=(t||``)+`:`+(n||``);else if(e)throw new J(`Invalid proxy authorization`,J.ERR_BAD_OPTION,{proxy:c})}if(Fr.test(e.protocol)){if(!(i instanceof o)){let t=r(`hostname`)||r(`host`),n=r(`port`),a=r(`protocol`),o=a?a.includes(`:`)?a:`${a}:`:`http:`,s=t&&t.includes(`:`)&&!t.startsWith(`[`)?`[${t}]`:t,c=new URL(`${o}//${s}${n?`:`+n:``}`),u={protocol:c.protocol,hostname:c.hostname.replace(/^\[|\]$/g,``),port:c.port,auth:l&&typeof l==`string`?l:void 0};c.protocol===`https:`&&(u.ALPNProtocols=[`http/1.1`]);let d=Kr(u,i);e.agent=d,e.agents&&(e.agents.https=d)}}else{if(l){let t=Buffer.from(l,`utf8`).toString(`base64`);e.headers[`Proxy-Authorization`]=`Basic `+t}let t=!1;for(let n of Object.keys(e.headers))if(n.toLowerCase()===`host`){t=!0;break}t||(e.headers.host=e.hostname+(e.port?`:`+e.port:``));let i=r(`hostname`)||r(`host`);e.hostname=i,e.host=i,e.port=r(`port`),e.path=n;let a=r(`protocol`);a&&(e.protocol=a.includes(`:`)?a:`${a}:`)}}return e.beforeRedirects.proxy=function(e){ei(e,t,e.href,!0,i,a,s)},!!(c||t!==!1&&s&&Wr(l))}let ti=typeof process<`u`&&K.kindOf(process)===`process`,ni=e=>new Promise((t,n)=>{let r,i,a=(e,t)=>{i||(i=!0,r&&r(e,t))},o=e=>{a(e),t(e)},s=e=>{a(e,!0),n(e)};e(o,s,e=>r=e).catch(s)}),ri=({address:e,family:t})=>{if(!K.isString(e))throw new J(`address must be a string`,J.ERR_BAD_OPTION_VALUE);return{address:e,family:t||(e.indexOf(`.`)<0?6:4)}},ii=(e,t)=>ri(K.isObject(e)?e:{address:e,family:t}),ai=new WeakMap,oi=e=>{let t=ai.get(e);if(t)return t;let n=Rn(e,e=>K.isArray(e)?e:[e]);return t=(e,t,r)=>{n(e,t,(e,n,i)=>{if(e)return r(e);let a;try{a=K.isArray(n)?n.map(e=>ii(e)):[ii(n,i)]}catch(e){return r(e)}t.all?r(e,a):r(e,a[0].address,a[0].family)})},ai.set(e,t),t},si={request(e,t){let n=e.protocol+`//`+e.hostname+`:`+(e.port||(e.protocol===`https:`?443:80)),{http2Options:r,headers:i}=e,a=Xr.getSession(n,r),{HTTP2_HEADER_SCHEME:o,HTTP2_HEADER_METHOD:s,HTTP2_HEADER_PATH:c,HTTP2_HEADER_STATUS:u}=l.constants,d={[o]:e.protocol.replace(`:`,``),[s]:e.method,[c]:e.path};K.forEach(i,(e,t)=>{t.charAt(0)!==`:`&&(d[t]=e)});let f=a.request(d);return f.once(`response`,e=>{let n=f;e=Object.assign({},e);let r=e[u];delete e[u],n.headers=e,n.statusCode=+r,t(n)}),f}};var ci=ti&&function(e){return ni(async function(t,n,r){let i=t=>K.getSafeProp(e,t),a=i(`transitional`)||Ft,o=i(`data`),l=i(`lookup`),f=i(`family`),g=i(`httpVersion`);g===void 0&&(g=1);let _=g,v=i(`http2Options`),y=i(`httpAgent`),b=i(`httpsAgent`),x=i(`proxy`),S=i(`responseType`),C=i(`responseEncoding`),w=i(`socketPath`),T=i(`method`).toUpperCase(),E=i(`maxRedirects`),D=i(`maxBodyLength`),O=i(`maxContentLength`),k=i(`decompress`),A,j=!1,M,N;try{g=+g}catch{throw new J(`Invalid protocol version: value is not a number`,J.ERR_BAD_OPTION_VALUE,e)}if(Number.isNaN(g))throw new J(`Invalid protocol version: '${_}' is not a number`,J.ERR_BAD_OPTION_VALUE,e);if(g!==1&&g!==2)throw new J(`Unsupported protocol version '${g}'`,J.ERR_BAD_OPTION_VALUE,e);let P=g===2;l&&=oi(l);let F=new h.EventEmitter;function I(t){try{F.emit(`abort`,!t||t.type?new an(null,e,M):t)}catch{}}function L(){N&&=(clearTimeout(N),null)}function R(){let t=i(`timeout`),n=t?`timeout of `+t+`ms exceeded`:`timeout exceeded`,r=i(`timeoutErrorMessage`);return r&&(n=r),new J(n,a.clarifyTimeoutError?J.ETIMEDOUT:J.ECONNABORTED,e,M)}F.once(`abort`,n);let z=()=>{L(),e.cancelToken&&e.cancelToken.unsubscribe(I),e.signal&&e.signal.removeEventListener(`abort`,I),F.removeAllListeners()};(e.cancelToken||e.signal)&&(e.cancelToken&&e.cancelToken.subscribe(I),e.signal&&(e.signal.aborted?I():e.signal.addEventListener(`abort`,I))),r((e,t)=>{if(A=!0,L(),t){j=!0,z();return}let{data:n}=e;if(n instanceof m.Readable||n instanceof m.Duplex){let e=m.finished(n,()=>{e(),z()})}else z()});let B=hn(i(`baseURL`),i(`url`),i(`allowAbsoluteUrls`),e),V=w?`http://localhost`:X.hasBrowserEnv?X.origin:void 0,H=new URL(B,V),U=H.protocol||qr[0];if(U===`data:`){if(O>-1&&Tr(String(i(`url`)||B||``))>O)return n(new J(`maxContentLength size of `+O+` exceeded`,J.ERR_BAD_RESPONSE,e));let r;if(T!==`GET`)return on(t,n,{status:405,statusText:`method not allowed`,headers:{},config:e});try{r=wn(i(`url`),S===`blob`,{Blob:e.env&&e.env.Blob})}catch(t){throw J.from(t,J.ERR_BAD_REQUEST,e)}return S===`text`?(r=r.toString(C),C&&C!==`utf8`||(r=K.stripBOM(r))):S===`stream`&&(r=m.Readable.from(r)),on(t,n,{data:r,status:200,statusText:`OK`,headers:new q,config:e})}if(qr.indexOf(U)===-1)return n(new J(`Unsupported protocol `+U,J.ERR_BAD_REQUEST,e));let W=q.from(e.headers).normalize();W.set(`User-Agent`,`axios/1.20.0`,!1);let{onUploadProgress:ee,onDownloadProgress:te}=e,ne=e.maxRate,re,ie;if(K.isSpecCompliantForm(o)){let e=W.getContentType(/boundary=([-_\w\d]{10,70})/i);o=Fn(o,e=>{W.set(e)},{tag:`axios-${xn}-boundary`,boundary:e&&e[1]||void 0})}else if(K.isFormData(o)&&K.isFunction(o.getHeaders)&&o.getHeaders!==Object.prototype.getHeaders){if(En(W,o.getHeaders(),i(`formDataHeaderPolicy`)),!W.hasContentLength())try{let e=await u.promisify(o.getLength).call(o);Number.isFinite(e)&&e>=0&&W.setContentLength(e)}catch{}}else if(K.isBlob(o)||K.isFile(o))o.size&&W.setContentType(o.type||`application/octet-stream`),W.setContentLength(o.size||0),o=m.Readable.from(An(o));else if(o&&!K.isStream(o)){if(!Buffer.isBuffer(o)){if(K.isArrayBuffer(o))o=Buffer.from(new Uint8Array(o));else if(K.isString(o))o=Buffer.from(o,`utf-8`);else return n(new J(`Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream`,J.ERR_BAD_REQUEST,e))}if(W.setContentLength(o.length,!1),D>-1&&o.length>D)return n(new J(`Request body larger than maxBodyLength limit`,J.ERR_BAD_REQUEST,e))}let ae=K.toFiniteNumber(W.getContentLength());K.isArray(ne)?(re=ne[0],ie=ne[1]):re=ie=ne,o&&(ee||re)&&(K.isStream(o)||(o=m.Readable.from(o,{objectMode:!1})),o=m.pipeline([o,new On({maxRate:K.toFiniteNumber(re)})],K.noop),ee&&o.on(`progress`,Yr(o,pr(ae,fr(mr(ee,Mr),!1,3)))));let oe,se=i(`auth`);if(se){let e=K.getSafeProp(se,`username`)||``,t=K.getSafeProp(se,`password`)||``;oe=e+`:`+t}if(!oe&&(H.username||H.password)){let e=Jr(H.username),t=Jr(H.password);oe=e+`:`+t}oe&&W.delete(`authorization`);let ce;try{ce=Ot(H.pathname+H.search,i(`params`),i(`paramsSerializer`)).replace(/^\?/,``)}catch(t){return n(J.from(t,J.ERR_BAD_REQUEST,e,null,null,{url:i(`url`),exists:!0}))}W.set(`Accept-Encoding`,K.hasOwnProp(a,`advertiseZstdAcceptEncoding`)&&a.advertiseZstdAcceptEncoding===!0?jr:Ar,!1),P&&l&&(v=Object.assign(Object.create(null),v,{lookup:l}));let G=Object.assign(Object.create(null),{path:ce,method:T,headers:$e(W),agents:{http:y,https:b},auth:oe,protocol:U,family:f,beforeRedirect:Zr,beforeRedirects:Object.create(null),http2Options:v,createConnection:void 0});!K.isUndefined(l)&&(G.lookup=l);let le=!1;if(w){if(typeof w!=`string`)return n(new J(`socketPath must be a string`,J.ERR_BAD_OPTION_VALUE,e));let t=i(`allowedSocketPaths`);if(t!=null){let r=Array.isArray(t)?t:[t],i=d.resolve(w);if(!r.some(e=>typeof e==`string`&&d.resolve(e)===i))return n(new J(`socketPath "${w}" is not permitted by allowedSocketPaths`,J.ERR_BAD_OPTION_VALUE,e))}G.socketPath=w}else G.hostname=H.hostname.startsWith(`[`)?H.hostname.slice(1,-1):H.hostname,G.port=H.port,le=ei(G,x,U+`//`+H.hostname+(H.port?`:`+H.port:``)+G.path,!1,b,y,!P);let ue,de=!1,fe=!1,pe=Fr.test(G.protocol);if(G.agent??=pe?b:y,P){if(le)return n(new J(`HTTP/2 requests with a proxy are not supported`,J.ERR_NOT_SUPPORT,e));ue=si}else{let t=i(`transport`);if(t)ue=t;else if(E===0)ue=pe?c:s,de=!0;else{fe=!0,G.sensitiveHeaders=[],E&&(G.maxRedirects=E);let t=i(`beforeRedirect`);if(t&&(G.beforeRedirects.config=t),oe){let e=H.origin,t=oe;G.beforeRedirects.auth=function(n){try{new URL(n.href).origin===e&&(n.auth=t)}catch{}}}let r=i(`sensitiveHeaders`);if(r!=null){if(!K.isArray(r))return n(new J(`sensitiveHeaders must be an array of strings`,J.ERR_BAD_OPTION_VALUE,e));let t=new Set;for(let i of r){if(!K.isString(i))return n(new J(`sensitiveHeaders must be an array of strings`,J.ERR_BAD_OPTION_VALUE,e));t.add(i.toLowerCase())}t.size&&(G.sensitiveHeaders=Array.from(t),G.beforeRedirects.sensitiveHeaders=function(e,n){$r(e,n)||Qr(e.headers,t)})}ue=pe?Pr:Nr}}G.maxBodyLength=D>-1?D:1/0,G.insecureHTTPParser=!!i(`insecureHTTPParser`),M=ue.request(G,function(r){if(L(),M.destroyed)return;let i=[r],a=K.toFiniteNumber(r.headers[`content-length`]);if(te||ie){let e=new On({maxRate:K.toFiniteNumber(ie)});te&&e.on(`progress`,Yr(e,pr(a,fr(mr(te,Mr),!0,3)))),i.push(e)}let o=r,s=r.req||M;if(k!==!1&&r.headers[`content-encoding`])switch((T===`HEAD`||r.statusCode===204)&&delete r.headers[`content-encoding`],(r.headers[`content-encoding`]||``).toLowerCase()){case`gzip`:case`x-gzip`:case`compress`:case`x-compress`:i.push(p.createUnzip(Er)),delete r.headers[`content-encoding`];break;case`deflate`:i.push(new In),i.push(p.createUnzip(Er)),delete r.headers[`content-encoding`];break;case`br`:kr&&(i.push(p.createBrotliDecompress(Dr)),delete r.headers[`content-encoding`]);break;case`zstd`:Z&&(i.push(p.createZstdDecompress(Or)),delete r.headers[`content-encoding`])}o=i.length>1?m.pipeline(i,K.noop):i[0];let c={status:r.statusCode,statusText:r.statusMessage,headers:new q(r.headers),config:e,request:s};if(S===`stream`){if(O>-1){let t=O,n=o;async function*r(){let r=0;for await(let i of n){if(r+=i.length,r>t)throw new J(`maxContentLength size of `+t+` exceeded`,J.ERR_BAD_RESPONSE,e,s);yield i}}o=m.Readable.from(r(),{objectMode:!1})}c.data=o,on(t,n,c)}else{let r=[],i=0;o.on(`data`,function(t){r.push(t),i+=t.length,O>-1&&i>O&&(j=!0,o.destroy(),I(new J(`maxContentLength size of `+O+` exceeded`,J.ERR_BAD_RESPONSE,e,s)))}),o.on(`aborted`,function(){if(j)return;let t=new J(`stream has been aborted`,J.ERR_BAD_RESPONSE,e,s,c);o.destroy(t),n(t)}),o.on(`error`,function(t){j||n(J.from(t,null,e,s,c))}),o.on(`end`,function(){try{let e=r.length===1?r[0]:Buffer.concat(r);S!==`arraybuffer`&&(e=e.toString(C),C&&C!==`utf8`||(e=K.stripBOM(e))),c.data=e}catch(t){return n(J.from(t,null,e,c.request,c))}on(t,n,c)})}F.once(`abort`,e=>{o.destroyed||(o.emit(`error`,e),o.destroy())})}),F.once(`abort`,e=>{M.close?M.close():M.destroy(e)}),M.on(`error`,function(t){n(J.from(t,null,e,M))});let me=new Set;if(M.on(`socket`,function(e){typeof e.setKeepAlive==`function`&&e.setKeepAlive(!0,6e4),e[Ir]||(e.on(`error`,Rr),e[Ir]=!0),e[Lr]=M,me.add(e)}),M.once(`close`,function(){L();for(let e of me)e[Lr]===M&&(e[Lr]=null);me.clear()}),i(`timeout`)){let t=parseInt(i(`timeout`),10);if(Number.isNaN(t)){I(new J("error trying to parse `config.timeout` to int",J.ERR_BAD_OPTION_VALUE,e,M));return}let n=function(){A||I(R())};de&&t>0&&(N=setTimeout(n,t)),M.setTimeout(t,n)}else M.setTimeout(0);if(K.isStream(o)){let t=!1,n=!1;o.on(`end`,()=>{t=!0}),o.once(`error`,e=>{n=!0,M.destroy(e)}),o.on(`close`,()=>{!t&&!n&&I(new an(`Request stream has been aborted`,e,M))});let r=o;if(D>-1&&!fe){let t=D,n=0;r=m.pipeline([o,new m.Transform({transform(r,i,a){if(n+=r.length,n>t)return a(new J(`Request body larger than maxBodyLength limit`,J.ERR_BAD_REQUEST,e,M));a(null,r)}})],K.noop),r.on(`error`,e=>{M.destroyed||M.destroy(e)})}r.pipe(M)}else o&&M.write(o),M.end()})},li=X.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,X.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(X.origin),X.navigator&&/(msie|trident)/i.test(X.navigator.userAgent)):()=>!0,ui=X.hasStandardBrowserEnv?{write(e,t,n,r,i,a,o){if(typeof document>`u`)return;let s=[`${e}=${encodeURIComponent(t)}`];K.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),K.isString(r)&&s.push(`path=${r}`),K.isString(i)&&s.push(`domain=${i}`),a===!0&&s.push(`secure`),K.isString(o)&&s.push(`SameSite=${o}`),document.cookie=s.join(`; `)},read(e){if(typeof document>`u`)return null;let t=document.cookie.split(`;`);for(let n=0;n<t.length;n++){let r=t[n].replace(/^\s+/,``),i=r.indexOf(`=`);if(i!==-1&&r.slice(0,i)===e)try{return decodeURIComponent(r.slice(i+1))}catch{return r.slice(i+1)}}return null},remove(e){this.write(e,``,Date.now()-864e5,`/`)}}:{write(){},read(){return null},remove(){}};let di=e=>e instanceof q?{...e}:e,fi=e=>Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(e).concat(Object.getOwnPropertySymbols(e).filter(t=>Object.getOwnPropertyDescriptor(e,t).enumerable)):Object.keys(e);function pi(e,t){e||={},t||={};let n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function r(e,t,n,r){return K.isPlainObject(e)&&K.isPlainObject(t)?K.merge.call({caseless:r},e,t):K.isPlainObject(t)?K.merge({},t):K.isArray(t)?t.slice():t}function i(e,t,n,i){if(!K.isUndefined(t))return r(e,t,n,i);if(!K.isUndefined(e))return r(void 0,e,n,i)}function a(e,t){if(!K.isUndefined(t))return r(void 0,t)}function o(e,t){if(!K.isUndefined(t))return r(void 0,t);if(!K.isUndefined(e))return r(void 0,e)}function s(n){let r=K.hasOwnProp(t,`transitional`)?t.transitional:void 0;if(!K.isUndefined(r)){if(K.isPlainObject(r)){if(K.hasOwnProp(r,n))return r[n]}else return}let i=K.hasOwnProp(e,`transitional`)?e.transitional:void 0;if(K.isPlainObject(i)&&K.hasOwnProp(i,n))return i[n]}function c(n,i,a){if(K.hasOwnProp(t,a))return r(n,i);if(K.hasOwnProp(e,a))return r(void 0,n)}let l={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutErrorMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,allowedSocketPaths:o,responseEncoding:o,validateStatus:c,headers:(e,t,n)=>i(di(e),di(t),n,!0)};return K.forEach(fi({...e,...t}),function(r){if(r===`__proto__`||r===`constructor`||r===`prototype`)return;let a=K.hasOwnProp(l,r)?l[r]:i,o=a(K.hasOwnProp(e,r)?e[r]:void 0,K.hasOwnProp(t,r)?t[r]:void 0,r);K.isUndefined(o)&&a!==c||(n[r]=o)}),K.hasOwnProp(t,`validateStatus`)&&K.isUndefined(t.validateStatus)&&s(`validateStatusUndefinedResolves`)===!1&&(K.hasOwnProp(e,`validateStatus`)?n.validateStatus=r(void 0,e.validateStatus):delete n.validateStatus),n}let mi=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16)));function hi(e){let t=pi({},e),n=e=>K.hasOwnProp(t,e)?t[e]:void 0,r=n(`data`),i=n(`withXSRFToken`),a=n(`xsrfHeaderName`),o=n(`xsrfCookieName`),s=n(`headers`),c=n(`auth`),l=n(`baseURL`),u=n(`allowAbsoluteUrls`),d=n(`url`);if(t.headers=s=q.from(s),t.url=Ot(hn(l,d,u,t),n(`params`),n(`paramsSerializer`)),c){let t=K.getSafeProp(c,`username`)||``,n=K.getSafeProp(c,`password`)||``;try{s.set(`Authorization`,`Basic `+btoa(t+`:`+(n?mi(n):``)))}catch(t){throw J.from(t,J.ERR_BAD_OPTION_VALUE,e)}}if(K.isFormData(r)){let e=K.getSafeProp(r,`getHeaders`);X.hasStandardBrowserEnv||X.hasStandardBrowserWebWorkerEnv||K.isReactNative(r)?s.setContentType(void 0):K.isFunction(e)&&En(s,e.call(r),n(`formDataHeaderPolicy`))}if(X.hasStandardBrowserEnv&&(K.isFunction(i)&&(i=i(t)),i===!0||i==null&&li(t.url))){let e=a&&o&&ui.read(o);e&&s.set(a,e)}return t}var gi=typeof XMLHttpRequest<`u`&&function(e){return new Promise(function(t,n){let r=hi(e),i=r.data,a=q.from(r.headers).normalize(),{responseType:o,onUploadProgress:s,onDownloadProgress:c}=r,l,u,d,f,p,m;function h(){f&&f(),p&&p(),r.cancelToken&&r.cancelToken.unsubscribe(l),r.signal&&r.signal.removeEventListener(`abort`,l)}let g=new XMLHttpRequest;g.open(r.method.toUpperCase(),r.url,!0),g.timeout=r.timeout;function _(i){if(!g)return;if(g.status===0&&(Sn(un(r.url))||Sn(X.origin))!==`file`&&!(g.responseURL&&g.responseURL.startsWith(`file:`))){n(new J(`Request aborted`,J.ECONNABORTED,e,g)),h(),g=null;return}try{i?m&&m(i):p&&p()}catch(e){setTimeout(()=>{throw e})}if(!g)return;let a=q.from(`getAllResponseHeaders`in g&&g.getAllResponseHeaders());on(function(e){t(e),h()},function(e){n(e),h()},{data:!o||o===`text`||o===`json`?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:a,config:e,request:g}),g=null}`onloadend`in g?g.onloadend=_:g.onreadystatechange=function(){g&&g.readyState===4&&(g.status!==0||g.responseURL&&g.responseURL.startsWith(`file:`))&&setTimeout(_)},g.onabort=function(){g&&=(n(new J(`Request aborted`,J.ECONNABORTED,e,g)),h(),null)},g.onerror=function(t){let r=new J(t&&t.message?t.message:`Network Error`,J.ERR_NETWORK,e,g);r.event=t||null,n(r),h(),g=null},g.ontimeout=function(){let t=r.timeout?`timeout of `+r.timeout+`ms exceeded`:`timeout exceeded`,i=r.transitional||Ft;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new J(t,i.clarifyTimeoutError?J.ETIMEDOUT:J.ECONNABORTED,e,g)),h(),g=null},i===void 0&&a.setContentType(null),`setRequestHeader`in g&&K.forEach($e(a),function(e,t){g.setRequestHeader(t,e)}),K.isUndefined(r.withCredentials)||(g.withCredentials=!!r.withCredentials),o&&o!==`json`&&(g.responseType=r.responseType),c&&([d,p,m]=fr(c,!0),g.addEventListener(`progress`,d)),s&&g.upload&&([u,f]=fr(s),g.upload.addEventListener(`progress`,u),g.upload.addEventListener(`loadend`,f)),(r.cancelToken||r.signal)&&(l=t=>{g&&=(n(!t||t.type?new an(null,e,g):t),g.abort(),h(),null)},r.cancelToken&&r.cancelToken.subscribe(l),r.signal&&(r.signal.aborted?l():r.signal.addEventListener(`abort`,l)));let v=Sn(r.url);v&&!X.protocols.includes(v)?(n(new J(`Unsupported protocol `+v+`:`,J.ERR_BAD_REQUEST,e)),h()):g.send(i||null)})};let _i=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;let n=new AbortController,r=!1,i=function(e){if(!r){r=!0,o();let t=e instanceof Error?e:this.reason;n.abort(t instanceof J?t:new an(t instanceof Error?t.message:t))}},a=t&&setTimeout(()=>{a=null,i(new J(`timeout of ${t}ms exceeded`,J.ETIMEDOUT))},t),o=()=>{e&&=(a&&clearTimeout(a),a=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener(`abort`,i)}),null)};e.forEach(e=>{r||(e.aborted?i.call(e):e.addEventListener(`abort`,i,{once:!0}))});let{signal:s}=n;return s.unsubscribe=()=>K.asap(o),s},vi=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},yi=async function*(e,t){for await(let n of bi(e))yield*vi(n,t)},bi=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}let t=e.getReader();try{for(;;){let{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},xi=(e,t,n,r)=>{let i=yi(e,t),a=0,o,s=e=>{o||(o=!0,r&&r(e))};return new ReadableStream({async pull(e){try{let{done:t,value:r}=await i.next();if(t){s(),e.close();return}let o=r.byteLength;n&&n(a+=o),e.enqueue(new Uint8Array(r))}catch(e){throw s(e),e}},cancel(e){return s(e),i.return()}},{highWaterMark:2})},Si=65536,Ci={cache:`default`,redirect:`follow`,referrer:`about:client`,referrerPolicy:``,mode:`cors`,integrity:``,keepalive:!1,priority:`auto`,window:null},{isFunction:wi}=K,Ti=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))),Ei=e=>{if(!K.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},Di=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Oi=e=>{let t=e.indexOf(`://`),n=e;return t!==-1&&(n=n.slice(t+3)),n.includes(`@`)||n.includes(`:`)},ki=e=>{let t=K.global!==void 0&&K.global!==null?K.global:globalThis,{ReadableStream:n,TextEncoder:r}=t;e=K.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);let{fetch:i,Request:a,Response:o}=e,s=i?wi(i):typeof fetch==`function`,c=wi(a),l=wi(o);if(!s)return!1;let u=s&&wi(n),d=s&&(typeof r==`function`?(e=>t=>e.encode(t))(new r):async e=>new Uint8Array(await new a(e).arrayBuffer())),f=c&&u&&Di(()=>{let e=!1,t=new a(X.origin,{body:new n,method:`POST`,get duplex(){return e=!0,`half`}}),r=t.headers.has(`Content-Type`);return t.body!=null&&t.body.cancel(),e&&!r}),p=l&&u&&Di(()=>K.isReadableStream(new o(``).body)),m={stream:p&&(e=>e.body)};s&&[`text`,`arrayBuffer`,`blob`,`formData`,`stream`].forEach(e=>{!m[e]&&(m[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new J(`Response type '${e}' is not supported`,J.ERR_NOT_SUPPORT,n)})});let h=async e=>{if(e==null)return 0;if(K.isBlob(e))return e.size;if(K.isSpecCompliantForm(e))return(await new a(X.origin,{method:`POST`,body:e}).arrayBuffer()).byteLength;if(K.isArrayBufferView(e)||K.isArrayBuffer(e))return e.byteLength;if(K.isURLSearchParams(e)&&(e+=``),K.isString(e))return(await d(e)).byteLength},g=async(e,t)=>K.toFiniteNumber(e.getContentLength())??h(t);return async e=>{let{url:t,method:n,data:s,signal:l,cancelToken:d,timeout:_,onDownloadProgress:v,onUploadProgress:y,responseType:b,headers:x,withCredentials:S=`same-origin`,fetchOptions:C,maxContentLength:w,maxBodyLength:T,maxRedirects:E}=hi(e),D=K.isNumber(w)&&w>-1,O=K.isNumber(T)&&T>-1,k=t=>K.hasOwnProp(e,t)?e[t]:void 0,A=i||fetch;b=b?(b+``).toLowerCase():`text`;let j=_i([l,d&&d.toAbortSignal()],_),M=null,N=j&&j.unsubscribe&&(()=>{j.unsubscribe()}),P,F=null,I=()=>new J(`Request body larger than maxBodyLength limit`,J.ERR_BAD_REQUEST,e,M);try{let i,l=k(`auth`);if(l&&(i={username:K.getSafeProp(l,`username`)||``,password:K.getSafeProp(l,`password`)||``}),Oi(t)){let e=new URL(t,X.origin);!i&&(e.username||e.password)&&(i={username:Ei(e.username),password:Ei(e.password)}),(e.username||e.password)&&(e.username=``,e.password=``,t=e.href)}if(i&&(x.delete(`authorization`),x.set(`Authorization`,`Basic `+btoa(Ti((i.username||``)+`:`+(i.password||``))))),D&&typeof t==`string`&&t.startsWith(`data:`)&&wr(t)>w)throw new J(`maxContentLength size of `+w+` exceeded`,J.ERR_BAD_RESPONSE,e,M);if(O&&n!==`get`&&n!==`head`){let e=await h(s);if(typeof e==`number`&&isFinite(e)&&(P=e,e>T))throw I()}let d=O&&(K.isReadableStream(s)||K.isStream(s)),_=(e,t,n)=>xi(e,Si,e=>{if(O&&e>T)throw F=I();t&&t(e)},n);if(f&&n!==`get`&&n!==`head`&&(y||d)){if(P??=await g(x,s),P!==0||d){let e=new a(t,{method:`POST`,body:s,duplex:`half`}),n;if(K.isFormData(s)&&(n=e.headers.get(`content-type`))&&x.setContentType(n),e.body){let[t,n]=y&&pr(P,fr(mr(y)))||[];s=_(e.body,t,n)}}}else if(d&&!c&&u&&n!==`get`&&n!==`head`)s=_(s);else if(d&&c&&!f&&n!==`get`&&n!==`head`)throw new J(`Stream request bodies are not supported by the current fetch implementation`,J.ERR_NOT_SUPPORT,e,M);K.isString(S)||(S=S?`include`:`omit`);let L=c&&`credentials`in a.prototype;if(K.isFormData(s)){let e=x.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&x.delete(`content-type`)}x.set(`User-Agent`,`axios/1.20.0`,!1);let R=C==null?C:Object.assign(Object.create(null),C);R&&(delete R.body,delete R.headers,delete R.method,delete R.signal,delete R.duplex,delete R.credentials);let z=Object.assign(Object.create(null),R,{signal:j,method:n.toUpperCase(),headers:$e(x.normalize()),body:s,duplex:`half`,credentials:L?S:void 0});c&&(K.forEach(Ci,(e,t)=>{z[t]===void 0&&(z[t]=e)}),z.signal===void 0&&(z.signal=null),z.body===void 0&&(z.body=null)),E===0&&(z.redirect=`manual`,R&&(R.redirect=`manual`)),M=c&&new a(t,z);let B=await(c?A(M,R):A(t,z)),V=q.from(B.headers);if(D){let t=K.toFiniteNumber(V.getContentLength());if(t!=null&&t>w)throw new J(`maxContentLength size of `+w+` exceeded`,J.ERR_BAD_RESPONSE,e,M)}let H=p&&(b===`stream`||b===`response`);if(p&&B.body&&(v||D||H&&N)){let t={};[`status`,`statusText`,`headers`].forEach(e=>{t[e]=B[e]});let n=K.toFiniteNumber(V.getContentLength()),[r,i]=v&&pr(n,fr(mr(v),!0))||[],a=0;B=new o(xi(B.body,Si,t=>{if(D&&(a=t,a>w))throw new J(`maxContentLength size of `+w+` exceeded`,J.ERR_BAD_RESPONSE,e,M);r&&r(t)},()=>{i&&i(),N&&N()}),t)}b||=`text`;let U=await m[K.findKey(m,b)||`text`](B,e);if(D&&!p&&!H){let t;if(U!=null&&(typeof U.byteLength==`number`?t=U.byteLength:typeof U.size==`number`?t=U.size:typeof U==`string`&&(t=typeof r==`function`?new r().encode(U).byteLength:U.length)),typeof t==`number`&&t>w)throw new J(`maxContentLength size of `+w+` exceeded`,J.ERR_BAD_RESPONSE,e,M)}return!H&&N&&N(),await new Promise((t,n)=>{on(t,n,{data:U,headers:q.from(B.headers),status:B.status,statusText:B.statusText,config:e,request:M})})}catch(t){if(N&&N(),j&&j.aborted&&j.reason instanceof J){let n=j.reason;throw n.config=e,M&&(n.request=M),t!==n&&Object.defineProperty(n,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),n}if(F)throw M&&!F.request&&(F.request=M),F;if(t instanceof J)throw M&&!t.request&&(t.request=M),t;if(t&&t.name===`TypeError`&&/Load failed|fetch/i.test(t.message)){let n=new J(`Network Error`,J.ERR_NETWORK,e,M,t&&t.response);throw Object.defineProperty(n,"cause",{__proto__:null,value:t.cause||t,writable:!0,enumerable:!1,configurable:!0}),n}throw J.from(t,t&&t.code,e,M,t&&t.response)}}},Ai=new Map,ji=e=>{let t=e&&e.env||{},{fetch:n,Request:r,Response:i}=t,a=[r,i,n],o=a.length,s,c,l=Ai;for(;o--;)s=a[o],c=l.get(s),c===void 0&&l.set(s,c=o?new Map:ki(t)),l=c;return c};ji();let Mi={http:ci,xhr:gi,fetch:{get:ji}};K.forEach(Mi,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});let Ni=e=>`- ${e}`,Pi=e=>K.isFunction(e)||e===null||e===!1;function Fi(e,t){e=K.isArray(e)?e:[e];let{length:n}=e,r,i,a={};for(let o=0;o<n;o++){r=e[o];let n;if(i=r,!Pi(r)&&(i=Mi[(n=String(r)).toLowerCase()],i===void 0))throw new J(`Unknown adapter '${n}'`);if(i&&(K.isFunction(i)||(i=i.get(t))))break;a[n||`#`+o]=i}if(!i){let e=Object.entries(a).map(([e,t])=>`adapter ${e} `+(t===!1?`is not supported by the environment`:`is not available in the build`));throw new J(`There is no suitable adapter to dispatch the request `+(n?e.length>1?`since :
|
|
19
|
+
`),c=s.byteLength,l=Array.from(e.entries()).map(([e,t])=>{let n=new Pn(e,t);return c+=n.size,n});c+=o.byteLength*l.length,c=K.toFiniteNumber(c);let u={"Content-Type":`multipart/form-data; boundary=${a}`};return Number.isFinite(c)&&(u[`Content-Length`]=c),t&&t(u),m.Readable.from(async function*(){for(let e of l)yield o,yield*e.encode();yield s}())};var In=class extends m.Transform{__transform(e,t,n){this.push(e),n()}_transform(e,t,n){if(e.length!==0&&(this._transform=this.__transform,e[0]!==120)){let e=Buffer.alloc(2);e[0]=120,e[1]=156,this.push(e,t)}this.__transform(e,t,n)}},Ln=class{constructor(){this.sessions=Object.create(null)}getSession(e,t){t=Object.assign(Object.create(null),{sessionTimeout:1e3},t);let n=this.sessions[e];if(n){let e=n.length;for(let r=0;r<e;r++){let[e,i]=n[r];if(!e.destroyed&&!e.closed&&u.isDeepStrictEqual(i,t))return e}}let r=l.connect(e,t),i,a,o=()=>{if(i)return;i=!0,a&&=(clearTimeout(a),null);let t=n,o=t.length,s=o;for(;s--;)if(t[s][0]===r){o===1?delete this.sessions[e]:t.splice(s,1),r.closed||r.close();return}},s=r.request,{sessionTimeout:c}=t;if(c!=null){let e=0;r.request=function(){let t=s.apply(this,arguments);return e++,a&&=(clearTimeout(a),null),t.once(`close`,()=>{--e||(a=setTimeout(()=>{a=null,o()},c))}),t}}r.once(`close`,o),r.once(`error`,o);let d=[r,t];return n?n.push(d):n=this.sessions[e]=[d],r}};let Rn=(e,t)=>K.isAsyncFn(e)?function(...n){let r=n.pop();e.apply(this,n).then(e=>{try{t?r(null,...t(e)):r(null,e)}catch(e){r(e)}},r)}:e,zn=new Set([`localhost`,`0.0.0.0`]),Bn=e=>{let t=e.length;for(;t&&e.charCodeAt(t-1)===46;)t--;return t===e.length?e:e.slice(0,t)},Vn=e=>{let t=e.split(`.`);return t.length!==4||t[0]!==`127`?!1:t.every(e=>/^\d+$/.test(e)&&Number(e)>=0&&Number(e)<=255)},Hn=e=>{if(/^0[xX][0-9a-fA-F]+$/.test(e)){let t=parseInt(e.slice(2),16);return Number.isFinite(t)?t:null}if(e.length>1&&/^0[0-7]+$/.test(e)){let t=parseInt(e,8);return Number.isFinite(t)?t:null}if(e.length>1&&/^0[0-9]+$/.test(e))return null;if(/^[0-9]+$/.test(e)){let t=parseInt(e,10);return Number.isFinite(t)?t:null}return null},Un=e=>{if(typeof e!=`string`||!e||e.indexOf(`:`)!==-1)return e;let t=e;if(t.charAt(0)===`[`&&t.charAt(t.length-1)===`]`&&(t=t.slice(1,-1)),t=Bn(t),!/^[0-9.xXa-fA-F]+$/.test(t))return e;let n=t.split(`.`);if(n.some(e=>e===``))return e;if(n.length===4){let t=n.map(Hn);return t.some(e=>e===null||e<0||e>255)?e:t.join(`.`)}if(n.length>4||n.length===1)return e;let r=n.slice(0,-1),i=n[n.length-1],a=4-r.length,o=Hn(i);if(o===null)return e;let s=(1<<8*a)-1;if(o<0||o>s)return e;let c=Array(a).fill(0);for(let e=a-1,t=o;e>=0;e--,t>>=8)c[e]=t&255;let l=r.map(Hn);return l.some(e=>e===null||e<0||e>255)?e:[...l,...c].join(`.`)},Wn=e=>/^0{1,4}$/.test(e),Gn=e=>{if(e===`::`)return!0;let t=e.indexOf(`::`);if(t!==-1){if(t!==e.lastIndexOf(`::`))return!1;let n=e.slice(0,t),r=e.slice(t+2),i=n?n.split(`:`):[],a=r?r.split(`:`):[];return i.length+a.length<8&&i.every(Wn)&&a.every(Wn)}let n=e.split(`:`);return n.length===8&&n.every(Wn)},Kn=e=>{if(e===`::1`)return!0;let t=e.match(/^::ffff:(\d+\.\d+\.\d+\.\d+)$/i);if(t)return Vn(t[1]);let n=e.match(/^::ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i);if(n){let e=parseInt(n[1],16);return e>=32512&&e<=32767}let r=e.split(`:`);if(r.length===8){for(let e=0;e<7;e++)if(!/^0+$/.test(r[e]))return!1;return/^0*1$/.test(r[7])}return!1},qn=e=>e?zn.has(e)||Vn(e)||Gn(e)?!0:Kn(e):!1,Jn={http:80,https:443,ws:80,wss:443,ftp:21},Yn=e=>{let t=e,n=0;if(t.charAt(0)===`[`){let e=t.indexOf(`]`);if(e!==-1){let r=t.slice(1,e),i=t.slice(e+1);return i.charAt(0)===`:`&&/^\d+$/.test(i.slice(1))&&(n=Number.parseInt(i.slice(1),10)),[r,n]}}let r=t.indexOf(`:`),i=t.lastIndexOf(`:`);return r!==-1&&r===i&&/^\d+$/.test(t.slice(i+1))&&(n=Number.parseInt(t.slice(i+1),10),t=t.slice(0,i)),[t,n]},Xn=/^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:(\d+\.\d+\.\d+\.\d+)$/i,Zn=/^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i,Qn=e=>{if(typeof e!=`string`||e.indexOf(`:`)===-1)return e;let t=e.match(Xn);if(t)return t[1];let n=e.match(Zn);if(n){let e=parseInt(n[1],16),t=parseInt(n[2],16);return`${e>>8}.${e&255}.${t>>8}.${t&255}`}return e},$n=/^(?:0|[1-9]\d{0,2})$/,er=e=>{let t=e.split(`.`);return t.length===4&&t.every(e=>$n.test(e)&&Number(e)<=255)?t.map(Number):null},tr=/^[0-9a-f]{1,4}$/i,nr=e=>{let t=e.split(`::`);if(t.length>2)return null;let n=t[0]?t[0].split(`:`):[];if(t.length===2){let e=t[1]?t[1].split(`:`):[],r=8-n.length-e.length;if(r<1)return null;n.push(...Array(r).fill(`0`),...e)}return n.length!==8||n.some(e=>!tr.test(e))?null:n.flatMap(e=>{let t=Number.parseInt(e,16);return[t>>8&255,t&255]})},rr=e=>typeof e!=`string`||!e?null:e.indexOf(`:`)===-1?er(e):nr(e),ir=e=>{if(!e)return e;e.charAt(0)===`[`&&e.charAt(e.length-1)===`]`&&(e=e.slice(1,-1));let t=Bn(e),n=Un(t);return n===t?Qn(t):n},ar=e=>{let t=e,n=t.charAt(0)===`[`,r=t.charAt(t.length-1)===`]`,i=t.includes(`[`)||t.includes(`]`);if(n||r){if(!n||!r||(t=t.slice(1,-1),t.indexOf(`:`)===-1||t.includes(`[`)||t.includes(`]`)))return null}else if(i)return null;if(!t||t.charAt(t.length-1)===`.`)return null;let a=t.indexOf(`:`)!==-1;if(a)try{t=new URL(`http://[${t}]/`).hostname.slice(1,-1)}catch{return null}else if(t=Un(t),!er(t))return null;return{normalized:Qn(t),wasIPv6:a}},or=/^(.+)\/(0|[1-9]\d{0,2})$/,sr=e=>{if(e.indexOf(`/`)===-1)return;let t=or.exec(e);if(!t)return null;let n=Number(t[2]),r=ar(t[1]);if(!r)return null;let{normalized:i,wasIPv6:a}=r;if(a&&i.indexOf(`:`)===-1){if(n<96)return null;n-=96}let o=rr(i);return!o||n>o.length*8?null:{bytes:o,prefix:n}},cr=(e,t,n)=>{let r=n>>3;for(let n=0;n<r;n++)if(e[n]!==t[n])return!1;let i=n&7;if(i){let n=255<<8-i&255;if((e[r]&n)!==(t[r]&n))return!1}return!0};function lr(e){let t;try{t=new URL(e)}catch{return!1}let n=(process.env.no_proxy||process.env.NO_PROXY||``).toLowerCase();if(!n)return!1;if(n===`*`)return!0;let r=Number.parseInt(t.port,10)||Jn[t.protocol.split(`:`,1)[0]]||0,i=ir(t.hostname.toLowerCase()),a=rr(i);return n.split(/[\s,]+/).some(e=>{if(!e)return!1;if(e===`*`)return!0;let t=sr(e);if(t!==void 0)return t!==null&&!!a&&a.length===t.bytes.length&&cr(a,t.bytes,t.prefix);let[n,o]=Yn(e);return n=ir(n),!n||o&&o!==r?!1:(n.charAt(0)===`*`&&(n=n.slice(1)),n.charAt(0)===`.`?i.endsWith(n):i===n||qn(i)&&qn(n))})}function ur(e,t){e||=10;let n=Array(e),r=Array(e),i=0,a=0,o;return t=t===void 0?1e3:t,function(s){let c=Date.now(),l=r[a];o||=c,n[i]=s,r[i]=c;let u=a,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),c-o<t)return;let f=l&&c-l;return f?Math.round(d*1e3/f):void 0}}function dr(e,t){let n=0,r=1e3/t,i,a,o=(t,r=Date.now())=>{n=r,i=null,a&&=(clearTimeout(a),null),e(...t)};return[(...e)=>{let t=Date.now(),s=t-n;s>=r?o(e,t):(i=e,a||=setTimeout(()=>{a=null,o(i)},r-s))},()=>i&&o(i),(...e)=>o(e)]}let fr=(e,t,n=3)=>{let r=0,i=ur(50,250);return dr(n=>{if(!n||!K.isNumber(n.loaded))return;let a=n.loaded,o=n.lengthComputable?n.total:void 0,s=Math.max(0,o==null?a:Math.min(a,o)),c=Math.max(0,s-r),l=i(c);r=Math.max(r,s),e({loaded:s,total:o,progress:o?s/o:void 0,bytes:c,rate:l||void 0,estimated:l&&o?(o-s)/l:void 0,event:n,lengthComputable:o!=null,[t?`download`:`upload`]:!0})},n)},pr=(e,t)=>{let n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},mr=(e,t=K.asap)=>(...n)=>t(()=>e(...n)),hr=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,gr=(e,t,n)=>t+2<n&&hr(e.charCodeAt(t+1))&&hr(e.charCodeAt(t+2)),_r=e=>e<=57?e-48:(e&223)-55,vr=e=>e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===43||e===47||e===45||e===95,yr=e=>e===9||e===10||e===12||e===13||e===32,br=e=>{let t=Math.floor(e/4),n=e%4;return t*3+(n===2?1:n===3?2:0)},Z=e=>{let t=e.length,n=0;return t>0&&e.charCodeAt(t-1)===61&&(n++,t>1&&e.charCodeAt(t-2)===61&&n++),Math.floor((t-n)*3/4)},xr=e=>{let t=e.length,n=0,r=0,i=!1;for(let a=0;a<t;a++){let o=e.charCodeAt(a);o===37&&gr(e,a,t)&&(o=_r(e.charCodeAt(a+1))*16+_r(e.charCodeAt(a+2)),a+=2),yr(o)||(o===61?r++:!vr(o)||r>0?i=!0:n++)}return i||r>2||r>0&&(n+r)%4!=0||n%4==1?Z(e):br(n)},Sr=(e,t)=>{if(!e||typeof e!=`string`||!e.startsWith(`data:`))return 0;let n=e.indexOf(`,`);if(n<0)return 0;let r=e.slice(5,n),i=e.slice(n+1);if(/;base64/i.test(r))return t(i);let a=0;for(let e=0,t=i.length;e<t;e++){let n=i.charCodeAt(e);if(n===37&&gr(i,e,t))a+=1,e+=2;else if(n<128)a+=1;else if(n<2048)a+=2;else if(n>=55296&&n<=56319&&e+1<t){let t=i.charCodeAt(e+1);t>=56320&&t<=57343?(a+=4,e++):a+=3}else a+=3}return a};function Cr(e){let t=typeof e==`string`?e.indexOf(`#`):-1;return Sr(t===-1?e:e.slice(0,t),xr)}function wr(e){return Sr(e,Z)}let Tr={flush:p.constants.Z_SYNC_FLUSH,finishFlush:p.constants.Z_SYNC_FLUSH},Er={flush:p.constants.BROTLI_OPERATION_FLUSH,finishFlush:p.constants.BROTLI_OPERATION_FLUSH},Dr={flush:p.constants.ZSTD_e_flush,finishFlush:p.constants.ZSTD_e_flush},Or=K.isFunction(p.createBrotliDecompress),kr=K.isFunction(p.createZstdDecompress),Ar=`gzip, compress, deflate`+(Or?`, br`:``),jr=Ar+(kr?`, zstd`:``),Mr=typeof process<`u`&&process.nextTick?process.nextTick.bind(process):K.asap,{http:Nr,https:Pr}=f,Fr=/https:?/,Ir=Symbol(`axios.http.socketListener`),Lr=Symbol(`axios.http.currentReq`);function Rr(e){let t=this[Lr];t&&!t.destroyed&&t.destroy(e)}let zr=Symbol(`axios.http.installedTunnel`),Br=new Map,Vr=new WeakMap,Hr={22:21,24:5};function Ur(e=process.versions&&process.versions.node){if(!e)return!1;let[t,n]=e.split(`.`).map(e=>Number(e));return!Number.isInteger(t)||!Number.isInteger(n)?!1:t>24||Hr[t]!=null&&n>=Hr[t]}function Wr(e,t=process.versions&&process.versions.node){if(!Ur(t))return!1;let n=e&&e.options;return!!(n&&K.hasOwnProp(n,`proxyEnv`)&&n.proxyEnv!=null)}function Gr(e,t,n){return Fr.test(e.protocol)?n||c.globalAgent:t||s.globalAgent}function Kr(e,t){let n=e.protocol+`//`+e.hostname+`:`+(e.port||``)+`#`+(e.auth||``),r=t?Vr.get(t)||Vr.set(t,new Map).get(t):Br,i=r.get(n);if(i)return i;if(i=new o(t&&t.options?{...t.options,...e}:e),t&&t.options){let e={...t.options},n=i.callback;i.callback=function(t,r){return n.call(this,t,{...e,...r})}}return i[zr]=!0,r.set(n,i),i}let qr=Y.protocols.map(e=>e+`:`),Jr=e=>{if(!K.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},Yr=(e,[t,n])=>(e.on(`end`,n).on(`error`,n),t),Xr=new Ln;function Zr(e,t,n){e.beforeRedirects.proxy&&e.beforeRedirects.proxy(e),e.beforeRedirects.auth&&e.beforeRedirects.auth(e),e.beforeRedirects.sensitiveHeaders&&e.beforeRedirects.sensitiveHeaders(e,n),e.beforeRedirects.config&&e.beforeRedirects.config(e,t,n)}function Qr(e,t){e&&Object.keys(e).forEach(n=>{t.has(n.toLowerCase())&&delete e[n]})}function $r(e,t){if(!t)return!1;try{return new URL(t.url).origin===new URL(e.href).origin}catch{return!1}}function ei(e,t,n,r,i,a,s=!0){let c=t,l=Gr(e,a,i);if(!c&&c!==!1&&s&&!Wr(l)){let e=vn(n);e&&(lr(n)||(c=new URL(e)))}if(r&&e.headers)for(let t of Object.keys(e.headers))t.toLowerCase()===`proxy-authorization`&&delete e.headers[t];if(r&&e.agent&&e.agent[zr]&&(e.agent=void 0),c){let t=c instanceof URL,r=e=>t||K.hasOwnProp(c,e)?c[e]:void 0,a=r(`username`),s=r(`password`),l=K.hasOwnProp(c,`auth`)?c.auth:void 0;if(a&&(l=(a||``)+`:`+(s||``)),l){let e=typeof l==`object`,t=e&&K.hasOwnProp(l,`username`)?l.username:void 0,n=e&&K.hasOwnProp(l,`password`)?l.password:void 0;if(t||n)l=(t||``)+`:`+(n||``);else if(e)throw new J(`Invalid proxy authorization`,J.ERR_BAD_OPTION,{proxy:c})}if(Fr.test(e.protocol)){if(!(i instanceof o)){let t=r(`hostname`)||r(`host`),n=r(`port`),a=r(`protocol`),o=a?a.includes(`:`)?a:`${a}:`:`http:`,s=t&&t.includes(`:`)&&!t.startsWith(`[`)?`[${t}]`:t,c=new URL(`${o}//${s}${n?`:`+n:``}`),u={protocol:c.protocol,hostname:c.hostname.replace(/^\[|\]$/g,``),port:c.port,auth:l&&typeof l==`string`?l:void 0};c.protocol===`https:`&&(u.ALPNProtocols=[`http/1.1`]);let d=Kr(u,i);e.agent=d,e.agents&&(e.agents.https=d)}}else{if(l){let t=Buffer.from(l,`utf8`).toString(`base64`);e.headers[`Proxy-Authorization`]=`Basic `+t}let t=!1;for(let n of Object.keys(e.headers))if(n.toLowerCase()===`host`){t=!0;break}t||(e.headers.host=e.hostname+(e.port?`:`+e.port:``));let i=r(`hostname`)||r(`host`);e.hostname=i,e.host=i,e.port=r(`port`),e.path=n;let a=r(`protocol`);a&&(e.protocol=a.includes(`:`)?a:`${a}:`)}}return e.beforeRedirects.proxy=function(e){ei(e,t,e.href,!0,i,a,s)},!!(c||t!==!1&&s&&Wr(l))}let ti=typeof process<`u`&&K.kindOf(process)===`process`,ni=e=>new Promise((t,n)=>{let r,i,a=(e,t)=>{i||(i=!0,r&&r(e,t))},o=e=>{a(e),t(e)},s=e=>{a(e,!0),n(e)};e(o,s,e=>r=e).catch(s)}),ri=({address:e,family:t})=>{if(!K.isString(e))throw new J(`address must be a string`,J.ERR_BAD_OPTION_VALUE);return{address:e,family:t||(e.indexOf(`.`)<0?6:4)}},ii=(e,t)=>ri(K.isObject(e)?e:{address:e,family:t}),ai=new WeakMap,oi=e=>{let t=ai.get(e);if(t)return t;let n=Rn(e,e=>K.isArray(e)?e:[e]);return t=(e,t,r)=>{n(e,t,(e,n,i)=>{if(e)return r(e);let a;try{a=K.isArray(n)?n.map(e=>ii(e)):[ii(n,i)]}catch(e){return r(e)}t.all?r(e,a):r(e,a[0].address,a[0].family)})},ai.set(e,t),t},si={request(e,t){let n=e.protocol+`//`+e.hostname+`:`+(e.port||(e.protocol===`https:`?443:80)),{http2Options:r,headers:i}=e,a=Xr.getSession(n,r),{HTTP2_HEADER_SCHEME:o,HTTP2_HEADER_METHOD:s,HTTP2_HEADER_PATH:c,HTTP2_HEADER_STATUS:u}=l.constants,d={[o]:e.protocol.replace(`:`,``),[s]:e.method,[c]:e.path};K.forEach(i,(e,t)=>{t.charAt(0)!==`:`&&(d[t]=e)});let f=a.request(d);return f.once(`response`,e=>{let n=f;e=Object.assign({},e);let r=e[u];delete e[u],n.headers=e,n.statusCode=+r,t(n)}),f}};var ci=ti&&function(e){return ni(async function(t,n,r){let i=t=>K.getSafeProp(e,t),a=i(`transitional`)||Pt,o=i(`data`),l=i(`lookup`),f=i(`family`),g=i(`httpVersion`);g===void 0&&(g=1);let _=g,v=i(`http2Options`),y=i(`httpAgent`),b=i(`httpsAgent`),x=i(`proxy`),S=i(`responseType`),C=i(`responseEncoding`),w=i(`socketPath`),T=i(`method`).toUpperCase(),E=i(`maxRedirects`),D=i(`maxBodyLength`),O=i(`maxContentLength`),k=i(`decompress`),A,j=!1,M,N;try{g=+g}catch{throw new J(`Invalid protocol version: value is not a number`,J.ERR_BAD_OPTION_VALUE,e)}if(Number.isNaN(g))throw new J(`Invalid protocol version: '${_}' is not a number`,J.ERR_BAD_OPTION_VALUE,e);if(g!==1&&g!==2)throw new J(`Unsupported protocol version '${g}'`,J.ERR_BAD_OPTION_VALUE,e);let P=g===2;l&&=oi(l);let F=new h.EventEmitter;function I(t){try{F.emit(`abort`,!t||t.type?new nn(null,e,M):t)}catch{}}function L(){N&&=(clearTimeout(N),null)}function R(){let t=i(`timeout`),n=t?`timeout of `+t+`ms exceeded`:`timeout exceeded`,r=i(`timeoutErrorMessage`);return r&&(n=r),new J(n,a.clarifyTimeoutError?J.ETIMEDOUT:J.ECONNABORTED,e,M)}F.once(`abort`,n);let z=()=>{L(),e.cancelToken&&e.cancelToken.unsubscribe(I),e.signal&&e.signal.removeEventListener(`abort`,I),F.removeAllListeners()};(e.cancelToken||e.signal)&&(e.cancelToken&&e.cancelToken.subscribe(I),e.signal&&(e.signal.aborted?I():e.signal.addEventListener(`abort`,I))),r((e,t)=>{if(A=!0,L(),t){j=!0,z();return}let{data:n}=e;if(n instanceof m.Readable||n instanceof m.Duplex){let e=m.finished(n,()=>{e(),z()})}else z()});let B=hn(i(`baseURL`),i(`url`),i(`allowAbsoluteUrls`),e),V=w?`http://localhost`:Y.hasBrowserEnv?Y.origin:void 0,H=new URL(B,V),U=H.protocol||qr[0];if(U===`data:`){if(O>-1&&wr(String(i(`url`)||B||``))>O)return n(new J(`maxContentLength size of `+O+` exceeded`,J.ERR_BAD_RESPONSE,e));let r;if(T!==`GET`)return rn(t,n,{status:405,statusText:`method not allowed`,headers:{},config:e});try{r=wn(i(`url`),S===`blob`,{Blob:e.env&&e.env.Blob})}catch(t){throw J.from(t,J.ERR_BAD_REQUEST,e)}return S===`text`?(r=r.toString(C),C&&C!==`utf8`||(r=K.stripBOM(r))):S===`stream`&&(r=m.Readable.from(r)),rn(t,n,{data:r,status:200,statusText:`OK`,headers:new q,config:e})}if(qr.indexOf(U)===-1)return n(new J(`Unsupported protocol `+U,J.ERR_BAD_REQUEST,e));let W=q.from(e.headers).normalize();W.set(`User-Agent`,`axios/1.20.0`,!1);let{onUploadProgress:ee,onDownloadProgress:te}=e,ne=e.maxRate,re,ie;if(K.isSpecCompliantForm(o)){let e=W.getContentType(/boundary=([-_\w\d]{10,70})/i);o=Fn(o,e=>{W.set(e)},{tag:`axios-${xn}-boundary`,boundary:e&&e[1]||void 0})}else if(K.isFormData(o)&&K.isFunction(o.getHeaders)&&o.getHeaders!==Object.prototype.getHeaders){if(En(W,o.getHeaders(),i(`formDataHeaderPolicy`)),!W.hasContentLength())try{let e=await u.promisify(o.getLength).call(o);Number.isFinite(e)&&e>=0&&W.setContentLength(e)}catch{}}else if(K.isBlob(o)||K.isFile(o))o.size&&W.setContentType(o.type||`application/octet-stream`),W.setContentLength(o.size||0),o=m.Readable.from(An(o));else if(o&&!K.isStream(o)){if(!Buffer.isBuffer(o)){if(K.isArrayBuffer(o))o=Buffer.from(new Uint8Array(o));else if(K.isString(o))o=Buffer.from(o,`utf-8`);else return n(new J(`Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream`,J.ERR_BAD_REQUEST,e))}if(W.setContentLength(o.length,!1),D>-1&&o.length>D)return n(new J(`Request body larger than maxBodyLength limit`,J.ERR_BAD_REQUEST,e))}let ae=K.toFiniteNumber(W.getContentLength());K.isArray(ne)?(re=ne[0],ie=ne[1]):re=ie=ne,o&&(ee||re)&&(K.isStream(o)||(o=m.Readable.from(o,{objectMode:!1})),o=m.pipeline([o,new On({maxRate:K.toFiniteNumber(re)})],K.noop),ee&&o.on(`progress`,Yr(o,pr(ae,fr(mr(ee,Mr),!1,3)))));let oe,se=i(`auth`);if(se){let e=K.getSafeProp(se,`username`)||``,t=K.getSafeProp(se,`password`)||``;oe=e+`:`+t}if(!oe&&(H.username||H.password)){let e=Jr(H.username),t=Jr(H.password);oe=e+`:`+t}oe&&W.delete(`authorization`);let ce;try{ce=Ot(H.pathname+H.search,i(`params`),i(`paramsSerializer`)).replace(/^\?/,``)}catch(t){return n(J.from(t,J.ERR_BAD_REQUEST,e,null,null,{url:i(`url`),exists:!0}))}W.set(`Accept-Encoding`,K.hasOwnProp(a,`advertiseZstdAcceptEncoding`)&&a.advertiseZstdAcceptEncoding===!0?jr:Ar,!1),P&&l&&(v=Object.assign(Object.create(null),v,{lookup:l}));let G=Object.assign(Object.create(null),{path:ce,method:T,headers:$e(W),agents:{http:y,https:b},auth:oe,protocol:U,family:f,beforeRedirect:Zr,beforeRedirects:Object.create(null),http2Options:v,createConnection:void 0});!K.isUndefined(l)&&(G.lookup=l);let le=!1;if(w){if(typeof w!=`string`)return n(new J(`socketPath must be a string`,J.ERR_BAD_OPTION_VALUE,e));let t=i(`allowedSocketPaths`);if(t!=null){let r=Array.isArray(t)?t:[t],i=d.resolve(w);if(!r.some(e=>typeof e==`string`&&d.resolve(e)===i))return n(new J(`socketPath "${w}" is not permitted by allowedSocketPaths`,J.ERR_BAD_OPTION_VALUE,e))}G.socketPath=w}else G.hostname=H.hostname.startsWith(`[`)?H.hostname.slice(1,-1):H.hostname,G.port=H.port,le=ei(G,x,U+`//`+H.hostname+(H.port?`:`+H.port:``)+G.path,!1,b,y,!P);let ue,de=!1,fe=!1,pe=Fr.test(G.protocol);if(G.agent??=pe?b:y,P){if(le)return n(new J(`HTTP/2 requests with a proxy are not supported`,J.ERR_NOT_SUPPORT,e));ue=si}else{let t=i(`transport`);if(t)ue=t;else if(E===0)ue=pe?c:s,de=!0;else{fe=!0,G.sensitiveHeaders=[],E&&(G.maxRedirects=E);let t=i(`beforeRedirect`);if(t&&(G.beforeRedirects.config=t),oe){let e=H.origin,t=oe;G.beforeRedirects.auth=function(n){try{new URL(n.href).origin===e&&(n.auth=t)}catch{}}}let r=i(`sensitiveHeaders`);if(r!=null){if(!K.isArray(r))return n(new J(`sensitiveHeaders must be an array of strings`,J.ERR_BAD_OPTION_VALUE,e));let t=new Set;for(let i of r){if(!K.isString(i))return n(new J(`sensitiveHeaders must be an array of strings`,J.ERR_BAD_OPTION_VALUE,e));t.add(i.toLowerCase())}t.size&&(G.sensitiveHeaders=Array.from(t),G.beforeRedirects.sensitiveHeaders=function(e,n){$r(e,n)||Qr(e.headers,t)})}ue=pe?Pr:Nr}}G.maxBodyLength=D>-1?D:1/0,G.insecureHTTPParser=!!i(`insecureHTTPParser`),M=ue.request(G,function(r){if(L(),M.destroyed)return;let i=[r],a=K.toFiniteNumber(r.headers[`content-length`]);if(te||ie){let e=new On({maxRate:K.toFiniteNumber(ie)});te&&e.on(`progress`,Yr(e,pr(a,fr(mr(te,Mr),!0,3)))),i.push(e)}let o=r,s=r.req||M;if(k!==!1&&r.headers[`content-encoding`])switch((T===`HEAD`||r.statusCode===204)&&delete r.headers[`content-encoding`],(r.headers[`content-encoding`]||``).toLowerCase()){case`gzip`:case`x-gzip`:case`compress`:case`x-compress`:i.push(p.createUnzip(Tr)),delete r.headers[`content-encoding`];break;case`deflate`:i.push(new In),i.push(p.createUnzip(Tr)),delete r.headers[`content-encoding`];break;case`br`:Or&&(i.push(p.createBrotliDecompress(Er)),delete r.headers[`content-encoding`]);break;case`zstd`:kr&&(i.push(p.createZstdDecompress(Dr)),delete r.headers[`content-encoding`])}o=i.length>1?m.pipeline(i,K.noop):i[0];let c={status:r.statusCode,statusText:r.statusMessage,headers:new q(r.headers),config:e,request:s};if(S===`stream`){if(O>-1){let t=O,n=o;async function*r(){let r=0;for await(let i of n){if(r+=i.length,r>t)throw new J(`maxContentLength size of `+t+` exceeded`,J.ERR_BAD_RESPONSE,e,s);yield i}}o=m.Readable.from(r(),{objectMode:!1})}c.data=o,rn(t,n,c)}else{let r=[],i=0;o.on(`data`,function(t){r.push(t),i+=t.length,O>-1&&i>O&&(j=!0,o.destroy(),I(new J(`maxContentLength size of `+O+` exceeded`,J.ERR_BAD_RESPONSE,e,s)))}),o.on(`aborted`,function(){if(j)return;let t=new J(`stream has been aborted`,J.ERR_BAD_RESPONSE,e,s,c);o.destroy(t),n(t)}),o.on(`error`,function(t){j||n(J.from(t,null,e,s,c))}),o.on(`end`,function(){try{let e=r.length===1?r[0]:Buffer.concat(r);S!==`arraybuffer`&&(e=e.toString(C),C&&C!==`utf8`||(e=K.stripBOM(e))),c.data=e}catch(t){return n(J.from(t,null,e,c.request,c))}rn(t,n,c)})}F.once(`abort`,e=>{o.destroyed||(o.emit(`error`,e),o.destroy())})}),F.once(`abort`,e=>{M.close?M.close():M.destroy(e)}),M.on(`error`,function(t){n(J.from(t,null,e,M))});let me=new Set;if(M.on(`socket`,function(e){typeof e.setKeepAlive==`function`&&e.setKeepAlive(!0,6e4),e[Ir]||(e.on(`error`,Rr),e[Ir]=!0),e[Lr]=M,me.add(e)}),M.once(`close`,function(){L();for(let e of me)e[Lr]===M&&(e[Lr]=null);me.clear()}),i(`timeout`)){let t=parseInt(i(`timeout`),10);if(Number.isNaN(t)){I(new J("error trying to parse `config.timeout` to int",J.ERR_BAD_OPTION_VALUE,e,M));return}let n=function(){A||I(R())};de&&t>0&&(N=setTimeout(n,t)),M.setTimeout(t,n)}else M.setTimeout(0);if(K.isStream(o)){let t=!1,n=!1;o.on(`end`,()=>{t=!0}),o.once(`error`,e=>{n=!0,M.destroy(e)}),o.on(`close`,()=>{!t&&!n&&I(new nn(`Request stream has been aborted`,e,M))});let r=o;if(D>-1&&!fe){let t=D,n=0;r=m.pipeline([o,new m.Transform({transform(r,i,a){if(n+=r.length,n>t)return a(new J(`Request body larger than maxBodyLength limit`,J.ERR_BAD_REQUEST,e,M));a(null,r)}})],K.noop),r.on(`error`,e=>{M.destroyed||M.destroy(e)})}r.pipe(M)}else o&&M.write(o),M.end()})},li=Y.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Y.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Y.origin),Y.navigator&&/(msie|trident)/i.test(Y.navigator.userAgent)):()=>!0,ui=Y.hasStandardBrowserEnv?{write(e,t,n,r,i,a,o){if(typeof document>`u`)return;let s=[`${e}=${encodeURIComponent(t)}`];K.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),K.isString(r)&&s.push(`path=${r}`),K.isString(i)&&s.push(`domain=${i}`),a===!0&&s.push(`secure`),K.isString(o)&&s.push(`SameSite=${o}`),document.cookie=s.join(`; `)},read(e){if(typeof document>`u`)return null;let t=document.cookie.split(`;`);for(let n=0;n<t.length;n++){let r=t[n].replace(/^\s+/,``),i=r.indexOf(`=`);if(i!==-1&&r.slice(0,i)===e)try{return decodeURIComponent(r.slice(i+1))}catch{return r.slice(i+1)}}return null},remove(e){this.write(e,``,Date.now()-864e5,`/`)}}:{write(){},read(){return null},remove(){}};let di=e=>e instanceof q?{...e}:e,fi=e=>Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(e).concat(Object.getOwnPropertySymbols(e).filter(t=>Object.getOwnPropertyDescriptor(e,t).enumerable)):Object.keys(e);function pi(e,t){e||={},t||={};let n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function r(e,t,n,r){return K.isPlainObject(e)&&K.isPlainObject(t)?K.merge.call({caseless:r},e,t):K.isPlainObject(t)?K.merge({},t):K.isArray(t)?t.slice():t}function i(e,t,n,i){if(!K.isUndefined(t))return r(e,t,n,i);if(!K.isUndefined(e))return r(void 0,e,n,i)}function a(e,t){if(!K.isUndefined(t))return r(void 0,t)}function o(e,t){if(!K.isUndefined(t))return r(void 0,t);if(!K.isUndefined(e))return r(void 0,e)}function s(n){let r=K.hasOwnProp(t,`transitional`)?t.transitional:void 0;if(!K.isUndefined(r)){if(K.isPlainObject(r)){if(K.hasOwnProp(r,n))return r[n]}else return}let i=K.hasOwnProp(e,`transitional`)?e.transitional:void 0;if(K.isPlainObject(i)&&K.hasOwnProp(i,n))return i[n]}function c(n,i,a){if(K.hasOwnProp(t,a))return r(n,i);if(K.hasOwnProp(e,a))return r(void 0,n)}let l={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutErrorMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,allowedSocketPaths:o,responseEncoding:o,validateStatus:c,headers:(e,t,n)=>i(di(e),di(t),n,!0)};return K.forEach(fi({...e,...t}),function(r){if(r===`__proto__`||r===`constructor`||r===`prototype`)return;let a=K.hasOwnProp(l,r)?l[r]:i,o=a(K.hasOwnProp(e,r)?e[r]:void 0,K.hasOwnProp(t,r)?t[r]:void 0,r);K.isUndefined(o)&&a!==c||(n[r]=o)}),K.hasOwnProp(t,`validateStatus`)&&K.isUndefined(t.validateStatus)&&s(`validateStatusUndefinedResolves`)===!1&&(K.hasOwnProp(e,`validateStatus`)?n.validateStatus=r(void 0,e.validateStatus):delete n.validateStatus),n}let mi=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16)));function hi(e){let t=pi({},e),n=e=>K.hasOwnProp(t,e)?t[e]:void 0,r=n(`data`),i=n(`withXSRFToken`),a=n(`xsrfHeaderName`),o=n(`xsrfCookieName`),s=n(`headers`),c=n(`auth`),l=n(`baseURL`),u=n(`allowAbsoluteUrls`),d=n(`url`);if(t.headers=s=q.from(s),t.url=Ot(hn(l,d,u,t),n(`params`),n(`paramsSerializer`)),c){let t=K.getSafeProp(c,`username`)||``,n=K.getSafeProp(c,`password`)||``;try{s.set(`Authorization`,`Basic `+btoa(t+`:`+(n?mi(n):``)))}catch(t){throw J.from(t,J.ERR_BAD_OPTION_VALUE,e)}}if(K.isFormData(r)){let e=K.getSafeProp(r,`getHeaders`);Y.hasStandardBrowserEnv||Y.hasStandardBrowserWebWorkerEnv||K.isReactNative(r)?s.setContentType(void 0):K.isFunction(e)&&En(s,e.call(r),n(`formDataHeaderPolicy`))}if(Y.hasStandardBrowserEnv&&(K.isFunction(i)&&(i=i(t)),i===!0||i==null&&li(t.url))){let e=a&&o&&ui.read(o);e&&s.set(a,e)}return t}var gi=typeof XMLHttpRequest<`u`&&function(e){return new Promise(function(t,n){let r=hi(e),i=r.data,a=q.from(r.headers).normalize(),{responseType:o,onUploadProgress:s,onDownloadProgress:c}=r,l,u,d,f,p,m;function h(){f&&f(),p&&p(),r.cancelToken&&r.cancelToken.unsubscribe(l),r.signal&&r.signal.removeEventListener(`abort`,l)}let g=new XMLHttpRequest;g.open(r.method.toUpperCase(),r.url,!0),g.timeout=r.timeout;function _(i){if(!g)return;if(g.status===0&&(Sn(un(r.url))||Sn(Y.origin))!==`file`&&!(g.responseURL&&g.responseURL.startsWith(`file:`))){n(new J(`Request aborted`,J.ECONNABORTED,e,g)),h(),g=null;return}try{i?m&&m(i):p&&p()}catch(e){setTimeout(()=>{throw e})}if(!g)return;let a=q.from(`getAllResponseHeaders`in g&&g.getAllResponseHeaders());rn(function(e){t(e),h()},function(e){n(e),h()},{data:!o||o===`text`||o===`json`?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:a,config:e,request:g}),g=null}`onloadend`in g?g.onloadend=_:g.onreadystatechange=function(){g&&g.readyState===4&&(g.status!==0||g.responseURL&&g.responseURL.startsWith(`file:`))&&setTimeout(_)},g.onabort=function(){g&&=(n(new J(`Request aborted`,J.ECONNABORTED,e,g)),h(),null)},g.onerror=function(t){let r=new J(t&&t.message?t.message:`Network Error`,J.ERR_NETWORK,e,g);r.event=t||null,n(r),h(),g=null},g.ontimeout=function(){let t=r.timeout?`timeout of `+r.timeout+`ms exceeded`:`timeout exceeded`,i=r.transitional||Pt;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new J(t,i.clarifyTimeoutError?J.ETIMEDOUT:J.ECONNABORTED,e,g)),h(),g=null},i===void 0&&a.setContentType(null),`setRequestHeader`in g&&K.forEach($e(a),function(e,t){g.setRequestHeader(t,e)}),K.isUndefined(r.withCredentials)||(g.withCredentials=!!r.withCredentials),o&&o!==`json`&&(g.responseType=r.responseType),c&&([d,p,m]=fr(c,!0),g.addEventListener(`progress`,d)),s&&g.upload&&([u,f]=fr(s),g.upload.addEventListener(`progress`,u),g.upload.addEventListener(`loadend`,f)),(r.cancelToken||r.signal)&&(l=t=>{g&&=(n(!t||t.type?new nn(null,e,g):t),g.abort(),h(),null)},r.cancelToken&&r.cancelToken.subscribe(l),r.signal&&(r.signal.aborted?l():r.signal.addEventListener(`abort`,l)));let v=Sn(r.url);v&&!Y.protocols.includes(v)?(n(new J(`Unsupported protocol `+v+`:`,J.ERR_BAD_REQUEST,e)),h()):g.send(i||null)})};let _i=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;let n=new AbortController,r=!1,i=function(e){if(!r){r=!0,o();let t=e instanceof Error?e:this.reason;n.abort(t instanceof J?t:new nn(t instanceof Error?t.message:t))}},a=t&&setTimeout(()=>{a=null,i(new J(`timeout of ${t}ms exceeded`,J.ETIMEDOUT))},t),o=()=>{e&&=(a&&clearTimeout(a),a=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener(`abort`,i)}),null)};e.forEach(e=>{r||(e.aborted?i.call(e):e.addEventListener(`abort`,i,{once:!0}))});let{signal:s}=n;return s.unsubscribe=()=>K.asap(o),s},vi=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},yi=async function*(e,t){for await(let n of bi(e))yield*vi(n,t)},bi=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}let t=e.getReader();try{for(;;){let{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},xi=(e,t,n,r)=>{let i=yi(e,t),a=0,o,s=e=>{o||(o=!0,r&&r(e))};return new ReadableStream({async pull(e){try{let{done:t,value:r}=await i.next();if(t){s(),e.close();return}let o=r.byteLength;n&&n(a+=o),e.enqueue(new Uint8Array(r))}catch(e){throw s(e),e}},cancel(e){return s(e),i.return()}},{highWaterMark:2})},Si=65536,Ci={cache:`default`,redirect:`follow`,referrer:`about:client`,referrerPolicy:``,mode:`cors`,integrity:``,keepalive:!1,priority:`auto`,window:null},{isFunction:wi}=K,Ti=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))),Ei=e=>{if(!K.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},Di=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Oi=e=>{let t=e.indexOf(`://`),n=e;return t!==-1&&(n=n.slice(t+3)),n.includes(`@`)||n.includes(`:`)},ki=e=>{let t=K.global!==void 0&&K.global!==null?K.global:globalThis,{ReadableStream:n,TextEncoder:r}=t;e=K.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);let{fetch:i,Request:a,Response:o}=e,s=i?wi(i):typeof fetch==`function`,c=wi(a),l=wi(o);if(!s)return!1;let u=s&&wi(n),d=s&&(typeof r==`function`?(e=>t=>e.encode(t))(new r):async e=>new Uint8Array(await new a(e).arrayBuffer())),f=c&&u&&Di(()=>{let e=!1,t=new a(Y.origin,{body:new n,method:`POST`,get duplex(){return e=!0,`half`}}),r=t.headers.has(`Content-Type`);return t.body!=null&&t.body.cancel(),e&&!r}),p=l&&u&&Di(()=>K.isReadableStream(new o(``).body)),m={stream:p&&(e=>e.body)};s&&[`text`,`arrayBuffer`,`blob`,`formData`,`stream`].forEach(e=>{!m[e]&&(m[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new J(`Response type '${e}' is not supported`,J.ERR_NOT_SUPPORT,n)})});let h=async e=>{if(e==null)return 0;if(K.isBlob(e))return e.size;if(K.isSpecCompliantForm(e))return(await new a(Y.origin,{method:`POST`,body:e}).arrayBuffer()).byteLength;if(K.isArrayBufferView(e)||K.isArrayBuffer(e))return e.byteLength;if(K.isURLSearchParams(e)&&(e+=``),K.isString(e))return(await d(e)).byteLength},g=async(e,t)=>K.toFiniteNumber(e.getContentLength())??h(t);return async e=>{let{url:t,method:n,data:s,signal:l,cancelToken:d,timeout:_,onDownloadProgress:v,onUploadProgress:y,responseType:b,headers:x,withCredentials:S=`same-origin`,fetchOptions:C,maxContentLength:w,maxBodyLength:T,maxRedirects:E}=hi(e),D=K.isNumber(w)&&w>-1,O=K.isNumber(T)&&T>-1,k=t=>K.hasOwnProp(e,t)?e[t]:void 0,A=i||fetch;b=b?(b+``).toLowerCase():`text`;let j=_i([l,d&&d.toAbortSignal()],_),M=null,N=j&&j.unsubscribe&&(()=>{j.unsubscribe()}),P,F=null,I=()=>new J(`Request body larger than maxBodyLength limit`,J.ERR_BAD_REQUEST,e,M);try{let i,l=k(`auth`);if(l&&(i={username:K.getSafeProp(l,`username`)||``,password:K.getSafeProp(l,`password`)||``}),Oi(t)){let e=new URL(t,Y.origin);!i&&(e.username||e.password)&&(i={username:Ei(e.username),password:Ei(e.password)}),(e.username||e.password)&&(e.username=``,e.password=``,t=e.href)}if(i&&(x.delete(`authorization`),x.set(`Authorization`,`Basic `+btoa(Ti((i.username||``)+`:`+(i.password||``))))),D&&typeof t==`string`&&t.startsWith(`data:`)&&Cr(t)>w)throw new J(`maxContentLength size of `+w+` exceeded`,J.ERR_BAD_RESPONSE,e,M);if(O&&n!==`get`&&n!==`head`){let e=await h(s);if(typeof e==`number`&&isFinite(e)&&(P=e,e>T))throw I()}let d=O&&(K.isReadableStream(s)||K.isStream(s)),_=(e,t,n)=>xi(e,Si,e=>{if(O&&e>T)throw F=I();t&&t(e)},n);if(f&&n!==`get`&&n!==`head`&&(y||d)){if(P??=await g(x,s),P!==0||d){let e=new a(t,{method:`POST`,body:s,duplex:`half`}),n;if(K.isFormData(s)&&(n=e.headers.get(`content-type`))&&x.setContentType(n),e.body){let[t,n]=y&&pr(P,fr(mr(y)))||[];s=_(e.body,t,n)}}}else if(d&&!c&&u&&n!==`get`&&n!==`head`)s=_(s);else if(d&&c&&!f&&n!==`get`&&n!==`head`)throw new J(`Stream request bodies are not supported by the current fetch implementation`,J.ERR_NOT_SUPPORT,e,M);K.isString(S)||(S=S?`include`:`omit`);let L=c&&`credentials`in a.prototype;if(K.isFormData(s)){let e=x.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&x.delete(`content-type`)}x.set(`User-Agent`,`axios/1.20.0`,!1);let R=C==null?C:Object.assign(Object.create(null),C);R&&(delete R.body,delete R.headers,delete R.method,delete R.signal,delete R.duplex,delete R.credentials);let z=Object.assign(Object.create(null),R,{signal:j,method:n.toUpperCase(),headers:$e(x.normalize()),body:s,duplex:`half`,credentials:L?S:void 0});c&&(K.forEach(Ci,(e,t)=>{z[t]===void 0&&(z[t]=e)}),z.signal===void 0&&(z.signal=null),z.body===void 0&&(z.body=null)),E===0&&(z.redirect=`manual`,R&&(R.redirect=`manual`)),M=c&&new a(t,z);let B=await(c?A(M,R):A(t,z)),V=q.from(B.headers);if(D){let t=K.toFiniteNumber(V.getContentLength());if(t!=null&&t>w)throw new J(`maxContentLength size of `+w+` exceeded`,J.ERR_BAD_RESPONSE,e,M)}let H=p&&(b===`stream`||b===`response`);if(p&&B.body&&(v||D||H&&N)){let t={};[`status`,`statusText`,`headers`].forEach(e=>{t[e]=B[e]});let n=K.toFiniteNumber(V.getContentLength()),[r,i]=v&&pr(n,fr(mr(v),!0))||[],a=0;B=new o(xi(B.body,Si,t=>{if(D&&(a=t,a>w))throw new J(`maxContentLength size of `+w+` exceeded`,J.ERR_BAD_RESPONSE,e,M);r&&r(t)},()=>{i&&i(),N&&N()}),t)}b||=`text`;let U=await m[K.findKey(m,b)||`text`](B,e);if(D&&!p&&!H){let t;if(U!=null&&(typeof U.byteLength==`number`?t=U.byteLength:typeof U.size==`number`?t=U.size:typeof U==`string`&&(t=typeof r==`function`?new r().encode(U).byteLength:U.length)),typeof t==`number`&&t>w)throw new J(`maxContentLength size of `+w+` exceeded`,J.ERR_BAD_RESPONSE,e,M)}return!H&&N&&N(),await new Promise((t,n)=>{rn(t,n,{data:U,headers:q.from(B.headers),status:B.status,statusText:B.statusText,config:e,request:M})})}catch(t){if(N&&N(),j&&j.aborted&&j.reason instanceof J){let n=j.reason;throw n.config=e,M&&(n.request=M),t!==n&&Object.defineProperty(n,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),n}if(F)throw M&&!F.request&&(F.request=M),F;if(t instanceof J)throw M&&!t.request&&(t.request=M),t;if(t&&t.name===`TypeError`&&/Load failed|fetch/i.test(t.message)){let n=new J(`Network Error`,J.ERR_NETWORK,e,M,t&&t.response);throw Object.defineProperty(n,"cause",{__proto__:null,value:t.cause||t,writable:!0,enumerable:!1,configurable:!0}),n}throw J.from(t,t&&t.code,e,M,t&&t.response)}}},Ai=new Map,ji=e=>{let t=e&&e.env||{},{fetch:n,Request:r,Response:i}=t,a=[r,i,n],o=a.length,s,c,l=Ai;for(;o--;)s=a[o],c=l.get(s),c===void 0&&l.set(s,c=o?new Map:ki(t)),l=c;return c};ji();let Mi={http:ci,xhr:gi,fetch:{get:ji}};K.forEach(Mi,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});let Ni=e=>`- ${e}`,Pi=e=>K.isFunction(e)||e===null||e===!1;function Fi(e,t){e=K.isArray(e)?e:[e];let{length:n}=e,r,i,a={};for(let o=0;o<n;o++){r=e[o];let n;if(i=r,!Pi(r)&&(i=Mi[(n=String(r)).toLowerCase()],i===void 0))throw new J(`Unknown adapter '${n}'`);if(i&&(K.isFunction(i)||(i=i.get(t))))break;a[n||`#`+o]=i}if(!i){let e=Object.entries(a).map(([e,t])=>`adapter ${e} `+(t===!1?`is not supported by the environment`:`is not available in the build`));throw new J(`There is no suitable adapter to dispatch the request `+(n?e.length>1?`since :
|
|
20
20
|
`+e.map(Ni).join(`
|
|
21
|
-
`):` `+Ni(e[0]):`as no adapter specified`),J.ERR_NOT_SUPPORT)}return i}var Ii={getAdapter:Fi,adapters:Mi};function Li(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new
|
|
21
|
+
`):` `+Ni(e[0]):`as no adapter specified`),J.ERR_NOT_SUPPORT)}return i}var Ii={getAdapter:Fi,adapters:Mi};function Li(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new nn(null,e)}function Ri(e){let t=K.toSafeFlatObject(e);return Li(t),t.headers=q.from(K.getSafeProp(t,`headers`)),t.data=en.call(t,t.transformRequest),[`post`,`put`,`patch`].indexOf(t.method)!==-1&&t.headers.setContentType(`application/x-www-form-urlencoded`,!1),Ii.getAdapter(t.adapter||$t.adapter,t)(t).then(function(e){Li(t),t.response=e;try{e.data=en.call(t,t.transformResponse,e)}finally{delete t.response}return e.headers=q.from(e.headers),e},function(e){if(!tn(e)&&(Li(t),e&&e.response)){t.response=e.response;try{e.response.data=en.call(t,t.transformResponse,e.response)}finally{delete t.response}e.response.headers=q.from(e.response.headers)}return Promise.reject(e)})}let zi={};[`object`,`boolean`,`number`,`function`,`string`,`symbol`].forEach((e,t)=>{zi[e]=function(n){return typeof n===e||`a`+(t<1?`n `:` `)+e}});let Bi={};zi.transitional=function(e,t,n){function r(e,t){return`[Axios v1.20.0] Transitional option '`+e+`'`+t+(n?`. `+n:``)}return(n,i,a)=>{if(e===!1)throw new J(r(i,` has been removed`+(t?` in `+t:``)),J.ERR_DEPRECATED);return t&&!Bi[i]&&(Bi[i]=!0,console.warn(r(i,` has been deprecated since v`+t+` and will be removed in the near future`))),!e||e(n,i,a)}},zi.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};function Vi(e,t,n){if(typeof e!=`object`||!e)throw new J(`options must be an object`,J.ERR_BAD_OPTION_VALUE);let r=Object.keys(e),i=r.length;for(;i-->0;){let a=r[i],o=Object.prototype.hasOwnProperty.call(t,a)?t[a]:void 0;if(o){let t=e[a],n=t===void 0||o(t,a,e);if(n!==!0)throw new J(`option `+a+` must be `+n,J.ERR_BAD_OPTION_VALUE)}else if(n!==!0)throw new J(`Unknown option `+a,J.ERR_BAD_OPTION)}}var Hi={assertOptions:Vi,validators:zi};let Q=Hi.validators;var Ui=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Nt,response:new Nt}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error)try{let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let n=t.stack,r=``;if(typeof n==`string`){let e=n.indexOf(`
|
|
22
22
|
`);r=e===-1?``:n.slice(e+1)}if(!e.stack)e.stack=r;else if(r){let t=r.indexOf(`
|
|
23
23
|
`),n=t===-1?-1:r.indexOf(`
|
|
24
24
|
`,t+1),i=n===-1?``:r.slice(n+1);String(e.stack).endsWith(i)||(e.stack+=`
|
|
25
|
-
`+r)}}catch{}throw e}}_request(e,t){typeof e==`string`?(t||={},t.url=e):t=e||{},t=pi(this.defaults,t);let{transitional:n,paramsSerializer:r,headers:i}=t;n!==void 0&&Hi.assertOptions(n,{silentJSONParsing:Q.transitional(Q.boolean),forcedJSONParsing:Q.transitional(Q.boolean),clarifyTimeoutError:Q.transitional(Q.boolean),legacyInterceptorReqResOrdering:Q.transitional(Q.boolean),advertiseZstdAcceptEncoding:Q.transitional(Q.boolean),validateStatusUndefinedResolves:Q.transitional(Q.boolean)},!1),r!=null&&(K.isFunction(r)?t.paramsSerializer={serialize:r}:Hi.assertOptions(r,{encode:Q.function,serialize:Q.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls===void 0?t.allowAbsoluteUrls=!0:t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls),Hi.assertOptions(t,{baseUrl:Q.spelling(`baseURL`),withXsrfToken:Q.spelling(`withXSRFToken`)},!0),t.method=(K.getSafeProp(t,`method`)||K.getSafeProp(this.defaults,`method`)||`get`).toLowerCase();let a=i&&K.merge(i.common,i[t.method]);i&&K.forEach(Xt.concat(`common`),e=>{delete i[e]}),t.headers=q.concat(a,i);let o=[],s=!0;this.interceptors.request.forEach(function(e){if(typeof e.runWhen==`function`&&e.runWhen(t)===!1)return;s&&=e.synchronous;let n=t.transitional||Ft;n&&n.legacyInterceptorReqResOrdering?o.unshift(e.fulfilled,e.rejected):o.push(e.fulfilled,e.rejected)});let c=[];this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let l,u=0,d;if(!s){let e=[Ri.bind(this),void 0];for(e.unshift(...o),e.push(...c),d=e.length,l=Promise.resolve(t);u<d;)l=l.then(e[u++],e[u++]);return l}d=o.length;let f=t;for(;u<d;){let e=o[u++],t=o[u++];try{f=e?e(f):f}catch(e){if(!t){l=Promise.reject(e);break}try{let n=t.call(this,e);K.isThenable(n)&&(l=Promise.resolve(n).then(()=>Ri.call(this,f)))}catch(e){l=Promise.reject(e)}break}}if(!l)try{l=Ri.call(this,f)}catch(e){l=Promise.reject(e)}for(u=0,d=c.length;u<d;)l=l.then(c[u++],c[u++]);return l}getUri(e){return e=pi(this.defaults,e),Ot(hn(e.baseURL,e.url,e.allowAbsoluteUrls,e),e.params,e.paramsSerializer)}};K.forEach([`delete`,`get`,`head`,`options`],function(e){Ui.prototype[e]=function(t,n){return this.request(pi(n||{},{method:e,url:t,data:n&&K.hasOwnProp(n,`data`)?n.data:void 0}))}}),K.forEach([`post`,`put`,`patch`,`query`],function(e){function t(t){return function(n,r,i){return this.request(pi(i||{},{method:e,headers:t?{"Content-Type":`multipart/form-data`}:{},url:n,data:r}))}}Ui.prototype[e]=t(),e!==`query`&&(Ui.prototype[e+`Form`]=t(!0))});var Wi=class e{constructor(e){if(typeof e!=`function`)throw TypeError(`executor must be a function.`);let t;this.promise=new Promise(function(e){t=e});let n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-->0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t,r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,i){n.reason||(n.reason=new an(e,r,i),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}};function Gi(e){return function(t){return e.apply(null,t)}}function Ki(e){return K.isObject(e)&&e.isAxiosError===!0}let qi={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,ContentTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,UnprocessableContent: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,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(qi).forEach(([e,t])=>{qi[t]===void 0&&(qi[t]=e)});function Ji(e){let t=new Ui(e),n=g(Ui.prototype.request,t);return K.extend(n,Ui.prototype,t,{allOwnKeys:!0}),K.extend(n,t,null,{allOwnKeys:!0}),n.create=function(t){return Ji(pi(e,t))},n}let $=Ji(tn);$.Axios=Ui,$.CanceledError=an,$.CancelToken=Wi,$.isCancel=rn,$.VERSION=xn,$.toFormData=Ct,$.AxiosError=J,$.Cancel=$.CanceledError,$.all=function(e){return Promise.all(e)},$.spread=Gi,$.isAxiosError=Ki,$.mergeConfig=pi,$.AxiosHeaders=q,$.formToJSON=e=>Yt(K.isHTMLForm(e)?new FormData(e):e),$.getAdapter=Ii.getAdapter,$.HttpStatusCode=qi,$.default=$,n.exports=$})),tn=i(((e,t)=>{function n(){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)}t.exports=n})),nn=i(((e,t)=>{var n=Object.prototype.hasOwnProperty,r=`~`;function i(){}Object.create&&(i.prototype=Object.create(null),new i().__proto__||(r=!1));function a(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function o(e,t,n,i,o){if(typeof n!=`function`)throw TypeError(`The listener must be a function`);var s=new a(n,i||e,o),c=r?r+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=s,e._eventsCount++),e}function s(e,t){--e._eventsCount===0?e._events=new i:delete e._events[t]}function c(){this._events=new i,this._eventsCount=0}c.prototype.eventNames=function(){var e=[],t,i;if(this._eventsCount===0)return e;for(i in t=this._events)n.call(t,i)&&e.push(r?i.slice(1):i);return Object.getOwnPropertySymbols?e.concat(Object.getOwnPropertySymbols(t)):e},c.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,a=n.length,o=Array(a);i<a;i++)o[i]=n[i].fn;return o},c.prototype.listenerCount=function(e){var t=r?r+e:e,n=this._events[t];return n?n.fn?1:n.length:0},c.prototype.emit=function(e,t,n,i,a,o){var s=r?r+e:e;if(!this._events[s])return!1;var c=this._events[s],l=arguments.length,u,d;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),l){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,n),!0;case 4:return c.fn.call(c.context,t,n,i),!0;case 5:return c.fn.call(c.context,t,n,i,a),!0;case 6:return c.fn.call(c.context,t,n,i,a,o),!0}for(d=1,u=Array(l-1);d<l;d++)u[d-1]=arguments[d];c.fn.apply(c.context,u)}else{var f=c.length,p;for(d=0;d<f;d++)switch(c[d].once&&this.removeListener(e,c[d].fn,void 0,!0),l){case 1:c[d].fn.call(c[d].context);break;case 2:c[d].fn.call(c[d].context,t);break;case 3:c[d].fn.call(c[d].context,t,n);break;case 4:c[d].fn.call(c[d].context,t,n,i);break;default:if(!u)for(p=1,u=Array(l-1);p<l;p++)u[p-1]=arguments[p];c[d].fn.apply(c[d].context,u)}}return!0},c.prototype.on=function(e,t,n){return o(this,e,t,n,!1)},c.prototype.once=function(e,t,n){return o(this,e,t,n,!0)},c.prototype.removeListener=function(e,t,n,i){var a=r?r+e:e;if(!this._events[a])return this;if(!t)return s(this,a),this;var o=this._events[a];if(o.fn)o.fn!==t||i&&!o.once||n&&o.context!==n||s(this,a);else{for(var c=0,l=[],u=o.length;c<u;c++)(o[c].fn!==t||i&&!o[c].once||n&&o[c].context!==n)&&l.push(o[c]);l.length?this._events[a]=l.length===1?l[0]:l:s(this,a)}return this},c.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&s(this,t)):(this._events=new i,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=r,c.EventEmitter=c,t!==void 0&&(t.exports=c)})),rn=i(((e,t)=>{t.exports=(e,t)=>(t||=(()=>{}),e.then(e=>new Promise(e=>{e(t())}).then(()=>e),e=>new Promise(e=>{e(t())}).then(()=>{throw e})))})),an=i(((e,t)=>{let n=rn();var r=class extends Error{constructor(e){super(e),this.name=`TimeoutError`}};let i=(e,t,i)=>new Promise((a,o)=>{if(typeof t!=`number`||t<0)throw TypeError("Expected `milliseconds` to be a positive number");if(t===1/0){a(e);return}let s=setTimeout(()=>{if(typeof i==`function`){try{a(i())}catch(e){o(e)}return}let n=typeof i==`string`?i:`Promise timed out after ${t} milliseconds`,s=i instanceof Error?i:new r(n);typeof e.cancel==`function`&&e.cancel(),o(s)},t);n(e.then(a,o),()=>{clearTimeout(s)})});t.exports=i,t.exports.default=i,t.exports.TimeoutError=r})),on=i((e=>{Object.defineProperty(e,"__esModule",{value:!0});function t(e,t,n){let r=0,i=e.length;for(;i>0;){let a=i/2|0,o=r+a;n(e[o],t)<=0?(r=++o,i-=a+1):i=a}return r}e.default=t})),sn=i((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=on();e.default=class{constructor(){this._queue=[]}enqueue(e,n){n=Object.assign({priority:0},n);let r={priority:n.priority,run:e};if(this.size&&this._queue[this.size-1].priority>=n.priority){this._queue.push(r);return}let i=t.default(this._queue,r,(e,t)=>t.priority-e.priority);this._queue.splice(i,0,r)}dequeue(){return this._queue.shift()?.run}filter(e){return this._queue.filter(t=>t.priority===e.priority).map(e=>e.run)}get size(){return this._queue.length}}})),cn=i((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=nn(),n=an(),r=sn(),i=()=>{},a=new n.TimeoutError;e.default=class extends t{constructor(e){if(super(),this._intervalCount=0,this._intervalEnd=0,this._pendingCount=0,this._resolveEmpty=i,this._resolveIdle=i,e=Object.assign({carryoverConcurrencyCount:!1,intervalCap:1/0,interval:0,concurrency:1/0,autoStart:!0,queueClass:r.default},e),!(typeof e.intervalCap==`number`&&e.intervalCap>=1))throw TypeError(`Expected \`intervalCap\` to be a number from 1 and up, got \`${e.intervalCap?.toString()??``}\` (${typeof e.intervalCap})`);if(e.interval===void 0||!(Number.isFinite(e.interval)&&e.interval>=0))throw TypeError(`Expected \`interval\` to be a finite number >= 0, got \`${e.interval?.toString()??``}\` (${typeof e.interval})`);this._carryoverConcurrencyCount=e.carryoverConcurrencyCount,this._isIntervalIgnored=e.intervalCap===1/0||e.interval===0,this._intervalCap=e.intervalCap,this._interval=e.interval,this._queue=new e.queueClass,this._queueClass=e.queueClass,this.concurrency=e.concurrency,this._timeout=e.timeout,this._throwOnTimeout=e.throwOnTimeout===!0,this._isPaused=e.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=i,this._pendingCount===0&&(this._resolveIdle(),this._resolveIdle=i,this.emit(`idle`))}_onResumeInterval(){this._onInterval(),this._initializeIntervalIfNeeded(),this._timeoutId=void 0}_isIntervalPaused(){let e=Date.now();if(this._intervalId===void 0){let t=this._intervalEnd-e;if(t<0)this._intervalCount=this._carryoverConcurrencyCount?this._pendingCount:0;else return this._timeoutId===void 0&&(this._timeoutId=setTimeout(()=>{this._onResumeInterval()},t)),!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 e=!this._isIntervalPaused();if(this._doesIntervalAllowAnother&&this._doesConcurrentAllowAnother){let t=this._queue.dequeue();return t?(this.emit(`active`),t(),e&&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(e){if(!(typeof e==`number`&&e>=1))throw TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${e}\` (${typeof e})`);this._concurrency=e,this._processQueue()}async add(e,t={}){return new Promise((r,i)=>{this._queue.enqueue(async()=>{this._pendingCount++,this._intervalCount++;try{r(await(this._timeout===void 0&&t.timeout===void 0?e():n.default(Promise.resolve(e()),t.timeout===void 0?this._timeout:t.timeout,()=>{(t.throwOnTimeout===void 0?this._throwOnTimeout:t.throwOnTimeout)&&i(a)})))}catch(e){i(e)}this._next()},t),this._tryToStartAnother(),this.emit(`add`)})}async addAll(e,t){return Promise.all(e.map(async e=>this.add(e,t)))}start(){return this._isPaused&&(this._isPaused=!1,this._processQueue()),this}pause(){this._isPaused=!0}clear(){this._queue=new this._queueClass}async onEmpty(){if(this._queue.size!==0)return new Promise(e=>{let t=this._resolveEmpty;this._resolveEmpty=()=>{t(),e()}})}async onIdle(){if(this._pendingCount!==0||this._queue.size!==0)return new Promise(e=>{let t=this._resolveIdle;this._resolveIdle=()=>{t(),e()}})}get size(){return this._queue.size}sizeBy(e){return this._queue.filter(e).length}get pending(){return this._pendingCount}get isPaused(){return this._isPaused}get timeout(){return this._timeout}set timeout(e){this._timeout=e}}})),ln=i(((e,t)=>{let n=z(),r=[`Failed to fetch`,`NetworkError when attempting to fetch resource.`,`The Internet connection appears to be offline.`,`Network request failed`];var i=class extends Error{constructor(e){super(),e instanceof Error?(this.originalError=e,{message:e}=e):(this.originalError=Error(e),this.originalError.stack=this.stack),this.name=`AbortError`,this.message=e}};let a=(e,t,n)=>{let r=n.retries-(t-1);return e.attemptNumber=t,e.retriesLeft=r,e},o=e=>r.includes(e),s=(e,t)=>new Promise((r,s)=>{t={onFailedAttempt:()=>{},retries:10,...t};let c=n.operation(t);c.attempt(async n=>{try{r(await e(n))}catch(e){if(!(e instanceof Error)){s(TypeError(`Non-error was thrown: "${e}". You should only throw errors.`));return}if(e instanceof i)c.stop(),s(e.originalError);else if(e instanceof TypeError&&!o(e.message))c.stop(),s(e);else{a(e,n,t);try{await t.onFailedAttempt(e)}catch(e){s(e);return}c.retry(e)||s(c.mainError())}}})});t.exports=s,t.exports.default=s,t.exports.AbortError=i})),un=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.getFileUploadJob=a,e.getMultipleFileUploadJobs=o,e.getFileData=s,e.getFileDataLength=c,e.getFileDataAsStream=l,e.getAllFileUploadsToComplete=u,e.warnIfNotUsingFilesUploadV2=d,e.warnIfChannels=f,e.errorIfChannelsCsv=p,e.errorIfInvalidOrMissingFileData=m,e.warnIfMissingOrInvalidFileNameAndDefault=h,e.warnIfLegacyFileType=g,e.buildMissingFileIdError=_,e.buildFileSizeErrorMsg=v,e.buildLegacyFileTypeWarning=y,e.buildMissingFileNameWarning=b,e.buildMissingExtensionWarning=x,e.buildLegacyMethodWarning=S,e.buildGeneralFilesUploadWarning=C,e.buildFilesUploadMissingMessage=w,e.buildChannelsWarning=T,e.buildMultipleChannelsErrorMsg=E,e.buildInvalidFilesUploadParamError=D;let n=t(`node:fs`),r=t(`node:stream`),i=je();async function a(e,t){g(e,t),f(e,t),p(e);let n=h(e,t),r=await s(e),a=c(r),o={alt_text:e.alt_text,blocks:e.blocks,channel_id:e.channels??e.channel_id,filename:e.filename??n,highlight_type:e.highlight_type,initial_comment:e.initial_comment,snippet_type:e.snippet_type,title:e.title??e.filename??n,data:r,length:a};if(`thread_ts`in e&&(o.thread_ts=e.thread_ts),`token`in e&&(o.token=e.token),`content`in e)return Object.assign({content:e.content},o);if(`file`in e)return Object.assign({file:e.file},o);throw(0,i.errorWithCode)(Error(`Either a file or content field is required for valid file upload. You must supply one`),i.ErrorCode.FileUploadInvalidArgumentsError)}async function o(e,t){if(`file_uploads`in e)return Promise.all(e.file_uploads.map(n=>{let{blocks:r,channel_id:o,channels:s,initial_comment:c,thread_ts:l}=n;if(r||o||s||c||l)throw(0,i.errorWithCode)(Error(D()),i.ErrorCode.FileUploadInvalidArgumentsError);let u=Object.assign(Object.assign({},n),{blocks:e.blocks,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 n)return a(Object.assign({content:n.content},u),t);if(`file`in n)return a(Object.assign({file:n.file},u),t);throw(0,i.errorWithCode)(Error(`Either a file or content field is required for valid file upload. You must supply one`),i.ErrorCode.FileUploadInvalidArgumentsError)}));throw Error(w())}async function s(e){if(m(e),`file`in e){let{file:t}=e;if(Buffer.isBuffer(t))return t;if(typeof t==`string`)try{return(0,n.readFileSync)(t)}catch{throw(0,i.errorWithCode)(Error(`Unable to resolve file data for ${t}. Please supply a filepath string, or binary data Buffer or String directly.`),i.ErrorCode.FileUploadInvalidArgumentsError)}let r=await l(t);if(r)return r}if(`content`in e)return Buffer.from(e.content);throw(0,i.errorWithCode)(Error(`There was an issue getting the file data for the file or content supplied`),i.ErrorCode.FileUploadReadFileDataError)}function c(e){if(e)return Buffer.byteLength(e,`utf8`);throw(0,i.errorWithCode)(Error(v()),i.ErrorCode.FileUploadReadFileDataError)}async function l(e){let t=[];return new Promise((n,r)=>{e.on(`readable`,()=>{let n=e.read();for(;n!==null;)t.push(n),n=e.read()}),e.on(`end`,()=>{t.length>0?n(Buffer.concat(t)):r(Error(`No data in supplied file`))})})}function u(e){let t={};for(let n of e){let{blocks:e,channel_id:r,thread_ts:i,highlight_type:a,initial_comment:o,file_id:s,title:c}=n;if(s){let l=`:::${r}:::${i}:::${o}:::${JSON.stringify(e)}`;if(Object.prototype.hasOwnProperty.call(t,l))t[l].files.push({id:s,title:c,highlight_type:a});else{if(t[l]={files:[{id:s,title:c,highlight_type:a}],channel_id:r,blocks:e,initial_comment:o},i&&r){let e={channel_id:r,thread_ts:i};t[l]=Object.assign(Object.assign({},t[l]),e)}`token`in n&&(t[l].token=n.token)}}else throw Error(_())}return t}function d(e,t){let n=[`files.upload`].includes(e);e===`files.upload`&&t.warn(S(e)),n&&t.info(C())}function f(e,t){e.channels&&t.warn(T())}function p(e){if((e.channels?e.channels.split(`,`):[]).length>1)throw(0,i.errorWithCode)(Error(E()),i.ErrorCode.FileUploadInvalidArgumentsError)}function m(e){let t=`file`in e,n=`content`in e;if(!(t||n)||t&&n)throw(0,i.errorWithCode)(Error(`Either a file or content field is required for valid file upload. You cannot supply both`),i.ErrorCode.FileUploadInvalidArgumentsError);if(`file`in e){let{file:t}=e;if(t&&!(typeof t==`string`||Buffer.isBuffer(t)||t instanceof r.Readable))throw(0,i.errorWithCode)(Error(`file must be a valid string path, buffer or Readable`),i.ErrorCode.FileUploadInvalidArgumentsError)}if(`content`in e&&e.content&&typeof e.content!=`string`)throw(0,i.errorWithCode)(Error(`content must be a string`),i.ErrorCode.FileUploadInvalidArgumentsError)}function h(e,t){let n=`file.${e.filetype??`txt`}`,{filename:r}=e;return r?(r.split(`.`).length<2&&t.warn(x(r)),r):(t.warn(b()),n)}function g(e,t){e.filetype&&t.warn(y())}function _(){return`Missing required file id for file upload completion`}function v(){return`There was an issue calculating the size of your file`}function y(){return`filetype is no longer a supported field in files.uploadV2.
|
|
25
|
+
`+r)}}catch{}throw e}}_request(e,t){typeof e==`string`?(t||={},t.url=e):t=e||{},t=pi(this.defaults,t);let{transitional:n,paramsSerializer:r,headers:i}=t;n!==void 0&&Hi.assertOptions(n,{silentJSONParsing:Q.transitional(Q.boolean),forcedJSONParsing:Q.transitional(Q.boolean),clarifyTimeoutError:Q.transitional(Q.boolean),legacyInterceptorReqResOrdering:Q.transitional(Q.boolean),advertiseZstdAcceptEncoding:Q.transitional(Q.boolean),validateStatusUndefinedResolves:Q.transitional(Q.boolean)},!1),r!=null&&(K.isFunction(r)?t.paramsSerializer={serialize:r}:Hi.assertOptions(r,{encode:Q.function,serialize:Q.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls===void 0?t.allowAbsoluteUrls=!0:t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls),Hi.assertOptions(t,{baseUrl:Q.spelling(`baseURL`),withXsrfToken:Q.spelling(`withXSRFToken`)},!0),t.method=(K.getSafeProp(t,`method`)||K.getSafeProp(this.defaults,`method`)||`get`).toLowerCase();let a=i&&K.merge(i.common,i[t.method]);i&&K.forEach(Xt.concat(`common`),e=>{delete i[e]}),t.headers=q.concat(a,i);let o=[],s=!0;this.interceptors.request.forEach(function(e){if(typeof e.runWhen==`function`&&e.runWhen(t)===!1)return;s&&=e.synchronous;let n=t.transitional||Pt;n&&n.legacyInterceptorReqResOrdering?o.unshift(e.fulfilled,e.rejected):o.push(e.fulfilled,e.rejected)});let c=[];this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let l,u=0,d;if(!s){let e=[Ri.bind(this),void 0];for(e.unshift(...o),e.push(...c),d=e.length,l=Promise.resolve(t);u<d;)l=l.then(e[u++],e[u++]);return l}d=o.length;let f=t;for(;u<d;){let e=o[u++],t=o[u++];try{f=e?e(f):f}catch(e){if(!t){l=Promise.reject(e);break}try{let n=t.call(this,e);K.isThenable(n)&&(l=Promise.resolve(n).then(()=>Ri.call(this,f)))}catch(e){l=Promise.reject(e)}break}}if(!l)try{l=Ri.call(this,f)}catch(e){l=Promise.reject(e)}for(u=0,d=c.length;u<d;)l=l.then(c[u++],c[u++]);return l}getUri(e){return e=pi(this.defaults,e),Ot(hn(e.baseURL,e.url,e.allowAbsoluteUrls,e),e.params,e.paramsSerializer)}};K.forEach([`delete`,`get`,`head`,`options`],function(e){Ui.prototype[e]=function(t,n){return this.request(pi(n||{},{method:e,url:t,data:n&&K.hasOwnProp(n,`data`)?n.data:void 0}))}}),K.forEach([`post`,`put`,`patch`,`query`],function(e){function t(t){return function(n,r,i){return this.request(pi(i||{},{method:e,headers:t?{"Content-Type":`multipart/form-data`}:{},url:n,data:r}))}}Ui.prototype[e]=t(),e!==`query`&&(Ui.prototype[e+`Form`]=t(!0))});var Wi=class e{constructor(e){if(typeof e!=`function`)throw TypeError(`executor must be a function.`);let t;this.promise=new Promise(function(e){t=e});let n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-->0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t,r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,i){n.reason||(n.reason=new nn(e,r,i),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}};function Gi(e){return function(t){return e.apply(null,t)}}function Ki(e){return K.isObject(e)&&e.isAxiosError===!0}let qi={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,ContentTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,UnprocessableContent: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,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(qi).forEach(([e,t])=>{qi[t]===void 0&&(qi[t]=e)});function Ji(e){let t=new Ui(e),n=g(Ui.prototype.request,t);return K.extend(n,Ui.prototype,t,{allOwnKeys:!0}),K.extend(n,t,null,{allOwnKeys:!0}),n.create=function(t){return Ji(pi(e,t))},n}let $=Ji($t);$.Axios=Ui,$.CanceledError=nn,$.CancelToken=Wi,$.isCancel=tn,$.VERSION=xn,$.toFormData=Ct,$.AxiosError=J,$.Cancel=$.CanceledError,$.all=function(e){return Promise.all(e)},$.spread=Gi,$.isAxiosError=Ki,$.mergeConfig=pi,$.AxiosHeaders=q,$.formToJSON=e=>X(K.isHTMLForm(e)?new FormData(e):e),$.getAdapter=Ii.getAdapter,$.HttpStatusCode=qi,$.default=$,n.exports=$})),un=i(((e,t)=>{function n(){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)}t.exports=n})),dn=i(((e,t)=>{var n=Object.prototype.hasOwnProperty,r=`~`;function i(){}Object.create&&(i.prototype=Object.create(null),new i().__proto__||(r=!1));function a(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function o(e,t,n,i,o){if(typeof n!=`function`)throw TypeError(`The listener must be a function`);var s=new a(n,i||e,o),c=r?r+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=s,e._eventsCount++),e}function s(e,t){--e._eventsCount===0?e._events=new i:delete e._events[t]}function c(){this._events=new i,this._eventsCount=0}c.prototype.eventNames=function(){var e=[],t,i;if(this._eventsCount===0)return e;for(i in t=this._events)n.call(t,i)&&e.push(r?i.slice(1):i);return Object.getOwnPropertySymbols?e.concat(Object.getOwnPropertySymbols(t)):e},c.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,a=n.length,o=Array(a);i<a;i++)o[i]=n[i].fn;return o},c.prototype.listenerCount=function(e){var t=r?r+e:e,n=this._events[t];return n?n.fn?1:n.length:0},c.prototype.emit=function(e,t,n,i,a,o){var s=r?r+e:e;if(!this._events[s])return!1;var c=this._events[s],l=arguments.length,u,d;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),l){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,n),!0;case 4:return c.fn.call(c.context,t,n,i),!0;case 5:return c.fn.call(c.context,t,n,i,a),!0;case 6:return c.fn.call(c.context,t,n,i,a,o),!0}for(d=1,u=Array(l-1);d<l;d++)u[d-1]=arguments[d];c.fn.apply(c.context,u)}else{var f=c.length,p;for(d=0;d<f;d++)switch(c[d].once&&this.removeListener(e,c[d].fn,void 0,!0),l){case 1:c[d].fn.call(c[d].context);break;case 2:c[d].fn.call(c[d].context,t);break;case 3:c[d].fn.call(c[d].context,t,n);break;case 4:c[d].fn.call(c[d].context,t,n,i);break;default:if(!u)for(p=1,u=Array(l-1);p<l;p++)u[p-1]=arguments[p];c[d].fn.apply(c[d].context,u)}}return!0},c.prototype.on=function(e,t,n){return o(this,e,t,n,!1)},c.prototype.once=function(e,t,n){return o(this,e,t,n,!0)},c.prototype.removeListener=function(e,t,n,i){var a=r?r+e:e;if(!this._events[a])return this;if(!t)return s(this,a),this;var o=this._events[a];if(o.fn)o.fn!==t||i&&!o.once||n&&o.context!==n||s(this,a);else{for(var c=0,l=[],u=o.length;c<u;c++)(o[c].fn!==t||i&&!o[c].once||n&&o[c].context!==n)&&l.push(o[c]);l.length?this._events[a]=l.length===1?l[0]:l:s(this,a)}return this},c.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&s(this,t)):(this._events=new i,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=r,c.EventEmitter=c,t!==void 0&&(t.exports=c)})),fn=i(((e,t)=>{t.exports=(e,t)=>(t||=(()=>{}),e.then(e=>new Promise(e=>{e(t())}).then(()=>e),e=>new Promise(e=>{e(t())}).then(()=>{throw e})))})),pn=i(((e,t)=>{let n=fn();var r=class extends Error{constructor(e){super(e),this.name=`TimeoutError`}};let i=(e,t,i)=>new Promise((a,o)=>{if(typeof t!=`number`||t<0)throw TypeError("Expected `milliseconds` to be a positive number");if(t===1/0){a(e);return}let s=setTimeout(()=>{if(typeof i==`function`){try{a(i())}catch(e){o(e)}return}let n=typeof i==`string`?i:`Promise timed out after ${t} milliseconds`,s=i instanceof Error?i:new r(n);typeof e.cancel==`function`&&e.cancel(),o(s)},t);n(e.then(a,o),()=>{clearTimeout(s)})});t.exports=i,t.exports.default=i,t.exports.TimeoutError=r})),mn=i((e=>{Object.defineProperty(e,"__esModule",{value:!0});function t(e,t,n){let r=0,i=e.length;for(;i>0;){let a=i/2|0,o=r+a;n(e[o],t)<=0?(r=++o,i-=a+1):i=a}return r}e.default=t})),hn=i((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=mn();e.default=class{constructor(){this._queue=[]}enqueue(e,n){n=Object.assign({priority:0},n);let r={priority:n.priority,run:e};if(this.size&&this._queue[this.size-1].priority>=n.priority){this._queue.push(r);return}let i=t.default(this._queue,r,(e,t)=>t.priority-e.priority);this._queue.splice(i,0,r)}dequeue(){return this._queue.shift()?.run}filter(e){return this._queue.filter(t=>t.priority===e.priority).map(e=>e.run)}get size(){return this._queue.length}}})),gn=i((e=>{Object.defineProperty(e,"__esModule",{value:!0});let t=dn(),n=pn(),r=hn(),i=()=>{},a=new n.TimeoutError;e.default=class extends t{constructor(e){if(super(),this._intervalCount=0,this._intervalEnd=0,this._pendingCount=0,this._resolveEmpty=i,this._resolveIdle=i,e=Object.assign({carryoverConcurrencyCount:!1,intervalCap:1/0,interval:0,concurrency:1/0,autoStart:!0,queueClass:r.default},e),!(typeof e.intervalCap==`number`&&e.intervalCap>=1))throw TypeError(`Expected \`intervalCap\` to be a number from 1 and up, got \`${e.intervalCap?.toString()??``}\` (${typeof e.intervalCap})`);if(e.interval===void 0||!(Number.isFinite(e.interval)&&e.interval>=0))throw TypeError(`Expected \`interval\` to be a finite number >= 0, got \`${e.interval?.toString()??``}\` (${typeof e.interval})`);this._carryoverConcurrencyCount=e.carryoverConcurrencyCount,this._isIntervalIgnored=e.intervalCap===1/0||e.interval===0,this._intervalCap=e.intervalCap,this._interval=e.interval,this._queue=new e.queueClass,this._queueClass=e.queueClass,this.concurrency=e.concurrency,this._timeout=e.timeout,this._throwOnTimeout=e.throwOnTimeout===!0,this._isPaused=e.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=i,this._pendingCount===0&&(this._resolveIdle(),this._resolveIdle=i,this.emit(`idle`))}_onResumeInterval(){this._onInterval(),this._initializeIntervalIfNeeded(),this._timeoutId=void 0}_isIntervalPaused(){let e=Date.now();if(this._intervalId===void 0){let t=this._intervalEnd-e;if(t<0)this._intervalCount=this._carryoverConcurrencyCount?this._pendingCount:0;else return this._timeoutId===void 0&&(this._timeoutId=setTimeout(()=>{this._onResumeInterval()},t)),!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 e=!this._isIntervalPaused();if(this._doesIntervalAllowAnother&&this._doesConcurrentAllowAnother){let t=this._queue.dequeue();return t?(this.emit(`active`),t(),e&&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(e){if(!(typeof e==`number`&&e>=1))throw TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${e}\` (${typeof e})`);this._concurrency=e,this._processQueue()}async add(e,t={}){return new Promise((r,i)=>{this._queue.enqueue(async()=>{this._pendingCount++,this._intervalCount++;try{r(await(this._timeout===void 0&&t.timeout===void 0?e():n.default(Promise.resolve(e()),t.timeout===void 0?this._timeout:t.timeout,()=>{(t.throwOnTimeout===void 0?this._throwOnTimeout:t.throwOnTimeout)&&i(a)})))}catch(e){i(e)}this._next()},t),this._tryToStartAnother(),this.emit(`add`)})}async addAll(e,t){return Promise.all(e.map(async e=>this.add(e,t)))}start(){return this._isPaused&&(this._isPaused=!1,this._processQueue()),this}pause(){this._isPaused=!0}clear(){this._queue=new this._queueClass}async onEmpty(){if(this._queue.size!==0)return new Promise(e=>{let t=this._resolveEmpty;this._resolveEmpty=()=>{t(),e()}})}async onIdle(){if(this._pendingCount!==0||this._queue.size!==0)return new Promise(e=>{let t=this._resolveIdle;this._resolveIdle=()=>{t(),e()}})}get size(){return this._queue.size}sizeBy(e){return this._queue.filter(e).length}get pending(){return this._pendingCount}get isPaused(){return this._isPaused}get timeout(){return this._timeout}set timeout(e){this._timeout=e}}})),_n=i(((e,t)=>{let n=B(),r=[`Failed to fetch`,`NetworkError when attempting to fetch resource.`,`The Internet connection appears to be offline.`,`Network request failed`];var i=class extends Error{constructor(e){super(),e instanceof Error?(this.originalError=e,{message:e}=e):(this.originalError=Error(e),this.originalError.stack=this.stack),this.name=`AbortError`,this.message=e}};let a=(e,t,n)=>{let r=n.retries-(t-1);return e.attemptNumber=t,e.retriesLeft=r,e},o=e=>r.includes(e),s=(e,t)=>new Promise((r,s)=>{t={onFailedAttempt:()=>{},retries:10,...t};let c=n.operation(t);c.attempt(async n=>{try{r(await e(n))}catch(e){if(!(e instanceof Error)){s(TypeError(`Non-error was thrown: "${e}". You should only throw errors.`));return}if(e instanceof i)c.stop(),s(e.originalError);else if(e instanceof TypeError&&!o(e.message))c.stop(),s(e);else{a(e,n,t);try{await t.onFailedAttempt(e)}catch(e){s(e);return}c.retry(e)||s(c.mainError())}}})});t.exports=s,t.exports.default=s,t.exports.AbortError=i})),vn=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.getFileUploadJob=a,e.getMultipleFileUploadJobs=o,e.getFileData=s,e.getFileDataLength=c,e.getFileDataAsStream=l,e.getAllFileUploadsToComplete=u,e.warnIfNotUsingFilesUploadV2=d,e.warnIfChannels=f,e.errorIfChannelsCsv=p,e.errorIfInvalidOrMissingFileData=m,e.warnIfMissingOrInvalidFileNameAndDefault=h,e.warnIfLegacyFileType=g,e.buildMissingFileIdError=_,e.buildFileSizeErrorMsg=v,e.buildLegacyFileTypeWarning=y,e.buildMissingFileNameWarning=b,e.buildMissingExtensionWarning=x,e.buildLegacyMethodWarning=S,e.buildGeneralFilesUploadWarning=C,e.buildFilesUploadMissingMessage=w,e.buildChannelsWarning=T,e.buildMultipleChannelsErrorMsg=E,e.buildInvalidFilesUploadParamError=D;let n=t(`node:fs`),r=t(`node:stream`),i=ze();async function a(e,t){g(e,t),f(e,t),p(e);let n=h(e,t),r=await s(e),a=c(r),o={alt_text:e.alt_text,blocks:e.blocks,channel_id:e.channels??e.channel_id,filename:e.filename??n,highlight_type:e.highlight_type,initial_comment:e.initial_comment,snippet_type:e.snippet_type,title:e.title??e.filename??n,data:r,length:a};if(`thread_ts`in e&&(o.thread_ts=e.thread_ts),`token`in e&&(o.token=e.token),`content`in e)return Object.assign({content:e.content},o);if(`file`in e)return Object.assign({file:e.file},o);throw(0,i.errorWithCode)(Error(`Either a file or content field is required for valid file upload. You must supply one`),i.ErrorCode.FileUploadInvalidArgumentsError)}async function o(e,t){if(`file_uploads`in e)return Promise.all(e.file_uploads.map(n=>{let{blocks:r,channel_id:o,channels:s,initial_comment:c,thread_ts:l}=n;if(r||o||s||c||l)throw(0,i.errorWithCode)(Error(D()),i.ErrorCode.FileUploadInvalidArgumentsError);let u=Object.assign(Object.assign({},n),{blocks:e.blocks,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 n)return a(Object.assign({content:n.content},u),t);if(`file`in n)return a(Object.assign({file:n.file},u),t);throw(0,i.errorWithCode)(Error(`Either a file or content field is required for valid file upload. You must supply one`),i.ErrorCode.FileUploadInvalidArgumentsError)}));throw Error(w())}async function s(e){if(m(e),`file`in e){let{file:t}=e;if(Buffer.isBuffer(t))return t;if(typeof t==`string`)try{return(0,n.readFileSync)(t)}catch{throw(0,i.errorWithCode)(Error(`Unable to resolve file data for ${t}. Please supply a filepath string, or binary data Buffer or String directly.`),i.ErrorCode.FileUploadInvalidArgumentsError)}let r=await l(t);if(r)return r}if(`content`in e)return Buffer.from(e.content);throw(0,i.errorWithCode)(Error(`There was an issue getting the file data for the file or content supplied`),i.ErrorCode.FileUploadReadFileDataError)}function c(e){if(e)return Buffer.byteLength(e,`utf8`);throw(0,i.errorWithCode)(Error(v()),i.ErrorCode.FileUploadReadFileDataError)}async function l(e){let t=[];return new Promise((n,r)=>{e.on(`readable`,()=>{let n=e.read();for(;n!==null;)t.push(n),n=e.read()}),e.on(`end`,()=>{t.length>0?n(Buffer.concat(t)):r(Error(`No data in supplied file`))})})}function u(e){let t={};for(let n of e){let{blocks:e,channel_id:r,thread_ts:i,highlight_type:a,initial_comment:o,file_id:s,title:c}=n;if(s){let l=`:::${r}:::${i}:::${o}:::${JSON.stringify(e)}`;if(Object.prototype.hasOwnProperty.call(t,l))t[l].files.push({id:s,title:c,highlight_type:a});else{if(t[l]={files:[{id:s,title:c,highlight_type:a}],channel_id:r,blocks:e,initial_comment:o},i&&r){let e={channel_id:r,thread_ts:i};t[l]=Object.assign(Object.assign({},t[l]),e)}`token`in n&&(t[l].token=n.token)}}else throw Error(_())}return t}function d(e,t){let n=[`files.upload`].includes(e);e===`files.upload`&&t.warn(S(e)),n&&t.info(C())}function f(e,t){e.channels&&t.warn(T())}function p(e){if((e.channels?e.channels.split(`,`):[]).length>1)throw(0,i.errorWithCode)(Error(E()),i.ErrorCode.FileUploadInvalidArgumentsError)}function m(e){let t=`file`in e,n=`content`in e;if(!(t||n)||t&&n)throw(0,i.errorWithCode)(Error(`Either a file or content field is required for valid file upload. You cannot supply both`),i.ErrorCode.FileUploadInvalidArgumentsError);if(`file`in e){let{file:t}=e;if(t&&!(typeof t==`string`||Buffer.isBuffer(t)||t instanceof r.Readable))throw(0,i.errorWithCode)(Error(`file must be a valid string path, buffer or Readable`),i.ErrorCode.FileUploadInvalidArgumentsError)}if(`content`in e&&e.content&&typeof e.content!=`string`)throw(0,i.errorWithCode)(Error(`content must be a string`),i.ErrorCode.FileUploadInvalidArgumentsError)}function h(e,t){let n=`file.${e.filetype??`txt`}`,{filename:r}=e;return r?(r.split(`.`).length<2&&t.warn(x(r)),r):(t.warn(b()),n)}function g(e,t){e.filetype&&t.warn(y())}function _(){return`Missing required file id for file upload completion`}function v(){return`There was an issue calculating the size of your file`}function y(){return`filetype is no longer a supported field in files.uploadV2.
|
|
26
26
|
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`}function b(){return`filename is a required field for files.uploadV2.
|
|
27
|
-
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`}function x(e){return`filename supplied '${e}' may be missing a proper extension. Missing extenions may result in unexpected unfurl behavior when shared`}function S(e){return`${e} may cause some issues like timeouts for relatively large files.`}function C(){return`Our latest recommendation is to use client.files.uploadV2() method, which is mostly compatible and much stabler, instead.`}function w(){return`Something went wrong with processing file_uploads`}function T(){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').`}function E(){return`Sharing files with multiple channels is no longer supported in v2. Share files in each channel separately instead.`}function D(){return`You may supply file_uploads only for a single channel, message, or thread respectively. Therefore, please supply any channel_id, initial_comment or blocks, or thread_ts in the top-layer.`}})),dn=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(e){return new Promise(t=>{setTimeout(t,e)})}})),fn=i(((e,t)=>{var n=Object.prototype.hasOwnProperty,r=`~`;function i(){}Object.create&&(i.prototype=Object.create(null),new i().__proto__||(r=!1));function a(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function o(e,t,n,i,o){if(typeof n!=`function`)throw TypeError(`The listener must be a function`);var s=new a(n,i||e,o),c=r?r+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=s,e._eventsCount++),e}function s(e,t){--e._eventsCount===0?e._events=new i:delete e._events[t]}function c(){this._events=new i,this._eventsCount=0}c.prototype.eventNames=function(){var e=[],t,i;if(this._eventsCount===0)return e;for(i in t=this._events)n.call(t,i)&&e.push(r?i.slice(1):i);return Object.getOwnPropertySymbols?e.concat(Object.getOwnPropertySymbols(t)):e},c.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,a=n.length,o=Array(a);i<a;i++)o[i]=n[i].fn;return o},c.prototype.listenerCount=function(e){var t=r?r+e:e,n=this._events[t];return n?n.fn?1:n.length:0},c.prototype.emit=function(e,t,n,i,a,o){var s=r?r+e:e;if(!this._events[s])return!1;var c=this._events[s],l=arguments.length,u,d;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),l){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,n),!0;case 4:return c.fn.call(c.context,t,n,i),!0;case 5:return c.fn.call(c.context,t,n,i,a),!0;case 6:return c.fn.call(c.context,t,n,i,a,o),!0}for(d=1,u=Array(l-1);d<l;d++)u[d-1]=arguments[d];c.fn.apply(c.context,u)}else{var f=c.length,p;for(d=0;d<f;d++)switch(c[d].once&&this.removeListener(e,c[d].fn,void 0,!0),l){case 1:c[d].fn.call(c[d].context);break;case 2:c[d].fn.call(c[d].context,t);break;case 3:c[d].fn.call(c[d].context,t,n);break;case 4:c[d].fn.call(c[d].context,t,n,i);break;default:if(!u)for(p=1,u=Array(l-1);p<l;p++)u[p-1]=arguments[p];c[d].fn.apply(c[d].context,u)}}return!0},c.prototype.on=function(e,t,n){return o(this,e,t,n,!1)},c.prototype.once=function(e,t,n){return o(this,e,t,n,!0)},c.prototype.removeListener=function(e,t,n,i){var a=r?r+e:e;if(!this._events[a])return this;if(!t)return s(this,a),this;var o=this._events[a];if(o.fn)o.fn!==t||i&&!o.once||n&&o.context!==n||s(this,a);else{for(var c=0,l=[],u=o.length;c<u;c++)(o[c].fn!==t||i&&!o[c].once||n&&o[c].context!==n)&&l.push(o[c]);l.length?this._events[a]=l.length===1?l[0]:l:s(this,a)}return this},c.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&s(this,t)):(this._events=new i,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=r,c.EventEmitter=c,t!==void 0&&(t.exports=c)})),pn=i((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),mn=i((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),hn=i((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),gn=i((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),_n=i((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),vn=i((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),yn=i((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),bn=i((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),xn=i((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),Sn=i((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),Cn=i((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),wn=i((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),Tn=i((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),En=i((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),Dn=i((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),On=i((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),kn=i((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),An=i((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),jn=i((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),Mn=i((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),Nn=i((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),Pn=i((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),Fn=i((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),In=i((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),Ln=i((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),Rn=i((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),zn=i((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),Bn=i((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),Vn=i((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),Hn=i((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),Un=i((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),Wn=i((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),Gn=i((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),Kn=i(((e,t,n)=>{var r=n&&n.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),i=n&&n.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&r(t,e,n)};Object.defineProperty(e,"__esModule",{value:!0}),i(bn(),e),i(xn(),e),i(Sn(),e),i(Cn(),e),i(wn(),e),i(Tn(),e),i(En(),e),i(Dn(),e),i(On(),e),i(kn(),e),i(An(),e),i(jn(),e),i(Mn(),e),i(Nn(),e),i(Pn(),e),i(Fn(),e),i(In(),e),i(Ln(),e),i(Rn(),e),i(zn(),e),i(Bn(),e),i(Vn(),e),i(Hn(),e),i(Un(),e),i(Wn(),e),i(Gn(),e)})),qn=i((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),Jn=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.CustomFieldType=e.EntityType=void 0;var t;(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`})(t||(e.EntityType=t={}));var n;(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`})(n||(e.CustomFieldType=n={}))})),Yn=i((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),Xn=i(((e,t,n)=>{var r=n&&n.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),i=n&&n.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&r(t,e,n)};Object.defineProperty(e,"__esModule",{value:!0}),i(pn(),e),i(mn(),e),i(hn(),e),i(gn(),e),i(_n(),e),i(vn(),e),i(yn(),e),i(Kn(),e),i(qn(),e),i(Jn(),e),i(Yn(),e)})),Zn=i(((e,t,n)=>{var r=n&&n.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),i=n&&n.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&r(t,e,n)};Object.defineProperty(e,"__esModule",{value:!0}),e.Methods=void 0;let a=fn(),o=Qn();function s(e,t){return e.apiCall.bind(e,t)}function c(e,t){return e.apiCall.bind(e,t)}function l(e){return e.filesUploadV2.bind(e)}e.Methods=class extends a.EventEmitter{constructor(){if(super(),this.admin={analytics:{getFile:s(this,`admin.analytics.getFile`)},apps:{activities:{list:c(this,`admin.apps.activities.list`)},approve:s(this,`admin.apps.approve`),approved:{list:s(this,`admin.apps.approved.list`)},clearResolution:s(this,`admin.apps.clearResolution`),config:{lookup:s(this,`admin.apps.config.lookup`),set:s(this,`admin.apps.config.set`)},requests:{cancel:s(this,`admin.apps.requests.cancel`),list:s(this,`admin.apps.requests.list`)},restrict:s(this,`admin.apps.restrict`),restricted:{list:s(this,`admin.apps.restricted.list`)},uninstall:s(this,`admin.apps.uninstall`)},auth:{policy:{assignEntities:s(this,`admin.auth.policy.assignEntities`),getEntities:s(this,`admin.auth.policy.getEntities`),removeEntities:s(this,`admin.auth.policy.removeEntities`)}},barriers:{create:s(this,`admin.barriers.create`),delete:s(this,`admin.barriers.delete`),list:c(this,`admin.barriers.list`),update:s(this,`admin.barriers.update`)},conversations:{archive:s(this,`admin.conversations.archive`),bulkArchive:s(this,`admin.conversations.bulkArchive`),bulkDelete:s(this,`admin.conversations.bulkDelete`),bulkMove:s(this,`admin.conversations.bulkMove`),convertToPrivate:s(this,`admin.conversations.convertToPrivate`),convertToPublic:s(this,`admin.conversations.convertToPublic`),create:s(this,`admin.conversations.create`),delete:s(this,`admin.conversations.delete`),disconnectShared:s(this,`admin.conversations.disconnectShared`),ekm:{listOriginalConnectedChannelInfo:c(this,`admin.conversations.ekm.listOriginalConnectedChannelInfo`)},getConversationPrefs:s(this,`admin.conversations.getConversationPrefs`),getCustomRetention:s(this,`admin.conversations.getCustomRetention`),getTeams:s(this,`admin.conversations.getTeams`),invite:s(this,`admin.conversations.invite`),lookup:s(this,`admin.conversations.lookup`),removeCustomRetention:s(this,`admin.conversations.removeCustomRetention`),rename:s(this,`admin.conversations.rename`),restrictAccess:{addGroup:s(this,`admin.conversations.restrictAccess.addGroup`),listGroups:s(this,`admin.conversations.restrictAccess.listGroups`),removeGroup:s(this,`admin.conversations.restrictAccess.removeGroup`)},search:c(this,`admin.conversations.search`),setConversationPrefs:s(this,`admin.conversations.setConversationPrefs`),setCustomRetention:s(this,`admin.conversations.setCustomRetention`),setTeams:s(this,`admin.conversations.setTeams`),unarchive:s(this,`admin.conversations.unarchive`)},emoji:{add:s(this,`admin.emoji.add`),addAlias:s(this,`admin.emoji.addAlias`),list:c(this,`admin.emoji.list`),remove:s(this,`admin.emoji.remove`),rename:s(this,`admin.emoji.rename`)},functions:{list:s(this,`admin.functions.list`),permissions:{lookup:s(this,`admin.functions.permissions.lookup`),set:s(this,`admin.functions.permissions.set`)}},inviteRequests:{approve:s(this,`admin.inviteRequests.approve`),approved:{list:s(this,`admin.inviteRequests.approved.list`)},denied:{list:s(this,`admin.inviteRequests.denied.list`)},deny:s(this,`admin.inviteRequests.deny`),list:s(this,`admin.inviteRequests.list`)},roles:{addAssignments:s(this,`admin.roles.addAssignments`),listAssignments:c(this,`admin.roles.listAssignments`),removeAssignments:s(this,`admin.roles.removeAssignments`)},teams:{admins:{list:s(this,`admin.teams.admins.list`)},create:s(this,`admin.teams.create`),list:c(this,`admin.teams.list`),owners:{list:s(this,`admin.teams.owners.list`)},settings:{info:s(this,`admin.teams.settings.info`),setDefaultChannels:s(this,`admin.teams.settings.setDefaultChannels`),setDescription:s(this,`admin.teams.settings.setDescription`),setDiscoverability:s(this,`admin.teams.settings.setDiscoverability`),setIcon:s(this,`admin.teams.settings.setIcon`),setName:s(this,`admin.teams.settings.setName`)}},usergroups:{addChannels:s(this,`admin.usergroups.addChannels`),addTeams:s(this,`admin.usergroups.addTeams`),listChannels:s(this,`admin.usergroups.listChannels`),removeChannels:s(this,`admin.usergroups.removeChannels`)},users:{assign:s(this,`admin.users.assign`),invite:s(this,`admin.users.invite`),list:c(this,`admin.users.list`),remove:s(this,`admin.users.remove`),session:{clearSettings:s(this,`admin.users.session.clearSettings`),getSettings:s(this,`admin.users.session.getSettings`),invalidate:s(this,`admin.users.session.invalidate`),list:c(this,`admin.users.session.list`),reset:s(this,`admin.users.session.reset`),resetBulk:s(this,`admin.users.session.resetBulk`),setSettings:s(this,`admin.users.session.setSettings`)},setAdmin:s(this,`admin.users.setAdmin`),setExpiration:s(this,`admin.users.setExpiration`),setOwner:s(this,`admin.users.setOwner`),setRegular:s(this,`admin.users.setRegular`),unsupportedVersions:{export:s(this,`admin.users.unsupportedVersions.export`)}},workflows:{collaborators:{add:s(this,`admin.workflows.collaborators.add`),remove:s(this,`admin.workflows.collaborators.remove`)},permissions:{lookup:s(this,`admin.workflows.permissions.lookup`)},search:c(this,`admin.workflows.search`),unpublish:s(this,`admin.workflows.unpublish`)}},this.api={test:c(this,`api.test`)},this.assistant={threads:{setStatus:s(this,`assistant.threads.setStatus`),setSuggestedPrompts:s(this,`assistant.threads.setSuggestedPrompts`),setTitle:s(this,`assistant.threads.setTitle`)}},this.apps={connections:{open:c(this,`apps.connections.open`)},event:{authorizations:{list:s(this,`apps.event.authorizations.list`)}},manifest:{create:s(this,`apps.manifest.create`),delete:s(this,`apps.manifest.delete`),export:s(this,`apps.manifest.export`),update:s(this,`apps.manifest.update`),validate:s(this,`apps.manifest.validate`)},uninstall:s(this,`apps.uninstall`),user:{connection:{update:s(this,`apps.user.connection.update`)}}},this.auth={revoke:c(this,`auth.revoke`),teams:{list:c(this,`auth.teams.list`)},test:c(this,`auth.test`)},this.bookmarks={add:s(this,`bookmarks.add`),edit:s(this,`bookmarks.edit`),list:s(this,`bookmarks.list`),remove:s(this,`bookmarks.remove`)},this.bots={info:c(this,`bots.info`)},this.calls={add:s(this,`calls.add`),end:s(this,`calls.end`),info:s(this,`calls.info`),update:s(this,`calls.update`),participants:{add:s(this,`calls.participants.add`),remove:s(this,`calls.participants.remove`)}},this.canvases={access:{delete:s(this,`canvases.access.delete`),set:s(this,`canvases.access.set`)},create:c(this,`canvases.create`),delete:s(this,`canvases.delete`),edit:s(this,`canvases.edit`),sections:{lookup:s(this,`canvases.sections.lookup`)}},this.chat={appendStream:s(this,`chat.appendStream`),delete:s(this,`chat.delete`),deleteScheduledMessage:s(this,`chat.deleteScheduledMessage`),getPermalink:s(this,`chat.getPermalink`),meMessage:s(this,`chat.meMessage`),postEphemeral:s(this,`chat.postEphemeral`),postMessage:s(this,`chat.postMessage`),scheduleMessage:s(this,`chat.scheduleMessage`),scheduledMessages:{list:c(this,`chat.scheduledMessages.list`)},startStream:s(this,`chat.startStream`),stopStream:s(this,`chat.stopStream`),unfurl:s(this,`chat.unfurl`),update:s(this,`chat.update`)},this.conversations={acceptSharedInvite:s(this,`conversations.acceptSharedInvite`),approveSharedInvite:s(this,`conversations.approveSharedInvite`),archive:s(this,`conversations.archive`),canvases:{create:s(this,`conversations.canvases.create`)},close:s(this,`conversations.close`),create:s(this,`conversations.create`),declineSharedInvite:s(this,`conversations.declineSharedInvite`),externalInvitePermissions:{set:s(this,`conversations.externalInvitePermissions.set`)},history:s(this,`conversations.history`),info:s(this,`conversations.info`),invite:s(this,`conversations.invite`),inviteShared:s(this,`conversations.inviteShared`),join:s(this,`conversations.join`),kick:s(this,`conversations.kick`),leave:s(this,`conversations.leave`),list:c(this,`conversations.list`),listConnectInvites:c(this,`conversations.listConnectInvites`),mark:s(this,`conversations.mark`),members:s(this,`conversations.members`),open:s(this,`conversations.open`),rename:s(this,`conversations.rename`),replies:s(this,`conversations.replies`),requestSharedInvite:{approve:s(this,`conversations.requestSharedInvite.approve`),deny:s(this,`conversations.requestSharedInvite.deny`),list:c(this,`conversations.requestSharedInvite.list`)},setPurpose:s(this,`conversations.setPurpose`),setTopic:s(this,`conversations.setTopic`),unarchive:s(this,`conversations.unarchive`)},this.dialog={open:s(this,`dialog.open`)},this.dnd={endDnd:c(this,`dnd.endDnd`),endSnooze:c(this,`dnd.endSnooze`),info:c(this,`dnd.info`),setSnooze:s(this,`dnd.setSnooze`),teamInfo:s(this,`dnd.teamInfo`)},this.emoji={list:c(this,`emoji.list`)},this.entity={presentDetails:s(this,`entity.presentDetails`)},this.files={completeUploadExternal:s(this,`files.completeUploadExternal`),delete:s(this,`files.delete`),getUploadURLExternal:s(this,`files.getUploadURLExternal`),info:s(this,`files.info`),list:s(this,`files.list`),revokePublicURL:s(this,`files.revokePublicURL`),sharedPublicURL:s(this,`files.sharedPublicURL`),upload:s(this,`files.upload`),uploadV2:l(this),comments:{delete:s(this,`files.comments.delete`)},remote:{add:s(this,`files.remote.add`),info:s(this,`files.remote.info`),list:s(this,`files.remote.list`),remove:s(this,`files.remote.remove`),share:s(this,`files.remote.share`),update:s(this,`files.remote.update`)}},this.functions={completeError:s(this,`functions.completeError`),completeSuccess:s(this,`functions.completeSuccess`)},this.migration={exchange:s(this,`migration.exchange`)},this.oauth={access:s(this,`oauth.access`),v2:{access:s(this,`oauth.v2.access`),exchange:s(this,`oauth.v2.exchange`)}},this.openid={connect:{token:s(this,`openid.connect.token`),userInfo:c(this,`openid.connect.userInfo`)}},this.pins={add:s(this,`pins.add`),list:s(this,`pins.list`),remove:s(this,`pins.remove`)},this.reactions={add:s(this,`reactions.add`),get:s(this,`reactions.get`),list:c(this,`reactions.list`),remove:s(this,`reactions.remove`)},this.reminders={add:s(this,`reminders.add`),complete:s(this,`reminders.complete`),delete:s(this,`reminders.delete`),info:s(this,`reminders.info`),list:c(this,`reminders.list`)},this.rtm={connect:c(this,`rtm.connect`),start:c(this,`rtm.start`)},this.search={all:s(this,`search.all`),files:s(this,`search.files`),messages:s(this,`search.messages`)},this.slackLists={access:{delete:s(this,`slackLists.access.delete`),set:s(this,`slackLists.access.set`)},create:s(this,`slackLists.create`),download:{get:s(this,`slackLists.download.get`),start:s(this,`slackLists.download.start`)},items:{create:s(this,`slackLists.items.create`),delete:s(this,`slackLists.items.delete`),deleteMultiple:s(this,`slackLists.items.deleteMultiple`),info:s(this,`slackLists.items.info`),list:s(this,`slackLists.items.list`),update:s(this,`slackLists.items.update`)},update:s(this,`slackLists.update`)},this.team={accessLogs:c(this,`team.accessLogs`),billableInfo:c(this,`team.billableInfo`),billing:{info:s(this,`team.billing.info`)},externalTeams:{disconnect:s(this,`team.externalTeams.disconnect`),list:s(this,`team.externalTeams.list`)},info:c(this,`team.info`),integrationLogs:c(this,`team.integrationLogs`),preferences:{list:c(this,`team.preferences.list`)},profile:{get:c(this,`team.profile.get`)}},this.tooling={tokens:{rotate:s(this,`tooling.tokens.rotate`)}},this.usergroups={create:s(this,`usergroups.create`),disable:s(this,`usergroups.disable`),enable:s(this,`usergroups.enable`),list:c(this,`usergroups.list`),update:s(this,`usergroups.update`),users:{list:s(this,`usergroups.users.list`),update:s(this,`usergroups.users.update`)}},this.users={conversations:s(this,`users.conversations`),deletePhoto:s(this,`users.deletePhoto`),discoverableContacts:{lookup:s(this,`users.discoverableContacts.lookup`)},getPresence:s(this,`users.getPresence`),identity:s(this,`users.identity`),info:s(this,`users.info`),list:s(this,`users.list`),lookupByEmail:s(this,`users.lookupByEmail`),setPhoto:s(this,`users.setPhoto`),setPresence:s(this,`users.setPresence`),profile:{get:s(this,`users.profile.get`),set:s(this,`users.profile.set`)}},this.views={open:s(this,`views.open`),publish:s(this,`views.publish`),push:s(this,`views.push`),update:s(this,`views.update`)},this.stars={add:s(this,`stars.add`),list:s(this,`stars.list`),remove:s(this,`stars.remove`)},this.workflows={featured:{add:s(this,`workflows.featured.add`),list:s(this,`workflows.featured.list`),remove:s(this,`workflows.featured.remove`),set:s(this,`workflows.featured.set`)},stepCompleted:s(this,`workflows.stepCompleted`),stepFailed:s(this,`workflows.stepFailed`),updateStep:s(this,`workflows.updateStep`)},new.target!==o.WebClient&&!(new.target.prototype instanceof o.WebClient))throw Error(`Attempt to inherit from WebClient methods without inheriting from WebClient`)}},i(Xn(),e)})),Qn=i(((e,n,r)=>{var i=r&&r.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),a=r&&r.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),o=r&&r.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(t){if(t&&t.__esModule)return t;var n={};if(t!=null)for(var r=e(t),o=0;o<r.length;o++)r[o]!=="default"&&i(n,t,r[o]);return a(n,t),n}})(),s=r&&r.__await||function(e){return this instanceof s?(this.v=e,this):new s(e)},c=r&&r.__asyncGenerator||function(e,t,n){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var r=n.apply(e,t||[]),i,a=[];return i=Object.create((typeof AsyncIterator==`function`?AsyncIterator:Object).prototype),c(`next`),c(`throw`),c(`return`,o),i[Symbol.asyncIterator]=function(){return this},i;function o(e){return function(t){return Promise.resolve(t).then(e,f)}}function c(e,t){r[e]&&(i[e]=function(t){return new Promise(function(n,r){a.push([e,t,n,r])>1||l(e,t)})},t&&(i[e]=t(i[e])))}function l(e,t){try{u(r[e](t))}catch(e){p(a[0][3],e)}}function u(e){e.value instanceof s?Promise.resolve(e.value.v).then(d,f):p(a[0][2],e)}function d(e){l(`next`,e)}function f(e){l(`throw`,e)}function p(e,t){e(t),a.shift(),a.length&&l(a[0][0],a[0][1])}},l=r&&r.__asyncValues||function(e){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof __values==`function`?__values(e):e[Symbol.iterator](),n={},r(`next`),r(`throw`),r(`return`),n[Symbol.asyncIterator]=function(){return this},n);function r(t){n[t]=e[t]&&function(n){return new Promise(function(r,a){n=e[t](n),i(r,a,n.done,n.value)})}}function i(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}},u=r&&r.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},d=r&&r.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.WebClient=e.WebClientEvent=void 0,e.buildThreadTsWarningMessage=z;let f=t(`node:path`),p=t(`node:querystring`),m=t(`node:util`),h=d(t(`node:zlib`)),g=d(en()),_=d(Pt()),v=d(tn()),y=d(B()),b=d(cn()),x=o(ln()),S=Re(),C=je(),w=un(),T=d(dn()),E=Ne(),D=Pe(),O=Zn(),k=Fe(),A=[`delete`,`common`,`get`,`put`,`head`,`post`,`link`,`patch`,`purge`,`unlink`,`options`],j=()=>void 0;var M;(function(e){e.RATE_LIMITED=`rate_limited`})(M||(e.WebClientEvent=M={}));var N=class e extends O.Methods{constructor(t,{slackApiUrl:n=`https://slack.com/api/`,logger:r=void 0,logLevel:i=void 0,maxRequestConcurrency:a=100,retryConfig:o=k.tenRetriesInAboutThirtyMinutes,agent:s=void 0,tls:c=void 0,timeout:l=0,rejectRateLimitedCalls:u=!1,headers:d={},teamId:f=void 0,allowAbsoluteUrls:p=!0,attachOriginalToWebAPIRequestError:m=!0,requestInterceptor:h=void 0,adapter:_=void 0}={}){super(),this.token=t,this.slackApiUrl=n,this.slackApiUrl.endsWith(`/`)||(this.slackApiUrl+=`/`),this.retryConfig=o,this.requestQueue=new b.default({concurrency:a}),this.tlsConfig=c===void 0?{}:c,this.rejectRateLimitedCalls=u,this.teamId=f,this.allowAbsoluteUrls=p,this.attachOriginalToWebAPIRequestError=m,r===void 0?this.logger=(0,D.getLogger)(e.loggerName,i??D.LogLevel.INFO,r):(this.logger=r,i!==void 0&&this.logger.debug(`The logLevel given to WebClient was ignored as you also gave logger`)),this.token&&!d.Authorization&&(d.Authorization=`Bearer ${this.token}`),this.axios=g.default.create({adapter:_?e=>_(Object.assign(Object.assign({},e),{adapter:void 0})):void 0,timeout:l,baseURL:this.slackApiUrl,headers:(0,v.default)()?d:Object.assign({"User-Agent":(0,E.getUserAgent)()},d),httpAgent:s,httpsAgent:s,validateStatus:()=>!0,maxRedirects:0,proxy:!1}),this.axios.defaults.headers.post[`Content-Type`]=void 0,h&&this.axios.interceptors.request.use(h,null),this.axios.interceptors.request.use(this.serializeApiCallData.bind(this),null),this.logger.debug(`initialized`)}async apiCall(e,t={}){if(this.logger.debug(`apiCall('${e}') start`),I(e,this.logger),L(e,this.logger,t),R(e,this.logger,t),typeof t==`string`||typeof t==`number`||typeof t==`boolean`)throw TypeError(`Expected an options argument but instead received a ${typeof t}`);if((0,w.warnIfNotUsingFilesUploadV2)(e,this.logger),e===`files.uploadV2`)return this.filesUploadV2(t);let n={};t.token&&(n.Authorization=`Bearer ${t.token}`);let r=this.deriveRequestUrl(e),i=await this.makeRequest(r,Object.assign({team_id:this.teamId},t),n),a=await this.buildResult(i);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 e of a.response_metadata.messages){let t=/\[ERROR\](.*)/,n=/\[WARN\](.*)/;if(t.test(e)){let n=e.match(t);n!=null&&this.logger.error(n[1].trim())}else if(n.test(e)){let t=e.match(n);t!=null&&this.logger.warn(t[1].trim())}}if(!a.ok&&i.headers[`content-type`]!==`application/gzip`||`ok`in a&&a.ok===!1)throw(0,C.platformErrorFromResult)(a);return this.logger.debug(`apiCall('${e}') end`),a}paginate(e,t,n,r){let i=(()=>{if(t!==void 0&&typeof t.limit==`number`){let{limit:e}=t;return t.limit=void 0,e}return 200})();function a(){return c(this,arguments,function*(){let n,r={limit:i};for(t!==void 0&&t.cursor!==void 0&&(r.cursor=t.cursor);n===void 0||r!==void 0;)n=yield s(this.apiCall(e,Object.assign(t===void 0?{}:t,r))),yield yield s(n),r=P(n,i)})}if(n===void 0)return a.call(this);let o=r===void 0?j:r,u=0;return(async()=>{var e,t,r,i;let s=a.call(this),c=(await s.next(void 0)).value,d=o(void 0,c,u);if(u+=1,n(c))return d;try{for(var f=!0,p=l(s),m;m=await p.next(),e=m.done,!e;f=!0){i=m.value,f=!1;let e=i;if(d=o(d,e,u),n(e))return d;u+=1}}catch(e){t={error:e}}finally{try{!f&&!e&&(r=p.return)&&await r.call(p)}finally{if(t)throw t.error}}return d})()}chatStream(e){let{buffer_size:t}=e,n=u(e,[`buffer_size`]),r={buffer_size:t};return new S.ChatStreamer(this,this.logger,n,r)}async filesUploadV2(e){this.logger.debug(`files.uploadV2() start`);let t=await this.getAllFileUploads(e);return(await this.fetchAllUploadURLExternal(t)).forEach((e,n)=>{t[n].upload_url=e.upload_url,t[n].file_id=e.file_id}),await this.postFileUploadsToExternalURL(t,e),{ok:!0,files:await this.completeFileUploads(t)}}async fetchAllUploadURLExternal(e){return Promise.all(e.map(e=>{let t={filename:e.filename,length:e.length,alt_text:e.alt_text,snippet_type:e.snippet_type};return`token`in e&&(t.token=e.token),this.files.getUploadURLExternal(t)}))}async completeFileUploads(e){let t=Object.values((0,w.getAllFileUploadsToComplete)(e));return Promise.all(t.map(e=>this.files.completeUploadExternal(e)))}async postFileUploadsToExternalURL(e,t){return Promise.all(e.map(async e=>{let{upload_url:n,file_id:r,filename:i,data:a}=e,o=a;if(n){let e={};t.token&&(e.Authorization=`Bearer ${t.token}`);let a=await this.makeRequest(n,{body:o},e);if(a.status!==200)return Promise.reject(Error(`Failed to upload file (id:${r}, filename: ${i})`));let s={ok:!0,body:a.data};return Promise.resolve(s)}return Promise.reject(Error(`No upload url found for file (id: ${r}, filename: ${i}`))}))}async getAllFileUploads(e){let t=[];return(`file`in e||`content`in e)&&t.push(await(0,w.getFileUploadJob)(e,this.logger)),`file_uploads`in e&&(t=t.concat(await(0,w.getMultipleFileUploadJobs)(e,this.logger))),t}async makeRequest(e,t,n={}){return(0,x.default)(()=>this.requestQueue.add(async()=>{try{let r=Object.assign({headers:n},this.tlsConfig);e.endsWith(`admin.analytics.getFile`)&&(r.responseType=`arraybuffer`),e.endsWith(`apps.event.authorizations.list`)&&(t.token=void 0),this.logger.debug(`http request url: ${e}`),this.logger.debug(`http request body: ${JSON.stringify(V(t))}`);let i=Object.keys(this.axios.defaults.headers).reduce((e,t)=>(A.includes(t)||(e[t]=this.axios.defaults.headers[t]),e),{});i=Object.assign(Object.assign(Object.assign({},this.axios.defaults.headers.common),i),n),this.logger.debug(`http request headers: ${JSON.stringify(V(i))}`);let a=await this.axios.post(e,t,r);if(this.logger.debug(`http response received`),a.status===429){let n=F(a);throw n===void 0?new x.AbortError(Error(`Retry header did not contain a valid timeout (url: ${e}, retry-after header: ${a.headers[`retry-after`]})`)):(this.emit(M.RATE_LIMITED,n,{url:e,body:t}),this.rejectRateLimitedCalls?new x.AbortError((0,C.rateLimitedErrorWithDelay)(n)):(this.logger.info(`API Call failed due to rate limiting. Will retry in ${n} seconds.`),this.requestQueue.pause(),await(0,T.default)(n*1e3),this.requestQueue.start(),Error(`A rate limit was exceeded (url: ${e}, retry-after: ${n})`)))}if(a.status!==200)throw(0,C.httpErrorFromResponse)(a);return a}catch(e){let t=e;throw this.logger.warn(`http request failed`,t.message),t.request?(0,C.requestErrorWithOriginal)(t,this.attachOriginalToWebAPIRequestError):e}}),this.retryConfig)}deriveRequestUrl(e){return(e.startsWith(`https://`)||e.startsWith(`http://`))&&this.allowAbsoluteUrls?e:`${this.axios.getUri()+e}`}serializeApiCallData(e){let{data:t,headers:n}=e,r=!1,i=Object.entries(t).map(([e,t])=>{if(t==null)return[];let n=t;return Buffer.isBuffer(t)||(0,y.default)(t)?r=!0:typeof t!=`string`&&typeof t!=`number`&&typeof t!=`boolean`&&(n=JSON.stringify(t)),[e,n]});if(r){this.logger.debug(`Request arguments contain binary data`);let t=i.reduce((e,[t,n])=>{if(Buffer.isBuffer(n)||(0,y.default)(n)){let r={};r.filename=(()=>{let e=n;return typeof e.name==`string`?(0,f.basename)(e.name):typeof e.path==`string`?(0,f.basename)(e.path):`Untitled`})(),e.append(t,n,r)}else t!==void 0&&n!==void 0&&e.append(t,n);return e},new _.default);if(n)for(let[e,r]of Object.entries(t.getHeaders()))n[e]=r;return e.data=t,e.headers=n,e}return n&&(n[`Content-Type`]=`application/x-www-form-urlencoded`),e.data=(0,p.stringify)(i.reduce((e,[t,n])=>(t!==void 0&&n!==void 0&&(e[t]=n),e),{})),e.headers=n,e}async buildResult(e){let{data:t}=e,n=e.headers[`content-type`]===`application/gzip`;if(n)try{let e=await new Promise((e,n)=>{h.default.unzip(t,(t,r)=>t?n(t):e(r.toString().split(`
|
|
28
|
-
`)))}).then(e=>e).catch(e=>{throw e}),n=[];if(Array.isArray(e))for(let t of e)t&&t.length>0&&n.push(JSON.parse(t));t={file_data:n}}catch(e){t={ok:!1,error:e}}else!n&&e.request.path===`/api/admin.analytics.getFile`&&(t=JSON.parse(new m.TextDecoder().decode(t)));if(typeof t==`string`)try{t=JSON.parse(t)}catch{t={ok:!1,error:t}}t.response_metadata===void 0&&(t.response_metadata={}),e.headers[`x-oauth-scopes`]!==void 0&&(t.response_metadata.scopes=e.headers[`x-oauth-scopes`].trim().split(/\s*,\s*/)),e.headers[`x-accepted-oauth-scopes`]!==void 0&&(t.response_metadata.acceptedScopes=e.headers[`x-accepted-oauth-scopes`].trim().split(/\s*,\s*/));let r=F(e);return r!==void 0&&(t.response_metadata.retryAfter=r),t}};e.WebClient=N,N.loggerName=`WebClient`,e.default=N;function P(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}}function F(e){if(e.headers[`retry-after`]!==void 0){let t=Number.parseInt(e.headers[`retry-after`],10);if(!Number.isNaN(t))return t}}function I(e,t){[`workflows.stepCompleted`,`workflows.stepFailed`,`workflows.updateStep`].some(t=>RegExp(`^${t}`).test(e))&&t.warn(`${e} is deprecated. Please check on https://docs.slack.dev/reference/methods for an alternative.`)}function L(e,t,n){let r=[`chat.postEphemeral`,`chat.postMessage`,`chat.scheduleMessage`].includes(e),i=e=>Array.isArray(e.attachments)&&e.attachments.length,a=e=>Array.isArray(e.attachments)&&e.attachments.some(e=>!e.fallback||e.fallback.trim()===``),o=e=>(e.text===void 0||e.text===null||e.text===``)&&(e.markdown_text===void 0||e.markdown===null||e.markdown_text===``),s=()=>`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.`;r&&typeof n==`object`&&(i(n)?a(n)&&o(n)&&(t.warn(s()),t.warn(`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://docs.slack.dev/legacy/legacy-messaging/legacy-secondary-message-attachments for more details).`)):o(n)&&t.warn(s()))}function R(e,t,n){[`chat.postEphemeral`,`chat.postMessage`,`chat.scheduleMessage`,`files.upload`].includes(e)&&n?.thread_ts!==void 0&&typeof n?.thread_ts!=`string`&&t.warn(z(e))}function z(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.`}function V(e){return Object.entries(e).map(([e,t])=>{if(t==null)return[];let n=t;return(e.match(/.*token.*/)!==null||e.match(/[Aa]uthorization/))&&(n=`[[REDACTED]]`),Buffer.isBuffer(t)||(0,y.default)(t)?n=`[[BINARY VALUE OMITTED]]`:typeof t!=`string`&&typeof t!=`number`&&typeof t!=`boolean`&&(n=JSON.stringify(t)),[e,n]}).reduce((e,[t,n])=>(t!==void 0&&n!==void 0&&(e[t]=n),e),{})}})),$n=i(((e,t,n)=>{var r=n&&n.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),i=n&&n.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&r(t,e,n)},a=n&&n.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.WebClientEvent=e.WebClient=e.ChatStreamer=e.retryPolicies=e.LogLevel=e.addAppMetadata=e.ErrorCode=void 0;var o=je();Object.defineProperty(e,"ErrorCode",{enumerable:!0,get:function(){return o.ErrorCode}});var s=Ne();Object.defineProperty(e,"addAppMetadata",{enumerable:!0,get:function(){return s.addAppMetadata}});var c=Pe();Object.defineProperty(e,"LogLevel",{enumerable:!0,get:function(){return c.LogLevel}});var l=Fe();Object.defineProperty(e,"retryPolicies",{enumerable:!0,get:function(){return a(l).default}}),i(Ie(),e),i(Le(),e);var u=Re();Object.defineProperty(e,"ChatStreamer",{enumerable:!0,get:function(){return u.ChatStreamer}});var d=Qn();Object.defineProperty(e,"WebClient",{enumerable:!0,get:function(){return d.WebClient}}),Object.defineProperty(e,"WebClientEvent",{enumerable:!0,get:function(){return d.WebClientEvent}}),i(Zn(),e)})),er=i(((e,t)=>{t.exports={name:`@slack/socket-mode`,version:`2.0.7`,description:`Official library for using the Slack Platform's Socket Mode API`,author:`Slack Technologies, LLC`,license:`MIT`,keywords:[`slack`,`socket`,`websocket`,`firewall`,`bot`,`client`,`http`,`websocket`,`api`,`proxy`,`state`,`connection`],main:`dist/src/index.js`,types:`./dist/src/index.d.ts`,files:[`dist/**/*`],engines:{node:`>= 18`,npm:`>= 8.6.0`},repository:{type:`git`,url:`git+https://github.com/slackapi/node-slack-sdk.git`},homepage:`https://docs.slack.dev/tools/node-slack-sdk/socket-mode/`,publishConfig:{access:`public`},bugs:{url:`https://github.com/slackapi/node-slack-sdk/issues`},scripts:{build:`npm run build:clean && tsc`,"build:clean":`shx rm -rf ./dist`,docs:`npx typedoc --plugin typedoc-plugin-markdown`,prepack:`npm run build`,test:`npm run test:unit && npm run test:integration`,"test:node18":`npm run build && bash -c 'node --test --test-reporter=spec --import tsx src/*.test.ts' && npm run test:integration`,"test:integration":`npm run build && node --import tsx --test test/integration.test.js`,"test:unit":`npm run build && node --experimental-test-coverage --test-reporter=spec --test-reporter-destination=stdout --test-reporter=lcov --test-reporter-destination=lcov.info --test-reporter=junit --test-reporter-destination=test-results.xml --import tsx --test src/*.test.ts`,watch:`npx nodemon --watch 'src' --ext 'ts' --exec npm test`},dependencies:{"@slack/logger":`^4.0.1`,"@slack/web-api":`^7.15.0`,"@types/node":`>=18`,"@types/ws":`^8`,eventemitter3:`^5`,ws:`^8`},devDependencies:{"@types/proxyquire":`^1.3.31`,"@types/sinon":`^21`,nodemon:`^3.1.0`,proxyquire:`^2.1.3`,sinon:`^21`}}})),tr=i(((e,t)=>{let n=[`nodebuffer`,`arraybuffer`,`fragments`],r=typeof Blob<`u`;r&&n.push(`blob`),t.exports={BINARY_TYPES:n,CLOSE_TIMEOUT:3e4,EMPTY_BUFFER:Buffer.alloc(0),GUID:`258EAFA5-E914-47DA-95CA-C5AB0DC85B11`,hasBlob:r,kForOnEventAttribute:Symbol(`kIsForOnEventAttribute`),kListener:Symbol(`kListener`),kStatusCode:Symbol(`status-code`),kWebSocket:Symbol(`websocket`),NOOP:()=>{}}})),nr=r({}),rr=n((()=>{throw Error(`Optional native dependency "bufferutil" is not bundled in this vendored module.`)})),ir=i(((n,r)=>{let{websocketMask:i,websocketUnmask:a}=t(`http`),{EMPTY_BUFFER:o}=tr(),s=Buffer[Symbol.species];function c(e,t){if(e.length===0)return o;if(e.length===1)return e[0];let n=Buffer.allocUnsafe(t),r=0;for(let t=0;t<e.length;t++){let i=e[t];n.set(i,r),r+=i.length}return r<t?new s(n.buffer,n.byteOffset,r):n}function l(e,t,n,r,i){for(let a=0;a<i;a++)n[r+a]=e[a]^t[a&3]}function u(e,t){for(let n=0;n<e.length;n++)e[n]^=t[n&3]}function d(e){return e.length===e.buffer.byteLength?e.buffer:e.buffer.slice(e.byteOffset,e.byteOffset+e.length)}function f(e){if(f.readOnly=!0,Buffer.isBuffer(e))return e;let t;return e instanceof ArrayBuffer?t=new s(e):ArrayBuffer.isView(e)?t=new s(e.buffer,e.byteOffset,e.byteLength):(t=Buffer.from(e),f.readOnly=!1),t}if(r.exports={concat:c,mask:l,toArrayBuffer:d,toBuffer:f,unmask:u},i)r.exports.mask=function(e,t,n,r,a){a<24?l(e,t,n,r,a):i(e,t,n,r,a)},r.exports.unmask=function(e,t){e.length<24?u(e,t):a(e,t)};else if(!process.env.WS_NO_BUFFER_UTIL)try{let t=(rr(),e(nr));r.exports.mask=function(e,n,r,i,a){a<48?l(e,n,r,i,a):t.mask(e,n,r,i,a)},r.exports.unmask=function(e,n){e.length<32?u(e,n):t.unmask(e,n)}}catch{}})),ar=i(((e,t)=>{let n=Symbol(`kDone`),r=Symbol(`kRun`);t.exports=class{constructor(e){this[n]=()=>{this.pending--,this[r]()},this.concurrency=e||1/0,this.jobs=[],this.pending=0}add(e){this.jobs.push(e),this[r]()}[r](){if(this.pending!==this.concurrency&&this.jobs.length){let e=this.jobs.shift();this.pending++,e(this[n])}}}})),or=i(((e,n)=>{let r=t(`zlib`),i=ir(),a=ar(),{kStatusCode:o}=tr(),s=Buffer[Symbol.species],c=Buffer.from([0,0,255,255]),l=Symbol(`permessage-deflate`),u=Symbol(`total-length`),d=Symbol(`callback`),f=Symbol(`buffers`),p=Symbol(`error`),m;n.exports=class{constructor(e){if(this._options=e||{},this._threshold=this._options.threshold===void 0?1024:this._options.threshold,this._maxPayload=this._options.maxPayload|0,this._isServer=!!this._options.isServer,this._deflate=null,this._inflate=null,this.params=null,!m){let e=this._options.concurrencyLimit===void 0?10:this._options.concurrencyLimit;m=new a(e)}}static get extensionName(){return`permessage-deflate`}offer(){let e={};return this._options.serverNoContextTakeover&&(e.server_no_context_takeover=!0),this._options.clientNoContextTakeover&&(e.client_no_context_takeover=!0),this._options.serverMaxWindowBits&&(e.server_max_window_bits=this._options.serverMaxWindowBits),this._options.clientMaxWindowBits?e.client_max_window_bits=this._options.clientMaxWindowBits:this._options.clientMaxWindowBits??(e.client_max_window_bits=!0),e}accept(e){return e=this.normalizeParams(e),this.params=this._isServer?this.acceptAsServer(e):this.acceptAsClient(e),this.params}cleanup(){if(this._inflate&&=(this._inflate.close(),null),this._deflate){let e=this._deflate[d];this._deflate.close(),this._deflate=null,e&&e(Error(`The deflate stream was closed while data was being processed`))}}acceptAsServer(e){let t=this._options,n=e.find(e=>!(t.serverNoContextTakeover===!1&&e.server_no_context_takeover||e.server_max_window_bits&&(t.serverMaxWindowBits===!1||typeof t.serverMaxWindowBits==`number`&&t.serverMaxWindowBits>e.server_max_window_bits)||typeof t.clientMaxWindowBits==`number`&&(typeof e.client_max_window_bits==`number`?t.clientMaxWindowBits>e.client_max_window_bits:!e.client_max_window_bits)));if(!n)throw Error(`None of the extension offers can be accepted`);return t.serverNoContextTakeover&&(n.server_no_context_takeover=!0),t.clientNoContextTakeover&&(n.client_no_context_takeover=!0),typeof t.serverMaxWindowBits==`number`&&(n.server_max_window_bits=t.serverMaxWindowBits),typeof t.clientMaxWindowBits==`number`?n.client_max_window_bits=t.clientMaxWindowBits:(n.client_max_window_bits===!0||t.clientMaxWindowBits===!1)&&delete n.client_max_window_bits,n}acceptAsClient(e){let t=e[0];if(this._options.clientNoContextTakeover===!1&&t.client_no_context_takeover)throw Error(`Unexpected parameter "client_no_context_takeover"`);if(!t.client_max_window_bits)typeof this._options.clientMaxWindowBits==`number`&&(t.client_max_window_bits=this._options.clientMaxWindowBits);else if(this._options.clientMaxWindowBits===!1||typeof this._options.clientMaxWindowBits==`number`&&t.client_max_window_bits>this._options.clientMaxWindowBits)throw Error(`Unexpected or invalid parameter "client_max_window_bits"`);return t}normalizeParams(e){return e.forEach(e=>{Object.keys(e).forEach(t=>{let n=e[t];if(n.length>1)throw Error(`Parameter "${t}" must have only a single value`);if(n=n[0],t===`client_max_window_bits`){if(n!==!0){let e=+n;if(!Number.isInteger(e)||e<8||e>15)throw TypeError(`Invalid value for parameter "${t}": ${n}`);n=e}else if(!this._isServer)throw TypeError(`Invalid value for parameter "${t}": ${n}`)}else if(t===`server_max_window_bits`){let e=+n;if(!Number.isInteger(e)||e<8||e>15)throw TypeError(`Invalid value for parameter "${t}": ${n}`);n=e}else if(t===`client_no_context_takeover`||t===`server_no_context_takeover`){if(n!==!0)throw TypeError(`Invalid value for parameter "${t}": ${n}`)}else throw Error(`Unknown parameter "${t}"`);e[t]=n})}),e}decompress(e,t,n){m.add(r=>{this._decompress(e,t,(e,t)=>{r(),n(e,t)})})}compress(e,t,n){m.add(r=>{this._compress(e,t,(e,t)=>{r(),n(e,t)})})}_decompress(e,t,n){let a=this._isServer?`client`:`server`;if(!this._inflate){let e=`${a}_max_window_bits`,t=typeof this.params[e]==`number`?this.params[e]:r.Z_DEFAULT_WINDOWBITS;this._inflate=r.createInflateRaw({...this._options.zlibInflateOptions,windowBits:t}),this._inflate[l]=this,this._inflate[u]=0,this._inflate[f]=[],this._inflate.on(`error`,_),this._inflate.on(`data`,g)}this._inflate[d]=n,this._inflate.write(e),t&&this._inflate.write(c),this._inflate.flush(()=>{let e=this._inflate[p];if(e){this._inflate.close(),this._inflate=null,n(e);return}let r=i.concat(this._inflate[f],this._inflate[u]);this._inflate._readableState.endEmitted?(this._inflate.close(),this._inflate=null):(this._inflate[u]=0,this._inflate[f]=[],t&&this.params[`${a}_no_context_takeover`]&&this._inflate.reset()),n(null,r)})}_compress(e,t,n){let a=this._isServer?`server`:`client`;if(!this._deflate){let e=`${a}_max_window_bits`,t=typeof this.params[e]==`number`?this.params[e]:r.Z_DEFAULT_WINDOWBITS;this._deflate=r.createDeflateRaw({...this._options.zlibDeflateOptions,windowBits:t}),this._deflate[u]=0,this._deflate[f]=[],this._deflate.on(`data`,h)}this._deflate[d]=n,this._deflate.write(e),this._deflate.flush(r.Z_SYNC_FLUSH,()=>{if(!this._deflate)return;let e=i.concat(this._deflate[f],this._deflate[u]);t&&(e=new s(e.buffer,e.byteOffset,e.length-4)),this._deflate[d]=null,this._deflate[u]=0,this._deflate[f]=[],t&&this.params[`${a}_no_context_takeover`]&&this._deflate.reset(),n(null,e)})}};function h(e){this[f].push(e),this[u]+=e.length}function g(e){this[u]+=e.length,this[l]._maxPayload<1||this[u]<=this[l]._maxPayload?this[f].push(e):(this[p]=RangeError(`Max payload size exceeded`),this[p].code=`WS_ERR_UNSUPPORTED_MESSAGE_LENGTH`,this[p][o]=1009,this.removeListener(`data`,g),this.reset())}function _(e){this[l]._inflate=null,this[p]?this[d](this[p]):(e[o]=1007,this[d](e))}})),sr=r({}),cr=n((()=>{throw Error(`Optional native dependency "utf-8-validate" is not bundled in this vendored module.`)})),lr=i(((n,r)=>{let{isUtf8:i}=t(`buffer`),{hasBlob:a}=tr(),o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,1,0,0,1,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1,0];function s(e){return e>=1e3&&e<=1014&&e!==1004&&e!==1005&&e!==1006||e>=3e3&&e<=4999}function c(e){let t=e.length,n=0;for(;n<t;)if(!(e[n]&128))n++;else if((e[n]&224)==192){if(n+1===t||(e[n+1]&192)!=128||(e[n]&254)==192)return!1;n+=2}else if((e[n]&240)==224){if(n+2>=t||(e[n+1]&192)!=128||(e[n+2]&192)!=128||e[n]===224&&(e[n+1]&224)==128||e[n]===237&&(e[n+1]&224)==160)return!1;n+=3}else if((e[n]&248)==240){if(n+3>=t||(e[n+1]&192)!=128||(e[n+2]&192)!=128||(e[n+3]&192)!=128||e[n]===240&&(e[n+1]&240)==128||e[n]===244&&e[n+1]>143||e[n]>244)return!1;n+=4}else return!1;return!0}function l(e){return a&&typeof e==`object`&&typeof e.arrayBuffer==`function`&&typeof e.type==`string`&&typeof e.stream==`function`&&(e[Symbol.toStringTag]===`Blob`||e[Symbol.toStringTag]===`File`)}if(r.exports={isBlob:l,isValidStatusCode:s,isValidUTF8:c,tokenChars:o},i)r.exports.isValidUTF8=function(e){return e.length<24?c(e):i(e)};else if(!process.env.WS_NO_UTF_8_VALIDATE)try{let t=(cr(),e(sr));r.exports.isValidUTF8=function(e){return e.length<32?c(e):t(e)}}catch{}})),ur=i(((e,n)=>{let{Writable:r}=t(`stream`),i=or(),{BINARY_TYPES:a,EMPTY_BUFFER:o,kStatusCode:s,kWebSocket:c}=tr(),{concat:l,toArrayBuffer:u,unmask:d}=ir(),{isValidStatusCode:f,isValidUTF8:p}=lr(),m=Buffer[Symbol.species];n.exports=class extends r{constructor(e={}){super(),this._allowSynchronousEvents=e.allowSynchronousEvents===void 0||e.allowSynchronousEvents,this._binaryType=e.binaryType||a[0],this._extensions=e.extensions||{},this._isServer=!!e.isServer,this._maxBufferedChunks=e.maxBufferedChunks|0,this._maxFragments=e.maxFragments|0,this._maxPayload=e.maxPayload|0,this._skipUTF8Validation=!!e.skipUTF8Validation,this[c]=void 0,this._bufferedBytes=0,this._buffers=[],this._compressed=!1,this._payloadLength=0,this._mask=void 0,this._fragmented=0,this._masked=!1,this._fin=!1,this._opcode=0,this._totalPayloadLength=0,this._messageLength=0,this._numFragments=0,this._fragments=[],this._errored=!1,this._loop=!1,this._state=0}_write(e,t,n){if(this._opcode===8&&this._state==0)return n();this._maxBufferedChunks>0&&this._buffers.length>=this._maxBufferedChunks?n(this.createError(RangeError,`Too many buffered chunks`,!1,1008,`WS_ERR_TOO_MANY_BUFFERED_PARTS`)):(this._bufferedBytes+=e.length,this._buffers.push(e),this.startLoop(n))}consume(e){if(this._bufferedBytes-=e,e===this._buffers[0].length)return this._buffers.shift();if(e<this._buffers[0].length){let t=this._buffers[0];return this._buffers[0]=new m(t.buffer,t.byteOffset+e,t.length-e),new m(t.buffer,t.byteOffset,e)}let t=Buffer.allocUnsafe(e);do{let n=this._buffers[0],r=t.length-e;e>=n.length?t.set(this._buffers.shift(),r):(t.set(new Uint8Array(n.buffer,n.byteOffset,e),r),this._buffers[0]=new m(n.buffer,n.byteOffset+e,n.length-e)),e-=n.length}while(e>0);return t}startLoop(e){this._loop=!0;do switch(this._state){case 0:this.getInfo(e);break;case 1:this.getPayloadLength16(e);break;case 2:this.getPayloadLength64(e);break;case 3:this.getMask();break;case 4:this.getData(e);break;case 5:case 6:this._loop=!1;return}while(this._loop);this._errored||e()}getInfo(e){if(this._bufferedBytes<2){this._loop=!1;return}let t=this.consume(2);if(t[0]&48){e(this.createError(RangeError,`RSV2 and RSV3 must be clear`,!0,1002,`WS_ERR_UNEXPECTED_RSV_2_3`));return}let n=(t[0]&64)==64;if(n&&!this._extensions[i.extensionName])e(this.createError(RangeError,`RSV1 must be clear`,!0,1002,`WS_ERR_UNEXPECTED_RSV_1`));else{if(this._fin=(t[0]&128)==128,this._opcode=t[0]&15,this._payloadLength=t[1]&127,this._opcode===0){if(n){e(this.createError(RangeError,`RSV1 must be clear`,!0,1002,`WS_ERR_UNEXPECTED_RSV_1`));return}if(!this._fragmented){e(this.createError(RangeError,`invalid opcode 0`,!0,1002,`WS_ERR_INVALID_OPCODE`));return}this._opcode=this._fragmented}else if(this._opcode===1||this._opcode===2){if(this._fragmented){e(this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,`WS_ERR_INVALID_OPCODE`));return}this._compressed=n}else if(this._opcode>7&&this._opcode<11){if(!this._fin){e(this.createError(RangeError,`FIN must be set`,!0,1002,`WS_ERR_EXPECTED_FIN`));return}if(n){e(this.createError(RangeError,`RSV1 must be clear`,!0,1002,`WS_ERR_UNEXPECTED_RSV_1`));return}if(this._payloadLength>125||this._opcode===8&&this._payloadLength===1){e(this.createError(RangeError,`invalid payload length ${this._payloadLength}`,!0,1002,`WS_ERR_INVALID_CONTROL_PAYLOAD_LENGTH`));return}}else{e(this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,`WS_ERR_INVALID_OPCODE`));return}if(!this._fin&&!this._fragmented&&(this._fragmented=this._opcode),this._masked=(t[1]&128)==128,this._isServer){if(!this._masked){e(this.createError(RangeError,`MASK must be set`,!0,1002,`WS_ERR_EXPECTED_MASK`));return}}else if(this._masked){e(this.createError(RangeError,`MASK must be clear`,!0,1002,`WS_ERR_UNEXPECTED_MASK`));return}this._payloadLength===126?this._state=1:this._payloadLength===127?this._state=2:this.haveLength(e)}}getPayloadLength16(e){this._bufferedBytes<2?this._loop=!1:(this._payloadLength=this.consume(2).readUInt16BE(0),this.haveLength(e))}getPayloadLength64(e){if(this._bufferedBytes<8){this._loop=!1;return}let t=this.consume(8),n=t.readUInt32BE(0);n>2**21-1?e(this.createError(RangeError,`Unsupported WebSocket frame: payload length > 2^53 - 1`,!1,1009,`WS_ERR_UNSUPPORTED_DATA_PAYLOAD_LENGTH`)):(this._payloadLength=n*2**32+t.readUInt32BE(4),this.haveLength(e))}haveLength(e){this._payloadLength&&this._opcode<8&&(this._totalPayloadLength+=this._payloadLength,this._totalPayloadLength>this._maxPayload&&this._maxPayload>0)?e(this.createError(RangeError,`Max payload size exceeded`,!1,1009,`WS_ERR_UNSUPPORTED_MESSAGE_LENGTH`)):this._state=this._masked?3:4}getMask(){this._bufferedBytes<4?this._loop=!1:(this._mask=this.consume(4),this._state=4)}getData(e){let t=o;if(this._payloadLength){if(this._bufferedBytes<this._payloadLength){this._loop=!1;return}t=this.consume(this._payloadLength),this._masked&&(this._mask[0]|this._mask[1]|this._mask[2]|this._mask[3])!==0&&d(t,this._mask)}this._mask=void 0,this._opcode>7?this.controlMessage(t,e):this._maxFragments>0&&++this._numFragments>this._maxFragments?e(this.createError(RangeError,`Too many message fragments`,!1,1008,`WS_ERR_TOO_MANY_BUFFERED_PARTS`)):this._compressed?(this._state=5,this.decompress(t,e)):(t.length&&(this._messageLength=this._totalPayloadLength,this._fragments.push(t)),this.dataMessage(e))}decompress(e,t){this._extensions[i.extensionName].decompress(e,this._fin,(e,n)=>{if(e)return t(e);if(n.length){if(this._messageLength+=n.length,this._messageLength>this._maxPayload&&this._maxPayload>0){t(this.createError(RangeError,`Max payload size exceeded`,!1,1009,`WS_ERR_UNSUPPORTED_MESSAGE_LENGTH`));return}this._fragments.push(n)}this.dataMessage(t),this._state===0&&this.startLoop(t)})}dataMessage(e){if(!this._fin){this._state=0;return}let t=this._messageLength,n=this._fragments;if(this._totalPayloadLength=0,this._messageLength=0,this._fragmented=0,this._numFragments=0,this._fragments=[],this._opcode===2){let r;r=this._binaryType===`nodebuffer`?l(n,t):this._binaryType===`arraybuffer`?u(l(n,t)):this._binaryType===`blob`?new Blob(n):n,this._allowSynchronousEvents?(this.emit(`message`,r,!0),this._state=0):(this._state=6,setImmediate(()=>{this.emit(`message`,r,!0),this._state=0,this.startLoop(e)}))}else{let r=l(n,t);if(!this._skipUTF8Validation&&!p(r)){e(this.createError(Error,`invalid UTF-8 sequence`,!0,1007,`WS_ERR_INVALID_UTF8`));return}this._state===5||this._allowSynchronousEvents?(this.emit(`message`,r,!1),this._state=0):(this._state=6,setImmediate(()=>{this.emit(`message`,r,!1),this._state=0,this.startLoop(e)}))}}controlMessage(e,t){if(this._opcode===8){if(e.length===0)this._loop=!1,this.emit(`conclude`,1005,o),this.end();else{let n=e.readUInt16BE(0);if(!f(n)){t(this.createError(RangeError,`invalid status code ${n}`,!0,1002,`WS_ERR_INVALID_CLOSE_CODE`));return}let r=new m(e.buffer,e.byteOffset+2,e.length-2);if(!this._skipUTF8Validation&&!p(r)){t(this.createError(Error,`invalid UTF-8 sequence`,!0,1007,`WS_ERR_INVALID_UTF8`));return}this._loop=!1,this.emit(`conclude`,n,r),this.end()}this._state=0}else this._allowSynchronousEvents?(this.emit(this._opcode===9?`ping`:`pong`,e),this._state=0):(this._state=6,setImmediate(()=>{this.emit(this._opcode===9?`ping`:`pong`,e),this._state=0,this.startLoop(t)}))}createError(e,t,n,r,i){this._loop=!1,this._errored=!0;let a=new e(n?`Invalid WebSocket frame: ${t}`:t);return Error.captureStackTrace(a,this.createError),a.code=i,a[s]=r,a}}})),dr=i(((e,n)=>{let{Duplex:r}=t(`stream`),{randomFillSync:i}=t(`crypto`),{types:{isUint8Array:a}}=t(`util`),o=or(),{EMPTY_BUFFER:s,kWebSocket:c,NOOP:l}=tr(),{isBlob:u,isValidStatusCode:d}=lr(),{mask:f,toBuffer:p}=ir(),m=Symbol(`kByteLength`),h=Buffer.alloc(4),g=8192,_,v=g;n.exports=class e{constructor(e,t,n){this._extensions=t||{},n&&(this._generateMask=n,this._maskBuffer=Buffer.alloc(4)),this._socket=e,this._firstFragment=!0,this._compress=!1,this._bufferedBytes=0,this._queue=[],this._state=0,this.onerror=l,this[c]=void 0}static frame(e,t){let n,r=!1,a=2,o=!1;t.mask&&(n=t.maskBuffer||h,t.generateMask?t.generateMask(n):(v===g&&(_===void 0&&(_=Buffer.alloc(g)),i(_,0,g),v=0),n[0]=_[v++],n[1]=_[v++],n[2]=_[v++],n[3]=_[v++]),o=(n[0]|n[1]|n[2]|n[3])===0,a=6);let s;typeof e==`string`?(!t.mask||o)&&t[m]!==void 0?s=t[m]:(e=Buffer.from(e),s=e.length):(s=e.length,r=t.mask&&t.readOnly&&!o);let c=s;s>=65536?(a+=8,c=127):s>125&&(a+=2,c=126);let l=Buffer.allocUnsafe(r?s+a:a);return l[0]=t.fin?t.opcode|128:t.opcode,t.rsv1&&(l[0]|=64),l[1]=c,c===126?l.writeUInt16BE(s,2):c===127&&(l[2]=l[3]=0,l.writeUIntBE(s,4,6)),t.mask?(l[1]|=128,l[a-4]=n[0],l[a-3]=n[1],l[a-2]=n[2],l[a-1]=n[3],s?o?[l,e]:r?(f(e,n,l,a,s),[l]):(f(e,n,e,0,s),[l,e]):[l]):s?[l,e]:[l]}close(t,n,r,i){let o;if(t===void 0)o=s;else if(typeof t!=`number`||!d(t))throw TypeError(`First argument must be a valid error code number`);else if(n===void 0||!n.length)o=Buffer.allocUnsafe(2),o.writeUInt16BE(t,0);else{let e=Buffer.byteLength(n);if(e>123)throw RangeError(`The message must not be greater than 123 bytes`);if(o=Buffer.allocUnsafe(2+e),o.writeUInt16BE(t,0),typeof n==`string`)o.write(n,2);else if(a(n))o.set(n,2);else throw TypeError(`Second argument must be a string or a Uint8Array`)}let c={[m]:o.length,fin:!0,generateMask:this._generateMask,mask:r,maskBuffer:this._maskBuffer,opcode:8,readOnly:!1,rsv1:!1};this._state===0?this.sendFrame(e.frame(o,c),i):this.enqueue([this.dispatch,o,!1,c,i])}ping(t,n,r){let i,a;if(typeof t==`string`?(i=Buffer.byteLength(t),a=!1):u(t)?(i=t.size,a=!1):(t=p(t),i=t.length,a=p.readOnly),i>125)throw RangeError(`The data size must not be greater than 125 bytes`);let o={[m]:i,fin:!0,generateMask:this._generateMask,mask:n,maskBuffer:this._maskBuffer,opcode:9,readOnly:a,rsv1:!1};u(t)?this._state===0?this.getBlobData(t,!1,o,r):this.enqueue([this.getBlobData,t,!1,o,r]):this._state===0?this.sendFrame(e.frame(t,o),r):this.enqueue([this.dispatch,t,!1,o,r])}pong(t,n,r){let i,a;if(typeof t==`string`?(i=Buffer.byteLength(t),a=!1):u(t)?(i=t.size,a=!1):(t=p(t),i=t.length,a=p.readOnly),i>125)throw RangeError(`The data size must not be greater than 125 bytes`);let o={[m]:i,fin:!0,generateMask:this._generateMask,mask:n,maskBuffer:this._maskBuffer,opcode:10,readOnly:a,rsv1:!1};u(t)?this._state===0?this.getBlobData(t,!1,o,r):this.enqueue([this.getBlobData,t,!1,o,r]):this._state===0?this.sendFrame(e.frame(t,o),r):this.enqueue([this.dispatch,t,!1,o,r])}send(e,t,n){let r=this._extensions[o.extensionName],i=t.binary?2:1,a=t.compress,s,c;typeof e==`string`?(s=Buffer.byteLength(e),c=!1):u(e)?(s=e.size,c=!1):(e=p(e),s=e.length,c=p.readOnly),this._firstFragment?(this._firstFragment=!1,a&&r&&r.params[r._isServer?`server_no_context_takeover`:`client_no_context_takeover`]&&(a=s>=r._threshold),this._compress=a):(a=!1,i=0),t.fin&&(this._firstFragment=!0);let l={[m]:s,fin:t.fin,generateMask:this._generateMask,mask:t.mask,maskBuffer:this._maskBuffer,opcode:i,readOnly:c,rsv1:a};u(e)?this._state===0?this.getBlobData(e,this._compress,l,n):this.enqueue([this.getBlobData,e,this._compress,l,n]):this._state===0?this.dispatch(e,this._compress,l,n):this.enqueue([this.dispatch,e,this._compress,l,n])}getBlobData(t,n,r,i){this._bufferedBytes+=r[m],this._state=2,t.arrayBuffer().then(t=>{if(this._socket.destroyed){let e=Error(`The socket was closed while the blob was being read`);process.nextTick(y,this,e,i);return}this._bufferedBytes-=r[m];let a=p(t);n?this.dispatch(a,n,r,i):(this._state=0,this.sendFrame(e.frame(a,r),i),this.dequeue())}).catch(e=>{process.nextTick(b,this,e,i)})}dispatch(t,n,r,i){if(!n){this.sendFrame(e.frame(t,r),i);return}let a=this._extensions[o.extensionName];this._bufferedBytes+=r[m],this._state=1,a.compress(t,r.fin,(t,n)=>{if(this._socket.destroyed){let e=Error(`The socket was closed while data was being compressed`);y(this,e,i)}else this._bufferedBytes-=r[m],this._state=0,r.readOnly=!1,this.sendFrame(e.frame(n,r),i),this.dequeue()})}dequeue(){for(;this._state===0&&this._queue.length;){let e=this._queue.shift();this._bufferedBytes-=e[3][m],Reflect.apply(e[0],this,e.slice(1))}}enqueue(e){this._bufferedBytes+=e[3][m],this._queue.push(e)}sendFrame(e,t){e.length===2?(this._socket.cork(),this._socket.write(e[0]),this._socket.write(e[1],t),this._socket.uncork()):this._socket.write(e[0],t)}};function y(e,t,n){typeof n==`function`&&n(t);for(let n=0;n<e._queue.length;n++){let r=e._queue[n],i=r[r.length-1];typeof i==`function`&&i(t)}}function b(e,t,n){y(e,t,n),e.onerror(t)}})),fr=i(((e,t)=>{let{kForOnEventAttribute:n,kListener:r}=tr(),i=Symbol(`kCode`),a=Symbol(`kData`),o=Symbol(`kError`),s=Symbol(`kMessage`),c=Symbol(`kReason`),l=Symbol(`kTarget`),u=Symbol(`kType`),d=Symbol(`kWasClean`);var f=class{constructor(e){this[l]=null,this[u]=e}get target(){return this[l]}get type(){return this[u]}};Object.defineProperty(f.prototype,"target",{enumerable:!0}),Object.defineProperty(f.prototype,"type",{enumerable:!0});var p=class extends f{constructor(e,t={}){super(e),this[i]=t.code===void 0?0:t.code,this[c]=t.reason===void 0?``:t.reason,this[d]=t.wasClean!==void 0&&t.wasClean}get code(){return this[i]}get reason(){return this[c]}get wasClean(){return this[d]}};Object.defineProperty(p.prototype,"code",{enumerable:!0}),Object.defineProperty(p.prototype,"reason",{enumerable:!0}),Object.defineProperty(p.prototype,"wasClean",{enumerable:!0});var m=class extends f{constructor(e,t={}){super(e),this[o]=t.error===void 0?null:t.error,this[s]=t.message===void 0?``:t.message}get error(){return this[o]}get message(){return this[s]}};Object.defineProperty(m.prototype,"error",{enumerable:!0}),Object.defineProperty(m.prototype,"message",{enumerable:!0});var h=class extends f{constructor(e,t={}){super(e),this[a]=t.data===void 0?null:t.data}get data(){return this[a]}};Object.defineProperty(h.prototype,"data",{enumerable:!0}),t.exports={CloseEvent:p,ErrorEvent:m,Event:f,EventTarget:{addEventListener(e,t,i={}){for(let a of this.listeners(e))if(!i[n]&&a[r]===t&&!a[n])return;let a;if(e===`message`)a=function(e,n){let r=new h(`message`,{data:n?e:e.toString()});r[l]=this,g(t,this,r)};else if(e===`close`)a=function(e,n){let r=new p(`close`,{code:e,reason:n.toString(),wasClean:this._closeFrameReceived&&this._closeFrameSent});r[l]=this,g(t,this,r)};else if(e===`error`)a=function(e){let n=new m(`error`,{error:e,message:e.message});n[l]=this,g(t,this,n)};else if(e===`open`)a=function(){let e=new f(`open`);e[l]=this,g(t,this,e)};else return;a[n]=!!i[n],a[r]=t,i.once?this.once(e,a):this.on(e,a)},removeEventListener(e,t){for(let i of this.listeners(e))if(i[r]===t&&!i[n]){this.removeListener(e,i);break}}},MessageEvent:h};function g(e,t,n){typeof e==`object`&&e.handleEvent?e.handleEvent.call(e,n):e.call(t,n)}})),pr=i(((e,t)=>{let{tokenChars:n}=lr();function r(e,t,n){e[t]===void 0?e[t]=[n]:e[t].push(n)}function i(e){let t=Object.create(null),i=Object.create(null),a=!1,o=!1,s=!1,c,l,u=-1,d=-1,f=-1,p=0;for(;p<e.length;p++)if(d=e.charCodeAt(p),c===void 0){if(f===-1&&n[d]===1)u===-1&&(u=p);else if(p!==0&&(d===32||d===9))f===-1&&u!==-1&&(f=p);else if(d===59||d===44){if(u===-1)throw SyntaxError(`Unexpected character at index ${p}`);f===-1&&(f=p);let n=e.slice(u,f);d===44?(r(t,n,i),i=Object.create(null)):c=n,u=f=-1}else throw SyntaxError(`Unexpected character at index ${p}`)}else if(l===void 0){if(f===-1&&n[d]===1)u===-1&&(u=p);else if(d===32||d===9)f===-1&&u!==-1&&(f=p);else if(d===59||d===44){if(u===-1)throw SyntaxError(`Unexpected character at index ${p}`);f===-1&&(f=p),r(i,e.slice(u,f),!0),d===44&&(r(t,c,i),i=Object.create(null),c=void 0),u=f=-1}else if(d===61&&u!==-1&&f===-1)l=e.slice(u,p),u=f=-1;else throw SyntaxError(`Unexpected character at index ${p}`)}else if(o){if(n[d]!==1)throw SyntaxError(`Unexpected character at index ${p}`);u===-1?u=p:a||=!0,o=!1}else if(s){if(n[d]===1)u===-1&&(u=p);else if(d===34&&u!==-1)s=!1,f=p;else if(d===92)o=!0;else throw SyntaxError(`Unexpected character at index ${p}`)}else if(d===34&&e.charCodeAt(p-1)===61)s=!0;else if(f===-1&&n[d]===1)u===-1&&(u=p);else if(u!==-1&&(d===32||d===9))f===-1&&(f=p);else if(d===59||d===44){if(u===-1)throw SyntaxError(`Unexpected character at index ${p}`);f===-1&&(f=p);let n=e.slice(u,f);a&&=(n=n.replace(/\\/g,``),!1),r(i,l,n),d===44&&(r(t,c,i),i=Object.create(null),c=void 0),l=void 0,u=f=-1}else throw SyntaxError(`Unexpected character at index ${p}`);if(u===-1||s||d===32||d===9)throw SyntaxError(`Unexpected end of input`);f===-1&&(f=p);let m=e.slice(u,f);return c===void 0?r(t,m,i):(l===void 0?r(i,m,!0):a?r(i,l,m.replace(/\\/g,``)):r(i,l,m),r(t,c,i)),t}function a(e){return Object.keys(e).map(t=>{let n=e[t];return Array.isArray(n)||(n=[n]),n.map(e=>[t].concat(Object.keys(e).map(t=>{let n=e[t];return Array.isArray(n)||(n=[n]),n.map(e=>e===!0?t:`${t}=${e}`).join(`; `)})).join(`; `)).join(`, `)}).join(`, `)}t.exports={format:a,parse:i}})),mr=i(((e,n)=>{let r=t(`events`),i=t(`https`),a=t(`http`),o=t(`net`),s=t(`querystring`),c=t(`tls`),{randomBytes:l,createHash:u}=t(`crypto`),{Duplex:d,Readable:f}=t(`stream`),{URL:p}=t(`url`),m=or(),h=ur(),g=dr(),{isBlob:_}=lr(),{BINARY_TYPES:v,CLOSE_TIMEOUT:y,EMPTY_BUFFER:b,GUID:x,kForOnEventAttribute:S,kListener:C,kStatusCode:w,kWebSocket:T,NOOP:E}=tr(),{EventTarget:{addEventListener:D,removeEventListener:O}}=fr(),{format:k,parse:A}=pr(),{toBuffer:j}=ir(),M=Symbol(`kAborted`),N=[8,13],P=[`CONNECTING`,`OPEN`,`CLOSING`,`CLOSED`],F=/^[!#$%&'*+\-.0-9A-Z^_`|a-z~]+$/;var I=class e extends r{constructor(t,n,r){super(),this._binaryType=v[0],this._closeCode=1006,this._closeFrameReceived=!1,this._closeFrameSent=!1,this._closeMessage=b,this._closeTimer=null,this._errorEmitted=!1,this._extensions={},this._paused=!1,this._protocol=``,this._readyState=e.CONNECTING,this._receiver=null,this._sender=null,this._socket=null,t===null?(this._autoPong=r.autoPong,this._closeTimeout=r.closeTimeout,this._isServer=!0):(this._bufferedAmount=0,this._isServer=!1,this._redirects=0,n===void 0?n=!r||r.protocols===void 0?[]:Array.isArray(r.protocols)?r.protocols:[r.protocols]:Array.isArray(n)||(typeof n==`object`&&n?(r=n,n=r.protocols===void 0?[]:Array.isArray(r.protocols)?r.protocols:[r.protocols]):n=[n]),L(this,t,n,r))}get binaryType(){return this._binaryType}set binaryType(e){v.includes(e)&&(this._binaryType=e,this._receiver&&(this._receiver._binaryType=e))}get bufferedAmount(){return this._socket?this._socket._writableState.length+this._sender._bufferedBytes:this._bufferedAmount}get extensions(){return Object.keys(this._extensions).join()}get isPaused(){return this._paused}get onclose(){return null}get onerror(){return null}get onopen(){return null}get onmessage(){return null}get protocol(){return this._protocol}get readyState(){return this._readyState}get url(){return this._url}setSocket(t,n,r){let i=new h({allowSynchronousEvents:r.allowSynchronousEvents,binaryType:this.binaryType,extensions:this._extensions,isServer:this._isServer,maxBufferedChunks:r.maxBufferedChunks,maxFragments:r.maxFragments,maxPayload:r.maxPayload,skipUTF8Validation:r.skipUTF8Validation}),a=new g(t,this._extensions,r.generateMask);this._receiver=i,this._sender=a,this._socket=t,i[T]=this,a[T]=this,t[T]=this,i.on(`conclude`,U),i.on(`drain`,W),i.on(`error`,ee),i.on(`message`,ne),i.on(`ping`,re),i.on(`pong`,ie),a.onerror=oe,t.setTimeout&&t.setTimeout(0),t.setNoDelay&&t.setNoDelay(),n.length>0&&t.unshift(n),t.on(`close`,ce),t.on(`data`,G),t.on(`end`,le),t.on(`error`,ue),this._readyState=e.OPEN,this.emit(`open`)}emitClose(){this._socket?(this._extensions[m.extensionName]&&this._extensions[m.extensionName].cleanup(),this._receiver.removeAllListeners(),this._readyState=e.CLOSED,this.emit(`close`,this._closeCode,this._closeMessage)):(this._readyState=e.CLOSED,this.emit(`close`,this._closeCode,this._closeMessage))}close(t,n){this.readyState!==e.CLOSED&&(this.readyState===e.CONNECTING?V(this,this._req,`WebSocket was closed before the connection was established`):this.readyState===e.CLOSING?this._closeFrameSent&&(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end():(this._sender.close(t,n,!this._isServer,e=>{e||(this._closeFrameSent=!0,(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end())}),this._readyState=e.CLOSING,se(this)))}pause(){this.readyState!==e.CONNECTING&&this.readyState!==e.CLOSED&&(this._paused=!0,this._socket.pause())}ping(t,n,r){if(this.readyState===e.CONNECTING)throw Error(`WebSocket is not open: readyState 0 (CONNECTING)`);typeof t==`function`?(r=t,t=n=void 0):typeof n==`function`&&(r=n,n=void 0),typeof t==`number`&&(t=t.toString()),this.readyState===e.OPEN?(n===void 0&&(n=!this._isServer),this._sender.ping(t||b,n,r)):H(this,t,r)}pong(t,n,r){if(this.readyState===e.CONNECTING)throw Error(`WebSocket is not open: readyState 0 (CONNECTING)`);typeof t==`function`?(r=t,t=n=void 0):typeof n==`function`&&(r=n,n=void 0),typeof t==`number`&&(t=t.toString()),this.readyState===e.OPEN?(n===void 0&&(n=!this._isServer),this._sender.pong(t||b,n,r)):H(this,t,r)}resume(){this.readyState!==e.CONNECTING&&this.readyState!==e.CLOSED&&(this._paused=!1,this._receiver._writableState.needDrain||this._socket.resume())}send(t,n,r){if(this.readyState===e.CONNECTING)throw Error(`WebSocket is not open: readyState 0 (CONNECTING)`);if(typeof n==`function`&&(r=n,n={}),typeof t==`number`&&(t=t.toString()),this.readyState!==e.OPEN){H(this,t,r);return}let i={binary:typeof t!=`string`,mask:!this._isServer,compress:!0,fin:!0,...n};this._extensions[m.extensionName]||(i.compress=!1),this._sender.send(t||b,i,r)}terminate(){this.readyState!==e.CLOSED&&(this.readyState===e.CONNECTING?V(this,this._req,`WebSocket was closed before the connection was established`):this._socket&&(this._readyState=e.CLOSING,this._socket.destroy()))}};Object.defineProperty(I,"CONNECTING",{enumerable:!0,value:P.indexOf(`CONNECTING`)}),Object.defineProperty(I.prototype,"CONNECTING",{enumerable:!0,value:P.indexOf(`CONNECTING`)}),Object.defineProperty(I,"OPEN",{enumerable:!0,value:P.indexOf(`OPEN`)}),Object.defineProperty(I.prototype,"OPEN",{enumerable:!0,value:P.indexOf(`OPEN`)}),Object.defineProperty(I,"CLOSING",{enumerable:!0,value:P.indexOf(`CLOSING`)}),Object.defineProperty(I.prototype,"CLOSING",{enumerable:!0,value:P.indexOf(`CLOSING`)}),Object.defineProperty(I,"CLOSED",{enumerable:!0,value:P.indexOf(`CLOSED`)}),Object.defineProperty(I.prototype,"CLOSED",{enumerable:!0,value:P.indexOf(`CLOSED`)}),[`binaryType`,`bufferedAmount`,`extensions`,`isPaused`,`protocol`,`readyState`,`url`].forEach(e=>{Object.defineProperty(I.prototype,e,{enumerable:!0})}),[`open`,`error`,`close`,`message`].forEach(e=>{Object.defineProperty(I.prototype,`on${e}`,{enumerable:!0,get(){for(let t of this.listeners(e))if(t[S])return t[C];return null},set(t){for(let t of this.listeners(e))if(t[S]){this.removeListener(e,t);break}typeof t==`function`&&this.addEventListener(e,t,{[S]:!0})}})}),I.prototype.addEventListener=D,I.prototype.removeEventListener=O,n.exports=I;function L(e,t,n,r){let o={allowSynchronousEvents:!0,autoPong:!0,closeTimeout:y,protocolVersion:N[1],maxBufferedChunks:262144,maxFragments:16384,maxPayload:104857600,skipUTF8Validation:!1,perMessageDeflate:!0,followRedirects:!1,maxRedirects:10,...r,socketPath:void 0,hostname:void 0,protocol:void 0,protocols:void 0,timeout:void 0,method:`GET`,host:void 0,path:void 0,port:void 0};if(e._autoPong=o.autoPong,e._closeTimeout=o.closeTimeout,!N.includes(o.protocolVersion))throw RangeError(`Unsupported protocol version: ${o.protocolVersion} (supported versions: ${N.join(`, `)})`);let c;if(t instanceof p)c=t;else try{c=new p(t)}catch{throw SyntaxError(`Invalid URL: ${t}`)}(c.protocol===`http:`||c.protocol===`https:`)&&(c=new p(c),c.protocol=c.protocol===`http:`?`ws:`:`wss:`),e._url=c.href;let d=c.protocol===`wss:`,f=c.protocol===`ws+unix:`,h;if(c.protocol!==`ws:`&&!d&&!f?h=`The URL's protocol must be one of "ws:", "wss:", "http:", "https:", or "ws+unix:"`:f&&!c.pathname?h=`The URL's pathname is empty`:c.hash&&(h=`The URL contains a fragment identifier`),h){let t=SyntaxError(h);if(e._redirects===0)throw t;R(e,t);return}let g=d?443:80,_=l(16).toString(`base64`),v=d?i.request:a.request,b=new Set,S;if(o.createConnection=o.createConnection||(d?B:z),o.defaultPort=o.defaultPort||g,o.port=c.port||g,o.host=c.hostname.startsWith(`[`)?c.hostname.slice(1,-1):c.hostname,o.headers={...o.headers,"Sec-WebSocket-Version":o.protocolVersion,"Sec-WebSocket-Key":_,Connection:`Upgrade`,Upgrade:`websocket`},o.path=c.pathname+c.search,o.timeout=o.handshakeTimeout,o.perMessageDeflate&&(S=new m({...o.perMessageDeflate,isServer:!1,maxPayload:o.maxPayload}),o.headers[`Sec-WebSocket-Extensions`]=k({[m.extensionName]:S.offer()})),n.length){for(let e of n){if(typeof e!=`string`||!F.test(e)||b.has(e))throw SyntaxError(`An invalid or duplicated subprotocol was specified`);b.add(e)}o.headers[`Sec-WebSocket-Protocol`]=n.join(`,`)}if(o.origin&&(o.protocolVersion<13?o.headers[`Sec-WebSocket-Origin`]=o.origin:o.headers.Origin=o.origin),(c.username||c.password)&&(o.auth=`${s.unescape(c.username)}:${s.unescape(c.password)}`),f){let e=o.path.indexOf(`:`);e===-1?(o.socketPath=o.path,o.path=``):(o.socketPath=o.path.slice(0,e),o.path=o.path.slice(e+1))}let C;if(o.followRedirects){if(e._redirects===0){e._originalIpc=f,e._originalSecure=d,e._originalHostOrSocketPath=f?o.socketPath:c.host;let t=r&&r.headers;if(r={...r,headers:{}},t)for(let[e,n]of Object.entries(t))r.headers[e.toLowerCase()]=n}else if(e.listenerCount(`redirect`)===0){let t=f?e._originalIpc?o.socketPath===e._originalHostOrSocketPath:!1:!e._originalIpc&&c.host===e._originalHostOrSocketPath;(!t||e._originalSecure&&!d)&&(delete o.headers.authorization,delete o.headers.cookie,t||delete o.headers.host,o.auth=void 0)}o.auth&&!r.headers.authorization&&(r.headers.authorization=`Basic `+Buffer.from(o.auth).toString(`base64`)),C=e._req=v(o),e._redirects&&e.emit(`redirect`,e.url,C)}else C=e._req=v(o);o.timeout&&C.on(`timeout`,()=>{V(e,C,`Opening handshake has timed out`)}),C.on(`error`,t=>{C===null||C[M]||(C=e._req=null,R(e,t))}),C.on(`response`,i=>{let a=i.headers.location,s=i.statusCode;if(a&&o.followRedirects&&s>=300&&s<400){if(++e._redirects>o.maxRedirects){V(e,C,`Maximum redirects exceeded`);return}C.abort();let i;try{i=new p(a,t)}catch{R(e,SyntaxError(`Invalid URL: ${a}`));return}L(e,i,n,r)}else e.emit(`unexpected-response`,C,i)||V(e,C,`Unexpected server response: ${i.statusCode}`)}),C.on(`upgrade`,(t,n,r)=>{if(e.emit(`upgrade`,t),e.readyState!==I.CONNECTING)return;C=e._req=null;let i=t.headers.upgrade;if(i===void 0||i.toLowerCase()!==`websocket`){V(e,n,`Invalid Upgrade header`);return}let a=u(`sha1`).update(_+x).digest(`base64`);if(t.headers[`sec-websocket-accept`]!==a){V(e,n,`Invalid Sec-WebSocket-Accept header`);return}let s=t.headers[`sec-websocket-protocol`],c;if(s===void 0?b.size&&(c=`Server sent no subprotocol`):b.size?b.has(s)||(c=`Server sent an invalid subprotocol`):c=`Server sent a subprotocol but none was requested`,c){V(e,n,c);return}s&&(e._protocol=s);let l=t.headers[`sec-websocket-extensions`];if(l!==void 0){if(!S){V(e,n,`Server sent a Sec-WebSocket-Extensions header but no extension was requested`);return}let t;try{t=A(l)}catch{V(e,n,`Invalid Sec-WebSocket-Extensions header`);return}let r=Object.keys(t);if(r.length!==1||r[0]!==m.extensionName){V(e,n,`Server indicated an extension that was not requested`);return}try{S.accept(t[m.extensionName])}catch{V(e,n,`Invalid Sec-WebSocket-Extensions header`);return}e._extensions[m.extensionName]=S}e.setSocket(n,r,{allowSynchronousEvents:o.allowSynchronousEvents,generateMask:o.generateMask,maxBufferedChunks:o.maxBufferedChunks,maxFragments:o.maxFragments,maxPayload:o.maxPayload,skipUTF8Validation:o.skipUTF8Validation})}),o.finishRequest?o.finishRequest(C,e):C.end()}function R(e,t){e._readyState=I.CLOSING,e._errorEmitted=!0,e.emit(`error`,t),e.emitClose()}function z(e){return e.path=e.socketPath,o.connect(e)}function B(e){return e.path=void 0,!e.servername&&e.servername!==``&&(e.servername=o.isIP(e.host)?``:e.host),c.connect(e)}function V(e,t,n){e._readyState=I.CLOSING;let r=Error(n);Error.captureStackTrace(r,V),t.setHeader?(t[M]=!0,t.abort(),t.socket&&!t.socket.destroyed&&t.socket.destroy(),process.nextTick(R,e,r)):(t.destroy(r),t.once(`error`,e.emit.bind(e,`error`)),t.once(`close`,e.emitClose.bind(e)))}function H(e,t,n){if(t){let n=_(t)?t.size:j(t).length;e._socket?e._sender._bufferedBytes+=n:e._bufferedAmount+=n}if(n){let t=Error(`WebSocket is not open: readyState ${e.readyState} (${P[e.readyState]})`);process.nextTick(n,t)}}function U(e,t){let n=this[T];n._closeFrameReceived=!0,n._closeCode=e,t.length===0?n._closeMessage=b:(n._closeMessage=Buffer.allocUnsafeSlow(t.length),n._closeMessage.set(t)),n._socket[T]!==void 0&&(n._socket.removeListener(`data`,G),process.nextTick(ae,n._socket),e===1005?n.close():n.close(e,t))}function W(){let e=this[T];e.isPaused||e._socket.resume()}function ee(e){let t=this[T];t._socket[T]!==void 0&&(t._socket.removeListener(`data`,G),process.nextTick(ae,t._socket),t.close(e[w])),t._errorEmitted||(t._errorEmitted=!0,t.emit(`error`,e))}function te(){this[T].emitClose()}function ne(e,t){this[T].emit(`message`,e,t)}function re(e){let t=this[T];t._autoPong&&t.pong(e,!this._isServer,E),t.emit(`ping`,e)}function ie(e){this[T].emit(`pong`,e)}function ae(e){e.resume()}function oe(e){let t=this[T];t.readyState!==I.CLOSED&&(t.readyState===I.OPEN&&(t._readyState=I.CLOSING,se(t)),this._socket.end(),t._errorEmitted||(t._errorEmitted=!0,t.emit(`error`,e)))}function se(e){e._closeTimer=setTimeout(e._socket.destroy.bind(e._socket),e._closeTimeout)}function ce(){let e=this[T];if(this.removeListener(`close`,ce),this.removeListener(`data`,G),this.removeListener(`end`,le),e._readyState=I.CLOSING,!this._readableState.endEmitted&&!e._closeFrameReceived&&!e._receiver._writableState.errorEmitted&&this._readableState.length!==0){let t=this.read(this._readableState.length);e._receiver.write(t)}e._receiver.end(),this[T]=void 0,clearTimeout(e._closeTimer),e._receiver._writableState.finished||e._receiver._writableState.errorEmitted?e.emitClose():(e._receiver.on(`error`,te),e._receiver.on(`finish`,te))}function G(e){this[T]._receiver.write(e)||this.pause()}function le(){let e=this[T];e._readyState=I.CLOSING,e._receiver.end(),this.end()}function ue(){let e=this[T];this.removeListener(`error`,ue),this.on(`error`,E),e&&(e._readyState=I.CLOSING,this.destroy())}})),hr=i(((e,n)=>{mr();let{Duplex:r}=t(`stream`);function i(e){e.emit(`close`)}function a(){!this.destroyed&&this._writableState.finished&&this.destroy()}function o(e){this.removeListener(`error`,o),this.destroy(),this.listenerCount(`error`)===0&&this.emit(`error`,e)}function s(e,t){let n=!0,s=new r({...t,autoDestroy:!1,emitClose:!1,objectMode:!1,writableObjectMode:!1});return e.on(`message`,function(t,n){let r=!n&&s._readableState.objectMode?t.toString():t;s.push(r)||e.pause()}),e.once(`error`,function(e){s.destroyed||(n=!1,s.destroy(e))}),e.once(`close`,function(){s.destroyed||s.push(null)}),s._destroy=function(t,r){if(e.readyState===e.CLOSED){r(t),process.nextTick(i,s);return}let a=!1;e.once(`error`,function(e){a=!0,r(e)}),e.once(`close`,function(){a||r(t),process.nextTick(i,s)}),n&&e.terminate()},s._final=function(t){e.readyState===e.CONNECTING?e.once(`open`,function(){s._final(t)}):e._socket!==null&&(e._socket._writableState.finished?(t(),s._readableState.endEmitted&&s.destroy()):(e._socket.once(`finish`,function(){t()}),e.close()))},s._read=function(){e.isPaused&&e.resume()},s._write=function(t,n,r){e.readyState===e.CONNECTING?e.once(`open`,function(){s._write(t,n,r)}):e.send(t,r)},s.on(`end`,a),s.on(`error`,o),s}n.exports=s})),gr=i(((e,t)=>{let{tokenChars:n}=lr();function r(e){let t=new Set,r=-1,i=-1,a=0;for(;a<e.length;a++){let o=e.charCodeAt(a);if(i===-1&&n[o]===1)r===-1&&(r=a);else if(a!==0&&(o===32||o===9))i===-1&&r!==-1&&(i=a);else if(o===44){if(r===-1)throw SyntaxError(`Unexpected character at index ${a}`);i===-1&&(i=a);let n=e.slice(r,i);if(t.has(n))throw SyntaxError(`The "${n}" subprotocol is duplicated`);t.add(n),r=i=-1}else throw SyntaxError(`Unexpected character at index ${a}`)}if(r===-1||i!==-1)throw SyntaxError(`Unexpected end of input`);let o=e.slice(r,a);if(t.has(o))throw SyntaxError(`The "${o}" subprotocol is duplicated`);return t.add(o),t}t.exports={parse:r}})),_r=i(((e,n)=>{let r=t(`events`),i=t(`http`),{Duplex:a}=t(`stream`),{createHash:o}=t(`crypto`),s=pr(),c=or(),l=gr(),u=mr(),{CLOSE_TIMEOUT:d,GUID:f,kWebSocket:p}=tr(),m=/^[+/0-9A-Za-z]{22}==$/;n.exports=class extends r{constructor(e,t){if(super(),e={allowSynchronousEvents:!0,autoPong:!0,maxBufferedChunks:262144,maxFragments:16384,maxPayload:104857600,skipUTF8Validation:!1,perMessageDeflate:!1,handleProtocols:null,clientTracking:!0,closeTimeout:d,verifyClient:null,noServer:!1,backlog:null,server:null,host:null,path:null,port:null,WebSocket:u,...e},e.port==null&&!e.server&&!e.noServer||e.port!=null&&(e.server||e.noServer)||e.server&&e.noServer)throw TypeError(`One and only one of the "port", "server", or "noServer" options must be specified`);if(e.port==null?e.server&&(this._server=e.server):(this._server=i.createServer((e,t)=>{let n=i.STATUS_CODES[426];t.writeHead(426,{"Content-Length":n.length,"Content-Type":`text/plain`}),t.end(n)}),this._server.listen(e.port,e.host,e.backlog,t)),this._server){let e=this.emit.bind(this,`connection`);this._removeListeners=h(this._server,{listening:this.emit.bind(this,`listening`),error:this.emit.bind(this,`error`),upgrade:(t,n,r)=>{this.handleUpgrade(t,n,r,e)}})}e.perMessageDeflate===!0&&(e.perMessageDeflate={}),e.clientTracking&&(this.clients=new Set,this._shouldEmitClose=!1),this.options=e,this._state=0}address(){if(this.options.noServer)throw Error(`The server is operating in "noServer" mode`);return this._server?this._server.address():null}close(e){if(this._state===2)e&&this.once(`close`,()=>{e(Error(`The server is not running`))}),process.nextTick(g,this);else if(e&&this.once(`close`,e),this._state!==1){if(this._state=1,this.options.noServer||this.options.server)this._server&&(this._removeListeners(),this._removeListeners=this._server=null),this.clients&&this.clients.size?this._shouldEmitClose=!0:process.nextTick(g,this);else{let e=this._server;this._removeListeners(),this._removeListeners=this._server=null,e.close(()=>{g(this)})}}}shouldHandle(e){if(this.options.path){let t=e.url.indexOf(`?`);if((t===-1?e.url:e.url.slice(0,t))!==this.options.path)return!1}return!0}handleUpgrade(e,t,n,r){t.on(`error`,_);let i=e.headers[`sec-websocket-key`],a=e.headers.upgrade,o=+e.headers[`sec-websocket-version`];if(e.method!==`GET`){y(this,e,t,405,`Invalid HTTP method`);return}if(a===void 0||a.toLowerCase()!==`websocket`){y(this,e,t,400,`Invalid Upgrade header`);return}if(i===void 0||!m.test(i)){y(this,e,t,400,`Missing or invalid Sec-WebSocket-Key header`);return}if(o!==13&&o!==8){y(this,e,t,400,`Missing or invalid Sec-WebSocket-Version header`,{"Sec-WebSocket-Version":`13, 8`});return}if(!this.shouldHandle(e)){v(t,400);return}let u=e.headers[`sec-websocket-protocol`],d=new Set;if(u!==void 0)try{d=l.parse(u)}catch{y(this,e,t,400,`Invalid Sec-WebSocket-Protocol header`);return}let f=e.headers[`sec-websocket-extensions`],p={};if(this.options.perMessageDeflate&&f!==void 0){let n=new c({...this.options.perMessageDeflate,isServer:!0,maxPayload:this.options.maxPayload});try{let e=s.parse(f);e[c.extensionName]&&(n.accept(e[c.extensionName]),p[c.extensionName]=n)}catch{y(this,e,t,400,`Invalid or unacceptable Sec-WebSocket-Extensions header`);return}}if(this.options.verifyClient){let a={origin:e.headers[`${o===8?`sec-websocket-origin`:`origin`}`],secure:!!(e.socket.authorized||e.socket.encrypted),req:e};if(this.options.verifyClient.length===2){this.options.verifyClient(a,(a,o,s,c)=>{if(!a)return v(t,o||401,s,c);this.completeUpgrade(p,i,d,e,t,n,r)});return}if(!this.options.verifyClient(a))return v(t,401)}this.completeUpgrade(p,i,d,e,t,n,r)}completeUpgrade(e,t,n,r,i,a,l){if(!i.readable||!i.writable)return i.destroy();if(i[p])throw Error(`server.handleUpgrade() was called more than once with the same socket, possibly due to a misconfiguration`);if(this._state>0)return v(i,503);let u=[`HTTP/1.1 101 Switching Protocols`,`Upgrade: websocket`,`Connection: Upgrade`,`Sec-WebSocket-Accept: ${o(`sha1`).update(t+f).digest(`base64`)}`],d=new this.options.WebSocket(null,void 0,this.options);if(n.size){let e=this.options.handleProtocols?this.options.handleProtocols(n,r):n.values().next().value;e&&(u.push(`Sec-WebSocket-Protocol: ${e}`),d._protocol=e)}if(e[c.extensionName]){let t=e[c.extensionName].params,n=s.format({[c.extensionName]:[t]});u.push(`Sec-WebSocket-Extensions: ${n}`),d._extensions=e}this.emit(`headers`,u,r),i.write(u.concat(`\r
|
|
29
|
-
`).
|
|
30
|
-
`)),i.removeListener(`error`,_),d.setSocket(i,a,{allowSynchronousEvents:this.options.allowSynchronousEvents,maxBufferedChunks:this.options.maxBufferedChunks,maxFragments:this.options.maxFragments,maxPayload:this.options.maxPayload,skipUTF8Validation:this.options.skipUTF8Validation}),this.clients&&(this.clients.add(d),d.on(`close`,()=>{this.clients.delete(d),this._shouldEmitClose&&!this.clients.size&&process.nextTick(g,this)})),l(d,r)}};function h(e,t){for(let n of Object.keys(t))e.on(n,t[n]);return function(){for(let n of Object.keys(t))e.removeListener(n,t[n])}}function g(e){e._state=2,e.emit(`close`)}function _(){this.destroy()}function v(e,t,n,r){n||=i.STATUS_CODES[t],r={Connection:`close`,"Content-Type":`text/html`,"Content-Length":Buffer.byteLength(n),...r},e.once(`finish`,e.destroy),e.end(`HTTP/1.1 ${t} ${i.STATUS_CODES[t]}\r\n`+Object.keys(r).map(e=>`${e}: ${r[e]}`).join(`\r
|
|
31
|
-
`)+`\r
|
|
32
|
-
\r
|
|
33
|
-
`+n)}function y(e,t,n,r,i,a){if(e.listenerCount(`wsClientError`)){let r=Error(i);Error.captureStackTrace(r,y),e.emit(`wsClientError`,r,n,t)}else v(n,r,i,a)}})),vr=i(((e,t)=>{let n=hr(),r=pr(),i=or(),a=ur(),o=dr(),s=gr(),c=mr(),l=_r();c.createWebSocketStream=n,c.extension=r,c.PerMessageDeflate=i,c.Receiver=a,c.Sender=o,c.Server=l,c.subprotocol=s,c.WebSocket=c,c.WebSocketServer=l,t.exports=c})),yr=i(((e,t,n)=>{var r=n&&n.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),i=n&&n.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),a=n&&n.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(t){if(t&&t.__esModule)return t;var n={};if(t!=null)for(var a=e(t),o=0;o<a.length;o++)a[o]!=="default"&&r(n,t,a[o]);return i(n,t),n}})();Object.defineProperty(e,"__esModule",{value:!0}),e.SlackWebSocket=e.WS_READY_STATES=void 0;let o=vr(),s=Oe(),c=a(Ae());e.WS_READY_STATES=[`CONNECTING`,`OPEN`,`CLOSING`,`CLOSED`];var l=class t{constructor({url:e,client:n,httpAgent:r,logger:i,logLevel:a=c.LogLevel.INFO,pingInterval:o=5e3,pingPongLoggingEnabled:s=!1,serverPingTimeoutMS:l=3e4,clientPingTimeoutMS:u=5e3}){this.options={url:e,client:n,httpAgent:r,logLevel:a,pingInterval:o,pingPongLoggingEnabled:s,serverPingTimeoutMS:l,clientPingTimeoutMS:u},this.logger=i||c.default.getLogger(t.loggerName,a),this.websocket=null,this.closeFrameReceived=!1}connect(){this.logger.debug(`Initiating new WebSocket connection.`);let e={perMessageDeflate:!1,agent:this.options.httpAgent};this.websocket=new o.WebSocket(this.options.url,e),this.websocket.addEventListener(`open`,e=>{this.logger.debug(`WebSocket open event received (connection established)!`),this.monitorPingToSlack()}),this.websocket.addEventListener(`error`,e=>{this.logger.error(`WebSocket error occurred: ${e.message}`),this.disconnect(),this.options.client.emit(`error`,(0,s.websocketErrorWithOriginal)(e.error))}),this.websocket.on(`message`,(e,t)=>{this.options.client.emit(`ws_message`,e,t)}),this.websocket.on(`close`,(e,t)=>{this.logger.debug(`WebSocket close frame received (code: ${e}, reason: ${t.toString()})`),this.closeFrameReceived=!0,this.disconnect()}),this.websocket.on(`ping`,e=>{this.options.pingPongLoggingEnabled&&this.logger.debug(`WebSocket received ping from Slack server (data: ${e.toString()})`),this.monitorPingFromSlack()}),this.websocket.on(`pong`,e=>{this.options.pingPongLoggingEnabled&&this.logger.debug(`WebSocket received pong from Slack server (data: ${e.toString()})`),this.lastPongReceivedTimestamp=Date.now()})}disconnect(){this.websocket?this.closeFrameReceived?(this.logger.debug(`Terminating WebSocket (close frame received).`),this.terminate()):this.websocket.readyState===o.WebSocket.CLOSING?(this.logger.debug(`Terminating WebSocket (close frame sent but no response, force-terminating).`),this.terminate()):(this.logger.debug(`Sending close frame (status=1000).`),this.websocket.close(1e3)):(this.logger.debug(`WebSocket already disconnected, flushing remainder.`),this.terminate())}terminate(){var e,t;(e=this.websocket)==null||e.removeAllListeners(),(t=this.websocket)==null||t.terminate(),this.websocket=null,clearTimeout(this.serverPingTimeout),clearInterval(this.clientPingTimeout),this.options.client.emit(`close`)}isActive(){return this.websocket?(this.logger.debug(`isActive(): websocket ready state is ${e.WS_READY_STATES[this.websocket.readyState]}`),this.websocket.readyState===1):(this.logger.debug(`isActive(): websocket not instantiated!`),!1)}get readyState(){return this.websocket?.readyState}send(e,t){var n;(n=this.websocket)==null||n.send(e,t)}monitorPingFromSlack(){clearTimeout(this.serverPingTimeout),this.serverPingTimeout=setTimeout(()=>{this.logger.warn(`A ping wasn't received from the server before the timeout of ${this.options.serverPingTimeoutMS}ms!`),this.disconnect()},this.options.serverPingTimeoutMS)}monitorPingToSlack(){this.lastPongReceivedTimestamp=void 0;let e=0;clearInterval(this.clientPingTimeout),this.clientPingTimeout=setInterval(()=>{var t;let n=Date.now();try{let r=`Ping from client (${n})`;(t=this.websocket)==null||t.ping(r),this.lastPongReceivedTimestamp===void 0?e+=1:e=0,this.options.pingPongLoggingEnabled&&this.logger.debug(`Sent ping to Slack: ${r}`)}catch(e){this.logger.error(`Failed to send ping to Slack (error: ${e})`),this.disconnect();return}let r=e>3;this.lastPongReceivedTimestamp!==void 0&&(r=n-this.lastPongReceivedTimestamp>this.options.clientPingTimeoutMS),r&&(this.logger.warn(`A pong wasn't received from the server before the timeout of ${this.options.clientPingTimeoutMS}ms!`),this.disconnect())},this.options.clientPingTimeoutMS/3),this.logger.debug(`Started monitoring pings to and pongs from Slack.`)}};e.SlackWebSocket=l,l.loggerName=`SlackWebSocket`})),br=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.UnrecoverableSocketModeStartError=void 0;var t;(function(e){e.NotAuthed=`not_authed`,e.InvalidAuth=`invalid_auth`,e.AccountInactive=`account_inactive`,e.UserRemovedFromTeam=`user_removed_from_team`,e.TeamDisabled=`team_disabled`})(t||(e.UnrecoverableSocketModeStartError=t={}))})),xr=i(((e,t,n)=>{var r=n&&n.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),i=n&&n.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),a=n&&n.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(t){if(t&&t.__esModule)return t;var n={};if(t!=null)for(var a=e(t),o=0;o<a.length;o++)a[o]!=="default"&&r(n,t,a[o]);return i(n,t),n}})(),o=n&&n.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.SocketModeClient=void 0;let s=$n(),c=fn(),l=o(er()),u=Oe(),d=a(Ae()),f=yr(),p=br();var m;(function(e){e.Connecting=`connecting`,e.Connected=`connected`,e.Reconnecting=`reconnecting`,e.Disconnecting=`disconnecting`,e.Disconnected=`disconnected`,e.Authenticated=`authenticated`})(m||={});var h=class e extends c.EventEmitter{constructor({logger:t=void 0,logLevel:n=void 0,autoReconnectEnabled:r=!0,pingPongLoggingEnabled:i=!1,clientPingTimeout:a=5e3,serverPingTimeout:o=3e4,appToken:c=``,clientOptions:l={}}={appToken:``}){if(super(),this.numOfConsecutiveReconnectionFailures=0,this.customLoggerProvided=!1,this.shuttingDown=!1,!c)throw Error(`Must provide an App-Level Token when initializing a Socket Mode Client`);this.pingPongLoggingEnabled=i,this.clientPingTimeoutMS=a,this.serverPingTimeoutMS=o,t===void 0?this.logger=d.default.getLogger(e.loggerName,n??d.LogLevel.INFO,t):(this.customLoggerProvided=!0,this.logger=t,n!==void 0&&this.logger.debug(`The logLevel given to Socket Mode was ignored as you also gave logger`)),this.webClientOptions=l,this.webClientOptions.retryConfig===void 0&&(this.webClientOptions.retryConfig={retries:100,factor:1.3}),this.webClient=new s.WebClient(``,Object.assign({logger:t,logLevel:this.logger.getLevel(),headers:{Authorization:`Bearer ${c}`}},l)),this.autoReconnectEnabled=r,this.on(`error`,e=>{this.logger.error(`WebSocket error! ${e}`)}),this.on(`close`,()=>{!this.shuttingDown&&this.autoReconnectEnabled?this.delayReconnectAttempt(this.start):this.emit(m.Disconnected)}),this.on(`ws_message`,this.onWebSocketMessage.bind(this)),this.logger.debug(`The Socket Mode client has successfully initialized`)}async start(){return this.shuttingDown=!1,this.logger.debug(`Starting Socket Mode session ...`),this.websocket=new f.SlackWebSocket({url:await this.retrieveWSSURL(),client:this,logLevel:this.logger.getLevel(),logger:this.customLoggerProvided?this.logger:void 0,httpAgent:this.webClientOptions.agent,clientPingTimeoutMS:this.clientPingTimeoutMS,serverPingTimeoutMS:this.serverPingTimeoutMS,pingPongLoggingEnabled:this.pingPongLoggingEnabled}),new Promise((e,t)=>{var n;let r=e=>{},i=e=>{};r=t=>{this.removeListener(m.Disconnected,i),e(t)},i=e=>{this.removeListener(m.Connected,r),t(e)},this.once(m.Connected,r),this.once(m.Disconnected,i),this.emit(m.Connecting),(n=this.websocket)==null||n.connect()})}disconnect(){return this.shuttingDown=!0,this.logger.debug(`Manually disconnecting this Socket Mode client`),this.emit(m.Disconnecting),new Promise((e,t)=>{var n;this.websocket?(this.once(m.Disconnected,e),(n=this.websocket)==null||n.disconnect()):(this.emit(m.Disconnected),e())})}delayReconnectAttempt(e){this.numOfConsecutiveReconnectionFailures+=1;let t=this.clientPingTimeoutMS*this.numOfConsecutiveReconnectionFailures;return this.logger.debug(`Before trying to reconnect, this client will wait for ${t} milliseconds`),new Promise((n,r)=>{setTimeout(()=>{this.shuttingDown?this.logger.debug(`Client shutting down, will not attempt reconnect.`):(this.logger.debug(`Continuing with reconnect...`),this.emit(m.Reconnecting),e.apply(this).then(n))},t)})}async retrieveWSSURL(){try{this.logger.debug(`Going to retrieve a new WSS URL ...`);let e=await this.webClient.apps.connections.open({});if(!e.url){let t=`apps.connections.open did not return a URL! (response: ${e})`;throw this.logger.error(t),Error(t)}return this.numOfConsecutiveReconnectionFailures=0,this.emit(m.Authenticated,e),e.url}catch(e){this.logger.error(`Failed to retrieve a new WSS URL (error: ${e})`);let t=e,n=!0;if((t.code===s.ErrorCode.PlatformError&&Object.values(p.UnrecoverableSocketModeStartError).includes(t.data.error)||t.code===s.ErrorCode.RequestError||t.code===s.ErrorCode.HTTPError)&&(n=!1),this.autoReconnectEnabled&&n)return await this.delayReconnectAttempt(this.retrieveWSSURL);throw e}}async onWebSocketMessage(e,t){var n;if(t){this.logger.debug(`Unexpected binary message received, ignoring.`);return}let r=e.toString();this.logger.debug(`Received a message on the WebSocket: ${r}`);let i;try{i=JSON.parse(r)}catch(e){this.logger.debug(`Unable to parse an incoming WebSocket message (will ignore): ${e}, ${r}`);return}if(i.type===`hello`){this.emit(m.Connected);return}if(i.type===`disconnect`){this.logger.debug(`Received "${i.type}" (${i.reason}) message - disconnecting.${this.autoReconnectEnabled?` Will reconnect.`:``}`),(n=this.websocket)==null||n.disconnect();return}let a=async e=>{this.logger.getLevel()===d.LogLevel.DEBUG&&this.logger.debug(`Calling ack() - type: ${i.type}, envelope_id: ${i.envelope_id}, data: ${JSON.stringify(e)}`),await this.send(i.envelope_id,e)};i.type===`events_api`?this.emit(i.payload.event.type,{ack:a,envelope_id:i.envelope_id,body:i.payload,event:i.payload.event,retry_num:i.retry_attempt,retry_reason:i.retry_reason,accepts_response_payload:i.accepts_response_payload}):this.emit(i.type,{ack:a,envelope_id:i.envelope_id,body:i.payload,accepts_response_payload:i.accepts_response_payload}),this.emit(`slack_event`,{ack:a,envelope_id:i.envelope_id,type:i.type,body:i.payload,retry_num:i.retry_attempt,retry_reason:i.retry_reason,accepts_response_payload:i.accepts_response_payload})}send(e,t={}){let n={envelope_id:e,payload:Object.assign({},typeof t==`string`?{text:t}:t)};return new Promise((e,t)=>{let r=this.websocket?.readyState;if(this.logger.debug(`send() method was called (WebSocket state: ${r?f.WS_READY_STATES[r]:`uninitialized`})`),this.websocket===void 0)this.logger.error(`Failed to send a message as the client is not connected`),t((0,u.sendWhileDisconnectedError)());else if(!this.websocket.isActive())this.logger.error(`Failed to send a message as the client has no active connection`),t((0,u.sendWhileNotReadyError)());else{this.emit(`outgoing_message`,n);let r=JSON.stringify(n);this.logger.debug(`Sending a WebSocket message: ${r}`),this.websocket.send(r,n=>n?(this.logger.error(`Failed to send a WebSocket message (error: ${n})`),t((0,u.websocketErrorWithOriginal)(n))):e())}})}};e.SocketModeClient=h,h.loggerName=`SocketModeClient`,(0,s.addAppMetadata)({name:l.default.name,version:l.default.version}),e.default=h})),Sr=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.UnrecoverableSocketModeStartError=e.SocketModeClient=e.LogLevel=e.ErrorCode=void 0;var t=Oe();Object.defineProperty(e,"ErrorCode",{enumerable:!0,get:function(){return t.ErrorCode}});var n=Ae();Object.defineProperty(e,"LogLevel",{enumerable:!0,get:function(){return n.LogLevel}});var r=xr();Object.defineProperty(e,"SocketModeClient",{enumerable:!0,get:function(){return r.SocketModeClient}});var i=br();Object.defineProperty(e,"UnrecoverableSocketModeStartError",{enumerable:!0,get:function(){return i.UnrecoverableSocketModeStartError}})}))(),Cr=$n(),wr=`slack#/types/channel_id`,Tr=`slack#/types/canvas_id`,Er=`slack#/types/list_id`,Dr=`slack#/types/message_context`;function Or(e){let t=e?.entities;return t?t.map(e=>{let t={teamId:e.team_id,enterpriseId:e.enterprise_id};if(e.type===wr)return{...t,kind:`channel`,channelId:e.value};if(e.type===Tr)return{...t,kind:`canvas`,canvasId:e.value};if(e.type===Er)return{...t,kind:`list`,listId:e.value};if(e.type===Dr){let n=e.value;if(n&&typeof n.message_ts==`string`&&typeof n.channel_id==`string`)return{...t,kind:`message`,messageTs:n.message_ts,channelId:n.channel_id}}return{...t,kind:`unknown`,type:e.type,value:e.value}}):[]}function kr(e){let t=e.raw?.app_context;return t?Or(t):[]}var Z=N(`slack`);function Ar(e){let t=[];e.title&&t.push({type:`header`,text:{type:`plain_text`,text:ei(Z(e.title),Kr),emoji:!0}}),e.subtitle&&t.push({type:`context`,elements:[{type:`mrkdwn`,text:ti(Z(e.subtitle),Xr)}]}),e.imageUrl&&t.push({type:`image`,image_url:e.imageUrl,alt_text:e.title?ei(e.title,Zr):`Card image`});let n={usedNativeTable:!1,chartCount:0};for(let r of e.children){let e=jr(r,n);t.push(...e)}return t}function jr(e,t){switch(e.type){case`text`:return[Mr(e)];case`image`:return[Pr(e)];case`divider`:return[Fr(e)];case`actions`:return[Ir(e)];case`section`:return bi(e,t);case`fields`:return[xi(e)];case`link`:return[Nr(e)];case`table`:return ui(e,t);case`chart`:return[_i(e,t)];case`text_input`:return[{type:`section`,text:{type:`mrkdwn`,text:ti(S(Z(e.label)),Jr)}}];default:{let t=V(e);return t?[{type:`section`,text:{type:`mrkdwn`,text:ti(t,Jr)}}]:[]}}}function Mr(e){let t=y(Z(e.content));return e.style===`muted`?{type:`context`,elements:[{type:`mrkdwn`,text:ti(t,Xr)}]}:{type:`section`,text:{type:`mrkdwn`,text:e.style===`bold`?`*${ti(t,Jr-2)}*`:ti(t,Jr)}}}function Nr(e){let t=Jr-e.url.length-3,n=ti(Z(e.label),t);return{type:`section`,text:{type:`mrkdwn`,text:`<${e.url}|${n}>`}}}function Pr(e){return{type:`image`,image_url:e.url,alt_text:e.alt?ei(e.alt,Zr):`Image`}}function Fr(e){return{type:`divider`}}function Ir(e){return{type:`actions`,elements:e.children.map(e=>e.type===`link-button`?Rr(e):e.type===`select`?zr(e):e.type===`radio_select`?Br(e):Lr(e))}}function Lr(e){let t={type:`button`,text:{type:`plain_text`,text:ei(Z(e.label),qr),emoji:!0},action_id:e.id};e.value&&(t.value=e.value);let n=O(e.style,`slack`);return n&&(t.style=n),e.visibleTo?.length&&(t.visible_to_user_ids=e.visibleTo),t}function Rr(e){let t={type:`button`,text:{type:`plain_text`,text:ei(Z(e.label),qr),emoji:!0},action_id:e.id??`link-${e.url.slice(0,200)}`,url:e.url},n=O(e.style,`slack`);return n&&(t.style=n),e.visibleTo?.length&&(t.visible_to_user_ids=e.visibleTo),t}function zr(e){let t=e.options.map(e=>{let t={text:{type:`plain_text`,text:ei(Z(e.label),Qr)},value:e.value};return e.description&&(t.description={type:`plain_text`,text:ei(Z(e.description),Qr)}),t}),n={type:`static_select`,action_id:e.id,options:t};if(e.placeholder&&(n.placeholder={type:`plain_text`,text:ei(Z(e.placeholder),$r)}),e.initialOption){let r=t.find(t=>t.value===e.initialOption);r&&(n.initial_option=r)}return n}function Br(e){let t=e.options.slice(0,10).map(e=>{let t={text:{type:`mrkdwn`,text:ti(Z(e.label),Qr)},value:e.value};return e.description&&(t.description={type:`mrkdwn`,text:ti(Z(e.description),Qr)}),t}),n={type:`radio_buttons`,action_id:e.id,options:t};if(e.initialOption){let r=t.find(t=>t.value===e.initialOption);r&&(n.initial_option=r)}return n}var Vr=`…`,Hr="```",Ur=/```/g,Wr=/<(?:[@#!]|[a-z][a-z\d+.-]*(?::|$))[^>]*$/i,Gr=/&(?:lt?|gt?|a(?:mp?)?)?$/,Kr=150,qr=75,Jr=3e3,Yr=2e3,Xr=3e3,Zr=2e3,Qr=75,$r=150;function ei(e,t){if(e.length<=t)return e;if(t<=0)return``;let n=t-Vr.length,r=e.charCodeAt(n-1);return n>0&&r>=55296&&r<=56319&&--n,`${e.slice(0,n)}${Vr}`}function ti(e,t){if(e.length<=t||t<=0)return ei(e,t);let n=ni(e,t),r=`
|
|
34
|
-
${Hr}`;if(!ri(n)||t<=r.length+Vr.length)return`${n}${Vr}`;let i=ni(e,t-r.length);return ri(i)?`${i}${Vr}${r}`:`${i}${Vr}`}function ni(e,t){return ei(e,t).slice(0,-Vr.length).replace(Gr,``).replace(Wr,``)}function ri(e){return(e.match(Ur)?.length??0)%2==1}function ii(e){let t=e=>`${Hr}
|
|
27
|
+
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`}function x(e){return`filename supplied '${e}' may be missing a proper extension. Missing extenions may result in unexpected unfurl behavior when shared`}function S(e){return`${e} may cause some issues like timeouts for relatively large files.`}function C(){return`Our latest recommendation is to use client.files.uploadV2() method, which is mostly compatible and much stabler, instead.`}function w(){return`Something went wrong with processing file_uploads`}function T(){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').`}function E(){return`Sharing files with multiple channels is no longer supported in v2. Share files in each channel separately instead.`}function D(){return`You may supply file_uploads only for a single channel, message, or thread respectively. Therefore, please supply any channel_id, initial_comment or blocks, or thread_ts in the top-layer.`}})),yn=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(e){return new Promise(t=>{setTimeout(t,e)})}})),bn=i(((e,t)=>{var n=Object.prototype.hasOwnProperty,r=`~`;function i(){}Object.create&&(i.prototype=Object.create(null),new i().__proto__||(r=!1));function a(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function o(e,t,n,i,o){if(typeof n!=`function`)throw TypeError(`The listener must be a function`);var s=new a(n,i||e,o),c=r?r+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=s,e._eventsCount++),e}function s(e,t){--e._eventsCount===0?e._events=new i:delete e._events[t]}function c(){this._events=new i,this._eventsCount=0}c.prototype.eventNames=function(){var e=[],t,i;if(this._eventsCount===0)return e;for(i in t=this._events)n.call(t,i)&&e.push(r?i.slice(1):i);return Object.getOwnPropertySymbols?e.concat(Object.getOwnPropertySymbols(t)):e},c.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,a=n.length,o=Array(a);i<a;i++)o[i]=n[i].fn;return o},c.prototype.listenerCount=function(e){var t=r?r+e:e,n=this._events[t];return n?n.fn?1:n.length:0},c.prototype.emit=function(e,t,n,i,a,o){var s=r?r+e:e;if(!this._events[s])return!1;var c=this._events[s],l=arguments.length,u,d;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),l){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,n),!0;case 4:return c.fn.call(c.context,t,n,i),!0;case 5:return c.fn.call(c.context,t,n,i,a),!0;case 6:return c.fn.call(c.context,t,n,i,a,o),!0}for(d=1,u=Array(l-1);d<l;d++)u[d-1]=arguments[d];c.fn.apply(c.context,u)}else{var f=c.length,p;for(d=0;d<f;d++)switch(c[d].once&&this.removeListener(e,c[d].fn,void 0,!0),l){case 1:c[d].fn.call(c[d].context);break;case 2:c[d].fn.call(c[d].context,t);break;case 3:c[d].fn.call(c[d].context,t,n);break;case 4:c[d].fn.call(c[d].context,t,n,i);break;default:if(!u)for(p=1,u=Array(l-1);p<l;p++)u[p-1]=arguments[p];c[d].fn.apply(c[d].context,u)}}return!0},c.prototype.on=function(e,t,n){return o(this,e,t,n,!1)},c.prototype.once=function(e,t,n){return o(this,e,t,n,!0)},c.prototype.removeListener=function(e,t,n,i){var a=r?r+e:e;if(!this._events[a])return this;if(!t)return s(this,a),this;var o=this._events[a];if(o.fn)o.fn!==t||i&&!o.once||n&&o.context!==n||s(this,a);else{for(var c=0,l=[],u=o.length;c<u;c++)(o[c].fn!==t||i&&!o[c].once||n&&o[c].context!==n)&&l.push(o[c]);l.length?this._events[a]=l.length===1?l[0]:l:s(this,a)}return this},c.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&s(this,t)):(this._events=new i,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=r,c.EventEmitter=c,t!==void 0&&(t.exports=c)})),xn=i((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),Sn=i((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),Cn=i((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),wn=i((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),Tn=i((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),En=i((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),Dn=i((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),On=i((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),kn=i((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),An=i((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),jn=i((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),Mn=i((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),Nn=i((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),Pn=i((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),Fn=i((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),In=i((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),Ln=i((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),Rn=i((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),zn=i((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),Bn=i((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),Vn=i((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),Hn=i((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),Un=i((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),Wn=i((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),Gn=i((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),Kn=i((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),qn=i((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),Jn=i((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),Yn=i((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),Xn=i((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),Zn=i((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),Qn=i((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),$n=i((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),er=i(((e,t,n)=>{var r=n&&n.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),i=n&&n.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&r(t,e,n)};Object.defineProperty(e,"__esModule",{value:!0}),i(On(),e),i(kn(),e),i(An(),e),i(jn(),e),i(Mn(),e),i(Nn(),e),i(Pn(),e),i(Fn(),e),i(In(),e),i(Ln(),e),i(Rn(),e),i(zn(),e),i(Bn(),e),i(Vn(),e),i(Hn(),e),i(Un(),e),i(Wn(),e),i(Gn(),e),i(Kn(),e),i(qn(),e),i(Jn(),e),i(Yn(),e),i(Xn(),e),i(Zn(),e),i(Qn(),e),i($n(),e)})),tr=i((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),nr=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.CustomFieldType=e.EntityType=void 0;var t;(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`})(t||(e.EntityType=t={}));var n;(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`})(n||(e.CustomFieldType=n={}))})),rr=i((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),ir=i(((e,t,n)=>{var r=n&&n.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),i=n&&n.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&r(t,e,n)};Object.defineProperty(e,"__esModule",{value:!0}),i(xn(),e),i(Sn(),e),i(Cn(),e),i(wn(),e),i(Tn(),e),i(En(),e),i(Dn(),e),i(er(),e),i(tr(),e),i(nr(),e),i(rr(),e)})),ar=i(((e,t,n)=>{var r=n&&n.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),i=n&&n.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&r(t,e,n)};Object.defineProperty(e,"__esModule",{value:!0}),e.Methods=void 0;let a=bn(),o=or();function s(e,t){return e.apiCall.bind(e,t)}function c(e,t){return e.apiCall.bind(e,t)}function l(e){return e.filesUploadV2.bind(e)}e.Methods=class extends a.EventEmitter{constructor(){if(super(),this.admin={analytics:{getFile:s(this,`admin.analytics.getFile`)},apps:{activities:{list:c(this,`admin.apps.activities.list`)},approve:s(this,`admin.apps.approve`),approved:{list:s(this,`admin.apps.approved.list`)},clearResolution:s(this,`admin.apps.clearResolution`),config:{lookup:s(this,`admin.apps.config.lookup`),set:s(this,`admin.apps.config.set`)},requests:{cancel:s(this,`admin.apps.requests.cancel`),list:s(this,`admin.apps.requests.list`)},restrict:s(this,`admin.apps.restrict`),restricted:{list:s(this,`admin.apps.restricted.list`)},uninstall:s(this,`admin.apps.uninstall`)},auth:{policy:{assignEntities:s(this,`admin.auth.policy.assignEntities`),getEntities:s(this,`admin.auth.policy.getEntities`),removeEntities:s(this,`admin.auth.policy.removeEntities`)}},barriers:{create:s(this,`admin.barriers.create`),delete:s(this,`admin.barriers.delete`),list:c(this,`admin.barriers.list`),update:s(this,`admin.barriers.update`)},conversations:{archive:s(this,`admin.conversations.archive`),bulkArchive:s(this,`admin.conversations.bulkArchive`),bulkDelete:s(this,`admin.conversations.bulkDelete`),bulkMove:s(this,`admin.conversations.bulkMove`),convertToPrivate:s(this,`admin.conversations.convertToPrivate`),convertToPublic:s(this,`admin.conversations.convertToPublic`),create:s(this,`admin.conversations.create`),delete:s(this,`admin.conversations.delete`),disconnectShared:s(this,`admin.conversations.disconnectShared`),ekm:{listOriginalConnectedChannelInfo:c(this,`admin.conversations.ekm.listOriginalConnectedChannelInfo`)},getConversationPrefs:s(this,`admin.conversations.getConversationPrefs`),getCustomRetention:s(this,`admin.conversations.getCustomRetention`),getTeams:s(this,`admin.conversations.getTeams`),invite:s(this,`admin.conversations.invite`),lookup:s(this,`admin.conversations.lookup`),removeCustomRetention:s(this,`admin.conversations.removeCustomRetention`),rename:s(this,`admin.conversations.rename`),restrictAccess:{addGroup:s(this,`admin.conversations.restrictAccess.addGroup`),listGroups:s(this,`admin.conversations.restrictAccess.listGroups`),removeGroup:s(this,`admin.conversations.restrictAccess.removeGroup`)},search:c(this,`admin.conversations.search`),setConversationPrefs:s(this,`admin.conversations.setConversationPrefs`),setCustomRetention:s(this,`admin.conversations.setCustomRetention`),setTeams:s(this,`admin.conversations.setTeams`),unarchive:s(this,`admin.conversations.unarchive`)},emoji:{add:s(this,`admin.emoji.add`),addAlias:s(this,`admin.emoji.addAlias`),list:c(this,`admin.emoji.list`),remove:s(this,`admin.emoji.remove`),rename:s(this,`admin.emoji.rename`)},functions:{list:s(this,`admin.functions.list`),permissions:{lookup:s(this,`admin.functions.permissions.lookup`),set:s(this,`admin.functions.permissions.set`)}},inviteRequests:{approve:s(this,`admin.inviteRequests.approve`),approved:{list:s(this,`admin.inviteRequests.approved.list`)},denied:{list:s(this,`admin.inviteRequests.denied.list`)},deny:s(this,`admin.inviteRequests.deny`),list:s(this,`admin.inviteRequests.list`)},roles:{addAssignments:s(this,`admin.roles.addAssignments`),listAssignments:c(this,`admin.roles.listAssignments`),removeAssignments:s(this,`admin.roles.removeAssignments`)},teams:{admins:{list:s(this,`admin.teams.admins.list`)},create:s(this,`admin.teams.create`),list:c(this,`admin.teams.list`),owners:{list:s(this,`admin.teams.owners.list`)},settings:{info:s(this,`admin.teams.settings.info`),setDefaultChannels:s(this,`admin.teams.settings.setDefaultChannels`),setDescription:s(this,`admin.teams.settings.setDescription`),setDiscoverability:s(this,`admin.teams.settings.setDiscoverability`),setIcon:s(this,`admin.teams.settings.setIcon`),setName:s(this,`admin.teams.settings.setName`)}},usergroups:{addChannels:s(this,`admin.usergroups.addChannels`),addTeams:s(this,`admin.usergroups.addTeams`),listChannels:s(this,`admin.usergroups.listChannels`),removeChannels:s(this,`admin.usergroups.removeChannels`)},users:{assign:s(this,`admin.users.assign`),invite:s(this,`admin.users.invite`),list:c(this,`admin.users.list`),remove:s(this,`admin.users.remove`),session:{clearSettings:s(this,`admin.users.session.clearSettings`),getSettings:s(this,`admin.users.session.getSettings`),invalidate:s(this,`admin.users.session.invalidate`),list:c(this,`admin.users.session.list`),reset:s(this,`admin.users.session.reset`),resetBulk:s(this,`admin.users.session.resetBulk`),setSettings:s(this,`admin.users.session.setSettings`)},setAdmin:s(this,`admin.users.setAdmin`),setExpiration:s(this,`admin.users.setExpiration`),setOwner:s(this,`admin.users.setOwner`),setRegular:s(this,`admin.users.setRegular`),unsupportedVersions:{export:s(this,`admin.users.unsupportedVersions.export`)}},workflows:{collaborators:{add:s(this,`admin.workflows.collaborators.add`),remove:s(this,`admin.workflows.collaborators.remove`)},permissions:{lookup:s(this,`admin.workflows.permissions.lookup`)},search:c(this,`admin.workflows.search`),unpublish:s(this,`admin.workflows.unpublish`)}},this.api={test:c(this,`api.test`)},this.assistant={threads:{setStatus:s(this,`assistant.threads.setStatus`),setSuggestedPrompts:s(this,`assistant.threads.setSuggestedPrompts`),setTitle:s(this,`assistant.threads.setTitle`)}},this.apps={connections:{open:c(this,`apps.connections.open`)},event:{authorizations:{list:s(this,`apps.event.authorizations.list`)}},manifest:{create:s(this,`apps.manifest.create`),delete:s(this,`apps.manifest.delete`),export:s(this,`apps.manifest.export`),update:s(this,`apps.manifest.update`),validate:s(this,`apps.manifest.validate`)},uninstall:s(this,`apps.uninstall`),user:{connection:{update:s(this,`apps.user.connection.update`)}}},this.auth={revoke:c(this,`auth.revoke`),teams:{list:c(this,`auth.teams.list`)},test:c(this,`auth.test`)},this.bookmarks={add:s(this,`bookmarks.add`),edit:s(this,`bookmarks.edit`),list:s(this,`bookmarks.list`),remove:s(this,`bookmarks.remove`)},this.bots={info:c(this,`bots.info`)},this.calls={add:s(this,`calls.add`),end:s(this,`calls.end`),info:s(this,`calls.info`),update:s(this,`calls.update`),participants:{add:s(this,`calls.participants.add`),remove:s(this,`calls.participants.remove`)}},this.canvases={access:{delete:s(this,`canvases.access.delete`),set:s(this,`canvases.access.set`)},create:c(this,`canvases.create`),delete:s(this,`canvases.delete`),edit:s(this,`canvases.edit`),sections:{lookup:s(this,`canvases.sections.lookup`)}},this.chat={appendStream:s(this,`chat.appendStream`),delete:s(this,`chat.delete`),deleteScheduledMessage:s(this,`chat.deleteScheduledMessage`),getPermalink:s(this,`chat.getPermalink`),meMessage:s(this,`chat.meMessage`),postEphemeral:s(this,`chat.postEphemeral`),postMessage:s(this,`chat.postMessage`),scheduleMessage:s(this,`chat.scheduleMessage`),scheduledMessages:{list:c(this,`chat.scheduledMessages.list`)},startStream:s(this,`chat.startStream`),stopStream:s(this,`chat.stopStream`),unfurl:s(this,`chat.unfurl`),update:s(this,`chat.update`)},this.conversations={acceptSharedInvite:s(this,`conversations.acceptSharedInvite`),approveSharedInvite:s(this,`conversations.approveSharedInvite`),archive:s(this,`conversations.archive`),canvases:{create:s(this,`conversations.canvases.create`)},close:s(this,`conversations.close`),create:s(this,`conversations.create`),declineSharedInvite:s(this,`conversations.declineSharedInvite`),externalInvitePermissions:{set:s(this,`conversations.externalInvitePermissions.set`)},history:s(this,`conversations.history`),info:s(this,`conversations.info`),invite:s(this,`conversations.invite`),inviteShared:s(this,`conversations.inviteShared`),join:s(this,`conversations.join`),kick:s(this,`conversations.kick`),leave:s(this,`conversations.leave`),list:c(this,`conversations.list`),listConnectInvites:c(this,`conversations.listConnectInvites`),mark:s(this,`conversations.mark`),members:s(this,`conversations.members`),open:s(this,`conversations.open`),rename:s(this,`conversations.rename`),replies:s(this,`conversations.replies`),requestSharedInvite:{approve:s(this,`conversations.requestSharedInvite.approve`),deny:s(this,`conversations.requestSharedInvite.deny`),list:c(this,`conversations.requestSharedInvite.list`)},setPurpose:s(this,`conversations.setPurpose`),setTopic:s(this,`conversations.setTopic`),unarchive:s(this,`conversations.unarchive`)},this.dialog={open:s(this,`dialog.open`)},this.dnd={endDnd:c(this,`dnd.endDnd`),endSnooze:c(this,`dnd.endSnooze`),info:c(this,`dnd.info`),setSnooze:s(this,`dnd.setSnooze`),teamInfo:s(this,`dnd.teamInfo`)},this.emoji={list:c(this,`emoji.list`)},this.entity={presentDetails:s(this,`entity.presentDetails`)},this.files={completeUploadExternal:s(this,`files.completeUploadExternal`),delete:s(this,`files.delete`),getUploadURLExternal:s(this,`files.getUploadURLExternal`),info:s(this,`files.info`),list:s(this,`files.list`),revokePublicURL:s(this,`files.revokePublicURL`),sharedPublicURL:s(this,`files.sharedPublicURL`),upload:s(this,`files.upload`),uploadV2:l(this),comments:{delete:s(this,`files.comments.delete`)},remote:{add:s(this,`files.remote.add`),info:s(this,`files.remote.info`),list:s(this,`files.remote.list`),remove:s(this,`files.remote.remove`),share:s(this,`files.remote.share`),update:s(this,`files.remote.update`)}},this.functions={completeError:s(this,`functions.completeError`),completeSuccess:s(this,`functions.completeSuccess`)},this.migration={exchange:s(this,`migration.exchange`)},this.oauth={access:s(this,`oauth.access`),v2:{access:s(this,`oauth.v2.access`),exchange:s(this,`oauth.v2.exchange`)}},this.openid={connect:{token:s(this,`openid.connect.token`),userInfo:c(this,`openid.connect.userInfo`)}},this.pins={add:s(this,`pins.add`),list:s(this,`pins.list`),remove:s(this,`pins.remove`)},this.reactions={add:s(this,`reactions.add`),get:s(this,`reactions.get`),list:c(this,`reactions.list`),remove:s(this,`reactions.remove`)},this.reminders={add:s(this,`reminders.add`),complete:s(this,`reminders.complete`),delete:s(this,`reminders.delete`),info:s(this,`reminders.info`),list:c(this,`reminders.list`)},this.rtm={connect:c(this,`rtm.connect`),start:c(this,`rtm.start`)},this.search={all:s(this,`search.all`),files:s(this,`search.files`),messages:s(this,`search.messages`)},this.slackLists={access:{delete:s(this,`slackLists.access.delete`),set:s(this,`slackLists.access.set`)},create:s(this,`slackLists.create`),download:{get:s(this,`slackLists.download.get`),start:s(this,`slackLists.download.start`)},items:{create:s(this,`slackLists.items.create`),delete:s(this,`slackLists.items.delete`),deleteMultiple:s(this,`slackLists.items.deleteMultiple`),info:s(this,`slackLists.items.info`),list:s(this,`slackLists.items.list`),update:s(this,`slackLists.items.update`)},update:s(this,`slackLists.update`)},this.team={accessLogs:c(this,`team.accessLogs`),billableInfo:c(this,`team.billableInfo`),billing:{info:s(this,`team.billing.info`)},externalTeams:{disconnect:s(this,`team.externalTeams.disconnect`),list:s(this,`team.externalTeams.list`)},info:c(this,`team.info`),integrationLogs:c(this,`team.integrationLogs`),preferences:{list:c(this,`team.preferences.list`)},profile:{get:c(this,`team.profile.get`)}},this.tooling={tokens:{rotate:s(this,`tooling.tokens.rotate`)}},this.usergroups={create:s(this,`usergroups.create`),disable:s(this,`usergroups.disable`),enable:s(this,`usergroups.enable`),list:c(this,`usergroups.list`),update:s(this,`usergroups.update`),users:{list:s(this,`usergroups.users.list`),update:s(this,`usergroups.users.update`)}},this.users={conversations:s(this,`users.conversations`),deletePhoto:s(this,`users.deletePhoto`),discoverableContacts:{lookup:s(this,`users.discoverableContacts.lookup`)},getPresence:s(this,`users.getPresence`),identity:s(this,`users.identity`),info:s(this,`users.info`),list:s(this,`users.list`),lookupByEmail:s(this,`users.lookupByEmail`),setPhoto:s(this,`users.setPhoto`),setPresence:s(this,`users.setPresence`),profile:{get:s(this,`users.profile.get`),set:s(this,`users.profile.set`)}},this.views={open:s(this,`views.open`),publish:s(this,`views.publish`),push:s(this,`views.push`),update:s(this,`views.update`)},this.stars={add:s(this,`stars.add`),list:s(this,`stars.list`),remove:s(this,`stars.remove`)},this.workflows={featured:{add:s(this,`workflows.featured.add`),list:s(this,`workflows.featured.list`),remove:s(this,`workflows.featured.remove`),set:s(this,`workflows.featured.set`)},stepCompleted:s(this,`workflows.stepCompleted`),stepFailed:s(this,`workflows.stepFailed`),updateStep:s(this,`workflows.updateStep`)},new.target!==o.WebClient&&!(new.target.prototype instanceof o.WebClient))throw Error(`Attempt to inherit from WebClient methods without inheriting from WebClient`)}},i(ir(),e)})),or=i(((e,n,r)=>{var i=r&&r.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),a=r&&r.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),o=r&&r.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(t){if(t&&t.__esModule)return t;var n={};if(t!=null)for(var r=e(t),o=0;o<r.length;o++)r[o]!=="default"&&i(n,t,r[o]);return a(n,t),n}})(),s=r&&r.__await||function(e){return this instanceof s?(this.v=e,this):new s(e)},c=r&&r.__asyncGenerator||function(e,t,n){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var r=n.apply(e,t||[]),i,a=[];return i=Object.create((typeof AsyncIterator==`function`?AsyncIterator:Object).prototype),c(`next`),c(`throw`),c(`return`,o),i[Symbol.asyncIterator]=function(){return this},i;function o(e){return function(t){return Promise.resolve(t).then(e,f)}}function c(e,t){r[e]&&(i[e]=function(t){return new Promise(function(n,r){a.push([e,t,n,r])>1||l(e,t)})},t&&(i[e]=t(i[e])))}function l(e,t){try{u(r[e](t))}catch(e){p(a[0][3],e)}}function u(e){e.value instanceof s?Promise.resolve(e.value.v).then(d,f):p(a[0][2],e)}function d(e){l(`next`,e)}function f(e){l(`throw`,e)}function p(e,t){e(t),a.shift(),a.length&&l(a[0][0],a[0][1])}},l=r&&r.__asyncValues||function(e){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof __values==`function`?__values(e):e[Symbol.iterator](),n={},r(`next`),r(`throw`),r(`return`),n[Symbol.asyncIterator]=function(){return this},n);function r(t){n[t]=e[t]&&function(n){return new Promise(function(r,a){n=e[t](n),i(r,a,n.done,n.value)})}}function i(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}},u=r&&r.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},d=r&&r.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.WebClient=e.WebClientEvent=void 0,e.buildThreadTsWarningMessage=B;let f=t(`node:path`),p=t(`node:querystring`),m=t(`node:util`),h=d(t(`node:zlib`)),g=d(ln()),_=d(Ht()),v=d(un()),y=d(z()),b=d(gn()),x=o(_n()),S=Ge(),C=ze(),w=vn(),T=d(yn()),E=Ve(),D=He(),O=ar(),k=Ue(),A=[`delete`,`common`,`get`,`put`,`head`,`post`,`link`,`patch`,`purge`,`unlink`,`options`],j=()=>void 0;var M;(function(e){e.RATE_LIMITED=`rate_limited`})(M||(e.WebClientEvent=M={}));var N=class e extends O.Methods{constructor(t,{slackApiUrl:n=`https://slack.com/api/`,logger:r=void 0,logLevel:i=void 0,maxRequestConcurrency:a=100,retryConfig:o=k.tenRetriesInAboutThirtyMinutes,agent:s=void 0,tls:c=void 0,timeout:l=0,rejectRateLimitedCalls:u=!1,headers:d={},teamId:f=void 0,allowAbsoluteUrls:p=!0,attachOriginalToWebAPIRequestError:m=!0,requestInterceptor:h=void 0,adapter:_=void 0}={}){super(),this.token=t,this.slackApiUrl=n,this.slackApiUrl.endsWith(`/`)||(this.slackApiUrl+=`/`),this.retryConfig=o,this.requestQueue=new b.default({concurrency:a}),this.tlsConfig=c===void 0?{}:c,this.rejectRateLimitedCalls=u,this.teamId=f,this.allowAbsoluteUrls=p,this.attachOriginalToWebAPIRequestError=m,r===void 0?this.logger=(0,D.getLogger)(e.loggerName,i??D.LogLevel.INFO,r):(this.logger=r,i!==void 0&&this.logger.debug(`The logLevel given to WebClient was ignored as you also gave logger`)),this.token&&!d.Authorization&&(d.Authorization=`Bearer ${this.token}`),this.axios=g.default.create({adapter:_?e=>_(Object.assign(Object.assign({},e),{adapter:void 0})):void 0,timeout:l,baseURL:this.slackApiUrl,headers:(0,v.default)()?d:Object.assign({"User-Agent":(0,E.getUserAgent)()},d),httpAgent:s,httpsAgent:s,validateStatus:()=>!0,maxRedirects:0,proxy:!1}),this.axios.defaults.headers.post[`Content-Type`]=void 0,h&&this.axios.interceptors.request.use(h,null),this.axios.interceptors.request.use(this.serializeApiCallData.bind(this),null),this.logger.debug(`initialized`)}async apiCall(e,t={}){if(this.logger.debug(`apiCall('${e}') start`),I(e,this.logger),L(e,this.logger,t),R(e,this.logger,t),typeof t==`string`||typeof t==`number`||typeof t==`boolean`)throw TypeError(`Expected an options argument but instead received a ${typeof t}`);if((0,w.warnIfNotUsingFilesUploadV2)(e,this.logger),e===`files.uploadV2`)return this.filesUploadV2(t);let n={};t.token&&(n.Authorization=`Bearer ${t.token}`);let r=this.deriveRequestUrl(e),i=await this.makeRequest(r,Object.assign({team_id:this.teamId},t),n),a=await this.buildResult(i);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 e of a.response_metadata.messages){let t=/\[ERROR\](.*)/,n=/\[WARN\](.*)/;if(t.test(e)){let n=e.match(t);n!=null&&this.logger.error(n[1].trim())}else if(n.test(e)){let t=e.match(n);t!=null&&this.logger.warn(t[1].trim())}}if(!a.ok&&i.headers[`content-type`]!==`application/gzip`||`ok`in a&&a.ok===!1)throw(0,C.platformErrorFromResult)(a);return this.logger.debug(`apiCall('${e}') end`),a}paginate(e,t,n,r){let i=(()=>{if(t!==void 0&&typeof t.limit==`number`){let{limit:e}=t;return t.limit=void 0,e}return 200})();function a(){return c(this,arguments,function*(){let n,r={limit:i};for(t!==void 0&&t.cursor!==void 0&&(r.cursor=t.cursor);n===void 0||r!==void 0;)n=yield s(this.apiCall(e,Object.assign(t===void 0?{}:t,r))),yield yield s(n),r=P(n,i)})}if(n===void 0)return a.call(this);let o=r===void 0?j:r,u=0;return(async()=>{var e,t,r,i;let s=a.call(this),c=(await s.next(void 0)).value,d=o(void 0,c,u);if(u+=1,n(c))return d;try{for(var f=!0,p=l(s),m;m=await p.next(),e=m.done,!e;f=!0){i=m.value,f=!1;let e=i;if(d=o(d,e,u),n(e))return d;u+=1}}catch(e){t={error:e}}finally{try{!f&&!e&&(r=p.return)&&await r.call(p)}finally{if(t)throw t.error}}return d})()}chatStream(e){let{buffer_size:t}=e,n=u(e,[`buffer_size`]),r={buffer_size:t};return new S.ChatStreamer(this,this.logger,n,r)}async filesUploadV2(e){this.logger.debug(`files.uploadV2() start`);let t=await this.getAllFileUploads(e);return(await this.fetchAllUploadURLExternal(t)).forEach((e,n)=>{t[n].upload_url=e.upload_url,t[n].file_id=e.file_id}),await this.postFileUploadsToExternalURL(t,e),{ok:!0,files:await this.completeFileUploads(t)}}async fetchAllUploadURLExternal(e){return Promise.all(e.map(e=>{let t={filename:e.filename,length:e.length,alt_text:e.alt_text,snippet_type:e.snippet_type};return`token`in e&&(t.token=e.token),this.files.getUploadURLExternal(t)}))}async completeFileUploads(e){let t=Object.values((0,w.getAllFileUploadsToComplete)(e));return Promise.all(t.map(e=>this.files.completeUploadExternal(e)))}async postFileUploadsToExternalURL(e,t){return Promise.all(e.map(async e=>{let{upload_url:n,file_id:r,filename:i,data:a}=e,o=a;if(n){let e={};t.token&&(e.Authorization=`Bearer ${t.token}`);let a=await this.makeRequest(n,{body:o},e);if(a.status!==200)return Promise.reject(Error(`Failed to upload file (id:${r}, filename: ${i})`));let s={ok:!0,body:a.data};return Promise.resolve(s)}return Promise.reject(Error(`No upload url found for file (id: ${r}, filename: ${i}`))}))}async getAllFileUploads(e){let t=[];return(`file`in e||`content`in e)&&t.push(await(0,w.getFileUploadJob)(e,this.logger)),`file_uploads`in e&&(t=t.concat(await(0,w.getMultipleFileUploadJobs)(e,this.logger))),t}async makeRequest(e,t,n={}){return(0,x.default)(()=>this.requestQueue.add(async()=>{try{let r=Object.assign({headers:n},this.tlsConfig);e.endsWith(`admin.analytics.getFile`)&&(r.responseType=`arraybuffer`),e.endsWith(`apps.event.authorizations.list`)&&(t.token=void 0),this.logger.debug(`http request url: ${e}`),this.logger.debug(`http request body: ${JSON.stringify(V(t))}`);let i=Object.keys(this.axios.defaults.headers).reduce((e,t)=>(A.includes(t)||(e[t]=this.axios.defaults.headers[t]),e),{});i=Object.assign(Object.assign(Object.assign({},this.axios.defaults.headers.common),i),n),this.logger.debug(`http request headers: ${JSON.stringify(V(i))}`);let a=await this.axios.post(e,t,r);if(this.logger.debug(`http response received`),a.status===429){let n=F(a);throw n===void 0?new x.AbortError(Error(`Retry header did not contain a valid timeout (url: ${e}, retry-after header: ${a.headers[`retry-after`]})`)):(this.emit(M.RATE_LIMITED,n,{url:e,body:t}),this.rejectRateLimitedCalls?new x.AbortError((0,C.rateLimitedErrorWithDelay)(n)):(this.logger.info(`API Call failed due to rate limiting. Will retry in ${n} seconds.`),this.requestQueue.pause(),await(0,T.default)(n*1e3),this.requestQueue.start(),Error(`A rate limit was exceeded (url: ${e}, retry-after: ${n})`)))}if(a.status!==200)throw(0,C.httpErrorFromResponse)(a);return a}catch(e){let t=e;throw this.logger.warn(`http request failed`,t.message),t.request?(0,C.requestErrorWithOriginal)(t,this.attachOriginalToWebAPIRequestError):e}}),this.retryConfig)}deriveRequestUrl(e){return(e.startsWith(`https://`)||e.startsWith(`http://`))&&this.allowAbsoluteUrls?e:`${this.axios.getUri()+e}`}serializeApiCallData(e){let{data:t,headers:n}=e,r=!1,i=Object.entries(t).map(([e,t])=>{if(t==null)return[];let n=t;return Buffer.isBuffer(t)||(0,y.default)(t)?r=!0:typeof t!=`string`&&typeof t!=`number`&&typeof t!=`boolean`&&(n=JSON.stringify(t)),[e,n]});if(r){this.logger.debug(`Request arguments contain binary data`);let t=i.reduce((e,[t,n])=>{if(Buffer.isBuffer(n)||(0,y.default)(n)){let r={};r.filename=(()=>{let e=n;return typeof e.name==`string`?(0,f.basename)(e.name):typeof e.path==`string`?(0,f.basename)(e.path):`Untitled`})(),e.append(t,n,r)}else t!==void 0&&n!==void 0&&e.append(t,n);return e},new _.default);if(n)for(let[e,r]of Object.entries(t.getHeaders()))n[e]=r;return e.data=t,e.headers=n,e}return n&&(n[`Content-Type`]=`application/x-www-form-urlencoded`),e.data=(0,p.stringify)(i.reduce((e,[t,n])=>(t!==void 0&&n!==void 0&&(e[t]=n),e),{})),e.headers=n,e}async buildResult(e){let{data:t}=e,n=e.headers[`content-type`]===`application/gzip`;if(n)try{let e=await new Promise((e,n)=>{h.default.unzip(t,(t,r)=>t?n(t):e(r.toString().split(`
|
|
28
|
+
`)))}).then(e=>e).catch(e=>{throw e}),n=[];if(Array.isArray(e))for(let t of e)t&&t.length>0&&n.push(JSON.parse(t));t={file_data:n}}catch(e){t={ok:!1,error:e}}else!n&&e.request.path===`/api/admin.analytics.getFile`&&(t=JSON.parse(new m.TextDecoder().decode(t)));if(typeof t==`string`)try{t=JSON.parse(t)}catch{t={ok:!1,error:t}}t.response_metadata===void 0&&(t.response_metadata={}),e.headers[`x-oauth-scopes`]!==void 0&&(t.response_metadata.scopes=e.headers[`x-oauth-scopes`].trim().split(/\s*,\s*/)),e.headers[`x-accepted-oauth-scopes`]!==void 0&&(t.response_metadata.acceptedScopes=e.headers[`x-accepted-oauth-scopes`].trim().split(/\s*,\s*/));let r=F(e);return r!==void 0&&(t.response_metadata.retryAfter=r),t}};e.WebClient=N,N.loggerName=`WebClient`,e.default=N;function P(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}}function F(e){if(e.headers[`retry-after`]!==void 0){let t=Number.parseInt(e.headers[`retry-after`],10);if(!Number.isNaN(t))return t}}function I(e,t){[`workflows.stepCompleted`,`workflows.stepFailed`,`workflows.updateStep`].some(t=>RegExp(`^${t}`).test(e))&&t.warn(`${e} is deprecated. Please check on https://docs.slack.dev/reference/methods for an alternative.`)}function L(e,t,n){let r=[`chat.postEphemeral`,`chat.postMessage`,`chat.scheduleMessage`].includes(e),i=e=>Array.isArray(e.attachments)&&e.attachments.length,a=e=>Array.isArray(e.attachments)&&e.attachments.some(e=>!e.fallback||e.fallback.trim()===``),o=e=>(e.text===void 0||e.text===null||e.text===``)&&(e.markdown_text===void 0||e.markdown===null||e.markdown_text===``),s=()=>`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.`;r&&typeof n==`object`&&(i(n)?a(n)&&o(n)&&(t.warn(s()),t.warn(`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://docs.slack.dev/legacy/legacy-messaging/legacy-secondary-message-attachments for more details).`)):o(n)&&t.warn(s()))}function R(e,t,n){[`chat.postEphemeral`,`chat.postMessage`,`chat.scheduleMessage`,`files.upload`].includes(e)&&n?.thread_ts!==void 0&&typeof n?.thread_ts!=`string`&&t.warn(B(e))}function B(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.`}function V(e){return Object.entries(e).map(([e,t])=>{if(t==null)return[];let n=t;return(e.match(/.*token.*/)!==null||e.match(/[Aa]uthorization/))&&(n=`[[REDACTED]]`),Buffer.isBuffer(t)||(0,y.default)(t)?n=`[[BINARY VALUE OMITTED]]`:typeof t!=`string`&&typeof t!=`number`&&typeof t!=`boolean`&&(n=JSON.stringify(t)),[e,n]}).reduce((e,[t,n])=>(t!==void 0&&n!==void 0&&(e[t]=n),e),{})}})),sr=i(((e,t,n)=>{var r=n&&n.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),i=n&&n.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&r(t,e,n)},a=n&&n.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.WebClientEvent=e.WebClient=e.ChatStreamer=e.retryPolicies=e.LogLevel=e.addAppMetadata=e.ErrorCode=void 0;var o=ze();Object.defineProperty(e,"ErrorCode",{enumerable:!0,get:function(){return o.ErrorCode}});var s=Ve();Object.defineProperty(e,"addAppMetadata",{enumerable:!0,get:function(){return s.addAppMetadata}});var c=He();Object.defineProperty(e,"LogLevel",{enumerable:!0,get:function(){return c.LogLevel}});var l=Ue();Object.defineProperty(e,"retryPolicies",{enumerable:!0,get:function(){return a(l).default}}),i(We(),e),i(K(),e);var u=Ge();Object.defineProperty(e,"ChatStreamer",{enumerable:!0,get:function(){return u.ChatStreamer}});var d=or();Object.defineProperty(e,"WebClient",{enumerable:!0,get:function(){return d.WebClient}}),Object.defineProperty(e,"WebClientEvent",{enumerable:!0,get:function(){return d.WebClientEvent}}),i(ar(),e)})),cr=i(((e,t)=>{t.exports={name:`@slack/socket-mode`,version:`2.0.7`,description:`Official library for using the Slack Platform's Socket Mode API`,author:`Slack Technologies, LLC`,license:`MIT`,keywords:[`slack`,`socket`,`websocket`,`firewall`,`bot`,`client`,`http`,`websocket`,`api`,`proxy`,`state`,`connection`],main:`dist/src/index.js`,types:`./dist/src/index.d.ts`,files:[`dist/**/*`],engines:{node:`>= 18`,npm:`>= 8.6.0`},repository:{type:`git`,url:`git+https://github.com/slackapi/node-slack-sdk.git`},homepage:`https://docs.slack.dev/tools/node-slack-sdk/socket-mode/`,publishConfig:{access:`public`},bugs:{url:`https://github.com/slackapi/node-slack-sdk/issues`},scripts:{build:`npm run build:clean && tsc`,"build:clean":`shx rm -rf ./dist`,docs:`npx typedoc --plugin typedoc-plugin-markdown`,prepack:`npm run build`,test:`npm run test:unit && npm run test:integration`,"test:node18":`npm run build && bash -c 'node --test --test-reporter=spec --import tsx src/*.test.ts' && npm run test:integration`,"test:integration":`npm run build && node --import tsx --test test/integration.test.js`,"test:unit":`npm run build && node --experimental-test-coverage --test-reporter=spec --test-reporter-destination=stdout --test-reporter=lcov --test-reporter-destination=lcov.info --test-reporter=junit --test-reporter-destination=test-results.xml --import tsx --test src/*.test.ts`,watch:`npx nodemon --watch 'src' --ext 'ts' --exec npm test`},dependencies:{"@slack/logger":`^4.0.1`,"@slack/web-api":`^7.15.0`,"@types/node":`>=18`,"@types/ws":`^8`,eventemitter3:`^5`,ws:`^8`},devDependencies:{"@types/proxyquire":`^1.3.31`,"@types/sinon":`^21`,nodemon:`^3.1.0`,proxyquire:`^2.1.3`,sinon:`^21`}}})),lr=i(((e,t)=>{let n=te(),r=V(),i=H(),a=ne(),o=ee(),s=W(),c=U(),l=re();c.createWebSocketStream=n,c.extension=r,c.PerMessageDeflate=i,c.Receiver=a,c.Sender=o,c.Server=l,c.subprotocol=s,c.WebSocket=c,c.WebSocketServer=l,t.exports=c})),ur=i(((e,t,n)=>{var r=n&&n.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),i=n&&n.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),a=n&&n.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(t){if(t&&t.__esModule)return t;var n={};if(t!=null)for(var a=e(t),o=0;o<a.length;o++)a[o]!=="default"&&r(n,t,a[o]);return i(n,t),n}})();Object.defineProperty(e,"__esModule",{value:!0}),e.SlackWebSocket=e.WS_READY_STATES=void 0;let o=lr(),s=Ie(),c=a(Re());e.WS_READY_STATES=[`CONNECTING`,`OPEN`,`CLOSING`,`CLOSED`];var l=class t{constructor({url:e,client:n,httpAgent:r,logger:i,logLevel:a=c.LogLevel.INFO,pingInterval:o=5e3,pingPongLoggingEnabled:s=!1,serverPingTimeoutMS:l=3e4,clientPingTimeoutMS:u=5e3}){this.options={url:e,client:n,httpAgent:r,logLevel:a,pingInterval:o,pingPongLoggingEnabled:s,serverPingTimeoutMS:l,clientPingTimeoutMS:u},this.logger=i||c.default.getLogger(t.loggerName,a),this.websocket=null,this.closeFrameReceived=!1}connect(){this.logger.debug(`Initiating new WebSocket connection.`);let e={perMessageDeflate:!1,agent:this.options.httpAgent};this.websocket=new o.WebSocket(this.options.url,e),this.websocket.addEventListener(`open`,e=>{this.logger.debug(`WebSocket open event received (connection established)!`),this.monitorPingToSlack()}),this.websocket.addEventListener(`error`,e=>{this.logger.error(`WebSocket error occurred: ${e.message}`),this.disconnect(),this.options.client.emit(`error`,(0,s.websocketErrorWithOriginal)(e.error))}),this.websocket.on(`message`,(e,t)=>{this.options.client.emit(`ws_message`,e,t)}),this.websocket.on(`close`,(e,t)=>{this.logger.debug(`WebSocket close frame received (code: ${e}, reason: ${t.toString()})`),this.closeFrameReceived=!0,this.disconnect()}),this.websocket.on(`ping`,e=>{this.options.pingPongLoggingEnabled&&this.logger.debug(`WebSocket received ping from Slack server (data: ${e.toString()})`),this.monitorPingFromSlack()}),this.websocket.on(`pong`,e=>{this.options.pingPongLoggingEnabled&&this.logger.debug(`WebSocket received pong from Slack server (data: ${e.toString()})`),this.lastPongReceivedTimestamp=Date.now()})}disconnect(){this.websocket?this.closeFrameReceived?(this.logger.debug(`Terminating WebSocket (close frame received).`),this.terminate()):this.websocket.readyState===o.WebSocket.CLOSING?(this.logger.debug(`Terminating WebSocket (close frame sent but no response, force-terminating).`),this.terminate()):(this.logger.debug(`Sending close frame (status=1000).`),this.websocket.close(1e3)):(this.logger.debug(`WebSocket already disconnected, flushing remainder.`),this.terminate())}terminate(){var e,t;(e=this.websocket)==null||e.removeAllListeners(),(t=this.websocket)==null||t.terminate(),this.websocket=null,clearTimeout(this.serverPingTimeout),clearInterval(this.clientPingTimeout),this.options.client.emit(`close`)}isActive(){return this.websocket?(this.logger.debug(`isActive(): websocket ready state is ${e.WS_READY_STATES[this.websocket.readyState]}`),this.websocket.readyState===1):(this.logger.debug(`isActive(): websocket not instantiated!`),!1)}get readyState(){return this.websocket?.readyState}send(e,t){var n;(n=this.websocket)==null||n.send(e,t)}monitorPingFromSlack(){clearTimeout(this.serverPingTimeout),this.serverPingTimeout=setTimeout(()=>{this.logger.warn(`A ping wasn't received from the server before the timeout of ${this.options.serverPingTimeoutMS}ms!`),this.disconnect()},this.options.serverPingTimeoutMS)}monitorPingToSlack(){this.lastPongReceivedTimestamp=void 0;let e=0;clearInterval(this.clientPingTimeout),this.clientPingTimeout=setInterval(()=>{var t;let n=Date.now();try{let r=`Ping from client (${n})`;(t=this.websocket)==null||t.ping(r),this.lastPongReceivedTimestamp===void 0?e+=1:e=0,this.options.pingPongLoggingEnabled&&this.logger.debug(`Sent ping to Slack: ${r}`)}catch(e){this.logger.error(`Failed to send ping to Slack (error: ${e})`),this.disconnect();return}let r=e>3;this.lastPongReceivedTimestamp!==void 0&&(r=n-this.lastPongReceivedTimestamp>this.options.clientPingTimeoutMS),r&&(this.logger.warn(`A pong wasn't received from the server before the timeout of ${this.options.clientPingTimeoutMS}ms!`),this.disconnect())},this.options.clientPingTimeoutMS/3),this.logger.debug(`Started monitoring pings to and pongs from Slack.`)}};e.SlackWebSocket=l,l.loggerName=`SlackWebSocket`})),dr=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.UnrecoverableSocketModeStartError=void 0;var t;(function(e){e.NotAuthed=`not_authed`,e.InvalidAuth=`invalid_auth`,e.AccountInactive=`account_inactive`,e.UserRemovedFromTeam=`user_removed_from_team`,e.TeamDisabled=`team_disabled`})(t||(e.UnrecoverableSocketModeStartError=t={}))})),fr=i(((e,t,n)=>{var r=n&&n.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),i=n&&n.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),a=n&&n.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(t){if(t&&t.__esModule)return t;var n={};if(t!=null)for(var a=e(t),o=0;o<a.length;o++)a[o]!=="default"&&r(n,t,a[o]);return i(n,t),n}})(),o=n&&n.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.SocketModeClient=void 0;let s=sr(),c=bn(),l=o(cr()),u=Ie(),d=a(Re()),f=ur(),p=dr();var m;(function(e){e.Connecting=`connecting`,e.Connected=`connected`,e.Reconnecting=`reconnecting`,e.Disconnecting=`disconnecting`,e.Disconnected=`disconnected`,e.Authenticated=`authenticated`})(m||={});var h=class e extends c.EventEmitter{constructor({logger:t=void 0,logLevel:n=void 0,autoReconnectEnabled:r=!0,pingPongLoggingEnabled:i=!1,clientPingTimeout:a=5e3,serverPingTimeout:o=3e4,appToken:c=``,clientOptions:l={}}={appToken:``}){if(super(),this.numOfConsecutiveReconnectionFailures=0,this.customLoggerProvided=!1,this.shuttingDown=!1,!c)throw Error(`Must provide an App-Level Token when initializing a Socket Mode Client`);this.pingPongLoggingEnabled=i,this.clientPingTimeoutMS=a,this.serverPingTimeoutMS=o,t===void 0?this.logger=d.default.getLogger(e.loggerName,n??d.LogLevel.INFO,t):(this.customLoggerProvided=!0,this.logger=t,n!==void 0&&this.logger.debug(`The logLevel given to Socket Mode was ignored as you also gave logger`)),this.webClientOptions=l,this.webClientOptions.retryConfig===void 0&&(this.webClientOptions.retryConfig={retries:100,factor:1.3}),this.webClient=new s.WebClient(``,Object.assign({logger:t,logLevel:this.logger.getLevel(),headers:{Authorization:`Bearer ${c}`}},l)),this.autoReconnectEnabled=r,this.on(`error`,e=>{this.logger.error(`WebSocket error! ${e}`)}),this.on(`close`,()=>{!this.shuttingDown&&this.autoReconnectEnabled?this.delayReconnectAttempt(this.start):this.emit(m.Disconnected)}),this.on(`ws_message`,this.onWebSocketMessage.bind(this)),this.logger.debug(`The Socket Mode client has successfully initialized`)}async start(){return this.shuttingDown=!1,this.logger.debug(`Starting Socket Mode session ...`),this.websocket=new f.SlackWebSocket({url:await this.retrieveWSSURL(),client:this,logLevel:this.logger.getLevel(),logger:this.customLoggerProvided?this.logger:void 0,httpAgent:this.webClientOptions.agent,clientPingTimeoutMS:this.clientPingTimeoutMS,serverPingTimeoutMS:this.serverPingTimeoutMS,pingPongLoggingEnabled:this.pingPongLoggingEnabled}),new Promise((e,t)=>{var n;let r=e=>{},i=e=>{};r=t=>{this.removeListener(m.Disconnected,i),e(t)},i=e=>{this.removeListener(m.Connected,r),t(e)},this.once(m.Connected,r),this.once(m.Disconnected,i),this.emit(m.Connecting),(n=this.websocket)==null||n.connect()})}disconnect(){return this.shuttingDown=!0,this.logger.debug(`Manually disconnecting this Socket Mode client`),this.emit(m.Disconnecting),new Promise((e,t)=>{var n;this.websocket?(this.once(m.Disconnected,e),(n=this.websocket)==null||n.disconnect()):(this.emit(m.Disconnected),e())})}delayReconnectAttempt(e){this.numOfConsecutiveReconnectionFailures+=1;let t=this.clientPingTimeoutMS*this.numOfConsecutiveReconnectionFailures;return this.logger.debug(`Before trying to reconnect, this client will wait for ${t} milliseconds`),new Promise((n,r)=>{setTimeout(()=>{this.shuttingDown?this.logger.debug(`Client shutting down, will not attempt reconnect.`):(this.logger.debug(`Continuing with reconnect...`),this.emit(m.Reconnecting),e.apply(this).then(n))},t)})}async retrieveWSSURL(){try{this.logger.debug(`Going to retrieve a new WSS URL ...`);let e=await this.webClient.apps.connections.open({});if(!e.url){let t=`apps.connections.open did not return a URL! (response: ${e})`;throw this.logger.error(t),Error(t)}return this.numOfConsecutiveReconnectionFailures=0,this.emit(m.Authenticated,e),e.url}catch(e){this.logger.error(`Failed to retrieve a new WSS URL (error: ${e})`);let t=e,n=!0;if((t.code===s.ErrorCode.PlatformError&&Object.values(p.UnrecoverableSocketModeStartError).includes(t.data.error)||t.code===s.ErrorCode.RequestError||t.code===s.ErrorCode.HTTPError)&&(n=!1),this.autoReconnectEnabled&&n)return await this.delayReconnectAttempt(this.retrieveWSSURL);throw e}}async onWebSocketMessage(e,t){var n;if(t){this.logger.debug(`Unexpected binary message received, ignoring.`);return}let r=e.toString();this.logger.debug(`Received a message on the WebSocket: ${r}`);let i;try{i=JSON.parse(r)}catch(e){this.logger.debug(`Unable to parse an incoming WebSocket message (will ignore): ${e}, ${r}`);return}if(i.type===`hello`){this.emit(m.Connected);return}if(i.type===`disconnect`){this.logger.debug(`Received "${i.type}" (${i.reason}) message - disconnecting.${this.autoReconnectEnabled?` Will reconnect.`:``}`),(n=this.websocket)==null||n.disconnect();return}let a=async e=>{this.logger.getLevel()===d.LogLevel.DEBUG&&this.logger.debug(`Calling ack() - type: ${i.type}, envelope_id: ${i.envelope_id}, data: ${JSON.stringify(e)}`),await this.send(i.envelope_id,e)};i.type===`events_api`?this.emit(i.payload.event.type,{ack:a,envelope_id:i.envelope_id,body:i.payload,event:i.payload.event,retry_num:i.retry_attempt,retry_reason:i.retry_reason,accepts_response_payload:i.accepts_response_payload}):this.emit(i.type,{ack:a,envelope_id:i.envelope_id,body:i.payload,accepts_response_payload:i.accepts_response_payload}),this.emit(`slack_event`,{ack:a,envelope_id:i.envelope_id,type:i.type,body:i.payload,retry_num:i.retry_attempt,retry_reason:i.retry_reason,accepts_response_payload:i.accepts_response_payload})}send(e,t={}){let n={envelope_id:e,payload:Object.assign({},typeof t==`string`?{text:t}:t)};return new Promise((e,t)=>{let r=this.websocket?.readyState;if(this.logger.debug(`send() method was called (WebSocket state: ${r?f.WS_READY_STATES[r]:`uninitialized`})`),this.websocket===void 0)this.logger.error(`Failed to send a message as the client is not connected`),t((0,u.sendWhileDisconnectedError)());else if(!this.websocket.isActive())this.logger.error(`Failed to send a message as the client has no active connection`),t((0,u.sendWhileNotReadyError)());else{this.emit(`outgoing_message`,n);let r=JSON.stringify(n);this.logger.debug(`Sending a WebSocket message: ${r}`),this.websocket.send(r,n=>n?(this.logger.error(`Failed to send a WebSocket message (error: ${n})`),t((0,u.websocketErrorWithOriginal)(n))):e())}})}};e.SocketModeClient=h,h.loggerName=`SocketModeClient`,(0,s.addAppMetadata)({name:l.default.name,version:l.default.version}),e.default=h})),pr=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.UnrecoverableSocketModeStartError=e.SocketModeClient=e.LogLevel=e.ErrorCode=void 0;var t=Ie();Object.defineProperty(e,"ErrorCode",{enumerable:!0,get:function(){return t.ErrorCode}});var n=Re();Object.defineProperty(e,"LogLevel",{enumerable:!0,get:function(){return n.LogLevel}});var r=fr();Object.defineProperty(e,"SocketModeClient",{enumerable:!0,get:function(){return r.SocketModeClient}});var i=dr();Object.defineProperty(e,"UnrecoverableSocketModeStartError",{enumerable:!0,get:function(){return i.UnrecoverableSocketModeStartError}})}))(),mr=sr(),hr=`slack#/types/channel_id`,gr=`slack#/types/canvas_id`,_r=`slack#/types/list_id`,vr=`slack#/types/message_context`;function yr(e){let t=e?.entities;return t?t.map(e=>{let t={teamId:e.team_id,enterpriseId:e.enterprise_id};if(e.type===hr)return{...t,kind:`channel`,channelId:e.value};if(e.type===gr)return{...t,kind:`canvas`,canvasId:e.value};if(e.type===_r)return{...t,kind:`list`,listId:e.value};if(e.type===vr){let n=e.value;if(n&&typeof n.message_ts==`string`&&typeof n.channel_id==`string`)return{...t,kind:`message`,messageTs:n.message_ts,channelId:n.channel_id}}return{...t,kind:`unknown`,type:e.type,value:e.value}}):[]}function br(e){let t=e.raw?.app_context;return t?yr(t):[]}var Z=N(`slack`);function xr(e){let t=[];e.title&&t.push({type:`header`,text:{type:`plain_text`,text:Gr(Z(e.title),Lr),emoji:!0}}),e.subtitle&&t.push({type:`context`,elements:[{type:`mrkdwn`,text:Kr(Z(e.subtitle),Vr)}]}),e.imageUrl&&t.push({type:`image`,image_url:e.imageUrl,alt_text:e.title?Gr(e.title,Hr):`Card image`});let n={usedNativeTable:!1,chartCount:0};for(let r of e.children){let e=Sr(r,n);t.push(...e)}return t}function Sr(e,t){switch(e.type){case`text`:return[Cr(e)];case`image`:return[Tr(e)];case`divider`:return[Er(e)];case`actions`:return[Dr(e)];case`section`:return di(e,t);case`fields`:return[fi(e)];case`link`:return[wr(e)];case`table`:return ti(e,t);case`chart`:return[ci(e,t)];case`text_input`:return[{type:`section`,text:{type:`mrkdwn`,text:Kr(S(Z(e.label)),zr)}}];default:{let t=ie(e);return t?[{type:`section`,text:{type:`mrkdwn`,text:Kr(t,zr)}}]:[]}}}function Cr(e){let t=y(Z(e.content));return e.style===`muted`?{type:`context`,elements:[{type:`mrkdwn`,text:Kr(t,Vr)}]}:{type:`section`,text:{type:`mrkdwn`,text:e.style===`bold`?`*${Kr(t,zr-2)}*`:Kr(t,zr)}}}function wr(e){let t=zr-e.url.length-3,n=Kr(Z(e.label),t);return{type:`section`,text:{type:`mrkdwn`,text:`<${e.url}|${n}>`}}}function Tr(e){return{type:`image`,image_url:e.url,alt_text:e.alt?Gr(e.alt,Hr):`Image`}}function Er(e){return{type:`divider`}}function Dr(e){return{type:`actions`,elements:e.children.map(e=>e.type===`link-button`?kr(e):e.type===`select`?Ar(e):e.type===`radio_select`?jr(e):Or(e))}}function Or(e){let t={type:`button`,text:{type:`plain_text`,text:Gr(Z(e.label),Rr),emoji:!0},action_id:e.id};e.value&&(t.value=e.value);let n=O(e.style,`slack`);return n&&(t.style=n),e.visibleTo?.length&&(t.visible_to_user_ids=e.visibleTo),t}function kr(e){let t={type:`button`,text:{type:`plain_text`,text:Gr(Z(e.label),Rr),emoji:!0},action_id:e.id??`link-${e.url.slice(0,200)}`,url:e.url},n=O(e.style,`slack`);return n&&(t.style=n),e.visibleTo?.length&&(t.visible_to_user_ids=e.visibleTo),t}function Ar(e){let t=e.options.map(e=>{let t={text:{type:`plain_text`,text:Gr(Z(e.label),Ur)},value:e.value};return e.description&&(t.description={type:`plain_text`,text:Gr(Z(e.description),Ur)}),t}),n={type:`static_select`,action_id:e.id,options:t};if(e.placeholder&&(n.placeholder={type:`plain_text`,text:Gr(Z(e.placeholder),Wr)}),e.initialOption){let r=t.find(t=>t.value===e.initialOption);r&&(n.initial_option=r)}return n}function jr(e){let t=e.options.slice(0,10).map(e=>{let t={text:{type:`mrkdwn`,text:Kr(Z(e.label),Ur)},value:e.value};return e.description&&(t.description={type:`mrkdwn`,text:Kr(Z(e.description),Ur)}),t}),n={type:`radio_buttons`,action_id:e.id,options:t};if(e.initialOption){let r=t.find(t=>t.value===e.initialOption);r&&(n.initial_option=r)}return n}var Mr=`…`,Nr="```",Pr=/```/g,Fr=/<(?:[@#!]|[a-z][a-z\d+.-]*(?::|$))[^>]*$/i,Ir=/&(?:lt?|gt?|a(?:mp?)?)?$/,Lr=150,Rr=75,zr=3e3,Br=2e3,Vr=3e3,Hr=2e3,Ur=75,Wr=150;function Gr(e,t){if(e.length<=t)return e;if(t<=0)return``;let n=t-Mr.length,r=e.charCodeAt(n-1);return n>0&&r>=55296&&r<=56319&&--n,`${e.slice(0,n)}${Mr}`}function Kr(e,t){if(e.length<=t||t<=0)return Gr(e,t);let n=qr(e,t),r=`
|
|
29
|
+
${Nr}`;if(!Jr(n)||t<=r.length+Mr.length)return`${n}${Mr}`;let i=qr(e,t-r.length);return Jr(i)?`${i}${Mr}${r}`:`${i}${Mr}`}function qr(e,t){return Gr(e,t).slice(0,-Mr.length).replace(Ir,``).replace(Fr,``)}function Jr(e){return(e.match(Pr)?.length??0)%2==1}function Yr(e){let t=e=>`${Nr}
|
|
35
30
|
${e}
|
|
36
|
-
${
|
|
37
|
-
${o}`})}return{type:`section`,fields:t}}function
|
|
38
|
-
`,platform:`slack`})}var
|
|
39
|
-
`||t===`\r`)return-1}return-1}function
|
|
31
|
+
${Nr}`;return{type:`section`,text:{type:`mrkdwn`,text:t(Gr(e,zr-t(``).length))}}}var Xr=100,Zr=20,Qr=1e4,$r=1,ei=100;function ti(e,t){let n=[e.headers,...e.rows].flat().reduce((e,t)=>e+t.length,0);if(t.usedNativeTable||e.rows.length>Xr||e.headers.length>Zr||n>Qr)return[Yr(ce(e.headers,e.rows))];t.usedNativeTable=!0;let r=e.headers.map(e=>({type:`raw_text`,text:Z(e)||` `})),i=e.rows.map(e=>e.map(e=>({type:`raw_text`,text:Z(e)||` `})));if(i.length===0)return[{type:`table`,rows:[r]}];let a={type:`data_table`,caption:Z(e.caption||`Table`),rows:[r,...i]};return e.pageSize!==void 0&&(a.page_size=Math.min(ei,Math.max($r,Math.floor(e.pageSize)))),[a]}var ni=50,ri=20,ii=12,ai=12,oi=20,si=2;function ci(e,t){let n=t.chartCount<si?li(e):null;return n?(t.chartCount+=1,n):Yr(_e(e))}function li(e){let t=Z(e.title);if(t.length===0||t.length>ni)return null;let{chart:n}=e;if(n.type===`pie`)return n.segments.length>=1&&n.segments.length<=ii&&n.segments.every(e=>ui(e.label)&&e.value>0)?{type:`data_visualization`,title:t,chart:{type:`pie`,segments:n.segments.map(e=>({label:e.label,value:e.value}))}}:null;let{categories:r,series:i}=n;if(!(r.length>=1&&r.length<=oi&&r.every(e=>ui(e))&&new Set(r).size===r.length&&i.length>=1&&i.length<=ai&&i.every(e=>ui(e.name))&&new Set(i.map(e=>e.name)).size===i.length&&(n.xLabel===void 0||n.xLabel.length<=ni)&&(n.yLabel===void 0||n.yLabel.length<=ni)))return null;let a=[];for(let e of i){if(e.data.length!==r.length)return null;let t=new Map(e.data.map(e=>[e.label,e])),n=[];for(let e of r){let r=t.get(e);if(!r)return null;n.push({label:e,value:r.value})}a.push({name:e.name,data:n})}let o={categories:r};return n.xLabel!==void 0&&(o.x_label=n.xLabel),n.yLabel!==void 0&&(o.y_label=n.yLabel),{type:`data_visualization`,title:t,chart:{type:n.type,series:a,axis_config:o}}}function ui(e){return e.length>=1&&e.length<=ri}function di(e,t){let n=[];for(let r of e.children)n.push(...Sr(r,t));return n}function fi(e){let t=[],n=Br-3;for(let r of e.children){let e=y(Z(r.label)),i=y(Z(r.value)),a=Kr(e,n-Math.min(i.length,Math.floor(n/2))),o=Kr(i,n-a.length);t.push({type:`mrkdwn`,text:`*${a}*
|
|
32
|
+
${o}`})}return{type:`section`,fields:t}}function pi(e){return C(e,{boldFormat:`*`,lineBreak:`
|
|
33
|
+
`,platform:`slack`})}var mi=/^[A-Z0-9_]+$/,hi=/^!(here|channel|everyone)(?:\|[^<>]*)?$/,gi=/^!subteam\^([A-Z0-9_]+)(?:\|@?(.+))?$/,_i=/^(?:https?:\/\/|mailto:|tel:)/,vi=/^https?:\/\/[^|]+$/,yi=/^(?:mailto|tel):/;function bi(e,t){for(let n=t+1;n<e.length;n++){let t=e[n];if(t===`>`)return n+1;if(t===`<`||t===`
|
|
34
|
+
`||t===`\r`)return-1}return-1}function xi(e){let t=e.indexOf(`|`),n=t===-1?e:e.slice(0,t),r=t===-1?void 0:e.slice(t+1);if(r===``)return;let i=hi.exec(e);if(i)return`@${i[1]}`;let a=gi.exec(e);return a?`@${a[2]??a[1]}`:n.startsWith(`@`)&&mi.test(n.slice(1))?r===void 0?n:`@${r}`:n.startsWith(`#`)&&mi.test(n.slice(1))?r===void 0?n:`#${r} (${n.slice(1)})`:_i.test(n)?r??n.replace(yi,``):r!==void 0&&vi.test(r)?n:void 0}function Si(e){let t=``,n=0,r=e.indexOf(`<`);for(;r!==-1;){let i=bi(e,r);if(i===-1){r=e.indexOf(`<`,r+1);continue}let a=xi(e.slice(r+1,i-1));a!==void 0&&(t+=e.slice(n,r)+a,n=i),r=e.indexOf(`<`,i)}return x(t+e.slice(n))}var Ci=class extends ge{fromAst(e){return ue(e)}toAst(e){return Se(b(e))}incomingPartsParser(e){return this.exceedsIncomingBudget(e.join(`
|
|
40
35
|
|
|
41
|
-
`))?e=>e.trim()?this.unparsedIncoming(e).formatted:{type:`root`,children:[]}:e=>this.parseIncoming(e).formatted}exceedsIncomingBudget(e){return e.length>this.maxIncomingParseLength||super.exceedsIncomingBudget(b(e))}incomingFallbackText(e){return
|
|
36
|
+
`))?e=>e.trim()?this.unparsedIncoming(e).formatted:{type:`root`,children:[]}:e=>this.parseIncoming(e).formatted}exceedsIncomingBudget(e){return e.length>this.maxIncomingParseLength||super.exceedsIncomingBudget(b(e))}incomingFallbackText(e){return Si(e)}toSlackPayload(e){return typeof e==`string`?{text:this.finalize(e)}:`raw`in e?{text:this.finalize(e.raw)}:`markdown`in e?{markdown_text:this.finalize(e.markdown)}:`ast`in e?{markdown_text:this.finalize(ue(e.ast))}:{text:``}}toResponseUrlText(e){return typeof e==`string`?this.finalize(e):`raw`in e?this.finalize(e.raw):`markdown`in e?xe(this.astToMrkdwn(Se(e.markdown)),`slack`):`ast`in e?xe(this.astToMrkdwn(e.ast),`slack`):``}finalize(e){return xe(wi(e),`slack`)}astToMrkdwn(e){return this.fromAstWithNodeConverter(e,e=>this.nodeToMrkdwn(e))}nodeToMrkdwn(e){if(fe(e))return ve(e).map(e=>this.nodeToMrkdwn(e)).join(``);if(oe(e))return wi(e.value);if(ae(e))return`*${ve(e).map(e=>this.nodeToMrkdwn(e)).join(``)}*`;if(he(e))return`_${ve(e).map(e=>this.nodeToMrkdwn(e)).join(``)}_`;if(ye(e))return`~${ve(e).map(e=>this.nodeToMrkdwn(e)).join(``)}~`;if(Te(e))return`\`${e.value}\``;if(be(e))return`\`\`\`${e.lang||``}
|
|
42
37
|
${e.value}
|
|
43
|
-
\`\`\``;if(
|
|
44
|
-
`):
|
|
45
|
-
`:e.type===`thematicBreak`?`---`:
|
|
46
|
-
${
|
|
47
|
-
\`\`\``:this.defaultNodeToText(e,e=>this.nodeToMrkdwn(e))}};function
|
|
38
|
+
\`\`\``;if(De(e)){let t=ve(e).map(e=>this.nodeToMrkdwn(e)).join(``);return`<${e.url}|${t}>`}return Ce(e)?ve(e).map(e=>`> ${this.nodeToMrkdwn(e)}`).join(`
|
|
39
|
+
`):Ee(e)?this.renderList(e,0,e=>this.nodeToMrkdwn(e),`•`):e.type===`break`?`
|
|
40
|
+
`:e.type===`thematicBreak`?`---`:pe(e)?`\`\`\`
|
|
41
|
+
${G(e)}
|
|
42
|
+
\`\`\``:this.defaultNodeToText(e,e=>this.nodeToMrkdwn(e))}};function wi(e){return v(e,(e,t)=>`<@${t}>`)}function Ti(e){if(e.contextId||e.privateMetadata)return JSON.stringify({c:e.contextId,m:e.privateMetadata})}function Ei(e){if(!e)return{};try{let t=JSON.parse(e);if(typeof t==`object`&&t&&(`c`in t||`m`in t))return{contextId:t.c||void 0,privateMetadata:t.m||void 0}}catch{}return{contextId:e}}function Di(e,t){return{type:`modal`,callback_id:e.callbackId,title:{type:`plain_text`,text:e.title.slice(0,24)},submit:e.submitLabel?{type:`plain_text`,text:e.submitLabel}:{type:`plain_text`,text:`Submit`},close:e.closeLabel?{type:`plain_text`,text:e.closeLabel}:{type:`plain_text`,text:`Cancel`},notify_on_close:e.notifyOnClose,private_metadata:t,blocks:e.children.map(Oi)}}function Oi(e){switch(e.type){case`text_input`:return Ai(e);case`date_input`:return Ni(e);case`number_input`:return Pi(e);case`select`:return Fi(e);case`external_select`:return Ii(e);case`radio_select`:return Li(e);case`text`:return Cr(e);case`fields`:return fi(e);default:throw Error(`Unknown modal child type: ${e.type}`)}}function ki(e){return{text:{type:`plain_text`,text:e.label},value:e.value,...e.description?{description:{type:`plain_text`,text:e.description}}:{}}}function Ai(e){let t={type:`plain_text_input`,action_id:e.id,multiline:e.multiline??!1};return e.placeholder&&(t.placeholder={type:`plain_text`,text:e.placeholder}),e.initialValue&&(t.initial_value=e.initialValue),e.maxLength&&(t.max_length=e.maxLength),{type:`input`,block_id:e.id,optional:e.optional??!1,label:{type:`plain_text`,text:e.label},element:t}}var ji=/^\d{4}-\d{2}-\d{2}$/;function Mi(e){if(!e)return;let t=ji.test(e)?new Date(`${e}T00:00:00Z`):null;if(!t||Number.isNaN(t.getTime())||t.toISOString().slice(0,10)!==e)console.warn(`[chat] DateInput "${e}" is not a YYYY-MM-DD date \u2014 ignoring initialValue`);else return e}function Ni(e){let t={type:`datepicker`,action_id:e.id};e.placeholder&&(t.placeholder={type:`plain_text`,text:e.placeholder});let n=Mi(e.initialValue);return n&&(t.initial_date=n),{type:`input`,block_id:e.id,optional:e.optional??!1,label:{type:`plain_text`,text:e.label},element:t}}function Pi(e){let t={type:`number_input`,action_id:e.id,is_decimal_allowed:e.decimal??!1};return e.placeholder&&(t.placeholder={type:`plain_text`,text:e.placeholder}),e.initialValue!==void 0&&(t.initial_value=String(e.initialValue)),e.min!==void 0&&(t.min_value=String(e.min)),e.max!==void 0&&(t.max_value=String(e.max)),{type:`input`,block_id:e.id,optional:e.optional??!1,label:{type:`plain_text`,text:e.label},element:t}}function Fi(e){let t=e.options.map(ki),n={type:`static_select`,action_id:e.id,options:t};if(e.placeholder&&(n.placeholder={type:`plain_text`,text:e.placeholder}),e.initialOption){let r=t.find(t=>t.value===e.initialOption);r&&(n.initial_option=r)}return{type:`input`,block_id:e.id,...e.dispatchAction!==void 0&&{dispatch_action:e.dispatchAction},optional:e.optional??!1,label:{type:`plain_text`,text:e.label},element:n}}function Ii(e){let t={type:`external_select`,action_id:e.id};return e.placeholder&&(t.placeholder={type:`plain_text`,text:e.placeholder}),e.minQueryLength!==void 0&&(t.min_query_length=e.minQueryLength),e.initialOption&&(t.initial_option=ki(e.initialOption)),{type:`input`,block_id:e.id,optional:e.optional??!1,label:{type:`plain_text`,text:e.label},element:t}}function Li(e){let t=e.options.slice(0,10).map(e=>{let t={text:{type:`mrkdwn`,text:e.label},value:e.value};return e.description&&(t.description={type:`mrkdwn`,text:e.description}),t}),n={type:`radio_buttons`,action_id:e.id,options:t};if(e.initialOption){let r=t.find(t=>t.value===e.initialOption);r&&(n.initial_option=r)}return{type:`input`,block_id:e.id,...e.dispatchAction!==void 0&&{dispatch_action:e.dispatchAction},optional:e.optional??!1,label:{type:`plain_text`,text:e.label},element:n}}var Ri=/<([@#][A-Z0-9_]+|!subteam\^[A-Z0-9_]+)\|[^<>]*>/g,zi=/<(?:[@#][A-Z0-9_]+|!subteam\^[A-Z0-9_]+)>/g,Bi=/\s/,Vi=/[\p{P}\p{S}]/u,Hi=/^[ \t]/gm,Q=/[\u0021-\u002f\u003a-\u0040\u005b-\u0060\u007b-\u007e]/g,Ui=new Set([`text`,`link`,`emoji`,`user`,`broadcast`,`channel`,`usergroup`,`date`,`color`,`team`]),Wi=[`bold`,`italic`,`strike`,`code`],Gi={bold:`*`,code:"`",italic:`_`,strike:`~`};function Ki(e){let t=(e.blocks??[]).filter(e=>!s.has(e.type));if(t.length===0||!t.every(e=>e.type===`rich_text`&&(e.elements??[]).every(qi))||!t.some(e=>e.elements?.some(e=>e.type===`rich_text_list`)))return;let n=t.map($).join(`
|
|
48
43
|
|
|
49
|
-
`),r=new Map;for(let t of(e.text??``).matchAll(
|
|
50
|
-
`;)--t;return e.slice(0,t)}function
|
|
51
|
-
`.repeat(Math.max(0,r-i))}t+=a,n=i}return
|
|
44
|
+
`),r=new Map;for(let t of(e.text??``).matchAll(Ri))r.set(`<${t[1]}>`,t[0]);return n.replace(zi,e=>r.get(e)??e)}function qi(e){switch(e.type){case`rich_text_list`:return(e.elements??[]).every(e=>e.type===`rich_text_section`&&qi(e));case`rich_text_section`:case`rich_text_quote`:case`rich_text_preformatted`:return(e.elements??[]).every(e=>Ui.has(e.type));default:return!1}}function Ji(e){let t=e.length;for(;t>0&&e[t-1]===`
|
|
45
|
+
`;)--t;return e.slice(0,t)}function $(e){let t=``,n,r=[];for(let i of e.elements??[]){let e=i.type===`rich_text_list`,a;if(e?a=Yi(i,r):(r=[],a=Xi(i)),n){let r=e!==(n.type===`rich_text_list`)||n.type===`rich_text_quote`?2:1,i=t.length-Ji(t).length;t+=`
|
|
46
|
+
`.repeat(Math.max(0,r-i))}t+=a,n=i}return Ji(t)}function Yi(e,t){let n=Math.min(typeof e.indent==`number`?e.indent:0,t.length),r=n===0?0:t[n-1]??0,i=typeof e.offset==`number`?e.offset:0,a=e.style===`ordered`,o=[];for(let[s,c]of(e.elements??[]).entries()){let e=a?`${i+s+1}. `:`- `,l=r+e.length;t.length=n,t.push(l);let[u=``,...d]=Ji(Xi(c)).split(`
|
|
52
47
|
`);o.push(`${` `.repeat(r)}${e}${u}`);for(let e of d)o.push(`${` `.repeat(l)}${e}`)}return o.join(`
|
|
53
|
-
`)}function
|
|
48
|
+
`)}function Xi(e){switch(e.type){case`rich_text_preformatted`:return`\`\`\`
|
|
54
49
|
${(e.elements??[]).map(e=>e.type===`text`?S(e.text??``):c(e)).join(``)}
|
|
55
|
-
\`\`\``;case`rich_text_quote`:return
|
|
50
|
+
\`\`\``;case`rich_text_quote`:return Ji(Zi(e.elements??[])).split(`
|
|
56
51
|
`).map(e=>`> ${e}`).join(`
|
|
57
|
-
`);default:return
|
|
52
|
+
`);default:return Zi(e.elements??[])}}function Zi(e){return ia(ra(e.flatMap(Qi))).replace(Hi,e=>`&#${e.charCodeAt(0)};`)}function Qi(e){let t=e.style,n=m(t)?Wi.filter(e=>t[e]===!0):[];if(e.type===`text`){let t=[];for(let[r,i]of(e.text??``).split(`
|
|
58
53
|
`).entries())r>0&&t.push({first:`
|
|
59
54
|
`,last:`
|
|
60
55
|
`,marks:[],text:`
|
|
61
|
-
`}),i&&t.push({first:i[0],last:i.at(-1)??``,literal:!0,marks:n,text:i});return t}let r=e.type===`broadcast`&&typeof e.range==`string`?`<!${e.range}>`:c(e);if(!r)return[];let i=e.type===`emoji`?`:`:`a`;return[{first:i,last:i,marks:n,text:r}]}function
|
|
62
|
-
`)&&i(0),n+=e;continue}let s=e.length-e.trimStart().length,c=e.length-e.trimEnd().length;n+=e.slice(0,s);let l
|
|
63
|
-
`))t.feed(n);return t.open}function
|
|
56
|
+
`}),i&&t.push({first:i[0],last:i.at(-1)??``,literal:!0,marks:n,text:i});return t}let r=e.type===`broadcast`&&typeof e.range==`string`?`<!${e.range}>`:c(e);if(!r)return[];let i=e.type===`emoji`?`:`:`a`;return[{first:i,last:i,marks:n,text:r}]}function $i(e,t){let n=0;for(;n<e.length&&n<t.length&&e[n]===t[n];)n+=1;return n}function ea(e){return Bi.test(e)}function ta(e){return Vi.test(e)}function na(e,t){let n=$i(e.marks,t.marks),r=e.marks.slice(n),i=t.marks.slice(n);if(ea(e.last)||ea(t.first))return!0;let a=r.some(e=>e!==`code`),o=i.some(e=>e!==`code`);return a&&o?!1:a?i.includes(`code`)||ta(t.first):!o||r.includes(`code`)||ta(e.last)}function ra(e){let t=e.map(e=>({...e,marks:[...e.marks]})),n=!0;for(;n;){n=!1;for(let e=1;e<t.length;e+=1){let r=t[e-1],i=t[e];if(!na(r,i)){let e=r.marks.filter(e=>i.marks.includes(e));r.marks=e,i.marks=[...e],n=!0}}}return t}function ia(e){let t=``,n=``,r=[],i=e=>{for(let n=r.length-1;n>=e;--n)t+=Gi[r[n]];r=r.slice(0,e)};for(let a of e){let e=a.text;a.literal&&(e=a.marks.includes(`code`)?S(a.text):a.text.replace(Q,e=>`&#${e.charCodeAt(0)};`));let o=e.trim();if(!o){e.includes(`
|
|
57
|
+
`)&&i(0),n+=e;continue}let s=e.length-e.trimStart().length,c=e.length-e.trimEnd().length;n+=e.slice(0,s);let l=$i(r,a.marks);i(l),t+=n,n=``;for(let e of a.marks.slice(l))t+=Gi[e];r=[...a.marks],t+=o,n=e.slice(e.length-c)}return i(0),t+n}var aa=/^[UW][A-Z0-9]+$/,oa=new Set([`hooks.slack-gov.com`,`hooks.slack.com`]),sa=`USLACK`,ca=2500;function la(e,t){let n=Buffer.from(e,`utf8`),r=Buffer.from(t,`utf8`);return n.length===r.length&&Ne(n,r)}function ua(e){try{let t=new URL(e);return t.protocol===`https:`&&t.username===``&&t.password===``&&t.port===``&&oa.has(t.hostname.toLowerCase())}catch{return!1}}function da(e,t,n){let r=e;if(r.code!==`slack_webapi_platform_error`||r.data?.error!==`invalid_blocks`)return e;let i=[...r.data.errors??[],...r.data.response_metadata?.messages??[]];n.error(`Slack rejected blocks (invalid_blocks)`,{details:i,blocks:JSON.stringify(t)});let a=Error(`Slack rejected blocks (invalid_blocks): ${JSON.stringify(i)}`);return a.cause=e,a}function fa(e){let t=e.indexOf(`<@`),n=e.indexOf(`<#`);return t===-1?n:n===-1?t:Math.min(t,n)}function pa(e,t){if(t.users.size===0&&t.channels.size===0)return e;let n=``,r=e,i=fa(r);for(;i!==-1;){n+=r.slice(0,i),r=r.slice(i);let e=r.indexOf(`>`);if(e===-1)break;let a=r[1],o=r.slice(2,e),s=o.indexOf(`|`),c=s>=0?o.slice(0,s):o;if(a===`@`&&g.test(c)){let i=t.users.get(c);n+=i?`<@${c}|${i}>`:r.slice(0,e+1)}else if(a===`#`&&s===-1&&t.channels.has(c)){let e=t.channels.get(c);n+=`<#${c}|${e}>`}else n+=r.slice(0,e+1);r=r.slice(e+1),i=fa(r)}return n+r}var ma=/\/$/,ha=2e3,ga=150,_a=/^https?:\/\/[^/]+\.slack\.com\/archives\/([A-Z0-9]+)\/p(\d+)(?:\?.*)?$/,va=/<(https?:\/\/[^>]{1,2048})>/g,ya=/^https?:\/\//,ba=24e4,xa=3e4,Sa=`message_not_in_streaming_state`,Ca=new Set([`fatal_error`,`internal_error`,`request_timeout`,`service_unavailable`]),wa=new Set([`app_uninstalled`,`tokens_revoked`]),Ta=/^ {0,3}(`{3,}|~{3,})(.*)$/,Ea=/^\|.*\|$/,Da=/^\|[\s:]*-+[\s:]*(?:\|[\s:]*-+[\s:]*)*\|$/,Oa=class{open;feed(e){let t=Ta.exec(e);if(!t)return!1;let[,n,r]=t;return this.open?n[0]===this.open.marker[0]&&n.length>=this.open.marker.length&&r.trim()===``&&(this.open=void 0,!0):n[0]==="`"&&r.includes("`")?!1:(this.open={marker:n,opening:e.trimEnd()},!0)}};function ka(e){let t=new Oa;for(let n of e.split(`
|
|
58
|
+
`))t.feed(n);return t.open}function Aa(e,t){let n=new Oa;return n.open=e,n.feed(t)}function ja(e){let t=e.lastIndexOf(`
|
|
64
59
|
|
|
65
60
|
`);return t===-1?e.lastIndexOf(`
|
|
66
|
-
`)+1:t+2}function
|
|
61
|
+
`)+1:t+2}function Ma(e){if(!e.endsWith(`
|
|
67
62
|
`))return``;let t=e.split(`
|
|
68
|
-
`);t.pop();let n=[];for(let e=t.length-1;e>=0&&
|
|
63
|
+
`);t.pop();let n=[];for(let e=t.length-1;e>=0&&Ea.test(t[e].trim());e--)n.unshift(t[e]);let r=n.findIndex(e=>Da.test(e.trim()));return r<1?``:`${n[r-1]}
|
|
69
64
|
${n[r]}
|
|
70
|
-
`}function
|
|
71
|
-
`))t.trim()?(n.length>0&&n.push({type:`break`}),n.push(...$a(t))):r();return r(),t}function $a(e){let t=[],n=``,r=()=>{n&&=(t.push({type:`text`,value:x(n)}),``)},i=e;for(;i.length>0;){let e=i.indexOf(`<`),a=e===-1?-1:i.indexOf(`>`,e+1);if(a===-1){n+=i;break}n+=i.slice(0,e);let o=i.slice(e,a+1),s=i.slice(e+1,a);i=i.slice(a+1);let c=s.indexOf(`|`),l=c===-1?s:s.slice(0,c),u=c===-1?void 0:s.slice(c+1),d=l.slice(1);l.startsWith(`@`)&&g.test(d)?n+=`@${u??d}`:l.startsWith(`#`)&&g.test(d)?n+=u?`#${u} (${d})`:`#${d}`:Oa.test(l)?(r(),t.push({type:`link`,url:l,children:[{type:`text`,value:u?x(u):l}]})):n+=o}return r(),t}var eo=class e{name=`slack`;userName;supportsTurnCancellation;_client;tokenClientCache=new Map;slackApiUrl;webClientOptions;fetch;configuredFileTransport;signingSecret;webhookVerifier;defaultBotTokenProvider;chat=null;logger;_botUserId=null;_botId=null;formatConverter=new Mi;static USER_CACHE_TTL_MS=6912e5;static CHANNEL_CACHE_TTL_MS=6912e5;static REVERSE_INDEX_TTL_MS=6912e5;static EVENT_DEDUPE_TTL_MS=864e5;_externalChannels=new Set;appToken;agentView;sessionTitle;suggestedPrompts;loadingMessages;feedbackButtons;nativeStreaming;streamSegmentMaxAgeMs;nativeStreamingBroken=!1;mode;socketForwardingSecret;socketClient=null;clientId;clientSecret;encryptionKey;installationKeyPrefix;installationProvider;requestContext=new Ce;get botUserId(){let e=this.requestContext.getStore();return e?.botUserId?e.botUserId:this._botUserId||void 0}get isSocketMode(){return this.mode===`socket`}get webClient(){let e=this.requestContext.getStore();if(e?.token)return this.getClientForToken(e.token);if(this.defaultBotTokenProvider){let e=this.defaultBotTokenProvider();if(typeof e==`string`)return this.getClientForToken(e);throw new M(`slack`,"botToken is configured as an async resolver and cannot be resolved synchronously for `.webClient`. Wrap the work in `adapter.withBotToken(token, () => adapter.webClient...)` after awaiting the token.")}throw new M(`slack`,"No bot token available. In multi-workspace mode, ensure the webhook is being processed or use `adapter.withBotToken(token, fn)` to bind a token explicitly.")}get client(){return this.webClient}getClientForToken(e){let t=this.tokenClientCache.get(e);return t||(t=new Cr.WebClient(e,{...this.webClientOptions,...this.webClientOptions?.headers?{headers:{...this.webClientOptions.headers}}:{},...this.slackApiUrl?{slackApiUrl:this.slackApiUrl}:{}}),this.tokenClientCache.set(e,t)),t}constructor(e={}){let t=e.webhookVerifier,n=t?void 0:e.signingSecret??process.env.SLACK_SIGNING_SECRET;if(!(n||t)&&(e.mode??`webhook`)===`webhook`)throw new k(`slack`,`signingSecret or webhookVerifier is required for webhook mode. Set SLACK_SIGNING_SECRET, provide signingSecret in config, or provide a webhookVerifier.`);let r=!(e.signingSecret||e.botToken||e.clientId||e.clientSecret),i=Ka(e.botToken??(r?process.env.SLACK_BOT_TOKEN:void 0));this.slackApiUrl=e.apiUrl??process.env.SLACK_API_URL,this.webClientOptions=e.webClientOptions,this.fetch=e.fetch??((...e)=>globalThis.fetch(...e)),this.configuredFileTransport=e.fileTransport,this._client=new Cr.WebClient(void 0,{...this.webClientOptions,...this.webClientOptions?.headers?{headers:{...this.webClientOptions.headers}}:{},...this.slackApiUrl?{slackApiUrl:this.slackApiUrl}:{}}),this.signingSecret=n,this.webhookVerifier=t,this.defaultBotTokenProvider=i,this.logger=e.logger??new ge(`info`).child(`slack`),this.userName=e.userName||`bot`,this._botUserId=e.botUserId||null,this.appToken=e.appToken,this.agentView=e.agentView??!1,this.supportsTurnCancellation=this.agentView,this.sessionTitle=e.sessionTitle??this.agentView,this.suggestedPrompts=e.suggestedPrompts,this.loadingMessages=e.loadingMessages,this.nativeStreaming=e.nativeStreaming??!0;let a=e.streamSegmentMaxAgeMs;this.streamSegmentMaxAgeMs=a!==void 0&&a>0?a:ka,e.feedbackButtons&&(this.feedbackButtons=e.feedbackButtons===!0?{}:e.feedbackButtons),this.mode=e.mode??`webhook`,this.socketForwardingSecret=e.socketForwardingSecret??e.appToken,this.clientId=e.clientId??(r?process.env.SLACK_CLIENT_ID:void 0),this.clientSecret=e.clientSecret??(r?process.env.SLACK_CLIENT_SECRET:void 0),this.installationKeyPrefix=e.installationKeyPrefix??`slack:installation`;let o=e.encryptionKey??process.env.SLACK_ENCRYPTION_KEY;o&&(this.encryptionKey=F(o)),this.installationProvider=e.installationProvider}async getToken(){let e=this.requestContext.getStore();if(e?.token)return e.token;if(this.defaultBotTokenProvider)return await this.defaultBotTokenProvider();throw new M(`slack`,`No bot token available. In multi-workspace mode, ensure the webhook is being processed.`)}getConcurrencyScope(){if(this.defaultBotTokenProvider)return;let e=this.requestContext.getStore();if(e?.installationId)return JSON.stringify([`installation`,e.installationId]);if(e?.token)return JSON.stringify([`token`,we(`sha256`).update(e.token).digest(`hex`)]);throw new M(`slack`,`No installation context available. Process a verified webhook or use withBotToken with installationId before handling messages or cancelling turns.`)}async withToken(e){let t=this.requestContext.getStore(),n={};return t?.isEnterpriseInstall&&t.teamId&&e.team_id===void 0&&(n.team_id=t.teamId),t?.contextTeamId&&e.channel!==void 0&&e.channel===t.contextChannel&&e.client_context_team_id===void 0&&(n.client_context_team_id=t.contextTeamId),{...e,...n,token:await this.getToken()}}async initialize(e){if(this.chat=e,this.defaultBotTokenProvider&&!this._botUserId)try{let e=await this._client.auth.test(await this.withToken({}));this._botUserId=e.user_id,this._botId=e.bot_id||null,e.user&&(this.userName=e.user),this.logger.info(`Slack auth completed`,{botUserId:this._botUserId,botId:this._botId})}catch(e){this.logger.warn(`Could not fetch bot user ID`,{error:e})}this.defaultBotTokenProvider||this.logger.info(`Slack adapter initialized in multi-workspace mode`),this.mode===`socket`&&await this.startSocketMode()}installationKey(e){return`${this.installationKeyPrefix}:${e}`}async setInstallation(e,t){if(!this.chat)throw new k(`slack`,`Adapter not initialized. Ensure chat.initialize() has been called first.`);let n=this.chat.getState(),r=this.installationKey(e),i=this.encryptionKey?{...t,botToken:L(t.botToken,this.encryptionKey)}:t;await n.set(r,i),this.logger.info(`Slack installation saved`,{teamId:e,teamName:t.teamName})}async getInstallation(e){if(!this.chat)throw new k(`slack`,`Adapter not initialized. Ensure chat.initialize() has been called first.`);let t=this.chat.getState(),n=this.installationKey(e),r=await t.get(n);return r?this.encryptionKey&&j(r.botToken)?{...r,botToken:w(r.botToken,this.encryptionKey)}:r:null}async handleOAuthCallback(e,t){if(!(this.clientId&&this.clientSecret))throw new k(`slack`,`clientId and clientSecret are required for OAuth. Pass them in createSlackAdapter().`);let n=new URL(e.url),r=n.searchParams.get(`code`);if(!r)throw new k(`slack`,`Missing 'code' query parameter in OAuth callback request.`);let i=t?.redirectUri??n.searchParams.get(`redirect_uri`)??void 0,a=await this._client.oauth.v2.access({client_id:this.clientId,client_secret:this.clientSecret,code:r,...i?{redirect_uri:i}:{}}),o=!!a.is_enterprise_install,s=a.enterprise?.id,c=o?s:a.team?.id;if(!(a.ok&&a.access_token&&c)){let e=o?`missing access_token or enterprise.id`:`missing access_token or team.id`;throw new M(`slack`,`Slack OAuth failed: ${a.error||e}`)}let l={botToken:a.access_token,botUserId:a.bot_user_id,teamName:a.team?.name??a.enterprise?.name,...s?{enterpriseId:s}:{},...o?{isEnterpriseInstall:o}:{}};return await this.setInstallation(c,l),{teamId:c,enterpriseId:s,isEnterpriseInstall:o,installation:l}}async deleteInstallation(e){if(!this.chat)throw new k(`slack`,`Adapter not initialized. Ensure chat.initialize() has been called first.`);await this.chat.getState().delete(this.installationKey(e)),this.logger.info(`Slack installation deleted`,{teamId:e})}withBotToken(e,t,n){return this.requestContext.run({token:e,installationId:n?.installationId,botUserId:n?.botUserId},t)}async resolveTokenForTeam(e,t=!1){try{if(this.installationProvider){let n=await this.installationProvider.getInstallation(e,t);return n?{token:n.botToken,botUserId:n.botUserId}:(this.logger.warn(`No installation found from provider`,{installationId:e,isEnterpriseInstall:t}),null)}let n=await this.getInstallation(e);return n?{token:n.botToken,botUserId:n.botUserId}:(this.logger.warn(`No installation found for team`,{installationId:e,isEnterpriseInstall:t}),null)}catch(n){return this.logger.error(`Failed to resolve token for team`,{installationId:e,isEnterpriseInstall:t,error:n}),null}}extractInstallationFromInteractive(e){try{let t=new URLSearchParams(e).get(`payload`);return t?this.extractInstallationFromInteractivePayload(JSON.parse(t)):null}catch{return null}}extractInstallationFromInteractivePayload(e){let t=e.is_enterprise_install===!0||e.is_enterprise_install===`true`,n=e.enterprise,r=e.team,i=n?.id||e.enterprise_id||void 0,a=r?.id||e.team_id||void 0,o=t?i:a;return o?{installationId:o,isEnterpriseInstall:t,enterpriseId:i,teamId:a}:null}extractInstallationFromEvent(e){let t=e.authorizations?.[0],n=!!(t?.is_enterprise_install??e.is_enterprise_install),r=(t?.enterprise_id||e.enterprise_id)??void 0,i=(t?.team_id||e.team_id)??void 0,a=n?r:i;return a?{installationId:a,isEnterpriseInstall:n,enterpriseId:r,teamId:i}:null}async resolveEventRequestContext(e){if(this.defaultBotTokenProvider||e.type!==`event_callback`||Na.has(e.event?.type??``))return`not-applicable`;let t=this.extractInstallationFromEvent(e);if(!t)return`not-applicable`;let{enterpriseId:n,installationId:r,isEnterpriseInstall:i,teamId:a}=t,o=await this.resolveTokenForTeam(r,i);if(!o)return this.logger.warn(`Could not resolve token for installation`,{installationId:r,isEnterpriseInstall:i}),`unresolved`;let s=e.event;return{...o,enterpriseId:n,isEnterpriseInstall:i,installationId:r,teamId:a,contextTeamId:e.context_team_id,contextChannel:s?.channel}}installationCacheScope(){let e=this.requestContext.getStore()?.installationId;return e?`${e}:`:``}unfurlCacheKey(e,t){return`slack:unfurls:${this.installationCacheScope()}${e}:${t}`}async lookupUser(t){let n=`slack:user:${this.installationCacheScope()}${t}`;if(this.chat){let e=await this.chat.getState().get(n);if(e)return e}try{let r=(await this._client.users.info(await this.withToken({user:t}))).user,i=r?.profile?.display_name||r?.profile?.real_name||r?.real_name||r?.name||t,a=r?.real_name||r?.profile?.real_name||i,o={avatarUrl:r?.profile?.image_192,displayName:i,email:r?.profile?.email,isBot:r?.is_bot,realName:a};if(this.chat){await this.chat.getState().set(n,o,e.USER_CACHE_TTL_MS);let r=i.toLowerCase(),a=`slack:user-by-name:${this.installationCacheScope()}${r}`;(await this.chat.getState().getList(a)).includes(t)||await this.chat.getState().appendToList(a,t,{maxLength:50,ttlMs:e.REVERSE_INDEX_TTL_MS})}return this.logger.debug(`Fetched user info`,{userId:t,displayName:i,realName:a}),o}catch(e){return this.logger.warn(`Could not fetch user info`,{userId:t,error:e}),null}}async lookupChannel(t){let n=`slack:channel:${this.installationCacheScope()}${t}`;if(this.chat){let e=await this.chat.getState().get(n);if(e)return e.name}try{let r=(await this._client.conversations.info(await this.withToken({channel:t}))).channel?.name||t;return this.chat&&await this.chat.getState().set(n,{name:r},e.CHANNEL_CACHE_TTL_MS),this.logger.debug(`Fetched channel info`,{channelId:t,name:r}),r}catch(e){return this.logger.warn(`Could not fetch channel info`,{channelId:t,error:e}),t}}async getUser(e){try{let t=await this.lookupUser(e);return t?{avatarUrl:t.avatarUrl,email:t.email,fullName:t.realName,isBot:t.isBot??!1,userId:e,userName:t.displayName}:null}catch{return null}}async handleWebhook(e,t){let n=e.headers.get(`x-slack-socket-token`);if(n){if(!(this.socketForwardingSecret&&va(n,this.socketForwardingSecret)))return this.logger.warn(`Invalid socket forwarding token`),new Response(`Invalid socket token`,{status:401});this.logger.info(`Slack forwarded socket event received`);try{let n=await e.text(),r=JSON.parse(n);return await this.routeSocketEvent(r.body,r.eventType,async()=>{},t,r.retryNum),new Response(`ok`,{status:200})}catch{return new Response(`Invalid JSON`,{status:400})}}if(this.mode===`socket`)return new Response(`Webhooks are disabled in socket mode`,{status:405});let r;try{r=await o(e,{signingSecret:this.signingSecret,webhookVerifier:this.webhookVerifier})}catch(e){return this.logger.warn(`Webhook verifier rejected request`,{error:e}),new Response(`Invalid signature`,{status:401})}if(this.logger.debug(`Slack webhook received`,{bodyLength:Buffer.byteLength(r)}),(e.headers.get(`content-type`)||``).includes(`application/x-www-form-urlencoded`)){let e=new URLSearchParams(r);if(e.has(`command`)&&!e.has(`payload`))return this.runSlashCommand(e,t);if(!this.defaultBotTokenProvider){let e=this.extractInstallationFromInteractive(r);if(e){let n=await this.resolveTokenForTeam(e.installationId,e.isEnterpriseInstall);if(n)return this.requestContext.run({...n,enterpriseId:e.enterpriseId,isEnterpriseInstall:e.isEnterpriseInstall,installationId:e.installationId,teamId:e.teamId},()=>this.handleInteractivePayload(r,t))}return this.logger.warn(`Could not resolve token for interactive payload`),new Response(``,{status:200})}return this.handleInteractivePayload(r,t)}let i;try{i=JSON.parse(r)}catch{return new Response(`Invalid JSON`,{status:400})}if(i.type===`url_verification`&&i.challenge)return Response.json({challenge:i.challenge});let a=Number(e.headers.get(`x-slack-retry-num`)??`0`);if(await this.isDuplicateEventDelivery(i,a))return new Response(`ok`,{status:200});let s=await this.resolveEventRequestContext(i);return s===`unresolved`?new Response(`ok`,{status:200}):s===`not-applicable`?(this.processEventPayload(i,t),new Response(`ok`,{status:200})):this.requestContext.run(s,()=>(this.processEventPayload(i,t),new Response(`ok`,{status:200})))}async runSlashCommand(e,t){if(!this.defaultBotTokenProvider){let n=e.get(`is_enterprise_install`)===`true`,r=n?e.get(`enterprise_id`):e.get(`team_id`);if(r){let i=await this.resolveTokenForTeam(r,n);if(i)return this.requestContext.run({...i,enterpriseId:e.get(`enterprise_id`)??void 0,isEnterpriseInstall:n,installationId:r,teamId:e.get(`team_id`)??void 0},()=>this.handleSlashCommand(e,t));this.logger.warn(`Could not resolve token for slash command`,{installationId:r,isEnterpriseInstall:n})}return new Response(``,{status:200})}return this.handleSlashCommand(e,t)}markEventDelivered(t){let n=t.event_id;n&&this.chat&&this.chat.getState().set(`slack:event-delivered:${n}`,!0,e.EVENT_DEDUPE_TTL_MS).catch(()=>{})}async isDuplicateEventDelivery(e,t){let n=e.event_id;if(!(n&&this.chat&&t&&t>0))return!1;try{if(await this.chat.getState().get(`slack:event-delivered:${n}`))return this.logger.info(`Skipping duplicate event delivery`,{eventId:n,retryNum:t}),!0}catch{}return!1}processEventPayload(e,t){if(e.type===`event_callback`&&e.event){this.markEventDelivered(e);let n=e.event;if(e.is_ext_shared_channel){let e;`channel`in n?e=n.channel:`item`in n&&(e=n.item.channel),e&&this._externalChannels.add(e)}if(n.type===`message`||n.type===`app_mention`){let r=n;!(r.team||r.team_id)&&e.team_id&&(r.team_id=e.team_id),this.handleMessageEvent(r,t)}else if(n.type===`reaction_added`||n.type===`reaction_removed`){let e=this.handleReactionEvent(n,t);t?.waitUntil?.(e)}else if(n.type===`assistant_thread_started`)this.handleAssistantThreadStarted(n,t);else if(n.type===`assistant_thread_context_changed`)this.handleAssistantContextChanged(n,t);else if(n.type===`agent_session_stopped`)this.handleAgentSessionStopped(n,t);else if(n.type===`agent_session_title_changed`)this.handleAgentSessionTitleChanged(n,t);else if(n.type===`app_context_changed`)this.handleAppContextChanged(n,t);else if(n.type===`app_home_opened`){let r=n;if(this.agentView||r.tab===`home`){let n=e.authorizations?.[0]?.team_id||e.team_id||void 0;this.handleAppHomeOpened(r,t,n)}}else n.type===`member_joined_channel`?this.handleMemberJoinedChannel(n,t):n.type===`app_uninstalled`?this.handleAppUninstalled(e,t):n.type===`user_change`&&this.handleUserChange(n)}}handleInteractivePayload(e,t){let n=new URLSearchParams(e).get(`payload`);if(!n)return new Response(`Missing payload`,{status:400});let r;try{r=JSON.parse(n)}catch{return new Response(`Invalid payload JSON`,{status:400})}return this.dispatchInteractivePayload(r,t)}dispatchInteractivePayload(e,t){switch(e.type){case`block_actions`:return this.handleBlockActions(e,t),new Response(``,{status:200});case`block_suggestion`:return this.handleBlockSuggestion(e,t);case`view_submission`:return this.handleViewSubmission(e,t);case`view_closed`:return this.handleViewClosed(e,t),new Response(``,{status:200});default:return new Response(``,{status:200})}}async handleSlashCommand(e,t){if(!this.chat)return this.logger.warn(`Chat instance not initialized, ignoring slash command`),new Response(``,{status:200});let n=e.get(`command`)||``,r=e.get(`text`)||``,i=e.get(`user_id`)||``,a=e.get(`channel_id`)||``,o=e.get(`trigger_id`)||void 0;this.logger.debug(`Processing Slack slash command`,{command:n,text:r,userId:i,channelId:a,triggerId:o});let s=await this.lookupUser(i),c={command:n,text:r,user:{userId:i,userName:s?.displayName??i,fullName:s?.realName??i,isBot:!1,isMe:!1},adapter:this,raw:Object.fromEntries(e),triggerId:o,channelId:a?`slack:${a}`:``};return this.chat.processSlashCommand(c,t),new Response(``,{status:200})}handleBlockActions(e,t){if(!this.chat){this.logger.warn(`Chat instance not initialized, ignoring action`);return}let n=e.channel?.id||e.container?.channel_id,r=e.message?.ts||e.container?.message_ts,i=e.message?.thread_ts||e.container?.thread_ts||r;if(!(e.container?.type===`view`||n)){this.logger.warn(`Missing channel in block_actions`,{channel:n});return}let a=n&&(i||r)?this.encodeThreadId({channel:n,threadTs:i||r||``}):``,o=e.container?.is_ephemeral===!0,s=e.response_url,c=o&&s&&r?this.encodeEphemeralMessageId(r,s,e.user.id):r||``;for(let n of e.actions){let i=n.selected_option?.value??n.value,o={actionId:n.action_id,value:i,user:{userId:e.user.id,userName:e.user.username||e.user.name||`unknown`,fullName:e.user.name||e.user.username||`unknown`,isBot:!1,isMe:!1},messageId:c,threadId:a,adapter:this,raw:e,triggerId:e.trigger_id};this.logger.debug(`Processing Slack block action`,{actionId:n.action_id,value:n.value,messageId:r,threadId:a,triggerId:e.trigger_id}),this.chat.processAction(o,t)}}async handleBlockSuggestion(e,t){if(!this.chat)return this.logger.warn(`Chat instance not initialized, ignoring block suggestion`),this.optionsLoadResponse([]);let n=this.chat.processOptionsLoad({actionId:e.action_id,query:e.value??``,user:{userId:e.user.id,userName:e.user.username||e.user.name||e.user.id,fullName:e.user.name||e.user.username||e.user.id,isBot:!1,isMe:!1},adapter:this,raw:e},t),r=Symbol(`options_load_timeout`),i,a=new Promise(e=>{i=setTimeout(()=>e(r),_a)}),o=await Promise.race([n,a]);return i&&clearTimeout(i),o===r?(this.logger.warn(`Options load handler timed out`,{actionId:e.action_id,timeoutMs:_a}),n.catch(t=>this.logger.error(`Options load handler error after timeout`,{error:t,actionId:e.action_id})),this.optionsLoadResponse([])):this.optionsLoadResponse(o??[])}optionsLoadResponse(e){if(e.length>0&&`options`in e[0]&&Array.isArray(e[0].options)){let t=e.slice(0,100).map(e=>({label:{type:`plain_text`,text:e.label.slice(0,75)},options:e.options.slice(0,100).map(Ri)}));return new Response(JSON.stringify({option_groups:t}),{status:200,headers:{"Content-Type":`application/json`}})}let t=e.slice(0,100).map(Ri);return new Response(JSON.stringify({options:t}),{status:200,headers:{"Content-Type":`application/json`}})}async handleViewSubmission(e,t){if(!this.chat)return this.logger.warn(`Chat instance not initialized, ignoring view submission`),new Response(``,{status:200});let n={};for(let t of Object.values(e.view.state.values))for(let[e,r]of Object.entries(t))n[e]=r.value??r.selected_date??r.selected_option?.value??``;let{contextId:r,privateMetadata:i}=Fi(e.view.private_metadata||void 0),a={callbackId:e.view.callback_id,viewId:e.view.id,values:n,privateMetadata:i,user:{userId:e.user.id,userName:e.user.username||e.user.name||`unknown`,fullName:e.user.name||e.user.username||`unknown`,isBot:!1,isMe:!1},adapter:this,raw:e},o=await this.chat.processModalSubmit(a,r,t);if(o){let e=this.modalResponseToSlack(o,r);return new Response(JSON.stringify(e),{status:200,headers:{"Content-Type":`application/json`}})}return new Response(``,{status:200})}handleViewClosed(e,t){if(!this.chat){this.logger.warn(`Chat instance not initialized, ignoring view closed`);return}let{contextId:n,privateMetadata:r}=Fi(e.view.private_metadata||void 0),i={callbackId:e.view.callback_id,viewId:e.view.id,privateMetadata:r,user:{userId:e.user.id,userName:e.user.username||e.user.name||`unknown`,fullName:e.user.name||e.user.username||`unknown`,isBot:!1,isMe:!1},adapter:this,raw:e};this.chat.processModalClose(i,n,t)}modalResponseToSlack(e,t){switch(e.action){case`close`:return{};case`clear`:return{response_action:`clear`};case`errors`:return{response_action:`errors`,errors:e.errors};case`update`:{let n=this.convertModalJSX(e.modal);return{response_action:`update`,view:Ii(n,Pi({contextId:t,privateMetadata:n.privateMetadata}))}}case`push`:{let n=this.convertModalJSX(e.modal);return{response_action:`push`,view:Ii(n,Pi({contextId:t,privateMetadata:n.privateMetadata}))}}default:return{}}}convertModalJSX(e){if(be(e)){let t=W(e);if(!t)throw new k(`slack`,`Invalid JSX element: must be a Modal element`);return t}return e}socketTransportOptions(){let e={};return this.webClientOptions?.agent&&(e.agent=this.webClientOptions.agent),this.webClientOptions?.tls&&(e.tls=this.webClientOptions.tls),this.slackApiUrl&&(e.slackApiUrl=this.slackApiUrl),Object.keys(e).length>0?{clientOptions:e}:{}}postJson(e,t,n={}){return this.fetch(e,{method:`POST`,headers:{"Content-Type":`application/json`,...n},body:JSON.stringify(t)})}async startSocketMode(){if(!this.appToken)throw new k(`slack`,`appToken is required for socket mode. Set SLACK_APP_TOKEN or provide it in config.`);this.socketClient=new Sr.SocketModeClient({appToken:this.appToken,...this.socketTransportOptions()}),this.socketClient.on(`slack_event`,async({ack:e,body:t,type:n,retry_num:r,retry_reason:i})=>{r&&r>0&&this.logger.info(`Processing socket mode retry`,{retry_num:r,retry_reason:i,type:n}),await this.routeSocketEvent(t,n,e,void 0,r)}),await this.socketClient.start(),this.logger.info(`Slack socket mode connected`)}async routeSocketEvent(e,t,n,r,i){let a=e=>{r?.waitUntil?r.waitUntil(e):e.catch(e=>{this.logger.error(`Error in socket mode async handler`,{error:e})})};switch(t){case`events_api`:{if(await n(),!e.event||typeof e.event!=`object`){this.logger.warn(`Socket mode events_api missing event field`,{body:e});break}let t={type:`event_callback`,event:e.event,authorizations:e.authorizations,team_id:e.team_id,context_team_id:e.context_team_id,enterprise_id:e.enterprise_id??void 0,is_enterprise_install:!!e.is_enterprise_install,is_ext_shared_channel:e.is_ext_shared_channel,event_id:e.event_id,event_time:e.event_time};try{if(await this.isDuplicateEventDelivery(t,i))break;let e=await this.resolveEventRequestContext(t);if(e===`unresolved`)break;e===`not-applicable`?this.processEventPayload(t,r):this.requestContext.run(e,()=>this.processEventPayload(t,r))}catch(e){this.logger.error(`Error processing socket mode events_api`,{error:e})}break}case`slash_commands`:{await n();let t=new URLSearchParams;for(let[n,r]of Object.entries(e))typeof r==`string`?t.set(n,r):typeof r==`boolean`&&t.set(n,String(r));a(this.runSlashCommand(t,r));break}case`interactive`:{let t=e,i=()=>this.dispatchInteractivePayload(t,r),a;if(this.defaultBotTokenProvider)a=i();else{let t=this.extractInstallationFromInteractivePayload(e),n=t?await this.resolveTokenForTeam(t.installationId,t.isEnterpriseInstall):null;t&&n?a=this.requestContext.run({...n,enterpriseId:t.enterpriseId,isEnterpriseInstall:t.isEnterpriseInstall,installationId:t.installationId,teamId:t.teamId},i):(this.logger.warn(`Could not resolve token for socket interactive payload`),a=new Response(``,{status:200}))}let o=a instanceof Promise?await a:a;await n(o.headers.get(`content-type`)?.includes(`application/json`)?await o.json():void 0);break}default:await n(),this.logger.debug(`Unhandled socket mode event type`,{type:t})}}async startSocketModeListener(e,t=18e4,n,r){if(!this.appToken)return new Response(`appToken is required for socket mode listener`,{status:500});if(!e.waitUntil)return new Response(`waitUntil not provided`,{status:500});this.logger.info(`Starting Slack socket mode listener`,{durationMs:t,webhookUrl:r?`configured`:`not configured`});let i=this.runSocketModeListener(t,n,r,e);return e.waitUntil(i),new Response(JSON.stringify({status:`listening`,durationMs:t,message:`Socket mode listener started, will run for ${t/1e3} seconds`}),{status:200,headers:{"Content-Type":`application/json`}})}async runSocketModeListener(e,t,n,r){let i=this.appToken,a=new Sr.SocketModeClient({appToken:i,...this.socketTransportOptions()}),o=!1;a.on(`slack_event`,async({ack:e,body:t,type:i,retry_num:a,retry_reason:s})=>{if(o)return;a&&a>0&&this.logger.info(`Processing socket mode retry`,{retry_num:a,retry_reason:s,type:i});let c=i;n?(await e(),await this.forwardSocketEvent(n,{type:`socket_event`,eventType:c,body:t,retryNum:a,timestamp:Date.now()})):await this.routeSocketEvent(t,c,e,r,a)});try{await a.start(),this.logger.info(`Slack socket mode listener connected`),await new Promise(n=>{let r=setTimeout(n,e);if(t){if(t.aborted){clearTimeout(r),n();return}t.addEventListener(`abort`,()=>{this.logger.info(`Slack socket mode listener received abort signal`),clearTimeout(r),n()},{once:!0})}}),this.logger.info(`Slack socket mode listener duration elapsed, disconnecting`)}catch(e){this.logger.error(`Slack socket mode listener error`,{error:String(e)})}finally{o=!0,await a.disconnect(),this.logger.info(`Slack socket mode listener stopped`)}}async forwardSocketEvent(e,t){try{this.logger.debug(`Forwarding socket event to webhook`,{type:t.body.type||`unknown`,webhookUrl:e});let n=await this.postJson(e,t,{"x-slack-socket-token":this.socketForwardingSecret});if(n.ok)this.logger.debug(`Socket event forwarded successfully`,{type:t.body.type||`unknown`});else{let e=await n.text();this.logger.error(`Failed to forward socket event`,{type:t.body.type||`unknown`,status:n.status,error:e})}}catch(e){this.logger.error(`Error forwarding socket event`,{type:t.body.type||`unknown`,error:String(e)})}}async disconnect(){this.socketClient&&(await this.socketClient.disconnect(),this.socketClient=null,this.logger.info(`Slack socket mode disconnected`))}handleMessageEvent(e,t){if(!this.chat){this.logger.warn(`Chat instance not initialized, ignoring event`);return}let n=new Set([`message_replied`,`channel_join`,`channel_leave`,`channel_topic`,`channel_purpose`,`channel_name`,`channel_archive`,`channel_unarchive`,`group_join`,`group_leave`,`group_topic`,`group_purpose`,`group_name`,`group_archive`,`group_unarchive`,`ekm_access_denied`,`tombstone`]);if(e.subtype===`message_changed`){this.handleMessageChanged(e,t);return}if(e.subtype===`message_deleted`){this.handleMessageDeleted(e,t);return}if(e.subtype&&n.has(e.subtype)){this.logger.debug(`Ignoring message subtype`,{subtype:e.subtype});return}if(!(e.channel&&e.ts)){this.logger.debug(`Ignoring event without channel or ts`,{channel:e.channel,ts:e.ts});return}let r=e.channel_type===`im`,i=this.threadIdForMessageEvent(e),a=t=>async()=>this.parseSlackMessage(e,t);if(this.agentView&&r&&!e.thread_ts){let n=this.chat,r=this.encodeThreadId({channel:e.channel,threadTs:``}),o=(async()=>{let o=i;try{await n.getState().isSubscribed(r)&&(o=r)}catch(e){this.logger.warn(`agent_view DM subscription check failed; using per-message thread`,{error:String(e),threadId:i})}try{await n.processMessage(this,o,a(o),t)}catch(e){if(this.logger.warn(`Agent view DM processing failed`,{error:e,threadId:o}),t?.propagateHandlerErrors&&t.waitUntil)throw e}await this.applyConfiguredSessionTitle(e)})();t?.waitUntil?.(o);return}let o=this.chat.processMessage(this,i,a(i),t);if(this.agentView&&r&&!e.thread_ts&&!e.subtype&&e.user&&!e.bot_id){let n=Promise.resolve(o).then(()=>this.applyConfiguredSessionTitle(e)).catch(e=>{this.logger.warn(`Skipping Slack agent session title after message processing failed`,{error:e,threadId:i})});t?.waitUntil?.(n)}}handleMessageChanged(e,t){let n=e.message;if(!(n&&e.channel))return;let r={...n,channel:n.channel??e.channel,channel_type:n.channel_type??e.channel_type,team:n.team??e.team,team_id:n.team_id??e.team_id,type:n.type??`message`};if(n.subtype===`tombstone`){this.logger.debug(`Ignoring tombstone message_changed`);return}if(n.attachments?.some(e=>e.from_url||e.original_url)&&this.chat&&n.ts&&n.attachments){this.logger.debug(`Processing message_changed for link unfurls`,{channel:e.channel,ts:n.ts,attachmentCount:n.attachments?.length});let t={};for(let e of n.attachments){let n=e.from_url||e.original_url;n&&(e.title||e.text)&&(t[n]={title:e.title,description:e.text,imageUrl:e.image_url||e.thumb_url,siteName:e.service_name})}Object.keys(t).length>0&&this.chat.getState().set(this.unfurlCacheKey(e.channel,n.ts),t,36e5).catch(e=>{this.logger.error(`Failed to cache unfurl metadata`,{error:e})})}let i=e.previous_message,a=!(!i||n.edited?.ts===i.edited?.ts&&n.text===i.text);if(e.hidden===!0&&!a)return;if(i&&!a){this.logger.debug(`Ignoring message_changed with no content change`);return}if(!(this.chat&&r.channel&&r.ts))return;let o=this.threadIdForMessageEvent(r),s=e.previous_message,c=s?async()=>{let e={...s,channel:s.channel??r.channel,channel_type:s.channel_type??r.channel_type,type:s.type??`message`};try{return await this.parseSlackMessage(e,o)}catch(t){return this.logger.warn(`Falling back to sync parse for pre-edit message`,{error:t,threadId:o}),this.parseSlackMessageSync(e,o)}}:void 0;this.chat.processMessageUpdated({adapter:this,message:()=>this.parseSlackMessage(r,o),previousMessage:c,threadId:o},t)}handleMessageDeleted(e,t){let n=e.deleted_ts??e.message?.ts??e.previous_message?.ts;if(!(this.chat&&e.channel&&n))return;let r=e.previous_message?{...e.previous_message,channel:e.previous_message.channel??e.channel,channel_type:e.previous_message.channel_type??e.channel_type,team:e.previous_message.team??e.team,team_id:e.previous_message.team_id??e.team_id,type:e.previous_message.type??`message`}:void 0,i=this.threadIdForMessageEvent({channel:e.channel,channel_type:r?.channel_type??e.channel_type,thread_ts:r?.thread_ts,ts:r?.ts??n}),a=this.parseSlackTimestamp(e.event_ts??e.ts);this.chat.processMessageDeleted({adapter:this,channelId:e.channel,deletedAt:a,messageId:n,previousMessage:r?this.parseSlackMessageSync(r,i):void 0,raw:e,threadId:i},t)}async handleReactionEvent(e,t){if(!this.chat){this.logger.warn(`Chat instance not initialized, ignoring reaction`);return}if(e.item.type!==`message`){this.logger.debug(`Ignoring reaction to non-message item`,{itemType:e.item.type});return}let n=e.item.ts;try{let t=(await this._client.conversations.replies(await this.withToken({channel:e.item.channel,ts:e.item.ts,limit:1}))).messages?.[0];t?.thread_ts&&(n=t.thread_ts)}catch(t){this.logger.warn(`Failed to resolve parent thread for reaction, using message ts`,{error:String(t),channel:e.item.channel,ts:e.item.ts})}let r=this.encodeThreadId({channel:e.item.channel,threadTs:n}),i=e.item.ts,a=e.reaction,o=ne.fromSlack(a),s=this.requestContext.getStore(),c=s?.botUserId&&e.user===s.botUserId||this._botUserId!==null&&e.user===this._botUserId||this._botId!==null&&e.user===this._botId,l=await this.lookupUser(e.user),u=l?.displayName??e.user,d=l?.realName??u,f={emoji:o,rawEmoji:a,added:e.type===`reaction_added`,user:{userId:e.user,userName:u,fullName:d,isBot:l?.isBot??!1,isMe:c},messageId:i,threadId:r,raw:e};this.chat.processReaction({...f,adapter:this},t)}handleAssistantThreadStarted(e,t){if(!this.chat){this.logger.warn(`Chat instance not initialized, ignoring assistant_thread_started`);return}if(!e.assistant_thread){this.logger.warn(`Malformed assistant_thread_started: missing assistant_thread`);return}let{channel_id:n,thread_ts:r,user_id:i,context:a}=e.assistant_thread,o=this.encodeThreadId({channel:n,threadTs:r}),s=this.applyConfiguredSuggestedPrompts({channelId:n,enterpriseId:a.enterprise_id,teamId:a.team_id,threadTs:r,userId:i});t?.waitUntil?.(s),this.chat.processAssistantThreadStarted({threadId:o,userId:i,channelId:n,threadTs:r,context:{channelId:a.channel_id,teamId:a.team_id,enterpriseId:a.enterprise_id,threadEntryPoint:a.thread_entry_point,forceSearch:a.force_search},adapter:this},t)}handleAssistantContextChanged(e,t){if(!this.chat){this.logger.warn(`Chat instance not initialized, ignoring assistant_thread_context_changed`);return}if(!e.assistant_thread){this.logger.warn(`Malformed assistant_thread_context_changed: missing assistant_thread`);return}let{channel_id:n,thread_ts:r,user_id:i,context:a}=e.assistant_thread,o=this.encodeThreadId({channel:n,threadTs:r});this.chat.processAssistantContextChanged({threadId:o,userId:i,channelId:n,threadTs:r,context:{channelId:a.channel_id,teamId:a.team_id,enterpriseId:a.enterprise_id,threadEntryPoint:a.thread_entry_point,forceSearch:a.force_search},adapter:this},t)}handleAgentSessionStopped(e,t){if(!this.chat){this.logger.warn(`Chat instance not initialized, ignoring agent_session_stopped`);return}let n=this.encodeThreadId({channel:e.channel,threadTs:e.thread_ts}),r=this.chat,i=(async()=>{try{await r.abortTurn(n)}catch(e){this.logger.warn(`Failed to abort stopped Slack agent session`,{error:e,threadId:n})}try{await this.setSessionStatus(e.channel,e.thread_ts,`active`)}catch(e){this.logger.warn(`Failed to activate stopped Slack agent session`,{error:e,threadId:n})}r.processAgentSessionStopped({adapter:this,channelId:e.channel,streamingMessageTs:e.streaming_message_ts,threadId:n,threadTs:e.thread_ts,userId:e.user},t)})();t?.waitUntil?.(i)}handleAgentSessionTitleChanged(e,t){if(!this.chat){this.logger.warn(`Chat instance not initialized, ignoring agent_session_title_changed`);return}let n=this.encodeThreadId({channel:e.channel,threadTs:e.thread_ts});this.chat.processAgentSessionTitleChanged({adapter:this,channelId:e.channel,previousTitle:e.previous_title,threadId:n,threadTs:e.thread_ts,title:e.title,userId:e.user},t)}handleAppHomeOpened(e,t,n){if(!this.chat)this.logger.warn(`Chat instance not initialized, ignoring app_home_opened`);else{if(this.agentView&&e.tab===`messages`){let r=this.applyConfiguredSuggestedPrompts({channelId:e.channel,...n?{teamId:n}:{},userId:e.user,...e.context?{entities:Or(e.context)}:{}});t?.waitUntil?.(r)}this.chat.processAppHomeOpened({userId:e.user,channelId:e.channel,tab:e.tab,adapter:this,...e.context?{entities:Or(e.context)}:{}},t)}}handleAppContextChanged(e,t){this.chat?this.chat.processAppContextChanged({channelId:e.channel,userId:e.user,entities:Or(e.context),raw:e,adapter:this},t):this.logger.warn(`Chat instance not initialized, ignoring app_context_changed`)}handleMemberJoinedChannel(e,t){this.chat?this.chat.processMemberJoinedChannel({userId:e.user,channelId:this.encodeThreadId({channel:e.channel,threadTs:``}),inviterId:e.inviter,adapter:this},t):this.logger.warn(`Chat instance not initialized, ignoring member_joined_channel`)}handleAppUninstalled(e,t){if(!this.chat){this.logger.warn(`Chat instance not initialized, ignoring app_uninstalled`);return}let n=this.extractInstallationFromEvent(e);n?this.chat.processUninstalled?.({action:`remove`,adapter:this,conversationId:n.installationId,id:e.event_id??``,raw:e,...n.enterpriseId?{tenantId:n.enterpriseId}:{}},t):this.logger.warn(`Ignoring app_uninstalled: missing installation id`)}async handleUserChange(e){if(this.chat)try{await this.chat.getState().delete(`slack:user:${this.installationCacheScope()}${e.user.id}`)}catch(t){this.logger.warn(`Failed to invalidate user cache`,{userId:e.user.id,error:t})}}async publishHomeView(e,t){await this._client.views.publish(await this.withToken({user_id:e,view:t}))}async setSuggestedPrompts(e,t,n,r){await this._client.assistant.threads.setSuggestedPrompts(await this.withToken({channel_id:e,prompts:n,...t?{thread_ts:t}:{},...r?{title:r}:{}}))}async applyConfiguredSuggestedPrompts(e){if(this.suggestedPrompts)try{let t=typeof this.suggestedPrompts==`function`?await this.suggestedPrompts(e):this.suggestedPrompts;if(!t||t.prompts.length===0)return;let n=t.prompts;n.length>Ua&&(this.logger.warn(`Slack shows at most ${Ua} suggested prompts; dropping the rest`,{configured:n.length}),n=n.slice(0,Ua)),await this.setSuggestedPrompts(e.channelId,e.threadTs,n,t.title)}catch(t){this.logger.warn(`Failed to apply configured suggested prompts`,{channelId:e.channelId,error:t})}}async applyConfiguredSessionTitle(e){if(this.agentView&&this.sessionTitle&&e.channel&&e.ts&&e.user&&e.text&&!e.bot_id&&!e.subtype&&!e.thread_ts)try{let t={channelId:e.channel,text:e.text,threadTs:e.ts,userId:e.user},n=(typeof this.sessionTitle==`function`?await this.sessionTitle(t):e.text.split(`
|
|
72
|
-
`,1)[0]?.trim())?.trim().slice(0,80);if(!n)return;await this.renameAgentSession(e.channel,e.ts,n)}catch(t){this.logger.warn(`Failed to set Slack agent session title`,{channelId:e.channel,error:t,threadTs:e.ts})}}async setAssistantStatus(e,t,n,r){this.agentView&&!n.trim()?await this.setSessionStatus(e,t,`active`):await this._client.assistant.threads.setStatus(await this.withToken({channel_id:e,thread_ts:t,status:n,loading_messages:r??this.loadingMessages??(this.agentView?[n]:void 0)}))}async setSessionStatus(e,t,n,r){await this._client.apiCall(`agents.sessions.setStatus`,await this.withToken({channel_id:e,thread_ts:t,status:n,...r?.initiatorUserId?{initiator_user_id:r.initiatorUserId}:{},...r?.title?{title:r.title}:{}}))}async renameAgentSession(e,t,n){await this._client.apiCall(`agents.sessions.rename`,await this.withToken({channel_id:e,thread_ts:t,title:n}))}async setAssistantTitle(e,t,n){this.agentView?await this.renameAgentSession(e,t,n):await this._client.assistant.threads.setTitle(await this.withToken({channel_id:e,thread_ts:t,title:n}))}async resolveInlineMentions(e){let t=new Set,n=new Set;return _(e,t,n),Sa(e,await this.lookupMentionNames(t,n))}async lookupMentionNames(e,t){if(e.size===0&&t.size===0)return{channels:new Map,users:new Map};let[n,r]=await Promise.all([Promise.all([...e].map(async e=>[e,(await this.lookupUser(e))?.displayName??e])),Promise.all([...t].map(async e=>[e,await this.lookupChannel(e)]))]),i=new Map(n);return{channels:new Map(r),users:i}}extractLinks(e){let t=new Set;if(e.blocks){for(let n of e.blocks)if(n.type===`rich_text`&&n.elements){for(let e of n.elements)if(e.elements)for(let n of e.elements)n.type===`link`&&n.url&&t.add(n.url)}}if(t.size===0){let n=Xa(e),r=n?n.flatMap(e=>`mrkdwn`in e?[e.mrkdwn]:[]):[e.text??``];for(let e of r)for(let n of e.matchAll(Da)){let e=n[1],r=e.indexOf(`|`);t.add(r>=0?e.slice(0,r):e)}}let n=new Map;if(e.attachments)for(let r of e.attachments){let e=r.from_url||r.original_url;e&&(r.title||r.text)&&(n.set(e,{title:r.title,description:r.text,imageUrl:r.image_url||r.thumb_url,siteName:r.service_name}),t.add(e)),r.title_link&&!u(r)&&t.add(r.title_link)}return[...t].map(e=>{let t=this.createLinkPreview(e),r=n.get(e)||n.get(e.replace(Ca,``))||n.get(`${e}/`);return r?{...t,...r}:t})}createLinkPreview(e){let t=Ea.exec(e);if(!t)return{url:e};let n=t[1],r=t[2],i=`${r.slice(0,r.length-6)}.${r.slice(r.length-6)}`,a=this.encodeThreadId({channel:n,threadTs:i});return{url:e,fetchMessage:async()=>{let t=((await this._client.conversations.history(await this.withToken({channel:n,latest:i,inclusive:!0,limit:1}))).messages||[]).find(e=>e.ts===i);if(!t)throw Error(`Message not found: ${e}`);return this.parseSlackMessage(t,a)}}}detectSelfMention(e,t,n){return f(e,t,n,this.botUserId)}async parseSlackMessage(t,n){let r=this.isMessageFromSelf(t),i=t.text||``,a=t.username||`unknown`,o=t.username||`unknown`,s;if(t.user&&!t.username){let e=await this.lookupUser(t.user);a=e?.displayName??t.user,o=e?.realName??a,s=e?.email}if(t.user&&this.chat)try{let r=`slack:thread-participants:${n}`;(await this.chat.getState().getList(r)).includes(t.user)||await this.chat.getState().appendToList(r,t.user,{maxLength:100,ttlMs:e.REVERSE_INDEX_TTL_MS})}catch(e){this.logger.warn(`Failed to track thread participant`,{threadId:n,userId:t.user,error:e})}let c=h(t).map(p),l=this.detectSelfMention(t,i,c),u=await this.resolvedContent(t,i,c);return new se({id:t.ts||``,threadId:n,text:xe(u),formatted:u,raw:t,isMention:l,author:{userId:t.user||t.bot_profile?.user_id||t.bot_id||`unknown`,userName:a,fullName:o,email:s,isBot:!!t.bot_id,isSystem:t.user===ga,isMe:r},metadata:{dateSent:new Date(Number.parseFloat(t.ts||`0`)*1e3),edited:!!t.edited,editedAt:t.edited?new Date(Number.parseFloat(t.edited.ts)*1e3):void 0},attachments:(t.files||[]).map(e=>this.createAttachment(e,t.team_id??t.team)),links:await this.enrichLinks(this.extractLinks(t),t.channel,t.ts)})}parseSlackTimestamp(e){if(!e)return;let t=Number.parseFloat(e);if(!Number.isNaN(t))return new Date(t*1e3)}async enrichLinks(e,t,n){if(!(this.chat&&t&&n)||e.length===0||e.every(e=>e.title||e.fetchMessage))return e;let r=Date.now()+wa,i=this.chat.getState(),a=null;for(;;){try{a=await i.get(this.unfurlCacheKey(t,n))}catch{return e}if(a||Date.now()>=r)break;await new Promise(e=>setTimeout(e,Ta))}return a?e.map(e=>{if(e.title)return e;let t=a[e.url]||a[e.url.replace(Ca,``)]||a[`${e.url}/`];return t?{...e,...t}:e}):e}createAttachment(e,t){let n=e.url_private,r=this.requestContext.getStore(),i=r?.token,a=r?.enterpriseId,o=r?.isEnterpriseInstall,s=`file`;e.mimetype?.startsWith(`image/`)?s=`image`:e.mimetype?.startsWith(`video/`)?s=`video`:e.mimetype?.startsWith(`audio/`)&&(s=`audio`);let c={};return n&&(c.url=n),t&&(c.teamId=t),a&&(c.enterpriseId=a),o&&(c.isEnterpriseInstall=`true`),{type:s,url:n,name:e.name,mimeType:e.mimetype,size:e.size,width:e.original_w,height:e.original_h,fetchMetadata:Object.keys(c).length>0?c:void 0,fetchData:n?async()=>this.fetchSlackFile(n,()=>i??this.getToken()):void 0}}async fetchSlackFile(e,t){let n;a(e,this.slackApiUrl)&&(n=typeof t==`function`?await t():t);try{return await A(e,{adapter:`slack`,headers:e=>n&&a(e.href,this.slackApiUrl)?{authorization:`Bearer ${n}`}:void 0,transport:this.createFileTransport(),onResponse:t=>{if((t.headers[`content-type`]??``).includes(`text/html`))throw new P(`slack`,`Failed to download file from Slack: received HTML login page instead of file data. Ensure your Slack app has the "files:read" OAuth scope. URL: ${e}`)}})}catch(e){throw e instanceof P?e:new P(`slack`,`Failed to fetch Slack file`,e instanceof Error?e:void 0)}}createFileTransport(){return this.configuredFileTransport}rehydrateAttachment(e){let t=e.fetchMetadata?.url??e.url,n=e.fetchMetadata?.teamId,r=e.fetchMetadata?.enterpriseId,i=e.fetchMetadata?.isEnterpriseInstall===`true`;return t?{...e,fetchData:async()=>this.fetchSlackFile(t,async()=>{let e=i?r:n;if(e){let t=await this.resolveTokenForTeam(e,i);if(!t)throw new M(`slack`,`Installation not found for ${i?`enterprise`:`team`} ${e}`);return t.token}return this.getToken()})}:e}async resolveOutgoingMentions(e,t){if(!this.chat)return e;let n=this.chat.getState(),r=new Map;if(v(e,(e,t)=>(ma.test(t)||r.has(t.toLowerCase())||r.set(t.toLowerCase(),[]),e)),r.size===0)return e;for(let e of r.keys()){let t=await n.getList(`slack:user-by-name:${this.installationCacheScope()}${e}`),i=[...new Set(t)];r.set(e,i)}let i=null;if([...r.values()].some(e=>e.length>1)){let e=await n.getList(`slack:thread-participants:${t}`);i=new Set(e)}return v(e,(e,t)=>{if(ma.test(t))return e;let n=r.get(t.toLowerCase());if(!n||n.length===0)return e;if(n.length===1)return`<@${n[0]}>`;if(i){let e=n.filter(e=>i.has(e));if(e.length===1)return`<@${e[0]}>`}return e})}async resolveMessageMentions(e,t){if(!this.chat)return e;if(typeof e==`string`)return this.resolveOutgoingMentions(e,t);if(typeof e==`object`&&e){if(`raw`in e&&typeof e.raw==`string`)return{...e,raw:await this.resolveOutgoingMentions(e.raw,t)};if(`markdown`in e&&typeof e.markdown==`string`)return{...e,markdown:await this.resolveOutgoingMentions(e.markdown,t)}}return e}async postMessage(e,t){let n=await this.resolveMessageMentions(t,e),{channel:r,threadTs:i}=this.decodeThreadId(e),a=i||void 0;try{let t,i=E(n);if(i.length>0){t=await this.uploadFiles(i,r,a);let o=typeof n==`string`||typeof n==`object`&&!!n&&(`raw`in n&&n.raw||`markdown`in n&&n.markdown||`ast`in n&&n.ast),s=T(n);if(!(o||s))return{id:`file-${Date.now()}`,threadId:e,raw:{files:i,uploadedFileIds:t}}}let o=T(n);if(o){let n=Ar(o),i=Si(o);this.logger.debug(`Slack API: chat.postMessage (blocks)`,{channel:r,threadTs:a,blockCount:n.length});let s;try{s=await this._client.chat.postMessage(await this.withToken({channel:r,thread_ts:a,text:i,blocks:n,unfurl_links:!1,unfurl_media:!1}))}catch(e){throw ba(e,n,this.logger)}return this.logger.debug(`Slack API: chat.postMessage response`,{messageId:s.ts,ok:s.ok}),{id:s.ts,threadId:e,raw:t===void 0?s:{...s,uploadedFileIds:t}}}let s=this.formatConverter.toSlackPayload(n);this.logger.debug(`Slack API: chat.postMessage`,{channel:r,threadTs:a,payloadKey:`markdown_text`in s?`markdown_text`:`text`});let c=await this._client.chat.postMessage(await this.withToken({channel:r,thread_ts:a,...s,unfurl_links:!1,unfurl_media:!1}));return this.logger.debug(`Slack API: chat.postMessage response`,{messageId:c.ts,ok:c.ok}),{id:c.ts,threadId:e,raw:t===void 0?c:{...c,uploadedFileIds:t}}}catch(e){this.handleSlackError(e)}}async postEphemeral(e,t,n){let r=await this.resolveMessageMentions(n,e),{channel:i,threadTs:a}=this.decodeThreadId(e),o=a||void 0;try{let n=T(r);if(n){let r=Ar(n),a=Si(n);this.logger.debug(`Slack API: chat.postEphemeral (blocks)`,{channel:i,threadTs:o,userId:t,blockCount:r.length});let s=await this._client.chat.postEphemeral(await this.withToken({channel:i,thread_ts:o,user:t,text:a,blocks:r}));return this.logger.debug(`Slack API: chat.postEphemeral response`,{messageTs:s.message_ts,ok:s.ok}),{id:s.message_ts||``,threadId:e,usedFallback:!1,raw:s}}let a=this.formatConverter.toSlackPayload(r);this.logger.debug(`Slack API: chat.postEphemeral`,{channel:i,threadTs:o,userId:t,payloadKey:`markdown_text`in a?`markdown_text`:`text`});let s=await this._client.chat.postEphemeral(await this.withToken({channel:i,thread_ts:o,user:t,...a}));return this.logger.debug(`Slack API: chat.postEphemeral response`,{messageTs:s.message_ts,ok:s.ok}),{id:s.message_ts||``,threadId:e,usedFallback:!1,raw:s}}catch(e){this.handleSlackError(e)}}async scheduleMessage(e,t,n){let r=await this.resolveMessageMentions(t,e),{channel:i,threadTs:a}=this.decodeThreadId(e),o=a||void 0,s=Math.floor(n.postAt.getTime()/1e3);if(s<=Math.floor(Date.now()/1e3))throw new k(`slack`,`postAt must be in the future`);if(E(r).length>0)throw new k(`slack`,`File uploads are not supported in scheduled messages`);let c=this.requestContext.getStore()?.token,l=c?()=>Promise.resolve(c):()=>this.getToken(),u=c??await this.getToken();try{let e=T(r);if(e){let t=Ar(e),r=Si(e);this.logger.debug(`Slack API: chat.scheduleMessage (blocks)`,{channel:i,threadTs:o,postAt:s,blockCount:t.length});let a=await this._client.chat.scheduleMessage({token:u,channel:i,thread_ts:o,post_at:s,text:r,blocks:t,unfurl_links:!1,unfurl_media:!1}),c=a.scheduled_message_id,d=this;return{scheduledMessageId:c,channelId:i,postAt:n.postAt,raw:a,async cancel(){await d._client.chat.deleteScheduledMessage({token:await l(),channel:i,scheduled_message_id:c})}}}let t=this.formatConverter.toSlackPayload(r);this.logger.debug(`Slack API: chat.scheduleMessage`,{channel:i,threadTs:o,postAt:s,payloadKey:`markdown_text`in t?`markdown_text`:`text`});let a=await this._client.chat.scheduleMessage({token:u,channel:i,thread_ts:o,post_at:s,...t,unfurl_links:!1,unfurl_media:!1}),c=a.scheduled_message_id,d=this;return{scheduledMessageId:c,channelId:i,postAt:n.postAt,raw:a,async cancel(){await d._client.chat.deleteScheduledMessage({token:await l(),channel:i,scheduled_message_id:c})}}}catch(e){this.handleSlackError(e)}}async openModal(e,t,n){let r=Ii(t,Pi({contextId:n,privateMetadata:t.privateMetadata}));this.logger.debug(`Slack API: views.open`,{triggerId:e,callbackId:t.callbackId});try{let t=await this._client.views.open(await this.withToken({trigger_id:e,view:r}));return this.logger.debug(`Slack API: views.open response`,{viewId:t.view?.id,ok:t.ok}),{viewId:t.view?.id}}catch(e){this.handleSlackError(e)}}async updateModal(e,t){let n=Ii(t);this.logger.debug(`Slack API: views.update`,{viewId:e,callbackId:t.callbackId});try{let t=await this._client.views.update(await this.withToken({view_id:e,view:n}));return this.logger.debug(`Slack API: views.update response`,{viewId:t.view?.id,ok:t.ok}),{viewId:t.view?.id}}catch(e){this.handleSlackError(e)}}async uploadFiles(e,t,n){let r=(await Promise.all(e.map(async e=>{try{let t=await D(e.data,{platform:`slack`});return t?{file:t,filename:e.filename}:null}catch(t){return this.logger.error(`Failed to convert file to buffer`,{filename:e.filename,error:t}),null}}))).filter(e=>e!==null);if(r.length===0)return[];this.logger.debug(`Slack API: files.uploadV2 (batch)`,{fileCount:r.length,filenames:r.map(e=>e.filename)});let i={channel_id:t,file_uploads:r};n&&(i.thread_ts=n),i.token=await this.getToken();let a=await this._client.files.uploadV2(i);this.logger.debug(`Slack API: files.uploadV2 response`,{ok:a.ok});let o=[];if(a.files?.[0]?.files)for(let e of a.files[0].files)e.id&&o.push(e.id);return o}async editMessage(e,t,n){let r=await this.resolveMessageMentions(n,e),i=this.decodeEphemeralMessageId(t);if(i){let{threadTs:t}=this.decodeThreadId(e),n=await this.sendToResponseUrl(i.responseUrl,`replace`,{message:r,threadTs:t});return{id:i.messageTs,threadId:e,raw:{ephemeral:!0,...n}}}if(t.startsWith(`ephemeral:`))throw new k(`slack`,`Invalid Slack ephemeral message ID`);let{channel:a}=this.decodeThreadId(e);try{let n=T(r);if(n){let r=Ar(n),i=Si(n);this.logger.debug(`Slack API: chat.update (blocks)`,{channel:a,messageId:t,blockCount:r.length});let o=await this._client.chat.update(await this.withToken({channel:a,ts:t,text:i,blocks:r}));return this.logger.debug(`Slack API: chat.update response`,{messageId:o.ts,ok:o.ok}),{id:o.ts,threadId:e,raw:o}}let i=this.formatConverter.toSlackPayload(r);this.logger.debug(`Slack API: chat.update`,{channel:a,messageId:t,payloadKey:`markdown_text`in i?`markdown_text`:`text`});let o=await this._client.chat.update(await this.withToken({channel:a,ts:t,...i}));return this.logger.debug(`Slack API: chat.update response`,{messageId:o.ts,ok:o.ok}),{id:o.ts,threadId:e,raw:o}}catch(e){this.handleSlackError(e)}}async postObject(e,t,n){if(t!==`plan`)return this.postMessage(e,`[${t}]`);let r=n,{channel:i,threadTs:a}=this.decodeThreadId(e),o=this.renderPlanFallbackText(r),s=this.planToBlockKit(r);try{this.logger.debug(`Slack API: chat.postMessage (plan)`,{channel:i,threadTs:a,blockCount:s.length});let t=await this._client.chat.postMessage(await this.withToken({channel:i,thread_ts:a,text:o,blocks:s,unfurl_links:!1,unfurl_media:!1}));return{id:t.ts,threadId:e,raw:t}}catch(e){this.handleSlackError(e)}}async editObject(e,t,n,r){if(n!==`plan`)return this.editMessage(e,t,`[${n}]`);let i=r,{channel:a}=this.decodeThreadId(e),o=this.renderPlanFallbackText(i),s=this.planToBlockKit(i);try{this.logger.debug(`Slack API: chat.update (plan)`,{channel:a,messageId:t,blockCount:s.length});let n=await this._client.chat.update(await this.withToken({channel:a,ts:t,text:o,blocks:s}));return{id:n.ts,threadId:e,raw:n}}catch(e){this.handleSlackError(e)}}renderPlanFallbackText(e){let t=[];t.push(e.title||`Plan`);for(let n of e.tasks)t.push(`- (${n.status}) ${n.title}`);return t.join(`
|
|
65
|
+
`}function Na(e={}){return{type:`context_actions`,elements:[{type:`feedback_buttons`,action_id:e.actionId??`message_feedback`,positive_button:{text:{type:`plain_text`,text:e.positiveLabel??`Good response`},value:e.positiveValue??`positive`},negative_button:{text:{type:`plain_text`,text:e.negativeLabel??`Bad response`},value:e.negativeValue??`negative`}}]}}var Pa=4,Fa=new Set([`feature_not_enabled`,`method_deprecated`,`unknown_method`]);function Ia(e){let t=e;return t?.code===`slack_webapi_platform_error`?t.data?.error:void 0}function La(e){if(e!==void 0)return typeof e==`function`?e:()=>e}function Ra(e){let t=e.blocks??[],n=t.findIndex(e=>!s.has(e.type)),r=n===-1?t.length:n,i=e=>e.flatMap(e=>{let t=d(e);return t?[t]:[]});return{leading:i(t.slice(0,r)),trailing:i(t.slice(r))}}function za(e,t){let n=[],r=e=>{for(let t of e.rows)for(let e of t)e&&n.push(e)};if(`body`in e)for(let t of e.body)`table`in t?r(t.table):`mrkdwn`in t&&n.push(t.mrkdwn);else{n.push(e.text);for(let t of[...e.tables.leading,...e.tables.trailing])r(t)}for(let e of t){for(let t of e.parts)`mrkdwn`in t&&n.push(t.mrkdwn);for(let t of e.tables)r(t)}return n}var Ba=new Set([`actions`,`context`,`divider`,`header`,`image`,`section`,...s]);function Va(e){let t=e.blocks??[];if(!t.every(e=>Ba.has(e.type)))return null;let n=[],r=e=>{if(!m(e)||typeof e.text!=`string`)return;let t=e.text.trim();t&&(e.type===`mrkdwn`?n.push({mrkdwn:t}):e.type===`plain_text`&&n.push({literal:S(t)}))},i=e=>{if(Array.isArray(e))for(let t of e)r(t)};for(let e of t)if(e.type===`section`)r(e.text),i(e.fields);else if(e.type===`header`)r(e.text);else if(e.type===`context`)i(e.elements);else if(e.type===`image`)r(e.title);else{let t=d(e);t&&n.push({table:t})}return n.some(e=>!(`table`in e))?n:null}function Ha(e,t){let n=new Set,r=new Set;for(let t of e)for(let e of t.rows)for(let t of e)_(t,n,r);for(let e of t)_(`mrkdwn`in e?e.mrkdwn:e.literal,n,r);return{channelIds:r,userIds:n}}function Ua(e){let t=[],n=[],r=()=>{n.length>0&&(t.push({type:`paragraph`,children:n}),n=[])};for(let t of e.split(`
|
|
66
|
+
`))t.trim()?(n.length>0&&n.push({type:`break`}),n.push(...Wa(t))):r();return r(),t}function Wa(e){let t=[],n=``,r=()=>{n&&=(t.push({type:`text`,value:x(n)}),``)},i=e;for(;i.length>0;){let e=i.indexOf(`<`),a=e===-1?-1:i.indexOf(`>`,e+1);if(a===-1){n+=i;break}n+=i.slice(0,e);let o=i.slice(e,a+1),s=i.slice(e+1,a);i=i.slice(a+1);let c=s.indexOf(`|`),l=c===-1?s:s.slice(0,c),u=c===-1?void 0:s.slice(c+1),d=l.slice(1);l.startsWith(`@`)&&g.test(d)?n+=`@${u??d}`:l.startsWith(`#`)&&g.test(d)?n+=u?`#${u} (${d})`:`#${d}`:ya.test(l)?(r(),t.push({type:`link`,url:l,children:[{type:`text`,value:u?x(u):l}]})):n+=o}return r(),t}var Ga=class e{name=`slack`;userName;supportsTurnCancellation;_client;tokenClientCache=new Map;slackApiUrl;webClientOptions;fetch;configuredFileTransport;signingSecret;webhookVerifier;defaultBotTokenProvider;chat=null;logger;_botUserId=null;_botId=null;formatConverter=new Ci;static USER_CACHE_TTL_MS=6912e5;static CHANNEL_CACHE_TTL_MS=6912e5;static REVERSE_INDEX_TTL_MS=6912e5;static EVENT_DEDUPE_TTL_MS=864e5;_externalChannels=new Set;appToken;agentView;sessionTitle;suggestedPrompts;loadingMessages;feedbackButtons;nativeStreaming;streamSegmentMaxAgeMs;nativeStreamingBroken=!1;mode;socketForwardingSecret;socketClient=null;clientId;clientSecret;encryptionKey;installationKeyPrefix;installationProvider;requestContext=new je;get botUserId(){let e=this.requestContext.getStore();return e?.botUserId?e.botUserId:this._botUserId||void 0}get isSocketMode(){return this.mode===`socket`}get webClient(){let e=this.requestContext.getStore();if(e?.token)return this.getClientForToken(e.token);if(this.defaultBotTokenProvider){let e=this.defaultBotTokenProvider();if(typeof e==`string`)return this.getClientForToken(e);throw new M(`slack`,"botToken is configured as an async resolver and cannot be resolved synchronously for `.webClient`. Wrap the work in `adapter.withBotToken(token, () => adapter.webClient...)` after awaiting the token.")}throw new M(`slack`,"No bot token available. In multi-workspace mode, ensure the webhook is being processed or use `adapter.withBotToken(token, fn)` to bind a token explicitly.")}get client(){return this.webClient}getClientForToken(e){let t=this.tokenClientCache.get(e);return t||(t=new mr.WebClient(e,{...this.webClientOptions,...this.webClientOptions?.headers?{headers:{...this.webClientOptions.headers}}:{},...this.slackApiUrl?{slackApiUrl:this.slackApiUrl}:{}}),this.tokenClientCache.set(e,t)),t}constructor(e={}){let t=e.webhookVerifier,n=t?void 0:e.signingSecret??process.env.SLACK_SIGNING_SECRET;if(!(n||t)&&(e.mode??`webhook`)===`webhook`)throw new k(`slack`,`signingSecret or webhookVerifier is required for webhook mode. Set SLACK_SIGNING_SECRET, provide signingSecret in config, or provide a webhookVerifier.`);let r=!(e.signingSecret||e.botToken||e.clientId||e.clientSecret),i=La(e.botToken??(r?process.env.SLACK_BOT_TOKEN:void 0));this.slackApiUrl=e.apiUrl??process.env.SLACK_API_URL,this.webClientOptions=e.webClientOptions,this.fetch=e.fetch??((...e)=>globalThis.fetch(...e)),this.configuredFileTransport=e.fileTransport,this._client=new mr.WebClient(void 0,{...this.webClientOptions,...this.webClientOptions?.headers?{headers:{...this.webClientOptions.headers}}:{},...this.slackApiUrl?{slackApiUrl:this.slackApiUrl}:{}}),this.signingSecret=n,this.webhookVerifier=t,this.defaultBotTokenProvider=i,this.logger=e.logger??new we(`info`).child(`slack`),this.userName=e.userName||`bot`,this._botUserId=e.botUserId||null,this.appToken=e.appToken,this.agentView=e.agentView??!1,this.supportsTurnCancellation=this.agentView,this.sessionTitle=e.sessionTitle??this.agentView,this.suggestedPrompts=e.suggestedPrompts,this.loadingMessages=e.loadingMessages,this.nativeStreaming=e.nativeStreaming??!0;let a=e.streamSegmentMaxAgeMs;this.streamSegmentMaxAgeMs=a!==void 0&&a>0?a:ba,e.feedbackButtons&&(this.feedbackButtons=e.feedbackButtons===!0?{}:e.feedbackButtons),this.mode=e.mode??`webhook`,this.socketForwardingSecret=e.socketForwardingSecret??e.appToken,this.clientId=e.clientId??(r?process.env.SLACK_CLIENT_ID:void 0),this.clientSecret=e.clientSecret??(r?process.env.SLACK_CLIENT_SECRET:void 0),this.installationKeyPrefix=e.installationKeyPrefix??`slack:installation`;let o=e.encryptionKey??process.env.SLACK_ENCRYPTION_KEY;o&&(this.encryptionKey=F(o)),this.installationProvider=e.installationProvider}async getToken(){let e=this.requestContext.getStore();if(e?.token)return e.token;if(this.defaultBotTokenProvider)return await this.defaultBotTokenProvider();throw new M(`slack`,`No bot token available. In multi-workspace mode, ensure the webhook is being processed.`)}getConcurrencyScope(){if(this.defaultBotTokenProvider)return;let e=this.requestContext.getStore();if(e?.installationId)return JSON.stringify([`installation`,e.installationId]);if(e?.token)return JSON.stringify([`token`,Me(`sha256`).update(e.token).digest(`hex`)]);throw new M(`slack`,`No installation context available. Process a verified webhook or use withBotToken with installationId before handling messages or cancelling turns.`)}async withToken(e){let t=this.requestContext.getStore(),n={};return t?.isEnterpriseInstall&&t.teamId&&e.team_id===void 0&&(n.team_id=t.teamId),t?.contextTeamId&&e.channel!==void 0&&e.channel===t.contextChannel&&e.client_context_team_id===void 0&&(n.client_context_team_id=t.contextTeamId),{...e,...n,token:await this.getToken()}}async initialize(e){if(this.chat=e,this.defaultBotTokenProvider&&!this._botUserId)try{let e=await this._client.auth.test(await this.withToken({}));this._botUserId=e.user_id,this._botId=e.bot_id||null,e.user&&(this.userName=e.user),this.logger.info(`Slack auth completed`,{botUserId:this._botUserId,botId:this._botId})}catch(e){this.logger.warn(`Could not fetch bot user ID`,{error:e})}this.defaultBotTokenProvider||this.logger.info(`Slack adapter initialized in multi-workspace mode`),this.mode===`socket`&&await this.startSocketMode()}installationKey(e){return`${this.installationKeyPrefix}:${e}`}async setInstallation(e,t){if(!this.chat)throw new k(`slack`,`Adapter not initialized. Ensure chat.initialize() has been called first.`);let n=this.chat.getState(),r=this.installationKey(e),i=this.encryptionKey?{...t,botToken:L(t.botToken,this.encryptionKey)}:t;await n.set(r,i),this.logger.info(`Slack installation saved`,{teamId:e,teamName:t.teamName})}async getInstallation(e){if(!this.chat)throw new k(`slack`,`Adapter not initialized. Ensure chat.initialize() has been called first.`);let t=this.chat.getState(),n=this.installationKey(e),r=await t.get(n);return r?this.encryptionKey&&j(r.botToken)?{...r,botToken:w(r.botToken,this.encryptionKey)}:r:null}async handleOAuthCallback(e,t){if(!(this.clientId&&this.clientSecret))throw new k(`slack`,`clientId and clientSecret are required for OAuth. Pass them in createSlackAdapter().`);let n=new URL(e.url),r=n.searchParams.get(`code`);if(!r)throw new k(`slack`,`Missing 'code' query parameter in OAuth callback request.`);let i=t?.redirectUri??n.searchParams.get(`redirect_uri`)??void 0,a=await this._client.oauth.v2.access({client_id:this.clientId,client_secret:this.clientSecret,code:r,...i?{redirect_uri:i}:{}}),o=!!a.is_enterprise_install,s=a.enterprise?.id,c=o?s:a.team?.id;if(!(a.ok&&a.access_token&&c)){let e=o?`missing access_token or enterprise.id`:`missing access_token or team.id`;throw new M(`slack`,`Slack OAuth failed: ${a.error||e}`)}let l={botToken:a.access_token,botUserId:a.bot_user_id,teamName:a.team?.name??a.enterprise?.name,...s?{enterpriseId:s}:{},...o?{isEnterpriseInstall:o}:{}};return await this.setInstallation(c,l),{teamId:c,enterpriseId:s,isEnterpriseInstall:o,installation:l}}async deleteInstallation(e){if(!this.chat)throw new k(`slack`,`Adapter not initialized. Ensure chat.initialize() has been called first.`);await this.chat.getState().delete(this.installationKey(e)),this.logger.info(`Slack installation deleted`,{teamId:e})}withBotToken(e,t,n){return this.requestContext.run({token:e,installationId:n?.installationId,botUserId:n?.botUserId},t)}async resolveTokenForTeam(e,t=!1){try{if(this.installationProvider){let n=await this.installationProvider.getInstallation(e,t);return n?{token:n.botToken,botUserId:n.botUserId}:(this.logger.warn(`No installation found from provider`,{installationId:e,isEnterpriseInstall:t}),null)}let n=await this.getInstallation(e);return n?{token:n.botToken,botUserId:n.botUserId}:(this.logger.warn(`No installation found for team`,{installationId:e,isEnterpriseInstall:t}),null)}catch(n){return this.logger.error(`Failed to resolve token for team`,{installationId:e,isEnterpriseInstall:t,error:n}),null}}extractInstallationFromInteractive(e){try{let t=new URLSearchParams(e).get(`payload`);return t?this.extractInstallationFromInteractivePayload(JSON.parse(t)):null}catch{return null}}extractInstallationFromInteractivePayload(e){let t=e.is_enterprise_install===!0||e.is_enterprise_install===`true`,n=e.enterprise,r=e.team,i=n?.id||e.enterprise_id||void 0,a=r?.id||e.team_id||void 0,o=t?i:a;return o?{installationId:o,isEnterpriseInstall:t,enterpriseId:i,teamId:a}:null}extractInstallationFromEvent(e){let t=e.authorizations?.[0],n=!!(t?.is_enterprise_install??e.is_enterprise_install),r=(t?.enterprise_id||e.enterprise_id)??void 0,i=(t?.team_id||e.team_id)??void 0,a=n?r:i;return a?{installationId:a,isEnterpriseInstall:n,enterpriseId:r,teamId:i}:null}async resolveEventRequestContext(e){if(this.defaultBotTokenProvider||e.type!==`event_callback`||wa.has(e.event?.type??``))return`not-applicable`;let t=this.extractInstallationFromEvent(e);if(!t)return`not-applicable`;let{enterpriseId:n,installationId:r,isEnterpriseInstall:i,teamId:a}=t,o=await this.resolveTokenForTeam(r,i);if(!o)return this.logger.warn(`Could not resolve token for installation`,{installationId:r,isEnterpriseInstall:i}),`unresolved`;let s=e.event;return{...o,enterpriseId:n,isEnterpriseInstall:i,installationId:r,teamId:a,contextTeamId:e.context_team_id,contextChannel:s?.channel}}installationCacheScope(){let e=this.requestContext.getStore()?.installationId;return e?`${e}:`:``}unfurlCacheKey(e,t){return`slack:unfurls:${this.installationCacheScope()}${e}:${t}`}async lookupUser(t){let n=`slack:user:${this.installationCacheScope()}${t}`;if(this.chat){let e=await this.chat.getState().get(n);if(e)return e}try{let r=(await this._client.users.info(await this.withToken({user:t}))).user,i=r?.profile?.display_name||r?.profile?.real_name||r?.real_name||r?.name||t,a=r?.real_name||r?.profile?.real_name||i,o={avatarUrl:r?.profile?.image_192,displayName:i,email:r?.profile?.email,isBot:r?.is_bot,realName:a};if(this.chat){await this.chat.getState().set(n,o,e.USER_CACHE_TTL_MS);let r=i.toLowerCase(),a=`slack:user-by-name:${this.installationCacheScope()}${r}`;(await this.chat.getState().getList(a)).includes(t)||await this.chat.getState().appendToList(a,t,{maxLength:50,ttlMs:e.REVERSE_INDEX_TTL_MS})}return this.logger.debug(`Fetched user info`,{userId:t,displayName:i,realName:a}),o}catch(e){return this.logger.warn(`Could not fetch user info`,{userId:t,error:e}),null}}async lookupChannel(t){let n=`slack:channel:${this.installationCacheScope()}${t}`;if(this.chat){let e=await this.chat.getState().get(n);if(e)return e.name}try{let r=(await this._client.conversations.info(await this.withToken({channel:t}))).channel?.name||t;return this.chat&&await this.chat.getState().set(n,{name:r},e.CHANNEL_CACHE_TTL_MS),this.logger.debug(`Fetched channel info`,{channelId:t,name:r}),r}catch(e){return this.logger.warn(`Could not fetch channel info`,{channelId:t,error:e}),t}}async getUser(e){try{let t=await this.lookupUser(e);return t?{avatarUrl:t.avatarUrl,email:t.email,fullName:t.realName,isBot:t.isBot??!1,userId:e,userName:t.displayName}:null}catch{return null}}async handleWebhook(e,t){let n=e.headers.get(`x-slack-socket-token`);if(n){if(!(this.socketForwardingSecret&&la(n,this.socketForwardingSecret)))return this.logger.warn(`Invalid socket forwarding token`),new Response(`Invalid socket token`,{status:401});this.logger.info(`Slack forwarded socket event received`);try{let n=await e.text(),r=JSON.parse(n);return await this.routeSocketEvent(r.body,r.eventType,async()=>{},t,r.retryNum),new Response(`ok`,{status:200})}catch{return new Response(`Invalid JSON`,{status:400})}}if(this.mode===`socket`)return new Response(`Webhooks are disabled in socket mode`,{status:405});let r;try{r=await o(e,{signingSecret:this.signingSecret,webhookVerifier:this.webhookVerifier})}catch(e){return this.logger.warn(`Webhook verifier rejected request`,{error:e}),new Response(`Invalid signature`,{status:401})}if(this.logger.debug(`Slack webhook received`,{bodyLength:Buffer.byteLength(r)}),(e.headers.get(`content-type`)||``).includes(`application/x-www-form-urlencoded`)){let e=new URLSearchParams(r);if(e.has(`command`)&&!e.has(`payload`))return this.runSlashCommand(e,t);if(!this.defaultBotTokenProvider){let e=this.extractInstallationFromInteractive(r);if(e){let n=await this.resolveTokenForTeam(e.installationId,e.isEnterpriseInstall);if(n)return this.requestContext.run({...n,enterpriseId:e.enterpriseId,isEnterpriseInstall:e.isEnterpriseInstall,installationId:e.installationId,teamId:e.teamId},()=>this.handleInteractivePayload(r,t))}return this.logger.warn(`Could not resolve token for interactive payload`),new Response(``,{status:200})}return this.handleInteractivePayload(r,t)}let i;try{i=JSON.parse(r)}catch{return new Response(`Invalid JSON`,{status:400})}if(i.type===`url_verification`&&i.challenge)return Response.json({challenge:i.challenge});let a=Number(e.headers.get(`x-slack-retry-num`)??`0`);if(await this.isDuplicateEventDelivery(i,a))return new Response(`ok`,{status:200});let s=await this.resolveEventRequestContext(i);return s===`unresolved`?new Response(`ok`,{status:200}):s===`not-applicable`?(this.processEventPayload(i,t),new Response(`ok`,{status:200})):this.requestContext.run(s,()=>(this.processEventPayload(i,t),new Response(`ok`,{status:200})))}async runSlashCommand(e,t){if(!this.defaultBotTokenProvider){let n=e.get(`is_enterprise_install`)===`true`,r=n?e.get(`enterprise_id`):e.get(`team_id`);if(r){let i=await this.resolveTokenForTeam(r,n);if(i)return this.requestContext.run({...i,enterpriseId:e.get(`enterprise_id`)??void 0,isEnterpriseInstall:n,installationId:r,teamId:e.get(`team_id`)??void 0},()=>this.handleSlashCommand(e,t));this.logger.warn(`Could not resolve token for slash command`,{installationId:r,isEnterpriseInstall:n})}return new Response(``,{status:200})}return this.handleSlashCommand(e,t)}markEventDelivered(t){let n=t.event_id;n&&this.chat&&this.chat.getState().set(`slack:event-delivered:${n}`,!0,e.EVENT_DEDUPE_TTL_MS).catch(()=>{})}async isDuplicateEventDelivery(e,t){let n=e.event_id;if(!(n&&this.chat&&t&&t>0))return!1;try{if(await this.chat.getState().get(`slack:event-delivered:${n}`))return this.logger.info(`Skipping duplicate event delivery`,{eventId:n,retryNum:t}),!0}catch{}return!1}processEventPayload(e,t){if(e.type===`event_callback`&&e.event){this.markEventDelivered(e);let n=e.event;if(e.is_ext_shared_channel){let e;`channel`in n?e=n.channel:`item`in n&&(e=n.item.channel),e&&this._externalChannels.add(e)}if(n.type===`message`||n.type===`app_mention`){let r=n;!(r.team||r.team_id)&&e.team_id&&(r.team_id=e.team_id),this.handleMessageEvent(r,t)}else if(n.type===`reaction_added`||n.type===`reaction_removed`){let e=this.handleReactionEvent(n,t);t?.waitUntil?.(e)}else if(n.type===`assistant_thread_started`)this.handleAssistantThreadStarted(n,t);else if(n.type===`assistant_thread_context_changed`)this.handleAssistantContextChanged(n,t);else if(n.type===`agent_session_stopped`)this.handleAgentSessionStopped(n,t);else if(n.type===`agent_session_title_changed`)this.handleAgentSessionTitleChanged(n,t);else if(n.type===`app_context_changed`)this.handleAppContextChanged(n,t);else if(n.type===`app_home_opened`){let r=n;if(this.agentView||r.tab===`home`){let n=e.authorizations?.[0]?.team_id||e.team_id||void 0;this.handleAppHomeOpened(r,t,n)}}else n.type===`member_joined_channel`?this.handleMemberJoinedChannel(n,t):n.type===`app_uninstalled`?this.handleAppUninstalled(e,t):n.type===`user_change`&&this.handleUserChange(n)}}handleInteractivePayload(e,t){let n=new URLSearchParams(e).get(`payload`);if(!n)return new Response(`Missing payload`,{status:400});let r;try{r=JSON.parse(n)}catch{return new Response(`Invalid payload JSON`,{status:400})}return this.dispatchInteractivePayload(r,t)}dispatchInteractivePayload(e,t){switch(e.type){case`block_actions`:return this.handleBlockActions(e,t),new Response(``,{status:200});case`block_suggestion`:return this.handleBlockSuggestion(e,t);case`view_submission`:return this.handleViewSubmission(e,t);case`view_closed`:return this.handleViewClosed(e,t),new Response(``,{status:200});default:return new Response(``,{status:200})}}async handleSlashCommand(e,t){if(!this.chat)return this.logger.warn(`Chat instance not initialized, ignoring slash command`),new Response(``,{status:200});let n=e.get(`command`)||``,r=e.get(`text`)||``,i=e.get(`user_id`)||``,a=e.get(`channel_id`)||``,o=e.get(`trigger_id`)||void 0;this.logger.debug(`Processing Slack slash command`,{command:n,text:r,userId:i,channelId:a,triggerId:o});let s=await this.lookupUser(i),c={command:n,text:r,user:{userId:i,userName:s?.displayName??i,fullName:s?.realName??i,isBot:!1,isMe:!1},adapter:this,raw:Object.fromEntries(e),triggerId:o,channelId:a?`slack:${a}`:``};return this.chat.processSlashCommand(c,t),new Response(``,{status:200})}handleBlockActions(e,t){if(!this.chat){this.logger.warn(`Chat instance not initialized, ignoring action`);return}let n=e.channel?.id||e.container?.channel_id,r=e.message?.ts||e.container?.message_ts,i=e.message?.thread_ts||e.container?.thread_ts||r;if(!(e.container?.type===`view`||n)){this.logger.warn(`Missing channel in block_actions`,{channel:n});return}let a=n&&(i||r)?this.encodeThreadId({channel:n,threadTs:i||r||``}):``,o=e.container?.is_ephemeral===!0,s=e.response_url,c=o&&s&&r?this.encodeEphemeralMessageId(r,s,e.user.id):r||``;for(let n of e.actions){let i=n.selected_option?.value??n.value,o={actionId:n.action_id,value:i,user:{userId:e.user.id,userName:e.user.username||e.user.name||`unknown`,fullName:e.user.name||e.user.username||`unknown`,isBot:!1,isMe:!1},messageId:c,threadId:a,adapter:this,raw:e,triggerId:e.trigger_id};this.logger.debug(`Processing Slack block action`,{actionId:n.action_id,value:n.value,messageId:r,threadId:a,triggerId:e.trigger_id}),this.chat.processAction(o,t)}}async handleBlockSuggestion(e,t){if(!this.chat)return this.logger.warn(`Chat instance not initialized, ignoring block suggestion`),this.optionsLoadResponse([]);let n=this.chat.processOptionsLoad({actionId:e.action_id,query:e.value??``,user:{userId:e.user.id,userName:e.user.username||e.user.name||e.user.id,fullName:e.user.name||e.user.username||e.user.id,isBot:!1,isMe:!1},adapter:this,raw:e},t),r=Symbol(`options_load_timeout`),i,a=new Promise(e=>{i=setTimeout(()=>e(r),ca)}),o=await Promise.race([n,a]);return i&&clearTimeout(i),o===r?(this.logger.warn(`Options load handler timed out`,{actionId:e.action_id,timeoutMs:ca}),n.catch(t=>this.logger.error(`Options load handler error after timeout`,{error:t,actionId:e.action_id})),this.optionsLoadResponse([])):this.optionsLoadResponse(o??[])}optionsLoadResponse(e){if(e.length>0&&`options`in e[0]&&Array.isArray(e[0].options)){let t=e.slice(0,100).map(e=>({label:{type:`plain_text`,text:e.label.slice(0,75)},options:e.options.slice(0,100).map(ki)}));return new Response(JSON.stringify({option_groups:t}),{status:200,headers:{"Content-Type":`application/json`}})}let t=e.slice(0,100).map(ki);return new Response(JSON.stringify({options:t}),{status:200,headers:{"Content-Type":`application/json`}})}async handleViewSubmission(e,t){if(!this.chat)return this.logger.warn(`Chat instance not initialized, ignoring view submission`),new Response(``,{status:200});let n={};for(let t of Object.values(e.view.state.values))for(let[e,r]of Object.entries(t))n[e]=r.value??r.selected_date??r.selected_option?.value??``;let{contextId:r,privateMetadata:i}=Ei(e.view.private_metadata||void 0),a={callbackId:e.view.callback_id,viewId:e.view.id,values:n,privateMetadata:i,user:{userId:e.user.id,userName:e.user.username||e.user.name||`unknown`,fullName:e.user.name||e.user.username||`unknown`,isBot:!1,isMe:!1},adapter:this,raw:e},o=await this.chat.processModalSubmit(a,r,t);if(o){let e=this.modalResponseToSlack(o,r);return new Response(JSON.stringify(e),{status:200,headers:{"Content-Type":`application/json`}})}return new Response(``,{status:200})}handleViewClosed(e,t){if(!this.chat){this.logger.warn(`Chat instance not initialized, ignoring view closed`);return}let{contextId:n,privateMetadata:r}=Ei(e.view.private_metadata||void 0),i={callbackId:e.view.callback_id,viewId:e.view.id,privateMetadata:r,user:{userId:e.user.id,userName:e.user.username||e.user.name||`unknown`,fullName:e.user.name||e.user.username||`unknown`,isBot:!1,isMe:!1},adapter:this,raw:e};this.chat.processModalClose(i,n,t)}modalResponseToSlack(e,t){switch(e.action){case`close`:return{};case`clear`:return{response_action:`clear`};case`errors`:return{response_action:`errors`,errors:e.errors};case`update`:{let n=this.convertModalJSX(e.modal);return{response_action:`update`,view:Di(n,Ti({contextId:t,privateMetadata:n.privateMetadata}))}}case`push`:{let n=this.convertModalJSX(e.modal);return{response_action:`push`,view:Di(n,Ti({contextId:t,privateMetadata:n.privateMetadata}))}}default:return{}}}convertModalJSX(e){if(Oe(e)){let t=se(e);if(!t)throw new k(`slack`,`Invalid JSX element: must be a Modal element`);return t}return e}socketTransportOptions(){let e={};return this.webClientOptions?.agent&&(e.agent=this.webClientOptions.agent),this.webClientOptions?.tls&&(e.tls=this.webClientOptions.tls),this.slackApiUrl&&(e.slackApiUrl=this.slackApiUrl),Object.keys(e).length>0?{clientOptions:e}:{}}postJson(e,t,n={}){return this.fetch(e,{method:`POST`,headers:{"Content-Type":`application/json`,...n},body:JSON.stringify(t)})}async startSocketMode(){if(!this.appToken)throw new k(`slack`,`appToken is required for socket mode. Set SLACK_APP_TOKEN or provide it in config.`);this.socketClient=new pr.SocketModeClient({appToken:this.appToken,...this.socketTransportOptions()}),this.socketClient.on(`slack_event`,async({ack:e,body:t,type:n,retry_num:r,retry_reason:i})=>{r&&r>0&&this.logger.info(`Processing socket mode retry`,{retry_num:r,retry_reason:i,type:n}),await this.routeSocketEvent(t,n,e,void 0,r)}),await this.socketClient.start(),this.logger.info(`Slack socket mode connected`)}async routeSocketEvent(e,t,n,r,i){let a=e=>{r?.waitUntil?r.waitUntil(e):e.catch(e=>{this.logger.error(`Error in socket mode async handler`,{error:e})})};switch(t){case`events_api`:{if(await n(),!e.event||typeof e.event!=`object`){this.logger.warn(`Socket mode events_api missing event field`,{body:e});break}let t={type:`event_callback`,event:e.event,authorizations:e.authorizations,team_id:e.team_id,context_team_id:e.context_team_id,enterprise_id:e.enterprise_id??void 0,is_enterprise_install:!!e.is_enterprise_install,is_ext_shared_channel:e.is_ext_shared_channel,event_id:e.event_id,event_time:e.event_time};try{if(await this.isDuplicateEventDelivery(t,i))break;let e=await this.resolveEventRequestContext(t);if(e===`unresolved`)break;e===`not-applicable`?this.processEventPayload(t,r):this.requestContext.run(e,()=>this.processEventPayload(t,r))}catch(e){this.logger.error(`Error processing socket mode events_api`,{error:e})}break}case`slash_commands`:{await n();let t=new URLSearchParams;for(let[n,r]of Object.entries(e))typeof r==`string`?t.set(n,r):typeof r==`boolean`&&t.set(n,String(r));a(this.runSlashCommand(t,r));break}case`interactive`:{let t=e,i=()=>this.dispatchInteractivePayload(t,r),a;if(this.defaultBotTokenProvider)a=i();else{let t=this.extractInstallationFromInteractivePayload(e),n=t?await this.resolveTokenForTeam(t.installationId,t.isEnterpriseInstall):null;t&&n?a=this.requestContext.run({...n,enterpriseId:t.enterpriseId,isEnterpriseInstall:t.isEnterpriseInstall,installationId:t.installationId,teamId:t.teamId},i):(this.logger.warn(`Could not resolve token for socket interactive payload`),a=new Response(``,{status:200}))}let o=a instanceof Promise?await a:a;await n(o.headers.get(`content-type`)?.includes(`application/json`)?await o.json():void 0);break}default:await n(),this.logger.debug(`Unhandled socket mode event type`,{type:t})}}async startSocketModeListener(e,t=18e4,n,r){if(!this.appToken)return new Response(`appToken is required for socket mode listener`,{status:500});if(!e.waitUntil)return new Response(`waitUntil not provided`,{status:500});this.logger.info(`Starting Slack socket mode listener`,{durationMs:t,webhookUrl:r?`configured`:`not configured`});let i=this.runSocketModeListener(t,n,r,e);return e.waitUntil(i),new Response(JSON.stringify({status:`listening`,durationMs:t,message:`Socket mode listener started, will run for ${t/1e3} seconds`}),{status:200,headers:{"Content-Type":`application/json`}})}async runSocketModeListener(e,t,n,r){let i=this.appToken,a=new pr.SocketModeClient({appToken:i,...this.socketTransportOptions()}),o=!1;a.on(`slack_event`,async({ack:e,body:t,type:i,retry_num:a,retry_reason:s})=>{if(o)return;a&&a>0&&this.logger.info(`Processing socket mode retry`,{retry_num:a,retry_reason:s,type:i});let c=i;n?(await e(),await this.forwardSocketEvent(n,{type:`socket_event`,eventType:c,body:t,retryNum:a,timestamp:Date.now()})):await this.routeSocketEvent(t,c,e,r,a)});try{await a.start(),this.logger.info(`Slack socket mode listener connected`),await new Promise(n=>{let r=setTimeout(n,e);if(t){if(t.aborted){clearTimeout(r),n();return}t.addEventListener(`abort`,()=>{this.logger.info(`Slack socket mode listener received abort signal`),clearTimeout(r),n()},{once:!0})}}),this.logger.info(`Slack socket mode listener duration elapsed, disconnecting`)}catch(e){this.logger.error(`Slack socket mode listener error`,{error:String(e)})}finally{o=!0,await a.disconnect(),this.logger.info(`Slack socket mode listener stopped`)}}async forwardSocketEvent(e,t){try{this.logger.debug(`Forwarding socket event to webhook`,{type:t.body.type||`unknown`,webhookUrl:e});let n=await this.postJson(e,t,{"x-slack-socket-token":this.socketForwardingSecret});if(n.ok)this.logger.debug(`Socket event forwarded successfully`,{type:t.body.type||`unknown`});else{let e=await n.text();this.logger.error(`Failed to forward socket event`,{type:t.body.type||`unknown`,status:n.status,error:e})}}catch(e){this.logger.error(`Error forwarding socket event`,{type:t.body.type||`unknown`,error:String(e)})}}async disconnect(){this.socketClient&&(await this.socketClient.disconnect(),this.socketClient=null,this.logger.info(`Slack socket mode disconnected`))}handleMessageEvent(e,t){if(!this.chat){this.logger.warn(`Chat instance not initialized, ignoring event`);return}let n=new Set([`message_replied`,`channel_join`,`channel_leave`,`channel_topic`,`channel_purpose`,`channel_name`,`channel_archive`,`channel_unarchive`,`group_join`,`group_leave`,`group_topic`,`group_purpose`,`group_name`,`group_archive`,`group_unarchive`,`ekm_access_denied`,`tombstone`]);if(e.subtype===`message_changed`){this.handleMessageChanged(e,t);return}if(e.subtype===`message_deleted`){this.handleMessageDeleted(e,t);return}if(e.subtype&&n.has(e.subtype)){this.logger.debug(`Ignoring message subtype`,{subtype:e.subtype});return}if(!(e.channel&&e.ts)){this.logger.debug(`Ignoring event without channel or ts`,{channel:e.channel,ts:e.ts});return}let r=e.channel_type===`im`,i=this.threadIdForMessageEvent(e),a=t=>async()=>this.parseSlackMessage(e,t);if(this.agentView&&r&&!e.thread_ts){let n=this.chat,r=this.encodeThreadId({channel:e.channel,threadTs:``}),o=(async()=>{let o=i;try{await n.getState().isSubscribed(r)&&(o=r)}catch(e){this.logger.warn(`agent_view DM subscription check failed; using per-message thread`,{error:String(e),threadId:i})}try{await n.processMessage(this,o,a(o),t)}catch(e){if(this.logger.warn(`Agent view DM processing failed`,{error:e,threadId:o}),t?.propagateHandlerErrors&&t.waitUntil)throw e}await this.applyConfiguredSessionTitle(e)})();t?.waitUntil?.(o);return}let o=this.chat.processMessage(this,i,a(i),t);if(this.agentView&&r&&!e.thread_ts&&!e.subtype&&e.user&&!e.bot_id){let n=Promise.resolve(o).then(()=>this.applyConfiguredSessionTitle(e)).catch(e=>{this.logger.warn(`Skipping Slack agent session title after message processing failed`,{error:e,threadId:i})});t?.waitUntil?.(n)}}handleMessageChanged(e,t){let n=e.message;if(!(n&&e.channel))return;let r={...n,channel:n.channel??e.channel,channel_type:n.channel_type??e.channel_type,team:n.team??e.team,team_id:n.team_id??e.team_id,type:n.type??`message`};if(n.subtype===`tombstone`){this.logger.debug(`Ignoring tombstone message_changed`);return}if(n.attachments?.some(e=>e.from_url||e.original_url)&&this.chat&&n.ts&&n.attachments){this.logger.debug(`Processing message_changed for link unfurls`,{channel:e.channel,ts:n.ts,attachmentCount:n.attachments?.length});let t={};for(let e of n.attachments){let n=e.from_url||e.original_url;n&&(e.title||e.text)&&(t[n]={title:e.title,description:e.text,imageUrl:e.image_url||e.thumb_url,siteName:e.service_name})}Object.keys(t).length>0&&this.chat.getState().set(this.unfurlCacheKey(e.channel,n.ts),t,36e5).catch(e=>{this.logger.error(`Failed to cache unfurl metadata`,{error:e})})}let i=e.previous_message,a=!(!i||n.edited?.ts===i.edited?.ts&&n.text===i.text);if(e.hidden===!0&&!a)return;if(i&&!a){this.logger.debug(`Ignoring message_changed with no content change`);return}if(!(this.chat&&r.channel&&r.ts))return;let o=this.threadIdForMessageEvent(r),s=e.previous_message,c=s?async()=>{let e={...s,channel:s.channel??r.channel,channel_type:s.channel_type??r.channel_type,type:s.type??`message`};try{return await this.parseSlackMessage(e,o)}catch(t){return this.logger.warn(`Falling back to sync parse for pre-edit message`,{error:t,threadId:o}),this.parseSlackMessageSync(e,o)}}:void 0;this.chat.processMessageUpdated({adapter:this,message:()=>this.parseSlackMessage(r,o),previousMessage:c,threadId:o},t)}handleMessageDeleted(e,t){let n=e.deleted_ts??e.message?.ts??e.previous_message?.ts;if(!(this.chat&&e.channel&&n))return;let r=e.previous_message?{...e.previous_message,channel:e.previous_message.channel??e.channel,channel_type:e.previous_message.channel_type??e.channel_type,team:e.previous_message.team??e.team,team_id:e.previous_message.team_id??e.team_id,type:e.previous_message.type??`message`}:void 0,i=this.threadIdForMessageEvent({channel:e.channel,channel_type:r?.channel_type??e.channel_type,thread_ts:r?.thread_ts,ts:r?.ts??n}),a=this.parseSlackTimestamp(e.event_ts??e.ts);this.chat.processMessageDeleted({adapter:this,channelId:e.channel,deletedAt:a,messageId:n,previousMessage:r?this.parseSlackMessageSync(r,i):void 0,raw:e,threadId:i},t)}async handleReactionEvent(e,t){if(!this.chat){this.logger.warn(`Chat instance not initialized, ignoring reaction`);return}if(e.item.type!==`message`){this.logger.debug(`Ignoring reaction to non-message item`,{itemType:e.item.type});return}let n=e.item.ts;try{let t=(await this._client.conversations.replies(await this.withToken({channel:e.item.channel,ts:e.item.ts,limit:1}))).messages?.[0];t?.thread_ts&&(n=t.thread_ts)}catch(t){this.logger.warn(`Failed to resolve parent thread for reaction, using message ts`,{error:String(t),channel:e.item.channel,ts:e.item.ts})}let r=this.encodeThreadId({channel:e.item.channel,threadTs:n}),i=e.item.ts,a=e.reaction,o=le.fromSlack(a),s=this.requestContext.getStore(),c=s?.botUserId&&e.user===s.botUserId||this._botUserId!==null&&e.user===this._botUserId||this._botId!==null&&e.user===this._botId,l=await this.lookupUser(e.user),u=l?.displayName??e.user,d=l?.realName??u,f={emoji:o,rawEmoji:a,added:e.type===`reaction_added`,user:{userId:e.user,userName:u,fullName:d,isBot:l?.isBot??!1,isMe:c},messageId:i,threadId:r,raw:e};this.chat.processReaction({...f,adapter:this},t)}handleAssistantThreadStarted(e,t){if(!this.chat){this.logger.warn(`Chat instance not initialized, ignoring assistant_thread_started`);return}if(!e.assistant_thread){this.logger.warn(`Malformed assistant_thread_started: missing assistant_thread`);return}let{channel_id:n,thread_ts:r,user_id:i,context:a}=e.assistant_thread,o=this.encodeThreadId({channel:n,threadTs:r}),s=this.applyConfiguredSuggestedPrompts({channelId:n,enterpriseId:a.enterprise_id,teamId:a.team_id,threadTs:r,userId:i});t?.waitUntil?.(s),this.chat.processAssistantThreadStarted({threadId:o,userId:i,channelId:n,threadTs:r,context:{channelId:a.channel_id,teamId:a.team_id,enterpriseId:a.enterprise_id,threadEntryPoint:a.thread_entry_point,forceSearch:a.force_search},adapter:this},t)}handleAssistantContextChanged(e,t){if(!this.chat){this.logger.warn(`Chat instance not initialized, ignoring assistant_thread_context_changed`);return}if(!e.assistant_thread){this.logger.warn(`Malformed assistant_thread_context_changed: missing assistant_thread`);return}let{channel_id:n,thread_ts:r,user_id:i,context:a}=e.assistant_thread,o=this.encodeThreadId({channel:n,threadTs:r});this.chat.processAssistantContextChanged({threadId:o,userId:i,channelId:n,threadTs:r,context:{channelId:a.channel_id,teamId:a.team_id,enterpriseId:a.enterprise_id,threadEntryPoint:a.thread_entry_point,forceSearch:a.force_search},adapter:this},t)}handleAgentSessionStopped(e,t){if(!this.chat){this.logger.warn(`Chat instance not initialized, ignoring agent_session_stopped`);return}let n=this.encodeThreadId({channel:e.channel,threadTs:e.thread_ts}),r=this.chat,i=(async()=>{try{await r.abortTurn(n)}catch(e){this.logger.warn(`Failed to abort stopped Slack agent session`,{error:e,threadId:n})}try{await this.setSessionStatus(e.channel,e.thread_ts,`active`)}catch(e){this.logger.warn(`Failed to activate stopped Slack agent session`,{error:e,threadId:n})}r.processAgentSessionStopped({adapter:this,channelId:e.channel,streamingMessageTs:e.streaming_message_ts,threadId:n,threadTs:e.thread_ts,userId:e.user},t)})();t?.waitUntil?.(i)}handleAgentSessionTitleChanged(e,t){if(!this.chat){this.logger.warn(`Chat instance not initialized, ignoring agent_session_title_changed`);return}let n=this.encodeThreadId({channel:e.channel,threadTs:e.thread_ts});this.chat.processAgentSessionTitleChanged({adapter:this,channelId:e.channel,previousTitle:e.previous_title,threadId:n,threadTs:e.thread_ts,title:e.title,userId:e.user},t)}handleAppHomeOpened(e,t,n){if(!this.chat)this.logger.warn(`Chat instance not initialized, ignoring app_home_opened`);else{if(this.agentView&&e.tab===`messages`){let r=this.applyConfiguredSuggestedPrompts({channelId:e.channel,...n?{teamId:n}:{},userId:e.user,...e.context?{entities:yr(e.context)}:{}});t?.waitUntil?.(r)}this.chat.processAppHomeOpened({userId:e.user,channelId:e.channel,tab:e.tab,adapter:this,...e.context?{entities:yr(e.context)}:{}},t)}}handleAppContextChanged(e,t){this.chat?this.chat.processAppContextChanged({channelId:e.channel,userId:e.user,entities:yr(e.context),raw:e,adapter:this},t):this.logger.warn(`Chat instance not initialized, ignoring app_context_changed`)}handleMemberJoinedChannel(e,t){this.chat?this.chat.processMemberJoinedChannel({userId:e.user,channelId:this.encodeThreadId({channel:e.channel,threadTs:``}),inviterId:e.inviter,adapter:this},t):this.logger.warn(`Chat instance not initialized, ignoring member_joined_channel`)}handleAppUninstalled(e,t){if(!this.chat){this.logger.warn(`Chat instance not initialized, ignoring app_uninstalled`);return}let n=this.extractInstallationFromEvent(e);n?this.chat.processUninstalled?.({action:`remove`,adapter:this,conversationId:n.installationId,id:e.event_id??``,raw:e,...n.enterpriseId?{tenantId:n.enterpriseId}:{}},t):this.logger.warn(`Ignoring app_uninstalled: missing installation id`)}async handleUserChange(e){if(this.chat)try{await this.chat.getState().delete(`slack:user:${this.installationCacheScope()}${e.user.id}`)}catch(t){this.logger.warn(`Failed to invalidate user cache`,{userId:e.user.id,error:t})}}async publishHomeView(e,t){await this._client.views.publish(await this.withToken({user_id:e,view:t}))}async setSuggestedPrompts(e,t,n,r){await this._client.assistant.threads.setSuggestedPrompts(await this.withToken({channel_id:e,prompts:n,...t?{thread_ts:t}:{},...r?{title:r}:{}}))}async applyConfiguredSuggestedPrompts(e){if(this.suggestedPrompts)try{let t=typeof this.suggestedPrompts==`function`?await this.suggestedPrompts(e):this.suggestedPrompts;if(!t||t.prompts.length===0)return;let n=t.prompts;n.length>Pa&&(this.logger.warn(`Slack shows at most ${Pa} suggested prompts; dropping the rest`,{configured:n.length}),n=n.slice(0,Pa)),await this.setSuggestedPrompts(e.channelId,e.threadTs,n,t.title)}catch(t){this.logger.warn(`Failed to apply configured suggested prompts`,{channelId:e.channelId,error:t})}}async applyConfiguredSessionTitle(e){if(this.agentView&&this.sessionTitle&&e.channel&&e.ts&&e.user&&e.text&&!e.bot_id&&!e.subtype&&!e.thread_ts)try{let t={channelId:e.channel,text:e.text,threadTs:e.ts,userId:e.user},n=(typeof this.sessionTitle==`function`?await this.sessionTitle(t):e.text.split(`
|
|
67
|
+
`,1)[0]?.trim())?.trim().slice(0,80);if(!n)return;await this.renameAgentSession(e.channel,e.ts,n)}catch(t){this.logger.warn(`Failed to set Slack agent session title`,{channelId:e.channel,error:t,threadTs:e.ts})}}async setAssistantStatus(e,t,n,r){this.agentView&&!n.trim()?await this.setSessionStatus(e,t,`active`):await this._client.assistant.threads.setStatus(await this.withToken({channel_id:e,thread_ts:t,status:n,loading_messages:r??this.loadingMessages??(this.agentView?[n]:void 0)}))}async setSessionStatus(e,t,n,r){await this._client.apiCall(`agents.sessions.setStatus`,await this.withToken({channel_id:e,thread_ts:t,status:n,...r?.initiatorUserId?{initiator_user_id:r.initiatorUserId}:{},...r?.title?{title:r.title}:{}}))}async renameAgentSession(e,t,n){await this._client.apiCall(`agents.sessions.rename`,await this.withToken({channel_id:e,thread_ts:t,title:n}))}async setAssistantTitle(e,t,n){this.agentView?await this.renameAgentSession(e,t,n):await this._client.assistant.threads.setTitle(await this.withToken({channel_id:e,thread_ts:t,title:n}))}async resolveInlineMentions(e){let t=new Set,n=new Set;return _(e,t,n),pa(e,await this.lookupMentionNames(t,n))}async lookupMentionNames(e,t){if(e.size===0&&t.size===0)return{channels:new Map,users:new Map};let[n,r]=await Promise.all([Promise.all([...e].map(async e=>[e,(await this.lookupUser(e))?.displayName??e])),Promise.all([...t].map(async e=>[e,await this.lookupChannel(e)]))]),i=new Map(n);return{channels:new Map(r),users:i}}extractLinks(e){let t=new Set;if(e.blocks){for(let n of e.blocks)if(n.type===`rich_text`&&n.elements){for(let e of n.elements)if(e.elements)for(let n of e.elements)n.type===`link`&&n.url&&t.add(n.url)}}if(t.size===0){let n=Va(e),r=n?n.flatMap(e=>`mrkdwn`in e?[e.mrkdwn]:[]):[e.text??``];for(let e of r)for(let n of e.matchAll(va)){let e=n[1],r=e.indexOf(`|`);t.add(r>=0?e.slice(0,r):e)}}let n=new Map;if(e.attachments)for(let r of e.attachments){let e=r.from_url||r.original_url;e&&(r.title||r.text)&&(n.set(e,{title:r.title,description:r.text,imageUrl:r.image_url||r.thumb_url,siteName:r.service_name}),t.add(e)),r.title_link&&!u(r)&&t.add(r.title_link)}return[...t].map(e=>{let t=this.createLinkPreview(e),r=n.get(e)||n.get(e.replace(ma,``))||n.get(`${e}/`);return r?{...t,...r}:t})}createLinkPreview(e){let t=_a.exec(e);if(!t)return{url:e};let n=t[1],r=t[2],i=`${r.slice(0,r.length-6)}.${r.slice(r.length-6)}`,a=this.encodeThreadId({channel:n,threadTs:i});return{url:e,fetchMessage:async()=>{let t=((await this._client.conversations.history(await this.withToken({channel:n,latest:i,inclusive:!0,limit:1}))).messages||[]).find(e=>e.ts===i);if(!t)throw Error(`Message not found: ${e}`);return this.parseSlackMessage(t,a)}}}detectSelfMention(e,t,n){return f(e,t,n,this.botUserId)}async parseSlackMessage(t,n){let r=this.isMessageFromSelf(t),i=t.text||``,a=t.username||`unknown`,o=t.username||`unknown`,s;if(t.user&&!t.username){let e=await this.lookupUser(t.user);a=e?.displayName??t.user,o=e?.realName??a,s=e?.email}if(t.user&&this.chat)try{let r=`slack:thread-participants:${n}`;(await this.chat.getState().getList(r)).includes(t.user)||await this.chat.getState().appendToList(r,t.user,{maxLength:100,ttlMs:e.REVERSE_INDEX_TTL_MS})}catch(e){this.logger.warn(`Failed to track thread participant`,{threadId:n,userId:t.user,error:e})}let c=h(t).map(p),l=this.detectSelfMention(t,i,c),u=await this.resolvedContent(t,i,c);return new me({id:t.ts||``,threadId:n,text:ke(u),formatted:u,raw:t,isMention:l,author:{userId:t.user||t.bot_profile?.user_id||t.bot_id||`unknown`,userName:a,fullName:o,email:s,isBot:!!t.bot_id,isSystem:t.user===sa,isMe:r},metadata:{dateSent:new Date(Number.parseFloat(t.ts||`0`)*1e3),edited:!!t.edited,editedAt:t.edited?new Date(Number.parseFloat(t.edited.ts)*1e3):void 0},attachments:(t.files||[]).map(e=>this.createAttachment(e,t.team_id??t.team)),links:await this.enrichLinks(this.extractLinks(t),t.channel,t.ts)})}parseSlackTimestamp(e){if(!e)return;let t=Number.parseFloat(e);if(!Number.isNaN(t))return new Date(t*1e3)}async enrichLinks(e,t,n){if(!(this.chat&&t&&n)||e.length===0||e.every(e=>e.title||e.fetchMessage))return e;let r=Date.now()+ha,i=this.chat.getState(),a=null;for(;;){try{a=await i.get(this.unfurlCacheKey(t,n))}catch{return e}if(a||Date.now()>=r)break;await new Promise(e=>setTimeout(e,ga))}return a?e.map(e=>{if(e.title)return e;let t=a[e.url]||a[e.url.replace(ma,``)]||a[`${e.url}/`];return t?{...e,...t}:e}):e}createAttachment(e,t){let n=e.url_private,r=this.requestContext.getStore(),i=r?.token,a=r?.enterpriseId,o=r?.isEnterpriseInstall,s=`file`;e.mimetype?.startsWith(`image/`)?s=`image`:e.mimetype?.startsWith(`video/`)?s=`video`:e.mimetype?.startsWith(`audio/`)&&(s=`audio`);let c={};return n&&(c.url=n),t&&(c.teamId=t),a&&(c.enterpriseId=a),o&&(c.isEnterpriseInstall=`true`),{type:s,url:n,name:e.name,mimeType:e.mimetype,size:e.size,width:e.original_w,height:e.original_h,fetchMetadata:Object.keys(c).length>0?c:void 0,fetchData:n?async()=>this.fetchSlackFile(n,()=>i??this.getToken()):void 0}}async fetchSlackFile(e,t){let n;a(e,this.slackApiUrl)&&(n=typeof t==`function`?await t():t);try{return await A(e,{adapter:`slack`,headers:e=>n&&a(e.href,this.slackApiUrl)?{authorization:`Bearer ${n}`}:void 0,transport:this.createFileTransport(),onResponse:t=>{if((t.headers[`content-type`]??``).includes(`text/html`))throw new P(`slack`,`Failed to download file from Slack: received HTML login page instead of file data. Ensure your Slack app has the "files:read" OAuth scope. URL: ${e}`)}})}catch(e){throw e instanceof P?e:new P(`slack`,`Failed to fetch Slack file`,e instanceof Error?e:void 0)}}createFileTransport(){return this.configuredFileTransport}rehydrateAttachment(e){let t=e.fetchMetadata?.url??e.url,n=e.fetchMetadata?.teamId,r=e.fetchMetadata?.enterpriseId,i=e.fetchMetadata?.isEnterpriseInstall===`true`;return t?{...e,fetchData:async()=>this.fetchSlackFile(t,async()=>{let e=i?r:n;if(e){let t=await this.resolveTokenForTeam(e,i);if(!t)throw new M(`slack`,`Installation not found for ${i?`enterprise`:`team`} ${e}`);return t.token}return this.getToken()})}:e}async resolveOutgoingMentions(e,t){if(!this.chat)return e;let n=this.chat.getState(),r=new Map;if(v(e,(e,t)=>(aa.test(t)||r.has(t.toLowerCase())||r.set(t.toLowerCase(),[]),e)),r.size===0)return e;for(let e of r.keys()){let t=await n.getList(`slack:user-by-name:${this.installationCacheScope()}${e}`),i=[...new Set(t)];r.set(e,i)}let i=null;if([...r.values()].some(e=>e.length>1)){let e=await n.getList(`slack:thread-participants:${t}`);i=new Set(e)}return v(e,(e,t)=>{if(aa.test(t))return e;let n=r.get(t.toLowerCase());if(!n||n.length===0)return e;if(n.length===1)return`<@${n[0]}>`;if(i){let e=n.filter(e=>i.has(e));if(e.length===1)return`<@${e[0]}>`}return e})}async resolveMessageMentions(e,t){if(!this.chat)return e;if(typeof e==`string`)return this.resolveOutgoingMentions(e,t);if(typeof e==`object`&&e){if(`raw`in e&&typeof e.raw==`string`)return{...e,raw:await this.resolveOutgoingMentions(e.raw,t)};if(`markdown`in e&&typeof e.markdown==`string`)return{...e,markdown:await this.resolveOutgoingMentions(e.markdown,t)}}return e}async postMessage(e,t){let n=await this.resolveMessageMentions(t,e),{channel:r,threadTs:i}=this.decodeThreadId(e),a=i||void 0;try{let t,i=E(n);if(i.length>0){t=await this.uploadFiles(i,r,a);let o=typeof n==`string`||typeof n==`object`&&!!n&&(`raw`in n&&n.raw||`markdown`in n&&n.markdown||`ast`in n&&n.ast),s=T(n);if(!(o||s))return{id:`file-${Date.now()}`,threadId:e,raw:{files:i,uploadedFileIds:t}}}let o=T(n);if(o){let n=xr(o),i=pi(o);this.logger.debug(`Slack API: chat.postMessage (blocks)`,{channel:r,threadTs:a,blockCount:n.length});let s;try{s=await this._client.chat.postMessage(await this.withToken({channel:r,thread_ts:a,text:i,blocks:n,unfurl_links:!1,unfurl_media:!1}))}catch(e){throw da(e,n,this.logger)}return this.logger.debug(`Slack API: chat.postMessage response`,{messageId:s.ts,ok:s.ok}),{id:s.ts,threadId:e,raw:t===void 0?s:{...s,uploadedFileIds:t}}}let s=this.formatConverter.toSlackPayload(n);this.logger.debug(`Slack API: chat.postMessage`,{channel:r,threadTs:a,payloadKey:`markdown_text`in s?`markdown_text`:`text`});let c=await this._client.chat.postMessage(await this.withToken({channel:r,thread_ts:a,...s,unfurl_links:!1,unfurl_media:!1}));return this.logger.debug(`Slack API: chat.postMessage response`,{messageId:c.ts,ok:c.ok}),{id:c.ts,threadId:e,raw:t===void 0?c:{...c,uploadedFileIds:t}}}catch(e){this.handleSlackError(e)}}async postEphemeral(e,t,n){let r=await this.resolveMessageMentions(n,e),{channel:i,threadTs:a}=this.decodeThreadId(e),o=a||void 0;try{let n=T(r);if(n){let r=xr(n),a=pi(n);this.logger.debug(`Slack API: chat.postEphemeral (blocks)`,{channel:i,threadTs:o,userId:t,blockCount:r.length});let s=await this._client.chat.postEphemeral(await this.withToken({channel:i,thread_ts:o,user:t,text:a,blocks:r}));return this.logger.debug(`Slack API: chat.postEphemeral response`,{messageTs:s.message_ts,ok:s.ok}),{id:s.message_ts||``,threadId:e,usedFallback:!1,raw:s}}let a=this.formatConverter.toSlackPayload(r);this.logger.debug(`Slack API: chat.postEphemeral`,{channel:i,threadTs:o,userId:t,payloadKey:`markdown_text`in a?`markdown_text`:`text`});let s=await this._client.chat.postEphemeral(await this.withToken({channel:i,thread_ts:o,user:t,...a}));return this.logger.debug(`Slack API: chat.postEphemeral response`,{messageTs:s.message_ts,ok:s.ok}),{id:s.message_ts||``,threadId:e,usedFallback:!1,raw:s}}catch(e){this.handleSlackError(e)}}async scheduleMessage(e,t,n){let r=await this.resolveMessageMentions(t,e),{channel:i,threadTs:a}=this.decodeThreadId(e),o=a||void 0,s=Math.floor(n.postAt.getTime()/1e3);if(s<=Math.floor(Date.now()/1e3))throw new k(`slack`,`postAt must be in the future`);if(E(r).length>0)throw new k(`slack`,`File uploads are not supported in scheduled messages`);let c=this.requestContext.getStore()?.token,l=c?()=>Promise.resolve(c):()=>this.getToken(),u=c??await this.getToken();try{let e=T(r);if(e){let t=xr(e),r=pi(e);this.logger.debug(`Slack API: chat.scheduleMessage (blocks)`,{channel:i,threadTs:o,postAt:s,blockCount:t.length});let a=await this._client.chat.scheduleMessage({token:u,channel:i,thread_ts:o,post_at:s,text:r,blocks:t,unfurl_links:!1,unfurl_media:!1}),c=a.scheduled_message_id,d=this;return{scheduledMessageId:c,channelId:i,postAt:n.postAt,raw:a,async cancel(){await d._client.chat.deleteScheduledMessage({token:await l(),channel:i,scheduled_message_id:c})}}}let t=this.formatConverter.toSlackPayload(r);this.logger.debug(`Slack API: chat.scheduleMessage`,{channel:i,threadTs:o,postAt:s,payloadKey:`markdown_text`in t?`markdown_text`:`text`});let a=await this._client.chat.scheduleMessage({token:u,channel:i,thread_ts:o,post_at:s,...t,unfurl_links:!1,unfurl_media:!1}),c=a.scheduled_message_id,d=this;return{scheduledMessageId:c,channelId:i,postAt:n.postAt,raw:a,async cancel(){await d._client.chat.deleteScheduledMessage({token:await l(),channel:i,scheduled_message_id:c})}}}catch(e){this.handleSlackError(e)}}async openModal(e,t,n){let r=Di(t,Ti({contextId:n,privateMetadata:t.privateMetadata}));this.logger.debug(`Slack API: views.open`,{triggerId:e,callbackId:t.callbackId});try{let t=await this._client.views.open(await this.withToken({trigger_id:e,view:r}));return this.logger.debug(`Slack API: views.open response`,{viewId:t.view?.id,ok:t.ok}),{viewId:t.view?.id}}catch(e){this.handleSlackError(e)}}async updateModal(e,t){let n=Di(t);this.logger.debug(`Slack API: views.update`,{viewId:e,callbackId:t.callbackId});try{let t=await this._client.views.update(await this.withToken({view_id:e,view:n}));return this.logger.debug(`Slack API: views.update response`,{viewId:t.view?.id,ok:t.ok}),{viewId:t.view?.id}}catch(e){this.handleSlackError(e)}}async uploadFiles(e,t,n){let r=(await Promise.all(e.map(async e=>{try{let t=await D(e.data,{platform:`slack`});return t?{file:t,filename:e.filename}:null}catch(t){return this.logger.error(`Failed to convert file to buffer`,{filename:e.filename,error:t}),null}}))).filter(e=>e!==null);if(r.length===0)return[];this.logger.debug(`Slack API: files.uploadV2 (batch)`,{fileCount:r.length,filenames:r.map(e=>e.filename)});let i={channel_id:t,file_uploads:r};n&&(i.thread_ts=n),i.token=await this.getToken();let a=await this._client.files.uploadV2(i);this.logger.debug(`Slack API: files.uploadV2 response`,{ok:a.ok});let o=[];if(a.files?.[0]?.files)for(let e of a.files[0].files)e.id&&o.push(e.id);return o}async editMessage(e,t,n){let r=await this.resolveMessageMentions(n,e),i=this.decodeEphemeralMessageId(t);if(i){let{threadTs:t}=this.decodeThreadId(e),n=await this.sendToResponseUrl(i.responseUrl,`replace`,{message:r,threadTs:t});return{id:i.messageTs,threadId:e,raw:{ephemeral:!0,...n}}}if(t.startsWith(`ephemeral:`))throw new k(`slack`,`Invalid Slack ephemeral message ID`);let{channel:a}=this.decodeThreadId(e);try{let n=T(r);if(n){let r=xr(n),i=pi(n);this.logger.debug(`Slack API: chat.update (blocks)`,{channel:a,messageId:t,blockCount:r.length});let o=await this._client.chat.update(await this.withToken({channel:a,ts:t,text:i,blocks:r}));return this.logger.debug(`Slack API: chat.update response`,{messageId:o.ts,ok:o.ok}),{id:o.ts,threadId:e,raw:o}}let i=this.formatConverter.toSlackPayload(r);this.logger.debug(`Slack API: chat.update`,{channel:a,messageId:t,payloadKey:`markdown_text`in i?`markdown_text`:`text`});let o=await this._client.chat.update(await this.withToken({channel:a,ts:t,...i}));return this.logger.debug(`Slack API: chat.update response`,{messageId:o.ts,ok:o.ok}),{id:o.ts,threadId:e,raw:o}}catch(e){this.handleSlackError(e)}}async postObject(e,t,n){if(t!==`plan`)return this.postMessage(e,`[${t}]`);let r=n,{channel:i,threadTs:a}=this.decodeThreadId(e),o=this.renderPlanFallbackText(r),s=this.planToBlockKit(r);try{this.logger.debug(`Slack API: chat.postMessage (plan)`,{channel:i,threadTs:a,blockCount:s.length});let t=await this._client.chat.postMessage(await this.withToken({channel:i,thread_ts:a,text:o,blocks:s,unfurl_links:!1,unfurl_media:!1}));return{id:t.ts,threadId:e,raw:t}}catch(e){this.handleSlackError(e)}}async editObject(e,t,n,r){if(n!==`plan`)return this.editMessage(e,t,`[${n}]`);let i=r,{channel:a}=this.decodeThreadId(e),o=this.renderPlanFallbackText(i),s=this.planToBlockKit(i);try{this.logger.debug(`Slack API: chat.update (plan)`,{channel:a,messageId:t,blockCount:s.length});let n=await this._client.chat.update(await this.withToken({channel:a,ts:t,text:o,blocks:s}));return{id:n.ts,threadId:e,raw:n}}catch(e){this.handleSlackError(e)}}renderPlanFallbackText(e){let t=[];t.push(e.title||`Plan`);for(let n of e.tasks)t.push(`- (${n.status}) ${n.title}`);return t.join(`
|
|
73
68
|
`)}planToBlockKit(e){let t=e.tasks.map(e=>{let t=this.planContentToRichText(e.details),n=this.planContentToRichText(e.output);return{type:`task_card`,task_id:e.id,title:e.title,status:e.status,...t?{details:t}:null,...n?{output:n}:null}});return[{type:`plan`,title:e.title||`Plan`,tasks:t}]}planContentToPlainText(e){return e?Array.isArray(e)?e.join(`
|
|
74
|
-
`):typeof e==`string`?e:`markdown`in e?
|
|
69
|
+
`):typeof e==`string`?e:`markdown`in e?ke(Se(e.markdown)):`ast`in e?ke(e.ast):``:``}planContentToRichText(e){if(!e)return;if(Array.isArray(e))return{type:`rich_text`,elements:[{type:`rich_text_list`,style:`bullet`,elements:e.map(e=>({type:`rich_text_section`,elements:[{type:`text`,text:String(e)}]}))}]};let t=this.planContentToPlainText(e);if(t)return{type:`rich_text`,elements:[{type:`rich_text_section`,elements:[{type:`text`,text:t}]}]}}async deleteMessage(e,t){let n=this.decodeEphemeralMessageId(t);if(n){await this.sendToResponseUrl(n.responseUrl,`delete`);return}if(t.startsWith(`ephemeral:`))throw new k(`slack`,`Invalid Slack ephemeral message ID`);let{channel:r}=this.decodeThreadId(e);try{this.logger.debug(`Slack API: chat.delete`,{channel:r,messageId:t}),await this._client.chat.delete(await this.withToken({channel:r,ts:t})),this.logger.debug(`Slack API: chat.delete response`,{ok:!0})}catch(e){this.handleSlackError(e)}}async addReaction(e,t,n){let{channel:r}=this.decodeThreadId(e),i=le.toSlack(n).replace(/:/g,``);try{this.logger.debug(`Slack API: reactions.add`,{channel:r,messageId:t,emoji:i}),await this._client.reactions.add(await this.withToken({channel:r,timestamp:t,name:i})),this.logger.debug(`Slack API: reactions.add response`,{ok:!0})}catch(e){this.handleSlackError(e)}}async removeReaction(e,t,n){let{channel:r}=this.decodeThreadId(e),i=le.toSlack(n).replace(/:/g,``);try{this.logger.debug(`Slack API: reactions.remove`,{channel:r,messageId:t,emoji:i}),await this._client.reactions.remove(await this.withToken({channel:r,timestamp:t,name:i})),this.logger.debug(`Slack API: reactions.remove response`,{ok:!0})}catch(e){this.handleSlackError(e)}}async startTyping(e,t,n){let{channel:r,threadTs:i}=this.decodeThreadId(e);if(!i)this.logger.debug(`Slack: startTyping skipped - no thread context`);else if(this.agentView&&!t){let e=t===``?`active`:`processing`;this.logger.debug(`Slack API: agents.sessions.setStatus`,{channel:r,threadTs:i,status:e});try{await this.setSessionStatus(r,i,e,{initiatorUserId:n?.initiatorUserId})}catch(e){this.logger.warn(`Slack API: agents.sessions.setStatus failed`,{channel:r,threadTs:i,error:e})}}else{this.logger.debug(`Slack API: assistant.threads.setStatus`,{channel:r,threadTs:i,status:t});try{let e=t?[t]:this.loadingMessages??[`Typing...`];await this._client.assistant.threads.setStatus(await this.withToken({channel_id:r,thread_ts:i,status:t??this.loadingMessages?.[0]??`Typing...`,loading_messages:e}))}catch(e){this.logger.warn(`Slack API: assistant.threads.setStatus failed`,{channel:r,threadTs:i,error:e})}}}async endTyping(e,t=`active`){if(!this.agentView)return;let{channel:n,threadTs:r}=this.decodeThreadId(e);if(r)try{await this.setSessionStatus(n,r,t)}catch(e){this.logger.warn(`Slack API: agents.sessions.setStatus failed`,{channel:n,threadTs:r,error:e})}}async stream(e,t,n){let{channel:r,threadTs:i}=this.decodeThreadId(e),a=i||void 0;if(!a)return this.logger.debug(`Slack: using fallback stream - no thread context`),null;if(!(r.startsWith(`D`)||n?.recipientUserId&&n?.recipientTeamId))return this.logger.debug(`Slack: using fallback stream - no recipient context`),null;if(!this.nativeStreaming||this.nativeStreamingBroken)return this.logger.debug(`Slack: using fallback stream - native streaming disabled`,{configured:this.nativeStreaming,broken:this.nativeStreamingBroken}),null;this.logger.debug(`Slack: starting stream`,{channel:r,threadTs:a});let o=await this.getToken(),s=()=>this._client.chatStream({channel:r,thread_ts:a,...n?.recipientUserId&&{recipient_user_id:n.recipientUserId},...n?.recipientTeamId&&{recipient_team_id:n.recipientTeamId},...n?.taskDisplayMode&&{task_display_mode:n.taskDisplayMode}}),c={streamer:s(),startedAt:void 0,flushNextAppend:!1,reopenFence:``,tableHeader:``},l=0,u=[],d=e=>e&&{...e,messageIds:[...u,e.id]},f=``,p=``,m=new de({wrapTablesForAppend:!1}),h=``,g=0,_=new Oa,v=async t=>{for(;g<t.length;){let n=t.lastIndexOf(`
|
|
75
70
|
`,g-1)+1,r=t.indexOf(`
|
|
76
|
-
`,g),i=r===-1?t.length:r+1,a=t.slice(g,i),o=t.slice(n,r===-1?i:r);_.open||
|
|
77
|
-
`:``,c.tableHeader=t?``:
|
|
71
|
+
`,g),i=r===-1?t.length:r+1,a=t.slice(g,i),o=t.slice(n,r===-1?i:r);_.open||Ta.test(o)?h+=a:h+=await this.resolveOutgoingMentions(a,e),r!==-1&&_.feed(o),g=i}},y={message:null,mode:`native`,nativeRendered:!1},b=n?.updateIntervalMs??1e3,x=``,S=0,C=async t=>{let n=m.getCommittableText();if(n.length===0||n===x)return;let r=Date.now();(t||r-S>=b)&&(y.message?await this.editMessage(e,y.message.id,{markdown:n}):y.message=await this.postMessage(e,{markdown:n}),x=n,S=r)},w=e=>{y.mode=`fallback`;let t=Ia(e);t&&Fa.has(t)&&(this.nativeStreamingBroken=!0),this.logger.warn(`Slack native streaming unavailable, falling back to post-and-edit`,{channel:r,error:e})},T=e=>Ia(e)===Sa,E=()=>{c.startedAt??=Date.now(),c.flushNextAppend=!1,y.nativeRendered=!0},D=()=>c.startedAt===void 0?0:Date.now()-c.startedAt,O=e=>{if(c.startedAt===void 0)return!1;let t=D();return t<this.streamSegmentMaxAgeMs?!1:e||t>=this.streamSegmentMaxAgeMs+xa},k=!0,A=new Map,j,M=e=>{e.type===`plan_update`?j=e:e.type===`task_update`&&(e.status===`complete`||e.status===`error`?A.delete(e.id):A.set(e.id,e))},N=(e,t)=>{k=!1,this.logger.warn(`Structured streaming chunk failed, falling back to text-only streaming. Ensure your Slack app manifest includes the agent/assistant feature and the assistant:write scope`,{chunkType:e,error:t})},P=async e=>{c.streamer.ts&&u.push(c.streamer.ts),c.streamer=s(),c.startedAt=void 0,c.flushNextAppend=!0;let t=ka(e);c.reopenFence=t?`${t.opening}
|
|
72
|
+
`:``,c.tableHeader=t?``:Ma(e),l++;let n=[...j?[j]:[],...A.values()];if(n.length>0&&k)try{await c.streamer.append({chunks:n,token:o}),E()}catch(e){N(`replay`,e)}},F=e=>{let t=e.slice(0,e.includes(`
|
|
78
73
|
`)?e.indexOf(`
|
|
79
|
-
`):e.length),n=
|
|
80
|
-
`)&&
|
|
74
|
+
`):e.length),n=Ea.test(t.trim())?c.tableHeader:``,r=c.reopenFence+n+e;return c.reopenFence=``,c.tableHeader=``,r},I=async e=>{let t=ja(e),n=e.slice(0,t),i=e.slice(t),a=f+n,s=ka(a);s&&a.endsWith(`
|
|
75
|
+
`)&&Aa(s,i)&&(n+=i,a+=i,i=``,s=void 0);let l=s?`${a.endsWith(`
|
|
81
76
|
`)?``:`
|
|
82
|
-
`}${s.marker}`:``,u=(n.length>0?F(n):``)+l,d=D(),m=k&&A.size>0?Array.from(A.values(),e=>({...e,status:`complete`})):void 0,h=this.agentView?{session_status:`processing`}:{};try{let e;try{e=await c.streamer.stop({token:o,...u.length>0?{markdown_text:u}:{},chunks:m,...h})}catch(t){let n=
|
|
77
|
+
`}${s.marker}`:``,u=(n.length>0?F(n):``)+l,d=D(),m=k&&A.size>0?Array.from(A.values(),e=>({...e,status:`complete`})):void 0,h=this.agentView?{session_status:`processing`}:{};try{let e;try{e=await c.streamer.stop({token:o,...u.length>0?{markdown_text:u}:{},chunks:m,...h})}catch(t){let n=Ia(t);if(!(m&&n)||n===Sa||Ca.has(n))throw t;e=await c.streamer.stop({token:o,...h}),N(`task_update`,t)}p=a,this.logger.debug(`Slack: rotated stream segment`,{channel:r,messageId:e.ts,ageMs:d})}catch(t){if(!T(t))throw t;this.logger.warn(`Slack: stream segment expired before rotation, continuing in a new message`,{channel:r,ageMs:d}),i=f.slice(p.length)+e,a=p}return await P(a),i},L=async(e,t)=>{let n=O(t||e.includes(`
|
|
83
78
|
|
|
84
|
-
`))?await I(e):e;n.length>0&&await c.streamer.append({markdown_text:F(n),token:o,...c.flushNextAppend?{chunks:[]}:{}})&&(E(),p=h),f=h},R=async(e=!1)=>{if(y.mode===`fallback`){await C(e);return}await v(m.getCommittableText());let t=h.slice(f.length);if(t.length!==0)try{await L(t,!1)}catch(t){if(y.nativeRendered)throw t;w(t),await C(e)}},z=async e=>{if(await R(),y.mode===`fallback`||!k)this.logger.debug(`Slack: structured chunk skipped`,{chunkType:e.type,mode:y.mode});else{await L(``,!0);try{await c.streamer.append({chunks:[e],token:o}),E(),p=f,M(e)}catch(t){N(e.type,t)}}};for await(let e of t){if(n?.signal?.aborted)break;typeof e==`string`?(m.push(e),await R()):e.type===`markdown_text`?(m.push(e.text),await R()):await z(e)}if(m.finish(),await R(!0),y.mode===`fallback`)return(n?.stopBlocks||this.feedbackButtons)&&this.logger.warn(`Slack: stream-end blocks (stopBlocks/feedbackButtons) skipped - post-and-edit fallback cannot attach stream blocks`,{channel:r}),this.logger.debug(`Slack: fallback stream complete`,{messageId:y.message?.id}),await this.endTyping(e,n?.sessionStatus??`active`),d(y.message);let B=[...n?.stopBlocks??[],...this.feedbackButtons?[
|
|
79
|
+
`))?await I(e):e;n.length>0&&await c.streamer.append({markdown_text:F(n),token:o,...c.flushNextAppend?{chunks:[]}:{}})&&(E(),p=h),f=h},R=async(e=!1)=>{if(y.mode===`fallback`){await C(e);return}await v(m.getCommittableText());let t=h.slice(f.length);if(t.length!==0)try{await L(t,!1)}catch(t){if(y.nativeRendered)throw t;w(t),await C(e)}},z=async e=>{if(await R(),y.mode===`fallback`||!k)this.logger.debug(`Slack: structured chunk skipped`,{chunkType:e.type,mode:y.mode});else{await L(``,!0);try{await c.streamer.append({chunks:[e],token:o}),E(),p=f,M(e)}catch(t){N(e.type,t)}}};for await(let e of t){if(n?.signal?.aborted)break;typeof e==`string`?(m.push(e),await R()):e.type===`markdown_text`?(m.push(e.text),await R()):await z(e)}if(m.finish(),await R(!0),y.mode===`fallback`)return(n?.stopBlocks||this.feedbackButtons)&&this.logger.warn(`Slack: stream-end blocks (stopBlocks/feedbackButtons) skipped - post-and-edit fallback cannot attach stream blocks`,{channel:r}),this.logger.debug(`Slack: fallback stream complete`,{messageId:y.message?.id}),await this.endTyping(e,n?.sessionStatus??`active`),d(y.message);let B=[...n?.stopBlocks??[],...this.feedbackButtons?[Na(this.feedbackButtons)]:[]],V={token:o,...this.agentView?{session_status:n?.sessionStatus??`active`}:{},...B.length>0?{blocks:B}:{}},H;try{H=await c.streamer.stop(V)}catch(t){if(!y.nativeRendered)return w(t),await C(!0),this.logger.debug(`Slack: fallback stream complete`,{messageId:y.message?.id}),await this.endTyping(e,n?.sessionStatus??`active`),d(y.message);if(!T(t))throw t;let i=f.slice(p.length);if(i.length===0){let i=c.streamer.ts;if(!i)throw t;return this.logger.warn(`Slack: stream expired before stop, stream-end blocks skipped`,{channel:r,messageId:i,skippedBlocks:B.length}),await this.endTyping(e,n?.sessionStatus??`active`),d({id:i,threadId:e,raw:{ts:i}})}this.logger.warn(`Slack: stream expired before stop, delivering the rest in a new message`,{channel:r}),await P(p),H=await c.streamer.stop({...V,markdown_text:F(i)})}let U=H.message?.ts??H.ts??c.streamer.ts;return this.logger.debug(`Slack: stream complete`,{messageId:U,segments:l+1}),d({id:U,threadId:e,raw:H})}async openDM(e){try{this.logger.debug(`Slack API: conversations.open`,{userId:e});let t=await this._client.conversations.open(await this.withToken({users:e}));if(!t.channel?.id)throw new P(`slack`,`Failed to open DM - no channel returned`);let n=t.channel.id;return this.logger.debug(`Slack API: conversations.open response`,{channelId:n,ok:t.ok}),this.encodeThreadId({channel:n,threadTs:``})}catch(e){this.handleSlackError(e)}}async fetchMessages(e,t={}){let{channel:n,threadTs:r}=this.decodeThreadId(e),i=t.direction??`backward`,a=t.limit||100;try{return i===`forward`?await this.fetchMessagesForward(n,r,e,a,t.cursor):await this.fetchMessagesBackward(n,r,e,a,t.cursor)}catch(e){this.handleSlackError(e)}}async fetchMessagesForward(e,t,n,r,i){this.logger.debug(`Slack API: conversations.replies (forward)`,{channel:e,threadTs:t,limit:r,cursor:i});let a=await this._client.conversations.replies(await this.withToken({channel:e,ts:t,limit:r,cursor:i})),o=a.messages||[],s=a.response_metadata?.next_cursor;return this.logger.debug(`Slack API: conversations.replies response`,{messageCount:o.length,ok:a.ok,hasNextCursor:!!s}),{messages:await Promise.all(o.map(e=>this.parseSlackMessage(e,n))),nextCursor:s||void 0}}async fetchMessagesBackward(e,t,n,r,i){let a=i||void 0;this.logger.debug(`Slack API: conversations.replies (backward)`,{channel:e,threadTs:t,limit:r,latest:a});let o=[],s,c=!1;do{let n=await this._client.conversations.replies(await this.withToken({channel:e,ts:t,limit:1e3,latest:a,cursor:s,inclusive:!1})),i=n.messages||[],l=i.filter(e=>{if(e.ts===t){if(c)return!1;c=!0}return!a||e.ts!==void 0&&e.ts<a});o=[...o,...l].slice(-(r+1)),s=n.response_metadata?.next_cursor||void 0,this.logger.debug(`Slack API: conversations.replies response (backward)`,{messageCount:i.length,ok:n.ok,hasMore:n.has_more})}while(s);let l=Math.max(0,o.length-r),u=o.slice(l),d=await Promise.all(u.map(e=>this.parseSlackMessage(e,n))),f;if(l>0){let e=u[0];e?.ts&&(f=e.ts)}return{messages:d,nextCursor:f}}async fetchThread(e){let{channel:t,threadTs:n}=this.decodeThreadId(e);try{this.logger.debug(`Slack API: conversations.info`,{channel:t});let r=await this._client.conversations.info(await this.withToken({channel:t})),i=r.channel;i?.is_ext_shared&&this._externalChannels.add(t),this.logger.debug(`Slack API: conversations.info response`,{channelName:i?.name,ok:r.ok});let a=`unknown`;return i?.is_ext_shared?a=`external`:i?.is_private||t.startsWith(`D`)?a=`private`:t.startsWith(`C`)&&(a=`workspace`),{id:e,channelId:t,channelName:i?.name,channelVisibility:a,metadata:{threadTs:n,channel:r.channel}}}catch(e){this.handleSlackError(e)}}async fetchMessage(e,t){let{channel:n,threadTs:r}=this.decodeThreadId(e);try{let i=((await this._client.conversations.replies(await this.withToken({channel:n,ts:r,oldest:t,inclusive:!0,limit:1}))).messages||[]).find(e=>e.ts===t);return i?this.parseSlackMessage(i,e):null}catch(e){this.handleSlackError(e)}}encodeThreadId(e){return`slack:${e.channel}:${e.threadTs}`}threadIdForMessageEvent(e){let t=e.channel_type===`im`&&!this.agentView?e.thread_ts||``:e.thread_ts||e.ts||``;return this.encodeThreadId({channel:e.channel??``,threadTs:t})}isDM(e){let{channel:t}=this.decodeThreadId(e);return t.startsWith(`D`)}getChannelVisibility(e){let{channel:t}=this.decodeThreadId(e);return this._externalChannels.has(t)?`external`:t.startsWith(`G`)||t.startsWith(`D`)?`private`:t.startsWith(`C`)?`workspace`:`unknown`}decodeThreadId(e){let t=e.split(`:`);if(t.length<2||t.length>3||t[0]!==`slack`)throw new k(`slack`,`Invalid Slack thread ID: ${e}`);return{channel:t[1],threadTs:t.length===3?t[2]:``}}parseMessage(e){let t=e,n=t.thread_ts||t.ts||``,r=this.encodeThreadId({channel:t.channel||``,threadTs:n});return this.parseSlackMessageSync(t,r)}parseSlackMessageSync(e,t){let n=this.isMessageFromSelf(e),r=e.text||``,i=h(e).map(p),a=this.detectSelfMention(e,r,i),o=this.content(e,r,i),s=e.username||e.user||`unknown`,c=e.username||e.user||`unknown`;return new me({id:e.ts||``,threadId:t,text:ke(o),formatted:o,raw:e,isMention:a,author:{userId:e.user||e.bot_profile?.user_id||e.bot_id||`unknown`,userName:s,fullName:c,isBot:!!e.bot_id,isSystem:e.user===sa,isMe:n},metadata:{dateSent:new Date(Number.parseFloat(e.ts||`0`)*1e3),edited:!!e.edited,editedAt:e.edited?new Date(Number.parseFloat(e.edited.ts)*1e3):void 0},attachments:(e.files||[]).map(t=>this.createAttachment(t,e.team_id??e.team)),links:this.extractLinks(e)})}content(e,t,n=h(e).map(p)){let r=Va(e);return this.assembleContent(r?{body:r}:{text:Ki(e)??t,tables:Ra(e)},n)}async resolvedContent(e,t,n=h(e).map(p)){let r=Va(e),{leading:i,trailing:a}=r?{leading:[],trailing:[]}:Ra(e),o=[...i,...a],s=[];for(let e of r??[])`table`in e?o.push(e.table):s.push(e);for(let e of n)o.push(...e.tables),s.push(...e.parts);let{channelIds:c,userIds:l}=Ha(o,s),u=await this.lookupMentionNames(l,c),d=e=>({...e,rows:e.rows.map(e=>e.map(e=>e&&pa(e,u)))}),f=e=>`mrkdwn`in e?{mrkdwn:pa(e.mrkdwn,u)}:{literal:pa(e.literal,u)};return this.assembleContent(r?{body:r.map(e=>`table`in e?{table:d(e.table)}:f(e))}:{text:await this.resolveInlineMentions(Ki(e)??t),tables:{leading:i.map(d),trailing:a.map(d)}},n.map(e=>({...e,parts:e.parts.map(f),tables:e.tables.map(d)})))}assembleContent(e,t){let n=this.formatConverter.incomingPartsParser(za(e,t));return{type:`root`,children:[...`body`in e?this.bodyNodes(e.body,n):this.textNodes(e.text,e.tables,n),...t.flatMap(e=>this.attachmentNodes(e,n))]}}textNodes(e,t,n){return[...t.leading.map(e=>this.tableNode(e,n)),...n(e).children,...t.trailing.map(e=>this.tableNode(e,n))]}bodyNodes(e,t){return e.flatMap(e=>`table`in e?[this.tableNode(e.table,t)]:`mrkdwn`in e?t(e.mrkdwn).children:Ua(e.literal))}attachmentNodes(e,t){let n=[],r=[],i=()=>{n.push(...Ua(r.join(`
|
|
85
80
|
`))),r=[]};for(let a of e.parts)`mrkdwn`in a?(i(),n.push(...t(a.mrkdwn).children)):r.push(a.literal);return i(),n.push(...e.tables.map(e=>this.tableNode(e,t))),n}tableNode(e,t){let n=e.rows.map(e=>({type:`tableRow`,children:e.map(e=>({type:`tableCell`,children:this.cellChildren(e,t)}))}));if(e.headerless){let t=Math.max(...e.rows.map(e=>e.length));n.unshift({type:`tableRow`,children:Array.from({length:t},()=>({type:`tableCell`,children:[]}))})}return{type:`table`,children:n}}cellChildren(e,t){if(!e)return[];let n=[];for(let r of t(e).children)n.length>0&&n.push({type:`text`,value:`
|
|
86
|
-
`}),r.type===`paragraph`?n.push(...r.children):n.push({type:`text`,value:
|
|
81
|
+
`}),r.type===`paragraph`?n.push(...r.children):n.push({type:`text`,value:ke({type:`root`,children:[r]})});return n}channelIdFromThreadId(e){let{channel:t}=this.decodeThreadId(e);return`slack:${t}`}async fetchChannelMessages(e,t={}){let n=e.split(`:`)[1];if(!n)throw new k(`slack`,`Invalid Slack channel ID: ${e}`);let r=t.direction??`backward`,i=t.limit||100;try{return r===`forward`?await this.fetchChannelMessagesForward(n,i,t.cursor):await this.fetchChannelMessagesBackward(n,i,t.cursor)}catch(e){this.handleSlackError(e)}}async fetchChannelMessagesForward(e,t,n){this.logger.debug(`Slack API: conversations.history (forward)`,{channel:e,limit:t,cursor:n});let r=await this._client.conversations.history(await this.withToken({channel:e,limit:t,oldest:n,inclusive:!n&&void 0})),i=(r.messages||[]).reverse(),a=await Promise.all(i.map(t=>{let n=`slack:${e}:${t.thread_ts||t.ts||``}`;return this.parseSlackMessage(t,n)})),o;if(r.has_more&&i.length>0){let e=i.at(-1);e?.ts&&(o=e.ts)}return{messages:a,nextCursor:o}}async fetchChannelMessagesBackward(e,t,n){this.logger.debug(`Slack API: conversations.history (backward)`,{channel:e,limit:t,cursor:n});let r=await this._client.conversations.history(await this.withToken({channel:e,limit:t,latest:n,inclusive:!n&&void 0})),i=[...r.messages||[]].reverse(),a=await Promise.all(i.map(t=>{let n=`slack:${e}:${t.thread_ts||t.ts||``}`;return this.parseSlackMessage(t,n)})),o;if(r.has_more&&i.length>0){let e=i[0];e?.ts&&(o=e.ts)}return{messages:a,nextCursor:o}}async listThreads(e,t={}){let n=e.split(`:`)[1];if(!n)throw new k(`slack`,`Invalid Slack channel ID: ${e}`);let r=t.limit||50;try{this.logger.debug(`Slack API: conversations.history (listThreads)`,{channel:n,limit:r,cursor:t.cursor});let e=await this._client.conversations.history(await this.withToken({channel:n,limit:Math.min(r*3,200),cursor:t.cursor})),i=(e.messages||[]).filter(e=>(e.reply_count??0)>0).slice(0,r);return{threads:await Promise.all(i.map(async e=>{let t=e.ts||``,r=`slack:${n}:${t}`;return{id:r,rootMessage:await this.parseSlackMessage(e,r),replyCount:e.reply_count,lastReplyAt:e.latest_reply?new Date(Number.parseFloat(e.latest_reply)*1e3):void 0}})),nextCursor:e.response_metadata?.next_cursor||void 0}}catch(e){this.handleSlackError(e)}}async fetchChannelInfo(e){let t=e.split(`:`)[1];if(!t)throw new k(`slack`,`Invalid Slack channel ID: ${e}`);try{this.logger.debug(`Slack API: conversations.info (channel)`,{channel:t});let n=(await this._client.conversations.info(await this.withToken({channel:t}))).channel;n?.is_ext_shared&&this._externalChannels.add(t);let r=`unknown`;return n?.is_ext_shared?r=`external`:n?.is_im||n?.is_mpim||n?.is_private||t.startsWith(`D`)?r=`private`:t.startsWith(`C`)&&(r=`workspace`),{id:e,name:n?.name?`#${n.name}`:void 0,isDM:!!(n?.is_im||n?.is_mpim),channelVisibility:r,memberCount:n?.num_members,metadata:{purpose:n?.purpose?.value,topic:n?.topic?.value}}}catch(e){this.handleSlackError(e)}}async postChannelMessage(e,t){let n=e.split(`:`)[1];if(!n)throw new k(`slack`,`Invalid Slack channel ID: ${e}`);let r=`slack:${n}:`,i=await this.postMessage(r,t);return typeof i.raw!=`object`||i.raw===null||!(`ts`in i.raw)||typeof i.raw.ts!=`string`?i:{...i,threadId:this.encodeThreadId({channel:n,threadTs:i.raw.ts})}}renderFormatted(e){return this.formatConverter.fromAst(e)}isMessageFromSelf(e){let t=e.user||e.bot_profile?.user_id,n=this.requestContext.getStore();return!!(n?.botUserId&&t===n.botUserId||this._botUserId&&t===this._botUserId||this._botId&&e.bot_id===this._botId)}handleSlackError(e){let t=e;throw t.code===`slack_webapi_platform_error`&&t.data?.error===`ratelimited`?new I(`slack`):e}encodeEphemeralMessageId(e,t,n){if(!ua(t))throw new k(`slack`,`Refusing to encode an untrusted Slack response_url`);let r=JSON.stringify({responseUrl:t,userId:n});return`ephemeral:${e}:${btoa(r)}`}decodeEphemeralMessageId(e){if(!e.startsWith(`ephemeral:`))return null;let t=e.split(`:`);if(t.length<3)return null;let n=t[1],r=t.slice(2).join(`:`);try{let e=atob(r);try{let t=JSON.parse(e);if(t&&typeof t==`object`&&`responseUrl`in t&&typeof t.responseUrl==`string`&&ua(t.responseUrl)&&`userId`in t&&typeof t.userId==`string`&&t.userId.length>0)return{messageTs:n,responseUrl:t.responseUrl,userId:t.userId}}catch{return null}return null}catch{return this.logger.warn(`Failed to decode ephemeral messageId`,{messageId:e}),null}}async sendToResponseUrl(e,t,n){if(!ua(e))throw new k(`slack`,`Refusing to send content to an untrusted Slack response_url`);let r;if(t===`delete`)r={delete_original:!0};else{let e=n?.message;if(!e)throw new k(`slack`,`Message required for replace action`);let t=T(e);r=t?{replace_original:!0,text:pi(t),blocks:xr(t)}:{replace_original:!0,text:this.formatConverter.toResponseUrlText(e)},n?.threadTs&&(r.thread_ts=n.threadTs)}this.logger.debug(`Slack response_url request`,{action:t,threadTs:n?.threadTs});let i=await this.postJson(e,r);if(!i.ok){let e=await i.text();throw this.logger.error(`Slack response_url failed`,{action:t,status:i.status,body:e}),new P(`slack`,`Failed to ${t} via response_url: ${e}`)}let a=await i.text();if(a)try{return JSON.parse(a)}catch{return{raw:a}}return{}}};function Ka(e){let t=e?.mode??`webhook`,n=e?.appToken??process.env.SLACK_APP_TOKEN;if(t===`socket`){if(!n)throw new k(`slack`,`appToken is required for socket mode. Set SLACK_APP_TOKEN or provide it in config.`);if(e?.clientId||e?.clientSecret)throw new k(`slack`,`Multi-workspace (clientId/clientSecret) is not supported in socket mode.`)}let r=e?.webhookVerifier,i=r?void 0:e?.signingSecret??process.env.SLACK_SIGNING_SECRET;if(t===`webhook`&&!(i||r))throw new k(`slack`,`signingSecret or webhookVerifier is required. Set SLACK_SIGNING_SECRET, provide signingSecret in config, or provide a webhookVerifier.`);let a=!(e?.botToken||e?.clientId||e?.clientSecret||e?.installationProvider||e?.signingSecret||e?.webhookVerifier);return new Ga({agentView:e?.agentView,apiUrl:e?.apiUrl,appToken:n,mode:t,signingSecret:i,botToken:e?.botToken??(a?process.env.SLACK_BOT_TOKEN:void 0),clientId:e?.clientId??(a?process.env.SLACK_CLIENT_ID:void 0),clientSecret:e?.clientSecret??(a?process.env.SLACK_CLIENT_SECRET:void 0),encryptionKey:e?.encryptionKey??process.env.SLACK_ENCRYPTION_KEY,installationKeyPrefix:e?.installationKeyPrefix,feedbackButtons:e?.feedbackButtons,fetch:e?.fetch,fileTransport:e?.fileTransport,installationProvider:e?.installationProvider,loadingMessages:e?.loadingMessages,logger:e?.logger??new we(`info`).child(`slack`),nativeStreaming:e?.nativeStreaming,streamSegmentMaxAgeMs:e?.streamSegmentMaxAgeMs,sessionTitle:e?.sessionTitle,suggestedPrompts:e?.suggestedPrompts,socketForwardingSecret:e?.socketForwardingSecret??process.env.SLACK_SOCKET_FORWARDING_SECRET,userName:e?.userName,botUserId:e?.botUserId,webClientOptions:e?.webClientOptions,webhookVerifier:r})}export{Ga as SlackAdapter,Ci as SlackFormatConverter,Ci as SlackMarkdownConverter,Na as buildFeedbackButtonsBlock,xr as cardToBlockKit,pi as cardToFallbackText,Ka as createSlackAdapter,F as decodeKey,br as getAppContext,l as isBotMention,yr as normalizeAppContextEntities};
|