@aitne/dashboard 0.1.0 → 0.1.2
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/.next/BUILD_ID +1 -1
- package/.next/build-manifest.json +3 -3
- package/.next/cache/.tsbuildinfo +1 -1
- package/.next/diagnostics/route-bundle-stats.json +210 -247
- package/.next/fallback-build-manifest.json +3 -3
- package/.next/server/app/_global-error.html +1 -1
- package/.next/server/app/_global-error.rsc +1 -1
- package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/server/app/_not-found.html +1 -1
- package/.next/server/app/_not-found.rsc +14 -14
- package/.next/server/app/_not-found.segments/_full.segment.rsc +14 -14
- package/.next/server/app/_not-found.segments/_head.segment.rsc +4 -4
- package/.next/server/app/_not-found.segments/_index.segment.rsc +9 -9
- package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +2 -2
- package/.next/server/app/_not-found.segments/_not-found.segment.rsc +3 -3
- package/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/activity/page.js.nft.json +1 -1
- package/.next/server/app/activity/page_client-reference-manifest.js +1 -1
- package/.next/server/app/activity.html +1 -1
- package/.next/server/app/activity.rsc +27 -26
- package/.next/server/app/activity.segments/_full.segment.rsc +27 -26
- package/.next/server/app/activity.segments/_head.segment.rsc +4 -4
- package/.next/server/app/activity.segments/_index.segment.rsc +9 -9
- package/.next/server/app/activity.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/activity.segments/activity/__PAGE__.segment.rsc +4 -4
- package/.next/server/app/activity.segments/activity.segment.rsc +4 -4
- package/.next/server/app/analytics/page.js.nft.json +1 -1
- package/.next/server/app/analytics/page_client-reference-manifest.js +1 -1
- package/.next/server/app/analytics.html +1 -1
- package/.next/server/app/analytics.rsc +22 -23
- package/.next/server/app/analytics.segments/_full.segment.rsc +22 -23
- package/.next/server/app/analytics.segments/_head.segment.rsc +4 -4
- package/.next/server/app/analytics.segments/_index.segment.rsc +9 -9
- package/.next/server/app/analytics.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/analytics.segments/analytics/__PAGE__.segment.rsc +4 -4
- package/.next/server/app/analytics.segments/analytics.segment.rsc +4 -4
- package/.next/server/app/api/[...path]/route.js +1 -1
- package/.next/server/app/api/[...path]/route.js.nft.json +1 -1
- package/.next/server/app/chat/page.js.nft.json +1 -1
- package/.next/server/app/chat/page_client-reference-manifest.js +1 -1
- package/.next/server/app/chat.html +1 -1
- package/.next/server/app/chat.rsc +16 -16
- package/.next/server/app/chat.segments/_full.segment.rsc +16 -16
- package/.next/server/app/chat.segments/_head.segment.rsc +4 -4
- package/.next/server/app/chat.segments/_index.segment.rsc +9 -9
- package/.next/server/app/chat.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/chat.segments/chat/__PAGE__.segment.rsc +4 -4
- package/.next/server/app/chat.segments/chat.segment.rsc +3 -3
- package/.next/server/app/connections/calendar/page.js.nft.json +1 -1
- package/.next/server/app/connections/calendar/page_client-reference-manifest.js +1 -1
- package/.next/server/app/connections/calendar.html +1 -1
- package/.next/server/app/connections/calendar.rsc +17 -17
- package/.next/server/app/connections/calendar.segments/_full.segment.rsc +17 -17
- package/.next/server/app/connections/calendar.segments/_head.segment.rsc +4 -4
- package/.next/server/app/connections/calendar.segments/_index.segment.rsc +9 -9
- package/.next/server/app/connections/calendar.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/connections/calendar.segments/connections/calendar/__PAGE__.segment.rsc +4 -4
- package/.next/server/app/connections/calendar.segments/connections/calendar.segment.rsc +3 -3
- package/.next/server/app/connections/calendar.segments/connections.segment.rsc +4 -4
- package/.next/server/app/connections/journal/page.js.nft.json +1 -1
- package/.next/server/app/connections/journal/page_client-reference-manifest.js +1 -1
- package/.next/server/app/connections/journal.html +1 -1
- package/.next/server/app/connections/journal.rsc +15 -15
- package/.next/server/app/connections/journal.segments/_full.segment.rsc +15 -15
- package/.next/server/app/connections/journal.segments/_head.segment.rsc +4 -4
- package/.next/server/app/connections/journal.segments/_index.segment.rsc +9 -9
- package/.next/server/app/connections/journal.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/connections/journal.segments/connections/journal/__PAGE__.segment.rsc +2 -2
- package/.next/server/app/connections/journal.segments/connections/journal.segment.rsc +3 -3
- package/.next/server/app/connections/journal.segments/connections.segment.rsc +4 -4
- package/.next/server/app/connections/knowledge/page.js.nft.json +1 -1
- package/.next/server/app/connections/knowledge/page_client-reference-manifest.js +1 -1
- package/.next/server/app/connections/knowledge.html +1 -1
- package/.next/server/app/connections/knowledge.rsc +17 -17
- package/.next/server/app/connections/knowledge.segments/_full.segment.rsc +17 -17
- package/.next/server/app/connections/knowledge.segments/_head.segment.rsc +4 -4
- package/.next/server/app/connections/knowledge.segments/_index.segment.rsc +9 -9
- package/.next/server/app/connections/knowledge.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/connections/knowledge.segments/connections/knowledge/__PAGE__.segment.rsc +4 -4
- package/.next/server/app/connections/knowledge.segments/connections/knowledge.segment.rsc +3 -3
- package/.next/server/app/connections/knowledge.segments/connections.segment.rsc +4 -4
- package/.next/server/app/connections/mail/page.js.nft.json +1 -1
- package/.next/server/app/connections/mail/page_client-reference-manifest.js +1 -1
- package/.next/server/app/connections/mail.html +1 -1
- package/.next/server/app/connections/mail.rsc +17 -17
- package/.next/server/app/connections/mail.segments/_full.segment.rsc +17 -17
- package/.next/server/app/connections/mail.segments/_head.segment.rsc +4 -4
- package/.next/server/app/connections/mail.segments/_index.segment.rsc +9 -9
- package/.next/server/app/connections/mail.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/connections/mail.segments/connections/mail/__PAGE__.segment.rsc +4 -4
- package/.next/server/app/connections/mail.segments/connections/mail.segment.rsc +3 -3
- package/.next/server/app/connections/mail.segments/connections.segment.rsc +4 -4
- package/.next/server/app/connections/mcp/page.js.nft.json +1 -1
- package/.next/server/app/connections/mcp/page_client-reference-manifest.js +1 -1
- package/.next/server/app/connections/mcp.html +1 -1
- package/.next/server/app/connections/mcp.rsc +17 -17
- package/.next/server/app/connections/mcp.segments/_full.segment.rsc +17 -17
- package/.next/server/app/connections/mcp.segments/_head.segment.rsc +4 -4
- package/.next/server/app/connections/mcp.segments/_index.segment.rsc +9 -9
- package/.next/server/app/connections/mcp.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/connections/mcp.segments/connections/mcp/__PAGE__.segment.rsc +4 -4
- package/.next/server/app/connections/mcp.segments/connections/mcp.segment.rsc +3 -3
- package/.next/server/app/connections/mcp.segments/connections.segment.rsc +4 -4
- package/.next/server/app/connections/messaging/page.js.nft.json +1 -1
- package/.next/server/app/connections/messaging/page_client-reference-manifest.js +1 -1
- package/.next/server/app/connections/messaging.html +1 -1
- package/.next/server/app/connections/messaging.rsc +17 -17
- package/.next/server/app/connections/messaging.segments/_full.segment.rsc +17 -17
- package/.next/server/app/connections/messaging.segments/_head.segment.rsc +4 -4
- package/.next/server/app/connections/messaging.segments/_index.segment.rsc +9 -9
- package/.next/server/app/connections/messaging.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/connections/messaging.segments/connections/messaging/__PAGE__.segment.rsc +4 -4
- package/.next/server/app/connections/messaging.segments/connections/messaging.segment.rsc +3 -3
- package/.next/server/app/connections/messaging.segments/connections.segment.rsc +4 -4
- package/.next/server/app/connections/page.js.nft.json +1 -1
- package/.next/server/app/connections/page_client-reference-manifest.js +1 -1
- package/.next/server/app/connections/repositories/page.js.nft.json +1 -1
- package/.next/server/app/connections/repositories/page_client-reference-manifest.js +1 -1
- package/.next/server/app/connections/repositories.html +1 -1
- package/.next/server/app/connections/repositories.rsc +17 -17
- package/.next/server/app/connections/repositories.segments/_full.segment.rsc +17 -17
- package/.next/server/app/connections/repositories.segments/_head.segment.rsc +4 -4
- package/.next/server/app/connections/repositories.segments/_index.segment.rsc +9 -9
- package/.next/server/app/connections/repositories.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/connections/repositories.segments/connections/repositories/__PAGE__.segment.rsc +4 -4
- package/.next/server/app/connections/repositories.segments/connections/repositories.segment.rsc +3 -3
- package/.next/server/app/connections/repositories.segments/connections.segment.rsc +4 -4
- package/.next/server/app/connections/routines/page.js.nft.json +1 -1
- package/.next/server/app/connections/routines/page_client-reference-manifest.js +1 -1
- package/.next/server/app/connections/routines.html +1 -1
- package/.next/server/app/connections/routines.rsc +15 -15
- package/.next/server/app/connections/routines.segments/_full.segment.rsc +15 -15
- package/.next/server/app/connections/routines.segments/_head.segment.rsc +4 -4
- package/.next/server/app/connections/routines.segments/_index.segment.rsc +9 -9
- package/.next/server/app/connections/routines.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/connections/routines.segments/connections/routines/__PAGE__.segment.rsc +2 -2
- package/.next/server/app/connections/routines.segments/connections/routines.segment.rsc +3 -3
- package/.next/server/app/connections/routines.segments/connections.segment.rsc +4 -4
- package/.next/server/app/connections.html +1 -1
- package/.next/server/app/connections.rsc +15 -15
- package/.next/server/app/connections.segments/_full.segment.rsc +15 -15
- package/.next/server/app/connections.segments/_head.segment.rsc +4 -4
- package/.next/server/app/connections.segments/_index.segment.rsc +9 -9
- package/.next/server/app/connections.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/connections.segments/connections/__PAGE__.segment.rsc +2 -2
- package/.next/server/app/connections.segments/connections.segment.rsc +4 -4
- package/.next/server/app/conversations/[id]/page.js.nft.json +1 -1
- package/.next/server/app/conversations/[id]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/conversations/page.js.nft.json +1 -1
- package/.next/server/app/conversations/page_client-reference-manifest.js +1 -1
- package/.next/server/app/conversations.html +1 -1
- package/.next/server/app/conversations.rsc +14 -14
- package/.next/server/app/conversations.segments/_full.segment.rsc +14 -14
- package/.next/server/app/conversations.segments/_head.segment.rsc +4 -4
- package/.next/server/app/conversations.segments/_index.segment.rsc +9 -9
- package/.next/server/app/conversations.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/conversations.segments/conversations/__PAGE__.segment.rsc +2 -2
- package/.next/server/app/conversations.segments/conversations.segment.rsc +3 -3
- package/.next/server/app/docs/[[...slug]]/page.js.nft.json +1 -1
- package/.next/server/app/docs/[[...slug]]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/finance/page.js.nft.json +1 -1
- package/.next/server/app/finance/page_client-reference-manifest.js +1 -1
- package/.next/server/app/finance.html +1 -1
- package/.next/server/app/finance.rsc +16 -16
- package/.next/server/app/finance.segments/_full.segment.rsc +16 -16
- package/.next/server/app/finance.segments/_head.segment.rsc +4 -4
- package/.next/server/app/finance.segments/_index.segment.rsc +9 -9
- package/.next/server/app/finance.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/finance.segments/finance/__PAGE__.segment.rsc +4 -4
- package/.next/server/app/finance.segments/finance.segment.rsc +3 -3
- package/.next/server/app/git/page.js.nft.json +1 -1
- package/.next/server/app/git/page_client-reference-manifest.js +1 -1
- package/.next/server/app/git.html +1 -1
- package/.next/server/app/git.rsc +16 -16
- package/.next/server/app/git.segments/_full.segment.rsc +16 -16
- package/.next/server/app/git.segments/_head.segment.rsc +4 -4
- package/.next/server/app/git.segments/_index.segment.rsc +9 -9
- package/.next/server/app/git.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/git.segments/git/__PAGE__.segment.rsc +4 -4
- package/.next/server/app/git.segments/git.segment.rsc +3 -3
- package/.next/server/app/health/page.js.nft.json +1 -1
- package/.next/server/app/health/page_client-reference-manifest.js +1 -1
- package/.next/server/app/health.html +1 -1
- package/.next/server/app/health.rsc +16 -16
- package/.next/server/app/health.segments/_full.segment.rsc +16 -16
- package/.next/server/app/health.segments/_head.segment.rsc +4 -4
- package/.next/server/app/health.segments/_index.segment.rsc +9 -9
- package/.next/server/app/health.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/health.segments/health/__PAGE__.segment.rsc +4 -4
- package/.next/server/app/health.segments/health.segment.rsc +3 -3
- package/.next/server/app/index.html +1 -1
- package/.next/server/app/index.rsc +16 -16
- package/.next/server/app/index.segments/__PAGE__.segment.rsc +4 -4
- package/.next/server/app/index.segments/_full.segment.rsc +16 -16
- package/.next/server/app/index.segments/_head.segment.rsc +4 -4
- package/.next/server/app/index.segments/_index.segment.rsc +9 -9
- package/.next/server/app/index.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/knowledge/page.js.nft.json +1 -1
- package/.next/server/app/knowledge/page_client-reference-manifest.js +1 -1
- package/.next/server/app/knowledge.html +1 -1
- package/.next/server/app/knowledge.rsc +17 -17
- package/.next/server/app/knowledge.segments/_full.segment.rsc +17 -17
- package/.next/server/app/knowledge.segments/_head.segment.rsc +4 -4
- package/.next/server/app/knowledge.segments/_index.segment.rsc +9 -9
- package/.next/server/app/knowledge.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/knowledge.segments/knowledge/__PAGE__.segment.rsc +4 -4
- package/.next/server/app/knowledge.segments/knowledge.segment.rsc +4 -4
- package/.next/server/app/page.js.nft.json +1 -1
- package/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/server/app/reading/page.js.nft.json +1 -1
- package/.next/server/app/reading/page_client-reference-manifest.js +1 -1
- package/.next/server/app/reading.html +1 -1
- package/.next/server/app/reading.rsc +16 -16
- package/.next/server/app/reading.segments/_full.segment.rsc +16 -16
- package/.next/server/app/reading.segments/_head.segment.rsc +4 -4
- package/.next/server/app/reading.segments/_index.segment.rsc +9 -9
- package/.next/server/app/reading.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/reading.segments/reading/__PAGE__.segment.rsc +4 -4
- package/.next/server/app/reading.segments/reading.segment.rsc +3 -3
- package/.next/server/app/schedule/page.js.nft.json +1 -1
- package/.next/server/app/schedule/page_client-reference-manifest.js +1 -1
- package/.next/server/app/schedule.html +1 -1
- package/.next/server/app/schedule.rsc +16 -16
- package/.next/server/app/schedule.segments/_full.segment.rsc +16 -16
- package/.next/server/app/schedule.segments/_head.segment.rsc +4 -4
- package/.next/server/app/schedule.segments/_index.segment.rsc +9 -9
- package/.next/server/app/schedule.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/schedule.segments/schedule/__PAGE__.segment.rsc +4 -4
- package/.next/server/app/schedule.segments/schedule.segment.rsc +3 -3
- package/.next/server/app/settings/advanced/page.js.nft.json +1 -1
- package/.next/server/app/settings/advanced/page_client-reference-manifest.js +1 -1
- package/.next/server/app/settings/advanced.html +1 -1
- package/.next/server/app/settings/advanced.rsc +17 -17
- package/.next/server/app/settings/advanced.segments/_full.segment.rsc +17 -17
- package/.next/server/app/settings/advanced.segments/_head.segment.rsc +4 -4
- package/.next/server/app/settings/advanced.segments/_index.segment.rsc +9 -9
- package/.next/server/app/settings/advanced.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/settings/advanced.segments/settings/advanced/__PAGE__.segment.rsc +4 -4
- package/.next/server/app/settings/advanced.segments/settings/advanced.segment.rsc +3 -3
- package/.next/server/app/settings/advanced.segments/settings.segment.rsc +4 -4
- package/.next/server/app/settings/backends/page.js.nft.json +1 -1
- package/.next/server/app/settings/backends/page_client-reference-manifest.js +1 -1
- package/.next/server/app/settings/backends.html +1 -1
- package/.next/server/app/settings/backends.rsc +15 -15
- package/.next/server/app/settings/backends.segments/_full.segment.rsc +15 -15
- package/.next/server/app/settings/backends.segments/_head.segment.rsc +4 -4
- package/.next/server/app/settings/backends.segments/_index.segment.rsc +9 -9
- package/.next/server/app/settings/backends.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/settings/backends.segments/settings/backends/__PAGE__.segment.rsc +2 -2
- package/.next/server/app/settings/backends.segments/settings/backends.segment.rsc +3 -3
- package/.next/server/app/settings/backends.segments/settings.segment.rsc +4 -4
- package/.next/server/app/settings/commands/page.js.nft.json +1 -1
- package/.next/server/app/settings/commands/page_client-reference-manifest.js +1 -1
- package/.next/server/app/settings/commands.html +1 -1
- package/.next/server/app/settings/commands.rsc +17 -17
- package/.next/server/app/settings/commands.segments/_full.segment.rsc +17 -17
- package/.next/server/app/settings/commands.segments/_head.segment.rsc +4 -4
- package/.next/server/app/settings/commands.segments/_index.segment.rsc +9 -9
- package/.next/server/app/settings/commands.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/settings/commands.segments/settings/commands/__PAGE__.segment.rsc +4 -4
- package/.next/server/app/settings/commands.segments/settings/commands.segment.rsc +3 -3
- package/.next/server/app/settings/commands.segments/settings.segment.rsc +4 -4
- package/.next/server/app/settings/connections/page.js.nft.json +1 -1
- package/.next/server/app/settings/connections/page_client-reference-manifest.js +1 -1
- package/.next/server/app/settings/connections.html +1 -1
- package/.next/server/app/settings/connections.rsc +15 -15
- package/.next/server/app/settings/connections.segments/_full.segment.rsc +15 -15
- package/.next/server/app/settings/connections.segments/_head.segment.rsc +4 -4
- package/.next/server/app/settings/connections.segments/_index.segment.rsc +9 -9
- package/.next/server/app/settings/connections.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/settings/connections.segments/settings/connections/__PAGE__.segment.rsc +2 -2
- package/.next/server/app/settings/connections.segments/settings/connections.segment.rsc +3 -3
- package/.next/server/app/settings/connections.segments/settings.segment.rsc +4 -4
- package/.next/server/app/settings/journal/page.js.nft.json +1 -1
- package/.next/server/app/settings/journal/page_client-reference-manifest.js +1 -1
- package/.next/server/app/settings/journal.html +1 -1
- package/.next/server/app/settings/journal.rsc +17 -17
- package/.next/server/app/settings/journal.segments/_full.segment.rsc +17 -17
- package/.next/server/app/settings/journal.segments/_head.segment.rsc +4 -4
- package/.next/server/app/settings/journal.segments/_index.segment.rsc +9 -9
- package/.next/server/app/settings/journal.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/settings/journal.segments/settings/journal/__PAGE__.segment.rsc +4 -4
- package/.next/server/app/settings/journal.segments/settings/journal.segment.rsc +3 -3
- package/.next/server/app/settings/journal.segments/settings.segment.rsc +4 -4
- package/.next/server/app/settings/management/page.js.nft.json +1 -1
- package/.next/server/app/settings/management/page_client-reference-manifest.js +1 -1
- package/.next/server/app/settings/management.html +1 -1
- package/.next/server/app/settings/management.rsc +17 -17
- package/.next/server/app/settings/management.segments/_full.segment.rsc +17 -17
- package/.next/server/app/settings/management.segments/_head.segment.rsc +4 -4
- package/.next/server/app/settings/management.segments/_index.segment.rsc +9 -9
- package/.next/server/app/settings/management.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/settings/management.segments/settings/management/__PAGE__.segment.rsc +4 -4
- package/.next/server/app/settings/management.segments/settings/management.segment.rsc +3 -3
- package/.next/server/app/settings/management.segments/settings.segment.rsc +4 -4
- package/.next/server/app/settings/messaging/page.js.nft.json +1 -1
- package/.next/server/app/settings/messaging/page_client-reference-manifest.js +1 -1
- package/.next/server/app/settings/messaging.html +1 -1
- package/.next/server/app/settings/messaging.rsc +15 -15
- package/.next/server/app/settings/messaging.segments/_full.segment.rsc +15 -15
- package/.next/server/app/settings/messaging.segments/_head.segment.rsc +4 -4
- package/.next/server/app/settings/messaging.segments/_index.segment.rsc +9 -9
- package/.next/server/app/settings/messaging.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/settings/messaging.segments/settings/messaging/__PAGE__.segment.rsc +2 -2
- package/.next/server/app/settings/messaging.segments/settings/messaging.segment.rsc +3 -3
- package/.next/server/app/settings/messaging.segments/settings.segment.rsc +4 -4
- package/.next/server/app/settings/models/page.js.nft.json +1 -1
- package/.next/server/app/settings/models/page_client-reference-manifest.js +1 -1
- package/.next/server/app/settings/models.html +1 -1
- package/.next/server/app/settings/models.rsc +17 -17
- package/.next/server/app/settings/models.segments/_full.segment.rsc +17 -17
- package/.next/server/app/settings/models.segments/_head.segment.rsc +4 -4
- package/.next/server/app/settings/models.segments/_index.segment.rsc +9 -9
- package/.next/server/app/settings/models.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/settings/models.segments/settings/models/__PAGE__.segment.rsc +4 -4
- package/.next/server/app/settings/models.segments/settings/models.segment.rsc +3 -3
- package/.next/server/app/settings/models.segments/settings.segment.rsc +4 -4
- package/.next/server/app/settings/page.js.nft.json +1 -1
- package/.next/server/app/settings/page_client-reference-manifest.js +1 -1
- package/.next/server/app/settings/processes/page.js.nft.json +1 -1
- package/.next/server/app/settings/processes/page_client-reference-manifest.js +1 -1
- package/.next/server/app/settings/processes.html +1 -1
- package/.next/server/app/settings/processes.rsc +15 -15
- package/.next/server/app/settings/processes.segments/_full.segment.rsc +15 -15
- package/.next/server/app/settings/processes.segments/_head.segment.rsc +4 -4
- package/.next/server/app/settings/processes.segments/_index.segment.rsc +9 -9
- package/.next/server/app/settings/processes.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/settings/processes.segments/settings/processes/__PAGE__.segment.rsc +2 -2
- package/.next/server/app/settings/processes.segments/settings/processes.segment.rsc +3 -3
- package/.next/server/app/settings/processes.segments/settings.segment.rsc +4 -4
- package/.next/server/app/settings/routines/page.js.nft.json +1 -1
- package/.next/server/app/settings/routines/page_client-reference-manifest.js +1 -1
- package/.next/server/app/settings/routines.html +1 -1
- package/.next/server/app/settings/routines.rsc +17 -17
- package/.next/server/app/settings/routines.segments/_full.segment.rsc +17 -17
- package/.next/server/app/settings/routines.segments/_head.segment.rsc +4 -4
- package/.next/server/app/settings/routines.segments/_index.segment.rsc +9 -9
- package/.next/server/app/settings/routines.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/settings/routines.segments/settings/routines/__PAGE__.segment.rsc +4 -4
- package/.next/server/app/settings/routines.segments/settings/routines.segment.rsc +3 -3
- package/.next/server/app/settings/routines.segments/settings.segment.rsc +4 -4
- package/.next/server/app/settings/schedule/page.js.nft.json +1 -1
- package/.next/server/app/settings/schedule/page_client-reference-manifest.js +1 -1
- package/.next/server/app/settings/schedule.html +1 -1
- package/.next/server/app/settings/schedule.rsc +17 -17
- package/.next/server/app/settings/schedule.segments/_full.segment.rsc +17 -17
- package/.next/server/app/settings/schedule.segments/_head.segment.rsc +4 -4
- package/.next/server/app/settings/schedule.segments/_index.segment.rsc +9 -9
- package/.next/server/app/settings/schedule.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/settings/schedule.segments/settings/schedule/__PAGE__.segment.rsc +4 -4
- package/.next/server/app/settings/schedule.segments/settings/schedule.segment.rsc +3 -3
- package/.next/server/app/settings/schedule.segments/settings.segment.rsc +4 -4
- package/.next/server/app/settings/self-learning/page.js.nft.json +1 -1
- package/.next/server/app/settings/self-learning/page_client-reference-manifest.js +1 -1
- package/.next/server/app/settings/self-learning.html +1 -1
- package/.next/server/app/settings/self-learning.rsc +17 -17
- package/.next/server/app/settings/self-learning.segments/_full.segment.rsc +17 -17
- package/.next/server/app/settings/self-learning.segments/_head.segment.rsc +4 -4
- package/.next/server/app/settings/self-learning.segments/_index.segment.rsc +9 -9
- package/.next/server/app/settings/self-learning.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/settings/self-learning.segments/settings/self-learning/__PAGE__.segment.rsc +4 -4
- package/.next/server/app/settings/self-learning.segments/settings/self-learning.segment.rsc +3 -3
- package/.next/server/app/settings/self-learning.segments/settings.segment.rsc +4 -4
- package/.next/server/app/settings.html +1 -1
- package/.next/server/app/settings.rsc +17 -17
- package/.next/server/app/settings.segments/_full.segment.rsc +17 -17
- package/.next/server/app/settings.segments/_head.segment.rsc +4 -4
- package/.next/server/app/settings.segments/_index.segment.rsc +9 -9
- package/.next/server/app/settings.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/settings.segments/settings/__PAGE__.segment.rsc +4 -4
- package/.next/server/app/settings.segments/settings.segment.rsc +4 -4
- package/.next/server/app/setup/page.js.nft.json +1 -1
- package/.next/server/app/setup/page_client-reference-manifest.js +1 -1
- package/.next/server/app/setup.html +1 -1
- package/.next/server/app/setup.rsc +16 -16
- package/.next/server/app/setup.segments/_full.segment.rsc +16 -16
- package/.next/server/app/setup.segments/_head.segment.rsc +4 -4
- package/.next/server/app/setup.segments/_index.segment.rsc +9 -9
- package/.next/server/app/setup.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/setup.segments/setup/__PAGE__.segment.rsc +4 -4
- package/.next/server/app/setup.segments/setup.segment.rsc +3 -3
- package/.next/server/app/trip/page.js.nft.json +1 -1
- package/.next/server/app/trip/page_client-reference-manifest.js +1 -1
- package/.next/server/app/trip.html +1 -1
- package/.next/server/app/trip.rsc +16 -16
- package/.next/server/app/trip.segments/_full.segment.rsc +16 -16
- package/.next/server/app/trip.segments/_head.segment.rsc +4 -4
- package/.next/server/app/trip.segments/_index.segment.rsc +9 -9
- package/.next/server/app/trip.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/trip.segments/trip/__PAGE__.segment.rsc +4 -4
- package/.next/server/app/trip.segments/trip.segment.rsc +3 -3
- package/.next/server/chunks/05w9_next_dist_esm_build_templates_app-route_0~eezk6.js +3 -3
- package/.next/server/chunks/05w9_next_dist_esm_build_templates_app-route_0~eezk6.js.map +1 -1
- package/.next/server/chunks/{[root-of-the-server]__0j~awob._.js → [root-of-the-server]__0dwxuh7._.js} +1 -1
- package/.next/server/chunks/{[root-of-the-server]__04-hp3j._.js → [root-of-the-server]__0k7lkv6._.js} +2 -2
- package/.next/server/chunks/ssr/{[root-of-the-server]__0t26ngg._.js → [root-of-the-server]__0ngitfo._.js} +2 -2
- package/.next/server/chunks/ssr/{[root-of-the-server]__0t26ngg._.js.map → [root-of-the-server]__0ngitfo._.js.map} +1 -1
- package/.next/server/chunks/ssr/{_0pvc7ao._.js → _0370l.6._.js} +2 -2
- package/.next/server/chunks/ssr/{_0pvc7ao._.js.map → _0370l.6._.js.map} +1 -1
- package/.next/server/chunks/ssr/_04kt9.8._.js +3 -0
- package/.next/server/chunks/ssr/_04kt9.8._.js.map +1 -0
- package/.next/server/chunks/ssr/_060itkv._.js +3 -0
- package/.next/server/chunks/ssr/_060itkv._.js.map +1 -0
- package/.next/server/chunks/ssr/{_0pydxc8._.js → _083cqy.._.js} +2 -2
- package/.next/server/chunks/ssr/_083cqy.._.js.map +1 -0
- package/.next/server/chunks/ssr/{_0lm8td~._.js → _08mbdt1._.js} +2 -2
- package/.next/server/chunks/ssr/_08mbdt1._.js.map +1 -0
- package/.next/server/chunks/ssr/_0938p.1._.js +3 -0
- package/.next/server/chunks/ssr/_0938p.1._.js.map +1 -0
- package/.next/server/chunks/ssr/_0ff5qav._.js +3 -0
- package/.next/server/chunks/ssr/_0ff5qav._.js.map +1 -0
- package/.next/server/chunks/ssr/_0g2e834._.js +3 -0
- package/.next/server/chunks/ssr/_0g2e834._.js.map +1 -0
- package/.next/server/chunks/ssr/_0gp8d.p._.js +3 -0
- package/.next/server/chunks/ssr/_0gp8d.p._.js.map +1 -0
- package/.next/server/chunks/ssr/_0k2j6-t._.js +3 -0
- package/.next/server/chunks/ssr/_0k2j6-t._.js.map +1 -0
- package/.next/server/chunks/ssr/_0kq5x2k._.js +3 -0
- package/.next/server/chunks/ssr/_0kq5x2k._.js.map +1 -0
- package/.next/server/chunks/ssr/_0mk7dqt._.js +3 -0
- package/.next/server/chunks/ssr/_0mk7dqt._.js.map +1 -0
- package/.next/server/chunks/ssr/_0qgn2wv._.js +3 -0
- package/.next/server/chunks/ssr/_0qgn2wv._.js.map +1 -0
- package/.next/server/chunks/ssr/_0t-2u_i._.js +3 -0
- package/.next/server/chunks/ssr/_0t-2u_i._.js.map +1 -0
- package/.next/server/chunks/ssr/_0vn5_62._.js +5 -0
- package/.next/server/chunks/ssr/_0vn5_62._.js.map +1 -0
- package/.next/server/chunks/ssr/{_01aim8_._.js → _0z1gdb3._.js} +2 -2
- package/.next/server/chunks/ssr/{_01aim8_._.js.map → _0z1gdb3._.js.map} +1 -1
- package/.next/server/chunks/ssr/_0~4ta0s._.js +3 -0
- package/.next/server/chunks/ssr/_0~4ta0s._.js.map +1 -0
- package/.next/server/chunks/ssr/_0~5r_8s._.js +3 -0
- package/.next/server/chunks/ssr/_0~5r_8s._.js.map +1 -0
- package/.next/server/chunks/ssr/_13mk_9n._.js.map +1 -1
- package/.next/server/chunks/ssr/packages_dashboard_src_0uxs9-.._.js +1 -1
- package/.next/server/chunks/ssr/packages_dashboard_src_0uxs9-.._.js.map +1 -1
- package/.next/server/chunks/ssr/packages_dashboard_src_app_settings_advanced_page_tsx_0o~_885._.js +1 -1
- package/.next/server/chunks/ssr/packages_dashboard_src_app_settings_advanced_page_tsx_0o~_885._.js.map +1 -1
- package/.next/server/chunks/ssr/packages_shared_dist_index_0kuvow-.js +2 -2
- package/.next/server/chunks/ssr/packages_shared_dist_index_0kuvow-.js.map +1 -1
- package/.next/server/middleware/middleware-manifest.json +1 -1
- package/.next/server/middleware-build-manifest.js +3 -3
- package/.next/server/middleware-manifest.json +1 -1
- package/.next/server/pages/404.html +1 -1
- package/.next/server/pages/500.html +1 -1
- package/.next/static/chunks/00qqwuw5id.21.js +1 -0
- package/.next/static/chunks/0_yam4jvco3~t.js +1 -0
- package/.next/static/chunks/{107sryfaib58g.js → 0kjwfju1fsjkk.js} +1 -1
- package/.next/static/chunks/0yt4prt55bas4.js +11 -0
- package/.next/static/chunks/{0v2k5twh.h_g2.js → 10_4_2h602xzk.js} +3 -3
- package/.next/trace +2 -2
- package/.next/trace-build +1 -1
- package/package.json +11 -11
- package/.next/server/chunks/ssr/_0-v4eqm._.js +0 -3
- package/.next/server/chunks/ssr/_0-v4eqm._.js.map +0 -1
- package/.next/server/chunks/ssr/_03ay~a6._.js +0 -3
- package/.next/server/chunks/ssr/_03ay~a6._.js.map +0 -1
- package/.next/server/chunks/ssr/_05ul8c5._.js +0 -3
- package/.next/server/chunks/ssr/_05ul8c5._.js.map +0 -1
- package/.next/server/chunks/ssr/_0_1u-~q._.js +0 -3
- package/.next/server/chunks/ssr/_0_1u-~q._.js.map +0 -1
- package/.next/server/chunks/ssr/_0ax_-cr._.js +0 -3
- package/.next/server/chunks/ssr/_0ax_-cr._.js.map +0 -1
- package/.next/server/chunks/ssr/_0czapf~._.js +0 -3
- package/.next/server/chunks/ssr/_0czapf~._.js.map +0 -1
- package/.next/server/chunks/ssr/_0dlwb-j._.js +0 -3
- package/.next/server/chunks/ssr/_0dlwb-j._.js.map +0 -1
- package/.next/server/chunks/ssr/_0dvtdxd._.js +0 -3
- package/.next/server/chunks/ssr/_0dvtdxd._.js.map +0 -1
- package/.next/server/chunks/ssr/_0h-sc1p._.js +0 -3
- package/.next/server/chunks/ssr/_0h-sc1p._.js.map +0 -1
- package/.next/server/chunks/ssr/_0k_zx~4._.js +0 -3
- package/.next/server/chunks/ssr/_0k_zx~4._.js.map +0 -1
- package/.next/server/chunks/ssr/_0kqlqn5._.js +0 -5
- package/.next/server/chunks/ssr/_0kqlqn5._.js.map +0 -1
- package/.next/server/chunks/ssr/_0lm8td~._.js.map +0 -1
- package/.next/server/chunks/ssr/_0pydxc8._.js.map +0 -1
- package/.next/server/chunks/ssr/_115_o9h._.js +0 -3
- package/.next/server/chunks/ssr/_115_o9h._.js.map +0 -1
- package/.next/static/chunks/07k3fjq54671q.js +0 -1
- package/.next/static/chunks/0o6q9amhembht.js +0 -1
- package/.next/static/chunks/0pbah5-djvzuh.js +0 -11
- package/.next/static/chunks/0sz8178y9b-~6.js +0 -1
- package/LICENSE +0 -21
- /package/.next/server/chunks/{[root-of-the-server]__0j~awob._.js.map → [root-of-the-server]__0dwxuh7._.js.map} +0 -0
- /package/.next/server/chunks/{[root-of-the-server]__04-hp3j._.js.map → [root-of-the-server]__0k7lkv6._.js.map} +0 -0
- /package/.next/static/{BS7xnS8j09zEzTFQ8HuEd → BoJYg5-EvFL480WsH6xGD}/_buildManifest.js +0 -0
- /package/.next/static/{BS7xnS8j09zEzTFQ8HuEd → BoJYg5-EvFL480WsH6xGD}/_clientMiddlewareManifest.js +0 -0
- /package/.next/static/{BS7xnS8j09zEzTFQ8HuEd → BoJYg5-EvFL480WsH6xGD}/_ssgManifest.js +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,53030,(e,t,r)=>{!function(){var e={675:function(e,t){"use strict";t.byteLength=f,t.toByteArray=d,t.fromByteArray=p;for(var r=[],i=[],n="u">typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,s=a.length;o<s;++o)r[o]=a[o],i[a.charCodeAt(o)]=o;function u(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var i=r===t?0:4-r%4;return[r,i]}function f(e){var t=u(e),r=t[0],i=t[1];return(r+i)*3/4-i}function c(e,t,r){return(t+r)*3/4-r}function d(e){var t,r,a=u(e),o=a[0],s=a[1],f=new n(c(e,o,s)),d=0,l=s>0?o-4:o;for(r=0;r<l;r+=4)t=i[e.charCodeAt(r)]<<18|i[e.charCodeAt(r+1)]<<12|i[e.charCodeAt(r+2)]<<6|i[e.charCodeAt(r+3)],f[d++]=t>>16&255,f[d++]=t>>8&255,f[d++]=255&t;return 2===s&&(t=i[e.charCodeAt(r)]<<2|i[e.charCodeAt(r+1)]>>4,f[d++]=255&t),1===s&&(t=i[e.charCodeAt(r)]<<10|i[e.charCodeAt(r+1)]<<4|i[e.charCodeAt(r+2)]>>2,f[d++]=t>>8&255,f[d++]=255&t),f}function l(e){return r[e>>18&63]+r[e>>12&63]+r[e>>6&63]+r[63&e]}function h(e,t,r){for(var i=[],n=t;n<r;n+=3)i.push(l((e[n]<<16&0xff0000)+(e[n+1]<<8&65280)+(255&e[n+2])));return i.join("")}function p(e){for(var t,i=e.length,n=i%3,a=[],o=16383,s=0,u=i-n;s<u;s+=o)a.push(h(e,s,s+o>u?u:s+o));return 1===n?a.push(r[(t=e[i-1])>>2]+r[t<<4&63]+"=="):2===n&&a.push(r[(t=(e[i-2]<<8)+e[i-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),a.join("")}i[45]=62,i[95]=63},72:function(e,t,r){"use strict";var i=r(675),n=r(783),a="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=f,t.SlowBuffer=y,t.INSPECT_MAX_BYTES=50;var o=0x7fffffff;function s(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}function u(e){if(e>o)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,f.prototype),t}function f(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return h(e)}return c(e,t,r)}function c(e,t,r){if("string"==typeof e)return p(e,t);if(ArrayBuffer.isView(e))return m(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(X(e,ArrayBuffer)||e&&X(e.buffer,ArrayBuffer)||"u">typeof SharedArrayBuffer&&(X(e,SharedArrayBuffer)||e&&X(e.buffer,SharedArrayBuffer)))return b(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var i=e.valueOf&&e.valueOf();if(null!=i&&i!==e)return f.from(i,t,r);var n=g(e);if(n)return n;if("u">typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return f.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function d(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function l(e,t,r){return(d(e),e<=0)?u(e):void 0!==t?"string"==typeof r?u(e).fill(t,r):u(e).fill(t):u(e)}function h(e){return d(e),u(e<0?0:0|v(e))}function p(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!f.isEncoding(t))throw TypeError("Unknown encoding: "+t);var r=0|_(e,t),i=u(r),n=i.write(e,t);return n!==r&&(i=i.slice(0,n)),i}function m(e){for(var t=e.length<0?0:0|v(e.length),r=u(t),i=0;i<t;i+=1)r[i]=255&e[i];return r}function b(e,t,r){var i;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(i=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),f.prototype),i}function g(e){if(f.isBuffer(e)){var t=0|v(e.length),r=u(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||Y(e.length)?u(0):m(e):"Buffer"===e.type&&Array.isArray(e.data)?m(e.data):void 0}function v(e){if(e>=o)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return 0|e}function y(e){return+e!=e&&(e=0),f.alloc(+e)}function _(e,t){if(f.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||X(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,i=arguments.length>2&&!0===arguments[2];if(!i&&0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return W(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return G(e).length;default:if(n)return i?-1:W(e).length;t=(""+t).toLowerCase(),n=!0}}function x(e,t,r){var i=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return N(this,t,r);case"utf8":case"utf-8":return z(this,t,r);case"ascii":return T(this,t,r);case"latin1":case"binary":return R(this,t,r);case"base64":return j(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,t,r);default:if(i)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}function w(e,t,r){var i=e[t];e[t]=e[r],e[r]=i}function S(e,t,r,i,n){if(0===e.length)return -1;if("string"==typeof r?(i=r,r=0):r>0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),Y(r*=1)&&(r=n?0:e.length-1),r<0&&(r=e.length+r),r>=e.length)if(n)return -1;else r=e.length-1;else if(r<0)if(!n)return -1;else r=0;if("string"==typeof t&&(t=f.from(t,i)),f.isBuffer(t))return 0===t.length?-1:k(e,t,r,i,n);if("number"==typeof t){if(t&=255,"function"==typeof Uint8Array.prototype.indexOf)if(n)return Uint8Array.prototype.indexOf.call(e,t,r);else return Uint8Array.prototype.lastIndexOf.call(e,t,r);return k(e,[t],r,i,n)}throw TypeError("val must be string, number or Buffer")}function k(e,t,r,i,n){var a,o=1,s=e.length,u=t.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return -1;o=2,s/=2,u/=2,r/=2}function f(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(n){var c=-1;for(a=r;a<s;a++)if(f(e,a)===f(t,-1===c?0:a-c)){if(-1===c&&(c=a),a-c+1===u)return c*o}else -1!==c&&(a-=a-c),c=-1}else for(r+u>s&&(r=s-u),a=r;a>=0;a--){for(var d=!0,l=0;l<u;l++)if(f(e,a+l)!==f(t,l)){d=!1;break}if(d)return a}return -1}function $(e,t,r,i){r=Number(r)||0;var n=e.length-r;i?(i=Number(i))>n&&(i=n):i=n;var a=t.length;i>a/2&&(i=a/2);for(var o=0;o<i;++o){var s=parseInt(t.substr(2*o,2),16);if(Y(s))break;e[r+o]=s}return o}function I(e,t,r,i){return H(W(t,e.length-r),e,r,i)}function M(e,t,r,i){return H(K(t),e,r,i)}function E(e,t,r,i){return M(e,t,r,i)}function A(e,t,r,i){return H(G(t),e,r,i)}function O(e,t,r,i){return H(V(t,e.length-r),e,r,i)}function j(e,t,r){return 0===t&&r===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,r))}function z(e,t,r){r=Math.min(e.length,r);for(var i=[],n=t;n<r;){var a,o,s,u,f=e[n],c=null,d=f>239?4:f>223?3:f>191?2:1;if(n+d<=r)switch(d){case 1:f<128&&(c=f);break;case 2:(192&(a=e[n+1]))==128&&(u=(31&f)<<6|63&a)>127&&(c=u);break;case 3:a=e[n+1],o=e[n+2],(192&a)==128&&(192&o)==128&&(u=(15&f)<<12|(63&a)<<6|63&o)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:a=e[n+1],o=e[n+2],s=e[n+3],(192&a)==128&&(192&o)==128&&(192&s)==128&&(u=(15&f)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&u<1114112&&(c=u)}null===c?(c=65533,d=1):c>65535&&(c-=65536,i.push(c>>>10&1023|55296),c=56320|1023&c),i.push(c),n+=d}return P(i)}t.kMaxLength=0x7fffffff,f.TYPED_ARRAY_SUPPORT=s(),!f.TYPED_ARRAY_SUPPORT&&"u">typeof console&&"function"==typeof console.error&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(f.prototype,"parent",{enumerable:!0,get:function(){if(f.isBuffer(this))return this.buffer}}),Object.defineProperty(f.prototype,"offset",{enumerable:!0,get:function(){if(f.isBuffer(this))return this.byteOffset}}),f.poolSize=8192,f.from=function(e,t,r){return c(e,t,r)},Object.setPrototypeOf(f.prototype,Uint8Array.prototype),Object.setPrototypeOf(f,Uint8Array),f.alloc=function(e,t,r){return l(e,t,r)},f.allocUnsafe=function(e){return h(e)},f.allocUnsafeSlow=function(e){return h(e)},f.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==f.prototype},f.compare=function(e,t){if(X(e,Uint8Array)&&(e=f.from(e,e.offset,e.byteLength)),X(t,Uint8Array)&&(t=f.from(t,t.offset,t.byteLength)),!f.isBuffer(e)||!f.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,i=t.length,n=0,a=Math.min(r,i);n<a;++n)if(e[n]!==t[n]){r=e[n],i=t[n];break}return r<i?-1:+(i<r)},f.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},f.concat=function(e,t){if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return f.alloc(0);if(void 0===t)for(r=0,t=0;r<e.length;++r)t+=e[r].length;var r,i=f.allocUnsafe(t),n=0;for(r=0;r<e.length;++r){var a=e[r];if(X(a,Uint8Array)&&(a=f.from(a)),!f.isBuffer(a))throw TypeError('"list" argument must be an Array of Buffers');a.copy(i,n),n+=a.length}return i},f.byteLength=_,f.prototype._isBuffer=!0,f.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)w(this,t,t+1);return this},f.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)w(this,t,t+3),w(this,t+1,t+2);return this},f.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)w(this,t,t+7),w(this,t+1,t+6),w(this,t+2,t+5),w(this,t+3,t+4);return this},f.prototype.toString=function(){var e=this.length;return 0===e?"":0==arguments.length?z(this,0,e):x.apply(this,arguments)},f.prototype.toLocaleString=f.prototype.toString,f.prototype.equals=function(e){if(!f.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===f.compare(this,e)},f.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},a&&(f.prototype[a]=f.prototype.inspect),f.prototype.compare=function(e,t,r,i,n){if(X(e,Uint8Array)&&(e=f.from(e,e.offset,e.byteLength)),!f.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===i&&(i=0),void 0===n&&(n=this.length),t<0||r>e.length||i<0||n>this.length)throw RangeError("out of range index");if(i>=n&&t>=r)return 0;if(i>=n)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,i>>>=0,n>>>=0,this===e)return 0;for(var a=n-i,o=r-t,s=Math.min(a,o),u=this.slice(i,n),c=e.slice(t,r),d=0;d<s;++d)if(u[d]!==c[d]){a=u[d],o=c[d];break}return a<o?-1:+(o<a)},f.prototype.includes=function(e,t,r){return -1!==this.indexOf(e,t,r)},f.prototype.indexOf=function(e,t,r){return S(this,e,t,r,!0)},f.prototype.lastIndexOf=function(e,t,r){return S(this,e,t,r,!1)},f.prototype.write=function(e,t,r,i){if(void 0===t)i="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)i=t,r=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(r)?(r>>>=0,void 0===i&&(i="utf8")):(i=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var n=this.length-t;if((void 0===r||r>n)&&(r=n),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var a=!1;;)switch(i){case"hex":return $(this,e,t,r);case"utf8":case"utf-8":return I(this,e,t,r);case"ascii":return M(this,e,t,r);case"latin1":case"binary":return E(this,e,t,r);case"base64":return A(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,e,t,r);default:if(a)throw TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),a=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var U=4096;function P(e){var t=e.length;if(t<=U)return String.fromCharCode.apply(String,e);for(var r="",i=0;i<t;)r+=String.fromCharCode.apply(String,e.slice(i,i+=U));return r}function T(e,t,r){var i="";r=Math.min(e.length,r);for(var n=t;n<r;++n)i+=String.fromCharCode(127&e[n]);return i}function R(e,t,r){var i="";r=Math.min(e.length,r);for(var n=t;n<r;++n)i+=String.fromCharCode(e[n]);return i}function N(e,t,r){var i=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>i)&&(r=i);for(var n="",a=t;a<r;++a)n+=Q[e[a]];return n}function D(e,t,r){for(var i=e.slice(t,r),n="",a=0;a<i.length;a+=2)n+=String.fromCharCode(i[a]+256*i[a+1]);return n}function B(e,t,r){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>r)throw RangeError("Trying to access beyond buffer length")}function Z(e,t,r,i,n,a){if(!f.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>n||t<a)throw RangeError('"value" argument is out of bounds');if(r+i>e.length)throw RangeError("Index out of range")}function C(e,t,r,i,n,a){if(r+i>e.length||r<0)throw RangeError("Index out of range")}function L(e,t,r,i,a){return t*=1,r>>>=0,a||C(e,t,r,4,34028234663852886e22,-34028234663852886e22),n.write(e,t,r,i,23,4),r+4}function q(e,t,r,i,a){return t*=1,r>>>=0,a||C(e,t,r,8,17976931348623157e292,-17976931348623157e292),n.write(e,t,r,i,52,8),r+8}f.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);var i=this.subarray(e,t);return Object.setPrototypeOf(i,f.prototype),i},f.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||B(e,t,this.length);for(var i=this[e],n=1,a=0;++a<t&&(n*=256);)i+=this[e+a]*n;return i},f.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||B(e,t,this.length);for(var i=this[e+--t],n=1;t>0&&(n*=256);)i+=this[e+--t]*n;return i},f.prototype.readUInt8=function(e,t){return e>>>=0,t||B(e,1,this.length),this[e]},f.prototype.readUInt16LE=function(e,t){return e>>>=0,t||B(e,2,this.length),this[e]|this[e+1]<<8},f.prototype.readUInt16BE=function(e,t){return e>>>=0,t||B(e,2,this.length),this[e]<<8|this[e+1]},f.prototype.readUInt32LE=function(e,t){return e>>>=0,t||B(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+0x1000000*this[e+3]},f.prototype.readUInt32BE=function(e,t){return e>>>=0,t||B(e,4,this.length),0x1000000*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},f.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||B(e,t,this.length);for(var i=this[e],n=1,a=0;++a<t&&(n*=256);)i+=this[e+a]*n;return i>=(n*=128)&&(i-=Math.pow(2,8*t)),i},f.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||B(e,t,this.length);for(var i=t,n=1,a=this[e+--i];i>0&&(n*=256);)a+=this[e+--i]*n;return a>=(n*=128)&&(a-=Math.pow(2,8*t)),a},f.prototype.readInt8=function(e,t){return(e>>>=0,t||B(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},f.prototype.readInt16LE=function(e,t){e>>>=0,t||B(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?0xffff0000|r:r},f.prototype.readInt16BE=function(e,t){e>>>=0,t||B(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?0xffff0000|r:r},f.prototype.readInt32LE=function(e,t){return e>>>=0,t||B(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},f.prototype.readInt32BE=function(e,t){return e>>>=0,t||B(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},f.prototype.readFloatLE=function(e,t){return e>>>=0,t||B(e,4,this.length),n.read(this,e,!0,23,4)},f.prototype.readFloatBE=function(e,t){return e>>>=0,t||B(e,4,this.length),n.read(this,e,!1,23,4)},f.prototype.readDoubleLE=function(e,t){return e>>>=0,t||B(e,8,this.length),n.read(this,e,!0,52,8)},f.prototype.readDoubleBE=function(e,t){return e>>>=0,t||B(e,8,this.length),n.read(this,e,!1,52,8)},f.prototype.writeUIntLE=function(e,t,r,i){if(e*=1,t>>>=0,r>>>=0,!i){var n=Math.pow(2,8*r)-1;Z(this,e,t,r,n,0)}var a=1,o=0;for(this[t]=255&e;++o<r&&(a*=256);)this[t+o]=e/a&255;return t+r},f.prototype.writeUIntBE=function(e,t,r,i){if(e*=1,t>>>=0,r>>>=0,!i){var n=Math.pow(2,8*r)-1;Z(this,e,t,r,n,0)}var a=r-1,o=1;for(this[t+a]=255&e;--a>=0&&(o*=256);)this[t+a]=e/o&255;return t+r},f.prototype.writeUInt8=function(e,t,r){return e*=1,t>>>=0,r||Z(this,e,t,1,255,0),this[t]=255&e,t+1},f.prototype.writeUInt16LE=function(e,t,r){return e*=1,t>>>=0,r||Z(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},f.prototype.writeUInt16BE=function(e,t,r){return e*=1,t>>>=0,r||Z(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},f.prototype.writeUInt32LE=function(e,t,r){return e*=1,t>>>=0,r||Z(this,e,t,4,0xffffffff,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},f.prototype.writeUInt32BE=function(e,t,r){return e*=1,t>>>=0,r||Z(this,e,t,4,0xffffffff,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},f.prototype.writeIntLE=function(e,t,r,i){if(e*=1,t>>>=0,!i){var n=Math.pow(2,8*r-1);Z(this,e,t,r,n-1,-n)}var a=0,o=1,s=0;for(this[t]=255&e;++a<r&&(o*=256);)e<0&&0===s&&0!==this[t+a-1]&&(s=1),this[t+a]=(e/o|0)-s&255;return t+r},f.prototype.writeIntBE=function(e,t,r,i){if(e*=1,t>>>=0,!i){var n=Math.pow(2,8*r-1);Z(this,e,t,r,n-1,-n)}var a=r-1,o=1,s=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o|0)-s&255;return t+r},f.prototype.writeInt8=function(e,t,r){return e*=1,t>>>=0,r||Z(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},f.prototype.writeInt16LE=function(e,t,r){return e*=1,t>>>=0,r||Z(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},f.prototype.writeInt16BE=function(e,t,r){return e*=1,t>>>=0,r||Z(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},f.prototype.writeInt32LE=function(e,t,r){return e*=1,t>>>=0,r||Z(this,e,t,4,0x7fffffff,-0x80000000),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},f.prototype.writeInt32BE=function(e,t,r){return e*=1,t>>>=0,r||Z(this,e,t,4,0x7fffffff,-0x80000000),e<0&&(e=0xffffffff+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},f.prototype.writeFloatLE=function(e,t,r){return L(this,e,t,!0,r)},f.prototype.writeFloatBE=function(e,t,r){return L(this,e,t,!1,r)},f.prototype.writeDoubleLE=function(e,t,r){return q(this,e,t,!0,r)},f.prototype.writeDoubleBE=function(e,t,r){return q(this,e,t,!1,r)},f.prototype.copy=function(e,t,r,i){if(!f.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),i||0===i||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i<r&&(i=r),i===r||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("Index out of range");if(i<0)throw RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t<i-r&&(i=e.length-t+r);var n=i-r;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,r,i);else if(this===e&&r<t&&t<i)for(var a=n-1;a>=0;--a)e[a+t]=this[a+r];else Uint8Array.prototype.set.call(e,this.subarray(r,i),t);return n},f.prototype.fill=function(e,t,r,i){if("string"==typeof e){if("string"==typeof t?(i=t,t=0,r=this.length):"string"==typeof r&&(i=r,r=this.length),void 0!==i&&"string"!=typeof i)throw TypeError("encoding must be a string");if("string"==typeof i&&!f.isEncoding(i))throw TypeError("Unknown encoding: "+i);if(1===e.length){var n,a=e.charCodeAt(0);("utf8"===i&&a<128||"latin1"===i)&&(e=a)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw RangeError("Out of range index");if(r<=t)return this;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(n=t;n<r;++n)this[n]=e;else{var o=f.isBuffer(e)?e:f.from(e,i),s=o.length;if(0===s)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(n=0;n<r-t;++n)this[n+t]=o[n%s]}return this};var F=/[^+/0-9A-Za-z-_]/g;function J(e){if((e=(e=e.split("=")[0]).trim().replace(F,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}function W(e,t){t=t||1/0;for(var r,i=e.length,n=null,a=[],o=0;o<i;++o){if((r=e.charCodeAt(o))>55295&&r<57344){if(!n){if(r>56319||o+1===i){(t-=3)>-1&&a.push(239,191,189);continue}n=r;continue}if(r<56320){(t-=3)>-1&&a.push(239,191,189),n=r;continue}r=(n-55296<<10|r-56320)+65536}else n&&(t-=3)>-1&&a.push(239,191,189);if(n=null,r<128){if((t-=1)<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;a.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return a}function K(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}function V(e,t){for(var r,i,n=[],a=0;a<e.length&&!((t-=2)<0);++a)i=(r=e.charCodeAt(a))>>8,n.push(r%256),n.push(i);return n}function G(e){return i.toByteArray(J(e))}function H(e,t,r,i){for(var n=0;n<i&&!(n+r>=t.length)&&!(n>=e.length);++n)t[n+r]=e[n];return n}function X(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function Y(e){return e!=e}var Q=function(){for(var e="0123456789abcdef",t=Array(256),r=0;r<16;++r)for(var i=16*r,n=0;n<16;++n)t[i+n]=e[r]+e[n];return t}()},783:function(e,t){t.read=function(e,t,r,i,n){var a,o,s=8*n-i-1,u=(1<<s)-1,f=u>>1,c=-7,d=r?n-1:0,l=r?-1:1,h=e[t+d];for(d+=l,a=h&(1<<-c)-1,h>>=-c,c+=s;c>0;a=256*a+e[t+d],d+=l,c-=8);for(o=a&(1<<-c)-1,a>>=-c,c+=i;c>0;o=256*o+e[t+d],d+=l,c-=8);if(0===a)a=1-f;else{if(a===u)return o?NaN:1/0*(h?-1:1);o+=Math.pow(2,i),a-=f}return(h?-1:1)*o*Math.pow(2,a-i)},t.write=function(e,t,r,i,n,a){var o,s,u,f=8*a-n-1,c=(1<<f)-1,d=c>>1,l=5960464477539062e-23*(23===n),h=i?0:a-1,p=i?1:-1,m=+(t<0||0===t&&1/t<0);for(isNaN(t=Math.abs(t))||t===1/0?(s=+!!isNaN(t),o=c):(o=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-o))<1&&(o--,u*=2),o+d>=1?t+=l/u:t+=l*Math.pow(2,1-d),t*u>=2&&(o++,u/=2),o+d>=c?(s=0,o=c):o+d>=1?(s=(t*u-1)*Math.pow(2,n),o+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,n),o=0));n>=8;e[r+h]=255&s,h+=p,s/=256,n-=8);for(o=o<<n|s,f+=n;f>0;e[r+h]=255&o,h+=p,o/=256,f-=8);e[r+h-p]|=128*m}}},r={};function i(t){var n=r[t];if(void 0!==n)return n.exports;var a=r[t]={exports:{}},o=!0;try{e[t](a,a.exports,i),o=!1}finally{o&&delete r[t]}return a.exports}i.ab="/ROOT/node_modules/.pnpm/next@16.2.4_@babel+core@7.29.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/compiled/buffer/",t.exports=i(72)}()},10102,(e,t,r)=>{"use strict";r.byteLength=c,r.toByteArray=l,r.fromByteArray=m;for(var i=[],n=[],a="u">typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,u=o.length;s<u;++s)i[s]=o[s],n[o.charCodeAt(s)]=s;function f(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var i=r===t?0:4-r%4;return[r,i]}function c(e){var t=f(e),r=t[0],i=t[1];return(r+i)*3/4-i}function d(e,t,r){return(t+r)*3/4-r}function l(e){var t,r,i=f(e),o=i[0],s=i[1],u=new a(d(e,o,s)),c=0,l=s>0?o-4:o;for(r=0;r<l;r+=4)t=n[e.charCodeAt(r)]<<18|n[e.charCodeAt(r+1)]<<12|n[e.charCodeAt(r+2)]<<6|n[e.charCodeAt(r+3)],u[c++]=t>>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===s&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,u[c++]=255&t),1===s&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t),u}function h(e){return i[e>>18&63]+i[e>>12&63]+i[e>>6&63]+i[63&e]}function p(e,t,r){for(var i=[],n=t;n<r;n+=3)i.push(h((e[n]<<16&0xff0000)+(e[n+1]<<8&65280)+(255&e[n+2])));return i.join("")}function m(e){for(var t,r=e.length,n=r%3,a=[],o=16383,s=0,u=r-n;s<u;s+=o)a.push(p(e,s,s+o>u?u:s+o));return 1===n?a.push(i[(t=e[r-1])>>2]+i[t<<4&63]+"=="):2===n&&a.push(i[(t=(e[r-2]<<8)+e[r-1])>>10]+i[t>>4&63]+i[t<<2&63]+"="),a.join("")}n[45]=62,n[95]=63},62866,(e,t,r)=>{r.read=function(e,t,r,i,n){var a,o,s=8*n-i-1,u=(1<<s)-1,f=u>>1,c=-7,d=r?n-1:0,l=r?-1:1,h=e[t+d];for(d+=l,a=h&(1<<-c)-1,h>>=-c,c+=s;c>0;a=256*a+e[t+d],d+=l,c-=8);for(o=a&(1<<-c)-1,a>>=-c,c+=i;c>0;o=256*o+e[t+d],d+=l,c-=8);if(0===a)a=1-f;else{if(a===u)return o?NaN:1/0*(h?-1:1);o+=Math.pow(2,i),a-=f}return(h?-1:1)*o*Math.pow(2,a-i)},r.write=function(e,t,r,i,n,a){var o,s,u,f=8*a-n-1,c=(1<<f)-1,d=c>>1,l=5960464477539062e-23*(23===n),h=i?0:a-1,p=i?1:-1,m=+(t<0||0===t&&1/t<0);for(isNaN(t=Math.abs(t))||t===1/0?(s=+!!isNaN(t),o=c):(o=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-o))<1&&(o--,u*=2),o+d>=1?t+=l/u:t+=l*Math.pow(2,1-d),t*u>=2&&(o++,u/=2),o+d>=c?(s=0,o=c):o+d>=1?(s=(t*u-1)*Math.pow(2,n),o+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,n),o=0));n>=8;e[r+h]=255&s,h+=p,s/=256,n-=8);for(o=o<<n|s,f+=n;f>0;e[r+h]=255&o,h+=p,o/=256,f-=8);e[r+h-p]|=128*m}},49440,(e,t,r)=>{"use strict";var i=e.r(10102),n=e.r(62866),a="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;r.Buffer=f,r.SlowBuffer=_,r.INSPECT_MAX_BYTES=50;var o=0x7fffffff;function s(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}function u(e){if(e>o)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,f.prototype),t}function f(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return h(e)}return c(e,t,r)}function c(e,t,r){if("string"==typeof e)return p(e,t);if(ArrayBuffer.isView(e))return b(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(X(e,ArrayBuffer)||e&&X(e.buffer,ArrayBuffer)||"u">typeof SharedArrayBuffer&&(X(e,SharedArrayBuffer)||e&&X(e.buffer,SharedArrayBuffer)))return g(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var i=e.valueOf&&e.valueOf();if(null!=i&&i!==e)return f.from(i,t,r);var n=v(e);if(n)return n;if("u">typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return f.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function d(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function l(e,t,r){return(d(e),e<=0)?u(e):void 0!==t?"string"==typeof r?u(e).fill(t,r):u(e).fill(t):u(e)}function h(e){return d(e),u(e<0?0:0|y(e))}function p(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!f.isEncoding(t))throw TypeError("Unknown encoding: "+t);var r=0|x(e,t),i=u(r),n=i.write(e,t);return n!==r&&(i=i.slice(0,n)),i}function m(e){for(var t=e.length<0?0:0|y(e.length),r=u(t),i=0;i<t;i+=1)r[i]=255&e[i];return r}function b(e){if(X(e,Uint8Array)){var t=new Uint8Array(e);return g(t.buffer,t.byteOffset,t.byteLength)}return m(e)}function g(e,t,r){var i;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(i=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),f.prototype),i}function v(e){if(f.isBuffer(e)){var t=0|y(e.length),r=u(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||Y(e.length)?u(0):m(e):"Buffer"===e.type&&Array.isArray(e.data)?m(e.data):void 0}function y(e){if(e>=o)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return 0|e}function _(e){return+e!=e&&(e=0),f.alloc(+e)}function x(e,t){if(f.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||X(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,i=arguments.length>2&&!0===arguments[2];if(!i&&0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return W(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return G(e).length;default:if(n)return i?-1:W(e).length;t=(""+t).toLowerCase(),n=!0}}function w(e,t,r){var i=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return N(this,t,r);case"utf8":case"utf-8":return z(this,t,r);case"ascii":return T(this,t,r);case"latin1":case"binary":return R(this,t,r);case"base64":return j(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,t,r);default:if(i)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}function S(e,t,r){var i=e[t];e[t]=e[r],e[r]=i}function k(e,t,r,i,n){if(0===e.length)return -1;if("string"==typeof r?(i=r,r=0):r>0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),Y(r*=1)&&(r=n?0:e.length-1),r<0&&(r=e.length+r),r>=e.length)if(n)return -1;else r=e.length-1;else if(r<0)if(!n)return -1;else r=0;if("string"==typeof t&&(t=f.from(t,i)),f.isBuffer(t))return 0===t.length?-1:$(e,t,r,i,n);if("number"==typeof t){if(t&=255,"function"==typeof Uint8Array.prototype.indexOf)if(n)return Uint8Array.prototype.indexOf.call(e,t,r);else return Uint8Array.prototype.lastIndexOf.call(e,t,r);return $(e,[t],r,i,n)}throw TypeError("val must be string, number or Buffer")}function $(e,t,r,i,n){var a,o=1,s=e.length,u=t.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return -1;o=2,s/=2,u/=2,r/=2}function f(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(n){var c=-1;for(a=r;a<s;a++)if(f(e,a)===f(t,-1===c?0:a-c)){if(-1===c&&(c=a),a-c+1===u)return c*o}else -1!==c&&(a-=a-c),c=-1}else for(r+u>s&&(r=s-u),a=r;a>=0;a--){for(var d=!0,l=0;l<u;l++)if(f(e,a+l)!==f(t,l)){d=!1;break}if(d)return a}return -1}function I(e,t,r,i){r=Number(r)||0;var n=e.length-r;i?(i=Number(i))>n&&(i=n):i=n;var a=t.length;i>a/2&&(i=a/2);for(var o=0;o<i;++o){var s=parseInt(t.substr(2*o,2),16);if(Y(s))break;e[r+o]=s}return o}function M(e,t,r,i){return H(W(t,e.length-r),e,r,i)}function E(e,t,r,i){return H(K(t),e,r,i)}function A(e,t,r,i){return H(G(t),e,r,i)}function O(e,t,r,i){return H(V(t,e.length-r),e,r,i)}function j(e,t,r){return 0===t&&r===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,r))}function z(e,t,r){r=Math.min(e.length,r);for(var i=[],n=t;n<r;){var a,o,s,u,f=e[n],c=null,d=f>239?4:f>223?3:f>191?2:1;if(n+d<=r)switch(d){case 1:f<128&&(c=f);break;case 2:(192&(a=e[n+1]))==128&&(u=(31&f)<<6|63&a)>127&&(c=u);break;case 3:a=e[n+1],o=e[n+2],(192&a)==128&&(192&o)==128&&(u=(15&f)<<12|(63&a)<<6|63&o)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:a=e[n+1],o=e[n+2],s=e[n+3],(192&a)==128&&(192&o)==128&&(192&s)==128&&(u=(15&f)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&u<1114112&&(c=u)}null===c?(c=65533,d=1):c>65535&&(c-=65536,i.push(c>>>10&1023|55296),c=56320|1023&c),i.push(c),n+=d}return P(i)}r.kMaxLength=0x7fffffff,f.TYPED_ARRAY_SUPPORT=s(),!f.TYPED_ARRAY_SUPPORT&&"u">typeof console&&"function"==typeof console.error&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(f.prototype,"parent",{enumerable:!0,get:function(){if(f.isBuffer(this))return this.buffer}}),Object.defineProperty(f.prototype,"offset",{enumerable:!0,get:function(){if(f.isBuffer(this))return this.byteOffset}}),f.poolSize=8192,f.from=function(e,t,r){return c(e,t,r)},Object.setPrototypeOf(f.prototype,Uint8Array.prototype),Object.setPrototypeOf(f,Uint8Array),f.alloc=function(e,t,r){return l(e,t,r)},f.allocUnsafe=function(e){return h(e)},f.allocUnsafeSlow=function(e){return h(e)},f.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==f.prototype},f.compare=function(e,t){if(X(e,Uint8Array)&&(e=f.from(e,e.offset,e.byteLength)),X(t,Uint8Array)&&(t=f.from(t,t.offset,t.byteLength)),!f.isBuffer(e)||!f.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,i=t.length,n=0,a=Math.min(r,i);n<a;++n)if(e[n]!==t[n]){r=e[n],i=t[n];break}return r<i?-1:+(i<r)},f.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},f.concat=function(e,t){if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return f.alloc(0);if(void 0===t)for(r=0,t=0;r<e.length;++r)t+=e[r].length;var r,i=f.allocUnsafe(t),n=0;for(r=0;r<e.length;++r){var a=e[r];if(X(a,Uint8Array))n+a.length>i.length?f.from(a).copy(i,n):Uint8Array.prototype.set.call(i,a,n);else if(f.isBuffer(a))a.copy(i,n);else throw TypeError('"list" argument must be an Array of Buffers');n+=a.length}return i},f.byteLength=x,f.prototype._isBuffer=!0,f.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)S(this,t,t+1);return this},f.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)S(this,t,t+3),S(this,t+1,t+2);return this},f.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)S(this,t,t+7),S(this,t+1,t+6),S(this,t+2,t+5),S(this,t+3,t+4);return this},f.prototype.toString=function(){var e=this.length;return 0===e?"":0==arguments.length?z(this,0,e):w.apply(this,arguments)},f.prototype.toLocaleString=f.prototype.toString,f.prototype.equals=function(e){if(!f.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===f.compare(this,e)},f.prototype.inspect=function(){var e="",t=r.INSPECT_MAX_BYTES;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),"<Buffer "+e+">"},a&&(f.prototype[a]=f.prototype.inspect),f.prototype.compare=function(e,t,r,i,n){if(X(e,Uint8Array)&&(e=f.from(e,e.offset,e.byteLength)),!f.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===i&&(i=0),void 0===n&&(n=this.length),t<0||r>e.length||i<0||n>this.length)throw RangeError("out of range index");if(i>=n&&t>=r)return 0;if(i>=n)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,i>>>=0,n>>>=0,this===e)return 0;for(var a=n-i,o=r-t,s=Math.min(a,o),u=this.slice(i,n),c=e.slice(t,r),d=0;d<s;++d)if(u[d]!==c[d]){a=u[d],o=c[d];break}return a<o?-1:+(o<a)},f.prototype.includes=function(e,t,r){return -1!==this.indexOf(e,t,r)},f.prototype.indexOf=function(e,t,r){return k(this,e,t,r,!0)},f.prototype.lastIndexOf=function(e,t,r){return k(this,e,t,r,!1)},f.prototype.write=function(e,t,r,i){if(void 0===t)i="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)i=t,r=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(r)?(r>>>=0,void 0===i&&(i="utf8")):(i=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var n=this.length-t;if((void 0===r||r>n)&&(r=n),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var a=!1;;)switch(i){case"hex":return I(this,e,t,r);case"utf8":case"utf-8":return M(this,e,t,r);case"ascii":case"latin1":case"binary":return E(this,e,t,r);case"base64":return A(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,e,t,r);default:if(a)throw TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),a=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var U=4096;function P(e){var t=e.length;if(t<=U)return String.fromCharCode.apply(String,e);for(var r="",i=0;i<t;)r+=String.fromCharCode.apply(String,e.slice(i,i+=U));return r}function T(e,t,r){var i="";r=Math.min(e.length,r);for(var n=t;n<r;++n)i+=String.fromCharCode(127&e[n]);return i}function R(e,t,r){var i="";r=Math.min(e.length,r);for(var n=t;n<r;++n)i+=String.fromCharCode(e[n]);return i}function N(e,t,r){var i=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>i)&&(r=i);for(var n="",a=t;a<r;++a)n+=Q[e[a]];return n}function D(e,t,r){for(var i=e.slice(t,r),n="",a=0;a<i.length-1;a+=2)n+=String.fromCharCode(i[a]+256*i[a+1]);return n}function B(e,t,r){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>r)throw RangeError("Trying to access beyond buffer length")}function Z(e,t,r,i,n,a){if(!f.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>n||t<a)throw RangeError('"value" argument is out of bounds');if(r+i>e.length)throw RangeError("Index out of range")}function C(e,t,r,i,n,a){if(r+i>e.length||r<0)throw RangeError("Index out of range")}function L(e,t,r,i,a){return t*=1,r>>>=0,a||C(e,t,r,4,34028234663852886e22,-34028234663852886e22),n.write(e,t,r,i,23,4),r+4}function q(e,t,r,i,a){return t*=1,r>>>=0,a||C(e,t,r,8,17976931348623157e292,-17976931348623157e292),n.write(e,t,r,i,52,8),r+8}f.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);var i=this.subarray(e,t);return Object.setPrototypeOf(i,f.prototype),i},f.prototype.readUintLE=f.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||B(e,t,this.length);for(var i=this[e],n=1,a=0;++a<t&&(n*=256);)i+=this[e+a]*n;return i},f.prototype.readUintBE=f.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||B(e,t,this.length);for(var i=this[e+--t],n=1;t>0&&(n*=256);)i+=this[e+--t]*n;return i},f.prototype.readUint8=f.prototype.readUInt8=function(e,t){return e>>>=0,t||B(e,1,this.length),this[e]},f.prototype.readUint16LE=f.prototype.readUInt16LE=function(e,t){return e>>>=0,t||B(e,2,this.length),this[e]|this[e+1]<<8},f.prototype.readUint16BE=f.prototype.readUInt16BE=function(e,t){return e>>>=0,t||B(e,2,this.length),this[e]<<8|this[e+1]},f.prototype.readUint32LE=f.prototype.readUInt32LE=function(e,t){return e>>>=0,t||B(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+0x1000000*this[e+3]},f.prototype.readUint32BE=f.prototype.readUInt32BE=function(e,t){return e>>>=0,t||B(e,4,this.length),0x1000000*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},f.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||B(e,t,this.length);for(var i=this[e],n=1,a=0;++a<t&&(n*=256);)i+=this[e+a]*n;return i>=(n*=128)&&(i-=Math.pow(2,8*t)),i},f.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||B(e,t,this.length);for(var i=t,n=1,a=this[e+--i];i>0&&(n*=256);)a+=this[e+--i]*n;return a>=(n*=128)&&(a-=Math.pow(2,8*t)),a},f.prototype.readInt8=function(e,t){return(e>>>=0,t||B(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},f.prototype.readInt16LE=function(e,t){e>>>=0,t||B(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?0xffff0000|r:r},f.prototype.readInt16BE=function(e,t){e>>>=0,t||B(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?0xffff0000|r:r},f.prototype.readInt32LE=function(e,t){return e>>>=0,t||B(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},f.prototype.readInt32BE=function(e,t){return e>>>=0,t||B(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},f.prototype.readFloatLE=function(e,t){return e>>>=0,t||B(e,4,this.length),n.read(this,e,!0,23,4)},f.prototype.readFloatBE=function(e,t){return e>>>=0,t||B(e,4,this.length),n.read(this,e,!1,23,4)},f.prototype.readDoubleLE=function(e,t){return e>>>=0,t||B(e,8,this.length),n.read(this,e,!0,52,8)},f.prototype.readDoubleBE=function(e,t){return e>>>=0,t||B(e,8,this.length),n.read(this,e,!1,52,8)},f.prototype.writeUintLE=f.prototype.writeUIntLE=function(e,t,r,i){if(e*=1,t>>>=0,r>>>=0,!i){var n=Math.pow(2,8*r)-1;Z(this,e,t,r,n,0)}var a=1,o=0;for(this[t]=255&e;++o<r&&(a*=256);)this[t+o]=e/a&255;return t+r},f.prototype.writeUintBE=f.prototype.writeUIntBE=function(e,t,r,i){if(e*=1,t>>>=0,r>>>=0,!i){var n=Math.pow(2,8*r)-1;Z(this,e,t,r,n,0)}var a=r-1,o=1;for(this[t+a]=255&e;--a>=0&&(o*=256);)this[t+a]=e/o&255;return t+r},f.prototype.writeUint8=f.prototype.writeUInt8=function(e,t,r){return e*=1,t>>>=0,r||Z(this,e,t,1,255,0),this[t]=255&e,t+1},f.prototype.writeUint16LE=f.prototype.writeUInt16LE=function(e,t,r){return e*=1,t>>>=0,r||Z(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},f.prototype.writeUint16BE=f.prototype.writeUInt16BE=function(e,t,r){return e*=1,t>>>=0,r||Z(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},f.prototype.writeUint32LE=f.prototype.writeUInt32LE=function(e,t,r){return e*=1,t>>>=0,r||Z(this,e,t,4,0xffffffff,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},f.prototype.writeUint32BE=f.prototype.writeUInt32BE=function(e,t,r){return e*=1,t>>>=0,r||Z(this,e,t,4,0xffffffff,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},f.prototype.writeIntLE=function(e,t,r,i){if(e*=1,t>>>=0,!i){var n=Math.pow(2,8*r-1);Z(this,e,t,r,n-1,-n)}var a=0,o=1,s=0;for(this[t]=255&e;++a<r&&(o*=256);)e<0&&0===s&&0!==this[t+a-1]&&(s=1),this[t+a]=(e/o|0)-s&255;return t+r},f.prototype.writeIntBE=function(e,t,r,i){if(e*=1,t>>>=0,!i){var n=Math.pow(2,8*r-1);Z(this,e,t,r,n-1,-n)}var a=r-1,o=1,s=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o|0)-s&255;return t+r},f.prototype.writeInt8=function(e,t,r){return e*=1,t>>>=0,r||Z(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},f.prototype.writeInt16LE=function(e,t,r){return e*=1,t>>>=0,r||Z(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},f.prototype.writeInt16BE=function(e,t,r){return e*=1,t>>>=0,r||Z(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},f.prototype.writeInt32LE=function(e,t,r){return e*=1,t>>>=0,r||Z(this,e,t,4,0x7fffffff,-0x80000000),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},f.prototype.writeInt32BE=function(e,t,r){return e*=1,t>>>=0,r||Z(this,e,t,4,0x7fffffff,-0x80000000),e<0&&(e=0xffffffff+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},f.prototype.writeFloatLE=function(e,t,r){return L(this,e,t,!0,r)},f.prototype.writeFloatBE=function(e,t,r){return L(this,e,t,!1,r)},f.prototype.writeDoubleLE=function(e,t,r){return q(this,e,t,!0,r)},f.prototype.writeDoubleBE=function(e,t,r){return q(this,e,t,!1,r)},f.prototype.copy=function(e,t,r,i){if(!f.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),i||0===i||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i<r&&(i=r),i===r||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("Index out of range");if(i<0)throw RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t<i-r&&(i=e.length-t+r);var n=i-r;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,r,i):Uint8Array.prototype.set.call(e,this.subarray(r,i),t),n},f.prototype.fill=function(e,t,r,i){if("string"==typeof e){if("string"==typeof t?(i=t,t=0,r=this.length):"string"==typeof r&&(i=r,r=this.length),void 0!==i&&"string"!=typeof i)throw TypeError("encoding must be a string");if("string"==typeof i&&!f.isEncoding(i))throw TypeError("Unknown encoding: "+i);if(1===e.length){var n,a=e.charCodeAt(0);("utf8"===i&&a<128||"latin1"===i)&&(e=a)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw RangeError("Out of range index");if(r<=t)return this;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(n=t;n<r;++n)this[n]=e;else{var o=f.isBuffer(e)?e:f.from(e,i),s=o.length;if(0===s)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(n=0;n<r-t;++n)this[n+t]=o[n%s]}return this};var F=/[^+/0-9A-Za-z-_]/g;function J(e){if((e=(e=e.split("=")[0]).trim().replace(F,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}function W(e,t){t=t||1/0;for(var r,i=e.length,n=null,a=[],o=0;o<i;++o){if((r=e.charCodeAt(o))>55295&&r<57344){if(!n){if(r>56319||o+1===i){(t-=3)>-1&&a.push(239,191,189);continue}n=r;continue}if(r<56320){(t-=3)>-1&&a.push(239,191,189),n=r;continue}r=(n-55296<<10|r-56320)+65536}else n&&(t-=3)>-1&&a.push(239,191,189);if(n=null,r<128){if((t-=1)<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;a.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return a}function K(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}function V(e,t){for(var r,i,n=[],a=0;a<e.length&&!((t-=2)<0);++a)i=(r=e.charCodeAt(a))>>8,n.push(r%256),n.push(i);return n}function G(e){return i.toByteArray(J(e))}function H(e,t,r,i){for(var n=0;n<i&&!(n+r>=t.length)&&!(n>=e.length);++n)t[n+r]=e[n];return n}function X(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function Y(e){return e!=e}var Q=function(){for(var e="0123456789abcdef",t=Array(256),r=0;r<16;++r)for(var i=16*r,n=0;n<16;++n)t[i+n]=e[r]+e[n];return t}()},25235,(e,t,r)=>{!function(){"use strict";var e={864:function(e){var t,r="object"==typeof Reflect?Reflect:null,i=r&&"function"==typeof r.apply?r.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};function n(e){console&&console.warn&&console.warn(e)}t=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var a=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=v,o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var s=10;function u(e){if("function"!=typeof e)throw TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function f(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function c(e,t,r,i){if(u(r),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),s=o[t]),void 0===s)s=o[t]=r,++e._eventsCount;else if("function"==typeof s?s=o[t]=i?[r,s]:[s,r]:i?s.unshift(r):s.push(r),(a=f(e))>0&&s.length>a&&!s.warned){s.warned=!0;var a,o,s,c=Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=s.length,n(c)}return e}function d(){if(!this.fired)return(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0==arguments.length)?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function l(e,t,r){var i={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},n=d.bind(i);return n.listener=r,i.wrapFn=n,n}function h(e,t,r){var i=e._events;if(void 0===i)return[];var n=i[t];return void 0===n?[]:"function"==typeof n?r?[n.listener||n]:[n]:r?g(n):m(n,n.length)}function p(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function m(e,t){for(var r=Array(t),i=0;i<t;++i)r[i]=e[i];return r}function b(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function g(e){for(var t=Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}function v(e,t){return new Promise(function(r,i){function n(r){e.removeListener(t,a),i(r)}function a(){"function"==typeof e.removeListener&&e.removeListener("error",n),r([].slice.call(arguments))}_(e,t,a,{once:!0}),"error"!==t&&y(e,n,{once:!0})})}function y(e,t,r){"function"==typeof e.on&&_(e,"error",t,r)}function _(e,t,r,i){if("function"==typeof e.on)i.once?e.once(t,r):e.on(t,r);else if("function"==typeof e.addEventListener)e.addEventListener(t,function n(a){i.once&&e.removeEventListener(t,n),r(a)});else throw TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e||e<0||a(e))throw RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");s=e}}),o.init=function(){(void 0===this._events||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||a(e))throw RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return f(this)},o.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var n="error"===e,a=this._events;if(void 0!==a)n=n&&void 0===a.error;else if(!n)return!1;if(n){if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var o,s=Error("Unhandled error."+(o?" ("+o.message+")":""));throw s.context=o,s}var u=a[e];if(void 0===u)return!1;if("function"==typeof u)i(u,this,t);else for(var f=u.length,c=m(u,f),r=0;r<f;++r)i(c[r],this,t);return!0},o.prototype.addListener=function(e,t){return c(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return c(this,e,t,!0)},o.prototype.once=function(e,t){return u(t),this.on(e,l(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return u(t),this.prependListener(e,l(this,e,t)),this},o.prototype.removeListener=function(e,t){var r,i,n,a,o;if(u(t),void 0===(i=this._events)||void 0===(r=i[e]))return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete i[e],i.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(n=-1,a=r.length-1;a>=0;a--)if(r[a]===t||r[a].listener===t){o=r[a].listener,n=a;break}if(n<0)return this;0===n?r.shift():b(r,n),1===r.length&&(i[e]=r[0]),void 0!==i.removeListener&&this.emit("removeListener",e,o||t)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(e){var t,r,i;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0==arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0==arguments.length){var n,a=Object.keys(r);for(i=0;i<a.length;++i)"removeListener"!==(n=a[i])&&this.removeAllListeners(n);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(i=t.length-1;i>=0;i--)this.removeListener(e,t[i]);return this},o.prototype.listeners=function(e){return h(this,e,!0)},o.prototype.rawListeners=function(e){return h(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},o.prototype.listenerCount=p,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}}},r={};function i(t){var n=r[t];if(void 0!==n)return n.exports;var a=r[t]={exports:{}},o=!0;try{e[t](a,a.exports,i),o=!1}finally{o&&delete r[t]}return a.exports}i.ab="/ROOT/node_modules/.pnpm/next@16.2.4_@babel+core@7.29.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/compiled/events/",t.exports=i(864)}()},60776,(e,t,r)=>{var i=e.i(53030),n=e.i(8890);!function(){var r={8992:function(e){e.exports=function(e,r,i){if(e.filter)return e.filter(r,i);if(null==e||"function"!=typeof r)throw TypeError();for(var n=[],a=0;a<e.length;a++)if(t.call(e,a)){var o=e[a];r.call(i,o,a,e)&&n.push(o)}return n};var t=Object.prototype.hasOwnProperty},5555:function(e,t,r){"use strict";var i=r(1212),n=r(1909),a=r(8737);e.exports=r(8772)||i.call(a,n)},9905:function(e,t,r){"use strict";var i=r(1212),n=r(1909),a=r(5555);e.exports=function(){return a(i,n,arguments)}},1909:function(e){"use strict";e.exports=Function.prototype.apply},8737:function(e){"use strict";e.exports=Function.prototype.call},7152:function(e,t,r){"use strict";var i=r(1212),n=r(8202),a=r(8737),o=r(5555);e.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new n("a function is required");return o(i,a,e)}},8772:function(e){"use strict";e.exports="u">typeof Reflect&&Reflect&&Reflect.apply},516:function(e,t,r){"use strict";var i=r(3197),n=r(9042),a=n(i("String.prototype.indexOf"));e.exports=function(e,t){var r=i(e,!!t);return"function"==typeof r&&a(e,".prototype.")>-1?n(r):r}},9042:function(e,t,r){"use strict";var i=r(3143),n=r(446),a=r(7152),o=r(9905);e.exports=function(e){var t=a(arguments),r=e.length-(arguments.length-1);return i(t,1+(r>0?r:0),!0)},n?n(e.exports,"apply",{value:o}):e.exports.apply=o},819:function(e,t,r){"use strict";var i=r(446),n=r(5182),a=r(8202),o=r(3990);e.exports=function(e,t,r){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new a("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new a("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new a("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new a("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new a("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new a("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,u=arguments.length>4?arguments[4]:null,f=arguments.length>5?arguments[5]:null,c=arguments.length>6&&arguments[6],d=!!o&&o(e,t);if(i)i(e,t,{configurable:null===f&&d?d.configurable:!f,enumerable:null===s&&d?d.enumerable:!s,value:r,writable:null===u&&d?d.writable:!u});else if(!c&&(s||u||f))throw new n("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");else e[t]=r}},6211:function(e,t,r){"use strict";var i,n=r(7152),a=r(3990);try{i=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var o=!!i&&a&&a(Object.prototype,"__proto__"),s=Object,u=s.getPrototypeOf;e.exports=o&&"function"==typeof o.get?n([o.get]):"function"==typeof u&&function(e){return u(null==e?e:s(e))}},446:function(e){"use strict";var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(e){t=!1}e.exports=t},7181:function(e){"use strict";e.exports=EvalError},1545:function(e){"use strict";e.exports=Error},22:function(e){"use strict";e.exports=RangeError},2803:function(e){"use strict";e.exports=ReferenceError},5182:function(e){"use strict";e.exports=SyntaxError},8202:function(e){"use strict";e.exports=TypeError},3284:function(e){"use strict";e.exports=URIError},2811:function(e){"use strict";e.exports=Object},6144:function(e){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString;e.exports=function(e,i,n){if("[object Function]"!==r.call(i))throw TypeError("iterator must be a function");var a=e.length;if(a===+a)for(var o=0;o<a;o++)i.call(n,e[o],o,e);else for(var s in e)t.call(e,s)&&i.call(n,e[s],s,e)}},3136:function(e){"use strict";var t="Function.prototype.bind called on incompatible ",r=Object.prototype.toString,i=Math.max,n="[object Function]",a=function(e,t){for(var r=[],i=0;i<e.length;i+=1)r[i]=e[i];for(var n=0;n<t.length;n+=1)r[n+e.length]=t[n];return r},o=function(e,t){for(var r=[],i=t||0,n=0;i<e.length;i+=1,n+=1)r[n]=e[i];return r},s=function(e,t){for(var r="",i=0;i<e.length;i+=1)r+=e[i],i+1<e.length&&(r+=t);return r};e.exports=function(e){var u,f=this;if("function"!=typeof f||r.apply(f)!==n)throw TypeError(t+f);for(var c=o(arguments,1),d=function(){if(this instanceof u){var t=f.apply(this,a(c,arguments));return Object(t)===t?t:this}return f.apply(e,a(c,arguments))},l=i(0,f.length-c.length),h=[],p=0;p<l;p++)h[p]="$"+p;if(u=Function("binder","return function ("+s(h,",")+"){ return binder.apply(this,arguments); }")(d),f.prototype){var m=function(){};m.prototype=f.prototype,u.prototype=new m,m.prototype=null}return u}},1212:function(e,t,r){"use strict";var i=r(3136);e.exports=Function.prototype.bind||i},3197:function(e,t,r){"use strict";var i,n=r(2811),a=r(1545),o=r(7181),s=r(22),u=r(2803),f=r(5182),c=r(8202),d=r(3284),l=r(7173),h=r(847),p=r(2916),m=r(9882),b=r(3291),g=r(553),v=r(8629),y=Function,_=function(e){try{return y('"use strict"; return ('+e+").constructor;")()}catch(e){}},x=r(3990),w=r(446),S=function(){throw new c},k=x?function(){try{return arguments.callee,S}catch(e){try{return x(arguments,"callee").get}catch(e){return S}}}():S,$=r(4871)(),I=r(699),M=r(7823),E=r(7904),A=r(1909),O=r(8737),j={},z="u">typeof Uint8Array&&I?I(Uint8Array):i,U={__proto__:null,"%AggregateError%":"u"<typeof AggregateError?i:AggregateError,"%Array%":Array,"%ArrayBuffer%":"u"<typeof ArrayBuffer?i:ArrayBuffer,"%ArrayIteratorPrototype%":$&&I?I([][Symbol.iterator]()):i,"%AsyncFromSyncIteratorPrototype%":i,"%AsyncFunction%":j,"%AsyncGenerator%":j,"%AsyncGeneratorFunction%":j,"%AsyncIteratorPrototype%":j,"%Atomics%":"u"<typeof Atomics?i:Atomics,"%BigInt%":"u"<typeof BigInt?i:BigInt,"%BigInt64Array%":"u"<typeof BigInt64Array?i:BigInt64Array,"%BigUint64Array%":"u"<typeof BigUint64Array?i:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"u"<typeof DataView?i:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":a,"%eval%":eval,"%EvalError%":o,"%Float16Array%":"u"<typeof Float16Array?i:Float16Array,"%Float32Array%":"u"<typeof Float32Array?i:Float32Array,"%Float64Array%":"u"<typeof Float64Array?i:Float64Array,"%FinalizationRegistry%":"u"<typeof FinalizationRegistry?i:FinalizationRegistry,"%Function%":y,"%GeneratorFunction%":j,"%Int8Array%":"u"<typeof Int8Array?i:Int8Array,"%Int16Array%":"u"<typeof Int16Array?i:Int16Array,"%Int32Array%":"u"<typeof Int32Array?i:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":$&&I?I(I([][Symbol.iterator]())):i,"%JSON%":"object"==typeof JSON?JSON:i,"%Map%":"u"<typeof Map?i:Map,"%MapIteratorPrototype%":"u">typeof Map&&$&&I?I((new Map)[Symbol.iterator]()):i,"%Math%":Math,"%Number%":Number,"%Object%":n,"%Object.getOwnPropertyDescriptor%":x,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"u"<typeof Promise?i:Promise,"%Proxy%":"u"<typeof Proxy?i:Proxy,"%RangeError%":s,"%ReferenceError%":u,"%Reflect%":"u"<typeof Reflect?i:Reflect,"%RegExp%":RegExp,"%Set%":"u"<typeof Set?i:Set,"%SetIteratorPrototype%":"u">typeof Set&&$&&I?I((new Set)[Symbol.iterator]()):i,"%SharedArrayBuffer%":"u"<typeof SharedArrayBuffer?i:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":$&&I?I(""[Symbol.iterator]()):i,"%Symbol%":$?Symbol:i,"%SyntaxError%":f,"%ThrowTypeError%":k,"%TypedArray%":z,"%TypeError%":c,"%Uint8Array%":"u"<typeof Uint8Array?i:Uint8Array,"%Uint8ClampedArray%":"u"<typeof Uint8ClampedArray?i:Uint8ClampedArray,"%Uint16Array%":"u"<typeof Uint16Array?i:Uint16Array,"%Uint32Array%":"u"<typeof Uint32Array?i:Uint32Array,"%URIError%":d,"%WeakMap%":"u"<typeof WeakMap?i:WeakMap,"%WeakRef%":"u"<typeof WeakRef?i:WeakRef,"%WeakSet%":"u"<typeof WeakSet?i:WeakSet,"%Function.prototype.call%":O,"%Function.prototype.apply%":A,"%Object.defineProperty%":w,"%Object.getPrototypeOf%":M,"%Math.abs%":l,"%Math.floor%":h,"%Math.max%":p,"%Math.min%":m,"%Math.pow%":b,"%Math.round%":g,"%Math.sign%":v,"%Reflect.getPrototypeOf%":E};if(I)try{null.error}catch(e){var P=I(I(e));U["%Error.prototype%"]=P}var T=function e(t){var r;if("%AsyncFunction%"===t)r=_("async function () {}");else if("%GeneratorFunction%"===t)r=_("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=_("async function* () {}");else if("%AsyncGenerator%"===t){var i=e("%AsyncGeneratorFunction%");i&&(r=i.prototype)}else if("%AsyncIteratorPrototype%"===t){var n=e("%AsyncGenerator%");n&&I&&(r=I(n.prototype))}return U[t]=r,r},R={__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"]},N=r(1212),D=r(3270),B=N.call(O,Array.prototype.concat),Z=N.call(A,Array.prototype.splice),C=N.call(O,String.prototype.replace),L=N.call(O,String.prototype.slice),q=N.call(O,RegExp.prototype.exec),F=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,J=/\\(\\)?/g,W=function(e){var t=L(e,0,1),r=L(e,-1);if("%"===t&&"%"!==r)throw new f("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new f("invalid intrinsic syntax, expected opening `%`");var i=[];return C(e,F,function(e,t,r,n){i[i.length]=r?C(n,J,"$1"):t||e}),i},K=function(e,t){var r,i=e;if(D(R,i)&&(i="%"+(r=R[i])[0]+"%"),D(U,i)){var n=U[i];if(n===j&&(n=T(i)),void 0===n&&!t)throw new c("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:i,value:n}}throw new f("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new c('"allowMissing" argument must be a boolean');if(null===q(/^%?[^%]*%?$/,e))throw new f("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=W(e),i=r.length>0?r[0]:"",n=K("%"+i+"%",t),a=n.name,o=n.value,s=!1,u=n.alias;u&&(i=u[0],Z(r,B([0,1],u)));for(var d=1,l=!0;d<r.length;d+=1){var h=r[d],p=L(h,0,1),m=L(h,-1);if(('"'===p||"'"===p||"`"===p||'"'===m||"'"===m||"`"===m)&&p!==m)throw new f("property names with quotes must have matching quotes");if("constructor"!==h&&l||(s=!0),i+="."+h,D(U,a="%"+i+"%"))o=U[a];else if(null!=o){if(!(h in o)){if(!t)throw new c("base intrinsic for "+e+" exists, but the property is not available.");return}if(x&&d+1>=r.length){var b=x(o,h);o=(l=!!b)&&"get"in b&&!("originalValue"in b.get)?b.get:o[h]}else l=D(o,h),o=o[h];l&&!s&&(U[a]=o)}}return o}},7823:function(e,t,r){"use strict";e.exports=r(2811).getPrototypeOf||null},7904:function(e){"use strict";e.exports="u">typeof Reflect&&Reflect.getPrototypeOf||null},699:function(e,t,r){"use strict";var i=r(7904),n=r(7823),a=r(6211);e.exports=i?function(e){return i(e)}:n?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw TypeError("getProto: not an object");return n(e)}:a?function(e){return a(e)}:null},4596:function(e){"use strict";e.exports=Object.getOwnPropertyDescriptor},3990:function(e,t,r){"use strict";var i=r(4596);if(i)try{i([],"length")}catch(e){i=null}e.exports=i},7122:function(e,t,r){"use strict";var i=r(446),n=function(){return!!i};n.hasArrayLengthDefineBug=function(){if(!i)return null;try{return 1!==i([],"length",{value:1}).length}catch(e){return!0}},e.exports=n},9942:function(e,t,r){"use strict";var i="u">typeof Symbol&&Symbol,n=r(3773);e.exports=function(){return"function"==typeof i&&"function"==typeof Symbol&&"symbol"==typeof i("foo")&&"symbol"==typeof Symbol("bar")&&n()}},3773:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;var i=42;for(t in e[t]=i,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var a=Object.getOwnPropertyDescriptor(e,t);if(a.value!==i||!0!==a.enumerable)return!1}return!0}},4871:function(e,t,r){"use strict";var i="u">typeof Symbol&&Symbol,n=r(5960);e.exports=function(){return"function"==typeof i&&"function"==typeof Symbol&&"symbol"==typeof i("foo")&&"symbol"==typeof Symbol("bar")&&n()}},5960:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;var i=42;for(var n in e[t]=i,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var a=Object.getOwnPropertySymbols(e);if(1!==a.length||a[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==i||!0!==o.enumerable)return!1}return!0}},3270:function(e,t,r){"use strict";var i=Function.prototype.call,n=Object.prototype.hasOwnProperty;e.exports=r(1212).call(i,n)},3782:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},5157:function(e){"use strict";var t="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,r=Object.prototype.toString,i=function(e){return(!t||!e||"object"!=typeof e||!(Symbol.toStringTag in e))&&"[object Arguments]"===r.call(e)},n=function(e){return!!i(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==r.call(e)&&"[object Function]"===r.call(e.callee)},a=function(){return i(arguments)}();i.isLegacyArguments=n,e.exports=a?i:n},3391:function(e){"use strict";var t=Object.prototype.toString,r=Function.prototype.toString,i=/^\s*(?:function)?\*/,n="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,a=Object.getPrototypeOf,o=function(){if(!n)return!1;try{return Function("return function*() {}")()}catch(e){}}(),s=o?a(o):{};e.exports=function(e){return"function"==typeof e&&(!!i.test(r.call(e))||(n?a(e)===s:"[object GeneratorFunction]"===t.call(e)))}},994:function(t,r,i){"use strict";var n=i(6144),a=i(1349),o=i(516),s=o("Object.prototype.toString"),u=i(9942)()&&"symbol"==typeof Symbol.toStringTag,f=a(),c=o("Array.prototype.indexOf",!0)||function(e,t){for(var r=0;r<e.length;r+=1)if(e[r]===t)return r;return -1},d=o("String.prototype.slice"),l={},h=i(2154),p=Object.getPrototypeOf;u&&h&&p&&n(f,function(t){var r=new e.g[t];if(!(Symbol.toStringTag in r))throw EvalError("this engine has support for Symbol.toStringTag, but "+t+" does not have the property! Please report this.");var i=p(r),n=h(i,Symbol.toStringTag);n||(n=h(p(i),Symbol.toStringTag)),l[t]=n.get});var m=function(e){var t=!1;return n(l,function(r,i){if(!t)try{t=r.call(e)===i}catch(e){}}),t};t.exports=function(e){return!!e&&"object"==typeof e&&(u?!!h&&m(e):c(f,d(s(e),8,-1))>-1)}},7173:function(e){"use strict";e.exports=Math.abs},847:function(e){"use strict";e.exports=Math.floor},219:function(e){"use strict";e.exports=Number.isNaN||function(e){return e!=e}},2916:function(e){"use strict";e.exports=Math.max},9882:function(e){"use strict";e.exports=Math.min},3291:function(e){"use strict";e.exports=Math.pow},553:function(e){"use strict";e.exports=Math.round},8629:function(e,t,r){"use strict";var i=r(219);e.exports=function(e){return i(e)||0===e?e:e<0?-1:1}},3143:function(e,t,r){"use strict";var i=r(3197),n=r(819),a=r(7122)(),o=r(3990),s=r(8202),u=i("%Math.floor%");e.exports=function(e,t){if("function"!=typeof e)throw new s("`fn` is not a function");if("number"!=typeof t||t<0||t>0xffffffff||u(t)!==t)throw new s("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],i=!0,f=!0;if("length"in e&&o){var c=o(e,"length");c&&!c.configurable&&(i=!1),c&&!c.writable&&(f=!1)}return(i||f||!r)&&(a?n(e,"length",t,!0,!0):n(e,"length",t)),e}},2369:function(e){e.exports=function(e){return e instanceof i.Buffer}},5584:function(e,t,r){"use strict";var i=r(5157),n=r(3391),a=r(1490),o=r(994);function s(e){return e.call.bind(e)}var u="u">typeof BigInt,f="u">typeof Symbol,c=s(Object.prototype.toString),d=s(Number.prototype.valueOf),l=s(String.prototype.valueOf),h=s(Boolean.prototype.valueOf);if(u)var p=s(BigInt.prototype.valueOf);if(f)var m=s(Symbol.prototype.valueOf);function b(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function g(e){return"[object Map]"===c(e)}function v(e){return"[object Set]"===c(e)}function y(e){return"[object WeakMap]"===c(e)}function _(e){return"[object WeakSet]"===c(e)}function x(e){return"[object ArrayBuffer]"===c(e)}function w(e){return!("u"<typeof ArrayBuffer)&&(x.working?x(e):e instanceof ArrayBuffer)}function S(e){return"[object DataView]"===c(e)}function k(e){return!("u"<typeof DataView)&&(S.working?S(e):e instanceof DataView)}t.isArgumentsObject=i,t.isGeneratorFunction=n,t.isTypedArray=o,t.isPromise=function(e){return"u">typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},t.isArrayBufferView=function(e){return"u">typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):o(e)||k(e)},t.isUint8Array=function(e){return"Uint8Array"===a(e)},t.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===a(e)},t.isUint16Array=function(e){return"Uint16Array"===a(e)},t.isUint32Array=function(e){return"Uint32Array"===a(e)},t.isInt8Array=function(e){return"Int8Array"===a(e)},t.isInt16Array=function(e){return"Int16Array"===a(e)},t.isInt32Array=function(e){return"Int32Array"===a(e)},t.isFloat32Array=function(e){return"Float32Array"===a(e)},t.isFloat64Array=function(e){return"Float64Array"===a(e)},t.isBigInt64Array=function(e){return"BigInt64Array"===a(e)},t.isBigUint64Array=function(e){return"BigUint64Array"===a(e)},g.working="u">typeof Map&&g(new Map),t.isMap=function(e){return!("u"<typeof Map)&&(g.working?g(e):e instanceof Map)},v.working="u">typeof Set&&v(new Set),t.isSet=function(e){return!("u"<typeof Set)&&(v.working?v(e):e instanceof Set)},y.working="u">typeof WeakMap&&y(new WeakMap),t.isWeakMap=function(e){return!("u"<typeof WeakMap)&&(y.working?y(e):e instanceof WeakMap)},_.working="u">typeof WeakSet&&_(new WeakSet),t.isWeakSet=function(e){return _(e)},x.working="u">typeof ArrayBuffer&&x(new ArrayBuffer),t.isArrayBuffer=w,S.working="u">typeof ArrayBuffer&&"u">typeof DataView&&S(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=k;var $="u">typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function I(e){return"[object SharedArrayBuffer]"===c(e)}function M(e){return void 0!==$&&(void 0===I.working&&(I.working=I(new $)),I.working?I(e):e instanceof $)}function E(e){return b(e,d)}function A(e){return b(e,l)}function O(e){return b(e,h)}function j(e){return u&&b(e,p)}function z(e){return f&&b(e,m)}t.isSharedArrayBuffer=M,t.isAsyncFunction=function(e){return"[object AsyncFunction]"===c(e)},t.isMapIterator=function(e){return"[object Map Iterator]"===c(e)},t.isSetIterator=function(e){return"[object Set Iterator]"===c(e)},t.isGeneratorObject=function(e){return"[object Generator]"===c(e)},t.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===c(e)},t.isNumberObject=E,t.isStringObject=A,t.isBooleanObject=O,t.isBigIntObject=j,t.isSymbolObject=z,t.isBoxedPrimitive=function(e){return E(e)||A(e)||O(e)||j(e)||z(e)},t.isAnyArrayBuffer=function(e){return"u">typeof Uint8Array&&(w(e)||M(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw Error(e+" is not supported in userland")}})})},8177:function(e,t,r){var i=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},i=0;i<t.length;i++)r[t[i]]=Object.getOwnPropertyDescriptor(e,t[i]);return r},a=/%[sdj%]/g;t.format=function(e){if(!S(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(f(arguments[r]));return t.join(" ")}for(var r=1,i=arguments,n=i.length,o=String(e).replace(a,function(e){if("%%"===e)return"%";if(r>=n)return e;switch(e){case"%s":return String(i[r++]);case"%d":return Number(i[r++]);case"%j":try{return JSON.stringify(i[r++])}catch(e){return"[Circular]"}default:return e}}),s=i[r];r<n;s=i[++r])x(s)||!I(s)?o+=" "+s:o+=" "+f(s);return o},t.deprecate=function(e,r){if(void 0!==n.default&&!0===n.default.noDeprecation)return e;if(void 0===n.default)return function(){return t.deprecate(e,r).apply(this,arguments)};var i=!1;return function(){if(!i){if(n.default.throwDeprecation)throw Error(r);n.default.traceDeprecation?console.trace(r):console.error(r),i=!0}return e.apply(this,arguments)}};var o={},s=/^$/;if(n.default.env.NODE_DEBUG){var u=n.default.env.NODE_DEBUG;s=RegExp("^"+(u=u.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase())+"$","i")}function f(e,r){var i={seen:[],stylize:d};return arguments.length>=3&&(i.depth=arguments[2]),arguments.length>=4&&(i.colors=arguments[3]),_(r)?i.showHidden=r:r&&t._extend(i,r),k(i.showHidden)&&(i.showHidden=!1),k(i.depth)&&(i.depth=2),k(i.colors)&&(i.colors=!1),k(i.customInspect)&&(i.customInspect=!0),i.colors&&(i.stylize=c),h(i,e,i.depth)}function c(e,t){var r=f.styles[t];return r?"\x1b["+f.colors[r][0]+"m"+e+"\x1b["+f.colors[r][1]+"m":e}function d(e,t){return e}function l(e){var t={};return e.forEach(function(e,r){t[e]=!0}),t}function h(e,r,i){if(e.customInspect&&r&&A(r.inspect)&&r.inspect!==t.inspect&&!(r.constructor&&r.constructor.prototype===r)){var n,a=r.inspect(i,e);return S(a)||(a=h(e,a,i)),a}var o=p(e,r);if(o)return o;var s=Object.keys(r),u=l(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(r)),E(r)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return m(r);if(0===s.length){if(A(r)){var f=r.name?": "+r.name:"";return e.stylize("[Function"+f+"]","special")}if($(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(M(r))return e.stylize(Date.prototype.toString.call(r),"date");if(E(r))return m(r)}var c="",d=!1,_=["{","}"];if(y(r)&&(d=!0,_=["[","]"]),A(r)&&(c=" [Function"+(r.name?": "+r.name:"")+"]"),$(r)&&(c=" "+RegExp.prototype.toString.call(r)),M(r)&&(c=" "+Date.prototype.toUTCString.call(r)),E(r)&&(c=" "+m(r)),0===s.length&&(!d||0==r.length))return _[0]+c+_[1];if(i<0)if($(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");else return e.stylize("[Object]","special");return e.seen.push(r),n=d?b(e,r,i,u,s):s.map(function(t){return g(e,r,i,u,t,d)}),e.seen.pop(),v(n,c,_)}function p(e,t){if(k(t))return e.stylize("undefined","undefined");if(S(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}return w(t)?e.stylize(""+t,"number"):_(t)?e.stylize(""+t,"boolean"):x(t)?e.stylize("null","null"):void 0}function m(e){return"["+Error.prototype.toString.call(e)+"]"}function b(e,t,r,i,n){for(var a=[],o=0,s=t.length;o<s;++o)P(t,String(o))?a.push(g(e,t,r,i,String(o),!0)):a.push("");return n.forEach(function(n){n.match(/^\d+$/)||a.push(g(e,t,r,i,n,!0))}),a}function g(e,t,r,i,n,a){var o,s,u;if((u=Object.getOwnPropertyDescriptor(t,n)||{value:t[n]}).get?s=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(s=e.stylize("[Setter]","special")),P(i,n)||(o="["+n+"]"),!s&&(0>e.seen.indexOf(u.value)?(s=x(r)?h(e,u.value,null):h(e,u.value,r-1)).indexOf("\n")>-1&&(s=a?s.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n")):s=e.stylize("[Circular]","special")),k(o)){if(a&&n.match(/^\d+$/))return s;(o=JSON.stringify(""+n)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+s}function v(e,t,r){var i=0;return e.reduce(function(e,t){return i++,t.indexOf("\n")>=0&&i++,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}function y(e){return Array.isArray(e)}function _(e){return"boolean"==typeof e}function x(e){return null===e}function w(e){return"number"==typeof e}function S(e){return"string"==typeof e}function k(e){return void 0===e}function $(e){return I(e)&&"[object RegExp]"===O(e)}function I(e){return"object"==typeof e&&null!==e}function M(e){return I(e)&&"[object Date]"===O(e)}function E(e){return I(e)&&("[object Error]"===O(e)||e instanceof Error)}function A(e){return"function"==typeof e}function O(e){return Object.prototype.toString.call(e)}function j(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(!o[e=e.toUpperCase()])if(s.test(e)){var r=n.default.pid;o[e]=function(){var i=t.format.apply(t,arguments);console.error("%s %d: %s",e,r,i)}}else o[e]=function(){};return o[e]},t.inspect=f,f.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},f.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=r(5584),t.isArray=y,t.isBoolean=_,t.isNull=x,t.isNullOrUndefined=function(e){return null==e},t.isNumber=w,t.isString=S,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=k,t.isRegExp=$,t.types.isRegExp=$,t.isObject=I,t.isDate=M,t.types.isDate=M,t.isError=E,t.types.isNativeError=E,t.isFunction=A,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(2369);var z=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function U(){var e=new Date,t=[j(e.getHours()),j(e.getMinutes()),j(e.getSeconds())].join(":");return[e.getDate(),z[e.getMonth()],t].join(" ")}function P(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",U(),t.format.apply(t,arguments))},t.inherits=r(3782),t._extend=function(e,t){if(!t||!I(t))return e;for(var r=Object.keys(t),i=r.length;i--;)e[r[i]]=t[r[i]];return e};var T="u">typeof Symbol?Symbol("util.promisify.custom"):void 0;function R(e,t){if(!e){var r=Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw TypeError('The "original" argument must be of type Function');if(T&&e[T]){var t=e[T];if("function"!=typeof t)throw TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,T,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,r,i=new Promise(function(e,i){t=e,r=i}),n=[],a=0;a<arguments.length;a++)n.push(arguments[a]);n.push(function(e,i){e?r(e):t(i)});try{e.apply(this,n)}catch(e){r(e)}return i}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),T&&Object.defineProperty(t,T,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,i(e))},t.promisify.custom=T,t.callbackify=function(e){if("function"!=typeof e)throw TypeError('The "original" argument must be of type Function');function t(){for(var t=[],r=0;r<arguments.length;r++)t.push(arguments[r]);var i=t.pop();if("function"!=typeof i)throw TypeError("The last argument must be of type Function");var a=this,o=function(){return i.apply(a,arguments)};e.apply(this,t).then(function(e){n.default.nextTick(o.bind(null,null,e))},function(e){n.default.nextTick(R.bind(null,e,o))})}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,i(e)),t}},1490:function(t,r,i){"use strict";var n=i(6144),a=i(1349),o=i(516),s=o("Object.prototype.toString"),u=i(9942)()&&"symbol"==typeof Symbol.toStringTag,f=a(),c=o("String.prototype.slice"),d={},l=i(2154),h=Object.getPrototypeOf;u&&l&&h&&n(f,function(t){if("function"==typeof e.g[t]){var r=new e.g[t];if(!(Symbol.toStringTag in r))throw EvalError("this engine has support for Symbol.toStringTag, but "+t+" does not have the property! Please report this.");var i=h(r),n=l(i,Symbol.toStringTag);n||(n=l(h(i),Symbol.toStringTag)),d[t]=n.get}});var p=function(e){var t=!1;return n(d,function(r,i){if(!t)try{var n=r.call(e);n===i&&(t=n)}catch(e){}}),t},m=i(994);t.exports=function(e){return!!m(e)&&(u?p(e):c(s(e),8,-1))}},1349:function(t,r,i){"use strict";var n=i(8992);t.exports=function(){return n(["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],function(t){return"function"==typeof e.g[t]})}},2154:function(e,t,r){"use strict";e.exports=r(3990)}},a={};function o(e){var t=a[e];if(void 0!==t)return t.exports;var i=a[e]={exports:{}},n=!0;try{r[e](i,i.exports,o),n=!1}finally{n&&delete a[e]}return i.exports}o.ab="/ROOT/node_modules/.pnpm/next@16.2.4_@babel+core@7.29.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/compiled/util/",t.exports=o(8177)}()},75391,(e,t,r)=>{var i=e.i(8890);!function(){var r={782:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},646:function(e){"use strict";let t={};function r(e,r,i){function n(e,t,i){return"string"==typeof r?r:r(e,t,i)}i||(i=Error);class a extends i{constructor(e,t,r){super(n(e,t,r))}}a.prototype.name=i.name,a.prototype.code=e,t[e]=a}function i(e,t){if(!Array.isArray(e))return`of ${t} ${String(e)}`;{let r=e.length;return(e=e.map(e=>String(e)),r>2)?`one of ${t} ${e.slice(0,r-1).join(", ")}, or `+e[r-1]:2===r?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}}function n(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function a(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function o(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}r("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(e,t,r){let s,u;if("string"==typeof t&&n(t,"not ")?(s="must not be",t=t.replace(/^not /,"")):s="must be",a(e," argument"))u=`The ${e} ${s} ${i(t,"type")}`;else{let r=o(e,".")?"property":"argument";u=`The "${e}" ${r} ${s} ${i(t,"type")}`}return u+`. Received type ${typeof r}`},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.q=t},403:function(e,t,r){"use strict";var n=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=c;var a=r(709),o=r(337);r(782)(c,a);for(var s=n(o.prototype),u=0;u<s.length;u++){var f=s[u];c.prototype[f]||(c.prototype[f]=o.prototype[f])}function c(e){if(!(this instanceof c))return new c(e);a.call(this,e),o.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",d)))}function d(){this._writableState.ended||i.default.nextTick(l,this)}function l(e){e.end()}Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(c.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(c.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})},889:function(e,t,r){"use strict";e.exports=n;var i=r(170);function n(e){if(!(this instanceof n))return new n(e);i.call(this,e)}r(782)(n,i),n.prototype._transform=function(e,t,r){r(null,e)}},709:function(t,r,n){"use strict";t.exports=A,A.ReadableState=E,n(361).EventEmitter;var a,o,s,u,f,c=function(e,t){return e.listeners(t).length},d=n(678),l=n(300).Buffer,h=e.g.Uint8Array||function(){};function p(e){return l.from(e)}function m(e){return l.isBuffer(e)||e instanceof h}var b=n(837);o=b&&b.debuglog?b.debuglog("stream"):function(){};var g=n(379),v=n(25),y=n(776).getHighWaterMark,_=n(646).q,x=_.ERR_INVALID_ARG_TYPE,w=_.ERR_STREAM_PUSH_AFTER_EOF,S=_.ERR_METHOD_NOT_IMPLEMENTED,k=_.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;n(782)(A,d);var $=v.errorOrDestroy,I=["error","close","destroy","pause","resume"];function M(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}function E(e,t,r){a=a||n(403),e=e||{},"boolean"!=typeof r&&(r=t instanceof a),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=y(this,e,"readableHighWaterMark",r),this.buffer=new g,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(s||(s=n(704).s),this.decoder=new s(e.encoding),this.encoding=e.encoding)}function A(e){if(a=a||n(403),!(this instanceof A))return new A(e);var t=this instanceof a;this._readableState=new E(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),d.call(this)}function O(e,t,r,i,n){o("readableAddChunk",t);var a,s=e._readableState;if(null===t)s.reading=!1,R(e,s);else if(n||(a=z(s,t)),a)$(e,a);else if(s.objectMode||t&&t.length>0)if("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===l.prototype||(t=p(t)),i)s.endEmitted?$(e,new k):j(e,s,t,!0);else if(s.ended)$(e,new w);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||0!==t.length?j(e,s,t,!1):B(e,s)):j(e,s,t,!1)}else i||(s.reading=!1,B(e,s));return!s.ended&&(s.length<s.highWaterMark||0===s.length)}function j(e,t,r,i){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,i?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&N(e)),B(e,t)}function z(e,t){var r;return m(t)||"string"==typeof t||void 0===t||e.objectMode||(r=new x("chunk",["string","Buffer","Uint8Array"],t)),r}Object.defineProperty(A.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),A.prototype.destroy=v.destroy,A.prototype._undestroy=v.undestroy,A.prototype._destroy=function(e,t){t(e)},A.prototype.push=function(e,t){var r,i=this._readableState;return i.objectMode?r=!0:"string"==typeof e&&((t=t||i.defaultEncoding)!==i.encoding&&(e=l.from(e,t),t=""),r=!0),O(this,e,t,!1,r)},A.prototype.unshift=function(e){return O(this,e,null,!0,!1)},A.prototype.isPaused=function(){return!1===this._readableState.flowing},A.prototype.setEncoding=function(e){s||(s=n(704).s);var t=new s(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,i="";null!==r;)i+=t.write(r.data),r=r.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var U=0x40000000;function P(e){return e>=U?e=U:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function T(e,t){if(e<=0||0===t.length&&t.ended)return 0;if(t.objectMode)return 1;if(e!=e)if(t.flowing&&t.length)return t.buffer.head.data.length;else return t.length;return(e>t.highWaterMark&&(t.highWaterMark=P(e)),e<=t.length)?e:t.ended?t.length:(t.needReadable=!0,0)}function R(e,t){if(o("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?N(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,D(e)))}}function N(e){var t=e._readableState;o("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(o("emitReadable",t.flowing),t.emittedReadable=!0,i.default.nextTick(D,e))}function D(e){var t=e._readableState;o("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,W(e)}function B(e,t){t.readingMore||(t.readingMore=!0,i.default.nextTick(Z,e,t))}function Z(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var r=t.length;if(o("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function C(e){return function(){var t=e._readableState;o("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&c(e,"data")&&(t.flowing=!0,W(e))}}function L(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function q(e){o("readable nexttick read 0"),e.read(0)}function F(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.default.nextTick(J,e,t))}function J(e,t){o("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),W(e),t.flowing&&!t.reading&&e.read(0)}function W(e){var t=e._readableState;for(o("flow",t.flowing);t.flowing&&null!==e.read(););}function K(e,t){var r;return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r)}function V(e){var t=e._readableState;o("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,i.default.nextTick(G,t,e))}function G(e,t){if(o("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function H(e,t){for(var r=0,i=e.length;r<i;r++)if(e[r]===t)return r;return -1}A.prototype.read=function(e){o("read",e),e=parseInt(e,10);var t,r=this._readableState,i=e;if(0!==e&&(r.emittedReadable=!1),0===e&&r.needReadable&&((0!==r.highWaterMark?r.length>=r.highWaterMark:r.length>0)||r.ended))return o("read: emitReadable",r.length,r.ended),0===r.length&&r.ended?V(this):N(this),null;if(0===(e=T(e,r))&&r.ended)return 0===r.length&&V(this),null;var n=r.needReadable;return o("need readable",n),(0===r.length||r.length-e<r.highWaterMark)&&o("length less than watermark",n=!0),r.ended||r.reading?o("reading or ended",n=!1):n&&(o("do read"),r.reading=!0,r.sync=!0,0===r.length&&(r.needReadable=!0),this._read(r.highWaterMark),r.sync=!1,r.reading||(e=T(i,r))),null===(t=e>0?K(e,r):null)?(r.needReadable=r.length<=r.highWaterMark,e=0):(r.length-=e,r.awaitDrain=0),0===r.length&&(r.ended||(r.needReadable=!0),i!==e&&r.ended&&V(this)),null!==t&&this.emit("data",t),t},A.prototype._read=function(e){$(this,new S("_read()"))},A.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e)}n.pipesCount+=1,o("pipe count=%d opts=%j",n.pipesCount,t);var a=t&&!1===t.end||e===i.default.stdout||e===i.default.stderr?g:u;function s(e,t){o("onunpipe"),e===r&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,l())}function u(){o("onend"),e.end()}n.endEmitted?i.default.nextTick(a):r.once("end",a),e.on("unpipe",s);var f=C(r);e.on("drain",f);var d=!1;function l(){o("cleanup"),e.removeListener("close",m),e.removeListener("finish",b),e.removeListener("drain",f),e.removeListener("error",p),e.removeListener("unpipe",s),r.removeListener("end",u),r.removeListener("end",g),r.removeListener("data",h),d=!0,n.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&f()}function h(t){o("ondata");var i=e.write(t);o("dest.write",i),!1===i&&((1===n.pipesCount&&n.pipes===e||n.pipesCount>1&&-1!==H(n.pipes,e))&&!d&&(o("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function p(t){o("onerror",t),g(),e.removeListener("error",p),0===c(e,"error")&&$(e,t)}function m(){e.removeListener("finish",b),g()}function b(){o("onfinish"),e.removeListener("close",m),g()}function g(){o("unpipe"),r.unpipe(e)}return r.on("data",h),M(e,"error",p),e.once("close",m),e.once("finish",b),e.emit("pipe",r),n.flowing||(o("pipe resume"),r.resume()),e},A.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var i=t.pipes,n=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a<n;a++)i[a].emit("unpipe",this,{hasUnpiped:!1});return this}var o=H(t.pipes,e);return -1===o||(t.pipes.splice(o,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},A.prototype.on=function(e,t){var r=d.prototype.on.call(this,e,t),n=this._readableState;return"data"===e?(n.readableListening=this.listenerCount("readable")>0,!1!==n.flowing&&this.resume()):"readable"!==e||n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,o("on readable",n.length,n.reading),n.length?N(this):n.reading||i.default.nextTick(q,this)),r},A.prototype.addListener=A.prototype.on,A.prototype.removeListener=function(e,t){var r=d.prototype.removeListener.call(this,e,t);return"readable"===e&&i.default.nextTick(L,this),r},A.prototype.removeAllListeners=function(e){var t=d.prototype.removeAllListeners.apply(this,arguments);return("readable"===e||void 0===e)&&i.default.nextTick(L,this),t},A.prototype.resume=function(){var e=this._readableState;return e.flowing||(o("resume"),e.flowing=!e.readableListening,F(this,e)),e.paused=!1,this},A.prototype.pause=function(){return o("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(o("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},A.prototype.wrap=function(e){var t=this,r=this._readableState,i=!1;for(var n in e.on("end",function(){if(o("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(n){o("wrapped data"),r.decoder&&(n=r.decoder.write(n)),r.objectMode&&null==n||(r.objectMode||n&&n.length)&&(t.push(n)||(i=!0,e.pause()))}),e)void 0===this[n]&&"function"==typeof e[n]&&(this[n]=function(t){return function(){return e[t].apply(e,arguments)}}(n));for(var a=0;a<I.length;a++)e.on(I[a],this.emit.bind(this,I[a]));return this._read=function(t){o("wrapped _read",t),i&&(i=!1,e.resume())},this},"function"==typeof Symbol&&(A.prototype[Symbol.asyncIterator]=function(){return void 0===u&&(u=n(871)),u(this)}),Object.defineProperty(A.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(A.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(A.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),A._fromList=K,Object.defineProperty(A.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(A.from=function(e,t){return void 0===f&&(f=n(727)),f(A,e,t)})},170:function(e,t,r){"use strict";e.exports=c;var i=r(646).q,n=i.ERR_METHOD_NOT_IMPLEMENTED,a=i.ERR_MULTIPLE_CALLBACK,o=i.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=i.ERR_TRANSFORM_WITH_LENGTH_0,u=r(403);function f(e,t){var r=this._transformState;r.transforming=!1;var i=r.writecb;if(null===i)return this.emit("error",new a);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),i(e);var n=this._readableState;n.reading=!1,(n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}function c(e){if(!(this instanceof c))return new c(e);u.call(this,e),this._transformState={afterTransform:f.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",d)}function d(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?l(this,null,null):this._flush(function(t,r){l(e,t,r)})}function l(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new s;if(e._transformState.transforming)throw new o;return e.push(null)}r(782)(c,u),c.prototype.push=function(e,t){return this._transformState.needTransform=!1,u.prototype.push.call(this,e,t)},c.prototype._transform=function(e,t,r){r(new n("_transform()"))},c.prototype._write=function(e,t,r){var i=this._transformState;if(i.writecb=r,i.writechunk=e,i.writeencoding=t,!i.transforming){var n=this._readableState;(i.needTransform||n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}},c.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},c.prototype._destroy=function(e,t){u.prototype._destroy.call(this,e,function(e){t(e)})}},337:function(t,r,n){"use strict";function a(e){var t=this;this.next=null,this.entry=null,this.finish=function(){J(t,e)}}t.exports=E,E.WritableState=M;var o,s,u={deprecate:n(769)},f=n(678),c=n(300).Buffer,d=e.g.Uint8Array||function(){};function l(e){return c.from(e)}function h(e){return c.isBuffer(e)||e instanceof d}var p=n(25),m=n(776).getHighWaterMark,b=n(646).q,g=b.ERR_INVALID_ARG_TYPE,v=b.ERR_METHOD_NOT_IMPLEMENTED,y=b.ERR_MULTIPLE_CALLBACK,_=b.ERR_STREAM_CANNOT_PIPE,x=b.ERR_STREAM_DESTROYED,w=b.ERR_STREAM_NULL_VALUES,S=b.ERR_STREAM_WRITE_AFTER_END,k=b.ERR_UNKNOWN_ENCODING,$=p.errorOrDestroy;function I(){}function M(e,t,r){o=o||n(403),e=e||{},"boolean"!=typeof r&&(r=t instanceof o),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=m(this,e,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var i=!1===e.decodeStrings;this.decodeStrings=!i,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){R(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function E(e){var t=this instanceof(o=o||n(403));if(!t&&!s.call(E,this))return new E(e);this._writableState=new M(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),f.call(this)}function A(e,t){var r=new S;$(e,r),i.default.nextTick(t,r)}function O(e,t,r,n){var a;return null===r?a=new w:"string"==typeof r||t.objectMode||(a=new g("chunk",["string","Buffer"],r)),!a||($(e,a),i.default.nextTick(n,a),!1)}function j(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=c.from(t,r)),t}function z(e,t,r,i,n,a){if(!r){var o=j(t,i,n);i!==o&&(r=!0,n="buffer",i=o)}var s=t.objectMode?1:i.length;t.length+=s;var u=t.length<t.highWaterMark;if(u||(t.needDrain=!0),t.writing||t.corked){var f=t.lastBufferedRequest;t.lastBufferedRequest={chunk:i,encoding:n,isBuf:r,callback:a,next:null},f?f.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else U(e,t,!1,s,i,n,a);return u}function U(e,t,r,i,n,a,o){t.writelen=i,t.writecb=o,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new x("write")):r?e._writev(n,t.onwrite):e._write(n,a,t.onwrite),t.sync=!1}function P(e,t,r,n,a){--t.pendingcb,r?(i.default.nextTick(a,n),i.default.nextTick(q,e,t),e._writableState.errorEmitted=!0,$(e,n)):(a(n),e._writableState.errorEmitted=!0,$(e,n),q(e,t))}function T(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function R(e,t){var r=e._writableState,n=r.sync,a=r.writecb;if("function"!=typeof a)throw new y;if(T(r),t)P(e,r,n,t,a);else{var o=Z(r)||e.destroyed;o||r.corked||r.bufferProcessing||!r.bufferedRequest||B(e,r),n?i.default.nextTick(N,e,r,o,a):N(e,r,o,a)}}function N(e,t,r,i){r||D(e,t),t.pendingcb--,i(),q(e,t)}function D(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function B(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var i=Array(t.bufferedRequestCount),n=t.corkedRequestsFree;n.entry=r;for(var o=0,s=!0;r;)i[o]=r,r.isBuf||(s=!1),r=r.next,o+=1;i.allBuffers=s,U(e,t,!0,t.length,i,"",n.finish),t.pendingcb++,t.lastBufferedRequest=null,n.next?(t.corkedRequestsFree=n.next,n.next=null):t.corkedRequestsFree=new a(t),t.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,f=r.encoding,c=r.callback,d=t.objectMode?1:u.length;if(U(e,t,!1,d,u,f,c),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function Z(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function C(e,t){e._final(function(r){t.pendingcb--,r&&$(e,r),t.prefinished=!0,e.emit("prefinish"),q(e,t)})}function L(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,i.default.nextTick(C,e,t)))}function q(e,t){var r=Z(t);if(r&&(L(e,t),0===t.pendingcb)&&(t.finished=!0,e.emit("finish"),t.autoDestroy)){var i=e._readableState;(!i||i.autoDestroy&&i.endEmitted)&&e.destroy()}return r}function F(e,t,r){t.ending=!0,q(e,t),r&&(t.finished?i.default.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}function J(e,t,r){var i=e.entry;for(e.entry=null;i;){var n=i.callback;t.pendingcb--,n(r),i=i.next}t.corkedRequestsFree.next=e}n(782)(E,f),M.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(M.prototype,"buffer",{get:u.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(s=Function.prototype[Symbol.hasInstance],Object.defineProperty(E,Symbol.hasInstance,{value:function(e){return!!s.call(this,e)||this===E&&e&&e._writableState instanceof M}})):s=function(e){return e instanceof this},E.prototype.pipe=function(){$(this,new _)},E.prototype.write=function(e,t,r){var i=this._writableState,n=!1,a=!i.objectMode&&h(e);return a&&!c.isBuffer(e)&&(e=l(e)),"function"==typeof t&&(r=t,t=null),a?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof r&&(r=I),i.ending?A(this,r):(a||O(this,i,e,r))&&(i.pendingcb++,n=z(this,i,a,e,t,r)),n},E.prototype.cork=function(){this._writableState.corked++},E.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||B(this,e))},E.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new k(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(E.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(E.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),E.prototype._write=function(e,t,r){r(new v("_write()"))},E.prototype._writev=null,E.prototype.end=function(e,t,r){var i=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||F(this,i,r),this},Object.defineProperty(E.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(E.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),E.prototype.destroy=p.destroy,E.prototype._undestroy=p.undestroy,E.prototype._destroy=function(e,t){t(e)}},871:function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var a,o=r(698),s=Symbol("lastResolve"),u=Symbol("lastReject"),f=Symbol("error"),c=Symbol("ended"),d=Symbol("lastPromise"),l=Symbol("handlePromise"),h=Symbol("stream");function p(e,t){return{value:e,done:t}}function m(e){var t=e[s];if(null!==t){var r=e[h].read();null!==r&&(e[d]=null,e[s]=null,e[u]=null,t(p(r,!1)))}}function b(e){i.default.nextTick(m,e)}function g(e,t){return function(r,i){e.then(function(){t[c]?r(p(void 0,!0)):t[l](r,i)},i)}}var v=Object.getPrototypeOf(function(){}),y=Object.setPrototypeOf((n(a={get stream(){return this[h]},next:function(){var e,t=this,r=this[f];if(null!==r)return Promise.reject(r);if(this[c])return Promise.resolve(p(void 0,!0));if(this[h].destroyed)return new Promise(function(e,r){i.default.nextTick(function(){t[f]?r(t[f]):e(p(void 0,!0))})});var n=this[d];if(n)e=new Promise(g(n,this));else{var a=this[h].read();if(null!==a)return Promise.resolve(p(a,!1));e=new Promise(this[l])}return this[d]=e,e}},Symbol.asyncIterator,function(){return this}),n(a,"return",function(){var e=this;return new Promise(function(t,r){e[h].destroy(null,function(e){e?r(e):t(p(void 0,!0))})})}),a),v);e.exports=function(e){var t,r=Object.create(y,(n(t={},h,{value:e,writable:!0}),n(t,s,{value:null,writable:!0}),n(t,u,{value:null,writable:!0}),n(t,f,{value:null,writable:!0}),n(t,c,{value:e._readableState.endEmitted,writable:!0}),n(t,l,{value:function(e,t){var i=r[h].read();i?(r[d]=null,r[s]=null,r[u]=null,e(p(i,!1))):(r[s]=e,r[u]=t)},writable:!0}),t));return r[d]=null,o(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[u];null!==t&&(r[d]=null,r[s]=null,r[u]=null,t(e)),r[f]=e;return}var i=r[s];null!==i&&(r[d]=null,r[s]=null,r[u]=null,i(p(void 0,!0))),r[c]=!0}),e.on("readable",b.bind(null,r)),r}},379:function(e,t,r){"use strict";function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,i)}return r}function n(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach(function(t){a(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function s(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function u(e,t,r){return t&&s(e.prototype,t),r&&s(e,r),e}var f=r(300).Buffer,c=r(837).inspect,d=c&&c.custom||"inspect";function l(e,t,r){f.prototype.copy.call(e,t,r)}e.exports=function(){function e(){o(this,e),this.head=null,this.tail=null,this.length=0}return u(e,[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return f.alloc(0);for(var t=f.allocUnsafe(e>>>0),r=this.head,i=0;r;)l(r.data,t,i),i+=r.data.length,r=r.next;return t}},{key:"consume",value:function(e,t){var r;return e<this.head.data.length?(r=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):r=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,r=1,i=t.data;for(e-=i.length;t=t.next;){var n=t.data,a=e>n.length?n.length:e;if(a===n.length?i+=n:i+=n.slice(0,e),0==(e-=a)){a===n.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=n.slice(a));break}++r}return this.length-=r,i}},{key:"_getBuffer",value:function(e){var t=f.allocUnsafe(e),r=this.head,i=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var n=r.data,a=e>n.length?n.length:e;if(n.copy(t,t.length-e,0,a),0==(e-=a)){a===n.length?(++i,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=n.slice(a));break}++i}return this.length-=i,t}},{key:d,value:function(e,t){return c(this,n({},t,{depth:0,customInspect:!1}))}}]),e}()},25:function(e){"use strict";function t(e,t){n(e,t),r(e)}function r(e){e._writableState&&!e._writableState.emitClose||(!e._readableState||e._readableState.emitClose)&&e.emit("close")}function n(e,t){e.emit("error",t)}e.exports={destroy:function(e,a){var o=this,s=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return s||u?a?a(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,i.default.nextTick(n,this,e)):i.default.nextTick(n,this,e)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!a&&e?o._writableState?o._writableState.errorEmitted?i.default.nextTick(r,o):(o._writableState.errorEmitted=!0,i.default.nextTick(t,o,e)):i.default.nextTick(t,o,e):a?(i.default.nextTick(r,o),a(e)):i.default.nextTick(r,o)})),this},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var r=e._readableState,i=e._writableState;r&&r.autoDestroy||i&&i.autoDestroy?e.destroy(t):e.emit("error",t)}}},698:function(e,t,r){"use strict";var i=r(646).q.ERR_STREAM_PREMATURE_CLOSE;function n(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,i=Array(r),n=0;n<r;n++)i[n]=arguments[n];e.apply(this,i)}}}function a(){}function o(e){return e.setHeader&&"function"==typeof e.abort}function s(e,t,r){if("function"==typeof t)return s(e,null,t);t||(t={}),r=n(r||a);var u=t.readable||!1!==t.readable&&e.readable,f=t.writable||!1!==t.writable&&e.writable,c=function(){e.writable||l()},d=e._writableState&&e._writableState.finished,l=function(){f=!1,d=!0,u||r.call(e)},h=e._readableState&&e._readableState.endEmitted,p=function(){u=!1,h=!0,f||r.call(e)},m=function(t){r.call(e,t)},b=function(){var t;return u&&!h?(e._readableState&&e._readableState.ended||(t=new i),r.call(e,t)):f&&!d?(e._writableState&&e._writableState.ended||(t=new i),r.call(e,t)):void 0},g=function(){e.req.on("finish",l)};return o(e)?(e.on("complete",l),e.on("abort",b),e.req?g():e.on("request",g)):f&&!e._writableState&&(e.on("end",c),e.on("close",c)),e.on("end",p),e.on("finish",l),!1!==t.error&&e.on("error",m),e.on("close",b),function(){e.removeListener("complete",l),e.removeListener("abort",b),e.removeListener("request",g),e.req&&e.req.removeListener("finish",l),e.removeListener("end",c),e.removeListener("close",c),e.removeListener("finish",l),e.removeListener("end",p),e.removeListener("error",m),e.removeListener("close",b)}}e.exports=s},727:function(e,t,r){"use strict";function i(e,t,r,i,n,a,o){try{var s=e[a](o),u=s.value}catch(e){r(e);return}s.done?t(u):Promise.resolve(u).then(i,n)}function n(e){return function(){var t=this,r=arguments;return new Promise(function(n,a){var o=e.apply(t,r);function s(e){i(o,n,a,s,u,"next",e)}function u(e){i(o,n,a,s,u,"throw",e)}s(void 0)})}}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,i)}return r}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach(function(t){s(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var u=r(646).q.ERR_INVALID_ARG_TYPE;e.exports=function(e,t,r){if(t&&"function"==typeof t.next)i=t;else if(t&&t[Symbol.asyncIterator])i=t[Symbol.asyncIterator]();else if(t&&t[Symbol.iterator])i=t[Symbol.iterator]();else throw new u("iterable",["Iterable"],t);var i,a=new e(o({objectMode:!0},r)),s=!1;function f(){return c.apply(this,arguments)}function c(){return(c=n(function*(){try{var e=yield i.next(),t=e.value;e.done?a.push(null):a.push((yield t))?f():s=!1}catch(e){a.destroy(e)}})).apply(this,arguments)}return a._read=function(){s||(s=!0,f())},a}},442:function(e,t,r){"use strict";function i(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var n,a=r(646).q,o=a.ERR_MISSING_ARGS,s=a.ERR_STREAM_DESTROYED;function u(e){if(e)throw e}function f(e){return e.setHeader&&"function"==typeof e.abort}function c(e,t,a,o){o=i(o);var u=!1;e.on("close",function(){u=!0}),void 0===n&&(n=r(698)),n(e,{readable:t,writable:a},function(e){if(e)return o(e);u=!0,o()});var c=!1;return function(t){if(!u&&!c){if(c=!0,f(e))return e.abort();if("function"==typeof e.destroy)return e.destroy();o(t||new s("pipe"))}}}function d(e){e()}function l(e,t){return e.pipe(t)}function h(e){return e.length&&"function"==typeof e[e.length-1]?e.pop():u}e.exports=function(){for(var e,t=arguments.length,r=Array(t),i=0;i<t;i++)r[i]=arguments[i];var n=h(r);if(Array.isArray(r[0])&&(r=r[0]),r.length<2)throw new o("streams");var a=r.map(function(t,i){var o=i<r.length-1;return c(t,o,i>0,function(t){e||(e=t),t&&a.forEach(d),o||(a.forEach(d),n(e))})});return r.reduce(l)}},776:function(e,t,r){"use strict";var i=r(646).q.ERR_INVALID_OPT_VALUE;function n(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}e.exports={getHighWaterMark:function(e,t,r,a){var o=n(t,a,r);if(null!=o){if(!(isFinite(o)&&Math.floor(o)===o)||o<0)throw new i(a?r:"highWaterMark",o);return Math.floor(o)}return e.objectMode?16:16384}}},678:function(e,t,r){e.exports=r(781)},55:function(e,t,r){var i=r(300),n=i.Buffer;function a(e,t){for(var r in e)t[r]=e[r]}function o(e,t,r){return n(e,t,r)}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?e.exports=i:(a(i,t),t.Buffer=o),o.prototype=Object.create(n.prototype),a(n,o),o.from=function(e,t,r){if("number"==typeof e)throw TypeError("Argument must not be a number");return n(e,t,r)},o.alloc=function(e,t,r){if("number"!=typeof e)throw TypeError("Argument must be a number");var i=n(e);return void 0!==t?"string"==typeof r?i.fill(t,r):i.fill(t):i.fill(0),i},o.allocUnsafe=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return n(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return i.SlowBuffer(e)}},173:function(e,t,r){e.exports=n;var i=r(361).EventEmitter;function n(){i.call(this)}r(782)(n,i),n.Readable=r(709),n.Writable=r(337),n.Duplex=r(403),n.Transform=r(170),n.PassThrough=r(889),n.finished=r(698),n.pipeline=r(442),n.Stream=n,n.prototype.pipe=function(e,t){var r=this;function n(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function a(){r.readable&&r.resume&&r.resume()}r.on("data",n),e.on("drain",a),e._isStdio||t&&!1===t.end||(r.on("end",s),r.on("close",u));var o=!1;function s(){o||(o=!0,e.end())}function u(){o||(o=!0,"function"==typeof e.destroy&&e.destroy())}function f(e){if(c(),0===i.listenerCount(this,"error"))throw e}function c(){r.removeListener("data",n),e.removeListener("drain",a),r.removeListener("end",s),r.removeListener("close",u),r.removeListener("error",f),e.removeListener("error",f),r.removeListener("end",c),r.removeListener("close",c),e.removeListener("close",c)}return r.on("error",f),e.on("error",f),r.on("end",c),r.on("close",c),e.on("close",c),e.emit("pipe",r),e}},704:function(e,t,r){"use strict";var i=r(55).Buffer,n=i.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function a(e){var t;if(!e)return"utf8";for(;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function o(e){var t=a(e);if("string"!=typeof t&&(i.isEncoding===n||!n(e)))throw Error("Unknown encoding: "+e);return t||e}function s(e){var t;switch(this.encoding=o(e),this.encoding){case"utf16le":this.text=p,this.end=m,t=4;break;case"utf8":this.fillLast=d,t=4;break;case"base64":this.text=b,this.end=g,t=3;break;default:this.write=v,this.end=y;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=i.allocUnsafe(t)}function u(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function f(e,t,r){var i=t.length-1;if(i<r)return 0;var n=u(t[i]);return n>=0?(n>0&&(e.lastNeed=n-1),n):--i<r||-2===n?0:(n=u(t[i]))>=0?(n>0&&(e.lastNeed=n-2),n):--i<r||-2===n?0:(n=u(t[i]))>=0?(n>0&&(2===n?n=0:e.lastNeed=n-3),n):0}function c(e,t,r){if((192&t[0])!=128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((192&t[1])!=128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(192&t[2])!=128)return e.lastNeed=2,"�"}}function d(e){var t=this.lastTotal-this.lastNeed,r=c(this,e,t);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length)}function l(e,t){var r=f(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var i=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,i),e.toString("utf8",t,i)}function h(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function p(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function m(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function b(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function g(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function v(e){return e.toString(this.encoding)}function y(e){return e&&e.length?this.write(e):""}t.s=s,s.prototype.write=function(e){var t,r;if(0===e.length)return"";if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},s.prototype.end=h,s.prototype.text=l,s.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},769:function(t){function r(t){try{if(!e.g.localStorage)return!1}catch(e){return!1}var r=e.g.localStorage[t];return null!=r&&"true"===String(r).toLowerCase()}t.exports=function e(e,t){if(r("noDeprecation"))return e;var i=!1;return function(){if(!i){if(r("throwDeprecation"))throw Error(t);r("traceDeprecation")?console.trace(t):console.warn(t),i=!0}return e.apply(this,arguments)}}},300:function(t){"use strict";t.exports=e.r(49440)},361:function(t){"use strict";t.exports=e.r(25235)},781:function(t){"use strict";t.exports=e.r(25235).EventEmitter},837:function(t){"use strict";t.exports=e.r(60776)}},n={};function a(e){var t=n[e];if(void 0!==t)return t.exports;var i=n[e]={exports:{}},o=!0;try{r[e](i,i.exports,a),o=!1}finally{o&&delete n[e]}return i.exports}a.ab="/ROOT/node_modules/.pnpm/next@16.2.4_@babel+core@7.29.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/compiled/stream-browserify/",t.exports=a(173)}()},9870,(e,t,r)=>{var i=e.r(49440),n=i.Buffer;function a(e,t){for(var r in e)t[r]=e[r]}function o(e,t,r){return n(e,t,r)}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?t.exports=i:(a(i,r),r.Buffer=o),o.prototype=Object.create(n.prototype),a(n,o),o.from=function(e,t,r){if("number"==typeof e)throw TypeError("Argument must not be a number");return n(e,t,r)},o.alloc=function(e,t,r){if("number"!=typeof e)throw TypeError("Argument must be a number");var i=n(e);return void 0!==t?"string"==typeof r?i.fill(t,r):i.fill(t):i.fill(0),i},o.allocUnsafe=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return n(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return i.SlowBuffer(e)}},24753,(e,t,r)=>{"use strict";var i=e.r(9870).Buffer,n=i.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function a(e){var t;if(!e)return"utf8";for(;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function o(e){var t=a(e);if("string"!=typeof t&&(i.isEncoding===n||!n(e)))throw Error("Unknown encoding: "+e);return t||e}function s(e){var t;switch(this.encoding=o(e),this.encoding){case"utf16le":this.text=p,this.end=m,t=4;break;case"utf8":this.fillLast=d,t=4;break;case"base64":this.text=b,this.end=g,t=3;break;default:this.write=v,this.end=y;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=i.allocUnsafe(t)}function u(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function f(e,t,r){var i=t.length-1;if(i<r)return 0;var n=u(t[i]);return n>=0?(n>0&&(e.lastNeed=n-1),n):--i<r||-2===n?0:(n=u(t[i]))>=0?(n>0&&(e.lastNeed=n-2),n):--i<r||-2===n?0:(n=u(t[i]))>=0?(n>0&&(2===n?n=0:e.lastNeed=n-3),n):0}function c(e,t,r){if((192&t[0])!=128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((192&t[1])!=128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(192&t[2])!=128)return e.lastNeed=2,"�"}}function d(e){var t=this.lastTotal-this.lastNeed,r=c(this,e,t);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length)}function l(e,t){var r=f(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var i=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,i),e.toString("utf8",t,i)}function h(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function p(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function m(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function b(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function g(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function v(e){return e.toString(this.encoding)}function y(e){return e&&e.length?this.write(e):""}r.StringDecoder=s,s.prototype.write=function(e){var t,r;if(0===e.length)return"";if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},s.prototype.end=h,s.prototype.text=l,s.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},26966,(__turbopack_context__,module,exports)=>{!function(){var __webpack_modules__={950:function(__unused_webpack_module,exports){var indexOf=function(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0;r<e.length;r++)if(e[r]===t)return r;return -1},Object_keys=function(e){if(Object.keys)return Object.keys(e);var t=[];for(var r in e)t.push(r);return t},forEach=function(e,t){if(e.forEach)return e.forEach(t);for(var r=0;r<e.length;r++)t(e[r],r,e)},defineProp=function(){try{return Object.defineProperty({},"_",{}),function(e,t,r){Object.defineProperty(e,t,{writable:!0,enumerable:!1,configurable:!0,value:r})}}catch(e){return function(e,t,r){e[t]=r}}}(),globals=["Array","Boolean","Date","Error","EvalError","Function","Infinity","JSON","Math","NaN","Number","Object","RangeError","ReferenceError","RegExp","String","SyntaxError","TypeError","URIError","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"];function Context(){}Context.prototype={};var Script=exports.Script=function(e){if(!(this instanceof Script))return new Script(e);this.code=e};Script.prototype.runInContext=function(e){if(!(e instanceof Context))throw TypeError("needs a 'context' argument.");var t=document.createElement("iframe");t.style||(t.style={}),t.style.display="none",document.body.appendChild(t);var r=t.contentWindow,i=r.eval,n=r.execScript;!i&&n&&(n.call(r,"null"),i=r.eval),forEach(Object_keys(e),function(t){r[t]=e[t]}),forEach(globals,function(t){e[t]&&(r[t]=e[t])});var a=Object_keys(r),o=i.call(r,this.code);return forEach(Object_keys(r),function(t){(t in e||-1===indexOf(a,t))&&(e[t]=r[t])}),forEach(globals,function(t){t in e||defineProp(e,t,r[t])}),document.body.removeChild(t),o},Script.prototype.runInThisContext=function(){return eval(this.code)},Script.prototype.runInNewContext=function(e){var t=Script.createContext(e),r=this.runInContext(t);return e&&forEach(Object_keys(t),function(r){e[r]=t[r]}),r},forEach(Object_keys(Script.prototype),function(e){exports[e]=Script[e]=function(t){var r=Script(t);return r[e].apply(r,[].slice.call(arguments,1))}}),exports.isContext=function(e){return e instanceof Context},exports.createScript=function(e){return exports.Script(e)},exports.createContext=Script.createContext=function(e){var t=new Context;return"object"==typeof e&&forEach(Object_keys(e),function(r){t[r]=e[r]}),t}}};"u">typeof __nccwpck_require__&&(__nccwpck_require__.ab="/ROOT/node_modules/.pnpm/next@16.2.4_@babel+core@7.29.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/compiled/vm-browserify/");var __webpack_exports__={};__webpack_modules__[950](0,__webpack_exports__),module.exports=__webpack_exports__}()},3560,(e,t,r)=>{var i=e.i(53030),n=e.i(8890);!function(){var r={7160:function(e,t,r){var i=t;i.bignum=r(711),i.define=r(495).define,i.base=r(853),i.constants=r(7335),i.decoders=r(6701),i.encoders=r(3418)},495:function(e,t,r){var i=r(7160),n=r(3782);function a(e,t){this.name=e,this.body=t,this.decoders={},this.encoders={}}t.define=function(e,t){return new a(e,t)},a.prototype._createNamed=function(e){var t;try{t=r(6144).runInThisContext("(function "+this.name+"(entity) {\n this._initNamed(entity);\n})")}catch(e){t=function(e){this._initNamed(e)}}return n(t,e),t.prototype._initNamed=function(t){e.call(this,t)},new t(this)},a.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(i.decoders[e])),this.decoders[e]},a.prototype.decode=function(e,t,r){return this._getDecoder(t).decode(e,r)},a.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(i.encoders[e])),this.encoders[e]},a.prototype.encode=function(e,t,r){return this._getEncoder(t).encode(e,r)}},6483:function(e,t,r){var i=r(3782),n=r(853).Reporter,a=r(4300).Buffer;function o(e,t){(n.call(this,t),a.isBuffer(e))?(this.base=e,this.offset=0,this.length=e.length):this.error("Input not Buffer")}function s(e,t){if(Array.isArray(e))this.length=0,this.value=e.map(function(e){return e instanceof s||(e=new s(e,t)),this.length+=e.length,e},this);else if("number"==typeof e){if(!(0<=e&&e<=255))return t.error("non-byte EncoderBuffer value");this.value=e,this.length=1}else if("string"==typeof e)this.value=e,this.length=a.byteLength(e);else{if(!a.isBuffer(e))return t.error("Unsupported type: "+typeof e);this.value=e,this.length=e.length}}i(o,n),t.C=o,o.prototype.save=function(){return{offset:this.offset,reporter:n.prototype.save.call(this)}},o.prototype.restore=function(e){var t=new o(this.base);return t.offset=e.offset,t.length=this.offset,this.offset=e.offset,n.prototype.restore.call(this,e.reporter),t},o.prototype.isEmpty=function(){return this.offset===this.length},o.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")},o.prototype.skip=function(e,t){if(!(this.offset+e<=this.length))return this.error(t||"DecoderBuffer overrun");var r=new o(this.base);return r._reporterState=this._reporterState,r.offset=this.offset,r.length=this.offset+e,this.offset+=e,r},o.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)},t.R=s,s.prototype.join=function(e,t){return e||(e=new a(this.length)),t||(t=0),0===this.length||(Array.isArray(this.value)?this.value.forEach(function(r){r.join(e,t),t+=r.length}):("number"==typeof this.value?e[t]=this.value:"string"==typeof this.value?e.write(this.value,t):a.isBuffer(this.value)&&this.value.copy(e,t),t+=this.length)),e}},853:function(e,t,r){var i=t;i.Reporter=r(1293).b,i.DecoderBuffer=r(6483).C,i.EncoderBuffer=r(6483).R,i.Node=r(9374)},9374:function(e,t,r){var i=r(853).Reporter,n=r(853).EncoderBuffer,a=r(853).DecoderBuffer,o=r(3523),s=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],u=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(s),f=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function c(e,t){var r={};this._baseState=r,r.enc=e,r.parent=t||null,r.children=null,r.tag=null,r.args=null,r.reverseArgs=null,r.choice=null,r.optional=!1,r.any=!1,r.obj=!1,r.use=null,r.useDecoder=null,r.key=null,r.default=null,r.explicit=null,r.implicit=null,r.contains=null,r.parent||(r.children=[],this._wrap())}e.exports=c;var d=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];c.prototype.clone=function(){var e=this._baseState,t={};d.forEach(function(r){t[r]=e[r]});var r=new this.constructor(t.parent);return r._baseState=t,r},c.prototype._wrap=function(){var e=this._baseState;u.forEach(function(t){this[t]=function(){var r=new this.constructor(this);return e.children.push(r),r[t].apply(r,arguments)}},this)},c.prototype._init=function(e){var t=this._baseState;o(null===t.parent),e.call(this),t.children=t.children.filter(function(e){return e._baseState.parent===this},this),o.equal(t.children.length,1,"Root node can have only one child")},c.prototype._useArgs=function(e){var t=this._baseState,r=e.filter(function(e){return e instanceof this.constructor},this);e=e.filter(function(e){return!(e instanceof this.constructor)},this),0!==r.length&&(o(null===t.children),t.children=r,r.forEach(function(e){e._baseState.parent=this},this)),0!==e.length&&(o(null===t.args),t.args=e,t.reverseArgs=e.map(function(e){if("object"!=typeof e||e.constructor!==Object)return e;var t={};return Object.keys(e).forEach(function(r){r==(0|r)&&(r|=0),t[e[r]]=r}),t}))},f.forEach(function(e){c.prototype[e]=function(){throw Error(e+" not implemented for encoding: "+this._baseState.enc)}}),s.forEach(function(e){c.prototype[e]=function(){var t=this._baseState,r=Array.prototype.slice.call(arguments);return o(null===t.tag),t.tag=e,this._useArgs(r),this}}),c.prototype.use=function(e){o(e);var t=this._baseState;return o(null===t.use),t.use=e,this},c.prototype.optional=function(){return this._baseState.optional=!0,this},c.prototype.def=function(e){var t=this._baseState;return o(null===t.default),t.default=e,t.optional=!0,this},c.prototype.explicit=function(e){var t=this._baseState;return o(null===t.explicit&&null===t.implicit),t.explicit=e,this},c.prototype.implicit=function(e){var t=this._baseState;return o(null===t.explicit&&null===t.implicit),t.implicit=e,this},c.prototype.obj=function(){var e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,0!==t.length&&this._useArgs(t),this},c.prototype.key=function(e){var t=this._baseState;return o(null===t.key),t.key=e,this},c.prototype.any=function(){return this._baseState.any=!0,this},c.prototype.choice=function(e){var t=this._baseState;return o(null===t.choice),t.choice=e,this._useArgs(Object.keys(e).map(function(t){return e[t]})),this},c.prototype.contains=function(e){var t=this._baseState;return o(null===t.use),t.contains=e,this},c.prototype._decode=function(e,t){var r,i=this._baseState;if(null===i.parent)return e.wrapResult(i.children[0]._decode(e,t));var n=i.default,o=!0,s=null;if(null!==i.key&&(s=e.enterKey(i.key)),i.optional){var u=null;if(null!==i.explicit?u=i.explicit:null!==i.implicit?u=i.implicit:null!==i.tag&&(u=i.tag),null!==u||i.any){if(o=this._peekTag(e,u,i.any),e.isError(o))return o}else{var f=e.save();try{null===i.choice?this._decodeGeneric(i.tag,e,t):this._decodeChoice(e,t),o=!0}catch(e){o=!1}e.restore(f)}}if(i.obj&&o&&(r=e.enterObject()),o){if(null!==i.explicit){var c=this._decodeTag(e,i.explicit);if(e.isError(c))return c;e=c}var d=e.offset;if(null===i.use&&null===i.choice){if(i.any)var f=e.save();var l=this._decodeTag(e,null!==i.implicit?i.implicit:i.tag,i.any);if(e.isError(l))return l;i.any?n=e.raw(f):e=l}if(t&&t.track&&null!==i.tag&&t.track(e.path(),d,e.length,"tagged"),t&&t.track&&null!==i.tag&&t.track(e.path(),e.offset,e.length,"content"),i.any||(n=null===i.choice?this._decodeGeneric(i.tag,e,t):this._decodeChoice(e,t)),e.isError(n))return n;if(i.any||null!==i.choice||null===i.children||i.children.forEach(function(r){r._decode(e,t)}),i.contains&&("octstr"===i.tag||"bitstr"===i.tag)){var h=new a(n);n=this._getUse(i.contains,e._reporterState.obj)._decode(h,t)}}return i.obj&&o&&(n=e.leaveObject(r)),null!==i.key&&(null!==n||!0===o)?e.leaveKey(s,i.key,n):null!==s&&e.exitKey(s),n},c.prototype._decodeGeneric=function(e,t,r){var i=this._baseState;if("seq"===e||"set"===e)return null;if("seqof"===e||"setof"===e)return this._decodeList(t,e,i.args[0],r);if(/str$/.test(e))return this._decodeStr(t,e,r);if("objid"===e&&i.args)return this._decodeObjid(t,i.args[0],i.args[1],r);if("objid"===e)return this._decodeObjid(t,null,null,r);if("gentime"===e||"utctime"===e)return this._decodeTime(t,e,r);else if("null_"===e)return this._decodeNull(t,r);else if("bool"===e)return this._decodeBool(t,r);else if("objDesc"===e)return this._decodeStr(t,e,r);else if("int"===e||"enum"===e)return this._decodeInt(t,i.args&&i.args[0],r);return null!==i.use?this._getUse(i.use,t._reporterState.obj)._decode(t,r):t.error("unknown tag: "+e)},c.prototype._getUse=function(e,t){var r=this._baseState;return r.useDecoder=this._use(e,t),o(null===r.useDecoder._baseState.parent),r.useDecoder=r.useDecoder._baseState.children[0],r.implicit!==r.useDecoder._baseState.implicit&&(r.useDecoder=r.useDecoder.clone(),r.useDecoder._baseState.implicit=r.implicit),r.useDecoder},c.prototype._decodeChoice=function(e,t){var r=this._baseState,i=null,n=!1;return(Object.keys(r.choice).some(function(a){var o=e.save(),s=r.choice[a];try{var u=s._decode(e,t);if(e.isError(u))return!1;i={type:a,value:u},n=!0}catch(t){return e.restore(o),!1}return!0},this),n)?i:e.error("Choice not matched")},c.prototype._createEncoderBuffer=function(e){return new n(e,this.reporter)},c.prototype._encode=function(e,t,r){var i=this._baseState;if(null===i.default||i.default!==e){var n=this._encodeValue(e,t,r);if(void 0!==n&&!this._skipDefault(n,t,r))return n}},c.prototype._encodeValue=function(e,t,r){var n,a=this._baseState;if(null===a.parent)return a.children[0]._encode(e,t||new i);var n=null;if(this.reporter=t,a.optional&&void 0===e)if(null===a.default)return;else e=a.default;var o=null,s=!1;if(a.any)n=this._createEncoderBuffer(e);else if(a.choice)n=this._encodeChoice(e,t);else if(a.contains)o=this._getUse(a.contains,r)._encode(e,t),s=!0;else if(a.children)o=a.children.map(function(r){if("null_"===r._baseState.tag)return r._encode(null,t,e);if(null===r._baseState.key)return t.error("Child should have a key");var i=t.enterKey(r._baseState.key);if("object"!=typeof e)return t.error("Child expected, but input is not object");var n=r._encode(e[r._baseState.key],t,e);return t.leaveKey(i),n},this).filter(function(e){return e}),o=this._createEncoderBuffer(o);else if("seqof"===a.tag||"setof"===a.tag){if(!(a.args&&1===a.args.length))return t.error("Too many args for : "+a.tag);if(!Array.isArray(e))return t.error("seqof/setof, but data is not Array");var u=this.clone();u._baseState.implicit=null,o=this._createEncoderBuffer(e.map(function(r){var i=this._baseState;return this._getUse(i.args[0],e)._encode(r,t)},u))}else null!==a.use?n=this._getUse(a.use,r)._encode(e,t):(o=this._encodePrimitive(a.tag,e),s=!0);if(!a.any&&null===a.choice){var f=null!==a.implicit?a.implicit:a.tag,c=null===a.implicit?"universal":"context";null===f?null===a.use&&t.error("Tag could be omitted only for .use()"):null===a.use&&(n=this._encodeComposite(f,s,c,o))}return null!==a.explicit&&(n=this._encodeComposite(a.explicit,!1,"context",n)),n},c.prototype._encodeChoice=function(e,t){var r=this._baseState,i=r.choice[e.type];return i||o(!1,e.type+" not found in "+JSON.stringify(Object.keys(r.choice))),i._encode(e.value,t)},c.prototype._encodePrimitive=function(e,t){var r=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if("objid"===e&&r.args)return this._encodeObjid(t,r.reverseArgs[0],r.args[1]);if("objid"===e)return this._encodeObjid(t,null,null);if("gentime"===e||"utctime"===e)return this._encodeTime(t,e);if("null_"===e)return this._encodeNull();else if("int"===e||"enum"===e)return this._encodeInt(t,r.args&&r.reverseArgs[0]);else if("bool"===e)return this._encodeBool(t);else if("objDesc"===e)return this._encodeStr(t,e);else throw Error("Unsupported tag: "+e)},c.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},c.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(e)}},1293:function(e,t,r){var i=r(3782);function n(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function a(e,t){this.path=e,this.rethrow(t)}t.b=n,n.prototype.isError=function(e){return e instanceof a},n.prototype.save=function(){var e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},n.prototype.restore=function(e){var t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},n.prototype.enterKey=function(e){return this._reporterState.path.push(e)},n.prototype.exitKey=function(e){var t=this._reporterState;t.path=t.path.slice(0,e-1)},n.prototype.leaveKey=function(e,t,r){var i=this._reporterState;this.exitKey(e),null!==i.obj&&(i.obj[t]=r)},n.prototype.path=function(){return this._reporterState.path.join("/")},n.prototype.enterObject=function(){var e=this._reporterState,t=e.obj;return e.obj={},t},n.prototype.leaveObject=function(e){var t=this._reporterState,r=t.obj;return t.obj=e,r},n.prototype.error=function(e){var t,r=this._reporterState,i=e instanceof a;if(t=i?e:new a(r.path.map(function(e){return"["+JSON.stringify(e)+"]"}).join(""),e.message||e,e.stack),!r.options.partial)throw t;return i||r.errors.push(t),t},n.prototype.wrapResult=function(e){var t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},i(a,Error),a.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,a),!this.stack)try{throw Error(this.message)}catch(e){this.stack=e.stack}return this}},9791:function(e,t,r){var i=r(7335);t.tagClass={0:"universal",1:"application",2:"context",3:"private"},t.tagClassByName=i._reverse(t.tagClass),t.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},t.tagByName=i._reverse(t.tag)},7335:function(e,t,r){var i=t;i._reverse=function(e){var t={};return Object.keys(e).forEach(function(r){(0|r)==r&&(r|=0),t[e[r]]=r}),t},i.der=r(9791)},2259:function(e,t,r){var i=r(3782),n=r(7160),a=n.base,o=n.bignum,s=n.constants.der;function u(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new f,this.tree._init(e.body)}function f(e){a.Node.call(this,"der",e)}function c(e,t){var r=e.readUInt8(t);if(e.isError(r))return r;var i=s.tagClass[r>>6],n=(32&r)==0;if((31&r)==31){var a=r;for(r=0;(128&a)==128;){if(a=e.readUInt8(t),e.isError(a))return a;r<<=7,r|=127&a}}else r&=31;var o=s.tag[r];return{cls:i,primitive:n,tag:r,tagStr:o}}function d(e,t,r){var i=e.readUInt8(r);if(e.isError(i))return i;if(!t&&128===i)return null;if((128&i)==0)return i;var n=127&i;if(n>4)return e.error("length octect is too long");i=0;for(var a=0;a<n;a++){i<<=8;var o=e.readUInt8(r);if(e.isError(o))return o;i|=o}return i}e.exports=u,u.prototype.decode=function(e,t){return e instanceof a.DecoderBuffer||(e=new a.DecoderBuffer(e,t)),this.tree._decode(e,t)},i(f,a.Node),f.prototype._peekTag=function(e,t,r){if(e.isEmpty())return!1;var i=e.save(),n=c(e,'Failed to peek tag: "'+t+'"');return e.isError(n)?n:(e.restore(i),n.tag===t||n.tagStr===t||n.tagStr+"of"===t||r)},f.prototype._decodeTag=function(e,t,r){var i=c(e,'Failed to decode tag of "'+t+'"');if(e.isError(i))return i;var n=d(e,i.primitive,'Failed to get length of "'+t+'"');if(e.isError(n))return n;if(!r&&i.tag!==t&&i.tagStr!==t&&i.tagStr+"of"!==t)return e.error('Failed to match tag: "'+t+'"');if(i.primitive||null!==n)return e.skip(n,'Failed to match body of: "'+t+'"');var a=e.save(),o=this._skipUntilEnd(e,'Failed to skip indefinite length body: "'+this.tag+'"');return e.isError(o)?o:(n=e.offset-a.offset,e.restore(a),e.skip(n,'Failed to match body of: "'+t+'"'))},f.prototype._skipUntilEnd=function(e,t){for(;;){var r,i=c(e,t);if(e.isError(i))return i;var n=d(e,i.primitive,t);if(e.isError(n))return n;if(r=i.primitive||null!==n?e.skip(n):this._skipUntilEnd(e,t),e.isError(r))return r;if("end"===i.tagStr)break}},f.prototype._decodeList=function(e,t,r,i){for(var n=[];!e.isEmpty();){var a=this._peekTag(e,"end");if(e.isError(a))return a;var o=r.decode(e,"der",i);if(e.isError(o)&&a)break;n.push(o)}return n},f.prototype._decodeStr=function(e,t){if("bitstr"===t){var r=e.readUInt8();return e.isError(r)?r:{unused:r,data:e.raw()}}if("bmpstr"===t){var i=e.raw();if(i.length%2==1)return e.error("Decoding of string type: bmpstr length mismatch");for(var n="",a=0;a<i.length/2;a++)n+=String.fromCharCode(i.readUInt16BE(2*a));return n}if("numstr"===t){var o=e.raw().toString("ascii");return this._isNumstr(o)?o:e.error("Decoding of string type: numstr unsupported characters")}if("octstr"===t)return e.raw();if("objDesc"===t)return e.raw();else if("printstr"===t){var s=e.raw().toString("ascii");return this._isPrintstr(s)?s:e.error("Decoding of string type: printstr unsupported characters")}else if(/str$/.test(t))return e.raw().toString();else return e.error("Decoding of string type: "+t+" unsupported")},f.prototype._decodeObjid=function(e,t,r){for(var i,n=[],a=0;!e.isEmpty();){var o=e.readUInt8();a<<=7,a|=127&o,(128&o)==0&&(n.push(a),a=0)}128&o&&n.push(a);var s=n[0]/40|0,u=n[0]%40;if(i=r?n:[s,u].concat(n.slice(1)),t){var f=t[i.join(" ")];void 0===f&&(f=t[i.join(".")]),void 0!==f&&(i=f)}return i},f.prototype._decodeTime=function(e,t){var r=e.raw().toString();if("gentime"===t)var i=0|r.slice(0,4),n=0|r.slice(4,6),a=0|r.slice(6,8),o=0|r.slice(8,10),s=0|r.slice(10,12),u=0|r.slice(12,14);else{if("utctime"!==t)return e.error("Decoding "+t+" time is not supported yet");var i=0|r.slice(0,2),n=0|r.slice(2,4),a=0|r.slice(4,6),o=0|r.slice(6,8),s=0|r.slice(8,10),u=0|r.slice(10,12);i=i<70?2e3+i:1900+i}return Date.UTC(i,n-1,a,o,s,u,0)},f.prototype._decodeNull=function(e){return null},f.prototype._decodeBool=function(e){var t=e.readUInt8();return e.isError(t)?t:0!==t},f.prototype._decodeInt=function(e,t){var r=new o(e.raw());return t&&(r=t[r.toString(10)]||r),r},f.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getDecoder("der").tree}},6701:function(e,t,r){var i=t;i.der=r(2259),i.pem=r(8527)},8527:function(e,t,r){var i=r(3782),n=r(4300).Buffer,a=r(2259);function o(e){a.call(this,e),this.enc="pem"}i(o,a),e.exports=o,o.prototype.decode=function(e,t){for(var r=e.toString().split(/[\r\n]+/g),i=t.label.toUpperCase(),o=/^-----(BEGIN|END) ([^-]+)-----$/,s=-1,u=-1,f=0;f<r.length;f++){var c=r[f].match(o);if(null!==c&&c[2]===i)if(-1===s){if("BEGIN"!==c[1])break;s=f}else{if("END"!==c[1])break;u=f;break}}if(-1===s||-1===u)throw Error("PEM section not found for: "+i);var d=r.slice(s+1,u).join("");d.replace(/[^a-z0-9\+\/=]+/gi,"");var l=new n(d,"base64");return a.prototype.decode.call(this,l,t)}},7804:function(e,t,r){var i=r(3782),n=r(4300).Buffer,a=r(7160),o=a.base,s=a.constants.der;function u(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new f,this.tree._init(e.body)}function f(e){o.Node.call(this,"der",e)}function c(e){return e<10?"0"+e:e}function d(e,t,r,i){var n;if("seqof"===e?e="seq":"setof"===e&&(e="set"),s.tagByName.hasOwnProperty(e))n=s.tagByName[e];else{if("number"!=typeof e||(0|e)!==e)return i.error("Unknown tag: "+e);n=e}return n>=31?i.error("Multi-octet tag encoding unsupported"):(t||(n|=32),n|=s.tagClassByName[r||"universal"]<<6)}e.exports=u,u.prototype.encode=function(e,t){return this.tree._encode(e,t).join()},i(f,o.Node),f.prototype._encodeComposite=function(e,t,r,i){var a=d(e,t,r,this.reporter);if(i.length<128){var o=new n(2);return o[0]=a,o[1]=i.length,this._createEncoderBuffer([o,i])}for(var s=1,u=i.length;u>=256;u>>=8)s++;var o=new n(2+s);o[0]=a,o[1]=128|s;for(var u=1+s,f=i.length;f>0;u--,f>>=8)o[u]=255&f;return this._createEncoderBuffer([o,i])},f.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){for(var r=new n(2*e.length),i=0;i<e.length;i++)r.writeUInt16BE(e.charCodeAt(i),2*i);return this._createEncoderBuffer(r)}if("numstr"===t)return this._isNumstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: numstr supports only digits and space");if("printstr"===t)return this._isPrintstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark");if(/str$/.test(t))return this._createEncoderBuffer(e);else if("objDesc"===t)return this._createEncoderBuffer(e);else return this.reporter.error("Encoding of string type: "+t+" unsupported")},f.prototype._encodeObjid=function(e,t,r){if("string"==typeof e){if(!t)return this.reporter.error("string objid given, but no values map found");if(!t.hasOwnProperty(e))return this.reporter.error("objid not found in values map");e=t[e].split(/[\s\.]+/g);for(var i=0;i<e.length;i++)e[i]|=0}else if(Array.isArray(e)){e=e.slice();for(var i=0;i<e.length;i++)e[i]|=0}if(!Array.isArray(e))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(e));if(!r){if(e[1]>=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}for(var a=0,i=0;i<e.length;i++){var o=e[i];for(a++;o>=128;o>>=7)a++}for(var s=new n(a),u=s.length-1,i=e.length-1;i>=0;i--){var o=e[i];for(s[u--]=127&o;(o>>=7)>0;)s[u--]=128|127&o}return this._createEncoderBuffer(s)},f.prototype._encodeTime=function(e,t){var r,i=new Date(e);return"gentime"===t?r=""+c(i.getFullYear())+c(i.getUTCMonth()+1)+c(i.getUTCDate())+c(i.getUTCHours())+c(i.getUTCMinutes())+c(i.getUTCSeconds())+"Z":"utctime"===t?r=""+c(i.getFullYear()%100)+c(i.getUTCMonth()+1)+c(i.getUTCDate())+c(i.getUTCHours())+c(i.getUTCMinutes())+c(i.getUTCSeconds())+"Z":this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(r,"octstr")},f.prototype._encodeNull=function(){return this._createEncoderBuffer("")},f.prototype._encodeInt=function(e,t){if("string"==typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!=typeof e&&!n.isBuffer(e)){var r=e.toArray();!e.sign&&128&r[0]&&r.unshift(0),e=new n(r)}if(n.isBuffer(e)){var i=e.length;0===e.length&&i++;var a=new n(i);return e.copy(a),0===e.length&&(a[0]=0),this._createEncoderBuffer(a)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);for(var i=1,o=e;o>=256;o>>=8)i++;for(var a=Array(i),o=a.length-1;o>=0;o--)a[o]=255&e,e>>=8;return 128&a[0]&&a.unshift(0),this._createEncoderBuffer(new n(a))},f.prototype._encodeBool=function(e){return this._createEncoderBuffer(255*!!e)},f.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},f.prototype._skipDefault=function(e,t,r){var i,n=this._baseState;if(null===n.default)return!1;var a=e.join();if(void 0===n.defaultBuffer&&(n.defaultBuffer=this._encodeValue(n.default,t,r).join()),a.length!==n.defaultBuffer.length)return!1;for(i=0;i<a.length;i++)if(a[i]!==n.defaultBuffer[i])return!1;return!0}},3418:function(e,t,r){var i=t;i.der=r(7804),i.pem=r(1564)},1564:function(e,t,r){var i=r(3782),n=r(7804);function a(e){n.call(this,e),this.enc="pem"}i(a,n),e.exports=a,a.prototype.encode=function(e,t){for(var r=n.prototype.encode.call(this,e).toString("base64"),i=["-----BEGIN "+t.label+"-----"],a=0;a<r.length;a+=64)i.push(r.slice(a,a+64));return i.push("-----END "+t.label+"-----"),i.join("\n")}},711:function(e,t,r){!function(e,t){"use strict";function i(e,t){if(!e)throw Error(t||"Assertion failed")}function n(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function a(e,t,r){if(a.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&(("le"===t||"be"===t)&&(r=t,t=10),this._init(e||0,t||10,r||"be"))}"object"==typeof e?e.exports=a:t.BN=a,a.BN=a,a.wordSize=26;try{u=r(4300).Buffer}catch(e){}function o(e,t,r){for(var i=0,n=Math.min(e.length,r),a=t;a<n;a++){var o=e.charCodeAt(a)-48;i<<=4,o>=49&&o<=54?i|=o-49+10:o>=17&&o<=22?i|=o-17+10:i|=15&o}return i}function s(e,t,r,i){for(var n=0,a=Math.min(e.length,r),o=t;o<a;o++){var s=e.charCodeAt(o)-48;n*=i,s>=49?n+=s-49+10:s>=17?n+=s-17+10:n+=s}return n}a.isBN=function(e){return e instanceof a||null!==e&&"object"==typeof e&&e.constructor.wordSize===a.wordSize&&Array.isArray(e.words)},a.max=function(e,t){return e.cmp(t)>0?e:t},a.min=function(e,t){return 0>e.cmp(t)?e:t},a.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),i(t===(0|t)&&t>=2&&t<=36);var n=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&n++,16===t?this._parseHex(e,n):this._parseBase(e,t,n),"-"===e[0]&&(this.negative=1),this.strip(),"le"===r&&this._initArray(this.toArray(),t,r)},a.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<0x4000000?(this.words=[0x3ffffff&e],this.length=1):e<0x10000000000000?(this.words=[0x3ffffff&e,e/0x4000000&0x3ffffff],this.length=2):(i(e<0x20000000000000),this.words=[0x3ffffff&e,e/0x4000000&0x3ffffff,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},a.prototype._initArray=function(e,t,r){if(i("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=Array(this.length);for(var n,a,o=0;o<this.length;o++)this.words[o]=0;var s=0;if("be"===r)for(o=e.length-1,n=0;o>=0;o-=3)a=e[o]|e[o-1]<<8|e[o-2]<<16,this.words[n]|=a<<s&0x3ffffff,this.words[n+1]=a>>>26-s&0x3ffffff,(s+=24)>=26&&(s-=26,n++);else if("le"===r)for(o=0,n=0;o<e.length;o+=3)a=e[o]|e[o+1]<<8|e[o+2]<<16,this.words[n]|=a<<s&0x3ffffff,this.words[n+1]=a>>>26-s&0x3ffffff,(s+=24)>=26&&(s-=26,n++);return this.strip()},a.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=Array(this.length);for(var r,i,n=0;n<this.length;n++)this.words[n]=0;var a=0;for(n=e.length-6,r=0;n>=t;n-=6)i=o(e,n,n+6),this.words[r]|=i<<a&0x3ffffff,this.words[r+1]|=i>>>26-a&4194303,(a+=24)>=26&&(a-=26,r++);n+6!==t&&(i=o(e,t,n+6),this.words[r]|=i<<a&0x3ffffff,this.words[r+1]|=i>>>26-a&4194303),this.strip()},a.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var i=0,n=1;n<=0x3ffffff;n*=t)i++;i--,n=n/t|0;for(var a=e.length-r,o=a%i,u=Math.min(a,a-o)+r,f=0,c=r;c<u;c+=i)f=s(e,c,c+i,t),this.imuln(n),this.words[0]+f<0x4000000?this.words[0]+=f:this._iaddn(f);if(0!==o){var d=1;for(f=s(e,c,e.length,t),c=0;c<o;c++)d*=t;this.imuln(d),this.words[0]+f<0x4000000?this.words[0]+=f:this._iaddn(f)}},a.prototype.copy=function(e){e.words=Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},a.prototype.clone=function(){var e=new a(null);return this.copy(e),e},a.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},a.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var u,f=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],c=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,0x2000000,0x290d741,0x1000000,0x2e90edd,0x39aa400,0x267bf47,0x1000000,0x290d741,1e7,0x12959c3,0x222c000,0x3bd7765,7529536,0xadcea1,0x1000000,0x1704f61,0x206fc40,0x2cddcf9,64e6,4084101,5153632,6436343,7962624,9765625,0xb54ba0,0xdaf26b,0x1069c00,0x138f9ad,243e5,0x1b4d89f,0x2000000,0x25528a1,0x2b54a20,0x3216b93,0x39aa400];function l(e){for(var t=Array(e.bitLength()),r=0;r<t.length;r++){var i=r/26|0,n=r%26;t[r]=(e.words[i]&1<<n)>>>n}return t}function h(e,t,r){r.negative=t.negative^e.negative;var i=e.length+t.length|0;r.length=i,i=i-1|0;var n=0|e.words[0],a=0|t.words[0],o=n*a,s=0x3ffffff&o,u=o/0x4000000|0;r.words[0]=s;for(var f=1;f<i;f++){for(var c=u>>>26,d=0x3ffffff&u,l=Math.min(f,t.length-1),h=Math.max(0,f-e.length+1);h<=l;h++){var p=f-h|0;c+=(o=(n=0|e.words[p])*(a=0|t.words[h])+d)/0x4000000|0,d=0x3ffffff&o}r.words[f]=0|d,u=0|c}return 0!==u?r.words[f]=0|u:r.length--,r.strip()}a.prototype.toString=function(e,t){if(t=0|t||1,16===(e=e||10)||"hex"===e){for(var r="",n=0,a=0,o=0;o<this.length;o++){var s=this.words[o],u=((s<<n|a)&0xffffff).toString(16);r=0!=(a=s>>>24-n&0xffffff)||o!==this.length-1?f[6-u.length]+u+r:u+r,(n+=2)>=26&&(n-=26,o--)}for(0!==a&&(r=a.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var l=c[e],h=d[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(h).toString(e);r=(p=p.idivn(h)).isZero()?m+r:f[l-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}i(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=0x4000000*this.words[1]:3===this.length&&1===this.words[2]?e+=0x10000000000000+0x4000000*this.words[1]:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(e,t){return i(void 0!==u),this.toArrayLike(u,e,t)},a.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},a.prototype.toArrayLike=function(e,t,r){var n,a,o=this.byteLength(),s=r||Math.max(1,o);i(o<=s,"byte array longer than desired length"),i(s>0,"Requested array length <= 0"),this.strip();var u="le"===t,f=new e(s),c=this.clone();if(u){for(a=0;!c.isZero();a++)n=c.andln(255),c.iushrn(8),f[a]=n;for(;a<s;a++)f[a]=0}else{for(a=0;a<s-o;a++)f[a]=0;for(a=0;!c.isZero();a++)n=c.andln(255),c.iushrn(8),f[s-a-1]=n}return f},Math.clz32?a.prototype._countBits=function(e){return 32-Math.clz32(e)}:a.prototype._countBits=function(e){var t=e,r=0;return t>=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},a.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return(8191&t)==0&&(r+=13,t>>>=13),(127&t)==0&&(r+=7,t>>>=7),(15&t)==0&&(r+=4,t>>>=4),(3&t)==0&&(r+=2,t>>>=2),(1&t)==0&&r++,r},a.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return(this.length-1)*26+t},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var r=this._zeroBits(this.words[t]);if(e+=r,26!==r)break}return e},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},a.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},a.prototype.isNeg=function(){return 0!==this.negative},a.prototype.neg=function(){return this.clone().ineg()},a.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},a.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.strip()},a.prototype.ior=function(e){return i((this.negative|e.negative)==0),this.iuor(e)},a.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},a.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},a.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;r<t.length;r++)this.words[r]=this.words[r]&e.words[r];return this.length=t.length,this.strip()},a.prototype.iand=function(e){return i((this.negative|e.negative)==0),this.iuand(e)},a.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},a.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},a.prototype.iuxor=function(e){this.length>e.length?(t=this,r=e):(t=e,r=this);for(var t,r,i=0;i<r.length;i++)this.words[i]=t.words[i]^r.words[i];if(this!==t)for(;i<t.length;i++)this.words[i]=t.words[i];return this.length=t.length,this.strip()},a.prototype.ixor=function(e){return i((this.negative|e.negative)==0),this.iuxor(e)},a.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},a.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},a.prototype.inotn=function(e){i("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var n=0;n<t;n++)this.words[n]=0x3ffffff&~this.words[n];return r>0&&(this.words[n]=~this.words[n]&0x3ffffff>>26-r),this.strip()},a.prototype.notn=function(e){return this.clone().inotn(e)},a.prototype.setn=function(e,t){i("number"==typeof e&&e>=0);var r=e/26|0,n=e%26;return this._expand(r+1),t?this.words[r]=this.words[r]|1<<n:this.words[r]=this.words[r]&~(1<<n),this.strip()},a.prototype.iadd=function(e){if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(r=this,i=e):(r=e,i=this);for(var t,r,i,n=0,a=0;a<i.length;a++)t=(0|r.words[a])+(0|i.words[a])+n,this.words[a]=0x3ffffff&t,n=t>>>26;for(;0!==n&&a<r.length;a++)t=(0|r.words[a])+n,this.words[a]=0x3ffffff&t,n=t>>>26;if(this.length=r.length,0!==n)this.words[this.length]=n,this.length++;else if(r!==this)for(;a<r.length;a++)this.words[a]=r.words[a];return this},a.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},a.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t,r,i=this.iadd(e);return e.negative=1,i._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n=this.cmp(e);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(t=this,r=e):(t=e,r=this);for(var a=0,o=0;o<r.length;o++)a=(i=(0|t.words[o])-(0|r.words[o])+a)>>26,this.words[o]=0x3ffffff&i;for(;0!==a&&o<t.length;o++)a=(i=(0|t.words[o])+a)>>26,this.words[o]=0x3ffffff&i;if(0===a&&o<t.length&&t!==this)for(;o<t.length;o++)this.words[o]=t.words[o];return this.length=Math.max(this.length,o),t!==this&&(this.negative=1),this.strip()},a.prototype.sub=function(e){return this.clone().isub(e)};var p=function(e,t,r){var i,n,a,o=e.words,s=t.words,u=r.words,f=0,c=0|o[0],d=8191&c,l=c>>>13,h=0|o[1],p=8191&h,m=h>>>13,b=0|o[2],g=8191&b,v=b>>>13,y=0|o[3],_=8191&y,x=y>>>13,w=0|o[4],S=8191&w,k=w>>>13,$=0|o[5],I=8191&$,M=$>>>13,E=0|o[6],A=8191&E,O=E>>>13,j=0|o[7],z=8191&j,U=j>>>13,P=0|o[8],T=8191&P,R=P>>>13,N=0|o[9],D=8191&N,B=N>>>13,Z=0|s[0],C=8191&Z,L=Z>>>13,q=0|s[1],F=8191&q,J=q>>>13,W=0|s[2],K=8191&W,V=W>>>13,G=0|s[3],H=8191&G,X=G>>>13,Y=0|s[4],Q=8191&Y,ee=Y>>>13,et=0|s[5],er=8191&et,ei=et>>>13,en=0|s[6],ea=8191&en,eo=en>>>13,es=0|s[7],eu=8191&es,ef=es>>>13,ec=0|s[8],ed=8191&ec,el=ec>>>13,eh=0|s[9],ep=8191&eh,em=eh>>>13;r.negative=e.negative^t.negative,r.length=19,i=Math.imul(d,C);var eb=(f+i|0)+((8191&(n=(n=Math.imul(d,L))+Math.imul(l,C)|0))<<13)|0;f=((a=Math.imul(l,L))+(n>>>13)|0)+(eb>>>26)|0,eb&=0x3ffffff,i=Math.imul(p,C),n=(n=Math.imul(p,L))+Math.imul(m,C)|0,a=Math.imul(m,L),i=i+Math.imul(d,F)|0;var eg=(f+i|0)+((8191&(n=(n=n+Math.imul(d,J)|0)+Math.imul(l,F)|0))<<13)|0;f=((a=a+Math.imul(l,J)|0)+(n>>>13)|0)+(eg>>>26)|0,eg&=0x3ffffff,i=Math.imul(g,C),n=(n=Math.imul(g,L))+Math.imul(v,C)|0,a=Math.imul(v,L),i=i+Math.imul(p,F)|0,n=(n=n+Math.imul(p,J)|0)+Math.imul(m,F)|0,a=a+Math.imul(m,J)|0,i=i+Math.imul(d,K)|0;var ev=(f+i|0)+((8191&(n=(n=n+Math.imul(d,V)|0)+Math.imul(l,K)|0))<<13)|0;f=((a=a+Math.imul(l,V)|0)+(n>>>13)|0)+(ev>>>26)|0,ev&=0x3ffffff,i=Math.imul(_,C),n=(n=Math.imul(_,L))+Math.imul(x,C)|0,a=Math.imul(x,L),i=i+Math.imul(g,F)|0,n=(n=n+Math.imul(g,J)|0)+Math.imul(v,F)|0,a=a+Math.imul(v,J)|0,i=i+Math.imul(p,K)|0,n=(n=n+Math.imul(p,V)|0)+Math.imul(m,K)|0,a=a+Math.imul(m,V)|0,i=i+Math.imul(d,H)|0;var ey=(f+i|0)+((8191&(n=(n=n+Math.imul(d,X)|0)+Math.imul(l,H)|0))<<13)|0;f=((a=a+Math.imul(l,X)|0)+(n>>>13)|0)+(ey>>>26)|0,ey&=0x3ffffff,i=Math.imul(S,C),n=(n=Math.imul(S,L))+Math.imul(k,C)|0,a=Math.imul(k,L),i=i+Math.imul(_,F)|0,n=(n=n+Math.imul(_,J)|0)+Math.imul(x,F)|0,a=a+Math.imul(x,J)|0,i=i+Math.imul(g,K)|0,n=(n=n+Math.imul(g,V)|0)+Math.imul(v,K)|0,a=a+Math.imul(v,V)|0,i=i+Math.imul(p,H)|0,n=(n=n+Math.imul(p,X)|0)+Math.imul(m,H)|0,a=a+Math.imul(m,X)|0,i=i+Math.imul(d,Q)|0;var e_=(f+i|0)+((8191&(n=(n=n+Math.imul(d,ee)|0)+Math.imul(l,Q)|0))<<13)|0;f=((a=a+Math.imul(l,ee)|0)+(n>>>13)|0)+(e_>>>26)|0,e_&=0x3ffffff,i=Math.imul(I,C),n=(n=Math.imul(I,L))+Math.imul(M,C)|0,a=Math.imul(M,L),i=i+Math.imul(S,F)|0,n=(n=n+Math.imul(S,J)|0)+Math.imul(k,F)|0,a=a+Math.imul(k,J)|0,i=i+Math.imul(_,K)|0,n=(n=n+Math.imul(_,V)|0)+Math.imul(x,K)|0,a=a+Math.imul(x,V)|0,i=i+Math.imul(g,H)|0,n=(n=n+Math.imul(g,X)|0)+Math.imul(v,H)|0,a=a+Math.imul(v,X)|0,i=i+Math.imul(p,Q)|0,n=(n=n+Math.imul(p,ee)|0)+Math.imul(m,Q)|0,a=a+Math.imul(m,ee)|0,i=i+Math.imul(d,er)|0;var ex=(f+i|0)+((8191&(n=(n=n+Math.imul(d,ei)|0)+Math.imul(l,er)|0))<<13)|0;f=((a=a+Math.imul(l,ei)|0)+(n>>>13)|0)+(ex>>>26)|0,ex&=0x3ffffff,i=Math.imul(A,C),n=(n=Math.imul(A,L))+Math.imul(O,C)|0,a=Math.imul(O,L),i=i+Math.imul(I,F)|0,n=(n=n+Math.imul(I,J)|0)+Math.imul(M,F)|0,a=a+Math.imul(M,J)|0,i=i+Math.imul(S,K)|0,n=(n=n+Math.imul(S,V)|0)+Math.imul(k,K)|0,a=a+Math.imul(k,V)|0,i=i+Math.imul(_,H)|0,n=(n=n+Math.imul(_,X)|0)+Math.imul(x,H)|0,a=a+Math.imul(x,X)|0,i=i+Math.imul(g,Q)|0,n=(n=n+Math.imul(g,ee)|0)+Math.imul(v,Q)|0,a=a+Math.imul(v,ee)|0,i=i+Math.imul(p,er)|0,n=(n=n+Math.imul(p,ei)|0)+Math.imul(m,er)|0,a=a+Math.imul(m,ei)|0,i=i+Math.imul(d,ea)|0;var ew=(f+i|0)+((8191&(n=(n=n+Math.imul(d,eo)|0)+Math.imul(l,ea)|0))<<13)|0;f=((a=a+Math.imul(l,eo)|0)+(n>>>13)|0)+(ew>>>26)|0,ew&=0x3ffffff,i=Math.imul(z,C),n=(n=Math.imul(z,L))+Math.imul(U,C)|0,a=Math.imul(U,L),i=i+Math.imul(A,F)|0,n=(n=n+Math.imul(A,J)|0)+Math.imul(O,F)|0,a=a+Math.imul(O,J)|0,i=i+Math.imul(I,K)|0,n=(n=n+Math.imul(I,V)|0)+Math.imul(M,K)|0,a=a+Math.imul(M,V)|0,i=i+Math.imul(S,H)|0,n=(n=n+Math.imul(S,X)|0)+Math.imul(k,H)|0,a=a+Math.imul(k,X)|0,i=i+Math.imul(_,Q)|0,n=(n=n+Math.imul(_,ee)|0)+Math.imul(x,Q)|0,a=a+Math.imul(x,ee)|0,i=i+Math.imul(g,er)|0,n=(n=n+Math.imul(g,ei)|0)+Math.imul(v,er)|0,a=a+Math.imul(v,ei)|0,i=i+Math.imul(p,ea)|0,n=(n=n+Math.imul(p,eo)|0)+Math.imul(m,ea)|0,a=a+Math.imul(m,eo)|0,i=i+Math.imul(d,eu)|0;var eS=(f+i|0)+((8191&(n=(n=n+Math.imul(d,ef)|0)+Math.imul(l,eu)|0))<<13)|0;f=((a=a+Math.imul(l,ef)|0)+(n>>>13)|0)+(eS>>>26)|0,eS&=0x3ffffff,i=Math.imul(T,C),n=(n=Math.imul(T,L))+Math.imul(R,C)|0,a=Math.imul(R,L),i=i+Math.imul(z,F)|0,n=(n=n+Math.imul(z,J)|0)+Math.imul(U,F)|0,a=a+Math.imul(U,J)|0,i=i+Math.imul(A,K)|0,n=(n=n+Math.imul(A,V)|0)+Math.imul(O,K)|0,a=a+Math.imul(O,V)|0,i=i+Math.imul(I,H)|0,n=(n=n+Math.imul(I,X)|0)+Math.imul(M,H)|0,a=a+Math.imul(M,X)|0,i=i+Math.imul(S,Q)|0,n=(n=n+Math.imul(S,ee)|0)+Math.imul(k,Q)|0,a=a+Math.imul(k,ee)|0,i=i+Math.imul(_,er)|0,n=(n=n+Math.imul(_,ei)|0)+Math.imul(x,er)|0,a=a+Math.imul(x,ei)|0,i=i+Math.imul(g,ea)|0,n=(n=n+Math.imul(g,eo)|0)+Math.imul(v,ea)|0,a=a+Math.imul(v,eo)|0,i=i+Math.imul(p,eu)|0,n=(n=n+Math.imul(p,ef)|0)+Math.imul(m,eu)|0,a=a+Math.imul(m,ef)|0,i=i+Math.imul(d,ed)|0;var ek=(f+i|0)+((8191&(n=(n=n+Math.imul(d,el)|0)+Math.imul(l,ed)|0))<<13)|0;f=((a=a+Math.imul(l,el)|0)+(n>>>13)|0)+(ek>>>26)|0,ek&=0x3ffffff,i=Math.imul(D,C),n=(n=Math.imul(D,L))+Math.imul(B,C)|0,a=Math.imul(B,L),i=i+Math.imul(T,F)|0,n=(n=n+Math.imul(T,J)|0)+Math.imul(R,F)|0,a=a+Math.imul(R,J)|0,i=i+Math.imul(z,K)|0,n=(n=n+Math.imul(z,V)|0)+Math.imul(U,K)|0,a=a+Math.imul(U,V)|0,i=i+Math.imul(A,H)|0,n=(n=n+Math.imul(A,X)|0)+Math.imul(O,H)|0,a=a+Math.imul(O,X)|0,i=i+Math.imul(I,Q)|0,n=(n=n+Math.imul(I,ee)|0)+Math.imul(M,Q)|0,a=a+Math.imul(M,ee)|0,i=i+Math.imul(S,er)|0,n=(n=n+Math.imul(S,ei)|0)+Math.imul(k,er)|0,a=a+Math.imul(k,ei)|0,i=i+Math.imul(_,ea)|0,n=(n=n+Math.imul(_,eo)|0)+Math.imul(x,ea)|0,a=a+Math.imul(x,eo)|0,i=i+Math.imul(g,eu)|0,n=(n=n+Math.imul(g,ef)|0)+Math.imul(v,eu)|0,a=a+Math.imul(v,ef)|0,i=i+Math.imul(p,ed)|0,n=(n=n+Math.imul(p,el)|0)+Math.imul(m,ed)|0,a=a+Math.imul(m,el)|0,i=i+Math.imul(d,ep)|0;var e$=(f+i|0)+((8191&(n=(n=n+Math.imul(d,em)|0)+Math.imul(l,ep)|0))<<13)|0;f=((a=a+Math.imul(l,em)|0)+(n>>>13)|0)+(e$>>>26)|0,e$&=0x3ffffff,i=Math.imul(D,F),n=(n=Math.imul(D,J))+Math.imul(B,F)|0,a=Math.imul(B,J),i=i+Math.imul(T,K)|0,n=(n=n+Math.imul(T,V)|0)+Math.imul(R,K)|0,a=a+Math.imul(R,V)|0,i=i+Math.imul(z,H)|0,n=(n=n+Math.imul(z,X)|0)+Math.imul(U,H)|0,a=a+Math.imul(U,X)|0,i=i+Math.imul(A,Q)|0,n=(n=n+Math.imul(A,ee)|0)+Math.imul(O,Q)|0,a=a+Math.imul(O,ee)|0,i=i+Math.imul(I,er)|0,n=(n=n+Math.imul(I,ei)|0)+Math.imul(M,er)|0,a=a+Math.imul(M,ei)|0,i=i+Math.imul(S,ea)|0,n=(n=n+Math.imul(S,eo)|0)+Math.imul(k,ea)|0,a=a+Math.imul(k,eo)|0,i=i+Math.imul(_,eu)|0,n=(n=n+Math.imul(_,ef)|0)+Math.imul(x,eu)|0,a=a+Math.imul(x,ef)|0,i=i+Math.imul(g,ed)|0,n=(n=n+Math.imul(g,el)|0)+Math.imul(v,ed)|0,a=a+Math.imul(v,el)|0,i=i+Math.imul(p,ep)|0;var eI=(f+i|0)+((8191&(n=(n=n+Math.imul(p,em)|0)+Math.imul(m,ep)|0))<<13)|0;f=((a=a+Math.imul(m,em)|0)+(n>>>13)|0)+(eI>>>26)|0,eI&=0x3ffffff,i=Math.imul(D,K),n=(n=Math.imul(D,V))+Math.imul(B,K)|0,a=Math.imul(B,V),i=i+Math.imul(T,H)|0,n=(n=n+Math.imul(T,X)|0)+Math.imul(R,H)|0,a=a+Math.imul(R,X)|0,i=i+Math.imul(z,Q)|0,n=(n=n+Math.imul(z,ee)|0)+Math.imul(U,Q)|0,a=a+Math.imul(U,ee)|0,i=i+Math.imul(A,er)|0,n=(n=n+Math.imul(A,ei)|0)+Math.imul(O,er)|0,a=a+Math.imul(O,ei)|0,i=i+Math.imul(I,ea)|0,n=(n=n+Math.imul(I,eo)|0)+Math.imul(M,ea)|0,a=a+Math.imul(M,eo)|0,i=i+Math.imul(S,eu)|0,n=(n=n+Math.imul(S,ef)|0)+Math.imul(k,eu)|0,a=a+Math.imul(k,ef)|0,i=i+Math.imul(_,ed)|0,n=(n=n+Math.imul(_,el)|0)+Math.imul(x,ed)|0,a=a+Math.imul(x,el)|0,i=i+Math.imul(g,ep)|0;var eM=(f+i|0)+((8191&(n=(n=n+Math.imul(g,em)|0)+Math.imul(v,ep)|0))<<13)|0;f=((a=a+Math.imul(v,em)|0)+(n>>>13)|0)+(eM>>>26)|0,eM&=0x3ffffff,i=Math.imul(D,H),n=(n=Math.imul(D,X))+Math.imul(B,H)|0,a=Math.imul(B,X),i=i+Math.imul(T,Q)|0,n=(n=n+Math.imul(T,ee)|0)+Math.imul(R,Q)|0,a=a+Math.imul(R,ee)|0,i=i+Math.imul(z,er)|0,n=(n=n+Math.imul(z,ei)|0)+Math.imul(U,er)|0,a=a+Math.imul(U,ei)|0,i=i+Math.imul(A,ea)|0,n=(n=n+Math.imul(A,eo)|0)+Math.imul(O,ea)|0,a=a+Math.imul(O,eo)|0,i=i+Math.imul(I,eu)|0,n=(n=n+Math.imul(I,ef)|0)+Math.imul(M,eu)|0,a=a+Math.imul(M,ef)|0,i=i+Math.imul(S,ed)|0,n=(n=n+Math.imul(S,el)|0)+Math.imul(k,ed)|0,a=a+Math.imul(k,el)|0,i=i+Math.imul(_,ep)|0;var eE=(f+i|0)+((8191&(n=(n=n+Math.imul(_,em)|0)+Math.imul(x,ep)|0))<<13)|0;f=((a=a+Math.imul(x,em)|0)+(n>>>13)|0)+(eE>>>26)|0,eE&=0x3ffffff,i=Math.imul(D,Q),n=(n=Math.imul(D,ee))+Math.imul(B,Q)|0,a=Math.imul(B,ee),i=i+Math.imul(T,er)|0,n=(n=n+Math.imul(T,ei)|0)+Math.imul(R,er)|0,a=a+Math.imul(R,ei)|0,i=i+Math.imul(z,ea)|0,n=(n=n+Math.imul(z,eo)|0)+Math.imul(U,ea)|0,a=a+Math.imul(U,eo)|0,i=i+Math.imul(A,eu)|0,n=(n=n+Math.imul(A,ef)|0)+Math.imul(O,eu)|0,a=a+Math.imul(O,ef)|0,i=i+Math.imul(I,ed)|0,n=(n=n+Math.imul(I,el)|0)+Math.imul(M,ed)|0,a=a+Math.imul(M,el)|0,i=i+Math.imul(S,ep)|0;var eA=(f+i|0)+((8191&(n=(n=n+Math.imul(S,em)|0)+Math.imul(k,ep)|0))<<13)|0;f=((a=a+Math.imul(k,em)|0)+(n>>>13)|0)+(eA>>>26)|0,eA&=0x3ffffff,i=Math.imul(D,er),n=(n=Math.imul(D,ei))+Math.imul(B,er)|0,a=Math.imul(B,ei),i=i+Math.imul(T,ea)|0,n=(n=n+Math.imul(T,eo)|0)+Math.imul(R,ea)|0,a=a+Math.imul(R,eo)|0,i=i+Math.imul(z,eu)|0,n=(n=n+Math.imul(z,ef)|0)+Math.imul(U,eu)|0,a=a+Math.imul(U,ef)|0,i=i+Math.imul(A,ed)|0,n=(n=n+Math.imul(A,el)|0)+Math.imul(O,ed)|0,a=a+Math.imul(O,el)|0,i=i+Math.imul(I,ep)|0;var eO=(f+i|0)+((8191&(n=(n=n+Math.imul(I,em)|0)+Math.imul(M,ep)|0))<<13)|0;f=((a=a+Math.imul(M,em)|0)+(n>>>13)|0)+(eO>>>26)|0,eO&=0x3ffffff,i=Math.imul(D,ea),n=(n=Math.imul(D,eo))+Math.imul(B,ea)|0,a=Math.imul(B,eo),i=i+Math.imul(T,eu)|0,n=(n=n+Math.imul(T,ef)|0)+Math.imul(R,eu)|0,a=a+Math.imul(R,ef)|0,i=i+Math.imul(z,ed)|0,n=(n=n+Math.imul(z,el)|0)+Math.imul(U,ed)|0,a=a+Math.imul(U,el)|0,i=i+Math.imul(A,ep)|0;var ej=(f+i|0)+((8191&(n=(n=n+Math.imul(A,em)|0)+Math.imul(O,ep)|0))<<13)|0;f=((a=a+Math.imul(O,em)|0)+(n>>>13)|0)+(ej>>>26)|0,ej&=0x3ffffff,i=Math.imul(D,eu),n=(n=Math.imul(D,ef))+Math.imul(B,eu)|0,a=Math.imul(B,ef),i=i+Math.imul(T,ed)|0,n=(n=n+Math.imul(T,el)|0)+Math.imul(R,ed)|0,a=a+Math.imul(R,el)|0,i=i+Math.imul(z,ep)|0;var ez=(f+i|0)+((8191&(n=(n=n+Math.imul(z,em)|0)+Math.imul(U,ep)|0))<<13)|0;f=((a=a+Math.imul(U,em)|0)+(n>>>13)|0)+(ez>>>26)|0,ez&=0x3ffffff,i=Math.imul(D,ed),n=(n=Math.imul(D,el))+Math.imul(B,ed)|0,a=Math.imul(B,el),i=i+Math.imul(T,ep)|0;var eU=(f+i|0)+((8191&(n=(n=n+Math.imul(T,em)|0)+Math.imul(R,ep)|0))<<13)|0;f=((a=a+Math.imul(R,em)|0)+(n>>>13)|0)+(eU>>>26)|0,eU&=0x3ffffff,i=Math.imul(D,ep);var eP=(f+i|0)+((8191&(n=(n=Math.imul(D,em))+Math.imul(B,ep)|0))<<13)|0;return f=((a=Math.imul(B,em))+(n>>>13)|0)+(eP>>>26)|0,eP&=0x3ffffff,u[0]=eb,u[1]=eg,u[2]=ev,u[3]=ey,u[4]=e_,u[5]=ex,u[6]=ew,u[7]=eS,u[8]=ek,u[9]=e$,u[10]=eI,u[11]=eM,u[12]=eE,u[13]=eA,u[14]=eO,u[15]=ej,u[16]=ez,u[17]=eU,u[18]=eP,0!==f&&(u[19]=f,r.length++),r};function m(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var i=0,n=0,a=0;a<r.length-1;a++){var o=n;n=0;for(var s=0x3ffffff&i,u=Math.min(a,t.length-1),f=Math.max(0,a-e.length+1);f<=u;f++){var c=a-f,d=(0|e.words[c])*(0|t.words[f]),l=0x3ffffff&d;o=o+(d/0x4000000|0)|0,s=0x3ffffff&(l=l+s|0),n+=(o=o+(l>>>26)|0)>>>26,o&=0x3ffffff}r.words[a]=s,i=o,o=n}return 0!==i?r.words[a]=i:r.length--,r.strip()}function b(e,t,r){return(new g).mulp(e,t,r)}function g(e,t){this.x=e,this.y=t}Math.imul||(p=h),a.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?p(this,e,t):r<63?h(this,e,t):r<1024?m(this,e,t):b(this,e,t)},g.prototype.makeRBT=function(e){for(var t=Array(e),r=a.prototype._countBits(e)-1,i=0;i<e;i++)t[i]=this.revBin(i,r,e);return t},g.prototype.revBin=function(e,t,r){if(0===e||e===r-1)return e;for(var i=0,n=0;n<t;n++)i|=(1&e)<<t-n-1,e>>=1;return i},g.prototype.permute=function(e,t,r,i,n,a){for(var o=0;o<a;o++)i[o]=t[e[o]],n[o]=r[e[o]]},g.prototype.transform=function(e,t,r,i,n,a){this.permute(a,e,t,r,i,n);for(var o=1;o<n;o<<=1)for(var s=o<<1,u=Math.cos(2*Math.PI/s),f=Math.sin(2*Math.PI/s),c=0;c<n;c+=s)for(var d=u,l=f,h=0;h<o;h++){var p=r[c+h],m=i[c+h],b=r[c+h+o],g=i[c+h+o],v=d*b-l*g;g=d*g+l*b,b=v,r[c+h]=p+b,i[c+h]=m+g,r[c+h+o]=p-b,i[c+h+o]=m-g,h!==s&&(v=u*d-f*l,l=u*l+f*d,d=v)}},g.prototype.guessLen13b=function(e,t){var r=1|Math.max(t,e),i=1&r,n=0;for(r=r/2|0;r;r>>>=1)n++;return 1<<n+1+i},g.prototype.conjugate=function(e,t,r){if(!(r<=1))for(var i=0;i<r/2;i++){var n=e[i];e[i]=e[r-i-1],e[r-i-1]=n,n=t[i],t[i]=-t[r-i-1],t[r-i-1]=-n}},g.prototype.normalize13b=function(e,t){for(var r=0,i=0;i<t/2;i++){var n=8192*Math.round(e[2*i+1]/t)+Math.round(e[2*i]/t)+r;e[i]=0x3ffffff&n,r=n<0x4000000?0:n/0x4000000|0}return e},g.prototype.convert13b=function(e,t,r,n){for(var a=0,o=0;o<t;o++)a+=0|e[o],r[2*o]=8191&a,a>>>=13,r[2*o+1]=8191&a,a>>>=13;for(o=2*t;o<n;++o)r[o]=0;i(0===a),i((-8192&a)==0)},g.prototype.stub=function(e){for(var t=Array(e),r=0;r<e;r++)t[r]=0;return t},g.prototype.mulp=function(e,t,r){var i=2*this.guessLen13b(e.length,t.length),n=this.makeRBT(i),a=this.stub(i),o=Array(i),s=Array(i),u=Array(i),f=Array(i),c=Array(i),d=Array(i),l=r.words;l.length=i,this.convert13b(e.words,e.length,o,i),this.convert13b(t.words,t.length,f,i),this.transform(o,a,s,u,i,n),this.transform(f,a,c,d,i,n);for(var h=0;h<i;h++){var p=s[h]*c[h]-u[h]*d[h];u[h]=s[h]*d[h]+u[h]*c[h],s[h]=p}return this.conjugate(s,u,i),this.transform(s,u,l,a,i,n),this.conjugate(l,a,i),this.normalize13b(l,i),r.negative=e.negative^t.negative,r.length=e.length+t.length,r.strip()},a.prototype.mul=function(e){var t=new a(null);return t.words=Array(this.length+e.length),this.mulTo(e,t)},a.prototype.mulf=function(e){var t=new a(null);return t.words=Array(this.length+e.length),b(this,e,t)},a.prototype.imul=function(e){return this.clone().mulTo(e,this)},a.prototype.imuln=function(e){i("number"==typeof e),i(e<0x4000000);for(var t=0,r=0;r<this.length;r++){var n=(0|this.words[r])*e,a=(0x3ffffff&n)+(0x3ffffff&t);t>>=26,t+=(n/0x4000000|0)+(a>>>26),this.words[r]=0x3ffffff&a}return 0!==t&&(this.words[r]=t,this.length++),this},a.prototype.muln=function(e){return this.clone().imuln(e)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(e){var t=l(e);if(0===t.length)return new a(1);for(var r=this,i=0;i<t.length&&0===t[i];i++,r=r.sqr());if(++i<t.length)for(var n=r.sqr();i<t.length;i++,n=n.sqr())0!==t[i]&&(r=r.mul(n));return r},a.prototype.iushln=function(e){i("number"==typeof e&&e>=0);var t,r=e%26,n=(e-r)/26,a=0x3ffffff>>>26-r<<26-r;if(0!==r){var o=0;for(t=0;t<this.length;t++){var s=this.words[t]&a,u=(0|this.words[t])-s<<r;this.words[t]=u|o,o=s>>>26-r}o&&(this.words[t]=o,this.length++)}if(0!==n){for(t=this.length-1;t>=0;t--)this.words[t+n]=this.words[t];for(t=0;t<n;t++)this.words[t]=0;this.length+=n}return this.strip()},a.prototype.ishln=function(e){return i(0===this.negative),this.iushln(e)},a.prototype.iushrn=function(e,t,r){i("number"==typeof e&&e>=0);var n=t?(t-t%26)/26:0,a=e%26,o=Math.min((e-a)/26,this.length),s=0x3ffffff^0x3ffffff>>>a<<a,u=r;if(n-=o,n=Math.max(0,n),u){for(var f=0;f<o;f++)u.words[f]=this.words[f];u.length=o}if(0===o);else if(this.length>o)for(this.length-=o,f=0;f<this.length;f++)this.words[f]=this.words[f+o];else this.words[0]=0,this.length=1;var c=0;for(f=this.length-1;f>=0&&(0!==c||f>=n);f--){var d=0|this.words[f];this.words[f]=c<<26-a|d>>>a,c=d&s}return u&&0!==c&&(u.words[u.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(e,t,r){return i(0===this.negative),this.iushrn(e,t,r)},a.prototype.shln=function(e){return this.clone().ishln(e)},a.prototype.ushln=function(e){return this.clone().iushln(e)},a.prototype.shrn=function(e){return this.clone().ishrn(e)},a.prototype.ushrn=function(e){return this.clone().iushrn(e)},a.prototype.testn=function(e){i("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,n=1<<t;return!(this.length<=r)&&!!(this.words[r]&n)},a.prototype.imaskn=function(e){i("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26;if(i(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var n=0x3ffffff^0x3ffffff>>>t<<t;this.words[this.length-1]&=n}return this.strip()},a.prototype.maskn=function(e){return this.clone().imaskn(e)},a.prototype.iaddn=function(e){return(i("number"==typeof e),i(e<0x4000000),e<0)?this.isubn(-e):0!==this.negative?(1===this.length&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0):(this.negative=0,this.isubn(e),this.negative=1),this):this._iaddn(e)},a.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=0x4000000;t++)this.words[t]-=0x4000000,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},a.prototype.isubn=function(e){if(i("number"==typeof e),i(e<0x4000000),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=0x4000000,this.words[t+1]-=1;return this.strip()},a.prototype.addn=function(e){return this.clone().iaddn(e)},a.prototype.subn=function(e){return this.clone().isubn(e)},a.prototype.iabs=function(){return this.negative=0,this},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(e,t,r){var n,a,o=e.length+r;this._expand(o);var s=0;for(n=0;n<e.length;n++){a=(0|this.words[n+r])+s;var u=(0|e.words[n])*t;a-=0x3ffffff&u,s=(a>>26)-(u/0x4000000|0),this.words[n+r]=0x3ffffff&a}for(;n<this.length-r;n++)s=(a=(0|this.words[n+r])+s)>>26,this.words[n+r]=0x3ffffff&a;if(0===s)return this.strip();for(i(-1===s),s=0,n=0;n<this.length;n++)s=(a=-(0|this.words[n])+s)>>26,this.words[n]=0x3ffffff&a;return this.negative=1,this.strip()},a.prototype._wordDiv=function(e,t){var r,i=this.length-e.length,n=this.clone(),o=e,s=0|o.words[o.length-1];0!=(i=26-this._countBits(s))&&(o=o.ushln(i),n.iushln(i),s=0|o.words[o.length-1]);var u=n.length-o.length;if("mod"!==t){(r=new a(null)).length=u+1,r.words=Array(r.length);for(var f=0;f<r.length;f++)r.words[f]=0}var c=n.clone()._ishlnsubmul(o,1,u);0===c.negative&&(n=c,r&&(r.words[u]=1));for(var d=u-1;d>=0;d--){var l=(0|n.words[o.length+d])*0x4000000+(0|n.words[o.length+d-1]);for(l=Math.min(l/s|0,0x3ffffff),n._ishlnsubmul(o,l,d);0!==n.negative;)l--,n.negative=0,n._ishlnsubmul(o,1,d),n.isZero()||(n.negative^=1);r&&(r.words[d]=l)}return r&&r.strip(),n.strip(),"div"!==t&&0!==i&&n.iushrn(i),{div:r||null,mod:n}},a.prototype.divmod=function(e,t,r){var n,o,s;return(i(!e.isZero()),this.isZero())?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(n=s.div.neg()),"div"!==t&&(o=s.mod.neg(),r&&0!==o.negative&&o.iadd(e)),{div:n,mod:o}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(n=s.div.neg()),{div:n,mod:s.mod}):(this.negative&e.negative)!=0?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(o=s.mod.neg(),r&&0!==o.negative&&o.isub(e)),{div:s.div,mod:o}):e.length>this.length||0>this.cmp(e)?{div:new a(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new a(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new a(this.modn(e.words[0]))}:this._wordDiv(e,t)},a.prototype.div=function(e){return this.divmod(e,"div",!1).div},a.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},a.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},a.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,i=e.ushrn(1),n=e.andln(1),a=r.cmp(i);return a<0||1===n&&0===a?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},a.prototype.modn=function(e){i(e<=0x3ffffff);for(var t=0x4000000%e,r=0,n=this.length-1;n>=0;n--)r=(t*r+(0|this.words[n]))%e;return r},a.prototype.idivn=function(e){i(e<=0x3ffffff);for(var t=0,r=this.length-1;r>=0;r--){var n=(0|this.words[r])+0x4000000*t;this.words[r]=n/e|0,t=n%e}return this.strip()},a.prototype.divn=function(e){return this.clone().idivn(e)},a.prototype.egcd=function(e){i(0===e.negative),i(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n=new a(1),o=new a(0),s=new a(0),u=new a(1),f=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++f;for(var c=r.clone(),d=t.clone();!t.isZero();){for(var l=0,h=1;(t.words[0]&h)==0&&l<26;++l,h<<=1);if(l>0)for(t.iushrn(l);l-- >0;)(n.isOdd()||o.isOdd())&&(n.iadd(c),o.isub(d)),n.iushrn(1),o.iushrn(1);for(var p=0,m=1;(r.words[0]&m)==0&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(c),u.isub(d)),s.iushrn(1),u.iushrn(1);t.cmp(r)>=0?(t.isub(r),n.isub(s),o.isub(u)):(r.isub(t),s.isub(n),u.isub(o))}return{a:s,b:u,gcd:r.iushln(f)}},a.prototype._invmp=function(e){i(0===e.negative),i(!e.isZero());var t,r=this,n=e.clone();r=0!==r.negative?r.umod(e):r.clone();for(var o=new a(1),s=new a(0),u=n.clone();r.cmpn(1)>0&&n.cmpn(1)>0;){for(var f=0,c=1;(r.words[0]&c)==0&&f<26;++f,c<<=1);if(f>0)for(r.iushrn(f);f-- >0;)o.isOdd()&&o.iadd(u),o.iushrn(1);for(var d=0,l=1;(n.words[0]&l)==0&&d<26;++d,l<<=1);if(d>0)for(n.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);r.cmp(n)>=0?(r.isub(n),o.isub(s)):(n.isub(r),s.isub(o))}return 0>(t=0===r.cmpn(1)?o:s).cmpn(0)&&t.iadd(e),t},a.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var i=0;t.isEven()&&r.isEven();i++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var n=t.cmp(r);if(n<0){var a=t;t=r,r=a}else if(0===n||0===r.cmpn(1))break;t.isub(r)}return r.iushln(i)},a.prototype.invm=function(e){return this.egcd(e).a.umod(e)},a.prototype.isEven=function(){return(1&this.words[0])==0},a.prototype.isOdd=function(){return(1&this.words[0])==1},a.prototype.andln=function(e){return this.words[0]&e},a.prototype.bincn=function(e){i("number"==typeof e);var t=e%26,r=(e-t)/26,n=1<<t;if(this.length<=r)return this._expand(r+1),this.words[r]|=n,this;for(var a=n,o=r;0!==a&&o<this.length;o++){var s=0|this.words[o];s+=a,a=s>>>26,s&=0x3ffffff,this.words[o]=s}return 0!==a&&(this.words[o]=a,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return -1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)t=1;else{r&&(e=-e),i(e<=0x3ffffff,"Number is too big");var n=0|this.words[0];t=n===e?0:n<e?-1:1}return 0!==this.negative?0|-t:t},a.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return -1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},a.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return -1;for(var t=0,r=this.length-1;r>=0;r--){var i=0|this.words[r],n=0|e.words[r];if(i!==n){i<n?t=-1:i>n&&(t=1);break}}return t},a.prototype.gtn=function(e){return 1===this.cmpn(e)},a.prototype.gt=function(e){return 1===this.cmp(e)},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return -1===this.cmpn(e)},a.prototype.lt=function(e){return -1===this.cmp(e)},a.prototype.lten=function(e){return 0>=this.cmpn(e)},a.prototype.lte=function(e){return 0>=this.cmp(e)},a.prototype.eqn=function(e){return 0===this.cmpn(e)},a.prototype.eq=function(e){return 0===this.cmp(e)},a.red=function(e){return new k(e)},a.prototype.toRed=function(e){return i(!this.red,"Already a number in reduction context"),i(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},a.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return i(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return i(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var v={k256:null,p224:null,p192:null,p25519:null};function y(e,t){this.name=e,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function _(){y.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function x(){y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function S(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function k(e){if("string"==typeof e){var t=a._prime(e);this.m=t.p,this.prime=t}else i(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function $(e){k.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}y.prototype._tmp=function(){var e=new a(null);return e.words=Array(Math.ceil(this.n/13)),e},y.prototype.ireduce=function(e){var t,r=e;do this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength();while(t>this.n)var i=t<this.n?-1:r.ucmp(this.p);return 0===i?(r.words[0]=0,r.length=1):i>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},y.prototype.split=function(e,t){e.iushrn(this.n,0,t)},y.prototype.imulK=function(e){return e.imul(this.k)},n(_,y),_.prototype.split=function(e,t){for(var r=4194303,i=Math.min(e.length,9),n=0;n<i;n++)t.words[n]=e.words[n];if(t.length=i,e.length<=9){e.words[0]=0,e.length=1;return}var a=e.words[9];for(n=10,t.words[t.length++]=a&r;n<e.length;n++){var o=0|e.words[n];e.words[n-10]=(o&r)<<4|a>>>22,a=o}a>>>=22,e.words[n-10]=a,0===a&&e.length>10?e.length-=10:e.length-=9},_.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r<e.length;r++){var i=0|e.words[r];t+=977*i,e.words[r]=0x3ffffff&t,t=64*i+(t/0x4000000|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},n(x,y),n(w,y),n(S,y),S.prototype.imulK=function(e){for(var t=0,r=0;r<e.length;r++){var i=(0|e.words[r])*19+t,n=0x3ffffff&i;i>>>=26,e.words[r]=n,t=i}return 0!==t&&(e.words[e.length++]=t),e},a._prime=function(e){var t;if(v[e])return v[e];if("k256"===e)t=new _;else if("p224"===e)t=new x;else if("p192"===e)t=new w;else if("p25519"===e)t=new S;else throw Error("Unknown prime "+e);return v[e]=t,t},k.prototype._verify1=function(e){i(0===e.negative,"red works only with positives"),i(e.red,"red works only with red numbers")},k.prototype._verify2=function(e,t){i((e.negative|t.negative)==0,"red works only with positives"),i(e.red&&e.red===t.red,"red works only with red numbers")},k.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},k.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},k.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},k.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},k.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r._forceRed(this)},k.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r},k.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},k.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},k.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},k.prototype.isqr=function(e){return this.imul(e,e.clone())},k.prototype.sqr=function(e){return this.mul(e,e)},k.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(i(t%2==1),3===t){var r=this.m.add(new a(1)).iushrn(2);return this.pow(e,r)}for(var n=this.m.subn(1),o=0;!n.isZero()&&0===n.andln(1);)o++,n.iushrn(1);i(!n.isZero());var s=new a(1).toRed(this),u=s.redNeg(),f=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new a(2*c*c).toRed(this);0!==this.pow(c,f).cmp(u);)c.redIAdd(u);for(var d=this.pow(c,n),l=this.pow(e,n.addn(1).iushrn(1)),h=this.pow(e,n),p=o;0!==h.cmp(s);){for(var m=h,b=0;0!==m.cmp(s);b++)m=m.redSqr();i(b<p);var g=this.pow(d,new a(1).iushln(p-b-1));l=l.redMul(g),d=g.redSqr(),h=h.redMul(d),p=b}return l},k.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},k.prototype.pow=function(e,t){if(t.isZero())return new a(1).toRed(this);if(0===t.cmpn(1))return e.clone();var r=4,i=Array(16);i[0]=new a(1).toRed(this),i[1]=e;for(var n=2;n<i.length;n++)i[n]=this.mul(i[n-1],e);var o=i[0],s=0,u=0,f=t.bitLength()%26;for(0===f&&(f=26),n=t.length-1;n>=0;n--){for(var c=t.words[n],d=f-1;d>=0;d--){var l=c>>d&1;if(o!==i[0]&&(o=this.sqr(o)),0===l&&0===s){u=0;continue}s<<=1,s|=l,(++u===r||0===n&&0===d)&&(o=this.mul(o,i[s]),u=0,s=0)}f=26}return o},k.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},k.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},a.mont=function(e){return new $(e)},n($,k),$.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},$.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},$.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=r.isub(i).iushrn(this.shift),a=n;return n.cmp(this.m)>=0?a=n.isub(this.m):0>n.cmpn(0)&&(a=n.iadd(this.m)),a._forceRed(this)},$.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new a(0)._forceRed(this);var r=e.mul(t),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=r.isub(i).iushrn(this.shift),o=n;return n.cmp(this.m)>=0?o=n.isub(this.m):0>n.cmpn(0)&&(o=n.iadd(this.m)),o._forceRed(this)},$.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=r.nmd(e),this)},1670:function(e,t,r){!function(e,t){"use strict";function i(e,t){if(!e)throw Error(t||"Assertion failed")}function n(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function a(e,t,r){if(a.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&(("le"===t||"be"===t)&&(r=t,t=10),this._init(e||0,t||10,r||"be"))}"object"==typeof e?e.exports=a:t.BN=a,a.BN=a,a.wordSize=26;try{c=r(4300).Buffer}catch(e){}function o(e,t,r){for(var n=0,a=Math.min(e.length,r),o=0,s=t;s<a;s++){var u,f=e.charCodeAt(s)-48;n<<=4,n|=u=f>=49&&f<=54?f-49+10:f>=17&&f<=22?f-17+10:f,o|=u}return i(!(240&o),"Invalid character in "+e),n}function s(e,t,r,n){for(var a=0,o=0,s=Math.min(e.length,r),u=t;u<s;u++){var f=e.charCodeAt(u)-48;a*=n,o=f>=49?f-49+10:f>=17?f-17+10:f,i(f>=0&&o<n,"Invalid character"),a+=o}return a}function u(e,t){e.words=t.words,e.length=t.length,e.negative=t.negative,e.red=t.red}function f(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}a.isBN=function(e){return e instanceof a||null!==e&&"object"==typeof e&&e.constructor.wordSize===a.wordSize&&Array.isArray(e.words)},a.max=function(e,t){return e.cmp(t)>0?e:t},a.min=function(e,t){return 0>e.cmp(t)?e:t},a.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),i(t===(0|t)&&t>=2&&t<=36);var n=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&n++,16===t?this._parseHex(e,n):this._parseBase(e,t,n),"-"===e[0]&&(this.negative=1),this._strip(),"le"===r&&this._initArray(this.toArray(),t,r)},a.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<0x4000000?(this.words=[0x3ffffff&e],this.length=1):e<0x10000000000000?(this.words=[0x3ffffff&e,e/0x4000000&0x3ffffff],this.length=2):(i(e<0x20000000000000),this.words=[0x3ffffff&e,e/0x4000000&0x3ffffff,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},a.prototype._initArray=function(e,t,r){if(i("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=Array(this.length);for(var n,a,o=0;o<this.length;o++)this.words[o]=0;var s=0;if("be"===r)for(o=e.length-1,n=0;o>=0;o-=3)a=e[o]|e[o-1]<<8|e[o-2]<<16,this.words[n]|=a<<s&0x3ffffff,this.words[n+1]=a>>>26-s&0x3ffffff,(s+=24)>=26&&(s-=26,n++);else if("le"===r)for(o=0,n=0;o<e.length;o+=3)a=e[o]|e[o+1]<<8|e[o+2]<<16,this.words[n]|=a<<s&0x3ffffff,this.words[n+1]=a>>>26-s&0x3ffffff,(s+=24)>=26&&(s-=26,n++);return this._strip()},a.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=Array(this.length);for(var r,i,n=0;n<this.length;n++)this.words[n]=0;var a=0;for(n=e.length-6,r=0;n>=t;n-=6)i=o(e,n,n+6),this.words[r]|=i<<a&0x3ffffff,this.words[r+1]|=i>>>26-a&4194303,(a+=24)>=26&&(a-=26,r++);n+6!==t&&(i=o(e,t,n+6),this.words[r]|=i<<a&0x3ffffff,this.words[r+1]|=i>>>26-a&4194303),this._strip()},a.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var i=0,n=1;n<=0x3ffffff;n*=t)i++;i--,n=n/t|0;for(var a=e.length-r,o=a%i,u=Math.min(a,a-o)+r,f=0,c=r;c<u;c+=i)f=s(e,c,c+i,t),this.imuln(n),this.words[0]+f<0x4000000?this.words[0]+=f:this._iaddn(f);if(0!==o){var d=1;for(f=s(e,c,e.length,t),c=0;c<o;c++)d*=t;this.imuln(d),this.words[0]+f<0x4000000?this.words[0]+=f:this._iaddn(f)}},a.prototype.copy=function(e){e.words=Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},a.prototype._move=function(e){u(e,this)},a.prototype.clone=function(){var e=new a(null);return this.copy(e),e},a.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},a.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"u">typeof Symbol&&"function"==typeof Symbol.for?a.prototype[Symbol.for("nodejs.util.inspect.custom")]=f:a.prototype.inspect=f;var c,d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],l=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],h=[0,0,0x2000000,0x290d741,0x1000000,0x2e90edd,0x39aa400,0x267bf47,0x1000000,0x290d741,1e7,0x12959c3,0x222c000,0x3bd7765,7529536,0xadcea1,0x1000000,0x1704f61,0x206fc40,0x2cddcf9,64e6,4084101,5153632,6436343,7962624,9765625,0xb54ba0,0xdaf26b,0x1069c00,0x138f9ad,243e5,0x1b4d89f,0x2000000,0x25528a1,0x2b54a20,0x3216b93,0x39aa400];a.prototype.toString=function(e,t){if(t=0|t||1,16===(e=e||10)||"hex"===e){for(var r="",n=0,a=0,o=0;o<this.length;o++){var s=this.words[o],u=((s<<n|a)&0xffffff).toString(16);r=0!=(a=s>>>24-n&0xffffff)||o!==this.length-1?d[6-u.length]+u+r:u+r,(n+=2)>=26&&(n-=26,o--)}for(0!==a&&(r=a.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var f=l[e],c=h[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modrn(c).toString(e);r=(p=p.idivn(c)).isZero()?m+r:d[f-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}i(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=0x4000000*this.words[1]:3===this.length&&1===this.words[2]?e+=0x10000000000000+0x4000000*this.words[1]:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},a.prototype.toJSON=function(){return this.toString(16,2)},c&&(a.prototype.toBuffer=function(e,t){return this.toArrayLike(c,e,t)}),a.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)};var p=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)};function m(e){for(var t=Array(e.bitLength()),r=0;r<t.length;r++){var i=r/26|0,n=r%26;t[r]=e.words[i]>>>n&1}return t}function b(e,t,r){r.negative=t.negative^e.negative;var i=e.length+t.length|0;r.length=i,i=i-1|0;var n=0|e.words[0],a=0|t.words[0],o=n*a,s=0x3ffffff&o,u=o/0x4000000|0;r.words[0]=s;for(var f=1;f<i;f++){for(var c=u>>>26,d=0x3ffffff&u,l=Math.min(f,t.length-1),h=Math.max(0,f-e.length+1);h<=l;h++){var p=f-h|0;c+=(o=(n=0|e.words[p])*(a=0|t.words[h])+d)/0x4000000|0,d=0x3ffffff&o}r.words[f]=0|d,u=0|c}return 0!==u?r.words[f]=0|u:r.length--,r._strip()}a.prototype.toArrayLike=function(e,t,r){this._strip();var n=this.byteLength(),a=r||Math.max(1,n);i(n<=a,"byte array longer than desired length"),i(a>0,"Requested array length <= 0");var o=p(e,a);return this["_toArrayLike"+("le"===t?"LE":"BE")](o,n),o},a.prototype._toArrayLikeLE=function(e,t){for(var r=0,i=0,n=0,a=0;n<this.length;n++){var o=this.words[n]<<a|i;e[r++]=255&o,r<e.length&&(e[r++]=o>>8&255),r<e.length&&(e[r++]=o>>16&255),6===a?(r<e.length&&(e[r++]=o>>24&255),i=0,a=0):(i=o>>>24,a+=2)}if(r<e.length)for(e[r++]=i;r<e.length;)e[r++]=0},a.prototype._toArrayLikeBE=function(e,t){for(var r=e.length-1,i=0,n=0,a=0;n<this.length;n++){var o=this.words[n]<<a|i;e[r--]=255&o,r>=0&&(e[r--]=o>>8&255),r>=0&&(e[r--]=o>>16&255),6===a?(r>=0&&(e[r--]=o>>24&255),i=0,a=0):(i=o>>>24,a+=2)}if(r>=0)for(e[r--]=i;r>=0;)e[r--]=0},Math.clz32?a.prototype._countBits=function(e){return 32-Math.clz32(e)}:a.prototype._countBits=function(e){var t=e,r=0;return t>=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},a.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return(8191&t)==0&&(r+=13,t>>>=13),(127&t)==0&&(r+=7,t>>>=7),(15&t)==0&&(r+=4,t>>>=4),(3&t)==0&&(r+=2,t>>>=2),(1&t)==0&&r++,r},a.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return(this.length-1)*26+t},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var r=this._zeroBits(this.words[t]);if(e+=r,26!==r)break}return e},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},a.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},a.prototype.isNeg=function(){return 0!==this.negative},a.prototype.neg=function(){return this.clone().ineg()},a.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},a.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this._strip()},a.prototype.ior=function(e){return i((this.negative|e.negative)==0),this.iuor(e)},a.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},a.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},a.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;r<t.length;r++)this.words[r]=this.words[r]&e.words[r];return this.length=t.length,this._strip()},a.prototype.iand=function(e){return i((this.negative|e.negative)==0),this.iuand(e)},a.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},a.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},a.prototype.iuxor=function(e){this.length>e.length?(t=this,r=e):(t=e,r=this);for(var t,r,i=0;i<r.length;i++)this.words[i]=t.words[i]^r.words[i];if(this!==t)for(;i<t.length;i++)this.words[i]=t.words[i];return this.length=t.length,this._strip()},a.prototype.ixor=function(e){return i((this.negative|e.negative)==0),this.iuxor(e)},a.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},a.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},a.prototype.inotn=function(e){i("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var n=0;n<t;n++)this.words[n]=0x3ffffff&~this.words[n];return r>0&&(this.words[n]=~this.words[n]&0x3ffffff>>26-r),this._strip()},a.prototype.notn=function(e){return this.clone().inotn(e)},a.prototype.setn=function(e,t){i("number"==typeof e&&e>=0);var r=e/26|0,n=e%26;return this._expand(r+1),t?this.words[r]=this.words[r]|1<<n:this.words[r]=this.words[r]&~(1<<n),this._strip()},a.prototype.iadd=function(e){if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(r=this,i=e):(r=e,i=this);for(var t,r,i,n=0,a=0;a<i.length;a++)t=(0|r.words[a])+(0|i.words[a])+n,this.words[a]=0x3ffffff&t,n=t>>>26;for(;0!==n&&a<r.length;a++)t=(0|r.words[a])+n,this.words[a]=0x3ffffff&t,n=t>>>26;if(this.length=r.length,0!==n)this.words[this.length]=n,this.length++;else if(r!==this)for(;a<r.length;a++)this.words[a]=r.words[a];return this},a.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},a.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t,r,i=this.iadd(e);return e.negative=1,i._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n=this.cmp(e);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(t=this,r=e):(t=e,r=this);for(var a=0,o=0;o<r.length;o++)a=(i=(0|t.words[o])-(0|r.words[o])+a)>>26,this.words[o]=0x3ffffff&i;for(;0!==a&&o<t.length;o++)a=(i=(0|t.words[o])+a)>>26,this.words[o]=0x3ffffff&i;if(0===a&&o<t.length&&t!==this)for(;o<t.length;o++)this.words[o]=t.words[o];return this.length=Math.max(this.length,o),t!==this&&(this.negative=1),this._strip()},a.prototype.sub=function(e){return this.clone().isub(e)};var g=function(e,t,r){var i,n,a,o=e.words,s=t.words,u=r.words,f=0,c=0|o[0],d=8191&c,l=c>>>13,h=0|o[1],p=8191&h,m=h>>>13,b=0|o[2],g=8191&b,v=b>>>13,y=0|o[3],_=8191&y,x=y>>>13,w=0|o[4],S=8191&w,k=w>>>13,$=0|o[5],I=8191&$,M=$>>>13,E=0|o[6],A=8191&E,O=E>>>13,j=0|o[7],z=8191&j,U=j>>>13,P=0|o[8],T=8191&P,R=P>>>13,N=0|o[9],D=8191&N,B=N>>>13,Z=0|s[0],C=8191&Z,L=Z>>>13,q=0|s[1],F=8191&q,J=q>>>13,W=0|s[2],K=8191&W,V=W>>>13,G=0|s[3],H=8191&G,X=G>>>13,Y=0|s[4],Q=8191&Y,ee=Y>>>13,et=0|s[5],er=8191&et,ei=et>>>13,en=0|s[6],ea=8191&en,eo=en>>>13,es=0|s[7],eu=8191&es,ef=es>>>13,ec=0|s[8],ed=8191&ec,el=ec>>>13,eh=0|s[9],ep=8191&eh,em=eh>>>13;r.negative=e.negative^t.negative,r.length=19,i=Math.imul(d,C);var eb=(f+i|0)+((8191&(n=(n=Math.imul(d,L))+Math.imul(l,C)|0))<<13)|0;f=((a=Math.imul(l,L))+(n>>>13)|0)+(eb>>>26)|0,eb&=0x3ffffff,i=Math.imul(p,C),n=(n=Math.imul(p,L))+Math.imul(m,C)|0,a=Math.imul(m,L),i=i+Math.imul(d,F)|0;var eg=(f+i|0)+((8191&(n=(n=n+Math.imul(d,J)|0)+Math.imul(l,F)|0))<<13)|0;f=((a=a+Math.imul(l,J)|0)+(n>>>13)|0)+(eg>>>26)|0,eg&=0x3ffffff,i=Math.imul(g,C),n=(n=Math.imul(g,L))+Math.imul(v,C)|0,a=Math.imul(v,L),i=i+Math.imul(p,F)|0,n=(n=n+Math.imul(p,J)|0)+Math.imul(m,F)|0,a=a+Math.imul(m,J)|0,i=i+Math.imul(d,K)|0;var ev=(f+i|0)+((8191&(n=(n=n+Math.imul(d,V)|0)+Math.imul(l,K)|0))<<13)|0;f=((a=a+Math.imul(l,V)|0)+(n>>>13)|0)+(ev>>>26)|0,ev&=0x3ffffff,i=Math.imul(_,C),n=(n=Math.imul(_,L))+Math.imul(x,C)|0,a=Math.imul(x,L),i=i+Math.imul(g,F)|0,n=(n=n+Math.imul(g,J)|0)+Math.imul(v,F)|0,a=a+Math.imul(v,J)|0,i=i+Math.imul(p,K)|0,n=(n=n+Math.imul(p,V)|0)+Math.imul(m,K)|0,a=a+Math.imul(m,V)|0,i=i+Math.imul(d,H)|0;var ey=(f+i|0)+((8191&(n=(n=n+Math.imul(d,X)|0)+Math.imul(l,H)|0))<<13)|0;f=((a=a+Math.imul(l,X)|0)+(n>>>13)|0)+(ey>>>26)|0,ey&=0x3ffffff,i=Math.imul(S,C),n=(n=Math.imul(S,L))+Math.imul(k,C)|0,a=Math.imul(k,L),i=i+Math.imul(_,F)|0,n=(n=n+Math.imul(_,J)|0)+Math.imul(x,F)|0,a=a+Math.imul(x,J)|0,i=i+Math.imul(g,K)|0,n=(n=n+Math.imul(g,V)|0)+Math.imul(v,K)|0,a=a+Math.imul(v,V)|0,i=i+Math.imul(p,H)|0,n=(n=n+Math.imul(p,X)|0)+Math.imul(m,H)|0,a=a+Math.imul(m,X)|0,i=i+Math.imul(d,Q)|0;var e_=(f+i|0)+((8191&(n=(n=n+Math.imul(d,ee)|0)+Math.imul(l,Q)|0))<<13)|0;f=((a=a+Math.imul(l,ee)|0)+(n>>>13)|0)+(e_>>>26)|0,e_&=0x3ffffff,i=Math.imul(I,C),n=(n=Math.imul(I,L))+Math.imul(M,C)|0,a=Math.imul(M,L),i=i+Math.imul(S,F)|0,n=(n=n+Math.imul(S,J)|0)+Math.imul(k,F)|0,a=a+Math.imul(k,J)|0,i=i+Math.imul(_,K)|0,n=(n=n+Math.imul(_,V)|0)+Math.imul(x,K)|0,a=a+Math.imul(x,V)|0,i=i+Math.imul(g,H)|0,n=(n=n+Math.imul(g,X)|0)+Math.imul(v,H)|0,a=a+Math.imul(v,X)|0,i=i+Math.imul(p,Q)|0,n=(n=n+Math.imul(p,ee)|0)+Math.imul(m,Q)|0,a=a+Math.imul(m,ee)|0,i=i+Math.imul(d,er)|0;var ex=(f+i|0)+((8191&(n=(n=n+Math.imul(d,ei)|0)+Math.imul(l,er)|0))<<13)|0;f=((a=a+Math.imul(l,ei)|0)+(n>>>13)|0)+(ex>>>26)|0,ex&=0x3ffffff,i=Math.imul(A,C),n=(n=Math.imul(A,L))+Math.imul(O,C)|0,a=Math.imul(O,L),i=i+Math.imul(I,F)|0,n=(n=n+Math.imul(I,J)|0)+Math.imul(M,F)|0,a=a+Math.imul(M,J)|0,i=i+Math.imul(S,K)|0,n=(n=n+Math.imul(S,V)|0)+Math.imul(k,K)|0,a=a+Math.imul(k,V)|0,i=i+Math.imul(_,H)|0,n=(n=n+Math.imul(_,X)|0)+Math.imul(x,H)|0,a=a+Math.imul(x,X)|0,i=i+Math.imul(g,Q)|0,n=(n=n+Math.imul(g,ee)|0)+Math.imul(v,Q)|0,a=a+Math.imul(v,ee)|0,i=i+Math.imul(p,er)|0,n=(n=n+Math.imul(p,ei)|0)+Math.imul(m,er)|0,a=a+Math.imul(m,ei)|0,i=i+Math.imul(d,ea)|0;var ew=(f+i|0)+((8191&(n=(n=n+Math.imul(d,eo)|0)+Math.imul(l,ea)|0))<<13)|0;f=((a=a+Math.imul(l,eo)|0)+(n>>>13)|0)+(ew>>>26)|0,ew&=0x3ffffff,i=Math.imul(z,C),n=(n=Math.imul(z,L))+Math.imul(U,C)|0,a=Math.imul(U,L),i=i+Math.imul(A,F)|0,n=(n=n+Math.imul(A,J)|0)+Math.imul(O,F)|0,a=a+Math.imul(O,J)|0,i=i+Math.imul(I,K)|0,n=(n=n+Math.imul(I,V)|0)+Math.imul(M,K)|0,a=a+Math.imul(M,V)|0,i=i+Math.imul(S,H)|0,n=(n=n+Math.imul(S,X)|0)+Math.imul(k,H)|0,a=a+Math.imul(k,X)|0,i=i+Math.imul(_,Q)|0,n=(n=n+Math.imul(_,ee)|0)+Math.imul(x,Q)|0,a=a+Math.imul(x,ee)|0,i=i+Math.imul(g,er)|0,n=(n=n+Math.imul(g,ei)|0)+Math.imul(v,er)|0,a=a+Math.imul(v,ei)|0,i=i+Math.imul(p,ea)|0,n=(n=n+Math.imul(p,eo)|0)+Math.imul(m,ea)|0,a=a+Math.imul(m,eo)|0,i=i+Math.imul(d,eu)|0;var eS=(f+i|0)+((8191&(n=(n=n+Math.imul(d,ef)|0)+Math.imul(l,eu)|0))<<13)|0;f=((a=a+Math.imul(l,ef)|0)+(n>>>13)|0)+(eS>>>26)|0,eS&=0x3ffffff,i=Math.imul(T,C),n=(n=Math.imul(T,L))+Math.imul(R,C)|0,a=Math.imul(R,L),i=i+Math.imul(z,F)|0,n=(n=n+Math.imul(z,J)|0)+Math.imul(U,F)|0,a=a+Math.imul(U,J)|0,i=i+Math.imul(A,K)|0,n=(n=n+Math.imul(A,V)|0)+Math.imul(O,K)|0,a=a+Math.imul(O,V)|0,i=i+Math.imul(I,H)|0,n=(n=n+Math.imul(I,X)|0)+Math.imul(M,H)|0,a=a+Math.imul(M,X)|0,i=i+Math.imul(S,Q)|0,n=(n=n+Math.imul(S,ee)|0)+Math.imul(k,Q)|0,a=a+Math.imul(k,ee)|0,i=i+Math.imul(_,er)|0,n=(n=n+Math.imul(_,ei)|0)+Math.imul(x,er)|0,a=a+Math.imul(x,ei)|0,i=i+Math.imul(g,ea)|0,n=(n=n+Math.imul(g,eo)|0)+Math.imul(v,ea)|0,a=a+Math.imul(v,eo)|0,i=i+Math.imul(p,eu)|0,n=(n=n+Math.imul(p,ef)|0)+Math.imul(m,eu)|0,a=a+Math.imul(m,ef)|0,i=i+Math.imul(d,ed)|0;var ek=(f+i|0)+((8191&(n=(n=n+Math.imul(d,el)|0)+Math.imul(l,ed)|0))<<13)|0;f=((a=a+Math.imul(l,el)|0)+(n>>>13)|0)+(ek>>>26)|0,ek&=0x3ffffff,i=Math.imul(D,C),n=(n=Math.imul(D,L))+Math.imul(B,C)|0,a=Math.imul(B,L),i=i+Math.imul(T,F)|0,n=(n=n+Math.imul(T,J)|0)+Math.imul(R,F)|0,a=a+Math.imul(R,J)|0,i=i+Math.imul(z,K)|0,n=(n=n+Math.imul(z,V)|0)+Math.imul(U,K)|0,a=a+Math.imul(U,V)|0,i=i+Math.imul(A,H)|0,n=(n=n+Math.imul(A,X)|0)+Math.imul(O,H)|0,a=a+Math.imul(O,X)|0,i=i+Math.imul(I,Q)|0,n=(n=n+Math.imul(I,ee)|0)+Math.imul(M,Q)|0,a=a+Math.imul(M,ee)|0,i=i+Math.imul(S,er)|0,n=(n=n+Math.imul(S,ei)|0)+Math.imul(k,er)|0,a=a+Math.imul(k,ei)|0,i=i+Math.imul(_,ea)|0,n=(n=n+Math.imul(_,eo)|0)+Math.imul(x,ea)|0,a=a+Math.imul(x,eo)|0,i=i+Math.imul(g,eu)|0,n=(n=n+Math.imul(g,ef)|0)+Math.imul(v,eu)|0,a=a+Math.imul(v,ef)|0,i=i+Math.imul(p,ed)|0,n=(n=n+Math.imul(p,el)|0)+Math.imul(m,ed)|0,a=a+Math.imul(m,el)|0,i=i+Math.imul(d,ep)|0;var e$=(f+i|0)+((8191&(n=(n=n+Math.imul(d,em)|0)+Math.imul(l,ep)|0))<<13)|0;f=((a=a+Math.imul(l,em)|0)+(n>>>13)|0)+(e$>>>26)|0,e$&=0x3ffffff,i=Math.imul(D,F),n=(n=Math.imul(D,J))+Math.imul(B,F)|0,a=Math.imul(B,J),i=i+Math.imul(T,K)|0,n=(n=n+Math.imul(T,V)|0)+Math.imul(R,K)|0,a=a+Math.imul(R,V)|0,i=i+Math.imul(z,H)|0,n=(n=n+Math.imul(z,X)|0)+Math.imul(U,H)|0,a=a+Math.imul(U,X)|0,i=i+Math.imul(A,Q)|0,n=(n=n+Math.imul(A,ee)|0)+Math.imul(O,Q)|0,a=a+Math.imul(O,ee)|0,i=i+Math.imul(I,er)|0,n=(n=n+Math.imul(I,ei)|0)+Math.imul(M,er)|0,a=a+Math.imul(M,ei)|0,i=i+Math.imul(S,ea)|0,n=(n=n+Math.imul(S,eo)|0)+Math.imul(k,ea)|0,a=a+Math.imul(k,eo)|0,i=i+Math.imul(_,eu)|0,n=(n=n+Math.imul(_,ef)|0)+Math.imul(x,eu)|0,a=a+Math.imul(x,ef)|0,i=i+Math.imul(g,ed)|0,n=(n=n+Math.imul(g,el)|0)+Math.imul(v,ed)|0,a=a+Math.imul(v,el)|0,i=i+Math.imul(p,ep)|0;var eI=(f+i|0)+((8191&(n=(n=n+Math.imul(p,em)|0)+Math.imul(m,ep)|0))<<13)|0;f=((a=a+Math.imul(m,em)|0)+(n>>>13)|0)+(eI>>>26)|0,eI&=0x3ffffff,i=Math.imul(D,K),n=(n=Math.imul(D,V))+Math.imul(B,K)|0,a=Math.imul(B,V),i=i+Math.imul(T,H)|0,n=(n=n+Math.imul(T,X)|0)+Math.imul(R,H)|0,a=a+Math.imul(R,X)|0,i=i+Math.imul(z,Q)|0,n=(n=n+Math.imul(z,ee)|0)+Math.imul(U,Q)|0,a=a+Math.imul(U,ee)|0,i=i+Math.imul(A,er)|0,n=(n=n+Math.imul(A,ei)|0)+Math.imul(O,er)|0,a=a+Math.imul(O,ei)|0,i=i+Math.imul(I,ea)|0,n=(n=n+Math.imul(I,eo)|0)+Math.imul(M,ea)|0,a=a+Math.imul(M,eo)|0,i=i+Math.imul(S,eu)|0,n=(n=n+Math.imul(S,ef)|0)+Math.imul(k,eu)|0,a=a+Math.imul(k,ef)|0,i=i+Math.imul(_,ed)|0,n=(n=n+Math.imul(_,el)|0)+Math.imul(x,ed)|0,a=a+Math.imul(x,el)|0,i=i+Math.imul(g,ep)|0;var eM=(f+i|0)+((8191&(n=(n=n+Math.imul(g,em)|0)+Math.imul(v,ep)|0))<<13)|0;f=((a=a+Math.imul(v,em)|0)+(n>>>13)|0)+(eM>>>26)|0,eM&=0x3ffffff,i=Math.imul(D,H),n=(n=Math.imul(D,X))+Math.imul(B,H)|0,a=Math.imul(B,X),i=i+Math.imul(T,Q)|0,n=(n=n+Math.imul(T,ee)|0)+Math.imul(R,Q)|0,a=a+Math.imul(R,ee)|0,i=i+Math.imul(z,er)|0,n=(n=n+Math.imul(z,ei)|0)+Math.imul(U,er)|0,a=a+Math.imul(U,ei)|0,i=i+Math.imul(A,ea)|0,n=(n=n+Math.imul(A,eo)|0)+Math.imul(O,ea)|0,a=a+Math.imul(O,eo)|0,i=i+Math.imul(I,eu)|0,n=(n=n+Math.imul(I,ef)|0)+Math.imul(M,eu)|0,a=a+Math.imul(M,ef)|0,i=i+Math.imul(S,ed)|0,n=(n=n+Math.imul(S,el)|0)+Math.imul(k,ed)|0,a=a+Math.imul(k,el)|0,i=i+Math.imul(_,ep)|0;var eE=(f+i|0)+((8191&(n=(n=n+Math.imul(_,em)|0)+Math.imul(x,ep)|0))<<13)|0;f=((a=a+Math.imul(x,em)|0)+(n>>>13)|0)+(eE>>>26)|0,eE&=0x3ffffff,i=Math.imul(D,Q),n=(n=Math.imul(D,ee))+Math.imul(B,Q)|0,a=Math.imul(B,ee),i=i+Math.imul(T,er)|0,n=(n=n+Math.imul(T,ei)|0)+Math.imul(R,er)|0,a=a+Math.imul(R,ei)|0,i=i+Math.imul(z,ea)|0,n=(n=n+Math.imul(z,eo)|0)+Math.imul(U,ea)|0,a=a+Math.imul(U,eo)|0,i=i+Math.imul(A,eu)|0,n=(n=n+Math.imul(A,ef)|0)+Math.imul(O,eu)|0,a=a+Math.imul(O,ef)|0,i=i+Math.imul(I,ed)|0,n=(n=n+Math.imul(I,el)|0)+Math.imul(M,ed)|0,a=a+Math.imul(M,el)|0,i=i+Math.imul(S,ep)|0;var eA=(f+i|0)+((8191&(n=(n=n+Math.imul(S,em)|0)+Math.imul(k,ep)|0))<<13)|0;f=((a=a+Math.imul(k,em)|0)+(n>>>13)|0)+(eA>>>26)|0,eA&=0x3ffffff,i=Math.imul(D,er),n=(n=Math.imul(D,ei))+Math.imul(B,er)|0,a=Math.imul(B,ei),i=i+Math.imul(T,ea)|0,n=(n=n+Math.imul(T,eo)|0)+Math.imul(R,ea)|0,a=a+Math.imul(R,eo)|0,i=i+Math.imul(z,eu)|0,n=(n=n+Math.imul(z,ef)|0)+Math.imul(U,eu)|0,a=a+Math.imul(U,ef)|0,i=i+Math.imul(A,ed)|0,n=(n=n+Math.imul(A,el)|0)+Math.imul(O,ed)|0,a=a+Math.imul(O,el)|0,i=i+Math.imul(I,ep)|0;var eO=(f+i|0)+((8191&(n=(n=n+Math.imul(I,em)|0)+Math.imul(M,ep)|0))<<13)|0;f=((a=a+Math.imul(M,em)|0)+(n>>>13)|0)+(eO>>>26)|0,eO&=0x3ffffff,i=Math.imul(D,ea),n=(n=Math.imul(D,eo))+Math.imul(B,ea)|0,a=Math.imul(B,eo),i=i+Math.imul(T,eu)|0,n=(n=n+Math.imul(T,ef)|0)+Math.imul(R,eu)|0,a=a+Math.imul(R,ef)|0,i=i+Math.imul(z,ed)|0,n=(n=n+Math.imul(z,el)|0)+Math.imul(U,ed)|0,a=a+Math.imul(U,el)|0,i=i+Math.imul(A,ep)|0;var ej=(f+i|0)+((8191&(n=(n=n+Math.imul(A,em)|0)+Math.imul(O,ep)|0))<<13)|0;f=((a=a+Math.imul(O,em)|0)+(n>>>13)|0)+(ej>>>26)|0,ej&=0x3ffffff,i=Math.imul(D,eu),n=(n=Math.imul(D,ef))+Math.imul(B,eu)|0,a=Math.imul(B,ef),i=i+Math.imul(T,ed)|0,n=(n=n+Math.imul(T,el)|0)+Math.imul(R,ed)|0,a=a+Math.imul(R,el)|0,i=i+Math.imul(z,ep)|0;var ez=(f+i|0)+((8191&(n=(n=n+Math.imul(z,em)|0)+Math.imul(U,ep)|0))<<13)|0;f=((a=a+Math.imul(U,em)|0)+(n>>>13)|0)+(ez>>>26)|0,ez&=0x3ffffff,i=Math.imul(D,ed),n=(n=Math.imul(D,el))+Math.imul(B,ed)|0,a=Math.imul(B,el),i=i+Math.imul(T,ep)|0;var eU=(f+i|0)+((8191&(n=(n=n+Math.imul(T,em)|0)+Math.imul(R,ep)|0))<<13)|0;f=((a=a+Math.imul(R,em)|0)+(n>>>13)|0)+(eU>>>26)|0,eU&=0x3ffffff,i=Math.imul(D,ep);var eP=(f+i|0)+((8191&(n=(n=Math.imul(D,em))+Math.imul(B,ep)|0))<<13)|0;return f=((a=Math.imul(B,em))+(n>>>13)|0)+(eP>>>26)|0,eP&=0x3ffffff,u[0]=eb,u[1]=eg,u[2]=ev,u[3]=ey,u[4]=e_,u[5]=ex,u[6]=ew,u[7]=eS,u[8]=ek,u[9]=e$,u[10]=eI,u[11]=eM,u[12]=eE,u[13]=eA,u[14]=eO,u[15]=ej,u[16]=ez,u[17]=eU,u[18]=eP,0!==f&&(u[19]=f,r.length++),r};function v(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var i=0,n=0,a=0;a<r.length-1;a++){var o=n;n=0;for(var s=0x3ffffff&i,u=Math.min(a,t.length-1),f=Math.max(0,a-e.length+1);f<=u;f++){var c=a-f,d=(0|e.words[c])*(0|t.words[f]),l=0x3ffffff&d;o=o+(d/0x4000000|0)|0,s=0x3ffffff&(l=l+s|0),n+=(o=o+(l>>>26)|0)>>>26,o&=0x3ffffff}r.words[a]=s,i=o,o=n}return 0!==i?r.words[a]=i:r.length--,r._strip()}function y(e,t,r){return v(e,t,r)}function _(e,t){this.x=e,this.y=t}Math.imul||(g=b),a.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?g(this,e,t):r<63?b(this,e,t):r<1024?v(this,e,t):y(this,e,t)},_.prototype.makeRBT=function(e){for(var t=Array(e),r=a.prototype._countBits(e)-1,i=0;i<e;i++)t[i]=this.revBin(i,r,e);return t},_.prototype.revBin=function(e,t,r){if(0===e||e===r-1)return e;for(var i=0,n=0;n<t;n++)i|=(1&e)<<t-n-1,e>>=1;return i},_.prototype.permute=function(e,t,r,i,n,a){for(var o=0;o<a;o++)i[o]=t[e[o]],n[o]=r[e[o]]},_.prototype.transform=function(e,t,r,i,n,a){this.permute(a,e,t,r,i,n);for(var o=1;o<n;o<<=1)for(var s=o<<1,u=Math.cos(2*Math.PI/s),f=Math.sin(2*Math.PI/s),c=0;c<n;c+=s)for(var d=u,l=f,h=0;h<o;h++){var p=r[c+h],m=i[c+h],b=r[c+h+o],g=i[c+h+o],v=d*b-l*g;g=d*g+l*b,b=v,r[c+h]=p+b,i[c+h]=m+g,r[c+h+o]=p-b,i[c+h+o]=m-g,h!==s&&(v=u*d-f*l,l=u*l+f*d,d=v)}},_.prototype.guessLen13b=function(e,t){var r=1|Math.max(t,e),i=1&r,n=0;for(r=r/2|0;r;r>>>=1)n++;return 1<<n+1+i},_.prototype.conjugate=function(e,t,r){if(!(r<=1))for(var i=0;i<r/2;i++){var n=e[i];e[i]=e[r-i-1],e[r-i-1]=n,n=t[i],t[i]=-t[r-i-1],t[r-i-1]=-n}},_.prototype.normalize13b=function(e,t){for(var r=0,i=0;i<t/2;i++){var n=8192*Math.round(e[2*i+1]/t)+Math.round(e[2*i]/t)+r;e[i]=0x3ffffff&n,r=n<0x4000000?0:n/0x4000000|0}return e},_.prototype.convert13b=function(e,t,r,n){for(var a=0,o=0;o<t;o++)a+=0|e[o],r[2*o]=8191&a,a>>>=13,r[2*o+1]=8191&a,a>>>=13;for(o=2*t;o<n;++o)r[o]=0;i(0===a),i((-8192&a)==0)},_.prototype.stub=function(e){for(var t=Array(e),r=0;r<e;r++)t[r]=0;return t},_.prototype.mulp=function(e,t,r){var i=2*this.guessLen13b(e.length,t.length),n=this.makeRBT(i),a=this.stub(i),o=Array(i),s=Array(i),u=Array(i),f=Array(i),c=Array(i),d=Array(i),l=r.words;l.length=i,this.convert13b(e.words,e.length,o,i),this.convert13b(t.words,t.length,f,i),this.transform(o,a,s,u,i,n),this.transform(f,a,c,d,i,n);for(var h=0;h<i;h++){var p=s[h]*c[h]-u[h]*d[h];u[h]=s[h]*d[h]+u[h]*c[h],s[h]=p}return this.conjugate(s,u,i),this.transform(s,u,l,a,i,n),this.conjugate(l,a,i),this.normalize13b(l,i),r.negative=e.negative^t.negative,r.length=e.length+t.length,r._strip()},a.prototype.mul=function(e){var t=new a(null);return t.words=Array(this.length+e.length),this.mulTo(e,t)},a.prototype.mulf=function(e){var t=new a(null);return t.words=Array(this.length+e.length),y(this,e,t)},a.prototype.imul=function(e){return this.clone().mulTo(e,this)},a.prototype.imuln=function(e){var t=e<0;t&&(e=-e),i("number"==typeof e),i(e<0x4000000);for(var r=0,n=0;n<this.length;n++){var a=(0|this.words[n])*e,o=(0x3ffffff&a)+(0x3ffffff&r);r>>=26,r+=(a/0x4000000|0)+(o>>>26),this.words[n]=0x3ffffff&o}return 0!==r&&(this.words[n]=r,this.length++),t?this.ineg():this},a.prototype.muln=function(e){return this.clone().imuln(e)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(e){var t=m(e);if(0===t.length)return new a(1);for(var r=this,i=0;i<t.length&&0===t[i];i++,r=r.sqr());if(++i<t.length)for(var n=r.sqr();i<t.length;i++,n=n.sqr())0!==t[i]&&(r=r.mul(n));return r},a.prototype.iushln=function(e){i("number"==typeof e&&e>=0);var t,r=e%26,n=(e-r)/26,a=0x3ffffff>>>26-r<<26-r;if(0!==r){var o=0;for(t=0;t<this.length;t++){var s=this.words[t]&a,u=(0|this.words[t])-s<<r;this.words[t]=u|o,o=s>>>26-r}o&&(this.words[t]=o,this.length++)}if(0!==n){for(t=this.length-1;t>=0;t--)this.words[t+n]=this.words[t];for(t=0;t<n;t++)this.words[t]=0;this.length+=n}return this._strip()},a.prototype.ishln=function(e){return i(0===this.negative),this.iushln(e)},a.prototype.iushrn=function(e,t,r){i("number"==typeof e&&e>=0);var n=t?(t-t%26)/26:0,a=e%26,o=Math.min((e-a)/26,this.length),s=0x3ffffff^0x3ffffff>>>a<<a,u=r;if(n-=o,n=Math.max(0,n),u){for(var f=0;f<o;f++)u.words[f]=this.words[f];u.length=o}if(0===o);else if(this.length>o)for(this.length-=o,f=0;f<this.length;f++)this.words[f]=this.words[f+o];else this.words[0]=0,this.length=1;var c=0;for(f=this.length-1;f>=0&&(0!==c||f>=n);f--){var d=0|this.words[f];this.words[f]=c<<26-a|d>>>a,c=d&s}return u&&0!==c&&(u.words[u.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},a.prototype.ishrn=function(e,t,r){return i(0===this.negative),this.iushrn(e,t,r)},a.prototype.shln=function(e){return this.clone().ishln(e)},a.prototype.ushln=function(e){return this.clone().iushln(e)},a.prototype.shrn=function(e){return this.clone().ishrn(e)},a.prototype.ushrn=function(e){return this.clone().iushrn(e)},a.prototype.testn=function(e){i("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,n=1<<t;return!(this.length<=r)&&!!(this.words[r]&n)},a.prototype.imaskn=function(e){i("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26;if(i(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var n=0x3ffffff^0x3ffffff>>>t<<t;this.words[this.length-1]&=n}return this._strip()},a.prototype.maskn=function(e){return this.clone().imaskn(e)},a.prototype.iaddn=function(e){return(i("number"==typeof e),i(e<0x4000000),e<0)?this.isubn(-e):0!==this.negative?(1===this.length&&(0|this.words[0])<=e?(this.words[0]=e-(0|this.words[0]),this.negative=0):(this.negative=0,this.isubn(e),this.negative=1),this):this._iaddn(e)},a.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=0x4000000;t++)this.words[t]-=0x4000000,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},a.prototype.isubn=function(e){if(i("number"==typeof e),i(e<0x4000000),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=0x4000000,this.words[t+1]-=1;return this._strip()},a.prototype.addn=function(e){return this.clone().iaddn(e)},a.prototype.subn=function(e){return this.clone().isubn(e)},a.prototype.iabs=function(){return this.negative=0,this},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(e,t,r){var n,a,o=e.length+r;this._expand(o);var s=0;for(n=0;n<e.length;n++){a=(0|this.words[n+r])+s;var u=(0|e.words[n])*t;a-=0x3ffffff&u,s=(a>>26)-(u/0x4000000|0),this.words[n+r]=0x3ffffff&a}for(;n<this.length-r;n++)s=(a=(0|this.words[n+r])+s)>>26,this.words[n+r]=0x3ffffff&a;if(0===s)return this._strip();for(i(-1===s),s=0,n=0;n<this.length;n++)s=(a=-(0|this.words[n])+s)>>26,this.words[n]=0x3ffffff&a;return this.negative=1,this._strip()},a.prototype._wordDiv=function(e,t){var r,i=this.length-e.length,n=this.clone(),o=e,s=0|o.words[o.length-1];0!=(i=26-this._countBits(s))&&(o=o.ushln(i),n.iushln(i),s=0|o.words[o.length-1]);var u=n.length-o.length;if("mod"!==t){(r=new a(null)).length=u+1,r.words=Array(r.length);for(var f=0;f<r.length;f++)r.words[f]=0}var c=n.clone()._ishlnsubmul(o,1,u);0===c.negative&&(n=c,r&&(r.words[u]=1));for(var d=u-1;d>=0;d--){var l=(0|n.words[o.length+d])*0x4000000+(0|n.words[o.length+d-1]);for(l=Math.min(l/s|0,0x3ffffff),n._ishlnsubmul(o,l,d);0!==n.negative;)l--,n.negative=0,n._ishlnsubmul(o,1,d),n.isZero()||(n.negative^=1);r&&(r.words[d]=l)}return r&&r._strip(),n._strip(),"div"!==t&&0!==i&&n.iushrn(i),{div:r||null,mod:n}},a.prototype.divmod=function(e,t,r){var n,o,s;return(i(!e.isZero()),this.isZero())?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(n=s.div.neg()),"div"!==t&&(o=s.mod.neg(),r&&0!==o.negative&&o.iadd(e)),{div:n,mod:o}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(n=s.div.neg()),{div:n,mod:s.mod}):(this.negative&e.negative)!=0?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(o=s.mod.neg(),r&&0!==o.negative&&o.isub(e)),{div:s.div,mod:o}):e.length>this.length||0>this.cmp(e)?{div:new a(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new a(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new a(this.modrn(e.words[0]))}:this._wordDiv(e,t)},a.prototype.div=function(e){return this.divmod(e,"div",!1).div},a.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},a.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},a.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,i=e.ushrn(1),n=e.andln(1),a=r.cmp(i);return a<0||1===n&&0===a?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},a.prototype.modrn=function(e){var t=e<0;t&&(e=-e),i(e<=0x3ffffff);for(var r=0x4000000%e,n=0,a=this.length-1;a>=0;a--)n=(r*n+(0|this.words[a]))%e;return t?-n:n},a.prototype.modn=function(e){return this.modrn(e)},a.prototype.idivn=function(e){var t=e<0;t&&(e=-e),i(e<=0x3ffffff);for(var r=0,n=this.length-1;n>=0;n--){var a=(0|this.words[n])+0x4000000*r;this.words[n]=a/e|0,r=a%e}return this._strip(),t?this.ineg():this},a.prototype.divn=function(e){return this.clone().idivn(e)},a.prototype.egcd=function(e){i(0===e.negative),i(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n=new a(1),o=new a(0),s=new a(0),u=new a(1),f=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++f;for(var c=r.clone(),d=t.clone();!t.isZero();){for(var l=0,h=1;(t.words[0]&h)==0&&l<26;++l,h<<=1);if(l>0)for(t.iushrn(l);l-- >0;)(n.isOdd()||o.isOdd())&&(n.iadd(c),o.isub(d)),n.iushrn(1),o.iushrn(1);for(var p=0,m=1;(r.words[0]&m)==0&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(c),u.isub(d)),s.iushrn(1),u.iushrn(1);t.cmp(r)>=0?(t.isub(r),n.isub(s),o.isub(u)):(r.isub(t),s.isub(n),u.isub(o))}return{a:s,b:u,gcd:r.iushln(f)}},a.prototype._invmp=function(e){i(0===e.negative),i(!e.isZero());var t,r=this,n=e.clone();r=0!==r.negative?r.umod(e):r.clone();for(var o=new a(1),s=new a(0),u=n.clone();r.cmpn(1)>0&&n.cmpn(1)>0;){for(var f=0,c=1;(r.words[0]&c)==0&&f<26;++f,c<<=1);if(f>0)for(r.iushrn(f);f-- >0;)o.isOdd()&&o.iadd(u),o.iushrn(1);for(var d=0,l=1;(n.words[0]&l)==0&&d<26;++d,l<<=1);if(d>0)for(n.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);r.cmp(n)>=0?(r.isub(n),o.isub(s)):(n.isub(r),s.isub(o))}return 0>(t=0===r.cmpn(1)?o:s).cmpn(0)&&t.iadd(e),t},a.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var i=0;t.isEven()&&r.isEven();i++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var n=t.cmp(r);if(n<0){var a=t;t=r,r=a}else if(0===n||0===r.cmpn(1))break;t.isub(r)}return r.iushln(i)},a.prototype.invm=function(e){return this.egcd(e).a.umod(e)},a.prototype.isEven=function(){return(1&this.words[0])==0},a.prototype.isOdd=function(){return(1&this.words[0])==1},a.prototype.andln=function(e){return this.words[0]&e},a.prototype.bincn=function(e){i("number"==typeof e);var t=e%26,r=(e-t)/26,n=1<<t;if(this.length<=r)return this._expand(r+1),this.words[r]|=n,this;for(var a=n,o=r;0!==a&&o<this.length;o++){var s=0|this.words[o];s+=a,a=s>>>26,s&=0x3ffffff,this.words[o]=s}return 0!==a&&(this.words[o]=a,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return -1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)t=1;else{r&&(e=-e),i(e<=0x3ffffff,"Number is too big");var n=0|this.words[0];t=n===e?0:n<e?-1:1}return 0!==this.negative?0|-t:t},a.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return -1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},a.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return -1;for(var t=0,r=this.length-1;r>=0;r--){var i=0|this.words[r],n=0|e.words[r];if(i!==n){i<n?t=-1:i>n&&(t=1);break}}return t},a.prototype.gtn=function(e){return 1===this.cmpn(e)},a.prototype.gt=function(e){return 1===this.cmp(e)},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return -1===this.cmpn(e)},a.prototype.lt=function(e){return -1===this.cmp(e)},a.prototype.lten=function(e){return 0>=this.cmpn(e)},a.prototype.lte=function(e){return 0>=this.cmp(e)},a.prototype.eqn=function(e){return 0===this.cmpn(e)},a.prototype.eq=function(e){return 0===this.cmp(e)},a.red=function(e){return new M(e)},a.prototype.toRed=function(e){return i(!this.red,"Already a number in reduction context"),i(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},a.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return i(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return i(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var x={k256:null,p224:null,p192:null,p25519:null};function w(e,t){this.name=e,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function S(){w.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function k(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function $(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function I(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function M(e){if("string"==typeof e){var t=a._prime(e);this.m=t.p,this.prime=t}else i(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function E(e){M.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}w.prototype._tmp=function(){var e=new a(null);return e.words=Array(Math.ceil(this.n/13)),e},w.prototype.ireduce=function(e){var t,r=e;do this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength();while(t>this.n)var i=t<this.n?-1:r.ucmp(this.p);return 0===i?(r.words[0]=0,r.length=1):i>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},w.prototype.split=function(e,t){e.iushrn(this.n,0,t)},w.prototype.imulK=function(e){return e.imul(this.k)},n(S,w),S.prototype.split=function(e,t){for(var r=4194303,i=Math.min(e.length,9),n=0;n<i;n++)t.words[n]=e.words[n];if(t.length=i,e.length<=9){e.words[0]=0,e.length=1;return}var a=e.words[9];for(n=10,t.words[t.length++]=a&r;n<e.length;n++){var o=0|e.words[n];e.words[n-10]=(o&r)<<4|a>>>22,a=o}a>>>=22,e.words[n-10]=a,0===a&&e.length>10?e.length-=10:e.length-=9},S.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r<e.length;r++){var i=0|e.words[r];t+=977*i,e.words[r]=0x3ffffff&t,t=64*i+(t/0x4000000|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},n(k,w),n($,w),n(I,w),I.prototype.imulK=function(e){for(var t=0,r=0;r<e.length;r++){var i=(0|e.words[r])*19+t,n=0x3ffffff&i;i>>>=26,e.words[r]=n,t=i}return 0!==t&&(e.words[e.length++]=t),e},a._prime=function(e){var t;if(x[e])return x[e];if("k256"===e)t=new S;else if("p224"===e)t=new k;else if("p192"===e)t=new $;else if("p25519"===e)t=new I;else throw Error("Unknown prime "+e);return x[e]=t,t},M.prototype._verify1=function(e){i(0===e.negative,"red works only with positives"),i(e.red,"red works only with red numbers")},M.prototype._verify2=function(e,t){i((e.negative|t.negative)==0,"red works only with positives"),i(e.red&&e.red===t.red,"red works only with red numbers")},M.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(u(e,e.umod(this.m)._forceRed(this)),e)},M.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},M.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},M.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},M.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r._forceRed(this)},M.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r},M.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},M.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},M.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},M.prototype.isqr=function(e){return this.imul(e,e.clone())},M.prototype.sqr=function(e){return this.mul(e,e)},M.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(i(t%2==1),3===t){var r=this.m.add(new a(1)).iushrn(2);return this.pow(e,r)}for(var n=this.m.subn(1),o=0;!n.isZero()&&0===n.andln(1);)o++,n.iushrn(1);i(!n.isZero());var s=new a(1).toRed(this),u=s.redNeg(),f=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new a(2*c*c).toRed(this);0!==this.pow(c,f).cmp(u);)c.redIAdd(u);for(var d=this.pow(c,n),l=this.pow(e,n.addn(1).iushrn(1)),h=this.pow(e,n),p=o;0!==h.cmp(s);){for(var m=h,b=0;0!==m.cmp(s);b++)m=m.redSqr();i(b<p);var g=this.pow(d,new a(1).iushln(p-b-1));l=l.redMul(g),d=g.redSqr(),h=h.redMul(d),p=b}return l},M.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},M.prototype.pow=function(e,t){if(t.isZero())return new a(1).toRed(this);if(0===t.cmpn(1))return e.clone();var r=4,i=Array(16);i[0]=new a(1).toRed(this),i[1]=e;for(var n=2;n<i.length;n++)i[n]=this.mul(i[n-1],e);var o=i[0],s=0,u=0,f=t.bitLength()%26;for(0===f&&(f=26),n=t.length-1;n>=0;n--){for(var c=t.words[n],d=f-1;d>=0;d--){var l=c>>d&1;if(o!==i[0]&&(o=this.sqr(o)),0===l&&0===s){u=0;continue}s<<=1,s|=l,(++u===r||0===n&&0===d)&&(o=this.mul(o,i[s]),u=0,s=0)}f=26}return o},M.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},M.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},a.mont=function(e){return new E(e)},n(E,M),E.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},E.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},E.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=r.isub(i).iushrn(this.shift),a=n;return n.cmp(this.m)>=0?a=n.isub(this.m):0>n.cmpn(0)&&(a=n.iadd(this.m)),a._forceRed(this)},E.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new a(0)._forceRed(this);var r=e.mul(t),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=r.isub(i).iushrn(this.shift),o=n;return n.cmp(this.m)>=0?o=n.isub(this.m):0>n.cmpn(0)&&(o=n.iadd(this.m)),o._forceRed(this)},E.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=r.nmd(e),this)},3500:function(e,t,r){var i;function n(e){this.rand=e}if(e.exports=function(e){return i||(i=new n(null)),i.generate(e)},e.exports.Rand=n,n.prototype.generate=function(e){return this._rand(e)},n.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),r=0;r<t.length;r++)t[r]=this.rand.getByte();return t},"object"==typeof self)self.crypto&&self.crypto.getRandomValues?n.prototype._rand=function(e){var t=new Uint8Array(e);return self.crypto.getRandomValues(t),t}:self.msCrypto&&self.msCrypto.getRandomValues?n.prototype._rand=function(e){var t=new Uint8Array(e);return self.msCrypto.getRandomValues(t),t}:"object"==typeof window&&(n.prototype._rand=function(){throw Error("Not implemented yet")});else try{var a=r(6113);if("function"!=typeof a.randomBytes)throw Error("Not supported");n.prototype._rand=function(e){return a.randomBytes(e)}}catch(e){}},1387:function(e,t,r){var i=r(6911).Buffer;function n(e){i.isBuffer(e)||(e=i.from(e));for(var t=e.length/4|0,r=Array(t),n=0;n<t;n++)r[n]=e.readUInt32BE(4*n);return r}function a(e){for(var t=0;t<e.length;e++)e[t]=0}function o(e,t,r,i,n){for(var a,o,s,u,f=r[0],c=r[1],d=r[2],l=r[3],h=e[0]^t[0],p=e[1]^t[1],m=e[2]^t[2],b=e[3]^t[3],g=4,v=1;v<n;v++)a=f[h>>>24]^c[p>>>16&255]^d[m>>>8&255]^l[255&b]^t[g++],o=f[p>>>24]^c[m>>>16&255]^d[b>>>8&255]^l[255&h]^t[g++],s=f[m>>>24]^c[b>>>16&255]^d[h>>>8&255]^l[255&p]^t[g++],u=f[b>>>24]^c[h>>>16&255]^d[p>>>8&255]^l[255&m]^t[g++],h=a,p=o,m=s,b=u;return a=(i[h>>>24]<<24|i[p>>>16&255]<<16|i[m>>>8&255]<<8|i[255&b])^t[g++],o=(i[p>>>24]<<24|i[m>>>16&255]<<16|i[b>>>8&255]<<8|i[255&h])^t[g++],s=(i[m>>>24]<<24|i[b>>>16&255]<<16|i[h>>>8&255]<<8|i[255&p])^t[g++],[a>>>=0,o>>>=0,s>>>=0,u=((i[b>>>24]<<24|i[h>>>16&255]<<16|i[p>>>8&255]<<8|i[255&m])^t[g++])>>>0]}var s=[0,1,2,4,8,16,32,64,128,27,54],u=function(){for(var e=Array(256),t=0;t<256;t++)t<128?e[t]=t<<1:e[t]=t<<1^283;for(var r=[],i=[],n=[[],[],[],[]],a=[[],[],[],[]],o=0,s=0,u=0;u<256;++u){var f=s^s<<1^s<<2^s<<3^s<<4;f=f>>>8^255&f^99,r[o]=f,i[f]=o;var c=e[o],d=e[c],l=e[d],h=257*e[f]^0x1010100*f;n[0][o]=h<<24|h>>>8,n[1][o]=h<<16|h>>>16,n[2][o]=h<<8|h>>>24,n[3][o]=h,h=0x1010101*l^65537*d^257*c^0x1010100*o,a[0][f]=h<<24|h>>>8,a[1][f]=h<<16|h>>>16,a[2][f]=h<<8|h>>>24,a[3][f]=h,0===o?o=s=1:(o=c^e[e[e[l^c]]],s^=e[e[s]])}return{SBOX:r,INV_SBOX:i,SUB_MIX:n,INV_SUB_MIX:a}}();function f(e){this._key=n(e),this._reset()}f.blockSize=16,f.keySize=32,f.prototype.blockSize=f.blockSize,f.prototype.keySize=f.keySize,f.prototype._reset=function(){for(var e=this._key,t=e.length,r=t+6,i=(r+1)*4,n=[],a=0;a<t;a++)n[a]=e[a];for(a=t;a<i;a++){var o=n[a-1];a%t==0?(o=o<<8|o>>>24,o=(u.SBOX[o>>>24]<<24|u.SBOX[o>>>16&255]<<16|u.SBOX[o>>>8&255]<<8|u.SBOX[255&o])^s[a/t|0]<<24):t>6&&a%t==4&&(o=u.SBOX[o>>>24]<<24|u.SBOX[o>>>16&255]<<16|u.SBOX[o>>>8&255]<<8|u.SBOX[255&o]),n[a]=n[a-t]^o}for(var f=[],c=0;c<i;c++){var d=i-c,l=n[d-(c%4?0:4)];c<4||d<=4?f[c]=l:f[c]=u.INV_SUB_MIX[0][u.SBOX[l>>>24]]^u.INV_SUB_MIX[1][u.SBOX[l>>>16&255]]^u.INV_SUB_MIX[2][u.SBOX[l>>>8&255]]^u.INV_SUB_MIX[3][u.SBOX[255&l]]}this._nRounds=r,this._keySchedule=n,this._invKeySchedule=f},f.prototype.encryptBlockRaw=function(e){return o(e=n(e),this._keySchedule,u.SUB_MIX,u.SBOX,this._nRounds)},f.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),r=i.allocUnsafe(16);return r.writeUInt32BE(t[0],0),r.writeUInt32BE(t[1],4),r.writeUInt32BE(t[2],8),r.writeUInt32BE(t[3],12),r},f.prototype.decryptBlock=function(e){var t=(e=n(e))[1];e[1]=e[3],e[3]=t;var r=o(e,this._invKeySchedule,u.INV_SUB_MIX,u.INV_SBOX,this._nRounds),a=i.allocUnsafe(16);return a.writeUInt32BE(r[0],0),a.writeUInt32BE(r[3],4),a.writeUInt32BE(r[2],8),a.writeUInt32BE(r[1],12),a},f.prototype.scrub=function(){a(this._keySchedule),a(this._invKeySchedule),a(this._key)},e.exports.AES=f},6624:function(e,t,r){var i=r(1387),n=r(6911).Buffer,a=r(1043),o=r(3782),s=r(7225),u=r(4734),f=r(598);function c(e,t){var r=0;e.length!==t.length&&r++;for(var i=Math.min(e.length,t.length),n=0;n<i;++n)r+=e[n]^t[n];return r}function d(e,t,r){if(12===t.length)return e._finID=n.concat([t,n.from([0,0,0,1])]),n.concat([t,n.from([0,0,0,2])]);var i=new s(r),a=t.length,o=a%16;i.update(t),o&&(o=16-o,i.update(n.alloc(o,0))),i.update(n.alloc(8,0));var u=8*a,c=n.alloc(8);c.writeUIntBE(u,0,8),i.update(c),e._finID=i.state;var d=n.from(e._finID);return f(d),d}function l(e,t,r,o){a.call(this);var u=n.alloc(4,0);this._cipher=new i.AES(t);var f=this._cipher.encryptBlock(u);this._ghash=new s(f),r=d(this,r,f),this._prev=n.from(r),this._cache=n.allocUnsafe(0),this._secCache=n.allocUnsafe(0),this._decrypt=o,this._alen=0,this._len=0,this._mode=e,this._authTag=null,this._called=!1}o(l,a),l.prototype._update=function(e){if(!this._called&&this._alen){var t=16-this._alen%16;t<16&&(t=n.alloc(t,0),this._ghash.update(t))}this._called=!0;var r=this._mode.encrypt(this,e);return this._decrypt?this._ghash.update(e):this._ghash.update(r),this._len+=e.length,r},l.prototype._final=function(){if(this._decrypt&&!this._authTag)throw Error("Unsupported state or unable to authenticate data");var e=u(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&c(e,this._authTag))throw Error("Unsupported state or unable to authenticate data");this._authTag=e,this._cipher.scrub()},l.prototype.getAuthTag=function(){if(this._decrypt||!n.isBuffer(this._authTag))throw Error("Attempting to get auth tag in unsupported state");return this._authTag},l.prototype.setAuthTag=function(e){if(!this._decrypt)throw Error("Attempting to set auth tag in unsupported state");this._authTag=e},l.prototype.setAAD=function(e){if(this._called)throw Error("Attempting to set AAD in unsupported state");this._ghash.update(e),this._alen+=e.length},e.exports=l},6594:function(e,t,r){var i=r(2),n=r(2598),a=r(5866);function o(){return Object.keys(a)}t.createCipher=t.Cipher=i.createCipher,t.createCipheriv=t.Cipheriv=i.createCipheriv,t.createDecipher=t.Decipher=n.createDecipher,t.createDecipheriv=t.Decipheriv=n.createDecipheriv,t.listCiphers=t.getCiphers=o},2598:function(e,t,r){var i=r(6624),n=r(6911).Buffer,a=r(6370),o=r(126),s=r(1043),u=r(1387),f=r(8368);function c(e,t,r){s.call(this),this._cache=new d,this._last=void 0,this._cipher=new u.AES(t),this._prev=n.from(r),this._mode=e,this._autopadding=!0}function d(){this.cache=n.allocUnsafe(0)}function l(e){var t=e[15];if(t<1||t>16)throw Error("unable to decrypt data");for(var r=-1;++r<t;)if(e[r+(16-t)]!==t)throw Error("unable to decrypt data");if(16!==t)return e.slice(0,16-t)}function h(e,t,r){var s=a[e.toLowerCase()];if(!s)throw TypeError("invalid suite type");if("string"==typeof r&&(r=n.from(r)),"GCM"!==s.mode&&r.length!==s.iv)throw TypeError("invalid iv length "+r.length);if("string"==typeof t&&(t=n.from(t)),t.length!==s.key/8)throw TypeError("invalid key length "+t.length);return"stream"===s.type?new o(s.module,t,r,!0):"auth"===s.type?new i(s.module,t,r,!0):new c(s.module,t,r)}r(3782)(c,s),c.prototype._update=function(e){this._cache.add(e);for(var t,r,i=[];t=this._cache.get(this._autopadding);)r=this._mode.decrypt(this,t),i.push(r);return n.concat(i)},c.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return l(this._mode.decrypt(this,e));if(e)throw Error("data not multiple of block length")},c.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},d.prototype.add=function(e){this.cache=n.concat([this.cache,e])},d.prototype.get=function(e){var t;if(e){if(this.cache.length>16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(this.cache.length>=16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null},d.prototype.flush=function(){if(this.cache.length)return this.cache},t.createDecipher=function(e,t){var r=a[e.toLowerCase()];if(!r)throw TypeError("invalid suite type");var i=f(t,!1,r.key,r.iv);return h(e,i.key,i.iv)},t.createDecipheriv=h},2:function(e,t,r){var i=r(6370),n=r(6624),a=r(6911).Buffer,o=r(126),s=r(1043),u=r(1387),f=r(8368);function c(e,t,r){s.call(this),this._cache=new l,this._cipher=new u.AES(t),this._prev=a.from(r),this._mode=e,this._autopadding=!0}r(3782)(c,s),c.prototype._update=function(e){this._cache.add(e);for(var t,r,i=[];t=this._cache.get();)r=this._mode.encrypt(this,t),i.push(r);return a.concat(i)};var d=a.alloc(16,16);function l(){this.cache=a.allocUnsafe(0)}function h(e,t,r){var s=i[e.toLowerCase()];if(!s)throw TypeError("invalid suite type");if("string"==typeof t&&(t=a.from(t)),t.length!==s.key/8)throw TypeError("invalid key length "+t.length);if("string"==typeof r&&(r=a.from(r)),"GCM"!==s.mode&&r.length!==s.iv)throw TypeError("invalid iv length "+r.length);return"stream"===s.type?new o(s.module,t,r):"auth"===s.type?new n(s.module,t,r):new c(s.module,t,r)}function p(e,t){var r=i[e.toLowerCase()];if(!r)throw TypeError("invalid suite type");var n=f(t,!1,r.key,r.iv);return h(e,n.key,n.iv)}c.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return e=this._mode.encrypt(this,e),this._cipher.scrub(),e;if(!e.equals(d))throw this._cipher.scrub(),Error("data not multiple of block length")},c.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},l.prototype.add=function(e){this.cache=a.concat([this.cache,e])},l.prototype.get=function(){if(this.cache.length>15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},l.prototype.flush=function(){for(var e=16-this.cache.length,t=a.allocUnsafe(e),r=-1;++r<e;)t.writeUInt8(e,r);return a.concat([this.cache,t])},t.createCipheriv=h,t.createCipher=p},7225:function(e,t,r){var i=r(6911).Buffer,n=i.alloc(16,0);function a(e){return[e.readUInt32BE(0),e.readUInt32BE(4),e.readUInt32BE(8),e.readUInt32BE(12)]}function o(e){var t=i.allocUnsafe(16);return t.writeUInt32BE(e[0]>>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function s(e){this.h=e,this.state=i.alloc(16,0),this.cache=i.allocUnsafe(0)}s.prototype.ghash=function(e){for(var t=-1;++t<e.length;)this.state[t]^=e[t];this._multiply()},s.prototype._multiply=function(){for(var e,t,r=a(this.h),i=[0,0,0,0],n=-1;++n<128;){for((this.state[~~(n/8)]&1<<7-n%8)!=0&&(i[0]^=r[0],i[1]^=r[1],i[2]^=r[2],i[3]^=r[3]),t=(1&r[3])!=0,e=3;e>0;e--)r[e]=r[e]>>>1|(1&r[e-1])<<31;r[0]=r[0]>>>1,t&&(r[0]=-0x1f000000^r[0])}this.state=o(i)},s.prototype.update=function(e){var t;for(this.cache=i.concat([this.cache,e]);this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},s.prototype.final=function(e,t){return this.cache.length&&this.ghash(i.concat([this.cache,n],16)),this.ghash(o([0,e,0,t])),this.state},e.exports=s},598:function(e){e.exports=function(e){for(var t,r=e.length;r--;)if(255===(t=e.readUInt8(r)))e.writeUInt8(0,r);else{t++,e.writeUInt8(t,r);break}}},9825:function(e,t,r){var i=r(4734);t.encrypt=function(e,t){var r=i(t,e._prev);return e._prev=e._cipher.encryptBlock(r),e._prev},t.decrypt=function(e,t){var r=e._prev;return e._prev=t,i(e._cipher.decryptBlock(t),r)}},321:function(e,t,r){var i=r(6911).Buffer,n=r(4734);function a(e,t,r){var a=t.length,o=n(t,e._cache);return e._cache=e._cache.slice(a),e._prev=i.concat([e._prev,r?t:o]),o}t.encrypt=function(e,t,r){for(var n,o=i.allocUnsafe(0);t.length;)if(0===e._cache.length&&(e._cache=e._cipher.encryptBlock(e._prev),e._prev=i.allocUnsafe(0)),e._cache.length<=t.length)n=e._cache.length,o=i.concat([o,a(e,t.slice(0,n),r)]),t=t.slice(n);else{o=i.concat([o,a(e,t,r)]);break}return o}},3147:function(e,t,r){var i=r(6911).Buffer;function n(e,t,r){for(var i,n,o,s=-1,u=8,f=0;++s<u;)i=e._cipher.encryptBlock(e._prev),n=t&1<<7-s?128:0,f+=(128&(o=i[0]^n))>>s%8,e._prev=a(e._prev,r?n:o);return f}function a(e,t){var r=e.length,n=-1,a=i.allocUnsafe(e.length);for(e=i.concat([e,i.from([t])]);++n<r;)a[n]=e[n]<<1|e[n+1]>>7;return a}t.encrypt=function(e,t,r){for(var a=t.length,o=i.allocUnsafe(a),s=-1;++s<a;)o[s]=n(e,t[s],r);return o}},2430:function(e,t,r){var i=r(6911).Buffer;function n(e,t,r){var n=e._cipher.encryptBlock(e._prev)[0]^t;return e._prev=i.concat([e._prev.slice(1),i.from([r?t:n])]),n}t.encrypt=function(e,t,r){for(var a=t.length,o=i.allocUnsafe(a),s=-1;++s<a;)o[s]=n(e,t[s],r);return o}},3361:function(e,t,r){var i=r(4734),n=r(6911).Buffer,a=r(598);function o(e){var t=e._cipher.encryptBlockRaw(e._prev);return a(e._prev),t}var s=16;t.encrypt=function(e,t){var r=Math.ceil(t.length/s),a=e._cache.length;e._cache=n.concat([e._cache,n.allocUnsafe(r*s)]);for(var u=0;u<r;u++){var f=o(e),c=a+u*s;e._cache.writeUInt32BE(f[0],c+0),e._cache.writeUInt32BE(f[1],c+4),e._cache.writeUInt32BE(f[2],c+8),e._cache.writeUInt32BE(f[3],c+12)}var d=e._cache.slice(0,t.length);return e._cache=e._cache.slice(t.length),i(t,d)}},1590:function(e,t){t.encrypt=function(e,t){return e._cipher.encryptBlock(t)},t.decrypt=function(e,t){return e._cipher.decryptBlock(t)}},6370:function(e,t,r){var i={ECB:r(1590),CBC:r(9825),CFB:r(321),CFB8:r(2430),CFB1:r(3147),OFB:r(3412),CTR:r(3361),GCM:r(3361)},n=r(5866);for(var a in n)n[a].module=i[n[a].mode];e.exports=n},3412:function(e,t,r){var n=r(4734);function a(e){return e._prev=e._cipher.encryptBlock(e._prev),e._prev}t.encrypt=function(e,t){for(;e._cache.length<t.length;)e._cache=i.Buffer.concat([e._cache,a(e)]);var r=e._cache.slice(0,t.length);return e._cache=e._cache.slice(t.length),n(t,r)}},126:function(e,t,r){var i=r(1387),n=r(6911).Buffer,a=r(1043);function o(e,t,r,o){a.call(this),this._cipher=new i.AES(t),this._prev=n.from(r),this._cache=n.allocUnsafe(0),this._secCache=n.allocUnsafe(0),this._decrypt=o,this._mode=e}r(3782)(o,a),o.prototype._update=function(e){return this._mode.encrypt(this,e,this._decrypt)},o.prototype._final=function(){this._cipher.scrub()},e.exports=o},8996:function(e,t,r){var i=r(5238),n=r(6594),a=r(6370),o=r(6280),s=r(8368);function u(e,t){if(a[e=e.toLowerCase()])r=a[e].key,i=a[e].iv;else if(o[e])r=8*o[e].key,i=o[e].iv;else throw TypeError("invalid suite type");var r,i,n=s(t,!1,r,i);return c(e,n.key,n.iv)}function f(e,t,r){if(a[e=e.toLowerCase()])return n.createCipheriv(e,t,r);if(o[e])return new i({key:t,iv:r,mode:e});throw TypeError("invalid suite type")}function c(e,t,r){if(a[e=e.toLowerCase()])return n.createDecipheriv(e,t,r);if(o[e])return new i({key:t,iv:r,mode:e,decrypt:!0});throw TypeError("invalid suite type")}function d(){return Object.keys(o).concat(n.getCiphers())}t.createCipher=t.Cipher=function(e,t){if(a[e=e.toLowerCase()])r=a[e].key,i=a[e].iv;else if(o[e])r=8*o[e].key,i=o[e].iv;else throw TypeError("invalid suite type");var r,i,n=s(t,!1,r,i);return f(e,n.key,n.iv)},t.createCipheriv=t.Cipheriv=f,t.createDecipher=t.Decipher=u,t.createDecipheriv=t.Decipheriv=c,t.listCiphers=t.getCiphers=d},5238:function(e,t,r){var i=r(1043),n=r(9536),a=r(3782),o=r(6911).Buffer,s={"des-ede3-cbc":n.CBC.instantiate(n.EDE),"des-ede3":n.EDE,"des-ede-cbc":n.CBC.instantiate(n.EDE),"des-ede":n.EDE,"des-cbc":n.CBC.instantiate(n.DES),"des-ecb":n.DES};function u(e){i.call(this);var t,r=e.mode.toLowerCase(),n=s[r];t=e.decrypt?"decrypt":"encrypt";var a=e.key;o.isBuffer(a)||(a=o.from(a)),("des-ede"===r||"des-ede-cbc"===r)&&(a=o.concat([a,a.slice(0,8)]));var u=e.iv;o.isBuffer(u)||(u=o.from(u)),this._des=n.create({key:a,iv:u,type:t})}s.des=s["des-cbc"],s.des3=s["des-ede3-cbc"],e.exports=u,a(u,i),u.prototype._update=function(e){return o.from(this._des.update(e))},u.prototype._final=function(){return o.from(this._des.final())}},6280:function(e,t){t["des-ecb"]={key:8,iv:0},t["des-cbc"]=t.des={key:8,iv:8},t["des-ede3-cbc"]=t.des3={key:24,iv:8},t["des-ede3"]={key:24,iv:0},t["des-ede-cbc"]={key:16,iv:8},t["des-ede"]={key:16,iv:0}},7166:function(e,t,r){var n=r(711),a=r(7223);function o(e){var t=u(e);return{blinder:t.toRed(n.mont(e.modulus)).redPow(new n(e.publicExponent)).fromRed(),unblinder:t.invm(e.modulus)}}function s(e,t){var r=o(t),a=t.modulus.byteLength();n.mont(t.modulus);var s=new n(e).mul(r.blinder).umod(t.modulus),u=s.toRed(n.mont(t.prime1)),f=s.toRed(n.mont(t.prime2)),c=t.coefficient,d=t.prime1,l=t.prime2,h=u.redPow(t.exponent1),p=f.redPow(t.exponent2);h=h.fromRed(),p=p.fromRed();var m=h.isub(p).imul(c).umod(d);return m.imul(l),p.iadd(m),new i.Buffer(p.imul(r.unblinder).umod(t.modulus).toArray(!1,a))}function u(e){for(var t=e.modulus.byteLength(),r=new n(a(t));r.cmp(e.modulus)>=0||!r.umod(e.prime1)||!r.umod(e.prime2);)r=new n(a(t));return r}e.exports=s,s.getr=u},9276:function(e,t,r){e.exports=r(2908)},4078:function(e,t,r){var i=r(6911).Buffer,n=r(9739),a=r(3726),o=r(3782),s=r(9807),u=r(4013),f=r(2908);function c(e){a.Writable.call(this);var t=f[e];if(!t)throw Error("Unknown message digest");this._hashType=t.hash,this._hash=n(t.hash),this._tag=t.id,this._signType=t.sign}function d(e){a.Writable.call(this);var t=f[e];if(!t)throw Error("Unknown message digest");this._hash=n(t.hash),this._tag=t.id,this._signType=t.sign}function l(e){return new c(e)}function h(e){return new d(e)}Object.keys(f).forEach(function(e){f[e].id=i.from(f[e].id,"hex"),f[e.toLowerCase()]=f[e]}),o(c,a.Writable),c.prototype._write=function(e,t,r){this._hash.update(e),r()},c.prototype.update=function(e,t){return"string"==typeof e&&(e=i.from(e,t)),this._hash.update(e),this},c.prototype.sign=function(e,t){this.end();var r=s(this._hash.digest(),e,this._hashType,this._signType,this._tag);return t?r.toString(t):r},o(d,a.Writable),d.prototype._write=function(e,t,r){this._hash.update(e),r()},d.prototype.update=function(e,t){return"string"==typeof e&&(e=i.from(e,t)),this._hash.update(e),this},d.prototype.verify=function(e,t,r){return"string"==typeof t&&(t=i.from(t,r)),this.end(),u(t,this._hash.digest(),e,this._signType,this._tag)},e.exports={Sign:l,Verify:h,createSign:l,createVerify:h}},9807:function(e,t,r){var i=r(6911).Buffer,n=r(4873),a=r(7166),o=r(949).ec,s=r(1670),u=r(9902),f=r(9267);function c(e,t){var r=f[t.curve.join(".")];if(!r)throw Error("unknown curve "+t.curve.join("."));var n=new o(r).keyFromPrivate(t.privateKey).sign(e);return i.from(n.toDER())}function d(e,t,r){for(var i,n=t.params.priv_key,a=t.params.p,o=t.params.q,u=t.params.g,f=new s(0),c=p(e,o).mod(o),d=!1,m=h(n,o,e,r);!1===d;)f=g(u,i=b(o,m,r),a,o),0===(d=i.invm(o).imul(c.add(n.mul(f))).mod(o)).cmpn(0)&&(d=!1,f=new s(0));return l(f,d)}function l(e,t){e=e.toArray(),t=t.toArray(),128&e[0]&&(e=[0].concat(e)),128&t[0]&&(t=[0].concat(t));var r=[48,e.length+t.length+4,2,e.length];return r=r.concat(e,[2,t.length],t),i.from(r)}function h(e,t,r,a){if((e=i.from(e.toArray())).length<t.byteLength()){var o=i.alloc(t.byteLength()-e.length);e=i.concat([o,e])}var s=r.length,u=m(r,t),f=i.alloc(s);f.fill(1);var c=i.alloc(s);return c=n(a,c).update(f).update(i.from([0])).update(e).update(u).digest(),f=n(a,c).update(f).digest(),c=n(a,c).update(f).update(i.from([1])).update(e).update(u).digest(),f=n(a,c).update(f).digest(),{k:c,v:f}}function p(e,t){var r=new s(e),i=(e.length<<3)-t.bitLength();return i>0&&r.ishrn(i),r}function m(e,t){e=(e=p(e,t)).mod(t);var r=i.from(e.toArray());if(r.length<t.byteLength()){var n=i.alloc(t.byteLength()-r.length);r=i.concat([n,r])}return r}function b(e,t,r){var a,o;do{for(a=i.alloc(0);8*a.length<e.bitLength();)t.v=n(r,t.k).update(t.v).digest(),a=i.concat([a,t.v]);o=p(a,e),t.k=n(r,t.k).update(t.v).update(i.from([0])).digest(),t.v=n(r,t.k).update(t.v).digest()}while(-1!==o.cmp(e))return o}function g(e,t,r,i){return e.toRed(s.mont(r)).redPow(t).fromRed().mod(i)}e.exports=function(e,t,r,n,o){var s=u(t);if(s.curve){if("ecdsa"!==n&&"ecdsa/rsa"!==n)throw Error("wrong private key type");return c(e,s)}if("dsa"===s.type){if("dsa"!==n)throw Error("wrong private key type");return d(e,s,r)}if("rsa"!==n&&"ecdsa/rsa"!==n)throw Error("wrong private key type");e=i.concat([o,e]);for(var f=s.modulus.byteLength(),l=[0,1];e.length+l.length+1<f;)l.push(255);l.push(0);for(var h=-1;++h<e.length;)l.push(e[h]);return a(l,s)},e.exports.getKey=h,e.exports.makeKey=b},4013:function(e,t,r){var i=r(6911).Buffer,n=r(1670),a=r(949).ec,o=r(9902),s=r(9267);function u(e,t,r){var i=s[r.data.algorithm.curve.join(".")];if(!i)throw Error("unknown curve "+r.data.algorithm.curve.join("."));var n=new a(i),o=r.data.subjectPrivateKey.data;return n.verify(t,e,o)}function f(e,t,r){var i=r.data.p,a=r.data.q,s=r.data.g,u=r.data.pub_key,f=o.signature.decode(e,"der"),d=f.s,l=f.r;c(d,a),c(l,a);var h=n.mont(i),p=d.invm(a);return 0===s.toRed(h).redPow(new n(t).mul(p).mod(a)).fromRed().mul(u.toRed(h).redPow(l.mul(p).mod(a)).fromRed()).mod(i).mod(a).cmp(l)}function c(e,t){if(0>=e.cmpn(0)||e.cmp(t)>=t)throw Error("invalid sig")}e.exports=function(e,t,r,a,s){var c=o(r);if("ec"===c.type){if("ecdsa"!==a&&"ecdsa/rsa"!==a)throw Error("wrong public key type");return u(e,t,c)}if("dsa"===c.type){if("dsa"!==a)throw Error("wrong public key type");return f(e,t,c)}if("rsa"!==a&&"ecdsa/rsa"!==a)throw Error("wrong public key type");t=i.concat([s,t]);for(var d=c.modulus.byteLength(),l=[1],h=0;t.length+l.length+2<d;)l.push(255),h++;l.push(0);for(var p=-1;++p<t.length;)l.push(t[p]);l=i.from(l);var m=n.mont(c.modulus);e=(e=new n(e).toRed(m)).redPow(new n(c.publicExponent));var b=+(h<8);for(d=Math.min((e=i.from(e.fromRed().toArray())).length,l.length),e.length!==l.length&&(b=1),p=-1;++p<d;)b|=e[p]^l[p];return 0===b}},4734:function(e){e.exports=function(e,t){for(var r=Math.min(e.length,t.length),n=new i.Buffer(r),a=0;a<r;++a)n[a]=e[a]^t[a];return n}},1043:function(e,t,r){var i=r(6911).Buffer,n=r(2781).Transform,a=r(1576).StringDecoder;function o(e){n.call(this),this.hashMode="string"==typeof e,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}r(3782)(o,n),o.prototype.update=function(e,t,r){"string"==typeof e&&(e=i.from(e,t));var n=this._update(e);return this.hashMode?this:(r&&(n=this._toString(n,r)),n)},o.prototype.setAutoPadding=function(){},o.prototype.getAuthTag=function(){throw Error("trying to get auth tag in unsupported state")},o.prototype.setAuthTag=function(){throw Error("trying to set auth tag in unsupported state")},o.prototype.setAAD=function(){throw Error("trying to set aad in unsupported state")},o.prototype._transform=function(e,t,r){var i;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(e){i=e}finally{r(i)}},o.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(e){t=e}e(t)},o.prototype._finalOrDigest=function(e){var t=this.__final()||i.alloc(0);return e&&(t=this._toString(t,e,!0)),t},o.prototype._toString=function(e,t,r){if(this._decoder||(this._decoder=new a(t),this._encoding=t),this._encoding!==t)throw Error("can't switch encodings");var i=this._decoder.write(e);return r&&(i+=this._decoder.end()),i},e.exports=o},9942:function(e,t,r){var n=r(949),a=r(711);e.exports=function(e){return new s(e)};var o={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function s(e){this.curveType=o[e],this.curveType||(this.curveType={name:e}),this.curve=new n.ec(this.curveType.name),this.keys=void 0}function u(e,t,r){Array.isArray(e)||(e=e.toArray());var n=new i.Buffer(e);if(r&&n.length<r){var a=new i.Buffer(r-n.length);a.fill(0),n=i.Buffer.concat([a,n])}return t?n.toString(t):n}o.p224=o.secp224r1,o.p256=o.secp256r1=o.prime256v1,o.p192=o.secp192r1=o.prime192v1,o.p384=o.secp384r1,o.p521=o.secp521r1,s.prototype.generateKeys=function(e,t){return this.keys=this.curve.genKeyPair(),this.getPublicKey(e,t)},s.prototype.computeSecret=function(e,t,r){return t=t||"utf8",i.Buffer.isBuffer(e)||(e=new i.Buffer(e,t)),u(this.curve.keyFromPublic(e).getPublic().mul(this.keys.getPrivate()).getX(),r,this.curveType.byteLength)},s.prototype.getPublicKey=function(e,t){var r=this.keys.getPublic("compressed"===t,!0);return"hybrid"===t&&(r[r.length-1]%2?r[0]=7:r[0]=6),u(r,e)},s.prototype.getPrivateKey=function(e){return u(this.keys.getPrivate(),e)},s.prototype.setPublicKey=function(e,t){return t=t||"utf8",i.Buffer.isBuffer(e)||(e=new i.Buffer(e,t)),this.keys._importPublic(e),this},s.prototype.setPrivateKey=function(e,t){t=t||"utf8",i.Buffer.isBuffer(e)||(e=new i.Buffer(e,t));var r=new a(e);return r=r.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(r),this}},9739:function(e,t,r){"use strict";var i=r(3782),n=r(3533),a=r(3225),o=r(4371),s=r(1043);function u(e){s.call(this,"digest"),this._hash=e}i(u,s),u.prototype._update=function(e){this._hash.update(e)},u.prototype._final=function(){return this._hash.digest()},e.exports=function(e){return"md5"===(e=e.toLowerCase())?new n:"rmd160"===e||"ripemd160"===e?new a:new u(o(e))}},450:function(e,t,r){var i=r(3533);e.exports=function(e){return(new i).update(e).digest()}},4873:function(e,t,r){"use strict";var i=r(3782),n=r(8119),a=r(1043),o=r(6911).Buffer,s=r(450),u=r(3225),f=r(4371),c=o.alloc(128);function d(e,t){a.call(this,"digest"),"string"==typeof t&&(t=o.from(t));var r="sha512"===e||"sha384"===e?128:64;this._alg=e,this._key=t,t.length>r?t=("rmd160"===e?new u:f(e)).update(t).digest():t.length<r&&(t=o.concat([t,c],r));for(var i=this._ipad=o.allocUnsafe(r),n=this._opad=o.allocUnsafe(r),s=0;s<r;s++)i[s]=54^t[s],n[s]=92^t[s];this._hash="rmd160"===e?new u:f(e),this._hash.update(i)}i(d,a),d.prototype._update=function(e){this._hash.update(e)},d.prototype._final=function(){var e=this._hash.digest();return("rmd160"===this._alg?new u:f(this._alg)).update(this._opad).update(e).digest()},e.exports=function(e,t){return"rmd160"===(e=e.toLowerCase())||"ripemd160"===e?new d("rmd160",t):"md5"===e?new n(s,t):new d(e,t)}},8119:function(e,t,r){"use strict";var i=r(3782),n=r(6911).Buffer,a=r(1043),o=n.alloc(128),s=64;function u(e,t){a.call(this,"digest"),"string"==typeof t&&(t=n.from(t)),this._alg=e,this._key=t,t.length>s?t=e(t):t.length<s&&(t=n.concat([t,o],s));for(var r=this._ipad=n.allocUnsafe(s),i=this._opad=n.allocUnsafe(s),u=0;u<s;u++)r[u]=54^t[u],i[u]=92^t[u];this._hash=[r]}i(u,a),u.prototype._update=function(e){this._hash.push(e)},u.prototype._final=function(){var e=this._alg(n.concat(this._hash));return this._alg(n.concat([this._opad,e]))},e.exports=u},9536:function(e,t,r){"use strict";t.utils=r(5334),t.Cipher=r(9876),t.DES=r(1016),t.CBC=r(8641),t.EDE=r(6159)},8641:function(e,t,r){"use strict";var i=r(3523),n=r(3782),a={};function o(e){i.equal(e.length,8,"Invalid IV length"),this.iv=Array(8);for(var t=0;t<this.iv.length;t++)this.iv[t]=e[t]}t.instantiate=function(e){function t(t){e.call(this,t),this._cbcInit()}n(t,e);for(var r=Object.keys(a),i=0;i<r.length;i++){var o=r[i];t.prototype[o]=a[o]}return t.create=function(e){return new t(e)},t},a._cbcInit=function(){var e=new o(this.options.iv);this._cbcState=e},a._update=function(e,t,r,i){var n=this._cbcState,a=this.constructor.super_.prototype,o=n.iv;if("encrypt"===this.type){for(var s=0;s<this.blockSize;s++)o[s]^=e[t+s];a._update.call(this,o,0,r,i);for(var s=0;s<this.blockSize;s++)o[s]=r[i+s]}else{a._update.call(this,e,t,r,i);for(var s=0;s<this.blockSize;s++)r[i+s]^=o[s];for(var s=0;s<this.blockSize;s++)o[s]=e[t+s]}}},9876:function(e,t,r){"use strict";var i=r(3523);function n(e){this.options=e,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=Array(this.blockSize),this.bufferOff=0}e.exports=n,n.prototype._init=function(){},n.prototype.update=function(e){return 0===e.length?[]:"decrypt"===this.type?this._updateDecrypt(e):this._updateEncrypt(e)},n.prototype._buffer=function(e,t){for(var r=Math.min(this.buffer.length-this.bufferOff,e.length-t),i=0;i<r;i++)this.buffer[this.bufferOff+i]=e[t+i];return this.bufferOff+=r,r},n.prototype._flushBuffer=function(e,t){return this._update(this.buffer,0,e,t),this.bufferOff=0,this.blockSize},n.prototype._updateEncrypt=function(e){var t=0,r=0,i=Array(((this.bufferOff+e.length)/this.blockSize|0)*this.blockSize);0!==this.bufferOff&&(t+=this._buffer(e,t),this.bufferOff===this.buffer.length&&(r+=this._flushBuffer(i,r)));for(var n=e.length-(e.length-t)%this.blockSize;t<n;t+=this.blockSize)this._update(e,t,i,r),r+=this.blockSize;for(;t<e.length;t++,this.bufferOff++)this.buffer[this.bufferOff]=e[t];return i},n.prototype._updateDecrypt=function(e){for(var t=0,r=0,i=Math.ceil((this.bufferOff+e.length)/this.blockSize)-1,n=Array(i*this.blockSize);i>0;i--)t+=this._buffer(e,t),r+=this._flushBuffer(n,r);return t+=this._buffer(e,t),n},n.prototype.final=function(e){var t,r;return(e&&(t=this.update(e)),r="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t)?t.concat(r):r},n.prototype._pad=function(e,t){if(0===t)return!1;for(;t<e.length;)e[t++]=0;return!0},n.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var e=Array(this.blockSize);return this._update(this.buffer,0,e,0),e},n.prototype._unpad=function(e){return e},n.prototype._finalDecrypt=function(){i.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var e=Array(this.blockSize);return this._flushBuffer(e,0),this._unpad(e)}},1016:function(e,t,r){"use strict";var i=r(3523),n=r(3782),a=r(5334),o=r(9876);function s(){this.tmp=[,,],this.keys=null}function u(e){o.call(this,e);var t=new s;this._desState=t,this.deriveKeys(t,e.key)}n(u,o),e.exports=u,u.create=function(e){return new u(e)};var f=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];u.prototype.deriveKeys=function(e,t){e.keys=Array(32),i.equal(t.length,this.blockSize,"Invalid key length");var r=a.readUInt32BE(t,0),n=a.readUInt32BE(t,4);a.pc1(r,n,e.tmp,0),r=e.tmp[0],n=e.tmp[1];for(var o=0;o<e.keys.length;o+=2){var s=f[o>>>1];r=a.r28shl(r,s),n=a.r28shl(n,s),a.pc2(r,n,e.keys,o)}},u.prototype._update=function(e,t,r,i){var n=this._desState,o=a.readUInt32BE(e,t),s=a.readUInt32BE(e,t+4);a.ip(o,s,n.tmp,0),o=n.tmp[0],s=n.tmp[1],"encrypt"===this.type?this._encrypt(n,o,s,n.tmp,0):this._decrypt(n,o,s,n.tmp,0),o=n.tmp[0],s=n.tmp[1],a.writeUInt32BE(r,o,i),a.writeUInt32BE(r,s,i+4)},u.prototype._pad=function(e,t){for(var r=e.length-t,i=t;i<e.length;i++)e[i]=r;return!0},u.prototype._unpad=function(e){for(var t=e[e.length-1],r=e.length-t;r<e.length;r++)i.equal(e[r],t);return e.slice(0,e.length-t)},u.prototype._encrypt=function(e,t,r,i,n){for(var o=t,s=r,u=0;u<e.keys.length;u+=2){var f=e.keys[u],c=e.keys[u+1];a.expand(s,e.tmp,0),f^=e.tmp[0],c^=e.tmp[1];var d=a.substitute(f,c),l=a.permute(d),h=s;s=(o^l)>>>0,o=h}a.rip(s,o,i,n)},u.prototype._decrypt=function(e,t,r,i,n){for(var o=r,s=t,u=e.keys.length-2;u>=0;u-=2){var f=e.keys[u],c=e.keys[u+1];a.expand(o,e.tmp,0),f^=e.tmp[0],c^=e.tmp[1];var d=a.substitute(f,c),l=a.permute(d),h=o;o=(s^l)>>>0,s=h}a.rip(o,s,i,n)}},6159:function(e,t,r){"use strict";var i=r(3523),n=r(3782),a=r(9876),o=r(1016);function s(e,t){i.equal(t.length,24,"Invalid key length");var r=t.slice(0,8),n=t.slice(8,16),a=t.slice(16,24);"encrypt"===e?this.ciphers=[o.create({type:"encrypt",key:r}),o.create({type:"decrypt",key:n}),o.create({type:"encrypt",key:a})]:this.ciphers=[o.create({type:"decrypt",key:a}),o.create({type:"encrypt",key:n}),o.create({type:"decrypt",key:r})]}function u(e){a.call(this,e);var t=new s(this.type,this.options.key);this._edeState=t}n(u,a),e.exports=u,u.create=function(e){return new u(e)},u.prototype._update=function(e,t,r,i){var n=this._edeState;n.ciphers[0]._update(e,t,r,i),n.ciphers[1]._update(r,i,r,i),n.ciphers[2]._update(r,i,r,i)},u.prototype._pad=o.prototype._pad,u.prototype._unpad=o.prototype._unpad},5334:function(e,t){"use strict";t.readUInt32BE=function(e,t){return(e[0+t]<<24|e[1+t]<<16|e[2+t]<<8|e[3+t])>>>0},t.writeUInt32BE=function(e,t,r){e[0+r]=t>>>24,e[1+r]=t>>>16&255,e[2+r]=t>>>8&255,e[3+r]=255&t},t.ip=function(e,t,r,i){for(var n=0,a=0,o=6;o>=0;o-=2){for(var s=0;s<=24;s+=8)n<<=1,n|=t>>>s+o&1;for(var s=0;s<=24;s+=8)n<<=1,n|=e>>>s+o&1}for(var o=6;o>=0;o-=2){for(var s=1;s<=25;s+=8)a<<=1,a|=t>>>s+o&1;for(var s=1;s<=25;s+=8)a<<=1,a|=e>>>s+o&1}r[i+0]=n>>>0,r[i+1]=a>>>0},t.rip=function(e,t,r,i){for(var n=0,a=0,o=0;o<4;o++)for(var s=24;s>=0;s-=8)n<<=1,n|=t>>>s+o&1,n<<=1,n|=e>>>s+o&1;for(var o=4;o<8;o++)for(var s=24;s>=0;s-=8)a<<=1,a|=t>>>s+o&1,a<<=1,a|=e>>>s+o&1;r[i+0]=n>>>0,r[i+1]=a>>>0},t.pc1=function(e,t,r,i){for(var n=0,a=0,o=7;o>=5;o--){for(var s=0;s<=24;s+=8)n<<=1,n|=t>>s+o&1;for(var s=0;s<=24;s+=8)n<<=1,n|=e>>s+o&1}for(var s=0;s<=24;s+=8)n<<=1,n|=t>>s+o&1;for(var o=1;o<=3;o++){for(var s=0;s<=24;s+=8)a<<=1,a|=t>>s+o&1;for(var s=0;s<=24;s+=8)a<<=1,a|=e>>s+o&1}for(var s=0;s<=24;s+=8)a<<=1,a|=e>>s+o&1;r[i+0]=n>>>0,r[i+1]=a>>>0},t.r28shl=function(e,t){return e<<t&0xfffffff|e>>>28-t};var r=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];t.pc2=function(e,t,i,n){for(var a=0,o=0,s=r.length>>>1,u=0;u<s;u++)a<<=1,a|=e>>>r[u]&1;for(var u=s;u<r.length;u++)o<<=1,o|=t>>>r[u]&1;i[n+0]=a>>>0,i[n+1]=o>>>0},t.expand=function(e,t,r){var i=0,n=0;i=(1&e)<<5|e>>>27;for(var a=23;a>=15;a-=4)i<<=6,i|=e>>>a&63;for(var a=11;a>=3;a-=4)n|=e>>>a&63,n<<=6;n|=(31&e)<<1|e>>>31,t[r+0]=i>>>0,t[r+1]=n>>>0};var i=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];t.substitute=function(e,t){for(var r=0,n=0;n<4;n++){var a=e>>>18-6*n&63,o=i[64*n+a];r<<=4,r|=o}for(var n=0;n<4;n++){var a=t>>>18-6*n&63,o=i[256+64*n+a];r<<=4,r|=o}return r>>>0};var n=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];t.permute=function(e){for(var t=0,r=0;r<n.length;r++)t<<=1,t|=e>>>n[r]&1;return t>>>0},t.padSplit=function(e,t,r){for(var i=e.toString(2);i.length<t;)i="0"+i;for(var n=[],a=0;a<t;a+=r)n.push(i.slice(a,a+r));return n.join(" ")}},6587:function(e,t,r){var n=r(296),a=r(7992),o=r(373),s={binary:!0,hex:!0,base64:!0};function u(e,t,r,a){return i.Buffer.isBuffer(t)||void 0===s[t]?u(e,"binary",t,r):(t=t||"binary",a=a||"binary",r=r||new i.Buffer([2]),i.Buffer.isBuffer(r)||(r=new i.Buffer(r,a)),"number"==typeof e)?new o(n(e,r),r,!0):(i.Buffer.isBuffer(e)||(e=new i.Buffer(e,t)),new o(e,r,!0))}t.DiffieHellmanGroup=t.createDiffieHellmanGroup=t.getDiffieHellman=function(e){return new o(new i.Buffer(a[e].prime,"hex"),new i.Buffer(a[e].gen,"hex"))},t.createDiffieHellman=t.DiffieHellman=u},373:function(e,t,r){var n=r(711),a=new(r(1354)),o=new n(24),s=new n(11),u=new n(10),f=new n(3),c=new n(7),d=r(296),l=r(7223);function h(e,t){return t=t||"utf8",i.Buffer.isBuffer(e)||(e=new i.Buffer(e,t)),this._pub=new n(e),this}function p(e,t){return t=t||"utf8",i.Buffer.isBuffer(e)||(e=new i.Buffer(e,t)),this._priv=new n(e),this}e.exports=g;var m={};function b(e,t){var r,i=t.toString("hex"),n=[i,e.toString(16)].join("_");if(n in m)return m[n];var l=0;if(e.isEven()||!d.simpleSieve||!d.fermatTest(e)||!a.test(e))return l+=1,"02"===i||"05"===i?l+=8:l+=4,m[n]=l,l;switch(!a.test(e.shrn(1))&&(l+=2),i){case"02":e.mod(o).cmp(s)&&(l+=8);break;case"05":(r=e.mod(u)).cmp(f)&&r.cmp(c)&&(l+=8);break;default:l+=4}return m[n]=l,l}function g(e,t,r){this.setGenerator(t),this.__prime=new n(e),this._prime=n.mont(this.__prime),this._primeLen=e.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,r?(this.setPublicKey=h,this.setPrivateKey=p):this._primeCode=8}function v(e,t){var r=new i.Buffer(e.toArray());return t?r.toString(t):r}Object.defineProperty(g.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=b(this.__prime,this.__gen)),this._primeCode}}),g.prototype.generateKeys=function(){return this._priv||(this._priv=new n(l(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},g.prototype.computeSecret=function(e){var t=(e=(e=new n(e)).toRed(this._prime)).redPow(this._priv).fromRed(),r=new i.Buffer(t.toArray()),a=this.getPrime();if(r.length<a.length){var o=new i.Buffer(a.length-r.length);o.fill(0),r=i.Buffer.concat([o,r])}return r},g.prototype.getPublicKey=function(e){return v(this._pub,e)},g.prototype.getPrivateKey=function(e){return v(this._priv,e)},g.prototype.getPrime=function(e){return v(this.__prime,e)},g.prototype.getGenerator=function(e){return v(this._gen,e)},g.prototype.setGenerator=function(e,t){return t=t||"utf8",i.Buffer.isBuffer(e)||(e=new i.Buffer(e,t)),this.__gen=e,this._gen=new n(e),this}},296:function(e,t,r){var i=r(7223);e.exports=v,v.simpleSieve=b,v.fermatTest=g;var n=r(711),a=new n(24),o=new(r(1354)),s=new n(1),u=new n(2),f=new n(5);new n(16),new n(8);var c=new n(10),d=new n(3);new n(7);var l=new n(11),h=new n(4);new n(12);var p=null;function m(){if(null!==p)return p;var e=1048576,t=[];t[0]=2;for(var r=1,i=3;i<e;i+=2){for(var n=Math.ceil(Math.sqrt(i)),a=0;a<r&&t[a]<=n&&i%t[a]!=0;a++);r!==a&&t[a]<=n||(t[r++]=i)}return p=t,t}function b(e){for(var t=m(),r=0;r<t.length;r++)if(0===e.modn(t[r]))if(0!==e.cmpn(t[r]))return!1;else break;return!0}function g(e){var t=n.mont(e);return 0===u.toRed(t).redPow(e.subn(1)).fromRed().cmpn(1)}function v(e,t){var r,p;if(e<16)if(2===t||5===t)return new n([140,123]);else return new n([140,39]);for(t=new n(t);;){for(r=new n(i(Math.ceil(e/8)));r.bitLength()>e;)r.ishrn(1);if(r.isEven()&&r.iadd(s),r.testn(1)||r.iadd(u),t.cmp(u)){if(!t.cmp(f))for(;r.mod(c).cmp(d);)r.iadd(h)}else for(;r.mod(a).cmp(l);)r.iadd(h);if(b(p=r.shrn(1))&&b(r)&&g(p)&&g(r)&&o.test(p)&&o.test(r))return r}}},949:function(e,t,r){"use strict";var i=t;i.version=r(2531).i8,i.utils=r(4401),i.rand=r(3500),i.curve=r(9359),i.curves=r(6226),i.ec=r(4088),i.eddsa=r(8511)},2727:function(e,t,r){"use strict";var i=r(711),n=r(4401),a=n.getNAF,o=n.getJSF,s=n.assert;function u(e,t){this.type=e,this.p=new i(t.p,16),this.red=t.prime?i.red(t.prime):i.mont(this.p),this.zero=new i(0).toRed(this.red),this.one=new i(1).toRed(this.red),this.two=new i(2).toRed(this.red),this.n=t.n&&new i(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=[,,,,],this._wnafT2=[,,,,],this._wnafT3=[,,,,],this._wnafT4=[,,,,],this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function f(e,t){this.curve=e,this.type=t,this.precomputed=null}e.exports=u,u.prototype.point=function(){throw Error("Not implemented")},u.prototype.validate=function(){throw Error("Not implemented")},u.prototype._fixedNafMul=function(e,t){s(e.precomputed);var r=e._getDoubles(),i=a(t,1,this._bitLength),n=(1<<r.step+1)-(r.step%2==0?2:1);n/=3;for(var o=[],u=0;u<i.length;u+=r.step){for(var f=0,t=u+r.step-1;t>=u;t--)f=(f<<1)+i[t];o.push(f)}for(var c=this.jpoint(null,null,null),d=this.jpoint(null,null,null),l=n;l>0;l--){for(var u=0;u<o.length;u++){var f=o[u];f===l?d=d.mixedAdd(r.points[u]):f===-l&&(d=d.mixedAdd(r.points[u].neg()))}c=c.add(d)}return c.toP()},u.prototype._wnafMul=function(e,t){var r=4,i=e._getNAFPoints(r);r=i.wnd;for(var n=i.points,o=a(t,r,this._bitLength),u=this.jpoint(null,null,null),f=o.length-1;f>=0;f--){for(var t=0;f>=0&&0===o[f];f--)t++;if(f>=0&&t++,u=u.dblp(t),f<0)break;var c=o[f];s(0!==c),u="affine"===e.type?c>0?u.mixedAdd(n[c-1>>1]):u.mixedAdd(n[-c-1>>1].neg()):c>0?u.add(n[c-1>>1]):u.add(n[-c-1>>1].neg())}return"affine"===e.type?u.toP():u},u.prototype._wnafMulAdd=function(e,t,r,i,n){for(var s=this._wnafT1,u=this._wnafT2,f=this._wnafT3,c=0,d=0;d<i;d++){var l=t[d],h=l._getNAFPoints(e);s[d]=h.wnd,u[d]=h.points}for(var d=i-1;d>=1;d-=2){var p=d-1,m=d;if(1!==s[p]||1!==s[m]){f[p]=a(r[p],s[p],this._bitLength),f[m]=a(r[m],s[m],this._bitLength),c=Math.max(f[p].length,c),c=Math.max(f[m].length,c);continue}var b=[t[p],null,null,t[m]];0===t[p].y.cmp(t[m].y)?(b[1]=t[p].add(t[m]),b[2]=t[p].toJ().mixedAdd(t[m].neg())):0===t[p].y.cmp(t[m].y.redNeg())?(b[1]=t[p].toJ().mixedAdd(t[m]),b[2]=t[p].add(t[m].neg())):(b[1]=t[p].toJ().mixedAdd(t[m]),b[2]=t[p].toJ().mixedAdd(t[m].neg()));var g=[-3,-1,-5,-7,0,7,5,1,3],v=o(r[p],r[m]);c=Math.max(v[0].length,c),f[p]=Array(c),f[m]=Array(c);for(var y=0;y<c;y++){var _=0|v[0][y],x=0|v[1][y];f[p][y]=g[(_+1)*3+(x+1)],f[m][y]=0,u[p]=b}}for(var w=this.jpoint(null,null,null),S=this._wnafT4,d=c;d>=0;d--){for(var k=0;d>=0;){for(var $=!0,y=0;y<i;y++)S[y]=0|f[y][d],0!==S[y]&&($=!1);if(!$)break;k++,d--}if(d>=0&&k++,w=w.dblp(k),d<0)break;for(var y=0;y<i;y++){var l,I=S[y];0!==I&&(I>0?l=u[y][I-1>>1]:I<0&&(l=u[y][-I-1>>1].neg()),w="affine"===l.type?w.mixedAdd(l):w.add(l))}}for(var d=0;d<i;d++)u[d]=null;return n?w:w.toP()},u.BasePoint=f,f.prototype.eq=function(){throw Error("Not implemented")},f.prototype.validate=function(){return this.curve.validate(this)},u.prototype.decodePoint=function(e,t){e=n.toArray(e,t);var r=this.p.byteLength();if((4===e[0]||6===e[0]||7===e[0])&&e.length-1==2*r)return 6===e[0]?s(e[e.length-1]%2==0):7===e[0]&&s(e[e.length-1]%2==1),this.point(e.slice(1,1+r),e.slice(1+r,1+2*r));if((2===e[0]||3===e[0])&&e.length-1===r)return this.pointFromX(e.slice(1,1+r),3===e[0]);throw Error("Unknown point format")},f.prototype.encodeCompressed=function(e){return this.encode(e,!0)},f.prototype._encode=function(e){var t=this.curve.p.byteLength(),r=this.getX().toArray("be",t);return e?[this.getY().isEven()?2:3].concat(r):[4].concat(r,this.getY().toArray("be",t))},f.prototype.encode=function(e,t){return n.encode(this._encode(t),e)},f.prototype.precompute=function(e){if(this.precomputed)return this;var t={doubles:null,naf:null,beta:null};return t.naf=this._getNAFPoints(8),t.doubles=this._getDoubles(4,e),t.beta=this._getBeta(),this.precomputed=t,this},f.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var t=this.precomputed.doubles;return!!t&&t.points.length>=Math.ceil((e.bitLength()+1)/t.step)},f.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],i=this,n=0;n<t;n+=e){for(var a=0;a<e;a++)i=i.dbl();r.push(i)}return{step:e,points:r}},f.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var t=[this],r=(1<<e)-1,i=1===r?null:this.dbl(),n=1;n<r;n++)t[n]=t[n-1].add(i);return{wnd:e,points:t}},f.prototype._getBeta=function(){return null},f.prototype.dblp=function(e){for(var t=this,r=0;r<e;r++)t=t.dbl();return t}},2705:function(e,t,r){"use strict";var i=r(4401),n=r(711),a=r(3782),o=r(2727),s=i.assert;function u(e){this.twisted=(0|e.a)!=1,this.mOneA=this.twisted&&(0|e.a)==-1,this.extended=this.mOneA,o.call(this,"edwards",e),this.a=new n(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new n(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new n(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),s(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=(0|e.c)==1}function f(e,t,r,i,a){o.BasePoint.call(this,e,"projective"),null===t&&null===r&&null===i?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new n(t,16),this.y=new n(r,16),this.z=i?new n(i,16):this.curve.one,this.t=a&&new n(a,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}a(u,o),e.exports=u,u.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},u.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},u.prototype.jpoint=function(e,t,r,i){return this.point(e,t,r,i)},u.prototype.pointFromX=function(e,t){(e=new n(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),i=this.c2.redSub(this.a.redMul(r)),a=this.one.redSub(this.c2.redMul(this.d).redMul(r)),o=i.redMul(a.redInvm()),s=o.redSqrt();if(0!==s.redSqr().redSub(o).cmp(this.zero))throw Error("invalid point");var u=s.fromRed().isOdd();return(t&&!u||!t&&u)&&(s=s.redNeg()),this.point(e,s)},u.prototype.pointFromY=function(e,t){(e=new n(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),i=r.redSub(this.c2),a=r.redMul(this.d).redMul(this.c2).redSub(this.a),o=i.redMul(a.redInvm());if(0===o.cmp(this.zero))if(!t)return this.point(this.zero,e);else throw Error("invalid point");var s=o.redSqrt();if(0!==s.redSqr().redSub(o).cmp(this.zero))throw Error("invalid point");return s.fromRed().isOdd()!==t&&(s=s.redNeg()),this.point(s,e)},u.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),r=e.y.redSqr(),i=t.redMul(this.a).redAdd(r),n=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(r)));return 0===i.cmp(n)},a(f,o.BasePoint),u.prototype.pointFromJSON=function(e){return f.fromJSON(this,e)},u.prototype.point=function(e,t,r,i){return new f(this,e,t,r,i)},f.fromJSON=function(e,t){return new f(e,t[0],t[1],t[2])},f.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},f.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},f.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var i=this.curve._mulA(e),n=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),a=i.redAdd(t),o=a.redSub(r),s=i.redSub(t),u=n.redMul(o),f=a.redMul(s),c=n.redMul(s),d=o.redMul(a);return this.curve.point(u,f,d,c)},f.prototype._projDbl=function(){var e,t,r,i=this.x.redAdd(this.y).redSqr(),n=this.x.redSqr(),a=this.y.redSqr();if(this.curve.twisted){var o=this.curve._mulA(n),s=o.redAdd(a);if(this.zOne)e=i.redSub(n).redSub(a).redMul(s.redSub(this.curve.two)),t=s.redMul(o.redSub(a)),r=s.redSqr().redSub(s).redSub(s);else{var u=this.z.redSqr(),f=s.redSub(u).redISub(u);e=i.redSub(n).redISub(a).redMul(f),t=s.redMul(o.redSub(a)),r=s.redMul(f)}}else{var o=n.redAdd(a),u=this.curve._mulC(this.z).redSqr(),f=o.redSub(u).redSub(u);e=this.curve._mulC(i.redISub(o)).redMul(f),t=this.curve._mulC(o).redMul(n.redISub(a)),r=o.redMul(f)}return this.curve.point(e,t,r)},f.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},f.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),r=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),i=this.t.redMul(this.curve.dd).redMul(e.t),n=this.z.redMul(e.z.redAdd(e.z)),a=r.redSub(t),o=n.redSub(i),s=n.redAdd(i),u=r.redAdd(t),f=a.redMul(o),c=s.redMul(u),d=a.redMul(u),l=o.redMul(s);return this.curve.point(f,c,l,d)},f.prototype._projAdd=function(e){var t,r,i=this.z.redMul(e.z),n=i.redSqr(),a=this.x.redMul(e.x),o=this.y.redMul(e.y),s=this.curve.d.redMul(a).redMul(o),u=n.redSub(s),f=n.redAdd(s),c=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(a).redISub(o),d=i.redMul(u).redMul(c);return this.curve.twisted?(t=i.redMul(f).redMul(o.redSub(this.curve._mulA(a))),r=u.redMul(f)):(t=i.redMul(f).redMul(o.redSub(a)),r=this.curve._mulC(u).redMul(f)),this.curve.point(d,t,r)},f.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},f.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},f.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},f.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},f.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},f.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},f.prototype.getX=function(){return this.normalize(),this.x.fromRed()},f.prototype.getY=function(){return this.normalize(),this.y.fromRed()},f.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},f.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var r=e.clone(),i=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(i),0===this.x.cmp(t))return!0}},f.prototype.toP=f.prototype.normalize,f.prototype.mixedAdd=f.prototype.add},9359:function(e,t,r){"use strict";var i=t;i.base=r(2727),i.short=r(4720),i.mont=r(6653),i.edwards=r(2705)},6653:function(e,t,r){"use strict";var i=r(711),n=r(3782),a=r(2727),o=r(4401);function s(e){a.call(this,"mont",e),this.a=new i(e.a,16).toRed(this.red),this.b=new i(e.b,16).toRed(this.red),this.i4=new i(4).toRed(this.red).redInvm(),this.two=new i(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function u(e,t,r){a.BasePoint.call(this,e,"projective"),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new i(t,16),this.z=new i(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}n(s,a),e.exports=s,s.prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),i=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t);return 0===i.redSqrt().redSqr().cmp(i)},n(u,a.BasePoint),s.prototype.decodePoint=function(e,t){return this.point(o.toArray(e,t),1)},s.prototype.point=function(e,t){return new u(this,e,t)},s.prototype.pointFromJSON=function(e){return u.fromJSON(this,e)},u.prototype.precompute=function(){},u.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},u.fromJSON=function(e,t){return new u(e,t[0],t[1]||e.one)},u.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},u.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},u.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),r=e.redSub(t),i=e.redMul(t),n=r.redMul(t.redAdd(this.curve.a24.redMul(r)));return this.curve.point(i,n)},u.prototype.add=function(){throw Error("Not supported on Montgomery curve")},u.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),i=this.x.redSub(this.z),n=e.x.redAdd(e.z),a=e.x.redSub(e.z).redMul(r),o=n.redMul(i),s=t.z.redMul(a.redAdd(o).redSqr()),u=t.x.redMul(a.redISub(o).redSqr());return this.curve.point(s,u)},u.prototype.mul=function(e){for(var t=e.clone(),r=this,i=this.curve.point(null,null),n=this,a=[];0!==t.cmpn(0);t.iushrn(1))a.push(t.andln(1));for(var o=a.length-1;o>=0;o--)0===a[o]?(r=r.diffAdd(i,n),i=i.dbl()):(i=r.diffAdd(i,n),r=r.dbl());return i},u.prototype.mulAdd=function(){throw Error("Not supported on Montgomery curve")},u.prototype.jumlAdd=function(){throw Error("Not supported on Montgomery curve")},u.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},u.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},u.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},4720:function(e,t,r){"use strict";var i=r(4401),n=r(711),a=r(3782),o=r(2727),s=i.assert;function u(e){o.call(this,"short",e),this.a=new n(e.a,16).toRed(this.red),this.b=new n(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=[,,,,],this._endoWnafT2=[,,,,]}function f(e,t,r,i){o.BasePoint.call(this,e,"affine"),null===t&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new n(t,16),this.y=new n(r,16),i&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function c(e,t,r,i){o.BasePoint.call(this,e,"jacobian"),null===t&&null===r&&null===i?(this.x=this.curve.one,this.y=this.curve.one,this.z=new n(0)):(this.x=new n(t,16),this.y=new n(r,16),this.z=new n(i,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}a(u,o),e.exports=u,u.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){if(e.beta)t=new n(e.beta,16).toRed(this.red);else{var t,r,i,a=this._getEndoRoots(this.p);t=(t=0>a[0].cmp(a[1])?a[0]:a[1]).toRed(this.red)}if(e.lambda)r=new n(e.lambda,16);else{var o=this._getEndoRoots(this.n);0===this.g.mul(o[0]).x.cmp(this.g.x.redMul(t))?r=o[0]:(r=o[1],s(0===this.g.mul(r).x.cmp(this.g.x.redMul(t))))}return i=e.basis?e.basis.map(function(e){return{a:new n(e.a,16),b:new n(e.b,16)}}):this._getEndoBasis(r),{beta:t,lambda:r,basis:i}}},u.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:n.mont(e),r=new n(2).toRed(t).redInvm(),i=r.redNeg(),a=new n(3).toRed(t).redNeg().redSqrt().redMul(r);return[i.redAdd(a).fromRed(),i.redSub(a).fromRed()]},u.prototype._getEndoBasis=function(e){for(var t,r,i,a,o,s,u,f,c,d=this.n.ushrn(Math.floor(this.n.bitLength()/2)),l=e,h=this.n.clone(),p=new n(1),m=new n(0),b=new n(0),g=new n(1),v=0;0!==l.cmpn(0);){var y=h.div(l);f=h.sub(y.mul(l)),c=b.sub(y.mul(p));var _=g.sub(y.mul(m));if(!i&&0>f.cmp(d))t=u.neg(),r=p,i=f.neg(),a=c;else if(i&&2==++v)break;u=f,h=l,l=f,b=p,p=c,g=m,m=_}o=f.neg(),s=c;var x=i.sqr().add(a.sqr());return o.sqr().add(s.sqr()).cmp(x)>=0&&(o=t,s=r),i.negative&&(i=i.neg(),a=a.neg()),o.negative&&(o=o.neg(),s=s.neg()),[{a:i,b:a},{a:o,b:s}]},u.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],i=t[1],n=i.b.mul(e).divRound(this.n),a=r.b.neg().mul(e).divRound(this.n),o=n.mul(r.a),s=a.mul(i.a),u=n.mul(r.b),f=a.mul(i.b);return{k1:e.sub(o).sub(s),k2:u.add(f).neg()}},u.prototype.pointFromX=function(e,t){(e=new n(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),i=r.redSqrt();if(0!==i.redSqr().redSub(r).cmp(this.zero))throw Error("invalid point");var a=i.fromRed().isOdd();return(t&&!a||!t&&a)&&(i=i.redNeg()),this.point(e,i)},u.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,i=this.a.redMul(t),n=t.redSqr().redMul(t).redIAdd(i).redIAdd(this.b);return 0===r.redSqr().redISub(n).cmpn(0)},u.prototype._endoWnafMulAdd=function(e,t,r){for(var i=this._endoWnafT1,n=this._endoWnafT2,a=0;a<e.length;a++){var o=this._endoSplit(t[a]),s=e[a],u=s._getBeta();o.k1.negative&&(o.k1.ineg(),s=s.neg(!0)),o.k2.negative&&(o.k2.ineg(),u=u.neg(!0)),i[2*a]=s,i[2*a+1]=u,n[2*a]=o.k1,n[2*a+1]=o.k2}for(var f=this._wnafMulAdd(1,i,n,2*a,r),c=0;c<2*a;c++)i[c]=null,n[c]=null;return f},a(f,o.BasePoint),u.prototype.point=function(e,t,r){return new f(this,e,t,r)},u.prototype.pointFromJSON=function(e,t){return f.fromJSON(this,e,t)},f.prototype._getBeta=function(){if(this.curve.endo){var e=this.precomputed;if(e&&e.beta)return e.beta;var t=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var r=this.curve,i=function(e){return r.point(e.x.redMul(r.endo.beta),e.y)};e.beta=t,t.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(i)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(i)}}}return t}},f.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},f.fromJSON=function(e,t,r){"string"==typeof t&&(t=JSON.parse(t));var i=e.point(t[0],t[1],r);if(!t[2])return i;function n(t){return e.point(t[0],t[1],r)}var a=t[2];return i.precomputed={beta:null,doubles:a.doubles&&{step:a.doubles.step,points:[i].concat(a.doubles.points.map(n))},naf:a.naf&&{wnd:a.naf.wnd,points:[i].concat(a.naf.points.map(n))}},i},f.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},f.prototype.isInfinity=function(){return this.inf},f.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e)||0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var r=t.redSqr().redISub(this.x).redISub(e.x),i=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,i)},f.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,r=this.x.redSqr(),i=e.redInvm(),n=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(i),a=n.redSqr().redISub(this.x.redAdd(this.x)),o=n.redMul(this.x.redSub(a)).redISub(this.y);return this.curve.point(a,o)},f.prototype.getX=function(){return this.x.fromRed()},f.prototype.getY=function(){return this.y.fromRed()},f.prototype.mul=function(e){return(e=new n(e,16),this.isInfinity())?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},f.prototype.mulAdd=function(e,t,r){var i=[this,t],n=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(i,n):this.curve._wnafMulAdd(1,i,n,2)},f.prototype.jmulAdd=function(e,t,r){var i=[this,t],n=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(i,n,!0):this.curve._wnafMulAdd(1,i,n,2,!0)},f.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},f.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,i=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(i)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(i)}}}return t},f.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},a(c,o.BasePoint),u.prototype.jpoint=function(e,t,r){return new c(this,e,t,r)},c.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),i=this.y.redMul(t).redMul(e);return this.curve.point(r,i)},c.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},c.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),i=this.x.redMul(t),n=e.x.redMul(r),a=this.y.redMul(t.redMul(e.z)),o=e.y.redMul(r.redMul(this.z)),s=i.redSub(n),u=a.redSub(o);if(0===s.cmpn(0))if(0!==u.cmpn(0))return this.curve.jpoint(null,null,null);else return this.dbl();var f=s.redSqr(),c=f.redMul(s),d=i.redMul(f),l=u.redSqr().redIAdd(c).redISub(d).redISub(d),h=u.redMul(d.redISub(l)).redISub(a.redMul(c)),p=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(l,h,p)},c.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,i=e.x.redMul(t),n=this.y,a=e.y.redMul(t).redMul(this.z),o=r.redSub(i),s=n.redSub(a);if(0===o.cmpn(0))if(0!==s.cmpn(0))return this.curve.jpoint(null,null,null);else return this.dbl();var u=o.redSqr(),f=u.redMul(o),c=r.redMul(u),d=s.redSqr().redIAdd(f).redISub(c).redISub(c),l=s.redMul(c.redISub(d)).redISub(n.redMul(f)),h=this.z.redMul(o);return this.curve.jpoint(d,l,h)},c.prototype.dblp=function(e){if(0===e||this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var t=this,r=0;r<e;r++)t=t.dbl();return t}for(var i=this.curve.a,n=this.curve.tinv,a=this.x,o=this.y,s=this.z,u=s.redSqr().redSqr(),f=o.redAdd(o),r=0;r<e;r++){var c=a.redSqr(),d=f.redSqr(),l=d.redSqr(),h=c.redAdd(c).redIAdd(c).redIAdd(i.redMul(u)),p=a.redMul(d),m=h.redSqr().redISub(p.redAdd(p)),b=p.redISub(m),g=h.redMul(b);g=g.redIAdd(g).redISub(l);var v=f.redMul(s);r+1<e&&(u=u.redMul(l)),a=m,s=v,f=g}return this.curve.jpoint(a,f.redMul(n),s)},c.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},c.prototype._zeroDbl=function(){if(this.zOne){var e,t,r,i=this.x.redSqr(),n=this.y.redSqr(),a=n.redSqr(),o=this.x.redAdd(n).redSqr().redISub(i).redISub(a);o=o.redIAdd(o);var s=i.redAdd(i).redIAdd(i),u=s.redSqr().redISub(o).redISub(o),f=a.redIAdd(a);f=(f=f.redIAdd(f)).redIAdd(f),e=u,t=s.redMul(o.redISub(u)).redISub(f),r=this.y.redAdd(this.y)}else{var c=this.x.redSqr(),d=this.y.redSqr(),l=d.redSqr(),h=this.x.redAdd(d).redSqr().redISub(c).redISub(l);h=h.redIAdd(h);var p=c.redAdd(c).redIAdd(c),m=p.redSqr(),b=l.redIAdd(l);b=(b=b.redIAdd(b)).redIAdd(b),e=m.redISub(h).redISub(h),t=p.redMul(h.redISub(e)).redISub(b),r=(r=this.y.redMul(this.z)).redIAdd(r)}return this.curve.jpoint(e,t,r)},c.prototype._threeDbl=function(){if(this.zOne){var e,t,r,i=this.x.redSqr(),n=this.y.redSqr(),a=n.redSqr(),o=this.x.redAdd(n).redSqr().redISub(i).redISub(a);o=o.redIAdd(o);var s=i.redAdd(i).redIAdd(i).redIAdd(this.curve.a),u=s.redSqr().redISub(o).redISub(o);e=u;var f=a.redIAdd(a);f=(f=f.redIAdd(f)).redIAdd(f),t=s.redMul(o.redISub(u)).redISub(f),r=this.y.redAdd(this.y)}else{var c=this.z.redSqr(),d=this.y.redSqr(),l=this.x.redMul(d),h=this.x.redSub(c).redMul(this.x.redAdd(c));h=h.redAdd(h).redIAdd(h);var p=l.redIAdd(l),m=(p=p.redIAdd(p)).redAdd(p);e=h.redSqr().redISub(m),r=this.y.redAdd(this.z).redSqr().redISub(d).redISub(c);var b=d.redSqr();b=(b=(b=b.redIAdd(b)).redIAdd(b)).redIAdd(b),t=h.redMul(p.redISub(e)).redISub(b)}return this.curve.jpoint(e,t,r)},c.prototype._dbl=function(){var e=this.curve.a,t=this.x,r=this.y,i=this.z,n=i.redSqr().redSqr(),a=t.redSqr(),o=r.redSqr(),s=a.redAdd(a).redIAdd(a).redIAdd(e.redMul(n)),u=t.redAdd(t),f=(u=u.redIAdd(u)).redMul(o),c=s.redSqr().redISub(f.redAdd(f)),d=f.redISub(c),l=o.redSqr();l=(l=(l=l.redIAdd(l)).redIAdd(l)).redIAdd(l);var h=s.redMul(d).redISub(l),p=r.redAdd(r).redMul(i);return this.curve.jpoint(c,h,p)},c.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr(),i=t.redSqr(),n=e.redAdd(e).redIAdd(e),a=n.redSqr(),o=this.x.redAdd(t).redSqr().redISub(e).redISub(i),s=(o=(o=(o=o.redIAdd(o)).redAdd(o).redIAdd(o)).redISub(a)).redSqr(),u=i.redIAdd(i);u=(u=(u=u.redIAdd(u)).redIAdd(u)).redIAdd(u);var f=n.redIAdd(o).redSqr().redISub(a).redISub(s).redISub(u),c=t.redMul(f);c=(c=c.redIAdd(c)).redIAdd(c);var d=this.x.redMul(s).redISub(c);d=(d=d.redIAdd(d)).redIAdd(d);var l=this.y.redMul(f.redMul(u.redISub(f)).redISub(o.redMul(s)));l=(l=(l=l.redIAdd(l)).redIAdd(l)).redIAdd(l);var h=this.z.redAdd(o).redSqr().redISub(r).redISub(s);return this.curve.jpoint(d,l,h)},c.prototype.mul=function(e,t){return e=new n(e,t),this.curve._wnafMul(this,e)},c.prototype.eq=function(e){if("affine"===e.type)return this.eq(e.toJ());if(this===e)return!0;var t=this.z.redSqr(),r=e.z.redSqr();if(0!==this.x.redMul(r).redISub(e.x.redMul(t)).cmpn(0))return!1;var i=t.redMul(this.z),n=r.redMul(e.z);return 0===this.y.redMul(n).redISub(e.y.redMul(i)).cmpn(0)},c.prototype.eqXToP=function(e){var t=this.z.redSqr(),r=e.toRed(this.curve.red).redMul(t);if(0===this.x.cmp(r))return!0;for(var i=e.clone(),n=this.curve.redN.redMul(t);;){if(i.iadd(this.curve.n),i.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(n),0===this.x.cmp(r))return!0}},c.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},c.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},6226:function(e,t,r){"use strict";var i,n=t,a=r(7028),o=r(9359),s=r(4401).assert;function u(e){"short"===e.type?this.curve=new o.short(e):"edwards"===e.type?this.curve=new o.edwards(e):this.curve=new o.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function f(e,t){Object.defineProperty(n,e,{configurable:!0,enumerable:!0,get:function(){var r=new u(t);return Object.defineProperty(n,e,{configurable:!0,enumerable:!0,value:r}),r}})}n.PresetCurve=u,f("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:a.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),f("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:a.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),f("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:a.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),f("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:a.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),f("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:a.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),f("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:a.sha256,gRed:!1,g:["9"]}),f("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:a.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{i=r(9702)}catch(e){i=void 0}f("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:a.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",i]})},4088:function(e,t,r){"use strict";var i=r(711),n=r(4910),a=r(4401),o=r(6226),s=r(3500),u=a.assert,f=r(4724),c=r(7526);function d(e){if(!(this instanceof d))return new d(e);"string"==typeof e&&(u(o.hasOwnProperty(e),"Unknown curve "+e),e=o[e]),e instanceof o.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}e.exports=d,d.prototype.keyPair=function(e){return new f(this,e)},d.prototype.keyFromPrivate=function(e,t){return f.fromPrivate(this,e,t)},d.prototype.keyFromPublic=function(e,t){return f.fromPublic(this,e,t)},d.prototype.genKeyPair=function(e){e||(e={});for(var t=new n({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||s(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),a=this.n.sub(new i(2));;){var o=new i(t.generate(r));if(!(o.cmp(a)>0))return o.iaddn(1),this.keyFromPrivate(o)}},d.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return(r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0)?e.sub(this.n):e},d.prototype.sign=function(e,t,r,a){"object"==typeof r&&(a=r,r=null),a||(a={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new i(e,16));for(var o=this.n.byteLength(),s=t.getPrivate().toArray("be",o),u=e.toArray("be",o),f=new n({hash:this.hash,entropy:s,nonce:u,pers:a.pers,persEnc:a.persEnc||"utf8"}),d=this.n.sub(new i(1)),l=0;;l++){var h=a.k?a.k(l):new i(f.generate(this.n.byteLength()));if(0>=(h=this._truncateToN(h,!0)).cmpn(1)||h.cmp(d)>=0)continue;var p=this.g.mul(h);if(!p.isInfinity()){var m=p.getX(),b=m.umod(this.n);if(0!==b.cmpn(0)){var g=h.invm(this.n).mul(b.mul(t.getPrivate()).iadd(e));if(0!==(g=g.umod(this.n)).cmpn(0)){var v=!!p.getY().isOdd()|2*(0!==m.cmp(b));return a.canonical&&g.cmp(this.nh)>0&&(g=this.n.sub(g),v^=1),new c({r:b,s:g,recoveryParam:v})}}}}},d.prototype.verify=function(e,t,r,n){e=this._truncateToN(new i(e,16)),r=this.keyFromPublic(r,n);var a=(t=new c(t,"hex")).r,o=t.s;if(0>a.cmpn(1)||a.cmp(this.n)>=0||0>o.cmpn(1)||o.cmp(this.n)>=0)return!1;var s=o.invm(this.n),u=s.mul(e).umod(this.n),f=s.mul(a).umod(this.n);if(!this.curve._maxwellTrick){var d=this.g.mulAdd(u,r.getPublic(),f);return!d.isInfinity()&&0===d.getX().umod(this.n).cmp(a)}var d=this.g.jmulAdd(u,r.getPublic(),f);return!d.isInfinity()&&d.eqXToP(a)},d.prototype.recoverPubKey=function(e,t,r,n){u((3&r)===r,"The recovery param is more than two bits"),t=new c(t,n);var a=this.n,o=new i(e),s=t.r,f=t.s,d=1&r,l=r>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&l)throw Error("Unable to find sencond key candinate");s=l?this.curve.pointFromX(s.add(this.curve.n),d):this.curve.pointFromX(s,d);var h=t.r.invm(a),p=a.sub(o).mul(h).umod(a),m=f.mul(h).umod(a);return this.g.mulAdd(p,s,m)},d.prototype.getKeyRecoveryParam=function(e,t,r,i){if(null!==(t=new c(t,i)).recoveryParam)return t.recoveryParam;for(var n,a=0;a<4;a++){try{n=this.recoverPubKey(e,t,a)}catch(e){continue}if(n.eq(r))return a}throw Error("Unable to find valid recovery factor")}},4724:function(e,t,r){"use strict";var i=r(711),n=r(4401).assert;function a(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}e.exports=a,a.fromPublic=function(e,t,r){return t instanceof a?t:new a(e,{pub:t,pubEnc:r})},a.fromPrivate=function(e,t,r){return t instanceof a?t:new a(e,{priv:t,privEnc:r})},a.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},a.prototype.getPublic=function(e,t){return("string"==typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t)?this.pub.encode(t,e):this.pub},a.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},a.prototype._importPrivate=function(e,t){this.priv=new i(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},a.prototype._importPublic=function(e,t){if(e.x||e.y){"mont"===this.ec.curve.type?n(e.x,"Need x coordinate"):("short"===this.ec.curve.type||"edwards"===this.ec.curve.type)&&n(e.x&&e.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(e.x,e.y);return}this.pub=this.ec.curve.decodePoint(e,t)},a.prototype.derive=function(e){return e.mul(this.priv).getX()},a.prototype.sign=function(e,t,r){return this.ec.sign(e,this,t,r)},a.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},a.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},7526:function(e,t,r){"use strict";var i=r(711),n=r(4401),a=n.assert;function o(e,t){if(e instanceof o)return e;this._importDER(e,t)||(a(e.r&&e.s,"Signature without r or s"),this.r=new i(e.r,16),this.s=new i(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function s(){this.place=0}function u(e,t){var r=e[t.place++];if(!(128&r))return r;var i=15&r;if(0===i||i>4)return!1;for(var n=0,a=0,o=t.place;a<i;a++,o++)n<<=8,n|=e[o],n>>>=0;return!(n<=127)&&(t.place=o,n)}function f(e){for(var t=0,r=e.length-1;!e[t]&&!(128&e[t+1])&&t<r;)t++;return 0===t?e:e.slice(t)}function c(e,t){if(t<128)return void e.push(t);var r=1+(Math.log(t)/Math.LN2>>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}e.exports=o,o.prototype._importDER=function(e,t){e=n.toArray(e,t);var r=new s;if(48!==e[r.place++])return!1;var a=u(e,r);if(!1===a||a+r.place!==e.length||2!==e[r.place++])return!1;var o=u(e,r);if(!1===o)return!1;var f=e.slice(r.place,o+r.place);if(r.place+=o,2!==e[r.place++])return!1;var c=u(e,r);if(!1===c||e.length!==c+r.place)return!1;var d=e.slice(r.place,c+r.place);if(0===f[0])if(!(128&f[1]))return!1;else f=f.slice(1);if(0===d[0])if(!(128&d[1]))return!1;else d=d.slice(1);return this.r=new i(f),this.s=new i(d),this.recoveryParam=null,!0},o.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=f(t),r=f(r);!r[0]&&!(128&r[1]);)r=r.slice(1);var i=[2];c(i,t.length),(i=i.concat(t)).push(2),c(i,r.length);var a=i.concat(r),o=[48];return c(o,a.length),o=o.concat(a),n.encode(o,e)}},8511:function(e,t,r){"use strict";var i=r(7028),n=r(6226),a=r(4401),o=a.assert,s=a.parseBytes,u=r(9917),f=r(9314);function c(e){if(o("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof c))return new c(e);var e=n[e].curve;this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=i.sha512}e.exports=c,c.prototype.sign=function(e,t){e=s(e);var r=this.keyFromSecret(t),i=this.hashInt(r.messagePrefix(),e),n=this.g.mul(i),a=this.encodePoint(n),o=this.hashInt(a,r.pubBytes(),e).mul(r.priv()),u=i.add(o).umod(this.curve.n);return this.makeSignature({R:n,S:u,Rencoded:a})},c.prototype.verify=function(e,t,r){e=s(e),t=this.makeSignature(t);var i=this.keyFromPublic(r),n=this.hashInt(t.Rencoded(),i.pubBytes(),e),a=this.g.mul(t.S());return t.R().add(i.pub().mul(n)).eq(a)},c.prototype.hashInt=function(){for(var e=this.hash(),t=0;t<arguments.length;t++)e.update(arguments[t]);return a.intFromLE(e.digest()).umod(this.curve.n)},c.prototype.keyFromPublic=function(e){return u.fromPublic(this,e)},c.prototype.keyFromSecret=function(e){return u.fromSecret(this,e)},c.prototype.makeSignature=function(e){return e instanceof f?e:new f(this,e)},c.prototype.encodePoint=function(e){var t=e.getY().toArray("le",this.encodingLength);return t[this.encodingLength-1]|=128*!!e.getX().isOdd(),t},c.prototype.decodePoint=function(e){var t=(e=a.parseBytes(e)).length-1,r=e.slice(0,t).concat(-129&e[t]),i=(128&e[t])!=0,n=a.intFromLE(r);return this.curve.pointFromY(n,i)},c.prototype.encodeInt=function(e){return e.toArray("le",this.encodingLength)},c.prototype.decodeInt=function(e){return a.intFromLE(e)},c.prototype.isPoint=function(e){return e instanceof this.pointClass}},9917:function(e,t,r){"use strict";var i=r(4401),n=i.assert,a=i.parseBytes,o=i.cachedProperty;function s(e,t){this.eddsa=e,this._secret=a(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=a(t.pub)}s.fromPublic=function(e,t){return t instanceof s?t:new s(e,{pub:t})},s.fromSecret=function(e,t){return t instanceof s?t:new s(e,{secret:t})},s.prototype.secret=function(){return this._secret},o(s,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),o(s,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),o(s,"privBytes",function(){var e=this.eddsa,t=this.hash(),r=e.encodingLength-1,i=t.slice(0,e.encodingLength);return i[0]&=248,i[r]&=127,i[r]|=64,i}),o(s,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),o(s,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),o(s,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),s.prototype.sign=function(e){return n(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},s.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)},s.prototype.getSecret=function(e){return n(this._secret,"KeyPair is public only"),i.encode(this.secret(),e)},s.prototype.getPublic=function(e){return i.encode(this.pubBytes(),e)},e.exports=s},9314:function(e,t,r){"use strict";var i=r(711),n=r(4401),a=n.assert,o=n.cachedProperty,s=n.parseBytes;function u(e,t){this.eddsa=e,"object"!=typeof t&&(t=s(t)),Array.isArray(t)&&(t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),a(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof i&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}o(u,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),o(u,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),o(u,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),o(u,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),u.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},u.prototype.toHex=function(){return n.encode(this.toBytes(),"hex").toUpperCase()},e.exports=u},9702:function(e){e.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},4401:function(e,t,r){"use strict";var i=t,n=r(711),a=r(3523),o=r(6545);function s(e){return"string"==typeof e?i.toArray(e,"hex"):e}i.assert=a,i.toArray=o.toArray,i.zero2=o.zero2,i.toHex=o.toHex,i.encode=o.encode,i.getNAF=function(e,t,r){var i=Array(Math.max(e.bitLength(),r)+1);i.fill(0);for(var n=1<<t+1,a=e.clone(),o=0;o<i.length;o++){var s,u=a.andln(n-1);a.isOdd()?(s=u>(n>>1)-1?(n>>1)-u:u,a.isubn(s)):s=0,i[o]=s,a.iushrn(1)}return i},i.getJSF=function(e,t){var r=[[],[]];e=e.clone(),t=t.clone();for(var i=0,n=0;e.cmpn(-i)>0||t.cmpn(-n)>0;){var a,o,s=e.andln(3)+i&3,u=t.andln(3)+n&3;if(3===s&&(s=-1),3===u&&(u=-1),(1&s)==0)a=0;else{var f=e.andln(7)+i&7;a=(3===f||5===f)&&2===u?-s:s}if(r[0].push(a),(1&u)==0)o=0;else{var f=t.andln(7)+n&7;o=(3===f||5===f)&&2===s?-u:u}r[1].push(o),2*i===a+1&&(i=1-i),2*n===o+1&&(n=1-n),e.iushrn(1),t.iushrn(1)}return r},i.cachedProperty=function(e,t,r){var i="_"+t;e.prototype[t]=function(){return void 0!==this[i]?this[i]:this[i]=r.call(this)}},i.parseBytes=s,i.intFromLE=function(e){return new n(e,"hex","le")}},8368:function(e,t,r){var i=r(6911).Buffer,n=r(3533);e.exports=function(e,t,r,a){if(i.isBuffer(e)||(e=i.from(e,"binary")),t&&(i.isBuffer(t)||(t=i.from(t,"binary")),8!==t.length))throw RangeError("salt should be Buffer with 8 byte length");for(var o=r/8,s=i.alloc(o),u=i.alloc(a||0),f=i.alloc(0);o>0||a>0;){var c=new n;c.update(f),c.update(e),t&&c.update(t),f=c.digest();var d=0;if(o>0){var l=s.length-o;d=Math.min(o,f.length),f.copy(s,l,0,d),o-=d}if(d<f.length&&a>0){var h=u.length-a,p=Math.min(a,f.length-d);f.copy(u,h,d,d+p),a-=p}}return f.fill(0),{key:s,iv:u}}},9029:function(e,t,r){"use strict";var i=r(6911).Buffer,n=r(3726).Transform;function a(e,t){if(!i.isBuffer(e)&&"string"!=typeof e)throw TypeError(t+" must be a string or a buffer")}function o(e){n.call(this),this._block=i.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}r(3782)(o,n),o.prototype._transform=function(e,t,r){var i=null;try{this.update(e,t)}catch(e){i=e}r(i)},o.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(e){t=e}e(t)},o.prototype.update=function(e,t){if(a(e,"Data"),this._finalized)throw Error("Digest already called");i.isBuffer(e)||(e=i.from(e,t));for(var r=this._block,n=0;this._blockOffset+e.length-n>=this._blockSize;){for(var o=this._blockOffset;o<this._blockSize;)r[o++]=e[n++];this._update(),this._blockOffset=0}for(;n<e.length;)r[this._blockOffset++]=e[n++];for(var s=0,u=8*e.length;u>0;++s)this._length[s]+=u,(u=this._length[s]/0x100000000|0)>0&&(this._length[s]-=0x100000000*u);return this},o.prototype._update=function(){throw Error("_update is not implemented")},o.prototype.digest=function(e){if(this._finalized)throw Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return t},o.prototype._digest=function(){throw Error("_digest is not implemented")},e.exports=o},7028:function(e,t,r){var i=t;i.utils=r(263),i.common=r(1330),i.sha=r(301),i.ripemd=r(3079),i.hmac=r(3092),i.sha1=i.sha.sha1,i.sha256=i.sha.sha256,i.sha224=i.sha.sha224,i.sha384=i.sha.sha384,i.sha512=i.sha.sha512,i.ripemd160=i.ripemd.ripemd160},1330:function(e,t,r){"use strict";var i=r(263),n=r(3523);function a(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}t.BlockHash=a,a.prototype.update=function(e,t){if(e=i.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var r=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=i.join32(e,0,e.length-r,this.endian);for(var n=0;n<e.length;n+=this._delta32)this._update(e,n,n+this._delta32)}return this},a.prototype.digest=function(e){return this.update(this._pad()),n(null===this.pending),this._digest(e)},a.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,r=t-(e+this.padLength)%t,i=Array(r+this.padLength);i[0]=128;for(var n=1;n<r;n++)i[n]=0;if(e<<=3,"big"===this.endian){for(var a=8;a<this.padLength;a++)i[n++]=0;i[n++]=0,i[n++]=0,i[n++]=0,i[n++]=0,i[n++]=e>>>24&255,i[n++]=e>>>16&255,i[n++]=e>>>8&255,i[n++]=255&e}else for(a=8,i[n++]=255&e,i[n++]=e>>>8&255,i[n++]=e>>>16&255,i[n++]=e>>>24&255,i[n++]=0,i[n++]=0,i[n++]=0,i[n++]=0;a<this.padLength;a++)i[n++]=0;return i}},3092:function(e,t,r){"use strict";var i=r(263),n=r(3523);function a(e,t,r){if(!(this instanceof a))return new a(e,t,r);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(i.toArray(t,r))}e.exports=a,a.prototype._init=function(e){e.length>this.blockSize&&(e=(new this.Hash).update(e).digest()),n(e.length<=this.blockSize);for(var t=e.length;t<this.blockSize;t++)e.push(0);for(t=0;t<e.length;t++)e[t]^=54;for(t=0,this.inner=(new this.Hash).update(e);t<e.length;t++)e[t]^=106;this.outer=(new this.Hash).update(e)},a.prototype.update=function(e,t){return this.inner.update(e,t),this},a.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)}},3079:function(e,t,r){"use strict";var i=r(263),n=r(1330),a=i.rotl32,o=i.sum32,s=i.sum32_3,u=i.sum32_4,f=n.BlockHash;function c(){if(!(this instanceof c))return new c;f.call(this),this.h=[0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0],this.endian="little"}function d(e,t,r,i){return e<=15?t^r^i:e<=31?t&r|~t&i:e<=47?(t|~r)^i:e<=63?t&i|r&~i:t^(r|~i)}function l(e){return e<=15?0:e<=31?0x5a827999:e<=47?0x6ed9eba1:e<=63?0x8f1bbcdc:0xa953fd4e}function h(e){return e<=15?0x50a28be6:e<=31?0x5c4dd124:e<=47?0x6d703ef3:0x7a6d76e9*!!(e<=63)}i.inherits(c,f),t.ripemd160=c,c.blockSize=512,c.outSize=160,c.hmacStrength=192,c.padLength=64,c.prototype._update=function(e,t){for(var r=this.h[0],i=this.h[1],n=this.h[2],f=this.h[3],c=this.h[4],v=r,y=i,_=n,x=f,w=c,S=0;S<80;S++){var k=o(a(u(r,d(S,i,n,f),e[p[S]+t],l(S)),b[S]),c);r=c,c=f,f=a(n,10),n=i,i=k,k=o(a(u(v,d(79-S,y,_,x),e[m[S]+t],h(S)),g[S]),w),v=w,w=x,x=a(_,10),_=y,y=k}k=s(this.h[1],n,x),this.h[1]=s(this.h[2],f,w),this.h[2]=s(this.h[3],c,v),this.h[3]=s(this.h[4],r,y),this.h[4]=s(this.h[0],i,_),this.h[0]=k},c.prototype._digest=function(e){return"hex"===e?i.toHex32(this.h,"little"):i.split32(this.h,"little")};var p=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],m=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],b=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],g=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},301:function(e,t,r){"use strict";t.sha1=r(2742),t.sha224=r(7105),t.sha256=r(1525),t.sha384=r(9948),t.sha512=r(1319)},2742:function(e,t,r){"use strict";var i=r(263),n=r(1330),a=r(2975),o=i.rotl32,s=i.sum32,u=i.sum32_5,f=a.ft_1,c=n.BlockHash,d=[0x5a827999,0x6ed9eba1,0x8f1bbcdc,0xca62c1d6];function l(){if(!(this instanceof l))return new l;c.call(this),this.h=[0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0],this.W=Array(80)}i.inherits(l,c),e.exports=l,l.blockSize=512,l.outSize=160,l.hmacStrength=80,l.padLength=64,l.prototype._update=function(e,t){for(var r=this.W,i=0;i<16;i++)r[i]=e[t+i];for(;i<r.length;i++)r[i]=o(r[i-3]^r[i-8]^r[i-14]^r[i-16],1);var n=this.h[0],a=this.h[1],c=this.h[2],l=this.h[3],h=this.h[4];for(i=0;i<r.length;i++){var p=~~(i/20),m=u(o(n,5),f(p,a,c,l),h,r[i],d[p]);h=l,l=c,c=o(a,30),a=n,n=m}this.h[0]=s(this.h[0],n),this.h[1]=s(this.h[1],a),this.h[2]=s(this.h[2],c),this.h[3]=s(this.h[3],l),this.h[4]=s(this.h[4],h)},l.prototype._digest=function(e){return"hex"===e?i.toHex32(this.h,"big"):i.split32(this.h,"big")}},7105:function(e,t,r){"use strict";var i=r(263),n=r(1525);function a(){if(!(this instanceof a))return new a;n.call(this),this.h=[0xc1059ed8,0x367cd507,0x3070dd17,0xf70e5939,0xffc00b31,0x68581511,0x64f98fa7,0xbefa4fa4]}i.inherits(a,n),e.exports=a,a.blockSize=512,a.outSize=224,a.hmacStrength=192,a.padLength=64,a.prototype._digest=function(e){return"hex"===e?i.toHex32(this.h.slice(0,7),"big"):i.split32(this.h.slice(0,7),"big")}},1525:function(e,t,r){"use strict";var i=r(263),n=r(1330),a=r(2975),o=r(3523),s=i.sum32,u=i.sum32_4,f=i.sum32_5,c=a.ch32,d=a.maj32,l=a.s0_256,h=a.s1_256,p=a.g0_256,m=a.g1_256,b=n.BlockHash,g=[0x428a2f98,0x71374491,0xb5c0fbcf,0xe9b5dba5,0x3956c25b,0x59f111f1,0x923f82a4,0xab1c5ed5,0xd807aa98,0x12835b01,0x243185be,0x550c7dc3,0x72be5d74,0x80deb1fe,0x9bdc06a7,0xc19bf174,0xe49b69c1,0xefbe4786,0xfc19dc6,0x240ca1cc,0x2de92c6f,0x4a7484aa,0x5cb0a9dc,0x76f988da,0x983e5152,0xa831c66d,0xb00327c8,0xbf597fc7,0xc6e00bf3,0xd5a79147,0x6ca6351,0x14292967,0x27b70a85,0x2e1b2138,0x4d2c6dfc,0x53380d13,0x650a7354,0x766a0abb,0x81c2c92e,0x92722c85,0xa2bfe8a1,0xa81a664b,0xc24b8b70,0xc76c51a3,0xd192e819,0xd6990624,0xf40e3585,0x106aa070,0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5,0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3,0x748f82ee,0x78a5636f,0x84c87814,0x8cc70208,0x90befffa,0xa4506ceb,0xbef9a3f7,0xc67178f2];function v(){if(!(this instanceof v))return new v;b.call(this),this.h=[0x6a09e667,0xbb67ae85,0x3c6ef372,0xa54ff53a,0x510e527f,0x9b05688c,0x1f83d9ab,0x5be0cd19],this.k=g,this.W=Array(64)}i.inherits(v,b),e.exports=v,v.blockSize=512,v.outSize=256,v.hmacStrength=192,v.padLength=64,v.prototype._update=function(e,t){for(var r=this.W,i=0;i<16;i++)r[i]=e[t+i];for(;i<r.length;i++)r[i]=u(m(r[i-2]),r[i-7],p(r[i-15]),r[i-16]);var n=this.h[0],a=this.h[1],b=this.h[2],g=this.h[3],v=this.h[4],y=this.h[5],_=this.h[6],x=this.h[7];for(o(this.k.length===r.length),i=0;i<r.length;i++){var w=f(x,h(v),c(v,y,_),this.k[i],r[i]),S=s(l(n),d(n,a,b));x=_,_=y,y=v,v=s(g,w),g=b,b=a,a=n,n=s(w,S)}this.h[0]=s(this.h[0],n),this.h[1]=s(this.h[1],a),this.h[2]=s(this.h[2],b),this.h[3]=s(this.h[3],g),this.h[4]=s(this.h[4],v),this.h[5]=s(this.h[5],y),this.h[6]=s(this.h[6],_),this.h[7]=s(this.h[7],x)},v.prototype._digest=function(e){return"hex"===e?i.toHex32(this.h,"big"):i.split32(this.h,"big")}},9948:function(e,t,r){"use strict";var i=r(263),n=r(1319);function a(){if(!(this instanceof a))return new a;n.call(this),this.h=[0xcbbb9d5d,0xc1059ed8,0x629a292a,0x367cd507,0x9159015a,0x3070dd17,0x152fecd8,0xf70e5939,0x67332667,0xffc00b31,0x8eb44a87,0x68581511,0xdb0c2e0d,0x64f98fa7,0x47b5481d,0xbefa4fa4]}i.inherits(a,n),e.exports=a,a.blockSize=1024,a.outSize=384,a.hmacStrength=192,a.padLength=128,a.prototype._digest=function(e){return"hex"===e?i.toHex32(this.h.slice(0,12),"big"):i.split32(this.h.slice(0,12),"big")}},1319:function(e,t,r){"use strict";var i=r(263),n=r(1330),a=r(3523),o=i.rotr64_hi,s=i.rotr64_lo,u=i.shr64_hi,f=i.shr64_lo,c=i.sum64,d=i.sum64_hi,l=i.sum64_lo,h=i.sum64_4_hi,p=i.sum64_4_lo,m=i.sum64_5_hi,b=i.sum64_5_lo,g=n.BlockHash,v=[0x428a2f98,0xd728ae22,0x71374491,0x23ef65cd,0xb5c0fbcf,0xec4d3b2f,0xe9b5dba5,0x8189dbbc,0x3956c25b,0xf348b538,0x59f111f1,0xb605d019,0x923f82a4,0xaf194f9b,0xab1c5ed5,0xda6d8118,0xd807aa98,0xa3030242,0x12835b01,0x45706fbe,0x243185be,0x4ee4b28c,0x550c7dc3,0xd5ffb4e2,0x72be5d74,0xf27b896f,0x80deb1fe,0x3b1696b1,0x9bdc06a7,0x25c71235,0xc19bf174,0xcf692694,0xe49b69c1,0x9ef14ad2,0xefbe4786,0x384f25e3,0xfc19dc6,0x8b8cd5b5,0x240ca1cc,0x77ac9c65,0x2de92c6f,0x592b0275,0x4a7484aa,0x6ea6e483,0x5cb0a9dc,0xbd41fbd4,0x76f988da,0x831153b5,0x983e5152,0xee66dfab,0xa831c66d,0x2db43210,0xb00327c8,0x98fb213f,0xbf597fc7,0xbeef0ee4,0xc6e00bf3,0x3da88fc2,0xd5a79147,0x930aa725,0x6ca6351,0xe003826f,0x14292967,0xa0e6e70,0x27b70a85,0x46d22ffc,0x2e1b2138,0x5c26c926,0x4d2c6dfc,0x5ac42aed,0x53380d13,0x9d95b3df,0x650a7354,0x8baf63de,0x766a0abb,0x3c77b2a8,0x81c2c92e,0x47edaee6,0x92722c85,0x1482353b,0xa2bfe8a1,0x4cf10364,0xa81a664b,0xbc423001,0xc24b8b70,0xd0f89791,0xc76c51a3,0x654be30,0xd192e819,0xd6ef5218,0xd6990624,0x5565a910,0xf40e3585,0x5771202a,0x106aa070,0x32bbd1b8,0x19a4c116,0xb8d2d0c8,0x1e376c08,0x5141ab53,0x2748774c,0xdf8eeb99,0x34b0bcb5,0xe19b48a8,0x391c0cb3,0xc5c95a63,0x4ed8aa4a,0xe3418acb,0x5b9cca4f,0x7763e373,0x682e6ff3,0xd6b2b8a3,0x748f82ee,0x5defb2fc,0x78a5636f,0x43172f60,0x84c87814,0xa1f0ab72,0x8cc70208,0x1a6439ec,0x90befffa,0x23631e28,0xa4506ceb,0xde82bde9,0xbef9a3f7,0xb2c67915,0xc67178f2,0xe372532b,0xca273ece,0xea26619c,0xd186b8c7,0x21c0c207,0xeada7dd6,0xcde0eb1e,0xf57d4f7f,0xee6ed178,0x6f067aa,0x72176fba,0xa637dc5,0xa2c898a6,0x113f9804,0xbef90dae,0x1b710b35,0x131c471b,0x28db77f5,0x23047d84,0x32caab7b,0x40c72493,0x3c9ebe0a,0x15c9bebc,0x431d67c4,0x9c100d4c,0x4cc5d4be,0xcb3e42b6,0x597f299c,0xfc657e2a,0x5fcb6fab,0x3ad6faec,0x6c44198c,0x4a475817];function y(){if(!(this instanceof y))return new y;g.call(this),this.h=[0x6a09e667,0xf3bcc908,0xbb67ae85,0x84caa73b,0x3c6ef372,0xfe94f82b,0xa54ff53a,0x5f1d36f1,0x510e527f,0xade682d1,0x9b05688c,0x2b3e6c1f,0x1f83d9ab,0xfb41bd6b,0x5be0cd19,0x137e2179],this.k=v,this.W=Array(160)}function _(e,t,r,i,n){var a=e&r^~e&n;return a<0&&(a+=0x100000000),a}function x(e,t,r,i,n,a){var o=t&i^~t&a;return o<0&&(o+=0x100000000),o}function w(e,t,r,i,n){var a=e&r^e&n^r&n;return a<0&&(a+=0x100000000),a}function S(e,t,r,i,n,a){var o=t&i^t&a^i&a;return o<0&&(o+=0x100000000),o}function k(e,t){var r=o(e,t,28)^o(t,e,2)^o(t,e,7);return r<0&&(r+=0x100000000),r}function $(e,t){var r=s(e,t,28)^s(t,e,2)^s(t,e,7);return r<0&&(r+=0x100000000),r}function I(e,t){var r=o(e,t,14)^o(e,t,18)^o(t,e,9);return r<0&&(r+=0x100000000),r}function M(e,t){var r=s(e,t,14)^s(e,t,18)^s(t,e,9);return r<0&&(r+=0x100000000),r}function E(e,t){var r=o(e,t,1)^o(e,t,8)^u(e,t,7);return r<0&&(r+=0x100000000),r}function A(e,t){var r=s(e,t,1)^s(e,t,8)^f(e,t,7);return r<0&&(r+=0x100000000),r}function O(e,t){var r=o(e,t,19)^o(t,e,29)^u(e,t,6);return r<0&&(r+=0x100000000),r}function j(e,t){var r=s(e,t,19)^s(t,e,29)^f(e,t,6);return r<0&&(r+=0x100000000),r}i.inherits(y,g),e.exports=y,y.blockSize=1024,y.outSize=512,y.hmacStrength=192,y.padLength=128,y.prototype._prepareBlock=function(e,t){for(var r=this.W,i=0;i<32;i++)r[i]=e[t+i];for(;i<r.length;i+=2){var n=O(r[i-4],r[i-3]),a=j(r[i-4],r[i-3]),o=r[i-14],s=r[i-13],u=E(r[i-30],r[i-29]),f=A(r[i-30],r[i-29]),c=r[i-32],d=r[i-31];r[i]=h(n,a,o,s,u,f,c,d),r[i+1]=p(n,a,o,s,u,f,c,d)}},y.prototype._update=function(e,t){this._prepareBlock(e,t);var r=this.W,i=this.h[0],n=this.h[1],o=this.h[2],s=this.h[3],u=this.h[4],f=this.h[5],h=this.h[6],p=this.h[7],g=this.h[8],v=this.h[9],y=this.h[10],E=this.h[11],A=this.h[12],O=this.h[13],j=this.h[14],z=this.h[15];a(this.k.length===r.length);for(var U=0;U<r.length;U+=2){var P=j,T=z,R=I(g,v),N=M(g,v),D=_(g,v,y,E,A,O),B=x(g,v,y,E,A,O),Z=this.k[U],C=this.k[U+1],L=r[U],q=r[U+1],F=m(P,T,R,N,D,B,Z,C,L,q),J=b(P,T,R,N,D,B,Z,C,L,q);P=k(i,n),T=$(i,n);var W=d(P,T,R=w(i,n,o,s,u,f),N=S(i,n,o,s,u,f)),K=l(P,T,R,N);j=A,z=O,A=y,O=E,y=g,E=v,g=d(h,p,F,J),v=l(p,p,F,J),h=u,p=f,u=o,f=s,o=i,s=n,i=d(F,J,W,K),n=l(F,J,W,K)}c(this.h,0,i,n),c(this.h,2,o,s),c(this.h,4,u,f),c(this.h,6,h,p),c(this.h,8,g,v),c(this.h,10,y,E),c(this.h,12,A,O),c(this.h,14,j,z)},y.prototype._digest=function(e){return"hex"===e?i.toHex32(this.h,"big"):i.split32(this.h,"big")}},2975:function(e,t,r){"use strict";var i=r(263).rotr32;function n(e,t,r){return e&t^~e&r}function a(e,t,r){return e&t^e&r^t&r}function o(e,t,r){return e^t^r}t.ft_1=function(e,t,r,i){return 0===e?n(t,r,i):1===e||3===e?o(t,r,i):2===e?a(t,r,i):void 0},t.ch32=n,t.maj32=a,t.p32=o,t.s0_256=function(e){return i(e,2)^i(e,13)^i(e,22)},t.s1_256=function(e){return i(e,6)^i(e,11)^i(e,25)},t.g0_256=function(e){return i(e,7)^i(e,18)^e>>>3},t.g1_256=function(e){return i(e,17)^i(e,19)^e>>>10}},263:function(e,t,r){"use strict";var i=r(3523);function n(e,t){return(64512&e.charCodeAt(t))==55296&&!(t<0)&&!(t+1>=e.length)&&(64512&e.charCodeAt(t+1))==56320}function a(e){return(e>>>24|e>>>8&65280|e<<8&0xff0000|(255&e)<<24)>>>0}function o(e){return 1===e.length?"0"+e:e}function s(e){if(7===e.length)return"0"+e;if(6===e.length)return"00"+e;if(5===e.length)return"000"+e;if(4===e.length)return"0000"+e;if(3===e.length)return"00000"+e;else if(2===e.length)return"000000"+e;else if(1===e.length)return"0000000"+e;else return e}t.inherits=r(3782),t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),a=0;a<e.length;a+=2)r.push(parseInt(e[a]+e[a+1],16))}else for(var i=0,a=0;a<e.length;a++){var o=e.charCodeAt(a);o<128?r[i++]=o:(o<2048?r[i++]=o>>6|192:(n(e,a)?(o=65536+((1023&o)<<10)+(1023&e.charCodeAt(++a)),r[i++]=o>>18|240,r[i++]=o>>12&63|128):r[i++]=o>>12|224,r[i++]=o>>6&63|128),r[i++]=63&o|128)}else for(a=0;a<e.length;a++)r[a]=0|e[a];return r},t.toHex=function(e){for(var t="",r=0;r<e.length;r++)t+=o(e[r].toString(16));return t},t.htonl=a,t.toHex32=function(e,t){for(var r="",i=0;i<e.length;i++){var n=e[i];"little"===t&&(n=a(n)),r+=s(n.toString(16))}return r},t.zero2=o,t.zero8=s,t.join32=function(e,t,r,n){var a,o=r-t;i(o%4==0);for(var s=Array(o/4),u=0,f=t;u<s.length;u++,f+=4)a="big"===n?e[f]<<24|e[f+1]<<16|e[f+2]<<8|e[f+3]:e[f+3]<<24|e[f+2]<<16|e[f+1]<<8|e[f],s[u]=a>>>0;return s},t.split32=function(e,t){for(var r=Array(4*e.length),i=0,n=0;i<e.length;i++,n+=4){var a=e[i];"big"===t?(r[n]=a>>>24,r[n+1]=a>>>16&255,r[n+2]=a>>>8&255,r[n+3]=255&a):(r[n+3]=a>>>24,r[n+2]=a>>>16&255,r[n+1]=a>>>8&255,r[n]=255&a)}return r},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<<t|e>>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,r){return e+t+r>>>0},t.sum32_4=function(e,t,r,i){return e+t+r+i>>>0},t.sum32_5=function(e,t,r,i,n){return e+t+r+i+n>>>0},t.sum64=function(e,t,r,i){var n=e[t],a=i+e[t+1]>>>0,o=+(a<i)+r+n;e[t]=o>>>0,e[t+1]=a},t.sum64_hi=function(e,t,r,i){return+(t+i>>>0<t)+e+r>>>0},t.sum64_lo=function(e,t,r,i){return t+i>>>0},t.sum64_4_hi=function(e,t,r,i,n,a,o,s){var u,f=t;return e+r+n+o+(u=0+ +((f=f+i>>>0)<t)+ +((f=f+a>>>0)<a)+ +((f=f+s>>>0)<s))>>>0},t.sum64_4_lo=function(e,t,r,i,n,a,o,s){return t+i+a+s>>>0},t.sum64_5_hi=function(e,t,r,i,n,a,o,s,u,f){var c,d=t;return e+r+n+o+u+(c=0+ +((d=d+i>>>0)<t)+ +((d=d+a>>>0)<a)+ +((d=d+s>>>0)<s)+ +((d=d+f>>>0)<f))>>>0},t.sum64_5_lo=function(e,t,r,i,n,a,o,s,u,f){return t+i+a+s+f>>>0},t.rotr64_hi=function(e,t,r){return(t<<32-r|e>>>r)>>>0},t.rotr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0},t.shr64_hi=function(e,t,r){return e>>>r},t.shr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0}},4910:function(e,t,r){"use strict";var i=r(7028),n=r(6545),a=r(3523);function o(e){if(!(this instanceof o))return new o(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=n.toArray(e.entropy,e.entropyEnc||"hex"),r=n.toArray(e.nonce,e.nonceEnc||"hex"),i=n.toArray(e.pers,e.persEnc||"hex");a(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,i)}e.exports=o,o.prototype._init=function(e,t,r){var i=e.concat(t).concat(r);this.K=Array(this.outLen/8),this.V=Array(this.outLen/8);for(var n=0;n<this.V.length;n++)this.K[n]=0,this.V[n]=1;this._update(i),this._reseed=1,this.reseedInterval=0x1000000000000},o.prototype._hmac=function(){return new i.hmac(this.hash,this.K)},o.prototype._update=function(e){var t=this._hmac().update(this.V).update([0]);e&&(t=t.update(e)),this.K=t.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([1]).update(e).digest(),this.V=this._hmac().update(this.V).digest())},o.prototype.reseed=function(e,t,r,i){"string"!=typeof t&&(i=r,r=t,t=null),e=n.toArray(e,t),r=n.toArray(r,i),a(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},o.prototype.generate=function(e,t,r,i){if(this._reseed>this.reseedInterval)throw Error("Reseed is required");"string"!=typeof t&&(i=r,r=t,t=null),r&&(r=n.toArray(r,i||"hex"),this._update(r));for(var a=[];a.length<e;)this.V=this._hmac().update(this.V).digest(),a=a.concat(this.V);var o=a.slice(0,e);return this._update(r),this._reseed++,n.encode(o,t)}},3782:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},3533:function(e,t,r){"use strict";var i=r(3782),n=r(9029),a=r(6911).Buffer,o=Array(16);function s(){n.call(this,64),this._a=0x67452301,this._b=0xefcdab89,this._c=0x98badcfe,this._d=0x10325476}function u(e,t){return e<<t|e>>>32-t}function f(e,t,r,i,n,a,o){return u(e+(t&r|~t&i)+n+a|0,o)+t|0}function c(e,t,r,i,n,a,o){return u(e+(t&i|r&~i)+n+a|0,o)+t|0}function d(e,t,r,i,n,a,o){return u(e+(t^r^i)+n+a|0,o)+t|0}function l(e,t,r,i,n,a,o){return u(e+(r^(t|~i))+n+a|0,o)+t|0}i(s,n),s.prototype._update=function(){for(var e=o,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var r=this._a,i=this._b,n=this._c,a=this._d;r=f(r,i,n,a,e[0],0xd76aa478,7),a=f(a,r,i,n,e[1],0xe8c7b756,12),n=f(n,a,r,i,e[2],0x242070db,17),i=f(i,n,a,r,e[3],0xc1bdceee,22),r=f(r,i,n,a,e[4],0xf57c0faf,7),a=f(a,r,i,n,e[5],0x4787c62a,12),n=f(n,a,r,i,e[6],0xa8304613,17),i=f(i,n,a,r,e[7],0xfd469501,22),r=f(r,i,n,a,e[8],0x698098d8,7),a=f(a,r,i,n,e[9],0x8b44f7af,12),n=f(n,a,r,i,e[10],0xffff5bb1,17),i=f(i,n,a,r,e[11],0x895cd7be,22),r=f(r,i,n,a,e[12],0x6b901122,7),a=f(a,r,i,n,e[13],0xfd987193,12),n=f(n,a,r,i,e[14],0xa679438e,17),i=f(i,n,a,r,e[15],0x49b40821,22),r=c(r,i,n,a,e[1],0xf61e2562,5),a=c(a,r,i,n,e[6],0xc040b340,9),n=c(n,a,r,i,e[11],0x265e5a51,14),i=c(i,n,a,r,e[0],0xe9b6c7aa,20),r=c(r,i,n,a,e[5],0xd62f105d,5),a=c(a,r,i,n,e[10],0x2441453,9),n=c(n,a,r,i,e[15],0xd8a1e681,14),i=c(i,n,a,r,e[4],0xe7d3fbc8,20),r=c(r,i,n,a,e[9],0x21e1cde6,5),a=c(a,r,i,n,e[14],0xc33707d6,9),n=c(n,a,r,i,e[3],0xf4d50d87,14),i=c(i,n,a,r,e[8],0x455a14ed,20),r=c(r,i,n,a,e[13],0xa9e3e905,5),a=c(a,r,i,n,e[2],0xfcefa3f8,9),n=c(n,a,r,i,e[7],0x676f02d9,14),i=c(i,n,a,r,e[12],0x8d2a4c8a,20),r=d(r,i,n,a,e[5],0xfffa3942,4),a=d(a,r,i,n,e[8],0x8771f681,11),n=d(n,a,r,i,e[11],0x6d9d6122,16),i=d(i,n,a,r,e[14],0xfde5380c,23),r=d(r,i,n,a,e[1],0xa4beea44,4),a=d(a,r,i,n,e[4],0x4bdecfa9,11),n=d(n,a,r,i,e[7],0xf6bb4b60,16),i=d(i,n,a,r,e[10],0xbebfbc70,23),r=d(r,i,n,a,e[13],0x289b7ec6,4),a=d(a,r,i,n,e[0],0xeaa127fa,11),n=d(n,a,r,i,e[3],0xd4ef3085,16),i=d(i,n,a,r,e[6],0x4881d05,23),r=d(r,i,n,a,e[9],0xd9d4d039,4),a=d(a,r,i,n,e[12],0xe6db99e5,11),n=d(n,a,r,i,e[15],0x1fa27cf8,16),i=d(i,n,a,r,e[2],0xc4ac5665,23),r=l(r,i,n,a,e[0],0xf4292244,6),a=l(a,r,i,n,e[7],0x432aff97,10),n=l(n,a,r,i,e[14],0xab9423a7,15),i=l(i,n,a,r,e[5],0xfc93a039,21),r=l(r,i,n,a,e[12],0x655b59c3,6),a=l(a,r,i,n,e[3],0x8f0ccc92,10),n=l(n,a,r,i,e[10],0xffeff47d,15),i=l(i,n,a,r,e[1],0x85845dd1,21),r=l(r,i,n,a,e[8],0x6fa87e4f,6),a=l(a,r,i,n,e[15],0xfe2ce6e0,10),n=l(n,a,r,i,e[6],0xa3014314,15),i=l(i,n,a,r,e[13],0x4e0811a1,21),r=l(r,i,n,a,e[4],0xf7537e82,6),a=l(a,r,i,n,e[11],0xbd3af235,10),n=l(n,a,r,i,e[2],0x2ad7d2bb,15),i=l(i,n,a,r,e[9],0xeb86d391,21),this._a=this._a+r|0,this._b=this._b+i|0,this._c=this._c+n|0,this._d=this._d+a|0},s.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=a.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},e.exports=s},1354:function(e,t,r){var i=r(711),n=r(3500);function a(e){this.rand=e||new n.Rand}e.exports=a,a.create=function(e){return new a(e)},a.prototype._randbelow=function(e){var t=Math.ceil(e.bitLength()/8);do var r=new i(this.rand.generate(t));while(r.cmp(e)>=0)return r},a.prototype._randrange=function(e,t){var r=t.sub(e);return e.add(this._randbelow(r))},a.prototype.test=function(e,t,r){var n=e.bitLength(),a=i.mont(e),o=new i(1).toRed(a);t||(t=Math.max(1,n/48|0));for(var s=e.subn(1),u=0;!s.testn(u);u++);for(var f=e.shrn(u),c=s.toRed(a),d=!0;t>0;t--){var l=this._randrange(new i(2),s);r&&r(l);var h=l.toRed(a).redPow(f);if(0!==h.cmp(o)&&0!==h.cmp(c)){for(var p=1;p<u;p++){if(0===(h=h.redSqr()).cmp(o))return!1;if(0===h.cmp(c))break}if(p===u)return!1}}return d},a.prototype.getDivisor=function(e,t){var r=e.bitLength(),n=i.mont(e),a=new i(1).toRed(n);t||(t=Math.max(1,r/48|0));for(var o=e.subn(1),s=0;!o.testn(s);s++);for(var u=e.shrn(s),f=o.toRed(n);t>0;t--){var c=this._randrange(new i(2),o),d=e.gcd(c);if(0!==d.cmpn(1))return d;var l=c.toRed(n).redPow(u);if(0!==l.cmp(a)&&0!==l.cmp(f)){for(var h=1;h<s;h++){if(0===(l=l.redSqr()).cmp(a))return l.fromRed().subn(1).gcd(e);if(0===l.cmp(f))break}if(h===s)return(l=l.redSqr()).fromRed().subn(1).gcd(e)}}return!1}},3523:function(e){function t(e,t){if(!e)throw Error(t||"Assertion failed")}e.exports=t,t.equal=function(e,t,r){if(e!=t)throw Error(r||"Assertion failed: "+e+" != "+t)}},6545:function(e,t){"use strict";var r=t;function i(e){return 1===e.length?"0"+e:e}function n(e){for(var t="",r=0;r<e.length;r++)t+=i(e[r].toString(16));return t}r.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"!=typeof e){for(var i=0;i<e.length;i++)r[i]=0|e[i];return r}if("hex"===t){(e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e);for(var i=0;i<e.length;i+=2)r.push(parseInt(e[i]+e[i+1],16))}else for(var i=0;i<e.length;i++){var n=e.charCodeAt(i),a=n>>8,o=255&n;a?r.push(a,o):r.push(o)}return r},r.zero2=i,r.toHex=n,r.encode=function(e,t){return"hex"===t?n(e):e}},8687:function(e,t,r){"use strict";var i=r(7160);t.certificate=r(8782),t.RSAPrivateKey=i.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())}),t.RSAPublicKey=i.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())}),t.PublicKey=i.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(n),this.key("subjectPublicKey").bitstr())});var n=i.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())});t.PrivateKey=i.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(n),this.key("subjectPrivateKey").octstr())}),t.EncryptedPrivateKey=i.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())}),t.DSAPrivateKey=i.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())}),t.DSAparam=i.define("DSAparam",function(){this.int()}),t.ECPrivateKey=i.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(a),this.key("publicKey").optional().explicit(1).bitstr())});var a=i.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});t.signature=i.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},8782:function(e,t,r){"use strict";var i=r(7160),n=i.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),a=i.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),o=i.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),s=i.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(o),this.key("subjectPublicKey").bitstr())}),u=i.define("RelativeDistinguishedName",function(){this.setof(a)}),f=i.define("RDNSequence",function(){this.seqof(u)}),c=i.define("Name",function(){this.choice({rdnSequence:this.use(f)})}),d=i.define("Validity",function(){this.seq().obj(this.key("notBefore").use(n),this.key("notAfter").use(n))}),l=i.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),h=i.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(o),this.key("issuer").use(c),this.key("validity").use(d),this.key("subject").use(c),this.key("subjectPublicKeyInfo").use(s),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(l).optional())});e.exports=i.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(h),this.key("signatureAlgorithm").use(o),this.key("signatureValue").bitstr())})},6501:function(e,t,r){var i=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r\+\/\=]+)[\n\r]+/m,n=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,a=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r\+\/\=]+)-----END \1-----$/m,o=r(8368),s=r(6594),u=r(6911).Buffer;e.exports=function(e,t){var r,f=e.toString(),c=f.match(i);if(c){var d="aes"+c[1],l=u.from(c[2],"hex"),h=u.from(c[3].replace(/[\r\n]/g,""),"base64"),p=o(t,l.slice(0,8),parseInt(c[1],10)).key,m=[],b=s.createDecipheriv(d,p,l);m.push(b.update(h)),m.push(b.final()),r=u.concat(m)}else r=new u(f.match(a)[2].replace(/[\r\n]/g,""),"base64");return{tag:f.match(n)[1],data:r}}},9902:function(e,t,r){var i=r(8687),n=r(2510),a=r(6501),o=r(6594),s=r(4978),u=r(6911).Buffer;function f(e){"object"!=typeof e||u.isBuffer(e)||(t=e.passphrase,e=e.key),"string"==typeof e&&(e=u.from(e));var t,r,n,o=a(e,t),s=o.tag,f=o.data;switch(s){case"CERTIFICATE":n=i.certificate.decode(f,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(!n&&(n=i.PublicKey.decode(f,"der")),r=n.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return i.RSAPublicKey.decode(n.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return n.subjectPrivateKey=n.subjectPublicKey,{type:"ec",data:n};case"1.2.840.10040.4.1":return n.algorithm.params.pub_key=i.DSAparam.decode(n.subjectPublicKey.data,"der"),{type:"dsa",data:n.algorithm.params};default:throw Error("unknown key id "+r)}case"ENCRYPTED PRIVATE KEY":f=c(f=i.EncryptedPrivateKey.decode(f,"der"),t);case"PRIVATE KEY":switch(r=(n=i.PrivateKey.decode(f,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return i.RSAPrivateKey.decode(n.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:n.algorithm.curve,privateKey:i.ECPrivateKey.decode(n.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return n.algorithm.params.priv_key=i.DSAparam.decode(n.subjectPrivateKey,"der"),{type:"dsa",params:n.algorithm.params};default:throw Error("unknown key id "+r)}case"RSA PUBLIC KEY":return i.RSAPublicKey.decode(f,"der");case"RSA PRIVATE KEY":return i.RSAPrivateKey.decode(f,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:i.DSAPrivateKey.decode(f,"der")};case"EC PRIVATE KEY":return{curve:(f=i.ECPrivateKey.decode(f,"der")).parameters.value,privateKey:f.privateKey};default:throw Error("unknown key type "+s)}}function c(e,t){var r=e.algorithm.decrypt.kde.kdeparams.salt,i=parseInt(e.algorithm.decrypt.kde.kdeparams.iters.toString(),10),a=n[e.algorithm.decrypt.cipher.algo.join(".")],f=e.algorithm.decrypt.cipher.iv,c=e.subjectPrivateKey,d=parseInt(a.split("-")[1],10)/8,l=s.pbkdf2Sync(t,r,i,d,"sha1"),h=o.createDecipheriv(a,l,f),p=[];return p.push(h.update(c)),p.push(h.final()),u.concat(p)}e.exports=f,f.signature=i.signature},4978:function(e,t,r){var i=r(6113),n=r(5349),a=r(7007),o=r(5407);function s(e,t,r,s,u,f){if(n(r,s),e=o(e,a,"Password"),t=o(t,a,"Salt"),"function"==typeof u&&(f=u,u="sha1"),"function"!=typeof f)throw Error("No callback provided to pbkdf2");return i.pbkdf2(e,t,r,s,u,f)}function u(e,t,r,s,u){return n(r,s),e=o(e,a,"Password"),t=o(t,a,"Salt"),u=u||"sha1",i.pbkdf2Sync(e,t,r,s,u)}i.pbkdf2Sync&&-1!==i.pbkdf2Sync.toString().indexOf("keylen, digest")?(t.pbkdf2Sync=u,t.pbkdf2=s):(t.pbkdf2Sync=r(2127),t.pbkdf2=r(9601))},9601:function(t,r,i){var a,o=i(6911).Buffer,s=i(5349),u=i(7007),f=i(2127),c=i(5407),d=e.g.crypto&&e.g.crypto.subtle,l={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},h=[];function p(t){if(e.g.process&&!e.g.process.browser||!d||!d.importKey||!d.deriveBits)return Promise.resolve(!1);if(void 0!==h[t])return h[t];var r=m(a=a||o.alloc(8),a,10,128,t).then(function(){return!0}).catch(function(){return!1});return h[t]=r,r}function m(e,t,r,i,n){return d.importKey("raw",e,{name:"PBKDF2"},!1,["deriveBits"]).then(function(e){return d.deriveBits({name:"PBKDF2",salt:t,iterations:r,hash:{name:n}},e,i<<3)}).then(function(e){return o.from(e)})}function b(e,t){e.then(function(e){n.default.nextTick(function(){t(null,e)})},function(e){n.default.nextTick(function(){t(e)})})}t.exports=function(t,r,i,a,o,d){"function"==typeof o&&(d=o,o=void 0);var h=l[(o=o||"sha1").toLowerCase()];if(!h||"function"!=typeof e.g.Promise)return n.default.nextTick(function(){var e;try{e=f(t,r,i,a,o)}catch(e){return d(e)}d(null,e)});if(s(i,a),t=c(t,u,"Password"),r=c(r,u,"Salt"),"function"!=typeof d)throw Error("No callback provided to pbkdf2");b(p(h).then(function(e){return e?m(t,r,i,a,h):f(t,r,i,a,o)}),d)}},7007:function(e){e.exports="utf-8"},5349:function(e){var t=0x3fffffff;e.exports=function(e,r){if("number"!=typeof e)throw TypeError("Iterations not a number");if(e<0)throw TypeError("Bad iterations");if("number"!=typeof r)throw TypeError("Key length not a number");if(r<0||r>t||r!=r)throw TypeError("Bad key length")}},2127:function(e,t,r){var i={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20},n=r(4873),a=r(6911).Buffer,o=r(5349),s=r(7007),u=r(5407);e.exports=function(e,t,r,f,c){o(r,f),e=u(e,s,"Password"),t=u(t,s,"Salt"),c=c||"sha1";var d=a.allocUnsafe(f),l=a.allocUnsafe(t.length+4);t.copy(l,0,0,t.length);for(var h=0,p=i[c],m=Math.ceil(f/p),b=1;b<=m;b++){l.writeUInt32BE(b,t.length);for(var g=n(c,e).update(l).digest(),v=g,y=1;y<r;y++){v=n(c,e).update(v).digest();for(var _=0;_<p;_++)g[_]^=v[_]}g.copy(d,h),h+=p}return d}},5407:function(e,t,r){var i=r(6911).Buffer;e.exports=function(e,t,r){if(i.isBuffer(e))return e;if("string"==typeof e)return i.from(e,t);if(ArrayBuffer.isView(e))return i.from(e.buffer);throw TypeError(r+" must be a string, a Buffer, a typed array or a DataView")}},9783:function(e,t,r){t.publicEncrypt=r(3995),t.privateDecrypt=r(4366),t.privateEncrypt=function(e,r){return t.publicEncrypt(e,r,!0)},t.publicDecrypt=function(e,r){return t.privateDecrypt(e,r,!0)}},5520:function(e,t,r){var i=r(9739),n=r(6911).Buffer;function a(e){var t=n.allocUnsafe(4);return t.writeUInt32BE(e,0),t}e.exports=function(e,t){for(var r,o=n.alloc(0),s=0;o.length<t;)r=a(s++),o=n.concat([o,i("sha1").update(e).update(r).digest()]);return o.slice(0,t)}},4366:function(e,t,r){var i=r(9902),n=r(5520),a=r(6386),o=r(711),s=r(7166),u=r(9739),f=r(1607),c=r(6911).Buffer;function d(e,t){var r=e.modulus.byteLength(),i=u("sha1").update(c.alloc(0)).digest(),o=i.length;if(0!==t[0])throw Error("decryption error");var s=t.slice(1,o+1),f=t.slice(o+1),d=a(s,n(f,o)),l=a(f,n(d,r-o-1));if(h(i,l.slice(0,o)))throw Error("decryption error");for(var p=o;0===l[p];)p++;if(1!==l[p++])throw Error("decryption error");return l.slice(p)}function l(e,t,r){for(var i=t.slice(0,2),n=2,a=0;0!==t[n++];)if(n>=t.length){a++;break}var o=t.slice(2,n-1);if(("0002"!==i.toString("hex")&&!r||"0001"!==i.toString("hex")&&r)&&a++,o.length<8&&a++,a)throw Error("decryption error");return t.slice(n)}function h(e,t){e=c.from(e),t=c.from(t);var r=0,i=e.length;e.length!==t.length&&(r++,i=Math.min(e.length,t.length));for(var n=-1;++n<i;)r+=e[n]^t[n];return r}e.exports=function(e,t,r){var n,a=e.padding?e.padding:r?1:4,u=i(e),h=u.modulus.byteLength();if(t.length>h||new o(t).cmp(u.modulus)>=0)throw Error("decryption error");n=r?f(new o(t),u):s(t,u);var p=c.alloc(h-n.length);if(n=c.concat([p,n],h),4===a)return d(u,n);if(1===a)return l(u,n,r);if(3===a)return n;throw Error("unknown padding")}},3995:function(e,t,r){var i=r(9902),n=r(7223),a=r(9739),o=r(5520),s=r(6386),u=r(711),f=r(1607),c=r(7166),d=r(6911).Buffer;function l(e,t){var r=e.modulus.byteLength(),i=t.length,f=a("sha1").update(d.alloc(0)).digest(),c=f.length,l=2*c;if(i>r-l-2)throw Error("message too long");var h=d.alloc(r-i-l-2),p=r-c-1,m=n(c),b=s(d.concat([f,h,d.alloc(1,1),t],p),o(m,p)),g=s(m,o(b,c));return new u(d.concat([d.alloc(1),g,b],r))}function h(e,t,r){var i,n=t.length,a=e.modulus.byteLength();if(n>a-11)throw Error("message too long");return i=r?d.alloc(a-n-3,255):p(a-n-3),new u(d.concat([d.from([0,r?1:2]),i,d.alloc(1),t],a))}function p(e){for(var t,r=d.allocUnsafe(e),i=0,a=n(2*e),o=0;i<e;)o===a.length&&(a=n(2*e),o=0),(t=a[o++])&&(r[i++]=t);return r}e.exports=function(e,t,r){var n,a=e.padding?e.padding:r?1:4,o=i(e);if(4===a)n=l(o,t);else if(1===a)n=h(o,t,r);else if(3===a){if((n=new u(t)).cmp(o.modulus)>=0)throw Error("data too long for modulus")}else throw Error("unknown padding");return r?c(n,o):f(n,o)}},1607:function(e,t,r){var i=r(711),n=r(6911).Buffer;e.exports=function(e,t){return n.from(e.toRed(i.mont(t.modulus)).redPow(new i(t.publicExponent)).fromRed().toArray())}},6386:function(e){e.exports=function(e,t){for(var r=e.length,i=-1;++i<r;)e[i]^=t[i];return e}},7223:function(t,r,i){"use strict";var a=65536,o=0xffffffff;function s(){throw Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}var u=i(6911).Buffer,f=e.g.crypto||e.g.msCrypto;function c(e,t){if(e>o)throw RangeError("requested too many random bytes");var r=u.allocUnsafe(e);if(e>0)if(e>a)for(var i=0;i<e;i+=a)f.getRandomValues(r.slice(i,i+a));else f.getRandomValues(r);return"function"==typeof t?n.default.nextTick(function(){t(null,r)}):r}f&&f.getRandomValues?t.exports=c:t.exports=s},6445:function(t,r,i){"use strict";function a(){throw Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var o=i(6911);i(7223);var s=o.Buffer,u=o.kMaxLength,f=e.g.crypto||e.g.msCrypto,c=0xffffffff;function d(e,t){if("number"!=typeof e||e!=e)throw TypeError("offset must be a number");if(e>c||e<0)throw TypeError("offset must be a uint32");if(e>u||e>t)throw RangeError("offset out of range")}function l(e,t,r){if("number"!=typeof e||e!=e)throw TypeError("size must be a number");if(e>c||e<0)throw TypeError("size must be a uint32");if(e+t>r||e>u)throw RangeError("buffer too small")}function h(t,r,i,n){if(!s.isBuffer(t)&&!(t instanceof e.g.Uint8Array))throw TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof r)n=r,r=0,i=t.length;else if("function"==typeof i)n=i,i=t.length-r;else if("function"!=typeof n)throw TypeError('"cb" argument must be a function');return d(r,t.length),l(i,r,t.length),p(t,r,i,n)}function p(e,t,r,i){var a=new Uint8Array(e.buffer,t,r);return(f.getRandomValues(a),i)?void n.default.nextTick(function(){i(null,e)}):e}function m(t,r,i){if(void 0===r&&(r=0),!s.isBuffer(t)&&!(t instanceof e.g.Uint8Array))throw TypeError('"buf" argument must be a Buffer or Uint8Array');return d(r,t.length),void 0===i&&(i=t.length-r),l(i,r,t.length),p(t,r,i)}f&&f.getRandomValues?(r.randomFill=h,r.randomFillSync=m):(r.randomFill=a,r.randomFillSync=a)},4646:function(e){"use strict";let t={};function r(e,r,i){function n(e,t,i){return"string"==typeof r?r:r(e,t,i)}i||(i=Error);class a extends i{constructor(e,t,r){super(n(e,t,r))}}a.prototype.name=i.name,a.prototype.code=e,t[e]=a}function i(e,t){if(!Array.isArray(e))return`of ${t} ${String(e)}`;{let r=e.length;return(e=e.map(e=>String(e)),r>2)?`one of ${t} ${e.slice(0,r-1).join(", ")}, or `+e[r-1]:2===r?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}}function n(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function a(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function o(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}r("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(e,t,r){let s,u;if("string"==typeof t&&n(t,"not ")?(s="must not be",t=t.replace(/^not /,"")):s="must be",a(e," argument"))u=`The ${e} ${s} ${i(t,"type")}`;else{let r=o(e,".")?"property":"argument";u=`The "${e}" ${r} ${s} ${i(t,"type")}`}return u+`. Received type ${typeof r}`},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.q=t},2403:function(e,t,r){"use strict";var i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=c;var a=r(1709),o=r(7337);r(3782)(c,a);for(var s=i(o.prototype),u=0;u<s.length;u++){var f=s[u];c.prototype[f]||(c.prototype[f]=o.prototype[f])}function c(e){if(!(this instanceof c))return new c(e);a.call(this,e),o.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",d)))}function d(){this._writableState.ended||n.default.nextTick(l,this)}function l(e){e.end()}Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(c.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(c.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})},7889:function(e,t,r){"use strict";e.exports=n;var i=r(1170);function n(e){if(!(this instanceof n))return new n(e);i.call(this,e)}r(3782)(n,i),n.prototype._transform=function(e,t,r){r(null,e)}},1709:function(t,r,i){"use strict";t.exports=A,A.ReadableState=E,i(2361).EventEmitter;var a,o,s,u,f,c=function(e,t){return e.listeners(t).length},d=i(4678),l=i(4300).Buffer,h=e.g.Uint8Array||function(){};function p(e){return l.from(e)}function m(e){return l.isBuffer(e)||e instanceof h}var b=i(3837);o=b&&b.debuglog?b.debuglog("stream"):function(){};var g=i(4379),v=i(7025),y=i(6776).getHighWaterMark,_=i(4646).q,x=_.ERR_INVALID_ARG_TYPE,w=_.ERR_STREAM_PUSH_AFTER_EOF,S=_.ERR_METHOD_NOT_IMPLEMENTED,k=_.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;i(3782)(A,d);var $=v.errorOrDestroy,I=["error","close","destroy","pause","resume"];function M(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}function E(e,t,r){a=a||i(2403),e=e||{},"boolean"!=typeof r&&(r=t instanceof a),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=y(this,e,"readableHighWaterMark",r),this.buffer=new g,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(s||(s=i(3704).s),this.decoder=new s(e.encoding),this.encoding=e.encoding)}function A(e){if(a=a||i(2403),!(this instanceof A))return new A(e);var t=this instanceof a;this._readableState=new E(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),d.call(this)}function O(e,t,r,i,n){o("readableAddChunk",t);var a,s=e._readableState;if(null===t)s.reading=!1,R(e,s);else if(n||(a=z(s,t)),a)$(e,a);else if(s.objectMode||t&&t.length>0)if("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===l.prototype||(t=p(t)),i)s.endEmitted?$(e,new k):j(e,s,t,!0);else if(s.ended)$(e,new w);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||0!==t.length?j(e,s,t,!1):B(e,s)):j(e,s,t,!1)}else i||(s.reading=!1,B(e,s));return!s.ended&&(s.length<s.highWaterMark||0===s.length)}function j(e,t,r,i){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,i?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&N(e)),B(e,t)}function z(e,t){var r;return m(t)||"string"==typeof t||void 0===t||e.objectMode||(r=new x("chunk",["string","Buffer","Uint8Array"],t)),r}Object.defineProperty(A.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),A.prototype.destroy=v.destroy,A.prototype._undestroy=v.undestroy,A.prototype._destroy=function(e,t){t(e)},A.prototype.push=function(e,t){var r,i=this._readableState;return i.objectMode?r=!0:"string"==typeof e&&((t=t||i.defaultEncoding)!==i.encoding&&(e=l.from(e,t),t=""),r=!0),O(this,e,t,!1,r)},A.prototype.unshift=function(e){return O(this,e,null,!0,!1)},A.prototype.isPaused=function(){return!1===this._readableState.flowing},A.prototype.setEncoding=function(e){s||(s=i(3704).s);var t=new s(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,n="";null!==r;)n+=t.write(r.data),r=r.next;return this._readableState.buffer.clear(),""!==n&&this._readableState.buffer.push(n),this._readableState.length=n.length,this};var U=0x40000000;function P(e){return e>=U?e=U:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function T(e,t){if(e<=0||0===t.length&&t.ended)return 0;if(t.objectMode)return 1;if(e!=e)if(t.flowing&&t.length)return t.buffer.head.data.length;else return t.length;return(e>t.highWaterMark&&(t.highWaterMark=P(e)),e<=t.length)?e:t.ended?t.length:(t.needReadable=!0,0)}function R(e,t){if(o("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?N(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,D(e)))}}function N(e){var t=e._readableState;o("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(o("emitReadable",t.flowing),t.emittedReadable=!0,n.default.nextTick(D,e))}function D(e){var t=e._readableState;o("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,W(e)}function B(e,t){t.readingMore||(t.readingMore=!0,n.default.nextTick(Z,e,t))}function Z(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var r=t.length;if(o("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function C(e){return function(){var t=e._readableState;o("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&c(e,"data")&&(t.flowing=!0,W(e))}}function L(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function q(e){o("readable nexttick read 0"),e.read(0)}function F(e,t){t.resumeScheduled||(t.resumeScheduled=!0,n.default.nextTick(J,e,t))}function J(e,t){o("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),W(e),t.flowing&&!t.reading&&e.read(0)}function W(e){var t=e._readableState;for(o("flow",t.flowing);t.flowing&&null!==e.read(););}function K(e,t){var r;return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r)}function V(e){var t=e._readableState;o("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,n.default.nextTick(G,t,e))}function G(e,t){if(o("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function H(e,t){for(var r=0,i=e.length;r<i;r++)if(e[r]===t)return r;return -1}A.prototype.read=function(e){o("read",e),e=parseInt(e,10);var t,r=this._readableState,i=e;if(0!==e&&(r.emittedReadable=!1),0===e&&r.needReadable&&((0!==r.highWaterMark?r.length>=r.highWaterMark:r.length>0)||r.ended))return o("read: emitReadable",r.length,r.ended),0===r.length&&r.ended?V(this):N(this),null;if(0===(e=T(e,r))&&r.ended)return 0===r.length&&V(this),null;var n=r.needReadable;return o("need readable",n),(0===r.length||r.length-e<r.highWaterMark)&&o("length less than watermark",n=!0),r.ended||r.reading?o("reading or ended",n=!1):n&&(o("do read"),r.reading=!0,r.sync=!0,0===r.length&&(r.needReadable=!0),this._read(r.highWaterMark),r.sync=!1,r.reading||(e=T(i,r))),null===(t=e>0?K(e,r):null)?(r.needReadable=r.length<=r.highWaterMark,e=0):(r.length-=e,r.awaitDrain=0),0===r.length&&(r.ended||(r.needReadable=!0),i!==e&&r.ended&&V(this)),null!==t&&this.emit("data",t),t},A.prototype._read=function(e){$(this,new S("_read()"))},A.prototype.pipe=function(e,t){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,o("pipe count=%d opts=%j",i.pipesCount,t);var a=t&&!1===t.end||e===n.default.stdout||e===n.default.stderr?g:u;function s(e,t){o("onunpipe"),e===r&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,l())}function u(){o("onend"),e.end()}i.endEmitted?n.default.nextTick(a):r.once("end",a),e.on("unpipe",s);var f=C(r);e.on("drain",f);var d=!1;function l(){o("cleanup"),e.removeListener("close",m),e.removeListener("finish",b),e.removeListener("drain",f),e.removeListener("error",p),e.removeListener("unpipe",s),r.removeListener("end",u),r.removeListener("end",g),r.removeListener("data",h),d=!0,i.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&f()}function h(t){o("ondata");var n=e.write(t);o("dest.write",n),!1===n&&((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==H(i.pipes,e))&&!d&&(o("false write response, pause",i.awaitDrain),i.awaitDrain++),r.pause())}function p(t){o("onerror",t),g(),e.removeListener("error",p),0===c(e,"error")&&$(e,t)}function m(){e.removeListener("finish",b),g()}function b(){o("onfinish"),e.removeListener("close",m),g()}function g(){o("unpipe"),r.unpipe(e)}return r.on("data",h),M(e,"error",p),e.once("close",m),e.once("finish",b),e.emit("pipe",r),i.flowing||(o("pipe resume"),r.resume()),e},A.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var i=t.pipes,n=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a<n;a++)i[a].emit("unpipe",this,{hasUnpiped:!1});return this}var o=H(t.pipes,e);return -1===o||(t.pipes.splice(o,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},A.prototype.on=function(e,t){var r=d.prototype.on.call(this,e,t),i=this._readableState;return"data"===e?(i.readableListening=this.listenerCount("readable")>0,!1!==i.flowing&&this.resume()):"readable"!==e||i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,o("on readable",i.length,i.reading),i.length?N(this):i.reading||n.default.nextTick(q,this)),r},A.prototype.addListener=A.prototype.on,A.prototype.removeListener=function(e,t){var r=d.prototype.removeListener.call(this,e,t);return"readable"===e&&n.default.nextTick(L,this),r},A.prototype.removeAllListeners=function(e){var t=d.prototype.removeAllListeners.apply(this,arguments);return("readable"===e||void 0===e)&&n.default.nextTick(L,this),t},A.prototype.resume=function(){var e=this._readableState;return e.flowing||(o("resume"),e.flowing=!e.readableListening,F(this,e)),e.paused=!1,this},A.prototype.pause=function(){return o("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(o("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},A.prototype.wrap=function(e){var t=this,r=this._readableState,i=!1;for(var n in e.on("end",function(){if(o("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(n){o("wrapped data"),r.decoder&&(n=r.decoder.write(n)),r.objectMode&&null==n||(r.objectMode||n&&n.length)&&(t.push(n)||(i=!0,e.pause()))}),e)void 0===this[n]&&"function"==typeof e[n]&&(this[n]=function(t){return function(){return e[t].apply(e,arguments)}}(n));for(var a=0;a<I.length;a++)e.on(I[a],this.emit.bind(this,I[a]));return this._read=function(t){o("wrapped _read",t),i&&(i=!1,e.resume())},this},"function"==typeof Symbol&&(A.prototype[Symbol.asyncIterator]=function(){return void 0===u&&(u=i(6871)),u(this)}),Object.defineProperty(A.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(A.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(A.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),A._fromList=K,Object.defineProperty(A.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(A.from=function(e,t){return void 0===f&&(f=i(9727)),f(A,e,t)})},1170:function(e,t,r){"use strict";e.exports=c;var i=r(4646).q,n=i.ERR_METHOD_NOT_IMPLEMENTED,a=i.ERR_MULTIPLE_CALLBACK,o=i.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=i.ERR_TRANSFORM_WITH_LENGTH_0,u=r(2403);function f(e,t){var r=this._transformState;r.transforming=!1;var i=r.writecb;if(null===i)return this.emit("error",new a);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),i(e);var n=this._readableState;n.reading=!1,(n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}function c(e){if(!(this instanceof c))return new c(e);u.call(this,e),this._transformState={afterTransform:f.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",d)}function d(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?l(this,null,null):this._flush(function(t,r){l(e,t,r)})}function l(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new s;if(e._transformState.transforming)throw new o;return e.push(null)}r(3782)(c,u),c.prototype.push=function(e,t){return this._transformState.needTransform=!1,u.prototype.push.call(this,e,t)},c.prototype._transform=function(e,t,r){r(new n("_transform()"))},c.prototype._write=function(e,t,r){var i=this._transformState;if(i.writecb=r,i.writechunk=e,i.writeencoding=t,!i.transforming){var n=this._readableState;(i.needTransform||n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}},c.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},c.prototype._destroy=function(e,t){u.prototype._destroy.call(this,e,function(e){t(e)})}},7337:function(t,r,i){"use strict";function a(e){var t=this;this.next=null,this.entry=null,this.finish=function(){J(t,e)}}t.exports=E,E.WritableState=M;var o,s,u={deprecate:i(6769)},f=i(4678),c=i(4300).Buffer,d=e.g.Uint8Array||function(){};function l(e){return c.from(e)}function h(e){return c.isBuffer(e)||e instanceof d}var p=i(7025),m=i(6776).getHighWaterMark,b=i(4646).q,g=b.ERR_INVALID_ARG_TYPE,v=b.ERR_METHOD_NOT_IMPLEMENTED,y=b.ERR_MULTIPLE_CALLBACK,_=b.ERR_STREAM_CANNOT_PIPE,x=b.ERR_STREAM_DESTROYED,w=b.ERR_STREAM_NULL_VALUES,S=b.ERR_STREAM_WRITE_AFTER_END,k=b.ERR_UNKNOWN_ENCODING,$=p.errorOrDestroy;function I(){}function M(e,t,r){o=o||i(2403),e=e||{},"boolean"!=typeof r&&(r=t instanceof o),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=m(this,e,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var n=!1===e.decodeStrings;this.decodeStrings=!n,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){R(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function E(e){var t=this instanceof(o=o||i(2403));if(!t&&!s.call(E,this))return new E(e);this._writableState=new M(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),f.call(this)}function A(e,t){var r=new S;$(e,r),n.default.nextTick(t,r)}function O(e,t,r,i){var a;return null===r?a=new w:"string"==typeof r||t.objectMode||(a=new g("chunk",["string","Buffer"],r)),!a||($(e,a),n.default.nextTick(i,a),!1)}function j(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=c.from(t,r)),t}function z(e,t,r,i,n,a){if(!r){var o=j(t,i,n);i!==o&&(r=!0,n="buffer",i=o)}var s=t.objectMode?1:i.length;t.length+=s;var u=t.length<t.highWaterMark;if(u||(t.needDrain=!0),t.writing||t.corked){var f=t.lastBufferedRequest;t.lastBufferedRequest={chunk:i,encoding:n,isBuf:r,callback:a,next:null},f?f.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else U(e,t,!1,s,i,n,a);return u}function U(e,t,r,i,n,a,o){t.writelen=i,t.writecb=o,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new x("write")):r?e._writev(n,t.onwrite):e._write(n,a,t.onwrite),t.sync=!1}function P(e,t,r,i,a){--t.pendingcb,r?(n.default.nextTick(a,i),n.default.nextTick(q,e,t),e._writableState.errorEmitted=!0,$(e,i)):(a(i),e._writableState.errorEmitted=!0,$(e,i),q(e,t))}function T(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function R(e,t){var r=e._writableState,i=r.sync,a=r.writecb;if("function"!=typeof a)throw new y;if(T(r),t)P(e,r,i,t,a);else{var o=Z(r)||e.destroyed;o||r.corked||r.bufferProcessing||!r.bufferedRequest||B(e,r),i?n.default.nextTick(N,e,r,o,a):N(e,r,o,a)}}function N(e,t,r,i){r||D(e,t),t.pendingcb--,i(),q(e,t)}function D(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function B(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var i=Array(t.bufferedRequestCount),n=t.corkedRequestsFree;n.entry=r;for(var o=0,s=!0;r;)i[o]=r,r.isBuf||(s=!1),r=r.next,o+=1;i.allBuffers=s,U(e,t,!0,t.length,i,"",n.finish),t.pendingcb++,t.lastBufferedRequest=null,n.next?(t.corkedRequestsFree=n.next,n.next=null):t.corkedRequestsFree=new a(t),t.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,f=r.encoding,c=r.callback,d=t.objectMode?1:u.length;if(U(e,t,!1,d,u,f,c),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function Z(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function C(e,t){e._final(function(r){t.pendingcb--,r&&$(e,r),t.prefinished=!0,e.emit("prefinish"),q(e,t)})}function L(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,n.default.nextTick(C,e,t)))}function q(e,t){var r=Z(t);if(r&&(L(e,t),0===t.pendingcb)&&(t.finished=!0,e.emit("finish"),t.autoDestroy)){var i=e._readableState;(!i||i.autoDestroy&&i.endEmitted)&&e.destroy()}return r}function F(e,t,r){t.ending=!0,q(e,t),r&&(t.finished?n.default.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}function J(e,t,r){var i=e.entry;for(e.entry=null;i;){var n=i.callback;t.pendingcb--,n(r),i=i.next}t.corkedRequestsFree.next=e}i(3782)(E,f),M.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(M.prototype,"buffer",{get:u.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(s=Function.prototype[Symbol.hasInstance],Object.defineProperty(E,Symbol.hasInstance,{value:function(e){return!!s.call(this,e)||this===E&&e&&e._writableState instanceof M}})):s=function(e){return e instanceof this},E.prototype.pipe=function(){$(this,new _)},E.prototype.write=function(e,t,r){var i=this._writableState,n=!1,a=!i.objectMode&&h(e);return a&&!c.isBuffer(e)&&(e=l(e)),"function"==typeof t&&(r=t,t=null),a?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof r&&(r=I),i.ending?A(this,r):(a||O(this,i,e,r))&&(i.pendingcb++,n=z(this,i,a,e,t,r)),n},E.prototype.cork=function(){this._writableState.corked++},E.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||B(this,e))},E.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new k(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(E.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(E.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),E.prototype._write=function(e,t,r){r(new v("_write()"))},E.prototype._writev=null,E.prototype.end=function(e,t,r){var i=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||F(this,i,r),this},Object.defineProperty(E.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(E.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),E.prototype.destroy=p.destroy,E.prototype._undestroy=p.undestroy,E.prototype._destroy=function(e,t){t(e)}},6871:function(e,t,r){"use strict";function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var a,o=r(9698),s=Symbol("lastResolve"),u=Symbol("lastReject"),f=Symbol("error"),c=Symbol("ended"),d=Symbol("lastPromise"),l=Symbol("handlePromise"),h=Symbol("stream");function p(e,t){return{value:e,done:t}}function m(e){var t=e[s];if(null!==t){var r=e[h].read();null!==r&&(e[d]=null,e[s]=null,e[u]=null,t(p(r,!1)))}}function b(e){n.default.nextTick(m,e)}function g(e,t){return function(r,i){e.then(function(){t[c]?r(p(void 0,!0)):t[l](r,i)},i)}}var v=Object.getPrototypeOf(function(){}),y=Object.setPrototypeOf((i(a={get stream(){return this[h]},next:function(){var e,t=this,r=this[f];if(null!==r)return Promise.reject(r);if(this[c])return Promise.resolve(p(void 0,!0));if(this[h].destroyed)return new Promise(function(e,r){n.default.nextTick(function(){t[f]?r(t[f]):e(p(void 0,!0))})});var i=this[d];if(i)e=new Promise(g(i,this));else{var a=this[h].read();if(null!==a)return Promise.resolve(p(a,!1));e=new Promise(this[l])}return this[d]=e,e}},Symbol.asyncIterator,function(){return this}),i(a,"return",function(){var e=this;return new Promise(function(t,r){e[h].destroy(null,function(e){e?r(e):t(p(void 0,!0))})})}),a),v);e.exports=function(e){var t,r=Object.create(y,(i(t={},h,{value:e,writable:!0}),i(t,s,{value:null,writable:!0}),i(t,u,{value:null,writable:!0}),i(t,f,{value:null,writable:!0}),i(t,c,{value:e._readableState.endEmitted,writable:!0}),i(t,l,{value:function(e,t){var i=r[h].read();i?(r[d]=null,r[s]=null,r[u]=null,e(p(i,!1))):(r[s]=e,r[u]=t)},writable:!0}),t));return r[d]=null,o(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[u];null!==t&&(r[d]=null,r[s]=null,r[u]=null,t(e)),r[f]=e;return}var i=r[s];null!==i&&(r[d]=null,r[s]=null,r[u]=null,i(p(void 0,!0))),r[c]=!0}),e.on("readable",b.bind(null,r)),r}},4379:function(e,t,r){"use strict";function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,i)}return r}function n(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach(function(t){a(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function s(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function u(e,t,r){return t&&s(e.prototype,t),r&&s(e,r),e}var f=r(4300).Buffer,c=r(3837).inspect,d=c&&c.custom||"inspect";function l(e,t,r){f.prototype.copy.call(e,t,r)}e.exports=function(){function e(){o(this,e),this.head=null,this.tail=null,this.length=0}return u(e,[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return f.alloc(0);for(var t=f.allocUnsafe(e>>>0),r=this.head,i=0;r;)l(r.data,t,i),i+=r.data.length,r=r.next;return t}},{key:"consume",value:function(e,t){var r;return e<this.head.data.length?(r=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):r=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,r=1,i=t.data;for(e-=i.length;t=t.next;){var n=t.data,a=e>n.length?n.length:e;if(a===n.length?i+=n:i+=n.slice(0,e),0==(e-=a)){a===n.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=n.slice(a));break}++r}return this.length-=r,i}},{key:"_getBuffer",value:function(e){var t=f.allocUnsafe(e),r=this.head,i=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var n=r.data,a=e>n.length?n.length:e;if(n.copy(t,t.length-e,0,a),0==(e-=a)){a===n.length?(++i,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=n.slice(a));break}++i}return this.length-=i,t}},{key:d,value:function(e,t){return c(this,n({},t,{depth:0,customInspect:!1}))}}]),e}()},7025:function(e){"use strict";function t(e,t){i(e,t),r(e)}function r(e){e._writableState&&!e._writableState.emitClose||(!e._readableState||e._readableState.emitClose)&&e.emit("close")}function i(e,t){e.emit("error",t)}e.exports={destroy:function(e,a){var o=this,s=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return s||u?a?a(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.default.nextTick(i,this,e)):n.default.nextTick(i,this,e)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!a&&e?o._writableState?o._writableState.errorEmitted?n.default.nextTick(r,o):(o._writableState.errorEmitted=!0,n.default.nextTick(t,o,e)):n.default.nextTick(t,o,e):a?(n.default.nextTick(r,o),a(e)):n.default.nextTick(r,o)})),this},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var r=e._readableState,i=e._writableState;r&&r.autoDestroy||i&&i.autoDestroy?e.destroy(t):e.emit("error",t)}}},9698:function(e,t,r){"use strict";var i=r(4646).q.ERR_STREAM_PREMATURE_CLOSE;function n(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,i=Array(r),n=0;n<r;n++)i[n]=arguments[n];e.apply(this,i)}}}function a(){}function o(e){return e.setHeader&&"function"==typeof e.abort}function s(e,t,r){if("function"==typeof t)return s(e,null,t);t||(t={}),r=n(r||a);var u=t.readable||!1!==t.readable&&e.readable,f=t.writable||!1!==t.writable&&e.writable,c=function(){e.writable||l()},d=e._writableState&&e._writableState.finished,l=function(){f=!1,d=!0,u||r.call(e)},h=e._readableState&&e._readableState.endEmitted,p=function(){u=!1,h=!0,f||r.call(e)},m=function(t){r.call(e,t)},b=function(){var t;return u&&!h?(e._readableState&&e._readableState.ended||(t=new i),r.call(e,t)):f&&!d?(e._writableState&&e._writableState.ended||(t=new i),r.call(e,t)):void 0},g=function(){e.req.on("finish",l)};return o(e)?(e.on("complete",l),e.on("abort",b),e.req?g():e.on("request",g)):f&&!e._writableState&&(e.on("end",c),e.on("close",c)),e.on("end",p),e.on("finish",l),!1!==t.error&&e.on("error",m),e.on("close",b),function(){e.removeListener("complete",l),e.removeListener("abort",b),e.removeListener("request",g),e.req&&e.req.removeListener("finish",l),e.removeListener("end",c),e.removeListener("close",c),e.removeListener("finish",l),e.removeListener("end",p),e.removeListener("error",m),e.removeListener("close",b)}}e.exports=s},9727:function(e,t,r){"use strict";function i(e,t,r,i,n,a,o){try{var s=e[a](o),u=s.value}catch(e){r(e);return}s.done?t(u):Promise.resolve(u).then(i,n)}function n(e){return function(){var t=this,r=arguments;return new Promise(function(n,a){var o=e.apply(t,r);function s(e){i(o,n,a,s,u,"next",e)}function u(e){i(o,n,a,s,u,"throw",e)}s(void 0)})}}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,i)}return r}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach(function(t){s(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var u=r(4646).q.ERR_INVALID_ARG_TYPE;e.exports=function(e,t,r){if(t&&"function"==typeof t.next)i=t;else if(t&&t[Symbol.asyncIterator])i=t[Symbol.asyncIterator]();else if(t&&t[Symbol.iterator])i=t[Symbol.iterator]();else throw new u("iterable",["Iterable"],t);var i,a=new e(o({objectMode:!0},r)),s=!1;function f(){return c.apply(this,arguments)}function c(){return(c=n(function*(){try{var e=yield i.next(),t=e.value;e.done?a.push(null):a.push((yield t))?f():s=!1}catch(e){a.destroy(e)}})).apply(this,arguments)}return a._read=function(){s||(s=!0,f())},a}},8442:function(e,t,r){"use strict";function i(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var n,a=r(4646).q,o=a.ERR_MISSING_ARGS,s=a.ERR_STREAM_DESTROYED;function u(e){if(e)throw e}function f(e){return e.setHeader&&"function"==typeof e.abort}function c(e,t,a,o){o=i(o);var u=!1;e.on("close",function(){u=!0}),void 0===n&&(n=r(9698)),n(e,{readable:t,writable:a},function(e){if(e)return o(e);u=!0,o()});var c=!1;return function(t){if(!u&&!c){if(c=!0,f(e))return e.abort();if("function"==typeof e.destroy)return e.destroy();o(t||new s("pipe"))}}}function d(e){e()}function l(e,t){return e.pipe(t)}function h(e){return e.length&&"function"==typeof e[e.length-1]?e.pop():u}e.exports=function(){for(var e,t=arguments.length,r=Array(t),i=0;i<t;i++)r[i]=arguments[i];var n=h(r);if(Array.isArray(r[0])&&(r=r[0]),r.length<2)throw new o("streams");var a=r.map(function(t,i){var o=i<r.length-1;return c(t,o,i>0,function(t){e||(e=t),t&&a.forEach(d),o||(a.forEach(d),n(e))})});return r.reduce(l)}},6776:function(e,t,r){"use strict";var i=r(4646).q.ERR_INVALID_OPT_VALUE;function n(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}e.exports={getHighWaterMark:function(e,t,r,a){var o=n(t,a,r);if(null!=o){if(!(isFinite(o)&&Math.floor(o)===o)||o<0)throw new i(a?r:"highWaterMark",o);return Math.floor(o)}return e.objectMode?16:16384}}},4678:function(e,t,r){e.exports=r(2781)},3726:function(e,t,r){var i=r(2781);"disable"===n.default.env.READABLE_STREAM&&i?(e.exports=i.Readable,Object.assign(e.exports,i),e.exports.Stream=i):((t=e.exports=r(1709)).Stream=i||t,t.Readable=t,t.Writable=r(7337),t.Duplex=r(2403),t.Transform=r(1170),t.PassThrough=r(7889),t.finished=r(9698),t.pipeline=r(8442))},3225:function(e,t,r){"use strict";var i=r(4300).Buffer,n=r(3782),a=r(9029),o=Array(16),s=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],u=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],f=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],c=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],d=[0,0x5a827999,0x6ed9eba1,0x8f1bbcdc,0xa953fd4e],l=[0x50a28be6,0x5c4dd124,0x6d703ef3,0x7a6d76e9,0];function h(){a.call(this,64),this._a=0x67452301,this._b=0xefcdab89,this._c=0x98badcfe,this._d=0x10325476,this._e=0xc3d2e1f0}function p(e,t){return e<<t|e>>>32-t}function m(e,t,r,i,n,a,o,s){return p(e+(t^r^i)+a+o|0,s)+n|0}function b(e,t,r,i,n,a,o,s){return p(e+(t&r|~t&i)+a+o|0,s)+n|0}function g(e,t,r,i,n,a,o,s){return p(e+((t|~r)^i)+a+o|0,s)+n|0}function v(e,t,r,i,n,a,o,s){return p(e+(t&i|r&~i)+a+o|0,s)+n|0}function y(e,t,r,i,n,a,o,s){return p(e+(t^(r|~i))+a+o|0,s)+n|0}n(h,a),h.prototype._update=function(){for(var e,t,r=o,i=0;i<16;++i)r[i]=this._block.readInt32LE(4*i);for(var n=0|this._a,a=0|this._b,h=0|this._c,_=0|this._d,x=0|this._e,w=0|this._a,S=0|this._b,k=0|this._c,$=0|this._d,I=0|this._e,M=0;M<80;M+=1)M<16?(e=m(n,a,h,_,x,r[s[M]],d[0],f[M]),t=y(w,S,k,$,I,r[u[M]],l[0],c[M])):M<32?(e=b(n,a,h,_,x,r[s[M]],d[1],f[M]),t=v(w,S,k,$,I,r[u[M]],l[1],c[M])):M<48?(e=g(n,a,h,_,x,r[s[M]],d[2],f[M]),t=g(w,S,k,$,I,r[u[M]],l[2],c[M])):M<64?(e=v(n,a,h,_,x,r[s[M]],d[3],f[M]),t=b(w,S,k,$,I,r[u[M]],l[3],c[M])):(e=y(n,a,h,_,x,r[s[M]],d[4],f[M]),t=m(w,S,k,$,I,r[u[M]],l[4],c[M])),n=x,x=_,_=p(h,10),h=a,a=e,w=I,I=$,$=p(k,10),k=S,S=t;var E=this._b+h+$|0;this._b=this._c+_+I|0,this._c=this._d+x+w|0,this._d=this._e+n+S|0,this._e=this._a+a+k|0,this._a=E},h.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=i.alloc?i.alloc(20):new i(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},e.exports=h},5055:function(e,t,r){var i=r(4300),n=i.Buffer;function a(e,t){for(var r in e)t[r]=e[r]}function o(e,t,r){return n(e,t,r)}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?e.exports=i:(a(i,t),t.Buffer=o),o.prototype=Object.create(n.prototype),a(n,o),o.from=function(e,t,r){if("number"==typeof e)throw TypeError("Argument must not be a number");return n(e,t,r)},o.alloc=function(e,t,r){if("number"!=typeof e)throw TypeError("Argument must be a number");var i=n(e);return void 0!==t?"string"==typeof r?i.fill(t,r):i.fill(t):i.fill(0),i},o.allocUnsafe=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return n(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return i.SlowBuffer(e)}},6911:function(e,t,r){var i=r(4300),n=i.Buffer;function a(e,t){for(var r in e)t[r]=e[r]}function o(e,t,r){return n(e,t,r)}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?e.exports=i:(a(i,t),t.Buffer=o),o.prototype=Object.create(n.prototype),a(n,o),o.from=function(e,t,r){if("number"==typeof e)throw TypeError("Argument must not be a number");return n(e,t,r)},o.alloc=function(e,t,r){if("number"!=typeof e)throw TypeError("Argument must be a number");var i=n(e);return void 0!==t?"string"==typeof r?i.fill(t,r):i.fill(t):i.fill(0),i},o.allocUnsafe=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return n(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return i.SlowBuffer(e)}},2858:function(e,t,r){var i=r(6911).Buffer;function n(e,t){this._block=i.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}n.prototype.update=function(e,t){"string"==typeof e&&(t=t||"utf8",e=i.from(e,t));for(var r=this._block,n=this._blockSize,a=e.length,o=this._len,s=0;s<a;){for(var u=o%n,f=Math.min(a-s,n-u),c=0;c<f;c++)r[u+c]=e[s+c];o+=f,s+=f,o%n==0&&this._update(r)}return this._len+=a,this},n.prototype.digest=function(e){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,t+1),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=8*this._len;if(r<=0xffffffff)this._block.writeUInt32BE(r,this._blockSize-4);else{var i=r>>>0,n=(r-i)/0x100000000;this._block.writeUInt32BE(n,this._blockSize-8),this._block.writeUInt32BE(i,this._blockSize-4)}this._update(this._block);var a=this._hash();return e?a.toString(e):a},n.prototype._update=function(){throw Error("_update must be implemented by subclass")},e.exports=n},4371:function(e,t,r){var i=e.exports=function(e){var t=i[e=e.toLowerCase()];if(!t)throw Error(e+" is not supported (we accept pull requests)");return new t};i.sha=r(4018),i.sha1=r(4179),i.sha224=r(532),i.sha256=r(1843),i.sha384=r(7455),i.sha512=r(9934)},4018:function(e,t,r){var i=r(3782),n=r(2858),a=r(6911).Buffer,o=[0x5a827999,0x6ed9eba1,-0x70e44324,-0x359d3e2a],s=Array(80);function u(){this.init(),this._w=s,n.call(this,64,56)}function f(e){return e<<5|e>>>27}function c(e){return e<<30|e>>>2}function d(e,t,r,i){return 0===e?t&r|~t&i:2===e?t&r|t&i|r&i:t^r^i}i(u,n),u.prototype.init=function(){return this._a=0x67452301,this._b=0xefcdab89,this._c=0x98badcfe,this._d=0x10325476,this._e=0xc3d2e1f0,this},u.prototype._update=function(e){for(var t=this._w,r=0|this._a,i=0|this._b,n=0|this._c,a=0|this._d,s=0|this._e,u=0;u<16;++u)t[u]=e.readInt32BE(4*u);for(;u<80;++u)t[u]=t[u-3]^t[u-8]^t[u-14]^t[u-16];for(var l=0;l<80;++l){var h=~~(l/20),p=f(r)+d(h,i,n,a)+s+t[l]+o[h]|0;s=a,a=n,n=c(i),i=r,r=p}this._a=r+this._a|0,this._b=i+this._b|0,this._c=n+this._c|0,this._d=a+this._d|0,this._e=s+this._e|0},u.prototype._hash=function(){var e=a.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=u},4179:function(e,t,r){var i=r(3782),n=r(2858),a=r(6911).Buffer,o=[0x5a827999,0x6ed9eba1,-0x70e44324,-0x359d3e2a],s=Array(80);function u(){this.init(),this._w=s,n.call(this,64,56)}function f(e){return e<<1|e>>>31}function c(e){return e<<5|e>>>27}function d(e){return e<<30|e>>>2}function l(e,t,r,i){return 0===e?t&r|~t&i:2===e?t&r|t&i|r&i:t^r^i}i(u,n),u.prototype.init=function(){return this._a=0x67452301,this._b=0xefcdab89,this._c=0x98badcfe,this._d=0x10325476,this._e=0xc3d2e1f0,this},u.prototype._update=function(e){for(var t=this._w,r=0|this._a,i=0|this._b,n=0|this._c,a=0|this._d,s=0|this._e,u=0;u<16;++u)t[u]=e.readInt32BE(4*u);for(;u<80;++u)t[u]=f(t[u-3]^t[u-8]^t[u-14]^t[u-16]);for(var h=0;h<80;++h){var p=~~(h/20),m=c(r)+l(p,i,n,a)+s+t[h]+o[p]|0;s=a,a=n,n=d(i),i=r,r=m}this._a=r+this._a|0,this._b=i+this._b|0,this._c=n+this._c|0,this._d=a+this._d|0,this._e=s+this._e|0},u.prototype._hash=function(){var e=a.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=u},532:function(e,t,r){var i=r(3782),n=r(1843),a=r(2858),o=r(6911).Buffer,s=Array(64);function u(){this.init(),this._w=s,a.call(this,64,56)}i(u,n),u.prototype.init=function(){return this._a=0xc1059ed8,this._b=0x367cd507,this._c=0x3070dd17,this._d=0xf70e5939,this._e=0xffc00b31,this._f=0x68581511,this._g=0x64f98fa7,this._h=0xbefa4fa4,this},u.prototype._hash=function(){var e=o.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},e.exports=u},1843:function(e,t,r){var i=r(3782),n=r(2858),a=r(6911).Buffer,o=[0x428a2f98,0x71374491,0xb5c0fbcf,0xe9b5dba5,0x3956c25b,0x59f111f1,0x923f82a4,0xab1c5ed5,0xd807aa98,0x12835b01,0x243185be,0x550c7dc3,0x72be5d74,0x80deb1fe,0x9bdc06a7,0xc19bf174,0xe49b69c1,0xefbe4786,0xfc19dc6,0x240ca1cc,0x2de92c6f,0x4a7484aa,0x5cb0a9dc,0x76f988da,0x983e5152,0xa831c66d,0xb00327c8,0xbf597fc7,0xc6e00bf3,0xd5a79147,0x6ca6351,0x14292967,0x27b70a85,0x2e1b2138,0x4d2c6dfc,0x53380d13,0x650a7354,0x766a0abb,0x81c2c92e,0x92722c85,0xa2bfe8a1,0xa81a664b,0xc24b8b70,0xc76c51a3,0xd192e819,0xd6990624,0xf40e3585,0x106aa070,0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5,0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3,0x748f82ee,0x78a5636f,0x84c87814,0x8cc70208,0x90befffa,0xa4506ceb,0xbef9a3f7,0xc67178f2],s=Array(64);function u(){this.init(),this._w=s,n.call(this,64,56)}function f(e,t,r){return r^e&(t^r)}function c(e,t,r){return e&t|r&(e|t)}function d(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function l(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function h(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}function p(e){return(e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10}i(u,n),u.prototype.init=function(){return this._a=0x6a09e667,this._b=0xbb67ae85,this._c=0x3c6ef372,this._d=0xa54ff53a,this._e=0x510e527f,this._f=0x9b05688c,this._g=0x1f83d9ab,this._h=0x5be0cd19,this},u.prototype._update=function(e){for(var t=this._w,r=0|this._a,i=0|this._b,n=0|this._c,a=0|this._d,s=0|this._e,u=0|this._f,m=0|this._g,b=0|this._h,g=0;g<16;++g)t[g]=e.readInt32BE(4*g);for(;g<64;++g)t[g]=p(t[g-2])+t[g-7]+h(t[g-15])+t[g-16]|0;for(var v=0;v<64;++v){var y=b+l(s)+f(s,u,m)+o[v]+t[v]|0,_=d(r)+c(r,i,n)|0;b=m,m=u,u=s,s=a+y|0,a=n,n=i,i=r,r=y+_|0}this._a=r+this._a|0,this._b=i+this._b|0,this._c=n+this._c|0,this._d=a+this._d|0,this._e=s+this._e|0,this._f=u+this._f|0,this._g=m+this._g|0,this._h=b+this._h|0},u.prototype._hash=function(){var e=a.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},e.exports=u},7455:function(e,t,r){var i=r(3782),n=r(9934),a=r(2858),o=r(6911).Buffer,s=Array(160);function u(){this.init(),this._w=s,a.call(this,128,112)}i(u,n),u.prototype.init=function(){return this._ah=0xcbbb9d5d,this._bh=0x629a292a,this._ch=0x9159015a,this._dh=0x152fecd8,this._eh=0x67332667,this._fh=0x8eb44a87,this._gh=0xdb0c2e0d,this._hh=0x47b5481d,this._al=0xc1059ed8,this._bl=0x367cd507,this._cl=0x3070dd17,this._dl=0xf70e5939,this._el=0xffc00b31,this._fl=0x68581511,this._gl=0x64f98fa7,this._hl=0xbefa4fa4,this},u.prototype._hash=function(){var e=o.allocUnsafe(48);function t(t,r,i){e.writeInt32BE(t,i),e.writeInt32BE(r,i+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},e.exports=u},9934:function(e,t,r){var i=r(3782),n=r(2858),a=r(6911).Buffer,o=[0x428a2f98,0xd728ae22,0x71374491,0x23ef65cd,0xb5c0fbcf,0xec4d3b2f,0xe9b5dba5,0x8189dbbc,0x3956c25b,0xf348b538,0x59f111f1,0xb605d019,0x923f82a4,0xaf194f9b,0xab1c5ed5,0xda6d8118,0xd807aa98,0xa3030242,0x12835b01,0x45706fbe,0x243185be,0x4ee4b28c,0x550c7dc3,0xd5ffb4e2,0x72be5d74,0xf27b896f,0x80deb1fe,0x3b1696b1,0x9bdc06a7,0x25c71235,0xc19bf174,0xcf692694,0xe49b69c1,0x9ef14ad2,0xefbe4786,0x384f25e3,0xfc19dc6,0x8b8cd5b5,0x240ca1cc,0x77ac9c65,0x2de92c6f,0x592b0275,0x4a7484aa,0x6ea6e483,0x5cb0a9dc,0xbd41fbd4,0x76f988da,0x831153b5,0x983e5152,0xee66dfab,0xa831c66d,0x2db43210,0xb00327c8,0x98fb213f,0xbf597fc7,0xbeef0ee4,0xc6e00bf3,0x3da88fc2,0xd5a79147,0x930aa725,0x6ca6351,0xe003826f,0x14292967,0xa0e6e70,0x27b70a85,0x46d22ffc,0x2e1b2138,0x5c26c926,0x4d2c6dfc,0x5ac42aed,0x53380d13,0x9d95b3df,0x650a7354,0x8baf63de,0x766a0abb,0x3c77b2a8,0x81c2c92e,0x47edaee6,0x92722c85,0x1482353b,0xa2bfe8a1,0x4cf10364,0xa81a664b,0xbc423001,0xc24b8b70,0xd0f89791,0xc76c51a3,0x654be30,0xd192e819,0xd6ef5218,0xd6990624,0x5565a910,0xf40e3585,0x5771202a,0x106aa070,0x32bbd1b8,0x19a4c116,0xb8d2d0c8,0x1e376c08,0x5141ab53,0x2748774c,0xdf8eeb99,0x34b0bcb5,0xe19b48a8,0x391c0cb3,0xc5c95a63,0x4ed8aa4a,0xe3418acb,0x5b9cca4f,0x7763e373,0x682e6ff3,0xd6b2b8a3,0x748f82ee,0x5defb2fc,0x78a5636f,0x43172f60,0x84c87814,0xa1f0ab72,0x8cc70208,0x1a6439ec,0x90befffa,0x23631e28,0xa4506ceb,0xde82bde9,0xbef9a3f7,0xb2c67915,0xc67178f2,0xe372532b,0xca273ece,0xea26619c,0xd186b8c7,0x21c0c207,0xeada7dd6,0xcde0eb1e,0xf57d4f7f,0xee6ed178,0x6f067aa,0x72176fba,0xa637dc5,0xa2c898a6,0x113f9804,0xbef90dae,0x1b710b35,0x131c471b,0x28db77f5,0x23047d84,0x32caab7b,0x40c72493,0x3c9ebe0a,0x15c9bebc,0x431d67c4,0x9c100d4c,0x4cc5d4be,0xcb3e42b6,0x597f299c,0xfc657e2a,0x5fcb6fab,0x3ad6faec,0x6c44198c,0x4a475817],s=Array(160);function u(){this.init(),this._w=s,n.call(this,128,112)}function f(e,t,r){return r^e&(t^r)}function c(e,t,r){return e&t|r&(e|t)}function d(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function l(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function h(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function p(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function m(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function b(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function g(e,t){return+(e>>>0<t>>>0)}i(u,n),u.prototype.init=function(){return this._ah=0x6a09e667,this._bh=0xbb67ae85,this._ch=0x3c6ef372,this._dh=0xa54ff53a,this._eh=0x510e527f,this._fh=0x9b05688c,this._gh=0x1f83d9ab,this._hh=0x5be0cd19,this._al=0xf3bcc908,this._bl=0x84caa73b,this._cl=0xfe94f82b,this._dl=0x5f1d36f1,this._el=0xade682d1,this._fl=0x2b3e6c1f,this._gl=0xfb41bd6b,this._hl=0x137e2179,this},u.prototype._update=function(e){for(var t=this._w,r=0|this._ah,i=0|this._bh,n=0|this._ch,a=0|this._dh,s=0|this._eh,u=0|this._fh,v=0|this._gh,y=0|this._hh,_=0|this._al,x=0|this._bl,w=0|this._cl,S=0|this._dl,k=0|this._el,$=0|this._fl,I=0|this._gl,M=0|this._hl,E=0;E<32;E+=2)t[E]=e.readInt32BE(4*E),t[E+1]=e.readInt32BE(4*E+4);for(;E<160;E+=2){var A=t[E-30],O=t[E-30+1],j=h(A,O),z=p(O,A),U=m(A=t[E-4],O=t[E-4+1]),P=b(O,A),T=t[E-14],R=t[E-14+1],N=t[E-32],D=t[E-32+1],B=z+R|0,Z=j+T+g(B,z)|0;Z=(Z=Z+U+g(B=B+P|0,P)|0)+N+g(B=B+D|0,D)|0,t[E]=Z,t[E+1]=B}for(var C=0;C<160;C+=2){Z=t[C],B=t[C+1];var L=c(r,i,n),q=c(_,x,w),F=d(r,_),J=d(_,r),W=l(s,k),K=l(k,s),V=o[C],G=o[C+1],H=f(s,u,v),X=f(k,$,I),Y=M+K|0,Q=y+W+g(Y,M)|0;Q=(Q=(Q=Q+H+g(Y=Y+X|0,X)|0)+V+g(Y=Y+G|0,G)|0)+Z+g(Y=Y+B|0,B)|0;var ee=J+q|0,et=F+L+g(ee,J)|0;y=v,M=I,v=u,I=$,u=s,$=k,s=a+Q+g(k=S+Y|0,S)|0,a=n,S=w,n=i,w=x,i=r,x=_,r=Q+et+g(_=Y+ee|0,Y)|0}this._al=this._al+_|0,this._bl=this._bl+x|0,this._cl=this._cl+w|0,this._dl=this._dl+S|0,this._el=this._el+k|0,this._fl=this._fl+$|0,this._gl=this._gl+I|0,this._hl=this._hl+M|0,this._ah=this._ah+r+g(this._al,_)|0,this._bh=this._bh+i+g(this._bl,x)|0,this._ch=this._ch+n+g(this._cl,w)|0,this._dh=this._dh+a+g(this._dl,S)|0,this._eh=this._eh+s+g(this._el,k)|0,this._fh=this._fh+u+g(this._fl,$)|0,this._gh=this._gh+v+g(this._gl,I)|0,this._hh=this._hh+y+g(this._hl,M)|0},u.prototype._hash=function(){var e=a.allocUnsafe(64);function t(t,r,i){e.writeInt32BE(t,i),e.writeInt32BE(r,i+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},e.exports=u},3704:function(e,t,r){"use strict";var i=r(5055).Buffer,n=i.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function a(e){var t;if(!e)return"utf8";for(;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function o(e){var t=a(e);if("string"!=typeof t&&(i.isEncoding===n||!n(e)))throw Error("Unknown encoding: "+e);return t||e}function s(e){var t;switch(this.encoding=o(e),this.encoding){case"utf16le":this.text=p,this.end=m,t=4;break;case"utf8":this.fillLast=d,t=4;break;case"base64":this.text=b,this.end=g,t=3;break;default:this.write=v,this.end=y;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=i.allocUnsafe(t)}function u(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function f(e,t,r){var i=t.length-1;if(i<r)return 0;var n=u(t[i]);return n>=0?(n>0&&(e.lastNeed=n-1),n):--i<r||-2===n?0:(n=u(t[i]))>=0?(n>0&&(e.lastNeed=n-2),n):--i<r||-2===n?0:(n=u(t[i]))>=0?(n>0&&(2===n?n=0:e.lastNeed=n-3),n):0}function c(e,t,r){if((192&t[0])!=128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((192&t[1])!=128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(192&t[2])!=128)return e.lastNeed=2,"�"}}function d(e){var t=this.lastTotal-this.lastNeed,r=c(this,e,t);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length)}function l(e,t){var r=f(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var i=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,i),e.toString("utf8",t,i)}function h(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function p(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function m(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function b(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function g(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function v(e){return e.toString(this.encoding)}function y(e){return e&&e.length?this.write(e):""}t.s=s,s.prototype.write=function(e){var t,r;if(0===e.length)return"";if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},s.prototype.end=h,s.prototype.text=l,s.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},6769:function(t){function r(t){try{if(!e.g.localStorage)return!1}catch(e){return!1}var r=e.g.localStorage[t];return null!=r&&"true"===String(r).toLowerCase()}t.exports=function e(e,t){if(r("noDeprecation"))return e;var i=!1;return function(){if(!i){if(r("throwDeprecation"))throw Error(t);r("traceDeprecation")?console.trace(t):console.warn(t),i=!0}return e.apply(this,arguments)}}},4300:function(t){"use strict";t.exports=e.r(49440)},6113:function(t){"use strict";t.exports=e.r(3560)},2361:function(t){"use strict";t.exports=e.r(25235)},2781:function(t){"use strict";t.exports=e.r(75391)},1576:function(t){"use strict";t.exports=e.r(24753)},3837:function(t){"use strict";t.exports=e.r(60776)},6144:function(t){"use strict";t.exports=e.r(26966)},5866:function(e){"use strict";e.exports=JSON.parse('{"aes-128-ecb":{"cipher":"AES","key":128,"iv":0,"mode":"ECB","type":"block"},"aes-192-ecb":{"cipher":"AES","key":192,"iv":0,"mode":"ECB","type":"block"},"aes-256-ecb":{"cipher":"AES","key":256,"iv":0,"mode":"ECB","type":"block"},"aes-128-cbc":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes-192-cbc":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes-256-cbc":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes128":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes192":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes256":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes-128-cfb":{"cipher":"AES","key":128,"iv":16,"mode":"CFB","type":"stream"},"aes-192-cfb":{"cipher":"AES","key":192,"iv":16,"mode":"CFB","type":"stream"},"aes-256-cfb":{"cipher":"AES","key":256,"iv":16,"mode":"CFB","type":"stream"},"aes-128-cfb8":{"cipher":"AES","key":128,"iv":16,"mode":"CFB8","type":"stream"},"aes-192-cfb8":{"cipher":"AES","key":192,"iv":16,"mode":"CFB8","type":"stream"},"aes-256-cfb8":{"cipher":"AES","key":256,"iv":16,"mode":"CFB8","type":"stream"},"aes-128-cfb1":{"cipher":"AES","key":128,"iv":16,"mode":"CFB1","type":"stream"},"aes-192-cfb1":{"cipher":"AES","key":192,"iv":16,"mode":"CFB1","type":"stream"},"aes-256-cfb1":{"cipher":"AES","key":256,"iv":16,"mode":"CFB1","type":"stream"},"aes-128-ofb":{"cipher":"AES","key":128,"iv":16,"mode":"OFB","type":"stream"},"aes-192-ofb":{"cipher":"AES","key":192,"iv":16,"mode":"OFB","type":"stream"},"aes-256-ofb":{"cipher":"AES","key":256,"iv":16,"mode":"OFB","type":"stream"},"aes-128-ctr":{"cipher":"AES","key":128,"iv":16,"mode":"CTR","type":"stream"},"aes-192-ctr":{"cipher":"AES","key":192,"iv":16,"mode":"CTR","type":"stream"},"aes-256-ctr":{"cipher":"AES","key":256,"iv":16,"mode":"CTR","type":"stream"},"aes-128-gcm":{"cipher":"AES","key":128,"iv":12,"mode":"GCM","type":"auth"},"aes-192-gcm":{"cipher":"AES","key":192,"iv":12,"mode":"GCM","type":"auth"},"aes-256-gcm":{"cipher":"AES","key":256,"iv":12,"mode":"GCM","type":"auth"}}')},2908:function(e){"use strict";e.exports=JSON.parse('{"sha224WithRSAEncryption":{"sign":"rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"RSA-SHA224":{"sign":"ecdsa/rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"sha256WithRSAEncryption":{"sign":"rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"RSA-SHA256":{"sign":"ecdsa/rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"sha384WithRSAEncryption":{"sign":"rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"RSA-SHA384":{"sign":"ecdsa/rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"sha512WithRSAEncryption":{"sign":"rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA512":{"sign":"ecdsa/rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA1":{"sign":"rsa","hash":"sha1","id":"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{"sign":"ecdsa","hash":"sha1","id":""},"sha256":{"sign":"ecdsa","hash":"sha256","id":""},"sha224":{"sign":"ecdsa","hash":"sha224","id":""},"sha384":{"sign":"ecdsa","hash":"sha384","id":""},"sha512":{"sign":"ecdsa","hash":"sha512","id":""},"DSA-SHA":{"sign":"dsa","hash":"sha1","id":""},"DSA-SHA1":{"sign":"dsa","hash":"sha1","id":""},"DSA":{"sign":"dsa","hash":"sha1","id":""},"DSA-WITH-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-WITH-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-WITH-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-WITH-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-RIPEMD160":{"sign":"dsa","hash":"rmd160","id":""},"ripemd160WithRSA":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"RSA-RIPEMD160":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"md5WithRSAEncryption":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"},"RSA-MD5":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"}}')},9267:function(e){"use strict";e.exports=JSON.parse('{"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}')},7992:function(e){"use strict";e.exports=JSON.parse('{"modp1":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},"modp2":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},"modp5":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},"modp14":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},"modp15":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},"modp16":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},"modp17":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},"modp18":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}')},2531:function(e){"use strict";e.exports={i8:"6.5.3"}},2510:function(e){"use strict";e.exports=JSON.parse('{"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}')}},a={};function o(e){var t=a[e];if(void 0!==t)return t.exports;var i=a[e]={id:e,loaded:!1,exports:{}},n=!0;try{r[e].call(i.exports,i,i.exports,o),n=!1}finally{n&&delete a[e]}return i.loaded=!0,i.exports}!function(){o.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e}}(),o.ab="/ROOT/node_modules/.pnpm/next@16.2.4_@babel+core@7.29.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/compiled/crypto-browserify/";var s={};!function(){"use strict";var e=s;e.randomBytes=e.rng=e.pseudoRandomBytes=e.prng=o(7223),e.createHash=e.Hash=o(9739),e.createHmac=e.Hmac=o(4873);var t=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(Object.keys(o(9276)));e.getHashes=function(){return t};var r=o(4978);e.pbkdf2=r.pbkdf2,e.pbkdf2Sync=r.pbkdf2Sync;var i=o(8996);e.Cipher=i.Cipher,e.createCipher=i.createCipher,e.Cipheriv=i.Cipheriv,e.createCipheriv=i.createCipheriv,e.Decipher=i.Decipher,e.createDecipher=i.createDecipher,e.Decipheriv=i.Decipheriv,e.createDecipheriv=i.createDecipheriv,e.getCiphers=i.getCiphers,e.listCiphers=i.listCiphers;var n=o(6587);e.DiffieHellmanGroup=n.DiffieHellmanGroup,e.createDiffieHellmanGroup=n.createDiffieHellmanGroup,e.getDiffieHellman=n.getDiffieHellman,e.createDiffieHellman=n.createDiffieHellman,e.DiffieHellman=n.DiffieHellman;var a=o(4078);e.createSign=a.createSign,e.Sign=a.Sign,e.createVerify=a.createVerify,e.Verify=a.Verify,e.createECDH=o(9942);var u=o(9783);e.publicEncrypt=u.publicEncrypt,e.privateEncrypt=u.privateEncrypt,e.publicDecrypt=u.publicDecrypt,e.privateDecrypt=u.privateDecrypt;var f=o(6445);e.randomFill=f.randomFill,e.randomFillSync=f.randomFillSync,e.createCredentials=function(){throw Error("sorry, createCredentials is not implemented yet\nwe accept pull requests\nhttps://github.com/crypto-browserify/crypto-browserify")},e.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}}(),t.exports=s}()},18446,28619,41460,38082,5957,45244,54530,e=>{"use strict";e.i(3560),function(e){e[e.CRITICAL=0]="CRITICAL",e[e.HIGH=1]="HIGH",e[e.NORMAL=2]="NORMAL",e[e.LOW=3]="LOW"}(s3||(s3={}));let t=Object.freeze({status:"aborted"});function r(e,t,r){function i(r,i){if(r._zod||Object.defineProperty(r,"_zod",{value:{def:i,constr:o,traits:new Set},enumerable:!1}),r._zod.traits.has(e))return;r._zod.traits.add(e),t(r,i);let n=o.prototype,a=Object.keys(n);for(let e=0;e<a.length;e++){let t=a[e];t in r||(r[t]=n[t].bind(r))}}let n=r?.Parent??Object;class a extends n{}function o(e){var t;let n=r?.Parent?new a:this;for(let r of(i(n,e),(t=n._zod).deferred??(t.deferred=[]),n._zod.deferred))r();return n}return Object.defineProperty(a,"name",{value:e}),Object.defineProperty(o,"init",{value:i}),Object.defineProperty(o,Symbol.hasInstance,{value:t=>!!r?.Parent&&t instanceof r.Parent||t?._zod?.traits?.has(e)}),Object.defineProperty(o,"name",{value:e}),o}let i=Symbol("zod_brand");class n extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class a extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name="ZodEncodeError"}}let o={};function s(e){return e&&Object.assign(o,e),o}function u(e){return e}function f(e){return e}function c(e){}function d(e){throw Error("Unexpected value in exhaustive check")}function l(e){}function h(e){let t=Object.values(e).filter(e=>"number"==typeof e);return Object.entries(e).filter(([e,r])=>-1===t.indexOf(+e)).map(([e,t])=>t)}function p(e,t="|"){return e.map(e=>F(e)).join(t)}function m(e,t){return"bigint"==typeof t?t.toString():t}function b(e){return{get value(){{let t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function g(e){return null==e}function v(e){let t=+!!e.startsWith("^"),r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}function y(e,t){let r=(e.toString().split(".")[1]||"").length,i=t.toString(),n=(i.split(".")[1]||"").length;if(0===n&&/\d?e-\d?/.test(i)){let e=i.match(/\d?e-(\d?)/);e?.[1]&&(n=Number.parseInt(e[1]))}let a=r>n?r:n;return Number.parseInt(e.toFixed(a).replace(".",""))%Number.parseInt(t.toFixed(a).replace(".",""))/10**a}e.s(["$ZodAsyncError",0,n,"$ZodEncodeError",0,a,"$brand",0,i,"$constructor",0,r,"NEVER",0,t,"config",0,s,"globalConfig",0,o],33215);let _=Symbol("evaluating");function x(e,t,r){let i;Object.defineProperty(e,t,{get(){if(i!==_)return void 0===i&&(i=_,i=r()),i},set(r){Object.defineProperty(e,t,{value:r})},configurable:!0})}function w(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function S(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function k(...e){let t={};for(let r of e)Object.assign(t,Object.getOwnPropertyDescriptors(r));return Object.defineProperties({},t)}function $(e){return k(e._zod.def)}function I(e,t){return t?t.reduce((e,t)=>e?.[t],e):e}function M(e){let t=Object.keys(e);return Promise.all(t.map(t=>e[t])).then(e=>{let r={};for(let i=0;i<t.length;i++)r[t[i]]=e[i];return r})}function E(e=10){let t="abcdefghijklmnopqrstuvwxyz",r="";for(let i=0;i<e;i++)r+=t[Math.floor(Math.random()*t.length)];return r}function A(e){return JSON.stringify(e)}function O(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}let j="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function z(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}let U=b(()=>{if("u">typeof navigator&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return Function(""),!0}catch(e){return!1}});function P(e){if(!1===z(e))return!1;let t=e.constructor;if(void 0===t||"function"!=typeof t)return!0;let r=t.prototype;return!1!==z(r)&&!1!==Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")}function T(e){return P(e)?{...e}:Array.isArray(e)?[...e]:e}function R(e){let t=0;for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t++;return t}let N=e=>{let t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":if(Array.isArray(e))return"array";if(null===e)return"null";if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return"promise";if("u">typeof Map&&e instanceof Map)return"map";if("u">typeof Set&&e instanceof Set)return"set";if("u">typeof Date&&e instanceof Date)return"date";if("u">typeof File&&e instanceof File)return"file";return"object";default:throw Error(`Unknown data type: ${t}`)}},D=new Set(["string","number","symbol"]),B=new Set(["string","number","bigint","boolean","symbol","undefined"]);function Z(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function C(e,t,r){let i=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(i._zod.parent=e),i}function L(e){let t=e;if(!t)return{};if("string"==typeof t)return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return(delete t.message,"string"==typeof t.error)?{...t,error:()=>t.error}:t}function q(e){let t;return new Proxy({},{get:(r,i,n)=>(t??(t=e()),Reflect.get(t,i,n)),set:(r,i,n,a)=>(t??(t=e()),Reflect.set(t,i,n,a)),has:(r,i)=>(t??(t=e()),Reflect.has(t,i)),deleteProperty:(r,i)=>(t??(t=e()),Reflect.deleteProperty(t,i)),ownKeys:r=>(t??(t=e()),Reflect.ownKeys(t)),getOwnPropertyDescriptor:(r,i)=>(t??(t=e()),Reflect.getOwnPropertyDescriptor(t,i)),defineProperty:(r,i,n)=>(t??(t=e()),Reflect.defineProperty(t,i,n))})}function F(e){return"bigint"==typeof e?e.toString()+"n":"string"==typeof e?`"${e}"`:`${e}`}function J(e){return Object.keys(e).filter(t=>"optional"===e[t]._zod.optin&&"optional"===e[t]._zod.optout)}let W={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-0x80000000,0x7fffffff],uint32:[0,0xffffffff],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},K={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function V(e,t){let r=e._zod.def,i=r.checks;if(i&&i.length>0)throw Error(".pick() cannot be used on object schemas containing refinements");let n=k(e._zod.def,{get shape(){let e={};for(let i in t){if(!(i in r.shape))throw Error(`Unrecognized key: "${i}"`);t[i]&&(e[i]=r.shape[i])}return S(this,"shape",e),e},checks:[]});return C(e,n)}function G(e,t){let r=e._zod.def,i=r.checks;if(i&&i.length>0)throw Error(".omit() cannot be used on object schemas containing refinements");let n=k(e._zod.def,{get shape(){let i={...e._zod.def.shape};for(let e in t){if(!(e in r.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete i[e]}return S(this,"shape",i),i},checks:[]});return C(e,n)}function H(e,t){if(!P(t))throw Error("Invalid input to extend: expected a plain object");let r=e._zod.def.checks;if(r&&r.length>0){let r=e._zod.def.shape;for(let e in t)if(void 0!==Object.getOwnPropertyDescriptor(r,e))throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let i=k(e._zod.def,{get shape(){let r={...e._zod.def.shape,...t};return S(this,"shape",r),r}});return C(e,i)}function X(e,t){if(!P(t))throw Error("Invalid input to safeExtend: expected a plain object");let r=k(e._zod.def,{get shape(){let r={...e._zod.def.shape,...t};return S(this,"shape",r),r}});return C(e,r)}function Y(e,t){let r=k(e._zod.def,{get shape(){let r={...e._zod.def.shape,...t._zod.def.shape};return S(this,"shape",r),r},get catchall(){return t._zod.def.catchall},checks:[]});return C(e,r)}function Q(e,t,r){let i=t._zod.def.checks;if(i&&i.length>0)throw Error(".partial() cannot be used on object schemas containing refinements");let n=k(t._zod.def,{get shape(){let i=t._zod.def.shape,n={...i};if(r)for(let t in r){if(!(t in i))throw Error(`Unrecognized key: "${t}"`);r[t]&&(n[t]=e?new e({type:"optional",innerType:i[t]}):i[t])}else for(let t in i)n[t]=e?new e({type:"optional",innerType:i[t]}):i[t];return S(this,"shape",n),n},checks:[]});return C(t,n)}function ee(e,t,r){let i=k(t._zod.def,{get shape(){let i=t._zod.def.shape,n={...i};if(r)for(let t in r){if(!(t in n))throw Error(`Unrecognized key: "${t}"`);r[t]&&(n[t]=new e({type:"nonoptional",innerType:i[t]}))}else for(let t in i)n[t]=new e({type:"nonoptional",innerType:i[t]});return S(this,"shape",n),n}});return C(t,i)}function et(e,t=0){if(!0===e.aborted)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}function er(e,t){return t.map(t=>{var r;return(r=t).path??(r.path=[]),t.path.unshift(e),t})}function ei(e){return"string"==typeof e?e:e?.message}function en(e,t,r){let i={...e,path:e.path??[]};return e.message||(i.message=ei(e.inst?._zod.def?.error?.(e))??ei(t?.error?.(e))??ei(r.customError?.(e))??ei(r.localeError?.(e))??"Invalid input"),delete i.inst,delete i.continue,t?.reportInput||delete i.input,i}function ea(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function eo(e){return Array.isArray(e)?"array":"string"==typeof e?"string":"unknown"}function es(e){let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(null===e)return"null";if(Array.isArray(e))return"array";let t=e;if(t&&Object.getPrototypeOf(t)!==Object.prototype&&"constructor"in t&&t.constructor)return t.constructor.name}}return t}function eu(...e){let[t,r,i]=e;return"string"==typeof t?{message:t,code:"custom",input:r,inst:i}:{...t}}function ef(e){return Object.entries(e).filter(([e,t])=>Number.isNaN(Number.parseInt(e,10))).map(e=>e[1])}function ec(e){let t=atob(e),r=new Uint8Array(t.length);for(let e=0;e<t.length;e++)r[e]=t.charCodeAt(e);return r}function ed(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t)}function el(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),r="=".repeat((4-t.length%4)%4);return ec(t+r)}function eh(e){return ed(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function ep(e){let t=e.replace(/^0x/,"");if(t.length%2!=0)throw Error("Invalid hex string length");let r=new Uint8Array(t.length/2);for(let e=0;e<t.length;e+=2)r[e/2]=Number.parseInt(t.slice(e,e+2),16);return r}function em(e){return Array.from(e).map(e=>e.toString(16).padStart(2,"0")).join("")}class eb{constructor(...e){}}e.s(["BIGINT_FORMAT_RANGES",0,K,"Class",0,eb,"NUMBER_FORMAT_RANGES",0,W,"aborted",0,et,"allowsEval",0,U,"assert",0,l,"assertEqual",0,u,"assertIs",0,c,"assertNever",0,d,"assertNotEqual",0,f,"assignProp",0,S,"base64ToUint8Array",0,ec,"base64urlToUint8Array",0,el,"cached",0,b,"captureStackTrace",0,j,"cleanEnum",0,ef,"cleanRegex",0,v,"clone",0,C,"cloneDef",0,$,"createTransparentProxy",0,q,"defineLazy",0,x,"esc",0,A,"escapeRegex",0,Z,"extend",0,H,"finalizeIssue",0,en,"floatSafeRemainder",0,y,"getElementAtPath",0,I,"getEnumValues",0,h,"getLengthableOrigin",0,eo,"getParsedType",0,N,"getSizableOrigin",0,ea,"hexToUint8Array",0,ep,"isObject",0,z,"isPlainObject",0,P,"issue",0,eu,"joinValues",0,p,"jsonStringifyReplacer",0,m,"merge",0,Y,"mergeDefs",0,k,"normalizeParams",0,L,"nullish",0,g,"numKeys",0,R,"objectClone",0,w,"omit",0,G,"optionalKeys",0,J,"parsedType",0,es,"partial",0,Q,"pick",0,V,"prefixIssues",0,er,"primitiveTypes",0,B,"promiseAllObject",0,M,"propertyKeyTypes",0,D,"randomString",0,E,"required",0,ee,"safeExtend",0,X,"shallowClone",0,T,"slugify",0,O,"stringifyPrimitive",0,F,"uint8ArrayToBase64",0,ed,"uint8ArrayToBase64url",0,eh,"uint8ArrayToHex",0,em,"unwrapMessage",0,ei],32967);let eg=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,m,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},ev=r("$ZodError",eg),ey=r("$ZodError",eg,{Parent:Error});function e_(e,t=e=>e.message){let r={},i=[];for(let n of e.issues)n.path.length>0?(r[n.path[0]]=r[n.path[0]]||[],r[n.path[0]].push(t(n))):i.push(t(n));return{formErrors:i,fieldErrors:r}}function ex(e,t=e=>e.message){let r={_errors:[]},i=e=>{for(let n of e.issues)if("invalid_union"===n.code&&n.errors.length)n.errors.map(e=>i({issues:e}));else if("invalid_key"===n.code)i({issues:n.issues});else if("invalid_element"===n.code)i({issues:n.issues});else if(0===n.path.length)r._errors.push(t(n));else{let e=r,i=0;for(;i<n.path.length;){let r=n.path[i];i===n.path.length-1?(e[r]=e[r]||{_errors:[]},e[r]._errors.push(t(n))):e[r]=e[r]||{_errors:[]},e=e[r],i++}}};return i(e),r}function ew(e,t=e=>e.message){let r={errors:[]},i=(e,n=[])=>{var a,o;for(let s of e.issues)if("invalid_union"===s.code&&s.errors.length)s.errors.map(e=>i({issues:e},s.path));else if("invalid_key"===s.code)i({issues:s.issues},s.path);else if("invalid_element"===s.code)i({issues:s.issues},s.path);else{let e=[...n,...s.path];if(0===e.length){r.errors.push(t(s));continue}let i=r,u=0;for(;u<e.length;){let r=e[u],n=u===e.length-1;"string"==typeof r?(i.properties??(i.properties={}),(a=i.properties)[r]??(a[r]={errors:[]}),i=i.properties[r]):(i.items??(i.items=[]),(o=i.items)[r]??(o[r]={errors:[]}),i=i.items[r]),n&&i.errors.push(t(s)),u++}}};return i(e),r}function eS(e){let t=[];for(let r of e.map(e=>"object"==typeof e?e.key:e))"number"==typeof r?t.push(`[${r}]`):"symbol"==typeof r?t.push(`[${JSON.stringify(String(r))}]`):/[^\w$]/.test(r)?t.push(`[${JSON.stringify(r)}]`):(t.length&&t.push("."),t.push(r));return t.join("")}function ek(e){let t=[];for(let r of[...e.issues].sort((e,t)=>(e.path??[]).length-(t.path??[]).length))t.push(`✖ ${r.message}`),r.path?.length&&t.push(` → at ${eS(r.path)}`);return t.join("\n")}e.s(["$ZodError",0,ev,"$ZodRealError",0,ey,"flattenError",0,e_,"formatError",0,ex,"prettifyError",0,ek,"toDotPath",0,eS,"treeifyError",0,ew],99120);let e$=e=>(t,r,i,a)=>{let o=i?Object.assign(i,{async:!1}):{async:!1},u=t._zod.run({value:r,issues:[]},o);if(u instanceof Promise)throw new n;if(u.issues.length){let t=new(a?.Err??e)(u.issues.map(e=>en(e,o,s())));throw j(t,a?.callee),t}return u.value},eI=e$(ey),eM=e=>async(t,r,i,n)=>{let a=i?Object.assign(i,{async:!0}):{async:!0},o=t._zod.run({value:r,issues:[]},a);if(o instanceof Promise&&(o=await o),o.issues.length){let t=new(n?.Err??e)(o.issues.map(e=>en(e,a,s())));throw j(t,n?.callee),t}return o.value},eE=eM(ey),eA=e=>(t,r,i)=>{let a=i?{...i,async:!1}:{async:!1},o=t._zod.run({value:r,issues:[]},a);if(o instanceof Promise)throw new n;return o.issues.length?{success:!1,error:new(e??ev)(o.issues.map(e=>en(e,a,s())))}:{success:!0,data:o.value}},eO=eA(ey),ej=e=>async(t,r,i)=>{let n=i?Object.assign(i,{async:!0}):{async:!0},a=t._zod.run({value:r,issues:[]},n);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(e=>en(e,n,s())))}:{success:!0,data:a.value}},ez=ej(ey),eU=e=>(t,r,i)=>{let n=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return e$(e)(t,r,n)},eP=eU(ey),eT=e=>(t,r,i)=>e$(e)(t,r,i),eR=eT(ey),eN=e=>async(t,r,i)=>{let n=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return eM(e)(t,r,n)},eD=eN(ey),eB=e=>async(t,r,i)=>eM(e)(t,r,i),eZ=eB(ey),eC=e=>(t,r,i)=>{let n=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return eA(e)(t,r,n)},eL=eC(ey),eq=e=>(t,r,i)=>eA(e)(t,r,i),eF=eq(ey),eJ=e=>async(t,r,i)=>{let n=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return ej(e)(t,r,n)},eW=eJ(ey),eK=e=>async(t,r,i)=>ej(e)(t,r,i),eV=eK(ey);e.s(["_decode",0,eT,"_decodeAsync",0,eB,"_encode",0,eU,"_encodeAsync",0,eN,"_parse",0,e$,"_parseAsync",0,eM,"_safeDecode",0,eq,"_safeDecodeAsync",0,eK,"_safeEncode",0,eC,"_safeEncodeAsync",0,eJ,"_safeParse",0,eA,"_safeParseAsync",0,ej,"decode",0,eR,"decodeAsync",0,eZ,"encode",0,eP,"encodeAsync",0,eD,"parse",0,eI,"parseAsync",0,eE,"safeDecode",0,eF,"safeDecodeAsync",0,eV,"safeEncode",0,eL,"safeEncodeAsync",0,eW,"safeParse",0,eO,"safeParseAsync",0,ez],29677);let eG=/^[cC][^\s-]{8,}$/,eH=/^[0-9a-z]+$/,eX=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,eY=/^[0-9a-vA-V]{20}$/,eQ=/^[A-Za-z0-9]{27}$/,e0=/^[a-zA-Z0-9_-]{21}$/,e1=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,e2=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,e6=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,e4=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,e3=e4(4),e8=e4(6),e5=e4(7),e9=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,e7=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,te=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,tt=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,tr=tt,ti=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,tn="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function ta(){return RegExp(tn,"u")}let to=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,ts=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,tu=e=>{let t=Z(e??":");return RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},tf=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,tc=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,td=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,tl=/^[A-Za-z0-9_-]*$/,th=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,tp=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,tm=/^\+[1-9]\d{6,14}$/,tb="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",tg=RegExp(`^${tb}$`);function tv(e){let t="(?:[01]\\d|2[0-3]):[0-5]\\d";return"number"==typeof e.precision?-1===e.precision?`${t}`:0===e.precision?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function ty(e){return RegExp(`^${tv(e)}$`)}function t_(e){let t=tv({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let i=`${t}(?:${r.join("|")})`;return RegExp(`^${tb}T(?:${i})$`)}let tx=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return RegExp(`^${t}$`)},tw=/^-?\d+n?$/,tS=/^-?\d+$/,tk=/^-?\d+(?:\.\d+)?$/,t$=/^(?:true|false)$/i,tI=/^null$/i,tM=/^undefined$/i,tE=/^[^A-Z]*$/,tA=/^[^a-z]*$/,tO=/^[0-9a-fA-F]*$/;function tj(e,t){return RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function tz(e){return RegExp(`^[A-Za-z0-9_-]{${e}}$`)}let tU=/^[0-9a-fA-F]{32}$/,tP=tj(22,"=="),tT=tz(22),tR=/^[0-9a-fA-F]{40}$/,tN=tj(27,"="),tD=tz(27),tB=/^[0-9a-fA-F]{64}$/,tZ=tj(43,"="),tC=tz(43),tL=/^[0-9a-fA-F]{96}$/,tq=tj(64,""),tF=tz(64),tJ=/^[0-9a-fA-F]{128}$/,tW=tj(86,"=="),tK=tz(86);e.s(["base64",0,td,"base64url",0,tl,"bigint",0,tw,"boolean",0,t$,"browserEmail",0,ti,"cidrv4",0,tf,"cidrv6",0,tc,"cuid",0,eG,"cuid2",0,eH,"date",0,tg,"datetime",0,t_,"domain",0,tp,"duration",0,e1,"e164",0,tm,"email",0,e9,"emoji",0,ta,"extendedDuration",0,e2,"guid",0,e6,"hex",0,tO,"hostname",0,th,"html5Email",0,e7,"idnEmail",0,tr,"integer",0,tS,"ipv4",0,to,"ipv6",0,ts,"ksuid",0,eQ,"lowercase",0,tE,"mac",0,tu,"md5_base64",0,tP,"md5_base64url",0,tT,"md5_hex",0,tU,"nanoid",0,e0,"null",0,tI,"number",0,tk,"rfc5322Email",0,te,"sha1_base64",0,tN,"sha1_base64url",0,tD,"sha1_hex",0,tR,"sha256_base64",0,tZ,"sha256_base64url",0,tC,"sha256_hex",0,tB,"sha384_base64",0,tq,"sha384_base64url",0,tF,"sha384_hex",0,tL,"sha512_base64",0,tW,"sha512_base64url",0,tK,"sha512_hex",0,tJ,"string",0,tx,"time",0,ty,"ulid",0,eX,"undefined",0,tM,"unicodeEmail",0,tt,"uppercase",0,tA,"uuid",0,e4,"uuid4",0,e3,"uuid6",0,e8,"uuid7",0,e5,"xid",0,eY],55279);let tV=r("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),tG={number:"number",bigint:"bigint",object:"date"},tH=r("$ZodCheckLessThan",(e,t)=>{tV.init(e,t);let r=tG[typeof t.value];e._zod.onattach.push(e=>{let r=e._zod.bag,i=(t.inclusive?r.maximum:r.exclusiveMaximum)??1/0;t.value<i&&(t.inclusive?r.maximum=t.value:r.exclusiveMaximum=t.value)}),e._zod.check=i=>{(t.inclusive?i.value<=t.value:i.value<t.value)||i.issues.push({origin:r,code:"too_big",maximum:"object"==typeof t.value?t.value.getTime():t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),tX=r("$ZodCheckGreaterThan",(e,t)=>{tV.init(e,t);let r=tG[typeof t.value];e._zod.onattach.push(e=>{let r=e._zod.bag,i=(t.inclusive?r.minimum:r.exclusiveMinimum)??-1/0;t.value>i&&(t.inclusive?r.minimum=t.value:r.exclusiveMinimum=t.value)}),e._zod.check=i=>{(t.inclusive?i.value>=t.value:i.value>t.value)||i.issues.push({origin:r,code:"too_small",minimum:"object"==typeof t.value?t.value.getTime():t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),tY=r("$ZodCheckMultipleOf",(e,t)=>{tV.init(e,t),e._zod.onattach.push(e=>{var r;(r=e._zod.bag).multipleOf??(r.multipleOf=t.value)}),e._zod.check=r=>{if(typeof r.value!=typeof t.value)throw Error("Cannot mix number and bigint in multiple_of check.");("bigint"==typeof r.value?r.value%t.value===BigInt(0):0===y(r.value,t.value))||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:t.value,input:r.value,inst:e,continue:!t.abort})}}),tQ=r("$ZodCheckNumberFormat",(e,t)=>{tV.init(e,t),t.format=t.format||"float64";let r=t.format?.includes("int"),i=r?"int":"number",[n,a]=W[t.format];e._zod.onattach.push(e=>{let i=e._zod.bag;i.format=t.format,i.minimum=n,i.maximum=a,r&&(i.pattern=tS)}),e._zod.check=o=>{let s=o.value;if(r){if(!Number.isInteger(s))return void o.issues.push({expected:i,format:t.format,code:"invalid_type",continue:!1,input:s,inst:e});if(!Number.isSafeInteger(s))return void(s>0?o.issues.push({input:s,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,inclusive:!0,continue:!t.abort}):o.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,inclusive:!0,continue:!t.abort}))}s<n&&o.issues.push({origin:"number",input:s,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort}),s>a&&o.issues.push({origin:"number",input:s,code:"too_big",maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),t0=r("$ZodCheckBigIntFormat",(e,t)=>{tV.init(e,t);let[r,i]=K[t.format];e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,n.minimum=r,n.maximum=i}),e._zod.check=n=>{let a=n.value;a<r&&n.issues.push({origin:"bigint",input:a,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),a>i&&n.issues.push({origin:"bigint",input:a,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!t.abort})}}),t1=r("$ZodCheckMaxSize",(e,t)=>{var r;tV.init(e,t),(r=e._zod.def).when??(r.when=e=>{let t=e.value;return!g(t)&&void 0!==t.size}),e._zod.onattach.push(e=>{let r=e._zod.bag.maximum??1/0;t.maximum<r&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{let i=r.value;i.size<=t.maximum||r.issues.push({origin:ea(i),code:"too_big",maximum:t.maximum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),t2=r("$ZodCheckMinSize",(e,t)=>{var r;tV.init(e,t),(r=e._zod.def).when??(r.when=e=>{let t=e.value;return!g(t)&&void 0!==t.size}),e._zod.onattach.push(e=>{let r=e._zod.bag.minimum??-1/0;t.minimum>r&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{let i=r.value;i.size>=t.minimum||r.issues.push({origin:ea(i),code:"too_small",minimum:t.minimum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),t6=r("$ZodCheckSizeEquals",(e,t)=>{var r;tV.init(e,t),(r=e._zod.def).when??(r.when=e=>{let t=e.value;return!g(t)&&void 0!==t.size}),e._zod.onattach.push(e=>{let r=e._zod.bag;r.minimum=t.size,r.maximum=t.size,r.size=t.size}),e._zod.check=r=>{let i=r.value,n=i.size;if(n===t.size)return;let a=n>t.size;r.issues.push({origin:ea(i),...a?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),t4=r("$ZodCheckMaxLength",(e,t)=>{var r;tV.init(e,t),(r=e._zod.def).when??(r.when=e=>{let t=e.value;return!g(t)&&void 0!==t.length}),e._zod.onattach.push(e=>{let r=e._zod.bag.maximum??1/0;t.maximum<r&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{let i=r.value;if(i.length<=t.maximum)return;let n=eo(i);r.issues.push({origin:n,code:"too_big",maximum:t.maximum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),t3=r("$ZodCheckMinLength",(e,t)=>{var r;tV.init(e,t),(r=e._zod.def).when??(r.when=e=>{let t=e.value;return!g(t)&&void 0!==t.length}),e._zod.onattach.push(e=>{let r=e._zod.bag.minimum??-1/0;t.minimum>r&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{let i=r.value;if(i.length>=t.minimum)return;let n=eo(i);r.issues.push({origin:n,code:"too_small",minimum:t.minimum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),t8=r("$ZodCheckLengthEquals",(e,t)=>{var r;tV.init(e,t),(r=e._zod.def).when??(r.when=e=>{let t=e.value;return!g(t)&&void 0!==t.length}),e._zod.onattach.push(e=>{let r=e._zod.bag;r.minimum=t.length,r.maximum=t.length,r.length=t.length}),e._zod.check=r=>{let i=r.value,n=i.length;if(n===t.length)return;let a=eo(i),o=n>t.length;r.issues.push({origin:a,...o?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),t5=r("$ZodCheckStringFormat",(e,t)=>{var r,i;tV.init(e,t),e._zod.onattach.push(e=>{let r=e._zod.bag;r.format=t.format,t.pattern&&(r.patterns??(r.patterns=new Set),r.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.check=r=>{t.pattern.lastIndex=0,t.pattern.test(r.value)||r.issues.push({origin:"string",code:"invalid_format",format:t.format,input:r.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(i=e._zod).check??(i.check=()=>{})}),t9=r("$ZodCheckRegex",(e,t)=>{t5.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,t.pattern.test(r.value)||r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),t7=r("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=tE),t5.init(e,t)}),re=r("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=tA),t5.init(e,t)}),rt=r("$ZodCheckIncludes",(e,t)=>{tV.init(e,t);let r=Z(t.includes),i=new RegExp("number"==typeof t.position?`^.{${t.position}}${r}`:r);t.pattern=i,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(i)}),e._zod.check=r=>{r.value.includes(t.includes,t.position)||r.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:r.value,inst:e,continue:!t.abort})}}),rr=r("$ZodCheckStartsWith",(e,t)=>{tV.init(e,t);let r=RegExp(`^${Z(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(r)}),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),ri=r("$ZodCheckEndsWith",(e,t)=>{tV.init(e,t);let r=RegExp(`.*${Z(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(r)}),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}});function rn(e,t,r){e.issues.length&&t.issues.push(...er(r,e.issues))}let ra=r("$ZodCheckProperty",(e,t)=>{tV.init(e,t),e._zod.check=e=>{let r=t.schema._zod.run({value:e.value[t.property],issues:[]},{});if(r instanceof Promise)return r.then(r=>rn(r,e,t.property));rn(r,e,t.property)}}),ro=r("$ZodCheckMimeType",(e,t)=>{tV.init(e,t);let r=new Set(t.mime);e._zod.onattach.push(e=>{e._zod.bag.mime=t.mime}),e._zod.check=i=>{r.has(i.value.type)||i.issues.push({code:"invalid_value",values:t.mime,input:i.value.type,inst:e,continue:!t.abort})}}),rs=r("$ZodCheckOverwrite",(e,t)=>{tV.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}});e.s(["$ZodCheck",0,tV,"$ZodCheckBigIntFormat",0,t0,"$ZodCheckEndsWith",0,ri,"$ZodCheckGreaterThan",0,tX,"$ZodCheckIncludes",0,rt,"$ZodCheckLengthEquals",0,t8,"$ZodCheckLessThan",0,tH,"$ZodCheckLowerCase",0,t7,"$ZodCheckMaxLength",0,t4,"$ZodCheckMaxSize",0,t1,"$ZodCheckMimeType",0,ro,"$ZodCheckMinLength",0,t3,"$ZodCheckMinSize",0,t2,"$ZodCheckMultipleOf",0,tY,"$ZodCheckNumberFormat",0,tQ,"$ZodCheckOverwrite",0,rs,"$ZodCheckProperty",0,ra,"$ZodCheckRegex",0,t9,"$ZodCheckSizeEquals",0,t6,"$ZodCheckStartsWith",0,rr,"$ZodCheckStringFormat",0,t5,"$ZodCheckUpperCase",0,re],75999);class ru{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if("function"==typeof e){e(this,{execution:"sync"}),e(this,{execution:"async"});return}let t=e.split("\n").filter(e=>e),r=Math.min(...t.map(e=>e.length-e.trimStart().length));for(let e of t.map(e=>e.slice(r)).map(e=>" ".repeat(2*this.indent)+e))this.content.push(e)}compile(){return Function(...this?.args,[...(this?.content??[""]).map(e=>` ${e}`)].join("\n"))}}e.s(["Doc",0,ru],96425);let rf={major:4,minor:3,patch:6};e.s(["version",0,rf],16891);let rc=r("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=rf;let i=[...e._zod.def.checks??[]];for(let t of(e._zod.traits.has("$ZodCheck")&&i.unshift(e),i))for(let r of t._zod.onattach)r(e);if(0===i.length)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(e,t,r)=>{let i,a=et(e);for(let o of t){if(o._zod.def.when){if(!o._zod.def.when(e))continue}else if(a)continue;let t=e.issues.length,s=o._zod.check(e);if(s instanceof Promise&&r?.async===!1)throw new n;if(i||s instanceof Promise)i=(i??Promise.resolve()).then(async()=>{await s,e.issues.length!==t&&(a||(a=et(e,t)))});else{if(e.issues.length===t)continue;a||(a=et(e,t))}}return i?i.then(()=>e):e},r=(r,a,o)=>{if(et(r))return r.aborted=!0,r;let s=t(a,i,o);if(s instanceof Promise){if(!1===o.async)throw new n;return s.then(t=>e._zod.parse(t,o))}return e._zod.parse(s,o)};e._zod.run=(a,o)=>{if(o.skipChecks)return e._zod.parse(a,o);if("backward"===o.direction){let t=e._zod.parse({value:a.value,issues:[]},{...o,skipChecks:!0});return t instanceof Promise?t.then(e=>r(e,a,o)):r(t,a,o)}let s=e._zod.parse(a,o);if(s instanceof Promise){if(!1===o.async)throw new n;return s.then(e=>t(e,i,o))}return t(s,i,o)}}x(e,"~standard",()=>({validate:t=>{try{let r=eO(e,t);return r.success?{value:r.data}:{issues:r.error?.issues}}catch(r){return ez(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:"zod",version:1}))}),rd=r("$ZodString",(e,t)=>{rc.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??tx(e._zod.bag),e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=String(r.value)}catch(e){}return"string"==typeof r.value||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),rl=r("$ZodStringFormat",(e,t)=>{t5.init(e,t),rd.init(e,t)}),rh=r("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=e6),rl.init(e,t)}),rp=r("$ZodUUID",(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(void 0===e)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=e4(e))}else t.pattern??(t.pattern=e4());rl.init(e,t)}),rm=r("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=e9),rl.init(e,t)}),rb=r("$ZodURL",(e,t)=>{rl.init(e,t),e._zod.check=r=>{try{let i=r.value.trim(),n=new URL(i);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(n.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:r.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(n.protocol.endsWith(":")?n.protocol.slice(0,-1):n.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort})),t.normalize?r.value=n.href:r.value=i;return}catch(i){r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}}),rg=r("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=ta()),rl.init(e,t)}),rv=r("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=e0),rl.init(e,t)}),ry=r("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=eG),rl.init(e,t)}),r_=r("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=eH),rl.init(e,t)}),rx=r("$ZodULID",(e,t)=>{t.pattern??(t.pattern=eX),rl.init(e,t)}),rw=r("$ZodXID",(e,t)=>{t.pattern??(t.pattern=eY),rl.init(e,t)}),rS=r("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=eQ),rl.init(e,t)}),rk=r("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=t_(t)),rl.init(e,t)}),r$=r("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=tg),rl.init(e,t)}),rI=r("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=ty(t)),rl.init(e,t)}),rM=r("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=e1),rl.init(e,t)}),rE=r("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=to),rl.init(e,t),e._zod.bag.format="ipv4"}),rA=r("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=ts),rl.init(e,t),e._zod.bag.format="ipv6",e._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort})}}}),rO=r("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=tu(t.delimiter)),rl.init(e,t),e._zod.bag.format="mac"}),rj=r("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=tf),rl.init(e,t)}),rz=r("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=tc),rl.init(e,t),e._zod.check=r=>{let i=r.value.split("/");try{if(2!==i.length)throw Error();let[e,t]=i;if(!t)throw Error();let r=Number(t);if(`${r}`!==t||r<0||r>128)throw Error();new URL(`http://[${e}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}}});function rU(e){if(""===e)return!0;if(e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}let rP=r("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=td),rl.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=r=>{rU(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}});function rT(e){if(!tl.test(e))return!1;let t=e.replace(/[-_]/g,e=>"-"===e?"+":"/");return rU(t.padEnd(4*Math.ceil(t.length/4),"="))}let rR=r("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=tl),rl.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=r=>{rT(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),rN=r("$ZodE164",(e,t)=>{t.pattern??(t.pattern=tm),rl.init(e,t)});function rD(e,t=null){try{let r=e.split(".");if(3!==r.length)return!1;let[i]=r;if(!i)return!1;let n=JSON.parse(atob(i));if("typ"in n&&n?.typ!=="JWT"||!n.alg||t&&(!("alg"in n)||n.alg!==t))return!1;return!0}catch{return!1}}let rB=r("$ZodJWT",(e,t)=>{rl.init(e,t),e._zod.check=r=>{rD(r.value,t.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}}),rZ=r("$ZodCustomStringFormat",(e,t)=>{rl.init(e,t),e._zod.check=r=>{t.fn(r.value)||r.issues.push({code:"invalid_format",format:t.format,input:r.value,inst:e,continue:!t.abort})}}),rC=r("$ZodNumber",(e,t)=>{rc.init(e,t),e._zod.pattern=e._zod.bag.pattern??tk,e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=Number(r.value)}catch(e){}let n=r.value;if("number"==typeof n&&!Number.isNaN(n)&&Number.isFinite(n))return r;let a="number"==typeof n?Number.isNaN(n)?"NaN":Number.isFinite(n)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:n,inst:e,...a?{received:a}:{}}),r}}),rL=r("$ZodNumberFormat",(e,t)=>{tQ.init(e,t),rC.init(e,t)}),rq=r("$ZodBoolean",(e,t)=>{rc.init(e,t),e._zod.pattern=t$,e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=!!r.value}catch(e){}let n=r.value;return"boolean"==typeof n||r.issues.push({expected:"boolean",code:"invalid_type",input:n,inst:e}),r}}),rF=r("$ZodBigInt",(e,t)=>{rc.init(e,t),e._zod.pattern=tw,e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=BigInt(r.value)}catch(e){}return"bigint"==typeof r.value||r.issues.push({expected:"bigint",code:"invalid_type",input:r.value,inst:e}),r}}),rJ=r("$ZodBigIntFormat",(e,t)=>{t0.init(e,t),rF.init(e,t)}),rW=r("$ZodSymbol",(e,t)=>{rc.init(e,t),e._zod.parse=(t,r)=>{let i=t.value;return"symbol"==typeof i||t.issues.push({expected:"symbol",code:"invalid_type",input:i,inst:e}),t}}),rK=r("$ZodUndefined",(e,t)=>{rc.init(e,t),e._zod.pattern=tM,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(t,r)=>{let i=t.value;return void 0===i||t.issues.push({expected:"undefined",code:"invalid_type",input:i,inst:e}),t}}),rV=r("$ZodNull",(e,t)=>{rc.init(e,t),e._zod.pattern=tI,e._zod.values=new Set([null]),e._zod.parse=(t,r)=>{let i=t.value;return null===i||t.issues.push({expected:"null",code:"invalid_type",input:i,inst:e}),t}}),rG=r("$ZodAny",(e,t)=>{rc.init(e,t),e._zod.parse=e=>e}),rH=r("$ZodUnknown",(e,t)=>{rc.init(e,t),e._zod.parse=e=>e}),rX=r("$ZodNever",(e,t)=>{rc.init(e,t),e._zod.parse=(t,r)=>(t.issues.push({expected:"never",code:"invalid_type",input:t.value,inst:e}),t)}),rY=r("$ZodVoid",(e,t)=>{rc.init(e,t),e._zod.parse=(t,r)=>{let i=t.value;return void 0===i||t.issues.push({expected:"void",code:"invalid_type",input:i,inst:e}),t}}),rQ=r("$ZodDate",(e,t)=>{rc.init(e,t),e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=new Date(r.value)}catch(e){}let n=r.value,a=n instanceof Date;return a&&!Number.isNaN(n.getTime())||r.issues.push({expected:"date",code:"invalid_type",input:n,...a?{received:"Invalid Date"}:{},inst:e}),r}});function r0(e,t,r){e.issues.length&&t.issues.push(...er(r,e.issues)),t.value[r]=e.value}let r1=r("$ZodArray",(e,t)=>{rc.init(e,t),e._zod.parse=(r,i)=>{let n=r.value;if(!Array.isArray(n))return r.issues.push({expected:"array",code:"invalid_type",input:n,inst:e}),r;r.value=Array(n.length);let a=[];for(let e=0;e<n.length;e++){let o=n[e],s=t.element._zod.run({value:o,issues:[]},i);s instanceof Promise?a.push(s.then(t=>r0(t,r,e))):r0(s,r,e)}return a.length?Promise.all(a).then(()=>r):r}});function r2(e,t,r,i,n){if(e.issues.length){if(n&&!(r in i))return;t.issues.push(...er(r,e.issues))}void 0===e.value?r in i&&(t.value[r]=void 0):t.value[r]=e.value}function r6(e){let t=Object.keys(e.shape);for(let r of t)if(!e.shape?.[r]?._zod?.traits?.has("$ZodType"))throw Error(`Invalid element at key "${r}": expected a Zod schema`);let r=J(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}function r4(e,t,r,i,n,a){let o=[],s=n.keySet,u=n.catchall._zod,f=u.def.type,c="optional"===u.optout;for(let n in t){if(s.has(n))continue;if("never"===f){o.push(n);continue}let a=u.run({value:t[n],issues:[]},i);a instanceof Promise?e.push(a.then(e=>r2(e,r,n,t,c))):r2(a,r,n,t,c)}return(o.length&&r.issues.push({code:"unrecognized_keys",keys:o,input:t,inst:a}),e.length)?Promise.all(e).then(()=>r):r}let r3=r("$ZodObject",(e,t)=>{let r;rc.init(e,t);let i=Object.getOwnPropertyDescriptor(t,"shape");if(!i?.get){let e=t.shape;Object.defineProperty(t,"shape",{get:()=>{let r={...e};return Object.defineProperty(t,"shape",{value:r}),r}})}let n=b(()=>r6(t));x(e._zod,"propValues",()=>{let e=t.shape,r={};for(let t in e){let i=e[t]._zod;if(i.values)for(let e of(r[t]??(r[t]=new Set),i.values))r[t].add(e)}return r});let a=z,o=t.catchall;e._zod.parse=(t,i)=>{r??(r=n.value);let s=t.value;if(!a(s))return t.issues.push({expected:"object",code:"invalid_type",input:s,inst:e}),t;t.value={};let u=[],f=r.shape;for(let e of r.keys){let r=f[e],n="optional"===r._zod.optout,a=r._zod.run({value:s[e],issues:[]},i);a instanceof Promise?u.push(a.then(r=>r2(r,t,e,s,n))):r2(a,t,e,s,n)}return o?r4(u,s,t,i,n.value,e):u.length?Promise.all(u).then(()=>t):t}}),r8=r("$ZodObjectJIT",(e,t)=>{let r,i;r3.init(e,t);let n=e._zod.parse,a=b(()=>r6(t)),s=e=>{let t=new ru(["shape","payload","ctx"]),r=a.value,i=e=>{let t=A(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write("const input = payload.value;");let n=Object.create(null),o=0;for(let e of r.keys)n[e]=`key_${o++}`;for(let a of(t.write("const newResult = {};"),r.keys)){let r=n[a],o=A(a),s=e[a],u=s?._zod?.optout==="optional";t.write(`const ${r} = ${i(a)};`),u?t.write(`
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,53030,(e,t,r)=>{!function(){var e={675:function(e,t){"use strict";t.byteLength=f,t.toByteArray=d,t.fromByteArray=p;for(var r=[],i=[],n="u">typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,s=a.length;o<s;++o)r[o]=a[o],i[a.charCodeAt(o)]=o;function u(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var i=r===t?0:4-r%4;return[r,i]}function f(e){var t=u(e),r=t[0],i=t[1];return(r+i)*3/4-i}function c(e,t,r){return(t+r)*3/4-r}function d(e){var t,r,a=u(e),o=a[0],s=a[1],f=new n(c(e,o,s)),d=0,l=s>0?o-4:o;for(r=0;r<l;r+=4)t=i[e.charCodeAt(r)]<<18|i[e.charCodeAt(r+1)]<<12|i[e.charCodeAt(r+2)]<<6|i[e.charCodeAt(r+3)],f[d++]=t>>16&255,f[d++]=t>>8&255,f[d++]=255&t;return 2===s&&(t=i[e.charCodeAt(r)]<<2|i[e.charCodeAt(r+1)]>>4,f[d++]=255&t),1===s&&(t=i[e.charCodeAt(r)]<<10|i[e.charCodeAt(r+1)]<<4|i[e.charCodeAt(r+2)]>>2,f[d++]=t>>8&255,f[d++]=255&t),f}function l(e){return r[e>>18&63]+r[e>>12&63]+r[e>>6&63]+r[63&e]}function h(e,t,r){for(var i=[],n=t;n<r;n+=3)i.push(l((e[n]<<16&0xff0000)+(e[n+1]<<8&65280)+(255&e[n+2])));return i.join("")}function p(e){for(var t,i=e.length,n=i%3,a=[],o=16383,s=0,u=i-n;s<u;s+=o)a.push(h(e,s,s+o>u?u:s+o));return 1===n?a.push(r[(t=e[i-1])>>2]+r[t<<4&63]+"=="):2===n&&a.push(r[(t=(e[i-2]<<8)+e[i-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),a.join("")}i[45]=62,i[95]=63},72:function(e,t,r){"use strict";var i=r(675),n=r(783),a="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=f,t.SlowBuffer=y,t.INSPECT_MAX_BYTES=50;var o=0x7fffffff;function s(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}function u(e){if(e>o)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,f.prototype),t}function f(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return h(e)}return c(e,t,r)}function c(e,t,r){if("string"==typeof e)return p(e,t);if(ArrayBuffer.isView(e))return m(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(X(e,ArrayBuffer)||e&&X(e.buffer,ArrayBuffer)||"u">typeof SharedArrayBuffer&&(X(e,SharedArrayBuffer)||e&&X(e.buffer,SharedArrayBuffer)))return b(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var i=e.valueOf&&e.valueOf();if(null!=i&&i!==e)return f.from(i,t,r);var n=g(e);if(n)return n;if("u">typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return f.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function d(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function l(e,t,r){return(d(e),e<=0)?u(e):void 0!==t?"string"==typeof r?u(e).fill(t,r):u(e).fill(t):u(e)}function h(e){return d(e),u(e<0?0:0|v(e))}function p(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!f.isEncoding(t))throw TypeError("Unknown encoding: "+t);var r=0|_(e,t),i=u(r),n=i.write(e,t);return n!==r&&(i=i.slice(0,n)),i}function m(e){for(var t=e.length<0?0:0|v(e.length),r=u(t),i=0;i<t;i+=1)r[i]=255&e[i];return r}function b(e,t,r){var i;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(i=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),f.prototype),i}function g(e){if(f.isBuffer(e)){var t=0|v(e.length),r=u(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||Y(e.length)?u(0):m(e):"Buffer"===e.type&&Array.isArray(e.data)?m(e.data):void 0}function v(e){if(e>=o)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return 0|e}function y(e){return+e!=e&&(e=0),f.alloc(+e)}function _(e,t){if(f.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||X(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,i=arguments.length>2&&!0===arguments[2];if(!i&&0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return W(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return G(e).length;default:if(n)return i?-1:W(e).length;t=(""+t).toLowerCase(),n=!0}}function x(e,t,r){var i=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return R(this,t,r);case"utf8":case"utf-8":return j(this,t,r);case"ascii":return P(this,t,r);case"latin1":case"binary":return T(this,t,r);case"base64":return N(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,t,r);default:if(i)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}function w(e,t,r){var i=e[t];e[t]=e[r],e[r]=i}function S(e,t,r,i,n){if(0===e.length)return -1;if("string"==typeof r?(i=r,r=0):r>0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),Y(r*=1)&&(r=n?0:e.length-1),r<0&&(r=e.length+r),r>=e.length)if(n)return -1;else r=e.length-1;else if(r<0)if(!n)return -1;else r=0;if("string"==typeof t&&(t=f.from(t,i)),f.isBuffer(t))return 0===t.length?-1:k(e,t,r,i,n);if("number"==typeof t){if(t&=255,"function"==typeof Uint8Array.prototype.indexOf)if(n)return Uint8Array.prototype.indexOf.call(e,t,r);else return Uint8Array.prototype.lastIndexOf.call(e,t,r);return k(e,[t],r,i,n)}throw TypeError("val must be string, number or Buffer")}function k(e,t,r,i,n){var a,o=1,s=e.length,u=t.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return -1;o=2,s/=2,u/=2,r/=2}function f(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(n){var c=-1;for(a=r;a<s;a++)if(f(e,a)===f(t,-1===c?0:a-c)){if(-1===c&&(c=a),a-c+1===u)return c*o}else -1!==c&&(a-=a-c),c=-1}else for(r+u>s&&(r=s-u),a=r;a>=0;a--){for(var d=!0,l=0;l<u;l++)if(f(e,a+l)!==f(t,l)){d=!1;break}if(d)return a}return -1}function $(e,t,r,i){r=Number(r)||0;var n=e.length-r;i?(i=Number(i))>n&&(i=n):i=n;var a=t.length;i>a/2&&(i=a/2);for(var o=0;o<i;++o){var s=parseInt(t.substr(2*o,2),16);if(Y(s))break;e[r+o]=s}return o}function I(e,t,r,i){return H(W(t,e.length-r),e,r,i)}function M(e,t,r,i){return H(K(t),e,r,i)}function E(e,t,r,i){return M(e,t,r,i)}function A(e,t,r,i){return H(G(t),e,r,i)}function O(e,t,r,i){return H(V(t,e.length-r),e,r,i)}function N(e,t,r){return 0===t&&r===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,r))}function j(e,t,r){r=Math.min(e.length,r);for(var i=[],n=t;n<r;){var a,o,s,u,f=e[n],c=null,d=f>239?4:f>223?3:f>191?2:1;if(n+d<=r)switch(d){case 1:f<128&&(c=f);break;case 2:(192&(a=e[n+1]))==128&&(u=(31&f)<<6|63&a)>127&&(c=u);break;case 3:a=e[n+1],o=e[n+2],(192&a)==128&&(192&o)==128&&(u=(15&f)<<12|(63&a)<<6|63&o)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:a=e[n+1],o=e[n+2],s=e[n+3],(192&a)==128&&(192&o)==128&&(192&s)==128&&(u=(15&f)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&u<1114112&&(c=u)}null===c?(c=65533,d=1):c>65535&&(c-=65536,i.push(c>>>10&1023|55296),c=56320|1023&c),i.push(c),n+=d}return U(i)}t.kMaxLength=0x7fffffff,f.TYPED_ARRAY_SUPPORT=s(),!f.TYPED_ARRAY_SUPPORT&&"u">typeof console&&"function"==typeof console.error&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(f.prototype,"parent",{enumerable:!0,get:function(){if(f.isBuffer(this))return this.buffer}}),Object.defineProperty(f.prototype,"offset",{enumerable:!0,get:function(){if(f.isBuffer(this))return this.byteOffset}}),f.poolSize=8192,f.from=function(e,t,r){return c(e,t,r)},Object.setPrototypeOf(f.prototype,Uint8Array.prototype),Object.setPrototypeOf(f,Uint8Array),f.alloc=function(e,t,r){return l(e,t,r)},f.allocUnsafe=function(e){return h(e)},f.allocUnsafeSlow=function(e){return h(e)},f.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==f.prototype},f.compare=function(e,t){if(X(e,Uint8Array)&&(e=f.from(e,e.offset,e.byteLength)),X(t,Uint8Array)&&(t=f.from(t,t.offset,t.byteLength)),!f.isBuffer(e)||!f.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,i=t.length,n=0,a=Math.min(r,i);n<a;++n)if(e[n]!==t[n]){r=e[n],i=t[n];break}return r<i?-1:+(i<r)},f.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},f.concat=function(e,t){if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return f.alloc(0);if(void 0===t)for(r=0,t=0;r<e.length;++r)t+=e[r].length;var r,i=f.allocUnsafe(t),n=0;for(r=0;r<e.length;++r){var a=e[r];if(X(a,Uint8Array)&&(a=f.from(a)),!f.isBuffer(a))throw TypeError('"list" argument must be an Array of Buffers');a.copy(i,n),n+=a.length}return i},f.byteLength=_,f.prototype._isBuffer=!0,f.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)w(this,t,t+1);return this},f.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)w(this,t,t+3),w(this,t+1,t+2);return this},f.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)w(this,t,t+7),w(this,t+1,t+6),w(this,t+2,t+5),w(this,t+3,t+4);return this},f.prototype.toString=function(){var e=this.length;return 0===e?"":0==arguments.length?j(this,0,e):x.apply(this,arguments)},f.prototype.toLocaleString=f.prototype.toString,f.prototype.equals=function(e){if(!f.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===f.compare(this,e)},f.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},a&&(f.prototype[a]=f.prototype.inspect),f.prototype.compare=function(e,t,r,i,n){if(X(e,Uint8Array)&&(e=f.from(e,e.offset,e.byteLength)),!f.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===i&&(i=0),void 0===n&&(n=this.length),t<0||r>e.length||i<0||n>this.length)throw RangeError("out of range index");if(i>=n&&t>=r)return 0;if(i>=n)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,i>>>=0,n>>>=0,this===e)return 0;for(var a=n-i,o=r-t,s=Math.min(a,o),u=this.slice(i,n),c=e.slice(t,r),d=0;d<s;++d)if(u[d]!==c[d]){a=u[d],o=c[d];break}return a<o?-1:+(o<a)},f.prototype.includes=function(e,t,r){return -1!==this.indexOf(e,t,r)},f.prototype.indexOf=function(e,t,r){return S(this,e,t,r,!0)},f.prototype.lastIndexOf=function(e,t,r){return S(this,e,t,r,!1)},f.prototype.write=function(e,t,r,i){if(void 0===t)i="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)i=t,r=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(r)?(r>>>=0,void 0===i&&(i="utf8")):(i=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var n=this.length-t;if((void 0===r||r>n)&&(r=n),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var a=!1;;)switch(i){case"hex":return $(this,e,t,r);case"utf8":case"utf-8":return I(this,e,t,r);case"ascii":return M(this,e,t,r);case"latin1":case"binary":return E(this,e,t,r);case"base64":return A(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,e,t,r);default:if(a)throw TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),a=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var z=4096;function U(e){var t=e.length;if(t<=z)return String.fromCharCode.apply(String,e);for(var r="",i=0;i<t;)r+=String.fromCharCode.apply(String,e.slice(i,i+=z));return r}function P(e,t,r){var i="";r=Math.min(e.length,r);for(var n=t;n<r;++n)i+=String.fromCharCode(127&e[n]);return i}function T(e,t,r){var i="";r=Math.min(e.length,r);for(var n=t;n<r;++n)i+=String.fromCharCode(e[n]);return i}function R(e,t,r){var i=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>i)&&(r=i);for(var n="",a=t;a<r;++a)n+=Q[e[a]];return n}function D(e,t,r){for(var i=e.slice(t,r),n="",a=0;a<i.length;a+=2)n+=String.fromCharCode(i[a]+256*i[a+1]);return n}function B(e,t,r){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>r)throw RangeError("Trying to access beyond buffer length")}function C(e,t,r,i,n,a){if(!f.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>n||t<a)throw RangeError('"value" argument is out of bounds');if(r+i>e.length)throw RangeError("Index out of range")}function Z(e,t,r,i,n,a){if(r+i>e.length||r<0)throw RangeError("Index out of range")}function L(e,t,r,i,a){return t*=1,r>>>=0,a||Z(e,t,r,4,34028234663852886e22,-34028234663852886e22),n.write(e,t,r,i,23,4),r+4}function q(e,t,r,i,a){return t*=1,r>>>=0,a||Z(e,t,r,8,17976931348623157e292,-17976931348623157e292),n.write(e,t,r,i,52,8),r+8}f.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);var i=this.subarray(e,t);return Object.setPrototypeOf(i,f.prototype),i},f.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||B(e,t,this.length);for(var i=this[e],n=1,a=0;++a<t&&(n*=256);)i+=this[e+a]*n;return i},f.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||B(e,t,this.length);for(var i=this[e+--t],n=1;t>0&&(n*=256);)i+=this[e+--t]*n;return i},f.prototype.readUInt8=function(e,t){return e>>>=0,t||B(e,1,this.length),this[e]},f.prototype.readUInt16LE=function(e,t){return e>>>=0,t||B(e,2,this.length),this[e]|this[e+1]<<8},f.prototype.readUInt16BE=function(e,t){return e>>>=0,t||B(e,2,this.length),this[e]<<8|this[e+1]},f.prototype.readUInt32LE=function(e,t){return e>>>=0,t||B(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+0x1000000*this[e+3]},f.prototype.readUInt32BE=function(e,t){return e>>>=0,t||B(e,4,this.length),0x1000000*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},f.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||B(e,t,this.length);for(var i=this[e],n=1,a=0;++a<t&&(n*=256);)i+=this[e+a]*n;return i>=(n*=128)&&(i-=Math.pow(2,8*t)),i},f.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||B(e,t,this.length);for(var i=t,n=1,a=this[e+--i];i>0&&(n*=256);)a+=this[e+--i]*n;return a>=(n*=128)&&(a-=Math.pow(2,8*t)),a},f.prototype.readInt8=function(e,t){return(e>>>=0,t||B(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},f.prototype.readInt16LE=function(e,t){e>>>=0,t||B(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?0xffff0000|r:r},f.prototype.readInt16BE=function(e,t){e>>>=0,t||B(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?0xffff0000|r:r},f.prototype.readInt32LE=function(e,t){return e>>>=0,t||B(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},f.prototype.readInt32BE=function(e,t){return e>>>=0,t||B(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},f.prototype.readFloatLE=function(e,t){return e>>>=0,t||B(e,4,this.length),n.read(this,e,!0,23,4)},f.prototype.readFloatBE=function(e,t){return e>>>=0,t||B(e,4,this.length),n.read(this,e,!1,23,4)},f.prototype.readDoubleLE=function(e,t){return e>>>=0,t||B(e,8,this.length),n.read(this,e,!0,52,8)},f.prototype.readDoubleBE=function(e,t){return e>>>=0,t||B(e,8,this.length),n.read(this,e,!1,52,8)},f.prototype.writeUIntLE=function(e,t,r,i){if(e*=1,t>>>=0,r>>>=0,!i){var n=Math.pow(2,8*r)-1;C(this,e,t,r,n,0)}var a=1,o=0;for(this[t]=255&e;++o<r&&(a*=256);)this[t+o]=e/a&255;return t+r},f.prototype.writeUIntBE=function(e,t,r,i){if(e*=1,t>>>=0,r>>>=0,!i){var n=Math.pow(2,8*r)-1;C(this,e,t,r,n,0)}var a=r-1,o=1;for(this[t+a]=255&e;--a>=0&&(o*=256);)this[t+a]=e/o&255;return t+r},f.prototype.writeUInt8=function(e,t,r){return e*=1,t>>>=0,r||C(this,e,t,1,255,0),this[t]=255&e,t+1},f.prototype.writeUInt16LE=function(e,t,r){return e*=1,t>>>=0,r||C(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},f.prototype.writeUInt16BE=function(e,t,r){return e*=1,t>>>=0,r||C(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},f.prototype.writeUInt32LE=function(e,t,r){return e*=1,t>>>=0,r||C(this,e,t,4,0xffffffff,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},f.prototype.writeUInt32BE=function(e,t,r){return e*=1,t>>>=0,r||C(this,e,t,4,0xffffffff,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},f.prototype.writeIntLE=function(e,t,r,i){if(e*=1,t>>>=0,!i){var n=Math.pow(2,8*r-1);C(this,e,t,r,n-1,-n)}var a=0,o=1,s=0;for(this[t]=255&e;++a<r&&(o*=256);)e<0&&0===s&&0!==this[t+a-1]&&(s=1),this[t+a]=(e/o|0)-s&255;return t+r},f.prototype.writeIntBE=function(e,t,r,i){if(e*=1,t>>>=0,!i){var n=Math.pow(2,8*r-1);C(this,e,t,r,n-1,-n)}var a=r-1,o=1,s=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o|0)-s&255;return t+r},f.prototype.writeInt8=function(e,t,r){return e*=1,t>>>=0,r||C(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},f.prototype.writeInt16LE=function(e,t,r){return e*=1,t>>>=0,r||C(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},f.prototype.writeInt16BE=function(e,t,r){return e*=1,t>>>=0,r||C(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},f.prototype.writeInt32LE=function(e,t,r){return e*=1,t>>>=0,r||C(this,e,t,4,0x7fffffff,-0x80000000),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},f.prototype.writeInt32BE=function(e,t,r){return e*=1,t>>>=0,r||C(this,e,t,4,0x7fffffff,-0x80000000),e<0&&(e=0xffffffff+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},f.prototype.writeFloatLE=function(e,t,r){return L(this,e,t,!0,r)},f.prototype.writeFloatBE=function(e,t,r){return L(this,e,t,!1,r)},f.prototype.writeDoubleLE=function(e,t,r){return q(this,e,t,!0,r)},f.prototype.writeDoubleBE=function(e,t,r){return q(this,e,t,!1,r)},f.prototype.copy=function(e,t,r,i){if(!f.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),i||0===i||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i<r&&(i=r),i===r||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("Index out of range");if(i<0)throw RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t<i-r&&(i=e.length-t+r);var n=i-r;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,r,i);else if(this===e&&r<t&&t<i)for(var a=n-1;a>=0;--a)e[a+t]=this[a+r];else Uint8Array.prototype.set.call(e,this.subarray(r,i),t);return n},f.prototype.fill=function(e,t,r,i){if("string"==typeof e){if("string"==typeof t?(i=t,t=0,r=this.length):"string"==typeof r&&(i=r,r=this.length),void 0!==i&&"string"!=typeof i)throw TypeError("encoding must be a string");if("string"==typeof i&&!f.isEncoding(i))throw TypeError("Unknown encoding: "+i);if(1===e.length){var n,a=e.charCodeAt(0);("utf8"===i&&a<128||"latin1"===i)&&(e=a)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw RangeError("Out of range index");if(r<=t)return this;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(n=t;n<r;++n)this[n]=e;else{var o=f.isBuffer(e)?e:f.from(e,i),s=o.length;if(0===s)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(n=0;n<r-t;++n)this[n+t]=o[n%s]}return this};var F=/[^+/0-9A-Za-z-_]/g;function J(e){if((e=(e=e.split("=")[0]).trim().replace(F,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}function W(e,t){t=t||1/0;for(var r,i=e.length,n=null,a=[],o=0;o<i;++o){if((r=e.charCodeAt(o))>55295&&r<57344){if(!n){if(r>56319||o+1===i){(t-=3)>-1&&a.push(239,191,189);continue}n=r;continue}if(r<56320){(t-=3)>-1&&a.push(239,191,189),n=r;continue}r=(n-55296<<10|r-56320)+65536}else n&&(t-=3)>-1&&a.push(239,191,189);if(n=null,r<128){if((t-=1)<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;a.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return a}function K(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}function V(e,t){for(var r,i,n=[],a=0;a<e.length&&!((t-=2)<0);++a)i=(r=e.charCodeAt(a))>>8,n.push(r%256),n.push(i);return n}function G(e){return i.toByteArray(J(e))}function H(e,t,r,i){for(var n=0;n<i&&!(n+r>=t.length)&&!(n>=e.length);++n)t[n+r]=e[n];return n}function X(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function Y(e){return e!=e}var Q=function(){for(var e="0123456789abcdef",t=Array(256),r=0;r<16;++r)for(var i=16*r,n=0;n<16;++n)t[i+n]=e[r]+e[n];return t}()},783:function(e,t){t.read=function(e,t,r,i,n){var a,o,s=8*n-i-1,u=(1<<s)-1,f=u>>1,c=-7,d=r?n-1:0,l=r?-1:1,h=e[t+d];for(d+=l,a=h&(1<<-c)-1,h>>=-c,c+=s;c>0;a=256*a+e[t+d],d+=l,c-=8);for(o=a&(1<<-c)-1,a>>=-c,c+=i;c>0;o=256*o+e[t+d],d+=l,c-=8);if(0===a)a=1-f;else{if(a===u)return o?NaN:1/0*(h?-1:1);o+=Math.pow(2,i),a-=f}return(h?-1:1)*o*Math.pow(2,a-i)},t.write=function(e,t,r,i,n,a){var o,s,u,f=8*a-n-1,c=(1<<f)-1,d=c>>1,l=5960464477539062e-23*(23===n),h=i?0:a-1,p=i?1:-1,m=+(t<0||0===t&&1/t<0);for(isNaN(t=Math.abs(t))||t===1/0?(s=+!!isNaN(t),o=c):(o=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-o))<1&&(o--,u*=2),o+d>=1?t+=l/u:t+=l*Math.pow(2,1-d),t*u>=2&&(o++,u/=2),o+d>=c?(s=0,o=c):o+d>=1?(s=(t*u-1)*Math.pow(2,n),o+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,n),o=0));n>=8;e[r+h]=255&s,h+=p,s/=256,n-=8);for(o=o<<n|s,f+=n;f>0;e[r+h]=255&o,h+=p,o/=256,f-=8);e[r+h-p]|=128*m}}},r={};function i(t){var n=r[t];if(void 0!==n)return n.exports;var a=r[t]={exports:{}},o=!0;try{e[t](a,a.exports,i),o=!1}finally{o&&delete r[t]}return a.exports}i.ab="/ROOT/node_modules/.pnpm/next@16.2.4_@babel+core@7.29.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/compiled/buffer/",t.exports=i(72)}()},10102,(e,t,r)=>{"use strict";r.byteLength=c,r.toByteArray=l,r.fromByteArray=m;for(var i=[],n=[],a="u">typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,u=o.length;s<u;++s)i[s]=o[s],n[o.charCodeAt(s)]=s;function f(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var i=r===t?0:4-r%4;return[r,i]}function c(e){var t=f(e),r=t[0],i=t[1];return(r+i)*3/4-i}function d(e,t,r){return(t+r)*3/4-r}function l(e){var t,r,i=f(e),o=i[0],s=i[1],u=new a(d(e,o,s)),c=0,l=s>0?o-4:o;for(r=0;r<l;r+=4)t=n[e.charCodeAt(r)]<<18|n[e.charCodeAt(r+1)]<<12|n[e.charCodeAt(r+2)]<<6|n[e.charCodeAt(r+3)],u[c++]=t>>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===s&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,u[c++]=255&t),1===s&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t),u}function h(e){return i[e>>18&63]+i[e>>12&63]+i[e>>6&63]+i[63&e]}function p(e,t,r){for(var i=[],n=t;n<r;n+=3)i.push(h((e[n]<<16&0xff0000)+(e[n+1]<<8&65280)+(255&e[n+2])));return i.join("")}function m(e){for(var t,r=e.length,n=r%3,a=[],o=16383,s=0,u=r-n;s<u;s+=o)a.push(p(e,s,s+o>u?u:s+o));return 1===n?a.push(i[(t=e[r-1])>>2]+i[t<<4&63]+"=="):2===n&&a.push(i[(t=(e[r-2]<<8)+e[r-1])>>10]+i[t>>4&63]+i[t<<2&63]+"="),a.join("")}n[45]=62,n[95]=63},62866,(e,t,r)=>{r.read=function(e,t,r,i,n){var a,o,s=8*n-i-1,u=(1<<s)-1,f=u>>1,c=-7,d=r?n-1:0,l=r?-1:1,h=e[t+d];for(d+=l,a=h&(1<<-c)-1,h>>=-c,c+=s;c>0;a=256*a+e[t+d],d+=l,c-=8);for(o=a&(1<<-c)-1,a>>=-c,c+=i;c>0;o=256*o+e[t+d],d+=l,c-=8);if(0===a)a=1-f;else{if(a===u)return o?NaN:1/0*(h?-1:1);o+=Math.pow(2,i),a-=f}return(h?-1:1)*o*Math.pow(2,a-i)},r.write=function(e,t,r,i,n,a){var o,s,u,f=8*a-n-1,c=(1<<f)-1,d=c>>1,l=5960464477539062e-23*(23===n),h=i?0:a-1,p=i?1:-1,m=+(t<0||0===t&&1/t<0);for(isNaN(t=Math.abs(t))||t===1/0?(s=+!!isNaN(t),o=c):(o=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-o))<1&&(o--,u*=2),o+d>=1?t+=l/u:t+=l*Math.pow(2,1-d),t*u>=2&&(o++,u/=2),o+d>=c?(s=0,o=c):o+d>=1?(s=(t*u-1)*Math.pow(2,n),o+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,n),o=0));n>=8;e[r+h]=255&s,h+=p,s/=256,n-=8);for(o=o<<n|s,f+=n;f>0;e[r+h]=255&o,h+=p,o/=256,f-=8);e[r+h-p]|=128*m}},49440,(e,t,r)=>{"use strict";var i=e.r(10102),n=e.r(62866),a="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;r.Buffer=f,r.SlowBuffer=_,r.INSPECT_MAX_BYTES=50;var o=0x7fffffff;function s(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}function u(e){if(e>o)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,f.prototype),t}function f(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return h(e)}return c(e,t,r)}function c(e,t,r){if("string"==typeof e)return p(e,t);if(ArrayBuffer.isView(e))return b(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(X(e,ArrayBuffer)||e&&X(e.buffer,ArrayBuffer)||"u">typeof SharedArrayBuffer&&(X(e,SharedArrayBuffer)||e&&X(e.buffer,SharedArrayBuffer)))return g(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var i=e.valueOf&&e.valueOf();if(null!=i&&i!==e)return f.from(i,t,r);var n=v(e);if(n)return n;if("u">typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return f.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function d(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function l(e,t,r){return(d(e),e<=0)?u(e):void 0!==t?"string"==typeof r?u(e).fill(t,r):u(e).fill(t):u(e)}function h(e){return d(e),u(e<0?0:0|y(e))}function p(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!f.isEncoding(t))throw TypeError("Unknown encoding: "+t);var r=0|x(e,t),i=u(r),n=i.write(e,t);return n!==r&&(i=i.slice(0,n)),i}function m(e){for(var t=e.length<0?0:0|y(e.length),r=u(t),i=0;i<t;i+=1)r[i]=255&e[i];return r}function b(e){if(X(e,Uint8Array)){var t=new Uint8Array(e);return g(t.buffer,t.byteOffset,t.byteLength)}return m(e)}function g(e,t,r){var i;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(i=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),f.prototype),i}function v(e){if(f.isBuffer(e)){var t=0|y(e.length),r=u(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||Y(e.length)?u(0):m(e):"Buffer"===e.type&&Array.isArray(e.data)?m(e.data):void 0}function y(e){if(e>=o)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return 0|e}function _(e){return+e!=e&&(e=0),f.alloc(+e)}function x(e,t){if(f.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||X(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,i=arguments.length>2&&!0===arguments[2];if(!i&&0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return W(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return G(e).length;default:if(n)return i?-1:W(e).length;t=(""+t).toLowerCase(),n=!0}}function w(e,t,r){var i=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return R(this,t,r);case"utf8":case"utf-8":return j(this,t,r);case"ascii":return P(this,t,r);case"latin1":case"binary":return T(this,t,r);case"base64":return N(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,t,r);default:if(i)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}function S(e,t,r){var i=e[t];e[t]=e[r],e[r]=i}function k(e,t,r,i,n){if(0===e.length)return -1;if("string"==typeof r?(i=r,r=0):r>0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),Y(r*=1)&&(r=n?0:e.length-1),r<0&&(r=e.length+r),r>=e.length)if(n)return -1;else r=e.length-1;else if(r<0)if(!n)return -1;else r=0;if("string"==typeof t&&(t=f.from(t,i)),f.isBuffer(t))return 0===t.length?-1:$(e,t,r,i,n);if("number"==typeof t){if(t&=255,"function"==typeof Uint8Array.prototype.indexOf)if(n)return Uint8Array.prototype.indexOf.call(e,t,r);else return Uint8Array.prototype.lastIndexOf.call(e,t,r);return $(e,[t],r,i,n)}throw TypeError("val must be string, number or Buffer")}function $(e,t,r,i,n){var a,o=1,s=e.length,u=t.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return -1;o=2,s/=2,u/=2,r/=2}function f(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(n){var c=-1;for(a=r;a<s;a++)if(f(e,a)===f(t,-1===c?0:a-c)){if(-1===c&&(c=a),a-c+1===u)return c*o}else -1!==c&&(a-=a-c),c=-1}else for(r+u>s&&(r=s-u),a=r;a>=0;a--){for(var d=!0,l=0;l<u;l++)if(f(e,a+l)!==f(t,l)){d=!1;break}if(d)return a}return -1}function I(e,t,r,i){r=Number(r)||0;var n=e.length-r;i?(i=Number(i))>n&&(i=n):i=n;var a=t.length;i>a/2&&(i=a/2);for(var o=0;o<i;++o){var s=parseInt(t.substr(2*o,2),16);if(Y(s))break;e[r+o]=s}return o}function M(e,t,r,i){return H(W(t,e.length-r),e,r,i)}function E(e,t,r,i){return H(K(t),e,r,i)}function A(e,t,r,i){return H(G(t),e,r,i)}function O(e,t,r,i){return H(V(t,e.length-r),e,r,i)}function N(e,t,r){return 0===t&&r===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,r))}function j(e,t,r){r=Math.min(e.length,r);for(var i=[],n=t;n<r;){var a,o,s,u,f=e[n],c=null,d=f>239?4:f>223?3:f>191?2:1;if(n+d<=r)switch(d){case 1:f<128&&(c=f);break;case 2:(192&(a=e[n+1]))==128&&(u=(31&f)<<6|63&a)>127&&(c=u);break;case 3:a=e[n+1],o=e[n+2],(192&a)==128&&(192&o)==128&&(u=(15&f)<<12|(63&a)<<6|63&o)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:a=e[n+1],o=e[n+2],s=e[n+3],(192&a)==128&&(192&o)==128&&(192&s)==128&&(u=(15&f)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&u<1114112&&(c=u)}null===c?(c=65533,d=1):c>65535&&(c-=65536,i.push(c>>>10&1023|55296),c=56320|1023&c),i.push(c),n+=d}return U(i)}r.kMaxLength=0x7fffffff,f.TYPED_ARRAY_SUPPORT=s(),!f.TYPED_ARRAY_SUPPORT&&"u">typeof console&&"function"==typeof console.error&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(f.prototype,"parent",{enumerable:!0,get:function(){if(f.isBuffer(this))return this.buffer}}),Object.defineProperty(f.prototype,"offset",{enumerable:!0,get:function(){if(f.isBuffer(this))return this.byteOffset}}),f.poolSize=8192,f.from=function(e,t,r){return c(e,t,r)},Object.setPrototypeOf(f.prototype,Uint8Array.prototype),Object.setPrototypeOf(f,Uint8Array),f.alloc=function(e,t,r){return l(e,t,r)},f.allocUnsafe=function(e){return h(e)},f.allocUnsafeSlow=function(e){return h(e)},f.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==f.prototype},f.compare=function(e,t){if(X(e,Uint8Array)&&(e=f.from(e,e.offset,e.byteLength)),X(t,Uint8Array)&&(t=f.from(t,t.offset,t.byteLength)),!f.isBuffer(e)||!f.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,i=t.length,n=0,a=Math.min(r,i);n<a;++n)if(e[n]!==t[n]){r=e[n],i=t[n];break}return r<i?-1:+(i<r)},f.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},f.concat=function(e,t){if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return f.alloc(0);if(void 0===t)for(r=0,t=0;r<e.length;++r)t+=e[r].length;var r,i=f.allocUnsafe(t),n=0;for(r=0;r<e.length;++r){var a=e[r];if(X(a,Uint8Array))n+a.length>i.length?f.from(a).copy(i,n):Uint8Array.prototype.set.call(i,a,n);else if(f.isBuffer(a))a.copy(i,n);else throw TypeError('"list" argument must be an Array of Buffers');n+=a.length}return i},f.byteLength=x,f.prototype._isBuffer=!0,f.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)S(this,t,t+1);return this},f.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)S(this,t,t+3),S(this,t+1,t+2);return this},f.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)S(this,t,t+7),S(this,t+1,t+6),S(this,t+2,t+5),S(this,t+3,t+4);return this},f.prototype.toString=function(){var e=this.length;return 0===e?"":0==arguments.length?j(this,0,e):w.apply(this,arguments)},f.prototype.toLocaleString=f.prototype.toString,f.prototype.equals=function(e){if(!f.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===f.compare(this,e)},f.prototype.inspect=function(){var e="",t=r.INSPECT_MAX_BYTES;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),"<Buffer "+e+">"},a&&(f.prototype[a]=f.prototype.inspect),f.prototype.compare=function(e,t,r,i,n){if(X(e,Uint8Array)&&(e=f.from(e,e.offset,e.byteLength)),!f.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===i&&(i=0),void 0===n&&(n=this.length),t<0||r>e.length||i<0||n>this.length)throw RangeError("out of range index");if(i>=n&&t>=r)return 0;if(i>=n)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,i>>>=0,n>>>=0,this===e)return 0;for(var a=n-i,o=r-t,s=Math.min(a,o),u=this.slice(i,n),c=e.slice(t,r),d=0;d<s;++d)if(u[d]!==c[d]){a=u[d],o=c[d];break}return a<o?-1:+(o<a)},f.prototype.includes=function(e,t,r){return -1!==this.indexOf(e,t,r)},f.prototype.indexOf=function(e,t,r){return k(this,e,t,r,!0)},f.prototype.lastIndexOf=function(e,t,r){return k(this,e,t,r,!1)},f.prototype.write=function(e,t,r,i){if(void 0===t)i="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)i=t,r=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(r)?(r>>>=0,void 0===i&&(i="utf8")):(i=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var n=this.length-t;if((void 0===r||r>n)&&(r=n),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var a=!1;;)switch(i){case"hex":return I(this,e,t,r);case"utf8":case"utf-8":return M(this,e,t,r);case"ascii":case"latin1":case"binary":return E(this,e,t,r);case"base64":return A(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,e,t,r);default:if(a)throw TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),a=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var z=4096;function U(e){var t=e.length;if(t<=z)return String.fromCharCode.apply(String,e);for(var r="",i=0;i<t;)r+=String.fromCharCode.apply(String,e.slice(i,i+=z));return r}function P(e,t,r){var i="";r=Math.min(e.length,r);for(var n=t;n<r;++n)i+=String.fromCharCode(127&e[n]);return i}function T(e,t,r){var i="";r=Math.min(e.length,r);for(var n=t;n<r;++n)i+=String.fromCharCode(e[n]);return i}function R(e,t,r){var i=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>i)&&(r=i);for(var n="",a=t;a<r;++a)n+=Q[e[a]];return n}function D(e,t,r){for(var i=e.slice(t,r),n="",a=0;a<i.length-1;a+=2)n+=String.fromCharCode(i[a]+256*i[a+1]);return n}function B(e,t,r){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>r)throw RangeError("Trying to access beyond buffer length")}function C(e,t,r,i,n,a){if(!f.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>n||t<a)throw RangeError('"value" argument is out of bounds');if(r+i>e.length)throw RangeError("Index out of range")}function Z(e,t,r,i,n,a){if(r+i>e.length||r<0)throw RangeError("Index out of range")}function L(e,t,r,i,a){return t*=1,r>>>=0,a||Z(e,t,r,4,34028234663852886e22,-34028234663852886e22),n.write(e,t,r,i,23,4),r+4}function q(e,t,r,i,a){return t*=1,r>>>=0,a||Z(e,t,r,8,17976931348623157e292,-17976931348623157e292),n.write(e,t,r,i,52,8),r+8}f.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);var i=this.subarray(e,t);return Object.setPrototypeOf(i,f.prototype),i},f.prototype.readUintLE=f.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||B(e,t,this.length);for(var i=this[e],n=1,a=0;++a<t&&(n*=256);)i+=this[e+a]*n;return i},f.prototype.readUintBE=f.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||B(e,t,this.length);for(var i=this[e+--t],n=1;t>0&&(n*=256);)i+=this[e+--t]*n;return i},f.prototype.readUint8=f.prototype.readUInt8=function(e,t){return e>>>=0,t||B(e,1,this.length),this[e]},f.prototype.readUint16LE=f.prototype.readUInt16LE=function(e,t){return e>>>=0,t||B(e,2,this.length),this[e]|this[e+1]<<8},f.prototype.readUint16BE=f.prototype.readUInt16BE=function(e,t){return e>>>=0,t||B(e,2,this.length),this[e]<<8|this[e+1]},f.prototype.readUint32LE=f.prototype.readUInt32LE=function(e,t){return e>>>=0,t||B(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+0x1000000*this[e+3]},f.prototype.readUint32BE=f.prototype.readUInt32BE=function(e,t){return e>>>=0,t||B(e,4,this.length),0x1000000*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},f.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||B(e,t,this.length);for(var i=this[e],n=1,a=0;++a<t&&(n*=256);)i+=this[e+a]*n;return i>=(n*=128)&&(i-=Math.pow(2,8*t)),i},f.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||B(e,t,this.length);for(var i=t,n=1,a=this[e+--i];i>0&&(n*=256);)a+=this[e+--i]*n;return a>=(n*=128)&&(a-=Math.pow(2,8*t)),a},f.prototype.readInt8=function(e,t){return(e>>>=0,t||B(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},f.prototype.readInt16LE=function(e,t){e>>>=0,t||B(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?0xffff0000|r:r},f.prototype.readInt16BE=function(e,t){e>>>=0,t||B(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?0xffff0000|r:r},f.prototype.readInt32LE=function(e,t){return e>>>=0,t||B(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},f.prototype.readInt32BE=function(e,t){return e>>>=0,t||B(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},f.prototype.readFloatLE=function(e,t){return e>>>=0,t||B(e,4,this.length),n.read(this,e,!0,23,4)},f.prototype.readFloatBE=function(e,t){return e>>>=0,t||B(e,4,this.length),n.read(this,e,!1,23,4)},f.prototype.readDoubleLE=function(e,t){return e>>>=0,t||B(e,8,this.length),n.read(this,e,!0,52,8)},f.prototype.readDoubleBE=function(e,t){return e>>>=0,t||B(e,8,this.length),n.read(this,e,!1,52,8)},f.prototype.writeUintLE=f.prototype.writeUIntLE=function(e,t,r,i){if(e*=1,t>>>=0,r>>>=0,!i){var n=Math.pow(2,8*r)-1;C(this,e,t,r,n,0)}var a=1,o=0;for(this[t]=255&e;++o<r&&(a*=256);)this[t+o]=e/a&255;return t+r},f.prototype.writeUintBE=f.prototype.writeUIntBE=function(e,t,r,i){if(e*=1,t>>>=0,r>>>=0,!i){var n=Math.pow(2,8*r)-1;C(this,e,t,r,n,0)}var a=r-1,o=1;for(this[t+a]=255&e;--a>=0&&(o*=256);)this[t+a]=e/o&255;return t+r},f.prototype.writeUint8=f.prototype.writeUInt8=function(e,t,r){return e*=1,t>>>=0,r||C(this,e,t,1,255,0),this[t]=255&e,t+1},f.prototype.writeUint16LE=f.prototype.writeUInt16LE=function(e,t,r){return e*=1,t>>>=0,r||C(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},f.prototype.writeUint16BE=f.prototype.writeUInt16BE=function(e,t,r){return e*=1,t>>>=0,r||C(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},f.prototype.writeUint32LE=f.prototype.writeUInt32LE=function(e,t,r){return e*=1,t>>>=0,r||C(this,e,t,4,0xffffffff,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},f.prototype.writeUint32BE=f.prototype.writeUInt32BE=function(e,t,r){return e*=1,t>>>=0,r||C(this,e,t,4,0xffffffff,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},f.prototype.writeIntLE=function(e,t,r,i){if(e*=1,t>>>=0,!i){var n=Math.pow(2,8*r-1);C(this,e,t,r,n-1,-n)}var a=0,o=1,s=0;for(this[t]=255&e;++a<r&&(o*=256);)e<0&&0===s&&0!==this[t+a-1]&&(s=1),this[t+a]=(e/o|0)-s&255;return t+r},f.prototype.writeIntBE=function(e,t,r,i){if(e*=1,t>>>=0,!i){var n=Math.pow(2,8*r-1);C(this,e,t,r,n-1,-n)}var a=r-1,o=1,s=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o|0)-s&255;return t+r},f.prototype.writeInt8=function(e,t,r){return e*=1,t>>>=0,r||C(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},f.prototype.writeInt16LE=function(e,t,r){return e*=1,t>>>=0,r||C(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},f.prototype.writeInt16BE=function(e,t,r){return e*=1,t>>>=0,r||C(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},f.prototype.writeInt32LE=function(e,t,r){return e*=1,t>>>=0,r||C(this,e,t,4,0x7fffffff,-0x80000000),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},f.prototype.writeInt32BE=function(e,t,r){return e*=1,t>>>=0,r||C(this,e,t,4,0x7fffffff,-0x80000000),e<0&&(e=0xffffffff+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},f.prototype.writeFloatLE=function(e,t,r){return L(this,e,t,!0,r)},f.prototype.writeFloatBE=function(e,t,r){return L(this,e,t,!1,r)},f.prototype.writeDoubleLE=function(e,t,r){return q(this,e,t,!0,r)},f.prototype.writeDoubleBE=function(e,t,r){return q(this,e,t,!1,r)},f.prototype.copy=function(e,t,r,i){if(!f.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),i||0===i||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i<r&&(i=r),i===r||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("Index out of range");if(i<0)throw RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t<i-r&&(i=e.length-t+r);var n=i-r;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,r,i):Uint8Array.prototype.set.call(e,this.subarray(r,i),t),n},f.prototype.fill=function(e,t,r,i){if("string"==typeof e){if("string"==typeof t?(i=t,t=0,r=this.length):"string"==typeof r&&(i=r,r=this.length),void 0!==i&&"string"!=typeof i)throw TypeError("encoding must be a string");if("string"==typeof i&&!f.isEncoding(i))throw TypeError("Unknown encoding: "+i);if(1===e.length){var n,a=e.charCodeAt(0);("utf8"===i&&a<128||"latin1"===i)&&(e=a)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw RangeError("Out of range index");if(r<=t)return this;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(n=t;n<r;++n)this[n]=e;else{var o=f.isBuffer(e)?e:f.from(e,i),s=o.length;if(0===s)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(n=0;n<r-t;++n)this[n+t]=o[n%s]}return this};var F=/[^+/0-9A-Za-z-_]/g;function J(e){if((e=(e=e.split("=")[0]).trim().replace(F,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}function W(e,t){t=t||1/0;for(var r,i=e.length,n=null,a=[],o=0;o<i;++o){if((r=e.charCodeAt(o))>55295&&r<57344){if(!n){if(r>56319||o+1===i){(t-=3)>-1&&a.push(239,191,189);continue}n=r;continue}if(r<56320){(t-=3)>-1&&a.push(239,191,189),n=r;continue}r=(n-55296<<10|r-56320)+65536}else n&&(t-=3)>-1&&a.push(239,191,189);if(n=null,r<128){if((t-=1)<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;a.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return a}function K(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}function V(e,t){for(var r,i,n=[],a=0;a<e.length&&!((t-=2)<0);++a)i=(r=e.charCodeAt(a))>>8,n.push(r%256),n.push(i);return n}function G(e){return i.toByteArray(J(e))}function H(e,t,r,i){for(var n=0;n<i&&!(n+r>=t.length)&&!(n>=e.length);++n)t[n+r]=e[n];return n}function X(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function Y(e){return e!=e}var Q=function(){for(var e="0123456789abcdef",t=Array(256),r=0;r<16;++r)for(var i=16*r,n=0;n<16;++n)t[i+n]=e[r]+e[n];return t}()},25235,(e,t,r)=>{!function(){"use strict";var e={864:function(e){var t,r="object"==typeof Reflect?Reflect:null,i=r&&"function"==typeof r.apply?r.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};function n(e){console&&console.warn&&console.warn(e)}t=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var a=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=v,o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var s=10;function u(e){if("function"!=typeof e)throw TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function f(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function c(e,t,r,i){if(u(r),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),s=o[t]),void 0===s)s=o[t]=r,++e._eventsCount;else if("function"==typeof s?s=o[t]=i?[r,s]:[s,r]:i?s.unshift(r):s.push(r),(a=f(e))>0&&s.length>a&&!s.warned){s.warned=!0;var a,o,s,c=Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=s.length,n(c)}return e}function d(){if(!this.fired)return(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0==arguments.length)?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function l(e,t,r){var i={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},n=d.bind(i);return n.listener=r,i.wrapFn=n,n}function h(e,t,r){var i=e._events;if(void 0===i)return[];var n=i[t];return void 0===n?[]:"function"==typeof n?r?[n.listener||n]:[n]:r?g(n):m(n,n.length)}function p(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function m(e,t){for(var r=Array(t),i=0;i<t;++i)r[i]=e[i];return r}function b(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function g(e){for(var t=Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}function v(e,t){return new Promise(function(r,i){function n(r){e.removeListener(t,a),i(r)}function a(){"function"==typeof e.removeListener&&e.removeListener("error",n),r([].slice.call(arguments))}_(e,t,a,{once:!0}),"error"!==t&&y(e,n,{once:!0})})}function y(e,t,r){"function"==typeof e.on&&_(e,"error",t,r)}function _(e,t,r,i){if("function"==typeof e.on)i.once?e.once(t,r):e.on(t,r);else if("function"==typeof e.addEventListener)e.addEventListener(t,function n(a){i.once&&e.removeEventListener(t,n),r(a)});else throw TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e||e<0||a(e))throw RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");s=e}}),o.init=function(){(void 0===this._events||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||a(e))throw RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return f(this)},o.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var n="error"===e,a=this._events;if(void 0!==a)n=n&&void 0===a.error;else if(!n)return!1;if(n){if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var o,s=Error("Unhandled error."+(o?" ("+o.message+")":""));throw s.context=o,s}var u=a[e];if(void 0===u)return!1;if("function"==typeof u)i(u,this,t);else for(var f=u.length,c=m(u,f),r=0;r<f;++r)i(c[r],this,t);return!0},o.prototype.addListener=function(e,t){return c(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return c(this,e,t,!0)},o.prototype.once=function(e,t){return u(t),this.on(e,l(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return u(t),this.prependListener(e,l(this,e,t)),this},o.prototype.removeListener=function(e,t){var r,i,n,a,o;if(u(t),void 0===(i=this._events)||void 0===(r=i[e]))return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete i[e],i.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(n=-1,a=r.length-1;a>=0;a--)if(r[a]===t||r[a].listener===t){o=r[a].listener,n=a;break}if(n<0)return this;0===n?r.shift():b(r,n),1===r.length&&(i[e]=r[0]),void 0!==i.removeListener&&this.emit("removeListener",e,o||t)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(e){var t,r,i;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0==arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0==arguments.length){var n,a=Object.keys(r);for(i=0;i<a.length;++i)"removeListener"!==(n=a[i])&&this.removeAllListeners(n);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(i=t.length-1;i>=0;i--)this.removeListener(e,t[i]);return this},o.prototype.listeners=function(e){return h(this,e,!0)},o.prototype.rawListeners=function(e){return h(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},o.prototype.listenerCount=p,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}}},r={};function i(t){var n=r[t];if(void 0!==n)return n.exports;var a=r[t]={exports:{}},o=!0;try{e[t](a,a.exports,i),o=!1}finally{o&&delete r[t]}return a.exports}i.ab="/ROOT/node_modules/.pnpm/next@16.2.4_@babel+core@7.29.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/compiled/events/",t.exports=i(864)}()},60776,(e,t,r)=>{var i=e.i(53030),n=e.i(8890);!function(){var r={8992:function(e){e.exports=function(e,r,i){if(e.filter)return e.filter(r,i);if(null==e||"function"!=typeof r)throw TypeError();for(var n=[],a=0;a<e.length;a++)if(t.call(e,a)){var o=e[a];r.call(i,o,a,e)&&n.push(o)}return n};var t=Object.prototype.hasOwnProperty},5555:function(e,t,r){"use strict";var i=r(1212),n=r(1909),a=r(8737);e.exports=r(8772)||i.call(a,n)},9905:function(e,t,r){"use strict";var i=r(1212),n=r(1909),a=r(5555);e.exports=function(){return a(i,n,arguments)}},1909:function(e){"use strict";e.exports=Function.prototype.apply},8737:function(e){"use strict";e.exports=Function.prototype.call},7152:function(e,t,r){"use strict";var i=r(1212),n=r(8202),a=r(8737),o=r(5555);e.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new n("a function is required");return o(i,a,e)}},8772:function(e){"use strict";e.exports="u">typeof Reflect&&Reflect&&Reflect.apply},516:function(e,t,r){"use strict";var i=r(3197),n=r(9042),a=n(i("String.prototype.indexOf"));e.exports=function(e,t){var r=i(e,!!t);return"function"==typeof r&&a(e,".prototype.")>-1?n(r):r}},9042:function(e,t,r){"use strict";var i=r(3143),n=r(446),a=r(7152),o=r(9905);e.exports=function(e){var t=a(arguments),r=e.length-(arguments.length-1);return i(t,1+(r>0?r:0),!0)},n?n(e.exports,"apply",{value:o}):e.exports.apply=o},819:function(e,t,r){"use strict";var i=r(446),n=r(5182),a=r(8202),o=r(3990);e.exports=function(e,t,r){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new a("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new a("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new a("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new a("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new a("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new a("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,u=arguments.length>4?arguments[4]:null,f=arguments.length>5?arguments[5]:null,c=arguments.length>6&&arguments[6],d=!!o&&o(e,t);if(i)i(e,t,{configurable:null===f&&d?d.configurable:!f,enumerable:null===s&&d?d.enumerable:!s,value:r,writable:null===u&&d?d.writable:!u});else if(!c&&(s||u||f))throw new n("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");else e[t]=r}},6211:function(e,t,r){"use strict";var i,n=r(7152),a=r(3990);try{i=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var o=!!i&&a&&a(Object.prototype,"__proto__"),s=Object,u=s.getPrototypeOf;e.exports=o&&"function"==typeof o.get?n([o.get]):"function"==typeof u&&function(e){return u(null==e?e:s(e))}},446:function(e){"use strict";var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(e){t=!1}e.exports=t},7181:function(e){"use strict";e.exports=EvalError},1545:function(e){"use strict";e.exports=Error},22:function(e){"use strict";e.exports=RangeError},2803:function(e){"use strict";e.exports=ReferenceError},5182:function(e){"use strict";e.exports=SyntaxError},8202:function(e){"use strict";e.exports=TypeError},3284:function(e){"use strict";e.exports=URIError},2811:function(e){"use strict";e.exports=Object},6144:function(e){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString;e.exports=function(e,i,n){if("[object Function]"!==r.call(i))throw TypeError("iterator must be a function");var a=e.length;if(a===+a)for(var o=0;o<a;o++)i.call(n,e[o],o,e);else for(var s in e)t.call(e,s)&&i.call(n,e[s],s,e)}},3136:function(e){"use strict";var t="Function.prototype.bind called on incompatible ",r=Object.prototype.toString,i=Math.max,n="[object Function]",a=function(e,t){for(var r=[],i=0;i<e.length;i+=1)r[i]=e[i];for(var n=0;n<t.length;n+=1)r[n+e.length]=t[n];return r},o=function(e,t){for(var r=[],i=t||0,n=0;i<e.length;i+=1,n+=1)r[n]=e[i];return r},s=function(e,t){for(var r="",i=0;i<e.length;i+=1)r+=e[i],i+1<e.length&&(r+=t);return r};e.exports=function(e){var u,f=this;if("function"!=typeof f||r.apply(f)!==n)throw TypeError(t+f);for(var c=o(arguments,1),d=function(){if(this instanceof u){var t=f.apply(this,a(c,arguments));return Object(t)===t?t:this}return f.apply(e,a(c,arguments))},l=i(0,f.length-c.length),h=[],p=0;p<l;p++)h[p]="$"+p;if(u=Function("binder","return function ("+s(h,",")+"){ return binder.apply(this,arguments); }")(d),f.prototype){var m=function(){};m.prototype=f.prototype,u.prototype=new m,m.prototype=null}return u}},1212:function(e,t,r){"use strict";var i=r(3136);e.exports=Function.prototype.bind||i},3197:function(e,t,r){"use strict";var i,n=r(2811),a=r(1545),o=r(7181),s=r(22),u=r(2803),f=r(5182),c=r(8202),d=r(3284),l=r(7173),h=r(847),p=r(2916),m=r(9882),b=r(3291),g=r(553),v=r(8629),y=Function,_=function(e){try{return y('"use strict"; return ('+e+").constructor;")()}catch(e){}},x=r(3990),w=r(446),S=function(){throw new c},k=x?function(){try{return arguments.callee,S}catch(e){try{return x(arguments,"callee").get}catch(e){return S}}}():S,$=r(4871)(),I=r(699),M=r(7823),E=r(7904),A=r(1909),O=r(8737),N={},j="u">typeof Uint8Array&&I?I(Uint8Array):i,z={__proto__:null,"%AggregateError%":"u"<typeof AggregateError?i:AggregateError,"%Array%":Array,"%ArrayBuffer%":"u"<typeof ArrayBuffer?i:ArrayBuffer,"%ArrayIteratorPrototype%":$&&I?I([][Symbol.iterator]()):i,"%AsyncFromSyncIteratorPrototype%":i,"%AsyncFunction%":N,"%AsyncGenerator%":N,"%AsyncGeneratorFunction%":N,"%AsyncIteratorPrototype%":N,"%Atomics%":"u"<typeof Atomics?i:Atomics,"%BigInt%":"u"<typeof BigInt?i:BigInt,"%BigInt64Array%":"u"<typeof BigInt64Array?i:BigInt64Array,"%BigUint64Array%":"u"<typeof BigUint64Array?i:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"u"<typeof DataView?i:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":a,"%eval%":eval,"%EvalError%":o,"%Float16Array%":"u"<typeof Float16Array?i:Float16Array,"%Float32Array%":"u"<typeof Float32Array?i:Float32Array,"%Float64Array%":"u"<typeof Float64Array?i:Float64Array,"%FinalizationRegistry%":"u"<typeof FinalizationRegistry?i:FinalizationRegistry,"%Function%":y,"%GeneratorFunction%":N,"%Int8Array%":"u"<typeof Int8Array?i:Int8Array,"%Int16Array%":"u"<typeof Int16Array?i:Int16Array,"%Int32Array%":"u"<typeof Int32Array?i:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":$&&I?I(I([][Symbol.iterator]())):i,"%JSON%":"object"==typeof JSON?JSON:i,"%Map%":"u"<typeof Map?i:Map,"%MapIteratorPrototype%":"u">typeof Map&&$&&I?I((new Map)[Symbol.iterator]()):i,"%Math%":Math,"%Number%":Number,"%Object%":n,"%Object.getOwnPropertyDescriptor%":x,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"u"<typeof Promise?i:Promise,"%Proxy%":"u"<typeof Proxy?i:Proxy,"%RangeError%":s,"%ReferenceError%":u,"%Reflect%":"u"<typeof Reflect?i:Reflect,"%RegExp%":RegExp,"%Set%":"u"<typeof Set?i:Set,"%SetIteratorPrototype%":"u">typeof Set&&$&&I?I((new Set)[Symbol.iterator]()):i,"%SharedArrayBuffer%":"u"<typeof SharedArrayBuffer?i:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":$&&I?I(""[Symbol.iterator]()):i,"%Symbol%":$?Symbol:i,"%SyntaxError%":f,"%ThrowTypeError%":k,"%TypedArray%":j,"%TypeError%":c,"%Uint8Array%":"u"<typeof Uint8Array?i:Uint8Array,"%Uint8ClampedArray%":"u"<typeof Uint8ClampedArray?i:Uint8ClampedArray,"%Uint16Array%":"u"<typeof Uint16Array?i:Uint16Array,"%Uint32Array%":"u"<typeof Uint32Array?i:Uint32Array,"%URIError%":d,"%WeakMap%":"u"<typeof WeakMap?i:WeakMap,"%WeakRef%":"u"<typeof WeakRef?i:WeakRef,"%WeakSet%":"u"<typeof WeakSet?i:WeakSet,"%Function.prototype.call%":O,"%Function.prototype.apply%":A,"%Object.defineProperty%":w,"%Object.getPrototypeOf%":M,"%Math.abs%":l,"%Math.floor%":h,"%Math.max%":p,"%Math.min%":m,"%Math.pow%":b,"%Math.round%":g,"%Math.sign%":v,"%Reflect.getPrototypeOf%":E};if(I)try{null.error}catch(e){var U=I(I(e));z["%Error.prototype%"]=U}var P=function e(t){var r;if("%AsyncFunction%"===t)r=_("async function () {}");else if("%GeneratorFunction%"===t)r=_("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=_("async function* () {}");else if("%AsyncGenerator%"===t){var i=e("%AsyncGeneratorFunction%");i&&(r=i.prototype)}else if("%AsyncIteratorPrototype%"===t){var n=e("%AsyncGenerator%");n&&I&&(r=I(n.prototype))}return z[t]=r,r},T={__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"]},R=r(1212),D=r(3270),B=R.call(O,Array.prototype.concat),C=R.call(A,Array.prototype.splice),Z=R.call(O,String.prototype.replace),L=R.call(O,String.prototype.slice),q=R.call(O,RegExp.prototype.exec),F=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,J=/\\(\\)?/g,W=function(e){var t=L(e,0,1),r=L(e,-1);if("%"===t&&"%"!==r)throw new f("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new f("invalid intrinsic syntax, expected opening `%`");var i=[];return Z(e,F,function(e,t,r,n){i[i.length]=r?Z(n,J,"$1"):t||e}),i},K=function(e,t){var r,i=e;if(D(T,i)&&(i="%"+(r=T[i])[0]+"%"),D(z,i)){var n=z[i];if(n===N&&(n=P(i)),void 0===n&&!t)throw new c("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:i,value:n}}throw new f("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new c('"allowMissing" argument must be a boolean');if(null===q(/^%?[^%]*%?$/,e))throw new f("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=W(e),i=r.length>0?r[0]:"",n=K("%"+i+"%",t),a=n.name,o=n.value,s=!1,u=n.alias;u&&(i=u[0],C(r,B([0,1],u)));for(var d=1,l=!0;d<r.length;d+=1){var h=r[d],p=L(h,0,1),m=L(h,-1);if(('"'===p||"'"===p||"`"===p||'"'===m||"'"===m||"`"===m)&&p!==m)throw new f("property names with quotes must have matching quotes");if("constructor"!==h&&l||(s=!0),i+="."+h,D(z,a="%"+i+"%"))o=z[a];else if(null!=o){if(!(h in o)){if(!t)throw new c("base intrinsic for "+e+" exists, but the property is not available.");return}if(x&&d+1>=r.length){var b=x(o,h);o=(l=!!b)&&"get"in b&&!("originalValue"in b.get)?b.get:o[h]}else l=D(o,h),o=o[h];l&&!s&&(z[a]=o)}}return o}},7823:function(e,t,r){"use strict";e.exports=r(2811).getPrototypeOf||null},7904:function(e){"use strict";e.exports="u">typeof Reflect&&Reflect.getPrototypeOf||null},699:function(e,t,r){"use strict";var i=r(7904),n=r(7823),a=r(6211);e.exports=i?function(e){return i(e)}:n?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw TypeError("getProto: not an object");return n(e)}:a?function(e){return a(e)}:null},4596:function(e){"use strict";e.exports=Object.getOwnPropertyDescriptor},3990:function(e,t,r){"use strict";var i=r(4596);if(i)try{i([],"length")}catch(e){i=null}e.exports=i},7122:function(e,t,r){"use strict";var i=r(446),n=function(){return!!i};n.hasArrayLengthDefineBug=function(){if(!i)return null;try{return 1!==i([],"length",{value:1}).length}catch(e){return!0}},e.exports=n},9942:function(e,t,r){"use strict";var i="u">typeof Symbol&&Symbol,n=r(3773);e.exports=function(){return"function"==typeof i&&"function"==typeof Symbol&&"symbol"==typeof i("foo")&&"symbol"==typeof Symbol("bar")&&n()}},3773:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;var i=42;for(t in e[t]=i,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var a=Object.getOwnPropertyDescriptor(e,t);if(a.value!==i||!0!==a.enumerable)return!1}return!0}},4871:function(e,t,r){"use strict";var i="u">typeof Symbol&&Symbol,n=r(5960);e.exports=function(){return"function"==typeof i&&"function"==typeof Symbol&&"symbol"==typeof i("foo")&&"symbol"==typeof Symbol("bar")&&n()}},5960:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;var i=42;for(var n in e[t]=i,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var a=Object.getOwnPropertySymbols(e);if(1!==a.length||a[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==i||!0!==o.enumerable)return!1}return!0}},3270:function(e,t,r){"use strict";var i=Function.prototype.call,n=Object.prototype.hasOwnProperty;e.exports=r(1212).call(i,n)},3782:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},5157:function(e){"use strict";var t="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,r=Object.prototype.toString,i=function(e){return(!t||!e||"object"!=typeof e||!(Symbol.toStringTag in e))&&"[object Arguments]"===r.call(e)},n=function(e){return!!i(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==r.call(e)&&"[object Function]"===r.call(e.callee)},a=function(){return i(arguments)}();i.isLegacyArguments=n,e.exports=a?i:n},3391:function(e){"use strict";var t=Object.prototype.toString,r=Function.prototype.toString,i=/^\s*(?:function)?\*/,n="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,a=Object.getPrototypeOf,o=function(){if(!n)return!1;try{return Function("return function*() {}")()}catch(e){}}(),s=o?a(o):{};e.exports=function(e){return"function"==typeof e&&(!!i.test(r.call(e))||(n?a(e)===s:"[object GeneratorFunction]"===t.call(e)))}},994:function(t,r,i){"use strict";var n=i(6144),a=i(1349),o=i(516),s=o("Object.prototype.toString"),u=i(9942)()&&"symbol"==typeof Symbol.toStringTag,f=a(),c=o("Array.prototype.indexOf",!0)||function(e,t){for(var r=0;r<e.length;r+=1)if(e[r]===t)return r;return -1},d=o("String.prototype.slice"),l={},h=i(2154),p=Object.getPrototypeOf;u&&h&&p&&n(f,function(t){var r=new e.g[t];if(!(Symbol.toStringTag in r))throw EvalError("this engine has support for Symbol.toStringTag, but "+t+" does not have the property! Please report this.");var i=p(r),n=h(i,Symbol.toStringTag);n||(n=h(p(i),Symbol.toStringTag)),l[t]=n.get});var m=function(e){var t=!1;return n(l,function(r,i){if(!t)try{t=r.call(e)===i}catch(e){}}),t};t.exports=function(e){return!!e&&"object"==typeof e&&(u?!!h&&m(e):c(f,d(s(e),8,-1))>-1)}},7173:function(e){"use strict";e.exports=Math.abs},847:function(e){"use strict";e.exports=Math.floor},219:function(e){"use strict";e.exports=Number.isNaN||function(e){return e!=e}},2916:function(e){"use strict";e.exports=Math.max},9882:function(e){"use strict";e.exports=Math.min},3291:function(e){"use strict";e.exports=Math.pow},553:function(e){"use strict";e.exports=Math.round},8629:function(e,t,r){"use strict";var i=r(219);e.exports=function(e){return i(e)||0===e?e:e<0?-1:1}},3143:function(e,t,r){"use strict";var i=r(3197),n=r(819),a=r(7122)(),o=r(3990),s=r(8202),u=i("%Math.floor%");e.exports=function(e,t){if("function"!=typeof e)throw new s("`fn` is not a function");if("number"!=typeof t||t<0||t>0xffffffff||u(t)!==t)throw new s("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],i=!0,f=!0;if("length"in e&&o){var c=o(e,"length");c&&!c.configurable&&(i=!1),c&&!c.writable&&(f=!1)}return(i||f||!r)&&(a?n(e,"length",t,!0,!0):n(e,"length",t)),e}},2369:function(e){e.exports=function(e){return e instanceof i.Buffer}},5584:function(e,t,r){"use strict";var i=r(5157),n=r(3391),a=r(1490),o=r(994);function s(e){return e.call.bind(e)}var u="u">typeof BigInt,f="u">typeof Symbol,c=s(Object.prototype.toString),d=s(Number.prototype.valueOf),l=s(String.prototype.valueOf),h=s(Boolean.prototype.valueOf);if(u)var p=s(BigInt.prototype.valueOf);if(f)var m=s(Symbol.prototype.valueOf);function b(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function g(e){return"[object Map]"===c(e)}function v(e){return"[object Set]"===c(e)}function y(e){return"[object WeakMap]"===c(e)}function _(e){return"[object WeakSet]"===c(e)}function x(e){return"[object ArrayBuffer]"===c(e)}function w(e){return!("u"<typeof ArrayBuffer)&&(x.working?x(e):e instanceof ArrayBuffer)}function S(e){return"[object DataView]"===c(e)}function k(e){return!("u"<typeof DataView)&&(S.working?S(e):e instanceof DataView)}t.isArgumentsObject=i,t.isGeneratorFunction=n,t.isTypedArray=o,t.isPromise=function(e){return"u">typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},t.isArrayBufferView=function(e){return"u">typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):o(e)||k(e)},t.isUint8Array=function(e){return"Uint8Array"===a(e)},t.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===a(e)},t.isUint16Array=function(e){return"Uint16Array"===a(e)},t.isUint32Array=function(e){return"Uint32Array"===a(e)},t.isInt8Array=function(e){return"Int8Array"===a(e)},t.isInt16Array=function(e){return"Int16Array"===a(e)},t.isInt32Array=function(e){return"Int32Array"===a(e)},t.isFloat32Array=function(e){return"Float32Array"===a(e)},t.isFloat64Array=function(e){return"Float64Array"===a(e)},t.isBigInt64Array=function(e){return"BigInt64Array"===a(e)},t.isBigUint64Array=function(e){return"BigUint64Array"===a(e)},g.working="u">typeof Map&&g(new Map),t.isMap=function(e){return!("u"<typeof Map)&&(g.working?g(e):e instanceof Map)},v.working="u">typeof Set&&v(new Set),t.isSet=function(e){return!("u"<typeof Set)&&(v.working?v(e):e instanceof Set)},y.working="u">typeof WeakMap&&y(new WeakMap),t.isWeakMap=function(e){return!("u"<typeof WeakMap)&&(y.working?y(e):e instanceof WeakMap)},_.working="u">typeof WeakSet&&_(new WeakSet),t.isWeakSet=function(e){return _(e)},x.working="u">typeof ArrayBuffer&&x(new ArrayBuffer),t.isArrayBuffer=w,S.working="u">typeof ArrayBuffer&&"u">typeof DataView&&S(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=k;var $="u">typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function I(e){return"[object SharedArrayBuffer]"===c(e)}function M(e){return void 0!==$&&(void 0===I.working&&(I.working=I(new $)),I.working?I(e):e instanceof $)}function E(e){return b(e,d)}function A(e){return b(e,l)}function O(e){return b(e,h)}function N(e){return u&&b(e,p)}function j(e){return f&&b(e,m)}t.isSharedArrayBuffer=M,t.isAsyncFunction=function(e){return"[object AsyncFunction]"===c(e)},t.isMapIterator=function(e){return"[object Map Iterator]"===c(e)},t.isSetIterator=function(e){return"[object Set Iterator]"===c(e)},t.isGeneratorObject=function(e){return"[object Generator]"===c(e)},t.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===c(e)},t.isNumberObject=E,t.isStringObject=A,t.isBooleanObject=O,t.isBigIntObject=N,t.isSymbolObject=j,t.isBoxedPrimitive=function(e){return E(e)||A(e)||O(e)||N(e)||j(e)},t.isAnyArrayBuffer=function(e){return"u">typeof Uint8Array&&(w(e)||M(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw Error(e+" is not supported in userland")}})})},8177:function(e,t,r){var i=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},i=0;i<t.length;i++)r[t[i]]=Object.getOwnPropertyDescriptor(e,t[i]);return r},a=/%[sdj%]/g;t.format=function(e){if(!S(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(f(arguments[r]));return t.join(" ")}for(var r=1,i=arguments,n=i.length,o=String(e).replace(a,function(e){if("%%"===e)return"%";if(r>=n)return e;switch(e){case"%s":return String(i[r++]);case"%d":return Number(i[r++]);case"%j":try{return JSON.stringify(i[r++])}catch(e){return"[Circular]"}default:return e}}),s=i[r];r<n;s=i[++r])x(s)||!I(s)?o+=" "+s:o+=" "+f(s);return o},t.deprecate=function(e,r){if(void 0!==n.default&&!0===n.default.noDeprecation)return e;if(void 0===n.default)return function(){return t.deprecate(e,r).apply(this,arguments)};var i=!1;return function(){if(!i){if(n.default.throwDeprecation)throw Error(r);n.default.traceDeprecation?console.trace(r):console.error(r),i=!0}return e.apply(this,arguments)}};var o={},s=/^$/;if(n.default.env.NODE_DEBUG){var u=n.default.env.NODE_DEBUG;s=RegExp("^"+(u=u.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase())+"$","i")}function f(e,r){var i={seen:[],stylize:d};return arguments.length>=3&&(i.depth=arguments[2]),arguments.length>=4&&(i.colors=arguments[3]),_(r)?i.showHidden=r:r&&t._extend(i,r),k(i.showHidden)&&(i.showHidden=!1),k(i.depth)&&(i.depth=2),k(i.colors)&&(i.colors=!1),k(i.customInspect)&&(i.customInspect=!0),i.colors&&(i.stylize=c),h(i,e,i.depth)}function c(e,t){var r=f.styles[t];return r?"\x1b["+f.colors[r][0]+"m"+e+"\x1b["+f.colors[r][1]+"m":e}function d(e,t){return e}function l(e){var t={};return e.forEach(function(e,r){t[e]=!0}),t}function h(e,r,i){if(e.customInspect&&r&&A(r.inspect)&&r.inspect!==t.inspect&&!(r.constructor&&r.constructor.prototype===r)){var n,a=r.inspect(i,e);return S(a)||(a=h(e,a,i)),a}var o=p(e,r);if(o)return o;var s=Object.keys(r),u=l(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(r)),E(r)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return m(r);if(0===s.length){if(A(r)){var f=r.name?": "+r.name:"";return e.stylize("[Function"+f+"]","special")}if($(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(M(r))return e.stylize(Date.prototype.toString.call(r),"date");if(E(r))return m(r)}var c="",d=!1,_=["{","}"];if(y(r)&&(d=!0,_=["[","]"]),A(r)&&(c=" [Function"+(r.name?": "+r.name:"")+"]"),$(r)&&(c=" "+RegExp.prototype.toString.call(r)),M(r)&&(c=" "+Date.prototype.toUTCString.call(r)),E(r)&&(c=" "+m(r)),0===s.length&&(!d||0==r.length))return _[0]+c+_[1];if(i<0)if($(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");else return e.stylize("[Object]","special");return e.seen.push(r),n=d?b(e,r,i,u,s):s.map(function(t){return g(e,r,i,u,t,d)}),e.seen.pop(),v(n,c,_)}function p(e,t){if(k(t))return e.stylize("undefined","undefined");if(S(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}return w(t)?e.stylize(""+t,"number"):_(t)?e.stylize(""+t,"boolean"):x(t)?e.stylize("null","null"):void 0}function m(e){return"["+Error.prototype.toString.call(e)+"]"}function b(e,t,r,i,n){for(var a=[],o=0,s=t.length;o<s;++o)U(t,String(o))?a.push(g(e,t,r,i,String(o),!0)):a.push("");return n.forEach(function(n){n.match(/^\d+$/)||a.push(g(e,t,r,i,n,!0))}),a}function g(e,t,r,i,n,a){var o,s,u;if((u=Object.getOwnPropertyDescriptor(t,n)||{value:t[n]}).get?s=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(s=e.stylize("[Setter]","special")),U(i,n)||(o="["+n+"]"),!s&&(0>e.seen.indexOf(u.value)?(s=x(r)?h(e,u.value,null):h(e,u.value,r-1)).indexOf("\n")>-1&&(s=a?s.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n")):s=e.stylize("[Circular]","special")),k(o)){if(a&&n.match(/^\d+$/))return s;(o=JSON.stringify(""+n)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+s}function v(e,t,r){var i=0;return e.reduce(function(e,t){return i++,t.indexOf("\n")>=0&&i++,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}function y(e){return Array.isArray(e)}function _(e){return"boolean"==typeof e}function x(e){return null===e}function w(e){return"number"==typeof e}function S(e){return"string"==typeof e}function k(e){return void 0===e}function $(e){return I(e)&&"[object RegExp]"===O(e)}function I(e){return"object"==typeof e&&null!==e}function M(e){return I(e)&&"[object Date]"===O(e)}function E(e){return I(e)&&("[object Error]"===O(e)||e instanceof Error)}function A(e){return"function"==typeof e}function O(e){return Object.prototype.toString.call(e)}function N(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(!o[e=e.toUpperCase()])if(s.test(e)){var r=n.default.pid;o[e]=function(){var i=t.format.apply(t,arguments);console.error("%s %d: %s",e,r,i)}}else o[e]=function(){};return o[e]},t.inspect=f,f.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},f.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=r(5584),t.isArray=y,t.isBoolean=_,t.isNull=x,t.isNullOrUndefined=function(e){return null==e},t.isNumber=w,t.isString=S,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=k,t.isRegExp=$,t.types.isRegExp=$,t.isObject=I,t.isDate=M,t.types.isDate=M,t.isError=E,t.types.isNativeError=E,t.isFunction=A,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(2369);var j=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function z(){var e=new Date,t=[N(e.getHours()),N(e.getMinutes()),N(e.getSeconds())].join(":");return[e.getDate(),j[e.getMonth()],t].join(" ")}function U(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",z(),t.format.apply(t,arguments))},t.inherits=r(3782),t._extend=function(e,t){if(!t||!I(t))return e;for(var r=Object.keys(t),i=r.length;i--;)e[r[i]]=t[r[i]];return e};var P="u">typeof Symbol?Symbol("util.promisify.custom"):void 0;function T(e,t){if(!e){var r=Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw TypeError('The "original" argument must be of type Function');if(P&&e[P]){var t=e[P];if("function"!=typeof t)throw TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,P,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,r,i=new Promise(function(e,i){t=e,r=i}),n=[],a=0;a<arguments.length;a++)n.push(arguments[a]);n.push(function(e,i){e?r(e):t(i)});try{e.apply(this,n)}catch(e){r(e)}return i}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),P&&Object.defineProperty(t,P,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,i(e))},t.promisify.custom=P,t.callbackify=function(e){if("function"!=typeof e)throw TypeError('The "original" argument must be of type Function');function t(){for(var t=[],r=0;r<arguments.length;r++)t.push(arguments[r]);var i=t.pop();if("function"!=typeof i)throw TypeError("The last argument must be of type Function");var a=this,o=function(){return i.apply(a,arguments)};e.apply(this,t).then(function(e){n.default.nextTick(o.bind(null,null,e))},function(e){n.default.nextTick(T.bind(null,e,o))})}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,i(e)),t}},1490:function(t,r,i){"use strict";var n=i(6144),a=i(1349),o=i(516),s=o("Object.prototype.toString"),u=i(9942)()&&"symbol"==typeof Symbol.toStringTag,f=a(),c=o("String.prototype.slice"),d={},l=i(2154),h=Object.getPrototypeOf;u&&l&&h&&n(f,function(t){if("function"==typeof e.g[t]){var r=new e.g[t];if(!(Symbol.toStringTag in r))throw EvalError("this engine has support for Symbol.toStringTag, but "+t+" does not have the property! Please report this.");var i=h(r),n=l(i,Symbol.toStringTag);n||(n=l(h(i),Symbol.toStringTag)),d[t]=n.get}});var p=function(e){var t=!1;return n(d,function(r,i){if(!t)try{var n=r.call(e);n===i&&(t=n)}catch(e){}}),t},m=i(994);t.exports=function(e){return!!m(e)&&(u?p(e):c(s(e),8,-1))}},1349:function(t,r,i){"use strict";var n=i(8992);t.exports=function(){return n(["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],function(t){return"function"==typeof e.g[t]})}},2154:function(e,t,r){"use strict";e.exports=r(3990)}},a={};function o(e){var t=a[e];if(void 0!==t)return t.exports;var i=a[e]={exports:{}},n=!0;try{r[e](i,i.exports,o),n=!1}finally{n&&delete a[e]}return i.exports}o.ab="/ROOT/node_modules/.pnpm/next@16.2.4_@babel+core@7.29.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/compiled/util/",t.exports=o(8177)}()},75391,(e,t,r)=>{var i=e.i(8890);!function(){var r={782:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},646:function(e){"use strict";let t={};function r(e,r,i){function n(e,t,i){return"string"==typeof r?r:r(e,t,i)}i||(i=Error);class a extends i{constructor(e,t,r){super(n(e,t,r))}}a.prototype.name=i.name,a.prototype.code=e,t[e]=a}function i(e,t){if(!Array.isArray(e))return`of ${t} ${String(e)}`;{let r=e.length;return(e=e.map(e=>String(e)),r>2)?`one of ${t} ${e.slice(0,r-1).join(", ")}, or `+e[r-1]:2===r?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}}function n(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function a(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function o(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}r("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(e,t,r){let s,u;if("string"==typeof t&&n(t,"not ")?(s="must not be",t=t.replace(/^not /,"")):s="must be",a(e," argument"))u=`The ${e} ${s} ${i(t,"type")}`;else{let r=o(e,".")?"property":"argument";u=`The "${e}" ${r} ${s} ${i(t,"type")}`}return u+`. Received type ${typeof r}`},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.q=t},403:function(e,t,r){"use strict";var n=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=c;var a=r(709),o=r(337);r(782)(c,a);for(var s=n(o.prototype),u=0;u<s.length;u++){var f=s[u];c.prototype[f]||(c.prototype[f]=o.prototype[f])}function c(e){if(!(this instanceof c))return new c(e);a.call(this,e),o.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",d)))}function d(){this._writableState.ended||i.default.nextTick(l,this)}function l(e){e.end()}Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(c.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(c.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})},889:function(e,t,r){"use strict";e.exports=n;var i=r(170);function n(e){if(!(this instanceof n))return new n(e);i.call(this,e)}r(782)(n,i),n.prototype._transform=function(e,t,r){r(null,e)}},709:function(t,r,n){"use strict";t.exports=A,A.ReadableState=E,n(361).EventEmitter;var a,o,s,u,f,c=function(e,t){return e.listeners(t).length},d=n(678),l=n(300).Buffer,h=e.g.Uint8Array||function(){};function p(e){return l.from(e)}function m(e){return l.isBuffer(e)||e instanceof h}var b=n(837);o=b&&b.debuglog?b.debuglog("stream"):function(){};var g=n(379),v=n(25),y=n(776).getHighWaterMark,_=n(646).q,x=_.ERR_INVALID_ARG_TYPE,w=_.ERR_STREAM_PUSH_AFTER_EOF,S=_.ERR_METHOD_NOT_IMPLEMENTED,k=_.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;n(782)(A,d);var $=v.errorOrDestroy,I=["error","close","destroy","pause","resume"];function M(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}function E(e,t,r){a=a||n(403),e=e||{},"boolean"!=typeof r&&(r=t instanceof a),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=y(this,e,"readableHighWaterMark",r),this.buffer=new g,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(s||(s=n(704).s),this.decoder=new s(e.encoding),this.encoding=e.encoding)}function A(e){if(a=a||n(403),!(this instanceof A))return new A(e);var t=this instanceof a;this._readableState=new E(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),d.call(this)}function O(e,t,r,i,n){o("readableAddChunk",t);var a,s=e._readableState;if(null===t)s.reading=!1,T(e,s);else if(n||(a=j(s,t)),a)$(e,a);else if(s.objectMode||t&&t.length>0)if("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===l.prototype||(t=p(t)),i)s.endEmitted?$(e,new k):N(e,s,t,!0);else if(s.ended)$(e,new w);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||0!==t.length?N(e,s,t,!1):B(e,s)):N(e,s,t,!1)}else i||(s.reading=!1,B(e,s));return!s.ended&&(s.length<s.highWaterMark||0===s.length)}function N(e,t,r,i){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,i?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&R(e)),B(e,t)}function j(e,t){var r;return m(t)||"string"==typeof t||void 0===t||e.objectMode||(r=new x("chunk",["string","Buffer","Uint8Array"],t)),r}Object.defineProperty(A.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),A.prototype.destroy=v.destroy,A.prototype._undestroy=v.undestroy,A.prototype._destroy=function(e,t){t(e)},A.prototype.push=function(e,t){var r,i=this._readableState;return i.objectMode?r=!0:"string"==typeof e&&((t=t||i.defaultEncoding)!==i.encoding&&(e=l.from(e,t),t=""),r=!0),O(this,e,t,!1,r)},A.prototype.unshift=function(e){return O(this,e,null,!0,!1)},A.prototype.isPaused=function(){return!1===this._readableState.flowing},A.prototype.setEncoding=function(e){s||(s=n(704).s);var t=new s(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,i="";null!==r;)i+=t.write(r.data),r=r.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var z=0x40000000;function U(e){return e>=z?e=z:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function P(e,t){if(e<=0||0===t.length&&t.ended)return 0;if(t.objectMode)return 1;if(e!=e)if(t.flowing&&t.length)return t.buffer.head.data.length;else return t.length;return(e>t.highWaterMark&&(t.highWaterMark=U(e)),e<=t.length)?e:t.ended?t.length:(t.needReadable=!0,0)}function T(e,t){if(o("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?R(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,D(e)))}}function R(e){var t=e._readableState;o("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(o("emitReadable",t.flowing),t.emittedReadable=!0,i.default.nextTick(D,e))}function D(e){var t=e._readableState;o("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,W(e)}function B(e,t){t.readingMore||(t.readingMore=!0,i.default.nextTick(C,e,t))}function C(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var r=t.length;if(o("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function Z(e){return function(){var t=e._readableState;o("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&c(e,"data")&&(t.flowing=!0,W(e))}}function L(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function q(e){o("readable nexttick read 0"),e.read(0)}function F(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.default.nextTick(J,e,t))}function J(e,t){o("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),W(e),t.flowing&&!t.reading&&e.read(0)}function W(e){var t=e._readableState;for(o("flow",t.flowing);t.flowing&&null!==e.read(););}function K(e,t){var r;return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r)}function V(e){var t=e._readableState;o("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,i.default.nextTick(G,t,e))}function G(e,t){if(o("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function H(e,t){for(var r=0,i=e.length;r<i;r++)if(e[r]===t)return r;return -1}A.prototype.read=function(e){o("read",e),e=parseInt(e,10);var t,r=this._readableState,i=e;if(0!==e&&(r.emittedReadable=!1),0===e&&r.needReadable&&((0!==r.highWaterMark?r.length>=r.highWaterMark:r.length>0)||r.ended))return o("read: emitReadable",r.length,r.ended),0===r.length&&r.ended?V(this):R(this),null;if(0===(e=P(e,r))&&r.ended)return 0===r.length&&V(this),null;var n=r.needReadable;return o("need readable",n),(0===r.length||r.length-e<r.highWaterMark)&&o("length less than watermark",n=!0),r.ended||r.reading?o("reading or ended",n=!1):n&&(o("do read"),r.reading=!0,r.sync=!0,0===r.length&&(r.needReadable=!0),this._read(r.highWaterMark),r.sync=!1,r.reading||(e=P(i,r))),null===(t=e>0?K(e,r):null)?(r.needReadable=r.length<=r.highWaterMark,e=0):(r.length-=e,r.awaitDrain=0),0===r.length&&(r.ended||(r.needReadable=!0),i!==e&&r.ended&&V(this)),null!==t&&this.emit("data",t),t},A.prototype._read=function(e){$(this,new S("_read()"))},A.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e)}n.pipesCount+=1,o("pipe count=%d opts=%j",n.pipesCount,t);var a=t&&!1===t.end||e===i.default.stdout||e===i.default.stderr?g:u;function s(e,t){o("onunpipe"),e===r&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,l())}function u(){o("onend"),e.end()}n.endEmitted?i.default.nextTick(a):r.once("end",a),e.on("unpipe",s);var f=Z(r);e.on("drain",f);var d=!1;function l(){o("cleanup"),e.removeListener("close",m),e.removeListener("finish",b),e.removeListener("drain",f),e.removeListener("error",p),e.removeListener("unpipe",s),r.removeListener("end",u),r.removeListener("end",g),r.removeListener("data",h),d=!0,n.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&f()}function h(t){o("ondata");var i=e.write(t);o("dest.write",i),!1===i&&((1===n.pipesCount&&n.pipes===e||n.pipesCount>1&&-1!==H(n.pipes,e))&&!d&&(o("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function p(t){o("onerror",t),g(),e.removeListener("error",p),0===c(e,"error")&&$(e,t)}function m(){e.removeListener("finish",b),g()}function b(){o("onfinish"),e.removeListener("close",m),g()}function g(){o("unpipe"),r.unpipe(e)}return r.on("data",h),M(e,"error",p),e.once("close",m),e.once("finish",b),e.emit("pipe",r),n.flowing||(o("pipe resume"),r.resume()),e},A.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var i=t.pipes,n=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a<n;a++)i[a].emit("unpipe",this,{hasUnpiped:!1});return this}var o=H(t.pipes,e);return -1===o||(t.pipes.splice(o,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},A.prototype.on=function(e,t){var r=d.prototype.on.call(this,e,t),n=this._readableState;return"data"===e?(n.readableListening=this.listenerCount("readable")>0,!1!==n.flowing&&this.resume()):"readable"!==e||n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,o("on readable",n.length,n.reading),n.length?R(this):n.reading||i.default.nextTick(q,this)),r},A.prototype.addListener=A.prototype.on,A.prototype.removeListener=function(e,t){var r=d.prototype.removeListener.call(this,e,t);return"readable"===e&&i.default.nextTick(L,this),r},A.prototype.removeAllListeners=function(e){var t=d.prototype.removeAllListeners.apply(this,arguments);return("readable"===e||void 0===e)&&i.default.nextTick(L,this),t},A.prototype.resume=function(){var e=this._readableState;return e.flowing||(o("resume"),e.flowing=!e.readableListening,F(this,e)),e.paused=!1,this},A.prototype.pause=function(){return o("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(o("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},A.prototype.wrap=function(e){var t=this,r=this._readableState,i=!1;for(var n in e.on("end",function(){if(o("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(n){o("wrapped data"),r.decoder&&(n=r.decoder.write(n)),r.objectMode&&null==n||(r.objectMode||n&&n.length)&&(t.push(n)||(i=!0,e.pause()))}),e)void 0===this[n]&&"function"==typeof e[n]&&(this[n]=function(t){return function(){return e[t].apply(e,arguments)}}(n));for(var a=0;a<I.length;a++)e.on(I[a],this.emit.bind(this,I[a]));return this._read=function(t){o("wrapped _read",t),i&&(i=!1,e.resume())},this},"function"==typeof Symbol&&(A.prototype[Symbol.asyncIterator]=function(){return void 0===u&&(u=n(871)),u(this)}),Object.defineProperty(A.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(A.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(A.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),A._fromList=K,Object.defineProperty(A.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(A.from=function(e,t){return void 0===f&&(f=n(727)),f(A,e,t)})},170:function(e,t,r){"use strict";e.exports=c;var i=r(646).q,n=i.ERR_METHOD_NOT_IMPLEMENTED,a=i.ERR_MULTIPLE_CALLBACK,o=i.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=i.ERR_TRANSFORM_WITH_LENGTH_0,u=r(403);function f(e,t){var r=this._transformState;r.transforming=!1;var i=r.writecb;if(null===i)return this.emit("error",new a);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),i(e);var n=this._readableState;n.reading=!1,(n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}function c(e){if(!(this instanceof c))return new c(e);u.call(this,e),this._transformState={afterTransform:f.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",d)}function d(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?l(this,null,null):this._flush(function(t,r){l(e,t,r)})}function l(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new s;if(e._transformState.transforming)throw new o;return e.push(null)}r(782)(c,u),c.prototype.push=function(e,t){return this._transformState.needTransform=!1,u.prototype.push.call(this,e,t)},c.prototype._transform=function(e,t,r){r(new n("_transform()"))},c.prototype._write=function(e,t,r){var i=this._transformState;if(i.writecb=r,i.writechunk=e,i.writeencoding=t,!i.transforming){var n=this._readableState;(i.needTransform||n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}},c.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},c.prototype._destroy=function(e,t){u.prototype._destroy.call(this,e,function(e){t(e)})}},337:function(t,r,n){"use strict";function a(e){var t=this;this.next=null,this.entry=null,this.finish=function(){J(t,e)}}t.exports=E,E.WritableState=M;var o,s,u={deprecate:n(769)},f=n(678),c=n(300).Buffer,d=e.g.Uint8Array||function(){};function l(e){return c.from(e)}function h(e){return c.isBuffer(e)||e instanceof d}var p=n(25),m=n(776).getHighWaterMark,b=n(646).q,g=b.ERR_INVALID_ARG_TYPE,v=b.ERR_METHOD_NOT_IMPLEMENTED,y=b.ERR_MULTIPLE_CALLBACK,_=b.ERR_STREAM_CANNOT_PIPE,x=b.ERR_STREAM_DESTROYED,w=b.ERR_STREAM_NULL_VALUES,S=b.ERR_STREAM_WRITE_AFTER_END,k=b.ERR_UNKNOWN_ENCODING,$=p.errorOrDestroy;function I(){}function M(e,t,r){o=o||n(403),e=e||{},"boolean"!=typeof r&&(r=t instanceof o),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=m(this,e,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var i=!1===e.decodeStrings;this.decodeStrings=!i,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){T(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function E(e){var t=this instanceof(o=o||n(403));if(!t&&!s.call(E,this))return new E(e);this._writableState=new M(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),f.call(this)}function A(e,t){var r=new S;$(e,r),i.default.nextTick(t,r)}function O(e,t,r,n){var a;return null===r?a=new w:"string"==typeof r||t.objectMode||(a=new g("chunk",["string","Buffer"],r)),!a||($(e,a),i.default.nextTick(n,a),!1)}function N(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=c.from(t,r)),t}function j(e,t,r,i,n,a){if(!r){var o=N(t,i,n);i!==o&&(r=!0,n="buffer",i=o)}var s=t.objectMode?1:i.length;t.length+=s;var u=t.length<t.highWaterMark;if(u||(t.needDrain=!0),t.writing||t.corked){var f=t.lastBufferedRequest;t.lastBufferedRequest={chunk:i,encoding:n,isBuf:r,callback:a,next:null},f?f.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else z(e,t,!1,s,i,n,a);return u}function z(e,t,r,i,n,a,o){t.writelen=i,t.writecb=o,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new x("write")):r?e._writev(n,t.onwrite):e._write(n,a,t.onwrite),t.sync=!1}function U(e,t,r,n,a){--t.pendingcb,r?(i.default.nextTick(a,n),i.default.nextTick(q,e,t),e._writableState.errorEmitted=!0,$(e,n)):(a(n),e._writableState.errorEmitted=!0,$(e,n),q(e,t))}function P(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function T(e,t){var r=e._writableState,n=r.sync,a=r.writecb;if("function"!=typeof a)throw new y;if(P(r),t)U(e,r,n,t,a);else{var o=C(r)||e.destroyed;o||r.corked||r.bufferProcessing||!r.bufferedRequest||B(e,r),n?i.default.nextTick(R,e,r,o,a):R(e,r,o,a)}}function R(e,t,r,i){r||D(e,t),t.pendingcb--,i(),q(e,t)}function D(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function B(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var i=Array(t.bufferedRequestCount),n=t.corkedRequestsFree;n.entry=r;for(var o=0,s=!0;r;)i[o]=r,r.isBuf||(s=!1),r=r.next,o+=1;i.allBuffers=s,z(e,t,!0,t.length,i,"",n.finish),t.pendingcb++,t.lastBufferedRequest=null,n.next?(t.corkedRequestsFree=n.next,n.next=null):t.corkedRequestsFree=new a(t),t.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,f=r.encoding,c=r.callback,d=t.objectMode?1:u.length;if(z(e,t,!1,d,u,f,c),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function C(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function Z(e,t){e._final(function(r){t.pendingcb--,r&&$(e,r),t.prefinished=!0,e.emit("prefinish"),q(e,t)})}function L(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,i.default.nextTick(Z,e,t)))}function q(e,t){var r=C(t);if(r&&(L(e,t),0===t.pendingcb)&&(t.finished=!0,e.emit("finish"),t.autoDestroy)){var i=e._readableState;(!i||i.autoDestroy&&i.endEmitted)&&e.destroy()}return r}function F(e,t,r){t.ending=!0,q(e,t),r&&(t.finished?i.default.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}function J(e,t,r){var i=e.entry;for(e.entry=null;i;){var n=i.callback;t.pendingcb--,n(r),i=i.next}t.corkedRequestsFree.next=e}n(782)(E,f),M.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(M.prototype,"buffer",{get:u.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(s=Function.prototype[Symbol.hasInstance],Object.defineProperty(E,Symbol.hasInstance,{value:function(e){return!!s.call(this,e)||this===E&&e&&e._writableState instanceof M}})):s=function(e){return e instanceof this},E.prototype.pipe=function(){$(this,new _)},E.prototype.write=function(e,t,r){var i=this._writableState,n=!1,a=!i.objectMode&&h(e);return a&&!c.isBuffer(e)&&(e=l(e)),"function"==typeof t&&(r=t,t=null),a?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof r&&(r=I),i.ending?A(this,r):(a||O(this,i,e,r))&&(i.pendingcb++,n=j(this,i,a,e,t,r)),n},E.prototype.cork=function(){this._writableState.corked++},E.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||B(this,e))},E.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new k(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(E.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(E.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),E.prototype._write=function(e,t,r){r(new v("_write()"))},E.prototype._writev=null,E.prototype.end=function(e,t,r){var i=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||F(this,i,r),this},Object.defineProperty(E.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(E.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),E.prototype.destroy=p.destroy,E.prototype._undestroy=p.undestroy,E.prototype._destroy=function(e,t){t(e)}},871:function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var a,o=r(698),s=Symbol("lastResolve"),u=Symbol("lastReject"),f=Symbol("error"),c=Symbol("ended"),d=Symbol("lastPromise"),l=Symbol("handlePromise"),h=Symbol("stream");function p(e,t){return{value:e,done:t}}function m(e){var t=e[s];if(null!==t){var r=e[h].read();null!==r&&(e[d]=null,e[s]=null,e[u]=null,t(p(r,!1)))}}function b(e){i.default.nextTick(m,e)}function g(e,t){return function(r,i){e.then(function(){t[c]?r(p(void 0,!0)):t[l](r,i)},i)}}var v=Object.getPrototypeOf(function(){}),y=Object.setPrototypeOf((n(a={get stream(){return this[h]},next:function(){var e,t=this,r=this[f];if(null!==r)return Promise.reject(r);if(this[c])return Promise.resolve(p(void 0,!0));if(this[h].destroyed)return new Promise(function(e,r){i.default.nextTick(function(){t[f]?r(t[f]):e(p(void 0,!0))})});var n=this[d];if(n)e=new Promise(g(n,this));else{var a=this[h].read();if(null!==a)return Promise.resolve(p(a,!1));e=new Promise(this[l])}return this[d]=e,e}},Symbol.asyncIterator,function(){return this}),n(a,"return",function(){var e=this;return new Promise(function(t,r){e[h].destroy(null,function(e){e?r(e):t(p(void 0,!0))})})}),a),v);e.exports=function(e){var t,r=Object.create(y,(n(t={},h,{value:e,writable:!0}),n(t,s,{value:null,writable:!0}),n(t,u,{value:null,writable:!0}),n(t,f,{value:null,writable:!0}),n(t,c,{value:e._readableState.endEmitted,writable:!0}),n(t,l,{value:function(e,t){var i=r[h].read();i?(r[d]=null,r[s]=null,r[u]=null,e(p(i,!1))):(r[s]=e,r[u]=t)},writable:!0}),t));return r[d]=null,o(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[u];null!==t&&(r[d]=null,r[s]=null,r[u]=null,t(e)),r[f]=e;return}var i=r[s];null!==i&&(r[d]=null,r[s]=null,r[u]=null,i(p(void 0,!0))),r[c]=!0}),e.on("readable",b.bind(null,r)),r}},379:function(e,t,r){"use strict";function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,i)}return r}function n(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach(function(t){a(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function s(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function u(e,t,r){return t&&s(e.prototype,t),r&&s(e,r),e}var f=r(300).Buffer,c=r(837).inspect,d=c&&c.custom||"inspect";function l(e,t,r){f.prototype.copy.call(e,t,r)}e.exports=function(){function e(){o(this,e),this.head=null,this.tail=null,this.length=0}return u(e,[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return f.alloc(0);for(var t=f.allocUnsafe(e>>>0),r=this.head,i=0;r;)l(r.data,t,i),i+=r.data.length,r=r.next;return t}},{key:"consume",value:function(e,t){var r;return e<this.head.data.length?(r=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):r=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,r=1,i=t.data;for(e-=i.length;t=t.next;){var n=t.data,a=e>n.length?n.length:e;if(a===n.length?i+=n:i+=n.slice(0,e),0==(e-=a)){a===n.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=n.slice(a));break}++r}return this.length-=r,i}},{key:"_getBuffer",value:function(e){var t=f.allocUnsafe(e),r=this.head,i=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var n=r.data,a=e>n.length?n.length:e;if(n.copy(t,t.length-e,0,a),0==(e-=a)){a===n.length?(++i,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=n.slice(a));break}++i}return this.length-=i,t}},{key:d,value:function(e,t){return c(this,n({},t,{depth:0,customInspect:!1}))}}]),e}()},25:function(e){"use strict";function t(e,t){n(e,t),r(e)}function r(e){e._writableState&&!e._writableState.emitClose||(!e._readableState||e._readableState.emitClose)&&e.emit("close")}function n(e,t){e.emit("error",t)}e.exports={destroy:function(e,a){var o=this,s=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return s||u?a?a(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,i.default.nextTick(n,this,e)):i.default.nextTick(n,this,e)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!a&&e?o._writableState?o._writableState.errorEmitted?i.default.nextTick(r,o):(o._writableState.errorEmitted=!0,i.default.nextTick(t,o,e)):i.default.nextTick(t,o,e):a?(i.default.nextTick(r,o),a(e)):i.default.nextTick(r,o)})),this},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var r=e._readableState,i=e._writableState;r&&r.autoDestroy||i&&i.autoDestroy?e.destroy(t):e.emit("error",t)}}},698:function(e,t,r){"use strict";var i=r(646).q.ERR_STREAM_PREMATURE_CLOSE;function n(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,i=Array(r),n=0;n<r;n++)i[n]=arguments[n];e.apply(this,i)}}}function a(){}function o(e){return e.setHeader&&"function"==typeof e.abort}function s(e,t,r){if("function"==typeof t)return s(e,null,t);t||(t={}),r=n(r||a);var u=t.readable||!1!==t.readable&&e.readable,f=t.writable||!1!==t.writable&&e.writable,c=function(){e.writable||l()},d=e._writableState&&e._writableState.finished,l=function(){f=!1,d=!0,u||r.call(e)},h=e._readableState&&e._readableState.endEmitted,p=function(){u=!1,h=!0,f||r.call(e)},m=function(t){r.call(e,t)},b=function(){var t;return u&&!h?(e._readableState&&e._readableState.ended||(t=new i),r.call(e,t)):f&&!d?(e._writableState&&e._writableState.ended||(t=new i),r.call(e,t)):void 0},g=function(){e.req.on("finish",l)};return o(e)?(e.on("complete",l),e.on("abort",b),e.req?g():e.on("request",g)):f&&!e._writableState&&(e.on("end",c),e.on("close",c)),e.on("end",p),e.on("finish",l),!1!==t.error&&e.on("error",m),e.on("close",b),function(){e.removeListener("complete",l),e.removeListener("abort",b),e.removeListener("request",g),e.req&&e.req.removeListener("finish",l),e.removeListener("end",c),e.removeListener("close",c),e.removeListener("finish",l),e.removeListener("end",p),e.removeListener("error",m),e.removeListener("close",b)}}e.exports=s},727:function(e,t,r){"use strict";function i(e,t,r,i,n,a,o){try{var s=e[a](o),u=s.value}catch(e){r(e);return}s.done?t(u):Promise.resolve(u).then(i,n)}function n(e){return function(){var t=this,r=arguments;return new Promise(function(n,a){var o=e.apply(t,r);function s(e){i(o,n,a,s,u,"next",e)}function u(e){i(o,n,a,s,u,"throw",e)}s(void 0)})}}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,i)}return r}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach(function(t){s(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var u=r(646).q.ERR_INVALID_ARG_TYPE;e.exports=function(e,t,r){if(t&&"function"==typeof t.next)i=t;else if(t&&t[Symbol.asyncIterator])i=t[Symbol.asyncIterator]();else if(t&&t[Symbol.iterator])i=t[Symbol.iterator]();else throw new u("iterable",["Iterable"],t);var i,a=new e(o({objectMode:!0},r)),s=!1;function f(){return c.apply(this,arguments)}function c(){return(c=n(function*(){try{var e=yield i.next(),t=e.value;e.done?a.push(null):a.push((yield t))?f():s=!1}catch(e){a.destroy(e)}})).apply(this,arguments)}return a._read=function(){s||(s=!0,f())},a}},442:function(e,t,r){"use strict";function i(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var n,a=r(646).q,o=a.ERR_MISSING_ARGS,s=a.ERR_STREAM_DESTROYED;function u(e){if(e)throw e}function f(e){return e.setHeader&&"function"==typeof e.abort}function c(e,t,a,o){o=i(o);var u=!1;e.on("close",function(){u=!0}),void 0===n&&(n=r(698)),n(e,{readable:t,writable:a},function(e){if(e)return o(e);u=!0,o()});var c=!1;return function(t){if(!u&&!c){if(c=!0,f(e))return e.abort();if("function"==typeof e.destroy)return e.destroy();o(t||new s("pipe"))}}}function d(e){e()}function l(e,t){return e.pipe(t)}function h(e){return e.length&&"function"==typeof e[e.length-1]?e.pop():u}e.exports=function(){for(var e,t=arguments.length,r=Array(t),i=0;i<t;i++)r[i]=arguments[i];var n=h(r);if(Array.isArray(r[0])&&(r=r[0]),r.length<2)throw new o("streams");var a=r.map(function(t,i){var o=i<r.length-1;return c(t,o,i>0,function(t){e||(e=t),t&&a.forEach(d),o||(a.forEach(d),n(e))})});return r.reduce(l)}},776:function(e,t,r){"use strict";var i=r(646).q.ERR_INVALID_OPT_VALUE;function n(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}e.exports={getHighWaterMark:function(e,t,r,a){var o=n(t,a,r);if(null!=o){if(!(isFinite(o)&&Math.floor(o)===o)||o<0)throw new i(a?r:"highWaterMark",o);return Math.floor(o)}return e.objectMode?16:16384}}},678:function(e,t,r){e.exports=r(781)},55:function(e,t,r){var i=r(300),n=i.Buffer;function a(e,t){for(var r in e)t[r]=e[r]}function o(e,t,r){return n(e,t,r)}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?e.exports=i:(a(i,t),t.Buffer=o),o.prototype=Object.create(n.prototype),a(n,o),o.from=function(e,t,r){if("number"==typeof e)throw TypeError("Argument must not be a number");return n(e,t,r)},o.alloc=function(e,t,r){if("number"!=typeof e)throw TypeError("Argument must be a number");var i=n(e);return void 0!==t?"string"==typeof r?i.fill(t,r):i.fill(t):i.fill(0),i},o.allocUnsafe=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return n(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return i.SlowBuffer(e)}},173:function(e,t,r){e.exports=n;var i=r(361).EventEmitter;function n(){i.call(this)}r(782)(n,i),n.Readable=r(709),n.Writable=r(337),n.Duplex=r(403),n.Transform=r(170),n.PassThrough=r(889),n.finished=r(698),n.pipeline=r(442),n.Stream=n,n.prototype.pipe=function(e,t){var r=this;function n(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function a(){r.readable&&r.resume&&r.resume()}r.on("data",n),e.on("drain",a),e._isStdio||t&&!1===t.end||(r.on("end",s),r.on("close",u));var o=!1;function s(){o||(o=!0,e.end())}function u(){o||(o=!0,"function"==typeof e.destroy&&e.destroy())}function f(e){if(c(),0===i.listenerCount(this,"error"))throw e}function c(){r.removeListener("data",n),e.removeListener("drain",a),r.removeListener("end",s),r.removeListener("close",u),r.removeListener("error",f),e.removeListener("error",f),r.removeListener("end",c),r.removeListener("close",c),e.removeListener("close",c)}return r.on("error",f),e.on("error",f),r.on("end",c),r.on("close",c),e.on("close",c),e.emit("pipe",r),e}},704:function(e,t,r){"use strict";var i=r(55).Buffer,n=i.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function a(e){var t;if(!e)return"utf8";for(;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function o(e){var t=a(e);if("string"!=typeof t&&(i.isEncoding===n||!n(e)))throw Error("Unknown encoding: "+e);return t||e}function s(e){var t;switch(this.encoding=o(e),this.encoding){case"utf16le":this.text=p,this.end=m,t=4;break;case"utf8":this.fillLast=d,t=4;break;case"base64":this.text=b,this.end=g,t=3;break;default:this.write=v,this.end=y;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=i.allocUnsafe(t)}function u(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function f(e,t,r){var i=t.length-1;if(i<r)return 0;var n=u(t[i]);return n>=0?(n>0&&(e.lastNeed=n-1),n):--i<r||-2===n?0:(n=u(t[i]))>=0?(n>0&&(e.lastNeed=n-2),n):--i<r||-2===n?0:(n=u(t[i]))>=0?(n>0&&(2===n?n=0:e.lastNeed=n-3),n):0}function c(e,t,r){if((192&t[0])!=128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((192&t[1])!=128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(192&t[2])!=128)return e.lastNeed=2,"�"}}function d(e){var t=this.lastTotal-this.lastNeed,r=c(this,e,t);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length)}function l(e,t){var r=f(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var i=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,i),e.toString("utf8",t,i)}function h(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function p(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function m(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function b(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function g(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function v(e){return e.toString(this.encoding)}function y(e){return e&&e.length?this.write(e):""}t.s=s,s.prototype.write=function(e){var t,r;if(0===e.length)return"";if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},s.prototype.end=h,s.prototype.text=l,s.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},769:function(t){function r(t){try{if(!e.g.localStorage)return!1}catch(e){return!1}var r=e.g.localStorage[t];return null!=r&&"true"===String(r).toLowerCase()}t.exports=function e(e,t){if(r("noDeprecation"))return e;var i=!1;return function(){if(!i){if(r("throwDeprecation"))throw Error(t);r("traceDeprecation")?console.trace(t):console.warn(t),i=!0}return e.apply(this,arguments)}}},300:function(t){"use strict";t.exports=e.r(49440)},361:function(t){"use strict";t.exports=e.r(25235)},781:function(t){"use strict";t.exports=e.r(25235).EventEmitter},837:function(t){"use strict";t.exports=e.r(60776)}},n={};function a(e){var t=n[e];if(void 0!==t)return t.exports;var i=n[e]={exports:{}},o=!0;try{r[e](i,i.exports,a),o=!1}finally{o&&delete n[e]}return i.exports}a.ab="/ROOT/node_modules/.pnpm/next@16.2.4_@babel+core@7.29.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/compiled/stream-browserify/",t.exports=a(173)}()},9870,(e,t,r)=>{var i=e.r(49440),n=i.Buffer;function a(e,t){for(var r in e)t[r]=e[r]}function o(e,t,r){return n(e,t,r)}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?t.exports=i:(a(i,r),r.Buffer=o),o.prototype=Object.create(n.prototype),a(n,o),o.from=function(e,t,r){if("number"==typeof e)throw TypeError("Argument must not be a number");return n(e,t,r)},o.alloc=function(e,t,r){if("number"!=typeof e)throw TypeError("Argument must be a number");var i=n(e);return void 0!==t?"string"==typeof r?i.fill(t,r):i.fill(t):i.fill(0),i},o.allocUnsafe=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return n(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return i.SlowBuffer(e)}},24753,(e,t,r)=>{"use strict";var i=e.r(9870).Buffer,n=i.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function a(e){var t;if(!e)return"utf8";for(;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function o(e){var t=a(e);if("string"!=typeof t&&(i.isEncoding===n||!n(e)))throw Error("Unknown encoding: "+e);return t||e}function s(e){var t;switch(this.encoding=o(e),this.encoding){case"utf16le":this.text=p,this.end=m,t=4;break;case"utf8":this.fillLast=d,t=4;break;case"base64":this.text=b,this.end=g,t=3;break;default:this.write=v,this.end=y;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=i.allocUnsafe(t)}function u(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function f(e,t,r){var i=t.length-1;if(i<r)return 0;var n=u(t[i]);return n>=0?(n>0&&(e.lastNeed=n-1),n):--i<r||-2===n?0:(n=u(t[i]))>=0?(n>0&&(e.lastNeed=n-2),n):--i<r||-2===n?0:(n=u(t[i]))>=0?(n>0&&(2===n?n=0:e.lastNeed=n-3),n):0}function c(e,t,r){if((192&t[0])!=128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((192&t[1])!=128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(192&t[2])!=128)return e.lastNeed=2,"�"}}function d(e){var t=this.lastTotal-this.lastNeed,r=c(this,e,t);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length)}function l(e,t){var r=f(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var i=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,i),e.toString("utf8",t,i)}function h(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function p(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function m(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function b(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function g(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function v(e){return e.toString(this.encoding)}function y(e){return e&&e.length?this.write(e):""}r.StringDecoder=s,s.prototype.write=function(e){var t,r;if(0===e.length)return"";if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},s.prototype.end=h,s.prototype.text=l,s.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},26966,(__turbopack_context__,module,exports)=>{!function(){var __webpack_modules__={950:function(__unused_webpack_module,exports){var indexOf=function(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0;r<e.length;r++)if(e[r]===t)return r;return -1},Object_keys=function(e){if(Object.keys)return Object.keys(e);var t=[];for(var r in e)t.push(r);return t},forEach=function(e,t){if(e.forEach)return e.forEach(t);for(var r=0;r<e.length;r++)t(e[r],r,e)},defineProp=function(){try{return Object.defineProperty({},"_",{}),function(e,t,r){Object.defineProperty(e,t,{writable:!0,enumerable:!1,configurable:!0,value:r})}}catch(e){return function(e,t,r){e[t]=r}}}(),globals=["Array","Boolean","Date","Error","EvalError","Function","Infinity","JSON","Math","NaN","Number","Object","RangeError","ReferenceError","RegExp","String","SyntaxError","TypeError","URIError","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"];function Context(){}Context.prototype={};var Script=exports.Script=function(e){if(!(this instanceof Script))return new Script(e);this.code=e};Script.prototype.runInContext=function(e){if(!(e instanceof Context))throw TypeError("needs a 'context' argument.");var t=document.createElement("iframe");t.style||(t.style={}),t.style.display="none",document.body.appendChild(t);var r=t.contentWindow,i=r.eval,n=r.execScript;!i&&n&&(n.call(r,"null"),i=r.eval),forEach(Object_keys(e),function(t){r[t]=e[t]}),forEach(globals,function(t){e[t]&&(r[t]=e[t])});var a=Object_keys(r),o=i.call(r,this.code);return forEach(Object_keys(r),function(t){(t in e||-1===indexOf(a,t))&&(e[t]=r[t])}),forEach(globals,function(t){t in e||defineProp(e,t,r[t])}),document.body.removeChild(t),o},Script.prototype.runInThisContext=function(){return eval(this.code)},Script.prototype.runInNewContext=function(e){var t=Script.createContext(e),r=this.runInContext(t);return e&&forEach(Object_keys(t),function(r){e[r]=t[r]}),r},forEach(Object_keys(Script.prototype),function(e){exports[e]=Script[e]=function(t){var r=Script(t);return r[e].apply(r,[].slice.call(arguments,1))}}),exports.isContext=function(e){return e instanceof Context},exports.createScript=function(e){return exports.Script(e)},exports.createContext=Script.createContext=function(e){var t=new Context;return"object"==typeof e&&forEach(Object_keys(e),function(r){t[r]=e[r]}),t}}};"u">typeof __nccwpck_require__&&(__nccwpck_require__.ab="/ROOT/node_modules/.pnpm/next@16.2.4_@babel+core@7.29.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/compiled/vm-browserify/");var __webpack_exports__={};__webpack_modules__[950](0,__webpack_exports__),module.exports=__webpack_exports__}()},3560,(e,t,r)=>{var i=e.i(53030),n=e.i(8890);!function(){var r={7160:function(e,t,r){var i=t;i.bignum=r(711),i.define=r(495).define,i.base=r(853),i.constants=r(7335),i.decoders=r(6701),i.encoders=r(3418)},495:function(e,t,r){var i=r(7160),n=r(3782);function a(e,t){this.name=e,this.body=t,this.decoders={},this.encoders={}}t.define=function(e,t){return new a(e,t)},a.prototype._createNamed=function(e){var t;try{t=r(6144).runInThisContext("(function "+this.name+"(entity) {\n this._initNamed(entity);\n})")}catch(e){t=function(e){this._initNamed(e)}}return n(t,e),t.prototype._initNamed=function(t){e.call(this,t)},new t(this)},a.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(i.decoders[e])),this.decoders[e]},a.prototype.decode=function(e,t,r){return this._getDecoder(t).decode(e,r)},a.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(i.encoders[e])),this.encoders[e]},a.prototype.encode=function(e,t,r){return this._getEncoder(t).encode(e,r)}},6483:function(e,t,r){var i=r(3782),n=r(853).Reporter,a=r(4300).Buffer;function o(e,t){(n.call(this,t),a.isBuffer(e))?(this.base=e,this.offset=0,this.length=e.length):this.error("Input not Buffer")}function s(e,t){if(Array.isArray(e))this.length=0,this.value=e.map(function(e){return e instanceof s||(e=new s(e,t)),this.length+=e.length,e},this);else if("number"==typeof e){if(!(0<=e&&e<=255))return t.error("non-byte EncoderBuffer value");this.value=e,this.length=1}else if("string"==typeof e)this.value=e,this.length=a.byteLength(e);else{if(!a.isBuffer(e))return t.error("Unsupported type: "+typeof e);this.value=e,this.length=e.length}}i(o,n),t.C=o,o.prototype.save=function(){return{offset:this.offset,reporter:n.prototype.save.call(this)}},o.prototype.restore=function(e){var t=new o(this.base);return t.offset=e.offset,t.length=this.offset,this.offset=e.offset,n.prototype.restore.call(this,e.reporter),t},o.prototype.isEmpty=function(){return this.offset===this.length},o.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")},o.prototype.skip=function(e,t){if(!(this.offset+e<=this.length))return this.error(t||"DecoderBuffer overrun");var r=new o(this.base);return r._reporterState=this._reporterState,r.offset=this.offset,r.length=this.offset+e,this.offset+=e,r},o.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)},t.R=s,s.prototype.join=function(e,t){return e||(e=new a(this.length)),t||(t=0),0===this.length||(Array.isArray(this.value)?this.value.forEach(function(r){r.join(e,t),t+=r.length}):("number"==typeof this.value?e[t]=this.value:"string"==typeof this.value?e.write(this.value,t):a.isBuffer(this.value)&&this.value.copy(e,t),t+=this.length)),e}},853:function(e,t,r){var i=t;i.Reporter=r(1293).b,i.DecoderBuffer=r(6483).C,i.EncoderBuffer=r(6483).R,i.Node=r(9374)},9374:function(e,t,r){var i=r(853).Reporter,n=r(853).EncoderBuffer,a=r(853).DecoderBuffer,o=r(3523),s=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],u=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(s),f=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function c(e,t){var r={};this._baseState=r,r.enc=e,r.parent=t||null,r.children=null,r.tag=null,r.args=null,r.reverseArgs=null,r.choice=null,r.optional=!1,r.any=!1,r.obj=!1,r.use=null,r.useDecoder=null,r.key=null,r.default=null,r.explicit=null,r.implicit=null,r.contains=null,r.parent||(r.children=[],this._wrap())}e.exports=c;var d=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];c.prototype.clone=function(){var e=this._baseState,t={};d.forEach(function(r){t[r]=e[r]});var r=new this.constructor(t.parent);return r._baseState=t,r},c.prototype._wrap=function(){var e=this._baseState;u.forEach(function(t){this[t]=function(){var r=new this.constructor(this);return e.children.push(r),r[t].apply(r,arguments)}},this)},c.prototype._init=function(e){var t=this._baseState;o(null===t.parent),e.call(this),t.children=t.children.filter(function(e){return e._baseState.parent===this},this),o.equal(t.children.length,1,"Root node can have only one child")},c.prototype._useArgs=function(e){var t=this._baseState,r=e.filter(function(e){return e instanceof this.constructor},this);e=e.filter(function(e){return!(e instanceof this.constructor)},this),0!==r.length&&(o(null===t.children),t.children=r,r.forEach(function(e){e._baseState.parent=this},this)),0!==e.length&&(o(null===t.args),t.args=e,t.reverseArgs=e.map(function(e){if("object"!=typeof e||e.constructor!==Object)return e;var t={};return Object.keys(e).forEach(function(r){r==(0|r)&&(r|=0),t[e[r]]=r}),t}))},f.forEach(function(e){c.prototype[e]=function(){throw Error(e+" not implemented for encoding: "+this._baseState.enc)}}),s.forEach(function(e){c.prototype[e]=function(){var t=this._baseState,r=Array.prototype.slice.call(arguments);return o(null===t.tag),t.tag=e,this._useArgs(r),this}}),c.prototype.use=function(e){o(e);var t=this._baseState;return o(null===t.use),t.use=e,this},c.prototype.optional=function(){return this._baseState.optional=!0,this},c.prototype.def=function(e){var t=this._baseState;return o(null===t.default),t.default=e,t.optional=!0,this},c.prototype.explicit=function(e){var t=this._baseState;return o(null===t.explicit&&null===t.implicit),t.explicit=e,this},c.prototype.implicit=function(e){var t=this._baseState;return o(null===t.explicit&&null===t.implicit),t.implicit=e,this},c.prototype.obj=function(){var e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,0!==t.length&&this._useArgs(t),this},c.prototype.key=function(e){var t=this._baseState;return o(null===t.key),t.key=e,this},c.prototype.any=function(){return this._baseState.any=!0,this},c.prototype.choice=function(e){var t=this._baseState;return o(null===t.choice),t.choice=e,this._useArgs(Object.keys(e).map(function(t){return e[t]})),this},c.prototype.contains=function(e){var t=this._baseState;return o(null===t.use),t.contains=e,this},c.prototype._decode=function(e,t){var r,i=this._baseState;if(null===i.parent)return e.wrapResult(i.children[0]._decode(e,t));var n=i.default,o=!0,s=null;if(null!==i.key&&(s=e.enterKey(i.key)),i.optional){var u=null;if(null!==i.explicit?u=i.explicit:null!==i.implicit?u=i.implicit:null!==i.tag&&(u=i.tag),null!==u||i.any){if(o=this._peekTag(e,u,i.any),e.isError(o))return o}else{var f=e.save();try{null===i.choice?this._decodeGeneric(i.tag,e,t):this._decodeChoice(e,t),o=!0}catch(e){o=!1}e.restore(f)}}if(i.obj&&o&&(r=e.enterObject()),o){if(null!==i.explicit){var c=this._decodeTag(e,i.explicit);if(e.isError(c))return c;e=c}var d=e.offset;if(null===i.use&&null===i.choice){if(i.any)var f=e.save();var l=this._decodeTag(e,null!==i.implicit?i.implicit:i.tag,i.any);if(e.isError(l))return l;i.any?n=e.raw(f):e=l}if(t&&t.track&&null!==i.tag&&t.track(e.path(),d,e.length,"tagged"),t&&t.track&&null!==i.tag&&t.track(e.path(),e.offset,e.length,"content"),i.any||(n=null===i.choice?this._decodeGeneric(i.tag,e,t):this._decodeChoice(e,t)),e.isError(n))return n;if(i.any||null!==i.choice||null===i.children||i.children.forEach(function(r){r._decode(e,t)}),i.contains&&("octstr"===i.tag||"bitstr"===i.tag)){var h=new a(n);n=this._getUse(i.contains,e._reporterState.obj)._decode(h,t)}}return i.obj&&o&&(n=e.leaveObject(r)),null!==i.key&&(null!==n||!0===o)?e.leaveKey(s,i.key,n):null!==s&&e.exitKey(s),n},c.prototype._decodeGeneric=function(e,t,r){var i=this._baseState;if("seq"===e||"set"===e)return null;if("seqof"===e||"setof"===e)return this._decodeList(t,e,i.args[0],r);if(/str$/.test(e))return this._decodeStr(t,e,r);if("objid"===e&&i.args)return this._decodeObjid(t,i.args[0],i.args[1],r);if("objid"===e)return this._decodeObjid(t,null,null,r);if("gentime"===e||"utctime"===e)return this._decodeTime(t,e,r);else if("null_"===e)return this._decodeNull(t,r);else if("bool"===e)return this._decodeBool(t,r);else if("objDesc"===e)return this._decodeStr(t,e,r);else if("int"===e||"enum"===e)return this._decodeInt(t,i.args&&i.args[0],r);return null!==i.use?this._getUse(i.use,t._reporterState.obj)._decode(t,r):t.error("unknown tag: "+e)},c.prototype._getUse=function(e,t){var r=this._baseState;return r.useDecoder=this._use(e,t),o(null===r.useDecoder._baseState.parent),r.useDecoder=r.useDecoder._baseState.children[0],r.implicit!==r.useDecoder._baseState.implicit&&(r.useDecoder=r.useDecoder.clone(),r.useDecoder._baseState.implicit=r.implicit),r.useDecoder},c.prototype._decodeChoice=function(e,t){var r=this._baseState,i=null,n=!1;return(Object.keys(r.choice).some(function(a){var o=e.save(),s=r.choice[a];try{var u=s._decode(e,t);if(e.isError(u))return!1;i={type:a,value:u},n=!0}catch(t){return e.restore(o),!1}return!0},this),n)?i:e.error("Choice not matched")},c.prototype._createEncoderBuffer=function(e){return new n(e,this.reporter)},c.prototype._encode=function(e,t,r){var i=this._baseState;if(null===i.default||i.default!==e){var n=this._encodeValue(e,t,r);if(void 0!==n&&!this._skipDefault(n,t,r))return n}},c.prototype._encodeValue=function(e,t,r){var n,a=this._baseState;if(null===a.parent)return a.children[0]._encode(e,t||new i);var n=null;if(this.reporter=t,a.optional&&void 0===e)if(null===a.default)return;else e=a.default;var o=null,s=!1;if(a.any)n=this._createEncoderBuffer(e);else if(a.choice)n=this._encodeChoice(e,t);else if(a.contains)o=this._getUse(a.contains,r)._encode(e,t),s=!0;else if(a.children)o=a.children.map(function(r){if("null_"===r._baseState.tag)return r._encode(null,t,e);if(null===r._baseState.key)return t.error("Child should have a key");var i=t.enterKey(r._baseState.key);if("object"!=typeof e)return t.error("Child expected, but input is not object");var n=r._encode(e[r._baseState.key],t,e);return t.leaveKey(i),n},this).filter(function(e){return e}),o=this._createEncoderBuffer(o);else if("seqof"===a.tag||"setof"===a.tag){if(!(a.args&&1===a.args.length))return t.error("Too many args for : "+a.tag);if(!Array.isArray(e))return t.error("seqof/setof, but data is not Array");var u=this.clone();u._baseState.implicit=null,o=this._createEncoderBuffer(e.map(function(r){var i=this._baseState;return this._getUse(i.args[0],e)._encode(r,t)},u))}else null!==a.use?n=this._getUse(a.use,r)._encode(e,t):(o=this._encodePrimitive(a.tag,e),s=!0);if(!a.any&&null===a.choice){var f=null!==a.implicit?a.implicit:a.tag,c=null===a.implicit?"universal":"context";null===f?null===a.use&&t.error("Tag could be omitted only for .use()"):null===a.use&&(n=this._encodeComposite(f,s,c,o))}return null!==a.explicit&&(n=this._encodeComposite(a.explicit,!1,"context",n)),n},c.prototype._encodeChoice=function(e,t){var r=this._baseState,i=r.choice[e.type];return i||o(!1,e.type+" not found in "+JSON.stringify(Object.keys(r.choice))),i._encode(e.value,t)},c.prototype._encodePrimitive=function(e,t){var r=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if("objid"===e&&r.args)return this._encodeObjid(t,r.reverseArgs[0],r.args[1]);if("objid"===e)return this._encodeObjid(t,null,null);if("gentime"===e||"utctime"===e)return this._encodeTime(t,e);if("null_"===e)return this._encodeNull();else if("int"===e||"enum"===e)return this._encodeInt(t,r.args&&r.reverseArgs[0]);else if("bool"===e)return this._encodeBool(t);else if("objDesc"===e)return this._encodeStr(t,e);else throw Error("Unsupported tag: "+e)},c.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},c.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(e)}},1293:function(e,t,r){var i=r(3782);function n(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function a(e,t){this.path=e,this.rethrow(t)}t.b=n,n.prototype.isError=function(e){return e instanceof a},n.prototype.save=function(){var e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},n.prototype.restore=function(e){var t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},n.prototype.enterKey=function(e){return this._reporterState.path.push(e)},n.prototype.exitKey=function(e){var t=this._reporterState;t.path=t.path.slice(0,e-1)},n.prototype.leaveKey=function(e,t,r){var i=this._reporterState;this.exitKey(e),null!==i.obj&&(i.obj[t]=r)},n.prototype.path=function(){return this._reporterState.path.join("/")},n.prototype.enterObject=function(){var e=this._reporterState,t=e.obj;return e.obj={},t},n.prototype.leaveObject=function(e){var t=this._reporterState,r=t.obj;return t.obj=e,r},n.prototype.error=function(e){var t,r=this._reporterState,i=e instanceof a;if(t=i?e:new a(r.path.map(function(e){return"["+JSON.stringify(e)+"]"}).join(""),e.message||e,e.stack),!r.options.partial)throw t;return i||r.errors.push(t),t},n.prototype.wrapResult=function(e){var t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},i(a,Error),a.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,a),!this.stack)try{throw Error(this.message)}catch(e){this.stack=e.stack}return this}},9791:function(e,t,r){var i=r(7335);t.tagClass={0:"universal",1:"application",2:"context",3:"private"},t.tagClassByName=i._reverse(t.tagClass),t.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},t.tagByName=i._reverse(t.tag)},7335:function(e,t,r){var i=t;i._reverse=function(e){var t={};return Object.keys(e).forEach(function(r){(0|r)==r&&(r|=0),t[e[r]]=r}),t},i.der=r(9791)},2259:function(e,t,r){var i=r(3782),n=r(7160),a=n.base,o=n.bignum,s=n.constants.der;function u(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new f,this.tree._init(e.body)}function f(e){a.Node.call(this,"der",e)}function c(e,t){var r=e.readUInt8(t);if(e.isError(r))return r;var i=s.tagClass[r>>6],n=(32&r)==0;if((31&r)==31){var a=r;for(r=0;(128&a)==128;){if(a=e.readUInt8(t),e.isError(a))return a;r<<=7,r|=127&a}}else r&=31;var o=s.tag[r];return{cls:i,primitive:n,tag:r,tagStr:o}}function d(e,t,r){var i=e.readUInt8(r);if(e.isError(i))return i;if(!t&&128===i)return null;if((128&i)==0)return i;var n=127&i;if(n>4)return e.error("length octect is too long");i=0;for(var a=0;a<n;a++){i<<=8;var o=e.readUInt8(r);if(e.isError(o))return o;i|=o}return i}e.exports=u,u.prototype.decode=function(e,t){return e instanceof a.DecoderBuffer||(e=new a.DecoderBuffer(e,t)),this.tree._decode(e,t)},i(f,a.Node),f.prototype._peekTag=function(e,t,r){if(e.isEmpty())return!1;var i=e.save(),n=c(e,'Failed to peek tag: "'+t+'"');return e.isError(n)?n:(e.restore(i),n.tag===t||n.tagStr===t||n.tagStr+"of"===t||r)},f.prototype._decodeTag=function(e,t,r){var i=c(e,'Failed to decode tag of "'+t+'"');if(e.isError(i))return i;var n=d(e,i.primitive,'Failed to get length of "'+t+'"');if(e.isError(n))return n;if(!r&&i.tag!==t&&i.tagStr!==t&&i.tagStr+"of"!==t)return e.error('Failed to match tag: "'+t+'"');if(i.primitive||null!==n)return e.skip(n,'Failed to match body of: "'+t+'"');var a=e.save(),o=this._skipUntilEnd(e,'Failed to skip indefinite length body: "'+this.tag+'"');return e.isError(o)?o:(n=e.offset-a.offset,e.restore(a),e.skip(n,'Failed to match body of: "'+t+'"'))},f.prototype._skipUntilEnd=function(e,t){for(;;){var r,i=c(e,t);if(e.isError(i))return i;var n=d(e,i.primitive,t);if(e.isError(n))return n;if(r=i.primitive||null!==n?e.skip(n):this._skipUntilEnd(e,t),e.isError(r))return r;if("end"===i.tagStr)break}},f.prototype._decodeList=function(e,t,r,i){for(var n=[];!e.isEmpty();){var a=this._peekTag(e,"end");if(e.isError(a))return a;var o=r.decode(e,"der",i);if(e.isError(o)&&a)break;n.push(o)}return n},f.prototype._decodeStr=function(e,t){if("bitstr"===t){var r=e.readUInt8();return e.isError(r)?r:{unused:r,data:e.raw()}}if("bmpstr"===t){var i=e.raw();if(i.length%2==1)return e.error("Decoding of string type: bmpstr length mismatch");for(var n="",a=0;a<i.length/2;a++)n+=String.fromCharCode(i.readUInt16BE(2*a));return n}if("numstr"===t){var o=e.raw().toString("ascii");return this._isNumstr(o)?o:e.error("Decoding of string type: numstr unsupported characters")}if("octstr"===t)return e.raw();if("objDesc"===t)return e.raw();else if("printstr"===t){var s=e.raw().toString("ascii");return this._isPrintstr(s)?s:e.error("Decoding of string type: printstr unsupported characters")}else if(/str$/.test(t))return e.raw().toString();else return e.error("Decoding of string type: "+t+" unsupported")},f.prototype._decodeObjid=function(e,t,r){for(var i,n=[],a=0;!e.isEmpty();){var o=e.readUInt8();a<<=7,a|=127&o,(128&o)==0&&(n.push(a),a=0)}128&o&&n.push(a);var s=n[0]/40|0,u=n[0]%40;if(i=r?n:[s,u].concat(n.slice(1)),t){var f=t[i.join(" ")];void 0===f&&(f=t[i.join(".")]),void 0!==f&&(i=f)}return i},f.prototype._decodeTime=function(e,t){var r=e.raw().toString();if("gentime"===t)var i=0|r.slice(0,4),n=0|r.slice(4,6),a=0|r.slice(6,8),o=0|r.slice(8,10),s=0|r.slice(10,12),u=0|r.slice(12,14);else{if("utctime"!==t)return e.error("Decoding "+t+" time is not supported yet");var i=0|r.slice(0,2),n=0|r.slice(2,4),a=0|r.slice(4,6),o=0|r.slice(6,8),s=0|r.slice(8,10),u=0|r.slice(10,12);i=i<70?2e3+i:1900+i}return Date.UTC(i,n-1,a,o,s,u,0)},f.prototype._decodeNull=function(e){return null},f.prototype._decodeBool=function(e){var t=e.readUInt8();return e.isError(t)?t:0!==t},f.prototype._decodeInt=function(e,t){var r=new o(e.raw());return t&&(r=t[r.toString(10)]||r),r},f.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getDecoder("der").tree}},6701:function(e,t,r){var i=t;i.der=r(2259),i.pem=r(8527)},8527:function(e,t,r){var i=r(3782),n=r(4300).Buffer,a=r(2259);function o(e){a.call(this,e),this.enc="pem"}i(o,a),e.exports=o,o.prototype.decode=function(e,t){for(var r=e.toString().split(/[\r\n]+/g),i=t.label.toUpperCase(),o=/^-----(BEGIN|END) ([^-]+)-----$/,s=-1,u=-1,f=0;f<r.length;f++){var c=r[f].match(o);if(null!==c&&c[2]===i)if(-1===s){if("BEGIN"!==c[1])break;s=f}else{if("END"!==c[1])break;u=f;break}}if(-1===s||-1===u)throw Error("PEM section not found for: "+i);var d=r.slice(s+1,u).join("");d.replace(/[^a-z0-9\+\/=]+/gi,"");var l=new n(d,"base64");return a.prototype.decode.call(this,l,t)}},7804:function(e,t,r){var i=r(3782),n=r(4300).Buffer,a=r(7160),o=a.base,s=a.constants.der;function u(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new f,this.tree._init(e.body)}function f(e){o.Node.call(this,"der",e)}function c(e){return e<10?"0"+e:e}function d(e,t,r,i){var n;if("seqof"===e?e="seq":"setof"===e&&(e="set"),s.tagByName.hasOwnProperty(e))n=s.tagByName[e];else{if("number"!=typeof e||(0|e)!==e)return i.error("Unknown tag: "+e);n=e}return n>=31?i.error("Multi-octet tag encoding unsupported"):(t||(n|=32),n|=s.tagClassByName[r||"universal"]<<6)}e.exports=u,u.prototype.encode=function(e,t){return this.tree._encode(e,t).join()},i(f,o.Node),f.prototype._encodeComposite=function(e,t,r,i){var a=d(e,t,r,this.reporter);if(i.length<128){var o=new n(2);return o[0]=a,o[1]=i.length,this._createEncoderBuffer([o,i])}for(var s=1,u=i.length;u>=256;u>>=8)s++;var o=new n(2+s);o[0]=a,o[1]=128|s;for(var u=1+s,f=i.length;f>0;u--,f>>=8)o[u]=255&f;return this._createEncoderBuffer([o,i])},f.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){for(var r=new n(2*e.length),i=0;i<e.length;i++)r.writeUInt16BE(e.charCodeAt(i),2*i);return this._createEncoderBuffer(r)}if("numstr"===t)return this._isNumstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: numstr supports only digits and space");if("printstr"===t)return this._isPrintstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark");if(/str$/.test(t))return this._createEncoderBuffer(e);else if("objDesc"===t)return this._createEncoderBuffer(e);else return this.reporter.error("Encoding of string type: "+t+" unsupported")},f.prototype._encodeObjid=function(e,t,r){if("string"==typeof e){if(!t)return this.reporter.error("string objid given, but no values map found");if(!t.hasOwnProperty(e))return this.reporter.error("objid not found in values map");e=t[e].split(/[\s\.]+/g);for(var i=0;i<e.length;i++)e[i]|=0}else if(Array.isArray(e)){e=e.slice();for(var i=0;i<e.length;i++)e[i]|=0}if(!Array.isArray(e))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(e));if(!r){if(e[1]>=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}for(var a=0,i=0;i<e.length;i++){var o=e[i];for(a++;o>=128;o>>=7)a++}for(var s=new n(a),u=s.length-1,i=e.length-1;i>=0;i--){var o=e[i];for(s[u--]=127&o;(o>>=7)>0;)s[u--]=128|127&o}return this._createEncoderBuffer(s)},f.prototype._encodeTime=function(e,t){var r,i=new Date(e);return"gentime"===t?r=""+c(i.getFullYear())+c(i.getUTCMonth()+1)+c(i.getUTCDate())+c(i.getUTCHours())+c(i.getUTCMinutes())+c(i.getUTCSeconds())+"Z":"utctime"===t?r=""+c(i.getFullYear()%100)+c(i.getUTCMonth()+1)+c(i.getUTCDate())+c(i.getUTCHours())+c(i.getUTCMinutes())+c(i.getUTCSeconds())+"Z":this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(r,"octstr")},f.prototype._encodeNull=function(){return this._createEncoderBuffer("")},f.prototype._encodeInt=function(e,t){if("string"==typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!=typeof e&&!n.isBuffer(e)){var r=e.toArray();!e.sign&&128&r[0]&&r.unshift(0),e=new n(r)}if(n.isBuffer(e)){var i=e.length;0===e.length&&i++;var a=new n(i);return e.copy(a),0===e.length&&(a[0]=0),this._createEncoderBuffer(a)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);for(var i=1,o=e;o>=256;o>>=8)i++;for(var a=Array(i),o=a.length-1;o>=0;o--)a[o]=255&e,e>>=8;return 128&a[0]&&a.unshift(0),this._createEncoderBuffer(new n(a))},f.prototype._encodeBool=function(e){return this._createEncoderBuffer(255*!!e)},f.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},f.prototype._skipDefault=function(e,t,r){var i,n=this._baseState;if(null===n.default)return!1;var a=e.join();if(void 0===n.defaultBuffer&&(n.defaultBuffer=this._encodeValue(n.default,t,r).join()),a.length!==n.defaultBuffer.length)return!1;for(i=0;i<a.length;i++)if(a[i]!==n.defaultBuffer[i])return!1;return!0}},3418:function(e,t,r){var i=t;i.der=r(7804),i.pem=r(1564)},1564:function(e,t,r){var i=r(3782),n=r(7804);function a(e){n.call(this,e),this.enc="pem"}i(a,n),e.exports=a,a.prototype.encode=function(e,t){for(var r=n.prototype.encode.call(this,e).toString("base64"),i=["-----BEGIN "+t.label+"-----"],a=0;a<r.length;a+=64)i.push(r.slice(a,a+64));return i.push("-----END "+t.label+"-----"),i.join("\n")}},711:function(e,t,r){!function(e,t){"use strict";function i(e,t){if(!e)throw Error(t||"Assertion failed")}function n(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function a(e,t,r){if(a.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&(("le"===t||"be"===t)&&(r=t,t=10),this._init(e||0,t||10,r||"be"))}"object"==typeof e?e.exports=a:t.BN=a,a.BN=a,a.wordSize=26;try{u=r(4300).Buffer}catch(e){}function o(e,t,r){for(var i=0,n=Math.min(e.length,r),a=t;a<n;a++){var o=e.charCodeAt(a)-48;i<<=4,o>=49&&o<=54?i|=o-49+10:o>=17&&o<=22?i|=o-17+10:i|=15&o}return i}function s(e,t,r,i){for(var n=0,a=Math.min(e.length,r),o=t;o<a;o++){var s=e.charCodeAt(o)-48;n*=i,s>=49?n+=s-49+10:s>=17?n+=s-17+10:n+=s}return n}a.isBN=function(e){return e instanceof a||null!==e&&"object"==typeof e&&e.constructor.wordSize===a.wordSize&&Array.isArray(e.words)},a.max=function(e,t){return e.cmp(t)>0?e:t},a.min=function(e,t){return 0>e.cmp(t)?e:t},a.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),i(t===(0|t)&&t>=2&&t<=36);var n=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&n++,16===t?this._parseHex(e,n):this._parseBase(e,t,n),"-"===e[0]&&(this.negative=1),this.strip(),"le"===r&&this._initArray(this.toArray(),t,r)},a.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<0x4000000?(this.words=[0x3ffffff&e],this.length=1):e<0x10000000000000?(this.words=[0x3ffffff&e,e/0x4000000&0x3ffffff],this.length=2):(i(e<0x20000000000000),this.words=[0x3ffffff&e,e/0x4000000&0x3ffffff,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},a.prototype._initArray=function(e,t,r){if(i("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=Array(this.length);for(var n,a,o=0;o<this.length;o++)this.words[o]=0;var s=0;if("be"===r)for(o=e.length-1,n=0;o>=0;o-=3)a=e[o]|e[o-1]<<8|e[o-2]<<16,this.words[n]|=a<<s&0x3ffffff,this.words[n+1]=a>>>26-s&0x3ffffff,(s+=24)>=26&&(s-=26,n++);else if("le"===r)for(o=0,n=0;o<e.length;o+=3)a=e[o]|e[o+1]<<8|e[o+2]<<16,this.words[n]|=a<<s&0x3ffffff,this.words[n+1]=a>>>26-s&0x3ffffff,(s+=24)>=26&&(s-=26,n++);return this.strip()},a.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=Array(this.length);for(var r,i,n=0;n<this.length;n++)this.words[n]=0;var a=0;for(n=e.length-6,r=0;n>=t;n-=6)i=o(e,n,n+6),this.words[r]|=i<<a&0x3ffffff,this.words[r+1]|=i>>>26-a&4194303,(a+=24)>=26&&(a-=26,r++);n+6!==t&&(i=o(e,t,n+6),this.words[r]|=i<<a&0x3ffffff,this.words[r+1]|=i>>>26-a&4194303),this.strip()},a.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var i=0,n=1;n<=0x3ffffff;n*=t)i++;i--,n=n/t|0;for(var a=e.length-r,o=a%i,u=Math.min(a,a-o)+r,f=0,c=r;c<u;c+=i)f=s(e,c,c+i,t),this.imuln(n),this.words[0]+f<0x4000000?this.words[0]+=f:this._iaddn(f);if(0!==o){var d=1;for(f=s(e,c,e.length,t),c=0;c<o;c++)d*=t;this.imuln(d),this.words[0]+f<0x4000000?this.words[0]+=f:this._iaddn(f)}},a.prototype.copy=function(e){e.words=Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},a.prototype.clone=function(){var e=new a(null);return this.copy(e),e},a.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},a.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var u,f=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],c=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,0x2000000,0x290d741,0x1000000,0x2e90edd,0x39aa400,0x267bf47,0x1000000,0x290d741,1e7,0x12959c3,0x222c000,0x3bd7765,7529536,0xadcea1,0x1000000,0x1704f61,0x206fc40,0x2cddcf9,64e6,4084101,5153632,6436343,7962624,9765625,0xb54ba0,0xdaf26b,0x1069c00,0x138f9ad,243e5,0x1b4d89f,0x2000000,0x25528a1,0x2b54a20,0x3216b93,0x39aa400];function l(e){for(var t=Array(e.bitLength()),r=0;r<t.length;r++){var i=r/26|0,n=r%26;t[r]=(e.words[i]&1<<n)>>>n}return t}function h(e,t,r){r.negative=t.negative^e.negative;var i=e.length+t.length|0;r.length=i,i=i-1|0;var n=0|e.words[0],a=0|t.words[0],o=n*a,s=0x3ffffff&o,u=o/0x4000000|0;r.words[0]=s;for(var f=1;f<i;f++){for(var c=u>>>26,d=0x3ffffff&u,l=Math.min(f,t.length-1),h=Math.max(0,f-e.length+1);h<=l;h++){var p=f-h|0;c+=(o=(n=0|e.words[p])*(a=0|t.words[h])+d)/0x4000000|0,d=0x3ffffff&o}r.words[f]=0|d,u=0|c}return 0!==u?r.words[f]=0|u:r.length--,r.strip()}a.prototype.toString=function(e,t){if(t=0|t||1,16===(e=e||10)||"hex"===e){for(var r="",n=0,a=0,o=0;o<this.length;o++){var s=this.words[o],u=((s<<n|a)&0xffffff).toString(16);r=0!=(a=s>>>24-n&0xffffff)||o!==this.length-1?f[6-u.length]+u+r:u+r,(n+=2)>=26&&(n-=26,o--)}for(0!==a&&(r=a.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var l=c[e],h=d[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(h).toString(e);r=(p=p.idivn(h)).isZero()?m+r:f[l-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}i(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=0x4000000*this.words[1]:3===this.length&&1===this.words[2]?e+=0x10000000000000+0x4000000*this.words[1]:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(e,t){return i(void 0!==u),this.toArrayLike(u,e,t)},a.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},a.prototype.toArrayLike=function(e,t,r){var n,a,o=this.byteLength(),s=r||Math.max(1,o);i(o<=s,"byte array longer than desired length"),i(s>0,"Requested array length <= 0"),this.strip();var u="le"===t,f=new e(s),c=this.clone();if(u){for(a=0;!c.isZero();a++)n=c.andln(255),c.iushrn(8),f[a]=n;for(;a<s;a++)f[a]=0}else{for(a=0;a<s-o;a++)f[a]=0;for(a=0;!c.isZero();a++)n=c.andln(255),c.iushrn(8),f[s-a-1]=n}return f},Math.clz32?a.prototype._countBits=function(e){return 32-Math.clz32(e)}:a.prototype._countBits=function(e){var t=e,r=0;return t>=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},a.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return(8191&t)==0&&(r+=13,t>>>=13),(127&t)==0&&(r+=7,t>>>=7),(15&t)==0&&(r+=4,t>>>=4),(3&t)==0&&(r+=2,t>>>=2),(1&t)==0&&r++,r},a.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return(this.length-1)*26+t},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var r=this._zeroBits(this.words[t]);if(e+=r,26!==r)break}return e},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},a.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},a.prototype.isNeg=function(){return 0!==this.negative},a.prototype.neg=function(){return this.clone().ineg()},a.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},a.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.strip()},a.prototype.ior=function(e){return i((this.negative|e.negative)==0),this.iuor(e)},a.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},a.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},a.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;r<t.length;r++)this.words[r]=this.words[r]&e.words[r];return this.length=t.length,this.strip()},a.prototype.iand=function(e){return i((this.negative|e.negative)==0),this.iuand(e)},a.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},a.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},a.prototype.iuxor=function(e){this.length>e.length?(t=this,r=e):(t=e,r=this);for(var t,r,i=0;i<r.length;i++)this.words[i]=t.words[i]^r.words[i];if(this!==t)for(;i<t.length;i++)this.words[i]=t.words[i];return this.length=t.length,this.strip()},a.prototype.ixor=function(e){return i((this.negative|e.negative)==0),this.iuxor(e)},a.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},a.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},a.prototype.inotn=function(e){i("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var n=0;n<t;n++)this.words[n]=0x3ffffff&~this.words[n];return r>0&&(this.words[n]=~this.words[n]&0x3ffffff>>26-r),this.strip()},a.prototype.notn=function(e){return this.clone().inotn(e)},a.prototype.setn=function(e,t){i("number"==typeof e&&e>=0);var r=e/26|0,n=e%26;return this._expand(r+1),t?this.words[r]=this.words[r]|1<<n:this.words[r]=this.words[r]&~(1<<n),this.strip()},a.prototype.iadd=function(e){if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(r=this,i=e):(r=e,i=this);for(var t,r,i,n=0,a=0;a<i.length;a++)t=(0|r.words[a])+(0|i.words[a])+n,this.words[a]=0x3ffffff&t,n=t>>>26;for(;0!==n&&a<r.length;a++)t=(0|r.words[a])+n,this.words[a]=0x3ffffff&t,n=t>>>26;if(this.length=r.length,0!==n)this.words[this.length]=n,this.length++;else if(r!==this)for(;a<r.length;a++)this.words[a]=r.words[a];return this},a.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},a.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t,r,i=this.iadd(e);return e.negative=1,i._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n=this.cmp(e);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(t=this,r=e):(t=e,r=this);for(var a=0,o=0;o<r.length;o++)a=(i=(0|t.words[o])-(0|r.words[o])+a)>>26,this.words[o]=0x3ffffff&i;for(;0!==a&&o<t.length;o++)a=(i=(0|t.words[o])+a)>>26,this.words[o]=0x3ffffff&i;if(0===a&&o<t.length&&t!==this)for(;o<t.length;o++)this.words[o]=t.words[o];return this.length=Math.max(this.length,o),t!==this&&(this.negative=1),this.strip()},a.prototype.sub=function(e){return this.clone().isub(e)};var p=function(e,t,r){var i,n,a,o=e.words,s=t.words,u=r.words,f=0,c=0|o[0],d=8191&c,l=c>>>13,h=0|o[1],p=8191&h,m=h>>>13,b=0|o[2],g=8191&b,v=b>>>13,y=0|o[3],_=8191&y,x=y>>>13,w=0|o[4],S=8191&w,k=w>>>13,$=0|o[5],I=8191&$,M=$>>>13,E=0|o[6],A=8191&E,O=E>>>13,N=0|o[7],j=8191&N,z=N>>>13,U=0|o[8],P=8191&U,T=U>>>13,R=0|o[9],D=8191&R,B=R>>>13,C=0|s[0],Z=8191&C,L=C>>>13,q=0|s[1],F=8191&q,J=q>>>13,W=0|s[2],K=8191&W,V=W>>>13,G=0|s[3],H=8191&G,X=G>>>13,Y=0|s[4],Q=8191&Y,ee=Y>>>13,et=0|s[5],er=8191&et,ei=et>>>13,en=0|s[6],ea=8191&en,eo=en>>>13,es=0|s[7],eu=8191&es,ef=es>>>13,ec=0|s[8],ed=8191&ec,el=ec>>>13,eh=0|s[9],ep=8191&eh,em=eh>>>13;r.negative=e.negative^t.negative,r.length=19,i=Math.imul(d,Z);var eb=(f+i|0)+((8191&(n=(n=Math.imul(d,L))+Math.imul(l,Z)|0))<<13)|0;f=((a=Math.imul(l,L))+(n>>>13)|0)+(eb>>>26)|0,eb&=0x3ffffff,i=Math.imul(p,Z),n=(n=Math.imul(p,L))+Math.imul(m,Z)|0,a=Math.imul(m,L),i=i+Math.imul(d,F)|0;var eg=(f+i|0)+((8191&(n=(n=n+Math.imul(d,J)|0)+Math.imul(l,F)|0))<<13)|0;f=((a=a+Math.imul(l,J)|0)+(n>>>13)|0)+(eg>>>26)|0,eg&=0x3ffffff,i=Math.imul(g,Z),n=(n=Math.imul(g,L))+Math.imul(v,Z)|0,a=Math.imul(v,L),i=i+Math.imul(p,F)|0,n=(n=n+Math.imul(p,J)|0)+Math.imul(m,F)|0,a=a+Math.imul(m,J)|0,i=i+Math.imul(d,K)|0;var ev=(f+i|0)+((8191&(n=(n=n+Math.imul(d,V)|0)+Math.imul(l,K)|0))<<13)|0;f=((a=a+Math.imul(l,V)|0)+(n>>>13)|0)+(ev>>>26)|0,ev&=0x3ffffff,i=Math.imul(_,Z),n=(n=Math.imul(_,L))+Math.imul(x,Z)|0,a=Math.imul(x,L),i=i+Math.imul(g,F)|0,n=(n=n+Math.imul(g,J)|0)+Math.imul(v,F)|0,a=a+Math.imul(v,J)|0,i=i+Math.imul(p,K)|0,n=(n=n+Math.imul(p,V)|0)+Math.imul(m,K)|0,a=a+Math.imul(m,V)|0,i=i+Math.imul(d,H)|0;var ey=(f+i|0)+((8191&(n=(n=n+Math.imul(d,X)|0)+Math.imul(l,H)|0))<<13)|0;f=((a=a+Math.imul(l,X)|0)+(n>>>13)|0)+(ey>>>26)|0,ey&=0x3ffffff,i=Math.imul(S,Z),n=(n=Math.imul(S,L))+Math.imul(k,Z)|0,a=Math.imul(k,L),i=i+Math.imul(_,F)|0,n=(n=n+Math.imul(_,J)|0)+Math.imul(x,F)|0,a=a+Math.imul(x,J)|0,i=i+Math.imul(g,K)|0,n=(n=n+Math.imul(g,V)|0)+Math.imul(v,K)|0,a=a+Math.imul(v,V)|0,i=i+Math.imul(p,H)|0,n=(n=n+Math.imul(p,X)|0)+Math.imul(m,H)|0,a=a+Math.imul(m,X)|0,i=i+Math.imul(d,Q)|0;var e_=(f+i|0)+((8191&(n=(n=n+Math.imul(d,ee)|0)+Math.imul(l,Q)|0))<<13)|0;f=((a=a+Math.imul(l,ee)|0)+(n>>>13)|0)+(e_>>>26)|0,e_&=0x3ffffff,i=Math.imul(I,Z),n=(n=Math.imul(I,L))+Math.imul(M,Z)|0,a=Math.imul(M,L),i=i+Math.imul(S,F)|0,n=(n=n+Math.imul(S,J)|0)+Math.imul(k,F)|0,a=a+Math.imul(k,J)|0,i=i+Math.imul(_,K)|0,n=(n=n+Math.imul(_,V)|0)+Math.imul(x,K)|0,a=a+Math.imul(x,V)|0,i=i+Math.imul(g,H)|0,n=(n=n+Math.imul(g,X)|0)+Math.imul(v,H)|0,a=a+Math.imul(v,X)|0,i=i+Math.imul(p,Q)|0,n=(n=n+Math.imul(p,ee)|0)+Math.imul(m,Q)|0,a=a+Math.imul(m,ee)|0,i=i+Math.imul(d,er)|0;var ex=(f+i|0)+((8191&(n=(n=n+Math.imul(d,ei)|0)+Math.imul(l,er)|0))<<13)|0;f=((a=a+Math.imul(l,ei)|0)+(n>>>13)|0)+(ex>>>26)|0,ex&=0x3ffffff,i=Math.imul(A,Z),n=(n=Math.imul(A,L))+Math.imul(O,Z)|0,a=Math.imul(O,L),i=i+Math.imul(I,F)|0,n=(n=n+Math.imul(I,J)|0)+Math.imul(M,F)|0,a=a+Math.imul(M,J)|0,i=i+Math.imul(S,K)|0,n=(n=n+Math.imul(S,V)|0)+Math.imul(k,K)|0,a=a+Math.imul(k,V)|0,i=i+Math.imul(_,H)|0,n=(n=n+Math.imul(_,X)|0)+Math.imul(x,H)|0,a=a+Math.imul(x,X)|0,i=i+Math.imul(g,Q)|0,n=(n=n+Math.imul(g,ee)|0)+Math.imul(v,Q)|0,a=a+Math.imul(v,ee)|0,i=i+Math.imul(p,er)|0,n=(n=n+Math.imul(p,ei)|0)+Math.imul(m,er)|0,a=a+Math.imul(m,ei)|0,i=i+Math.imul(d,ea)|0;var ew=(f+i|0)+((8191&(n=(n=n+Math.imul(d,eo)|0)+Math.imul(l,ea)|0))<<13)|0;f=((a=a+Math.imul(l,eo)|0)+(n>>>13)|0)+(ew>>>26)|0,ew&=0x3ffffff,i=Math.imul(j,Z),n=(n=Math.imul(j,L))+Math.imul(z,Z)|0,a=Math.imul(z,L),i=i+Math.imul(A,F)|0,n=(n=n+Math.imul(A,J)|0)+Math.imul(O,F)|0,a=a+Math.imul(O,J)|0,i=i+Math.imul(I,K)|0,n=(n=n+Math.imul(I,V)|0)+Math.imul(M,K)|0,a=a+Math.imul(M,V)|0,i=i+Math.imul(S,H)|0,n=(n=n+Math.imul(S,X)|0)+Math.imul(k,H)|0,a=a+Math.imul(k,X)|0,i=i+Math.imul(_,Q)|0,n=(n=n+Math.imul(_,ee)|0)+Math.imul(x,Q)|0,a=a+Math.imul(x,ee)|0,i=i+Math.imul(g,er)|0,n=(n=n+Math.imul(g,ei)|0)+Math.imul(v,er)|0,a=a+Math.imul(v,ei)|0,i=i+Math.imul(p,ea)|0,n=(n=n+Math.imul(p,eo)|0)+Math.imul(m,ea)|0,a=a+Math.imul(m,eo)|0,i=i+Math.imul(d,eu)|0;var eS=(f+i|0)+((8191&(n=(n=n+Math.imul(d,ef)|0)+Math.imul(l,eu)|0))<<13)|0;f=((a=a+Math.imul(l,ef)|0)+(n>>>13)|0)+(eS>>>26)|0,eS&=0x3ffffff,i=Math.imul(P,Z),n=(n=Math.imul(P,L))+Math.imul(T,Z)|0,a=Math.imul(T,L),i=i+Math.imul(j,F)|0,n=(n=n+Math.imul(j,J)|0)+Math.imul(z,F)|0,a=a+Math.imul(z,J)|0,i=i+Math.imul(A,K)|0,n=(n=n+Math.imul(A,V)|0)+Math.imul(O,K)|0,a=a+Math.imul(O,V)|0,i=i+Math.imul(I,H)|0,n=(n=n+Math.imul(I,X)|0)+Math.imul(M,H)|0,a=a+Math.imul(M,X)|0,i=i+Math.imul(S,Q)|0,n=(n=n+Math.imul(S,ee)|0)+Math.imul(k,Q)|0,a=a+Math.imul(k,ee)|0,i=i+Math.imul(_,er)|0,n=(n=n+Math.imul(_,ei)|0)+Math.imul(x,er)|0,a=a+Math.imul(x,ei)|0,i=i+Math.imul(g,ea)|0,n=(n=n+Math.imul(g,eo)|0)+Math.imul(v,ea)|0,a=a+Math.imul(v,eo)|0,i=i+Math.imul(p,eu)|0,n=(n=n+Math.imul(p,ef)|0)+Math.imul(m,eu)|0,a=a+Math.imul(m,ef)|0,i=i+Math.imul(d,ed)|0;var ek=(f+i|0)+((8191&(n=(n=n+Math.imul(d,el)|0)+Math.imul(l,ed)|0))<<13)|0;f=((a=a+Math.imul(l,el)|0)+(n>>>13)|0)+(ek>>>26)|0,ek&=0x3ffffff,i=Math.imul(D,Z),n=(n=Math.imul(D,L))+Math.imul(B,Z)|0,a=Math.imul(B,L),i=i+Math.imul(P,F)|0,n=(n=n+Math.imul(P,J)|0)+Math.imul(T,F)|0,a=a+Math.imul(T,J)|0,i=i+Math.imul(j,K)|0,n=(n=n+Math.imul(j,V)|0)+Math.imul(z,K)|0,a=a+Math.imul(z,V)|0,i=i+Math.imul(A,H)|0,n=(n=n+Math.imul(A,X)|0)+Math.imul(O,H)|0,a=a+Math.imul(O,X)|0,i=i+Math.imul(I,Q)|0,n=(n=n+Math.imul(I,ee)|0)+Math.imul(M,Q)|0,a=a+Math.imul(M,ee)|0,i=i+Math.imul(S,er)|0,n=(n=n+Math.imul(S,ei)|0)+Math.imul(k,er)|0,a=a+Math.imul(k,ei)|0,i=i+Math.imul(_,ea)|0,n=(n=n+Math.imul(_,eo)|0)+Math.imul(x,ea)|0,a=a+Math.imul(x,eo)|0,i=i+Math.imul(g,eu)|0,n=(n=n+Math.imul(g,ef)|0)+Math.imul(v,eu)|0,a=a+Math.imul(v,ef)|0,i=i+Math.imul(p,ed)|0,n=(n=n+Math.imul(p,el)|0)+Math.imul(m,ed)|0,a=a+Math.imul(m,el)|0,i=i+Math.imul(d,ep)|0;var e$=(f+i|0)+((8191&(n=(n=n+Math.imul(d,em)|0)+Math.imul(l,ep)|0))<<13)|0;f=((a=a+Math.imul(l,em)|0)+(n>>>13)|0)+(e$>>>26)|0,e$&=0x3ffffff,i=Math.imul(D,F),n=(n=Math.imul(D,J))+Math.imul(B,F)|0,a=Math.imul(B,J),i=i+Math.imul(P,K)|0,n=(n=n+Math.imul(P,V)|0)+Math.imul(T,K)|0,a=a+Math.imul(T,V)|0,i=i+Math.imul(j,H)|0,n=(n=n+Math.imul(j,X)|0)+Math.imul(z,H)|0,a=a+Math.imul(z,X)|0,i=i+Math.imul(A,Q)|0,n=(n=n+Math.imul(A,ee)|0)+Math.imul(O,Q)|0,a=a+Math.imul(O,ee)|0,i=i+Math.imul(I,er)|0,n=(n=n+Math.imul(I,ei)|0)+Math.imul(M,er)|0,a=a+Math.imul(M,ei)|0,i=i+Math.imul(S,ea)|0,n=(n=n+Math.imul(S,eo)|0)+Math.imul(k,ea)|0,a=a+Math.imul(k,eo)|0,i=i+Math.imul(_,eu)|0,n=(n=n+Math.imul(_,ef)|0)+Math.imul(x,eu)|0,a=a+Math.imul(x,ef)|0,i=i+Math.imul(g,ed)|0,n=(n=n+Math.imul(g,el)|0)+Math.imul(v,ed)|0,a=a+Math.imul(v,el)|0,i=i+Math.imul(p,ep)|0;var eI=(f+i|0)+((8191&(n=(n=n+Math.imul(p,em)|0)+Math.imul(m,ep)|0))<<13)|0;f=((a=a+Math.imul(m,em)|0)+(n>>>13)|0)+(eI>>>26)|0,eI&=0x3ffffff,i=Math.imul(D,K),n=(n=Math.imul(D,V))+Math.imul(B,K)|0,a=Math.imul(B,V),i=i+Math.imul(P,H)|0,n=(n=n+Math.imul(P,X)|0)+Math.imul(T,H)|0,a=a+Math.imul(T,X)|0,i=i+Math.imul(j,Q)|0,n=(n=n+Math.imul(j,ee)|0)+Math.imul(z,Q)|0,a=a+Math.imul(z,ee)|0,i=i+Math.imul(A,er)|0,n=(n=n+Math.imul(A,ei)|0)+Math.imul(O,er)|0,a=a+Math.imul(O,ei)|0,i=i+Math.imul(I,ea)|0,n=(n=n+Math.imul(I,eo)|0)+Math.imul(M,ea)|0,a=a+Math.imul(M,eo)|0,i=i+Math.imul(S,eu)|0,n=(n=n+Math.imul(S,ef)|0)+Math.imul(k,eu)|0,a=a+Math.imul(k,ef)|0,i=i+Math.imul(_,ed)|0,n=(n=n+Math.imul(_,el)|0)+Math.imul(x,ed)|0,a=a+Math.imul(x,el)|0,i=i+Math.imul(g,ep)|0;var eM=(f+i|0)+((8191&(n=(n=n+Math.imul(g,em)|0)+Math.imul(v,ep)|0))<<13)|0;f=((a=a+Math.imul(v,em)|0)+(n>>>13)|0)+(eM>>>26)|0,eM&=0x3ffffff,i=Math.imul(D,H),n=(n=Math.imul(D,X))+Math.imul(B,H)|0,a=Math.imul(B,X),i=i+Math.imul(P,Q)|0,n=(n=n+Math.imul(P,ee)|0)+Math.imul(T,Q)|0,a=a+Math.imul(T,ee)|0,i=i+Math.imul(j,er)|0,n=(n=n+Math.imul(j,ei)|0)+Math.imul(z,er)|0,a=a+Math.imul(z,ei)|0,i=i+Math.imul(A,ea)|0,n=(n=n+Math.imul(A,eo)|0)+Math.imul(O,ea)|0,a=a+Math.imul(O,eo)|0,i=i+Math.imul(I,eu)|0,n=(n=n+Math.imul(I,ef)|0)+Math.imul(M,eu)|0,a=a+Math.imul(M,ef)|0,i=i+Math.imul(S,ed)|0,n=(n=n+Math.imul(S,el)|0)+Math.imul(k,ed)|0,a=a+Math.imul(k,el)|0,i=i+Math.imul(_,ep)|0;var eE=(f+i|0)+((8191&(n=(n=n+Math.imul(_,em)|0)+Math.imul(x,ep)|0))<<13)|0;f=((a=a+Math.imul(x,em)|0)+(n>>>13)|0)+(eE>>>26)|0,eE&=0x3ffffff,i=Math.imul(D,Q),n=(n=Math.imul(D,ee))+Math.imul(B,Q)|0,a=Math.imul(B,ee),i=i+Math.imul(P,er)|0,n=(n=n+Math.imul(P,ei)|0)+Math.imul(T,er)|0,a=a+Math.imul(T,ei)|0,i=i+Math.imul(j,ea)|0,n=(n=n+Math.imul(j,eo)|0)+Math.imul(z,ea)|0,a=a+Math.imul(z,eo)|0,i=i+Math.imul(A,eu)|0,n=(n=n+Math.imul(A,ef)|0)+Math.imul(O,eu)|0,a=a+Math.imul(O,ef)|0,i=i+Math.imul(I,ed)|0,n=(n=n+Math.imul(I,el)|0)+Math.imul(M,ed)|0,a=a+Math.imul(M,el)|0,i=i+Math.imul(S,ep)|0;var eA=(f+i|0)+((8191&(n=(n=n+Math.imul(S,em)|0)+Math.imul(k,ep)|0))<<13)|0;f=((a=a+Math.imul(k,em)|0)+(n>>>13)|0)+(eA>>>26)|0,eA&=0x3ffffff,i=Math.imul(D,er),n=(n=Math.imul(D,ei))+Math.imul(B,er)|0,a=Math.imul(B,ei),i=i+Math.imul(P,ea)|0,n=(n=n+Math.imul(P,eo)|0)+Math.imul(T,ea)|0,a=a+Math.imul(T,eo)|0,i=i+Math.imul(j,eu)|0,n=(n=n+Math.imul(j,ef)|0)+Math.imul(z,eu)|0,a=a+Math.imul(z,ef)|0,i=i+Math.imul(A,ed)|0,n=(n=n+Math.imul(A,el)|0)+Math.imul(O,ed)|0,a=a+Math.imul(O,el)|0,i=i+Math.imul(I,ep)|0;var eO=(f+i|0)+((8191&(n=(n=n+Math.imul(I,em)|0)+Math.imul(M,ep)|0))<<13)|0;f=((a=a+Math.imul(M,em)|0)+(n>>>13)|0)+(eO>>>26)|0,eO&=0x3ffffff,i=Math.imul(D,ea),n=(n=Math.imul(D,eo))+Math.imul(B,ea)|0,a=Math.imul(B,eo),i=i+Math.imul(P,eu)|0,n=(n=n+Math.imul(P,ef)|0)+Math.imul(T,eu)|0,a=a+Math.imul(T,ef)|0,i=i+Math.imul(j,ed)|0,n=(n=n+Math.imul(j,el)|0)+Math.imul(z,ed)|0,a=a+Math.imul(z,el)|0,i=i+Math.imul(A,ep)|0;var eN=(f+i|0)+((8191&(n=(n=n+Math.imul(A,em)|0)+Math.imul(O,ep)|0))<<13)|0;f=((a=a+Math.imul(O,em)|0)+(n>>>13)|0)+(eN>>>26)|0,eN&=0x3ffffff,i=Math.imul(D,eu),n=(n=Math.imul(D,ef))+Math.imul(B,eu)|0,a=Math.imul(B,ef),i=i+Math.imul(P,ed)|0,n=(n=n+Math.imul(P,el)|0)+Math.imul(T,ed)|0,a=a+Math.imul(T,el)|0,i=i+Math.imul(j,ep)|0;var ej=(f+i|0)+((8191&(n=(n=n+Math.imul(j,em)|0)+Math.imul(z,ep)|0))<<13)|0;f=((a=a+Math.imul(z,em)|0)+(n>>>13)|0)+(ej>>>26)|0,ej&=0x3ffffff,i=Math.imul(D,ed),n=(n=Math.imul(D,el))+Math.imul(B,ed)|0,a=Math.imul(B,el),i=i+Math.imul(P,ep)|0;var ez=(f+i|0)+((8191&(n=(n=n+Math.imul(P,em)|0)+Math.imul(T,ep)|0))<<13)|0;f=((a=a+Math.imul(T,em)|0)+(n>>>13)|0)+(ez>>>26)|0,ez&=0x3ffffff,i=Math.imul(D,ep);var eU=(f+i|0)+((8191&(n=(n=Math.imul(D,em))+Math.imul(B,ep)|0))<<13)|0;return f=((a=Math.imul(B,em))+(n>>>13)|0)+(eU>>>26)|0,eU&=0x3ffffff,u[0]=eb,u[1]=eg,u[2]=ev,u[3]=ey,u[4]=e_,u[5]=ex,u[6]=ew,u[7]=eS,u[8]=ek,u[9]=e$,u[10]=eI,u[11]=eM,u[12]=eE,u[13]=eA,u[14]=eO,u[15]=eN,u[16]=ej,u[17]=ez,u[18]=eU,0!==f&&(u[19]=f,r.length++),r};function m(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var i=0,n=0,a=0;a<r.length-1;a++){var o=n;n=0;for(var s=0x3ffffff&i,u=Math.min(a,t.length-1),f=Math.max(0,a-e.length+1);f<=u;f++){var c=a-f,d=(0|e.words[c])*(0|t.words[f]),l=0x3ffffff&d;o=o+(d/0x4000000|0)|0,s=0x3ffffff&(l=l+s|0),n+=(o=o+(l>>>26)|0)>>>26,o&=0x3ffffff}r.words[a]=s,i=o,o=n}return 0!==i?r.words[a]=i:r.length--,r.strip()}function b(e,t,r){return(new g).mulp(e,t,r)}function g(e,t){this.x=e,this.y=t}Math.imul||(p=h),a.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?p(this,e,t):r<63?h(this,e,t):r<1024?m(this,e,t):b(this,e,t)},g.prototype.makeRBT=function(e){for(var t=Array(e),r=a.prototype._countBits(e)-1,i=0;i<e;i++)t[i]=this.revBin(i,r,e);return t},g.prototype.revBin=function(e,t,r){if(0===e||e===r-1)return e;for(var i=0,n=0;n<t;n++)i|=(1&e)<<t-n-1,e>>=1;return i},g.prototype.permute=function(e,t,r,i,n,a){for(var o=0;o<a;o++)i[o]=t[e[o]],n[o]=r[e[o]]},g.prototype.transform=function(e,t,r,i,n,a){this.permute(a,e,t,r,i,n);for(var o=1;o<n;o<<=1)for(var s=o<<1,u=Math.cos(2*Math.PI/s),f=Math.sin(2*Math.PI/s),c=0;c<n;c+=s)for(var d=u,l=f,h=0;h<o;h++){var p=r[c+h],m=i[c+h],b=r[c+h+o],g=i[c+h+o],v=d*b-l*g;g=d*g+l*b,b=v,r[c+h]=p+b,i[c+h]=m+g,r[c+h+o]=p-b,i[c+h+o]=m-g,h!==s&&(v=u*d-f*l,l=u*l+f*d,d=v)}},g.prototype.guessLen13b=function(e,t){var r=1|Math.max(t,e),i=1&r,n=0;for(r=r/2|0;r;r>>>=1)n++;return 1<<n+1+i},g.prototype.conjugate=function(e,t,r){if(!(r<=1))for(var i=0;i<r/2;i++){var n=e[i];e[i]=e[r-i-1],e[r-i-1]=n,n=t[i],t[i]=-t[r-i-1],t[r-i-1]=-n}},g.prototype.normalize13b=function(e,t){for(var r=0,i=0;i<t/2;i++){var n=8192*Math.round(e[2*i+1]/t)+Math.round(e[2*i]/t)+r;e[i]=0x3ffffff&n,r=n<0x4000000?0:n/0x4000000|0}return e},g.prototype.convert13b=function(e,t,r,n){for(var a=0,o=0;o<t;o++)a+=0|e[o],r[2*o]=8191&a,a>>>=13,r[2*o+1]=8191&a,a>>>=13;for(o=2*t;o<n;++o)r[o]=0;i(0===a),i((-8192&a)==0)},g.prototype.stub=function(e){for(var t=Array(e),r=0;r<e;r++)t[r]=0;return t},g.prototype.mulp=function(e,t,r){var i=2*this.guessLen13b(e.length,t.length),n=this.makeRBT(i),a=this.stub(i),o=Array(i),s=Array(i),u=Array(i),f=Array(i),c=Array(i),d=Array(i),l=r.words;l.length=i,this.convert13b(e.words,e.length,o,i),this.convert13b(t.words,t.length,f,i),this.transform(o,a,s,u,i,n),this.transform(f,a,c,d,i,n);for(var h=0;h<i;h++){var p=s[h]*c[h]-u[h]*d[h];u[h]=s[h]*d[h]+u[h]*c[h],s[h]=p}return this.conjugate(s,u,i),this.transform(s,u,l,a,i,n),this.conjugate(l,a,i),this.normalize13b(l,i),r.negative=e.negative^t.negative,r.length=e.length+t.length,r.strip()},a.prototype.mul=function(e){var t=new a(null);return t.words=Array(this.length+e.length),this.mulTo(e,t)},a.prototype.mulf=function(e){var t=new a(null);return t.words=Array(this.length+e.length),b(this,e,t)},a.prototype.imul=function(e){return this.clone().mulTo(e,this)},a.prototype.imuln=function(e){i("number"==typeof e),i(e<0x4000000);for(var t=0,r=0;r<this.length;r++){var n=(0|this.words[r])*e,a=(0x3ffffff&n)+(0x3ffffff&t);t>>=26,t+=(n/0x4000000|0)+(a>>>26),this.words[r]=0x3ffffff&a}return 0!==t&&(this.words[r]=t,this.length++),this},a.prototype.muln=function(e){return this.clone().imuln(e)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(e){var t=l(e);if(0===t.length)return new a(1);for(var r=this,i=0;i<t.length&&0===t[i];i++,r=r.sqr());if(++i<t.length)for(var n=r.sqr();i<t.length;i++,n=n.sqr())0!==t[i]&&(r=r.mul(n));return r},a.prototype.iushln=function(e){i("number"==typeof e&&e>=0);var t,r=e%26,n=(e-r)/26,a=0x3ffffff>>>26-r<<26-r;if(0!==r){var o=0;for(t=0;t<this.length;t++){var s=this.words[t]&a,u=(0|this.words[t])-s<<r;this.words[t]=u|o,o=s>>>26-r}o&&(this.words[t]=o,this.length++)}if(0!==n){for(t=this.length-1;t>=0;t--)this.words[t+n]=this.words[t];for(t=0;t<n;t++)this.words[t]=0;this.length+=n}return this.strip()},a.prototype.ishln=function(e){return i(0===this.negative),this.iushln(e)},a.prototype.iushrn=function(e,t,r){i("number"==typeof e&&e>=0);var n=t?(t-t%26)/26:0,a=e%26,o=Math.min((e-a)/26,this.length),s=0x3ffffff^0x3ffffff>>>a<<a,u=r;if(n-=o,n=Math.max(0,n),u){for(var f=0;f<o;f++)u.words[f]=this.words[f];u.length=o}if(0===o);else if(this.length>o)for(this.length-=o,f=0;f<this.length;f++)this.words[f]=this.words[f+o];else this.words[0]=0,this.length=1;var c=0;for(f=this.length-1;f>=0&&(0!==c||f>=n);f--){var d=0|this.words[f];this.words[f]=c<<26-a|d>>>a,c=d&s}return u&&0!==c&&(u.words[u.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(e,t,r){return i(0===this.negative),this.iushrn(e,t,r)},a.prototype.shln=function(e){return this.clone().ishln(e)},a.prototype.ushln=function(e){return this.clone().iushln(e)},a.prototype.shrn=function(e){return this.clone().ishrn(e)},a.prototype.ushrn=function(e){return this.clone().iushrn(e)},a.prototype.testn=function(e){i("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,n=1<<t;return!(this.length<=r)&&!!(this.words[r]&n)},a.prototype.imaskn=function(e){i("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26;if(i(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var n=0x3ffffff^0x3ffffff>>>t<<t;this.words[this.length-1]&=n}return this.strip()},a.prototype.maskn=function(e){return this.clone().imaskn(e)},a.prototype.iaddn=function(e){return(i("number"==typeof e),i(e<0x4000000),e<0)?this.isubn(-e):0!==this.negative?(1===this.length&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0):(this.negative=0,this.isubn(e),this.negative=1),this):this._iaddn(e)},a.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=0x4000000;t++)this.words[t]-=0x4000000,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},a.prototype.isubn=function(e){if(i("number"==typeof e),i(e<0x4000000),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=0x4000000,this.words[t+1]-=1;return this.strip()},a.prototype.addn=function(e){return this.clone().iaddn(e)},a.prototype.subn=function(e){return this.clone().isubn(e)},a.prototype.iabs=function(){return this.negative=0,this},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(e,t,r){var n,a,o=e.length+r;this._expand(o);var s=0;for(n=0;n<e.length;n++){a=(0|this.words[n+r])+s;var u=(0|e.words[n])*t;a-=0x3ffffff&u,s=(a>>26)-(u/0x4000000|0),this.words[n+r]=0x3ffffff&a}for(;n<this.length-r;n++)s=(a=(0|this.words[n+r])+s)>>26,this.words[n+r]=0x3ffffff&a;if(0===s)return this.strip();for(i(-1===s),s=0,n=0;n<this.length;n++)s=(a=-(0|this.words[n])+s)>>26,this.words[n]=0x3ffffff&a;return this.negative=1,this.strip()},a.prototype._wordDiv=function(e,t){var r,i=this.length-e.length,n=this.clone(),o=e,s=0|o.words[o.length-1];0!=(i=26-this._countBits(s))&&(o=o.ushln(i),n.iushln(i),s=0|o.words[o.length-1]);var u=n.length-o.length;if("mod"!==t){(r=new a(null)).length=u+1,r.words=Array(r.length);for(var f=0;f<r.length;f++)r.words[f]=0}var c=n.clone()._ishlnsubmul(o,1,u);0===c.negative&&(n=c,r&&(r.words[u]=1));for(var d=u-1;d>=0;d--){var l=(0|n.words[o.length+d])*0x4000000+(0|n.words[o.length+d-1]);for(l=Math.min(l/s|0,0x3ffffff),n._ishlnsubmul(o,l,d);0!==n.negative;)l--,n.negative=0,n._ishlnsubmul(o,1,d),n.isZero()||(n.negative^=1);r&&(r.words[d]=l)}return r&&r.strip(),n.strip(),"div"!==t&&0!==i&&n.iushrn(i),{div:r||null,mod:n}},a.prototype.divmod=function(e,t,r){var n,o,s;return(i(!e.isZero()),this.isZero())?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(n=s.div.neg()),"div"!==t&&(o=s.mod.neg(),r&&0!==o.negative&&o.iadd(e)),{div:n,mod:o}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(n=s.div.neg()),{div:n,mod:s.mod}):(this.negative&e.negative)!=0?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(o=s.mod.neg(),r&&0!==o.negative&&o.isub(e)),{div:s.div,mod:o}):e.length>this.length||0>this.cmp(e)?{div:new a(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new a(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new a(this.modn(e.words[0]))}:this._wordDiv(e,t)},a.prototype.div=function(e){return this.divmod(e,"div",!1).div},a.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},a.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},a.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,i=e.ushrn(1),n=e.andln(1),a=r.cmp(i);return a<0||1===n&&0===a?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},a.prototype.modn=function(e){i(e<=0x3ffffff);for(var t=0x4000000%e,r=0,n=this.length-1;n>=0;n--)r=(t*r+(0|this.words[n]))%e;return r},a.prototype.idivn=function(e){i(e<=0x3ffffff);for(var t=0,r=this.length-1;r>=0;r--){var n=(0|this.words[r])+0x4000000*t;this.words[r]=n/e|0,t=n%e}return this.strip()},a.prototype.divn=function(e){return this.clone().idivn(e)},a.prototype.egcd=function(e){i(0===e.negative),i(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n=new a(1),o=new a(0),s=new a(0),u=new a(1),f=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++f;for(var c=r.clone(),d=t.clone();!t.isZero();){for(var l=0,h=1;(t.words[0]&h)==0&&l<26;++l,h<<=1);if(l>0)for(t.iushrn(l);l-- >0;)(n.isOdd()||o.isOdd())&&(n.iadd(c),o.isub(d)),n.iushrn(1),o.iushrn(1);for(var p=0,m=1;(r.words[0]&m)==0&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(c),u.isub(d)),s.iushrn(1),u.iushrn(1);t.cmp(r)>=0?(t.isub(r),n.isub(s),o.isub(u)):(r.isub(t),s.isub(n),u.isub(o))}return{a:s,b:u,gcd:r.iushln(f)}},a.prototype._invmp=function(e){i(0===e.negative),i(!e.isZero());var t,r=this,n=e.clone();r=0!==r.negative?r.umod(e):r.clone();for(var o=new a(1),s=new a(0),u=n.clone();r.cmpn(1)>0&&n.cmpn(1)>0;){for(var f=0,c=1;(r.words[0]&c)==0&&f<26;++f,c<<=1);if(f>0)for(r.iushrn(f);f-- >0;)o.isOdd()&&o.iadd(u),o.iushrn(1);for(var d=0,l=1;(n.words[0]&l)==0&&d<26;++d,l<<=1);if(d>0)for(n.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);r.cmp(n)>=0?(r.isub(n),o.isub(s)):(n.isub(r),s.isub(o))}return 0>(t=0===r.cmpn(1)?o:s).cmpn(0)&&t.iadd(e),t},a.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var i=0;t.isEven()&&r.isEven();i++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var n=t.cmp(r);if(n<0){var a=t;t=r,r=a}else if(0===n||0===r.cmpn(1))break;t.isub(r)}return r.iushln(i)},a.prototype.invm=function(e){return this.egcd(e).a.umod(e)},a.prototype.isEven=function(){return(1&this.words[0])==0},a.prototype.isOdd=function(){return(1&this.words[0])==1},a.prototype.andln=function(e){return this.words[0]&e},a.prototype.bincn=function(e){i("number"==typeof e);var t=e%26,r=(e-t)/26,n=1<<t;if(this.length<=r)return this._expand(r+1),this.words[r]|=n,this;for(var a=n,o=r;0!==a&&o<this.length;o++){var s=0|this.words[o];s+=a,a=s>>>26,s&=0x3ffffff,this.words[o]=s}return 0!==a&&(this.words[o]=a,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return -1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)t=1;else{r&&(e=-e),i(e<=0x3ffffff,"Number is too big");var n=0|this.words[0];t=n===e?0:n<e?-1:1}return 0!==this.negative?0|-t:t},a.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return -1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},a.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return -1;for(var t=0,r=this.length-1;r>=0;r--){var i=0|this.words[r],n=0|e.words[r];if(i!==n){i<n?t=-1:i>n&&(t=1);break}}return t},a.prototype.gtn=function(e){return 1===this.cmpn(e)},a.prototype.gt=function(e){return 1===this.cmp(e)},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return -1===this.cmpn(e)},a.prototype.lt=function(e){return -1===this.cmp(e)},a.prototype.lten=function(e){return 0>=this.cmpn(e)},a.prototype.lte=function(e){return 0>=this.cmp(e)},a.prototype.eqn=function(e){return 0===this.cmpn(e)},a.prototype.eq=function(e){return 0===this.cmp(e)},a.red=function(e){return new k(e)},a.prototype.toRed=function(e){return i(!this.red,"Already a number in reduction context"),i(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},a.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return i(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return i(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var v={k256:null,p224:null,p192:null,p25519:null};function y(e,t){this.name=e,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function _(){y.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function x(){y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function S(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function k(e){if("string"==typeof e){var t=a._prime(e);this.m=t.p,this.prime=t}else i(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function $(e){k.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}y.prototype._tmp=function(){var e=new a(null);return e.words=Array(Math.ceil(this.n/13)),e},y.prototype.ireduce=function(e){var t,r=e;do this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength();while(t>this.n)var i=t<this.n?-1:r.ucmp(this.p);return 0===i?(r.words[0]=0,r.length=1):i>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},y.prototype.split=function(e,t){e.iushrn(this.n,0,t)},y.prototype.imulK=function(e){return e.imul(this.k)},n(_,y),_.prototype.split=function(e,t){for(var r=4194303,i=Math.min(e.length,9),n=0;n<i;n++)t.words[n]=e.words[n];if(t.length=i,e.length<=9){e.words[0]=0,e.length=1;return}var a=e.words[9];for(n=10,t.words[t.length++]=a&r;n<e.length;n++){var o=0|e.words[n];e.words[n-10]=(o&r)<<4|a>>>22,a=o}a>>>=22,e.words[n-10]=a,0===a&&e.length>10?e.length-=10:e.length-=9},_.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r<e.length;r++){var i=0|e.words[r];t+=977*i,e.words[r]=0x3ffffff&t,t=64*i+(t/0x4000000|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},n(x,y),n(w,y),n(S,y),S.prototype.imulK=function(e){for(var t=0,r=0;r<e.length;r++){var i=(0|e.words[r])*19+t,n=0x3ffffff&i;i>>>=26,e.words[r]=n,t=i}return 0!==t&&(e.words[e.length++]=t),e},a._prime=function(e){var t;if(v[e])return v[e];if("k256"===e)t=new _;else if("p224"===e)t=new x;else if("p192"===e)t=new w;else if("p25519"===e)t=new S;else throw Error("Unknown prime "+e);return v[e]=t,t},k.prototype._verify1=function(e){i(0===e.negative,"red works only with positives"),i(e.red,"red works only with red numbers")},k.prototype._verify2=function(e,t){i((e.negative|t.negative)==0,"red works only with positives"),i(e.red&&e.red===t.red,"red works only with red numbers")},k.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},k.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},k.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},k.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},k.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r._forceRed(this)},k.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r},k.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},k.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},k.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},k.prototype.isqr=function(e){return this.imul(e,e.clone())},k.prototype.sqr=function(e){return this.mul(e,e)},k.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(i(t%2==1),3===t){var r=this.m.add(new a(1)).iushrn(2);return this.pow(e,r)}for(var n=this.m.subn(1),o=0;!n.isZero()&&0===n.andln(1);)o++,n.iushrn(1);i(!n.isZero());var s=new a(1).toRed(this),u=s.redNeg(),f=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new a(2*c*c).toRed(this);0!==this.pow(c,f).cmp(u);)c.redIAdd(u);for(var d=this.pow(c,n),l=this.pow(e,n.addn(1).iushrn(1)),h=this.pow(e,n),p=o;0!==h.cmp(s);){for(var m=h,b=0;0!==m.cmp(s);b++)m=m.redSqr();i(b<p);var g=this.pow(d,new a(1).iushln(p-b-1));l=l.redMul(g),d=g.redSqr(),h=h.redMul(d),p=b}return l},k.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},k.prototype.pow=function(e,t){if(t.isZero())return new a(1).toRed(this);if(0===t.cmpn(1))return e.clone();var r=4,i=Array(16);i[0]=new a(1).toRed(this),i[1]=e;for(var n=2;n<i.length;n++)i[n]=this.mul(i[n-1],e);var o=i[0],s=0,u=0,f=t.bitLength()%26;for(0===f&&(f=26),n=t.length-1;n>=0;n--){for(var c=t.words[n],d=f-1;d>=0;d--){var l=c>>d&1;if(o!==i[0]&&(o=this.sqr(o)),0===l&&0===s){u=0;continue}s<<=1,s|=l,(++u===r||0===n&&0===d)&&(o=this.mul(o,i[s]),u=0,s=0)}f=26}return o},k.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},k.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},a.mont=function(e){return new $(e)},n($,k),$.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},$.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},$.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=r.isub(i).iushrn(this.shift),a=n;return n.cmp(this.m)>=0?a=n.isub(this.m):0>n.cmpn(0)&&(a=n.iadd(this.m)),a._forceRed(this)},$.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new a(0)._forceRed(this);var r=e.mul(t),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=r.isub(i).iushrn(this.shift),o=n;return n.cmp(this.m)>=0?o=n.isub(this.m):0>n.cmpn(0)&&(o=n.iadd(this.m)),o._forceRed(this)},$.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=r.nmd(e),this)},1670:function(e,t,r){!function(e,t){"use strict";function i(e,t){if(!e)throw Error(t||"Assertion failed")}function n(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function a(e,t,r){if(a.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&(("le"===t||"be"===t)&&(r=t,t=10),this._init(e||0,t||10,r||"be"))}"object"==typeof e?e.exports=a:t.BN=a,a.BN=a,a.wordSize=26;try{c=r(4300).Buffer}catch(e){}function o(e,t,r){for(var n=0,a=Math.min(e.length,r),o=0,s=t;s<a;s++){var u,f=e.charCodeAt(s)-48;n<<=4,n|=u=f>=49&&f<=54?f-49+10:f>=17&&f<=22?f-17+10:f,o|=u}return i(!(240&o),"Invalid character in "+e),n}function s(e,t,r,n){for(var a=0,o=0,s=Math.min(e.length,r),u=t;u<s;u++){var f=e.charCodeAt(u)-48;a*=n,o=f>=49?f-49+10:f>=17?f-17+10:f,i(f>=0&&o<n,"Invalid character"),a+=o}return a}function u(e,t){e.words=t.words,e.length=t.length,e.negative=t.negative,e.red=t.red}function f(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}a.isBN=function(e){return e instanceof a||null!==e&&"object"==typeof e&&e.constructor.wordSize===a.wordSize&&Array.isArray(e.words)},a.max=function(e,t){return e.cmp(t)>0?e:t},a.min=function(e,t){return 0>e.cmp(t)?e:t},a.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),i(t===(0|t)&&t>=2&&t<=36);var n=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&n++,16===t?this._parseHex(e,n):this._parseBase(e,t,n),"-"===e[0]&&(this.negative=1),this._strip(),"le"===r&&this._initArray(this.toArray(),t,r)},a.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<0x4000000?(this.words=[0x3ffffff&e],this.length=1):e<0x10000000000000?(this.words=[0x3ffffff&e,e/0x4000000&0x3ffffff],this.length=2):(i(e<0x20000000000000),this.words=[0x3ffffff&e,e/0x4000000&0x3ffffff,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},a.prototype._initArray=function(e,t,r){if(i("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=Array(this.length);for(var n,a,o=0;o<this.length;o++)this.words[o]=0;var s=0;if("be"===r)for(o=e.length-1,n=0;o>=0;o-=3)a=e[o]|e[o-1]<<8|e[o-2]<<16,this.words[n]|=a<<s&0x3ffffff,this.words[n+1]=a>>>26-s&0x3ffffff,(s+=24)>=26&&(s-=26,n++);else if("le"===r)for(o=0,n=0;o<e.length;o+=3)a=e[o]|e[o+1]<<8|e[o+2]<<16,this.words[n]|=a<<s&0x3ffffff,this.words[n+1]=a>>>26-s&0x3ffffff,(s+=24)>=26&&(s-=26,n++);return this._strip()},a.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=Array(this.length);for(var r,i,n=0;n<this.length;n++)this.words[n]=0;var a=0;for(n=e.length-6,r=0;n>=t;n-=6)i=o(e,n,n+6),this.words[r]|=i<<a&0x3ffffff,this.words[r+1]|=i>>>26-a&4194303,(a+=24)>=26&&(a-=26,r++);n+6!==t&&(i=o(e,t,n+6),this.words[r]|=i<<a&0x3ffffff,this.words[r+1]|=i>>>26-a&4194303),this._strip()},a.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var i=0,n=1;n<=0x3ffffff;n*=t)i++;i--,n=n/t|0;for(var a=e.length-r,o=a%i,u=Math.min(a,a-o)+r,f=0,c=r;c<u;c+=i)f=s(e,c,c+i,t),this.imuln(n),this.words[0]+f<0x4000000?this.words[0]+=f:this._iaddn(f);if(0!==o){var d=1;for(f=s(e,c,e.length,t),c=0;c<o;c++)d*=t;this.imuln(d),this.words[0]+f<0x4000000?this.words[0]+=f:this._iaddn(f)}},a.prototype.copy=function(e){e.words=Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},a.prototype._move=function(e){u(e,this)},a.prototype.clone=function(){var e=new a(null);return this.copy(e),e},a.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},a.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"u">typeof Symbol&&"function"==typeof Symbol.for?a.prototype[Symbol.for("nodejs.util.inspect.custom")]=f:a.prototype.inspect=f;var c,d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],l=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],h=[0,0,0x2000000,0x290d741,0x1000000,0x2e90edd,0x39aa400,0x267bf47,0x1000000,0x290d741,1e7,0x12959c3,0x222c000,0x3bd7765,7529536,0xadcea1,0x1000000,0x1704f61,0x206fc40,0x2cddcf9,64e6,4084101,5153632,6436343,7962624,9765625,0xb54ba0,0xdaf26b,0x1069c00,0x138f9ad,243e5,0x1b4d89f,0x2000000,0x25528a1,0x2b54a20,0x3216b93,0x39aa400];a.prototype.toString=function(e,t){if(t=0|t||1,16===(e=e||10)||"hex"===e){for(var r="",n=0,a=0,o=0;o<this.length;o++){var s=this.words[o],u=((s<<n|a)&0xffffff).toString(16);r=0!=(a=s>>>24-n&0xffffff)||o!==this.length-1?d[6-u.length]+u+r:u+r,(n+=2)>=26&&(n-=26,o--)}for(0!==a&&(r=a.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var f=l[e],c=h[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modrn(c).toString(e);r=(p=p.idivn(c)).isZero()?m+r:d[f-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}i(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=0x4000000*this.words[1]:3===this.length&&1===this.words[2]?e+=0x10000000000000+0x4000000*this.words[1]:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},a.prototype.toJSON=function(){return this.toString(16,2)},c&&(a.prototype.toBuffer=function(e,t){return this.toArrayLike(c,e,t)}),a.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)};var p=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)};function m(e){for(var t=Array(e.bitLength()),r=0;r<t.length;r++){var i=r/26|0,n=r%26;t[r]=e.words[i]>>>n&1}return t}function b(e,t,r){r.negative=t.negative^e.negative;var i=e.length+t.length|0;r.length=i,i=i-1|0;var n=0|e.words[0],a=0|t.words[0],o=n*a,s=0x3ffffff&o,u=o/0x4000000|0;r.words[0]=s;for(var f=1;f<i;f++){for(var c=u>>>26,d=0x3ffffff&u,l=Math.min(f,t.length-1),h=Math.max(0,f-e.length+1);h<=l;h++){var p=f-h|0;c+=(o=(n=0|e.words[p])*(a=0|t.words[h])+d)/0x4000000|0,d=0x3ffffff&o}r.words[f]=0|d,u=0|c}return 0!==u?r.words[f]=0|u:r.length--,r._strip()}a.prototype.toArrayLike=function(e,t,r){this._strip();var n=this.byteLength(),a=r||Math.max(1,n);i(n<=a,"byte array longer than desired length"),i(a>0,"Requested array length <= 0");var o=p(e,a);return this["_toArrayLike"+("le"===t?"LE":"BE")](o,n),o},a.prototype._toArrayLikeLE=function(e,t){for(var r=0,i=0,n=0,a=0;n<this.length;n++){var o=this.words[n]<<a|i;e[r++]=255&o,r<e.length&&(e[r++]=o>>8&255),r<e.length&&(e[r++]=o>>16&255),6===a?(r<e.length&&(e[r++]=o>>24&255),i=0,a=0):(i=o>>>24,a+=2)}if(r<e.length)for(e[r++]=i;r<e.length;)e[r++]=0},a.prototype._toArrayLikeBE=function(e,t){for(var r=e.length-1,i=0,n=0,a=0;n<this.length;n++){var o=this.words[n]<<a|i;e[r--]=255&o,r>=0&&(e[r--]=o>>8&255),r>=0&&(e[r--]=o>>16&255),6===a?(r>=0&&(e[r--]=o>>24&255),i=0,a=0):(i=o>>>24,a+=2)}if(r>=0)for(e[r--]=i;r>=0;)e[r--]=0},Math.clz32?a.prototype._countBits=function(e){return 32-Math.clz32(e)}:a.prototype._countBits=function(e){var t=e,r=0;return t>=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},a.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return(8191&t)==0&&(r+=13,t>>>=13),(127&t)==0&&(r+=7,t>>>=7),(15&t)==0&&(r+=4,t>>>=4),(3&t)==0&&(r+=2,t>>>=2),(1&t)==0&&r++,r},a.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return(this.length-1)*26+t},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var r=this._zeroBits(this.words[t]);if(e+=r,26!==r)break}return e},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},a.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},a.prototype.isNeg=function(){return 0!==this.negative},a.prototype.neg=function(){return this.clone().ineg()},a.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},a.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this._strip()},a.prototype.ior=function(e){return i((this.negative|e.negative)==0),this.iuor(e)},a.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},a.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},a.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;r<t.length;r++)this.words[r]=this.words[r]&e.words[r];return this.length=t.length,this._strip()},a.prototype.iand=function(e){return i((this.negative|e.negative)==0),this.iuand(e)},a.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},a.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},a.prototype.iuxor=function(e){this.length>e.length?(t=this,r=e):(t=e,r=this);for(var t,r,i=0;i<r.length;i++)this.words[i]=t.words[i]^r.words[i];if(this!==t)for(;i<t.length;i++)this.words[i]=t.words[i];return this.length=t.length,this._strip()},a.prototype.ixor=function(e){return i((this.negative|e.negative)==0),this.iuxor(e)},a.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},a.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},a.prototype.inotn=function(e){i("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var n=0;n<t;n++)this.words[n]=0x3ffffff&~this.words[n];return r>0&&(this.words[n]=~this.words[n]&0x3ffffff>>26-r),this._strip()},a.prototype.notn=function(e){return this.clone().inotn(e)},a.prototype.setn=function(e,t){i("number"==typeof e&&e>=0);var r=e/26|0,n=e%26;return this._expand(r+1),t?this.words[r]=this.words[r]|1<<n:this.words[r]=this.words[r]&~(1<<n),this._strip()},a.prototype.iadd=function(e){if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(r=this,i=e):(r=e,i=this);for(var t,r,i,n=0,a=0;a<i.length;a++)t=(0|r.words[a])+(0|i.words[a])+n,this.words[a]=0x3ffffff&t,n=t>>>26;for(;0!==n&&a<r.length;a++)t=(0|r.words[a])+n,this.words[a]=0x3ffffff&t,n=t>>>26;if(this.length=r.length,0!==n)this.words[this.length]=n,this.length++;else if(r!==this)for(;a<r.length;a++)this.words[a]=r.words[a];return this},a.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},a.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t,r,i=this.iadd(e);return e.negative=1,i._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n=this.cmp(e);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(t=this,r=e):(t=e,r=this);for(var a=0,o=0;o<r.length;o++)a=(i=(0|t.words[o])-(0|r.words[o])+a)>>26,this.words[o]=0x3ffffff&i;for(;0!==a&&o<t.length;o++)a=(i=(0|t.words[o])+a)>>26,this.words[o]=0x3ffffff&i;if(0===a&&o<t.length&&t!==this)for(;o<t.length;o++)this.words[o]=t.words[o];return this.length=Math.max(this.length,o),t!==this&&(this.negative=1),this._strip()},a.prototype.sub=function(e){return this.clone().isub(e)};var g=function(e,t,r){var i,n,a,o=e.words,s=t.words,u=r.words,f=0,c=0|o[0],d=8191&c,l=c>>>13,h=0|o[1],p=8191&h,m=h>>>13,b=0|o[2],g=8191&b,v=b>>>13,y=0|o[3],_=8191&y,x=y>>>13,w=0|o[4],S=8191&w,k=w>>>13,$=0|o[5],I=8191&$,M=$>>>13,E=0|o[6],A=8191&E,O=E>>>13,N=0|o[7],j=8191&N,z=N>>>13,U=0|o[8],P=8191&U,T=U>>>13,R=0|o[9],D=8191&R,B=R>>>13,C=0|s[0],Z=8191&C,L=C>>>13,q=0|s[1],F=8191&q,J=q>>>13,W=0|s[2],K=8191&W,V=W>>>13,G=0|s[3],H=8191&G,X=G>>>13,Y=0|s[4],Q=8191&Y,ee=Y>>>13,et=0|s[5],er=8191&et,ei=et>>>13,en=0|s[6],ea=8191&en,eo=en>>>13,es=0|s[7],eu=8191&es,ef=es>>>13,ec=0|s[8],ed=8191&ec,el=ec>>>13,eh=0|s[9],ep=8191&eh,em=eh>>>13;r.negative=e.negative^t.negative,r.length=19,i=Math.imul(d,Z);var eb=(f+i|0)+((8191&(n=(n=Math.imul(d,L))+Math.imul(l,Z)|0))<<13)|0;f=((a=Math.imul(l,L))+(n>>>13)|0)+(eb>>>26)|0,eb&=0x3ffffff,i=Math.imul(p,Z),n=(n=Math.imul(p,L))+Math.imul(m,Z)|0,a=Math.imul(m,L),i=i+Math.imul(d,F)|0;var eg=(f+i|0)+((8191&(n=(n=n+Math.imul(d,J)|0)+Math.imul(l,F)|0))<<13)|0;f=((a=a+Math.imul(l,J)|0)+(n>>>13)|0)+(eg>>>26)|0,eg&=0x3ffffff,i=Math.imul(g,Z),n=(n=Math.imul(g,L))+Math.imul(v,Z)|0,a=Math.imul(v,L),i=i+Math.imul(p,F)|0,n=(n=n+Math.imul(p,J)|0)+Math.imul(m,F)|0,a=a+Math.imul(m,J)|0,i=i+Math.imul(d,K)|0;var ev=(f+i|0)+((8191&(n=(n=n+Math.imul(d,V)|0)+Math.imul(l,K)|0))<<13)|0;f=((a=a+Math.imul(l,V)|0)+(n>>>13)|0)+(ev>>>26)|0,ev&=0x3ffffff,i=Math.imul(_,Z),n=(n=Math.imul(_,L))+Math.imul(x,Z)|0,a=Math.imul(x,L),i=i+Math.imul(g,F)|0,n=(n=n+Math.imul(g,J)|0)+Math.imul(v,F)|0,a=a+Math.imul(v,J)|0,i=i+Math.imul(p,K)|0,n=(n=n+Math.imul(p,V)|0)+Math.imul(m,K)|0,a=a+Math.imul(m,V)|0,i=i+Math.imul(d,H)|0;var ey=(f+i|0)+((8191&(n=(n=n+Math.imul(d,X)|0)+Math.imul(l,H)|0))<<13)|0;f=((a=a+Math.imul(l,X)|0)+(n>>>13)|0)+(ey>>>26)|0,ey&=0x3ffffff,i=Math.imul(S,Z),n=(n=Math.imul(S,L))+Math.imul(k,Z)|0,a=Math.imul(k,L),i=i+Math.imul(_,F)|0,n=(n=n+Math.imul(_,J)|0)+Math.imul(x,F)|0,a=a+Math.imul(x,J)|0,i=i+Math.imul(g,K)|0,n=(n=n+Math.imul(g,V)|0)+Math.imul(v,K)|0,a=a+Math.imul(v,V)|0,i=i+Math.imul(p,H)|0,n=(n=n+Math.imul(p,X)|0)+Math.imul(m,H)|0,a=a+Math.imul(m,X)|0,i=i+Math.imul(d,Q)|0;var e_=(f+i|0)+((8191&(n=(n=n+Math.imul(d,ee)|0)+Math.imul(l,Q)|0))<<13)|0;f=((a=a+Math.imul(l,ee)|0)+(n>>>13)|0)+(e_>>>26)|0,e_&=0x3ffffff,i=Math.imul(I,Z),n=(n=Math.imul(I,L))+Math.imul(M,Z)|0,a=Math.imul(M,L),i=i+Math.imul(S,F)|0,n=(n=n+Math.imul(S,J)|0)+Math.imul(k,F)|0,a=a+Math.imul(k,J)|0,i=i+Math.imul(_,K)|0,n=(n=n+Math.imul(_,V)|0)+Math.imul(x,K)|0,a=a+Math.imul(x,V)|0,i=i+Math.imul(g,H)|0,n=(n=n+Math.imul(g,X)|0)+Math.imul(v,H)|0,a=a+Math.imul(v,X)|0,i=i+Math.imul(p,Q)|0,n=(n=n+Math.imul(p,ee)|0)+Math.imul(m,Q)|0,a=a+Math.imul(m,ee)|0,i=i+Math.imul(d,er)|0;var ex=(f+i|0)+((8191&(n=(n=n+Math.imul(d,ei)|0)+Math.imul(l,er)|0))<<13)|0;f=((a=a+Math.imul(l,ei)|0)+(n>>>13)|0)+(ex>>>26)|0,ex&=0x3ffffff,i=Math.imul(A,Z),n=(n=Math.imul(A,L))+Math.imul(O,Z)|0,a=Math.imul(O,L),i=i+Math.imul(I,F)|0,n=(n=n+Math.imul(I,J)|0)+Math.imul(M,F)|0,a=a+Math.imul(M,J)|0,i=i+Math.imul(S,K)|0,n=(n=n+Math.imul(S,V)|0)+Math.imul(k,K)|0,a=a+Math.imul(k,V)|0,i=i+Math.imul(_,H)|0,n=(n=n+Math.imul(_,X)|0)+Math.imul(x,H)|0,a=a+Math.imul(x,X)|0,i=i+Math.imul(g,Q)|0,n=(n=n+Math.imul(g,ee)|0)+Math.imul(v,Q)|0,a=a+Math.imul(v,ee)|0,i=i+Math.imul(p,er)|0,n=(n=n+Math.imul(p,ei)|0)+Math.imul(m,er)|0,a=a+Math.imul(m,ei)|0,i=i+Math.imul(d,ea)|0;var ew=(f+i|0)+((8191&(n=(n=n+Math.imul(d,eo)|0)+Math.imul(l,ea)|0))<<13)|0;f=((a=a+Math.imul(l,eo)|0)+(n>>>13)|0)+(ew>>>26)|0,ew&=0x3ffffff,i=Math.imul(j,Z),n=(n=Math.imul(j,L))+Math.imul(z,Z)|0,a=Math.imul(z,L),i=i+Math.imul(A,F)|0,n=(n=n+Math.imul(A,J)|0)+Math.imul(O,F)|0,a=a+Math.imul(O,J)|0,i=i+Math.imul(I,K)|0,n=(n=n+Math.imul(I,V)|0)+Math.imul(M,K)|0,a=a+Math.imul(M,V)|0,i=i+Math.imul(S,H)|0,n=(n=n+Math.imul(S,X)|0)+Math.imul(k,H)|0,a=a+Math.imul(k,X)|0,i=i+Math.imul(_,Q)|0,n=(n=n+Math.imul(_,ee)|0)+Math.imul(x,Q)|0,a=a+Math.imul(x,ee)|0,i=i+Math.imul(g,er)|0,n=(n=n+Math.imul(g,ei)|0)+Math.imul(v,er)|0,a=a+Math.imul(v,ei)|0,i=i+Math.imul(p,ea)|0,n=(n=n+Math.imul(p,eo)|0)+Math.imul(m,ea)|0,a=a+Math.imul(m,eo)|0,i=i+Math.imul(d,eu)|0;var eS=(f+i|0)+((8191&(n=(n=n+Math.imul(d,ef)|0)+Math.imul(l,eu)|0))<<13)|0;f=((a=a+Math.imul(l,ef)|0)+(n>>>13)|0)+(eS>>>26)|0,eS&=0x3ffffff,i=Math.imul(P,Z),n=(n=Math.imul(P,L))+Math.imul(T,Z)|0,a=Math.imul(T,L),i=i+Math.imul(j,F)|0,n=(n=n+Math.imul(j,J)|0)+Math.imul(z,F)|0,a=a+Math.imul(z,J)|0,i=i+Math.imul(A,K)|0,n=(n=n+Math.imul(A,V)|0)+Math.imul(O,K)|0,a=a+Math.imul(O,V)|0,i=i+Math.imul(I,H)|0,n=(n=n+Math.imul(I,X)|0)+Math.imul(M,H)|0,a=a+Math.imul(M,X)|0,i=i+Math.imul(S,Q)|0,n=(n=n+Math.imul(S,ee)|0)+Math.imul(k,Q)|0,a=a+Math.imul(k,ee)|0,i=i+Math.imul(_,er)|0,n=(n=n+Math.imul(_,ei)|0)+Math.imul(x,er)|0,a=a+Math.imul(x,ei)|0,i=i+Math.imul(g,ea)|0,n=(n=n+Math.imul(g,eo)|0)+Math.imul(v,ea)|0,a=a+Math.imul(v,eo)|0,i=i+Math.imul(p,eu)|0,n=(n=n+Math.imul(p,ef)|0)+Math.imul(m,eu)|0,a=a+Math.imul(m,ef)|0,i=i+Math.imul(d,ed)|0;var ek=(f+i|0)+((8191&(n=(n=n+Math.imul(d,el)|0)+Math.imul(l,ed)|0))<<13)|0;f=((a=a+Math.imul(l,el)|0)+(n>>>13)|0)+(ek>>>26)|0,ek&=0x3ffffff,i=Math.imul(D,Z),n=(n=Math.imul(D,L))+Math.imul(B,Z)|0,a=Math.imul(B,L),i=i+Math.imul(P,F)|0,n=(n=n+Math.imul(P,J)|0)+Math.imul(T,F)|0,a=a+Math.imul(T,J)|0,i=i+Math.imul(j,K)|0,n=(n=n+Math.imul(j,V)|0)+Math.imul(z,K)|0,a=a+Math.imul(z,V)|0,i=i+Math.imul(A,H)|0,n=(n=n+Math.imul(A,X)|0)+Math.imul(O,H)|0,a=a+Math.imul(O,X)|0,i=i+Math.imul(I,Q)|0,n=(n=n+Math.imul(I,ee)|0)+Math.imul(M,Q)|0,a=a+Math.imul(M,ee)|0,i=i+Math.imul(S,er)|0,n=(n=n+Math.imul(S,ei)|0)+Math.imul(k,er)|0,a=a+Math.imul(k,ei)|0,i=i+Math.imul(_,ea)|0,n=(n=n+Math.imul(_,eo)|0)+Math.imul(x,ea)|0,a=a+Math.imul(x,eo)|0,i=i+Math.imul(g,eu)|0,n=(n=n+Math.imul(g,ef)|0)+Math.imul(v,eu)|0,a=a+Math.imul(v,ef)|0,i=i+Math.imul(p,ed)|0,n=(n=n+Math.imul(p,el)|0)+Math.imul(m,ed)|0,a=a+Math.imul(m,el)|0,i=i+Math.imul(d,ep)|0;var e$=(f+i|0)+((8191&(n=(n=n+Math.imul(d,em)|0)+Math.imul(l,ep)|0))<<13)|0;f=((a=a+Math.imul(l,em)|0)+(n>>>13)|0)+(e$>>>26)|0,e$&=0x3ffffff,i=Math.imul(D,F),n=(n=Math.imul(D,J))+Math.imul(B,F)|0,a=Math.imul(B,J),i=i+Math.imul(P,K)|0,n=(n=n+Math.imul(P,V)|0)+Math.imul(T,K)|0,a=a+Math.imul(T,V)|0,i=i+Math.imul(j,H)|0,n=(n=n+Math.imul(j,X)|0)+Math.imul(z,H)|0,a=a+Math.imul(z,X)|0,i=i+Math.imul(A,Q)|0,n=(n=n+Math.imul(A,ee)|0)+Math.imul(O,Q)|0,a=a+Math.imul(O,ee)|0,i=i+Math.imul(I,er)|0,n=(n=n+Math.imul(I,ei)|0)+Math.imul(M,er)|0,a=a+Math.imul(M,ei)|0,i=i+Math.imul(S,ea)|0,n=(n=n+Math.imul(S,eo)|0)+Math.imul(k,ea)|0,a=a+Math.imul(k,eo)|0,i=i+Math.imul(_,eu)|0,n=(n=n+Math.imul(_,ef)|0)+Math.imul(x,eu)|0,a=a+Math.imul(x,ef)|0,i=i+Math.imul(g,ed)|0,n=(n=n+Math.imul(g,el)|0)+Math.imul(v,ed)|0,a=a+Math.imul(v,el)|0,i=i+Math.imul(p,ep)|0;var eI=(f+i|0)+((8191&(n=(n=n+Math.imul(p,em)|0)+Math.imul(m,ep)|0))<<13)|0;f=((a=a+Math.imul(m,em)|0)+(n>>>13)|0)+(eI>>>26)|0,eI&=0x3ffffff,i=Math.imul(D,K),n=(n=Math.imul(D,V))+Math.imul(B,K)|0,a=Math.imul(B,V),i=i+Math.imul(P,H)|0,n=(n=n+Math.imul(P,X)|0)+Math.imul(T,H)|0,a=a+Math.imul(T,X)|0,i=i+Math.imul(j,Q)|0,n=(n=n+Math.imul(j,ee)|0)+Math.imul(z,Q)|0,a=a+Math.imul(z,ee)|0,i=i+Math.imul(A,er)|0,n=(n=n+Math.imul(A,ei)|0)+Math.imul(O,er)|0,a=a+Math.imul(O,ei)|0,i=i+Math.imul(I,ea)|0,n=(n=n+Math.imul(I,eo)|0)+Math.imul(M,ea)|0,a=a+Math.imul(M,eo)|0,i=i+Math.imul(S,eu)|0,n=(n=n+Math.imul(S,ef)|0)+Math.imul(k,eu)|0,a=a+Math.imul(k,ef)|0,i=i+Math.imul(_,ed)|0,n=(n=n+Math.imul(_,el)|0)+Math.imul(x,ed)|0,a=a+Math.imul(x,el)|0,i=i+Math.imul(g,ep)|0;var eM=(f+i|0)+((8191&(n=(n=n+Math.imul(g,em)|0)+Math.imul(v,ep)|0))<<13)|0;f=((a=a+Math.imul(v,em)|0)+(n>>>13)|0)+(eM>>>26)|0,eM&=0x3ffffff,i=Math.imul(D,H),n=(n=Math.imul(D,X))+Math.imul(B,H)|0,a=Math.imul(B,X),i=i+Math.imul(P,Q)|0,n=(n=n+Math.imul(P,ee)|0)+Math.imul(T,Q)|0,a=a+Math.imul(T,ee)|0,i=i+Math.imul(j,er)|0,n=(n=n+Math.imul(j,ei)|0)+Math.imul(z,er)|0,a=a+Math.imul(z,ei)|0,i=i+Math.imul(A,ea)|0,n=(n=n+Math.imul(A,eo)|0)+Math.imul(O,ea)|0,a=a+Math.imul(O,eo)|0,i=i+Math.imul(I,eu)|0,n=(n=n+Math.imul(I,ef)|0)+Math.imul(M,eu)|0,a=a+Math.imul(M,ef)|0,i=i+Math.imul(S,ed)|0,n=(n=n+Math.imul(S,el)|0)+Math.imul(k,ed)|0,a=a+Math.imul(k,el)|0,i=i+Math.imul(_,ep)|0;var eE=(f+i|0)+((8191&(n=(n=n+Math.imul(_,em)|0)+Math.imul(x,ep)|0))<<13)|0;f=((a=a+Math.imul(x,em)|0)+(n>>>13)|0)+(eE>>>26)|0,eE&=0x3ffffff,i=Math.imul(D,Q),n=(n=Math.imul(D,ee))+Math.imul(B,Q)|0,a=Math.imul(B,ee),i=i+Math.imul(P,er)|0,n=(n=n+Math.imul(P,ei)|0)+Math.imul(T,er)|0,a=a+Math.imul(T,ei)|0,i=i+Math.imul(j,ea)|0,n=(n=n+Math.imul(j,eo)|0)+Math.imul(z,ea)|0,a=a+Math.imul(z,eo)|0,i=i+Math.imul(A,eu)|0,n=(n=n+Math.imul(A,ef)|0)+Math.imul(O,eu)|0,a=a+Math.imul(O,ef)|0,i=i+Math.imul(I,ed)|0,n=(n=n+Math.imul(I,el)|0)+Math.imul(M,ed)|0,a=a+Math.imul(M,el)|0,i=i+Math.imul(S,ep)|0;var eA=(f+i|0)+((8191&(n=(n=n+Math.imul(S,em)|0)+Math.imul(k,ep)|0))<<13)|0;f=((a=a+Math.imul(k,em)|0)+(n>>>13)|0)+(eA>>>26)|0,eA&=0x3ffffff,i=Math.imul(D,er),n=(n=Math.imul(D,ei))+Math.imul(B,er)|0,a=Math.imul(B,ei),i=i+Math.imul(P,ea)|0,n=(n=n+Math.imul(P,eo)|0)+Math.imul(T,ea)|0,a=a+Math.imul(T,eo)|0,i=i+Math.imul(j,eu)|0,n=(n=n+Math.imul(j,ef)|0)+Math.imul(z,eu)|0,a=a+Math.imul(z,ef)|0,i=i+Math.imul(A,ed)|0,n=(n=n+Math.imul(A,el)|0)+Math.imul(O,ed)|0,a=a+Math.imul(O,el)|0,i=i+Math.imul(I,ep)|0;var eO=(f+i|0)+((8191&(n=(n=n+Math.imul(I,em)|0)+Math.imul(M,ep)|0))<<13)|0;f=((a=a+Math.imul(M,em)|0)+(n>>>13)|0)+(eO>>>26)|0,eO&=0x3ffffff,i=Math.imul(D,ea),n=(n=Math.imul(D,eo))+Math.imul(B,ea)|0,a=Math.imul(B,eo),i=i+Math.imul(P,eu)|0,n=(n=n+Math.imul(P,ef)|0)+Math.imul(T,eu)|0,a=a+Math.imul(T,ef)|0,i=i+Math.imul(j,ed)|0,n=(n=n+Math.imul(j,el)|0)+Math.imul(z,ed)|0,a=a+Math.imul(z,el)|0,i=i+Math.imul(A,ep)|0;var eN=(f+i|0)+((8191&(n=(n=n+Math.imul(A,em)|0)+Math.imul(O,ep)|0))<<13)|0;f=((a=a+Math.imul(O,em)|0)+(n>>>13)|0)+(eN>>>26)|0,eN&=0x3ffffff,i=Math.imul(D,eu),n=(n=Math.imul(D,ef))+Math.imul(B,eu)|0,a=Math.imul(B,ef),i=i+Math.imul(P,ed)|0,n=(n=n+Math.imul(P,el)|0)+Math.imul(T,ed)|0,a=a+Math.imul(T,el)|0,i=i+Math.imul(j,ep)|0;var ej=(f+i|0)+((8191&(n=(n=n+Math.imul(j,em)|0)+Math.imul(z,ep)|0))<<13)|0;f=((a=a+Math.imul(z,em)|0)+(n>>>13)|0)+(ej>>>26)|0,ej&=0x3ffffff,i=Math.imul(D,ed),n=(n=Math.imul(D,el))+Math.imul(B,ed)|0,a=Math.imul(B,el),i=i+Math.imul(P,ep)|0;var ez=(f+i|0)+((8191&(n=(n=n+Math.imul(P,em)|0)+Math.imul(T,ep)|0))<<13)|0;f=((a=a+Math.imul(T,em)|0)+(n>>>13)|0)+(ez>>>26)|0,ez&=0x3ffffff,i=Math.imul(D,ep);var eU=(f+i|0)+((8191&(n=(n=Math.imul(D,em))+Math.imul(B,ep)|0))<<13)|0;return f=((a=Math.imul(B,em))+(n>>>13)|0)+(eU>>>26)|0,eU&=0x3ffffff,u[0]=eb,u[1]=eg,u[2]=ev,u[3]=ey,u[4]=e_,u[5]=ex,u[6]=ew,u[7]=eS,u[8]=ek,u[9]=e$,u[10]=eI,u[11]=eM,u[12]=eE,u[13]=eA,u[14]=eO,u[15]=eN,u[16]=ej,u[17]=ez,u[18]=eU,0!==f&&(u[19]=f,r.length++),r};function v(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var i=0,n=0,a=0;a<r.length-1;a++){var o=n;n=0;for(var s=0x3ffffff&i,u=Math.min(a,t.length-1),f=Math.max(0,a-e.length+1);f<=u;f++){var c=a-f,d=(0|e.words[c])*(0|t.words[f]),l=0x3ffffff&d;o=o+(d/0x4000000|0)|0,s=0x3ffffff&(l=l+s|0),n+=(o=o+(l>>>26)|0)>>>26,o&=0x3ffffff}r.words[a]=s,i=o,o=n}return 0!==i?r.words[a]=i:r.length--,r._strip()}function y(e,t,r){return v(e,t,r)}function _(e,t){this.x=e,this.y=t}Math.imul||(g=b),a.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?g(this,e,t):r<63?b(this,e,t):r<1024?v(this,e,t):y(this,e,t)},_.prototype.makeRBT=function(e){for(var t=Array(e),r=a.prototype._countBits(e)-1,i=0;i<e;i++)t[i]=this.revBin(i,r,e);return t},_.prototype.revBin=function(e,t,r){if(0===e||e===r-1)return e;for(var i=0,n=0;n<t;n++)i|=(1&e)<<t-n-1,e>>=1;return i},_.prototype.permute=function(e,t,r,i,n,a){for(var o=0;o<a;o++)i[o]=t[e[o]],n[o]=r[e[o]]},_.prototype.transform=function(e,t,r,i,n,a){this.permute(a,e,t,r,i,n);for(var o=1;o<n;o<<=1)for(var s=o<<1,u=Math.cos(2*Math.PI/s),f=Math.sin(2*Math.PI/s),c=0;c<n;c+=s)for(var d=u,l=f,h=0;h<o;h++){var p=r[c+h],m=i[c+h],b=r[c+h+o],g=i[c+h+o],v=d*b-l*g;g=d*g+l*b,b=v,r[c+h]=p+b,i[c+h]=m+g,r[c+h+o]=p-b,i[c+h+o]=m-g,h!==s&&(v=u*d-f*l,l=u*l+f*d,d=v)}},_.prototype.guessLen13b=function(e,t){var r=1|Math.max(t,e),i=1&r,n=0;for(r=r/2|0;r;r>>>=1)n++;return 1<<n+1+i},_.prototype.conjugate=function(e,t,r){if(!(r<=1))for(var i=0;i<r/2;i++){var n=e[i];e[i]=e[r-i-1],e[r-i-1]=n,n=t[i],t[i]=-t[r-i-1],t[r-i-1]=-n}},_.prototype.normalize13b=function(e,t){for(var r=0,i=0;i<t/2;i++){var n=8192*Math.round(e[2*i+1]/t)+Math.round(e[2*i]/t)+r;e[i]=0x3ffffff&n,r=n<0x4000000?0:n/0x4000000|0}return e},_.prototype.convert13b=function(e,t,r,n){for(var a=0,o=0;o<t;o++)a+=0|e[o],r[2*o]=8191&a,a>>>=13,r[2*o+1]=8191&a,a>>>=13;for(o=2*t;o<n;++o)r[o]=0;i(0===a),i((-8192&a)==0)},_.prototype.stub=function(e){for(var t=Array(e),r=0;r<e;r++)t[r]=0;return t},_.prototype.mulp=function(e,t,r){var i=2*this.guessLen13b(e.length,t.length),n=this.makeRBT(i),a=this.stub(i),o=Array(i),s=Array(i),u=Array(i),f=Array(i),c=Array(i),d=Array(i),l=r.words;l.length=i,this.convert13b(e.words,e.length,o,i),this.convert13b(t.words,t.length,f,i),this.transform(o,a,s,u,i,n),this.transform(f,a,c,d,i,n);for(var h=0;h<i;h++){var p=s[h]*c[h]-u[h]*d[h];u[h]=s[h]*d[h]+u[h]*c[h],s[h]=p}return this.conjugate(s,u,i),this.transform(s,u,l,a,i,n),this.conjugate(l,a,i),this.normalize13b(l,i),r.negative=e.negative^t.negative,r.length=e.length+t.length,r._strip()},a.prototype.mul=function(e){var t=new a(null);return t.words=Array(this.length+e.length),this.mulTo(e,t)},a.prototype.mulf=function(e){var t=new a(null);return t.words=Array(this.length+e.length),y(this,e,t)},a.prototype.imul=function(e){return this.clone().mulTo(e,this)},a.prototype.imuln=function(e){var t=e<0;t&&(e=-e),i("number"==typeof e),i(e<0x4000000);for(var r=0,n=0;n<this.length;n++){var a=(0|this.words[n])*e,o=(0x3ffffff&a)+(0x3ffffff&r);r>>=26,r+=(a/0x4000000|0)+(o>>>26),this.words[n]=0x3ffffff&o}return 0!==r&&(this.words[n]=r,this.length++),t?this.ineg():this},a.prototype.muln=function(e){return this.clone().imuln(e)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(e){var t=m(e);if(0===t.length)return new a(1);for(var r=this,i=0;i<t.length&&0===t[i];i++,r=r.sqr());if(++i<t.length)for(var n=r.sqr();i<t.length;i++,n=n.sqr())0!==t[i]&&(r=r.mul(n));return r},a.prototype.iushln=function(e){i("number"==typeof e&&e>=0);var t,r=e%26,n=(e-r)/26,a=0x3ffffff>>>26-r<<26-r;if(0!==r){var o=0;for(t=0;t<this.length;t++){var s=this.words[t]&a,u=(0|this.words[t])-s<<r;this.words[t]=u|o,o=s>>>26-r}o&&(this.words[t]=o,this.length++)}if(0!==n){for(t=this.length-1;t>=0;t--)this.words[t+n]=this.words[t];for(t=0;t<n;t++)this.words[t]=0;this.length+=n}return this._strip()},a.prototype.ishln=function(e){return i(0===this.negative),this.iushln(e)},a.prototype.iushrn=function(e,t,r){i("number"==typeof e&&e>=0);var n=t?(t-t%26)/26:0,a=e%26,o=Math.min((e-a)/26,this.length),s=0x3ffffff^0x3ffffff>>>a<<a,u=r;if(n-=o,n=Math.max(0,n),u){for(var f=0;f<o;f++)u.words[f]=this.words[f];u.length=o}if(0===o);else if(this.length>o)for(this.length-=o,f=0;f<this.length;f++)this.words[f]=this.words[f+o];else this.words[0]=0,this.length=1;var c=0;for(f=this.length-1;f>=0&&(0!==c||f>=n);f--){var d=0|this.words[f];this.words[f]=c<<26-a|d>>>a,c=d&s}return u&&0!==c&&(u.words[u.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},a.prototype.ishrn=function(e,t,r){return i(0===this.negative),this.iushrn(e,t,r)},a.prototype.shln=function(e){return this.clone().ishln(e)},a.prototype.ushln=function(e){return this.clone().iushln(e)},a.prototype.shrn=function(e){return this.clone().ishrn(e)},a.prototype.ushrn=function(e){return this.clone().iushrn(e)},a.prototype.testn=function(e){i("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,n=1<<t;return!(this.length<=r)&&!!(this.words[r]&n)},a.prototype.imaskn=function(e){i("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26;if(i(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var n=0x3ffffff^0x3ffffff>>>t<<t;this.words[this.length-1]&=n}return this._strip()},a.prototype.maskn=function(e){return this.clone().imaskn(e)},a.prototype.iaddn=function(e){return(i("number"==typeof e),i(e<0x4000000),e<0)?this.isubn(-e):0!==this.negative?(1===this.length&&(0|this.words[0])<=e?(this.words[0]=e-(0|this.words[0]),this.negative=0):(this.negative=0,this.isubn(e),this.negative=1),this):this._iaddn(e)},a.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=0x4000000;t++)this.words[t]-=0x4000000,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},a.prototype.isubn=function(e){if(i("number"==typeof e),i(e<0x4000000),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=0x4000000,this.words[t+1]-=1;return this._strip()},a.prototype.addn=function(e){return this.clone().iaddn(e)},a.prototype.subn=function(e){return this.clone().isubn(e)},a.prototype.iabs=function(){return this.negative=0,this},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(e,t,r){var n,a,o=e.length+r;this._expand(o);var s=0;for(n=0;n<e.length;n++){a=(0|this.words[n+r])+s;var u=(0|e.words[n])*t;a-=0x3ffffff&u,s=(a>>26)-(u/0x4000000|0),this.words[n+r]=0x3ffffff&a}for(;n<this.length-r;n++)s=(a=(0|this.words[n+r])+s)>>26,this.words[n+r]=0x3ffffff&a;if(0===s)return this._strip();for(i(-1===s),s=0,n=0;n<this.length;n++)s=(a=-(0|this.words[n])+s)>>26,this.words[n]=0x3ffffff&a;return this.negative=1,this._strip()},a.prototype._wordDiv=function(e,t){var r,i=this.length-e.length,n=this.clone(),o=e,s=0|o.words[o.length-1];0!=(i=26-this._countBits(s))&&(o=o.ushln(i),n.iushln(i),s=0|o.words[o.length-1]);var u=n.length-o.length;if("mod"!==t){(r=new a(null)).length=u+1,r.words=Array(r.length);for(var f=0;f<r.length;f++)r.words[f]=0}var c=n.clone()._ishlnsubmul(o,1,u);0===c.negative&&(n=c,r&&(r.words[u]=1));for(var d=u-1;d>=0;d--){var l=(0|n.words[o.length+d])*0x4000000+(0|n.words[o.length+d-1]);for(l=Math.min(l/s|0,0x3ffffff),n._ishlnsubmul(o,l,d);0!==n.negative;)l--,n.negative=0,n._ishlnsubmul(o,1,d),n.isZero()||(n.negative^=1);r&&(r.words[d]=l)}return r&&r._strip(),n._strip(),"div"!==t&&0!==i&&n.iushrn(i),{div:r||null,mod:n}},a.prototype.divmod=function(e,t,r){var n,o,s;return(i(!e.isZero()),this.isZero())?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(n=s.div.neg()),"div"!==t&&(o=s.mod.neg(),r&&0!==o.negative&&o.iadd(e)),{div:n,mod:o}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(n=s.div.neg()),{div:n,mod:s.mod}):(this.negative&e.negative)!=0?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(o=s.mod.neg(),r&&0!==o.negative&&o.isub(e)),{div:s.div,mod:o}):e.length>this.length||0>this.cmp(e)?{div:new a(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new a(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new a(this.modrn(e.words[0]))}:this._wordDiv(e,t)},a.prototype.div=function(e){return this.divmod(e,"div",!1).div},a.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},a.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},a.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,i=e.ushrn(1),n=e.andln(1),a=r.cmp(i);return a<0||1===n&&0===a?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},a.prototype.modrn=function(e){var t=e<0;t&&(e=-e),i(e<=0x3ffffff);for(var r=0x4000000%e,n=0,a=this.length-1;a>=0;a--)n=(r*n+(0|this.words[a]))%e;return t?-n:n},a.prototype.modn=function(e){return this.modrn(e)},a.prototype.idivn=function(e){var t=e<0;t&&(e=-e),i(e<=0x3ffffff);for(var r=0,n=this.length-1;n>=0;n--){var a=(0|this.words[n])+0x4000000*r;this.words[n]=a/e|0,r=a%e}return this._strip(),t?this.ineg():this},a.prototype.divn=function(e){return this.clone().idivn(e)},a.prototype.egcd=function(e){i(0===e.negative),i(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n=new a(1),o=new a(0),s=new a(0),u=new a(1),f=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++f;for(var c=r.clone(),d=t.clone();!t.isZero();){for(var l=0,h=1;(t.words[0]&h)==0&&l<26;++l,h<<=1);if(l>0)for(t.iushrn(l);l-- >0;)(n.isOdd()||o.isOdd())&&(n.iadd(c),o.isub(d)),n.iushrn(1),o.iushrn(1);for(var p=0,m=1;(r.words[0]&m)==0&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(c),u.isub(d)),s.iushrn(1),u.iushrn(1);t.cmp(r)>=0?(t.isub(r),n.isub(s),o.isub(u)):(r.isub(t),s.isub(n),u.isub(o))}return{a:s,b:u,gcd:r.iushln(f)}},a.prototype._invmp=function(e){i(0===e.negative),i(!e.isZero());var t,r=this,n=e.clone();r=0!==r.negative?r.umod(e):r.clone();for(var o=new a(1),s=new a(0),u=n.clone();r.cmpn(1)>0&&n.cmpn(1)>0;){for(var f=0,c=1;(r.words[0]&c)==0&&f<26;++f,c<<=1);if(f>0)for(r.iushrn(f);f-- >0;)o.isOdd()&&o.iadd(u),o.iushrn(1);for(var d=0,l=1;(n.words[0]&l)==0&&d<26;++d,l<<=1);if(d>0)for(n.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);r.cmp(n)>=0?(r.isub(n),o.isub(s)):(n.isub(r),s.isub(o))}return 0>(t=0===r.cmpn(1)?o:s).cmpn(0)&&t.iadd(e),t},a.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var i=0;t.isEven()&&r.isEven();i++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var n=t.cmp(r);if(n<0){var a=t;t=r,r=a}else if(0===n||0===r.cmpn(1))break;t.isub(r)}return r.iushln(i)},a.prototype.invm=function(e){return this.egcd(e).a.umod(e)},a.prototype.isEven=function(){return(1&this.words[0])==0},a.prototype.isOdd=function(){return(1&this.words[0])==1},a.prototype.andln=function(e){return this.words[0]&e},a.prototype.bincn=function(e){i("number"==typeof e);var t=e%26,r=(e-t)/26,n=1<<t;if(this.length<=r)return this._expand(r+1),this.words[r]|=n,this;for(var a=n,o=r;0!==a&&o<this.length;o++){var s=0|this.words[o];s+=a,a=s>>>26,s&=0x3ffffff,this.words[o]=s}return 0!==a&&(this.words[o]=a,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return -1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)t=1;else{r&&(e=-e),i(e<=0x3ffffff,"Number is too big");var n=0|this.words[0];t=n===e?0:n<e?-1:1}return 0!==this.negative?0|-t:t},a.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return -1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},a.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return -1;for(var t=0,r=this.length-1;r>=0;r--){var i=0|this.words[r],n=0|e.words[r];if(i!==n){i<n?t=-1:i>n&&(t=1);break}}return t},a.prototype.gtn=function(e){return 1===this.cmpn(e)},a.prototype.gt=function(e){return 1===this.cmp(e)},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return -1===this.cmpn(e)},a.prototype.lt=function(e){return -1===this.cmp(e)},a.prototype.lten=function(e){return 0>=this.cmpn(e)},a.prototype.lte=function(e){return 0>=this.cmp(e)},a.prototype.eqn=function(e){return 0===this.cmpn(e)},a.prototype.eq=function(e){return 0===this.cmp(e)},a.red=function(e){return new M(e)},a.prototype.toRed=function(e){return i(!this.red,"Already a number in reduction context"),i(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},a.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return i(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return i(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var x={k256:null,p224:null,p192:null,p25519:null};function w(e,t){this.name=e,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function S(){w.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function k(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function $(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function I(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function M(e){if("string"==typeof e){var t=a._prime(e);this.m=t.p,this.prime=t}else i(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function E(e){M.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}w.prototype._tmp=function(){var e=new a(null);return e.words=Array(Math.ceil(this.n/13)),e},w.prototype.ireduce=function(e){var t,r=e;do this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength();while(t>this.n)var i=t<this.n?-1:r.ucmp(this.p);return 0===i?(r.words[0]=0,r.length=1):i>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},w.prototype.split=function(e,t){e.iushrn(this.n,0,t)},w.prototype.imulK=function(e){return e.imul(this.k)},n(S,w),S.prototype.split=function(e,t){for(var r=4194303,i=Math.min(e.length,9),n=0;n<i;n++)t.words[n]=e.words[n];if(t.length=i,e.length<=9){e.words[0]=0,e.length=1;return}var a=e.words[9];for(n=10,t.words[t.length++]=a&r;n<e.length;n++){var o=0|e.words[n];e.words[n-10]=(o&r)<<4|a>>>22,a=o}a>>>=22,e.words[n-10]=a,0===a&&e.length>10?e.length-=10:e.length-=9},S.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r<e.length;r++){var i=0|e.words[r];t+=977*i,e.words[r]=0x3ffffff&t,t=64*i+(t/0x4000000|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},n(k,w),n($,w),n(I,w),I.prototype.imulK=function(e){for(var t=0,r=0;r<e.length;r++){var i=(0|e.words[r])*19+t,n=0x3ffffff&i;i>>>=26,e.words[r]=n,t=i}return 0!==t&&(e.words[e.length++]=t),e},a._prime=function(e){var t;if(x[e])return x[e];if("k256"===e)t=new S;else if("p224"===e)t=new k;else if("p192"===e)t=new $;else if("p25519"===e)t=new I;else throw Error("Unknown prime "+e);return x[e]=t,t},M.prototype._verify1=function(e){i(0===e.negative,"red works only with positives"),i(e.red,"red works only with red numbers")},M.prototype._verify2=function(e,t){i((e.negative|t.negative)==0,"red works only with positives"),i(e.red&&e.red===t.red,"red works only with red numbers")},M.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(u(e,e.umod(this.m)._forceRed(this)),e)},M.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},M.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},M.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},M.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r._forceRed(this)},M.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r},M.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},M.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},M.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},M.prototype.isqr=function(e){return this.imul(e,e.clone())},M.prototype.sqr=function(e){return this.mul(e,e)},M.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(i(t%2==1),3===t){var r=this.m.add(new a(1)).iushrn(2);return this.pow(e,r)}for(var n=this.m.subn(1),o=0;!n.isZero()&&0===n.andln(1);)o++,n.iushrn(1);i(!n.isZero());var s=new a(1).toRed(this),u=s.redNeg(),f=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new a(2*c*c).toRed(this);0!==this.pow(c,f).cmp(u);)c.redIAdd(u);for(var d=this.pow(c,n),l=this.pow(e,n.addn(1).iushrn(1)),h=this.pow(e,n),p=o;0!==h.cmp(s);){for(var m=h,b=0;0!==m.cmp(s);b++)m=m.redSqr();i(b<p);var g=this.pow(d,new a(1).iushln(p-b-1));l=l.redMul(g),d=g.redSqr(),h=h.redMul(d),p=b}return l},M.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},M.prototype.pow=function(e,t){if(t.isZero())return new a(1).toRed(this);if(0===t.cmpn(1))return e.clone();var r=4,i=Array(16);i[0]=new a(1).toRed(this),i[1]=e;for(var n=2;n<i.length;n++)i[n]=this.mul(i[n-1],e);var o=i[0],s=0,u=0,f=t.bitLength()%26;for(0===f&&(f=26),n=t.length-1;n>=0;n--){for(var c=t.words[n],d=f-1;d>=0;d--){var l=c>>d&1;if(o!==i[0]&&(o=this.sqr(o)),0===l&&0===s){u=0;continue}s<<=1,s|=l,(++u===r||0===n&&0===d)&&(o=this.mul(o,i[s]),u=0,s=0)}f=26}return o},M.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},M.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},a.mont=function(e){return new E(e)},n(E,M),E.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},E.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},E.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=r.isub(i).iushrn(this.shift),a=n;return n.cmp(this.m)>=0?a=n.isub(this.m):0>n.cmpn(0)&&(a=n.iadd(this.m)),a._forceRed(this)},E.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new a(0)._forceRed(this);var r=e.mul(t),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=r.isub(i).iushrn(this.shift),o=n;return n.cmp(this.m)>=0?o=n.isub(this.m):0>n.cmpn(0)&&(o=n.iadd(this.m)),o._forceRed(this)},E.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=r.nmd(e),this)},3500:function(e,t,r){var i;function n(e){this.rand=e}if(e.exports=function(e){return i||(i=new n(null)),i.generate(e)},e.exports.Rand=n,n.prototype.generate=function(e){return this._rand(e)},n.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),r=0;r<t.length;r++)t[r]=this.rand.getByte();return t},"object"==typeof self)self.crypto&&self.crypto.getRandomValues?n.prototype._rand=function(e){var t=new Uint8Array(e);return self.crypto.getRandomValues(t),t}:self.msCrypto&&self.msCrypto.getRandomValues?n.prototype._rand=function(e){var t=new Uint8Array(e);return self.msCrypto.getRandomValues(t),t}:"object"==typeof window&&(n.prototype._rand=function(){throw Error("Not implemented yet")});else try{var a=r(6113);if("function"!=typeof a.randomBytes)throw Error("Not supported");n.prototype._rand=function(e){return a.randomBytes(e)}}catch(e){}},1387:function(e,t,r){var i=r(6911).Buffer;function n(e){i.isBuffer(e)||(e=i.from(e));for(var t=e.length/4|0,r=Array(t),n=0;n<t;n++)r[n]=e.readUInt32BE(4*n);return r}function a(e){for(var t=0;t<e.length;e++)e[t]=0}function o(e,t,r,i,n){for(var a,o,s,u,f=r[0],c=r[1],d=r[2],l=r[3],h=e[0]^t[0],p=e[1]^t[1],m=e[2]^t[2],b=e[3]^t[3],g=4,v=1;v<n;v++)a=f[h>>>24]^c[p>>>16&255]^d[m>>>8&255]^l[255&b]^t[g++],o=f[p>>>24]^c[m>>>16&255]^d[b>>>8&255]^l[255&h]^t[g++],s=f[m>>>24]^c[b>>>16&255]^d[h>>>8&255]^l[255&p]^t[g++],u=f[b>>>24]^c[h>>>16&255]^d[p>>>8&255]^l[255&m]^t[g++],h=a,p=o,m=s,b=u;return a=(i[h>>>24]<<24|i[p>>>16&255]<<16|i[m>>>8&255]<<8|i[255&b])^t[g++],o=(i[p>>>24]<<24|i[m>>>16&255]<<16|i[b>>>8&255]<<8|i[255&h])^t[g++],s=(i[m>>>24]<<24|i[b>>>16&255]<<16|i[h>>>8&255]<<8|i[255&p])^t[g++],[a>>>=0,o>>>=0,s>>>=0,u=((i[b>>>24]<<24|i[h>>>16&255]<<16|i[p>>>8&255]<<8|i[255&m])^t[g++])>>>0]}var s=[0,1,2,4,8,16,32,64,128,27,54],u=function(){for(var e=Array(256),t=0;t<256;t++)t<128?e[t]=t<<1:e[t]=t<<1^283;for(var r=[],i=[],n=[[],[],[],[]],a=[[],[],[],[]],o=0,s=0,u=0;u<256;++u){var f=s^s<<1^s<<2^s<<3^s<<4;f=f>>>8^255&f^99,r[o]=f,i[f]=o;var c=e[o],d=e[c],l=e[d],h=257*e[f]^0x1010100*f;n[0][o]=h<<24|h>>>8,n[1][o]=h<<16|h>>>16,n[2][o]=h<<8|h>>>24,n[3][o]=h,h=0x1010101*l^65537*d^257*c^0x1010100*o,a[0][f]=h<<24|h>>>8,a[1][f]=h<<16|h>>>16,a[2][f]=h<<8|h>>>24,a[3][f]=h,0===o?o=s=1:(o=c^e[e[e[l^c]]],s^=e[e[s]])}return{SBOX:r,INV_SBOX:i,SUB_MIX:n,INV_SUB_MIX:a}}();function f(e){this._key=n(e),this._reset()}f.blockSize=16,f.keySize=32,f.prototype.blockSize=f.blockSize,f.prototype.keySize=f.keySize,f.prototype._reset=function(){for(var e=this._key,t=e.length,r=t+6,i=(r+1)*4,n=[],a=0;a<t;a++)n[a]=e[a];for(a=t;a<i;a++){var o=n[a-1];a%t==0?(o=o<<8|o>>>24,o=(u.SBOX[o>>>24]<<24|u.SBOX[o>>>16&255]<<16|u.SBOX[o>>>8&255]<<8|u.SBOX[255&o])^s[a/t|0]<<24):t>6&&a%t==4&&(o=u.SBOX[o>>>24]<<24|u.SBOX[o>>>16&255]<<16|u.SBOX[o>>>8&255]<<8|u.SBOX[255&o]),n[a]=n[a-t]^o}for(var f=[],c=0;c<i;c++){var d=i-c,l=n[d-(c%4?0:4)];c<4||d<=4?f[c]=l:f[c]=u.INV_SUB_MIX[0][u.SBOX[l>>>24]]^u.INV_SUB_MIX[1][u.SBOX[l>>>16&255]]^u.INV_SUB_MIX[2][u.SBOX[l>>>8&255]]^u.INV_SUB_MIX[3][u.SBOX[255&l]]}this._nRounds=r,this._keySchedule=n,this._invKeySchedule=f},f.prototype.encryptBlockRaw=function(e){return o(e=n(e),this._keySchedule,u.SUB_MIX,u.SBOX,this._nRounds)},f.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),r=i.allocUnsafe(16);return r.writeUInt32BE(t[0],0),r.writeUInt32BE(t[1],4),r.writeUInt32BE(t[2],8),r.writeUInt32BE(t[3],12),r},f.prototype.decryptBlock=function(e){var t=(e=n(e))[1];e[1]=e[3],e[3]=t;var r=o(e,this._invKeySchedule,u.INV_SUB_MIX,u.INV_SBOX,this._nRounds),a=i.allocUnsafe(16);return a.writeUInt32BE(r[0],0),a.writeUInt32BE(r[3],4),a.writeUInt32BE(r[2],8),a.writeUInt32BE(r[1],12),a},f.prototype.scrub=function(){a(this._keySchedule),a(this._invKeySchedule),a(this._key)},e.exports.AES=f},6624:function(e,t,r){var i=r(1387),n=r(6911).Buffer,a=r(1043),o=r(3782),s=r(7225),u=r(4734),f=r(598);function c(e,t){var r=0;e.length!==t.length&&r++;for(var i=Math.min(e.length,t.length),n=0;n<i;++n)r+=e[n]^t[n];return r}function d(e,t,r){if(12===t.length)return e._finID=n.concat([t,n.from([0,0,0,1])]),n.concat([t,n.from([0,0,0,2])]);var i=new s(r),a=t.length,o=a%16;i.update(t),o&&(o=16-o,i.update(n.alloc(o,0))),i.update(n.alloc(8,0));var u=8*a,c=n.alloc(8);c.writeUIntBE(u,0,8),i.update(c),e._finID=i.state;var d=n.from(e._finID);return f(d),d}function l(e,t,r,o){a.call(this);var u=n.alloc(4,0);this._cipher=new i.AES(t);var f=this._cipher.encryptBlock(u);this._ghash=new s(f),r=d(this,r,f),this._prev=n.from(r),this._cache=n.allocUnsafe(0),this._secCache=n.allocUnsafe(0),this._decrypt=o,this._alen=0,this._len=0,this._mode=e,this._authTag=null,this._called=!1}o(l,a),l.prototype._update=function(e){if(!this._called&&this._alen){var t=16-this._alen%16;t<16&&(t=n.alloc(t,0),this._ghash.update(t))}this._called=!0;var r=this._mode.encrypt(this,e);return this._decrypt?this._ghash.update(e):this._ghash.update(r),this._len+=e.length,r},l.prototype._final=function(){if(this._decrypt&&!this._authTag)throw Error("Unsupported state or unable to authenticate data");var e=u(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&c(e,this._authTag))throw Error("Unsupported state or unable to authenticate data");this._authTag=e,this._cipher.scrub()},l.prototype.getAuthTag=function(){if(this._decrypt||!n.isBuffer(this._authTag))throw Error("Attempting to get auth tag in unsupported state");return this._authTag},l.prototype.setAuthTag=function(e){if(!this._decrypt)throw Error("Attempting to set auth tag in unsupported state");this._authTag=e},l.prototype.setAAD=function(e){if(this._called)throw Error("Attempting to set AAD in unsupported state");this._ghash.update(e),this._alen+=e.length},e.exports=l},6594:function(e,t,r){var i=r(2),n=r(2598),a=r(5866);function o(){return Object.keys(a)}t.createCipher=t.Cipher=i.createCipher,t.createCipheriv=t.Cipheriv=i.createCipheriv,t.createDecipher=t.Decipher=n.createDecipher,t.createDecipheriv=t.Decipheriv=n.createDecipheriv,t.listCiphers=t.getCiphers=o},2598:function(e,t,r){var i=r(6624),n=r(6911).Buffer,a=r(6370),o=r(126),s=r(1043),u=r(1387),f=r(8368);function c(e,t,r){s.call(this),this._cache=new d,this._last=void 0,this._cipher=new u.AES(t),this._prev=n.from(r),this._mode=e,this._autopadding=!0}function d(){this.cache=n.allocUnsafe(0)}function l(e){var t=e[15];if(t<1||t>16)throw Error("unable to decrypt data");for(var r=-1;++r<t;)if(e[r+(16-t)]!==t)throw Error("unable to decrypt data");if(16!==t)return e.slice(0,16-t)}function h(e,t,r){var s=a[e.toLowerCase()];if(!s)throw TypeError("invalid suite type");if("string"==typeof r&&(r=n.from(r)),"GCM"!==s.mode&&r.length!==s.iv)throw TypeError("invalid iv length "+r.length);if("string"==typeof t&&(t=n.from(t)),t.length!==s.key/8)throw TypeError("invalid key length "+t.length);return"stream"===s.type?new o(s.module,t,r,!0):"auth"===s.type?new i(s.module,t,r,!0):new c(s.module,t,r)}r(3782)(c,s),c.prototype._update=function(e){this._cache.add(e);for(var t,r,i=[];t=this._cache.get(this._autopadding);)r=this._mode.decrypt(this,t),i.push(r);return n.concat(i)},c.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return l(this._mode.decrypt(this,e));if(e)throw Error("data not multiple of block length")},c.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},d.prototype.add=function(e){this.cache=n.concat([this.cache,e])},d.prototype.get=function(e){var t;if(e){if(this.cache.length>16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(this.cache.length>=16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null},d.prototype.flush=function(){if(this.cache.length)return this.cache},t.createDecipher=function(e,t){var r=a[e.toLowerCase()];if(!r)throw TypeError("invalid suite type");var i=f(t,!1,r.key,r.iv);return h(e,i.key,i.iv)},t.createDecipheriv=h},2:function(e,t,r){var i=r(6370),n=r(6624),a=r(6911).Buffer,o=r(126),s=r(1043),u=r(1387),f=r(8368);function c(e,t,r){s.call(this),this._cache=new l,this._cipher=new u.AES(t),this._prev=a.from(r),this._mode=e,this._autopadding=!0}r(3782)(c,s),c.prototype._update=function(e){this._cache.add(e);for(var t,r,i=[];t=this._cache.get();)r=this._mode.encrypt(this,t),i.push(r);return a.concat(i)};var d=a.alloc(16,16);function l(){this.cache=a.allocUnsafe(0)}function h(e,t,r){var s=i[e.toLowerCase()];if(!s)throw TypeError("invalid suite type");if("string"==typeof t&&(t=a.from(t)),t.length!==s.key/8)throw TypeError("invalid key length "+t.length);if("string"==typeof r&&(r=a.from(r)),"GCM"!==s.mode&&r.length!==s.iv)throw TypeError("invalid iv length "+r.length);return"stream"===s.type?new o(s.module,t,r):"auth"===s.type?new n(s.module,t,r):new c(s.module,t,r)}function p(e,t){var r=i[e.toLowerCase()];if(!r)throw TypeError("invalid suite type");var n=f(t,!1,r.key,r.iv);return h(e,n.key,n.iv)}c.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return e=this._mode.encrypt(this,e),this._cipher.scrub(),e;if(!e.equals(d))throw this._cipher.scrub(),Error("data not multiple of block length")},c.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},l.prototype.add=function(e){this.cache=a.concat([this.cache,e])},l.prototype.get=function(){if(this.cache.length>15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},l.prototype.flush=function(){for(var e=16-this.cache.length,t=a.allocUnsafe(e),r=-1;++r<e;)t.writeUInt8(e,r);return a.concat([this.cache,t])},t.createCipheriv=h,t.createCipher=p},7225:function(e,t,r){var i=r(6911).Buffer,n=i.alloc(16,0);function a(e){return[e.readUInt32BE(0),e.readUInt32BE(4),e.readUInt32BE(8),e.readUInt32BE(12)]}function o(e){var t=i.allocUnsafe(16);return t.writeUInt32BE(e[0]>>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function s(e){this.h=e,this.state=i.alloc(16,0),this.cache=i.allocUnsafe(0)}s.prototype.ghash=function(e){for(var t=-1;++t<e.length;)this.state[t]^=e[t];this._multiply()},s.prototype._multiply=function(){for(var e,t,r=a(this.h),i=[0,0,0,0],n=-1;++n<128;){for((this.state[~~(n/8)]&1<<7-n%8)!=0&&(i[0]^=r[0],i[1]^=r[1],i[2]^=r[2],i[3]^=r[3]),t=(1&r[3])!=0,e=3;e>0;e--)r[e]=r[e]>>>1|(1&r[e-1])<<31;r[0]=r[0]>>>1,t&&(r[0]=-0x1f000000^r[0])}this.state=o(i)},s.prototype.update=function(e){var t;for(this.cache=i.concat([this.cache,e]);this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},s.prototype.final=function(e,t){return this.cache.length&&this.ghash(i.concat([this.cache,n],16)),this.ghash(o([0,e,0,t])),this.state},e.exports=s},598:function(e){e.exports=function(e){for(var t,r=e.length;r--;)if(255===(t=e.readUInt8(r)))e.writeUInt8(0,r);else{t++,e.writeUInt8(t,r);break}}},9825:function(e,t,r){var i=r(4734);t.encrypt=function(e,t){var r=i(t,e._prev);return e._prev=e._cipher.encryptBlock(r),e._prev},t.decrypt=function(e,t){var r=e._prev;return e._prev=t,i(e._cipher.decryptBlock(t),r)}},321:function(e,t,r){var i=r(6911).Buffer,n=r(4734);function a(e,t,r){var a=t.length,o=n(t,e._cache);return e._cache=e._cache.slice(a),e._prev=i.concat([e._prev,r?t:o]),o}t.encrypt=function(e,t,r){for(var n,o=i.allocUnsafe(0);t.length;)if(0===e._cache.length&&(e._cache=e._cipher.encryptBlock(e._prev),e._prev=i.allocUnsafe(0)),e._cache.length<=t.length)n=e._cache.length,o=i.concat([o,a(e,t.slice(0,n),r)]),t=t.slice(n);else{o=i.concat([o,a(e,t,r)]);break}return o}},3147:function(e,t,r){var i=r(6911).Buffer;function n(e,t,r){for(var i,n,o,s=-1,u=8,f=0;++s<u;)i=e._cipher.encryptBlock(e._prev),n=t&1<<7-s?128:0,f+=(128&(o=i[0]^n))>>s%8,e._prev=a(e._prev,r?n:o);return f}function a(e,t){var r=e.length,n=-1,a=i.allocUnsafe(e.length);for(e=i.concat([e,i.from([t])]);++n<r;)a[n]=e[n]<<1|e[n+1]>>7;return a}t.encrypt=function(e,t,r){for(var a=t.length,o=i.allocUnsafe(a),s=-1;++s<a;)o[s]=n(e,t[s],r);return o}},2430:function(e,t,r){var i=r(6911).Buffer;function n(e,t,r){var n=e._cipher.encryptBlock(e._prev)[0]^t;return e._prev=i.concat([e._prev.slice(1),i.from([r?t:n])]),n}t.encrypt=function(e,t,r){for(var a=t.length,o=i.allocUnsafe(a),s=-1;++s<a;)o[s]=n(e,t[s],r);return o}},3361:function(e,t,r){var i=r(4734),n=r(6911).Buffer,a=r(598);function o(e){var t=e._cipher.encryptBlockRaw(e._prev);return a(e._prev),t}var s=16;t.encrypt=function(e,t){var r=Math.ceil(t.length/s),a=e._cache.length;e._cache=n.concat([e._cache,n.allocUnsafe(r*s)]);for(var u=0;u<r;u++){var f=o(e),c=a+u*s;e._cache.writeUInt32BE(f[0],c+0),e._cache.writeUInt32BE(f[1],c+4),e._cache.writeUInt32BE(f[2],c+8),e._cache.writeUInt32BE(f[3],c+12)}var d=e._cache.slice(0,t.length);return e._cache=e._cache.slice(t.length),i(t,d)}},1590:function(e,t){t.encrypt=function(e,t){return e._cipher.encryptBlock(t)},t.decrypt=function(e,t){return e._cipher.decryptBlock(t)}},6370:function(e,t,r){var i={ECB:r(1590),CBC:r(9825),CFB:r(321),CFB8:r(2430),CFB1:r(3147),OFB:r(3412),CTR:r(3361),GCM:r(3361)},n=r(5866);for(var a in n)n[a].module=i[n[a].mode];e.exports=n},3412:function(e,t,r){var n=r(4734);function a(e){return e._prev=e._cipher.encryptBlock(e._prev),e._prev}t.encrypt=function(e,t){for(;e._cache.length<t.length;)e._cache=i.Buffer.concat([e._cache,a(e)]);var r=e._cache.slice(0,t.length);return e._cache=e._cache.slice(t.length),n(t,r)}},126:function(e,t,r){var i=r(1387),n=r(6911).Buffer,a=r(1043);function o(e,t,r,o){a.call(this),this._cipher=new i.AES(t),this._prev=n.from(r),this._cache=n.allocUnsafe(0),this._secCache=n.allocUnsafe(0),this._decrypt=o,this._mode=e}r(3782)(o,a),o.prototype._update=function(e){return this._mode.encrypt(this,e,this._decrypt)},o.prototype._final=function(){this._cipher.scrub()},e.exports=o},8996:function(e,t,r){var i=r(5238),n=r(6594),a=r(6370),o=r(6280),s=r(8368);function u(e,t){if(a[e=e.toLowerCase()])r=a[e].key,i=a[e].iv;else if(o[e])r=8*o[e].key,i=o[e].iv;else throw TypeError("invalid suite type");var r,i,n=s(t,!1,r,i);return c(e,n.key,n.iv)}function f(e,t,r){if(a[e=e.toLowerCase()])return n.createCipheriv(e,t,r);if(o[e])return new i({key:t,iv:r,mode:e});throw TypeError("invalid suite type")}function c(e,t,r){if(a[e=e.toLowerCase()])return n.createDecipheriv(e,t,r);if(o[e])return new i({key:t,iv:r,mode:e,decrypt:!0});throw TypeError("invalid suite type")}function d(){return Object.keys(o).concat(n.getCiphers())}t.createCipher=t.Cipher=function(e,t){if(a[e=e.toLowerCase()])r=a[e].key,i=a[e].iv;else if(o[e])r=8*o[e].key,i=o[e].iv;else throw TypeError("invalid suite type");var r,i,n=s(t,!1,r,i);return f(e,n.key,n.iv)},t.createCipheriv=t.Cipheriv=f,t.createDecipher=t.Decipher=u,t.createDecipheriv=t.Decipheriv=c,t.listCiphers=t.getCiphers=d},5238:function(e,t,r){var i=r(1043),n=r(9536),a=r(3782),o=r(6911).Buffer,s={"des-ede3-cbc":n.CBC.instantiate(n.EDE),"des-ede3":n.EDE,"des-ede-cbc":n.CBC.instantiate(n.EDE),"des-ede":n.EDE,"des-cbc":n.CBC.instantiate(n.DES),"des-ecb":n.DES};function u(e){i.call(this);var t,r=e.mode.toLowerCase(),n=s[r];t=e.decrypt?"decrypt":"encrypt";var a=e.key;o.isBuffer(a)||(a=o.from(a)),("des-ede"===r||"des-ede-cbc"===r)&&(a=o.concat([a,a.slice(0,8)]));var u=e.iv;o.isBuffer(u)||(u=o.from(u)),this._des=n.create({key:a,iv:u,type:t})}s.des=s["des-cbc"],s.des3=s["des-ede3-cbc"],e.exports=u,a(u,i),u.prototype._update=function(e){return o.from(this._des.update(e))},u.prototype._final=function(){return o.from(this._des.final())}},6280:function(e,t){t["des-ecb"]={key:8,iv:0},t["des-cbc"]=t.des={key:8,iv:8},t["des-ede3-cbc"]=t.des3={key:24,iv:8},t["des-ede3"]={key:24,iv:0},t["des-ede-cbc"]={key:16,iv:8},t["des-ede"]={key:16,iv:0}},7166:function(e,t,r){var n=r(711),a=r(7223);function o(e){var t=u(e);return{blinder:t.toRed(n.mont(e.modulus)).redPow(new n(e.publicExponent)).fromRed(),unblinder:t.invm(e.modulus)}}function s(e,t){var r=o(t),a=t.modulus.byteLength();n.mont(t.modulus);var s=new n(e).mul(r.blinder).umod(t.modulus),u=s.toRed(n.mont(t.prime1)),f=s.toRed(n.mont(t.prime2)),c=t.coefficient,d=t.prime1,l=t.prime2,h=u.redPow(t.exponent1),p=f.redPow(t.exponent2);h=h.fromRed(),p=p.fromRed();var m=h.isub(p).imul(c).umod(d);return m.imul(l),p.iadd(m),new i.Buffer(p.imul(r.unblinder).umod(t.modulus).toArray(!1,a))}function u(e){for(var t=e.modulus.byteLength(),r=new n(a(t));r.cmp(e.modulus)>=0||!r.umod(e.prime1)||!r.umod(e.prime2);)r=new n(a(t));return r}e.exports=s,s.getr=u},9276:function(e,t,r){e.exports=r(2908)},4078:function(e,t,r){var i=r(6911).Buffer,n=r(9739),a=r(3726),o=r(3782),s=r(9807),u=r(4013),f=r(2908);function c(e){a.Writable.call(this);var t=f[e];if(!t)throw Error("Unknown message digest");this._hashType=t.hash,this._hash=n(t.hash),this._tag=t.id,this._signType=t.sign}function d(e){a.Writable.call(this);var t=f[e];if(!t)throw Error("Unknown message digest");this._hash=n(t.hash),this._tag=t.id,this._signType=t.sign}function l(e){return new c(e)}function h(e){return new d(e)}Object.keys(f).forEach(function(e){f[e].id=i.from(f[e].id,"hex"),f[e.toLowerCase()]=f[e]}),o(c,a.Writable),c.prototype._write=function(e,t,r){this._hash.update(e),r()},c.prototype.update=function(e,t){return"string"==typeof e&&(e=i.from(e,t)),this._hash.update(e),this},c.prototype.sign=function(e,t){this.end();var r=s(this._hash.digest(),e,this._hashType,this._signType,this._tag);return t?r.toString(t):r},o(d,a.Writable),d.prototype._write=function(e,t,r){this._hash.update(e),r()},d.prototype.update=function(e,t){return"string"==typeof e&&(e=i.from(e,t)),this._hash.update(e),this},d.prototype.verify=function(e,t,r){return"string"==typeof t&&(t=i.from(t,r)),this.end(),u(t,this._hash.digest(),e,this._signType,this._tag)},e.exports={Sign:l,Verify:h,createSign:l,createVerify:h}},9807:function(e,t,r){var i=r(6911).Buffer,n=r(4873),a=r(7166),o=r(949).ec,s=r(1670),u=r(9902),f=r(9267);function c(e,t){var r=f[t.curve.join(".")];if(!r)throw Error("unknown curve "+t.curve.join("."));var n=new o(r).keyFromPrivate(t.privateKey).sign(e);return i.from(n.toDER())}function d(e,t,r){for(var i,n=t.params.priv_key,a=t.params.p,o=t.params.q,u=t.params.g,f=new s(0),c=p(e,o).mod(o),d=!1,m=h(n,o,e,r);!1===d;)f=g(u,i=b(o,m,r),a,o),0===(d=i.invm(o).imul(c.add(n.mul(f))).mod(o)).cmpn(0)&&(d=!1,f=new s(0));return l(f,d)}function l(e,t){e=e.toArray(),t=t.toArray(),128&e[0]&&(e=[0].concat(e)),128&t[0]&&(t=[0].concat(t));var r=[48,e.length+t.length+4,2,e.length];return r=r.concat(e,[2,t.length],t),i.from(r)}function h(e,t,r,a){if((e=i.from(e.toArray())).length<t.byteLength()){var o=i.alloc(t.byteLength()-e.length);e=i.concat([o,e])}var s=r.length,u=m(r,t),f=i.alloc(s);f.fill(1);var c=i.alloc(s);return c=n(a,c).update(f).update(i.from([0])).update(e).update(u).digest(),f=n(a,c).update(f).digest(),c=n(a,c).update(f).update(i.from([1])).update(e).update(u).digest(),f=n(a,c).update(f).digest(),{k:c,v:f}}function p(e,t){var r=new s(e),i=(e.length<<3)-t.bitLength();return i>0&&r.ishrn(i),r}function m(e,t){e=(e=p(e,t)).mod(t);var r=i.from(e.toArray());if(r.length<t.byteLength()){var n=i.alloc(t.byteLength()-r.length);r=i.concat([n,r])}return r}function b(e,t,r){var a,o;do{for(a=i.alloc(0);8*a.length<e.bitLength();)t.v=n(r,t.k).update(t.v).digest(),a=i.concat([a,t.v]);o=p(a,e),t.k=n(r,t.k).update(t.v).update(i.from([0])).digest(),t.v=n(r,t.k).update(t.v).digest()}while(-1!==o.cmp(e))return o}function g(e,t,r,i){return e.toRed(s.mont(r)).redPow(t).fromRed().mod(i)}e.exports=function(e,t,r,n,o){var s=u(t);if(s.curve){if("ecdsa"!==n&&"ecdsa/rsa"!==n)throw Error("wrong private key type");return c(e,s)}if("dsa"===s.type){if("dsa"!==n)throw Error("wrong private key type");return d(e,s,r)}if("rsa"!==n&&"ecdsa/rsa"!==n)throw Error("wrong private key type");e=i.concat([o,e]);for(var f=s.modulus.byteLength(),l=[0,1];e.length+l.length+1<f;)l.push(255);l.push(0);for(var h=-1;++h<e.length;)l.push(e[h]);return a(l,s)},e.exports.getKey=h,e.exports.makeKey=b},4013:function(e,t,r){var i=r(6911).Buffer,n=r(1670),a=r(949).ec,o=r(9902),s=r(9267);function u(e,t,r){var i=s[r.data.algorithm.curve.join(".")];if(!i)throw Error("unknown curve "+r.data.algorithm.curve.join("."));var n=new a(i),o=r.data.subjectPrivateKey.data;return n.verify(t,e,o)}function f(e,t,r){var i=r.data.p,a=r.data.q,s=r.data.g,u=r.data.pub_key,f=o.signature.decode(e,"der"),d=f.s,l=f.r;c(d,a),c(l,a);var h=n.mont(i),p=d.invm(a);return 0===s.toRed(h).redPow(new n(t).mul(p).mod(a)).fromRed().mul(u.toRed(h).redPow(l.mul(p).mod(a)).fromRed()).mod(i).mod(a).cmp(l)}function c(e,t){if(0>=e.cmpn(0)||e.cmp(t)>=t)throw Error("invalid sig")}e.exports=function(e,t,r,a,s){var c=o(r);if("ec"===c.type){if("ecdsa"!==a&&"ecdsa/rsa"!==a)throw Error("wrong public key type");return u(e,t,c)}if("dsa"===c.type){if("dsa"!==a)throw Error("wrong public key type");return f(e,t,c)}if("rsa"!==a&&"ecdsa/rsa"!==a)throw Error("wrong public key type");t=i.concat([s,t]);for(var d=c.modulus.byteLength(),l=[1],h=0;t.length+l.length+2<d;)l.push(255),h++;l.push(0);for(var p=-1;++p<t.length;)l.push(t[p]);l=i.from(l);var m=n.mont(c.modulus);e=(e=new n(e).toRed(m)).redPow(new n(c.publicExponent));var b=+(h<8);for(d=Math.min((e=i.from(e.fromRed().toArray())).length,l.length),e.length!==l.length&&(b=1),p=-1;++p<d;)b|=e[p]^l[p];return 0===b}},4734:function(e){e.exports=function(e,t){for(var r=Math.min(e.length,t.length),n=new i.Buffer(r),a=0;a<r;++a)n[a]=e[a]^t[a];return n}},1043:function(e,t,r){var i=r(6911).Buffer,n=r(2781).Transform,a=r(1576).StringDecoder;function o(e){n.call(this),this.hashMode="string"==typeof e,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}r(3782)(o,n),o.prototype.update=function(e,t,r){"string"==typeof e&&(e=i.from(e,t));var n=this._update(e);return this.hashMode?this:(r&&(n=this._toString(n,r)),n)},o.prototype.setAutoPadding=function(){},o.prototype.getAuthTag=function(){throw Error("trying to get auth tag in unsupported state")},o.prototype.setAuthTag=function(){throw Error("trying to set auth tag in unsupported state")},o.prototype.setAAD=function(){throw Error("trying to set aad in unsupported state")},o.prototype._transform=function(e,t,r){var i;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(e){i=e}finally{r(i)}},o.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(e){t=e}e(t)},o.prototype._finalOrDigest=function(e){var t=this.__final()||i.alloc(0);return e&&(t=this._toString(t,e,!0)),t},o.prototype._toString=function(e,t,r){if(this._decoder||(this._decoder=new a(t),this._encoding=t),this._encoding!==t)throw Error("can't switch encodings");var i=this._decoder.write(e);return r&&(i+=this._decoder.end()),i},e.exports=o},9942:function(e,t,r){var n=r(949),a=r(711);e.exports=function(e){return new s(e)};var o={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function s(e){this.curveType=o[e],this.curveType||(this.curveType={name:e}),this.curve=new n.ec(this.curveType.name),this.keys=void 0}function u(e,t,r){Array.isArray(e)||(e=e.toArray());var n=new i.Buffer(e);if(r&&n.length<r){var a=new i.Buffer(r-n.length);a.fill(0),n=i.Buffer.concat([a,n])}return t?n.toString(t):n}o.p224=o.secp224r1,o.p256=o.secp256r1=o.prime256v1,o.p192=o.secp192r1=o.prime192v1,o.p384=o.secp384r1,o.p521=o.secp521r1,s.prototype.generateKeys=function(e,t){return this.keys=this.curve.genKeyPair(),this.getPublicKey(e,t)},s.prototype.computeSecret=function(e,t,r){return t=t||"utf8",i.Buffer.isBuffer(e)||(e=new i.Buffer(e,t)),u(this.curve.keyFromPublic(e).getPublic().mul(this.keys.getPrivate()).getX(),r,this.curveType.byteLength)},s.prototype.getPublicKey=function(e,t){var r=this.keys.getPublic("compressed"===t,!0);return"hybrid"===t&&(r[r.length-1]%2?r[0]=7:r[0]=6),u(r,e)},s.prototype.getPrivateKey=function(e){return u(this.keys.getPrivate(),e)},s.prototype.setPublicKey=function(e,t){return t=t||"utf8",i.Buffer.isBuffer(e)||(e=new i.Buffer(e,t)),this.keys._importPublic(e),this},s.prototype.setPrivateKey=function(e,t){t=t||"utf8",i.Buffer.isBuffer(e)||(e=new i.Buffer(e,t));var r=new a(e);return r=r.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(r),this}},9739:function(e,t,r){"use strict";var i=r(3782),n=r(3533),a=r(3225),o=r(4371),s=r(1043);function u(e){s.call(this,"digest"),this._hash=e}i(u,s),u.prototype._update=function(e){this._hash.update(e)},u.prototype._final=function(){return this._hash.digest()},e.exports=function(e){return"md5"===(e=e.toLowerCase())?new n:"rmd160"===e||"ripemd160"===e?new a:new u(o(e))}},450:function(e,t,r){var i=r(3533);e.exports=function(e){return(new i).update(e).digest()}},4873:function(e,t,r){"use strict";var i=r(3782),n=r(8119),a=r(1043),o=r(6911).Buffer,s=r(450),u=r(3225),f=r(4371),c=o.alloc(128);function d(e,t){a.call(this,"digest"),"string"==typeof t&&(t=o.from(t));var r="sha512"===e||"sha384"===e?128:64;this._alg=e,this._key=t,t.length>r?t=("rmd160"===e?new u:f(e)).update(t).digest():t.length<r&&(t=o.concat([t,c],r));for(var i=this._ipad=o.allocUnsafe(r),n=this._opad=o.allocUnsafe(r),s=0;s<r;s++)i[s]=54^t[s],n[s]=92^t[s];this._hash="rmd160"===e?new u:f(e),this._hash.update(i)}i(d,a),d.prototype._update=function(e){this._hash.update(e)},d.prototype._final=function(){var e=this._hash.digest();return("rmd160"===this._alg?new u:f(this._alg)).update(this._opad).update(e).digest()},e.exports=function(e,t){return"rmd160"===(e=e.toLowerCase())||"ripemd160"===e?new d("rmd160",t):"md5"===e?new n(s,t):new d(e,t)}},8119:function(e,t,r){"use strict";var i=r(3782),n=r(6911).Buffer,a=r(1043),o=n.alloc(128),s=64;function u(e,t){a.call(this,"digest"),"string"==typeof t&&(t=n.from(t)),this._alg=e,this._key=t,t.length>s?t=e(t):t.length<s&&(t=n.concat([t,o],s));for(var r=this._ipad=n.allocUnsafe(s),i=this._opad=n.allocUnsafe(s),u=0;u<s;u++)r[u]=54^t[u],i[u]=92^t[u];this._hash=[r]}i(u,a),u.prototype._update=function(e){this._hash.push(e)},u.prototype._final=function(){var e=this._alg(n.concat(this._hash));return this._alg(n.concat([this._opad,e]))},e.exports=u},9536:function(e,t,r){"use strict";t.utils=r(5334),t.Cipher=r(9876),t.DES=r(1016),t.CBC=r(8641),t.EDE=r(6159)},8641:function(e,t,r){"use strict";var i=r(3523),n=r(3782),a={};function o(e){i.equal(e.length,8,"Invalid IV length"),this.iv=Array(8);for(var t=0;t<this.iv.length;t++)this.iv[t]=e[t]}t.instantiate=function(e){function t(t){e.call(this,t),this._cbcInit()}n(t,e);for(var r=Object.keys(a),i=0;i<r.length;i++){var o=r[i];t.prototype[o]=a[o]}return t.create=function(e){return new t(e)},t},a._cbcInit=function(){var e=new o(this.options.iv);this._cbcState=e},a._update=function(e,t,r,i){var n=this._cbcState,a=this.constructor.super_.prototype,o=n.iv;if("encrypt"===this.type){for(var s=0;s<this.blockSize;s++)o[s]^=e[t+s];a._update.call(this,o,0,r,i);for(var s=0;s<this.blockSize;s++)o[s]=r[i+s]}else{a._update.call(this,e,t,r,i);for(var s=0;s<this.blockSize;s++)r[i+s]^=o[s];for(var s=0;s<this.blockSize;s++)o[s]=e[t+s]}}},9876:function(e,t,r){"use strict";var i=r(3523);function n(e){this.options=e,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=Array(this.blockSize),this.bufferOff=0}e.exports=n,n.prototype._init=function(){},n.prototype.update=function(e){return 0===e.length?[]:"decrypt"===this.type?this._updateDecrypt(e):this._updateEncrypt(e)},n.prototype._buffer=function(e,t){for(var r=Math.min(this.buffer.length-this.bufferOff,e.length-t),i=0;i<r;i++)this.buffer[this.bufferOff+i]=e[t+i];return this.bufferOff+=r,r},n.prototype._flushBuffer=function(e,t){return this._update(this.buffer,0,e,t),this.bufferOff=0,this.blockSize},n.prototype._updateEncrypt=function(e){var t=0,r=0,i=Array(((this.bufferOff+e.length)/this.blockSize|0)*this.blockSize);0!==this.bufferOff&&(t+=this._buffer(e,t),this.bufferOff===this.buffer.length&&(r+=this._flushBuffer(i,r)));for(var n=e.length-(e.length-t)%this.blockSize;t<n;t+=this.blockSize)this._update(e,t,i,r),r+=this.blockSize;for(;t<e.length;t++,this.bufferOff++)this.buffer[this.bufferOff]=e[t];return i},n.prototype._updateDecrypt=function(e){for(var t=0,r=0,i=Math.ceil((this.bufferOff+e.length)/this.blockSize)-1,n=Array(i*this.blockSize);i>0;i--)t+=this._buffer(e,t),r+=this._flushBuffer(n,r);return t+=this._buffer(e,t),n},n.prototype.final=function(e){var t,r;return(e&&(t=this.update(e)),r="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t)?t.concat(r):r},n.prototype._pad=function(e,t){if(0===t)return!1;for(;t<e.length;)e[t++]=0;return!0},n.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var e=Array(this.blockSize);return this._update(this.buffer,0,e,0),e},n.prototype._unpad=function(e){return e},n.prototype._finalDecrypt=function(){i.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var e=Array(this.blockSize);return this._flushBuffer(e,0),this._unpad(e)}},1016:function(e,t,r){"use strict";var i=r(3523),n=r(3782),a=r(5334),o=r(9876);function s(){this.tmp=[,,],this.keys=null}function u(e){o.call(this,e);var t=new s;this._desState=t,this.deriveKeys(t,e.key)}n(u,o),e.exports=u,u.create=function(e){return new u(e)};var f=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];u.prototype.deriveKeys=function(e,t){e.keys=Array(32),i.equal(t.length,this.blockSize,"Invalid key length");var r=a.readUInt32BE(t,0),n=a.readUInt32BE(t,4);a.pc1(r,n,e.tmp,0),r=e.tmp[0],n=e.tmp[1];for(var o=0;o<e.keys.length;o+=2){var s=f[o>>>1];r=a.r28shl(r,s),n=a.r28shl(n,s),a.pc2(r,n,e.keys,o)}},u.prototype._update=function(e,t,r,i){var n=this._desState,o=a.readUInt32BE(e,t),s=a.readUInt32BE(e,t+4);a.ip(o,s,n.tmp,0),o=n.tmp[0],s=n.tmp[1],"encrypt"===this.type?this._encrypt(n,o,s,n.tmp,0):this._decrypt(n,o,s,n.tmp,0),o=n.tmp[0],s=n.tmp[1],a.writeUInt32BE(r,o,i),a.writeUInt32BE(r,s,i+4)},u.prototype._pad=function(e,t){for(var r=e.length-t,i=t;i<e.length;i++)e[i]=r;return!0},u.prototype._unpad=function(e){for(var t=e[e.length-1],r=e.length-t;r<e.length;r++)i.equal(e[r],t);return e.slice(0,e.length-t)},u.prototype._encrypt=function(e,t,r,i,n){for(var o=t,s=r,u=0;u<e.keys.length;u+=2){var f=e.keys[u],c=e.keys[u+1];a.expand(s,e.tmp,0),f^=e.tmp[0],c^=e.tmp[1];var d=a.substitute(f,c),l=a.permute(d),h=s;s=(o^l)>>>0,o=h}a.rip(s,o,i,n)},u.prototype._decrypt=function(e,t,r,i,n){for(var o=r,s=t,u=e.keys.length-2;u>=0;u-=2){var f=e.keys[u],c=e.keys[u+1];a.expand(o,e.tmp,0),f^=e.tmp[0],c^=e.tmp[1];var d=a.substitute(f,c),l=a.permute(d),h=o;o=(s^l)>>>0,s=h}a.rip(o,s,i,n)}},6159:function(e,t,r){"use strict";var i=r(3523),n=r(3782),a=r(9876),o=r(1016);function s(e,t){i.equal(t.length,24,"Invalid key length");var r=t.slice(0,8),n=t.slice(8,16),a=t.slice(16,24);"encrypt"===e?this.ciphers=[o.create({type:"encrypt",key:r}),o.create({type:"decrypt",key:n}),o.create({type:"encrypt",key:a})]:this.ciphers=[o.create({type:"decrypt",key:a}),o.create({type:"encrypt",key:n}),o.create({type:"decrypt",key:r})]}function u(e){a.call(this,e);var t=new s(this.type,this.options.key);this._edeState=t}n(u,a),e.exports=u,u.create=function(e){return new u(e)},u.prototype._update=function(e,t,r,i){var n=this._edeState;n.ciphers[0]._update(e,t,r,i),n.ciphers[1]._update(r,i,r,i),n.ciphers[2]._update(r,i,r,i)},u.prototype._pad=o.prototype._pad,u.prototype._unpad=o.prototype._unpad},5334:function(e,t){"use strict";t.readUInt32BE=function(e,t){return(e[0+t]<<24|e[1+t]<<16|e[2+t]<<8|e[3+t])>>>0},t.writeUInt32BE=function(e,t,r){e[0+r]=t>>>24,e[1+r]=t>>>16&255,e[2+r]=t>>>8&255,e[3+r]=255&t},t.ip=function(e,t,r,i){for(var n=0,a=0,o=6;o>=0;o-=2){for(var s=0;s<=24;s+=8)n<<=1,n|=t>>>s+o&1;for(var s=0;s<=24;s+=8)n<<=1,n|=e>>>s+o&1}for(var o=6;o>=0;o-=2){for(var s=1;s<=25;s+=8)a<<=1,a|=t>>>s+o&1;for(var s=1;s<=25;s+=8)a<<=1,a|=e>>>s+o&1}r[i+0]=n>>>0,r[i+1]=a>>>0},t.rip=function(e,t,r,i){for(var n=0,a=0,o=0;o<4;o++)for(var s=24;s>=0;s-=8)n<<=1,n|=t>>>s+o&1,n<<=1,n|=e>>>s+o&1;for(var o=4;o<8;o++)for(var s=24;s>=0;s-=8)a<<=1,a|=t>>>s+o&1,a<<=1,a|=e>>>s+o&1;r[i+0]=n>>>0,r[i+1]=a>>>0},t.pc1=function(e,t,r,i){for(var n=0,a=0,o=7;o>=5;o--){for(var s=0;s<=24;s+=8)n<<=1,n|=t>>s+o&1;for(var s=0;s<=24;s+=8)n<<=1,n|=e>>s+o&1}for(var s=0;s<=24;s+=8)n<<=1,n|=t>>s+o&1;for(var o=1;o<=3;o++){for(var s=0;s<=24;s+=8)a<<=1,a|=t>>s+o&1;for(var s=0;s<=24;s+=8)a<<=1,a|=e>>s+o&1}for(var s=0;s<=24;s+=8)a<<=1,a|=e>>s+o&1;r[i+0]=n>>>0,r[i+1]=a>>>0},t.r28shl=function(e,t){return e<<t&0xfffffff|e>>>28-t};var r=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];t.pc2=function(e,t,i,n){for(var a=0,o=0,s=r.length>>>1,u=0;u<s;u++)a<<=1,a|=e>>>r[u]&1;for(var u=s;u<r.length;u++)o<<=1,o|=t>>>r[u]&1;i[n+0]=a>>>0,i[n+1]=o>>>0},t.expand=function(e,t,r){var i=0,n=0;i=(1&e)<<5|e>>>27;for(var a=23;a>=15;a-=4)i<<=6,i|=e>>>a&63;for(var a=11;a>=3;a-=4)n|=e>>>a&63,n<<=6;n|=(31&e)<<1|e>>>31,t[r+0]=i>>>0,t[r+1]=n>>>0};var i=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];t.substitute=function(e,t){for(var r=0,n=0;n<4;n++){var a=e>>>18-6*n&63,o=i[64*n+a];r<<=4,r|=o}for(var n=0;n<4;n++){var a=t>>>18-6*n&63,o=i[256+64*n+a];r<<=4,r|=o}return r>>>0};var n=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];t.permute=function(e){for(var t=0,r=0;r<n.length;r++)t<<=1,t|=e>>>n[r]&1;return t>>>0},t.padSplit=function(e,t,r){for(var i=e.toString(2);i.length<t;)i="0"+i;for(var n=[],a=0;a<t;a+=r)n.push(i.slice(a,a+r));return n.join(" ")}},6587:function(e,t,r){var n=r(296),a=r(7992),o=r(373),s={binary:!0,hex:!0,base64:!0};function u(e,t,r,a){return i.Buffer.isBuffer(t)||void 0===s[t]?u(e,"binary",t,r):(t=t||"binary",a=a||"binary",r=r||new i.Buffer([2]),i.Buffer.isBuffer(r)||(r=new i.Buffer(r,a)),"number"==typeof e)?new o(n(e,r),r,!0):(i.Buffer.isBuffer(e)||(e=new i.Buffer(e,t)),new o(e,r,!0))}t.DiffieHellmanGroup=t.createDiffieHellmanGroup=t.getDiffieHellman=function(e){return new o(new i.Buffer(a[e].prime,"hex"),new i.Buffer(a[e].gen,"hex"))},t.createDiffieHellman=t.DiffieHellman=u},373:function(e,t,r){var n=r(711),a=new(r(1354)),o=new n(24),s=new n(11),u=new n(10),f=new n(3),c=new n(7),d=r(296),l=r(7223);function h(e,t){return t=t||"utf8",i.Buffer.isBuffer(e)||(e=new i.Buffer(e,t)),this._pub=new n(e),this}function p(e,t){return t=t||"utf8",i.Buffer.isBuffer(e)||(e=new i.Buffer(e,t)),this._priv=new n(e),this}e.exports=g;var m={};function b(e,t){var r,i=t.toString("hex"),n=[i,e.toString(16)].join("_");if(n in m)return m[n];var l=0;if(e.isEven()||!d.simpleSieve||!d.fermatTest(e)||!a.test(e))return l+=1,"02"===i||"05"===i?l+=8:l+=4,m[n]=l,l;switch(!a.test(e.shrn(1))&&(l+=2),i){case"02":e.mod(o).cmp(s)&&(l+=8);break;case"05":(r=e.mod(u)).cmp(f)&&r.cmp(c)&&(l+=8);break;default:l+=4}return m[n]=l,l}function g(e,t,r){this.setGenerator(t),this.__prime=new n(e),this._prime=n.mont(this.__prime),this._primeLen=e.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,r?(this.setPublicKey=h,this.setPrivateKey=p):this._primeCode=8}function v(e,t){var r=new i.Buffer(e.toArray());return t?r.toString(t):r}Object.defineProperty(g.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=b(this.__prime,this.__gen)),this._primeCode}}),g.prototype.generateKeys=function(){return this._priv||(this._priv=new n(l(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},g.prototype.computeSecret=function(e){var t=(e=(e=new n(e)).toRed(this._prime)).redPow(this._priv).fromRed(),r=new i.Buffer(t.toArray()),a=this.getPrime();if(r.length<a.length){var o=new i.Buffer(a.length-r.length);o.fill(0),r=i.Buffer.concat([o,r])}return r},g.prototype.getPublicKey=function(e){return v(this._pub,e)},g.prototype.getPrivateKey=function(e){return v(this._priv,e)},g.prototype.getPrime=function(e){return v(this.__prime,e)},g.prototype.getGenerator=function(e){return v(this._gen,e)},g.prototype.setGenerator=function(e,t){return t=t||"utf8",i.Buffer.isBuffer(e)||(e=new i.Buffer(e,t)),this.__gen=e,this._gen=new n(e),this}},296:function(e,t,r){var i=r(7223);e.exports=v,v.simpleSieve=b,v.fermatTest=g;var n=r(711),a=new n(24),o=new(r(1354)),s=new n(1),u=new n(2),f=new n(5);new n(16),new n(8);var c=new n(10),d=new n(3);new n(7);var l=new n(11),h=new n(4);new n(12);var p=null;function m(){if(null!==p)return p;var e=1048576,t=[];t[0]=2;for(var r=1,i=3;i<e;i+=2){for(var n=Math.ceil(Math.sqrt(i)),a=0;a<r&&t[a]<=n&&i%t[a]!=0;a++);r!==a&&t[a]<=n||(t[r++]=i)}return p=t,t}function b(e){for(var t=m(),r=0;r<t.length;r++)if(0===e.modn(t[r]))if(0!==e.cmpn(t[r]))return!1;else break;return!0}function g(e){var t=n.mont(e);return 0===u.toRed(t).redPow(e.subn(1)).fromRed().cmpn(1)}function v(e,t){var r,p;if(e<16)if(2===t||5===t)return new n([140,123]);else return new n([140,39]);for(t=new n(t);;){for(r=new n(i(Math.ceil(e/8)));r.bitLength()>e;)r.ishrn(1);if(r.isEven()&&r.iadd(s),r.testn(1)||r.iadd(u),t.cmp(u)){if(!t.cmp(f))for(;r.mod(c).cmp(d);)r.iadd(h)}else for(;r.mod(a).cmp(l);)r.iadd(h);if(b(p=r.shrn(1))&&b(r)&&g(p)&&g(r)&&o.test(p)&&o.test(r))return r}}},949:function(e,t,r){"use strict";var i=t;i.version=r(2531).i8,i.utils=r(4401),i.rand=r(3500),i.curve=r(9359),i.curves=r(6226),i.ec=r(4088),i.eddsa=r(8511)},2727:function(e,t,r){"use strict";var i=r(711),n=r(4401),a=n.getNAF,o=n.getJSF,s=n.assert;function u(e,t){this.type=e,this.p=new i(t.p,16),this.red=t.prime?i.red(t.prime):i.mont(this.p),this.zero=new i(0).toRed(this.red),this.one=new i(1).toRed(this.red),this.two=new i(2).toRed(this.red),this.n=t.n&&new i(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=[,,,,],this._wnafT2=[,,,,],this._wnafT3=[,,,,],this._wnafT4=[,,,,],this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function f(e,t){this.curve=e,this.type=t,this.precomputed=null}e.exports=u,u.prototype.point=function(){throw Error("Not implemented")},u.prototype.validate=function(){throw Error("Not implemented")},u.prototype._fixedNafMul=function(e,t){s(e.precomputed);var r=e._getDoubles(),i=a(t,1,this._bitLength),n=(1<<r.step+1)-(r.step%2==0?2:1);n/=3;for(var o=[],u=0;u<i.length;u+=r.step){for(var f=0,t=u+r.step-1;t>=u;t--)f=(f<<1)+i[t];o.push(f)}for(var c=this.jpoint(null,null,null),d=this.jpoint(null,null,null),l=n;l>0;l--){for(var u=0;u<o.length;u++){var f=o[u];f===l?d=d.mixedAdd(r.points[u]):f===-l&&(d=d.mixedAdd(r.points[u].neg()))}c=c.add(d)}return c.toP()},u.prototype._wnafMul=function(e,t){var r=4,i=e._getNAFPoints(r);r=i.wnd;for(var n=i.points,o=a(t,r,this._bitLength),u=this.jpoint(null,null,null),f=o.length-1;f>=0;f--){for(var t=0;f>=0&&0===o[f];f--)t++;if(f>=0&&t++,u=u.dblp(t),f<0)break;var c=o[f];s(0!==c),u="affine"===e.type?c>0?u.mixedAdd(n[c-1>>1]):u.mixedAdd(n[-c-1>>1].neg()):c>0?u.add(n[c-1>>1]):u.add(n[-c-1>>1].neg())}return"affine"===e.type?u.toP():u},u.prototype._wnafMulAdd=function(e,t,r,i,n){for(var s=this._wnafT1,u=this._wnafT2,f=this._wnafT3,c=0,d=0;d<i;d++){var l=t[d],h=l._getNAFPoints(e);s[d]=h.wnd,u[d]=h.points}for(var d=i-1;d>=1;d-=2){var p=d-1,m=d;if(1!==s[p]||1!==s[m]){f[p]=a(r[p],s[p],this._bitLength),f[m]=a(r[m],s[m],this._bitLength),c=Math.max(f[p].length,c),c=Math.max(f[m].length,c);continue}var b=[t[p],null,null,t[m]];0===t[p].y.cmp(t[m].y)?(b[1]=t[p].add(t[m]),b[2]=t[p].toJ().mixedAdd(t[m].neg())):0===t[p].y.cmp(t[m].y.redNeg())?(b[1]=t[p].toJ().mixedAdd(t[m]),b[2]=t[p].add(t[m].neg())):(b[1]=t[p].toJ().mixedAdd(t[m]),b[2]=t[p].toJ().mixedAdd(t[m].neg()));var g=[-3,-1,-5,-7,0,7,5,1,3],v=o(r[p],r[m]);c=Math.max(v[0].length,c),f[p]=Array(c),f[m]=Array(c);for(var y=0;y<c;y++){var _=0|v[0][y],x=0|v[1][y];f[p][y]=g[(_+1)*3+(x+1)],f[m][y]=0,u[p]=b}}for(var w=this.jpoint(null,null,null),S=this._wnafT4,d=c;d>=0;d--){for(var k=0;d>=0;){for(var $=!0,y=0;y<i;y++)S[y]=0|f[y][d],0!==S[y]&&($=!1);if(!$)break;k++,d--}if(d>=0&&k++,w=w.dblp(k),d<0)break;for(var y=0;y<i;y++){var l,I=S[y];0!==I&&(I>0?l=u[y][I-1>>1]:I<0&&(l=u[y][-I-1>>1].neg()),w="affine"===l.type?w.mixedAdd(l):w.add(l))}}for(var d=0;d<i;d++)u[d]=null;return n?w:w.toP()},u.BasePoint=f,f.prototype.eq=function(){throw Error("Not implemented")},f.prototype.validate=function(){return this.curve.validate(this)},u.prototype.decodePoint=function(e,t){e=n.toArray(e,t);var r=this.p.byteLength();if((4===e[0]||6===e[0]||7===e[0])&&e.length-1==2*r)return 6===e[0]?s(e[e.length-1]%2==0):7===e[0]&&s(e[e.length-1]%2==1),this.point(e.slice(1,1+r),e.slice(1+r,1+2*r));if((2===e[0]||3===e[0])&&e.length-1===r)return this.pointFromX(e.slice(1,1+r),3===e[0]);throw Error("Unknown point format")},f.prototype.encodeCompressed=function(e){return this.encode(e,!0)},f.prototype._encode=function(e){var t=this.curve.p.byteLength(),r=this.getX().toArray("be",t);return e?[this.getY().isEven()?2:3].concat(r):[4].concat(r,this.getY().toArray("be",t))},f.prototype.encode=function(e,t){return n.encode(this._encode(t),e)},f.prototype.precompute=function(e){if(this.precomputed)return this;var t={doubles:null,naf:null,beta:null};return t.naf=this._getNAFPoints(8),t.doubles=this._getDoubles(4,e),t.beta=this._getBeta(),this.precomputed=t,this},f.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var t=this.precomputed.doubles;return!!t&&t.points.length>=Math.ceil((e.bitLength()+1)/t.step)},f.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],i=this,n=0;n<t;n+=e){for(var a=0;a<e;a++)i=i.dbl();r.push(i)}return{step:e,points:r}},f.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var t=[this],r=(1<<e)-1,i=1===r?null:this.dbl(),n=1;n<r;n++)t[n]=t[n-1].add(i);return{wnd:e,points:t}},f.prototype._getBeta=function(){return null},f.prototype.dblp=function(e){for(var t=this,r=0;r<e;r++)t=t.dbl();return t}},2705:function(e,t,r){"use strict";var i=r(4401),n=r(711),a=r(3782),o=r(2727),s=i.assert;function u(e){this.twisted=(0|e.a)!=1,this.mOneA=this.twisted&&(0|e.a)==-1,this.extended=this.mOneA,o.call(this,"edwards",e),this.a=new n(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new n(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new n(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),s(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=(0|e.c)==1}function f(e,t,r,i,a){o.BasePoint.call(this,e,"projective"),null===t&&null===r&&null===i?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new n(t,16),this.y=new n(r,16),this.z=i?new n(i,16):this.curve.one,this.t=a&&new n(a,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}a(u,o),e.exports=u,u.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},u.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},u.prototype.jpoint=function(e,t,r,i){return this.point(e,t,r,i)},u.prototype.pointFromX=function(e,t){(e=new n(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),i=this.c2.redSub(this.a.redMul(r)),a=this.one.redSub(this.c2.redMul(this.d).redMul(r)),o=i.redMul(a.redInvm()),s=o.redSqrt();if(0!==s.redSqr().redSub(o).cmp(this.zero))throw Error("invalid point");var u=s.fromRed().isOdd();return(t&&!u||!t&&u)&&(s=s.redNeg()),this.point(e,s)},u.prototype.pointFromY=function(e,t){(e=new n(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),i=r.redSub(this.c2),a=r.redMul(this.d).redMul(this.c2).redSub(this.a),o=i.redMul(a.redInvm());if(0===o.cmp(this.zero))if(!t)return this.point(this.zero,e);else throw Error("invalid point");var s=o.redSqrt();if(0!==s.redSqr().redSub(o).cmp(this.zero))throw Error("invalid point");return s.fromRed().isOdd()!==t&&(s=s.redNeg()),this.point(s,e)},u.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),r=e.y.redSqr(),i=t.redMul(this.a).redAdd(r),n=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(r)));return 0===i.cmp(n)},a(f,o.BasePoint),u.prototype.pointFromJSON=function(e){return f.fromJSON(this,e)},u.prototype.point=function(e,t,r,i){return new f(this,e,t,r,i)},f.fromJSON=function(e,t){return new f(e,t[0],t[1],t[2])},f.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},f.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},f.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var i=this.curve._mulA(e),n=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),a=i.redAdd(t),o=a.redSub(r),s=i.redSub(t),u=n.redMul(o),f=a.redMul(s),c=n.redMul(s),d=o.redMul(a);return this.curve.point(u,f,d,c)},f.prototype._projDbl=function(){var e,t,r,i=this.x.redAdd(this.y).redSqr(),n=this.x.redSqr(),a=this.y.redSqr();if(this.curve.twisted){var o=this.curve._mulA(n),s=o.redAdd(a);if(this.zOne)e=i.redSub(n).redSub(a).redMul(s.redSub(this.curve.two)),t=s.redMul(o.redSub(a)),r=s.redSqr().redSub(s).redSub(s);else{var u=this.z.redSqr(),f=s.redSub(u).redISub(u);e=i.redSub(n).redISub(a).redMul(f),t=s.redMul(o.redSub(a)),r=s.redMul(f)}}else{var o=n.redAdd(a),u=this.curve._mulC(this.z).redSqr(),f=o.redSub(u).redSub(u);e=this.curve._mulC(i.redISub(o)).redMul(f),t=this.curve._mulC(o).redMul(n.redISub(a)),r=o.redMul(f)}return this.curve.point(e,t,r)},f.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},f.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),r=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),i=this.t.redMul(this.curve.dd).redMul(e.t),n=this.z.redMul(e.z.redAdd(e.z)),a=r.redSub(t),o=n.redSub(i),s=n.redAdd(i),u=r.redAdd(t),f=a.redMul(o),c=s.redMul(u),d=a.redMul(u),l=o.redMul(s);return this.curve.point(f,c,l,d)},f.prototype._projAdd=function(e){var t,r,i=this.z.redMul(e.z),n=i.redSqr(),a=this.x.redMul(e.x),o=this.y.redMul(e.y),s=this.curve.d.redMul(a).redMul(o),u=n.redSub(s),f=n.redAdd(s),c=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(a).redISub(o),d=i.redMul(u).redMul(c);return this.curve.twisted?(t=i.redMul(f).redMul(o.redSub(this.curve._mulA(a))),r=u.redMul(f)):(t=i.redMul(f).redMul(o.redSub(a)),r=this.curve._mulC(u).redMul(f)),this.curve.point(d,t,r)},f.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},f.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},f.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},f.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},f.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},f.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},f.prototype.getX=function(){return this.normalize(),this.x.fromRed()},f.prototype.getY=function(){return this.normalize(),this.y.fromRed()},f.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},f.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var r=e.clone(),i=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(i),0===this.x.cmp(t))return!0}},f.prototype.toP=f.prototype.normalize,f.prototype.mixedAdd=f.prototype.add},9359:function(e,t,r){"use strict";var i=t;i.base=r(2727),i.short=r(4720),i.mont=r(6653),i.edwards=r(2705)},6653:function(e,t,r){"use strict";var i=r(711),n=r(3782),a=r(2727),o=r(4401);function s(e){a.call(this,"mont",e),this.a=new i(e.a,16).toRed(this.red),this.b=new i(e.b,16).toRed(this.red),this.i4=new i(4).toRed(this.red).redInvm(),this.two=new i(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function u(e,t,r){a.BasePoint.call(this,e,"projective"),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new i(t,16),this.z=new i(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}n(s,a),e.exports=s,s.prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),i=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t);return 0===i.redSqrt().redSqr().cmp(i)},n(u,a.BasePoint),s.prototype.decodePoint=function(e,t){return this.point(o.toArray(e,t),1)},s.prototype.point=function(e,t){return new u(this,e,t)},s.prototype.pointFromJSON=function(e){return u.fromJSON(this,e)},u.prototype.precompute=function(){},u.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},u.fromJSON=function(e,t){return new u(e,t[0],t[1]||e.one)},u.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},u.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},u.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),r=e.redSub(t),i=e.redMul(t),n=r.redMul(t.redAdd(this.curve.a24.redMul(r)));return this.curve.point(i,n)},u.prototype.add=function(){throw Error("Not supported on Montgomery curve")},u.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),i=this.x.redSub(this.z),n=e.x.redAdd(e.z),a=e.x.redSub(e.z).redMul(r),o=n.redMul(i),s=t.z.redMul(a.redAdd(o).redSqr()),u=t.x.redMul(a.redISub(o).redSqr());return this.curve.point(s,u)},u.prototype.mul=function(e){for(var t=e.clone(),r=this,i=this.curve.point(null,null),n=this,a=[];0!==t.cmpn(0);t.iushrn(1))a.push(t.andln(1));for(var o=a.length-1;o>=0;o--)0===a[o]?(r=r.diffAdd(i,n),i=i.dbl()):(i=r.diffAdd(i,n),r=r.dbl());return i},u.prototype.mulAdd=function(){throw Error("Not supported on Montgomery curve")},u.prototype.jumlAdd=function(){throw Error("Not supported on Montgomery curve")},u.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},u.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},u.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},4720:function(e,t,r){"use strict";var i=r(4401),n=r(711),a=r(3782),o=r(2727),s=i.assert;function u(e){o.call(this,"short",e),this.a=new n(e.a,16).toRed(this.red),this.b=new n(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=[,,,,],this._endoWnafT2=[,,,,]}function f(e,t,r,i){o.BasePoint.call(this,e,"affine"),null===t&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new n(t,16),this.y=new n(r,16),i&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function c(e,t,r,i){o.BasePoint.call(this,e,"jacobian"),null===t&&null===r&&null===i?(this.x=this.curve.one,this.y=this.curve.one,this.z=new n(0)):(this.x=new n(t,16),this.y=new n(r,16),this.z=new n(i,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}a(u,o),e.exports=u,u.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){if(e.beta)t=new n(e.beta,16).toRed(this.red);else{var t,r,i,a=this._getEndoRoots(this.p);t=(t=0>a[0].cmp(a[1])?a[0]:a[1]).toRed(this.red)}if(e.lambda)r=new n(e.lambda,16);else{var o=this._getEndoRoots(this.n);0===this.g.mul(o[0]).x.cmp(this.g.x.redMul(t))?r=o[0]:(r=o[1],s(0===this.g.mul(r).x.cmp(this.g.x.redMul(t))))}return i=e.basis?e.basis.map(function(e){return{a:new n(e.a,16),b:new n(e.b,16)}}):this._getEndoBasis(r),{beta:t,lambda:r,basis:i}}},u.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:n.mont(e),r=new n(2).toRed(t).redInvm(),i=r.redNeg(),a=new n(3).toRed(t).redNeg().redSqrt().redMul(r);return[i.redAdd(a).fromRed(),i.redSub(a).fromRed()]},u.prototype._getEndoBasis=function(e){for(var t,r,i,a,o,s,u,f,c,d=this.n.ushrn(Math.floor(this.n.bitLength()/2)),l=e,h=this.n.clone(),p=new n(1),m=new n(0),b=new n(0),g=new n(1),v=0;0!==l.cmpn(0);){var y=h.div(l);f=h.sub(y.mul(l)),c=b.sub(y.mul(p));var _=g.sub(y.mul(m));if(!i&&0>f.cmp(d))t=u.neg(),r=p,i=f.neg(),a=c;else if(i&&2==++v)break;u=f,h=l,l=f,b=p,p=c,g=m,m=_}o=f.neg(),s=c;var x=i.sqr().add(a.sqr());return o.sqr().add(s.sqr()).cmp(x)>=0&&(o=t,s=r),i.negative&&(i=i.neg(),a=a.neg()),o.negative&&(o=o.neg(),s=s.neg()),[{a:i,b:a},{a:o,b:s}]},u.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],i=t[1],n=i.b.mul(e).divRound(this.n),a=r.b.neg().mul(e).divRound(this.n),o=n.mul(r.a),s=a.mul(i.a),u=n.mul(r.b),f=a.mul(i.b);return{k1:e.sub(o).sub(s),k2:u.add(f).neg()}},u.prototype.pointFromX=function(e,t){(e=new n(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),i=r.redSqrt();if(0!==i.redSqr().redSub(r).cmp(this.zero))throw Error("invalid point");var a=i.fromRed().isOdd();return(t&&!a||!t&&a)&&(i=i.redNeg()),this.point(e,i)},u.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,i=this.a.redMul(t),n=t.redSqr().redMul(t).redIAdd(i).redIAdd(this.b);return 0===r.redSqr().redISub(n).cmpn(0)},u.prototype._endoWnafMulAdd=function(e,t,r){for(var i=this._endoWnafT1,n=this._endoWnafT2,a=0;a<e.length;a++){var o=this._endoSplit(t[a]),s=e[a],u=s._getBeta();o.k1.negative&&(o.k1.ineg(),s=s.neg(!0)),o.k2.negative&&(o.k2.ineg(),u=u.neg(!0)),i[2*a]=s,i[2*a+1]=u,n[2*a]=o.k1,n[2*a+1]=o.k2}for(var f=this._wnafMulAdd(1,i,n,2*a,r),c=0;c<2*a;c++)i[c]=null,n[c]=null;return f},a(f,o.BasePoint),u.prototype.point=function(e,t,r){return new f(this,e,t,r)},u.prototype.pointFromJSON=function(e,t){return f.fromJSON(this,e,t)},f.prototype._getBeta=function(){if(this.curve.endo){var e=this.precomputed;if(e&&e.beta)return e.beta;var t=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var r=this.curve,i=function(e){return r.point(e.x.redMul(r.endo.beta),e.y)};e.beta=t,t.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(i)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(i)}}}return t}},f.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},f.fromJSON=function(e,t,r){"string"==typeof t&&(t=JSON.parse(t));var i=e.point(t[0],t[1],r);if(!t[2])return i;function n(t){return e.point(t[0],t[1],r)}var a=t[2];return i.precomputed={beta:null,doubles:a.doubles&&{step:a.doubles.step,points:[i].concat(a.doubles.points.map(n))},naf:a.naf&&{wnd:a.naf.wnd,points:[i].concat(a.naf.points.map(n))}},i},f.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},f.prototype.isInfinity=function(){return this.inf},f.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e)||0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var r=t.redSqr().redISub(this.x).redISub(e.x),i=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,i)},f.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,r=this.x.redSqr(),i=e.redInvm(),n=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(i),a=n.redSqr().redISub(this.x.redAdd(this.x)),o=n.redMul(this.x.redSub(a)).redISub(this.y);return this.curve.point(a,o)},f.prototype.getX=function(){return this.x.fromRed()},f.prototype.getY=function(){return this.y.fromRed()},f.prototype.mul=function(e){return(e=new n(e,16),this.isInfinity())?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},f.prototype.mulAdd=function(e,t,r){var i=[this,t],n=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(i,n):this.curve._wnafMulAdd(1,i,n,2)},f.prototype.jmulAdd=function(e,t,r){var i=[this,t],n=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(i,n,!0):this.curve._wnafMulAdd(1,i,n,2,!0)},f.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},f.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,i=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(i)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(i)}}}return t},f.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},a(c,o.BasePoint),u.prototype.jpoint=function(e,t,r){return new c(this,e,t,r)},c.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),i=this.y.redMul(t).redMul(e);return this.curve.point(r,i)},c.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},c.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),i=this.x.redMul(t),n=e.x.redMul(r),a=this.y.redMul(t.redMul(e.z)),o=e.y.redMul(r.redMul(this.z)),s=i.redSub(n),u=a.redSub(o);if(0===s.cmpn(0))if(0!==u.cmpn(0))return this.curve.jpoint(null,null,null);else return this.dbl();var f=s.redSqr(),c=f.redMul(s),d=i.redMul(f),l=u.redSqr().redIAdd(c).redISub(d).redISub(d),h=u.redMul(d.redISub(l)).redISub(a.redMul(c)),p=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(l,h,p)},c.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,i=e.x.redMul(t),n=this.y,a=e.y.redMul(t).redMul(this.z),o=r.redSub(i),s=n.redSub(a);if(0===o.cmpn(0))if(0!==s.cmpn(0))return this.curve.jpoint(null,null,null);else return this.dbl();var u=o.redSqr(),f=u.redMul(o),c=r.redMul(u),d=s.redSqr().redIAdd(f).redISub(c).redISub(c),l=s.redMul(c.redISub(d)).redISub(n.redMul(f)),h=this.z.redMul(o);return this.curve.jpoint(d,l,h)},c.prototype.dblp=function(e){if(0===e||this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var t=this,r=0;r<e;r++)t=t.dbl();return t}for(var i=this.curve.a,n=this.curve.tinv,a=this.x,o=this.y,s=this.z,u=s.redSqr().redSqr(),f=o.redAdd(o),r=0;r<e;r++){var c=a.redSqr(),d=f.redSqr(),l=d.redSqr(),h=c.redAdd(c).redIAdd(c).redIAdd(i.redMul(u)),p=a.redMul(d),m=h.redSqr().redISub(p.redAdd(p)),b=p.redISub(m),g=h.redMul(b);g=g.redIAdd(g).redISub(l);var v=f.redMul(s);r+1<e&&(u=u.redMul(l)),a=m,s=v,f=g}return this.curve.jpoint(a,f.redMul(n),s)},c.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},c.prototype._zeroDbl=function(){if(this.zOne){var e,t,r,i=this.x.redSqr(),n=this.y.redSqr(),a=n.redSqr(),o=this.x.redAdd(n).redSqr().redISub(i).redISub(a);o=o.redIAdd(o);var s=i.redAdd(i).redIAdd(i),u=s.redSqr().redISub(o).redISub(o),f=a.redIAdd(a);f=(f=f.redIAdd(f)).redIAdd(f),e=u,t=s.redMul(o.redISub(u)).redISub(f),r=this.y.redAdd(this.y)}else{var c=this.x.redSqr(),d=this.y.redSqr(),l=d.redSqr(),h=this.x.redAdd(d).redSqr().redISub(c).redISub(l);h=h.redIAdd(h);var p=c.redAdd(c).redIAdd(c),m=p.redSqr(),b=l.redIAdd(l);b=(b=b.redIAdd(b)).redIAdd(b),e=m.redISub(h).redISub(h),t=p.redMul(h.redISub(e)).redISub(b),r=(r=this.y.redMul(this.z)).redIAdd(r)}return this.curve.jpoint(e,t,r)},c.prototype._threeDbl=function(){if(this.zOne){var e,t,r,i=this.x.redSqr(),n=this.y.redSqr(),a=n.redSqr(),o=this.x.redAdd(n).redSqr().redISub(i).redISub(a);o=o.redIAdd(o);var s=i.redAdd(i).redIAdd(i).redIAdd(this.curve.a),u=s.redSqr().redISub(o).redISub(o);e=u;var f=a.redIAdd(a);f=(f=f.redIAdd(f)).redIAdd(f),t=s.redMul(o.redISub(u)).redISub(f),r=this.y.redAdd(this.y)}else{var c=this.z.redSqr(),d=this.y.redSqr(),l=this.x.redMul(d),h=this.x.redSub(c).redMul(this.x.redAdd(c));h=h.redAdd(h).redIAdd(h);var p=l.redIAdd(l),m=(p=p.redIAdd(p)).redAdd(p);e=h.redSqr().redISub(m),r=this.y.redAdd(this.z).redSqr().redISub(d).redISub(c);var b=d.redSqr();b=(b=(b=b.redIAdd(b)).redIAdd(b)).redIAdd(b),t=h.redMul(p.redISub(e)).redISub(b)}return this.curve.jpoint(e,t,r)},c.prototype._dbl=function(){var e=this.curve.a,t=this.x,r=this.y,i=this.z,n=i.redSqr().redSqr(),a=t.redSqr(),o=r.redSqr(),s=a.redAdd(a).redIAdd(a).redIAdd(e.redMul(n)),u=t.redAdd(t),f=(u=u.redIAdd(u)).redMul(o),c=s.redSqr().redISub(f.redAdd(f)),d=f.redISub(c),l=o.redSqr();l=(l=(l=l.redIAdd(l)).redIAdd(l)).redIAdd(l);var h=s.redMul(d).redISub(l),p=r.redAdd(r).redMul(i);return this.curve.jpoint(c,h,p)},c.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr(),i=t.redSqr(),n=e.redAdd(e).redIAdd(e),a=n.redSqr(),o=this.x.redAdd(t).redSqr().redISub(e).redISub(i),s=(o=(o=(o=o.redIAdd(o)).redAdd(o).redIAdd(o)).redISub(a)).redSqr(),u=i.redIAdd(i);u=(u=(u=u.redIAdd(u)).redIAdd(u)).redIAdd(u);var f=n.redIAdd(o).redSqr().redISub(a).redISub(s).redISub(u),c=t.redMul(f);c=(c=c.redIAdd(c)).redIAdd(c);var d=this.x.redMul(s).redISub(c);d=(d=d.redIAdd(d)).redIAdd(d);var l=this.y.redMul(f.redMul(u.redISub(f)).redISub(o.redMul(s)));l=(l=(l=l.redIAdd(l)).redIAdd(l)).redIAdd(l);var h=this.z.redAdd(o).redSqr().redISub(r).redISub(s);return this.curve.jpoint(d,l,h)},c.prototype.mul=function(e,t){return e=new n(e,t),this.curve._wnafMul(this,e)},c.prototype.eq=function(e){if("affine"===e.type)return this.eq(e.toJ());if(this===e)return!0;var t=this.z.redSqr(),r=e.z.redSqr();if(0!==this.x.redMul(r).redISub(e.x.redMul(t)).cmpn(0))return!1;var i=t.redMul(this.z),n=r.redMul(e.z);return 0===this.y.redMul(n).redISub(e.y.redMul(i)).cmpn(0)},c.prototype.eqXToP=function(e){var t=this.z.redSqr(),r=e.toRed(this.curve.red).redMul(t);if(0===this.x.cmp(r))return!0;for(var i=e.clone(),n=this.curve.redN.redMul(t);;){if(i.iadd(this.curve.n),i.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(n),0===this.x.cmp(r))return!0}},c.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},c.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},6226:function(e,t,r){"use strict";var i,n=t,a=r(7028),o=r(9359),s=r(4401).assert;function u(e){"short"===e.type?this.curve=new o.short(e):"edwards"===e.type?this.curve=new o.edwards(e):this.curve=new o.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function f(e,t){Object.defineProperty(n,e,{configurable:!0,enumerable:!0,get:function(){var r=new u(t);return Object.defineProperty(n,e,{configurable:!0,enumerable:!0,value:r}),r}})}n.PresetCurve=u,f("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:a.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),f("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:a.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),f("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:a.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),f("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:a.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),f("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:a.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),f("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:a.sha256,gRed:!1,g:["9"]}),f("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:a.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{i=r(9702)}catch(e){i=void 0}f("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:a.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",i]})},4088:function(e,t,r){"use strict";var i=r(711),n=r(4910),a=r(4401),o=r(6226),s=r(3500),u=a.assert,f=r(4724),c=r(7526);function d(e){if(!(this instanceof d))return new d(e);"string"==typeof e&&(u(o.hasOwnProperty(e),"Unknown curve "+e),e=o[e]),e instanceof o.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}e.exports=d,d.prototype.keyPair=function(e){return new f(this,e)},d.prototype.keyFromPrivate=function(e,t){return f.fromPrivate(this,e,t)},d.prototype.keyFromPublic=function(e,t){return f.fromPublic(this,e,t)},d.prototype.genKeyPair=function(e){e||(e={});for(var t=new n({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||s(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),a=this.n.sub(new i(2));;){var o=new i(t.generate(r));if(!(o.cmp(a)>0))return o.iaddn(1),this.keyFromPrivate(o)}},d.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return(r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0)?e.sub(this.n):e},d.prototype.sign=function(e,t,r,a){"object"==typeof r&&(a=r,r=null),a||(a={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new i(e,16));for(var o=this.n.byteLength(),s=t.getPrivate().toArray("be",o),u=e.toArray("be",o),f=new n({hash:this.hash,entropy:s,nonce:u,pers:a.pers,persEnc:a.persEnc||"utf8"}),d=this.n.sub(new i(1)),l=0;;l++){var h=a.k?a.k(l):new i(f.generate(this.n.byteLength()));if(0>=(h=this._truncateToN(h,!0)).cmpn(1)||h.cmp(d)>=0)continue;var p=this.g.mul(h);if(!p.isInfinity()){var m=p.getX(),b=m.umod(this.n);if(0!==b.cmpn(0)){var g=h.invm(this.n).mul(b.mul(t.getPrivate()).iadd(e));if(0!==(g=g.umod(this.n)).cmpn(0)){var v=!!p.getY().isOdd()|2*(0!==m.cmp(b));return a.canonical&&g.cmp(this.nh)>0&&(g=this.n.sub(g),v^=1),new c({r:b,s:g,recoveryParam:v})}}}}},d.prototype.verify=function(e,t,r,n){e=this._truncateToN(new i(e,16)),r=this.keyFromPublic(r,n);var a=(t=new c(t,"hex")).r,o=t.s;if(0>a.cmpn(1)||a.cmp(this.n)>=0||0>o.cmpn(1)||o.cmp(this.n)>=0)return!1;var s=o.invm(this.n),u=s.mul(e).umod(this.n),f=s.mul(a).umod(this.n);if(!this.curve._maxwellTrick){var d=this.g.mulAdd(u,r.getPublic(),f);return!d.isInfinity()&&0===d.getX().umod(this.n).cmp(a)}var d=this.g.jmulAdd(u,r.getPublic(),f);return!d.isInfinity()&&d.eqXToP(a)},d.prototype.recoverPubKey=function(e,t,r,n){u((3&r)===r,"The recovery param is more than two bits"),t=new c(t,n);var a=this.n,o=new i(e),s=t.r,f=t.s,d=1&r,l=r>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&l)throw Error("Unable to find sencond key candinate");s=l?this.curve.pointFromX(s.add(this.curve.n),d):this.curve.pointFromX(s,d);var h=t.r.invm(a),p=a.sub(o).mul(h).umod(a),m=f.mul(h).umod(a);return this.g.mulAdd(p,s,m)},d.prototype.getKeyRecoveryParam=function(e,t,r,i){if(null!==(t=new c(t,i)).recoveryParam)return t.recoveryParam;for(var n,a=0;a<4;a++){try{n=this.recoverPubKey(e,t,a)}catch(e){continue}if(n.eq(r))return a}throw Error("Unable to find valid recovery factor")}},4724:function(e,t,r){"use strict";var i=r(711),n=r(4401).assert;function a(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}e.exports=a,a.fromPublic=function(e,t,r){return t instanceof a?t:new a(e,{pub:t,pubEnc:r})},a.fromPrivate=function(e,t,r){return t instanceof a?t:new a(e,{priv:t,privEnc:r})},a.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},a.prototype.getPublic=function(e,t){return("string"==typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t)?this.pub.encode(t,e):this.pub},a.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},a.prototype._importPrivate=function(e,t){this.priv=new i(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},a.prototype._importPublic=function(e,t){if(e.x||e.y){"mont"===this.ec.curve.type?n(e.x,"Need x coordinate"):("short"===this.ec.curve.type||"edwards"===this.ec.curve.type)&&n(e.x&&e.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(e.x,e.y);return}this.pub=this.ec.curve.decodePoint(e,t)},a.prototype.derive=function(e){return e.mul(this.priv).getX()},a.prototype.sign=function(e,t,r){return this.ec.sign(e,this,t,r)},a.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},a.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},7526:function(e,t,r){"use strict";var i=r(711),n=r(4401),a=n.assert;function o(e,t){if(e instanceof o)return e;this._importDER(e,t)||(a(e.r&&e.s,"Signature without r or s"),this.r=new i(e.r,16),this.s=new i(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function s(){this.place=0}function u(e,t){var r=e[t.place++];if(!(128&r))return r;var i=15&r;if(0===i||i>4)return!1;for(var n=0,a=0,o=t.place;a<i;a++,o++)n<<=8,n|=e[o],n>>>=0;return!(n<=127)&&(t.place=o,n)}function f(e){for(var t=0,r=e.length-1;!e[t]&&!(128&e[t+1])&&t<r;)t++;return 0===t?e:e.slice(t)}function c(e,t){if(t<128)return void e.push(t);var r=1+(Math.log(t)/Math.LN2>>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}e.exports=o,o.prototype._importDER=function(e,t){e=n.toArray(e,t);var r=new s;if(48!==e[r.place++])return!1;var a=u(e,r);if(!1===a||a+r.place!==e.length||2!==e[r.place++])return!1;var o=u(e,r);if(!1===o)return!1;var f=e.slice(r.place,o+r.place);if(r.place+=o,2!==e[r.place++])return!1;var c=u(e,r);if(!1===c||e.length!==c+r.place)return!1;var d=e.slice(r.place,c+r.place);if(0===f[0])if(!(128&f[1]))return!1;else f=f.slice(1);if(0===d[0])if(!(128&d[1]))return!1;else d=d.slice(1);return this.r=new i(f),this.s=new i(d),this.recoveryParam=null,!0},o.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=f(t),r=f(r);!r[0]&&!(128&r[1]);)r=r.slice(1);var i=[2];c(i,t.length),(i=i.concat(t)).push(2),c(i,r.length);var a=i.concat(r),o=[48];return c(o,a.length),o=o.concat(a),n.encode(o,e)}},8511:function(e,t,r){"use strict";var i=r(7028),n=r(6226),a=r(4401),o=a.assert,s=a.parseBytes,u=r(9917),f=r(9314);function c(e){if(o("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof c))return new c(e);var e=n[e].curve;this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=i.sha512}e.exports=c,c.prototype.sign=function(e,t){e=s(e);var r=this.keyFromSecret(t),i=this.hashInt(r.messagePrefix(),e),n=this.g.mul(i),a=this.encodePoint(n),o=this.hashInt(a,r.pubBytes(),e).mul(r.priv()),u=i.add(o).umod(this.curve.n);return this.makeSignature({R:n,S:u,Rencoded:a})},c.prototype.verify=function(e,t,r){e=s(e),t=this.makeSignature(t);var i=this.keyFromPublic(r),n=this.hashInt(t.Rencoded(),i.pubBytes(),e),a=this.g.mul(t.S());return t.R().add(i.pub().mul(n)).eq(a)},c.prototype.hashInt=function(){for(var e=this.hash(),t=0;t<arguments.length;t++)e.update(arguments[t]);return a.intFromLE(e.digest()).umod(this.curve.n)},c.prototype.keyFromPublic=function(e){return u.fromPublic(this,e)},c.prototype.keyFromSecret=function(e){return u.fromSecret(this,e)},c.prototype.makeSignature=function(e){return e instanceof f?e:new f(this,e)},c.prototype.encodePoint=function(e){var t=e.getY().toArray("le",this.encodingLength);return t[this.encodingLength-1]|=128*!!e.getX().isOdd(),t},c.prototype.decodePoint=function(e){var t=(e=a.parseBytes(e)).length-1,r=e.slice(0,t).concat(-129&e[t]),i=(128&e[t])!=0,n=a.intFromLE(r);return this.curve.pointFromY(n,i)},c.prototype.encodeInt=function(e){return e.toArray("le",this.encodingLength)},c.prototype.decodeInt=function(e){return a.intFromLE(e)},c.prototype.isPoint=function(e){return e instanceof this.pointClass}},9917:function(e,t,r){"use strict";var i=r(4401),n=i.assert,a=i.parseBytes,o=i.cachedProperty;function s(e,t){this.eddsa=e,this._secret=a(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=a(t.pub)}s.fromPublic=function(e,t){return t instanceof s?t:new s(e,{pub:t})},s.fromSecret=function(e,t){return t instanceof s?t:new s(e,{secret:t})},s.prototype.secret=function(){return this._secret},o(s,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),o(s,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),o(s,"privBytes",function(){var e=this.eddsa,t=this.hash(),r=e.encodingLength-1,i=t.slice(0,e.encodingLength);return i[0]&=248,i[r]&=127,i[r]|=64,i}),o(s,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),o(s,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),o(s,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),s.prototype.sign=function(e){return n(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},s.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)},s.prototype.getSecret=function(e){return n(this._secret,"KeyPair is public only"),i.encode(this.secret(),e)},s.prototype.getPublic=function(e){return i.encode(this.pubBytes(),e)},e.exports=s},9314:function(e,t,r){"use strict";var i=r(711),n=r(4401),a=n.assert,o=n.cachedProperty,s=n.parseBytes;function u(e,t){this.eddsa=e,"object"!=typeof t&&(t=s(t)),Array.isArray(t)&&(t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),a(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof i&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}o(u,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),o(u,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),o(u,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),o(u,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),u.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},u.prototype.toHex=function(){return n.encode(this.toBytes(),"hex").toUpperCase()},e.exports=u},9702:function(e){e.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},4401:function(e,t,r){"use strict";var i=t,n=r(711),a=r(3523),o=r(6545);function s(e){return"string"==typeof e?i.toArray(e,"hex"):e}i.assert=a,i.toArray=o.toArray,i.zero2=o.zero2,i.toHex=o.toHex,i.encode=o.encode,i.getNAF=function(e,t,r){var i=Array(Math.max(e.bitLength(),r)+1);i.fill(0);for(var n=1<<t+1,a=e.clone(),o=0;o<i.length;o++){var s,u=a.andln(n-1);a.isOdd()?(s=u>(n>>1)-1?(n>>1)-u:u,a.isubn(s)):s=0,i[o]=s,a.iushrn(1)}return i},i.getJSF=function(e,t){var r=[[],[]];e=e.clone(),t=t.clone();for(var i=0,n=0;e.cmpn(-i)>0||t.cmpn(-n)>0;){var a,o,s=e.andln(3)+i&3,u=t.andln(3)+n&3;if(3===s&&(s=-1),3===u&&(u=-1),(1&s)==0)a=0;else{var f=e.andln(7)+i&7;a=(3===f||5===f)&&2===u?-s:s}if(r[0].push(a),(1&u)==0)o=0;else{var f=t.andln(7)+n&7;o=(3===f||5===f)&&2===s?-u:u}r[1].push(o),2*i===a+1&&(i=1-i),2*n===o+1&&(n=1-n),e.iushrn(1),t.iushrn(1)}return r},i.cachedProperty=function(e,t,r){var i="_"+t;e.prototype[t]=function(){return void 0!==this[i]?this[i]:this[i]=r.call(this)}},i.parseBytes=s,i.intFromLE=function(e){return new n(e,"hex","le")}},8368:function(e,t,r){var i=r(6911).Buffer,n=r(3533);e.exports=function(e,t,r,a){if(i.isBuffer(e)||(e=i.from(e,"binary")),t&&(i.isBuffer(t)||(t=i.from(t,"binary")),8!==t.length))throw RangeError("salt should be Buffer with 8 byte length");for(var o=r/8,s=i.alloc(o),u=i.alloc(a||0),f=i.alloc(0);o>0||a>0;){var c=new n;c.update(f),c.update(e),t&&c.update(t),f=c.digest();var d=0;if(o>0){var l=s.length-o;d=Math.min(o,f.length),f.copy(s,l,0,d),o-=d}if(d<f.length&&a>0){var h=u.length-a,p=Math.min(a,f.length-d);f.copy(u,h,d,d+p),a-=p}}return f.fill(0),{key:s,iv:u}}},9029:function(e,t,r){"use strict";var i=r(6911).Buffer,n=r(3726).Transform;function a(e,t){if(!i.isBuffer(e)&&"string"!=typeof e)throw TypeError(t+" must be a string or a buffer")}function o(e){n.call(this),this._block=i.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}r(3782)(o,n),o.prototype._transform=function(e,t,r){var i=null;try{this.update(e,t)}catch(e){i=e}r(i)},o.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(e){t=e}e(t)},o.prototype.update=function(e,t){if(a(e,"Data"),this._finalized)throw Error("Digest already called");i.isBuffer(e)||(e=i.from(e,t));for(var r=this._block,n=0;this._blockOffset+e.length-n>=this._blockSize;){for(var o=this._blockOffset;o<this._blockSize;)r[o++]=e[n++];this._update(),this._blockOffset=0}for(;n<e.length;)r[this._blockOffset++]=e[n++];for(var s=0,u=8*e.length;u>0;++s)this._length[s]+=u,(u=this._length[s]/0x100000000|0)>0&&(this._length[s]-=0x100000000*u);return this},o.prototype._update=function(){throw Error("_update is not implemented")},o.prototype.digest=function(e){if(this._finalized)throw Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return t},o.prototype._digest=function(){throw Error("_digest is not implemented")},e.exports=o},7028:function(e,t,r){var i=t;i.utils=r(263),i.common=r(1330),i.sha=r(301),i.ripemd=r(3079),i.hmac=r(3092),i.sha1=i.sha.sha1,i.sha256=i.sha.sha256,i.sha224=i.sha.sha224,i.sha384=i.sha.sha384,i.sha512=i.sha.sha512,i.ripemd160=i.ripemd.ripemd160},1330:function(e,t,r){"use strict";var i=r(263),n=r(3523);function a(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}t.BlockHash=a,a.prototype.update=function(e,t){if(e=i.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var r=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=i.join32(e,0,e.length-r,this.endian);for(var n=0;n<e.length;n+=this._delta32)this._update(e,n,n+this._delta32)}return this},a.prototype.digest=function(e){return this.update(this._pad()),n(null===this.pending),this._digest(e)},a.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,r=t-(e+this.padLength)%t,i=Array(r+this.padLength);i[0]=128;for(var n=1;n<r;n++)i[n]=0;if(e<<=3,"big"===this.endian){for(var a=8;a<this.padLength;a++)i[n++]=0;i[n++]=0,i[n++]=0,i[n++]=0,i[n++]=0,i[n++]=e>>>24&255,i[n++]=e>>>16&255,i[n++]=e>>>8&255,i[n++]=255&e}else for(a=8,i[n++]=255&e,i[n++]=e>>>8&255,i[n++]=e>>>16&255,i[n++]=e>>>24&255,i[n++]=0,i[n++]=0,i[n++]=0,i[n++]=0;a<this.padLength;a++)i[n++]=0;return i}},3092:function(e,t,r){"use strict";var i=r(263),n=r(3523);function a(e,t,r){if(!(this instanceof a))return new a(e,t,r);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(i.toArray(t,r))}e.exports=a,a.prototype._init=function(e){e.length>this.blockSize&&(e=(new this.Hash).update(e).digest()),n(e.length<=this.blockSize);for(var t=e.length;t<this.blockSize;t++)e.push(0);for(t=0;t<e.length;t++)e[t]^=54;for(t=0,this.inner=(new this.Hash).update(e);t<e.length;t++)e[t]^=106;this.outer=(new this.Hash).update(e)},a.prototype.update=function(e,t){return this.inner.update(e,t),this},a.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)}},3079:function(e,t,r){"use strict";var i=r(263),n=r(1330),a=i.rotl32,o=i.sum32,s=i.sum32_3,u=i.sum32_4,f=n.BlockHash;function c(){if(!(this instanceof c))return new c;f.call(this),this.h=[0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0],this.endian="little"}function d(e,t,r,i){return e<=15?t^r^i:e<=31?t&r|~t&i:e<=47?(t|~r)^i:e<=63?t&i|r&~i:t^(r|~i)}function l(e){return e<=15?0:e<=31?0x5a827999:e<=47?0x6ed9eba1:e<=63?0x8f1bbcdc:0xa953fd4e}function h(e){return e<=15?0x50a28be6:e<=31?0x5c4dd124:e<=47?0x6d703ef3:0x7a6d76e9*!!(e<=63)}i.inherits(c,f),t.ripemd160=c,c.blockSize=512,c.outSize=160,c.hmacStrength=192,c.padLength=64,c.prototype._update=function(e,t){for(var r=this.h[0],i=this.h[1],n=this.h[2],f=this.h[3],c=this.h[4],v=r,y=i,_=n,x=f,w=c,S=0;S<80;S++){var k=o(a(u(r,d(S,i,n,f),e[p[S]+t],l(S)),b[S]),c);r=c,c=f,f=a(n,10),n=i,i=k,k=o(a(u(v,d(79-S,y,_,x),e[m[S]+t],h(S)),g[S]),w),v=w,w=x,x=a(_,10),_=y,y=k}k=s(this.h[1],n,x),this.h[1]=s(this.h[2],f,w),this.h[2]=s(this.h[3],c,v),this.h[3]=s(this.h[4],r,y),this.h[4]=s(this.h[0],i,_),this.h[0]=k},c.prototype._digest=function(e){return"hex"===e?i.toHex32(this.h,"little"):i.split32(this.h,"little")};var p=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],m=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],b=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],g=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},301:function(e,t,r){"use strict";t.sha1=r(2742),t.sha224=r(7105),t.sha256=r(1525),t.sha384=r(9948),t.sha512=r(1319)},2742:function(e,t,r){"use strict";var i=r(263),n=r(1330),a=r(2975),o=i.rotl32,s=i.sum32,u=i.sum32_5,f=a.ft_1,c=n.BlockHash,d=[0x5a827999,0x6ed9eba1,0x8f1bbcdc,0xca62c1d6];function l(){if(!(this instanceof l))return new l;c.call(this),this.h=[0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0],this.W=Array(80)}i.inherits(l,c),e.exports=l,l.blockSize=512,l.outSize=160,l.hmacStrength=80,l.padLength=64,l.prototype._update=function(e,t){for(var r=this.W,i=0;i<16;i++)r[i]=e[t+i];for(;i<r.length;i++)r[i]=o(r[i-3]^r[i-8]^r[i-14]^r[i-16],1);var n=this.h[0],a=this.h[1],c=this.h[2],l=this.h[3],h=this.h[4];for(i=0;i<r.length;i++){var p=~~(i/20),m=u(o(n,5),f(p,a,c,l),h,r[i],d[p]);h=l,l=c,c=o(a,30),a=n,n=m}this.h[0]=s(this.h[0],n),this.h[1]=s(this.h[1],a),this.h[2]=s(this.h[2],c),this.h[3]=s(this.h[3],l),this.h[4]=s(this.h[4],h)},l.prototype._digest=function(e){return"hex"===e?i.toHex32(this.h,"big"):i.split32(this.h,"big")}},7105:function(e,t,r){"use strict";var i=r(263),n=r(1525);function a(){if(!(this instanceof a))return new a;n.call(this),this.h=[0xc1059ed8,0x367cd507,0x3070dd17,0xf70e5939,0xffc00b31,0x68581511,0x64f98fa7,0xbefa4fa4]}i.inherits(a,n),e.exports=a,a.blockSize=512,a.outSize=224,a.hmacStrength=192,a.padLength=64,a.prototype._digest=function(e){return"hex"===e?i.toHex32(this.h.slice(0,7),"big"):i.split32(this.h.slice(0,7),"big")}},1525:function(e,t,r){"use strict";var i=r(263),n=r(1330),a=r(2975),o=r(3523),s=i.sum32,u=i.sum32_4,f=i.sum32_5,c=a.ch32,d=a.maj32,l=a.s0_256,h=a.s1_256,p=a.g0_256,m=a.g1_256,b=n.BlockHash,g=[0x428a2f98,0x71374491,0xb5c0fbcf,0xe9b5dba5,0x3956c25b,0x59f111f1,0x923f82a4,0xab1c5ed5,0xd807aa98,0x12835b01,0x243185be,0x550c7dc3,0x72be5d74,0x80deb1fe,0x9bdc06a7,0xc19bf174,0xe49b69c1,0xefbe4786,0xfc19dc6,0x240ca1cc,0x2de92c6f,0x4a7484aa,0x5cb0a9dc,0x76f988da,0x983e5152,0xa831c66d,0xb00327c8,0xbf597fc7,0xc6e00bf3,0xd5a79147,0x6ca6351,0x14292967,0x27b70a85,0x2e1b2138,0x4d2c6dfc,0x53380d13,0x650a7354,0x766a0abb,0x81c2c92e,0x92722c85,0xa2bfe8a1,0xa81a664b,0xc24b8b70,0xc76c51a3,0xd192e819,0xd6990624,0xf40e3585,0x106aa070,0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5,0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3,0x748f82ee,0x78a5636f,0x84c87814,0x8cc70208,0x90befffa,0xa4506ceb,0xbef9a3f7,0xc67178f2];function v(){if(!(this instanceof v))return new v;b.call(this),this.h=[0x6a09e667,0xbb67ae85,0x3c6ef372,0xa54ff53a,0x510e527f,0x9b05688c,0x1f83d9ab,0x5be0cd19],this.k=g,this.W=Array(64)}i.inherits(v,b),e.exports=v,v.blockSize=512,v.outSize=256,v.hmacStrength=192,v.padLength=64,v.prototype._update=function(e,t){for(var r=this.W,i=0;i<16;i++)r[i]=e[t+i];for(;i<r.length;i++)r[i]=u(m(r[i-2]),r[i-7],p(r[i-15]),r[i-16]);var n=this.h[0],a=this.h[1],b=this.h[2],g=this.h[3],v=this.h[4],y=this.h[5],_=this.h[6],x=this.h[7];for(o(this.k.length===r.length),i=0;i<r.length;i++){var w=f(x,h(v),c(v,y,_),this.k[i],r[i]),S=s(l(n),d(n,a,b));x=_,_=y,y=v,v=s(g,w),g=b,b=a,a=n,n=s(w,S)}this.h[0]=s(this.h[0],n),this.h[1]=s(this.h[1],a),this.h[2]=s(this.h[2],b),this.h[3]=s(this.h[3],g),this.h[4]=s(this.h[4],v),this.h[5]=s(this.h[5],y),this.h[6]=s(this.h[6],_),this.h[7]=s(this.h[7],x)},v.prototype._digest=function(e){return"hex"===e?i.toHex32(this.h,"big"):i.split32(this.h,"big")}},9948:function(e,t,r){"use strict";var i=r(263),n=r(1319);function a(){if(!(this instanceof a))return new a;n.call(this),this.h=[0xcbbb9d5d,0xc1059ed8,0x629a292a,0x367cd507,0x9159015a,0x3070dd17,0x152fecd8,0xf70e5939,0x67332667,0xffc00b31,0x8eb44a87,0x68581511,0xdb0c2e0d,0x64f98fa7,0x47b5481d,0xbefa4fa4]}i.inherits(a,n),e.exports=a,a.blockSize=1024,a.outSize=384,a.hmacStrength=192,a.padLength=128,a.prototype._digest=function(e){return"hex"===e?i.toHex32(this.h.slice(0,12),"big"):i.split32(this.h.slice(0,12),"big")}},1319:function(e,t,r){"use strict";var i=r(263),n=r(1330),a=r(3523),o=i.rotr64_hi,s=i.rotr64_lo,u=i.shr64_hi,f=i.shr64_lo,c=i.sum64,d=i.sum64_hi,l=i.sum64_lo,h=i.sum64_4_hi,p=i.sum64_4_lo,m=i.sum64_5_hi,b=i.sum64_5_lo,g=n.BlockHash,v=[0x428a2f98,0xd728ae22,0x71374491,0x23ef65cd,0xb5c0fbcf,0xec4d3b2f,0xe9b5dba5,0x8189dbbc,0x3956c25b,0xf348b538,0x59f111f1,0xb605d019,0x923f82a4,0xaf194f9b,0xab1c5ed5,0xda6d8118,0xd807aa98,0xa3030242,0x12835b01,0x45706fbe,0x243185be,0x4ee4b28c,0x550c7dc3,0xd5ffb4e2,0x72be5d74,0xf27b896f,0x80deb1fe,0x3b1696b1,0x9bdc06a7,0x25c71235,0xc19bf174,0xcf692694,0xe49b69c1,0x9ef14ad2,0xefbe4786,0x384f25e3,0xfc19dc6,0x8b8cd5b5,0x240ca1cc,0x77ac9c65,0x2de92c6f,0x592b0275,0x4a7484aa,0x6ea6e483,0x5cb0a9dc,0xbd41fbd4,0x76f988da,0x831153b5,0x983e5152,0xee66dfab,0xa831c66d,0x2db43210,0xb00327c8,0x98fb213f,0xbf597fc7,0xbeef0ee4,0xc6e00bf3,0x3da88fc2,0xd5a79147,0x930aa725,0x6ca6351,0xe003826f,0x14292967,0xa0e6e70,0x27b70a85,0x46d22ffc,0x2e1b2138,0x5c26c926,0x4d2c6dfc,0x5ac42aed,0x53380d13,0x9d95b3df,0x650a7354,0x8baf63de,0x766a0abb,0x3c77b2a8,0x81c2c92e,0x47edaee6,0x92722c85,0x1482353b,0xa2bfe8a1,0x4cf10364,0xa81a664b,0xbc423001,0xc24b8b70,0xd0f89791,0xc76c51a3,0x654be30,0xd192e819,0xd6ef5218,0xd6990624,0x5565a910,0xf40e3585,0x5771202a,0x106aa070,0x32bbd1b8,0x19a4c116,0xb8d2d0c8,0x1e376c08,0x5141ab53,0x2748774c,0xdf8eeb99,0x34b0bcb5,0xe19b48a8,0x391c0cb3,0xc5c95a63,0x4ed8aa4a,0xe3418acb,0x5b9cca4f,0x7763e373,0x682e6ff3,0xd6b2b8a3,0x748f82ee,0x5defb2fc,0x78a5636f,0x43172f60,0x84c87814,0xa1f0ab72,0x8cc70208,0x1a6439ec,0x90befffa,0x23631e28,0xa4506ceb,0xde82bde9,0xbef9a3f7,0xb2c67915,0xc67178f2,0xe372532b,0xca273ece,0xea26619c,0xd186b8c7,0x21c0c207,0xeada7dd6,0xcde0eb1e,0xf57d4f7f,0xee6ed178,0x6f067aa,0x72176fba,0xa637dc5,0xa2c898a6,0x113f9804,0xbef90dae,0x1b710b35,0x131c471b,0x28db77f5,0x23047d84,0x32caab7b,0x40c72493,0x3c9ebe0a,0x15c9bebc,0x431d67c4,0x9c100d4c,0x4cc5d4be,0xcb3e42b6,0x597f299c,0xfc657e2a,0x5fcb6fab,0x3ad6faec,0x6c44198c,0x4a475817];function y(){if(!(this instanceof y))return new y;g.call(this),this.h=[0x6a09e667,0xf3bcc908,0xbb67ae85,0x84caa73b,0x3c6ef372,0xfe94f82b,0xa54ff53a,0x5f1d36f1,0x510e527f,0xade682d1,0x9b05688c,0x2b3e6c1f,0x1f83d9ab,0xfb41bd6b,0x5be0cd19,0x137e2179],this.k=v,this.W=Array(160)}function _(e,t,r,i,n){var a=e&r^~e&n;return a<0&&(a+=0x100000000),a}function x(e,t,r,i,n,a){var o=t&i^~t&a;return o<0&&(o+=0x100000000),o}function w(e,t,r,i,n){var a=e&r^e&n^r&n;return a<0&&(a+=0x100000000),a}function S(e,t,r,i,n,a){var o=t&i^t&a^i&a;return o<0&&(o+=0x100000000),o}function k(e,t){var r=o(e,t,28)^o(t,e,2)^o(t,e,7);return r<0&&(r+=0x100000000),r}function $(e,t){var r=s(e,t,28)^s(t,e,2)^s(t,e,7);return r<0&&(r+=0x100000000),r}function I(e,t){var r=o(e,t,14)^o(e,t,18)^o(t,e,9);return r<0&&(r+=0x100000000),r}function M(e,t){var r=s(e,t,14)^s(e,t,18)^s(t,e,9);return r<0&&(r+=0x100000000),r}function E(e,t){var r=o(e,t,1)^o(e,t,8)^u(e,t,7);return r<0&&(r+=0x100000000),r}function A(e,t){var r=s(e,t,1)^s(e,t,8)^f(e,t,7);return r<0&&(r+=0x100000000),r}function O(e,t){var r=o(e,t,19)^o(t,e,29)^u(e,t,6);return r<0&&(r+=0x100000000),r}function N(e,t){var r=s(e,t,19)^s(t,e,29)^f(e,t,6);return r<0&&(r+=0x100000000),r}i.inherits(y,g),e.exports=y,y.blockSize=1024,y.outSize=512,y.hmacStrength=192,y.padLength=128,y.prototype._prepareBlock=function(e,t){for(var r=this.W,i=0;i<32;i++)r[i]=e[t+i];for(;i<r.length;i+=2){var n=O(r[i-4],r[i-3]),a=N(r[i-4],r[i-3]),o=r[i-14],s=r[i-13],u=E(r[i-30],r[i-29]),f=A(r[i-30],r[i-29]),c=r[i-32],d=r[i-31];r[i]=h(n,a,o,s,u,f,c,d),r[i+1]=p(n,a,o,s,u,f,c,d)}},y.prototype._update=function(e,t){this._prepareBlock(e,t);var r=this.W,i=this.h[0],n=this.h[1],o=this.h[2],s=this.h[3],u=this.h[4],f=this.h[5],h=this.h[6],p=this.h[7],g=this.h[8],v=this.h[9],y=this.h[10],E=this.h[11],A=this.h[12],O=this.h[13],N=this.h[14],j=this.h[15];a(this.k.length===r.length);for(var z=0;z<r.length;z+=2){var U=N,P=j,T=I(g,v),R=M(g,v),D=_(g,v,y,E,A,O),B=x(g,v,y,E,A,O),C=this.k[z],Z=this.k[z+1],L=r[z],q=r[z+1],F=m(U,P,T,R,D,B,C,Z,L,q),J=b(U,P,T,R,D,B,C,Z,L,q);U=k(i,n),P=$(i,n);var W=d(U,P,T=w(i,n,o,s,u,f),R=S(i,n,o,s,u,f)),K=l(U,P,T,R);N=A,j=O,A=y,O=E,y=g,E=v,g=d(h,p,F,J),v=l(p,p,F,J),h=u,p=f,u=o,f=s,o=i,s=n,i=d(F,J,W,K),n=l(F,J,W,K)}c(this.h,0,i,n),c(this.h,2,o,s),c(this.h,4,u,f),c(this.h,6,h,p),c(this.h,8,g,v),c(this.h,10,y,E),c(this.h,12,A,O),c(this.h,14,N,j)},y.prototype._digest=function(e){return"hex"===e?i.toHex32(this.h,"big"):i.split32(this.h,"big")}},2975:function(e,t,r){"use strict";var i=r(263).rotr32;function n(e,t,r){return e&t^~e&r}function a(e,t,r){return e&t^e&r^t&r}function o(e,t,r){return e^t^r}t.ft_1=function(e,t,r,i){return 0===e?n(t,r,i):1===e||3===e?o(t,r,i):2===e?a(t,r,i):void 0},t.ch32=n,t.maj32=a,t.p32=o,t.s0_256=function(e){return i(e,2)^i(e,13)^i(e,22)},t.s1_256=function(e){return i(e,6)^i(e,11)^i(e,25)},t.g0_256=function(e){return i(e,7)^i(e,18)^e>>>3},t.g1_256=function(e){return i(e,17)^i(e,19)^e>>>10}},263:function(e,t,r){"use strict";var i=r(3523);function n(e,t){return(64512&e.charCodeAt(t))==55296&&!(t<0)&&!(t+1>=e.length)&&(64512&e.charCodeAt(t+1))==56320}function a(e){return(e>>>24|e>>>8&65280|e<<8&0xff0000|(255&e)<<24)>>>0}function o(e){return 1===e.length?"0"+e:e}function s(e){if(7===e.length)return"0"+e;if(6===e.length)return"00"+e;if(5===e.length)return"000"+e;if(4===e.length)return"0000"+e;if(3===e.length)return"00000"+e;else if(2===e.length)return"000000"+e;else if(1===e.length)return"0000000"+e;else return e}t.inherits=r(3782),t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),a=0;a<e.length;a+=2)r.push(parseInt(e[a]+e[a+1],16))}else for(var i=0,a=0;a<e.length;a++){var o=e.charCodeAt(a);o<128?r[i++]=o:(o<2048?r[i++]=o>>6|192:(n(e,a)?(o=65536+((1023&o)<<10)+(1023&e.charCodeAt(++a)),r[i++]=o>>18|240,r[i++]=o>>12&63|128):r[i++]=o>>12|224,r[i++]=o>>6&63|128),r[i++]=63&o|128)}else for(a=0;a<e.length;a++)r[a]=0|e[a];return r},t.toHex=function(e){for(var t="",r=0;r<e.length;r++)t+=o(e[r].toString(16));return t},t.htonl=a,t.toHex32=function(e,t){for(var r="",i=0;i<e.length;i++){var n=e[i];"little"===t&&(n=a(n)),r+=s(n.toString(16))}return r},t.zero2=o,t.zero8=s,t.join32=function(e,t,r,n){var a,o=r-t;i(o%4==0);for(var s=Array(o/4),u=0,f=t;u<s.length;u++,f+=4)a="big"===n?e[f]<<24|e[f+1]<<16|e[f+2]<<8|e[f+3]:e[f+3]<<24|e[f+2]<<16|e[f+1]<<8|e[f],s[u]=a>>>0;return s},t.split32=function(e,t){for(var r=Array(4*e.length),i=0,n=0;i<e.length;i++,n+=4){var a=e[i];"big"===t?(r[n]=a>>>24,r[n+1]=a>>>16&255,r[n+2]=a>>>8&255,r[n+3]=255&a):(r[n+3]=a>>>24,r[n+2]=a>>>16&255,r[n+1]=a>>>8&255,r[n]=255&a)}return r},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<<t|e>>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,r){return e+t+r>>>0},t.sum32_4=function(e,t,r,i){return e+t+r+i>>>0},t.sum32_5=function(e,t,r,i,n){return e+t+r+i+n>>>0},t.sum64=function(e,t,r,i){var n=e[t],a=i+e[t+1]>>>0,o=+(a<i)+r+n;e[t]=o>>>0,e[t+1]=a},t.sum64_hi=function(e,t,r,i){return+(t+i>>>0<t)+e+r>>>0},t.sum64_lo=function(e,t,r,i){return t+i>>>0},t.sum64_4_hi=function(e,t,r,i,n,a,o,s){var u,f=t;return e+r+n+o+(u=0+ +((f=f+i>>>0)<t)+ +((f=f+a>>>0)<a)+ +((f=f+s>>>0)<s))>>>0},t.sum64_4_lo=function(e,t,r,i,n,a,o,s){return t+i+a+s>>>0},t.sum64_5_hi=function(e,t,r,i,n,a,o,s,u,f){var c,d=t;return e+r+n+o+u+(c=0+ +((d=d+i>>>0)<t)+ +((d=d+a>>>0)<a)+ +((d=d+s>>>0)<s)+ +((d=d+f>>>0)<f))>>>0},t.sum64_5_lo=function(e,t,r,i,n,a,o,s,u,f){return t+i+a+s+f>>>0},t.rotr64_hi=function(e,t,r){return(t<<32-r|e>>>r)>>>0},t.rotr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0},t.shr64_hi=function(e,t,r){return e>>>r},t.shr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0}},4910:function(e,t,r){"use strict";var i=r(7028),n=r(6545),a=r(3523);function o(e){if(!(this instanceof o))return new o(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=n.toArray(e.entropy,e.entropyEnc||"hex"),r=n.toArray(e.nonce,e.nonceEnc||"hex"),i=n.toArray(e.pers,e.persEnc||"hex");a(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,i)}e.exports=o,o.prototype._init=function(e,t,r){var i=e.concat(t).concat(r);this.K=Array(this.outLen/8),this.V=Array(this.outLen/8);for(var n=0;n<this.V.length;n++)this.K[n]=0,this.V[n]=1;this._update(i),this._reseed=1,this.reseedInterval=0x1000000000000},o.prototype._hmac=function(){return new i.hmac(this.hash,this.K)},o.prototype._update=function(e){var t=this._hmac().update(this.V).update([0]);e&&(t=t.update(e)),this.K=t.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([1]).update(e).digest(),this.V=this._hmac().update(this.V).digest())},o.prototype.reseed=function(e,t,r,i){"string"!=typeof t&&(i=r,r=t,t=null),e=n.toArray(e,t),r=n.toArray(r,i),a(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},o.prototype.generate=function(e,t,r,i){if(this._reseed>this.reseedInterval)throw Error("Reseed is required");"string"!=typeof t&&(i=r,r=t,t=null),r&&(r=n.toArray(r,i||"hex"),this._update(r));for(var a=[];a.length<e;)this.V=this._hmac().update(this.V).digest(),a=a.concat(this.V);var o=a.slice(0,e);return this._update(r),this._reseed++,n.encode(o,t)}},3782:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},3533:function(e,t,r){"use strict";var i=r(3782),n=r(9029),a=r(6911).Buffer,o=Array(16);function s(){n.call(this,64),this._a=0x67452301,this._b=0xefcdab89,this._c=0x98badcfe,this._d=0x10325476}function u(e,t){return e<<t|e>>>32-t}function f(e,t,r,i,n,a,o){return u(e+(t&r|~t&i)+n+a|0,o)+t|0}function c(e,t,r,i,n,a,o){return u(e+(t&i|r&~i)+n+a|0,o)+t|0}function d(e,t,r,i,n,a,o){return u(e+(t^r^i)+n+a|0,o)+t|0}function l(e,t,r,i,n,a,o){return u(e+(r^(t|~i))+n+a|0,o)+t|0}i(s,n),s.prototype._update=function(){for(var e=o,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var r=this._a,i=this._b,n=this._c,a=this._d;r=f(r,i,n,a,e[0],0xd76aa478,7),a=f(a,r,i,n,e[1],0xe8c7b756,12),n=f(n,a,r,i,e[2],0x242070db,17),i=f(i,n,a,r,e[3],0xc1bdceee,22),r=f(r,i,n,a,e[4],0xf57c0faf,7),a=f(a,r,i,n,e[5],0x4787c62a,12),n=f(n,a,r,i,e[6],0xa8304613,17),i=f(i,n,a,r,e[7],0xfd469501,22),r=f(r,i,n,a,e[8],0x698098d8,7),a=f(a,r,i,n,e[9],0x8b44f7af,12),n=f(n,a,r,i,e[10],0xffff5bb1,17),i=f(i,n,a,r,e[11],0x895cd7be,22),r=f(r,i,n,a,e[12],0x6b901122,7),a=f(a,r,i,n,e[13],0xfd987193,12),n=f(n,a,r,i,e[14],0xa679438e,17),i=f(i,n,a,r,e[15],0x49b40821,22),r=c(r,i,n,a,e[1],0xf61e2562,5),a=c(a,r,i,n,e[6],0xc040b340,9),n=c(n,a,r,i,e[11],0x265e5a51,14),i=c(i,n,a,r,e[0],0xe9b6c7aa,20),r=c(r,i,n,a,e[5],0xd62f105d,5),a=c(a,r,i,n,e[10],0x2441453,9),n=c(n,a,r,i,e[15],0xd8a1e681,14),i=c(i,n,a,r,e[4],0xe7d3fbc8,20),r=c(r,i,n,a,e[9],0x21e1cde6,5),a=c(a,r,i,n,e[14],0xc33707d6,9),n=c(n,a,r,i,e[3],0xf4d50d87,14),i=c(i,n,a,r,e[8],0x455a14ed,20),r=c(r,i,n,a,e[13],0xa9e3e905,5),a=c(a,r,i,n,e[2],0xfcefa3f8,9),n=c(n,a,r,i,e[7],0x676f02d9,14),i=c(i,n,a,r,e[12],0x8d2a4c8a,20),r=d(r,i,n,a,e[5],0xfffa3942,4),a=d(a,r,i,n,e[8],0x8771f681,11),n=d(n,a,r,i,e[11],0x6d9d6122,16),i=d(i,n,a,r,e[14],0xfde5380c,23),r=d(r,i,n,a,e[1],0xa4beea44,4),a=d(a,r,i,n,e[4],0x4bdecfa9,11),n=d(n,a,r,i,e[7],0xf6bb4b60,16),i=d(i,n,a,r,e[10],0xbebfbc70,23),r=d(r,i,n,a,e[13],0x289b7ec6,4),a=d(a,r,i,n,e[0],0xeaa127fa,11),n=d(n,a,r,i,e[3],0xd4ef3085,16),i=d(i,n,a,r,e[6],0x4881d05,23),r=d(r,i,n,a,e[9],0xd9d4d039,4),a=d(a,r,i,n,e[12],0xe6db99e5,11),n=d(n,a,r,i,e[15],0x1fa27cf8,16),i=d(i,n,a,r,e[2],0xc4ac5665,23),r=l(r,i,n,a,e[0],0xf4292244,6),a=l(a,r,i,n,e[7],0x432aff97,10),n=l(n,a,r,i,e[14],0xab9423a7,15),i=l(i,n,a,r,e[5],0xfc93a039,21),r=l(r,i,n,a,e[12],0x655b59c3,6),a=l(a,r,i,n,e[3],0x8f0ccc92,10),n=l(n,a,r,i,e[10],0xffeff47d,15),i=l(i,n,a,r,e[1],0x85845dd1,21),r=l(r,i,n,a,e[8],0x6fa87e4f,6),a=l(a,r,i,n,e[15],0xfe2ce6e0,10),n=l(n,a,r,i,e[6],0xa3014314,15),i=l(i,n,a,r,e[13],0x4e0811a1,21),r=l(r,i,n,a,e[4],0xf7537e82,6),a=l(a,r,i,n,e[11],0xbd3af235,10),n=l(n,a,r,i,e[2],0x2ad7d2bb,15),i=l(i,n,a,r,e[9],0xeb86d391,21),this._a=this._a+r|0,this._b=this._b+i|0,this._c=this._c+n|0,this._d=this._d+a|0},s.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=a.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},e.exports=s},1354:function(e,t,r){var i=r(711),n=r(3500);function a(e){this.rand=e||new n.Rand}e.exports=a,a.create=function(e){return new a(e)},a.prototype._randbelow=function(e){var t=Math.ceil(e.bitLength()/8);do var r=new i(this.rand.generate(t));while(r.cmp(e)>=0)return r},a.prototype._randrange=function(e,t){var r=t.sub(e);return e.add(this._randbelow(r))},a.prototype.test=function(e,t,r){var n=e.bitLength(),a=i.mont(e),o=new i(1).toRed(a);t||(t=Math.max(1,n/48|0));for(var s=e.subn(1),u=0;!s.testn(u);u++);for(var f=e.shrn(u),c=s.toRed(a),d=!0;t>0;t--){var l=this._randrange(new i(2),s);r&&r(l);var h=l.toRed(a).redPow(f);if(0!==h.cmp(o)&&0!==h.cmp(c)){for(var p=1;p<u;p++){if(0===(h=h.redSqr()).cmp(o))return!1;if(0===h.cmp(c))break}if(p===u)return!1}}return d},a.prototype.getDivisor=function(e,t){var r=e.bitLength(),n=i.mont(e),a=new i(1).toRed(n);t||(t=Math.max(1,r/48|0));for(var o=e.subn(1),s=0;!o.testn(s);s++);for(var u=e.shrn(s),f=o.toRed(n);t>0;t--){var c=this._randrange(new i(2),o),d=e.gcd(c);if(0!==d.cmpn(1))return d;var l=c.toRed(n).redPow(u);if(0!==l.cmp(a)&&0!==l.cmp(f)){for(var h=1;h<s;h++){if(0===(l=l.redSqr()).cmp(a))return l.fromRed().subn(1).gcd(e);if(0===l.cmp(f))break}if(h===s)return(l=l.redSqr()).fromRed().subn(1).gcd(e)}}return!1}},3523:function(e){function t(e,t){if(!e)throw Error(t||"Assertion failed")}e.exports=t,t.equal=function(e,t,r){if(e!=t)throw Error(r||"Assertion failed: "+e+" != "+t)}},6545:function(e,t){"use strict";var r=t;function i(e){return 1===e.length?"0"+e:e}function n(e){for(var t="",r=0;r<e.length;r++)t+=i(e[r].toString(16));return t}r.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"!=typeof e){for(var i=0;i<e.length;i++)r[i]=0|e[i];return r}if("hex"===t){(e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e);for(var i=0;i<e.length;i+=2)r.push(parseInt(e[i]+e[i+1],16))}else for(var i=0;i<e.length;i++){var n=e.charCodeAt(i),a=n>>8,o=255&n;a?r.push(a,o):r.push(o)}return r},r.zero2=i,r.toHex=n,r.encode=function(e,t){return"hex"===t?n(e):e}},8687:function(e,t,r){"use strict";var i=r(7160);t.certificate=r(8782),t.RSAPrivateKey=i.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())}),t.RSAPublicKey=i.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())}),t.PublicKey=i.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(n),this.key("subjectPublicKey").bitstr())});var n=i.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())});t.PrivateKey=i.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(n),this.key("subjectPrivateKey").octstr())}),t.EncryptedPrivateKey=i.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())}),t.DSAPrivateKey=i.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())}),t.DSAparam=i.define("DSAparam",function(){this.int()}),t.ECPrivateKey=i.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(a),this.key("publicKey").optional().explicit(1).bitstr())});var a=i.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});t.signature=i.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},8782:function(e,t,r){"use strict";var i=r(7160),n=i.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),a=i.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),o=i.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),s=i.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(o),this.key("subjectPublicKey").bitstr())}),u=i.define("RelativeDistinguishedName",function(){this.setof(a)}),f=i.define("RDNSequence",function(){this.seqof(u)}),c=i.define("Name",function(){this.choice({rdnSequence:this.use(f)})}),d=i.define("Validity",function(){this.seq().obj(this.key("notBefore").use(n),this.key("notAfter").use(n))}),l=i.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),h=i.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(o),this.key("issuer").use(c),this.key("validity").use(d),this.key("subject").use(c),this.key("subjectPublicKeyInfo").use(s),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(l).optional())});e.exports=i.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(h),this.key("signatureAlgorithm").use(o),this.key("signatureValue").bitstr())})},6501:function(e,t,r){var i=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r\+\/\=]+)[\n\r]+/m,n=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,a=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r\+\/\=]+)-----END \1-----$/m,o=r(8368),s=r(6594),u=r(6911).Buffer;e.exports=function(e,t){var r,f=e.toString(),c=f.match(i);if(c){var d="aes"+c[1],l=u.from(c[2],"hex"),h=u.from(c[3].replace(/[\r\n]/g,""),"base64"),p=o(t,l.slice(0,8),parseInt(c[1],10)).key,m=[],b=s.createDecipheriv(d,p,l);m.push(b.update(h)),m.push(b.final()),r=u.concat(m)}else r=new u(f.match(a)[2].replace(/[\r\n]/g,""),"base64");return{tag:f.match(n)[1],data:r}}},9902:function(e,t,r){var i=r(8687),n=r(2510),a=r(6501),o=r(6594),s=r(4978),u=r(6911).Buffer;function f(e){"object"!=typeof e||u.isBuffer(e)||(t=e.passphrase,e=e.key),"string"==typeof e&&(e=u.from(e));var t,r,n,o=a(e,t),s=o.tag,f=o.data;switch(s){case"CERTIFICATE":n=i.certificate.decode(f,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(!n&&(n=i.PublicKey.decode(f,"der")),r=n.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return i.RSAPublicKey.decode(n.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return n.subjectPrivateKey=n.subjectPublicKey,{type:"ec",data:n};case"1.2.840.10040.4.1":return n.algorithm.params.pub_key=i.DSAparam.decode(n.subjectPublicKey.data,"der"),{type:"dsa",data:n.algorithm.params};default:throw Error("unknown key id "+r)}case"ENCRYPTED PRIVATE KEY":f=c(f=i.EncryptedPrivateKey.decode(f,"der"),t);case"PRIVATE KEY":switch(r=(n=i.PrivateKey.decode(f,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return i.RSAPrivateKey.decode(n.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:n.algorithm.curve,privateKey:i.ECPrivateKey.decode(n.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return n.algorithm.params.priv_key=i.DSAparam.decode(n.subjectPrivateKey,"der"),{type:"dsa",params:n.algorithm.params};default:throw Error("unknown key id "+r)}case"RSA PUBLIC KEY":return i.RSAPublicKey.decode(f,"der");case"RSA PRIVATE KEY":return i.RSAPrivateKey.decode(f,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:i.DSAPrivateKey.decode(f,"der")};case"EC PRIVATE KEY":return{curve:(f=i.ECPrivateKey.decode(f,"der")).parameters.value,privateKey:f.privateKey};default:throw Error("unknown key type "+s)}}function c(e,t){var r=e.algorithm.decrypt.kde.kdeparams.salt,i=parseInt(e.algorithm.decrypt.kde.kdeparams.iters.toString(),10),a=n[e.algorithm.decrypt.cipher.algo.join(".")],f=e.algorithm.decrypt.cipher.iv,c=e.subjectPrivateKey,d=parseInt(a.split("-")[1],10)/8,l=s.pbkdf2Sync(t,r,i,d,"sha1"),h=o.createDecipheriv(a,l,f),p=[];return p.push(h.update(c)),p.push(h.final()),u.concat(p)}e.exports=f,f.signature=i.signature},4978:function(e,t,r){var i=r(6113),n=r(5349),a=r(7007),o=r(5407);function s(e,t,r,s,u,f){if(n(r,s),e=o(e,a,"Password"),t=o(t,a,"Salt"),"function"==typeof u&&(f=u,u="sha1"),"function"!=typeof f)throw Error("No callback provided to pbkdf2");return i.pbkdf2(e,t,r,s,u,f)}function u(e,t,r,s,u){return n(r,s),e=o(e,a,"Password"),t=o(t,a,"Salt"),u=u||"sha1",i.pbkdf2Sync(e,t,r,s,u)}i.pbkdf2Sync&&-1!==i.pbkdf2Sync.toString().indexOf("keylen, digest")?(t.pbkdf2Sync=u,t.pbkdf2=s):(t.pbkdf2Sync=r(2127),t.pbkdf2=r(9601))},9601:function(t,r,i){var a,o=i(6911).Buffer,s=i(5349),u=i(7007),f=i(2127),c=i(5407),d=e.g.crypto&&e.g.crypto.subtle,l={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},h=[];function p(t){if(e.g.process&&!e.g.process.browser||!d||!d.importKey||!d.deriveBits)return Promise.resolve(!1);if(void 0!==h[t])return h[t];var r=m(a=a||o.alloc(8),a,10,128,t).then(function(){return!0}).catch(function(){return!1});return h[t]=r,r}function m(e,t,r,i,n){return d.importKey("raw",e,{name:"PBKDF2"},!1,["deriveBits"]).then(function(e){return d.deriveBits({name:"PBKDF2",salt:t,iterations:r,hash:{name:n}},e,i<<3)}).then(function(e){return o.from(e)})}function b(e,t){e.then(function(e){n.default.nextTick(function(){t(null,e)})},function(e){n.default.nextTick(function(){t(e)})})}t.exports=function(t,r,i,a,o,d){"function"==typeof o&&(d=o,o=void 0);var h=l[(o=o||"sha1").toLowerCase()];if(!h||"function"!=typeof e.g.Promise)return n.default.nextTick(function(){var e;try{e=f(t,r,i,a,o)}catch(e){return d(e)}d(null,e)});if(s(i,a),t=c(t,u,"Password"),r=c(r,u,"Salt"),"function"!=typeof d)throw Error("No callback provided to pbkdf2");b(p(h).then(function(e){return e?m(t,r,i,a,h):f(t,r,i,a,o)}),d)}},7007:function(e){e.exports="utf-8"},5349:function(e){var t=0x3fffffff;e.exports=function(e,r){if("number"!=typeof e)throw TypeError("Iterations not a number");if(e<0)throw TypeError("Bad iterations");if("number"!=typeof r)throw TypeError("Key length not a number");if(r<0||r>t||r!=r)throw TypeError("Bad key length")}},2127:function(e,t,r){var i={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20},n=r(4873),a=r(6911).Buffer,o=r(5349),s=r(7007),u=r(5407);e.exports=function(e,t,r,f,c){o(r,f),e=u(e,s,"Password"),t=u(t,s,"Salt"),c=c||"sha1";var d=a.allocUnsafe(f),l=a.allocUnsafe(t.length+4);t.copy(l,0,0,t.length);for(var h=0,p=i[c],m=Math.ceil(f/p),b=1;b<=m;b++){l.writeUInt32BE(b,t.length);for(var g=n(c,e).update(l).digest(),v=g,y=1;y<r;y++){v=n(c,e).update(v).digest();for(var _=0;_<p;_++)g[_]^=v[_]}g.copy(d,h),h+=p}return d}},5407:function(e,t,r){var i=r(6911).Buffer;e.exports=function(e,t,r){if(i.isBuffer(e))return e;if("string"==typeof e)return i.from(e,t);if(ArrayBuffer.isView(e))return i.from(e.buffer);throw TypeError(r+" must be a string, a Buffer, a typed array or a DataView")}},9783:function(e,t,r){t.publicEncrypt=r(3995),t.privateDecrypt=r(4366),t.privateEncrypt=function(e,r){return t.publicEncrypt(e,r,!0)},t.publicDecrypt=function(e,r){return t.privateDecrypt(e,r,!0)}},5520:function(e,t,r){var i=r(9739),n=r(6911).Buffer;function a(e){var t=n.allocUnsafe(4);return t.writeUInt32BE(e,0),t}e.exports=function(e,t){for(var r,o=n.alloc(0),s=0;o.length<t;)r=a(s++),o=n.concat([o,i("sha1").update(e).update(r).digest()]);return o.slice(0,t)}},4366:function(e,t,r){var i=r(9902),n=r(5520),a=r(6386),o=r(711),s=r(7166),u=r(9739),f=r(1607),c=r(6911).Buffer;function d(e,t){var r=e.modulus.byteLength(),i=u("sha1").update(c.alloc(0)).digest(),o=i.length;if(0!==t[0])throw Error("decryption error");var s=t.slice(1,o+1),f=t.slice(o+1),d=a(s,n(f,o)),l=a(f,n(d,r-o-1));if(h(i,l.slice(0,o)))throw Error("decryption error");for(var p=o;0===l[p];)p++;if(1!==l[p++])throw Error("decryption error");return l.slice(p)}function l(e,t,r){for(var i=t.slice(0,2),n=2,a=0;0!==t[n++];)if(n>=t.length){a++;break}var o=t.slice(2,n-1);if(("0002"!==i.toString("hex")&&!r||"0001"!==i.toString("hex")&&r)&&a++,o.length<8&&a++,a)throw Error("decryption error");return t.slice(n)}function h(e,t){e=c.from(e),t=c.from(t);var r=0,i=e.length;e.length!==t.length&&(r++,i=Math.min(e.length,t.length));for(var n=-1;++n<i;)r+=e[n]^t[n];return r}e.exports=function(e,t,r){var n,a=e.padding?e.padding:r?1:4,u=i(e),h=u.modulus.byteLength();if(t.length>h||new o(t).cmp(u.modulus)>=0)throw Error("decryption error");n=r?f(new o(t),u):s(t,u);var p=c.alloc(h-n.length);if(n=c.concat([p,n],h),4===a)return d(u,n);if(1===a)return l(u,n,r);if(3===a)return n;throw Error("unknown padding")}},3995:function(e,t,r){var i=r(9902),n=r(7223),a=r(9739),o=r(5520),s=r(6386),u=r(711),f=r(1607),c=r(7166),d=r(6911).Buffer;function l(e,t){var r=e.modulus.byteLength(),i=t.length,f=a("sha1").update(d.alloc(0)).digest(),c=f.length,l=2*c;if(i>r-l-2)throw Error("message too long");var h=d.alloc(r-i-l-2),p=r-c-1,m=n(c),b=s(d.concat([f,h,d.alloc(1,1),t],p),o(m,p)),g=s(m,o(b,c));return new u(d.concat([d.alloc(1),g,b],r))}function h(e,t,r){var i,n=t.length,a=e.modulus.byteLength();if(n>a-11)throw Error("message too long");return i=r?d.alloc(a-n-3,255):p(a-n-3),new u(d.concat([d.from([0,r?1:2]),i,d.alloc(1),t],a))}function p(e){for(var t,r=d.allocUnsafe(e),i=0,a=n(2*e),o=0;i<e;)o===a.length&&(a=n(2*e),o=0),(t=a[o++])&&(r[i++]=t);return r}e.exports=function(e,t,r){var n,a=e.padding?e.padding:r?1:4,o=i(e);if(4===a)n=l(o,t);else if(1===a)n=h(o,t,r);else if(3===a){if((n=new u(t)).cmp(o.modulus)>=0)throw Error("data too long for modulus")}else throw Error("unknown padding");return r?c(n,o):f(n,o)}},1607:function(e,t,r){var i=r(711),n=r(6911).Buffer;e.exports=function(e,t){return n.from(e.toRed(i.mont(t.modulus)).redPow(new i(t.publicExponent)).fromRed().toArray())}},6386:function(e){e.exports=function(e,t){for(var r=e.length,i=-1;++i<r;)e[i]^=t[i];return e}},7223:function(t,r,i){"use strict";var a=65536,o=0xffffffff;function s(){throw Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}var u=i(6911).Buffer,f=e.g.crypto||e.g.msCrypto;function c(e,t){if(e>o)throw RangeError("requested too many random bytes");var r=u.allocUnsafe(e);if(e>0)if(e>a)for(var i=0;i<e;i+=a)f.getRandomValues(r.slice(i,i+a));else f.getRandomValues(r);return"function"==typeof t?n.default.nextTick(function(){t(null,r)}):r}f&&f.getRandomValues?t.exports=c:t.exports=s},6445:function(t,r,i){"use strict";function a(){throw Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var o=i(6911);i(7223);var s=o.Buffer,u=o.kMaxLength,f=e.g.crypto||e.g.msCrypto,c=0xffffffff;function d(e,t){if("number"!=typeof e||e!=e)throw TypeError("offset must be a number");if(e>c||e<0)throw TypeError("offset must be a uint32");if(e>u||e>t)throw RangeError("offset out of range")}function l(e,t,r){if("number"!=typeof e||e!=e)throw TypeError("size must be a number");if(e>c||e<0)throw TypeError("size must be a uint32");if(e+t>r||e>u)throw RangeError("buffer too small")}function h(t,r,i,n){if(!s.isBuffer(t)&&!(t instanceof e.g.Uint8Array))throw TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof r)n=r,r=0,i=t.length;else if("function"==typeof i)n=i,i=t.length-r;else if("function"!=typeof n)throw TypeError('"cb" argument must be a function');return d(r,t.length),l(i,r,t.length),p(t,r,i,n)}function p(e,t,r,i){var a=new Uint8Array(e.buffer,t,r);return(f.getRandomValues(a),i)?void n.default.nextTick(function(){i(null,e)}):e}function m(t,r,i){if(void 0===r&&(r=0),!s.isBuffer(t)&&!(t instanceof e.g.Uint8Array))throw TypeError('"buf" argument must be a Buffer or Uint8Array');return d(r,t.length),void 0===i&&(i=t.length-r),l(i,r,t.length),p(t,r,i)}f&&f.getRandomValues?(r.randomFill=h,r.randomFillSync=m):(r.randomFill=a,r.randomFillSync=a)},4646:function(e){"use strict";let t={};function r(e,r,i){function n(e,t,i){return"string"==typeof r?r:r(e,t,i)}i||(i=Error);class a extends i{constructor(e,t,r){super(n(e,t,r))}}a.prototype.name=i.name,a.prototype.code=e,t[e]=a}function i(e,t){if(!Array.isArray(e))return`of ${t} ${String(e)}`;{let r=e.length;return(e=e.map(e=>String(e)),r>2)?`one of ${t} ${e.slice(0,r-1).join(", ")}, or `+e[r-1]:2===r?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}}function n(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function a(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function o(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}r("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(e,t,r){let s,u;if("string"==typeof t&&n(t,"not ")?(s="must not be",t=t.replace(/^not /,"")):s="must be",a(e," argument"))u=`The ${e} ${s} ${i(t,"type")}`;else{let r=o(e,".")?"property":"argument";u=`The "${e}" ${r} ${s} ${i(t,"type")}`}return u+`. Received type ${typeof r}`},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.q=t},2403:function(e,t,r){"use strict";var i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=c;var a=r(1709),o=r(7337);r(3782)(c,a);for(var s=i(o.prototype),u=0;u<s.length;u++){var f=s[u];c.prototype[f]||(c.prototype[f]=o.prototype[f])}function c(e){if(!(this instanceof c))return new c(e);a.call(this,e),o.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",d)))}function d(){this._writableState.ended||n.default.nextTick(l,this)}function l(e){e.end()}Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(c.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(c.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})},7889:function(e,t,r){"use strict";e.exports=n;var i=r(1170);function n(e){if(!(this instanceof n))return new n(e);i.call(this,e)}r(3782)(n,i),n.prototype._transform=function(e,t,r){r(null,e)}},1709:function(t,r,i){"use strict";t.exports=A,A.ReadableState=E,i(2361).EventEmitter;var a,o,s,u,f,c=function(e,t){return e.listeners(t).length},d=i(4678),l=i(4300).Buffer,h=e.g.Uint8Array||function(){};function p(e){return l.from(e)}function m(e){return l.isBuffer(e)||e instanceof h}var b=i(3837);o=b&&b.debuglog?b.debuglog("stream"):function(){};var g=i(4379),v=i(7025),y=i(6776).getHighWaterMark,_=i(4646).q,x=_.ERR_INVALID_ARG_TYPE,w=_.ERR_STREAM_PUSH_AFTER_EOF,S=_.ERR_METHOD_NOT_IMPLEMENTED,k=_.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;i(3782)(A,d);var $=v.errorOrDestroy,I=["error","close","destroy","pause","resume"];function M(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}function E(e,t,r){a=a||i(2403),e=e||{},"boolean"!=typeof r&&(r=t instanceof a),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=y(this,e,"readableHighWaterMark",r),this.buffer=new g,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(s||(s=i(3704).s),this.decoder=new s(e.encoding),this.encoding=e.encoding)}function A(e){if(a=a||i(2403),!(this instanceof A))return new A(e);var t=this instanceof a;this._readableState=new E(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),d.call(this)}function O(e,t,r,i,n){o("readableAddChunk",t);var a,s=e._readableState;if(null===t)s.reading=!1,T(e,s);else if(n||(a=j(s,t)),a)$(e,a);else if(s.objectMode||t&&t.length>0)if("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===l.prototype||(t=p(t)),i)s.endEmitted?$(e,new k):N(e,s,t,!0);else if(s.ended)$(e,new w);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||0!==t.length?N(e,s,t,!1):B(e,s)):N(e,s,t,!1)}else i||(s.reading=!1,B(e,s));return!s.ended&&(s.length<s.highWaterMark||0===s.length)}function N(e,t,r,i){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,i?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&R(e)),B(e,t)}function j(e,t){var r;return m(t)||"string"==typeof t||void 0===t||e.objectMode||(r=new x("chunk",["string","Buffer","Uint8Array"],t)),r}Object.defineProperty(A.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),A.prototype.destroy=v.destroy,A.prototype._undestroy=v.undestroy,A.prototype._destroy=function(e,t){t(e)},A.prototype.push=function(e,t){var r,i=this._readableState;return i.objectMode?r=!0:"string"==typeof e&&((t=t||i.defaultEncoding)!==i.encoding&&(e=l.from(e,t),t=""),r=!0),O(this,e,t,!1,r)},A.prototype.unshift=function(e){return O(this,e,null,!0,!1)},A.prototype.isPaused=function(){return!1===this._readableState.flowing},A.prototype.setEncoding=function(e){s||(s=i(3704).s);var t=new s(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,n="";null!==r;)n+=t.write(r.data),r=r.next;return this._readableState.buffer.clear(),""!==n&&this._readableState.buffer.push(n),this._readableState.length=n.length,this};var z=0x40000000;function U(e){return e>=z?e=z:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function P(e,t){if(e<=0||0===t.length&&t.ended)return 0;if(t.objectMode)return 1;if(e!=e)if(t.flowing&&t.length)return t.buffer.head.data.length;else return t.length;return(e>t.highWaterMark&&(t.highWaterMark=U(e)),e<=t.length)?e:t.ended?t.length:(t.needReadable=!0,0)}function T(e,t){if(o("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?R(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,D(e)))}}function R(e){var t=e._readableState;o("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(o("emitReadable",t.flowing),t.emittedReadable=!0,n.default.nextTick(D,e))}function D(e){var t=e._readableState;o("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,W(e)}function B(e,t){t.readingMore||(t.readingMore=!0,n.default.nextTick(C,e,t))}function C(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var r=t.length;if(o("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function Z(e){return function(){var t=e._readableState;o("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&c(e,"data")&&(t.flowing=!0,W(e))}}function L(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function q(e){o("readable nexttick read 0"),e.read(0)}function F(e,t){t.resumeScheduled||(t.resumeScheduled=!0,n.default.nextTick(J,e,t))}function J(e,t){o("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),W(e),t.flowing&&!t.reading&&e.read(0)}function W(e){var t=e._readableState;for(o("flow",t.flowing);t.flowing&&null!==e.read(););}function K(e,t){var r;return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r)}function V(e){var t=e._readableState;o("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,n.default.nextTick(G,t,e))}function G(e,t){if(o("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function H(e,t){for(var r=0,i=e.length;r<i;r++)if(e[r]===t)return r;return -1}A.prototype.read=function(e){o("read",e),e=parseInt(e,10);var t,r=this._readableState,i=e;if(0!==e&&(r.emittedReadable=!1),0===e&&r.needReadable&&((0!==r.highWaterMark?r.length>=r.highWaterMark:r.length>0)||r.ended))return o("read: emitReadable",r.length,r.ended),0===r.length&&r.ended?V(this):R(this),null;if(0===(e=P(e,r))&&r.ended)return 0===r.length&&V(this),null;var n=r.needReadable;return o("need readable",n),(0===r.length||r.length-e<r.highWaterMark)&&o("length less than watermark",n=!0),r.ended||r.reading?o("reading or ended",n=!1):n&&(o("do read"),r.reading=!0,r.sync=!0,0===r.length&&(r.needReadable=!0),this._read(r.highWaterMark),r.sync=!1,r.reading||(e=P(i,r))),null===(t=e>0?K(e,r):null)?(r.needReadable=r.length<=r.highWaterMark,e=0):(r.length-=e,r.awaitDrain=0),0===r.length&&(r.ended||(r.needReadable=!0),i!==e&&r.ended&&V(this)),null!==t&&this.emit("data",t),t},A.prototype._read=function(e){$(this,new S("_read()"))},A.prototype.pipe=function(e,t){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,o("pipe count=%d opts=%j",i.pipesCount,t);var a=t&&!1===t.end||e===n.default.stdout||e===n.default.stderr?g:u;function s(e,t){o("onunpipe"),e===r&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,l())}function u(){o("onend"),e.end()}i.endEmitted?n.default.nextTick(a):r.once("end",a),e.on("unpipe",s);var f=Z(r);e.on("drain",f);var d=!1;function l(){o("cleanup"),e.removeListener("close",m),e.removeListener("finish",b),e.removeListener("drain",f),e.removeListener("error",p),e.removeListener("unpipe",s),r.removeListener("end",u),r.removeListener("end",g),r.removeListener("data",h),d=!0,i.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&f()}function h(t){o("ondata");var n=e.write(t);o("dest.write",n),!1===n&&((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==H(i.pipes,e))&&!d&&(o("false write response, pause",i.awaitDrain),i.awaitDrain++),r.pause())}function p(t){o("onerror",t),g(),e.removeListener("error",p),0===c(e,"error")&&$(e,t)}function m(){e.removeListener("finish",b),g()}function b(){o("onfinish"),e.removeListener("close",m),g()}function g(){o("unpipe"),r.unpipe(e)}return r.on("data",h),M(e,"error",p),e.once("close",m),e.once("finish",b),e.emit("pipe",r),i.flowing||(o("pipe resume"),r.resume()),e},A.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var i=t.pipes,n=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a<n;a++)i[a].emit("unpipe",this,{hasUnpiped:!1});return this}var o=H(t.pipes,e);return -1===o||(t.pipes.splice(o,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},A.prototype.on=function(e,t){var r=d.prototype.on.call(this,e,t),i=this._readableState;return"data"===e?(i.readableListening=this.listenerCount("readable")>0,!1!==i.flowing&&this.resume()):"readable"!==e||i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,o("on readable",i.length,i.reading),i.length?R(this):i.reading||n.default.nextTick(q,this)),r},A.prototype.addListener=A.prototype.on,A.prototype.removeListener=function(e,t){var r=d.prototype.removeListener.call(this,e,t);return"readable"===e&&n.default.nextTick(L,this),r},A.prototype.removeAllListeners=function(e){var t=d.prototype.removeAllListeners.apply(this,arguments);return("readable"===e||void 0===e)&&n.default.nextTick(L,this),t},A.prototype.resume=function(){var e=this._readableState;return e.flowing||(o("resume"),e.flowing=!e.readableListening,F(this,e)),e.paused=!1,this},A.prototype.pause=function(){return o("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(o("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},A.prototype.wrap=function(e){var t=this,r=this._readableState,i=!1;for(var n in e.on("end",function(){if(o("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(n){o("wrapped data"),r.decoder&&(n=r.decoder.write(n)),r.objectMode&&null==n||(r.objectMode||n&&n.length)&&(t.push(n)||(i=!0,e.pause()))}),e)void 0===this[n]&&"function"==typeof e[n]&&(this[n]=function(t){return function(){return e[t].apply(e,arguments)}}(n));for(var a=0;a<I.length;a++)e.on(I[a],this.emit.bind(this,I[a]));return this._read=function(t){o("wrapped _read",t),i&&(i=!1,e.resume())},this},"function"==typeof Symbol&&(A.prototype[Symbol.asyncIterator]=function(){return void 0===u&&(u=i(6871)),u(this)}),Object.defineProperty(A.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(A.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(A.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),A._fromList=K,Object.defineProperty(A.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(A.from=function(e,t){return void 0===f&&(f=i(9727)),f(A,e,t)})},1170:function(e,t,r){"use strict";e.exports=c;var i=r(4646).q,n=i.ERR_METHOD_NOT_IMPLEMENTED,a=i.ERR_MULTIPLE_CALLBACK,o=i.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=i.ERR_TRANSFORM_WITH_LENGTH_0,u=r(2403);function f(e,t){var r=this._transformState;r.transforming=!1;var i=r.writecb;if(null===i)return this.emit("error",new a);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),i(e);var n=this._readableState;n.reading=!1,(n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}function c(e){if(!(this instanceof c))return new c(e);u.call(this,e),this._transformState={afterTransform:f.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",d)}function d(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?l(this,null,null):this._flush(function(t,r){l(e,t,r)})}function l(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new s;if(e._transformState.transforming)throw new o;return e.push(null)}r(3782)(c,u),c.prototype.push=function(e,t){return this._transformState.needTransform=!1,u.prototype.push.call(this,e,t)},c.prototype._transform=function(e,t,r){r(new n("_transform()"))},c.prototype._write=function(e,t,r){var i=this._transformState;if(i.writecb=r,i.writechunk=e,i.writeencoding=t,!i.transforming){var n=this._readableState;(i.needTransform||n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}},c.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},c.prototype._destroy=function(e,t){u.prototype._destroy.call(this,e,function(e){t(e)})}},7337:function(t,r,i){"use strict";function a(e){var t=this;this.next=null,this.entry=null,this.finish=function(){J(t,e)}}t.exports=E,E.WritableState=M;var o,s,u={deprecate:i(6769)},f=i(4678),c=i(4300).Buffer,d=e.g.Uint8Array||function(){};function l(e){return c.from(e)}function h(e){return c.isBuffer(e)||e instanceof d}var p=i(7025),m=i(6776).getHighWaterMark,b=i(4646).q,g=b.ERR_INVALID_ARG_TYPE,v=b.ERR_METHOD_NOT_IMPLEMENTED,y=b.ERR_MULTIPLE_CALLBACK,_=b.ERR_STREAM_CANNOT_PIPE,x=b.ERR_STREAM_DESTROYED,w=b.ERR_STREAM_NULL_VALUES,S=b.ERR_STREAM_WRITE_AFTER_END,k=b.ERR_UNKNOWN_ENCODING,$=p.errorOrDestroy;function I(){}function M(e,t,r){o=o||i(2403),e=e||{},"boolean"!=typeof r&&(r=t instanceof o),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=m(this,e,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var n=!1===e.decodeStrings;this.decodeStrings=!n,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){T(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function E(e){var t=this instanceof(o=o||i(2403));if(!t&&!s.call(E,this))return new E(e);this._writableState=new M(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),f.call(this)}function A(e,t){var r=new S;$(e,r),n.default.nextTick(t,r)}function O(e,t,r,i){var a;return null===r?a=new w:"string"==typeof r||t.objectMode||(a=new g("chunk",["string","Buffer"],r)),!a||($(e,a),n.default.nextTick(i,a),!1)}function N(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=c.from(t,r)),t}function j(e,t,r,i,n,a){if(!r){var o=N(t,i,n);i!==o&&(r=!0,n="buffer",i=o)}var s=t.objectMode?1:i.length;t.length+=s;var u=t.length<t.highWaterMark;if(u||(t.needDrain=!0),t.writing||t.corked){var f=t.lastBufferedRequest;t.lastBufferedRequest={chunk:i,encoding:n,isBuf:r,callback:a,next:null},f?f.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else z(e,t,!1,s,i,n,a);return u}function z(e,t,r,i,n,a,o){t.writelen=i,t.writecb=o,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new x("write")):r?e._writev(n,t.onwrite):e._write(n,a,t.onwrite),t.sync=!1}function U(e,t,r,i,a){--t.pendingcb,r?(n.default.nextTick(a,i),n.default.nextTick(q,e,t),e._writableState.errorEmitted=!0,$(e,i)):(a(i),e._writableState.errorEmitted=!0,$(e,i),q(e,t))}function P(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function T(e,t){var r=e._writableState,i=r.sync,a=r.writecb;if("function"!=typeof a)throw new y;if(P(r),t)U(e,r,i,t,a);else{var o=C(r)||e.destroyed;o||r.corked||r.bufferProcessing||!r.bufferedRequest||B(e,r),i?n.default.nextTick(R,e,r,o,a):R(e,r,o,a)}}function R(e,t,r,i){r||D(e,t),t.pendingcb--,i(),q(e,t)}function D(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function B(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var i=Array(t.bufferedRequestCount),n=t.corkedRequestsFree;n.entry=r;for(var o=0,s=!0;r;)i[o]=r,r.isBuf||(s=!1),r=r.next,o+=1;i.allBuffers=s,z(e,t,!0,t.length,i,"",n.finish),t.pendingcb++,t.lastBufferedRequest=null,n.next?(t.corkedRequestsFree=n.next,n.next=null):t.corkedRequestsFree=new a(t),t.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,f=r.encoding,c=r.callback,d=t.objectMode?1:u.length;if(z(e,t,!1,d,u,f,c),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function C(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function Z(e,t){e._final(function(r){t.pendingcb--,r&&$(e,r),t.prefinished=!0,e.emit("prefinish"),q(e,t)})}function L(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,n.default.nextTick(Z,e,t)))}function q(e,t){var r=C(t);if(r&&(L(e,t),0===t.pendingcb)&&(t.finished=!0,e.emit("finish"),t.autoDestroy)){var i=e._readableState;(!i||i.autoDestroy&&i.endEmitted)&&e.destroy()}return r}function F(e,t,r){t.ending=!0,q(e,t),r&&(t.finished?n.default.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}function J(e,t,r){var i=e.entry;for(e.entry=null;i;){var n=i.callback;t.pendingcb--,n(r),i=i.next}t.corkedRequestsFree.next=e}i(3782)(E,f),M.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(M.prototype,"buffer",{get:u.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(s=Function.prototype[Symbol.hasInstance],Object.defineProperty(E,Symbol.hasInstance,{value:function(e){return!!s.call(this,e)||this===E&&e&&e._writableState instanceof M}})):s=function(e){return e instanceof this},E.prototype.pipe=function(){$(this,new _)},E.prototype.write=function(e,t,r){var i=this._writableState,n=!1,a=!i.objectMode&&h(e);return a&&!c.isBuffer(e)&&(e=l(e)),"function"==typeof t&&(r=t,t=null),a?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof r&&(r=I),i.ending?A(this,r):(a||O(this,i,e,r))&&(i.pendingcb++,n=j(this,i,a,e,t,r)),n},E.prototype.cork=function(){this._writableState.corked++},E.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||B(this,e))},E.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new k(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(E.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(E.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),E.prototype._write=function(e,t,r){r(new v("_write()"))},E.prototype._writev=null,E.prototype.end=function(e,t,r){var i=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||F(this,i,r),this},Object.defineProperty(E.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(E.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),E.prototype.destroy=p.destroy,E.prototype._undestroy=p.undestroy,E.prototype._destroy=function(e,t){t(e)}},6871:function(e,t,r){"use strict";function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var a,o=r(9698),s=Symbol("lastResolve"),u=Symbol("lastReject"),f=Symbol("error"),c=Symbol("ended"),d=Symbol("lastPromise"),l=Symbol("handlePromise"),h=Symbol("stream");function p(e,t){return{value:e,done:t}}function m(e){var t=e[s];if(null!==t){var r=e[h].read();null!==r&&(e[d]=null,e[s]=null,e[u]=null,t(p(r,!1)))}}function b(e){n.default.nextTick(m,e)}function g(e,t){return function(r,i){e.then(function(){t[c]?r(p(void 0,!0)):t[l](r,i)},i)}}var v=Object.getPrototypeOf(function(){}),y=Object.setPrototypeOf((i(a={get stream(){return this[h]},next:function(){var e,t=this,r=this[f];if(null!==r)return Promise.reject(r);if(this[c])return Promise.resolve(p(void 0,!0));if(this[h].destroyed)return new Promise(function(e,r){n.default.nextTick(function(){t[f]?r(t[f]):e(p(void 0,!0))})});var i=this[d];if(i)e=new Promise(g(i,this));else{var a=this[h].read();if(null!==a)return Promise.resolve(p(a,!1));e=new Promise(this[l])}return this[d]=e,e}},Symbol.asyncIterator,function(){return this}),i(a,"return",function(){var e=this;return new Promise(function(t,r){e[h].destroy(null,function(e){e?r(e):t(p(void 0,!0))})})}),a),v);e.exports=function(e){var t,r=Object.create(y,(i(t={},h,{value:e,writable:!0}),i(t,s,{value:null,writable:!0}),i(t,u,{value:null,writable:!0}),i(t,f,{value:null,writable:!0}),i(t,c,{value:e._readableState.endEmitted,writable:!0}),i(t,l,{value:function(e,t){var i=r[h].read();i?(r[d]=null,r[s]=null,r[u]=null,e(p(i,!1))):(r[s]=e,r[u]=t)},writable:!0}),t));return r[d]=null,o(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[u];null!==t&&(r[d]=null,r[s]=null,r[u]=null,t(e)),r[f]=e;return}var i=r[s];null!==i&&(r[d]=null,r[s]=null,r[u]=null,i(p(void 0,!0))),r[c]=!0}),e.on("readable",b.bind(null,r)),r}},4379:function(e,t,r){"use strict";function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,i)}return r}function n(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach(function(t){a(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function s(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function u(e,t,r){return t&&s(e.prototype,t),r&&s(e,r),e}var f=r(4300).Buffer,c=r(3837).inspect,d=c&&c.custom||"inspect";function l(e,t,r){f.prototype.copy.call(e,t,r)}e.exports=function(){function e(){o(this,e),this.head=null,this.tail=null,this.length=0}return u(e,[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return f.alloc(0);for(var t=f.allocUnsafe(e>>>0),r=this.head,i=0;r;)l(r.data,t,i),i+=r.data.length,r=r.next;return t}},{key:"consume",value:function(e,t){var r;return e<this.head.data.length?(r=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):r=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,r=1,i=t.data;for(e-=i.length;t=t.next;){var n=t.data,a=e>n.length?n.length:e;if(a===n.length?i+=n:i+=n.slice(0,e),0==(e-=a)){a===n.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=n.slice(a));break}++r}return this.length-=r,i}},{key:"_getBuffer",value:function(e){var t=f.allocUnsafe(e),r=this.head,i=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var n=r.data,a=e>n.length?n.length:e;if(n.copy(t,t.length-e,0,a),0==(e-=a)){a===n.length?(++i,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=n.slice(a));break}++i}return this.length-=i,t}},{key:d,value:function(e,t){return c(this,n({},t,{depth:0,customInspect:!1}))}}]),e}()},7025:function(e){"use strict";function t(e,t){i(e,t),r(e)}function r(e){e._writableState&&!e._writableState.emitClose||(!e._readableState||e._readableState.emitClose)&&e.emit("close")}function i(e,t){e.emit("error",t)}e.exports={destroy:function(e,a){var o=this,s=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return s||u?a?a(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.default.nextTick(i,this,e)):n.default.nextTick(i,this,e)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!a&&e?o._writableState?o._writableState.errorEmitted?n.default.nextTick(r,o):(o._writableState.errorEmitted=!0,n.default.nextTick(t,o,e)):n.default.nextTick(t,o,e):a?(n.default.nextTick(r,o),a(e)):n.default.nextTick(r,o)})),this},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var r=e._readableState,i=e._writableState;r&&r.autoDestroy||i&&i.autoDestroy?e.destroy(t):e.emit("error",t)}}},9698:function(e,t,r){"use strict";var i=r(4646).q.ERR_STREAM_PREMATURE_CLOSE;function n(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,i=Array(r),n=0;n<r;n++)i[n]=arguments[n];e.apply(this,i)}}}function a(){}function o(e){return e.setHeader&&"function"==typeof e.abort}function s(e,t,r){if("function"==typeof t)return s(e,null,t);t||(t={}),r=n(r||a);var u=t.readable||!1!==t.readable&&e.readable,f=t.writable||!1!==t.writable&&e.writable,c=function(){e.writable||l()},d=e._writableState&&e._writableState.finished,l=function(){f=!1,d=!0,u||r.call(e)},h=e._readableState&&e._readableState.endEmitted,p=function(){u=!1,h=!0,f||r.call(e)},m=function(t){r.call(e,t)},b=function(){var t;return u&&!h?(e._readableState&&e._readableState.ended||(t=new i),r.call(e,t)):f&&!d?(e._writableState&&e._writableState.ended||(t=new i),r.call(e,t)):void 0},g=function(){e.req.on("finish",l)};return o(e)?(e.on("complete",l),e.on("abort",b),e.req?g():e.on("request",g)):f&&!e._writableState&&(e.on("end",c),e.on("close",c)),e.on("end",p),e.on("finish",l),!1!==t.error&&e.on("error",m),e.on("close",b),function(){e.removeListener("complete",l),e.removeListener("abort",b),e.removeListener("request",g),e.req&&e.req.removeListener("finish",l),e.removeListener("end",c),e.removeListener("close",c),e.removeListener("finish",l),e.removeListener("end",p),e.removeListener("error",m),e.removeListener("close",b)}}e.exports=s},9727:function(e,t,r){"use strict";function i(e,t,r,i,n,a,o){try{var s=e[a](o),u=s.value}catch(e){r(e);return}s.done?t(u):Promise.resolve(u).then(i,n)}function n(e){return function(){var t=this,r=arguments;return new Promise(function(n,a){var o=e.apply(t,r);function s(e){i(o,n,a,s,u,"next",e)}function u(e){i(o,n,a,s,u,"throw",e)}s(void 0)})}}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,i)}return r}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach(function(t){s(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var u=r(4646).q.ERR_INVALID_ARG_TYPE;e.exports=function(e,t,r){if(t&&"function"==typeof t.next)i=t;else if(t&&t[Symbol.asyncIterator])i=t[Symbol.asyncIterator]();else if(t&&t[Symbol.iterator])i=t[Symbol.iterator]();else throw new u("iterable",["Iterable"],t);var i,a=new e(o({objectMode:!0},r)),s=!1;function f(){return c.apply(this,arguments)}function c(){return(c=n(function*(){try{var e=yield i.next(),t=e.value;e.done?a.push(null):a.push((yield t))?f():s=!1}catch(e){a.destroy(e)}})).apply(this,arguments)}return a._read=function(){s||(s=!0,f())},a}},8442:function(e,t,r){"use strict";function i(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var n,a=r(4646).q,o=a.ERR_MISSING_ARGS,s=a.ERR_STREAM_DESTROYED;function u(e){if(e)throw e}function f(e){return e.setHeader&&"function"==typeof e.abort}function c(e,t,a,o){o=i(o);var u=!1;e.on("close",function(){u=!0}),void 0===n&&(n=r(9698)),n(e,{readable:t,writable:a},function(e){if(e)return o(e);u=!0,o()});var c=!1;return function(t){if(!u&&!c){if(c=!0,f(e))return e.abort();if("function"==typeof e.destroy)return e.destroy();o(t||new s("pipe"))}}}function d(e){e()}function l(e,t){return e.pipe(t)}function h(e){return e.length&&"function"==typeof e[e.length-1]?e.pop():u}e.exports=function(){for(var e,t=arguments.length,r=Array(t),i=0;i<t;i++)r[i]=arguments[i];var n=h(r);if(Array.isArray(r[0])&&(r=r[0]),r.length<2)throw new o("streams");var a=r.map(function(t,i){var o=i<r.length-1;return c(t,o,i>0,function(t){e||(e=t),t&&a.forEach(d),o||(a.forEach(d),n(e))})});return r.reduce(l)}},6776:function(e,t,r){"use strict";var i=r(4646).q.ERR_INVALID_OPT_VALUE;function n(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}e.exports={getHighWaterMark:function(e,t,r,a){var o=n(t,a,r);if(null!=o){if(!(isFinite(o)&&Math.floor(o)===o)||o<0)throw new i(a?r:"highWaterMark",o);return Math.floor(o)}return e.objectMode?16:16384}}},4678:function(e,t,r){e.exports=r(2781)},3726:function(e,t,r){var i=r(2781);"disable"===n.default.env.READABLE_STREAM&&i?(e.exports=i.Readable,Object.assign(e.exports,i),e.exports.Stream=i):((t=e.exports=r(1709)).Stream=i||t,t.Readable=t,t.Writable=r(7337),t.Duplex=r(2403),t.Transform=r(1170),t.PassThrough=r(7889),t.finished=r(9698),t.pipeline=r(8442))},3225:function(e,t,r){"use strict";var i=r(4300).Buffer,n=r(3782),a=r(9029),o=Array(16),s=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],u=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],f=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],c=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],d=[0,0x5a827999,0x6ed9eba1,0x8f1bbcdc,0xa953fd4e],l=[0x50a28be6,0x5c4dd124,0x6d703ef3,0x7a6d76e9,0];function h(){a.call(this,64),this._a=0x67452301,this._b=0xefcdab89,this._c=0x98badcfe,this._d=0x10325476,this._e=0xc3d2e1f0}function p(e,t){return e<<t|e>>>32-t}function m(e,t,r,i,n,a,o,s){return p(e+(t^r^i)+a+o|0,s)+n|0}function b(e,t,r,i,n,a,o,s){return p(e+(t&r|~t&i)+a+o|0,s)+n|0}function g(e,t,r,i,n,a,o,s){return p(e+((t|~r)^i)+a+o|0,s)+n|0}function v(e,t,r,i,n,a,o,s){return p(e+(t&i|r&~i)+a+o|0,s)+n|0}function y(e,t,r,i,n,a,o,s){return p(e+(t^(r|~i))+a+o|0,s)+n|0}n(h,a),h.prototype._update=function(){for(var e,t,r=o,i=0;i<16;++i)r[i]=this._block.readInt32LE(4*i);for(var n=0|this._a,a=0|this._b,h=0|this._c,_=0|this._d,x=0|this._e,w=0|this._a,S=0|this._b,k=0|this._c,$=0|this._d,I=0|this._e,M=0;M<80;M+=1)M<16?(e=m(n,a,h,_,x,r[s[M]],d[0],f[M]),t=y(w,S,k,$,I,r[u[M]],l[0],c[M])):M<32?(e=b(n,a,h,_,x,r[s[M]],d[1],f[M]),t=v(w,S,k,$,I,r[u[M]],l[1],c[M])):M<48?(e=g(n,a,h,_,x,r[s[M]],d[2],f[M]),t=g(w,S,k,$,I,r[u[M]],l[2],c[M])):M<64?(e=v(n,a,h,_,x,r[s[M]],d[3],f[M]),t=b(w,S,k,$,I,r[u[M]],l[3],c[M])):(e=y(n,a,h,_,x,r[s[M]],d[4],f[M]),t=m(w,S,k,$,I,r[u[M]],l[4],c[M])),n=x,x=_,_=p(h,10),h=a,a=e,w=I,I=$,$=p(k,10),k=S,S=t;var E=this._b+h+$|0;this._b=this._c+_+I|0,this._c=this._d+x+w|0,this._d=this._e+n+S|0,this._e=this._a+a+k|0,this._a=E},h.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=i.alloc?i.alloc(20):new i(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},e.exports=h},5055:function(e,t,r){var i=r(4300),n=i.Buffer;function a(e,t){for(var r in e)t[r]=e[r]}function o(e,t,r){return n(e,t,r)}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?e.exports=i:(a(i,t),t.Buffer=o),o.prototype=Object.create(n.prototype),a(n,o),o.from=function(e,t,r){if("number"==typeof e)throw TypeError("Argument must not be a number");return n(e,t,r)},o.alloc=function(e,t,r){if("number"!=typeof e)throw TypeError("Argument must be a number");var i=n(e);return void 0!==t?"string"==typeof r?i.fill(t,r):i.fill(t):i.fill(0),i},o.allocUnsafe=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return n(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return i.SlowBuffer(e)}},6911:function(e,t,r){var i=r(4300),n=i.Buffer;function a(e,t){for(var r in e)t[r]=e[r]}function o(e,t,r){return n(e,t,r)}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?e.exports=i:(a(i,t),t.Buffer=o),o.prototype=Object.create(n.prototype),a(n,o),o.from=function(e,t,r){if("number"==typeof e)throw TypeError("Argument must not be a number");return n(e,t,r)},o.alloc=function(e,t,r){if("number"!=typeof e)throw TypeError("Argument must be a number");var i=n(e);return void 0!==t?"string"==typeof r?i.fill(t,r):i.fill(t):i.fill(0),i},o.allocUnsafe=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return n(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return i.SlowBuffer(e)}},2858:function(e,t,r){var i=r(6911).Buffer;function n(e,t){this._block=i.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}n.prototype.update=function(e,t){"string"==typeof e&&(t=t||"utf8",e=i.from(e,t));for(var r=this._block,n=this._blockSize,a=e.length,o=this._len,s=0;s<a;){for(var u=o%n,f=Math.min(a-s,n-u),c=0;c<f;c++)r[u+c]=e[s+c];o+=f,s+=f,o%n==0&&this._update(r)}return this._len+=a,this},n.prototype.digest=function(e){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,t+1),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=8*this._len;if(r<=0xffffffff)this._block.writeUInt32BE(r,this._blockSize-4);else{var i=r>>>0,n=(r-i)/0x100000000;this._block.writeUInt32BE(n,this._blockSize-8),this._block.writeUInt32BE(i,this._blockSize-4)}this._update(this._block);var a=this._hash();return e?a.toString(e):a},n.prototype._update=function(){throw Error("_update must be implemented by subclass")},e.exports=n},4371:function(e,t,r){var i=e.exports=function(e){var t=i[e=e.toLowerCase()];if(!t)throw Error(e+" is not supported (we accept pull requests)");return new t};i.sha=r(4018),i.sha1=r(4179),i.sha224=r(532),i.sha256=r(1843),i.sha384=r(7455),i.sha512=r(9934)},4018:function(e,t,r){var i=r(3782),n=r(2858),a=r(6911).Buffer,o=[0x5a827999,0x6ed9eba1,-0x70e44324,-0x359d3e2a],s=Array(80);function u(){this.init(),this._w=s,n.call(this,64,56)}function f(e){return e<<5|e>>>27}function c(e){return e<<30|e>>>2}function d(e,t,r,i){return 0===e?t&r|~t&i:2===e?t&r|t&i|r&i:t^r^i}i(u,n),u.prototype.init=function(){return this._a=0x67452301,this._b=0xefcdab89,this._c=0x98badcfe,this._d=0x10325476,this._e=0xc3d2e1f0,this},u.prototype._update=function(e){for(var t=this._w,r=0|this._a,i=0|this._b,n=0|this._c,a=0|this._d,s=0|this._e,u=0;u<16;++u)t[u]=e.readInt32BE(4*u);for(;u<80;++u)t[u]=t[u-3]^t[u-8]^t[u-14]^t[u-16];for(var l=0;l<80;++l){var h=~~(l/20),p=f(r)+d(h,i,n,a)+s+t[l]+o[h]|0;s=a,a=n,n=c(i),i=r,r=p}this._a=r+this._a|0,this._b=i+this._b|0,this._c=n+this._c|0,this._d=a+this._d|0,this._e=s+this._e|0},u.prototype._hash=function(){var e=a.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=u},4179:function(e,t,r){var i=r(3782),n=r(2858),a=r(6911).Buffer,o=[0x5a827999,0x6ed9eba1,-0x70e44324,-0x359d3e2a],s=Array(80);function u(){this.init(),this._w=s,n.call(this,64,56)}function f(e){return e<<1|e>>>31}function c(e){return e<<5|e>>>27}function d(e){return e<<30|e>>>2}function l(e,t,r,i){return 0===e?t&r|~t&i:2===e?t&r|t&i|r&i:t^r^i}i(u,n),u.prototype.init=function(){return this._a=0x67452301,this._b=0xefcdab89,this._c=0x98badcfe,this._d=0x10325476,this._e=0xc3d2e1f0,this},u.prototype._update=function(e){for(var t=this._w,r=0|this._a,i=0|this._b,n=0|this._c,a=0|this._d,s=0|this._e,u=0;u<16;++u)t[u]=e.readInt32BE(4*u);for(;u<80;++u)t[u]=f(t[u-3]^t[u-8]^t[u-14]^t[u-16]);for(var h=0;h<80;++h){var p=~~(h/20),m=c(r)+l(p,i,n,a)+s+t[h]+o[p]|0;s=a,a=n,n=d(i),i=r,r=m}this._a=r+this._a|0,this._b=i+this._b|0,this._c=n+this._c|0,this._d=a+this._d|0,this._e=s+this._e|0},u.prototype._hash=function(){var e=a.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=u},532:function(e,t,r){var i=r(3782),n=r(1843),a=r(2858),o=r(6911).Buffer,s=Array(64);function u(){this.init(),this._w=s,a.call(this,64,56)}i(u,n),u.prototype.init=function(){return this._a=0xc1059ed8,this._b=0x367cd507,this._c=0x3070dd17,this._d=0xf70e5939,this._e=0xffc00b31,this._f=0x68581511,this._g=0x64f98fa7,this._h=0xbefa4fa4,this},u.prototype._hash=function(){var e=o.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},e.exports=u},1843:function(e,t,r){var i=r(3782),n=r(2858),a=r(6911).Buffer,o=[0x428a2f98,0x71374491,0xb5c0fbcf,0xe9b5dba5,0x3956c25b,0x59f111f1,0x923f82a4,0xab1c5ed5,0xd807aa98,0x12835b01,0x243185be,0x550c7dc3,0x72be5d74,0x80deb1fe,0x9bdc06a7,0xc19bf174,0xe49b69c1,0xefbe4786,0xfc19dc6,0x240ca1cc,0x2de92c6f,0x4a7484aa,0x5cb0a9dc,0x76f988da,0x983e5152,0xa831c66d,0xb00327c8,0xbf597fc7,0xc6e00bf3,0xd5a79147,0x6ca6351,0x14292967,0x27b70a85,0x2e1b2138,0x4d2c6dfc,0x53380d13,0x650a7354,0x766a0abb,0x81c2c92e,0x92722c85,0xa2bfe8a1,0xa81a664b,0xc24b8b70,0xc76c51a3,0xd192e819,0xd6990624,0xf40e3585,0x106aa070,0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5,0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3,0x748f82ee,0x78a5636f,0x84c87814,0x8cc70208,0x90befffa,0xa4506ceb,0xbef9a3f7,0xc67178f2],s=Array(64);function u(){this.init(),this._w=s,n.call(this,64,56)}function f(e,t,r){return r^e&(t^r)}function c(e,t,r){return e&t|r&(e|t)}function d(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function l(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function h(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}function p(e){return(e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10}i(u,n),u.prototype.init=function(){return this._a=0x6a09e667,this._b=0xbb67ae85,this._c=0x3c6ef372,this._d=0xa54ff53a,this._e=0x510e527f,this._f=0x9b05688c,this._g=0x1f83d9ab,this._h=0x5be0cd19,this},u.prototype._update=function(e){for(var t=this._w,r=0|this._a,i=0|this._b,n=0|this._c,a=0|this._d,s=0|this._e,u=0|this._f,m=0|this._g,b=0|this._h,g=0;g<16;++g)t[g]=e.readInt32BE(4*g);for(;g<64;++g)t[g]=p(t[g-2])+t[g-7]+h(t[g-15])+t[g-16]|0;for(var v=0;v<64;++v){var y=b+l(s)+f(s,u,m)+o[v]+t[v]|0,_=d(r)+c(r,i,n)|0;b=m,m=u,u=s,s=a+y|0,a=n,n=i,i=r,r=y+_|0}this._a=r+this._a|0,this._b=i+this._b|0,this._c=n+this._c|0,this._d=a+this._d|0,this._e=s+this._e|0,this._f=u+this._f|0,this._g=m+this._g|0,this._h=b+this._h|0},u.prototype._hash=function(){var e=a.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},e.exports=u},7455:function(e,t,r){var i=r(3782),n=r(9934),a=r(2858),o=r(6911).Buffer,s=Array(160);function u(){this.init(),this._w=s,a.call(this,128,112)}i(u,n),u.prototype.init=function(){return this._ah=0xcbbb9d5d,this._bh=0x629a292a,this._ch=0x9159015a,this._dh=0x152fecd8,this._eh=0x67332667,this._fh=0x8eb44a87,this._gh=0xdb0c2e0d,this._hh=0x47b5481d,this._al=0xc1059ed8,this._bl=0x367cd507,this._cl=0x3070dd17,this._dl=0xf70e5939,this._el=0xffc00b31,this._fl=0x68581511,this._gl=0x64f98fa7,this._hl=0xbefa4fa4,this},u.prototype._hash=function(){var e=o.allocUnsafe(48);function t(t,r,i){e.writeInt32BE(t,i),e.writeInt32BE(r,i+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},e.exports=u},9934:function(e,t,r){var i=r(3782),n=r(2858),a=r(6911).Buffer,o=[0x428a2f98,0xd728ae22,0x71374491,0x23ef65cd,0xb5c0fbcf,0xec4d3b2f,0xe9b5dba5,0x8189dbbc,0x3956c25b,0xf348b538,0x59f111f1,0xb605d019,0x923f82a4,0xaf194f9b,0xab1c5ed5,0xda6d8118,0xd807aa98,0xa3030242,0x12835b01,0x45706fbe,0x243185be,0x4ee4b28c,0x550c7dc3,0xd5ffb4e2,0x72be5d74,0xf27b896f,0x80deb1fe,0x3b1696b1,0x9bdc06a7,0x25c71235,0xc19bf174,0xcf692694,0xe49b69c1,0x9ef14ad2,0xefbe4786,0x384f25e3,0xfc19dc6,0x8b8cd5b5,0x240ca1cc,0x77ac9c65,0x2de92c6f,0x592b0275,0x4a7484aa,0x6ea6e483,0x5cb0a9dc,0xbd41fbd4,0x76f988da,0x831153b5,0x983e5152,0xee66dfab,0xa831c66d,0x2db43210,0xb00327c8,0x98fb213f,0xbf597fc7,0xbeef0ee4,0xc6e00bf3,0x3da88fc2,0xd5a79147,0x930aa725,0x6ca6351,0xe003826f,0x14292967,0xa0e6e70,0x27b70a85,0x46d22ffc,0x2e1b2138,0x5c26c926,0x4d2c6dfc,0x5ac42aed,0x53380d13,0x9d95b3df,0x650a7354,0x8baf63de,0x766a0abb,0x3c77b2a8,0x81c2c92e,0x47edaee6,0x92722c85,0x1482353b,0xa2bfe8a1,0x4cf10364,0xa81a664b,0xbc423001,0xc24b8b70,0xd0f89791,0xc76c51a3,0x654be30,0xd192e819,0xd6ef5218,0xd6990624,0x5565a910,0xf40e3585,0x5771202a,0x106aa070,0x32bbd1b8,0x19a4c116,0xb8d2d0c8,0x1e376c08,0x5141ab53,0x2748774c,0xdf8eeb99,0x34b0bcb5,0xe19b48a8,0x391c0cb3,0xc5c95a63,0x4ed8aa4a,0xe3418acb,0x5b9cca4f,0x7763e373,0x682e6ff3,0xd6b2b8a3,0x748f82ee,0x5defb2fc,0x78a5636f,0x43172f60,0x84c87814,0xa1f0ab72,0x8cc70208,0x1a6439ec,0x90befffa,0x23631e28,0xa4506ceb,0xde82bde9,0xbef9a3f7,0xb2c67915,0xc67178f2,0xe372532b,0xca273ece,0xea26619c,0xd186b8c7,0x21c0c207,0xeada7dd6,0xcde0eb1e,0xf57d4f7f,0xee6ed178,0x6f067aa,0x72176fba,0xa637dc5,0xa2c898a6,0x113f9804,0xbef90dae,0x1b710b35,0x131c471b,0x28db77f5,0x23047d84,0x32caab7b,0x40c72493,0x3c9ebe0a,0x15c9bebc,0x431d67c4,0x9c100d4c,0x4cc5d4be,0xcb3e42b6,0x597f299c,0xfc657e2a,0x5fcb6fab,0x3ad6faec,0x6c44198c,0x4a475817],s=Array(160);function u(){this.init(),this._w=s,n.call(this,128,112)}function f(e,t,r){return r^e&(t^r)}function c(e,t,r){return e&t|r&(e|t)}function d(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function l(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function h(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function p(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function m(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function b(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function g(e,t){return+(e>>>0<t>>>0)}i(u,n),u.prototype.init=function(){return this._ah=0x6a09e667,this._bh=0xbb67ae85,this._ch=0x3c6ef372,this._dh=0xa54ff53a,this._eh=0x510e527f,this._fh=0x9b05688c,this._gh=0x1f83d9ab,this._hh=0x5be0cd19,this._al=0xf3bcc908,this._bl=0x84caa73b,this._cl=0xfe94f82b,this._dl=0x5f1d36f1,this._el=0xade682d1,this._fl=0x2b3e6c1f,this._gl=0xfb41bd6b,this._hl=0x137e2179,this},u.prototype._update=function(e){for(var t=this._w,r=0|this._ah,i=0|this._bh,n=0|this._ch,a=0|this._dh,s=0|this._eh,u=0|this._fh,v=0|this._gh,y=0|this._hh,_=0|this._al,x=0|this._bl,w=0|this._cl,S=0|this._dl,k=0|this._el,$=0|this._fl,I=0|this._gl,M=0|this._hl,E=0;E<32;E+=2)t[E]=e.readInt32BE(4*E),t[E+1]=e.readInt32BE(4*E+4);for(;E<160;E+=2){var A=t[E-30],O=t[E-30+1],N=h(A,O),j=p(O,A),z=m(A=t[E-4],O=t[E-4+1]),U=b(O,A),P=t[E-14],T=t[E-14+1],R=t[E-32],D=t[E-32+1],B=j+T|0,C=N+P+g(B,j)|0;C=(C=C+z+g(B=B+U|0,U)|0)+R+g(B=B+D|0,D)|0,t[E]=C,t[E+1]=B}for(var Z=0;Z<160;Z+=2){C=t[Z],B=t[Z+1];var L=c(r,i,n),q=c(_,x,w),F=d(r,_),J=d(_,r),W=l(s,k),K=l(k,s),V=o[Z],G=o[Z+1],H=f(s,u,v),X=f(k,$,I),Y=M+K|0,Q=y+W+g(Y,M)|0;Q=(Q=(Q=Q+H+g(Y=Y+X|0,X)|0)+V+g(Y=Y+G|0,G)|0)+C+g(Y=Y+B|0,B)|0;var ee=J+q|0,et=F+L+g(ee,J)|0;y=v,M=I,v=u,I=$,u=s,$=k,s=a+Q+g(k=S+Y|0,S)|0,a=n,S=w,n=i,w=x,i=r,x=_,r=Q+et+g(_=Y+ee|0,Y)|0}this._al=this._al+_|0,this._bl=this._bl+x|0,this._cl=this._cl+w|0,this._dl=this._dl+S|0,this._el=this._el+k|0,this._fl=this._fl+$|0,this._gl=this._gl+I|0,this._hl=this._hl+M|0,this._ah=this._ah+r+g(this._al,_)|0,this._bh=this._bh+i+g(this._bl,x)|0,this._ch=this._ch+n+g(this._cl,w)|0,this._dh=this._dh+a+g(this._dl,S)|0,this._eh=this._eh+s+g(this._el,k)|0,this._fh=this._fh+u+g(this._fl,$)|0,this._gh=this._gh+v+g(this._gl,I)|0,this._hh=this._hh+y+g(this._hl,M)|0},u.prototype._hash=function(){var e=a.allocUnsafe(64);function t(t,r,i){e.writeInt32BE(t,i),e.writeInt32BE(r,i+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},e.exports=u},3704:function(e,t,r){"use strict";var i=r(5055).Buffer,n=i.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function a(e){var t;if(!e)return"utf8";for(;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function o(e){var t=a(e);if("string"!=typeof t&&(i.isEncoding===n||!n(e)))throw Error("Unknown encoding: "+e);return t||e}function s(e){var t;switch(this.encoding=o(e),this.encoding){case"utf16le":this.text=p,this.end=m,t=4;break;case"utf8":this.fillLast=d,t=4;break;case"base64":this.text=b,this.end=g,t=3;break;default:this.write=v,this.end=y;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=i.allocUnsafe(t)}function u(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function f(e,t,r){var i=t.length-1;if(i<r)return 0;var n=u(t[i]);return n>=0?(n>0&&(e.lastNeed=n-1),n):--i<r||-2===n?0:(n=u(t[i]))>=0?(n>0&&(e.lastNeed=n-2),n):--i<r||-2===n?0:(n=u(t[i]))>=0?(n>0&&(2===n?n=0:e.lastNeed=n-3),n):0}function c(e,t,r){if((192&t[0])!=128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((192&t[1])!=128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(192&t[2])!=128)return e.lastNeed=2,"�"}}function d(e){var t=this.lastTotal-this.lastNeed,r=c(this,e,t);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length)}function l(e,t){var r=f(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var i=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,i),e.toString("utf8",t,i)}function h(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function p(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function m(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function b(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function g(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function v(e){return e.toString(this.encoding)}function y(e){return e&&e.length?this.write(e):""}t.s=s,s.prototype.write=function(e){var t,r;if(0===e.length)return"";if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},s.prototype.end=h,s.prototype.text=l,s.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},6769:function(t){function r(t){try{if(!e.g.localStorage)return!1}catch(e){return!1}var r=e.g.localStorage[t];return null!=r&&"true"===String(r).toLowerCase()}t.exports=function e(e,t){if(r("noDeprecation"))return e;var i=!1;return function(){if(!i){if(r("throwDeprecation"))throw Error(t);r("traceDeprecation")?console.trace(t):console.warn(t),i=!0}return e.apply(this,arguments)}}},4300:function(t){"use strict";t.exports=e.r(49440)},6113:function(t){"use strict";t.exports=e.r(3560)},2361:function(t){"use strict";t.exports=e.r(25235)},2781:function(t){"use strict";t.exports=e.r(75391)},1576:function(t){"use strict";t.exports=e.r(24753)},3837:function(t){"use strict";t.exports=e.r(60776)},6144:function(t){"use strict";t.exports=e.r(26966)},5866:function(e){"use strict";e.exports=JSON.parse('{"aes-128-ecb":{"cipher":"AES","key":128,"iv":0,"mode":"ECB","type":"block"},"aes-192-ecb":{"cipher":"AES","key":192,"iv":0,"mode":"ECB","type":"block"},"aes-256-ecb":{"cipher":"AES","key":256,"iv":0,"mode":"ECB","type":"block"},"aes-128-cbc":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes-192-cbc":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes-256-cbc":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes128":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes192":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes256":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes-128-cfb":{"cipher":"AES","key":128,"iv":16,"mode":"CFB","type":"stream"},"aes-192-cfb":{"cipher":"AES","key":192,"iv":16,"mode":"CFB","type":"stream"},"aes-256-cfb":{"cipher":"AES","key":256,"iv":16,"mode":"CFB","type":"stream"},"aes-128-cfb8":{"cipher":"AES","key":128,"iv":16,"mode":"CFB8","type":"stream"},"aes-192-cfb8":{"cipher":"AES","key":192,"iv":16,"mode":"CFB8","type":"stream"},"aes-256-cfb8":{"cipher":"AES","key":256,"iv":16,"mode":"CFB8","type":"stream"},"aes-128-cfb1":{"cipher":"AES","key":128,"iv":16,"mode":"CFB1","type":"stream"},"aes-192-cfb1":{"cipher":"AES","key":192,"iv":16,"mode":"CFB1","type":"stream"},"aes-256-cfb1":{"cipher":"AES","key":256,"iv":16,"mode":"CFB1","type":"stream"},"aes-128-ofb":{"cipher":"AES","key":128,"iv":16,"mode":"OFB","type":"stream"},"aes-192-ofb":{"cipher":"AES","key":192,"iv":16,"mode":"OFB","type":"stream"},"aes-256-ofb":{"cipher":"AES","key":256,"iv":16,"mode":"OFB","type":"stream"},"aes-128-ctr":{"cipher":"AES","key":128,"iv":16,"mode":"CTR","type":"stream"},"aes-192-ctr":{"cipher":"AES","key":192,"iv":16,"mode":"CTR","type":"stream"},"aes-256-ctr":{"cipher":"AES","key":256,"iv":16,"mode":"CTR","type":"stream"},"aes-128-gcm":{"cipher":"AES","key":128,"iv":12,"mode":"GCM","type":"auth"},"aes-192-gcm":{"cipher":"AES","key":192,"iv":12,"mode":"GCM","type":"auth"},"aes-256-gcm":{"cipher":"AES","key":256,"iv":12,"mode":"GCM","type":"auth"}}')},2908:function(e){"use strict";e.exports=JSON.parse('{"sha224WithRSAEncryption":{"sign":"rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"RSA-SHA224":{"sign":"ecdsa/rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"sha256WithRSAEncryption":{"sign":"rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"RSA-SHA256":{"sign":"ecdsa/rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"sha384WithRSAEncryption":{"sign":"rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"RSA-SHA384":{"sign":"ecdsa/rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"sha512WithRSAEncryption":{"sign":"rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA512":{"sign":"ecdsa/rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA1":{"sign":"rsa","hash":"sha1","id":"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{"sign":"ecdsa","hash":"sha1","id":""},"sha256":{"sign":"ecdsa","hash":"sha256","id":""},"sha224":{"sign":"ecdsa","hash":"sha224","id":""},"sha384":{"sign":"ecdsa","hash":"sha384","id":""},"sha512":{"sign":"ecdsa","hash":"sha512","id":""},"DSA-SHA":{"sign":"dsa","hash":"sha1","id":""},"DSA-SHA1":{"sign":"dsa","hash":"sha1","id":""},"DSA":{"sign":"dsa","hash":"sha1","id":""},"DSA-WITH-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-WITH-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-WITH-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-WITH-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-RIPEMD160":{"sign":"dsa","hash":"rmd160","id":""},"ripemd160WithRSA":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"RSA-RIPEMD160":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"md5WithRSAEncryption":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"},"RSA-MD5":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"}}')},9267:function(e){"use strict";e.exports=JSON.parse('{"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}')},7992:function(e){"use strict";e.exports=JSON.parse('{"modp1":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},"modp2":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},"modp5":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},"modp14":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},"modp15":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},"modp16":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},"modp17":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},"modp18":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}')},2531:function(e){"use strict";e.exports={i8:"6.5.3"}},2510:function(e){"use strict";e.exports=JSON.parse('{"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}')}},a={};function o(e){var t=a[e];if(void 0!==t)return t.exports;var i=a[e]={id:e,loaded:!1,exports:{}},n=!0;try{r[e].call(i.exports,i,i.exports,o),n=!1}finally{n&&delete a[e]}return i.loaded=!0,i.exports}!function(){o.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e}}(),o.ab="/ROOT/node_modules/.pnpm/next@16.2.4_@babel+core@7.29.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/compiled/crypto-browserify/";var s={};!function(){"use strict";var e=s;e.randomBytes=e.rng=e.pseudoRandomBytes=e.prng=o(7223),e.createHash=e.Hash=o(9739),e.createHmac=e.Hmac=o(4873);var t=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(Object.keys(o(9276)));e.getHashes=function(){return t};var r=o(4978);e.pbkdf2=r.pbkdf2,e.pbkdf2Sync=r.pbkdf2Sync;var i=o(8996);e.Cipher=i.Cipher,e.createCipher=i.createCipher,e.Cipheriv=i.Cipheriv,e.createCipheriv=i.createCipheriv,e.Decipher=i.Decipher,e.createDecipher=i.createDecipher,e.Decipheriv=i.Decipheriv,e.createDecipheriv=i.createDecipheriv,e.getCiphers=i.getCiphers,e.listCiphers=i.listCiphers;var n=o(6587);e.DiffieHellmanGroup=n.DiffieHellmanGroup,e.createDiffieHellmanGroup=n.createDiffieHellmanGroup,e.getDiffieHellman=n.getDiffieHellman,e.createDiffieHellman=n.createDiffieHellman,e.DiffieHellman=n.DiffieHellman;var a=o(4078);e.createSign=a.createSign,e.Sign=a.Sign,e.createVerify=a.createVerify,e.Verify=a.Verify,e.createECDH=o(9942);var u=o(9783);e.publicEncrypt=u.publicEncrypt,e.privateEncrypt=u.privateEncrypt,e.publicDecrypt=u.publicDecrypt,e.privateDecrypt=u.privateDecrypt;var f=o(6445);e.randomFill=f.randomFill,e.randomFillSync=f.randomFillSync,e.createCredentials=function(){throw Error("sorry, createCredentials is not implemented yet\nwe accept pull requests\nhttps://github.com/crypto-browserify/crypto-browserify")},e.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}}(),t.exports=s}()},18446,28619,41460,38082,5957,45244,17900,54530,e=>{"use strict";e.i(3560),function(e){e[e.CRITICAL=0]="CRITICAL",e[e.HIGH=1]="HIGH",e[e.NORMAL=2]="NORMAL",e[e.LOW=3]="LOW"}(s3||(s3={}));let t=Object.freeze({status:"aborted"});function r(e,t,r){function i(r,i){if(r._zod||Object.defineProperty(r,"_zod",{value:{def:i,constr:o,traits:new Set},enumerable:!1}),r._zod.traits.has(e))return;r._zod.traits.add(e),t(r,i);let n=o.prototype,a=Object.keys(n);for(let e=0;e<a.length;e++){let t=a[e];t in r||(r[t]=n[t].bind(r))}}let n=r?.Parent??Object;class a extends n{}function o(e){var t;let n=r?.Parent?new a:this;for(let r of(i(n,e),(t=n._zod).deferred??(t.deferred=[]),n._zod.deferred))r();return n}return Object.defineProperty(a,"name",{value:e}),Object.defineProperty(o,"init",{value:i}),Object.defineProperty(o,Symbol.hasInstance,{value:t=>!!r?.Parent&&t instanceof r.Parent||t?._zod?.traits?.has(e)}),Object.defineProperty(o,"name",{value:e}),o}let i=Symbol("zod_brand");class n extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class a extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name="ZodEncodeError"}}let o={};function s(e){return e&&Object.assign(o,e),o}function u(e){return e}function f(e){return e}function c(e){}function d(e){throw Error("Unexpected value in exhaustive check")}function l(e){}function h(e){let t=Object.values(e).filter(e=>"number"==typeof e);return Object.entries(e).filter(([e,r])=>-1===t.indexOf(+e)).map(([e,t])=>t)}function p(e,t="|"){return e.map(e=>F(e)).join(t)}function m(e,t){return"bigint"==typeof t?t.toString():t}function b(e){return{get value(){{let t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function g(e){return null==e}function v(e){let t=+!!e.startsWith("^"),r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}function y(e,t){let r=(e.toString().split(".")[1]||"").length,i=t.toString(),n=(i.split(".")[1]||"").length;if(0===n&&/\d?e-\d?/.test(i)){let e=i.match(/\d?e-(\d?)/);e?.[1]&&(n=Number.parseInt(e[1]))}let a=r>n?r:n;return Number.parseInt(e.toFixed(a).replace(".",""))%Number.parseInt(t.toFixed(a).replace(".",""))/10**a}e.s(["$ZodAsyncError",0,n,"$ZodEncodeError",0,a,"$brand",0,i,"$constructor",0,r,"NEVER",0,t,"config",0,s,"globalConfig",0,o],33215);let _=Symbol("evaluating");function x(e,t,r){let i;Object.defineProperty(e,t,{get(){if(i!==_)return void 0===i&&(i=_,i=r()),i},set(r){Object.defineProperty(e,t,{value:r})},configurable:!0})}function w(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function S(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function k(...e){let t={};for(let r of e)Object.assign(t,Object.getOwnPropertyDescriptors(r));return Object.defineProperties({},t)}function $(e){return k(e._zod.def)}function I(e,t){return t?t.reduce((e,t)=>e?.[t],e):e}function M(e){let t=Object.keys(e);return Promise.all(t.map(t=>e[t])).then(e=>{let r={};for(let i=0;i<t.length;i++)r[t[i]]=e[i];return r})}function E(e=10){let t="abcdefghijklmnopqrstuvwxyz",r="";for(let i=0;i<e;i++)r+=t[Math.floor(Math.random()*t.length)];return r}function A(e){return JSON.stringify(e)}function O(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}let N="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function j(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}let z=b(()=>{if("u">typeof navigator&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return Function(""),!0}catch(e){return!1}});function U(e){if(!1===j(e))return!1;let t=e.constructor;if(void 0===t||"function"!=typeof t)return!0;let r=t.prototype;return!1!==j(r)&&!1!==Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")}function P(e){return U(e)?{...e}:Array.isArray(e)?[...e]:e}function T(e){let t=0;for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t++;return t}let R=e=>{let t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":if(Array.isArray(e))return"array";if(null===e)return"null";if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return"promise";if("u">typeof Map&&e instanceof Map)return"map";if("u">typeof Set&&e instanceof Set)return"set";if("u">typeof Date&&e instanceof Date)return"date";if("u">typeof File&&e instanceof File)return"file";return"object";default:throw Error(`Unknown data type: ${t}`)}},D=new Set(["string","number","symbol"]),B=new Set(["string","number","bigint","boolean","symbol","undefined"]);function C(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Z(e,t,r){let i=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(i._zod.parent=e),i}function L(e){let t=e;if(!t)return{};if("string"==typeof t)return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return(delete t.message,"string"==typeof t.error)?{...t,error:()=>t.error}:t}function q(e){let t;return new Proxy({},{get:(r,i,n)=>(t??(t=e()),Reflect.get(t,i,n)),set:(r,i,n,a)=>(t??(t=e()),Reflect.set(t,i,n,a)),has:(r,i)=>(t??(t=e()),Reflect.has(t,i)),deleteProperty:(r,i)=>(t??(t=e()),Reflect.deleteProperty(t,i)),ownKeys:r=>(t??(t=e()),Reflect.ownKeys(t)),getOwnPropertyDescriptor:(r,i)=>(t??(t=e()),Reflect.getOwnPropertyDescriptor(t,i)),defineProperty:(r,i,n)=>(t??(t=e()),Reflect.defineProperty(t,i,n))})}function F(e){return"bigint"==typeof e?e.toString()+"n":"string"==typeof e?`"${e}"`:`${e}`}function J(e){return Object.keys(e).filter(t=>"optional"===e[t]._zod.optin&&"optional"===e[t]._zod.optout)}let W={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-0x80000000,0x7fffffff],uint32:[0,0xffffffff],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},K={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function V(e,t){let r=e._zod.def,i=r.checks;if(i&&i.length>0)throw Error(".pick() cannot be used on object schemas containing refinements");let n=k(e._zod.def,{get shape(){let e={};for(let i in t){if(!(i in r.shape))throw Error(`Unrecognized key: "${i}"`);t[i]&&(e[i]=r.shape[i])}return S(this,"shape",e),e},checks:[]});return Z(e,n)}function G(e,t){let r=e._zod.def,i=r.checks;if(i&&i.length>0)throw Error(".omit() cannot be used on object schemas containing refinements");let n=k(e._zod.def,{get shape(){let i={...e._zod.def.shape};for(let e in t){if(!(e in r.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete i[e]}return S(this,"shape",i),i},checks:[]});return Z(e,n)}function H(e,t){if(!U(t))throw Error("Invalid input to extend: expected a plain object");let r=e._zod.def.checks;if(r&&r.length>0){let r=e._zod.def.shape;for(let e in t)if(void 0!==Object.getOwnPropertyDescriptor(r,e))throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let i=k(e._zod.def,{get shape(){let r={...e._zod.def.shape,...t};return S(this,"shape",r),r}});return Z(e,i)}function X(e,t){if(!U(t))throw Error("Invalid input to safeExtend: expected a plain object");let r=k(e._zod.def,{get shape(){let r={...e._zod.def.shape,...t};return S(this,"shape",r),r}});return Z(e,r)}function Y(e,t){let r=k(e._zod.def,{get shape(){let r={...e._zod.def.shape,...t._zod.def.shape};return S(this,"shape",r),r},get catchall(){return t._zod.def.catchall},checks:[]});return Z(e,r)}function Q(e,t,r){let i=t._zod.def.checks;if(i&&i.length>0)throw Error(".partial() cannot be used on object schemas containing refinements");let n=k(t._zod.def,{get shape(){let i=t._zod.def.shape,n={...i};if(r)for(let t in r){if(!(t in i))throw Error(`Unrecognized key: "${t}"`);r[t]&&(n[t]=e?new e({type:"optional",innerType:i[t]}):i[t])}else for(let t in i)n[t]=e?new e({type:"optional",innerType:i[t]}):i[t];return S(this,"shape",n),n},checks:[]});return Z(t,n)}function ee(e,t,r){let i=k(t._zod.def,{get shape(){let i=t._zod.def.shape,n={...i};if(r)for(let t in r){if(!(t in n))throw Error(`Unrecognized key: "${t}"`);r[t]&&(n[t]=new e({type:"nonoptional",innerType:i[t]}))}else for(let t in i)n[t]=new e({type:"nonoptional",innerType:i[t]});return S(this,"shape",n),n}});return Z(t,i)}function et(e,t=0){if(!0===e.aborted)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}function er(e,t){return t.map(t=>{var r;return(r=t).path??(r.path=[]),t.path.unshift(e),t})}function ei(e){return"string"==typeof e?e:e?.message}function en(e,t,r){let i={...e,path:e.path??[]};return e.message||(i.message=ei(e.inst?._zod.def?.error?.(e))??ei(t?.error?.(e))??ei(r.customError?.(e))??ei(r.localeError?.(e))??"Invalid input"),delete i.inst,delete i.continue,t?.reportInput||delete i.input,i}function ea(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function eo(e){return Array.isArray(e)?"array":"string"==typeof e?"string":"unknown"}function es(e){let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(null===e)return"null";if(Array.isArray(e))return"array";let t=e;if(t&&Object.getPrototypeOf(t)!==Object.prototype&&"constructor"in t&&t.constructor)return t.constructor.name}}return t}function eu(...e){let[t,r,i]=e;return"string"==typeof t?{message:t,code:"custom",input:r,inst:i}:{...t}}function ef(e){return Object.entries(e).filter(([e,t])=>Number.isNaN(Number.parseInt(e,10))).map(e=>e[1])}function ec(e){let t=atob(e),r=new Uint8Array(t.length);for(let e=0;e<t.length;e++)r[e]=t.charCodeAt(e);return r}function ed(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t)}function el(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),r="=".repeat((4-t.length%4)%4);return ec(t+r)}function eh(e){return ed(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function ep(e){let t=e.replace(/^0x/,"");if(t.length%2!=0)throw Error("Invalid hex string length");let r=new Uint8Array(t.length/2);for(let e=0;e<t.length;e+=2)r[e/2]=Number.parseInt(t.slice(e,e+2),16);return r}function em(e){return Array.from(e).map(e=>e.toString(16).padStart(2,"0")).join("")}class eb{constructor(...e){}}e.s(["BIGINT_FORMAT_RANGES",0,K,"Class",0,eb,"NUMBER_FORMAT_RANGES",0,W,"aborted",0,et,"allowsEval",0,z,"assert",0,l,"assertEqual",0,u,"assertIs",0,c,"assertNever",0,d,"assertNotEqual",0,f,"assignProp",0,S,"base64ToUint8Array",0,ec,"base64urlToUint8Array",0,el,"cached",0,b,"captureStackTrace",0,N,"cleanEnum",0,ef,"cleanRegex",0,v,"clone",0,Z,"cloneDef",0,$,"createTransparentProxy",0,q,"defineLazy",0,x,"esc",0,A,"escapeRegex",0,C,"extend",0,H,"finalizeIssue",0,en,"floatSafeRemainder",0,y,"getElementAtPath",0,I,"getEnumValues",0,h,"getLengthableOrigin",0,eo,"getParsedType",0,R,"getSizableOrigin",0,ea,"hexToUint8Array",0,ep,"isObject",0,j,"isPlainObject",0,U,"issue",0,eu,"joinValues",0,p,"jsonStringifyReplacer",0,m,"merge",0,Y,"mergeDefs",0,k,"normalizeParams",0,L,"nullish",0,g,"numKeys",0,T,"objectClone",0,w,"omit",0,G,"optionalKeys",0,J,"parsedType",0,es,"partial",0,Q,"pick",0,V,"prefixIssues",0,er,"primitiveTypes",0,B,"promiseAllObject",0,M,"propertyKeyTypes",0,D,"randomString",0,E,"required",0,ee,"safeExtend",0,X,"shallowClone",0,P,"slugify",0,O,"stringifyPrimitive",0,F,"uint8ArrayToBase64",0,ed,"uint8ArrayToBase64url",0,eh,"uint8ArrayToHex",0,em,"unwrapMessage",0,ei],32967);let eg=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,m,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},ev=r("$ZodError",eg),ey=r("$ZodError",eg,{Parent:Error});function e_(e,t=e=>e.message){let r={},i=[];for(let n of e.issues)n.path.length>0?(r[n.path[0]]=r[n.path[0]]||[],r[n.path[0]].push(t(n))):i.push(t(n));return{formErrors:i,fieldErrors:r}}function ex(e,t=e=>e.message){let r={_errors:[]},i=e=>{for(let n of e.issues)if("invalid_union"===n.code&&n.errors.length)n.errors.map(e=>i({issues:e}));else if("invalid_key"===n.code)i({issues:n.issues});else if("invalid_element"===n.code)i({issues:n.issues});else if(0===n.path.length)r._errors.push(t(n));else{let e=r,i=0;for(;i<n.path.length;){let r=n.path[i];i===n.path.length-1?(e[r]=e[r]||{_errors:[]},e[r]._errors.push(t(n))):e[r]=e[r]||{_errors:[]},e=e[r],i++}}};return i(e),r}function ew(e,t=e=>e.message){let r={errors:[]},i=(e,n=[])=>{var a,o;for(let s of e.issues)if("invalid_union"===s.code&&s.errors.length)s.errors.map(e=>i({issues:e},s.path));else if("invalid_key"===s.code)i({issues:s.issues},s.path);else if("invalid_element"===s.code)i({issues:s.issues},s.path);else{let e=[...n,...s.path];if(0===e.length){r.errors.push(t(s));continue}let i=r,u=0;for(;u<e.length;){let r=e[u],n=u===e.length-1;"string"==typeof r?(i.properties??(i.properties={}),(a=i.properties)[r]??(a[r]={errors:[]}),i=i.properties[r]):(i.items??(i.items=[]),(o=i.items)[r]??(o[r]={errors:[]}),i=i.items[r]),n&&i.errors.push(t(s)),u++}}};return i(e),r}function eS(e){let t=[];for(let r of e.map(e=>"object"==typeof e?e.key:e))"number"==typeof r?t.push(`[${r}]`):"symbol"==typeof r?t.push(`[${JSON.stringify(String(r))}]`):/[^\w$]/.test(r)?t.push(`[${JSON.stringify(r)}]`):(t.length&&t.push("."),t.push(r));return t.join("")}function ek(e){let t=[];for(let r of[...e.issues].sort((e,t)=>(e.path??[]).length-(t.path??[]).length))t.push(`✖ ${r.message}`),r.path?.length&&t.push(` → at ${eS(r.path)}`);return t.join("\n")}e.s(["$ZodError",0,ev,"$ZodRealError",0,ey,"flattenError",0,e_,"formatError",0,ex,"prettifyError",0,ek,"toDotPath",0,eS,"treeifyError",0,ew],99120);let e$=e=>(t,r,i,a)=>{let o=i?Object.assign(i,{async:!1}):{async:!1},u=t._zod.run({value:r,issues:[]},o);if(u instanceof Promise)throw new n;if(u.issues.length){let t=new(a?.Err??e)(u.issues.map(e=>en(e,o,s())));throw N(t,a?.callee),t}return u.value},eI=e$(ey),eM=e=>async(t,r,i,n)=>{let a=i?Object.assign(i,{async:!0}):{async:!0},o=t._zod.run({value:r,issues:[]},a);if(o instanceof Promise&&(o=await o),o.issues.length){let t=new(n?.Err??e)(o.issues.map(e=>en(e,a,s())));throw N(t,n?.callee),t}return o.value},eE=eM(ey),eA=e=>(t,r,i)=>{let a=i?{...i,async:!1}:{async:!1},o=t._zod.run({value:r,issues:[]},a);if(o instanceof Promise)throw new n;return o.issues.length?{success:!1,error:new(e??ev)(o.issues.map(e=>en(e,a,s())))}:{success:!0,data:o.value}},eO=eA(ey),eN=e=>async(t,r,i)=>{let n=i?Object.assign(i,{async:!0}):{async:!0},a=t._zod.run({value:r,issues:[]},n);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(e=>en(e,n,s())))}:{success:!0,data:a.value}},ej=eN(ey),ez=e=>(t,r,i)=>{let n=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return e$(e)(t,r,n)},eU=ez(ey),eP=e=>(t,r,i)=>e$(e)(t,r,i),eT=eP(ey),eR=e=>async(t,r,i)=>{let n=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return eM(e)(t,r,n)},eD=eR(ey),eB=e=>async(t,r,i)=>eM(e)(t,r,i),eC=eB(ey),eZ=e=>(t,r,i)=>{let n=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return eA(e)(t,r,n)},eL=eZ(ey),eq=e=>(t,r,i)=>eA(e)(t,r,i),eF=eq(ey),eJ=e=>async(t,r,i)=>{let n=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return eN(e)(t,r,n)},eW=eJ(ey),eK=e=>async(t,r,i)=>eN(e)(t,r,i),eV=eK(ey);e.s(["_decode",0,eP,"_decodeAsync",0,eB,"_encode",0,ez,"_encodeAsync",0,eR,"_parse",0,e$,"_parseAsync",0,eM,"_safeDecode",0,eq,"_safeDecodeAsync",0,eK,"_safeEncode",0,eZ,"_safeEncodeAsync",0,eJ,"_safeParse",0,eA,"_safeParseAsync",0,eN,"decode",0,eT,"decodeAsync",0,eC,"encode",0,eU,"encodeAsync",0,eD,"parse",0,eI,"parseAsync",0,eE,"safeDecode",0,eF,"safeDecodeAsync",0,eV,"safeEncode",0,eL,"safeEncodeAsync",0,eW,"safeParse",0,eO,"safeParseAsync",0,ej],29677);let eG=/^[cC][^\s-]{8,}$/,eH=/^[0-9a-z]+$/,eX=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,eY=/^[0-9a-vA-V]{20}$/,eQ=/^[A-Za-z0-9]{27}$/,e0=/^[a-zA-Z0-9_-]{21}$/,e1=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,e2=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,e6=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,e4=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,e3=e4(4),e8=e4(6),e5=e4(7),e9=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,e7=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,te=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,tt=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,tr=tt,ti=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,tn="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function ta(){return RegExp(tn,"u")}let to=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,ts=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,tu=e=>{let t=C(e??":");return RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},tf=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,tc=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,td=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,tl=/^[A-Za-z0-9_-]*$/,th=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,tp=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,tm=/^\+[1-9]\d{6,14}$/,tb="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",tg=RegExp(`^${tb}$`);function tv(e){let t="(?:[01]\\d|2[0-3]):[0-5]\\d";return"number"==typeof e.precision?-1===e.precision?`${t}`:0===e.precision?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function ty(e){return RegExp(`^${tv(e)}$`)}function t_(e){let t=tv({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let i=`${t}(?:${r.join("|")})`;return RegExp(`^${tb}T(?:${i})$`)}let tx=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return RegExp(`^${t}$`)},tw=/^-?\d+n?$/,tS=/^-?\d+$/,tk=/^-?\d+(?:\.\d+)?$/,t$=/^(?:true|false)$/i,tI=/^null$/i,tM=/^undefined$/i,tE=/^[^A-Z]*$/,tA=/^[^a-z]*$/,tO=/^[0-9a-fA-F]*$/;function tN(e,t){return RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function tj(e){return RegExp(`^[A-Za-z0-9_-]{${e}}$`)}let tz=/^[0-9a-fA-F]{32}$/,tU=tN(22,"=="),tP=tj(22),tT=/^[0-9a-fA-F]{40}$/,tR=tN(27,"="),tD=tj(27),tB=/^[0-9a-fA-F]{64}$/,tC=tN(43,"="),tZ=tj(43),tL=/^[0-9a-fA-F]{96}$/,tq=tN(64,""),tF=tj(64),tJ=/^[0-9a-fA-F]{128}$/,tW=tN(86,"=="),tK=tj(86);e.s(["base64",0,td,"base64url",0,tl,"bigint",0,tw,"boolean",0,t$,"browserEmail",0,ti,"cidrv4",0,tf,"cidrv6",0,tc,"cuid",0,eG,"cuid2",0,eH,"date",0,tg,"datetime",0,t_,"domain",0,tp,"duration",0,e1,"e164",0,tm,"email",0,e9,"emoji",0,ta,"extendedDuration",0,e2,"guid",0,e6,"hex",0,tO,"hostname",0,th,"html5Email",0,e7,"idnEmail",0,tr,"integer",0,tS,"ipv4",0,to,"ipv6",0,ts,"ksuid",0,eQ,"lowercase",0,tE,"mac",0,tu,"md5_base64",0,tU,"md5_base64url",0,tP,"md5_hex",0,tz,"nanoid",0,e0,"null",0,tI,"number",0,tk,"rfc5322Email",0,te,"sha1_base64",0,tR,"sha1_base64url",0,tD,"sha1_hex",0,tT,"sha256_base64",0,tC,"sha256_base64url",0,tZ,"sha256_hex",0,tB,"sha384_base64",0,tq,"sha384_base64url",0,tF,"sha384_hex",0,tL,"sha512_base64",0,tW,"sha512_base64url",0,tK,"sha512_hex",0,tJ,"string",0,tx,"time",0,ty,"ulid",0,eX,"undefined",0,tM,"unicodeEmail",0,tt,"uppercase",0,tA,"uuid",0,e4,"uuid4",0,e3,"uuid6",0,e8,"uuid7",0,e5,"xid",0,eY],55279);let tV=r("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),tG={number:"number",bigint:"bigint",object:"date"},tH=r("$ZodCheckLessThan",(e,t)=>{tV.init(e,t);let r=tG[typeof t.value];e._zod.onattach.push(e=>{let r=e._zod.bag,i=(t.inclusive?r.maximum:r.exclusiveMaximum)??1/0;t.value<i&&(t.inclusive?r.maximum=t.value:r.exclusiveMaximum=t.value)}),e._zod.check=i=>{(t.inclusive?i.value<=t.value:i.value<t.value)||i.issues.push({origin:r,code:"too_big",maximum:"object"==typeof t.value?t.value.getTime():t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),tX=r("$ZodCheckGreaterThan",(e,t)=>{tV.init(e,t);let r=tG[typeof t.value];e._zod.onattach.push(e=>{let r=e._zod.bag,i=(t.inclusive?r.minimum:r.exclusiveMinimum)??-1/0;t.value>i&&(t.inclusive?r.minimum=t.value:r.exclusiveMinimum=t.value)}),e._zod.check=i=>{(t.inclusive?i.value>=t.value:i.value>t.value)||i.issues.push({origin:r,code:"too_small",minimum:"object"==typeof t.value?t.value.getTime():t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),tY=r("$ZodCheckMultipleOf",(e,t)=>{tV.init(e,t),e._zod.onattach.push(e=>{var r;(r=e._zod.bag).multipleOf??(r.multipleOf=t.value)}),e._zod.check=r=>{if(typeof r.value!=typeof t.value)throw Error("Cannot mix number and bigint in multiple_of check.");("bigint"==typeof r.value?r.value%t.value===BigInt(0):0===y(r.value,t.value))||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:t.value,input:r.value,inst:e,continue:!t.abort})}}),tQ=r("$ZodCheckNumberFormat",(e,t)=>{tV.init(e,t),t.format=t.format||"float64";let r=t.format?.includes("int"),i=r?"int":"number",[n,a]=W[t.format];e._zod.onattach.push(e=>{let i=e._zod.bag;i.format=t.format,i.minimum=n,i.maximum=a,r&&(i.pattern=tS)}),e._zod.check=o=>{let s=o.value;if(r){if(!Number.isInteger(s))return void o.issues.push({expected:i,format:t.format,code:"invalid_type",continue:!1,input:s,inst:e});if(!Number.isSafeInteger(s))return void(s>0?o.issues.push({input:s,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,inclusive:!0,continue:!t.abort}):o.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,inclusive:!0,continue:!t.abort}))}s<n&&o.issues.push({origin:"number",input:s,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort}),s>a&&o.issues.push({origin:"number",input:s,code:"too_big",maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),t0=r("$ZodCheckBigIntFormat",(e,t)=>{tV.init(e,t);let[r,i]=K[t.format];e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,n.minimum=r,n.maximum=i}),e._zod.check=n=>{let a=n.value;a<r&&n.issues.push({origin:"bigint",input:a,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),a>i&&n.issues.push({origin:"bigint",input:a,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!t.abort})}}),t1=r("$ZodCheckMaxSize",(e,t)=>{var r;tV.init(e,t),(r=e._zod.def).when??(r.when=e=>{let t=e.value;return!g(t)&&void 0!==t.size}),e._zod.onattach.push(e=>{let r=e._zod.bag.maximum??1/0;t.maximum<r&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{let i=r.value;i.size<=t.maximum||r.issues.push({origin:ea(i),code:"too_big",maximum:t.maximum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),t2=r("$ZodCheckMinSize",(e,t)=>{var r;tV.init(e,t),(r=e._zod.def).when??(r.when=e=>{let t=e.value;return!g(t)&&void 0!==t.size}),e._zod.onattach.push(e=>{let r=e._zod.bag.minimum??-1/0;t.minimum>r&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{let i=r.value;i.size>=t.minimum||r.issues.push({origin:ea(i),code:"too_small",minimum:t.minimum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),t6=r("$ZodCheckSizeEquals",(e,t)=>{var r;tV.init(e,t),(r=e._zod.def).when??(r.when=e=>{let t=e.value;return!g(t)&&void 0!==t.size}),e._zod.onattach.push(e=>{let r=e._zod.bag;r.minimum=t.size,r.maximum=t.size,r.size=t.size}),e._zod.check=r=>{let i=r.value,n=i.size;if(n===t.size)return;let a=n>t.size;r.issues.push({origin:ea(i),...a?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),t4=r("$ZodCheckMaxLength",(e,t)=>{var r;tV.init(e,t),(r=e._zod.def).when??(r.when=e=>{let t=e.value;return!g(t)&&void 0!==t.length}),e._zod.onattach.push(e=>{let r=e._zod.bag.maximum??1/0;t.maximum<r&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{let i=r.value;if(i.length<=t.maximum)return;let n=eo(i);r.issues.push({origin:n,code:"too_big",maximum:t.maximum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),t3=r("$ZodCheckMinLength",(e,t)=>{var r;tV.init(e,t),(r=e._zod.def).when??(r.when=e=>{let t=e.value;return!g(t)&&void 0!==t.length}),e._zod.onattach.push(e=>{let r=e._zod.bag.minimum??-1/0;t.minimum>r&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{let i=r.value;if(i.length>=t.minimum)return;let n=eo(i);r.issues.push({origin:n,code:"too_small",minimum:t.minimum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),t8=r("$ZodCheckLengthEquals",(e,t)=>{var r;tV.init(e,t),(r=e._zod.def).when??(r.when=e=>{let t=e.value;return!g(t)&&void 0!==t.length}),e._zod.onattach.push(e=>{let r=e._zod.bag;r.minimum=t.length,r.maximum=t.length,r.length=t.length}),e._zod.check=r=>{let i=r.value,n=i.length;if(n===t.length)return;let a=eo(i),o=n>t.length;r.issues.push({origin:a,...o?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),t5=r("$ZodCheckStringFormat",(e,t)=>{var r,i;tV.init(e,t),e._zod.onattach.push(e=>{let r=e._zod.bag;r.format=t.format,t.pattern&&(r.patterns??(r.patterns=new Set),r.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.check=r=>{t.pattern.lastIndex=0,t.pattern.test(r.value)||r.issues.push({origin:"string",code:"invalid_format",format:t.format,input:r.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(i=e._zod).check??(i.check=()=>{})}),t9=r("$ZodCheckRegex",(e,t)=>{t5.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,t.pattern.test(r.value)||r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),t7=r("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=tE),t5.init(e,t)}),re=r("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=tA),t5.init(e,t)}),rt=r("$ZodCheckIncludes",(e,t)=>{tV.init(e,t);let r=C(t.includes),i=new RegExp("number"==typeof t.position?`^.{${t.position}}${r}`:r);t.pattern=i,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(i)}),e._zod.check=r=>{r.value.includes(t.includes,t.position)||r.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:r.value,inst:e,continue:!t.abort})}}),rr=r("$ZodCheckStartsWith",(e,t)=>{tV.init(e,t);let r=RegExp(`^${C(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(r)}),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),ri=r("$ZodCheckEndsWith",(e,t)=>{tV.init(e,t);let r=RegExp(`.*${C(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(r)}),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}});function rn(e,t,r){e.issues.length&&t.issues.push(...er(r,e.issues))}let ra=r("$ZodCheckProperty",(e,t)=>{tV.init(e,t),e._zod.check=e=>{let r=t.schema._zod.run({value:e.value[t.property],issues:[]},{});if(r instanceof Promise)return r.then(r=>rn(r,e,t.property));rn(r,e,t.property)}}),ro=r("$ZodCheckMimeType",(e,t)=>{tV.init(e,t);let r=new Set(t.mime);e._zod.onattach.push(e=>{e._zod.bag.mime=t.mime}),e._zod.check=i=>{r.has(i.value.type)||i.issues.push({code:"invalid_value",values:t.mime,input:i.value.type,inst:e,continue:!t.abort})}}),rs=r("$ZodCheckOverwrite",(e,t)=>{tV.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}});e.s(["$ZodCheck",0,tV,"$ZodCheckBigIntFormat",0,t0,"$ZodCheckEndsWith",0,ri,"$ZodCheckGreaterThan",0,tX,"$ZodCheckIncludes",0,rt,"$ZodCheckLengthEquals",0,t8,"$ZodCheckLessThan",0,tH,"$ZodCheckLowerCase",0,t7,"$ZodCheckMaxLength",0,t4,"$ZodCheckMaxSize",0,t1,"$ZodCheckMimeType",0,ro,"$ZodCheckMinLength",0,t3,"$ZodCheckMinSize",0,t2,"$ZodCheckMultipleOf",0,tY,"$ZodCheckNumberFormat",0,tQ,"$ZodCheckOverwrite",0,rs,"$ZodCheckProperty",0,ra,"$ZodCheckRegex",0,t9,"$ZodCheckSizeEquals",0,t6,"$ZodCheckStartsWith",0,rr,"$ZodCheckStringFormat",0,t5,"$ZodCheckUpperCase",0,re],75999);class ru{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if("function"==typeof e){e(this,{execution:"sync"}),e(this,{execution:"async"});return}let t=e.split("\n").filter(e=>e),r=Math.min(...t.map(e=>e.length-e.trimStart().length));for(let e of t.map(e=>e.slice(r)).map(e=>" ".repeat(2*this.indent)+e))this.content.push(e)}compile(){return Function(...this?.args,[...(this?.content??[""]).map(e=>` ${e}`)].join("\n"))}}e.s(["Doc",0,ru],96425);let rf={major:4,minor:3,patch:6};e.s(["version",0,rf],16891);let rc=r("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=rf;let i=[...e._zod.def.checks??[]];for(let t of(e._zod.traits.has("$ZodCheck")&&i.unshift(e),i))for(let r of t._zod.onattach)r(e);if(0===i.length)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(e,t,r)=>{let i,a=et(e);for(let o of t){if(o._zod.def.when){if(!o._zod.def.when(e))continue}else if(a)continue;let t=e.issues.length,s=o._zod.check(e);if(s instanceof Promise&&r?.async===!1)throw new n;if(i||s instanceof Promise)i=(i??Promise.resolve()).then(async()=>{await s,e.issues.length!==t&&(a||(a=et(e,t)))});else{if(e.issues.length===t)continue;a||(a=et(e,t))}}return i?i.then(()=>e):e},r=(r,a,o)=>{if(et(r))return r.aborted=!0,r;let s=t(a,i,o);if(s instanceof Promise){if(!1===o.async)throw new n;return s.then(t=>e._zod.parse(t,o))}return e._zod.parse(s,o)};e._zod.run=(a,o)=>{if(o.skipChecks)return e._zod.parse(a,o);if("backward"===o.direction){let t=e._zod.parse({value:a.value,issues:[]},{...o,skipChecks:!0});return t instanceof Promise?t.then(e=>r(e,a,o)):r(t,a,o)}let s=e._zod.parse(a,o);if(s instanceof Promise){if(!1===o.async)throw new n;return s.then(e=>t(e,i,o))}return t(s,i,o)}}x(e,"~standard",()=>({validate:t=>{try{let r=eO(e,t);return r.success?{value:r.data}:{issues:r.error?.issues}}catch(r){return ej(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:"zod",version:1}))}),rd=r("$ZodString",(e,t)=>{rc.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??tx(e._zod.bag),e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=String(r.value)}catch(e){}return"string"==typeof r.value||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),rl=r("$ZodStringFormat",(e,t)=>{t5.init(e,t),rd.init(e,t)}),rh=r("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=e6),rl.init(e,t)}),rp=r("$ZodUUID",(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(void 0===e)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=e4(e))}else t.pattern??(t.pattern=e4());rl.init(e,t)}),rm=r("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=e9),rl.init(e,t)}),rb=r("$ZodURL",(e,t)=>{rl.init(e,t),e._zod.check=r=>{try{let i=r.value.trim(),n=new URL(i);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(n.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:r.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(n.protocol.endsWith(":")?n.protocol.slice(0,-1):n.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort})),t.normalize?r.value=n.href:r.value=i;return}catch(i){r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}}),rg=r("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=ta()),rl.init(e,t)}),rv=r("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=e0),rl.init(e,t)}),ry=r("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=eG),rl.init(e,t)}),r_=r("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=eH),rl.init(e,t)}),rx=r("$ZodULID",(e,t)=>{t.pattern??(t.pattern=eX),rl.init(e,t)}),rw=r("$ZodXID",(e,t)=>{t.pattern??(t.pattern=eY),rl.init(e,t)}),rS=r("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=eQ),rl.init(e,t)}),rk=r("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=t_(t)),rl.init(e,t)}),r$=r("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=tg),rl.init(e,t)}),rI=r("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=ty(t)),rl.init(e,t)}),rM=r("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=e1),rl.init(e,t)}),rE=r("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=to),rl.init(e,t),e._zod.bag.format="ipv4"}),rA=r("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=ts),rl.init(e,t),e._zod.bag.format="ipv6",e._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort})}}}),rO=r("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=tu(t.delimiter)),rl.init(e,t),e._zod.bag.format="mac"}),rN=r("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=tf),rl.init(e,t)}),rj=r("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=tc),rl.init(e,t),e._zod.check=r=>{let i=r.value.split("/");try{if(2!==i.length)throw Error();let[e,t]=i;if(!t)throw Error();let r=Number(t);if(`${r}`!==t||r<0||r>128)throw Error();new URL(`http://[${e}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}}});function rz(e){if(""===e)return!0;if(e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}let rU=r("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=td),rl.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=r=>{rz(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}});function rP(e){if(!tl.test(e))return!1;let t=e.replace(/[-_]/g,e=>"-"===e?"+":"/");return rz(t.padEnd(4*Math.ceil(t.length/4),"="))}let rT=r("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=tl),rl.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=r=>{rP(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),rR=r("$ZodE164",(e,t)=>{t.pattern??(t.pattern=tm),rl.init(e,t)});function rD(e,t=null){try{let r=e.split(".");if(3!==r.length)return!1;let[i]=r;if(!i)return!1;let n=JSON.parse(atob(i));if("typ"in n&&n?.typ!=="JWT"||!n.alg||t&&(!("alg"in n)||n.alg!==t))return!1;return!0}catch{return!1}}let rB=r("$ZodJWT",(e,t)=>{rl.init(e,t),e._zod.check=r=>{rD(r.value,t.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}}),rC=r("$ZodCustomStringFormat",(e,t)=>{rl.init(e,t),e._zod.check=r=>{t.fn(r.value)||r.issues.push({code:"invalid_format",format:t.format,input:r.value,inst:e,continue:!t.abort})}}),rZ=r("$ZodNumber",(e,t)=>{rc.init(e,t),e._zod.pattern=e._zod.bag.pattern??tk,e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=Number(r.value)}catch(e){}let n=r.value;if("number"==typeof n&&!Number.isNaN(n)&&Number.isFinite(n))return r;let a="number"==typeof n?Number.isNaN(n)?"NaN":Number.isFinite(n)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:n,inst:e,...a?{received:a}:{}}),r}}),rL=r("$ZodNumberFormat",(e,t)=>{tQ.init(e,t),rZ.init(e,t)}),rq=r("$ZodBoolean",(e,t)=>{rc.init(e,t),e._zod.pattern=t$,e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=!!r.value}catch(e){}let n=r.value;return"boolean"==typeof n||r.issues.push({expected:"boolean",code:"invalid_type",input:n,inst:e}),r}}),rF=r("$ZodBigInt",(e,t)=>{rc.init(e,t),e._zod.pattern=tw,e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=BigInt(r.value)}catch(e){}return"bigint"==typeof r.value||r.issues.push({expected:"bigint",code:"invalid_type",input:r.value,inst:e}),r}}),rJ=r("$ZodBigIntFormat",(e,t)=>{t0.init(e,t),rF.init(e,t)}),rW=r("$ZodSymbol",(e,t)=>{rc.init(e,t),e._zod.parse=(t,r)=>{let i=t.value;return"symbol"==typeof i||t.issues.push({expected:"symbol",code:"invalid_type",input:i,inst:e}),t}}),rK=r("$ZodUndefined",(e,t)=>{rc.init(e,t),e._zod.pattern=tM,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(t,r)=>{let i=t.value;return void 0===i||t.issues.push({expected:"undefined",code:"invalid_type",input:i,inst:e}),t}}),rV=r("$ZodNull",(e,t)=>{rc.init(e,t),e._zod.pattern=tI,e._zod.values=new Set([null]),e._zod.parse=(t,r)=>{let i=t.value;return null===i||t.issues.push({expected:"null",code:"invalid_type",input:i,inst:e}),t}}),rG=r("$ZodAny",(e,t)=>{rc.init(e,t),e._zod.parse=e=>e}),rH=r("$ZodUnknown",(e,t)=>{rc.init(e,t),e._zod.parse=e=>e}),rX=r("$ZodNever",(e,t)=>{rc.init(e,t),e._zod.parse=(t,r)=>(t.issues.push({expected:"never",code:"invalid_type",input:t.value,inst:e}),t)}),rY=r("$ZodVoid",(e,t)=>{rc.init(e,t),e._zod.parse=(t,r)=>{let i=t.value;return void 0===i||t.issues.push({expected:"void",code:"invalid_type",input:i,inst:e}),t}}),rQ=r("$ZodDate",(e,t)=>{rc.init(e,t),e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=new Date(r.value)}catch(e){}let n=r.value,a=n instanceof Date;return a&&!Number.isNaN(n.getTime())||r.issues.push({expected:"date",code:"invalid_type",input:n,...a?{received:"Invalid Date"}:{},inst:e}),r}});function r0(e,t,r){e.issues.length&&t.issues.push(...er(r,e.issues)),t.value[r]=e.value}let r1=r("$ZodArray",(e,t)=>{rc.init(e,t),e._zod.parse=(r,i)=>{let n=r.value;if(!Array.isArray(n))return r.issues.push({expected:"array",code:"invalid_type",input:n,inst:e}),r;r.value=Array(n.length);let a=[];for(let e=0;e<n.length;e++){let o=n[e],s=t.element._zod.run({value:o,issues:[]},i);s instanceof Promise?a.push(s.then(t=>r0(t,r,e))):r0(s,r,e)}return a.length?Promise.all(a).then(()=>r):r}});function r2(e,t,r,i,n){if(e.issues.length){if(n&&!(r in i))return;t.issues.push(...er(r,e.issues))}void 0===e.value?r in i&&(t.value[r]=void 0):t.value[r]=e.value}function r6(e){let t=Object.keys(e.shape);for(let r of t)if(!e.shape?.[r]?._zod?.traits?.has("$ZodType"))throw Error(`Invalid element at key "${r}": expected a Zod schema`);let r=J(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}function r4(e,t,r,i,n,a){let o=[],s=n.keySet,u=n.catchall._zod,f=u.def.type,c="optional"===u.optout;for(let n in t){if(s.has(n))continue;if("never"===f){o.push(n);continue}let a=u.run({value:t[n],issues:[]},i);a instanceof Promise?e.push(a.then(e=>r2(e,r,n,t,c))):r2(a,r,n,t,c)}return(o.length&&r.issues.push({code:"unrecognized_keys",keys:o,input:t,inst:a}),e.length)?Promise.all(e).then(()=>r):r}let r3=r("$ZodObject",(e,t)=>{let r;rc.init(e,t);let i=Object.getOwnPropertyDescriptor(t,"shape");if(!i?.get){let e=t.shape;Object.defineProperty(t,"shape",{get:()=>{let r={...e};return Object.defineProperty(t,"shape",{value:r}),r}})}let n=b(()=>r6(t));x(e._zod,"propValues",()=>{let e=t.shape,r={};for(let t in e){let i=e[t]._zod;if(i.values)for(let e of(r[t]??(r[t]=new Set),i.values))r[t].add(e)}return r});let a=j,o=t.catchall;e._zod.parse=(t,i)=>{r??(r=n.value);let s=t.value;if(!a(s))return t.issues.push({expected:"object",code:"invalid_type",input:s,inst:e}),t;t.value={};let u=[],f=r.shape;for(let e of r.keys){let r=f[e],n="optional"===r._zod.optout,a=r._zod.run({value:s[e],issues:[]},i);a instanceof Promise?u.push(a.then(r=>r2(r,t,e,s,n))):r2(a,t,e,s,n)}return o?r4(u,s,t,i,n.value,e):u.length?Promise.all(u).then(()=>t):t}}),r8=r("$ZodObjectJIT",(e,t)=>{let r,i;r3.init(e,t);let n=e._zod.parse,a=b(()=>r6(t)),s=e=>{let t=new ru(["shape","payload","ctx"]),r=a.value,i=e=>{let t=A(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write("const input = payload.value;");let n=Object.create(null),o=0;for(let e of r.keys)n[e]=`key_${o++}`;for(let a of(t.write("const newResult = {};"),r.keys)){let r=n[a],o=A(a),s=e[a],u=s?._zod?.optout==="optional";t.write(`const ${r} = ${i(a)};`),u?t.write(`
|
|
2
2
|
if (${r}.issues.length) {
|
|
3
3
|
if (${o} in input) {
|
|
4
4
|
payload.issues = payload.issues.concat(${r}.issues.map(iss => ({
|
|
@@ -32,6 +32,6 @@
|
|
|
32
32
|
newResult[${o}] = ${r}.value;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
`)}t.write("payload.value = newResult;"),t.write("return payload;");let s=t.compile();return(t,r)=>s(e,t,r)},u=z,f=!o.jitless,c=U,d=f&&c.value,l=t.catchall;e._zod.parse=(o,c)=>{i??(i=a.value);let h=o.value;return u(h)?f&&d&&c?.async===!1&&!0!==c.jitless?(r||(r=s(t.shape)),o=r(o,c),l)?r4([],h,o,c,i,e):o:n(o,c):(o.issues.push({expected:"object",code:"invalid_type",input:h,inst:e}),o)}});function r5(e,t,r,i){for(let r of e)if(0===r.issues.length)return t.value=r.value,t;let n=e.filter(e=>!et(e));return 1===n.length?(t.value=n[0].value,n[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(e=>e.issues.map(e=>en(e,i,s())))}),t)}let r9=r("$ZodUnion",(e,t)=>{rc.init(e,t),x(e._zod,"optin",()=>t.options.some(e=>"optional"===e._zod.optin)?"optional":void 0),x(e._zod,"optout",()=>t.options.some(e=>"optional"===e._zod.optout)?"optional":void 0),x(e._zod,"values",()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),x(e._zod,"pattern",()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>v(e.source)).join("|")})$`)}});let r=1===t.options.length,i=t.options[0]._zod.run;e._zod.parse=(n,a)=>{if(r)return i(n,a);let o=!1,s=[];for(let e of t.options){let t=e._zod.run({value:n.value,issues:[]},a);if(t instanceof Promise)s.push(t),o=!0;else{if(0===t.issues.length)return t;s.push(t)}}return o?Promise.all(s).then(t=>r5(t,n,e,a)):r5(s,n,e,a)}});function r7(e,t,r,i){let n=e.filter(e=>0===e.issues.length);return 1===n.length?t.value=n[0].value:0===n.length?t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(e=>e.issues.map(e=>en(e,i,s())))}):t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:[],inclusive:!1}),t}let ie=r("$ZodXor",(e,t)=>{r9.init(e,t),t.inclusive=!1;let r=1===t.options.length,i=t.options[0]._zod.run;e._zod.parse=(n,a)=>{if(r)return i(n,a);let o=!1,s=[];for(let e of t.options){let t=e._zod.run({value:n.value,issues:[]},a);t instanceof Promise?(s.push(t),o=!0):s.push(t)}return o?Promise.all(s).then(t=>r7(t,n,e,a)):r7(s,n,e,a)}}),it=r("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,r9.init(e,t);let r=e._zod.parse;x(e._zod,"propValues",()=>{let e={};for(let r of t.options){let i=r._zod.propValues;if(!i||0===Object.keys(i).length)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(r)}"`);for(let[t,r]of Object.entries(i))for(let i of(e[t]||(e[t]=new Set),r))e[t].add(i)}return e});let i=b(()=>{let e=t.options,r=new Map;for(let i of e){let e=i._zod.propValues?.[t.discriminator];if(!e||0===e.size)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(i)}"`);for(let t of e){if(r.has(t))throw Error(`Duplicate discriminator value "${String(t)}"`);r.set(t,i)}}return r});e._zod.parse=(n,a)=>{let o=n.value;if(!z(o))return n.issues.push({code:"invalid_type",expected:"object",input:o,inst:e}),n;let s=i.value.get(o?.[t.discriminator]);return s?s._zod.run(n,a):t.unionFallback?r(n,a):(n.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:o,path:[t.discriminator],inst:e}),n)}}),ir=r("$ZodIntersection",(e,t)=>{rc.init(e,t),e._zod.parse=(e,r)=>{let i=e.value,n=t.left._zod.run({value:i,issues:[]},r),a=t.right._zod.run({value:i,issues:[]},r);return n instanceof Promise||a instanceof Promise?Promise.all([n,a]).then(([t,r])=>ia(e,t,r)):ia(e,n,a)}});function ii(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(P(e)&&P(t)){let r=Object.keys(t),i=Object.keys(e).filter(e=>-1!==r.indexOf(e)),n={...e,...t};for(let r of i){let i=ii(e[r],t[r]);if(!i.valid)return{valid:!1,mergeErrorPath:[r,...i.mergeErrorPath]};n[r]=i.data}return{valid:!0,data:n}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let r=[];for(let i=0;i<e.length;i++){let n=ii(e[i],t[i]);if(!n.valid)return{valid:!1,mergeErrorPath:[i,...n.mergeErrorPath]};r.push(n.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function ia(e,t,r){let i,n=new Map;for(let r of t.issues)if("unrecognized_keys"===r.code)for(let e of(i??(i=r),r.keys))n.has(e)||n.set(e,{}),n.get(e).l=!0;else e.issues.push(r);for(let t of r.issues)if("unrecognized_keys"===t.code)for(let e of t.keys)n.has(e)||n.set(e,{}),n.get(e).r=!0;else e.issues.push(t);let a=[...n].filter(([,e])=>e.l&&e.r).map(([e])=>e);if(a.length&&i&&e.issues.push({...i,keys:a}),et(e))return e;let o=ii(t.value,r.value);if(!o.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}let io=r("$ZodTuple",(e,t)=>{rc.init(e,t);let r=t.items;e._zod.parse=(i,n)=>{let a=i.value;if(!Array.isArray(a))return i.issues.push({input:a,inst:e,expected:"tuple",code:"invalid_type"}),i;i.value=[];let o=[],s=[...r].reverse().findIndex(e=>"optional"!==e._zod.optin),u=-1===s?0:r.length-s;if(!t.rest){let t=a.length>r.length,n=a.length<u-1;if(t||n)return i.issues.push({...t?{code:"too_big",maximum:r.length,inclusive:!0}:{code:"too_small",minimum:r.length},input:a,inst:e,origin:"array"}),i}let f=-1;for(let e of r){if(++f>=a.length&&f>=u)continue;let t=e._zod.run({value:a[f],issues:[]},n);t instanceof Promise?o.push(t.then(e=>is(e,i,f))):is(t,i,f)}if(t.rest)for(let e of a.slice(r.length)){f++;let r=t.rest._zod.run({value:e,issues:[]},n);r instanceof Promise?o.push(r.then(e=>is(e,i,f))):is(r,i,f)}return o.length?Promise.all(o).then(()=>i):i}});function is(e,t,r){e.issues.length&&t.issues.push(...er(r,e.issues)),t.value[r]=e.value}let iu=r("$ZodRecord",(e,t)=>{rc.init(e,t),e._zod.parse=(r,i)=>{let n=r.value;if(!P(n))return r.issues.push({expected:"record",code:"invalid_type",input:n,inst:e}),r;let a=[],o=t.keyType._zod.values;if(o){let s;r.value={};let u=new Set;for(let e of o)if("string"==typeof e||"number"==typeof e||"symbol"==typeof e){u.add("number"==typeof e?e.toString():e);let o=t.valueType._zod.run({value:n[e],issues:[]},i);o instanceof Promise?a.push(o.then(t=>{t.issues.length&&r.issues.push(...er(e,t.issues)),r.value[e]=t.value})):(o.issues.length&&r.issues.push(...er(e,o.issues)),r.value[e]=o.value)}for(let e in n)u.has(e)||(s=s??[]).push(e);s&&s.length>0&&r.issues.push({code:"unrecognized_keys",input:n,inst:e,keys:s})}else for(let o of(r.value={},Reflect.ownKeys(n))){if("__proto__"===o)continue;let u=t.keyType._zod.run({value:o,issues:[]},i);if(u instanceof Promise)throw Error("Async schemas not supported in object keys currently");if("string"==typeof o&&tk.test(o)&&u.issues.length){let e=t.keyType._zod.run({value:Number(o),issues:[]},i);if(e instanceof Promise)throw Error("Async schemas not supported in object keys currently");0===e.issues.length&&(u=e)}if(u.issues.length){"loose"===t.mode?r.value[o]=n[o]:r.issues.push({code:"invalid_key",origin:"record",issues:u.issues.map(e=>en(e,i,s())),input:o,path:[o],inst:e});continue}let f=t.valueType._zod.run({value:n[o],issues:[]},i);f instanceof Promise?a.push(f.then(e=>{e.issues.length&&r.issues.push(...er(o,e.issues)),r.value[u.value]=e.value})):(f.issues.length&&r.issues.push(...er(o,f.issues)),r.value[u.value]=f.value)}return a.length?Promise.all(a).then(()=>r):r}}),ic=r("$ZodMap",(e,t)=>{rc.init(e,t),e._zod.parse=(r,i)=>{let n=r.value;if(!(n instanceof Map))return r.issues.push({expected:"map",code:"invalid_type",input:n,inst:e}),r;let a=[];for(let[o,s]of(r.value=new Map,n)){let u=t.keyType._zod.run({value:o,issues:[]},i),f=t.valueType._zod.run({value:s,issues:[]},i);u instanceof Promise||f instanceof Promise?a.push(Promise.all([u,f]).then(([t,a])=>{id(t,a,r,o,n,e,i)})):id(u,f,r,o,n,e,i)}return a.length?Promise.all(a).then(()=>r):r}});function id(e,t,r,i,n,a,o){e.issues.length&&(D.has(typeof i)?r.issues.push(...er(i,e.issues)):r.issues.push({code:"invalid_key",origin:"map",input:n,inst:a,issues:e.issues.map(e=>en(e,o,s()))})),t.issues.length&&(D.has(typeof i)?r.issues.push(...er(i,t.issues)):r.issues.push({origin:"map",code:"invalid_element",input:n,inst:a,key:i,issues:t.issues.map(e=>en(e,o,s()))})),r.value.set(e.value,t.value)}let il=r("$ZodSet",(e,t)=>{rc.init(e,t),e._zod.parse=(r,i)=>{let n=r.value;if(!(n instanceof Set))return r.issues.push({input:n,inst:e,expected:"set",code:"invalid_type"}),r;let a=[];for(let e of(r.value=new Set,n)){let n=t.valueType._zod.run({value:e,issues:[]},i);n instanceof Promise?a.push(n.then(e=>ih(e,r))):ih(n,r)}return a.length?Promise.all(a).then(()=>r):r}});function ih(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}let ip=r("$ZodEnum",(e,t)=>{rc.init(e,t);let r=h(t.entries),i=new Set(r);e._zod.values=i,e._zod.pattern=RegExp(`^(${r.filter(e=>D.has(typeof e)).map(e=>"string"==typeof e?Z(e):e.toString()).join("|")})$`),e._zod.parse=(t,n)=>{let a=t.value;return i.has(a)||t.issues.push({code:"invalid_value",values:r,input:a,inst:e}),t}}),im=r("$ZodLiteral",(e,t)=>{if(rc.init(e,t),0===t.values.length)throw Error("Cannot create literal schema with no valid values");let r=new Set(t.values);e._zod.values=r,e._zod.pattern=RegExp(`^(${t.values.map(e=>"string"==typeof e?Z(e):e?Z(e.toString()):String(e)).join("|")})$`),e._zod.parse=(i,n)=>{let a=i.value;return r.has(a)||i.issues.push({code:"invalid_value",values:t.values,input:a,inst:e}),i}}),ib=r("$ZodFile",(e,t)=>{rc.init(e,t),e._zod.parse=(t,r)=>{let i=t.value;return i instanceof File||t.issues.push({expected:"file",code:"invalid_type",input:i,inst:e}),t}}),ig=r("$ZodTransform",(e,t)=>{rc.init(e,t),e._zod.parse=(r,i)=>{if("backward"===i.direction)throw new a(e.constructor.name);let o=t.transform(r.value,r);if(i.async)return(o instanceof Promise?o:Promise.resolve(o)).then(e=>(r.value=e,r));if(o instanceof Promise)throw new n;return r.value=o,r}});function iv(e,t){return e.issues.length&&void 0===t?{issues:[],value:void 0}:e}let iy=r("$ZodOptional",(e,t)=>{rc.init(e,t),e._zod.optin="optional",e._zod.optout="optional",x(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),x(e._zod,"pattern",()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${v(e.source)})?$`):void 0}),e._zod.parse=(e,r)=>{if("optional"===t.innerType._zod.optin){let i=t.innerType._zod.run(e,r);return i instanceof Promise?i.then(t=>iv(t,e.value)):iv(i,e.value)}return void 0===e.value?e:t.innerType._zod.run(e,r)}}),i_=r("$ZodExactOptional",(e,t)=>{iy.init(e,t),x(e._zod,"values",()=>t.innerType._zod.values),x(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(e,r)=>t.innerType._zod.run(e,r)}),ix=r("$ZodNullable",(e,t)=>{rc.init(e,t),x(e._zod,"optin",()=>t.innerType._zod.optin),x(e._zod,"optout",()=>t.innerType._zod.optout),x(e._zod,"pattern",()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${v(e.source)}|null)$`):void 0}),x(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,r)=>null===e.value?e:t.innerType._zod.run(e,r)}),iw=r("$ZodDefault",(e,t)=>{rc.init(e,t),e._zod.optin="optional",x(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,r)=>{if("backward"===r.direction)return t.innerType._zod.run(e,r);if(void 0===e.value)return e.value=t.defaultValue,e;let i=t.innerType._zod.run(e,r);return i instanceof Promise?i.then(e=>iS(e,t)):iS(i,t)}});function iS(e,t){return void 0===e.value&&(e.value=t.defaultValue),e}let ik=r("$ZodPrefault",(e,t)=>{rc.init(e,t),e._zod.optin="optional",x(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,r)=>("backward"===r.direction||void 0===e.value&&(e.value=t.defaultValue),t.innerType._zod.run(e,r))}),i$=r("$ZodNonOptional",(e,t)=>{rc.init(e,t),x(e._zod,"values",()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>void 0!==e)):void 0}),e._zod.parse=(r,i)=>{let n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(t=>iI(t,e)):iI(n,e)}});function iI(e,t){return e.issues.length||void 0!==e.value||e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}let iM=r("$ZodSuccess",(e,t)=>{rc.init(e,t),e._zod.parse=(e,r)=>{if("backward"===r.direction)throw new a("ZodSuccess");let i=t.innerType._zod.run(e,r);return i instanceof Promise?i.then(t=>(e.value=0===t.issues.length,e)):(e.value=0===i.issues.length,e)}}),iE=r("$ZodCatch",(e,t)=>{rc.init(e,t),x(e._zod,"optin",()=>t.innerType._zod.optin),x(e._zod,"optout",()=>t.innerType._zod.optout),x(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,r)=>{if("backward"===r.direction)return t.innerType._zod.run(e,r);let i=t.innerType._zod.run(e,r);return i instanceof Promise?i.then(i=>(e.value=i.value,i.issues.length&&(e.value=t.catchValue({...e,error:{issues:i.issues.map(e=>en(e,r,s()))},input:e.value}),e.issues=[]),e)):(e.value=i.value,i.issues.length&&(e.value=t.catchValue({...e,error:{issues:i.issues.map(e=>en(e,r,s()))},input:e.value}),e.issues=[]),e)}}),iA=r("$ZodNaN",(e,t)=>{rc.init(e,t),e._zod.parse=(t,r)=>("number"==typeof t.value&&Number.isNaN(t.value)||t.issues.push({input:t.value,inst:e,expected:"nan",code:"invalid_type"}),t)}),iO=r("$ZodPipe",(e,t)=>{rc.init(e,t),x(e._zod,"values",()=>t.in._zod.values),x(e._zod,"optin",()=>t.in._zod.optin),x(e._zod,"optout",()=>t.out._zod.optout),x(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(e,r)=>{if("backward"===r.direction){let i=t.out._zod.run(e,r);return i instanceof Promise?i.then(e=>ij(e,t.in,r)):ij(i,t.in,r)}let i=t.in._zod.run(e,r);return i instanceof Promise?i.then(e=>ij(e,t.out,r)):ij(i,t.out,r)}});function ij(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},r)}let iz=r("$ZodCodec",(e,t)=>{rc.init(e,t),x(e._zod,"values",()=>t.in._zod.values),x(e._zod,"optin",()=>t.in._zod.optin),x(e._zod,"optout",()=>t.out._zod.optout),x(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(e,r)=>{if("forward"===(r.direction||"forward")){let i=t.in._zod.run(e,r);return i instanceof Promise?i.then(e=>iU(e,t,r)):iU(i,t,r)}{let i=t.out._zod.run(e,r);return i instanceof Promise?i.then(e=>iU(e,t,r)):iU(i,t,r)}}});function iU(e,t,r){if(e.issues.length)return e.aborted=!0,e;if("forward"===(r.direction||"forward")){let i=t.transform(e.value,e);return i instanceof Promise?i.then(i=>iP(e,i,t.out,r)):iP(e,i,t.out,r)}{let i=t.reverseTransform(e.value,e);return i instanceof Promise?i.then(i=>iP(e,i,t.in,r)):iP(e,i,t.in,r)}}function iP(e,t,r,i){return e.issues.length?(e.aborted=!0,e):r._zod.run({value:t,issues:e.issues},i)}let iT=r("$ZodReadonly",(e,t)=>{rc.init(e,t),x(e._zod,"propValues",()=>t.innerType._zod.propValues),x(e._zod,"values",()=>t.innerType._zod.values),x(e._zod,"optin",()=>t.innerType?._zod?.optin),x(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(e,r)=>{if("backward"===r.direction)return t.innerType._zod.run(e,r);let i=t.innerType._zod.run(e,r);return i instanceof Promise?i.then(iR):iR(i)}});function iR(e){return e.value=Object.freeze(e.value),e}let iN=r("$ZodTemplateLiteral",(e,t)=>{rc.init(e,t);let r=[];for(let e of t.parts)if("object"==typeof e&&null!==e){if(!e._zod.pattern)throw Error(`Invalid template literal part, no pattern found: ${[...e._zod.traits].shift()}`);let t=e._zod.pattern instanceof RegExp?e._zod.pattern.source:e._zod.pattern;if(!t)throw Error(`Invalid template literal part: ${e._zod.traits}`);let i=+!!t.startsWith("^"),n=t.endsWith("$")?t.length-1:t.length;r.push(t.slice(i,n))}else if(null===e||B.has(typeof e))r.push(Z(`${e}`));else throw Error(`Invalid template literal part: ${e}`);e._zod.pattern=RegExp(`^${r.join("")}$`),e._zod.parse=(r,i)=>("string"!=typeof r.value?r.issues.push({input:r.value,inst:e,expected:"string",code:"invalid_type"}):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(r.value)||r.issues.push({input:r.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source})),r)}),iD=r("$ZodFunction",(e,t)=>(rc.init(e,t),e._def=t,e._zod.def=t,e.implement=t=>{if("function"!=typeof t)throw Error("implement() must be called with a function");return function(...r){let i=Reflect.apply(t,this,e._def.input?eI(e._def.input,r):r);return e._def.output?eI(e._def.output,i):i}},e.implementAsync=t=>{if("function"!=typeof t)throw Error("implementAsync() must be called with a function");return async function(...r){let i=e._def.input?await eE(e._def.input,r):r,n=await Reflect.apply(t,this,i);return e._def.output?await eE(e._def.output,n):n}},e._zod.parse=(t,r)=>("function"!=typeof t.value?t.issues.push({code:"invalid_type",expected:"function",input:t.value,inst:e}):e._def.output&&"promise"===e._def.output._zod.def.type?t.value=e.implementAsync(t.value):t.value=e.implement(t.value),t),e.input=(...t)=>{let r=e.constructor;return new r(Array.isArray(t[0])?{type:"function",input:new io({type:"tuple",items:t[0],rest:t[1]}),output:e._def.output}:{type:"function",input:t[0],output:e._def.output})},e.output=t=>new e.constructor({type:"function",input:e._def.input,output:t}),e)),iB=r("$ZodPromise",(e,t)=>{rc.init(e,t),e._zod.parse=(e,r)=>Promise.resolve(e.value).then(e=>t.innerType._zod.run({value:e,issues:[]},r))}),iZ=r("$ZodLazy",(e,t)=>{rc.init(e,t),x(e._zod,"innerType",()=>t.getter()),x(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),x(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),x(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),x(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(t,r)=>e._zod.innerType._zod.run(t,r)}),iC=r("$ZodCustom",(e,t)=>{tV.init(e,t),rc.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=r=>{let i=r.value,n=t.fn(i);if(n instanceof Promise)return n.then(t=>iL(t,r,i,e));iL(n,r,i,e)}});function iL(e,t,r,i){if(!e){let e={code:"custom",input:r,inst:i,path:[...i._zod.def.path??[]],continue:!i._zod.def.abort};i._zod.def.params&&(e.params=i._zod.def.params),t.issues.push(eu(e))}}e.s(["$ZodAny",0,rG,"$ZodArray",0,r1,"$ZodBase64",0,rP,"$ZodBase64URL",0,rR,"$ZodBigInt",0,rF,"$ZodBigIntFormat",0,rJ,"$ZodBoolean",0,rq,"$ZodCIDRv4",0,rj,"$ZodCIDRv6",0,rz,"$ZodCUID",0,ry,"$ZodCUID2",0,r_,"$ZodCatch",0,iE,"$ZodCodec",0,iz,"$ZodCustom",0,iC,"$ZodCustomStringFormat",0,rZ,"$ZodDate",0,rQ,"$ZodDefault",0,iw,"$ZodDiscriminatedUnion",0,it,"$ZodE164",0,rN,"$ZodEmail",0,rm,"$ZodEmoji",0,rg,"$ZodEnum",0,ip,"$ZodExactOptional",0,i_,"$ZodFile",0,ib,"$ZodFunction",0,iD,"$ZodGUID",0,rh,"$ZodIPv4",0,rE,"$ZodIPv6",0,rA,"$ZodISODate",0,r$,"$ZodISODateTime",0,rk,"$ZodISODuration",0,rM,"$ZodISOTime",0,rI,"$ZodIntersection",0,ir,"$ZodJWT",0,rB,"$ZodKSUID",0,rS,"$ZodLazy",0,iZ,"$ZodLiteral",0,im,"$ZodMAC",0,rO,"$ZodMap",0,ic,"$ZodNaN",0,iA,"$ZodNanoID",0,rv,"$ZodNever",0,rX,"$ZodNonOptional",0,i$,"$ZodNull",0,rV,"$ZodNullable",0,ix,"$ZodNumber",0,rC,"$ZodNumberFormat",0,rL,"$ZodObject",0,r3,"$ZodObjectJIT",0,r8,"$ZodOptional",0,iy,"$ZodPipe",0,iO,"$ZodPrefault",0,ik,"$ZodPromise",0,iB,"$ZodReadonly",0,iT,"$ZodRecord",0,iu,"$ZodSet",0,il,"$ZodString",0,rd,"$ZodStringFormat",0,rl,"$ZodSuccess",0,iM,"$ZodSymbol",0,rW,"$ZodTemplateLiteral",0,iN,"$ZodTransform",0,ig,"$ZodTuple",0,io,"$ZodType",0,rc,"$ZodULID",0,rx,"$ZodURL",0,rb,"$ZodUUID",0,rp,"$ZodUndefined",0,rK,"$ZodUnion",0,r9,"$ZodUnknown",0,rH,"$ZodVoid",0,rY,"$ZodXID",0,rw,"$ZodXor",0,ie,"isValidBase64",0,rU,"isValidBase64URL",0,rT,"isValidJWT",0,rD],24110);let iq=()=>{let e={string:{unit:"حرف",verb:"أن يحوي"},file:{unit:"بايت",verb:"أن يحوي"},array:{unit:"عنصر",verb:"أن يحوي"},set:{unit:"عنصر",verb:"أن يحوي"}};function t(t){return e[t]??null}let r={regex:"مدخل",email:"بريد إلكتروني",url:"رابط",emoji:"إيموجي",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"تاريخ ووقت بمعيار ISO",date:"تاريخ بمعيار ISO",time:"وقت بمعيار ISO",duration:"مدة بمعيار ISO",ipv4:"عنوان IPv4",ipv6:"عنوان IPv6",cidrv4:"مدى عناوين بصيغة IPv4",cidrv6:"مدى عناوين بصيغة IPv6",base64:"نَص بترميز base64-encoded",base64url:"نَص بترميز base64url-encoded",json_string:"نَص على هيئة JSON",e164:"رقم هاتف بمعيار E.164",jwt:"JWT",template_literal:"مدخل"},i={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":{let t=i[e.expected]??e.expected,r=es(e.input),n=i[r]??r;if(/^[A-Z]/.test(e.expected))return`مدخلات غير مقبولة: يفترض إدخال instanceof ${e.expected}، ولكن تم إدخال ${n}`;return`مدخلات غير مقبولة: يفترض إدخال ${t}، ولكن تم إدخال ${n}`}case"invalid_value":if(1===e.values.length)return`مدخلات غير مقبولة: يفترض إدخال ${F(e.values[0])}`;return`اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${p(e.values,"|")}`;case"too_big":{let r=e.inclusive?"<=":"<",i=t(e.origin);if(i)return` أكبر من اللازم: يفترض أن تكون ${e.origin??"القيمة"} ${r} ${e.maximum.toString()} ${i.unit??"عنصر"}`;return`أكبر من اللازم: يفترض أن تكون ${e.origin??"القيمة"} ${r} ${e.maximum.toString()}`}case"too_small":{let r=e.inclusive?">=":">",i=t(e.origin);if(i)return`أصغر من اللازم: يفترض لـ ${e.origin} أن يكون ${r} ${e.minimum.toString()} ${i.unit}`;return`أصغر من اللازم: يفترض لـ ${e.origin} أن يكون ${r} ${e.minimum.toString()}`}case"invalid_format":{let t=e;if("starts_with"===t.format)return`نَص غير مقبول: يجب أن يبدأ بـ "${e.prefix}"`;if("ends_with"===t.format)return`نَص غير مقبول: يجب أن ينتهي بـ "${t.suffix}"`;if("includes"===t.format)return`نَص غير مقبول: يجب أن يتضمَّن "${t.includes}"`;if("regex"===t.format)return`نَص غير مقبول: يجب أن يطابق النمط ${t.pattern}`;return`${r[t.format]??e.format} غير مقبول`}case"not_multiple_of":return`رقم غير مقبول: يجب أن يكون من مضاعفات ${e.divisor}`;case"unrecognized_keys":return`معرف${e.keys.length>1?"ات":""} غريب${e.keys.length>1?"ة":""}: ${p(e.keys,"، ")}`;case"invalid_key":return`معرف غير مقبول في ${e.origin}`;case"invalid_union":default:return"مدخل غير مقبول";case"invalid_element":return`مدخل غير مقبول في ${e.origin}`}}};function iF(){return{localeError:iq()}}let iJ=()=>{let e={string:{unit:"simvol",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"element",verb:"olmalıdır"},set:{unit:"element",verb:"olmalıdır"}};function t(t){return e[t]??null}let r={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":{let t=i[e.expected]??e.expected,r=es(e.input),n=i[r]??r;if(/^[A-Z]/.test(e.expected))return`Yanlış dəyər: g\xf6zlənilən instanceof ${e.expected}, daxil olan ${n}`;return`Yanlış dəyər: g\xf6zlənilən ${t}, daxil olan ${n}`}case"invalid_value":if(1===e.values.length)return`Yanlış dəyər: g\xf6zlənilən ${F(e.values[0])}`;return`Yanlış se\xe7im: aşağıdakılardan biri olmalıdır: ${p(e.values,"|")}`;case"too_big":{let r=e.inclusive?"<=":"<",i=t(e.origin);if(i)return`\xc7ox b\xf6y\xfck: g\xf6zlənilən ${e.origin??"dəyər"} ${r}${e.maximum.toString()} ${i.unit??"element"}`;return`\xc7ox b\xf6y\xfck: g\xf6zlənilən ${e.origin??"dəyər"} ${r}${e.maximum.toString()}`}case"too_small":{let r=e.inclusive?">=":">",i=t(e.origin);if(i)return`\xc7ox ki\xe7ik: g\xf6zlənilən ${e.origin} ${r}${e.minimum.toString()} ${i.unit}`;return`\xc7ox ki\xe7ik: g\xf6zlənilən ${e.origin} ${r}${e.minimum.toString()}`}case"invalid_format":{let t=e;if("starts_with"===t.format)return`Yanlış mətn: "${t.prefix}" ilə başlamalıdır`;if("ends_with"===t.format)return`Yanlış mətn: "${t.suffix}" ilə bitməlidir`;if("includes"===t.format)return`Yanlış mətn: "${t.includes}" daxil olmalıdır`;if("regex"===t.format)return`Yanlış mətn: ${t.pattern} şablonuna uyğun olmalıdır`;return`Yanlış ${r[t.format]??e.format}`}case"not_multiple_of":return`Yanlış ədəd: ${e.divisor} ilə b\xf6l\xfcnə bilən olmalıdır`;case"unrecognized_keys":return`Tanınmayan a\xe7ar${e.keys.length>1?"lar":""}: ${p(e.keys,", ")}`;case"invalid_key":return`${e.origin} daxilində yanlış a\xe7ar`;case"invalid_union":default:return"Yanlış dəyər";case"invalid_element":return`${e.origin} daxilində yanlış dəyər`}}};function iW(){return{localeError:iJ()}}function iK(e,t,r,i){let n=Math.abs(e),a=n%10,o=n%100;return o>=11&&o<=19?i:1===a?t:a>=2&&a<=4?r:i}let iV=()=>{let e={string:{unit:{one:"сімвал",few:"сімвалы",many:"сімвалаў"},verb:"мець"},array:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},set:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},file:{unit:{one:"байт",few:"байты",many:"байтаў"},verb:"мець"}};function t(t){return e[t]??null}let r={regex:"увод",email:"email адрас",url:"URL",emoji:"эмодзі",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO дата і час",date:"ISO дата",time:"ISO час",duration:"ISO працягласць",ipv4:"IPv4 адрас",ipv6:"IPv6 адрас",cidrv4:"IPv4 дыяпазон",cidrv6:"IPv6 дыяпазон",base64:"радок у фармаце base64",base64url:"радок у фармаце base64url",json_string:"JSON радок",e164:"нумар E.164",jwt:"JWT",template_literal:"увод"},i={nan:"NaN",number:"лік",array:"масіў"};return e=>{switch(e.code){case"invalid_type":{let t=i[e.expected]??e.expected,r=es(e.input),n=i[r]??r;if(/^[A-Z]/.test(e.expected))return`Няправільны ўвод: чакаўся instanceof ${e.expected}, атрымана ${n}`;return`Няправільны ўвод: чакаўся ${t}, атрымана ${n}`}case"invalid_value":if(1===e.values.length)return`Няправільны ўвод: чакалася ${F(e.values[0])}`;return`Няправільны варыянт: чакаўся адзін з ${p(e.values,"|")}`;case"too_big":{let r=e.inclusive?"<=":"<",i=t(e.origin);if(i){let t=iK(Number(e.maximum),i.unit.one,i.unit.few,i.unit.many);return`Занадта вялікі: чакалася, што ${e.origin??"значэнне"} павінна ${i.verb} ${r}${e.maximum.toString()} ${t}`}return`Занадта вялікі: чакалася, што ${e.origin??"значэнне"} павінна быць ${r}${e.maximum.toString()}`}case"too_small":{let r=e.inclusive?">=":">",i=t(e.origin);if(i){let t=iK(Number(e.minimum),i.unit.one,i.unit.few,i.unit.many);return`Занадта малы: чакалася, што ${e.origin} павінна ${i.verb} ${r}${e.minimum.toString()} ${t}`}return`Занадта малы: чакалася, што ${e.origin} павінна быць ${r}${e.minimum.toString()}`}case"invalid_format":{let t=e;if("starts_with"===t.format)return`Няправільны радок: павінен пачынацца з "${t.prefix}"`;if("ends_with"===t.format)return`Няправільны радок: павінен заканчвацца на "${t.suffix}"`;if("includes"===t.format)return`Няправільны радок: павінен змяшчаць "${t.includes}"`;if("regex"===t.format)return`Няправільны радок: павінен адпавядаць шаблону ${t.pattern}`;return`Няправільны ${r[t.format]??e.format}`}case"not_multiple_of":return`Няправільны лік: павінен быць кратным ${e.divisor}`;case"unrecognized_keys":return`Нераспазнаны ${e.keys.length>1?"ключы":"ключ"}: ${p(e.keys,", ")}`;case"invalid_key":return`Няправільны ключ у ${e.origin}`;case"invalid_union":default:return"Няправільны ўвод";case"invalid_element":return`Няправільнае значэнне ў ${e.origin}`}}};function iG(){return{localeError:iV()}}let iH=()=>{let e={string:{unit:"символа",verb:"да съдържа"},file:{unit:"байта",verb:"да съдържа"},array:{unit:"елемента",verb:"да съдържа"},set:{unit:"елемента",verb:"да съдържа"}};function t(t){return e[t]??null}let r={regex:"вход",email:"имейл адрес",url:"URL",emoji:"емоджи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO време",date:"ISO дата",time:"ISO време",duration:"ISO продължителност",ipv4:"IPv4 адрес",ipv6:"IPv6 адрес",cidrv4:"IPv4 диапазон",cidrv6:"IPv6 диапазон",base64:"base64-кодиран низ",base64url:"base64url-кодиран низ",json_string:"JSON низ",e164:"E.164 номер",jwt:"JWT",template_literal:"вход"},i={nan:"NaN",number:"число",array:"масив"};return e=>{switch(e.code){case"invalid_type":{let t=i[e.expected]??e.expected,r=es(e.input),n=i[r]??r;if(/^[A-Z]/.test(e.expected))return`Невалиден вход: очакван instanceof ${e.expected}, получен ${n}`;return`Невалиден вход: очакван ${t}, получен ${n}`}case"invalid_value":if(1===e.values.length)return`Невалиден вход: очакван ${F(e.values[0])}`;return`Невалидна опция: очаквано едно от ${p(e.values,"|")}`;case"too_big":{let r=e.inclusive?"<=":"<",i=t(e.origin);if(i)return`Твърде голямо: очаква се ${e.origin??"стойност"} да съдържа ${r}${e.maximum.toString()} ${i.unit??"елемента"}`;return`Твърде голямо: очаква се ${e.origin??"стойност"} да бъде ${r}${e.maximum.toString()}`}case"too_small":{let r=e.inclusive?">=":">",i=t(e.origin);if(i)return`Твърде малко: очаква се ${e.origin} да съдържа ${r}${e.minimum.toString()} ${i.unit}`;return`Твърде малко: очаква се ${e.origin} да бъде ${r}${e.minimum.toString()}`}case"invalid_format":{let t=e;if("starts_with"===t.format)return`Невалиден низ: трябва да започва с "${t.prefix}"`;if("ends_with"===t.format)return`Невалиден низ: трябва да завършва с "${t.suffix}"`;if("includes"===t.format)return`Невалиден низ: трябва да включва "${t.includes}"`;if("regex"===t.format)return`Невалиден низ: трябва да съвпада с ${t.pattern}`;let i="Невалиден";return"emoji"===t.format&&(i="Невалидно"),"datetime"===t.format&&(i="Невалидно"),"date"===t.format&&(i="Невалидна"),"time"===t.format&&(i="Невалидно"),"duration"===t.format&&(i="Невалидна"),`${i} ${r[t.format]??e.format}`}case"not_multiple_of":return`Невалидно число: трябва да бъде кратно на ${e.divisor}`;case"unrecognized_keys":return`Неразпознат${e.keys.length>1?"и":""} ключ${e.keys.length>1?"ове":""}: ${p(e.keys,", ")}`;case"invalid_key":return`Невалиден ключ в ${e.origin}`;case"invalid_union":default:return"Невалиден вход";case"invalid_element":return`Невалидна стойност в ${e.origin}`}}};function iX(){return{localeError:iH()}}let iY=()=>{let e={string:{unit:"caràcters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function t(t){return e[t]??null}let r={regex:"entrada",email:"adreça electrònica",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adreça IPv4",ipv6:"adreça IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"},i={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":{let t=i[e.expected]??e.expected,r=es(e.input),n=i[r]??r;if(/^[A-Z]/.test(e.expected))return`Tipus inv\xe0lid: s'esperava instanceof ${e.expected}, s'ha rebut ${n}`;return`Tipus inv\xe0lid: s'esperava ${t}, s'ha rebut ${n}`}case"invalid_value":if(1===e.values.length)return`Valor inv\xe0lid: s'esperava ${F(e.values[0])}`;return`Opci\xf3 inv\xe0lida: s'esperava una de ${p(e.values," o ")}`;case"too_big":{let r=e.inclusive?"com a màxim":"menys de",i=t(e.origin);if(i)return`Massa gran: s'esperava que ${e.origin??"el valor"} contingu\xe9s ${r} ${e.maximum.toString()} ${i.unit??"elements"}`;return`Massa gran: s'esperava que ${e.origin??"el valor"} fos ${r} ${e.maximum.toString()}`}case"too_small":{let r=e.inclusive?"com a mínim":"més de",i=t(e.origin);if(i)return`Massa petit: s'esperava que ${e.origin} contingu\xe9s ${r} ${e.minimum.toString()} ${i.unit}`;return`Massa petit: s'esperava que ${e.origin} fos ${r} ${e.minimum.toString()}`}case"invalid_format":{let t=e;if("starts_with"===t.format)return`Format inv\xe0lid: ha de comen\xe7ar amb "${t.prefix}"`;if("ends_with"===t.format)return`Format inv\xe0lid: ha d'acabar amb "${t.suffix}"`;if("includes"===t.format)return`Format inv\xe0lid: ha d'incloure "${t.includes}"`;if("regex"===t.format)return`Format inv\xe0lid: ha de coincidir amb el patr\xf3 ${t.pattern}`;return`Format inv\xe0lid per a ${r[t.format]??e.format}`}case"not_multiple_of":return`N\xfamero inv\xe0lid: ha de ser m\xfaltiple de ${e.divisor}`;case"unrecognized_keys":return`Clau${e.keys.length>1?"s":""} no reconeguda${e.keys.length>1?"s":""}: ${p(e.keys,", ")}`;case"invalid_key":return`Clau inv\xe0lida a ${e.origin}`;case"invalid_union":default:return"Entrada invàlida";case"invalid_element":return`Element inv\xe0lid a ${e.origin}`}}};function iQ(){return{localeError:iY()}}let i0=()=>{let e={string:{unit:"znaků",verb:"mít"},file:{unit:"bajtů",verb:"mít"},array:{unit:"prvků",verb:"mít"},set:{unit:"prvků",verb:"mít"}};function t(t){return e[t]??null}let r={regex:"regulární výraz",email:"e-mailová adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"datum a čas ve formátu ISO",date:"datum ve formátu ISO",time:"čas ve formátu ISO",duration:"doba trvání ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"řetězec zakódovaný ve formátu base64",base64url:"řetězec zakódovaný ve formátu base64url",json_string:"řetězec ve formátu JSON",e164:"číslo E.164",jwt:"JWT",template_literal:"vstup"},i={nan:"NaN",number:"číslo",string:"řetězec",function:"funkce",array:"pole"};return e=>{switch(e.code){case"invalid_type":{let t=i[e.expected]??e.expected,r=es(e.input),n=i[r]??r;if(/^[A-Z]/.test(e.expected))return`Neplatn\xfd vstup: oček\xe1v\xe1no instanceof ${e.expected}, obdrženo ${n}`;return`Neplatn\xfd vstup: oček\xe1v\xe1no ${t}, obdrženo ${n}`}case"invalid_value":if(1===e.values.length)return`Neplatn\xfd vstup: oček\xe1v\xe1no ${F(e.values[0])}`;return`Neplatn\xe1 možnost: oček\xe1v\xe1na jedna z hodnot ${p(e.values,"|")}`;case"too_big":{let r=e.inclusive?"<=":"<",i=t(e.origin);if(i)return`Hodnota je př\xedliš velk\xe1: ${e.origin??"hodnota"} mus\xed m\xedt ${r}${e.maximum.toString()} ${i.unit??"prvků"}`;return`Hodnota je př\xedliš velk\xe1: ${e.origin??"hodnota"} mus\xed b\xfdt ${r}${e.maximum.toString()}`}case"too_small":{let r=e.inclusive?">=":">",i=t(e.origin);if(i)return`Hodnota je př\xedliš mal\xe1: ${e.origin??"hodnota"} mus\xed m\xedt ${r}${e.minimum.toString()} ${i.unit??"prvků"}`;return`Hodnota je př\xedliš mal\xe1: ${e.origin??"hodnota"} mus\xed b\xfdt ${r}${e.minimum.toString()}`}case"invalid_format":{let t=e;if("starts_with"===t.format)return`Neplatn\xfd řetězec: mus\xed zač\xednat na "${t.prefix}"`;if("ends_with"===t.format)return`Neplatn\xfd řetězec: mus\xed končit na "${t.suffix}"`;if("includes"===t.format)return`Neplatn\xfd řetězec: mus\xed obsahovat "${t.includes}"`;if("regex"===t.format)return`Neplatn\xfd řetězec: mus\xed odpov\xeddat vzoru ${t.pattern}`;return`Neplatn\xfd form\xe1t ${r[t.format]??e.format}`}case"not_multiple_of":return`Neplatn\xe9 č\xedslo: mus\xed b\xfdt n\xe1sobkem ${e.divisor}`;case"unrecognized_keys":return`Nezn\xe1m\xe9 kl\xedče: ${p(e.keys,", ")}`;case"invalid_key":return`Neplatn\xfd kl\xedč v ${e.origin}`;case"invalid_union":default:return"Neplatný vstup";case"invalid_element":return`Neplatn\xe1 hodnota v ${e.origin}`}}};function i1(){return{localeError:i0()}}let i2=()=>{let e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}};function t(t){return e[t]??null}let r={regex:"input",email:"e-mailadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslæt",date:"ISO-dato",time:"ISO-klokkeslæt",duration:"ISO-varighed",ipv4:"IPv4-område",ipv6:"IPv6-område",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},i={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"sæt",file:"fil"};return e=>{switch(e.code){case"invalid_type":{let t=i[e.expected]??e.expected,r=es(e.input),n=i[r]??r;if(/^[A-Z]/.test(e.expected))return`Ugyldigt input: forventede instanceof ${e.expected}, fik ${n}`;return`Ugyldigt input: forventede ${t}, fik ${n}`}case"invalid_value":if(1===e.values.length)return`Ugyldig v\xe6rdi: forventede ${F(e.values[0])}`;return`Ugyldigt valg: forventede en af f\xf8lgende ${p(e.values,"|")}`;case"too_big":{let r=e.inclusive?"<=":"<",n=t(e.origin),a=i[e.origin]??e.origin;if(n)return`For stor: forventede ${a??"value"} ${n.verb} ${r} ${e.maximum.toString()} ${n.unit??"elementer"}`;return`For stor: forventede ${a??"value"} havde ${r} ${e.maximum.toString()}`}case"too_small":{let r=e.inclusive?">=":">",n=t(e.origin),a=i[e.origin]??e.origin;if(n)return`For lille: forventede ${a} ${n.verb} ${r} ${e.minimum.toString()} ${n.unit}`;return`For lille: forventede ${a} havde ${r} ${e.minimum.toString()}`}case"invalid_format":{let t=e;if("starts_with"===t.format)return`Ugyldig streng: skal starte med "${t.prefix}"`;if("ends_with"===t.format)return`Ugyldig streng: skal ende med "${t.suffix}"`;if("includes"===t.format)return`Ugyldig streng: skal indeholde "${t.includes}"`;if("regex"===t.format)return`Ugyldig streng: skal matche m\xf8nsteret ${t.pattern}`;return`Ugyldig ${r[t.format]??e.format}`}case"not_multiple_of":return`Ugyldigt tal: skal v\xe6re deleligt med ${e.divisor}`;case"unrecognized_keys":return`${e.keys.length>1?"Ukendte nøgler":"Ukendt nøgle"}: ${p(e.keys,", ")}`;case"invalid_key":return`Ugyldig n\xf8gle i ${e.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig v\xe6rdi i ${e.origin}`;default:return"Ugyldigt input"}}};function i6(){return{localeError:i2()}}let i4=()=>{let e={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"}};function t(t){return e[t]??null}let r={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"},i={nan:"NaN",number:"Zahl",array:"Array"};return e=>{switch(e.code){case"invalid_type":{let t=i[e.expected]??e.expected,r=es(e.input),n=i[r]??r;if(/^[A-Z]/.test(e.expected))return`Ung\xfcltige Eingabe: erwartet instanceof ${e.expected}, erhalten ${n}`;return`Ung\xfcltige Eingabe: erwartet ${t}, erhalten ${n}`}case"invalid_value":if(1===e.values.length)return`Ung\xfcltige Eingabe: erwartet ${F(e.values[0])}`;return`Ung\xfcltige Option: erwartet eine von ${p(e.values,"|")}`;case"too_big":{let r=e.inclusive?"<=":"<",i=t(e.origin);if(i)return`Zu gro\xdf: erwartet, dass ${e.origin??"Wert"} ${r}${e.maximum.toString()} ${i.unit??"Elemente"} hat`;return`Zu gro\xdf: erwartet, dass ${e.origin??"Wert"} ${r}${e.maximum.toString()} ist`}case"too_small":{let r=e.inclusive?">=":">",i=t(e.origin);if(i)return`Zu klein: erwartet, dass ${e.origin} ${r}${e.minimum.toString()} ${i.unit} hat`;return`Zu klein: erwartet, dass ${e.origin} ${r}${e.minimum.toString()} ist`}case"invalid_format":{let t=e;if("starts_with"===t.format)return`Ung\xfcltiger String: muss mit "${t.prefix}" beginnen`;if("ends_with"===t.format)return`Ung\xfcltiger String: muss mit "${t.suffix}" enden`;if("includes"===t.format)return`Ung\xfcltiger String: muss "${t.includes}" enthalten`;if("regex"===t.format)return`Ung\xfcltiger String: muss dem Muster ${t.pattern} entsprechen`;return`Ung\xfcltig: ${r[t.format]??e.format}`}case"not_multiple_of":return`Ung\xfcltige Zahl: muss ein Vielfaches von ${e.divisor} sein`;case"unrecognized_keys":return`${e.keys.length>1?"Unbekannte Schlüssel":"Unbekannter Schlüssel"}: ${p(e.keys,", ")}`;case"invalid_key":return`Ung\xfcltiger Schl\xfcssel in ${e.origin}`;case"invalid_union":default:return"Ungültige Eingabe";case"invalid_element":return`Ung\xfcltiger Wert in ${e.origin}`}}};function i3(){return{localeError:i4()}}let i8=()=>{let e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function t(t){return e[t]??null}let r={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":{let t=i[e.expected]??e.expected,r=es(e.input),n=i[r]??r;return`Invalid input: expected ${t}, received ${n}`}case"invalid_value":if(1===e.values.length)return`Invalid input: expected ${F(e.values[0])}`;return`Invalid option: expected one of ${p(e.values,"|")}`;case"too_big":{let r=e.inclusive?"<=":"<",i=t(e.origin);if(i)return`Too big: expected ${e.origin??"value"} to have ${r}${e.maximum.toString()} ${i.unit??"elements"}`;return`Too big: expected ${e.origin??"value"} to be ${r}${e.maximum.toString()}`}case"too_small":{let r=e.inclusive?">=":">",i=t(e.origin);if(i)return`Too small: expected ${e.origin} to have ${r}${e.minimum.toString()} ${i.unit}`;return`Too small: expected ${e.origin} to be ${r}${e.minimum.toString()}`}case"invalid_format":{let t=e;if("starts_with"===t.format)return`Invalid string: must start with "${t.prefix}"`;if("ends_with"===t.format)return`Invalid string: must end with "${t.suffix}"`;if("includes"===t.format)return`Invalid string: must include "${t.includes}"`;if("regex"===t.format)return`Invalid string: must match pattern ${t.pattern}`;return`Invalid ${r[t.format]??e.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${e.divisor}`;case"unrecognized_keys":return`Unrecognized key${e.keys.length>1?"s":""}: ${p(e.keys,", ")}`;case"invalid_key":return`Invalid key in ${e.origin}`;case"invalid_union":default:return"Invalid input";case"invalid_element":return`Invalid value in ${e.origin}`}}};function i5(){return{localeError:i8()}}let i9=()=>{let e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function t(t){return e[t]??null}let r={regex:"enigo",email:"retadreso",url:"URL",emoji:"emoĝio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-daŭro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",jwt:"JWT",template_literal:"enigo"},i={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return e=>{switch(e.code){case"invalid_type":{let t=i[e.expected]??e.expected,r=es(e.input),n=i[r]??r;if(/^[A-Z]/.test(e.expected))return`Nevalida enigo: atendiĝis instanceof ${e.expected}, riceviĝis ${n}`;return`Nevalida enigo: atendiĝis ${t}, riceviĝis ${n}`}case"invalid_value":if(1===e.values.length)return`Nevalida enigo: atendiĝis ${F(e.values[0])}`;return`Nevalida opcio: atendiĝis unu el ${p(e.values,"|")}`;case"too_big":{let r=e.inclusive?"<=":"<",i=t(e.origin);if(i)return`Tro granda: atendiĝis ke ${e.origin??"valoro"} havu ${r}${e.maximum.toString()} ${i.unit??"elementojn"}`;return`Tro granda: atendiĝis ke ${e.origin??"valoro"} havu ${r}${e.maximum.toString()}`}case"too_small":{let r=e.inclusive?">=":">",i=t(e.origin);if(i)return`Tro malgranda: atendiĝis ke ${e.origin} havu ${r}${e.minimum.toString()} ${i.unit}`;return`Tro malgranda: atendiĝis ke ${e.origin} estu ${r}${e.minimum.toString()}`}case"invalid_format":{let t=e;if("starts_with"===t.format)return`Nevalida karaktraro: devas komenciĝi per "${t.prefix}"`;if("ends_with"===t.format)return`Nevalida karaktraro: devas finiĝi per "${t.suffix}"`;if("includes"===t.format)return`Nevalida karaktraro: devas inkluzivi "${t.includes}"`;if("regex"===t.format)return`Nevalida karaktraro: devas kongrui kun la modelo ${t.pattern}`;return`Nevalida ${r[t.format]??e.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${e.divisor}`;case"unrecognized_keys":return`Nekonata${e.keys.length>1?"j":""} ŝlosilo${e.keys.length>1?"j":""}: ${p(e.keys,", ")}`;case"invalid_key":return`Nevalida ŝlosilo en ${e.origin}`;case"invalid_union":default:return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${e.origin}`}}};function i7(){return{localeError:i9()}}let ne=()=>{let e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function t(t){return e[t]??null}let r={regex:"entrada",email:"dirección de correo electrónico",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duración ISO",ipv4:"dirección IPv4",ipv6:"dirección IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"},i={nan:"NaN",string:"texto",number:"número",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"número grande",symbol:"símbolo",undefined:"indefinido",null:"nulo",function:"función",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeración",union:"unión",literal:"literal",promise:"promesa",void:"vacío",never:"nunca",unknown:"desconocido",any:"cualquiera"};return e=>{switch(e.code){case"invalid_type":{let t=i[e.expected]??e.expected,r=es(e.input),n=i[r]??r;if(/^[A-Z]/.test(e.expected))return`Entrada inv\xe1lida: se esperaba instanceof ${e.expected}, recibido ${n}`;return`Entrada inv\xe1lida: se esperaba ${t}, recibido ${n}`}case"invalid_value":if(1===e.values.length)return`Entrada inv\xe1lida: se esperaba ${F(e.values[0])}`;return`Opci\xf3n inv\xe1lida: se esperaba una de ${p(e.values,"|")}`;case"too_big":{let r=e.inclusive?"<=":"<",n=t(e.origin),a=i[e.origin]??e.origin;if(n)return`Demasiado grande: se esperaba que ${a??"valor"} tuviera ${r}${e.maximum.toString()} ${n.unit??"elementos"}`;return`Demasiado grande: se esperaba que ${a??"valor"} fuera ${r}${e.maximum.toString()}`}case"too_small":{let r=e.inclusive?">=":">",n=t(e.origin),a=i[e.origin]??e.origin;if(n)return`Demasiado peque\xf1o: se esperaba que ${a} tuviera ${r}${e.minimum.toString()} ${n.unit}`;return`Demasiado peque\xf1o: se esperaba que ${a} fuera ${r}${e.minimum.toString()}`}case"invalid_format":{let t=e;if("starts_with"===t.format)return`Cadena inv\xe1lida: debe comenzar con "${t.prefix}"`;if("ends_with"===t.format)return`Cadena inv\xe1lida: debe terminar en "${t.suffix}"`;if("includes"===t.format)return`Cadena inv\xe1lida: debe incluir "${t.includes}"`;if("regex"===t.format)return`Cadena inv\xe1lida: debe coincidir con el patr\xf3n ${t.pattern}`;return`Inv\xe1lido ${r[t.format]??e.format}`}case"not_multiple_of":return`N\xfamero inv\xe1lido: debe ser m\xfaltiplo de ${e.divisor}`;case"unrecognized_keys":return`Llave${e.keys.length>1?"s":""} desconocida${e.keys.length>1?"s":""}: ${p(e.keys,", ")}`;case"invalid_key":return`Llave inv\xe1lida en ${i[e.origin]??e.origin}`;case"invalid_union":default:return"Entrada inválida";case"invalid_element":return`Valor inv\xe1lido en ${i[e.origin]??e.origin}`}}};function nt(){return{localeError:ne()}}let nr=()=>{let e={string:{unit:"کاراکتر",verb:"داشته باشد"},file:{unit:"بایت",verb:"داشته باشد"},array:{unit:"آیتم",verb:"داشته باشد"},set:{unit:"آیتم",verb:"داشته باشد"}};function t(t){return e[t]??null}let r={regex:"ورودی",email:"آدرس ایمیل",url:"URL",emoji:"ایموجی",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"تاریخ و زمان ایزو",date:"تاریخ ایزو",time:"زمان ایزو",duration:"مدت زمان ایزو",ipv4:"IPv4 آدرس",ipv6:"IPv6 آدرس",cidrv4:"IPv4 دامنه",cidrv6:"IPv6 دامنه",base64:"base64-encoded رشته",base64url:"base64url-encoded رشته",json_string:"JSON رشته",e164:"E.164 عدد",jwt:"JWT",template_literal:"ورودی"},i={nan:"NaN",number:"عدد",array:"آرایه"};return e=>{switch(e.code){case"invalid_type":{let t=i[e.expected]??e.expected,r=es(e.input),n=i[r]??r;if(/^[A-Z]/.test(e.expected))return`ورودی نامعتبر: میبایست instanceof ${e.expected} میبود، ${n} دریافت شد`;return`ورودی نامعتبر: میبایست ${t} میبود، ${n} دریافت شد`}case"invalid_value":if(1===e.values.length)return`ورودی نامعتبر: میبایست ${F(e.values[0])} میبود`;return`گزینه نامعتبر: میبایست یکی از ${p(e.values,"|")} میبود`;case"too_big":{let r=e.inclusive?"<=":"<",i=t(e.origin);if(i)return`خیلی بزرگ: ${e.origin??"مقدار"} باید ${r}${e.maximum.toString()} ${i.unit??"عنصر"} باشد`;return`خیلی بزرگ: ${e.origin??"مقدار"} باید ${r}${e.maximum.toString()} باشد`}case"too_small":{let r=e.inclusive?">=":">",i=t(e.origin);if(i)return`خیلی کوچک: ${e.origin} باید ${r}${e.minimum.toString()} ${i.unit} باشد`;return`خیلی کوچک: ${e.origin} باید ${r}${e.minimum.toString()} باشد`}case"invalid_format":{let t=e;if("starts_with"===t.format)return`رشته نامعتبر: باید با "${t.prefix}" شروع شود`;if("ends_with"===t.format)return`رشته نامعتبر: باید با "${t.suffix}" تمام شود`;if("includes"===t.format)return`رشته نامعتبر: باید شامل "${t.includes}" باشد`;if("regex"===t.format)return`رشته نامعتبر: باید با الگوی ${t.pattern} مطابقت داشته باشد`;return`${r[t.format]??e.format} نامعتبر`}case"not_multiple_of":return`عدد نامعتبر: باید مضرب ${e.divisor} باشد`;case"unrecognized_keys":return`کلید${e.keys.length>1?"های":""} ناشناس: ${p(e.keys,", ")}`;case"invalid_key":return`کلید ناشناس در ${e.origin}`;case"invalid_union":default:return"ورودی نامعتبر";case"invalid_element":return`مقدار نامعتبر در ${e.origin}`}}};function ni(){return{localeError:nr()}}let nn=()=>{let e={string:{unit:"merkkiä",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"päivämäärän"}};function t(t){return e[t]??null}let r={regex:"säännöllinen lauseke",email:"sähköpostiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-päivämäärä",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",jwt:"JWT",template_literal:"templaattimerkkijono"},i={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":{let t=i[e.expected]??e.expected,r=es(e.input),n=i[r]??r;if(/^[A-Z]/.test(e.expected))return`Virheellinen tyyppi: odotettiin instanceof ${e.expected}, oli ${n}`;return`Virheellinen tyyppi: odotettiin ${t}, oli ${n}`}case"invalid_value":if(1===e.values.length)return`Virheellinen sy\xf6te: t\xe4ytyy olla ${F(e.values[0])}`;return`Virheellinen valinta: t\xe4ytyy olla yksi seuraavista: ${p(e.values,"|")}`;case"too_big":{let r=e.inclusive?"<=":"<",i=t(e.origin);if(i)return`Liian suuri: ${i.subject} t\xe4ytyy olla ${r}${e.maximum.toString()} ${i.unit}`.trim();return`Liian suuri: arvon t\xe4ytyy olla ${r}${e.maximum.toString()}`}case"too_small":{let r=e.inclusive?">=":">",i=t(e.origin);if(i)return`Liian pieni: ${i.subject} t\xe4ytyy olla ${r}${e.minimum.toString()} ${i.unit}`.trim();return`Liian pieni: arvon t\xe4ytyy olla ${r}${e.minimum.toString()}`}case"invalid_format":{let t=e;if("starts_with"===t.format)return`Virheellinen sy\xf6te: t\xe4ytyy alkaa "${t.prefix}"`;if("ends_with"===t.format)return`Virheellinen sy\xf6te: t\xe4ytyy loppua "${t.suffix}"`;if("includes"===t.format)return`Virheellinen sy\xf6te: t\xe4ytyy sis\xe4lt\xe4\xe4 "${t.includes}"`;if("regex"===t.format)return`Virheellinen sy\xf6te: t\xe4ytyy vastata s\xe4\xe4nn\xf6llist\xe4 lauseketta ${t.pattern}`;return`Virheellinen ${r[t.format]??e.format}`}case"not_multiple_of":return`Virheellinen luku: t\xe4ytyy olla luvun ${e.divisor} monikerta`;case"unrecognized_keys":return`${e.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${p(e.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen syöte"}}};function na(){return{localeError:nn()}}let no=()=>{let e={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}};function t(t){return e[t]??null}let r={regex:"entrée",email:"adresse e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"durée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne encodée en base64",base64url:"chaîne encodée en base64url",json_string:"chaîne JSON",e164:"numéro E.164",jwt:"JWT",template_literal:"entrée"},i={nan:"NaN",number:"nombre",array:"tableau"};return e=>{switch(e.code){case"invalid_type":{let t=i[e.expected]??e.expected,r=es(e.input),n=i[r]??r;if(/^[A-Z]/.test(e.expected))return`Entr\xe9e invalide : instanceof ${e.expected} attendu, ${n} re\xe7u`;return`Entr\xe9e invalide : ${t} attendu, ${n} re\xe7u`}case"invalid_value":if(1===e.values.length)return`Entr\xe9e invalide : ${F(e.values[0])} attendu`;return`Option invalide : une valeur parmi ${p(e.values,"|")} attendue`;case"too_big":{let r=e.inclusive?"<=":"<",i=t(e.origin);if(i)return`Trop grand : ${e.origin??"valeur"} doit ${i.verb} ${r}${e.maximum.toString()} ${i.unit??"élément(s)"}`;return`Trop grand : ${e.origin??"valeur"} doit \xeatre ${r}${e.maximum.toString()}`}case"too_small":{let r=e.inclusive?">=":">",i=t(e.origin);if(i)return`Trop petit : ${e.origin} doit ${i.verb} ${r}${e.minimum.toString()} ${i.unit}`;return`Trop petit : ${e.origin} doit \xeatre ${r}${e.minimum.toString()}`}case"invalid_format":{let t=e;if("starts_with"===t.format)return`Cha\xeene invalide : doit commencer par "${t.prefix}"`;if("ends_with"===t.format)return`Cha\xeene invalide : doit se terminer par "${t.suffix}"`;if("includes"===t.format)return`Cha\xeene invalide : doit inclure "${t.includes}"`;if("regex"===t.format)return`Cha\xeene invalide : doit correspondre au mod\xe8le ${t.pattern}`;return`${r[t.format]??e.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xeatre un multiple de ${e.divisor}`;case"unrecognized_keys":return`Cl\xe9${e.keys.length>1?"s":""} non reconnue${e.keys.length>1?"s":""} : ${p(e.keys,", ")}`;case"invalid_key":return`Cl\xe9 invalide dans ${e.origin}`;case"invalid_union":default:return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${e.origin}`}}};function ns(){return{localeError:no()}}let nu=()=>{let e={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}};function t(t){return e[t]??null}let r={regex:"entrée",email:"adresse courriel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"durée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne encodée en base64",base64url:"chaîne encodée en base64url",json_string:"chaîne JSON",e164:"numéro E.164",jwt:"JWT",template_literal:"entrée"},i={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":{let t=i[e.expected]??e.expected,r=es(e.input),n=i[r]??r;if(/^[A-Z]/.test(e.expected))return`Entr\xe9e invalide : attendu instanceof ${e.expected}, re\xe7u ${n}`;return`Entr\xe9e invalide : attendu ${t}, re\xe7u ${n}`}case"invalid_value":if(1===e.values.length)return`Entr\xe9e invalide : attendu ${F(e.values[0])}`;return`Option invalide : attendu l'une des valeurs suivantes ${p(e.values,"|")}`;case"too_big":{let r=e.inclusive?"≤":"<",i=t(e.origin);if(i)return`Trop grand : attendu que ${e.origin??"la valeur"} ait ${r}${e.maximum.toString()} ${i.unit}`;return`Trop grand : attendu que ${e.origin??"la valeur"} soit ${r}${e.maximum.toString()}`}case"too_small":{let r=e.inclusive?"≥":">",i=t(e.origin);if(i)return`Trop petit : attendu que ${e.origin} ait ${r}${e.minimum.toString()} ${i.unit}`;return`Trop petit : attendu que ${e.origin} soit ${r}${e.minimum.toString()}`}case"invalid_format":{let t=e;if("starts_with"===t.format)return`Cha\xeene invalide : doit commencer par "${t.prefix}"`;if("ends_with"===t.format)return`Cha\xeene invalide : doit se terminer par "${t.suffix}"`;if("includes"===t.format)return`Cha\xeene invalide : doit inclure "${t.includes}"`;if("regex"===t.format)return`Cha\xeene invalide : doit correspondre au motif ${t.pattern}`;return`${r[t.format]??e.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xeatre un multiple de ${e.divisor}`;case"unrecognized_keys":return`Cl\xe9${e.keys.length>1?"s":""} non reconnue${e.keys.length>1?"s":""} : ${p(e.keys,", ")}`;case"invalid_key":return`Cl\xe9 invalide dans ${e.origin}`;case"invalid_union":default:return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${e.origin}`}}};function nf(){return{localeError:nu()}}let nc=()=>{let e={string:{label:"מחרוזת",gender:"f"},number:{label:"מספר",gender:"m"},boolean:{label:"ערך בוליאני",gender:"m"},bigint:{label:"BigInt",gender:"m"},date:{label:"תאריך",gender:"m"},array:{label:"מערך",gender:"m"},object:{label:"אובייקט",gender:"m"},null:{label:"ערך ריק (null)",gender:"m"},undefined:{label:"ערך לא מוגדר (undefined)",gender:"m"},symbol:{label:"סימבול (Symbol)",gender:"m"},function:{label:"פונקציה",gender:"f"},map:{label:"מפה (Map)",gender:"f"},set:{label:"קבוצה (Set)",gender:"f"},file:{label:"קובץ",gender:"m"},promise:{label:"Promise",gender:"m"},NaN:{label:"NaN",gender:"m"},unknown:{label:"ערך לא ידוע",gender:"m"},value:{label:"ערך",gender:"m"}},t={string:{unit:"תווים",shortLabel:"קצר",longLabel:"ארוך"},file:{unit:"בייטים",shortLabel:"קטן",longLabel:"גדול"},array:{unit:"פריטים",shortLabel:"קטן",longLabel:"גדול"},set:{unit:"פריטים",shortLabel:"קטן",longLabel:"גדול"},number:{unit:"",shortLabel:"קטן",longLabel:"גדול"}},r=t=>t?e[t]:void 0,i=t=>{let i=r(t);return i?i.label:t??e.unknown.label},n=e=>`ה${i(e)}`,a=e=>{let t=r(e);return"f"===(t?.gender??"m")?"צריכה להיות":"צריך להיות"},o=e=>e?t[e]??null:null,s={regex:{label:"קלט",gender:"m"},email:{label:"כתובת אימייל",gender:"f"},url:{label:"כתובת רשת",gender:"f"},emoji:{label:"אימוג'י",gender:"m"},uuid:{label:"UUID",gender:"m"},nanoid:{label:"nanoid",gender:"m"},guid:{label:"GUID",gender:"m"},cuid:{label:"cuid",gender:"m"},cuid2:{label:"cuid2",gender:"m"},ulid:{label:"ULID",gender:"m"},xid:{label:"XID",gender:"m"},ksuid:{label:"KSUID",gender:"m"},datetime:{label:"תאריך וזמן ISO",gender:"m"},date:{label:"תאריך ISO",gender:"m"},time:{label:"זמן ISO",gender:"m"},duration:{label:"משך זמן ISO",gender:"m"},ipv4:{label:"כתובת IPv4",gender:"f"},ipv6:{label:"כתובת IPv6",gender:"f"},cidrv4:{label:"טווח IPv4",gender:"m"},cidrv6:{label:"טווח IPv6",gender:"m"},base64:{label:"מחרוזת בבסיס 64",gender:"f"},base64url:{label:"מחרוזת בבסיס 64 לכתובות רשת",gender:"f"},json_string:{label:"מחרוזת JSON",gender:"f"},e164:{label:"מספר E.164",gender:"m"},jwt:{label:"JWT",gender:"m"},ends_with:{label:"קלט",gender:"m"},includes:{label:"קלט",gender:"m"},lowercase:{label:"קלט",gender:"m"},starts_with:{label:"קלט",gender:"m"},uppercase:{label:"קלט",gender:"m"}},u={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let r=t.expected,n=u[r??""]??i(r),a=es(t.input),o=u[a]??e[a]?.label??a;if(/^[A-Z]/.test(t.expected))return`קלט לא תקין: צריך להיות instanceof ${t.expected}, התקבל ${o}`;return`קלט לא תקין: צריך להיות ${n}, התקבל ${o}`}case"invalid_value":{if(1===t.values.length)return`ערך לא תקין: הערך חייב להיות ${F(t.values[0])}`;let e=t.values.map(e=>F(e));if(2===t.values.length)return`ערך לא תקין: האפשרויות המתאימות הן ${e[0]} או ${e[1]}`;let r=e[e.length-1],i=e.slice(0,-1).join(", ");return`ערך לא תקין: האפשרויות המתאימות הן ${i} או ${r}`}case"too_big":{let e=o(t.origin),r=n(t.origin??"value");if("string"===t.origin)return`${e?.longLabel??"ארוך"} מדי: ${r} צריכה להכיל ${t.maximum.toString()} ${e?.unit??""} ${t.inclusive?"או פחות":"לכל היותר"}`.trim();if("number"===t.origin){let e=t.inclusive?`קטן או שווה ל-${t.maximum}`:`קטן מ-${t.maximum}`;return`גדול מדי: ${r} צריך להיות ${e}`}if("array"===t.origin||"set"===t.origin){let i="set"===t.origin?"צריכה":"צריך",n=t.inclusive?`${t.maximum} ${e?.unit??""} או פחות`:`פחות מ-${t.maximum} ${e?.unit??""}`;return`גדול מדי: ${r} ${i} להכיל ${n}`.trim()}let i=t.inclusive?"<=":"<",s=a(t.origin??"value");if(e?.unit)return`${e.longLabel} מדי: ${r} ${s} ${i}${t.maximum.toString()} ${e.unit}`;return`${e?.longLabel??"גדול"} מדי: ${r} ${s} ${i}${t.maximum.toString()}`}case"too_small":{let e=o(t.origin),r=n(t.origin??"value");if("string"===t.origin)return`${e?.shortLabel??"קצר"} מדי: ${r} צריכה להכיל ${t.minimum.toString()} ${e?.unit??""} ${t.inclusive?"או יותר":"לפחות"}`.trim();if("number"===t.origin){let e=t.inclusive?`גדול או שווה ל-${t.minimum}`:`גדול מ-${t.minimum}`;return`קטן מדי: ${r} צריך להיות ${e}`}if("array"===t.origin||"set"===t.origin){let i="set"===t.origin?"צריכה":"צריך";if(1===t.minimum&&t.inclusive){let e=(t.origin,"לפחות פריט אחד");return`קטן מדי: ${r} ${i} להכיל ${e}`}let n=t.inclusive?`${t.minimum} ${e?.unit??""} או יותר`:`יותר מ-${t.minimum} ${e?.unit??""}`;return`קטן מדי: ${r} ${i} להכיל ${n}`.trim()}let i=t.inclusive?">=":">",s=a(t.origin??"value");if(e?.unit)return`${e.shortLabel} מדי: ${r} ${s} ${i}${t.minimum.toString()} ${e.unit}`;return`${e?.shortLabel??"קטן"} מדי: ${r} ${s} ${i}${t.minimum.toString()}`}case"invalid_format":{let e=t;if("starts_with"===e.format)return`המחרוזת חייבת להתחיל ב "${e.prefix}"`;if("ends_with"===e.format)return`המחרוזת חייבת להסתיים ב "${e.suffix}"`;if("includes"===e.format)return`המחרוזת חייבת לכלול "${e.includes}"`;if("regex"===e.format)return`המחרוזת חייבת להתאים לתבנית ${e.pattern}`;let r=s[e.format],i=r?.label??e.format,n="f"===(r?.gender??"m")?"תקינה":"תקין";return`${i} לא ${n}`}case"not_multiple_of":return`מספר לא תקין: חייב להיות מכפלה של ${t.divisor}`;case"unrecognized_keys":return`מפתח${t.keys.length>1?"ות":""} לא מזוה${t.keys.length>1?"ים":"ה"}: ${p(t.keys,", ")}`;case"invalid_key":return"שדה לא תקין באובייקט";case"invalid_union":default:return"קלט לא תקין";case"invalid_element":{let e=n(t.origin??"array");return`ערך לא תקין ב${e}`}}}};function nd(){return{localeError:nc()}}let nl=()=>{let e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function t(t){return e[t]??null}let r={regex:"bemenet",email:"email cím",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO időbélyeg",date:"ISO dátum",time:"ISO idő",duration:"ISO időintervallum",ipv4:"IPv4 cím",ipv6:"IPv6 cím",cidrv4:"IPv4 tartomány",cidrv6:"IPv6 tartomány",base64:"base64-kódolt string",base64url:"base64url-kódolt string",json_string:"JSON string",e164:"E.164 szám",jwt:"JWT",template_literal:"bemenet"},i={nan:"NaN",number:"szám",array:"tömb"};return e=>{switch(e.code){case"invalid_type":{let t=i[e.expected]??e.expected,r=es(e.input),n=i[r]??r;if(/^[A-Z]/.test(e.expected))return`\xc9rv\xe9nytelen bemenet: a v\xe1rt \xe9rt\xe9k instanceof ${e.expected}, a kapott \xe9rt\xe9k ${n}`;return`\xc9rv\xe9nytelen bemenet: a v\xe1rt \xe9rt\xe9k ${t}, a kapott \xe9rt\xe9k ${n}`}case"invalid_value":if(1===e.values.length)return`\xc9rv\xe9nytelen bemenet: a v\xe1rt \xe9rt\xe9k ${F(e.values[0])}`;return`\xc9rv\xe9nytelen opci\xf3: valamelyik \xe9rt\xe9k v\xe1rt ${p(e.values,"|")}`;case"too_big":{let r=e.inclusive?"<=":"<",i=t(e.origin);if(i)return`T\xfal nagy: ${e.origin??"érték"} m\xe9rete t\xfal nagy ${r}${e.maximum.toString()} ${i.unit??"elem"}`;return`T\xfal nagy: a bemeneti \xe9rt\xe9k ${e.origin??"érték"} t\xfal nagy: ${r}${e.maximum.toString()}`}case"too_small":{let r=e.inclusive?">=":">",i=t(e.origin);if(i)return`T\xfal kicsi: a bemeneti \xe9rt\xe9k ${e.origin} m\xe9rete t\xfal kicsi ${r}${e.minimum.toString()} ${i.unit}`;return`T\xfal kicsi: a bemeneti \xe9rt\xe9k ${e.origin} t\xfal kicsi ${r}${e.minimum.toString()}`}case"invalid_format":{let t=e;if("starts_with"===t.format)return`\xc9rv\xe9nytelen string: "${t.prefix}" \xe9rt\xe9kkel kell kezdődnie`;if("ends_with"===t.format)return`\xc9rv\xe9nytelen string: "${t.suffix}" \xe9rt\xe9kkel kell v\xe9gződnie`;if("includes"===t.format)return`\xc9rv\xe9nytelen string: "${t.includes}" \xe9rt\xe9ket kell tartalmaznia`;if("regex"===t.format)return`\xc9rv\xe9nytelen string: ${t.pattern} mint\xe1nak kell megfelelnie`;return`\xc9rv\xe9nytelen ${r[t.format]??e.format}`}case"not_multiple_of":return`\xc9rv\xe9nytelen sz\xe1m: ${e.divisor} t\xf6bbsz\xf6r\xf6s\xe9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${e.keys.length>1?"s":""}: ${p(e.keys,", ")}`;case"invalid_key":return`\xc9rv\xe9nytelen kulcs ${e.origin}`;case"invalid_union":default:return"Érvénytelen bemenet";case"invalid_element":return`\xc9rv\xe9nytelen \xe9rt\xe9k: ${e.origin}`}}};function nh(){return{localeError:nl()}}function np(e,t,r){return 1===Math.abs(e)?t:r}function nm(e){if(!e)return"";let t=["ա","ե","ը","ի","ո","ու","օ"],r=e[e.length-1];return e+(t.includes(r)?"ն":"ը")}let nb=()=>{let e={string:{unit:{one:"նշան",many:"նշաններ"},verb:"ունենալ"},file:{unit:{one:"բայթ",many:"բայթեր"},verb:"ունենալ"},array:{unit:{one:"տարր",many:"տարրեր"},verb:"ունենալ"},set:{unit:{one:"տարր",many:"տարրեր"},verb:"ունենալ"}};function t(t){return e[t]??null}let r={regex:"մուտք",email:"էլ. հասցե",url:"URL",emoji:"էմոջի",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO ամսաթիվ և ժամ",date:"ISO ամսաթիվ",time:"ISO ժամ",duration:"ISO տևողություն",ipv4:"IPv4 հասցե",ipv6:"IPv6 հասցե",cidrv4:"IPv4 միջակայք",cidrv6:"IPv6 միջակայք",base64:"base64 ձևաչափով տող",base64url:"base64url ձևաչափով տող",json_string:"JSON տող",e164:"E.164 համար",jwt:"JWT",template_literal:"մուտք"},i={nan:"NaN",number:"թիվ",array:"զանգված"};return e=>{switch(e.code){case"invalid_type":{let t=i[e.expected]??e.expected,r=es(e.input),n=i[r]??r;if(/^[A-Z]/.test(e.expected))return`Սխալ մուտքագրում․ սպասվում էր instanceof ${e.expected}, ստացվել է ${n}`;return`Սխալ մուտքագրում․ սպասվում էր ${t}, ստացվել է ${n}`}case"invalid_value":if(1===e.values.length)return`Սխալ մուտքագրում․ սպասվում էր ${F(e.values[1])}`;return`Սխալ տարբերակ․ սպասվում էր հետևյալներից մեկը՝ ${p(e.values,"|")}`;case"too_big":{let r=e.inclusive?"<=":"<",i=t(e.origin);if(i){let t=np(Number(e.maximum),i.unit.one,i.unit.many);return`Չափազանց մեծ արժեք․ սպասվում է, որ ${nm(e.origin??"արժեք")} կունենա ${r}${e.maximum.toString()} ${t}`}return`Չափազանց մեծ արժեք․ սպասվում է, որ ${nm(e.origin??"արժեք")} լինի ${r}${e.maximum.toString()}`}case"too_small":{let r=e.inclusive?">=":">",i=t(e.origin);if(i){let t=np(Number(e.minimum),i.unit.one,i.unit.many);return`Չափազանց փոքր արժեք․ սպասվում է, որ ${nm(e.origin)} կունենա ${r}${e.minimum.toString()} ${t}`}return`Չափազանց փոքր արժեք․ սպասվում է, որ ${nm(e.origin)} լինի ${r}${e.minimum.toString()}`}case"invalid_format":{let t=e;if("starts_with"===t.format)return`Սխալ տող․ պետք է սկսվի "${t.prefix}"-ով`;if("ends_with"===t.format)return`Սխալ տող․ պետք է ավարտվի "${t.suffix}"-ով`;if("includes"===t.format)return`Սխալ տող․ պետք է պարունակի "${t.includes}"`;if("regex"===t.format)return`Սխալ տող․ պետք է համապատասխանի ${t.pattern} ձևաչափին`;return`Սխալ ${r[t.format]??e.format}`}case"not_multiple_of":return`Սխալ թիվ․ պետք է բազմապատիկ լինի ${e.divisor}-ի`;case"unrecognized_keys":return`Չճանաչված բանալի${e.keys.length>1?"ներ":""}. ${p(e.keys,", ")}`;case"invalid_key":return`Սխալ բանալի ${nm(e.origin)}-ում`;case"invalid_union":default:return"Սխալ մուտքագրում";case"invalid_element":return`Սխալ արժեք ${nm(e.origin)}-ում`}}};function ng(){return{localeError:nb()}}let nv=()=>{let e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function t(t){return e[t]??null}let r={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":{let t=i[e.expected]??e.expected,r=es(e.input),n=i[r]??r;if(/^[A-Z]/.test(e.expected))return`Input tidak valid: diharapkan instanceof ${e.expected}, diterima ${n}`;return`Input tidak valid: diharapkan ${t}, diterima ${n}`}case"invalid_value":if(1===e.values.length)return`Input tidak valid: diharapkan ${F(e.values[0])}`;return`Pilihan tidak valid: diharapkan salah satu dari ${p(e.values,"|")}`;case"too_big":{let r=e.inclusive?"<=":"<",i=t(e.origin);if(i)return`Terlalu besar: diharapkan ${e.origin??"value"} memiliki ${r}${e.maximum.toString()} ${i.unit??"elemen"}`;return`Terlalu besar: diharapkan ${e.origin??"value"} menjadi ${r}${e.maximum.toString()}`}case"too_small":{let r=e.inclusive?">=":">",i=t(e.origin);if(i)return`Terlalu kecil: diharapkan ${e.origin} memiliki ${r}${e.minimum.toString()} ${i.unit}`;return`Terlalu kecil: diharapkan ${e.origin} menjadi ${r}${e.minimum.toString()}`}case"invalid_format":{let t=e;if("starts_with"===t.format)return`String tidak valid: harus dimulai dengan "${t.prefix}"`;if("ends_with"===t.format)return`String tidak valid: harus berakhir dengan "${t.suffix}"`;if("includes"===t.format)return`String tidak valid: harus menyertakan "${t.includes}"`;if("regex"===t.format)return`String tidak valid: harus sesuai pola ${t.pattern}`;return`${r[t.format]??e.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${e.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${e.keys.length>1?"s":""}: ${p(e.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${e.origin}`;case"invalid_union":default:return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${e.origin}`}}};function ny(){return{localeError:nv()}}let n_=()=>{let e={string:{unit:"stafi",verb:"að hafa"},file:{unit:"bæti",verb:"að hafa"},array:{unit:"hluti",verb:"að hafa"},set:{unit:"hluti",verb:"að hafa"}};function t(t){return e[t]??null}let r={regex:"gildi",email:"netfang",url:"vefslóð",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dagsetning og tími",date:"ISO dagsetning",time:"ISO tími",duration:"ISO tímalengd",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 tölugildi",jwt:"JWT",template_literal:"gildi"},i={nan:"NaN",number:"númer",array:"fylki"};return e=>{switch(e.code){case"invalid_type":{let t=i[e.expected]??e.expected,r=es(e.input),n=i[r]??r;if(/^[A-Z]/.test(e.expected))return`Rangt gildi: \xde\xfa sl\xf3st inn ${n} \xfear sem \xe1 a\xf0 vera instanceof ${e.expected}`;return`Rangt gildi: \xde\xfa sl\xf3st inn ${n} \xfear sem \xe1 a\xf0 vera ${t}`}case"invalid_value":if(1===e.values.length)return`Rangt gildi: gert r\xe1\xf0 fyrir ${F(e.values[0])}`;return`\xd3gilt val: m\xe1 vera eitt af eftirfarandi ${p(e.values,"|")}`;case"too_big":{let r=e.inclusive?"<=":"<",i=t(e.origin);if(i)return`Of st\xf3rt: gert er r\xe1\xf0 fyrir a\xf0 ${e.origin??"gildi"} hafi ${r}${e.maximum.toString()} ${i.unit??"hluti"}`;return`Of st\xf3rt: gert er r\xe1\xf0 fyrir a\xf0 ${e.origin??"gildi"} s\xe9 ${r}${e.maximum.toString()}`}case"too_small":{let r=e.inclusive?">=":">",i=t(e.origin);if(i)return`Of l\xedti\xf0: gert er r\xe1\xf0 fyrir a\xf0 ${e.origin} hafi ${r}${e.minimum.toString()} ${i.unit}`;return`Of l\xedti\xf0: gert er r\xe1\xf0 fyrir a\xf0 ${e.origin} s\xe9 ${r}${e.minimum.toString()}`}case"invalid_format":{let t=e;if("starts_with"===t.format)return`\xd3gildur strengur: ver\xf0ur a\xf0 byrja \xe1 "${t.prefix}"`;if("ends_with"===t.format)return`\xd3gildur strengur: ver\xf0ur a\xf0 enda \xe1 "${t.suffix}"`;if("includes"===t.format)return`\xd3gildur strengur: ver\xf0ur a\xf0 innihalda "${t.includes}"`;if("regex"===t.format)return`\xd3gildur strengur: ver\xf0ur a\xf0 fylgja mynstri ${t.pattern}`;return`Rangt ${r[t.format]??e.format}`}case"not_multiple_of":return`R\xf6ng tala: ver\xf0ur a\xf0 vera margfeldi af ${e.divisor}`;case"unrecognized_keys":return`\xd3\xfeekkt ${e.keys.length>1?"ir lyklar":"ur lykill"}: ${p(e.keys,", ")}`;case"invalid_key":return`Rangur lykill \xed ${e.origin}`;case"invalid_union":default:return"Rangt gildi";case"invalid_element":return`Rangt gildi \xed ${e.origin}`}}};function nx(){return{localeError:n_()}}let nw=()=>{let e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function t(t){return e[t]??null}let r={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"numero",array:"vettore"};return e=>{switch(e.code){case"invalid_type":{let t=i[e.expected]??e.expected,r=es(e.input),n=i[r]??r;if(/^[A-Z]/.test(e.expected))return`Input non valido: atteso instanceof ${e.expected}, ricevuto ${n}`;return`Input non valido: atteso ${t}, ricevuto ${n}`}case"invalid_value":if(1===e.values.length)return`Input non valido: atteso ${F(e.values[0])}`;return`Opzione non valida: atteso uno tra ${p(e.values,"|")}`;case"too_big":{let r=e.inclusive?"<=":"<",i=t(e.origin);if(i)return`Troppo grande: ${e.origin??"valore"} deve avere ${r}${e.maximum.toString()} ${i.unit??"elementi"}`;return`Troppo grande: ${e.origin??"valore"} deve essere ${r}${e.maximum.toString()}`}case"too_small":{let r=e.inclusive?">=":">",i=t(e.origin);if(i)return`Troppo piccolo: ${e.origin} deve avere ${r}${e.minimum.toString()} ${i.unit}`;return`Troppo piccolo: ${e.origin} deve essere ${r}${e.minimum.toString()}`}case"invalid_format":{let t=e;if("starts_with"===t.format)return`Stringa non valida: deve iniziare con "${t.prefix}"`;if("ends_with"===t.format)return`Stringa non valida: deve terminare con "${t.suffix}"`;if("includes"===t.format)return`Stringa non valida: deve includere "${t.includes}"`;if("regex"===t.format)return`Stringa non valida: deve corrispondere al pattern ${t.pattern}`;return`Invalid ${r[t.format]??e.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${e.divisor}`;case"unrecognized_keys":return`Chiav${e.keys.length>1?"i":"e"} non riconosciut${e.keys.length>1?"e":"a"}: ${p(e.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${e.origin}`;case"invalid_union":default:return"Input non valido";case"invalid_element":return`Valore non valido in ${e.origin}`}}};function nS(){return{localeError:nw()}}let nk=()=>{let e={string:{unit:"文字",verb:"である"},file:{unit:"バイト",verb:"である"},array:{unit:"要素",verb:"である"},set:{unit:"要素",verb:"である"}};function t(t){return e[t]??null}let r={regex:"入力値",email:"メールアドレス",url:"URL",emoji:"絵文字",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO日時",date:"ISO日付",time:"ISO時刻",duration:"ISO期間",ipv4:"IPv4アドレス",ipv6:"IPv6アドレス",cidrv4:"IPv4範囲",cidrv6:"IPv6範囲",base64:"base64エンコード文字列",base64url:"base64urlエンコード文字列",json_string:"JSON文字列",e164:"E.164番号",jwt:"JWT",template_literal:"入力値"},i={nan:"NaN",number:"数値",array:"配列"};return e=>{switch(e.code){case"invalid_type":{let t=i[e.expected]??e.expected,r=es(e.input),n=i[r]??r;if(/^[A-Z]/.test(e.expected))return`無効な入力: instanceof ${e.expected}が期待されましたが、${n}が入力されました`;return`無効な入力: ${t}が期待されましたが、${n}が入力されました`}case"invalid_value":if(1===e.values.length)return`無効な入力: ${F(e.values[0])}が期待されました`;return`無効な選択: ${p(e.values,"、")}のいずれかである必要があります`;case"too_big":{let r=e.inclusive?"以下である":"より小さい",i=t(e.origin);if(i)return`大きすぎる値: ${e.origin??"値"}は${e.maximum.toString()}${i.unit??"要素"}${r}必要があります`;return`大きすぎる値: ${e.origin??"値"}は${e.maximum.toString()}${r}必要があります`}case"too_small":{let r=e.inclusive?"以上である":"より大きい",i=t(e.origin);if(i)return`小さすぎる値: ${e.origin}は${e.minimum.toString()}${i.unit}${r}必要があります`;return`小さすぎる値: ${e.origin}は${e.minimum.toString()}${r}必要があります`}case"invalid_format":{let t=e;if("starts_with"===t.format)return`無効な文字列: "${t.prefix}"で始まる必要があります`;if("ends_with"===t.format)return`無効な文字列: "${t.suffix}"で終わる必要があります`;if("includes"===t.format)return`無効な文字列: "${t.includes}"を含む必要があります`;if("regex"===t.format)return`無効な文字列: パターン${t.pattern}に一致する必要があります`;return`無効な${r[t.format]??e.format}`}case"not_multiple_of":return`無効な数値: ${e.divisor}の倍数である必要があります`;case"unrecognized_keys":return`認識されていないキー${e.keys.length>1?"群":""}: ${p(e.keys,"、")}`;case"invalid_key":return`${e.origin}内の無効なキー`;case"invalid_union":default:return"無効な入力";case"invalid_element":return`${e.origin}内の無効な値`}}};function n$(){return{localeError:nk()}}let nI=()=>{let e={string:{unit:"სიმბოლო",verb:"უნდა შეიცავდეს"},file:{unit:"ბაიტი",verb:"უნდა შეიცავდეს"},array:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"},set:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"}};function t(t){return e[t]??null}let r={regex:"შეყვანა",email:"ელ-ფოსტის მისამართი",url:"URL",emoji:"ემოჯი",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"თარიღი-დრო",date:"თარიღი",time:"დრო",duration:"ხანგრძლივობა",ipv4:"IPv4 მისამართი",ipv6:"IPv6 მისამართი",cidrv4:"IPv4 დიაპაზონი",cidrv6:"IPv6 დიაპაზონი",base64:"base64-კოდირებული სტრინგი",base64url:"base64url-კოდირებული სტრინგი",json_string:"JSON სტრინგი",e164:"E.164 ნომერი",jwt:"JWT",template_literal:"შეყვანა"},i={nan:"NaN",number:"რიცხვი",string:"სტრინგი",boolean:"ბულეანი",function:"ფუნქცია",array:"მასივი"};return e=>{switch(e.code){case"invalid_type":{let t=i[e.expected]??e.expected,r=es(e.input),n=i[r]??r;if(/^[A-Z]/.test(e.expected))return`არასწორი შეყვანა: მოსალოდნელი instanceof ${e.expected}, მიღებული ${n}`;return`არასწორი შეყვანა: მოსალოდნელი ${t}, მიღებული ${n}`}case"invalid_value":if(1===e.values.length)return`არასწორი შეყვანა: მოსალოდნელი ${F(e.values[0])}`;return`არასწორი ვარიანტი: მოსალოდნელია ერთ-ერთი ${p(e.values,"|")}-დან`;case"too_big":{let r=e.inclusive?"<=":"<",i=t(e.origin);if(i)return`ზედმეტად დიდი: მოსალოდნელი ${e.origin??"მნიშვნელობა"} ${i.verb} ${r}${e.maximum.toString()} ${i.unit}`;return`ზედმეტად დიდი: მოსალოდნელი ${e.origin??"მნიშვნელობა"} იყოს ${r}${e.maximum.toString()}`}case"too_small":{let r=e.inclusive?">=":">",i=t(e.origin);if(i)return`ზედმეტად პატარა: მოსალოდნელი ${e.origin} ${i.verb} ${r}${e.minimum.toString()} ${i.unit}`;return`ზედმეტად პატარა: მოსალოდნელი ${e.origin} იყოს ${r}${e.minimum.toString()}`}case"invalid_format":{let t=e;if("starts_with"===t.format)return`არასწორი სტრინგი: უნდა იწყებოდეს "${t.prefix}"-ით`;if("ends_with"===t.format)return`არასწორი სტრინგი: უნდა მთავრდებოდეს "${t.suffix}"-ით`;if("includes"===t.format)return`არასწორი სტრინგი: უნდა შეიცავდეს "${t.includes}"-ს`;if("regex"===t.format)return`არასწორი სტრინგი: უნდა შეესაბამებოდეს შაბლონს ${t.pattern}`;return`არასწორი ${r[t.format]??e.format}`}case"not_multiple_of":return`არასწორი რიცხვი: უნდა იყოს ${e.divisor}-ის ჯერადი`;case"unrecognized_keys":return`უცნობი გასაღებ${e.keys.length>1?"ები":"ი"}: ${p(e.keys,", ")}`;case"invalid_key":return`არასწორი გასაღები ${e.origin}-ში`;case"invalid_union":default:return"არასწორი შეყვანა";case"invalid_element":return`არასწორი მნიშვნელობა ${e.origin}-ში`}}};function nM(){return{localeError:nI()}}let nE=()=>{let e={string:{unit:"តួអក្សរ",verb:"គួរមាន"},file:{unit:"បៃ",verb:"គួរមាន"},array:{unit:"ធាតុ",verb:"គួរមាន"},set:{unit:"ធាតុ",verb:"គួរមាន"}};function t(t){return e[t]??null}let r={regex:"ទិន្នន័យបញ្ចូល",email:"អាសយដ្ឋានអ៊ីមែល",url:"URL",emoji:"សញ្ញាអារម្មណ៍",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"កាលបរិច្ឆេទ និងម៉ោង ISO",date:"កាលបរិច្ឆេទ ISO",time:"ម៉ោង ISO",duration:"រយៈពេល ISO",ipv4:"អាសយដ្ឋាន IPv4",ipv6:"អាសយដ្ឋាន IPv6",cidrv4:"ដែនអាសយដ្ឋាន IPv4",cidrv6:"ដែនអាសយដ្ឋាន IPv6",base64:"ខ្សែអក្សរអ៊ិកូដ base64",base64url:"ខ្សែអក្សរអ៊ិកូដ base64url",json_string:"ខ្សែអក្សរ JSON",e164:"លេខ E.164",jwt:"JWT",template_literal:"ទិន្នន័យបញ្ចូល"},i={nan:"NaN",number:"លេខ",array:"អារេ (Array)",null:"គ្មានតម្លៃ (null)"};return e=>{switch(e.code){case"invalid_type":{let t=i[e.expected]??e.expected,r=es(e.input),n=i[r]??r;if(/^[A-Z]/.test(e.expected))return`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ instanceof ${e.expected} ប៉ុន្តែទទួលបាន ${n}`;return`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${t} ប៉ុន្តែទទួលបាន ${n}`}case"invalid_value":if(1===e.values.length)return`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${F(e.values[0])}`;return`ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${p(e.values,"|")}`;case"too_big":{let r=e.inclusive?"<=":"<",i=t(e.origin);if(i)return`ធំពេក៖ ត្រូវការ ${e.origin??"តម្លៃ"} ${r} ${e.maximum.toString()} ${i.unit??"ធាតុ"}`;return`ធំពេក៖ ត្រូវការ ${e.origin??"តម្លៃ"} ${r} ${e.maximum.toString()}`}case"too_small":{let r=e.inclusive?">=":">",i=t(e.origin);if(i)return`តូចពេក៖ ត្រូវការ ${e.origin} ${r} ${e.minimum.toString()} ${i.unit}`;return`តូចពេក៖ ត្រូវការ ${e.origin} ${r} ${e.minimum.toString()}`}case"invalid_format":{let t=e;if("starts_with"===t.format)return`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវចាប់ផ្តើមដោយ "${t.prefix}"`;if("ends_with"===t.format)return`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវបញ្ចប់ដោយ "${t.suffix}"`;if("includes"===t.format)return`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវមាន "${t.includes}"`;if("regex"===t.format)return`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវតែផ្គូផ្គងនឹងទម្រង់ដែលបានកំណត់ ${t.pattern}`;return`មិនត្រឹមត្រូវ៖ ${r[t.format]??e.format}`}case"not_multiple_of":return`លេខមិនត្រឹមត្រូវ៖ ត្រូវតែជាពហុគុណនៃ ${e.divisor}`;case"unrecognized_keys":return`រកឃើញសោមិនស្គាល់៖ ${p(e.keys,", ")}`;case"invalid_key":return`សោមិនត្រឹមត្រូវនៅក្នុង ${e.origin}`;case"invalid_union":default:return"ទិន្នន័យមិនត្រឹមត្រូវ";case"invalid_element":return`ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង ${e.origin}`}}};function nA(){return{localeError:nE()}}function nO(){return nA()}let nj=()=>{let e={string:{unit:"문자",verb:"to have"},file:{unit:"바이트",verb:"to have"},array:{unit:"개",verb:"to have"},set:{unit:"개",verb:"to have"}};function t(t){return e[t]??null}let r={regex:"입력",email:"이메일 주소",url:"URL",emoji:"이모지",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO 날짜시간",date:"ISO 날짜",time:"ISO 시간",duration:"ISO 기간",ipv4:"IPv4 주소",ipv6:"IPv6 주소",cidrv4:"IPv4 범위",cidrv6:"IPv6 범위",base64:"base64 인코딩 문자열",base64url:"base64url 인코딩 문자열",json_string:"JSON 문자열",e164:"E.164 번호",jwt:"JWT",template_literal:"입력"},i={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":{let t=i[e.expected]??e.expected,r=es(e.input),n=i[r]??r;if(/^[A-Z]/.test(e.expected))return`잘못된 입력: 예상 타입은 instanceof ${e.expected}, 받은 타입은 ${n}입니다`;return`잘못된 입력: 예상 타입은 ${t}, 받은 타입은 ${n}입니다`}case"invalid_value":if(1===e.values.length)return`잘못된 입력: 값은 ${F(e.values[0])} 이어야 합니다`;return`잘못된 옵션: ${p(e.values,"또는 ")} 중 하나여야 합니다`;case"too_big":{let r=e.inclusive?"이하":"미만",i="미만"===r?"이어야 합니다":"여야 합니다",n=t(e.origin),a=n?.unit??"요소";if(n)return`${e.origin??"값"}이 너무 큽니다: ${e.maximum.toString()}${a} ${r}${i}`;return`${e.origin??"값"}이 너무 큽니다: ${e.maximum.toString()} ${r}${i}`}case"too_small":{let r=e.inclusive?"이상":"초과",i="이상"===r?"이어야 합니다":"여야 합니다",n=t(e.origin),a=n?.unit??"요소";if(n)return`${e.origin??"값"}이 너무 작습니다: ${e.minimum.toString()}${a} ${r}${i}`;return`${e.origin??"값"}이 너무 작습니다: ${e.minimum.toString()} ${r}${i}`}case"invalid_format":{let t=e;if("starts_with"===t.format)return`잘못된 문자열: "${t.prefix}"(으)로 시작해야 합니다`;if("ends_with"===t.format)return`잘못된 문자열: "${t.suffix}"(으)로 끝나야 합니다`;if("includes"===t.format)return`잘못된 문자열: "${t.includes}"을(를) 포함해야 합니다`;if("regex"===t.format)return`잘못된 문자열: 정규식 ${t.pattern} 패턴과 일치해야 합니다`;return`잘못된 ${r[t.format]??e.format}`}case"not_multiple_of":return`잘못된 숫자: ${e.divisor}의 배수여야 합니다`;case"unrecognized_keys":return`인식할 수 없는 키: ${p(e.keys,", ")}`;case"invalid_key":return`잘못된 키: ${e.origin}`;case"invalid_union":default:return"잘못된 입력";case"invalid_element":return`잘못된 값: ${e.origin}`}}};function nz(){return{localeError:nj()}}let nU=e=>e.charAt(0).toUpperCase()+e.slice(1);function nP(e){let t=Math.abs(e),r=t%10,i=t%100;return i>=11&&i<=19||0===r?"many":1===r?"one":"few"}let nT=()=>{let e={string:{unit:{one:"simbolis",few:"simboliai",many:"simbolių"},verb:{smaller:{inclusive:"turi būti ne ilgesnė kaip",notInclusive:"turi būti trumpesnė kaip"},bigger:{inclusive:"turi būti ne trumpesnė kaip",notInclusive:"turi būti ilgesnė kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"baitų"},verb:{smaller:{inclusive:"turi būti ne didesnis kaip",notInclusive:"turi būti mažesnis kaip"},bigger:{inclusive:"turi būti ne mažesnis kaip",notInclusive:"turi būti didesnis kaip"}}},array:{unit:{one:"elementą",few:"elementus",many:"elementų"},verb:{smaller:{inclusive:"turi turėti ne daugiau kaip",notInclusive:"turi turėti mažiau kaip"},bigger:{inclusive:"turi turėti ne mažiau kaip",notInclusive:"turi turėti daugiau kaip"}}},set:{unit:{one:"elementą",few:"elementus",many:"elementų"},verb:{smaller:{inclusive:"turi turėti ne daugiau kaip",notInclusive:"turi turėti mažiau kaip"},bigger:{inclusive:"turi turėti ne mažiau kaip",notInclusive:"turi turėti daugiau kaip"}}}};function t(t,r,i,n){let a=e[t]??null;return null===a?a:{unit:a.unit[r],verb:a.verb[n][i?"inclusive":"notInclusive"]}}let r={regex:"įvestis",email:"el. pašto adresas",url:"URL",emoji:"jaustukas",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO data ir laikas",date:"ISO data",time:"ISO laikas",duration:"ISO trukmė",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 užkoduota eilutė",base64url:"base64url užkoduota eilutė",json_string:"JSON eilutė",e164:"E.164 numeris",jwt:"JWT",template_literal:"įvestis"},i={nan:"NaN",number:"skaičius",bigint:"sveikasis skaičius",string:"eilutė",boolean:"loginė reikšmė",undefined:"neapibrėžta reikšmė",function:"funkcija",symbol:"simbolis",array:"masyvas",object:"objektas",null:"nulinė reikšmė"};return e=>{switch(e.code){case"invalid_type":{let t=i[e.expected]??e.expected,r=es(e.input),n=i[r]??r;if(/^[A-Z]/.test(e.expected))return`Gautas tipas ${n}, o tikėtasi - instanceof ${e.expected}`;return`Gautas tipas ${n}, o tikėtasi - ${t}`}case"invalid_value":if(1===e.values.length)return`Privalo būti ${F(e.values[0])}`;return`Privalo būti vienas iš ${p(e.values,"|")} pasirinkimų`;case"too_big":{let r=i[e.origin]??e.origin,n=t(e.origin,nP(Number(e.maximum)),e.inclusive??!1,"smaller");if(n?.verb)return`${nU(r??e.origin??"reikšmė")} ${n.verb} ${e.maximum.toString()} ${n.unit??"elementų"}`;let a=e.inclusive?"ne didesnis kaip":"mažesnis kaip";return`${nU(r??e.origin??"reikšmė")} turi būti ${a} ${e.maximum.toString()} ${n?.unit}`}case"too_small":{let r=i[e.origin]??e.origin,n=t(e.origin,nP(Number(e.minimum)),e.inclusive??!1,"bigger");if(n?.verb)return`${nU(r??e.origin??"reikšmė")} ${n.verb} ${e.minimum.toString()} ${n.unit??"elementų"}`;let a=e.inclusive?"ne mažesnis kaip":"didesnis kaip";return`${nU(r??e.origin??"reikšmė")} turi būti ${a} ${e.minimum.toString()} ${n?.unit}`}case"invalid_format":{let t=e;if("starts_with"===t.format)return`Eilutė privalo prasidėti "${t.prefix}"`;if("ends_with"===t.format)return`Eilutė privalo pasibaigti "${t.suffix}"`;if("includes"===t.format)return`Eilutė privalo įtraukti "${t.includes}"`;if("regex"===t.format)return`Eilutė privalo atitikti ${t.pattern}`;return`Neteisingas ${r[t.format]??e.format}`}case"not_multiple_of":return`Skaičius privalo būti ${e.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpažint${e.keys.length>1?"i":"as"} rakt${e.keys.length>1?"ai":"as"}: ${p(e.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":default:return"Klaidinga įvestis";case"invalid_element":{let t=i[e.origin]??e.origin;return`${nU(t??e.origin??"reikšmė")} turi klaidingą įvestį`}}}};function nR(){return{localeError:nT()}}let nN=()=>{let e={string:{unit:"знаци",verb:"да имаат"},file:{unit:"бајти",verb:"да имаат"},array:{unit:"ставки",verb:"да имаат"},set:{unit:"ставки",verb:"да имаат"}};function t(t){return e[t]??null}let r={regex:"внес",email:"адреса на е-пошта",url:"URL",emoji:"емоџи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO датум и време",date:"ISO датум",time:"ISO време",duration:"ISO времетраење",ipv4:"IPv4 адреса",ipv6:"IPv6 адреса",cidrv4:"IPv4 опсег",cidrv6:"IPv6 опсег",base64:"base64-енкодирана низа",base64url:"base64url-енкодирана низа",json_string:"JSON низа",e164:"E.164 број",jwt:"JWT",template_literal:"внес"},i={nan:"NaN",number:"број",array:"низа"};return e=>{switch(e.code){case"invalid_type":{let t=i[e.expected]??e.expected,r=es(e.input),n=i[r]??r;if(/^[A-Z]/.test(e.expected))return`Грешен внес: се очекува instanceof ${e.expected}, примено ${n}`;return`Грешен внес: се очекува ${t}, примено ${n}`}case"invalid_value":if(1===e.values.length)return`Invalid input: expected ${F(e.values[0])}`;return`Грешана опција: се очекува една ${p(e.values,"|")}`;case"too_big":{let r=e.inclusive?"<=":"<",i=t(e.origin);if(i)return`Премногу голем: се очекува ${e.origin??"вредноста"} да има ${r}${e.maximum.toString()} ${i.unit??"елементи"}`;return`Премногу голем: се очекува ${e.origin??"вредноста"} да биде ${r}${e.maximum.toString()}`}case"too_small":{let r=e.inclusive?">=":">",i=t(e.origin);if(i)return`Премногу мал: се очекува ${e.origin} да има ${r}${e.minimum.toString()} ${i.unit}`;return`Премногу мал: се очекува ${e.origin} да биде ${r}${e.minimum.toString()}`}case"invalid_format":{let t=e;if("starts_with"===t.format)return`Неважечка низа: мора да започнува со "${t.prefix}"`;if("ends_with"===t.format)return`Неважечка низа: мора да завршува со "${t.suffix}"`;if("includes"===t.format)return`Неважечка низа: мора да вклучува "${t.includes}"`;if("regex"===t.format)return`Неважечка низа: мора да одгоара на патернот ${t.pattern}`;return`Invalid ${r[t.format]??e.format}`}case"not_multiple_of":return`Грешен број: мора да биде делив со ${e.divisor}`;case"unrecognized_keys":return`${e.keys.length>1?"Непрепознаени клучеви":"Непрепознаен клуч"}: ${p(e.keys,", ")}`;case"invalid_key":return`Грешен клуч во ${e.origin}`;case"invalid_union":default:return"Грешен внес";case"invalid_element":return`Грешна вредност во ${e.origin}`}}};function nD(){return{localeError:nN()}}let nB=()=>{let e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function t(t){return e[t]??null}let r={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"nombor"};return e=>{switch(e.code){case"invalid_type":{let t=i[e.expected]??e.expected,r=es(e.input),n=i[r]??r;if(/^[A-Z]/.test(e.expected))return`Input tidak sah: dijangka instanceof ${e.expected}, diterima ${n}`;return`Input tidak sah: dijangka ${t}, diterima ${n}`}case"invalid_value":if(1===e.values.length)return`Input tidak sah: dijangka ${F(e.values[0])}`;return`Pilihan tidak sah: dijangka salah satu daripada ${p(e.values,"|")}`;case"too_big":{let r=e.inclusive?"<=":"<",i=t(e.origin);if(i)return`Terlalu besar: dijangka ${e.origin??"nilai"} ${i.verb} ${r}${e.maximum.toString()} ${i.unit??"elemen"}`;return`Terlalu besar: dijangka ${e.origin??"nilai"} adalah ${r}${e.maximum.toString()}`}case"too_small":{let r=e.inclusive?">=":">",i=t(e.origin);if(i)return`Terlalu kecil: dijangka ${e.origin} ${i.verb} ${r}${e.minimum.toString()} ${i.unit}`;return`Terlalu kecil: dijangka ${e.origin} adalah ${r}${e.minimum.toString()}`}case"invalid_format":{let t=e;if("starts_with"===t.format)return`String tidak sah: mesti bermula dengan "${t.prefix}"`;if("ends_with"===t.format)return`String tidak sah: mesti berakhir dengan "${t.suffix}"`;if("includes"===t.format)return`String tidak sah: mesti mengandungi "${t.includes}"`;if("regex"===t.format)return`String tidak sah: mesti sepadan dengan corak ${t.pattern}`;return`${r[t.format]??e.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${e.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${p(e.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${e.origin}`;case"invalid_union":default:return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${e.origin}`}}};function nZ(){return{localeError:nB()}}let nC=()=>{let e={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}};function t(t){return e[t]??null}let r={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"},i={nan:"NaN",number:"getal"};return e=>{switch(e.code){case"invalid_type":{let t=i[e.expected]??e.expected,r=es(e.input),n=i[r]??r;if(/^[A-Z]/.test(e.expected))return`Ongeldige invoer: verwacht instanceof ${e.expected}, ontving ${n}`;return`Ongeldige invoer: verwacht ${t}, ontving ${n}`}case"invalid_value":if(1===e.values.length)return`Ongeldige invoer: verwacht ${F(e.values[0])}`;return`Ongeldige optie: verwacht \xe9\xe9n van ${p(e.values,"|")}`;case"too_big":{let r=e.inclusive?"<=":"<",i=t(e.origin),n="date"===e.origin?"laat":"string"===e.origin?"lang":"groot";if(i)return`Te ${n}: verwacht dat ${e.origin??"waarde"} ${r}${e.maximum.toString()} ${i.unit??"elementen"} ${i.verb}`;return`Te ${n}: verwacht dat ${e.origin??"waarde"} ${r}${e.maximum.toString()} is`}case"too_small":{let r=e.inclusive?">=":">",i=t(e.origin),n="date"===e.origin?"vroeg":"string"===e.origin?"kort":"klein";if(i)return`Te ${n}: verwacht dat ${e.origin} ${r}${e.minimum.toString()} ${i.unit} ${i.verb}`;return`Te ${n}: verwacht dat ${e.origin} ${r}${e.minimum.toString()} is`}case"invalid_format":{let t=e;if("starts_with"===t.format)return`Ongeldige tekst: moet met "${t.prefix}" beginnen`;if("ends_with"===t.format)return`Ongeldige tekst: moet op "${t.suffix}" eindigen`;if("includes"===t.format)return`Ongeldige tekst: moet "${t.includes}" bevatten`;if("regex"===t.format)return`Ongeldige tekst: moet overeenkomen met patroon ${t.pattern}`;return`Ongeldig: ${r[t.format]??e.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${e.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${e.keys.length>1?"s":""}: ${p(e.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${e.origin}`;case"invalid_union":default:return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${e.origin}`}}};function nL(){return{localeError:nC()}}let nq=()=>{let e={string:{unit:"tegn",verb:"å ha"},file:{unit:"bytes",verb:"å ha"},array:{unit:"elementer",verb:"å inneholde"},set:{unit:"elementer",verb:"å inneholde"}};function t(t){return e[t]??null}let r={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-område",ipv6:"IPv6-område",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"tall",array:"liste"};return e=>{switch(e.code){case"invalid_type":{let t=i[e.expected]??e.expected,r=es(e.input),n=i[r]??r;if(/^[A-Z]/.test(e.expected))return`Ugyldig input: forventet instanceof ${e.expected}, fikk ${n}`;return`Ugyldig input: forventet ${t}, fikk ${n}`}case"invalid_value":if(1===e.values.length)return`Ugyldig verdi: forventet ${F(e.values[0])}`;return`Ugyldig valg: forventet en av ${p(e.values,"|")}`;case"too_big":{let r=e.inclusive?"<=":"<",i=t(e.origin);if(i)return`For stor(t): forventet ${e.origin??"value"} til \xe5 ha ${r}${e.maximum.toString()} ${i.unit??"elementer"}`;return`For stor(t): forventet ${e.origin??"value"} til \xe5 ha ${r}${e.maximum.toString()}`}case"too_small":{let r=e.inclusive?">=":">",i=t(e.origin);if(i)return`For lite(n): forventet ${e.origin} til \xe5 ha ${r}${e.minimum.toString()} ${i.unit}`;return`For lite(n): forventet ${e.origin} til \xe5 ha ${r}${e.minimum.toString()}`}case"invalid_format":{let t=e;if("starts_with"===t.format)return`Ugyldig streng: m\xe5 starte med "${t.prefix}"`;if("ends_with"===t.format)return`Ugyldig streng: m\xe5 ende med "${t.suffix}"`;if("includes"===t.format)return`Ugyldig streng: m\xe5 inneholde "${t.includes}"`;if("regex"===t.format)return`Ugyldig streng: m\xe5 matche m\xf8nsteret ${t.pattern}`;return`Ugyldig ${r[t.format]??e.format}`}case"not_multiple_of":return`Ugyldig tall: m\xe5 v\xe6re et multiplum av ${e.divisor}`;case"unrecognized_keys":return`${e.keys.length>1?"Ukjente nøkler":"Ukjent nøkkel"}: ${p(e.keys,", ")}`;case"invalid_key":return`Ugyldig n\xf8kkel i ${e.origin}`;case"invalid_union":default:return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${e.origin}`}}};function nF(){return{localeError:nq()}}let nJ=()=>{let e={string:{unit:"harf",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"unsur",verb:"olmalıdır"},set:{unit:"unsur",verb:"olmalıdır"}};function t(t){return e[t]??null}let r={regex:"giren",email:"epostagâh",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO hengâmı",date:"ISO tarihi",time:"ISO zamanı",duration:"ISO müddeti",ipv4:"IPv4 nişânı",ipv6:"IPv6 nişânı",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-şifreli metin",base64url:"base64url-şifreli metin",json_string:"JSON metin",e164:"E.164 sayısı",jwt:"JWT",template_literal:"giren"},i={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return e=>{switch(e.code){case"invalid_type":{let t=i[e.expected]??e.expected,r=es(e.input),n=i[r]??r;if(/^[A-Z]/.test(e.expected))return`F\xe2sit giren: umulan instanceof ${e.expected}, alınan ${n}`;return`F\xe2sit giren: umulan ${t}, alınan ${n}`}case"invalid_value":if(1===e.values.length)return`F\xe2sit giren: umulan ${F(e.values[0])}`;return`F\xe2sit tercih: m\xfbteberler ${p(e.values,"|")}`;case"too_big":{let r=e.inclusive?"<=":"<",i=t(e.origin);if(i)return`Fazla b\xfcy\xfck: ${e.origin??"value"}, ${r}${e.maximum.toString()} ${i.unit??"elements"} sahip olmalıydı.`;return`Fazla b\xfcy\xfck: ${e.origin??"value"}, ${r}${e.maximum.toString()} olmalıydı.`}case"too_small":{let r=e.inclusive?">=":">",i=t(e.origin);if(i)return`Fazla k\xfc\xe7\xfck: ${e.origin}, ${r}${e.minimum.toString()} ${i.unit} sahip olmalıydı.`;return`Fazla k\xfc\xe7\xfck: ${e.origin}, ${r}${e.minimum.toString()} olmalıydı.`}case"invalid_format":{let t=e;if("starts_with"===t.format)return`F\xe2sit metin: "${t.prefix}" ile başlamalı.`;if("ends_with"===t.format)return`F\xe2sit metin: "${t.suffix}" ile bitmeli.`;if("includes"===t.format)return`F\xe2sit metin: "${t.includes}" ihtiv\xe2 etmeli.`;if("regex"===t.format)return`F\xe2sit metin: ${t.pattern} nakşına uymalı.`;return`F\xe2sit ${r[t.format]??e.format}`}case"not_multiple_of":return`F\xe2sit sayı: ${e.divisor} katı olmalıydı.`;case"unrecognized_keys":return`Tanınmayan anahtar ${e.keys.length>1?"s":""}: ${p(e.keys,", ")}`;case"invalid_key":return`${e.origin} i\xe7in tanınmayan anahtar var.`;case"invalid_union":return"Giren tanınamadı.";case"invalid_element":return`${e.origin} i\xe7in tanınmayan kıymet var.`;default:return"Kıymet tanınamadı."}}};function nW(){return{localeError:nJ()}}let nK=()=>{let e={string:{unit:"توکي",verb:"ولري"},file:{unit:"بایټس",verb:"ولري"},array:{unit:"توکي",verb:"ولري"},set:{unit:"توکي",verb:"ولري"}};function t(t){return e[t]??null}let r={regex:"ورودي",email:"بریښنالیک",url:"یو آر ال",emoji:"ایموجي",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"نیټه او وخت",date:"نېټه",time:"وخت",duration:"موده",ipv4:"د IPv4 پته",ipv6:"د IPv6 پته",cidrv4:"د IPv4 ساحه",cidrv6:"د IPv6 ساحه",base64:"base64-encoded متن",base64url:"base64url-encoded متن",json_string:"JSON متن",e164:"د E.164 شمېره",jwt:"JWT",template_literal:"ورودي"},i={nan:"NaN",number:"عدد",array:"ارې"};return e=>{switch(e.code){case"invalid_type":{let t=i[e.expected]??e.expected,r=es(e.input),n=i[r]??r;if(/^[A-Z]/.test(e.expected))return`ناسم ورودي: باید instanceof ${e.expected} وای, مګر ${n} ترلاسه شو`;return`ناسم ورودي: باید ${t} وای, مګر ${n} ترلاسه شو`}case"invalid_value":if(1===e.values.length)return`ناسم ورودي: باید ${F(e.values[0])} وای`;return`ناسم انتخاب: باید یو له ${p(e.values,"|")} څخه وای`;case"too_big":{let r=e.inclusive?"<=":"<",i=t(e.origin);if(i)return`ډیر لوی: ${e.origin??"ارزښت"} باید ${r}${e.maximum.toString()} ${i.unit??"عنصرونه"} ولري`;return`ډیر لوی: ${e.origin??"ارزښت"} باید ${r}${e.maximum.toString()} وي`}case"too_small":{let r=e.inclusive?">=":">",i=t(e.origin);if(i)return`ډیر کوچنی: ${e.origin} باید ${r}${e.minimum.toString()} ${i.unit} ولري`;return`ډیر کوچنی: ${e.origin} باید ${r}${e.minimum.toString()} وي`}case"invalid_format":{let t=e;if("starts_with"===t.format)return`ناسم متن: باید د "${t.prefix}" سره پیل شي`;if("ends_with"===t.format)return`ناسم متن: باید د "${t.suffix}" سره پای ته ورسيږي`;if("includes"===t.format)return`ناسم متن: باید "${t.includes}" ولري`;if("regex"===t.format)return`ناسم متن: باید د ${t.pattern} سره مطابقت ولري`;return`${r[t.format]??e.format} ناسم دی`}case"not_multiple_of":return`ناسم عدد: باید د ${e.divisor} مضرب وي`;case"unrecognized_keys":return`ناسم ${e.keys.length>1?"کلیډونه":"کلیډ"}: ${p(e.keys,", ")}`;case"invalid_key":return`ناسم کلیډ په ${e.origin} کې`;case"invalid_union":default:return"ناسمه ورودي";case"invalid_element":return`ناسم عنصر په ${e.origin} کې`}}};function nV(){return{localeError:nK()}}let nG=()=>{let e={string:{unit:"znaków",verb:"mieć"},file:{unit:"bajtów",verb:"mieć"},array:{unit:"elementów",verb:"mieć"},set:{unit:"elementów",verb:"mieć"}};function t(t){return e[t]??null}let r={regex:"wyrażenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ciąg znaków zakodowany w formacie base64",base64url:"ciąg znaków zakodowany w formacie base64url",json_string:"ciąg znaków w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wejście"},i={nan:"NaN",number:"liczba",array:"tablica"};return e=>{switch(e.code){case"invalid_type":{let t=i[e.expected]??e.expected,r=es(e.input),n=i[r]??r;if(/^[A-Z]/.test(e.expected))return`Nieprawidłowe dane wejściowe: oczekiwano instanceof ${e.expected}, otrzymano ${n}`;return`Nieprawidłowe dane wejściowe: oczekiwano ${t}, otrzymano ${n}`}case"invalid_value":if(1===e.values.length)return`Nieprawidłowe dane wejściowe: oczekiwano ${F(e.values[0])}`;return`Nieprawidłowa opcja: oczekiwano jednej z wartości ${p(e.values,"|")}`;case"too_big":{let r=e.inclusive?"<=":"<",i=t(e.origin);if(i)return`Za duża wartość: oczekiwano, że ${e.origin??"wartość"} będzie mieć ${r}${e.maximum.toString()} ${i.unit??"elementów"}`;return`Zbyt duż(y/a/e): oczekiwano, że ${e.origin??"wartość"} będzie wynosić ${r}${e.maximum.toString()}`}case"too_small":{let r=e.inclusive?">=":">",i=t(e.origin);if(i)return`Za mała wartość: oczekiwano, że ${e.origin??"wartość"} będzie mieć ${r}${e.minimum.toString()} ${i.unit??"elementów"}`;return`Zbyt mał(y/a/e): oczekiwano, że ${e.origin??"wartość"} będzie wynosić ${r}${e.minimum.toString()}`}case"invalid_format":{let t=e;if("starts_with"===t.format)return`Nieprawidłowy ciąg znak\xf3w: musi zaczynać się od "${t.prefix}"`;if("ends_with"===t.format)return`Nieprawidłowy ciąg znak\xf3w: musi kończyć się na "${t.suffix}"`;if("includes"===t.format)return`Nieprawidłowy ciąg znak\xf3w: musi zawierać "${t.includes}"`;if("regex"===t.format)return`Nieprawidłowy ciąg znak\xf3w: musi odpowiadać wzorcowi ${t.pattern}`;return`Nieprawidłow(y/a/e) ${r[t.format]??e.format}`}case"not_multiple_of":return`Nieprawidłowa liczba: musi być wielokrotnością ${e.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${e.keys.length>1?"s":""}: ${p(e.keys,", ")}`;case"invalid_key":return`Nieprawidłowy klucz w ${e.origin}`;case"invalid_union":default:return"Nieprawidłowe dane wejściowe";case"invalid_element":return`Nieprawidłowa wartość w ${e.origin}`}}};function nH(){return{localeError:nG()}}let nX=()=>{let e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function t(t){return e[t]??null}let r={regex:"padrão",email:"endereço de e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e hora ISO",date:"data ISO",time:"hora ISO",duration:"duração ISO",ipv4:"endereço IPv4",ipv6:"endereço IPv6",cidrv4:"faixa de IPv4",cidrv6:"faixa de IPv6",base64:"texto codificado em base64",base64url:"URL codificada em base64",json_string:"texto JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"},i={nan:"NaN",number:"número",null:"nulo"};return e=>{switch(e.code){case"invalid_type":{let t=i[e.expected]??e.expected,r=es(e.input),n=i[r]??r;if(/^[A-Z]/.test(e.expected))return`Tipo inv\xe1lido: esperado instanceof ${e.expected}, recebido ${n}`;return`Tipo inv\xe1lido: esperado ${t}, recebido ${n}`}case"invalid_value":if(1===e.values.length)return`Entrada inv\xe1lida: esperado ${F(e.values[0])}`;return`Op\xe7\xe3o inv\xe1lida: esperada uma das ${p(e.values,"|")}`;case"too_big":{let r=e.inclusive?"<=":"<",i=t(e.origin);if(i)return`Muito grande: esperado que ${e.origin??"valor"} tivesse ${r}${e.maximum.toString()} ${i.unit??"elementos"}`;return`Muito grande: esperado que ${e.origin??"valor"} fosse ${r}${e.maximum.toString()}`}case"too_small":{let r=e.inclusive?">=":">",i=t(e.origin);if(i)return`Muito pequeno: esperado que ${e.origin} tivesse ${r}${e.minimum.toString()} ${i.unit}`;return`Muito pequeno: esperado que ${e.origin} fosse ${r}${e.minimum.toString()}`}case"invalid_format":{let t=e;if("starts_with"===t.format)return`Texto inv\xe1lido: deve come\xe7ar com "${t.prefix}"`;if("ends_with"===t.format)return`Texto inv\xe1lido: deve terminar com "${t.suffix}"`;if("includes"===t.format)return`Texto inv\xe1lido: deve incluir "${t.includes}"`;if("regex"===t.format)return`Texto inv\xe1lido: deve corresponder ao padr\xe3o ${t.pattern}`;return`${r[t.format]??e.format} inv\xe1lido`}case"not_multiple_of":return`N\xfamero inv\xe1lido: deve ser m\xfaltiplo de ${e.divisor}`;case"unrecognized_keys":return`Chave${e.keys.length>1?"s":""} desconhecida${e.keys.length>1?"s":""}: ${p(e.keys,", ")}`;case"invalid_key":return`Chave inv\xe1lida em ${e.origin}`;case"invalid_union":return"Entrada inválida";case"invalid_element":return`Valor inv\xe1lido em ${e.origin}`;default:return"Campo inválido"}}};function nY(){return{localeError:nX()}}function nQ(e,t,r,i){let n=Math.abs(e),a=n%10,o=n%100;return o>=11&&o<=19?i:1===a?t:a>=2&&a<=4?r:i}let n0=()=>{let e={string:{unit:{one:"символ",few:"символа",many:"символов"},verb:"иметь"},file:{unit:{one:"байт",few:"байта",many:"байт"},verb:"иметь"},array:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"},set:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"}};function t(t){return e[t]??null}let r={regex:"ввод",email:"email адрес",url:"URL",emoji:"эмодзи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO дата и время",date:"ISO дата",time:"ISO время",duration:"ISO длительность",ipv4:"IPv4 адрес",ipv6:"IPv6 адрес",cidrv4:"IPv4 диапазон",cidrv6:"IPv6 диапазон",base64:"строка в формате base64",base64url:"строка в формате base64url",json_string:"JSON строка",e164:"номер E.164",jwt:"JWT",template_literal:"ввод"},i={nan:"NaN",number:"число",array:"массив"};return e=>{switch(e.code){case"invalid_type":{let t=i[e.expected]??e.expected,r=es(e.input),n=i[r]??r;if(/^[A-Z]/.test(e.expected))return`Неверный ввод: ожидалось instanceof ${e.expected}, получено ${n}`;return`Неверный ввод: ожидалось ${t}, получено ${n}`}case"invalid_value":if(1===e.values.length)return`Неверный ввод: ожидалось ${F(e.values[0])}`;return`Неверный вариант: ожидалось одно из ${p(e.values,"|")}`;case"too_big":{let r=e.inclusive?"<=":"<",i=t(e.origin);if(i){let t=nQ(Number(e.maximum),i.unit.one,i.unit.few,i.unit.many);return`Слишком большое значение: ожидалось, что ${e.origin??"значение"} будет иметь ${r}${e.maximum.toString()} ${t}`}return`Слишком большое значение: ожидалось, что ${e.origin??"значение"} будет ${r}${e.maximum.toString()}`}case"too_small":{let r=e.inclusive?">=":">",i=t(e.origin);if(i){let t=nQ(Number(e.minimum),i.unit.one,i.unit.few,i.unit.many);return`Слишком маленькое значение: ожидалось, что ${e.origin} будет иметь ${r}${e.minimum.toString()} ${t}`}return`Слишком маленькое значение: ожидалось, что ${e.origin} будет ${r}${e.minimum.toString()}`}case"invalid_format":{let t=e;if("starts_with"===t.format)return`Неверная строка: должна начинаться с "${t.prefix}"`;if("ends_with"===t.format)return`Неверная строка: должна заканчиваться на "${t.suffix}"`;if("includes"===t.format)return`Неверная строка: должна содержать "${t.includes}"`;if("regex"===t.format)return`Неверная строка: должна соответствовать шаблону ${t.pattern}`;return`Неверный ${r[t.format]??e.format}`}case"not_multiple_of":return`Неверное число: должно быть кратным ${e.divisor}`;case"unrecognized_keys":return`Нераспознанн${e.keys.length>1?"ые":"ый"} ключ${e.keys.length>1?"и":""}: ${p(e.keys,", ")}`;case"invalid_key":return`Неверный ключ в ${e.origin}`;case"invalid_union":default:return"Неверные входные данные";case"invalid_element":return`Неверное значение в ${e.origin}`}}};function n1(){return{localeError:n0()}}let n2=()=>{let e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function t(t){return e[t]??null}let r={regex:"vnos",email:"e-poštni naslov",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum in čas",date:"ISO datum",time:"ISO čas",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 številka",jwt:"JWT",template_literal:"vnos"},i={nan:"NaN",number:"število",array:"tabela"};return e=>{switch(e.code){case"invalid_type":{let t=i[e.expected]??e.expected,r=es(e.input),n=i[r]??r;if(/^[A-Z]/.test(e.expected))return`Neveljaven vnos: pričakovano instanceof ${e.expected}, prejeto ${n}`;return`Neveljaven vnos: pričakovano ${t}, prejeto ${n}`}case"invalid_value":if(1===e.values.length)return`Neveljaven vnos: pričakovano ${F(e.values[0])}`;return`Neveljavna možnost: pričakovano eno izmed ${p(e.values,"|")}`;case"too_big":{let r=e.inclusive?"<=":"<",i=t(e.origin);if(i)return`Preveliko: pričakovano, da bo ${e.origin??"vrednost"} imelo ${r}${e.maximum.toString()} ${i.unit??"elementov"}`;return`Preveliko: pričakovano, da bo ${e.origin??"vrednost"} ${r}${e.maximum.toString()}`}case"too_small":{let r=e.inclusive?">=":">",i=t(e.origin);if(i)return`Premajhno: pričakovano, da bo ${e.origin} imelo ${r}${e.minimum.toString()} ${i.unit}`;return`Premajhno: pričakovano, da bo ${e.origin} ${r}${e.minimum.toString()}`}case"invalid_format":{let t=e;if("starts_with"===t.format)return`Neveljaven niz: mora se začeti z "${t.prefix}"`;if("ends_with"===t.format)return`Neveljaven niz: mora se končati z "${t.suffix}"`;if("includes"===t.format)return`Neveljaven niz: mora vsebovati "${t.includes}"`;if("regex"===t.format)return`Neveljaven niz: mora ustrezati vzorcu ${t.pattern}`;return`Neveljaven ${r[t.format]??e.format}`}case"not_multiple_of":return`Neveljavno število: mora biti večkratnik ${e.divisor}`;case"unrecognized_keys":return`Neprepoznan${e.keys.length>1?"i ključi":" ključ"}: ${p(e.keys,", ")}`;case"invalid_key":return`Neveljaven ključ v ${e.origin}`;case"invalid_union":default:return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${e.origin}`}}};function n6(){return{localeError:n2()}}let n4=()=>{let e={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att innehålla"},set:{unit:"objekt",verb:"att innehålla"}};function t(t){return e[t]??null}let r={regex:"reguljärt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-intervall",ipv6:"IPv6-intervall",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad sträng",base64url:"base64url-kodad sträng",json_string:"JSON-sträng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"},i={nan:"NaN",number:"antal",array:"lista"};return e=>{switch(e.code){case"invalid_type":{let t=i[e.expected]??e.expected,r=es(e.input),n=i[r]??r;if(/^[A-Z]/.test(e.expected))return`Ogiltig inmatning: f\xf6rv\xe4ntat instanceof ${e.expected}, fick ${n}`;return`Ogiltig inmatning: f\xf6rv\xe4ntat ${t}, fick ${n}`}case"invalid_value":if(1===e.values.length)return`Ogiltig inmatning: f\xf6rv\xe4ntat ${F(e.values[0])}`;return`Ogiltigt val: f\xf6rv\xe4ntade en av ${p(e.values,"|")}`;case"too_big":{let r=e.inclusive?"<=":"<",i=t(e.origin);if(i)return`F\xf6r stor(t): f\xf6rv\xe4ntade ${e.origin??"värdet"} att ha ${r}${e.maximum.toString()} ${i.unit??"element"}`;return`F\xf6r stor(t): f\xf6rv\xe4ntat ${e.origin??"värdet"} att ha ${r}${e.maximum.toString()}`}case"too_small":{let r=e.inclusive?">=":">",i=t(e.origin);if(i)return`F\xf6r lite(t): f\xf6rv\xe4ntade ${e.origin??"värdet"} att ha ${r}${e.minimum.toString()} ${i.unit}`;return`F\xf6r lite(t): f\xf6rv\xe4ntade ${e.origin??"värdet"} att ha ${r}${e.minimum.toString()}`}case"invalid_format":{let t=e;if("starts_with"===t.format)return`Ogiltig str\xe4ng: m\xe5ste b\xf6rja med "${t.prefix}"`;if("ends_with"===t.format)return`Ogiltig str\xe4ng: m\xe5ste sluta med "${t.suffix}"`;if("includes"===t.format)return`Ogiltig str\xe4ng: m\xe5ste inneh\xe5lla "${t.includes}"`;if("regex"===t.format)return`Ogiltig str\xe4ng: m\xe5ste matcha m\xf6nstret "${t.pattern}"`;return`Ogiltig(t) ${r[t.format]??e.format}`}case"not_multiple_of":return`Ogiltigt tal: m\xe5ste vara en multipel av ${e.divisor}`;case"unrecognized_keys":return`${e.keys.length>1?"Okända nycklar":"Okänd nyckel"}: ${p(e.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${e.origin??"värdet"}`;case"invalid_union":default:return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xe4rde i ${e.origin??"värdet"}`}}};function n3(){return{localeError:n4()}}let n8=()=>{let e={string:{unit:"எழுத்துக்கள்",verb:"கொண்டிருக்க வேண்டும்"},file:{unit:"பைட்டுகள்",verb:"கொண்டிருக்க வேண்டும்"},array:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"},set:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"}};function t(t){return e[t]??null}let r={regex:"உள்ளீடு",email:"மின்னஞ்சல் முகவரி",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO தேதி நேரம்",date:"ISO தேதி",time:"ISO நேரம்",duration:"ISO கால அளவு",ipv4:"IPv4 முகவரி",ipv6:"IPv6 முகவரி",cidrv4:"IPv4 வரம்பு",cidrv6:"IPv6 வரம்பு",base64:"base64-encoded சரம்",base64url:"base64url-encoded சரம்",json_string:"JSON சரம்",e164:"E.164 எண்",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"எண்",array:"அணி",null:"வெறுமை"};return e=>{switch(e.code){case"invalid_type":{let t=i[e.expected]??e.expected,r=es(e.input),n=i[r]??r;if(/^[A-Z]/.test(e.expected))return`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது instanceof ${e.expected}, பெறப்பட்டது ${n}`;return`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${t}, பெறப்பட்டது ${n}`}case"invalid_value":if(1===e.values.length)return`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${F(e.values[0])}`;return`தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${p(e.values,"|")} இல் ஒன்று`;case"too_big":{let r=e.inclusive?"<=":"<",i=t(e.origin);if(i)return`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${e.origin??"மதிப்பு"} ${r}${e.maximum.toString()} ${i.unit??"உறுப்புகள்"} ஆக இருக்க வேண்டும்`;return`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${e.origin??"மதிப்பு"} ${r}${e.maximum.toString()} ஆக இருக்க வேண்டும்`}case"too_small":{let r=e.inclusive?">=":">",i=t(e.origin);if(i)return`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${e.origin} ${r}${e.minimum.toString()} ${i.unit} ஆக இருக்க வேண்டும்`;return`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${e.origin} ${r}${e.minimum.toString()} ஆக இருக்க வேண்டும்`}case"invalid_format":{let t=e;if("starts_with"===t.format)return`தவறான சரம்: "${t.prefix}" இல் தொடங்க வேண்டும்`;if("ends_with"===t.format)return`தவறான சரம்: "${t.suffix}" இல் முடிவடைய வேண்டும்`;if("includes"===t.format)return`தவறான சரம்: "${t.includes}" ஐ உள்ளடக்க வேண்டும்`;if("regex"===t.format)return`தவறான சரம்: ${t.pattern} முறைபாட்டுடன் பொருந்த வேண்டும்`;return`தவறான ${r[t.format]??e.format}`}case"not_multiple_of":return`தவறான எண்: ${e.divisor} இன் பலமாக இருக்க வேண்டும்`;case"unrecognized_keys":return`அடையாளம் தெரியாத விசை${e.keys.length>1?"கள்":""}: ${p(e.keys,", ")}`;case"invalid_key":return`${e.origin} இல் தவறான விசை`;case"invalid_union":default:return"தவறான உள்ளீடு";case"invalid_element":return`${e.origin} இல் தவறான மதிப்பு`}}};function n5(){return{localeError:n8()}}let n9=()=>{let e={string:{unit:"ตัวอักษร",verb:"ควรมี"},file:{unit:"ไบต์",verb:"ควรมี"},array:{unit:"รายการ",verb:"ควรมี"},set:{unit:"รายการ",verb:"ควรมี"}};function t(t){return e[t]??null}let r={regex:"ข้อมูลที่ป้อน",email:"ที่อยู่อีเมล",url:"URL",emoji:"อิโมจิ",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"วันที่เวลาแบบ ISO",date:"วันที่แบบ ISO",time:"เวลาแบบ ISO",duration:"ช่วงเวลาแบบ ISO",ipv4:"ที่อยู่ IPv4",ipv6:"ที่อยู่ IPv6",cidrv4:"ช่วง IP แบบ IPv4",cidrv6:"ช่วง IP แบบ IPv6",base64:"ข้อความแบบ Base64",base64url:"ข้อความแบบ Base64 สำหรับ URL",json_string:"ข้อความแบบ JSON",e164:"เบอร์โทรศัพท์ระหว่างประเทศ (E.164)",jwt:"โทเคน JWT",template_literal:"ข้อมูลที่ป้อน"},i={nan:"NaN",number:"ตัวเลข",array:"อาร์เรย์ (Array)",null:"ไม่มีค่า (null)"};return e=>{switch(e.code){case"invalid_type":{let t=i[e.expected]??e.expected,r=es(e.input),n=i[r]??r;if(/^[A-Z]/.test(e.expected))return`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น instanceof ${e.expected} แต่ได้รับ ${n}`;return`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${t} แต่ได้รับ ${n}`}case"invalid_value":if(1===e.values.length)return`ค่าไม่ถูกต้อง: ควรเป็น ${F(e.values[0])}`;return`ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${p(e.values,"|")}`;case"too_big":{let r=e.inclusive?"ไม่เกิน":"น้อยกว่า",i=t(e.origin);if(i)return`เกินกำหนด: ${e.origin??"ค่า"} ควรมี${r} ${e.maximum.toString()} ${i.unit??"รายการ"}`;return`เกินกำหนด: ${e.origin??"ค่า"} ควรมี${r} ${e.maximum.toString()}`}case"too_small":{let r=e.inclusive?"อย่างน้อย":"มากกว่า",i=t(e.origin);if(i)return`น้อยกว่ากำหนด: ${e.origin} ควรมี${r} ${e.minimum.toString()} ${i.unit}`;return`น้อยกว่ากำหนด: ${e.origin} ควรมี${r} ${e.minimum.toString()}`}case"invalid_format":{let t=e;if("starts_with"===t.format)return`รูปแบบไม่ถูกต้อง: ข้อความต้องขึ้นต้นด้วย "${t.prefix}"`;if("ends_with"===t.format)return`รูปแบบไม่ถูกต้อง: ข้อความต้องลงท้ายด้วย "${t.suffix}"`;if("includes"===t.format)return`รูปแบบไม่ถูกต้อง: ข้อความต้องมี "${t.includes}" อยู่ในข้อความ`;if("regex"===t.format)return`รูปแบบไม่ถูกต้อง: ต้องตรงกับรูปแบบที่กำหนด ${t.pattern}`;return`รูปแบบไม่ถูกต้อง: ${r[t.format]??e.format}`}case"not_multiple_of":return`ตัวเลขไม่ถูกต้อง: ต้องเป็นจำนวนที่หารด้วย ${e.divisor} ได้ลงตัว`;case"unrecognized_keys":return`พบคีย์ที่ไม่รู้จัก: ${p(e.keys,", ")}`;case"invalid_key":return`คีย์ไม่ถูกต้องใน ${e.origin}`;case"invalid_union":return"ข้อมูลไม่ถูกต้อง: ไม่ตรงกับรูปแบบยูเนียนที่กำหนดไว้";case"invalid_element":return`ข้อมูลไม่ถูกต้องใน ${e.origin}`;default:return"ข้อมูลไม่ถูกต้อง"}}};function n7(){return{localeError:n9()}}let ae=()=>{let e={string:{unit:"karakter",verb:"olmalı"},file:{unit:"bayt",verb:"olmalı"},array:{unit:"öğe",verb:"olmalı"},set:{unit:"öğe",verb:"olmalı"}};function t(t){return e[t]??null}let r={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO süre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aralığı",cidrv6:"IPv6 aralığı",base64:"base64 ile şifrelenmiş metin",base64url:"base64url ile şifrelenmiş metin",json_string:"JSON dizesi",e164:"E.164 sayısı",jwt:"JWT",template_literal:"Şablon dizesi"},i={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":{let t=i[e.expected]??e.expected,r=es(e.input),n=i[r]??r;if(/^[A-Z]/.test(e.expected))return`Ge\xe7ersiz değer: beklenen instanceof ${e.expected}, alınan ${n}`;return`Ge\xe7ersiz değer: beklenen ${t}, alınan ${n}`}case"invalid_value":if(1===e.values.length)return`Ge\xe7ersiz değer: beklenen ${F(e.values[0])}`;return`Ge\xe7ersiz se\xe7enek: aşağıdakilerden biri olmalı: ${p(e.values,"|")}`;case"too_big":{let r=e.inclusive?"<=":"<",i=t(e.origin);if(i)return`\xc7ok b\xfcy\xfck: beklenen ${e.origin??"değer"} ${r}${e.maximum.toString()} ${i.unit??"öğe"}`;return`\xc7ok b\xfcy\xfck: beklenen ${e.origin??"değer"} ${r}${e.maximum.toString()}`}case"too_small":{let r=e.inclusive?">=":">",i=t(e.origin);if(i)return`\xc7ok k\xfc\xe7\xfck: beklenen ${e.origin} ${r}${e.minimum.toString()} ${i.unit}`;return`\xc7ok k\xfc\xe7\xfck: beklenen ${e.origin} ${r}${e.minimum.toString()}`}case"invalid_format":{let t=e;if("starts_with"===t.format)return`Ge\xe7ersiz metin: "${t.prefix}" ile başlamalı`;if("ends_with"===t.format)return`Ge\xe7ersiz metin: "${t.suffix}" ile bitmeli`;if("includes"===t.format)return`Ge\xe7ersiz metin: "${t.includes}" i\xe7ermeli`;if("regex"===t.format)return`Ge\xe7ersiz metin: ${t.pattern} desenine uymalı`;return`Ge\xe7ersiz ${r[t.format]??e.format}`}case"not_multiple_of":return`Ge\xe7ersiz sayı: ${e.divisor} ile tam b\xf6l\xfcnebilmeli`;case"unrecognized_keys":return`Tanınmayan anahtar${e.keys.length>1?"lar":""}: ${p(e.keys,", ")}`;case"invalid_key":return`${e.origin} i\xe7inde ge\xe7ersiz anahtar`;case"invalid_union":default:return"Geçersiz değer";case"invalid_element":return`${e.origin} i\xe7inde ge\xe7ersiz değer`}}};function at(){return{localeError:ae()}}let ar=()=>{let e={string:{unit:"символів",verb:"матиме"},file:{unit:"байтів",verb:"матиме"},array:{unit:"елементів",verb:"матиме"},set:{unit:"елементів",verb:"матиме"}};function t(t){return e[t]??null}let r={regex:"вхідні дані",email:"адреса електронної пошти",url:"URL",emoji:"емодзі",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"дата та час ISO",date:"дата ISO",time:"час ISO",duration:"тривалість ISO",ipv4:"адреса IPv4",ipv6:"адреса IPv6",cidrv4:"діапазон IPv4",cidrv6:"діапазон IPv6",base64:"рядок у кодуванні base64",base64url:"рядок у кодуванні base64url",json_string:"рядок JSON",e164:"номер E.164",jwt:"JWT",template_literal:"вхідні дані"},i={nan:"NaN",number:"число",array:"масив"};return e=>{switch(e.code){case"invalid_type":{let t=i[e.expected]??e.expected,r=es(e.input),n=i[r]??r;if(/^[A-Z]/.test(e.expected))return`Неправильні вхідні дані: очікується instanceof ${e.expected}, отримано ${n}`;return`Неправильні вхідні дані: очікується ${t}, отримано ${n}`}case"invalid_value":if(1===e.values.length)return`Неправильні вхідні дані: очікується ${F(e.values[0])}`;return`Неправильна опція: очікується одне з ${p(e.values,"|")}`;case"too_big":{let r=e.inclusive?"<=":"<",i=t(e.origin);if(i)return`Занадто велике: очікується, що ${e.origin??"значення"} ${i.verb} ${r}${e.maximum.toString()} ${i.unit??"елементів"}`;return`Занадто велике: очікується, що ${e.origin??"значення"} буде ${r}${e.maximum.toString()}`}case"too_small":{let r=e.inclusive?">=":">",i=t(e.origin);if(i)return`Занадто мале: очікується, що ${e.origin} ${i.verb} ${r}${e.minimum.toString()} ${i.unit}`;return`Занадто мале: очікується, що ${e.origin} буде ${r}${e.minimum.toString()}`}case"invalid_format":{let t=e;if("starts_with"===t.format)return`Неправильний рядок: повинен починатися з "${t.prefix}"`;if("ends_with"===t.format)return`Неправильний рядок: повинен закінчуватися на "${t.suffix}"`;if("includes"===t.format)return`Неправильний рядок: повинен містити "${t.includes}"`;if("regex"===t.format)return`Неправильний рядок: повинен відповідати шаблону ${t.pattern}`;return`Неправильний ${r[t.format]??e.format}`}case"not_multiple_of":return`Неправильне число: повинно бути кратним ${e.divisor}`;case"unrecognized_keys":return`Нерозпізнаний ключ${e.keys.length>1?"і":""}: ${p(e.keys,", ")}`;case"invalid_key":return`Неправильний ключ у ${e.origin}`;case"invalid_union":default:return"Неправильні вхідні дані";case"invalid_element":return`Неправильне значення у ${e.origin}`}}};function ai(){return{localeError:ar()}}function an(){return ai()}let aa=()=>{let e={string:{unit:"حروف",verb:"ہونا"},file:{unit:"بائٹس",verb:"ہونا"},array:{unit:"آئٹمز",verb:"ہونا"},set:{unit:"آئٹمز",verb:"ہونا"}};function t(t){return e[t]??null}let r={regex:"ان پٹ",email:"ای میل ایڈریس",url:"یو آر ایل",emoji:"ایموجی",uuid:"یو یو آئی ڈی",uuidv4:"یو یو آئی ڈی وی 4",uuidv6:"یو یو آئی ڈی وی 6",nanoid:"نینو آئی ڈی",guid:"جی یو آئی ڈی",cuid:"سی یو آئی ڈی",cuid2:"سی یو آئی ڈی 2",ulid:"یو ایل آئی ڈی",xid:"ایکس آئی ڈی",ksuid:"کے ایس یو آئی ڈی",datetime:"آئی ایس او ڈیٹ ٹائم",date:"آئی ایس او تاریخ",time:"آئی ایس او وقت",duration:"آئی ایس او مدت",ipv4:"آئی پی وی 4 ایڈریس",ipv6:"آئی پی وی 6 ایڈریس",cidrv4:"آئی پی وی 4 رینج",cidrv6:"آئی پی وی 6 رینج",base64:"بیس 64 ان کوڈڈ سٹرنگ",base64url:"بیس 64 یو آر ایل ان کوڈڈ سٹرنگ",json_string:"جے ایس او این سٹرنگ",e164:"ای 164 نمبر",jwt:"جے ڈبلیو ٹی",template_literal:"ان پٹ"},i={nan:"NaN",number:"نمبر",array:"آرے",null:"نل"};return e=>{switch(e.code){case"invalid_type":{let t=i[e.expected]??e.expected,r=es(e.input),n=i[r]??r;if(/^[A-Z]/.test(e.expected))return`غلط ان پٹ: instanceof ${e.expected} متوقع تھا، ${n} موصول ہوا`;return`غلط ان پٹ: ${t} متوقع تھا، ${n} موصول ہوا`}case"invalid_value":if(1===e.values.length)return`غلط ان پٹ: ${F(e.values[0])} متوقع تھا`;return`غلط آپشن: ${p(e.values,"|")} میں سے ایک متوقع تھا`;case"too_big":{let r=e.inclusive?"<=":"<",i=t(e.origin);if(i)return`بہت بڑا: ${e.origin??"ویلیو"} کے ${r}${e.maximum.toString()} ${i.unit??"عناصر"} ہونے متوقع تھے`;return`بہت بڑا: ${e.origin??"ویلیو"} کا ${r}${e.maximum.toString()} ہونا متوقع تھا`}case"too_small":{let r=e.inclusive?">=":">",i=t(e.origin);if(i)return`بہت چھوٹا: ${e.origin} کے ${r}${e.minimum.toString()} ${i.unit} ہونے متوقع تھے`;return`بہت چھوٹا: ${e.origin} کا ${r}${e.minimum.toString()} ہونا متوقع تھا`}case"invalid_format":{let t=e;if("starts_with"===t.format)return`غلط سٹرنگ: "${t.prefix}" سے شروع ہونا چاہیے`;if("ends_with"===t.format)return`غلط سٹرنگ: "${t.suffix}" پر ختم ہونا چاہیے`;if("includes"===t.format)return`غلط سٹرنگ: "${t.includes}" شامل ہونا چاہیے`;if("regex"===t.format)return`غلط سٹرنگ: پیٹرن ${t.pattern} سے میچ ہونا چاہیے`;return`غلط ${r[t.format]??e.format}`}case"not_multiple_of":return`غلط نمبر: ${e.divisor} کا مضاعف ہونا چاہیے`;case"unrecognized_keys":return`غیر تسلیم شدہ کی${e.keys.length>1?"ز":""}: ${p(e.keys,"، ")}`;case"invalid_key":return`${e.origin} میں غلط کی`;case"invalid_union":default:return"غلط ان پٹ";case"invalid_element":return`${e.origin} میں غلط ویلیو`}}};function ao(){return{localeError:aa()}}let as=()=>{let e={string:{unit:"belgi",verb:"bo‘lishi kerak"},file:{unit:"bayt",verb:"bo‘lishi kerak"},array:{unit:"element",verb:"bo‘lishi kerak"},set:{unit:"element",verb:"bo‘lishi kerak"}};function t(t){return e[t]??null}let r={regex:"kirish",email:"elektron pochta manzili",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO sana va vaqti",date:"ISO sana",time:"ISO vaqt",duration:"ISO davomiylik",ipv4:"IPv4 manzil",ipv6:"IPv6 manzil",mac:"MAC manzil",cidrv4:"IPv4 diapazon",cidrv6:"IPv6 diapazon",base64:"base64 kodlangan satr",base64url:"base64url kodlangan satr",json_string:"JSON satr",e164:"E.164 raqam",jwt:"JWT",template_literal:"kirish"},i={nan:"NaN",number:"raqam",array:"massiv"};return e=>{switch(e.code){case"invalid_type":{let t=i[e.expected]??e.expected,r=es(e.input),n=i[r]??r;if(/^[A-Z]/.test(e.expected))return`Noto‘g‘ri kirish: kutilgan instanceof ${e.expected}, qabul qilingan ${n}`;return`Noto‘g‘ri kirish: kutilgan ${t}, qabul qilingan ${n}`}case"invalid_value":if(1===e.values.length)return`Noto‘g‘ri kirish: kutilgan ${F(e.values[0])}`;return`Noto‘g‘ri variant: quyidagilardan biri kutilgan ${p(e.values,"|")}`;case"too_big":{let r=e.inclusive?"<=":"<",i=t(e.origin);if(i)return`Juda katta: kutilgan ${e.origin??"qiymat"} ${r}${e.maximum.toString()} ${i.unit} ${i.verb}`;return`Juda katta: kutilgan ${e.origin??"qiymat"} ${r}${e.maximum.toString()}`}case"too_small":{let r=e.inclusive?">=":">",i=t(e.origin);if(i)return`Juda kichik: kutilgan ${e.origin} ${r}${e.minimum.toString()} ${i.unit} ${i.verb}`;return`Juda kichik: kutilgan ${e.origin} ${r}${e.minimum.toString()}`}case"invalid_format":{let t=e;if("starts_with"===t.format)return`Noto‘g‘ri satr: "${t.prefix}" bilan boshlanishi kerak`;if("ends_with"===t.format)return`Noto‘g‘ri satr: "${t.suffix}" bilan tugashi kerak`;if("includes"===t.format)return`Noto‘g‘ri satr: "${t.includes}" ni o‘z ichiga olishi kerak`;if("regex"===t.format)return`Noto‘g‘ri satr: ${t.pattern} shabloniga mos kelishi kerak`;return`Noto‘g‘ri ${r[t.format]??e.format}`}case"not_multiple_of":return`Noto‘g‘ri raqam: ${e.divisor} ning karralisi bo‘lishi kerak`;case"unrecognized_keys":return`Noma’lum kalit${e.keys.length>1?"lar":""}: ${p(e.keys,", ")}`;case"invalid_key":return`${e.origin} dagi kalit noto‘g‘ri`;case"invalid_union":default:return"Noto‘g‘ri kirish";case"invalid_element":return`${e.origin} da noto‘g‘ri qiymat`}}};function au(){return{localeError:as()}}let af=()=>{let e={string:{unit:"ký tự",verb:"có"},file:{unit:"byte",verb:"có"},array:{unit:"phần tử",verb:"có"},set:{unit:"phần tử",verb:"có"}};function t(t){return e[t]??null}let r={regex:"đầu vào",email:"địa chỉ email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ngày giờ ISO",date:"ngày ISO",time:"giờ ISO",duration:"khoảng thời gian ISO",ipv4:"địa chỉ IPv4",ipv6:"địa chỉ IPv6",cidrv4:"dải IPv4",cidrv6:"dải IPv6",base64:"chuỗi mã hóa base64",base64url:"chuỗi mã hóa base64url",json_string:"chuỗi JSON",e164:"số E.164",jwt:"JWT",template_literal:"đầu vào"},i={nan:"NaN",number:"số",array:"mảng"};return e=>{switch(e.code){case"invalid_type":{let t=i[e.expected]??e.expected,r=es(e.input),n=i[r]??r;if(/^[A-Z]/.test(e.expected))return`Đầu v\xe0o kh\xf4ng hợp lệ: mong đợi instanceof ${e.expected}, nhận được ${n}`;return`Đầu v\xe0o kh\xf4ng hợp lệ: mong đợi ${t}, nhận được ${n}`}case"invalid_value":if(1===e.values.length)return`Đầu v\xe0o kh\xf4ng hợp lệ: mong đợi ${F(e.values[0])}`;return`T\xf9y chọn kh\xf4ng hợp lệ: mong đợi một trong c\xe1c gi\xe1 trị ${p(e.values,"|")}`;case"too_big":{let r=e.inclusive?"<=":"<",i=t(e.origin);if(i)return`Qu\xe1 lớn: mong đợi ${e.origin??"giá trị"} ${i.verb} ${r}${e.maximum.toString()} ${i.unit??"phần tử"}`;return`Qu\xe1 lớn: mong đợi ${e.origin??"giá trị"} ${r}${e.maximum.toString()}`}case"too_small":{let r=e.inclusive?">=":">",i=t(e.origin);if(i)return`Qu\xe1 nhỏ: mong đợi ${e.origin} ${i.verb} ${r}${e.minimum.toString()} ${i.unit}`;return`Qu\xe1 nhỏ: mong đợi ${e.origin} ${r}${e.minimum.toString()}`}case"invalid_format":{let t=e;if("starts_with"===t.format)return`Chuỗi kh\xf4ng hợp lệ: phải bắt đầu bằng "${t.prefix}"`;if("ends_with"===t.format)return`Chuỗi kh\xf4ng hợp lệ: phải kết th\xfac bằng "${t.suffix}"`;if("includes"===t.format)return`Chuỗi kh\xf4ng hợp lệ: phải bao gồm "${t.includes}"`;if("regex"===t.format)return`Chuỗi kh\xf4ng hợp lệ: phải khớp với mẫu ${t.pattern}`;return`${r[t.format]??e.format} kh\xf4ng hợp lệ`}case"not_multiple_of":return`Số kh\xf4ng hợp lệ: phải l\xe0 bội số của ${e.divisor}`;case"unrecognized_keys":return`Kh\xf3a kh\xf4ng được nhận dạng: ${p(e.keys,", ")}`;case"invalid_key":return`Kh\xf3a kh\xf4ng hợp lệ trong ${e.origin}`;case"invalid_union":default:return"Đầu vào không hợp lệ";case"invalid_element":return`Gi\xe1 trị kh\xf4ng hợp lệ trong ${e.origin}`}}};function ac(){return{localeError:af()}}let ad=()=>{let e={string:{unit:"字符",verb:"包含"},file:{unit:"字节",verb:"包含"},array:{unit:"项",verb:"包含"},set:{unit:"项",verb:"包含"}};function t(t){return e[t]??null}let r={regex:"输入",email:"电子邮件",url:"URL",emoji:"表情符号",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO日期时间",date:"ISO日期",time:"ISO时间",duration:"ISO时长",ipv4:"IPv4地址",ipv6:"IPv6地址",cidrv4:"IPv4网段",cidrv6:"IPv6网段",base64:"base64编码字符串",base64url:"base64url编码字符串",json_string:"JSON字符串",e164:"E.164号码",jwt:"JWT",template_literal:"输入"},i={nan:"NaN",number:"数字",array:"数组",null:"空值(null)"};return e=>{switch(e.code){case"invalid_type":{let t=i[e.expected]??e.expected,r=es(e.input),n=i[r]??r;if(/^[A-Z]/.test(e.expected))return`无效输入:期望 instanceof ${e.expected},实际接收 ${n}`;return`无效输入:期望 ${t},实际接收 ${n}`}case"invalid_value":if(1===e.values.length)return`无效输入:期望 ${F(e.values[0])}`;return`无效选项:期望以下之一 ${p(e.values,"|")}`;case"too_big":{let r=e.inclusive?"<=":"<",i=t(e.origin);if(i)return`数值过大:期望 ${e.origin??"值"} ${r}${e.maximum.toString()} ${i.unit??"个元素"}`;return`数值过大:期望 ${e.origin??"值"} ${r}${e.maximum.toString()}`}case"too_small":{let r=e.inclusive?">=":">",i=t(e.origin);if(i)return`数值过小:期望 ${e.origin} ${r}${e.minimum.toString()} ${i.unit}`;return`数值过小:期望 ${e.origin} ${r}${e.minimum.toString()}`}case"invalid_format":{let t=e;if("starts_with"===t.format)return`无效字符串:必须以 "${t.prefix}" 开头`;if("ends_with"===t.format)return`无效字符串:必须以 "${t.suffix}" 结尾`;if("includes"===t.format)return`无效字符串:必须包含 "${t.includes}"`;if("regex"===t.format)return`无效字符串:必须满足正则表达式 ${t.pattern}`;return`无效${r[t.format]??e.format}`}case"not_multiple_of":return`无效数字:必须是 ${e.divisor} 的倍数`;case"unrecognized_keys":return`出现未知的键(key): ${p(e.keys,", ")}`;case"invalid_key":return`${e.origin} 中的键(key)无效`;case"invalid_union":default:return"无效输入";case"invalid_element":return`${e.origin} 中包含无效值(value)`}}};function al(){return{localeError:ad()}}let ah=()=>{let e={string:{unit:"字元",verb:"擁有"},file:{unit:"位元組",verb:"擁有"},array:{unit:"項目",verb:"擁有"},set:{unit:"項目",verb:"擁有"}};function t(t){return e[t]??null}let r={regex:"輸入",email:"郵件地址",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO 日期時間",date:"ISO 日期",time:"ISO 時間",duration:"ISO 期間",ipv4:"IPv4 位址",ipv6:"IPv6 位址",cidrv4:"IPv4 範圍",cidrv6:"IPv6 範圍",base64:"base64 編碼字串",base64url:"base64url 編碼字串",json_string:"JSON 字串",e164:"E.164 數值",jwt:"JWT",template_literal:"輸入"},i={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":{let t=i[e.expected]??e.expected,r=es(e.input),n=i[r]??r;if(/^[A-Z]/.test(e.expected))return`無效的輸入值:預期為 instanceof ${e.expected},但收到 ${n}`;return`無效的輸入值:預期為 ${t},但收到 ${n}`}case"invalid_value":if(1===e.values.length)return`無效的輸入值:預期為 ${F(e.values[0])}`;return`無效的選項:預期為以下其中之一 ${p(e.values,"|")}`;case"too_big":{let r=e.inclusive?"<=":"<",i=t(e.origin);if(i)return`數值過大:預期 ${e.origin??"值"} 應為 ${r}${e.maximum.toString()} ${i.unit??"個元素"}`;return`數值過大:預期 ${e.origin??"值"} 應為 ${r}${e.maximum.toString()}`}case"too_small":{let r=e.inclusive?">=":">",i=t(e.origin);if(i)return`數值過小:預期 ${e.origin} 應為 ${r}${e.minimum.toString()} ${i.unit}`;return`數值過小:預期 ${e.origin} 應為 ${r}${e.minimum.toString()}`}case"invalid_format":{let t=e;if("starts_with"===t.format)return`無效的字串:必須以 "${t.prefix}" 開頭`;if("ends_with"===t.format)return`無效的字串:必須以 "${t.suffix}" 結尾`;if("includes"===t.format)return`無效的字串:必須包含 "${t.includes}"`;if("regex"===t.format)return`無效的字串:必須符合格式 ${t.pattern}`;return`無效的 ${r[t.format]??e.format}`}case"not_multiple_of":return`無效的數字:必須為 ${e.divisor} 的倍數`;case"unrecognized_keys":return`無法識別的鍵值${e.keys.length>1?"們":""}:${p(e.keys,"、")}`;case"invalid_key":return`${e.origin} 中有無效的鍵值`;case"invalid_union":default:return"無效的輸入值";case"invalid_element":return`${e.origin} 中有無效的值`}}};function ap(){return{localeError:ah()}}let am=()=>{let e={string:{unit:"àmi",verb:"ní"},file:{unit:"bytes",verb:"ní"},array:{unit:"nkan",verb:"ní"},set:{unit:"nkan",verb:"ní"}};function t(t){return e[t]??null}let r={regex:"ẹ̀rọ ìbáwọlé",email:"àdírẹ́sì ìmẹ́lì",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"àkókò ISO",date:"ọjọ́ ISO",time:"àkókò ISO",duration:"àkókò tó pé ISO",ipv4:"àdírẹ́sì IPv4",ipv6:"àdírẹ́sì IPv6",cidrv4:"àgbègbè IPv4",cidrv6:"àgbègbè IPv6",base64:"ọ̀rọ̀ tí a kọ́ ní base64",base64url:"ọ̀rọ̀ base64url",json_string:"ọ̀rọ̀ JSON",e164:"nọ́mbà E.164",jwt:"JWT",template_literal:"ẹ̀rọ ìbáwọlé"},i={nan:"NaN",number:"nọ́mbà",array:"akopọ"};return e=>{switch(e.code){case"invalid_type":{let t=i[e.expected]??e.expected,r=es(e.input),n=i[r]??r;if(/^[A-Z]/.test(e.expected))return`\xccb\xe1wọl\xe9 aṣ\xecṣe: a n\xed l\xe1ti fi instanceof ${e.expected}, \xe0mọ̀ a r\xed ${n}`;return`\xccb\xe1wọl\xe9 aṣ\xecṣe: a n\xed l\xe1ti fi ${t}, \xe0mọ̀ a r\xed ${n}`}case"invalid_value":if(1===e.values.length)return`\xccb\xe1wọl\xe9 aṣ\xecṣe: a n\xed l\xe1ti fi ${F(e.values[0])}`;return`\xc0ṣ\xe0y\xe0n aṣ\xecṣe: yan ọ̀kan l\xe1ra ${p(e.values,"|")}`;case"too_big":{let r=e.inclusive?"<=":"<",i=t(e.origin);if(i)return`T\xf3 pọ̀ j\xf9: a n\xed l\xe1ti jẹ́ p\xe9 ${e.origin??"iye"} ${i.verb} ${r}${e.maximum} ${i.unit}`;return`T\xf3 pọ̀ j\xf9: a n\xed l\xe1ti jẹ́ ${r}${e.maximum}`}case"too_small":{let r=e.inclusive?">=":">",i=t(e.origin);if(i)return`K\xe9r\xe9 ju: a n\xed l\xe1ti jẹ́ p\xe9 ${e.origin} ${i.verb} ${r}${e.minimum} ${i.unit}`;return`K\xe9r\xe9 ju: a n\xed l\xe1ti jẹ́ ${r}${e.minimum}`}case"invalid_format":{let t=e;if("starts_with"===t.format)return`Ọ̀rọ̀ aṣ\xecṣe: gbọ́dọ̀ bẹ̀rẹ̀ pẹ̀l\xfa "${t.prefix}"`;if("ends_with"===t.format)return`Ọ̀rọ̀ aṣ\xecṣe: gbọ́dọ̀ par\xed pẹ̀l\xfa "${t.suffix}"`;if("includes"===t.format)return`Ọ̀rọ̀ aṣ\xecṣe: gbọ́dọ̀ n\xed "${t.includes}"`;if("regex"===t.format)return`Ọ̀rọ̀ aṣ\xecṣe: gbọ́dọ̀ b\xe1 \xe0pẹẹrẹ mu ${t.pattern}`;return`Aṣ\xecṣe: ${r[t.format]??e.format}`}case"not_multiple_of":return`Nọ́mb\xe0 aṣ\xecṣe: gbọ́dọ̀ jẹ́ \xe8y\xe0 p\xedp\xedn ti ${e.divisor}`;case"unrecognized_keys":return`Bọt\xecn\xec \xe0\xecmọ̀: ${p(e.keys,", ")}`;case"invalid_key":return`Bọt\xecn\xec aṣ\xecṣe n\xedn\xfa ${e.origin}`;case"invalid_union":default:return"Ìbáwọlé aṣìṣe";case"invalid_element":return`Iye aṣ\xecṣe n\xedn\xfa ${e.origin}`}}};function ab(){return{localeError:am()}}e.s([],10429);let ag=Symbol("ZodOutput"),av=Symbol("ZodInput");class ay{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let r=t[0];return this._map.set(e,r),r&&"object"==typeof r&&"id"in r&&this._idmap.set(r.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&"object"==typeof t&&"id"in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let r={...this.get(t)??{}};delete r.id;let i={...r,...this._map.get(e)};return Object.keys(i).length?i:void 0}return this._map.get(e)}has(e){return this._map.has(e)}}function a_(){return new ay}(s8=globalThis).__zod_globalRegistry??(s8.__zod_globalRegistry=a_());let ax=globalThis.__zod_globalRegistry;function aw(e,t){return new e({type:"string",...L(t)})}function aS(e,t){return new e({type:"string",coerce:!0,...L(t)})}function ak(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...L(t)})}function a$(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...L(t)})}function aI(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...L(t)})}function aM(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...L(t)})}function aE(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...L(t)})}function aA(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...L(t)})}function aO(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...L(t)})}function aj(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...L(t)})}function az(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...L(t)})}function aU(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...L(t)})}function aP(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...L(t)})}function aT(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...L(t)})}function aR(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...L(t)})}function aN(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...L(t)})}function aD(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...L(t)})}function aB(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...L(t)})}function aZ(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...L(t)})}function aC(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...L(t)})}function aL(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...L(t)})}function aq(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...L(t)})}function aF(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...L(t)})}function aJ(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...L(t)})}function aW(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...L(t)})}e.s(["$ZodRegistry",0,ay,"$input",0,av,"$output",0,ag,"globalRegistry",0,ax,"registry",0,a_],9402);let aK={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function aV(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...L(t)})}function aG(e,t){return new e({type:"string",format:"date",check:"string_format",...L(t)})}function aH(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...L(t)})}function aX(e,t){return new e({type:"string",format:"duration",check:"string_format",...L(t)})}function aY(e,t){return new e({type:"number",checks:[],...L(t)})}function aQ(e,t){return new e({type:"number",coerce:!0,checks:[],...L(t)})}function a0(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...L(t)})}function a1(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...L(t)})}function a2(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...L(t)})}function a6(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...L(t)})}function a4(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...L(t)})}function a3(e,t){return new e({type:"boolean",...L(t)})}function a8(e,t){return new e({type:"boolean",coerce:!0,...L(t)})}function a5(e,t){return new e({type:"bigint",...L(t)})}function a9(e,t){return new e({type:"bigint",coerce:!0,...L(t)})}function a7(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...L(t)})}function oe(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...L(t)})}function ot(e,t){return new e({type:"symbol",...L(t)})}function or(e,t){return new e({type:"undefined",...L(t)})}function oi(e,t){return new e({type:"null",...L(t)})}function on(e){return new e({type:"any"})}function oa(e){return new e({type:"unknown"})}function oo(e,t){return new e({type:"never",...L(t)})}function os(e,t){return new e({type:"void",...L(t)})}function ou(e,t){return new e({type:"date",...L(t)})}function of(e,t){return new e({type:"date",coerce:!0,...L(t)})}function oc(e,t){return new e({type:"nan",...L(t)})}function od(e,t){return new tH({check:"less_than",...L(t),value:e,inclusive:!1})}function ol(e,t){return new tH({check:"less_than",...L(t),value:e,inclusive:!0})}function oh(e,t){return new tX({check:"greater_than",...L(t),value:e,inclusive:!1})}function op(e,t){return new tX({check:"greater_than",...L(t),value:e,inclusive:!0})}function om(e){return oh(0,e)}function ob(e){return od(0,e)}function og(e){return ol(0,e)}function ov(e){return op(0,e)}function oy(e,t){return new tY({check:"multiple_of",...L(t),value:e})}function o_(e,t){return new t1({check:"max_size",...L(t),maximum:e})}function ox(e,t){return new t2({check:"min_size",...L(t),minimum:e})}function ow(e,t){return new t6({check:"size_equals",...L(t),size:e})}function oS(e,t){return new t4({check:"max_length",...L(t),maximum:e})}function ok(e,t){return new t3({check:"min_length",...L(t),minimum:e})}function o$(e,t){return new t8({check:"length_equals",...L(t),length:e})}function oI(e,t){return new t9({check:"string_format",format:"regex",...L(t),pattern:e})}function oM(e){return new t7({check:"string_format",format:"lowercase",...L(e)})}function oE(e){return new re({check:"string_format",format:"uppercase",...L(e)})}function oA(e,t){return new rt({check:"string_format",format:"includes",...L(t),includes:e})}function oO(e,t){return new rr({check:"string_format",format:"starts_with",...L(t),prefix:e})}function oj(e,t){return new ri({check:"string_format",format:"ends_with",...L(t),suffix:e})}function oz(e,t,r){return new ra({check:"property",property:e,schema:t,...L(r)})}function oU(e,t){return new ro({check:"mime_type",mime:e,...L(t)})}function oP(e){return new rs({check:"overwrite",tx:e})}function oT(e){return oP(t=>t.normalize(e))}function oR(){return oP(e=>e.trim())}function oN(){return oP(e=>e.toLowerCase())}function oD(){return oP(e=>e.toUpperCase())}function oB(){return oP(e=>O(e))}function oZ(e,t,r){return new e({type:"array",element:t,...L(r)})}function oC(e,t,r){return new e({type:"union",options:t,...L(r)})}function oL(e,t,r){return new e({type:"union",options:t,inclusive:!1,...L(r)})}function oq(e,t,r,i){return new e({type:"union",options:r,discriminator:t,...L(i)})}function oF(e,t,r){return new e({type:"intersection",left:t,right:r})}function oJ(e,t,r,i){let n=r instanceof rc,a=n?i:r;return new e({type:"tuple",items:t,rest:n?r:null,...L(a)})}function oW(e,t,r,i){return new e({type:"record",keyType:t,valueType:r,...L(i)})}function oK(e,t,r,i){return new e({type:"map",keyType:t,valueType:r,...L(i)})}function oV(e,t,r){return new e({type:"set",valueType:t,...L(r)})}function oG(e,t,r){return new e({type:"enum",entries:Array.isArray(t)?Object.fromEntries(t.map(e=>[e,e])):t,...L(r)})}function oH(e,t,r){return new e({type:"enum",entries:t,...L(r)})}function oX(e,t,r){return new e({type:"literal",values:Array.isArray(t)?t:[t],...L(r)})}function oY(e,t){return new e({type:"file",...L(t)})}function oQ(e,t){return new e({type:"transform",transform:t})}function o0(e,t){return new e({type:"optional",innerType:t})}function o1(e,t){return new e({type:"nullable",innerType:t})}function o2(e,t,r){return new e({type:"default",innerType:t,get defaultValue(){return"function"==typeof r?r():T(r)}})}function o6(e,t,r){return new e({type:"nonoptional",innerType:t,...L(r)})}function o4(e,t){return new e({type:"success",innerType:t})}function o3(e,t,r){return new e({type:"catch",innerType:t,catchValue:"function"==typeof r?r:()=>r})}function o8(e,t,r){return new e({type:"pipe",in:t,out:r})}function o5(e,t){return new e({type:"readonly",innerType:t})}function o9(e,t,r){return new e({type:"template_literal",parts:t,...L(r)})}function o7(e,t){return new e({type:"lazy",getter:t})}function se(e,t){return new e({type:"promise",innerType:t})}function st(e,t,r){let i=L(r);return i.abort??(i.abort=!0),new e({type:"custom",check:"custom",fn:t,...i})}function sr(e,t,r){return new e({type:"custom",check:"custom",fn:t,...L(r)})}function si(e){let t=sn(r=>(r.addIssue=e=>{if("string"==typeof e)r.issues.push(eu(e,r.value,t._zod.def));else{let i=e;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=r.value),i.inst??(i.inst=t),i.continue??(i.continue=!t._zod.def.abort),r.issues.push(eu(i))}},e(r.value,r)));return t}function sn(e,t){let r=new tV({check:"custom",...L(t)});return r._zod.check=e,r}function sa(e){let t=new tV({check:"describe"});return t._zod.onattach=[t=>{let r=ax.get(t)??{};ax.add(t,{...r,description:e})}],t._zod.check=()=>{},t}function so(e){let t=new tV({check:"meta"});return t._zod.onattach=[t=>{let r=ax.get(t)??{};ax.add(t,{...r,...e})}],t._zod.check=()=>{},t}function ss(e,t){let r=L(t),i=r.truthy??["true","1","yes","on","y","enabled"],n=r.falsy??["false","0","no","off","n","disabled"];"sensitive"!==r.case&&(i=i.map(e=>"string"==typeof e?e.toLowerCase():e),n=n.map(e=>"string"==typeof e?e.toLowerCase():e));let a=new Set(i),o=new Set(n),s=e.Codec??iz,u=e.Boolean??rq,f=new s({type:"pipe",in:new(e.String??rd)({type:"string",error:r.error}),out:new u({type:"boolean",error:r.error}),transform:(e,t)=>{let i=e;return"sensitive"!==r.case&&(i=i.toLowerCase()),!!a.has(i)||!o.has(i)&&(t.issues.push({code:"invalid_value",expected:"stringbool",values:[...a,...o],input:t.value,inst:f,continue:!1}),{})},reverseTransform:(e,t)=>!0===e?i[0]||"true":n[0]||"false",error:r.error});return f}function su(e,t,r,i={}){let n=L(i),a={...L(i),check:"string_format",type:"string",format:t,fn:"function"==typeof r?r:e=>r.test(e),...n};return r instanceof RegExp&&(a.pattern=r),new e(a)}function sf(e){let t=e?.target??"draft-2020-12";return"draft-4"===t&&(t="draft-04"),"draft-7"===t&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??ax,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function sc(e,t,r={path:[],schemaPath:[]}){var i;let n=e._zod.def,a=t.seen.get(e);if(a)return a.count++,r.schemaPath.includes(e)&&(a.cycle=r.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:r.path};t.seen.set(e,o);let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else{let i={...r,schemaPath:[...r.schemaPath,e],path:r.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,i);else{let r=o.schema,a=t.processors[n.type];if(!a)throw Error(`[toJSONSchema]: Non-representable type encountered: ${n.type}`);a(e,t,r,i)}let a=e._zod.parent;a&&(o.ref||(o.ref=a),sc(a,t,i),t.seen.get(a).isParent=!0)}let u=t.metadataRegistry.get(e);return u&&Object.assign(o.schema,u),"input"===t.io&&sh(e)&&(delete o.schema.examples,delete o.schema.default),"input"===t.io&&o.schema._prefault&&((i=o.schema).default??(i.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function sd(e,t){let r=e.seen.get(t);if(!r)throw Error("Unprocessed schema. This is a bug in Zod.");let i=new Map;for(let t of e.seen.entries()){let r=e.metadataRegistry.get(t[0])?.id;if(r){let e=i.get(r);if(e&&e!==t[0])throw Error(`Duplicate schema id "${r}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);i.set(r,t[0])}}let n=t=>{let i="draft-2020-12"===e.target?"$defs":"definitions";if(e.external){let r=e.external.registry.get(t[0])?.id,n=e.external.uri??(e=>e);if(r)return{ref:n(r)};let a=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=a,{defId:a,ref:`${n("__shared")}#/${i}/${a}`}}if(t[1]===r)return{ref:"#"};let n="#",a=`${n}/${i}/`,o=t[1].schema.id??`__schema${e.counter++}`;return{defId:o,ref:a+o}},a=e=>{if(e[1].schema.$ref)return;let t=e[1],{ref:r,defId:i}=n(e);t.def={...t.schema},i&&(t.defId=i);let a=t.schema;for(let e in a)delete a[e];a.$ref=r};if("throw"===e.cycles)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join("/")}/<root>
|
|
35
|
+
`)}t.write("payload.value = newResult;"),t.write("return payload;");let s=t.compile();return(t,r)=>s(e,t,r)},u=j,f=!o.jitless,c=z,d=f&&c.value,l=t.catchall;e._zod.parse=(o,c)=>{i??(i=a.value);let h=o.value;return u(h)?f&&d&&c?.async===!1&&!0!==c.jitless?(r||(r=s(t.shape)),o=r(o,c),l)?r4([],h,o,c,i,e):o:n(o,c):(o.issues.push({expected:"object",code:"invalid_type",input:h,inst:e}),o)}});function r5(e,t,r,i){for(let r of e)if(0===r.issues.length)return t.value=r.value,t;let n=e.filter(e=>!et(e));return 1===n.length?(t.value=n[0].value,n[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(e=>e.issues.map(e=>en(e,i,s())))}),t)}let r9=r("$ZodUnion",(e,t)=>{rc.init(e,t),x(e._zod,"optin",()=>t.options.some(e=>"optional"===e._zod.optin)?"optional":void 0),x(e._zod,"optout",()=>t.options.some(e=>"optional"===e._zod.optout)?"optional":void 0),x(e._zod,"values",()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),x(e._zod,"pattern",()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>v(e.source)).join("|")})$`)}});let r=1===t.options.length,i=t.options[0]._zod.run;e._zod.parse=(n,a)=>{if(r)return i(n,a);let o=!1,s=[];for(let e of t.options){let t=e._zod.run({value:n.value,issues:[]},a);if(t instanceof Promise)s.push(t),o=!0;else{if(0===t.issues.length)return t;s.push(t)}}return o?Promise.all(s).then(t=>r5(t,n,e,a)):r5(s,n,e,a)}});function r7(e,t,r,i){let n=e.filter(e=>0===e.issues.length);return 1===n.length?t.value=n[0].value:0===n.length?t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(e=>e.issues.map(e=>en(e,i,s())))}):t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:[],inclusive:!1}),t}let ie=r("$ZodXor",(e,t)=>{r9.init(e,t),t.inclusive=!1;let r=1===t.options.length,i=t.options[0]._zod.run;e._zod.parse=(n,a)=>{if(r)return i(n,a);let o=!1,s=[];for(let e of t.options){let t=e._zod.run({value:n.value,issues:[]},a);t instanceof Promise?(s.push(t),o=!0):s.push(t)}return o?Promise.all(s).then(t=>r7(t,n,e,a)):r7(s,n,e,a)}}),it=r("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,r9.init(e,t);let r=e._zod.parse;x(e._zod,"propValues",()=>{let e={};for(let r of t.options){let i=r._zod.propValues;if(!i||0===Object.keys(i).length)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(r)}"`);for(let[t,r]of Object.entries(i))for(let i of(e[t]||(e[t]=new Set),r))e[t].add(i)}return e});let i=b(()=>{let e=t.options,r=new Map;for(let i of e){let e=i._zod.propValues?.[t.discriminator];if(!e||0===e.size)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(i)}"`);for(let t of e){if(r.has(t))throw Error(`Duplicate discriminator value "${String(t)}"`);r.set(t,i)}}return r});e._zod.parse=(n,a)=>{let o=n.value;if(!j(o))return n.issues.push({code:"invalid_type",expected:"object",input:o,inst:e}),n;let s=i.value.get(o?.[t.discriminator]);return s?s._zod.run(n,a):t.unionFallback?r(n,a):(n.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:o,path:[t.discriminator],inst:e}),n)}}),ir=r("$ZodIntersection",(e,t)=>{rc.init(e,t),e._zod.parse=(e,r)=>{let i=e.value,n=t.left._zod.run({value:i,issues:[]},r),a=t.right._zod.run({value:i,issues:[]},r);return n instanceof Promise||a instanceof Promise?Promise.all([n,a]).then(([t,r])=>ia(e,t,r)):ia(e,n,a)}});function ii(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(U(e)&&U(t)){let r=Object.keys(t),i=Object.keys(e).filter(e=>-1!==r.indexOf(e)),n={...e,...t};for(let r of i){let i=ii(e[r],t[r]);if(!i.valid)return{valid:!1,mergeErrorPath:[r,...i.mergeErrorPath]};n[r]=i.data}return{valid:!0,data:n}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let r=[];for(let i=0;i<e.length;i++){let n=ii(e[i],t[i]);if(!n.valid)return{valid:!1,mergeErrorPath:[i,...n.mergeErrorPath]};r.push(n.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function ia(e,t,r){let i,n=new Map;for(let r of t.issues)if("unrecognized_keys"===r.code)for(let e of(i??(i=r),r.keys))n.has(e)||n.set(e,{}),n.get(e).l=!0;else e.issues.push(r);for(let t of r.issues)if("unrecognized_keys"===t.code)for(let e of t.keys)n.has(e)||n.set(e,{}),n.get(e).r=!0;else e.issues.push(t);let a=[...n].filter(([,e])=>e.l&&e.r).map(([e])=>e);if(a.length&&i&&e.issues.push({...i,keys:a}),et(e))return e;let o=ii(t.value,r.value);if(!o.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}let io=r("$ZodTuple",(e,t)=>{rc.init(e,t);let r=t.items;e._zod.parse=(i,n)=>{let a=i.value;if(!Array.isArray(a))return i.issues.push({input:a,inst:e,expected:"tuple",code:"invalid_type"}),i;i.value=[];let o=[],s=[...r].reverse().findIndex(e=>"optional"!==e._zod.optin),u=-1===s?0:r.length-s;if(!t.rest){let t=a.length>r.length,n=a.length<u-1;if(t||n)return i.issues.push({...t?{code:"too_big",maximum:r.length,inclusive:!0}:{code:"too_small",minimum:r.length},input:a,inst:e,origin:"array"}),i}let f=-1;for(let e of r){if(++f>=a.length&&f>=u)continue;let t=e._zod.run({value:a[f],issues:[]},n);t instanceof Promise?o.push(t.then(e=>is(e,i,f))):is(t,i,f)}if(t.rest)for(let e of a.slice(r.length)){f++;let r=t.rest._zod.run({value:e,issues:[]},n);r instanceof Promise?o.push(r.then(e=>is(e,i,f))):is(r,i,f)}return o.length?Promise.all(o).then(()=>i):i}});function is(e,t,r){e.issues.length&&t.issues.push(...er(r,e.issues)),t.value[r]=e.value}let iu=r("$ZodRecord",(e,t)=>{rc.init(e,t),e._zod.parse=(r,i)=>{let n=r.value;if(!U(n))return r.issues.push({expected:"record",code:"invalid_type",input:n,inst:e}),r;let a=[],o=t.keyType._zod.values;if(o){let s;r.value={};let u=new Set;for(let e of o)if("string"==typeof e||"number"==typeof e||"symbol"==typeof e){u.add("number"==typeof e?e.toString():e);let o=t.valueType._zod.run({value:n[e],issues:[]},i);o instanceof Promise?a.push(o.then(t=>{t.issues.length&&r.issues.push(...er(e,t.issues)),r.value[e]=t.value})):(o.issues.length&&r.issues.push(...er(e,o.issues)),r.value[e]=o.value)}for(let e in n)u.has(e)||(s=s??[]).push(e);s&&s.length>0&&r.issues.push({code:"unrecognized_keys",input:n,inst:e,keys:s})}else for(let o of(r.value={},Reflect.ownKeys(n))){if("__proto__"===o)continue;let u=t.keyType._zod.run({value:o,issues:[]},i);if(u instanceof Promise)throw Error("Async schemas not supported in object keys currently");if("string"==typeof o&&tk.test(o)&&u.issues.length){let e=t.keyType._zod.run({value:Number(o),issues:[]},i);if(e instanceof Promise)throw Error("Async schemas not supported in object keys currently");0===e.issues.length&&(u=e)}if(u.issues.length){"loose"===t.mode?r.value[o]=n[o]:r.issues.push({code:"invalid_key",origin:"record",issues:u.issues.map(e=>en(e,i,s())),input:o,path:[o],inst:e});continue}let f=t.valueType._zod.run({value:n[o],issues:[]},i);f instanceof Promise?a.push(f.then(e=>{e.issues.length&&r.issues.push(...er(o,e.issues)),r.value[u.value]=e.value})):(f.issues.length&&r.issues.push(...er(o,f.issues)),r.value[u.value]=f.value)}return a.length?Promise.all(a).then(()=>r):r}}),ic=r("$ZodMap",(e,t)=>{rc.init(e,t),e._zod.parse=(r,i)=>{let n=r.value;if(!(n instanceof Map))return r.issues.push({expected:"map",code:"invalid_type",input:n,inst:e}),r;let a=[];for(let[o,s]of(r.value=new Map,n)){let u=t.keyType._zod.run({value:o,issues:[]},i),f=t.valueType._zod.run({value:s,issues:[]},i);u instanceof Promise||f instanceof Promise?a.push(Promise.all([u,f]).then(([t,a])=>{id(t,a,r,o,n,e,i)})):id(u,f,r,o,n,e,i)}return a.length?Promise.all(a).then(()=>r):r}});function id(e,t,r,i,n,a,o){e.issues.length&&(D.has(typeof i)?r.issues.push(...er(i,e.issues)):r.issues.push({code:"invalid_key",origin:"map",input:n,inst:a,issues:e.issues.map(e=>en(e,o,s()))})),t.issues.length&&(D.has(typeof i)?r.issues.push(...er(i,t.issues)):r.issues.push({origin:"map",code:"invalid_element",input:n,inst:a,key:i,issues:t.issues.map(e=>en(e,o,s()))})),r.value.set(e.value,t.value)}let il=r("$ZodSet",(e,t)=>{rc.init(e,t),e._zod.parse=(r,i)=>{let n=r.value;if(!(n instanceof Set))return r.issues.push({input:n,inst:e,expected:"set",code:"invalid_type"}),r;let a=[];for(let e of(r.value=new Set,n)){let n=t.valueType._zod.run({value:e,issues:[]},i);n instanceof Promise?a.push(n.then(e=>ih(e,r))):ih(n,r)}return a.length?Promise.all(a).then(()=>r):r}});function ih(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}let ip=r("$ZodEnum",(e,t)=>{rc.init(e,t);let r=h(t.entries),i=new Set(r);e._zod.values=i,e._zod.pattern=RegExp(`^(${r.filter(e=>D.has(typeof e)).map(e=>"string"==typeof e?C(e):e.toString()).join("|")})$`),e._zod.parse=(t,n)=>{let a=t.value;return i.has(a)||t.issues.push({code:"invalid_value",values:r,input:a,inst:e}),t}}),im=r("$ZodLiteral",(e,t)=>{if(rc.init(e,t),0===t.values.length)throw Error("Cannot create literal schema with no valid values");let r=new Set(t.values);e._zod.values=r,e._zod.pattern=RegExp(`^(${t.values.map(e=>"string"==typeof e?C(e):e?C(e.toString()):String(e)).join("|")})$`),e._zod.parse=(i,n)=>{let a=i.value;return r.has(a)||i.issues.push({code:"invalid_value",values:t.values,input:a,inst:e}),i}}),ib=r("$ZodFile",(e,t)=>{rc.init(e,t),e._zod.parse=(t,r)=>{let i=t.value;return i instanceof File||t.issues.push({expected:"file",code:"invalid_type",input:i,inst:e}),t}}),ig=r("$ZodTransform",(e,t)=>{rc.init(e,t),e._zod.parse=(r,i)=>{if("backward"===i.direction)throw new a(e.constructor.name);let o=t.transform(r.value,r);if(i.async)return(o instanceof Promise?o:Promise.resolve(o)).then(e=>(r.value=e,r));if(o instanceof Promise)throw new n;return r.value=o,r}});function iv(e,t){return e.issues.length&&void 0===t?{issues:[],value:void 0}:e}let iy=r("$ZodOptional",(e,t)=>{rc.init(e,t),e._zod.optin="optional",e._zod.optout="optional",x(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),x(e._zod,"pattern",()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${v(e.source)})?$`):void 0}),e._zod.parse=(e,r)=>{if("optional"===t.innerType._zod.optin){let i=t.innerType._zod.run(e,r);return i instanceof Promise?i.then(t=>iv(t,e.value)):iv(i,e.value)}return void 0===e.value?e:t.innerType._zod.run(e,r)}}),i_=r("$ZodExactOptional",(e,t)=>{iy.init(e,t),x(e._zod,"values",()=>t.innerType._zod.values),x(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(e,r)=>t.innerType._zod.run(e,r)}),ix=r("$ZodNullable",(e,t)=>{rc.init(e,t),x(e._zod,"optin",()=>t.innerType._zod.optin),x(e._zod,"optout",()=>t.innerType._zod.optout),x(e._zod,"pattern",()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${v(e.source)}|null)$`):void 0}),x(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,r)=>null===e.value?e:t.innerType._zod.run(e,r)}),iw=r("$ZodDefault",(e,t)=>{rc.init(e,t),e._zod.optin="optional",x(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,r)=>{if("backward"===r.direction)return t.innerType._zod.run(e,r);if(void 0===e.value)return e.value=t.defaultValue,e;let i=t.innerType._zod.run(e,r);return i instanceof Promise?i.then(e=>iS(e,t)):iS(i,t)}});function iS(e,t){return void 0===e.value&&(e.value=t.defaultValue),e}let ik=r("$ZodPrefault",(e,t)=>{rc.init(e,t),e._zod.optin="optional",x(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,r)=>("backward"===r.direction||void 0===e.value&&(e.value=t.defaultValue),t.innerType._zod.run(e,r))}),i$=r("$ZodNonOptional",(e,t)=>{rc.init(e,t),x(e._zod,"values",()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>void 0!==e)):void 0}),e._zod.parse=(r,i)=>{let n=t.innerType._zod.run(r,i);return n instanceof Promise?n.then(t=>iI(t,e)):iI(n,e)}});function iI(e,t){return e.issues.length||void 0!==e.value||e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}let iM=r("$ZodSuccess",(e,t)=>{rc.init(e,t),e._zod.parse=(e,r)=>{if("backward"===r.direction)throw new a("ZodSuccess");let i=t.innerType._zod.run(e,r);return i instanceof Promise?i.then(t=>(e.value=0===t.issues.length,e)):(e.value=0===i.issues.length,e)}}),iE=r("$ZodCatch",(e,t)=>{rc.init(e,t),x(e._zod,"optin",()=>t.innerType._zod.optin),x(e._zod,"optout",()=>t.innerType._zod.optout),x(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,r)=>{if("backward"===r.direction)return t.innerType._zod.run(e,r);let i=t.innerType._zod.run(e,r);return i instanceof Promise?i.then(i=>(e.value=i.value,i.issues.length&&(e.value=t.catchValue({...e,error:{issues:i.issues.map(e=>en(e,r,s()))},input:e.value}),e.issues=[]),e)):(e.value=i.value,i.issues.length&&(e.value=t.catchValue({...e,error:{issues:i.issues.map(e=>en(e,r,s()))},input:e.value}),e.issues=[]),e)}}),iA=r("$ZodNaN",(e,t)=>{rc.init(e,t),e._zod.parse=(t,r)=>("number"==typeof t.value&&Number.isNaN(t.value)||t.issues.push({input:t.value,inst:e,expected:"nan",code:"invalid_type"}),t)}),iO=r("$ZodPipe",(e,t)=>{rc.init(e,t),x(e._zod,"values",()=>t.in._zod.values),x(e._zod,"optin",()=>t.in._zod.optin),x(e._zod,"optout",()=>t.out._zod.optout),x(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(e,r)=>{if("backward"===r.direction){let i=t.out._zod.run(e,r);return i instanceof Promise?i.then(e=>iN(e,t.in,r)):iN(i,t.in,r)}let i=t.in._zod.run(e,r);return i instanceof Promise?i.then(e=>iN(e,t.out,r)):iN(i,t.out,r)}});function iN(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},r)}let ij=r("$ZodCodec",(e,t)=>{rc.init(e,t),x(e._zod,"values",()=>t.in._zod.values),x(e._zod,"optin",()=>t.in._zod.optin),x(e._zod,"optout",()=>t.out._zod.optout),x(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(e,r)=>{if("forward"===(r.direction||"forward")){let i=t.in._zod.run(e,r);return i instanceof Promise?i.then(e=>iz(e,t,r)):iz(i,t,r)}{let i=t.out._zod.run(e,r);return i instanceof Promise?i.then(e=>iz(e,t,r)):iz(i,t,r)}}});function iz(e,t,r){if(e.issues.length)return e.aborted=!0,e;if("forward"===(r.direction||"forward")){let i=t.transform(e.value,e);return i instanceof Promise?i.then(i=>iU(e,i,t.out,r)):iU(e,i,t.out,r)}{let i=t.reverseTransform(e.value,e);return i instanceof Promise?i.then(i=>iU(e,i,t.in,r)):iU(e,i,t.in,r)}}function iU(e,t,r,i){return e.issues.length?(e.aborted=!0,e):r._zod.run({value:t,issues:e.issues},i)}let iP=r("$ZodReadonly",(e,t)=>{rc.init(e,t),x(e._zod,"propValues",()=>t.innerType._zod.propValues),x(e._zod,"values",()=>t.innerType._zod.values),x(e._zod,"optin",()=>t.innerType?._zod?.optin),x(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(e,r)=>{if("backward"===r.direction)return t.innerType._zod.run(e,r);let i=t.innerType._zod.run(e,r);return i instanceof Promise?i.then(iT):iT(i)}});function iT(e){return e.value=Object.freeze(e.value),e}let iR=r("$ZodTemplateLiteral",(e,t)=>{rc.init(e,t);let r=[];for(let e of t.parts)if("object"==typeof e&&null!==e){if(!e._zod.pattern)throw Error(`Invalid template literal part, no pattern found: ${[...e._zod.traits].shift()}`);let t=e._zod.pattern instanceof RegExp?e._zod.pattern.source:e._zod.pattern;if(!t)throw Error(`Invalid template literal part: ${e._zod.traits}`);let i=+!!t.startsWith("^"),n=t.endsWith("$")?t.length-1:t.length;r.push(t.slice(i,n))}else if(null===e||B.has(typeof e))r.push(C(`${e}`));else throw Error(`Invalid template literal part: ${e}`);e._zod.pattern=RegExp(`^${r.join("")}$`),e._zod.parse=(r,i)=>("string"!=typeof r.value?r.issues.push({input:r.value,inst:e,expected:"string",code:"invalid_type"}):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(r.value)||r.issues.push({input:r.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source})),r)}),iD=r("$ZodFunction",(e,t)=>(rc.init(e,t),e._def=t,e._zod.def=t,e.implement=t=>{if("function"!=typeof t)throw Error("implement() must be called with a function");return function(...r){let i=Reflect.apply(t,this,e._def.input?eI(e._def.input,r):r);return e._def.output?eI(e._def.output,i):i}},e.implementAsync=t=>{if("function"!=typeof t)throw Error("implementAsync() must be called with a function");return async function(...r){let i=e._def.input?await eE(e._def.input,r):r,n=await Reflect.apply(t,this,i);return e._def.output?await eE(e._def.output,n):n}},e._zod.parse=(t,r)=>("function"!=typeof t.value?t.issues.push({code:"invalid_type",expected:"function",input:t.value,inst:e}):e._def.output&&"promise"===e._def.output._zod.def.type?t.value=e.implementAsync(t.value):t.value=e.implement(t.value),t),e.input=(...t)=>{let r=e.constructor;return new r(Array.isArray(t[0])?{type:"function",input:new io({type:"tuple",items:t[0],rest:t[1]}),output:e._def.output}:{type:"function",input:t[0],output:e._def.output})},e.output=t=>new e.constructor({type:"function",input:e._def.input,output:t}),e)),iB=r("$ZodPromise",(e,t)=>{rc.init(e,t),e._zod.parse=(e,r)=>Promise.resolve(e.value).then(e=>t.innerType._zod.run({value:e,issues:[]},r))}),iC=r("$ZodLazy",(e,t)=>{rc.init(e,t),x(e._zod,"innerType",()=>t.getter()),x(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),x(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),x(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),x(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(t,r)=>e._zod.innerType._zod.run(t,r)}),iZ=r("$ZodCustom",(e,t)=>{tV.init(e,t),rc.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=r=>{let i=r.value,n=t.fn(i);if(n instanceof Promise)return n.then(t=>iL(t,r,i,e));iL(n,r,i,e)}});function iL(e,t,r,i){if(!e){let e={code:"custom",input:r,inst:i,path:[...i._zod.def.path??[]],continue:!i._zod.def.abort};i._zod.def.params&&(e.params=i._zod.def.params),t.issues.push(eu(e))}}e.s(["$ZodAny",0,rG,"$ZodArray",0,r1,"$ZodBase64",0,rU,"$ZodBase64URL",0,rT,"$ZodBigInt",0,rF,"$ZodBigIntFormat",0,rJ,"$ZodBoolean",0,rq,"$ZodCIDRv4",0,rN,"$ZodCIDRv6",0,rj,"$ZodCUID",0,ry,"$ZodCUID2",0,r_,"$ZodCatch",0,iE,"$ZodCodec",0,ij,"$ZodCustom",0,iZ,"$ZodCustomStringFormat",0,rC,"$ZodDate",0,rQ,"$ZodDefault",0,iw,"$ZodDiscriminatedUnion",0,it,"$ZodE164",0,rR,"$ZodEmail",0,rm,"$ZodEmoji",0,rg,"$ZodEnum",0,ip,"$ZodExactOptional",0,i_,"$ZodFile",0,ib,"$ZodFunction",0,iD,"$ZodGUID",0,rh,"$ZodIPv4",0,rE,"$ZodIPv6",0,rA,"$ZodISODate",0,r$,"$ZodISODateTime",0,rk,"$ZodISODuration",0,rM,"$ZodISOTime",0,rI,"$ZodIntersection",0,ir,"$ZodJWT",0,rB,"$ZodKSUID",0,rS,"$ZodLazy",0,iC,"$ZodLiteral",0,im,"$ZodMAC",0,rO,"$ZodMap",0,ic,"$ZodNaN",0,iA,"$ZodNanoID",0,rv,"$ZodNever",0,rX,"$ZodNonOptional",0,i$,"$ZodNull",0,rV,"$ZodNullable",0,ix,"$ZodNumber",0,rZ,"$ZodNumberFormat",0,rL,"$ZodObject",0,r3,"$ZodObjectJIT",0,r8,"$ZodOptional",0,iy,"$ZodPipe",0,iO,"$ZodPrefault",0,ik,"$ZodPromise",0,iB,"$ZodReadonly",0,iP,"$ZodRecord",0,iu,"$ZodSet",0,il,"$ZodString",0,rd,"$ZodStringFormat",0,rl,"$ZodSuccess",0,iM,"$ZodSymbol",0,rW,"$ZodTemplateLiteral",0,iR,"$ZodTransform",0,ig,"$ZodTuple",0,io,"$ZodType",0,rc,"$ZodULID",0,rx,"$ZodURL",0,rb,"$ZodUUID",0,rp,"$ZodUndefined",0,rK,"$ZodUnion",0,r9,"$ZodUnknown",0,rH,"$ZodVoid",0,rY,"$ZodXID",0,rw,"$ZodXor",0,ie,"isValidBase64",0,rz,"isValidBase64URL",0,rP,"isValidJWT",0,rD],24110);let iq=()=>{let e={string:{unit:"حرف",verb:"أن يحوي"},file:{unit:"بايت",verb:"أن يحوي"},array:{unit:"عنصر",verb:"أن يحوي"},set:{unit:"عنصر",verb:"أن يحوي"}};function t(t){return e[t]??null}let r={regex:"مدخل",email:"بريد إلكتروني",url:"رابط",emoji:"إيموجي",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"تاريخ ووقت بمعيار ISO",date:"تاريخ بمعيار ISO",time:"وقت بمعيار ISO",duration:"مدة بمعيار ISO",ipv4:"عنوان IPv4",ipv6:"عنوان IPv6",cidrv4:"مدى عناوين بصيغة IPv4",cidrv6:"مدى عناوين بصيغة IPv6",base64:"نَص بترميز base64-encoded",base64url:"نَص بترميز base64url-encoded",json_string:"نَص على هيئة JSON",e164:"رقم هاتف بمعيار E.164",jwt:"JWT",template_literal:"مدخل"},i={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":{let t=i[e.expected]??e.expected,r=es(e.input),n=i[r]??r;if(/^[A-Z]/.test(e.expected))return`مدخلات غير مقبولة: يفترض إدخال instanceof ${e.expected}، ولكن تم إدخال ${n}`;return`مدخلات غير مقبولة: يفترض إدخال ${t}، ولكن تم إدخال ${n}`}case"invalid_value":if(1===e.values.length)return`مدخلات غير مقبولة: يفترض إدخال ${F(e.values[0])}`;return`اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${p(e.values,"|")}`;case"too_big":{let r=e.inclusive?"<=":"<",i=t(e.origin);if(i)return` أكبر من اللازم: يفترض أن تكون ${e.origin??"القيمة"} ${r} ${e.maximum.toString()} ${i.unit??"عنصر"}`;return`أكبر من اللازم: يفترض أن تكون ${e.origin??"القيمة"} ${r} ${e.maximum.toString()}`}case"too_small":{let r=e.inclusive?">=":">",i=t(e.origin);if(i)return`أصغر من اللازم: يفترض لـ ${e.origin} أن يكون ${r} ${e.minimum.toString()} ${i.unit}`;return`أصغر من اللازم: يفترض لـ ${e.origin} أن يكون ${r} ${e.minimum.toString()}`}case"invalid_format":{let t=e;if("starts_with"===t.format)return`نَص غير مقبول: يجب أن يبدأ بـ "${e.prefix}"`;if("ends_with"===t.format)return`نَص غير مقبول: يجب أن ينتهي بـ "${t.suffix}"`;if("includes"===t.format)return`نَص غير مقبول: يجب أن يتضمَّن "${t.includes}"`;if("regex"===t.format)return`نَص غير مقبول: يجب أن يطابق النمط ${t.pattern}`;return`${r[t.format]??e.format} غير مقبول`}case"not_multiple_of":return`رقم غير مقبول: يجب أن يكون من مضاعفات ${e.divisor}`;case"unrecognized_keys":return`معرف${e.keys.length>1?"ات":""} غريب${e.keys.length>1?"ة":""}: ${p(e.keys,"، ")}`;case"invalid_key":return`معرف غير مقبول في ${e.origin}`;case"invalid_union":default:return"مدخل غير مقبول";case"invalid_element":return`مدخل غير مقبول في ${e.origin}`}}};function iF(){return{localeError:iq()}}let iJ=()=>{let e={string:{unit:"simvol",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"element",verb:"olmalıdır"},set:{unit:"element",verb:"olmalıdır"}};function t(t){return e[t]??null}let r={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":{let t=i[e.expected]??e.expected,r=es(e.input),n=i[r]??r;if(/^[A-Z]/.test(e.expected))return`Yanlış dəyər: g\xf6zlənilən instanceof ${e.expected}, daxil olan ${n}`;return`Yanlış dəyər: g\xf6zlənilən ${t}, daxil olan ${n}`}case"invalid_value":if(1===e.values.length)return`Yanlış dəyər: g\xf6zlənilən ${F(e.values[0])}`;return`Yanlış se\xe7im: aşağıdakılardan biri olmalıdır: ${p(e.values,"|")}`;case"too_big":{let r=e.inclusive?"<=":"<",i=t(e.origin);if(i)return`\xc7ox b\xf6y\xfck: g\xf6zlənilən ${e.origin??"dəyər"} ${r}${e.maximum.toString()} ${i.unit??"element"}`;return`\xc7ox b\xf6y\xfck: g\xf6zlənilən ${e.origin??"dəyər"} ${r}${e.maximum.toString()}`}case"too_small":{let r=e.inclusive?">=":">",i=t(e.origin);if(i)return`\xc7ox ki\xe7ik: g\xf6zlənilən ${e.origin} ${r}${e.minimum.toString()} ${i.unit}`;return`\xc7ox ki\xe7ik: g\xf6zlənilən ${e.origin} ${r}${e.minimum.toString()}`}case"invalid_format":{let t=e;if("starts_with"===t.format)return`Yanlış mətn: "${t.prefix}" ilə başlamalıdır`;if("ends_with"===t.format)return`Yanlış mətn: "${t.suffix}" ilə bitməlidir`;if("includes"===t.format)return`Yanlış mətn: "${t.includes}" daxil olmalıdır`;if("regex"===t.format)return`Yanlış mətn: ${t.pattern} şablonuna uyğun olmalıdır`;return`Yanlış ${r[t.format]??e.format}`}case"not_multiple_of":return`Yanlış ədəd: ${e.divisor} ilə b\xf6l\xfcnə bilən olmalıdır`;case"unrecognized_keys":return`Tanınmayan a\xe7ar${e.keys.length>1?"lar":""}: ${p(e.keys,", ")}`;case"invalid_key":return`${e.origin} daxilində yanlış a\xe7ar`;case"invalid_union":default:return"Yanlış dəyər";case"invalid_element":return`${e.origin} daxilində yanlış dəyər`}}};function iW(){return{localeError:iJ()}}function iK(e,t,r,i){let n=Math.abs(e),a=n%10,o=n%100;return o>=11&&o<=19?i:1===a?t:a>=2&&a<=4?r:i}let iV=()=>{let e={string:{unit:{one:"сімвал",few:"сімвалы",many:"сімвалаў"},verb:"мець"},array:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},set:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},file:{unit:{one:"байт",few:"байты",many:"байтаў"},verb:"мець"}};function t(t){return e[t]??null}let r={regex:"увод",email:"email адрас",url:"URL",emoji:"эмодзі",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO дата і час",date:"ISO дата",time:"ISO час",duration:"ISO працягласць",ipv4:"IPv4 адрас",ipv6:"IPv6 адрас",cidrv4:"IPv4 дыяпазон",cidrv6:"IPv6 дыяпазон",base64:"радок у фармаце base64",base64url:"радок у фармаце base64url",json_string:"JSON радок",e164:"нумар E.164",jwt:"JWT",template_literal:"увод"},i={nan:"NaN",number:"лік",array:"масіў"};return e=>{switch(e.code){case"invalid_type":{let t=i[e.expected]??e.expected,r=es(e.input),n=i[r]??r;if(/^[A-Z]/.test(e.expected))return`Няправільны ўвод: чакаўся instanceof ${e.expected}, атрымана ${n}`;return`Няправільны ўвод: чакаўся ${t}, атрымана ${n}`}case"invalid_value":if(1===e.values.length)return`Няправільны ўвод: чакалася ${F(e.values[0])}`;return`Няправільны варыянт: чакаўся адзін з ${p(e.values,"|")}`;case"too_big":{let r=e.inclusive?"<=":"<",i=t(e.origin);if(i){let t=iK(Number(e.maximum),i.unit.one,i.unit.few,i.unit.many);return`Занадта вялікі: чакалася, што ${e.origin??"значэнне"} павінна ${i.verb} ${r}${e.maximum.toString()} ${t}`}return`Занадта вялікі: чакалася, што ${e.origin??"значэнне"} павінна быць ${r}${e.maximum.toString()}`}case"too_small":{let r=e.inclusive?">=":">",i=t(e.origin);if(i){let t=iK(Number(e.minimum),i.unit.one,i.unit.few,i.unit.many);return`Занадта малы: чакалася, што ${e.origin} павінна ${i.verb} ${r}${e.minimum.toString()} ${t}`}return`Занадта малы: чакалася, што ${e.origin} павінна быць ${r}${e.minimum.toString()}`}case"invalid_format":{let t=e;if("starts_with"===t.format)return`Няправільны радок: павінен пачынацца з "${t.prefix}"`;if("ends_with"===t.format)return`Няправільны радок: павінен заканчвацца на "${t.suffix}"`;if("includes"===t.format)return`Няправільны радок: павінен змяшчаць "${t.includes}"`;if("regex"===t.format)return`Няправільны радок: павінен адпавядаць шаблону ${t.pattern}`;return`Няправільны ${r[t.format]??e.format}`}case"not_multiple_of":return`Няправільны лік: павінен быць кратным ${e.divisor}`;case"unrecognized_keys":return`Нераспазнаны ${e.keys.length>1?"ключы":"ключ"}: ${p(e.keys,", ")}`;case"invalid_key":return`Няправільны ключ у ${e.origin}`;case"invalid_union":default:return"Няправільны ўвод";case"invalid_element":return`Няправільнае значэнне ў ${e.origin}`}}};function iG(){return{localeError:iV()}}let iH=()=>{let e={string:{unit:"символа",verb:"да съдържа"},file:{unit:"байта",verb:"да съдържа"},array:{unit:"елемента",verb:"да съдържа"},set:{unit:"елемента",verb:"да съдържа"}};function t(t){return e[t]??null}let r={regex:"вход",email:"имейл адрес",url:"URL",emoji:"емоджи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO време",date:"ISO дата",time:"ISO време",duration:"ISO продължителност",ipv4:"IPv4 адрес",ipv6:"IPv6 адрес",cidrv4:"IPv4 диапазон",cidrv6:"IPv6 диапазон",base64:"base64-кодиран низ",base64url:"base64url-кодиран низ",json_string:"JSON низ",e164:"E.164 номер",jwt:"JWT",template_literal:"вход"},i={nan:"NaN",number:"число",array:"масив"};return e=>{switch(e.code){case"invalid_type":{let t=i[e.expected]??e.expected,r=es(e.input),n=i[r]??r;if(/^[A-Z]/.test(e.expected))return`Невалиден вход: очакван instanceof ${e.expected}, получен ${n}`;return`Невалиден вход: очакван ${t}, получен ${n}`}case"invalid_value":if(1===e.values.length)return`Невалиден вход: очакван ${F(e.values[0])}`;return`Невалидна опция: очаквано едно от ${p(e.values,"|")}`;case"too_big":{let r=e.inclusive?"<=":"<",i=t(e.origin);if(i)return`Твърде голямо: очаква се ${e.origin??"стойност"} да съдържа ${r}${e.maximum.toString()} ${i.unit??"елемента"}`;return`Твърде голямо: очаква се ${e.origin??"стойност"} да бъде ${r}${e.maximum.toString()}`}case"too_small":{let r=e.inclusive?">=":">",i=t(e.origin);if(i)return`Твърде малко: очаква се ${e.origin} да съдържа ${r}${e.minimum.toString()} ${i.unit}`;return`Твърде малко: очаква се ${e.origin} да бъде ${r}${e.minimum.toString()}`}case"invalid_format":{let t=e;if("starts_with"===t.format)return`Невалиден низ: трябва да започва с "${t.prefix}"`;if("ends_with"===t.format)return`Невалиден низ: трябва да завършва с "${t.suffix}"`;if("includes"===t.format)return`Невалиден низ: трябва да включва "${t.includes}"`;if("regex"===t.format)return`Невалиден низ: трябва да съвпада с ${t.pattern}`;let i="Невалиден";return"emoji"===t.format&&(i="Невалидно"),"datetime"===t.format&&(i="Невалидно"),"date"===t.format&&(i="Невалидна"),"time"===t.format&&(i="Невалидно"),"duration"===t.format&&(i="Невалидна"),`${i} ${r[t.format]??e.format}`}case"not_multiple_of":return`Невалидно число: трябва да бъде кратно на ${e.divisor}`;case"unrecognized_keys":return`Неразпознат${e.keys.length>1?"и":""} ключ${e.keys.length>1?"ове":""}: ${p(e.keys,", ")}`;case"invalid_key":return`Невалиден ключ в ${e.origin}`;case"invalid_union":default:return"Невалиден вход";case"invalid_element":return`Невалидна стойност в ${e.origin}`}}};function iX(){return{localeError:iH()}}let iY=()=>{let e={string:{unit:"caràcters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function t(t){return e[t]??null}let r={regex:"entrada",email:"adreça electrònica",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adreça IPv4",ipv6:"adreça IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"},i={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":{let t=i[e.expected]??e.expected,r=es(e.input),n=i[r]??r;if(/^[A-Z]/.test(e.expected))return`Tipus inv\xe0lid: s'esperava instanceof ${e.expected}, s'ha rebut ${n}`;return`Tipus inv\xe0lid: s'esperava ${t}, s'ha rebut ${n}`}case"invalid_value":if(1===e.values.length)return`Valor inv\xe0lid: s'esperava ${F(e.values[0])}`;return`Opci\xf3 inv\xe0lida: s'esperava una de ${p(e.values," o ")}`;case"too_big":{let r=e.inclusive?"com a màxim":"menys de",i=t(e.origin);if(i)return`Massa gran: s'esperava que ${e.origin??"el valor"} contingu\xe9s ${r} ${e.maximum.toString()} ${i.unit??"elements"}`;return`Massa gran: s'esperava que ${e.origin??"el valor"} fos ${r} ${e.maximum.toString()}`}case"too_small":{let r=e.inclusive?"com a mínim":"més de",i=t(e.origin);if(i)return`Massa petit: s'esperava que ${e.origin} contingu\xe9s ${r} ${e.minimum.toString()} ${i.unit}`;return`Massa petit: s'esperava que ${e.origin} fos ${r} ${e.minimum.toString()}`}case"invalid_format":{let t=e;if("starts_with"===t.format)return`Format inv\xe0lid: ha de comen\xe7ar amb "${t.prefix}"`;if("ends_with"===t.format)return`Format inv\xe0lid: ha d'acabar amb "${t.suffix}"`;if("includes"===t.format)return`Format inv\xe0lid: ha d'incloure "${t.includes}"`;if("regex"===t.format)return`Format inv\xe0lid: ha de coincidir amb el patr\xf3 ${t.pattern}`;return`Format inv\xe0lid per a ${r[t.format]??e.format}`}case"not_multiple_of":return`N\xfamero inv\xe0lid: ha de ser m\xfaltiple de ${e.divisor}`;case"unrecognized_keys":return`Clau${e.keys.length>1?"s":""} no reconeguda${e.keys.length>1?"s":""}: ${p(e.keys,", ")}`;case"invalid_key":return`Clau inv\xe0lida a ${e.origin}`;case"invalid_union":default:return"Entrada invàlida";case"invalid_element":return`Element inv\xe0lid a ${e.origin}`}}};function iQ(){return{localeError:iY()}}let i0=()=>{let e={string:{unit:"znaků",verb:"mít"},file:{unit:"bajtů",verb:"mít"},array:{unit:"prvků",verb:"mít"},set:{unit:"prvků",verb:"mít"}};function t(t){return e[t]??null}let r={regex:"regulární výraz",email:"e-mailová adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"datum a čas ve formátu ISO",date:"datum ve formátu ISO",time:"čas ve formátu ISO",duration:"doba trvání ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"řetězec zakódovaný ve formátu base64",base64url:"řetězec zakódovaný ve formátu base64url",json_string:"řetězec ve formátu JSON",e164:"číslo E.164",jwt:"JWT",template_literal:"vstup"},i={nan:"NaN",number:"číslo",string:"řetězec",function:"funkce",array:"pole"};return e=>{switch(e.code){case"invalid_type":{let t=i[e.expected]??e.expected,r=es(e.input),n=i[r]??r;if(/^[A-Z]/.test(e.expected))return`Neplatn\xfd vstup: oček\xe1v\xe1no instanceof ${e.expected}, obdrženo ${n}`;return`Neplatn\xfd vstup: oček\xe1v\xe1no ${t}, obdrženo ${n}`}case"invalid_value":if(1===e.values.length)return`Neplatn\xfd vstup: oček\xe1v\xe1no ${F(e.values[0])}`;return`Neplatn\xe1 možnost: oček\xe1v\xe1na jedna z hodnot ${p(e.values,"|")}`;case"too_big":{let r=e.inclusive?"<=":"<",i=t(e.origin);if(i)return`Hodnota je př\xedliš velk\xe1: ${e.origin??"hodnota"} mus\xed m\xedt ${r}${e.maximum.toString()} ${i.unit??"prvků"}`;return`Hodnota je př\xedliš velk\xe1: ${e.origin??"hodnota"} mus\xed b\xfdt ${r}${e.maximum.toString()}`}case"too_small":{let r=e.inclusive?">=":">",i=t(e.origin);if(i)return`Hodnota je př\xedliš mal\xe1: ${e.origin??"hodnota"} mus\xed m\xedt ${r}${e.minimum.toString()} ${i.unit??"prvků"}`;return`Hodnota je př\xedliš mal\xe1: ${e.origin??"hodnota"} mus\xed b\xfdt ${r}${e.minimum.toString()}`}case"invalid_format":{let t=e;if("starts_with"===t.format)return`Neplatn\xfd řetězec: mus\xed zač\xednat na "${t.prefix}"`;if("ends_with"===t.format)return`Neplatn\xfd řetězec: mus\xed končit na "${t.suffix}"`;if("includes"===t.format)return`Neplatn\xfd řetězec: mus\xed obsahovat "${t.includes}"`;if("regex"===t.format)return`Neplatn\xfd řetězec: mus\xed odpov\xeddat vzoru ${t.pattern}`;return`Neplatn\xfd form\xe1t ${r[t.format]??e.format}`}case"not_multiple_of":return`Neplatn\xe9 č\xedslo: mus\xed b\xfdt n\xe1sobkem ${e.divisor}`;case"unrecognized_keys":return`Nezn\xe1m\xe9 kl\xedče: ${p(e.keys,", ")}`;case"invalid_key":return`Neplatn\xfd kl\xedč v ${e.origin}`;case"invalid_union":default:return"Neplatný vstup";case"invalid_element":return`Neplatn\xe1 hodnota v ${e.origin}`}}};function i1(){return{localeError:i0()}}let i2=()=>{let e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}};function t(t){return e[t]??null}let r={regex:"input",email:"e-mailadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslæt",date:"ISO-dato",time:"ISO-klokkeslæt",duration:"ISO-varighed",ipv4:"IPv4-område",ipv6:"IPv6-område",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},i={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"sæt",file:"fil"};return e=>{switch(e.code){case"invalid_type":{let t=i[e.expected]??e.expected,r=es(e.input),n=i[r]??r;if(/^[A-Z]/.test(e.expected))return`Ugyldigt input: forventede instanceof ${e.expected}, fik ${n}`;return`Ugyldigt input: forventede ${t}, fik ${n}`}case"invalid_value":if(1===e.values.length)return`Ugyldig v\xe6rdi: forventede ${F(e.values[0])}`;return`Ugyldigt valg: forventede en af f\xf8lgende ${p(e.values,"|")}`;case"too_big":{let r=e.inclusive?"<=":"<",n=t(e.origin),a=i[e.origin]??e.origin;if(n)return`For stor: forventede ${a??"value"} ${n.verb} ${r} ${e.maximum.toString()} ${n.unit??"elementer"}`;return`For stor: forventede ${a??"value"} havde ${r} ${e.maximum.toString()}`}case"too_small":{let r=e.inclusive?">=":">",n=t(e.origin),a=i[e.origin]??e.origin;if(n)return`For lille: forventede ${a} ${n.verb} ${r} ${e.minimum.toString()} ${n.unit}`;return`For lille: forventede ${a} havde ${r} ${e.minimum.toString()}`}case"invalid_format":{let t=e;if("starts_with"===t.format)return`Ugyldig streng: skal starte med "${t.prefix}"`;if("ends_with"===t.format)return`Ugyldig streng: skal ende med "${t.suffix}"`;if("includes"===t.format)return`Ugyldig streng: skal indeholde "${t.includes}"`;if("regex"===t.format)return`Ugyldig streng: skal matche m\xf8nsteret ${t.pattern}`;return`Ugyldig ${r[t.format]??e.format}`}case"not_multiple_of":return`Ugyldigt tal: skal v\xe6re deleligt med ${e.divisor}`;case"unrecognized_keys":return`${e.keys.length>1?"Ukendte nøgler":"Ukendt nøgle"}: ${p(e.keys,", ")}`;case"invalid_key":return`Ugyldig n\xf8gle i ${e.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig v\xe6rdi i ${e.origin}`;default:return"Ugyldigt input"}}};function i6(){return{localeError:i2()}}let i4=()=>{let e={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"}};function t(t){return e[t]??null}let r={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"},i={nan:"NaN",number:"Zahl",array:"Array"};return e=>{switch(e.code){case"invalid_type":{let t=i[e.expected]??e.expected,r=es(e.input),n=i[r]??r;if(/^[A-Z]/.test(e.expected))return`Ung\xfcltige Eingabe: erwartet instanceof ${e.expected}, erhalten ${n}`;return`Ung\xfcltige Eingabe: erwartet ${t}, erhalten ${n}`}case"invalid_value":if(1===e.values.length)return`Ung\xfcltige Eingabe: erwartet ${F(e.values[0])}`;return`Ung\xfcltige Option: erwartet eine von ${p(e.values,"|")}`;case"too_big":{let r=e.inclusive?"<=":"<",i=t(e.origin);if(i)return`Zu gro\xdf: erwartet, dass ${e.origin??"Wert"} ${r}${e.maximum.toString()} ${i.unit??"Elemente"} hat`;return`Zu gro\xdf: erwartet, dass ${e.origin??"Wert"} ${r}${e.maximum.toString()} ist`}case"too_small":{let r=e.inclusive?">=":">",i=t(e.origin);if(i)return`Zu klein: erwartet, dass ${e.origin} ${r}${e.minimum.toString()} ${i.unit} hat`;return`Zu klein: erwartet, dass ${e.origin} ${r}${e.minimum.toString()} ist`}case"invalid_format":{let t=e;if("starts_with"===t.format)return`Ung\xfcltiger String: muss mit "${t.prefix}" beginnen`;if("ends_with"===t.format)return`Ung\xfcltiger String: muss mit "${t.suffix}" enden`;if("includes"===t.format)return`Ung\xfcltiger String: muss "${t.includes}" enthalten`;if("regex"===t.format)return`Ung\xfcltiger String: muss dem Muster ${t.pattern} entsprechen`;return`Ung\xfcltig: ${r[t.format]??e.format}`}case"not_multiple_of":return`Ung\xfcltige Zahl: muss ein Vielfaches von ${e.divisor} sein`;case"unrecognized_keys":return`${e.keys.length>1?"Unbekannte Schlüssel":"Unbekannter Schlüssel"}: ${p(e.keys,", ")}`;case"invalid_key":return`Ung\xfcltiger Schl\xfcssel in ${e.origin}`;case"invalid_union":default:return"Ungültige Eingabe";case"invalid_element":return`Ung\xfcltiger Wert in ${e.origin}`}}};function i3(){return{localeError:i4()}}let i8=()=>{let e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function t(t){return e[t]??null}let r={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":{let t=i[e.expected]??e.expected,r=es(e.input),n=i[r]??r;return`Invalid input: expected ${t}, received ${n}`}case"invalid_value":if(1===e.values.length)return`Invalid input: expected ${F(e.values[0])}`;return`Invalid option: expected one of ${p(e.values,"|")}`;case"too_big":{let r=e.inclusive?"<=":"<",i=t(e.origin);if(i)return`Too big: expected ${e.origin??"value"} to have ${r}${e.maximum.toString()} ${i.unit??"elements"}`;return`Too big: expected ${e.origin??"value"} to be ${r}${e.maximum.toString()}`}case"too_small":{let r=e.inclusive?">=":">",i=t(e.origin);if(i)return`Too small: expected ${e.origin} to have ${r}${e.minimum.toString()} ${i.unit}`;return`Too small: expected ${e.origin} to be ${r}${e.minimum.toString()}`}case"invalid_format":{let t=e;if("starts_with"===t.format)return`Invalid string: must start with "${t.prefix}"`;if("ends_with"===t.format)return`Invalid string: must end with "${t.suffix}"`;if("includes"===t.format)return`Invalid string: must include "${t.includes}"`;if("regex"===t.format)return`Invalid string: must match pattern ${t.pattern}`;return`Invalid ${r[t.format]??e.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${e.divisor}`;case"unrecognized_keys":return`Unrecognized key${e.keys.length>1?"s":""}: ${p(e.keys,", ")}`;case"invalid_key":return`Invalid key in ${e.origin}`;case"invalid_union":default:return"Invalid input";case"invalid_element":return`Invalid value in ${e.origin}`}}};function i5(){return{localeError:i8()}}let i9=()=>{let e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function t(t){return e[t]??null}let r={regex:"enigo",email:"retadreso",url:"URL",emoji:"emoĝio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-daŭro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",jwt:"JWT",template_literal:"enigo"},i={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return e=>{switch(e.code){case"invalid_type":{let t=i[e.expected]??e.expected,r=es(e.input),n=i[r]??r;if(/^[A-Z]/.test(e.expected))return`Nevalida enigo: atendiĝis instanceof ${e.expected}, riceviĝis ${n}`;return`Nevalida enigo: atendiĝis ${t}, riceviĝis ${n}`}case"invalid_value":if(1===e.values.length)return`Nevalida enigo: atendiĝis ${F(e.values[0])}`;return`Nevalida opcio: atendiĝis unu el ${p(e.values,"|")}`;case"too_big":{let r=e.inclusive?"<=":"<",i=t(e.origin);if(i)return`Tro granda: atendiĝis ke ${e.origin??"valoro"} havu ${r}${e.maximum.toString()} ${i.unit??"elementojn"}`;return`Tro granda: atendiĝis ke ${e.origin??"valoro"} havu ${r}${e.maximum.toString()}`}case"too_small":{let r=e.inclusive?">=":">",i=t(e.origin);if(i)return`Tro malgranda: atendiĝis ke ${e.origin} havu ${r}${e.minimum.toString()} ${i.unit}`;return`Tro malgranda: atendiĝis ke ${e.origin} estu ${r}${e.minimum.toString()}`}case"invalid_format":{let t=e;if("starts_with"===t.format)return`Nevalida karaktraro: devas komenciĝi per "${t.prefix}"`;if("ends_with"===t.format)return`Nevalida karaktraro: devas finiĝi per "${t.suffix}"`;if("includes"===t.format)return`Nevalida karaktraro: devas inkluzivi "${t.includes}"`;if("regex"===t.format)return`Nevalida karaktraro: devas kongrui kun la modelo ${t.pattern}`;return`Nevalida ${r[t.format]??e.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${e.divisor}`;case"unrecognized_keys":return`Nekonata${e.keys.length>1?"j":""} ŝlosilo${e.keys.length>1?"j":""}: ${p(e.keys,", ")}`;case"invalid_key":return`Nevalida ŝlosilo en ${e.origin}`;case"invalid_union":default:return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${e.origin}`}}};function i7(){return{localeError:i9()}}let ne=()=>{let e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function t(t){return e[t]??null}let r={regex:"entrada",email:"dirección de correo electrónico",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duración ISO",ipv4:"dirección IPv4",ipv6:"dirección IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"},i={nan:"NaN",string:"texto",number:"número",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"número grande",symbol:"símbolo",undefined:"indefinido",null:"nulo",function:"función",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeración",union:"unión",literal:"literal",promise:"promesa",void:"vacío",never:"nunca",unknown:"desconocido",any:"cualquiera"};return e=>{switch(e.code){case"invalid_type":{let t=i[e.expected]??e.expected,r=es(e.input),n=i[r]??r;if(/^[A-Z]/.test(e.expected))return`Entrada inv\xe1lida: se esperaba instanceof ${e.expected}, recibido ${n}`;return`Entrada inv\xe1lida: se esperaba ${t}, recibido ${n}`}case"invalid_value":if(1===e.values.length)return`Entrada inv\xe1lida: se esperaba ${F(e.values[0])}`;return`Opci\xf3n inv\xe1lida: se esperaba una de ${p(e.values,"|")}`;case"too_big":{let r=e.inclusive?"<=":"<",n=t(e.origin),a=i[e.origin]??e.origin;if(n)return`Demasiado grande: se esperaba que ${a??"valor"} tuviera ${r}${e.maximum.toString()} ${n.unit??"elementos"}`;return`Demasiado grande: se esperaba que ${a??"valor"} fuera ${r}${e.maximum.toString()}`}case"too_small":{let r=e.inclusive?">=":">",n=t(e.origin),a=i[e.origin]??e.origin;if(n)return`Demasiado peque\xf1o: se esperaba que ${a} tuviera ${r}${e.minimum.toString()} ${n.unit}`;return`Demasiado peque\xf1o: se esperaba que ${a} fuera ${r}${e.minimum.toString()}`}case"invalid_format":{let t=e;if("starts_with"===t.format)return`Cadena inv\xe1lida: debe comenzar con "${t.prefix}"`;if("ends_with"===t.format)return`Cadena inv\xe1lida: debe terminar en "${t.suffix}"`;if("includes"===t.format)return`Cadena inv\xe1lida: debe incluir "${t.includes}"`;if("regex"===t.format)return`Cadena inv\xe1lida: debe coincidir con el patr\xf3n ${t.pattern}`;return`Inv\xe1lido ${r[t.format]??e.format}`}case"not_multiple_of":return`N\xfamero inv\xe1lido: debe ser m\xfaltiplo de ${e.divisor}`;case"unrecognized_keys":return`Llave${e.keys.length>1?"s":""} desconocida${e.keys.length>1?"s":""}: ${p(e.keys,", ")}`;case"invalid_key":return`Llave inv\xe1lida en ${i[e.origin]??e.origin}`;case"invalid_union":default:return"Entrada inválida";case"invalid_element":return`Valor inv\xe1lido en ${i[e.origin]??e.origin}`}}};function nt(){return{localeError:ne()}}let nr=()=>{let e={string:{unit:"کاراکتر",verb:"داشته باشد"},file:{unit:"بایت",verb:"داشته باشد"},array:{unit:"آیتم",verb:"داشته باشد"},set:{unit:"آیتم",verb:"داشته باشد"}};function t(t){return e[t]??null}let r={regex:"ورودی",email:"آدرس ایمیل",url:"URL",emoji:"ایموجی",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"تاریخ و زمان ایزو",date:"تاریخ ایزو",time:"زمان ایزو",duration:"مدت زمان ایزو",ipv4:"IPv4 آدرس",ipv6:"IPv6 آدرس",cidrv4:"IPv4 دامنه",cidrv6:"IPv6 دامنه",base64:"base64-encoded رشته",base64url:"base64url-encoded رشته",json_string:"JSON رشته",e164:"E.164 عدد",jwt:"JWT",template_literal:"ورودی"},i={nan:"NaN",number:"عدد",array:"آرایه"};return e=>{switch(e.code){case"invalid_type":{let t=i[e.expected]??e.expected,r=es(e.input),n=i[r]??r;if(/^[A-Z]/.test(e.expected))return`ورودی نامعتبر: میبایست instanceof ${e.expected} میبود، ${n} دریافت شد`;return`ورودی نامعتبر: میبایست ${t} میبود، ${n} دریافت شد`}case"invalid_value":if(1===e.values.length)return`ورودی نامعتبر: میبایست ${F(e.values[0])} میبود`;return`گزینه نامعتبر: میبایست یکی از ${p(e.values,"|")} میبود`;case"too_big":{let r=e.inclusive?"<=":"<",i=t(e.origin);if(i)return`خیلی بزرگ: ${e.origin??"مقدار"} باید ${r}${e.maximum.toString()} ${i.unit??"عنصر"} باشد`;return`خیلی بزرگ: ${e.origin??"مقدار"} باید ${r}${e.maximum.toString()} باشد`}case"too_small":{let r=e.inclusive?">=":">",i=t(e.origin);if(i)return`خیلی کوچک: ${e.origin} باید ${r}${e.minimum.toString()} ${i.unit} باشد`;return`خیلی کوچک: ${e.origin} باید ${r}${e.minimum.toString()} باشد`}case"invalid_format":{let t=e;if("starts_with"===t.format)return`رشته نامعتبر: باید با "${t.prefix}" شروع شود`;if("ends_with"===t.format)return`رشته نامعتبر: باید با "${t.suffix}" تمام شود`;if("includes"===t.format)return`رشته نامعتبر: باید شامل "${t.includes}" باشد`;if("regex"===t.format)return`رشته نامعتبر: باید با الگوی ${t.pattern} مطابقت داشته باشد`;return`${r[t.format]??e.format} نامعتبر`}case"not_multiple_of":return`عدد نامعتبر: باید مضرب ${e.divisor} باشد`;case"unrecognized_keys":return`کلید${e.keys.length>1?"های":""} ناشناس: ${p(e.keys,", ")}`;case"invalid_key":return`کلید ناشناس در ${e.origin}`;case"invalid_union":default:return"ورودی نامعتبر";case"invalid_element":return`مقدار نامعتبر در ${e.origin}`}}};function ni(){return{localeError:nr()}}let nn=()=>{let e={string:{unit:"merkkiä",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"päivämäärän"}};function t(t){return e[t]??null}let r={regex:"säännöllinen lauseke",email:"sähköpostiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-päivämäärä",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",jwt:"JWT",template_literal:"templaattimerkkijono"},i={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":{let t=i[e.expected]??e.expected,r=es(e.input),n=i[r]??r;if(/^[A-Z]/.test(e.expected))return`Virheellinen tyyppi: odotettiin instanceof ${e.expected}, oli ${n}`;return`Virheellinen tyyppi: odotettiin ${t}, oli ${n}`}case"invalid_value":if(1===e.values.length)return`Virheellinen sy\xf6te: t\xe4ytyy olla ${F(e.values[0])}`;return`Virheellinen valinta: t\xe4ytyy olla yksi seuraavista: ${p(e.values,"|")}`;case"too_big":{let r=e.inclusive?"<=":"<",i=t(e.origin);if(i)return`Liian suuri: ${i.subject} t\xe4ytyy olla ${r}${e.maximum.toString()} ${i.unit}`.trim();return`Liian suuri: arvon t\xe4ytyy olla ${r}${e.maximum.toString()}`}case"too_small":{let r=e.inclusive?">=":">",i=t(e.origin);if(i)return`Liian pieni: ${i.subject} t\xe4ytyy olla ${r}${e.minimum.toString()} ${i.unit}`.trim();return`Liian pieni: arvon t\xe4ytyy olla ${r}${e.minimum.toString()}`}case"invalid_format":{let t=e;if("starts_with"===t.format)return`Virheellinen sy\xf6te: t\xe4ytyy alkaa "${t.prefix}"`;if("ends_with"===t.format)return`Virheellinen sy\xf6te: t\xe4ytyy loppua "${t.suffix}"`;if("includes"===t.format)return`Virheellinen sy\xf6te: t\xe4ytyy sis\xe4lt\xe4\xe4 "${t.includes}"`;if("regex"===t.format)return`Virheellinen sy\xf6te: t\xe4ytyy vastata s\xe4\xe4nn\xf6llist\xe4 lauseketta ${t.pattern}`;return`Virheellinen ${r[t.format]??e.format}`}case"not_multiple_of":return`Virheellinen luku: t\xe4ytyy olla luvun ${e.divisor} monikerta`;case"unrecognized_keys":return`${e.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${p(e.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen syöte"}}};function na(){return{localeError:nn()}}let no=()=>{let e={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}};function t(t){return e[t]??null}let r={regex:"entrée",email:"adresse e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"durée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne encodée en base64",base64url:"chaîne encodée en base64url",json_string:"chaîne JSON",e164:"numéro E.164",jwt:"JWT",template_literal:"entrée"},i={nan:"NaN",number:"nombre",array:"tableau"};return e=>{switch(e.code){case"invalid_type":{let t=i[e.expected]??e.expected,r=es(e.input),n=i[r]??r;if(/^[A-Z]/.test(e.expected))return`Entr\xe9e invalide : instanceof ${e.expected} attendu, ${n} re\xe7u`;return`Entr\xe9e invalide : ${t} attendu, ${n} re\xe7u`}case"invalid_value":if(1===e.values.length)return`Entr\xe9e invalide : ${F(e.values[0])} attendu`;return`Option invalide : une valeur parmi ${p(e.values,"|")} attendue`;case"too_big":{let r=e.inclusive?"<=":"<",i=t(e.origin);if(i)return`Trop grand : ${e.origin??"valeur"} doit ${i.verb} ${r}${e.maximum.toString()} ${i.unit??"élément(s)"}`;return`Trop grand : ${e.origin??"valeur"} doit \xeatre ${r}${e.maximum.toString()}`}case"too_small":{let r=e.inclusive?">=":">",i=t(e.origin);if(i)return`Trop petit : ${e.origin} doit ${i.verb} ${r}${e.minimum.toString()} ${i.unit}`;return`Trop petit : ${e.origin} doit \xeatre ${r}${e.minimum.toString()}`}case"invalid_format":{let t=e;if("starts_with"===t.format)return`Cha\xeene invalide : doit commencer par "${t.prefix}"`;if("ends_with"===t.format)return`Cha\xeene invalide : doit se terminer par "${t.suffix}"`;if("includes"===t.format)return`Cha\xeene invalide : doit inclure "${t.includes}"`;if("regex"===t.format)return`Cha\xeene invalide : doit correspondre au mod\xe8le ${t.pattern}`;return`${r[t.format]??e.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xeatre un multiple de ${e.divisor}`;case"unrecognized_keys":return`Cl\xe9${e.keys.length>1?"s":""} non reconnue${e.keys.length>1?"s":""} : ${p(e.keys,", ")}`;case"invalid_key":return`Cl\xe9 invalide dans ${e.origin}`;case"invalid_union":default:return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${e.origin}`}}};function ns(){return{localeError:no()}}let nu=()=>{let e={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}};function t(t){return e[t]??null}let r={regex:"entrée",email:"adresse courriel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"durée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne encodée en base64",base64url:"chaîne encodée en base64url",json_string:"chaîne JSON",e164:"numéro E.164",jwt:"JWT",template_literal:"entrée"},i={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":{let t=i[e.expected]??e.expected,r=es(e.input),n=i[r]??r;if(/^[A-Z]/.test(e.expected))return`Entr\xe9e invalide : attendu instanceof ${e.expected}, re\xe7u ${n}`;return`Entr\xe9e invalide : attendu ${t}, re\xe7u ${n}`}case"invalid_value":if(1===e.values.length)return`Entr\xe9e invalide : attendu ${F(e.values[0])}`;return`Option invalide : attendu l'une des valeurs suivantes ${p(e.values,"|")}`;case"too_big":{let r=e.inclusive?"≤":"<",i=t(e.origin);if(i)return`Trop grand : attendu que ${e.origin??"la valeur"} ait ${r}${e.maximum.toString()} ${i.unit}`;return`Trop grand : attendu que ${e.origin??"la valeur"} soit ${r}${e.maximum.toString()}`}case"too_small":{let r=e.inclusive?"≥":">",i=t(e.origin);if(i)return`Trop petit : attendu que ${e.origin} ait ${r}${e.minimum.toString()} ${i.unit}`;return`Trop petit : attendu que ${e.origin} soit ${r}${e.minimum.toString()}`}case"invalid_format":{let t=e;if("starts_with"===t.format)return`Cha\xeene invalide : doit commencer par "${t.prefix}"`;if("ends_with"===t.format)return`Cha\xeene invalide : doit se terminer par "${t.suffix}"`;if("includes"===t.format)return`Cha\xeene invalide : doit inclure "${t.includes}"`;if("regex"===t.format)return`Cha\xeene invalide : doit correspondre au motif ${t.pattern}`;return`${r[t.format]??e.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xeatre un multiple de ${e.divisor}`;case"unrecognized_keys":return`Cl\xe9${e.keys.length>1?"s":""} non reconnue${e.keys.length>1?"s":""} : ${p(e.keys,", ")}`;case"invalid_key":return`Cl\xe9 invalide dans ${e.origin}`;case"invalid_union":default:return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${e.origin}`}}};function nf(){return{localeError:nu()}}let nc=()=>{let e={string:{label:"מחרוזת",gender:"f"},number:{label:"מספר",gender:"m"},boolean:{label:"ערך בוליאני",gender:"m"},bigint:{label:"BigInt",gender:"m"},date:{label:"תאריך",gender:"m"},array:{label:"מערך",gender:"m"},object:{label:"אובייקט",gender:"m"},null:{label:"ערך ריק (null)",gender:"m"},undefined:{label:"ערך לא מוגדר (undefined)",gender:"m"},symbol:{label:"סימבול (Symbol)",gender:"m"},function:{label:"פונקציה",gender:"f"},map:{label:"מפה (Map)",gender:"f"},set:{label:"קבוצה (Set)",gender:"f"},file:{label:"קובץ",gender:"m"},promise:{label:"Promise",gender:"m"},NaN:{label:"NaN",gender:"m"},unknown:{label:"ערך לא ידוע",gender:"m"},value:{label:"ערך",gender:"m"}},t={string:{unit:"תווים",shortLabel:"קצר",longLabel:"ארוך"},file:{unit:"בייטים",shortLabel:"קטן",longLabel:"גדול"},array:{unit:"פריטים",shortLabel:"קטן",longLabel:"גדול"},set:{unit:"פריטים",shortLabel:"קטן",longLabel:"גדול"},number:{unit:"",shortLabel:"קטן",longLabel:"גדול"}},r=t=>t?e[t]:void 0,i=t=>{let i=r(t);return i?i.label:t??e.unknown.label},n=e=>`ה${i(e)}`,a=e=>{let t=r(e);return"f"===(t?.gender??"m")?"צריכה להיות":"צריך להיות"},o=e=>e?t[e]??null:null,s={regex:{label:"קלט",gender:"m"},email:{label:"כתובת אימייל",gender:"f"},url:{label:"כתובת רשת",gender:"f"},emoji:{label:"אימוג'י",gender:"m"},uuid:{label:"UUID",gender:"m"},nanoid:{label:"nanoid",gender:"m"},guid:{label:"GUID",gender:"m"},cuid:{label:"cuid",gender:"m"},cuid2:{label:"cuid2",gender:"m"},ulid:{label:"ULID",gender:"m"},xid:{label:"XID",gender:"m"},ksuid:{label:"KSUID",gender:"m"},datetime:{label:"תאריך וזמן ISO",gender:"m"},date:{label:"תאריך ISO",gender:"m"},time:{label:"זמן ISO",gender:"m"},duration:{label:"משך זמן ISO",gender:"m"},ipv4:{label:"כתובת IPv4",gender:"f"},ipv6:{label:"כתובת IPv6",gender:"f"},cidrv4:{label:"טווח IPv4",gender:"m"},cidrv6:{label:"טווח IPv6",gender:"m"},base64:{label:"מחרוזת בבסיס 64",gender:"f"},base64url:{label:"מחרוזת בבסיס 64 לכתובות רשת",gender:"f"},json_string:{label:"מחרוזת JSON",gender:"f"},e164:{label:"מספר E.164",gender:"m"},jwt:{label:"JWT",gender:"m"},ends_with:{label:"קלט",gender:"m"},includes:{label:"קלט",gender:"m"},lowercase:{label:"קלט",gender:"m"},starts_with:{label:"קלט",gender:"m"},uppercase:{label:"קלט",gender:"m"}},u={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{let r=t.expected,n=u[r??""]??i(r),a=es(t.input),o=u[a]??e[a]?.label??a;if(/^[A-Z]/.test(t.expected))return`קלט לא תקין: צריך להיות instanceof ${t.expected}, התקבל ${o}`;return`קלט לא תקין: צריך להיות ${n}, התקבל ${o}`}case"invalid_value":{if(1===t.values.length)return`ערך לא תקין: הערך חייב להיות ${F(t.values[0])}`;let e=t.values.map(e=>F(e));if(2===t.values.length)return`ערך לא תקין: האפשרויות המתאימות הן ${e[0]} או ${e[1]}`;let r=e[e.length-1],i=e.slice(0,-1).join(", ");return`ערך לא תקין: האפשרויות המתאימות הן ${i} או ${r}`}case"too_big":{let e=o(t.origin),r=n(t.origin??"value");if("string"===t.origin)return`${e?.longLabel??"ארוך"} מדי: ${r} צריכה להכיל ${t.maximum.toString()} ${e?.unit??""} ${t.inclusive?"או פחות":"לכל היותר"}`.trim();if("number"===t.origin){let e=t.inclusive?`קטן או שווה ל-${t.maximum}`:`קטן מ-${t.maximum}`;return`גדול מדי: ${r} צריך להיות ${e}`}if("array"===t.origin||"set"===t.origin){let i="set"===t.origin?"צריכה":"צריך",n=t.inclusive?`${t.maximum} ${e?.unit??""} או פחות`:`פחות מ-${t.maximum} ${e?.unit??""}`;return`גדול מדי: ${r} ${i} להכיל ${n}`.trim()}let i=t.inclusive?"<=":"<",s=a(t.origin??"value");if(e?.unit)return`${e.longLabel} מדי: ${r} ${s} ${i}${t.maximum.toString()} ${e.unit}`;return`${e?.longLabel??"גדול"} מדי: ${r} ${s} ${i}${t.maximum.toString()}`}case"too_small":{let e=o(t.origin),r=n(t.origin??"value");if("string"===t.origin)return`${e?.shortLabel??"קצר"} מדי: ${r} צריכה להכיל ${t.minimum.toString()} ${e?.unit??""} ${t.inclusive?"או יותר":"לפחות"}`.trim();if("number"===t.origin){let e=t.inclusive?`גדול או שווה ל-${t.minimum}`:`גדול מ-${t.minimum}`;return`קטן מדי: ${r} צריך להיות ${e}`}if("array"===t.origin||"set"===t.origin){let i="set"===t.origin?"צריכה":"צריך";if(1===t.minimum&&t.inclusive){let e=(t.origin,"לפחות פריט אחד");return`קטן מדי: ${r} ${i} להכיל ${e}`}let n=t.inclusive?`${t.minimum} ${e?.unit??""} או יותר`:`יותר מ-${t.minimum} ${e?.unit??""}`;return`קטן מדי: ${r} ${i} להכיל ${n}`.trim()}let i=t.inclusive?">=":">",s=a(t.origin??"value");if(e?.unit)return`${e.shortLabel} מדי: ${r} ${s} ${i}${t.minimum.toString()} ${e.unit}`;return`${e?.shortLabel??"קטן"} מדי: ${r} ${s} ${i}${t.minimum.toString()}`}case"invalid_format":{let e=t;if("starts_with"===e.format)return`המחרוזת חייבת להתחיל ב "${e.prefix}"`;if("ends_with"===e.format)return`המחרוזת חייבת להסתיים ב "${e.suffix}"`;if("includes"===e.format)return`המחרוזת חייבת לכלול "${e.includes}"`;if("regex"===e.format)return`המחרוזת חייבת להתאים לתבנית ${e.pattern}`;let r=s[e.format],i=r?.label??e.format,n="f"===(r?.gender??"m")?"תקינה":"תקין";return`${i} לא ${n}`}case"not_multiple_of":return`מספר לא תקין: חייב להיות מכפלה של ${t.divisor}`;case"unrecognized_keys":return`מפתח${t.keys.length>1?"ות":""} לא מזוה${t.keys.length>1?"ים":"ה"}: ${p(t.keys,", ")}`;case"invalid_key":return"שדה לא תקין באובייקט";case"invalid_union":default:return"קלט לא תקין";case"invalid_element":{let e=n(t.origin??"array");return`ערך לא תקין ב${e}`}}}};function nd(){return{localeError:nc()}}let nl=()=>{let e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function t(t){return e[t]??null}let r={regex:"bemenet",email:"email cím",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO időbélyeg",date:"ISO dátum",time:"ISO idő",duration:"ISO időintervallum",ipv4:"IPv4 cím",ipv6:"IPv6 cím",cidrv4:"IPv4 tartomány",cidrv6:"IPv6 tartomány",base64:"base64-kódolt string",base64url:"base64url-kódolt string",json_string:"JSON string",e164:"E.164 szám",jwt:"JWT",template_literal:"bemenet"},i={nan:"NaN",number:"szám",array:"tömb"};return e=>{switch(e.code){case"invalid_type":{let t=i[e.expected]??e.expected,r=es(e.input),n=i[r]??r;if(/^[A-Z]/.test(e.expected))return`\xc9rv\xe9nytelen bemenet: a v\xe1rt \xe9rt\xe9k instanceof ${e.expected}, a kapott \xe9rt\xe9k ${n}`;return`\xc9rv\xe9nytelen bemenet: a v\xe1rt \xe9rt\xe9k ${t}, a kapott \xe9rt\xe9k ${n}`}case"invalid_value":if(1===e.values.length)return`\xc9rv\xe9nytelen bemenet: a v\xe1rt \xe9rt\xe9k ${F(e.values[0])}`;return`\xc9rv\xe9nytelen opci\xf3: valamelyik \xe9rt\xe9k v\xe1rt ${p(e.values,"|")}`;case"too_big":{let r=e.inclusive?"<=":"<",i=t(e.origin);if(i)return`T\xfal nagy: ${e.origin??"érték"} m\xe9rete t\xfal nagy ${r}${e.maximum.toString()} ${i.unit??"elem"}`;return`T\xfal nagy: a bemeneti \xe9rt\xe9k ${e.origin??"érték"} t\xfal nagy: ${r}${e.maximum.toString()}`}case"too_small":{let r=e.inclusive?">=":">",i=t(e.origin);if(i)return`T\xfal kicsi: a bemeneti \xe9rt\xe9k ${e.origin} m\xe9rete t\xfal kicsi ${r}${e.minimum.toString()} ${i.unit}`;return`T\xfal kicsi: a bemeneti \xe9rt\xe9k ${e.origin} t\xfal kicsi ${r}${e.minimum.toString()}`}case"invalid_format":{let t=e;if("starts_with"===t.format)return`\xc9rv\xe9nytelen string: "${t.prefix}" \xe9rt\xe9kkel kell kezdődnie`;if("ends_with"===t.format)return`\xc9rv\xe9nytelen string: "${t.suffix}" \xe9rt\xe9kkel kell v\xe9gződnie`;if("includes"===t.format)return`\xc9rv\xe9nytelen string: "${t.includes}" \xe9rt\xe9ket kell tartalmaznia`;if("regex"===t.format)return`\xc9rv\xe9nytelen string: ${t.pattern} mint\xe1nak kell megfelelnie`;return`\xc9rv\xe9nytelen ${r[t.format]??e.format}`}case"not_multiple_of":return`\xc9rv\xe9nytelen sz\xe1m: ${e.divisor} t\xf6bbsz\xf6r\xf6s\xe9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${e.keys.length>1?"s":""}: ${p(e.keys,", ")}`;case"invalid_key":return`\xc9rv\xe9nytelen kulcs ${e.origin}`;case"invalid_union":default:return"Érvénytelen bemenet";case"invalid_element":return`\xc9rv\xe9nytelen \xe9rt\xe9k: ${e.origin}`}}};function nh(){return{localeError:nl()}}function np(e,t,r){return 1===Math.abs(e)?t:r}function nm(e){if(!e)return"";let t=["ա","ե","ը","ի","ո","ու","օ"],r=e[e.length-1];return e+(t.includes(r)?"ն":"ը")}let nb=()=>{let e={string:{unit:{one:"նշան",many:"նշաններ"},verb:"ունենալ"},file:{unit:{one:"բայթ",many:"բայթեր"},verb:"ունենալ"},array:{unit:{one:"տարր",many:"տարրեր"},verb:"ունենալ"},set:{unit:{one:"տարր",many:"տարրեր"},verb:"ունենալ"}};function t(t){return e[t]??null}let r={regex:"մուտք",email:"էլ. հասցե",url:"URL",emoji:"էմոջի",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO ամսաթիվ և ժամ",date:"ISO ամսաթիվ",time:"ISO ժամ",duration:"ISO տևողություն",ipv4:"IPv4 հասցե",ipv6:"IPv6 հասցե",cidrv4:"IPv4 միջակայք",cidrv6:"IPv6 միջակայք",base64:"base64 ձևաչափով տող",base64url:"base64url ձևաչափով տող",json_string:"JSON տող",e164:"E.164 համար",jwt:"JWT",template_literal:"մուտք"},i={nan:"NaN",number:"թիվ",array:"զանգված"};return e=>{switch(e.code){case"invalid_type":{let t=i[e.expected]??e.expected,r=es(e.input),n=i[r]??r;if(/^[A-Z]/.test(e.expected))return`Սխալ մուտքագրում․ սպասվում էր instanceof ${e.expected}, ստացվել է ${n}`;return`Սխալ մուտքագրում․ սպասվում էր ${t}, ստացվել է ${n}`}case"invalid_value":if(1===e.values.length)return`Սխալ մուտքագրում․ սպասվում էր ${F(e.values[1])}`;return`Սխալ տարբերակ․ սպասվում էր հետևյալներից մեկը՝ ${p(e.values,"|")}`;case"too_big":{let r=e.inclusive?"<=":"<",i=t(e.origin);if(i){let t=np(Number(e.maximum),i.unit.one,i.unit.many);return`Չափազանց մեծ արժեք․ սպասվում է, որ ${nm(e.origin??"արժեք")} կունենա ${r}${e.maximum.toString()} ${t}`}return`Չափազանց մեծ արժեք․ սպասվում է, որ ${nm(e.origin??"արժեք")} լինի ${r}${e.maximum.toString()}`}case"too_small":{let r=e.inclusive?">=":">",i=t(e.origin);if(i){let t=np(Number(e.minimum),i.unit.one,i.unit.many);return`Չափազանց փոքր արժեք․ սպասվում է, որ ${nm(e.origin)} կունենա ${r}${e.minimum.toString()} ${t}`}return`Չափազանց փոքր արժեք․ սպասվում է, որ ${nm(e.origin)} լինի ${r}${e.minimum.toString()}`}case"invalid_format":{let t=e;if("starts_with"===t.format)return`Սխալ տող․ պետք է սկսվի "${t.prefix}"-ով`;if("ends_with"===t.format)return`Սխալ տող․ պետք է ավարտվի "${t.suffix}"-ով`;if("includes"===t.format)return`Սխալ տող․ պետք է պարունակի "${t.includes}"`;if("regex"===t.format)return`Սխալ տող․ պետք է համապատասխանի ${t.pattern} ձևաչափին`;return`Սխալ ${r[t.format]??e.format}`}case"not_multiple_of":return`Սխալ թիվ․ պետք է բազմապատիկ լինի ${e.divisor}-ի`;case"unrecognized_keys":return`Չճանաչված բանալի${e.keys.length>1?"ներ":""}. ${p(e.keys,", ")}`;case"invalid_key":return`Սխալ բանալի ${nm(e.origin)}-ում`;case"invalid_union":default:return"Սխալ մուտքագրում";case"invalid_element":return`Սխալ արժեք ${nm(e.origin)}-ում`}}};function ng(){return{localeError:nb()}}let nv=()=>{let e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function t(t){return e[t]??null}let r={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":{let t=i[e.expected]??e.expected,r=es(e.input),n=i[r]??r;if(/^[A-Z]/.test(e.expected))return`Input tidak valid: diharapkan instanceof ${e.expected}, diterima ${n}`;return`Input tidak valid: diharapkan ${t}, diterima ${n}`}case"invalid_value":if(1===e.values.length)return`Input tidak valid: diharapkan ${F(e.values[0])}`;return`Pilihan tidak valid: diharapkan salah satu dari ${p(e.values,"|")}`;case"too_big":{let r=e.inclusive?"<=":"<",i=t(e.origin);if(i)return`Terlalu besar: diharapkan ${e.origin??"value"} memiliki ${r}${e.maximum.toString()} ${i.unit??"elemen"}`;return`Terlalu besar: diharapkan ${e.origin??"value"} menjadi ${r}${e.maximum.toString()}`}case"too_small":{let r=e.inclusive?">=":">",i=t(e.origin);if(i)return`Terlalu kecil: diharapkan ${e.origin} memiliki ${r}${e.minimum.toString()} ${i.unit}`;return`Terlalu kecil: diharapkan ${e.origin} menjadi ${r}${e.minimum.toString()}`}case"invalid_format":{let t=e;if("starts_with"===t.format)return`String tidak valid: harus dimulai dengan "${t.prefix}"`;if("ends_with"===t.format)return`String tidak valid: harus berakhir dengan "${t.suffix}"`;if("includes"===t.format)return`String tidak valid: harus menyertakan "${t.includes}"`;if("regex"===t.format)return`String tidak valid: harus sesuai pola ${t.pattern}`;return`${r[t.format]??e.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${e.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${e.keys.length>1?"s":""}: ${p(e.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${e.origin}`;case"invalid_union":default:return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${e.origin}`}}};function ny(){return{localeError:nv()}}let n_=()=>{let e={string:{unit:"stafi",verb:"að hafa"},file:{unit:"bæti",verb:"að hafa"},array:{unit:"hluti",verb:"að hafa"},set:{unit:"hluti",verb:"að hafa"}};function t(t){return e[t]??null}let r={regex:"gildi",email:"netfang",url:"vefslóð",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dagsetning og tími",date:"ISO dagsetning",time:"ISO tími",duration:"ISO tímalengd",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 tölugildi",jwt:"JWT",template_literal:"gildi"},i={nan:"NaN",number:"númer",array:"fylki"};return e=>{switch(e.code){case"invalid_type":{let t=i[e.expected]??e.expected,r=es(e.input),n=i[r]??r;if(/^[A-Z]/.test(e.expected))return`Rangt gildi: \xde\xfa sl\xf3st inn ${n} \xfear sem \xe1 a\xf0 vera instanceof ${e.expected}`;return`Rangt gildi: \xde\xfa sl\xf3st inn ${n} \xfear sem \xe1 a\xf0 vera ${t}`}case"invalid_value":if(1===e.values.length)return`Rangt gildi: gert r\xe1\xf0 fyrir ${F(e.values[0])}`;return`\xd3gilt val: m\xe1 vera eitt af eftirfarandi ${p(e.values,"|")}`;case"too_big":{let r=e.inclusive?"<=":"<",i=t(e.origin);if(i)return`Of st\xf3rt: gert er r\xe1\xf0 fyrir a\xf0 ${e.origin??"gildi"} hafi ${r}${e.maximum.toString()} ${i.unit??"hluti"}`;return`Of st\xf3rt: gert er r\xe1\xf0 fyrir a\xf0 ${e.origin??"gildi"} s\xe9 ${r}${e.maximum.toString()}`}case"too_small":{let r=e.inclusive?">=":">",i=t(e.origin);if(i)return`Of l\xedti\xf0: gert er r\xe1\xf0 fyrir a\xf0 ${e.origin} hafi ${r}${e.minimum.toString()} ${i.unit}`;return`Of l\xedti\xf0: gert er r\xe1\xf0 fyrir a\xf0 ${e.origin} s\xe9 ${r}${e.minimum.toString()}`}case"invalid_format":{let t=e;if("starts_with"===t.format)return`\xd3gildur strengur: ver\xf0ur a\xf0 byrja \xe1 "${t.prefix}"`;if("ends_with"===t.format)return`\xd3gildur strengur: ver\xf0ur a\xf0 enda \xe1 "${t.suffix}"`;if("includes"===t.format)return`\xd3gildur strengur: ver\xf0ur a\xf0 innihalda "${t.includes}"`;if("regex"===t.format)return`\xd3gildur strengur: ver\xf0ur a\xf0 fylgja mynstri ${t.pattern}`;return`Rangt ${r[t.format]??e.format}`}case"not_multiple_of":return`R\xf6ng tala: ver\xf0ur a\xf0 vera margfeldi af ${e.divisor}`;case"unrecognized_keys":return`\xd3\xfeekkt ${e.keys.length>1?"ir lyklar":"ur lykill"}: ${p(e.keys,", ")}`;case"invalid_key":return`Rangur lykill \xed ${e.origin}`;case"invalid_union":default:return"Rangt gildi";case"invalid_element":return`Rangt gildi \xed ${e.origin}`}}};function nx(){return{localeError:n_()}}let nw=()=>{let e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function t(t){return e[t]??null}let r={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"numero",array:"vettore"};return e=>{switch(e.code){case"invalid_type":{let t=i[e.expected]??e.expected,r=es(e.input),n=i[r]??r;if(/^[A-Z]/.test(e.expected))return`Input non valido: atteso instanceof ${e.expected}, ricevuto ${n}`;return`Input non valido: atteso ${t}, ricevuto ${n}`}case"invalid_value":if(1===e.values.length)return`Input non valido: atteso ${F(e.values[0])}`;return`Opzione non valida: atteso uno tra ${p(e.values,"|")}`;case"too_big":{let r=e.inclusive?"<=":"<",i=t(e.origin);if(i)return`Troppo grande: ${e.origin??"valore"} deve avere ${r}${e.maximum.toString()} ${i.unit??"elementi"}`;return`Troppo grande: ${e.origin??"valore"} deve essere ${r}${e.maximum.toString()}`}case"too_small":{let r=e.inclusive?">=":">",i=t(e.origin);if(i)return`Troppo piccolo: ${e.origin} deve avere ${r}${e.minimum.toString()} ${i.unit}`;return`Troppo piccolo: ${e.origin} deve essere ${r}${e.minimum.toString()}`}case"invalid_format":{let t=e;if("starts_with"===t.format)return`Stringa non valida: deve iniziare con "${t.prefix}"`;if("ends_with"===t.format)return`Stringa non valida: deve terminare con "${t.suffix}"`;if("includes"===t.format)return`Stringa non valida: deve includere "${t.includes}"`;if("regex"===t.format)return`Stringa non valida: deve corrispondere al pattern ${t.pattern}`;return`Invalid ${r[t.format]??e.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${e.divisor}`;case"unrecognized_keys":return`Chiav${e.keys.length>1?"i":"e"} non riconosciut${e.keys.length>1?"e":"a"}: ${p(e.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${e.origin}`;case"invalid_union":default:return"Input non valido";case"invalid_element":return`Valore non valido in ${e.origin}`}}};function nS(){return{localeError:nw()}}let nk=()=>{let e={string:{unit:"文字",verb:"である"},file:{unit:"バイト",verb:"である"},array:{unit:"要素",verb:"である"},set:{unit:"要素",verb:"である"}};function t(t){return e[t]??null}let r={regex:"入力値",email:"メールアドレス",url:"URL",emoji:"絵文字",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO日時",date:"ISO日付",time:"ISO時刻",duration:"ISO期間",ipv4:"IPv4アドレス",ipv6:"IPv6アドレス",cidrv4:"IPv4範囲",cidrv6:"IPv6範囲",base64:"base64エンコード文字列",base64url:"base64urlエンコード文字列",json_string:"JSON文字列",e164:"E.164番号",jwt:"JWT",template_literal:"入力値"},i={nan:"NaN",number:"数値",array:"配列"};return e=>{switch(e.code){case"invalid_type":{let t=i[e.expected]??e.expected,r=es(e.input),n=i[r]??r;if(/^[A-Z]/.test(e.expected))return`無効な入力: instanceof ${e.expected}が期待されましたが、${n}が入力されました`;return`無効な入力: ${t}が期待されましたが、${n}が入力されました`}case"invalid_value":if(1===e.values.length)return`無効な入力: ${F(e.values[0])}が期待されました`;return`無効な選択: ${p(e.values,"、")}のいずれかである必要があります`;case"too_big":{let r=e.inclusive?"以下である":"より小さい",i=t(e.origin);if(i)return`大きすぎる値: ${e.origin??"値"}は${e.maximum.toString()}${i.unit??"要素"}${r}必要があります`;return`大きすぎる値: ${e.origin??"値"}は${e.maximum.toString()}${r}必要があります`}case"too_small":{let r=e.inclusive?"以上である":"より大きい",i=t(e.origin);if(i)return`小さすぎる値: ${e.origin}は${e.minimum.toString()}${i.unit}${r}必要があります`;return`小さすぎる値: ${e.origin}は${e.minimum.toString()}${r}必要があります`}case"invalid_format":{let t=e;if("starts_with"===t.format)return`無効な文字列: "${t.prefix}"で始まる必要があります`;if("ends_with"===t.format)return`無効な文字列: "${t.suffix}"で終わる必要があります`;if("includes"===t.format)return`無効な文字列: "${t.includes}"を含む必要があります`;if("regex"===t.format)return`無効な文字列: パターン${t.pattern}に一致する必要があります`;return`無効な${r[t.format]??e.format}`}case"not_multiple_of":return`無効な数値: ${e.divisor}の倍数である必要があります`;case"unrecognized_keys":return`認識されていないキー${e.keys.length>1?"群":""}: ${p(e.keys,"、")}`;case"invalid_key":return`${e.origin}内の無効なキー`;case"invalid_union":default:return"無効な入力";case"invalid_element":return`${e.origin}内の無効な値`}}};function n$(){return{localeError:nk()}}let nI=()=>{let e={string:{unit:"სიმბოლო",verb:"უნდა შეიცავდეს"},file:{unit:"ბაიტი",verb:"უნდა შეიცავდეს"},array:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"},set:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"}};function t(t){return e[t]??null}let r={regex:"შეყვანა",email:"ელ-ფოსტის მისამართი",url:"URL",emoji:"ემოჯი",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"თარიღი-დრო",date:"თარიღი",time:"დრო",duration:"ხანგრძლივობა",ipv4:"IPv4 მისამართი",ipv6:"IPv6 მისამართი",cidrv4:"IPv4 დიაპაზონი",cidrv6:"IPv6 დიაპაზონი",base64:"base64-კოდირებული სტრინგი",base64url:"base64url-კოდირებული სტრინგი",json_string:"JSON სტრინგი",e164:"E.164 ნომერი",jwt:"JWT",template_literal:"შეყვანა"},i={nan:"NaN",number:"რიცხვი",string:"სტრინგი",boolean:"ბულეანი",function:"ფუნქცია",array:"მასივი"};return e=>{switch(e.code){case"invalid_type":{let t=i[e.expected]??e.expected,r=es(e.input),n=i[r]??r;if(/^[A-Z]/.test(e.expected))return`არასწორი შეყვანა: მოსალოდნელი instanceof ${e.expected}, მიღებული ${n}`;return`არასწორი შეყვანა: მოსალოდნელი ${t}, მიღებული ${n}`}case"invalid_value":if(1===e.values.length)return`არასწორი შეყვანა: მოსალოდნელი ${F(e.values[0])}`;return`არასწორი ვარიანტი: მოსალოდნელია ერთ-ერთი ${p(e.values,"|")}-დან`;case"too_big":{let r=e.inclusive?"<=":"<",i=t(e.origin);if(i)return`ზედმეტად დიდი: მოსალოდნელი ${e.origin??"მნიშვნელობა"} ${i.verb} ${r}${e.maximum.toString()} ${i.unit}`;return`ზედმეტად დიდი: მოსალოდნელი ${e.origin??"მნიშვნელობა"} იყოს ${r}${e.maximum.toString()}`}case"too_small":{let r=e.inclusive?">=":">",i=t(e.origin);if(i)return`ზედმეტად პატარა: მოსალოდნელი ${e.origin} ${i.verb} ${r}${e.minimum.toString()} ${i.unit}`;return`ზედმეტად პატარა: მოსალოდნელი ${e.origin} იყოს ${r}${e.minimum.toString()}`}case"invalid_format":{let t=e;if("starts_with"===t.format)return`არასწორი სტრინგი: უნდა იწყებოდეს "${t.prefix}"-ით`;if("ends_with"===t.format)return`არასწორი სტრინგი: უნდა მთავრდებოდეს "${t.suffix}"-ით`;if("includes"===t.format)return`არასწორი სტრინგი: უნდა შეიცავდეს "${t.includes}"-ს`;if("regex"===t.format)return`არასწორი სტრინგი: უნდა შეესაბამებოდეს შაბლონს ${t.pattern}`;return`არასწორი ${r[t.format]??e.format}`}case"not_multiple_of":return`არასწორი რიცხვი: უნდა იყოს ${e.divisor}-ის ჯერადი`;case"unrecognized_keys":return`უცნობი გასაღებ${e.keys.length>1?"ები":"ი"}: ${p(e.keys,", ")}`;case"invalid_key":return`არასწორი გასაღები ${e.origin}-ში`;case"invalid_union":default:return"არასწორი შეყვანა";case"invalid_element":return`არასწორი მნიშვნელობა ${e.origin}-ში`}}};function nM(){return{localeError:nI()}}let nE=()=>{let e={string:{unit:"តួអក្សរ",verb:"គួរមាន"},file:{unit:"បៃ",verb:"គួរមាន"},array:{unit:"ធាតុ",verb:"គួរមាន"},set:{unit:"ធាតុ",verb:"គួរមាន"}};function t(t){return e[t]??null}let r={regex:"ទិន្នន័យបញ្ចូល",email:"អាសយដ្ឋានអ៊ីមែល",url:"URL",emoji:"សញ្ញាអារម្មណ៍",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"កាលបរិច្ឆេទ និងម៉ោង ISO",date:"កាលបរិច្ឆេទ ISO",time:"ម៉ោង ISO",duration:"រយៈពេល ISO",ipv4:"អាសយដ្ឋាន IPv4",ipv6:"អាសយដ្ឋាន IPv6",cidrv4:"ដែនអាសយដ្ឋាន IPv4",cidrv6:"ដែនអាសយដ្ឋាន IPv6",base64:"ខ្សែអក្សរអ៊ិកូដ base64",base64url:"ខ្សែអក្សរអ៊ិកូដ base64url",json_string:"ខ្សែអក្សរ JSON",e164:"លេខ E.164",jwt:"JWT",template_literal:"ទិន្នន័យបញ្ចូល"},i={nan:"NaN",number:"លេខ",array:"អារេ (Array)",null:"គ្មានតម្លៃ (null)"};return e=>{switch(e.code){case"invalid_type":{let t=i[e.expected]??e.expected,r=es(e.input),n=i[r]??r;if(/^[A-Z]/.test(e.expected))return`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ instanceof ${e.expected} ប៉ុន្តែទទួលបាន ${n}`;return`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${t} ប៉ុន្តែទទួលបាន ${n}`}case"invalid_value":if(1===e.values.length)return`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${F(e.values[0])}`;return`ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${p(e.values,"|")}`;case"too_big":{let r=e.inclusive?"<=":"<",i=t(e.origin);if(i)return`ធំពេក៖ ត្រូវការ ${e.origin??"តម្លៃ"} ${r} ${e.maximum.toString()} ${i.unit??"ធាតុ"}`;return`ធំពេក៖ ត្រូវការ ${e.origin??"តម្លៃ"} ${r} ${e.maximum.toString()}`}case"too_small":{let r=e.inclusive?">=":">",i=t(e.origin);if(i)return`តូចពេក៖ ត្រូវការ ${e.origin} ${r} ${e.minimum.toString()} ${i.unit}`;return`តូចពេក៖ ត្រូវការ ${e.origin} ${r} ${e.minimum.toString()}`}case"invalid_format":{let t=e;if("starts_with"===t.format)return`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវចាប់ផ្តើមដោយ "${t.prefix}"`;if("ends_with"===t.format)return`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវបញ្ចប់ដោយ "${t.suffix}"`;if("includes"===t.format)return`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវមាន "${t.includes}"`;if("regex"===t.format)return`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវតែផ្គូផ្គងនឹងទម្រង់ដែលបានកំណត់ ${t.pattern}`;return`មិនត្រឹមត្រូវ៖ ${r[t.format]??e.format}`}case"not_multiple_of":return`លេខមិនត្រឹមត្រូវ៖ ត្រូវតែជាពហុគុណនៃ ${e.divisor}`;case"unrecognized_keys":return`រកឃើញសោមិនស្គាល់៖ ${p(e.keys,", ")}`;case"invalid_key":return`សោមិនត្រឹមត្រូវនៅក្នុង ${e.origin}`;case"invalid_union":default:return"ទិន្នន័យមិនត្រឹមត្រូវ";case"invalid_element":return`ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង ${e.origin}`}}};function nA(){return{localeError:nE()}}function nO(){return nA()}let nN=()=>{let e={string:{unit:"문자",verb:"to have"},file:{unit:"바이트",verb:"to have"},array:{unit:"개",verb:"to have"},set:{unit:"개",verb:"to have"}};function t(t){return e[t]??null}let r={regex:"입력",email:"이메일 주소",url:"URL",emoji:"이모지",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO 날짜시간",date:"ISO 날짜",time:"ISO 시간",duration:"ISO 기간",ipv4:"IPv4 주소",ipv6:"IPv6 주소",cidrv4:"IPv4 범위",cidrv6:"IPv6 범위",base64:"base64 인코딩 문자열",base64url:"base64url 인코딩 문자열",json_string:"JSON 문자열",e164:"E.164 번호",jwt:"JWT",template_literal:"입력"},i={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":{let t=i[e.expected]??e.expected,r=es(e.input),n=i[r]??r;if(/^[A-Z]/.test(e.expected))return`잘못된 입력: 예상 타입은 instanceof ${e.expected}, 받은 타입은 ${n}입니다`;return`잘못된 입력: 예상 타입은 ${t}, 받은 타입은 ${n}입니다`}case"invalid_value":if(1===e.values.length)return`잘못된 입력: 값은 ${F(e.values[0])} 이어야 합니다`;return`잘못된 옵션: ${p(e.values,"또는 ")} 중 하나여야 합니다`;case"too_big":{let r=e.inclusive?"이하":"미만",i="미만"===r?"이어야 합니다":"여야 합니다",n=t(e.origin),a=n?.unit??"요소";if(n)return`${e.origin??"값"}이 너무 큽니다: ${e.maximum.toString()}${a} ${r}${i}`;return`${e.origin??"값"}이 너무 큽니다: ${e.maximum.toString()} ${r}${i}`}case"too_small":{let r=e.inclusive?"이상":"초과",i="이상"===r?"이어야 합니다":"여야 합니다",n=t(e.origin),a=n?.unit??"요소";if(n)return`${e.origin??"값"}이 너무 작습니다: ${e.minimum.toString()}${a} ${r}${i}`;return`${e.origin??"값"}이 너무 작습니다: ${e.minimum.toString()} ${r}${i}`}case"invalid_format":{let t=e;if("starts_with"===t.format)return`잘못된 문자열: "${t.prefix}"(으)로 시작해야 합니다`;if("ends_with"===t.format)return`잘못된 문자열: "${t.suffix}"(으)로 끝나야 합니다`;if("includes"===t.format)return`잘못된 문자열: "${t.includes}"을(를) 포함해야 합니다`;if("regex"===t.format)return`잘못된 문자열: 정규식 ${t.pattern} 패턴과 일치해야 합니다`;return`잘못된 ${r[t.format]??e.format}`}case"not_multiple_of":return`잘못된 숫자: ${e.divisor}의 배수여야 합니다`;case"unrecognized_keys":return`인식할 수 없는 키: ${p(e.keys,", ")}`;case"invalid_key":return`잘못된 키: ${e.origin}`;case"invalid_union":default:return"잘못된 입력";case"invalid_element":return`잘못된 값: ${e.origin}`}}};function nj(){return{localeError:nN()}}let nz=e=>e.charAt(0).toUpperCase()+e.slice(1);function nU(e){let t=Math.abs(e),r=t%10,i=t%100;return i>=11&&i<=19||0===r?"many":1===r?"one":"few"}let nP=()=>{let e={string:{unit:{one:"simbolis",few:"simboliai",many:"simbolių"},verb:{smaller:{inclusive:"turi būti ne ilgesnė kaip",notInclusive:"turi būti trumpesnė kaip"},bigger:{inclusive:"turi būti ne trumpesnė kaip",notInclusive:"turi būti ilgesnė kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"baitų"},verb:{smaller:{inclusive:"turi būti ne didesnis kaip",notInclusive:"turi būti mažesnis kaip"},bigger:{inclusive:"turi būti ne mažesnis kaip",notInclusive:"turi būti didesnis kaip"}}},array:{unit:{one:"elementą",few:"elementus",many:"elementų"},verb:{smaller:{inclusive:"turi turėti ne daugiau kaip",notInclusive:"turi turėti mažiau kaip"},bigger:{inclusive:"turi turėti ne mažiau kaip",notInclusive:"turi turėti daugiau kaip"}}},set:{unit:{one:"elementą",few:"elementus",many:"elementų"},verb:{smaller:{inclusive:"turi turėti ne daugiau kaip",notInclusive:"turi turėti mažiau kaip"},bigger:{inclusive:"turi turėti ne mažiau kaip",notInclusive:"turi turėti daugiau kaip"}}}};function t(t,r,i,n){let a=e[t]??null;return null===a?a:{unit:a.unit[r],verb:a.verb[n][i?"inclusive":"notInclusive"]}}let r={regex:"įvestis",email:"el. pašto adresas",url:"URL",emoji:"jaustukas",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO data ir laikas",date:"ISO data",time:"ISO laikas",duration:"ISO trukmė",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 užkoduota eilutė",base64url:"base64url užkoduota eilutė",json_string:"JSON eilutė",e164:"E.164 numeris",jwt:"JWT",template_literal:"įvestis"},i={nan:"NaN",number:"skaičius",bigint:"sveikasis skaičius",string:"eilutė",boolean:"loginė reikšmė",undefined:"neapibrėžta reikšmė",function:"funkcija",symbol:"simbolis",array:"masyvas",object:"objektas",null:"nulinė reikšmė"};return e=>{switch(e.code){case"invalid_type":{let t=i[e.expected]??e.expected,r=es(e.input),n=i[r]??r;if(/^[A-Z]/.test(e.expected))return`Gautas tipas ${n}, o tikėtasi - instanceof ${e.expected}`;return`Gautas tipas ${n}, o tikėtasi - ${t}`}case"invalid_value":if(1===e.values.length)return`Privalo būti ${F(e.values[0])}`;return`Privalo būti vienas iš ${p(e.values,"|")} pasirinkimų`;case"too_big":{let r=i[e.origin]??e.origin,n=t(e.origin,nU(Number(e.maximum)),e.inclusive??!1,"smaller");if(n?.verb)return`${nz(r??e.origin??"reikšmė")} ${n.verb} ${e.maximum.toString()} ${n.unit??"elementų"}`;let a=e.inclusive?"ne didesnis kaip":"mažesnis kaip";return`${nz(r??e.origin??"reikšmė")} turi būti ${a} ${e.maximum.toString()} ${n?.unit}`}case"too_small":{let r=i[e.origin]??e.origin,n=t(e.origin,nU(Number(e.minimum)),e.inclusive??!1,"bigger");if(n?.verb)return`${nz(r??e.origin??"reikšmė")} ${n.verb} ${e.minimum.toString()} ${n.unit??"elementų"}`;let a=e.inclusive?"ne mažesnis kaip":"didesnis kaip";return`${nz(r??e.origin??"reikšmė")} turi būti ${a} ${e.minimum.toString()} ${n?.unit}`}case"invalid_format":{let t=e;if("starts_with"===t.format)return`Eilutė privalo prasidėti "${t.prefix}"`;if("ends_with"===t.format)return`Eilutė privalo pasibaigti "${t.suffix}"`;if("includes"===t.format)return`Eilutė privalo įtraukti "${t.includes}"`;if("regex"===t.format)return`Eilutė privalo atitikti ${t.pattern}`;return`Neteisingas ${r[t.format]??e.format}`}case"not_multiple_of":return`Skaičius privalo būti ${e.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpažint${e.keys.length>1?"i":"as"} rakt${e.keys.length>1?"ai":"as"}: ${p(e.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":default:return"Klaidinga įvestis";case"invalid_element":{let t=i[e.origin]??e.origin;return`${nz(t??e.origin??"reikšmė")} turi klaidingą įvestį`}}}};function nT(){return{localeError:nP()}}let nR=()=>{let e={string:{unit:"знаци",verb:"да имаат"},file:{unit:"бајти",verb:"да имаат"},array:{unit:"ставки",verb:"да имаат"},set:{unit:"ставки",verb:"да имаат"}};function t(t){return e[t]??null}let r={regex:"внес",email:"адреса на е-пошта",url:"URL",emoji:"емоџи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO датум и време",date:"ISO датум",time:"ISO време",duration:"ISO времетраење",ipv4:"IPv4 адреса",ipv6:"IPv6 адреса",cidrv4:"IPv4 опсег",cidrv6:"IPv6 опсег",base64:"base64-енкодирана низа",base64url:"base64url-енкодирана низа",json_string:"JSON низа",e164:"E.164 број",jwt:"JWT",template_literal:"внес"},i={nan:"NaN",number:"број",array:"низа"};return e=>{switch(e.code){case"invalid_type":{let t=i[e.expected]??e.expected,r=es(e.input),n=i[r]??r;if(/^[A-Z]/.test(e.expected))return`Грешен внес: се очекува instanceof ${e.expected}, примено ${n}`;return`Грешен внес: се очекува ${t}, примено ${n}`}case"invalid_value":if(1===e.values.length)return`Invalid input: expected ${F(e.values[0])}`;return`Грешана опција: се очекува една ${p(e.values,"|")}`;case"too_big":{let r=e.inclusive?"<=":"<",i=t(e.origin);if(i)return`Премногу голем: се очекува ${e.origin??"вредноста"} да има ${r}${e.maximum.toString()} ${i.unit??"елементи"}`;return`Премногу голем: се очекува ${e.origin??"вредноста"} да биде ${r}${e.maximum.toString()}`}case"too_small":{let r=e.inclusive?">=":">",i=t(e.origin);if(i)return`Премногу мал: се очекува ${e.origin} да има ${r}${e.minimum.toString()} ${i.unit}`;return`Премногу мал: се очекува ${e.origin} да биде ${r}${e.minimum.toString()}`}case"invalid_format":{let t=e;if("starts_with"===t.format)return`Неважечка низа: мора да започнува со "${t.prefix}"`;if("ends_with"===t.format)return`Неважечка низа: мора да завршува со "${t.suffix}"`;if("includes"===t.format)return`Неважечка низа: мора да вклучува "${t.includes}"`;if("regex"===t.format)return`Неважечка низа: мора да одгоара на патернот ${t.pattern}`;return`Invalid ${r[t.format]??e.format}`}case"not_multiple_of":return`Грешен број: мора да биде делив со ${e.divisor}`;case"unrecognized_keys":return`${e.keys.length>1?"Непрепознаени клучеви":"Непрепознаен клуч"}: ${p(e.keys,", ")}`;case"invalid_key":return`Грешен клуч во ${e.origin}`;case"invalid_union":default:return"Грешен внес";case"invalid_element":return`Грешна вредност во ${e.origin}`}}};function nD(){return{localeError:nR()}}let nB=()=>{let e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function t(t){return e[t]??null}let r={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"nombor"};return e=>{switch(e.code){case"invalid_type":{let t=i[e.expected]??e.expected,r=es(e.input),n=i[r]??r;if(/^[A-Z]/.test(e.expected))return`Input tidak sah: dijangka instanceof ${e.expected}, diterima ${n}`;return`Input tidak sah: dijangka ${t}, diterima ${n}`}case"invalid_value":if(1===e.values.length)return`Input tidak sah: dijangka ${F(e.values[0])}`;return`Pilihan tidak sah: dijangka salah satu daripada ${p(e.values,"|")}`;case"too_big":{let r=e.inclusive?"<=":"<",i=t(e.origin);if(i)return`Terlalu besar: dijangka ${e.origin??"nilai"} ${i.verb} ${r}${e.maximum.toString()} ${i.unit??"elemen"}`;return`Terlalu besar: dijangka ${e.origin??"nilai"} adalah ${r}${e.maximum.toString()}`}case"too_small":{let r=e.inclusive?">=":">",i=t(e.origin);if(i)return`Terlalu kecil: dijangka ${e.origin} ${i.verb} ${r}${e.minimum.toString()} ${i.unit}`;return`Terlalu kecil: dijangka ${e.origin} adalah ${r}${e.minimum.toString()}`}case"invalid_format":{let t=e;if("starts_with"===t.format)return`String tidak sah: mesti bermula dengan "${t.prefix}"`;if("ends_with"===t.format)return`String tidak sah: mesti berakhir dengan "${t.suffix}"`;if("includes"===t.format)return`String tidak sah: mesti mengandungi "${t.includes}"`;if("regex"===t.format)return`String tidak sah: mesti sepadan dengan corak ${t.pattern}`;return`${r[t.format]??e.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${e.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${p(e.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${e.origin}`;case"invalid_union":default:return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${e.origin}`}}};function nC(){return{localeError:nB()}}let nZ=()=>{let e={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}};function t(t){return e[t]??null}let r={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"},i={nan:"NaN",number:"getal"};return e=>{switch(e.code){case"invalid_type":{let t=i[e.expected]??e.expected,r=es(e.input),n=i[r]??r;if(/^[A-Z]/.test(e.expected))return`Ongeldige invoer: verwacht instanceof ${e.expected}, ontving ${n}`;return`Ongeldige invoer: verwacht ${t}, ontving ${n}`}case"invalid_value":if(1===e.values.length)return`Ongeldige invoer: verwacht ${F(e.values[0])}`;return`Ongeldige optie: verwacht \xe9\xe9n van ${p(e.values,"|")}`;case"too_big":{let r=e.inclusive?"<=":"<",i=t(e.origin),n="date"===e.origin?"laat":"string"===e.origin?"lang":"groot";if(i)return`Te ${n}: verwacht dat ${e.origin??"waarde"} ${r}${e.maximum.toString()} ${i.unit??"elementen"} ${i.verb}`;return`Te ${n}: verwacht dat ${e.origin??"waarde"} ${r}${e.maximum.toString()} is`}case"too_small":{let r=e.inclusive?">=":">",i=t(e.origin),n="date"===e.origin?"vroeg":"string"===e.origin?"kort":"klein";if(i)return`Te ${n}: verwacht dat ${e.origin} ${r}${e.minimum.toString()} ${i.unit} ${i.verb}`;return`Te ${n}: verwacht dat ${e.origin} ${r}${e.minimum.toString()} is`}case"invalid_format":{let t=e;if("starts_with"===t.format)return`Ongeldige tekst: moet met "${t.prefix}" beginnen`;if("ends_with"===t.format)return`Ongeldige tekst: moet op "${t.suffix}" eindigen`;if("includes"===t.format)return`Ongeldige tekst: moet "${t.includes}" bevatten`;if("regex"===t.format)return`Ongeldige tekst: moet overeenkomen met patroon ${t.pattern}`;return`Ongeldig: ${r[t.format]??e.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${e.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${e.keys.length>1?"s":""}: ${p(e.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${e.origin}`;case"invalid_union":default:return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${e.origin}`}}};function nL(){return{localeError:nZ()}}let nq=()=>{let e={string:{unit:"tegn",verb:"å ha"},file:{unit:"bytes",verb:"å ha"},array:{unit:"elementer",verb:"å inneholde"},set:{unit:"elementer",verb:"å inneholde"}};function t(t){return e[t]??null}let r={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-område",ipv6:"IPv6-område",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"tall",array:"liste"};return e=>{switch(e.code){case"invalid_type":{let t=i[e.expected]??e.expected,r=es(e.input),n=i[r]??r;if(/^[A-Z]/.test(e.expected))return`Ugyldig input: forventet instanceof ${e.expected}, fikk ${n}`;return`Ugyldig input: forventet ${t}, fikk ${n}`}case"invalid_value":if(1===e.values.length)return`Ugyldig verdi: forventet ${F(e.values[0])}`;return`Ugyldig valg: forventet en av ${p(e.values,"|")}`;case"too_big":{let r=e.inclusive?"<=":"<",i=t(e.origin);if(i)return`For stor(t): forventet ${e.origin??"value"} til \xe5 ha ${r}${e.maximum.toString()} ${i.unit??"elementer"}`;return`For stor(t): forventet ${e.origin??"value"} til \xe5 ha ${r}${e.maximum.toString()}`}case"too_small":{let r=e.inclusive?">=":">",i=t(e.origin);if(i)return`For lite(n): forventet ${e.origin} til \xe5 ha ${r}${e.minimum.toString()} ${i.unit}`;return`For lite(n): forventet ${e.origin} til \xe5 ha ${r}${e.minimum.toString()}`}case"invalid_format":{let t=e;if("starts_with"===t.format)return`Ugyldig streng: m\xe5 starte med "${t.prefix}"`;if("ends_with"===t.format)return`Ugyldig streng: m\xe5 ende med "${t.suffix}"`;if("includes"===t.format)return`Ugyldig streng: m\xe5 inneholde "${t.includes}"`;if("regex"===t.format)return`Ugyldig streng: m\xe5 matche m\xf8nsteret ${t.pattern}`;return`Ugyldig ${r[t.format]??e.format}`}case"not_multiple_of":return`Ugyldig tall: m\xe5 v\xe6re et multiplum av ${e.divisor}`;case"unrecognized_keys":return`${e.keys.length>1?"Ukjente nøkler":"Ukjent nøkkel"}: ${p(e.keys,", ")}`;case"invalid_key":return`Ugyldig n\xf8kkel i ${e.origin}`;case"invalid_union":default:return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${e.origin}`}}};function nF(){return{localeError:nq()}}let nJ=()=>{let e={string:{unit:"harf",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"unsur",verb:"olmalıdır"},set:{unit:"unsur",verb:"olmalıdır"}};function t(t){return e[t]??null}let r={regex:"giren",email:"epostagâh",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO hengâmı",date:"ISO tarihi",time:"ISO zamanı",duration:"ISO müddeti",ipv4:"IPv4 nişânı",ipv6:"IPv6 nişânı",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-şifreli metin",base64url:"base64url-şifreli metin",json_string:"JSON metin",e164:"E.164 sayısı",jwt:"JWT",template_literal:"giren"},i={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return e=>{switch(e.code){case"invalid_type":{let t=i[e.expected]??e.expected,r=es(e.input),n=i[r]??r;if(/^[A-Z]/.test(e.expected))return`F\xe2sit giren: umulan instanceof ${e.expected}, alınan ${n}`;return`F\xe2sit giren: umulan ${t}, alınan ${n}`}case"invalid_value":if(1===e.values.length)return`F\xe2sit giren: umulan ${F(e.values[0])}`;return`F\xe2sit tercih: m\xfbteberler ${p(e.values,"|")}`;case"too_big":{let r=e.inclusive?"<=":"<",i=t(e.origin);if(i)return`Fazla b\xfcy\xfck: ${e.origin??"value"}, ${r}${e.maximum.toString()} ${i.unit??"elements"} sahip olmalıydı.`;return`Fazla b\xfcy\xfck: ${e.origin??"value"}, ${r}${e.maximum.toString()} olmalıydı.`}case"too_small":{let r=e.inclusive?">=":">",i=t(e.origin);if(i)return`Fazla k\xfc\xe7\xfck: ${e.origin}, ${r}${e.minimum.toString()} ${i.unit} sahip olmalıydı.`;return`Fazla k\xfc\xe7\xfck: ${e.origin}, ${r}${e.minimum.toString()} olmalıydı.`}case"invalid_format":{let t=e;if("starts_with"===t.format)return`F\xe2sit metin: "${t.prefix}" ile başlamalı.`;if("ends_with"===t.format)return`F\xe2sit metin: "${t.suffix}" ile bitmeli.`;if("includes"===t.format)return`F\xe2sit metin: "${t.includes}" ihtiv\xe2 etmeli.`;if("regex"===t.format)return`F\xe2sit metin: ${t.pattern} nakşına uymalı.`;return`F\xe2sit ${r[t.format]??e.format}`}case"not_multiple_of":return`F\xe2sit sayı: ${e.divisor} katı olmalıydı.`;case"unrecognized_keys":return`Tanınmayan anahtar ${e.keys.length>1?"s":""}: ${p(e.keys,", ")}`;case"invalid_key":return`${e.origin} i\xe7in tanınmayan anahtar var.`;case"invalid_union":return"Giren tanınamadı.";case"invalid_element":return`${e.origin} i\xe7in tanınmayan kıymet var.`;default:return"Kıymet tanınamadı."}}};function nW(){return{localeError:nJ()}}let nK=()=>{let e={string:{unit:"توکي",verb:"ولري"},file:{unit:"بایټس",verb:"ولري"},array:{unit:"توکي",verb:"ولري"},set:{unit:"توکي",verb:"ولري"}};function t(t){return e[t]??null}let r={regex:"ورودي",email:"بریښنالیک",url:"یو آر ال",emoji:"ایموجي",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"نیټه او وخت",date:"نېټه",time:"وخت",duration:"موده",ipv4:"د IPv4 پته",ipv6:"د IPv6 پته",cidrv4:"د IPv4 ساحه",cidrv6:"د IPv6 ساحه",base64:"base64-encoded متن",base64url:"base64url-encoded متن",json_string:"JSON متن",e164:"د E.164 شمېره",jwt:"JWT",template_literal:"ورودي"},i={nan:"NaN",number:"عدد",array:"ارې"};return e=>{switch(e.code){case"invalid_type":{let t=i[e.expected]??e.expected,r=es(e.input),n=i[r]??r;if(/^[A-Z]/.test(e.expected))return`ناسم ورودي: باید instanceof ${e.expected} وای, مګر ${n} ترلاسه شو`;return`ناسم ورودي: باید ${t} وای, مګر ${n} ترلاسه شو`}case"invalid_value":if(1===e.values.length)return`ناسم ورودي: باید ${F(e.values[0])} وای`;return`ناسم انتخاب: باید یو له ${p(e.values,"|")} څخه وای`;case"too_big":{let r=e.inclusive?"<=":"<",i=t(e.origin);if(i)return`ډیر لوی: ${e.origin??"ارزښت"} باید ${r}${e.maximum.toString()} ${i.unit??"عنصرونه"} ولري`;return`ډیر لوی: ${e.origin??"ارزښت"} باید ${r}${e.maximum.toString()} وي`}case"too_small":{let r=e.inclusive?">=":">",i=t(e.origin);if(i)return`ډیر کوچنی: ${e.origin} باید ${r}${e.minimum.toString()} ${i.unit} ولري`;return`ډیر کوچنی: ${e.origin} باید ${r}${e.minimum.toString()} وي`}case"invalid_format":{let t=e;if("starts_with"===t.format)return`ناسم متن: باید د "${t.prefix}" سره پیل شي`;if("ends_with"===t.format)return`ناسم متن: باید د "${t.suffix}" سره پای ته ورسيږي`;if("includes"===t.format)return`ناسم متن: باید "${t.includes}" ولري`;if("regex"===t.format)return`ناسم متن: باید د ${t.pattern} سره مطابقت ولري`;return`${r[t.format]??e.format} ناسم دی`}case"not_multiple_of":return`ناسم عدد: باید د ${e.divisor} مضرب وي`;case"unrecognized_keys":return`ناسم ${e.keys.length>1?"کلیډونه":"کلیډ"}: ${p(e.keys,", ")}`;case"invalid_key":return`ناسم کلیډ په ${e.origin} کې`;case"invalid_union":default:return"ناسمه ورودي";case"invalid_element":return`ناسم عنصر په ${e.origin} کې`}}};function nV(){return{localeError:nK()}}let nG=()=>{let e={string:{unit:"znaków",verb:"mieć"},file:{unit:"bajtów",verb:"mieć"},array:{unit:"elementów",verb:"mieć"},set:{unit:"elementów",verb:"mieć"}};function t(t){return e[t]??null}let r={regex:"wyrażenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ciąg znaków zakodowany w formacie base64",base64url:"ciąg znaków zakodowany w formacie base64url",json_string:"ciąg znaków w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wejście"},i={nan:"NaN",number:"liczba",array:"tablica"};return e=>{switch(e.code){case"invalid_type":{let t=i[e.expected]??e.expected,r=es(e.input),n=i[r]??r;if(/^[A-Z]/.test(e.expected))return`Nieprawidłowe dane wejściowe: oczekiwano instanceof ${e.expected}, otrzymano ${n}`;return`Nieprawidłowe dane wejściowe: oczekiwano ${t}, otrzymano ${n}`}case"invalid_value":if(1===e.values.length)return`Nieprawidłowe dane wejściowe: oczekiwano ${F(e.values[0])}`;return`Nieprawidłowa opcja: oczekiwano jednej z wartości ${p(e.values,"|")}`;case"too_big":{let r=e.inclusive?"<=":"<",i=t(e.origin);if(i)return`Za duża wartość: oczekiwano, że ${e.origin??"wartość"} będzie mieć ${r}${e.maximum.toString()} ${i.unit??"elementów"}`;return`Zbyt duż(y/a/e): oczekiwano, że ${e.origin??"wartość"} będzie wynosić ${r}${e.maximum.toString()}`}case"too_small":{let r=e.inclusive?">=":">",i=t(e.origin);if(i)return`Za mała wartość: oczekiwano, że ${e.origin??"wartość"} będzie mieć ${r}${e.minimum.toString()} ${i.unit??"elementów"}`;return`Zbyt mał(y/a/e): oczekiwano, że ${e.origin??"wartość"} będzie wynosić ${r}${e.minimum.toString()}`}case"invalid_format":{let t=e;if("starts_with"===t.format)return`Nieprawidłowy ciąg znak\xf3w: musi zaczynać się od "${t.prefix}"`;if("ends_with"===t.format)return`Nieprawidłowy ciąg znak\xf3w: musi kończyć się na "${t.suffix}"`;if("includes"===t.format)return`Nieprawidłowy ciąg znak\xf3w: musi zawierać "${t.includes}"`;if("regex"===t.format)return`Nieprawidłowy ciąg znak\xf3w: musi odpowiadać wzorcowi ${t.pattern}`;return`Nieprawidłow(y/a/e) ${r[t.format]??e.format}`}case"not_multiple_of":return`Nieprawidłowa liczba: musi być wielokrotnością ${e.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${e.keys.length>1?"s":""}: ${p(e.keys,", ")}`;case"invalid_key":return`Nieprawidłowy klucz w ${e.origin}`;case"invalid_union":default:return"Nieprawidłowe dane wejściowe";case"invalid_element":return`Nieprawidłowa wartość w ${e.origin}`}}};function nH(){return{localeError:nG()}}let nX=()=>{let e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function t(t){return e[t]??null}let r={regex:"padrão",email:"endereço de e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e hora ISO",date:"data ISO",time:"hora ISO",duration:"duração ISO",ipv4:"endereço IPv4",ipv6:"endereço IPv6",cidrv4:"faixa de IPv4",cidrv6:"faixa de IPv6",base64:"texto codificado em base64",base64url:"URL codificada em base64",json_string:"texto JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"},i={nan:"NaN",number:"número",null:"nulo"};return e=>{switch(e.code){case"invalid_type":{let t=i[e.expected]??e.expected,r=es(e.input),n=i[r]??r;if(/^[A-Z]/.test(e.expected))return`Tipo inv\xe1lido: esperado instanceof ${e.expected}, recebido ${n}`;return`Tipo inv\xe1lido: esperado ${t}, recebido ${n}`}case"invalid_value":if(1===e.values.length)return`Entrada inv\xe1lida: esperado ${F(e.values[0])}`;return`Op\xe7\xe3o inv\xe1lida: esperada uma das ${p(e.values,"|")}`;case"too_big":{let r=e.inclusive?"<=":"<",i=t(e.origin);if(i)return`Muito grande: esperado que ${e.origin??"valor"} tivesse ${r}${e.maximum.toString()} ${i.unit??"elementos"}`;return`Muito grande: esperado que ${e.origin??"valor"} fosse ${r}${e.maximum.toString()}`}case"too_small":{let r=e.inclusive?">=":">",i=t(e.origin);if(i)return`Muito pequeno: esperado que ${e.origin} tivesse ${r}${e.minimum.toString()} ${i.unit}`;return`Muito pequeno: esperado que ${e.origin} fosse ${r}${e.minimum.toString()}`}case"invalid_format":{let t=e;if("starts_with"===t.format)return`Texto inv\xe1lido: deve come\xe7ar com "${t.prefix}"`;if("ends_with"===t.format)return`Texto inv\xe1lido: deve terminar com "${t.suffix}"`;if("includes"===t.format)return`Texto inv\xe1lido: deve incluir "${t.includes}"`;if("regex"===t.format)return`Texto inv\xe1lido: deve corresponder ao padr\xe3o ${t.pattern}`;return`${r[t.format]??e.format} inv\xe1lido`}case"not_multiple_of":return`N\xfamero inv\xe1lido: deve ser m\xfaltiplo de ${e.divisor}`;case"unrecognized_keys":return`Chave${e.keys.length>1?"s":""} desconhecida${e.keys.length>1?"s":""}: ${p(e.keys,", ")}`;case"invalid_key":return`Chave inv\xe1lida em ${e.origin}`;case"invalid_union":return"Entrada inválida";case"invalid_element":return`Valor inv\xe1lido em ${e.origin}`;default:return"Campo inválido"}}};function nY(){return{localeError:nX()}}function nQ(e,t,r,i){let n=Math.abs(e),a=n%10,o=n%100;return o>=11&&o<=19?i:1===a?t:a>=2&&a<=4?r:i}let n0=()=>{let e={string:{unit:{one:"символ",few:"символа",many:"символов"},verb:"иметь"},file:{unit:{one:"байт",few:"байта",many:"байт"},verb:"иметь"},array:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"},set:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"}};function t(t){return e[t]??null}let r={regex:"ввод",email:"email адрес",url:"URL",emoji:"эмодзи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO дата и время",date:"ISO дата",time:"ISO время",duration:"ISO длительность",ipv4:"IPv4 адрес",ipv6:"IPv6 адрес",cidrv4:"IPv4 диапазон",cidrv6:"IPv6 диапазон",base64:"строка в формате base64",base64url:"строка в формате base64url",json_string:"JSON строка",e164:"номер E.164",jwt:"JWT",template_literal:"ввод"},i={nan:"NaN",number:"число",array:"массив"};return e=>{switch(e.code){case"invalid_type":{let t=i[e.expected]??e.expected,r=es(e.input),n=i[r]??r;if(/^[A-Z]/.test(e.expected))return`Неверный ввод: ожидалось instanceof ${e.expected}, получено ${n}`;return`Неверный ввод: ожидалось ${t}, получено ${n}`}case"invalid_value":if(1===e.values.length)return`Неверный ввод: ожидалось ${F(e.values[0])}`;return`Неверный вариант: ожидалось одно из ${p(e.values,"|")}`;case"too_big":{let r=e.inclusive?"<=":"<",i=t(e.origin);if(i){let t=nQ(Number(e.maximum),i.unit.one,i.unit.few,i.unit.many);return`Слишком большое значение: ожидалось, что ${e.origin??"значение"} будет иметь ${r}${e.maximum.toString()} ${t}`}return`Слишком большое значение: ожидалось, что ${e.origin??"значение"} будет ${r}${e.maximum.toString()}`}case"too_small":{let r=e.inclusive?">=":">",i=t(e.origin);if(i){let t=nQ(Number(e.minimum),i.unit.one,i.unit.few,i.unit.many);return`Слишком маленькое значение: ожидалось, что ${e.origin} будет иметь ${r}${e.minimum.toString()} ${t}`}return`Слишком маленькое значение: ожидалось, что ${e.origin} будет ${r}${e.minimum.toString()}`}case"invalid_format":{let t=e;if("starts_with"===t.format)return`Неверная строка: должна начинаться с "${t.prefix}"`;if("ends_with"===t.format)return`Неверная строка: должна заканчиваться на "${t.suffix}"`;if("includes"===t.format)return`Неверная строка: должна содержать "${t.includes}"`;if("regex"===t.format)return`Неверная строка: должна соответствовать шаблону ${t.pattern}`;return`Неверный ${r[t.format]??e.format}`}case"not_multiple_of":return`Неверное число: должно быть кратным ${e.divisor}`;case"unrecognized_keys":return`Нераспознанн${e.keys.length>1?"ые":"ый"} ключ${e.keys.length>1?"и":""}: ${p(e.keys,", ")}`;case"invalid_key":return`Неверный ключ в ${e.origin}`;case"invalid_union":default:return"Неверные входные данные";case"invalid_element":return`Неверное значение в ${e.origin}`}}};function n1(){return{localeError:n0()}}let n2=()=>{let e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function t(t){return e[t]??null}let r={regex:"vnos",email:"e-poštni naslov",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum in čas",date:"ISO datum",time:"ISO čas",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 številka",jwt:"JWT",template_literal:"vnos"},i={nan:"NaN",number:"število",array:"tabela"};return e=>{switch(e.code){case"invalid_type":{let t=i[e.expected]??e.expected,r=es(e.input),n=i[r]??r;if(/^[A-Z]/.test(e.expected))return`Neveljaven vnos: pričakovano instanceof ${e.expected}, prejeto ${n}`;return`Neveljaven vnos: pričakovano ${t}, prejeto ${n}`}case"invalid_value":if(1===e.values.length)return`Neveljaven vnos: pričakovano ${F(e.values[0])}`;return`Neveljavna možnost: pričakovano eno izmed ${p(e.values,"|")}`;case"too_big":{let r=e.inclusive?"<=":"<",i=t(e.origin);if(i)return`Preveliko: pričakovano, da bo ${e.origin??"vrednost"} imelo ${r}${e.maximum.toString()} ${i.unit??"elementov"}`;return`Preveliko: pričakovano, da bo ${e.origin??"vrednost"} ${r}${e.maximum.toString()}`}case"too_small":{let r=e.inclusive?">=":">",i=t(e.origin);if(i)return`Premajhno: pričakovano, da bo ${e.origin} imelo ${r}${e.minimum.toString()} ${i.unit}`;return`Premajhno: pričakovano, da bo ${e.origin} ${r}${e.minimum.toString()}`}case"invalid_format":{let t=e;if("starts_with"===t.format)return`Neveljaven niz: mora se začeti z "${t.prefix}"`;if("ends_with"===t.format)return`Neveljaven niz: mora se končati z "${t.suffix}"`;if("includes"===t.format)return`Neveljaven niz: mora vsebovati "${t.includes}"`;if("regex"===t.format)return`Neveljaven niz: mora ustrezati vzorcu ${t.pattern}`;return`Neveljaven ${r[t.format]??e.format}`}case"not_multiple_of":return`Neveljavno število: mora biti večkratnik ${e.divisor}`;case"unrecognized_keys":return`Neprepoznan${e.keys.length>1?"i ključi":" ključ"}: ${p(e.keys,", ")}`;case"invalid_key":return`Neveljaven ključ v ${e.origin}`;case"invalid_union":default:return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${e.origin}`}}};function n6(){return{localeError:n2()}}let n4=()=>{let e={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att innehålla"},set:{unit:"objekt",verb:"att innehålla"}};function t(t){return e[t]??null}let r={regex:"reguljärt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-intervall",ipv6:"IPv6-intervall",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad sträng",base64url:"base64url-kodad sträng",json_string:"JSON-sträng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"},i={nan:"NaN",number:"antal",array:"lista"};return e=>{switch(e.code){case"invalid_type":{let t=i[e.expected]??e.expected,r=es(e.input),n=i[r]??r;if(/^[A-Z]/.test(e.expected))return`Ogiltig inmatning: f\xf6rv\xe4ntat instanceof ${e.expected}, fick ${n}`;return`Ogiltig inmatning: f\xf6rv\xe4ntat ${t}, fick ${n}`}case"invalid_value":if(1===e.values.length)return`Ogiltig inmatning: f\xf6rv\xe4ntat ${F(e.values[0])}`;return`Ogiltigt val: f\xf6rv\xe4ntade en av ${p(e.values,"|")}`;case"too_big":{let r=e.inclusive?"<=":"<",i=t(e.origin);if(i)return`F\xf6r stor(t): f\xf6rv\xe4ntade ${e.origin??"värdet"} att ha ${r}${e.maximum.toString()} ${i.unit??"element"}`;return`F\xf6r stor(t): f\xf6rv\xe4ntat ${e.origin??"värdet"} att ha ${r}${e.maximum.toString()}`}case"too_small":{let r=e.inclusive?">=":">",i=t(e.origin);if(i)return`F\xf6r lite(t): f\xf6rv\xe4ntade ${e.origin??"värdet"} att ha ${r}${e.minimum.toString()} ${i.unit}`;return`F\xf6r lite(t): f\xf6rv\xe4ntade ${e.origin??"värdet"} att ha ${r}${e.minimum.toString()}`}case"invalid_format":{let t=e;if("starts_with"===t.format)return`Ogiltig str\xe4ng: m\xe5ste b\xf6rja med "${t.prefix}"`;if("ends_with"===t.format)return`Ogiltig str\xe4ng: m\xe5ste sluta med "${t.suffix}"`;if("includes"===t.format)return`Ogiltig str\xe4ng: m\xe5ste inneh\xe5lla "${t.includes}"`;if("regex"===t.format)return`Ogiltig str\xe4ng: m\xe5ste matcha m\xf6nstret "${t.pattern}"`;return`Ogiltig(t) ${r[t.format]??e.format}`}case"not_multiple_of":return`Ogiltigt tal: m\xe5ste vara en multipel av ${e.divisor}`;case"unrecognized_keys":return`${e.keys.length>1?"Okända nycklar":"Okänd nyckel"}: ${p(e.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${e.origin??"värdet"}`;case"invalid_union":default:return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xe4rde i ${e.origin??"värdet"}`}}};function n3(){return{localeError:n4()}}let n8=()=>{let e={string:{unit:"எழுத்துக்கள்",verb:"கொண்டிருக்க வேண்டும்"},file:{unit:"பைட்டுகள்",verb:"கொண்டிருக்க வேண்டும்"},array:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"},set:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"}};function t(t){return e[t]??null}let r={regex:"உள்ளீடு",email:"மின்னஞ்சல் முகவரி",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO தேதி நேரம்",date:"ISO தேதி",time:"ISO நேரம்",duration:"ISO கால அளவு",ipv4:"IPv4 முகவரி",ipv6:"IPv6 முகவரி",cidrv4:"IPv4 வரம்பு",cidrv6:"IPv6 வரம்பு",base64:"base64-encoded சரம்",base64url:"base64url-encoded சரம்",json_string:"JSON சரம்",e164:"E.164 எண்",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"எண்",array:"அணி",null:"வெறுமை"};return e=>{switch(e.code){case"invalid_type":{let t=i[e.expected]??e.expected,r=es(e.input),n=i[r]??r;if(/^[A-Z]/.test(e.expected))return`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது instanceof ${e.expected}, பெறப்பட்டது ${n}`;return`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${t}, பெறப்பட்டது ${n}`}case"invalid_value":if(1===e.values.length)return`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${F(e.values[0])}`;return`தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${p(e.values,"|")} இல் ஒன்று`;case"too_big":{let r=e.inclusive?"<=":"<",i=t(e.origin);if(i)return`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${e.origin??"மதிப்பு"} ${r}${e.maximum.toString()} ${i.unit??"உறுப்புகள்"} ஆக இருக்க வேண்டும்`;return`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${e.origin??"மதிப்பு"} ${r}${e.maximum.toString()} ஆக இருக்க வேண்டும்`}case"too_small":{let r=e.inclusive?">=":">",i=t(e.origin);if(i)return`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${e.origin} ${r}${e.minimum.toString()} ${i.unit} ஆக இருக்க வேண்டும்`;return`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${e.origin} ${r}${e.minimum.toString()} ஆக இருக்க வேண்டும்`}case"invalid_format":{let t=e;if("starts_with"===t.format)return`தவறான சரம்: "${t.prefix}" இல் தொடங்க வேண்டும்`;if("ends_with"===t.format)return`தவறான சரம்: "${t.suffix}" இல் முடிவடைய வேண்டும்`;if("includes"===t.format)return`தவறான சரம்: "${t.includes}" ஐ உள்ளடக்க வேண்டும்`;if("regex"===t.format)return`தவறான சரம்: ${t.pattern} முறைபாட்டுடன் பொருந்த வேண்டும்`;return`தவறான ${r[t.format]??e.format}`}case"not_multiple_of":return`தவறான எண்: ${e.divisor} இன் பலமாக இருக்க வேண்டும்`;case"unrecognized_keys":return`அடையாளம் தெரியாத விசை${e.keys.length>1?"கள்":""}: ${p(e.keys,", ")}`;case"invalid_key":return`${e.origin} இல் தவறான விசை`;case"invalid_union":default:return"தவறான உள்ளீடு";case"invalid_element":return`${e.origin} இல் தவறான மதிப்பு`}}};function n5(){return{localeError:n8()}}let n9=()=>{let e={string:{unit:"ตัวอักษร",verb:"ควรมี"},file:{unit:"ไบต์",verb:"ควรมี"},array:{unit:"รายการ",verb:"ควรมี"},set:{unit:"รายการ",verb:"ควรมี"}};function t(t){return e[t]??null}let r={regex:"ข้อมูลที่ป้อน",email:"ที่อยู่อีเมล",url:"URL",emoji:"อิโมจิ",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"วันที่เวลาแบบ ISO",date:"วันที่แบบ ISO",time:"เวลาแบบ ISO",duration:"ช่วงเวลาแบบ ISO",ipv4:"ที่อยู่ IPv4",ipv6:"ที่อยู่ IPv6",cidrv4:"ช่วง IP แบบ IPv4",cidrv6:"ช่วง IP แบบ IPv6",base64:"ข้อความแบบ Base64",base64url:"ข้อความแบบ Base64 สำหรับ URL",json_string:"ข้อความแบบ JSON",e164:"เบอร์โทรศัพท์ระหว่างประเทศ (E.164)",jwt:"โทเคน JWT",template_literal:"ข้อมูลที่ป้อน"},i={nan:"NaN",number:"ตัวเลข",array:"อาร์เรย์ (Array)",null:"ไม่มีค่า (null)"};return e=>{switch(e.code){case"invalid_type":{let t=i[e.expected]??e.expected,r=es(e.input),n=i[r]??r;if(/^[A-Z]/.test(e.expected))return`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น instanceof ${e.expected} แต่ได้รับ ${n}`;return`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${t} แต่ได้รับ ${n}`}case"invalid_value":if(1===e.values.length)return`ค่าไม่ถูกต้อง: ควรเป็น ${F(e.values[0])}`;return`ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${p(e.values,"|")}`;case"too_big":{let r=e.inclusive?"ไม่เกิน":"น้อยกว่า",i=t(e.origin);if(i)return`เกินกำหนด: ${e.origin??"ค่า"} ควรมี${r} ${e.maximum.toString()} ${i.unit??"รายการ"}`;return`เกินกำหนด: ${e.origin??"ค่า"} ควรมี${r} ${e.maximum.toString()}`}case"too_small":{let r=e.inclusive?"อย่างน้อย":"มากกว่า",i=t(e.origin);if(i)return`น้อยกว่ากำหนด: ${e.origin} ควรมี${r} ${e.minimum.toString()} ${i.unit}`;return`น้อยกว่ากำหนด: ${e.origin} ควรมี${r} ${e.minimum.toString()}`}case"invalid_format":{let t=e;if("starts_with"===t.format)return`รูปแบบไม่ถูกต้อง: ข้อความต้องขึ้นต้นด้วย "${t.prefix}"`;if("ends_with"===t.format)return`รูปแบบไม่ถูกต้อง: ข้อความต้องลงท้ายด้วย "${t.suffix}"`;if("includes"===t.format)return`รูปแบบไม่ถูกต้อง: ข้อความต้องมี "${t.includes}" อยู่ในข้อความ`;if("regex"===t.format)return`รูปแบบไม่ถูกต้อง: ต้องตรงกับรูปแบบที่กำหนด ${t.pattern}`;return`รูปแบบไม่ถูกต้อง: ${r[t.format]??e.format}`}case"not_multiple_of":return`ตัวเลขไม่ถูกต้อง: ต้องเป็นจำนวนที่หารด้วย ${e.divisor} ได้ลงตัว`;case"unrecognized_keys":return`พบคีย์ที่ไม่รู้จัก: ${p(e.keys,", ")}`;case"invalid_key":return`คีย์ไม่ถูกต้องใน ${e.origin}`;case"invalid_union":return"ข้อมูลไม่ถูกต้อง: ไม่ตรงกับรูปแบบยูเนียนที่กำหนดไว้";case"invalid_element":return`ข้อมูลไม่ถูกต้องใน ${e.origin}`;default:return"ข้อมูลไม่ถูกต้อง"}}};function n7(){return{localeError:n9()}}let ae=()=>{let e={string:{unit:"karakter",verb:"olmalı"},file:{unit:"bayt",verb:"olmalı"},array:{unit:"öğe",verb:"olmalı"},set:{unit:"öğe",verb:"olmalı"}};function t(t){return e[t]??null}let r={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO süre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aralığı",cidrv6:"IPv6 aralığı",base64:"base64 ile şifrelenmiş metin",base64url:"base64url ile şifrelenmiş metin",json_string:"JSON dizesi",e164:"E.164 sayısı",jwt:"JWT",template_literal:"Şablon dizesi"},i={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":{let t=i[e.expected]??e.expected,r=es(e.input),n=i[r]??r;if(/^[A-Z]/.test(e.expected))return`Ge\xe7ersiz değer: beklenen instanceof ${e.expected}, alınan ${n}`;return`Ge\xe7ersiz değer: beklenen ${t}, alınan ${n}`}case"invalid_value":if(1===e.values.length)return`Ge\xe7ersiz değer: beklenen ${F(e.values[0])}`;return`Ge\xe7ersiz se\xe7enek: aşağıdakilerden biri olmalı: ${p(e.values,"|")}`;case"too_big":{let r=e.inclusive?"<=":"<",i=t(e.origin);if(i)return`\xc7ok b\xfcy\xfck: beklenen ${e.origin??"değer"} ${r}${e.maximum.toString()} ${i.unit??"öğe"}`;return`\xc7ok b\xfcy\xfck: beklenen ${e.origin??"değer"} ${r}${e.maximum.toString()}`}case"too_small":{let r=e.inclusive?">=":">",i=t(e.origin);if(i)return`\xc7ok k\xfc\xe7\xfck: beklenen ${e.origin} ${r}${e.minimum.toString()} ${i.unit}`;return`\xc7ok k\xfc\xe7\xfck: beklenen ${e.origin} ${r}${e.minimum.toString()}`}case"invalid_format":{let t=e;if("starts_with"===t.format)return`Ge\xe7ersiz metin: "${t.prefix}" ile başlamalı`;if("ends_with"===t.format)return`Ge\xe7ersiz metin: "${t.suffix}" ile bitmeli`;if("includes"===t.format)return`Ge\xe7ersiz metin: "${t.includes}" i\xe7ermeli`;if("regex"===t.format)return`Ge\xe7ersiz metin: ${t.pattern} desenine uymalı`;return`Ge\xe7ersiz ${r[t.format]??e.format}`}case"not_multiple_of":return`Ge\xe7ersiz sayı: ${e.divisor} ile tam b\xf6l\xfcnebilmeli`;case"unrecognized_keys":return`Tanınmayan anahtar${e.keys.length>1?"lar":""}: ${p(e.keys,", ")}`;case"invalid_key":return`${e.origin} i\xe7inde ge\xe7ersiz anahtar`;case"invalid_union":default:return"Geçersiz değer";case"invalid_element":return`${e.origin} i\xe7inde ge\xe7ersiz değer`}}};function at(){return{localeError:ae()}}let ar=()=>{let e={string:{unit:"символів",verb:"матиме"},file:{unit:"байтів",verb:"матиме"},array:{unit:"елементів",verb:"матиме"},set:{unit:"елементів",verb:"матиме"}};function t(t){return e[t]??null}let r={regex:"вхідні дані",email:"адреса електронної пошти",url:"URL",emoji:"емодзі",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"дата та час ISO",date:"дата ISO",time:"час ISO",duration:"тривалість ISO",ipv4:"адреса IPv4",ipv6:"адреса IPv6",cidrv4:"діапазон IPv4",cidrv6:"діапазон IPv6",base64:"рядок у кодуванні base64",base64url:"рядок у кодуванні base64url",json_string:"рядок JSON",e164:"номер E.164",jwt:"JWT",template_literal:"вхідні дані"},i={nan:"NaN",number:"число",array:"масив"};return e=>{switch(e.code){case"invalid_type":{let t=i[e.expected]??e.expected,r=es(e.input),n=i[r]??r;if(/^[A-Z]/.test(e.expected))return`Неправильні вхідні дані: очікується instanceof ${e.expected}, отримано ${n}`;return`Неправильні вхідні дані: очікується ${t}, отримано ${n}`}case"invalid_value":if(1===e.values.length)return`Неправильні вхідні дані: очікується ${F(e.values[0])}`;return`Неправильна опція: очікується одне з ${p(e.values,"|")}`;case"too_big":{let r=e.inclusive?"<=":"<",i=t(e.origin);if(i)return`Занадто велике: очікується, що ${e.origin??"значення"} ${i.verb} ${r}${e.maximum.toString()} ${i.unit??"елементів"}`;return`Занадто велике: очікується, що ${e.origin??"значення"} буде ${r}${e.maximum.toString()}`}case"too_small":{let r=e.inclusive?">=":">",i=t(e.origin);if(i)return`Занадто мале: очікується, що ${e.origin} ${i.verb} ${r}${e.minimum.toString()} ${i.unit}`;return`Занадто мале: очікується, що ${e.origin} буде ${r}${e.minimum.toString()}`}case"invalid_format":{let t=e;if("starts_with"===t.format)return`Неправильний рядок: повинен починатися з "${t.prefix}"`;if("ends_with"===t.format)return`Неправильний рядок: повинен закінчуватися на "${t.suffix}"`;if("includes"===t.format)return`Неправильний рядок: повинен містити "${t.includes}"`;if("regex"===t.format)return`Неправильний рядок: повинен відповідати шаблону ${t.pattern}`;return`Неправильний ${r[t.format]??e.format}`}case"not_multiple_of":return`Неправильне число: повинно бути кратним ${e.divisor}`;case"unrecognized_keys":return`Нерозпізнаний ключ${e.keys.length>1?"і":""}: ${p(e.keys,", ")}`;case"invalid_key":return`Неправильний ключ у ${e.origin}`;case"invalid_union":default:return"Неправильні вхідні дані";case"invalid_element":return`Неправильне значення у ${e.origin}`}}};function ai(){return{localeError:ar()}}function an(){return ai()}let aa=()=>{let e={string:{unit:"حروف",verb:"ہونا"},file:{unit:"بائٹس",verb:"ہونا"},array:{unit:"آئٹمز",verb:"ہونا"},set:{unit:"آئٹمز",verb:"ہونا"}};function t(t){return e[t]??null}let r={regex:"ان پٹ",email:"ای میل ایڈریس",url:"یو آر ایل",emoji:"ایموجی",uuid:"یو یو آئی ڈی",uuidv4:"یو یو آئی ڈی وی 4",uuidv6:"یو یو آئی ڈی وی 6",nanoid:"نینو آئی ڈی",guid:"جی یو آئی ڈی",cuid:"سی یو آئی ڈی",cuid2:"سی یو آئی ڈی 2",ulid:"یو ایل آئی ڈی",xid:"ایکس آئی ڈی",ksuid:"کے ایس یو آئی ڈی",datetime:"آئی ایس او ڈیٹ ٹائم",date:"آئی ایس او تاریخ",time:"آئی ایس او وقت",duration:"آئی ایس او مدت",ipv4:"آئی پی وی 4 ایڈریس",ipv6:"آئی پی وی 6 ایڈریس",cidrv4:"آئی پی وی 4 رینج",cidrv6:"آئی پی وی 6 رینج",base64:"بیس 64 ان کوڈڈ سٹرنگ",base64url:"بیس 64 یو آر ایل ان کوڈڈ سٹرنگ",json_string:"جے ایس او این سٹرنگ",e164:"ای 164 نمبر",jwt:"جے ڈبلیو ٹی",template_literal:"ان پٹ"},i={nan:"NaN",number:"نمبر",array:"آرے",null:"نل"};return e=>{switch(e.code){case"invalid_type":{let t=i[e.expected]??e.expected,r=es(e.input),n=i[r]??r;if(/^[A-Z]/.test(e.expected))return`غلط ان پٹ: instanceof ${e.expected} متوقع تھا، ${n} موصول ہوا`;return`غلط ان پٹ: ${t} متوقع تھا، ${n} موصول ہوا`}case"invalid_value":if(1===e.values.length)return`غلط ان پٹ: ${F(e.values[0])} متوقع تھا`;return`غلط آپشن: ${p(e.values,"|")} میں سے ایک متوقع تھا`;case"too_big":{let r=e.inclusive?"<=":"<",i=t(e.origin);if(i)return`بہت بڑا: ${e.origin??"ویلیو"} کے ${r}${e.maximum.toString()} ${i.unit??"عناصر"} ہونے متوقع تھے`;return`بہت بڑا: ${e.origin??"ویلیو"} کا ${r}${e.maximum.toString()} ہونا متوقع تھا`}case"too_small":{let r=e.inclusive?">=":">",i=t(e.origin);if(i)return`بہت چھوٹا: ${e.origin} کے ${r}${e.minimum.toString()} ${i.unit} ہونے متوقع تھے`;return`بہت چھوٹا: ${e.origin} کا ${r}${e.minimum.toString()} ہونا متوقع تھا`}case"invalid_format":{let t=e;if("starts_with"===t.format)return`غلط سٹرنگ: "${t.prefix}" سے شروع ہونا چاہیے`;if("ends_with"===t.format)return`غلط سٹرنگ: "${t.suffix}" پر ختم ہونا چاہیے`;if("includes"===t.format)return`غلط سٹرنگ: "${t.includes}" شامل ہونا چاہیے`;if("regex"===t.format)return`غلط سٹرنگ: پیٹرن ${t.pattern} سے میچ ہونا چاہیے`;return`غلط ${r[t.format]??e.format}`}case"not_multiple_of":return`غلط نمبر: ${e.divisor} کا مضاعف ہونا چاہیے`;case"unrecognized_keys":return`غیر تسلیم شدہ کی${e.keys.length>1?"ز":""}: ${p(e.keys,"، ")}`;case"invalid_key":return`${e.origin} میں غلط کی`;case"invalid_union":default:return"غلط ان پٹ";case"invalid_element":return`${e.origin} میں غلط ویلیو`}}};function ao(){return{localeError:aa()}}let as=()=>{let e={string:{unit:"belgi",verb:"bo‘lishi kerak"},file:{unit:"bayt",verb:"bo‘lishi kerak"},array:{unit:"element",verb:"bo‘lishi kerak"},set:{unit:"element",verb:"bo‘lishi kerak"}};function t(t){return e[t]??null}let r={regex:"kirish",email:"elektron pochta manzili",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO sana va vaqti",date:"ISO sana",time:"ISO vaqt",duration:"ISO davomiylik",ipv4:"IPv4 manzil",ipv6:"IPv6 manzil",mac:"MAC manzil",cidrv4:"IPv4 diapazon",cidrv6:"IPv6 diapazon",base64:"base64 kodlangan satr",base64url:"base64url kodlangan satr",json_string:"JSON satr",e164:"E.164 raqam",jwt:"JWT",template_literal:"kirish"},i={nan:"NaN",number:"raqam",array:"massiv"};return e=>{switch(e.code){case"invalid_type":{let t=i[e.expected]??e.expected,r=es(e.input),n=i[r]??r;if(/^[A-Z]/.test(e.expected))return`Noto‘g‘ri kirish: kutilgan instanceof ${e.expected}, qabul qilingan ${n}`;return`Noto‘g‘ri kirish: kutilgan ${t}, qabul qilingan ${n}`}case"invalid_value":if(1===e.values.length)return`Noto‘g‘ri kirish: kutilgan ${F(e.values[0])}`;return`Noto‘g‘ri variant: quyidagilardan biri kutilgan ${p(e.values,"|")}`;case"too_big":{let r=e.inclusive?"<=":"<",i=t(e.origin);if(i)return`Juda katta: kutilgan ${e.origin??"qiymat"} ${r}${e.maximum.toString()} ${i.unit} ${i.verb}`;return`Juda katta: kutilgan ${e.origin??"qiymat"} ${r}${e.maximum.toString()}`}case"too_small":{let r=e.inclusive?">=":">",i=t(e.origin);if(i)return`Juda kichik: kutilgan ${e.origin} ${r}${e.minimum.toString()} ${i.unit} ${i.verb}`;return`Juda kichik: kutilgan ${e.origin} ${r}${e.minimum.toString()}`}case"invalid_format":{let t=e;if("starts_with"===t.format)return`Noto‘g‘ri satr: "${t.prefix}" bilan boshlanishi kerak`;if("ends_with"===t.format)return`Noto‘g‘ri satr: "${t.suffix}" bilan tugashi kerak`;if("includes"===t.format)return`Noto‘g‘ri satr: "${t.includes}" ni o‘z ichiga olishi kerak`;if("regex"===t.format)return`Noto‘g‘ri satr: ${t.pattern} shabloniga mos kelishi kerak`;return`Noto‘g‘ri ${r[t.format]??e.format}`}case"not_multiple_of":return`Noto‘g‘ri raqam: ${e.divisor} ning karralisi bo‘lishi kerak`;case"unrecognized_keys":return`Noma’lum kalit${e.keys.length>1?"lar":""}: ${p(e.keys,", ")}`;case"invalid_key":return`${e.origin} dagi kalit noto‘g‘ri`;case"invalid_union":default:return"Noto‘g‘ri kirish";case"invalid_element":return`${e.origin} da noto‘g‘ri qiymat`}}};function au(){return{localeError:as()}}let af=()=>{let e={string:{unit:"ký tự",verb:"có"},file:{unit:"byte",verb:"có"},array:{unit:"phần tử",verb:"có"},set:{unit:"phần tử",verb:"có"}};function t(t){return e[t]??null}let r={regex:"đầu vào",email:"địa chỉ email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ngày giờ ISO",date:"ngày ISO",time:"giờ ISO",duration:"khoảng thời gian ISO",ipv4:"địa chỉ IPv4",ipv6:"địa chỉ IPv6",cidrv4:"dải IPv4",cidrv6:"dải IPv6",base64:"chuỗi mã hóa base64",base64url:"chuỗi mã hóa base64url",json_string:"chuỗi JSON",e164:"số E.164",jwt:"JWT",template_literal:"đầu vào"},i={nan:"NaN",number:"số",array:"mảng"};return e=>{switch(e.code){case"invalid_type":{let t=i[e.expected]??e.expected,r=es(e.input),n=i[r]??r;if(/^[A-Z]/.test(e.expected))return`Đầu v\xe0o kh\xf4ng hợp lệ: mong đợi instanceof ${e.expected}, nhận được ${n}`;return`Đầu v\xe0o kh\xf4ng hợp lệ: mong đợi ${t}, nhận được ${n}`}case"invalid_value":if(1===e.values.length)return`Đầu v\xe0o kh\xf4ng hợp lệ: mong đợi ${F(e.values[0])}`;return`T\xf9y chọn kh\xf4ng hợp lệ: mong đợi một trong c\xe1c gi\xe1 trị ${p(e.values,"|")}`;case"too_big":{let r=e.inclusive?"<=":"<",i=t(e.origin);if(i)return`Qu\xe1 lớn: mong đợi ${e.origin??"giá trị"} ${i.verb} ${r}${e.maximum.toString()} ${i.unit??"phần tử"}`;return`Qu\xe1 lớn: mong đợi ${e.origin??"giá trị"} ${r}${e.maximum.toString()}`}case"too_small":{let r=e.inclusive?">=":">",i=t(e.origin);if(i)return`Qu\xe1 nhỏ: mong đợi ${e.origin} ${i.verb} ${r}${e.minimum.toString()} ${i.unit}`;return`Qu\xe1 nhỏ: mong đợi ${e.origin} ${r}${e.minimum.toString()}`}case"invalid_format":{let t=e;if("starts_with"===t.format)return`Chuỗi kh\xf4ng hợp lệ: phải bắt đầu bằng "${t.prefix}"`;if("ends_with"===t.format)return`Chuỗi kh\xf4ng hợp lệ: phải kết th\xfac bằng "${t.suffix}"`;if("includes"===t.format)return`Chuỗi kh\xf4ng hợp lệ: phải bao gồm "${t.includes}"`;if("regex"===t.format)return`Chuỗi kh\xf4ng hợp lệ: phải khớp với mẫu ${t.pattern}`;return`${r[t.format]??e.format} kh\xf4ng hợp lệ`}case"not_multiple_of":return`Số kh\xf4ng hợp lệ: phải l\xe0 bội số của ${e.divisor}`;case"unrecognized_keys":return`Kh\xf3a kh\xf4ng được nhận dạng: ${p(e.keys,", ")}`;case"invalid_key":return`Kh\xf3a kh\xf4ng hợp lệ trong ${e.origin}`;case"invalid_union":default:return"Đầu vào không hợp lệ";case"invalid_element":return`Gi\xe1 trị kh\xf4ng hợp lệ trong ${e.origin}`}}};function ac(){return{localeError:af()}}let ad=()=>{let e={string:{unit:"字符",verb:"包含"},file:{unit:"字节",verb:"包含"},array:{unit:"项",verb:"包含"},set:{unit:"项",verb:"包含"}};function t(t){return e[t]??null}let r={regex:"输入",email:"电子邮件",url:"URL",emoji:"表情符号",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO日期时间",date:"ISO日期",time:"ISO时间",duration:"ISO时长",ipv4:"IPv4地址",ipv6:"IPv6地址",cidrv4:"IPv4网段",cidrv6:"IPv6网段",base64:"base64编码字符串",base64url:"base64url编码字符串",json_string:"JSON字符串",e164:"E.164号码",jwt:"JWT",template_literal:"输入"},i={nan:"NaN",number:"数字",array:"数组",null:"空值(null)"};return e=>{switch(e.code){case"invalid_type":{let t=i[e.expected]??e.expected,r=es(e.input),n=i[r]??r;if(/^[A-Z]/.test(e.expected))return`无效输入:期望 instanceof ${e.expected},实际接收 ${n}`;return`无效输入:期望 ${t},实际接收 ${n}`}case"invalid_value":if(1===e.values.length)return`无效输入:期望 ${F(e.values[0])}`;return`无效选项:期望以下之一 ${p(e.values,"|")}`;case"too_big":{let r=e.inclusive?"<=":"<",i=t(e.origin);if(i)return`数值过大:期望 ${e.origin??"值"} ${r}${e.maximum.toString()} ${i.unit??"个元素"}`;return`数值过大:期望 ${e.origin??"值"} ${r}${e.maximum.toString()}`}case"too_small":{let r=e.inclusive?">=":">",i=t(e.origin);if(i)return`数值过小:期望 ${e.origin} ${r}${e.minimum.toString()} ${i.unit}`;return`数值过小:期望 ${e.origin} ${r}${e.minimum.toString()}`}case"invalid_format":{let t=e;if("starts_with"===t.format)return`无效字符串:必须以 "${t.prefix}" 开头`;if("ends_with"===t.format)return`无效字符串:必须以 "${t.suffix}" 结尾`;if("includes"===t.format)return`无效字符串:必须包含 "${t.includes}"`;if("regex"===t.format)return`无效字符串:必须满足正则表达式 ${t.pattern}`;return`无效${r[t.format]??e.format}`}case"not_multiple_of":return`无效数字:必须是 ${e.divisor} 的倍数`;case"unrecognized_keys":return`出现未知的键(key): ${p(e.keys,", ")}`;case"invalid_key":return`${e.origin} 中的键(key)无效`;case"invalid_union":default:return"无效输入";case"invalid_element":return`${e.origin} 中包含无效值(value)`}}};function al(){return{localeError:ad()}}let ah=()=>{let e={string:{unit:"字元",verb:"擁有"},file:{unit:"位元組",verb:"擁有"},array:{unit:"項目",verb:"擁有"},set:{unit:"項目",verb:"擁有"}};function t(t){return e[t]??null}let r={regex:"輸入",email:"郵件地址",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO 日期時間",date:"ISO 日期",time:"ISO 時間",duration:"ISO 期間",ipv4:"IPv4 位址",ipv6:"IPv6 位址",cidrv4:"IPv4 範圍",cidrv6:"IPv6 範圍",base64:"base64 編碼字串",base64url:"base64url 編碼字串",json_string:"JSON 字串",e164:"E.164 數值",jwt:"JWT",template_literal:"輸入"},i={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":{let t=i[e.expected]??e.expected,r=es(e.input),n=i[r]??r;if(/^[A-Z]/.test(e.expected))return`無效的輸入值:預期為 instanceof ${e.expected},但收到 ${n}`;return`無效的輸入值:預期為 ${t},但收到 ${n}`}case"invalid_value":if(1===e.values.length)return`無效的輸入值:預期為 ${F(e.values[0])}`;return`無效的選項:預期為以下其中之一 ${p(e.values,"|")}`;case"too_big":{let r=e.inclusive?"<=":"<",i=t(e.origin);if(i)return`數值過大:預期 ${e.origin??"值"} 應為 ${r}${e.maximum.toString()} ${i.unit??"個元素"}`;return`數值過大:預期 ${e.origin??"值"} 應為 ${r}${e.maximum.toString()}`}case"too_small":{let r=e.inclusive?">=":">",i=t(e.origin);if(i)return`數值過小:預期 ${e.origin} 應為 ${r}${e.minimum.toString()} ${i.unit}`;return`數值過小:預期 ${e.origin} 應為 ${r}${e.minimum.toString()}`}case"invalid_format":{let t=e;if("starts_with"===t.format)return`無效的字串:必須以 "${t.prefix}" 開頭`;if("ends_with"===t.format)return`無效的字串:必須以 "${t.suffix}" 結尾`;if("includes"===t.format)return`無效的字串:必須包含 "${t.includes}"`;if("regex"===t.format)return`無效的字串:必須符合格式 ${t.pattern}`;return`無效的 ${r[t.format]??e.format}`}case"not_multiple_of":return`無效的數字:必須為 ${e.divisor} 的倍數`;case"unrecognized_keys":return`無法識別的鍵值${e.keys.length>1?"們":""}:${p(e.keys,"、")}`;case"invalid_key":return`${e.origin} 中有無效的鍵值`;case"invalid_union":default:return"無效的輸入值";case"invalid_element":return`${e.origin} 中有無效的值`}}};function ap(){return{localeError:ah()}}let am=()=>{let e={string:{unit:"àmi",verb:"ní"},file:{unit:"bytes",verb:"ní"},array:{unit:"nkan",verb:"ní"},set:{unit:"nkan",verb:"ní"}};function t(t){return e[t]??null}let r={regex:"ẹ̀rọ ìbáwọlé",email:"àdírẹ́sì ìmẹ́lì",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"àkókò ISO",date:"ọjọ́ ISO",time:"àkókò ISO",duration:"àkókò tó pé ISO",ipv4:"àdírẹ́sì IPv4",ipv6:"àdírẹ́sì IPv6",cidrv4:"àgbègbè IPv4",cidrv6:"àgbègbè IPv6",base64:"ọ̀rọ̀ tí a kọ́ ní base64",base64url:"ọ̀rọ̀ base64url",json_string:"ọ̀rọ̀ JSON",e164:"nọ́mbà E.164",jwt:"JWT",template_literal:"ẹ̀rọ ìbáwọlé"},i={nan:"NaN",number:"nọ́mbà",array:"akopọ"};return e=>{switch(e.code){case"invalid_type":{let t=i[e.expected]??e.expected,r=es(e.input),n=i[r]??r;if(/^[A-Z]/.test(e.expected))return`\xccb\xe1wọl\xe9 aṣ\xecṣe: a n\xed l\xe1ti fi instanceof ${e.expected}, \xe0mọ̀ a r\xed ${n}`;return`\xccb\xe1wọl\xe9 aṣ\xecṣe: a n\xed l\xe1ti fi ${t}, \xe0mọ̀ a r\xed ${n}`}case"invalid_value":if(1===e.values.length)return`\xccb\xe1wọl\xe9 aṣ\xecṣe: a n\xed l\xe1ti fi ${F(e.values[0])}`;return`\xc0ṣ\xe0y\xe0n aṣ\xecṣe: yan ọ̀kan l\xe1ra ${p(e.values,"|")}`;case"too_big":{let r=e.inclusive?"<=":"<",i=t(e.origin);if(i)return`T\xf3 pọ̀ j\xf9: a n\xed l\xe1ti jẹ́ p\xe9 ${e.origin??"iye"} ${i.verb} ${r}${e.maximum} ${i.unit}`;return`T\xf3 pọ̀ j\xf9: a n\xed l\xe1ti jẹ́ ${r}${e.maximum}`}case"too_small":{let r=e.inclusive?">=":">",i=t(e.origin);if(i)return`K\xe9r\xe9 ju: a n\xed l\xe1ti jẹ́ p\xe9 ${e.origin} ${i.verb} ${r}${e.minimum} ${i.unit}`;return`K\xe9r\xe9 ju: a n\xed l\xe1ti jẹ́ ${r}${e.minimum}`}case"invalid_format":{let t=e;if("starts_with"===t.format)return`Ọ̀rọ̀ aṣ\xecṣe: gbọ́dọ̀ bẹ̀rẹ̀ pẹ̀l\xfa "${t.prefix}"`;if("ends_with"===t.format)return`Ọ̀rọ̀ aṣ\xecṣe: gbọ́dọ̀ par\xed pẹ̀l\xfa "${t.suffix}"`;if("includes"===t.format)return`Ọ̀rọ̀ aṣ\xecṣe: gbọ́dọ̀ n\xed "${t.includes}"`;if("regex"===t.format)return`Ọ̀rọ̀ aṣ\xecṣe: gbọ́dọ̀ b\xe1 \xe0pẹẹrẹ mu ${t.pattern}`;return`Aṣ\xecṣe: ${r[t.format]??e.format}`}case"not_multiple_of":return`Nọ́mb\xe0 aṣ\xecṣe: gbọ́dọ̀ jẹ́ \xe8y\xe0 p\xedp\xedn ti ${e.divisor}`;case"unrecognized_keys":return`Bọt\xecn\xec \xe0\xecmọ̀: ${p(e.keys,", ")}`;case"invalid_key":return`Bọt\xecn\xec aṣ\xecṣe n\xedn\xfa ${e.origin}`;case"invalid_union":default:return"Ìbáwọlé aṣìṣe";case"invalid_element":return`Iye aṣ\xecṣe n\xedn\xfa ${e.origin}`}}};function ab(){return{localeError:am()}}e.s([],10429);let ag=Symbol("ZodOutput"),av=Symbol("ZodInput");class ay{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let r=t[0];return this._map.set(e,r),r&&"object"==typeof r&&"id"in r&&this._idmap.set(r.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&"object"==typeof t&&"id"in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let r={...this.get(t)??{}};delete r.id;let i={...r,...this._map.get(e)};return Object.keys(i).length?i:void 0}return this._map.get(e)}has(e){return this._map.has(e)}}function a_(){return new ay}(s8=globalThis).__zod_globalRegistry??(s8.__zod_globalRegistry=a_());let ax=globalThis.__zod_globalRegistry;function aw(e,t){return new e({type:"string",...L(t)})}function aS(e,t){return new e({type:"string",coerce:!0,...L(t)})}function ak(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...L(t)})}function a$(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...L(t)})}function aI(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...L(t)})}function aM(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...L(t)})}function aE(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...L(t)})}function aA(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...L(t)})}function aO(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...L(t)})}function aN(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...L(t)})}function aj(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...L(t)})}function az(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...L(t)})}function aU(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...L(t)})}function aP(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...L(t)})}function aT(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...L(t)})}function aR(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...L(t)})}function aD(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...L(t)})}function aB(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...L(t)})}function aC(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...L(t)})}function aZ(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...L(t)})}function aL(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...L(t)})}function aq(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...L(t)})}function aF(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...L(t)})}function aJ(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...L(t)})}function aW(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...L(t)})}e.s(["$ZodRegistry",0,ay,"$input",0,av,"$output",0,ag,"globalRegistry",0,ax,"registry",0,a_],9402);let aK={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function aV(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...L(t)})}function aG(e,t){return new e({type:"string",format:"date",check:"string_format",...L(t)})}function aH(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...L(t)})}function aX(e,t){return new e({type:"string",format:"duration",check:"string_format",...L(t)})}function aY(e,t){return new e({type:"number",checks:[],...L(t)})}function aQ(e,t){return new e({type:"number",coerce:!0,checks:[],...L(t)})}function a0(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...L(t)})}function a1(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...L(t)})}function a2(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...L(t)})}function a6(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...L(t)})}function a4(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...L(t)})}function a3(e,t){return new e({type:"boolean",...L(t)})}function a8(e,t){return new e({type:"boolean",coerce:!0,...L(t)})}function a5(e,t){return new e({type:"bigint",...L(t)})}function a9(e,t){return new e({type:"bigint",coerce:!0,...L(t)})}function a7(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...L(t)})}function oe(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...L(t)})}function ot(e,t){return new e({type:"symbol",...L(t)})}function or(e,t){return new e({type:"undefined",...L(t)})}function oi(e,t){return new e({type:"null",...L(t)})}function on(e){return new e({type:"any"})}function oa(e){return new e({type:"unknown"})}function oo(e,t){return new e({type:"never",...L(t)})}function os(e,t){return new e({type:"void",...L(t)})}function ou(e,t){return new e({type:"date",...L(t)})}function of(e,t){return new e({type:"date",coerce:!0,...L(t)})}function oc(e,t){return new e({type:"nan",...L(t)})}function od(e,t){return new tH({check:"less_than",...L(t),value:e,inclusive:!1})}function ol(e,t){return new tH({check:"less_than",...L(t),value:e,inclusive:!0})}function oh(e,t){return new tX({check:"greater_than",...L(t),value:e,inclusive:!1})}function op(e,t){return new tX({check:"greater_than",...L(t),value:e,inclusive:!0})}function om(e){return oh(0,e)}function ob(e){return od(0,e)}function og(e){return ol(0,e)}function ov(e){return op(0,e)}function oy(e,t){return new tY({check:"multiple_of",...L(t),value:e})}function o_(e,t){return new t1({check:"max_size",...L(t),maximum:e})}function ox(e,t){return new t2({check:"min_size",...L(t),minimum:e})}function ow(e,t){return new t6({check:"size_equals",...L(t),size:e})}function oS(e,t){return new t4({check:"max_length",...L(t),maximum:e})}function ok(e,t){return new t3({check:"min_length",...L(t),minimum:e})}function o$(e,t){return new t8({check:"length_equals",...L(t),length:e})}function oI(e,t){return new t9({check:"string_format",format:"regex",...L(t),pattern:e})}function oM(e){return new t7({check:"string_format",format:"lowercase",...L(e)})}function oE(e){return new re({check:"string_format",format:"uppercase",...L(e)})}function oA(e,t){return new rt({check:"string_format",format:"includes",...L(t),includes:e})}function oO(e,t){return new rr({check:"string_format",format:"starts_with",...L(t),prefix:e})}function oN(e,t){return new ri({check:"string_format",format:"ends_with",...L(t),suffix:e})}function oj(e,t,r){return new ra({check:"property",property:e,schema:t,...L(r)})}function oz(e,t){return new ro({check:"mime_type",mime:e,...L(t)})}function oU(e){return new rs({check:"overwrite",tx:e})}function oP(e){return oU(t=>t.normalize(e))}function oT(){return oU(e=>e.trim())}function oR(){return oU(e=>e.toLowerCase())}function oD(){return oU(e=>e.toUpperCase())}function oB(){return oU(e=>O(e))}function oC(e,t,r){return new e({type:"array",element:t,...L(r)})}function oZ(e,t,r){return new e({type:"union",options:t,...L(r)})}function oL(e,t,r){return new e({type:"union",options:t,inclusive:!1,...L(r)})}function oq(e,t,r,i){return new e({type:"union",options:r,discriminator:t,...L(i)})}function oF(e,t,r){return new e({type:"intersection",left:t,right:r})}function oJ(e,t,r,i){let n=r instanceof rc,a=n?i:r;return new e({type:"tuple",items:t,rest:n?r:null,...L(a)})}function oW(e,t,r,i){return new e({type:"record",keyType:t,valueType:r,...L(i)})}function oK(e,t,r,i){return new e({type:"map",keyType:t,valueType:r,...L(i)})}function oV(e,t,r){return new e({type:"set",valueType:t,...L(r)})}function oG(e,t,r){return new e({type:"enum",entries:Array.isArray(t)?Object.fromEntries(t.map(e=>[e,e])):t,...L(r)})}function oH(e,t,r){return new e({type:"enum",entries:t,...L(r)})}function oX(e,t,r){return new e({type:"literal",values:Array.isArray(t)?t:[t],...L(r)})}function oY(e,t){return new e({type:"file",...L(t)})}function oQ(e,t){return new e({type:"transform",transform:t})}function o0(e,t){return new e({type:"optional",innerType:t})}function o1(e,t){return new e({type:"nullable",innerType:t})}function o2(e,t,r){return new e({type:"default",innerType:t,get defaultValue(){return"function"==typeof r?r():P(r)}})}function o6(e,t,r){return new e({type:"nonoptional",innerType:t,...L(r)})}function o4(e,t){return new e({type:"success",innerType:t})}function o3(e,t,r){return new e({type:"catch",innerType:t,catchValue:"function"==typeof r?r:()=>r})}function o8(e,t,r){return new e({type:"pipe",in:t,out:r})}function o5(e,t){return new e({type:"readonly",innerType:t})}function o9(e,t,r){return new e({type:"template_literal",parts:t,...L(r)})}function o7(e,t){return new e({type:"lazy",getter:t})}function se(e,t){return new e({type:"promise",innerType:t})}function st(e,t,r){let i=L(r);return i.abort??(i.abort=!0),new e({type:"custom",check:"custom",fn:t,...i})}function sr(e,t,r){return new e({type:"custom",check:"custom",fn:t,...L(r)})}function si(e){let t=sn(r=>(r.addIssue=e=>{if("string"==typeof e)r.issues.push(eu(e,r.value,t._zod.def));else{let i=e;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=r.value),i.inst??(i.inst=t),i.continue??(i.continue=!t._zod.def.abort),r.issues.push(eu(i))}},e(r.value,r)));return t}function sn(e,t){let r=new tV({check:"custom",...L(t)});return r._zod.check=e,r}function sa(e){let t=new tV({check:"describe"});return t._zod.onattach=[t=>{let r=ax.get(t)??{};ax.add(t,{...r,description:e})}],t._zod.check=()=>{},t}function so(e){let t=new tV({check:"meta"});return t._zod.onattach=[t=>{let r=ax.get(t)??{};ax.add(t,{...r,...e})}],t._zod.check=()=>{},t}function ss(e,t){let r=L(t),i=r.truthy??["true","1","yes","on","y","enabled"],n=r.falsy??["false","0","no","off","n","disabled"];"sensitive"!==r.case&&(i=i.map(e=>"string"==typeof e?e.toLowerCase():e),n=n.map(e=>"string"==typeof e?e.toLowerCase():e));let a=new Set(i),o=new Set(n),s=e.Codec??ij,u=e.Boolean??rq,f=new s({type:"pipe",in:new(e.String??rd)({type:"string",error:r.error}),out:new u({type:"boolean",error:r.error}),transform:(e,t)=>{let i=e;return"sensitive"!==r.case&&(i=i.toLowerCase()),!!a.has(i)||!o.has(i)&&(t.issues.push({code:"invalid_value",expected:"stringbool",values:[...a,...o],input:t.value,inst:f,continue:!1}),{})},reverseTransform:(e,t)=>!0===e?i[0]||"true":n[0]||"false",error:r.error});return f}function su(e,t,r,i={}){let n=L(i),a={...L(i),check:"string_format",type:"string",format:t,fn:"function"==typeof r?r:e=>r.test(e),...n};return r instanceof RegExp&&(a.pattern=r),new e(a)}function sf(e){let t=e?.target??"draft-2020-12";return"draft-4"===t&&(t="draft-04"),"draft-7"===t&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??ax,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function sc(e,t,r={path:[],schemaPath:[]}){var i;let n=e._zod.def,a=t.seen.get(e);if(a)return a.count++,r.schemaPath.includes(e)&&(a.cycle=r.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:r.path};t.seen.set(e,o);let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else{let i={...r,schemaPath:[...r.schemaPath,e],path:r.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,i);else{let r=o.schema,a=t.processors[n.type];if(!a)throw Error(`[toJSONSchema]: Non-representable type encountered: ${n.type}`);a(e,t,r,i)}let a=e._zod.parent;a&&(o.ref||(o.ref=a),sc(a,t,i),t.seen.get(a).isParent=!0)}let u=t.metadataRegistry.get(e);return u&&Object.assign(o.schema,u),"input"===t.io&&sh(e)&&(delete o.schema.examples,delete o.schema.default),"input"===t.io&&o.schema._prefault&&((i=o.schema).default??(i.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function sd(e,t){let r=e.seen.get(t);if(!r)throw Error("Unprocessed schema. This is a bug in Zod.");let i=new Map;for(let t of e.seen.entries()){let r=e.metadataRegistry.get(t[0])?.id;if(r){let e=i.get(r);if(e&&e!==t[0])throw Error(`Duplicate schema id "${r}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);i.set(r,t[0])}}let n=t=>{let i="draft-2020-12"===e.target?"$defs":"definitions";if(e.external){let r=e.external.registry.get(t[0])?.id,n=e.external.uri??(e=>e);if(r)return{ref:n(r)};let a=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=a,{defId:a,ref:`${n("__shared")}#/${i}/${a}`}}if(t[1]===r)return{ref:"#"};let n="#",a=`${n}/${i}/`,o=t[1].schema.id??`__schema${e.counter++}`;return{defId:o,ref:a+o}},a=e=>{if(e[1].schema.$ref)return;let t=e[1],{ref:r,defId:i}=n(e);t.def={...t.schema},i&&(t.defId=i);let a=t.schema;for(let e in a)delete a[e];a.$ref=r};if("throw"===e.cycles)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join("/")}/<root>
|
|
36
36
|
|
|
37
|
-
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let r of e.seen.entries()){let i=r[1];if(t===r[0]){a(r);continue}if(e.external){let i=e.external.registry.get(r[0])?.id;if(t!==r[0]&&i){a(r);continue}}if(e.metadataRegistry.get(r[0])?.id||i.cycle||i.count>1&&"ref"===e.reused){a(r);continue}}}function sl(e,t){let r=e.seen.get(t);if(!r)throw Error("Unprocessed schema. This is a bug in Zod.");let i=t=>{let r=e.seen.get(t);if(null===r.ref)return;let n=r.def??r.schema,a={...n},o=r.ref;if(r.ref=null,o){i(o);let r=e.seen.get(o),s=r.schema;if(s.$ref&&("draft-07"===e.target||"draft-04"===e.target||"openapi-3.0"===e.target)?(n.allOf=n.allOf??[],n.allOf.push(s)):Object.assign(n,s),Object.assign(n,a),t._zod.parent===o)for(let e in n)"$ref"!==e&&"allOf"!==e&&(e in a||delete n[e]);if(s.$ref&&r.def)for(let e in n)"$ref"!==e&&"allOf"!==e&&e in r.def&&JSON.stringify(n[e])===JSON.stringify(r.def[e])&&delete n[e]}let s=t._zod.parent;if(s&&s!==o){i(s);let t=e.seen.get(s);if(t?.schema.$ref&&(n.$ref=t.schema.$ref,t.def))for(let e in n)"$ref"!==e&&"allOf"!==e&&e in t.def&&JSON.stringify(n[e])===JSON.stringify(t.def[e])&&delete n[e]}e.override({zodSchema:t,jsonSchema:n,path:r.path??[]})};for(let t of[...e.seen.entries()].reverse())i(t[0]);let n={};if("draft-2020-12"===e.target?n.$schema="https://json-schema.org/draft/2020-12/schema":"draft-07"===e.target?n.$schema="http://json-schema.org/draft-07/schema#":"draft-04"===e.target?n.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let r=e.external.registry.get(t)?.id;if(!r)throw Error("Schema is missing an `id` property");n.$id=e.external.uri(r)}Object.assign(n,r.def??r.schema);let a=e.external?.defs??{};for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(a[e.defId]=e.def)}e.external||Object.keys(a).length>0&&("draft-2020-12"===e.target?n.$defs=a:n.definitions=a);try{let r=JSON.parse(JSON.stringify(n));return Object.defineProperty(r,"~standard",{value:{...t["~standard"],jsonSchema:{input:sm(t,"input",e.processors),output:sm(t,"output",e.processors)}},enumerable:!1,writable:!1}),r}catch(e){throw Error("Error converting schema to JSON.")}}function sh(e,t){let r=t??{seen:new Set};if(r.seen.has(e))return!1;r.seen.add(e);let i=e._zod.def;if("transform"===i.type)return!0;if("array"===i.type)return sh(i.element,r);if("set"===i.type)return sh(i.valueType,r);if("lazy"===i.type)return sh(i.getter(),r);if("promise"===i.type||"optional"===i.type||"nonoptional"===i.type||"nullable"===i.type||"readonly"===i.type||"default"===i.type||"prefault"===i.type)return sh(i.innerType,r);if("intersection"===i.type)return sh(i.left,r)||sh(i.right,r);if("record"===i.type||"map"===i.type)return sh(i.keyType,r)||sh(i.valueType,r);if("pipe"===i.type)return sh(i.in,r)||sh(i.out,r);if("object"===i.type){for(let e in i.shape)if(sh(i.shape[e],r))return!0;return!1}if("union"===i.type){for(let e of i.options)if(sh(e,r))return!0;return!1}if("tuple"===i.type){for(let e of i.items)if(sh(e,r))return!0;if(i.rest&&sh(i.rest,r))return!0}return!1}e.s(["TimePrecision",0,aK,"_any",0,on,"_array",0,oZ,"_base64",0,aq,"_base64url",0,aF,"_bigint",0,a5,"_boolean",0,a3,"_catch",0,o3,"_check",0,sn,"_cidrv4",0,aC,"_cidrv6",0,aL,"_coercedBigint",0,a9,"_coercedBoolean",0,a8,"_coercedDate",0,of,"_coercedNumber",0,aQ,"_coercedString",0,aS,"_cuid",0,aU,"_cuid2",0,aP,"_custom",0,st,"_date",0,ou,"_default",0,o2,"_discriminatedUnion",0,oq,"_e164",0,aJ,"_email",0,ak,"_emoji",0,aj,"_endsWith",0,oj,"_enum",0,oG,"_file",0,oY,"_float32",0,a1,"_float64",0,a2,"_gt",0,oh,"_gte",0,op,"_guid",0,a$,"_includes",0,oA,"_int",0,a0,"_int32",0,a6,"_int64",0,a7,"_intersection",0,oF,"_ipv4",0,aD,"_ipv6",0,aB,"_isoDate",0,aG,"_isoDateTime",0,aV,"_isoDuration",0,aX,"_isoTime",0,aH,"_jwt",0,aW,"_ksuid",0,aN,"_lazy",0,o7,"_length",0,o$,"_literal",0,oX,"_lowercase",0,oM,"_lt",0,od,"_lte",0,ol,"_mac",0,aZ,"_map",0,oK,"_max",0,ol,"_maxLength",0,oS,"_maxSize",0,o_,"_mime",0,oU,"_min",0,op,"_minLength",0,ok,"_minSize",0,ox,"_multipleOf",0,oy,"_nan",0,oc,"_nanoid",0,az,"_nativeEnum",0,oH,"_negative",0,ob,"_never",0,oo,"_nonnegative",0,ov,"_nonoptional",0,o6,"_nonpositive",0,og,"_normalize",0,oT,"_null",0,oi,"_nullable",0,o1,"_number",0,aY,"_optional",0,o0,"_overwrite",0,oP,"_pipe",0,o8,"_positive",0,om,"_promise",0,se,"_property",0,oz,"_readonly",0,o5,"_record",0,oW,"_refine",0,sr,"_regex",0,oI,"_set",0,oV,"_size",0,ow,"_slugify",0,oB,"_startsWith",0,oO,"_string",0,aw,"_stringFormat",0,su,"_stringbool",0,ss,"_success",0,o4,"_superRefine",0,si,"_symbol",0,ot,"_templateLiteral",0,o9,"_toLowerCase",0,oN,"_toUpperCase",0,oD,"_transform",0,oQ,"_trim",0,oR,"_tuple",0,oJ,"_uint32",0,a4,"_uint64",0,oe,"_ulid",0,aT,"_undefined",0,or,"_union",0,oC,"_unknown",0,oa,"_uppercase",0,oE,"_url",0,aO,"_uuid",0,aI,"_uuidv4",0,aM,"_uuidv6",0,aE,"_uuidv7",0,aA,"_void",0,os,"_xid",0,aR,"_xor",0,oL,"describe",0,sa,"meta",0,so],37581);let sp=(e,t={})=>r=>{let i=sf({...r,processors:t});return sc(e,i),sd(i,e),sl(i,e)},sm=(e,t,r={})=>i=>{let{libraryOptions:n,target:a}=i??{},o=sf({...n??{},target:a,io:t,processors:r});return sc(e,o),sd(o,e),sl(o,e)};e.s(["createStandardJSONSchemaMethod",0,sm,"createToJSONSchemaMethod",0,sp,"extractDefs",0,sd,"finalize",0,sl,"initializeContext",0,sf,"process",0,sc],88323);let sb={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},sg=(e,t,r,i)=>{let n=r;n.type="string";let{minimum:a,maximum:o,format:s,patterns:u,contentEncoding:f}=e._zod.bag;if("number"==typeof a&&(n.minLength=a),"number"==typeof o&&(n.maxLength=o),s&&(n.format=sb[s]??s,""===n.format&&delete n.format,"time"===s&&delete n.format),f&&(n.contentEncoding=f),u&&u.size>0){let e=[...u];1===e.length?n.pattern=e[0].source:e.length>1&&(n.allOf=[...e.map(e=>({..."draft-07"===t.target||"draft-04"===t.target||"openapi-3.0"===t.target?{type:"string"}:{},pattern:e.source}))])}},sv=(e,t,r,i)=>{let n=r,{minimum:a,maximum:o,format:s,multipleOf:u,exclusiveMaximum:f,exclusiveMinimum:c}=e._zod.bag;"string"==typeof s&&s.includes("int")?n.type="integer":n.type="number","number"==typeof c&&("draft-04"===t.target||"openapi-3.0"===t.target?(n.minimum=c,n.exclusiveMinimum=!0):n.exclusiveMinimum=c),"number"==typeof a&&(n.minimum=a,"number"==typeof c&&"draft-04"!==t.target&&(c>=a?delete n.minimum:delete n.exclusiveMinimum)),"number"==typeof f&&("draft-04"===t.target||"openapi-3.0"===t.target?(n.maximum=f,n.exclusiveMaximum=!0):n.exclusiveMaximum=f),"number"==typeof o&&(n.maximum=o,"number"==typeof f&&"draft-04"!==t.target&&(f<=o?delete n.maximum:delete n.exclusiveMaximum)),"number"==typeof u&&(n.multipleOf=u)},sy=(e,t,r,i)=>{r.type="boolean"},s_=(e,t,r,i)=>{if("throw"===t.unrepresentable)throw Error("BigInt cannot be represented in JSON Schema")},sx=(e,t,r,i)=>{if("throw"===t.unrepresentable)throw Error("Symbols cannot be represented in JSON Schema")},sw=(e,t,r,i)=>{"openapi-3.0"===t.target?(r.type="string",r.nullable=!0,r.enum=[null]):r.type="null"},sS=(e,t,r,i)=>{if("throw"===t.unrepresentable)throw Error("Undefined cannot be represented in JSON Schema")},sk=(e,t,r,i)=>{if("throw"===t.unrepresentable)throw Error("Void cannot be represented in JSON Schema")},s$=(e,t,r,i)=>{r.not={}},sI=(e,t,r,i)=>{},sM=(e,t,r,i)=>{},sE=(e,t,r,i)=>{if("throw"===t.unrepresentable)throw Error("Date cannot be represented in JSON Schema")},sA=(e,t,r,i)=>{let n=h(e._zod.def.entries);n.every(e=>"number"==typeof e)&&(r.type="number"),n.every(e=>"string"==typeof e)&&(r.type="string"),r.enum=n},sO=(e,t,r,i)=>{let n=e._zod.def,a=[];for(let e of n.values)if(void 0===e){if("throw"===t.unrepresentable)throw Error("Literal `undefined` cannot be represented in JSON Schema")}else if("bigint"==typeof e)if("throw"===t.unrepresentable)throw Error("BigInt literals cannot be represented in JSON Schema");else a.push(Number(e));else a.push(e);if(0===a.length);else if(1===a.length){let e=a[0];r.type=null===e?"null":typeof e,"draft-04"===t.target||"openapi-3.0"===t.target?r.enum=[e]:r.const=e}else a.every(e=>"number"==typeof e)&&(r.type="number"),a.every(e=>"string"==typeof e)&&(r.type="string"),a.every(e=>"boolean"==typeof e)&&(r.type="boolean"),a.every(e=>null===e)&&(r.type="null"),r.enum=a},sj=(e,t,r,i)=>{if("throw"===t.unrepresentable)throw Error("NaN cannot be represented in JSON Schema")},sz=(e,t,r,i)=>{let n=r,a=e._zod.pattern;if(!a)throw Error("Pattern not found in template literal");n.type="string",n.pattern=a.source},sU=(e,t,r,i)=>{let n=r,a={type:"string",format:"binary",contentEncoding:"binary"},{minimum:o,maximum:s,mime:u}=e._zod.bag;void 0!==o&&(a.minLength=o),void 0!==s&&(a.maxLength=s),u?1===u.length?(a.contentMediaType=u[0],Object.assign(n,a)):(Object.assign(n,a),n.anyOf=u.map(e=>({contentMediaType:e}))):Object.assign(n,a)},sP=(e,t,r,i)=>{r.type="boolean"},sT=(e,t,r,i)=>{if("throw"===t.unrepresentable)throw Error("Custom types cannot be represented in JSON Schema")},sR=(e,t,r,i)=>{if("throw"===t.unrepresentable)throw Error("Function types cannot be represented in JSON Schema")},sN=(e,t,r,i)=>{if("throw"===t.unrepresentable)throw Error("Transforms cannot be represented in JSON Schema")},sD=(e,t,r,i)=>{if("throw"===t.unrepresentable)throw Error("Map cannot be represented in JSON Schema")},sB=(e,t,r,i)=>{if("throw"===t.unrepresentable)throw Error("Set cannot be represented in JSON Schema")},sZ=(e,t,r,i)=>{let n=r,a=e._zod.def,{minimum:o,maximum:s}=e._zod.bag;"number"==typeof o&&(n.minItems=o),"number"==typeof s&&(n.maxItems=s),n.type="array",n.items=sc(a.element,t,{...i,path:[...i.path,"items"]})},sC=(e,t,r,i)=>{let n=r,a=e._zod.def;n.type="object",n.properties={};let o=a.shape;for(let e in o)n.properties[e]=sc(o[e],t,{...i,path:[...i.path,"properties",e]});let s=new Set([...new Set(Object.keys(o))].filter(e=>{let r=a.shape[e]._zod;return"input"===t.io?void 0===r.optin:void 0===r.optout}));s.size>0&&(n.required=Array.from(s)),a.catchall?._zod.def.type==="never"?n.additionalProperties=!1:a.catchall?a.catchall&&(n.additionalProperties=sc(a.catchall,t,{...i,path:[...i.path,"additionalProperties"]})):"output"===t.io&&(n.additionalProperties=!1)},sL=(e,t,r,i)=>{let n=e._zod.def,a=!1===n.inclusive,o=n.options.map((e,r)=>sc(e,t,{...i,path:[...i.path,a?"oneOf":"anyOf",r]}));a?r.oneOf=o:r.anyOf=o},sq=(e,t,r,i)=>{let n=e._zod.def,a=sc(n.left,t,{...i,path:[...i.path,"allOf",0]}),o=sc(n.right,t,{...i,path:[...i.path,"allOf",1]}),s=e=>"allOf"in e&&1===Object.keys(e).length;r.allOf=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]]},sF=(e,t,r,i)=>{let n=r,a=e._zod.def;n.type="array";let o="draft-2020-12"===t.target?"prefixItems":"items",s="draft-2020-12"===t.target||"openapi-3.0"===t.target?"items":"additionalItems",u=a.items.map((e,r)=>sc(e,t,{...i,path:[...i.path,o,r]})),f=a.rest?sc(a.rest,t,{...i,path:[...i.path,s,..."openapi-3.0"===t.target?[a.items.length]:[]]}):null;"draft-2020-12"===t.target?(n.prefixItems=u,f&&(n.items=f)):"openapi-3.0"===t.target?(n.items={anyOf:u},f&&n.items.anyOf.push(f),n.minItems=u.length,f||(n.maxItems=u.length)):(n.items=u,f&&(n.additionalItems=f));let{minimum:c,maximum:d}=e._zod.bag;"number"==typeof c&&(n.minItems=c),"number"==typeof d&&(n.maxItems=d)},sJ=(e,t,r,i)=>{let n=r,a=e._zod.def;n.type="object";let o=a.keyType,s=o._zod.bag,u=s?.patterns;if("loose"===a.mode&&u&&u.size>0){let e=sc(a.valueType,t,{...i,path:[...i.path,"patternProperties","*"]});for(let t of(n.patternProperties={},u))n.patternProperties[t.source]=e}else("draft-07"===t.target||"draft-2020-12"===t.target)&&(n.propertyNames=sc(a.keyType,t,{...i,path:[...i.path,"propertyNames"]})),n.additionalProperties=sc(a.valueType,t,{...i,path:[...i.path,"additionalProperties"]});let f=o._zod.values;if(f){let e=[...f].filter(e=>"string"==typeof e||"number"==typeof e);e.length>0&&(n.required=e)}},sW=(e,t,r,i)=>{let n=e._zod.def,a=sc(n.innerType,t,i),o=t.seen.get(e);"openapi-3.0"===t.target?(o.ref=n.innerType,r.nullable=!0):r.anyOf=[a,{type:"null"}]},sK=(e,t,r,i)=>{let n=e._zod.def;sc(n.innerType,t,i),t.seen.get(e).ref=n.innerType},sV=(e,t,r,i)=>{let n=e._zod.def;sc(n.innerType,t,i),t.seen.get(e).ref=n.innerType,r.default=JSON.parse(JSON.stringify(n.defaultValue))},sG=(e,t,r,i)=>{let n=e._zod.def;sc(n.innerType,t,i),t.seen.get(e).ref=n.innerType,"input"===t.io&&(r._prefault=JSON.parse(JSON.stringify(n.defaultValue)))},sH=(e,t,r,i)=>{let n,a=e._zod.def;sc(a.innerType,t,i),t.seen.get(e).ref=a.innerType;try{n=a.catchValue(void 0)}catch{throw Error("Dynamic catch values are not supported in JSON Schema")}r.default=n},sX=(e,t,r,i)=>{let n=e._zod.def,a="input"===t.io?"transform"===n.in._zod.def.type?n.out:n.in:n.out;sc(a,t,i),t.seen.get(e).ref=a},sY=(e,t,r,i)=>{let n=e._zod.def;sc(n.innerType,t,i),t.seen.get(e).ref=n.innerType,r.readOnly=!0},sQ=(e,t,r,i)=>{let n=e._zod.def;sc(n.innerType,t,i),t.seen.get(e).ref=n.innerType},s0=(e,t,r,i)=>{let n=e._zod.def;sc(n.innerType,t,i),t.seen.get(e).ref=n.innerType},s1=(e,t,r,i)=>{let n=e._zod.innerType;sc(n,t,i),t.seen.get(e).ref=n},s2={string:sg,number:sv,boolean:sy,bigint:s_,symbol:sx,null:sw,undefined:sS,void:sk,never:s$,any:sI,unknown:sM,date:sE,enum:sA,literal:sO,nan:sj,template_literal:sz,file:sU,success:sP,custom:sT,function:sR,transform:sN,map:sD,set:sB,array:sZ,object:sC,union:sL,intersection:sq,tuple:sF,record:sJ,nullable:sW,nonoptional:sK,default:sV,prefault:sG,catch:sH,pipe:sX,readonly:sY,promise:sQ,optional:s0,lazy:s1};function s6(e,t){if("_idmap"in e){let r=e,i=sf({...t,processors:s2}),n={};for(let e of r._idmap.entries()){let[t,r]=e;sc(r,i)}let a={};for(let e of(i.external={registry:r,uri:t?.uri,defs:n},r._idmap.entries())){let[t,r]=e;sd(i,r),a[t]=sl(i,r)}return Object.keys(n).length>0&&(a.__shared={["draft-2020-12"===i.target?"$defs":"definitions"]:n}),{schemas:a}}let r=sf({...t,processors:s2});return sc(e,r),sd(r,e),sl(r,e)}class s4{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(e){this.ctx.counter=e}get seen(){return this.ctx.seen}constructor(e){let t=e?.target??"draft-2020-12";"draft-4"===t&&(t="draft-04"),"draft-7"===t&&(t="draft-07"),this.ctx=sf({processors:s2,target:t,...e?.metadata&&{metadata:e.metadata},...e?.unrepresentable&&{unrepresentable:e.unrepresentable},...e?.override&&{override:e.override},...e?.io&&{io:e.io}})}process(e,t={path:[],schemaPath:[]}){return sc(e,this.ctx,t)}emit(e,t){t&&(t.cycles&&(this.ctx.cycles=t.cycles),t.reused&&(this.ctx.reused=t.reused),t.external&&(this.ctx.external=t.external)),sd(this.ctx,e);let{"~standard":r,...i}=sl(this.ctx,e);return i}}e.s([],33202),e.s(["ZodAny",()=>fP,"ZodArray",()=>fF,"ZodBase64",()=>fe,"ZodBase64URL",()=>fr,"ZodBigInt",()=>fS,"ZodBigIntFormat",()=>f$,"ZodBoolean",()=>fx,"ZodCIDRv4",()=>u8,"ZodCIDRv6",()=>u9,"ZodCUID",()=>uF,"ZodCUID2",()=>uW,"ZodCatch",()=>cA,"ZodCodec",()=>cT,"ZodCustom",()=>cK,"ZodCustomStringFormat",()=>fu,"ZodDate",()=>fL,"ZodDefault",()=>cx,"ZodDiscriminatedUnion",()=>f1,"ZodE164",()=>fn,"ZodEmail",()=>uE,"ZodEmoji",()=>uZ,"ZodEnum",()=>ca,"ZodExactOptional",()=>cb,"ZodFile",()=>cc,"ZodFunction",()=>cJ,"ZodGUID",()=>uO,"ZodIPv4",()=>u0,"ZodIPv6",()=>u4,"ZodIntersection",()=>f6,"ZodJWT",()=>fo,"ZodKSUID",()=>uY,"ZodLazy",()=>cC,"ZodLiteral",()=>cu,"ZodMAC",()=>u2,"ZodMap",()=>ct,"ZodNaN",()=>cj,"ZodNanoID",()=>uL,"ZodNever",()=>fD,"ZodNonOptional",()=>c$,"ZodNull",()=>fz,"ZodNullable",()=>cv,"ZodNumber",()=>fh,"ZodNumberFormat",()=>fm,"ZodObject",()=>fK,"ZodOptional",()=>cp,"ZodPipe",()=>cU,"ZodPrefault",()=>cS,"ZodPromise",()=>cq,"ZodReadonly",()=>cN,"ZodRecord",()=>f5,"ZodSet",()=>ci,"ZodString",()=>u$,"ZodStringFormat",()=>uM,"ZodSuccess",()=>cM,"ZodSymbol",()=>fE,"ZodTemplateLiteral",()=>cB,"ZodTransform",()=>cl,"ZodTuple",()=>f3,"ZodType",()=>uS,"ZodULID",()=>uV,"ZodURL",()=>uN,"ZodUUID",()=>uz,"ZodUndefined",()=>fO,"ZodUnion",()=>fX,"ZodUnknown",()=>fR,"ZodVoid",()=>fZ,"ZodXID",()=>uH,"ZodXor",()=>fQ,"_ZodString",()=>uk,"_default",()=>cw,"_function",()=>cW,"any",()=>fT,"array",()=>fJ,"base64",()=>ft,"base64url",()=>fi,"bigint",()=>fk,"boolean",()=>fw,"catch",()=>cO,"check",()=>cV,"cidrv4",()=>u5,"cidrv6",()=>u7,"codec",()=>cR,"cuid",()=>uJ,"cuid2",()=>uK,"custom",()=>cG,"date",()=>fq,"describe",()=>cY,"discriminatedUnion",()=>f2,"e164",()=>fa,"email",()=>uA,"emoji",()=>uC,"enum",()=>co,"exactOptional",()=>cg,"file",()=>cd,"float32",()=>fg,"float64",()=>fv,"function",()=>cW,"guid",()=>uj,"hash",()=>fl,"hex",()=>fd,"hostname",()=>fc,"httpUrl",()=>uB,"instanceof",()=>c0,"int",()=>fb,"int32",()=>fy,"int64",()=>fI,"intersection",()=>f4,"ipv4",()=>u1,"ipv6",()=>u3,"json",()=>c2,"jwt",()=>fs,"keyof",()=>fW,"ksuid",()=>uQ,"lazy",()=>cL,"literal",()=>cf,"looseObject",()=>fH,"looseRecord",()=>ce,"mac",()=>u6,"map",()=>cr,"meta",()=>cQ,"nan",()=>cz,"nanoid",()=>uq,"nativeEnum",()=>cs,"never",()=>fB,"nonoptional",()=>cI,"null",()=>fU,"nullable",()=>cy,"nullish",()=>c_,"number",()=>fp,"object",()=>fV,"optional",()=>cm,"partialRecord",()=>f7,"pipe",()=>cP,"prefault",()=>ck,"preprocess",()=>c6,"promise",()=>cF,"readonly",()=>cD,"record",()=>f9,"refine",()=>cH,"set",()=>cn,"strictObject",()=>fG,"string",()=>uI,"stringFormat",()=>ff,"stringbool",()=>c1,"success",()=>cE,"superRefine",()=>cX,"symbol",()=>fA,"templateLiteral",()=>cZ,"transform",()=>ch,"tuple",()=>f8,"uint32",()=>f_,"uint64",()=>fM,"ulid",()=>uG,"undefined",()=>fj,"union",()=>fY,"unknown",()=>fN,"url",()=>uD,"uuid",()=>uU,"uuidv4",()=>uP,"uuidv6",()=>uT,"uuidv7",()=>uR,"void",()=>fC,"xid",()=>uX,"xor",()=>f0],48071);var s3,s8,s5,s9=e.i(55279),s9=s9,s7=e.i(32967),s7=s7;e.s([],89777),e.s(["ZodISODate",()=>ur,"ZodISODateTime",()=>ue,"ZodISODuration",()=>uo,"ZodISOTime",()=>un,"date",()=>ui,"datetime",()=>ut,"duration",()=>us,"time",()=>ua],48473);let ue=r("ZodISODateTime",(e,t)=>{rk.init(e,t),uM.init(e,t)});function ut(e){return aV(ue,e)}let ur=r("ZodISODate",(e,t)=>{r$.init(e,t),uM.init(e,t)});function ui(e){return aG(ur,e)}let un=r("ZodISOTime",(e,t)=>{rI.init(e,t),uM.init(e,t)});function ua(e){return aH(un,e)}let uo=r("ZodISODuration",(e,t)=>{rM.init(e,t),uM.init(e,t)});function us(e){return aX(uo,e)}let uu=(e,t)=>{ev.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:t=>ex(e,t)},flatten:{value:t=>e_(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,m,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,m,2)}},isEmpty:{get:()=>0===e.issues.length}})},uf=r("ZodError",uu),uc=r("ZodError",uu,{Parent:Error});e.s(["ZodError",0,uf,"ZodRealError",0,uc],17033);let ud=e$(uc),ul=eM(uc),uh=eA(uc),up=ej(uc),um=eU(uc),ub=eT(uc),ug=eN(uc),uv=eB(uc),uy=eC(uc),u_=eq(uc),ux=eJ(uc),uw=eK(uc);e.s(["decode",0,ub,"decodeAsync",0,uv,"encode",0,um,"encodeAsync",0,ug,"parse",0,ud,"parseAsync",0,ul,"safeDecode",0,u_,"safeDecodeAsync",0,uw,"safeEncode",0,uy,"safeEncodeAsync",0,ux,"safeParse",0,uh,"safeParseAsync",0,up],48774);let uS=r("ZodType",(e,t)=>(rc.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:sm(e,"input"),output:sm(e,"output")}}),e.toJSONSchema=sp(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...r)=>e.clone(s7.mergeDefs(t,{checks:[...t.checks??[],...r.map(e=>"function"==typeof e?{_zod:{check:e,def:{check:"custom"},onattach:[]}}:e)]}),{parent:!0}),e.with=e.check,e.clone=(t,r)=>C(e,t,r),e.brand=()=>e,e.register=(t,r)=>(t.add(e,r),e),e.parse=(t,r)=>ud(e,t,r,{callee:e.parse}),e.safeParse=(t,r)=>uh(e,t,r),e.parseAsync=async(t,r)=>ul(e,t,r,{callee:e.parseAsync}),e.safeParseAsync=async(t,r)=>up(e,t,r),e.spa=e.safeParseAsync,e.encode=(t,r)=>um(e,t,r),e.decode=(t,r)=>ub(e,t,r),e.encodeAsync=async(t,r)=>ug(e,t,r),e.decodeAsync=async(t,r)=>uv(e,t,r),e.safeEncode=(t,r)=>uy(e,t,r),e.safeDecode=(t,r)=>u_(e,t,r),e.safeEncodeAsync=async(t,r)=>ux(e,t,r),e.safeDecodeAsync=async(t,r)=>uw(e,t,r),e.refine=(t,r)=>e.check(cH(t,r)),e.superRefine=t=>e.check(cX(t)),e.overwrite=t=>e.check(oP(t)),e.optional=()=>cm(e),e.exactOptional=()=>cg(e),e.nullable=()=>cy(e),e.nullish=()=>cm(cy(e)),e.nonoptional=t=>cI(e,t),e.array=()=>fJ(e),e.or=t=>fY([e,t]),e.and=t=>f4(e,t),e.transform=t=>cP(e,ch(t)),e.default=t=>cw(e,t),e.prefault=t=>ck(e,t),e.catch=t=>cO(e,t),e.pipe=t=>cP(e,t),e.readonly=()=>cD(e),e.describe=t=>{let r=e.clone();return ax.add(r,{description:t}),r},Object.defineProperty(e,"description",{get:()=>ax.get(e)?.description,configurable:!0}),e.meta=(...t)=>{if(0===t.length)return ax.get(e);let r=e.clone();return ax.add(r,t[0]),r},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=t=>t(e),e)),uk=r("_ZodString",(e,t)=>{rd.init(e,t),uS.init(e,t),e._zod.processJSONSchema=(t,r,i)=>sg(e,t,r,i);let r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,e.regex=(...t)=>e.check(oI(...t)),e.includes=(...t)=>e.check(oA(...t)),e.startsWith=(...t)=>e.check(oO(...t)),e.endsWith=(...t)=>e.check(oj(...t)),e.min=(...t)=>e.check(ok(...t)),e.max=(...t)=>e.check(oS(...t)),e.length=(...t)=>e.check(o$(...t)),e.nonempty=(...t)=>e.check(ok(1,...t)),e.lowercase=t=>e.check(oM(t)),e.uppercase=t=>e.check(oE(t)),e.trim=()=>e.check(oR()),e.normalize=(...t)=>e.check(oT(...t)),e.toLowerCase=()=>e.check(oN()),e.toUpperCase=()=>e.check(oD()),e.slugify=()=>e.check(oB())}),u$=r("ZodString",(e,t)=>{rd.init(e,t),uk.init(e,t),e.email=t=>e.check(ak(uE,t)),e.url=t=>e.check(aO(uN,t)),e.jwt=t=>e.check(aW(fo,t)),e.emoji=t=>e.check(aj(uZ,t)),e.guid=t=>e.check(a$(uO,t)),e.uuid=t=>e.check(aI(uz,t)),e.uuidv4=t=>e.check(aM(uz,t)),e.uuidv6=t=>e.check(aE(uz,t)),e.uuidv7=t=>e.check(aA(uz,t)),e.nanoid=t=>e.check(az(uL,t)),e.guid=t=>e.check(a$(uO,t)),e.cuid=t=>e.check(aU(uF,t)),e.cuid2=t=>e.check(aP(uW,t)),e.ulid=t=>e.check(aT(uV,t)),e.base64=t=>e.check(aq(fe,t)),e.base64url=t=>e.check(aF(fr,t)),e.xid=t=>e.check(aR(uH,t)),e.ksuid=t=>e.check(aN(uY,t)),e.ipv4=t=>e.check(aD(u0,t)),e.ipv6=t=>e.check(aB(u4,t)),e.cidrv4=t=>e.check(aC(u8,t)),e.cidrv6=t=>e.check(aL(u9,t)),e.e164=t=>e.check(aJ(fn,t)),e.datetime=t=>e.check(ut(t)),e.date=t=>e.check(ui(t)),e.time=t=>e.check(ua(t)),e.duration=t=>e.check(us(t))});function uI(e){return aw(u$,e)}let uM=r("ZodStringFormat",(e,t)=>{rl.init(e,t),uk.init(e,t)}),uE=r("ZodEmail",(e,t)=>{rm.init(e,t),uM.init(e,t)});function uA(e){return ak(uE,e)}let uO=r("ZodGUID",(e,t)=>{rh.init(e,t),uM.init(e,t)});function uj(e){return a$(uO,e)}let uz=r("ZodUUID",(e,t)=>{rp.init(e,t),uM.init(e,t)});function uU(e){return aI(uz,e)}function uP(e){return aM(uz,e)}function uT(e){return aE(uz,e)}function uR(e){return aA(uz,e)}let uN=r("ZodURL",(e,t)=>{rb.init(e,t),uM.init(e,t)});function uD(e){return aO(uN,e)}function uB(e){return aO(uN,{protocol:/^https?$/,hostname:s9.domain,...s7.normalizeParams(e)})}let uZ=r("ZodEmoji",(e,t)=>{rg.init(e,t),uM.init(e,t)});function uC(e){return aj(uZ,e)}let uL=r("ZodNanoID",(e,t)=>{rv.init(e,t),uM.init(e,t)});function uq(e){return az(uL,e)}let uF=r("ZodCUID",(e,t)=>{ry.init(e,t),uM.init(e,t)});function uJ(e){return aU(uF,e)}let uW=r("ZodCUID2",(e,t)=>{r_.init(e,t),uM.init(e,t)});function uK(e){return aP(uW,e)}let uV=r("ZodULID",(e,t)=>{rx.init(e,t),uM.init(e,t)});function uG(e){return aT(uV,e)}let uH=r("ZodXID",(e,t)=>{rw.init(e,t),uM.init(e,t)});function uX(e){return aR(uH,e)}let uY=r("ZodKSUID",(e,t)=>{rS.init(e,t),uM.init(e,t)});function uQ(e){return aN(uY,e)}let u0=r("ZodIPv4",(e,t)=>{rE.init(e,t),uM.init(e,t)});function u1(e){return aD(u0,e)}let u2=r("ZodMAC",(e,t)=>{rO.init(e,t),uM.init(e,t)});function u6(e){return aZ(u2,e)}let u4=r("ZodIPv6",(e,t)=>{rA.init(e,t),uM.init(e,t)});function u3(e){return aB(u4,e)}let u8=r("ZodCIDRv4",(e,t)=>{rj.init(e,t),uM.init(e,t)});function u5(e){return aC(u8,e)}let u9=r("ZodCIDRv6",(e,t)=>{rz.init(e,t),uM.init(e,t)});function u7(e){return aL(u9,e)}let fe=r("ZodBase64",(e,t)=>{rP.init(e,t),uM.init(e,t)});function ft(e){return aq(fe,e)}let fr=r("ZodBase64URL",(e,t)=>{rR.init(e,t),uM.init(e,t)});function fi(e){return aF(fr,e)}let fn=r("ZodE164",(e,t)=>{rN.init(e,t),uM.init(e,t)});function fa(e){return aJ(fn,e)}let fo=r("ZodJWT",(e,t)=>{rB.init(e,t),uM.init(e,t)});function fs(e){return aW(fo,e)}let fu=r("ZodCustomStringFormat",(e,t)=>{rZ.init(e,t),uM.init(e,t)});function ff(e,t,r={}){return su(fu,e,t,r)}function fc(e){return su(fu,"hostname",s9.hostname,e)}function fd(e){return su(fu,"hex",s9.hex,e)}function fl(e,t){let r=t?.enc??"hex",i=`${e}_${r}`,n=s9[i];if(!n)throw Error(`Unrecognized hash format: ${i}`);return su(fu,i,n,t)}let fh=r("ZodNumber",(e,t)=>{rC.init(e,t),uS.init(e,t),e._zod.processJSONSchema=(t,r,i)=>sv(e,t,r,i),e.gt=(t,r)=>e.check(oh(t,r)),e.gte=(t,r)=>e.check(op(t,r)),e.min=(t,r)=>e.check(op(t,r)),e.lt=(t,r)=>e.check(od(t,r)),e.lte=(t,r)=>e.check(ol(t,r)),e.max=(t,r)=>e.check(ol(t,r)),e.int=t=>e.check(fb(t)),e.safe=t=>e.check(fb(t)),e.positive=t=>e.check(oh(0,t)),e.nonnegative=t=>e.check(op(0,t)),e.negative=t=>e.check(od(0,t)),e.nonpositive=t=>e.check(ol(0,t)),e.multipleOf=(t,r)=>e.check(oy(t,r)),e.step=(t,r)=>e.check(oy(t,r)),e.finite=()=>e;let r=e._zod.bag;e.minValue=Math.max(r.minimum??-1/0,r.exclusiveMinimum??-1/0)??null,e.maxValue=Math.min(r.maximum??1/0,r.exclusiveMaximum??1/0)??null,e.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),e.isFinite=!0,e.format=r.format??null});function fp(e){return aY(fh,e)}let fm=r("ZodNumberFormat",(e,t)=>{rL.init(e,t),fh.init(e,t)});function fb(e){return a0(fm,e)}function fg(e){return a1(fm,e)}function fv(e){return a2(fm,e)}function fy(e){return a6(fm,e)}function f_(e){return a4(fm,e)}let fx=r("ZodBoolean",(e,t)=>{rq.init(e,t),uS.init(e,t),e._zod.processJSONSchema=(t,r,i)=>sy(e,t,r,i)});function fw(e){return a3(fx,e)}let fS=r("ZodBigInt",(e,t)=>{rF.init(e,t),uS.init(e,t),e._zod.processJSONSchema=(t,r,i)=>s_(e,t,r,i),e.gte=(t,r)=>e.check(op(t,r)),e.min=(t,r)=>e.check(op(t,r)),e.gt=(t,r)=>e.check(oh(t,r)),e.gte=(t,r)=>e.check(op(t,r)),e.min=(t,r)=>e.check(op(t,r)),e.lt=(t,r)=>e.check(od(t,r)),e.lte=(t,r)=>e.check(ol(t,r)),e.max=(t,r)=>e.check(ol(t,r)),e.positive=t=>e.check(oh(BigInt(0),t)),e.negative=t=>e.check(od(BigInt(0),t)),e.nonpositive=t=>e.check(ol(BigInt(0),t)),e.nonnegative=t=>e.check(op(BigInt(0),t)),e.multipleOf=(t,r)=>e.check(oy(t,r));let r=e._zod.bag;e.minValue=r.minimum??null,e.maxValue=r.maximum??null,e.format=r.format??null});function fk(e){return a5(fS,e)}let f$=r("ZodBigIntFormat",(e,t)=>{rJ.init(e,t),fS.init(e,t)});function fI(e){return a7(f$,e)}function fM(e){return oe(f$,e)}let fE=r("ZodSymbol",(e,t)=>{rW.init(e,t),uS.init(e,t),e._zod.processJSONSchema=(t,r,i)=>sx(e,t,r,i)});function fA(e){return ot(fE,e)}let fO=r("ZodUndefined",(e,t)=>{rK.init(e,t),uS.init(e,t),e._zod.processJSONSchema=(t,r,i)=>sS(e,t,r,i)});function fj(e){return or(fO,e)}let fz=r("ZodNull",(e,t)=>{rV.init(e,t),uS.init(e,t),e._zod.processJSONSchema=(t,r,i)=>sw(e,t,r,i)});function fU(e){return oi(fz,e)}let fP=r("ZodAny",(e,t)=>{rG.init(e,t),uS.init(e,t),e._zod.processJSONSchema=(t,r,i)=>sI(e,t,r,i)});function fT(){return on(fP)}let fR=r("ZodUnknown",(e,t)=>{rH.init(e,t),uS.init(e,t),e._zod.processJSONSchema=(t,r,i)=>sM(e,t,r,i)});function fN(){return oa(fR)}let fD=r("ZodNever",(e,t)=>{rX.init(e,t),uS.init(e,t),e._zod.processJSONSchema=(t,r,i)=>s$(e,t,r,i)});function fB(e){return oo(fD,e)}let fZ=r("ZodVoid",(e,t)=>{rY.init(e,t),uS.init(e,t),e._zod.processJSONSchema=(t,r,i)=>sk(e,t,r,i)});function fC(e){return os(fZ,e)}let fL=r("ZodDate",(e,t)=>{rQ.init(e,t),uS.init(e,t),e._zod.processJSONSchema=(t,r,i)=>sE(e,t,r,i),e.min=(t,r)=>e.check(op(t,r)),e.max=(t,r)=>e.check(ol(t,r));let r=e._zod.bag;e.minDate=r.minimum?new Date(r.minimum):null,e.maxDate=r.maximum?new Date(r.maximum):null});function fq(e){return ou(fL,e)}let fF=r("ZodArray",(e,t)=>{r1.init(e,t),uS.init(e,t),e._zod.processJSONSchema=(t,r,i)=>sZ(e,t,r,i),e.element=t.element,e.min=(t,r)=>e.check(ok(t,r)),e.nonempty=t=>e.check(ok(1,t)),e.max=(t,r)=>e.check(oS(t,r)),e.length=(t,r)=>e.check(o$(t,r)),e.unwrap=()=>e.element});function fJ(e,t){return oZ(fF,e,t)}function fW(e){return co(Object.keys(e._zod.def.shape))}let fK=r("ZodObject",(e,t)=>{r8.init(e,t),uS.init(e,t),e._zod.processJSONSchema=(t,r,i)=>sC(e,t,r,i),s7.defineLazy(e,"shape",()=>t.shape),e.keyof=()=>co(Object.keys(e._zod.def.shape)),e.catchall=t=>e.clone({...e._zod.def,catchall:t}),e.passthrough=()=>e.clone({...e._zod.def,catchall:fN()}),e.loose=()=>e.clone({...e._zod.def,catchall:fN()}),e.strict=()=>e.clone({...e._zod.def,catchall:fB()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=t=>s7.extend(e,t),e.safeExtend=t=>s7.safeExtend(e,t),e.merge=t=>s7.merge(e,t),e.pick=t=>s7.pick(e,t),e.omit=t=>s7.omit(e,t),e.partial=(...t)=>s7.partial(cp,e,t[0]),e.required=(...t)=>s7.required(c$,e,t[0])});function fV(e,t){return new fK({type:"object",shape:e??{},...s7.normalizeParams(t)})}function fG(e,t){return new fK({type:"object",shape:e,catchall:fB(),...s7.normalizeParams(t)})}function fH(e,t){return new fK({type:"object",shape:e,catchall:fN(),...s7.normalizeParams(t)})}let fX=r("ZodUnion",(e,t)=>{r9.init(e,t),uS.init(e,t),e._zod.processJSONSchema=(t,r,i)=>sL(e,t,r,i),e.options=t.options});function fY(e,t){return new fX({type:"union",options:e,...s7.normalizeParams(t)})}let fQ=r("ZodXor",(e,t)=>{fX.init(e,t),ie.init(e,t),e._zod.processJSONSchema=(t,r,i)=>sL(e,t,r,i),e.options=t.options});function f0(e,t){return new fQ({type:"union",options:e,inclusive:!1,...s7.normalizeParams(t)})}let f1=r("ZodDiscriminatedUnion",(e,t)=>{fX.init(e,t),it.init(e,t)});function f2(e,t,r){return new f1({type:"union",options:t,discriminator:e,...s7.normalizeParams(r)})}let f6=r("ZodIntersection",(e,t)=>{ir.init(e,t),uS.init(e,t),e._zod.processJSONSchema=(t,r,i)=>sq(e,t,r,i)});function f4(e,t){return new f6({type:"intersection",left:e,right:t})}let f3=r("ZodTuple",(e,t)=>{io.init(e,t),uS.init(e,t),e._zod.processJSONSchema=(t,r,i)=>sF(e,t,r,i),e.rest=t=>e.clone({...e._zod.def,rest:t})});function f8(e,t,r){let i=t instanceof rc,n=i?r:t;return new f3({type:"tuple",items:e,rest:i?t:null,...s7.normalizeParams(n)})}let f5=r("ZodRecord",(e,t)=>{iu.init(e,t),uS.init(e,t),e._zod.processJSONSchema=(t,r,i)=>sJ(e,t,r,i),e.keyType=t.keyType,e.valueType=t.valueType});function f9(e,t,r){return new f5({type:"record",keyType:e,valueType:t,...s7.normalizeParams(r)})}function f7(e,t,r){let i=C(e);return i._zod.values=void 0,new f5({type:"record",keyType:i,valueType:t,...s7.normalizeParams(r)})}function ce(e,t,r){return new f5({type:"record",keyType:e,valueType:t,mode:"loose",...s7.normalizeParams(r)})}let ct=r("ZodMap",(e,t)=>{ic.init(e,t),uS.init(e,t),e._zod.processJSONSchema=(t,r,i)=>sD(e,t,r,i),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...t)=>e.check(ox(...t)),e.nonempty=t=>e.check(ox(1,t)),e.max=(...t)=>e.check(o_(...t)),e.size=(...t)=>e.check(ow(...t))});function cr(e,t,r){return new ct({type:"map",keyType:e,valueType:t,...s7.normalizeParams(r)})}let ci=r("ZodSet",(e,t)=>{il.init(e,t),uS.init(e,t),e._zod.processJSONSchema=(t,r,i)=>sB(e,t,r,i),e.min=(...t)=>e.check(ox(...t)),e.nonempty=t=>e.check(ox(1,t)),e.max=(...t)=>e.check(o_(...t)),e.size=(...t)=>e.check(ow(...t))});function cn(e,t){return new ci({type:"set",valueType:e,...s7.normalizeParams(t)})}let ca=r("ZodEnum",(e,t)=>{ip.init(e,t),uS.init(e,t),e._zod.processJSONSchema=(t,r,i)=>sA(e,t,r,i),e.enum=t.entries,e.options=Object.values(t.entries);let r=new Set(Object.keys(t.entries));e.extract=(e,i)=>{let n={};for(let i of e)if(r.has(i))n[i]=t.entries[i];else throw Error(`Key ${i} not found in enum`);return new ca({...t,checks:[],...s7.normalizeParams(i),entries:n})},e.exclude=(e,i)=>{let n={...t.entries};for(let t of e)if(r.has(t))delete n[t];else throw Error(`Key ${t} not found in enum`);return new ca({...t,checks:[],...s7.normalizeParams(i),entries:n})}});function co(e,t){return new ca({type:"enum",entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...s7.normalizeParams(t)})}function cs(e,t){return new ca({type:"enum",entries:e,...s7.normalizeParams(t)})}let cu=r("ZodLiteral",(e,t)=>{im.init(e,t),uS.init(e,t),e._zod.processJSONSchema=(t,r,i)=>sO(e,t,r,i),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function cf(e,t){return new cu({type:"literal",values:Array.isArray(e)?e:[e],...s7.normalizeParams(t)})}let cc=r("ZodFile",(e,t)=>{ib.init(e,t),uS.init(e,t),e._zod.processJSONSchema=(t,r,i)=>sU(e,t,r,i),e.min=(t,r)=>e.check(ox(t,r)),e.max=(t,r)=>e.check(o_(t,r)),e.mime=(t,r)=>e.check(oU(Array.isArray(t)?t:[t],r))});function cd(e){return oY(cc,e)}let cl=r("ZodTransform",(e,t)=>{ig.init(e,t),uS.init(e,t),e._zod.processJSONSchema=(t,r,i)=>sN(e,t,r,i),e._zod.parse=(r,i)=>{if("backward"===i.direction)throw new a(e.constructor.name);r.addIssue=i=>{if("string"==typeof i)r.issues.push(s7.issue(i,r.value,t));else{let t=i;t.fatal&&(t.continue=!1),t.code??(t.code="custom"),t.input??(t.input=r.value),t.inst??(t.inst=e),r.issues.push(s7.issue(t))}};let n=t.transform(r.value,r);return n instanceof Promise?n.then(e=>(r.value=e,r)):(r.value=n,r)}});function ch(e){return new cl({type:"transform",transform:e})}let cp=r("ZodOptional",(e,t)=>{iy.init(e,t),uS.init(e,t),e._zod.processJSONSchema=(t,r,i)=>s0(e,t,r,i),e.unwrap=()=>e._zod.def.innerType});function cm(e){return new cp({type:"optional",innerType:e})}let cb=r("ZodExactOptional",(e,t)=>{i_.init(e,t),uS.init(e,t),e._zod.processJSONSchema=(t,r,i)=>s0(e,t,r,i),e.unwrap=()=>e._zod.def.innerType});function cg(e){return new cb({type:"optional",innerType:e})}let cv=r("ZodNullable",(e,t)=>{ix.init(e,t),uS.init(e,t),e._zod.processJSONSchema=(t,r,i)=>sW(e,t,r,i),e.unwrap=()=>e._zod.def.innerType});function cy(e){return new cv({type:"nullable",innerType:e})}function c_(e){return cm(cy(e))}let cx=r("ZodDefault",(e,t)=>{iw.init(e,t),uS.init(e,t),e._zod.processJSONSchema=(t,r,i)=>sV(e,t,r,i),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function cw(e,t){return new cx({type:"default",innerType:e,get defaultValue(){return"function"==typeof t?t():s7.shallowClone(t)}})}let cS=r("ZodPrefault",(e,t)=>{ik.init(e,t),uS.init(e,t),e._zod.processJSONSchema=(t,r,i)=>sG(e,t,r,i),e.unwrap=()=>e._zod.def.innerType});function ck(e,t){return new cS({type:"prefault",innerType:e,get defaultValue(){return"function"==typeof t?t():s7.shallowClone(t)}})}let c$=r("ZodNonOptional",(e,t)=>{i$.init(e,t),uS.init(e,t),e._zod.processJSONSchema=(t,r,i)=>sK(e,t,r,i),e.unwrap=()=>e._zod.def.innerType});function cI(e,t){return new c$({type:"nonoptional",innerType:e,...s7.normalizeParams(t)})}let cM=r("ZodSuccess",(e,t)=>{iM.init(e,t),uS.init(e,t),e._zod.processJSONSchema=(t,r,i)=>sP(e,t,r,i),e.unwrap=()=>e._zod.def.innerType});function cE(e){return new cM({type:"success",innerType:e})}let cA=r("ZodCatch",(e,t)=>{iE.init(e,t),uS.init(e,t),e._zod.processJSONSchema=(t,r,i)=>sH(e,t,r,i),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function cO(e,t){return new cA({type:"catch",innerType:e,catchValue:"function"==typeof t?t:()=>t})}let cj=r("ZodNaN",(e,t)=>{iA.init(e,t),uS.init(e,t),e._zod.processJSONSchema=(t,r,i)=>sj(e,t,r,i)});function cz(e){return oc(cj,e)}let cU=r("ZodPipe",(e,t)=>{iO.init(e,t),uS.init(e,t),e._zod.processJSONSchema=(t,r,i)=>sX(e,t,r,i),e.in=t.in,e.out=t.out});function cP(e,t){return new cU({type:"pipe",in:e,out:t})}let cT=r("ZodCodec",(e,t)=>{cU.init(e,t),iz.init(e,t)});function cR(e,t,r){return new cT({type:"pipe",in:e,out:t,transform:r.decode,reverseTransform:r.encode})}let cN=r("ZodReadonly",(e,t)=>{iT.init(e,t),uS.init(e,t),e._zod.processJSONSchema=(t,r,i)=>sY(e,t,r,i),e.unwrap=()=>e._zod.def.innerType});function cD(e){return new cN({type:"readonly",innerType:e})}let cB=r("ZodTemplateLiteral",(e,t)=>{iN.init(e,t),uS.init(e,t),e._zod.processJSONSchema=(t,r,i)=>sz(e,t,r,i)});function cZ(e,t){return new cB({type:"template_literal",parts:e,...s7.normalizeParams(t)})}let cC=r("ZodLazy",(e,t)=>{iZ.init(e,t),uS.init(e,t),e._zod.processJSONSchema=(t,r,i)=>s1(e,t,r,i),e.unwrap=()=>e._zod.def.getter()});function cL(e){return new cC({type:"lazy",getter:e})}let cq=r("ZodPromise",(e,t)=>{iB.init(e,t),uS.init(e,t),e._zod.processJSONSchema=(t,r,i)=>sQ(e,t,r,i),e.unwrap=()=>e._zod.def.innerType});function cF(e){return new cq({type:"promise",innerType:e})}let cJ=r("ZodFunction",(e,t)=>{iD.init(e,t),uS.init(e,t),e._zod.processJSONSchema=(t,r,i)=>sR(e,t,r,i)});function cW(e){return new cJ({type:"function",input:Array.isArray(e?.input)?f8(e?.input):e?.input??fJ(fN()),output:e?.output??fN()})}let cK=r("ZodCustom",(e,t)=>{iC.init(e,t),uS.init(e,t),e._zod.processJSONSchema=(t,r,i)=>sT(e,t,r,i)});function cV(e){let t=new tV({check:"custom"});return t._zod.check=e,t}function cG(e,t){return st(cK,e??(()=>!0),t)}function cH(e,t={}){return sr(cK,e,t)}function cX(e){return si(e)}let cY=sa,cQ=so;function c0(e,t={}){let r=new cK({type:"custom",check:"custom",fn:t=>t instanceof e,abort:!0,...s7.normalizeParams(t)});return r._zod.bag.Class=e,r._zod.check=t=>{t.value instanceof e||t.issues.push({code:"invalid_type",expected:e.name,input:t.value,inst:r,path:[...r._zod.def.path??[]]})},r}let c1=(...e)=>ss({Codec:cT,Boolean:fx,String:u$},...e);function c2(e){let t=cL(()=>fY([uI(e),fp(),fw(),fU(),fJ(t),f9(uI(),t)]));return t}function c6(e,t){return cP(ch(e),t)}let c4={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};function c3(e){s({customError:e})}function c8(){return s().customError}s5||(s5={}),e.s(["ZodFirstPartyTypeKind",0,s5,"ZodIssueCode",0,c4,"getErrorMap",0,c8,"setErrorMap",0,c3],31364),e.i(89777),e.s(["endsWith",0,oj,"gt",0,oh,"gte",0,op,"includes",0,oA,"length",0,o$,"lowercase",0,oM,"lt",0,od,"lte",0,ol,"maxLength",0,oS,"maxSize",0,o_,"mime",0,oU,"minLength",0,ok,"minSize",0,ox,"multipleOf",0,oy,"negative",0,ob,"nonnegative",0,ov,"nonpositive",0,og,"normalize",0,oT,"overwrite",0,oP,"positive",0,om,"property",0,oz,"regex",0,oI,"size",0,ow,"slugify",0,oB,"startsWith",0,oO,"toLowerCase",0,oN,"toUpperCase",0,oD,"trim",0,oR,"uppercase",0,oE],61923);var c5=e.i(61923),c9=e.i(48473);let c7={...e.i(48071),...c5,iso:c9},de=new Set(["$schema","$ref","$defs","definitions","$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor","type","enum","const","anyOf","oneOf","allOf","not","properties","required","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","items","prefixItems","additionalItems","minItems","maxItems","uniqueItems","contains","minContains","maxContains","minLength","maxLength","pattern","format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","description","default","contentEncoding","contentMediaType","contentSchema","unevaluatedItems","unevaluatedProperties","if","then","else","dependentSchemas","dependentRequired","nullable","readOnly"]);function dt(e,t){let r=e.$schema;return"https://json-schema.org/draft/2020-12/schema"===r?"draft-2020-12":"http://json-schema.org/draft-07/schema#"===r?"draft-7":"http://json-schema.org/draft-04/schema#"===r?"draft-4":t??"draft-2020-12"}function dr(e,t){if(!e.startsWith("#"))throw Error("External $ref is not supported, only local refs (#/...) are allowed");let r=e.slice(1).split("/").filter(Boolean);if(0===r.length)return t.rootSchema;let i="draft-2020-12"===t.version?"$defs":"definitions";if(r[0]===i){let i=r[1];if(!i||!t.defs[i])throw Error(`Reference not found: ${e}`);return t.defs[i]}throw Error(`Reference not found: ${e}`)}function di(e,t){let r;if(void 0!==e.not){if("object"==typeof e.not&&0===Object.keys(e.not).length)return c7.never();throw Error("not is not supported in Zod (except { not: {} } for never)")}if(void 0!==e.unevaluatedItems)throw Error("unevaluatedItems is not supported");if(void 0!==e.unevaluatedProperties)throw Error("unevaluatedProperties is not supported");if(void 0!==e.if||void 0!==e.then||void 0!==e.else)throw Error("Conditional schemas (if/then/else) are not supported");if(void 0!==e.dependentSchemas||void 0!==e.dependentRequired)throw Error("dependentSchemas and dependentRequired are not supported");if(e.$ref){let r=e.$ref;if(t.refs.has(r))return t.refs.get(r);if(t.processing.has(r))return c7.lazy(()=>{if(!t.refs.has(r))throw Error(`Circular reference not resolved: ${r}`);return t.refs.get(r)});t.processing.add(r);let i=dn(dr(r,t),t);return t.refs.set(r,i),t.processing.delete(r),i}if(void 0!==e.enum){let r=e.enum;if("openapi-3.0"===t.version&&!0===e.nullable&&1===r.length&&null===r[0])return c7.null();if(0===r.length)return c7.never();if(1===r.length)return c7.literal(r[0]);if(r.every(e=>"string"==typeof e))return c7.enum(r);let i=r.map(e=>c7.literal(e));return i.length<2?i[0]:c7.union([i[0],i[1],...i.slice(2)])}if(void 0!==e.const)return c7.literal(e.const);let i=e.type;if(Array.isArray(i)){let r=i.map(r=>di({...e,type:r},t));return 0===r.length?c7.never():1===r.length?r[0]:c7.union(r)}if(!i)return c7.any();switch(i){case"string":{let t=c7.string();if(e.format){let r=e.format;"email"===r?t=t.check(c7.email()):"uri"===r||"uri-reference"===r?t=t.check(c7.url()):"uuid"===r||"guid"===r?t=t.check(c7.uuid()):"date-time"===r?t=t.check(c7.iso.datetime()):"date"===r?t=t.check(c7.iso.date()):"time"===r?t=t.check(c7.iso.time()):"duration"===r?t=t.check(c7.iso.duration()):"ipv4"===r?t=t.check(c7.ipv4()):"ipv6"===r?t=t.check(c7.ipv6()):"mac"===r?t=t.check(c7.mac()):"cidr"===r?t=t.check(c7.cidrv4()):"cidr-v6"===r?t=t.check(c7.cidrv6()):"base64"===r?t=t.check(c7.base64()):"base64url"===r?t=t.check(c7.base64url()):"e164"===r?t=t.check(c7.e164()):"jwt"===r?t=t.check(c7.jwt()):"emoji"===r?t=t.check(c7.emoji()):"nanoid"===r?t=t.check(c7.nanoid()):"cuid"===r?t=t.check(c7.cuid()):"cuid2"===r?t=t.check(c7.cuid2()):"ulid"===r?t=t.check(c7.ulid()):"xid"===r?t=t.check(c7.xid()):"ksuid"===r&&(t=t.check(c7.ksuid()))}"number"==typeof e.minLength&&(t=t.min(e.minLength)),"number"==typeof e.maxLength&&(t=t.max(e.maxLength)),e.pattern&&(t=t.regex(new RegExp(e.pattern))),r=t;break}case"number":case"integer":{let t="integer"===i?c7.number().int():c7.number();"number"==typeof e.minimum&&(t=t.min(e.minimum)),"number"==typeof e.maximum&&(t=t.max(e.maximum)),"number"==typeof e.exclusiveMinimum?t=t.gt(e.exclusiveMinimum):!0===e.exclusiveMinimum&&"number"==typeof e.minimum&&(t=t.gt(e.minimum)),"number"==typeof e.exclusiveMaximum?t=t.lt(e.exclusiveMaximum):!0===e.exclusiveMaximum&&"number"==typeof e.maximum&&(t=t.lt(e.maximum)),"number"==typeof e.multipleOf&&(t=t.multipleOf(e.multipleOf)),r=t;break}case"boolean":r=c7.boolean();break;case"null":r=c7.null();break;case"object":{let i={},n=e.properties||{},a=new Set(e.required||[]);for(let[e,r]of Object.entries(n)){let n=dn(r,t);i[e]=a.has(e)?n:n.optional()}if(e.propertyNames){let n=dn(e.propertyNames,t),a=e.additionalProperties&&"object"==typeof e.additionalProperties?dn(e.additionalProperties,t):c7.any();if(0===Object.keys(i).length){r=c7.record(n,a);break}let o=c7.object(i).passthrough(),s=c7.looseRecord(n,a);r=c7.intersection(o,s);break}if(e.patternProperties){let n=e.patternProperties,a=Object.keys(n),o=[];for(let e of a){let r=dn(n[e],t),i=c7.string().regex(new RegExp(e));o.push(c7.looseRecord(i,r))}let s=[];if(Object.keys(i).length>0&&s.push(c7.object(i).passthrough()),s.push(...o),0===s.length)r=c7.object({}).passthrough();else if(1===s.length)r=s[0];else{let e=c7.intersection(s[0],s[1]);for(let t=2;t<s.length;t++)e=c7.intersection(e,s[t]);r=e}break}let o=c7.object(i);r=!1===e.additionalProperties?o.strict():"object"==typeof e.additionalProperties?o.catchall(dn(e.additionalProperties,t)):o.passthrough();break}case"array":{let i=e.prefixItems,n=e.items;if(i&&Array.isArray(i)){let a=i.map(e=>dn(e,t)),o=n&&"object"==typeof n&&!Array.isArray(n)?dn(n,t):void 0;r=o?c7.tuple(a).rest(o):c7.tuple(a),"number"==typeof e.minItems&&(r=r.check(c7.minLength(e.minItems))),"number"==typeof e.maxItems&&(r=r.check(c7.maxLength(e.maxItems)))}else if(Array.isArray(n)){let i=n.map(e=>dn(e,t)),a=e.additionalItems&&"object"==typeof e.additionalItems?dn(e.additionalItems,t):void 0;r=a?c7.tuple(i).rest(a):c7.tuple(i),"number"==typeof e.minItems&&(r=r.check(c7.minLength(e.minItems))),"number"==typeof e.maxItems&&(r=r.check(c7.maxLength(e.maxItems)))}else if(void 0!==n){let i=dn(n,t),a=c7.array(i);"number"==typeof e.minItems&&(a=a.min(e.minItems)),"number"==typeof e.maxItems&&(a=a.max(e.maxItems)),r=a}else r=c7.array(c7.any());break}default:throw Error(`Unsupported type: ${i}`)}return e.description&&(r=r.describe(e.description)),void 0!==e.default&&(r=r.default(e.default)),r}function dn(e,t){if("boolean"==typeof e)return e?c7.any():c7.never();let r=di(e,t),i=e.type||void 0!==e.enum||void 0!==e.const;if(e.anyOf&&Array.isArray(e.anyOf)){let n=e.anyOf.map(e=>dn(e,t)),a=c7.union(n);r=i?c7.intersection(r,a):a}if(e.oneOf&&Array.isArray(e.oneOf)){let n=e.oneOf.map(e=>dn(e,t)),a=c7.xor(n);r=i?c7.intersection(r,a):a}if(e.allOf&&Array.isArray(e.allOf))if(0===e.allOf.length)r=i?r:c7.any();else{let n=i?r:dn(e.allOf[0],t),a=+!i;for(let r=a;r<e.allOf.length;r++)n=c7.intersection(n,dn(e.allOf[r],t));r=n}!0===e.nullable&&"openapi-3.0"===t.version&&(r=c7.nullable(r)),!0===e.readOnly&&(r=c7.readonly(r));let n={};for(let t of["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"])t in e&&(n[t]=e[t]);for(let t of["contentEncoding","contentMediaType","contentSchema"])t in e&&(n[t]=e[t]);for(let t of Object.keys(e))de.has(t)||(n[t]=e[t]);return Object.keys(n).length>0&&t.registry.add(r,n),r}function da(e,t){if("boolean"==typeof e)return e?c7.any():c7.never();let r={version:dt(e,t?.defaultTarget),defs:e.$defs||e.definitions||{},refs:new Map,processing:new Set,rootSchema:e,registry:t?.registry??ax};return dn(e,r)}function ds(e){return aS(u$,e)}function du(e){return aQ(fh,e)}function df(e){return a8(fx,e)}function dc(e){return a9(fS,e)}function dd(e){return of(fL,e)}e.s(["bigint",0,dc,"boolean",0,df,"date",0,dd,"number",0,du,"string",0,ds],12590),s(i5()),e.s([],6356),e.i(6356),e.i(33202),e.i(33215),e.i(29677),e.i(99120),e.i(24110),e.s(["$ZodAny",0,rG,"$ZodArray",0,r1,"$ZodBase64",0,rP,"$ZodBase64URL",0,rR,"$ZodBigInt",0,rF,"$ZodBigIntFormat",0,rJ,"$ZodBoolean",0,rq,"$ZodCIDRv4",0,rj,"$ZodCIDRv6",0,rz,"$ZodCUID",0,ry,"$ZodCUID2",0,r_,"$ZodCatch",0,iE,"$ZodCodec",0,iz,"$ZodCustom",0,iC,"$ZodCustomStringFormat",0,rZ,"$ZodDate",0,rQ,"$ZodDefault",0,iw,"$ZodDiscriminatedUnion",0,it,"$ZodE164",0,rN,"$ZodEmail",0,rm,"$ZodEmoji",0,rg,"$ZodEnum",0,ip,"$ZodExactOptional",0,i_,"$ZodFile",0,ib,"$ZodFunction",0,iD,"$ZodGUID",0,rh,"$ZodIPv4",0,rE,"$ZodIPv6",0,rA,"$ZodISODate",0,r$,"$ZodISODateTime",0,rk,"$ZodISODuration",0,rM,"$ZodISOTime",0,rI,"$ZodIntersection",0,ir,"$ZodJWT",0,rB,"$ZodKSUID",0,rS,"$ZodLazy",0,iZ,"$ZodLiteral",0,im,"$ZodMAC",0,rO,"$ZodMap",0,ic,"$ZodNaN",0,iA,"$ZodNanoID",0,rv,"$ZodNever",0,rX,"$ZodNonOptional",0,i$,"$ZodNull",0,rV,"$ZodNullable",0,ix,"$ZodNumber",0,rC,"$ZodNumberFormat",0,rL,"$ZodObject",0,r3,"$ZodObjectJIT",0,r8,"$ZodOptional",0,iy,"$ZodPipe",0,iO,"$ZodPrefault",0,ik,"$ZodPromise",0,iB,"$ZodReadonly",0,iT,"$ZodRecord",0,iu,"$ZodSet",0,il,"$ZodString",0,rd,"$ZodStringFormat",0,rl,"$ZodSuccess",0,iM,"$ZodSymbol",0,rW,"$ZodTemplateLiteral",0,iN,"$ZodTransform",0,ig,"$ZodTuple",0,io,"$ZodType",0,rc,"$ZodULID",0,rx,"$ZodURL",0,rb,"$ZodUUID",0,rp,"$ZodUndefined",0,rK,"$ZodUnion",0,r9,"$ZodUnknown",0,rH,"$ZodVoid",0,rY,"$ZodXID",0,rw,"$ZodXor",0,ie,"clone",0,C,"isValidBase64",0,rU,"isValidBase64URL",0,rT,"isValidJWT",0,rD],74452),e.i(74452),e.i(75999),e.i(16891);var dl=s7,dh=s9;e.i(10429),e.s(["ar",0,iF,"az",0,iW,"be",0,iG,"bg",0,iX,"ca",0,iQ,"cs",0,i1,"da",0,i6,"de",0,i3,"en",0,i5,"eo",0,i7,"es",0,nt,"fa",0,ni,"fi",0,na,"fr",0,ns,"frCA",0,nf,"he",0,nd,"hu",0,nh,"hy",0,ng,"id",0,ny,"is",0,nx,"it",0,nS,"ja",0,n$,"ka",0,nM,"kh",0,nO,"km",0,nA,"ko",0,nz,"lt",0,nR,"mk",0,nD,"ms",0,nZ,"nl",0,nL,"no",0,nF,"ota",0,nW,"pl",0,nH,"ps",0,nV,"pt",0,nY,"ru",0,n1,"sl",0,n6,"sv",0,n3,"ta",0,n5,"th",0,n7,"tr",0,at,"ua",0,an,"uk",0,ai,"ur",0,ao,"uz",0,au,"vi",0,ac,"yo",0,ab,"zhCN",0,al,"zhTW",0,ap],38843);var dp=e.i(38843);e.i(9402),e.i(96425),e.i(37581),e.i(88323),e.s([],67516);var dm=e.i(67516);e.s(["$ZodAny",0,rG,"$ZodArray",0,r1,"$ZodAsyncError",0,n,"$ZodBase64",0,rP,"$ZodBase64URL",0,rR,"$ZodBigInt",0,rF,"$ZodBigIntFormat",0,rJ,"$ZodBoolean",0,rq,"$ZodCIDRv4",0,rj,"$ZodCIDRv6",0,rz,"$ZodCUID",0,ry,"$ZodCUID2",0,r_,"$ZodCatch",0,iE,"$ZodCheck",0,tV,"$ZodCheckBigIntFormat",0,t0,"$ZodCheckEndsWith",0,ri,"$ZodCheckGreaterThan",0,tX,"$ZodCheckIncludes",0,rt,"$ZodCheckLengthEquals",0,t8,"$ZodCheckLessThan",0,tH,"$ZodCheckLowerCase",0,t7,"$ZodCheckMaxLength",0,t4,"$ZodCheckMaxSize",0,t1,"$ZodCheckMimeType",0,ro,"$ZodCheckMinLength",0,t3,"$ZodCheckMinSize",0,t2,"$ZodCheckMultipleOf",0,tY,"$ZodCheckNumberFormat",0,tQ,"$ZodCheckOverwrite",0,rs,"$ZodCheckProperty",0,ra,"$ZodCheckRegex",0,t9,"$ZodCheckSizeEquals",0,t6,"$ZodCheckStartsWith",0,rr,"$ZodCheckStringFormat",0,t5,"$ZodCheckUpperCase",0,re,"$ZodCodec",0,iz,"$ZodCustom",0,iC,"$ZodCustomStringFormat",0,rZ,"$ZodDate",0,rQ,"$ZodDefault",0,iw,"$ZodDiscriminatedUnion",0,it,"$ZodE164",0,rN,"$ZodEmail",0,rm,"$ZodEmoji",0,rg,"$ZodEncodeError",0,a,"$ZodEnum",0,ip,"$ZodError",0,ev,"$ZodExactOptional",0,i_,"$ZodFile",0,ib,"$ZodFunction",0,iD,"$ZodGUID",0,rh,"$ZodIPv4",0,rE,"$ZodIPv6",0,rA,"$ZodISODate",0,r$,"$ZodISODateTime",0,rk,"$ZodISODuration",0,rM,"$ZodISOTime",0,rI,"$ZodIntersection",0,ir,"$ZodJWT",0,rB,"$ZodKSUID",0,rS,"$ZodLazy",0,iZ,"$ZodLiteral",0,im,"$ZodMAC",0,rO,"$ZodMap",0,ic,"$ZodNaN",0,iA,"$ZodNanoID",0,rv,"$ZodNever",0,rX,"$ZodNonOptional",0,i$,"$ZodNull",0,rV,"$ZodNullable",0,ix,"$ZodNumber",0,rC,"$ZodNumberFormat",0,rL,"$ZodObject",0,r3,"$ZodObjectJIT",0,r8,"$ZodOptional",0,iy,"$ZodPipe",0,iO,"$ZodPrefault",0,ik,"$ZodPromise",0,iB,"$ZodReadonly",0,iT,"$ZodRealError",0,ey,"$ZodRecord",0,iu,"$ZodRegistry",0,ay,"$ZodSet",0,il,"$ZodString",0,rd,"$ZodStringFormat",0,rl,"$ZodSuccess",0,iM,"$ZodSymbol",0,rW,"$ZodTemplateLiteral",0,iN,"$ZodTransform",0,ig,"$ZodTuple",0,io,"$ZodType",0,rc,"$ZodULID",0,rx,"$ZodURL",0,rb,"$ZodUUID",0,rp,"$ZodUndefined",0,rK,"$ZodUnion",0,r9,"$ZodUnknown",0,rH,"$ZodVoid",0,rY,"$ZodXID",0,rw,"$ZodXor",0,ie,"$brand",0,i,"$constructor",0,r,"$input",0,av,"$output",0,ag,"Doc",0,ru,"JSONSchema",0,dm,"JSONSchemaGenerator",0,s4,"NEVER",0,t,"TimePrecision",0,aK,"_any",0,on,"_array",0,oZ,"_base64",0,aq,"_base64url",0,aF,"_bigint",0,a5,"_boolean",0,a3,"_catch",0,o3,"_check",0,sn,"_cidrv4",0,aC,"_cidrv6",0,aL,"_coercedBigint",0,a9,"_coercedBoolean",0,a8,"_coercedDate",0,of,"_coercedNumber",0,aQ,"_coercedString",0,aS,"_cuid",0,aU,"_cuid2",0,aP,"_custom",0,st,"_date",0,ou,"_decode",0,eT,"_decodeAsync",0,eB,"_default",0,o2,"_discriminatedUnion",0,oq,"_e164",0,aJ,"_email",0,ak,"_emoji",0,aj,"_encode",0,eU,"_encodeAsync",0,eN,"_endsWith",0,oj,"_enum",0,oG,"_file",0,oY,"_float32",0,a1,"_float64",0,a2,"_gt",0,oh,"_gte",0,op,"_guid",0,a$,"_includes",0,oA,"_int",0,a0,"_int32",0,a6,"_int64",0,a7,"_intersection",0,oF,"_ipv4",0,aD,"_ipv6",0,aB,"_isoDate",0,aG,"_isoDateTime",0,aV,"_isoDuration",0,aX,"_isoTime",0,aH,"_jwt",0,aW,"_ksuid",0,aN,"_lazy",0,o7,"_length",0,o$,"_literal",0,oX,"_lowercase",0,oM,"_lt",0,od,"_lte",0,ol,"_mac",0,aZ,"_map",0,oK,"_max",0,ol,"_maxLength",0,oS,"_maxSize",0,o_,"_mime",0,oU,"_min",0,op,"_minLength",0,ok,"_minSize",0,ox,"_multipleOf",0,oy,"_nan",0,oc,"_nanoid",0,az,"_nativeEnum",0,oH,"_negative",0,ob,"_never",0,oo,"_nonnegative",0,ov,"_nonoptional",0,o6,"_nonpositive",0,og,"_normalize",0,oT,"_null",0,oi,"_nullable",0,o1,"_number",0,aY,"_optional",0,o0,"_overwrite",0,oP,"_parse",0,e$,"_parseAsync",0,eM,"_pipe",0,o8,"_positive",0,om,"_promise",0,se,"_property",0,oz,"_readonly",0,o5,"_record",0,oW,"_refine",0,sr,"_regex",0,oI,"_safeDecode",0,eq,"_safeDecodeAsync",0,eK,"_safeEncode",0,eC,"_safeEncodeAsync",0,eJ,"_safeParse",0,eA,"_safeParseAsync",0,ej,"_set",0,oV,"_size",0,ow,"_slugify",0,oB,"_startsWith",0,oO,"_string",0,aw,"_stringFormat",0,su,"_stringbool",0,ss,"_success",0,o4,"_superRefine",0,si,"_symbol",0,ot,"_templateLiteral",0,o9,"_toLowerCase",0,oN,"_toUpperCase",0,oD,"_transform",0,oQ,"_trim",0,oR,"_tuple",0,oJ,"_uint32",0,a4,"_uint64",0,oe,"_ulid",0,aT,"_undefined",0,or,"_union",0,oC,"_unknown",0,oa,"_uppercase",0,oE,"_url",0,aO,"_uuid",0,aI,"_uuidv4",0,aM,"_uuidv6",0,aE,"_uuidv7",0,aA,"_void",0,os,"_xid",0,aR,"_xor",0,oL,"clone",0,C,"config",0,s,"createStandardJSONSchemaMethod",0,sm,"createToJSONSchemaMethod",0,sp,"decode",0,eR,"decodeAsync",0,eZ,"describe",0,sa,"encode",0,eP,"encodeAsync",0,eD,"extractDefs",0,sd,"finalize",0,sl,"flattenError",0,e_,"formatError",0,ex,"globalConfig",0,o,"globalRegistry",0,ax,"initializeContext",0,sf,"isValidBase64",0,rU,"isValidBase64URL",0,rT,"isValidJWT",0,rD,"locales",0,dp,"meta",0,so,"parse",0,eI,"parseAsync",0,eE,"prettifyError",0,ek,"process",0,sc,"regexes",0,dh,"registry",0,a_,"safeDecode",0,eF,"safeDecodeAsync",0,eV,"safeEncode",0,eL,"safeEncodeAsync",0,eW,"safeParse",0,eO,"safeParseAsync",0,ez,"toDotPath",0,eS,"toJSONSchema",0,s6,"treeifyError",0,ew,"util",0,dl,"version",0,rf],13794);var db=e.i(13794);e.i(17033),e.i(48774),e.i(31364),e.s(["$brand",0,i,"ZodFirstPartyTypeKind",0,s5,"ZodIssueCode",0,c4,"config",0,s,"getErrorMap",0,c8,"setErrorMap",0,c3],29375),e.i(29375);var s9=s9,s7=s7,dg=dp,dv=c9,dy=e.i(12590);e.s(["$brand",0,i,"$input",0,av,"$output",0,ag,"NEVER",0,t,"TimePrecision",0,aK,"ZodAny",0,fP,"ZodArray",0,fF,"ZodBase64",0,fe,"ZodBase64URL",0,fr,"ZodBigInt",0,fS,"ZodBigIntFormat",0,f$,"ZodBoolean",0,fx,"ZodCIDRv4",0,u8,"ZodCIDRv6",0,u9,"ZodCUID",0,uF,"ZodCUID2",0,uW,"ZodCatch",0,cA,"ZodCodec",0,cT,"ZodCustom",0,cK,"ZodCustomStringFormat",0,fu,"ZodDate",0,fL,"ZodDefault",0,cx,"ZodDiscriminatedUnion",0,f1,"ZodE164",0,fn,"ZodEmail",0,uE,"ZodEmoji",0,uZ,"ZodEnum",0,ca,"ZodError",0,uf,"ZodExactOptional",0,cb,"ZodFile",0,cc,"ZodFirstPartyTypeKind",0,s5,"ZodFunction",0,cJ,"ZodGUID",0,uO,"ZodIPv4",0,u0,"ZodIPv6",0,u4,"ZodISODate",0,ur,"ZodISODateTime",0,ue,"ZodISODuration",0,uo,"ZodISOTime",0,un,"ZodIntersection",0,f6,"ZodIssueCode",0,c4,"ZodJWT",0,fo,"ZodKSUID",0,uY,"ZodLazy",0,cC,"ZodLiteral",0,cu,"ZodMAC",0,u2,"ZodMap",0,ct,"ZodNaN",0,cj,"ZodNanoID",0,uL,"ZodNever",0,fD,"ZodNonOptional",0,c$,"ZodNull",0,fz,"ZodNullable",0,cv,"ZodNumber",0,fh,"ZodNumberFormat",0,fm,"ZodObject",0,fK,"ZodOptional",0,cp,"ZodPipe",0,cU,"ZodPrefault",0,cS,"ZodPromise",0,cq,"ZodReadonly",0,cN,"ZodRealError",0,uc,"ZodRecord",0,f5,"ZodSet",0,ci,"ZodString",0,u$,"ZodStringFormat",0,uM,"ZodSuccess",0,cM,"ZodSymbol",0,fE,"ZodTemplateLiteral",0,cB,"ZodTransform",0,cl,"ZodTuple",0,f3,"ZodType",0,uS,"ZodULID",0,uV,"ZodURL",0,uN,"ZodUUID",0,uz,"ZodUndefined",0,fO,"ZodUnion",0,fX,"ZodUnknown",0,fR,"ZodVoid",0,fZ,"ZodXID",0,uH,"ZodXor",0,fQ,"_ZodString",0,uk,"_default",0,cw,"_function",0,cW,"any",0,fT,"array",0,fJ,"base64",0,ft,"base64url",0,fi,"bigint",0,fk,"boolean",0,fw,"catch",0,cO,"check",0,cV,"cidrv4",0,u5,"cidrv6",0,u7,"clone",0,C,"codec",0,cR,"coerce",0,dy,"config",0,s,"core",0,db,"cuid",0,uJ,"cuid2",0,uK,"custom",0,cG,"date",0,fq,"decode",0,ub,"decodeAsync",0,uv,"describe",0,cY,"discriminatedUnion",0,f2,"e164",0,fa,"email",0,uA,"emoji",0,uC,"encode",0,um,"encodeAsync",0,ug,"endsWith",0,oj,"enum",0,co,"exactOptional",0,cg,"file",0,cd,"flattenError",0,e_,"float32",0,fg,"float64",0,fv,"formatError",0,ex,"fromJSONSchema",0,da,"function",0,cW,"getErrorMap",0,c8,"globalRegistry",0,ax,"gt",0,oh,"gte",0,op,"guid",0,uj,"hash",0,fl,"hex",0,fd,"hostname",0,fc,"httpUrl",0,uB,"includes",0,oA,"instanceof",0,c0,"int",0,fb,"int32",0,fy,"int64",0,fI,"intersection",0,f4,"ipv4",0,u1,"ipv6",0,u3,"iso",0,dv,"json",0,c2,"jwt",0,fs,"keyof",0,fW,"ksuid",0,uQ,"lazy",0,cL,"length",0,o$,"literal",0,cf,"locales",0,dg,"looseObject",0,fH,"looseRecord",0,ce,"lowercase",0,oM,"lt",0,od,"lte",0,ol,"mac",0,u6,"map",0,cr,"maxLength",0,oS,"maxSize",0,o_,"meta",0,cQ,"mime",0,oU,"minLength",0,ok,"minSize",0,ox,"multipleOf",0,oy,"nan",0,cz,"nanoid",0,uq,"nativeEnum",0,cs,"negative",0,ob,"never",0,fB,"nonnegative",0,ov,"nonoptional",0,cI,"nonpositive",0,og,"normalize",0,oT,"null",0,fU,"nullable",0,cy,"nullish",0,c_,"number",0,fp,"object",0,fV,"optional",0,cm,"overwrite",0,oP,"parse",0,ud,"parseAsync",0,ul,"partialRecord",0,f7,"pipe",0,cP,"positive",0,om,"prefault",0,ck,"preprocess",0,c6,"prettifyError",0,ek,"promise",0,cF,"property",0,oz,"readonly",0,cD,"record",0,f9,"refine",0,cH,"regex",0,oI,"regexes",()=>s9,"registry",0,a_,"safeDecode",0,u_,"safeDecodeAsync",0,uw,"safeEncode",0,uy,"safeEncodeAsync",0,ux,"safeParse",0,uh,"safeParseAsync",0,up,"set",0,cn,"setErrorMap",0,c3,"size",0,ow,"slugify",0,oB,"startsWith",0,oO,"strictObject",0,fG,"string",0,uI,"stringFormat",0,ff,"stringbool",0,c1,"success",0,cE,"superRefine",0,cX,"symbol",0,fA,"templateLiteral",0,cZ,"toJSONSchema",0,s6,"toLowerCase",0,oN,"toUpperCase",0,oD,"transform",0,ch,"treeifyError",0,ew,"trim",0,oR,"tuple",0,f8,"uint32",0,f_,"uint64",0,fM,"ulid",0,uG,"undefined",0,fj,"union",0,fY,"unknown",0,fN,"uppercase",0,oE,"url",0,uD,"util",()=>s7,"uuid",0,uU,"uuidv4",0,uP,"uuidv6",0,uT,"uuidv7",0,uR,"void",0,fC,"xid",0,uX,"xor",0,f0],13283);var d_=e.i(13283),d_=d_;let dx={claude:["anthropic","bedrock","vertex","foundry"],codex:["openai","azure-openai"],gemini:["google","gemini-vertex"]};function dw(e){return dx[e][0]}function dS(e,t){return dx[e].includes(t)}let dk=d_.object({provider:d_.literal("anthropic"),apiKey:d_.string().min(1)}),d$=d_.object({authMode:d_.literal("access_key"),awsAccessKeyId:d_.string().min(1),awsSecretAccessKey:d_.string().min(1),awsSessionToken:d_.string().min(1).optional()}),dI=d_.object({authMode:d_.literal("bearer_token"),awsBearerTokenBedrock:d_.string().min(1)}),dM=d_.object({authMode:d_.literal("profile"),awsProfile:d_.string().min(1)}),dE=d_.object({defaultOpusModel:d_.string().min(1).optional(),defaultSonnetModel:d_.string().min(1).optional(),defaultHaikuModel:d_.string().min(1).optional()}),dA={bedrock:{defaultOpusModel:"us.anthropic.claude-opus-4-7",defaultSonnetModel:"us.anthropic.claude-sonnet-4-6",defaultHaikuModel:"us.anthropic.claude-haiku-4-5-20251001-v1:0"},vertex:{defaultOpusModel:"claude-opus-4-7",defaultSonnetModel:"claude-sonnet-4-6",defaultHaikuModel:"claude-haiku-4-5@20251001"},foundry:{defaultOpusModel:"claude-opus-4-7",defaultSonnetModel:"claude-sonnet-4-6",defaultHaikuModel:"claude-haiku-4-5"}},dO=d_.object({bedrockBaseUrl:d_.string().url().optional(),useMantle:d_.boolean().optional(),mantleBaseUrl:d_.string().url().optional(),skipMantleAuth:d_.boolean().optional(),smallFastModelAwsRegion:d_.string().min(1).optional()}),dj=d_.discriminatedUnion("authMode",[d$,dI,dM]).and(d_.object({provider:d_.literal("bedrock"),awsRegion:d_.string().min(1)})).and(dO).and(dE),dz=d_.object({provider:d_.literal("vertex"),projectId:d_.string().min(1),region:d_.string().min(1),credentialsFile:d_.string().min(1).optional(),vertexBaseUrl:d_.string().url().optional()}).and(dE),dU=d_.object({provider:d_.literal("foundry"),resource:d_.string().min(1).optional(),baseUrl:d_.string().url().optional(),apiKey:d_.string().min(1).optional()}).and(dE).refine(e=>!!e.resource!=!!e.baseUrl,{message:"Foundry config requires exactly one of `resource` or `baseUrl`."}),dP=d_.object({provider:d_.literal("openai"),apiKey:d_.string().min(1)}),dT="2025-04-01-preview",dR=d_.object({provider:d_.literal("azure-openai"),resource:d_.string().min(1),apiKey:d_.string().min(1),apiVersion:d_.string().min(1).optional(),deploymentName:d_.string().min(1).optional()}),dN=d_.object({provider:d_.literal("google"),apiKey:d_.string().min(1)}),dD=d_.object({authMode:d_.literal("adc")}),dB=d_.object({authMode:d_.literal("service_account"),credentialsFile:d_.string().min(1)}),dZ=d_.object({authMode:d_.literal("api_key"),apiKey:d_.string().min(1)}),dC=d_.discriminatedUnion("authMode",[dD,dB,dZ]).and(d_.object({provider:d_.literal("gemini-vertex"),projectId:d_.string().min(1),location:d_.string().min(1)}));d_.union([dk,dj,dz,dU,dP,dR,dN,dC]);let dL=/^sk-ant-[A-Za-z0-9_-]{20,}$/,dq=/^sk-[A-Za-z0-9_-]{30,}$/,dF=/^AIza[0-9A-Za-z_-]{35}$/;function dJ(e){return dL.test(e.trim())}function dW(e){let t=e.trim();return!/^sk-ant-/.test(t)&&dq.test(t)}function dK(e){return dF.test(e.trim())}function dV(e,t){if(!dS(e,t.provider))return`Provider "${t.provider}" is not valid for the ${e} backend.`;switch(t.provider){case"anthropic":if(!dJ(t.apiKey))return"Expected an Anthropic API key beginning with `sk-ant-…`.";return null;case"openai":if(!dW(t.apiKey))return"Expected an OpenAI API key beginning with `sk-…` (not `sk-ant-…`).";return null;case"azure-openai":if(!t.resource.trim()||/\s/.test(t.resource))return"Azure resource name looks malformed (no spaces; e.g. `my-foundry-resource`).";if(!t.apiKey.trim())return"Azure OpenAI API key is required.";return null;case"google":if(!dK(t.apiKey))return"Expected a Google API key beginning with `AIza…` (39 chars total).";return null;case"bedrock":if(t.awsRegion.length<2||/\s/.test(t.awsRegion))return"AWS region looks malformed (e.g. expected `us-east-1`).";if("access_key"===t.authMode&&!/^[A-Z0-9]{16,}$/.test(t.awsAccessKeyId))return"AWS access key id should be uppercase alphanumeric (≥ 16 chars, e.g. `AKIA…` or `ASIA…`).";return null;case"vertex":if(t.projectId.length<4||/\s/.test(t.projectId))return"GCP project id looks malformed.";if(t.region.length<2||/\s/.test(t.region))return"Vertex region looks malformed (e.g. `us-east5`, `global`, or `eu`).";return null;case"foundry":if(!t.resource&&!t.baseUrl)return"Foundry config requires either a resource name or a base URL.";if(t.resource&&t.baseUrl)return"Foundry config: set EITHER `resource` OR `baseUrl`, not both.";if(t.baseUrl)try{let e=new URL(t.baseUrl);if("https:"!==e.protocol&&"http:"!==e.protocol)return"Foundry base URL must be an http(s) URL."}catch{return"Foundry base URL is not a valid URL."}return null;case"gemini-vertex":if(t.projectId.length<4||/\s/.test(t.projectId))return"GCP project id looks malformed.";if(t.location.length<2||/\s/.test(t.location))return"GCP location looks malformed (e.g. `us-central1`).";if("api_key"===t.authMode&&!dK(t.apiKey))return"Vertex API key should start with `AIza…` (39 chars total).";return null}}e.s(["DEFAULT_AZURE_OPENAI_API_VERSION",0,dT,"RECOMMENDED_PINNED_MODELS_BY_PROVIDER",0,dA,"defaultApiKeyProvider",0,dw,"isPlausibleAnthropicApiKey",0,dJ,"isPlausibleGeminiApiKey",0,dK,"isPlausibleOpenAiApiKey",0,dW,"validateBackendApiKeyConfigFormat",0,dV],28619);var d_=d_;let dG=d_.enum(["slack","telegram","discord","whatsapp"]);d_.object({content:d_.string(),expectedMtime:d_.string().optional()});let dH=/^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}$/;d_.object({section:d_.string().optional(),mode:d_.enum(["append","replace","clear","clear_before","append_to_file"]),content:d_.string().optional(),cutoff:d_.string().optional(),maxEntries:d_.number().int().positive().optional()}).refine(e=>"append_to_file"===e.mode||void 0!==e.section&&e.section.length>0,{message:"section is required for all modes except append_to_file"}).refine(e=>"append"===e.mode||void 0===e.maxEntries,{message:"maxEntries is only valid with mode 'append'"}).refine(e=>"clear_before"===e.mode||void 0===e.cutoff,{message:"cutoff is only valid with mode 'clear_before'"}).refine(e=>"clear_before"!==e.mode||void 0!==e.cutoff&&dH.test(e.cutoff),{message:"clear_before requires cutoff in 'YYYY-MM-DD HH:MM:SS' format (zero-padded)"}),d_.object({message:d_.string(),platform:dG.optional(),platforms:d_.array(dG).optional(),priority:d_.enum(["critical","high","normal","low"]).optional()}).refine(e=>!(e.platform&&e.platforms),{message:"Use either 'platform' or 'platforms', not both"}),d_.object({time:d_.string(),taskType:d_.string(),description:d_.string().min(20,"Description must be at least 20 characters. The wake-up agent has NO memory — the description is its only context."),prompt:d_.string().min(20,"Prompt must be at least 20 characters. The wake-up agent has NO memory — the prompt is its only context.").optional(),model:d_.enum(["sonnet","opus"]).optional(),taskContext:d_.record(d_.string(),d_.unknown()).optional()}),d_.object({time:d_.string().optional(),description:d_.string().min(20,"Description must be at least 20 characters. The wake-up agent has NO memory — the description is its only context.").optional(),prompt:d_.union([d_.string().min(20,"Prompt must be at least 20 characters. The wake-up agent has NO memory — the prompt is its only context."),d_.null()]).optional(),message:d_.string().min(1).optional(),model:d_.enum(["sonnet","opus"]).optional(),taskContext:d_.record(d_.string(),d_.unknown()).optional()}).refine(e=>Object.values(e).some(e=>void 0!==e),{message:"At least one field must be provided for update"}).refine(e=>void 0===e.description||void 0===e.message,{message:"Cannot set both 'description' and 'message'. Use 'description' for wake-up tasks, 'message' for dm."}).refine(e=>void 0===e.prompt||void 0===e.message,{message:"Cannot set both 'prompt' and 'message'. 'prompt' is only valid for non-dm schedules."}),d_.object({time:d_.string(),message:d_.string().min(1,"Message cannot be empty"),platform:dG.optional(),platforms:d_.array(dG).optional(),importance:d_.enum(["transient","normal","strategic"]).optional()}).refine(e=>!(e.platform&&e.platforms),{message:"Use either 'platform' or 'platforms', not both"}),d_.object({actionType:d_.string(),detail:d_.string(),result:d_.enum(["success","failed","partial","skipped"])});let dX=d_.string().min(1,"Skill name cannot be empty").max(64,"Skill name must be at most 64 characters").regex(/^[a-z0-9][a-z0-9-]*$/,"Skill name must be kebab-case (lowercase letters, digits, hyphens) and start with a letter or digit"),dY=d_.string().min(1,"description is required").max(500,"description must be at most 500 characters").refine(e=>!/[\r\n]/.test(e),{message:"description cannot contain newlines"}),dQ=d_.array(d_.string().min(1).max(200).refine(e=>!/[\r\n]/.test(e),{message:"tool entries cannot contain newlines"})).max(32,"at most 32 allowed-tools entries");d_.object({name:dX,description:dY,content:d_.string().min(1,"content cannot be empty"),allowedTools:dQ.optional()}),d_.object({description:dY.optional(),content:d_.string().min(1,"content cannot be empty").optional(),allowedTools:dQ.optional()}).refine(e=>void 0!==e.description||void 0!==e.content||void 0!==e.allowedTools,{message:"At least one of 'description', 'content', or 'allowedTools' must be provided"}),d_.object({name:d_.string(),description:d_.string(),builtin:d_.boolean(),updatedAt:d_.string()}),d_.object({name:d_.string(),description:d_.string(),content:d_.string(),allowedTools:d_.array(d_.string()),builtin:d_.boolean(),updatedAt:d_.string()});let d0={description:d_.string().max(1e4).optional(),location:d_.string().max(1e3).optional(),reminders:d_.object({useDefault:d_.boolean(),overrides:d_.array(d_.object({method:d_.enum(["email","popup"]),minutes:d_.number().int().min(0).max(40320)})).max(5).optional()}).optional(),recurrence:d_.array(d_.string().max(500)).max(5).optional(),attendees:d_.array(d_.object({email:d_.string().email()})).max(100).optional(),visibility:d_.enum(["default","public","private","confidential"]).optional()};d_.object({summary:d_.string().min(1).max(1e3),start:d_.string().min(1),end:d_.string().min(1),...d0}),d_.object({summary:d_.string().min(1).max(1e3).optional(),start:d_.string().min(1).optional(),end:d_.string().min(1).optional(),...d0}).refine(e=>Object.values(e).some(e=>void 0!==e),{message:"At least one field must be provided for update"}),d_.object({timeMin:d_.string().min(1),timeMax:d_.string().min(1),calendarIds:d_.array(d_.string()).min(1).max(50).optional()});let d1=/^\d{2}:\d{2}$/,d2=d_.object({frequency:d_.enum(["daily","weekly","monthly"]),time:d_.string().regex(d1,"time must be HH:MM format"),timezone:d_.string().min(1).optional(),daysOfWeek:d_.array(d_.number().int().min(0).max(6)).min(1).max(7).optional(),daysOfMonth:d_.array(d_.number().int().min(1).max(31)).min(1).max(31).optional()}).refine(e=>"weekly"!==e.frequency||void 0!==e.daysOfWeek&&e.daysOfWeek.length>0,{message:"daysOfWeek is required for weekly frequency"}).refine(e=>"monthly"!==e.frequency||void 0!==e.daysOfMonth&&e.daysOfMonth.length>0,{message:"daysOfMonth is required for monthly frequency"}).refine(e=>"daily"!==e.frequency||void 0===e.daysOfWeek,{message:"daysOfWeek is not allowed for daily frequency"}).refine(e=>"daily"!==e.frequency||void 0===e.daysOfMonth,{message:"daysOfMonth is not allowed for daily frequency"}).refine(e=>"weekly"!==e.frequency||void 0===e.daysOfMonth,{message:"daysOfMonth is not allowed for weekly frequency"}).refine(e=>"monthly"!==e.frequency||void 0===e.daysOfWeek,{message:"daysOfWeek is not allowed for monthly frequency"});d_.object({taskType:d_.string().min(1),description:d_.string().min(20,"Description must be at least 20 characters. The wake-up agent has NO memory — the description is its only context."),prompt:d_.string().min(20,"Prompt must be at least 20 characters. The wake-up agent has NO memory — the prompt is its only context.").optional(),recurrenceRule:d2,model:d_.enum(["sonnet","opus"]).optional(),taskContext:d_.record(d_.string(),d_.unknown()).optional()}),d_.object({description:d_.string().min(20,"Description must be at least 20 characters.").optional(),prompt:d_.union([d_.string().min(20,"Prompt must be at least 20 characters."),d_.null()]).optional(),recurrenceRule:d2.optional(),model:d_.enum(["sonnet","opus"]).optional(),taskContext:d_.record(d_.string(),d_.unknown()).optional(),enabled:d_.boolean().optional()}).refine(e=>Object.values(e).some(e=>void 0!==e),{message:"At least one field must be provided for update"});let d6=/^([01]\d|2[0-3]):[0-5]\d$/,d4=d_.enum(["git"]),d3=d_.enum(["cron.daily","cron.weekly"]);d_.object({domain:d4,eventType:d3,prompt:d_.string().min(20,"Prompt must be at least 20 characters. The trigger run starts with no chat memory — the prompt is its only instruction."),time:d_.string().regex(d6,"time must be HH:MM format"),daysOfWeek:d_.array(d_.number().int().min(0).max(6)).min(1).max(7).optional()}).refine(e=>"cron.weekly"!==e.eventType||void 0!==e.daysOfWeek&&e.daysOfWeek.length>0,{message:"daysOfWeek is required for cron.weekly"}),d_.object({prompt:d_.string().min(20,"Prompt must be at least 20 characters.").optional(),enabled:d_.boolean().optional(),time:d_.string().regex(d6,"time must be HH:MM format").optional(),daysOfWeek:d_.array(d_.number().int().min(0).max(6)).min(1).max(7).optional()}).refine(e=>Object.values(e).some(e=>void 0!==e),{message:"At least one field must be provided for update"});let d8="dashboard_chat,owner_dm";e.s(["CHAT_SIDEBAR_SCOPE_PARAM",0,d8],41460);var d_=d_;let d5=["claude","codex","gemini"];function d9(e){return d5.includes(e)}function d7(){return d5}e.s(["BACKEND_IDS",0,d5,"getBackendIds",0,d7,"isBackendId",0,d9],38082);let le=["gmail","google_calendar","notion","git","github","outlook_mail","outlook_calendar"],lt=["direct","delegated","disabled"];function lr(e){return{toolNamespace:e,requiredCapabilities:[],optionalCapabilities:[],capabilityTools:{},destructiveTools:[]}}let li={gmail:{key:"gmail",displayName:"Gmail",supportedModes:["direct","delegated","disabled"],directSetup:{credentialKeys:["googleCredentialsJson","googleTokenJson"],helpUrl:"https://developers.google.com/workspace/guides/create-credentials"},backendConnectors:{claude:{toolNamespace:"mcp__claude_ai_Gmail__",requiredCapabilities:["search","read","draft","label"],optionalCapabilities:["draft","label","create_label"],capabilityTools:{search:["search_threads"],read:["get_thread"],draft:["create_draft","list_drafts"],label:["label_message","label_thread","unlabel_message","unlabel_thread","list_labels"],create_label:["create_label"]},destructiveTools:["label_message","label_thread","unlabel_message","unlabel_thread","create_label"]},codex:{toolNamespace:"mcp__codex_apps__gmail._",requiredCapabilities:["search","read","draft","label","send"],optionalCapabilities:["draft","label","create_label","update_draft","send","forward","delete","read_attachment","batch"],capabilityTools:{search:["search_emails","search_email_ids"],read:["read_email","read_email_thread"],draft:["create_draft","list_drafts"],update_draft:["update_draft"],send:["send_email","send_draft"],forward:["forward_emails"],label:["apply_labels_to_emails","list_labels","bulk_label_matching_emails"],create_label:["create_label"],delete:["delete_emails","archive_emails"],read_attachment:["read_attachment"],batch:["batch_modify_email","batch_read_email","batch_read_email_threads"]},destructiveTools:["send_email","send_draft","forward_emails","delete_emails","archive_emails","apply_labels_to_emails","bulk_label_matching_emails","create_label","batch_modify_email"]},gemini:{toolNamespace:"mcp_google-workspace_gmail.",requiredCapabilities:["search","read","draft","label","send"],optionalCapabilities:["draft","label","create_label","send","read_attachment","batch"],capabilityTools:{search:["search"],read:["get"],draft:["createDraft"],send:["send","sendDraft"],label:["modify","modifyThread","listLabels"],create_label:["createLabel"],read_attachment:["downloadAttachment"],batch:["batchModify"]},destructiveTools:["send","sendDraft","modify","modifyThread","createLabel","batchModify"]}},skillsTouched:["mail"],taskFlowsTouched:["routine.hourly_check"],observersTouched:[],apiRoutesTouched:[],deniedToolsAppliesToSkills:["mail"]},google_calendar:{key:"google_calendar",displayName:"Google Calendar",supportedModes:["direct","delegated","disabled"],directSetup:{credentialKeys:["googleCredentialsJson","googleTokenJson"],helpUrl:"https://developers.google.com/workspace/guides/create-credentials"},backendConnectors:{claude:{toolNamespace:"mcp__claude_ai_Google_Calendar__",requiredCapabilities:["list_events","get_event","create_event"],optionalCapabilities:["list_events","get_event","create_event","update_event","delete_event","respond_to_event","suggest_time","list_calendars"],capabilityTools:{list_events:["list_events"],get_event:["get_event"],create_event:["create_event"],update_event:["update_event"],delete_event:["delete_event"],respond_to_event:["respond_to_event"],suggest_time:["suggest_time"],list_calendars:["list_calendars"]},destructiveTools:["create_event","update_event","delete_event","respond_to_event"]},codex:{toolNamespace:"mcp__codex_apps__google_calendar._",requiredCapabilities:["search","read","create_event"],optionalCapabilities:["search","read","create_event","update_event","delete_event","respond_event","get_availability","batch_read"],capabilityTools:{search:["search","search_events"],read:["read_event","fetch"],create_event:["create_event"],update_event:["update_event"],delete_event:["delete_event"],respond_event:["respond_event"],get_availability:["get_availability"],batch_read:["batch_read_event"]},destructiveTools:["create_event","update_event","delete_event","respond_event"]},gemini:{toolNamespace:"mcp_google-workspace_calendar.",requiredCapabilities:["list_events","get_event","create_event"],optionalCapabilities:["list_events","get_event","create_event","update_event","delete_event","respond_to_event","find_free_time","list_calendars"],capabilityTools:{list_events:["listEvents"],get_event:["getEvent"],create_event:["createEvent"],update_event:["updateEvent"],delete_event:["deleteEvent"],respond_to_event:["respondToEvent"],find_free_time:["findFreeTime"],list_calendars:["list"]},destructiveTools:["createEvent","updateEvent","deleteEvent","respondToEvent"]}},skillsTouched:["external-services"],taskFlowsTouched:["routine.hourly_check"],observersTouched:["calendar"],apiRoutesTouched:["/api/calendar"],deniedToolsAppliesToSkills:["external-services"]},notion:{key:"notion",displayName:"Notion",supportedModes:["direct","delegated","disabled"],directSetup:{credentialKeys:["notionApiKey"],helpUrl:"https://developers.notion.com/docs/create-a-notion-integration"},backendConnectors:{claude:{toolNamespace:"mcp__claude_ai_Notion__",requiredCapabilities:["search","read","create_page","update_properties","patch_content","archive"],optionalCapabilities:["search","read","create_page","update_properties","patch_content","replace_content","archive","comments","duplicate_page","move_page","apply_template","schema_admin","users","teams"],capabilityTools:{search:["notion-search"],read:["notion-fetch"],create_page:["notion-create-pages"],update_properties:["notion-update-page"],patch_content:["notion-update-page"],replace_content:["notion-update-page"],archive:["notion-update-page"],comments:["notion-create-comment","notion-get-comments"],duplicate_page:["notion-duplicate-page"],move_page:["notion-move-pages"],apply_template:["notion-update-page"],schema_admin:["notion-create-database","notion-update-data-source","notion-create-view","notion-update-view"],users:["notion-get-users"],teams:["notion-get-teams"]},destructiveTools:["notion-create-pages","notion-update-page","notion-duplicate-page","notion-move-pages","notion-create-comment","notion-create-database","notion-update-data-source","notion-create-view","notion-update-view"]},codex:{toolNamespace:"mcp__codex_apps__notion._",requiredCapabilities:["search","read","create_page","update_properties","patch_content","archive"],optionalCapabilities:["search","read","create_page","update_properties","patch_content","replace_content","archive","comments","duplicate_page","move_page","apply_template","schema_admin","users","teams","query_data_sources","query_meeting_notes"],capabilityTools:{search:["search"],read:["fetch"],create_page:["notion_create_pages"],update_properties:["notion_update_page"],patch_content:["notion_update_page"],replace_content:["notion_update_page"],archive:["notion_update_page"],comments:["notion_create_comment","notion_get_comments"],duplicate_page:["notion_duplicate_page"],move_page:["notion_move_pages"],apply_template:["notion_update_page"],schema_admin:["notion_create_database","notion_update_data_source","notion_create_view","notion_update_view"],users:["notion_get_users"],teams:["notion_get_teams"],query_data_sources:["notion_query_data_sources"],query_meeting_notes:["notion_query_meeting_notes"]},destructiveTools:["notion_create_pages","notion_update_page","notion_duplicate_page","notion_move_pages","notion_create_comment","notion_create_database","notion_update_data_source","notion_create_view","notion_update_view"]},gemini:{toolNamespace:"mcp_notion_",requiredCapabilities:["search","read","create_page","update_properties","patch_content","archive"],optionalCapabilities:["search","read","create_page","update_properties","patch_content","replace_content","archive","comments","duplicate_page","move_page","apply_template","schema_admin","users","teams"],capabilityTools:{search:["notion-search"],read:["notion-fetch"],create_page:["notion-create-pages"],update_properties:["notion-update-page"],patch_content:["notion-update-page"],replace_content:["notion-update-page"],archive:["notion-update-page"],comments:["notion-create-comment","notion-get-comments"],duplicate_page:["notion-duplicate-page"],move_page:["notion-move-pages"],apply_template:["notion-update-page"],schema_admin:["notion-create-database","notion-update-data-source","notion-create-view","notion-update-view"],users:["notion-get-users"],teams:["notion-get-teams"]},destructiveTools:["notion-create-pages","notion-update-page","notion-duplicate-page","notion-move-pages","notion-create-comment","notion-create-database","notion-update-data-source","notion-create-view","notion-update-view"]}},skillsTouched:["notion"],taskFlowsTouched:["routine.hourly_check"],observersTouched:["notion-poller"],apiRoutesTouched:["/api/notion/query","/api/notion/search","/api/notion/pages"],sameBackendDropsSkillBody:["notion"]},git:{key:"git",displayName:"Git",supportedModes:["direct","delegated","disabled"],backendConnectors:{claude:lr("cli:git:claude:"),codex:lr("cli:git:codex:"),gemini:lr("cli:git:gemini:")},skillsTouched:[],taskFlowsTouched:[],observersTouched:["git"],apiRoutesTouched:[]},github:{key:"github",displayName:"GitHub",supportedModes:["direct","delegated","disabled"],backendConnectors:{claude:lr("cli:github:claude:"),codex:lr("cli:github:codex:"),gemini:lr("cli:github:gemini:")},skillsTouched:[],taskFlowsTouched:[],observersTouched:["github"],apiRoutesTouched:[]},outlook_mail:{key:"outlook_mail",displayName:"Outlook Mail",supportedModes:["direct","delegated","disabled"],userManagedConnector:!0,directSetup:{credentialKeys:["mail:outlook:client-config"],helpUrl:"https://learn.microsoft.com/en-us/entra/identity-platform/quickstart-register-app"},backendConnectors:{},skillsTouched:[],taskFlowsTouched:[],observersTouched:["mail-poller"],apiRoutesTouched:[]},outlook_calendar:{key:"outlook_calendar",displayName:"Outlook Calendar",supportedModes:["direct","delegated","disabled"],userManagedConnector:!0,directSetup:{credentialKeys:["mail:outlook:client-config"],helpUrl:"https://learn.microsoft.com/en-us/entra/identity-platform/quickstart-register-app"},backendConnectors:{},skillsTouched:[],taskFlowsTouched:[],observersTouched:[],apiRoutesTouched:["/api/calendar/outlook"]}},ln=d_.object({mode:d_.enum(lt),delegatedBackend:d_.enum(d5).optional().nullable().optional(),delegatedModel:d_.string().min(1).nullable().optional(),delegatedMaxTurns:d_.number().int().min(1).max(10).nullable().optional(),delegatedSyncEnabled:d_.boolean().optional(),deniedTools:d_.array(d_.string()).optional().default([]),lastChangedAt:d_.string()}).superRefine((e,t)=>{"delegated"!==e.mode||e.delegatedBackend||t.addIssue({code:d_.ZodIssueCode.custom,path:["delegatedBackend"],message:"delegatedBackend is required when mode is 'delegated'"})});d_.object(Object.fromEntries(le.map(e=>[e,ln.optional()]))).strict(),d_.object({mode:d_.enum(lt),delegatedBackend:d_.enum(d5).optional().nullable(),delegatedModel:d_.string().min(1).nullable().optional(),delegatedMaxTurns:d_.number().int().min(1).max(10).nullable().optional(),delegatedSyncEnabled:d_.boolean().optional(),deniedTools:d_.array(d_.string()).optional()}).superRefine((e,t)=>{"delegated"!==e.mode||e.delegatedBackend||t.addIssue({code:d_.ZodIssueCode.custom,path:["delegatedBackend"],message:"delegatedBackend is required when mode is 'delegated'"}),"delegated"!==e.mode&&e.delegatedBackend&&t.addIssue({code:d_.ZodIssueCode.custom,path:["delegatedBackend"],message:"delegatedBackend must be omitted unless mode is 'delegated'"})}),e.s(["INTEGRATION_DESCRIPTORS",0,li],5957);var d_=d_;let la=1,lo=["getting-started","concepts","features","guides","troubleshooting","reference","glossary"],ls=["stable","beta","draft","deprecated"],lu=d_.string().min(1).max(160).regex(/^[a-z0-9]+(?:[-_][a-z0-9]+)*(?:\/[a-z0-9]+(?:[-_][a-z0-9]+)*)*$/,"slug must be lowercase kebab-case path segments separated by '/'"),lf=lu,lc=d_.string().min(1).max(64).regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/,"id must be lowercase kebab-case"),ld=d_.string().regex(/^\d{4}-\d{2}-\d{2}$/,"must be YYYY-MM-DD"),ll=d_.string().min(1).regex(/^\/[A-Za-z0-9\-_/?=&%.]*$/,"ui_anchors entries must look like a dashboard path");function lh(e){return e.toLowerCase().replace(/[^a-z0-9\s-]/g,"").trim().replace(/\s+/g,"-").replace(/-+/g,"-")}d_.object({schema_version:d_.literal(la),slug:lu,title:d_.string().min(1).max(200),id:lc.optional(),aliases:d_.array(d_.string().min(1).max(120)).max(32).optional(),category:d_.enum(lo),summary:d_.string().min(1).max(2e3),section:d_.string().min(1).max(64).optional(),tags:d_.array(d_.string().min(1).max(64)).max(32).optional(),status:d_.enum(ls).optional(),ask_examples:d_.array(d_.string().min(1).max(240)).max(16).optional(),locale:d_.string().min(2).max(16).optional(),created:ld.optional(),updated:ld.optional(),review_due:ld.optional(),supersedes:d_.array(lf).max(16).optional(),keywords:d_.array(d_.string().min(1).max(120)).max(32).optional(),related:d_.array(lf).max(32).optional(),prerequisites:d_.array(lf).max(16).optional(),ui_anchors:d_.array(ll).max(32).optional(),process_keys:d_.array(d_.string().min(1).max(120)).max(32).optional(),config_keys:d_.array(d_.string().min(1).max(120)).max(32).optional(),api_endpoints:d_.array(d_.string().min(1).max(160)).max(32).optional(),context_files:d_.array(d_.string().min(1).max(160)).max(32).optional(),extra:d_.record(d_.string(),d_.unknown()).optional()}).strict(),e.s(["slugifyAnchor",0,lh],45244);var d_=d_;let lp=["work","travel","finance","personal","health","learning"],lm=new Set(lp);function lb(e){return"string"==typeof e&&lm.has(e)}let lg=["meeting","trip","receipt","project","book","note"],lv={meeting:"meetings",trip:"trips",receipt:"receipts",project:"projects",book:"books",note:"notes"},ly=new Map(lg.map(e=>[lv[e],e]));function l_(e){return ly.get(e)??null}let lx=64,lw=200,lS=120,lk=30,l$=3,lI=/[\n\r|]/;function lM(e){return e.normalize("NFC").trim().toLowerCase().replace(/\s+/g," ")}function lE(e,t){let r=e.normalize("NFC").trim();return r?r.length>t?{ok:!1,reason:{kind:"too-long",max:t}}:lI.test(r)?{ok:!1,reason:{kind:"forbidden-char"}}:{ok:!0,value:r}:{ok:!1,reason:{kind:"empty"}}}function lA(e,t){switch(t.kind){case"empty":return`${e} must not be empty after trimming`;case"too-long":return`${e} must be ≤ ${t.max} chars`;case"forbidden-char":return`${e} must not contain newline or pipe characters`}}function lO(e,t){return d_.string().transform((r,i)=>{let n=lE(r,t);return n.ok?n.value:(i.addIssue({code:d_.ZodIssueCode.custom,message:lA(e,n.reason)}),d_.NEVER)})}let lj=/^[a-z0-9][a-z0-9-]*$/,lz=100;function lU(e){return"string"==typeof e&&e.length>0&&e.length<=lz&&lj.test(e)}let lP=/(^|\/)\.\.(\/|$)/;function lT(e){if("string"!=typeof e||0===e.length||e.startsWith("/")||lP.test(e)||!e.endsWith("/"))return!1;let t=e.slice(0,-1).split("/");if(2!==t.length)return!1;let[r,i]=t;return!!r&&!!i&&!!lb(r)&&null!==l_(i)}let lR=/^mt_[1-9]\d*$/;function lN(e){return"string"==typeof e&&lR.test(e)}let lD=d_.object({id:d_.string().optional(),url:d_.string().url().optional(),external_id:d_.string().optional()}).passthrough();d_.object({type:d_.enum(lg),domain:d_.enum(lp),slug:d_.string().refine(lU,"invalid slug"),title:d_.string().min(1).max(200),status:d_.enum(["upcoming","active","done","archived"]).optional(),sources:d_.record(d_.string().min(1),lD).default({}),related:d_.array(d_.string()).default([]),tags:d_.array(d_.string()).default([]),created:d_.string().datetime(),last_synced_at:d_.string().datetime().optional()});let lB=d_.object({category:lO("category",lx),sotApp:lO("sotApp",lx),mirrorPath:d_.string().min(1).max(255).nullable(),policy:d_.string().max(200).nullable(),writer:d_.enum(["agent","shared","user"])});d_.array(lB),d_.object({id:d_.string().refine(lN,"must match /^mt_[1-9]\\d*$/"),intent:d_.string().min(1).max(lw),app:d_.string().min(1).max(lx),app_normalized:d_.string().min(1).max(lx),cadence:d_.string().min(1).max(200),output_path:d_.string().nullable().refine(e=>null===e||lT(e),"output_path must be `<domain>/<type-plural>/` (see §9.1)"),schedule_id:d_.number().int().positive(),last_run_at:d_.string().datetime().nullable(),last_result:d_.string().max(lS).nullable(),consecutive_failures:d_.number().int().nonnegative(),created_at:d_.string(),updated_at:d_.string()}),d_.object({intent:lO("intent",lw),app:lO("app",lx),cadence:d_.string().min(1).max(200),recurrenceRule:d2,output_path:d_.string().refine(e=>lT(e),"output_path must be `<domain>/<type-plural>/` (see §9.1)").optional()}),d_.object({intent:lO("intent",lw).optional(),cadence:d_.string().min(1).max(200).optional(),recurrenceRule:d2.optional(),output_path:d_.string().refine(e=>lT(e),"output_path must be `<domain>/<type-plural>/` (see §9.1)").nullable().optional()}).refine(e=>Object.keys(e).length>0,"PATCH body must specify at least one field"),d_.object({last_run_at:d_.string().datetime(),last_result:d_.string().max(lS),consecutive_failures:d_.number().int().nonnegative()}),e.s(["DOMAINS",0,lp,"ENTITY_TYPES",0,lg,"MANAGEMENT_ACTIVE_TASKS_SOFT_WARNING",0,lk,"MANAGEMENT_FAILURE_NOTIFY_THRESHOLD_DEFAULT",0,l$,"TYPE_PLURALS",0,lv,"normalizeAppLabel",0,lM,"pluralToType",0,l_],54530);var d_=d_;let lZ=[/\bwhen\s+[a-z]+.*\bthen\b/i,/\bif\s+[a-z]+.*\b(do|then|then\s+do)\b/i,/\bbefore\s+[a-z]+.*\byou\s+(should|must|need)\b/i,/\b(must|always|never)\b/i];function lC(e){return lZ.some(t=>t.test(e))}function lL(e){return!lC(e)}let lq=/(<!--\s*(?:CURATION|safety|integration_modes|mode:|today_write_lock_id))|(<\s*integration_modes\b)/i;function lF(e){return!lq.test(e)}let lJ="convention rules cannot use imperative decision language (when/if/must/always/never). Restate as a description of the convention, not an instruction.",lW="free-text fields cannot embed CURATION/safety/integration_modes/mode markers",lK=["knowledge_layout","routing_table","frontmatter_schema","search_recipes","convention_notes","cross_references"],lV=/^[a-z0-9_./*-]+$/i,lG=e=>d_.string().max(e).refine(lF,{message:lW}),lH=(e,t)=>d_.string().min(e).max(t).refine(lF,{message:lW}).refine(lL,{message:lJ}),lX=d_.object({heading:d_.string().min(1).max(80).refine(lF,{message:lW}),contains:lH(5,200),example_entry:lG(200).optional(),writers:d_.array(d_.string().min(1).max(40)).max(10).optional()}),lY=d_.object({path:d_.string().regex(lV).max(120),purpose:lH(5,200),sections:d_.array(lX).max(20)}),lQ=d_.object({kind:d_.literal("knowledge_layout"),files:d_.array(lY).min(1).max(50)}),l0=d_.object({trigger_pattern:d_.string().min(5).max(200).refine(lF,{message:lW}),destination_path:d_.string().regex(lV).max(120),destination_section:d_.string().min(1).max(80),destination_mode:d_.enum(["append","replace","append_to_file","patch_section"]),note:d_.string().max(150).refine(lF,{message:lW}).refine(lL,{message:lJ}).optional()}),l1=d_.object({kind:d_.literal("routing_table"),rules:d_.array(l0).min(1).max(50)}),l2=d_.object({key:d_.string().min(1).max(40),type:d_.enum(["string","iso-date","enum","array"]),example:d_.string().min(1).max(120)}),l6=d_.object({key:d_.string().min(1).max(40),purpose:d_.string().min(3).max(120).refine(lF,{message:lW}).refine(lL,{message:lJ})}),l4=d_.object({glob:d_.string().min(1).max(80),required:d_.array(l2).max(10),conventional:d_.array(l6).max(20)}),l3=d_.object({kind:d_.literal("frontmatter_schema"),file_types:d_.array(l4).min(1).max(20)}),l8=d_.object({question_shape:lH(5,200),lookup_path:d_.string().regex(lV).max(120),lookup_section:d_.string().min(1).max(80).optional(),note:d_.string().max(200).refine(lF,{message:lW}).refine(lL,{message:lJ}).optional()}),l5=d_.object({kind:d_.literal("search_recipes"),recipes:d_.array(l8).min(1).max(50)}),l9=d_.object({topic:d_.string().min(3).max(80).refine(lF,{message:lW}),rule:lH(5,180),example:lG(200).optional()}),l7=d_.object({kind:d_.literal("convention_notes"),notes:d_.array(l9).min(1).max(20)}),he=d_.object({from_path:d_.string().regex(lV).max(120),to_path:d_.string().regex(lV).max(120),relation:d_.string().min(3).max(120).refine(lF,{message:lW}).refine(lL,{message:lJ})}),ht=d_.object({kind:d_.literal("cross_references"),refs:d_.array(he).min(1).max(50)}),hr=d_.discriminatedUnion("kind",[lQ,l1,l3,l5,l7,ht]),hi=d_.object({id:d_.string().min(1).max(80).regex(/^[a-z0-9-]+$/),kind:d_.enum(lK),anchor:d_.string().min(1).max(200),human_label:d_.string().min(1).max(80),description:d_.string().min(1).max(200),scope_paths:d_.array(d_.string().min(1).max(120)).min(1).max(20)});d_.object({version:d_.literal(1),sections:d_.array(hi).min(1).max(4)}),d_.object({enabled:d_.boolean().default(!1),cadence:d_.enum(["daily","weekly","monthly"]).default("weekly"),backend:d_.enum(["claude","codex","gemini"]).default("claude"),model:d_.string().min(1).max(120).default("claude-sonnet-4-6"),excluded_skills:d_.array(d_.string().min(1).max(80)).default([])}),d_.object({schema_version:d_.number().int().positive(),skill_slug:d_.string().min(1).max(80),section_id:d_.string().min(1).max(80),kind:d_.enum(lK),payload:hr,applied_proposal_id:d_.number().int().nullable(),applied_at:d_.number().int().nullable()}),d_.object({runId:d_.string().min(1).max(120),skill_slug:d_.string().min(1).max(80),section_id:d_.string().min(1).max(80),payload:hr,rationale:d_.string().min(1).max(500),signal_ids:d_.array(d_.number().int().positive()).min(1).max(50)}),d_.object({target_skills:d_.array(d_.string().min(1).max(80)).max(20).optional()}),d_.object({slug:d_.string().min(1).max(80),section_id:d_.string().min(1).max(80)}),e.s([],18446)}]);
|
|
37
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let r of e.seen.entries()){let i=r[1];if(t===r[0]){a(r);continue}if(e.external){let i=e.external.registry.get(r[0])?.id;if(t!==r[0]&&i){a(r);continue}}if(e.metadataRegistry.get(r[0])?.id||i.cycle||i.count>1&&"ref"===e.reused){a(r);continue}}}function sl(e,t){let r=e.seen.get(t);if(!r)throw Error("Unprocessed schema. This is a bug in Zod.");let i=t=>{let r=e.seen.get(t);if(null===r.ref)return;let n=r.def??r.schema,a={...n},o=r.ref;if(r.ref=null,o){i(o);let r=e.seen.get(o),s=r.schema;if(s.$ref&&("draft-07"===e.target||"draft-04"===e.target||"openapi-3.0"===e.target)?(n.allOf=n.allOf??[],n.allOf.push(s)):Object.assign(n,s),Object.assign(n,a),t._zod.parent===o)for(let e in n)"$ref"!==e&&"allOf"!==e&&(e in a||delete n[e]);if(s.$ref&&r.def)for(let e in n)"$ref"!==e&&"allOf"!==e&&e in r.def&&JSON.stringify(n[e])===JSON.stringify(r.def[e])&&delete n[e]}let s=t._zod.parent;if(s&&s!==o){i(s);let t=e.seen.get(s);if(t?.schema.$ref&&(n.$ref=t.schema.$ref,t.def))for(let e in n)"$ref"!==e&&"allOf"!==e&&e in t.def&&JSON.stringify(n[e])===JSON.stringify(t.def[e])&&delete n[e]}e.override({zodSchema:t,jsonSchema:n,path:r.path??[]})};for(let t of[...e.seen.entries()].reverse())i(t[0]);let n={};if("draft-2020-12"===e.target?n.$schema="https://json-schema.org/draft/2020-12/schema":"draft-07"===e.target?n.$schema="http://json-schema.org/draft-07/schema#":"draft-04"===e.target?n.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let r=e.external.registry.get(t)?.id;if(!r)throw Error("Schema is missing an `id` property");n.$id=e.external.uri(r)}Object.assign(n,r.def??r.schema);let a=e.external?.defs??{};for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(a[e.defId]=e.def)}e.external||Object.keys(a).length>0&&("draft-2020-12"===e.target?n.$defs=a:n.definitions=a);try{let r=JSON.parse(JSON.stringify(n));return Object.defineProperty(r,"~standard",{value:{...t["~standard"],jsonSchema:{input:sm(t,"input",e.processors),output:sm(t,"output",e.processors)}},enumerable:!1,writable:!1}),r}catch(e){throw Error("Error converting schema to JSON.")}}function sh(e,t){let r=t??{seen:new Set};if(r.seen.has(e))return!1;r.seen.add(e);let i=e._zod.def;if("transform"===i.type)return!0;if("array"===i.type)return sh(i.element,r);if("set"===i.type)return sh(i.valueType,r);if("lazy"===i.type)return sh(i.getter(),r);if("promise"===i.type||"optional"===i.type||"nonoptional"===i.type||"nullable"===i.type||"readonly"===i.type||"default"===i.type||"prefault"===i.type)return sh(i.innerType,r);if("intersection"===i.type)return sh(i.left,r)||sh(i.right,r);if("record"===i.type||"map"===i.type)return sh(i.keyType,r)||sh(i.valueType,r);if("pipe"===i.type)return sh(i.in,r)||sh(i.out,r);if("object"===i.type){for(let e in i.shape)if(sh(i.shape[e],r))return!0;return!1}if("union"===i.type){for(let e of i.options)if(sh(e,r))return!0;return!1}if("tuple"===i.type){for(let e of i.items)if(sh(e,r))return!0;if(i.rest&&sh(i.rest,r))return!0}return!1}e.s(["TimePrecision",0,aK,"_any",0,on,"_array",0,oC,"_base64",0,aq,"_base64url",0,aF,"_bigint",0,a5,"_boolean",0,a3,"_catch",0,o3,"_check",0,sn,"_cidrv4",0,aZ,"_cidrv6",0,aL,"_coercedBigint",0,a9,"_coercedBoolean",0,a8,"_coercedDate",0,of,"_coercedNumber",0,aQ,"_coercedString",0,aS,"_cuid",0,az,"_cuid2",0,aU,"_custom",0,st,"_date",0,ou,"_default",0,o2,"_discriminatedUnion",0,oq,"_e164",0,aJ,"_email",0,ak,"_emoji",0,aN,"_endsWith",0,oN,"_enum",0,oG,"_file",0,oY,"_float32",0,a1,"_float64",0,a2,"_gt",0,oh,"_gte",0,op,"_guid",0,a$,"_includes",0,oA,"_int",0,a0,"_int32",0,a6,"_int64",0,a7,"_intersection",0,oF,"_ipv4",0,aD,"_ipv6",0,aB,"_isoDate",0,aG,"_isoDateTime",0,aV,"_isoDuration",0,aX,"_isoTime",0,aH,"_jwt",0,aW,"_ksuid",0,aR,"_lazy",0,o7,"_length",0,o$,"_literal",0,oX,"_lowercase",0,oM,"_lt",0,od,"_lte",0,ol,"_mac",0,aC,"_map",0,oK,"_max",0,ol,"_maxLength",0,oS,"_maxSize",0,o_,"_mime",0,oz,"_min",0,op,"_minLength",0,ok,"_minSize",0,ox,"_multipleOf",0,oy,"_nan",0,oc,"_nanoid",0,aj,"_nativeEnum",0,oH,"_negative",0,ob,"_never",0,oo,"_nonnegative",0,ov,"_nonoptional",0,o6,"_nonpositive",0,og,"_normalize",0,oP,"_null",0,oi,"_nullable",0,o1,"_number",0,aY,"_optional",0,o0,"_overwrite",0,oU,"_pipe",0,o8,"_positive",0,om,"_promise",0,se,"_property",0,oj,"_readonly",0,o5,"_record",0,oW,"_refine",0,sr,"_regex",0,oI,"_set",0,oV,"_size",0,ow,"_slugify",0,oB,"_startsWith",0,oO,"_string",0,aw,"_stringFormat",0,su,"_stringbool",0,ss,"_success",0,o4,"_superRefine",0,si,"_symbol",0,ot,"_templateLiteral",0,o9,"_toLowerCase",0,oR,"_toUpperCase",0,oD,"_transform",0,oQ,"_trim",0,oT,"_tuple",0,oJ,"_uint32",0,a4,"_uint64",0,oe,"_ulid",0,aP,"_undefined",0,or,"_union",0,oZ,"_unknown",0,oa,"_uppercase",0,oE,"_url",0,aO,"_uuid",0,aI,"_uuidv4",0,aM,"_uuidv6",0,aE,"_uuidv7",0,aA,"_void",0,os,"_xid",0,aT,"_xor",0,oL,"describe",0,sa,"meta",0,so],37581);let sp=(e,t={})=>r=>{let i=sf({...r,processors:t});return sc(e,i),sd(i,e),sl(i,e)},sm=(e,t,r={})=>i=>{let{libraryOptions:n,target:a}=i??{},o=sf({...n??{},target:a,io:t,processors:r});return sc(e,o),sd(o,e),sl(o,e)};e.s(["createStandardJSONSchemaMethod",0,sm,"createToJSONSchemaMethod",0,sp,"extractDefs",0,sd,"finalize",0,sl,"initializeContext",0,sf,"process",0,sc],88323);let sb={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},sg=(e,t,r,i)=>{let n=r;n.type="string";let{minimum:a,maximum:o,format:s,patterns:u,contentEncoding:f}=e._zod.bag;if("number"==typeof a&&(n.minLength=a),"number"==typeof o&&(n.maxLength=o),s&&(n.format=sb[s]??s,""===n.format&&delete n.format,"time"===s&&delete n.format),f&&(n.contentEncoding=f),u&&u.size>0){let e=[...u];1===e.length?n.pattern=e[0].source:e.length>1&&(n.allOf=[...e.map(e=>({..."draft-07"===t.target||"draft-04"===t.target||"openapi-3.0"===t.target?{type:"string"}:{},pattern:e.source}))])}},sv=(e,t,r,i)=>{let n=r,{minimum:a,maximum:o,format:s,multipleOf:u,exclusiveMaximum:f,exclusiveMinimum:c}=e._zod.bag;"string"==typeof s&&s.includes("int")?n.type="integer":n.type="number","number"==typeof c&&("draft-04"===t.target||"openapi-3.0"===t.target?(n.minimum=c,n.exclusiveMinimum=!0):n.exclusiveMinimum=c),"number"==typeof a&&(n.minimum=a,"number"==typeof c&&"draft-04"!==t.target&&(c>=a?delete n.minimum:delete n.exclusiveMinimum)),"number"==typeof f&&("draft-04"===t.target||"openapi-3.0"===t.target?(n.maximum=f,n.exclusiveMaximum=!0):n.exclusiveMaximum=f),"number"==typeof o&&(n.maximum=o,"number"==typeof f&&"draft-04"!==t.target&&(f<=o?delete n.maximum:delete n.exclusiveMaximum)),"number"==typeof u&&(n.multipleOf=u)},sy=(e,t,r,i)=>{r.type="boolean"},s_=(e,t,r,i)=>{if("throw"===t.unrepresentable)throw Error("BigInt cannot be represented in JSON Schema")},sx=(e,t,r,i)=>{if("throw"===t.unrepresentable)throw Error("Symbols cannot be represented in JSON Schema")},sw=(e,t,r,i)=>{"openapi-3.0"===t.target?(r.type="string",r.nullable=!0,r.enum=[null]):r.type="null"},sS=(e,t,r,i)=>{if("throw"===t.unrepresentable)throw Error("Undefined cannot be represented in JSON Schema")},sk=(e,t,r,i)=>{if("throw"===t.unrepresentable)throw Error("Void cannot be represented in JSON Schema")},s$=(e,t,r,i)=>{r.not={}},sI=(e,t,r,i)=>{},sM=(e,t,r,i)=>{},sE=(e,t,r,i)=>{if("throw"===t.unrepresentable)throw Error("Date cannot be represented in JSON Schema")},sA=(e,t,r,i)=>{let n=h(e._zod.def.entries);n.every(e=>"number"==typeof e)&&(r.type="number"),n.every(e=>"string"==typeof e)&&(r.type="string"),r.enum=n},sO=(e,t,r,i)=>{let n=e._zod.def,a=[];for(let e of n.values)if(void 0===e){if("throw"===t.unrepresentable)throw Error("Literal `undefined` cannot be represented in JSON Schema")}else if("bigint"==typeof e)if("throw"===t.unrepresentable)throw Error("BigInt literals cannot be represented in JSON Schema");else a.push(Number(e));else a.push(e);if(0===a.length);else if(1===a.length){let e=a[0];r.type=null===e?"null":typeof e,"draft-04"===t.target||"openapi-3.0"===t.target?r.enum=[e]:r.const=e}else a.every(e=>"number"==typeof e)&&(r.type="number"),a.every(e=>"string"==typeof e)&&(r.type="string"),a.every(e=>"boolean"==typeof e)&&(r.type="boolean"),a.every(e=>null===e)&&(r.type="null"),r.enum=a},sN=(e,t,r,i)=>{if("throw"===t.unrepresentable)throw Error("NaN cannot be represented in JSON Schema")},sj=(e,t,r,i)=>{let n=r,a=e._zod.pattern;if(!a)throw Error("Pattern not found in template literal");n.type="string",n.pattern=a.source},sz=(e,t,r,i)=>{let n=r,a={type:"string",format:"binary",contentEncoding:"binary"},{minimum:o,maximum:s,mime:u}=e._zod.bag;void 0!==o&&(a.minLength=o),void 0!==s&&(a.maxLength=s),u?1===u.length?(a.contentMediaType=u[0],Object.assign(n,a)):(Object.assign(n,a),n.anyOf=u.map(e=>({contentMediaType:e}))):Object.assign(n,a)},sU=(e,t,r,i)=>{r.type="boolean"},sP=(e,t,r,i)=>{if("throw"===t.unrepresentable)throw Error("Custom types cannot be represented in JSON Schema")},sT=(e,t,r,i)=>{if("throw"===t.unrepresentable)throw Error("Function types cannot be represented in JSON Schema")},sR=(e,t,r,i)=>{if("throw"===t.unrepresentable)throw Error("Transforms cannot be represented in JSON Schema")},sD=(e,t,r,i)=>{if("throw"===t.unrepresentable)throw Error("Map cannot be represented in JSON Schema")},sB=(e,t,r,i)=>{if("throw"===t.unrepresentable)throw Error("Set cannot be represented in JSON Schema")},sC=(e,t,r,i)=>{let n=r,a=e._zod.def,{minimum:o,maximum:s}=e._zod.bag;"number"==typeof o&&(n.minItems=o),"number"==typeof s&&(n.maxItems=s),n.type="array",n.items=sc(a.element,t,{...i,path:[...i.path,"items"]})},sZ=(e,t,r,i)=>{let n=r,a=e._zod.def;n.type="object",n.properties={};let o=a.shape;for(let e in o)n.properties[e]=sc(o[e],t,{...i,path:[...i.path,"properties",e]});let s=new Set([...new Set(Object.keys(o))].filter(e=>{let r=a.shape[e]._zod;return"input"===t.io?void 0===r.optin:void 0===r.optout}));s.size>0&&(n.required=Array.from(s)),a.catchall?._zod.def.type==="never"?n.additionalProperties=!1:a.catchall?a.catchall&&(n.additionalProperties=sc(a.catchall,t,{...i,path:[...i.path,"additionalProperties"]})):"output"===t.io&&(n.additionalProperties=!1)},sL=(e,t,r,i)=>{let n=e._zod.def,a=!1===n.inclusive,o=n.options.map((e,r)=>sc(e,t,{...i,path:[...i.path,a?"oneOf":"anyOf",r]}));a?r.oneOf=o:r.anyOf=o},sq=(e,t,r,i)=>{let n=e._zod.def,a=sc(n.left,t,{...i,path:[...i.path,"allOf",0]}),o=sc(n.right,t,{...i,path:[...i.path,"allOf",1]}),s=e=>"allOf"in e&&1===Object.keys(e).length;r.allOf=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]]},sF=(e,t,r,i)=>{let n=r,a=e._zod.def;n.type="array";let o="draft-2020-12"===t.target?"prefixItems":"items",s="draft-2020-12"===t.target||"openapi-3.0"===t.target?"items":"additionalItems",u=a.items.map((e,r)=>sc(e,t,{...i,path:[...i.path,o,r]})),f=a.rest?sc(a.rest,t,{...i,path:[...i.path,s,..."openapi-3.0"===t.target?[a.items.length]:[]]}):null;"draft-2020-12"===t.target?(n.prefixItems=u,f&&(n.items=f)):"openapi-3.0"===t.target?(n.items={anyOf:u},f&&n.items.anyOf.push(f),n.minItems=u.length,f||(n.maxItems=u.length)):(n.items=u,f&&(n.additionalItems=f));let{minimum:c,maximum:d}=e._zod.bag;"number"==typeof c&&(n.minItems=c),"number"==typeof d&&(n.maxItems=d)},sJ=(e,t,r,i)=>{let n=r,a=e._zod.def;n.type="object";let o=a.keyType,s=o._zod.bag,u=s?.patterns;if("loose"===a.mode&&u&&u.size>0){let e=sc(a.valueType,t,{...i,path:[...i.path,"patternProperties","*"]});for(let t of(n.patternProperties={},u))n.patternProperties[t.source]=e}else("draft-07"===t.target||"draft-2020-12"===t.target)&&(n.propertyNames=sc(a.keyType,t,{...i,path:[...i.path,"propertyNames"]})),n.additionalProperties=sc(a.valueType,t,{...i,path:[...i.path,"additionalProperties"]});let f=o._zod.values;if(f){let e=[...f].filter(e=>"string"==typeof e||"number"==typeof e);e.length>0&&(n.required=e)}},sW=(e,t,r,i)=>{let n=e._zod.def,a=sc(n.innerType,t,i),o=t.seen.get(e);"openapi-3.0"===t.target?(o.ref=n.innerType,r.nullable=!0):r.anyOf=[a,{type:"null"}]},sK=(e,t,r,i)=>{let n=e._zod.def;sc(n.innerType,t,i),t.seen.get(e).ref=n.innerType},sV=(e,t,r,i)=>{let n=e._zod.def;sc(n.innerType,t,i),t.seen.get(e).ref=n.innerType,r.default=JSON.parse(JSON.stringify(n.defaultValue))},sG=(e,t,r,i)=>{let n=e._zod.def;sc(n.innerType,t,i),t.seen.get(e).ref=n.innerType,"input"===t.io&&(r._prefault=JSON.parse(JSON.stringify(n.defaultValue)))},sH=(e,t,r,i)=>{let n,a=e._zod.def;sc(a.innerType,t,i),t.seen.get(e).ref=a.innerType;try{n=a.catchValue(void 0)}catch{throw Error("Dynamic catch values are not supported in JSON Schema")}r.default=n},sX=(e,t,r,i)=>{let n=e._zod.def,a="input"===t.io?"transform"===n.in._zod.def.type?n.out:n.in:n.out;sc(a,t,i),t.seen.get(e).ref=a},sY=(e,t,r,i)=>{let n=e._zod.def;sc(n.innerType,t,i),t.seen.get(e).ref=n.innerType,r.readOnly=!0},sQ=(e,t,r,i)=>{let n=e._zod.def;sc(n.innerType,t,i),t.seen.get(e).ref=n.innerType},s0=(e,t,r,i)=>{let n=e._zod.def;sc(n.innerType,t,i),t.seen.get(e).ref=n.innerType},s1=(e,t,r,i)=>{let n=e._zod.innerType;sc(n,t,i),t.seen.get(e).ref=n},s2={string:sg,number:sv,boolean:sy,bigint:s_,symbol:sx,null:sw,undefined:sS,void:sk,never:s$,any:sI,unknown:sM,date:sE,enum:sA,literal:sO,nan:sN,template_literal:sj,file:sz,success:sU,custom:sP,function:sT,transform:sR,map:sD,set:sB,array:sC,object:sZ,union:sL,intersection:sq,tuple:sF,record:sJ,nullable:sW,nonoptional:sK,default:sV,prefault:sG,catch:sH,pipe:sX,readonly:sY,promise:sQ,optional:s0,lazy:s1};function s6(e,t){if("_idmap"in e){let r=e,i=sf({...t,processors:s2}),n={};for(let e of r._idmap.entries()){let[t,r]=e;sc(r,i)}let a={};for(let e of(i.external={registry:r,uri:t?.uri,defs:n},r._idmap.entries())){let[t,r]=e;sd(i,r),a[t]=sl(i,r)}return Object.keys(n).length>0&&(a.__shared={["draft-2020-12"===i.target?"$defs":"definitions"]:n}),{schemas:a}}let r=sf({...t,processors:s2});return sc(e,r),sd(r,e),sl(r,e)}class s4{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(e){this.ctx.counter=e}get seen(){return this.ctx.seen}constructor(e){let t=e?.target??"draft-2020-12";"draft-4"===t&&(t="draft-04"),"draft-7"===t&&(t="draft-07"),this.ctx=sf({processors:s2,target:t,...e?.metadata&&{metadata:e.metadata},...e?.unrepresentable&&{unrepresentable:e.unrepresentable},...e?.override&&{override:e.override},...e?.io&&{io:e.io}})}process(e,t={path:[],schemaPath:[]}){return sc(e,this.ctx,t)}emit(e,t){t&&(t.cycles&&(this.ctx.cycles=t.cycles),t.reused&&(this.ctx.reused=t.reused),t.external&&(this.ctx.external=t.external)),sd(this.ctx,e);let{"~standard":r,...i}=sl(this.ctx,e);return i}}e.s([],33202),e.s(["ZodAny",()=>fU,"ZodArray",()=>fF,"ZodBase64",()=>fe,"ZodBase64URL",()=>fr,"ZodBigInt",()=>fS,"ZodBigIntFormat",()=>f$,"ZodBoolean",()=>fx,"ZodCIDRv4",()=>u8,"ZodCIDRv6",()=>u9,"ZodCUID",()=>uF,"ZodCUID2",()=>uW,"ZodCatch",()=>cA,"ZodCodec",()=>cP,"ZodCustom",()=>cK,"ZodCustomStringFormat",()=>fu,"ZodDate",()=>fL,"ZodDefault",()=>cx,"ZodDiscriminatedUnion",()=>f1,"ZodE164",()=>fn,"ZodEmail",()=>uE,"ZodEmoji",()=>uC,"ZodEnum",()=>ca,"ZodExactOptional",()=>cb,"ZodFile",()=>cc,"ZodFunction",()=>cJ,"ZodGUID",()=>uO,"ZodIPv4",()=>u0,"ZodIPv6",()=>u4,"ZodIntersection",()=>f6,"ZodJWT",()=>fo,"ZodKSUID",()=>uY,"ZodLazy",()=>cZ,"ZodLiteral",()=>cu,"ZodMAC",()=>u2,"ZodMap",()=>ct,"ZodNaN",()=>cN,"ZodNanoID",()=>uL,"ZodNever",()=>fD,"ZodNonOptional",()=>c$,"ZodNull",()=>fj,"ZodNullable",()=>cv,"ZodNumber",()=>fh,"ZodNumberFormat",()=>fm,"ZodObject",()=>fK,"ZodOptional",()=>cp,"ZodPipe",()=>cz,"ZodPrefault",()=>cS,"ZodPromise",()=>cq,"ZodReadonly",()=>cR,"ZodRecord",()=>f5,"ZodSet",()=>ci,"ZodString",()=>u$,"ZodStringFormat",()=>uM,"ZodSuccess",()=>cM,"ZodSymbol",()=>fE,"ZodTemplateLiteral",()=>cB,"ZodTransform",()=>cl,"ZodTuple",()=>f3,"ZodType",()=>uS,"ZodULID",()=>uV,"ZodURL",()=>uR,"ZodUUID",()=>uj,"ZodUndefined",()=>fO,"ZodUnion",()=>fX,"ZodUnknown",()=>fT,"ZodVoid",()=>fC,"ZodXID",()=>uH,"ZodXor",()=>fQ,"_ZodString",()=>uk,"_default",()=>cw,"_function",()=>cW,"any",()=>fP,"array",()=>fJ,"base64",()=>ft,"base64url",()=>fi,"bigint",()=>fk,"boolean",()=>fw,"catch",()=>cO,"check",()=>cV,"cidrv4",()=>u5,"cidrv6",()=>u7,"codec",()=>cT,"cuid",()=>uJ,"cuid2",()=>uK,"custom",()=>cG,"date",()=>fq,"describe",()=>cY,"discriminatedUnion",()=>f2,"e164",()=>fa,"email",()=>uA,"emoji",()=>uZ,"enum",()=>co,"exactOptional",()=>cg,"file",()=>cd,"float32",()=>fg,"float64",()=>fv,"function",()=>cW,"guid",()=>uN,"hash",()=>fl,"hex",()=>fd,"hostname",()=>fc,"httpUrl",()=>uB,"instanceof",()=>c0,"int",()=>fb,"int32",()=>fy,"int64",()=>fI,"intersection",()=>f4,"ipv4",()=>u1,"ipv6",()=>u3,"json",()=>c2,"jwt",()=>fs,"keyof",()=>fW,"ksuid",()=>uQ,"lazy",()=>cL,"literal",()=>cf,"looseObject",()=>fH,"looseRecord",()=>ce,"mac",()=>u6,"map",()=>cr,"meta",()=>cQ,"nan",()=>cj,"nanoid",()=>uq,"nativeEnum",()=>cs,"never",()=>fB,"nonoptional",()=>cI,"null",()=>fz,"nullable",()=>cy,"nullish",()=>c_,"number",()=>fp,"object",()=>fV,"optional",()=>cm,"partialRecord",()=>f7,"pipe",()=>cU,"prefault",()=>ck,"preprocess",()=>c6,"promise",()=>cF,"readonly",()=>cD,"record",()=>f9,"refine",()=>cH,"set",()=>cn,"strictObject",()=>fG,"string",()=>uI,"stringFormat",()=>ff,"stringbool",()=>c1,"success",()=>cE,"superRefine",()=>cX,"symbol",()=>fA,"templateLiteral",()=>cC,"transform",()=>ch,"tuple",()=>f8,"uint32",()=>f_,"uint64",()=>fM,"ulid",()=>uG,"undefined",()=>fN,"union",()=>fY,"unknown",()=>fR,"url",()=>uD,"uuid",()=>uz,"uuidv4",()=>uU,"uuidv6",()=>uP,"uuidv7",()=>uT,"void",()=>fZ,"xid",()=>uX,"xor",()=>f0],48071);var s3,s8,s5,s9=e.i(55279),s9=s9,s7=e.i(32967),s7=s7;e.s([],89777),e.s(["ZodISODate",()=>ur,"ZodISODateTime",()=>ue,"ZodISODuration",()=>uo,"ZodISOTime",()=>un,"date",()=>ui,"datetime",()=>ut,"duration",()=>us,"time",()=>ua],48473);let ue=r("ZodISODateTime",(e,t)=>{rk.init(e,t),uM.init(e,t)});function ut(e){return aV(ue,e)}let ur=r("ZodISODate",(e,t)=>{r$.init(e,t),uM.init(e,t)});function ui(e){return aG(ur,e)}let un=r("ZodISOTime",(e,t)=>{rI.init(e,t),uM.init(e,t)});function ua(e){return aH(un,e)}let uo=r("ZodISODuration",(e,t)=>{rM.init(e,t),uM.init(e,t)});function us(e){return aX(uo,e)}let uu=(e,t)=>{ev.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:t=>ex(e,t)},flatten:{value:t=>e_(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,m,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,m,2)}},isEmpty:{get:()=>0===e.issues.length}})},uf=r("ZodError",uu),uc=r("ZodError",uu,{Parent:Error});e.s(["ZodError",0,uf,"ZodRealError",0,uc],17033);let ud=e$(uc),ul=eM(uc),uh=eA(uc),up=eN(uc),um=ez(uc),ub=eP(uc),ug=eR(uc),uv=eB(uc),uy=eZ(uc),u_=eq(uc),ux=eJ(uc),uw=eK(uc);e.s(["decode",0,ub,"decodeAsync",0,uv,"encode",0,um,"encodeAsync",0,ug,"parse",0,ud,"parseAsync",0,ul,"safeDecode",0,u_,"safeDecodeAsync",0,uw,"safeEncode",0,uy,"safeEncodeAsync",0,ux,"safeParse",0,uh,"safeParseAsync",0,up],48774);let uS=r("ZodType",(e,t)=>(rc.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:sm(e,"input"),output:sm(e,"output")}}),e.toJSONSchema=sp(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...r)=>e.clone(s7.mergeDefs(t,{checks:[...t.checks??[],...r.map(e=>"function"==typeof e?{_zod:{check:e,def:{check:"custom"},onattach:[]}}:e)]}),{parent:!0}),e.with=e.check,e.clone=(t,r)=>Z(e,t,r),e.brand=()=>e,e.register=(t,r)=>(t.add(e,r),e),e.parse=(t,r)=>ud(e,t,r,{callee:e.parse}),e.safeParse=(t,r)=>uh(e,t,r),e.parseAsync=async(t,r)=>ul(e,t,r,{callee:e.parseAsync}),e.safeParseAsync=async(t,r)=>up(e,t,r),e.spa=e.safeParseAsync,e.encode=(t,r)=>um(e,t,r),e.decode=(t,r)=>ub(e,t,r),e.encodeAsync=async(t,r)=>ug(e,t,r),e.decodeAsync=async(t,r)=>uv(e,t,r),e.safeEncode=(t,r)=>uy(e,t,r),e.safeDecode=(t,r)=>u_(e,t,r),e.safeEncodeAsync=async(t,r)=>ux(e,t,r),e.safeDecodeAsync=async(t,r)=>uw(e,t,r),e.refine=(t,r)=>e.check(cH(t,r)),e.superRefine=t=>e.check(cX(t)),e.overwrite=t=>e.check(oU(t)),e.optional=()=>cm(e),e.exactOptional=()=>cg(e),e.nullable=()=>cy(e),e.nullish=()=>cm(cy(e)),e.nonoptional=t=>cI(e,t),e.array=()=>fJ(e),e.or=t=>fY([e,t]),e.and=t=>f4(e,t),e.transform=t=>cU(e,ch(t)),e.default=t=>cw(e,t),e.prefault=t=>ck(e,t),e.catch=t=>cO(e,t),e.pipe=t=>cU(e,t),e.readonly=()=>cD(e),e.describe=t=>{let r=e.clone();return ax.add(r,{description:t}),r},Object.defineProperty(e,"description",{get:()=>ax.get(e)?.description,configurable:!0}),e.meta=(...t)=>{if(0===t.length)return ax.get(e);let r=e.clone();return ax.add(r,t[0]),r},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=t=>t(e),e)),uk=r("_ZodString",(e,t)=>{rd.init(e,t),uS.init(e,t),e._zod.processJSONSchema=(t,r,i)=>sg(e,t,r,i);let r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,e.regex=(...t)=>e.check(oI(...t)),e.includes=(...t)=>e.check(oA(...t)),e.startsWith=(...t)=>e.check(oO(...t)),e.endsWith=(...t)=>e.check(oN(...t)),e.min=(...t)=>e.check(ok(...t)),e.max=(...t)=>e.check(oS(...t)),e.length=(...t)=>e.check(o$(...t)),e.nonempty=(...t)=>e.check(ok(1,...t)),e.lowercase=t=>e.check(oM(t)),e.uppercase=t=>e.check(oE(t)),e.trim=()=>e.check(oT()),e.normalize=(...t)=>e.check(oP(...t)),e.toLowerCase=()=>e.check(oR()),e.toUpperCase=()=>e.check(oD()),e.slugify=()=>e.check(oB())}),u$=r("ZodString",(e,t)=>{rd.init(e,t),uk.init(e,t),e.email=t=>e.check(ak(uE,t)),e.url=t=>e.check(aO(uR,t)),e.jwt=t=>e.check(aW(fo,t)),e.emoji=t=>e.check(aN(uC,t)),e.guid=t=>e.check(a$(uO,t)),e.uuid=t=>e.check(aI(uj,t)),e.uuidv4=t=>e.check(aM(uj,t)),e.uuidv6=t=>e.check(aE(uj,t)),e.uuidv7=t=>e.check(aA(uj,t)),e.nanoid=t=>e.check(aj(uL,t)),e.guid=t=>e.check(a$(uO,t)),e.cuid=t=>e.check(az(uF,t)),e.cuid2=t=>e.check(aU(uW,t)),e.ulid=t=>e.check(aP(uV,t)),e.base64=t=>e.check(aq(fe,t)),e.base64url=t=>e.check(aF(fr,t)),e.xid=t=>e.check(aT(uH,t)),e.ksuid=t=>e.check(aR(uY,t)),e.ipv4=t=>e.check(aD(u0,t)),e.ipv6=t=>e.check(aB(u4,t)),e.cidrv4=t=>e.check(aZ(u8,t)),e.cidrv6=t=>e.check(aL(u9,t)),e.e164=t=>e.check(aJ(fn,t)),e.datetime=t=>e.check(ut(t)),e.date=t=>e.check(ui(t)),e.time=t=>e.check(ua(t)),e.duration=t=>e.check(us(t))});function uI(e){return aw(u$,e)}let uM=r("ZodStringFormat",(e,t)=>{rl.init(e,t),uk.init(e,t)}),uE=r("ZodEmail",(e,t)=>{rm.init(e,t),uM.init(e,t)});function uA(e){return ak(uE,e)}let uO=r("ZodGUID",(e,t)=>{rh.init(e,t),uM.init(e,t)});function uN(e){return a$(uO,e)}let uj=r("ZodUUID",(e,t)=>{rp.init(e,t),uM.init(e,t)});function uz(e){return aI(uj,e)}function uU(e){return aM(uj,e)}function uP(e){return aE(uj,e)}function uT(e){return aA(uj,e)}let uR=r("ZodURL",(e,t)=>{rb.init(e,t),uM.init(e,t)});function uD(e){return aO(uR,e)}function uB(e){return aO(uR,{protocol:/^https?$/,hostname:s9.domain,...s7.normalizeParams(e)})}let uC=r("ZodEmoji",(e,t)=>{rg.init(e,t),uM.init(e,t)});function uZ(e){return aN(uC,e)}let uL=r("ZodNanoID",(e,t)=>{rv.init(e,t),uM.init(e,t)});function uq(e){return aj(uL,e)}let uF=r("ZodCUID",(e,t)=>{ry.init(e,t),uM.init(e,t)});function uJ(e){return az(uF,e)}let uW=r("ZodCUID2",(e,t)=>{r_.init(e,t),uM.init(e,t)});function uK(e){return aU(uW,e)}let uV=r("ZodULID",(e,t)=>{rx.init(e,t),uM.init(e,t)});function uG(e){return aP(uV,e)}let uH=r("ZodXID",(e,t)=>{rw.init(e,t),uM.init(e,t)});function uX(e){return aT(uH,e)}let uY=r("ZodKSUID",(e,t)=>{rS.init(e,t),uM.init(e,t)});function uQ(e){return aR(uY,e)}let u0=r("ZodIPv4",(e,t)=>{rE.init(e,t),uM.init(e,t)});function u1(e){return aD(u0,e)}let u2=r("ZodMAC",(e,t)=>{rO.init(e,t),uM.init(e,t)});function u6(e){return aC(u2,e)}let u4=r("ZodIPv6",(e,t)=>{rA.init(e,t),uM.init(e,t)});function u3(e){return aB(u4,e)}let u8=r("ZodCIDRv4",(e,t)=>{rN.init(e,t),uM.init(e,t)});function u5(e){return aZ(u8,e)}let u9=r("ZodCIDRv6",(e,t)=>{rj.init(e,t),uM.init(e,t)});function u7(e){return aL(u9,e)}let fe=r("ZodBase64",(e,t)=>{rU.init(e,t),uM.init(e,t)});function ft(e){return aq(fe,e)}let fr=r("ZodBase64URL",(e,t)=>{rT.init(e,t),uM.init(e,t)});function fi(e){return aF(fr,e)}let fn=r("ZodE164",(e,t)=>{rR.init(e,t),uM.init(e,t)});function fa(e){return aJ(fn,e)}let fo=r("ZodJWT",(e,t)=>{rB.init(e,t),uM.init(e,t)});function fs(e){return aW(fo,e)}let fu=r("ZodCustomStringFormat",(e,t)=>{rC.init(e,t),uM.init(e,t)});function ff(e,t,r={}){return su(fu,e,t,r)}function fc(e){return su(fu,"hostname",s9.hostname,e)}function fd(e){return su(fu,"hex",s9.hex,e)}function fl(e,t){let r=t?.enc??"hex",i=`${e}_${r}`,n=s9[i];if(!n)throw Error(`Unrecognized hash format: ${i}`);return su(fu,i,n,t)}let fh=r("ZodNumber",(e,t)=>{rZ.init(e,t),uS.init(e,t),e._zod.processJSONSchema=(t,r,i)=>sv(e,t,r,i),e.gt=(t,r)=>e.check(oh(t,r)),e.gte=(t,r)=>e.check(op(t,r)),e.min=(t,r)=>e.check(op(t,r)),e.lt=(t,r)=>e.check(od(t,r)),e.lte=(t,r)=>e.check(ol(t,r)),e.max=(t,r)=>e.check(ol(t,r)),e.int=t=>e.check(fb(t)),e.safe=t=>e.check(fb(t)),e.positive=t=>e.check(oh(0,t)),e.nonnegative=t=>e.check(op(0,t)),e.negative=t=>e.check(od(0,t)),e.nonpositive=t=>e.check(ol(0,t)),e.multipleOf=(t,r)=>e.check(oy(t,r)),e.step=(t,r)=>e.check(oy(t,r)),e.finite=()=>e;let r=e._zod.bag;e.minValue=Math.max(r.minimum??-1/0,r.exclusiveMinimum??-1/0)??null,e.maxValue=Math.min(r.maximum??1/0,r.exclusiveMaximum??1/0)??null,e.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),e.isFinite=!0,e.format=r.format??null});function fp(e){return aY(fh,e)}let fm=r("ZodNumberFormat",(e,t)=>{rL.init(e,t),fh.init(e,t)});function fb(e){return a0(fm,e)}function fg(e){return a1(fm,e)}function fv(e){return a2(fm,e)}function fy(e){return a6(fm,e)}function f_(e){return a4(fm,e)}let fx=r("ZodBoolean",(e,t)=>{rq.init(e,t),uS.init(e,t),e._zod.processJSONSchema=(t,r,i)=>sy(e,t,r,i)});function fw(e){return a3(fx,e)}let fS=r("ZodBigInt",(e,t)=>{rF.init(e,t),uS.init(e,t),e._zod.processJSONSchema=(t,r,i)=>s_(e,t,r,i),e.gte=(t,r)=>e.check(op(t,r)),e.min=(t,r)=>e.check(op(t,r)),e.gt=(t,r)=>e.check(oh(t,r)),e.gte=(t,r)=>e.check(op(t,r)),e.min=(t,r)=>e.check(op(t,r)),e.lt=(t,r)=>e.check(od(t,r)),e.lte=(t,r)=>e.check(ol(t,r)),e.max=(t,r)=>e.check(ol(t,r)),e.positive=t=>e.check(oh(BigInt(0),t)),e.negative=t=>e.check(od(BigInt(0),t)),e.nonpositive=t=>e.check(ol(BigInt(0),t)),e.nonnegative=t=>e.check(op(BigInt(0),t)),e.multipleOf=(t,r)=>e.check(oy(t,r));let r=e._zod.bag;e.minValue=r.minimum??null,e.maxValue=r.maximum??null,e.format=r.format??null});function fk(e){return a5(fS,e)}let f$=r("ZodBigIntFormat",(e,t)=>{rJ.init(e,t),fS.init(e,t)});function fI(e){return a7(f$,e)}function fM(e){return oe(f$,e)}let fE=r("ZodSymbol",(e,t)=>{rW.init(e,t),uS.init(e,t),e._zod.processJSONSchema=(t,r,i)=>sx(e,t,r,i)});function fA(e){return ot(fE,e)}let fO=r("ZodUndefined",(e,t)=>{rK.init(e,t),uS.init(e,t),e._zod.processJSONSchema=(t,r,i)=>sS(e,t,r,i)});function fN(e){return or(fO,e)}let fj=r("ZodNull",(e,t)=>{rV.init(e,t),uS.init(e,t),e._zod.processJSONSchema=(t,r,i)=>sw(e,t,r,i)});function fz(e){return oi(fj,e)}let fU=r("ZodAny",(e,t)=>{rG.init(e,t),uS.init(e,t),e._zod.processJSONSchema=(t,r,i)=>sI(e,t,r,i)});function fP(){return on(fU)}let fT=r("ZodUnknown",(e,t)=>{rH.init(e,t),uS.init(e,t),e._zod.processJSONSchema=(t,r,i)=>sM(e,t,r,i)});function fR(){return oa(fT)}let fD=r("ZodNever",(e,t)=>{rX.init(e,t),uS.init(e,t),e._zod.processJSONSchema=(t,r,i)=>s$(e,t,r,i)});function fB(e){return oo(fD,e)}let fC=r("ZodVoid",(e,t)=>{rY.init(e,t),uS.init(e,t),e._zod.processJSONSchema=(t,r,i)=>sk(e,t,r,i)});function fZ(e){return os(fC,e)}let fL=r("ZodDate",(e,t)=>{rQ.init(e,t),uS.init(e,t),e._zod.processJSONSchema=(t,r,i)=>sE(e,t,r,i),e.min=(t,r)=>e.check(op(t,r)),e.max=(t,r)=>e.check(ol(t,r));let r=e._zod.bag;e.minDate=r.minimum?new Date(r.minimum):null,e.maxDate=r.maximum?new Date(r.maximum):null});function fq(e){return ou(fL,e)}let fF=r("ZodArray",(e,t)=>{r1.init(e,t),uS.init(e,t),e._zod.processJSONSchema=(t,r,i)=>sC(e,t,r,i),e.element=t.element,e.min=(t,r)=>e.check(ok(t,r)),e.nonempty=t=>e.check(ok(1,t)),e.max=(t,r)=>e.check(oS(t,r)),e.length=(t,r)=>e.check(o$(t,r)),e.unwrap=()=>e.element});function fJ(e,t){return oC(fF,e,t)}function fW(e){return co(Object.keys(e._zod.def.shape))}let fK=r("ZodObject",(e,t)=>{r8.init(e,t),uS.init(e,t),e._zod.processJSONSchema=(t,r,i)=>sZ(e,t,r,i),s7.defineLazy(e,"shape",()=>t.shape),e.keyof=()=>co(Object.keys(e._zod.def.shape)),e.catchall=t=>e.clone({...e._zod.def,catchall:t}),e.passthrough=()=>e.clone({...e._zod.def,catchall:fR()}),e.loose=()=>e.clone({...e._zod.def,catchall:fR()}),e.strict=()=>e.clone({...e._zod.def,catchall:fB()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=t=>s7.extend(e,t),e.safeExtend=t=>s7.safeExtend(e,t),e.merge=t=>s7.merge(e,t),e.pick=t=>s7.pick(e,t),e.omit=t=>s7.omit(e,t),e.partial=(...t)=>s7.partial(cp,e,t[0]),e.required=(...t)=>s7.required(c$,e,t[0])});function fV(e,t){return new fK({type:"object",shape:e??{},...s7.normalizeParams(t)})}function fG(e,t){return new fK({type:"object",shape:e,catchall:fB(),...s7.normalizeParams(t)})}function fH(e,t){return new fK({type:"object",shape:e,catchall:fR(),...s7.normalizeParams(t)})}let fX=r("ZodUnion",(e,t)=>{r9.init(e,t),uS.init(e,t),e._zod.processJSONSchema=(t,r,i)=>sL(e,t,r,i),e.options=t.options});function fY(e,t){return new fX({type:"union",options:e,...s7.normalizeParams(t)})}let fQ=r("ZodXor",(e,t)=>{fX.init(e,t),ie.init(e,t),e._zod.processJSONSchema=(t,r,i)=>sL(e,t,r,i),e.options=t.options});function f0(e,t){return new fQ({type:"union",options:e,inclusive:!1,...s7.normalizeParams(t)})}let f1=r("ZodDiscriminatedUnion",(e,t)=>{fX.init(e,t),it.init(e,t)});function f2(e,t,r){return new f1({type:"union",options:t,discriminator:e,...s7.normalizeParams(r)})}let f6=r("ZodIntersection",(e,t)=>{ir.init(e,t),uS.init(e,t),e._zod.processJSONSchema=(t,r,i)=>sq(e,t,r,i)});function f4(e,t){return new f6({type:"intersection",left:e,right:t})}let f3=r("ZodTuple",(e,t)=>{io.init(e,t),uS.init(e,t),e._zod.processJSONSchema=(t,r,i)=>sF(e,t,r,i),e.rest=t=>e.clone({...e._zod.def,rest:t})});function f8(e,t,r){let i=t instanceof rc,n=i?r:t;return new f3({type:"tuple",items:e,rest:i?t:null,...s7.normalizeParams(n)})}let f5=r("ZodRecord",(e,t)=>{iu.init(e,t),uS.init(e,t),e._zod.processJSONSchema=(t,r,i)=>sJ(e,t,r,i),e.keyType=t.keyType,e.valueType=t.valueType});function f9(e,t,r){return new f5({type:"record",keyType:e,valueType:t,...s7.normalizeParams(r)})}function f7(e,t,r){let i=Z(e);return i._zod.values=void 0,new f5({type:"record",keyType:i,valueType:t,...s7.normalizeParams(r)})}function ce(e,t,r){return new f5({type:"record",keyType:e,valueType:t,mode:"loose",...s7.normalizeParams(r)})}let ct=r("ZodMap",(e,t)=>{ic.init(e,t),uS.init(e,t),e._zod.processJSONSchema=(t,r,i)=>sD(e,t,r,i),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...t)=>e.check(ox(...t)),e.nonempty=t=>e.check(ox(1,t)),e.max=(...t)=>e.check(o_(...t)),e.size=(...t)=>e.check(ow(...t))});function cr(e,t,r){return new ct({type:"map",keyType:e,valueType:t,...s7.normalizeParams(r)})}let ci=r("ZodSet",(e,t)=>{il.init(e,t),uS.init(e,t),e._zod.processJSONSchema=(t,r,i)=>sB(e,t,r,i),e.min=(...t)=>e.check(ox(...t)),e.nonempty=t=>e.check(ox(1,t)),e.max=(...t)=>e.check(o_(...t)),e.size=(...t)=>e.check(ow(...t))});function cn(e,t){return new ci({type:"set",valueType:e,...s7.normalizeParams(t)})}let ca=r("ZodEnum",(e,t)=>{ip.init(e,t),uS.init(e,t),e._zod.processJSONSchema=(t,r,i)=>sA(e,t,r,i),e.enum=t.entries,e.options=Object.values(t.entries);let r=new Set(Object.keys(t.entries));e.extract=(e,i)=>{let n={};for(let i of e)if(r.has(i))n[i]=t.entries[i];else throw Error(`Key ${i} not found in enum`);return new ca({...t,checks:[],...s7.normalizeParams(i),entries:n})},e.exclude=(e,i)=>{let n={...t.entries};for(let t of e)if(r.has(t))delete n[t];else throw Error(`Key ${t} not found in enum`);return new ca({...t,checks:[],...s7.normalizeParams(i),entries:n})}});function co(e,t){return new ca({type:"enum",entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...s7.normalizeParams(t)})}function cs(e,t){return new ca({type:"enum",entries:e,...s7.normalizeParams(t)})}let cu=r("ZodLiteral",(e,t)=>{im.init(e,t),uS.init(e,t),e._zod.processJSONSchema=(t,r,i)=>sO(e,t,r,i),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function cf(e,t){return new cu({type:"literal",values:Array.isArray(e)?e:[e],...s7.normalizeParams(t)})}let cc=r("ZodFile",(e,t)=>{ib.init(e,t),uS.init(e,t),e._zod.processJSONSchema=(t,r,i)=>sz(e,t,r,i),e.min=(t,r)=>e.check(ox(t,r)),e.max=(t,r)=>e.check(o_(t,r)),e.mime=(t,r)=>e.check(oz(Array.isArray(t)?t:[t],r))});function cd(e){return oY(cc,e)}let cl=r("ZodTransform",(e,t)=>{ig.init(e,t),uS.init(e,t),e._zod.processJSONSchema=(t,r,i)=>sR(e,t,r,i),e._zod.parse=(r,i)=>{if("backward"===i.direction)throw new a(e.constructor.name);r.addIssue=i=>{if("string"==typeof i)r.issues.push(s7.issue(i,r.value,t));else{let t=i;t.fatal&&(t.continue=!1),t.code??(t.code="custom"),t.input??(t.input=r.value),t.inst??(t.inst=e),r.issues.push(s7.issue(t))}};let n=t.transform(r.value,r);return n instanceof Promise?n.then(e=>(r.value=e,r)):(r.value=n,r)}});function ch(e){return new cl({type:"transform",transform:e})}let cp=r("ZodOptional",(e,t)=>{iy.init(e,t),uS.init(e,t),e._zod.processJSONSchema=(t,r,i)=>s0(e,t,r,i),e.unwrap=()=>e._zod.def.innerType});function cm(e){return new cp({type:"optional",innerType:e})}let cb=r("ZodExactOptional",(e,t)=>{i_.init(e,t),uS.init(e,t),e._zod.processJSONSchema=(t,r,i)=>s0(e,t,r,i),e.unwrap=()=>e._zod.def.innerType});function cg(e){return new cb({type:"optional",innerType:e})}let cv=r("ZodNullable",(e,t)=>{ix.init(e,t),uS.init(e,t),e._zod.processJSONSchema=(t,r,i)=>sW(e,t,r,i),e.unwrap=()=>e._zod.def.innerType});function cy(e){return new cv({type:"nullable",innerType:e})}function c_(e){return cm(cy(e))}let cx=r("ZodDefault",(e,t)=>{iw.init(e,t),uS.init(e,t),e._zod.processJSONSchema=(t,r,i)=>sV(e,t,r,i),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function cw(e,t){return new cx({type:"default",innerType:e,get defaultValue(){return"function"==typeof t?t():s7.shallowClone(t)}})}let cS=r("ZodPrefault",(e,t)=>{ik.init(e,t),uS.init(e,t),e._zod.processJSONSchema=(t,r,i)=>sG(e,t,r,i),e.unwrap=()=>e._zod.def.innerType});function ck(e,t){return new cS({type:"prefault",innerType:e,get defaultValue(){return"function"==typeof t?t():s7.shallowClone(t)}})}let c$=r("ZodNonOptional",(e,t)=>{i$.init(e,t),uS.init(e,t),e._zod.processJSONSchema=(t,r,i)=>sK(e,t,r,i),e.unwrap=()=>e._zod.def.innerType});function cI(e,t){return new c$({type:"nonoptional",innerType:e,...s7.normalizeParams(t)})}let cM=r("ZodSuccess",(e,t)=>{iM.init(e,t),uS.init(e,t),e._zod.processJSONSchema=(t,r,i)=>sU(e,t,r,i),e.unwrap=()=>e._zod.def.innerType});function cE(e){return new cM({type:"success",innerType:e})}let cA=r("ZodCatch",(e,t)=>{iE.init(e,t),uS.init(e,t),e._zod.processJSONSchema=(t,r,i)=>sH(e,t,r,i),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function cO(e,t){return new cA({type:"catch",innerType:e,catchValue:"function"==typeof t?t:()=>t})}let cN=r("ZodNaN",(e,t)=>{iA.init(e,t),uS.init(e,t),e._zod.processJSONSchema=(t,r,i)=>sN(e,t,r,i)});function cj(e){return oc(cN,e)}let cz=r("ZodPipe",(e,t)=>{iO.init(e,t),uS.init(e,t),e._zod.processJSONSchema=(t,r,i)=>sX(e,t,r,i),e.in=t.in,e.out=t.out});function cU(e,t){return new cz({type:"pipe",in:e,out:t})}let cP=r("ZodCodec",(e,t)=>{cz.init(e,t),ij.init(e,t)});function cT(e,t,r){return new cP({type:"pipe",in:e,out:t,transform:r.decode,reverseTransform:r.encode})}let cR=r("ZodReadonly",(e,t)=>{iP.init(e,t),uS.init(e,t),e._zod.processJSONSchema=(t,r,i)=>sY(e,t,r,i),e.unwrap=()=>e._zod.def.innerType});function cD(e){return new cR({type:"readonly",innerType:e})}let cB=r("ZodTemplateLiteral",(e,t)=>{iR.init(e,t),uS.init(e,t),e._zod.processJSONSchema=(t,r,i)=>sj(e,t,r,i)});function cC(e,t){return new cB({type:"template_literal",parts:e,...s7.normalizeParams(t)})}let cZ=r("ZodLazy",(e,t)=>{iC.init(e,t),uS.init(e,t),e._zod.processJSONSchema=(t,r,i)=>s1(e,t,r,i),e.unwrap=()=>e._zod.def.getter()});function cL(e){return new cZ({type:"lazy",getter:e})}let cq=r("ZodPromise",(e,t)=>{iB.init(e,t),uS.init(e,t),e._zod.processJSONSchema=(t,r,i)=>sQ(e,t,r,i),e.unwrap=()=>e._zod.def.innerType});function cF(e){return new cq({type:"promise",innerType:e})}let cJ=r("ZodFunction",(e,t)=>{iD.init(e,t),uS.init(e,t),e._zod.processJSONSchema=(t,r,i)=>sT(e,t,r,i)});function cW(e){return new cJ({type:"function",input:Array.isArray(e?.input)?f8(e?.input):e?.input??fJ(fR()),output:e?.output??fR()})}let cK=r("ZodCustom",(e,t)=>{iZ.init(e,t),uS.init(e,t),e._zod.processJSONSchema=(t,r,i)=>sP(e,t,r,i)});function cV(e){let t=new tV({check:"custom"});return t._zod.check=e,t}function cG(e,t){return st(cK,e??(()=>!0),t)}function cH(e,t={}){return sr(cK,e,t)}function cX(e){return si(e)}let cY=sa,cQ=so;function c0(e,t={}){let r=new cK({type:"custom",check:"custom",fn:t=>t instanceof e,abort:!0,...s7.normalizeParams(t)});return r._zod.bag.Class=e,r._zod.check=t=>{t.value instanceof e||t.issues.push({code:"invalid_type",expected:e.name,input:t.value,inst:r,path:[...r._zod.def.path??[]]})},r}let c1=(...e)=>ss({Codec:cP,Boolean:fx,String:u$},...e);function c2(e){let t=cL(()=>fY([uI(e),fp(),fw(),fz(),fJ(t),f9(uI(),t)]));return t}function c6(e,t){return cU(ch(e),t)}let c4={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};function c3(e){s({customError:e})}function c8(){return s().customError}s5||(s5={}),e.s(["ZodFirstPartyTypeKind",0,s5,"ZodIssueCode",0,c4,"getErrorMap",0,c8,"setErrorMap",0,c3],31364),e.i(89777),e.s(["endsWith",0,oN,"gt",0,oh,"gte",0,op,"includes",0,oA,"length",0,o$,"lowercase",0,oM,"lt",0,od,"lte",0,ol,"maxLength",0,oS,"maxSize",0,o_,"mime",0,oz,"minLength",0,ok,"minSize",0,ox,"multipleOf",0,oy,"negative",0,ob,"nonnegative",0,ov,"nonpositive",0,og,"normalize",0,oP,"overwrite",0,oU,"positive",0,om,"property",0,oj,"regex",0,oI,"size",0,ow,"slugify",0,oB,"startsWith",0,oO,"toLowerCase",0,oR,"toUpperCase",0,oD,"trim",0,oT,"uppercase",0,oE],61923);var c5=e.i(61923),c9=e.i(48473);let c7={...e.i(48071),...c5,iso:c9},de=new Set(["$schema","$ref","$defs","definitions","$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor","type","enum","const","anyOf","oneOf","allOf","not","properties","required","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","items","prefixItems","additionalItems","minItems","maxItems","uniqueItems","contains","minContains","maxContains","minLength","maxLength","pattern","format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","description","default","contentEncoding","contentMediaType","contentSchema","unevaluatedItems","unevaluatedProperties","if","then","else","dependentSchemas","dependentRequired","nullable","readOnly"]);function dt(e,t){let r=e.$schema;return"https://json-schema.org/draft/2020-12/schema"===r?"draft-2020-12":"http://json-schema.org/draft-07/schema#"===r?"draft-7":"http://json-schema.org/draft-04/schema#"===r?"draft-4":t??"draft-2020-12"}function dr(e,t){if(!e.startsWith("#"))throw Error("External $ref is not supported, only local refs (#/...) are allowed");let r=e.slice(1).split("/").filter(Boolean);if(0===r.length)return t.rootSchema;let i="draft-2020-12"===t.version?"$defs":"definitions";if(r[0]===i){let i=r[1];if(!i||!t.defs[i])throw Error(`Reference not found: ${e}`);return t.defs[i]}throw Error(`Reference not found: ${e}`)}function di(e,t){let r;if(void 0!==e.not){if("object"==typeof e.not&&0===Object.keys(e.not).length)return c7.never();throw Error("not is not supported in Zod (except { not: {} } for never)")}if(void 0!==e.unevaluatedItems)throw Error("unevaluatedItems is not supported");if(void 0!==e.unevaluatedProperties)throw Error("unevaluatedProperties is not supported");if(void 0!==e.if||void 0!==e.then||void 0!==e.else)throw Error("Conditional schemas (if/then/else) are not supported");if(void 0!==e.dependentSchemas||void 0!==e.dependentRequired)throw Error("dependentSchemas and dependentRequired are not supported");if(e.$ref){let r=e.$ref;if(t.refs.has(r))return t.refs.get(r);if(t.processing.has(r))return c7.lazy(()=>{if(!t.refs.has(r))throw Error(`Circular reference not resolved: ${r}`);return t.refs.get(r)});t.processing.add(r);let i=dn(dr(r,t),t);return t.refs.set(r,i),t.processing.delete(r),i}if(void 0!==e.enum){let r=e.enum;if("openapi-3.0"===t.version&&!0===e.nullable&&1===r.length&&null===r[0])return c7.null();if(0===r.length)return c7.never();if(1===r.length)return c7.literal(r[0]);if(r.every(e=>"string"==typeof e))return c7.enum(r);let i=r.map(e=>c7.literal(e));return i.length<2?i[0]:c7.union([i[0],i[1],...i.slice(2)])}if(void 0!==e.const)return c7.literal(e.const);let i=e.type;if(Array.isArray(i)){let r=i.map(r=>di({...e,type:r},t));return 0===r.length?c7.never():1===r.length?r[0]:c7.union(r)}if(!i)return c7.any();switch(i){case"string":{let t=c7.string();if(e.format){let r=e.format;"email"===r?t=t.check(c7.email()):"uri"===r||"uri-reference"===r?t=t.check(c7.url()):"uuid"===r||"guid"===r?t=t.check(c7.uuid()):"date-time"===r?t=t.check(c7.iso.datetime()):"date"===r?t=t.check(c7.iso.date()):"time"===r?t=t.check(c7.iso.time()):"duration"===r?t=t.check(c7.iso.duration()):"ipv4"===r?t=t.check(c7.ipv4()):"ipv6"===r?t=t.check(c7.ipv6()):"mac"===r?t=t.check(c7.mac()):"cidr"===r?t=t.check(c7.cidrv4()):"cidr-v6"===r?t=t.check(c7.cidrv6()):"base64"===r?t=t.check(c7.base64()):"base64url"===r?t=t.check(c7.base64url()):"e164"===r?t=t.check(c7.e164()):"jwt"===r?t=t.check(c7.jwt()):"emoji"===r?t=t.check(c7.emoji()):"nanoid"===r?t=t.check(c7.nanoid()):"cuid"===r?t=t.check(c7.cuid()):"cuid2"===r?t=t.check(c7.cuid2()):"ulid"===r?t=t.check(c7.ulid()):"xid"===r?t=t.check(c7.xid()):"ksuid"===r&&(t=t.check(c7.ksuid()))}"number"==typeof e.minLength&&(t=t.min(e.minLength)),"number"==typeof e.maxLength&&(t=t.max(e.maxLength)),e.pattern&&(t=t.regex(new RegExp(e.pattern))),r=t;break}case"number":case"integer":{let t="integer"===i?c7.number().int():c7.number();"number"==typeof e.minimum&&(t=t.min(e.minimum)),"number"==typeof e.maximum&&(t=t.max(e.maximum)),"number"==typeof e.exclusiveMinimum?t=t.gt(e.exclusiveMinimum):!0===e.exclusiveMinimum&&"number"==typeof e.minimum&&(t=t.gt(e.minimum)),"number"==typeof e.exclusiveMaximum?t=t.lt(e.exclusiveMaximum):!0===e.exclusiveMaximum&&"number"==typeof e.maximum&&(t=t.lt(e.maximum)),"number"==typeof e.multipleOf&&(t=t.multipleOf(e.multipleOf)),r=t;break}case"boolean":r=c7.boolean();break;case"null":r=c7.null();break;case"object":{let i={},n=e.properties||{},a=new Set(e.required||[]);for(let[e,r]of Object.entries(n)){let n=dn(r,t);i[e]=a.has(e)?n:n.optional()}if(e.propertyNames){let n=dn(e.propertyNames,t),a=e.additionalProperties&&"object"==typeof e.additionalProperties?dn(e.additionalProperties,t):c7.any();if(0===Object.keys(i).length){r=c7.record(n,a);break}let o=c7.object(i).passthrough(),s=c7.looseRecord(n,a);r=c7.intersection(o,s);break}if(e.patternProperties){let n=e.patternProperties,a=Object.keys(n),o=[];for(let e of a){let r=dn(n[e],t),i=c7.string().regex(new RegExp(e));o.push(c7.looseRecord(i,r))}let s=[];if(Object.keys(i).length>0&&s.push(c7.object(i).passthrough()),s.push(...o),0===s.length)r=c7.object({}).passthrough();else if(1===s.length)r=s[0];else{let e=c7.intersection(s[0],s[1]);for(let t=2;t<s.length;t++)e=c7.intersection(e,s[t]);r=e}break}let o=c7.object(i);r=!1===e.additionalProperties?o.strict():"object"==typeof e.additionalProperties?o.catchall(dn(e.additionalProperties,t)):o.passthrough();break}case"array":{let i=e.prefixItems,n=e.items;if(i&&Array.isArray(i)){let a=i.map(e=>dn(e,t)),o=n&&"object"==typeof n&&!Array.isArray(n)?dn(n,t):void 0;r=o?c7.tuple(a).rest(o):c7.tuple(a),"number"==typeof e.minItems&&(r=r.check(c7.minLength(e.minItems))),"number"==typeof e.maxItems&&(r=r.check(c7.maxLength(e.maxItems)))}else if(Array.isArray(n)){let i=n.map(e=>dn(e,t)),a=e.additionalItems&&"object"==typeof e.additionalItems?dn(e.additionalItems,t):void 0;r=a?c7.tuple(i).rest(a):c7.tuple(i),"number"==typeof e.minItems&&(r=r.check(c7.minLength(e.minItems))),"number"==typeof e.maxItems&&(r=r.check(c7.maxLength(e.maxItems)))}else if(void 0!==n){let i=dn(n,t),a=c7.array(i);"number"==typeof e.minItems&&(a=a.min(e.minItems)),"number"==typeof e.maxItems&&(a=a.max(e.maxItems)),r=a}else r=c7.array(c7.any());break}default:throw Error(`Unsupported type: ${i}`)}return e.description&&(r=r.describe(e.description)),void 0!==e.default&&(r=r.default(e.default)),r}function dn(e,t){if("boolean"==typeof e)return e?c7.any():c7.never();let r=di(e,t),i=e.type||void 0!==e.enum||void 0!==e.const;if(e.anyOf&&Array.isArray(e.anyOf)){let n=e.anyOf.map(e=>dn(e,t)),a=c7.union(n);r=i?c7.intersection(r,a):a}if(e.oneOf&&Array.isArray(e.oneOf)){let n=e.oneOf.map(e=>dn(e,t)),a=c7.xor(n);r=i?c7.intersection(r,a):a}if(e.allOf&&Array.isArray(e.allOf))if(0===e.allOf.length)r=i?r:c7.any();else{let n=i?r:dn(e.allOf[0],t),a=+!i;for(let r=a;r<e.allOf.length;r++)n=c7.intersection(n,dn(e.allOf[r],t));r=n}!0===e.nullable&&"openapi-3.0"===t.version&&(r=c7.nullable(r)),!0===e.readOnly&&(r=c7.readonly(r));let n={};for(let t of["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"])t in e&&(n[t]=e[t]);for(let t of["contentEncoding","contentMediaType","contentSchema"])t in e&&(n[t]=e[t]);for(let t of Object.keys(e))de.has(t)||(n[t]=e[t]);return Object.keys(n).length>0&&t.registry.add(r,n),r}function da(e,t){if("boolean"==typeof e)return e?c7.any():c7.never();let r={version:dt(e,t?.defaultTarget),defs:e.$defs||e.definitions||{},refs:new Map,processing:new Set,rootSchema:e,registry:t?.registry??ax};return dn(e,r)}function ds(e){return aS(u$,e)}function du(e){return aQ(fh,e)}function df(e){return a8(fx,e)}function dc(e){return a9(fS,e)}function dd(e){return of(fL,e)}e.s(["bigint",0,dc,"boolean",0,df,"date",0,dd,"number",0,du,"string",0,ds],12590),s(i5()),e.s([],6356),e.i(6356),e.i(33202),e.i(33215),e.i(29677),e.i(99120),e.i(24110),e.s(["$ZodAny",0,rG,"$ZodArray",0,r1,"$ZodBase64",0,rU,"$ZodBase64URL",0,rT,"$ZodBigInt",0,rF,"$ZodBigIntFormat",0,rJ,"$ZodBoolean",0,rq,"$ZodCIDRv4",0,rN,"$ZodCIDRv6",0,rj,"$ZodCUID",0,ry,"$ZodCUID2",0,r_,"$ZodCatch",0,iE,"$ZodCodec",0,ij,"$ZodCustom",0,iZ,"$ZodCustomStringFormat",0,rC,"$ZodDate",0,rQ,"$ZodDefault",0,iw,"$ZodDiscriminatedUnion",0,it,"$ZodE164",0,rR,"$ZodEmail",0,rm,"$ZodEmoji",0,rg,"$ZodEnum",0,ip,"$ZodExactOptional",0,i_,"$ZodFile",0,ib,"$ZodFunction",0,iD,"$ZodGUID",0,rh,"$ZodIPv4",0,rE,"$ZodIPv6",0,rA,"$ZodISODate",0,r$,"$ZodISODateTime",0,rk,"$ZodISODuration",0,rM,"$ZodISOTime",0,rI,"$ZodIntersection",0,ir,"$ZodJWT",0,rB,"$ZodKSUID",0,rS,"$ZodLazy",0,iC,"$ZodLiteral",0,im,"$ZodMAC",0,rO,"$ZodMap",0,ic,"$ZodNaN",0,iA,"$ZodNanoID",0,rv,"$ZodNever",0,rX,"$ZodNonOptional",0,i$,"$ZodNull",0,rV,"$ZodNullable",0,ix,"$ZodNumber",0,rZ,"$ZodNumberFormat",0,rL,"$ZodObject",0,r3,"$ZodObjectJIT",0,r8,"$ZodOptional",0,iy,"$ZodPipe",0,iO,"$ZodPrefault",0,ik,"$ZodPromise",0,iB,"$ZodReadonly",0,iP,"$ZodRecord",0,iu,"$ZodSet",0,il,"$ZodString",0,rd,"$ZodStringFormat",0,rl,"$ZodSuccess",0,iM,"$ZodSymbol",0,rW,"$ZodTemplateLiteral",0,iR,"$ZodTransform",0,ig,"$ZodTuple",0,io,"$ZodType",0,rc,"$ZodULID",0,rx,"$ZodURL",0,rb,"$ZodUUID",0,rp,"$ZodUndefined",0,rK,"$ZodUnion",0,r9,"$ZodUnknown",0,rH,"$ZodVoid",0,rY,"$ZodXID",0,rw,"$ZodXor",0,ie,"clone",0,Z,"isValidBase64",0,rz,"isValidBase64URL",0,rP,"isValidJWT",0,rD],74452),e.i(74452),e.i(75999),e.i(16891);var dl=s7,dh=s9;e.i(10429),e.s(["ar",0,iF,"az",0,iW,"be",0,iG,"bg",0,iX,"ca",0,iQ,"cs",0,i1,"da",0,i6,"de",0,i3,"en",0,i5,"eo",0,i7,"es",0,nt,"fa",0,ni,"fi",0,na,"fr",0,ns,"frCA",0,nf,"he",0,nd,"hu",0,nh,"hy",0,ng,"id",0,ny,"is",0,nx,"it",0,nS,"ja",0,n$,"ka",0,nM,"kh",0,nO,"km",0,nA,"ko",0,nj,"lt",0,nT,"mk",0,nD,"ms",0,nC,"nl",0,nL,"no",0,nF,"ota",0,nW,"pl",0,nH,"ps",0,nV,"pt",0,nY,"ru",0,n1,"sl",0,n6,"sv",0,n3,"ta",0,n5,"th",0,n7,"tr",0,at,"ua",0,an,"uk",0,ai,"ur",0,ao,"uz",0,au,"vi",0,ac,"yo",0,ab,"zhCN",0,al,"zhTW",0,ap],38843);var dp=e.i(38843);e.i(9402),e.i(96425),e.i(37581),e.i(88323),e.s([],67516);var dm=e.i(67516);e.s(["$ZodAny",0,rG,"$ZodArray",0,r1,"$ZodAsyncError",0,n,"$ZodBase64",0,rU,"$ZodBase64URL",0,rT,"$ZodBigInt",0,rF,"$ZodBigIntFormat",0,rJ,"$ZodBoolean",0,rq,"$ZodCIDRv4",0,rN,"$ZodCIDRv6",0,rj,"$ZodCUID",0,ry,"$ZodCUID2",0,r_,"$ZodCatch",0,iE,"$ZodCheck",0,tV,"$ZodCheckBigIntFormat",0,t0,"$ZodCheckEndsWith",0,ri,"$ZodCheckGreaterThan",0,tX,"$ZodCheckIncludes",0,rt,"$ZodCheckLengthEquals",0,t8,"$ZodCheckLessThan",0,tH,"$ZodCheckLowerCase",0,t7,"$ZodCheckMaxLength",0,t4,"$ZodCheckMaxSize",0,t1,"$ZodCheckMimeType",0,ro,"$ZodCheckMinLength",0,t3,"$ZodCheckMinSize",0,t2,"$ZodCheckMultipleOf",0,tY,"$ZodCheckNumberFormat",0,tQ,"$ZodCheckOverwrite",0,rs,"$ZodCheckProperty",0,ra,"$ZodCheckRegex",0,t9,"$ZodCheckSizeEquals",0,t6,"$ZodCheckStartsWith",0,rr,"$ZodCheckStringFormat",0,t5,"$ZodCheckUpperCase",0,re,"$ZodCodec",0,ij,"$ZodCustom",0,iZ,"$ZodCustomStringFormat",0,rC,"$ZodDate",0,rQ,"$ZodDefault",0,iw,"$ZodDiscriminatedUnion",0,it,"$ZodE164",0,rR,"$ZodEmail",0,rm,"$ZodEmoji",0,rg,"$ZodEncodeError",0,a,"$ZodEnum",0,ip,"$ZodError",0,ev,"$ZodExactOptional",0,i_,"$ZodFile",0,ib,"$ZodFunction",0,iD,"$ZodGUID",0,rh,"$ZodIPv4",0,rE,"$ZodIPv6",0,rA,"$ZodISODate",0,r$,"$ZodISODateTime",0,rk,"$ZodISODuration",0,rM,"$ZodISOTime",0,rI,"$ZodIntersection",0,ir,"$ZodJWT",0,rB,"$ZodKSUID",0,rS,"$ZodLazy",0,iC,"$ZodLiteral",0,im,"$ZodMAC",0,rO,"$ZodMap",0,ic,"$ZodNaN",0,iA,"$ZodNanoID",0,rv,"$ZodNever",0,rX,"$ZodNonOptional",0,i$,"$ZodNull",0,rV,"$ZodNullable",0,ix,"$ZodNumber",0,rZ,"$ZodNumberFormat",0,rL,"$ZodObject",0,r3,"$ZodObjectJIT",0,r8,"$ZodOptional",0,iy,"$ZodPipe",0,iO,"$ZodPrefault",0,ik,"$ZodPromise",0,iB,"$ZodReadonly",0,iP,"$ZodRealError",0,ey,"$ZodRecord",0,iu,"$ZodRegistry",0,ay,"$ZodSet",0,il,"$ZodString",0,rd,"$ZodStringFormat",0,rl,"$ZodSuccess",0,iM,"$ZodSymbol",0,rW,"$ZodTemplateLiteral",0,iR,"$ZodTransform",0,ig,"$ZodTuple",0,io,"$ZodType",0,rc,"$ZodULID",0,rx,"$ZodURL",0,rb,"$ZodUUID",0,rp,"$ZodUndefined",0,rK,"$ZodUnion",0,r9,"$ZodUnknown",0,rH,"$ZodVoid",0,rY,"$ZodXID",0,rw,"$ZodXor",0,ie,"$brand",0,i,"$constructor",0,r,"$input",0,av,"$output",0,ag,"Doc",0,ru,"JSONSchema",0,dm,"JSONSchemaGenerator",0,s4,"NEVER",0,t,"TimePrecision",0,aK,"_any",0,on,"_array",0,oC,"_base64",0,aq,"_base64url",0,aF,"_bigint",0,a5,"_boolean",0,a3,"_catch",0,o3,"_check",0,sn,"_cidrv4",0,aZ,"_cidrv6",0,aL,"_coercedBigint",0,a9,"_coercedBoolean",0,a8,"_coercedDate",0,of,"_coercedNumber",0,aQ,"_coercedString",0,aS,"_cuid",0,az,"_cuid2",0,aU,"_custom",0,st,"_date",0,ou,"_decode",0,eP,"_decodeAsync",0,eB,"_default",0,o2,"_discriminatedUnion",0,oq,"_e164",0,aJ,"_email",0,ak,"_emoji",0,aN,"_encode",0,ez,"_encodeAsync",0,eR,"_endsWith",0,oN,"_enum",0,oG,"_file",0,oY,"_float32",0,a1,"_float64",0,a2,"_gt",0,oh,"_gte",0,op,"_guid",0,a$,"_includes",0,oA,"_int",0,a0,"_int32",0,a6,"_int64",0,a7,"_intersection",0,oF,"_ipv4",0,aD,"_ipv6",0,aB,"_isoDate",0,aG,"_isoDateTime",0,aV,"_isoDuration",0,aX,"_isoTime",0,aH,"_jwt",0,aW,"_ksuid",0,aR,"_lazy",0,o7,"_length",0,o$,"_literal",0,oX,"_lowercase",0,oM,"_lt",0,od,"_lte",0,ol,"_mac",0,aC,"_map",0,oK,"_max",0,ol,"_maxLength",0,oS,"_maxSize",0,o_,"_mime",0,oz,"_min",0,op,"_minLength",0,ok,"_minSize",0,ox,"_multipleOf",0,oy,"_nan",0,oc,"_nanoid",0,aj,"_nativeEnum",0,oH,"_negative",0,ob,"_never",0,oo,"_nonnegative",0,ov,"_nonoptional",0,o6,"_nonpositive",0,og,"_normalize",0,oP,"_null",0,oi,"_nullable",0,o1,"_number",0,aY,"_optional",0,o0,"_overwrite",0,oU,"_parse",0,e$,"_parseAsync",0,eM,"_pipe",0,o8,"_positive",0,om,"_promise",0,se,"_property",0,oj,"_readonly",0,o5,"_record",0,oW,"_refine",0,sr,"_regex",0,oI,"_safeDecode",0,eq,"_safeDecodeAsync",0,eK,"_safeEncode",0,eZ,"_safeEncodeAsync",0,eJ,"_safeParse",0,eA,"_safeParseAsync",0,eN,"_set",0,oV,"_size",0,ow,"_slugify",0,oB,"_startsWith",0,oO,"_string",0,aw,"_stringFormat",0,su,"_stringbool",0,ss,"_success",0,o4,"_superRefine",0,si,"_symbol",0,ot,"_templateLiteral",0,o9,"_toLowerCase",0,oR,"_toUpperCase",0,oD,"_transform",0,oQ,"_trim",0,oT,"_tuple",0,oJ,"_uint32",0,a4,"_uint64",0,oe,"_ulid",0,aP,"_undefined",0,or,"_union",0,oZ,"_unknown",0,oa,"_uppercase",0,oE,"_url",0,aO,"_uuid",0,aI,"_uuidv4",0,aM,"_uuidv6",0,aE,"_uuidv7",0,aA,"_void",0,os,"_xid",0,aT,"_xor",0,oL,"clone",0,Z,"config",0,s,"createStandardJSONSchemaMethod",0,sm,"createToJSONSchemaMethod",0,sp,"decode",0,eT,"decodeAsync",0,eC,"describe",0,sa,"encode",0,eU,"encodeAsync",0,eD,"extractDefs",0,sd,"finalize",0,sl,"flattenError",0,e_,"formatError",0,ex,"globalConfig",0,o,"globalRegistry",0,ax,"initializeContext",0,sf,"isValidBase64",0,rz,"isValidBase64URL",0,rP,"isValidJWT",0,rD,"locales",0,dp,"meta",0,so,"parse",0,eI,"parseAsync",0,eE,"prettifyError",0,ek,"process",0,sc,"regexes",0,dh,"registry",0,a_,"safeDecode",0,eF,"safeDecodeAsync",0,eV,"safeEncode",0,eL,"safeEncodeAsync",0,eW,"safeParse",0,eO,"safeParseAsync",0,ej,"toDotPath",0,eS,"toJSONSchema",0,s6,"treeifyError",0,ew,"util",0,dl,"version",0,rf],13794);var db=e.i(13794);e.i(17033),e.i(48774),e.i(31364),e.s(["$brand",0,i,"ZodFirstPartyTypeKind",0,s5,"ZodIssueCode",0,c4,"config",0,s,"getErrorMap",0,c8,"setErrorMap",0,c3],29375),e.i(29375);var s9=s9,s7=s7,dg=dp,dv=c9,dy=e.i(12590);e.s(["$brand",0,i,"$input",0,av,"$output",0,ag,"NEVER",0,t,"TimePrecision",0,aK,"ZodAny",0,fU,"ZodArray",0,fF,"ZodBase64",0,fe,"ZodBase64URL",0,fr,"ZodBigInt",0,fS,"ZodBigIntFormat",0,f$,"ZodBoolean",0,fx,"ZodCIDRv4",0,u8,"ZodCIDRv6",0,u9,"ZodCUID",0,uF,"ZodCUID2",0,uW,"ZodCatch",0,cA,"ZodCodec",0,cP,"ZodCustom",0,cK,"ZodCustomStringFormat",0,fu,"ZodDate",0,fL,"ZodDefault",0,cx,"ZodDiscriminatedUnion",0,f1,"ZodE164",0,fn,"ZodEmail",0,uE,"ZodEmoji",0,uC,"ZodEnum",0,ca,"ZodError",0,uf,"ZodExactOptional",0,cb,"ZodFile",0,cc,"ZodFirstPartyTypeKind",0,s5,"ZodFunction",0,cJ,"ZodGUID",0,uO,"ZodIPv4",0,u0,"ZodIPv6",0,u4,"ZodISODate",0,ur,"ZodISODateTime",0,ue,"ZodISODuration",0,uo,"ZodISOTime",0,un,"ZodIntersection",0,f6,"ZodIssueCode",0,c4,"ZodJWT",0,fo,"ZodKSUID",0,uY,"ZodLazy",0,cZ,"ZodLiteral",0,cu,"ZodMAC",0,u2,"ZodMap",0,ct,"ZodNaN",0,cN,"ZodNanoID",0,uL,"ZodNever",0,fD,"ZodNonOptional",0,c$,"ZodNull",0,fj,"ZodNullable",0,cv,"ZodNumber",0,fh,"ZodNumberFormat",0,fm,"ZodObject",0,fK,"ZodOptional",0,cp,"ZodPipe",0,cz,"ZodPrefault",0,cS,"ZodPromise",0,cq,"ZodReadonly",0,cR,"ZodRealError",0,uc,"ZodRecord",0,f5,"ZodSet",0,ci,"ZodString",0,u$,"ZodStringFormat",0,uM,"ZodSuccess",0,cM,"ZodSymbol",0,fE,"ZodTemplateLiteral",0,cB,"ZodTransform",0,cl,"ZodTuple",0,f3,"ZodType",0,uS,"ZodULID",0,uV,"ZodURL",0,uR,"ZodUUID",0,uj,"ZodUndefined",0,fO,"ZodUnion",0,fX,"ZodUnknown",0,fT,"ZodVoid",0,fC,"ZodXID",0,uH,"ZodXor",0,fQ,"_ZodString",0,uk,"_default",0,cw,"_function",0,cW,"any",0,fP,"array",0,fJ,"base64",0,ft,"base64url",0,fi,"bigint",0,fk,"boolean",0,fw,"catch",0,cO,"check",0,cV,"cidrv4",0,u5,"cidrv6",0,u7,"clone",0,Z,"codec",0,cT,"coerce",0,dy,"config",0,s,"core",0,db,"cuid",0,uJ,"cuid2",0,uK,"custom",0,cG,"date",0,fq,"decode",0,ub,"decodeAsync",0,uv,"describe",0,cY,"discriminatedUnion",0,f2,"e164",0,fa,"email",0,uA,"emoji",0,uZ,"encode",0,um,"encodeAsync",0,ug,"endsWith",0,oN,"enum",0,co,"exactOptional",0,cg,"file",0,cd,"flattenError",0,e_,"float32",0,fg,"float64",0,fv,"formatError",0,ex,"fromJSONSchema",0,da,"function",0,cW,"getErrorMap",0,c8,"globalRegistry",0,ax,"gt",0,oh,"gte",0,op,"guid",0,uN,"hash",0,fl,"hex",0,fd,"hostname",0,fc,"httpUrl",0,uB,"includes",0,oA,"instanceof",0,c0,"int",0,fb,"int32",0,fy,"int64",0,fI,"intersection",0,f4,"ipv4",0,u1,"ipv6",0,u3,"iso",0,dv,"json",0,c2,"jwt",0,fs,"keyof",0,fW,"ksuid",0,uQ,"lazy",0,cL,"length",0,o$,"literal",0,cf,"locales",0,dg,"looseObject",0,fH,"looseRecord",0,ce,"lowercase",0,oM,"lt",0,od,"lte",0,ol,"mac",0,u6,"map",0,cr,"maxLength",0,oS,"maxSize",0,o_,"meta",0,cQ,"mime",0,oz,"minLength",0,ok,"minSize",0,ox,"multipleOf",0,oy,"nan",0,cj,"nanoid",0,uq,"nativeEnum",0,cs,"negative",0,ob,"never",0,fB,"nonnegative",0,ov,"nonoptional",0,cI,"nonpositive",0,og,"normalize",0,oP,"null",0,fz,"nullable",0,cy,"nullish",0,c_,"number",0,fp,"object",0,fV,"optional",0,cm,"overwrite",0,oU,"parse",0,ud,"parseAsync",0,ul,"partialRecord",0,f7,"pipe",0,cU,"positive",0,om,"prefault",0,ck,"preprocess",0,c6,"prettifyError",0,ek,"promise",0,cF,"property",0,oj,"readonly",0,cD,"record",0,f9,"refine",0,cH,"regex",0,oI,"regexes",()=>s9,"registry",0,a_,"safeDecode",0,u_,"safeDecodeAsync",0,uw,"safeEncode",0,uy,"safeEncodeAsync",0,ux,"safeParse",0,uh,"safeParseAsync",0,up,"set",0,cn,"setErrorMap",0,c3,"size",0,ow,"slugify",0,oB,"startsWith",0,oO,"strictObject",0,fG,"string",0,uI,"stringFormat",0,ff,"stringbool",0,c1,"success",0,cE,"superRefine",0,cX,"symbol",0,fA,"templateLiteral",0,cC,"toJSONSchema",0,s6,"toLowerCase",0,oR,"toUpperCase",0,oD,"transform",0,ch,"treeifyError",0,ew,"trim",0,oT,"tuple",0,f8,"uint32",0,f_,"uint64",0,fM,"ulid",0,uG,"undefined",0,fN,"union",0,fY,"unknown",0,fR,"uppercase",0,oE,"url",0,uD,"util",()=>s7,"uuid",0,uz,"uuidv4",0,uU,"uuidv6",0,uP,"uuidv7",0,uT,"void",0,fZ,"xid",0,uX,"xor",0,f0],13283);var d_=e.i(13283),d_=d_;let dx={claude:["anthropic","bedrock","vertex","foundry"],codex:["openai","azure-openai"],gemini:["google","gemini-vertex"]};function dw(e){return dx[e][0]}function dS(e,t){return dx[e].includes(t)}let dk=d_.object({provider:d_.literal("anthropic"),apiKey:d_.string().min(1)}),d$=d_.object({authMode:d_.literal("access_key"),awsAccessKeyId:d_.string().min(1),awsSecretAccessKey:d_.string().min(1),awsSessionToken:d_.string().min(1).optional()}),dI=d_.object({authMode:d_.literal("bearer_token"),awsBearerTokenBedrock:d_.string().min(1)}),dM=d_.object({authMode:d_.literal("profile"),awsProfile:d_.string().min(1)}),dE=d_.object({defaultOpusModel:d_.string().min(1).optional(),defaultSonnetModel:d_.string().min(1).optional(),defaultHaikuModel:d_.string().min(1).optional()}),dA={bedrock:{defaultOpusModel:"us.anthropic.claude-opus-4-7",defaultSonnetModel:"us.anthropic.claude-sonnet-4-6",defaultHaikuModel:"us.anthropic.claude-haiku-4-5-20251001-v1:0"},vertex:{defaultOpusModel:"claude-opus-4-7",defaultSonnetModel:"claude-sonnet-4-6",defaultHaikuModel:"claude-haiku-4-5@20251001"},foundry:{defaultOpusModel:"claude-opus-4-7",defaultSonnetModel:"claude-sonnet-4-6",defaultHaikuModel:"claude-haiku-4-5"}},dO=d_.object({bedrockBaseUrl:d_.string().url().optional(),useMantle:d_.boolean().optional(),mantleBaseUrl:d_.string().url().optional(),skipMantleAuth:d_.boolean().optional(),smallFastModelAwsRegion:d_.string().min(1).optional()}),dN=d_.discriminatedUnion("authMode",[d$,dI,dM]).and(d_.object({provider:d_.literal("bedrock"),awsRegion:d_.string().min(1)})).and(dO).and(dE),dj=d_.object({provider:d_.literal("vertex"),projectId:d_.string().min(1),region:d_.string().min(1),credentialsFile:d_.string().min(1).optional(),vertexBaseUrl:d_.string().url().optional()}).and(dE),dz=d_.object({provider:d_.literal("foundry"),resource:d_.string().min(1).optional(),baseUrl:d_.string().url().optional(),apiKey:d_.string().min(1).optional()}).and(dE).refine(e=>!!e.resource!=!!e.baseUrl,{message:"Foundry config requires exactly one of `resource` or `baseUrl`."}),dU=d_.object({provider:d_.literal("openai"),apiKey:d_.string().min(1)}),dP="2025-04-01-preview",dT=d_.object({provider:d_.literal("azure-openai"),resource:d_.string().min(1),apiKey:d_.string().min(1),apiVersion:d_.string().min(1).optional(),deploymentName:d_.string().min(1).optional()}),dR=d_.object({provider:d_.literal("google"),apiKey:d_.string().min(1)}),dD=d_.object({authMode:d_.literal("adc")}),dB=d_.object({authMode:d_.literal("service_account"),credentialsFile:d_.string().min(1)}),dC=d_.object({authMode:d_.literal("api_key"),apiKey:d_.string().min(1)}),dZ=d_.discriminatedUnion("authMode",[dD,dB,dC]).and(d_.object({provider:d_.literal("gemini-vertex"),projectId:d_.string().min(1),location:d_.string().min(1)}));d_.union([dk,dN,dj,dz,dU,dT,dR,dZ]);let dL=/^sk-ant-[A-Za-z0-9_-]{20,}$/,dq=/^sk-[A-Za-z0-9_-]{30,}$/,dF=/^AIza[0-9A-Za-z_-]{35}$/;function dJ(e){return dL.test(e.trim())}function dW(e){let t=e.trim();return!/^sk-ant-/.test(t)&&dq.test(t)}function dK(e){return dF.test(e.trim())}function dV(e,t){if(!dS(e,t.provider))return`Provider "${t.provider}" is not valid for the ${e} backend.`;switch(t.provider){case"anthropic":if(!dJ(t.apiKey))return"Expected an Anthropic API key beginning with `sk-ant-…`.";return null;case"openai":if(!dW(t.apiKey))return"Expected an OpenAI API key beginning with `sk-…` (not `sk-ant-…`).";return null;case"azure-openai":if(!t.resource.trim()||/\s/.test(t.resource))return"Azure resource name looks malformed (no spaces; e.g. `my-foundry-resource`).";if(!t.apiKey.trim())return"Azure OpenAI API key is required.";return null;case"google":if(!dK(t.apiKey))return"Expected a Google API key beginning with `AIza…` (39 chars total).";return null;case"bedrock":if(t.awsRegion.length<2||/\s/.test(t.awsRegion))return"AWS region looks malformed (e.g. expected `us-east-1`).";if("access_key"===t.authMode&&!/^[A-Z0-9]{16,}$/.test(t.awsAccessKeyId))return"AWS access key id should be uppercase alphanumeric (≥ 16 chars, e.g. `AKIA…` or `ASIA…`).";return null;case"vertex":if(t.projectId.length<4||/\s/.test(t.projectId))return"GCP project id looks malformed.";if(t.region.length<2||/\s/.test(t.region))return"Vertex region looks malformed (e.g. `us-east5`, `global`, or `eu`).";return null;case"foundry":if(!t.resource&&!t.baseUrl)return"Foundry config requires either a resource name or a base URL.";if(t.resource&&t.baseUrl)return"Foundry config: set EITHER `resource` OR `baseUrl`, not both.";if(t.baseUrl)try{let e=new URL(t.baseUrl);if("https:"!==e.protocol&&"http:"!==e.protocol)return"Foundry base URL must be an http(s) URL."}catch{return"Foundry base URL is not a valid URL."}return null;case"gemini-vertex":if(t.projectId.length<4||/\s/.test(t.projectId))return"GCP project id looks malformed.";if(t.location.length<2||/\s/.test(t.location))return"GCP location looks malformed (e.g. `us-central1`).";if("api_key"===t.authMode&&!dK(t.apiKey))return"Vertex API key should start with `AIza…` (39 chars total).";return null}}e.s(["DEFAULT_AZURE_OPENAI_API_VERSION",0,dP,"RECOMMENDED_PINNED_MODELS_BY_PROVIDER",0,dA,"defaultApiKeyProvider",0,dw,"isPlausibleAnthropicApiKey",0,dJ,"isPlausibleGeminiApiKey",0,dK,"isPlausibleOpenAiApiKey",0,dW,"validateBackendApiKeyConfigFormat",0,dV],28619);var d_=d_;let dG=d_.enum(["slack","telegram","discord","whatsapp"]);d_.object({content:d_.string(),expectedMtime:d_.string().optional()});let dH=/^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}$/;d_.object({section:d_.string().optional(),mode:d_.enum(["append","replace","clear","clear_before","append_to_file"]),content:d_.string().optional(),cutoff:d_.string().optional(),maxEntries:d_.number().int().positive().optional()}).refine(e=>"append_to_file"===e.mode||void 0!==e.section&&e.section.length>0,{message:"section is required for all modes except append_to_file"}).refine(e=>"append"===e.mode||void 0===e.maxEntries,{message:"maxEntries is only valid with mode 'append'"}).refine(e=>"clear_before"===e.mode||void 0===e.cutoff,{message:"cutoff is only valid with mode 'clear_before'"}).refine(e=>"clear_before"!==e.mode||void 0!==e.cutoff&&dH.test(e.cutoff),{message:"clear_before requires cutoff in 'YYYY-MM-DD HH:MM:SS' format (zero-padded)"}),d_.object({message:d_.string(),platform:dG.optional(),platforms:d_.array(dG).optional(),priority:d_.enum(["critical","high","normal","low"]).optional()}).refine(e=>!(e.platform&&e.platforms),{message:"Use either 'platform' or 'platforms', not both"}),d_.object({time:d_.string(),taskType:d_.string(),description:d_.string().min(20,"Description must be at least 20 characters. The wake-up agent has NO memory — the description is its only context."),prompt:d_.string().min(20,"Prompt must be at least 20 characters. The wake-up agent has NO memory — the prompt is its only context.").optional(),model:d_.enum(["sonnet","opus"]).optional(),taskContext:d_.record(d_.string(),d_.unknown()).optional()}),d_.object({time:d_.string().optional(),description:d_.string().min(20,"Description must be at least 20 characters. The wake-up agent has NO memory — the description is its only context.").optional(),prompt:d_.union([d_.string().min(20,"Prompt must be at least 20 characters. The wake-up agent has NO memory — the prompt is its only context."),d_.null()]).optional(),message:d_.string().min(1).optional(),model:d_.enum(["sonnet","opus"]).optional(),taskContext:d_.record(d_.string(),d_.unknown()).optional()}).refine(e=>Object.values(e).some(e=>void 0!==e),{message:"At least one field must be provided for update"}).refine(e=>void 0===e.description||void 0===e.message,{message:"Cannot set both 'description' and 'message'. Use 'description' for wake-up tasks, 'message' for dm."}).refine(e=>void 0===e.prompt||void 0===e.message,{message:"Cannot set both 'prompt' and 'message'. 'prompt' is only valid for non-dm schedules."}),d_.object({time:d_.string(),message:d_.string().min(1,"Message cannot be empty"),platform:dG.optional(),platforms:d_.array(dG).optional(),importance:d_.enum(["transient","normal","strategic"]).optional()}).refine(e=>!(e.platform&&e.platforms),{message:"Use either 'platform' or 'platforms', not both"}),d_.object({actionType:d_.string(),detail:d_.string(),result:d_.enum(["success","failed","partial","skipped"])});let dX=d_.string().min(1,"Skill name cannot be empty").max(64,"Skill name must be at most 64 characters").regex(/^[a-z0-9][a-z0-9-]*$/,"Skill name must be kebab-case (lowercase letters, digits, hyphens) and start with a letter or digit"),dY=d_.string().min(1,"description is required").max(500,"description must be at most 500 characters").refine(e=>!/[\r\n]/.test(e),{message:"description cannot contain newlines"}),dQ=d_.array(d_.string().min(1).max(200).refine(e=>!/[\r\n]/.test(e),{message:"tool entries cannot contain newlines"})).max(32,"at most 32 allowed-tools entries");d_.object({name:dX,description:dY,content:d_.string().min(1,"content cannot be empty"),allowedTools:dQ.optional()}),d_.object({description:dY.optional(),content:d_.string().min(1,"content cannot be empty").optional(),allowedTools:dQ.optional()}).refine(e=>void 0!==e.description||void 0!==e.content||void 0!==e.allowedTools,{message:"At least one of 'description', 'content', or 'allowedTools' must be provided"}),d_.object({name:d_.string(),description:d_.string(),builtin:d_.boolean(),updatedAt:d_.string()}),d_.object({name:d_.string(),description:d_.string(),content:d_.string(),allowedTools:d_.array(d_.string()),builtin:d_.boolean(),updatedAt:d_.string()});let d0={description:d_.string().max(1e4).optional(),location:d_.string().max(1e3).optional(),reminders:d_.object({useDefault:d_.boolean(),overrides:d_.array(d_.object({method:d_.enum(["email","popup"]),minutes:d_.number().int().min(0).max(40320)})).max(5).optional()}).optional(),recurrence:d_.array(d_.string().max(500)).max(5).optional(),attendees:d_.array(d_.object({email:d_.string().email()})).max(100).optional(),visibility:d_.enum(["default","public","private","confidential"]).optional()};d_.object({summary:d_.string().min(1).max(1e3),start:d_.string().min(1),end:d_.string().min(1),...d0}),d_.object({summary:d_.string().min(1).max(1e3).optional(),start:d_.string().min(1).optional(),end:d_.string().min(1).optional(),...d0}).refine(e=>Object.values(e).some(e=>void 0!==e),{message:"At least one field must be provided for update"}),d_.object({timeMin:d_.string().min(1),timeMax:d_.string().min(1),calendarIds:d_.array(d_.string()).min(1).max(50).optional()});let d1=/^\d{2}:\d{2}$/,d2=d_.object({frequency:d_.enum(["daily","weekly","monthly"]),time:d_.string().regex(d1,"time must be HH:MM format"),timezone:d_.string().min(1).optional(),daysOfWeek:d_.array(d_.number().int().min(0).max(6)).min(1).max(7).optional(),daysOfMonth:d_.array(d_.number().int().min(1).max(31)).min(1).max(31).optional()}).refine(e=>"weekly"!==e.frequency||void 0!==e.daysOfWeek&&e.daysOfWeek.length>0,{message:"daysOfWeek is required for weekly frequency"}).refine(e=>"monthly"!==e.frequency||void 0!==e.daysOfMonth&&e.daysOfMonth.length>0,{message:"daysOfMonth is required for monthly frequency"}).refine(e=>"daily"!==e.frequency||void 0===e.daysOfWeek,{message:"daysOfWeek is not allowed for daily frequency"}).refine(e=>"daily"!==e.frequency||void 0===e.daysOfMonth,{message:"daysOfMonth is not allowed for daily frequency"}).refine(e=>"weekly"!==e.frequency||void 0===e.daysOfMonth,{message:"daysOfMonth is not allowed for weekly frequency"}).refine(e=>"monthly"!==e.frequency||void 0===e.daysOfWeek,{message:"daysOfWeek is not allowed for monthly frequency"});d_.object({taskType:d_.string().min(1),description:d_.string().min(20,"Description must be at least 20 characters. The wake-up agent has NO memory — the description is its only context."),prompt:d_.string().min(20,"Prompt must be at least 20 characters. The wake-up agent has NO memory — the prompt is its only context.").optional(),recurrenceRule:d2,model:d_.enum(["sonnet","opus"]).optional(),taskContext:d_.record(d_.string(),d_.unknown()).optional()}),d_.object({description:d_.string().min(20,"Description must be at least 20 characters.").optional(),prompt:d_.union([d_.string().min(20,"Prompt must be at least 20 characters."),d_.null()]).optional(),recurrenceRule:d2.optional(),model:d_.enum(["sonnet","opus"]).optional(),taskContext:d_.record(d_.string(),d_.unknown()).optional(),enabled:d_.boolean().optional()}).refine(e=>Object.values(e).some(e=>void 0!==e),{message:"At least one field must be provided for update"});let d6=/^([01]\d|2[0-3]):[0-5]\d$/,d4=d_.enum(["git"]),d3=d_.enum(["cron.daily","cron.weekly"]);d_.object({domain:d4,eventType:d3,prompt:d_.string().min(20,"Prompt must be at least 20 characters. The trigger run starts with no chat memory — the prompt is its only instruction."),time:d_.string().regex(d6,"time must be HH:MM format"),daysOfWeek:d_.array(d_.number().int().min(0).max(6)).min(1).max(7).optional()}).refine(e=>"cron.weekly"!==e.eventType||void 0!==e.daysOfWeek&&e.daysOfWeek.length>0,{message:"daysOfWeek is required for cron.weekly"}),d_.object({prompt:d_.string().min(20,"Prompt must be at least 20 characters.").optional(),enabled:d_.boolean().optional(),time:d_.string().regex(d6,"time must be HH:MM format").optional(),daysOfWeek:d_.array(d_.number().int().min(0).max(6)).min(1).max(7).optional()}).refine(e=>Object.values(e).some(e=>void 0!==e),{message:"At least one field must be provided for update"});let d8="dashboard_chat,owner_dm";e.s(["CHAT_SIDEBAR_SCOPE_PARAM",0,d8],41460);var d_=d_;let d5=["claude","codex","gemini"];function d9(e){return d5.includes(e)}function d7(){return d5}e.s(["BACKEND_IDS",0,d5,"getBackendIds",0,d7,"isBackendId",0,d9],38082);let le=["gmail","google_calendar","notion","git","github","outlook_mail","outlook_calendar"],lt=["direct","delegated","disabled"];function lr(e){return{toolNamespace:e,requiredCapabilities:[],optionalCapabilities:[],capabilityTools:{},destructiveTools:[]}}let li={gmail:{key:"gmail",displayName:"Gmail",supportedModes:["direct","delegated","disabled"],directSetup:{credentialKeys:["googleCredentialsJson","googleTokenJson"],helpUrl:"https://developers.google.com/workspace/guides/create-credentials"},backendConnectors:{claude:{toolNamespace:"mcp__claude_ai_Gmail__",requiredCapabilities:["search","read","draft","label"],optionalCapabilities:["draft","label","create_label"],capabilityTools:{search:["search_threads"],read:["get_thread"],draft:["create_draft","list_drafts"],label:["label_message","label_thread","unlabel_message","unlabel_thread","list_labels"],create_label:["create_label"]},destructiveTools:["label_message","label_thread","unlabel_message","unlabel_thread","create_label"]},codex:{toolNamespace:"mcp__codex_apps__gmail._",requiredCapabilities:["search","read","draft","label","send"],optionalCapabilities:["draft","label","create_label","update_draft","send","forward","delete","read_attachment","batch"],capabilityTools:{search:["search_emails","search_email_ids"],read:["read_email","read_email_thread"],draft:["create_draft","list_drafts"],update_draft:["update_draft"],send:["send_email","send_draft"],forward:["forward_emails"],label:["apply_labels_to_emails","list_labels","bulk_label_matching_emails"],create_label:["create_label"],delete:["delete_emails","archive_emails"],read_attachment:["read_attachment"],batch:["batch_modify_email","batch_read_email","batch_read_email_threads"]},destructiveTools:["send_email","send_draft","forward_emails","delete_emails","archive_emails","apply_labels_to_emails","bulk_label_matching_emails","create_label","batch_modify_email"]},gemini:{toolNamespace:"mcp_google-workspace_gmail.",requiredCapabilities:["search","read","draft","label","send"],optionalCapabilities:["draft","label","create_label","send","read_attachment","batch"],capabilityTools:{search:["search"],read:["get"],draft:["createDraft"],send:["send","sendDraft"],label:["modify","modifyThread","listLabels"],create_label:["createLabel"],read_attachment:["downloadAttachment"],batch:["batchModify"]},destructiveTools:["send","sendDraft","modify","modifyThread","createLabel","batchModify"]}},skillsTouched:["mail"],taskFlowsTouched:["routine.hourly_check"],observersTouched:[],apiRoutesTouched:[],deniedToolsAppliesToSkills:["mail"]},google_calendar:{key:"google_calendar",displayName:"Google Calendar",supportedModes:["direct","delegated","disabled"],directSetup:{credentialKeys:["googleCredentialsJson","googleTokenJson"],helpUrl:"https://developers.google.com/workspace/guides/create-credentials"},backendConnectors:{claude:{toolNamespace:"mcp__claude_ai_Google_Calendar__",requiredCapabilities:["list_events","get_event","create_event"],optionalCapabilities:["list_events","get_event","create_event","update_event","delete_event","respond_to_event","suggest_time","list_calendars"],capabilityTools:{list_events:["list_events"],get_event:["get_event"],create_event:["create_event"],update_event:["update_event"],delete_event:["delete_event"],respond_to_event:["respond_to_event"],suggest_time:["suggest_time"],list_calendars:["list_calendars"]},destructiveTools:["create_event","update_event","delete_event","respond_to_event"]},codex:{toolNamespace:"mcp__codex_apps__google_calendar._",requiredCapabilities:["search","read","create_event"],optionalCapabilities:["search","read","create_event","update_event","delete_event","respond_event","get_availability","batch_read"],capabilityTools:{search:["search","search_events"],read:["read_event","fetch"],create_event:["create_event"],update_event:["update_event"],delete_event:["delete_event"],respond_event:["respond_event"],get_availability:["get_availability"],batch_read:["batch_read_event"]},destructiveTools:["create_event","update_event","delete_event","respond_event"]},gemini:{toolNamespace:"mcp_google-workspace_calendar.",requiredCapabilities:["list_events","get_event","create_event"],optionalCapabilities:["list_events","get_event","create_event","update_event","delete_event","respond_to_event","find_free_time","list_calendars"],capabilityTools:{list_events:["listEvents"],get_event:["getEvent"],create_event:["createEvent"],update_event:["updateEvent"],delete_event:["deleteEvent"],respond_to_event:["respondToEvent"],find_free_time:["findFreeTime"],list_calendars:["list"]},destructiveTools:["createEvent","updateEvent","deleteEvent","respondToEvent"]}},skillsTouched:["external-services"],taskFlowsTouched:["routine.hourly_check"],observersTouched:["calendar"],apiRoutesTouched:["/api/calendar"],deniedToolsAppliesToSkills:["external-services"]},notion:{key:"notion",displayName:"Notion",supportedModes:["direct","delegated","disabled"],directSetup:{credentialKeys:["notionApiKey"],helpUrl:"https://developers.notion.com/docs/create-a-notion-integration"},backendConnectors:{claude:{toolNamespace:"mcp__claude_ai_Notion__",requiredCapabilities:["search","read","create_page","update_properties","patch_content","archive"],optionalCapabilities:["search","read","create_page","update_properties","patch_content","replace_content","archive","comments","duplicate_page","move_page","apply_template","schema_admin","users","teams"],capabilityTools:{search:["notion-search"],read:["notion-fetch"],create_page:["notion-create-pages"],update_properties:["notion-update-page"],patch_content:["notion-update-page"],replace_content:["notion-update-page"],archive:["notion-update-page"],comments:["notion-create-comment","notion-get-comments"],duplicate_page:["notion-duplicate-page"],move_page:["notion-move-pages"],apply_template:["notion-update-page"],schema_admin:["notion-create-database","notion-update-data-source","notion-create-view","notion-update-view"],users:["notion-get-users"],teams:["notion-get-teams"]},destructiveTools:["notion-create-pages","notion-update-page","notion-duplicate-page","notion-move-pages","notion-create-comment","notion-create-database","notion-update-data-source","notion-create-view","notion-update-view"]},codex:{toolNamespace:"mcp__codex_apps__notion._",requiredCapabilities:["search","read","create_page","update_properties","patch_content","archive"],optionalCapabilities:["search","read","create_page","update_properties","patch_content","replace_content","archive","comments","duplicate_page","move_page","apply_template","schema_admin","users","teams","query_data_sources","query_meeting_notes"],capabilityTools:{search:["search"],read:["fetch"],create_page:["notion_create_pages"],update_properties:["notion_update_page"],patch_content:["notion_update_page"],replace_content:["notion_update_page"],archive:["notion_update_page"],comments:["notion_create_comment","notion_get_comments"],duplicate_page:["notion_duplicate_page"],move_page:["notion_move_pages"],apply_template:["notion_update_page"],schema_admin:["notion_create_database","notion_update_data_source","notion_create_view","notion_update_view"],users:["notion_get_users"],teams:["notion_get_teams"],query_data_sources:["notion_query_data_sources"],query_meeting_notes:["notion_query_meeting_notes"]},destructiveTools:["notion_create_pages","notion_update_page","notion_duplicate_page","notion_move_pages","notion_create_comment","notion_create_database","notion_update_data_source","notion_create_view","notion_update_view"]},gemini:{toolNamespace:"mcp_notion_",requiredCapabilities:["search","read","create_page","update_properties","patch_content","archive"],optionalCapabilities:["search","read","create_page","update_properties","patch_content","replace_content","archive","comments","duplicate_page","move_page","apply_template","schema_admin","users","teams"],capabilityTools:{search:["notion-search"],read:["notion-fetch"],create_page:["notion-create-pages"],update_properties:["notion-update-page"],patch_content:["notion-update-page"],replace_content:["notion-update-page"],archive:["notion-update-page"],comments:["notion-create-comment","notion-get-comments"],duplicate_page:["notion-duplicate-page"],move_page:["notion-move-pages"],apply_template:["notion-update-page"],schema_admin:["notion-create-database","notion-update-data-source","notion-create-view","notion-update-view"],users:["notion-get-users"],teams:["notion-get-teams"]},destructiveTools:["notion-create-pages","notion-update-page","notion-duplicate-page","notion-move-pages","notion-create-comment","notion-create-database","notion-update-data-source","notion-create-view","notion-update-view"]}},skillsTouched:["notion"],taskFlowsTouched:["routine.hourly_check"],observersTouched:["notion-poller"],apiRoutesTouched:["/api/notion/query","/api/notion/search","/api/notion/pages"],sameBackendDropsSkillBody:["notion"]},git:{key:"git",displayName:"Git",supportedModes:["direct","delegated","disabled"],backendConnectors:{claude:lr("cli:git:claude:"),codex:lr("cli:git:codex:"),gemini:lr("cli:git:gemini:")},skillsTouched:[],taskFlowsTouched:[],observersTouched:["git"],apiRoutesTouched:[]},github:{key:"github",displayName:"GitHub",supportedModes:["direct","delegated","disabled"],backendConnectors:{claude:lr("cli:github:claude:"),codex:lr("cli:github:codex:"),gemini:lr("cli:github:gemini:")},skillsTouched:[],taskFlowsTouched:[],observersTouched:["github"],apiRoutesTouched:[]},outlook_mail:{key:"outlook_mail",displayName:"Outlook Mail",supportedModes:["direct","delegated","disabled"],userManagedConnector:!0,directSetup:{credentialKeys:["mail:outlook:client-config"],helpUrl:"https://learn.microsoft.com/en-us/entra/identity-platform/quickstart-register-app"},backendConnectors:{},skillsTouched:[],taskFlowsTouched:[],observersTouched:["mail-poller"],apiRoutesTouched:[]},outlook_calendar:{key:"outlook_calendar",displayName:"Outlook Calendar",supportedModes:["direct","delegated","disabled"],userManagedConnector:!0,directSetup:{credentialKeys:["mail:outlook:client-config"],helpUrl:"https://learn.microsoft.com/en-us/entra/identity-platform/quickstart-register-app"},backendConnectors:{},skillsTouched:[],taskFlowsTouched:[],observersTouched:[],apiRoutesTouched:["/api/calendar/outlook"]}},ln=d_.object({mode:d_.enum(lt),delegatedBackend:d_.enum(d5).optional().nullable().optional(),delegatedModel:d_.string().min(1).nullable().optional(),delegatedMaxTurns:d_.number().int().min(1).max(10).nullable().optional(),delegatedSyncEnabled:d_.boolean().optional(),deniedTools:d_.array(d_.string()).optional().default([]),lastChangedAt:d_.string()}).superRefine((e,t)=>{"delegated"!==e.mode||e.delegatedBackend||t.addIssue({code:d_.ZodIssueCode.custom,path:["delegatedBackend"],message:"delegatedBackend is required when mode is 'delegated'"})});d_.object(Object.fromEntries(le.map(e=>[e,ln.optional()]))).strict(),d_.object({mode:d_.enum(lt),delegatedBackend:d_.enum(d5).optional().nullable(),delegatedModel:d_.string().min(1).nullable().optional(),delegatedMaxTurns:d_.number().int().min(1).max(10).nullable().optional(),delegatedSyncEnabled:d_.boolean().optional(),deniedTools:d_.array(d_.string()).optional()}).superRefine((e,t)=>{"delegated"!==e.mode||e.delegatedBackend||t.addIssue({code:d_.ZodIssueCode.custom,path:["delegatedBackend"],message:"delegatedBackend is required when mode is 'delegated'"}),"delegated"!==e.mode&&e.delegatedBackend&&t.addIssue({code:d_.ZodIssueCode.custom,path:["delegatedBackend"],message:"delegatedBackend must be omitted unless mode is 'delegated'"})}),e.s(["INTEGRATION_DESCRIPTORS",0,li],5957);var d_=d_;let la=1,lo=["getting-started","concepts","features","guides","troubleshooting","reference","glossary"],ls=["stable","beta","draft","deprecated"],lu=d_.string().min(1).max(160).regex(/^[a-z0-9]+(?:[-_][a-z0-9]+)*(?:\/[a-z0-9]+(?:[-_][a-z0-9]+)*)*$/,"slug must be lowercase kebab-case path segments separated by '/'"),lf=lu,lc=d_.string().min(1).max(64).regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/,"id must be lowercase kebab-case"),ld=d_.string().regex(/^\d{4}-\d{2}-\d{2}$/,"must be YYYY-MM-DD"),ll=d_.string().min(1).regex(/^\/[A-Za-z0-9\-_/?=&%.]*$/,"ui_anchors entries must look like a dashboard path");function lh(e){return e.toLowerCase().replace(/[^a-z0-9\s-]/g,"").trim().replace(/\s+/g,"-").replace(/-+/g,"-")}d_.object({schema_version:d_.literal(la),slug:lu,title:d_.string().min(1).max(200),id:lc.optional(),aliases:d_.array(d_.string().min(1).max(120)).max(32).optional(),category:d_.enum(lo),summary:d_.string().min(1).max(2e3),section:d_.string().min(1).max(64).optional(),tags:d_.array(d_.string().min(1).max(64)).max(32).optional(),status:d_.enum(ls).optional(),ask_examples:d_.array(d_.string().min(1).max(240)).max(16).optional(),locale:d_.string().min(2).max(16).optional(),created:ld.optional(),updated:ld.optional(),review_due:ld.optional(),supersedes:d_.array(lf).max(16).optional(),keywords:d_.array(d_.string().min(1).max(120)).max(32).optional(),related:d_.array(lf).max(32).optional(),prerequisites:d_.array(lf).max(16).optional(),ui_anchors:d_.array(ll).max(32).optional(),process_keys:d_.array(d_.string().min(1).max(120)).max(32).optional(),config_keys:d_.array(d_.string().min(1).max(120)).max(32).optional(),api_endpoints:d_.array(d_.string().min(1).max(160)).max(32).optional(),context_files:d_.array(d_.string().min(1).max(160)).max(32).optional(),extra:d_.record(d_.string(),d_.unknown()).optional()}).strict(),e.s(["slugifyAnchor",0,lh],45244);let lp=[{code:"en",englishName:"English",nativeName:"English"},{code:"ja",englishName:"Japanese",nativeName:"日本語"},{code:"zh",englishName:"Chinese",nativeName:"中文"},{code:"es",englishName:"Spanish",nativeName:"Español"},{code:"ko",englishName:"Korean",nativeName:"한국어"},{code:"fr",englishName:"French",nativeName:"Français"},{code:"de",englishName:"German",nativeName:"Deutsch"},{code:"pt",englishName:"Portuguese",nativeName:"Português"},{code:"it",englishName:"Italian",nativeName:"Italiano"},{code:"ru",englishName:"Russian",nativeName:"Русский"},{code:"ar",englishName:"Arabic",nativeName:"العربية"},{code:"hi",englishName:"Hindi",nativeName:"हिन्दी"},{code:"nl",englishName:"Dutch",nativeName:"Nederlands"},{code:"pl",englishName:"Polish",nativeName:"Polski"},{code:"tr",englishName:"Turkish",nativeName:"Türkçe"},{code:"vi",englishName:"Vietnamese",nativeName:"Tiếng Việt"},{code:"id",englishName:"Indonesian",nativeName:"Bahasa Indonesia"},{code:"th",englishName:"Thai",nativeName:"ไทย"}],lm=[...lp,{code:"ca",englishName:"Catalan",nativeName:"Català"},{code:"sv",englishName:"Swedish",nativeName:"Svenska"},{code:"fi",englishName:"Finnish",nativeName:"Suomi"},{code:"he",englishName:"Hebrew",nativeName:"עברית"},{code:"uk",englishName:"Ukrainian",nativeName:"Українська"},{code:"el",englishName:"Greek",nativeName:"Ελληνικά"},{code:"ms",englishName:"Malay",nativeName:"Bahasa Melayu"},{code:"cs",englishName:"Czech",nativeName:"Čeština"},{code:"ro",englishName:"Romanian",nativeName:"Română"},{code:"da",englishName:"Danish",nativeName:"Dansk"},{code:"hu",englishName:"Hungarian",nativeName:"Magyar"},{code:"ta",englishName:"Tamil",nativeName:"தமிழ்"},{code:"no",englishName:"Norwegian",nativeName:"Norsk"},{code:"ur",englishName:"Urdu",nativeName:"اردو"},{code:"hr",englishName:"Croatian",nativeName:"Hrvatski"},{code:"bg",englishName:"Bulgarian",nativeName:"Български"},{code:"lt",englishName:"Lithuanian",nativeName:"Lietuvių"},{code:"la",englishName:"Latin",nativeName:"Latina"},{code:"mi",englishName:"Maori",nativeName:"Māori"},{code:"ml",englishName:"Malayalam",nativeName:"മലയാളം"},{code:"cy",englishName:"Welsh",nativeName:"Cymraeg"},{code:"sk",englishName:"Slovak",nativeName:"Slovenčina"},{code:"te",englishName:"Telugu",nativeName:"తెలుగు"},{code:"fa",englishName:"Persian",nativeName:"فارسی"},{code:"lv",englishName:"Latvian",nativeName:"Latviešu"},{code:"bn",englishName:"Bengali",nativeName:"বাংলা"},{code:"sr",englishName:"Serbian",nativeName:"Српски"},{code:"az",englishName:"Azerbaijani",nativeName:"Azərbaycanca"},{code:"sl",englishName:"Slovenian",nativeName:"Slovenščina"},{code:"kn",englishName:"Kannada",nativeName:"ಕನ್ನಡ"},{code:"et",englishName:"Estonian",nativeName:"Eesti"},{code:"mk",englishName:"Macedonian",nativeName:"Македонски"},{code:"br",englishName:"Breton",nativeName:"Brezhoneg"},{code:"eu",englishName:"Basque",nativeName:"Euskara"},{code:"is",englishName:"Icelandic",nativeName:"Íslenska"},{code:"hy",englishName:"Armenian",nativeName:"Հայերեն"},{code:"ne",englishName:"Nepali",nativeName:"नेपाली"},{code:"mn",englishName:"Mongolian",nativeName:"Монгол"},{code:"bs",englishName:"Bosnian",nativeName:"Bosanski"},{code:"kk",englishName:"Kazakh",nativeName:"Қазақ"},{code:"sq",englishName:"Albanian",nativeName:"Shqip"},{code:"sw",englishName:"Swahili",nativeName:"Kiswahili"},{code:"gl",englishName:"Galician",nativeName:"Galego"},{code:"mr",englishName:"Marathi",nativeName:"मराठी"},{code:"pa",englishName:"Punjabi",nativeName:"ਪੰਜਾਬੀ"},{code:"si",englishName:"Sinhala",nativeName:"සිංහල"},{code:"km",englishName:"Khmer",nativeName:"ខ្មែរ"},{code:"sn",englishName:"Shona",nativeName:"ChiShona"},{code:"yo",englishName:"Yoruba",nativeName:"Yorùbá"},{code:"so",englishName:"Somali",nativeName:"Soomaali"},{code:"af",englishName:"Afrikaans",nativeName:"Afrikaans"},{code:"oc",englishName:"Occitan",nativeName:"Occitan"},{code:"ka",englishName:"Georgian",nativeName:"ქართული"},{code:"be",englishName:"Belarusian",nativeName:"Беларуская"},{code:"tg",englishName:"Tajik",nativeName:"Тоҷикӣ"},{code:"sd",englishName:"Sindhi",nativeName:"سنڌي"},{code:"gu",englishName:"Gujarati",nativeName:"ગુજરાતી"},{code:"am",englishName:"Amharic",nativeName:"አማርኛ"},{code:"yi",englishName:"Yiddish",nativeName:"ייִדיש"},{code:"lo",englishName:"Lao",nativeName:"ລາວ"},{code:"uz",englishName:"Uzbek",nativeName:"Oʻzbekcha"},{code:"fo",englishName:"Faroese",nativeName:"Føroyskt"},{code:"ht",englishName:"Haitian Creole",nativeName:"Kreyòl Ayisyen"},{code:"ps",englishName:"Pashto",nativeName:"پښتو"},{code:"tk",englishName:"Turkmen",nativeName:"Türkmen"},{code:"nn",englishName:"Norwegian Nynorsk",nativeName:"Nynorsk"},{code:"mt",englishName:"Maltese",nativeName:"Malti"},{code:"sa",englishName:"Sanskrit",nativeName:"संस्कृतम्"},{code:"lb",englishName:"Luxembourgish",nativeName:"Lëtzebuergesch"},{code:"my",englishName:"Myanmar",nativeName:"မြန်မာ"},{code:"bo",englishName:"Tibetan",nativeName:"བོད་སྐད"},{code:"tl",englishName:"Tagalog",nativeName:"Tagalog"},{code:"mg",englishName:"Malagasy",nativeName:"Malagasy"},{code:"as",englishName:"Assamese",nativeName:"অসমীয়া"},{code:"tt",englishName:"Tatar",nativeName:"Татарча"},{code:"haw",englishName:"Hawaiian",nativeName:"ʻŌlelo Hawaiʻi"},{code:"ln",englishName:"Lingala",nativeName:"Lingála"},{code:"ha",englishName:"Hausa",nativeName:"Hausa"},{code:"ba",englishName:"Bashkir",nativeName:"Башҡортса"},{code:"jw",englishName:"Javanese",nativeName:"Basa Jawa"},{code:"su",englishName:"Sundanese",nativeName:"Basa Sunda"},{code:"yue",englishName:"Cantonese",nativeName:"粵語"}];lm.map(e=>e.code),e.s(["VOICE_LANGUAGE_FULL",0,lm,"VOICE_LANGUAGE_TOP",0,lp],17900);var d_=d_;let lb=["work","travel","finance","personal","health","learning"],lg=new Set(lb);function lv(e){return"string"==typeof e&&lg.has(e)}let ly=["meeting","trip","receipt","project","book","note"],l_={meeting:"meetings",trip:"trips",receipt:"receipts",project:"projects",book:"books",note:"notes"},lx=new Map(ly.map(e=>[l_[e],e]));function lw(e){return lx.get(e)??null}let lS=64,lk=200,l$=120,lI=30,lM=3,lE=/[\n\r|]/;function lA(e){return e.normalize("NFC").trim().toLowerCase().replace(/\s+/g," ")}function lO(e,t){let r=e.normalize("NFC").trim();return r?r.length>t?{ok:!1,reason:{kind:"too-long",max:t}}:lE.test(r)?{ok:!1,reason:{kind:"forbidden-char"}}:{ok:!0,value:r}:{ok:!1,reason:{kind:"empty"}}}function lN(e,t){switch(t.kind){case"empty":return`${e} must not be empty after trimming`;case"too-long":return`${e} must be ≤ ${t.max} chars`;case"forbidden-char":return`${e} must not contain newline or pipe characters`}}function lj(e,t){return d_.string().transform((r,i)=>{let n=lO(r,t);return n.ok?n.value:(i.addIssue({code:d_.ZodIssueCode.custom,message:lN(e,n.reason)}),d_.NEVER)})}let lz=/^[a-z0-9][a-z0-9-]*$/,lU=100;function lP(e){return"string"==typeof e&&e.length>0&&e.length<=lU&&lz.test(e)}let lT=/(^|\/)\.\.(\/|$)/;function lR(e){if("string"!=typeof e||0===e.length||e.startsWith("/")||lT.test(e)||!e.endsWith("/"))return!1;let t=e.slice(0,-1).split("/");if(2!==t.length)return!1;let[r,i]=t;return!!r&&!!i&&!!lv(r)&&null!==lw(i)}let lD=/^mt_[1-9]\d*$/;function lB(e){return"string"==typeof e&&lD.test(e)}let lC=d_.object({id:d_.string().optional(),url:d_.string().url().optional(),external_id:d_.string().optional()}).passthrough();d_.object({type:d_.enum(ly),domain:d_.enum(lb),slug:d_.string().refine(lP,"invalid slug"),title:d_.string().min(1).max(200),status:d_.enum(["upcoming","active","done","archived"]).optional(),sources:d_.record(d_.string().min(1),lC).default({}),related:d_.array(d_.string()).default([]),tags:d_.array(d_.string()).default([]),created:d_.string().datetime(),last_synced_at:d_.string().datetime().optional()});let lZ=d_.object({category:lj("category",lS),sotApp:lj("sotApp",lS),mirrorPath:d_.string().min(1).max(255).nullable(),policy:d_.string().max(200).nullable(),writer:d_.enum(["agent","shared","user"])});d_.array(lZ),d_.object({id:d_.string().refine(lB,"must match /^mt_[1-9]\\d*$/"),intent:d_.string().min(1).max(lk),app:d_.string().min(1).max(lS),app_normalized:d_.string().min(1).max(lS),cadence:d_.string().min(1).max(200),output_path:d_.string().nullable().refine(e=>null===e||lR(e),"output_path must be `<domain>/<type-plural>/` (see §9.1)"),schedule_id:d_.number().int().positive(),last_run_at:d_.string().datetime().nullable(),last_result:d_.string().max(l$).nullable(),consecutive_failures:d_.number().int().nonnegative(),created_at:d_.string(),updated_at:d_.string()}),d_.object({intent:lj("intent",lk),app:lj("app",lS),cadence:d_.string().min(1).max(200),recurrenceRule:d2,output_path:d_.string().refine(e=>lR(e),"output_path must be `<domain>/<type-plural>/` (see §9.1)").optional()}),d_.object({intent:lj("intent",lk).optional(),cadence:d_.string().min(1).max(200).optional(),recurrenceRule:d2.optional(),output_path:d_.string().refine(e=>lR(e),"output_path must be `<domain>/<type-plural>/` (see §9.1)").nullable().optional()}).refine(e=>Object.keys(e).length>0,"PATCH body must specify at least one field"),d_.object({last_run_at:d_.string().datetime(),last_result:d_.string().max(l$),consecutive_failures:d_.number().int().nonnegative()}),e.s(["DOMAINS",0,lb,"ENTITY_TYPES",0,ly,"MANAGEMENT_ACTIVE_TASKS_SOFT_WARNING",0,lI,"MANAGEMENT_FAILURE_NOTIFY_THRESHOLD_DEFAULT",0,lM,"TYPE_PLURALS",0,l_,"normalizeAppLabel",0,lA,"pluralToType",0,lw],54530);var d_=d_;let lL=[/\bwhen\s+[a-z]+.*\bthen\b/i,/\bif\s+[a-z]+.*\b(do|then|then\s+do)\b/i,/\bbefore\s+[a-z]+.*\byou\s+(should|must|need)\b/i,/\b(must|always|never)\b/i];function lq(e){return lL.some(t=>t.test(e))}function lF(e){return!lq(e)}let lJ=/(<!--\s*(?:CURATION|safety|integration_modes|mode:|today_write_lock_id))|(<\s*integration_modes\b)/i;function lW(e){return!lJ.test(e)}let lK="convention rules cannot use imperative decision language (when/if/must/always/never). Restate as a description of the convention, not an instruction.",lV="free-text fields cannot embed CURATION/safety/integration_modes/mode markers",lG=["knowledge_layout","routing_table","frontmatter_schema","search_recipes","convention_notes","cross_references"],lH=/^[a-z0-9_./*-]+$/i,lX=e=>d_.string().max(e).refine(lW,{message:lV}),lY=(e,t)=>d_.string().min(e).max(t).refine(lW,{message:lV}).refine(lF,{message:lK}),lQ=d_.object({heading:d_.string().min(1).max(80).refine(lW,{message:lV}),contains:lY(5,200),example_entry:lX(200).optional(),writers:d_.array(d_.string().min(1).max(40)).max(10).optional()}),l0=d_.object({path:d_.string().regex(lH).max(120),purpose:lY(5,200),sections:d_.array(lQ).max(20)}),l1=d_.object({kind:d_.literal("knowledge_layout"),files:d_.array(l0).min(1).max(50)}),l2=d_.object({trigger_pattern:d_.string().min(5).max(200).refine(lW,{message:lV}),destination_path:d_.string().regex(lH).max(120),destination_section:d_.string().min(1).max(80),destination_mode:d_.enum(["append","replace","append_to_file","patch_section"]),note:d_.string().max(150).refine(lW,{message:lV}).refine(lF,{message:lK}).optional()}),l6=d_.object({kind:d_.literal("routing_table"),rules:d_.array(l2).min(1).max(50)}),l4=d_.object({key:d_.string().min(1).max(40),type:d_.enum(["string","iso-date","enum","array"]),example:d_.string().min(1).max(120)}),l3=d_.object({key:d_.string().min(1).max(40),purpose:d_.string().min(3).max(120).refine(lW,{message:lV}).refine(lF,{message:lK})}),l8=d_.object({glob:d_.string().min(1).max(80),required:d_.array(l4).max(10),conventional:d_.array(l3).max(20)}),l5=d_.object({kind:d_.literal("frontmatter_schema"),file_types:d_.array(l8).min(1).max(20)}),l9=d_.object({question_shape:lY(5,200),lookup_path:d_.string().regex(lH).max(120),lookup_section:d_.string().min(1).max(80).optional(),note:d_.string().max(200).refine(lW,{message:lV}).refine(lF,{message:lK}).optional()}),l7=d_.object({kind:d_.literal("search_recipes"),recipes:d_.array(l9).min(1).max(50)}),he=d_.object({topic:d_.string().min(3).max(80).refine(lW,{message:lV}),rule:lY(5,180),example:lX(200).optional()}),ht=d_.object({kind:d_.literal("convention_notes"),notes:d_.array(he).min(1).max(20)}),hr=d_.object({from_path:d_.string().regex(lH).max(120),to_path:d_.string().regex(lH).max(120),relation:d_.string().min(3).max(120).refine(lW,{message:lV}).refine(lF,{message:lK})}),hi=d_.object({kind:d_.literal("cross_references"),refs:d_.array(hr).min(1).max(50)}),hn=d_.discriminatedUnion("kind",[l1,l6,l5,l7,ht,hi]),ha=d_.object({id:d_.string().min(1).max(80).regex(/^[a-z0-9-]+$/),kind:d_.enum(lG),anchor:d_.string().min(1).max(200),human_label:d_.string().min(1).max(80),description:d_.string().min(1).max(200),scope_paths:d_.array(d_.string().min(1).max(120)).min(1).max(20)});d_.object({version:d_.literal(1),sections:d_.array(ha).min(1).max(4)}),d_.object({enabled:d_.boolean().default(!1),cadence:d_.enum(["daily","weekly","monthly"]).default("weekly"),backend:d_.enum(["claude","codex","gemini"]).default("claude"),model:d_.string().min(1).max(120).default("claude-sonnet-4-6"),excluded_skills:d_.array(d_.string().min(1).max(80)).default([])}),d_.object({schema_version:d_.number().int().positive(),skill_slug:d_.string().min(1).max(80),section_id:d_.string().min(1).max(80),kind:d_.enum(lG),payload:hn,applied_proposal_id:d_.number().int().nullable(),applied_at:d_.number().int().nullable()}),d_.object({runId:d_.string().min(1).max(120),skill_slug:d_.string().min(1).max(80),section_id:d_.string().min(1).max(80),payload:hn,rationale:d_.string().min(1).max(500),signal_ids:d_.array(d_.number().int().positive()).min(1).max(50)}),d_.object({target_skills:d_.array(d_.string().min(1).max(80)).max(20).optional()}),d_.object({slug:d_.string().min(1).max(80),section_id:d_.string().min(1).max(80)}),e.s([],18446)}]);
|